JP2001245121A - Image processor and its control method - Google Patents

Image processor and its control method

Info

Publication number
JP2001245121A
JP2001245121A JP2000052323A JP2000052323A JP2001245121A JP 2001245121 A JP2001245121 A JP 2001245121A JP 2000052323 A JP2000052323 A JP 2000052323A JP 2000052323 A JP2000052323 A JP 2000052323A JP 2001245121 A JP2001245121 A JP 2001245121A
Authority
JP
Japan
Prior art keywords
image data
transfer
processing
image
unit
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
JP2000052323A
Other languages
Japanese (ja)
Inventor
Hideyuki Makitani
秀之 牧谷
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 JP2000052323A priority Critical patent/JP2001245121A/en
Publication of JP2001245121A publication Critical patent/JP2001245121A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image processor and its control method having improved efficiency in throughput and memory utilization regarding data processing by making the memory simultaneously accessible to plural different kinds of data. SOLUTION: A control unit (controller section) 110 causes simultaneous conducting of transfer to the memory of a specified amount of image data output from the scanner unit 210 that has read the image and converted into the image data, transfer of the image data stored in the memory to CODEC for image data compression, and transfer of the image data stored in the memory to the liquid crystal display of an operation unit 150. The transfer volume of the image data to CODEC is calculated, based on the data transfer speed to memory and the CODEC processing speed. The control unit executes a command to start CODEC when the image data is transferred and gives the command to show the data on the liquid crystal display of the operation unit, when a prescribed amount of image data is transferred to memory.

Description

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

【発明の属する技術分野】本発明は、スキャナ等の画像
入力装置と、プリンタ等の画像出力装置とを制御し、画
像データの処理・制御を行う画像処理装置及びその制御
方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image processing apparatus for controlling an image input device such as a scanner and an image output device such as a printer to process and control image data, and a control method thereof.

【従来の技術】従来、画像入出力装置を制御する装置に
おいて、メモリを介して画像データを取り扱う場合、メ
モリの容量を節約したり、処理を最適化するための手法
が考案されている。特に、電子写真系の画像入出力装置
においては、画像入出力装置側の処理が一定速度で行わ
れるために、装置側でそれ以上のデータ転送速度を保証
する必要がある。例えば、スキャナから入力した画像
を、圧縮伸長装置(以下「CODEC」)を使用して圧
縮してメモリに保存する場合、入力画像データをリング
バッファに読み込みながら同時にCODECの処理を行
うことにより、メモリの節約(即ち、1ページ全体分の
メモリを必要としない)と、入力処理と圧縮処理のオー
バーラップによる処理速度の向上を実現している。この
ような動作を可能にするために、画像入力用のDMA動
作と圧縮用のDMA動作とがうまく連携して同時動作が
行え、かつスキャナからのデータ入力動作に追随できる
処理速度を保証できるような手法が考案されている。
2. Description of the Related Art Conventionally, in a device for controlling an image input / output device, when image data is handled via a memory, a technique for saving the memory capacity and optimizing the processing has been devised. Particularly, in an electrophotographic image input / output device, since the processing on the image input / output device side is performed at a constant speed, it is necessary to guarantee a higher data transfer speed on the device side. For example, when an image input from a scanner is compressed using a compression / decompression device (hereinafter referred to as “CODEC”) and stored in a memory, the input image data is read into a ring buffer while CODEC processing is performed at the same time. (That is, the memory for the entire page is not required), and the processing speed is improved by overlapping the input processing and the compression processing. In order to enable such an operation, the DMA operation for image input and the DMA operation for compression can be performed simultaneously in good cooperation, and a processing speed that can follow the data input operation from the scanner can be guaranteed. Techniques have been devised.

【発明が解決しようとする課題】しかしながら、上記従
来例では、同時動作を行うための仕組みが、ともすれば
固定的な使用条件に限定されてしまい、その結果、柔軟
性や拡張性に欠ける場合が多かった。また、同時動作の
種類を2つまで(スキャナからの画像データ入力とデー
タ圧縮、又はスキャナからの画像データ入力とプリンタ
への出力)の処理に限定して速度保証をしている例やD
MA動作中はCPUによる同一データ領域へのアクセス
が禁止されるような例が多かった。そのため、それ以上
の組み合わせの動作を行おうとすると、データ処理のス
ループットが低下したり、その間、画像をビットマップ
データとして保持しなければならないために、メモリの
使用効率が低減したりする、といった問題があった。一
方、このようなハードウェア的な制限を排除した制御装
置が提案されており(特開平11−45225号公
報)、その装置においては、同時動作可能な処理を自由
に組み合わせることができ、その場合でも、データ転送
速度が保証できるだけの動作帯域幅を持っている。しか
しながら、ハードウェアによって同時動作可能な処理を
自由に組み合わせることができると記載されているのみ
で、例えば3種類の処理を同時動作させるような応用例
については記載されていなかった。本発明は、上記課題
を解決するためになされたもので、複数種類の処理にお
けるメモリへの同時アクセスを可能に制御することで、
データ処理のスループットとメモリの利用効率を向上さ
せた画像処理装置及びその制御方法を提供することを目
的とする。
However, in the above conventional example, the mechanism for performing simultaneous operations is often limited to fixed use conditions, and as a result, lacks flexibility and expandability. There were many. Further, there is an example in which the speed is guaranteed by limiting the type of simultaneous operation to two processes (input of image data from a scanner and data compression, or input of image data from a scanner and output to a printer).
In many cases, access to the same data area by the CPU during the MA operation is prohibited. For this reason, if an attempt is made to perform an operation with more combinations, the throughput of the data processing will decrease, and during that time, the image must be held as bitmap data, and the memory usage efficiency will decrease. was there. On the other hand, a control device that eliminates such hardware restrictions has been proposed (Japanese Patent Laid-Open No. 11-45225). In this device, processes that can operate simultaneously can be freely combined. But it has enough operating bandwidth to guarantee the data transfer rate. However, the document only describes that processes that can be simultaneously operated by hardware can be freely combined, but does not describe an application example in which, for example, three types of processes are simultaneously operated. SUMMARY An advantage of some aspects of the invention is to solve the above problem by controlling simultaneous access to a memory in a plurality of types of processing.
It is an object of the present invention to provide an image processing apparatus and a control method thereof, in which data processing throughput and memory use efficiency are improved.

【課題を解決するための手段】上記目的を達成するため
に、本発明による画像処理装置は、画像を読み込み、画
像データに変換する画像入力手段と、画像データを記憶
する記憶手段へ前記画像入力手段により入力された所定
量の画像データを転送する第1の転送手段と、画像デー
タを処理する第1の処理手段へ前記記憶手段に記憶され
た画像データを転送する第2の転送手段と、画像データ
を処理する第2の処理手段へ前記記憶手段に記憶された
画像データを転送する第3の転送手段と、前記第1の転
送手段によるデータ転送速度と、前記第1の処理手段に
よる処理速度とに基づき、前記第2の転送手段による画
像データの転送量を算出する転送量算出手段と、前記転
送量算出手段により算出された転送量の画像データが第
2の転送手段により転送されると画像データの処理を開
始するように前記第1の処理手段を制御し、前記第1の
転送手段による所定量の画像データが前記第3の転送手
段により転送されると画像データの処理を開始するよう
に前記第2の処理手段を制御する制御手段とを有するこ
とを特徴とする。また、上記目的を達成するために、本
発明による画像処理装置の制御方法は、画像を読み込
み、画像データに変換する画像入力手段により入力され
た所定量の画像データを記憶手段へ転送する第1の転送
工程と、画像データを処理する第1の処理手段へ前記記
憶手段に記憶された画像データを転送する第2の転送工
程と、画像データを処理する第2の処理手段へ前記記憶
手段に記憶された画像データを転送する第3の転送工程
と、前記第1の転送工程によるデータ転送速度と、前記
第1の処理手段による処理速度とに基づき、前記第2の
転送工程による画像データの転送量を算出する転送量算
出工程と、前記転送量算出工程により算出された転送量
の画像データが第2の転送工程により転送されると画像
データの処理を開始するように前記第1の処理手段を制
御し、前記第1の転送工程による所定量の画像データが
前記第3の転送工程により転送されると画像データの処
理を開始するように前記第2の処理手段を制御する制御
工程とを有することを特徴とする。
To achieve the above object, an image processing apparatus according to the present invention comprises an image input means for reading an image and converting the image into image data; and an image input means for storing the image data in a storage means for storing the image data. First transfer means for transferring a predetermined amount of image data input by the means, second transfer means for transferring the image data stored in the storage means to first processing means for processing the image data, A third transfer unit that transfers the image data stored in the storage unit to a second processing unit that processes the image data, a data transfer speed by the first transfer unit, and a process by the first processing unit Transfer amount calculating means for calculating a transfer amount of image data by the second transfer means based on the speed; and image data of the transfer amount calculated by the transfer amount calculating means, The first processing means is controlled so that the processing of the image data is started when the image data is transferred, and when a predetermined amount of image data is transferred by the third transfer means, the image data is processed. Control means for controlling the second processing means so as to start processing. In order to achieve the above object, a control method of an image processing apparatus according to the present invention includes a first method of reading an image and transferring a predetermined amount of image data input by an image input means for converting the image data to a storage means. Transfer step, a second transfer step of transferring the image data stored in the storage means to the first processing means for processing the image data, and a second processing means for processing the image data to the storage means A third transfer step of transferring the stored image data, a data transfer rate of the first transfer step, and a processing rate of the image data of the second transfer step based on the processing speed of the first processing means. A transfer amount calculating step of calculating a transfer amount; and a step of starting the processing of the image data when image data of the transfer amount calculated in the transfer amount calculating step is transferred in a second transfer step. And controlling the second processing means so as to start processing the image data when a predetermined amount of image data in the first transfer step is transferred in the third transfer step. And a process.

【発明の実施の形態】以下、図面を参照しながら本発明
に係る実施の形態を詳細に説明する。図1は、本実施形
態における画像入出力システム100の全体構成を示す
図である。同図において、200はリーダー部(画像入
力装置)であり、原稿画像を光学的に読み取り、画像デ
ータに変換する。リーダー部200は原稿を読み取るた
めの機能を持つスキャナユニット210と、原稿用紙を
搬送するための機能を持つ原稿給紙ユニット250とで
構成される。300はプリンタ部(画像出力装置)であ
り、記録紙を搬送し、その記録紙上に画像データを可視
画像として印字して装置外に排紙する。プリンタ部30
0は複数種類の記録紙カセットを持つ給紙ユニット31
0と、画像データを記録紙に転写、定着させる機能を持
つマーキングユニット320と、印字された記録紙をソ
ート、ステイプルして機外へ出力する機能を持つ排紙ユ
ニット330とで構成される。110は制御装置(コン
トローラ部)であり、リーダー部200及びプリンタ部
300に電気的に接続され、400のネットワーク(L
AN)を介して複数のホストコンピュータ(PC)40
1,402と接続されている。また、制御装置110は
リーダー部200を制御して原稿の画像データを読み込
み、プリンタ部300を制御して画像データを記録用紙
に出力するコピー機能を提供する。更に、リーダー部2
00から読み取った画像データをコードデータに変換
し、ネットワーク400を介してホストコンピュータ4
01(402)へ送信するスキャナ機能と、ホストコン
ピュータ401(402)からネットワーク400を介
して受信したコードデータを画像データに変換し、プリ
ンタ部300に出力するプリンタ機能とを提供する。1
50は操作部であり、制御装置110に接続され、液晶
タッチパネルで構成され、画像入出力システムを操作す
るためのユーザI/Fを提供する。図2は、リーダー部
200及びプリンタ部300の構造を示す断面図であ
る。リーダー部200の原稿給送ユニット250は原稿
を先頭順に1枚ずつプラテンガラス211上へ給送し、
原稿の読み取り動作終了後、プラテンガラス211上の
原稿を排出するものである。原稿がプラテンガラス21
1上に搬送されると、ランプ212を点灯し、そして光
学ユニット213の移動を開始させて、原稿を露光走査
する。この時の原稿からの反射光は、ミラー214,2
15,216、及びレンズ217によってCCDイメー
ジセンサー(以下「CCD」)218へ導かれる。この
ように、走査された原稿画像はCCD218によって読
み取られる。CCD218から出力される画像データに
対して所定の処理が施された後、制御装置110へ転送
される。一方、プリンタ部300のレーザドライバ32
1はレーザ発光部322を駆動するものであり、制御装
置110から出力された画像データに応じたレーザ光を
レーザ発光部322に発光させる。このレーザ光は感光
ドラム323に照射され、感光ドラム323にはレーザ
光に応じた潜像が形成される。ここで、この感光ドラム
323の潜像の部分には現像器324によって現像剤が
付着される。そして、レーザ光の照射開始と同期したタ
イミングで、カセット311或いは312の何れかから
記録紙を給紙して転写部325へ搬送し、感光ドラム3
23に付着された現像剤を記録紙に転写する。現像剤の
乗った記録紙は定着部326に搬送され、定着部326
の熱と圧力により現像剤は記像紙に定着される。定着部
326を通過した記録紙は排出ローラ327によって排
出され、排紙ユニット330が排出された記録紙を束ね
て記録紙の仕分けをしたり、仕分けされた記録紙のステ
イプルを行う。また、両面記録が設定されている場合
は、排出ローラ327の所まで記録紙を搬送した後、排
出ローラ327の回転方向を逆転させ、フラッパ328
によって再給紙搬送路329へ導く。そして、再給紙搬
送路329へ導かれた記録紙は上述したタイミングで転
写部325へ給紙される。 <制御装置110の説明>次に、画像入出力システム1
00における制御装置(コントローラ部)110の機能
について説明する。図3は、本実施形態における制御装
置110の構成を示すブロック図である。同図におい
て、111はメインコントローラであり、主にCPU1
12と、バスコントローラ113と、各種I/Fコント
ローラ回路とから構成される。CPU112とバスコン
トローラ113は制御装置110全体の動作を制御する
ものであり、CPU112はROM114からROM
I/F115を介して読み込んだプログラムに基づき動
作する。また、ホストコンピュータから受信したPDL
(ページ記述言語)コードデータを解釈し、ラスターイ
メージデータに展開する動作も、このプログラムに記述
されており、ソフトウェアによって処理される。バスコ
ントローラ113は各I/Fから入出力されるデータ転
送を制御するものであり、バス競合時の調停やDMAデ
ータ転送の制御を行う。116はDRAMであり、DR
AMI/F117によってメインコントローラ111と
接続されており、CPU112が動作するためのワーク
エリアや、画像データを蓄積するためのエリアとして使
用される。121はネットワークコントローラであり、
I/F123によってメインコントローラ111と接続
され、122のコネクタによって外部ネットワークと接
続される。ネットワークとしては、一般的にイーサネッ
トがあげられる。124は拡張ボードを接続するための
拡張コネクタであり、125の汎用高速バスに接続され
る。汎用高速バス125としては、一般的にPCIバス
があげられる。126はI/O制御部であり、リーダー
部200、プリンタ部300の各CPUと制御コマンド
を送受信するための調歩同期シリアル通信コントローラ
127が2チャネル装備されており、I/Oバス128
によって外部I/F回路140,145に接続されてい
る。また、汎用高速バス125に接続されている。13
2はパネルI/Fであり、LCDコントローラ131に
接続され、操作部150上の液晶画面に表示を行うため
のI/Fと、ハードキーやタッチパネルキーの入力を行
うためのキー入力I/F130とから構成される。ここ
で、操作部150は液晶表示部と液晶表示部上に張り付
けられたタッチパネル入力装置と、複数個のハードキー
を有し、タッチパネル又はハードキーにより入力された
信号は上述したパネルI/F132を介してCPU11
2に伝えられ、液晶表示部はパネルI/F132から送
られてきた画像データを表示する。液晶表示部には、本
画像形成装置の操作における機能表示や画像データ等を
表示する。133はリアルタイムクロックモジュールで
あり、機器内で管理する日付及び時刻を更新/保存する
ためのもので、134のバックアップ電池によってバッ
クアップされている。161はE−IDEコネクタであ
り、不図示の外部記憶装置を接続するためのものであ
る。また、このコネクタ161を介してハードディスク
やCD−ROMドライブを接続し、プログラムや画像デ
ータを書き込んだりことができる。142及び147は
コネクタであり、それぞれリーダー部200とプリンタ
部300とに接続され、同調歩同期シリアルI/F14
3,148とビデオI/F144,149とから構成さ
れる。140はスキャナI/Fであり、コネクタ142
を介してリーダー部200と接続され、スキャナバス1
41によってメインコントローラ111と接続されてい
る。そして、リーダー部200から受け取った画像を、
その後の過程における処理の内容に応じて最適に2値化
したり、主走査・副走査に変倍処理する機能を有し、更
にリーダー部200から送られたビデオ制御信号に基づ
いて生成した制御信号をスキャナバス141に出力する
機能も有する。尚、スキャナバス141からDRAM1
16へのデータ転送は、バスコントローラ113によっ
て制御される。145はプリンタI/Fであり、コネク
タ147を介してプリンタ部300と接続され、プリン
タバス146によってメインコントローラ111と接続
されている。そして、メインコントローラ111から出
力された画像データにスムージング処理を行いプリンタ
部300へ出力する機能を有し、更にプリンタ部300
から送られたビデオ制御信号に基づいて生成した制御信
号をプリンタバス146に出力する機能も有する。尚、
DRAM116上に展開されたラスターイメージデータ
のプリンタ300部への転送は、バスコントローラ11
3によって制御され、プリンタバス146、ビデオI/
F149を経由して、プリンタ部300へDMA転送さ
れる。 <メインコントローラ111の説明>次に、制御装置1
10におけるメインコントローラ111について説明す
る。図4は、本実施形態におけるメインコントローラ1
11の構成を示すブロック図である。図示するように、
プロセッサコア(CPUU)401は、64ビットのプ
ロセッサバス(SCBus)を介してシステム・バス・
ブリッジ(SBB)402に接続される。SBB402
は4×4の64ビットクロスバスイッチであり、プロセ
ッサコア401の他にキャッシュメモリを備えたSDR
AMやROMを制御するメモリコントローラ(MC)4
03と専用のローカルバス(MCBus)で接続されて
おり、更にグラフィックバスであるGバス(GBus)
404と、IOバスであるBバス(BBus)405と
接続され、全部で4つのバスに接続される。尚、SBB
402は、これら4モジュール間を、可能な限り、同時
平行接続を確保できるように設計されている。また、デ
ータの圧縮伸長ユニット(codec)418とも、codec I/F
を介して接続されている。Gバス404はGバスアービ
タ(GBA)406により協調制御されており、スキャ
ナやプリンタと接続するためのスキャナ・プリンタコン
トローラ(SPC)408に接続される。また、Bバス
405はBバスアービタ(BBA)407により協調制
御されており、SPC408のほか、電力管理ユニット
(PMU)409、インタラプトコントローラ(IC)
410、UARTを用いたシリアルインタフェースコン
トローラ(SIC)411、USBコントローラ(US
BC)412、IEEE1284を用いたパラレルイン
タフェースコントローラ(PIC)413、イーサネッ
トを用いたLANコントローラ(LANC)414、L
CDパネル,キー,汎用入出力コントローラ(MIS
C)415、PCIバスインタフェース(PCIC)4
16にも接続されている。また、MISC415には、
表示パネルやキーボードを備えた操作パネル417が接
続される。ここで、メインコントローラ111の各ユニ
ットについて更に詳述する。 <インタラプトコントローラ410>インタラプトコン
トローラ410は、Bバス405に接続され、メインコ
ントローラチップ内の各機能ブロック及びチップ外部か
らのインタラプトを集積し、プロセッサコア401がサ
ポートする、6レベルの外部インタラプト及びノンマス
カブルインタラプト(NMI)に再分配する。尚、各機
能ブロックとは、電力管理ユニット409、シリアルイ
ンタフェースコントローラ411、USBコントローラ
412、パラレルインタフェースコントローラ413、
イーサネットコントローラ414、汎用入出力コントロ
ーラ415、PCIバスインタフェース416、スキャ
ナ/プリンタコントローラ408などである。 <メモリコントローラ403>メモリコントローラ40
3は、メモリコントローラ専用のローカルバスであるM
Cバスに接続され、シンクロナスDRAM(SDRA
M)やフラッシュROMやROMを制御する。 <システムバスブリッジ402>SBB402は、Bバ
ス(入出力バス),Gバス(グラフィックバス),SC
バス(プロセッサローカルバス)及びMCバス間の相互
接続をクロスバスイッチを用いて提供する、マルチチャ
ネル双方向バスブリッジである。ここで、クロスバスイ
ッチは、少なくとも2系統の接続を同時に確立すること
ができ、並列性の高い高速データ転送を実現できる。図
5は、システムバスブリッジ402の構成を示すブロッ
ク図である。図示するように、SBB402はBバス4
05と接続するためのBバスインタフェース2009
と、Gバス404と接続するためのGバスインタフェー
ス2006と、プロセッサコア401と接続するための
CPUインタフェース・スレーブポート2002と、メ
モリコントローラ403と接続するためのメモリインタ
フェース・マスターポート2001と、圧縮伸長ユニッ
ト418と接続するためのCODECバスインタフェー
ス2014とを備えるほか、アドレスバスを接続するア
ドレススイッチ2003、データバスを接続するデータ
スイッチ2004を含む。また、プロセッサコア401
のキャッシュメモリを無効化するキャッシュ無効化ユニ
ット2005を備えている。また、CODECバスイン
タフェース2014は、CODEC418との間でデー
タ転送を行うDMACとして機能する。 <PCIバスインタフェース416>PCIバスインタ
フェース416は、メインコントローラ111内部汎用
IOバスであるBバス405と、チップ外部IOバスで
あるPCIバスの間をインタフェースするユニットであ
る。 <Gバスアービタ406、Bバスアービタ407>Gバ
ス404のアービトレーションは、中央アービトレーシ
ョン方式であり、各バスマスタに対して専用のリクエス
ト信号とグラント信号を持っている。このアービタは制
御方法をプログラミングすることができる。ここで、バ
スマスタへの優先権の与え方として、全てのバスマスタ
を同じ優先権として公平にバス権を与える公平アービト
レーションモードと、何れかひとつのバスマスタの優先
権を上げ、優先的にバスを使用させる優先アービトレー
ションモード、のどちらかを指定できる。Bバスアービ
タ407は、IO汎用バスであるBバス405のバス使
用要求を受け付け、調停の後、使用許可を選択された一
つのマスタに対して与え、同時に2つ以上のマスタがバ
スアクセスを行う事を禁止する。アービトレーション方
式は、3段階のプライオリティを持ち、それぞれのプラ
イオリティに複数のマスタをプログラマブルに割り当て
られる構成になっている。 <スキャナ・プリンタコントローラ408>スキャナ・
プリンタコントローラ408は、ビデオI/Fによって
スキャナ、プリンタと接続され、内部バスGバス及びB
バスにインタフェースするブロックである。図6に示す
ように、大別して以下の3つのブロックから構成され
る。 ・スキャナコントローラ4302 スキャナコントローラ4302は、スキャナとビデオI
/Fで接続され、その動作制御及びデータ転送制御を行
う。Gバス/BバスI/Fユニット(GBI)4301
AとはIFバスで接続され、データ転送及びレジスタの
リード/ライトが行われる。 ・プリンタコントローラ4303 プリンタコントローラ4303は、プリンタとビデオI
/Fで接続され、その動作制御及びデータ転送制御を行
う。Gバス/BバスI/Fユニット(GBI)4301
BとはIFバスで接続され、データ転送及びレジスタの
リード/ライトが行われる。 ・Gバス/BバスI/Fユニット(GBI)4301
A,B Gバス/BバスI/Fユニット(GBI)4301A,
Bは、スキャナコントローラ4302及びプリンタコン
トローラ4303をGバス又はBバスに接続するための
ユニットである。尚、スキャナコントローラ4302と
プリンタコントローラ4303はそれぞれ独立に接続さ
れ、GバスとBバスの両方に接続されている。また、G
バス/BバスI/Fユニット4301A,Bは、それぞ
れデータ転送を行うDMACとして機能する。 ・CPバス スキャナとプリンタの画像データ及び水平垂直同期のた
めの同期信号を直結するためのバスである。 <電力管理ユニット409>メインコントローラ111
は、CPUを内蔵した大規模なASICとして構成され
ている。このため、内部のロジックが全部同時に動作し
てしまうと、大量の熱を発生し、チップ自体が破壊して
しまう恐れがある。そこで、これを防ぐために、メイン
コントローラはブロック毎の電力の管理、即ちパワーマ
ネジメントを行い、更にチップ全体の消費電力量の監視
を行っている。パワーマネージメントは、それぞれのブ
ロックが各自個別に行う。各ブロックの消費電力量の情
報は、パワーマネージメントレベルとして、電力管理ユ
ニット(PMU)409に集められる。PMU409で
は、各ブロックの消費電力量を合計し、その値が限界消
費電力を超えないように、メインコントローラ111の
各ブロックの消費電力量を一括して監視する。次に、本
実施形態における主要部分である、スキャナからの画像
データ入力、画像データ圧縮処理、画像データ間引き処
理、及び液晶表示部への表示を並列に処理する制御につ
いて説明する。尚、本装置のCPU401が実行するフ
ァームウェアはリアルタイム・マルチタスクOSによっ
て制御され、各シーケンス制御プログラムはそれぞれ独
立したタスクとして実行される。また、各タスク間で実
行の同期取りと情報のやり取りを行うには、OSが提供
するメッセージ通信機構を用いる。また、本実施形態で
は、スキャナからの画像データ入力シーケンスを制御す
るタスク(スキャナ制御タスク)と、CODECを制御
して画像データの圧縮シーケンスを制御するタスク(C
ODEC制御タスク)と、画像データの間引き及び液晶
表示部への表示を行うタスク(画像表示タスク)とを並
列に処理する制御について説明するが、本発明はこれだ
けに限らず、他のタスク間で並列に処理する制御につい
て適用することも可能である。まず、スキャナ制御タス
クの動作手順について、図7に示すフローチャートを参
照して説明する。まずステップS701において、スキ
ャンする原稿と解像度とに応じた大きさの画像データ
(ラスターデータ)保存用メモリ領域をDRAM116
上に確保する。そして、ステップS702において、確
保した画像データ領域のアドレスとサイズをCODEC
制御タスク及び表示タスクに通知するために、OSのメ
ッセージ送信サービスを呼び出す。このメッセージは各
タスクへの処理開始要求を兼ねている。次に、ステップ
S703において、スキャンして読み込んだデータを転
送するためのスキャナコントローラ4302への設定と
DMAC4301Aへの設定を行い、続くステップS7
04において、リーダー部200にスキャン開始指示を
出してスキャナ210を起動する。その後、ステップS
705において、OSが提供するタスク・スリープ機能
を用いて50msecの間、タスクの処理を停止する。
そして、ステップS706において、DMAC4301
Aの転送カウンタレジスタの値を読み出し、続くステッ
プS707において、その値を他のタスクへメッセージ
送信により通知する。尚、上述の50msec間のスリ
ープは、他のタスク処理のためにCPU資源を明け渡す
ために行うもので、その時間があまり短すぎるとスリー
プの意味がなくなり、逆に長すぎると処理の応答速度が
遅くなってしまうので、CPUの処理スピードとDMA
の転送スピードに応じて決定すべきものである。次に、
ステップS708において、1ページ分のデータ転送が
完了したか判断し、完了するまで上述のステップS70
5〜S707での処理を繰り返す。尚、データ転送の完
了はDMA割り込み処理によって行われるものである。
その後、1ページ分のデータ転送が終了するとステップ
S708からステップS709へ進み、リーダー部20
0やスキャナコントローラ4302に対して後処理を行
い、1ページの読み込み処理を終了する。次に、COD
EC制御タスクの動作手順について、図8に示すフロー
チャートを参照して説明する。まずステップS801に
おいて、CODEC制御タスクは通常、処理開始要求メ
ッセージ待ち状態にあり、図7に示すスキャナ制御タス
クから、処理開始要求とそれに伴う画像データ保存アド
レスとサイズを受信するとステップS802へ進み、圧
縮データ保存用のメモリ領域をDRAM116上に確保
する。通常、圧縮後のデータサイズは不明であるため、
元の画像(ラスター)データと同じだけの領域を確保
し、余った分は後で解放する。次に、ステップS803
において、CODEC418のレジスタに所定の設定
(ソースアドレス、デスティネーションアドレス、デー
タサイズ、主走査画素数、副走査画素数)を行い、DM
AC2014にも同様の設定を行う。次に、ステップS
804において、スキャン開始後、どれだけのデータ
(プリストアデータ量)を転送してからCODEC41
8を起動するかを算出する。ここでスキャナからのDM
A転送スピードをVs(byte/sec)、CODECのデータ
処理スピードをVc(byte/sec)、トータルデータ転送量
をDt(byte)、プリストアデータ量をDp(byte)とする
と、以下の式で表される。 Dp>Dt(1−Vs/Vc)(Vs>Vcの場合は、
Dp>0とする) 例えば、VcがVsの3倍のスピードである場合(Vs
/Vc=1/3)は、Dp>2/3・Dtとなり、トー
タルデータ転送量の2/3の転送が終了した後、COD
ECを起動することになる。次に、ステップS805に
おいて、スキャナ制御タスクからの転送済データ量の通
知メッセージを受信するOSサービスを呼び出し、CO
DEC制御タスクは待ち状態になる。その後、スキャナ
制御タスクからメッセージが送信されると、タスクは再
び実行状態となり、ステップS806へ進み、受信した
メッセージ中の転送済データ量をプリストアデータ量と
比較する。ここで、プリストアデータ量を越えるだけの
データ転送が終了していない場合はステップS705へ
戻り、再びメッセージ待ち状態となる。また、データ転
送が終了した場合はステップS807へ進み、CODE
C418を起動する。次に、ステップS808におい
て、CODEC418からの処理終了割り込み待ち状態
となり、処理終了割り込みを検出するとステップS80
9へ進み、CODEC418のレジスタから圧縮後のデ
ータサイズを読み出し、余ったメモリ領域を解放し、1
ページの圧縮処理を終了する。次に、表示タスクの動作
手順について、図9に示すフローチャートを参照して説
明する。まずステップS901において、表示タスク
は、通常、処理開始要求メッセージ待ち状態にあり、図
7に示すスキャナ制御タスクから、処理開始要求とそれ
に伴う画像データ保存アドレスとサイズを受信するとス
テップS902へ進み、それに応じた操作パネル417
のLCD表示エリアを決定し、そのエリアをクリアす
る。そして、ステップS903において、表示済のデー
タをカウントするカウンタを“0”にする。次に、ステ
ップS904において、スキャナ制御タスクからの転送
済データ量の通知メッセージを受信するOSサービスを
呼び出し、表示タスクは待ち状態になる。その後、スキ
ャナ制御タスクからメッセージが送信されると、表示タ
スクは再び実行状態となり、ステップS905へ進み、
受信したメッセージ中の転送済データ量を表示済データ
カウンタと比較し、その差分のデータに対して間引き処
理を行う。そして、ステップS906において、間引い
たデータをパネルI/F132を介して操作パネル41
7に送り表示し、ステップS907において、表示済デ
ータカウンタを更新する。次に、ステップS908にお
いて、1ページ分の転送が終了したかを判断し、終了し
ていない場合はステップS904へ戻り、再びメッセー
ジ待ち状態になる。その後、転送が終了した場合はステ
ップS909へ進み、スキャナ制御タスクが確保した分
の画像データメモリ領域を解放し、1ページの表示処理
を終了する。以上説明したように、本実施形態によれ
ば、スキャナからの画像データ入力と並行して、画像デ
ータの圧縮処理、間引き処理及び表示処理を行うことに
より、処理速度の向上と共にページメモリ領域の占有時
間を短縮することができる。尚、本実施形態において
は、スキャナからの画像データ転送量をCPUが一定時
間間隔でポーリングしながら検出する方法を用いている
が、CPU処理の効率化と応答速度の高速化を図るため
には、ハードウェアによる割り込み処理によって検出す
る方法がより好ましい。そのためには、DMAC430
1Aから一定のデータ量の転送終了と、全体のデータ転
送終了とを通知する割り込みを発生する仕組みが実装さ
れていれば良い。その場合、スキャナ制御タスクのスリ
ープ処理の代わりにDMACからの割り込み待ち処理を
実行することにより、動作を実現することができる。ま
た、本実施形態では、スキャナからの画像データ入力シ
ーケンスを制御するタスク(スキャナ制御タスク)と、
CODECを制御して画像データの圧縮シーケンスを制
御するタスク(CODEC制御タスク)と、画像データ
の間引き及び液晶表示部への表示を行うタスク(画像表
示タスク)とを並列に処理する制御について説明した
が、本発明はこれだけに限らず、同時動作可能な他のタ
スク間で並列に処理する制御について適用することも可
能である。尚、本発明は複数の機器(例えば、ホストコ
ンピュータ,インタフェイス機器,リーダ,プリンタな
ど)から構成されるシステムに適用しても、一つの機器
からなる装置(例えば、複写機,ファクシミリ装置な
ど)に適用してもよい。また、本発明の目的は前述した
実施形態の機能を実現するソフトウェアのプログラムコ
ードを記録した記憶媒体を、システム或いは装置に供給
し、そのシステム或いは装置のコンピュータ(CPU若
しくはMPU)が記憶媒体に格納されたプログラムコー
ドを読出し実行することによっても、達成されることは
言うまでもない。この場合、記憶媒体から読出されたプ
ログラムコード自体が前述した実施形態の機能を実現す
ることになり、そのプログラムコードを記憶した記憶媒
体は本発明を構成することになる。プログラムコードを
供給するための記憶媒体としては、例えばフロッピーデ
ィスク,ハードディスク,光ディスク,光磁気ディス
ク,CD−ROM,CD−R,磁気テープ,不揮発性の
メモリカード,ROMなどを用いることができる。ま
た、コンピュータが読出したプログラムコードを実行す
ることにより、前述した実施形態の機能が実現されるだ
けでなく、そのプログラムコードの指示に基づき、コン
ピュータ上で稼働しているOS(オペレーティングシス
テム)などが実際の処理の一部又は全部を行い、その処
理によって前述した実施形態の機能が実現される場合も
含まれることは言うまでもない。更に、記憶媒体から読
出されたプログラムコードが、コンピュータに挿入され
た機能拡張ボードやコンピュータに接続された機能拡張
ユニットに備わるメモリに書込まれた後、そのプログラ
ムコードの指示に基づき、その機能拡張ボードや機能拡
張ユニットに備わるCPUなどが実際の処理の一部又は
全部を行い、その処理によって前述した実施形態の機能
が実現される場合も含まれることは言うまでもない。
BRIEF DESCRIPTION OF THE DRAWINGS FIG.
The embodiment according to will be described in detail. FIG. 1 shows this embodiment.
1 shows an overall configuration of an image input / output system 100 in a state.
FIG. In the figure, reference numeral 200 denotes a leader section (image input section).
Device), which reads the original image optically and
To data. The reader unit 200 reads the original
Scanner unit 210 that has the function of
With the document feeding unit 250 that has the function of conveying
Be composed. Reference numeral 300 denotes a printer unit (image output device).
Transports the recording paper and visualizes the image data on the recording paper.
The image is printed and discharged outside the apparatus. Printer unit 30
0 is a paper feed unit 31 having a plurality of types of recording paper cassettes
0 and has the function of transferring and fixing image data on recording paper.
The marking unit 320 and the printed recording paper
Paper output unit that has the function of
And a knit 330. 110 is a control device (con
A reader unit 200 and a printer unit
300 are electrically connected to each other and 400 networks (L
AN) through a plurality of host computers (PCs) 40
1,402. Also, the control device 110
Reads the image data of the document by controlling the reader unit 200
Control the printer unit 300 to record image data on recording paper
Provide a copy function to output to. Furthermore, leader part 2
Convert image data read from 00 to code data
And the host computer 4 via the network 400
01 (402) and the host function
From the computer 401 (402) via the network 400
To convert the received code data into image data,
And a printer function for outputting to the printer 300. 1
Reference numeral 50 denotes an operation unit which is connected to the control device 110 and
It consists of a touch panel and operates the image input / output system.
To provide a user I / F. Figure 2 shows the leader section
FIG. 2 is a cross-sectional view illustrating a structure of a printer 200 and a printer unit 300.
You. The document feeding unit 250 of the reader unit 200
Are fed onto the platen glass 211 one by one in the order of the top,
After the original reading operation is completed, the platen glass 211
The original is discharged. Original is platen glass 21
1 is turned on, the lamp 212 is turned on, and
Scanning of the original by starting the movement of the scanning unit 213
I do. The reflected light from the original at this time is reflected by mirrors 214 and 2.
15, 216 and lens 217
(Hereinafter referred to as “CCD”) 218. this
Thus, the scanned original image is read by the CCD 218.
Be taken away. To image data output from the CCD 218
After the predetermined processing is performed, the data is transferred to the control device 110.
Is done. On the other hand, the laser driver 32 of the printer unit 300
Reference numeral 1 denotes a device for driving the laser emitting unit 322, and a control device.
Laser light corresponding to the image data output from the device 110
The laser emitting section 322 emits light. This laser light is exposed
The photosensitive drum 323 is irradiated with a laser beam
A latent image corresponding to the light is formed. Here, this photosensitive drum
A developer is applied to the portion of the latent image 323 by the developing device 324.
Is attached. Then, the timing synchronized with the start of laser beam irradiation
Imming, from either cassette 311 or 312
The recording paper is fed and transported to the transfer unit 325, where the photosensitive drum 3
The developer adhered to 23 is transferred to recording paper. Of developer
The loaded recording paper is conveyed to the fixing unit 326, and the fixing unit 326
Due to the heat and pressure of the developer, the developer is fixed on the recording paper. Fixing section
The recording paper that has passed through 326 is discharged by discharge rollers 327.
Output unit 330 bundles the discharged recording sheets.
To sort the recording paper,
Do iple. When double-sided recording is set
Transports the recording paper to the discharge roller 327 and then discharges it.
The rotation direction of the output roller 327 is reversed, and the flapper 328 is rotated.
To the re-feed conveyance path 329. And re-feed
The recording paper guided to the feed path 329 is rotated at the timing described above.
The paper is fed to the photographing unit 325. <Description of Control Device 110> Next, the image input / output system 1
Function of control device (controller unit) 110 at 00
Will be described. FIG. 3 shows a control device according to the present embodiment.
FIG. 2 is a block diagram showing a configuration of a device 110. Smell
Reference numeral 111 denotes a main controller, which is mainly a CPU 1
12, a bus controller 113, and various I / F controllers
And a roller circuit. CPU 112 and bus controller
The controller 113 controls the operation of the entire control device 110.
The CPU 112 reads from the ROM 114 to the ROM
Operate based on the program read via I / F115
Make. Also, the PDL received from the host computer
(Page description language) Interpret code data
The operation to expand to image data is also described in this program
And processed by software. Basco
The controller 113 controls data input / output from each I / F.
Arbitration and DMA data during bus contention.
Data transfer is controlled. Reference numeral 116 denotes a DRAM, and DR
AMI / F117 and main controller 111
Work that is connected and operates for the CPU 112 to operate.
Area or an area for storing image data.
Used. 121 is a network controller,
Connected to main controller 111 by I / F123
Connected to the external network via the 122 connector.
Continued. Generally, Ethernet
Is given. 124 is for connecting an expansion board
Expansion connector, connected to 125 general-purpose high-speed buses
You. The general-purpose high-speed bus 125 is generally a PCI bus.
Is raised. Reference numeral 126 denotes an I / O control unit, which is a leader
CPU and control commands of the printer unit 200 and the printer unit 300
Asynchronous Serial Communication Controller for Transmitting and Receiving Data
127 are equipped with two channels, and an I / O bus 128 is provided.
Connected to the external I / F circuits 140 and 145
You. Further, it is connected to a general-purpose high-speed bus 125. 13
Reference numeral 2 denotes a panel I / F, which is provided to the LCD controller 131.
Connected to display on the LCD screen on the operation unit 150
I / F and input of hard key and touch panel key
And a key input I / F 130. here
The operation unit 150 is attached on the liquid crystal display unit and the liquid crystal display unit.
Touch panel input device and multiple hard keys
And input by touch panel or hard key
The signal is sent to the CPU 11 via the panel I / F 132 described above.
2 and the liquid crystal display is sent from the panel I / F 132.
The received image data is displayed. The liquid crystal display has a book
Function display and image data in operation of the image forming apparatus
indicate. 133 is a real-time clock module
Yes, update / save the date and time managed in the device
Battery with 134 backup batteries.
Has been up. 161 is an E-IDE connector.
For connecting an external storage device (not shown).
You. In addition, a hard disk is connected through the connector 161.
And a CD-ROM drive to connect programs and image data.
Data can be written. 142 and 147
Connectors, a reader unit 200 and a printer, respectively.
Unit 300, and a synchronous serial I / F 14
3,148 and video I / F 144,149
It is. Reference numeral 140 denotes a scanner I / F, and a connector 142
Is connected to the reader unit 200 through the scanner bus 1
41 is connected to the main controller 111.
You. Then, the image received from the leader unit 200 is
Optimal binarization according to the content of processing in the subsequent process
And has the function of changing the magnification to main scanning and sub scanning.
Based on the video control signal sent from the reader unit 200
And outputs the generated control signal to the scanner bus 141.
It also has functions. It should be noted that the scanner bus 141 to the DRAM 1
16 is transferred by the bus controller 113.
Controlled. Reference numeral 145 denotes a printer I / F.
Connected to the printer unit 300 via the printer
Tabbus 146 connects to main controller 111
Have been. Then, from the main controller 111,
Printer that performs smoothing processing on the input image data
A printer unit 300
Control signal generated based on the video control signal sent from
It also has a function of outputting a signal to the printer bus 146. still,
Raster image data developed on DRAM 116
Is transferred to the printer 300 by the bus controller 11.
3, the printer bus 146, the video I /
DMA transfer to the printer unit 300 via F149.
It is. <Description of Main Controller 111> Next, the control device 1
10 will be described.
You. FIG. 4 illustrates a main controller 1 according to the present embodiment.
It is a block diagram which shows the structure of No.11. As shown
The processor core (CPUU) 401 is a 64-bit processor.
System bus via the processor bus (SCBus)
Bridge (SBB) 402 is connected. SBB402
Is a 4 × 4 64-bit crossbar switch,
SDR equipped with cache memory in addition to
Memory controller (MC) 4 for controlling AM and ROM
03 and a dedicated local bus (MCBus)
G bus which is a graphic bus
404, a B bus (BBus) 405 which is an IO bus,
Connected to a total of four buses. In addition, SBB
Reference numeral 402 designates a simultaneous operation between these four modules as much as possible.
It is designed to ensure parallel connection. Also,
Data compression / decompression unit (codec) 418, codec I / F
Connected through. G bus 404 is G bus arbi
(GBA) 406 is coordinated and controlled.
Scanner / printer connector to connect to
Connected to a controller (SPC) 408. In addition, B bus
405 is coordinated by B bus arbiter (BBA) 407
Power management unit in addition to SPC408
(PMU) 409, interrupt controller (IC)
410, Serial interface controller using UART
Troller (SIC) 411, USB controller (US
BC) 412, parallel input using IEEE1284
Interface controller (PIC) 413, Ethernet
LAN controller (LANC) 414 using L
CD panel, key, general-purpose input / output controller (MIS
C) 415, PCI bus interface (PCIC) 4
16 is also connected. Also, the MISC 415 has
An operation panel 417 including a display panel and a keyboard is connected.
Continued. Here, each unit of the main controller 111 is
The details will be described in more detail. <Interrupt controller 410> Interrupt controller
The controller 410 is connected to the B bus 405 and
Each function block inside the controller chip and outside the chip
These interrupts are integrated and the processor core 401
6-level external interrupt and non-mass porting
Redistribute to the Cable Interrupt (NMI). Each machine
The function block is a power management unit 409, a serial
Interface controller 411, USB controller
412, parallel interface controller 413,
Ethernet controller 414, general purpose input / output controller
415, PCI bus interface 416, scan
And a printer controller 408. <Memory controller 403> Memory controller 40
3 is a local bus dedicated to the memory controller M
C bus and a synchronous DRAM (SDRA
M), a flash ROM, and a ROM. <System bus bridge 402> The SBB 402
(I / O bus), G bus (graphic bus), SC
Between bus (processor local bus) and MC bus
Multi-channel that provides connection using a crossbar switch
This is a tunnel bidirectional bus bridge. Here,
Switches must establish at least two simultaneous connections.
And high-speed data transfer with high parallelism can be realized. Figure
5 is a block diagram showing the configuration of the system bus bridge 402.
FIG. As shown, the SBB 402 is a B bus 4
Bus interface 2009 for connecting
And a G bus interface for connecting to the G bus 404
To connect with the processor core 401 and the processor core 401.
CPU interface slave port 2002
Memory interface for connecting to the memory controller 403
Face master port 2001 and compression / decompression unit
CODEC bus interface for connecting to
2014, and an address bus.
Dress switch 2003, data connecting data bus
And a switch 2004. In addition, the processor core 401
Cache invalidation unit that invalidates the cache memory of
The device 2005 is provided. In addition, CODEC bus in
Interface 2014 communicates with the CODEC 418.
Function as a DMAC that performs data transfer. <PCI bus interface 416> PCI bus interface
The face 416 is a general-purpose
The B bus 405, which is an IO bus, and the IO bus outside the chip
A unit that interfaces between certain PCI buses.
You. <G bus arbiter 406, B bus arbiter 407>
404 arbitration is the central arbitration
Request method for each bus master.
Signal and grant signal. This arbiter is
Control method can be programmed. Where
All bus masters as a way to give priority to
Arbitration to give the bus right fairly with the same priority
Mode and priority of any one bus master
Priority arbitrage to raise the right and use the bus preferentially
Option mode can be specified. B bus arbi
407 is a bus using the B bus 405, which is an IO general-purpose bus.
Request is accepted, and after arbitration,
One master, and two or more masters
Access is prohibited. Arbitration
The formula has three levels of priority, and
Programmably assign multiple masters to iorit
Configuration. <Scanner / Printer Controller 408>
The printer controller 408 is controlled by the video I / F.
Connected to scanner and printer, internal bus G bus and B
A block that interfaces to the bus. Shown in FIG.
It is roughly divided into the following three blocks
You. Scanner controller 4302 The scanner controller 4302 includes a scanner and a video I
/ F, and controls its operation and data transfer.
U. G bus / B bus I / F unit (GBI) 4301
A is connected by IF bus, and data transfer and register
Read / write is performed. Printer controller 4303 The printer controller 4303 is a printer and a video I
/ F, and controls its operation and data transfer.
U. G bus / B bus I / F unit (GBI) 4301
B is connected by IF bus, and data transfer and register
Read / write is performed. -G bus / B bus I / F unit (GBI) 4301
A, BG bus / B bus I / F unit (GBI) 4301A,
B indicates the scanner controller 4302 and the printer controller.
For connecting the Troller 4303 to the G bus or B bus
Unit. Note that the scanner controller 4302 and
Printer controllers 4303 are connected independently.
It is connected to both the G bus and the B bus. G
Bus / B bus I / F units 4301A and B
And functions as a DMAC that performs data transfer.・ CP bus Scanner and printer image data and horizontal / vertical synchronization
This is a bus for directly connecting a synchronization signal to the bus. <Power management unit 409> Main controller 111
Is configured as a large-scale ASIC with a built-in CPU
ing. As a result, all internal logic operates simultaneously.
If this happens, a large amount of heat will be generated, and the chip itself will break down
There is a risk that it will. So, to prevent this, the main
The controller manages the power of each block, that is, the power manager.
Performs adjustments and monitors the power consumption of the entire chip
It is carried out. Power management is
Locks are performed individually. Information on the power consumption of each block
The information is used as the power management level as a power management unit.
Collected in knit (PMU) 409. In PMU 409
Sums the power consumption of each block, and the value
In order not to exceed the power consumption,
The power consumption of each block is monitored collectively. Next, the book
Image from scanner, which is the main part in the embodiment
Data input, image data compression processing, image data thinning processing
Control for parallel processing and display on the liquid crystal display.
Will be described. A file executed by the CPU 401 of the present apparatus
The firmware is run on a real-time multitasking OS.
And each sequence control program is independent.
Performed as a standing task. In addition, the actual
OS provided to synchronize rows and exchange information
Use a message communication mechanism to In this embodiment,
Controls the image data input sequence from the scanner.
Task (scanner control task) and CODEC
(C) to control the compression sequence of image data
ODEC control task), image data thinning and liquid crystal
Tasks for displaying on the display unit (image display tasks)
I will explain the control to process the columns, but the present invention is this
Control for parallel processing among other tasks.
It is also possible to apply. First, the scanner control task
Refer to the flowchart shown in FIG.
It will be described in the light of the above. First, in step S701, the scan
Image data of a size corresponding to the scanned original and resolution
(Raster data) The memory area for storing
Secure on top. Then, in step S702,
Coded the address and size of the saved image data area
To notify the control task and the display task, the OS
Call the message transmission service. This message is
Also serves as a processing start request to the task. Then, step
In step S703, the scanned and read data is transferred.
To the scanner controller 4302 to send
The DMAC 4301A is set, and the subsequent step S7
At 04, a scan start instruction is issued to the reader unit 200.
And activates the scanner 210. Then, step S
In 705, the task sleep function provided by the OS
To stop the task processing for 50 msec.
Then, in step S706, the DMAC 4301
A. Read the value of the transfer counter register of
In step S707, the value is sent to another task.
Notify by transmission. In addition, the above-mentioned pick-up for 50 msec
Group yields CPU resources for other task processing
What to do, if the time is too short and three
Meaning it's meaningless, and if it's too long,
Because it becomes slow, CPU processing speed and DMA
Should be determined according to the transfer speed of the data. next,
In step S708, data transfer for one page is performed.
It is determined whether or not the processing has been completed.
5 to S707 are repeated. Note that the data transfer is completed.
The termination is performed by DMA interrupt processing.
Then, when data transfer for one page is completed, step
Proceeding from S708 to step S709, the leader unit 20
0 and the scanner controller 4302
Then, the reading process of one page is completed. Next, COD
FIG. 8 is a flow chart showing the operation procedure of the EC control task.
This will be described with reference to a chart. First, in step S801
In this case, the CODEC control task usually executes a process start request message.
In the message waiting state, the scanner control task shown in FIG.
Request to start processing and the accompanying image data storage
When the address and size are received, the process proceeds to step S802,
Secure memory area for saving compressed data on DRAM 116
I do. Usually, the data size after compression is unknown,
Reserve the same area as the original image (raster) data
And the excess will be released later. Next, step S803
In, the predetermined setting in the register of CODEC418
(Source address, destination address, data
Size, number of main scanning pixels, number of sub-scanning pixels)
Similar settings are made for AC2014. Next, step S
At 804, after the scan starts, how much data
Codec 41 after transferring (prestored data amount)
8 is started. Here the DM from the scanner
A transfer speed is Vs (byte / sec), CODEC data
Processing speed is Vc (byte / sec), total data transfer amount
Is Dt (byte), and the amount of restored data is Dp (byte)
And is represented by the following equation. Dp> Dt (1−Vs / Vc) (when Vs> Vc,
Dp> 0) For example, when Vc is three times faster than Vs (Vs
/ Vc = 1/3) is Dp> 2 / 3 · Dt.
After the transfer of 2/3 of the total data transfer amount is completed, COD
The EC will be activated. Next, in step S805
The amount of transferred data from the scanner control task.
Call the OS service that receives the notification message,
The DEC control task enters a waiting state. Then the scanner
When a message is sent from the control task, the task is
To step S806, and the
The amount of transferred data in the message is
Compare. Here, the amount of data
If the data transfer has not been completed, go to step S705.
It returns and enters the message waiting state again. In addition, data transfer
If the transmission has been completed, the process proceeds to step S807, and
Activate C418. Next, in step S808
Waiting for processing end interrupt from CODEC 418
When a processing end interrupt is detected, step S80 is executed.
9 and read the compressed data from the CODEC 418 register.
Data size, release the extra memory area,
The page compression processing ends. Next, the operation of the display task
The procedure will be described with reference to the flowchart shown in FIG.
I will tell. First, in step S901, a display task
Is normally in a process start request message waiting state.
From the scanner control task shown in FIG.
When the image data storage address and size accompanying the
Proceeding to step S902, the operation panel 417 corresponding thereto
LCD display area and clear that area
You. Then, in step S903, the displayed data is displayed.
The counter for counting data is set to "0". Next,
In step S904, transfer from the scanner control task
OS service that receives the notification message of the amount of used data
The calling and displaying tasks are in a waiting state. Then,
When a message is sent from the scanner control task, the display
The disk enters the execution state again, and proceeds to step S905.
Displayed amount of transferred data in the received message
Compares with the counter and thins out the difference data.
Work. Then, in step S906, thinning is performed.
Operation panel 41 via the panel I / F 132
7 and display it in step S907.
Update the data counter. Next, in step S908,
To determine whether the transfer for one page has been completed.
If not, the process returns to step S904, and the message is sent again.
It will be in the waiting state. Then, if the transfer is completed,
Proceeding to step S909, the amount secured by the scanner control task
Frees image data memory area and displays one page
To end. As described above, according to the present embodiment,
For example, in parallel with image data input from the scanner,
Data compression, thinning and display
When the page memory area is occupied as well as the processing speed is improved
The time can be shortened. In this embodiment,
Means that the amount of image data transferred from the scanner
Uses a method of detecting while polling at intervals
However, to improve the efficiency of CPU processing and the response speed
Are detected by hardware interrupt processing.
Is more preferable. For that purpose, DMAC430
When the transfer of a fixed amount of data from 1A is completed,
A mechanism to generate an interrupt to notify the end of transmission is implemented
It is good if it is. In that case, the scanner control task
Wait for interrupt from DMAC instead of loop processing
By executing, the operation can be realized. Ma
In this embodiment, the image data input system from the scanner is used.
Task to control the sequence (scanner control task)
Control CODEC to control image data compression sequence
Task to control (CODEC control task) and image data
Task for thinning out and displaying on the LCD (image table
Task) and the control to process in parallel
However, the present invention is not limited to this.
It is also possible to apply control that processes in parallel between disks.
Noh. The present invention is applicable to a plurality of devices (for example, a host
Computers, interface devices, readers, printers, etc.
Etc.), one device
(E.g., copying machines, facsimile machines, etc.)
Etc.). Also, the object of the present invention has been described above.
The program code of software that implements the functions of the embodiment
Supply the storage medium storing the code to the system or device
And the computer of the system or device (CPU
Or MPU) stored in a storage medium.
Can also be achieved by reading and executing
Needless to say. In this case, the program read from the storage medium
The program code itself implements the functions of the above-described embodiment.
The storage medium that stores the program code.
The body will constitute the invention. Program code
As a storage medium to supply, for example, floppy disk
Disk, hard disk, optical disk, magneto-optical disk
Disk, CD-ROM, CD-R, magnetic tape, non-volatile
A memory card, ROM, or the like can be used. Ma
Also, the computer executes the readout program code.
By doing so, the functions of the above-described embodiment are realized.
In addition, based on the instructions in the program code,
OS running on the computer (operating system
Perform some or all of the actual processing,
In some cases, the functions of the above-described embodiments are realized by
Needless to say, it is included. In addition, reading from storage media
The generated program code is inserted into the computer.
Function expansion boards and functions connected to the computer
After being written to the memory of the unit, the program
Function expansion board or function expansion
CPU of the extension unit is a part of the actual processing or
Performs all the functions of the above-described embodiment according to the processing.
It is needless to say that the case in which is realized is also included.

【発明の効果】以上説明したように、本発明によれば、
複数種類の処理におけるメモリへの同時アクセスを可能
に制御することで、データ処理のスループットとメモリ
の利用効率を向上させることが可能となる。
As described above, according to the present invention,
By controlling simultaneous access to the memory in a plurality of types of processing, it is possible to improve data processing throughput and memory use efficiency.

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

【図1】本実施形態における画像入出力システム100
の全体構成を示す図である。
FIG. 1 is an image input / output system 100 according to an embodiment.
FIG. 2 is a diagram showing an overall configuration of the embodiment.

【図2】リーダー部200及びプリンタ部300の構造
を示す断面図である。
FIG. 2 is a cross-sectional view illustrating the structure of a reader unit 200 and a printer unit 300.

【図3】本実施形態における制御装置110の構成を示
すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a control device 110 according to the present embodiment.

【図4】本実施形態におけるメインコントローラ111
の構成を示すブロック図である。
FIG. 4 is a main controller 111 according to the embodiment.
FIG. 3 is a block diagram showing the configuration of FIG.

【図5】システムバスブリッジ402の構成を示すブロ
ック図である。
FIG. 5 is a block diagram showing a configuration of a system bus bridge 402.

【図6】スキャナ・プリンタコントローラ408の構成
を示すブロック図である。
FIG. 6 is a block diagram illustrating a configuration of a scanner / printer controller 408.

【図7】スキャナ制御タスクの動作手順を示すフローチ
ャートである。
FIG. 7 is a flowchart illustrating an operation procedure of a scanner control task.

【図8】CODEC制御タスクの動作手順を示すフロー
チャートである。
FIG. 8 is a flowchart illustrating an operation procedure of a CODEC control task.

【図9】表示タスクの動作手順を示すフローチャートで
ある。
FIG. 9 is a flowchart illustrating an operation procedure of a display task.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 画像を読み込み、画像データに変換する
画像入力手段と、 画像データを記憶する記憶手段へ前記画像入力手段によ
り入力された所定量の画像データを転送する第1の転送
手段と、 画像データを処理する第1の処理手段へ前記記憶手段に
記憶された画像データを転送する第2の転送手段と、 画像データを処理する第2の処理手段へ前記記憶手段に
記憶された画像データを転送する第3の転送手段と、 前記第1の転送手段によるデータ転送速度と、前記第1
の処理手段による処理速度とに基づき、前記第2の転送
手段による画像データの転送量を算出する転送量算出手
段と、 前記転送量算出手段により算出された転送量の画像デー
タが第2の転送手段により転送されると画像データの処
理を開始するように前記第1の処理手段を制御し、前記
第1の転送手段による所定量の画像データが前記第3の
転送手段により転送されると画像データの処理を開始す
るように前記第2の処理手段を制御する制御手段とを有
することを特徴とする画像処理装置。
An image input unit that reads an image and converts the image data into image data; a first transfer unit that transfers a predetermined amount of image data input by the image input unit to a storage unit that stores the image data; Second transfer means for transferring the image data stored in the storage means to first processing means for processing the image data; and image data stored in the storage means for the second processing means for processing the image data. A third transfer unit for transferring data, a data transfer speed of the first transfer unit,
Transfer amount calculating means for calculating the transfer amount of image data by the second transfer means based on the processing speed of the processing means, and image data of the transfer amount calculated by the transfer amount calculating means is transferred to the second transfer unit. Means for controlling the first processing means so as to start processing the image data when the image data is transferred by the means, and when a predetermined amount of image data by the first transfer means is transferred by the third transfer means, Control means for controlling the second processing means so as to start data processing.
【請求項2】 前記第1の転送手段により転送される所
定量の画像データは、所定時間間隔で、前記画像入力手
段により入力された画像データであることを特徴とする
請求項1に記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein the predetermined amount of image data transferred by the first transfer unit is image data input by the image input unit at predetermined time intervals. Image processing device.
【請求項3】 前記制御手段は、前記第1の転送手段、
前記第2の転送手段、前記第3の転送手段による前記記
憶手段への同時アクセスを調停する調停手段を有するこ
とを特徴とする請求項1に記載の画像処理装置。
3. The method according to claim 1, wherein the control unit is configured to:
2. The image processing apparatus according to claim 1, further comprising an arbitration unit that arbitrates simultaneous access to the storage unit by the second transfer unit and the third transfer unit.
【請求項4】 前記第1の処理手段は、画像データを圧
縮する圧縮処理手段であり、前記第2の処理手段は、画
像データの解像度を変換する解像度変換手段を含み、前
記変換された画像データを表示する表示処理手段である
ことを特徴とする請求項1に記載の画像処理装置。
4. The image processing apparatus according to claim 1, wherein the first processing means is compression processing means for compressing image data, and the second processing means includes resolution conversion means for converting the resolution of the image data. The image processing apparatus according to claim 1, wherein the image processing apparatus is a display processing unit that displays data.
【請求項5】 画像を読み込み、画像データに変換する
画像入力手段により入力された所定量の画像データを記
憶手段へ転送する第1の転送工程と、 画像データを処理する第1の処理手段へ前記記憶手段に
記憶された画像データを転送する第2の転送工程と、 画像データを処理する第2の処理手段へ前記記憶手段に
記憶された画像データを転送する第3の転送工程と、 前記第1の転送工程によるデータ転送速度と、前記第1
の処理手段による処理速度とに基づき、前記第2の転送
工程による画像データの転送量を算出する転送量算出工
程と、 前記転送量算出工程により算出された転送量の画像デー
タが第2の転送工程により転送されると画像データの処
理を開始するように前記第1の処理手段を制御し、前記
第1の転送工程による所定量の画像データが前記第3の
転送工程により転送されると画像データの処理を開始す
るように前記第2の処理手段を制御する制御工程とを有
することを特徴とする画像処理装置の制御方法。
5. A first transfer step for transferring a predetermined amount of image data input by an image input means for reading an image and converting the image data into image data, and a first processing means for processing the image data. A second transfer step of transferring the image data stored in the storage means, a third transfer step of transferring the image data stored in the storage means to a second processing means for processing the image data, A data transfer rate in the first transfer step;
A transfer amount calculating step of calculating a transfer amount of the image data in the second transfer step based on the processing speed of the processing means, and a transfer of the image data of the transfer amount calculated in the transfer amount calculating step is performed. Controlling the first processing means so as to start processing of the image data when the image data is transferred by the step, and when a predetermined amount of image data from the first transfer step is transferred by the third transfer step, A control step of controlling the second processing means so as to start data processing.
【請求項6】 前記第1の転送工程により転送される所
定量の画像データは、所定時間間隔で、前記画像入力手
段により入力された画像データであることを特徴とする
請求項5に記載の画像処理装置の制御方法。
6. The image processing apparatus according to claim 5, wherein the predetermined amount of image data transferred in the first transfer step is image data input by the image input unit at predetermined time intervals. A method for controlling an image processing apparatus.
【請求項7】 前記制御工程は、前記第1の転送工程、
前記第2の転送工程、前記第3の転送工程による前記記
憶手段への同時アクセスを調停する調停工程を有するこ
とを特徴とする請求項5に記載の画像処理装置の制御方
法。
7. The method according to claim 7, wherein the control step includes the first transfer step,
6. The control method according to claim 5, further comprising an arbitration step of arbitrating simultaneous access to the storage unit in the second transfer step and the third transfer step.
【請求項8】 前記第1の処理手段は、画像データを圧
縮する圧縮処理手段であり、前記第2の処理手段は、画
像データの解像度を変換する解像度変換手段を含み、前
記変換された画像データを表示する表示処理手段である
ことを特徴とする請求項5に記載の画像処理装置の制御
方法。
8. The first processing means is compression processing means for compressing image data, and the second processing means includes resolution conversion means for converting the resolution of the image data, 6. The control method for an image processing apparatus according to claim 5, wherein the display processing means displays data.
【請求項9】 画像処理装置における制御方法のプログ
ラムコードが記憶されたコンピュータ読み取り可能な記
憶媒体であって、 画像を読み込み、画像データに変換する画像入力手段に
より入力された所定量の画像データを記憶手段へ転送す
る第1の転送工程のコードと、 画像データを処理する第1の処理手段へ前記記憶手段に
記憶された画像データを転送する第2の転送工程のコー
ドと、 画像データを処理する第2の処理手段へ前記記憶手段に
記憶された画像データを転送する第3の転送工程のコー
ドと、 前記第1の転送工程によるデータ転送速度と、前記第1
の処理手段による処理速度とに基づき、前記第2の転送
工程による画像データの転送量を算出する転送量算出工
程のコードと、 前記転送量算出工程により算出された転送量の画像デー
タが第2の転送工程により転送されると画像データの処
理を開始するように前記第1の処理手段を制御し、前記
第1の転送工程による所定量の画像データが前記第3の
転送工程により転送されると画像データの処理を開始す
るように前記第2の処理手段を制御する制御工程のコー
ドとを有することを特徴とする記憶媒体。
9. A computer-readable storage medium storing a program code of a control method in an image processing apparatus, wherein a predetermined amount of image data input by image input means for reading an image and converting the image data into image data is stored. A code for a first transfer step for transferring the image data to the storage means, a code for a second transfer step for transferring the image data stored in the storage means to the first processing means for processing the image data, A code of a third transfer step for transferring the image data stored in the storage means to the second processing means, a data transfer rate of the first transfer step,
A code of a transfer amount calculation step for calculating a transfer amount of image data in the second transfer step based on the processing speed of the processing means of the second transfer step; Controlling the first processing means so as to start processing the image data when the image data is transferred in the third transfer step, and a predetermined amount of image data in the first transfer step is transferred in the third transfer step And a code for a control step for controlling the second processing means so as to start processing the image data.
JP2000052323A 2000-02-28 2000-02-28 Image processor and its control method Withdrawn JP2001245121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000052323A JP2001245121A (en) 2000-02-28 2000-02-28 Image processor and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000052323A JP2001245121A (en) 2000-02-28 2000-02-28 Image processor and its control method

Publications (1)

Publication Number Publication Date
JP2001245121A true JP2001245121A (en) 2001-09-07

Family

ID=18573859

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000052323A Withdrawn JP2001245121A (en) 2000-02-28 2000-02-28 Image processor and its control method

Country Status (1)

Country Link
JP (1) JP2001245121A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007299116A (en) * 2006-04-28 2007-11-15 Fuji Xerox Co Ltd Image processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007299116A (en) * 2006-04-28 2007-11-15 Fuji Xerox Co Ltd Image processor
JP4687553B2 (en) * 2006-04-28 2011-05-25 富士ゼロックス株式会社 Image processing device

Similar Documents

Publication Publication Date Title
US6539198B2 (en) Image forming apparatus, control method of the image forming apparatus and storage medium
CN104486523B (en) The data processing equipment and its control method of power supply can be controlled
JP2006201932A (en) Computer starting device, computer starting method, and computer starting program
JP4054503B2 (en) Image processing device
JP2001186328A (en) Picture processor, its control method and picture processing system
JP4143381B2 (en) Image processing apparatus, restart method, program, and storage medium
JP2001245121A (en) Image processor and its control method
US20030137701A1 (en) Image processing apparatus, control method of image processing apparatus, control method, memory medium and programs
JP2008004012A (en) Computer device with method of automatically stopping device
JP2010004271A (en) Image processing device
JP2001341363A (en) Blank page printing method for printer controller
JP2002366362A (en) Electronic equipment and its control method
JP2008023780A (en) Image processing apparatus and its controlling method
JP4510231B2 (en) Image processing apparatus, image processing apparatus control method, and storage medium
JP2001211276A (en) Image processor and its control method
US7898683B2 (en) Image processing apparatus, control method for the same, and computer-readable medium storing a computer program for preventing downloading of resources data when a print job exists
JP3315291B2 (en) Image forming network device
JP2007226463A (en) Information processor and information processing method
JP2006229570A (en) Image display device
JP2004058499A (en) Control method for image formation device
JP2002010011A (en) Image processing system, method, and storage medium
JP2002297391A (en) Method and device for starting computer and control program
JP4454874B2 (en) Printing apparatus and printing apparatus control method
JP2001285600A (en) Image-processing unit and control method for the image- processing unit
JP2001345971A (en) Device and method for image processing and storage medium

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