TWI551119B - Video encoding apparatus and video decoding apparatus and encoding method and decoding method thereof - Google Patents

Video encoding apparatus and video decoding apparatus and encoding method and decoding method thereof Download PDF

Info

Publication number
TWI551119B
TWI551119B TW104102323A TW104102323A TWI551119B TW I551119 B TWI551119 B TW I551119B TW 104102323 A TW104102323 A TW 104102323A TW 104102323 A TW104102323 A TW 104102323A TW I551119 B TWI551119 B TW I551119B
Authority
TW
Taiwan
Prior art keywords
conversion
dimensional
preliminary
reverse
matrix
Prior art date
Application number
TW104102323A
Other languages
Chinese (zh)
Other versions
TW201613351A (en
Inventor
林和源
Original Assignee
晨星半導體股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 晨星半導體股份有限公司 filed Critical 晨星半導體股份有限公司
Publication of TW201613351A publication Critical patent/TW201613351A/en
Application granted granted Critical
Publication of TWI551119B publication Critical patent/TWI551119B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • 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

Description

視訊編碼裝置及視訊解碼裝置以及其編解碼與解碼方法 Video coding device and video decoding device, and codec and decoding method thereof

本發明與多媒體信號處理技術相關,並且尤其與視訊系統中的編碼/解碼技術相關。 The present invention is related to multimedia signal processing techniques and, in particular, to encoding/decoding techniques in video systems.

隨著通訊技術的進步,數位電視廣播漸趨成熟、普及。除了經由電纜線路傳送外,數位電視信號也可透過基地台或人造衛星等設備以無線信號的型態被傳遞。為了兼顧提升畫面品質和降低傳輸資料量的需求,傳送端通常會將待傳遞的影像及聲音信號編碼、壓縮。相對應地,接收端必須正確地將收到的信號解碼、解壓縮,始能還原影音信號。 With the advancement of communication technology, digital TV broadcasting has become mature and popular. In addition to transmission via cable lines, digital TV signals can also be transmitted in the form of wireless signals via devices such as base stations or satellites. In order to balance the need to improve the picture quality and reduce the amount of data transferred, the transmitting end usually encodes and compresses the image and sound signals to be transmitted. Correspondingly, the receiving end must correctly decode and decompress the received signal to restore the video signal.

圖一呈現符合數位音視頻編解碼技術標準(audio video coding standard,AVS)之一編碼系統的局部功能方塊圖。訊框內預測(intra-prediction)模組12負責針對一視訊框中的各個影像區塊進行訊框內預測程序,以產生各影像區塊的亮度殘餘值(residual)區塊。該亮度殘餘值區塊接著被提供至離散餘弦轉換(discrete cosine transform,DCT)模組14,進行離散餘弦轉換,以產生一離散餘弦轉換係數矩陣。為了進一步降低資料量,二次轉換(secondary transform)模組16會對該離散餘弦轉換係數矩陣中的低頻成分施以二次轉換。就AVS編碼系統而言,無論離散餘弦轉換係數矩陣的大小為何,二次轉換模組16都是針對其中位於最左上角的4*4個低頻成分進行二次轉換。隨後,經過二次轉換後的低頻成分,以及其他未經二次轉 換的高頻離散餘弦轉換係數會在量化模組18被重新結合,並且施以量化程序。 Figure 1 presents a partial functional block diagram of an encoding system that conforms to one of the audio and video coding standard (AVS). The intra-prediction module 12 is responsible for performing an intra-frame prediction process for each image block in a video frame to generate a luminance residual block of each image block. The luminance residual value block is then provided to a discrete cosine transform (DCT) module 14 for discrete cosine transform to produce a discrete cosine transform coefficient matrix. In order to further reduce the amount of data, the secondary transform module 16 applies a quadratic conversion to the low frequency components in the discrete cosine transform coefficient matrix. In the case of the AVS encoding system, regardless of the size of the discrete cosine transform coefficient matrix, the secondary conversion module 16 performs secondary conversion for the 4*4 low frequency components located at the uppermost left corner. Subsequently, after the second conversion of the low frequency components, and other non-secondary conversion The shifted high frequency discrete cosine transform coefficients are recombined at the quantization module 18 and a quantization procedure is applied.

實務上,離散餘弦轉換模組14所執行的離散餘弦轉換包含一組沿垂直方向進行的離散餘弦轉換,以及一組沿水平方向進行的離散餘弦轉換。相似地,二次轉換模組16所執行的二次轉換,是由一組沿垂直方向進行的二次轉換與一組沿水平方向進行的二次轉換共同組成。根據AVS規範,離散餘弦轉換模組14應先沿水平方向對亮度殘餘值區塊逐列進行離散餘弦轉換,直到所有沿水平方向進行的離散餘弦轉換完成後,再開始沿垂直方向逐欄進行離散餘弦轉換。另一方面,根據AVS規範,二次轉換模組16應先對離散餘弦轉換係數矩陣中的低頻成分沿垂直方向逐欄進行二次轉換,直到所有沿垂直方向進行的二次轉換完成後,再開始沿水平方向逐列進行二次轉換。圖二(A)呈現上述各轉換的順序關係。 In practice, the discrete cosine transform performed by the discrete cosine transform module 14 includes a set of discrete cosine transforms in the vertical direction and a set of discrete cosine transforms in the horizontal direction. Similarly, the secondary conversion performed by the secondary conversion module 16 is composed of a set of secondary conversions performed in the vertical direction and a set of secondary conversions performed in the horizontal direction. According to the AVS specification, the discrete cosine transform module 14 should first perform discrete cosine transform on the luminance residual value block in the horizontal direction until all discrete cosine transforms in the horizontal direction are completed, and then start to be discretely column by column in the vertical direction. Cosine conversion. On the other hand, according to the AVS specification, the secondary conversion module 16 should first perform secondary conversion on the low-frequency components in the discrete cosine transform coefficient matrix in the vertical direction by column until all secondary conversions in the vertical direction are completed, and then Start secondary conversion column by column in the horizontal direction. Figure 2 (A) presents the sequential relationship of each of the above transitions.

以亮度殘餘值區塊之尺寸為4*4的情況為例,圖二(B)呈現AVS編碼系統中典型的離散餘弦轉換與二次轉換之詳細時序關係。符號R0~R3代表區塊中的四個列,符號C0~C3代表區塊中的四個欄。如圖二(B)所示,在工作週期0~3中,沿水平方向進行的離散餘弦轉換依序施加於列R0~列R3;在工作週期4~7中,沿垂直方向進行的離散餘弦轉換依序施加於欄C0~欄C3。在施加於欄C0的離散餘弦轉換完成後,欄C0的內容不會再受到離散餘弦轉換的影響而變動,二次轉換模組16因此可以自工作週期5開始沿垂直方向對欄C0施加二次轉換。依此類推,在工作週期6~8中,沿垂直方向進行的二次轉換依序施加於欄C1~欄C3;在工作週期9~12中,沿水平方向進行的二次轉換依序施加於列R0~列R3。由圖二(B)可看出,完成對一個4*4亮度殘餘值區塊的離散餘弦轉換與二次轉換總共需要13個工作週期的時間。相較之下,若不施加二次轉換,完成對一個4*4亮度殘餘值區塊的離散餘弦轉換只需要8個工作週期的時間。也就是說,在典型的AVS編碼系統中,雖然二次轉換能貢獻降低編碼結果資料量的好處,卻會造成編 碼作業時間的延長,進而影響系統的整體效率。 Taking the case where the size of the luminance residual value block is 4*4 as an example, FIG. 2(B) shows the detailed timing relationship of the typical discrete cosine transform and the secondary conversion in the AVS encoding system. The symbols R 0 to R 3 represent four columns in the block, and the symbols C 0 to C 3 represent four columns in the block. As shown in Fig. 2(B), in the working period 0~3, the discrete cosine transform in the horizontal direction is sequentially applied to the columns R 0 to R 3 ; in the working period 4~7, in the vertical direction The discrete cosine transform is applied sequentially to column C 0 ~column C 3 . After the discrete cosine transform applied to the column C 0 is completed, the content of the column C 0 is no longer changed by the influence of the discrete cosine transform, and the secondary conversion module 16 can thus face the column C 0 in the vertical direction from the duty cycle 5. Apply a secondary conversion. And so on, in the working cycle 6~8, the secondary conversion in the vertical direction is sequentially applied to the column C 1 ~ the column C 3 ; in the working cycle 9~12, the secondary conversion in the horizontal direction is sequential Applied to column R 0 ~ column R 3 . As can be seen from Fig. 2(B), it takes a total of 13 duty cycles to complete the discrete cosine transform and the quadratic conversion for a 4*4 luminance residual block. In contrast, if a secondary conversion is not applied, it takes only 8 duty cycles to complete the discrete cosine transform for a 4*4 luminance residual block. That is to say, in a typical AVS encoding system, although the secondary conversion can contribute to the benefit of reducing the amount of data of the encoding result, it will cause an extension of the encoding operation time, thereby affecting the overall efficiency of the system.

為解決上述問題,本發明提出一種新的視訊編碼裝置及視訊解碼裝置。藉由結合離散餘弦轉換與二次轉換並配合適當的作業排程,將視訊編碼/解碼所需要工作週期數量可被有效減少。 In order to solve the above problems, the present invention provides a new video encoding device and video decoding device. By combining discrete cosine transform and quadratic conversion with appropriate job scheduling, the number of duty cycles required for video encoding/decoding can be effectively reduced.

根據本發明之一具體實施例為一種視訊編碼裝置,其中包含一轉換模組。該轉換模組係用以根據一轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後轉換。該轉換矩陣為一初步轉換矩陣與一二次轉換矩陣之乘積。該初步轉換矩陣對應於一二維初步轉換中沿該特定方向進行之一維初步轉換。該二次轉換矩陣對應於一二維二次轉換中沿該特定方向進行之一維二次轉換。 According to an embodiment of the invention, a video encoding device includes a conversion module. The conversion module is configured to apply a combined conversion to a specific image data block along a specific direction according to a conversion matrix. The conversion matrix is the product of a preliminary conversion matrix and a secondary transformation matrix. The preliminary conversion matrix corresponds to a one-dimensional preliminary conversion in the particular direction in a two-dimensional preliminary transformation. The quadratic conversion matrix corresponds to one-dimensional quadratic conversion in the specific direction in a two-dimensional quadratic conversion.

根據本發明之另一具體實施例為一種視訊編碼方法。該視訊編碼方法包含一轉換步驟:根據一轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後轉換。該轉換矩陣為一初步轉換矩陣與一二次轉換矩陣之乘積。該初步轉換矩陣對應於一二維初步轉換中沿該特定方向進行之一維初步轉換。該二次轉換矩陣對應於一二維二次轉換中沿該特定方向進行之一維二次轉換。 Another embodiment of the present invention is a video encoding method. The video encoding method includes a converting step of applying a combined conversion to a specific image data block in a specific direction according to a conversion matrix. The conversion matrix is the product of a preliminary conversion matrix and a secondary transformation matrix. The preliminary conversion matrix corresponds to a one-dimensional preliminary conversion in the particular direction in a two-dimensional preliminary transformation. The quadratic conversion matrix corresponds to one-dimensional quadratic conversion in the specific direction in a two-dimensional quadratic conversion.

根據本發明之另一具體實施例為一種視訊解碼裝置,其中包含一反向轉換模組。該反向轉換模組係用以根據一反向轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後反向轉換。該反向轉換矩陣為一反向初步轉換矩陣與一反向二次轉換矩陣之乘積。該反向初步轉換矩陣對應於一二維反向初步轉換中沿該特定方向進行之一維反向初步轉換。該反向二次轉換矩陣對應於一二維反向二次轉換中沿該特定方向進行之一維反向二次轉換。 Another embodiment of the present invention is a video decoding device including a reverse conversion module. The inverse conversion module is configured to apply a combined reverse conversion to a specific image data block according to a reverse conversion matrix. The inverse transformation matrix is the product of a reverse preliminary transformation matrix and an inverse quadratic transformation matrix. The reverse preliminary conversion matrix corresponds to a one-dimensional inverse preliminary conversion in the specific direction in a two-dimensional reverse preliminary conversion. The inverse quadratic conversion matrix corresponds to one-dimensional inverse quadratic conversion in the specific direction in a two-dimensional inverse quadratic conversion.

根據本發明之另一具體實施例為一種視訊解碼方法。該視訊 解碼方法包含一反向轉換步驟:根據一反向轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後反向轉換。該反向轉換矩陣為一反向初步轉換矩陣與一反向二次轉換矩陣之乘積。該反向初步轉換矩陣對應於一二維反向初步轉換中沿該特定方向進行之一維反向初步轉換。該反向二次轉換矩陣對應於一二維反向二次轉換中沿該特定方向進行之一維反向二次轉換。 Another embodiment of the present invention is a video decoding method. The video The decoding method includes a reverse conversion step of applying a combined back-conversion to a specific image data block in a specific direction according to a reverse conversion matrix. The inverse transformation matrix is the product of a reverse preliminary transformation matrix and an inverse quadratic transformation matrix. The reverse preliminary conversion matrix corresponds to a one-dimensional inverse preliminary conversion in the specific direction in a two-dimensional reverse preliminary conversion. The inverse quadratic conversion matrix corresponds to one-dimensional inverse quadratic conversion in the specific direction in a two-dimensional inverse quadratic conversion.

關於本發明的優點與精神可以藉由以下發明詳述及所附圖式得到進一步的瞭解。 The advantages and spirit of the present invention will be further understood from the following detailed description of the invention.

12‧‧‧訊框內預測模組 12‧‧‧ In-frame prediction module

14‧‧‧離散餘弦轉換模組 14‧‧‧Discrete cosine transform module

16‧‧‧二次轉換模組 16‧‧‧Secondary conversion module

18‧‧‧量化模組 18‧‧‧Quantitative Module

300‧‧‧視訊編碼裝置 300‧‧‧Video coding device

32‧‧‧訊框內預測模組 32‧‧‧Intraframe prediction module

34‧‧‧轉換模組 34‧‧‧Transition module

38‧‧‧量化模組 38‧‧‧Quantitative Module

S51~S52‧‧‧流程步驟 S51~S52‧‧‧ Process steps

S61~S64‧‧‧流程步驟 S61~S64‧‧‧ Process steps

S71~S74‧‧‧流程步驟 S71~S74‧‧‧ Process steps

圖一呈現符合數位音視頻編解碼技術標準(AVS)之一編碼系統的局部功能方塊圖。 Figure 1 presents a partial functional block diagram of an encoding system that conforms to one of the Digital Audio and Video Codec Technical Standards (AVS).

圖二(A)和圖二(B)呈現符合數位音視頻編解碼技術標準(AVS)之一離散餘弦轉換/二次轉換的時序關係。 Figure 2 (A) and Figure 2 (B) present the timing relationship of discrete cosine transform / quadratic conversion in accordance with one of the digital audio and video codec standards (AVS).

圖三為根據本發明之一實施例中的視訊編碼裝置之功能方塊圖。 Figure 3 is a functional block diagram of a video encoding apparatus in accordance with an embodiment of the present invention.

圖四(A)~圖四(D)呈現二次轉換尺寸與初步轉換尺寸的四種相對關係可能性。 Figure 4 (A) ~ Figure 4 (D) show the four relative relationship possibilities of the secondary conversion size and the initial conversion size.

圖五(A)~圖五(C)呈現根據本發明之一實施例中的轉換模組之運作程序範例。 Figures 5(A) to 5(C) show examples of operational procedures of a conversion module in accordance with an embodiment of the present invention.

圖六(A)和圖六(B)呈現根據本發明之另一實施例中的轉換模組之運作程序範例。 6(A) and 6(B) show examples of operational procedures of a conversion module in accordance with another embodiment of the present invention.

圖七(A)和圖七(B)呈現根據本發明之又一實施例中的轉換模組之運作程序範例。 7(A) and 7(B) show examples of operational procedures of a conversion module in accordance with yet another embodiment of the present invention.

圖八(A)和圖八(B)呈現根據本發明之一實施例中的轉換模組之運作程序範例。 8(A) and 8(B) show examples of operational procedures of a conversion module in accordance with an embodiment of the present invention.

圖九(A)和圖九(B)呈現根據本發明之另一實施例中的轉換模組之運作程序範例。 9(A) and 9(B) show examples of operational procedures of a conversion module in accordance with another embodiment of the present invention.

須說明的是,本發明的圖式包含呈現多種彼此關聯之功能性模組的功能方塊圖。該等圖式並非細部電路圖,且其中的連接線僅用以表示信號流。功能性元件及/或程序間的多種互動關係不一定要透過直接的電性連結始能達成。此外,個別元件的功能不一定要如圖式中繪示的方式分配,且分散式的區塊不一定要以分散式的電子元件實現。 It should be noted that the drawings of the present invention include functional block diagrams that present a plurality of functional modules associated with each other. These figures are not detailed circuit diagrams, and the connecting lines therein are only used to represent the signal flow. Multiple interactions between functional components and/or procedures do not have to be achieved through direct electrical connections. In addition, the functions of the individual components are not necessarily allotted in the manner illustrated in the drawings, and the decentralized blocks are not necessarily implemented in the form of decentralized electronic components.

根據本發明之一具體實施例為一種視訊編碼裝置。實務上,該視訊編碼裝置可被整合在各種具有二次轉換(secondary transform)機制的視訊編碼系統中,亦可獨立存在。為便於說明,以下說明主要以該視訊編碼裝置係設置於數位音視頻編解碼技術標準(AVS)編碼系統的情況為例,其局部功能方塊圖係繪示於圖三。 A video encoding apparatus according to an embodiment of the present invention. In practice, the video encoding device can be integrated in various video encoding systems with a secondary transform mechanism, or can exist independently. For convenience of description, the following description mainly takes the case where the video encoding device is installed in a digital audio and video codec technical standard (AVS) encoding system, and a partial functional block diagram thereof is shown in FIG.

於此實施例中,訊框內預測模組32負責針對一視訊框中的各個影像區塊進行訊框內預測程序,以產生各影像區塊的亮度殘餘值區塊。轉換模組34負責對亮度殘餘值區塊施以一初步轉換與一二次轉換。舉例而言,該初步轉換可為一離散餘弦轉換(DCT)或者是由離散餘弦轉換變形而成的整數轉換(integer transform),但不以此為限。因二次轉換是施加於初步轉換結果中的低頻成分,二次轉換的尺寸(施加對象的範圍大小)必然會小於或等於初步轉換的尺寸。圖四(A)~圖四(D)繪示了二次轉換尺寸與初步轉換尺寸的四種相對關係可能性。外圍的框限代表初步轉換結果的大小,其中填充有黑色斜線的區域則代表二次轉換的施加範圍。在這些圖例中,初步轉換結果包含N1欄、N2列元素,而二次轉換將施加於其中的M1欄、M2列元 素。 In this embodiment, the intra-frame prediction module 32 is configured to perform an intra-frame prediction process for each image block in a video frame to generate a luminance residual value block of each image block. The conversion module 34 is responsible for applying a preliminary conversion and a second conversion to the luminance residual value block. For example, the preliminary conversion may be a discrete cosine transform (DCT) or an integer transform transformed by a discrete cosine transform, but is not limited thereto. Since the secondary conversion is a low frequency component applied to the preliminary conversion result, the size of the secondary conversion (the range size of the applied object) is necessarily smaller than or equal to the size of the preliminary conversion. Figure 4 (A) ~ Figure 4 (D) illustrate the four relative relationship possibilities of the secondary conversion size and the initial conversion size. The outer frame limit represents the size of the preliminary conversion result, and the area filled with the black oblique line represents the application range of the secondary conversion. In these legends, the preliminary conversion result contains N 1 column, N 2 column elements, and the secondary conversion will be applied to the M 1 column, M 2 column elements.

以下首先說明,在如圖四(D)所示之二維初步轉換與二維二次轉換尺寸相同(M1=N1且M2=N2)的情況下,轉換模組34如何運作。由於該二維初步轉換與二維二次轉換皆為線性轉換,改變執行轉換的順序不會影響最終的轉換結果。因此,如圖五(A)所示,水平逐列二次轉換可被提前至水平逐列初步轉換與垂直逐欄初步轉換之間。另一方面,若M1=N1且M2=N2,水平逐列初步轉換和水平逐列二次轉換便可被結合為單一個轉換(步驟S51),垂直逐欄初步轉換亦可與垂直逐欄二次轉換被結合為單一個轉換(步驟S52)。更明確地說,將對應於水平逐列初步轉換的轉換矩陣與對應於水平逐列二次轉換的轉換矩陣相乘,即為水平逐列結合後轉換的轉換矩陣。相似地,將對應於垂直逐欄初步轉換的轉換矩陣與對應於垂直逐欄二次轉換的轉換矩陣相乘,即為垂直逐欄結合後轉換的轉換矩陣。圖五(B)以M1=N1=M2=N2=4的情況為例,呈現轉換模組34在這個情況下的詳細運作時序範例。在工作週期0~3中,沿水平方向進行的結合後轉換依序施加於列R0~列R3;在工作週期4~7中,沿垂直方向進行的結合後轉換依序施加於欄C0~欄C3。由圖五(B)可看出,轉換模組34只需要8個工作週期的時間便可完成二維初步轉換與二維二次轉換,顯然較傳統做法更有效率。隨後,轉換模組34的輸出信號便被提供至量化模組36,進行量化程序。 First, it is explained how the conversion module 34 operates in the case where the two-dimensional preliminary conversion and the two-dimensional secondary conversion are the same as shown in FIG. 4(D) (M 1 =N 1 and M 2 =N 2 ). Since both the two-dimensional preliminary conversion and the two-dimensional secondary conversion are linear transformations, changing the order in which the conversion is performed does not affect the final conversion result. Therefore, as shown in FIG. 5(A), the horizontal column-by-column secondary conversion can be advanced to the horizontal column-by-column preliminary conversion and the vertical column-by-column preliminary conversion. On the other hand, if M 1 =N 1 and M 2 =N 2 , the horizontal column-by-column preliminary conversion and the horizontal column-by-column secondary conversion can be combined into a single conversion (step S51), and the vertical column-by-column preliminary conversion can also be The vertical column-by-column secondary conversion is combined into a single conversion (step S52). More specifically, the conversion matrix corresponding to the horizontal column-by-column preliminary conversion is multiplied by the conversion matrix corresponding to the horizontal column-by-column secondary conversion, that is, the conversion matrix converted horizontally and column-by-column. Similarly, the conversion matrix corresponding to the vertical column-by-column preliminary conversion is multiplied by the conversion matrix corresponding to the vertical column-by-column secondary conversion, that is, the conversion matrix which is converted vertically and column-by-column. Figure 5 (B) takes the case of M 1 = N 1 = M 2 = N 2 = 4 as an example, and presents a detailed operational timing example of the conversion module 34 in this case. In the working cycle 0~3, the post-bonding conversion in the horizontal direction is sequentially applied to the columns R 0 to R 3 ; in the working cycles 4 to 7, the post-combination conversion in the vertical direction is sequentially applied to the column C. 0 ~ column C 3 . As can be seen from FIG. 5(B), the conversion module 34 only needs 8 working cycles to complete the two-dimensional preliminary conversion and the two-dimensional secondary conversion, which is obviously more efficient than the conventional method. Subsequently, the output signal of the conversion module 34 is supplied to the quantization module 36 for quantization.

在數位音視頻編解碼技術標準(AVS)編碼系統中,當M1=N1=M2=N2=4,該結合後的轉換矩陣為: In the Digital Audio Video Codec Standard (AVS) coding system, when M 1 = N 1 = M 2 = N 2 = 4, the combined conversion matrix is:

實務上,轉換模組34可被實現為包含固定式及/或可程式化數位邏輯電路,例如可程式化邏輯閘陣列、特定應用積體電路、微控制器、微處理器、數位信號處理器,與其他必要電路。須說明的是,根據一已知 特定轉換矩陣對影像資料區塊施以轉換的技術為本發明所屬技術領域中具有通常知識者所知,於此不贅述。 In practice, the conversion module 34 can be implemented to include fixed and/or programmable digital logic circuits, such as programmable logic gate arrays, application specific integrated circuits, microcontrollers, microprocessors, digital signal processors. , with other necessary circuits. It should be noted that according to a known The technique of applying a conversion to a video data block by a specific conversion matrix is known to those of ordinary skill in the art to which the present invention pertains, and will not be described herein.

圖五(C)呈現轉換模組34的另一種運作時序範例。於此範例中,轉換模組34僅結合水平逐列初步轉換與水平逐列二次轉換,並且在沿水平方向進行的結合後轉換完成後,分別執行垂直逐欄初步轉換和垂直逐欄二次轉換。若採用這種運作時序,轉換模組34總共只需要9個工作週期的時間便可完成二維初步轉換與二維二次轉換,亦較傳統做法更有效率。 FIG. 5(C) presents another operational timing example of the conversion module 34. In this example, the conversion module 34 only combines the horizontal column-by-column preliminary conversion and the horizontal column-by-column secondary conversion, and after the combined post-transformation in the horizontal direction is completed, the vertical column-by-column preliminary conversion and the vertical column-by-column are respectively performed. Conversion. If such an operation sequence is adopted, the conversion module 34 only needs 9 working cycles to complete the two-dimensional preliminary conversion and the two-dimensional secondary conversion, which is more efficient than the conventional method.

在某些情況下,當某個目標影像資料區塊被判定為不需要沿水平方向進行之一維二次轉換,上述對應於水平逐列二次轉換的轉換矩陣可被設定為一單位矩陣,使得水平逐列結合後轉換的轉換矩陣直接等於水平逐列初步轉換的轉換矩陣。相似地,當某個目標影像資料區塊被判定為不需要沿垂直方向進行之一維二次轉換,上述對應於垂直逐欄二次轉換的轉換矩陣可被設定為一單位矩陣,使得垂直逐欄結合後轉換的轉換矩陣直接等於垂直逐欄初步轉換的轉換矩陣。 In some cases, when a target image data block is determined not to perform one-dimensional secondary conversion in the horizontal direction, the above-described conversion matrix corresponding to the horizontal column-by-column secondary conversion may be set as an identity matrix. The transformation matrix that makes the horizontal column-by-column transformation is directly equal to the transformation matrix of the horizontal column-by-column preliminary transformation. Similarly, when a certain target image data block is determined not to perform one-dimensional secondary conversion in the vertical direction, the above-mentioned conversion matrix corresponding to the vertical column-by-column secondary conversion may be set as a unit matrix, so that the vertical The conversion matrix after the column combination is directly equal to the conversion matrix of the vertical column-by-column conversion.

接下來介紹在如圖四(C)所示之二維初步轉換與二維二次轉換尺寸不同(M1=N1且M2<N2)的情況下,轉換模組34如何運作。如圖六(A)所示,在步驟S61中,轉換模組34首先針對輸入影像資料區塊中的所有資料逐欄(第1欄~第M1欄)施以沿垂直方向進行之一維初步轉換。由此產生的初步轉換結果可被視為包含兩個子區塊:第一子區塊為該初步轉換結果中的前M2列,而第二子區塊為該初步轉換結果中的後(N2-M2)列。第一子區塊為需要被施以二次轉換的區域,第二子區塊則否。轉換模組34可根據結合後轉換矩陣對第一子區塊施以水平逐列結合後轉換(步驟S62),並且可同時對第二子區塊施以水平逐列一維初步轉換(步驟S63)。至此,第二子區塊的水平與垂直初步轉換皆已完成。隨後,在步驟S64中,轉換模組34只需要再對步驟S62產生之中間轉換結果進行垂直逐欄一維二次轉換即可。圖六(B)以M1=N1=N2=4、M2=2的情況為例,呈現轉換模組34在這個情況下的詳細 運作時序範例。在工作週期0~3中,沿垂直方向進行的一維初步轉換依序施加於欄C0~欄C3。在工作週期4~5中,水平逐列結合後轉換係依序施加於列R0、列R1,且水平逐列初步轉換係依序施加於列R2、列R3。在工作週期6~9中,垂直逐欄二次轉換依序施加於欄C0~欄C3中的前兩列資料。 Next, how the conversion module 34 operates in the case where the two-dimensional preliminary conversion and the two-dimensional secondary conversion as shown in FIG. 4(C) are different in size (M 1 =N 1 and M 2 <N 2 ). FIG six (A), in step S61, the conversion module 34 first be subjected to one-dimensional in the vertical direction for all the data column by column (Column 1 Column M - 1) in the input image data block Initial conversion. The resulting preliminary conversion result can be considered to contain two sub-blocks: the first sub-block is the first M 2 column in the preliminary conversion result, and the second sub-block is after the preliminary conversion result ( N 2 -M 2 ) column. The first sub-block is the area that needs to be subjected to the secondary conversion, and the second sub-block is no. The conversion module 34 may perform horizontal column-by-column combining conversion after the first sub-block according to the combined conversion matrix (step S62), and may perform horizontal-by-column one-dimensional preliminary conversion on the second sub-block at the same time (step S63). ). At this point, the horizontal and vertical preliminary conversion of the second sub-block has been completed. Then, in step S64, the conversion module 34 only needs to perform the vertical column-by-column one-dimensional secondary conversion on the intermediate conversion result generated in step S62. Figure 6 (B) takes the case of M 1 = N 1 = N 2 = 4 and M 2 = 2 as an example, and presents a detailed operational timing example of the conversion module 34 in this case. In the work cycle 0~3, the one-dimensional preliminary conversion in the vertical direction is sequentially applied to the column C 0 to the column C 3 . In the working cycle 4~5, the horizontal column-by-column conversion system is sequentially applied to the column R 0 and the column R 1 , and the horizontal column-by-column preliminary conversion system is sequentially applied to the column R 2 and the column R 3 . In the work cycle 6~9, the vertical column-by-column secondary conversion is sequentially applied to the first two columns of columns C 0 to C 3 .

在如圖四(B)所示之二維初步轉換與二維二次轉換尺寸不同(M1<N1且M2=N2)的情況下,轉換模組34的運作方式範例係繪示於圖七(A)。在步驟S71中,轉換模組34首先針對輸入影像資料區塊中的所有資料逐列(第1列~第M2列)施以沿水平方向進行之一維初步轉換。由此產生的初步轉換結果可被視為包含兩個子區塊:第一子區塊為該初步轉換結果中的前M1欄,而第二子區塊為該初步轉換結果中的後(N1-M1)欄。第一子區塊為需要被施以二次轉換的區域,第二子區塊則否。轉換模組34可根據結合後轉換矩陣對第一子區塊施以垂直逐欄結合後轉換(步驟S72),並且可同時對第二子區塊施以垂直逐欄一維初步轉換(步驟S73)。至此,第二子區塊的水平與垂直初步轉換皆已完成。隨後,在步驟S74中,轉換模組34只需要再對步驟S72產生之中間轉換結果進行水平逐列一維二次轉換即可。圖六(B)以M2=N1=N2=4、M1=2的情況為例,呈現轉換模組34在這個情況下的詳細運作時序範例。在工作週期0~3中,沿水平方向進行的一維初步轉換依序施加於列R0~列R3。在工作週期4~5中,垂直逐欄結合後轉換係依序施加於欄C0、欄C1,且垂直逐欄初步轉換係依序施加於欄C2、欄C3。在工作週期6~9中,水平逐列二次轉換依序施加於列R0~列R3中的前兩欄資料。 In the case where the two-dimensional preliminary conversion and the two-dimensional secondary conversion are different as shown in FIG. 4(B) (M 1 <N 1 and M 2 =N 2 ), an example of the operation mode of the conversion module 34 is shown. Figure 7 (A). In step S71, the conversion module 34 first for all block data in the input image data column by column (column 1 of row M 2) applied in the horizontal direction one-dimensional initial conversion. The resulting preliminary conversion result can be considered to contain two sub-blocks: the first sub-block is the first M 1 column in the preliminary conversion result, and the second sub-block is after the preliminary conversion result ( N 1 -M 1 ) column. The first sub-block is the area that needs to be subjected to the secondary conversion, and the second sub-block is no. The conversion module 34 can perform vertical column-by-column combination conversion on the first sub-block according to the combined conversion matrix (step S72), and can simultaneously perform vertical column-by-column one-dimensional preliminary conversion on the second sub-block (step S73). ). At this point, the horizontal and vertical preliminary conversion of the second sub-block has been completed. Then, in step S74, the conversion module 34 only needs to perform horizontal column-by-column one-dimensional secondary conversion on the intermediate conversion result generated in step S72. Figure 6 (B) takes the case of M 2 = N 1 = N 2 = 4 and M 1 = 2 as an example, and presents a detailed operational timing example of the conversion module 34 in this case. In the duty cycle 0~3, the one-dimensional preliminary conversion in the horizontal direction is sequentially applied to the columns R 0 to R 3 . In the work cycle 4~5, the vertical column-by-column combination conversion system is sequentially applied to the column C 0 and the column C 1 , and the vertical column-by-column preliminary conversion system is sequentially applied to the column C 2 and the column C 3 . In the work cycle 6~9, the horizontal column-by-column secondary conversion is sequentially applied to the first two columns of the columns R 0 to R 3 .

當二維二次轉換在水平和垂直方向上之尺寸皆小於二維初步轉換時(亦即如圖四(A)呈現的M1<N1、M2<N2情況),由於相較於初步轉換所需要的工作週期數量,二次轉換所需要的工作週期數量較少,對整體效率影響不大,轉換模組34可依圖二(A)繪示的流程運作,不一定要進行結合後轉換。 When the dimensions of the two-dimensional quadratic transformation in both the horizontal and vertical directions are smaller than the two-dimensional preliminary transformation (that is, the case of M 1 <N 1 , M 2 <N 2 as shown in FIG. 4(A)), The number of work cycles required for the initial conversion, the number of work cycles required for the second conversion is small, and the overall efficiency is not greatly affected. The conversion module 34 can operate according to the process illustrated in Figure 2 (A), and does not necessarily have to be combined. After conversion.

若在轉換模組34所配合的視訊編碼系統中,二維初步轉換 和二維二次轉換之尺寸都是固定不變的,則轉換模組34可被設計為固定採用圖五(A)、圖六(A)或圖七(A)所示運作程序中的一種。相對地,在二維初步轉換和二維二次轉換之尺寸可能會動態變化的視訊編碼系統中,轉換模組34可被設計視情況選擇其運作程序。 If the video coding system cooperated with the conversion module 34, the two-dimensional preliminary conversion And the size of the two-dimensional secondary conversion is fixed, and the conversion module 34 can be designed to be fixed by one of the operating procedures shown in FIG. 5(A), FIG. 6(A) or FIG. 7(A). . In contrast, in a video coding system in which the size of the two-dimensional preliminary conversion and the two-dimensional secondary conversion may dynamically change, the conversion module 34 can be designed to select its operational procedure as appropriate.

根據本發明之另一具體實施例為一種視訊編碼方法。該視訊編碼方法包含一轉換步驟:根據一轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後轉換。該轉換矩陣為一初步轉換矩陣與一二次轉換矩陣之乘積。 Another embodiment of the present invention is a video encoding method. The video encoding method includes a converting step of applying a combined conversion to a specific image data block in a specific direction according to a conversion matrix. The conversion matrix is the product of a preliminary conversion matrix and a secondary transformation matrix.

該初步轉換矩陣對應於一二維初步轉換中沿該特定方向進行之一維初步轉換。該二次轉換矩陣對應於一二維二次轉換中沿該特定方向進行之一維二次轉換。先前在介紹視訊編碼裝置300時描述的各種操作變化(例如進一步執行垂直於該特定方向之結合後轉換)亦可應用至此視訊編碼方法,其細節不再贅述。 The preliminary conversion matrix corresponds to a one-dimensional preliminary conversion in the particular direction in a two-dimensional preliminary transformation. The quadratic conversion matrix corresponds to one-dimensional quadratic conversion in the specific direction in a two-dimensional quadratic conversion. The various operational changes previously described in the introduction of the video encoding device 300 (e.g., further performing post-combination conversion perpendicular to the particular direction) may also be applied to the video encoding method, the details of which are not described again.

本發明的概念不僅適用於各種具有二次轉換機制的視訊編碼系統,也適用於具有反向二次轉換機制的視訊解碼系統。更明確地說,二維反向初步轉換包含一組沿垂直方向進行的反向初步轉換,以及一組沿水平方向進行的反向初步轉換。相似地,二維反向二次轉換是由一組沿垂直方向進行的反向二次轉換與一組沿水平方向進行的反向二次轉換共同組成。當二維反向初步轉換與二維反向二次轉換皆為線性轉換,改變執行轉換的順序亦不會影響最終的轉換結果。因此,方向相同的一維反向初步轉換與一維反向二次轉換可被選擇性地結合,以提升解碼效率。 The concept of the present invention is applicable not only to various video coding systems having a secondary conversion mechanism, but also to video decoding systems having a reverse secondary conversion mechanism. More specifically, the two-dimensional reverse preliminary conversion includes a set of reverse preliminary transitions in the vertical direction and a set of reverse preliminary transitions in the horizontal direction. Similarly, two-dimensional inverse quadratic transformation consists of a set of inverse quadratic transformations performed in the vertical direction and a set of inverse quadratic transformations performed in the horizontal direction. When the two-dimensional reverse preliminary conversion and the two-dimensional inverse secondary conversion are both linear transformations, changing the order in which the conversion is performed does not affect the final conversion result. Therefore, the one-dimensional reverse preliminary conversion and the one-dimensional inverse secondary conversion in the same direction can be selectively combined to improve the decoding efficiency.

根據本發明之一具體實施例為一種視訊解碼裝置,其中包含一反向轉換模組。該反向轉換模組係用以根據一反向轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後反向轉換。該反向轉換矩陣為一反向初步轉換矩陣與一反向二次轉換矩陣之乘積。該反向初步轉換矩陣對 應於一二維反向初步轉換中沿該特定方向進行之一維反向初步轉換。該反向二次轉換矩陣對應於一二維反向二次轉換中沿該特定方向進行之一維反向二次轉換。先前在介紹視訊編碼裝置300時描述的各種操作變化亦可相對應地應用至此視訊解碼裝置(例如進一步執行垂直於該特定方向之結合後反向轉換),其細節不再贅述。須說明的是,即使編碼端未採用根據本發明之結合後轉換,解碼端亦可採用根據本發明之結合後反向轉換。 According to an embodiment of the invention, a video decoding apparatus includes a reverse conversion module. The inverse conversion module is configured to apply a combined reverse conversion to a specific image data block according to a reverse conversion matrix. The inverse transformation matrix is the product of a reverse preliminary transformation matrix and an inverse quadratic transformation matrix. Reverse initial conversion matrix pair A one-dimensional reverse preliminary conversion should be performed in this particular direction in a two-dimensional reverse preliminary conversion. The inverse quadratic conversion matrix corresponds to one-dimensional inverse quadratic conversion in the specific direction in a two-dimensional inverse quadratic conversion. The various operational changes previously described in the introduction of the video encoding device 300 may also be correspondingly applied to the video decoding device (e.g., further performing a combination of back-conversions perpendicular to the particular direction), the details of which are not described again. It should be noted that even if the encoding end does not employ the post-combination conversion according to the present invention, the decoding end may employ the combined back-conversion according to the present invention.

在AVS解碼系統中,當二維反向初步轉換與二維反向二次轉換的尺寸皆為4*4,該結合後的反向轉換矩陣為: In the AVS decoding system, when the two-dimensional reverse preliminary conversion and the two-dimensional inverse secondary conversion are both 4*4, the combined inverse conversion matrix is:

根據本發明之另一具體實施例為一種視訊解碼方法。該視訊解碼方法包含一反向轉換步驟:根據一反向轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後反向轉換。該反向轉換矩陣為一反向初步轉換矩陣與一反向二次轉換矩陣之乘積。該反向初步轉換矩陣對應於一二維反向初步轉換中沿該特定方向進行之一維反向初步轉換。該反向二次轉換矩陣對應於一二維反向二次轉換中沿該特定方向進行之一維反向二次轉換。 Another embodiment of the present invention is a video decoding method. The video decoding method includes a reverse conversion step of applying a combined reverse conversion to a specific image data block in a specific direction according to a reverse conversion matrix. The inverse transformation matrix is the product of a reverse preliminary transformation matrix and an inverse quadratic transformation matrix. The reverse preliminary conversion matrix corresponds to a one-dimensional inverse preliminary conversion in the specific direction in a two-dimensional reverse preliminary conversion. The inverse quadratic conversion matrix corresponds to one-dimensional inverse quadratic conversion in the specific direction in a two-dimensional inverse quadratic conversion.

根據本發明之另一具體實施例為一種視訊編碼裝置,其中包含一轉換模組,負責對影像資料區塊施以一初步轉換與一二次轉換。於此實施例中,該轉換模組將方向相同的一維初步轉換與一維二次轉換的執行順序適當排程,以達成提升編碼效率的效果。如圖八(A)所示,該轉換模組將水平逐列二次轉換提前至水平逐列初步轉換與垂直逐欄初步轉換之間。須說明的是,在完成第一列水平初步轉換後,該轉換模組立即開始逐列進行一水平二次轉換。在完成所有水平二次轉換後,該轉換模組開始逐欄進行垂直初步轉換。在完成第一欄垂直初步轉換後,該轉換模組立即開始逐 欄進行一垂直二次轉換。以二維初步轉換與二維二次轉換之尺寸皆為4*4的情況為例,圖八(B)呈現該轉換模組的詳細運作時序。在工作週期0~3中,沿水平方向進行的初步轉換依序施加於列R0~列R3。在工作週期1~4中,沿水平方向進行的二次轉換依序施加於列R0~列R3。隨後,在工作週期5~8中,沿垂直方向進行的初步轉換依序施加於欄C0~欄C3。在工作週期6~9中,沿垂直方向進行的二次轉換依序施加於欄C0~欄C3。由圖八(B)可看出,完成對一個4*4影像資料區塊的初步轉換與二次轉換總共僅需要10個工作週期的時間。 According to another embodiment of the present invention, a video encoding apparatus includes a conversion module that is responsible for applying a preliminary conversion and a second conversion to the image data block. In this embodiment, the conversion module appropriately schedules the one-dimensional preliminary conversion and the one-dimensional secondary conversion in the same direction to achieve an effect of improving coding efficiency. As shown in FIG. 8(A), the conversion module advances the horizontal column-by-column secondary conversion to the horizontal column-by-column preliminary conversion and the vertical column-by-column preliminary conversion. It should be noted that after completing the initial conversion of the first column level, the conversion module immediately starts a horizontal secondary conversion column by column. After completing all horizontal secondary conversions, the conversion module begins vertical vertical conversion by column. After completing the initial vertical conversion of the first column, the conversion module immediately starts a vertical secondary conversion by column. Taking the case where the two-dimensional preliminary conversion and the two-dimensional secondary conversion are all 4*4 as an example, FIG. 8(B) shows the detailed operation timing of the conversion module. In the duty cycle 0~3, the preliminary conversion in the horizontal direction is sequentially applied to the columns R 0 to R 3 . In the duty cycle 1 to 4, the secondary conversion in the horizontal direction is sequentially applied to the columns R 0 to R 3 . Subsequently, in the work cycles 5 to 8, the preliminary conversion in the vertical direction is sequentially applied to the columns C 0 to C 3 . In the work cycles 6 to 9, the secondary conversion in the vertical direction is sequentially applied to the columns C 0 to C 3 . It can be seen from Fig. 8(B) that it takes only 10 working cycles to complete the initial conversion and the secondary conversion of a 4*4 image data block.

同樣以二維初步轉換與二維二次轉換之尺寸皆為4*4的情況為例,圖九(A)和圖九(B)呈現根據本發明之轉換模組的另一種詳細運作時序。於此範例中,該轉換模組將垂直逐欄初步轉換與垂直逐欄二次轉換提前至水平逐列初步轉換與水平逐列二次轉換之前。如圖九(B)所示,在工作週期0~3中,沿垂直方向進行的初步轉換依序施加於欄C0~欄C3。在工作週期1~4中,沿垂直方向進行的二次轉換依序施加於欄C0~欄C3。隨後,在工作週期5~8中,沿水平方向進行的初步轉換依序施加於列R0~列R3。在工作週期6~9中,沿水平方向進行的二次轉換依序施加於列R0~列R3。由圖九(B)可看出,完成對一個4*4影像資料區塊的初步轉換與二次轉換亦總共僅需要10個工作週期的時間。 Similarly, the case where the size of the two-dimensional preliminary conversion and the two-dimensional secondary conversion are both 4*4 is taken as an example, and FIG. 9(A) and FIG. 9(B) present another detailed operational timing of the conversion module according to the present invention. In this example, the conversion module advances the vertical column-by-column preliminary conversion and the vertical column-by-column secondary conversion to the horizontal column-by-column preliminary conversion and the horizontal column-by-column secondary conversion. As shown in FIG. 9(B), in the duty cycle 0 to 3, the preliminary conversion in the vertical direction is sequentially applied to the column C 0 to the column C 3 . In the duty cycle 1 to 4, the secondary conversion in the vertical direction is sequentially applied to the column C 0 to the column C 3 . Subsequently, in the duty cycle 5-8, the preliminary conversion in the horizontal direction is sequentially applied to the columns R 0 to R 3 . In the duty cycle 6 to 9, the secondary conversion in the horizontal direction is sequentially applied to the columns R 0 to R 3 . It can be seen from Fig. 9(B) that it takes only 10 working cycles to complete the initial conversion and the secondary conversion of a 4*4 image data block.

根據本發明之另一具體實施例為一種視訊編碼方法,包含針對一影像資料區塊進行下列步驟:(a)逐列進行一水平初步轉換;(b)在完成第一列水平初步轉換後,立即開始逐列進行一水平二次轉換;(c)逐欄進行一垂直初步轉換;以及(d)在完成第一欄垂直初步轉換後,立即開始逐欄進行一垂直二次轉換。步驟(c)被安排為開始於步驟(b)完全完成之後,或者步驟(a)被安排為開始於步驟(d)完全完成之後。 According to another embodiment of the present invention, a video encoding method includes the following steps for: (a) performing a horizontal preliminary conversion column by column; (b) after completing the initial conversion of the first column level, Immediately start a horizontal secondary conversion column by column; (c) perform a vertical preliminary conversion by column; and (d) start a vertical secondary conversion by column after completing the vertical conversion of the first column. Step (c) is arranged to start after step (b) is completely completed, or step (a) is arranged to start after step (d) is completely completed.

上述為初步轉換/二次轉換排程的做法也適用於具有反向二次轉換機制的視訊解碼系統。根據本發明之另一具體實施例為一種視訊解 碼裝置,其中包含一反向轉換模組。該反向轉換模組係用以針對一影像資料區塊逐列進行一水平反向初步轉換,並且於完成第一列水平反向初步轉換後,立即開始逐列進行一水平反向二次轉換。該反向轉換模組亦逐欄進行一垂直反向初步轉換,並且在完成第一欄垂直反向初步轉換後,立即開始逐欄進行一垂直反向二次轉換。須說明的是,該反向轉換模組係於完成所有水平反向二次轉換後開始進行該垂直反向初步轉換,或是於完成所有垂直反向二次轉換後開始進行該水平反向初步轉換。 The above-mentioned practice of preliminary conversion/secondary conversion scheduling also applies to a video decoding system having a reverse secondary conversion mechanism. Another embodiment of the present invention is a video solution The code device includes a reverse conversion module. The reverse conversion module is configured to perform a horizontal reverse initial conversion for an image data block column by column, and immediately start a horizontal reverse secondary conversion column by column after completing the first column horizontal reverse preliminary conversion. . The reverse conversion module also performs a vertical reverse preliminary conversion by column, and immediately after the initial vertical reverse conversion of the first column, a vertical reverse secondary conversion is started. It should be noted that the reverse conversion module starts the vertical reverse initial conversion after completing all horizontal reverse secondary conversions, or starts the horizontal reverse preliminary after completing all vertical reverse secondary conversions. Conversion.

根據本發明之另一具體實施例為一種視訊解碼方法,包含針對一影像資料區塊進行下列步驟:(a)逐列進行一水平反向初步轉換;(b)在完成第一列水平反向初步轉換後,立即開始逐列進行一水平反向二次轉換;(c)逐欄進行一垂直反向初步轉換;以及(d)在完成第一欄垂直反向初步轉換後,立即開始逐欄進行一垂直反向二次轉換。其中,步驟(c)被安排為開始於步驟(b)完全完成之後,或者步驟(a)被安排為開始於步驟(d)完全完成之後。 Another embodiment of the present invention is a video decoding method, including the following steps for an image data block: (a) performing a horizontal reverse preliminary conversion column by column; (b) performing a horizontal inversion of the first column. Immediately after the initial conversion, a horizontal reverse quadratic conversion is started column by column; (c) a vertical reverse initial conversion is performed column by column; and (d) the column is immediately started after the initial vertical inversion of the first column is completed. Perform a vertical reverse quadratic conversion. Wherein step (c) is arranged to start after step (b) is completely completed, or step (a) is arranged to start after step (d) is completely completed.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。 The features and spirit of the present invention will be more apparent from the detailed description of the preferred embodiments. On the contrary, the intention is to cover various modifications and equivalents within the scope of the invention as claimed.

S51~S52‧‧‧流程步驟 S51~S52‧‧‧ Process steps

Claims (32)

一種視訊編碼裝置,包含:一轉換模組,用以根據一轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後轉換,其中該轉換矩陣為一初步轉換矩陣與一二次轉換矩陣之乘積,且該初步轉換矩陣對應於一二維初步轉換中沿該特定方向進行之一維初步轉換,該二次轉換矩陣對應於一二維二次轉換中沿該特定方向進行之一維二次轉換。 A video coding device includes: a conversion module, configured to perform a combined transformation on a target image data block along a specific direction according to a conversion matrix, wherein the conversion matrix is a preliminary conversion matrix and a second time Transforming a product of a matrix, and the preliminary transformation matrix corresponds to a one-dimensional preliminary transformation in the two-dimensional preliminary transformation along the specific direction, the secondary transformation matrix corresponding to one of the two-dimensional secondary transformations in the specific direction Dimensional secondary transformation. 如申請專利範圍第1項所述之視訊編碼裝置,其中該轉換模組被進一步用以:根據另一轉換矩陣,對該目標影像資料區塊垂直於該特定方向施以另一結合後轉換,其中該另一轉換矩陣為另一初步轉換矩陣與另一二次轉換矩陣之乘積,且該另一初步轉換矩陣對應於該二維初步轉換中垂直於該特定方向進行之一維初步轉換,該另一二次轉換矩陣對應於該二維二次轉換中垂直於該特定方向進行之一維二次轉換。 The video encoding device of claim 1, wherein the conversion module is further configured to: apply another combined conversion to the target image data block perpendicular to the specific direction according to another conversion matrix, Wherein the another conversion matrix is a product of another preliminary conversion matrix and another secondary transformation matrix, and the another preliminary conversion matrix corresponds to one-dimensional initial conversion in the two-dimensional preliminary transformation perpendicular to the specific direction, Another quadratic transformation matrix corresponds to one-dimensional quadratic conversion perpendicular to the particular direction in the two-dimensional quadratic transformation. 如申請專利範圍第1項所述之視訊編碼裝置,其中該二維初步轉換與該二維二次轉換之尺寸相同。 The video encoding device of claim 1, wherein the two-dimensional preliminary conversion is the same as the size of the two-dimensional secondary conversion. 如申請專利範圍第1項所述之視訊編碼裝置,其中該轉換矩陣為: The video encoding device of claim 1, wherein the conversion matrix is: . 如申請專利範圍第1項所述之視訊編碼裝置,該視訊編碼裝置係應用於數位音視頻編解碼技術標準(AVS)之編碼系統。 The video encoding device according to claim 1, wherein the video encoding device is applied to an encoding system of a digital audio and video codec technology standard (AVS). 如申請專利範圍第1項所述之視訊編碼裝置,其中當該目標影像資料區 塊被判定為不需要沿該特定方向進行之一維二次轉換,該二次轉換矩陣被設定為一單位矩陣。 The video encoding device according to claim 1, wherein the target image data area The block is determined not to perform one-dimensional secondary conversion in the specific direction, and the secondary conversion matrix is set as an identity matrix. 如申請專利範圍第1項所述之視訊編碼裝置,其中該二維初步轉換垂直於該特定方向之尺寸大於該二維二次轉換垂直於該特定方向之尺寸;該轉換模組被進一步用以:於進行該結合後轉換之前,對一輸入影像資料區塊施以該二維初步轉換中垂直該特定方向進行之一維初步轉換,以產生包含一第一子區塊與一第二子區塊之一初步轉換結果,其中該第一子區塊即為該目標影像資料區塊,且該第一子區塊垂直於該特定方向之尺寸即為該二維二次轉換垂直於該特定方向之尺寸;對該第二子區塊施以該二維初步轉換中沿該特定方向進行之一維初步轉換;以及對該目標影像資料區塊被施以該結合後轉換所產生之一中間轉換結果,施以該二維二次轉換中垂直於該特定方向進行一維二次轉換。 The video encoding device of claim 1, wherein the two-dimensional preliminary conversion is perpendicular to the specific direction and the size is greater than the size of the two-dimensional secondary conversion perpendicular to the specific direction; the conversion module is further used Before performing the post-combination conversion, an input image data block is subjected to one-dimensional initial conversion in the two-dimensional preliminary conversion in the vertical direction to generate a first sub-block and a second sub-area. a preliminary conversion result of the block, wherein the first sub-block is the target image data block, and the size of the first sub-block perpendicular to the specific direction is that the two-dimensional secondary conversion is perpendicular to the specific direction Dimensions; performing a one-dimensional initial conversion along the specific direction in the two-dimensional preliminary transformation on the second sub-block; and performing an intermediate conversion on the target image data block to be subjected to the combined conversion As a result, one-dimensional secondary conversion is performed perpendicular to the specific direction in the two-dimensional quadratic conversion. 一種視訊編碼方法,包含:根據一轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後轉換,其中該轉換矩陣為一初步轉換矩陣與一二次轉換矩陣之乘積,且該初步轉換矩陣對應於一二維初步轉換中沿該特定方向進行之一維初步轉換,該二次轉換矩陣對應於一二維二次轉換中沿該特定方向進行之一維二次轉換。 A video encoding method includes: applying a combined transformation to a specific image data block along a specific direction according to a conversion matrix, wherein the conversion matrix is a product of a preliminary conversion matrix and a secondary conversion matrix, and the The preliminary conversion matrix corresponds to a one-dimensional preliminary transformation along the specific direction in a two-dimensional preliminary transformation, and the secondary transformation matrix corresponds to one-dimensional secondary transformation in the specific direction in a two-dimensional secondary transformation. 如申請專利範圍第8項所述之視訊編碼方法,進一步包含:根據另一轉換矩陣,對該目標影像資料區塊垂直於該特定方向施以另一結合後轉換,其中該另一轉換矩陣為另一初步轉換矩陣與另一二次轉換矩陣之乘積,且該另一初步轉換矩陣對應於該二維初步轉換中垂直於該特定方向進行之一維初步轉換,該另一二次轉 換矩陣對應於該二維二次轉換中垂直於該特定方向進行之一維二次轉換。 The video encoding method of claim 8, further comprising: applying another combined conversion to the target image data block perpendicular to the specific direction according to another conversion matrix, wherein the another conversion matrix is a product of another preliminary conversion matrix and another secondary transformation matrix, and the another preliminary conversion matrix corresponds to one-dimensional initial conversion perpendicular to the specific direction in the two-dimensional preliminary transformation, and the other second transformation The commutation matrix corresponds to one-dimensional quadratic conversion perpendicular to the particular direction in the two-dimensional quadratic transformation. 如申請專利範圍第8項所述之視訊編碼方法,其中該二維初步轉換與該二維二次轉換之尺寸相同。 The video encoding method of claim 8, wherein the two-dimensional preliminary conversion is the same as the size of the two-dimensional secondary conversion. 如申請專利範圍第10項所述之視訊編碼方法,係應用於數位音視頻編解碼技術標準(AVS),其中該轉換矩陣為: The video encoding method according to claim 10 is applied to a digital audio and video codec technical standard (AVS), wherein the conversion matrix is: . 如申請專利範圍第8項所述之視訊編碼方法,其中當該目標影像資料區塊被判定為不需要沿該特定方向進行之一維二次轉換,該二次轉換矩陣被設定為一單位矩陣。 The video encoding method of claim 8, wherein the secondary image conversion matrix is set to a unit matrix when the target image data block is determined not to perform one-dimensional secondary conversion in the specific direction. . 如申請專利範圍第8項所述之視訊編碼方法,其中該二維初步轉換垂直於該特定方向之尺寸大於該二維二次轉換垂直於該特定方向之尺寸;該視訊編碼方法進一步包含:於進行該結合後轉換之前,對一輸入影像資料區塊施以該二維初步轉換中垂直該特定方向進行之一維初步轉換,以產生包含一第一子區塊與一第二子區塊之一初步轉換結果,其中該第一子區塊即為該目標影像資料區塊,且該第一子區塊垂直於該特定方向之尺寸即為該二維二次轉換垂直於該特定方向之尺寸;對該第二子區塊施以該二維初步轉換中沿該特定方向進行之一維初步轉換;以及對該目標影像資料區塊被施以該結合後轉換所產生之一中間轉換結果,施以該二維二次轉換中垂直於該特定方向進行一維二次轉換。 The video encoding method of claim 8, wherein the two-dimensional preliminary conversion is perpendicular to the size of the specific direction and the size of the two-dimensional secondary conversion is perpendicular to the specific direction; the video encoding method further comprises: Before performing the post-combination conversion, an input image data block is subjected to a one-dimensional preliminary conversion in the two-dimensional preliminary conversion in the vertical direction to generate a first sub-block and a second sub-block. a preliminary conversion result, wherein the first sub-block is the target image data block, and the size of the first sub-block perpendicular to the specific direction is the size of the two-dimensional secondary conversion perpendicular to the specific direction Transmitting, by the second sub-block, a one-dimensional initial conversion in the specific direction in the two-dimensional preliminary transformation; and performing an intermediate conversion result on the target image data block to be subjected to the combination conversion, The two-dimensional quadratic conversion is applied to perform one-dimensional secondary conversion perpendicular to the specific direction. 一種視訊解碼裝置,包含:一反向轉換模組,用以根據一反向轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後反向轉換,其中該反向轉換矩陣為一反向初步轉換矩陣與一反向二次轉換矩陣之乘積,且該反向初步轉換矩陣對應於一二維反向初步轉換中沿該特定方向進行之一維反向初步轉換,該反向二次轉換矩陣對應於一二維反向二次轉換中沿該特定方向進行之一維反向二次轉換。 A video decoding device includes: a reverse conversion module, configured to perform a combined reverse conversion on a target image data block according to a reverse conversion matrix, wherein the reverse conversion matrix is a product of a reverse preliminary transformation matrix and an inverse quadratic transformation matrix, and the inverse preliminary transformation matrix corresponds to a one-dimensional inverse preliminary transformation in the specific direction in a two-dimensional inverse preliminary transformation, the reverse The quadratic transformation matrix corresponds to one-dimensional inverse quadratic transformation along the particular direction in a two-dimensional inverse quadratic transformation. 如申請專利範圍第14項所述之視訊解碼裝置,其中該反向轉換模組被進一步用以:根據另一反向轉換矩陣,對該目標影像資料區塊施以垂直於該特定方向之另一結合後反向轉換,其中該另一反向轉換矩陣為另一反向初步轉換矩陣與另一反向二次轉換矩陣之乘積,且該另一反向初步轉換矩陣對應於該二維反向初步轉換中垂直於該特定方向進行之一維反向初步轉換,該另一反向二次轉換矩陣對應於該二維反向二次轉換中垂直於該特定方向進行之一維反向二次轉換。 The video decoding device of claim 14, wherein the inverse conversion module is further configured to: apply another vertical direction to the target image data block according to another reverse conversion matrix a combined inverse transform, wherein the other inverse transform matrix is a product of another inverse preliminary transform matrix and another inverse quadratic transform matrix, and the another reverse preliminary transform matrix corresponds to the two-dimensional inverse Performing a one-dimensional inverse preliminary transformation perpendicular to the specific direction in the preliminary conversion, the another inverse quadratic transformation matrix corresponding to the one-dimensional inverse of the two-dimensional inverse quadratic transformation perpendicular to the specific direction Sub-conversion. 如申請專利範圍第14項所述之視訊解碼裝置,其中該二維反向初步轉換與該二維反向二次轉換之尺寸相同。 The video decoding device of claim 14, wherein the two-dimensional reverse preliminary conversion is the same size as the two-dimensional inverse secondary conversion. 如申請專利範圍第14項所述之視訊解碼裝置,其中該反向轉換矩陣為: The video decoding device of claim 14, wherein the inverse conversion matrix is: . 如申請專利範圍第14項所述之視訊解碼裝置,該視訊解碼裝置係應用於數位音視頻編解碼技術標準(AVS)之解碼系統。 The video decoding device according to claim 14, wherein the video decoding device is applied to a decoding system of a digital audio and video codec technology standard (AVS). 如申請專利範圍第14項所述之視訊解碼裝置,其中當該目標影像資料區塊被判定為不需要沿該特定方向進行之一維反向二次轉換,該反向二次 轉換矩陣被設定為一單位矩陣。 The video decoding device of claim 14, wherein the target image data block is determined not to perform one-dimensional inverse quadratic conversion in the specific direction, the reverse second The conversion matrix is set to a unit matrix. 如申請專利範圍第14項所述之視訊解碼裝置,其中該二維反向初步轉換垂直於該特定方向之尺寸大於該二維反向二次轉換垂直於該特定方向之尺寸;該反向轉換模組被進一步用以:於進行該結合後反向轉換之前,對一輸入影像資料區塊施以該二維反向初步轉換中垂直該特定方向進行之一維反向初步轉換,以產生包含一第一子區塊與一第二子區塊之一初步轉換結果,其中該第一子區塊即為該目標影像資料區塊,且該第一子區塊垂直於該特定方向之尺寸即為該二維反向二次轉換垂直於該特定方向之尺寸;對該第二子區塊施以該二維反向初步轉換中沿該特定方向進行之一維反向初步轉換;以及對該目標影像資料區塊被施以該結合後反向轉換所產生之一中間轉換結果,施以該二維反向二次轉換中垂直於該特定方向進行一維反向二次轉換。 The video decoding device of claim 14, wherein the two-dimensional reverse preliminary conversion is perpendicular to the size of the specific direction greater than the size of the two-dimensional inverse quadratic transformation perpendicular to the specific direction; the reverse conversion The module is further configured to: perform a one-dimensional reverse initial conversion in the two-dimensional reverse preliminary conversion on the input image data block before performing the combined back-conversion to generate the inclusion a preliminary conversion result of one of the first sub-block and the second sub-block, wherein the first sub-block is the target image data block, and the first sub-block is perpendicular to the size of the specific direction The first two-dimensional inverse quadratic transformation is perpendicular to the size of the specific direction; the second sub-block is subjected to one-dimensional reverse preliminary conversion in the two-dimensional reverse preliminary conversion in the specific direction; The target image data block is subjected to one of the intermediate conversion results generated by the inverse transformation after the combination, and the one-dimensional inverse quadratic conversion is performed perpendicular to the specific direction in the two-dimensional inverse quadratic conversion. 一種視訊解碼方法,包含:根據一反向轉換矩陣,對一目標影像資料區塊沿一特定方向施以一結合後反向轉換,其中該反向轉換矩陣為一反向初步轉換矩陣與一反向二次轉換矩陣之乘積,且該反向初步轉換矩陣對應於一二維反向初步轉換中沿該特定方向進行之一維反向初步轉換,該反向二次轉換矩陣對應於一二維反向二次轉換中沿該特定方向進行之一維反向二次轉換。 A video decoding method includes: applying a combined inverse transform to a target image data block according to a reverse transform matrix, wherein the inverse transform matrix is a reverse preliminary conversion matrix and a reverse a product of a quadratic transformation matrix, and the inverse preliminary transformation matrix corresponds to a one-dimensional inverse preliminary transformation in the two-dimensional inverse preliminary transformation, the inverse quadratic transformation matrix corresponding to a two-dimensional In the reverse quadratic conversion, one-dimensional inverse quadratic conversion is performed in the specific direction. 如申請專利範圍第21項所述之視訊解碼方法,進一步包含:根據另一反向轉換矩陣,對該目標影像資料區塊施以垂直於該特定方向之另一結合後反向轉換,其中該另一反向轉換矩陣為另一反向初步轉換矩陣與另一反向二次轉換矩陣之乘積,且該另一反向 初步轉換矩陣對應於該二維反向初步轉換中垂直於該特定方向進行之一維反向初步轉換,該另一反向二次轉換矩陣對應於該二維反向二次轉換中垂直於該特定方向進行之一維反向二次轉換。 The video decoding method of claim 21, further comprising: applying another combined reverse conversion perpendicular to the specific direction to the target image data block according to another reverse conversion matrix, wherein the Another inverse conversion matrix is the product of another reverse preliminary conversion matrix and another inverse secondary transformation matrix, and the other reverse The preliminary conversion matrix corresponds to one-dimensional inverse preliminary conversion perpendicular to the specific direction in the two-dimensional inverse preliminary transformation, and the other inverse secondary transformation matrix corresponds to the two-dimensional inverse quadratic transformation perpendicular to the Perform one-dimensional reverse quadratic conversion in a specific direction. 如申請專利範圍第21項所述之視訊解碼方法,其中該二維反向初步轉換與該二維反向二次轉換之尺寸相同。 The video decoding method of claim 21, wherein the two-dimensional reverse preliminary conversion is the same size as the two-dimensional inverse secondary conversion. 如申請專利範圍第23項所述之視訊解碼方法,係應用於數位音視頻編解碼技術標準(AVS),其中該特定方向為水平方向,該反向轉換矩陣為: The video decoding method according to claim 23 is applied to a digital audio and video codec technical standard (AVS), wherein the specific direction is a horizontal direction, and the inverse conversion matrix is: . 如申請專利範圍第21項所述之視訊解碼方法,其中當該目標影像資料區塊被判定為不需要沿該特定方向進行之一維反向二次轉換,該反向二次轉換矩陣被設定為一單位矩陣。 The video decoding method according to claim 21, wherein the reverse quadratic conversion matrix is set when the target image data block is determined not to perform one-dimensional inverse secondary conversion in the specific direction. Is a unit matrix. 如申請專利範圍第21項所述之視訊解碼方法,其中該二維反向初步轉換垂直於該特定方向之尺寸大於該二維反向二次轉換垂直於該特定方向之尺寸;該視訊解碼方法進一步包含:於進行該結合後反向轉換之前,對一輸入影像資料區塊施以該二維反向初步轉換中垂直該特定方向進行之一維反向初步轉換,以產生包含一第一子區塊與一第二子區塊之一初步轉換結果,其中該第一子區塊即為該目標影像資料區塊,且該第一子區塊垂直於該特定方向之尺寸即為該二維反向二次轉換垂直於該特定方向之尺寸;對該第二子區塊施以該二維反向初步轉換中沿該特定方向進行之一維反向初步轉換;以及對該目標影像資料區塊被施以該結合後反向轉換所產生之一中間轉 換結果,施以該二維反向二次轉換中垂直於該特定方向進行一維反向二次轉換。 The video decoding method of claim 21, wherein the two-dimensional reverse preliminary conversion is perpendicular to a size of the specific direction greater than a size of the two-dimensional inverse secondary conversion perpendicular to the specific direction; the video decoding method The method further includes: performing a one-dimensional reverse initial conversion in the two-dimensional reverse preliminary conversion on the input image data block before performing the combined back-conversion to generate a first sub-conversion a preliminary conversion result of one of the block and a second sub-block, wherein the first sub-block is the target image data block, and the size of the first sub-block perpendicular to the specific direction is the two-dimensional The inverse quadratic conversion is perpendicular to the size of the specific direction; the second sub-block is subjected to one-dimensional reverse initial conversion in the specific direction in the two-dimensional reverse preliminary conversion; and the target image data area is The block is subjected to the combination of the reverse conversion to produce one of the intermediate turns As a result, a one-dimensional inverse quadratic conversion is performed perpendicular to the specific direction in the two-dimensional inverse quadratic conversion. 一種視訊編碼裝置,包含:一轉換模組,用以針對一影像資料區塊:逐列進行一水平初步轉換;在完成第一列水平初步轉換後,立即開始逐列進行一水平二次轉換;逐欄進行一垂直初步轉換;以及在完成第一欄垂直初步轉換後,立即開始逐欄進行一垂直二次轉換;其中該轉換模組係於完成所有水平二次轉換後開始進行該垂直初步轉換,或是於完成所有垂直二次轉換後開始進行該水平初步轉換。 A video encoding device includes: a conversion module for performing a horizontal preliminary conversion for an image data block: column by column; and immediately starting a horizontal secondary conversion column by column after completing the first column level preliminary conversion; Performing a vertical preliminary conversion by column; and immediately after the initial vertical conversion of the first column, starting a vertical secondary conversion by column; wherein the conversion module starts the vertical preliminary conversion after completing all horizontal secondary conversions. Or start the initial conversion of this level after completing all vertical secondary conversions. 如申請專利範圍第27項所述之視訊編碼裝置,係應用數位音視頻編解碼技術標準(AVS),其中該轉換模組係於完成所有轉換之後得到以下轉換矩陣: For example, the video encoding device described in claim 27 applies a digital audio and video codec technology standard (AVS), wherein the conversion module obtains the following conversion matrix after completing all conversions: 一種視訊編碼方法,係應用數位音視頻編解碼技術標準(AVS),該視訊編碼方法包含:針對一影像資料區塊:(a)逐列進行一水平初步轉換;(b)在完成第一列水平初步轉換後,立即開始逐列進行一水平二次轉換;(c)逐欄進行一垂直初步轉換;以及(d)在完成第一欄垂直初步轉換後,立即開始逐欄進行一垂直二次轉 換;其中步驟(c)被安排為開始於步驟(b)完全完成之後,或者步驟(a)被安排為開始於步驟(d)完全完成之後。 A video encoding method is applied to a digital audio and video codec technology standard (AVS), the video encoding method includes: for an image data block: (a) performing a horizontal preliminary conversion column by column; (b) completing the first column Immediately after the initial conversion of the level, a horizontal secondary conversion is started column by column; (c) a vertical preliminary conversion is performed column by column; and (d) immediately after the initial vertical conversion of the first column is completed, a vertical vertical is started column by column. turn Change; wherein step (c) is arranged to start after step (b) is completely completed, or step (a) is arranged to start after step (d) is completely completed. 一種視訊解碼裝置,包含:一反向轉換模組,用以針對一影像資料區塊:逐列進行一水平反向初步轉換;在完成第一列水平反向初步轉換後,立即開始逐列進行一水平反向二次轉換;逐欄進行一垂直反向初步轉換;以及在完成第一欄垂直反向初步轉換後,立即開始逐欄進行一垂直反向二次轉換;其中該反向轉換模組係於完成所有水平反向二次轉換後開始進行該垂直反向初步轉換,或是於完成所有垂直反向二次轉換後開始進行該水平反向初步轉換。 A video decoding device includes: a reverse conversion module for performing a horizontal reverse initial conversion for an image data block; and starting column by column immediately after completing the first column horizontal reverse preliminary conversion a horizontal reverse quadratic conversion; performing a vertical reverse preliminary conversion by column; and, after completing the first vertical vertical reverse initial conversion, immediately starting a vertical reverse secondary conversion by column; wherein the reverse conversion mode The group starts the vertical reverse preliminary conversion after completing all horizontal reverse secondary conversions, or starts the horizontal reverse preliminary conversion after all vertical reverse secondary conversions are completed. 如申請專利範圍第30項所述之視訊解碼裝置,係應用數位音視頻編解碼技術標準(AVS),其中該反向轉換模組係於完成所有轉換後得到以下反向轉換矩陣: For example, the video decoding device described in claim 30 applies a digital audio and video codec technology standard (AVS), wherein the reverse conversion module obtains the following inverse conversion matrix after all conversions are completed: 一種視訊解碼方法,係應用於數位音視頻編解碼技術標準(AVS),該視訊解碼方法包含:針對一影像資料區塊:(a)逐列進行一水平反向初步轉換;(b)在完成第一列水平反向初步轉換後,立即開始逐列進行一水平反向二次轉換; (c)逐欄進行一垂直反向初步轉換;以及(d)在完成第一欄垂直反向初步轉換後,立即開始逐欄進行一垂直反向二次轉換;其中步驟(c)被安排為開始於步驟(b)完全完成之後,或者步驟(a)被安排為開始於步驟(d)完全完成之後。 A video decoding method is applied to a digital audio and video codec technology standard (AVS), and the video decoding method comprises: for an image data block: (a) performing a horizontal reverse initial conversion column by column; (b) completing After the initial conversion of the first column of horizontal inversion, a horizontal reverse quadratic conversion is started column by column immediately; (c) performing a vertical reverse preliminary conversion by column; and (d) starting a vertical reverse secondary conversion by column after completing the initial vertical vertical conversion of the first column; wherein step (c) is arranged as Beginning after step (b) is fully completed, or step (a) is scheduled to begin after step (d) is fully completed.
TW104102323A 2014-09-24 2015-01-23 Video encoding apparatus and video decoding apparatus and encoding method and decoding method thereof TWI551119B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410495725.2A CN105516730B (en) 2014-09-24 2014-09-24 Video coding device and video decoded device and its coding and coding/decoding method

Publications (2)

Publication Number Publication Date
TW201613351A TW201613351A (en) 2016-04-01
TWI551119B true TWI551119B (en) 2016-09-21

Family

ID=55527005

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104102323A TWI551119B (en) 2014-09-24 2015-01-23 Video encoding apparatus and video decoding apparatus and encoding method and decoding method thereof

Country Status (3)

Country Link
US (1) US10225579B2 (en)
CN (1) CN105516730B (en)
TW (1) TWI551119B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017173593A1 (en) * 2016-04-06 2017-10-12 Mediatek Singapore Pte. Ltd. Separate coding secondary transform syntax elements for different color components
WO2017191782A1 (en) * 2016-05-04 2017-11-09 Sharp Kabushiki Kaisha Systems and methods for coding transform data
WO2017195555A1 (en) * 2016-05-13 2017-11-16 シャープ株式会社 Image decoding device and image encoding device
US11095893B2 (en) * 2016-10-12 2021-08-17 Qualcomm Incorporated Primary transform and secondary transform in video coding
WO2018097691A2 (en) * 2016-11-28 2018-05-31 한국전자통신연구원 Method and apparatus for encoding/decoding image, and recording medium in which bit stream is stored
EP3567858A4 (en) * 2017-01-03 2020-06-17 LG Electronics Inc. -1- Method and device for encoding/decoding video signal using secondary transform
KR20230008911A (en) * 2017-12-15 2023-01-16 엘지전자 주식회사 Image coding method on basis of transformation and device therefor
KR20240040133A (en) * 2018-04-01 2024-03-27 엘지전자 주식회사 Method and apparatus for processing video signal by applying secondary transform to partitioned block
JP7055879B2 (en) * 2018-09-05 2022-04-18 エルジー エレクトロニクス インコーポレイティド Video signal coding / decoding method and equipment for that purpose
WO2020130581A1 (en) * 2018-12-19 2020-06-25 엘지전자 주식회사 Method for coding image on basis of secondary transform and device therefor
CN113785576B (en) 2019-04-23 2023-05-16 北京字节跳动网络技术有限公司 Use of secondary transforms in codec video
CN117499641A (en) 2019-05-10 2024-02-02 北京字节跳动网络技术有限公司 Conditional use of simplified quadratic transforms for video processing
KR20220016844A (en) 2019-06-07 2022-02-10 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 Conditional signaling of reduced quadratic transform in video bitstreams
KR20220038682A (en) 2019-08-03 2022-03-29 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 Selection of matrices for reduced quadratic transformation in video coding
CN114223208B (en) 2019-08-17 2023-12-29 北京字节跳动网络技术有限公司 Context modeling for side information of reduced secondary transforms in video
WO2021230602A1 (en) * 2020-05-11 2021-11-18 엘지전자 주식회사 Image coding method and device therefor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201325247A (en) * 2011-11-07 2013-06-16 Samsung Electronics Co Ltd Inverse transformation method and inverse transformation apparatus for clipping data during inverse quantization and inverse transformation in video decoding process

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100539704C (en) * 2005-12-08 2009-09-09 香港中文大学 The conversion equipment of the code coefficient of vision signal and method thereof
CN100563337C (en) * 2007-10-24 2009-11-25 上海广电(集团)有限公司中央研究院 Integer transform based on AVS quantizes and the integral inverse transform quantification method
CN101188761A (en) * 2007-11-30 2008-05-28 上海广电(集团)有限公司中央研究院 Method for optimizing DCT quick algorithm based on parallel processing in AVS
CN101640791A (en) * 2009-03-10 2010-02-03 青岛海信信芯科技有限公司 Decoding method, decoding device and decoder
US20120134412A1 (en) * 2009-08-06 2012-05-31 Youji Shibahara Encoding method, decoding method, encoding device and decoding device
CN102036063A (en) * 2009-09-29 2011-04-27 北京中星微电子有限公司 Image transformation method and device for coding and decoding
US8885714B2 (en) * 2010-01-14 2014-11-11 Texas Instruments Incorporated Method and system for intracoding in video encoding

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201325247A (en) * 2011-11-07 2013-06-16 Samsung Electronics Co Ltd Inverse transformation method and inverse transformation apparatus for clipping data during inverse quantization and inverse transformation in video decoding process

Also Published As

Publication number Publication date
US20160088310A1 (en) 2016-03-24
CN105516730A (en) 2016-04-20
CN105516730B (en) 2018-04-24
US10225579B2 (en) 2019-03-05
TW201613351A (en) 2016-04-01

Similar Documents

Publication Publication Date Title
TWI551119B (en) Video encoding apparatus and video decoding apparatus and encoding method and decoding method thereof
CN102792689B (en) Delta compression can be carried out and for by image, remote display is presented to the amendment of estimation and metadata
CN1153472C (en) Video decoder with interleaved data processing
TWI551124B (en) Encoding, decoding method and encoding, decoding apparatus for video system
KR101266667B1 (en) Dual-mode compression of images and videos for reliable real-time transmission
US8908985B2 (en) Image processing including encoding information concerning the maximum number of significant digits having largest absolute value of coefficient data in groups
US10382767B2 (en) Video coding using frame rotation
US20170163988A1 (en) Systems and method of using compressed reference frames in video codecs
TW201626795A (en) Signal processing apparatus and signal processing method including quantization or inverse-quantization process
CN102055970A (en) Multi-standard video decoding system
CN106454355A (en) Video encoding method and apparatus
TWI558172B (en) Advanced video coding and decoding chip and advanced video coding and decoding method
WO2012171401A1 (en) Parallel filtering method and apparatus
US8861880B2 (en) Image processing device and image processing method
CN104904215A (en) Scalable high throughput video encoder
TWI514851B (en) Image encoding/decing system and method applicable thereto
RU2420912C1 (en) Method of distributing and transcoding video content
TWI573440B (en) Advanced video coding and decoding chip and advanced video coding and decoding method
US20190379889A1 (en) Transforms for large video and image blocks
TWI792993B (en) Video encoding method using multiple in-loop filters in low latency video encoding and associated video encoding apparatus
WO2020078253A1 (en) Transform and inverse transform methods and devices for image block
CN105323589A (en) Coding and decoding methods and coding and decoding devices for video system
TWI555388B (en) Image encoding apparatus, image decoding apparatus and encoding and decoding methods thereof