TW202209878A - Image coding method, image decoding method, and related apparatus - Google Patents

Image coding method, image decoding method, and related apparatus Download PDF

Info

Publication number
TW202209878A
TW202209878A TW110123866A TW110123866A TW202209878A TW 202209878 A TW202209878 A TW 202209878A TW 110123866 A TW110123866 A TW 110123866A TW 110123866 A TW110123866 A TW 110123866A TW 202209878 A TW202209878 A TW 202209878A
Authority
TW
Taiwan
Prior art keywords
intra
prediction
block
image
frame prediction
Prior art date
Application number
TW110123866A
Other languages
Chinese (zh)
Inventor
謝志煌
Original Assignee
大陸商Oppo廣東移動通信有限公司
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 大陸商Oppo廣東移動通信有限公司 filed Critical 大陸商Oppo廣東移動通信有限公司
Publication of TW202209878A publication Critical patent/TW202209878A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • 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/182Methods 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 pixel

Landscapes

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

Abstract

An image coding method, an image decoding method, and related apparatuses. The image coding method comprises: determining intra-frame prediction filtering indication information of the current coding block; if it is determined, according to the intra-frame prediction filtering indication information, that the current coding block needs to use a first intra-frame prediction filtering mode, setting a first use identification bit of the first intra-frame prediction filtering mode of the current coding block to be allowed-to-use; writing the intra-frame prediction filtering indication information, the first intra-frame prediction filtering mode and the first use identification bit into a code stream; and performing prediction on the current coding block according to the first intra-frame prediction filtering mode to obtain a predicted block, coding the predicted block, and writing a coding result into the code stream. Options for operations, such as smoothing processing or local blurring, required for intra-frame prediction are provided, and for parts of an image texture that do not need to be too sharp, predicted pixels are smoother, and a predicted block is closer to an original image. Therefore, the coding efficiency can be improved.

Description

圖像編碼方法、圖像解碼方法及相關裝置Image coding method, image decoding method and related device

本申請涉及電子設備技術領域,具體涉及一種圖像編碼方法、圖像解碼方法及相關裝置。The present application relates to the technical field of electronic devices, and in particular, to an image encoding method, an image decoding method, and related apparatuses.

數位影像能力可併入到大範圍的裝置中,包含數位電視、數位直播系統、無線廣播系統、個人數位助理(personal  digital  assistant,PDA)、膝上型或桌上型電腦、平板電腦、電子書閱讀器、數碼相機、數位記錄裝置、數位媒體播放機、影像遊戲裝置、影像遊戲控制台、行動或衛星無線電電話、影像會議裝置、影像流裝置等等。Digital imaging capabilities can be incorporated into a wide range of devices, including digital televisions, digital live broadcasting systems, wireless broadcasting systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-books Readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, mobile or satellite radio phones, video conferencing devices, video streaming devices, etc.

數位影像裝置實施影像壓縮技術,例如由動態影像專家群(Moving Picture Experts Group,MPEG)-2、MPEG-4、ITU-TH.263、ITU-TH.264/MPEG-4第10部分高級影像編解碼(advanced  video  coding,AVC)、ITU-TH .265高效率影像編解碼(high  efficiency video  coding,HEVC)標準定義的標準和所述標準的擴展部分中所描述的那些影像壓縮技術,從而更高效地發射及接收數位影像訊息。影像裝置可透過實施這些影像編解碼技術來更高效地發射、接收、編碼、解碼和/或儲存數位影像訊息。Digital video devices implement video compression techniques such as those developed by the Moving Picture Experts Group (MPEG)-2, MPEG-4, ITU-TH.263, ITU-TH.264/MPEG-4 Part 10 Advanced Video Coding advanced video coding (AVC), the standards defined by the ITU-TH .265 high efficiency video coding (HEVC) standard, and those video compression techniques described in extensions of said standards, to be more efficient to transmit and receive digital video messages. Video devices can transmit, receive, encode, decode and/or store digital video information more efficiently by implementing these video codec techniques.

隨著網路影像的激增,儘管數位影像壓縮技術不斷演進,但仍然對影像壓縮比提出更高要求。With the proliferation of online video, despite the continuous evolution of digital video compression technology, it still puts forward higher requirements for video compression ratio.

本申請實施例提供了一種圖像編碼方法、圖像解碼方法及相關裝置,以期為幀內預測在需要平滑處理或局部模糊等操作上提供選擇,對於圖像紋理不需要太銳化的部分,使用該技術使得預測像素更加平滑,預測塊更加接近原始圖像,最終將提高編碼效率。The embodiments of the present application provide an image encoding method, an image decoding method, and a related device, in order to provide options for intra-frame prediction in operations that require smoothing or local blurring, and for parts of image textures that do not need to be too sharp, Using this technique makes the predicted pixels smoother and the predicted block closer to the original image, which will ultimately improve the coding efficiency.

第一方面,本申請實施例提供一種圖像編碼方法,包括:In a first aspect, an embodiment of the present application provides an image encoding method, including:

劃分圖像,確定當前編碼塊的幀內預測濾波指示訊息,所述幀內預測濾波指示訊息包括第一指示訊息和第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式;Divide the image, and determine the intra-frame prediction filtering instruction message of the current coding block, where the intra-frame prediction filtering instruction message includes a first instruction message and a second instruction message, and the first instruction message is used to indicate whether to allow the use of the first frame Intra prediction filtering mode, the second indication message is used to indicate whether to allow the use of the second intra prediction filtering mode, and the first intra prediction filtering mode is an intra prediction filtering IPF mode;

若根據所述幀內預測濾波指示訊息確定所述當前編碼塊需要使用所述第一幀內預測濾波模式,則將所述當前編碼塊的所述第一幀內預測濾波模式的第一使用標識位設置為允許使用;If it is determined according to the intra-frame prediction filtering instruction message that the current coding block needs to use the first intra-frame prediction filtering mode, the first use flag of the first intra-frame prediction filtering mode of the current coding block is set bit set to allow use;

將所述幀內預測濾波指示訊息、所述第一幀內預測濾波模式和所述第一使用標識位經位元流傳輸;transmitting the intra-prediction filter indication message, the first intra-prediction filter mode, and the first usage flag via a bitstream;

將所述當前編碼塊的預測塊和經反變換、反量化後得到的殘差塊疊加,得到重建後的重建塊,作為下一個編碼塊的預測參考塊。The prediction block of the current coding block and the residual block obtained after inverse transformation and inverse quantization are superimposed to obtain the reconstructed reconstructed block, which is used as the prediction reference block of the next coding block.

相比於現有技術,本申請方案為幀內預測在需要平滑處理或局部模糊等操作上提供選擇,對於圖像紋理不需要太銳化的部分,使用該技術使得預測像素更加平滑,預測塊更加接近原始圖像,最終將提高編碼效率。Compared with the prior art, the solution of the present application provides options for operations such as smoothing or local blurring for intra-frame prediction. For the part of the image texture that does not need to be too sharp, the use of this technology makes the predicted pixels smoother and the predicted blocks more accurate. Close to the original image, which will eventually improve the encoding efficiency.

第二方面,本申請實施例提供一種圖像解碼方法,包括:In a second aspect, an embodiment of the present application provides an image decoding method, including:

解析位元流,確定當前解碼塊的幀內預測濾波指示訊息和第一使用標識位,所述幀內預測指示訊息包括第一指示訊息、第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式,所述第一使用標誌位為所述第一幀內預測濾波模式的使用標識位;Parse the bit stream, and determine the intra-frame prediction filter indication message and the first usage flag of the current decoding block, where the intra-frame prediction indication message includes a first indication message and a second indication message, and the first indication message is used to indicate whether to allow the use of the first intra-frame prediction filter mode, the second indication message is used to indicate whether to allow the use of the second intra-frame prediction filter mode, the first intra-frame prediction filter mode is the intra-frame prediction filter IPF mode, the The first use flag is the use flag of the first intra-frame prediction filtering mode;

根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。According to the intra-frame prediction filtering instruction message and the first use flag, it is determined that the prediction block of the decoding block is obtained by using the first frame rate prediction filtering mode.

相比於現有技術,本申請方案為幀內預測在需要平滑處理或局部模糊等操作上提供選擇,對於圖像紋理不需要太銳化的部分,使用該技術使得預測像素更加平滑,預測塊更加接近原始圖像,最終將提高編碼效率。Compared with the prior art, the solution of the present application provides options for operations such as smoothing or local blurring for intra-frame prediction. For the part of the image texture that does not need to be too sharp, the use of this technology makes the predicted pixels smoother and the predicted blocks more accurate. Close to the original image, which will eventually improve the encoding efficiency.

第三方面,本申請實施例提供一種圖像編碼裝置,包括:In a third aspect, an embodiment of the present application provides an image encoding apparatus, including:

劃分單元,用於劃分圖像,確定當前編碼塊的幀內預測濾波指示訊息,所述幀內預測濾波指示訊息包括第一指示訊息和第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式;a dividing unit, configured to divide the image and determine the intra-frame prediction filtering indication information of the current coding block, the intra-frame prediction filtering indication information includes a first indication message and a second indication message, and the first indication message is used to indicate whether The first intra-frame prediction filtering mode is allowed to be used, and the second indication message is used to indicate whether the second intra-frame prediction filtering mode is allowed to be used, and the first intra-frame prediction filtering mode is an intra-frame prediction filtering IPF mode;

確定單元,用於若根據所述幀內預測濾波指示訊息確定所述當前編碼塊需要使用所述第一幀內預測濾波模式,則將所述當前編碼塊的所述第一幀內預測濾波模式的第一使用標識位設置為允許使用;a determining unit, configured to set the first intra prediction filtering mode of the current coding block if it is determined according to the intra prediction filtering instruction message that the current coding block needs to use the first intra prediction filtering mode The first use flag is set to allow use;

傳輸單元,用於將所述幀內預測濾波指示訊息、所述第一幀內預測濾波模式和所述第一使用標識位經位元流傳輸;a transmission unit, configured to transmit the intra-frame prediction filter indication message, the first intra-frame prediction filter mode and the first use identification bit through a bit stream;

疊加單元,用於根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。and a superimposing unit, configured to determine, according to the intra-frame prediction filtering instruction message and the first usage flag, to use the first frame rate prediction filtering mode to obtain the prediction block of the decoding block.

第四方面,本申請實施例提供一種圖像解碼裝置,包括:In a fourth aspect, an embodiment of the present application provides an image decoding apparatus, including:

解析單元,用於確定當前解碼塊的幀內預測濾波指示訊息和第一使用標識位,所述幀內預測指示訊息包括第一指示訊息、第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式,所述第一使用標誌位為所述第一幀內預測濾波模式的使用標識位;a parsing unit, configured to determine an intra-frame prediction filter indication message and a first use flag of the current decoding block, where the intra-frame prediction indication message includes a first indication message and a second indication message, and the first indication message is used to indicate whether to allow the use of the first intra-frame prediction filter mode, the second indication message is used to indicate whether to allow the use of the second intra-frame prediction filter mode, the first intra-frame prediction filter mode is the intra-frame prediction filter IPF mode, the The first use flag is the use flag of the first intra-frame prediction filtering mode;

確定單元,用於根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。A determining unit, configured to determine, according to the intra-frame prediction filtering instruction message and the first use flag, to obtain the prediction block of the decoding block by using the first frame rate prediction filtering mode.

第五方面,本申請實施例提供了一種編碼器,包括:處理器和耦合於所述處理器的記憶體;所述處理器用於執行上述第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides an encoder, including: a processor and a memory coupled to the processor; the processor is configured to execute the method described in the first aspect.

第六方面,本申請實施例提供了一種解碼器,包括:處理器和耦合於所述處理器的記憶體;所述處理器用於執行上述第二方面所述的方法。In a sixth aspect, an embodiment of the present application provides a decoder, including: a processor and a memory coupled to the processor; the processor is configured to execute the method described in the second aspect above.

第七方面,本申請實施例提供了一種終端,所述終端包括:一個或多個處理器、記憶體和通訊介面;所述記憶體、所述通訊介面與所述一個或多個處理器連接;所述終端透過所述通訊介面與其他設備通訊,所述記憶體用於儲存電腦程式代碼,所述電腦程式代碼包括指令,當所述一個或多個處理器執行所述指令時,所述終端執行如第一方面或第二方面所述的方法。In a seventh aspect, an embodiment of the present application provides a terminal, the terminal includes: one or more processors, a memory, and a communication interface; the memory and the communication interface are connected to the one or more processors ; the terminal communicates with other devices through the communication interface, the memory is used to store computer program code, the computer program code includes instructions, when the one or more processors execute the instructions, the The terminal executes the method according to the first aspect or the second aspect.

第八方面,本申請實施例提供了一種電腦可讀儲存媒介,所述電腦可讀儲存媒介中儲存有指令,當所述指令在電腦上運行時,使得電腦執行上述第一方面或第二方面所述的方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where an instruction is stored in the computer-readable storage medium, and when the instruction is executed on a computer, the computer is made to execute the above-mentioned first aspect or the second aspect the method described.

第九方面,本申請實施例提供了一種包含指令的電腦程式產品,當所述指令在電腦上運行時,使得電腦執行上述第一方面或第二方面所述的方法。In a ninth aspect, an embodiment of the present application provides a computer program product including instructions, which, when the instructions are run on a computer, cause the computer to execute the method described in the first aspect or the second aspect.

為了使本發明的目的、技術方案及優點更加清楚明白,以下結合附圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施例僅僅用以解釋本發明,並不用於限定本發明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

可以理解,本發明所使用的術語“第一”、“第二”等可在本文中用於描述各種元件,但這些元件不受這些術語限制。這些術語僅用於將第一個元件與另一個元件區分。舉例來說,在不脫離本發明的範圍的情況下,可以將第一用戶端稱為第二用戶端,且類似地,可將第二用戶端稱為第一用戶端。第一用戶端和第二用戶端兩者都是用戶端,但其不是同一用戶端。It will be understood that the terms "first", "second", etc., as used herein, may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first user terminal may be referred to as a second user terminal, and similarly, a second user terminal may be referred to as a first user terminal without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.

首先介紹一下本申請實施例中用到的術語。First, the terms used in the embodiments of this application are introduced.

對於圖像的劃分,為了更加靈活的表示影像內容,高效率影像編解碼(High  Efficiency  Video  Coding  standard,HEVC)技術中定義了編碼樹單元(coding  tree  unit,CTU)、編碼塊(Coding Unit,CU)、預測單元(Prediction  Unit,PU)和變換單元(Transform  Unit,TU)。CTU、CU、PU和TU均為圖像塊。For the division of images, in order to represent the video content more flexibly, the High Efficiency Video Coding standard (HEVC) technology defines a coding tree unit (CTU), a coding block (Coding Unit, CU) ), prediction unit (Prediction Unit, PU) and transform unit (Transform Unit, TU). CTU, CU, PU and TU are all image blocks.

編碼樹單元CTU,一幅圖像由多個CTU構成,一個CTU通常對應於一個方形圖像區域,包含這個圖像區域中的亮度像素和色度像素(或者也可以只包含亮度像素,或者也可以只包含色度像素);CTU中還包含語法元素,這些語法元素指示如何將CTU劃分成至少一個編碼塊(coding  unit,CU),以及解碼每個編碼塊得到重建圖像的方法。如圖1所示,圖像1由多個CTU構成(包括CTU A、CTU B、CTU C等)。與某一CTU對應的編碼訊息包含與該CTU對應的方形圖像區域中的像素的亮度值和/或色度值。此外,與某一CTU對應的編碼訊息還可以包含語法元素,這些語法元素指示如何將該CTU劃分成至少一個CU,以及解碼每個CU以得到重建圖像的方法。一個CTU對應的圖像區域可以包括64×64、128×128或256×256個像素。在一個示例中,64×64個像素的CTU包含由64列、每列64個像素的矩形像素點陣,每個像素包含亮度分量和/或色度分量。CTU也可以對應矩形圖像區域或者其它形狀的圖像區域,一個CTU對應的圖像區域也可以是水平方向的像素點的數量與豎直方向的像素點數量不同的圖像區域,例如包括64×128個像素。Coding tree unit CTU, an image is composed of multiple CTUs, and a CTU usually corresponds to a square image area, including luma pixels and chroma pixels in this image area (or can only contain luma pixels, or also can only contain chroma pixels); the CTU also contains syntax elements that indicate how to divide the CTU into at least one coding block (coding unit, CU), and the method for decoding each coding block to obtain a reconstructed image. As shown in FIG. 1 , an image 1 is composed of a plurality of CTUs (including CTU A, CTU B, CTU C, etc.). The encoded information corresponding to a certain CTU contains the luminance and/or chrominance values of the pixels in the square image area corresponding to the CTU. In addition, the encoded information corresponding to a certain CTU may also include syntax elements indicating how to divide the CTU into at least one CU, and a method of decoding each CU to obtain a reconstructed image. An image area corresponding to one CTU may include 64×64, 128×128 or 256×256 pixels. In one example, a 64x64 pixel CTU contains a rectangular pixel lattice of 64 columns of 64 pixels, each pixel containing a luma component and/or a chrominance component. A CTU can also correspond to a rectangular image area or an image area of other shapes, and an image area corresponding to a CTU can also be an image area with a different number of pixels in the horizontal direction and the number of pixels in the vertical direction, for example, including 64 ×128 pixels.

編碼塊CU,如圖2所示,一個編碼樹單元CTU可以進一步劃分為編碼塊CU,通常對應於圖像中一個A×B的矩形區域,包含A×B亮度像素或/和它對應的色度像素,A為矩形的寬,B為矩形的高,A和B可以相同也可以不同,A和B的取值通常為2的整數次冪,例如128、64、32、16、8、4。其中,本申請實施例中涉及到的寬是指圖1示出的二維直角坐標系XoY中沿X軸方向(水平方向)的長度,高是指圖1示出的二維直角坐標系XoY中沿Y軸方向(豎直方向)的長度。一個CU的重建圖像可以透過預測圖像與殘差圖像相加得到,預測圖像透過幀內預測或幀間預測生成,具體可以由一個或多個預測塊(prediction  block,PB)構成,殘差圖像透過對變換係數進行反量化和反變換處理生成,具體可以由一個或多個變換塊(transform  block,TB)構成。具體的,一個CU包含編碼訊息,編碼訊息包括預測模式、變換係數等訊息,按照這些編碼訊息對CU進行相應的預測、反量化、反變換等解碼處理,產生這個CU對應的重建圖像。編碼樹單元與編碼塊關係如圖3所示。Coding block CU, as shown in Figure 2, a coding tree unit CTU can be further divided into coding block CU, which usually corresponds to an A×B rectangular area in the image, including A×B luminance pixels or/and its corresponding color. Degree pixel, A is the width of the rectangle, B is the height of the rectangle, A and B can be the same or different, the value of A and B is usually an integer power of 2, such as 128, 64, 32, 16, 8, 4 . The width involved in the embodiments of the present application refers to the length along the X-axis direction (horizontal direction) in the two-dimensional rectangular coordinate system XoY shown in FIG. 1 , and the height refers to the two-dimensional rectangular coordinate system XoY shown in FIG. 1 . The length along the Y-axis direction (vertical direction) in the middle. The reconstructed image of a CU can be obtained by adding the predicted image and the residual image. The predicted image is generated through intra-frame prediction or inter-frame prediction, and can be specifically composed of one or more prediction blocks (PB), The residual image is generated by performing inverse quantization and inverse transform processing on the transform coefficients, and may be specifically composed of one or more transform blocks (transform blocks, TB). Specifically, a CU contains encoded information, and the encoded information includes information such as prediction mode and transform coefficients. According to the encoded information, the CU is subjected to corresponding decoding processes such as prediction, inverse quantization, and inverse transformation, and a reconstructed image corresponding to the CU is generated. The relationship between the coding tree unit and the coding block is shown in Figure 3.

預測單元PU,是幀內預測、幀間預測的基本單元。定義圖像塊的運動訊息包含幀間預測方向、參考幀、運動向量等,正在進行編碼處理的圖像塊稱為當前編碼塊(current coding block,CCB),正在進行解碼處理的圖像塊稱為當前解碼塊(current decoding block,CDB),例如正在對一個圖像塊進行預測處理時,當前編碼塊或者當前解碼塊為預測塊;正在對一個圖像塊進行殘差處理時,當前編碼塊或者當前解碼塊為變換塊。當前編碼塊或當前解碼塊所在的圖像稱為當前幀。當前幀中,位於當前塊的左側或上側(以圖1坐標系為準,左側是指X軸負向,上側是指Y軸正向)的圖像塊可能處於當前幀內部並且已經完成了編碼/解碼處理,得到了重建圖像,它們稱為重構塊;重構塊的編碼模式、重建像素等訊息是可以獲得的(available)。在當前幀進行編碼/解碼之前已經完成編碼/解碼處理的幀稱為重建幀。當前幀為單向預測幀(P幀)或雙向預測幀(B幀)時,它分別具有一個或兩個參考幀列表,兩個列表分別稱為L0和L1,每個列表中包含至少一個重建幀,稱為當前幀的參考幀。參考幀為當前幀的幀間預測提供參考像素。The prediction unit PU is the basic unit of intra prediction and inter prediction. The motion information that defines the image block includes inter prediction direction, reference frame, motion vector, etc. The image block that is being encoded is called the current coding block (CCB), and the image block that is being decoded is called the current coding block (CCB). is the current decoding block (CDB), for example, when prediction processing is being performed on an image block, the current coding block or the current decoding block is the prediction block; when residual processing is being performed on an image block, the current coding block Or the current decoding block is a transform block. The picture in which the current coding block or the current decoding block is located is called the current frame. In the current frame, the image blocks located on the left or upper side of the current block (based on the coordinate system in Figure 1, the left side refers to the negative direction of the X-axis, and the upper side refers to the positive direction of the Y-axis) may be located in the current frame and have been encoded. /Decoding process, the reconstructed images are obtained, which are called reconstructed blocks; information such as coding mode and reconstructed pixels of the reconstructed blocks are available. A frame that has completed encoding/decoding before the current frame is encoded/decoded is called a reconstructed frame. When the current frame is a unidirectional prediction frame (P frame) or a bidirectional prediction frame (B frame), it has one or two reference frame lists respectively, and the two lists are called L0 and L1 respectively, and each list contains at least one reconstructed frame. frame, referred to as the reference frame for the current frame. The reference frame provides reference pixels for inter prediction of the current frame.

變換單元TU,對原始圖像塊和預測圖像塊的殘差進行處理。The transform unit TU processes the residuals of the original image block and the predicted image block.

像素(又稱為像素點),是指圖像中的像素點,如編碼塊中的像素點、亮度分量像素塊中的像素點(又稱為亮度像素)、色度分量像素塊中的像素點(又稱為色度像素)等。Pixels (also known as pixel points) refer to pixels in an image, such as pixels in coding blocks, pixels in luminance component pixel blocks (also known as luminance pixels), and pixels in chrominance component pixel blocks points (aka chroma pixels), etc.

樣本(又稱為像素值、樣本值),是指像素點的像素值,該像素值在亮度分量域具體是指亮度(即灰階值),該像素值在色度分量域具體是指色度值(即色彩和飽和度),按照處理階段的不同,一個像素的樣本具體包括原始樣本、預測樣本和重構樣本。The sample (also known as pixel value, sample value) refers to the pixel value of a pixel point. The pixel value in the luminance component domain specifically refers to the brightness (ie grayscale value), and the pixel value in the chrominance component domain specifically refers to the color. The degree value (ie color and saturation), according to the different processing stages, the sample of a pixel specifically includes the original sample, the predicted sample and the reconstructed sample.

方向說明:水平方向,例如:如圖1所述的二維直角坐標系XoY中沿X軸方向、垂直方向,例如:如圖1所示的二維直角坐標系XoY中沿Y軸負向方向。Direction description: horizontal direction, for example: along the X-axis direction and vertical direction in the two-dimensional rectangular coordinate system XoY as shown in Figure 1, for example: the negative direction along the Y-axis in the two-dimensional rectangular coordinate system XoY shown in Figure 1 .

幀內預測,根據當前塊的空間相鄰像素,產生當前塊的預測圖像。一種幀內預測模式對應於一種生成預測圖像的方法。幀內預測單元的劃分包括2N×2N劃分方式和N×N劃分方式,2N×2N劃分方式為對圖像塊不進行劃分;N×N劃分方式為將圖像塊劃分為四個等大的子圖像塊。In intra-frame prediction, a predicted image of the current block is generated according to the spatially adjacent pixels of the current block. An intra prediction mode corresponds to a method of generating a predicted image. The division of the intra prediction unit includes 2N×2N division and N×N division. The 2N×2N division method is to not divide the image block; the N×N division method is to divide the image block into four equal-sized blocks. sub-image block.

通常,數位影像壓縮技術作用於顏色編碼方法為YCbCr,也可稱為YUV,顏色格式為4:2:0、4:2:2或4:4:4的影像序列。其中,Y表示明亮度(Luminance或Luma),也就是灰階值,Cb表示藍色色度分量,Cr表示紅色色度分量,U和V表示色度(Chrominance或Chroma),用於描述色彩及飽和度。在顏色格式上,4:2:0表示每4個像素有4個亮度分量,2個色度分量(YYYYCbCr),4:2:2表示每4個像素有4個亮度分量,4個色度分量(YYYYCbCrCbCr),而4:4:4表示全像素顯示(YYYYCbCrCbCrCbCrCbCr),圖3展示了不同顏色格式下的各分量分佈圖,其中圓形為Y分量,三角形為UV分量。Generally, the digital image compression technology works on image sequences whose color coding method is YCbCr, also called YUV, and whose color format is 4:2:0, 4:2:2 or 4:4:4. Among them, Y represents the brightness (Luminance or Luma), that is, the grayscale value, Cb represents the blue chrominance component, Cr represents the red chrominance component, and U and V represent the chrominance (Chrominance or Chroma), which is used to describe color and saturation. Spend. In the color format, 4:2:0 means that every 4 pixels has 4 luminance components and 2 chrominance components (YYYYCbCr), and 4:2:2 means that every 4 pixels has 4 luminance components and 4 chrominance components. component (YYYYCbCrCbCr), and 4:4:4 represents full pixel display (YYYYCbCrCbCrCbCrCbCr), Figure 3 shows the distribution of each component in different color formats, where the circle is the Y component and the triangle is the UV component.

數位影像編解碼中的幀內預測部分,主要參考當前幀的相鄰塊圖像訊息對當前編碼單元塊進行預測,將預測塊與原始圖像塊計算殘差得到殘差訊息後,經由變換與量化等過程,將殘差訊息傳輸到解碼端。解碼端接收並解析位元流後,經過反變換與反量化等步驟得到殘差訊息,將解碼端預測得到的預測圖像塊疊加殘差訊息後,得到重建圖像塊。在此過程中,幀內預測通常借助各自角度模式與非角度模式對當前編碼塊進行預測得到預測塊,根據預測塊與原始塊計算得到的位元率失真訊息,篩選出當前編碼單元最優的預測模式,後將該預測模式經位元流傳輸到解碼端。解碼端解析出預測模式,預測得到當前解碼塊的預測圖像並疊加經位元流傳輸而來的殘差像素,即可得到重建圖像。The intra-frame prediction part in the digital image coding and decoding mainly refers to the image information of the adjacent blocks of the current frame to predict the current coding unit block, calculates the residual between the predicted block and the original image block to obtain the residual information, and then transforms it with the original image block. Quantization and other processes are used to transmit the residual information to the decoding end. After the decoding end receives and parses the bit stream, the residual information is obtained through the steps of inverse transformation and inverse quantization, and the reconstructed image block is obtained by superimposing the residual information on the predicted image block predicted by the decoding end. In this process, intra prediction usually uses the respective angle mode and non-angle mode to predict the current coding block to obtain the prediction block, and according to the bit rate distortion information calculated from the prediction block and the original block, the optimal current coding unit The prediction mode is then transmitted to the decoding end through the bit stream. The decoding end parses the prediction mode, predicts the prediction image of the current decoding block, and superimposes the residual pixels transmitted through the bit stream to obtain the reconstructed image.

經過歷代的數位影像編解碼標準發展,非角度模式保持相對穩定,有均值模式和平面模式;角度模式則隨著數位影像編解碼標準的演進而不斷增加,以國際數位影像編碼標準H系列為例,H.264/AVC標準僅有8種角度預測模式和1種非角度預測模式;H.265/HEVC擴展到33種角度預測模式和2種非角度預測模式;以及目前最新通用影像編碼標準H.266/VVC採用了67種預測模式,其中保留2種非角度預測模式,將角度模式從H.265的33種擴展到了65種。毋庸置疑,隨著角度模式的增加,幀內預測將會更加精確,也更加符合當前社會對高清以及超高清影像發展的需求。不僅國際標準如此,國內數位音影像編碼標準AVS3也繼續擴展了角度模式和非角度模式,超高清數位影像的發展對幀內預測提出了更高的要求,不能僅僅只是依靠單純地增加角度預測模式,擴展寬角度來提交編碼效率。因此,國內數位音影像編碼標準AVS3採納了幀內預測濾波技術(IPF, intra prediction filter),幀內預測濾波技術指出當前的幀內角度預測中並沒有採用全部的參考像素,容易忽略一些像素與當前編碼單元之間的關聯性,幀內預測濾波技術透過點對點的濾波提升像素預測精度,可以有效地增強空間關聯性,從而提升幀內預測精度。IPF技術以AVS3中自右上向左下的預測模式為例,具體如圖4所示,其中,URB表示左側相鄰塊的靠近當前編碼單元的邊界像素,MRB表示上側相鄰塊的靠近當前編碼單元的邊界像素,filter direction表示濾波方向。該預測模式方向從右上到左下,生成的當前編碼單元預測值主要使用上方MRB這一行相鄰塊的參考像素點,即當前編碼單元的預測像素並沒有參考到左側相鄰塊的重建像素,然而當前編碼單元與左側重建塊為空間相鄰關係,若只參考上側MRB像素而不參考左側URB像素則容易缺失空間關聯性導致預測效果較差。After the development of digital image coding and decoding standards over the past generations, the non-angle mode remains relatively stable, with average mode and flat mode; the angle mode continues to increase with the evolution of digital image coding standards. Take the international digital image coding standard H series as an example , the H.264/AVC standard has only 8 angle prediction modes and 1 non-angle prediction mode; H.265/HEVC is extended to 33 angle prediction modes and 2 non-angle prediction modes; and the latest general image coding standard H .266/VVC adopts 67 prediction modes, among which 2 non-angle prediction modes are reserved, and the angle mode is expanded from 33 kinds of H.265 to 65 kinds. Undoubtedly, with the increase of the angle mode, the intra-frame prediction will be more accurate, and it will be more in line with the needs of the current society for the development of high-definition and ultra-high-definition images. Not only the international standard, but the domestic digital audio and video coding standard AVS3 also continues to expand the angle mode and non-angle mode. The development of ultra-high-definition digital video has put forward higher requirements for intra-frame prediction, and cannot just rely on simply increasing the angle prediction mode. , extending the wide angle to commit coding efficiency. Therefore, the domestic digital audio and video coding standard AVS3 adopts the intra prediction filter technology (IPF, intra prediction filter). The correlation between the current coding units, the intra-frame prediction filtering technology improves the pixel prediction accuracy through point-to-point filtering, which can effectively enhance the spatial correlation, thereby improving the intra-frame prediction accuracy. The IPF technology takes the prediction mode from top right to bottom left in AVS3 as an example, as shown in Figure 4, where URB represents the boundary pixel of the adjacent block on the left side close to the current coding unit, and MRB represents the adjacent block on the upper side close to the current coding unit. The boundary pixels of , filter direction indicates the filtering direction. The direction of the prediction mode is from upper right to lower left, and the generated prediction value of the current coding unit mainly uses the reference pixels of the adjacent blocks in the upper MRB row, that is, the prediction pixels of the current coding unit do not refer to the reconstructed pixels of the adjacent blocks on the left. The current coding unit and the left reconstruction block are in a spatially adjacent relationship. If only the upper MRB pixels are referenced instead of the left URB pixels, the spatial correlation is likely to be lost, resulting in poor prediction effect.

IPF技術應用於幀內預測的所有預測模式中,是一種提高幀內預測精度的濾波方法。IPF技術主要透過以下流程實現:IPF technology is applied to all prediction modes of intra-frame prediction, and is a filtering method to improve the accuracy of intra-frame prediction. IPF technology is mainly realized through the following processes:

a)      IPF技術對該編碼單元的當前預測模式進行判斷,劃分為水平類角度預測模式、垂直類角度預測模式和非角度預測模式;a) The IPF technology judges the current prediction mode of the coding unit and divides it into horizontal angle prediction mode, vertical angle prediction mode and non-angle prediction mode;

b)      根據不同類別的預測模式,IPF技術採用不同的濾波器對輸入像素進行濾波;b) According to different types of prediction modes, IPF technology uses different filters to filter the input pixels;

c)      根據當前像素到參考像素的距離不同,IPF技術採用不同的濾波係數對輸入像素進行濾波;c) According to the different distances from the current pixel to the reference pixel, the IPF technology uses different filter coefficients to filter the input pixels;

IPF技術的輸入像素為各個預測模式下得到的預測像素,輸出像素為IPF後的最終預測像素。The input pixels of the IPF technology are the predicted pixels obtained in each prediction mode, and the output pixels are the final predicted pixels after IPF.

IPF技術有允許標識位ipf_enable_flag,二值變數,值為‘1’表示可使用幀內預測濾波;值為‘0’表示不應使用幀內預測濾波。同時IPF技術還有使用標識位ipf_flag,二值變數,值為‘1’表示應使用幀內預測濾波;值為‘0’表示不應使用幀內預測濾波,如果位元流中不存在標識位ipf_flag,則預設為0。The IPF technology has an allowable flag bit ipf_enable_flag, a binary variable. The value of '1' indicates that intra-frame prediction filtering can be used; the value of '0' indicates that intra-frame prediction filtering should not be used. At the same time, the IPF technology also uses the flag ipf_flag, a binary variable. The value of '1' indicates that intra-frame prediction filtering should be used; the value of '0' indicates that intra-frame prediction filtering should not be used. If there is no flag bit in the bit stream ipf_flag, the default value is 0.

語法元素IPF_flag,如下: ……   if (IpfEnableFlag && (PartSize == 'SIZE_2Mx2N') && (! IsPcmMode[0])) {   ipf_flag ae(v) }   ……   The syntax element IPF_flag is as follows: ... if (IpfEnableFlag && (PartSize == 'SIZE_2Mx2N') && (! IsPcmMode[0])) { ipf_flag ae(v) } ...

上述IPF技術將預測模式0、1和2歸類為非角度預測模式,使用第一三抽頭濾波器對預測像素進行濾波;The above-mentioned IPF technique classifies prediction modes 0, 1 and 2 as non-angular prediction modes, and uses the first three-tap filter to filter the predicted pixels;

將預測模式3至預測模式18、預測模式34至預測模式50歸類為垂直類角度預測模式,使用第一兩抽頭濾波器對預測像素進行濾波;Classify prediction mode 3 to prediction mode 18 and prediction mode 34 to prediction mode 50 as vertical class angle prediction modes, and use the first two-tap filter to filter the prediction pixels;

將預測模式19至預測模式32、預測模式51至預測模式65歸類為水平類角度預測模式,使用第二兩抽頭濾波器對預測像素進行濾波。Prediction mode 19 to prediction mode 32, prediction mode 51 to prediction mode 65 are classified as horizontal-like angle prediction modes, and the prediction pixels are filtered using a second two-tap filter.

上述適用於IPF技術的第一三抽頭濾波器,濾波公式如下:

Figure 02_image001
The above-mentioned first three-tap filter suitable for IPF technology, the filtering formula is as follows:
Figure 02_image001

上述適用於IPF技術的第一兩抽頭濾波器,濾波公式如下:

Figure 02_image003
The above-mentioned first two-tap filter suitable for IPF technology, the filtering formula is as follows:
Figure 02_image003

上述適用於IPF技術的第二兩抽頭濾波器,濾波公式如下:

Figure 02_image005
The above-mentioned second two-tap filter suitable for IPF technology, the filtering formula is as follows:
Figure 02_image005

上述式子中,P'(x, y)為當前色度預測塊位於(x, y)位置像素的最終預測值,f(x)與f(y)分別為參考左側相鄰塊重建像素的水平濾波係數與參考上側相鄰塊重建像素的垂直濾波係數,P(-1, y)與P(x,-1)分別為位於y行的左側重建像素與位於x列的上側重建像素,P(x, y)為當前色度分量預測塊裡的原始預測像素值。其中,x與y的值均不超過當前編碼單元塊的寬與高取值範圍。In the above formula, P'(x, y) is the final prediction value of the pixel located at the position (x, y) of the current chrominance prediction block, and f(x) and f(y) are the pixel values reconstructed with reference to the adjacent blocks on the left, respectively. The horizontal filter coefficient and the vertical filter coefficient of the reconstructed pixel of the adjacent block on the reference upper side, P(-1, y) and P(x,-1) are the left reconstruction pixel located in the y row and the upper reconstructed pixel located in the x column, P(-1, y) and P(x,-1) (x, y) is the original predicted pixel value in the current chrominance component prediction block. The values of x and y do not exceed the range of the width and height of the current coding unit block.

上述水平濾波係數與垂直濾波係數的取值與當前編碼單元塊的尺寸以及當前預測塊中預測像素到左側重建像素點、上側重建像素點的距離有關。上述水平濾波係數與垂直濾波係數的取值還與當前編碼塊的尺寸有關,根據當前編碼單元塊的大小劃分成不同濾波器係數組。The values of the above-mentioned horizontal filter coefficients and vertical filter coefficients are related to the size of the current coding unit block and the distances from the predicted pixels in the current prediction block to the left reconstructed pixels and the top reconstructed pixels. The values of the above-mentioned horizontal filter coefficients and vertical filter coefficients are also related to the size of the current coding block, and are divided into different filter coefficient groups according to the size of the current coding unit block.

表1給出了IPF技術的濾波係數。Table 1 presents the filter coefficients of the IPF technique.

表1 幀內色度預測濾波係數     編碼單元塊尺寸     4 8 16 32 64 預測樣本與重建樣本的距離 1 3/8 11/16 5/8 9/16 13/16 2 1/14 25/64 27/64 27/64 11/16 3 1/32 7/32 19/64 21/64 37/16 4 0 1/8 13/64 1/4 31/16 5 0 1/16 9/64 3/16 13/32 6 0 1/32 1/14 9/64 11/32 7 0 1/64 1/16 7/64 9/32 8 0 1/64 3/64 5/64 15/64 9 0 0 1/32 1/16 13/64 10 0 0 1/64 3/64 11/64 Table 1 Intra-frame chroma prediction filter coefficients coding unit block size 4 8 16 32 64 The distance between the predicted sample and the reconstructed sample 1 3/8 11/16 5/8 9/16 13/16 2 1/14 25/64 27/64 27/64 11/16 3 1/32 7/32 19/64 21/64 37/16 4 0 1/8 13/64 1/4 31/16 5 0 1/16 9/64 3/16 13/32 6 0 1/32 1/14 9/64 11/32 7 0 1/64 1/16 7/64 9/32 8 0 1/64 3/64 5/64 15/64 9 0 0 1/32 1/16 13/64 10 0 0 1/64 3/64 11/64

圖5展示了幀內預測濾波的三種濾波情況示意圖,分別僅參考了上側參考像素對當前編碼單元中的預測值進行濾波;僅參考了左側參考像素對當前編碼單元預中的測值進行濾波;以及都參考了上側與左側參考像素對當前編碼單元塊中的預測值進行濾波。5 shows schematic diagrams of three filtering situations for intra-frame prediction filtering, respectively only referring to the upper reference pixel to filter the predicted value in the current coding unit; only referring to the left reference pixel to filter the predicted value in the current coding unit; And both refer to the upper and left reference pixels to filter the prediction value in the current coding unit block.

圖6為本申請實施例中所描述的一種實例的影像解碼系統1的方塊圖。如本文所使用,術語“影像解碼器”一般是指影像編碼器和影像解碼器兩者。在本申請中,術語“影像解碼”或“解碼”可一般地指代影像編碼或影像解碼。影像解碼系統1的影像編碼器100和影像解碼器200用於實現本申請提出的跨分量預測方法。FIG. 6 is a block diagram of an example image decoding system 1 described in the embodiments of the present application. As used herein, the term "video decoder" generally refers to both a video encoder and a video decoder. In this application, the term "image decoding" or "decoding" may generally refer to image encoding or image decoding. The video encoder 100 and the video decoder 200 of the video decoding system 1 are used to implement the cross-component prediction method proposed in this application.

如圖6中所示,影像解碼系統1包含源裝置10和目的裝置20。源裝置10產生經編碼影像資料。因此,源裝置10可被稱為影像編碼裝置。目的裝置20可對由源裝置10所產生的經編碼的影像資料進行解碼。因此,目的裝置20可被稱為影像解碼裝置。源裝置10、目的裝置20或兩個的各種實施方案可包含一或多個處理器以及耦合到所述一或多個處理器的記憶體。所述記憶體可包含但不限於RAM、ROM、EEPROM、快閃記憶體或可用於以可由電腦存取的指令或資料結構的形式儲存所要的程式碼的任何其它媒體,如本文所描述。As shown in FIG. 6 , the video decoding system 1 includes a source device 10 and a destination device 20 . Source device 10 generates encoded video data. Accordingly, the source device 10 may be referred to as an image encoding device. Destination device 20 may decode the encoded image data generated by source device 10 . Therefore, the destination device 20 may be referred to as an image decoding device. Various implementations of source device 10, destination device 20, or both may include one or more processors and memory coupled to the one or more processors. The memory may include, but is not limited to, RAM, ROM, EEPROM, flash memory, or any other medium that can be used to store the desired code in the form of instructions or data structures that can be accessed by a computer, as described herein.

源裝置10和目的裝置20可以包括各種裝置,包含桌上型電腦、行動計算裝置、筆記型(例如,膝上型)電腦、平板電腦、機上盒、例如所謂的“智慧”電話等電話手持機、電視機、相機、顯示裝置、數位媒體播放機、影像遊戲控制台、車載電腦或其類似者。Source device 10 and destination device 20 may include a variety of devices, including desktop computers, mobile computing devices, notebook (eg, laptop) computers, tablet computers, set-top boxes, telephone handhelds such as so-called "smart" phones, etc. computer, television, camera, display device, digital media player, video game console, car computer or the like.

目的裝置20可經由鏈路30從源裝置10接收經編碼影像資料。鏈路30可包括能夠將經編碼影像資料從源裝置10移動到目的裝置20的一或多個媒體或裝置。在一個實例中,鏈路30可包括使得源裝置10能夠即時將經編碼影像資料直接發射到目的裝置20的一或多個通訊媒體。在此實例中,源裝置10可根據通訊標準(例如無線通訊協定)來調製經編碼影像資料,且可將經調製的影像資料發射到目的裝置20。所述一或多個通訊媒體可包含無線和/或有線通訊媒體,例如射頻(RF)頻譜或一或多個實體傳輸線。所述一或多個通訊媒體可形成基於分組的網路的一部分,基於分組的網路例如為局域網、廣域網路或全球網路(例如,網際網路)。所述一或多個通訊媒體可包含路由器、交換器、基地台或促使從源裝置10到目的裝置20的通訊的其它設備。在另一實例中,可將經編碼資料從輸出介面140輸出到儲存裝置40。Destination device 20 may receive encoded image data from source device 10 via link 30 . Link 30 may include one or more media or devices capable of moving encoded image data from source device 10 to destination device 20 . In one example, link 30 may include one or more communication media that enable source device 10 to transmit encoded image data directly to destination device 20 in real time. In this example, source device 10 may modulate the encoded image data according to a communication standard, such as a wireless communication protocol, and may transmit the modulated image data to destination device 20 . The one or more communication media may include wireless and/or wired communication media, such as radio frequency (RF) spectrum or one or more physical transmission lines. The one or more communication media may form part of a packet-based network, such as a local area network, a wide area network, or a global network (eg, the Internet). The one or more communication media may include routers, switches, base stations, or other equipment that facilitates communication from source device 10 to destination device 20 . In another example, the encoded data may be output from output interface 140 to storage device 40 .

本申請的圖像編解碼技術可應用於影像編解碼以支援多種多媒體應用,例如空中電視廣播、有線電視發射、衛星電視發射、串流影像發射(例如,經由網際網路)、用於儲存於資料儲存媒體上的影像資料的編碼、儲存在資料儲存媒體上的影像資料的解碼,或其它應用。在一些實例中,影像解碼系統1可用於支援單向或雙向影像傳輸以支援例如影像資料流、影像重播、影像廣播和/或影像電話等應用。The image encoding and decoding techniques of the present application can be applied to image encoding and decoding to support a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, streaming image transmission (eg, via the Internet), storage in Encoding of image data on a data storage medium, decoding of image data stored on a data storage medium, or other applications. In some examples, the video decoding system 1 may be used to support one-way or two-way video transmission to support applications such as video data streaming, video playback, video broadcasting, and/or video telephony.

圖6中所說明的影像解碼系統1僅為實例,並且本申請的技術可適用於未必包含編碼裝置與解碼裝置之間的任何資料通訊的影像解碼設置(例如,影像編碼或影像解碼)。在其它實例中,資料從本機存放區器檢索、在網路上資料流等等。影像編碼裝置可對資料進行編碼並且將資料儲存到記憶體,和/或影像解碼裝置可從記憶體檢索資料並且對資料進行解碼。在許多實例中,由並不彼此通訊而是僅編碼資料到記憶體和/或從記憶體檢索資料且解碼資料的裝置執行編碼和解碼。The image decoding system 1 illustrated in FIG. 6 is merely an example, and the techniques of this application may be applicable to image decoding setups (eg, image encoding or image decoding) that do not necessarily include any data communication between an encoding device and a decoding device. In other instances, data is retrieved from a local repository, data is streamed over a network, and so on. The image encoding device may encode the data and store the data to memory, and/or the image decoding device may retrieve the data from the memory and decode the data. In many instances, encoding and decoding is performed by devices that do not communicate with each other but only encode data to and/or retrieve data from memory and decode the data.

在圖6的實例中,源裝置10包含影像源120、影像編碼器100和輸出介面140。在一些實例中,輸出介面140可包含調節器/解調器(數據機)和/或發射器。影像源120可包括影像捕獲裝置(例如,攝影機)、含有先前捕獲的影像資料的影像存檔、用以從影像內容提供者接收影像資料的影像饋入介面,和/或用於產生影像資料的電腦圖形系統,或影像資料的此些來源的組合。In the example of FIG. 6 , source device 10 includes video source 120 , video encoder 100 and output interface 140 . In some examples, output interface 140 may include a modulator/demodulator (modem) and/or a transmitter. Image source 120 may include an image capture device (eg, a camera), an image archive containing previously captured image data, an image feed interface for receiving image data from image content providers, and/or a computer for generating image data A graphics system, or a combination of such sources of image data.

影像編碼器100可對來自影像源120的影像資料進行編碼。在一些實例中,源裝置10經由輸出介面140將經編碼影像資料直接發射到目的裝置20。在其它實例中,經編碼影像資料還可儲存到儲存裝置40上,供目的裝置20以後存取來用於解碼和/或播放。Image encoder 100 may encode image data from image source 120 . In some examples, source device 10 transmits the encoded image data directly to destination device 20 via output interface 140 . In other examples, the encoded image data may also be stored on storage device 40 for later access by destination device 20 for decoding and/or playback.

在圖6的實例中,目的裝置20包含輸入介面240、影像解碼器200和顯示裝置220。在一些實例中,輸入介面240包含接收器和/或數據機。輸入介面240可經由鏈路30和/或從儲存裝置40接收經編碼影像資料。顯示裝置220可與目的裝置20集成或可在目的裝置20外部。一般來說,顯示裝置220顯示經解碼影像資料。顯示裝置220可包括多種顯示裝置,例如,液晶顯示器(LCD)、等離子顯示器、有機發光二極體(OLED)顯示器或其它類型的顯示裝置。In the example of FIG. 6 , destination device 20 includes input interface 240 , video decoder 200 and display device 220 . In some examples, input interface 240 includes a receiver and/or modem. Input interface 240 may receive encoded image data via link 30 and/or from storage device 40 . The display device 220 may be integrated with the destination device 20 or may be external to the destination device 20 . Generally, display device 220 displays decoded image data. The display device 220 may include various display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or other types of display devices.

儘管圖6中未圖示,但在一些方面,影像編碼器100和影像解碼器200可各自與音訊編碼器和解碼器集成,且可包含適當的多工器-多路分用器單元或其它硬體和軟體,以處置共同資料流程或單獨資料流程中的音訊和影像兩者的編碼。Although not shown in FIG. 6, in some aspects video encoder 100 and video decoder 200 may each be integrated with an audio encoder and decoder, and may include appropriate multiplexer-demultiplexer units or other Hardware and software to handle the encoding of both audio and video in a common data flow or separate data flows.

影像編碼器100和影像解碼器200各自可實施為例如以下各項的多種電路中的任一者:一或多個微處理器、數位訊號處理器(DSP)、專用積體電路(ASIC)、場域可程式閘陣列(FPGA)、離散邏輯、硬體或其任何組合。如果部分地以軟體來實施本申請,那麼裝置可將用於軟體的指令儲存在合適的非揮發性電腦可讀儲存媒體中,且可使用一或多個處理器在硬體中執行所述指令從而實施本申請技術。前述內容(包含硬體、軟體、硬體與軟體的組合等)中的任一者可被視為一或多個處理器。影像編碼器100和影像解碼器200中的每一者可包含在一或多個編碼器或解碼器中,所述編碼器或解碼器中的任一者可集成為相應裝置中的組合編碼器/解碼器(編碼解碼器)的一部分。Image encoder 100 and image decoder 200 may each be implemented as any of a variety of circuits such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), Field Programmable Gate Array (FPGA), discrete logic, hardware, or any combination thereof. If the application is implemented in part in software, a device may store instructions for the software in a suitable non-volatile computer-readable storage medium and execute the instructions in hardware using one or more processors Thus, the technology of the present application is implemented. Any of the foregoing (including hardware, software, a combination of hardware and software, etc.) may be considered to be one or more processors. Each of image encoder 100 and image decoder 200 may be included in one or more encoders or decoders, either of which may be integrated as a combined encoder in the respective device /decoder (codec) part.

圖7為本申請實施例中所描述的一種影像編碼器100的示例方塊圖。影像編碼器100用於將影像輸出到後處理實體41。後處理實體41表示可處理來自影像編碼器100的經編碼影像資料的影像實體的實例,例如媒體感知網路元件(MANE)或拼接/編輯裝置。在一些情況下,後處理實體41可為網路實體的實例。在一些影像編碼系統中,後處理實體41和影像編碼器100可為單獨裝置的若干部分,而在其它情況下,相對於後處理實體41所描述的功能性可由包括影像編碼器100的相同裝置執行。在某一實例中,後處理實體41是圖1的儲存裝置40的實例。FIG. 7 is an exemplary block diagram of an image encoder 100 described in an embodiment of the present application. The video encoder 100 is used to output the video to the post-processing entity 41 . Post-processing entity 41 represents an example of an image entity that can process encoded image data from image encoder 100, such as a media aware network element (MANE) or a stitching/editing device. In some cases, post-processing entity 41 may be an instance of a network entity. In some image encoding systems, post-processing entity 41 and image encoder 100 may be parts of separate devices, while in other cases, the functionality described with respect to post-processing entity 41 may be implemented by the same device that includes image encoder 100 implement. In an example, post-processing entity 41 is an example of storage device 40 of FIG. 1 .

在圖7的實例中,影像編碼器100包括預測處理單元108、濾波器單元106、記憶體107、求和器112、變換器101、量化器102和熵編碼器103。預測處理單元108包括幀間預測器110和幀內預測器109。為了圖像塊重構,影像編碼器100還包含反量化器104、反變換器105和求和器111。濾波器單元106表示一或多個迴路濾波器,例如去塊濾波器、自適應迴路濾波器(ALF)和取樣自適應偏移(SAO)濾波器。儘管在圖7中將濾波器單元106示出為迴路內濾波器,但在其它實現方式下,可將濾波器單元106實施為迴路後濾波器。在一種示例下,影像編碼器100還可以包括影像資料記憶體、分割單元(圖中未示意)。In the example of FIG. 7 , image encoder 100 includes prediction processing unit 108 , filter unit 106 , memory 107 , summer 112 , transformer 101 , quantizer 102 , and entropy encoder 103 . The prediction processing unit 108 includes an inter predictor 110 and an intra predictor 109 . For image block reconstruction, the image encoder 100 further includes an inverse quantizer 104 , an inverse transformer 105 and a summer 111 . Filter unit 106 represents one or more in-loop filters, such as deblocking filters, adaptive in-loop filters (ALF), and sample adaptive offset (SAO) filters. Although filter unit 106 is shown in FIG. 7 as an in-loop filter, in other implementations, filter unit 106 may be implemented as a post-loop filter. In an example, the image encoder 100 may further include an image data memory and a division unit (not shown in the figure).

影像編碼器100接收影像資料,並將所述影像資料儲存在影像資料記憶體中。分割單元將所述影像資料分割成若干圖像塊,而且這些圖像塊可以被進一步分割為更小的塊,例如基於四元樹結構或者二元樹結構的圖像塊分割。預測處理單元108可選擇用於當前圖像塊的多個可能的解碼模式中的一者,例如多個幀內解碼模式中的一者或多個幀間解碼模式中的一者。預測處理單元108可將所得經幀內、幀間解碼的塊提供給求和器112以產生殘差塊,且提供給求和器111以重構用作參考圖像的經編碼塊。預測處理單元108內的幀內預測器109可相對於與待編碼當前塊在相同幀或條帶中的一或多個相鄰編碼塊執行當前圖像塊的幀內預測性編碼,以去除空間冗餘。預測處理單元108內的幀間預測器110可相對於一或多個參考圖像中的一或多個預測塊執行當前圖像塊的幀間預測性編碼以去除時間冗餘。預測處理單元108將指示當前圖像塊的所選幀內或幀間預測模式的訊息提供到熵編碼器103,以便於熵編碼器103編碼指示所選幀間預測模式的訊息。The image encoder 100 receives image data and stores the image data in an image data memory. The dividing unit divides the image data into several image blocks, and these image blocks can be further divided into smaller blocks, such as image block division based on a quad-tree structure or a binary tree structure. Prediction processing unit 108 may select one of multiple possible decoding modes for the current image block, such as one of multiple intra decoding modes or one of multiple inter decoding modes. Prediction processing unit 108 may provide the resulting intra, inter decoded blocks to summer 112 to generate a residual block, and to summer 111 to reconstruct an encoded block for use as a reference image. Intra-predictor 109 within prediction processing unit 108 may perform intra-predictive encoding of the current image block relative to one or more adjacent encoded blocks in the same frame or slice as the current block to be encoded to remove spatial redundancy. Inter predictor 110 within prediction processing unit 108 may perform inter-predictive encoding of the current image block relative to one or more prediction blocks in one or more reference images to remove temporal redundancy. Prediction processing unit 108 provides information indicating the selected intra or inter prediction mode for the current image block to entropy encoder 103 for entropy encoder 103 to encode the information indicating the selected inter prediction mode.

在預測處理單元108經由幀間預測/幀內預測產生當前圖像塊的預測塊之後,影像編碼器100透過從待編碼的當前圖像塊減去所述預測塊來形成殘差圖像塊。求和器112表示執行此減法運算的一或多個組件。所述殘差塊中的殘差影像資料可包含在一或多個TU中,並應用於變換器101。變換器101使用例如離散餘弦變換(DCT)或概念上類似的變換等變換將殘差影像資料變換成殘差變換係數。變換器101可將殘差影像資料從像素值域轉換到變換域,例如頻域。After the prediction processing unit 108 generates the prediction block of the current image block via inter prediction/intra prediction, the image encoder 100 forms a residual image block by subtracting the prediction block from the current image block to be encoded. Summer 112 represents one or more components that perform this subtraction operation. Residual image data in the residual block may be included in one or more TUs and applied to transformer 101 . Transformer 101 transforms the residual image data into residual transform coefficients using a transform such as a discrete cosine transform (DCT) or a conceptually similar transform. Transformer 101 may convert residual image data from a pixel value domain to a transform domain, such as a frequency domain.

變換器101可將所得變換係數發送到量化器102。量化器102量化所述變換係數以進一步減小位元率。在一些實例中,量化器102可接著執行對包含經量化的變換係數的矩陣的掃描。或者,熵編碼器103可執行掃描。Transformer 101 may send the resulting transform coefficients to quantizer 102 . Quantizer 102 quantizes the transform coefficients to further reduce the bit rate. In some examples, quantizer 102 may then perform a scan of the matrix including the quantized transform coefficients. Alternatively, the entropy encoder 103 may perform scanning.

在量化之後,熵編碼器103對經量化變換係數進行熵編碼。舉例來說,熵編碼器103 可執行內文適應性可變長度編碼(CAVLC)、前文參考之適應性二元算術編碼(CABAC)、基於語法之前文之適應性二元算術編碼(SBAC)、概率區間分割熵(PIPE)編碼或另一熵編碼方法或技術。在由熵編碼器103熵編碼之後,可將經編碼位元流發射到影像解碼器200,或經存檔以供稍後發射或由影像解碼器200檢索。熵編碼器103還可對待編碼的當前圖像塊的語法元素進行熵編碼。After quantization, the entropy encoder 103 entropy encodes the quantized transform coefficients. For example, entropy encoder 103 may perform Context Adaptive Variable Length Coding (CAVLC), Adaptive Binary Arithmetic Coding (CABAC) referenced above, Syntax-Based Adaptive Binary Arithmetic Coding (SBAC) above, Probability Interval Partitioning Entropy (PIPE) coding or another entropy coding method or technique. After entropy encoding by entropy encoder 103 , the encoded bitstream may be transmitted to image decoder 200 , or archived for later transmission or retrieval by image decoder 200 . The entropy encoder 103 may also entropy encode the syntax elements of the current image block to be encoded.

反量化器104和反變換器105分別應用逆量化和逆變換以在像素域中重構所述殘差塊,例如以供稍後用作參考圖像的參考塊。求和器111將經重構的殘差塊添加到由幀間預測器110或幀內預測器109產生的預測塊,以產生經重構圖像塊。濾波器單元106可以適用於經重構圖像塊以減小失真,諸如區塊效應(block  artifacts)。然後,該經重構圖像塊作為參考塊儲存在記憶體107中,可由幀間預測器110用作參考塊以對後續影像幀或圖像中的塊進行幀間預測。Inverse quantizer 104 and inverse transformer 105 apply inverse quantization and inverse transform, respectively, to reconstruct the residual block in the pixel domain, eg, for later use as a reference block for a reference image. Summer 111 adds the reconstructed residual block to the prediction block produced by inter predictor 110 or intra predictor 109 to produce a reconstructed image block. Filter unit 106 may be applied to reconstructed image blocks to reduce distortions, such as block artifacts. The reconstructed image block is then stored in the memory 107 as a reference block, which can be used by the inter-predictor 110 as a reference block for inter-predicting blocks in subsequent image frames or images.

影像編碼器100將輸入影像劃分成若干個編碼樹單元,每個編碼樹單元又劃分成若干個或矩形或方形的編碼塊。在當前編碼塊選擇幀內預測模式進行編碼時,對當前編碼塊的亮度分量進行若干種預測模式的計算遍歷並根據位元率失真代價選擇最優預測模式,對當前編碼塊的色度分量進行若干種預測模式的計算遍歷並根據位元率失真代價選擇最優預測模式。之後,計算原始影像塊與預測塊之間的殘差,該殘差後續一路經過變化與量化、熵編碼等形成輸出位元流,另一路經過反變換與反量化、迴路濾波等形成重構樣本作為後續影像壓縮的參考訊息。The image encoder 100 divides the input image into a number of coding tree units, and each coding tree unit is further divided into a number of rectangular or square coding blocks. When the current coding block selects the intra-frame prediction mode for coding, the luminance component of the current coding block is subjected to calculation traversal of several prediction modes, and the optimal prediction mode is selected according to the bit rate distortion cost, and the chrominance components of the current coding block are The computation of several prediction modes traverses and selects the optimal prediction mode according to the bit rate distortion cost. After that, the residual between the original image block and the predicted block is calculated. The residual is subsequently transformed, quantized, and entropy encoded to form an output bit stream, and the other is subjected to inverse transformation, inverse quantization, and loop filtering to form a reconstructed sample. As reference information for subsequent image compression.

目前IPF技術在影像編碼器100的具體實現如下。The current specific implementation of the IPF technology in the video encoder 100 is as follows.

輸入數位影像訊息在編碼端被劃分成若干個編碼樹單元,每個編碼樹單元又被劃分成若干個或矩形或方形的編碼單元,每個編碼單元分別進行幀內預測過程計算預測塊。The input digital image information is divided into a number of coding tree units at the coding end, and each coding tree unit is further divided into a number of rectangular or square coding units, and each coding unit performs an intra-frame prediction process to calculate a prediction block.

在當前編碼單元中,In the current coding unit,

①若IPF的允許標識位為‘1’則進行如下所有步驟;①If the allowable flag bit of IPF is '1', perform all the following steps;

②若IPF的允許標識位為‘0’則僅進行a1)、b1)、f1和g1)步驟。② If the allowable flag bit of IPF is '0', only steps a1), b1), f1 and g1) are performed.

a1)    幀內預測首先對所有預測模式進行遍歷,計算每一種幀內預測模式下的預測像素,並根據原始像素計算位元率失真代價;a1) Intra prediction first traverses all prediction modes, calculates the predicted pixels in each intra prediction mode, and calculates the bit rate distortion cost according to the original pixels;

b1)    根據上述所有預測模式位元率失真代價最小原則,選擇出當前編碼單元的最優預測模式,記錄最優預測模式訊息和與之對應的位元率失真代價訊息;b1) According to the principle of minimum rate distortion cost of all the above prediction modes, select the optimal prediction mode of the current coding unit, and record the optimal prediction mode information and the corresponding bit rate distortion cost information;

c1)    對所有幀內預測模式再次進行遍歷,此過程開啟IPF技術,首先計算每一種幀內預測模式下的預測像素,得到當前編碼單元的預測塊;c1) Traverse all intra-frame prediction modes again. This process starts the IPF technology, first calculates the predicted pixels in each intra-frame prediction mode, and obtains the prediction block of the current coding unit;

d1)    對當前編碼單元的預測塊進行IPF,根據當前預測模式選擇與之相對應的濾波器,根據當前編碼單元尺寸選擇相對應的濾波係數組,具體對應關係可查表1;d1) Perform IPF on the prediction block of the current coding unit, select the corresponding filter according to the current prediction mode, and select the corresponding filter coefficient group according to the size of the current coding unit. The specific correspondence can be found in Table 1;

e1)    根據上述經過IPF技術得到的最終預測像素與原始像素計算得到每一種預測模式的位元率失真代價訊息,記錄最小位元率失真代價訊息的預測模式和對應代價值;e1) Calculate the bit rate distortion cost information of each prediction mode according to the final predicted pixels and original pixels obtained by the IPF technology, and record the prediction mode and corresponding cost value of the minimum bit rate distortion cost information;

f1)   若IPF允許標識位為‘0’,則將b1)中記錄的預測模式索引經位元流傳輸給解碼端;f1) If the IPF allows the flag bit to be '0', then transmit the prediction mode index recorded in b1) to the decoding end via the bit stream;

若IPF允許標識位為‘1’,則將b1)中記錄的最小代價值與e1)中記錄的最小代價值進行比較,If the IPF allows the flag bit to be '1', then compare the minimum cost value recorded in b1) with the minimum cost value recorded in e1),

若b1)中的位元率失真代價更小,則將b1)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將IPF當前編碼單元標識位置使用標誌位置否,表示不使用IPF技術,也經位元流傳輸給解碼端;If the bit rate distortion cost in b1) is smaller, the prediction mode index code recorded in b1) is transmitted to the decoding end as the optimal prediction mode of the current coding unit through the bit stream, and the current coding unit identification position of the IPF is used If the flag position is no, it means that IPF technology is not used, and it is also transmitted to the decoding end through the bit stream;

若e1)中的位元率失真更小,則將e1)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將IPF當前編碼單元標識位置使用標誌位置真,表示使用IPF技術,也經位元流傳輸給解碼端。If the bit rate distortion in e1) is smaller, use the prediction mode index code recorded in e1) as the optimal prediction mode of the current coding unit and transmit it to the decoding end via the bit stream, and use the IPF current coding unit identification position use flag The position is true, indicating that the IPF technology is used, and it is also transmitted to the decoding end through the bit stream.

g)  之後,將預測值與變換與量化等操作後的殘差訊息疊加,得到當前編碼單元的重建塊作為後續編碼單元的參考訊息。g) After that, superimpose the predicted value and the residual information after transformation and quantization to obtain the reconstructed block of the current coding unit as the reference information of the subsequent coding unit.

幀內預測器109還可將指示當前編碼塊所選幀內預測模式的訊息提供到熵編碼器103,以便熵編碼器103編碼指示所選幀內預測模式的訊息。Intra predictor 109 may also provide information indicating the selected intra prediction mode for the current coding block to entropy encoder 103 so that entropy encoder 103 encodes the information indicating the selected intra prediction mode.

圖8為本申請實施例中所描述的一種影像解碼器200的示例方塊圖。在圖8的實例中,影像解碼器200包括熵解碼器203、預測處理單元208、反量化器204、反變換器205、求和器211、濾波器單元206以及記憶體207。預測處理單元208可以包括幀間預測器210和幀內預測器209。在一些實例中,影像解碼器200可執行大體上與相對於來自圖7的影像編碼器100描述的編碼過程互逆的解碼過程。FIG. 8 is an exemplary block diagram of an image decoder 200 described in an embodiment of the present application. In the example of FIG. 8 , image decoder 200 includes entropy decoder 203 , prediction processing unit 208 , inverse quantizer 204 , inverse transformer 205 , summer 211 , filter unit 206 , and memory 207 . Prediction processing unit 208 may include inter predictor 210 and intra predictor 209 . In some examples, image decoder 200 may perform a decoding process that is substantially the inverse of the encoding process described with respect to image encoder 100 from FIG. 7 .

在解碼過程中,影像解碼器200從影像編碼器100接收表示經編碼影像條帶的圖像塊和相關聯的語法元素的經編碼影像位元流。影像解碼器200可從網路實體42接收影像資料,可選的,還可以將所述影像資料儲存在影像資料記憶體(圖中未示意)中。影像資料記憶體可儲存待由影像解碼器200的元件解碼的影像資料,例如經編碼影像位元流。儲存在影像資料記憶體中的影像資料,例如可從儲存裝置40、從相機等本地影像源、經由影像資料的有線或無線網路通訊或者透過存取實體資料儲存媒體而獲得。影像資料記憶體可作為用於儲存來自經編碼影像位元流的經編碼影像資料的經解碼圖像緩衝器(CPB)。During the decoding process, image decoder 200 receives from image encoder 100 an encoded image bitstream representing image blocks of an encoded image slice and associated syntax elements. The image decoder 200 may receive image data from the network entity 42, and optionally, may also store the image data in an image data memory (not shown in the figure). Image data memory may store image data, such as an encoded image bitstream, to be decoded by the components of image decoder 200 . The image data stored in the image data memory can be obtained, for example, from the storage device 40, from a local image source such as a camera, through wired or wireless network communication of the image data, or by accessing a physical data storage medium. The video data memory may act as a decoded picture buffer (CPB) for storing encoded video data from the encoded video bitstream.

網路實體42可例如為伺服器、MANE、影像編輯器/剪接器,或用於實施上文所描述的技術中的一或多者的其它此裝置。網路實體42可包括或可不包括影像編碼器,例如影像編碼器100。在網路實體42將經編碼影像位元流發送到影像解碼器200之前,網路實體42可實施本申請中描述的技術中的部分。在一些影像解碼系統中,網路實體42和影像解碼器200可為單獨裝置的部分,而在其它情況下,相對於網路實體42描述的功能性可由包括影像解碼器200的相同裝置執行。Network entity 42 may be, for example, a server, a MANE, a video editor/splicer, or other such device for implementing one or more of the techniques described above. Network entity 42 may or may not include a video encoder, such as video encoder 100 . Before network entity 42 sends the encoded video bitstream to video decoder 200, network entity 42 may implement portions of the techniques described in this application. In some video decoding systems, network entity 42 and video decoder 200 may be part of separate devices, while in other cases, functionality described with respect to network entity 42 may be performed by the same device that includes video decoder 200 .

影像解碼器200的熵解碼器203對位元流進行熵解碼以產生經量化的係數和一些語法元素。熵解碼器203將語法元素轉發到預測處理單元208。影像解碼器200可接收在影像條帶層級和/或圖像塊層級處的語法元素。當影像條帶被解碼為經幀內解碼(I)條帶時,預測處理單元208的幀內預測器209基於發訊號通知的幀內預測模式和來自當前幀或圖像的先前經解碼塊的資料而產生當前影像條帶的圖像塊的預測塊。當影像條帶被解碼為經幀間解碼(即,B或P)條帶時,預測處理單元208的幀間預測器210可基於從熵解碼器203接收到的語法元素,確定用於對當前影像條帶的當前圖像塊進行解碼的幀間預測模式,基於確定的幀間預測模式,對所述當前圖像塊進行解碼(例如執行幀間預測)。Entropy decoder 203 of image decoder 200 entropy decodes the bitstream to generate quantized coefficients and some syntax elements. Entropy decoder 203 forwards the syntax elements to prediction processing unit 208 . Image decoder 200 may receive syntax elements at the image slice level and/or the image block level. When an image slice is decoded as an intra-decoded (I) slice, the intra-predictor 209 of the prediction processing unit 208 is based on the signaled intra-prediction mode and the data to generate prediction blocks for image blocks of the current image slice. When a picture slice is decoded as an inter-decoded (ie, B or P) slice, the inter predictor 210 of the prediction processing unit 208 may determine, based on the syntax elements received from the entropy decoder 203, which method to use for the current The inter prediction mode in which the current image block of the video slice is decoded, based on the determined inter prediction mode, the current image block is decoded (eg, inter prediction is performed).

反量化器204將在位元流中提供且由熵解碼器203解碼的經量化變換係數逆量化,即去量化。逆量化過程可包括:使用由影像編碼器100針對影像條帶中的每個圖像塊計算的量化參數來確定應施加的量化程度以及同樣地確定應施加的逆量化程度。反變換器205將逆變換應用於變換係數,例如逆DCT、逆整數變換或概念上類似的逆變換過程,以便產生像素域中的殘差塊。Inverse quantizer 204 inverse quantizes, ie dequantizes, the quantized transform coefficients provided in the bitstream and decoded by entropy decoder 203 . The inverse quantization process may include using quantization parameters calculated by the image encoder 100 for each image block in the image slice to determine the degree of quantization that should be applied, and likewise the degree of inverse quantization that should be applied. The inverse transformer 205 applies an inverse transform to the transform coefficients, such as an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process, to produce a residual block in the pixel domain.

在幀間預測器210產生用於當前圖像塊或當前圖像塊的子塊的預測塊之後,影像解碼器200透過將來自反變換器205的殘差塊與由幀間預測器210產生的對應預測塊求和以得到重建的塊,即經解碼圖像塊。求和器211表示執行此求和操作的組件。在需要時,還可使用迴路濾波器(在解碼迴路中或在解碼迴路之後)來使像素轉變平滑或者以其它方式改進影像品質。濾波器單元206可以表示一或多個迴路濾波器,例如去塊濾波器、自適應迴路濾波器(ALF)以及取樣自適應偏移(SAO)濾波器。儘管在圖8中將濾波器單元206示出為迴路內濾波器,但在其它實現方式中,可將濾波器單元206實施為迴路後濾波器。After the inter predictor 210 generates a prediction block for the current image block or a sub-block of the current image block, the image decoder 200 combines the residual block from the inverse transformer 205 with the prediction block generated by the inter predictor 210 The corresponding predicted blocks are summed to obtain a reconstructed block, ie a decoded image block. Summer 211 represents the component that performs this summation operation. In-loop filters may also be used (in the decoding loop or after the decoding loop) to smooth pixel transitions or otherwise improve image quality when desired. Filter unit 206 may represent one or more in-loop filters, such as a deblocking filter, an adaptive in-loop filter (ALF), and a sample adaptive offset (SAO) filter. Although filter unit 206 is shown in FIG. 8 as an in-loop filter, in other implementations filter unit 206 may be implemented as a post-loop filter.

影像解碼器200具體執行的圖像解碼方法包括,輸入位元流在進行解析、反變換和反量化後,得到當前編碼塊的預測模式索引。若當前編碼塊色度分量的預測模式索引為增強型兩步跨分量預測模式,則根據索引值選擇僅取來自當前編碼塊的上側或者左側相鄰像素的重構樣本進行線性模型的計算,根據線性模型計算得到當前編碼塊的色度分量的參考預測塊,降採樣、並針對降採樣後的預測塊進行基於正交方向的邊界相鄰像素的相關性的預測修正,得到最終的色度分量的最終預測塊。後續位元流一路作為後續影像解碼的參考訊息,一路經過後濾波處理輸出影像訊號。The image decoding method specifically performed by the image decoder 200 includes: after the input bit stream is parsed, inversely transformed and inversely quantized, the prediction mode index of the current coding block is obtained. If the prediction mode index of the chrominance component of the current coding block is the enhanced two-step cross-component prediction mode, select only the reconstructed samples from the adjacent pixels on the upper side or the left side of the current coding block according to the index value to calculate the linear model. The linear model calculates the reference prediction block of the chrominance component of the current coding block, down-sampling, and performs prediction and correction based on the correlation of the adjacent pixels of the border in the orthogonal direction for the down-sampled prediction block to obtain the final chrominance component. the final prediction block. One of the subsequent bit streams is used as reference information for subsequent image decoding, and one of the subsequent bit streams is post-filtered to output an image signal.

目前IPF技術在影像解碼器200端具體實現如下。At present, the specific implementation of the IPF technology at the video decoder 200 is as follows.

解碼端獲取位元流並解析得到數位影像序列訊息,解析得到當前影像序列的IPF允許標識位、當前解碼單元編碼模式為幀內預測編碼模式和當前解碼單元的IPF使用標識位。The decoding end obtains the bit stream and parses to obtain the digital image sequence information, and parses to obtain the IPF permission flag of the current image sequence, the coding mode of the current decoding unit is the intra-frame prediction coding mode, and the IPF usage flag of the current decoding unit.

在當前解碼單元中,In the current decoding unit,

①若IPF的允許標識位為‘1’則進行如下所有步驟;①If the allowable flag bit of IPF is '1', perform all the following steps;

②若IPF的允許標識位為‘0’則僅進行a2)、b2)和e2)步驟:②If the allowable flag bit of IPF is '0', only steps a2), b2) and e2) are performed:

a2)    獲取位元流訊息,解析當前解碼單元的殘差訊息,經過反變換與反量化過程得到時域殘差訊息;a2) Obtain the bit stream information, analyze the residual information of the current decoding unit, and obtain the time domain residual information through the inverse transformation and inverse quantization process;

b2)    解析位元流並獲取當前解碼單元的預測模式索引,根據相鄰重建塊與預測模式索引,計算得到當前解碼單元的預測塊;b2) Parse the bit stream and obtain the prediction mode index of the current decoding unit, and calculate the prediction block of the current decoding unit according to the adjacent reconstruction block and prediction mode index;

c2)    解析並獲取IPF的使用標識位,若IPF的使用標識位為‘0’,則不對當前預測塊做額外操作;若IPF的使用標識位為‘1’,則執行d2);c2) Parse and obtain the usage flag of IPF, if the usage flag of IPF is '0', no additional operation is performed on the current prediction block; if the usage flag of IPF is '1', execute d2);

d2)    根據當前解碼單元的預測模式歸類訊息選擇相對應的濾波器,根據當前解碼單元的尺寸大小選擇相對應的濾波器係數組,之後對預測塊內各個像素進行濾波得到最終預測塊;d2) Select the corresponding filter according to the prediction mode classification information of the current decoding unit, select the corresponding filter coefficient group according to the size of the current decoding unit, and then filter each pixel in the prediction block to obtain the final prediction block;

e2)將預測塊疊加還原後的殘差訊息得到當前解碼單元的重建塊,經後處理輸出;e2) The reconstructed block of the current decoding unit is obtained by superimposing the restored residual information of the prediction block, and output after post-processing;

應當理解的是,影像解碼器200的其它結構變化可用於解碼經編碼影像位元流。例如,影像解碼器200可以不經濾波器單元206處理而生成輸出影像流;或者,對於某些圖像塊或者圖像幀,影像解碼器200的熵解碼器203沒有解碼出經量化的係數,相應地不需要經反量化器204和反變換器205處理。It should be understood that other structural variations of the video decoder 200 may be used to decode the encoded video bitstream. For example, the image decoder 200 may generate an output image stream without being processed by the filter unit 206; or, for some image blocks or image frames, the entropy decoder 203 of the image decoder 200 does not decode quantized coefficients, Accordingly, processing by inverse quantizer 204 and inverse transformer 205 is not required.

上述幀內預測技術中,現有IPF技術能夠有效提升幀內預測的編碼效率,大大增強了幀內預測的空間關聯性,很好地解決了幀內預測過程中,僅用單一參考像素行或列,而忽略了某些像素對預測值的影響。但當幀內預測過程如需要平滑處理的部分時,IPF技術和目前幀內預測模式都不能很好地解決類似問題,逐像素的根據參考像素濾波可以提高預測塊與參考塊的關聯性,卻無法解決預測塊內部的平滑問題。Among the above intra-frame prediction technologies, the existing IPF technology can effectively improve the coding efficiency of intra-frame prediction, greatly enhance the spatial correlation of intra-frame prediction, and solve the problem of using only a single reference pixel row or column in the intra-frame prediction process. , while ignoring the effect of some pixels on the predicted value. However, when the intra-frame prediction process needs to be smoothed, neither the IPF technology nor the current intra-frame prediction mode can solve similar problems well. Unable to solve the smoothing problem inside the prediction block.

根據單一預測模式計算所得的預測塊通常在紋理比較清晰的圖像當中會體現出較好的預測效果,殘差因此也會變得更小更少,編碼效率得以提升。但在紋理比較模糊的圖像塊中,過於銳化的預測可能會導致殘差增加和變大,預測效果不好,編碼效率下降。A prediction block calculated according to a single prediction mode usually shows a better prediction effect in an image with a clearer texture, and the residual error will therefore become smaller and less, and the coding efficiency will be improved. However, in image blocks with blurred texture, over-sharpened prediction may lead to increased and larger residual errors, poor prediction effect and reduced coding efficiency.

針對上述問題,本申請實施例針對一些需要平滑處理的圖像塊,提出一種基於平滑處理的IPF技術,對根據幀內預測模式得到的預測塊直接濾波。In view of the above problems, the embodiments of the present application propose an IPF technology based on smoothing processing for some image blocks that need smoothing processing, and directly filter the predicted blocks obtained according to the intra-frame prediction mode.

圖9為本申請實施例中圖像編碼方法的一種流程示意圖,該圖像編碼方法可以應用於圖6示出的影像解碼系統1中的源裝置10或圖7示出的影像編碼器100。圖9示出的流程以執行主體為圖7示出的影像編碼器100為例進行說明。如圖9所示,本申請實施例提供的跨分量預測方法包括:FIG. 9 is a schematic flowchart of an image encoding method in an embodiment of the present application, and the image encoding method may be applied to the source device 10 in the image decoding system 1 shown in FIG. 6 or the image encoder 100 shown in FIG. 7 . The flow shown in FIG. 9 is described by taking the execution subject as the video encoder 100 shown in FIG. 7 as an example. As shown in FIG. 9 , the cross-component prediction method provided by the embodiment of the present application includes:

步驟S110,劃分圖像,確定當前編碼塊的幀內預測濾波指示訊息,所述幀內預測濾波指示訊息包括第一指示訊息和第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式;Step S110: Divide the image, and determine the intra-frame prediction filtering instruction message of the current coding block, where the intra-frame prediction filtering instruction message includes a first instruction message and a second instruction message, and the first instruction message is used to indicate whether to allow the use of a first intra-frame prediction filter mode, the second indication message is used to indicate whether to allow the use of a second intra-frame prediction filter mode, and the first intra-frame prediction filter mode is an intra-frame prediction filter IPF mode;

步驟S120,若根據所述幀內預測濾波指示訊息確定所述當前編碼塊需要使用所述第一幀內預測濾波模式,則將所述當前編碼塊的所述第一幀內預測濾波模式的第一使用標識位設置為允許使用;Step S120, if it is determined according to the intra-frame prediction filtering instruction message that the current coding block needs to use the first intra-frame prediction filtering mode, then use the first intra-frame prediction filtering mode of the current coding block. - The use flag is set to allow use;

步驟S130,將所述幀內預測濾波指示訊息、所述第一幀內預測濾波模式和所述第一使用標識位經位元流傳輸;Step S130, transmitting the intra-frame prediction filtering instruction message, the first intra-frame prediction filtering mode, and the first usage flag through a bit stream;

步驟S140,將所述當前編碼塊的預測塊和經反變換、反量化後得到的殘差塊疊加,得到重建後的重建塊,作為下一個編碼塊的預測參考塊。Step S140, superimposing the prediction block of the current coding block and the residual block obtained after inverse transformation and inverse quantization to obtain a reconstructed reconstructed block, which is used as a prediction reference block of the next coding block.

本技術方案1在編碼端幀內預測部分具體實現如下:The specific implementation of the technical solution 1 in the intra-frame prediction part of the coding end is as follows:

編碼器獲取編碼訊息,包括幀內預測濾波允許標識位以及本技術方案的幀內預測平滑濾波(後續簡稱為IPS)允許標識位等,獲取圖像訊息後將圖像劃分成若干個CTU,進一步再劃分成若干個CU,每個獨立CU都進行幀內預測;The encoder obtains the encoded information, including the intra-frame prediction filtering allowable flag and the intra-frame prediction smoothing filter (hereinafter referred to as IPS) allowable flag of the technical solution, etc. After obtaining the image information, the image is divided into several CTUs, and further It is divided into several CUs, and each independent CU performs intra-frame prediction;

在幀內預測過程中,During intra prediction,

①若IPF允許標識位和IPS允許標識位都為‘1’,則執行如下所有步驟;①If the IPF allowable flag bit and the IPS allowable flag bit are both '1', perform all the following steps;

②若IPF允許標識位為‘1’、且IPS允許標識位為‘0’,則僅執行a3)、b3)、c3)、d3)、e3)、和i3)、j3);②If the IPF allowable flag bit is '1' and the IPS allowable flag bit is '0', only execute a3), b3), c3), d3), e3), and i3), j3);

③若IPF允許標識位為‘0’、且IPS允許標識位為‘1’,且當前CU面積大於等於64且小於4096,則僅執行a3)、b3)、f3)、g3)、h3)、和i3) 、j3);③ If the IPF allowable flag bit is '0', and the IPS allowable flag bit is '1', and the current CU area is greater than or equal to 64 and less than 4096, only execute a3), b3), f3), g3), h3), and i3), j3);

④若IPF允許標識位和IPS允許標識位都為‘0’,則僅執行a3)、b3)和i3) 、j3):④ If both the IPF allow flag bit and the IPS allow flag bit are '0', only execute a3), b3) and i3), j3):

a3)    當前編碼單元遍歷所有幀內預測模式,計算得到每一種預測模式下的預測塊,根據原始像素塊計算得到當前預測模式的位元率失真代價訊息;a3) The current coding unit traverses all intra prediction modes, calculates the prediction block in each prediction mode, and calculates the bit rate distortion cost information of the current prediction mode according to the original pixel block;

b3)    根據上述所有預測模式位元率失真代價最小原則,選擇出當前編碼單元的最優預測模式,記錄最優預測模式訊息和與之對應的位元率失真代價訊息;b3) According to the principle of minimum rate distortion cost of all prediction modes above, select the optimal prediction mode of the current coding unit, and record the optimal prediction mode information and the corresponding bit rate distortion cost information;

c3)    對所有幀內預測模式進行第二次遍歷,此過程開啟IPF技術,首先計算每一種幀內預測模式下的預測像素,得到當前編碼單元的預測塊;c3) Perform a second traversal of all intra-frame prediction modes. This process enables the IPF technology. First, the predicted pixels in each intra-frame prediction mode are calculated to obtain the prediction block of the current coding unit;

d3)    對當前編碼單元的預測塊進行IPF濾波,根據當前預測模式選擇與之相對應的濾波器,根據當前編碼單元尺寸選擇相對應的濾波係數組,具體對應關係可查表1;d3) Perform IPF filtering on the prediction block of the current coding unit, select the corresponding filter according to the current prediction mode, and select the corresponding filter coefficient group according to the size of the current coding unit. The specific correspondence can be found in Table 1;

e3)    根據上述經過IPF技術得到的最終預測像素與原始像素計算得到每一種預測模式的位元率失真代價訊息,記錄最小位元率失真代價訊息的預測模式和對應代價值;e3) Calculate the bit rate distortion cost information of each prediction mode according to the final predicted pixels and original pixels obtained by the IPF technology, and record the prediction mode and corresponding cost value of the minimum bit rate distortion cost information;

f3)    對所有幀內預測模式進行第三次遍歷,此過程開啟IPS技術,首先計算每一種幀內預測模式下的預測像素,得到當前編碼單元的預測塊;f3) Perform a third traversal of all intra-frame prediction modes. This process enables IPS technology. First, the predicted pixels in each intra-frame prediction mode are calculated to obtain the prediction block of the current coding unit;

g3)    對當前編碼單元的預測塊進行兩次IPS 得到最終預測塊;g3) Perform two IPS on the prediction block of the current coding unit to obtain the final prediction block;

h3)    根據上述經過IPS技術得到的最終預測像素與原始像素計算得到每一種預測模式的位元率失真代價訊息,記錄最小位元率失真代價訊息的預測模式和對應代價值;h3) Calculate the bit rate distortion cost information of each prediction mode according to the final predicted pixels and original pixels obtained by the above IPS technology, and record the prediction mode and corresponding cost value of the minimum bit rate distortion cost information;

i3)   若IPF允許標識位為‘0’且IPS允許標識位為‘0’,則將b)中記錄的預測模式索引經位元流傳輸給解碼端;i3) If the IPF allowable flag bit is '0' and the IPS allowable flag bit is '0', then the prediction mode index recorded in b) is transmitted to the decoding end via the bit stream;

若IPF允許標識位為‘1’且IPS允許標識位為‘0’,則將b)中記錄的最小代價值與e)中記錄的最小代價值進行比較,If the IPF allowable flag bit is '1' and the IPS allowable flag bit is '0', then compare the minimum cost value recorded in b) with the minimum cost value recorded in e),

若b3)中的位元率失真代價更小,則將b3)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將IPF當前編碼單元使用標誌位置‘0’,表示不使用IPF技術,也經位元流傳輸給解碼端;If the bit rate distortion cost in b3) is smaller, the prediction mode index code recorded in b3) is used as the optimal prediction mode of the current coding unit and transmitted to the decoding end via the bit stream, and the current coding unit of IPF uses the flag position '0', indicating that IPF technology is not used, and it is also transmitted to the decoding end through the bit stream;

若e3)中的位元率失真更小,則將e3)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將IPF當前編碼單元使用標誌位置‘1’,表示使用IPF技術,也經位元流傳輸給解碼端;If the bit rate distortion in e3) is smaller, then use the prediction mode index code recorded in e3) as the optimal prediction mode of the current coding unit and transmit it to the decoding end via the bit stream, and use the IPF current coding unit to use the flag position' 1', indicating that IPF technology is used, and it is also transmitted to the decoding end through the bit stream;

若IPF允許標識位為‘0’且IPS允許標識位為‘1’,則將b)中記錄的最小代價值與h)中記錄的最小代價值進行比較,If the IPF allowable flag bit is '0' and the IPS allowable flag bit is '1', then compare the minimum cost value recorded in b) with the minimum cost value recorded in h),

若b3)中的位元率失真代價更小,則將b3)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPS使用標誌位置‘0’,表示不使用該技術,也經位元流傳輸給解碼端;If the bit rate distortion cost in b3) is smaller, the prediction mode index code recorded in b3) is transmitted to the decoding end via the bit stream as the optimal prediction mode of the current coding unit, and the IPS usage flag of the current coding unit is The position is '0', which means that the technology is not used, and it is also transmitted to the decoding end through the bit stream;

若h3)中的位元率失真更小,則將h3)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPS使用標誌位置‘1’,表示使用該技術,也經位元流傳輸給解碼端;If the bit rate distortion in h3) is smaller, then use the prediction mode index code recorded in h3) as the optimal prediction mode of the current coding unit and transmit it to the decoding end via the bit stream, and use the IPS flag position of the current coding unit '1', indicating that this technology is used, and it is also transmitted to the decoding end through the bit stream;

若IPF允許標識位為‘1’且IPS允許標識位為‘1’,則將b3)、e3) 和h3) 中記錄的最小代價值進行比較,If the IPF allow flag bit is '1' and the IPS allow flag bit is '1', then compare the minimum cost values recorded in b3), e3) and h3),

若b3)中的位元率失真代價更小,則將b)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPS使用標識位和IPF使用標誌位置‘0’,表示均不使用,也經位元流傳輸給解碼端;If the bit rate distortion cost in b3) is smaller, the prediction mode index encoding recorded in b) is transmitted to the decoding end via the bit stream as the optimal prediction mode of the current coding unit, and the IPS usage flag of the current coding unit is used. Bit and IPF use flag position '0', indicating that neither is used, and is also transmitted to the decoding end through the bit stream;

若e3)中的位元率失真更小,則將e)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPF使用標識位 置‘1’且不傳輸IPS標識位,表示使用IPF技術而不使用IPS技術,也經位元流傳輸給解碼端;If the bit rate distortion in e3) is smaller, then use the prediction mode index encoding recorded in e) as the optimal prediction mode of the current coding unit and transmit it to the decoding end via the bit stream, and use the IPF use marker position of the current coding unit '1' and do not transmit the IPS identification bit, indicating that the IPF technology is used instead of the IPS technology, and it is also transmitted to the decoding end through the bit stream;

若h3)中的位元率失真更小,則將h)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPF使用標識位置‘0’且IPS使用標誌位置‘1’,表示不使用IPF技術而使用IPS技術,也經位元流傳輸給解碼端。If the bit rate distortion in h3) is smaller, then use the prediction mode index encoding recorded in h) as the optimal prediction mode of the current coding unit and transmit it to the decoding end via the bit stream, and use the IPF of the current coding unit to identify the position '0' and the IPS use flag position is '1', indicating that the IPF technology is not used but the IPS technology is used, and is also transmitted to the decoding end through the bit stream.

j3)  後將預測塊和反變換、反量化後的殘差疊加得到重建後的編碼單元塊,作為下一個編碼單元的預測參考塊。j3) Then, superimpose the prediction block and the inversely transformed and inversely quantized residuals to obtain the reconstructed coding unit block, which is used as the prediction reference block of the next coding unit.

本技術方案2在編碼端幀內預測部分具體實現如下:The technical solution 2 is specifically implemented in the intra-frame prediction part of the coding end as follows:

編碼器獲取編碼訊息,包括幀內預測濾波允許標識位以及本技術方案的幀內預測平滑濾波(後續簡稱為IPS)允許標識位等,獲取圖像訊息後將圖像劃分成若干個CTU,進一步再劃分成若干個CU,每個獨立CU都進行幀內預測;The encoder obtains the encoded information, including the intra-frame prediction filtering allowable flag and the intra-frame prediction smoothing filter (hereinafter referred to as IPS) allowable flag of the technical solution, etc. After obtaining the image information, the image is divided into several CTUs, and further It is divided into several CUs, and each independent CU performs intra-frame prediction;

在幀內預測過程中,During intra prediction,

①若IPF允許標識位和IPS允許標識位都為‘1’,則執行如下所有步驟;①If the IPF allowable flag bit and the IPS allowable flag bit are both '1', perform all the following steps;

②若IPF允許標識位為‘1’、且IPS允許標識位為‘0’,則僅執行a4)、b4)、c4)、d4)、e4)、和i4)、j4);②If the IPF allowable flag bit is '1' and the IPS allowable flag bit is '0', only execute a4), b4), c4), d4), e4), and i4), j4);

③若IPF允許標識位為‘0’、且IPS允許標識位為‘1’,且當前CU面積大於等於64且小於4096,則僅執行a4)、b4)、f4)、g4)、h4)、和i4) 、j4);③ If the IPF allowable flag bit is '0', and the IPS allowable flag bit is '1', and the current CU area is greater than or equal to 64 and less than 4096, only execute a4), b4), f4), g4), h4), and i4), j4);

④若IPF允許標識位和IPS允許標識位都為‘0’,則僅執行a4)、b4)和i4) 、j4):④ If the IPF allowable flag bit and the IPS allowable flag bit are both '0', only execute a4), b4) and i4), j4):

a4)    當前編碼單元遍歷所有幀內預測模式,計算得到每一種預測模式下的預測塊,根據原始像素塊計算得到當前預測模式的位元率失真代價訊息;a4) The current coding unit traverses all intra prediction modes, calculates the prediction block in each prediction mode, and calculates the bit rate distortion cost information of the current prediction mode according to the original pixel block;

b4)    根據上述所有預測模式位元率失真代價最小原則,選擇出當前編碼單元的最優預測模式,記錄最優預測模式訊息和與之對應的位元率失真代價訊息;b4) According to the principle of minimum rate distortion cost of all prediction modes above, select the optimal prediction mode of the current coding unit, and record the optimal prediction mode information and the corresponding bit rate distortion cost information;

c4)    對所有幀內預測模式進行第二次遍歷,此過程開啟IPF技術,首先計算每一種幀內預測模式下的預測像素,得到當前編碼單元的預測塊;c4) Perform a second traversal of all intra-frame prediction modes. This process enables the IPF technology. First, the predicted pixels in each intra-frame prediction mode are calculated to obtain the prediction block of the current coding unit;

d4)    對當前編碼單元的預測塊進行IPF濾波,根據當前預測模式選擇與之相對應的濾波器,根據當前編碼單元尺寸選擇相對應的濾波係數組,具體對應關係可查表1;d4) Perform IPF filtering on the prediction block of the current coding unit, select the corresponding filter according to the current prediction mode, and select the corresponding filter coefficient group according to the size of the current coding unit. The specific correspondence can be found in Table 1;

e4)    根據上述經過IPF技術得到的最終預測像素與原始像素計算得到每一種預測模式的位元率失真代價訊息,記錄最小位元率失真代價訊息的預測模式和對應代價值;e4) Calculate the bit rate distortion cost information of each prediction mode according to the final predicted pixels and original pixels obtained by the IPF technology, and record the prediction mode and corresponding cost value of the minimum bit rate distortion cost information;

f4)    對所有幀內預測模式進行第三次遍歷,此過程開啟IPS技術,首先計算每一種幀內預測模式下的預測像素,得到當前編碼單元的預測塊;f4) Perform a third traversal of all intra-frame prediction modes, this process enables IPS technology, first calculates the predicted pixels in each intra-frame prediction mode, and obtains the prediction block of the current coding unit;

g4)    對當前編碼單元的預測塊進行一次IPS得到最終預測塊;g4) Perform an IPS on the prediction block of the current coding unit to obtain the final prediction block;

h4)    根據上述經過IPS技術得到的最終預測像素與原始像素計算得到每一種預測模式的位元率失真代價訊息,記錄最小位元率失真代價訊息的預測模式和對應代價值;h4) Calculate the bit rate distortion cost information of each prediction mode according to the final predicted pixels and original pixels obtained by the IPS technology, and record the prediction mode and corresponding cost value of the minimum bit rate distortion cost information;

i4)   若IPF允許標識位為‘0’且IPS允許標識位為‘0’,則將b)中記錄的預測模式索引經位元流傳輸給解碼端;i4) If the IPF allowable flag bit is '0' and the IPS allowable flag bit is '0', then the prediction mode index recorded in b) is transmitted to the decoding end via the bit stream;

若IPF允許標識位為‘1’且IPS允許標識位為‘0’,則將b)中記錄的最小代價值與e)中記錄的最小代價值進行比較,If the IPF allowable flag bit is '1' and the IPS allowable flag bit is '0', then compare the minimum cost value recorded in b) with the minimum cost value recorded in e),

若b4)中的位元率失真代價更小,則將b4)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將IPF當前編碼單元使用標誌位置‘0’,表示不使用IPF技術,也經位元流傳輸給解碼端;If the bit rate distortion cost in b4) is smaller, the prediction mode index code recorded in b4) is used as the optimal prediction mode of the current coding unit and transmitted to the decoding end through the bit stream, and the current coding unit of IPF is used as the flag position. '0', indicating that IPF technology is not used, and it is also transmitted to the decoding end through the bit stream;

若e4)中的位元率失真更小,則將e4)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將IPF當前編碼單元使用標誌位置‘1’,表示使用IPF技術,也經位元流傳輸給解碼端;If the bit rate distortion in e4) is smaller, use the prediction mode index code recorded in e4) as the optimal prediction mode of the current coding unit and transmit it to the decoding end via the bit stream, and use the IPF current coding unit to use the flag position' 1', indicating that IPF technology is used, and it is also transmitted to the decoding end through the bit stream;

若IPF允許標識位為‘0’且IPS允許標識位為‘1’,則將b)中記錄的最小代價值與h)中記錄的最小代價值進行比較,If the IPF allowable flag bit is '0' and the IPS allowable flag bit is '1', then compare the minimum cost value recorded in b) with the minimum cost value recorded in h),

若b4)中的位元率失真代價更小,則將b4)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPS使用標誌位置‘0’,表示不使用該技術,也經位元流傳輸給解碼端;If the bit rate distortion cost in b4) is smaller, the prediction mode index code recorded in b4) is used as the optimal prediction mode of the current coding unit and transmitted to the decoding end via the bit stream, and the IPS usage flag of the current coding unit is used. The position is '0', which means that the technology is not used, and it is also transmitted to the decoding end through the bit stream;

若h4)中的位元率失真更小,則將h4)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPS使用標誌位置‘1’,表示使用該技術,也經位元流傳輸給解碼端;If the bit rate distortion in h4) is smaller, then use the prediction mode index code recorded in h4) as the optimal prediction mode of the current coding unit and transmit it to the decoding end through the bit stream, and use the IPS flag position of the current coding unit. '1', indicating that this technology is used, and it is also transmitted to the decoding end through the bit stream;

若IPF允許標識位為‘1’且IPS允許標識位為‘1’,則將b4)、e4) 和h4) 中記錄的最小代價值進行比較,If the IPF allow flag bit is '1' and the IPS allow flag bit is '1', then compare the minimum cost values recorded in b4), e4) and h4),

若b4)中的位元率失真代價更小,則將b)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPS使用標識位和IPF使用標誌位置‘0’,表示均不使用,也經位元流傳輸給解碼端;If the bit rate distortion cost in b4) is smaller, the prediction mode index code recorded in b) is transmitted to the decoding end as the optimal prediction mode of the current coding unit through the bit stream, and the IPS usage flag of the current coding unit is used. Bit and IPF use flag position '0', indicating that neither is used, and is also transmitted to the decoding end through the bit stream;

若e4)中的位元率失真更小,則將e)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPF使用標識位 置‘1’且不傳輸IPS標識位,表示使用IPF技術而不使用IPS技術,也經位元流傳輸給解碼端;If the bit rate distortion in e4) is smaller, then use the prediction mode index encoding recorded in e) as the optimal prediction mode of the current coding unit and transmit it to the decoding end through the bit stream, and use the IPF of the current coding unit to identify the position '1' and do not transmit the IPS identification bit, indicating that the IPF technology is used instead of the IPS technology, and it is also transmitted to the decoding end through the bit stream;

若h4)中的位元率失真更小,則將h)中記錄的預測模式索引編碼作為當前編碼單元的最優預測模式經位元流傳輸給解碼端,將當前編碼單元的IPF使用標識位置‘0’且IPS使用標誌位置‘1’,表示不使用IPF技術而使用IPS技術,也經位元流傳輸給解碼端。If the bit rate distortion in h4) is smaller, then use the prediction mode index encoding recorded in h) as the optimal prediction mode of the current coding unit and transmit it to the decoding end via the bit stream, and use the IPF of the current coding unit to identify the position '0' and the IPS use flag position is '1', indicating that the IPF technology is not used but the IPS technology is used, and is also transmitted to the decoding end through the bit stream.

j4)  後將預測塊和反變換、反量化後的殘差疊加得到重建後的編碼單元塊,作為下一個編碼單元的預測參考塊。j4) After that, superimpose the prediction block and the residual after inverse transformation and inverse quantization to obtain the reconstructed coding unit block, which is used as the prediction reference block of the next coding unit.

與圖9所述的圖像編碼方法對應的,圖10為本申請實施例中圖像編碼方法的一種流程示意圖,該圖像編碼方法可以應用於圖6示出的影像解碼系統1中的目的裝置20或圖8示出的影像解碼器200。圖10示出的流程以執行主體為圖8示出的影像編碼器200為例進行說明。如圖10所示,本申請實施例提供的跨分量預測方法包括:Corresponding to the image encoding method shown in FIG. 9 , FIG. 10 is a schematic flowchart of the image encoding method in the embodiment of the present application, and the image encoding method can be applied to the purpose of the image decoding system 1 shown in FIG. 6 . The device 20 or the video decoder 200 shown in FIG. 8 . The flow shown in FIG. 10 is described by taking the execution subject as the video encoder 200 shown in FIG. 8 as an example. As shown in FIG. 10 , the cross-component prediction method provided by the embodiment of the present application includes:

步驟S210,解析位元流,確定當前解碼塊的幀內預測濾波指示訊息和第一使用標識位,所述幀內預測指示訊息包括第一指示訊息、第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式,所述第一使用標誌位為所述第一幀內預測濾波模式的使用標識位;Step S210, parse the bit stream to determine the intra-frame prediction filtering indication message and the first usage flag of the current decoding block, where the intra-frame prediction indication message includes a first indication message and a second indication message, the first indication message Used to indicate whether to allow the use of the first intra-frame prediction filtering mode, the second indication message is used to indicate whether to allow the use of the second intra-frame prediction filtering mode, the first intra-frame prediction filtering mode is the intra-frame prediction filtering IPF mode , the first use flag is the use flag of the first intra-frame prediction filtering mode;

步驟S220,根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。Step S220, according to the intra-frame prediction filtering instruction message and the first use flag, determine to use the first frame rate prediction filtering mode to obtain the prediction block of the decoding block.

本技術方案1在解碼端幀內預測具體流程如下:The specific process of intra-frame prediction at the decoding end of the technical solution 1 is as follows:

解碼器獲取碼位元流,解析位元流得到當前影像序列的IPF允許標識位和IPS允許標識位,解析位元流並對得到的殘差訊息進行反變換和反量化。The decoder obtains the code bit stream, parses the bit stream to obtain the IPF permission flag and IPS permission flag of the current image sequence, parses the bit stream and performs inverse transformation and inverse quantization on the obtained residual information.

在幀內預測解碼過程中,During the intra-frame prediction decoding process,

①若IPF的允許標識位和IPS的標識位都為‘1’,則執行如下所有步驟;①If the allowable flag bit of IPF and the flag bit of IPS are both '1', perform all the following steps;

②若IPF的允許標識位為‘1’且IPS的標識位為‘0’,則僅執行a5)、b5)、c5)、d5)和g5)步驟;②If the allowable identification bit of IPF is '1' and the identification bit of IPS is '0', then only steps a5), b5), c5), d5) and g5) are performed;

③若IPF的允許標識位為‘0’且IPS的標識位為‘1’, 且當前CU面積大於等於65且小於5096,則僅執行a5)、b5)、e5)、f5)和g5)步驟;3. If the allowable identification bit of IPF is '0' and the identification bit of IPS is '1', and the current CU area is greater than or equal to 65 and less than 5096, then only a5), b5), e5), f5) and g5) steps are performed ;

④若IPF的允許標識位和IPS的標識位都為‘0’,則僅執行a5)、b5)和g5)步驟;④If the allowable identification bit of IPF and the identification bit of IPS are all '0', then only a5), b5) and g5) steps are performed;

a5)獲取位元流並解碼得到殘差訊息,經過反變換與反量化等過程得到時域殘差訊息;a5) Obtaining the bit stream and decoding to obtain residual information, and obtaining time-domain residual information through processes such as inverse transformation and inverse quantization;

b5)解析位元流得到當前解碼單元的預測模式,根據當前解碼單元的預測模式和相鄰重建塊計算得到預測塊;b5) parse the bit stream to obtain the prediction mode of the current decoding unit, and calculate the prediction block according to the prediction mode of the current decoding unit and the adjacent reconstruction block;

c5)解析並獲取IPF的使用標識位,c5) Parse and obtain the usage flag of IPF,

若IPF的使用標識位為‘0’,則不對當前預測塊做額外操作;If the use flag of IPF is '0', no additional operation is performed on the current prediction block;

若IPF的使用標識位為‘1’,則執行d5);If the use flag of IPF is '1', then execute d5);

d5)根據當前解碼單元的預測模式歸類訊息選擇相對應的濾波器,根據當前解碼單元的尺寸大小選擇相對應的濾波器係數組,之後對預測塊內各個像素進行濾波得到預測塊;d5) selecting the corresponding filter according to the prediction mode classification information of the current decoding unit, selecting the corresponding filter coefficient group according to the size of the current decoding unit, then filtering each pixel in the prediction block to obtain the prediction block;

e5)獲取IPF的使用標識位,e5) Obtain the usage flag of IPF,

若IPF的使用標識位為‘1’,則跳過本步驟剩餘過程,並跳過f5)步驟;If the use identification bit of IPF is '1', then skip the remaining process of this step, and skip the step f5);

若IPF的使用標識位為‘0’,則解析並獲取IPS的使用標識位。If the usage flag of the IPF is '0', parse and obtain the usage flag of the IPS.

若IPS的使用標識位為‘0’,則不對當前預測塊做額外操作;If the use flag bit of IPS is '0', no additional operation is performed on the current prediction block;

若IPS的使用標識位為‘1’,則執行f5);If the use flag of IPS is '1', then execute f5);

f5)使用IPS器對輸入的預測塊進行兩次濾波,得到濾波後的當前解碼單元預測塊;f5) use the IPS device to filter the input prediction block twice to obtain the filtered current decoding unit prediction block;

g5)將預測塊疊加還原後的殘差訊息得到當前解碼單元的重建塊,經後處理輸出;g5) The reconstructed block of the current decoding unit is obtained by superimposing the restored residual information of the prediction block, which is output after post-processing;

本技術方案2在解碼端幀內預測具體流程如下:The specific process of intra-frame prediction at the decoding end in the technical solution 2 is as follows:

解碼器獲取位元流,解析位元流得到當前影像序列的IPF允許標識位和IPS允許標識位,解析位元流並對得到的殘差訊息進行反變換和反量化。The decoder obtains the bit stream, parses the bit stream to obtain the IPF permission flag and IPS permission flag of the current image sequence, parses the bit stream and performs inverse transformation and inverse quantization on the obtained residual information.

在幀內預測解碼過程中,During the intra-frame prediction decoding process,

①若IPF的允許標識位和IPS的標識位都為‘1’,則執行如下所有步驟;①If the allowable flag bit of IPF and the flag bit of IPS are both '1', perform all the following steps;

②若IPF的允許標識位為‘1’且IPS的標識位為‘0’,則僅執行a6)、b6)、c6)、d6)和g6)步驟;②If the allowable identification bit of IPF is '1' and the identification bit of IPS is '0', then only steps a6), b6), c6), d6) and g6) are performed;

③若IPF的允許標識位為‘0’且IPS的標識位為‘1’, 且當前CU面積大於等於66且小於6096,則僅執行a6)、b6)、e6)、f6)和g6)步驟;3. If the allowable identification bit of IPF is '0' and the identification bit of IPS is '1', and the current CU area is greater than or equal to 66 and less than 6096, then only a6), b6), e6), f6) and g6) steps are performed ;

④若IPF的允許標識位和IPS的標識位都為‘0’,則僅執行a6)、b6)和g6)步驟;④If the allowable identification bit of IPF and the identification bit of IPS are all '0', then only a6), b6) and g6) steps are performed;

a6)獲取位元流並解碼得到殘差訊息,經過反變換與反量化等過程得到時域殘差訊息;a6) Obtain the bit stream and decode to obtain residual information, and obtain time-domain residual information through processes such as inverse transformation and inverse quantization;

b6)解析位元流得到當前解碼單元的預測模式,根據當前解碼單元的預測模式和相鄰重建塊計算得到預測塊;b6) parse the bit stream to obtain the prediction mode of the current decoding unit, and calculate the prediction block according to the prediction mode of the current decoding unit and the adjacent reconstruction block;

c6)解析並獲取IPF的使用標識位,c6) Parse and obtain the usage flag of IPF,

若IPF的使用標識位為‘0’,則不對當前預測塊做額外操作;If the use flag of IPF is '0', no additional operation is performed on the current prediction block;

若IPF的使用標識位為‘1’,則執行d6);If the use flag of IPF is '1', execute d6);

d6)根據當前解碼單元的預測模式歸類訊息選擇相對應的濾波器,根據當前解碼單元的尺寸大小選擇相對應的濾波器係數組,之後對預測塊內各個像素進行濾波得到預測塊;d6) selecting the corresponding filter according to the prediction mode classification information of the current decoding unit, selecting the corresponding filter coefficient group according to the size of the current decoding unit, then filtering each pixel in the prediction block to obtain the prediction block;

e6)獲取IPF的使用標識位,e6) Obtain the usage flag of IPF,

若IPF的使用標識位為‘1’,則跳過本步驟剩餘過程,並跳過f6)步驟;If the use identification bit of IPF is '1', then skip the remaining process of this step, and skip step f6);

若IPF的使用標識位為‘0’,則解析並獲取IPS的使用標識位。If the usage flag of the IPF is '0', parse and obtain the usage flag of the IPS.

若IPS的使用標識位為‘0’,則不對當前預測塊做額外操作;If the use flag bit of IPS is '0', no additional operation is performed on the current prediction block;

若IPS的使用標識位為‘1’,則執行f6);If the use flag of IPS is '1', then execute f6);

f6)使用IPS器對輸入的預測塊進行一次濾波,得到濾波後的當前解碼單元預測塊;f6) use the IPS device to filter the input prediction block once to obtain the filtered current decoding unit prediction block;

g6)將預測塊疊加還原後的殘差訊息得到當前解碼單元的重建塊,經後處理輸出;g6) The reconstructed block of the current decoding unit is obtained by superimposing the restored residual information of the prediction block, which is output after post-processing;

本技術方案作用在編解碼框架中的幀內預測部分。上述使用IPS技術對當前編碼單元或解碼單元進行濾波時,需要先對當前塊進行填充,步驟如下:The technical solution acts on the intra-frame prediction part in the coding and decoding framework. When using the IPS technology to filter the current coding unit or decoding unit, the current block needs to be filled first, and the steps are as follows:

a7)    若當前預測塊外的左側和上側的參考像素可用,即左側和上側有重建像素,則左側一列和上側一行使用重建像素進行填充;a7) If the reference pixels on the left side and the top side outside the current prediction block are available, that is, there are reconstructed pixels on the left side and the top side, then the left column and the top row are filled with reconstructed pixels;

b7)    若當前預測塊外的左側或上側的參考像素不可用,即左側或上側沒有重建像素,則沒有重建像素的一側使用當前預測塊最靠近那一側的行或列進行填充;b7) If the reference pixels on the left or upper side outside the current prediction block are unavailable, that is, there are no reconstructed pixels on the left or upper side, the side without reconstructed pixels is filled with the row or column closest to that side of the current prediction block;

c7)    對當前預測塊外的右側相鄰列使用當前預測塊的最右列預測值進行填充;c7) Fill the right adjacent column outside the current prediction block with the predicted value of the rightmost column of the current prediction block;

d7)    對當前預測塊外的下側相鄰行使用當前預測塊的最下行預測值進行填充;d7) Fill the lower adjacent row outside the current prediction block with the lowest row prediction value of the current prediction block;

對當前預測塊外的右上角像素點使用當前預測塊外上側已填充的最右側像素點進行填充,對當前預測塊外的右下角像素點使用當前預測塊外下側已填充的最右側像素點進行填充,對當前預測塊外的左下角像素點使用當前預測塊外左側已填充填充額的最下側像素點進行填充。Fill the upper right corner pixel outside the current prediction block with the rightmost pixel filled on the upper side of the current prediction block, and use the filled rightmost pixel outside the current prediction block for the lower right pixel outside the current prediction block. Padding is performed, and the bottom-left pixel point outside the current prediction block is filled with the bottommost pixel point that has been filled with the padding amount on the left side outside the current prediction block.

圖11A給出了預測塊的一種填充示意圖,其中,Pred.Pixel表示預測塊的像素,Recon.Pixel表示填充的像素。FIG. 11A shows a filling schematic diagram of the prediction block, wherein Pred.Pixel represents the pixel of the prediction block, and Recon.Pixel represents the filled pixel.

圖11B給出了預測塊的另一種填充示意圖,其中,Pred.Pixel表示預測塊的像素,Recon.Pixel表示填充的像素。FIG. 11B shows another filling schematic diagram of the prediction block, wherein Pred.Pixel represents the pixel of the prediction block, and Recon.Pixel represents the filled pixel.

上述IPS技術採用簡化的高斯卷積核對預測塊進行濾波,濾波器共有9個抽頭,9個不同濾波係數,如下所示:

Figure 02_image007
The above IPS technology uses a simplified Gaussian convolution kernel to filter the prediction block. The filter has 9 taps and 9 different filter coefficients, as shown below:
Figure 02_image007

filter_coefficients表示濾波器係數。filter_coefficients represents filter coefficients.

對預測塊中的每個預測像素進行濾波,濾波公式如下:

Figure 02_image009
Filter each predicted pixel in the predicted block, and the filtering formula is as follows:
Figure 02_image009

上述式子中,P' (x, y)為當前編碼單元(x, y)處的最終預測值,c1 、c2 和c3 分別為上述濾波器中的係數,在上述近似高斯卷積核係數中,c1 為0075,c2 為0.124,c3 為0.204。P(x, y)與其他如P(x-1, y-1)為位於當前編碼單元(x, y)與(x-1, y-1)處的預測值,其中x與y的取值範圍均不超過當前編碼單元塊的寬與高。In the above formula, P' (x, y) is the final predicted value at the current coding unit (x, y), c 1 , c 2 and c 3 are the coefficients in the above filters, respectively, in the above approximate Gaussian convolution In the kernel coefficient, c 1 is 0075, c 2 is 0.124, and c 3 is 0.204. P(x, y) and others such as P(x-1, y-1) are the predicted values located at the current coding units (x, y) and (x-1, y-1), where the values of x and y are The value range does not exceed the width and height of the current coding unit block.

上述IPS技術所採用的卷積核係數可以近似為整數且所有係數和為2的指數冪,既可以避免電腦的浮點計算又可以避免除法運算,大大減少了計算複雜度,如下所示:

Figure 02_image011
The convolution kernel coefficients used by the above IPS technology can be approximated as integers and all coefficients sum to the exponential power of 2, which can avoid both floating-point calculations and division operations of the computer, which greatly reduces the computational complexity, as shown below:
Figure 02_image011

上述濾波係數總和為64,即計算得到的預測值需要向右移6位。The sum of the above filter coefficients is 64, that is, the calculated predicted value needs to be shifted to the right by 6 bits.

上述技術方案2中IPS技術採用簡化的高斯卷積核對預測塊進行濾波,濾波器共有25個抽頭,6個不同濾波係數,如下所示:

Figure 02_image013
In the above technical solution 2, the IPS technology uses a simplified Gaussian convolution kernel to filter the prediction block. The filter has a total of 25 taps and 6 different filter coefficients, as shown below:
Figure 02_image013

對預測塊中的每個預測像素進行濾波,濾波公式如下:

Figure 02_image015
Filter each predicted pixel in the predicted block, and the filtering formula is as follows:
Figure 02_image015

上述式子中,P' (x, y)為當前編碼單元(x, y)處的最終預測值,c1 、c2 、c3 、c4 、c5 和c6 分別為上述濾波器中的係數,在上述近似高斯卷積核係數中,c1 為0.0030,c2 為0.0133,c3 為0.0219,c4 為0.0596,c5 為0.0983,c6 為0.1621。P(x, y)與其他如P(x-1,y-1)為位於當前編碼單元(x, y)與(x-1,y-1)處的預測值,其中x與y的取值範圍均不超過當前編碼單元塊的寬與高。In the above formula, P' (x, y) is the final predicted value at the current coding unit (x, y), c 1 , c 2 , c 3 , c 4 , c 5 and c 6 are the In the above approximate Gaussian convolution kernel coefficients, c 1 is 0.0030, c 2 is 0.0133, c 3 is 0.0219, c 4 is 0.0596, c 5 is 0.0983, and c 6 is 0.1621. P(x, y) and others such as P(x-1, y-1) are the predicted values located at the current coding units (x, y) and (x-1, y-1), where the values of x and y are The value range does not exceed the width and height of the current coding unit block.

上述IPS技術所採用的卷積核係數可以近似為整數且所有係數和為2的指數冪,既可以避免電腦的浮點計算又可以避免除法運算,大大減少了計算複雜度,如下所示:

Figure 02_image017
The convolution kernel coefficients used by the above IPS technology can be approximated as integers and all coefficients sum to the exponential power of 2, which can avoid both floating-point calculations and division operations of the computer, which greatly reduces the computational complexity, as shown below:
Figure 02_image017

上述濾波係數總和為1024,即計算得到的預測值需要向右移10位。The sum of the above filter coefficients is 1024, that is, the calculated predicted value needs to be shifted to the right by 10 bits.

上述技術方案2中IPS技術還可以採用簡化的高斯卷積核對預測塊進行濾波,濾波器共有13個抽頭,4個不同濾波係數,如下所示:

Figure 02_image019
In the above technical solution 2, the IPS technology can also use a simplified Gaussian convolution kernel to filter the prediction block. The filter has a total of 13 taps and 4 different filter coefficients, as shown below:
Figure 02_image019

對預測塊中的每個預測像素進行濾波,濾波公式如下:Filter each predicted pixel in the predicted block, and the filtering formula is as follows:

濾波公式如下:

Figure 02_image021
The filtering formula is as follows:
Figure 02_image021

上述式子中,P' (x, y)為當前編碼單元(x, y)處的最終預測值,c1 、c2 、c3 和c4 分別為上述濾波器中的係數,在上述近似高斯卷積核係數中,c1 為13,c2 為18,c3 為25,c4 為32。P(x, y)與其他如P(x-1, y-1)為位於當前編碼單元(x, y)與(x-1, y-1)處的預測值,其中x與y的取值範圍均不超過當前編碼單元塊的寬與高。In the above formula, P' (x, y) is the final predicted value at the current coding unit (x, y), c 1 , c 2 , c 3 and c 4 are the coefficients in the above filter, respectively, in the above approximation Among the Gaussian convolution kernel coefficients, c 1 is 13, c 2 is 18, c 3 is 25, and c 4 is 32. P(x, y) and others such as P(x-1, y-1) are the predicted values located at the current coding units (x, y) and (x-1, y-1), where the values of x and y are The value range does not exceed the width and height of the current coding unit block.

上述濾波係數總和為256,即計算得到的預測值需要向右移8位。The sum of the above filter coefficients is 256, that is, the calculated predicted value needs to be shifted to the right by 8 bits.

本技術方案將適用於幀內預測編解碼部分,為幀內預測在需要平滑處理或局部模糊等操作上提供選擇,對於圖像紋理不需要太銳化的部分,使用該技術使得預測像素更加平滑,預測塊更加接近原始圖像,最終將提高編碼效率。This technical solution will be applied to the coding and decoding part of intra-frame prediction, providing options for intra-frame prediction in operations that require smoothing or local blurring, and for parts where the image texture does not need to be too sharp, using this technology makes the predicted pixels smoother , the predicted block is closer to the original image, which will eventually improve the coding efficiency.

技術方案1在AVS的官方模擬平臺HPM7.0上進行了測試,對幀內預測塊進行平滑濾波,在全幀內測試條件和隨機存取條件下,測試結果如表2和表3所示。Technical solution 1 was tested on AVS' official simulation platform HPM7.0, and smooth filtering was performed on the intra-frame prediction block. The test results are shown in Table 2 and Table 3 under full intra-frame test conditions and random access conditions.

表2  All Intra測試結果 Class Y U V 4K -0.61% -0.67% -0.84% 1080P -0.45% -0.78% -0.48% 720P -0.22% -0.08% -0.66% 平均性能 -0.42% -0.51% -0.66% Table 2 All Intra test results Class Y U V 4K -0.61% -0.67% -0.84% 1080P -0.45% -0.78% -0.48% 720P -0.22% -0.08% -0.66% Average performance -0.42% -0.51% -0.66%

表3  Random Access測試結果 Class Y U V 4K -0.25% -0.37% -0.57% 1080P -0.22% -0.41% -0.64% 720P -0.22% -0.01% -0.73% 平均性能 -0.23% -0.26% -0.65% Table 3 Random Access test results Class Y U V 4K -0.25% -0.37% -0.57% 1080P -0.22% -0.41% -0.64% 720P -0.22% -0.01% -0.73% Average performance -0.23% -0.26% -0.65%

從表2和表3種可以看出,本方案在兩種測試條件下都具有不錯的性能提升。It can be seen from Table 2 and Table 3 that this scheme has a good performance improvement under both test conditions.

在AI測試條件下,亮度分量具有0.42%的BDBR節省,UV分量各有0.51%和0.66%的BDBR節省,能夠明顯看出具有較高的性能,有效提升編碼器的編碼效率。Under the AI test conditions, the luminance component has a BDBR saving of 0.42%, and the UV component has a BDBR saving of 0.51% and 0.66% respectively. It can be clearly seen that it has high performance and effectively improves the coding efficiency of the encoder.

從各個解析度來看,本方案在4K解析度的影像上均具有較大的編碼性能提升,這將有利於未來超高清影像的發展,為超高解析度影像節省更多碼率,節省更多頻寬。From the perspective of various resolutions, this solution has a large encoding performance improvement on 4K resolution images, which will be beneficial to the development of ultra-high-definition images in the future, save more bit rate for ultra-high-resolution images, and save more multiple bandwidths.

本方案提出在幀內預測過程中,對幀內預測模式計算得到的預測塊進行平滑濾波,提高幀內預測精度,有效提升編碼效率,具體如下:This scheme proposes to perform smooth filtering on the prediction block calculated by the intra-frame prediction mode during the intra-frame prediction process, so as to improve the intra-frame prediction accuracy and effectively improve the coding efficiency. The details are as follows:

1.      提出對幀內編碼的預測塊進行平滑濾波;1. It is proposed to smooth the intra-coded prediction block;

2.      提出IPS技術與IPF在兩個技術的允許標識位均為‘1’的情況下,同一編碼單元中IPF與IPS不會同時被確定使用;2. It is proposed that in the case of IPS technology and IPF, when the allowable flag bits of the two technologies are both '1', IPF and IPS in the same coding unit will not be determined to be used at the same time;

3.      提出編碼器決定對當前編碼單元使用IPF技術時,不傳輸IPS的標識位,解碼器不需要解析IPS的使用標識位;3. It is proposed that when the encoder decides to use the IPF technology for the current coding unit, the IPS identification bit is not transmitted, and the decoder does not need to parse the IPS use identification bit;

編碼器決定對當前編碼單元不使用IPF技術時,需要傳輸IPS的標識位,解碼器需要解析IPS的使用標識位;When the encoder decides not to use the IPF technology for the current coding unit, it needs to transmit the identification bit of the IPS, and the decoder needs to parse the use identification bit of the IPS;

4.      提出IPS卷積核為簡化的9抽頭濾波高斯卷積核;4. The IPS convolution kernel is proposed as a simplified 9-tap filtering Gaussian convolution kernel;

5.      提出對浮點數的卷積核進行近似取值,對濾波係數取整以避免浮點計算,濾波係數總和為2的指數冪以移位操作代替除法運算,節省計算資源和降低複雜度;5. It is proposed to approximate the value of the convolution kernel of floating-point numbers, round the filter coefficients to avoid floating-point calculations, and use the shift operation instead of the division operation to save computing resources and reduce the complexity. ;

6.      提出9抽頭整數高斯卷積核濾波器係數為,第一濾波係數為5,第二濾波係數為8以及第三濾波係數為12,經過濾波後的預測值需要向右移6位;6. It is proposed that the 9-tap integer Gaussian convolution kernel filter coefficient is, the first filter coefficient is 5, the second filter coefficient is 8 and the third filter coefficient is 12, the predicted value after filtering needs to be shifted to the right by 6 bits;

7.   提出25抽頭與13抽頭濾波器。7. Propose 25-tap and 13-tap filters.

本申請還可以從以下方向進行進一步擴展。The present application can also be further expanded from the following directions.

擴展方案1:將本技術方案中的9抽頭高斯卷積核替換成更多抽頭的濾波卷積核,以達到更好的平滑濾波效果。Extension 1: Replace the 9-tap Gaussian convolution kernel in this technical solution with a filter convolution kernel with more taps to achieve a better smoothing filtering effect.

擴展方案2:將本技術方案中的亮度分量和色度分量分別使用獨立標識位表示IPS的使用與否。Extended solution 2: The luminance component and the chrominance component in this technical solution are respectively used with independent identification bits to indicate whether the IPS is used or not.

擴展方案3:將本技術方案中的使用範圍進行限制,對於預測塊面積較小的單元不使用IPS技術,以減少傳輸標識位和降低計算複雜度。Extended solution 3: The scope of use in this technical solution is limited, and IPS technology is not used for units with smaller prediction block areas, so as to reduce transmission identification bits and reduce computational complexity.

擴展方案4:將本技術方案中的使用範圍進行限制,對於當前編碼單元的預測模式進行篩選,若為均值模式,則不使用IPS技術,以減少傳輸標識位和降低計算複雜度。Extended solution 4: The scope of use in this technical solution is limited, and the prediction mode of the current coding unit is screened. If it is an average mode, the IPS technology is not used to reduce transmission identification bits and computational complexity.

本申請實施例提供一種圖像編碼裝置,該圖像編碼裝置可以為影像解碼器或影像編碼器。具體的,圖像編碼裝置用於執行以上解碼方法中的影像解碼器所執行的步驟。本申請實施例提供的圖像編碼裝置可以包括相應步驟所對應的模組。An embodiment of the present application provides an image encoding apparatus, and the image encoding apparatus may be an image decoder or an image encoder. Specifically, the image encoding apparatus is configured to perform the steps performed by the image decoder in the above decoding method. The image encoding apparatus provided by the embodiments of the present application may include modules corresponding to corresponding steps.

本申請實施例可以根據上述方法示例對圖像編碼裝置進行功能模組的劃分,例如,可以對應各個功能劃分各個功能模組,也可以將兩個或兩個以上的功能集成在一個處理模組中。上述集成的模組既可以採用硬體的形式實現,也可以採用軟體功能模組的形式實現。本申請實施例中對模組的劃分是示意性的,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。In this embodiment of the present application, the image coding apparatus can be divided into functional modules according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. middle. The above-mentioned integrated modules can be implemented in the form of hardware, or can be implemented in the form of software function modules. The division of modules in the embodiments of the present application is schematic, and is only a logical function division, and other division methods may be used in actual implementation.

在採用對應各個功能劃分各個功能模組的情況下,圖12示出上述實施例中所涉及的圖像編碼裝置的一種可能的結構示意圖。如圖12所示,圖像編碼裝置12包括劃分單元124、確定單元121、傳輸單元122、疊加單元123。In the case where each functional module is divided according to each function, FIG. 12 shows a possible schematic structural diagram of the image encoding apparatus involved in the above embodiment. As shown in FIG. 12 , the image encoding apparatus 12 includes a division unit 124 , a determination unit 121 , a transmission unit 122 , and a superimposition unit 123 .

劃分單元124,用於劃分圖像,確定當前編碼塊的幀內預測濾波指示訊息,所述幀內預測濾波指示訊息包括第一指示訊息和第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式;The dividing unit 124 is configured to divide the image and determine the intra-frame prediction filtering instruction message of the current coding block, where the intra-frame prediction filtering instruction message includes a first indication message and a second indication message, and the first indication message is used to indicate Whether to allow the use of the first intra-frame prediction filtering mode, the second indication message is used to indicate whether to allow the use of the second intra-frame prediction filtering mode, and the first intra-frame prediction filtering mode is the intra-frame prediction filtering IPF mode;

確定單元121,用於若根據所述幀內預測濾波指示訊息確定所述當前編碼塊需要使用所述第一幀內預測濾波模式,則將所述當前編碼塊的所述第一幀內預測濾波模式的第一使用標識位設置為允許使用;The determining unit 121 is configured to filter the first intra-frame prediction of the current coding block if it is determined according to the intra-frame prediction filtering instruction message that the current coding block needs to use the first intra-frame prediction filtering mode The first use flag of the mode is set to allow use;

傳輸單元122,用於將所述幀內預測濾波指示訊息、所述第一幀內預測濾波模式和所述第一使用標識位經位元流傳輸;a transmission unit 122, configured to transmit the intra-frame prediction filter indication message, the first intra-frame prediction filter mode and the first use identification bit through a bit stream;

疊加單元123,用於根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。The superimposing unit 123 is configured to determine, according to the intra-frame prediction filtering instruction message and the first usage flag, to obtain the prediction block of the decoding block by using the first frame rate prediction filtering mode.

其中,上述方法實施例涉及的各步驟的所有相關內容均可以援引到對應功能模組的功能描述,在此不再贅述。當然,本申請實施例提供的圖像編碼裝置包括但不限於上述模組,例如:圖像編碼裝置還可以包括儲存單元。儲存單元可以用於儲存該圖像編碼裝置的程式碼和資料。Wherein, all relevant contents of the steps involved in the above method embodiments can be cited in the functional descriptions of the corresponding functional modules, which will not be repeated here. Of course, the image encoding apparatus provided in the embodiment of the present application includes but is not limited to the above-mentioned modules. For example, the image encoding apparatus may further include a storage unit. The storage unit can be used to store the code and data of the image encoding device.

在採用集成的單元的情況下,本申請實施例提供的圖像編碼裝置的結構示意圖如圖13所示。在圖13中,圖像編碼裝置13包括:處理模組130和通訊模組131。處理模組130用於對圖像編碼裝置的動作進行控制管理,例如,執行劃分單元124、確定單元121、傳輸單元122、疊加單元123執行的步驟,和/或用於執行本文所描述的技術的其它過程。通訊模組131用於支援圖像編碼裝置與其他設備之間的交互。如圖13所示,圖像編碼裝置還可以包括儲存模組132,儲存模組132用於儲存圖像編碼裝置的程式碼和資料,例如儲存上述儲存單元所保存的內容。In the case of using an integrated unit, a schematic structural diagram of the image encoding apparatus provided by the embodiment of the present application is shown in FIG. 13 . In FIG. 13 , the image encoding device 13 includes: a processing module 130 and a communication module 131 . The processing module 130 is used to control and manage the actions of the image encoding device, for example, to perform the steps performed by the division unit 124, the determination unit 121, the transmission unit 122, and the superimposition unit 123, and/or to perform the techniques described herein. other processes. The communication module 131 is used to support the interaction between the image encoding device and other devices. As shown in FIG. 13 , the image encoding apparatus may further include a storage module 132, and the storage module 132 is used to store the program codes and data of the image encoding apparatus, for example, to store the contents stored in the above-mentioned storage unit.

其中,處理模組130可以是處理器或控制器,例如可以是中央處理器(Central Processing Unit,CPU),通用處理器,數位訊號處理器(Digital  Signal  Processor,DSP),ASIC,FPGA或者其他可程式邏輯器件、電晶體邏輯器件、硬體部件或者其任意組合。其可以實現或執行結合本申請公開內容所描述的各種示例性的邏輯方塊,模組和電路。所述處理器也可以是實現計算功能的組合,例如包含一個或多個微處理器組合,DSP和微處理器的組合等等。通訊模組131可以是收發器、RF電路或通訊介面等。儲存模組132可以是記憶體。The processing module 130 may be a processor or a controller, such as a central processing unit (Central Processing Unit, CPU), a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), ASIC, FPGA or other Program logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 131 can be a transceiver, an RF circuit, a communication interface, or the like. The storage module 132 may be a memory.

其中,上述方法實施例涉及的各場景的所有相關內容均可以援引到對應功能模組的功能描述,在此不再贅述。上述圖像編碼裝置可執行上述圖像編碼方法,圖像編碼裝置具體可以是影像圖像編碼裝置或者其他具有影像編碼功能的設備。Wherein, all relevant contents of the scenarios involved in the above method embodiments can be cited in the functional descriptions of the corresponding functional modules, which will not be repeated here. The above-mentioned image encoding apparatus can execute the above-mentioned image encoding method, and the image encoding apparatus may specifically be a video image encoding apparatus or other equipment having an image encoding function.

本申請還提供一種影像編碼器,包括非揮發性儲存媒介,以及中央處理器,所述非揮發性儲存媒介儲存有可執行程式,所述中央處理器與所述非揮發性儲存媒介連接,並執行所述可執行程式以實現本申請實施例的圖像編碼方法。The present application also provides an image encoder, including a non-volatile storage medium, and a central processing unit, wherein the non-volatile storage medium stores an executable program, the central processing unit is connected to the non-volatile storage medium, and The executable program is executed to implement the image encoding method of the embodiment of the present application.

本申請實施例提供一種圖像解碼裝置,該圖像解碼裝置可以為影像解碼器或影像解碼器。具體的,圖像解碼裝置用於執行以上解碼方法中的影像解碼器所執行的步驟。本申請實施例提供的圖像解碼裝置可以包括相應步驟所對應的模組。An embodiment of the present application provides an image decoding apparatus, and the image decoding apparatus may be an image decoder or an image decoder. Specifically, the image decoding apparatus is configured to perform the steps performed by the image decoder in the above decoding method. The image decoding apparatus provided by the embodiments of the present application may include modules corresponding to corresponding steps.

本申請實施例可以根據上述方法示例對圖像解碼裝置進行功能模組的劃分,例如,可以對應各個功能劃分各個功能模組,也可以將兩個或兩個以上的功能集成在一個處理模組中。上述集成的模組既可以採用硬體的形式實現,也可以採用軟體功能模組的形式實現。本申請實施例中對模組的劃分是示意性的,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。In this embodiment of the present application, the image decoding apparatus may be divided into functional modules according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. middle. The above-mentioned integrated modules can be implemented in the form of hardware, or can be implemented in the form of software function modules. The division of modules in the embodiments of the present application is schematic, and is only a logical function division, and other division methods may be used in actual implementation.

在採用對應各個功能劃分各個功能模組的情況下,圖14示出上述實施例中所涉及的圖像解碼裝置的一種可能的結構示意圖。如圖14所示,圖像解碼裝置14包括解析單元142、確定單元141。In the case where each functional module is divided according to each function, FIG. 14 shows a possible schematic structural diagram of the image decoding apparatus involved in the above embodiment. As shown in FIG. 14 , the image decoding device 14 includes an analysis unit 142 and a determination unit 141 .

解析單元,用於確定當前解碼塊的幀內預測濾波指示訊息和第一使用標識位,所述幀內預測指示訊息包括第一指示訊息、第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式,所述第一使用標誌位為所述第一幀內預測濾波模式的使用標識位;a parsing unit, configured to determine an intra-frame prediction filter indication message and a first use flag of the current decoding block, where the intra-frame prediction indication message includes a first indication message and a second indication message, and the first indication message is used to indicate whether to allow the use of the first intra-frame prediction filter mode, the second indication message is used to indicate whether to allow the use of the second intra-frame prediction filter mode, the first intra-frame prediction filter mode is the intra-frame prediction filter IPF mode, the The first use flag is the use flag of the first intra-frame prediction filtering mode;

確定單元,用於根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。A determining unit, configured to determine, according to the intra-frame prediction filtering instruction message and the first use flag, to obtain the prediction block of the decoding block by using the first frame rate prediction filtering mode.

其中,上述方法實施例涉及的各步驟的所有相關內容均可以援引到對應功能模組的功能描述,在此不再贅述。當然,本申請實施例提供的圖像解碼裝置包括但不限於上述模組,例如:圖像解碼裝置還可以包括儲存單元。儲存單元可以用於儲存該圖像解碼裝置的程式碼和資料。Wherein, all relevant contents of the steps involved in the above method embodiments can be cited in the functional descriptions of the corresponding functional modules, which will not be repeated here. Of course, the image decoding apparatus provided in the embodiment of the present application includes but is not limited to the above-mentioned modules. For example, the image decoding apparatus may further include a storage unit. The storage unit can be used to store the code and data of the image decoding device.

在採用集成的單元的情況下,本申請實施例提供的圖像解碼裝置的結構示意圖如圖13所示。在圖13中,圖像解碼裝置15包括:處理模組150和通訊模組151。處理模組150用於對圖像解碼裝置的動作進行控制管理,例如,執行解析單元142、確定單元141執行的步驟,和/或用於執行本文所描述的技術的其它過程。通訊模組151用於支援圖像解碼裝置與其他設備之間的交互。如圖13所示,圖像解碼裝置還可以包括儲存模組152,儲存模組152用於儲存圖像解碼裝置的程式碼和資料,例如儲存上述儲存單元所保存的內容。In the case of using an integrated unit, a schematic structural diagram of an image decoding apparatus provided by an embodiment of the present application is shown in FIG. 13 . In FIG. 13 , the image decoding device 15 includes: a processing module 150 and a communication module 151 . The processing module 150 is used to control and manage the actions of the image decoding apparatus, eg, to perform the steps performed by the parsing unit 142, the determination unit 141, and/or other processes for performing the techniques described herein. The communication module 151 is used to support the interaction between the image decoding apparatus and other devices. As shown in FIG. 13 , the image decoding apparatus may further include a storage module 152, and the storage module 152 is used to store the program codes and data of the image decoding apparatus, for example, to store the contents stored in the above-mentioned storage unit.

其中,處理模組150可以是處理器或控制器,例如可以是中央處理器(Central Processing Unit,CPU),通用處理器,數位訊號處理器(Digital  Signal  Processor,DSP),ASIC,FPGA或者其他可程式邏輯器件、電晶體邏輯器件、硬體部件或者其任意組合。其可以實現或執行結合本申請公開內容所描述的各種示例性的邏輯方塊,模組和電路。所述處理器也可以是實現計算功能的組合,例如包含一個或多個微處理器組合,DSP和微處理器的組合等等。通訊模組151可以是收發器、RF電路或通訊介面等。儲存模組152可以是記憶體。The processing module 150 may be a processor or a controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an ASIC, an FPGA, or other Program logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 151 can be a transceiver, an RF circuit, a communication interface, or the like. The storage module 152 may be a memory.

其中,上述方法實施例涉及的各場景的所有相關內容均可以援引到對應功能模組的功能描述,在此不再贅述。上述圖像解碼裝置可執行上述圖像解碼方法,圖像解碼裝置具體可以是影像圖像解碼裝置或者其他具有影像解碼功能的設備。Wherein, all relevant contents of the scenarios involved in the above method embodiments can be cited in the functional descriptions of the corresponding functional modules, which will not be repeated here. The above-mentioned image decoding apparatus may execute the above-mentioned image decoding method, and the image decoding apparatus may specifically be an image and image decoding apparatus or other equipment having an image decoding function.

本申請還提供一種影像解碼器,包括非揮發性儲存媒介,以及中央處理器,所述非揮發性儲存媒介儲存有可執行程式,所述中央處理器與所述非揮發性儲存媒介連接,並執行所述可執行程式以實現本申請實施例的圖像解碼方法。The present application also provides an image decoder, including a non-volatile storage medium, and a central processing unit, wherein the non-volatile storage medium stores an executable program, the central processing unit is connected to the non-volatile storage medium, and The executable program is executed to implement the image decoding method of the embodiment of the present application.

本申請還提供一種終端,該終端包括:一個或多個處理器、記憶體、通訊介面。該記憶體、通訊介面與一個或多個處理器耦合;記憶體用於儲存電腦程式代碼,電腦程式代碼包括指令,當一個或多個處理器執行指令時,終端執行本申請實施例的圖像編碼和/或圖像解碼方法。這裡的終端可以是影像顯示裝置,智慧手機,可擕式電腦以及其它可以處理影像或者播放影像的設備。The present application also provides a terminal, where the terminal includes: one or more processors, a memory, and a communication interface. The memory and the communication interface are coupled with one or more processors; the memory is used to store computer program codes, and the computer program codes include instructions. When one or more processors execute the instructions, the terminal executes the images of the embodiments of the present application. Encoding and/or image decoding methods. The terminal here can be an image display device, a smart phone, a portable computer, and other devices that can process images or play images.

本申請另一實施例還提供一種電腦可讀儲存媒介,該電腦可讀儲存媒介包括一個或多個程式碼,該一個或多個程式包括指令,當解碼設備中的處理器在執行該程式碼時,該解碼設備執行本申請實施例的圖像編碼方法、圖像解碼方法。Another embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium includes one or more program codes, and the one or more programs include instructions, when the processor in the decoding device executes the program code , the decoding device executes the image encoding method and the image decoding method of the embodiments of the present application.

在本申請的另一實施例中,還提供一種電腦程式產品,該電腦程式產品包括電腦執行指令,該電腦執行指令儲存在電腦可讀儲存媒介中;解碼設備的至少一個處理器可以從電腦可讀儲存媒介讀取該電腦執行指令,至少一個處理器執行該電腦執行指令使得終端實施執行本申請實施例的圖像編碼方法、圖像解碼方法。In another embodiment of the present application, there is also provided a computer program product, the computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium; at least one processor of the decoding device can be obtained from the computer The read storage medium reads the computer-executed instruction, and at least one processor executes the computer-executed instruction so that the terminal implements the image encoding method and the image decoding method of the embodiments of the present application.

在上述實施例中,可以全部或部分的透過軟體,硬體,韌體或者其任意組合來實現。當使用軟體程式實現時,可以全部或部分地以電腦程式產品的形式出現。所述電腦程式產品包括一個或多個電腦指令。在電腦上載入和執行所述電腦程式指令時,全部或部分地產生按照本申請實施例所述的流程或功能。In the above embodiments, it may be implemented in whole or in part through software, hardware, firmware or any combination thereof. When implemented using a software program, it may be in the form of a computer program product, in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions described in the embodiments of the present application are generated.

所述電腦可以是通用電腦、專用電腦、電腦網路、或者其他可程式裝置。所述電腦指令可以儲存在電腦可讀儲存媒介中,或者從一個電腦可讀儲存媒介向另一個電腦可讀儲存媒介傳輸,例如,所述電腦指令可以從一個網站、電腦、伺服器或資料中心透過有線(例如同軸電纜、光纖、數位用戶線路(DSL))  或無線(例如紅外、無線、微波等)方式向另一個網站、電腦、伺服器或資料中心傳輸。The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored on or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website, computer, server or data center Transmission to another website, computer, server or data center via wired (eg coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.).

所述電腦可讀儲存媒介可以是電腦能夠存取的任何可用媒介或者是包含一個或多個可用媒介集成的伺服器、資料中心等資料存放裝置。該可用媒介可以是磁性媒介,(例如,軟碟,硬碟、磁帶)、光媒介(例如,DVD)或者半導體媒介(例如固態硬碟Solid  State  Disk(SSD))等。The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc., which is integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.

透過以上的實施方式的描述,所屬領域的技術人員可以清楚地瞭解到,為描述的方便和簡潔,僅以上述各功能模組的劃分進行舉例說明,實際應用中,可以根據需要而將上述功能分配由不同的功能模組完成,即將裝置的內部結構劃分成不同的功能模組,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. The allocation is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申請所提供的幾個實施例中,應該理解到,所揭露的裝置和方法,可以透過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述模組或單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或元件可以結合或者可以集成到另一個裝置,或一些特徵可以忽略,或不執行。另一點,所顯示或討論的相互之間的耦合或直接耦合或通訊連接可以是透過一些介面,裝置或單元的間接耦合或通訊連接,可以是電性,機械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or elements may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be electrical, mechanical or other forms.

所述作為分離部件說明的單元可以是或者也可以不是實體上分開的,作為單元顯示的部件可以是一個實體單元或多個實體單元,即可以位於一個地方,或者也可以分佈到多個不同地方。可以根據實際的需要選擇其中的部分或者全部單元來實現本實施例方案的目的。The unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one entity unit or multiple entity units, that is, it may be located in one place, or may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申請各個實施例中的各功能單元可以集成在一個處理單元中,也可以是各個單元單獨實體存在,也可以兩個或兩個以上單元集成在一個單元中。上述集成的單元既可以採用硬體的形式實現,也可以採用軟體功能單元的形式實現。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist independently, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of software functional units.

所述集成的單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以儲存在一個可讀取儲存媒介中。基於這樣的理解,本申請實施例的技術方案本質上或者說對現有技術做出貢獻的部分或者該技術方案的全部或部分可以以軟體產品的形式體現出來,該軟體產品儲存在一個儲存媒介中,包括若干指令用以使得一個設備(可以是單片機,晶片等)或處理器(processor)執行本申請各個實施例所述方法的全部或部分步驟。而前述的儲存媒介包括:隨身碟、行動硬碟、唯讀記憶體(Read-Only  Memory,ROM)、隨機存取記憶體(Random  Access  Memory,  RAM)、磁碟或者光碟等各種可以儲存程式碼的媒介。The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , which includes several instructions for causing a device (which may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: flash drives, mobile hard drives, Read-Only Memory (ROM), Random Access Memory (RAM), disks or CDs, etc. that can store program codes medium.

以上所述,僅為本申請的具體實施方式,但本申請的保護範圍並不局限於此,任何在本申請揭露的技術範圍內的變化或替換,都應涵蓋在本申請的保護範圍之內。因此,本申請的保護範圍應以所述請求項的保護範圍為準。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. . Therefore, the protection scope of the present application shall be subject to the protection scope of the claimed item.

1:圖像 10:源裝置 12:圖像編碼裝置 13:圖像編碼裝置 14:圖像解碼裝置 15:圖像解碼裝置 20:目的裝置 30:鏈路 40:儲存裝置 41:後處理實體 42:網路實體 100:影像編碼器 101:變換器 102:量化器 103:熵編碼器 104:反量化器 105:反變換器 106:濾波器單元 107:記憶體 108:預測處理單元 109:幀內預測器 110:幀間預測器 111:求和器 112:求和器 120:影像源 121:確定單元 122:傳輸單元 123:疊加單元 124:劃分單元 130:處理模組 131:通訊模組 132:儲存模組 140:輸出介面 141:確定單元 142:解析單元 150:處理模組 151:通訊模組 152:儲存模組 200:影像解碼器 203:熵解碼器 204:反量化器 205:反變換器 206:濾波器單元 207:記憶體 208:預測處理單元 209:幀內預測器 210:幀間預測器 211:求和器 220:顯示裝置 240:輸入介面 S110~S140:步驟 S210~S220:步驟1: Image 10: Source device 12: Image coding device 13: Image coding device 14: Image decoding device 15: Image decoding device 20: Purpose Device 30: Link 40: Storage device 41: Postprocessing entities 42: Network entities 100: Video encoder 101: Transformer 102: Quantizer 103: Entropy Encoder 104: Inverse Quantizer 105: Inverse Transformer 106: Filter unit 107: Memory 108: Prediction processing unit 109: Intra Predictor 110: Inter predictor 111: Summation 112: Summation 120: Image source 121: Determine unit 122: Transmission unit 123: Overlay unit 124: Division Units 130: Processing Modules 131: Communication module 132: Storage Module 140: Output interface 141: Determine unit 142: parsing unit 150: Processing Mods 151: Communication module 152: Storage Module 200: Video decoder 203: Entropy Decoder 204: Inverse Quantizer 205: Inverse Transformer 206: Filter unit 207: Memory 208: Prediction Processing Unit 209: Intra Predictor 210: Inter predictor 211: Summation 220: Display device 240: Input interface S110~S140: Steps S210~S220: Steps

為了更清楚地說明本發明實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the For some embodiments of the invention, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.

圖1為本申請實施例中編碼樹單元的一種示意性方塊圖;1 is a schematic block diagram of a coding tree unit in an embodiment of the present application;

圖2為本申請實施例中CTU和編碼塊CU的一種示意性方塊圖;2 is a schematic block diagram of a CTU and a coding block CU in an embodiment of the present application;

圖3為本申請實施例中顏色格式的一種示意性方塊圖;3 is a schematic block diagram of a color format in an embodiment of the application;

圖4為本申請實施例中IPF示意圖;4 is a schematic diagram of the IPF in the embodiment of the application;

圖5為本申請實施例中幀內預測濾波示意圖;5 is a schematic diagram of intra-frame prediction filtering in an embodiment of the present application;

圖6為本申請實施例中影像解碼系統的一種示意性方塊圖;6 is a schematic block diagram of an image decoding system in an embodiment of the present application;

圖7為本申請實施例中影像編碼器的一種示意性方塊圖;7 is a schematic block diagram of an image encoder in an embodiment of the present application;

圖8為本申請實施例中影像解碼器的一種示意性方塊圖;FIG. 8 is a schematic block diagram of an image decoder in an embodiment of the present application;

圖9為本申請實施例中一種圖像編碼方法的流程示意圖;FIG. 9 is a schematic flowchart of an image encoding method in an embodiment of the present application;

圖10為本申請實施例中一種圖像解碼方法的流程示意圖;10 is a schematic flowchart of an image decoding method in an embodiment of the present application;

圖11A為本申請實施例中預測塊的一種填充示意圖;11A is a schematic diagram of a filling of a prediction block in an embodiment of the present application;

圖11B為本申請實施例中預測塊的另一種填充示意圖;11B is a schematic diagram of another filling of a prediction block in an embodiment of the present application;

圖12為本申請實施例中圖像編碼裝置的一種功能單元方塊圖;12 is a block diagram of a functional unit of an image encoding apparatus in an embodiment of the application;

圖13為本申請實施例中圖像編碼裝置的另一種功能單元方塊圖;13 is a block diagram of another functional unit of the image encoding apparatus in the embodiment of the application;

圖14為本申請實施例中圖像解碼裝置的一種功能單元方塊圖;14 is a block diagram of a functional unit of an image decoding apparatus in an embodiment of the application;

圖15為本申請實施例中圖像解碼裝置的另一種功能單元方塊圖。FIG. 15 is a block diagram of another functional unit of the image decoding apparatus according to the embodiment of the present application.

S110~S140:步驟S110~S140: Steps

Claims (9)

一種圖像編碼方法,包括: 劃分圖像,確定當前編碼塊的幀內預測濾波指示訊息,所述幀內預測濾波指示訊息包括第一指示訊息和第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式; 若根據所述幀內預測濾波指示訊息確定所述當前編碼塊需要使用所述第一幀內預測濾波模式,則將所述當前編碼塊的所述第一幀內預測濾波模式的第一使用標識位設置為允許使用; 將所述幀內預測濾波指示訊息、所述第一幀內預測濾波模式和所述第一使用標識位經位元流傳輸; 將所述當前編碼塊的預測塊和經反變換、反量化後得到的殘差塊疊加,得到重建後的重建塊,作為下一個編碼塊的預測參考塊。An image encoding method, comprising: Divide the image, and determine the intra-frame prediction filtering instruction message of the current coding block, where the intra-frame prediction filtering instruction message includes a first instruction message and a second instruction message, and the first instruction message is used to indicate whether to allow the use of the first frame Intra prediction filtering mode, the second indication message is used to indicate whether to allow the use of the second intra prediction filtering mode, and the first intra prediction filtering mode is an intra prediction filtering IPF mode; If it is determined according to the intra-frame prediction filtering instruction message that the current coding block needs to use the first intra-frame prediction filtering mode, the first use flag of the first intra-frame prediction filtering mode of the current coding block is set bit set to allow use; transmitting the intra-prediction filter indication message, the first intra-prediction filter mode, and the first usage flag via a bitstream; The prediction block of the current coding block and the residual block obtained after inverse transformation and inverse quantization are superimposed to obtain the reconstructed reconstructed block, which is used as the prediction reference block of the next coding block. 一種圖像解碼方法,包括: 解析位元流,確定當前解碼塊的幀內預測濾波指示訊息和第一使用標識位,所述幀內預測指示訊息包括第一指示訊息、第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式,所述第一使用標誌位為所述第一幀內預測濾波模式的使用標識位; 根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。An image decoding method, comprising: Parse the bit stream, and determine the intra-frame prediction filter indication message and the first usage flag of the current decoding block, where the intra-frame prediction indication message includes a first indication message and a second indication message, and the first indication message is used to indicate whether to allow the use of the first intra-frame prediction filter mode, the second indication message is used to indicate whether to allow the use of the second intra-frame prediction filter mode, the first intra-frame prediction filter mode is the intra-frame prediction filter IPF mode, the The first use flag is the use flag of the first intra-frame prediction filtering mode; According to the intra-frame prediction filtering instruction message and the first use flag, it is determined that the prediction block of the decoding block is obtained by using the first frame rate prediction filtering mode. 一種圖像編碼裝置,包括: 劃分單元,用於劃分圖像,確定當前編碼塊的幀內預測濾波指示訊息,所述幀內預測濾波指示訊息包括第一指示訊息和第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式; 確定單元,用於若根據所述幀內預測濾波指示訊息確定所述當前編碼塊需要使用所述第一幀內預測濾波模式,則將所述當前編碼塊的所述第一幀內預測濾波模式的第一使用標識位設置為允許使用; 傳輸單元,用於將所述幀內預測濾波指示訊息、所述第一幀內預測濾波模式和所述第一使用標識位經位元流傳輸; 疊加單元,用於根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。An image encoding device, comprising: a dividing unit, configured to divide the image and determine the intra-frame prediction filtering indication information of the current coding block, the intra-frame prediction filtering indication information includes a first indication message and a second indication message, and the first indication message is used to indicate whether The first intra-frame prediction filtering mode is allowed to be used, and the second indication message is used to indicate whether the second intra-frame prediction filtering mode is allowed to be used, and the first intra-frame prediction filtering mode is an intra-frame prediction filtering IPF mode; a determining unit, configured to set the first intra prediction filtering mode of the current coding block if it is determined according to the intra prediction filtering instruction message that the current coding block needs to use the first intra prediction filtering mode The first use flag is set to allow use; a transmission unit, configured to transmit the intra-frame prediction filter indication message, the first intra-frame prediction filter mode and the first use identification bit through a bit stream; and a superimposing unit, configured to determine, according to the intra-frame prediction filtering instruction message and the first usage flag, to use the first frame rate prediction filtering mode to obtain the prediction block of the decoding block. 一種圖像解碼裝置,包括: 解析單元,用於確定當前解碼塊的幀內預測濾波指示訊息和第一使用標識位,所述幀內預測指示訊息包括第一指示訊息、第二指示訊息,所述第一指示訊息用於指示是否允許使用第一幀內預測濾波模式,所述第二指示訊息用於指示是否允許使用第二幀內預測濾波模式,所述第一幀內預測濾波模式為幀內預測濾波IPF模式,所述第一使用標誌位為所述第一幀內預測濾波模式的使用標識位; 確定單元,用於根據所述幀內預測濾波指示訊息和所述第一使用標識位,確定使用所述第一幀率預測濾波模式得到所述解碼塊的預測塊。An image decoding device, comprising: a parsing unit, configured to determine an intra-frame prediction filter indication message and a first use flag of the current decoding block, where the intra-frame prediction indication message includes a first indication message and a second indication message, and the first indication message is used to indicate whether to allow the use of the first intra-frame prediction filter mode, the second indication message is used to indicate whether to allow the use of the second intra-frame prediction filter mode, the first intra-frame prediction filter mode is the intra-frame prediction filter IPF mode, the The first use flag is the use flag of the first intra-frame prediction filtering mode; A determining unit, configured to determine, according to the intra-frame prediction filtering instruction message and the first use flag, to obtain the prediction block of the decoding block by using the first frame rate prediction filtering mode. 一種編碼器,包括非揮發性儲存媒介以及中央處理器,所述非揮發性儲存媒介儲存有可執行程式,所述中央處理器與所述非揮發性儲存媒介連接,當所述中央處理器執行所述可執行程式時,所述編碼器執行如請求項1或2所述的雙向幀間預測方法。An encoder includes a non-volatile storage medium and a central processing unit, the non-volatile storage medium stores an executable program, the central processing unit is connected to the non-volatile storage medium, and when the central processing unit executes When the executable program is executed, the encoder performs the bidirectional inter prediction method as claimed in claim 1 or 2. 一種解碼器,包括非揮發性儲存媒介以及中央處理器,所述非揮發性儲存媒介儲存有可執行程式,所述中央處理器與所述非揮發性儲存媒介連接,當所述中央處理器執行所述可執行程式時,所述解碼器執行如請求項1或2所述的雙向幀間預測方法。A decoder includes a non-volatile storage medium and a central processing unit, the non-volatile storage medium stores an executable program, the central processing unit is connected to the non-volatile storage medium, and when the central processing unit executes When the executable program is executed, the decoder performs the bidirectional inter prediction method as claimed in claim 1 or 2. 一種終端,所述終端包括:一個或多個處理器、記憶體和通訊介面;所述記憶體、所述通訊介面與所述一個或多個處理器連接;所述終端透過所述通訊介面與其他設備通訊,所述記憶體用於儲存電腦程式代碼,所述電腦程式代碼包括指令, 當所述一個或多個處理器執行所述指令時,所述終端執行如請求項1或2所述的方法。A terminal, the terminal comprises: one or more processors, a memory and a communication interface; the memory, the communication interface are connected with the one or more processors; the terminal communicates with the one or more processors through the communication interface other equipment communication, the memory is used to store computer program code, the computer program code includes instructions, When the one or more processors execute the instructions, the terminal executes the method as claimed in claim 1 or 2. 一種包含指令的電腦程式產品,當所述電腦程式產品在終端上運行時,使得所述終端執行如請求項1或2所述的方法。A computer program product comprising instructions which, when run on a terminal, cause the terminal to perform the method as claimed in claim 1 or 2. 一種電腦可讀儲存媒介,包括指令,當所述指令在終端上運行時,使得所述終端執行如請求項1或2所述的方法。A computer-readable storage medium comprising instructions which, when executed on a terminal, cause the terminal to perform the method as claimed in claim 1 or 2.
TW110123866A 2020-07-29 2021-06-29 Image coding method, image decoding method, and related apparatus TW202209878A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010748924.5A CN114071162A (en) 2020-07-29 2020-07-29 Image encoding method, image decoding method and related device
CN202010748924.5 2020-07-29

Publications (1)

Publication Number Publication Date
TW202209878A true TW202209878A (en) 2022-03-01

Family

ID=80037645

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110123866A TW202209878A (en) 2020-07-29 2021-06-29 Image coding method, image decoding method, and related apparatus

Country Status (3)

Country Link
CN (2) CN114071162A (en)
TW (1) TW202209878A (en)
WO (1) WO2022022622A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114567775B (en) * 2022-04-29 2022-09-09 中国科学技术大学 Image dividing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200400B (en) * 2012-01-09 2018-03-16 中兴通讯股份有限公司 A kind of decoding method, codec and the electronic equipment of image layer and sliced layer
CN105141948A (en) * 2015-09-22 2015-12-09 天津师范大学 Improved HEVC sample point self-adaption compensation method
CN110650349B (en) * 2018-06-26 2024-02-13 中兴通讯股份有限公司 Image encoding method, decoding method, encoder, decoder and storage medium
CN109889852B (en) * 2019-01-22 2021-11-05 四川大学 HEVC intra-frame coding optimization method based on adjacent values

Also Published As

Publication number Publication date
CN114071162A (en) 2022-02-18
CN116250240A (en) 2023-06-09
WO2022022622A1 (en) 2022-02-03

Similar Documents

Publication Publication Date Title
TWI782904B (en) Merging filters for multiple classes of blocks for video coding
CN113923455B (en) Bidirectional inter-frame prediction method and device
WO2022088631A1 (en) Image encoding method, image decoding method, and related apparatuses
TW202145787A (en) Image encoding method, image decoding method, and related apparatuses
WO2021185257A1 (en) Image coding method, image decoding method and related apparatuses
JP7410236B2 (en) Position-dependent spatial variation transform for video coding
JP2022548354A (en) Video decoding method, video encoding method, apparatus, equipment and storage medium
TW202110180A (en) Adaptive loop filtering across raster-scan slices
TW202147844A (en) Image encoding method, image decoding method and related device using the spatial correlation of the adjacent encoding block and the current encoding block to modify the prediction sample of the chrominance component of the current encoding block, so as to improve the prediction accuracy and the encoding efficiency
WO2022022622A1 (en) Image coding method, image decoding method, and related apparatus
WO2022037300A1 (en) Encoding method, decoding method, and related devices
TW202209879A (en) Image encoding method, image decoding method and related devices capable of improving the accuracy of intra-frame prediction and encoding efficiency
WO2023092256A1 (en) Video encoding method and related apparatus therefor
CN112055970B (en) Construction method of candidate motion information list, inter-frame prediction method and device
CN113965764B (en) Image encoding method, image decoding method and related device
WO2020007187A1 (en) Image block decoding method and device
WO2020000487A1 (en) Transformation method, inverse transformation method and apparatus
WO2023154359A1 (en) Methods and devices for multi-hypothesis-based prediction
CN114071148A (en) Video coding method, device, equipment and product
WO2024039803A1 (en) Methods and devices for adaptive loop filter
CN118101967A (en) Position dependent spatially varying transform for video coding
CN118101966A (en) Position dependent spatially varying transform for video coding