[go: up one dir, main page]

JPH04274674A - Data converter - Google Patents

Data converter

Info

Publication number
JPH04274674A
JPH04274674A JP3035883A JP3588391A JPH04274674A JP H04274674 A JPH04274674 A JP H04274674A JP 3035883 A JP3035883 A JP 3035883A JP 3588391 A JP3588391 A JP 3588391A JP H04274674 A JPH04274674 A JP H04274674A
Authority
JP
Japan
Prior art keywords
data
code
layer
layers
coefficients
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
JP3035883A
Other languages
Japanese (ja)
Inventor
Yasuhiko Yamane
靖彦 山根
Takumi Hasebe
巧 長谷部
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3035883A priority Critical patent/JPH04274674A/en
Publication of JPH04274674A publication Critical patent/JPH04274674A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To split a code data an optional hierarchical number without increasing the hardware scale by implementing plural number of times of hierarchical split when a sequential coding data is converted into a hierarchical coding data. CONSTITUTION:Number of coefficients of each layer in a block comprising NXN picture elements is set by data quantity setting sections 106, 107. Number of zero coefficients and non-null coefficients are decoded by a decoding table 101 from an input sequential code data to detect consecutive zero coefficients between layers by a detection section 111. Number of zero coefficients belonging to each hierarchy is calculated from consecutive zero coefficients existing between hierarchys. Number of zero coefficients in response to the consecutive/non-consecutive zero coefficients between layers and non-null coefficients are coded by a demultiplexer section 115. A variable length code data generated continuously is subjected to packing by packing sections 121, 122 to covert the data into M sets of hierarchical codes. In the conversion into the hierarchical data in excess of M hierarchys, the variable length code data is converted into a hierarchical code data whose hierarchy is M or less and the code data of a hierarchy not split is converted, and the processing is repeated to obtain the split hierarchical code.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は連続する零の個数と非零
を符号化する可変長符号化方式における符号データ変換
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code data converting apparatus in a variable length coding system for coding the number of consecutive zeros and non-zeros.

【0002】0002

【従来の技術】近年、静止画像の信号処理において、デ
ータを符号化して圧縮する手段が重要な課題となってい
る。
2. Description of the Related Art In recent years, means for encoding and compressing data has become an important issue in signal processing of still images.

【0003】従来、静止画像の符号化方式として、画像
の相関性に着目して、画像データをN×N画素で構成さ
れるブロックに分割し、ブロック内のデータに離散コサ
イン変換(DCT)などの直交変換を施し、その変換係
数を符号化して圧縮する方式がある。図15はブロック
内のN×Nの画素に離散コサイン変換した変換係数の配
列状態を模式図で示す。斜線の部分はその数値の大きな
部分である。低周波成分が多いブロックの変換係数は図
に示すようにブロックの左上に数値の大きいものが集中
する。そこで、この変換係数を一次元に配列し、配列し
た変換係数に対して連続する零係数の個数と非零係数値
を符号化する。以下、符号化の処理について説明する。 たとえば、図16に示すような8×8画素のブロックに
直交変換を施した変換係数を符号化するとき、図の折れ
線で示すルートと方向でスキャンして変換係数を一次元
に配列し、連続する零係数の個数と非零係数値を符号化
する。また、図17の1と印した画素の後から最終画素
まで連続して零係数が配列する場合は、その部分につい
て符号化せず、EOB(End OfBlock)符号
を付加する。図18はこのような場合の係数配列に対応
する符号を模式図で示す。このように符号化処理をブロ
ック単位で処理し、このブロック単位の処理を画像全体
に対して施す。以下、このブロックを処理単位とした符
号をシーケンシャル符号データとする。
Conventionally, as a still image encoding method, focusing on image correlation, image data is divided into blocks each consisting of N×N pixels, and the data in the blocks is subjected to discrete cosine transform (DCT), etc. There is a method that performs an orthogonal transform and encodes and compresses the transform coefficients. FIG. 15 is a schematic diagram showing the arrangement of transform coefficients subjected to discrete cosine transform on N×N pixels in a block. The shaded area is the area where the numerical value is large. As shown in the figure, the transform coefficients of blocks with many low frequency components are concentrated in the upper left of the block. Therefore, these transform coefficients are arranged in one dimension, and the number of consecutive zero coefficients and non-zero coefficient values are encoded for the arranged transform coefficients. The encoding process will be explained below. For example, when encoding transform coefficients obtained by orthogonally transforming an 8 x 8 pixel block as shown in Figure 16, the transform coefficients are scanned along the route and direction indicated by the polygonal lines in the figure, arranged one-dimensionally, and then The number of zero coefficients and non-zero coefficient values are encoded. Furthermore, if zero coefficients are arranged continuously from after the pixel marked 1 in FIG. 17 to the final pixel, that part is not encoded and an EOB (End Of Block) code is added. FIG. 18 schematically shows codes corresponding to the coefficient array in such a case. In this way, the encoding process is performed on a block-by-block basis, and this block-by-block process is applied to the entire image. Hereinafter, the code in which this block is a processing unit will be referred to as sequential code data.

【0004】一方、画像を扱うシステムでは画像を階層
的に扱うことが必要とされる。たとえば、図4はブロッ
ク内を3つの階層に分割した様子を模式図で示す。その
ためには符号データを階層的に管理する必要がある。こ
の場合、シーケンシャル符号から階層型符号に変換する
必要があるが、その変換処理は、シーケンシャル符号デ
ータを一度復号して係数を求め、得られた係数を各階層
ごとに順次符号化することで行なわれる。また、階層型
符号をシーケンシャル符号に復号化するには、階層化さ
れた符号データを必要な階層まで読みだして復号し、必
要な階層までの係数を再符号化しシーケンシャル符号デ
ータに変換する必要がある。
On the other hand, in a system that handles images, it is necessary to handle images hierarchically. For example, FIG. 4 schematically shows how a block is divided into three layers. For this purpose, it is necessary to manage code data hierarchically. In this case, it is necessary to convert from a sequential code to a layered code, but this conversion process is performed by decoding the sequential code data once to obtain coefficients, and then sequentially encoding the obtained coefficients for each layer. It will be done. Additionally, in order to decode a layered code into a sequential code, it is necessary to read and decode the layered code data up to the necessary layers, and then re-encode the coefficients up to the necessary layers and convert them into sequential code data. be.

【0005】図6はシーケンシャル符号データを3つの
階層に階層分割することにより、階層型符号データに変
換する過程を模式図で示し、図14は階層型符号データ
の格納状態を模式図で示す。前記のようにシーケンシャ
ル符号データは各ブロック内の係数データA,B,Cを
連続的に扱って符号化しているが、これに対し、階層型
符号データでは各ブロック内の係数データA,B,Cを
独立に扱って符号化し、階層的に管理している。変換処
理の流れについて図6を参照しながら説明すると、まず
、ブロックBLK00のシーケンシャル符号を復号化し
てブロック内の係数A,B,Cを得る。次に、得られた
係数データを順次符号化していく。この場合、Aの係数
データを符号化しBLK00−Aの符号を求め、次に、
Bの係数データを符号化しBLK00−Bの符号を求め
、次に、Cの係数データを符号化しBLK00−Cの符
号を求め、各階層ごとにパッキングして格納する。 一方、図11は階層型符号データを必要な階層までのシ
ーケンシャル符号データに変換する過程をA,B階層の
場合を例に模式図で示す。BLK00について説明する
と、A階層の符号データBLK00−AとB階層の符号
データBLK00−Bをシーケンシャル符号データBL
K00−ABに変換する。この場合、階層Aの符号デー
タと階層Bの符号データは別々にアンパッキングされ、
復号されて係数群A,Bを得る。この係数群A,BはB
LK00内で連続的に扱って符号化され、符号データB
LK00−ABに変換される。このシーケンシャル符号
データBLK00−ABは、図12に示すように、C階
層の係数データをすべて零係数として符号化した符号デ
ータである。このようにして階層化された符号データB
LK00−A,BLK00−Bは、図12に示す係数デ
ータをシーケンシャルに符号化したBLK00−ABに
変換される。
FIG. 6 schematically shows the process of converting sequential code data into hierarchical code data by dividing it into three layers, and FIG. 14 schematically shows the storage state of the hierarchical code data. As mentioned above, sequential code data is encoded by sequentially handling the coefficient data A, B, and C in each block. On the other hand, in hierarchical code data, the coefficient data A, B, and C in each block are encoded. C is treated and encoded independently and managed hierarchically. The flow of the conversion process will be described with reference to FIG. 6. First, the sequential code of block BLK00 is decoded to obtain coefficients A, B, and C within the block. Next, the obtained coefficient data is sequentially encoded. In this case, the coefficient data of A is encoded to find the sign of BLK00-A, and then,
The coefficient data of B is encoded to obtain the code of BLK00-B, and then the coefficient data of C is encoded to obtain the code of BLK00-C, and each layer is packed and stored. On the other hand, FIG. 11 schematically shows the process of converting hierarchical code data into sequential code data up to the required layers, taking the case of A and B layers as an example. To explain BLK00, code data BLK00-A of layer A and code data BLK00-B of layer B are sequential code data BL.
Convert to K00-AB. In this case, the encoded data of layer A and the encoded data of layer B are unpacked separately,
It is decoded to obtain coefficient groups A and B. This coefficient group A and B are B
Continuously handled and encoded within LK00, encoded data B
Converted to LK00-AB. As shown in FIG. 12, this sequential code data BLK00-AB is code data obtained by coding the coefficient data of the C layer as all zero coefficients. Code data B layered in this way
LK00-A and BLK00-B are converted to BLK00-AB, which is obtained by sequentially encoding the coefficient data shown in FIG. 12.

【0006】[0006]

【発明が解決しようとする課題】このような従来の符号
データ変換装置では、(1)シーケンシャル符号データ
を階層型符号データに変換する際に、階層分割数が多く
なれば、各階層ごとに符号データのパッキング処理部を
必要とするのでハードウェア規模が大きくなるとともに
、階層ごとの符号データのパッキング処理部の数を制限
すれば、階層分割数が制限される。
[Problems to be Solved by the Invention] In such a conventional encoded data conversion device, (1) when converting sequential encoded data into hierarchical encoded data, if the number of layer divisions increases, the code is changed for each layer. Since a data packing processing section is required, the hardware scale becomes large, and if the number of code data packing processing sections for each layer is limited, the number of layer divisions is limited.

【0007】(2)階層型符号データを必要な階層まで
のシーケンシャル符号データに変換する際に、階層分割
数が多くなれば、各階層ごとに符号データのアンパッキ
ング処理部を必要とするのでハードウェア規模が大きく
なる。
(2) When converting hierarchical code data into sequential code data up to the required layer, if the number of layer divisions increases, an unpacking processing section for code data is required for each layer, so the hardware The size of the wear increases.

【0008】(3)シーケンシャル符号データを階層型
符号データに変換する場合、階層に分割することで零係
数のランが分断され、零係数のランの発生頻度がシーケ
ンシャル符号の場合と階層型符号の場合では異なるため
圧縮率が低下する。
(3) When converting sequential code data to hierarchical code data, by dividing it into layers, runs with zero coefficients are divided, and the frequency of occurrence of runs with zero coefficients is different between sequential code and hierarchical code. The compression ratio decreases because the case is different.

【0009】本発明は上記の課題を解決するもので、ハ
ードウェア規模を小さくしながら符号データの変換処理
を効果的に実行できる符号データ変換装置を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a code data conversion device that can effectively execute code data conversion processing while reducing the hardware scale.

【0010】0010

【課題を解決するための手段】本発明は上記目的を達成
するために、課題解決の第1の手段として、N×N画素
からなるブロックにおける各階層の係数の個数を設定す
るデータ量設定手段と、入力された符号データから零係
数の個数と非零係数値を得る復号化手段と、階層間で連
続する零係数を検出する検出手段と、階層間で連続する
零係数から各階層に属する零係数の個数を算出する演算
手段と、階層間で零係数が連続する場合は前記演算手段
で得られた零係数の個数と非零係数値を符号化し、階層
間で零係数が連続していない場合は前記復号化手段で得
られた零係数の個数と非零係数値を符号化する符号化手
段と、前記符号化手段において階層順に連続的に生成さ
れる可変長の符号データを各階層ごとにパッキングする
パッキング手段をM個(M:自然数)の階層数の階層型
符号に変換できる分有し、M個を越える階層数の階層型
データへの変換時はM個以下の階層数の階層型符号デー
タへの変換後、さらに、未分割の階層の符号データをM
個以下の階層数の階層型符号データへ変換する処理を繰
り返し、任意の階層数に分割した階層型符号を得るデー
タ変換装置とする。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides a data amount setting means for setting the number of coefficients of each layer in a block consisting of N×N pixels as a first means of solving the problem. , a decoding means for obtaining the number of zero coefficients and a non-zero coefficient value from input code data, a detection means for detecting consecutive zero coefficients between layers, and a decoding means for detecting consecutive zero coefficients between layers belonging to each layer A calculation means for calculating the number of zero coefficients, and if zero coefficients are continuous between layers, encode the number of zero coefficients and non-zero coefficient values obtained by the calculation means, and if zero coefficients are continuous between layers, If not, an encoding means for encoding the number of zero coefficients and non-zero coefficient values obtained by the decoding means, and variable length code data continuously generated in the order of the layers in the encoding means, for each layer. It has packing means capable of converting into a hierarchical code with a number of layers of M (M: a natural number), and when converting to hierarchical data with a number of layers exceeding M, a packing means with a number of layers of less than M is provided. After converting to layered code data, the undivided layer code data is further converted to M
The data converting device repeats the process of converting into hierarchical code data with a number of layers equal to or less than 1, and obtains a hierarchical code divided into an arbitrary number of layers.

【0011】課題解決の第2の手段として、N×N画素
からなるブロックにおける各階層に属する係数の個数を
設定するデータ量設定手段と、少なくとも1つ以上の可
変長の符号データをパッキングするパッキング手段と、
各階層におけるパッキング途中の符号データを一時記憶
する符号データ記憶手段と、処理中の階層の符号語のみ
前記パッキング手段で処理し、処理の中断している階層
の符号語は前記符号データ記憶手段に一時記憶し、処理
が再開すれば前記符号データ記憶手段から処理途中の符
号語を取り出し、前記パッキング手段で処理するように
制御する制御手段を備えたデータ変換装置とする。
A second means for solving the problem is a data amount setting means for setting the number of coefficients belonging to each layer in a block consisting of N×N pixels, and packing for packing at least one or more variable length code data. means and
A code data storage means for temporarily storing code data in the middle of packing in each layer, and a code word of a layer currently being processed is processed by the packing means, and a code word of a layer whose processing is interrupted is stored in the code data storage means. The data converting apparatus may include a control means for temporarily storing the code word and, when processing is resumed, taking out the code word in the middle of processing from the code data storage means and controlling the code word to be processed by the packing means.

【0012】課題解決の第3の手段として、N×N画素
からなるブロックにおける各階層の係数の個数を設定す
るデータ量設定手段と、再生する階層数を設定する階層
数設定手段と、階層型符号データを階層順に取り出し、
各階層ごとにパッキングされた符号データを可変長の符
号語にアンパッキングし、前記符号語に対するアドレス
を生成するアドレス生成手段と、前記アドレス生成手段
でアンパッキング中の符号語を一時記憶する符号データ
記憶手段と、処理中の階層の符号語のみ前記アドレス生
成手段で処理し、処理の中断している階層の符号語は前
記符号データ記憶手段に記憶し、処理が再開すれば前記
符号データ記憶手段から処理途中の符号語を取り出し、
前記アドレス生成手段で処理するように制御する制御手
段と、前記階層型符号データから零係数の個数と非零係
数値を得る復号化手段と、階層間で連続する零係数を検
出する検出手段と、各階層に属する零係数から階層間で
連続する零係数の個数を算出する演算手段と、階層間で
零係数が連続する場合は前記演算手段で得られた零係数
の個数と非零係数値を符号化し、階層間で零係数が連続
していない場合は前記復号化手段で得られた零係数の個
数と非零係数値を符号化する符号化手段を備えたデータ
変換装置とする。
As a third means for solving the problem, a data amount setting means for setting the number of coefficients of each layer in a block consisting of N×N pixels, a layer number setting means for setting the number of layers to be reproduced, and a hierarchical type Extract the code data in hierarchical order,
address generation means for unpacking code data packed for each layer into variable-length code words and generating an address for the code word; code data for temporarily storing the code word being unpacked by the address generation means; The storage means and the code word of the layer currently being processed are processed by the address generation means, the code word of the layer whose processing is interrupted is stored in the code data storage means, and when the processing is resumed, the code word of the layer being processed is stored in the code data storage means. Extract the codeword that is being processed from
A control means for controlling processing by the address generation means, a decoding means for obtaining the number of zero coefficients and a non-zero coefficient value from the hierarchical code data, and a detection means for detecting consecutive zero coefficients between layers. , a calculation means for calculating the number of consecutive zero coefficients between layers from the zero coefficients belonging to each layer, and when zero coefficients are continuous between layers, the number of zero coefficients and non-zero coefficient values obtained by the calculation means. The data conversion apparatus is provided with an encoding means for encoding the number of zero coefficients and the non-zero coefficient value obtained by the decoding means when the zero coefficients are not consecutive between layers.

【0013】[0013]

【作用】本発明は課題解決の第1の手段において、シー
ケンシャル符号データを階層型符号データに変換する際
、分割する階層数分、一度に分割できなければ複数回に
分けて階層的に分割することで、任意の階層数に分割す
る。
[Operation] In the first means of solving the problem, the present invention, when converting sequential encoded data into hierarchical encoded data, divides it hierarchically in multiple times if it cannot be divided at once for the number of layers to be divided. By doing this, it can be divided into any number of layers.

【0014】課題解決の第2の手段において、シーケン
シャル符号データを階層型符号データに変換する際、処
理中の階層の符号語のみパッキング手段で処理し、処理
の中断している階層の符号語は記憶手段に一時記憶し、
処理が再開すれば記憶手段から処理途中の符号語を取り
出し、パッキング手段で処理することで任意の数の階層
分割によるデータ変換を一度に処理する。
In the second means for solving the problem, when sequential code data is converted into hierarchical code data, only the code words of the layer being processed are processed by the packing means, and the code words of the layer whose processing is interrupted are processed by the packing means. Temporarily stored in storage means,
When the processing is restarted, the code word that is being processed is retrieved from the storage means and processed by the packing means, thereby processing data conversion by an arbitrary number of hierarchical divisions at once.

【0015】課題解決の第3の手段において、階層型符
号データをシーケンシャル符号データに変換する際、処
理中の階層の符号語のみアドレス生成手段で処理し、処
理の中断している階層の符号語は記憶手段に一時記憶し
、処理が再開すれば記憶手段から処理途中の符号語を取
り出し、アドレス生成手段で処理することで任意の数の
階層分割によるデータ変換を一度に処理する。
[0015] In the third means for solving the problem, when converting hierarchical code data into sequential code data, only the code word of the layer that is being processed is processed by the address generation means, and the code word of the layer that is currently being processed is processed by the address generating means. is temporarily stored in the storage means, and when the processing is restarted, the code word being processed is retrieved from the storage means and processed by the address generation means, thereby processing data conversion by an arbitrary number of hierarchical divisions at once.

【0016】[0016]

【実施例】(実施例1)以下、本発明の第1の課題解決
手段の一実施例のデータ変換装置について図面を参照し
ながら説明する。
Embodiments (Embodiment 1) Hereinafter, a data conversion device according to an embodiment of the first problem-solving means of the present invention will be described with reference to the drawings.

【0017】図1は本発明の第1の課題解決手段の一実
施例のデータ変換装置におけるシーケンシャル符号デー
タを階層型符号データに変換する符号データ変換装置の
構成をブロック図で示す。図において、100はシーケ
ンシャル符号データからアドレスを生成するアドレス生
成部、101は復号テーブル、102は連続する零ラン
長を一時記憶するレジスタ部、103は非零係数値を一
時記憶するレジスタ部、104はレジスタ部102の零
ラン長とレジスタ部103の非零係数値より係数の個数
を検出するデコーダ部、105はアドレス生成部100
を制御するアドレス生成制御部、106と107はブロ
ック内の各階層の係数の個数を設定する階層内データ量
設定部、108は階層内データ量設定部106と107
で設定されたデータ量の1つを選択し、処理階層の残り
のデータ数を演算する減算部、109は階層間で零係数
が連続する場合に処理中の階層における未処理の係数の
個数と、レジスタ102に記憶されている零ラン長より
各階層に属する零係数の個数を算出する減算部、110
は非零係数値を一時記憶するレジスタ部、111は階層
間で連続する零係数を検出する検出部、112は減算部
109の出力を一時記憶するレジスタ部、113は各階
層を制御する階層制御部、114は符号テーブル、11
5は処理中の階層に応じて符号テーブル114からの出
力をデマルチプレクスするデマルチプレクサ部、116
と117は各階層の符号語を一時記憶するレジスタ部、
118と119は符号長を一時記憶するレジスタ部、1
20は符号長を制御する符号長制御部、121と122
は各階層の符号データを階層ごとにパッキングする符号
データパッキング部、123は符号データパッキング部
121と122のいずれかを選択して出力するマルチプ
レクサ部である。また、符号テーブル114はシーケン
シャル符号に対する符号テーブルと異なるテーブルを用
いることもできる。
FIG. 1 is a block diagram showing the configuration of a code data converter for converting sequential code data into hierarchical code data in a data converter according to an embodiment of the first problem-solving means of the present invention. In the figure, 100 is an address generation unit that generates addresses from sequential code data, 101 is a decoding table, 102 is a register unit that temporarily stores continuous zero run lengths, 103 is a register unit that temporarily stores non-zero coefficient values, and 104 105 is a decoder unit that detects the number of coefficients from the zero run length of the register unit 102 and the non-zero coefficient value of the register unit 103; and 105 is an address generation unit 100.
106 and 107 are intra-layer data amount setting sections that set the number of coefficients in each layer in the block; 108 is intra-layer data amount setting sections 106 and 107
A subtraction unit 109 selects one of the data amounts set in and calculates the number of remaining data in the processing layer, and 109 calculates the number of unprocessed coefficients in the layer being processed when there are consecutive zero coefficients between layers. , a subtraction unit 110 that calculates the number of zero coefficients belonging to each layer from the zero run length stored in the register 102;
111 is a detection unit that detects consecutive zero coefficients between layers; 112 is a register unit that temporarily stores the output of the subtraction unit 109; and 113 is a layer control that controls each layer. part, 114 is a code table, 11
5 is a demultiplexer unit 116 that demultiplexes the output from the code table 114 according to the layer being processed;
and 117 are register units for temporarily storing code words of each layer;
118 and 119 are register units that temporarily store the code length;
20 is a code length control unit that controls the code length, 121 and 122
123 is a code data packing unit that packs the code data of each layer for each layer, and 123 is a multiplexer unit that selects and outputs either code data packing unit 121 or 122. Furthermore, the code table 114 may be a different code table from the code table for sequential codes.

【0018】以下、上記の構成要素の相互関係と動作に
ついて8×8画素からなるブロックの場合を例に、図5
,図7,図8および図10を用いて説明する。図5およ
び図7にブロック内を2度の処理でA,B1,B2の3
つの階層に分割する過程を模式図で示す。まず、1度目
の処理でブロック内をA,Bの2階層に分割し、2階層
の階層型符号データを得る。さらに、2度目の処理でB
階層をB1,B2の2階層に分割し、全体として3つの
階層に分割する。図8に8×8画素のブロック内を3つ
の階層に分割した状態を示す。図において、左上に示し
たDC成分はこのブロックの平均値を示すデータであり
、このDC成分については独立に符号化されるため本説
明では省略する。また、画素の位置に記したK1ないし
K4は非零係数値であり、他の画素の係数値は零係数で
あるとする。シーケンシャル符号化は前記DC成分を除
いて、低周波成分から高周波成分の方向に図16に示し
たようにジグザグに係数値をスキャンして符号化する。 図10(a)は図8に示したブロックを符号化したシー
ケンシャル符号データを示す。
The mutual relationships and operations of the above-mentioned components will be explained below using the case of a block consisting of 8×8 pixels as shown in FIG.
, FIG. 7, FIG. 8, and FIG. 10. Figure 5 and Figure 7 show that 3 of A, B1, and B2 are processed twice in the block.
A schematic diagram shows the process of dividing into two layers. First, in the first process, the inside of the block is divided into two layers, A and B, to obtain hierarchical code data of two layers. Furthermore, in the second process, B
The hierarchy is divided into two hierarchies, B1 and B2, and the whole hierarchy is divided into three hierarchies. FIG. 8 shows a state in which an 8×8 pixel block is divided into three layers. In the figure, the DC component shown in the upper left is data indicating the average value of this block, and since this DC component is encoded independently, it will not be described here. It is also assumed that K1 to K4 written at the pixel positions are non-zero coefficient values, and the coefficient values of other pixels are zero coefficients. In sequential encoding, the coefficient values are scanned and encoded in a zigzag manner from the low frequency component to the high frequency component as shown in FIG. 16, excluding the DC component. FIG. 10(a) shows sequential encoded data obtained by encoding the blocks shown in FIG.

【0019】図1のブロック図において、図10(a)
のシーケンシャル符号データが順次入力される。まず、
図10(a)のシーケンシャル符号データをA、(B1
+B2)の2階層に分割して、図10(b)に示す階層
型符号データを求める動作について説明する。まず、各
階層のデータ量はA階層が5個、(B1+B2)階層の
データ量は58個であるので、階層内データ量設定部1
06と107には“5”と“58”を設定する。次に、
図1のアドレス生成部100にシーケンシャル符号が入
力され、S−CODE1に対するアドレスが生成された
復号テーブル101に与えられる。復号テーブル101
はS−CODE1に対する零ラン3個と非零係数値“K
1”を出力し、零ラン長“3”はレジスタ部102に、
非零係数値“K1”はレジスタ部103に取り込まれる
。減算部108は階層内データ量設定部106のA階層
の内容をセレクトし、検出部111で階層内データ量設
定部106の“5”とレジスタ部102のラン長“3”
を比較し、A階層のデータである旨を減算部109,レ
ジスタ部110およびレジスタ部112に知らせ、レジ
スタ部102のデータをレジスタ部112に、レジスタ
部103のデータを110に取り込む。この場合、レジ
スタ部112は零ラン長“3”、レジスタ部110は非
零係数値“K1”が取り込まれる。符号テーブル114
はレジスタ部112とレジスタ部110のデータをアド
レスとして取り込み、符号データP−CODE−A−1
と符号長を出力する。このデータはデマルチプレクサ部
115でデマルチプレクスされ、符号語レジスタ部11
6と符号長レジスタ部118に取り込まれる。 符号語レジスタ部116のデータはA階層のデータとし
て、符号長制御部120の制御によりパッキング部12
1でパッキングされ、所定量データが溜まれば出力され
る。
In the block diagram of FIG. 1, FIG. 10(a)
sequential code data is input in sequence. first,
The sequential code data in FIG. 10(a) is A, (B1
The operation of dividing the data into two layers (+B2) and obtaining the hierarchical code data shown in FIG. 10(b) will be described. First, the amount of data in each layer is 5 for the A layer and 58 for the (B1+B2) layer, so the intra-layer data amount setting unit 1
06 and 107 are set to "5" and "58". next,
A sequential code is input to the address generation unit 100 of FIG. 1, and the address for S-CODE1 is given to the generated decoding table 101. Decoding table 101
is 3 zero runs and non-zero coefficient value “K” for S-CODE1.
1” is output, and the zero run length “3” is output to the register section 102.
The non-zero coefficient value “K1” is taken into the register section 103. The subtraction unit 108 selects the contents of layer A in the intra-layer data amount setting unit 106, and the detection unit 111 selects “5” in the intra-layer data amount setting unit 106 and the run length “3” in the register unit 102.
The subtraction unit 109, the register unit 110, and the register unit 112 are notified that the data is of layer A, and the data in the register unit 102 is taken into the register unit 112, and the data in the register unit 103 is taken into the register unit 110. In this case, the register section 112 takes in the zero run length "3", and the register section 110 takes in the non-zero coefficient value "K1". code table 114
takes in the data of the register section 112 and the register section 110 as an address, and generates the code data P-CODE-A-1.
and the code length. This data is demultiplexed by the demultiplexer section 115, and the code word register section 11
6 and is taken into the code length register section 118. The data in the code word register section 116 is stored in the packing section 12 under the control of the code length control section 120 as layer A data.
1, and when a predetermined amount of data is accumulated, it is output.

【0020】次に、アドレス生成部100はアドレス生
成制御部105の制御によりS−CODE1の符号長分
だけデータをシフトし、S−CODE2に対するアドレ
スを生成し、復号テーブル101に与える。復号テーブ
ル101はS−CODE2に対する零ラン13個と非零
係数値“K2”を出力し、零ラン長“13”はレジスタ
部102に、非零係数値“K2”はレジスタ部103に
取り込まれ、デコーダ部104を介して階層制御部11
3に取り込まれる。階層制御部113では前回処理した
係数の個数“4”を出力して減算部108に与える。減
算部108では階層内データ量設定部106のA階層の
内容“5”と階層制御部からの出力“4”の差分をとり
“1”を出力する。検出部111では減算部108の内
容“1”とレジスタ部102の内容を比較し、A階層と
B階層間を連続している旨を減算部109,レジスタ部
110およびレジスタ部112に知らせ、レジスタ部1
10およびレジスタ部112に“0”を設定し、符号テ
ーブル114にアドレスとして与える。符号テーブル1
14はEOB符号と符号長を出力する。このデータはデ
マルチプレクサ部でデマルチプレクスされ、符号語レジ
スタ部116と符号長レジスタ部118に取り込まれる
。符号語レジスタ部116のデータはA階層のデータと
して、符号長制御部120の制御によりパッキング部1
21でパッキングされ、所定量データが溜まれば出力さ
れる。次に、減算部109ではレジスタ部102の零ラ
ン長“13”と減算部108の“1”の差分を取り、差
分値“12”を出力してレジスタ部112に取り込む。 符号テーブル114にはレジスタ部112の零ラン長“
12”とレジスタ部110の非零係数値“K2”がアド
レスとして与えられ、符号データP−CODE−B−1
と符号長を出力する。このデータはデマルチプレクサ部
115でデマルチプレクスされ、符号語レジスタ部11
7と符号長レジスタ部119に取り込まれる。符号語レ
ジスタ部117のデータはB階層のデータとして、符号
長制御部120の制御によりパッキング部122でパッ
キングされ、所定量データが溜まれば出力される。 このようにして階層的に符号データを得る。A階層,(
B1+B2)階層の2つの階層に分割した階層型符号を
図10(b)に示す。
Next, address generation section 100 shifts the data by the code length of S-CODE1 under the control of address generation control section 105, generates an address for S-CODE2, and provides it to decoding table 101. The decoding table 101 outputs 13 zero runs and a non-zero coefficient value "K2" for S-CODE2, the zero run length "13" is taken into the register section 102, and the non-zero coefficient value "K2" is taken into the register section 103. , the layer control unit 11 via the decoder unit 104
It will be incorporated into 3. The hierarchy control unit 113 outputs the number of coefficients processed last time, “4”, and provides it to the subtraction unit 108. The subtraction unit 108 takes the difference between the content of the A layer of the intra-layer data amount setting unit 106, “5”, and the output “4” from the hierarchy control unit, and outputs “1”. The detection unit 111 compares the content “1” of the subtraction unit 108 with the content of the register unit 102, informs the subtraction unit 109, the register unit 110, and the register unit 112 that the A and B layers are continuous, and Part 1
10 and the register section 112 are set to "0" and given to the code table 114 as an address. code table 1
14 outputs the EOB code and code length. This data is demultiplexed by the demultiplexer section and taken into the code word register section 116 and code length register section 118. The data in the code word register section 116 is stored in the packing section 1 as A-layer data under the control of the code length control section 120.
21, and when a predetermined amount of data is accumulated, it is output. Next, the subtraction section 109 takes the difference between the zero run length "13" of the register section 102 and "1" of the subtraction section 108, outputs a difference value "12", and takes it into the register section 112. The code table 114 contains the zero run length of the register section 112.
12” and the non-zero coefficient value “K2” of the register section 110 are given as addresses, and the code data P-CODE-B-1
and the code length. This data is demultiplexed by the demultiplexer section 115, and the code word register section 11
7 and is taken into the code length register section 119. The data in the code word register section 117 is packed as B layer data by the packing section 122 under the control of the code length control section 120, and is output when a predetermined amount of data is accumulated. In this way, encoded data is obtained hierarchically. A layer, (
A hierarchical code divided into two layers (B1+B2) layer is shown in FIG. 10(b).

【0021】以上のようにして得た(B1+B2)階層
の階層型符号データをB1階層とB2階層に再分割する
ときは、階層内データ量設定部106と107にB1階
層のデータ量“30”とB2階層のデータ量“28”を
設定し、シーケンシャル符号として(B1+B2)階層
の符号を入力することで実現できる。(B1+B2)階
層をB1階層とB2階層に再分割し、階層型符号に変換
したデータを図10−3に示す。
When redividing the hierarchical code data of the (B1+B2) layer obtained in the above manner into the B1 layer and the B2 layer, the data amount of the B1 layer is set to "30" in the intra-layer data amount setting units 106 and 107. This can be achieved by setting the data amount of the B2 layer to "28" and inputting the code of the (B1+B2) layer as a sequential code. The (B1+B2) hierarchy is subdivided into the B1 hierarchy and the B2 hierarchy, and the data converted into a hierarchical code is shown in FIG. 10-3.

【0022】なお、分割する階層の数、各階層における
係数の数に応じ、符号テーブルを変え、また、符号テー
ブルを階層ごとに変えて対応することができる。
Note that the code table can be changed depending on the number of layers to be divided and the number of coefficients in each layer, or the code table can be changed for each layer.

【0023】(実施例2)以下、本発明の第2の課題解
決手段の一実施例のデータ変換装置について図面を参照
しながら説明する。
(Embodiment 2) A data conversion device according to an embodiment of the second problem-solving means of the present invention will be described below with reference to the drawings.

【0024】図2は本発明の第2の課題解決手段のデー
タ変換装置におけるシーケンシャル符号データを階層型
符号データに変換する符号データ変換装置の構成をブロ
ック図で示す。図において、200はシーケンシャル符
号データからアドレスを生成するアドレス生成部、20
1は復号テーブル、202は連続する零ラン長を一時記
憶するレジスタ部、203は非零係数値を一時記憶する
レジスタ部、204はレジスタ部202の零ラン長とレ
ジスタ部203の非零係数値より係数の個数を検出する
デコーダ部、205はアドレス生成部200を制御する
アドレス生成制御部、206はブロック内の分割可能な
すべての各階層のデータ量を設定する階層内データ量設
定部、208は階層内データ量設定部206で設定され
たデータ量の1つを選択し、処理階層の残りのデータ数
を演算する減算部、209は階層内データ量設定部20
6で設定された各階層のデータ量と、レジスタ202に
記憶されている零ラン長より階層間を連続する零ラン長
を演算する減算部、210は非零係数値を一時記憶する
レジスタ部、211は階層内データ量設定部206で設
定された各階層のデータ量と、レジスタ202に記憶さ
れている零ラン長を比較する比較部、212は減算部2
09の出力を一時記憶するレジスタ部、213は各階層
を制御する階層制御部、214は符号テーブル、215
は処理中の階層に応じて符号テーブル214からの出力
をデマルチプレクスするデマルチプレクサ部、216は
各階層の符号語を一時記憶するレジスタ部、218は符
号長を一時記憶するレジスタ部、220は符号長制御部
、221は各階層の符号データを階層ごとにパッキング
する符号データパッキング部、222はパッキング途中
の符号データを一時記憶するメモリ部である。
FIG. 2 is a block diagram showing the configuration of a code data converter for converting sequential code data into hierarchical code data in the data converter of the second problem solving means of the present invention. In the figure, 200 is an address generation unit that generates an address from sequential code data;
1 is a decoding table, 202 is a register section that temporarily stores continuous zero run lengths, 203 is a register section that temporarily stores non-zero coefficient values, and 204 is the zero run length of register section 202 and the non-zero coefficient value of register section 203. 205 is an address generation control unit that controls the address generation unit 200; 206 is an intra-layer data amount setting unit that sets the data amount of each layer that can be divided within the block; 208 209 is a subtraction unit that selects one of the data amounts set in the intra-layer data amount setting unit 206 and calculates the remaining data number of the processing layer; 209 is an intra-layer data amount setting unit 20
210 is a register unit that temporarily stores non-zero coefficient values; 210 is a register unit that temporarily stores non-zero coefficient values; 211 is a comparison unit that compares the data amount of each layer set by the intra-layer data amount setting unit 206 and the zero run length stored in the register 202; 212 is a subtraction unit 2;
213 is a layer control section that controls each layer; 214 is a code table; 215
216 is a register unit that temporarily stores the code words of each hierarchy; 218 is a register unit that temporarily stores the code length; 220 is a register unit that temporarily stores the code length; A code length control unit 221 is a code data packing unit that packs code data of each layer for each layer, and 222 is a memory unit that temporarily stores code data that is being packed.

【0025】以下、上記の構成要素の相互関係と動作に
ついて図8および図10を用いて説明する。図10(a
)は図8に示したブロックを符号化したシーケンシャル
符号データを示す。図2において、図10(a)に示す
シーケンシャル符号データが順次入力される。まず、こ
のシーケンシャル符号データをA,B1,B2の3階層
に分割して図10(c)に示す階層型符号データを求め
る動作を説明する。各階層のデータ量はA階層が“5”
、B1階層が“30”、B2階層が“28”であるので
、階層内データ量設定部106には“5”,“30”お
よび“28”を設定する。
The mutual relationship and operation of the above-mentioned components will be explained below with reference to FIGS. 8 and 10. Figure 10(a
) indicates sequential encoded data obtained by encoding the blocks shown in FIG. In FIG. 2, sequential code data shown in FIG. 10(a) is inputted one after another. First, the operation of dividing the sequential code data into three layers A, B1, and B2 to obtain the hierarchical code data shown in FIG. 10(c) will be described. The amount of data in each layer is “5” for layer A.
, the B1 layer is “30” and the B2 layer is “28”, so “5”, “30” and “28” are set in the intra-layer data amount setting unit 106.

【0026】次に、図2に示すアドレス生成部200に
シーケンシャル符号が入力される。以降、図1と同様な
動作をし、符号レジスタ部216にA階層の符号語を取
り込む。
Next, the sequential code is input to address generation section 200 shown in FIG. Thereafter, the same operation as in FIG. 1 is performed, and the code word of layer A is taken into the code register section 216.

【0027】A階層の処理中は、符号レジスタ部216
から順次パッキング部221に符号が取り込まれ、所定
量溜まれば出力する。処理がB1階層に移行すれば、パ
ッキング部221の符号データをメモリ222に書き込
み、処理を継続する。この場合、符号テーブル214に
複数の符号テーブルを用意することで、各階層で符号テ
ーブルをダイナミックに切り換えることもできる。符号
レジスタ部216に取り込まれたB1階層の符号語は順
次、パッキング部221に取り込まれ、所定量溜まれば
出力する。
During the processing of layer A, the code register section 216
The codes are sequentially fetched into the packing unit 221 from then on, and when a predetermined amount is accumulated, the codes are output. When the process moves to the B1 layer, the code data of the packing unit 221 is written to the memory 222, and the process continues. In this case, by preparing a plurality of code tables in the code table 214, the code table can be dynamically switched at each layer. The B1 layer code words taken into the code register section 216 are sequentially taken into the packing section 221, and when a predetermined amount is accumulated, they are output.

【0028】次に、処理がB2階層に移行すれば、パッ
キング部221の符号データをメモリ222に書き込み
、処理を継続する。1ブロックの処理が終わって次のブ
ロックに移行すれば、メモリ部222からA階層の処理
途中の符号データをパッキング部221に読みだし、処
理を継続する。
Next, when the process moves to the B2 layer, the code data of the packing section 221 is written into the memory 222, and the process continues. When the processing of one block is completed and the processing moves to the next block, the code data that is being processed in layer A is read out from the memory unit 222 to the packing unit 221, and the processing is continued.

【0029】なお、分割する階層の数、各階層における
係数の数に応じ、符号テーブルを階層ごとに変えて対応
することができる。
Note that the code table can be changed for each layer depending on the number of layers to be divided and the number of coefficients in each layer.

【0030】(実施例3)以下、本発明の第3の課題解
決手段の一実施例のデータ変換装置について図面を参照
しながら説明する。
(Third Embodiment) A data conversion device according to an embodiment of the third problem-solving means of the present invention will be described below with reference to the drawings.

【0031】図3は本発明の第3の課題解決手段の一実
施例のデータ変換装置における階層型符号データをシー
ケンシャル符号データに変換する符号データ変換装置の
構成をブロック図で示す。図において、300は符号デ
ータからアドレスを生成するアドレス生成部、301は
アドレス制御部、302はアンパッキング途中の符号デ
ータを一時記憶するメモリ部、303は復号テーブル、
304は連続する零ラン長を一時記憶するレジスタ部、
305は非零係数値を一時記憶するレジスタ部、306
はレジスタ部304の零ラン長とレジスタ部305の非
零係数値より係数の個数を検出するデコーダ部、307
はブロック内の分割可能なすべての各階層のデータ量を
設定する階層内データ量設定部、308は階層内データ
量設定部307で設定されたデータ量の1つを選択し、
処理階層の残りのデータ数を演算する減算器、309は
階層間で分断されていた零ラン長を連続した零ラン長に
変換する加算部、310は非零係数値を一時記憶するレ
ジスタ部、311は処理中の係数がどの階層の係数か検
出する比較部、312は零ラン長を一時記憶するレジス
タ部、313は階層制御部、314はシーケンシャル符
号に変換したい階層数を設定する階層数設定部、315
は符号テーブル、316は符号を一時記憶するレジスタ
部、317は符号長を一時記憶するレジスタ部、318
はシーケンシャル符号をパッキングするパッキング部、
319は符号長を制御する符号長制御部である。
FIG. 3 is a block diagram showing the configuration of a code data converter for converting hierarchical code data into sequential code data in a data converter according to an embodiment of the third problem-solving means of the present invention. In the figure, 300 is an address generation unit that generates an address from code data, 301 is an address control unit, 302 is a memory unit that temporarily stores code data during unpacking, 303 is a decoding table,
304 is a register unit that temporarily stores continuous zero run length;
305 is a register unit that temporarily stores non-zero coefficient values; 306
307 is a decoder unit that detects the number of coefficients from the zero run length of the register unit 304 and the non-zero coefficient value of the register unit 305;
308 is an intra-layer data amount setting unit that sets the data amount of each layer that can be divided into each block; 308 is an intra-layer data amount setting unit that selects one of the data amounts set in the intra-layer data amount setting unit 307;
309 is an adder that converts zero run lengths divided between layers into continuous zero run lengths; 310 is a register unit that temporarily stores non-zero coefficient values; 311 is a comparison unit that detects which layer the coefficient being processed belongs to, 312 is a register unit that temporarily stores the zero run length, 313 is a layer control unit, and 314 is a layer number setting that sets the number of layers to be converted into a sequential code. Department, 315
is a code table, 316 is a register section for temporarily storing codes, 317 is a register section for temporarily storing code lengths, 318
is a packing part that packs sequential codes,
319 is a code length control unit that controls the code length.

【0032】以下、上記の構成要素の相互関係と動作に
ついて図9,図13を用いて説明する。図13の(a)
,(b)および(c)は図9に示したブロックを3つの
階層に符号化した階層型符号データを示す。ここでは、
B1階層までの係数をシーケンシャル符号に変換する場
合について説明する。まず、階層内データ量設定部30
7に各階層のデータ量を設定する。図9に示したブロッ
クの場合、A階層は“5”、B1階層は“30”、B2
階層は“28”を設定する。また、階層数“2”を階層
数設定部314に設定する。図3において、まず、図1
3(a)に示す階層型符号データが順次入力される。ア
ドレス生成部300では符号データP−CODE−A−
1よりアドレスを生成し、復号テーブル303にアドレ
スを与える。復号テーブル303よりP−CODE−A
−1に対する係数データ、零ラン“3”と非零係数値“
K1”を得る。零ラン“3”はレジスタ部304に、非
零係数値“K1”はレジスタ部305に取り込まれる。 比較器308ではデコーダ306からの係数の個数“4
”とA階層の係数の個数“5”を比較し、A階層の処理
である旨を加算部309,レジスタ部312,レジスタ
部310に知らせる。レジスタ部312はレジスタ部3
04の内容を、レジスタ部310はレジスタ部305の
内容を取り込む。したがって、符号テーブル315には
アドレスとしてレジスタ部312から“3”、レジスタ
部310から“K1”が与えられ、符号語S−CODE
1と符号長を出力し、符号語レジスタ部316と符号長
レジスタ317に取り込む。パッキング部318は符号
語レジスタ316の内容を取り込み、パッキングし、所
定量になれば出力する。次に、アドレス生成部300で
、アドレス生成制御部301の制御によりS−CODE
−A−1の符号長分データをシフトし、EOB符号をア
ドレスとして復号テーブルに与える。ここでEOBが検
出されれば、階層内データ量設定部307のA階層のデ
ータ数“5”と階層制御部313のA階層の処理データ
数“4”の差分値“1”を減算部308で求め、レジス
タ部312に記憶する。アドレス生成部300ではEO
Bの符号長分データをシフトし、メモリ302に一時記
憶する。次に、B1階層のデータをアドレス生成部30
0に読み込み、P−CODE−B1−1よりアドレスを
生成し、復号テーブル303にアドレスを与える。復号
テーブル303よりP−CODE−B1−1に対する係
数データ、零ラン“12”と非零係数値“K2”を得る
。零ラン“12”はレジスタ部304に、非零係数値“
K1”はレジスタ部305に取り込まれる。比較器30
8ではデコーダ306からの係数の個数“13”とB1
階層の係数の個数“30”を比較し、B1階層の処理で
ある旨を加算部309,レジスタ部312,レジスタ部
310に知らせる。レジスタ部312はレジスタ部30
4の内容とレジスタ部312の内容を加算し“13”を
レジスタ312に取り込む。レジスタ部310はレジス
タ部305の内容“K2”を取り込む。したがって、符
号テーブル315にはアドレスとしてレジスタ部312
から“13”、レジスタ部310から“K2”が与えら
れ、符号語S−CODE2と符号長を出力し、符号語レ
ジスタ部316と符号長レジスタ317に取り込む。パ
ッキング部318は符号語レジスタ316の内容を取り
込み、パッキングし、所定量になれば出力する。このよ
うに順次階層型符号データをシーケンシャル符号に変換
する。図13−4にB1階層までの階層型符号データを
シーケンシャル符号に変換したデータを示す。
The mutual relationship and operation of the above-mentioned components will be explained below with reference to FIGS. 9 and 13. Figure 13(a)
, (b) and (c) show hierarchical encoded data obtained by encoding the block shown in FIG. 9 into three layers. here,
A case will be described in which the coefficients up to the B1 layer are converted into sequential codes. First, the intra-tier data amount setting unit 30
7, set the amount of data for each layer. In the case of the block shown in FIG. 9, the A layer is “5”, the B1 layer is “30”, and the B2 layer is “5”.
The hierarchy is set to "28". Further, the number of layers “2” is set in the number of layers setting section 314. In Figure 3, first, Figure 1
The hierarchical code data shown in 3(a) is sequentially input. In the address generation section 300, code data P-CODE-A-
An address is generated from 1 and given to the decoding table 303. P-CODE-A from the decoding table 303
Coefficient data for −1, zero run “3” and non-zero coefficient value “
The zero run "3" is taken into the register section 304, and the non-zero coefficient value "K1" is taken into the register section 305. In the comparator 308, the number of coefficients from the decoder 306 is "4".
” and the number of coefficients in the A layer, “5”, and inform the adding unit 309, the register unit 312, and the register unit 310 that the processing is in the A layer.
The register section 310 takes in the contents of 04 and the contents of the register section 305. Therefore, the code table 315 is given "3" from the register section 312 and "K1" from the register section 310 as addresses, and the code word S-CODE is given as an address.
1 and the code length are output and taken into the code word register section 316 and code length register 317. The packing unit 318 takes in the contents of the code word register 316, packs them, and outputs the contents when a predetermined amount is reached. Next, the address generation unit 300 generates the S-CODE under the control of the address generation control unit 301.
-Shift the data by the code length of A-1 and give the EOB code as an address to the decoding table. If EOB is detected here, the subtraction unit 308 subtracts the difference value “1” between the number of data in the A layer “5” of the intra-layer data amount setting unit 307 and the number of processed data of the A layer “4” of the hierarchy control unit 313. and stores it in the register section 312. In the address generation unit 300, EO
The data is shifted by the code length of B and temporarily stored in the memory 302. Next, the data of the B1 layer is sent to the address generator 30.
0, generates an address from P-CODE-B1-1, and gives the address to the decoding table 303. From the decoding table 303, coefficient data for P-CODE-B1-1, zero run "12" and non-zero coefficient value "K2" are obtained. Zero run “12” is a non-zero coefficient value “12” in the register section 304.
K1'' is taken into the register section 305. Comparator 30
8, the number of coefficients from the decoder 306 is “13” and B1
The number of coefficients in the layers, "30", is compared, and the addition unit 309, register unit 312, and register unit 310 are notified that the processing is for the B1 layer. The register section 312 is the register section 30
The contents of 4 and the contents of the register section 312 are added and "13" is taken into the register 312. The register section 310 takes in the contents "K2" of the register section 305. Therefore, the code table 315 contains the register section 312 as an address.
"13" is given from the register section 310 and "K2" is given from the register section 310, and the code word S-CODE2 and the code length are outputted and taken into the code word register section 316 and the code length register 317. The packing unit 318 takes in the contents of the code word register 316, packs them, and outputs the contents when a predetermined amount is reached. In this way, hierarchical code data is converted into sequential code. FIG. 13-4 shows data obtained by converting hierarchical code data up to the B1 layer into sequential codes.

【0033】[0033]

【発明の効果】以上の実施例から明らかなように、本発
明は連続する零の個数と非零係数値を符号化し、階層的
に管理するデータ変換装置において、(1)−(a)シ
ーケンシャル符号データを階層型符号データに変換する
とき、一度に階層分割できなければ複数回に分けて階層
的に分割することにより、ハードウェア規模を大きくせ
ず、任意の階層数に分割できる。
As is clear from the above embodiments, the present invention provides a data conversion device that encodes the number of consecutive zeros and non-zero coefficient values and manages them hierarchically. When converting code data into hierarchical code data, if it is not possible to divide the code data into layers at once, it can be divided into layers into any number of layers without increasing the hardware scale by dividing the data into layers multiple times.

【0034】(1)−(b)シーケンシャル符号データ
を階層型符号データに変換するとき、処理中の階層の符
号語のみパッキング手段で処理することにより、ハード
ウェア規模を大きくせず、また高速に処理できる。
(1)-(b) When converting sequential code data into hierarchical code data, by processing only the code word of the layer being processed by the packing means, it is possible to increase the speed without increasing the hardware size. Can be processed.

【0035】(2)階層型符号データをシーケンシャル
符号データに変換するとき、処理中の階層の符号語のみ
アドレス生成手段で処理することにより、ハードウェア
規模を大きくせず、また高速に処理できる。
(2) When converting hierarchical code data into sequential code data, only the code word of the layer being processed is processed by the address generation means, thereby enabling high-speed processing without increasing the hardware scale.

【0036】(3)−(a)階層分割により分断された
零係数の発生頻度を考慮した符号テーブルで符号化する
ことにより、効率的に圧縮できる。
(3)-(a) Efficient compression can be achieved by encoding with a code table that takes into consideration the frequency of occurrence of zero coefficients divided by layer division.

【0037】(3)−(b)各階層を階層分割すること
により、分断された零係数の発生頻度を考慮した符号テ
ーブルで符号化するので効率的に圧縮できる。
(3)-(b) By dividing each layer into layers, efficient compression is possible because encoding is performed using a code table that takes into account the frequency of occurrence of divided zero coefficients.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の第1の課題解決手段の一実施例のデー
タ変換装置の構成を示すブロック図
FIG. 1 is a block diagram showing the configuration of a data conversion device according to an embodiment of the first problem-solving means of the present invention.

【図2】本発明の第2の課題解決手段の一実施例のデー
タ変換装置の構成を示すブロック図
FIG. 2 is a block diagram showing the configuration of a data conversion device according to an embodiment of the second problem-solving means of the present invention.

【図3】本発明の第3の課題解決手段の一実施例のデー
タ変換装置の構成を示すブロック図
FIG. 3 is a block diagram showing the configuration of a data conversion device according to an embodiment of the third problem-solving means of the present invention.

【図4】ブロック内を3階層に分割する状態を示す模式
[Figure 4] Schematic diagram showing how the block is divided into three layers

【図5】ブロック内を2階層から3階層に階層分割する
状態を示す模式図
[Figure 5] Schematic diagram showing how the block is divided into layers from 2 to 3 layers

【図6】シーケンシャル符号データを階層分割して階層
型符号データに変換する状態を示す模式図
[Figure 6] Schematic diagram showing how sequential code data is divided into layers and converted into layered code data

【図7】シー
ケンシャル符号データを2階層分割し、さらに3階層型
符号データに変換する状態を示す模式図
[Figure 7] Schematic diagram showing how sequential code data is divided into two layers and further converted into three-layer code data.

【図8】ブロッ
ク内の係数データの状態を示す模式図
[Figure 8] Schematic diagram showing the state of coefficient data in a block

【図9】ブロック
内の係数データの状態を示す模式図
[Figure 9] Schematic diagram showing the state of coefficient data in a block

【図10】図8のブ
ロックのシーケンシャル符号データを階層型符号データ
に変換する状態を示す模式図
FIG. 10 is a schematic diagram showing a state in which sequential code data of the block in FIG. 8 is converted into hierarchical code data.

【図11】階層型符号デー
タをシーケンシャル符号データに変換する状態を示す模
式図
[Figure 11] Schematic diagram showing the state of converting hierarchical code data to sequential code data

【図12】図11のシーケンシャル符号を復号した係数
の配列を示す模式図
[Figure 12] Schematic diagram showing the arrangement of coefficients obtained by decoding the sequential code in Figure 11

【図13】階層型符号データをシーケンシャル符号デー
タに変換する状態を示す模式図
[Figure 13] Schematic diagram showing the state of converting hierarchical code data to sequential code data

【図14】階層型符号データを階層的に格納した模式図
[Figure 14] Schematic diagram of hierarchically storing hierarchical code data

【図15】コサイン変換の変換係数の特徴を示す模式図
[Figure 15] Schematic diagram showing the characteristics of the transform coefficients of cosine transform

【図16】シーケンシャル符号化時に係数をスキャンす
る順序を示す模式図
[Figure 16] Schematic diagram showing the order in which coefficients are scanned during sequential encoding

【図17】ブロック内の非零係数データと零係数の状態
を示す模式図
[Figure 17] Schematic diagram showing the state of non-zero coefficient data and zero coefficients in a block

【図18】図17のブロックの係数を符号化した符号デ
ータを示す模式図
FIG. 18 is a schematic diagram showing encoded data obtained by encoding the coefficients of the block in FIG. 17.

【符号の説明】[Explanation of symbols]

100  アドレス生成部 101  復号テーブル 102,103  レジスタ部 104  デコーダ部 105  アドレス生成制御部 106,107  階層内データ量設定部108  減
算部 109  減算部 110  レジスタ部 111  検出部 112  レジスタ部 113  階層制御部 114  符号テーブル 115  デマルチプレクサ部 116,117  符号語レジスタ部 118,119  符号長レジスタ部 120  符号長制御部 121,122  パッキング部 123  マルチプレクサ部
100 address generation section 101 decoding table 102, 103 register section 104 decoder section 105 address generation control section 106, 107 intra-layer data amount setting section 108 subtraction section 109 subtraction section 110 register section 111 detection section 112 register section 113 layer control section 114 code Table 115 Demultiplexer section 116, 117 Code word register section 118, 119 Code length register section 120 Code length control section 121, 122 Packing section 123 Multiplexer section

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】画像をN×N画素(N:自然数)からなる
ブロックに分割し、前記ブロック内のデータに直交変換
を施した後に量子化を行い、得られた零係数の個数と非
零係数値を符号化した符号データに対し、ブロック内を
少なくとも2つ以上のサブバンドに分割し、前記サブバ
ンドに分割した変換係数を階層的に扱え得るような階層
型符号データに変換するデータ変換装置において、前記
N×N画素からなるブロックにおける各階層の係数の個
数を設定するデータ量設定手段と、入力された符号デー
タから零係数の個数と非零係数値を得る復号化手段と、
階層間で連続する零係数を検出する検出手段と、階層間
で連続する零係数から各階層に属する零係数の個数を算
出する減算手段と、階層間で零係数が連続する場合は前
記演算手段で得られた零係数の個数と非零係数値を符号
化し、階層間で零係数が連続していない場合は前記復号
化手段で得られた零係数の個数と非零係数値を符号化す
る符号化手段と、前記符号化手段において階層順に連続
的に生成される可変長の符号データを各階層ごとにパッ
キングするパッキング手段とをM個(M:自然数)の階
層数の階層型符号に変換できる分だけ備え、M個を越え
る階層数の階層型データへの変換時はM個以下の階層数
の階層型符号データに変換したのち、さらに未分割の階
層の符号データをM個以下の階層数の階層型符号データ
へ変換する処理を繰り返し、任意の階層数に分割した階
層型符号を得るようにしたデータ変換装置。
Claim 1: Divide an image into blocks consisting of N×N pixels (N: natural number), perform orthogonal transformation on the data in the blocks, and then perform quantization, and calculate the number of zero coefficients and non-zero coefficients obtained. Data conversion that divides code data obtained by encoding coefficient values into hierarchical code data that divides the inside of a block into at least two or more subbands and can handle the transform coefficients divided into the subbands hierarchically. In the apparatus, a data amount setting means for setting the number of coefficients in each layer in the block consisting of N×N pixels, and a decoding means for obtaining the number of zero coefficients and the non-zero coefficient value from the input code data;
a detection means for detecting consecutive zero coefficients between layers; a subtraction means for calculating the number of zero coefficients belonging to each layer from consecutive zero coefficients between layers; and, when zero coefficients are continuous between layers, the calculation means. encode the number of zero coefficients and non-zero coefficient values obtained by the decoding means, and if the zero coefficients are not consecutive between layers, encode the number of zero coefficients and the non-zero coefficient values obtained by the decoding means. Converting an encoding means and a packing means for packing variable-length code data continuously generated in the order of layers in the encoding means for each layer into a layered code having M (M: natural number) layers. Prepare as much as possible, and when converting to layered data with more than M layers, convert to layered code data with M or less layers, and then convert undivided layer code data to M or less layers. A data conversion device that repeats the process of converting into a number of hierarchical code data to obtain a hierarchical code divided into an arbitrary number of layers.
【請求項2】画像をN×N画素(N:自然数)からなる
ブロックに分割し、前記ブロック内のデータに直交変換
を施した後に量子化を行い、得られた零係数の個数と非
零係数値を符号化した符号データに対し、ブロック内を
少なくとも2つ以上のサブバンドに分割し、前記サブバ
ンドに分割した変換係数を階層的に扱え得るような階層
型符号データに変換するデータ変換装置において、前記
N×N画素からなるブロックにおける各階層の係数の個
数を設定するデータ量設定手段と、少なくとも1つ以上
の可変長の符号データをパッキングするパッキング手段
と、各階層におけるパッキング途中の符号データを一時
記憶する符号データ記憶手段と、処理中の階層の符号語
のみ前記パッキング手段で処理し、処理の中断している
階層の符号語は前記符号データ記憶手段に一時記憶し、
処理が再開すれば前記符号データ記憶手段から処理途中
の符号語を取り出し、前記パッキング手段で処理するよ
うに制御する制御手段とを備え、シーケンシャル符号か
らブロック内を任意の階層数に分割した階層型符号にデ
ータ変換するようにしたデータ変換装置。
2. Divide an image into blocks consisting of N×N pixels (N: natural number), perform orthogonal transformation on the data in the blocks, and then perform quantization, and calculate the number of zero coefficients and non-zero coefficients obtained. Data conversion that divides code data obtained by encoding coefficient values into hierarchical code data that divides the inside of a block into at least two or more subbands and can handle the transform coefficients divided into the subbands hierarchically. The apparatus includes a data amount setting means for setting the number of coefficients in each layer in the block consisting of N×N pixels, a packing means for packing at least one or more variable length code data, and a data amount setting means for setting the number of coefficients in each layer in the block consisting of N×N pixels, a packing device for packing at least one or more variable length code data, and a data amount setting means for setting the number of coefficients in each layer in the block consisting of N×N pixels, coded data storage means for temporarily storing coded data; only the codewords of the layer currently being processed are processed by the packing means; the codewords of the layer whose processing is being interrupted are temporarily stored in the coded data storage means;
and a control means for controlling the code word to be retrieved from the code data storage means in the middle of processing and processed by the packing means when the processing is restarted, and the block is divided into an arbitrary number of layers from the sequential code. A data conversion device that converts data into codes.
【請求項3】ブロック内を少なくとも2つ以上のサブバ
ンドに分割し、サブバンドに分割した変換係数を階層的
に符号化した階層型符号データを、設定された階層まで
のシーケンシャルな符号に変換するデータ変換方式にお
いて、前記N×N画素からなるブロックにおける各階層
の係数の個数を設定するデータ量設定手段と、再生する
階層数を設定する階層数設定手段と、階層型符号データ
を階層順に取り出し、各階層ごとにパッキングされた符
号データを可変長の符号語にアンパッキングし、前記符
号語に対するアドレスを生成するアドレス生成手段と、
前記アドレス生成手段でアンパッキング中の符号語を一
時記憶する符号データ記憶手段と、処理中の階層の符号
語のみ前記アドレス生成手段で処理し、処理の中断して
いる階層の符号語は前記符号データ記憶手段に記憶し、
処理が再開すれば前記符号データ記憶手段から処理途中
の符号語を取り出し、前記アドレス生成手段で処理する
ように制御する制御手段と、前記階層型符号データから
零係数の個数と非零係数値を得る復号化手段と、階層間
で連続する零係数を検出する検出手段と、各階層に属す
る零係数から階層間で連続する零係数の個数を算出する
演算手段と、階層間で零係数が連続する場合は前記演算
手段で得られた零係数の個数と非零係数値を符号化し、
階層間で零係数が連続していない場合は前記復号化手段
で得られた零係数の個数と非零係数値を符号化する符号
化手段とを備え、ブロック内を任意の階層数に分割した
階層型符号からシーケンシャル符号データに変換するよ
うにしたデータ変換装置。
Claim 3: A block is divided into at least two or more subbands, and the hierarchical code data obtained by hierarchically encoding the transform coefficients divided into subbands is converted into a sequential code up to a set layer. In the data conversion method, the data amount setting means sets the number of coefficients of each layer in the block consisting of N×N pixels, the layer number setting means sets the number of layers to be reproduced, and the layered encoded data is arranged in layer order. address generation means for extracting and unpacking the code data packed for each layer into variable-length code words, and generating an address for the code word;
a code data storage means for temporarily storing the code word being unpacked by the address generation means; and a code data storage means for temporarily storing the code word in the layer being processed; stored in a data storage means;
When the processing is restarted, a control means takes out the code word in the middle of processing from the code data storage means and controls the address generation means to process it; a decoding means for detecting consecutive zero coefficients between layers, a detection means for detecting consecutive zero coefficients between layers, an arithmetic means for calculating the number of consecutive zero coefficients between layers from zero coefficients belonging to each layer, and a decoding means for detecting consecutive zero coefficients between layers; If so, encode the number of zero coefficients and non-zero coefficient values obtained by the calculation means,
If the zero coefficients are not consecutive between layers, the block is divided into an arbitrary number of layers by an encoding means for encoding the number of zero coefficients obtained by the decoding means and the non-zero coefficient values. A data conversion device that converts hierarchical code data into sequential code data.
【請求項4】シーケンシャル符号データを階層型符号デ
ータに変換するとき、分割する階層数、各階層の係数の
数により符号テーブルを変えるようにした請求項1また
は2記載のデータ変換装置。
4. The data conversion device according to claim 1, wherein when converting sequential code data into hierarchical code data, the code table is changed depending on the number of layers to be divided and the number of coefficients in each layer.
【請求項5】シーケンシャル符号データを階層型符号デ
ータに変換するとき、分割する階層数、各階層の係数の
数により各階層で符号テーブルを変えるようにした請求
項1または2記載のデータ変換装置。
5. The data conversion device according to claim 1, wherein when converting sequential code data into hierarchical code data, the code table is changed in each layer depending on the number of layers to be divided and the number of coefficients in each layer. .
JP3035883A 1991-03-01 1991-03-01 Data converter Pending JPH04274674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3035883A JPH04274674A (en) 1991-03-01 1991-03-01 Data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3035883A JPH04274674A (en) 1991-03-01 1991-03-01 Data converter

Publications (1)

Publication Number Publication Date
JPH04274674A true JPH04274674A (en) 1992-09-30

Family

ID=12454409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3035883A Pending JPH04274674A (en) 1991-03-01 1991-03-01 Data converter

Country Status (1)

Country Link
JP (1) JPH04274674A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005046244A1 (en) * 2003-11-11 2005-05-19 Media Glue Corporation Encoded signal separating apparatus, encoded signal combining apparatus, encoded signal separating/combining system, and methods therefor
JP2009544176A (en) * 2006-03-29 2009-12-10 ヴィドヨ,インコーポレーテッド System and method for transcoding between a scalable video codec and a non-scalable video codec
CN103796033A (en) * 2014-01-24 2014-05-14 同济大学 Efficient video coding zero-coefficient early detection method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005046244A1 (en) * 2003-11-11 2005-05-19 Media Glue Corporation Encoded signal separating apparatus, encoded signal combining apparatus, encoded signal separating/combining system, and methods therefor
JP2009544176A (en) * 2006-03-29 2009-12-10 ヴィドヨ,インコーポレーテッド System and method for transcoding between a scalable video codec and a non-scalable video codec
CN103796033A (en) * 2014-01-24 2014-05-14 同济大学 Efficient video coding zero-coefficient early detection method
CN103796033B (en) * 2014-01-24 2017-05-24 同济大学 Efficient video coding zero-coefficient early detection method

Similar Documents

Publication Publication Date Title
EP0725363B1 (en) Image compression apparatus and method
US5341442A (en) Method and apparatus for compression data by generating base image data from luminance and chrominance components and detail image data from luminance component
US5659362A (en) VLSI circuit structure for implementing JPEG image compression standard
US6067384A (en) Fast scaling of JPEG images
JPH08162972A (en) Variable-length encoder using relocation of symbol - code word of code table,and its decoder
JPH04274674A (en) Data converter
JPS61147692A (en) Data compression/expansion method
JPS61135285A (en) Data expander
JP3624450B2 (en) Image data encoding method and image data encoding apparatus
JPS61135286A (en) Picture data compressor
JPH1175182A (en) Method and system for compressing moving image information
JPS61123280A (en) Image data compressing device
JPH0556271A (en) Reverse quantizing method and image data restoring device
JP2698034B2 (en) Code conversion method, code conversion system, and digital data signal processing method
JPH0310486A (en) Moving picture encoder
JP2003333339A (en) Image encoding apparatus and image encoding method
JP3132171B2 (en) Decoded image decoding device
JPH04200173A (en) Coding data converter
JPH04271664A (en) Picture data compressor and picture data decoder
JP3090640B2 (en) Huffman encoding device and Huffman decoding device
JPH05260311A (en) Method for expanding compressed image data
JPH0621828A (en) Vector quantizing decoder
Larrauri A new Algorithm for Lossless Compression applied to two-dimensional Static Images
JPH07222149A (en) Method and device for processing picture
JPH06139346A (en) Huffman decoding circuit and method therefor