JP3868148B2 - Code data output device - Google Patents
Code data output device Download PDFInfo
- Publication number
- JP3868148B2 JP3868148B2 JP14490399A JP14490399A JP3868148B2 JP 3868148 B2 JP3868148 B2 JP 3868148B2 JP 14490399 A JP14490399 A JP 14490399A JP 14490399 A JP14490399 A JP 14490399A JP 3868148 B2 JP3868148 B2 JP 3868148B2
- Authority
- JP
- Japan
- Prior art keywords
- count value
- code data
- zero
- data
- continuous
- 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
Links
- 238000000034 method Methods 0.000 claims description 7
- 238000009825 accumulation Methods 0.000 claims 2
- 239000003550 marker Substances 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 230000006835 compression Effects 0.000 description 5
- 238000007906 compression Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 239000004568 cement Substances 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、符号データ出力装置に関し、特に、ITU-T.82韓国に基づくJBIG(Joint Bi-level Image Coding Experts Group)方式により符号化された1ストライプ分のデータの末尾の連続するゼロ(OxOO)を削除する機能をもつ符号データ出力装置に関する。
【0002】
【従来の技術】
JBIG方式は2値画像の予測符号化についての国際標準であり、ITU-T.82勧告,あるいはITU-T.85勧告による方式が知られている。
【0003】
ITU-T.82およびT.85勧告のJBIG方式では、送信画像の符号化に際し、標準では画像データの128ラインを1ストライプとし、ストライプ単位で送信を行なうものと規定され、また、1つのストライプの終端には、SDNORMあるいはSDRSTマーカーコードが付加されることが規定されている。
【0004】
また、1ストライプの符号列の終端に存在する連続するゼロ(16進標記の0x00)のバイトは、送信せずに削除してもよい旨が規定されている。送信側において0x00のバイトが削除された場合には、受信側において、0x00のバイトを意図的に挿入するという動作が行なわれ、その後に復号化されるようになっている。
【0005】
【発明が解決しようとする課題】
上述のように、ITU-T.82勧告では、ストライプ端の最後の0x00のバイトを削除してもよいことになっている。すなわち、ストライプ端の0x00は必須ではなく、いわば余分な符号データであり、圧縮率を向上させるためには、当然のことながら削除するのが望ましい。
【0006】
ストライプ端の連続するゼロ(0x00)を削除する方法としては、0x00が続くパターンをソフトウエアで検索して削除する方法がある。
【0007】
しかし、この方法では、1ストライプ毎に、末尾のゼロが連続するパターンを探し出すステップが必要となり、ソフトウエアの負担が増大するという問題が生じる。
【0008】
本発明は、このような不都合を解消するためになされたものであり、ソフトウエアの負担を増大させることなく、1ストライプの最後に存在する連続したゼロを効率的に削除することを目的とする。
【0009】
【課題を解決するための手段】
本発明では、符号化装置から出力される符号データについてその内容を判定し、少なくとも連続するゼロ(0x00)については、そのまま次の処理に渡さず、その代わりに、連続するゼロがどれだけ続くかを示す情報を取得し、その情報を一時的に記憶し、その後、所定の条件を満たすタイミングで、その情報を出力するようになす。
【0010】
つまり、連続するゼロの情報を、常に一元的に管理するようにする。そして、1つのストライプ端が終了する毎に、その時点で記憶されている連続したゼロの情報の出力を止めることにより、機械的(自動的)に1ストライプ端の連続するゼロを削除することができる。
【0011】
すなわち、連続するゼロの情報を一元的に管理するという、実現が容易な工夫されたシステム構成の採用により、ストライプ端の連続するゼロを効率的に削除することができる。また、ソフトウエアに特別な負担を課すこともない。
【0012】
【発明の実施の形態】
本発明の第1の態様では、JBIG(Joint Bi-level Image Coding Experts Group)方式により符号化され入力された符号データのバイトが連続するゼロ( 0x00 )であるか否かを順次判定する判定手段と、前記符号データ内の連続するゼロをカウントするカウント値を保持するカウント値保持手段と、出力するデータを蓄積する蓄積手段と、前記判定手段によって前記符号データの最新のバイトが連続するゼロであると判定された場合、前記カウント値保持手段によって保持されたカウント値をインクリメントするインクリメント手段と、前記判定手段によって前記符号データの最新のバイトが連続するゼロでないと判定された場合、前記カウント値保持手段に保持されたカウント値の回数繰り返す連続するゼロと前記最新のバイトとを前記蓄積手段に追加すると共に、前記カウント値をリセットするリセット手段と、前記符号データのストライプ端が検出されると、前記カウント値をリセットし、前記蓄積手段に蓄積されたデータを出力する出力手段と、を備えたことを特徴とする。
【0013】
このように、符号データのストライプ端が検出された時点で、連続するゼロをカウントするカウント値をリセットするため、ソフトウェアに負担をかけることなくストライプの末尾の連続するゼロを削除することができる。
【0014】
また、本発明の第2の態様では、JBIG方式により符号化され入力された符号データのバイトが連続するゼロ( 0x00 )であるか連続するF( 0xFF )であるか又はそれ以外かを順次判定する判定手段と、前記符号データ内の連続するゼロをカウントするゼロカウント値と前記符号データ内の連続するFをカウントするFカウント値とを保持するカウント値保持手段と、出力するデータを蓄積する蓄積手段と、前記判定手段によって前記符号データの最新のバイトが連続するゼロであると判定された場合、前記カウント値保持手段によって保持されたゼロカウント値をインクリメントするゼロインクリメント手段と、前記判定手段によって前記符号データの最新のバイトが連続するFであると判定された場合、前記カウント値保持手段によって保持されたFカウント値をインクリメントするFインクリメント手段と、前記判定手段によって前記符号データの最新のバイトが連続するゼロでも連続するFでもないと判定された場合、前記カウント値保持手段に保持されたゼロカウント値の回数繰り返す連続するゼロ又はFカウント値の回数繰り返す連続するFと前記最新のバイトとを前記蓄積手段に追加すると共に、前記ゼロカウント値又はFカウント値をリセットするリセット手段と、前記符号データのストライプ端が検出されると、前記ゼロカウント値をリセットし、前記蓄積手段に蓄積されたデータを出力する出力手段と、を備え、前記カウント値保持手段は、桁上げ信号を受信すると、前記Fカウント値が1以上の場合、前記Fカウント値を前記ゼロカウント値にコピーし、前記Fカウント値をリセットすることを特徴とする。
【0015】
このように、連続するFもカウントし、桁上げ信号を受信すると、Fカウント値が1以上の場合、Fカウント値をゼロカウント値にコピーし、Fカウント値をリセットすることによって、桁上げが発生した場合にも的確に対応できる。
【0022】
本発明の第3の態様は、請求項1または請求項2記載の符号データ出力装置を具備する通信装置である。
【0023】
本態様の通信装置では、ソフトウエアに負担をかけることなく、余分な連続するゼロを効率的に削除でき、送信画像データの圧縮率を高めることができる。
【0024】
以下、本発明の実施の形態について図面を参照して、より具体的に説明する。
【0025】
図1は、本発明の符号出力装置を搭載した通信装置(例えば、ファクシミリ装置)の要部構成を示すブロック図である。
【0026】
図示されるように、この通信装置は、マルコフモデル符号装置10と、本発明にかかる符号データ出力装置20と、モデム32と、制御部40と、を有する。なお、参照符号50は、相手先の通信装置である。
【0027】
マルコフモデル符号装置10は、画像データ入力部11と、コンテクストデータ生成部12と、コンテクストデータRAM13と、算術符号器(QMコーダ)14と、確率推定テーブル15と、を含んで構成される。
【0028】
算術符号器14は、画像の局所的な統計量の変動に追従してLPS(劣勢シンボル)の生成確率を推定し、正しく推定できなかったペナルティーとして符号を生成するものであり、この符号は、画像のもつ局所的な特徴を反映している。なお、算術符号器(QMコーダ)は公知であるため、その動作の詳細は省略する。
【0029】
また、本発明にかかる符号出力装置20は、符号データ判定部21と、レジスタ22と、”0x00”カウンタ23と、”0xFF”カウンタ24と、マーカーコード生成部25と、セレクタ28と、符号データ出力部29と、メモリ30と、を具備する。
【0030】
本実施の形態の符号出力装置20の特徴は、連続するゼロ(0x00)の情報を、”0x00”カウンタ23で一元的に常に管理しておき、制御部40がストライプ端を検出した時点で、”0x00”カウンタ23のカウント値を廃棄し、これによって、ストライプ端の連続するゼロを効率的に削除できるようにしたことである。
【0031】
以下、各部の機能と、特徴的な動作を説明する。
【0032】
符号データ判定部21は、算術符号器14から出力される符号の中身を分析して、「連続するゼロ(0x00)」と「連続するF(0xFF)」と「その他の符号」に分別する。
【0033】
そして、0x00の場合には、”0x00”カウンタ23に通知し(その0x00自体は出力しない)、”0x00”カウンタ23は、その通知の回数(符号のバイト数)をカウントしていく。
【0034】
同様に、符号データ判定部21は、0xFFの場合には、”0xFF”カウンタ24に通知し(0xFF自体は出力しない)、この通知を受けた”0xFF”カウンタ24は、その回数(符号のバイト数)をカウントする。
【0035】
また、符号判定部21は、その他の符号の場合には、その符号をそのまま出力して、レジスタ22に一時的に記憶させる。なお、レジスタ22は、FIFO形式のメモリであり、新たにデータが書き込まれる毎に、それまで保持されていたデータは出力される。
【0036】
また、符号判定部21は、ゼロの連続が続いている状態で、ゼロでない符号がくると、リセット信号を”0x00”カウンタ23に送出する。同じく、符号判定部21は、Fの連続が続いている状態で、Fでない符号がくると、リセット信号を”0xFF”カウンタ24に送出する。
【0037】
また、算術符号器14から出力されるキャリー(桁上げ信号)は、信号線L1を介して、”0xFF”カウンタ24およびレジスタ22に伝達されるようになっている。
【0038】
”0xFF”カウンタ24が1以上をカウントしている状態で、キャリーが入力されると、”0xFF”カウンタ24のカウント値を”0x00”カウンタ23にコピーする。これは、ビット反転により、”0xFF”カウンタ24のカウント値の分だけ、新たにゼロが生じるので、ゼロの情報を管理している”0x00”カウンタ23に、このことを知らせておく必要があるからである。このような動作により、桁上がりが生じた場合(キャリーが発生した場合)にも的確に対応できることになる。なお、上述のコピーが実行されると、”0xFF”カウンタ24はリセットされる。
【0039】
また、レジスタ22では、キャリーが入力されると、その時点で保持している符号データに1を追加(保持データをインクリメント)する。
【0040】
”0x00”カウンタ23および”0xFF”カウンタ24のそれぞれは、符号データ判定部21からリセット信号がくると、保持しているカウント値を出力する。その出力されたカウント値を受けて、”0x00”出力部26と”0xFF”出力部27はそれぞれ、そのカウント値に対応する0x00,0xFFを出力する。
【0041】
また、マーカーコード生成部25は、1つのストライプの終端に付加するべき、SDNORMあるいはSDRSTマーカーコードを生成して出力する。
【0042】
そして、レジスタ22から出力される符号データと、”0x00”出力部26あるいは”0xFF”出力部27から出力される”0x00”,”0xFF”の符号データと、マーカーコード生成部25から出力されるマーカーコードは、セレクタ28を介して、順次に符号データ出力部29に送られ、ここで、送信するべき1ストライプ分の符号データに組み立てられ、メモリ30に一旦、保持される。
【0043】
符号出力装置20では、以上の動作を常時、行なっている。そして、制御部40が、ストライプ端を検出する(つまり、128ライン分の符号の出力を検出する)と、その時点で”0x00”カウンタ23に保持されているカウント値は破棄する。これにより、ストライプの末尾の連続するゼロは出力されず、余分な符号の送信が防止され、それだけ圧縮率が向上する。
【0044】
一方、制御部40がストライプ端を検出した時点で、”0xFF”カウンタ24が1以上のカウント値を保持している場合には、そのまま出力する。ストライプの末尾の連続するFは、ゼロの場合と異なり、有用な、送信しなくてはならない情報であるからである。
【0045】
なお、図1では、”0x00”カウンタ23と、”0xFF”カウンタ24は別々のカウンタとして描かれているが、これらのカウンタが同時にカウント動作を行なうことはないため、一つのカウンタを時分割で使用することも可能である。
【0046】
以上説明した特徴的な動作をまとめると、図2のようになる。
【0047】
すなわち、まず、符号データ判定部21が「連続する0」,「連続するF」,「その他の符号」を判定する(ステップ60)。
【0048】
そして、その判定の結果、「その他の符号」の場合はレジスタ22に蓄積し、また、「連続する0」の場合は、”0x00”カウンタ23がその数をカウントし、また、符号データ判定部21からリセット指示があると、符号のバイト数を出力し、また、「連続するF」の場合は、”0xFF”カウンタ24がその数をカウントし、符号データ判定部21からリセット指示があると、符号のバイト数を出力し、さらに、”0xFF”カウンタ24が、「1」以上をカウントしている場合に、キャリーが出力されると、カウント値を”0x00”カウンタ23にコピーし、その後、”0x00”カウンタ23をリセットする(ステップ61)。
【0049】
そして、ストライプ端に達したことを制御部40が検出すると、その時点で、”0x00”カウンタ23が保持しているカウント値は破棄(無視)し、一方、”0xFF”カウンタ24のカウント値はそのまま出力する。
【0050】
図3は、以上説明した符号出力装置を搭載したファクシミリ装置のハードウエア構成を示すブロック図である。
【0051】
図示されるように、ファクシミリ装置101は、ホストプロセッサ102と、MH/MR/MMR符号/復号化回路103と、解像度変換回路104と、QM(算術)符号/復号化回路105と、画像ラインメモリ106と、符号メモリ107と、モデムなどの通信インタフェース(電話回線113等を用いた有線伝送のためのインタフェースとして機能する)108と、スキャナ等の画像入力装置111と、プリンタなどの画像記録/表示装置112と、を具備し、各ブロックは内部バス109,110を介して相互に情報の授受を行うことができる。
【0052】
図1を用いて説明したマルコフモデル符号化装置10や符号出力装置20は、QM(算術)符号/復号化回路105に搭載されている。
【0053】
本発明の符号出力装置は構成が簡単であるため、小型化や低コスト化が厳しく要求されるファクシミリ装置においても十分に搭載可能であり、これにより、ソフトウエアに負担をかけることなく、圧縮率を向上することが可能となる。したがって、普及型のファクシミリ装置の通信性能の向上に寄与する。
【0054】
【発明の効果】
以上説明したように本発明によれば、符号データに含まれる連続するゼロを一元的に管理する構成を採用し、ソフトウエアの負担を増大させることなく、1ストライプの最後に存在する連続したゼロを効率的に削除することができ、これにより、画像データの圧縮率を向上させることができる。
【図面の簡単な説明】
【図1】本発明の実施の形態にかかる通信装置の要部構成を示すブロック図
【図2】実施の形態にかかる符号出力装置の主要な動作を説明するためのフロー図
【図3】本発明の符号出力装置を搭載したファクシミリ装置のハードウエア構成を示すブロック図
【符号の説明】
10 マルコフモデル符号化装置
11 画像データ入力部
12 コンテクストデータ生成部
13 コンテクストデータRAM
14 算術符号器
15 確率推定テーブル
20 符号出力装置
21 符号データ判定部
22 レジスタ
23 ”0x00”カウンタ
24 ”0xFF”カウンタ
25 マーカーコード生成部
26 ”0x00”出力部
27 ”0xFF”出力部
28 セレクタ
29 符号データ出力部
30 メモリ
32 モデム
40 制御部
50 通信装置[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a sign-data output device, in particular, ITU-T.82 zero to more trailing consecutive encoded one stripe of data into JBIG (Joint Bi-level Image Coding Experts Group) method based on Korea It relates also One sign-data output device the ability to remove (OxOO).
[0002]
[Prior art]
The JBIG system is an international standard for predictive coding of binary images, and a system based on the ITU-T.82 recommendation or the ITU-T.85 recommendation is known.
[0003]
In the JBIG system recommended by ITU-T.82 and T.85, it is standardized that 128 lines of image data are defined as one stripe for transmission image encoding, and transmission is performed in units of stripes. It is specified that an SDNORM or SDRST marker code is added to the end of.
[0004]
In addition, it is specified that consecutive zero (hexadecimal 0x00) bytes existing at the end of one stripe code string may be deleted without being transmitted. When the 0x00 byte is deleted on the transmitting side, an operation of intentionally inserting the 0x00 byte is performed on the receiving side, and then decrypted.
[0005]
[Problems to be solved by the invention]
As described above, according to the ITU-T.82 recommendation, the last 0x00 byte at the end of the stripe may be deleted. That is, 0x00 at the end of the stripe is not essential, so it is extra code data, and it is naturally desirable to delete it in order to improve the compression rate.
[0006]
As a method of deleting consecutive zeros (0x00) at the end of the stripe, there is a method of searching for a pattern that continues with 0x00 by software and deleting it.
[0007]
However, this method requires a step of searching for a pattern in which trailing zeros are continuous for each stripe, resulting in an increase in software load.
[0008]
The present invention has been made to eliminate such inconveniences, and aims to efficiently delete consecutive zeros existing at the end of one stripe without increasing the software load. .
[0009]
[Means for Solving the Problems]
In the present invention, the content of code data output from the encoding device is determined, and at least consecutive zeros (0x00) are not passed to the next processing as they are, but instead, how many consecutive zeros continue. Is obtained, the information is temporarily stored, and then the information is output at a timing satisfying a predetermined condition.
[0010]
That is, continuous zero information is always managed centrally. Each time one stripe end is completed, the continuous zero information stored at that time is stopped, so that the continuous zero at one stripe end can be deleted mechanically (automatically). it can.
[0011]
In other words, by adopting a system configuration that is easy to realize that centrally manages information on consecutive zeros, it is possible to efficiently delete consecutive zeros at the stripe ends. Also, no special burden is placed on the software.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
In the first aspect of the present invention, determination means for sequentially determining whether or not the bytes of code data encoded and input by JBIG (Joint Bi-level Image Coding Experts Group) are continuous zero ( 0x00 ) A count value holding unit that holds a count value that counts consecutive zeros in the code data, a storage unit that stores data to be output, and a zero in which the latest byte of the code data is continuous by the determination unit. When it is determined that there is an increment unit that increments the count value held by the count value holding unit, and when the determination unit determines that the latest byte of the code data is not continuous zero, the count value Add consecutive zeros and the most recent byte repeated to the storage means for the number of count values held in the holding means. Both include reset means for resetting the count value, and output means for resetting the count value and outputting the data stored in the storage means when a stripe end of the code data is detected. It is characterized by.
[0013]
In this way, when the stripe end of the code data is detected, the count value for counting consecutive zeros is reset, so that the consecutive zeros at the end of the stripe can be deleted without imposing a burden on software.
[0014]
In the second aspect of the present invention, it is sequentially determined whether the bytes of the encoded data encoded and input by the JBIG method are continuous zero ( 0x00 ), continuous F ( 0xFF ), or other than that. Determination means, count value holding means for holding a zero count value for counting consecutive zeros in the code data, and an F count value for counting consecutive Fs in the code data, and storing output data A storage unit; and a zero increment unit that increments a zero count value held by the count value holding unit when the determination unit determines that the latest byte of the code data is continuous zero; and the determination unit When the latest byte of the code data is determined to be consecutive F by the count value holding means, F increment means for incrementing the F count value, and when the determination means determines that the latest byte of the code data is neither continuous zero nor continuous F, the zero held in the count value holding means A continuous zero that repeats the count number of times or a continuous F that repeats the count of the count value and the latest byte, and a reset means that resets the zero count value or the F count value; An output means for resetting the zero count value and outputting the data stored in the storage means when a stripe end of data is detected, and the count value holding means receives a carry signal; When the F count value is 1 or more, the F count value is copied to the zero count value, and the F count value is Characterized by resetting the cement value.
[0015]
In this way, when consecutive Fs are counted and a carry signal is received, if the F count value is 1 or more, the F count value is copied to the zero count value and the carry is reset by resetting the F count value. Even if it occurs, it can respond accurately.
[0022]
According to a third aspect of the present invention, there is provided a communication apparatus including the code data output apparatus according to the first or second aspect.
[0023]
In the communication apparatus according to this aspect, it is possible to efficiently delete unnecessary consecutive zeros without imposing a burden on software, and it is possible to increase the compression rate of transmission image data.
[0024]
Hereinafter, embodiments of the present invention will be described more specifically with reference to the drawings.
[0025]
FIG. 1 is a block diagram showing a main configuration of a communication apparatus (for example, a facsimile apparatus) equipped with the code output apparatus of the present invention.
[0026]
As shown in the figure, the communication apparatus includes a Markov model encoding apparatus 10, a code data output apparatus 20 according to the present invention, a
[0027]
The Markov model encoder 10 includes an image
[0028]
The arithmetic encoder 14 follows the fluctuation of the local statistics of the image, estimates the LPS (inferior symbol) generation probability, and generates a code as a penalty that cannot be correctly estimated. Reflects local features of the image. Since the arithmetic encoder (QM coder) is known, the details of its operation are omitted.
[0029]
The code output device 20 according to the present invention includes a code
[0030]
The feature of the code output device 20 of the present embodiment is that the information of continuous zeros (0x00) is always managed centrally by the “0x00”
[0031]
Hereinafter, functions of each unit and characteristic operations will be described.
[0032]
The code
[0033]
In the case of 0x00, the “0x00”
[0034]
Similarly, in the case of 0xFF, the code
[0035]
In addition, in the case of other codes, the
[0036]
In addition, the
[0037]
The carry (carry signal) output from the arithmetic encoder 14 is transmitted to the “0xFF”
[0038]
When a carry is input while the “0xFF”
[0039]
Further, when a carry is input, the
[0040]
Each of the “0x00”
[0041]
The
[0042]
The code data output from the
[0043]
In the code output device 20, the above operation is always performed. When the
[0044]
On the other hand, when the
[0045]
In FIG. 1, the “0x00”
[0046]
The characteristic operations described above are summarized as shown in FIG.
[0047]
That is, first, the code
[0048]
As a result of the determination, in the case of “other code”, the value is accumulated in the
[0049]
When the
[0050]
FIG. 3 is a block diagram showing a hardware configuration of a facsimile machine equipped with the code output device described above.
[0051]
As shown in the figure, the
[0052]
The Markov model encoding apparatus 10 and the code output apparatus 20 described with reference to FIG. 1 are mounted on a QM (arithmetic) encoding /
[0053]
Since the code output apparatus of the present invention has a simple configuration, it can be sufficiently installed in a facsimile apparatus that is required to be downsized and cost-reduced, thereby reducing the compression rate without imposing a burden on software. Can be improved. Therefore, it contributes to the improvement of the communication performance of the popular facsimile machine.
[0054]
【The invention's effect】
As described above, according to the present invention, the configuration in which continuous zeros included in the code data are managed in an integrated manner is adopted, and the continuous zeros existing at the end of one stripe without increasing the software load. Can be deleted efficiently, and the compression rate of the image data can be improved.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a main configuration of a communication apparatus according to an embodiment of the present invention. FIG. 2 is a flowchart for explaining main operations of the code output apparatus according to the embodiment. Block diagram showing the hardware configuration of a facsimile machine equipped with the code output device of the invention.
DESCRIPTION OF SYMBOLS 10 Markov
14
Claims (3)
前記符号データ内の連続するゼロをカウントするカウント値を保持するカウント値保持手段と、
出力するデータを蓄積する蓄積手段と、
前記判定手段によって前記符号データの最新のバイトが連続するゼロであると判定された場合、前記カウント値保持手段によって保持されたカウント値をインクリメントするインクリメント手段と、
前記判定手段によって前記符号データの最新のバイトが連続するゼロでないと判定された場合、前記カウント値保持手段に保持されたカウント値の回数繰り返す連続するゼロと前記最新のバイトとを前記蓄積手段に追加すると共に、前記カウント値をリセットするリセット手段と、
前記符号データのストライプ端が検出されると、前記カウント値をリセットし、前記蓄積手段に蓄積されたデータを出力する出力手段と、
を備えたことを特徴とする符号データ出力装置。 Judgment means for sequentially judging whether or not the bytes of code data encoded and inputted by the JBIG (Joint Bi-level Image Coding Experts Group) method are consecutive zeros ( 0x00 );
Count value holding means for holding a count value for counting consecutive zeros in the code data;
Storage means for storing data to be output;
An increment means for incrementing the count value held by the count value holding means when the determination means determines that the latest byte of the code data is consecutive zeros;
When it is determined by the determination means that the latest byte of the code data is not a continuous zero, consecutive zeros and the latest byte repeated for the count value held in the count value holding means are stored in the storage means. And a reset means for resetting the count value,
When the stripe end of the code data is detected, the count value is reset, and output means for outputting the data accumulated in the accumulation means;
Encoded data output apparatus characterized by comprising a.
前記符号データ内の連続するゼロをカウントするゼロカウント値と前記符号データ内の連続するFをカウントするFカウント値とを保持するカウント値保持手段と、
出力するデータを蓄積する蓄積手段と、
前記判定手段によって前記符号データの最新のバイトが連続するゼロであると判定された場合、前記カウント値保持手段によって保持されたゼロカウント値をインクリメントするゼロインクリメント手段と、
前記判定手段によって前記符号データの最新のバイトが連続するFであると判定された場合、前記カウント値保持手段によって保持されたFカウント値をインクリメントするFインクリメント手段と、
前記判定手段によって前記符号データの最新のバイトが連続するゼロでも連続するFでもないと判定された場合、前記カウント値保持手段に保持されたゼロカウント値の回数繰り返す連続するゼロ又はFカウント値の回数繰り返す連続するFと前記最新のバイトとを前記蓄積手段に追加すると共に、前記ゼロカウント値又はFカウント値をリセットするリセット手段と、
前記符号データのストライプ端が検出されると、前記ゼロカウント値をリセットし、前記蓄積手段に蓄積されたデータを出力する出力手段と、
を備え、
前記カウント値保持手段は、桁上げ信号を受信すると、前記Fカウント値が1以上の場合、前記Fカウント値を前記ゼロカウント値にコピーし、前記Fカウント値をリセットすることを特徴とする符号データ出力装置。 Determining means for sequentially determining whether the bytes of the encoded data encoded and input by the JBIG method are continuous zero ( 0x00 ), continuous F ( 0xFF ), or other;
Count value holding means for holding a zero count value for counting consecutive zeros in the code data and an F count value for counting consecutive Fs in the code data;
Storage means for storing data to be output;
A zero increment means for incrementing a zero count value held by the count value holding means when the determination means determines that the latest byte of the code data is a consecutive zero;
An F increment means for incrementing the F count value held by the count value holding means when the determination means determines that the latest byte of the code data is a continuous F;
If it is determined by the determination means that the latest byte of the code data is neither continuous zero nor continuous F, the number of consecutive zeros or F count values repeated for the number of zero count values held in the count value holding means Adding a continuous F repeated the number of times and the latest byte to the storage means, and resetting the zero count value or the F count value;
When the stripe end of the code data is detected, the zero count value is reset, and output means for outputting the data accumulated in the accumulation means,
With
When the carry value signal is received, the count value holding unit copies the F count value to the zero count value and resets the F count value when the F count value is 1 or more. Data output device .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14490399A JP3868148B2 (en) | 1999-05-25 | 1999-05-25 | Code data output device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14490399A JP3868148B2 (en) | 1999-05-25 | 1999-05-25 | Code data output device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000341533A JP2000341533A (en) | 2000-12-08 |
| JP3868148B2 true JP3868148B2 (en) | 2007-01-17 |
Family
ID=15372998
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14490399A Expired - Fee Related JP3868148B2 (en) | 1999-05-25 | 1999-05-25 | Code data output device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3868148B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3467216B2 (en) | 1999-10-12 | 2003-11-17 | シャープ株式会社 | Image decoding device |
-
1999
- 1999-05-25 JP JP14490399A patent/JP3868148B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2000341533A (en) | 2000-12-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3868148B2 (en) | Code data output device | |
| JP3081032B2 (en) | Encoding / decoding method | |
| JP3868149B2 (en) | Decoding method and decoding apparatus | |
| CN100423535C (en) | Method and apparatus for printing an image at a printing speed determined by the number of printing lines | |
| JPS5859665A (en) | Picture and writing transmission device | |
| JP2563297B2 (en) | Fax machine | |
| JP3467216B2 (en) | Image decoding device | |
| JP3391256B2 (en) | Facsimile machine | |
| JP3159811B2 (en) | Demodulator | |
| JP3635862B2 (en) | Communication terminal device | |
| JP4514994B2 (en) | Facsimile multifunction machine | |
| JPS5926691Y2 (en) | Facsimile signal transmission equipment | |
| JPH06164651A (en) | Image data transmitter | |
| KR100228704B1 (en) | Facsimile Coding of Original Data | |
| JP3244793B2 (en) | Data communication device | |
| JP2989716B2 (en) | Facsimile machine | |
| JP2719222B2 (en) | Arithmetic coding device | |
| JP2790755B2 (en) | Facsimile machine | |
| JP2590041B2 (en) | A data transmission device that transmits and receives data to and from each other | |
| JP3282765B2 (en) | Facsimile communication device | |
| JPS59101957A (en) | Facsimile device | |
| JPH0918635A (en) | Communication equipment | |
| JP2003264680A (en) | Data communication device | |
| JPH09312772A (en) | Printer | |
| JPH0556206A (en) | Image communication device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060523 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060711 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060907 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20061003 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061010 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091020 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101020 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111020 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121020 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131020 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |