JP3230336B2 - Recompression device and recompression system - Google Patents

Recompression device and recompression system

Info

Publication number
JP3230336B2
JP3230336B2 JP12603293A JP12603293A JP3230336B2 JP 3230336 B2 JP3230336 B2 JP 3230336B2 JP 12603293 A JP12603293 A JP 12603293A JP 12603293 A JP12603293 A JP 12603293A JP 3230336 B2 JP3230336 B2 JP 3230336B2
Authority
JP
Japan
Prior art keywords
huffman
quantization
output
circuit
recompression
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.)
Expired - Fee Related
Application number
JP12603293A
Other languages
Japanese (ja)
Other versions
JPH06338802A (en
Inventor
永和 本田
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 JP12603293A priority Critical patent/JP3230336B2/en
Publication of JPH06338802A publication Critical patent/JPH06338802A/en
Application granted granted Critical
Publication of JP3230336B2 publication Critical patent/JP3230336B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、JPEG圧縮の様に直
交変換、量子化、ハフマン符号化を行うことにより、画
像を圧縮することの出来る装置、システムにおいて、再
圧縮も効率良く行える技術に関する。
BACKGROUND OF THE INVENTION The present invention relates to a direct
By performing cross transformation, quantization, and Huffman coding,
In devices and systems that can compress images,
The present invention relates to a technique capable of efficiently performing compression .

【0002】[0002]

【従来の技術】画像情報は、少ない伝送量又は記憶量で
伝送又は記憶できるように、圧縮される。静止画像の圧
縮技術は周知であり、例えば、JPEG(Joint
Photograph Expert Group)方
式がある。JPEG方式では、1画面の画像を8画素×
8画素のブロックに分割し、ブロック単位で2次元離散
コサイン変換(DCT)により周波数領域に変換し、そ
の変換係数を量子化し、ハフマン符号化する。
2. Description of the Related Art Image information is compressed so that it can be transmitted or stored with a small amount of transmission or storage. A technique for compressing a still image is well known, and for example, JPEG (Joint)
(Photograph Expert Group) method. In the JPEG system, one screen image is 8 pixels x
The image data is divided into blocks of 8 pixels, converted into a frequency domain by a two-dimensional discrete cosine transform (DCT) on a block basis, the transform coefficients are quantized, and Huffman coding is performed.

【0003】圧縮後のデータ量は、画像の空間周波数特
性と上記量子化係数に強く依存する。従って、同じ量子
化係数であっても、圧縮しようとする画像により圧縮後
のデータ量が異なる。圧縮データを記憶装置に記憶した
り、伝送回線を介して伝送しようとする場合、圧縮デー
タ量を所定値以下に抑えたい又は抑えなければならない
とする要請がある。
[0003] The amount of data after compression strongly depends on the spatial frequency characteristics of an image and the above-mentioned quantization coefficient. Therefore, even if the quantization coefficients are the same, the data amount after compression differs depending on the image to be compressed. When storing compressed data in a storage device or transmitting the compressed data via a transmission line, there is a demand that the amount of compressed data should be suppressed to or less than a predetermined value.

【0004】これに応えるために、従来例では、圧縮デ
ータ量が所定値を越える場合などに、圧縮データを一旦
伸長し、その後、異なる量子化係数で圧縮(即ち、DC
T変換、量子化及びハフマン符号化)してみることを、
所望の圧縮データ量になるまで繰り返していた。
In order to respond to this, in the conventional example, when the amount of compressed data exceeds a predetermined value, the compressed data is temporarily expanded and then compressed with a different quantization coefficient (ie, DC
T transformation, quantization and Huffman coding)
This was repeated until the desired amount of compressed data was reached.

【0005】[0005]

【発明が解決しようとする課題】しかし、圧縮の際のD
CT変換及び伸長の際の逆変換は2次元の行列演算であ
り、高速のハードウエアでも長い時間がかかる。また、
伸長により復元した画像を再度圧縮するので、演算精度
が充分でないと画質が劣化してしまう。
However, when compression is performed, D
The CT transform and the inverse transform at the time of decompression are two-dimensional matrix operations, and it takes a long time even with high-speed hardware. Also,
Since the image restored by the decompression is compressed again, the image quality deteriorates if the calculation accuracy is not sufficient.

【0006】本発明は上記従来例に鑑みてなされたもの
であり、画像を直交変換、量子化、ハフマン符号化する
JPEG符号化等の符号化アルゴリズムを実行可能な装
置において、符号化時に用いた量子化テーブルとは別の
量子化テーブルを用いて符号化した圧縮結果を得るため
に再圧縮する場合の処理効率を高める様にすることを目
的とする。 また、本発明は、上記符号化アルゴリズムを
適用することを前提とした際の、圧縮部での一連の符号
化処理に影響を与えずに再圧縮を行える様にすることを
更なる目的とする。
The present invention has been made in view of the above conventional example.
And orthogonally transform, quantize, and Huffman code the image
A device capable of executing an encoding algorithm such as JPEG encoding.
Is different from the quantization table used for encoding.
To obtain the compression result encoded using the quantization table
The goal is to increase the processing efficiency when recompressing
Target. Further, the present invention provides the above encoding algorithm
A series of codes in the compression unit assuming that they are applied
That recompression can be performed without affecting the
For further purposes.

【0007】[0007]

【課題を解決するための手段】本発明に係る再圧縮装置
は、画像データを直交変換する変換手段と、前記直交変
換で得られた変換係数を第1の量子化テーブルに従って
量子化する量子化手段と、前記量子化で得られた出力
を、ハフマン符号化する第1ハフマン符号化手段と、前
記ハフマン符号化で得られた圧縮画像データをハフマン
復号化するハフマン復号化手段と、前記ハフマン復号化
で得られた、前記第1の量子化テーブルに従う量子化出
力を、第2の量子化テーブルに従って量子化した出力に
変更する変更手段と、前記変更手段の量子化で得られた
出力をハフマン符号化する第2ハフマン符号化手段とを
備えることを特徴とする。
According to the present invention, there is provided a recompressing apparatus comprising: a transforming means for orthogonally transforming image data;
The transform coefficient obtained by the transformation is calculated according to the first quantization table.
Quantizing means for quantizing, and an output obtained by the quantization
First Huffman encoding means for Huffman encoding;
The compressed image data obtained by Huffman coding
Huffman decoding means for decoding, and Huffman decoding
And the quantization output according to the first quantization table obtained in
Output to the output quantized according to the second quantization table
Changing means for changing, obtained by quantization of said changing means
Second Huffman encoding means for Huffman encoding the output.
Characterized in that it comprises.

【0008】本発明に係る再圧縮システムは、符号化部
と再圧縮部を備える再圧縮システムであって、前記符号
化部は、画像データを直交変換する変換手段と、前記直
交変換で得られた変換係数を第1の量子化テーブルに従
って量子化する第1量子化手段と、前記量子化で得られ
た出力を、ハフマン符号化する第1ハフマン符号化手段
とを備え、前記再圧縮部は、前記ハフマン符号化で得ら
れた圧縮画像データをハフマン復号化するハフマン復号
化手段と、前記ハフマン復号化で得られた、前記第1の
量子化テーブルに従う量子化出力を、第2の量子化テー
ブルに従って量子化した出力に変更する変更手段と、前
記変更手段の量子化で得られた出力をハフマン符号化す
る第2ハフマン符号化手段とを備えることを特徴とす
る。
[0008] In the recompression system according to the present invention , the encoding unit
And a recompression system comprising a recompression unit, wherein the code
Converting means for orthogonally transforming the image data;
The transform coefficients obtained by the cross transform are calculated according to the first quantization table.
First quantizing means for quantizing by
Huffman encoding means for Huffman encoding the output
Wherein the recompression unit obtains the data obtained by the Huffman coding.
Decoding Huffman decoding of compressed image data
And the first unit obtained by the Huffman decoding.
The quantization output according to the quantization table is converted to a second quantization table.
Change means for changing to an output quantized according to the
Huffman coding of the output obtained by the quantization of the
And second Huffman encoding means.
You.

【0009】[0009]

【0010】[0010]

【実施例】以下、図面を参照して本発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0011】図1は、本発明の一実施例の概略構成ブロ
ック図を示す。10は全体を制御するCPU、12は画
像を読み取るイメージ・スキャナ、14はプリンタ、1
6はCRTなどの画像表示装置、18は画像データを圧
縮する圧縮回路、20は圧縮画像データを伸長し、画像
を復元する伸長回路、22は、本実施例の特徴であり、
圧縮回路18による圧縮画像データを再圧縮する再圧縮
回路、24は、圧縮画像データを記憶する画像メモリで
ある。26は公衆電話回線を介して外部と通信するため
のモデムである。回路又は装置10〜26は、バス28
を介して相互に接続している。
FIG. 1 is a block diagram showing a schematic configuration of an embodiment of the present invention. 10 is a CPU for controlling the whole, 12 is an image scanner for reading an image, 14 is a printer, 1
6 is an image display device such as a CRT, 18 is a compression circuit for compressing image data, 20 is an expansion circuit for expanding compressed image data and restoring an image, and 22 is a feature of the present embodiment.
A recompression circuit 24 for recompressing the compressed image data by the compression circuit 18 is an image memory for storing the compressed image data. Reference numeral 26 denotes a modem for communicating with the outside via a public telephone line. The circuits or devices 10 to 26
Are interconnected via

【0012】図2は、JPEG方式に従った圧縮回路1
8及び伸長回路20の回路構成を示す。圧縮回路18
は、8画素×8画素からなる画素ブロックを離散コサイ
ン変換するDCT回路30、DCT回路30から出力さ
れる変換係数を量子化する量子化回路32、及び量子化
回路32の出力をハフマン符号化するハフマン・エンコ
ーダ34からなる。ハフマン・エンコーダ34の出力は
バス28を介して画像メモリ24に印加され、記憶され
る。
FIG. 2 shows a compression circuit 1 according to the JPEG system.
8 and the circuit configuration of the expansion circuit 20. Compression circuit 18
Is a DCT circuit 30 that performs discrete cosine transform of a pixel block composed of 8 pixels × 8 pixels, a quantization circuit 32 that quantizes a transform coefficient output from the DCT circuit 30, and Huffman coding of an output of the quantization circuit 32. It comprises a Huffman encoder 34. The output of Huffman encoder 34 is applied to image memory 24 via bus 28 and stored.

【0013】伸長回路20は、圧縮画像データ、例え
ば、画像メモリ24に記憶される圧縮画像データをハフ
マン復号化するハフマン・デコーダ36、ハフマン・デ
コーダ36の出力を逆量子化する逆量子化回路38、及
び逆量子化回路38の出力を逆DCT変換する逆DCT
回路40からなる。
The decompression circuit 20 includes a Huffman decoder 36 for Huffman decoding compressed image data, for example, compressed image data stored in the image memory 24, and an inverse quantization circuit 38 for inversely quantizing the output of the Huffman decoder 36. , And inverse DCT for inverse DCT transforming the output of the inverse quantization circuit 38
It comprises a circuit 40.

【0014】CPU10は、量子化回路32及び逆量子
化回路38で必要な量子化及び逆量子化テーブルを回路
32,38にセットし、ハフマン・エンコーダ34及び
ハフマン・デコーダ36に必要なテーブルを回路34,
36にセットする。
The CPU 10 sets the quantization and dequantization tables necessary for the quantization circuit 32 and the dequantization circuit 38 in the circuits 32 and 38, and stores the tables required for the Huffman encoder 34 and the Huffman decoder 36 in the circuits. 34,
Set to 36.

【0015】図3は、DCT変換、量子化、ハフマン符
号化、ハフマン復号化、逆量子化、及び逆DCT変換に
おけるデータの流れを示す。DCT回路30は原8行8
列の画像データ{sij}をDCT変換し、変換係数{S
ij}を出力する。{Sij}で、i=0,j=0は直流係
数であり、右側及び下側にいくほど周波数が高くなる。
FIG. 3 shows data flows in DCT transform, quantization, Huffman coding, Huffman decoding, inverse quantization, and inverse DCT transform. The DCT circuit 30 has 8 rows and 8 rows.
DCT-transform the image data {sij} of the column, and transform coefficient {S
ij} is output. In {Sij}, i = 0 and j = 0 are DC coefficients, and the frequency increases toward the right side and the lower side.

【0016】量子化回路32は、{Sij}を量子化テー
ブル{Qij}で量子化、即ちSijをQijで除算し、量子
化DCT係数{Sqij}を出力する。人間の視覚特性が
低周波で感度が高く、周波数が高くなるほど、感度が落
ちるので、これを考慮して、Qijはi=0,j=0のと
き最低で、i,jが大きくなる程大きくなるように設定
されている。
The quantization circuit 32 quantizes {Sij} with a quantization table {Qij}, that is, divides Sij by Qij, and outputs a quantized DCT coefficient {Sqij}. Considering this, Qij is the lowest when i = 0 and j = 0, and increases as i and j increase, considering that the human visual characteristic has high sensitivity at low frequency and sensitivity decreases as the frequency increases. It is set to be.

【0017】ハフマン・エンコーダ34は、{Sqij}
をハフマン符号化し、その符号化データが、量子化テー
ブル{Qij}と共に画像メモリ24に記憶される。画像
メモリ24にこのように記憶されたデータは、必要によ
り、モデム26により変調されて伝送路に送出される。
The Huffman encoder 34 generates {Sqij}
Is encoded in Huffman encoding, and the encoded data is stored in the image memory 24 together with the quantization table {Qij}. The data thus stored in the image memory 24 is modulated by the modem 26 as necessary and transmitted to the transmission path.

【0018】伸長回路20での処理は、上述の逆であ
り、ハフマン・デコーダ36が伝送路からの受信データ
をハフマン復号化して、量子化DCT係数{Sqij}を
出力する。逆量子化回路38は、量子化DCT係数{S
qij}を量子化の際と同じ量子化テーブル{Qij}によ
り逆量子化して、DCT係数{Rij}を出力する。即
ち、SqijにQijを乗算し、乗算結果をRijとする。逆
DCT回路40は{Rij}を逆DCT変換し、復元画像
データ{rij}を出力する。
The processing in the decompression circuit 20 is the reverse of the above. The Huffman decoder 36 Huffman-decodes the data received from the transmission line and outputs quantized DCT coefficients {Sqij}. The inverse quantization circuit 38 calculates the quantized DCT coefficient {S
qij} is inversely quantized using the same quantization table {Qij} as used for quantization, and DCT coefficients {Rij} are output. That is, Sqij is multiplied by Qij, and the multiplication result is set to Rij. The inverse DCT circuit 40 performs an inverse DCT transform on {Rij} and outputs restored image data {rij}.

【0019】図3から分かるように、量子化テーブル
{Qij}によって圧縮率を変更できる。例えば、Qijを
大きくすると、SQijが小さくなって圧縮率が大きくな
る。しかし、量子化誤差が大きくなり、画質は一般に悪
くなる。即ち、JPEG方式では、画質と圧縮率はトレ
ードオフの関係にある。
As can be seen from FIG. 3, the compression ratio can be changed by the quantization table {Qij}. For example, when Qij is increased, SQij is decreased and the compression ratio is increased. However, the quantization error increases and the image quality generally deteriorates. That is, in the JPEG system, the image quality and the compression ratio have a trade-off relationship.

【0020】図4を参照して、ハフマン・エンコーダ3
4における符号生成過程を説明する。量子化DCT係数
{Sqij}を直流成分(i=0,j=0)とそれ以外の
交流係数に分け、交流係数をジグザグ・スキャンして低
周波成分から高周波成分の順に並び換える。
Referring to FIG. 4, Huffman encoder 3
4 will be described. The quantized DCT coefficients {Sqij} are divided into DC components (i = 0, j = 0) and other AC coefficients, and the AC coefficients are zigzag-scanned and rearranged in order from low-frequency components to high-frequency components.

【0021】直流係数については、前画素ブロックの直
流係数との差分値Diffを、図5に示すように値の大
きさに応じてグループ分けし、該当するSSSSをハフ
マン符号化し、実際の値を付加bitで表わす。
As for the DC coefficient, the difference value Diff from the DC coefficient of the previous pixel block is grouped according to the magnitude of the value as shown in FIG. 5, the corresponding SSSS is Huffman-coded, and the actual value is calculated. It is represented by an additional bit.

【0022】他方、交流係数については、次の非ゼロ係
数ZZ(有効係数)までのゼロ係数(無効係数)のラン
レングスをRRRRとし、図6に示すように、ZZを直
流係数と同様にグループ分けし、RRRRSSSSを2
次元ハフマン符号化し、ZZを付加bitで表わす。な
お、交流係数のハフマン・コード表のEOBとZRLは
例外処理である。EOBはブロック内に残っている係数
が全て0のときにブロックの最後を表わし、ZRLは、
ゼロ係数のランレングスが16以上であることを表わ
す。
On the other hand, regarding the AC coefficient, the run length of the zero coefficient (ineffective coefficient) up to the next non-zero coefficient ZZ (effective coefficient) is defined as RRRR, and as shown in FIG. Divide and RRRRSSSS is 2
Dimensional Huffman coding, and ZZ is represented by additional bits. Note that EOB and ZRL in the Huffman code table of AC coefficients are exceptional processing. EOB indicates the end of the block when all coefficients remaining in the block are 0, and ZRL is
Indicates that the run length of the zero coefficient is 16 or more.

【0023】再圧縮回路22の回路構成を図7に示し、
図8は、そのデータの変化を示し、図9は、動作フロー
チャートを示す。
FIG. 7 shows a circuit configuration of the recompression circuit 22.
FIG. 8 shows a change in the data, and FIG. 9 shows an operation flowchart.

【0024】CPU10は先ず、ハフマン・エンコーダ
50及びハフマン・デコーダ56にハフマン・テーブル
をセットし、逆量子化回路52及び再量子化回路54に
それぞれ量子化テーブル及び再量子化テーブルをセット
する(S1)。以後、ブロック単位で順に処理してい
く。
First, the CPU 10 sets a Huffman table in the Huffman encoder 50 and the Huffman decoder 56, and sets a quantization table and a requantization table in the inverse quantization circuit 52 and the requantization circuit 54, respectively (S1). ). Thereafter, processing is sequentially performed in block units.

【0025】ハフマン・デコーダ50は、画像メモリ2
4に記憶される圧縮画像データの1部ロックをハフマン
復号化して、量子化DCT係数{Sqij}を出力する
(S2)。
The Huffman decoder 50 is used for the image memory 2
Huffman decoding is performed on a part of the lock of the compressed image data stored in No. 4 and a quantized DCT coefficient {Sqij} is output (S2).

【0026】逆量子化回路52は、量子化DCT係数
{Sqij}を量子化の際と同じ量子化テーブル{Qij}
により逆量子化して、DCT係数{Rij}を出力する。
再量子化回路54は、逆量子化回路52の出力{Rij}
を、別の量子化テーブル{Qaij}で再度、量子化す
る。このとき、圧縮率を上げたいのであれば、Qaij≧
Qijとする。
The inverse quantization circuit 52 converts the quantized DCT coefficient {Sqij} into the same quantization table {Qij} as used for quantization.
, And outputs a DCT coefficient {Rij}.
The requantization circuit 54 outputs the output {Rij} of the inverse quantization circuit 52.
Is again quantized by another quantization table {Qaij}. At this time, if it is desired to increase the compression ratio, Qaij ≧
Qij.

【0027】この逆量子化及び再量子化は、1回の演算
で実現できることは明らかである(S4)。但し、注目
する量子化DCT係数が0であれば、逆量子化及び再量
子化によっても0になるので、逆量子化及び再量子化を
省略する(S3)。
It is clear that the inverse quantization and requantization can be realized by one operation (S4). However, if the quantized DCT coefficient of interest is 0, it is also 0 by inverse quantization and requantization, so that inverse quantization and requantization are omitted (S3).

【0028】1ブロック内の64個の全係数について逆
量子化及び再量子化の演算を実行したら(S5)、ハフ
マン・エンコーダ56が、再量子化回路54の出力{T
qij}をハフマン符号化し、その出力を画像メモリ24
に格納する(S6)。
When the inverse quantization and requantization operations are performed on all 64 coefficients in one block (S5), the Huffman encoder 56 outputs the output ΔT of the requantization circuit 54.
qij} is Huffman-coded, and its output is stored in an image memory 24.
(S6).

【0029】S2〜S6の処理を1画面の全ブロックに
ついて実行する(S7)。
The processing of S2 to S6 is executed for all blocks of one screen (S7).

【0030】フローチャートして示しているので、64
個の全係数について逆量子化及び再量子化の演算を終了
した後にハフマン符号化すると説明しているが、逆量子
化及び再量子化の演算とハフマン符号化を可能な限り同
時的に実行するのは勿論である。
As shown in the flowchart, 64
It is described that Huffman coding is performed after the operations of inverse quantization and requantization are completed for all the coefficients, but the operations of inverse quantization and requantization and Huffman coding are performed as simultaneously as possible. Of course.

【0031】S4に示す演算 Tqij=Sqij×Qij/Qaij は、乗算のみ又はシフト演算で実現できることは明らか
である。例えば、Qij/Qaijが適当な正数値になる
ように、Qij及び/又はQaijを選択すれば乗算のみに
なり、Qij/Qaijが2のべき乗になるようにすれば、
シフト演算で済む。この変更例を図10に示す。ハフマ
ン・デコーダ50とハフマン・エンコーダ56の間に、
乗算又はシフト演算を実行する係数演算回路58を挿入
すればよい。乗算又はシフト演算とすることにより、高
速化できることは明らかである。
It is clear that the operation Tqij = Sqij × Qij / Qaij shown in S4 can be realized only by multiplication or by shift operation. For example, if Qij and / or Qaij are selected so that Qij / Qaij is an appropriate positive value, only multiplication is performed, and if Qij / Qaij is a power of 2,
Only shift operation is required. This modification is shown in FIG. Between the Huffman decoder 50 and the Huffman encoder 56,
What is necessary is just to insert the coefficient operation circuit 58 which performs a multiplication or a shift operation. Obviously, the speed can be increased by using the multiplication or the shift operation.

【0032】ハフマン・エンコーダ56の代わりに又は
並列に、別符号への符号化器を配置してもよい。そうす
れば、再圧縮回路22を符号変換器としても利用でき
る。
Instead of the Huffman encoder 56 or in parallel, an encoder for another code may be arranged. Then, the recompression circuit 22 can also be used as a code converter.

【0033】図11、図12及び図13は、本実施例の
再圧縮を実行する動作フローチャートであって、図11
は主ルーチン、図12は図11のDC係数の処理のサブ
ルーチン、図13はAC係数の処理のサブルーチンをそ
れぞれ示す。
FIG. 11, FIG. 12, and FIG. 13 are operation flowcharts for executing recompression of this embodiment.
12 shows a main routine, FIG. 12 shows a subroutine for processing the DC coefficient in FIG. 11, and FIG. 13 shows a subroutine for processing the AC coefficient.

【0034】[0034]

【発明の効果】以上、説明した様に、本出願の請求項1
に係る発明よれば、画像を直交変換、量子化、ハフマン
符号化するJPEG符号化等の符号化アルゴリズムを実
行可能な装置において、逆直交変換を行なわずに量子化
の後段(符号化時)に付随するハフマン符号化の復号処
理の方のみを行うことにより、逆量子化と再量子化を行
う、或いはビットシフト演算を行う等により、符号化時
に用いた量子化テーブルとは別の量子化テーブルを用い
てハフマン符号化した圧縮結果を高速に得ることができ
る。 特に、請求項2に係る発明によれば、上記効果に加
え、システム内に圧縮部と再圧縮部を別に備え、圧縮部
での直交変換、量子化、ハフマン符号化とは独立して、
再圧縮部での、ハフマン復号化、異なる量子化テーブル
間での量子化出力の変更、ハフマン符号化を実行できる
様にしてあるので、通常の符号化処理の非実行時間とは
関係なく所望の時間に再圧縮することもできる。
As described above, claim 1 of the present application is as described above.
According to the invention according to the invention, the image is orthogonally transformed, quantized, Huffman
Executes an encoding algorithm such as JPEG encoding.
Quantization without inverse orthogonal transform on devices that can perform
Decoding process of Huffman encoding accompanying the subsequent stage (at the time of encoding)
Inverse quantization and requantization are performed by
Or by performing a bit shift operation, etc.
Use a different quantization table than the one used for
Huffman coded compression results can be obtained at high speed.
You. In particular, according to the second aspect of the invention, in addition to the above effects,
The system has a separate compression unit and recompression unit.
Independent of the orthogonal transform, quantization, and Huffman coding in
Huffman decoding, different quantization tables in recompressor
Change of quantization output between Huffman coding
The non-execution time of the normal encoding process is
Regardless, it can be recompressed at the desired time.

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

【図1】 本発明の一実施例の概略構成ブロック図であ
る。
FIG. 1 is a schematic block diagram of an embodiment of the present invention.

【図2】 圧縮回路18及び伸長回路20の詳細な回路
ブロック図である。
FIG. 2 is a detailed circuit block diagram of a compression circuit 18 and a decompression circuit 20.

【図3】 圧縮伸長のデータ変化の説明図である。FIG. 3 is an explanatory diagram of a change in data in compression / expansion.

【図4】 ハフマン・エンコーダ34における処理の説
明図である。
4 is an explanatory diagram of a process in a Huffman encoder 34. FIG.

【図5】 直流係数の符号化の説明図である。FIG. 5 is an explanatory diagram of encoding of a DC coefficient.

【図6】 交流係数の符号化の説明図である。FIG. 6 is an explanatory diagram of encoding of an AC coefficient.

【図7】 再圧縮回路22の詳細な回路ブロック図であ
る。
FIG. 7 is a detailed circuit block diagram of the recompression circuit 22.

【図8】 図7におけるデータ変化の説明図である。FIG. 8 is an explanatory diagram of a data change in FIG. 7;

【図9】 図7の動作フローチャートである。FIG. 9 is an operation flowchart of FIG. 7;

【図10】 図7の変更例である。FIG. 10 is a modification example of FIG. 7;

【図11】 本実施例の再圧縮を実行する動作フローチ
ャートの主ルーチンである。
FIG. 11 is a main routine of an operation flowchart for executing recompression according to the present embodiment.

【図12】 図11のDC係数の処理のサブルーチンで
ある。
FIG. 12 is a flowchart illustrating a subroutine for processing a DC coefficient in FIG. 11;

【図13】 AC係数の処理のサブルーチンである。FIG. 13 shows a subroutine for processing an AC coefficient.

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

10:CPU 12:イメージ・スキャナ 14:プリ
ンタ 16:画像表示装置 18:圧縮回路 20:伸
長回路 22:再圧縮回路 24:画像メモリ 26:モデム 28:バス 30:DCT回路 32:
量子化回路 34:ハフマン・エンコーダ 36:ハフ
マン・デコーダ 38:逆量子化回路 40:逆DCT
回路 50:ハフマン・デコーダ 52:逆量子化回路
54:再量子化回路 56:ハフマン・エンコーダ
58:係数演算回路
10: CPU 12: Image Scanner 14: Printer 16: Image Display Device 18: Compression Circuit 20: Decompression Circuit 22: Recompression Circuit 24: Image Memory 26: Modem 28: Bus 30: DCT Circuit 32:
Quantization circuit 34: Huffman encoder 36: Huffman decoder 38: Inverse quantization circuit 40: Inverse DCT
Circuit 50: Huffman decoder 52: Inverse quantization circuit 54: Requantization circuit 56: Huffman encoder
58: Coefficient operation circuit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画像データを直交変換する変換手段と、 前記直交変換で得られた変換係数を第1の量子化テーブ
ルに従って量子化する量子化手段と、 前記量子化で得られた出力を、ハフマン符号化する第1
ハフマン符号化手段と、 前記ハフマン符号化で得られた圧縮画像データをハフマ
ン復号化するハフマン復号化手段と、 前記ハフマン復号化で得られた、前記第1の量子化テー
ブルに従う量子化出力を、第2の量子化テーブルに従っ
て量子化した出力に変更する変更手段と、 前記変更手段の量子化で得られた出力をハフマン符号化
する第2ハフマン符号化手段とを備える ことを特徴とす
る再圧縮装置。
(1)Conversion means for orthogonally transforming image data; A transform coefficient obtained by the orthogonal transform is converted to a first quantization table.
Quantization means for quantizing according to the A first output for Huffman encoding the output obtained by the quantization
Huffman encoding means, The compressed image data obtained by the Huffman coding is
Huffman decoding means for decoding The first quantization table obtained by the Huffman decoding
Is output according to the second quantization table.
Changing means for changing the output to a quantized output, Huffman coding of the output obtained by the quantization of the changing means
Second Huffman encoding means Characterized by
Recompression device.
【請求項2】 符号化部と再圧縮部を備える再圧縮シス
テムであって、 前記符号化部は、 画像データを直交変換する変換手段と、 前記直交変換で得られた変換係数を第1の量子化テーブ
ルに従って量子化する第1量子化手段と、 前記量子化で得られた出力を、ハフマン符号化する第1
ハフマン符号化手段とを備え、 前記再圧縮部は、 前記ハフマン符号化で得られた圧縮画像データをハフマ
ン復号化するハフマン復号化手段と、 前記ハフマン復号化で得られた、前記第1の量子化テー
ブルに従う量子化出力を、第2の量子化テーブルに従っ
て量子化した出力に変更する変更手段と、 前記変更手段の量子化で得られた出力をハフマン符号化
する第2ハフマン符号化手段とを備えることを特徴とす
る再圧縮システム。
(2)A recompression system including an encoding unit and a recompression unit
System The encoding unit includes: Conversion means for orthogonally transforming image data; A transform coefficient obtained by the orthogonal transform is converted to a first quantization table.
First quantizing means for quantizing according to A first output for Huffman encoding the output obtained by the quantization
Huffman encoding means, The recompression unit, The compressed image data obtained by the Huffman coding is
Huffman decoding means for decoding The first quantization table obtained by the Huffman decoding
Is output according to the second quantization table.
Changing means for changing the output to a quantized output, Huffman coding of the output obtained by the quantization of the changing means
And a second Huffman encoding means.
Recompression system.
JP12603293A 1993-05-27 1993-05-27 Recompression device and recompression system Expired - Fee Related JP3230336B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12603293A JP3230336B2 (en) 1993-05-27 1993-05-27 Recompression device and recompression system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12603293A JP3230336B2 (en) 1993-05-27 1993-05-27 Recompression device and recompression system

Publications (2)

Publication Number Publication Date
JPH06338802A JPH06338802A (en) 1994-12-06
JP3230336B2 true JP3230336B2 (en) 2001-11-19

Family

ID=14925003

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12603293A Expired - Fee Related JP3230336B2 (en) 1993-05-27 1993-05-27 Recompression device and recompression system

Country Status (1)

Country Link
JP (1) JP3230336B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100954397B1 (en) 2003-08-20 2010-04-26 삼성전자주식회사 Image recording/reproducing apparatus re-compressing and re-recording recorded data and re-recording method thereof
US7502514B2 (en) * 2004-11-15 2009-03-10 Smith Micro Software, Inc. System and method for lossless compression of already compressed files
KR101703330B1 (en) 2014-10-06 2017-02-06 삼성전자 주식회사 Method and apparatus for re-encoding an image

Also Published As

Publication number Publication date
JPH06338802A (en) 1994-12-06

Similar Documents

Publication Publication Date Title
US10045034B2 (en) System and method for using pattern vectors for video and image coding and decoding
JP4215946B2 (en) Embedded DCT-based still image coding algorithm
AU637020B2 (en) Improved image compression method and apparatus
JP3103383B2 (en) Image decoding method
US20020006229A1 (en) System and method for image compression and decompression
US5719961A (en) Adaptive technique for encoder and decoder signal transformation
US5594554A (en) Image compression coder having improved scale factor control
JP2006502604A (en) Image compression method for arbitrarily shaped objects
JPH08242378A (en) Method for efficiently and repeatedly decompressing standardadct compressed image
JPH09200757A (en) Encoder, decoder and data transmitter
JP3230336B2 (en) Recompression device and recompression system
JP2001217721A (en) Huffman encoding device, huffman encoding method and recording medium recorded with huffman encoding processing program
KR920005014A (en) Image data restoration method and device
JPH0487460A (en) Picture processor
JPH1175182A (en) Method and system for compressing moving image information
JPH04220081A (en) Method and device for picture data decoding
JPH05316359A (en) Picture data coder
JPH0670175A (en) Method and device for encoding picture data
JP2000032458A (en) Image compression method
JP2993212B2 (en) How to combine images
JP2003333339A (en) Image encoding apparatus and image encoding method
JP2820807B2 (en) Image data encoding method
JP2571274B2 (en) Code data storage / readout method
JP3199786B2 (en) Image processing device
JPH03192878A (en) Picture data compressor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010814

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070914

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110914

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110914

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120914

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees