JP3093359B2 - Line buffering processing circuit - Google Patents

Line buffering processing circuit

Info

Publication number
JP3093359B2
JP3093359B2 JP03251883A JP25188391A JP3093359B2 JP 3093359 B2 JP3093359 B2 JP 3093359B2 JP 03251883 A JP03251883 A JP 03251883A JP 25188391 A JP25188391 A JP 25188391A JP 3093359 B2 JP3093359 B2 JP 3093359B2
Authority
JP
Japan
Prior art keywords
line
counter
image data
memory
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP03251883A
Other languages
Japanese (ja)
Other versions
JPH0591306A (en
Inventor
政美 加藤
康訓 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP03251883A priority Critical patent/JP3093359B2/en
Publication of JPH0591306A publication Critical patent/JPH0591306A/en
Application granted granted Critical
Publication of JP3093359B2 publication Critical patent/JP3093359B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置等に用いら
れるラインバッファリング処理回路に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line buffering circuit used in an image processing apparatus or the like.

【0002】[0002]

【従来の技術】ラスタスキヤンされたシリアル画像デー
タ列に対して例えば図2に示す平滑化フイルタ処理をリ
アルタイムで行う場合、参照する画像データを取り出す
為に図3に示す様に1ライン遅延回路(31a,31
b)、即ちラインバッファリング処理回路を構成上必要
とする。図3中、32a〜fは1画素遅延素子、33は
図2に示すフイルタ係数に従う加重平均演算を行う演算
回路である。従来、1ライン分の画像データを蓄積し遅
延させるラインバッファリング処理回路は図4に示す様
な構成で実現される。図4に於て、41はメモリに対す
るアドレス信号を発生するカウンタ、42は画像データ
列を1ライン分蓄積する事が可能な容量を有するRAM
(ランダム・アクセス・メモリ)、43はライトサイク
ル時に入力データをコントロールするスリーステート・
バッファ、44はリードサイクル時にSRAM42から
出力されたリードデータをストローブするフリツプ・フ
ロツプである。図5はここで取り扱う画像信号のタイミ
ング例を示す図である。画像クロツクに同期して、1画
素のデータが、ライン同期信号に同期して1ライン分の
画像データが、ページ同期信号に同期して1ページ分の
画像データが入力されるものとする。従って図4に示す
回路は図6に示すタイミングでラインバッファリング処
理が行われる。ここでは説明のために1ラインに7個の
画像データがある場合についてのタイミングチヤートを
示す。入力データは画像クロツク(CLK)及びライン
同期信号(LSYN)に同期して1ラインずつ入力され
る。カウンタはCLKに同期してライン同期信号をカウ
ント動作イネーブル信号として動作する。入力データは
ライト信号WRによりデータバス上に出力され、同時に
カウンタ出力をアドレスとしてメモリに書き込まれる。
2. Description of the Related Art For example, when a smoothing filter process shown in FIG. 2 is performed on a raster-scanned serial image data sequence in real time, a one-line delay circuit (see FIG. 31a, 31
b) That is, a line buffering processing circuit is required in the configuration. In FIG. 3, reference numerals 32a to 32f denote one-pixel delay elements, and reference numeral 33 denotes an arithmetic circuit for performing a weighted average operation according to the filter coefficient shown in FIG. Conventionally, a line buffering processing circuit for accumulating and delaying one line of image data is realized with a configuration as shown in FIG. In FIG. 4, reference numeral 41 denotes a counter for generating an address signal for a memory, and reference numeral 42 denotes a RAM having a capacity capable of storing one line of an image data sequence.
(Random access memory) 43 is a three-state memory for controlling input data during a write cycle.
A buffer 44 is a flip-flop that strobes read data output from the SRAM 42 during a read cycle. FIG. 5 is a diagram showing an example of the timing of the image signal handled here. It is assumed that data of one pixel is input in synchronization with the image clock, image data of one line is input in synchronization with the line synchronization signal, and image data of one page is input in synchronization with the page synchronization signal. Accordingly, the circuit shown in FIG. 4 performs the line buffering process at the timing shown in FIG. Here, for the sake of explanation, a timing chart in a case where there are seven image data in one line is shown. Input data is input line by line in synchronization with the image clock (CLK) and the line synchronization signal (LSYN). The counter operates in synchronization with the CLK using the line synchronization signal as a count operation enable signal. The input data is output on the data bus by the write signal WR, and is simultaneously written into the memory using the counter output as an address.

【0003】メモリに書き込まれたデータは、次ライン
処理時にRD信号により読み出されフリツプフロツプに
ストローブされる。以上の処理を各ラインに対し順次行
う事で出力データには1ライン分遅延した入力データを
得る事ができる。
The data written in the memory is read out by the RD signal at the time of the next line processing, and is strobed to a flip-flop. By sequentially performing the above processing for each line, input data delayed by one line can be obtained as output data.

【0004】[0004]

【発明が解決しようとしている課題】ところが、処理の
内容によっては1ラインよりn画素少ない遅延処理の必
要が生じる場合がある。例えば図14に示す誤差拡散法
による2値化処理回路では図15に示すマトリクス(注
目画素に対する周辺4画素に対する誤差e1〜e4の拡
散)に従う誤差分配処理を行う場合1ラインより3画素
少ない遅延処理が必要である。ここで図14において1
41a〜eはそれぞれ入力画像データを1画素分遅延さ
せる1画素遅延素子、142a〜dは2値化で生じた量
子化誤差を近傍画素に加算するための加算器、143は
1ラインより3画素少ない遅延処理を行うラインバッフ
ァ、144は周辺画素の2値化誤差を含む注目画素の多
値データを2値化する2値化回路、145は注目画素を
2値化した際に生じる量子化誤差を演算する誤差演算回
路、146は前記量子化誤差を周辺画素に分配する値を
演算する誤差分配回路である。
However, depending on the contents of the processing, it may be necessary to perform a delay processing with n pixels less than one line. For example, in the binarization processing circuit based on the error diffusion method shown in FIG. 14, when performing the error distribution processing according to the matrix shown in FIG. is necessary. Here, in FIG.
Reference numerals 41a to 41e denote one-pixel delay elements for delaying input image data by one pixel, reference numerals 142a to 142d denote adders for adding a quantization error generated by binarization to neighboring pixels, and reference numeral 143 denotes three pixels from one line. A line buffer 144 for performing a small delay process is a binarization circuit 144 for binarizing multi-valued data of a target pixel including a binarization error of a peripheral pixel, and 145 is a quantization error generated when the target pixel is binarized. Is an error distribution circuit that computes a value that distributes the quantization error to peripheral pixels.

【0005】この様な回路を実現するラインバッファの
構成を図7に示す。図7に示す様に1クロツク内でリー
ドアドレス信号にnを加算したものをリードアドレス信
号とすることで1ラインよりn画素少ない遅延処理を行
う方法が考えられる。図7に於て、71はメモリに対す
るアドレス信号を発生するカウンタ、72はカウンタ出
力にnを加算する加算器、73はセレクタでありリード
サイクル時には加算結果を選択し、ライトサイクル時に
はカウンタ71の出力結果を選択する。74は画像デー
タ列を1ライン分蓄積する事が可能な容量を有するRA
M(ランダム・アクセス・メモリ)、75はライトサイ
クル時に入力データをコントロールするスリーステート
・バッファ、76はリードサイクル時にSRAMから出
力されたリードデータをストローブするフリツプ・フロ
ツプである。図8にn=2とした場合のタイミングチヤ
ートを示す。入力データは画像クロツク(CLK)及び
ライン同期信号(LSYN)に同期して1ラインずつ入
力される。カウンタはCLKに同期してライン同期信号
をカウント動作イネーブル信号として動作する。入力デ
ータはライト信号WRによりデータバス上に出力され、
同時にメモリに書き込まれる。カウンタ出力は選択信号
R/Wによりリードサイクル時には加算器72からの加
算出力が選択され、ライトサイクル時にはカウンタ71
からの出力が選択される。メモリに書き込まれたデータ
は、次ライン処理時に加算器出力をアドレスとしてRD
信号により読み出されフリツプフロツプにストローブさ
れる。以上の処理を各ラインに対し順次行う事で出力デ
ータには1ラインより2画素分遅延した入力信号を得る
事ができる。
FIG. 7 shows a configuration of a line buffer for realizing such a circuit. As shown in FIG. 7, a method of performing a delay process with n pixels less than one line by using the read address signal obtained by adding n to the read address signal in one clock is considered. In FIG. 7, 71 is a counter for generating an address signal for the memory, 72 is an adder for adding n to the counter output, 73 is a selector, which selects the addition result during a read cycle, and outputs the output of the counter 71 during a write cycle. Select a result. Reference numeral 74 denotes an RA having a capacity capable of storing one line of an image data sequence.
M (random access memory), 75 is a three-state buffer for controlling input data in a write cycle, and 76 is a flip-flop for strobeing read data output from the SRAM in a read cycle. FIG. 8 shows a timing chart when n = 2. Input data is input line by line in synchronization with the image clock (CLK) and the line synchronization signal (LSYN). The counter operates in synchronization with the CLK using the line synchronization signal as a count operation enable signal. Input data is output on a data bus by a write signal WR,
Simultaneously written to memory. As the counter output, the addition output from the adder 72 is selected in the read cycle by the selection signal R / W, and the counter 71 is selected in the write cycle.
Output from is selected. The data written in the memory is stored in the RD using the adder output as an address during the next line processing.
The signal is read out and strobed into a flip-flop. By sequentially performing the above processing on each line, an input signal delayed by two pixels from one line can be obtained as output data.

【0006】ところがこの方法ではアドレス出力がセレ
クタにより遅延を生じ、更に1クロツク内にアドレス信
号の加算処理をおこなわねばならずデータビツト数(例
えばA3サイズで400DPIの画像を処理する場合ア
ドレス幅は13bit必要)の多いラインバッファ処理
においては加算器の処理に時間がかかりアドレスの出力
が遅延し動作速度の低下を来す問題がある。
However, in this method, the address output is delayed by the selector, and furthermore, the addition processing of the address signal must be performed within one clock. For example, when processing an image of A3 size and 400 DPI, the address width is 13 bits. In the line buffer processing with many (necessary) operations, there is a problem that the processing of the adder takes time, the output of the address is delayed, and the operation speed is reduced.

【0007】第2の方法として図9に示すようにカウン
タ出力をフリツプフロツプによりnクロツク分だけ遅延
させた結果とカウンタ出力をそれぞれライトアドレス、
リードアドレスとして選択する方法が考えられる。図9
に於て、91はメモリに対するアドレス信号を発生する
カウンタ、92はカウンタ出力をnクロツク遅延させる
n個のフリツプフロツプ、93はセレクタでありリード
サイクル時には加算結果を選択し、ライトサイクル時に
はカウンタ出力結果を選択する。94は画像データ列を
1ライン分蓄積する事が可能な容量を有するRAM(ラ
ンダム・アクセス・メモリ)、95はライトサイクル時
に入力データをコントロールするスリーステート・バッ
ファ、96はリードサイクル時にSRAMから出力され
たリードデータをストローブするフリツプ・フロツプで
ある。図10にn=2とした場合のタイミングチヤート
を示す。入力データは画像クロツク(CLK)及びライ
ン同期信号(LSYN)に同期して1ラインずつ入力さ
れる。カウンタはCLKに同期してライン同期信号をカ
ウント動作イネーブル信号として動作する。入力データ
はライト信号WRによりデータバス上に出力され、同時
にメモリに書き込まれる。カウンタ出力は選択信号R/
Wによりライトサイクル時にはnクロツク遅延された結
果が選択され、リードサイクル時にはカウンタ出力が選
択される。メモリに書き込まれたデータは、次ライン処
理時にRD信号により読み出されフリツプフロツプにス
トローブされる。以上の処理を各ラインに対し順次行う
事で出力データには1ラインより2画素分遅延した入力
信号を得る事ができる。
As a second method, as shown in FIG. 9, the result of delaying the counter output by n clocks by flip-flop and the counter output are respectively written in the write address,
A method of selecting a read address can be considered. FIG.
In the figure, 91 is a counter for generating an address signal for the memory, 92 is n flip-flops for delaying the counter output by n clocks, 93 is a selector, which selects the addition result in a read cycle, and outputs the counter output result in a write cycle. select. Reference numeral 94 denotes a RAM (random access memory) having a capacity capable of storing one line of an image data string, 95 a three-state buffer for controlling input data in a write cycle, and 96 an output from the SRAM in a read cycle. This is a flip-flop that strobes the read data obtained. FIG. 10 shows a timing chart when n = 2. Input data is input line by line in synchronization with the image clock (CLK) and the line synchronization signal (LSYN). The counter operates in synchronization with the CLK using the line synchronization signal as a count operation enable signal. The input data is output on the data bus by the write signal WR and is simultaneously written to the memory. The counter output is the selection signal R /
W selects a result delayed by n clocks in a write cycle and a counter output in a read cycle. The data written in the memory is read out by the RD signal at the time of the next line processing and is strobed to the flip-flop. By sequentially performing the above processing on each line, an input signal delayed by two pixels from one line can be obtained as output data.

【0008】ところがこの場合もアドレス出力がセレク
タにより遅延され動作速度の低下を来し、更にnが大き
くなるに従ってアドレスを遅延させるためのレジスタ数
が増え回路規模が増大する問題がある。
However, also in this case, there is a problem that the address output is delayed by the selector and the operating speed is reduced, and the number of registers for delaying the address increases as n increases, and the circuit scale increases.

【0009】本発明は上記問題点に鑑みてなされたもの
であり動作速度の低下がなく、更に、回路規模の増大を
押えて、1ラインよりn画素少ないデータの遅延処理を
行うラインバッファリング処理回路を提供する事を目的
としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and has no reduction in operation speed, and furthermore, suppresses an increase in circuit scale and performs a line buffering process for delaying data of n pixels less than one line. It is intended to provide a circuit.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
本発明のラインバッファリング処理回路は、ラスタスキ
ャンされたシリアル画像データ列を1ラインよりn画素
少なく遅延させるラインバッファリング処理回路であっ
て、 入力画像データを一時保持し、メモリへのライト
信号に応じてデータバス上に画像データを出力するバッ
ファと、アドレス信号を出力する初期値設定可能なカウ
ンタと、 前記カウンタからの出力値に前記値nを加算
する加算器と、 前記加算器からの加算結果をライン同
期信号によりストローブする第1のレジスタと、 前記
カウンタからのアドレス信号によって前記バッファから
データバス上に出力された画像データの書き込み及び
き込まれている画像データの読み出しが制御されるラン
ダム・アクセス・メモリと、前記ランダム・アクセス・
メモリの出力データをストローブする第2のレジスタを
有し、前記カウンタは前記第1のレジスタにストローブ
されたレジスタ値が前記ライン同期信号毎にカウンタ初
期値として設定され、更に前記カウンタは画像データの
入力クロックに同期して動作し、前記ランダム・アクセ
ス・メモリへの画像データの書き込み及び前記ランダム
・アクセス・メモリからの画像データの読み出しアドレ
スを制御し、更に前記カウンタは、前記ランダム・アク
セス・メモリへ1ラインの画像データの書き込みのため
のアドレス信号を出力した後、前記ランダム・アクセス
・メモリに書き込まれた1ラインの画像データを読み出
すために、前記書き込みのためのアドレス信号よりもア
ドレス値がn大きいアドレス信号を出力することを特徴
としている。
In order to achieve the above object, a line buffering processing circuit according to the present invention is a line buffering processing circuit for delaying a raster-scanned serial image data sequence by n pixels less than one line. , Holds input image data temporarily and writes to memory
A buffer that outputs image data on a data bus in accordance with a signal, a counter that can set an initial value that outputs an address signal, and an adder that adds the value n to an output value from the counter. A first register that strobes the addition result from the adder with a line synchronization signal, and an address signal from the counter from the buffer.
Writing and writing of the image data output onto the data bus
A random access memory for controlling reading of the written image data;
A second register that strobes the output data of the memory; the counter has a register value strobed in the first register set as a counter initial value for each line synchronization signal; It operates in synchronization with an input clock to control writing of image data to the random access memory and reading addresses of image data from the random access memory, and the counter further controls the random access memory.
For writing one line of image data to access memory
After outputting the address signal of the random access
・ Read out one line of image data written in the memory
For this reason, the write address signal is more
It is characterized in that an address signal having a dress value larger by n is output .

【0011】[0011]

【実施例】以下、添付図面を参照して本発明にかかる好
適な1実施例を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment according to the present invention will be described below with reference to the accompanying drawings.

【0012】図1は本発明によるラインバッファリング
処理回路の1実施例を示す図である。このラインバッフ
ァリング処理回路は図14のラインバッファ143に適
用されるものである。11は加算器でありカウンタ出力
にnを加算する。12はフリツプフロツプであり加算結
果をライン同期信号の立ち下がりでストローブする。1
3はカウンタであり、前記ストローブ結果を初期値とし
て画像クロツクに同期して動作する。14は画像データ
列を1ライン分蓄積する事が可能な容量を有するRAM
(ランダム・アクセス・メモリ)、15はライトサイク
ル時に入力データをコントロールするスリーステート・
バッファ、16はリードサイクル時にSRAMから出力
されたリードデータをストローブするフリツプ・フロツ
プである。
FIG. 1 is a diagram showing one embodiment of a line buffering processing circuit according to the present invention. This line buffering processing circuit is applied to the line buffer 143 of FIG. An adder 11 adds n to the counter output. A flip-flop 12 strobes the addition result at the falling edge of the line synchronization signal. 1
Reference numeral 3 denotes a counter which operates in synchronization with the image clock using the strobe result as an initial value. Reference numeral 14 denotes a RAM having a capacity capable of storing one line of an image data sequence.
(Random access memory), 15 is a three-state memory for controlling input data during a write cycle.
A buffer 16 is a flip-flop that strobes read data output from the SRAM during a read cycle.

【0013】次に図11に従って本実施例の動作を説明
する。画像データは前述したように、画像同期信号(C
LK)、及びライン同期信号(LSYN)に同期してシ
リアルに入力するものとする。ここでも説明の為に1ラ
インの画素数が7の場合について説明する。カウンタ1
3はLSYNをカウントイネーブル信号及び初期値ロー
ド信号として与えることでLSYNが無効な区間に於て
はフリツプフロツプ12の出力を初期値して設定し、有
効な区間に於ては設定された値を初期値としてカウント
アツプする。n=2とし1ライン目のフリツプフロツプ
出力を0とすると当該ラインの間加算器は2を出力す
る。フリツプフロツプ12はLSYNの立ち下がりで加
算器出力をストローブし、カウンタは初期値=2に設定
される。2ライン目処理時にカウンタは初期値2として
カウントアツプし3ライン目では同様に初期値4として
動作する。以下カウンタは2をライン単位に蓄積した値
を初期値として動作する。入力データはライト信号WR
によりデータバス上に出力され、同時にカウンタ出力を
アドレスとしてメモリに書き込まれる。メモリに書き込
まれたデータは、次ライン処理時にRD信号により読み
出されフリツプフロツプ16にストローブされる。次ラ
イン処理時のアドレスは2クロツク分進んでいる事にな
るため前ラインでライトされたデータが2画素早く読み
だされる、即ち1ラインより2画素少ない遅延処理が行
われる。
Next, the operation of this embodiment will be described with reference to FIG. The image data is, as described above, an image synchronization signal (C
LK) and a line synchronization signal (LSYN). Here, a case where the number of pixels in one line is 7 will be described for the sake of explanation. Counter 1
Numeral 3 designates LSYN as a count enable signal and an initial value load signal, thereby setting the output of the flip-flop 12 to an initial value in a period where LSYN is invalid, and initializing the set value in a valid period. Count up as a value. If n = 2 and the flip-flop output of the first line is 0, the adder outputs 2 during the line. The flip-flop 12 strobes the adder output at the falling edge of LSYN, and the counter is set to an initial value = 2. At the time of processing the second line, the counter counts up as an initial value of 2 and operates similarly with an initial value of 4 on the third line. Hereinafter, the counter operates with a value obtained by accumulating 2 in line units as an initial value. The input data is the write signal WR
, And at the same time, is written into the memory using the counter output as an address. The data written in the memory is read out by the RD signal at the time of the next line processing and is strobed to the flip-flop 16. Since the address at the time of the next line processing is advanced by two clocks, the data written in the previous line is read out two pixels earlier, that is, a delay processing that is two pixels less than one line is performed.

【0014】本発明による実施例によれば、カウンタ出
力がセレクタを通す事なく直接メモリに接続される事か
ら、図4に示す1ライン遅延ラインバッファリング回路
と等しい動作速度でメモリのアクセスを行う事が可能で
ある。又、nが大きい値である場合にも、加算値を変更
するだけで回路規模の増大は無い。
According to the embodiment of the present invention, since the counter output is directly connected to the memory without passing through the selector, the memory is accessed at the same operation speed as the one-line delay line buffering circuit shown in FIG. Things are possible. Even when n is a large value, the circuit scale does not increase only by changing the added value.

【0015】[他の実施例]前述した実施例ではメモリ
を1個使用し、時分割によりリード動作及びライト動作
を実行する場合について説明した。本発明はこれに限る
わけではなく、高速動作を目的としてメモリを2個使用
しリード動作及びライト動作を同時に実行するいわゆる
ダブルバッファ構成にも実施できる。図12にダブルバ
ッファ構成の実施例を示す。図12に於て121は加算
器でありカウンタ出力にnを加算する。122はフリツ
プフロツプであり加算結果をライン同期信号の立ち下が
りでストローブする。123はカウンタであり、前記ス
トローブ結果を初期値として画像クロツクに同期して動
作する。124、125は画像データ列を1ライン分蓄
積する事が可能な容量を有するRAM(ランダム・アク
セス・メモリ)、126、127はラントサイクル時に
入力データをコントロールするスリーステート・バッフ
ァ、128はリードデータをメモリ1、メモリ2の出力
から選択するセレクタ、129は選択されたリードデー
タをストローブするフリツプ・フロツプである。
[Other Embodiments] In the above-described embodiment, the case where one memory is used and the read operation and the write operation are executed by time division has been described. The present invention is not limited to this, and can be implemented in a so-called double-buffer configuration in which two memories are used and a read operation and a write operation are performed simultaneously for the purpose of high-speed operation. FIG. 12 shows an embodiment of the double buffer configuration. In FIG. 12, reference numeral 121 denotes an adder which adds n to the counter output. A flip-flop 122 strobes the addition result at the falling edge of the line synchronization signal. A counter 123 operates in synchronization with the image clock using the strobe result as an initial value. Reference numerals 124 and 125 denote RAMs (random access memories) each having a capacity capable of storing one line of image data strings, 126 and 127 three-state buffers for controlling input data during a run cycle, and 128 read data. Is selected from the outputs of the memory 1 and the memory 2, and 129 is a flip-flop that strobes the selected read data.

【0016】次に図13に従って本実施例の動作を説明
する。画像データは前述したように、画像同期信号(C
LK)、及びライン同期信号(LSYN)に同期してシ
リアルに入力するものとする。ここでも説明の為に1ラ
インの画素数が7の場合について説明する。カウンタ1
21はLSYNをカウントイネーブル信号及び初期値ロ
ード信号として与えることでLSYNが有効な間フリツ
プフロツプ122の出力を初期値としてカウントアツプ
する。n=2とし1ライン目のフリツプフロツプ出力を
0とすると当該ラインの間加算器は2を出力する。フリ
ツプフロツプ122はLSYNの立ち下がりで加算器出
力をストローブし、カウンタ123は2ライン目の処理
を初期値2としてカウントアツプする。以上説明したよ
うに、カウンタはnをライン単位に累積和した値を初期
値として動作する。入力データは1ライン目処理時はW
R1信号によりメモリ1への書き込がなされる。2ライ
ン目処理時はOE1によりメモリ1からライトされたデ
ータの読み出しが行われる。セレクタ128はリード状
態のメモリ出力を選択する。即ちOE1がアクテイブの
場合メモリ1の出力を選択する。2ライン目処理時のア
ドレスは前記アドレス初期値の処理により2クロツク分
進んでいる事になるため1ライン目でライトされたデー
タが2画素早く読みだされる、即ち1ラインより2画素
少ない遅延処理が行われる。又、2ライン目の入力デー
タはWR2信号によりメモリ2に、メモリ1からの読み
出しと同時に、書き込まれる。以上の処理によりダブル
バッファ構成の処理に於ても同様な構成で1ラインより
n画素少ない遅延処理が実現できる。
Next, the operation of this embodiment will be described with reference to FIG. The image data is, as described above, an image synchronization signal (C
LK) and a line synchronization signal (LSYN). Here, a case where the number of pixels in one line is 7 will be described for the sake of explanation. Counter 1
Numeral 21 gives LSYN as a count enable signal and an initial value load signal, and counts up the output of the flip-flop 122 as an initial value while LSYN is valid. If n = 2 and the flip-flop output of the first line is 0, the adder outputs 2 during the line. The flip-flop 122 strobes the output of the adder at the falling edge of LSYN, and the counter 123 counts up the processing of the second line as an initial value of 2. As described above, the counter operates with the value obtained by accumulating n in units of lines as the initial value. Input data is W when processing the first line
Writing to the memory 1 is performed by the R1 signal. During the second line processing, the data written from the memory 1 is read by the OE1. The selector 128 selects the memory output in the read state. That is, when OE1 is active, the output of the memory 1 is selected. Since the address at the time of processing the second line is advanced by two clocks by the processing of the address initial value, the data written in the first line is read two pixels earlier, that is, a delay of two pixels less than the first line. Processing is performed. The input data of the second line is written into the memory 2 by the WR2 signal simultaneously with the reading from the memory 1. With the above processing, the delay processing with n pixels less than one line can be realized with the same configuration in the processing of the double buffer configuration.

【0017】前記実施例と同様に本実施例でもカウンタ
出力がセレクタを通す事なく直接メモリに接続される事
から、従来の1ライン遅延ラインバッファと等しい動作
速度でメモリのアクセスを行う事が可能である。
As in the previous embodiment, in this embodiment, since the counter output is directly connected to the memory without passing through the selector, the memory can be accessed at the same operation speed as the conventional one-line delay line buffer. It is.

【0018】以上説明した様に、高速動作を目的として
構成されるダブルバッファ回路に本発明を実施した場合
その効果がより有効になる。
As described above, when the present invention is applied to a double buffer circuit configured for high-speed operation, the effect becomes more effective.

【0019】又、図1、図12に示したラインバッファ
リング処理回路を図14に示した誤差拡散法の回路に用
いることで、文字及び中間調画像いずれの画像に対して
も、高品位な画像を高速で得ることが可能となる。
Also, by using the line buffering processing circuit shown in FIGS. 1 and 12 in the circuit of the error diffusion method shown in FIG. 14, high-quality images can be obtained for both character and halftone images. Images can be obtained at high speed.

【0020】[0020]

【発明の効果】以上説明した様に、本発明によれば動作
速度の低下がなく、更に、回路規模の増大を押えて、1
ラインよりn画素少ないデータを遅延処理するラインバ
ッファリング処理回路を実現する事が可能になる。
As described above, according to the present invention, the operation speed is not reduced, and further, the circuit scale is increased, and
It becomes possible to realize a line buffering processing circuit that delays data of n pixels less than the line.

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

【図1】本発明の第1の実施例であるラインバッファリ
ング処理回路の構成を示したブロツク図。
FIG. 1 is a block diagram showing a configuration of a line buffering processing circuit according to a first embodiment of the present invention.

【図2】平滑化フイルタのマトリクス例を示す図。FIG. 2 is a diagram showing an example of a matrix of a smoothing filter.

【図3】平滑化フイルタの構成を示す図。FIG. 3 is a diagram showing a configuration of a smoothing filter.

【図4】1ライン遅延処理を行うラインバッファリング
処理回路の例を示す図。
FIG. 4 is a diagram illustrating an example of a line buffering processing circuit that performs one-line delay processing.

【図5】画像信号のタイミングを示す図。FIG. 5 is a diagram showing the timing of an image signal.

【図6】1ライン遅延処理を行うラインバッファリング
処理回路のタイミングチヤートを示す図。
FIG. 6 is a diagram showing a timing chart of a line buffering processing circuit that performs one-line delay processing.

【図7】従来の1ラインよりn画素少ないラインバッフ
ァリング処理回路の第1の例を示す図。
FIG. 7 is a diagram showing a first example of a conventional line buffering processing circuit having n pixels less than one line.

【図8】従来の1ラインよりn画素少ない第1のライン
バッファリング処理回路のタイミングチヤートを示す
図。
FIG. 8 is a diagram showing a timing chart of a first line buffering processing circuit having n pixels less than one conventional line.

【図9】従来の1ラインよりn画素少ないラインバッフ
ァリング処理回路の第2の例を示す図。
FIG. 9 is a diagram showing a second example of a conventional line buffering processing circuit having n pixels less than one line.

【図10】従来の1ラインよりn画素少ない第2のライ
ンバッファリング処理回路のタイミングチヤートを示す
図。
FIG. 10 is a diagram showing a timing chart of a second line buffering processing circuit having n pixels less than one conventional line.

【図11】本実施例による1ラインよりn画素少ない第
1のラインバッファリング処理回路のタイミングチヤー
トを示す図。
FIG. 11 is a diagram showing a timing chart of a first line buffering processing circuit having n pixels less than one line according to the embodiment.

【図12】本実施例による1ラインよりn画素少ないラ
インバッファリング処理回路の第2の実施例を示す図。
FIG. 12 is a diagram showing a second embodiment of the line buffering processing circuit according to the present embodiment, which has n pixels less than one line.

【図13】本実施例による1ラインよりn画素少ない第
2のラインバッファリング処理回路のタイミングチヤー
トを示す図。
FIG. 13 is a diagram showing a timing chart of a second line buffering processing circuit having n pixels less than one line according to the embodiment.

【図14】1ラインよりn画素少ない遅延処理を必要と
する誤差拡散法による2値化処理回路の構成例を示す
図。
FIG. 14 is a diagram showing a configuration example of a binarization processing circuit using an error diffusion method that requires a delay process that is n pixels less than one line.

【図15】誤差拡散法の拡散マトリクスの1例を示す
図。
FIG. 15 is a diagram showing an example of a diffusion matrix of the error diffusion method.

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

11 加算器 12 フリツプフロツプ 13 カウンタ 14 メモリ 15 スリーステートバッファ 16 フリツプフロツプ Reference Signs List 11 adder 12 flip-flop 13 counter 14 memory 15 three-state buffer 16 flip-flop

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 G06F 12/02 550 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/40-1/409 H04N 1/46 H04N 1/60 G06F 12/02 550

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ラスタスキャンされたシリアル画像デー
タ列を1ラインよりn画素少なく遅延させるラインバッ
ファリング処理回路であって、 入力画像データを一時保持し、メモリへのライト信号に
応じてデータバス上に画像データを出力するバッファ
と、 アドレス信号を出力する初期値設定可能なカウンタと、 前記カウンタからの出力値に前記値nを加算する加算器
と、 前記加算器からの加算結果をライン同期信号によりスト
ローブする第1のレジスタと、 前記カウンタからのアドレス信号によって前記バッファ
からデータバス上に出力された画像データの書き込み及
書き込まれている画像データの読み出しが制御される
ランダム・アクセス・メモリと、 前記ランダム・アクセス・メモリの出力データをストロ
ーブする第2のレジスタを有し、 前記カウンタは前記第1のレジスタにストローブされた
レジスタ値が前記ライン同期信号毎にカウンタ初期値と
して設定され、更に前記カウンタは画像データの入力ク
ロックに同期して動作し、前記ランダム・アクセス・メ
モリへの画像データの書き込み及び前記ランダム・アク
セス・メモリからの画像データの読み出しアドレスを制
し、更に前記カウンタは、前記ランダム・アクセス・
メモリへ1ラインの画像データの書き込みのためのアド
レス信号を出力した後、前記ランダム・アクセス・メモ
リに書き込まれた1ラインの画像データを読み出すため
に、前記書き込みのためのアドレス信号よりもアドレス
値がn大きいアドレス信号を出力することを特徴とする
ラインバッファリング処理回路。
1. A line buffering processing circuit for delaying a raster-scanned serial image data string by n pixels less than one line, temporarily holding input image data and applying a write signal to a memory
A buffer for outputting image data to a data bus in response to the signal; a counter capable of setting an initial value for outputting an address signal; an adder for adding the value n to an output value from the counter; and an addition from the adder A first register for strobed the result by a line synchronization signal; and an buffer for storing an address signal from the counter.
And a random access memory for controlling writing and reading of written image data output to the data bus from the memory, and a second register for strobed the output data of the random access memory. In the counter, a register value strobed in the first register is set as a counter initial value for each line synchronization signal, and the counter operates in synchronization with an input clock of image data, and the random access and writing of the image data to the memory and the controls the reading address of the image data from the random access memory, further wherein the counter, the random access
Address for writing one line of image data to memory
After outputting the address signal, the random access
To read one line of image data written in
The address is more than the address signal for writing.
A line buffering processing circuit for outputting an address signal having a value larger by n .
JP03251883A 1991-09-30 1991-09-30 Line buffering processing circuit Expired - Fee Related JP3093359B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03251883A JP3093359B2 (en) 1991-09-30 1991-09-30 Line buffering processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03251883A JP3093359B2 (en) 1991-09-30 1991-09-30 Line buffering processing circuit

Publications (2)

Publication Number Publication Date
JPH0591306A JPH0591306A (en) 1993-04-09
JP3093359B2 true JP3093359B2 (en) 2000-10-03

Family

ID=17229364

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03251883A Expired - Fee Related JP3093359B2 (en) 1991-09-30 1991-09-30 Line buffering processing circuit

Country Status (1)

Country Link
JP (1) JP3093359B2 (en)

Also Published As

Publication number Publication date
JPH0591306A (en) 1993-04-09

Similar Documents

Publication Publication Date Title
GB2149157A (en) High-speed frame buffer refresh apparatus and method
US5426733A (en) Image rotation apparatus capable of rotating image data of different numbers of pixel bits
US5675826A (en) Image data storage
US6633975B1 (en) Data processing system having plurality of processors and executing series of processings in prescribed order
JP3093359B2 (en) Line buffering processing circuit
US6006314A (en) Image processing system, storage device therefor and accessing method thereof
JPH09282136A (en) Write and read method for data
US5715200A (en) Memory devices
JPH07107706B2 (en) Line buffer with variable number of delay stages
JPS6055389A (en) Character/graphic display
KR950009076B1 (en) Dual port memory and control method
JP3097843B2 (en) Display control circuit
JP2824708B2 (en) Graphic drawing device
JP2842071B2 (en) Resolution conversion method
JP2523687Y2 (en) Image data processing device
JP2806043B2 (en) Pipeline image processing circuit
JPH0520450A (en) Picture processor
JP3247441B2 (en) Image processing device
JPH0527151B2 (en)
JP2519821B2 (en) Image processing device
JPH08305819A (en) Two-dimensional orthogonal transformation arithmetic unit
JP2823043B2 (en) Image display control device
JPS59149391A (en) Fast frame buffer writing system
KR100243177B1 (en) Apparatus and method for graphic data processing
JP2624155B2 (en) Display memory write data control circuit

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000711

LAPS Cancellation because of no payment of annual fees