JPH0583564A - Image processor - Google Patents

Image processor

Info

Publication number
JPH0583564A
JPH0583564A JP3240794A JP24079491A JPH0583564A JP H0583564 A JPH0583564 A JP H0583564A JP 3240794 A JP3240794 A JP 3240794A JP 24079491 A JP24079491 A JP 24079491A JP H0583564 A JPH0583564 A JP H0583564A
Authority
JP
Japan
Prior art keywords
address
circuit
coefficient
buffer memory
scan
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.)
Withdrawn
Application number
JP3240794A
Other languages
Japanese (ja)
Inventor
Tadayoshi Nakayama
忠義 中山
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3240794A priority Critical patent/JPH0583564A/en
Publication of JPH0583564A publication Critical patent/JPH0583564A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To provide the image processor accelerating an image processing by always fixing time for encoding one pixel block almost equal to one time of scanning. CONSTITUTION:A buffer memory 105 stores image data orthogonally transformed by a discrete cosine transformation(DCT) circuit 101 and quantized by a quantizer (Q) 103. First of all, an address value obtained by passing the output of a zig-zag address generator 106 through an address inverter circuit 107 is supplied through a switch 108 to the buffer memory 105, and the data in the buffer memory 105 are read out by reverse scan from a high-order address to a low-order address. When a significant coefficient detection circuit 109 detects the first significant coefficient of the read data, the output of the zig-zag address generator 106 is initialized to '00' and the switch 108 is changed over to a side (b) and changed to forward scan so as to start encoding. The encoding is finished at the address where the first significant coefficient appears in backward scan.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は直交変換により画像圧縮
を行う画像処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing device for compressing an image by orthogonal transformation.

【0002】[0002]

【従来の技術】写真等の中間調画像をメモリへ記憶する
のに必要なメモリ容量は、(画素数)×(階調ビツト
数)となり、高品位なカラー画像を記憶するためには膨
大なメモリ容量が必要であつた。このため各種の情報量
圧縮方式が提案され、情報量を圧縮した後、メモリへ記
憶することにより、メモリ容量の削減が図られている。
2. Description of the Related Art The memory capacity required to store a halftone image such as a photograph in a memory is (number of pixels) × (number of gradation bits), which is enormous for storing a high-quality color image. Memory capacity was required. For this reason, various information amount compression methods have been proposed, and the amount of memory is reduced by storing the information amount in the memory after compressing the information amount.

【0003】図9は、カラー静止画符号化の国際標準と
して、JPEG(Joint Photographi
c Experts Group)にて提案されている
ベースラインシステム(基本方式)の符号化方式(安
田:「カラー静止画像符号化国際標準化」、画像電子学
会誌、第18巻、第6号pp.398−409,198
9)の構成を示すブロツク図である。
FIG. 9 shows JPEG (Joint Photographic) as an international standard for color still image coding.
c Experts Group) encoding method of a baseline system (basic method) proposed by Yasuda: "International standardization of color still image coding", Journal of Image Electronics Engineers, Vol. 18, No. 6, pp. 398- 409, 198
It is a block diagram which shows the structure of 9).

【0004】図9において、入力端子1より入力された
中間調画像データは、ブロツク化回路2において、8×
8画素のブロツク(以下「画素ブロツク」という)に切
出され、離散コサイン変換(以下「DCT」という)回
路17にて直交変換され、変換係数が量子化器(以下
「Q」という)40に供給される。Q40では、量子化
テーブル(以下「Qテーブル」という)41により印加
される量子化ステツプ情報に従つて、変換係数の線形量
子化を行う。量子化された変換係数のうち、DC係数は
予測符号化回路(以下「DPCM」という)42にて、
前画素ブロツクのDC成分との差分(予測誤差)がとら
れ、1次元ハフマン符号化回路43に供給される。
In FIG. 9, the halftone image data input from the input terminal 1 is 8 × in the block circuit 2.
It is cut out into a block of 8 pixels (hereinafter referred to as “pixel block”), orthogonally transformed by a discrete cosine transform (hereinafter referred to as “DCT”) circuit 17, and a transform coefficient is stored in a quantizer (hereinafter referred to as “Q”) 40. Supplied. In Q40, linear quantization of the transform coefficient is performed according to the quantization step information applied by the quantization table (hereinafter referred to as "Q table") 41. Among the quantized transform coefficients, the DC coefficient is calculated by the predictive coding circuit (hereinafter referred to as “DPCM”) 42.
The difference (prediction error) from the DC component of the previous pixel block is calculated and supplied to the one-dimensional Huffman coding circuit 43.

【0005】図10はDPCM42の詳細な構成を示す
ブロツク図である。Q40より量子化されたDC係数は
遅延回路53および減算器54に印加される。遅延回路
53に入力されたDC係数は、DCT回路17が1画素
ブロツクの演算に必要な時間だけ遅延される。従つて、
遅延回路53からは前画素ブロツクのDC係数が減算器
54に供給され、減算器54は現画素ブロツクと前画素
ブロツクのDC係数の差分(予測誤差)を出力する。
(本予測符号化では予測値として前画素ブロツク値を用
いているため、予測符号化回路は前述のごとく遅延回路
にて構成される。)1次元ハフマン符号化回路43は、
DPCM42より供給された予測誤差信号をDCハフマ
ンテーブル44に従つて可変長符号化し、多重化回路5
1にDCハフマンコードを供給する。
FIG. 10 is a block diagram showing the detailed structure of the DPCM 42. The DC coefficient quantized by Q40 is applied to the delay circuit 53 and the subtractor 54. The DC coefficient input to the delay circuit 53 is delayed by the time required for the DCT circuit 17 to calculate one pixel block. Therefore,
The DC coefficient of the previous pixel block is supplied from the delay circuit 53 to the subtractor 54, and the subtractor 54 outputs the difference (prediction error) between the DC coefficient of the current pixel block and the DC coefficient of the previous pixel block.
(Since the previous pixel block value is used as the prediction value in this prediction coding, the prediction coding circuit is configured by the delay circuit as described above.) The one-dimensional Huffman coding circuit 43
The prediction error signal supplied from the DPCM 42 is variable length coded according to the DC Huffman table 44, and the multiplexing circuit 5
Supply DC Huffman code to 1.

【0006】一方、Q40にて量子化されたAC係数
(DC係数以外の係数)は、スキヤン変換回路45にて
図11に示すように、低次の係数より順にジグザグスキ
ヤンされ、有意係数検出回路46に供給される。有意係
数検出回路46では、量子化されたAC係数が“0”か
“0”以外の有意係数かを判定し、“0”の場合はラン
長カウンタ47にカウントアツプ信号を供給し、カウン
タの値を+1増加させる。AC係数が“0”以外の有意
係数の場合は、リセツト信号をラン長カウンタ47に供
給し、カウンタの値をリセツトするとともに、AC係数
をグループ化回路48に供給する。
On the other hand, the AC coefficient (coefficients other than the DC coefficient) quantized in Q40 is zigzag scanned by the scan coefficient conversion circuit 45 in order from the low-order coefficient, as shown in FIG. 46. The significant coefficient detection circuit 46 determines whether the quantized AC coefficient is "0" or a significant coefficient other than "0", and when it is "0", supplies a count-up signal to the run length counter 47, and Increases the value by +1. When the AC coefficient is a significant coefficient other than "0", the reset signal is supplied to the run length counter 47, the counter value is reset, and the AC coefficient is supplied to the grouping circuit 48.

【0007】ラン長カウンタ47は、“0”のラン長を
カウントする回路で、有意係数と次の有意係数の間に存
在する“0”の数NNNNを2次元ハフマン符号化回路
49に供給する。グループ化回路48では、AC係数を
図12に示すグループ番号SSSSと付加ビツトに分割
し、グループ番号SSSSをハフマン符号化回路49
に、付加ビツトを多重化回路51に供給する。
The run length counter 47 is a circuit for counting the run length of "0", and supplies the number NNNN of "0" existing between the significant coefficient and the next significant coefficient to the two-dimensional Huffman coding circuit 49. .. In the grouping circuit 48, the AC coefficient is divided into the group number SSSS and the additional bit shown in FIG. 12, and the group number SSSS is divided into the Huffman coding circuit 49.
Then, the additional bit is supplied to the multiplexing circuit 51.

【0008】2次元ハフマン符号化回路49は、供給さ
れた“0”のラン長NNNNと有意係数のグループ番号
SSSSをACハフマンコードテーブル50に従つて可
変長符号化し、多重化回路51にACハフマンコードを
供給する。多重化回路51では、1画素ブロツク分のD
Cハフマンコード,ACハフマンコードおよび付加ビツ
トを多重化し、出力端子52から圧縮された画像データ
を出力する。
The two-dimensional Huffman coding circuit 49 performs variable length coding on the supplied run length NNNN of "0" and the group number SSSS of the significant coefficient in accordance with the AC Huffman code table 50, and causes the multiplexing circuit 51 to perform AC Huffman coding. Supply the code. In the multiplexing circuit 51, D for one pixel block
The C Huffman code, the AC Huffman code, and the additional bit are multiplexed, and the compressed image data is output from the output terminal 52.

【0009】従つて、出力端子52から出力された圧縮
画像データをメモリに記憶し、読出し時に逆操作によつ
て伸張することにより、画像メモリ容量の削減が可能で
ある。一般に、イメージスキヤナなどにより入力した写
真などの中間調画像は、DCTなど直交変換されたブロ
ツクの低域に有意係数が集中しやすく、高域は“0”に
なることが多い。前述の可変長符号化動作は、該ブロツ
クのAC係数をジグザグスキヤンしたときに、最後に現
れる有意係数まで実行される。ゆえに、高次のAC係数
がすべて“0”になり、最後に現れる有意係数が低次に
なればなるほど、可変長符号化による圧縮が効率よく行
われる。
Therefore, it is possible to reduce the image memory capacity by storing the compressed image data output from the output terminal 52 in the memory and expanding it by the reverse operation at the time of reading. Generally, in a halftone image such as a photograph input by using an image scanner, significant coefficients are likely to be concentrated in the low range of an orthogonally transformed block such as DCT, and the high range is often "0". The variable length coding operation described above is executed until the last significant coefficient that appears when the AC coefficient of the block is zigzag scanned. Therefore, as the high-order AC coefficients are all “0” and the last significant coefficient appears in the lower order, the compression by the variable length coding is performed more efficiently.

【0010】[0010]

【発明が解決しようとしている課題】しかし、上記従来
例における画像処理には次のような問題点があつた。図
11に示すジグザグスキヤンを1回行つただけでAC係
数の可変長符号化を完了させることは難しい。というの
は、1回のジグザグスキヤンでは現れた有意係数が最後
の有意係数であるかどうか判定できないからである。
However, the image processing in the above conventional example has the following problems. It is difficult to complete the variable length coding of the AC coefficient by performing the zigzag scan shown in FIG. 11 once. This is because it is not possible to determine whether the significant coefficient that appears in one zigzag scan scan is the last significant coefficient.

【0011】そこで従来は、ジグザグスキヤンを2回行
い、1回目のジグザグスキヤンにおいて最後の有意係数
を検出し、2回目のジグザグスキヤンにおいて、先に検
出した最後の有意係数まで符号化を行つていた。従つ
て、高速な符号化が望めず画像処理が遅くなるという欠
点があつた。
Therefore, conventionally, zigzag scanning is performed twice, the last significant coefficient is detected in the first zigzag scanning, and encoding is performed up to the last significant coefficient detected in the second zigzag scanning. It was Therefore, there is a drawback that high-speed encoding cannot be expected and image processing becomes slow.

【0012】[0012]

【課題を解決するための手段】本発明は、前記の課題を
解決することを目的としたもので、前記の課題を解決す
る一手段として以下の構成を備える。直交変換により画
像圧縮を行う画像処理装置であつて、直交変換係数を記
憶する記憶手段と、アドレス発生手段から得られたアド
レス値の各ビツトを反転するアドレス反転手段と、前記
アドレス発生手段が発生したアドレス値または前記アド
レス反転手段から得られたアドレス値のどちらかを前記
記憶手段に供給する切り換え手段とを有する画像処理装
置とする。
SUMMARY OF THE INVENTION The present invention is intended to solve the above problems, and has the following structure as one means for solving the above problems. An image processing apparatus for performing image compression by orthogonal transformation, comprising storage means for storing orthogonal transformation coefficients, address inverting means for inverting each bit of an address value obtained from the address generating means, and the address generating means. And an address value obtained from the address inverting means to the storage means.

【0013】[0013]

【作用】以上の構成によつて、高速な符号化が可能で画
像処理の速い画像処理装置を提供できる。
With the above structure, it is possible to provide an image processing apparatus capable of high-speed encoding and fast image processing.

【0014】[0014]

【実施例】以下図面を参照して本発明に係る一実施例を
詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described in detail below with reference to the drawings.

【0015】[0015]

【第1実施例】図1は第1実施例の構成例を示すブロツ
ク図である。本発明の目的は、直交変換係数の内、AC
係数の符号化を高速にすることにあり、DC係数の符号
化方法は従来と同じである。よつて図1では、AC係数
の符号化に必要な構成例のみ示し、DC係数の符号化に
必要な構成の詳細は省略した。
[First Embodiment] FIG. 1 is a block diagram showing a configuration example of the first embodiment. An object of the present invention is to use AC among the orthogonal transform coefficients.
Since the coefficient coding is performed at high speed, the DC coefficient coding method is the same as the conventional method. Therefore, in FIG. 1, only the configuration example required for encoding the AC coefficient is shown, and details of the configuration required for encoding the DC coefficient are omitted.

【0016】図1において、100はブロツク化回路、
101はDCT回路、102はQテーブル、103は
Q、104はスキヤン変換部、105はバツフアメモ
リ、106はジグザグアドレス発生回路、107はアド
レス反転回路、108はアドレスを切り換えるスイツ
チ、109は有意係数検出回路、110はラン長カウン
タ、111はグループ化回路、112は2次元ハフマン
符号化回路、113はACハフマンテーブル、114は
多重化回路、115はDCハフマン符号化部、116は
出力端子、117は入力端子である。
In FIG. 1, 100 is a block circuit,
101 is a DCT circuit, 102 is a Q table, 103 is Q, 104 is a scan conversion unit, 105 is a buffer memory, 106 is a zigzag address generation circuit, 107 is an address inversion circuit, 108 is an address switching switch, and 109 is a significant coefficient detection circuit. , 110 is a run length counter, 111 is a grouping circuit, 112 is a two-dimensional Huffman coding circuit, 113 is an AC Huffman table, 114 is a multiplexing circuit, 115 is a DC Huffman coding unit, 116 is an output terminal, 117 is an input It is a terminal.

【0017】また図2〜図7は、図1の動作を説明する
ための図で、図2,図3,図5〜図7はバツフアメモリ
105およびバツフアメモリ105のスキヤン状態の模
式図、図4はバツフアメモリ105のスキヤンするアド
レスの順番を示す図である。入力端子117より入力さ
れた中間調画像データは、ブロツク化回路100におい
て、8×8画素の画素ブロツクに切出され、DCT回路
101にて直交変換され、変換係数がQ103に供給さ
れる。
2 to 7 are views for explaining the operation of FIG. 1. FIGS. 2, 3 and 5 to 7 are schematic diagrams of the buffer memory 105 and a scan state of the buffer memory 105, and FIG. FIG. 6 is a diagram showing the order of scanning addresses in the buffer memory 105. The halftone image data input from the input terminal 117 is cut out into pixel blocks of 8 × 8 pixels in the block converting circuit 100, subjected to orthogonal transform in the DCT circuit 101, and the transform coefficient is supplied to Q103.

【0018】Q103では、Qテーブル102により印
加される量子化ステツプ情報に従つて、変換係数の線形
量子化を行う。量子化された変換係数のうち、DC係数
はDCハフマン符号化部115で、従来と同様の構成・
方法で符号化される。一方、AC係数は、スキヤン変換
部104に送られ、スキヤン変換部104内のバツフア
メモリ105に格納される。
At Q103, linear quantization of the transform coefficient is performed according to the quantization step information applied by the Q table 102. Among the quantized transform coefficients, the DC coefficient is the DC Huffman coding unit 115 and has the same configuration as the conventional one.
Encoded in the method. On the other hand, the AC coefficient is sent to the scan conversion unit 104 and stored in the buffer memory 105 in the scan conversion unit 104.

【0019】従来、ジグザグアドレス発生器106が出
力するアドレス値によつて、バツフアメモリ105に格
納されたAC係数が読み出され、図11に示す順序でA
C係数が出力された。本実施例では、ジグザグアドレス
発生器106から出力されたアドレス、または該アドレ
スの各ビツトをアドレス反転回路107で反転したアド
レスをスイツチ108で選択してバツフアメモリ105
に印加する。
Conventionally, the AC coefficient stored in the buffer memory 105 is read according to the address value output from the zigzag address generator 106, and the A coefficient is read in the order shown in FIG.
The C coefficient was output. In the present embodiment, the address output from the zigzag address generator 106 or the address obtained by inverting each bit of the address by the address inverting circuit 107 is selected by the switch 108 and the buffer memory 105 is selected.
Apply to.

【0020】従つて、スイツチ108がa側に接続され
ているときは、図2に示すように高域から低域へ向け
て、逆方向へジグザグスキヤンしながら、AC係数をバ
ツフアメモリ105から読み出す。スイツチ108がb
側に接続されているときは、図3に示すように低域から
高域へ向けて、順方向へジグザグスキヤンしながら、A
C係数をバツフアメモリ105から読み出す。
Therefore, when the switch 108 is connected to the a side, the AC coefficient is read from the buffer memory 105 while zigzag scanning in the reverse direction from the high band to the low band as shown in FIG. Switch 108 is b
When it is connected to the side, as shown in FIG. 3, from the low range to the high range, while zigzagging in the forward direction, A
The C coefficient is read from the buffer memory 105.

【0021】なお、スキヤンのスタートが、従来例では
図11に示すように、DC成分のすぐ右隣のアドレスか
らなのに対して、本実施例ではDC成分に対応するアド
レスからである。図4は本実施例のスキヤンのスタート
がDC成分に対応するアドレスになることを説明する図
である。図4に示すアドレスは、図2および図3に示す
8×8の各ブロツクの位置を0〜7の数字2桁で表して
いる。アドレスの上位桁は水平方向を表し、水平方向空
間周波数の低側が“0”、水平方向空間周波数の高側が
“7”である。アドレスの下位桁は垂直方向を表し、垂
直方向空間周波数の低側が“0”、垂直方向空間周波数
の高側が“7”である。例えばDC成分のアドレスは
“00”、DC成分のすぐ右隣のアドレスは“10”で
表わされる。
In the conventional example, as shown in FIG. 11, the start of scanning starts from the address immediately to the right of the DC component, whereas in the present embodiment, it starts from the address corresponding to the DC component. FIG. 4 is a diagram for explaining that the scan start of this embodiment is an address corresponding to the DC component. The addresses shown in FIG. 4 represent the positions of the 8 × 8 blocks shown in FIGS. 2 and 3 by the two-digit numbers 0 to 7. The upper digit of the address represents the horizontal direction, and the low side of the horizontal spatial frequency is "0" and the high side of the horizontal spatial frequency is "7". The lower digit of the address represents the vertical direction, and the low side of the vertical spatial frequency is "0" and the high side of the vertical spatial frequency is "7". For example, the address of the DC component is represented by "00", and the address immediately to the right of the DC component is represented by "10".

【0022】図4に示すように、従来例のスキヤンはア
ドレス“10”からスタートし、“01”,“02”と
進んで“77”で終了するのに対して、本実施例の逆方
向スキヤンではアドレス“77”からスタートさせる必
要がある。このためアドレス発生器は、“77”の各ビ
ツトを反転させた“00”からアドレスを発生する必要
があり、本実施例の順方向スキヤンはアドレス“00”
からスタートし、“10”,“01”,“02”と進ん
で“77”で終了する。
As shown in FIG. 4, the scanning in the conventional example starts from the address "10", proceeds to "01" and "02", and ends at "77", whereas the reverse direction of the present embodiment. In Sukiyan, it is necessary to start from address "77". Therefore, the address generator needs to generate an address from "00" which is the bit of "77" inverted, and the forward scan in this embodiment is the address "00".
It starts from "10", "01", "02", and ends at "77".

【0023】以上説明したような逆方向スキヤンによ
り、バツフアメモリ105からAC係数を読み出すと、
通常いくつかの“0”が出力された後、最初の有意係数
が現れる。逆方向スキヤンで最初に現れた有意係数は、
順方向スキヤンにおける最後の有意係数になるので、逆
方向スキヤンで最初に有意係数が現れたアドレスまで、
順方向スキヤンで符号化すればよい。
When the AC coefficient is read from the buffer memory 105 by the reverse scan as described above,
Usually after the output of some "0" s, the first significant coefficient appears. The first significant coefficient that appears in the backward scan is
Since it becomes the last significant coefficient in forward scan, up to the address where the first significant coefficient appears in backward scan,
It may be encoded by forward scan.

【0024】そこで逆方向スキヤンの途中、有意係数検
出回路109で最初の有意係数を検出したら、有意係数
検出回路109により、ジグザグアドレス発生器106
の出力を“00”に初期化し、スイツチ108をb側に
切り換えて順方向スキヤンに変更する。続いて、AC係
数の符号化が開始される。AC係数の符号化は、逆方向
スキヤンで最初の有意係数が現れたアドレスで終了す
る。
Therefore, when the first significant coefficient is detected by the significant coefficient detection circuit 109 during the backward scan, the significant coefficient detection circuit 109 causes the zigzag address generator 106 to operate.
Is initialized to "00" and the switch 108 is switched to the b side to change to the forward scan. Then, encoding of the AC coefficient is started. The coding of the AC coefficient ends at the address where the first significant coefficient appeared in the backward scan.

【0025】以上の処理を図5〜図7を参照して詳細に
説明する。図5はの斜線部は有意係数である。図6は、
図5の状態のバツフアメモリ105を逆方向スキヤンし
ている様子を示す。図7は、図5の状態のバツフアメモ
リ105を順方向スキヤンしている様子を示す。バツフ
アメモリ105が図5の状態のときは、逆方向スキヤン
は図6の斜線部(アドレス“12”)で終了し、その
後、図7の順方向スキヤンに移る。
The above processing will be described in detail with reference to FIGS. In FIG. 5, the shaded area is a significant coefficient. Figure 6
6 shows a state in which the buffer memory 105 in the state shown in FIG. 5 is being scanned backward. FIG. 7 shows a state in which the buffer memory 105 in the state of FIG. 5 is forward scanned. When the buffer memory 105 is in the state shown in FIG. 5, the backward scan ends at the shaded area (address “12”) in FIG. 6, and then the forward scan in FIG.

【0026】以上のように、逆方向スキヤン,順方向ス
キヤンを通じて、スキヤンするバツフアメモリ105の
アドレスは延べ65個で一定である。即ち、1画素ブロ
ツクのAC係数の符号化に要する時間は、常に一定で、
ジグザグスキヤン1回分の時間と略同等である。有意係
数検出回路を出た後の符号化処理については、従来例と
同じであるので簡単に説明する。
As described above, the address of the buffer memory 105 to be scanned is constant at a total of 65 through the backward scan and the forward scan. That is, the time required to encode the AC coefficient of one pixel block is always constant,
It is approximately the same as the time for one zigzag skiyan. The encoding process after exiting the significant coefficient detection circuit is the same as that of the conventional example, and therefore will be briefly described.

【0027】有意係数検出回路109は、量子化された
AC係数が“0”かどうかを判定し、“0”の場合はラ
ン長カウンタ110にカウントアツプ信号を供給し、カ
ウンタの値を+1増加させる。AC係数が“0”以外の
有意係数の場合は、リセツト信号をラン長カウンタ11
0に供給し、カウンタの値をリセツトするとともに、A
C係数をグループ化回路111に供給する。
The significant coefficient detection circuit 109 determines whether the quantized AC coefficient is "0", and when it is "0", supplies a count-up signal to the run length counter 110 and increments the counter value by +1. Let When the AC coefficient is a significant coefficient other than "0", the reset signal is sent to the run length counter 11
0, reset the counter value, and set A
The C coefficient is supplied to the grouping circuit 111.

【0028】ラン長カウンタ110は、“0”のラン長
をカウントする回路で、有意係数と次の有意係数の間に
存在する“0”の数NNNNを2次元ハフマン符号化回
路112に供給する。グループ化回路111では、AC
係数をグループ番号SSSSと付加ビツトに分割し、グ
ループ番号SSSSを2次元ハフマン符号化回路112
に、付加ビツトを多重化回路114へ供給する。
The run length counter 110 is a circuit for counting the run length of "0", and supplies the number NNNN of "0" existing between the significant coefficient and the next significant coefficient to the two-dimensional Huffman coding circuit 112. .. In the grouping circuit 111, the AC
The coefficient is divided into a group number SSSS and additional bits, and the group number SSSS is divided into two-dimensional Huffman coding circuit 112.
Then, the additional bit is supplied to the multiplexing circuit 114.

【0029】2次元ハフマン符号化回路112は、供給
された“0”のラン長NNNNと有意係数のグループ番
号SSSSをACハフマンテーブル113に従つて可変
長符号化し、多重化回路114にACハフマンコードを
供給する。多重化回路114では、DCハフマン処理部
115から送られてきた1画素ブロツク分のDCハフマ
ンコードと、1画素ブロツク分のACハフマンコードお
よび付加ビツトを多重化し、出力端子116から圧縮画
像データを出力する。
The two-dimensional Huffman coding circuit 112 performs variable length coding on the supplied run length NNNN of "0" and the group number SSSS of the significant coefficient in accordance with the AC Huffman table 113, and the multiplexing circuit 114 executes the AC Huffman code. To supply. The multiplexing circuit 114 multiplexes the DC Huffman code for one pixel block sent from the DC Huffman processing unit 115, the AC Huffman code for one pixel block and the additional bit, and outputs compressed image data from the output terminal 116. To do.

【0030】本実施例の説明と図3,図7では、逆方向
スキヤンから順方向スキヤンへの切り換え時に、ジグザ
グアドレス発生器106を“00”に初期化する例を示
したが、ジグザグアドレス発生器106に初期値“1
0”を与えてもよい。ジグザグアドレス発生器106に
初期値“10”を与えた場合、バツフアメモリ105の
アドレス“00”がスキヤン対象外となるので、さらに
AC係数の符号化を高速にできる。
In the description of this embodiment and FIGS. 3 and 7, an example in which the zigzag address generator 106 is initialized to "00" at the time of switching from the backward scan to the forward scan is shown. Initial value "1"
0 ”may be given. When the initial value“ 10 ”is given to the zigzag address generator 106, the address“ 00 ”of the buffer memory 105 is not subject to scanning, so that the coding of the AC coefficient can be further speeded up.

【0031】また本実施例の説明と図1では、8×8画
素のDCTによる直交変換を用いて説明しているが、本
実施例はこれに限定されるものではなく、任意のブロツ
クサイズと任意の方法による直交変換で実施できること
はいうまでもない。以上説明したように本実施例によれ
ば、1画素ブロツクのAC係数の符号化に要する時間
は、常に一定で、ジグザグスキヤン1回分の時間と略同
等となり、高速な符号化が可能な画像処理装置とするこ
とができる。
In the description of this embodiment and FIG. 1, the orthogonal transformation by the DCT of 8 × 8 pixels is used. However, this embodiment is not limited to this, and any block size can be used. It goes without saying that the orthogonal transformation can be performed by an arbitrary method. As described above, according to the present embodiment, the time required for encoding the AC coefficient of one pixel block is always constant and is substantially equal to the time required for one zigzag scan scan, and image processing capable of high-speed encoding is performed. It can be a device.

【0032】[0032]

【第2実施例】以下、本発明に係る第2実施例を説明す
る。第2実施例においては、第1実施例と同様な構成に
ついては同一符号を付し詳細説明を省略する。図8は本
発明に係る第2実施例の構成例を示す図であり、図1に
示す第1実施例のスキヤン変換部104において、ジグ
ザグアドレス発生器106をバイナリカウンタ203に
変え、さらにデイクリメント回路202とジグザグ変換
回路201を追加した構成としたものである。
[Second Embodiment] A second embodiment of the present invention will be described below. In the second embodiment, the same components as those in the first embodiment are designated by the same reference numerals and detailed description thereof will be omitted. FIG. 8 is a diagram showing a configuration example of the second embodiment according to the present invention. In the scan conversion unit 104 of the first embodiment shown in FIG. 1, the zigzag address generator 106 is replaced with a binary counter 203, and further decrement is performed. The circuit 202 and the zigzag conversion circuit 201 are added.

【0033】以下、本実施例のスキヤン変換部104の
動作説明を行う。Q103から送られてきたAC係数
は、ジグザグ変換回路201によつて、例えば図11に
示すような順方向スキヤンの順序に変換された上、バツ
フアメモリ105に格納される。格納するAC係数は6
3個なので、AC係数はバツフアメモリ105の0番地
から62番地に格納される。
The operation of the scan conversion unit 104 of this embodiment will be described below. The AC coefficient sent from Q103 is converted into a forward scan order as shown in FIG. 11 by the zigzag conversion circuit 201, and then stored in the buffer memory 105. AC coefficient to store is 6
Since there are three AC coefficients, the AC coefficients are stored in addresses 0 to 62 of the buffer memory 105.

【0034】つまり、AC係数をバツフアメモリ105
へ格納する以前に、ジグザグ変換回路201にて順方向
スキヤンの順序に並替え、並替えたAC係数をバツフア
メモリ105へ格納するのである。バイナリカウンタ2
03から出力される値をアドレスとして、バツフアメモ
リ105からAC係数を読み出すと、格納時と同じ順
序、つまり順方向スキヤンと同じ順序でAC係数が出力
される。
That is, the AC coefficient is stored in the buffer memory 105.
Before storing in the buffer memory 105, the zigzag conversion circuit 201 rearranges in the forward scan order and stores the rearranged AC coefficients in the buffer memory 105. Binary counter 2
When the AC coefficient is read from the buffer memory 105 using the value output from 03 as an address, the AC coefficient is output in the same order as when storing, that is, the same order as the forward scan.

【0035】バイナリカウンタ203の出力の各ビツト
をアドレス反転回路107で反転し、さらにアドレス反
転回路107の出力をデイクリメント回路202にてデ
イクリメントした値をアドレスとして、バツフアメモリ
105からAC係数を読み出すと、格納時と逆の順序、
つまり逆方向スキヤンと同じ順序でAC係数が出力され
る。
When each bit of the output of the binary counter 203 is inverted by the address inverting circuit 107, and the output of the address inverting circuit 107 is decremented by the decrementing circuit 202, the AC coefficient is read from the buffer memory 105 by using the value as an address. , In reverse order of storage,
That is, the AC coefficient is output in the same order as the backward scan.

【0036】デイクリメント回路202はアドレス反転
回路107で得られたアドレスを補正するために必要で
ある。バイナリカウンタ203の初期値“0”をアドレ
ス反転回路107に通して得られる値は“63”であ
り、一方、先に説明したように一番最後(63個目)の
AC係数を格納するのは62番地である。つまり、アド
レス反転回路107から得られる値とバツフアメモリ1
05の格納アドレスには1の差があるので、この差をデ
イクリメント回路202で補正している。
The decrement circuit 202 is necessary to correct the address obtained by the address inversion circuit 107. The value obtained by passing the initial value “0” of the binary counter 203 through the address inverting circuit 107 is “63”, while the last (63rd) AC coefficient is stored as described above. Is 62. That is, the value obtained from the address inversion circuit 107 and the buffer memory 1
Since the storage address of 05 has a difference of 1, this difference is corrected by the decrement circuit 202.

【0037】本実施例のスキヤン変換部104以外の動
作は第1実施例と同様なので説明を省略する。以上説明
したように本実施例によれば、第1実施例と同じく、1
画素ブロツクのAC係数の符号化に要する時間は、常に
一定で、ジグザグスキヤン1回分の時間と略同等とな
り、高速な符号化が可能な画像処理装置とすることがで
きる。さらに本実施例では、第1実施例のジグザグアド
レス発生器に代つて、バイナリカウンタを利用でき、ア
ドレス発生器を簡略化できる。
The operation other than the scan conversion unit 104 of this embodiment is the same as that of the first embodiment, and therefore its explanation is omitted. As described above, according to this embodiment, as in the first embodiment,
The time required to encode the AC coefficient of the pixel block is always constant, and is substantially equal to the time required for one zigzag scan, so that the image processing apparatus capable of high-speed encoding can be obtained. Furthermore, in this embodiment, a binary counter can be used instead of the zigzag address generator of the first embodiment, and the address generator can be simplified.

【0038】なお本発明は、複数の機器から構成される
システムに適用しても、1つの機器からなる装置に適用
しても良い。また本発明は、システムあるいは装置にプ
ログラムを供給することによつて達成される場合にも適
用できることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0039】[0039]

【発明の効果】以上説明したように本発明によれば、高
速な符号化が可能で画像処理の速い画像処理装置を提供
できる。
As described above, according to the present invention, it is possible to provide an image processing apparatus capable of high-speed encoding and fast image processing.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係る一実施例の構成例を示すブロツク
図である。
FIG. 1 is a block diagram showing a configuration example of an embodiment according to the present invention.

【図2】本実施例におけるDCT係数の逆方向スキヤン
の様子を示す模式図である。
FIG. 2 is a schematic diagram showing a state of reverse scanning of DCT coefficients in the present embodiment.

【図3】本実施例におけるDCT係数の順方向スキヤン
の様子を示す模式図である。
FIG. 3 is a schematic diagram showing a state of forward scanning of DCT coefficients in the present embodiment.

【図4】本実施例におけるスキヤンするアドレスの順番
を示した図である。
FIG. 4 is a diagram showing the order of scanning addresses in this embodiment.

【図5】本実施例におけるDCT後の有意係数の発生状
態例を示す図である。
FIG. 5 is a diagram showing an example of a state of occurrence of significant coefficients after DCT in the present embodiment.

【図6】本実施例におけるDCT係数の逆方向スキヤン
範囲例を示す図である。
FIG. 6 is a diagram showing an example of a backward scan range of DCT coefficients in the present embodiment.

【図7】本実施例におけるDCT係数の順方向スキヤン
範囲例を示す図である。
FIG. 7 is a diagram showing an example of a forward scan range of DCT coefficients in the present embodiment.

【図8】本発明に係る第2実施例の構成例を示すブロツ
ク図である。
FIG. 8 is a block diagram showing a configuration example of a second embodiment according to the present invention.

【図9】従来の構成を示すブロツク図である。FIG. 9 is a block diagram showing a conventional configuration.

【図10】従来の予測符号化回路の構成を示す図であ
る。
FIG. 10 is a diagram showing a configuration of a conventional predictive coding circuit.

【図11】従来のDCT係数の順方向スキヤンの様子を
示す図である。
FIG. 11 is a diagram showing a conventional forward scan of DCT coefficients.

【図12】従来のAC係数とグループ番号との関係を説
明する図である。
FIG. 12 is a diagram illustrating a relationship between a conventional AC coefficient and a group number.

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

100 ブロツク化回路 101 DCT回路 103 量子化器Q 104 スキヤン変換部 105 バツフアメモリ 106 ジグザグアドレス発生器 107 アドレス反転回路 108 スイツチ 109 有意係数検出回路 110 ラン長カウンタ 111 グループ化回路 112 2次元ハフマン符号化回路 114 多重化回路 115 DCハフマン符号化部 201 ジグザグ変換回路 202 デイクリメント回路 203 バイナリカウンタ 100 Blocking Circuit 101 DCT Circuit 103 Quantizer Q 104 Scanyan Transform Unit 105 Buffer Memory 106 Zigzag Address Generator 107 Address Inversion Circuit 108 Switch 109 Significant Coefficient Detection Circuit 110 Run Length Counter 111 Grouping Circuit 112 Two-Dimensional Huffman Coding Circuit 114 Multiplexing circuit 115 DC Huffman coding unit 201 Zigzag conversion circuit 202 Decrementing circuit 203 Binary counter

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 直交変換により画像圧縮を行う画像処理
装置であつて、 直交変換係数を記憶する記憶手段と、 アドレス発生手段から得られたアドレス値の各ビツトを
反転するアドレス反転手段と、 前記アドレス発生手段から得られたアドレス値または前
記アドレス反転手段から得られたアドレス値のどちらか
を前記記憶手段に供給する切り換え手段とを有すること
を特徴とする画像処理装置。
1. An image processing apparatus for performing image compression by orthogonal transformation, comprising: storage means for storing orthogonal transformation coefficients; address inverting means for inverting each bit of an address value obtained from address generating means; An image processing apparatus comprising: a switching unit that supplies either the address value obtained from the address generating unit or the address value obtained from the address inverting unit to the storage unit.
【請求項2】 請求項1記載の画像処理装置において、 前記切り換え手段でのアドレス値の切り換えが前記記憶
手段の出力から特定のパターンを検出することによつて
行われることを特徴とする画像処理装置。
2. The image processing apparatus according to claim 1, wherein the switching of the address value by the switching unit is performed by detecting a specific pattern from the output of the storage unit. apparatus.
JP3240794A 1991-09-20 1991-09-20 Image processor Withdrawn JPH0583564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3240794A JPH0583564A (en) 1991-09-20 1991-09-20 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3240794A JPH0583564A (en) 1991-09-20 1991-09-20 Image processor

Publications (1)

Publication Number Publication Date
JPH0583564A true JPH0583564A (en) 1993-04-02

Family

ID=17064790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3240794A Withdrawn JPH0583564A (en) 1991-09-20 1991-09-20 Image processor

Country Status (1)

Country Link
JP (1) JPH0583564A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007088826A (en) * 2005-09-22 2007-04-05 Fuji Xerox Co Ltd Data processing method and data processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007088826A (en) * 2005-09-22 2007-04-05 Fuji Xerox Co Ltd Data processing method and data processor
JP4582413B2 (en) * 2005-09-22 2010-11-17 富士ゼロックス株式会社 Data processing method and data processing apparatus

Similar Documents

Publication Publication Date Title
US7079698B2 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
JP2891772B2 (en) Digital image coding method using random scanning of image frames
JPH1093966A (en) Picture encoding device
JP3202433B2 (en) Quantization device, inverse quantization device, image processing device, quantization method, inverse quantization method, and image processing method
KR940009117B1 (en) Method and apparatus for recovery of image data
JPH1066080A (en) Quantizer in video signal encoding system
JP3984877B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP2839389B2 (en) Inverse quantization method and image data restoration device
JP2000165861A (en) Moving image decoding device
JPH0583564A (en) Image processor
JPH08116268A (en) Information processing unit
JPH07143487A (en) Image coder
JP3015001B2 (en) Huffman decoding device
JP3226713B2 (en) Encoding method
JP2993212B2 (en) How to combine images
JPH0310486A (en) Moving picture encoder
JP4447903B2 (en) Signal processing apparatus, signal processing method, recording medium, and program
JP4314280B2 (en) Inverse quantization apparatus, inverse quantization method, program, and storage medium
JP3866539B2 (en) Encoding method, decoding method, encoding device, decoding device, encoding program, decoding program, and program recording medium thereof
JP2512195B2 (en) Encoding device and decoding device
JP3337699B2 (en) Image processing apparatus and method
JPH04273687A (en) Moving picture encoder
KR0134358B1 (en) Coding and decoding system of variable scan method
JPH0487471A (en) Picture processing unit
JP2003309848A (en) Image encoding apparatus and control method thereof

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981203