TW201138477A - Image decoding method, image encoding method, and devices, programs, and integrated circuits therefor - Google Patents

Image decoding method, image encoding method, and devices, programs, and integrated circuits therefor Download PDF

Info

Publication number
TW201138477A
TW201138477A TW99137245A TW99137245A TW201138477A TW 201138477 A TW201138477 A TW 201138477A TW 99137245 A TW99137245 A TW 99137245A TW 99137245 A TW99137245 A TW 99137245A TW 201138477 A TW201138477 A TW 201138477A
Authority
TW
Taiwan
Prior art keywords
offset
quantization
value
update
matrix
Prior art date
Application number
TW99137245A
Other languages
Chinese (zh)
Inventor
Chong Soon Lim
Min Li
hai wei Sun
Youji Shibahara
Takahiro Nishi
Original Assignee
Panasonic Corp
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 Panasonic Corp filed Critical Panasonic Corp
Publication of TW201138477A publication Critical patent/TW201138477A/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/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process

Abstract

An image decoding method which achieves a reduction in the amount of codes is an image decoding method for decoding an encoded image included in an encoded stream, said image decoding method comprising: analyzing an offset update flag in a header included in the encoded stream (S10); determining whether or not the analyzed offset update flag indicates a predetermined value (S11); calculating a quantization offset matrix used for the encoded image using an offset update parameter included in the header when it is determined that the analyzed offset update flag indicates the predetermined value (S12); and decoding the encoded image by inversely quantizing the encoded image using the calculated quantization offset matrix (S13).

Description

201138477 六、發明說明: c發明戶斤屬之技術領域】 發明領域 本發明係有關於將編碼過的圖像予以解碼之方法、以 及將圖像予以編碼之方法,尤其,係有關於用於逆量化及 量化之參數的解碼及編碼。 【先前技術3 發明背景 在各種圖像或影像之編碼方式中,量化係將圖像或影 像内幾項資訊加以除去,藉此壓縮資料的重要步驟。在量 化處理中,為使圖像或資料可藉由失去資訊而壓縮得更良 好,通常係在經頻率轉換之區域中執行量化。 在大部分的圖像或影像之編碼方式中,量化處理可藉 由量化參數加以控制。此時,量化參數之值愈大,壓縮量 亦愈大,因而會失去更多的資訊。而且,反之亦同。 為了控制量化處理,在圖像或影像之編碼方式之中, 除量化參數以外,另有可藉由量化偏移值之集合(量化偏移 矩陣)控制量化及逆量化處理者。在此,可使用量化參數及 對應之一個量化偏移值雙方,將2維轉換塊中之各頻率係數 (轉換係數)予以量化。 逆量化處理之一例可藉由下式表示。201138477 VI. INSTRUCTIONS: C TECHNICAL FIELD OF THE INVENTION FIELD OF THE INVENTION The present invention relates to a method of decoding an encoded image, and a method of encoding an image, in particular, Decoding and encoding of quantized and quantized parameters. [Prior Art 3] In various image or image encoding methods, quantization is an important step of compressing data by removing several pieces of information in an image or image. In the quantization process, in order to make the image or data more compressed by losing the information, the quantization is usually performed in the frequency-converted region. In most image or image coding methods, the quantization process can be controlled by quantization parameters. At this time, the larger the value of the quantization parameter, the larger the compression amount, and thus the more information is lost. And, vice versa. In order to control the quantization process, among the coding methods of the image or the video, in addition to the quantization parameter, the quantization and inverse quantization process can be controlled by the set of quantization offset values (quantization offset matrix). Here, each of the frequency coefficients (conversion coefficients) in the two-dimensional conversion block can be quantized using both the quantization parameter and the corresponding one of the quantization offset values. An example of the inverse quantization process can be expressed by the following equation.

AbsCoeff[i][j]=((abs(QuantizedCoeff[i][j])«7)-Offset[i][j])*AbsCoeff[i][j]=((abs(QuantizedCoeff[i][j])«7)-Offset[i][j])*

LevelScale»(QShift+7) 在此,[i]及[j]係表示在2維轉換塊之頻率係數之位置, 201138477LevelScale»(QShift+7) Here, [i] and [j] indicate the position of the frequency coefficient of the 2-dimensional conversion block, 201138477

AbsCoeff[i][j]係表示在位置(i,j)之頻率係數、經逆量化過之 值之絕對值。QuantizedCoeff[i][j]係表示位置(y)中之頻率 係數之經量化過之值。又’《及》係表示位元之左位移及 右位移、*係表示乘法。此外,LevelScale及QShift係由量化 參數所控制。Offset[i][j]係位置(i,j)中之對於頻率係數的量 化偏移值。 有數個先前技術係說明對量化處理使用量化偏移泉 數。但,如該等先前技術所説明之量化偏移參數,乃僅用 於量化處理而未用於逆量化處理。此種量化偏移參數係僅 作用為典型的除法或右位移運算中之捨進演算。 s兒明為用以逆量化處理而傳送至解碼器之量化偏移值 的先前技術,僅有少數(如參考非專利文獻1}。又,量化偏 移值之動態範圍(dynamic range)通常係受限於量化比例階 大小(scale step size)。舉例而言,於下簡單説明。 逆量化處理,通常係按比例增減(scaUng)、亦即乘法声 理。逆量化值通常係依照量化比例階大小按比例增減。: 時,逆量化值可藉由將對應於量化偏移值之量化水平偏移 (level offset)值施行加法或減法’而往上方或下方調整。 但’使用量化水平偏移值所執行之調整,通常係受限在未 滿1步階大小(one step size)。 第1圖係顯示以量化水平偏移值所調整之逆量化值 圖。 之 逆量化值(料量化社量化紅鱗即緖 化值(量化值之絕對值)乘上量化比例階大小QSS所算出。里 201138477 外’其逆量化值係從其逆量化值減去(或加上)量化水平偏移 值,而往上方或下方調整,並設定為最終的逆量化值。 先前技術文獻 非專利文獻 非專利文獻1 :AbsCoeff[i][j] is the absolute value of the frequency coefficient at the position (i, j) and the inverse quantized value. QuantizedCoeff[i][j] represents the quantized value of the frequency coefficient in position (y). Also, 'and' indicates the left and right displacement of the bit, and the * indicates the multiplication. In addition, LevelScale and QShift are controlled by quantization parameters. Offset[i][j] is the quantized offset value for the frequency coefficient in the position (i, j). There are several prior art notes that use quantized offset springs for quantization processing. However, the quantization offset parameters as described in the prior art are used only for quantization processing and not for inverse quantization processing. Such a quantization offset parameter only acts as a rounding calculation in a typical division or right displacement operation. The prior art, which is a quantization offset value transmitted to the decoder by the inverse quantization process, is only a few (see, for example, Non-Patent Document 1). Moreover, the dynamic range of the quantization offset value is usually It is limited to the quantization scale step size. For example, it is briefly explained below. The inverse quantization process is usually proportionally increased or decreased (scaUng), that is, multiplicative sound. The inverse quantization value is usually based on the quantization ratio. The magnitude of the order is proportionally increased or decreased.: The inverse quantized value can be adjusted upward or downward by performing addition or subtraction of the quantized horizontal offset value corresponding to the quantized offset value. The adjustment performed by the offset value is usually limited to one step size. Figure 1 shows the inverse quantized value adjusted by the quantized horizontal offset value. The quantitative quantifier red scale is the eigenvalue (the absolute value of the quantized value) multiplied by the quantization scale order size QSS. In 201138477, the 'inverse quantized value is subtracted (or added) from the inverse quantized value. Move the value and go up or Adjusted below and set as the final inverse quantized value. Prior Technical Documents Non-Patent Literature Non-Patent Document 1:

http://wftp3.itu.int/av-arch/jvt-site/2004_03_Munich/JVT -K026.ziphttp://wftp3.itu.int/av-arch/jvt-site/2004_03_Munich/JVT -K026.zip

C ^'明内J 發明概要 發明欲解決之課題 在先前技術之課題在於:用以將元素中包含量化偏移 ^矩陣的量化偏移矩陣傳送至解碼器所需之位元數很 ^尤^田傳送至解碼器之量化偏移矩陣很多時 ,在先 財係將各里化偏移值獨立傳送,因此用以呈現傳送 至解碼器的該等矩陣,需要有大量的位元。 供―羡此’本發明係#於該問題而完成者,其目的在於提 &肖丨錢碼數量之圖像解碼方法及圖像編碼方法。 用从欲解決課題之手段 為達成上述目的, 解碼含、 本發明一態樣之圖像解碼方法,係 前述紙'扁之編碼圖像者,具有下述處理:解析出 解析出二所含之標頭内所具有的偏移更新旗標;對所 判定;偏移更新旗標是否顯示預先所設定之值進行 所敦定A為所解析出之前述偏移更新旗標是顯示預先 夺使用削述標頭所含之偏移更新參數,將適 201138477C ^ '明内 J SUMMARY OF THE INVENTION Problem to be Solved by the Invention The problem of the prior art is that the number of bits required to transmit the quantization offset matrix including the quantization offset matrix in the element to the decoder is very good. When there are many quantization offset matrices transmitted to the decoder, the prior financial system separately transmits the respective offset values, so that it is necessary to have a large number of bits for presenting the matrices transmitted to the decoder. For the purpose of the present invention, the object of the present invention is to provide an image decoding method and an image encoding method for the number of money codes. In order to achieve the above object, a method for decoding an image according to an aspect of the present invention, which is the image-encoding image of the present invention, has the following processing: analysis and analysis of the two The offset update flag in the header; the determined value; whether the offset update flag displays the previously set value, and the aforementioned offset update flag is determined by the display. The offset update parameter contained in the header will be suitable for 201138477

又,在本發明-態樣之圖像解碼方法中 標頭或序列標頭)内所儲存之偏移更 ’里化偏移矩陣凋整逆量化值之範圍相 調整逆量化值時,可使其更具彈性, 觀上的畫質。 细杜β旦. 田Μ θ It匕’於 而改善解碼圖像之主 又,則述標頭含有顯示前述量化偏移矩陣之更新方、去 的更新種類識別符。於算出前述量化偏移矩陣時,係解析 出前述標頭所含之前述更新種類識別符,且依照由所解析 出之前述更新種類識別符所示之更新方法,算出前述旦化 偏移矩陣。 藉此,由於乃以對應於更新種類識別符之更新方法瞀 出量化偏移矩陣,因此在圖像編碼裝置方面,可在量彳匕i 逆量化中選擇適當的更新方法,使對應於其所選擇之更新 方法之偏移更新參數及更新種類識別符納入編碼串流之桿 頭即可。因此,可使量化偏移矩陣之更新或算出更具彈性。 6 201138477 又,於算出前述量化偏移矩陣時,係對已儲存在記憶 體之其他量化偏移矩陣適用前述偏移更新參數,藉此將算 出對象的量化偏移矩陣予以算出。 藉此,算出對象的量化偏移矩陣與其他量化偏移矩陣 之差分愈少,愈可削減偏移更新參數之位元數,而可進一 步削減編碼串流之代碼數量。 又,於算出前述量化偏移矩陣時,係將上一個算出之 量化偏移矩陣作為前述其他量化偏移矩陣,而適用前述偏 移更新參數。 藉此,由於上一個所算出之量化偏移矩陣有強烈類似 算出對象的量化偏移矩陣之傾向,因此可確實削減偏移更 新參數之位元數。 又,前述標頭含有用以特定前述其他量化偏移矩陣之 矩陣識別符。於算出前述量化偏移矩陣時,係解析出前述 標頭所含之前述矩陣識別符,且從前述記憶體,檢索由所 解析出之前述矩陣識別符所識別的前述其他量化偏移矩 陣。 藉此,在圖像編碼裝置方面,可適當地選擇與算出對 象的量化偏移矩陣之差分很少的其他量化偏移矩陣,且將 用以特定其所選擇之其他量化偏移矩陣之矩陣識別符,納 入標頭即可。因此,可確實減少算出對象的量化偏移矩陣 與其他量化偏移矩陣之差分,且更可確實地削減編碼串流 之代碼數量。 又,前述標頭含有第1及第2修正參數、與5偏移值, 201138477 該δ偏移值係對應於算出對象的量化偏移矩陣中所含之各 元素者。於算出前述量化偏移矩陣時,係依據前述標頭中 所含之前述第1及第2修正參數,算出第1及第2係數;並就 每一個作為前述其他量化偏移矩陣之元素的既知量化偏移 值’將第1係數乘於該既知量化偏移值’藉此算出第1值, 將第2係數乘於該既知量化偏移值與固定值之差分,藉此算 出第2值,將前述第1值與前述第2值相加,藉此算出預測量 化偏移值’將前述預測量化偏移值加上與前述算出對象的 前述量化偏移矩陣之元素相對應的前述5偏移值,藉此算 出作為前述元素之量化偏移值。 例如,前述標頭中另含有偏移更新分母。於算出前述 第1係數時,係將前述第1修正參數加上前述偏移更新分母 後,將由前述加法所得之值除以前述偏移更新分母,藉此 算出前述第1係數。又,於算出前述第2係數時,係將前述 第2修正參數除以前述偏移更新分母,藉此算出前述第2係 數。在此,前述固定值係對算出對象的量化偏移矩陣預先 所設定之值。 又’前述固定值亦可係作為元素而含於前述其他量化 偏移矩陣、且位在對應於直流成分之位置的量化偏移值。 藉此’藉由將第2係數乘於其他量化偏移矩陣之各既知 量化偏移值與固定值之差分所算出之第2值,分別可表示其 他量化偏移矩陣之交流成分,且可使用其交流成分算出適 當的預測量化偏移值,因而,可減少δ偏移值。因此,可 進一步削減代碼數量。 201138477 又,前述固定值係作為元素而含於前述其他量化偏移 矩陣之複數量化偏移值之平均值。 藉此,藉由將第2係數乘於其他量化偏移矩陣之各既知 量化偏移值與固定值之差分所算出之第2值,分別可表示其 他量化偏移矩陣之各元素之偏差,並可使用其偏差算出適 當的預測量化偏移值,因而,可減少(5偏移值。因此,可 進一步削減代碼數量。 又,前述偏移更新參數中含有複數δ偏移值,該複數 5偏移值係顯示複數量化偏移值之間的差分,該複數量化 偏移值係算出對象的量化偏移矩陣之元素。於算出前述量 化偏移矩陣時,係重複下述處理:將前述複數δ偏移值當 中的其中一個5偏移值,加上該量化偏移矩陣内已算出之 量化偏移值,藉此算出新量化偏移值。 藉此,在算出對象的量化偏移矩陣之中,複數量化偏 移值之間的差分愈少,愈可削減偏移更新參數之位元數, 並可進一步削減編碼串流之代碼數量。 又,前述偏移更新參數中,僅含有一個作為單一量化 偏移值的量化偏移值,該量化偏移值係算出對象的量化偏 移矩陣之元素。於算出前述量化偏移矩陣時,係對算出對 象之量化偏移矩陣中所含的所有元素,設定前述偏移更新 參數中所含的前述單一量化偏移值。 藉此,若算出對象的量化偏移矩陣中的複數量化偏移 值為同值,由於僅一個量化偏移值作為偏移更新參數包含 在標頭内,因此可削減偏移更新參數之位元數,並可進一 201138477 步削減編碼串流之代碼數量。 而,本發明不僅可作為此種圖像解碼方法加以實現, 亦可作為與其圖像解碼方法相對應的圖像編碼方法、依照 其圖像解碼方法解碼圖像之圖像解碼裝置、依照其圖像編 碼方法編碼圖像之圖像編碼裝置、與該等裝置相對應的積 體電路、使電腦執行該等方法之圖像處理的程式、以及記 錄有其程式之記錄媒體而加以實現。又,亦可作為將量化 偏移矩陣寫入編碼申流之方法、從編碼串流解析出量化偏 移矩陣之方法、與該等方法相對應的裝置、程式、記錄媒 體、及積體電路而加以實現。 發明效果 本發明之圖像解碼方法及圖像編碼方法具有可削減代 碼數量之作用效果。亦即,量化偏移矩陣之編碼所需的位 元變得較少,且在逆量化處理之逆量化值之處置變得較具 彈性,因而可改善編碼效率。 圖式簡單說明 第1圖係顯示以量化水平偏移值所調整之逆量化值之 圖。 第2A圖係顯示在本發明之實施形態1中,圖像解碼裝置 之構成的方塊圖。 第2B圖係顯示在本發明之實施形態1中,圖像解碼方法 的流程圖。 第3A圖係顯示在本發明之實施形態1中,圖像編碼裝置 之構成的方塊圖。 10 201138477 第3B圖係顯示在本發明之實施形態1中,圖像編碼方法 的流程圖。 第4圖係顯示在本發明之實施形態1中,圖像解碼裝置 之詳細構成之一例的方塊圖。 第5圖係顯示在本發明之實施形態1中,圖像編碼裝置 之詳細構成之一例的方塊圖。 第6A圖係顯示在本發明之實施形態1中,序列標頭之構 成之圖。 第6B圖係顯示在本發明之實施形態1中,圖片標頭之構 成之圖。 第7圖係顯示在本發明之實施形態1中,偏移參數集之 構成之圖。 第8圖係顯示在本發明之實施形態1中,解碼量化偏移 矩陣之處理的流程圖。 第9圖係顯示在本發明之實施形態1中,編碼量化偏移 矩陣之處理的流程圖。 第10圖係顯示在本發明之實施形態1中,算出對應於一 個轉換塊之新量化偏移矩陣之處理的流程圖。 第11圖係顯示在本發明之實施形態1中,算出、並寫入 對應於一個轉換塊之偏移參數之處理的流程圖。 第12圖係顯示在本發明之實施形態1中,圖像解碼裝置 以第1更新方法解析出所寫入之偏移更新參數之處理的流 程圖。 第13圖係顯示在本發明之實施形態1中,圖像解碼裝置 201138477 以第1更新方法算出量化偏移值之處理的流程圖。 第14圖係顯示在本發明之實施形態1中,圖像編碼裝置 以第1更新方法算出偏移更新參數之(5偏移值之處理的流 程圖。 第15圖係顯示在本發明之實施形態1中,圖像編碼裝置 以第1更新方法將偏移更新參數寫入標頭之處理的流程圖。 第16圖係顯示在本發明之實施形態1中,圖像解碼裝置 以第2更新方法算出量化偏移值之處理的流程圖。 第17圖係顯示在本發明之實施形態1中,圖像編碼裝置 以第2更新方法將(5偏移值寫入標頭之處理的流程圖。 第18圖係顯示在本發明之實施形態1中,圖像解碼裝置 之逆量化部及圖像編碼裝置之逆量化部,以量化偏移值調 整逆量化值之處理的流程圖。 第19圖係顯示在本發明之實施形態1之變形例1中,偏 移參數集之構成之圖。 第20圖係顯示在本發明之實施形態1之變形例1中,算 出對應於一個轉換塊之新量化偏移矩陣之處理的流程圖。 第21圖係顯示在本發明之實施形態1之變形例1中,算 出、並寫入對應於一個轉換塊之偏移參數之處理的流程圖。 第22圖係顯示在本發明之實施形態1之變形例2中,偏 移參數集之構成之圖。 第23圖係顯示在本發明之實施形態1之變形例2中,圖 像解碼裝置解析出偏移更新參數之處理的流程圖。 第24圖係顯示在本發明之實施形態1之變形例2中,圖 12 201138477 像解碼裝置特定矩陣之處理的流程圖。 第25圖係顯示在本發明之實施形態1之變形例2中,圖 像編碼裝置將偏移更新參數寫入標頭之處理的流程圖。 第26圖係顯示實現内容遞送服務(content delivery service)之内容供給系統全體構成之一例的示意圖。 第27圖係顯示手機外觀之圖。 第28圖係顯示手機之構成例的方塊圖。 第2 9圖係顯示數位播放用系統全體構成之一例的示意 圖。 第30圖係顯示電視機之構成例的方塊圖。 第31圖係顯示對光碟記錄媒體執行資訊讀寫的資訊再 生記錄部之構成例的方塊圖。 第32圖係顯示光碟記錄媒體之結構例之圖。 第33圖係顯示實現各實施形態之圖像編碼方法及圖像 解碼方法的積體電路之構成例的方塊圖。 I:實施方式3 用以實施發明之形態 以下,將參考圖式說明本發明之實施形態。 (實施形態1) 第2 A圖係顯示在本實施形態之圖像解碼裝置之構成的 方塊圖。 在本實施形態之圖像解碼裝置1係解碼含於編碼串流 之編碼圖像的裝置,具備:旗標解析部10,係解析出含於 編碼串流之標頭内所具有的偏移更新旗標者;判定部11, 13 201138477 係判定所解析出之偏移更新旗標是否有顯示預先所設定之 值者;量化偏移矩陣算出部12,係當判定為所解析出之偏 移更新旗標有顯示預先所設定之值時,以含於其標頭之偏 移更新參數,算出適用於編碼圖像之量化偏移矩陣者;及 逆量化解碼部13,係以所算出之量化偏移矩陣,對編碼圖 像執行逆量化,藉此解碼其編碼圖像者。 第2B圖係顯示在本實施形態之圖像解碼方法的流程 圖。 在本實施形態之圖像解碼方法,係解碼含於編碼串流 之編碼圖像之方法,具有下述步驟:解析出含於編碼串流 之標碩内所具有的偏移更新旗標(S10)後,判定所解析出之 偏移更新旗標是否有顯示預先所設定之值(S11),當判定為 所解析出之偏移更新旗標有顯示預先所設定之值時,以含 於‘碩之偏移更新參數,算出適用於編碼圖像之量化偏移 12)後’以所算出之量化偏移矩陣,對編碼圖像執行 藉此解碼其編碼圖像(S13)。❿,在步驟sn中, =定出所解析出之偏移更龍標未㈣相先所設定之 “ μ係以既存的量化偏移矩陣,料碼圖像執行逆量化, 錯此解叫編碼II像(S14)。 b來,在本實施形態之圖像解碼裴置1中,係以偏 無需=數算出量化偏移矩陣,因此在圖像編碼裝置方面 移矩陣^化偏移料本身納人編碼串流,僅需將其量化偏 原狀之壓縮,讓用以將該已壓縮之量化偏移矩陣恢復 貝’可作為偏移更新參數㈣人編碼帛流之標頭 14 201138477 即可。因此,可減少用以量化偏移矩陣所需的位元數,而 削減編碼串流之代碼數量。 第3A圖係顯示在本實施形態之圖像編碼裝置構成的方 塊圖。 在本實施形態之圖像編碼裝置2,係將圖像資料予以編 碼,藉此生成編碼串流之裝置,具備:判定部20,係判定 是否應更新量化偏移矩陣者;旗標寫入部21,係將顯示其 判定結果的偏移更新旗標寫入編碼串流之標頭者;偏移更 新參數算出部22、係在其判定中判定出應更新時,依據更 新後的新量化偏移矩陣,算出偏移更新參數者;參數寫入 部23,係將偏移更新參數寫入標頭者;及量化編碼部24, 係以其新量化偏移矩陣,對圖像資料執行量化,藉此編碼 圖像資料者。 第3B圖係顯示在本實施形態之圖像編碼方法的流程 圖。 在本實施形態之圖像編碼方法,係將圖像資料予以編 碼、藉此生成編碼串流之方法,具有下述步驟:判定是否 應更新量化偏移矩陣(S20)後,將顯示其判定結果的偏移更 新旗標寫入編碼串流之標頭(S21),當在其判定中判定為應 更新時,依據更新後的新量化偏移矩陣,算出偏移更新參 數(S22),並將偏移更新參數寫入標頭(S23)後,以其新量化 偏移矩陣對圖像資料執行量化,藉此編碼圖像資料(S24)。 而,在步驟S20中,若判定為不應更新量化偏移矩陣時,則 將顯示其判定結果的偏移更新旗標寫入編碼_流之標頭 15 201138477 (S25)後’以既存的量化偏移矩 藉=碼其圖像資料⑽)。對圖像貢料執行量化, 如此一來,在本實施形態之圖 量化偏移矩㈣出_新彳M3置2中,係以新 將量化偏移矩陣本身放入編碼串流,=,因此無需 陣予以壓缩,讓用以將其已壓縮之量化^其置化偏移矩 之資訊作為偏移更新參數納入㈣匕Γ移矩陣恢復原狀 此,可減少用以量化偏移矩陣所需的 串流之代碼數量。 70數,而削減編碼 =,二就本發明之實施形態1更詳細之說明。 如在本實施形態之圖像解M 成一例的方塊圖。 馬凌置之5羊細構 圖像解碣裝置1000且備:偽 偏移值算、 >數解析部1500、量化 15。6、二:、量化偏移值儲存部15〇4、第说憶體部 里化邛1508、逆轉換部151 樣本預測部1514、及帛樣本重㈣⑸2、 析部15〇〇、旦介值 。心^ 516。而,由偏移參數解 由第CT506所構成之構成元素群,伽^ 田弟2Α圖所不之旗標解析部1〇、 陣算出部12所構成之構成元素群矩 逆轉換部1510、樣本重組 里化部150 記憶體部⑸6所構樣本預測部⑸4、及第2 之逆量化解碼部^構成元素群,則相當於第則所示 為移多數解析部15〇〇係讀出含於編碼串流之標頭 16 201138477Moreover, in the image decoding method of the present invention, the offset stored in the header or the sequence header can be adjusted by adjusting the inverse quantization value of the range of the inverse quantization value of the offset matrix. More flexible, and the quality of the picture. In addition, the ΜIt θ It匕' improves the main character of the decoded image, and the header includes an update type identifier indicating the update side of the quantization offset matrix. When the quantization offset matrix is calculated, the update type identifier included in the header is parsed, and the densification offset matrix is calculated in accordance with an update method indicated by the updated update type identifier. Thereby, since the quantization offset matrix is extracted by the update method corresponding to the update type identifier, an appropriate update method can be selected in the inverse quantization of the amount 彳匕i for the image coding apparatus, so as to correspond to the The offset update parameter and the update type identifier of the selected update method are included in the header of the encoded stream. Therefore, the update or calculation of the quantization offset matrix can be made more flexible. 6 201138477 Further, when calculating the quantization offset matrix, the offset update parameter is applied to another quantization offset matrix stored in the memory, thereby calculating the quantization offset matrix of the calculation target. Thereby, the smaller the difference between the quantization offset matrix to be calculated and the other quantization offset matrix, the more the number of bits of the offset update parameter can be reduced, and the number of codes of the encoded stream can be further reduced. Further, when calculating the quantization offset matrix, the previously calculated quantization offset matrix is used as the other quantization offset matrix, and the offset update parameter is applied. Thereby, since the quantization offset matrix calculated last has a tendency to strongly calculate the quantization offset matrix of the target, the number of bits of the offset update parameter can be surely reduced. Further, the header includes a matrix identifier for specifying the other quantization offset matrix. When calculating the quantization offset matrix, the matrix identifier included in the header is parsed, and the other quantization offset matrix identified by the parsed matrix identifier is retrieved from the memory. Thereby, in the aspect of the image coding apparatus, another quantization offset matrix having a small difference from the quantization offset matrix of the calculation target can be appropriately selected, and the matrix identification for specifying the other quantization offset matrix selected thereby can be appropriately selected. Symbol, you can include the header. Therefore, the difference between the quantization offset matrix of the calculation target and the other quantization offset matrix can be surely reduced, and the number of codes of the encoded stream can be surely reduced. Further, the header includes the first and second correction parameters and the offset value of 5, and the δ offset value of 201138477 corresponds to each element included in the quantization offset matrix to be calculated. When calculating the quantization offset matrix, the first and second coefficients are calculated based on the first and second correction parameters included in the header; and each of the elements of the other quantization offset matrix is known. The quantization offset value 'multiplies the first coefficient by the known quantized offset value' to calculate a first value, and multiplies the second coefficient by a difference between the known quantized offset value and a fixed value, thereby calculating a second value. And adding the first value to the second value to calculate a predicted quantization offset value, and adding the predicted offset offset value to the 5 offset corresponding to an element of the quantization offset matrix to be calculated. The value is used to calculate the quantized offset value as the aforementioned element. For example, the aforementioned header additionally contains an offset update denominator. When the first coefficient is calculated, the first correction parameter is added to the offset update denominator, and the value obtained by the addition is divided by the offset update denominator to calculate the first coefficient. Further, when calculating the second coefficient, the second correction coefficient is divided by the offset update denominator to calculate the second coefficient. Here, the fixed value is a value set in advance for the quantization offset matrix to be calculated. Further, the fixed value may be included as an element and included in the other quantization offset matrix, and may be a quantization offset value corresponding to the position of the DC component. By using the second value calculated by multiplying the second coefficient by the difference between the known quantized offset value and the fixed value of the other quantization offset matrix, the AC component of the other quantization offset matrix can be expressed and used. The AC component is calculated as an appropriate predicted quantized offset value, and thus the delta offset value can be reduced. Therefore, the number of codes can be further reduced. 201138477 Further, the fixed value is an element and is included in an average value of the complex quantized offset values of the other quantization offset matrices. Thereby, the second value calculated by multiplying the second coefficient by the difference between the known quantized offset value and the fixed value of the other quantization offset matrix can respectively indicate the deviation of each element of the other quantization offset matrix, and The appropriate predicted quantization offset value can be calculated using the deviation, and thus, the offset value can be reduced (5. Therefore, the number of codes can be further reduced. Further, the offset update parameter includes a complex δ offset value, and the complex number 5 is biased The shift value system displays a difference between the complex quantized offset values which are elements of the quantized offset matrix of the object. When calculating the quantized offset matrix, the following processing is repeated: the complex δ is repeated One of the offset values is added to the quantized offset value calculated in the quantized offset matrix, thereby calculating a new quantized offset value. Thereby, among the quantized offset matrices of the calculated object The less the difference between the complex quantized offset values, the more the number of bits of the offset update parameter can be reduced, and the number of codes of the encoded stream can be further reduced. Further, the offset update parameter includes only one As a quantization offset value of a single quantization offset value, the quantization offset value is an element of a quantization offset matrix to be calculated. When calculating the quantization offset matrix, the pair is included in the quantization offset matrix of the calculation target. For all the elements, the aforementioned single quantization offset value included in the offset update parameter is set. Thereby, if the complex quantized offset value in the quantization offset matrix of the calculated object is the same value, only one quantization offset value is used as The offset update parameter is included in the header, so the number of bits of the offset update parameter can be reduced, and the number of codes of the encoded stream can be reduced by step 201138477. However, the present invention can be implemented not only as such an image decoding method. And an image encoding method corresponding to the image decoding method, an image decoding device that decodes an image according to the image decoding method, an image encoding device that encodes an image according to the image encoding method, and the like The integrated circuit corresponding to the device, the program for causing the computer to perform image processing of the methods, and the recording medium on which the program is recorded are implemented. The method can be implemented as a method of writing a quantized offset matrix into a coded stream, a method of analyzing a quantized offset matrix from a coded stream, a device, a program, a recording medium, and an integrated circuit corresponding to the methods. Advantageous Effects of Invention The image decoding method and the image encoding method of the present invention have an effect of reducing the number of codes, that is, the number of bits required for encoding the quantization offset matrix becomes smaller, and inverse quantization in inverse quantization processing The processing of the value becomes more flexible, so that the coding efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram showing the inverse quantized value adjusted by the quantized horizontal offset value. Fig. 2A is a view showing an embodiment of the present invention. 1 is a block diagram showing the configuration of an image decoding apparatus. Fig. 2B is a flowchart showing an image decoding method in the first embodiment of the present invention. Fig. 3A is a diagram showing a first embodiment of the present invention. Fig. 3B is a flow chart showing an image encoding method in the first embodiment of the present invention. Fig. 4 is a block diagram showing an example of a detailed configuration of an image decoding apparatus in the first embodiment of the present invention. Fig. 5 is a block diagram showing an example of a detailed configuration of an image coding apparatus in the first embodiment of the present invention. Fig. 6A is a view showing the construction of a sequence header in the first embodiment of the present invention. Fig. 6B is a view showing the construction of a picture header in the first embodiment of the present invention. Fig. 7 is a view showing the configuration of an offset parameter set in the first embodiment of the present invention. Fig. 8 is a flow chart showing the process of decoding the quantization offset matrix in the first embodiment of the present invention. Fig. 9 is a flow chart showing the process of encoding the quantization offset matrix in the first embodiment of the present invention. Fig. 10 is a flow chart showing the process of calculating a new quantization offset matrix corresponding to one conversion block in the first embodiment of the present invention. Fig. 11 is a flow chart showing the process of calculating and writing an offset parameter corresponding to one conversion block in the first embodiment of the present invention. Fig. 12 is a flowchart showing a process in which the image decoding apparatus analyzes the written offset update parameter by the first update method in the first embodiment of the present invention. Fig. 13 is a flowchart showing a process of calculating a quantization offset value by the first updating method in the image decoding device 201138477 in the first embodiment of the present invention. Fig. 14 is a flowchart showing a process of calculating an offset update parameter (5 offset value) by the image encoding apparatus according to the first embodiment of the present invention. Fig. 15 is a view showing the implementation of the present invention. In the first aspect, the image encoding apparatus writes the offset update parameter into the header by the first update method. Fig. 16 shows a second update of the image decoding apparatus according to the first embodiment of the present invention. The flowchart of the process of calculating the quantized offset value is shown in Fig. 17. Fig. 17 is a flowchart showing the process of writing the 5 offset value into the header by the image encoding apparatus according to the second update method in the first embodiment of the present invention. Fig. 18 is a flowchart showing a process of adjusting the inverse quantization value by the quantization offset value by the inverse quantization unit of the image decoding device and the inverse quantization unit of the image coding device according to the first embodiment of the present invention. Fig. 20 is a view showing a configuration of an offset parameter set in a first modification of the first embodiment of the present invention. Fig. 20 is a view showing a modification 1 corresponding to a conversion block in the first modification of the first embodiment of the present invention. Flowchart for processing the new quantized offset matrix Fig. 21 is a flowchart showing a process of calculating and writing an offset parameter corresponding to one conversion block in the first modification of the first embodiment of the present invention. Fig. 22 is a view showing an embodiment of the present invention. Fig. 23 is a flowchart showing a process of analyzing the offset update parameter by the image decoding device in the second modification of the first embodiment of the present invention. Fig. 24 is a flowchart showing the processing of the specific matrix of the decoding device of Fig. 12 in the second modification of the first embodiment of the present invention. Fig. 25 is a view showing a modification 2 of the first embodiment of the present invention. A flowchart of a process in which an image encoding device writes an offset update parameter into a header. Fig. 26 is a schematic diagram showing an example of the overall configuration of a content supply system that implements a content delivery service. Fig. 28 is a block diagram showing an example of a configuration of a mobile phone. Fig. 29 is a view showing an example of a whole configuration of a digital broadcasting system. Fig. 30 is a block showing a configuration example of a television set. Fig. 31 is a block diagram showing an example of a configuration of an information reproduction recording unit that reads and writes information to and from a recording medium. Fig. 32 is a view showing a configuration example of a recording medium of the optical disk. Fig. 33 is a view showing the realization of each embodiment. (Embodiment 3) Embodiments of the present invention will be described below with reference to the drawings. (Embodiment 1) Fig. 2A is a block diagram showing the configuration of the image decoding device of the embodiment. The image decoding device 1 of the present embodiment is a device for decoding a coded image included in a coded stream, and includes flag analysis. The unit 10 analyzes the offset update flag included in the header of the encoded stream; the determining unit 11, 13 201138477 determines whether the offset update flag analyzed has a value set in advance. When the estimated offset update flag indicates that the previously set value is displayed, the quantization offset matrix calculation unit 12 calculates an offset map parameter included in the header to calculate a code map. And the inverse quantization decoding unit 13 performs inverse quantization on the coded image by using the calculated quantization offset matrix, thereby decoding the coded image. Fig. 2B is a flow chart showing the image decoding method of this embodiment. The image decoding method according to the present embodiment is a method of decoding a coded image included in a coded stream, and has the following steps: parsing an offset update flag included in the coded stream (S10) After that, it is determined whether the analyzed offset update flag has a value set in advance (S11), and when it is determined that the analyzed offset update flag has a value set in advance, it is included in ' The offset update parameter is calculated, and the quantized offset 12) applied to the encoded image is calculated, and the encoded image is decoded by the encoded quantized offset matrix (S13). ❿, in step sn, = is determined that the resolved offset is less (4) phase set first "μ is the existing quantization offset matrix, the material code image performs inverse quantization, the wrong solution is called code II In (S14), in the image decoding device 1 of the present embodiment, the quantization offset matrix is calculated with the offset unnecessary = number, so that the matrix encoding device shifts the matrix itself. For the encoded stream, it is only necessary to quantize the compression of the original shape, so that the compressed quantization offset matrix can be used as the offset update parameter (4) header of the human coded turbulence 14 201138477. Therefore, The number of bits required to quantize the offset matrix can be reduced, and the number of codes of the encoded stream can be reduced. Fig. 3A is a block diagram showing the configuration of the image coding apparatus of the present embodiment. The encoding device 2 is a device that encodes image data to generate a coded stream, and includes a determination unit 20 that determines whether or not the quantization offset matrix should be updated; and the flag writing unit 21 displays the determination. Result offset update flag write code The header of the stream; the offset update parameter calculation unit 22 calculates the offset update parameter based on the updated new quantization offset matrix when it is determined that the update is to be performed; the parameter write unit 23 The offset update parameter is written to the header; and the quantization coding unit 24 performs quantization on the image data by using the new quantization offset matrix, thereby encoding the image data. Fig. 3B is shown in the embodiment. A flowchart of an image encoding method. The image encoding method of the present embodiment is a method of encoding image data to generate a encoded stream, and has the following steps: determining whether the quantization offset matrix should be updated (S20) After that, the offset update flag indicating the result of the determination is written in the header of the encoded stream (S21), and when it is determined in the determination that it should be updated, the offset is calculated based on the updated new quantized offset matrix. After updating the parameter (S22) and writing the offset update parameter to the header (S23), quantization is performed on the image data with its new quantization offset matrix, thereby encoding the image data (S24). If it is determined that it should not be updated When the offset matrix is obtained, the offset update flag indicating the result of the determination is written to the header 15 of the code_stream (201125477) (S25), and the image data (10) is encoded by the existing quantization offset moment. Perform quantization on the image tribute. In this way, in the quantization offset moment (4) of the present embodiment, the new quantization MCU is placed in the encoded stream, = Without the need for compression, the information used to quantize its compressed offset moment is included as an offset update parameter. (4) The transfer matrix is restored to the original shape, which reduces the number of strings needed to quantize the offset matrix. The number of codes of the stream is 70. The number of codes is reduced, and the code 1 is reduced. The second embodiment of the present invention will be described in more detail. Ma Ling's 5 sheep fine image decoding device 1000 is provided with: pseudo offset value calculation, > number analysis unit 1500, quantization 15.6, two: quantized offset value storage unit 15〇4, said The body part 508 1508, the inverse conversion unit 151 sample prediction unit 1514, and the 帛 sample weight (4) (5) 2, the analysis unit 15 〇〇, and the denier. Heart ^ 516. Further, the constituent element group composed of the CT 506 is obtained by the offset parameter, and the constituent element group inverse inverse conversion unit 1510 and the sample composed of the flag analysis unit 1 and the matrix calculation unit 12 are not included in the map. In the recombination and refinement unit 150, the sample prediction unit (5) 4 and the second inverse quantization decoding unit of the memory unit (5) 6 constitute an element group, and the corresponding multi-analysis unit 15 is shown in the first embodiment. Streaming header 16 201138477

Dl5〇l(相標糊5〇la或^標頭〇1亀)、並將 D1501中所含之偏移參數腳抒简析(解碼)後,將^偏 移參數D15G3輸出至量化偏移值算出部15Q2。 、 曰量化偏移值算出部⑽係以其偏移參數D测, ^偏移值D15G5。此時,量化偏移值算出部1502視必要以 既已儲存在第1記憶體部1506之計算完畢的旦 则卜算出新量化偏移值D1505。此外^it偏移值 it匕汁’ I化偏移俏 部1502會將其已算出之新量化偏移值〇咖輸出至量化 移值儲存糾04。而且,量㈣移⑽存部Μ叫 化偏移值儲存至第1記憶體部1506。 里 D15r:r°8係納入含於編碼串流之圖片的編碼塊 D1511'i 體部1506中所儲存之新量化偏移值 ,並執行逆量化。而且,逆量化部15Q 化所生成的逆量化值D1515,值、.,5 , 曰將以其逆置 對由賴逆量部⑽。逆轉換 内。逆轉換侧則係將由其複數像;成= 解碼殘差如η,輸出至樣本重組部⑽。成之£塊作為 樣本重㈣⑸2會特其解碼❹m5i7 測部1514取得預測樣本D1521;^且 、i 預測樣她521加上解碼殘差如17,藉^部1512係將 D⑽並予以輸出。重組_519乃儲,:成=:: 1516。樣本預測部晴第2記憶體部1516中:二’ 作為參考圖細523加以參考,生成科庙中所儲存之圖像 考生成對應於㈣對象的上述 17 201138477 區塊之預測樣本m52卜並輸出至樣本重組部 1512。 第5圖係顯示在本實施形態之圖像編碼裝置之詳細構 成之一例的方塊圖。 圖像、爲碼名置2〇〇〇具備:偏移參數算出部丄_、偏移 參數寫入部16G2、第1記龍部職、減法部16G6、轉換部 1608里化部161〇、逆量化部⑹之、逆轉換部⑹*、第2記 憶體部1618、加法部162G、及樣本預測部i6i6 ^而由偏 移參數算出部1_、偏移參數寫人部丨繼、及第说憶體部 1604所形叙構成元料,係相當於由幻塌所示之判定 部20、旗私寫入部21、偏移更新參數算出部22、及參數寫 入部23所形狀構成元素群。又,Φ減法部16G6、轉換部 1608、量化部1610、逆量化部16u、逆轉換部1614、第2記 憶體部1618、加法部1620、及樣本預測部1616所形成之構 成元素群,則相當於第3 A圖所示之量化編碼部24。 偏移參數算出部1600係取得新量化偏移值D1505,並從 第1記憶體部1604取得舊量化偏移值D1509。偏移參數算出 部1600係依據該等量化偏移值D1505及D1509,算出偏移參 數D1503並輸出至偏移參數寫入部丨602。偏移參數寫入部 1602則將所算出之偏移參數D1503寫入標頭D1501(圖片標 頭D1501b或序列標頭D1501a),並輸出其標頭D1501。 減法部1606會納入圖片之非壓縮塊D1609及預測樣本 D1615。非壓縮塊D1609係由含於圖片之複數像素所形成的 編碼對象之塊(b 1 〇 c k ),預測樣本D1615則係顯示與其編碼對 象之區塊相對應的預測圖像之塊。減法部1606係從其非壓 18 201138477 縮塊D1609減去預測樣本D1615,藉以生成殘差塊D1611並 加以輸出。轉換部1608係藉由對殘差塊D1611執行正交轉 換’生成由複數頻率係數(轉換係數)所形成之係數塊 D1613 ’並將其係數塊D1613輸出至量化部1610。量化部 1610會取得其係數塊D1613,並從第1記憶體部1604讀出新 量化偏移值D1607。而且,量化部1610係藉由對係數塊 D1613執行使用有新量化偏移值D1607之量化,生成圖片之 編碼塊D1621並加以輸出。 逆量化部1612係從量化部1610取得編碼塊D1621,並從 第1記憶體部1604讀出新量化偏移值D1607。而且,逆量化 部1612係藉由對編碼塊D1621執行使用有新量化偏移值 D1607之逆量化,生成逆量化值〇1619、並輪出至逆轉換部 1614。逆轉換部1614係取得其逆量化值D1619、並對由複數 逆量化值D1619所形成之區塊執行逆正交轉換,並將其區塊 轉換成由複數像素所形成之重組殘差塊〇1627並加以輸 出。加法部1620係取得其重組殘差塊D丨62 7,並從樣本預測 4 1616項出與其重組殘差塊D1627相對應的預測樣本 D1615。而且,加法部162〇係藉由將預測樣本m6l5加上重 組殘差塊D1627 ’生成圖片之重組塊叫仍並加以輸出。重 組細625係儲存在第2記憶體部1618。樣本預測部ΐ6_ 將第2記憶體部刪中所儲存之圖像作為參考圖像⑽伽 以參考’生成與編碼對象的上述區塊相對應的預測樣本 D1615並加以輸出。 第6A圖係顯示在本實施形態之序列標頭叫仏之構 19 201138477 成之圖。 序列標頭D1501a包含:更新偏移參數旗標〇3〇2、偏移 更新分母D304、及偏移參數集D306。自前頭側起依序為: 更新偏移參數旗標D302、偏移更新分母D304、及偏移參數 集D306。 偏移參數集D306係用以算出與各轉換塊相對應的可自 定的量化偏移矩陣之資料。而,轉換塊係執行正交轉換、 逆正交轉換、及量化或逆量化單位之塊。 更新偏移參數旗標D302係用以傳送偏移參數集〇6 之旗標,有予以編碼過。當該更新偏移參數旗標D] 〇2顯示1 時’偏移參數集D306係配置在更新偏移參數旗標D3〇2之 後。而,當該更新偏移參數旗標D302顯示〇時,與各轉換塊 大小相對應的不可自定的量化偏移矩陣則係配置在更新偏 移參數旗標D302之後。或,當該更新偏移參數旗標〇3〇2顯 示〇時’上述不可自定的量化偏移矩陣及偏移參數集D3〇6 兩者皆不配置。 偏移更新分母D304係用以決定在本發明更新量化偏移 值(量化矩陣)時之變化率的分母。有關該偏移更新分母 D304之詳細將於後述。 第6B圖係顯示在本實施形態之圖片標頭d 15〇化之構 成之圖。 圖片標頭D1501b包含:更新偏移參數旗標D3〇8'偏移 更新分母D310、及偏移參數集D312。自前頭側起依序為. 更新偏移參數旗標D308、偏移更新分母D31〇、及偏移參數 20 201138477 集D312。該等更新偏移參數旗標D308、偏移更新分母D310 及偏移參數集D 312係同於第6 A圖所示之更新偏移參數旗 標D302、偏移更新分母D304、及偏移參數集D306者。而, 在本實施形態中,至少序列標頭D1501a及圖片標頭D1501b 其中任一方係如上述(如第6 A圖及第6 B圖所示)所構成即 可。以下’在本實施形態單僅記述為標頭時,其標頭乃顯 示序列標頭D1501a或圖片標頭D1501b。 第7圖係顯示偏移參數集D306及D3 12之構成之圖。 該偏移參數集D306及D312係由複數偏移參數D1503所 構成。偏移參數D1503係用以算出與轉換塊相對應的可自定 的量化偏移矩陣者。當序列或圖片中有大小相異的複數轉 換塊時,於偏移參數集〇306及1)312中會依各該等大小包含 偏移參數D1503。例如,如第7圖所示,於偏移參數集D3〇6 及D312中含有Μ個偏移參數D1503,分別與第〖〜第M轉換塊 之大小相對應。 偏移參數D1503包含偏移更新旗標D1〇〇、及用以算出 量化偏移矩陣之偏移更新參數D1〇2。偏移更新旗標Di〇〇係 用以顯錢否應更新與其偏移參數D15G3相對應的轉換塊 之量化偏移值的旗標。亦即,偏移更新旗標⑴⑽係顯示是 否應算出新ϊ化偏移矩陣、並藉此更新含於更新前的量化 偏移矩陣之各量化偏移值的旗標。例如,當偏移更新旗標 D100為1時,其偏移更新旗標D100乃顯示應更新,當偏移 更新旗標D100為〇時,其偏移更新旗標麵_示不 21 201138477 偏移更新參數D102係緊接著偏移更新旗標D100配 置,乃依更新方法而有不同的構成。在本實施形態中,有 三種更新方法(第1〜第3更新方法),各個更新方法中分配有 用以識別其更新方法之更新種類識別符。 在第1更新方法中’偏移更新參數D102包含:顯示〇之 更新種類識別符D104、第1及第2修正參數D106及D108、5 偏移值之數量D110、以及複數個連續(5偏移值D112。第1 及第2修正參數D106及D108分別係用以算出量化偏移值所 使用之值。5偏移值係與以第1及第2修正參數D106及D108 所算出之值相加之值。如此一來,藉由加上5偏移值,可 算出對應於一個轉換係數(頻率係數)的量化偏移值。又,占 偏移值之數量D110若為Ν’則有連續N個5偏移值D112儲存 在標頭D1501。 在第2更新方法中,偏移更新參數〇1〇2包含:顯示丨之 更新種類識別符D104、依照含於轉換塊之轉換係數之數量 而連續的5偏移值D114。在第2更新方法中,當算出與預定 轉換係數相對應的量化偏移值時’係將5偏移值D114加上 掃描順序中、上一個轉換係數所對應之量化偏移值,藉此 算出與其預定轉換係數相對應的量化偏移值。 在第3更新方法中,偏移更新參數〇1〇2包含:顯示2之 更新種類識別符D104、及單一量化偏移值DU6。在第3更 新方法中’與轉換塊之全部轉換係數相對應的量化偏移 值,乃等於單一量化偏移值D116。 而,在上述各更新方法中,標頭D1501中所含之資料全 22 201138477 部係=可變長度編,dable切h eGding)等加以編碼。 *1係顯7F將本實施形態之量化偏移矩陣予以解碼 之處理的流程圖。 软央Φ 偏移參數解析部15GG係解析^標顧的更新偏 頭之次旗Μ步驟S4GQ)°而,在本實施形態中解析出含於標 移表1料時’亦可執行可變長度解碼等之解碼。接著,偏 解析部15 G G會判定其更新偏移參數旗標是否為丨(步 驟 S402)。/ μ_,他 * 仕 偏移參數解析部1500若判定為1(步驟S402 )即解析出標碩内的偏移更新分母(步驟S4〇4)。而, 多更新分母亦可為未含於標頭、而預先所歧之值此 時,將跳過步驟S404之處理。 接著,偏移參數解析部1500解析出標頭之偏移參數集 (v驟S4〇6)’而量化偏移值算出部漬則算出新量化偏移矩 陣(步驟S408)。 第9圖係顯示將本實施形態之量化偏移矩陣予以編碼 之處理的流程圖。 百先,偏移參數算出部16〇〇決定更新偏移參數旗標、 且偏移參數寫人部16G2將其更新偏移參數旗標寫入標頭 (步驟S500)。而,在本實施形態中,將資料寫入標頭時,亦 可執行可變長度編碼等之編碼。 接著,偏移參數算出部16〇〇判定更新偏移參數旗標是 否為1(步驟S502)。亦即,偏移參數算出部16〇〇判定是否庳 算出量化偏移矩陣、以更新各量化偏移值。在此,偏移參 數算出部1600若判定更新偏移參數旗標為丨(步驟§5〇2之 23 201138477Dl5〇l (phase mark paste 5〇la or ^header〇1亀), and the offset parameter footer contained in D1501 is parsed (decoded), and the ^offset parameter D15G3 is output to the quantized offset value. The calculation unit 15Q2. The 曰 quantized offset value calculation unit (10) measures the offset parameter D, and the offset value D15G5. At this time, the quantization offset value calculation unit 1502 calculates the new quantization offset value D1505 as necessary after the calculated calculation of the first memory unit 1506. In addition, the ^it offset value it 匕 juice 'I ̄ 偏移 俏 150 1502 will output its calculated new quantized offset value 至 to the quantized shift value storage correction 04. Further, the amount (4) shift (10) memory portion offset value is stored in the first memory portion 1506. D15r: r°8 incorporates the new quantized offset value stored in the code block D1511'i body 1506 of the picture containing the encoded stream, and performs inverse quantization. Further, the inverse quantization unit 15Q quantizes the generated inverse quantized value D1515, and the value, ., 5, 曰 is reversed by the inverse component (10). Reverse conversion inside. The inverse conversion side will be outputted to the sample recombination section (10) by its complex image; into = decoding residual such as η. The block is taken as the sample weight (4) (5) 2 and its decoding ❹m5i7 measuring unit 1514 obtains the prediction sample D1521; ^, i predicts that she 521 adds the decoding residual as 17 and borrows the 1512 system to output D(10). Reorganization _519 is stored, :cheng =:: 1516. In the sample prediction unit 2nd memory unit 1516: 2' is referred to as the reference figure 523, and the image stored in the temple is generated to generate the predicted sample m52 of the above-mentioned 17 201138477 block corresponding to the (4) object and output. To the sample recombination unit 1512. Fig. 5 is a block diagram showing an example of a detailed configuration of an image coding apparatus according to the present embodiment. The image and the code name are set to 2: an offset parameter calculation unit 丄_, an offset parameter writing unit 16G2, a first recording unit, a subtraction unit 16G6, a conversion unit 1608, a 161 unit, and a counter The quantization unit (6), the inverse conversion unit (6)*, the second memory unit 1618, the addition unit 162G, and the sample prediction unit i6i6 are composed of the offset parameter calculation unit 1_, the offset parameter write unit, and the first memory. The constituents of the body 1604 are configured to correspond to the shape constituent elements of the determination unit 20, the flag write unit 21, the offset update parameter calculation unit 22, and the parameter write unit 23 indicated by the collapse. Further, the constituent elements of the Φ subtraction unit 16G6, the conversion unit 1608, the quantization unit 1610, the inverse quantization unit 16u, the inverse conversion unit 1614, the second memory unit 1618, the addition unit 1620, and the sample prediction unit 1616 are equivalent. The quantization coding unit 24 shown in Fig. 3A. The offset parameter calculation unit 1600 acquires the new quantized offset value D1505, and acquires the old quantized offset value D1509 from the first memory unit 1604. The offset parameter calculation unit 1600 calculates the offset parameter D1503 based on the quantized offset values D1505 and D1509, and outputs the offset parameter D1503 to the offset parameter writing unit 602. The offset parameter writing unit 1602 writes the calculated offset parameter D1503 to the header D1501 (picture header D1501b or sequence header D1501a), and outputs its header D1501. The subtraction unit 1606 incorporates the uncompressed block D1609 and the predicted sample D1615 of the picture. The uncompressed block D1609 is a block (b 1 〇 c k ) of the encoding object formed by the complex pixels included in the picture, and the predicted sample D1615 is a block displaying the predicted picture corresponding to the block of the encoded object. The subtraction unit 1606 subtracts the prediction sample D1615 from its non-compressed 18 201138477 constricted block D1609, thereby generating a residual block D1611 and outputting it. The conversion unit 1608 generates the coefficient block D1613' formed by the complex frequency coefficient (conversion coefficient) by performing orthogonal conversion on the residual block D1611 and outputs the coefficient block D1613 to the quantization unit 1610. The quantization unit 1610 obtains the coefficient block D1613 and reads the new quantization offset value D1607 from the first memory unit 1604. Further, the quantization unit 1610 generates a coded block D1621 of the picture by performing quantization using the new quantized offset value D1607 on the coefficient block D1613 and outputs it. The inverse quantization unit 1612 acquires the coded block D1621 from the quantization unit 1610, and reads the new quantization offset value D1607 from the first memory unit 1604. Further, the inverse quantization unit 1612 generates inverse quantization value 〇 1619 by performing inverse quantization using the new quantization offset value D1607 on the coding block D1621, and rotates to the inverse conversion unit 1614. The inverse transform unit 1614 obtains the inverse quantized value D1619, performs inverse orthogonal transform on the block formed by the complex inverse quantized value D1619, and converts the block into a recombined residual block 〇1627 formed by the complex pixels. And output it. The addition unit 1620 obtains its recombination residual block D 丨 62 7 and derives a prediction sample D1615 corresponding to its recombination residual block D1627 from the sample prediction 4 1616. Further, the addition unit 162 calls the recombination block which generates the picture by adding the prediction sample m6l5 to the reassembly residual block D1627' and outputs it. The recombination fine 625 is stored in the second memory portion 1618. The sample prediction unit _6_ multiplexes the image stored in the second memory portion as a reference image (10) and refers to 'generates the prediction sample D1615 corresponding to the above-mentioned block of the encoding target and outputs it. Fig. 6A is a diagram showing the sequence header of the embodiment shown in Fig. 19 201138477. The sequence header D1501a includes an update offset parameter flag 〇3〇2, an offset update denominator D304, and an offset parameter set D306. From the front side, the order is: update offset parameter flag D302, offset update denominator D304, and offset parameter set D306. The offset parameter set D306 is used to calculate the data of the customizable quantization offset matrix corresponding to each transform block. However, the conversion block performs blocks of orthogonal transform, inverse orthogonal transform, and quantization or inverse quantization units. The update offset parameter flag D302 is used to transmit the flag of the offset parameter set 〇6, which is encoded. When the update offset parameter flag D] 〇 2 shows 1 'the offset parameter set D 306 is configured after updating the offset parameter flag D3 〇 2 . However, when the update offset parameter flag D302 displays 〇, the non-customizable quantization offset matrix corresponding to each transform block size is configured after the update offset parameter flag D302. Or, when the update offset parameter flag 〇3〇2 is displayed ’, the above-mentioned non-customizable quantization offset matrix and the offset parameter set D3〇6 are not configured. The offset update denominator D304 is used to determine the denominator of the rate of change when the present invention updates the quantized offset value (quantization matrix). The details of the offset update denominator D304 will be described later. Fig. 6B is a view showing the configuration of the picture header d 15 in the present embodiment. The picture header D1501b contains: an update offset parameter flag D3〇8' offset update denominator D310, and an offset parameter set D312. From the front side, the offset parameter flag D308, the offset update denominator D31〇, and the offset parameter 20 201138477 set D312 are updated. The update offset parameter flag D308, the offset update denominator D310, and the offset parameter set D 312 are the same as the update offset parameter flag D302, the offset update denominator D304, and the offset parameter shown in FIG. 6A. Set D306. Further, in the present embodiment, at least one of the sequence header D1501a and the picture header D1501b may be constructed as described above (as shown in Figs. 6A and 6B). Hereinafter, when the header is merely described as a header, the header indicates the sequence header D1501a or the picture header D1501b. Fig. 7 is a view showing the configuration of the offset parameter sets D306 and D3 12. The offset parameter sets D306 and D312 are composed of a complex offset parameter D1503. The offset parameter D1503 is used to calculate a customizable quantization offset matrix corresponding to the conversion block. When there are complex transform blocks of different sizes in the sequence or picture, the offset parameters D1503 are included in the offset parameter sets 〇 306 and 1) 312 according to the respective sizes. For example, as shown in Fig. 7, the offset parameter sets D3〇6 and D312 include one offset parameter D1503 corresponding to the size of the [~Mth transform block]. The offset parameter D1503 includes an offset update flag D1〇〇 and an offset update parameter D1〇2 for calculating the quantization offset matrix. The offset update flag Di is used to indicate whether the flag of the quantization offset value of the conversion block corresponding to its offset parameter D15G3 should be updated. That is, the offset update flag (1) (10) indicates whether or not the new degenerate offset matrix should be calculated, and thereby the flag of each quantized offset value included in the quantized offset matrix before the update is updated. For example, when the offset update flag D100 is 1, its offset update flag D100 is displayed to be updated, and when the offset update flag D100 is ,, its offset update flag surface is not 21 201138477 offset The update parameter D102 is arranged next to the offset update flag D100, and has a different configuration depending on the update method. In the present embodiment, there are three update methods (first to third update methods), and each update method is assigned an update type identifier for identifying the update method. In the first update method, the 'offset update parameter D102 includes: an update type identifier D104 for displaying 〇, a first and second correction parameters D106 and D108, a number of offset values D110, and a plurality of consecutive (5 offsets). The value D112. The first and second correction parameters D106 and D108 are respectively used to calculate a value used for the quantization offset value. The 5 offset value is added to the values calculated by the first and second correction parameters D106 and D108. In this way, by adding 5 offset values, the quantization offset value corresponding to one conversion coefficient (frequency coefficient) can be calculated. Further, if the number of offset values D110 is Ν', there is continuous N. The 5 offset value D112 is stored in the header D1501. In the second update method, the offset update parameter 〇1〇2 includes: displaying the updated type identifier D104 of the UI, according to the number of conversion coefficients included in the conversion block. The continuous 5 offset value D114. In the second update method, when calculating the quantization offset value corresponding to the predetermined conversion coefficient, the 5 offset value D114 is added to the scan order and the previous conversion coefficient. Quantizing the offset value, thereby calculating a corresponding to its predetermined conversion coefficient In the third update method, the offset update parameter 〇1〇2 includes: an update type identifier D104 of display 2, and a single quantization offset value DU6. In the third update method, 'and a conversion block' The quantization offset value corresponding to all the conversion coefficients is equal to the single quantization offset value D116. However, in each of the above updating methods, the data contained in the header D1501 is all 22 201138477 Department = variable length coding, dable Cut h eGding) and so on. *1 is a flowchart of the process of decoding the quantization offset matrix of the present embodiment. The soft center Φ offset parameter analysis unit 15GG analyzes the update header of the flag, and the step S4GQ)°, in the present embodiment, when the analysis is included in the standard shift table 1 Decoding and other decoding. Next, the offset analyzing unit 15 G G determines whether or not the update offset parameter flag is 丨 (step S402). / μ_, the official offset parameter analysis unit 1500 analyzes the offset update denominator within the target when it is determined to be 1 (step S402) (step S4〇4). On the other hand, if the multi-update denominator is a value that is not included in the header and is previously discriminated, the processing of step S404 will be skipped. Next, the offset parameter analysis unit 1500 analyzes the offset parameter set of the header (vS4〇6)', and calculates the new quantization offset matrix by the quantized offset value calculation unit (step S408). Fig. 9 is a flow chart showing the process of encoding the quantization offset matrix of the present embodiment. The offset parameter calculation unit 16 determines to update the offset parameter flag, and the offset parameter write unit 16G2 writes the update offset parameter flag to the header (step S500). Further, in the present embodiment, when data is written in the header, encoding of variable length coding or the like can be performed. Next, the offset parameter calculation unit 16 determines whether or not the update offset parameter flag is 1 (step S502). That is, the offset parameter calculation unit 16 determines whether or not the quantization offset matrix is calculated to update each quantization offset value. Here, the offset parameter calculation unit 1600 determines that the update offset parameter flag is 丨 (step § 5〇2 23 201138477)

Yes) ’即決定偏移更新分母,且偏移參數寫入部1602將其 偏移更新分母寫入標頭(步驟S504)。而,偏移更新分母亦可 為未含於標頭、而預先所設定之值,此時,將跳過步驟S5〇4 之處理。 接下來,偏移參數算出部1600依據第丨〜第3更新方法, 算出偏移參數集(步驟S508),而偏移參數寫入部1602將其偏 移參數集寫入標頭(步驟S510)。 第10圖係顯示在本實施形態中,算出與一個轉換塊相 對應的新量化偏移矩陣之處理的流程圖。而,該第1〇圖係 顯示第8圖之步驟S406及S410的詳細處理。 首先,偏移參數解析部1500解析出標頭内的偏移更新 旗標(步驟S600)。偏移參數解析部15〇〇判定其偏移更新旗標 是否為1(步驟S601)。在此,若偏移參數解析部15〇〇判定偏 移更新旗標為丨(步驟S601之Yes),即解析出標頭内的更新種 類識別符(步驟S602)。 接著,偏移參數解析部1500判定其更新種類識別符是 否顯示〇(步驟S6〇4)。在此,若偏移參數解析部_判定更 新種類識別符顯示〇(步驟S604之Yes),即將標頭内緊接於其 更新種類制符之偏移更新參數予简析(步驟s㈣。、而 且,量化偏移值算出部15_以第β新方法從其偏移更新 參數算出新量化偏移值(量化偏移矩陣)(步驟S6i〇)。 又,若偏移參數解析部1500判定在步驟⑽中更新種 類識別符未顯示〇(步驟S604之No),則另;ί- 乃订判定其更新種類 識別符是㈣邱步職〇6)。在此,若·參數解析部靡 24 201138477 判定更新種類識別符顯示1 (步驟S606之Yes),即將標頭内緊 接於其更新種類識別符之偏移更新參數予以解析,且量化 偏移值算出部1502會以第2更新方法,從其偏移更新參數算 出新量化偏移值(量化偏移矩陣)(步驟S616) 又,若偏移參數解析部1500判定在步驟S606中更新種 類識別符未顯示1 (步驟S606之No),則將標頭内緊接於其更 新種類識別符之偏移更新參數一單一量化偏移值予以解析 (步驟S612)。量化偏移值算出部15〇2係以第3更新方法,從 其單一量化偏移值算出新量化偏移值(量化偏移矩陣)(步驟 S614)。亦即,量化偏移值算出部15〇2係將與轉換塊内全部 的轉換係數(頻率成分之位置)相對應的量化偏移值,設定成 其已解析出之單一量化偏移值。 第11圖係顯示在本實施形態中,算出並寫入與一個轉 換塊相對應的偏移參數之處理的流程圖。而,該第u圖係 顯示第9圖之步驟S5〇8、及S510的詳細處理。 首先,偏移參數算出部16〇〇決定偏移更新旗標、且偏 移參數寫人部16G2將其所決定之偏移更新旗標寫入標頭 (步驟幻⑽)。接著’偏移參數算出部1600依據所決定之偏移 更新旗標,判定是否有使用新量化偏移矩陣(㈣)。在 此,若偏移參數算出部16_定錢關量化偏移矩陣(步 驟S701之Yes),即衫更新觀朗符、且偏移參數寫入 部⑽2將其所決定之更新_識別符寫人標頭(步驟π叫。 接下來,偏移參數算出部16〇〇依據所決定之更新種類 識別符’判定量化偏移矩陣是否應以第丨更新方法編碼(步 25 201138477 驟S704)在此,偏移參數算出部1刪判定量化偏移矩陣是 否應以第1更新方法編竭(步驟請4之加),並依據其新量化 偏移矩陣m更新方法算丨偏移更新參數(步驟s7〇8)。 且偏移參數寫入部16 〇 2係以第1更新方法將其已算出之 爲移更新參數寫人標頭(步驟s7i〇)。 又右偏移參數算出部16〇〇在步驟S704中,判定量化 爲移矩陣不應以第1更新方法編碼(步驟S704之N。),則進-'旬疋έ於其新量化偏移矩陣之量化矩陣值是否全部相同 (步驟S7G6)。在此,若偏移參數算出部丨_判定為並非全部 相同(步驟S706之Ν。)’即依據新量化偏移矩陣, 以第2更新 方去算出偏移更新參數。而且,偏移參數寫入部16〇2以第2 更新方法將其已算出之偏移更新參數寫入標頭(步驟 S7l6)。另一方面’若偏移參數算出部1600判定在步驟S706 中全部相同(步驟S706之Yes),即依據新量化偏移矩陣,決 疋單一罝化偏移值。再者,偏移參數寫入部16〇2以第3更新 方法將其所決定之單—量化偏移值作為偏移更新參數寫入 標頭(步驟S712)。 第12圖係顯示在本實施形態之圖像解碼裝置1〇〇〇解析 出以第1更新方法所寫入之偏移更新參數之處理的流程 圖。而,該第12圖係顯示第10圖之步驟86〇8的詳細處理。 首先’偏移參數解析部1500解析出標頭之偏移更新參 數内所具有的第1修正參數(步驟S800)、並解析出第2修正參 數(步驟S802)。接著,偏移參數解析部15〇〇解析出標頭之偏 移更新參數内所具有的占偏移值之數量(步驟S8〇6)。而且, 26 201138477 偏移,數解析部!將計數值初始化為q(步驟⑽8),並 且’’、,有滿足計數值小於步驟娜中所解析出之占偏移 值之數里之條件,便重複執行迴路A之處理。 偏移參數解析部15_從存於標頭之偏移更新參數内的複 數連W偏移值’解析出依掃描料所選擇之偏移值 (步驟S8H))。此外’偏移參數解析部_會將計數值予以辦 量(i_nent)(步驟S812)。亦即,偏移參數解析部测: 重複執行步驟S8丨〇及8812之處理,直到步驟咖钟所解析 出之5偏移值之數”於計數值為止。存於偏移更新參數 内的複數連續5偏移值,在對應於轉換塊之2維矩陣中,係 依掃描順序排列。例如,該等5偏移值在對應於轉換塊之2 維矩陣内’係依曲折掃描(zigzagseanning)順序從低頻成分 排列至高頻成分。❿’依轉換塊之大小,掃描順序會有所 不同。例如’由8X2之頻率成分(轉換係數)所形成的區塊(8 X2區塊)之掃描順序、不同於由2χ8之頻率成分所形成的區 塊(2x8區塊)之掃描順序。 第13圖係顯示在本實施形態之圖像解碼裝置麵以第 1更新方法算出量化偏移值之處理的•圖。而該第】頂 係顯示第10圖之步驟8610的詳細處理。 首先,量化偏移值算出部⑽取得更新前的量化偏移 值(步驟_)。亦即,量化偏移值算出㈣2從其第说憶 體部1506讀出切(例如上一個)於第〖記憶體部中所儲 存之量化偏移轉當中、與算出對象的量化偏移值位於同 一位置的量化偏移值。 27 201138477 接著,量化偏移值算出部1502以第1修正參數D106決定 第1係數(Factorl),並以其第1係數將更新前的量化偏移值 按比例增減,藉此算出第1值(步驟S1202)。 第1係數(Factorl)係以下述(式1)算出。在(式1)中,「First Modification Parameter」係顯示第1修正參數,而「update Denominator」係顯示偏移更新分母。Yes) ’ determines the offset update denominator, and the offset parameter writing unit 1602 writes its offset update denominator to the header (step S504). However, the offset update denominator may be a value that is not previously set in the header and is set in advance. At this time, the processing of step S5〇4 is skipped. Next, the offset parameter calculation unit 1600 calculates an offset parameter set based on the third to third update methods (step S508), and the offset parameter write unit 1602 writes the offset parameter set to the header (step S510). . Fig. 10 is a flow chart showing the processing of calculating a new quantization offset matrix corresponding to one conversion block in the present embodiment. On the other hand, the first drawing shows the detailed processing of steps S406 and S410 of Fig. 8. First, the offset parameter analysis unit 1500 analyzes the offset update flag in the header (step S600). The offset parameter analysis unit 15 determines whether or not the offset update flag is 1 (step S601). Here, if the offset parameter analysis unit 15 determines that the offset update flag is 丨 (Yes in step S601), the updated type identifier in the header is parsed (step S602). Next, the offset parameter analysis unit 1500 determines whether or not the update type identifier is displayed (step S6〇4). Here, if the offset parameter analysis unit _determines the update type identifier display 〇 (Yes in step S604), the offset update parameter of the update type metric is immediately parsed in the header (step s (4). The quantization offset value calculation unit 15_ calculates a new quantization offset value (quantization offset matrix) from the offset update parameter by the βth new method (step S6i). Further, the offset parameter analysis unit 1500 determines the step. (10) The medium update type identifier is not displayed 〇 (No in step S604), and the other is determined to be (4) Qiu Bu job 6). Here, if the parameter analysis unit 靡24 201138477 determines to update the type identifier display 1 (Yes in step S606), the offset update parameter in the header immediately following the update type identifier is analyzed, and the offset value is quantized. The calculation unit 1502 calculates a new quantization offset value (quantization offset matrix) from the offset update parameter by the second update method (step S616). Further, the offset parameter analysis unit 1500 determines that the type identifier is updated in step S606. If 1 is not displayed (No in step S606), the offset update parameter of the update type identifier in the header is analyzed by a single quantization offset value (step S612). The quantization offset value calculation unit 15〇2 calculates a new quantization offset value (quantization offset matrix) from the single quantization offset value by the third update method (step S614). In other words, the quantization offset value calculation unit 15〇2 sets the quantization offset value corresponding to all the conversion coefficients (the positions of the frequency components) in the conversion block to the single quantization offset value that has been analyzed. Fig. 11 is a flow chart showing the process of calculating and writing an offset parameter corresponding to one conversion block in the present embodiment. The figure u shows the detailed processing of steps S5〇8 and S510 of Fig. 9. First, the offset parameter calculation unit 16 determines the offset update flag, and the offset parameter write unit 16G2 writes the offset update flag determined by it to the header (step (10)). Next, the offset parameter calculation unit 1600 determines whether or not the new quantization offset matrix is used based on the determined offset update flag ((4)). Here, the offset parameter calculation unit 16_defines the quantization offset matrix (Yes in step S701), that is, the shirt update flag, and the offset parameter writing unit (10) 2 writes the update_identifier determined by the offset parameter writing unit (10)2. The human header (step π is called. Next, the offset parameter calculation unit 16 determines whether the quantization offset matrix should be encoded by the third update method according to the determined update type identifier ' (step 25 201138477 to step S704). The offset parameter calculation unit 1 deletes whether or not the quantization offset matrix should be compiled by the first update method (addition of step 4), and calculates the offset update parameter according to the new quantization offset matrix m (step s7).偏移8) The offset parameter writing unit 16 〇2 writes the human error header as the shift update parameter by the first update method (step s7i). The right offset parameter calculation unit 16 In step S704, it is determined whether the quantization is that the shift matrix should not be encoded by the first update method (N of step S704), and whether the quantization matrix values of the new quantization offset matrix are all the same (step S7G6) Here, if the offset parameter calculation unit 丨_ determines that they are not all the same ( Step S706.) That is, the offset update parameter is calculated by the second update side based on the new quantization offset matrix. Further, the offset parameter writing unit 16〇2 calculates the calculated offset by the second update method. The update parameter is written to the header (step S7116). On the other hand, if the offset parameter calculation unit 1600 determines that all are the same in step S706 (Yes in step S706), that is, according to the new quantization offset matrix, the single quantization offset is determined. Further, the offset parameter writing unit 16〇2 writes the determined single-quantization offset value as the offset update parameter into the header by the third updating method (step S712). The image decoding apparatus 1 of the present embodiment analyzes the processing of the offset update parameter written by the first update method. The 12th figure shows the step 86 of FIG. First, the offset parameter analysis unit 1500 analyzes the first correction parameter included in the offset update parameter of the header (step S800), and analyzes the second correction parameter (step S802). The parameter analysis unit 15 analyzes the offset update parameter of the header. It has the number of offset values (step S8〇6). Moreover, 26 201138477 offset, number analysis unit! initializes the count value to q (step (10) 8), and '', there is a satisfaction count value smaller than the step Na The condition of the number of offset values analyzed is repeated, and the processing of the loop A is repeated. The offset parameter analysis unit 15_ parses out from the complex W offset value in the offset update parameter stored in the header. The offset value selected according to the scanning material (step S8H)). Further, the 'offset parameter analysis unit' counts the count value (i_nent) (step S812). That is, the offset parameter analysis unit measures: repeats the processing of steps S8 and 8812 until the number of the 5 offset values parsed by the step coffee clock is "at the count value. The complex number stored in the offset update parameter The continuous 5 offset values are arranged in a scan order in a 2-dimensional matrix corresponding to the transform block. For example, the 5 offset values are in a zigzagsening order in a 2-dimensional matrix corresponding to the transform block. From the low frequency component to the high frequency component. ❿ 'Depending on the size of the conversion block, the scanning order will be different. For example, the scanning order of the block (8 X2 block) formed by the frequency component (conversion coefficient) of 8X2, It is different from the scanning order of the block (2x8 block) formed by the frequency component of 2χ8. Fig. 13 is a view showing the process of calculating the quantized offset value by the first updating method in the image decoding apparatus of the embodiment. In the above, the detailed processing of step 8610 of Fig. 10 is displayed. First, the quantization offset value calculation unit (10) obtains the quantization offset value before the update (step_). That is, the quantization offset value is calculated (4) 2 Read from the first memory unit 1506 (example) The previous one is the quantization offset value at the same position as the quantization offset value of the calculation target among the quantization offsets stored in the memory unit. 27 201138477 Next, the quantization offset value calculation unit 1502 is first. The correction parameter D106 determines the first coefficient (Factor1), and increases or decreases the quantization offset value before the update by the first coefficient to calculate the first value (step S1202). The first coefficient (Factorl) is as follows. (Formula 1): In (Formula 1), "First Modification Parameter" displays the first correction parameter, and "update Denominator" displays the offset update denominator.

Factorl=(First Modification Parameter+Update Denominator)/ Update Denominator …(式 1) 而’如第6A圖及第6B圖所示,標頭内可包含偏移更新 分母’亦可未包含偏移更新分母而設定有預先所定義之 值。例如,預先所定義之值為16或128。 第1值(First Value)係以下述(式2)算出。在(式2)中,「〇id Offset Value」係顯示更新前的量化偏移值。Factorl=(First Modification Parameter+Update Denominator)/ Update Denominator (Formula 1) and 'As shown in Figures 6A and 6B, the offset update denominator may be included in the header' or the offset update denominator may not be included. The settings have pre-defined values. For example, the value defined in advance is 16 or 128. The first value (First Value) is calculated by the following (Formula 2). In (Formula 2), "〇 id Offset Value" displays the quantization offset value before the update.

First Value=01d Offset ValuexFactorl ...(式2) 接著,量化偏移值算出部1502算出更新前的量化偏移 值(Old Offset Value)與固定值(Fixed Value)之差分(步驟 S1204)。差分係由「Old Offset Value-Fixed Value」顯示。 例如,固定值為16 ’亦即DC偏移值或塊之平均偏移值。DC 偏移值係更新前的量化偏移矩陣之直流成分之量彳匕彳爲矛多 值,而平均偏移值係含於更新前的量化偏移矩陣中之全部 量化偏移值之平均值。再者’量化偏移值算出部15〇2以第 7圖所示之第2修正參數D108算出第2係數,並將已算出之 差分以其第2係數按比例增減,藉此算出第2值(步驟 S1206)。 28 201138477 第2係數係以下述(式3)算出。在(式3)中,「Second Modification Parameter」係顯示第2修正參數。First Value = 01d Offset ValuexFactorl (Expression 2) Next, the quantized offset value calculation unit 1502 calculates a difference between the pre-updated quantization offset value (Old Offset Value) and the fixed value (Fixed Value) (step S1204). The difference system is displayed by "Old Offset Value-Fixed Value". For example, a fixed value is 16', that is, a DC offset value or an average offset value of a block. The DC offset value is the maximum value of the DC component of the quantized offset matrix before the update, and the average offset value is the average of all the quantized offset values in the quantized offset matrix before the update. . Further, the 'quantization offset value calculation unit 15〇2 calculates the second coefficient from the second correction parameter D108 shown in FIG. 7 and increases or decreases the calculated difference by the second coefficient, thereby calculating the second coefficient. Value (step S1206). 28 201138477 The second coefficient is calculated by the following (Formula 3). In (Formula 3), the "Second Modification Parameter" displays the second correction parameter.

Factor2=Second Modification Parameter/Update Denominator …(式3) 第2值(Second Value)係以下述(式4)算出。Factor 2 = Second Modification Parameter / Update Denominator (Form 3) The second value (Second Value) is calculated by the following (Formula 4).

Second Value=(01d Offset Value-Fixed Value)xFactor2 …(式4) 接著,量化偏移值算出部1502將第1值及第2值相加, 藉此算出預測量化偏移值(計算值)(步驟S1208)。此外,量 化偏移值算出部1502會將其預測量化偏移值,加上算出對 象的量化偏移值所對應之5偏移值(Delta Value),亦即,以 「Fist Value + Second Value + Delta Value」,算出其算出對 象的新量化偏移值(步驟S1210)。 此種步驟S1202〜S1210之算式係以下述(式5)顯示。 而’在(式5)中’「New Offset Value」係顯示算出對象的新 量化偏移值。Second Value=(01d Offset Value-Fixed Value) xFactor2 (Expression 4) Next, the quantization offset value calculation unit 1502 adds the first value and the second value, thereby calculating the predicted quantization offset value (calculated value) ( Step S1208). Further, the quantization offset value calculation unit 1502 adds the predicted offset offset value to the 5 offset value (Delta Value) corresponding to the quantization offset value of the calculation target, that is, "Fist Value + Second Value + Delta Value" calculates a new quantized offset value to be calculated (step S1210). The equations of the steps S1202 to S1210 are shown by the following (Formula 5). In the case of 'Expression 5', "New Offset Value" displays the new quantized offset value of the calculation target.

New Offset Value =(01d Offset ValuexFactorl)+((〇ld Offset Value-Fixed Value)xFactor2)+Delta Value …(式 5) 又,在本實施形態中,雖係以依照第13圖之步驟 S1200〜S1210所示之順序’執行以(式5)顯示之運算,但亦 可使用其他順序執行其運算。 第14圖係顯示在本貫施形態之圖像編碼裝置2〇〇〇以第 1更新方法算出偏移更新參數之5偏移值之處理的流程 29 201138477 圖。而,該第I4圖係顯示第11圖之步驟S708的詳細處理。 首先’偏移參數算出部1600取得更新前的量化偏移值 (步驟S1300)。亦即’偏移參數算出部1600從其第1記憶體部 1604 ’讀出先前(例如上一個)於第1記憶體部16〇4中所儲存 之s化偏移矩陣當中與异出對象之(5偏移值位於同—位置 的量化偏移值。 接著,偏移參數算出部1600以第1修正參數d 1 〇6決定第 1係數(Factorl) ’並以其第1係數將更新前的量化偏移值按 比例增減,藉此算出第1值(步驟S1302)。 第1係數(Factorl)係以下述(式6)算出。在(式6)中,「First Modification Parameter」係顯示第1修正參數,而rUpdate Denominator」係顯示偏移更新分母。New Offset Value = (01d Offset ValuexFactorl)+((〇ld Offset Value-Fixed Value)xFactor2)+Delta Value (Expression 5) Further, in the present embodiment, steps S1200 to S1210 in accordance with FIG. 13 are employed. The sequence shown 'executes the operation shown by (Equation 5), but its operation can also be performed in other orders. Fig. 14 is a flow chart showing the process of calculating the offset value of the offset update parameter by the image encoding device 2 of the present embodiment by the first update method 29 201138477. However, this Fig. 4 shows the detailed processing of step S708 of Fig. 11. First, the offset parameter calculation unit 1600 acquires the quantization offset value before the update (step S1300). In other words, the 'offset parameter calculation unit 1600 reads out from the first memory unit 1604' that the previous (for example, the previous) singed offset matrix stored in the first memory unit 16〇4 is out of the object (5 offset offset value is located at the same position as the quantized offset value. Next, the offset parameter calculation unit 1600 determines the first coefficient (Factor1)' with the first correction parameter d 1 〇6 and updates the first coefficient by the first coefficient The first offset value is calculated by increasing or decreasing the quantized offset value (step S1302). The first coefficient (Factorl) is calculated by the following equation (Expression 6). In (Expression 6), the "First Modification Parameter" is displayed. 1 Correct the parameter, and rUpdate Denominator shows the offset update denominator.

Factorl=(First Modification Parameter+Update Denominator)/Factorl=(First Modification Parameter+Update Denominator)/

Update Denominator ·..(式 6) 而’如第6A圖及第6B圖所示’標頭内可包含偏移更新 分母,亦可未包含偏移更新分母而設定有預先所定義之 值。例如,預先所定義之值為16或128。 第1值(First Value)係以下述(式7)算出。在(式7)中,「Old Offset Value」係顯示更新前的量化偏移值。Update Denominator ·.. (Formula 6) and 'As shown in Figures 6A and 6B' may include an offset update denominator or a pre-defined value without including an offset update denominator. For example, the value defined in advance is 16 or 128. The first value (First Value) is calculated by the following (Formula 7). In (Equation 7), "Old Offset Value" displays the quantization offset value before the update.

First Value=01d Offset ValuexFactorl ...(式7) 接著,偏移參數算出部1600算出更新前的量化偏移值 (Old Offset Value)與固定值(Fixed Value)之差分(步驟 S1304)。差分係以「Old Offset Value-Fixed Value」顯示。 例如,固定值為16,亦即DC偏移值或塊之平均偏移值。此 30 201138477 外,偏移參數算出部1600係以第7圖所示之第2修正參數 D108算出第2係數’並將已算出之差分以其第2係數按比例 增減,藉此算出第2值(步驟S1306)。 第2係數係以下述(式8)算出。在(式8)中,「Second Modification Parameter」係顯示第2修正參數。First Value=01d Offset ValuexFactorl (Expression 7) Next, the offset parameter calculation unit 1600 calculates a difference between the quantization offset value (Old Offset Value) and the fixed value (Fixed Value) before the update (step S1304). The difference is displayed as "Old Offset Value-Fixed Value". For example, the fixed value is 16, which is the DC offset value or the average offset value of the block. In addition, the offset parameter calculation unit 1600 calculates the second coefficient ' by the second correction parameter D108 shown in FIG. 7 and increases or decreases the calculated difference by the second coefficient, thereby calculating the second. Value (step S1306). The second coefficient is calculated by the following (Equation 8). In (Equation 8), the "Second Modification Parameter" displays the second correction parameter.

Factor2=Second Modification Parameter/Update Denominator …(式8) 第2值(Second Value)係以下述(式9)算出。Factor2=Second Modification Parameter/Update Denominator (Formula 8) The second value (Second Value) is calculated by the following (Formula 9).

Second Value=(01d Offset Value-Fixed Value)xFactor2 …(式9) 接著,偏移參數算出部1600將第1值與第2值相加,藉 此算出預測量化偏移值(計算值)(步驟S1308)。此外,偏移 參數鼻出部1600會從更新後的新量化偏移值(New Offset Value)減去其預測量化偏移值,亦即,以「New Offset Value-(Fist Value+Second Value)」將算出對象的(5偏移值予 以算出(步驟S1310)。 此種步驟S1302〜S1310之算式係以下述(式1〇)顯示。Second Value=(01d Offset Value-Fixed Value) xFactor2 (Expression 9) Next, the offset parameter calculation unit 1600 adds the first value and the second value to calculate a predicted quantization offset value (calculated value) (step S1308). In addition, the offset parameter nose portion 1600 subtracts the predicted quantization offset value from the updated New Offset Value, that is, "New Offset Value-(Fist Value+Second Value)" The calculation (5 offset value is calculated (step S1310). The equations of the steps S1302 to S1310 are displayed as follows (Formula 1).

Delta Value =New Offset Value-(01d Offset ValuexFactorl)+((〇ld OffsetDelta Value = New Offset Value-(01d Offset ValuexFactorl)+((〇ld Offset

Value-Fixed Value)xFactor2)......(式 10) 又,在本實施形態中,係依照以第14圖之步驟 S1300〜S1310顯示之順序,執行以(式10)顯示之運算,但亦 可使用其他順序執行其運算。 第15圖係顯示在本實施形態之圖像編碼裝置2 〇 〇 〇以第 31 201138477 1更新方法將偏移更新參數寫入標頭之處理的流程圖。而, 該第15圖係顯示第11圖之步驟S710的詳細處理。 首先,偏移參數寫入部1602將偏移參數算出部1600中 所使用之第1修正參數寫入標頭(步驟S900),接下來,將偏 移參數算出部1600中所使用之第2修正參數寫入標頭(步驟 S902)。而且,偏移參數寫入部1602會算出應寫入之&lt;5偏移 值之數量(步驟S904)。例如,求算(5偏移值之數量之計算, 係以求出2維矩陣内之掃描順序中之最後非零(5偏移值之 位置而執行。而,該2維矩陣係對應於量化偏移矩陣之矩 陣,乃於元素中包含d偏移值之矩陣。 接著,偏移參數寫入部1602將如此所算出的5偏移值 之數量寫入標頭(步驟S906)。而且,偏移參數寫入部1602 將計數值初始化為〇(步驟S908),且只要有滿足計數值小於 步驟S906中所寫入之5偏移值之數量的條件,便重複執行 迴路B之處理。在迴路B中,偏移參數寫入部1602從以偏移 參數算出部1600所算出之複數(5偏移值,依照掃描順序將 一 &lt;5偏移值寫入標頭(步驟S910)。爾後,偏移參數寫入部 1602將計數值予以增量(步驟S912)。亦即,偏移參數寫入部 1602將重複執行步驟S910及S912之處理,直到步驟S906中 所寫入之(5偏移值之數量等於計數值為止。換言之,在步 驟S910及S912中,偏移參數寫入部1602會將(5偏移值連續 寫入標頭内,直到在步驟S910中所寫入的5偏移值之位 置、等於上述2維矩陣中以掃描順序為最後非零(5偏移值之 位置。 32 201138477 第16圖係g頁千/ 士一 2更新方法算心^施形態之圖像解碼裝置_第 也肪一袖 烏移值之處理的流程圖。而,丨6IS1 係顯不第_之步軌16的詳細處理。 ^16圖 始化為預先算出部15°2將最初的量化偏移值初 所定義之值(步驟S1GGG)。例如,預先 移值择偏移參數崎部15嶋量化偏化偏 會重複執行迴路c之處理。里化偏移值异出部1502即 移更=中’偏移參數解析部15°°會將從含於標頭之偏 新的複數連續Μ移值依掃描順柄選擇之一 “移值予以解析(步驟_4)。量化偏移值算出部⑽係 依知描順序將其所解析出之5偏移值加上初始值,藉此算 出新量化偏移值(步驟S1_)。而且,量化偏移值算出部15〇2 會將初始錢新成㈣Sl_帽算丨的新量化偏移值(步 驟S_)。如此所更新的初始值,係作為於掃描順序中加 至下一個(5偏移值之值而使用。 而,存於偏移更新參數中的複數^偏移值,與算出之 複數新量化偏移值同樣,係以對應於轉換塊之複數轉換係 數(頻率成分)的方式作為2維矩陣而構成’其各個值係從低 頻成分往高頻成分依掃描順序而排列。亦即,步驟S1 〇〇4、 S1006、及S1008將不斷重複,直到解析出之(5偏移值之位 置達至與轉換塊相對應的2維矩陣内之預定掃描位置。換言 之’步驟S1004、S1006、及S1008將不斷重複,直到算出對 象的量化偏移值之位置達至與轉換塊相對應的量化偏移矩 33 201138477 車之預疋掃4田位置(算出零之量化偏移值的位置),或直到 步驟s」006中所算出之量化偏移值為零之時間點為止。 立田全新所算出的量化偏移值為零時,量化偏移值算出 IU502會將從零之量化偏移值的位置起、至最後掃描位置 2所存留的殘餘量化偏移值,設定成上—個所算出之非 零罝化偏移值(步驟_2)。❿,上述掃描順序係如曲折掃 描順序。 第17圖係顯示在本實施形態之圖像編碼裝置2 〇 〇 〇以第 2更新方法將3偏移值寫人標頭之處理的流程圖。而,該第 17圖係顯示第11圖之步驟S716的詳細處理。 首先,偏移參數算出部16〇〇將最初的參考偏移值初始 為預先所疋義之值(步驟s i i⑼),並將計數值初始化為 〇(步驟S1102)。例如,預先所定義之值為8或16。而且只 ^有滿足計iUi小轉換塊_㈣餘(鮮成分)之數 直之第1條件’偏移參數算出部1600及偏移參數寫入部i 6〇2 即會重複執行迴路D之處理。而,即使有滿;i上述條件,但 因後述步驟S111G之處理而滿足第2條件時,將停止重複迴 路D之處理。 在坦路〇中,首先,偏移參數算出部16〇〇在掃描順序中 從新量化偏移值減去參考偏移值,藉此算出5偏移值(步驟 SU〇4)。接著’偏移參數寫人部16G2將其所算出之5偏移 值寫入標頭(步驟S11G6)。爾後,偏移參數算出部16〇〇將參 考偏移值更新為步驟SUG4中所使用之新量化偏移值(步驟 S1 )如此所更新之參考偏移值在稍後的步驟si104中, 34 201138477 會在掃描順序中從下-個新量化偏移值減去。 接著,偏移參數算出部_敎在新量化偏移 内’剩餘的所有量化偏移值(在掃描順序中,較上_個步鄉 S1104中所使用之新量化偏移值位於更後方)是否斑參 移值為同值(步職UG)。在此,若偏移參數算出部_判 疋為相同(步驟S111〇之Yes),即算出與其剩餘的所有新 偏移值相對應的各5偏移值,以作為負的參考偏移值。此 時滿足上述第2條件,並停止迴路D之處理之重複。而且 偏移參數“部16G2會將其負的參考偏移值之5偏_ ^頭(步驟仙2)。另—方面,若偏移參數算出部_^ 步驟SU1G悄餘的所转量化偏移值與參考偏移值 不同(步驟S1110之No),便將計數值予以增量(步驟s⑴句。 如此一來,在迴路0中,步驟S1104、S1106、Sll〇8、 杜及Sl114之各處理只有在狀上述第1條件且未滿足 l、的情況下會加㈣複執行。而,上 曲折掃描順序。 斤係如 旦18圖係顯示在本實施形態之圖像解碼裂置1000之逆 里化。1U5G8、及圖像編石馬裝置2_之逆量化部⑹2,以量 化偏移值調整逆量化值之處理的流程圖。 里 百先,&amp;量化部從第1記憶體部取得量化偏移值(步驟 八)在此,逆里化部係將其量化偏移值作為量化偏移 分:處置。接著’逆量化部從預先較義之值減去量化偏 ^刀子精此算出標度值(步驟S14〇2)。而且,逆量化部將 標度值乘以量化比例階大小咖(步驟si4,再者逆量化 35 201138477 部將由步驟S1404所得的乘法結果之積除以與步驟si4〇2中 所使用之預先所定義之值相同之值,藉此算出量化水平偏 移值(步驟S1406)。而且,最後,逆量化部從逆量化值減去 其量化水平偏移值(步驟S1408)。 此種第14圖所示之處理,係以下述(式u)顯示。Value-Fixed Value) xFactor2) (Expression 10) In the present embodiment, the calculation shown in (Formula 10) is executed in the order shown in steps S1300 to S1310 of FIG. But you can also perform its operations in other orders. Fig. 15 is a flow chart showing the process of writing the offset update parameter to the header in the image encoding apparatus 2 of the present embodiment by the 31 201138477 1 update method. However, the fifteenth figure shows the detailed processing of step S710 of Fig. 11. First, the offset parameter writing unit 1602 writes the first correction parameter used by the offset parameter calculation unit 1600 into the header (step S900), and then the second correction used by the offset parameter calculation unit 1600. The parameter is written to the header (step S902). Further, the offset parameter writing unit 1602 calculates the number of <5 offset values to be written (step S904). For example, the calculation (the calculation of the number of 5 offset values is performed by finding the last non-zero (the position of the 5 offset values) in the scanning order in the 2-dimensional matrix. However, the 2-dimensional matrix corresponds to the quantization. The matrix of the offset matrix is a matrix including d offset values in the element. Next, the offset parameter writing unit 1602 writes the number of the 5 offset values thus calculated into the header (step S906). The shift parameter writing unit 1602 initializes the count value to 〇 (step S908), and repeats the processing of the loop B as long as there is a condition that the count value is smaller than the number of the offset values written in step S906. In B, the offset parameter writing unit 1602 writes a &lt;5 offset value into the header in accordance with the complex number (5 offset value) calculated by the offset parameter calculating unit 1600 (step S910). The offset parameter writing unit 1602 increments the count value (step S912). That is, the offset parameter writing unit 1602 repeats the processing of steps S910 and S912 until it is written in step S906 (5 offset) The number of values is equal to the count value. In other words, in steps S910 and S912, the partial The shift parameter writing section 1602 successively writes (5 offset values into the header until the position of the 5 offset value written in step S910 is equal to the last non-zero in the scanning order in the above-described 2-dimensional matrix ( 5 The position of the offset value. 32 201138477 Fig. 16 is a flow chart of the processing of the image decoding device _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 6IS1 shows the detailed processing of the step _16. The figure 16 is initialized to the value defined by the pre-calculation unit 15°2 at the beginning of the initial quantization offset value (step S1GGG). For example, the pre-shifted selection The shifting parameter is 15 嶋 quantized biasing will repeat the processing of the loop c. The grading offset value dissimilaring part 1502 is shifted more = the middle 'offset parameter analyzing part 15 ° ° will be from the header The new complex continuous shift value is analyzed by shifting the value of one of the scan handles (step_4). The quantized offset value calculation unit (10) adds the initial offset value of the 5 offset value to the initial stage. The value is used to calculate a new quantized offset value (step S1_). Further, the quantized offset value calculating unit 15〇2 will calculate the initial money (4) Sl_hat The new quantized offset value (step S_). The updated initial value is used as the value added to the next (5 offset value) in the scan order. However, the complex number stored in the offset update parameter ^ The offset value is formed as a two-dimensional matrix by the complex conversion coefficient (frequency component) corresponding to the conversion block, as in the calculation of the complex new quantized offset value, and the respective values are from the low frequency component to the high frequency component. The scanning order is arranged. That is, steps S1 〇〇4, S1006, and S1008 are repeated until the resolution is resolved (the position of the 5 offset value reaches the predetermined scanning position within the 2-dimensional matrix corresponding to the conversion block. In other words, 'Steps S1004, S1006, and S1008 will be repeated until the position of the quantized offset value of the calculated object reaches the quantized offset moment 33 corresponding to the conversion block. The position of the offset value), or until the time point when the quantized offset value calculated in step s" 006 is zero. When the quantized offset value calculated by Litian is zero, the quantized offset value calculation IU502 sets the residual quantized offset value from the position of the quantized offset value of zero to the last scan position 2 to be set to - The calculated non-zeroized offset value (step_2). ❿, the above scanning sequence is like a zigzag scanning sequence. Fig. 17 is a flow chart showing the process of writing the offset value of the 3 offset value by the image encoding device 2 of the present embodiment by the second updating method. However, the seventeenth figure shows the detailed processing of step S716 of Fig. 11. First, the offset parameter calculation unit 16 initializes the first reference offset value to a previously defined value (step s i i(9)), and initializes the count value to 〇 (step S1102). For example, the value defined in advance is 8 or 16. Further, only the first condition 'offset parameter calculation unit 1600 and the offset parameter writing unit i 6〇2 satisfying the number of the iUi small conversion block _(four) remaining (fresh component) are repeatedly executed. On the other hand, if the second condition is satisfied by the processing of step S111G described later, the processing of repeating the loop D is stopped. In the path, first, the offset parameter calculation unit 16 calculates a 5-offset value by subtracting the reference offset value from the new quantized offset value in the scanning order (step SU〇4). Next, the 'offset parameter writing portion 16G2 writes the calculated 5-offset value into the header (step S11G6). Then, the offset parameter calculation unit 16〇〇 updates the reference offset value to the new quantization offset value used in step SUG4 (step S1). The reference offset value thus updated is in a later step si104, 34 201138477 It is subtracted from the next new quantized offset value in the scan order. Next, the offset parameter calculation unit _ 敎 within the new quantization offset 'all remaining quantization offset values (in the scan order, the new quantization offset value used in the previous step S1104 is located further rearward) The scalp shift value is the same value (step UG). Here, if the offset parameter calculation unit _ is determined to be the same (Yes in step S111), each of the five offset values corresponding to all of the remaining new offset values is calculated as a negative reference offset value. At this time, the above second condition is satisfied, and the repetition of the processing of the loop D is stopped. Moreover, the offset parameter "part 16G2 will bias the negative reference offset value by 5 _ ^ header (step 2). On the other hand, if the offset parameter calculation unit _^ step SU1G sneaked the converted offset When the value is different from the reference offset value (No in step S1110), the count value is incremented (step s(1) sentence. Thus, in loop 0, the processes of steps S1104, S1106, S11〇8, Du and Sl114 are processed. Only in the case of the first condition described above and not satisfying l, (4) complex execution is performed. However, the upper zigzag scanning sequence is shown in Fig. 18, which is shown in the inverse of the image decoding split 1000 of the present embodiment. A flowchart of the process of adjusting the inverse quantized value by the quantized offset value by the inverse quantization unit (6) 2 of the 1U5G8 and the image grading device 2 ri ri, the &amp; quantization unit obtains the quantization from the first memory unit Offset value (step 8) Here, the inverse grading unit takes the quantized offset value as a quantized offset score: the processing. Then the 'inverse quantization unit subtracts the quantized offset from the previously meaningful value to calculate the scale. Value (step S14〇2). Moreover, the inverse quantization unit multiplies the scale value by the quantization scale step size coffee ( Step si4, and then inverse quantization 35 201138477 The division of the product of the multiplication result obtained in step S1404 by the same value as the previously defined value used in step si4〇2, thereby calculating the quantization horizontal offset value (step S1406) Finally, the inverse quantization unit subtracts the quantization horizontal offset value from the inverse quantized value (step S1408). The processing shown in Fig. 14 is shown by the following (formula u).

NewAbsVal=AbsVal-(PredefinedVal-〇ffset Numerator) χ Quantization Step Size/PredefinedVal …(式 11) 在此’「NewAbsVal」為調整後的新逆量化值之絕對 值、「PredefinedVal」為預先所定義之值,而r 〇ffset Numerator」為量化偏移分子。又,「Quantizati〇nStepSize」 為量化比例階大小,而預先所定義之值係如128。 如此一來’在本實施形態中係以偏移更新參數算出量 化偏移矩陣,因此在圖像編碼裝置方面無需將量化偏移矩 陣本身放入編碼串流内,而只需壓縮其量化偏移矩陣,並 將用以使其已壓縮之量化偏移矩陣恢復原狀之資訊作為偏 移更新參數納入編碼_流之標頭即可。因此,可減少用以 量化偏移矩陣所需的位元數,削減編碼串流之代碼數量。 又,由於在本實施形態中係以對應於更新種類識別符 之更新方法算出量化偏移矩陣,因此在圖像編碼裝置方 面,可在量化或逆量化中選擇適當的更新方法,且只要將 與其所選擇之更新方法相對應的偏移更新參數及更新種類 識別符納入編碼串流之標頭内即可。因此,可使量化偏移 矩陣之更新或算出更具有彈性。 (變形例1) 36 201138477 在此,將說明本實施形態之第i變形例。上述實施形態 之標頭中儲存的複數偏移參數,分別係由第丨〜第3更新方法 中的任-項更新方法而構成,可由彼此相異的更新方法而 構成。然而,本變形例之複數偏移參數全部係由第丨更新方 法所構成。 第I9圖係顯示本變形例之偏移參數集⑴綱之構成之 圖。 該偏移參數集Dl7_相當於第从圖及第犯圖所示之 偏移參數集删6 '及Dm者,乃由複數偏移參數以搬形 成。當序列或圖片中有大小不同的複數轉換塊時,於偏移 參數集D1700中係依該等大小包含偏移參數〇17〇2。例如, 如第19圖所示’偏移參數集D1中含#Μ個偏移參數 D1702,分別與第1〜第Μ轉換塊之大小相對應。 偏移參數D1702包含偏移更新旗標D17〇1、及用以算出 量化偏移矩陣之偏移更新參數1)1703。偏移更新旗標D17〇1 與第7圖所示之偏移更新旗標0100相同,係用以顯示是否應 更新轉換塊之量化偏移值的旗標。亦即,偏移更新旗標 D1701係顯示是否應以算出量化偏移矩陣,將含於更新前的 量化偏移矩陣之各量化偏移值予以更新的旗標。 偏移更新參數D1703係緊接在偏移更新旗標D1701之 後所配置。又,偏移更新參數D1703不同於與第7圖所示之 第1更新方法相對應的偏移更新參數D102之構成,未含有更 新種類識別符D104。亦即,偏移更新參數D1703包含:第1 及第2修正參數D1704、及D1706、(5偏移值之數量D1708、 37 201138477 以及N個連續5偏移值Dni〇。 本'杨例之圖像解碼裝置1000及圖像編碼裝置2000同 於上述貫施形態,乃執行第8圖及第9圖所示之處理。 二=顯示將本變形例中與一個轉換塊相對應的新 陣予以算出之處理的流程圖H第2〇圖係 顯示第8圖之步驟S4〇6、及s姻的詳細處理。 ’、 首先’偏移參數解析部15〇〇解析出標頭内的偏移更新 旗標(步驟S19G()) °偏移參數解析部1·判定其偏移更新旗 標是否為1(步驟S19G2)。在此,若偏移參數解析物〇判定 偏移更新旗標為1(步驟_之Yes),即不解析出更新種類 識別符而解析出標頭内的偏移更新參數(步驟Μ利。而 且,量化^移值算出部15罐其偏移更新參數算出新量化 偏移值(量化偏移矩陣)(步驟·6)。而,此時,量化偏移 值算出。[U5G2係以上述實施形態之第i更新方法算出量化 偏移矩陣。 第21圖係顯示將本變形例中與一個轉換塊相對應的偏 移參數予以算出並寫人之處理的流程圖。❿,該第Η圖係 顯示第9圖之步驟S508、及S510的詳細處理。 首先’偏移參數算出部刪決定偏移更新旗標,且偏 移參數寫人部1602將其所決定之偏移更新旗標寫入標頭 (步驟S2GGG)。接著’偏移參數算删依據所決定之偏 移更新旗標,判定是錢㈣量化偏移矩陣(步驟s2〇〇2)。 在此,若偏移參數算出部娜判定使賴量化偏移矩陣(步 驟S2002之Yes) ’即不執行更新種類識別符之決定及寫入, 38 201138477 並依據其新量化偏移矩陣算出偏移更新參數(步驟S2004)。 而且,偏移參數寫入部16〇2將其所算出之偏移更新參數寫 入標頭(步驟S2006)。而,在步驟S2004及S2006中,偏移參 數算出部1600及偏移參數寫入部1602同於上述實施形態, 係以第1更新方法算出偏移更新參數並加以寫入。 (變形例2) 在此,將說明本實施形態之第2變形例。上述實施形態 之標頭中儲存的複數偏移參數,分別係由第1〜第3更新方法 中的任一項更新方法構成,可藉由彼此相異的更新方法而 構成。然而,本變形例之複數偏移參數與變形例丨相同,全 部係以第1更新方法所構成。此外,在上述實施形態及變形 例1中,為算出新量化偏移矩陣,利用有預先已設定之先前 (例如上一個)的量化偏移矩陣,但在本變形例中,係利用先 前所算出之任意量化偏移矩陣,算出新量化偏移矩陣。 第22圖係顯示本變形例之偏移參數集D1800之構成之 圖。 該偏移參數集D1800係相當於第6A圖及第6B圖所示之 偏移參數集D306、及D312者,乃由複數偏移參數d18〇2b 成。當序列或圖片中具有大小不同的複數轉換塊時,於偏 移參數集D1800中係依該等大小含有偏移參數D18〇2。例 如如第22圖所不,偏移參數集D18〇〇中含有Μ個偏移參數 1)1802,分別與第1〜第Μ轉換塊之大小相對應。 偏移參數D1802包含偏移更新旗標Dl8〇1、及用以算出 量化偏移轉之偏移更新參_⑽3。偏移更賴標〇_ 39 201138477 與第7圖所示之偏移更新旗標D100相同,係用以顯示是否應 更新轉換塊之量化偏移值的旗標。亦即,偏移更新旗標 D1801係顯示是否應算出量化偏移矩陣,藉此將含於更新前 的量化偏移矩陣之各量化偏移值予以更新的旗標。 偏移更新參數D18 03係緊接在偏移更新旗標D18 01之 後所配置。又’偏移更新參數D1703不同於與第7圖所示之 第1更新方法相對應的偏移更新參數D102之構成,未含有更 新種類識別符D104。又,偏移更新參數D1803不同於第19 圖所示之偏移更新參數D1703之構成’含有矩陣識別符 D1804。亦即,偏移更新參數D1803包含:矩陣識別符 D1804、第1及第2修正參數D1806、及D1808、(5偏移值之 數量D1810、以及N個連續5偏移值D1812。 矩陣識別符D18 04係用以識別量化偏移矩陣或量化縮 放矩陣(scaling matrix)之識別符。藉由該矩陣識別符 D1804,可特定利用於用以算出新的量化矩陣、且於先前所 利用之量化矩陣或量化縮放矩陣。 本變形例之圖像解碼裝置1000及圖像編碼裝置2〇〇〇與 上述實施形態相同,乃執行第8圖及第9圖所示之處理。此 外,本變形例之圖像解碼裝置1000及圖像編碼裝置2〇〇〇與 變形例1同樣地,係執行第20圖及第21圖所示之處理。 第23圖係顯示本變形例之圖像解碼裝置1〇〇〇解析出偏 移更新參數之處理的流程圖。而,該第23圖係顯示第20圖 之步驟S1904的詳細處理。 首先,偏移參數解析部1500解析出存於標頭之偏移更 40 201138477 新參數内的矩陣識別符Dl8〇4(步驟S21〇〇)。而且偏移參 數解析部1500係解析出存於標頭之偏移更新參數内的第} 修正參數(步驟S2102)、並另解析出第2修正參數(步驟 S2104) °接著’偏移參數解析部15〇〇解析出存於標頭之偏 移更新參數内的δ偏移值之數量(步驟S21〇6)。而且,偏移 參數解析部1500會依照步驟S21〇6中所解析出之上述數 量’以掃描順序解析出存於標頭之偏移更新參數内的複數 連縯(5偏移值(步驟S2108)。在此,存於偏移更新參數内的 複數連續(5偏移值係以掃描順序排列在對應於轉換塊之2 維矩陣中。例如,該等δ偏移值在對應於轉換塊之2維矩陣 中,係以曲折掃描順序從低頻成分排列到高頻成分。而, 依轉換塊之大小,掃描順序會有所不同。例如,由8χ2之頻 率成分(轉換係數)形成的區塊(8x2區塊)之掃描順序,不同 於由2x8之頻率成分形成的區塊(2x8區塊)之掃描順序。 本變形例之圖像解碼裝置1000藉由第23圖所示之處理 解析出偏移更新參數後,係以其所解析出之偏移更新參 數,執行與第13圖所示之處理相同之處理。藉此,本變形 例之圖像解碼裝置1 〇〇〇會算出量化偏移值(量化偏移矩 陣)。在此,本變形例之圖像解碼裝置1 〇〇〇在第13圖所示之 步驟S1200中取得量化偏移值時,係使用以第23圖之步驟 S2100所解析出的矩陣識別符D1804。亦即,量化偏移值算 出部1502會特定已儲存在第1記憶體部1506中、且由矩陣識 別符D1804識別之量化偏移矩陣或量化縮放矩陣。而且,量 化偏移值算出部1502係從其第1記憶體部1506讀出其所特 201138477 定之置化偏移矩陣或量化縮放矩陣中與算出對象的量化偏 移值位於同一位置之量化偏移值。 第2 4圖係顯示本變形例之圖像解碼裝置丨〇 〇 〇特定更新 前(先前)的矩陣之處理的流程圖。 首先,量化偏移值算出部1502特定以偏移參數解析部 15〇〇所解析出之矩陣識別符顯示之值(步驟S23〇〇^接著, 量化偏移值算出部1502判定其矩陣識別符顯示之值是否為 預先所設定之值(步驟S2302)。 在此,若量化偏移值算出部1502判定為預先所設定之 值(步驟S2302之Yes),即從第1記憶體部15〇6檢索與其矩陣 識別符顯示之值相對應的量化縮放矩陣(步驟S23〇6)。此 外,量化偏移值算出部1502將其所檢索之量化縮放矩陣設 定為用以算出新量化偏移矩陣所使用之舊量化偏移矩陣 (亦即更新對象的量化偏移矩陣)(步驟S23〇8)。 另一方面,:¾量化偏移值算出部15〇2判定在步驟S23〇2 中矩陣識別符顯示之值並非預先所設定之值(步驟823〇2之 No),即從第1記憶體部1506檢索與其矩陣識別符顯示之值 直接相對應的量化偏移矩陣(步驟S23〇4)。量化偏移值算出 部1502會將如此所檢索之量化偏移矩陣,作為用以算出新 罝化偏移矩陣所使用之舊量化偏移矩陣(亦即更新對象的 量化偏移矩陣)加以利用。 本變形例之圖像編碼裝置2 〇 〇 〇係以執行與第丨4圖所示 之處理相同的處理,算出5偏移值(包含5偏移值之2維矩 陣)。在此,本變形例之圖像編碼裝置2〇〇〇之偏移參數算出 42 201138477 部刪在第Μ圖所示之步驟S13(K)中取得量化偏移值時,係 從第1記憶體部16G4中所儲存之複數量化偏移矩陣或量化 縮放矩陣之中,特定任-個矩陣作為舊的更新前之矩陣。 此時,圖像編碼裝置2000係以執行與第24圖所示之處理相 同的處理,而特定矩陣。而且,偏移參數算出部^係從 其第1記憶體部1604讀出其所特定之舊的更新前之矩陣(量 化偏移矩陣或量化縮放矩陣)中與算出對象之δ偏移值位 於同一位置的量化偏移值(或量化按比例增減步階大小)。 第2 5圖係顯示本變形例之圖像編碼裝置2 〇 〇 〇將偏移更 新參數寫入標頭之處理的流程圖。而,該第25圖係顯示第 21圖之步驟S2〇〇6的詳細處理。 首先,偏移參數寫入部1602將用以識別以偏移參數算 出部1600所特定之矩陣(量化偏移矩陣或量化縮放矩陣)的 矩陣識別符寫入標頭(步驟S2200)。接著,偏移參數寫入部 1602將偏移參數算出部16〇〇中所使用之第丨修正參數寫入 標頭(步驟S2202),接下來,將偏移參數算出部16〇〇中所使 用之第2修正參數寫入標頭(步驟S22〇4)。再者,偏移參數寫 入部1602算出應寫入的占偏移值之數量(步驟S22〇6^ 例如,求算(5偏移值之數量的計算,係以求出2維矩陣 内之掃描順序中之最後非零5偏移值之位置而執行。而, 该2維矩陣係與量化偏移矩陣對應之矩陣,乃於元素中包含 5偏移值之矩陣。 接著’偏移參數寫入部1602將如此所算出之&lt;5偏移值 之數量寫入標頭(步驟S22〇8)。而,偏移參數寫入部16〇2亦 43 201138477 可將顯示其δ偏移值之數量的參數寫入標頭。而且,偏移 參數寫入部1602係依步驟S2206中所算出之數量,以掃描順 序將以偏移參數算出部16 0 0所算出之6偏移值寫入標頭 (步驟S2210)。亦即,偏移參數寫入部16〇2會將占偏移值連 續寫入標頭,直到寫入之5偏移值之位置等於上述2維矩陣 中以掃描順序為最後非零δ偏移值之位置。 而’雖以上述實施形態及其變形例説明本發明之圖像 解碼方法及圖像編碼方法,但本發明並非限於該等者。 例如,在本實施形態及其變形例中,如第6Α圖及第6Β 圖所示’偏移更新分母D304、及D310乃配置在更新偏移參 數旗標D302、及D308、以及偏移參數集d306、及〇312之 間,但亦可非在其位置。此時,偏移更新分母亦可包含於 以第1更新方法構成之偏移更新參數D102内。 又’在上述變形例3中,如第24圖所示,圖像解碼裝置 1〇〇〇係以矩陣識別符特定或檢索出更新前(先前)的矩陣,然 而’圖像編碼裝置2000亦可與第24圖所示之處理同樣地, 以矩陣識別符特定或檢索更新前(先前)的矩卩車。 又’上述實施形態及其變形例中,雖已分別說明旗標 (更新偏移參數旗標或偏移更新旗標)顯示為丨及顯示為〇 時’彼此相異的處理,然而,旗標所示之值與其值所對靡 之處理之關係,亦可為相反之關係。例如,如第8圖所示, 圖像解碼裝置1000在步驟S402中判定出更新偏移參數旗標 顯示為1時,執行有步驟S404〜S408之處理,然相反地,洛 判定為更新偏移參數旗標顯示為〇時,執行步驟S4〇4〜S4〇8 44 201138477 之處理亦可。 此外,本發明之一態樣亦可為如下述解碼方法。 該解碼方法係解碼用於圖像編石馬之量化偏移參數(偏 移參數)者,乃從圖片之標頭解析出旗標(S4〇〇)、並判定前 述旗標是否有顯示預先所設定之值(_),若前述旗標有顯 示預先所設定之值,即自前述標頭解析出偏移更新分母之 參數(S404)、並自前述標頭解碼新更新的量化偏移矩陣值 (量化偏移值)(S406及S408)。 在此,則述偏移更新分母之解析並非必要,亦可將前 述偏移更新分母設定在預先所定義之值中。 又,解碼新量化偏移矩陣(量化偏移矩陣值)之處理,如 下述係自則述圖片之標頭解析出偏移更新旗標(S6〇〇)、並判 定前述偏移更新旗標是否有顯示第丨預先所設定之值 (S601),若前述偏移更新旗標有顯示第丨預先所設定之值, 即自m述標頊解析出更新種類識別符之參數(S6〇2),並判定 前述所解析出之參數是否有顯示第2預先所設定之值 (S6〇4)。㈣述所解析Λ之更_ _別符之參數有顯示第 2預先所a疋之值,即自前述標頭解析出偏移更新參數 Θ608:)’㈣所解析出之偏移更新參數算出新量化偏 移值_解析出之更新獅識別符之參數未有 $第2就所設定之值,關定前述所解析出之更新種類 識別符之參數疋否有顯示第3預先所設定之值(S6〇6)。若前 述所解析itj之更新種類朗符之參數有顯示第3預先所設 疋之值’即自前述標頭解析出新量化偏移矩陣值(S616)。若 45 201138477 則述所解析出之更新種類識別符之參數未有顯示第3預先 所值’即自前述標頭解析出單—量化偏移值(S612), 將所有的前述新量化偏移轉值設定為前賴解析出之單 一里化偏移值(S614)亦可。 又’解碼新量化偏移矩陣(量化偏移矩陣值)之處理,如 下述係仗圖片之標頭解析出偏移更新旗標(si9〇〇&quot;並判定 刚述旗‘疋否有顯不第丨預先所設定之值⑻搬)。若前述旗 心有顯7F預先所設定之值,即自前述標頭騎出偏移更新 參數(Sl9〇4),依據所解析出之偏移更新參數,算出新量化 偏移值(S1906)亦可。 又’解析出偏移更新參數之處王里,如下述係從標頭解 析出第1修正參數(S8GG)、並從標頭解析出第2修正參數 (S802)’再從標頭解析出顯示編碼過的$偏移值之數量的參 數(S8〇6)’依據所解析^之前述編碼過的g移值之數量, 自前述標頭解析出δ偏移值(S8l〇)亦可。 又解析出偏移更新參數之處理,如下述係從標頭解 析出矩陣識別符之參數⑽00)、並自前述標頭解析出釤 修正參數(s2i〇2)’再自前述標頭解析出第2修正參數⑻㈣ 後’自則述標鱗析出顯示編碼過的δ偏移值之數量的參 數(S2106),依據所解析出之前述編碼過的δ偏移值之數 里,自削述標頭解析出δ偏移值(S21〇8)亦可。 又,解析出量化偏移矩陣值之處理,如下述係將最初 的量化偏移值予以初始化至預先所定義之值内⑻刪),再 從標頭依掃描順序解析^偏移值(謂4),並將前述所解 46 201138477 析出u偏移值加上初始值,藉此算_ ⑻_)後,判定前述所算出之量化偏移值是 偏移矩陣之最後的量化偏移值叫若前述戶=: 化偏移值並非是最後的量化偏移值 w出之里 下-個矩陣位置之_值初始化到:在 (S1°°8),若前述所算出之值非〇,便將在掃描·二 ㈣偏移值hx解碼(测4),若前述所算出1量化 值為0,將剩料;t化偏移值設㈣Μ _ 亦可。 里化偏移值 /又’以偏移更新參數算出新量化偏移值之處理,如下 述係決^舊量化偏移值⑻测),並以藉由第丨修正參數所決 定之係數’將前述舊量化偏移值料按比例增I藉此^ 出第1值(S1202)’並導出前述舊量化偏移值與固定值之差八 (S1204)後’以||由第2修正參數所決定之係數,將前述差二 予以按比例增減,藉此算出第2值(S1206),再將第!值與第刀2 值相加’取得計算偏移值(S1208)後,將前述δ偏移值加上 前述計算偏㈣,藉此算ίΒ新量化偏移值(S1210)。 在此,藉由前述第丨修正參數所求得之前述係數,係藉 以算出前述第1修正參數與偏移更新分母之值之和、且將^ 述和除以前述偏移更新分母之值所算出之比。 ] 又’藉由前述第2修正參數所求得之前述係數係將前 述第2修正參數除以前述偏移更母之值所算出之比。 又,前述固定值係預先所定義之值。 或,前述固定值係轉換塊之DC位置的量化偏移值。 47 201138477 或者’前述固定值係轉換塊之平均偏移值。 而’本發明之一態樣亦可為如下述之編碼方法。 該編碼方法係編碼於圖像編碼所使用之量化偏移參數 (偏移參數)者’具有下述處理:將旗標寫入圖片之標頭 (S 5 00)、並判定量化偏移矩陣值(量化偏移矩陣)是否應更新 (S502)’若量化偏移矩陣值應更新,則將偏移更新分母之參 數寫入前述標頭(S504),並將新更新的量化偏移矩陣值編碼 至前述標頭内(S508及S510)。 在此’前述偏移更新分母之寫入並非必要,亦可將前 述偏移更新分母設定為預先所定義之值。 又’編碼新量化偏移矩陣之處理,如下述係將偏移更 新旗標寫入圖片之標頭(S700)、並判定是否使用新量化偏移 矩陣(S701)'當使用新的偏移矩陣時,將更新種類識別符之 參數寫入前述標頭(S 702 ),並判定是否應以更新方法將前述 量化偏移矩陣值予以編碼(S704)。若應使用前述更新方法將 前述量化偏移矩陣值予以編碼’即依據新量化偏移矩陣 值’使用前述更新方法算出偏移更新參數(S7〇8),並將偏移 更新參數寫入前述標頭(S710)。若不應使用前述更新方法將 前述量化偏移矩陣值予以編碼(s 7 〇 6 ),則判定新量化偏移矩 陣值是否為同值,若前述新量化偏移矩陣值非為同值,則 將新量化偏移矩陣值寫入前述標頭(S716)。若前述新量化偏 移矩陣值為同值,將單一量化偏移值(量化偏移矩陣值)寫入 前述標頭(S712)亦可。 又,編碼新量化偏移矩陣之處理,如下述係將偏移更 48 201138477 新旗標寫入圖片之標頭(S2000)、並判定是否使用新量化偽 移矩陣(S2002) ’若使用新量化偏移矩陣,即依據新量化俺 移值算出偏移更新參數(S2004),並將偏移更新參數意 巧八前 述標頭(S 2006)亦可。 又,將偏移更新參數予以寫入之處理,如下述係將第1 修正參數寫入標頭(S900)、並將第2修正參數寫入前迷样頌 (S902)’算出5偏移值之數量(S904),且將顯示編碼過的占 偏移值之數量的參數’寫入前述標頭(S906)後,依據前迷所 寫入且編碼過的5偏移值之數量,將(5偏移值寫入前塊找 頭(S910)亦可。 ' 又’將偏移更新參數予以寫入之處理,如下述係將去 陣識別符之參數寫入標頭(S2200)、並將第1修正參數寫入1 述標頭(S2202)、及將第2修正參數寫入前述標頭 後,算出5偏移值之數量(S2206),且將顯示編碼過的占偏 移值之數量的參數寫入前述標頭(S2208)後,依據前迷戶斤寫 入且編碼過的δ偏移值之數量,將δ偏移值寫入前迷样頭 (S2210)亦可。 又,將量化偏移矩陣值予以寫入之處理,如下述係將 最初的參考偏移值初始化為預先所定義之值(sll〇〇),並從 在掃描順序中為下一個新量化偏移值,減去前述參考偏移 值,藉此算出5偏移值(S1104)後,將5偏移值編碼至前述 標頭(S1106) ’並將與轉換塊的下一個位置對應之來考偏移 值設定為前述新量化偏移值(S1108),再判定在掃描順序中 剩餘的量化偏移值是否與前述參考偏移值為同值(SUl〇)。 49 201138477 若在掃描順序中剩餘的量化偏移值與前述參考偏移值為同 值,則將前述δ偏移值編碼至前述參考偏移值之負值 (S1112) ’若在掃描順序中剩餘的量化偏移值與前述參考偏 移值為不同值,則將在掃描順序中為下一個占偏移值予以 算出,直到算出轉換塊之最後的位置為止(sll〇4)亦可。 又,算出偏移更新參數之處理,如下述係決定舊量化 偏移值(S1300)’並以藉由第丨修正參數所決定之係數將前述 舊里化偏移值予以按比例增減,藉此算出第丨值(§ 13〇2),且 導出前述舊量化偏移值與固定值之差分(sl3〇4),並以藉由 第2修正參數所決定之係數將前述差分予以按比例增減,藉 此算出第2值(S1306)後,將前述第丨值及第2值相加,求得計 算偏移值(S1308),從新量化偏移值減去前述計算偏移值減 算,藉此算出S偏移值(S1310)亦可。 在此,藉由前述第1修正參數所求得之前述係數,係以 算出則述第1修正參數與偏移更新分母之值之和、且將前述 和除以前述偏移更新分母之值所算出之比。 又,藉由前述第2修正參數所求得之前述係數,係以將 月J述第2修正參數除以前述偏移更新分母之值所算出之比。 又’前述固定值為預先所定義之值。 或’前述固定值為轉換塊之DC位置的偏移值。 在此,在將上述量化偏移參數予以編碼及解碼之方法 中,決定舊量化偏移矩陣值之處理係如下述處理亦可。 決定矩陣識別符之參數值(S2300),並判定前述矩陣識 別符之參數是否顯示預先所設定之值(S2302)。若前述矩陣 50 201138477 識別符之參數顯示預先所設定之值時,即從記憶體檢索量 化縮放矩陣值(S2306),並將量化偏移矩陣值設定為所檢索 之量化縮放矩陣值(S2308)。若前述矩陣識別符之參數未顯 示預先所設定之值時,則從記憶體檢索量化偏移矩陣值 (S2304)〇 又,本發明之一態樣係如下述調整方法亦可。 該調整方法係以量化偏移值調整逆量化值者,具有下 述處理:取得量化偏移值(S1400)、從預先所定義之值減去 前述量化偏移值,藉此求算標度值(sl4〇2),並將前述標度 值以量化比例階大小加以乘算(S1404),再將前述積之值除 以前述預先所定義之值,藉此求算調整值(sl4〇6)後,自前 述經逆量化過之值減去前述調整值(sl4〇8)。 在此’前述預先所定義之值為128。 而,本發明不僅可藉由上述之解碼方法、編碼方法及 凋整方法加以實現,亦可作為以此種方法執行解碼、編碼 及調整之裝置、積體電路、使電腦執行依照其方法之處理 的程式、及、儲存其程式之記錄媒體而實現。 (實施形態2) 藉由將用以實現上述實施形態中所示之圖像編碼方法 或圖像解碼方法之構成之程式記錄至記憶媒體,而使上述 貫靶形態中所示之處理,可輕易地在獨立的電腦系統中實 娩。§己憶媒體為磁碟、光碟、光磁碟、1(^卡、半導體記憶 體等可記錄程式者即可。 此外,在此將說明上述實施形態中所示之圖像編碼方 51 201138477 法及圖像解碼方法之應用例、以及使用有其之系統。 第26圖係顯示實現内容遞送服務之内容供給系統 exlOO之全體構成之圖。將通訊服務之提供區域分割成所期 望之大小’並於各服務區内分別設置有固定無線台之基地 台 exl06〜exl1〇 〇 該内容供給系統ex 100係透過網際網路服務提供者 exl02及電話網exl〇4、以及基地台exl〇6〜exll〇,將電腦 exlll、PDA(Personal Digital Assistant :個人數位助 理)exll2、照相機exll3、手機exll4、及遊戲機以115等各 機器連接至網際網路exlOl。 但,内容供給系統exlOO並非限於如第26圖之構成,為 將任擇之元素予以組合連接之構成亦可。又,亦可未透過 固定無線台之基地台exl06〜exll〇 ’使各機器直接連接至電 話網exl04。又,各機器亦可透過近距離無線等而直接相互 連接。 照相機e X113係可進行數位視頻照相機等動態影像攝 影之機器,照相機exll6係可進行數位照相機等靜態影像攝 影、及動態影像攝影之機器。又,手機exl 14可為GSM(Global System for Mobile Communications :全球行動通信系統)方 式、CDMA(Code Division Multiple Access :分碼多重擷取) 方式、W-CDMA(Wideband-Code Division Multiple Access : 寬頻碼分多重存取)方式、或LTE(Long Term Evolution :長 期進化)方式、HSPA(High Speed Packet Access :高速封包 存取)刃手機 '或PHS(Personal Handyphone System :個人手 52 201138477 機系統)等其中任一者。 内容供給系統exlOO中,照相機exll3等係透過基地台 exl09或電話網exl04,連接至串流伺服器exl03,而達成可 現場即時傳輸等。在現場即時傳輸中,使用者可如上述實 施形態中所説明,對使用照相機exll3拍攝之内容(例如, 音樂現場演唱之影像等)進行編碼處理,並傳送至串流伺服 器exl03。另一方面,串流伺服器exl03可將對有所需求之 客戶所傳送之内容資料予以串流傳輸。客戶中,有可將上 述編碼處理過的資料予以解碼之電腦exlU、PDAexll2、照 相機exll3、手機exll4、或遊戲機exll5等。在接收到已傳 輸之資料之各機器中,可將所接收之資料予以解碼處理並 再生。 而,所攝影之資料之編碼處理,可在照相機exll3進 行,亦可在傳送處理資料之串流伺服器exl03進行,或亦可 彼此分擔進行。同樣地,所傳輸之資料之解碼處理可在客 戶進行,亦可在串流伺服器exl03進行,或亦可彼此分擔進 行。又,不限於照相機exll3,亦可將以照相機exll6所拍 攝之靜態圖像及/或動態圖像資料,透過電腦exl 11傳送至串 流伺服器exl03。此時的編碼處理可在照相機exll6、電腦 exlll、或串流伺服器exl03之任一者進行,亦可彼此分擔 進行。 又,該等編碼處理及解碼處理一般係在電腦exlll及各 機器所有之LSI(Large Scale Integration :大型積體電 路)ex500中處理。LSIex500可為單晶片,亦可為由複數晶片 53 201138477 所形成之構成。而,將圖像編碼用及圖像解碼用之軟體安 裝至可在電腦exlll等中讀取之某種記錄媒體(CD_R〇M、軟 碟、硬碟等)’並以其軟體執行編碼處理及解碼處理亦可。 此外,當手機exll4附有照相機時,將以其照相機所取得之 動態影像資料予以傳送亦可。此時的動態影像資料係以手 機ex 114所配備的LSIex500編碼處理過的資料。 又,串流伺服器exl03可為複數伺服器或複數電腦,亦 可為分散資料加以處理或記錄而傳輪者。 如以上,在内容供給系統exl00中,客戶可接收編碼過 的資料並加以再生。如此一來,在内容供給系統exl〇〇中, 客戶可即時接收使用者所傳送之資訊並加以解碼、再生, 而不具有特別權利或設備之使用者,亦可實現個人播放。 可將上述貫施形態中所示之圖像編碼方法或圖像解瑪 方法’應用在構成該内容供給系統之各機器之編碼、或解 碼上。 作為其一範例,就手機exll4加以説明。 第27圖係顯示使用有上述實施形態中所説明之圖像編 碼方法及圖像解碼方法之手機exl 14之圖。手機exi μ具 有:天線ex601,係用以在與基地台以11〇之間傳送接收電 波者;照相機部ex603,係可拍攝CCD照相機等影像及靜態 影像者;顯示部ex602,係將解碼有以照相機部ex6〇3所拍 攝之影像、或以天線ex601所接收之影像等之資料,予以顯 不之液晶顯示器等者;本體部,係由操作鍵以6〇4群而構成 者;語音輸出部ex608,係用以語音輸出之喇σ八等;語音輸 54 201138477 入4ex605,係用以語音輸入之麥克風等;記錄媒體^爾7, 係用以保存已攝影之動態影像或靜態影像之資料、已接收 之郵件資料、動m料或靜態影像資料等、以及編碼 過的資料或解碼過的資料者;及插槽(81〇〇部以6〇6,係可用 以將。己錄媒體ex6G7安裝至手機以114者。記錄媒體ex6〇7係 儲存有快閃記憶體元件者,㈣閃記憶體元件係 EEPROM(Electncally Erasable and Programmable Read Only Memory :電子可抹除可程式化唯讀記憶體)之一種, 乃可在SD卡等塑膠盒内進行電子換寫及消去之非依電性記 憶體。 另外,以第28圖説明手機exll4。手機找114係透過同 步匯流排ex713,將電源電路部ex71〇、操作輸入控制部 ex704、圖像編碼部ex712、照相機介面部ex703、LCD(Liquid Crystal Display :液晶顯示器)控制部ex7〇2、圖像解碼部 ex709、解多工部ex708、記錄再生部ex7〇7、調變解調電路 部ex706、及sf·音處理部ex7〇5彼此連接至主控制部ex7丨1 (用 以統命控制備有顯示部ex602及操作鍵ex604之本體部之各 部)〇 若因使用者之操作而使通話結束及電源鍵呈現開啟狀 態,則電源電路部ex710將從電池組供電至各部,藉此使附 照相機數位手機exl 14起動呈可作業之狀態。 手機exll4係基於CPU、ROM及RAM等形成之主控制部 ex711之控制’將於語音通話模式時以語音輸入部6;&lt;6()5所 收集之語音訊號’透過語音處理部ex705轉換成數位語音資 55 201138477 ^ 以調’憂解调電路部ex706將此展頻(spread spectrum) 處理’並在以接收傳送電路部以7〇1施加數位類比轉換處理 及頻率轉換處理後’透過天線ex601予以傳送。又,手機 eXU4可於語音通話模式時, 將以天線ex601所接收之接收 資料予以擴大’並施加頻率轉換處理及類比數位轉換處 理’再以調變解調電路部ex7〇6進行解展頻(dispreading spectrum)處理’並透過語音處理部以7〇5轉換成類比語音資 料後’藉由語音輸出部ex6〇8將此予以輸出。 此外,於資料通訊模式時中傳送電子郵件時,藉由本 體部之操作鍵ex6〇4之操作所輸入之電子郵件之文件資 料’係透過操作輸入控制部ex7〇4往主控制部ex7u送出。 主控制部ex711係以調變解調電路部ex7〇6將文件資料予以 展頻處理,並以接收傳送電路部以7〇1施加數位類比轉換處 理及頻率轉換處理後,透過天線ex6〇1往基地台以11〇傳送。 於資料通訊模式中傳送圖像資料時,係透過照相機介 面部ex703,將以照相機部ex6〇3所拍攝之圖像資料供給至 圖像編碼部ex712。又’在未傳送圖像資料時,亦可透過照 相機介面部ex703及LCD控制部ex702,將以照相機部ex6〇3 所拍攝之圖像資料直接顯示在顯示部ex6〇2。 圖像編碼部ex712乃具備有本申請發明中所説明之圖 像編碼裝置之構成’係以上料施職所示之圖像編碼裝 置中所使㈣編碼方法’將從照相機部ex6Q3所供給之圖像 貪料予以壓縮編碼’藉此轉換成編碼圖像資料,並將此往 解多工部ex7G8送出。又’在此同時,手機如14係透過語 56 201138477 音處理部eX705,將以照相機部ex6G3於攝影中以語音輸入 部ex6〇5所收集之語音作為數位語音資料往解多工部π· 送出。 解多工部—8係以狀的方式,將從圖像編碼部 ex712所供給之編關像資料、及從語音處理部ex7〇5所供 給之語音«行以多J1後’以調變解調電路部π·將從其 結果所得之多X資料純展頻處理,並轉收傳送電路部 ex7〇l施加數位類比轉換處理及頻率轉換處理後,透過天線 ex601傳送。 於資料通訊模式中接收已連線至首頁等之動態影像槽 案資料時’係以調變解調電路部ex7崎透過天線副丄從 基地台exllO所接收之接收資料予以解展頻處理後將由其 結果所得之多工資料往解多工部ex7〇8送出。 又,為了將透過天線ex6〇i所接收之多工資料予以解 碼,解多工部ex708係將多工資料予以解多工,藉此區分成 圖像資料之位元流與語音資料之位元流,且透過同步匯流 排ex713將該編碼圖像資料供給至圖像解碼部ex7〇9,並且 將該語音資料供給至語音處理部ex7〇5。 接著,圖像解碼部ex709乃具備有本申請中所説明之圖 像解碼裝置之構成,係以上述實施形態巾所示之編碼方法 所對應的解碼方法,將圖像資料之位元流予以解碼,藉此 生成再生動態影像資料,並透過LCD控制部ex702將此供給 至顯示部以602。藉此,例如可顯示含於已連線至首頁之動 悲影像檔案之動態影像資料。在此同時,語音處理部ex7〇5 57 201138477 將語音資料轉換成類比語音資料後,將此供給至語音輪出 部ex608。藉此’例如可再生含於已連線至首頁之動態影像 檔案之語音資料。 而’不限於上述系統之例,最近,衛星、地波(gr〇Und wave)之數位播放已蔚為話題’如第29圖所示,亦可將上述 實施形態之至少圖像編碼裝置或圖像解碼裝置,安裝至數 位播放用系統内。具體而言,在播放局ex2〇i中,語音資料、 影像寅料或多工有s玄專資料之位元流’可透過電波傳送至 通信或播放衛星ex202。接收到該等之播放衛星以2〇2,會 發送播放用電波,而具有衛星播放接收設備之家庭天線 ex204接收該電波後,電視機(接收機)ex3〇〇或轉頻器 (STB)ex217等裝置會將位元流予以解碼並將此再生。又, 亦可將上述實施形態中所示之圖像解碼裝置安裝至讀取機 /記錄器ex218中。該讀取機/記錄器ex2丨8係將已記錄於記錄 媒體之CD及DVD等記錄媒體以215及以216之圖像資料、以; 及多工有語音資料之位元流加以讀取或解碼者。此時,戶 再生之影像訊號可顯示於監視器ex219。又,亦可為—種并 圖像解碼裝置安裝至已連接到有線電視用L2〇h 衛星/地波播放之天線ex2G4之轉頻器ex2_,並以電^ 之監視器^19再生該等之構成。此時,亦可將圖像解碼身 置安裝到電視機-而非轉頻器1。又,亦有可能在具^ 天線eX2〇5的車ex210中,從衛星ex2〇2或基地台等接收言 號’並將動態影像再生至車ex21G中所配備的汽: ex211等顯示裝置中。 58 201138477 又,亦可將上述實施形態中所示之圖像解碼裝置或圖 像編碼裝置安裝至讀取機/記錄器ex218。該讀取機/記錄器 ex218係將已記錄至DVD、BD等(7)記錄媒體ex215之語音資 料、影像資料、或多工有該等資料之編碼位元流予以讀取 解碼,或是將語音資料、影像資料或該等資料予以編碼作 為多工資料而記錄至記錄媒體ex215者。此時,所再生之影 像訊號可顯示在監視器ex219。又,藉由記錄有編碼位元流 之/t記錄媒體ex215,其他裝置及系統等可再生影像訊號。 例如,其他的再生裝置ex212可使用複製有編碼位元流之記 錄媒體ex214,將影像訊號再生至監視器ex213。 又,亦可將圖像解碼裝置安裝至已與有線電視用之電 纜ex203或衛星/地波播放之天線ex204相連接之轉頻器 ex217内,並以電視機之監視器ex219將此予以顯示。此時, 將圖像解碼裝置安裝至電視機一而非轉頻器一内亦可。 第30圖係顯示使用有上述實施形態中所説明之圖像解 碼方法及圖像編碼方法之電視機(接收機)ex300之圖。電視 機ex300具備:調諧器ex301,係透過接收上述播放之天線 ex204或電纜ex203等,取得或輸出影像資訊之位元流者; 調變/解調部ex302,係將已接收之編碼資料予以解調、或、 以用以將所生成之編碼資料傳送至外部的方式加以調變 者;及多工/解多工部ex303,係將已解調之影像資料與語音 資料予以解多工、或、將編碼過的影像資料與語音資料予 以多工者。又,電視機ex300具有:訊號處理部ex306,係 具有將語音資料、及影像資料分別予以解碼、或將各個資 59 201138477 訊予以編码之語音訊號處理部ex3〇4及景Η象訊號處理部 ex305者;及輸出部以3〇9,係具有將解碼過的語音訊號予 以輸出之$卜八e χ 3 〇 7、以及將解碼過的影像訊號予以顯示之 顯示器等之顯示部ex遍者。此外,電視機以綱具有介面 部ex317 ’其係具有接收使用者操作之輸人之操作輸入部 6X312等者。再者,電視機以300具有統籌控制各部之控制 部eX31〇、以及供電至各部之電源電路部ex311。介面部 二317除了操作輪入部…12以彳,亦可具有與讀取機/記錄 器6X218等外部機器相連接之橋接器ex313、用以可安裴SD 卡等。己錄媒體ex2i6之插槽部ex3i4、用以與硬碟等外部記 錄媒體相連接之驅動器ex315、以及與電話網相連接之數據 機6?&quot;316等。而,記錄媒體技216係可藉由儲存之非依電性/ 依電性半導體記《元件,進行電子資訊記錄者。電視機 ex300之各部係透過同步匯流排彼此相互連接。 首先,說明有關電視機ex300將透過天線ex2〇4等從外 部所取得之詩予崎碼再生之構成。電視機ex3GG接收來 自遠程控制器ex220等之使用者操作,依據具有cpu等之控 芾J〇Pex310之控制,以多工/解多工部以3〇3將以調變/解調部 ex302所解調之影像資料或語音資料予以解多工。此外,電 視機ex300以語音訊號處理部以3〇4將已解多工之語音資料 予以解碼、並以景夕像訊號處理部ex3〇5,使用上述實施形態 中所說明之解碼方法’將已解多卫之影像資料予以解碼。 所解碼之語音訊號及影像訊號分別係從輸出部ex3〇9向外 部輪出。輸出時,為使語音訊號與影像訊號同步再生,可 60 201138477 暫時將該等訊號蓄積至緩衝器以318、6)(319等。又,電視 機ex300亦可將從磁氣/光碟、SD卡等記錄媒體以215、ex216 —而非播放等一所編碼之編碼位元流予以讀出。接下來, 說明有關電視機ex300將語音訊號及影像訊號予以編碼、且 傳送至外部或寫入s己錄媒體4之構成。電視機以3〇〇接收來 自遠程控制器ex220等之使用者操作’並依據控制部ex31〇 之控制,以語音訊號處理部ex3〇4編碼語音訊號,並以影像 訊號處理部ex305 ’使用上述實施形態中所説明之編碼方法 編碼影像訊號。編碼過的語音訊號及影像訊號係以多工/解 多工部ex303加以多工而輸出至外部。多工時,為使語音訊 號與影像sfl號同步’可暫時將該等訊號蓄積至緩衝器 ex320、及ex321等。而,如圖示,可複數具備有緩衝器 ex318〜ex321,亦可為共有一個以上之緩衝器之構成。此 外’除圖示顯示以外,例如在調變/解調部ex3〇2與多工/解 多工部ex303之間等,亦可將資料蓄積至緩衝器,作為避免 系統之溢位及欠位之緩衝材。 又,電視機ex300除了從播放及記錄媒體等取得語音資 料及影像資料以外’亦可具備接收麥克風及照相機之八乂輸 入之構成,並對自該等所取得之資料執行編碼處理。而, 在此,雖將電視機ex300作為可達成上述編碼處理、多工、 及外部輸出之構成加以説明,但亦可為無法進行該等所有 的處理,而僅能達成上述接收、解碼處理、及外部輸出當 中任一者之構成。 又,以讀取機/記錄器ex218從記錄媒體讀出或寫入編碼 61 201138477 位元流時,上述解碼處理或編喝處理可在電視機ex·及讀 取機/記錄器ex218當中任擇進行,會,丄 T 亦可由電視機ex300與讀 取機/記錄器ex218彼此分擔進行。 舉例而言,第31δ)顯示從光碟讀入或寫入資料時的資 訊再生/記錄部eX_之構成。資訊再生/記錄部以〇〇具備以 下。兑月之元素ex4Gl ex4G7。光學磁頭ex4Qi係將雷射點照 射至光碟之記錄媒體仙5之記錄面,來寫入資訊,並㈣ 來自記錄媒體ex215之記錄面之反射光,將資訊予以讀入。 調變記錄部ex402係將光學磁頭ex4〇1中所内建之半導體雷 射予以電驅動,並依照記錄資料執行雷射光之調變。再生 解調部ex4()3係藉由光學磁如順中所㈣之光檢器將 已電檢出來自記錄面之反射光之再生訊號予以擴大,並將 記錄媒體ex215中所記錄之訊號成分予以解多卫、解調,再 生所需要的資訊。緩衝器ex4〇4會暫時保存用以記錄至記錄 媒體ex215之資訊,以及從記錄媒體技215所再生之資訊。 磁碟馬達ex405可使記錄媒體以215加以旋轉。伺服控制部 ex406則是控制磁碟馬達ex405之旋轉驅動,並使光學磁頭 ex401移動至預定的資訊磁轨,執行雷射點之追蹤處理。系 統控制部ex407係執行資訊再生/記錄部ex4〇〇全體之控制。 上述s買出及寫入之處理係以下述方式而實現:系統控制部 ex407利用缓衝器ex4〇4中所保持之各種資訊,又視必要生 成及追加新的資訊,並使調變記錄部ex4〇2、再生解調部 ex403、及伺服控制部ex4〇6協調作業,以透過光學磁頭 ex401進行資訊之記錄再生。例如,系統控制部ex4〇7係以 62 201138477 微處理器而構成,並以執行讀出寫入之程式的方式,執行 該等處理。 以上,雖將光學磁頭ex401作為照射雷射點而説明,但 亦可為使用近接場光,執行較高密度記錄之構成。 第32圖中顯示光碟之記錄媒體ex215的示意圖。於記錄 媒體ex215之記錄面,以螺旋狀的方式形成有座圈 (race)(槽),而於資訊磁轨ex230則是預先依照槽之形狀變 化,記錄有顯示磁碟上之絕對位置的地址資訊。該地址資 訊係包含用以特定記錄區塊(記錄資料之單位)ex231之位置 的資訊,而執行記錄及再生之裝置可藉由再生資訊磁軌 ex230、及讀取地址資訊,特定記錄區塊。又,記錄媒體ex215 含有資料記錄區域ex233、内圍區域ex232、及外圍區域 ex234。用以記錄使用者資料所使用之區域乃資料記錄區域 ex233,而配置在資料記錄區域ex233之内圍或外圍的内圍 區域ex232與外圍區域ex234,則是使用在使用者資料之記 錄以外的特定用途上。資訊再生/記錄部ex400會對此種記錄 媒體ex215之資料記錄區域ex233,執行編碼過的語音資料 及影像資料、或多工有該等資料之編碼資料之讀寫。 以上,雖舉例說明一層DVD、BD等之光碟,但並非限 於該等者,亦可為多層結構且於表面以外亦可記錄之光 碟。又,亦可為執行多維記錄/再生之結構之光碟,例如可 在磁碟的同一處,以各式各樣的相異波長之色光記錄資 訊,或從各種角度記錄不同的資訊層等。 又,在數位播放用系統ex200中,可在具有天線ex205 63 201138477 之車ex210内,從衛星ex202等接收資料,且在將動態影像 再生至車ex210中所配備的汽車導航以211等顯示裝置上。 而,汽車導航ex211之構成,係如第3〇圖顯示之構成當中添 加有GPS接收部之構成,在電腦6)(111及手機以114等亦可能 有同樣的構成。又’上述手機exll4#之終端,與電視機 ex300相同,除了持有編碼器及解碼器雙方之傳送接收型終 端以外,另有僅有編碼器之傳送終端、及僅有解碼器之接 收終端等三種安裝形式。 如此一來,可將上述實施形態中所示之圖像編碼方法 或圖像解碼方法,使用在上述任擇的機器及系統中,藉此, 可獲得上述實施形態中所説明之效果。 又,本發明並非限於上述實施形態者,在未脫離本發 明之範圍内,可進行各種變形或修正。 (實施形態3) 上述各實施形態中所示之圖像編碼方法及裝置、圖像 解碼方法及裝置,典型上可在積體電路之LSI中加以實現。 舉例而吕,第33圖中顯示經單晶片化過的LSIex5〇〇之構 成。LSIex500具備以下説明之元素ex5〇1〜ex5〇9,各元素係 透過匯流排ex51〇而連接。電源電路部ex5〇5係在電源呈開 啟狀態下對各部供電,藉此起動呈可作業之狀態。 例如’在執行編碼處理時,LSIex5〇〇係基於具有 CPUex502 ' s己憶體控制器以5〇3、及串流控制器找5〇4等之 控制部ex5Gl之控制,藉由AVI/〇ex5()9j^麥克風以117及照 相機exll3等接收Av訊號之輸人。所輸人之訊號會暫時 64 201138477 蓄積在SDRAM等外部的記憶體以511。依據控制部ex5〇l之 控制’所蓄積之資料會依照處理量及處理速度,適當地分 成複數次等後’傳送至訊號處理部ex5〇7。訊號處理部ex5〇7 係執行語音訊號之編碼及/或影像訊號之編碼。在此,影像 訊號之編碼處理乃上述實施形態中所説明之編碼處理。此 外’在訊號處理部ex5〇7中,視情況會執行將編碼過的語音 資料與編碼過的影像資料予以多工等之處理,並從串流 I/Oex506輸出至外部。該經輸出之位元流會向基地台exl07 傳送’或寫入記錄媒體ex215。而,多工時為達成同步,可 暫時將資料蓄積到緩衝器ex5〇8。 又’例如在執行解碼處理時,LSIex500依據控制部 ex501之控制,將以串流I/0ex5〇6透過基地台ex丨〇7所得之編 碼資料、或從記錄媒體ex215讀出所得之編碼資料,暫時蓄 積在記憶體ex511等。基於控制部ex5〇i之控制,所蓄積之 資料可依照處理量及處理速度,適當地分成複數次等後, 傳送至訊號處理部ex507。訊號處理部ex5〇7係執行語音資 料之解碼及/或影像資料之解碼。在此,影像訊號之解碼處 理乃上述實施形態中所説明之解碼處理。此外,視狀況, 為使解碼過的語音訊號與解碼過的影像訊號可同步再生, 可將分別的訊號暫時蓄積到緩衝器ex5〇8等。解碼過的輪出 訊號可適當地透過記憶體ex511等,從手機exll4、遊戲機 exll5、及電視機ex3〇0等各輸出部輸出。 而’上述中,雖將記憶體ex511作為LSIex500之外部構 成加以説明’但亦可為含於LSIex500内部之構成。緩衝器 65 201138477 ex508亦非限於單一者,亦可具備有複數緩衝器。又, LSIex5〇0可呈單晶片化,亦可呈複數晶片化。 而’在此雖稱為LSI ’但依照集積度之差異,有時亦可 稱為 1C、系統LSI、Super LSI、或Ultra LSI。 又’積體電路化之手法並非限於LSI者,亦可在專用電 路或通用處理器中加以實現。於LSI製造後,可利用可程式 之FPGA(Field Programmable Gate Array :場可程式閘陣 列)、或可利用可重組LSI内部之電路室(circuit cell)之連接 及設定的可重組態處理器。 此外,若因半導體技術之進步或衍生之其他技術,而 有可置換LSI之積體電路化之技術登場,想當然耳,亦可利 用其技術執行功能塊之積體化。亦有可能適用在生物技術 之應用等。 以上’雖已依據實施形態説明本發明之編碼方法、編 碼裝置、解碼方法及解碼裝置,但本發明並非限於該等實 施形態者。只要不脫離本發明之旨趣,將熟知此項技藝之 人士可聯想之各種變形施加在該實施形態之形態、以及使 不同的實施形態中之構成元素及步驟等加以組合而建構的 其他形態,皆含括在本發明之範圍内。 產業上之可利用性 本發明之圖像解碼方法及圖像編碼方法可發揮削減編 碼串流之代碼數量之效果,可適用在如:圖像解碼裝置、 圖像編碼裝置、視訊照相機、再生裝置、具有動態影像攝 影再生功能之手機、及個人電腦等。 66 201138477 【圖式簡單說明】 第1圖係顯示以量化水平偏移值所調整之逆量化值之 圖。 第2A圖係顯示在本發明之實施形態1中,圖像解碼裝置 之構成的方塊圖。 第2B圖係顯示在本發明之實施形態1中,圖像解碼方法 的流程圖。 第3A圖係顯示在本發明之實施形態1中,圖像編碼裝置 之構成的方塊圖。 第3B圖係顯示在本發明之實施形態1中,圖像編碼方法 的流程圖。 第4圖係顯示在本發明之實施形態1中,圖像解碼裝置 之詳細構成之一例的方塊圖。 第5圖係顯示在本發明之實施形態1中,圖像編碼裝置 之詳細構成之一例的方塊圖。 第6 A圖係顯示在本發明之實施形態1中,序列標頭之構 成之圖。 第6B圖係顯示在本發明之實施形態1中,圖片標頭之構 成之圖。 第7圖係顯示在本發明之實施形態1中,偏移參數集之 構成之圖。 第8圖係顯示在本發明之實施形態1中,解碼量化偏移 矩陣之處理的流程圖。 第9圖係顯示在本發明之實施形態1中,編碼量化偏移 67 201138477 矩陣之處理的流程圖。 第10圖係顯示在本發明之實施形態1中,算出對應於一 個轉換塊之新量化偏移矩陣之處理的流程圖。 第11圖係顯示在本發明之實施形態1中,算出、並寫入 對應於一個轉換塊之偏移參數之處理的流程圖。 第12圖係顯示在本發明之實施形態1中,圖像解碼裝置 以第1更新方法解析出所寫入之偏移更新參數之處理的流 程圖。 第13圖係顯示在本發明之實施形態1中,圖像解碼裝置 以第1更新方法算出量化偏移值之處理的流程圖。 第14圖係顯示在本發明之實施形態1中,圖像編碼裝置 以第1更新方法算出偏移更新參數之δ偏移值之處理的流 程圖。 第15圖係顯示在本發明之實施形態1中,圖像編碼裝置 以第1更新方法將偏移更新參數寫入標頭之處理的流程圖。 第16圖係顯示在本發明之實施形態1中,圖像解碼裝置 以第2更新方法算出量化偏移值之處理的流程圖。 第17圖係顯示在本發明之實施形態1中,圖像編碼裝置 以第2更新方法將&lt;5偏移值寫入標頭之處理的流程圖。 第18圖係顯示在本發明之實施形態1中,圖像解碼裝置 之逆量化部及圖像編碼裝置之逆量化部,以量化偏移值調 整逆量化值之處理的流程圖。 第19圖係顯示在本發明之實施形態1之變形例1中,偏 移參數集之構成之圖。 68 201138477 第20圖係顯示在本發明之實施形態1之變形例1中,算 出對應於一個轉換塊之新量化偏移矩陣之處理的流程圖。 第21圖係顯示在本發明之實施形態1之變形例1中,算 出、並寫入對應於一個轉換塊之偏移參數之處理的流程圖。 第22圖係顯示在本發明之實施形態1之變形例2中,偏 移參數集之構成之圖。 第23圖係顯示在本發明之實施形態1之變形例2中,圖 像解碼裝置解析出偏移更新參數之處理的流程圖。 第24圖係顯示在本發明之實施形態1之變形例2中,圖 像解碼裝置特定矩陣之處理的流程圖。 第25圖係顯示在本發明之實施形態1之變形例2中,圖 像編碼裝置將偏移更新參數寫入標頭之處理的流程圖。 第26圖係顯示實現内容遞送服務(content delivery service)之内容供給系統全體構成之一例的示意圖。 第27圖係顯示手機外觀之圖。 第28圖係顯示手機之構成例的方塊圖。 第2 9圖係顯示數位播放用系統全體構成之一例的示意 圖。 第30圖係顯示電視機之構成例的方塊圖。 第3 1圖係顯示對光碟記錄媒體執行資訊讀寫的資訊再 生記錄部之構成例的方塊圖。 第32圖係顯示光碟記錄媒體之結構例之圖。 第33圖係顯示實現各實施形態之圖像編碼方法及圖像 解碼方法的積體電路之構成例的方塊圖。 69 201138477 【主要元件符號說明】 卜··圖像解碼裝置 2· ··圖像編碼裝置 10…旗標解析部 11…判定部 12…量化偏移矩陣算出部 13…逆量化解碼部 20…判定部 21…旗標寫入部 22…偏移更新參數算出部 23…參數寫入部 24···量化編碼部 1000…圖像解碼裝置 1500…偏移參數解析部 1502…量化偏移值算出部 1504…量化偏移值儲存部 1506…第1記憶體部 1508…逆量化部 1510…逆轉換部 1512…樣本重組部 1514…樣本預測部 1516…第2記憶體部 1600…偏移參數算出部 1602…偏移參數寫入部 70 201138477 1604…第1記憶體部 1606…減法部 1608…轉換部 1610…量化部 1612…逆量化部 1614…逆轉換部 1616…樣本預測部 1618…第2記憶體部 1620.·.加法部 2000…圖像編碼裝置NewAbsVal=AbsVal-(PredefinedVal-〇ffset Numerator) Quant Quantization Step Size/PredefinedVal (Expression 11) Here, 'NewAbsVal' is the absolute value of the adjusted new inverse quantized value, and “PredefinedVal” is a previously defined value. And r 〇ffset Numerator" is a quantized offset molecule. Also, "Quantizati〇nStepSize" is a quantized scale step size, and the previously defined value is such as 128. In this way, in the embodiment, the quantization offset matrix is calculated by using the offset update parameter, so that it is not necessary to put the quantization offset matrix itself into the encoded stream in terms of the image coding device, and only the quantization offset needs to be compressed. The matrix, and the information used to restore the compressed quantized offset matrix to its original state is included as an offset update parameter in the header of the encoded_stream. Therefore, the number of bits required to quantize the offset matrix can be reduced, and the number of codes of the encoded stream can be reduced. Further, in the present embodiment, the quantization offset matrix is calculated by the update method corresponding to the update type identifier. Therefore, in the image coding apparatus, an appropriate update method can be selected in the quantization or inverse quantization, and The offset update parameter and the update type identifier corresponding to the selected update method may be included in the header of the encoded stream. Therefore, the update or calculation of the quantization offset matrix can be made more flexible. (Modification 1) 36 201138477 Here, an i-th modification of the embodiment will be described. The complex offset parameters stored in the header of the above-described embodiment are respectively constituted by the any-term updating method in the third to third updating methods, and can be constituted by mutually different updating methods. However, the complex offset parameters of the present modification are all constituted by the third update method. Fig. I9 is a view showing the constitution of the offset parameter set (1) of the present modification. The offset parameter set Dl7_ is equivalent to the offset parameter set shown in the second and second maps, and the complex offset parameter is deleted by the complex offset parameter. When there are complex conversion blocks of different sizes in the sequence or picture, the offset parameter 〇17〇2 is included in the offset parameter set D1700 according to the size. For example, as shown in Fig. 19, the offset parameter set D1 includes #Μ offset parameters D1702, which correspond to the sizes of the first to third conversion blocks, respectively. The offset parameter D1702 includes an offset update flag D17〇1 and an offset update parameter 1) 1703 for calculating a quantization offset matrix. The offset update flag D17〇1 is the same as the offset update flag 0100 shown in Fig. 7, and is used to indicate whether the flag of the quantization offset value of the conversion block should be updated. That is, the offset update flag D1701 indicates whether or not the quantization offset matrix should be calculated to update the respective quantization offset values of the quantization offset matrix before the update. The offset update parameter D1703 is configured immediately after the offset update flag D1701. Further, the offset update parameter D1703 is different from the configuration of the offset update parameter D102 corresponding to the first update method shown in Fig. 7, and does not include the update type identifier D104. That is, the offset update parameter D1703 includes: first and second correction parameters D1704, and D1706, (5 number of offset values D1708, 37 201138477, and N consecutive 5 offset values Dni〇. The image decoding apparatus 1000 and the image encoding apparatus 2000 are the same as the above-described embodiment, and the processing shown in Figs. 8 and 9 is executed. 2 = Displaying the new array corresponding to one conversion block in the present modification is calculated. Flowchart H of the process of processing H shows the detailed processing of step S4〇6 and s marriage of Fig. 8. 'First,' the offset parameter analysis unit 15 analyzes the offset update flag in the header. (Step S19G()) The offset parameter analysis unit 1 determines whether or not the offset update flag is 1 (step S19G2). Here, if the offset parameter analysis object determines the offset update flag is 1 (step _Yes), that is, the offset update parameter in the header is parsed without parsing the update type identifier (the step is profitable. Moreover, the quantized shift value calculation unit 15 calculates the new quantized offset value by the offset update parameter thereof. (Quantization offset matrix) (Step 6). At this time, the quantization offset value is calculated. [U5G2 or higher The i-th update method of the embodiment calculates a quantization offset matrix. Fig. 21 is a flowchart showing a process of calculating and writing an offset parameter corresponding to one conversion block in the present modification. The detailed processing of steps S508 and S510 of Fig. 9 is displayed. First, the 'offset parameter calculation unit deletes the offset update flag, and the offset parameter write unit 1602 writes the offset update flag determined by the offset parameter write unit 1602. Header (step S2GGG). Then the 'offset parameter calculation is based on the offset update flag determined by the decision, and the judgment is money (four) quantization offset matrix (step s2〇〇2). Here, if the offset parameter is calculated It is determined that the quantization offset matrix is (Yes in step S2002) 'that is, the decision and writing of the update type identifier are not executed, 38 201138477, and the offset update parameter is calculated based on the new quantization offset matrix (step S2004). The shift parameter writing unit 16〇2 writes the calculated offset update parameter into the header (step S2006), and in steps S2004 and S2006, the offset parameter calculating unit 1600 and the offset parameter writing unit 1602 are the same. In the above embodiment, the first one is The new method calculates the offset update parameter and writes it. (Modification 2) Here, a second modification of the embodiment will be described. The complex offset parameters stored in the header of the above embodiment are respectively the first The updating method configuration of any one of the third updating methods can be configured by mutually different updating methods. However, the complex offset parameters of the present modification are the same as the modified example, and all of them are based on the first updating method. Further, in the above-described embodiment and the first modification, in order to calculate a new quantization offset matrix, a previous (for example, the previous) quantization offset matrix which has been set in advance is used, but in the present modification, the previous use is utilized. The calculated arbitrary quantization offset matrix is used to calculate a new quantization offset matrix. Fig. 22 is a view showing the configuration of the offset parameter set D1800 of the present modification. The offset parameter set D1800 is equivalent to the offset parameter sets D306 and D312 shown in Figs. 6A and 6B, and is formed by the complex offset parameter d18〇2b. When there are complex conversion blocks of different sizes in the sequence or picture, the offset parameter D18〇2 is included in the offset parameter set D1800 according to the sizes. For example, as shown in Fig. 22, the offset parameter set D18〇〇 contains one offset parameter 1) 1802, which corresponds to the size of the first to third conversion blocks, respectively. The offset parameter D1802 includes an offset update flag Dl8〇1, and an offset update parameter _(10)3 for calculating the quantization offset. The offset is more the same as the offset _ 39 201138477 is the same as the offset update flag D100 shown in Figure 7, which is used to indicate whether the flag of the quantization offset value of the conversion block should be updated. That is, the offset update flag D1801 indicates whether or not the quantization offset matrix should be calculated, thereby updating the flags of the quantization offset values included in the quantization offset matrix before the update. The offset update parameter D18 03 is configured immediately after the offset update flag D18 01. Further, the offset update parameter D1703 is different from the configuration of the offset update parameter D102 corresponding to the first update method shown in Fig. 7, and does not include the update type identifier D104. Further, the offset update parameter D1803 differs from the configuration of the offset update parameter D1703 shown in Fig. 19 as containing the matrix identifier D1804. That is, the offset update parameter D1803 includes a matrix identifier D1804, first and second correction parameters D1806, and D1808, (5 number of offset values D1810, and N consecutive 5 offset values D1812. Matrix identifier D18 04 is an identifier for identifying a quantization offset matrix or a quantization scaling matrix. The matrix identifier D1804 can be specifically utilized to calculate a new quantization matrix and to use the quantization matrix previously used or The image decoding device 1000 and the image encoding device 2 according to the present modification are the same as the above-described embodiment, and the processes shown in Figs. 8 and 9 are executed. The decoding device 1000 and the image encoding device 2 perform the processes shown in Fig. 20 and Fig. 21 in the same manner as in the first modification. Fig. 23 shows the image decoding device 1 of the present modification. The flowchart of the process of analyzing the offset update parameter is shown in Fig. 23. The figure 23 shows the detailed processing of step S1904 of Fig. 20. First, the offset parameter analysis unit 1500 analyzes the offset stored in the header more 40 201138477 Within the new parameters The matrix identifier Dl8〇4 (step S21〇〇), and the offset parameter analysis unit 1500 analyzes the first correction parameter stored in the offset update parameter of the header (step S2102), and analyzes the second correction separately. Parameter (Step S2104) Then the 'Offset parameter analysis unit 15' analyzes the number of δ offset values stored in the offset update parameter of the header (Step S21〇6). Further, the offset parameter analysis unit 1500 The complex number (5 offset value) stored in the offset update parameter of the header is parsed in the scanning order according to the above-mentioned number 'supposed in step S21〇6. (Step S2108). Here, the offset is stored. The complex number in the update parameter is continuous (5 offset values are arranged in scan order in a 2-dimensional matrix corresponding to the transform block. For example, the δ offset values are in a 2-dimensional matrix corresponding to the transform block, and are subjected to zigzag scanning. The order is arranged from the low frequency component to the high frequency component, and the scanning order differs depending on the size of the conversion block. For example, the scanning order of the block (8x2 block) formed by the frequency component (conversion coefficient) of 8χ2 is different. Block formed by a frequency component of 2x8 (2x8 area) The image decoding apparatus 1000 of the present modification is configured to analyze the offset update parameter by the processing shown in FIG. 23, and then perform the offset update parameter analyzed by the image decoding apparatus 1000 as shown in FIG. In the same manner, the image decoding device 1 of the present modification calculates a quantization offset value (quantization offset matrix). Here, the image decoding device 1 of the present modification is present. When the quantization offset value is obtained in step S1200 shown in Fig. 13, the matrix identifier D1804 parsed in step S2100 of Fig. 23 is used. That is, the quantization offset value calculation unit 1502 specifies the quantization offset matrix or the quantization scaling matrix which is stored in the first memory portion 1506 and which is recognized by the matrix identifier D1804. Further, the quantization offset value calculation unit 1502 reads out, from the first memory unit 1506, the quantization offset at the same position as the quantization offset value of the calculation target in the localization offset matrix or the quantization scaling matrix defined by the 201138477. value. Fig. 24 is a flow chart showing the processing of the matrix before (previously) the image decoding apparatus of the present modification. First, the quantization offset value calculation unit 1502 specifies the value displayed by the matrix identifier analyzed by the offset parameter analysis unit 15 (step S23), and the quantization offset value calculation unit 1502 determines the matrix identifier display. If the value determined in advance is the value set in advance (Yes in step S2302), the value is determined from the first memory unit 15〇6. a quantization scaling matrix corresponding to the value displayed by the matrix identifier (step S23〇6). Further, the quantization offset value calculation unit 1502 sets the quantized scaling matrix retrieved therein to be used to calculate a new quantization offset matrix. The old quantization offset matrix (that is, the quantization offset matrix of the update target) (step S23〇8). On the other hand, the quantization offset value calculation unit 15〇2 determines that the matrix identifier is displayed in step S23〇2. The value is not a value set in advance (No in step 823〇2), that is, the quantization offset matrix directly corresponding to the value displayed by the matrix identifier is retrieved from the first memory unit 1506 (step S23〇4). The value calculation unit 1502 will The searched quantization offset matrix is used as an old quantization offset matrix (i.e., a quantization offset matrix to be updated) used to calculate a new degraded offset matrix. Image coding apparatus 2 of the present modification The system performs the same processing as the processing shown in Fig. 4, and calculates a 5-offset value (a two-dimensional matrix including five offset values). Here, the image encoding apparatus 2 of the present modification 〇〇〇 The offset parameter calculation 42 201138477 deletes the quantized offset matrix or the quantization scale matrix stored in the first memory portion 16G4 when the quantization offset value is obtained in step S13 (K) shown in the figure. Among them, the specific matrix is used as the matrix before the old update. At this time, the image encoding device 2000 performs the same processing as the processing shown in Fig. 24 to specify a matrix. ^ reads from the first memory unit 1604 the quantized offset value at the same position as the δ offset value of the calculated object in the matrix (quantization offset matrix or quantization scaling matrix) that is specified before the update ( Or quantify proportionally increase or decrease step size Fig. 25 is a flow chart showing the process of writing the offset update parameter into the header by the image encoding device 2 of the present modification, and the twenty-fifth figure shows the step S2 of Fig. 21 First, the offset parameter writing unit 1602 writes a matrix identifier for identifying a matrix (quantization offset matrix or quantization scaling matrix) specified by the offset parameter calculation unit 1600 into a header (step S2200) Next, the offset parameter writing unit 1602 writes the third correction parameter used in the offset parameter calculation unit 16 to the header (step S2202), and then the offset parameter calculation unit 16〇〇 The second correction parameter used in the writing is written in the header (step S22〇4). Further, the offset parameter writing unit 1602 calculates the number of the offset values to be written (step S22〇6^, for example, calculation (the calculation of the number of the 5 offset values is performed in the 2-dimensional matrix) The position of the last non-zero 5 offset value in the scan order is performed. However, the matrix corresponding to the quantization offset matrix is a matrix containing 5 offset values in the element. Then the 'offset parameter write The input 1602 will be calculated as such The number of &lt;5 offset values is written to the header (step S22〇8). However, the offset parameter writing unit 16〇2 also 43 201138477 can write a parameter indicating the number of its δ offset value to the header. Further, the offset parameter writing unit 1602 writes the offset value calculated by the offset parameter calculating unit 160 to the header in the scanning order in accordance with the number calculated in step S2206 (step S2210). That is, the offset parameter writing section 16〇2 successively writes the offset value to the header until the position of the 5 offset value written is equal to the last non-zero delta offset in the scanning order in the above 2-dimensional matrix. The location of the value. The image decoding method and the image encoding method of the present invention have been described with reference to the above embodiments and modifications thereof, but the present invention is not limited thereto. For example, in the present embodiment and its modifications, the offset update denominators D304 and D310 are arranged in the update offset parameter flags D302, D308, and the offset parameter set as shown in FIG. 6 and FIG. Between d306 and 〇312, but it may not be in its place. At this time, the offset update denominator may be included in the offset update parameter D102 constituted by the first update method. Further, in the above-described Modification 3, as shown in Fig. 24, the image decoding device 1 specifies or retrieves the pre-update (previous) matrix by the matrix identifier, but the 'image encoding device 2000 may Similarly to the processing shown in Fig. 24, the matrix identifier is used to identify or retrieve the pre-update (previous) moment brake. Further, in the above-described embodiments and their modifications, the flags (the update offset parameter flag or the offset update flag) are respectively displayed as 丨 and the display is 〇 when the processes are different from each other, however, the flag is The relationship between the values shown and the treatment of their values may also be the opposite. For example, as shown in FIG. 8, when the image decoding apparatus 1000 determines in step S402 that the update offset parameter flag is displayed as 1, the processing of steps S404 to S408 is executed, but conversely, the determination is an update offset. When the parameter flag is displayed as 〇, the processing of steps S4〇4~S4〇8 44 201138477 may be performed. Furthermore, an aspect of the present invention may also be a decoding method as described below. The decoding method decodes the quantization offset parameter (offset parameter) used for the image stencil horse, and parses the flag (S4 〇〇) from the header of the picture, and determines whether the flag has a display beforehand. The set value (_), if the flag has a value set in advance, that is, the parameter of the offset update denominator is parsed from the header (S404), and the newly updated quantization offset matrix value is decoded from the header. (Quantization offset value) (S406 and S408). Here, the analysis of the offset update denominator is not necessary, and the above-described offset update denominator may be set in a value defined in advance. Moreover, the process of decoding the new quantization offset matrix (quantization offset matrix value) is as follows: the offset update flag is parsed from the header of the picture, and the offset update flag is determined. There is a value set in advance (S601), and if the offset update flag indicates that the value set in advance is set, that is, the parameter of the updated type identifier is parsed from the reference flag (S6〇2), It is also determined whether or not the parameter analyzed as described above indicates the second predetermined value (S6〇4). (4) The parameter of the analysis _ _ 别 有 有 有 有 有 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 参数 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移 偏移Quantization offset value _ The parameter of the updated lion identifier is not set to the value set by $2, and whether the parameter of the updated type identifier analyzed above is displayed or not is displayed. S6〇6). If the parameter of the update type of the resolved itj is the value of the third predetermined value, the new quantized offset matrix value is parsed from the header (S616). 45 201138477, the parameter of the updated type identifier that is parsed does not show the third pre-valued 'that is, the single-quantization offset value is parsed from the header (S612), and all the new quantized offsets are converted. The value may be set to a single internalization offset value (S614) that has been resolved before. In addition, 'the process of decoding the new quantized offset matrix (quantization offset matrix value), such as the header of the following system picture parsing out the offset update flag (si9〇〇&quot; and determining whether the flag is 'reported' or not The first set value (8) is moved in advance. If the flag has a value set in advance by 7F, that is, the offset update parameter (Sl9〇4) is taken from the header, and the new quantization offset value (S1906) is calculated according to the analyzed offset update parameter. can. In addition, in the case where the offset update parameter is analyzed, the first correction parameter (S8GG) is parsed from the header, and the second correction parameter (S802) is parsed from the header, and the display is parsed from the header. The parameter (S8〇6) of the number of encoded offset values may be based on the number of previously encoded g-shift values of the parsed ^, and the delta offset value (S8l〇) may be parsed from the header. Further, the processing of the offset update parameter is analyzed. For example, the parameter (10) 00 of the matrix identifier is parsed from the header, and the 钐 correction parameter (s2i 〇 2) is parsed from the header, and then the header is parsed. 2 Correction parameter (8) (4) After the self-described scale, the parameter indicating the number of encoded δ offset values is precipitated (S2106), and the header is self-recited according to the number of the encoded δ offset values analyzed. It is also possible to analyze the delta offset value (S21〇8). Moreover, the processing of the quantized offset matrix value is analyzed, as follows: the initial quantization offset value is initialized to a value defined in advance (8), and the offset value is analyzed from the header in the scan order (4 And adding the initial offset value to the solution 46 201138477, and then calculating _ (8)_), determining that the calculated quantization offset value is the last quantization offset value of the offset matrix is called Household =: The offset value is not the last quantized offset value w. The value of the _ value of the matrix is initialized to: (S1 ° ° 8), if the value calculated above is not ambiguous, it will be Scanning/two (four) offset value hx decoding (measurement 4), if the calculated 1 quantization value is 0, the remaining material; t-offset value is set to (4) Μ _. The process of calculating the new quantized offset value by using the offset update parameter, as shown in the following figure, and determining the coefficient determined by the third correction parameter The old quantized offset value is increased by a factor of 1 to obtain a first value (S1202)' and the difference between the old quantized offset value and the fixed value is derived (S1204), and then the second correction parameter is used by || The coefficient of determination is calculated by increasing or decreasing the difference 2 to calculate the second value (S1206), and then the first! The value is added to the scalar 2 value to obtain the calculated offset value (S1208), and the δ offset value is added to the aforementioned calculated offset (4), thereby calculating the new quantized offset value (S1210). Here, the coefficient obtained by the first correction parameter is obtained by calculating the sum of the value of the first correction parameter and the offset update denominator, and dividing the sum of the sum by the value of the offset update denominator. Calculate the ratio. Further, the coefficient obtained by the second correction parameter is a ratio obtained by dividing the second correction parameter by the value of the offset further. Further, the aforementioned fixed value is a value defined in advance. Alternatively, the aforementioned fixed value is a quantized offset value of the DC position of the conversion block. 47 201138477 or 'The aforementioned fixed value is the average offset value of the conversion block. And one aspect of the present invention may also be an encoding method as described below. The encoding method is a method of encoding the quantization offset parameter (offset parameter) used in image encoding to have the following processing: writing a flag to the header of the picture (S 5 00), and determining the quantization offset matrix value Whether (quantization offset matrix) should be updated (S502) 'If the quantization offset matrix value should be updated, the parameter of the offset update denominator is written to the aforementioned header (S504), and the newly updated quantization offset matrix value is encoded. Go to the aforementioned header (S508 and S510). Here, the writing of the offset update denominator is not necessary, and the offset update denominator may be set to a value defined in advance. In addition, the process of encoding a new quantized offset matrix, as described below, writes an offset update flag to the header of the picture (S700), and determines whether to use a new quantized offset matrix (S701)' when using a new offset matrix. At this time, the parameter of the update type identifier is written in the aforementioned header (S702), and it is determined whether or not the aforementioned quantization offset matrix value should be encoded by the update method (S704). If the foregoing quantization offset matrix value should be encoded using the foregoing update method, that is, the offset update parameter is calculated using the foregoing update method according to the new quantization offset matrix value (S7〇8), and the offset update parameter is written into the foregoing label. Head (S710). If the foregoing quantization offset matrix value is not to be encoded using the foregoing update method (s 7 〇 6 ), it is determined whether the new quantized offset matrix value is the same value, and if the new quantized offset matrix value is not the same value, then The new quantized offset matrix value is written to the aforementioned header (S716). If the value of the new quantization offset matrix is the same value, a single quantization offset value (quantization offset matrix value) may be written in the header (S712). In addition, the process of encoding the new quantized offset matrix is as follows: the new flag is written to the header of the picture (S2000), and the new quantized pseudo-shift matrix is used (S2002). The offset matrix, that is, the offset update parameter is calculated according to the new quantized shift value (S2004), and the offset update parameter is also the same as the foregoing header (S2006). Further, the process of writing the offset update parameter is as follows: the first correction parameter is written in the header (S900), and the second correction parameter is written in the front frame (S902) to calculate the 5 offset value. The number (S904), and the parameter 'displaying the number of the encoded offset value' is written to the foregoing header (S906), according to the number of 5 offset values written and encoded by the previous fan, 5 offset value is written to the previous block to find the header (S910). 'And' the process of writing the offset update parameter, as shown below, the parameter of the de-interval identifier is written into the header (S2200), and When the first correction parameter is written into the header (S2202) and the second correction parameter is written into the header, the number of the 5 offset values is calculated (S2206), and the number of the encoded offset values is displayed. After the parameter is written into the foregoing header (S2208), the δ offset value may be written into the former fascinating head (S2210) according to the number of δ offset values written and encoded by the former hacker. The process of quantizing the offset matrix value to be written, as the following initializes the initial reference offset value to a previously defined value (sll〇〇), and scans from The next new quantized offset value in the order, minus the aforementioned reference offset value, thereby calculating the 5 offset value (S1104), encoding the 5 offset value to the aforementioned header (S1106)' and the conversion block The next position corresponding to the reference offset value is set to the aforementioned new quantized offset value (S1108), and it is determined whether the remaining quantized offset value in the scan order is the same value as the aforementioned reference offset value (SU1〇). 49 201138477 If the remaining quantization offset value in the scanning order is the same value as the aforementioned reference offset value, the aforementioned δ offset value is encoded to the negative value of the aforementioned reference offset value (S1112) 'If remaining in the scanning order If the quantized offset value and the reference offset value are different values, the next offset value is calculated in the scan order until the last position of the conversion block is calculated (sll 〇 4). The process of calculating the offset update parameter is as follows: the old quantized offset value is determined as follows (S1300) and the old offset offset value is scaled up and down by a coefficient determined by the second correction parameter, thereby calculating The third value (§ 13〇2), and derive the aforementioned old quantization The difference between the shift value and the fixed value (sl3〇4), and the difference is proportionally increased or decreased by the coefficient determined by the second correction parameter, thereby calculating the second value (S1306), and then the 丨 value And adding the second value, obtaining the calculated offset value (S1308), and subtracting the calculated offset value from the new quantized offset value to calculate the S offset value (S1310). The coefficient obtained by the first correction parameter is calculated by dividing the sum of the first correction parameter and the value of the offset update denominator and dividing the sum by the value of the offset update denominator. The coefficient obtained by the second correction parameter is a ratio calculated by dividing the second correction parameter of the month by the value of the offset update denominator. Further, the aforementioned fixed value is a value defined in advance. Or the aforementioned fixed value is an offset value of the DC position of the conversion block. Here, in the method of encoding and decoding the above-described quantization offset parameter, the processing for determining the value of the old quantization offset matrix may be as follows. The parameter value of the matrix identifier is determined (S2300), and it is determined whether or not the parameter of the aforementioned matrix identifier indicates a value set in advance (S2302). If the parameter of the aforementioned matrix 50 201138477 identifier shows a value set in advance, the matrix value is quantized from the memory (S2306), and the quantized offset matrix value is set as the retrieved quantization scale matrix value (S2308). If the parameter of the matrix identifier does not show a value set in advance, the quantization offset matrix value is retrieved from the memory (S2304). Further, one aspect of the present invention may be the following adjustment method. The adjustment method adjusts the inverse quantization value by the quantization offset value, and has a process of acquiring the quantization offset value (S1400), and subtracting the quantization offset value from the previously defined value, thereby calculating the scale value. (sl4〇2), and multiplying the aforementioned scale value by the quantization scale step size (S1404), and dividing the value of the product by the aforementioned predefined value, thereby calculating the adjustment value (sl4〇6) Thereafter, the aforementioned adjustment value (sl4〇8) is subtracted from the aforementioned inversely quantized value. Here, the aforementioned value defined in advance is 128. However, the present invention can be implemented not only by the above decoding method, encoding method, and fading method, but also as a device for performing decoding, encoding, and adjustment in this way, an integrated circuit, and a computer for performing processing according to the method. The program, and the storage medium for storing the program. (Embodiment 2) By recording a program for realizing the configuration of the image encoding method or the image decoding method described in the above embodiment to a memory medium, the processing shown in the above-described target form can be easily performed. The ground is delivered in a separate computer system. § I have recalled that the media can be a disk, a CD, a CD, a 1 (^ card, a semiconductor memory, etc.). In addition, the image coding method shown in the above embodiment will be described here. And an application example of the image decoding method and a system using the same. Fig. 26 is a diagram showing the overall configuration of the content supply system ex100 that realizes the content delivery service. The communication service providing area is divided into a desired size' Each of the service areas is provided with a base station exl06~exl1 of a fixed wireless station, the content supply system ex100 is transmitted through the Internet service provider ex102 and the telephone network exl〇4, and the base station exl〇6~exll〇 The computer exlll, the PDA (Personal Digital Assistant) exll2, the camera exll3, the mobile phone exll4, and the game machine are connected to the Internet exlOl with each machine such as 115. However, the content supply system exlOO is not limited to the figure 26 The configuration may be such that the optional elements are combined and connected. Alternatively, the base stations exl06 to exll〇 may not be passed through the fixed wireless station. It is connected to the telephone network exl04. In addition, each device can be directly connected to each other through short-range wireless, etc. The camera e X113 is a device that can perform motion picture recording such as a digital video camera, and the camera exll6 can perform still image photography such as a digital camera. And the machine for motion picture photography. In addition, the mobile phone exl 14 can be GSM (Global System for Mobile Communications), CDMA (Code Division Multiple Access), W-CDMA (Wideband- Code Division Multiple Access: LTE (Long Term Evolution), HSPA (High Speed Packet Access), or PHS (Personal Handyphone System: Personal Hand) 52 201138477 Machine system), etc. In the content supply system exlOO, the camera exll3 or the like is connected to the streaming server exl03 through the base station exl09 or the telephone network ex104, thereby achieving on-site instant transmission, etc. The user can use the camera exl as described in the above embodiment. The content of the l3 shot (for example, an image of a live music concert, etc.) is encoded and transmitted to the streaming server ex103. On the other hand, the streaming server ex103 can stream the content data transmitted by the customer in need. Among the customers, there are a computer exlU, a PDAexll2, a camera exll3, a mobile phone exll4, or a game machine exll5 which can decode the above-mentioned encoded data. In each machine that receives the transmitted data, the received data can be decoded and reproduced. The encoding processing of the photographed data may be performed by the camera exll3, or by the streaming server ex103 transmitting the processing data, or may be shared with each other. Similarly, the decoding process of the transmitted data can be performed by the client, or by the streaming server ex103, or can be shared with each other. Further, it is not limited to the camera exll3, and the still image and/or moving image data captured by the camera exll6 may be transmitted to the streaming server ex103 via the computer exl 11. The encoding processing at this time may be performed by any of the camera exll6, the computer exl11, or the streaming server ex103, or may be shared with each other. Further, these encoding processing and decoding processing are generally performed in a computer exlll and an LSI (Large Scale Integration) ex500 owned by each device. The LSI ex500 can be a single wafer or a composite wafer 53 201138477. Further, the software for image encoding and image decoding is mounted to a recording medium (CD_R〇M, floppy disk, hard disk, etc.) that can be read in a computer exlll or the like and the encoding process is performed by the software. Decoding processing is also possible. In addition, when the mobile phone exll4 is attached with a camera, it can be transmitted with the dynamic image data obtained by the camera. The motion picture data at this time is encoded by the LSI ex500 equipped with the mobile phone ex 114. Moreover, the serial server exl03 can be a plurality of servers or a plurality of computers, and can also process or record the distributed data and pass the wheel. As described above, in the content supply system ex100, the client can receive the encoded material and reproduce it. In this way, in the content supply system exl〇〇, the customer can immediately receive the information transmitted by the user and decode and reproduce it, without the user having special rights or equipment, and can also realize personal play. The image encoding method or image demapping method shown in the above-described embodiment can be applied to the encoding or decoding of each device constituting the content supply system. As an example, the mobile phone exll4 will be described. Fig. 27 is a view showing a mobile phone ex14 using the image coding method and image decoding method described in the above embodiment. The mobile phone exi μ has an antenna ex601 for transmitting and receiving radio waves between the base station and the base station, a camera unit ex603 for capturing images and static images such as a CCD camera, and a display unit ex602 for decoding. The image captured by the camera unit ex6〇3 or the image received by the antenna ex601 is displayed on the liquid crystal display or the like; the main body is composed of the operation keys of 6〇4 groups; the voice output unit Ex608, used for voice output, σ 八 八; voice input 54 201138477 into 4ex605, used for voice input microphone, etc.; recording media ^ 7, is used to save the recorded dynamic image or static image data, Received mail data, dynamic data or static image data, and encoded or decoded data; and slots (81 〇〇 以 6 〇 6, can be used to install. Recorded media ex6G7 installation The mobile phone is 114. The recording medium ex6〇7 is stored in the flash memory component, and (4) the flash memory component is EEPROM (Electncally Erasable and Programmable Read Only Memory) One type of read-only memory is a non-electrical memory that can be electronically exchanged and erased in a plastic case such as an SD card. In addition, the mobile phone exll4 is illustrated in Figure 28. The mobile phone is looking for the 114 series through the synchronous bus ex713 The power supply circuit unit ex71, the operation input control unit ex704, the image coding unit ex712, the camera interface ex703, the LCD (Liquid Crystal Display) control unit ex7〇2, the image decoding unit ex709, and the demultiplexing unit Ex708, recording/reproduction unit ex7〇7, modulation/demodulation circuit unit ex706, and sf·sound processing unit ex7〇5 are connected to main control unit ex7丨1 (for display control unit ex602 and operation key ex604) When the user ends up the call and the power button is turned on by the user's operation, the power supply circuit unit ex710 supplies power from the battery pack to each unit, thereby enabling the camera digital mobile phone exl 14 to be activated. The state of the mobile phone exll4 is based on the control of the main control unit ex711 formed by the CPU, the ROM and the RAM, and the voice input unit 6 in the voice call mode; &lt;6()5 The voice signal collected by the voice processing unit ex705 is converted into a digital voice resource 55 201138477 ^ To adjust the spread spectrum processing unit ex706 to perform the spread spectrum processing and to receive the transmission circuit The portion is transmitted through the antenna ex601 after the digital analog conversion processing and the frequency conversion processing are applied at 7.1. Moreover, the mobile phone eXU4 can expand the received data received by the antenna ex601 in the voice call mode and apply frequency conversion processing and analog digital conversion processing, and then despread the frequency by the modulation and demodulation circuit unit ex7〇6 ( The dispreading spectrum is processed and outputted by the voice output unit ex6〇8 after being converted into analog voice data by the voice processing unit. Further, when the e-mail is transmitted in the data communication mode, the file information of the e-mail input by the operation of the operation key ex6〇4 of the body unit is transmitted to the main control unit ex7u via the operation input control unit ex7〇4. The main control unit ex711 spreads the file data by the modulation/demodulation circuit unit ex7〇6, applies digital analog conversion processing and frequency conversion processing to the reception transmission circuit unit at 7〇1, and then transmits the antenna through the ex6〇1 The base station is transmitted at 11 miles. When the image data is transmitted in the data communication mode, the image data captured by the camera unit ex6〇3 is supplied to the image encoding unit ex712 via the camera interface ex703. Further, when the image data is not transmitted, the image data captured by the camera unit ex6〇3 can be directly displayed on the display unit ex6〇2 via the camera face ex703 and the LCD control unit ex702. The image encoding unit ex712 is provided with the image encoding device described in the present invention, and the image encoding device shown in the above-mentioned application is provided with a (four) encoding method 'supplied from the camera unit ex6Q3. It is compressed into a coded image data, and is sent to the multiplexed department ex7G8. In addition, at the same time, the mobile phone, such as the 14th series, uses the speech processing unit eX705 to transmit the voice collected by the camera unit ex6G3 with the voice input unit ex6〇5 as digital voice data to the multiplex unit π· . The multiplexed section 8 is a modified solution from the image data supplied from the image encoding unit ex712 and the voice supplied from the voice processing unit ex7〇5. The modulation circuit unit π· purely spreads the multi-X data obtained as a result, and applies the digital analog conversion processing and the frequency conversion processing to the transfer transmission circuit unit ex7〇1, and then transmits the data through the antenna ex601. When receiving the dynamic image slot data that has been connected to the first page in the data communication mode, the data is processed by the modulation demodulation circuit unit ex7 through the antenna sub-interface and received from the base station exllO. The multiplexed data obtained as a result is sent to the multiplexing department ex7〇8. Moreover, in order to decode the multiplexed data received through the antenna ex6〇i, the demultiplexing unit ex708 multiplexes the multiplexed data to separate the bit stream of the image data and the bit of the voice data. The stream is supplied to the image decoding unit ex7〇9 via the sync bus ex113, and the voice data is supplied to the voice processing unit ex7〇5. Next, the image decoding unit ex709 includes the image decoding device described in the present application, and decodes the bit stream of the image data by the decoding method corresponding to the encoding method shown in the above embodiment. Thereby, the reproduced moving image data is generated and supplied to the display unit 602 via the LCD control unit ex702. Thereby, for example, dynamic image data contained in the sorrow image file connected to the home page can be displayed. At the same time, the voice processing unit ex7〇5 57 201138477 converts the voice data into analog voice data, and supplies the voice data to the voice wheeling unit ex608. By this, for example, the voice material contained in the motion picture file connected to the home page can be reproduced. And 'not limited to the above system example, recently, digital playback of satellites and ground waves (gr〇Und wave) has become a topic'. As shown in FIG. 29, at least the image coding apparatus or the diagram of the above embodiment may be used. Like a decoding device, it is installed in a digital playback system. Specifically, in the broadcast station ex2〇i, the voice data, the image data, or the bit stream of the multiplexed data may be transmitted to the communication or broadcast satellite ex202 by radio waves. Receiving the broadcast satellites at 2〇2, the broadcast wave will be transmitted, and the home antenna ex204 having the satellite broadcast receiving device receives the wave, and the television (receiver) ex3〇〇 or the transponder (STB) ex217 The device will decode the bit stream and regenerate it. Further, the image decoding device shown in the above embodiment may be mounted in the reader/writer ex218. The reader/recorder ex2丨8 reads the recording medium such as CD and DVD recorded on the recording medium with the image data of 215 and 216, and the bit stream of the multiplexed voice data or Decoder. At this time, the image signal reproduced by the household can be displayed on the monitor ex219. Further, the image decoding device may be attached to the transponder ex2_ connected to the antenna ex2G4 of the L2〇h satellite/ground wave for cable television, and the image is reproduced by the monitor 19 of the electric device. Composition. At this point, the image decoding body can also be mounted to the TV - not to the transponder 1. Further, in the car ex210 having the antenna eX2〇5, it is also possible to receive the speech from the satellite ex2〇2 or the base station or the like and reproduce the moving image in a display device such as the ex: 211 provided in the car ex21G. 58 201138477 Further, the image decoding device or the image encoding device shown in the above embodiment may be attached to the reader/writer ex218. The reader/recorder ex218 reads and decodes the voice data, the image data, or the encoded bit stream of the recording medium ex215 that has been recorded to the DVD, BD, etc. (7) recording medium ex215, or The voice data, the video data, or the data is encoded as multiplexed data and recorded to the recording medium ex215. At this time, the reproduced image signal can be displayed on the monitor ex219. Further, by recording the recording medium ex215 of the encoded bit stream, other devices and systems can reproduce the video signal. For example, the other reproduction device ex212 can reproduce the video signal to the monitor ex213 using the recording medium ex214 in which the encoded bit stream is copied. Alternatively, the image decoding apparatus may be mounted in a transponder ex217 connected to the cable ex203 for cable television or the antenna ex204 for satellite/ground broadcasting, and displayed on the monitor ex219 of the television. At this time, the image decoding device can be mounted to the television instead of the transponder one. Fig. 30 is a view showing a television (receiver) ex300 using the image decoding method and the image coding method described in the above embodiment. The television ex300 includes a tuner ex301 that acquires or outputs a bit stream of video information by receiving the antenna ex204 or the cable ex203 that is being played, and the modulation/demodulation unit ex302 decodes the received encoded data. Tuning, or, for transmitting the generated encoded data to the outside, and multiplexing/demultiplexing, ex303, to demodulate the demodulated image data and voice data, or The multiplexed image data and voice data are multiplexed. Further, the television ex300 includes a signal processing unit ex306, which has a voice signal processing unit ex3〇4 and a scene signal processing unit that decodes the voice data and the video data, respectively, or encodes each of the funds 59 201138477. Ex305; and the output unit is 3〇9, which is a display unit ex such as a display having a decoded voice signal output, and a display unit ex such that a decoded video signal is displayed. Further, the television set has an interface ex317' which has an operation input unit 6X312 for receiving a user operation. Further, the television set 300 has a control unit eX31 for controlling the respective units and a power supply circuit unit ex311 that supplies power to each unit. The interface portion 317 may have a bridge ex313 connected to an external device such as the reader/recorder 6X218, an SD card, etc., in addition to the operation of the wheel portion. The slot ex3i4 of the recorded media ex2i6, the driver ex315 connected to an external recording medium such as a hard disk, and the data processor 6?&quot;316 connected to the telephone network. However, the recording media technology 216 can perform electronic information recorders by storing non-electrical/electrical semiconductor recording elements. Each part of the television ex300 is connected to each other through a synchronous bus. First, the configuration in which the television ex300 reproduces the poems obtained from the outside through the antenna ex2〇4 or the like is described. The television ex3GG receives the user operation from the remote controller ex220, etc., according to the control of the control unit J〇Pex310 having cpu, etc., and the multiplexer/demultiplexing unit will use the modulation/demodulation unit ex302 at 3〇3. The demodulated image data or voice data is demultiplexed. Further, the television ex300 decodes the demultiplexed voice data by the voice signal processing unit by 3〇4, and uses the decoding method described in the above embodiment to use the decoding method described in the above embodiment. The image data of Xie Duowei is decoded. The decoded voice signal and video signal are respectively rotated outward from the output unit ex3〇9. In order to synchronize the voice signal and the video signal during the output, 60 201138477 temporarily accumulates the signal to the buffer to 318, 6) (319 etc. In addition, the TV ex300 can also be from the magnetic gas / CD, SD card The recording medium is read by a coded bit stream of 215, ex216 instead of playing, etc. Next, it is explained that the television ex300 encodes the voice signal and the video signal, and transmits it to the outside or writes it. The composition of the recording medium 4. The television receives the user operation from the remote controller ex220 and the like by 3, and encodes the voice signal by the voice signal processing unit ex3〇4 according to the control of the control unit ex31, and processes the image signal by the video signal. The part ex305' encodes the video signal using the encoding method described in the above embodiment. The encoded voice signal and the video signal are multiplexed by the multiplex/demultiplexing unit ex303 and output to the outside. The signal is synchronized with the image sfl number, and the signals may be temporarily accumulated in the buffers ex320, ex321, etc., and as shown, the buffers ex318 to ex321 may be provided in plurality, or may be shared In addition to the display, for example, between the modulation/demodulation unit ex3〇2 and the multiplex/demultiplexing unit ex303, data may be accumulated in the buffer as In addition to the acquisition of voice data and video data from playback and recording media, the ex300 of the TV can also be configured to receive the input of the microphone and the camera. The data obtained is subjected to encoding processing, etc. Here, although the television ex300 is described as a configuration that can achieve the above-described encoding processing, multiplexing, and external output, it may be impossible to perform all of the processing. Only the configuration of the above-described reception, decoding processing, and external output can be achieved. Further, when the reader/recorder ex218 reads or writes the encoded 61 201138477 bit stream from the recording medium, the above decoding processing or editing The drinking process can be optionally performed between the television ex. and the reader/recorder ex218. Alternatively, the television T can be shared by the television ex300 and the reader/recorder ex218. When the resource information, the first 31δ) Display read or write data from the CD reproducing constituting / recording unit of eX_. The information reproduction/recording department has the following. The element of the moon ex4Gl ex4G7. The optical head ex4Qi irradiates the laser spot to the recording surface of the recording medium 5 of the optical disc to write information, and (4) the reflected light from the recording surface of the recording medium ex215, and reads the information. The modulation recording unit ex402 electrically drives the semiconductor laser built in the optical head ex4〇1, and performs modulation of the laser light in accordance with the recorded data. The reproduction demodulation unit ex4()3 expands the reproduction signal from which the reflected light from the recording surface is electrically detected by the optical detector of the optical magnetic (4), and the signal component recorded in the recording medium ex215 The information needed to solve the problem of multi-guard, demodulation, and regeneration. The buffer ex4〇4 temporarily holds the information for recording to the recording medium ex215, and the information reproduced from the recording medium technology 215. The disk motor ex405 can rotate the recording medium at 215. The servo control unit ex406 controls the rotational driving of the disk motor ex405, moves the optical head ex401 to a predetermined information track, and performs tracking processing of the laser spot. The system control unit ex407 performs overall control of the information reproduction/recording unit ex4. The processing of the above-mentioned s purchase and writing is realized by the system control unit ex407 generating and adding new information as necessary, and using the various information held in the buffer ex4〇4, and making the modulation recording unit necessary. The ex4〇2, the reproduction demodulation unit ex403, and the servo control unit ex4〇6 coordinate the operation to perform recording and reproduction of information through the optical head ex401. For example, the system control unit ex4〇7 is configured by a microprocessor of 62 201138477, and executes such processing so as to execute a program for reading and writing. Although the optical head ex401 has been described as an irradiation laser spot as described above, it is also possible to use a near-field light to perform high-density recording. Fig. 32 is a view showing the recording medium ex215 of the optical disc. On the recording surface of the recording medium ex215, a race (groove) is formed in a spiral manner, and the information track ex230 is changed in advance according to the shape of the groove, and an address indicating the absolute position on the disk is recorded. News. The address information includes information for specifying the location of the block (the unit of recorded data) ex231, and the device for performing recording and reproduction can record the block by reproducing the information track ex230 and reading the address information. Further, the recording medium ex215 includes a data recording area ex233, an inner area ex232, and a peripheral area ex234. The area used to record the user data is the data recording area ex233, and the inner area ex232 and the outer area ex234 disposed in the inner or outer periphery of the data recording area ex233 are used in addition to the recording of the user data. Use. The information reproducing/recording unit ex400 reads and writes the encoded voice data and video data or the encoded data of the multiplexed data in the data recording area ex233 of the recording medium ex215. Although a single optical disc such as a DVD or a BD has been exemplified above, it is not limited to these, and may be a multi-layered structure and a disc which can be recorded outside the surface. Further, it is also possible to perform a multi-dimensional recording/reproduction structure of the optical disc, for example, at the same place of the magnetic disc, recording information with various kinds of different wavelengths of color light, or recording different information layers from various angles. Further, in the digital broadcasting system ex200, data can be received from the satellite ex202 or the like in the car ex210 having the antenna ex205 63 201138477, and the moving image can be reproduced to the car navigation provided in the car ex210 on the display device such as 211. . The configuration of the car navigation ex211 is a configuration in which the GPS receiving unit is added to the configuration shown in the third drawing, and the computer 6) (111 and the mobile phone may have the same configuration with 114, etc.) 'The above mobile phone exll4# The terminal is the same as the television ex300. In addition to the transmission and reception type terminals of both the encoder and the decoder, there are three types of installations, such as a transmission terminal having only an encoder and a receiving terminal having only a decoder. The image encoding method or the image decoding method shown in the above embodiment can be used in the above-described optional device and system, whereby the effects described in the above embodiments can be obtained. It is not limited to the above-described embodiments, and various modifications and corrections can be made without departing from the scope of the invention. (Embodiment 3) The image encoding method and apparatus, image decoding method and apparatus shown in each of the above embodiments, Typically, it can be implemented in an LSI of an integrated circuit. For example, Figure 33 shows the configuration of a single-wafered LSI ex5. The LSI ex500 has the following elements. Ex5〇1~ex5〇9, each element is connected through the bus bar ex51〇. The power supply circuit unit ex5〇5 supplies power to each unit when the power is turned on, thereby starting the operation state. For example, 'execution coding At the time of processing, the LSIex5 is based on the control unit ex5G1 with CPUex502's memory controller with 5〇3, and the stream controller to find 5〇4, etc., with AVI/〇ex5()9j^ microphone Receive the Av signal by 117 and camera exll3, etc. The signal of the input will temporarily accumulate in the memory of external memory such as SDRAM at 511. According to the control of the control unit ex5〇l, the accumulated data will be processed according to the processing amount. And the processing speed is appropriately divided into a plurality of times and then transmitted to the signal processing unit ex5〇7. The signal processing unit ex5〇7 performs encoding of the voice signal and/or encoding of the video signal. Here, the encoding process of the video signal is The encoding process described in the above embodiment. Further, in the signal processing unit ex5〇7, the multiplexed processing of the encoded voice data and the encoded video data is performed as appropriate, and the stream I/ is streamed. Oex506 Output to the outside. The output bit stream will be transmitted to the base station exl07 or write to the recording medium ex215. However, in order to achieve synchronization, the data can be temporarily accumulated in the buffer ex5〇8. When the decoding process is executed, the LSI ex500 temporarily stores the coded data obtained by the stream I/0ex5〇6 through the base station ex丨〇7 or the coded data read from the recording medium ex215 under the control of the control unit ex501, and temporarily stores the coded data in the memory. In the control of the control unit ex5〇i, the accumulated data can be appropriately divided into a plurality of times in accordance with the processing amount and the processing speed, and then transmitted to the signal processing unit ex507. The signal processing unit ex5〇7 performs decoding of the voice data and/or decoding of the video data. Here, the decoding process of the video signal is the decoding process described in the above embodiment. In addition, depending on the situation, in order to synchronize the decoded voice signal and the decoded video signal, the respective signals may be temporarily accumulated in the buffer ex5〇8 and the like. The decoded round-trip signal can be output from each of the output units such as the mobile phone exll4, the game machine exll5, and the television ex3〇0 through the memory ex511 or the like as appropriate. In the above, the memory ex511 is described as an external configuration of the LSI ex500. However, the configuration may be included in the LSI ex500. Buffer 65 201138477 ex508 is also not limited to a single one, but may also have a complex buffer. Further, the LSI ex5 〇 0 can be single-wafered or can be multi-wafered. The term "LSI" is used herein, but may be referred to as 1C, system LSI, Super LSI, or Ultra LSI depending on the degree of integration. Further, the method of integrating the circuit is not limited to the LSI, and can be implemented in a dedicated circuit or a general-purpose processor. After the LSI is manufactured, a programmable FPGA (Field Programmable Gate Array) or a reconfigurable processor that can be connected and set by a circuit cell in a reconfigurable LSI can be used. In addition, if there is a technology that replaces the LSI's integrated circuitization due to advances in semiconductor technology or other technologies derived from it, it is a matter of course, and it is also possible to use the technology to perform the integration of functional blocks. It may also be applicable to applications in biotechnology. Although the coding method, the coding apparatus, the decoding method, and the decoding apparatus of the present invention have been described above based on the embodiments, the present invention is not limited to the embodiments. Other aspects that can be applied to the embodiments of the present invention and the constituent elements and steps of the different embodiments are combined without departing from the scope of the present invention. It is intended to be included within the scope of the invention. INDUSTRIAL APPLICABILITY The image decoding method and the image encoding method of the present invention have an effect of reducing the number of codes of a coded stream, and can be applied to, for example, an image decoding device, an image encoding device, a video camera, and a reproducing device. A mobile phone with a dynamic image reproduction function, and a personal computer. 66 201138477 [Simple description of the diagram] Figure 1 shows a graph of the inverse quantized values adjusted by the quantized horizontal offset value. Fig. 2A is a block diagram showing the configuration of an image decoding apparatus in the first embodiment of the present invention. Fig. 2B is a flow chart showing an image decoding method in the first embodiment of the present invention. Fig. 3A is a block diagram showing the configuration of an image coding apparatus in the first embodiment of the present invention. Fig. 3B is a flow chart showing an image encoding method in the first embodiment of the present invention. Fig. 4 is a block diagram showing an example of a detailed configuration of an image decoding apparatus in the first embodiment of the present invention. Fig. 5 is a block diagram showing an example of a detailed configuration of an image coding apparatus in the first embodiment of the present invention. Fig. 6A is a view showing the construction of a sequence header in the first embodiment of the present invention. Fig. 6B is a view showing the construction of a picture header in the first embodiment of the present invention. Fig. 7 is a view showing the configuration of an offset parameter set in the first embodiment of the present invention. Fig. 8 is a flow chart showing the process of decoding the quantization offset matrix in the first embodiment of the present invention. Fig. 9 is a flow chart showing the processing of encoding the quantization offset 67 201138477 matrix in the first embodiment of the present invention. Fig. 10 is a flow chart showing the process of calculating a new quantization offset matrix corresponding to one conversion block in the first embodiment of the present invention. Fig. 11 is a flow chart showing the process of calculating and writing an offset parameter corresponding to one conversion block in the first embodiment of the present invention. Fig. 12 is a flowchart showing a process in which the image decoding apparatus analyzes the written offset update parameter by the first update method in the first embodiment of the present invention. Figure 13 is a flowchart showing a process in which the image decoding apparatus calculates the quantization offset value by the first updating method in the first embodiment of the present invention. Fig. 14 is a flowchart showing a process of calculating the δ offset value of the offset update parameter by the first updating method in the first embodiment of the present invention. Fig. 15 is a flowchart showing the process of the image encoding apparatus writing the offset update parameter into the header by the first updating method in the first embodiment of the present invention. Figure 16 is a flowchart showing a process in which the image decoding device calculates the quantization offset value by the second updating method in the first embodiment of the present invention. Figure 17 is a diagram showing the image encoding apparatus according to the first embodiment of the present invention. &lt;5 Flowchart of the process of writing the offset value to the header. Fig. 18 is a flowchart showing a process of adjusting the inverse quantized value by the quantization offset value by the inverse quantization unit of the image decoding device and the inverse quantization unit of the image coding device according to the first embodiment of the present invention. Fig. 19 is a view showing the configuration of the offset parameter set in the first modification of the first embodiment of the present invention. 68 201138477 Fig. 20 is a flowchart showing a process of calculating a new quantization offset matrix corresponding to one conversion block in the first modification of the first embodiment of the present invention. Fig. 21 is a flowchart showing a process of calculating and writing an offset parameter corresponding to one conversion block in the first modification of the first embodiment of the present invention. Fig. 22 is a view showing the configuration of the offset parameter set in the second modification of the first embodiment of the present invention. Figure 23 is a flowchart showing the process of analyzing the offset update parameter by the image decoding device in the second modification of the first embodiment of the present invention. Fig. 24 is a flowchart showing the processing of the image decoding device specific matrix in the second modification of the first embodiment of the present invention. Figure 25 is a flowchart showing a process in which the image encoding device writes the offset update parameter into the header in the second modification of the first embodiment of the present invention. Fig. 26 is a view showing an example of the overall configuration of a content supply system that realizes a content delivery service. Figure 27 shows a diagram of the appearance of the phone. Figure 28 is a block diagram showing a configuration example of a mobile phone. Fig. 29 is a schematic view showing an example of the overall configuration of the digital broadcasting system. Figure 30 is a block diagram showing a configuration example of a television set. Fig. 3 is a block diagram showing an example of the configuration of an information reproduction recording unit that performs reading and writing of information on a disc recording medium. Fig. 32 is a view showing a configuration example of a disc recording medium. Fig. 33 is a block diagram showing an example of the configuration of an integrated circuit for realizing the image encoding method and the image decoding method of the respective embodiments. 69 201138477 [Description of main component symbols] Bu··Image decoding device 2··Image encoding device 10...flag analysis unit 11...determination unit 12...quantization offset matrix calculation unit 13...inverse quantization decoding unit 20...determination Part 21...flag writing unit 22...offset update parameter calculation unit 23...parameter writing unit 24··quantization coding unit 1000...image decoding device 1500...offset parameter analysis unit 1502...quantization offset value calculation unit 1504...quantization offset value storage unit 1506...first memory unit 1508...inverse quantization unit 1510...inverse conversion unit 1512...sample recombination unit 1514...sample prediction unit 1516...second memory unit 1600...offset parameter calculation unit 1602 ...offset parameter writing unit 70 201138477 1604...first memory unit 1606...subtracting unit 1608...converting unit 1610...quantizing unit 1612...inverse quantization unit 1614...inverse conversion unit 1616...sample prediction unit 1618...second memory unit 1620.·.Addition Department 2000...Image Encoding Device

Qss…量化比例階大小 D100…偏移更新旗標 D102···偏移更新參數 D104…更新種類識別符 D106…第1修正參數 D108..·第2修正參數 D110…5偏移值之數量 D112、D114…δ偏移值 D116···量化偏移值 D302、D308…更新偏移參數旗標 D304、D310···偏移更新分母 D306、D312.··偏移參數集 D1501…標頭 D1501a···序列標頭 71 201138477 D1501b· ••圖片標頭 D1503.. •偏移參數 D1505·· •新量化偏移值 D1509.. •量化偏移值 D1511·· •新量化偏移值 D1513·· •編碼塊 D1515&quot; •逆量化值 D1517.. •解碼殘差 D1519&quot; •重組塊 D1521·· •預測樣本 D1523·· •參考圖像 D1607·· •新量化偏移值 D1609.· •非壓縮塊 D1611·· •殘差塊 D1613&quot; •係數塊 D1615&quot; •預測樣本 D1619&quot; •逆量化值 D1621·· •編碼塊 D1623.. •參考圖像 D1625·· •重組塊 D1627·. •重組殘差塊 D1700.· •偏移參數集 D1701·· •偏移更新旗標 D1702.· •偏移參數 201138477 D1703…偏移更新參數 D1704…第1修正參數 D1706…第2修正參數 D1708··· δ偏移值之數量 D1710…(5偏移值 D1800…偏移參數集 D1801…偏移更新旗標 D1802…偏移參數 D1803…偏移更新參數 D1804…矩陣識別符 D1806…第1修正參數 D1808…第2修正參數 D1810…5偏移值之數量 D1812…δ偏移值 S10〜S14…步驟 S20〜S26…步驟 S400、S402、S404、S406、S408…步驟 S500、S502、S504、S508、S510…步驟 S600、S601、S602、S604、S606、S608、S610、S612、S614、 S616&quot;♦步驟 S700、S7(H、S702、S704、S706、S708、S710、S712、S716 …步驟 S800、S802、S806、S808、S810、S812…步驟 S900、S902、S904、S906、S908、S910、S912…步驟 73 201138477 S1000、S1004、S1006、S1008、S1012·..步驟 S1100、S1102、S1104、S1106、S1108、S1110、S1112、S1114 …步驟 S1200、S1202、S1204、S1206、S1208、S1210.··步驟 S1300、S1302、S1304、S1306、S1308、S1310.··步驟 S1400、S1402、S1404、S1406、S1408..·步驟 S1900、S1902、S1904、S1906…步驟 S2000、S2002、S2004、S2006…步驟 S2100、S2102、S2104、S2106、S2108…步驟 S2200、S2202、S2204、S2206、S2208、S2210…步驟 S2300、S2302、S2304、S2306、S2308..·步驟 exlOO···内容供給系統 exlOl···網際網路 ex 102…網際網路服務提供者 exl03···串流伺服器 exl04._·電話網 exl06、exl07、exl08、exl09、exllO...基地台 exm···電腦Qss...quantization scale order size D100...offset update flag D102···offset update parameter D104...update type identifier D106...first correction parameter D108..·second correction parameter D110...5 number of offset values D112 , D114...δ offset value D116···quantization offset value D302, D308...update offset parameter flag D304, D310···offset update denominator D306, D312.··offset parameter set D1501...header D1501a ···Sequence header 71 201138477 D1501b· •• Picture header D1503.. • Offset parameter D1505·· • New quantized offset value D1509.. • Quantization offset value D1511·· • New quantized offset value D1513· · • Encoding block D1515&quot; • Inverse quantized value D1517.. • Decode residual D1519&quot; • Reassembly block D1521·· • Prediction sample D1523·· • Reference image D1607·· • New quantized offset value D1609.· • Uncompressed Block D1611·· • Residual block D1613&quot; • Coefficient block D1615&quot; • Prediction sample D1619&quot; • Inverse quantized value D1621·· • Code block D1623.. • Reference image D1625·· • Reassembly block D1627·. • Recombination residual Block D1700.· • Offset parameters D1701·· • Offset update flag D1702. • Offset parameter 201138477 D1703... Offset update parameter D1704... First correction parameter D1706... Second correction parameter D1708··· Number of δ offset values D1710... (5 partial Shift value D1800...offset parameter set D1801...offset update flag D1802...offset parameter D1803...offset update parameter D1804...matrix identifier D1806...first correction parameter D1808...second correction parameter D1810...5 offset value Number D1812...δ offset value S10~S14...Steps S20~S26...Steps S400, S402, S404, S406, S408...Steps S500, S502, S504, S508, S510...Steps S600, S601, S602, S604, S606, S608 , S610, S612, S614, S616 &quot; ♦ steps S700, S7 (H, S702, S704, S706, S708, S710, S712, S716 ... steps S800, S802, S806, S808, S810, S812... steps S900, S902, S904 Steps S1100, S1102, S1104, S1106, S1108, S1110, S1112, S1114, steps S1200, S1202, S1204, S1206, S1208, S1210.··Step S1300 S1302, S1304, S1306, S1308, S1310. Step S1400, S1402, S1404, S1406, S1408.. Step S1900, S1902, S1904, S1906... Steps S2000, S2002, S2004, S2006... Steps S2100, S2102, S2104 S2106, S2108...Steps S2200, S2202, S2204, S2206, S2208, S2210...Steps S2300, S2302, S2304, S2306, S2308..·Step exlOO···Content supply system exlOl···Internet ex 102...Internet Internet service provider exl03···Streaming server exl04._·Telephone network exl06, exl07, exl08, exl09, exllO... base station exm···computer

exl 12---PDA exll3、exll6···照相機 exll4···附照相機數位手機(手機) exll5…遊戲機 exl 17···麥克風 ex200…數位播放用系統 74 201138477 ex201···播放局 ex202…播放衛星(衛星) ex203···電纜 ex204、ex205、ex601··.天線 ex210…車 ex211…汽車導航(Car Navi) ex212…再生裝置 ex213、ex219···監視器 ex214、ex215、ex216、ex607…記錄媒體 ex217…轉頻器(STB) ex218…讀取機/記錄器 ex220…遠程控制器 ex230…資訊磁執 ex23卜··記錄區塊 ex232…内圍區域 ex233…資料記錄區域 ex234…外圍區域 ex300···電視機 ex301···調諧器 ex302···調變/解調部 ex303···多工/解多工部 ex304…語音訊號處理部 ex3 05…影像訊號處理部 ex306、ex507…訊號處理部 75 201138477 6乂307...°刺〇八 ex308、ex602.&quot;顯示部 ex309···輸出部 ex310、ex501·.·控制部 ex311、ex505、ex710…電源電路部 ex312…操作輸入部 x313…橋接器 ex314、ex606···插槽部 ex315…驅動器 ex316…數據機 ex317···介面部 ex318、ex319、ex320、ex321、ex404、ex508…緩衝器 ex400…資訊再生/記錄部 ex401…光學磁頭 ex402…調變記錄部 ex403…再生解調部 ex405…磁碟馬達 ex406…祠服控制部 ex407…系統控制部Exl 12---PDA exll3, exll6···camera exll4···with camera digital mobile phone (mobile phone) exll5...game machine exl 17···microphone ex200...digital playback system 74 201138477 ex201···playing bureau ex202... Play satellite (satellite) ex203···cables ex204, ex205, ex601·. antenna ex210...car ex211...car navigation (Car Navi) ex212...reproduction device ex213, ex219···monitor ex214, ex215, ex216, ex607... Recording medium ex217...Turner (STB) ex218...Reader/recorder ex220...Remote controller ex230...Information magnetic execution ex23 Bu·· Recording block ex232... Inner area ex233... Data recording area ex234... Peripheral area ex300 ··············································································· Processing unit 75 201138477 6乂307...°Hedgehog eight ex308, ex602.&quot; Display unit ex309···output unit ex310, ex501·.. control unit ex311, ex505, ex710...power supply circuit unit ex312...operation input unit X313...bridge ex314, ex 606···Slot part ex315...driver ex316...data machine ex317···face ex318, ex319, ex320, ex321, ex404, ex508...buffer ex400...information reproduction/recording unit ex401...optical head ex402...modulation recording Part ex403...reproduction demodulation unit ex405...disk motor ex406...service control unit ex407...system control unit

ex500---LSIEx500---LSI

ex502 …CPU ex503…記憶體控制器 ex504…串流控制器Ex502 ...CPU ex503...memory controller ex504...stream controller

ex506…串流I/O 76 201138477Ex506...Streaming I/O 76 201138477

ex509.&quot;AVI/O ex510···匯流排 ex603···照相機部 ex604···操作鍵 ex605···語音輸入部 ex608···語音輸出部 ex701···接收傳送電路部 ex702.&quot;LCD控制部 ex703…照相機介面部(照相機I/F部) ex704…操作輸入控制部 ex705···語音處理部 ex706···調變解調電路部 ex707…記錄再生部 ex708…解多工部 ex709···圖像解碼部 ex711···主控制部 ex712…圖像編碼部 ex713···同步匯流排 77Ex509.&quot;AVI/O ex510··· busbar ex603···camera unit ex604···operation key ex605···voice input unit ex608···voice output unit ex701···received transmission circuit unit ex702.&quot LCD control unit ex703...camera interface (camera I/F unit) ex704...operation input control unit ex705···voice processing unit ex706···modulation demodulation circuit unit ex707...recording/reproduction unit ex708...demultiplexing unit Ex709···Image decoding unit ex711··· main control unit ex712...image encoding unit ex713···synchronous bus bar 77

Claims (1)

201138477 七、申請專利範圍: 1. 一種圖像解碼方法,係將含於編碼串流之編碼圖像予以 解碼者,其具有下述處理: 解析出前述編碼串流所含之標頭内所具有的偏移 更新旗標; 對所解析出之前述偏移更新旗標是否顯示預先所 設定之值進行判定; 當判定為所解析出之前述偏移更新旗標是顯示預 先所設定之值時,使用前述標頭所含之偏移更新參數, 將適用於前述編碼圖像之量化偏移矩陣予以算出; 使用所算出之前述量化偏移矩陣,對前述編碼圖像 執行逆量化,藉此解碼前述編碼圖像。 2. 如申請專利範圍第1項之圖像解碼方法,其中前述標頭 含有顯示前述量化偏移矩陣之更新方法的更新種類識 別符, 於算出前述量化偏移矩陣時,係解析出前述標頭所 含之前述更新種類識別符,且依照由所解析出之前述更 新種類識別符所示之更新方法,算出前述量化偏移矩 陣。 3. 如申請專利範圍第1項之圖像解碼方法,其中於算出前 述量化偏移矩陣時, 係對已儲存在記憶體之其他量化偏移矩陣適用前 述偏移更新參數,藉此將算出對象的量化偏移矩陣予以 算出。 78 201138477 4. 如申請專利範圍第3項之圖像解碼方法,其中於算出前 述量化偏移矩陣時, 係將上一個算出之量化偏移矩陣作為前述其他量 化偏移矩陣,而適用前述偏移更新參數。 5. 如申請專利範圍第3項之圖像解碼方法,其中前述標頭 含有用以特定前述其他量化偏移矩陣之矩陣識別符, 於算出前述量化偏移矩陣時,係解析出前述標頭所 含之前述矩陣識別符,且從前述記憶體,檢索由所解析 出之前述矩陣識別符所識別的前述其他量化偏移矩陣。 6. 如申請專利範圍第3項之圖像解碼方法,其中於前述標 頭含有第1及第2修正參數、與5偏移(Delta offset)值, 該(5偏移值係對應於算出對象的量化偏移矩陣中所含 之各元素者, 於算出前述量化偏移矩陣時,係依據前述標頭中所 含之前述第1及第2修正參數,算出第1及第2係數, 並就每一個作為前述其他量化偏移矩陣之元素的 既知量化偏移值, 將第1係數乘於該既知量化偏移值,藉此算出第1 值, 將第2係數乘於該既知量化偏移值與固定值之差 分,藉此算出第2值, 將前述第1值與前述第2值相加,藉此算出預測量化 偏移值, 將前述預測量化偏移值加上與前述算出對象之前 79 201138477 述量化偏移矩陣之元素相對應的前述δ偏移值,藉此算 出作為前述元素之量化偏移值。 7.如申請專利範圍第6項之圖像解碼方法,其中前述標頭 中更含有偏移更新分母, 、 於算出前述第1係數時,係將前述第丨修正參數加上 別述偏移更新分母,且將由前述加法所得之值除以前述 偏移更新分母,藉此算出前述第1係數。 8·如申請專利範圍第7項之圖像解碼方法,其中於算出前 述第2係數時,係將前述第2修正參數除㈣述偏移更新 分母,藉此算出前述第2係數。 9. 如申請專利範圍第6項之輯解碼方法,其中前述固定 值係對算出對象的量化偏移矩陣預先設定之值。 1〇.如申請專利範圍第6項之圖像解碼方法,其中前述固定 值係作為元素而含於前述其他量化偏移矩陣、且位在對 應於直流成分之位置的量化偏移值。 η.如申請專利範圍第6項之圖像解碼方法,其中前述固定 值係作為元素而含於前述其他量化偏移矩陣之複數量 化偏移值之平均值。 Π.如申請專利範圍第!項之圖像解碼方法,其中前述偏移 更新參數中含有複數_值,該複數_值係顯示 複數量化偏移值之_差分,該複數量化偏移值係算出 對象的量化偏移矩陣之元素, 於算出前述量化偏移矩㈣,係重複下述處理:將 前述複㈣偏移值當中的其中――偏移值,加上該量 80 201138477 化偏移矩陣内已算出之量化偏移值,藉此算出新量化偏 移值。 13. 如申請專利範圍第1項之圖像解碼方法,其中在前述偏 移更新參數中僅含有一個作為單一量化偏移值的量化 偏移值,該量化偏移值係算出對象的量化偏移矩陣之元 素; 於算出前述量化偏移矩陣時,係對算出對象之量化 偏移矩陣中所含的所有元素,設定前述偏移更新參數中 所含的前述單一量化偏移值。 14. 一種圖像編碼方法,係將圖像資料予以編碼,藉此生成 編碼串流者,其具有下述處理: 判定是否應更新量化偏移矩陣; 將顯示前述判定之結果的偏移更新旗標寫入前述 編碼串流之標頭; 當於前述判定中判定為應更新時,依據更新後的新 量化偏移矩陣,算出偏移更新參數; 將前述偏移更新參數寫入前述標頭; 使用前述新量化偏移矩陣,對前述圖像資料執行量 化,藉此將前述圖像資料予以編碼。 15. —種圖像解碼裝置,係將編碼串流中所含之編碼圖像予 以顯示解碼者,其具備: 旗標解析部,係解析出前述編碼串流所含之標頭内 所具有的偏移更新旗標者; 判定部,係對所解析出之前述偏移更新旗標是否顯 81 201138477 示預先所設定之值進行判定者; 量化偏移矩陣算出部,係當判定為所解析出之前述 偏移更新旗標是顯示預先所設定之值時,使用前述標頭 所含之偏移更新參數,將適用於前述編碼圖像之量化偏 移矩陣予以算出者;及 逆量化解碼部,係使用所算出之前述量化偏移矩 陣,對前述編碼圖像執行逆量化,藉此解碼前述編碼圖 像者。 16. —種圖像編碼裝置,係將圖像資料予以編碼,藉此生成 編碼串流者,其具備: 判定部,係判定是否應更新量化偏移矩陣者; 旗標寫入部,係將顯示前述判定之結果的偏移更新 旗標寫入前述編碼串流之標頭者; 偏移更新參數算出部,係於前述判定中判定為應更 新時,依據更新後的新量化偏移矩陣,算出偏移更新參 數者; 參數寫入部,係將前述偏移更新參數寫入前述標頭 者;及 量化編碼部,係使用前述新量化偏移矩陣,對前述 圖像資料執行量化,藉此將前述圖像資料予以編碼者。 17. —種使電腦執行下述處理而將編碼圖像予以解碼的程 式,係用以將含於編碼串流之編碼圖像予以解碼者,前 述處理包含: 解析出前述編碼串流所含之標頭内所具有的偏移 82 201138477 更新旗標; 對所解析出之前述偏移更新旗標是否顯示預先所 設定之值進行判定; 當判定為所解析出之前述偏移更新旗標是顯示預 先所設定之值時,使用前述標頭所含之偏移更新參數, 將適用於前述編碼圖像之量化偏移矩陣予以算出; 使用所算出之前述量化偏移矩陣,對前述編碼圖像 執行逆量化,藉此解碼前述編碼圖像。 18. —種使電腦執行下述處理而將圖像資料予以編碼的程 式,係用以將圖像資料予以編碼而生成編碼串流者,前 述處理包含: 判定是否應更新量化偏移矩陣; 將顯示前述判定之結果的偏移更新旗標寫入前述 編碼串流之標頭; 當於前述判定中判定出應更新時,依據更新後的新 量化偏移矩陣,算出偏移更新參數; 將前述偏移更新參數寫入前述標頭; 使用前述新量化偏移矩陣,對前述圖像資料執行量 化,藉此將前述圖像資料予以編碼。 19. 一種積體電路,係將含於編碼串流之編碼圖像予以顯示 解碼者,其具備: 旗標解析部,係解析出前述編碼串流所含之標頭内 所具有的偏移更新旗標者; 判定部,係對所解析出之前述偏移更新旗標是否顯 83 201138477 示預先所設定之值進行判定者; 量化偏移矩陣算出部,係當判定為所解析出之前述 偏移更新旗標是顯示預先所設定之值時,使用前述標頭 所含之偏移更新參數,將適用於前述編碼圖像之量化偏 移矩陣予以算出者;及 逆量化解碼部,係使用所算出之前述量化偏移矩 陣,對前述編碼圖像執行逆量化,藉此解碼前述編碼圖 像者。 20. —種積體電路,係將圖像資料予以編碼,藉此生成編碼 串流者,其具備: 判定部,係判定是否應更新量化偏移矩陣者; 旗標寫入部,係將顯示前述判定之結果的偏移更新 旗標寫入前述編碼串流之標頭者; 偏移更新參數算出部,係於前述判定中判定為應更 新時,依據更新後的新量化偏移矩陣,算出偏移更新參 數者; 參數寫入部,係將前述偏移更新參數寫入前述標頭 者;及 量化編碼部,係使用前述新量化偏移矩陣,對前述 圖像資料執行量化,藉此將前述圖像資料予以編碼者。 84201138477 VII. Patent application scope: 1. An image decoding method for decoding a coded image contained in a coded stream, which has the following processing: parsing out the header included in the code stream Deviating the update flag; determining whether the parsed update flag is displayed by displaying the previously set value; and determining that the parsed offset update flag is displaying the preset value, Calculating a quantization offset matrix applicable to the encoded image by using an offset update parameter included in the foregoing header; performing inverse quantization on the encoded image by using the calculated quantization offset matrix, thereby decoding the foregoing Encode the image. 2. The image decoding method according to claim 1, wherein the header includes an update type identifier indicating an update method of the quantization offset matrix, and the header is parsed when the quantization offset matrix is calculated. The update type identifier is included, and the quantization offset matrix is calculated in accordance with an update method indicated by the updated update type identifier. 3. The image decoding method according to claim 1, wherein when calculating the quantization offset matrix, the offset update parameter is applied to another quantization offset matrix stored in the memory, thereby calculating the object The quantization offset matrix is calculated. 78 201138477 4. The image decoding method according to claim 3, wherein when calculating the quantization offset matrix, the last calculated quantization offset matrix is used as the other quantization offset matrix, and the offset is applied. Update parameters. 5. The image decoding method of claim 3, wherein the header includes a matrix identifier for specifying the other quantization offset matrix, and when the quantization offset matrix is calculated, the header is parsed The matrix identifier is included, and the other quantization offset matrix identified by the parsed matrix identifier is retrieved from the memory. 6. The image decoding method according to claim 3, wherein the header includes first and second correction parameters and a 5 offset (Delta offset) value, wherein the (5 offset value corresponds to the calculation target When calculating each of the elements included in the offset matrix, when calculating the quantization offset matrix, the first and second coefficients are calculated based on the first and second correction parameters included in the header, and Each of the known quantized offset values, which is an element of the other quantization offset matrix, multiplies the first coefficient by the known quantized offset value, thereby calculating a first value, and multiplying the second coefficient by the known quantized offset value The difference between the fixed value and the fixed value is used to calculate the second value, and the first value and the second value are added to calculate a predicted quantized offset value, and the predicted quantized offset value is added before the calculation target. 201138477 describes the aforementioned δ offset value corresponding to the element of the quantization offset matrix, thereby calculating the quantization offset value as the aforementioned element. 7. The image decoding method according to claim 6, wherein the foregoing header is further Contains offset update denominator When calculating the first coefficient, the first coefficient is calculated by adding the offset update denominator to the third correction parameter and dividing the value obtained by the addition by the offset update denominator. The image decoding method according to claim 7, wherein when the second coefficient is calculated, the second coefficient is calculated by dividing the second correction parameter by (4) the offset update denominator. The method of decoding the sixth item of the range, wherein the fixed value is a value set in advance for the quantization offset matrix of the calculation target. [1] The image decoding method according to claim 6, wherein the fixed value is an element. And a quantization offset value included in the other quantization offset matrix and located at a position corresponding to the DC component. η. The image decoding method according to claim 6, wherein the fixed value is included as an element. The average value of the complex quantized offset values of the other quantized offset matrices. The image decoding method of claim [0002], wherein the offset update parameter includes a complex a value_value indicating a _ difference of the complex quantized offset value, wherein the complex quantized offset value is an element of the quantization offset matrix of the object, and the quantization offset moment (4) is calculated, and the following processing is repeated : Calculating the new quantized offset value by adding the offset value to the offset value of the aforementioned complex (four) offset value, and calculating the new quantized offset value. The image decoding method of claim 1, wherein the offset update parameter includes only one quantization offset value as a single quantization offset value, wherein the quantization offset value is an element of the quantization offset matrix of the object; When calculating the quantization offset matrix, the single quantization offset value included in the offset update parameter is set for all elements included in the quantization offset matrix to be calculated. 14. An image encoding method for encoding image data, thereby generating a coded streamer having the following processing: determining whether a quantization offset matrix should be updated; an offset update flag showing a result of the foregoing determination Writing a header of the foregoing encoded stream; when it is determined that the update is to be performed in the foregoing determination, calculating an offset update parameter according to the updated new quantization offset matrix; and writing the offset update parameter to the header; The aforementioned image data is subjected to quantization using the aforementioned new quantization offset matrix, whereby the aforementioned image data is encoded. 15. An image decoding apparatus for displaying a coded image included in a coded stream, comprising: a flag analysis unit that analyzes a header included in the code stream; The offset update flag is used by the determination unit to determine whether the offset update flag is 81 or not, and the predetermined offset value is determined. The quantized offset matrix calculation unit determines that the offset is calculated. When the offset update flag is a value set in advance, the offset update parameter included in the header is used to calculate a quantization offset matrix applicable to the coded image; and an inverse quantization decoding unit is provided. And performing inverse quantization on the encoded image using the calculated quantization offset matrix, thereby decoding the encoded image. 16. An image encoding apparatus that encodes image data to generate a coded streamer, comprising: a determining unit that determines whether a quantization offset matrix should be updated; and a flag writing unit An offset update flag indicating the result of the determination is written in the header of the encoded stream; and an offset update parameter calculation unit is determined based on the updated new quantization offset matrix when it is determined that the update is to be performed in the determination. Calculating the offset update parameter; the parameter writing unit writes the offset update parameter to the header; and the quantization coding unit performs quantization on the image data by using the new quantization offset matrix The aforementioned image data is encoded. 17. A program for causing a computer to perform a process of decoding a coded image for decoding a coded image contained in a coded stream, the process comprising: parsing the encoded stream The offset 82 201138477 update flag in the header; determining whether the parsed update flag is displayed in advance or not; and determining that the offset update flag is displayed When the value is set in advance, the quantization offset parameter applicable to the encoded image is calculated using the offset update parameter included in the header; and the calculated quantization offset matrix is used to perform the encoded image on the encoded image. Inverse quantization, thereby decoding the aforementioned encoded image. 18. A program for causing a computer to perform image processing to encode image data to generate a code stream, the process comprising: determining whether a quantization offset matrix should be updated; An offset update flag indicating the result of the foregoing determination is written into the header of the encoded stream; when it is determined that the update is to be performed in the foregoing determination, the offset update parameter is calculated according to the updated new quantization offset matrix; The offset update parameter is written to the aforementioned header; the aforementioned image data is quantized using the aforementioned new quantized offset matrix, whereby the aforementioned image data is encoded. 19. An integrated circuit for displaying a coded image included in a coded stream, comprising: a flag analysis unit that parses an offset update in a header included in the coded stream; The flag indicating unit determines whether the offset update flag is 83 or not, and determines the value to be set in advance. The quantization offset matrix calculating unit determines that the offset is determined. When the update flag is used to display the value set in advance, the offset update parameter included in the header is used to calculate the quantization offset matrix applicable to the coded image; and the inverse quantization decoding unit is used. The quantization offset matrix is calculated, and inverse quantization is performed on the coded image, thereby decoding the coded image. 20. An integrated circuit for encoding an image data to generate a coded streamer, comprising: a determination unit that determines whether the quantization offset matrix should be updated; and a flag writing unit that displays The offset update flag of the result of the determination is written in the header of the encoded stream; and the offset update parameter calculation unit calculates the updated quantization offset matrix based on the updated new quantization offset matrix when it is determined that the update is to be performed in the determination. a parameter of the offset update parameter; the parameter writing unit writes the offset update parameter to the header; and the quantization coding unit performs quantization on the image data by using the new quantization offset matrix, thereby The aforementioned image data is encoded. 84
TW99137245A 2009-10-30 2010-10-29 Image decoding method, image encoding method, and devices, programs, and integrated circuits therefor TW201138477A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009251514 2009-10-30

Publications (1)

Publication Number Publication Date
TW201138477A true TW201138477A (en) 2011-11-01

Family

ID=43921646

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99137245A TW201138477A (en) 2009-10-30 2010-10-29 Image decoding method, image encoding method, and devices, programs, and integrated circuits therefor

Country Status (2)

Country Link
TW (1) TW201138477A (en)
WO (1) WO2011052213A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10074033B2 (en) * 2016-10-06 2018-09-11 Adobe Systems Incorporated Using labels to track high-frequency offsets for patch-matching algorithms

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06284412A (en) * 1993-03-26 1994-10-07 Sony Corp Picture signal coding method and picture signal coder, picture signal decoding method and picture signal decoder and picture signal recording medium
WO2006007279A2 (en) * 2004-06-18 2006-01-19 Thomson Licensing Method and apparatus for video codec quantization
AU2006338425B2 (en) * 2006-02-13 2010-12-09 Kabushiki Kaisha Toshiba Moving image encoding/decoding method and device and program

Also Published As

Publication number Publication date
WO2011052213A1 (en) 2011-05-05

Similar Documents

Publication Publication Date Title
CN102577387B (en) Decoding method, decoder apparatus, encoding method, and encoder apparatus
KR101680877B1 (en) Image decoding method, image encoding method, image decoding device, image encoding device, programs, and integrated circuits
CN102124741B (en) Video coding method and video coding device
WO2011016246A1 (en) Encoding method, decoding method, encoding device and decoding device
EP2464018A1 (en) Encoding method, decoding method, encoding device and decoding device
TW201246937A (en) Image encoding method, image decoding method, image encoding device, image decoding device, and image encoding/decoding device
CN102365868A (en) Moving image encoding method, moving image decoding method, moving image encoding device, and moving image decoding device
EP2481214A1 (en) Image coding apparatus, image decoding apparatus, image coding method, and image decoding method
CN102420986B (en) Coding method, decoding method, coding apparatus, decoding apparatus, program, and integrated circuit
CN102598661B (en) Image encoding method, image decoding method, image encoding device and image decoding device
JP5499035B2 (en) Image coding method, image coding apparatus, program, and integrated circuit
TW201138477A (en) Image decoding method, image encoding method, and devices, programs, and integrated circuits therefor
AU2011250757B2 (en) Coding method, decoding method, coding apparatus, decoding apparatus, program, and integrated circuit