JP2002262099A - Picture processor and dma controller for the same - Google Patents

Picture processor and dma controller for the same

Info

Publication number
JP2002262099A
JP2002262099A JP2001052938A JP2001052938A JP2002262099A JP 2002262099 A JP2002262099 A JP 2002262099A JP 2001052938 A JP2001052938 A JP 2001052938A JP 2001052938 A JP2001052938 A JP 2001052938A JP 2002262099 A JP2002262099 A JP 2002262099A
Authority
JP
Japan
Prior art keywords
data
image
dma
compression
processing apparatus
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
JP2001052938A
Other languages
Japanese (ja)
Inventor
Nobuaki Matsui
信明 松井
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 JP2001052938A priority Critical patent/JP2002262099A/en
Publication of JP2002262099A publication Critical patent/JP2002262099A/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)
  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To relieve burden on a processor and to efficiently compress a picture when compression data is stored and managed at each image, not in a whole one page but partially. SOLUTION: A compression core outputs a restart mark FF and RSTm after ending a compression processing concerning one strip. A write DMAC detects the restart mark, inserts a padding in order to align the words of data in the succeeding strip to be successively outputted and transfers it to a memory. In this case, the address of head data in each kind of word-aligned compression data is successively stored in a pointer arrayal area.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置及び画
像処置装置用DMAコントローラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and a DMA controller for an image processing apparatus.

【0002】[0002]

【従来の技術】カラーイメージを扱うシステムでは、デ
ータ量が膨大になるため、イメージデータをデータ圧縮
して扱う事がメモリ容量削減に有効である。ところが、
ページイメージ単位でデータ圧縮し管理する事は、画像
を回転したり、鏡像を生成したりすることが必要にな
る。このように、1ページ分の画像をデータ伸長する必
要があるため、バッファメモリも当然1ページ分の容量
を必要とし、処理全体のスループットを高めることがで
きない。
2. Description of the Related Art In a system for handling color images, since the amount of data is enormous, it is effective to reduce the memory capacity by compressing and handling image data. However,
To compress and manage data in page image units, it is necessary to rotate an image or generate a mirror image. As described above, since it is necessary to decompress the image of one page, the buffer memory naturally requires the capacity of one page, and the throughput of the entire process cannot be increased.

【0003】そこで、1ページ分のイメージを複数の小
イメージ(タイルもしくはストリップ)単位で圧縮し管
理する事で、バッファメモリの削減と画像処理のスルー
プット向上を図ることが考えられる。
Therefore, it is conceivable to reduce the buffer memory and improve the throughput of image processing by compressing and managing an image for one page in units of a plurality of small images (tiles or strips).

【0004】[0004]

【発明が解決しようとする課題】しかし、小イメージご
とにイメージ圧縮回路を動作させるという事は、ページ
イメージ全体を圧縮するために多数の起動動作と、短い
時間間隔での割り込み処理が生じる事になり、CPUに
負荷がかかるという問題がある。
However, operating the image compression circuit for each small image means that a large number of start-up operations for compressing the entire page image and interrupt processing at short time intervals occur. Thus, there is a problem that a load is applied to the CPU.

【0005】JPEGなどのイメージ圧縮方式を採用し
た場合には、小イメージの区切りにリスタートマーカ
(RSTm)を挿入する事によってページイメージ全体を一
度に圧縮し、小イメージ部分にきりわけることも可能で
ある。しかし、この場合には小イメージの区切りとなる
メモリ上のアドレスをソフトウェアによって検索する必
要があり、処理に時間がかかるという問題がある。ま
た、圧縮した小イメージを画像処理回路に処理させる場
合には、小イメージの先頭アドレスがワードバウンダリ
に置かれている必要があるが、リスタートマーカ(RST
m)の挿入による連続圧縮では、小イメージの先頭アド
レスをワードバウンダリにそろえる事が出来ず、画像処
理回路に処理させるために、ワードバウンダリから始ま
るメモリ空間に圧縮された小イメージをコピーする処理
が更に必要であるため、より多くの時間を必要とする問
題がある。
[0005] When an image compression method such as JPEG is adopted, the entire page image can be compressed at once by inserting a restart marker (RSTm) at the end of the small image, and the small image portion can be divided. It is. However, in this case, it is necessary to search an address on the memory serving as a delimiter of the small image by software, and there is a problem that it takes a long time for the processing. When the image processing circuit processes the compressed small image, the start address of the small image needs to be placed at the word boundary.
In the continuous compression by insertion of m), the start address of the small image cannot be aligned with the word boundary, and the process of copying the compressed small image to the memory space starting from the word boundary is required to process the image processing circuit. There is a problem that more time is required because it is necessary.

【0006】[0006]

【課題を解決するための手段】本発明はかかる問題点に
鑑みなされたものであり、1ページ全体ではなく、部分
的なイメージ毎に圧縮データを記憶管理する場合に、プ
ロセッサにかかる負担を少なくし、効率良く画像の圧縮
を行うことを可能ならしめる画像処理装置及び画像処置
装置用DMAコントローラを提供しようとするものであ
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and reduces the load on a processor when storing and managing compressed data for each partial image instead of one entire page. It is another object of the present invention to provide an image processing apparatus and a DMA controller for an image processing apparatus that enable efficient image compression.

【0007】この課題を解決するため、例えば本発明の
画像処理装置は以下の構成を備える。すなわち、圧縮画
像データを生成する画像処理装置であって、設定された
データ量毎に圧縮し、圧縮された圧縮データの最後にリ
スタートマーカを付加して出力する圧縮手段と、所定の
メモリに記憶された圧縮対象の画像データを前記圧縮手
段にDMA転送する第1のDMA手段と、前記圧縮手段
から出力された圧縮データを前記メモリとは別メモリ空
間にDMA転送すると共に、前記リスタートマーカの存
在を検出したとき、後続して出力される圧縮データをワ
ードアライメントして出力するため、パディングを挿入
して転送する第2のDMA手段とを備える。
In order to solve this problem, for example, an image processing apparatus according to the present invention has the following configuration. That is, an image processing apparatus that generates compressed image data, compresses data for each set data amount, adds a restart marker to the end of the compressed data, and outputs the compressed data. A first DMA unit for DMA-transferring the stored image data to be compressed to the compression unit, and a DMA transfer of the compressed data output from the compression unit to a memory space separate from the memory; And a second DMA unit that inserts padding and transfers the compressed data to be output after word-alignment of the compressed data to be output when the presence of the compressed data is detected.

【0008】[0008]

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

【0009】図1は実施形態で適用するシステム構成を
示したブロック図である。以下、同図に従ってその構成
と動作について説明する。
FIG. 1 is a block diagram showing a system configuration applied in the embodiment. Hereinafter, the configuration and operation will be described with reference to FIG.

【0010】スキャナ106においてスキャンされた画
像は、スキャナインターフェース107を介してマルチ
ファンクションコントローラ111の内部に取り込まれ
る。取り込まれた画像はクロスバー回路104を介し
て、メインメモリ103に格納される。CPU102
は、所定量のイメージがメインメモリ103に格納され
るとイメージ圧縮回路101を起動し、メインメモリ1
03に格納された画像のデータ圧縮を開始させる。イメ
ージ圧縮回路101が起動されると、リードDMAC1
01aがメインメモリ103よりスキャン画像をリード
し、イメージ圧縮コア101bへ送る。イメージ圧縮コ
ア101bは受け取ったイメージ画像をデータ圧縮し、
圧縮後のデータをライトDMAC101cへと転送す
る。ライトDMAC101cは、イメージ圧縮コア10
1bから受け取った圧縮データをメインメモリ103へ
と書き戻す。ライトDMAC101cはイメージ圧縮コ
ア101bから受け取ったデータとあらかじめ指定され
たストリップ(小イメージ)間を示すリスタートマーカ
とを常に比較しており、圧縮データ内にリスタートマー
カが存在した場合には、リスタートマーカをエンドオブ
イメージマーカに置き換え、マーカの後に次のワードバ
ウンダリまでパディングデータを詰めて、圧縮イメージ
をメインメモリ103へと書き戻す。
An image scanned by the scanner 106 is taken into the multifunction controller 111 via the scanner interface 107. The captured image is stored in the main memory 103 via the crossbar circuit 104. CPU102
Activates the image compression circuit 101 when a predetermined amount of image is stored in the main memory 103, and activates the main memory 1
Data compression of the image stored in the storage unit 03 is started. When the image compression circuit 101 is activated, the read DMAC 1
01a reads the scanned image from the main memory 103 and sends it to the image compression core 101b. The image compression core 101b performs data compression on the received image image,
The compressed data is transferred to the write DMAC 101c. The write DMAC 101 c
The compressed data received from 1b is written back to the main memory 103. The write DMAC 101c constantly compares the data received from the image compression core 101b with a restart marker indicating a predetermined strip (small image). If a restart marker exists in the compressed data, the restart DMAC 101c restarts. The start marker is replaced with an end-of-image marker, padding data is packed to the next word boundary after the marker, and the compressed image is written back to the main memory 103.

【0011】ライトDMAC101cはさらに、マーカ
に続くデータをワードアラインにシフトし、さらに続く
データをイメージ圧縮コア101bから受け取ってデー
タを結合し、ストリップの先頭データとしてメインメモ
リ103へのデータライトを継続していく。同時にライ
トDMAC101cはストリップの先頭アドレスを、メ
インメモリ103の圧縮データと異なる領域にライトす
る。こうして圧縮されたデータは、メインメモリ103
内で複数スプールされる。スプールされた圧縮イメージ
データは、イメージ伸長回路112によって伸長され、
画像処理回路110によって回転された後、プリンタイ
ンターフェース109を介してプリンタ108によって
紙にプリントされる。また、ネットワークスキャン動作
の場合には、スプールされた圧縮イメージデータが、ネ
ットワークインターフェース105を介してホスト11
3へと送られる。
The write DMAC 101c further shifts data following the marker to word alignment, receives further data from the image compression core 101b, combines the data, and continues writing data to the main memory 103 as head data of a strip. To go. At the same time, the write DMAC 101c writes the start address of the strip to an area of the main memory 103 different from the compressed data. The data thus compressed is stored in the main memory 103.
Multiple spools within. The spooled compressed image data is expanded by the image expansion circuit 112,
After being rotated by the image processing circuit 110, it is printed on paper by the printer 108 via the printer interface 109. In the case of the network scan operation, the spooled compressed image data is transferred to the host 11 via the network interface 105.
Sent to 3.

【0012】図2は本実施形態の画像構成を示した模式
図である。ページデータ(a)はM個のストリップ(水平
方向の小イメージ)に分割されて管理される。本実施形
態の画像圧縮方式はJPEGとする。このため、1つの
ストリップ(b) は複数(N×4個)のMCU(c)か
ら構成される。1つのMCU(c)(画素ブロック)は8
×8画素から構成される。CPU102は、イメージ圧
縮回路101を起動する際に、イメージ圧縮コア101
bに、N×4 個の MCU ごとにリスタートマーカを
挿入するように設定する。この事によってストリップの
境界にリスタートマーカが挿入された圧縮データがイメ
ージ圧縮コア101bからライトDMAC101cへ渡
される。
FIG. 2 is a schematic diagram showing an image configuration of the present embodiment. The page data (a) is managed by being divided into M strips (small images in the horizontal direction). The image compression method of this embodiment is JPEG. Therefore, one strip (b) is composed of a plurality (N × 4) of MCUs (c). One MCU (c) (pixel block) is 8
It consists of × 8 pixels. When activating the image compression circuit 101, the CPU 102
In b, a setting is made so that a restart marker is inserted for every N × 4 MCUs. As a result, the compressed data having the restart marker inserted at the boundary of the strip is transferred from the image compression core 101b to the write DMAC 101c.

【0013】なお、CPU102は、イメージ圧縮回路
101内のイメージ圧縮コア101bに対して、1スト
リップのデータ量(バイト数)を設定しておく。イメー
ジ圧縮コア101bは、この設定されたデータ量を受信
し、圧縮するたびに上記のリスタートマークを付加して
ライトDMAC101cに出力することになる。
The CPU 102 sets the data amount (the number of bytes) of one strip for the image compression core 101b in the image compression circuit 101. The image compression core 101b receives the set data amount, adds the restart mark described above every time the data is compressed, and outputs it to the write DMAC 101c.

【0014】また、CPU102がイメージ圧縮回路1
01(リードDMAC101a)を起動するタイミング
は、上記の例で説明すると、メインメモリ103のバッ
ファに4MCU分の読み取りライン×M(Mは1以上の
整数)=32×Mライン分のデータが可能されたときと
した。例えば、M=2とした場合、2ストリップのデー
タをDMA転送して圧縮し、その結果(2ストリップ分
の圧縮データ)がメインメモリに格納されることにな
る。
Further, the CPU 102 operates the image compression circuit 1
The timing of activating 01 (read DMAC 101a) will be described in the above example. In the buffer of the main memory 103, data of 4 MCU read lines × M (M is an integer of 1 or more) = 32 × M lines are possible. When For example, when M = 2, two strips of data are DMA-transferred and compressed, and the result (compressed data for two strips) is stored in the main memory.

【0015】図3はイメージ圧縮処理の様子を示した模
式図である。ページイメージ(a)はリードDMAC10
1a によりメインメモリ103から読み出され、イメ
ージ圧縮コア101b へ送られる。イメージ圧縮コア
101b はワード単位(実施形態では32ビットとし
ている)で圧縮データ(b)をライトDMAC 101c
へ出力する。ライトDMAC101c は受け取った圧
縮データの先頭アドレスをメインメモリ103内に確保
したポインタ配列領域の Pointer[0]として格納し、圧
縮データをメインメモリ103のデータ領域に格納する
(d)。ライトDMAC101c は6ワード目にリスター
トマーカ(FF, RSTm)を検出したため、ストリップの終端
を検知し、このワードの後半2バイトにパディングを挿
入する(c)。当該ワードの後半2バイトから次のストリ
ップが開始されるため、データをシフトし、続くワード
の前半2バイトとマージしてワードデータを作成し、メ
インメモリ103へとライトする。ライトDMAC 1
01cはこれと同時にストリップの先頭アドレスをメイ
ンメモリ103のポインタ配列領域に Pointer[1]とし
て格納する。
FIG. 3 is a schematic diagram showing a state of the image compression processing. Page image (a) is read DMAC10
1a, is read from the main memory 103 and sent to the image compression core 101b. The image compression core 101b writes the compressed data (b) in word units (32 bits in the embodiment) and writes the DMAC 101c.
Output to The write DMAC 101c stores the start address of the received compressed data as Pointer [0] of the pointer array area secured in the main memory 103, and stores the compressed data in the data area of the main memory 103.
(d). Since the write DMAC 101c has detected the restart marker (FF, RSTm) in the sixth word, it detects the end of the strip and inserts padding in the latter two bytes of this word (c). Since the next strip starts from the last two bytes of the word, the data is shifted, merged with the first two bytes of the following word to create word data, and written to the main memory 103. Write DMAC 1
01c simultaneously stores the head address of the strip in the pointer array area of the main memory 103 as Pointer [1].

【0016】図4はライトDMAC101cの構成を示
したブロック図である。コアインターフェース401
は、シーケンサ401aがイメージ圧縮コア101bと
ハンドシェイクし、イメージ圧縮コア101bから圧縮
データをワード単位で受け取り、レジスタ401bへ一
旦格納する。レジスタ401bに格納されたデータは、
マーカ検出器402へ送られ、当該ワードにリスタート
マーカが含まれるかどうかを検出する。リスタートマー
カが検出されると、その情報がマーカ変換器403とシ
フト量保持器404へ送られ、リスタートマーカはエン
ドオブイメージマーカへ変換されると共に、パディング
後のシフト量が更新される。マーカ変換器403を通っ
た圧縮データは、パディング兼シフタ405によってパ
ディング及び前回ワードとマージされる。マージされた
データはレジスタ406に保持され、保持されたデータ
はセレクタ407によってバイト単位で選択され、メモ
リアクセス回路408内のレジスタ408aに一旦格納
され、シーケンサ408bがクロスバスイッチ104と
通信する事によって、メインメモリ103のアドレスカ
ウンタ408cの指すアドレスに書き戻される。マーカ
検出器402がリスタートマーカを検出すると、パディ
ングされたデータワードがメインメモリ103に書かれ
た後、続くアドレスを、メモリアクセス回路409がメ
インメモリ103のポインタ格納領域に書き出す。
FIG. 4 is a block diagram showing the configuration of the write DMAC 101c. Core interface 401
The sequencer 401a performs handshake with the image compression core 101b, receives compressed data from the image compression core 101b in word units, and temporarily stores the data in the register 401b. The data stored in the register 401b is
The word is sent to the marker detector 402 to detect whether the word includes a restart marker. When the restart marker is detected, the information is sent to the marker converter 403 and the shift amount holder 404, and the restart marker is converted into an end-of-image marker, and the shift amount after padding is updated. The compressed data that has passed through the marker converter 403 is padded and merged with the previous word by the padding / shifter 405. The merged data is held in the register 406, the held data is selected in units of bytes by the selector 407, temporarily stored in the register 408a in the memory access circuit 408, and the sequencer 408b communicates with the crossbar switch 104. The data is written back to the address of the main memory 103 indicated by the address counter 408c. When the marker detector 402 detects the restart marker, the padded data word is written into the main memory 103, and then the subsequent address is written by the memory access circuit 409 into the pointer storage area of the main memory 103.

【0017】以上の結果、本第1の実施形態によれば、
最低でも、複数の画素ブロックで構成される1ストリッ
プ単に圧縮され、しかも、各圧縮後のストリップに対す
るデータはワードアライメントが施された状態で格納す
ることに成功する。
As a result, according to the first embodiment,
At a minimum, one strip consisting of a plurality of pixel blocks is simply compressed, and the data for each compressed strip is successfully stored in a word-aligned state.

【0018】<第2の実施形態>図5は本第2の実施形
態の画像構成を示した模式図である。
<Second Embodiment> FIG. 5 is a schematic diagram showing an image configuration of the second embodiment.

【0019】本第2の実施形態では、ページデータ(a)
をN×M個のタイル(小イメージ)に分割されて管理さ
れる。そして、本第2の実施形態の画像圧縮方式はJP
EGであるため、タイル(b) は複数(4×4個)のM
CU(c)から構成される。MCU(c)は8×8画素か
ら構成される。CPU102は、イメージ圧縮回路10
1を起動する際に、イメージ圧縮コア101bに、4×
4=16 個の MCUごとにリスタートマーカを挿入す
るように設定する。この事によってタイルの境界にリス
タートマーカが挿入された圧縮データがイメージ圧縮コ
ア101bからライトDMAC101cへ渡される。
In the second embodiment, the page data (a)
Is divided into N × M tiles (small images) and managed. The image compression method according to the second embodiment is JP
Since it is an EG, the tile (b) has a plurality (4 × 4) of M
CU (c). MCU (c) is composed of 8 × 8 pixels. The CPU 102 controls the image compression circuit 10
1 is activated, the image compression core 101b has 4 ×
Set to insert a restart marker for every 4 = 16 MCUs. As a result, the compressed data with the restart marker inserted at the boundary of the tile is transferred from the image compression core 101b to the write DMAC 101c.

【0020】図6はイメージ圧縮処理の様子を示した模
式図である。ページイメージ(a)はリードDMAC10
1a によりメインメモリ103から読み出され、イメ
ージ圧縮コア101b へ送られる。イメージ圧縮コア
101b はワード単位で圧縮データ(b)をライトDM
AC 101c へ出力する。ライトDMAC101cは
受け取った圧縮データの先頭アドレスをメインメモリ1
03のポインタ配列領域に Pointer[0]として格納し、
圧縮データをメインメモリ103のデータ領域に格納す
る(d)。ライトDMAC101c は6ワード目にリスタ
ートマーカ(FF,RSTm)を検出したため、ストリップの終
端を検知し、このワードの後半2バイトにパディングを
挿入する(c)。当該ワードの後半2バイトから次のスト
リップが開始されるため、データをシフトし、続くワー
ドの前半2バイトとマージしてワードデータを作成し、
メインメモリ103へとライトする。ライトDMAC
101cはこれと同時にストリップの先頭アドレスをメ
インメモリ103のポインタ配列領域に Pointer[1]と
して格納する。
FIG. 6 is a schematic diagram showing a state of the image compression processing. Page image (a) is read DMAC10
1a, is read from the main memory 103 and sent to the image compression core 101b. The image compression core 101b writes the compressed data (b) in word units by DM.
Output to AC 101c. The write DMAC 101c stores the start address of the received compressed data in the main memory 1
03 is stored as Pointer [0] in the pointer array area,
The compressed data is stored in the data area of the main memory 103 (d). Since the write DMAC 101c has detected the restart marker (FF, RSTm) in the sixth word, it detects the end of the strip and inserts padding in the latter two bytes of this word (c). Since the next strip starts from the latter two bytes of the word, the data is shifted and merged with the first two bytes of the following word to create word data.
Write to the main memory 103. Write DMAC
At the same time, 101c stores the start address of the strip in the pointer array area of the main memory 103 as Pointer [1].

【0021】図7はリードDMAC101aが、イメー
ジデータをリードするシーケンスを示した模式図であ
る。本第2の実施形態では、タイルを第1の実施形態と
同様に圧縮するために、ライトDMAC101cに加
え、リードDMAC101a にタイルをアドレスを計
算する機能を付加している。リードDMAC101a
は図7(a)の順序にタイルデータをリードする。タイル
の中では、リードDMAC101a は図7(b) の順序
でMCUデータをリードする。この事によって4×4=
16 MCUが1タイルとして区切る事が可能となる。
FIG. 7 is a schematic diagram showing a sequence in which the read DMAC 101a reads image data. In the second embodiment, in order to compress tiles in the same manner as in the first embodiment, a function of calculating a tile address is added to the read DMAC 101a in addition to the write DMAC 101c. Read DMAC 101a
Reads tile data in the order shown in FIG. In the tile, the read DMAC 101a reads the MCU data in the order shown in FIG. This gives 4 × 4 =
16 MCUs can be divided as one tile.

【0022】図8はリードDMAC101aの構成を示
したブロック図である。ベースレジスタ801がページ
イメージデータの先頭アドレスを保持しており、このア
ドレスを起点としてタイルアドレス計算器802がタイ
ルの先頭アドレスを計算する。ベースレジスタ801の
アドレスはセレクタ802eが切り替わる事によってレ
ジスタ802fに保持される。タイル切り替え時にはセ
レクタ802c,802eが切り替わり、水平オフセッ
トレジスタ802aに格納された水平方向のタイル移動
のオフセットが加算器802dによって加算され、次の
タイルの先頭アドレスがレジスタ801fに格納され
る。タイルが垂直方向に更新される場合には、水平オフ
セットレジスタ802bがアドレスに加算される。タイ
ルアドレス計算器802が出力する先頭アドレスは、M
CUアドレス計算器803に入力され、MCUの先頭ア
ドレスが計算される。このMCUの先頭アドレスはピク
セルアドレス計算器804に入力され、ピクセルのアド
レスが計算される。ピクセルのアドレスデータにしたが
ってシーケンサ805がイメージデータをメインメモリ
103から取得し、レジスタ806へ格納される。レジ
スタ806へ格納されたデータは点順次面順次変換回路
807によってMCU内の面順次データに変換され、イ
メージ圧縮コアインターフェース808によってイメー
ジ圧縮コア101bへ送られ、データ圧縮が行われる。
FIG. 8 is a block diagram showing the configuration of the read DMAC 101a. The base register 801 holds the top address of the page image data, and the tile address calculator 802 calculates the top address of the tile starting from this address. The address of the base register 801 is held in the register 802f when the selector 802e switches. When the tile is switched, the selectors 802c and 802e are switched, the offset of the horizontal tile movement stored in the horizontal offset register 802a is added by the adder 802d, and the start address of the next tile is stored in the register 801f. When the tile is updated in the vertical direction, the horizontal offset register 802b is added to the address. The head address output from the tile address calculator 802 is M
The data is input to the CU address calculator 803, and the head address of the MCU is calculated. The head address of this MCU is input to the pixel address calculator 804, and the address of the pixel is calculated. The sequencer 805 acquires the image data from the main memory 103 according to the pixel address data, and stores the acquired image data in the register 806. The data stored in the register 806 is converted into frame sequential data in the MCU by a dot sequential frame sequential conversion circuit 807 and sent to the image compression core 101b by the image compression core interface 808 to perform data compression.

【0023】以上説明したように、本第1、第2の実施
形態によれば、CPUにかかる負荷が少なく、且つ、複
数の小イメージを一括して圧縮する事ができるようにな
り、尚かつ、小イメージ先頭アドレスのアドレスアライ
ンの問題が解決され、さらに圧縮後のマーカ検索の必要
が無くなる。この事により、ページイメージを複数の小
イメージで管理するイメージシステムにおいて、スルー
プットを向上する事が可能となる。
As described above, according to the first and second embodiments, the load on the CPU is small, and a plurality of small images can be compressed at a time. Thus, the problem of address alignment of the small image head address is solved, and the need for marker search after compression is eliminated. This makes it possible to improve the throughput in an image system that manages a page image with a plurality of small images.

【0024】[0024]

【発明の効果】以上説明したように本発明によれば、1
ページ全体ではなく、部分的なイメージ毎に圧縮データ
を記憶管理する場合に、プロセッサにかかる負担を少な
くし、効率良く画像の圧縮を行うことが可能になる。
As described above, according to the present invention, 1
When compressed data is stored and managed for each partial image instead of the entire page, the load on the processor can be reduced, and the image can be efficiently compressed.

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

【図1】実施形態におけるシステム構成を示したブロッ
ク図である。
FIG. 1 is a block diagram illustrating a system configuration according to an embodiment.

【図2】実施形態における画像の構成を示した模式図で
ある。
FIG. 2 is a schematic diagram illustrating a configuration of an image according to the embodiment.

【図3】実施形態のイメージ圧縮処理とデータの並びの
推移の関係を示す図である。
FIG. 3 is a diagram illustrating a relationship between an image compression process according to the embodiment and a transition of a data sequence.

【図4】ライトDMAC101cの構成を示したブロッ
ク図である。
FIG. 4 is a block diagram showing a configuration of a write DMAC 101c.

【図5】第2の実施形態の画像の構成を示した模式図で
ある。
FIG. 5 is a schematic diagram illustrating a configuration of an image according to a second embodiment.

【図6】第2の実施形態のイメージ圧縮処理とデータの
並びの推移の関係を示す図である。
FIG. 6 is a diagram illustrating a relationship between an image compression process according to the second embodiment and a transition in the arrangement of data.

【図7】第2の実施形態におけるリードDMAC101
aのイメージデータをリードするシーケンスを示した模
式図である。
FIG. 7 is a read DMAC 101 according to the second embodiment.
FIG. 4 is a schematic diagram showing a sequence for reading image data of FIG.

【図8】第2の実施形態におけるリードDMAC101
aの構成を示したブロック図である。
FIG. 8 shows a read DMAC 101 according to the second embodiment.
FIG. 3 is a block diagram showing the configuration of FIG.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 圧縮画像データを生成する画像処理装置
であって、 設定されたデータ量毎に圧縮し、圧縮された圧縮データ
の最後にリスタートマーカを付加して出力する圧縮手段
と、 所定のメモリに記憶された圧縮対象の画像データを前記
圧縮手段にDMA転送する第1のDMA手段と、 前記圧縮手段から出力された圧縮データを前記メモリと
は別メモリ空間にDMA転送すると共に、前記リスター
トマーカの存在を検出したとき、後続して出力される圧
縮データをワードアライメントして出力するため、パデ
ィングを挿入して転送する第2のDMA手段とを備える
ことを特徴とする画像処理装置。
1. An image processing apparatus for generating compressed image data, comprising: compression means for compressing data for each set data amount, adding a restart marker to the end of the compressed data, and outputting the compressed data; A first DMA unit that DMA-transfers image data to be compressed stored in the memory to the compression unit, and DMA-transfers the compressed data output from the compression unit to a memory space separate from the memory, An image processing apparatus comprising: a second DMA unit that inserts padding and transfers the compressed data that is subsequently output when the presence of the restart marker is detected, in order to output word-aligned compressed data. .
【請求項2】 前記第2のDMA手段は、リスタートマ
ーカを検出したとき、エンドオブイメージマーカに置き
換えることを特徴とする請求項第1項に記載の画像処理
装置。
2. The image processing apparatus according to claim 1, wherein when the second DMA unit detects a restart marker, the second DMA unit replaces the restart marker with an end-of-image marker.
【請求項3】 前記第2のDMA手段は、ワードアライ
メントして出力する先頭の圧縮データのアドレス位置を
示す情報を、所定のアドレスポインタ領域に順に格納す
る手段を含むことを特徴とする請求項第2項に記載の画
像処理装置。
3. The apparatus according to claim 2, wherein said second DMA means includes means for sequentially storing, in a predetermined address pointer area, information indicating an address position of the first compressed data to be word-aligned and output. 3. The image processing apparatus according to claim 2.
【請求項4】 前記圧縮手段は、圧縮する最小単位がK
×Kビットの画素ブロックであって、複数の画素ブロッ
クで構成されるストリップ毎にリスタートマーカを付加
することを特徴とする請求項第1項に記載の画像処理装
置。
4. The compression unit according to claim 1, wherein a minimum unit for compression is K.
2. The image processing apparatus according to claim 1, wherein a restart marker is added to each of a pixel block of × K bits and a strip including a plurality of pixel blocks.
【請求項5】 前記圧縮手段は、圧縮する最小単位がK
×Kビットの画素ブロックであって、複数の画素ブロッ
クで構成されるタイル毎にリスタートマーカを付加する
ことを特徴とする請求項第1項に記載の画像処理装置。
5. The compression unit according to claim 1, wherein a minimum unit for compression is K.
2. The image processing apparatus according to claim 1, wherein a restart marker is added to each tile of a pixel block of × K bits, the tile including a plurality of pixel blocks.
【請求項6】 所定量毎の画像データを圧縮し、最後に
リスタートマーカを付加して出力する画像処理装置用の
DMAコントローラであって、 圧縮後のデータを受信し、所定のメモリにDMA転送す
る第1のDMA転送手段と、 圧縮後のデータに、前記リスタートマーカが存在する場
合、後続して出力される圧縮データをワードアライメン
トして出力するため、パディングを挿入して転送する第
2のDMA手段とを備えることを特徴とする画像処理装
置用のDMAコントローラ。
6. A DMA controller for an image processing apparatus for compressing image data of a predetermined amount and adding a restart marker at the end and outputting the compressed data. First DMA transfer means for transferring, and when the restart marker is present in the data after compression, padding is inserted and transferred for outputting word-aligned compressed data to be subsequently output when the restart marker is present. A DMA controller for an image processing apparatus, comprising: two DMA units.
【請求項7】 前記第2のDMA手段は、リスタートマ
ーカを検出したとき、エンドオブイメージマーカに置き
換えることを特徴とする請求項第6項に記載の画像処理
装置用DMAコントローラ。
7. The DMA controller according to claim 6, wherein the second DMA unit replaces the restart marker with an end-of-image marker when detecting the restart marker.
【請求項8】 前記第2のDMA手段は、ワードアライ
メントして出力する先頭の圧縮データのアドレス位置を
示す情報を、所定のアドレスポインタ領域に順に格納す
る手段を含むことを特徴とする請求項第7項に記載の画
像処理装置用DMAコントローラ。
8. The apparatus according to claim 1, wherein said second DMA means includes means for sequentially storing, in a predetermined address pointer area, information indicating the address position of the head compressed data to be output after word alignment. 8. A DMA controller for an image processing apparatus according to claim 7.
JP2001052938A 2001-02-27 2001-02-27 Picture processor and dma controller for the same Withdrawn JP2002262099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001052938A JP2002262099A (en) 2001-02-27 2001-02-27 Picture processor and dma controller for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001052938A JP2002262099A (en) 2001-02-27 2001-02-27 Picture processor and dma controller for the same

Publications (1)

Publication Number Publication Date
JP2002262099A true JP2002262099A (en) 2002-09-13

Family

ID=18913483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001052938A Withdrawn JP2002262099A (en) 2001-02-27 2001-02-27 Picture processor and dma controller for the same

Country Status (1)

Country Link
JP (1) JP2002262099A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6181378A (en) * 1984-09-26 1986-04-24 株式会社東芝 Method and device for earthquake-controlling elevator
WO2006068073A1 (en) * 2004-12-20 2006-06-29 Nec Corporation Image data generating method, apparatus thereof, image distributing system, image distributing apparatus thereof, and their programs
JP2010219708A (en) * 2009-03-16 2010-09-30 Ricoh Co Ltd Method and apparatus for processing image
JPWO2012117701A1 (en) * 2011-03-02 2014-07-07 日本電気株式会社 Data control system, data control method, and data control program
CN111080508A (en) * 2019-11-21 2020-04-28 中国航空工业集团公司西安航空计算技术研究所 DMA-based GPU (graphics processing Unit) sub-image processing method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6181378A (en) * 1984-09-26 1986-04-24 株式会社東芝 Method and device for earthquake-controlling elevator
WO2006068073A1 (en) * 2004-12-20 2006-06-29 Nec Corporation Image data generating method, apparatus thereof, image distributing system, image distributing apparatus thereof, and their programs
JP2010219708A (en) * 2009-03-16 2010-09-30 Ricoh Co Ltd Method and apparatus for processing image
JPWO2012117701A1 (en) * 2011-03-02 2014-07-07 日本電気株式会社 Data control system, data control method, and data control program
CN111080508A (en) * 2019-11-21 2020-04-28 中国航空工业集团公司西安航空计算技术研究所 DMA-based GPU (graphics processing Unit) sub-image processing method
CN111080508B (en) * 2019-11-21 2023-06-13 中国航空工业集团公司西安航空计算技术研究所 GPU sub-image processing method based on DMA

Similar Documents

Publication Publication Date Title
US7336386B2 (en) Image processor including a data compression unit having a switch and image processing method thereof
JPH07205496A (en) Page printer and method for data compression
JP3003319B2 (en) Image processing device
US7447363B2 (en) Image processing system with parallel input and restart marker
JP2002262099A (en) Picture processor and dma controller for the same
JP6772020B2 (en) Image processing device, control method of image processing device, and program
US7538900B2 (en) Image processing apparatus, image processing method, and image processing system
JP2003241983A (en) Information processor and information processing method
JP2002314763A (en) Controller for color copying machine
JP2003092674A (en) Image processing apparatus and image processing method
JPH06284282A (en) Image forming device
JP2000138823A (en) Image processor
JP2003309680A (en) Image forming equipment
JP3093891B2 (en) Compressed code decoding device
JP4065194B2 (en) Image forming apparatus
JP2002112004A (en) Printing device and storage medium
JP2945028B2 (en) Image processing designated area information calculation device
JP2004157609A (en) Image processing apparatus and image processing system
JP2003196044A (en) Image processing method and its device
JP2004056447A (en) Picture processor, picture processing method, computer readable storage medium and program
JPH06282639A (en) Picture forming device
JPS6349824A (en) Printer control system
JPH10257223A (en) Digital copying machine
JPH02185455A (en) Control system of high-resolution printer
JP2004354747A (en) Image display device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080513