JP2010136454A - Decoding method, decoding apparatus, program therefor and recording medium - Google Patents

Decoding method, decoding apparatus, program therefor and recording medium Download PDF

Info

Publication number
JP2010136454A
JP2010136454A JP2010049887A JP2010049887A JP2010136454A JP 2010136454 A JP2010136454 A JP 2010136454A JP 2010049887 A JP2010049887 A JP 2010049887A JP 2010049887 A JP2010049887 A JP 2010049887A JP 2010136454 A JP2010136454 A JP 2010136454A
Authority
JP
Japan
Prior art keywords
data
circuit
block
image data
decoding
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2010049887A
Other languages
Japanese (ja)
Inventor
Teruhiko Suzuki
輝彦 鈴木
Kazuhiro Ishitani
和博 石谷
Yoichi Yagasaki
陽一 矢ケ崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2010049887A priority Critical patent/JP2010136454A/en
Publication of JP2010136454A publication Critical patent/JP2010136454A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To appropriately decode a result obtained by encoding non-zero coefficient number data of a transform coefficient obtained by orthogonally transforming image block data in a second block size, that is twice or more the size of a block, on the basis of corresponding relation data suitable for the block size. <P>SOLUTION: An encoded code is acquired which corresponds to a value of final continuous number data indicating the number of transform coefficients, of each of which the absolute value is 1, continued to the end of the transform coefficient obtained by orthogonally transforming image data in an orthogonal transform size. corresponding relation data are selected which indicate a corresponding relation between the value of the final continuous number data indicating the number of transform coefficients, whose absolute value is 1, continued to the end of the transform coefficient obtained by orthogonally transforming the image data in a sub block size smaller than an orthogonal transform size for orthogonally transforming the image data, and the selected corresponding relation data are used to decode the encoded code, thereby producing the final continuous number data. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、直交変換係数を符号化するした結果を復号する復号方法、復号装置およびそのプログラム並びに記録媒体に関する。   The present invention relates to a decoding method, a decoding apparatus, a program thereof, and a recording medium for decoding results obtained by encoding orthogonal transform coefficients.

近年、画像データデジタルとして取り扱い、その際、効率の高い情報の伝送、蓄積を目的とし、画像情報特有の冗長性を利用して、離散コサイン変換等の直交変換と動き補償により圧縮するMPEG(Moving Picture Experts Group)などの方式に準拠した装置が、放送局などの情報配信、及び一般家庭における情報受信の双方において普及しつつある。   In recent years, MPEG (Moving), which is handled as digital image data, is compressed by orthogonal transform such as discrete cosine transform and motion compensation using the redundancy unique to image information for the purpose of efficient transmission and storage of information. A device conforming to a scheme such as Picture Experts Group) is becoming popular in both information distribution in broadcasting stations and information reception in general households.

MPEG2,4方式に続いてMPEG4/AVC(Advanced Video Coding)と呼ばれる符号化方式が提案されている。
MPEG4/AVC方式の符号化装置では、例えば、4x4のブロックサイズのブロックデータを単位として符号化対象の画像データを直交変換し、それによって得られたブロックデータの変換係数のうち非0の変換係数の個数を示す非0係数個数データを、42個の非0係数個数データの値とその符号化コードとの対応関係を各々が規定する複数の対応関係データ(VLCテーブル)を基に可変長符号化する。
ここで、上記複数の対応関係データは、0を示す非0係数個数データのビット長が相互に異なり、0を示す非0係数個数データのビット長が短くなるに従って、当該対応関係データで用いる符号化コードの最大ビット長が長くなるように規定している。
そして、上記符号化装置は、符号化効率を高めるために、符号化対象の4x4ブロックデータの周囲のブロックデータの変換係数のうち0および1以外の変化係数の数が大きくなるに従って、0を示す前記非0係数個数データに長いビット長の符号化コードを割り当てた前記対応関係データを選択する。
Following the MPEG2, 4 system, an encoding system called MPEG4 / AVC (Advanced Video Coding) has been proposed.
In the MPEG4 / AVC encoding apparatus, for example, image data to be encoded is orthogonally converted with block data having a block size of 4 × 4 as a unit, and non-zero conversion coefficients among the conversion coefficients of the block data obtained thereby. variable-length non-zero coefficient quantity data on the basis of the 4 two non-zero coefficient quantity data values and a plurality of correspondence data (VLC table), each defining a correspondence between the encoded code indicating the number of Encode.
Here, the plurality of correspondence data are different from each other in the bit length of the non-zero coefficient number data indicating 0, and the code used in the correspondence data as the bit length of the non-zero coefficient number data indicating 0 becomes shorter The maximum bit length of the encoding code is specified to be long.
Then, the encoding apparatus indicates 0 as the number of change coefficients other than 0 and 1 among the transform coefficients of the block data around the 4 × 4 block data to be encoded increases in order to increase the encoding efficiency. The correspondence data in which an encoded code having a long bit length is assigned to the non-zero coefficient count data is selected.

ところで、上述した符号化装置では、8x8のブロックサイズのブロックデータ(8x8ブロックデータ)を単位として直交変換が行われる場合がある。
しかしながら、上述した従来の対応関係データは、42個の非0係数個数データの値にしか対応しておらず、8x8ブロックデータを直交変換して得られる82の非0係数個数データの符号化コードを得られない。
したがって、好適な符号化処理と、その結果を復号することが望まれている。
By the way, in the encoding apparatus described above, orthogonal transform may be performed in units of block data having a block size of 8 × 8 (8 × 8 block data).
However, the above-described conventional correspondence data only corresponds to the value of 4 2 non-zero coefficient number data, and the code of 8 2 non-zero coefficient number data obtained by orthogonal transformation of 8 × 8 block data. I can't get the code.
Therefore, it is desired to perform a suitable encoding process and decode the result.

本発明はかかる事情に鑑みてなされたものであり、第1のブロックサイズの複数倍の第2のブロックサイズの画像ブロックデータを直交変換して得られた変換係数の非0係数個数データを、前記第1のブロックサイズに適合した対応関係データを基に符号化した結果を、好適に復号する復号方法、復号装置およびそのプログラム並びに記録媒体を提供することを目的とする。   The present invention has been made in view of such circumstances, and non-zero coefficient number data of transform coefficients obtained by orthogonal transform of image block data having a second block size that is a multiple of the first block size, It is an object of the present invention to provide a decoding method, a decoding apparatus, a program thereof, and a recording medium for suitably decoding a result of encoding based on the correspondence data suitable for the first block size.

本発明は、画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得し、画像データを直交変換する際の直交変換サイズより小さいサブブロックサイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択し、選択された対応関係データを用いて符号化コードを復号して前記最後連続個数データを生成する。   The present invention obtains an encoding code corresponding to the value of the last consecutive number data indicating the number of transform coefficients having an absolute value of 1 which is continuous at the end of transform coefficients obtained by orthogonal transform of image data with an orthogonal transform size, and image data Correspondence between the value of the last consecutive number data indicating the number of transform coefficients of absolute value 1 that are consecutive at the end of transform coefficients orthogonally transformed with a sub-block size smaller than the orthogonal transform size when orthogonal transform is performed and the encoding code Is selected, and the encoded code is decoded using the selected correspondence data to generate the last consecutive number data.

本発明によれば、画像データを符号化した符号化画像データを復号する復号装置において、 前記符号化画像データから、前記画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得する取得手段と、 前記画像データを直交変換する際の直交変換サイズより小さいサブブロックサイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択する選択手段と、前記選択手段により選択された対応関係データを用いて、前記取得手段により取得された符号化コードを復号して、前記最後連続個数データを生成する生成手段と、を備える復号装置が提供される。   According to the present invention, in a decoding device that decodes encoded image data obtained by encoding image data, an absolute value that continues from the encoded image data to the end of a transform coefficient obtained by orthogonally transforming the image data with an orthogonal transform size. Acquisition means for acquiring an encoding code corresponding to the value of the last consecutive number data indicating the number of transform coefficients of value 1, and orthogonal transform with a sub-block size smaller than the orthogonal transform size when orthogonally transforming the image data A selection means for selecting correspondence data indicating a correspondence relation between the value of the last consecutive number data indicating the number of conversion coefficients having an absolute value of 1 continuous at the end of the conversion coefficient and the encoded code; and selected by the selection means Generating means for decoding the encoded code acquired by the acquisition means using the correspondence data and generating the last consecutive number data; A decoding device is provided.

好ましくは、復号装置は上記生成手段により生成された最後連続個数データを用いて、前記符号化画像データを復号する復号手段を更に備える。
また好ましくは、前記対応関係データは、前記最後連続個数データのビット長が長くなるのに応じて、前記符号化コードのビット長が長くなるように規定されている。
Preferably, the decoding apparatus further includes decoding means for decoding the encoded image data using the last continuous number data generated by the generating means.
Preferably, the correspondence relationship data is defined such that the bit length of the encoded code becomes longer as the bit length of the last consecutive number data becomes longer.

好ましくは、前記選択手段は、前記サブブロックのサブブロックに含まれる変換係数の数を用いて算出された指標データの値に従って、前記対応関係データを選択する。
また好ましくは、前記選択手段は、前記サブブロックの位置に応じて算出された指標データの値に従って、前記対応関係データを選択する。
好ましくは、前記指標データは、処理対象のブロック内のサブブロックを対象として、前記処理対象のブロックの上に隣接する上ブロックのブロックサイズと前記処理対象のブロックの左に隣接する左ブロックのブロックサイズとが同じ場合に、前記上ブロックと前記左ブロックの同じ位置のサブブロックに対する指標データを用いて算出される。
また好ましくは、前記指標データは、処理対象のブロック内のサブブロックを対象として、前記処理対象のブロックの上に隣接する上ブロックのブロックサイズと前記処理対象のブロックの左に隣接する左ブロックのブロックサイズとが異なる場合に、ブロックサイズが大きいブロック内の同じ位置のサブブロックに対する指標データを用いて算出される。
Preferably, the selection means selects the correspondence data according to the value of the index data calculated using the number of transform coefficients included in the sub-block of the sub-block.
Preferably, the selection unit selects the correspondence data according to the value of the index data calculated according to the position of the sub-block.
Preferably, the index data includes a block size of an upper block adjacent to the block to be processed and a block of a left block adjacent to the left of the block to be processed for a sub-block in the block to be processed. When the sizes are the same, calculation is performed using index data for sub-blocks at the same position in the upper block and the left block.
Preferably, the index data includes a block size of an upper block adjacent to the processing target block and a left block adjacent to the left of the processing target block for a sub-block in the processing target block. When the block size is different, calculation is performed using index data for sub-blocks at the same position in the block having a large block size.

好ましくは、前記処理対象ブロックの指標データ(nC)は下記式によって算出される。
nC=(nA+nB+1)>>1
ただし、nAは前記左ブロック内のサブブロックの指標データであり、
nBは前記上ブロック内のサブブロックの指標データである。
Preferably, the index data (nC) of the processing target block is calculated by the following formula.
nC = (nA + nB + 1) >> 1
However, nA is the index data of the sub-block in the left block,
nB is index data of a sub-block in the upper block.

本発明によれば、画像データを符号化した符号化画像データを復号する復号方法において、前記符号化画像データから、前記画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得する取得工程と、前記画像データを直交変換する際の直交変換サイズより小さいサブブロックサイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択する選択工程と、前記選択工程により選択された対応関係データを用いて、前記取得工程により取得された符号化コードを復号して、前記最後連続個数データを生成する生成工程と、を備える復号方法が提供される。   According to the present invention, in a decoding method for decoding encoded image data obtained by encoding image data, an absolute value that is continuous from the encoded image data at the end of transform coefficients obtained by orthogonally transforming the image data with an orthogonal transform size. An acquisition step of acquiring an encoding code corresponding to the value of the last consecutive number data indicating the number of transform coefficients of value 1, and orthogonal transform with a sub-block size smaller than the orthogonal transform size when orthogonally transforming the image data A selection step of selecting correspondence data indicating a correspondence relationship between the value of the last consecutive number data indicating the number of conversion coefficients having an absolute value of 1 continuous at the end of the conversion coefficient and the encoded code, and selected by the selection step A decoding step comprising: decoding the encoded code acquired by the acquisition step using the correspondence data and generating the last consecutive number data. A method is provided.

また本発明によれば、コンピュータにおいて実行される、画像データを符号化した符号化画像データを復号する手順をコンピュータに実行させる復号プログラムにおいて、前記符号化画像データから、前記画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得する取得手順と、前記画像データを直交変換する際の直交変換サイズより小さいサブブロックサイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択する選択手順と、前記選択手順の実施により選択された対応関係データを用いて、前記取得手順の実施により取得された符号化コードを復号して、前記最後連続個数データを生成する生成手順と、を、コンピュータに実行させる復号プログラムが提供される。   According to the present invention, in a decoding program for causing a computer to execute a procedure for decoding encoded image data obtained by encoding image data, the image data is orthogonally transformed from the encoded image data. An acquisition procedure for acquiring an encoding code corresponding to the value of the last consecutive number data indicating the number of transform coefficients of absolute value 1 that are continuous at the end of the transform coefficient that has been orthogonally transformed in step, and when the image data is orthogonally transformed Correspondence data indicating the correspondence between the value of the last consecutive number data indicating the number of transform coefficients of absolute value 1 continuous at the end of the transform coefficient orthogonally transformed with a sub-block size smaller than the orthogonal transform size and the encoded code. Acquired by executing the acquisition procedure using the selection procedure to be selected and the correspondence data selected by executing the selection procedure. The by decoding the encoded code, and a generation step of generating the last continuous number data, decoding program to be executed by the computer is provided.

本発明によれば、コンピュータにおいて実行される、画像データを符号化した符号化画像データを復号するルーチンを記録した記録媒体において、前記符号化画像データから、前記画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得する取得ルーチンと、前記画像データを直交変換する際の直交変換サイズより小さいサブブロックサイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択する選択ルーチンと、前記選択ルーチンの実施により選択された対応関係データを用いて、前記取得ルーチンの実施により取得された符号化コードを復号して、前記最後連続個数データを生成する生成ルーチンと、を、記録した記録媒体が提供される。   According to the present invention, in a recording medium recorded with a routine for decoding encoded image data obtained by encoding image data, which is executed by a computer, the image data is orthogonally transformed with an orthogonal transformation size from the encoded image data. An acquisition routine for acquiring an encoding code corresponding to the value of the last consecutive number data indicating the number of transform coefficients having an absolute value of 1 consecutive at the end of the transformed transform coefficients, and an orthogonal transform size when orthogonally transforming the image data Selection for selecting correspondence data indicating the correspondence between the value of the last consecutive number data indicating the number of transform coefficients of absolute value 1 continuous at the end of the transform coefficient orthogonally transformed with a smaller sub-block size and the encoded code Acquired by executing the acquisition routine using the routine and the correspondence data selected by executing the selection routine. It decodes the No. code, and generating routine for generating the last continuous number data, and recorded recording medium is provided.

本発明によれば、対応関係データを基に符号化して得られた符号化コードを、好適に復号する復号方法、復号装置およびそのプログラム並びに記録媒体を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the decoding method, decoding apparatus, its program, and recording medium which decode suitably the encoding code obtained by encoding based on correspondence data can be provided.

図1は、本発明の第1実施形態の通信システムの構成図である。FIG. 1 is a configuration diagram of a communication system according to a first embodiment of this invention. 図2は、図1に示す符号化装置の機能ブロック図である。FIG. 2 is a functional block diagram of the encoding apparatus shown in FIG. 図3は、図2に示す可逆符号化回路の構成図である。FIG. 3 is a block diagram of the lossless encoding circuit shown in FIG. 図4は、図3に示すスキャン回路が4x4ブロックデータの直交変換をスキャンする順序を説明するための図である。FIG. 4 is a diagram for explaining the order in which the scan circuit shown in FIG. 3 scans orthogonal transformation of 4 × 4 block data. 図5は、図3に示すスキャン回路が8x8ブロックデータの直交変換をスキャンする順序を説明するための図である。FIG. 5 is a diagram for explaining the order in which the scan circuit shown in FIG. 3 scans orthogonal transformation of 8 × 8 block data. 図6は、図3に示すラン・レベル計算回路が4x4ブロックデータの非0係数個数データTotalCoeffおよび最後連続個数データTrailingOneを生成する手法を説明するための図である。FIG. 6 is a diagram for explaining a method in which the run level calculation circuit shown in FIG. 3 generates the non-zero coefficient number data TotalCoeff and the last continuous number data TrailingOne of 4 × 4 block data. 図7は、図3に示す2次元可逆符号化回路が4x4ブロックデータの非0係数個数データTotalCoeffおよび最後連続個数データTrailingOneを符号化する手法を説明するための図である。FIG. 7 is a diagram for explaining a method in which the two-dimensional lossless encoding circuit shown in FIG. 3 encodes non-zero coefficient number data TotalCoeff and last continuous number data TrailingOne of 4 × 4 block data. 図8は、図3に示す2次元可逆符号化回路が8x8ブロックデータの非0係数個数データTotalCoeffおよび最後連続個数データTrailingOneを符号化する手法を説明するための図である。FIG. 8 is a diagram for explaining a method in which the two-dimensional lossless encoding circuit shown in FIG. 3 encodes the non-zero coefficient number data TotalCoeff and the last consecutive number data TrailingOne of 8 × 8 block data. 図9は、図3に示す2次元可逆符号化回路が8x8ブロックデータの非0係数個数データTotalCoeffおよび最後連続個数データTrailingOneを符号化する手法を説明するための図である。FIG. 9 is a diagram for explaining a method in which the two-dimensional lossless encoding circuit shown in FIG. 3 encodes the non-zero coefficient number data TotalCoeff and the last consecutive number data TrailingOne of 8 × 8 block data. 図10は、図3に示す可逆符号化回路の動作例を説明するための図である。FIG. 10 is a diagram for explaining an operation example of the lossless encoding circuit shown in FIG. 図11は、図1に示す復号装置の構成図である。FIG. 11 is a block diagram of the decoding apparatus shown in FIG. 図12は、図11に示す可逆復号回路の構成図である。FIG. 12 is a block diagram of the lossless decoding circuit shown in FIG.

以下、本発明の実施形態に係わる符号化装置について説明する。
先ず、本実施形態の構成要素と、本発明の構成要素との関係を説明する。
本実施形態の4x4ブロックサイズが本発明の第1のブロックサイズに対応し、8x8ブロックサイズが本発明の第2のブロックサイズに対応している。
また、本実施形態の非0係数個数データTotalCoeffが本発明の非0係数個数データに対応している。
また、表1に示す右側の数字が本発明の符号化コードに対応している。
また、表1に示す変換表データTRNa1,2,3,4が本発明の対応関係データに対応している。
また、図8に示すサブブロックデータSB1,SB2,SB3,SB4が本発明のサブブロックデータに対応している。
Hereinafter, an encoding apparatus according to an embodiment of the present invention will be described.
First, the relationship between the component of this embodiment and the component of this invention is demonstrated.
The 4 × 4 block size of this embodiment corresponds to the first block size of the present invention, and the 8 × 8 block size corresponds to the second block size of the present invention.
Further, the non-zero coefficient number data TotalCoeff of the present embodiment corresponds to the non-zero coefficient number data of the present invention.
The numbers on the right side shown in Table 1 correspond to the encoded codes of the present invention.
The conversion table data TRNa1, 2, 3, 4 shown in Table 1 corresponds to the correspondence data of the present invention.
Further, the sub-block data SB1, SB2, SB3, and SB4 shown in FIG. 8 correspond to the sub-block data of the present invention.

図10に示すステップST17,ST18が第1の観点の発明の第1の工程に対応し、ステップST19が第2の工程に対応し、ステップST21,ST22が第3の工程に対応している。
また、図10に示すステップST13が第1の観点の発明の第4の工程に対応し、ステップST14,ST15が第5の工程に対応し、ステップST16が第6の工程に対応している。
また、図3に示すスキャン変換回路51、サブブロック生成回路52が第2の観点の発明の割り当て手段に対応している。
また、図3に示すラン・レベル計算回路53が、第2の観点の発明の生成手段に対応し、2次元可逆符号化回路54が第2の観点の発明の符号化手段に対応している。
Steps ST17 and ST18 shown in FIG. 10 correspond to the first step of the first aspect of the invention, step ST19 corresponds to the second step, and steps ST21 and ST22 correspond to the third step.
Further, step ST13 shown in FIG. 10 corresponds to the fourth process of the first aspect of the invention, steps ST14 and ST15 correspond to the fifth process, and step ST16 corresponds to the sixth process.
Further, the scan conversion circuit 51 and the sub-block generation circuit 52 shown in FIG. 3 correspond to the assigning means of the invention according to the second aspect.
The run level calculation circuit 53 shown in FIG. 3 corresponds to the generation means of the invention of the second aspect, and the two-dimensional lossless encoding circuit 54 corresponds to the encoding means of the invention of the second aspect. .

図12に示す2次元可逆復号回路111が第5の観点の発明の決定手段に対応し、変換係数復元回路114が第5の観点の発明の生成手段に対応し、ブロック復元回路115が第5の観点の発明の取得手段に対応している。   The two-dimensional lossless decoding circuit 111 shown in FIG. 12 corresponds to the determining means of the fifth aspect of the invention, the transform coefficient restoring circuit 114 corresponds to the generating means of the fifth aspect of the invention, and the block restoring circuit 115 is the fifth. This corresponds to the acquisition means of the invention of this aspect.

以下、本実施形態の通信システム1について説明する。
先ず、本発明の実施形態の構成要素と本発明の構成要素との対応関係を説明する。
図1は、本実施形態の通信システム1の概念図である。
図1に示すように、通信システム1は、送信側に設けられた符号化装置2と、受信側に設けられた復号装置3とを有する。
符号化装置2が本発明のデータ処理装置および符号化装置に対応している。
通信システム1では、送信側の符号化装置2において、離散コサイン変換やカルーネン・レーベ変換などの直交変換と動き補償によって圧縮したフレーム画像データ(ビットストリーム)を生成し、当該フレーム画像データを変調した後に、衛星放送波、ケーブルTV網、電話回線網、携帯電話回線網などの伝送媒体を介して送信する。
受信側では、復号装置3において受信した画像信号を復調した後に、上記変調時の直交変換の逆変換と動き補償によって伸張したフレーム画像データを生成して利用する。
なお、上記伝送媒体は、光ディスク、磁気ディスクおよび半導体メモリなどの記録媒体であってもよい。
Hereinafter, the communication system 1 of the present embodiment will be described.
First, the correspondence between the components of the embodiment of the present invention and the components of the present invention will be described.
FIG. 1 is a conceptual diagram of a communication system 1 according to the present embodiment.
As shown in FIG. 1, the communication system 1 includes an encoding device 2 provided on the transmission side and a decoding device 3 provided on the reception side.
The encoding device 2 corresponds to the data processing device and the encoding device of the present invention.
In the communication system 1, the encoding device 2 on the transmission side generates frame image data (bit stream) compressed by orthogonal transformation such as discrete cosine transformation and Karhunen-Labe transformation and motion compensation, and modulates the frame image data. Later, it is transmitted via a transmission medium such as a satellite broadcast wave, a cable TV network, a telephone line network, or a mobile phone line network.
On the receiving side, after the image signal received by the decoding device 3 is demodulated, frame image data expanded by inverse transformation of orthogonal transformation and motion compensation at the time of the modulation is generated and used.
The transmission medium may be a recording medium such as an optical disk, a magnetic disk, and a semiconductor memory.

<符号化装置2>
以下、図1に示す符号化装置2について説明する。
図2は、図1に示す符号化装置2の全体構成図である。
図2に示すように、符号化装置2は、例えば、A/D変換回路22、画面並べ替え回路23、演算回路24、直交変換回路25、量子化回路26、可逆符号化回路27、バッファメモリ28、逆量子化回路29、逆直交変換回路30、フレームメモリ31、レート制御回路32、加算回路33、イントラ予測回路41、動き予測・補償回路42、並びに直交変換サイズ決定回路45を有する。
<Encoder 2>
Hereinafter, the encoding device 2 shown in FIG. 1 will be described.
FIG. 2 is an overall configuration diagram of the encoding device 2 shown in FIG.
As shown in FIG. 2, the encoding device 2 includes, for example, an A / D conversion circuit 22, a screen rearrangement circuit 23, an arithmetic circuit 24, an orthogonal transformation circuit 25, a quantization circuit 26, a lossless encoding circuit 27, and a buffer memory. 28, an inverse quantization circuit 29, an inverse orthogonal transform circuit 30, a frame memory 31, a rate control circuit 32, an adder circuit 33, an intra prediction circuit 41, a motion prediction / compensation circuit 42, and an orthogonal transform size determination circuit 45.

以下、符号化装置2の構成要素について説明する。
[A/D変換回路22]
A/D変換回路22は、入力されたアナログの輝度信号Y、色差信号Pb,Prから構成される原画像信号S10をデジタルのピクチャデータS22に変換し、これを画面並べ替え回路23に出力する。
Hereinafter, components of the encoding device 2 will be described.
[A / D conversion circuit 22]
The A / D conversion circuit 22 converts the original image signal S10 composed of the input analog luminance signal Y and color difference signals Pb and Pr into digital picture data S22, and outputs this to the screen rearrangement circuit 23. .

[画面並べ替え回路23]
画面並べ替え回路23は、A/D変換回路22から入力したピクチャデータS22内のフレームデータを、そのピクチャタイプI,P,BからなるGOP(Group Of Pictures)
構造に応じて、符号化する順番に並べ替えた原画像データS23を演算回路24、動き予測・補償回路42およびイントラ予測回路41に出力する。
[Screen rearrangement circuit 23]
The screen rearrangement circuit 23 converts the frame data in the picture data S22 input from the A / D conversion circuit 22 into a GOP (Group Of Pictures) composed of the picture types I, P, and B.
The original image data S23 rearranged in the encoding order according to the structure is output to the arithmetic circuit 24, motion prediction / compensation circuit 42 and intra prediction circuit 41.

[演算回路24]
演算回路24は、原画像データS23と、イントラ予測回路41または動き予測・補償回路42から入力した予測画像データとの差分を示す画像データS24を生成し、これを直交変換回路25に出力する。
[Arithmetic circuit 24]
The arithmetic circuit 24 generates image data S24 indicating a difference between the original image data S23 and the predicted image data input from the intra prediction circuit 41 or the motion prediction / compensation circuit 42, and outputs this to the orthogonal transform circuit 25.

[直交変換回路25]
直交変換回路25は、画像データS24に離散コサイン変換(DCT:Discrete Cosine Transform)やカルーネン・レーベ変換などの直交変換を施して変換係数を示す画像データ(例えばDCT係数)S25を生成し、これを量子化回路26に出力する。
直交変換回路25は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEによって指定された直交変換サイズで、演算回路24から入力した画像データS24に直交変換を施して変換係数を示す画像データS25を生成する。
本実施形態では、上記直交変換サイズとして、4x4,8x8のブロックサイズが用いられる。
[Orthogonal transformation circuit 25]
The orthogonal transformation circuit 25 performs orthogonal transformation such as Discrete Cosine Transform (DCT) or Karhunen-Loeve transformation on the image data S24 to generate image data (for example, DCT coefficient) S25 indicating a transformation coefficient. The result is output to the quantization circuit 26.
The orthogonal transform circuit 25 performs the orthogonal transform on the image data S24 input from the arithmetic circuit 24 with the orthogonal transform size specified by the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45, and indicates the transform coefficient. S25 is generated.
In the present embodiment, a block size of 4 × 4 and 8 × 8 is used as the orthogonal transform size.

[量子化回路26]
量子化回路26は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEと、レート制御回路32から入力した量子化スケールQSとを基に、画像データS25(量子化前の変換係数)を量子化して量子化後の変換係数を示す画像データS26を生成し、これを可逆符号化回路27および逆量子化回路29に出力する。
例えば、直交変換回路25において4x4と8x8とのうち一方が選択されて整数精度の直交変換が行われる場合に、量子化回路26において正規化処理に用いる適切な係数は、4x4と8x8とでは異なる。そのため、量子化回路26は、レート制御回路32から入力した量子化スケールQSを、直交変換サイズ信号TRSIZEが示す直交変換サイズに応じて補正し、補正後の量子化スケールを用いて、画像データS25を量子化する。
[Quantization circuit 26]
Based on the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 and the quantization scale QS input from the rate control circuit 32, the quantization circuit 26 obtains image data S25 (transform coefficient before quantization). The image data S26 indicating the quantized transform coefficient is generated by quantization and output to the lossless encoding circuit 27 and the inverse quantization circuit 29.
For example, when one of 4x4 and 8x8 is selected in the orthogonal transformation circuit 25 and the orthogonal transformation with integer precision is performed, appropriate coefficients used for normalization processing in the quantization circuit 26 are different between 4x4 and 8x8. . Therefore, the quantization circuit 26 corrects the quantization scale QS input from the rate control circuit 32 according to the orthogonal transform size indicated by the orthogonal transform size signal TRSIZE, and uses the corrected quantization scale to generate image data S25. Quantize

[可逆符号化回路27]
可逆符号化回路27は、画像データS26を可変長符号化した画像データをバッファメモリ28に格納する。
このとき、可逆符号化回路27は、動き予測・補償回路42から入力した動きベクトルMVあるいはその差分動きベクトル、参照画像データの識別データ、並びにイントラ予測回路41から入力したイントラ予測モードをヘッダデータなどに格納する。
可逆符号化回路27は、4x4および8x8ブロックサイズの直交変換の各々に対応して可逆符号化処理を行う。
可逆符号化回路27の符号化処理について後に詳細に説明する。
[Reversible encoding circuit 27]
The lossless encoding circuit 27 stores the image data obtained by variable-length encoding the image data S26 in the buffer memory 28.
At this time, the lossless encoding circuit 27 uses the motion vector MV input from the motion prediction / compensation circuit 42 or its differential motion vector, identification data of reference image data, and the intra prediction mode input from the intra prediction circuit 41 as header data or the like. To store.
The lossless encoding circuit 27 performs lossless encoding processing corresponding to each of orthogonal transformations of 4 × 4 and 8 × 8 block sizes.
The encoding process of the lossless encoding circuit 27 will be described in detail later.

[バッファメモリ28]
バッファメモリ28に格納された画像データは、変調等された後に画像データS2として送信される。
当該画像データS2は、後述するように、復号装置3によって復号される。
[逆量子化回路29]
逆量子化回路29は、量子化回路26の量子化に対応した逆量子化処理を画像データS26に施して、それによって得られたデータを生成し、これを逆直交変換回路30に出力する。
[逆直交変換回路30]
逆直交変換回路30は、逆量子化回路29から入力したデータに、直交変換回路25における直交変換の逆変換を施して生成した画像データを加算回路33に出力する。
[加算回路33]
加算回路33は、逆直交変換回路30から入力した(デコードされた)画像データと、選択回路44から入力した予測画像データPIとを加算して参照(再構成)ピクチャデータR_PICを生成し、これをフレームメモリ31に書き込む。
なお、加算回路33とフレームメモリ31との間に、デブロックフィルタを設けてもよい。このデブロックフィルタは、加算回路33から入力した再構成画像データのブロック歪みを除去した画像データを、参照ピクチャデータR_PICとしてフレームメモリ31に書き込む。
[Buffer memory 28]
The image data stored in the buffer memory 28 is modulated or the like and then transmitted as the image data S2.
The image data S2 is decoded by the decoding device 3 as will be described later.
[Inverse quantization circuit 29]
The inverse quantization circuit 29 performs an inverse quantization process corresponding to the quantization of the quantization circuit 26 on the image data S 26, generates data obtained thereby, and outputs this to the inverse orthogonal transform circuit 30.
[Inverse orthogonal transform circuit 30]
The inverse orthogonal transform circuit 30 outputs image data generated by performing inverse transform of the orthogonal transform in the orthogonal transform circuit 25 to the data input from the inverse quantization circuit 29 to the adder circuit 33.
[Addition circuit 33]
The adder circuit 33 adds the (decoded) image data input from the inverse orthogonal transform circuit 30 and the predicted image data PI input from the selection circuit 44 to generate reference (reconstructed) picture data R_PIC. Is written into the frame memory 31.
A deblocking filter may be provided between the adder circuit 33 and the frame memory 31. The deblocking filter writes the image data from which the block distortion of the reconstructed image data input from the addition circuit 33 is removed, into the frame memory 31 as reference picture data R_PIC.

[レート制御回路32]
レート制御回路32は、例えば、バッファメモリ28から読み出した画像データを基に量子化スケールQSを生成し、これを量子化回路26に出力する。
[Rate control circuit 32]
For example, the rate control circuit 32 generates a quantization scale QS based on the image data read from the buffer memory 28, and outputs this to the quantization circuit 26.

[イントラ予測回路41]
イントラ予測回路41は、イントラ符号化するマクロブロックにおいて、残差が最小となるイントラ予測のモードおよび予測ブロックのブロックサイズを決定する。
イントラ予測回路41は、ブロックサイズとして、4x4および16x16画素を用いる。
イントラ予測回路41は、イントラ予測が選択された場合に、イントラ予測による予測画像データを演算回路24に出力する。
[Intra prediction circuit 41]
The intra prediction circuit 41 determines the intra prediction mode and the block size of the prediction block that minimize the residual in the macroblock to be intra-coded.
The intra prediction circuit 41 uses 4 × 4 and 16 × 16 pixels as the block size.
The intra prediction circuit 41 outputs predicted image data based on intra prediction to the arithmetic circuit 24 when intra prediction is selected.

[動き予測・補償回路42]
動き予測・補償回路42は、既に符号化され、局所復号され、フレームメモリ31に記録されている画像から、動き予測を行い、残差を最小にする動きベクトルおよび動く補償のブロックサイズを決定する。
動き予測・補償回路42は、ブロックサイズとして、16x16、16x8、8x16、8x8、8x4、4x8および4x4画素を用いる。
動き予測・補償回路42は、インター予測が選択された場合に、インター予測による予測画像データを演算回路24に出力する。
[Motion prediction / compensation circuit 42]
The motion prediction / compensation circuit 42 performs motion prediction from an image that has already been encoded, locally decoded, and recorded in the frame memory 31, and determines a motion vector that minimizes the residual and a block size for motion compensation. .
The motion prediction / compensation circuit 42 uses 16 × 16, 16 × 8, 8 × 16, 8 × 8, 8 × 4, 4 × 8, and 4 × 4 pixels as block sizes.
When the inter prediction is selected, the motion prediction / compensation circuit 42 outputs predicted image data based on the inter prediction to the arithmetic circuit 24.

[直交変換サイズ決定回路45]
直交変換サイズ決定回路45は、イントラ予測回路41および動き予測・補償回路42のうち予測画像データが選択された回路において最終的に決定(選択)したブロックサイズを基に直交変換サイズを決定し、それを示す直交変換サイズ信号TRSIZEを直交変換回路25、量子化回路26および可逆符号化回路27に出力する。
具体的には、直交変換サイズ決定回路45は、イントラ予測回路41による8x8画素のブロックサイズが最終的に選択された場合に、8x8画素を示す直交変換サイズ信号TRSIZEを生成し、イントラ予測回路41による8x8画素以外のブロックサイズが最終的に選択された場合には4x4画素を示す直交変換サイズ信号TRSIZEを生成する。
また、直交変換サイズ決定回路45は、動き予測・補償回路42による8x8画素以上のブロックサイズが最終的に選択された場合には、8x8画素を示す直交変換サイズ信号TRSIZEを生成し、動き予測・補償回路42による8x8画素より小さいブロックサイズが最終的に選択された場合には4x4画素を示す直交変換サイズ信号TRSIZEを生成する。
本実施形態では、直交変換サイズ決定回路45は、4x4と8x8とのいずれかのブロックサイズを示す直交変換サイズ信号TRSIZEを生成する。
[Orthogonal transform size determination circuit 45]
The orthogonal transform size determination circuit 45 determines the orthogonal transform size based on the block size finally determined (selected) in the circuit in which the predicted image data is selected from the intra prediction circuit 41 and the motion prediction / compensation circuit 42, An orthogonal transform size signal TRSIZE indicating this is output to the orthogonal transform circuit 25, the quantization circuit 26, and the lossless encoding circuit 27.
Specifically, the orthogonal transform size determination circuit 45 generates an orthogonal transform size signal TRSIZE indicating 8 × 8 pixels when the intra prediction circuit 41 finally selects the block size of 8 × 8 pixels, and the intra prediction circuit 41. When a block size other than 8 × 8 pixels is finally selected, an orthogonal transform size signal TRSIZE indicating 4 × 4 pixels is generated.
Further, when a block size of 8 × 8 pixels or more is finally selected by the motion prediction / compensation circuit 42, the orthogonal transform size determination circuit 45 generates an orthogonal transform size signal TRSIZE indicating 8 × 8 pixels, and performs motion prediction / When a block size smaller than 8 × 8 pixels by the compensation circuit 42 is finally selected, an orthogonal transform size signal TRSIZE indicating 4 × 4 pixels is generated.
In the present embodiment, the orthogonal transform size determination circuit 45 generates an orthogonal transform size signal TRSIZE indicating a block size of either 4x4 or 8x8.

以下、可逆符号化回路27における画像データS25の可変長符号化について詳細に説明する。
図3は、図2に示す可逆符号化回路27の構成図である。
図3に示すように、可逆符号化回路27は、画像データS25を可変長符号化する構成として、例えば、スキャン変換回路51、サブブロック生成回路52、ラン・レベル計算回路53、2次元可逆符号化回路54、レベル符号化回路55、ラン符号化回路56、並びに多重化回路57を有する。
Hereinafter, variable length encoding of the image data S25 in the lossless encoding circuit 27 will be described in detail.
FIG. 3 is a block diagram of the lossless encoding circuit 27 shown in FIG.
As shown in FIG. 3, the lossless encoding circuit 27 has, for example, a scan conversion circuit 51, a sub-block generation circuit 52, a run level calculation circuit 53, and a two-dimensional lossless code as a configuration that performs variable length encoding on the image data S 25. An encoding circuit 54, a level encoding circuit 55, a run encoding circuit 56, and a multiplexing circuit 57.

スキャン変換回路51は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが4x4を示す場合に、フレーム符号化では図4(a)に示す番号順、フィールド符号化では図4(b)に示す番号順に、画像データS26を構成する4x4ブロックデータ内の16個の変換係数をスキャンし、スキャン順にサブブロック生成回路52に出力する。
一方、スキャン変換回路51は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが8x8を示す場合に、図5に示す番号順に、画像データS26を構成する8x8ブロックデータ内の64個の変換係数データをスキャンし、スキャン順にサブブロック生成回路52に出力する。
図5において、左上が直流DC成分を示し、右下が高周波成分に対応している。
また、図中水平方向が水平周波数成分、図中垂直方向が垂直周波数成分を示している。
When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 4 × 4, the scan conversion circuit 51 uses the numerical order shown in FIG. 4A for frame encoding and FIG. 4B for field encoding. The 16 transform coefficients in the 4 × 4 block data constituting the image data S26 are scanned in the order shown in FIG.
On the other hand, when the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 8 × 8, the scan conversion circuit 51 includes 64 pieces of 64 × 8 block data constituting the image data S26 in the numerical order shown in FIG. The conversion coefficient data is scanned and output to the sub-block generation circuit 52 in the scan order.
In FIG. 5, the upper left indicates a DC component, and the lower right corresponds to a high frequency component.
Further, the horizontal direction in the figure indicates the horizontal frequency component, and the vertical direction in the figure indicates the vertical frequency component.

サブブロック生成回路52は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが4x4を示す場合に、スキャン変換回路51から順に入力した4x4ブロックデータを構成する16個の変換係数を順にラン・レベル計算回路53に出力する。
また、サブブロック生成回路52は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが8x8を示す場合に、スキャン変換回路51から入力した8x8ブロックデータを構成する64個の変換係数のうち、1〜16番目に入力した変換係数を4x4のサブブロックデータSB1の構成要素とし、17〜32番目に入力した変換係数を4x4のサブブロックデータSB2の構成要素とし、33〜48番目に入力した変換係数を4x4のサブブロックデータSB3の構成要素とし、49〜64番目に入力した変換係数を4x4のサブブロックデータSB4の構成要素とし、これらをラン・レベル計算回路53に出力する。
When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 4 × 4, the sub-block generation circuit 52 sequentially executes the 16 transform coefficients constituting the 4 × 4 block data sequentially input from the scan transform circuit 51. Output to level calculation circuit 53.
Further, the sub-block generation circuit 52, when the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 8 × 8, out of the 64 transform coefficients constituting the 8 × 8 block data input from the scan conversion circuit 51 The first to 16th input transform coefficients are used as components of 4 × 4 sub-block data SB1, and the 17th to 32nd input transform coefficients are used as components of 4 × 4 sub-block data SB2. The transform coefficient is used as a component of 4 × 4 sub-block data SB3, the 49th to 64th input transform coefficients are used as components of 4 × 4 sub-block data SB4, and these are output to the run level calculation circuit 53.

ラン・レベル計算回路53は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが4x4を示す場合に、サブブロック生成回路52から順に入力した16個の変換係数列のレベルデータlevel、ランデータrun_before、ラン総数データtotal_zero、非0係数個数データTotalCoeff、最後連続個数データTrailingOnes、符号データtrailing_ones_sing_flagを生成する。   The run level calculation circuit 53, when the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 4 × 4, the level data level of 16 transform coefficient sequences input in order from the sub-block generation circuit 52, run Data run_before, run total number data total_zero, non-zero coefficient number data TotalCoeff, last continuous number data TrailingOnes, and code data trailing_ones_sing_flag are generated.

ここで、レベルデータlevelは、4x4ブロックデータ内の個々の変換係数(0,1以外の変換係数)の値を示し、図6の場合には、「−3」,「+8」,「+11」,「−4」,「+23」である。
ランデータrun_beforeは、4x4ブロックデータ内の非0係数の前の連続する0係数(値が0の変換係数)の数を示し、図6の場合には、「1」,「2」,「0」,「2」,「0」,「0」である。
ラン総数データtotal_zeroは、4x4ブロックデータ内の最後の非0係数以前の0係数の数を示す。図6の場合には、「5」である。
非0係数個数データTotalCoeffは、4x4ブロックデータ内の非0係数の数を示す。図6の場合には「7」である。
最後連続個数データTrailingOnesは、4x4ブロックデータ内の最後に連続する絶対値1の変換係数の数を示す。図6の場合には「2」である。
符号データtrailing_ones_sing_flagは、4x4ブロックデータ内の最後に連続する絶対値1の変換係数の符号を示す。図6の場合には「−」,「+」である。
Here, the level data level indicates the values of individual transform coefficients (transform coefficients other than 0 and 1) in the 4 × 4 block data. In the case of FIG. 6, “−3”, “+8”, “+11”. , “−4”, “+23”.
Run data run_before indicates the number of consecutive 0 coefficients (conversion coefficients having a value of 0) before non-zero coefficients in the 4 × 4 block data. In the case of FIG. 6, “1”, “2”, “0” ”,“ 2 ”,“ 0 ”,“ 0 ”.
The run total number data total_zero indicates the number of zero coefficients before the last non-zero coefficient in the 4 × 4 block data. In the case of FIG. 6, it is “5”.
The non-zero coefficient number data TotalCoeff indicates the number of non-zero coefficients in the 4 × 4 block data. In the case of FIG. 6, it is “7”.
The last continuous number data TrailingOnes indicates the number of transform coefficients having an absolute value of 1 that is continuous last in the 4 × 4 block data. In the case of FIG. 6, it is “2”.
The code data trailing_ones_sing_flag indicates the sign of the transform coefficient having the absolute value 1 that is continuous last in the 4 × 4 block data. In the case of FIG. 6, “−” and “+”.

ラン・レベル計算回路53は、ランデータrun_beforeおよびラン総数データtotal_zeroを、ラン符号化回路56に出力する。
ラン・レベル計算回路53は、レベルデータlevelをレベル符号化回路55に出力する。
ラン・レベル計算回路53は、非0係数個数データTotalCoeff、最後連続個数データTrailingOnes、並びに符号データtrailing_ones_sing_flagを2次元可逆符号化回路54に出力する。
The run level calculation circuit 53 outputs the run data run_before and the run total number data total_zero to the run encoding circuit 56.
The run level calculation circuit 53 outputs the level data level to the level encoding circuit 55.
The run level calculation circuit 53 outputs the non-zero coefficient number data TotalCoeff, the last consecutive number data TrailingOnes, and the code data trailing_ones_sing_flag to the two-dimensional lossless encoding circuit 54.

ラン・レベル計算回路53は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが8x8を示す場合に、サブブロック生成回路52から入力した4x4のサブブロックデータSB1,SB2,SB3,SB4の各々について、上述した4x4の場合と同様の処理を行って、レベルデータlevel、ランデータrun_before、ラン総数データtotal_zero、非0係数個数データTotalCoeff、最後連続個数データTrailingOnes、符号データtrailing_ones_sing_flagを生成する。   When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 8 × 8, the run level calculation circuit 53 outputs the 4 × 4 sub-block data SB1, SB2, SB3, and SB4 input from the sub-block generation circuit 52. For each, the same processing as in the case of 4 × 4 described above is performed, and level data level, run data run_before, run total number data total_zero, non-zero coefficient number data TotalCoeff, last continuous number data TrailingOnes, and code data trailing_ones_sing_flag are generated.

2次元可逆符号化回路54は、非0係数個数データTotalCoeff、最後連続個数データTrailingOnes、並びに符号データtrailing_ones_sing_flagを可変長符号化する。
以下、2次元可逆符号化回路54による非0係数個数データTotalCoeffおよび最後連続個数データTrailingOnesの符号化方法を説明する。
先ず、直交変換サイズ信号TRSIZEが4x4を示す場合を説明する。
2次元可逆符号化回路54は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが4x4を示す場合に、処理対象の4x4のブロックデータの周囲の4x4のブロックデータの変換係数のうち0,1(あるいは0)以外の変換係数の数を基に、下記の総変換表データTRNaを基に、当該ブロックデータの非0係数個数データTotalCoeffおよび最後連続個数データTrailingOnesの符号化コードを生成(取得)する。
The two-dimensional lossless encoding circuit 54 performs variable-length encoding on the non-zero coefficient number data TotalCoeff, the last continuous number data TrailingOnes, and the code data trailing_ones_sing_flag.
Hereinafter, a method of encoding the non-zero coefficient number data TotalCoeff and the last continuous number data TrailingOne by the two-dimensional lossless encoding circuit 54 will be described.
First, a case where the orthogonal transform size signal TRSIZE indicates 4 × 4 will be described.
When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 4 × 4, the two-dimensional lossless encoding circuit 54 outputs 0 of the transform coefficients of the 4 × 4 block data around the 4 × 4 block data to be processed. , 1 (or 0) based on the number of transform coefficients, based on the following total conversion table data TRNa, generate encoded codes of non-zero coefficient number data TotalCoeff and last consecutive number data TrailingOnes of the block data ( get.

Figure 2010136454
Figure 2010136454

上記表1に示す総変換表データTRNaは、5つの変換表データTRNa1,2,3,4,5を規定している。
変換表データTRNa1,2,3,4は、以下の特性を有している。
変換表データTRNa1,2,3,4の各々は、非0係数個数データTotalCoeffおよび最後連続個数データTrailingOneの組について、その符号化コードを規定している。
ここで、変換表データTRNa1,2,3,4は、0を示す非0係数個数データTotalCoeffのビット長が相互に異なり、0を示す非0係数個数データTotalCoeffのビット長が短くなるに従って、符号化コードの最大ビット長が長くなるように規定されている。
ところで、非0係数個数データTotalCoeffは、4x4のブロックデータが複雑な画像領域に位置する場合に、0になる可能性は殆どなく、その値が0〜15の広い範囲に分散するという特性がある。
また、非0係数個数データTotalCoeffは、4x4のブロックデータが変化が少ない平坦な画像領域に位置する場合に、0となる可能性が高く、高い値を示すことは殆どないという特性がある。
従って、上述したように変換表データTRNa1,2,3,4を規定することで、複雑な画像領域の4x4ブロックデータについては、0を示す非0係数個数データTotalCoeffに割り当てる符号化コードのビット長は長いが、符号化コードの最大ビット長が短い変換表データを選択することで、全体の符号化効率を高める。
一方、平坦な画像領域の4x4ブロックデータについては、最大ビット長は長いが、0を示す非0係数個数データTotalCoeffに割り当てる符号化コードが短い変換表データを選択することで、全体の符号化効率を高める。
The total conversion table data TRNa shown in Table 1 defines five conversion table data TRNa1, 2, 3, 4, and 5.
The conversion table data TRNa1, 2, 3, 4 has the following characteristics.
Each of the conversion table data TRNa1, 2, 3, 4 defines an encoding code for a set of the non-zero coefficient number data TotalCoeff and the last consecutive number data TrailingOne.
Here, the conversion table data TRNa1, 2, 3, and 4 have different bit lengths for the non-zero coefficient number data TotalCoeff indicating 0, and the code length increases as the bit length of the non-zero coefficient number data TotalCoeff indicating 0 decreases. The maximum bit length of the encoding code is specified to be long.
By the way, the non-zero coefficient number data TotalCoeff has a characteristic that, when 4 × 4 block data is located in a complex image region, there is almost no possibility of becoming 0, and the value is dispersed in a wide range of 0 to 15. .
Further, the non-zero coefficient number data TotalCoeff has a characteristic that when the 4 × 4 block data is located in a flat image region with little change, the non-zero coefficient number data TotalCoeff is likely to be 0 and hardly shows a high value.
Therefore, by defining the conversion table data TRNa1, 2, 3, and 4 as described above, the bit length of the encoding code assigned to the non-zero coefficient number data TotalCoeff indicating 0 for 4 × 4 block data in a complex image region Although the conversion table data having a long maximum bit length of the encoded code is selected, the overall encoding efficiency is improved.
On the other hand, for 4 × 4 block data in a flat image area, the overall coding efficiency is selected by selecting conversion table data having a long maximum bit length but a short encoding code assigned to the non-zero coefficient number data TotalCoeff indicating 0. To increase.

また、最後連続個数データTrailingOneが異なり非0係数個数データTotalCoeffが同じ複数の組に対して、最後連続個数データTrailingOneが大きくなるに従って、符号化コードのビット長が同じあるいは長くなるように規定している。   Further, for a plurality of sets having different last consecutive number data TrailingOne and the same non-zero coefficient number data TotalCoeff, it is specified that the bit length of the encoded code becomes the same or longer as the last continuous number data TrailingOne increases. Yes.

2次元可逆符号化回路54は、図7に示すように、処理対象の4x4ブロックデータCに対して表示位置が左に隣接している4x4ブロックデータAの0,1(あるいは0)以外の変換係数の数をnAとし、処理対象の4x4ブロックデータCに対して表示位置が上に隣接している4x4ブロックデータAの0,1(あるいは0)以外の変換係数の数をnBとする。
そして、2次元可逆符号化回路54は、「nC=(nA+nB+1)>>1」により、指標データnCを生成する。
「>>1」は「1」右シフトすることを意味している。
2次元可逆符号化回路54は、指標データnCを基に、表1に示す総変換表データTRNaが規定する4つの変換表データTRNa1,2,3,4,5のうち一つを選択する。 2次元可逆符号化回路54は、例えば、nA=2,nB=3の場合、nC=(2+3+1)>>1=3となり、変換表データTRNa2を選択する。
2次元可逆符号化回路54は、色差信号のDC値の符号化に、変換表データTRNa5を用いる。
そして、2次元可逆符号化回路54は、上記4x4のブロックデータの非0係数個数データTotalCoeffおよび最後連続個数データTrailingOnesの符号化コードを、上記選択した変換表データTRNa1,2,3,4,5を用いて取得し、これを多重化回路57に出力する。
As shown in FIG. 7, the two-dimensional lossless encoding circuit 54 converts the 4 × 4 block data C to be processed other than 0, 1 (or 0) of the 4 × 4 block data A whose display position is adjacent to the left. The number of coefficients is nA, and the number of transform coefficients other than 0, 1 (or 0) of 4x4 block data A whose display position is adjacent to the 4x4 block data C to be processed is nB.
Then, the two-dimensional lossless encoding circuit 54 generates index data nC by “nC = (nA + nB + 1) >> 1”.
“>> 1” means “1” right shift.
The two-dimensional lossless encoding circuit 54 selects one of the four conversion table data TRNa1, 2, 3, 4, 5 defined by the total conversion table data TRNa shown in Table 1 based on the index data nC. For example, when nA = 2 and nB = 3, the two-dimensional lossless encoding circuit 54 selects nC = (2 + 3 + 1) >> 1 = 3 and selects the conversion table data TRNa2.
The two-dimensional lossless encoding circuit 54 uses conversion table data TRNa5 for encoding the DC value of the color difference signal.
Then, the two-dimensional lossless encoding circuit 54 converts the encoding codes of the non-zero coefficient number data TotalCoeff and the last consecutive number data TrailingOnes of the 4 × 4 block data into the selected conversion table data TRNa1, 2, 3, 4, 5 Is obtained and output to the multiplexing circuit 57.

次に、直交変換サイズ信号TRSIZEが8x8を示す場合を説明する。
上述したサブブロック生成回路52が生成した4つのサブブロックデータSB1,SB2,SB3,SB4は、図8に示すように表現できる。
図8において、矩形の左上が低周波成分、右下が高周波成分である。
従って、サブブロックデータSB1には比較的高い頻度で非0係数が存在し、逆にサブブロックデータSB4には殆どの係数が0となる確率が高くなる。
そのため、サブブロックデータSB4は値0(小さい値)に短い符号長の符号コードを割り当て、逆にサブブロックデータSB1には大きい値に短い符号長の符号コードを割り当てた方が符号化効率がよい。
ここで、直交変換サイズ信号TRSIZEが8x8を示す場合には、以下に示す(方式1)〜(方式4)の何れかを基に指標データnCを生成する。
なお、指標データnCの生成方法は、復号装置3においても同じにする。
Next, a case where the orthogonal transform size signal TRSIZE indicates 8 × 8 will be described.
The four subblock data SB1, SB2, SB3, and SB4 generated by the subblock generation circuit 52 described above can be expressed as shown in FIG.
In FIG. 8, the upper left corner of the rectangle is the low frequency component, and the lower right corner is the high frequency component.
Therefore, there is a relatively high frequency of non-zero coefficients in the sub-block data SB1, and conversely, there is a high probability that most coefficients are zero in the sub-block data SB4.
Therefore, encoding efficiency is better when subcode data SB4 is assigned a code code having a shorter code length to value 0 (smaller value), and conversely, a subcode data SB1 is assigned a code code having a shorter code length than a larger value. .
Here, when the orthogonal transform size signal TRSIZE indicates 8 × 8, the index data nC is generated based on one of the following (Method 1) to (Method 4).
The method for generating the index data nC is the same in the decoding device 3.

(方式1)
2次元可逆符号化回路54は、図9に示す8x8ブロックデータCが処理対象であるとすると、サブブロックデータSB1の指標データnCは「8」、サブブロックデータSB2,B3の指標データnCは「4」、サブブロックデータSB4の指標データnCは「0」とする。
これにより、2次元可逆符号化回路54は、サブブロックデータSB1の符号化に表1に示す変換表データTRNa4を用い、サブブロックデータSB2,B3の符号化に変換表データTRNa3を用い、サブブロックデータSB4の符号化に変換表データTRNa1を用いる。
(Method 1)
Assuming that the 8 × 8 block data C shown in FIG. 9 is a processing target, the two-dimensional lossless encoding circuit 54 has “8” as the index data nC of the sub-block data SB1, and the index data nC of the sub-block data SB2 and B3 is “ 4 ”, and the index data nC of the sub-block data SB4 is“ 0 ”.
Thus, the two-dimensional lossless encoding circuit 54 uses the conversion table data TRNa4 shown in Table 1 for encoding the sub-block data SB1, and uses the conversion table data TRNa3 for encoding the sub-block data SB2 and B3. Conversion table data TRNa1 is used for encoding data SB4.

(方式2)
2次元可逆符号化回路54は、図9に示す8x8ブロックデータCが処理対象であるとすると、サブブロックデータSB1の指標データnCは「8」、サブブロックデータSB2,B3の指標データnCは「2」、サブブロックデータSB4の指標データnCは「0」とする。
これにより、2次元可逆符号化回路54は、サブブロックデータSB1の符号化に表1に示す変換表データTRNa4を用い、サブブロックデータSB2,B3の符号化に変換表データTRNa2を用い、サブブロックデータSB4の符号化に変換表データTRNa1を用いる。
(Method 2)
Assuming that the 8 × 8 block data C shown in FIG. 9 is a processing target, the two-dimensional lossless encoding circuit 54 has “8” as the index data nC of the sub-block data SB1, and the index data nC of the sub-block data SB2 and B3 is “ 2 ”, and the index data nC of the sub-block data SB4 is“ 0 ”.
Thus, the two-dimensional lossless encoding circuit 54 uses the conversion table data TRNa4 shown in Table 1 for encoding the sub-block data SB1, and uses the conversion table data TRNa2 for encoding the sub-block data SB2 and B3. Conversion table data TRNa1 is used for encoding data SB4.

(方式3)
2次元可逆符号化回路54は、図9に示す8x8ブロックデータCが処理対象であるとすると、サブブロックデータSB1の指標データnCは「4」、サブブロックデータSB2,B3の指標データnCは「2」、サブブロックデータSB4の指標データnCは「0」とする。
これにより、2次元可逆符号化回路54は、サブブロックデータSB1の符号化に表1に示す変換表データTRNa3を用い、サブブロックデータSB2,B3の符号化に変換表データTRNa2を用い、サブブロックデータSB4の符号化に変換表データTRNa1を用いる。
(Method 3)
Assuming that the 8 × 8 block data C shown in FIG. 9 is a processing target, the two-dimensional lossless encoding circuit 54 has the index data nC of the sub-block data SB1 as “4” and the index data nC of the sub-block data SB2 and B3 as “ 2 ”, and the index data nC of the sub-block data SB4 is“ 0 ”.
Thus, the two-dimensional lossless encoding circuit 54 uses the conversion table data TRNa3 shown in Table 1 for encoding the sub-block data SB1, and uses the conversion table data TRNa2 for encoding the sub-block data SB2 and B3. Conversion table data TRNa1 is used for encoding data SB4.

(方式4)
2次元可逆符号化回路54は、図9に示すように処理対象のブロックデータCに左および上で隣接するブロックデータA,Bが8x8で直交変換されたものである場合に、ブロックデータCのサブブロックデータSB1,SB2,SB3,SB4の指標データnCを、ブロックデータA,Bの同じ位置のサブブロックデータSB1,SB2,SB3,SB4のnA,nBを用いて生成する。
例えば、2次元可逆符号化回路54は、ブロックデータAのサブブロックデータSB1のnAと、ブロックデータBのサブブロックデータSB1のnBとを用いて、「nC=(nA+nB+1)>>1」により、ブロックデータCのサブブロックデータSB1の指標データnCを生成する。
また、2次元可逆符号化回路54は、ブロックデータA,Bの一方が8x8の直交変換で、他方が4x4直交変換である場合、例えば、8x8直交変換の同じ位置のサブブロックデータSB1,SB2,SB3,SB4の0,1(あるいは0)以外の係数の数を指標データnCとする。
例えば、2次元可逆符号化回路54は、ブロックデータAが8x8、ブロックデータBが4x4である場合、ブロックデータAの0,1(あるいは0)以外の係数の数nAが、ブロックデータCのサブブロックデータSB1の指標データnCとする。
また、2次元可逆符号化回路54は、ブロックデータAおよびBの双方が4x4である場合、ブロックデータCの各サブブロックデータSB1,SB2,SB3,SB4と同じ位置のブロックデータA,BのサブブロックデータSB1,SB2,SB3,SB4のnA,nBを用いて、「nC=(nA+nB+1)>>1」により、ブロックデータCのサブブロックデータSB1,SB2,SB3,SB4の指標データnCを生成する。
なお、上述した指標データnCの生成方法は一例であり、ブロックデータA,BのサブブロックデータSB1,SB2,SB3,SB4のnA,nBを用いて、ブロックデータCのサブブロックデータSB1,SB2,SB3,SB4の指標データnCを生成するものであれば特に限定されない。
2次元可逆符号化回路54は、ブロックデータCのサブブロックデータSB1,B2,B3,B4を、それに対応した上記指標データnCを基に選択した変換表データTRNa1〜5を用いて変換する。
(Method 4)
The two-dimensional lossless encoding circuit 54, when the block data A and B adjacent to the left and top of the processing target block data C are orthogonally transformed by 8 × 8 as shown in FIG. The index data nC of the sub-block data SB1, SB2, SB3, SB4 is generated using the nA, nB of the sub-block data SB1, SB2, SB3, SB4 at the same position of the block data A, B.
For example, the two-dimensional lossless encoding circuit 54 uses the nA of the sub-block data SB1 of the block data A and the nB of the sub-block data SB1 of the block data B by “nC = (nA + nB + 1) >> 1”. The index data nC of the sub-block data SB1 of the block data C is generated.
Further, when one of the block data A and B is an 8 × 8 orthogonal transform and the other is a 4 × 4 orthogonal transform, the two-dimensional lossless encoding circuit 54, for example, the sub-block data SB1, SB2, at the same position in the 8 × 8 orthogonal transform The number of coefficients other than 0, 1 (or 0) of SB3 and SB4 is set as index data nC.
For example, when the block data A is 8 × 8 and the block data B is 4 × 4, the two-dimensional lossless encoding circuit 54 determines that the number nA of coefficients other than 0, 1 (or 0) of the block data A is the sub-data of the block data C. The index data is nC of the block data SB1.
In addition, when the block data A and B are both 4 × 4, the two-dimensional lossless encoding circuit 54 uses the sub data of the block data A and B at the same position as the sub block data SB1, SB2, SB3, and SB4 of the block data C. Using the nA and nB of the block data SB1, SB2, SB3, and SB4, the index data nC of the sub-block data SB1, SB2, SB3, and SB4 of the block data C is generated by “nC = (nA + nB + 1) >> 1”. .
The above-described method for generating the index data nC is an example, and the sub-block data SB1, SB2, and the sub-block data SB1, SB2, and the sub-block data SB1, SB2, SB3, and SB4 of the block data A and B are used. There is no particular limitation as long as it generates index data nC for SB3 and SB4.
The two-dimensional lossless encoding circuit 54 converts the sub-block data SB1, B2, B3, B4 of the block data C using the conversion table data TRNa1-5 selected based on the corresponding index data nC.

なお、2次元可逆符号化回路54は、上記方式4において、ブロックデータAおよびBの双方が4x4である場合、ブロックデータCの各サブブロックデータSB1,SB2,SB3,SB4を、(方式1)、(方式2)、(方式3)のいずれかのように、そのサブブロックデータSB1,SB2,SB3,SB4の位置に応じて指標データnCを決定してもよい。   Note that the two-dimensional lossless encoding circuit 54 determines that each block data SB1, SB2, SB3, SB4 of the block data C is (method 1) when both the block data A and B are 4 × 4 in the method 4. The index data nC may be determined according to the position of the sub-block data SB1, SB2, SB3, SB4 as in any one of (Method 2) and (Method 3).

上述したように、2次元可逆符号化回路54は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが8x8を示す場合に、処理対象の8x8のブロックデータからサブブロック生成回路52が生成した4つのサブブロックデータSB1,SB2,SB3,SB4の各々について指標データnCを決定あるいは生成する。
そして、2次元可逆符号化回路54は、上記決定あるいは生成した指標データnCを基に、表1に示す変換表データTRNa1〜5のなかから1つを選択する。
そして、2次元可逆符号化回路54は、処理対象のブロックデータの非0係数個数データTotalCoeffおよび最後連続個数データTrailingOnesの符号化コードを、上記選択した変換表データTRNa1〜5を用いて取得する。
As described above, when the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 8 × 8, the two-dimensional lossless encoding circuit 54 generates the sub block generation circuit 52 from the 8 × 8 block data to be processed. The index data nC is determined or generated for each of the four sub-block data SB1, SB2, SB3, and SB4.
Then, the two-dimensional lossless encoding circuit 54 selects one of the conversion table data TRNa1 to 5 shown in Table 1 based on the index data nC determined or generated.
Then, the two-dimensional lossless encoding circuit 54 acquires the encoding codes of the non-zero coefficient number data TotalCoeff and the last consecutive number data TrailingOnes of the block data to be processed using the selected conversion table data TRNa1 to 5.

以下、図3に示す可逆符号化回路27において、画像データS26の各ブロックデータから得られた非0係数個数データTotalCoeffおよび最後連続個数データTrailingOnesの符号化コードを決定する動作例を説明する。
図10は、当該動作例を説明するためのフローチャートである。
以下、図10に示す各ステップを説明する。
ステップST11:
図3に示す可逆符号化回路27は、図2に示す直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが4x4を示す場合には、ステップST12に進み、その後、ステップST12〜ST16の処理を行う。
一方、可逆符号化回路27は、直交変換サイズ信号TRSIZEが4x4を示す場合には、ステップST12に進み、その後、ステップST12〜ST16の処理を行う。
Hereinafter, an example of operation in which the lossless encoding circuit 27 shown in FIG. 3 determines the encoding codes of the non-zero coefficient number data TotalCoeff and the last consecutive number data TrailingOnes obtained from each block data of the image data S26 will be described.
FIG. 10 is a flowchart for explaining the operation example.
Hereinafter, each step shown in FIG. 10 will be described.
Step ST11:
If the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 shown in FIG. 2 indicates 4 × 4, the lossless encoding circuit 27 shown in FIG. 3 proceeds to step ST12, and then performs the processing of steps ST12 to ST16. I do.
On the other hand, when the orthogonal transform size signal TRSIZE indicates 4 × 4, the lossless encoding circuit 27 proceeds to step ST12, and thereafter performs the processes of steps ST12 to ST16.

ステップST12:
スキャン変換回路51は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが4x4を示す場合に、フレーム符号化では図4(a)に示す番号順、フィールド符号化では図4(b)に示す番号順に、画像データS26を構成する4x4ブロックデータ内の16個の変換係数をスキャンし、スキャン順にサブブロック生成回路52に出力する。
サブブロック生成回路52は、スキャン変換回路51から入力した変換係数をそのままラン・レベル計算回路53に出力する。
ステップST13:
ラン・レベル計算回路53は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが4x4を示す場合に、サブブロック生成回路52から順に入力した16個の変換係数列のレベルデータlevel、ランデータrun_before、ラン総数データtotal_zero、非0係数個数データTotalCoeff、最後連続個数データTrailingOnes、符号データtrailing_ones_sing_flagを生成する。
ラン・レベル計算回路53は、非0係数個数データTotalCoeffと最後連続個数データTrailingOnesとを2次元可逆符号化回路54に出力する。
Step ST12:
When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 4 × 4, the scan conversion circuit 51 uses the numerical order shown in FIG. 4A for frame encoding and FIG. 4B for field encoding. The 16 transform coefficients in the 4 × 4 block data constituting the image data S26 are scanned in the order shown in FIG.
The sub-block generation circuit 52 outputs the conversion coefficient input from the scan conversion circuit 51 to the run level calculation circuit 53 as it is.
Step ST13:
The run level calculation circuit 53, when the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 4 × 4, the level data level of 16 transform coefficient sequences input in order from the sub-block generation circuit 52, run Data run_before, run total number data total_zero, non-zero coefficient number data TotalCoeff, last continuous number data TrailingOnes, and code data trailing_ones_sing_flag are generated.
The run level calculation circuit 53 outputs the non-zero coefficient number data TotalCoeff and the last continuous number data TrailingOnes to the two-dimensional lossless encoding circuit 54.

ステップST14:
2次元可逆符号化回路54は、図7に示すように、処理対象の4x4ブロックデータCに対して表示位置が左に隣接している4x4ブロックデータAの0,1(あるいは0)以外の変換係数の数をnAとし、処理対象の4x4ブロックデータCに対して表示位置が上に隣接している4x4ブロックデータAの0,1(あるいは0)以外の変換係数の数をnBとする。
そして、2次元可逆符号化回路54は、「nC=(nA+nB+1)>>1」により、指標データnCを生成する。
ステップST15:
2次元可逆符号化回路54は、ステップST14で生成した指標データnCを基に、表1に示す変換表データTRNa1〜5のうち一つを選択する。
ステップST16:
2次元可逆符号化回路54は、ステップST13で入力した上記4x4のブロックデータの非0係数個数データTotalCoeffおよび最後連続個数データTrailingOnesの符号化コードを、ステップST15で選択した変換表データTRNa1,2,3,4,5を用いて取得し、これを多重化回路57に出力する。
Step ST14:
As shown in FIG. 7, the two-dimensional lossless encoding circuit 54 converts the 4 × 4 block data C to be processed other than 0, 1 (or 0) of the 4 × 4 block data A whose display position is adjacent to the left. The number of coefficients is nA, and the number of transform coefficients other than 0, 1 (or 0) of 4x4 block data A whose display position is adjacent to the 4x4 block data C to be processed is nB.
Then, the two-dimensional lossless encoding circuit 54 generates index data nC by “nC = (nA + nB + 1) >> 1”.
Step ST15:
The two-dimensional lossless encoding circuit 54 selects one of the conversion table data TRNa1 to 5 shown in Table 1 based on the index data nC generated in step ST14.
Step ST16:
The two-dimensional lossless encoding circuit 54 converts the encoding codes of the non-zero coefficient number data TotalCoeff and the last consecutive number data TrailingOnes of the 4 × 4 block data input in step ST13 into the conversion table data TRNa1, 2, 3, 4, and 5, and this is output to the multiplexing circuit 57.

ステップST17:
スキャン変換回路51は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが8x8を示す場合に、図5に示す番号順に、画像データS26を構成する8x8ブロックデータ内の64個の変換係数データをスキャンし、スキャン順にサブブロック生成回路52に出力する。
Step ST17:
When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 8 × 8, the scan conversion circuit 51 includes 64 transform coefficients in the 8 × 8 block data constituting the image data S26 in the order of numbers shown in FIG. Data is scanned and output to the sub-block generation circuit 52 in the scan order.

ステップST18:
サブブロック生成回路52は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが4x4を示す場合に、スキャン変換回路51から順に入力した4x4ブロックデータを構成する16個の変換係数を順にラン・レベル計算回路53に出力する。
サブブロック生成回路52は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが8x8を示す場合に、スキャン変換回路51から入力した8x8ブロックデータを構成する64個の変換係数のうち、1〜16番目に入力した変換係数を4x4のサブブロックデータSB1の構成要素とし、17〜32番目に入力した変換係数を4x4のサブブロックデータSB2の構成要素とし、33〜48番目に入力した変換係数を4x4のサブブロックデータSB3の構成要素とし、49〜64番目に入力した変換係数を4x4のサブブロックデータSB4の構成要素とし、これらをラン・レベル計算回路53に出力する。
Step ST18:
When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 4 × 4, the sub-block generation circuit 52 sequentially executes the 16 transform coefficients constituting the 4 × 4 block data sequentially input from the scan transform circuit 51. Output to level calculation circuit 53.
When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 8 × 8, the sub-block generation circuit 52 outputs 1 out of 64 transform coefficients constituting the 8 × 8 block data input from the scan conversion circuit 51. The 16th input transform coefficient is a component of 4 × 4 sub-block data SB1, the 17th to 32nd input transform coefficient is a component of 4 × 4 subblock data SB2, and the 33rd to 48th input conversion coefficient. Is the component of the 4 × 4 sub-block data SB3, the 49th to 64th input transform coefficients are the components of the 4 × 4 sub-block data SB4, and these are output to the run level calculation circuit 53.

ステップST19:
ラン・レベル計算回路53は、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが8x8を示す場合に、サブブロック生成回路52から入力した4x4のサブブロックデータSB1,SB2,SB3,SB4の各々について、上述した4x4の場合と同様の処理を行って、レベルデータlevel、ランデータrun_before、ラン総数データtotal_zero、非0係数個数データTotalCoeff、最後連続個数データTrailingOnes、符号データtrailing_ones_sing_flagを生成する。
ラン・レベル計算回路53は、非0係数個数データTotalCoeffと最後連続個数データTrailingOnesとを2次元可逆符号化回路54に出力する。
Step ST19:
When the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45 indicates 8 × 8, the run level calculation circuit 53 outputs the 4 × 4 sub-block data SB1, SB2, SB3, and SB4 input from the sub-block generation circuit 52. For each, the same processing as in the case of 4 × 4 described above is performed to generate level data level, run data run_before, run total number data total_zero, non-zero coefficient number data TotalCoeff, last continuous number data TrailingOnes, and code data trailing_ones_sing_flag.
The run level calculation circuit 53 outputs the non-zero coefficient number data TotalCoeff and the last continuous number data TrailingOnes to the two-dimensional lossless encoding circuit 54.

ステップST20:
2次元可逆符号化回路54は、符号化対象の8x8ブロックデータを構成する各サブブロックデータSB1,SB2,SB3,SB4について、前述した(方式1)〜(方式5)のいずれか一つに従って、その指標データnCを決定あるいは生成する。
ステップST21:
2次元可逆符号化回路54は、ステップST20で決定あるいは生成した指標データnCを基に、表1に示す変換表データTRNa1〜5のうち一つを選択する。
ステップST22:
2次元可逆符号化回路54は、ステップST19で入力した各サブブロックデータSB1,SB2,SB3,SB4の非0係数個数データTotalCoeffおよび最後連続個数データTrailingOnesの符号化コードを、ステップST21で選択した変換表データTRNa1,2,3,4,5を用いて取得し、これを多重化回路57に出力する。
Step ST20:
The two-dimensional lossless encoding circuit 54 applies the sub-block data SB1, SB2, SB3, and SB4 constituting the 8x8 block data to be encoded according to any one of (Method 1) to (Method 5) described above. The index data nC is determined or generated.
Step ST21:
The two-dimensional lossless encoding circuit 54 selects one of the conversion table data TRNa1 to 5 shown in Table 1 based on the index data nC determined or generated in step ST20.
Step ST22:
The two-dimensional lossless encoding circuit 54 converts the encoding codes of the non-zero coefficient number data TotalCoeff and the last continuous number data TrailingOnes of the sub-block data SB1, SB2, SB3, and SB4 input in step ST19, selected in step ST21. The table data TRNa 1, 2, 3, 4, 5 is obtained and output to the multiplexing circuit 57.

以下、レベル符号化回路55について説明する。
レベル符号化回路55は、ラン・レベル計算回路53から入力したレベルデータlevelを可変長符号化する。
具体的には、レベル符号化回路55は、レベルデータlevelから、level_prefix,level_suffixと呼ばれるパレメータを抽出する。
そして、レベル符号化回路55は、パラメータlevel_prefixを、下記表2に示す変換表データTRNbを基に可変長符号化する。
Hereinafter, the level encoding circuit 55 will be described.
The level encoding circuit 55 performs variable length encoding on the level data level input from the run level calculation circuit 53.
Specifically, the level encoding circuit 55 extracts parameters called level_prefix and level_subfix from the level data level.
Then, the level encoding circuit 55 performs variable length encoding on the parameter level_prefix based on the conversion table data TRNb shown in Table 2 below.

Figure 2010136454
Figure 2010136454

パラメータlevel_suffixは、suffxLengthによって与えられるビット長で unsigned integer として符号化される。
ここで、レベルデータlevelと、パラメータlevel_prefix,level_suffixとの関係は下記式(1),(2)で規定される。
The parameter level_suffix is encoded as an unsigned integer with a bit length given by suffxLength.
Here, the relationship between the level data level and the parameters level_prefix and level_suffix is defined by the following equations (1) and (2).

[数1]
levelCode=(level_prefix<<suffixLength)+level_suffix
…(1)
[Equation 1]
levelCode = (level_prefix << suffixLength) + level_suffix
... (1)

[数2]
levelCodeが偶数の場合 : level = (levelCode + 2) >> 1
levelCodeが偶数でない場合 : level = (-levelCode - 1) >> 1
…(2)
[Equation 2]
If levelCode is even: level = (levelCode + 2) >> 1
If levelCode is not even: level = (-levelCode-1) >> 1
... (2)

レベル符号化回路55は、レベルデータlevelを可変長符号化して得た符号化コードを多重化回路57に出力する。   The level encoding circuit 55 outputs an encoded code obtained by variable length encoding the level data level to the multiplexing circuit 57.

以下、ラン符号化回路56について説明する。
ラン符号化回路56は、ラン・レベル計算回路53から入力したランデータrun_beforeおよびラン総数データtotal_zeroを以下に示すように可変長符号化する。
そして、ラン符号化回路56は、当該可変長符号化して得た符号化コードを多重化回路57に出力する。
具体的には、ラン符号化回路56は、直交変換サイズ信号TRSIZEが4x4を示し、且つ、非0係数個数データTotalCoeffが1以上7以下の場合に、下記表3に示す変換表データTRNcに基づいて、ラン総数データtotal_zeroを可変長符号化する。
Hereinafter, the run encoding circuit 56 will be described.
The run encoding circuit 56 performs variable length encoding on the run data run_before and the run total number data total_zero input from the run level calculation circuit 53 as shown below.
Then, the run encoding circuit 56 outputs the encoded code obtained by the variable length encoding to the multiplexing circuit 57.
Specifically, the run encoding circuit 56 is based on the conversion table data TRNc shown in Table 3 below when the orthogonal transform size signal TRSIZE indicates 4 × 4 and the non-zero coefficient number data TotalCoeff is 1 or more and 7 or less. Thus, the run total number data total_zero is variable-length encoded.

Figure 2010136454
Figure 2010136454

また、ラン符号化回路56は、直交変換サイズ信号TRSIZEが4x4を示し、且つ、非0係数個数データTotalCoeffが8以上15以下の場合に、下記表4に示す変換表データTRNdに基づいて、ラン総数データtotal_zeroを可変長符号化する。   Further, the run encoding circuit 56 performs the run based on the conversion table data TRNd shown in Table 4 below when the orthogonal transform size signal TRSIZE indicates 4 × 4 and the non-zero coefficient number data TotalCoeff is 8 or more and 15 or less. The total number data total_zero is variable-length encoded.

Figure 2010136454
Figure 2010136454

また、ラン符号化回路56は、符号化対象のブロックデータが、2x2の色差DCである場合に、下記表5に示す変換表データTRNeに基づいて、ラン総数データtotal_zeroを可変長符号化する。   Further, the run encoding circuit 56 performs variable length encoding on the total run number data total_zero based on the conversion table data TRNe shown in Table 5 below when the block data to be encoded is 2 × 2 color difference DC.

Figure 2010136454
Figure 2010136454

また、ラン符号化回路56は、下記表6に示す変換表データTRNfに基づいて、ランデータrun_beforeを可変長符号化する。   The run encoding circuit 56 performs variable length encoding on the run data run_before based on the conversion table data TRNf shown in Table 6 below.

Figure 2010136454
Figure 2010136454

ラン符号化回路56は、ラン総数データtotal_zeroおよびランデータrun_beforeを可変長符号化して得た符号化コードを多重化回路57に出力する。   The run encoding circuit 56 outputs an encoded code obtained by variable length encoding the run total number data total_zero and the run data run_before to the multiplexing circuit 57.

多重化回路57は、2次元可逆符号化回路54、レベル符号化回路55およびラン符号化回路56から入力した符号化コードを多重化したビットストリームである画像データS27を生成し、これをバッファメモリ28に書き込む。   The multiplexing circuit 57 generates image data S27 that is a bit stream obtained by multiplexing the encoded codes input from the two-dimensional lossless encoding circuit 54, the level encoding circuit 55, and the run encoding circuit 56, and stores the generated image data S27 in the buffer memory. Write to 28.

以下、図2に示す符号化装置2の全体動作を説明する。
入力となる画像信号は、まず、A/D変換回路22においてデジタル信号に変換される。
次に、出力となる画像圧縮情報のGOP構造に応じ、画面並べ替え回路23においてフレーム画像データの並べ替えが行われ、それによって得られた原画像データS23が演算回路24、動き予測・補償回路42およびイントラ予測回路41に出力される。
次に、演算回路24が、画面並べ替え回路23からの原画像データS23と選択回路44からの予測画像データPIとの差分を検出し、その差分を示す画像データS24を直交変換回路25に出力する。
Hereinafter, the overall operation of the encoding apparatus 2 shown in FIG. 2 will be described.
The input image signal is first converted into a digital signal by the A / D conversion circuit 22.
Next, the frame image data is rearranged in the screen rearrangement circuit 23 in accordance with the GOP structure of the compressed image information to be output, and the original image data S23 obtained thereby is used as the arithmetic circuit 24, the motion prediction / compensation circuit. 42 and the intra prediction circuit 41.
Next, the arithmetic circuit 24 detects a difference between the original image data S23 from the screen rearrangement circuit 23 and the predicted image data PI from the selection circuit 44, and outputs image data S24 indicating the difference to the orthogonal transformation circuit 25. To do.

次に、直交変換回路25が、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが示すブロックサイズに基づいて、画像データS24に離散コサイン変換やカルーネン・レーベ変換等の直交変換を施して画像データ(DCT係数)S25を生成し、これを量子化回路26に出力する。
次に、量子化回路26が、直交変換サイズ決定回路45から入力した直交変換サイズ信号TRSIZEが示すブロックサイズに基づいて、画像データS25を量子化し、画像データ(量子化されたDCT係数)S26を可逆符号化回路27および逆量子化回路29に出力する。
次に、可逆符号化回路27が、前述したように、画像データS26に可変長符号化を施して画像データS27を生成し、これをバッファメモリ28に蓄積する。
また、レート制御回路32が、バッファメモリ28から読み出した画像データを基に、量子化回路26における量子化レートを制御する。
Next, based on the block size indicated by the orthogonal transform size signal TRSIZE input from the orthogonal transform size determining circuit 45, the orthogonal transform circuit 25 subjects the image data S24 to orthogonal transform such as discrete cosine transform or Karhunen-Labe transform. Image data (DCT coefficient) S25 is generated and output to the quantization circuit 26.
Next, the quantization circuit 26 quantizes the image data S25 based on the block size indicated by the orthogonal transform size signal TRSIZE input from the orthogonal transform size determination circuit 45, and the image data (quantized DCT coefficient) S26 is obtained. The result is output to the lossless encoding circuit 27 and the inverse quantization circuit 29.
Next, as described above, the lossless encoding circuit 27 performs variable-length encoding on the image data S26 to generate the image data S27, and stores this in the buffer memory 28.
Further, the rate control circuit 32 controls the quantization rate in the quantization circuit 26 based on the image data read from the buffer memory 28.

また、逆量子化回路29が、量子化回路26から入力した画像データS26を逆量子化して逆直交変換回路30に出力する。
そして、逆直交変換回路30が、直交変換回路25の逆変換処理を行って生成した画像データを加算回路33に出力する。
加算回路33において、逆直交変換回路30からの画像データと選択回路44からの予測画像データPIとが加算されて参照画像データR_PICが生成され、これがフレームメモリ31に書き込まれる。
Further, the inverse quantization circuit 29 inversely quantizes the image data S <b> 26 input from the quantization circuit 26 and outputs it to the inverse orthogonal transform circuit 30.
Then, the inverse orthogonal transform circuit 30 outputs the image data generated by performing the inverse transform process of the orthogonal transform circuit 25 to the adder circuit 33.
In the addition circuit 33, the image data from the inverse orthogonal transform circuit 30 and the predicted image data PI from the selection circuit 44 are added to generate reference image data R_PIC, which is written into the frame memory 31.

また、イントラ予測回路41は、フレームメモリ31から読み出したブロックデータを4x4および16x16のブロックサイズでイントラ予測符号化し、その予測画像データを生成する。
また、動き予測・補償回路42は、フレームメモリ31から読み出したブロックデータを、16x16、16x8、8x16、8x8、8x4、4x8のブロックサイズでインター予測符号化し、その予測画像データを生成する。
そして、イントラ予測回路41および動き予測・補償回路42の予測画像データのうち、符号化コストが最小の予測画像データが演算回路24に出力される。
Further, the intra prediction circuit 41 performs intra prediction encoding on the block data read from the frame memory 31 with the block sizes of 4 × 4 and 16 × 16, and generates the predicted image data.
In addition, the motion prediction / compensation circuit 42 performs inter prediction encoding on the block data read from the frame memory 31 with block sizes of 16 × 16, 16 × 8, 8 × 16, 8 × 8, 8 × 4, and 4 × 8, and generates predicted image data.
Then, prediction image data with the lowest coding cost is output to the arithmetic circuit 24 among the prediction image data of the intra prediction circuit 41 and the motion prediction / compensation circuit 42.

直交変換サイズ決定回路45は、演算回路24に出力された予測画像データの生成に用いられたブロックサイズを示す直交変換サイズ信号TRSIZEを直交変換回路25、量子化回路26および可逆符号化回路27に出力する。   The orthogonal transform size determination circuit 45 sends an orthogonal transform size signal TRSIZE indicating the block size used for generating the predicted image data output to the arithmetic circuit 24 to the orthogonal transform circuit 25, the quantization circuit 26, and the lossless encoding circuit 27. Output.

以上説明したように、符号化装置2によれば、図3に示す可逆符号化回路27において、4x4で直交変換された変換係数を符号化するために用いる表1に示す総変換表データTRNaを用いて、8x8で直交変換された変換係数の非0係数個数データTotalCoeffおよび最後連続個数データTrailingOneを符号化できる。
また、符号化装置2によれば、可逆符号化回路27において、サブブロックデータSB1,SB2,SB3,SB4の符号化に用いる変換表データTRNa1,a2,a3,a4のを、(方式1)〜(方式4)により選択するため、高い符号化効率を実現できる。
As described above, according to the encoding device 2, the total conversion table data TRNa shown in Table 1 used for encoding the transform coefficients orthogonally transformed by 4 × 4 in the lossless encoding circuit 27 shown in FIG. By using this, the non-zero coefficient number data TotalCoeff and the last continuous number data TrailingOne of the transform coefficients orthogonally transformed by 8 × 8 can be encoded.
Further, according to the encoding device 2, in the lossless encoding circuit 27, conversion table data TRNa1, a2, a3, a4 used for encoding the sub-block data SB1, SB2, SB3, SB4 is converted from (method 1) to Since the selection is made by (Method 4), high encoding efficiency can be realized.

<復号装置3>
以下、図1に示す復号装置3について説明する。
図11は、図1に示す復号装置3の構成図である。
図11に示すように、復号装置3は、例えば、バッファメモリ81、可逆復号回路82、逆量子化回路83、逆直交変換回路84、加算回路85、フレームメモリ86、画像並べ替えバッファ87、D/A変換回路88、イントラ予測回路89、並びに動き予測・補償回路90を有する。
<Decoding device 3>
Hereinafter, the decoding device 3 shown in FIG. 1 will be described.
FIG. 11 is a block diagram of the decoding device 3 shown in FIG.
As shown in FIG. 11, the decoding device 3 includes, for example, a buffer memory 81, a lossless decoding circuit 82, an inverse quantization circuit 83, an inverse orthogonal transform circuit 84, an addition circuit 85, a frame memory 86, an image rearrangement buffer 87, and a D / A conversion circuit 88, intra prediction circuit 89, and motion prediction / compensation circuit 90.

バッファメモリ81は、符号化装置2から受信(入力)したビットストリームである画像データS2を記憶する。
可逆復号回路82は、バッファメモリ81から読み出した画像データS2を、図2に示す可逆符号化回路27による可逆符号化に対した方法で復号して画像データS82を生成する。
可逆復号回路82は、画像データS2に多重化された直交変換サイズ信号TRSIZEを分離および復号して逆量子化回路83および逆直交変換回路84に出力する。
可逆復号回路82について後に詳細に説明する。
The buffer memory 81 stores image data S2 that is a bit stream received (input) from the encoding device 2.
The lossless decoding circuit 82 generates image data S82 by decoding the image data S2 read from the buffer memory 81 by a method corresponding to the lossless encoding by the lossless encoding circuit 27 shown in FIG.
The lossless decoding circuit 82 separates and decodes the orthogonal transform size signal TRSIZE multiplexed on the image data S2, and outputs the result to the inverse quantization circuit 83 and the inverse orthogonal transform circuit 84.
The lossless decoding circuit 82 will be described in detail later.

逆量子化回路83は、可逆復号回路82から入力した直交変換サイズ信号TRSIZEを基に、可逆復号回路82から入力した可逆復号後の画像データS82を、図2に示す量子化回路26に対応した逆量子化方法で逆量子化して画像データS83を生成し、これを逆直交変換回路84に出力する。
逆直交変換回路84は、可逆復号回路82から入力した直交変換サイズ信号TRSIZEを基に、逆量子化回路83から入力した画像データS83を、図2に示す直交変換回路25の直交変換に対応した直交逆変換を行って画像データS84を生成し、これを加算回路85に出力する。
加算回路85は、イントラ予測回路89あるいは動き予測・補償回路90から入力した予測画像と、逆直交変換回路84から入力した画像データS84とを加算して画像データS85を生成し、これをフレームメモリ86および画像並べ替えバッファ87に出力する。
画像並べ替えバッファ87は、加算回路85から入力した画像データS85をピクチャ単位で表示順に並べ替えてD/A変換回路88に読み出すために用いられる。
D/A変換回路88は、画像並べ替えバッファ87から読み出した画像データをD/A変換してアナログの画像信号を生成する。
The inverse quantization circuit 83 corresponds to the quantization circuit 26 shown in FIG. 2 for the image data S82 after the lossless decoding input from the lossless decoding circuit 82 based on the orthogonal transform size signal TRSIZE input from the lossless decoding circuit 82. Image data S83 is generated by inverse quantization using the inverse quantization method, and is output to the inverse orthogonal transform circuit 84.
The inverse orthogonal transform circuit 84 corresponds to the orthogonal transform of the orthogonal transform circuit 25 shown in FIG. 2 on the image data S83 input from the inverse quantization circuit 83 based on the orthogonal transform size signal TRSIZE input from the lossless decoding circuit 82. An orthogonal inverse transform is performed to generate image data S84, which is output to the adder circuit 85.
The adder circuit 85 adds the predicted image input from the intra prediction circuit 89 or the motion prediction / compensation circuit 90 and the image data S84 input from the inverse orthogonal transform circuit 84 to generate image data S85, which is generated in the frame memory. 86 and the image rearrangement buffer 87.
The image rearrangement buffer 87 is used for rearranging the image data S85 input from the addition circuit 85 in the display order in units of pictures and reading them to the D / A conversion circuit 88.
The D / A conversion circuit 88 D / A converts the image data read from the image rearrangement buffer 87 to generate an analog image signal.

イントラ予測回路89は、フレームメモリ86から読み出した画像データS85内の復号対象のブロックデータがイントラ予測符号化されたものである場合に、当該ブロックデータをイントラ方式で復号して予測画像データを生成し、これを加算回路85に出力する。
動き予測・補償回路90は、フレームメモリ86から読み出した画像データS85内の復号対象のブロックデータがインター予測符号化されたものである場合に、当該ブロックデータをインター方式で復号して予測画像データを生成し、これを加算回路85に出力する。
When the block data to be decoded in the image data S85 read from the frame memory 86 has been subjected to intra prediction encoding, the intra prediction circuit 89 generates predicted image data by decoding the block data using the intra method. This is output to the adder circuit 85.
When the block data to be decoded in the image data S85 read out from the frame memory 86 has been subjected to inter prediction encoding, the motion prediction / compensation circuit 90 decodes the block data by the inter method and predicts image data. Is output to the adder circuit 85.

以下、図11に示す可逆復号回路82を説明する。
図12は、図11に示す可逆復号回路82の構成図である。
図12に示すように、可逆復号回路82は、例えば、分離回路110、2次元可逆復号回路111、レベル復号回路112、ラン復号回路113、変換係数復元回路114、ブロック復元回路115、並びにスキャン変換回路116を有する。
本実施形態において、次元可逆復号回路111、レベル復号回路112、ラン復号回路113、変換係数復元回路114、ブロック復元回路115、並びにスキャン変換回路116の処理は、分離回路110から分離された直交変換サイズ信号TRSIZEを用いて行われる。
Hereinafter, the lossless decoding circuit 82 shown in FIG. 11 will be described.
FIG. 12 is a configuration diagram of the lossless decoding circuit 82 shown in FIG.
As shown in FIG. 12, the lossless decoding circuit 82 includes, for example, a separation circuit 110, a two-dimensional lossless decoding circuit 111, a level decoding circuit 112, a run decoding circuit 113, a transform coefficient restoration circuit 114, a block restoration circuit 115, and scan conversion. A circuit 116 is included.
In the present embodiment, the processes of the dimension lossless decoding circuit 111, the level decoding circuit 112, the run decoding circuit 113, the transform coefficient restoration circuit 114, the block restoration circuit 115, and the scan conversion circuit 116 are orthogonal transformations separated from the separation circuit 110. This is performed using the size signal TRSIZE.

分離回路110は、符号化された画像データS2から、ランデータrun_beforeおよびラン総数データtotal_zeroの符号化コードを分離(抽出)し、これをラン復号回路113に出力する。
また、分離回路110は、画像データS2から、レベルデータlevelの符号化コードを分離し、これをレベル復号回路112に出力する。
また、分離回路110は、画像データS2から、非0係数個数データTotalCoeff、最後連続個数データTrailingOnes、並びに符号データtrailing_ones_sing_flagの符号化コードを分離し、これを2次元可逆復号回路111に出力する。
また、分離回路110は、画像データS2から直交変換サイズ信号TRSIZEを分離し、これらを図12に示す2次元可逆復号回路111、レベル復号回路112、ラン復号回路113、変換係数復元回路114、ブロック復元回路115、スキャン変換回路116、並びに図11に示す逆量子化回路83および逆直交変換回路84に出力する。
The separation circuit 110 separates (extracts) the encoded codes of the run data run_before and the run total number data total_zero from the encoded image data S 2, and outputs them to the run decoding circuit 113.
Further, the separation circuit 110 separates the encoded code of the level data level from the image data S2, and outputs this to the level decoding circuit 112.
Further, the separation circuit 110 separates the encoded codes of the non-zero coefficient number data TotalCoeff, the last continuous number data TrailingOnes, and the code data trailing_ones_sing_flag from the image data S 2, and outputs them to the two-dimensional lossless decoding circuit 111.
Further, the separation circuit 110 separates the orthogonal transform size signal TRSIZE from the image data S2, and these are separated into a two-dimensional lossless decoding circuit 111, a level decoding circuit 112, a run decoding circuit 113, a transform coefficient restoring circuit 114, a block shown in FIG. The data is output to the restoration circuit 115, the scan conversion circuit 116, and the inverse quantization circuit 83 and the inverse orthogonal transform circuit 84 shown in FIG.

2次元可逆復号回路111は、前述した図3に示す2次元可逆符号化回路54と同様の手法で、直交変換サイズ信号TRSIZE等を用いて、前述した表1に示す総変換表データTRN内の変換表データTRNa1〜5のうち一つを選択する。
そして、2次元可逆復号回路111は、選択した変換表データTRNa1〜5を用いて、分離回路110から入力した符号化コードを復号して、非0係数個数データTotalCoeffおよび最後連続個数データTrailingOnesを取得し、これを変換係数復元回路114に出力する。
また、2次元可逆復号回路111は、分離回路110から分離した符号化コードを復号し、符号データtrailing_ones_sing_flagを取得し、これを変換係数復元回路114に出力する。
The two-dimensional lossless decoding circuit 111 uses a method similar to the two-dimensional lossless encoding circuit 54 shown in FIG. 3 and uses the orthogonal transformation size signal TRSIZE and the like in the total conversion table data TRN shown in Table 1 above. One of the conversion table data TRNa1 to 5 is selected.
Then, the two-dimensional lossless decoding circuit 111 decodes the encoded code input from the separation circuit 110 using the selected conversion table data TRNa1 to 5, and obtains non-zero coefficient number data TotalCoeff and last consecutive number data TrailingOnes. This is output to the conversion coefficient restoration circuit 114.
In addition, the two-dimensional lossless decoding circuit 111 decodes the encoded code separated from the separation circuit 110, obtains code data trailing_ones_sing_flag, and outputs this to the transform coefficient restoration circuit 114.

レベル復号回路112は、図3に示すレベル符号化回路55の可変長符号化に対応した復号を前述した表2に示す変換表データTRNbを用いて行い、分離回路110からにした符号化コードに対応したレベルデータlevelを取得し、これを変換係数復元回路114に出力する。   The level decoding circuit 112 performs decoding corresponding to the variable length coding of the level coding circuit 55 shown in FIG. 3 using the conversion table data TRNb shown in Table 2 described above, and converts the encoded code from the separation circuit 110 into the encoded code. The corresponding level data level is acquired and output to the conversion coefficient restoration circuit 114.

ラン復号回路113は、図3に示すラン符号化回路56の可変長符号化に対応した復号を前述した表3、表4、表5および表6に示す変換表データTRNc,TRNd,TRNe,TRNfを用いて行い、分離回路110から符号化コードに対応したランデータrun_beforeおよびラン総数データtotal_zeroを取得し、これを変換係数復元回路114に出力する。   The run decoding circuit 113 performs the decoding corresponding to the variable length coding of the run coding circuit 56 shown in FIG. 3, and the conversion table data TRNc, TRNd, TRNe, TRNf shown in Tables 3, 4, 5 and 6 described above. The run data run_before and the run total data total_zero corresponding to the encoded code are obtained from the separation circuit 110 and output to the transform coefficient restoration circuit 114.

変換係数復元回路114は、2次元可逆復号回路111から入力した非0係数個数データTotalCoeff、最後連続個数データTrailingOnesおよび符号データtrailing_ones_sing_flagと、レベル復号回路112から入力したレベルデータlevelと、ラン復号回路113から入力したランデータrun_beforeおよびラン総数データtotal_zeroとを基に、図3に示すラン・レベル計算回路53の処理と逆の処理により、変換係数を生成し、これをブロック復元回路115に出力する。   The transform coefficient restoration circuit 114 includes non-zero coefficient number data TotalCoeff input from the two-dimensional lossless decoding circuit 111, last continuous number data TrailingOnes and code data trailing_ones_sing_flag, level data level input from the level decoding circuit 112, and run decoding circuit 113. Based on the run data run_before and run total number data total_zero input from, a conversion coefficient is generated by a process reverse to the process of the run level calculation circuit 53 shown in FIG. 3 and is output to the block restoration circuit 115.

ブロック復元回路115は、直交変換サイズ信号TRSIZEが4x4を示す場合には、変換係数復元回路114から入力した4x4分の変換係数を記憶する。
ブロック復元回路115は、直交変換サイズ信号TRSIZEが8x8を示す場合には、変換係数復元回路114から入力した8x8分の変換係数を記憶する。
When the orthogonal transform size signal TRSIZE indicates 4 × 4, the block restoration circuit 115 stores the 4 × 4 transform coefficients input from the transform coefficient restoration circuit 114.
When the orthogonal transform size signal TRSIZE indicates 8 × 8, the block restoration circuit 115 stores the 8 × 8 transform coefficients input from the transform coefficient restoration circuit 114.

スキャン変換回路116は、直交変換サイズ信号TRSIZEが4x4を示す場合に、変換係数復元回路114に記憶された4x4分の変換係数を、図11に示す逆量子化回路83で逆量子化するのに適した順序で読み出して画像データS82として逆量子化回路83に出力する。
また、スキャン変換回路116は、直交変換サイズ信号TRSIZEが8X8を示す場合に、変換係数復元回路114に記憶された8x8分の変換係数を、図5に示すスキャン順、並びに図8に示すサブブロックデータSB1,SB2,SB3,SB4の配置を考慮して、図11に示す逆量子化回路83で逆量子化するのに適した順序で読み出して画像データS82として逆量子化回路83に出力する。
When the orthogonal transform size signal TRSIZE indicates 4 × 4, the scan transform circuit 116 dequantizes the 4 × 4 transform coefficients stored in the transform coefficient restoration circuit 114 by the inverse quantization circuit 83 illustrated in FIG. 11. The data is read out in an appropriate order and output to the inverse quantization circuit 83 as image data S82.
Further, when the orthogonal transform size signal TRSIZE indicates 8 × 8, the scan transform circuit 116 converts the 8 × 8 transform coefficients stored in the transform coefficient restoration circuit 114 into the scan order illustrated in FIG. 5 and the sub-block illustrated in FIG. 8. In consideration of the arrangement of the data SB1, SB2, SB3, and SB4, they are read out in an order suitable for inverse quantization by the inverse quantization circuit 83 shown in FIG. 11 and output to the inverse quantization circuit 83 as image data S82.

復号装置3によれば、上述した符号化装置2によって符号化された非0係数個数データTotalCoeffおよび最後連続個数データTrailingOneの符号化コードを復元できる。   According to the decoding device 3, the encoded codes of the non-zero coefficient number data TotalCoeff and the last continuous number data TrailingOne encoded by the encoding device 2 described above can be restored.

本発明は上述した実施形態には限定されない。
例えば、上述した実施形態では、非0係数個数データTotalCoeffおよび最後連続個数データTrailingOneを符号化する対応関係データとして、表1に示す総変換表データTRNaを例示したが、変換表データTRNa1,2,3,4は、0を示す非0係数個数データTotalCoeffのビット長が相互に異なり、0を示す非0係数個数データTotalCoeffのビット長が短くなるに従って、符号化コードの最大ビット長が長くなるように規定さればその他の変換表データを用いてもよい。
The present invention is not limited to the embodiment described above.
For example, in the above-described embodiment, the total conversion table data TRNa shown in Table 1 is exemplified as the correspondence data for encoding the non-zero coefficient number data TotalCoeff and the last consecutive number data TrailingOne, but the conversion table data TRNa1, 2, 3 and 4 are such that the bit lengths of the non-zero coefficient count data TotalCoeff indicating 0 are different from each other, and the maximum bit length of the encoded code becomes longer as the bit length of the non-zero coefficient count data TotalCoeff indicating 0 becomes shorter. Other conversion table data may be used.

また、上述した符号化装置2では、図10等に示す符号化処理を、図3に示す可逆符号化回路27の構成回路によって実現した場合を例示したが、これらの処理の全部または一部をプログラムの記述に従ってCPU(Central Processing Unit)などが実行してもよい。
また、上述した復号装置3では、復号処理を、図11に示す可逆復号回路82の構成回路によって実現した場合を例示したが、これらの処理の全部または一部をプログラムの記述に従ってCPUなどが実行してもよい。
In the encoding device 2 described above, the encoding process shown in FIG. 10 and the like is exemplified by the configuration circuit of the lossless encoding circuit 27 shown in FIG. 3, but all or part of these processes is performed. A CPU (Central Processing Unit) or the like may be executed according to the description of the program.
Further, in the decoding device 3 described above, the case where the decoding process is realized by the configuration circuit of the lossless decoding circuit 82 shown in FIG. 11 is exemplified, but the CPU or the like executes all or part of these processes according to the description of the program. May be.

本発明は、直交変換の変換係数を符号化する符号化システム等に適用可能である。   The present invention is applicable to an encoding system that encodes transform coefficients of orthogonal transform.

1…通信システム、2…符号化装置、3…復号装置、22…A/D変換回路、23…画面並べ替え回路、24…演算回路、25…直交変換回路、26…量子化回路、27…可逆符号化回路、28…バッファメモリ、29…逆量子化回路、30…逆直交変換回路、31…フレームメモリ、32…レート制御回路、33…加算回路、41…イントラ予測回路、42…動き予測・補償回路、45…直交変換サイズ決定回路、51…スキャン回路、52…サブブロック生成回路、53…ラン・レベル計算回路、54…2次元可逆符号化回路、55…レベル符号化回路、56…ラン符号化回路、57…多重化回路、81…バッファメモリ、82…可逆復号回路、83…逆量子化回路、84…逆直交変換回路、85…加算回路、86…フレームメモリ、87…画像並べ替えバッファ、88…D/A変換回路、110…分離回路、111…2次元可逆復号回路、112…レベル復号回路、113…ラン復号回路、114…変換係数復元回路、115…ブロック復元回路、116…スキャン変換回路   DESCRIPTION OF SYMBOLS 1 ... Communication system, 2 ... Encoding apparatus, 3 ... Decoding apparatus, 22 ... A / D conversion circuit, 23 ... Screen rearrangement circuit, 24 ... Arithmetic circuit, 25 ... Orthogonal transformation circuit, 26 ... Quantization circuit, 27 ... Lossless encoding circuit, 28 ... buffer memory, 29 ... inverse quantization circuit, 30 ... inverse orthogonal transform circuit, 31 ... frame memory, 32 ... rate control circuit, 33 ... adder circuit, 41 ... intra prediction circuit, 42 ... motion prediction Compensation circuit 45 ... Orthogonal transform size determination circuit 51 ... Scan circuit 52 ... Sub-block generation circuit 53 ... Run level calculation circuit 54 ... Two-dimensional lossless encoding circuit 55 ... Level encoding circuit 56 ... Run encoding circuit 57... Multiplexing circuit 81. Buffer memory 82. Lossless decoding circuit 83. Inverse quantization circuit 84. Inverse orthogonal transformation circuit 85 85 Adder circuit 86. ... Image rearrangement buffer, 88 ... D / A conversion circuit, 110 ... separation circuit, 111 ... two-dimensional lossless decoding circuit, 112 ... level decoding circuit, 113 ... run decoding circuit, 114 ... transform coefficient restoration circuit, 115 ... block restoration Circuit 116 ... Scan conversion circuit

Claims (12)

画像データを符号化した符号化画像データを復号する復号装置において、
前記符号化画像データから、前記画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得する取得手段と、
前記画像データを直交変換する際の直交変換サイズより小さいサブブロックで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択する選択手段と、
前記選択手段により選択された対応関係データを用いて、前記取得手段により取得された符号化コードを復号して、前記最後連続個数データを生成する生成手段と、
を備える復号装置。
In a decoding device that decodes encoded image data obtained by encoding image data,
From the encoded image data, an encoded code corresponding to the value of the last consecutive number data indicating the number of transform coefficients having an absolute value of 1 which is continuous at the end of the transform coefficient obtained by orthogonal transformation of the image data with an orthogonal transform size is obtained. Acquisition means to
The value of the last consecutive number data indicating the number of transform coefficients of absolute value 1 that are continuous at the end of the transform coefficients that are orthogonally transformed by sub-blocks smaller than the orthogonal transform size when the image data is orthogonally transformed, and the encoding code A selection means for selecting correspondence data indicating the correspondence;
Using the correspondence data selected by the selection means, decoding the encoded code acquired by the acquisition means, and generating the last consecutive number data;
A decoding device comprising:
前記生成手段により生成された最後連続個数データを用いて、前記符号化画像データを復号する復号手段を更に備える
請求項1に記載の復号装置。
The decoding device according to claim 1, further comprising decoding means for decoding the encoded image data using the last consecutive number data generated by the generating means.
前記選択手段は、前記サブブロックに含まれる変換係数の数を用いて算出された指標データの値に従って、前記対応関係データを選択する
請求項1に記載の復号装置。
The decoding device according to claim 1, wherein the selection unit selects the correspondence data according to a value of index data calculated using the number of transform coefficients included in the sub-block.
前記選択手段は、前記サブブロックの位置に応じて算出された指標データの値に従って、前記対応関係データを選択する
請求項1に記載の復号装置。
The decoding device according to claim 1, wherein the selection unit selects the correspondence data according to a value of index data calculated according to a position of the sub-block.
前記指標データは、処理対象のブロック内のサブブロックを対象として、前記処理対象のブロックの上に隣接する上ブロックのブロックサイズと前記処理対象のブロックの左に隣接する左ブロックのブロックサイズとが同じ場合に、前記上ブロックと前記左ブロックの同じ位置のサブブロックに対する指標データを用いて算出される
請求項3に記載の復号装置。
The index data includes a block size of an upper block adjacent to the processing target block and a block size of a left block adjacent to the left of the processing target block for a sub-block in the processing target block. The decoding device according to claim 3, wherein the decoding device is calculated using index data for sub-blocks at the same position in the upper block and the left block in the same case.
前記指標データは、処理対象のブロック内のサブブロックを対象として、前記処理対象のブロックの上に隣接する上ブロックのブロックサイズと前記処理対象のブロックの左に隣接する左ブロックのブロックサイズとが異なる場合に、ブロックサイズが大きいブロック内の同じ位置のサブブロックに対する指標データを用いて算出される
請求項3に記載の復号装置。
The index data includes a block size of an upper block adjacent to the processing target block and a block size of a left block adjacent to the left of the processing target block for a sub-block in the processing target block. The decoding device according to claim 3, wherein the decoding device is calculated using index data for sub-blocks at the same position in a block having a large block size when they are different.
前記処理対象ブロックの指標データ(nC)は下記式によって算出される、
nC=(nA+nB+1)>>1
ただし、nAは前記左ブロック内のサブブロックの指標データであり、
nBは前記上ブロック内のサブブロックの指標データである、
請求項6に記載の復号装置。
The index data (nC) of the processing target block is calculated by the following equation:
nC = (nA + nB + 1) >> 1
However, nA is the index data of the sub-block in the left block,
nB is index data of a sub-block in the upper block,
The decoding device according to claim 6.
前記直交変換サイズは、8×8であり、
前記サブブロックのサイズは、4×4である
請求項1に記載の復号装置。
The orthogonal transform size is 8 × 8,
The decoding device according to claim 1, wherein a size of the sub-block is 4 × 4.
前記対応関係データは、前記最後連続個数データのビット長が長くなるのに応じて、前記符号化コードのビット長が長くなるように規定されている、
請求項1に記載の復号装置。
The correspondence data is defined such that the bit length of the encoded code increases as the bit length of the last consecutive number data increases.
The decoding device according to claim 1.
画像データを符号化した符号化画像データを復号する復号方法において、
前記符号化画像データから、前記画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得する取得工程と、
前記画像データを直交変換する際の直交変換サイズより小さいサブブロックサイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択する選択工程と、
前記選択工程により選択された対応関係データを用いて、前記取得工程により取得された符号化コードを復号して、前記最後連続個数データを生成する生成工程と、
を備える復号方法。
In a decoding method for decoding encoded image data obtained by encoding image data,
From the encoded image data, an encoded code corresponding to the value of the last consecutive number data indicating the number of transform coefficients having an absolute value of 1 which is continuous at the end of the transform coefficient obtained by orthogonal transformation of the image data with an orthogonal transform size is obtained. An acquisition process to
A value of the last consecutive number data indicating the number of transform coefficients of absolute value 1 that are continuous at the end of transform coefficients orthogonally transformed with a sub-block size smaller than the orthogonal transform size when the image data is orthogonally transformed, and an encoding code; A selection step of selecting correspondence data indicating the correspondence of
Using the correspondence data selected in the selection step, decoding the encoded code acquired in the acquisition step, and generating the last continuous number data; and
A decoding method comprising:
コンピュータにおいて実行される、画像データを符号化した符号化画像データを復号する手順をコンピュータに実行させる復号プログラムにおいて、
前記符号化画像データから、前記画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得する取得手順と、
前記画像データを直交変換する際の直交変換サイズより小さいサブブロックサイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択する選択手順と、
前記選択手順の実施により選択された対応関係データを用いて、前記取得手順の実施により取得された符号化コードを復号して、前記最後連続個数データを生成する生成手順と、
を、コンピュータに実行させる復号プログラム。
In a decoding program for causing a computer to execute a procedure for decoding encoded image data obtained by encoding image data, executed in a computer,
From the encoded image data, an encoded code corresponding to the value of the last consecutive number data indicating the number of transform coefficients having an absolute value of 1 which is continuous at the end of the transform coefficient obtained by orthogonal transformation of the image data with an orthogonal transform size is obtained. And the acquisition procedure to
A value of the last consecutive number data indicating the number of transform coefficients of absolute value 1 that are continuous at the end of transform coefficients orthogonally transformed with a sub-block size smaller than the orthogonal transform size when the image data is orthogonally transformed, and an encoding code; A selection procedure for selecting correspondence data indicating the correspondence of
Using the correspondence data selected by the execution of the selection procedure, the generation procedure for decoding the encoded code acquired by the execution of the acquisition procedure and generating the last consecutive number data,
Is a decryption program that causes a computer to execute.
コンピュータにおいて実行される、画像データを符号化した符号化画像データを復号するルーチンを記録した記録媒体において、
前記符号化画像データから、前記画像データが直交変換サイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値に対応する符号化コードを取得する取得ルーチンと、
前記画像データを直交変換する際の直交変換サイズより小さいサブブロックサイズで直交変換された変換係数の最後に連続する絶対値1の変換係数の個数を示す最後連続個数データの値と符号化コードとの対応関係を示す対応関係データを選択する選択ルーチンと、
前記選択ルーチンの実施により選択された対応関係データを用いて、前記取得ルーチンの実施により取得された符号化コードを復号して、前記最後連続個数データを生成する生成ルーチンと、
を、記録した記録媒体。
In a recording medium recorded with a routine for decoding encoded image data obtained by encoding image data, which is executed in a computer,
From the encoded image data, an encoded code corresponding to the value of the last consecutive number data indicating the number of transform coefficients having an absolute value of 1 which is continuous at the end of the transform coefficient obtained by orthogonal transformation of the image data with an orthogonal transform size is obtained. A get routine to
A value of the last consecutive number data indicating the number of transform coefficients of absolute value 1 that are continuous at the end of transform coefficients orthogonally transformed with a sub-block size smaller than the orthogonal transform size when the image data is orthogonally transformed, and an encoding code; A selection routine for selecting correspondence data indicating the correspondence of
A generation routine for decoding the encoded code acquired by the execution of the acquisition routine using the correspondence data selected by the execution of the selection routine to generate the last continuous number data;
Recording medium.
JP2010049887A 2004-07-12 2010-03-05 Decoding method, decoding apparatus, program therefor and recording medium Pending JP2010136454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010049887A JP2010136454A (en) 2004-07-12 2010-03-05 Decoding method, decoding apparatus, program therefor and recording medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004204313 2004-07-12
JP2010049887A JP2010136454A (en) 2004-07-12 2010-03-05 Decoding method, decoding apparatus, program therefor and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2005015284A Division JP2006054846A (en) 2004-07-12 2005-01-24 Coding method and device, decoding method and device, and program thereof

Publications (1)

Publication Number Publication Date
JP2010136454A true JP2010136454A (en) 2010-06-17

Family

ID=37298781

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2010049769A Pending JP2010141926A (en) 2004-07-12 2010-03-05 Decoding method, decoding device, program, and recording medium
JP2010049768A Pending JP2010119153A (en) 2004-07-12 2010-03-05 Encoding method, encoder, program for them, and recording medium
JP2010049887A Pending JP2010136454A (en) 2004-07-12 2010-03-05 Decoding method, decoding apparatus, program therefor and recording medium

Family Applications Before (2)

Application Number Title Priority Date Filing Date
JP2010049769A Pending JP2010141926A (en) 2004-07-12 2010-03-05 Decoding method, decoding device, program, and recording medium
JP2010049768A Pending JP2010119153A (en) 2004-07-12 2010-03-05 Encoding method, encoder, program for them, and recording medium

Country Status (2)

Country Link
JP (3) JP2010141926A (en)
CN (1) CN1860796B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016187140A (en) * 2015-03-27 2016-10-27 日本電信電話株式会社 Block size determination method, block size determination device and block size determination program

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5490404B2 (en) 2008-12-25 2014-05-14 シャープ株式会社 Image decoding device
FI3435674T3 (en) 2010-04-13 2023-09-07 Ge Video Compression Llc Coding of significance maps and transform coefficient blocks
US20120163456A1 (en) * 2010-12-22 2012-06-28 Qualcomm Incorporated Using a most probable scanning order to efficiently code scanning order information for a video block in video coding
US11388439B2 (en) * 2019-10-21 2022-07-12 Google Llc Sparse matrix representation using a boundary of non-zero coefficients

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004064725A (en) * 2002-06-06 2004-02-26 Matsushita Electric Ind Co Ltd Variable length encoding method and variable length decoding method
WO2004032032A1 (en) * 2002-10-03 2004-04-15 Nokia Corporation Context-based adaptive variable length coding for adaptive block transforms
JP2004134896A (en) * 2002-10-08 2004-04-30 Ntt Docomo Inc Image encoding method, image decoding method, image encoding apparatus, image decoding apparatus, image processing system, image encoding program, and image decoding program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0139164B1 (en) * 1994-12-19 1998-06-01 김광호 Adapted orthogonal transform coding apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004064725A (en) * 2002-06-06 2004-02-26 Matsushita Electric Ind Co Ltd Variable length encoding method and variable length decoding method
WO2004032032A1 (en) * 2002-10-03 2004-04-15 Nokia Corporation Context-based adaptive variable length coding for adaptive block transforms
JP2004134896A (en) * 2002-10-08 2004-04-30 Ntt Docomo Inc Image encoding method, image decoding method, image encoding apparatus, image decoding apparatus, image processing system, image encoding program, and image decoding program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016187140A (en) * 2015-03-27 2016-10-27 日本電信電話株式会社 Block size determination method, block size determination device and block size determination program

Also Published As

Publication number Publication date
CN1860796B (en) 2010-06-16
JP2010119153A (en) 2010-05-27
JP2010141926A (en) 2010-06-24
CN1860796A (en) 2006-11-08

Similar Documents

Publication Publication Date Title
JP2006054846A (en) Coding method and device, decoding method and device, and program thereof
JP5258664B2 (en) Image coding apparatus, method and program, and image decoding apparatus, method and program
JP4800571B2 (en) Apparatus and method for encoding digital images in a lossless manner
JP4447197B2 (en) Moving picture encoding apparatus and moving picture decoding apparatus
US20040136457A1 (en) Method and system for supercompression of compressed digital video
JP2010528555A (en) Video signal processing method and apparatus
JP2003250157A (en) Optimal scanning method for transform coefficients in coding/decoding of still image and moving image
WO1994022268A1 (en) Method for coding or decoding time-varying image, and apparatuses for coding/decoding
CN117915092A (en) Data encoding and decoding method, data encoding and decoding apparatus, and storage medium
CN102939759A (en) Image processing apparatus and method
JP2010136454A (en) Decoding method, decoding apparatus, program therefor and recording medium
JPWO2003079692A1 (en) Hierarchical encoding apparatus and decoding apparatus
JP4747494B2 (en) Data processing apparatus and method and encoding apparatus
JP2007019995A (en) Image processing device, method, and program
JP2006025033A (en) Device and method for image processing
JP4655791B2 (en) Encoding apparatus, encoding method and program thereof
GB2309613A (en) Variable-length coding and decoding digital data
JP2006174212A (en) Image processing apparatus, encoder and methods thereof
JP2710135B2 (en) Adaptive coding between frames / intra-frame
JP2003219421A (en) Device and method for encoding/decoding image information, and program thereof
KR20030083703A (en) Moving picture information compressing method and its system
JP2022538007A (en) Image data encoding and decoding
JP2002335532A (en) Picture prediction encoding method and its device
JP2007306528A (en) Motion picture decoding device and motion picture decoding method
JP2005176259A (en) Data processor and method therefor and encoding unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100305

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120214

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120612