JPH10108028A - Digital signal encoding / decoding circuit - Google Patents
Digital signal encoding / decoding circuitInfo
- Publication number
- JPH10108028A JPH10108028A JP25863696A JP25863696A JPH10108028A JP H10108028 A JPH10108028 A JP H10108028A JP 25863696 A JP25863696 A JP 25863696A JP 25863696 A JP25863696 A JP 25863696A JP H10108028 A JPH10108028 A JP H10108028A
- Authority
- JP
- Japan
- Prior art keywords
- data
- circuit
- encoding
- line
- digital 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.)
- Granted
Links
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
(57)【要約】
【課題】 二値画像データの圧縮で採用されているMR
符号化において、白画素が連続する際にコード化する方
式では、黒画素が連続する場合にも元データをアクセス
するために、メモリアクセスの回数を低減する効果が少
ない。
【解決手段】 所定長のデータと隣接データとを第1隣
接ビット保持回路26Aとビット演算回路27で演算
し、全てが白画素または黒画素の場合に第1圧縮コー
ド、同一でない場合に第2圧縮コードとし、ラインバッ
ファ制御回路21でラインバッファ22に記憶する。第
1圧縮コードの場合には白画素発生器28、黒画素発生
器29、第2隣接ビット保持回路26Bにより白または
黒のデータを生成する。白画素、黒画素のいずれも連続
するときにメモリアクセスが不要となり、アクセスの回
数が低減できる。
(57) [Summary] [Problem] MR employed in compression of binary image data
In encoding, in a method of encoding when white pixels continue, the original data is accessed even when black pixels continue, so that the effect of reducing the number of memory accesses is small. SOLUTION: Data having a predetermined length and adjacent data are operated by a first adjacent bit holding circuit 26A and a bit operation circuit 27, and a first compression code is used when all are white pixels or black pixels, and a second compression code is used when all are not the same. The compressed code is stored in the line buffer 22 by the line buffer control circuit 21. In the case of the first compression code, white or black data is generated by the white pixel generator 28, the black pixel generator 29, and the second adjacent bit holding circuit 26B. When both the white pixels and the black pixels are continuous, the memory access becomes unnecessary, and the number of accesses can be reduced.
Description
【0001】[0001]
【発明の属する技術分野】本発明はデジタル信号の符号
化/復号化を制御する回路に関し、特に符号化復号化の
前処理回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a circuit for controlling the encoding / decoding of a digital signal, and more particularly to a pre-processing circuit for encoding / decoding.
【0002】[0002]
【従来の技術】ファクシミリで使用する2値画像の符号
化/復号化アルコリズムの国際標準としてMH(モディ
ファイド・ハフマン)方式とMR(モディファイド・リ
ード)方式から知られている。MH方式は水平方向1ラ
イン単位の符号化方式である。一方、MR方式は垂直方
向の符号化であり、ある1ライン(符号化ラインとい
う)を符号化する時、そのラインの1つ前のライン(参
照ラインという)を参照しなければならない。このた
め、1ラインの符号化を行うために2ラインのメモリ読
みだしを行うことになり、メモリアクセス回数がMH方
式に比べて2倍必要となる。しかしながら、精度及び解
像度がMH方式に比べて、良好であることから、現在M
R方式が主流となっている。2. Description of the Related Art As international standards for encoding / decoding algorithms for binary images used in facsimile, known are an MH (Modified Huffman) system and an MR (Modified Read) system. The MH method is an encoding method in units of one line in the horizontal direction. On the other hand, the MR method is a coding in the vertical direction. When a certain line (called a coding line) is coded, a line immediately before the line (called a reference line) must be referred to. For this reason, two lines of memory are read in order to encode one line, and the number of memory accesses is twice as large as that in the MH system. However, since the accuracy and resolution are better than the MH method,
The R method has become mainstream.
【0003】MR方式の符号化/復号化回路を実現する
には、前述したように前後2ラインの情報が必要である
ため、メモリアクセス回数が多いという問題がある。こ
れを解決するために、符号化ラインとしてメモリから読
みだした1ライン分の情報を次のラインの符号化のため
の参照ラインとして1ライン分の容量をもつバッファに
一時格納する、いわゆるラインバッファ制御方式が提案
されている。しかしながら、高解像度、高精度の符号化
/復号化を行うためには、1ライン分の情報量が多くな
り、大容量のラインバッファが必要となる。たとえば1
mmを16本の走査線でスキャンする場合、A4版の画
像では3456ビットの容量が必要となる。実際にはラ
インバッファへの格納と符号化は並行に行われるので、
ラインバッファは2個必要となる。かかる大容量のライ
ンバッファを符号化/復号化回路と同一の半導体チップ
上に集積化することは非常に困難である。In order to realize an MR encoding / decoding circuit, two lines of information before and after are required as described above, so that there is a problem that the number of memory accesses is large. In order to solve this, a so-called line buffer in which information for one line read from a memory as a coding line is temporarily stored in a buffer having a capacity of one line as a reference line for coding the next line. Control schemes have been proposed. However, in order to perform high-resolution and high-precision encoding / decoding, the amount of information for one line increases, and a large-capacity line buffer is required. For example, 1
When scanning mm with 16 scanning lines, an A4 size image requires a capacity of 3456 bits. Actually, storing in the line buffer and encoding are performed in parallel, so
Two line buffers are required. It is very difficult to integrate such a large-capacity line buffer on the same semiconductor chip as the encoding / decoding circuit.
【0004】このような課題に対して圧縮ラインバッフ
ァを利用することにより、少ないラインバッファでメモ
リアクセス回数を減らす方式が特開昭62−23016
4号公報で提案されている。本提案によると、画像メモ
リ上のビットデータを一定間隔で分割し、その分割した
特定ビット長がすべて同一色である場合には特定のコー
ドを割り当て、異なる色が含まれる場合にはそれと異な
るコードを割り当て、この割り当てられたコードのみを
ラインバッファに格納することにより、少ないラインバ
ッファメモリで、メモリアクセスの少ない符号化/復号
化回路を提案するものであった。この技術について説明
する。図8はこの技術、ないし本発明が適用されるファ
クシミリあるいはイメージワークステーションのシステ
ム構成図である。To cope with such a problem, a method of reducing the number of memory accesses with a small number of line buffers by using a compression line buffer is disclosed in Japanese Patent Laid-Open No. Sho.
No. 4 publication. According to this proposal, bit data on an image memory is divided at regular intervals, a specific code is assigned if the divided specific bit lengths are all the same color, and a different code is used if a different color is included. And by storing only the allocated code in the line buffer, an encoding / decoding circuit with less line buffer memory and less memory access has been proposed. This technique will be described. FIG. 8 is a system configuration diagram of a facsimile or image workstation to which this technology or the present invention is applied.
【0005】スキャナー6によって走査されたデジタル
信号に変換されたイメージ情報はホストプロセッサ1の
制御によりシステムバス9を介して主メモリ5内のイメ
ージメモリエリア10に記憶される。記憶されたイメー
ジ情報を電話回線等の通信手段を用いてそのまま伝送す
る際、伝送量を圧縮するために圧縮/伸長回路を含む符
号化/復号化制御回路2が用いられる。この制御回路2
は主メモリ5のイメージメモリエリアから1ライン毎に
イメージ情報を読みだしてMR方式で符号化し、符号化
した情報を通信コントローラ7へ転送する。一方、通信
コントローラ7を介して入力された符号化された情報は
ホストプロセッサ1の制御によって一旦主メモリ5に記
憶される。主メモリ5に記憶された情報は符号化/復号
化制御回路2によって1ラインずつ読み出され元のイメ
ージ情報へ復号化され、主メモリ5のイメージメモリエ
リア10に格納される。ホストプロセッサ1は、復号化
されイメージメモリエリア10に書き込まれたイメージ
情報を主メモリ5から読みだしてイメージプリンタ3へ
印字もしくはCRT4へ表示したり、磁気ディスク8に
保存することができる。The image information converted into a digital signal scanned by the scanner 6 is stored in an image memory area 10 in the main memory 5 via a system bus 9 under the control of the host processor 1. When the stored image information is transmitted as it is using a communication means such as a telephone line, an encoding / decoding control circuit 2 including a compression / decompression circuit is used to compress the transmission amount. This control circuit 2
Reads out image information line by line from the image memory area of the main memory 5 and encodes it by the MR method, and transfers the encoded information to the communication controller 7. On the other hand, the encoded information input via the communication controller 7 is temporarily stored in the main memory 5 under the control of the host processor 1. The information stored in the main memory 5 is read out line by line by the encoding / decoding control circuit 2, decoded into original image information, and stored in the image memory area 10 of the main memory 5. The host processor 1 can read out the image information that has been decoded and written in the image memory area 10 from the main memory 5 and print it on the image printer 3 or display it on the CRT 4 or save it on the magnetic disk 8.
【0006】図9は前記公報で提案されている符号化/
復号化回路2の内部ブロック図を示す。なお、図には符
号化に必要な回路が示されている。この符号化/復号化
制御回路2は、前記したように符号化すべき情報を主メ
モリ5からライン単位で読みだして符号化し、符号化し
た情報を通信コントローラ7へ転送しなければならな
い。このうち、主メモリ5からの情報の読みだしをホス
トプロセッサ1が実行すると、ホストプロセッサ1の処
理能力が低下するため、ホストプロセッサ1に代わって
主メモリ5をアクセスするDMAC(ダイレクトメモリ
アクセスコントローラ)900が用いられている。DM
AC900はシステムバス9に接続され、主メモリ5の
イメージメモリエリア10から1ラインずつ情報を読み
出す。読み出された1ラインの情報は符号化のために符
号化ラインFIFO回路901に入力されるとともに、
黒画素検出器904に入力され、全て白か否かを判定さ
れ、16ビット単位のデータが1ビットのコード情報と
され、そのコード情報のみが、ラインバッファ制御回路
905を介してラインバッファ906に一時的に蓄えら
れる。FIG. 9 shows an encoding / coding scheme proposed in the above publication.
3 shows an internal block diagram of the decoding circuit 2. FIG. The figure shows the circuits required for encoding. The encoding / decoding control circuit 2 has to read out the information to be encoded from the main memory 5 line by line as described above and encode it, and transfer the encoded information to the communication controller 7. When the host processor 1 reads out information from the main memory 5, the processing capability of the host processor 1 is reduced. Therefore, a DMAC (direct memory access controller) that accesses the main memory 5 instead of the host processor 1. 900 are used. DM
AC 900 is connected to system bus 9 and reads information line by line from image memory area 10 of main memory 5. The read one line of information is input to an encoding line FIFO circuit 901 for encoding, and
The data is input to the black pixel detector 904, and it is determined whether or not all are white. The data in 16-bit units is converted into 1-bit code information. Stored temporarily.
【0007】そして、ラインバッファ制御回路905は
符号化ラインFIFO回路901に入力された1ライン
の情報をMR符号化回路903にて圧縮するために、前
ラインの情報を参照すべく、該当するデータをラインバ
ッファ906から読みだし、このときに前記コード情報
に基づき全て白であれば白画素発生器907を用いてデ
ータを再生し、これを符号化参照ラインFIFO回路9
02に入力する。全て白でなければDMAC900を用
いてシステムバス9を介して主メモリ5より読み出す。
したがって、この方法では、白画素が多い画像データで
は、コード情報に基づいて白画素発生器907で再生さ
れるデータを用いることができるため、その際のメモリ
アクセスが不要となり、メモリアクセスの回数が減少さ
せることが可能となる。The line buffer control circuit 905 compresses the information of one line input to the encoding line FIFO circuit 901 by the MR encoding circuit 903 so that the corresponding data can be referred to by referring to the information of the previous line. Is read out from the line buffer 906, and at this time, if all white based on the code information, the data is reproduced using the white pixel generator 907, and the data is reproduced by the encoding reference line FIFO circuit 9
Enter 02. If not all white, the data is read from the main memory 5 via the system bus 9 using the DMAC 900.
Therefore, in this method, for image data having many white pixels, data reproduced by the white pixel generator 907 based on the code information can be used, so that memory access at that time becomes unnecessary, and the number of times of memory access is reduced. It is possible to reduce it.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、上記提
案によると、特定ビット長のデータが全て例えば白画素
であればメモリアクセスは行われないため効率よく圧縮
が進行するが、特定ビット長内に1点でも黒画素が存在
すれば通常と同様のメモリアクセスを行う必要があるた
め、一般的に白画素が多い画像に対しては効率良く圧縮
が進行するが、黒画素が多い画像に対しては通常と同じ
だけのメモリアクセス回数が必要となるため効果が少な
いという問題が存在する。However, according to the above proposal, if all the data of a specific bit length is, for example, a white pixel, memory access is not performed, so that the compression proceeds efficiently. If there are black pixels at the point, it is necessary to perform the same memory access as usual, so compression generally proceeds efficiently for images with many white pixels, but for images with many black pixels. There is a problem that the effect is small because the same number of memory accesses as usual is required.
【0009】本発明の目的はこのような黒画素が多いよ
うな画像に対しても、上述した提案と同様な効果が得ら
れる圧縮ラインバッファ方式の符号化/復号化回路を提
供することである。An object of the present invention is to provide a compression line buffer type encoding / decoding circuit which can obtain the same effect as the above-mentioned proposal even for an image having many black pixels. .
【0010】[0010]
【課題を解決するための手段】本発明は、ラインバッフ
ァに書き込まれるべきデジタル信号の所定ビット長内の
各データを、その所定ビットに隣接する特定データと一
定の演算を施すことにより、各データが全て同一の場合
の第1の圧縮コードと、同一でない場合の第2の圧縮コ
ードのいずれかを作成する第1の回路と、前記第1の回
路によって作成された圧縮コードを前記ラインバッファ
に書き込み、読出す制御を行う第2の回路と、第2の回
路によって読出された圧縮コードが前記第1の圧縮コー
ドであれば対応する所定ビット長と隣接する特定データ
との特定の演算を施すことにより白画素または黒画素の
データを作成して前記符号化/復号化回路に供給し、前
記第2の圧縮コードであれば当該第2の圧縮コードに対
応する元となるデータを当該元となるデータが格納され
ているメモリから読みだして前記符号化/復号化回路に
供給する第3の回路とを有することを特徴とする。According to the present invention, each data within a predetermined bit length of a digital signal to be written into a line buffer is subjected to a certain operation with specific data adjacent to the predetermined bit, thereby obtaining each data. And a first circuit for generating one of a first compressed code in the case where all are the same, a second compressed code in the case where they are not the same, and a compressed code generated by the first circuit in the line buffer. A second circuit for controlling writing and reading, and, if the compressed code read by the second circuit is the first compressed code, perform a specific operation on a corresponding predetermined bit length and adjacent specific data. Thereby, data of a white pixel or a black pixel is created and supplied to the encoding / decoding circuit, and if the data is the second compressed code, the data corresponding to the second compressed code is generated. The motor and having a third circuit supplying read from the memory where the data to be the source is stored in the coding / decoding circuit.
【0011】ここで、第1の回路は、隣接データの1ビ
ットデータと所定データのビットデータとを比較し、所
定データが全て同一画素であることを検出したときに第
1の圧縮コードを出力するように構成される。あるい
は、隣接データと所定データの対応するビットデータの
XOR演算を施すように構成される。また、第3の回路
は、白画素を生成する手段と、黒画素を生成する手段
と、第1の圧縮コードと所定データとをそれぞれ入力
し、これらの入力を演算して得られた信号に基づいて前
記白画素生成手段と黒画素生成手段のいずれかを選択す
る手段とを備える構成とされる。さらに、第3の回路
は、第2の圧縮コードが入力されたときに、元となるデ
ータが格納されているメモリに対する読み出し信号を出
力する手段を備える。The first circuit compares 1-bit data of adjacent data with bit data of predetermined data, and outputs a first compression code when detecting that all the predetermined data are the same pixel. It is configured to Alternatively, it is configured to perform an XOR operation on bit data corresponding to adjacent data and predetermined data. Further, the third circuit inputs a means for generating a white pixel, a means for generating a black pixel, a first compressed code and predetermined data, and outputs a signal obtained by calculating these inputs. Means for selecting one of the white pixel generation means and the black pixel generation means based on the white pixel generation means. Further, the third circuit includes means for outputting a read signal to a memory in which original data is stored when the second compression code is input.
【0012】[0012]
【発明の実施の形態】次に、本発明の実施形態を図面を
参照して説明する。図1は本発明の一実施形態例による
圧縮/伸長制御回路を含む符号化/復号化回路のブロッ
ク図である。図8に示したようなシステム構成のシステ
ムバス9に接続されたDMAC(ダイレクト・メモリ・
アクセス・コントローラ)20には、参照ラインFIF
O回路23と、符号化ラインFIFO回路24と、ビッ
ト演算回路27、白画素発生器28と、黒画素発生器2
9とが接続されている。そして、前記ビット演算回路2
7には第1隣接ビット保持回路26Aと、ラインバッフ
ァ制御回路21が接続され、このラインバッファ制御回
路21にはラインバッファ22が接続されている。ま
た、前記白画素発生器28と黒画素発生器29には第2
隣接ビット保持回路26Bが接続され、この第2隣接ビ
ット保持回路26Bは前記参照ラインFIFO回路23
とラインバッファ制御回路21にそれぞれ接続される。
さらに、前記各FIFO回路23,24にはMR符号化
回路25が接続されている。すなわち、この回路におい
ては、第1隣接ビット保持回路26A、ビット演算回路
27、黒画素発生器29、白画素発生器28、第2隣接
ビット保持回路26Bを設けたことを特徴としている。Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an encoding / decoding circuit including a compression / decompression control circuit according to an embodiment of the present invention. DMAC (direct memory device) connected to the system bus 9 having the system configuration shown in FIG.
The access controller 20 has a reference line FIF
O circuit 23, coding line FIFO circuit 24, bit operation circuit 27, white pixel generator 28, black pixel generator 2
9 are connected. And the bit operation circuit 2
7, a first adjacent bit holding circuit 26A and a line buffer control circuit 21 are connected, and a line buffer 22 is connected to the line buffer control circuit 21. The white pixel generator 28 and the black pixel generator 29 have a second
The second adjacent bit holding circuit 26B is connected to the reference line FIFO circuit 23.
And the line buffer control circuit 21.
Further, an MR encoding circuit 25 is connected to each of the FIFO circuits 23 and 24. That is, this circuit is characterized in that a first adjacent bit holding circuit 26A, a bit operation circuit 27, a black pixel generator 29, a white pixel generator 28, and a second adjacent bit holding circuit 26B are provided.
【0013】次に動作を説明する。情報圧縮時、DMA
C20はシステムバス9を用いて図8に示した主メモリ
5内のイメージメモリエリア10から2値画像情報を1
6画素単位で読みだし、ビット演算回路27と符号化ラ
インFIFO回路24に同時に送る。ビット演算回路2
7は、図2に示される回路で構成されており、DMAC
20から送られた16ビット単位のデータ(D0〜D1
5)をNORゲート30とANDゲート32に受け、そ
れぞれの出力はマルチプレクサ33に入力される。マル
チプレクサ33の制御信号は第1隣接ビット保持回路2
6Aから与えられ、“1”であればANDゲート32の
出力が選択され、“0”であればNORゲート30の出
力が選択される。マルチプレクサ33の出力はフリップ
フロップ31に印加される。今、白情報が“0”、黒情
報が“1”とすると、ORゲート30に入力された16
画素のデータが全て白で、隣接ビット保持回路Aからの
信号が0ならばORゲートの出力は“1”なり、フリッ
プフロップ31には“1”がセットされる。一方、16
画素のうちいずれかの画素に1ビットでも黒があり、第
1隣接ビット保持回路26Aからの信号が“0”であれ
ば、NORゲート30の出力は“0”となりフリップフ
ロップ31は“0”にセットされる。Next, the operation will be described. When compressing information, DMA
C20 transfers binary image information from the image memory area 10 in the main memory 5 shown in FIG.
The data is read out in units of six pixels and sent to the bit operation circuit 27 and the encoding line FIFO circuit 24 at the same time. Bit operation circuit 2
7 is composed of the circuit shown in FIG.
20 data (D0 to D1) sent from
5) is received by the NOR gate 30 and the AND gate 32, and the respective outputs are input to the multiplexer 33. The control signal of the multiplexer 33 is the first adjacent bit holding circuit 2
6A, if "1", the output of the AND gate 32 is selected, and if "0", the output of the NOR gate 30 is selected. The output of the multiplexer 33 is applied to the flip-flop 31. Assuming that the white information is “0” and the black information is “1”, the 16
If the pixel data is all white and the signal from the adjacent bit holding circuit A is 0, the output of the OR gate becomes "1" and the flip-flop 31 is set to "1". On the other hand, 16
If any of the pixels has at least one bit of black and the signal from the first adjacent bit holding circuit 26A is "0", the output of the NOR gate 30 is "0" and the flip-flop 31 is "0". Is set to
【0014】第1隣接ビット保持回路26Aは入力デー
タの最右端の16ビットを、次ワードの演算のためにラ
ッチする。フリップフロップ31の出力はラインバッフ
ァ制御回路21を介してラインバッファ22に書き込ま
れる。黒画素検出器27によって、DMAC20から供
給される16ビット単位のワードデータは1ビットのコ
ード情報に圧縮される。すなわち、隣接する1ワードの
16ビットの最右端16ビット目と同一画素であれば
“1”、そうでなければ“0”とする。したがって、G
4モードのファクシミリの場合A4版で1ライン当たり
3456ビットのイメージ情報が、本実施形態例によれ
ば3456÷16=216ビットに圧縮され、ラインバ
ッファの容量は従来の1/16でよくなり、LSI化に
好適となる。The first adjacent bit holding circuit 26A latches the rightmost 16 bits of the input data for the operation of the next word. The output of the flip-flop 31 is written to the line buffer 22 via the line buffer control circuit 21. The 16-bit word data supplied from the DMAC 20 is compressed by the black pixel detector 27 into 1-bit code information. That is, if the pixel is the same as the rightmost 16th bit of the 16 bits of one adjacent word, it is set to “1”; otherwise, it is set to “0”. Therefore, G
In the case of 4-mode facsimile, image information of 3456 bits per line in the A4 size is compressed to 3456/16 = 216 bits according to the embodiment, and the capacity of the line buffer is reduced to 1/16 of the conventional one. It is suitable for LSI.
【0015】前述したように、ラインバッファ22に書
き込まれる情報はMR符号化において参照ライン(符号
化されるラインの1つ前のライン)情報として必要なも
のである。しかるに、本実施形態では参照ライン情報を
圧縮してラインバッファ22に記憶しているため、符号
化に際しては圧縮した情報を元の情報に戻さなければな
らない。この操作を簡便にするために本実施形態では白
画素発生器28、黒画素発生器29、第2隣接ビット保
持回路26Bを設けている。これら白画素発生器28、
白画素発生器29、第2隣接ビット保持回路26Bの具
体回路は図3に示されている。As described above, the information written in the line buffer 22 is necessary as reference line information (the line immediately before the line to be encoded) in MR encoding. However, in the present embodiment, since the reference line information is compressed and stored in the line buffer 22, it is necessary to return the compressed information to the original information at the time of encoding. In this embodiment, a white pixel generator 28, a black pixel generator 29, and a second adjacent bit holding circuit 26B are provided to simplify this operation. These white pixel generators 28,
FIG. 3 shows a specific circuit of the white pixel generator 29 and the second adjacent bit holding circuit 26B.
【0016】白画素発生器28は16個のバッファB0
〜B15を有しており、各バッファの入力はすべてGN
Dに接続されている。バッファはラインバッファ22か
ら読み出される圧縮コードLWと第2隣接ビット保持回
路26Bによって制御され、LWが“1”で第2隣接ビ
ット保持回路26Bの出力が“0”の時に活性化され各
出力に“0”を発生する。この結果、LW=0の時は1
6ビットのデータD0〜D15がオール“0”である情
報が発生され、参照ラインFIFO回路23に入力され
る。The white pixel generator 28 has 16 buffers B0
To B15, and all inputs of each buffer are GN
D. The buffer is controlled by the compression code LW read from the line buffer 22 and the second adjacent bit holding circuit 26B, and is activated when LW is “1” and the output of the second adjacent bit holding circuit 26B is “0”, and is output to each output. Generates “0”. As a result, when LW = 0, 1
Information in which the 6-bit data D0 to D15 are all “0” is generated and input to the reference line FIFO circuit 23.
【0017】黒画素発生器29は16個のバッファIB
0〜IB15を有しており、各バッファの入力はすべて
VCCに接続されている。バッファはラインバッファ2
2から読み出される圧縮コードLWと第2隣接ビット保
持回路26Bによって制御され、LWが“1”で隣接ビ
ット保持回路Bの出力が“1”の時に活性化され各出力
に“1”を発生する。この結果、LW=0の時は16ビ
ットのデータD0〜D15がオール“1”である情報が
発生され、参照ラインFIFO回路23に入力される。The black pixel generator 29 has 16 buffers IB
0 to IB15, and all inputs of each buffer are connected to VCC. Buffer is line buffer 2
2 is controlled by the compressed code LW read from the second and the second adjacent bit holding circuit 26B, and is activated when LW is “1” and the output of the adjacent bit holding circuit B is “1”, and generates “1” at each output. . As a result, when LW = 0, information in which 16-bit data D0 to D15 are all “1” is generated and input to the reference line FIFO circuit 23.
【0018】一方、LW=1の時、すなわち隣接ビット
と同一画素でない時は、バッファB0〜B15、IB0
〜IB15は活性化されず、各バッファの出力端はハイ
インピーダンスとなる。なお、バッファのかわりにスイ
ッチングトランジスタを使ってもよい。この時は、LW
=1に対応する16ビットの情報を主メモリ5のイメー
ジメモリエリア10の対応する領域からDMAC20を
使って読みださなければならない。したがって、白画素
発生器はLW=1の時DMAC20に参照ライン情報の
アクセスを要求するREQ(要求)信号を出力する。こ
のREQ信号の発生回路としては例えば図3に示すよう
にORゲート34,36、ANDゲート33、インバー
タ35およびT−F/F32で構成される。このREQ
信号は後述するタイミング信号S3およびS4のいずれ
か一方が“1”になった時、状態が反転するT型フリッ
プ・フロップ32の出力CSELとLW信号との論理が
〔CSEL+CSEL×LW〕を満足する時に発生され
る。白画素発生器28からREQ信号が発生されると、
DMAC20は対応する参照ラインアドレスを主メモリ
5に送り、必要な16ビットイメージ情報を取り込みこ
れを参照ラインFIFO回路23に入力する。この結
果、符号化されるべき16ビットのイメージ情報が符号
化ラインFIFO回路24にセットされ、これに対応す
る参照ラインの16ビットイメージ情報が参照ラインF
IFO回路23にセットされる。このタイミングにおい
て第2隣接ビット保持回路26Bには入力16ビットデ
ータのうち最右端の16ビット目がラッチされる。On the other hand, when LW = 1, that is, when the pixel is not the same as the adjacent bit, buffers B0 to B15, IB0
IB15 are not activated, and the output terminal of each buffer becomes high impedance. Note that a switching transistor may be used instead of the buffer. At this time, LW
The 16-bit information corresponding to = 1 must be read from the corresponding area of the image memory area 10 of the main memory 5 using the DMAC 20. Therefore, when LW = 1, the white pixel generator outputs a REQ (request) signal requesting the DMAC 20 to access the reference line information. The REQ signal generating circuit includes, for example, OR gates 34 and 36, an AND gate 33, an inverter 35, and a TF / F 32 as shown in FIG. This REQ
When one of the timing signals S3 and S4 described later becomes "1", the logic of the output CSEL of the T-type flip-flop 32 whose state is inverted and the LW signal satisfies [CSEL + CSEL × LW]. Occurs at times. When the REQ signal is generated from the white pixel generator 28,
The DMAC 20 sends the corresponding reference line address to the main memory 5 and fetches necessary 16-bit image information and inputs it to the reference line FIFO circuit 23. As a result, the 16-bit image information to be encoded is set in the encoding line FIFO circuit 24, and the corresponding 16-bit image information of the reference line is set in the reference line F.
It is set in the IFO circuit 23. At this timing, the rightmost 16th bit of the input 16-bit data is latched in the second adjacent bit holding circuit 26B.
【0019】図4にラインバッファ制御回路21とライ
ンバッファ22との内部ブロック図を示す。ラインバッ
ファ制御回路21は黒画素検出器27から出力される圧
縮コードLXを入力するマルチプレクサ40,42と、
ラインバッファ22への書き込みアドレスを発生する書
き込みアドレス発生回路44と、ラインバッファ22へ
の読みだしアドレスを発生する読みだしアドレス発生回
路45と、書き込みアドレスおよび読みだしアドレスを
入力とするマルチプレクサ41,43と、マルチプレク
サ40〜43へ切り換え信号を印加する切り換え制御回
路48とを有する。マルチプレクサ40,42はライン
バッファに接続され、ラインバッファから出された圧縮
コードLWを出力する機能を有する。ラインバッファ2
2は2つのラインバッファメモリ46,47を有し、そ
のデータ入出力はマルチプレクサ40,42に対応して
接続され、アドレス入力端はマルチプレクサ41,43
に対応して接続される。FIG. 4 shows an internal block diagram of the line buffer control circuit 21 and the line buffer 22. The line buffer control circuit 21 includes multiplexers 40 and 42 for receiving the compressed code LX output from the black pixel detector 27,
A write address generation circuit 44 that generates a write address to the line buffer 22, a read address generation circuit 45 that generates a read address to the line buffer 22, and multiplexers 41 and 43 that input the write address and the read address. And a switching control circuit 48 for applying a switching signal to the multiplexers 40 to 43. The multiplexers 40 and 42 are connected to the line buffer and have a function of outputting the compressed code LW output from the line buffer. Line buffer 2
2 has two line buffer memories 46 and 47, the data input and output of which are connected corresponding to the multiplexers 40 and 42, and the address input terminals are the multiplexers 41 and 43.
Is connected correspondingly.
【0020】マルチプレクサ41を介して書き込みアド
レスがラインバッファメモリ46に供給されると、黒画
素検出器27から出力された圧縮コードLXマルチプレ
クサ40を介してラインバッファメモリ46に書き込ま
れる。ラインバッファメモリ46に圧縮コードの書き込
みが行われる時はラインバッファメモリ47からは以前
に書き込まれている圧縮コードLWが読みだされる。一
方ラインバッファメモリ47に圧縮コードLXが書き込
まれる時は、ラインバッファメモリ46から圧縮コード
LWが読み出される。このように2つのラインバッファ
メモリ46,47Bへのリード/ライトを交互に実行す
ることによって高速にMR符号化を行う事ができる。ラ
インバッファメモリ46,47はいずれも216ビット
の容量を持つものであればよい。ラインバッファメモリ
46は奇数ラインのイメージ情報を格納するために用い
られ、ラインバッファメモリ47は偶数ラインのイメー
ジ情報を格納するために用いられる。書き込みアドレス
発生回路44および読みだしアドレス発生回路はともに
0〜215番地指定が可能なカウンタでよく、1つの圧
縮コードに対応して1つずつインクリメントされるもの
でよい。When a write address is supplied to the line buffer memory 46 via the multiplexer 41, the write address is written to the line buffer memory 46 via the compression code LX multiplexer 40 output from the black pixel detector 27. When writing the compressed code into the line buffer memory 46, the previously written compressed code LW is read from the line buffer memory 47. On the other hand, when the compressed code LX is written in the line buffer memory 47, the compressed code LW is read from the line buffer memory 46. As described above, by alternately executing the read / write to the two line buffer memories 46 and 47B, the MR encoding can be performed at high speed. The line buffer memories 46 and 47 need only have a capacity of 216 bits. The line buffer memory 46 is used to store image information of odd lines, and the line buffer memory 47 is used to store image information of even lines. Both the write address generation circuit 44 and the read address generation circuit may be counters capable of specifying addresses 0 to 215, and may be incremented one by one corresponding to one compression code.
【0021】図5はDMAC20の内部ブロック図であ
る。DMAC20は主メモリ5内のイメージメモリエリ
ア10を指定するアドレスを参照ラインと符号化ライン
との両方について作成する機能が必要である。このた
め、参照ラインアドレスレジスタ50と符号化ラインア
ドレスレジスタ51とを有し、その出力はマルチプレク
サ52を介して交互にアドレスインクリメンタ53に印
加される。アドレスインクリメンタ53はマルチプレク
サ52を介して入力されたアドレスに+1を加算し、そ
の出力をアドレスバッファ54を介してシステムバス9
に送り、主メモリ5をアクセスするとともに、インクリ
メントした結果を対応するアドレスレジスタ50,51
へフィードバックする。この結果、アドレスレジスタ5
0,51の各内容は交互に+1ずつ足される。符号化ラ
インアドレスレジスタ51は符号化すべきラインを読み
出すためのアドレスレジスタとして用いられ、このアド
レスによって主メモリ5から読み出されたライン情報は
データバッファ59を介して符号化ラインFIFO回路
24に入力されるとともに黒画素検出器27に入力さ
れ、次のラインの符号化のための参照ライン情報として
圧縮して、ラインバッファメモリ46,47のいずれか
一方に格納される。FIG. 5 is an internal block diagram of the DMAC 20. The DMAC 20 needs a function of creating an address specifying the image memory area 10 in the main memory 5 for both the reference line and the encoding line. For this purpose, a reference line address register 50 and an encoding line address register 51 are provided, and the output is alternately applied to an address incrementer 53 via a multiplexer 52. The address incrementer 53 adds +1 to the address input via the multiplexer 52 and outputs the output via the address buffer 54 to the system bus 9.
To access the main memory 5 and store the incremented result in the corresponding address register 50, 51.
Feedback to As a result, the address register 5
The contents of 0 and 51 are alternately added by +1. The coding line address register 51 is used as an address register for reading out a line to be coded, and the line information read out from the main memory 5 by this address is input to the coding line FIFO circuit 24 via the data buffer 59. At the same time, it is input to the black pixel detector 27, compressed as reference line information for encoding the next line, and stored in one of the line buffer memories 46 and 47.
【0022】図8に示したホストプロセッサ1は、DM
Aの開始時に参照ラインアドレスレジスタ50と符号化
ラインアドレスレジスタ51とに初期値を設定するとと
もに、参照ラインエンドアドレスレジスタ55と符号化
ラインエンドアドレスレジスタ56に各ラインの終了ア
ドレスを設定する。マルチプレクサ57はCSEL信号
に応答して参照ラインエンドアドレスと符号化ラインエ
ンドアドレスとを交互に比較器58に与え、アドレスイ
ンクリメンタ53の内容と比較し、一段するとDMA終
了を示す信号(END)をホストプロセッサ1に伝送す
る。マルチプレクサ52と57とはともに同一のCSE
L信号に応答して切り換え制御されるので、比較器58
は参照ラインアドレスと参照ラインエンドアドレスとの
比較および符号化ラインアドレスと符号化ラインエンド
アドレスとの比較を交互に同期して実行する。前記DM
AC20はさらにタイミング制御回路60を有してお
り、その詳細は図6に示されている。The host processor 1 shown in FIG.
At the start of A, an initial value is set in the reference line address register 50 and the coded line address register 51, and an end address of each line is set in the reference line end address register 55 and the coded line end address register 56. The multiplexer 57 alternately supplies the reference line end address and the coded line end address to the comparator 58 in response to the CSEL signal, compares the reference line end address with the contents of the address incrementer 53, and when one stage is completed, outputs a signal (END) indicating the end of the DMA. The data is transmitted to the host processor 1. The multiplexers 52 and 57 have the same CSE
Since the switching is controlled in response to the L signal, the comparator 58
Performs the comparison between the reference line address and the reference line end address and the comparison between the coded line address and the coded line end address alternately and synchronously. DM
The AC 20 further has a timing control circuit 60, the details of which are shown in FIG.
【0023】図6に示すように、前記タイミング制御回
路60は、4種類のタイミング信号S1〜S4が使用さ
れ、各々は接続された4つの遅延型フリップフロップ
(DFF)61〜64の各出力から取り出される。初期
状態もしくはリセット信号によりDFF61のみがセッ
トされる。DFF62はクロックCKの立下がりエッジ
でDFF61の出力を入力しS2を発生する。同様にD
FF63はクロックCKの立下がりエッジでDFF62
の出力を入力しS3を発生する。DFF63の出力はC
SELとLWとを入力とするANDゲート65の出力を
入力とするANDゲート66を介してDFF64へクロ
ックCKの立下がりエッジで入力される。DFF61の
入力にはDFF64の入力およびDFF63の出力とR
EQ信号とをうけるANDゲート67の出力を入力とす
るORゲート68の出力が印加される。ここで、CSE
L信号は図3に示したように、タイミング信号S3とS
4のいずれかが、“1”になる毎に状態が反転されるフ
リップフロップ32の出力であり、CSELはその反動
出力である。この実施形態例ではCSEL=“0”の時
は参照ラインが選択され、“1”の時は符号化ラインが
選択される。LW信号はラインバッファから読みだされ
る圧縮コード信号であり、LWはその反動信号である。As shown in FIG. 6, the timing control circuit 60 uses four types of timing signals S1 to S4, each of which is output from each of four connected delay-type flip-flops (DFFs) 61 to 64. Taken out. Only the DFF 61 is set in the initial state or by a reset signal. The DFF 62 receives the output of the DFF 61 at the falling edge of the clock CK and generates S2. Similarly D
The FF 63 outputs the DFF 62 at the falling edge of the clock CK.
To generate S3. The output of DFF63 is C
The signal is input to the DFF 64 at the falling edge of the clock CK via the AND gate 66 which receives the output of the AND gate 65 which receives SEL and LW. The input of DFF61 is the input of DFF64, the output of DFF63 and R
The output of the OR gate 68 which receives the output of the AND gate 67 receiving the EQ signal as an input is applied. Where CSE
The L signal is, as shown in FIG. 3, the timing signals S3 and S3.
4 is the output of the flip-flop 32 whose state is inverted each time it becomes "1", and CSEL is the reaction output thereof. In this embodiment, when CSEL = "0", the reference line is selected, and when "1", the coding line is selected. The LW signal is a compressed code signal read from the line buffer, and LW is a reaction signal thereof.
【0024】図6において、S1、S2、S3はクロッ
クの1周期に同期してそれぞれこの順に順次発生される
ものであるが、S4はCSELが“1”でかつLWが
“1”の時のみ発生される。すなわち、S4信号はライ
ンバッファから読み出された圧縮コードが“0”の時
(参照ライン情報がすべて白の時)のみ発生されるもの
である。換言すれば、ラインバッファから読み出された
圧縮コードが“1”の時にはS4は発生されない。この
時は図3に示すREQ信号が発生されるので、図6のA
NDゲート67の出力が“1”となり、S1が発生され
る。すなわち、DMAC20はS1〜S3なるサイクル
とS1〜S4なるサイクルとの2つのサイクルで動作
し、これらは圧縮コード“0”か“1”かによって選択
される。この理由は圧縮コードが“0”であれば、白画
素発生器28かまたは黒画素発生器29から16ビット
がオール“0”またはオール“1”の信号が作り出され
るので、これをそのまま参照ラインFIFO回路23に
入力すればよいので、S4で示される1クロック期間で
実行されうるが、圧縮コードが“1”の時はDMAC2
0を用いてこれに対応する16ビットの情報を主メモリ
5から読みださなければならないためS1〜S3の3ク
ロック期間が必要となるからである。In FIG. 6, S1, S2, and S3 are sequentially generated in this order in synchronization with one cycle of the clock. However, S4 is only generated when CSEL is "1" and LW is "1". Generated. That is, the S4 signal is generated only when the compression code read from the line buffer is "0" (when all the reference line information is white). In other words, when the compression code read from the line buffer is "1", S4 is not generated. At this time, the REQ signal shown in FIG. 3 is generated.
The output of the ND gate 67 becomes "1", and S1 is generated. That is, the DMAC 20 operates in two cycles of the cycle of S1 to S3 and the cycle of S1 to S4, and these are selected by the compression code “0” or “1”. The reason is that if the compression code is "0", a signal in which 16 bits are all "0" or all "1" is generated from the white pixel generator 28 or the black pixel generator 29. Since the signal may be input to the FIFO circuit 23, it can be executed in one clock period shown in S4. However, when the compression code is "1", the DMAC 2
This is because 16 bits of information corresponding to this must be read from the main memory 5 using 0, so that three clock periods of S1 to S3 are required.
【0025】図5に戻って、データバッファ59は符号
化ライン情報の入力と圧縮コードが“1”の時の参照ラ
イン情報の入力とを許可しなければならないので、RE
Q信号によって活性化される。一方、アドレスバッファ
54は符号化ラインを読み出す時に必要なアドレスと圧
縮コードが“1”の時に参照ラインを読み出す時に必要
なアドレスとを出力するものであるから、タイミング信
号S1〜13が発生されている時に活性化されればよ
い。したがって、アドレスバッファ54はS1〜S3を
入力とするORゲート61の出力によって活性化され
る。Returning to FIG. 5, since the data buffer 59 must permit input of coded line information and input of reference line information when the compression code is "1", the RE
It is activated by the Q signal. On the other hand, since the address buffer 54 outputs the address necessary for reading the encoded line and the address necessary for reading the reference line when the compression code is "1", the timing signals S1 to S13 are generated. It only needs to be activated when there is. Therefore, the address buffer 54 is activated by the output of the OR gate 61 having S1 to S3 as inputs.
【0026】図7は本発明におけるビット演算回路の他
の例を示すブロック図であり、ここでは隣接ワードを保
持するラッチ(隣接ビット保持回路)71と、16ビッ
トのXOR演算回路72を有している。ファクシミリの
入力画像として、入力信号をディザ変換した白黒画像を
使用する場合がある。この変換後の画像は16ビット単
位で規則正しいデータ例が連続して生成される。したが
って、このような画像では隣接ワード単位でXOR演算
を行うと全て“0”から構成される1ワードが得られ
る。このようにXOR演算後のデータを全0検出器73
において検出し、フリップフロップ74を動作させるこ
とで、演算後のデータが全て“0”であるときに圧縮符
号として“1”、そうでない場合に“0”をコードとし
て用いる。符号化ラインの生成ではこの逆演算を実行す
ることにより容易に符号化ラインを生成できる。FIG. 7 is a block diagram showing another example of a bit operation circuit according to the present invention. In this example, a latch (adjacent bit holding circuit) 71 for holding an adjacent word and a 16-bit XOR operation circuit 72 are provided. ing. As a facsimile input image, a black and white image obtained by dithering an input signal may be used. In the converted image, regular data examples are continuously generated in units of 16 bits. Therefore, in such an image, when the XOR operation is performed in units of adjacent words, one word composed of all “0” is obtained. In this way, the data after the XOR operation is converted
By operating the flip-flop 74, "1" is used as the compression code when the data after the operation is all "0", and "0" is used as the code otherwise. In the generation of the coding line, the coding line can be easily generated by performing the inverse operation.
【0027】ここで、前記実施形態ではMR方式の例を
説明しているが、本発明はMR方式のみならず、MMR
方式にも適用できる。また本発明は大容量の情報を圧縮
して小容量のメモリに記憶するときにも使用できる。Here, in the above-described embodiment, an example of the MR system is described.
Applicable to the method. The present invention can also be used when compressing a large amount of information and storing it in a small-capacity memory.
【0028】[0028]
【発明の効果】以上説明したように本発明は、一定画素
長内のデータが隣接するデータと同一規則であるかを検
出してそれぞれ対応する圧縮コードをラインバッファに
書き込み、ラインバッファから読みだされた圧縮コード
が隣接ビットと同一のとき一定画素長の白画素、または
黒画素を発生し参照ラインに送出する手段を有するの
で、ラインバッファの容量は、従来の一定画素長内に対
して圧縮ビットデータ分で良いことになり大幅に縮小で
きる効果がある。したがって、本発明では画像の性質か
ら白画素が多い画像、黒画素が多い画像のいずれでも効
果的な圧縮の効果が得られる。またディザ画像のような
一定規則で生成される2値画像にも効果があることは言
うまでもない。したがって、本発明によれば、LSI化
が容易な圧縮・伸長回路が得られることになる。As described above, the present invention detects whether data within a certain pixel length has the same rule as that of adjacent data, writes the corresponding compressed code into the line buffer, and reads out the compressed code from the line buffer. When the compressed code is the same as the adjacent bit, it has a means for generating a white pixel or a black pixel of a fixed pixel length and sending it to the reference line, so that the capacity of the line buffer is compressed to within the conventional fixed pixel length. The bit data is sufficient, and there is an effect that the size can be greatly reduced. Therefore, according to the present invention, an effective compression effect can be obtained for both an image having many white pixels and an image having many black pixels due to the nature of the image. Needless to say, the present invention is also effective for a binary image generated according to a certain rule such as a dither image. Therefore, according to the present invention, it is possible to obtain a compression / expansion circuit that can be easily formed into an LSI.
【図1】本発明の符号化/復号化回路の一実施形態のブ
ロック図である。FIG. 1 is a block diagram of an embodiment of an encoding / decoding circuit according to the present invention.
【図2】ビット演算回路のブロック図である。FIG. 2 is a block diagram of a bit operation circuit.
【図3】白画素発生器と黒画素発生器のブロック図であ
る。FIG. 3 is a block diagram of a white pixel generator and a black pixel generator.
【図4】ラインバッファ制御回路とラインバッファのブ
ロック図である。FIG. 4 is a block diagram of a line buffer control circuit and a line buffer;
【図5】DMACの内部構成のブロック図である。FIG. 5 is a block diagram of an internal configuration of a DMAC.
【図6】タイミング制御回路の内部構成のブロック図で
ある。FIG. 6 is a block diagram of an internal configuration of a timing control circuit.
【図7】本発明におけるビット演算回路の他の例のブロ
ック図である。FIG. 7 is a block diagram of another example of the bit operation circuit according to the present invention.
【図8】本発明が適用されるシステムブロック図であ
る。FIG. 8 is a system block diagram to which the present invention is applied.
【図9】従来の制御回路の内部構成のブロック図であ
る。FIG. 9 is a block diagram of an internal configuration of a conventional control circuit.
1 ホストプロセッサ 2 符号化/復号化制御回路 3 イメージプリンタ 4 CRT 5 主メモリ 6 スキャナー 7 通信コントローラ 8 磁気ディスク 9 システムバス 10 イメージメモリエリア 20 DMAC 21 ラインバッファ制御回路 22 ラインバッファ 23 参照ラインFIFO回路 24 符号化ラインFIFO回路 25 MR符号化回路 26A 第1隣接ビット保持回路 26B 第2隣接ビット保持回路 27 ビット演算回路 28 白画素発生器 29 黒画素発生器 DESCRIPTION OF SYMBOLS 1 Host processor 2 Encoding / decoding control circuit 3 Image printer 4 CRT 5 Main memory 6 Scanner 7 Communication controller 8 Magnetic disk 9 System bus 10 Image memory area 20 DMAC 21 Line buffer control circuit 22 Line buffer 23 Reference line FIFO circuit 24 Encoding line FIFO circuit 25 MR encoding circuit 26A First adjacent bit holding circuit 26B Second adjacent bit holding circuit 27 Bit operation circuit 28 White pixel generator 29 Black pixel generator
Claims (5)
化回路と、前記デジタル信号の書き込みが可能なライン
バッファとを有するデジタル信号制御回路において、前
記ラインバッファに書き込まれるべきデジタル信号の所
定ビット長内の各データを、その所定ビットに隣接する
特定データと一定の演算を施すことにより、各データが
全て同一の場合の第1の圧縮コードと、同一でない場合
の第2の圧縮コードのいずれかを作成する第1の回路
と、前記第1の回路によって作成された圧縮コードを前
記ラインバッファに書き込み、読出す制御を行う第2の
回路と、第2の回路によって読出された圧縮コードが前
記第1の圧縮コードであれば対応する所定ビット長と隣
接する特定データとの特定の演算を施すことにより白画
素または黒画素のデータを作成して前記符号化/復号化
回路に供給し、前記第2の圧縮コードであれば当該第2
の圧縮コードに対応する元となるデータを当該元となる
データが格納されているメモリから読みだして前記符号
化/復号化回路に供給する第3の回路とを有することを
特徴とするデジタル信号符号化/復号化回路。In a digital signal control circuit having an input / output digital signal encoding / decoding circuit and a line buffer into which the digital signal can be written, predetermined bits of the digital signal to be written to the line buffer Each data within the length is subjected to a certain operation with specific data adjacent to the predetermined bit, so that either the first compression code when all the data are the same or the second compression code when the data are not the same. A first circuit for creating the compressed code, a second circuit for writing and reading the compressed code created by the first circuit to the line buffer, and a compressed code read by the second circuit. In the case of the first compressed code, the data of a white pixel or a black pixel is obtained by performing a specific operation on a corresponding predetermined bit length and adjacent specific data. And generates and supplies the data to the encoding / decoding circuit.
And a third circuit for reading out the original data corresponding to the compressed code from the memory storing the original data and supplying the read data to the encoding / decoding circuit. Encoding / decoding circuit.
ータと所定データのビットデータとを比較し、所定デー
タが全て同一画素であることを検出したときに第1の圧
縮コードを出力するように構成される請求項1のデジタ
ル信号符号化/復号化回路。2. A first circuit compares 1-bit data of adjacent data with bit data of predetermined data, and outputs a first compression code when detecting that all of the predetermined data are the same pixel. 2. The digital signal encoding / decoding circuit according to claim 1, which is configured as follows.
の対応するビットデータのXOR演算を施すように構成
される請求項1のデジタル信号符号化/復号化回路。3. The digital signal encoding / decoding circuit according to claim 1, wherein the first circuit is configured to perform an XOR operation on corresponding bit data of adjacent data and predetermined data.
と、黒画素を生成する手段と、第1の圧縮コードと所定
データとをそれぞれ入力し、これらの入力を演算して得
られた信号に基づいて前記白画素生成手段と黒画素生成
手段のいずれかを選択する手段とを備える請求項2また
は3のデジタル信号符号化 /復号化回路。4. A third circuit is obtained by inputting a means for generating a white pixel, a means for generating a black pixel, a first compression code and predetermined data, and calculating these inputs. 4. The digital signal encoding / decoding circuit according to claim 2, further comprising: means for selecting either the white pixel generating means or the black pixel generating means based on the signal.
されたときに、元となるデータが格納されているメモリ
に対する読み出し信号を出力する手段を備える請求項4
のデジタル信号符号化/復号化回路。5. The circuit according to claim 4, wherein said third circuit includes means for outputting a read signal to a memory in which original data is stored when the second compression code is input.
Digital signal encoding / decoding circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25863696A JP2933029B2 (en) | 1996-09-30 | 1996-09-30 | Digital signal encoding / decoding circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP25863696A JP2933029B2 (en) | 1996-09-30 | 1996-09-30 | Digital signal encoding / decoding circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH10108028A true JPH10108028A (en) | 1998-04-24 |
| JP2933029B2 JP2933029B2 (en) | 1999-08-09 |
Family
ID=17323028
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP25863696A Expired - Lifetime JP2933029B2 (en) | 1996-09-30 | 1996-09-30 | Digital signal encoding / decoding circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2933029B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010103932A (en) * | 2008-10-27 | 2010-05-06 | Fuji Xerox Co Ltd | Encoding device, decoding device and image processing system |
| KR101271738B1 (en) * | 2010-12-20 | 2013-06-04 | 삼성테크윈 주식회사 | Apparatus and method for reducing noise and recording media written by the method for reducing noise |
-
1996
- 1996-09-30 JP JP25863696A patent/JP2933029B2/en not_active Expired - Lifetime
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010103932A (en) * | 2008-10-27 | 2010-05-06 | Fuji Xerox Co Ltd | Encoding device, decoding device and image processing system |
| KR101271738B1 (en) * | 2010-12-20 | 2013-06-04 | 삼성테크윈 주식회사 | Apparatus and method for reducing noise and recording media written by the method for reducing noise |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2933029B2 (en) | 1999-08-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4782181B2 (en) | Entropy decoding circuit, entropy decoding method, and entropy decoding method using pipeline method | |
| US20110091124A1 (en) | System for multi-byte reading | |
| JP2004048372A (en) | Image processing device, image input / output device, scaling process method, and memory control method | |
| JP2523564B2 (en) | Information processing apparatus having decoding / writing / reading means | |
| JPH08251586A (en) | Run length decoding device | |
| US6792150B1 (en) | Method, apparatus and computer program product for image data compression and decompression capable of high-speed processing | |
| JP3626687B2 (en) | Image processing device | |
| US4800440A (en) | Digital image signal coding/decoding circuit with buffer memory storing reference line as compression codes | |
| JPH088647B2 (en) | Run-length coding method and apparatus | |
| JP2933029B2 (en) | Digital signal encoding / decoding circuit | |
| US7433522B2 (en) | JBIG coding apparatus and method with low cost, high-performance ping-pong buffer arrangement | |
| JP2002077637A (en) | Image encoding apparatus and image encoding method | |
| JP2776284B2 (en) | Image coding device | |
| JP2007158550A (en) | Image processing apparatus and image processing method | |
| JPH09247466A (en) | Encoding device | |
| JP3167684B2 (en) | Context generation circuit and method for small screen | |
| JPH07327116A (en) | Image input / output control device | |
| JP2728003B2 (en) | Zero-run expansion circuit and zero-run expansion method | |
| KR0176537B1 (en) | Memory Interface Method and Circuit of Variable Length Decoder | |
| JPH05260461A (en) | Motion compensation prediction device | |
| JP3293382B2 (en) | Data compression device and data decompression device | |
| JPH05244438A (en) | Compression expansion circuit | |
| JP3227236B2 (en) | Image processing device | |
| JP2941574B2 (en) | High-speed extension processing device | |
| JPH03175875A (en) | Code data conversion device |