JP2001078190A - Image processor and its control method - Google Patents

Image processor and its control method

Info

Publication number
JP2001078190A
JP2001078190A JP24920699A JP24920699A JP2001078190A JP 2001078190 A JP2001078190 A JP 2001078190A JP 24920699 A JP24920699 A JP 24920699A JP 24920699 A JP24920699 A JP 24920699A JP 2001078190 A JP2001078190 A JP 2001078190A
Authority
JP
Japan
Prior art keywords
block
memory
unit
input
selecting
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
JP24920699A
Other languages
Japanese (ja)
Inventor
Akiyoshi Hamanaka
章佳 浜中
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 JP24920699A priority Critical patent/JP2001078190A/en
Publication of JP2001078190A publication Critical patent/JP2001078190A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an image processor that can conduct orthogonal transform for multi-dimension with a simple configuration and its control method. SOLUTION: A linear DCT processor apples linear orthogonal transform to image data received from a buffer memory 101 in the unit of blocks via a changeover switch 102 in an initial state and a memory 104 store the resulting data. Then the data stored in the memory 104 and receiving transposition conversion are read and fed back to the switch 102 via a changeover switch 105, the linear DCT processor apples transform processing in a direction orthogonal to that of the preceding transform to the feedback date and the processed data are outputted externally via the memory 104 and the changeover switch 105.

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 apparatus and a control method thereof, and more particularly to an image processing apparatus for performing an orthogonal transformation process in image compression coding and a control method thereof.

【0002】[0002]

【従来の技術】画像データ圧縮・符号化装置は、画像デ
ータを直交変換手段を用いて空間領域から周波数空間領
域に座標変換し、周波数領域にて量子化手段により情報
量を削減することにより画像データの圧縮を行ってい
る。
2. Description of the Related Art An image data compression / encoding apparatus performs coordinate transformation of image data from a spatial domain to a frequency spatial domain using orthogonal transform means, and reduces the amount of information by a quantizing means in the frequency domain. Data compression is being performed.

【0003】直交変換手段は離散コサイン変換(通称D
CT)が主流であり、画像を取り扱う二次元DCTのハ
ードウェア構成の概略は、図4に示すようなものであ
る。った。
The orthogonal transform means is a discrete cosine transform (commonly called D
CT) is the mainstream, and an outline of a hardware configuration of a two-dimensional DCT that handles an image is as shown in FIG. Was.

【0004】図4に於いて、401は画像データを主と
して任意のサイズのブロック単位で読み出す為のバッフ
ァメモリ、402,404:一次元DCT処理装置、4
03はブロック単位の画像データを主として転置した順
序で読み出す為のメモリ、405は量子化処理装置、そ
して、406は量子化後のブロック単位の画像データを
ジグザグ・スキャンの順序で読み出す為のメモリであ
る。
In FIG. 4, reference numeral 401 denotes a buffer memory for reading image data mainly in units of blocks of an arbitrary size; 402 and 404: a one-dimensional DCT processing device;
03 is a memory for reading out image data in block units mainly in the transposed order, 405 is a quantization processing device, and 406 is a memory for reading out image data in block units after quantization in zigzag scan order. is there.

【0005】かかる構成において、画像データを二次元
DCT処理する方法を説明する。
A method of performing two-dimensional DCT processing on image data in such a configuration will be described.

【0006】入力された画像データは、バッファメモリ
401に一時記憶された後、所定のサイズのブロック
(例えば、8×8画素)を単位としてラスタースキャン
順序で読み出される。
[0006] The input image data is temporarily stored in a buffer memory 401 and then read out in a raster scan order in units of blocks of a predetermined size (for example, 8 × 8 pixels).

【0007】バッファ401から読み出されたブロック
化画像データは、一次元DCT処理装置402へ入力さ
れ、水平方向(または垂直方向)に直交変換される。
[0007] The block image data read from the buffer 401 is input to a one-dimensional DCT processing device 402 and orthogonally transformed in a horizontal direction (or a vertical direction).

【0008】この一次元DCT処理された画像データ
は、メモリ403に一時記憶された後、行列で言う転置
の順序(行と列を反転)で読み出され、一次元DCT処
理装置404に入力され、垂直方向(または水平方向)
に直交変換し、出力することで二次元(水平・垂直)D
CT処理を完了する。
The one-dimensional DCT-processed image data is temporarily stored in a memory 403, read out in a transposition order (inversion of rows and columns) in a matrix, and input to a one-dimensional DCT processing unit 404. , Vertical (or horizontal)
Is orthogonally transformed into two-dimensional (horizontal and vertical) D
The CT processing is completed.

【0009】このようにして、二次元空間領域から二次
元周波数領域に座標変換された画像データ(DCT係
数)は、量子化装置405に入力され、周波数に対して
任意の重み付けを施された量子化テーブルにより量子化
(圧縮)処理される。
[0009] The image data (DCT coefficients) coordinate-transformed from the two-dimensional space domain to the two-dimensional frequency domain in this way is input to the quantization device 405, and the quantized data in which the frequency is arbitrarily weighted is given. Quantization (compression) processing is performed by the quantization table.

【0010】量子化されたDCT係数は、メモリ406
に一時記憶された後、符号化の順序に適したジグザグ・
スキャン等の順序で読み出され可変長符号化等の符号化
処理を経て伝送または各種メデイアに記録される。
[0010] The quantized DCT coefficients are stored in a memory 406.
After the temporary storage, the zigzag
The data is read out in the order of scanning or the like, transmitted through an encoding process such as variable-length encoding, or recorded on various media.

【0011】一方、符号化装置がフレーム(またはフィ
ールド)間符号化に対応している場合は、図4に示すよ
うに、量子化後のDCT係数は、メモリ403だけでな
く、局部復号器へも入力され、局部復号処理された後、
予測参照用データとして記憶され、動きベクトル探索
(動き補償)等に利用されるように構成されている。
On the other hand, when the encoding apparatus supports inter-frame (or field) encoding, as shown in FIG. 4, the quantized DCT coefficients are transmitted not only to the memory 403 but also to the local decoder. Is also input and after local decoding processing,
It is configured to be stored as prediction reference data and used for motion vector search (motion compensation) and the like.

【0012】したがって、一定レートで入力される画像
(画素)データに対して、DCT処理装置402、40
4や、量子化装置405は、相互に独立で、その処理は
上述したように、二次元DCTから量子化までの処理は
流れ作業(オープンループ)である為、二次元DCT処
理で必要な画像データの転置(順序変更)用記憶手段
と、符号化に適した順序にDCT係数を並べ替える為の
記憶手段を独立に設けなければならないという制約があ
り、ハードウェアの処理速度が向上した昨今、問題にな
るのは、処理能力よりも回路規摸、即ち消費電力の方に
移行しつつある。
Therefore, DCT processing units 402 and 40 apply to image (pixel) data input at a constant rate.
4 and the quantization device 405 are independent of each other, and as described above, since the processing from the two-dimensional DCT to the quantization is a flow operation (open loop), the image necessary for the two-dimensional DCT processing is There is a restriction that storage means for transposition (order change) of data and storage means for rearranging DCT coefficients in an order suitable for encoding must be provided independently, and in recent years, the processing speed of hardware has been improved. The problem is shifting to circuit design, that is, power consumption, rather than processing capability.

【0013】しかし、図4の構成では、転置用(図4の
メモリ403)とジグザグ・スキャン用の2つのメモリ
406がハード構成上必須であり、回路規模を小さくす
るという要求に対する障害となっていた。
However, in the configuration of FIG. 4, two memories 406 for transposition (memory 403 in FIG. 4) and zigzag scanning are indispensable in terms of hardware configuration, which is an obstacle to a demand for reducing the circuit scale. Was.

【0014】また、入力される画像データのレートに対
して、従来のハード構成では、処理する側の処理能力に
余裕ができることが多く、符号化器に於けるメモリ(図
4の403,406)およびDCT処理装置(402,
404)の稼働率低下も必至である為、ハードウェアの
性能を下回る動作クロックで動作させる等、ハードウェ
アのオーバースペックが問題となっていた。
In addition, in the conventional hardware configuration, the processing capability of the processing side can often have a margin with respect to the input image data rate, and the memory in the encoder (403 and 406 in FIG. 4). And a DCT processor (402,
Since it is inevitable that the operation rate of 404) decreases, hardware over-specification has been a problem, such as operation at an operation clock lower than the hardware performance.

【0015】本発明はかかる問題点に鑑みなされたもの
であり、簡単な構成で多次元の直交変換を行える画像処
理装置及びその制御方法を提供しようとするものであ
る。
The present invention has been made in view of such a problem, and an object of the present invention is to provide an image processing apparatus capable of performing a multidimensional orthogonal transformation with a simple configuration and a control method thereof.

【0016】[0016]

【課題を解決するための手段】この課題を解決するた
め、例えば本発明の画像処理装置は以下の構成を備え
る。すなわち、画像データをブロック単位に入力する入
力手段と、ブロック単位の画像データについて一次元直
交変換を行う変換手段と、該変換手段で変換されたブロ
ックデータを記憶するメモリと、前記変換手段へ供給す
るブロックとして、前記入力手段から入力したブロッ
ク、又は、前記メモリより転置して読出したブロックの
いずれかを選択する第1の選択手段と、前記メモリから
前記第1の選択手段に供給するか、或いは外部に出力す
るかのいずれかを選択する第2の選択手段と、前記第
1、第2の選択手段の選択を制御する制御手段とを備え
る。
To solve this problem, for example, an image processing apparatus according to the present invention has the following arrangement. That is, input means for inputting image data in block units, conversion means for performing one-dimensional orthogonal transformation on image data in block units, memory for storing the block data converted by the conversion means, and supply to the conversion means A first input unit that selects one of a block input from the input unit or a block transposed and read from the memory, and supplying the block from the memory to the first selection unit. Alternatively, there is provided a second selecting means for selecting either one of output to the outside and a control means for controlling selection of the first and second selecting means.

【0017】[0017]

【発明の実施の形態】以下、添付図面に従って本発明に
係る実施形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0018】図1に実施形態における装置のブロック構
成図を示す。
FIG. 1 shows a block diagram of the apparatus according to the embodiment.

【0019】図示において、101はバッファ・メモリ
(ブロック分割用)であり、102は2入力・1出力切
り替えスイッチである。103は一次元DCT処理装
置、104は一時記憶装置(メモリ)、105は1入力
・2出力切り替えスイッチ、そして、106はメモリ、
スイッチの制御を司る制御装置である。なお、この制御
装置106のメモリ(101,104)に対する読み書
きに関する制御は、ラスター・スキャン(ライン単位)
をデフォルトとしている。
In FIG. 1, reference numeral 101 denotes a buffer memory (for block division), and reference numeral 102 denotes a two-input / one-output switch. 103 is a one-dimensional DCT processing device, 104 is a temporary storage device (memory), 105 is a one-input / two-output switch, and 106 is a memory.
This is a control device that controls the switch. The control of reading and writing of the memories (101, 104) by the controller 106 is performed by raster scan (in units of lines).
Is the default.

【0020】ここで、二次元DCT演算の一般式を示
す。
Here, a general expression of the two-dimensional DCT operation is shown.

【0021】 Z=ADAT (1) ZT=((AD)・AT)T=A・(AD)T (2) X=(AD)T (3) A:DCT変換行列 AT:前記行列Aの転置 D:画像データ(ブロック) Z:二次元DCT処理後の画像データ(DCT係数ブロ
ック) 入力された画像データは、バッファ・メモリ101に一
時記憶される。バッファーメモリ101に記憶された画
像データは、制御装置106の制御により符号化の単位
である所定サイズのブロックの単位でラスター・スキャ
ンの順序で読み出され、切り替えスイッチ102に入力
される。
Z = ADA T (1) Z T = ((AD) · AT) T = A · (AD) T (2) X = (AD) T (3) A: DCT transformation matrix A T : The above matrix Transposition of A D: Image data (block) Z: Image data after two-dimensional DCT processing (DCT coefficient block) The input image data is temporarily stored in the buffer memory 101. The image data stored in the buffer memory 101 is read out in the order of raster scan in units of blocks of a predetermined size, which is a unit of encoding, under the control of the control device 106, and is input to the changeover switch 102.

【0022】切り替えスイッチ102は、制御装置10
6の制御により、次段の一次元DCT処理装置103へ
の入力を選択する槻能を持つ。
The changeover switch 102 is connected to the control device 10
Under the control of No. 6, there is an ability to select an input to the one-dimensional DCT processing device 103 at the next stage.

【0023】切り替えスイッチ102、105の初期状
態を図1の端子(1)であるとする。バッファメモリ1
01から読み出されたブロック単位の画像データは、切
り替えスイッチ102の単位(1)を介して、一次元D
CT処理装置103に入力され、一次元方向のDCT処
理が施される。
It is assumed that the initial state of the changeover switches 102 and 105 is the terminal (1) in FIG. Buffer memory 1
The image data in block units read from block 01 is sent to the one-dimensional D through the unit (1) of the changeover switch 102.
The data is input to the CT processing device 103 and subjected to one-dimensional DCT processing.

【0024】一方、制御装置106は、1ブロック分の
画像データを切り替えスイッチ102に送出完了した時
点では、メモリ101からの読み出しを中止し、切り替
えスイッチ102の端子(1)から(2)側に切り替え
る。
On the other hand, when the control device 106 completes the transmission of the image data for one block to the changeover switch 102, it stops reading from the memory 101 and shifts the terminal (1) of the changeover switch 102 to the (2) side. Switch.

【0025】この結果、一次元DCT処理されたデータ
は、メモリ104に一時記憶された後、制御装置106
の制御装置により転置の順序(行と列を反転して、ラス
ター・スキャン順)で読み出され、切り替えスイッチ1
05の端子(1)を介して再度、切り替えスイッチ10
2の端子(2)に入力される。
As a result, the data subjected to the one-dimensional DCT processing is temporarily stored in the memory 104, and then the control device 106
Is read out in the transposition order (row and column are inverted and raster scan order) by the control device of
05 again via the terminal (1)
2 terminal (2).

【0026】制御装置160は、メモリ104から一次
元DCT処理後のデータを1ブロック分の読み出しを完
了した時点で、切り替えスイッチ105の端子を(1)
から(2)に切り替える(図5参照)。
The controller 160 sets the terminal of the changeover switch 105 to (1) when reading of one block of data after the one-dimensional DCT processing from the memory 104 is completed.
(2) (see FIG. 5).

【0027】ここまでの処理にて、前記(3)式で示し
たX=(AD)Tが演算完了したことになる。
In the above processing, the calculation of X = (AD) T shown in the above equation (3) is completed.

【0028】先に述べたように、切り替えスイッチ10
2はこの時点で端子(2)側に切り替わっているので、
一次元DCT処理され、転置の順序で読み出されたブロ
ックは、2つのスイッチ(105,102)経由で再び
一次元DCT処理装置103に入力され、前記と同様に
2度目のDCT処理を施される。
As described above, the changeover switch 10
Since 2 has been switched to the terminal (2) side at this point,
The block subjected to the one-dimensional DCT processing and read out in the transposition order is input again to the one-dimensional DCT processing device 103 via the two switches (105, 102), and subjected to the second DCT processing as described above. You.

【0029】前記2度目の一次元DCT処理後のブロッ
クが、前記(2)式のZT=A・(AD)Tに相当する。
The block after the second one-dimensional DCT processing corresponds to Z T = A · (AD) T in the above equation (2).

【0030】前記2度目の一次元DCT処理されたブロ
ックは、制御装置106の制御により、再度、メモリ1
04に一時記憶された後、転置の順序で読み出され、切
り替えスイッチ105のスイッチの端子(2)側を経由
して、二次元DCT係数ブロック(DCT係数)として
出力される((1)式のZの演算が完了する)。
The block subjected to the second one-dimensional DCT processing is again stored in the memory 1 under the control of the controller 106.
After being temporarily stored in the switch 04, it is read out in the order of transposition and output as a two-dimensional DCT coefficient block (DCT coefficient) via the switch terminal (2) side of the changeover switch 105 (formula (1)). Is completed).

【0031】本発明では、前記二回目の一次元DCT処
理後のDCT係数を一時記憶したメモリ104から読み
出す場合、必要に応じて転置と併せてジグザグ・スキャ
ン等、任意の順序を設定して読み出すことができるよう
に、制御装置106をプログラミングすることが可能で
ある。
According to the present invention, when the DCT coefficients after the second one-dimensional DCT processing are read out from the memory 104 in which the DCT coefficients are temporarily stored, an arbitrary order such as zigzag scanning is set and read out together with transposition as necessary. It is possible to program the controller 106 to do so.

【0032】<第2の実施形態>本発明による第2の実
施形態を図2,図3に示す。
<Second Embodiment> FIGS. 2 and 3 show a second embodiment according to the present invention.

【0033】図2に於いて、201,205はバッファ
・メモリ(ブロック分割用)、202は2入力1出力切
り替えスイッチ、203は一次元DCT処理装置、20
4は量子化器、206は転置用のメモリ、207は1入
力2出力切り替えスイッチ、そして、208は各メモ
リ、スイッチの制御を司る制御装置である。
In FIG. 2, reference numerals 201 and 205 denote buffer memories (for block division), 202 denotes a two-input / one-output selector switch, 203 denotes a one-dimensional DCT processor,
4 is a quantizer, 206 is a transposition memory, 207 is a one-input / two-output switch, and 208 is a control device that controls each memory and switch.

【0034】二次元DCTの一般式については、前記第
1の実施形態1にて記述した式(1)乃至(3)を本第
2の実施形態に於いても同様に参照する。
With respect to the general formula of the two-dimensional DCT, the formulas (1) to (3) described in the first embodiment are similarly referred to in the second embodiment.

【0035】また切り替えスイッチ202,205,2
07の初期状態をそれぞれ端子(1)と仮定する(図2
参照)。
The changeover switches 202, 205, 2
07 are assumed to be terminals (1) (FIG. 2)
reference).

【0036】さて、上記構成において、入力された画像
データは、バッファ・メモリ201に一時記憶される。
このメモリ201に記憶された画像データは、制御装置
208の制御により符号化の単位である所定サイズのブ
ロックの単位でラスター・スキャンの順序で読み出さ
れ、切り替えスイッチ202に供給される。
In the above configuration, the input image data is temporarily stored in the buffer memory 201.
The image data stored in the memory 201 is read out in the order of raster scan in units of blocks of a predetermined size, which is a unit of encoding, under the control of the control device 208, and is supplied to the changeover switch 202.

【0037】切り替えスイッチ202は、制御装置20
8の制御により、次段の一次元DCT処理装置203へ
の入力を選択する機能を持つ。
The changeover switch 202 is connected to the control device 20
8 has a function of selecting an input to the one-dimensional DCT processing device 203 at the next stage.

【0038】ここまでは、先に説明した第1の実施形態
と全く同様である。
Up to this point, it is completely the same as the first embodiment described above.

【0039】バッファメモリ201から読み出された画
像ブロックは、スイッチの端子202の端子(1)を介
して一次元DCT処理装置203へ入力され、一次元方
向のDCT処理が施される。
The image block read from the buffer memory 201 is input to the one-dimensional DCT processing device 203 via the terminal (1) of the switch terminal 202, and subjected to one-dimensional DCT processing.

【0040】一方、制御装置208は、1ブロック分の
画像データをスイッチ202に送出完了した時点で、バ
ッファメモリ201からの読み出しを中止し、スイッチ
202を端子(1)から(2)側に切り替えるための制
御信号を出力する。
On the other hand, the controller 208 stops reading the data from the buffer memory 201 when the transmission of one block of image data to the switch 202 is completed, and switches the switch 202 from the terminal (1) to the terminal (2). Output a control signal for

【0041】この時点でスイッチ205は、前述のよう
に端子(1)側にセットされているので、一次元DCT
処理装置203にて一次元DCT処理されたブロック
は、量子化器204をバイバスしてスイッチ205の端
子(1)経由でメモリ206に記憶される。
At this point, since the switch 205 is set to the terminal (1) side as described above, the one-dimensional DCT
The block subjected to the one-dimensional DCT processing by the processing device 203 is stored in the memory 206 via the terminal (1) of the switch 205, bypassing the quantizer 204.

【0042】メモリ206に記憶された一次元DCT処
理済みブロックは、制御装置208の制御により転置の
順序で読み出され、スイッチ207の端子(1)経由で
再びスイッチ202の端子(2)へと供給される。
The one-dimensional DCT-processed blocks stored in the memory 206 are read out in the order of transposition under the control of the control device 208, and are returned to the terminal (2) of the switch 202 via the terminal (1) of the switch 207. Supplied.

【0043】更に、制御装置208は、メモリ206か
ら一次元DCT処理ずみブロックの全データを読み出し
完了を検出した時点で、スイッチ205および207の
スイッチを初期状態の端子(1)から(2)にそれぞれ
切り替えるよう制御信号を出力する。
Further, when the controller 208 detects the completion of reading all the data of the one-dimensional DCT-processed block from the memory 206, it switches the switches 205 and 207 from the terminals (1) to (2) in the initial state. A control signal is output so as to switch between them.

【0044】ここまでの処理にて、前記第1の実施形態
と同様に、(3)式で示したX=(AD)Tの演算が完
了したことになる。
In the processing so far, the calculation of X = (AD) T shown in the equation (3) is completed as in the first embodiment.

【0045】前述のように、この時点でスイッチ202
は制御装置208の制御により初期状態の端子(1)か
ら(2)に切り替わっているので、スイッチ207経由
して供給された一次元DCT処理済みブロックは、再び
スイッチ202の端子(2)経由で一次元DCT処理装
置203に入力され、再度一次元DCT処理される。
As described above, at this point the switch 202
Has been switched from the terminal (1) in the initial state to the terminal (2) under the control of the control device 208, the one-dimensional DCT-processed block supplied via the switch 207 is again supplied via the terminal (2) of the switch 202. The data is input to the one-dimensional DCT processing device 203 and subjected to one-dimensional DCT processing again.

【0046】前記2度目の一次元DCT処理を施された
ブロックについては、第1の実施形態の(2)式に示し
た演算が完了したことになる。
For the block that has been subjected to the second one-dimensional DCT process, the calculation shown in the equation (2) of the first embodiment is completed.

【0047】したがって、この時点では所望の二次元D
CT処理結果(二次元DCT係数)を転置した状態(Z
T=((AD)・ATT=A・(AD)T)になってい
る。前述のように、この時点ではスイッチ205は、端
子(2)側に切り替わっているので、二次元DCT係数
(転置)は、量子化器204へ入力され、周波数毎に所
定の重み付けされた量子化テーブルにて量子化(圧縮)
処理された後、スイッチ205の端子(2)経由で再び
メモリ206に記憶される。ここで、量子化器204に
入力されるDCT係数は、前述のように転置された状
態、即ち水平、垂直成分が逆になって一次元DCT処理
装置203から出力されるので、周波数に対する量子化
テーブルの配置もそれに対応したものになっている。
Therefore, at this point, the desired two-dimensional D
Transformed CT processing result (two-dimensional DCT coefficient) (Z
T = ((AD) ・ A T ) T = A ・ (AD) T ). As described above, since the switch 205 has been switched to the terminal (2) side at this time, the two-dimensional DCT coefficient (transposition) is input to the quantizer 204, and a predetermined weighted quantization is performed for each frequency. Quantization (compression) in table
After being processed, it is stored in the memory 206 again via the terminal (2) of the switch 205. Here, the DCT coefficient input to the quantizer 204 is output from the one-dimensional DCT processor 203 in a transposed state, that is, the horizontal and vertical components are inverted as described above. The layout of the table also corresponds to it.

【0048】量子化器204にて量子化(圧縮)処理さ
れた二次元DCT係数は、再度、メモリ206に入力さ
れた後、制御装置208の制御により、転置及びジグザ
グ・スキャンの順序で読み出され、スイッチ207の端
子(2)経由で、二次元DCT処理された係数ブロック
として出力されるように構成されている(図6参照)。
The two-dimensional DCT coefficients quantized (compressed) by the quantizer 204 are input to the memory 206 again, and then read out in the order of transposition and zigzag scanning under the control of the control unit 208. Then, it is configured to be output as a two-dimensional DCT-processed coefficient block via the terminal (2) of the switch 207 (see FIG. 6).

【0049】次に図2に於ける一次元処理装置203と
メモリ206に関する時間的な動作状態を説明する(図
2及び図3参照)。
Next, the temporal operation of the one-dimensional processor 203 and the memory 206 in FIG. 2 will be described (see FIGS. 2 and 3).

【0050】図3に示す時刻t0を、ある1ブロックの
一次元DCT処理の開始時刻と仮定する。
Assume that time t 0 shown in FIG. 3 is the start time of the one-dimensional DCT processing of a certain block.

【0051】前記時刻t0に開始された一次元DCT処
理は、時刻t1で前記1ブロック分の一次元DCT処理
を完了する(図3の符号31)。
The one-dimensional DCT process started at the time t 0 completes the one-dimensional DCT process for one block at the time t 1 (reference numeral 31 in FIG. 3).

【0052】一方、あるブロックに対して前記時刻t0
で開始された一次元DCT処理は、前記DCT処理され
るブロックの画素データは、DCT処理終了次第、順次
メモリに書き込まれるわけであるが、図3に於ける時刻
0+△tは、最初にDCT処理を終了したデータの書
き込み開始時間である(図3の符号32)。
On the other hand, for a certain block, the time t 0
In the one-dimensional DCT processing started in step (1), the pixel data of the block to be subjected to the DCT processing is sequentially written to the memory as soon as the DCT processing ends, but at time t 0 + Δt in FIG. Is the write start time of the data after the DCT processing is completed (reference numeral 32 in FIG. 3).

【0053】即ち、時刻t0からt1の間で、ブロックは
一次元DCT処理され、時刻t0+△tからt1+△tの
間で前記一次元DCT処理されたブロックの全データが
メモリ206に書き込まれる(図3の符号32)。
That is, from time t 0 to t 1 , the block is subjected to one-dimensional DCT processing, and from time t 0 + Δt to t 1 + Δt, all data of the block subjected to the one-dimensional DCT processing is obtained. The data is written to the memory 206 (reference numeral 32 in FIG. 3).

【0054】前述のように時刻t1+△t、一次元DC
T処理ずみの1ブロック分のデータ書き込みが終了と同
時に、前記メモリに書き込まれた一次元DCT処理され
たデータを転置の順序にて読み出しを開始し(図3の符
号33)、時刻t2から二回目の一次元DCT処理を開
始する(図3の符号34)。
As described above, at time t 1 + Δt, one-dimensional DC
One block data is written in T the treated simultaneously and end, and starts reading a one-dimensional DCT processing data written in the memory at transposed order (reference numeral 33 in FIG. 3), from the time t 2 The second one-dimensional DCT processing is started (reference numeral 34 in FIG. 3).

【0055】前記と同様にして、二回目の一次元DCT
処理が完了したデータから順次前記メモリに書き込まれ
る(図3の符号35)わけであるが、図3の33と35
の状態は、図3のtvで表される時間、前記メモリは読
み出しと書き込みの両方の動作をタイムシェアリングで
交互に行っている(図7参照)。
In the same manner as described above, the second one-dimensional DCT
The data that has been processed is sequentially written into the memory (reference numeral 35 in FIG. 3).
Is a time represented by tv in FIG. 3, and the memory alternately performs both read and write operations by time sharing (see FIG. 7).

【0056】即ち、図3の状態33と35の期間に於け
るtv時間に、I.図2の制御装置208の制御によ
り、メモリを読み出しモードにセットし、一次元DCT
処理装置の処理の単位で、メモリからデータを読み出す
(図7の期間I)。II.次に制御装置208は、前記読
み出されたデータに対して一次元DCT処理を開始させ
る(図7の期間II)。III.前記IIのDCT処理に於い
て、最初の処理単位のDCTが終了した時点で、制御装
置208は、メモリを書き込みモードに変更し、前記処
理単位毎にDCT処理済みのデータ(ブロックの一部)
をメモリ206に書き込む。
That is, at time t v during the period between states 33 and 35 in FIG. Under the control of the control device 208 in FIG. 2, the memory is set to the read mode, and the one-dimensional DCT
Data is read from the memory in units of processing of the processing device (period I in FIG. 7). II. Next, the control device 208 starts a one-dimensional DCT process on the read data (period II in FIG. 7). III. When the DCT of the first processing unit is completed in the DCT processing of II, the control unit 208 changes the memory to the write mode, and performs the DCT-processed data (part of a block) for each processing unit.
Is written into the memory 206.

【0057】本第2の実施形態(図2)は、ブロック毎
に上記I〜IIIを繰り返し行うように構成されている。
The second embodiment (FIG. 2) is configured so that I to III are repeated for each block.

【0058】結果として、時刻t1+△t〜t2rの間で
読み出されたブロックは、時刻t2からt0の間で二度目
の一次元DCT処理され、時刻t2+△tからt3+△t
の間で前記二度目の一次元DCT処理を完了したブロッ
クの全データが再度メモリ206に書き込まれる(図3
の符号35)。
As a result, the block read from time t 1 + Δt to t 2r is subjected to the second one-dimensional DCT processing from time t 2 to t 0 , and from time t 2 + Δt t 3 + Δt
All the data of the block that has completed the second one-dimensional DCT process is written into the memory 206 again (FIG. 3).
35).

【0059】これ以降図3の符号37〜41は、以上説
明した図3の符号31〜35の繰り返しであり、以上説
明したハードウェア構成により多次元DCT処理を含む
圧縮・符号化器を実現するものである。
Hereinafter, reference numerals 37 to 41 in FIG. 3 are repetitions of the reference numerals 31 to 35 in FIG. 3 described above, and a compression / encoder including multidimensional DCT processing is realized by the hardware configuration described above. Things.

【0060】なお、上記実施形態で説明した符号化装置
は、例えばデジタルカメラ等の装置内に組み込まれても
良いし、それ以外の装置に組み込まれても良い。また、
複数の機器(例えばホストコンピュータ、インタフェイ
ス機器、リーダ、プリンタなど)から構成されるシステ
ムに適用しても良い。
The encoding device described in the above embodiment may be incorporated in a device such as a digital camera, or may be incorporated in other devices. Also,
The present invention may be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, and a printer).

【0061】[0061]

【発明の効果】以上説明したように本発明によれば、簡
単な構成で多次元DCT処理装置を実現することができ
る。そして、転置とジグザグ・スキャンに必要なメモリ
を共用できるように構成したので、総ハード量の低減と
低消費電力化が可能となる。
As described above, according to the present invention, a multidimensional DCT processing apparatus can be realized with a simple configuration. Since the memory required for the transposition and the zigzag scan can be shared, the total hardware amount can be reduced and the power consumption can be reduced.

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

【図1】第1の実施形態における装置の初期状態とその
ブロック構成図である。
FIG. 1 is a diagram illustrating an initial state of an apparatus according to a first embodiment and a block configuration diagram thereof.

【図2】第2の実施形態における装置の初期状態とその
ブロック構成図である。
FIG. 2 is an initial state of a device according to a second embodiment and its block configuration diagram.

【図3】第2の実施形態におけるDCT処理に関するタ
イミングチャートを示す図である。
FIG. 3 is a diagram showing a timing chart relating to DCT processing in a second embodiment.

【図4】従来の符号化器の機能ブロック図である。FIG. 4 is a functional block diagram of a conventional encoder.

【図5】図1に於いて、スイッチ102,105の第二
の状態を示す図である。
FIG. 5 is a diagram showing a second state of the switches 102 and 105 in FIG.

【図6】図2に於いて、スイッチ202,205,20
7の第二の状態を示す図である。
FIG. 6 shows switches 202, 205, 20 in FIG.
FIG. 7 is a diagram showing a second state of FIG.

【図7】図2に於けるメモリ206のR/Wタイミング
・チャートを示す図である。
FIG. 7 is a diagram showing an R / W timing chart of a memory 206 in FIG. 2;

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 画像データをブロック単位に入力する入
力手段と、 ブロック単位の画像データについて一次元直交変換を行
う変換手段と、 該変換手段で変換されたブロックデータを記憶するメモ
リと、 前記変換手段へ供給するブロックとして、前記入力手段
から入力したブロック、又は、前記メモリより転置して
読出したブロックのいずれかを選択する第1の選択手段
と、 前記メモリから前記第1の選択手段に供給するか、或い
は外部に出力するかのいずれかを選択する第2の選択手
段と、 前記第1、第2の選択手段の選択を制御する制御手段と
を備えることを特徴とする画像処理装置。
An input unit for inputting image data in block units; a conversion unit for performing one-dimensional orthogonal transformation on the image data in block units; a memory for storing the block data converted by the conversion unit; First selecting means for selecting either a block input from the input means or a block transposed and read from the memory, and a block supplied from the memory to the first selecting means. An image processing apparatus, comprising: a second selection unit that selects one of the first and second output units; and a control unit that controls selection of the first and second selection units.
【請求項2】 前記制御手段は、 最初の段階では、前記第1の選択手段の入力対象として
前記入力手段を選択し、 次の段階では第2の選択手段から供給されるブロックを
選択することを特徴とする請求項第1項に記載の画像処
理装置。
2. The control unit selects the input unit as an input target of the first selection unit in a first stage, and selects a block supplied from the second selection unit in a next stage. The image processing apparatus according to claim 1, wherein:
【請求項3】 画像データをブロック単位に入力する入
力手段と、 ブロック単位の画像データについて一次元直交変換を行
う変換手段と、 該変換手段で変換されたブロックデータを記憶するメモ
リと、 前記変換手段へ供給するブロックとして、前記入力手段
から入力したブロック、又は、前記メモリより転置して
読出したブロックのいずれかを選択する第1の選択手段
と、 前記メモリから前記第1の選択手段に供給するか、或い
は外部に出力するかのいずれかを選択する第2の選択手
段とを備える画像処理装置の制御方法であって、 所定のタイミングにしたがって、前記第1、第2の選択
手段の選択対象を切り替える制御工程を備えることを特
徴とする画像処理装置の制御方法。
3. An input unit for inputting image data in block units, a conversion unit for performing one-dimensional orthogonal transformation on the image data in block units, a memory for storing the block data converted by the conversion unit, First selecting means for selecting either a block input from the input means or a block transposed and read from the memory, and a block supplied from the memory to the first selecting means. And a second selecting means for selecting either of the first and second selecting means, the first and second selecting means according to a predetermined timing. A control method for an image processing apparatus, comprising a control step of switching an object.
【請求項4】 画像データをブロック単位に入力する入
力手段と、 ブロック単位の画像データについて一次元直交変換を行
う変換手段と、 該変換手段で変換されたブロックデータを量子化する量
子化手段と、 前記変換手段で変換されたブロック又は量子化されたブ
ロックを記憶するメモリと、 前記変換手段へ供給するブロックとして、前記入力手段
から入力したブロック、又は、前記メモリより転置して
読出したブロックのいずれかを選択する第1の選択手段
と、 前記メモリに供給するブロックとして、前記変換手段で
変換されたブロック又は前記量子化手段で量子化された
ブロックのいずれかを選択する第2の選択手段と、 前記メモリから前記第1の選択手段に供給するか、或い
は外部に出力するかのいずれかを選択する第3の選択手
段と、 前記第1乃至第3の選択手段の選択を制御する制御手段
とを備えることを特徴とする画像処理装置。
4. An input unit for inputting image data in block units, a conversion unit for performing one-dimensional orthogonal transform on the image data in block units, and a quantization unit for quantizing the block data converted by the conversion unit. A memory for storing a block converted or quantized by the conversion unit; and a block supplied to the conversion unit, the block input from the input unit, or the block transposed and read from the memory. A first selection unit for selecting either one of the blocks to be supplied to the memory; and a second selection unit for selecting either a block converted by the conversion unit or a block quantized by the quantization unit. And third selecting means for selecting either to supply from the memory to the first selecting means or to output to the outside. An image processing apparatus comprising: a control unit that controls selection of the first to third selection units.
【請求項5】 画像データをブロック単位に入力する入
力手段と、 ブロック単位の画像データについて一次元直交変換を行
う変換手段と、 該変換手段で変換されたブロックデータを量子化する量
子化手段と、 前記変換手段で変換されたブロック又は量子化されたブ
ロックを記憶するメモリと、 前記変換手段へ供給するブロックとして、前記入力手段
から入力したブロック、又は、前記メモリより転置して
読出したブロックのいずれかを選択する第1の選択手段
と、 前記メモリに供給するブロックとして、前記変換手段で
変換されたブロック又は前記量子化手段で量子化された
ブロックのいずれかを選択する第2の選択手段と、 前記メモリから前記第1の選択手段に供給するか、或い
は外部に出力するかのいずれかを選択する第3の選択手
段とを備える画像処理装置であって、 所定のタイミングにしたがって前記第1乃至第3の選択
手段の選択を制御する制御工程を備えることを特徴とす
る画像処理装置の制御方法。
5. An input unit for inputting image data in block units, a conversion unit for performing one-dimensional orthogonal transformation on image data in block units, and a quantization unit for quantizing the block data converted by the conversion unit. A memory for storing a block converted or quantized by the conversion unit; and a block supplied to the conversion unit, the block input from the input unit, or the block transposed and read from the memory. A first selection unit for selecting either one of the blocks to be supplied to the memory; and a second selection unit for selecting either a block converted by the conversion unit or a block quantized by the quantization unit. And third selecting means for selecting either to supply from the memory to the first selecting means or to output to the outside. An image processing apparatus comprising: a control step of controlling selection of the first to third selection units in accordance with a predetermined timing.
JP24920699A 1999-09-02 1999-09-02 Image processor and its control method Withdrawn JP2001078190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24920699A JP2001078190A (en) 1999-09-02 1999-09-02 Image processor and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24920699A JP2001078190A (en) 1999-09-02 1999-09-02 Image processor and its control method

Publications (1)

Publication Number Publication Date
JP2001078190A true JP2001078190A (en) 2001-03-23

Family

ID=17189504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24920699A Withdrawn JP2001078190A (en) 1999-09-02 1999-09-02 Image processor and its control method

Country Status (1)

Country Link
JP (1) JP2001078190A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7127119B2 (en) * 2001-10-05 2006-10-24 Canon Kabushiki Kaisha Image processing apparatus and method, program, and storage medium
DE102011007311A1 (en) 2010-04-14 2011-12-15 Canon Kabushiki Kaisha The data transformation device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7127119B2 (en) * 2001-10-05 2006-10-24 Canon Kabushiki Kaisha Image processing apparatus and method, program, and storage medium
DE102011007311A1 (en) 2010-04-14 2011-12-15 Canon Kabushiki Kaisha The data transformation device
US8554004B2 (en) 2010-04-14 2013-10-08 Canon Kabushiki Kaisha Data transform apparatus

Similar Documents

Publication Publication Date Title
US6167091A (en) Image data encoding apparatus
US20050190976A1 (en) Moving image encoding apparatus and moving image processing apparatus
KR100401087B1 (en) Decoder for decoding different types of code signals
US7102551B2 (en) Variable length decoding device
JP2008288832A (en) Information processing apparatus and method
JP4517306B2 (en) Information processing apparatus and method
US6798927B2 (en) Conversion of pixel data for interpolation or image reduction, using a small memory
JPH08289302A (en) Image decoding device
US7929777B2 (en) Variable length decoding device, variable length decoding method and image capturing system
JPH0759096A (en) Video encoder and decoder
JPH10304354A (en) Moving image decoding method and moving image decoder
US7542612B2 (en) Signal processing method and signal processing device
KR20020001815A (en) Video encoding and decoding with selectable image resolution
JP2947389B2 (en) Image processing memory integrated circuit
US7330595B2 (en) System and method for video data compression
JP2001078190A (en) Image processor and its control method
JP2776284B2 (en) Image coding device
JPH11252338A (en) Data processor
JP3394619B2 (en) Image compression system
JPH08130741A (en) Picture decoder
JPH0795572A (en) Picture coder
JPH10200899A (en) Device and method for decoding moving picture
KR100208480B1 (en) Decoding apparatus of moving picture compressor
JPH0937261A (en) Coding system and coder
JPH09214956A (en) Image decoder

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: 20061107