JPH03231325A - Detecting method for continuous positions of prescribed code bit - Google Patents

Detecting method for continuous positions of prescribed code bit

Info

Publication number
JPH03231325A
JPH03231325A JP2028000A JP2800090A JPH03231325A JP H03231325 A JPH03231325 A JP H03231325A JP 2028000 A JP2028000 A JP 2028000A JP 2800090 A JP2800090 A JP 2800090A JP H03231325 A JPH03231325 A JP H03231325A
Authority
JP
Japan
Prior art keywords
length
word
bit
bits
bit length
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
Application number
JP2028000A
Other languages
Japanese (ja)
Other versions
JP2694569B2 (en
Inventor
Taiji Mitani
三谷 泰司
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2028000A priority Critical patent/JP2694569B2/en
Publication of JPH03231325A publication Critical patent/JPH03231325A/en
Priority to US08/089,605 priority patent/US5343540A/en
Application granted granted Critical
Publication of JP2694569B2 publication Critical patent/JP2694569B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To detect the position of a prescribed code bit on data at high speed by obtaining the data length with addition of the (x) length and the (y) length of the data that receives the accesses for each word. CONSTITUTION:The compressed image data are latched by a latch 11 for each word and outputted to an (x) length detection circuit 12 and a (y) length detection circuit 13 respectively. The (y) length is first detected and sent to a register 15 via a selector 14. Then the subsequent data equivalent to a single word are latched by the latch 11 and the (x) length is detected. The (x) length is added to the (y) length stored in the register 15 via an adder 16, and the (y) length is updated in the register 15 based on the addition value. When a 16-bit deciding circuit 17 decides that the (x) length is smaller than 15 bits, the addition value is sent to a deciding circuit 18 from the register 15. The circuit 18 decides the presence or absence of the head of the data corresponding to a single main scan line. Thus it is possible to detect a position where >=17 pieces of 'O' bits are continuous on the compressed image data.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、多数のワードで構成されるデータ中に存在す
る、所定符号のビットが1ワードを構成するビット長以
上にわたって連続するデータ上の位置を検出する所定符
号ビット連続位置検出方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention is directed to data processing in which bits of a predetermined code exist in data consisting of a large number of words and continue over a length of bits constituting one word. The present invention relates to a method for detecting consecutive positions of predetermined code bits for detecting positions.

(従来の技術) 画像等を表わすディジタルデータは一般に膨大な情報量
を有しており、このディジタルデータをデータ記録装置
に記録蓄積する場合や送受信する場合等に、1枚の画像
の中における近傍画素の画素値間に存在する強い相関を
利用して冗長性を抑圧してデータ量を圧縮するデータ圧
縮が一般的に行われている。このデータ圧縮を行なった
後のデータはそのデータ圧縮処理方法により、例えば画
像を読み取ってディジタルデータを得る際の一本の主走
査線上に並ぶ多数の画素の画素値を表わすディジタルデ
ータを一セットとして各セットの先頭であることを表わ
すために各セットの先頭に1ワ一ド以上にわたる例えば
1′7ビツト以上等所定長連続する°01ビットもしく
は“1“ビ・ソトを挿入することがある。
(Prior Art) Digital data representing images etc. generally has a huge amount of information, and when storing this digital data in a data recording device or transmitting/receiving it, it is necessary to Data compression is generally performed in which redundancy is suppressed by utilizing the strong correlation between pixel values of pixels and the amount of data is compressed. The data after this data compression is converted into a set of digital data representing the pixel values of many pixels lined up on one main scanning line when reading an image to obtain digital data, for example. In order to indicate the beginning of each set, a continuous 01 bit or "1" bit of one word or more, for example, 1'7 bits or more, may be inserted at the beginning of each set.

第4図は、データ圧縮伸長の一連の処理の流れの一例を
表わすブロック図である。
FIG. 4 is a block diagram showing an example of the flow of a series of data compression/expansion processes.

例えば図示しない画像読取装置で得られた、画像を表わ
すディジタルデータS1がデータ圧縮器1に入力される
。データ圧縮器1では、画像を読み取る際の各主走査線
上に並ぶ多数の画素の画素値を表わすディジタルデータ
を一セットとして各セット毎にデータ圧縮が行なわれ、
かつ各セットの先頭に17ビツト連続する“0°ビツト
が挿入され、圧縮画像データS2が生成される。この圧
縮画像データS2は多数の画像を圧縮処理されたディジ
タルデータの形でファイリングしておく画像ファイリン
グ装置2に送られて記憶される。画像ファイリング装置
2に記憶された圧縮画像データS2は必要に応じて読み
出され、ゼロ長検出回路3とデータ伸長器4に入力され
る。ゼロ長検出回路3では圧縮画像データS2中に存在
する、17ビツト以上連続する′0#ビットを検出して
これにより各主走査線に対応する各セットの先頭を求め
、その各先頭の位置をデータ伸長器4に知らせる。デー
タ伸長器4では、画像ファイリング装置2から入力され
た圧縮画像データS2とゼロ長検出回路3から入力され
た各セットの先頭の位置を表わす情報とに基づいて該圧
縮画像データS2を伸長し、もとのディジタルデータS
1と路間等(非可逆圧縮の場合は完全にはもとには戻ら
ない)の伸長された画像データS3が求められ、例えば
図示しないCRTデイスプレィ装置に送られ、画像デー
タS−3に基づく可視画像が表示される。
For example, digital data S1 representing an image obtained by an image reading device (not shown) is input to a data compressor 1. In the data compressor 1, data compression is performed for each set of digital data representing the pixel values of a large number of pixels lined up on each main scanning line when reading an image.
Then, 17 consecutive "0° bits" are inserted at the beginning of each set, and compressed image data S2 is generated. This compressed image data S2 is made by filing a large number of images in the form of compressed digital data. The compressed image data S2 stored in the image filing device 2 is sent to and stored in the image filing device 2. The compressed image data S2 stored in the image filing device 2 is read out as necessary and input to the zero length detection circuit 3 and the data expander 4. The detection circuit 3 detects 17 or more consecutive '0# bits existing in the compressed image data S2, determines the beginning of each set corresponding to each main scanning line, and decompresses the position of each beginning. The data decompressor 4 converts the compressed image data based on the compressed image data S2 inputted from the image filing device 2 and the information representing the start position of each set inputted from the zero length detection circuit 3. Decompress S2 and restore the original digital data S
1 and the decompressed image data S3 (in the case of irreversible compression, it will not completely return to its original state) is obtained, and is sent to, for example, a CRT display device (not shown), and is processed based on the image data S-3. A visible image is displayed.

上記はデータ圧縮・伸長の例であるか、データ圧縮・伸
長とは無関係に、例えばディジタルデータを送受信する
場合等にも一群のディジタルデータの先頭に先頭である
ことを表わす所定長連続する“0”ビット等を挿入する
場合もある。
The above is an example of data compression/expansion, or regardless of data compression/expansion, for example, when transmitting/receiving digital data, a predetermined length of continuous "0" is placed at the beginning of a group of digital data to indicate the beginning. ``In some cases, bits etc. are inserted.

上記データ圧縮・伸長処理を行なう場合やディジタルデ
ータを送受信する場合等に、例えば上記ゼロ長検出回路
等により“0°ビツト等が所定長以上連続しているか否
かを検出する必要がある。
When performing the data compression/expansion processing or transmitting/receiving digital data, it is necessary to detect whether "0° bits, etc. are continuous for a predetermined length or longer, for example, by the zero length detection circuit or the like.

第5図は、“0″ビツトが所定長以上連続しているか否
かを検出するための従来のゼロ長検出回路の一例を表わ
した回路図である。
FIG. 5 is a circuit diagram showing an example of a conventional zero length detection circuit for detecting whether or not "0" bits continue for a predetermined length or longer.

シフトレジスタ5は、パラレル人力/シリアル出力の1
6ビツトのシフトレジスタであって、例えば第4図に示
す圧縮画像データ82等多数のワード(この例では、1
ワード〜16ビツトととする。)からなるディジタルデ
ータS4が1ワ一ド単位で該シフトレジスタ5に順次入
力される。シフトレジスタ5に1ワード入力される毎に
クロック信号CLが16パルス入力され、これによりシ
フトレジスタ5のデータがシフトレジスタ6にシリアル
に送られる。シフトレジスタ6はシリアル人力/パラレ
ル出力の、“O°ビットが幾つ以上連続する場合を検出
するかに応じたビット長のシフトレジスタであり、該シ
フトレジスタ6の全部のビットが“0°となったときに
該シフトレジスタ6のパラレル出力端子に接続されたゲ
ート回路7から図に示すようなパルス信号が出力され、
これにより“0″ ビットが所定長以上連続しているこ
とが検出される。
Shift register 5 has parallel manual output/serial output 1
It is a 6-bit shift register that stores a large number of words (in this example, 1
It is assumed that the word is ~16 bits. ) is sequentially input to the shift register 5 in units of one word. Every time one word is input to the shift register 5, 16 pulses of the clock signal CL are input, whereby the data in the shift register 5 is serially sent to the shift register 6. The shift register 6 is a serial manual/parallel output shift register with a bit length depending on how many consecutive "O° bits" are detected, and all bits of the shift register 6 become "0°". When this occurs, a pulse signal as shown in the figure is output from the gate circuit 7 connected to the parallel output terminal of the shift register 6.
This detects that "0" bits are continuous for a predetermined length or longer.

(発明が解決しようとする課題) 上記従来のゼロ長検出回路は、−旦1ワード単位でパラ
レルに入力された信号をシリアル信号に変換しているた
めゼロ長の検出に時間がかかり、このゼロ長検出の時間
がその後の例えばデータ伸長処理等を含む一連の処理の
高速化の妨げとなる場合があった。
(Problem to be Solved by the Invention) The conventional zero length detection circuit described above converts a parallel input signal into a serial signal in units of one word, so it takes time to detect the zero length. In some cases, the time taken to detect the length becomes an impediment to speeding up a series of subsequent processes, including, for example, data decompression processing.

本発明は、上記事情に鑑み、多数のワードで構成される
データ中に存在する、所定符号(“0”もしくは“1°
)のビットが連続するデータ上の位置を高速に検出する
ことのできる回路を構成することのできる所定符号ビッ
ト連続位置検出方法を提供することを目的とするもので
ある。
In view of the above circumstances, the present invention provides a predetermined code (“0” or “1°” that exists in data consisting of a large number of words).
) It is an object of the present invention to provide a method for detecting the consecutive positions of predetermined code bits by which a circuit can be constructed that can rapidly detect the positions of consecutive bits in data.

(課題を解決するための手段) 本発明の第一の所定符号ビット連続位置検出方法は、 多数のワードで構成されるデータ中に存在する、所定符
号のビットが1ワードを構成するビット長以上にわたっ
て連続するデータ上の位置を検出する所定符号ビット連
続位置検出方法において、前記多数のワード中の第一の
ワードの最下位ビットから最上位ビットに向かって前記
所定符号のビットが連続する第一のビット長を求め、前
記第一のワードの下位側に続く第二のワードの最上位ビ
ットから最下位ビットに向かって前記所定符号のビット
が連続する第二のビット長を求め、該第二のビット長を
前記第一のビット長に加算して加算ビット長を求め、こ
の加算ビット長を1ワードを構成するビット長と比較す
ることにより所定符号のビットが1ワードを構成するビ
ット長以上にわたって連続するデータ上の位置を検出す
ることを特徴とするものである。
(Means for Solving the Problems) The first method of detecting consecutive positions of predetermined code bits of the present invention is such that the bit length of the predetermined code bits present in data consisting of a large number of words is equal to or longer than the bit length constituting one word. In the predetermined code bit consecutive position detection method for detecting consecutive positions in data that are consecutive over a period of time, the predetermined code bit bits are successive from the least significant bit to the most significant bit of a first word among the plurality of words. Find the bit length of the second word following the lower order side of the first word, find the second bit length in which the bits of the predetermined code are continuous from the most significant bit to the least significant bit, and The bit length of the predetermined code is added to the first bit length to obtain the added bit length, and this added bit length is compared with the bit length that makes up one word. It is characterized by detecting positions on continuous data over a period of time.

また、本発明の第二の所定符号ビット連続位置検出方法
は、 多数のワードで構成されるデータ中に存在する、所定符
号のビットが1、ワードを構成するビット長を越える所
定長連続するデータ上の位置を検出する所定符号ビット
連続位置検出方法において、前記多数のワード中の第一
のワードの最下位ビットから最上位ビットに向かって前
記所定符号のビットが連続する第一のビット長を求め、
前記第一のワードの下位側に続く第二のワードの最上位
ビットから最下位ビットに向かって前記所定符号のビッ
トが連続する第二のビット長を求め、該第二のビット長
を前記第一のビット長に加算して加算ビット長を求める
とともに該第二のビット長が1ワードを構成するビット
長と同一であるか該ビット長よりも小さい数であるかを
判定し、該第二のビット長が1ワードを構成するビット
長よりも小さい数である場合には前記加算ビット長を前
記所定長と比較することにより所定符号のビットが前記
所定長連続するデータ上の位置を検出し、 該第二のビット長が1ワードを構成するビット長と同一
である場合には前記第二のワードの下位側に続く第三の
ワードを前記第二のワードに代え新たな第二のワードと
して該新たな第二のワードの最上位ビットから最下位ビ
ットに向かって前記所定符号のビットが連続する新たな
第二のビット長を求め、該新たな第二のビット長を前記
加算ビット長に加算して新たな加算ビット長を求めると
ともに必要に応じて前記判定から前記新たな加算ビット
長を求める手順を繰り返し、これにより最終的に求めら
れた加算ビット長を前記所定長と比較することにより所
定符号のビットが前記所定長連続するデータ上の位置を
検出することを特徴とするものである。
Further, the second method of detecting the continuous position of predetermined code bits of the present invention includes data in which the bit of the predetermined code is 1 and which is continuous for a predetermined length exceeding the bit length constituting the word, which exists in data consisting of a large number of words. In the predetermined code bit consecutive position detection method for detecting the upper position of the predetermined code bit, a first bit length in which bits of the predetermined code are consecutive from the least significant bit to the most significant bit of the first word among the plurality of words is determined. seek,
A second bit length in which the bits of the predetermined code are continuous from the most significant bit to the least significant bit of a second word following the lower order side of the first word is determined, and the second bit length is calculated from the second word. The second bit length is added to the first bit length to obtain the additional bit length, and it is determined whether the second bit length is the same as the bit length constituting one word or is a smaller number than the bit length, and the second bit length is determined. If the bit length is smaller than the bit length constituting one word, the added bit length is compared with the predetermined length to detect the position in the data where the bit of the predetermined code continues for the predetermined length. , If the second bit length is the same as the bit length constituting one word, replace the third word following the lower order side of the second word with the second word and create a new second word. Find a new second bit length in which the bits of the predetermined code are continuous from the most significant bit to the least significant bit of the new second word, and set the new second bit length to the addition bit length. to obtain a new addition bit length, and if necessary, repeat the procedure of obtaining the new addition bit length from the determination, and then compare the finally obtained addition bit length with the predetermined length. The present invention is characterized in that the position on the data where the bits of a predetermined code are continuous for the predetermined length is detected.

ここで、上記「ワード」は、特定のビット長のものに限
られるものではなく、例えば4ビツト。
Here, the above-mentioned "word" is not limited to a specific bit length, for example, 4 bits.

8ビツト、16ビツト、32ビツト等一連のディジタル
データの処理単位をいう。
A processing unit of a series of digital data such as 8 bits, 16 bits, 32 bits, etc.

また、上記「必要に応じて」とは、1ワードを構成する
ビット長と検出すべき前記所定長との関係で定まり、例
えば、1ワードを構成するビット長が16であって検出
すべき前記所定長が17の場合は、前記第三のワードの
下位側に続く第四のワードについて上記「前記判定から
前記新たな加算ビット長を求める手順を繰り返」す必要
はなく、1ワードを構成するビット長が8であって検出
すべき前記所定長が17の場合は、前記第三のワードの
下位側に続く第四のワードについて上記「前記判定から
前記新たな加算ビット長を求める手順を繰り返」す必要
が有り、1ワードを構成するビット長が8であって検出
すべき前記所定長が25の場合は、前記第三のワードの
下位側に続く第四のワードとさらに該第四のワードの下
位側に続く第五のワードとについて上記「前記判定から
前記新たな加算ビット長を求める手順を繰り返」す必要
が有ることをいう。尚、上記「前記判定から前記新たな
加算ビット長を求める手順を繰り返」す必要がなくても
繰り返してもよい場合もあることはもちろんであり、必
要以上に繰り返す場合も本発明に包含されるものである
ことはもちろんである。
Moreover, the above-mentioned "as necessary" is determined by the relationship between the bit length constituting one word and the predetermined length to be detected. For example, if the bit length constituting one word is 16 and the predetermined length to be detected is If the predetermined length is 17, there is no need to "repeat the procedure for determining the new addition bit length from the determination" for the fourth word following the lower order side of the third word, and the fourth word forms one word. If the bit length to be detected is 8 and the predetermined length to be detected is 17, perform the above-mentioned procedure for determining the new addition bit length from the determination for the fourth word following the lower order of the third word. If the bit length constituting one word is 8 and the predetermined length to be detected is 25, the fourth word following the lower order side of the third word and the fourth word This means that it is necessary to "repeat the procedure for determining the new addition bit length from the determination" for the fifth word following the lower order side of the fourth word. It should be noted that there may be cases where it is not necessary to repeat the above-mentioned procedure for determining the new addition bit length from the determination, and the present invention does not include cases where the procedure is repeated more than necessary. Of course, it is something that

(作用) 本発明の第一および第二の所定符号ビット連続位置検出
方法は、上記の各ステップに従って、データを1ワ一ド
単位でアクセスし、上記第一および第二のビット長を求
め、これらを加算して加算ビット長を求めるようにした
ものであり、全てパラレルデータとして取り扱うことが
でき、しかも少ないステップ数でしたがって高速で所定
符号のビットが所定長連続するデ、−夕上の位置を検出
することができる。
(Operation) The first and second predetermined code bit consecutive position detection methods of the present invention access data in units of one word according to each of the steps described above, and obtain the first and second bit lengths, These are added to find the addition bit length, and all can be treated as parallel data, and the number of steps is small and the bits of a predetermined code continue for a predetermined length at a high speed. can be detected.

(実施例) 以下、本発明の実施例について説明する。(Example) Examples of the present invention will be described below.

第1図は、本発明の所定符号ビット連続位置検出方法の
一例を用いたゼロ長検出回路の一例を表わしたブロック
図、 第2図は、多数のワードで構成されるデータ中の1ワー
ドの一例を表わした図、 第3図は、第1図に示したゼロ長検出回路の回路動作を
表わしたフローチャートである。
FIG. 1 is a block diagram showing an example of a zero length detection circuit using an example of the predetermined code bit consecutive position detection method of the present invention. FIG. FIG. 3, a diagram showing an example, is a flowchart showing the circuit operation of the zero length detection circuit shown in FIG.

この実施例では;前述した。圧縮画像データ、即ち各主
走査線に対応する各−群のディジタルデータの先頭に0
”ビットが所定長(ここでは17ビツトとする。)連続
しており、この各ディジタルデータの先頭を求めるもの
とする。また該圧縮画像データは、第2図に示すように
、1ワードが最下位ビット(L S B O)から最上
位ビット(MSB15)までの16ビツトで構成された
データであるものとする。ここで以下簡単のため、各ワ
ードの最上位ビット(MS 8.15)から最下位ビッ
ト(LSBO)に向かって“0”ビットが連続するビッ
ト長(第二のビット長)をX長、各ワードの最下位ビッ
ト(L S B O)から最上位ビット(MS B 1
5)に向かって“0”ビットが連続するビット長(第一
のビット長)をy長と称する。
In this embodiment; as described above. 0 at the beginning of compressed image data, that is, digital data of each group corresponding to each main scanning line.
"The bits are consecutive for a predetermined length (17 bits here), and the beginning of each digital data is to be found. Also, as shown in FIG. It is assumed that the data consists of 16 bits from the lower bit (LSBO) to the most significant bit (MSB15).Here, for the sake of simplicity, the data consists of 16 bits from the most significant bit (MS8.15) of each word. The bit length (second bit length) in which "0" bits continue toward the least significant bit (LSBO) is X length, and the length from the least significant bit (LSBO) to the most significant bit (MS B 1) of each word is
The bit length (first bit length) in which "0" bits continue toward 5) is called the y length.

上記圧縮画像データが1ワードずつラッチ回路11に入
力されラッチされる(ステップA)。ここではこのステ
ップAでラッチ回路11にラッチされた1ワ一ド分のデ
ータを第一のワードと称する。ラッチ回路11にラッチ
された第一のワードはX長検出回路12とy炎検出回路
13とに入力されるが、まずy炎検出回路13において
y長の検出が行われ(ステップB)、この検出されたy
長がセレクタ14を経由してレジスタ15に入力される
(ステップC)。なおセレクタ14は、y長をレジスタ
15に入力するタイミングではy炎検出回路13とレジ
スタ15とが接続され、後述する加算回路16における
加算結果をレジスタ15に入力するタイミングでは加算
回路16とレジスタ15とが接続されるように回路を切
り替えるものである。
The compressed image data is input word by word to the latch circuit 11 and latched (step A). Here, one word of data latched by the latch circuit 11 in step A will be referred to as a first word. The first word latched by the latch circuit 11 is input to the X-length detection circuit 12 and the y-flame detection circuit 13. First, the y-length is detected in the y-flame detection circuit 13 (step B). detected y
The length is input to the register 15 via the selector 14 (step C). Note that the selector 14 connects the y-flame detection circuit 13 and the register 15 at the timing when inputting the y length to the register 15, and connects the adder circuit 16 and the register 15 at the timing when inputting the addition result in the adder circuit 16, which will be described later, to the register 15. The circuit is switched so that the two are connected.

次に上記第一のワードの下位側に続く1ワ一ド分のデー
タ(これを第二のワードと称する。)がラッチ回路11
に入力されラッチされる(ステ・ノブD)。ラッチ回路
11にラッチされた第二のワードは上記第一のワードの
ときと同様にX炎検出回路12とy炎検出回路13とに
入力されるが、今度はX炎検出回路12においてX長の
検出が行われ(ステップE)、この検出されたX長は加
算回路16に入力される。また該加算回路16にはレジ
スタ15に記憶されている第一のワードのy長も入力さ
れ、これら第一のワードのy長と第二のワードのX長と
が加算され、この加算値はレジスタ15に入力され、そ
れまでレジスタ15に記憶されていた第一のワードのy
長に代えて該レジスタ15に記憶される(ステップF)
。また、X炎検出回路12で求められたX長は16ビツ
ト判定回路17にも人力され、このX長が1ワードを構
成するビット長(16ビツト)であるかもしくは15ビ
ツト以下であるかが判定される(ステップG)。16ビ
ツト判定回路17は、この判定結果に応じて、以下に示
す回路動作が実行されるように、X炎検出回路12.y
炎検出回路13.セレクタ14.および後述する判定回
路18等を制御する。
Next, one word of data following the lower order side of the first word (this is referred to as a second word) is sent to the latch circuit 11.
is input and latched (steer knob D). The second word latched by the latch circuit 11 is input to the X flame detection circuit 12 and the y flame detection circuit 13 in the same way as the first word, but this time the X flame detection circuit 12 inputs the is detected (step E), and the detected X length is input to the adder circuit 16. The y-length of the first word stored in the register 15 is also input to the adder circuit 16, and the y-length of the first word and the X-length of the second word are added, and this added value is y of the first word input into register 15 and previously stored in register 15
stored in the register 15 instead of the length (step F)
. In addition, the X length determined by the X flame detection circuit 12 is also manually input to the 16-bit determination circuit 17, which determines whether this X length is the bit length (16 bits) constituting one word or is less than or equal to 15 bits. A determination is made (step G). The 16-bit determination circuit 17 controls the X-flame detection circuit 12 . y
Flame detection circuit 13. Selector 14. It also controls a determination circuit 18, which will be described later.

15ビツト判定回路17てこのX長が15ビツト以下で
あると判定された場合には、レジスタ15に記憶された
加算値が判定回路18に人力され、この加算値が17ビ
ツト以上であるか否か、即ちここが1本の主走査線に対
応するディジタルデータの先頭であるか否かが判定され
る(ステップH)。
15-bit judgment circuit 17 When it is judged that the X length of the lever is 15 bits or less, the added value stored in the register 15 is input to the judgment circuit 18, and it is checked whether this added value is 17 bits or more. In other words, it is determined whether this is the beginning of the digital data corresponding to one main scanning line (step H).

尚、各ディジタルデータの先頭に1ワードを構成するビ
ット長(16ビツト)の′0″ビットが挿入されている
場合は、上記ステップGにおけるX長が1ワードを構成
するビット長(16ビツト)であるかもしくは15ビツ
ト以下であるかの判定は不要であり、ステップHにおい
てここが1本の主走査線に対応するディジタルデータの
先頭であるか否か(上記加算値が16ビツト以上である
か否か)が判定される。
Note that if a '0'' bit with a bit length (16 bits) constituting one word is inserted at the beginning of each digital data, the X length in step G above is the bit length (16 bits) constituting one word. There is no need to judge whether this is the beginning of the digital data corresponding to one main scanning line (if the above added value is 16 bits or more) ) is determined.

1本の主走査線に対応するディジタルデータの先頭であ
ると判定された場合、この一連の処理は終了する。尚、
引き続き次の主走査線に対応するディジタルデータの先
頭を求めるようにしてもよい。
If it is determined that this is the beginning of the digital data corresponding to one main scanning line, this series of processing ends. still,
The beginning of the digital data corresponding to the next main scanning line may be subsequently determined.

判定回路18においてレジスタ15に記憶された加算値
が16ビツト以下、即ち1本の主走査線に対応するディ
ジタルデータの先頭ではないと判定された場合は、ラッ
チ回路11にラッチされている第二のデータを新たな第
一のデータとして該新たな第一のデータのy長が求めら
れ(ステップB)、以下同様の処理が行われる。
If the determination circuit 18 determines that the added value stored in the register 15 is 16 bits or less, that is, it is not the beginning of the digital data corresponding to one main scanning line, the second value latched in the latch circuit 11 is The y-length of the new first data is determined using the data as new first data (step B), and similar processing is performed thereafter.

また16ビツト判定回路17で第二のワードのX長が1
6ビツトであると判定された場合には、ラッチ回路11
にラッチされている第二のワードの下位側に続く第三の
ワードにも“0”ビットが続いている可能性があるため
、該第三のワードを新たな第二のワードとして該新たな
第二のワードについて前述したステップD−Gの処理が
繰り返される。ここでは“0”ビットが17連続してい
るデータ上の位置を求めているため、ステップGにおけ
る上記新たな第二のワードのX長がさらに16であるか
否かの判定は不要ではあるが、本実施例ではこの判定を
行なっている。上記新たな第二のワードのX長がさらに
16であった場合の該新たな第二のワードの下位側に続
くワードについても同様である。
In addition, the 16-bit determination circuit 17 determines that the X length of the second word is 1.
If it is determined that the bit is 6 bits, the latch circuit 11
Since there is a possibility that the third word following the lower-order side of the second word latched in is also a “0” bit, the third word is treated as a new second word and the new word is The processing of steps DG described above is repeated for the second word. Since we are looking for the position in the data where 17 consecutive "0" bits are present, it is not necessary to determine whether the X length of the new second word in step G is 16. , this determination is made in this embodiment. The same holds true for the words following the new second word when the X length of the new second word is further 16.

以上のようにして、上記実施例では、圧縮画像データ上
の“0“ビットが17以上連続している位置を検出する
ことにより、1本の主走査線に対応するディジタルデー
タの先頭が高速に求められる。
As described above, in the above embodiment, by detecting the position where 17 or more consecutive "0" bits are present on the compressed image data, the beginning of the digital data corresponding to one main scanning line can be moved at high speed. Desired.

上記実施例では“0”ビットが17ビツト以上連続する
位置を求めているが、本発明では符号が“1″のビット
が連続する位置を求めることもでき、また何ビット連続
している位置を求めるかについても、1ワードを構成す
るビット長以上であれば任意に定めることができる。
In the above embodiment, the position where there are 17 or more consecutive "0" bits is found, but in the present invention, the position where there are consecutive bits with the sign "1" can also be found, and the number of consecutive bits can also be determined. The length to be determined can also be arbitrarily determined as long as it is longer than the bit length constituting one word.

(発明の効果) 以上詳細に説明したように、本発明の所定符号ビット連
続位置検出方法は、1ワ一ド単位で順次アクセスされる
データのX長とy長とを前述した所定のタイミングで求
めこれらを加算して加算データ長を求めることを基本と
しており、全てパラレルデータとして取り扱うことがで
き、高速で所定符号のピッ′トが所定長連続するデータ
上の位置を検出することができる。
(Effects of the Invention) As explained above in detail, the method for detecting consecutive positions of predetermined code bits of the present invention allows the X length and y length of data to be sequentially accessed in units of one word to be detected at the predetermined timing described above. The basic method is to obtain the added data length by adding them together, and all data can be treated as parallel data, and the position in the data where pits of a predetermined code continue for a predetermined length can be detected at high speed.

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

第1図は、本発明の所定符号ビット連続位置検出方法の
一例を用いたゼロ長検出回路の一例を表わしたブロック
図、 第2図は、多数のワードで構成されるデータ中の1ワー
ドの一例を表わした図、 第3図は、第1図に示したゼロ長検出回路の回路動作を
表わしたフローチャート、 第4図は、データ圧縮伸長の一連の処理の流れの一例を
表わすブロック図、 第5図は、“0°ビツトが所定長以上連続しているか否
かを検出するための従来のゼロ長検出回路の一例を表わ
した回路図である。 11・・・ラッチ回路   12・・、X炎検出回路1
3・・・y長検出回路  14・・・セレクタ15・・
・レジスタ    16・・・加算回路17・・・16
ビツト判定回路 18・・・判定回路
FIG. 1 is a block diagram showing an example of a zero length detection circuit using an example of the predetermined code bit consecutive position detection method of the present invention. FIG. FIG. 3 is a flowchart showing the circuit operation of the zero length detection circuit shown in FIG. 1; FIG. 4 is a block diagram showing an example of the flow of a series of data compression/expansion processes; FIG. 5 is a circuit diagram showing an example of a conventional zero length detection circuit for detecting whether 0° bits are continuous for a predetermined length or longer. 11... Latch circuit 12... X flame detection circuit 1
3...y length detection circuit 14...selector 15...
・Register 16...Addition circuit 17...16
Bit judgment circuit 18... judgment circuit

Claims (2)

【特許請求の範囲】[Claims] (1)多数のワードで構成されるデータ中に存在する、
所定符号のビットが1ワードを構成するビット長以上に
わたって連続するデータ上の位置を検出する所定符号ビ
ット連続位置検出方法において、前記多数のワード中の
第一のワードの最下位ビットから最上位ビットに向かっ
て前記所定符号のビットが連続する第一のビット長を求
め、前記第一のワードの下位側に続く第二のワードの最
上位ビットから最下位ビットに向かって前記所定符号の
ビットが連続する第二のビット長を求め、該第二のビッ
ト長を前記第一のビット長に加算して加算ビット長を求
め、この加算ビット長を1ワードを構成するビット長と
比較することにより所定符号のビットが1ワードを構成
するビット長以上にわたって連続するデータ上の位置を
検出することを特徴とする所定符号ビット連続位置検出
方法。
(1) Exists in data consisting of many words,
In a predetermined code bit consecutive position detection method for detecting a position in data where bits of a predetermined code are continuous over a length of bits constituting one word or more, the least significant bit to the most significant bit of a first word among the plurality of words A first bit length in which the bits of the predetermined code are consecutive is determined, and the bit length of the predetermined code is determined from the most significant bit to the least significant bit of the second word following the lower order side of the first word. By determining a continuous second bit length, adding the second bit length to the first bit length to determine an additional bit length, and comparing this additional bit length with the bit length constituting one word. 1. A method for detecting continuous positions of predetermined code bits, characterized by detecting positions in data where bits of the predetermined code are continuous over a length of bits constituting one word or more.
(2)多数のワードで構成されるデータ中に存在する、
所定符号のビットが1ワードを構成するビット長を越え
る所定長連続するデータ上の位置を検出する所定符号ビ
ット連続位置検出方法において、前記多数のワード中の
第一のワードの最下位ビットから最上位ビットに向かっ
て前記所定符号のビットが連続する第一のビット長を求
め、前記第一のワードの下位側に続く第二のワードの最
上位ビットから最下位ビットに向かって前記所定符号の
ビットが連続する第二のビット長を求め、該第二のビッ
ト長を前記第一のビット長に加算して加算ビット長を求
めるとともに該第二のビット長が1ワードを構成するビ
ット長と同一であるか該ビット長よりも小さい数である
かを判定し、 該第二のビット長が1ワードを構成するビット長よりも
小さい数である場合には前記加算ビット長を前記所定長
と比較することにより所定符号のビットが前記所定長連
続するデータ上の位置を検出し、 該第二のビット長が1ワードを構成するビット長と同一
である場合には前記第二のワードの下位側に続く第三の
ワードを前記第二のワードに代え新たな第二のワードと
して該新たな第二のワードの最上位ビットから最下位ビ
ットに向かって前記所定符号のビットが連続する新たな
第二のビット長を求め、該新たな第二のビット長を前記
加算ビット長に加算して新たな加算ビット長を求めると
ともに必要に応じて前記判定から前記新たな加算ビット
長を求める手順を繰り返し、これにより最終的に求めら
れた加算ビット長を前記所定長と比較することにより所
定符号のビットが前記所定長連続するデータ上の位置を
検出することを特徴とする所定符号ビット連続位置検出
方法。
(2) Exists in data consisting of many words,
In a predetermined code bit consecutive position detection method for detecting a position in data in which the predetermined code bits exceed a bit length constituting one word, the predetermined code bit consecutive position detection method includes Find a first bit length in which the bits of the predetermined code are continuous toward the upper bits, and calculate the length of the predetermined code from the most significant bit to the least significant bit of the second word following the lower order side of the first word. Determine a second bit length in which consecutive bits are continuous, add the second bit length to the first bit length to determine the added bit length, and determine that the second bit length is the bit length constituting one word. Determine whether the second bit length is the same or smaller than the bit length, and if the second bit length is a smaller number than the bit length constituting one word, set the addition bit length to the predetermined length. By comparing the bits of a predetermined code, the position in the data where the bits are continuous for the predetermined length is detected, and if the second bit length is the same as the bit length constituting one word, the lower order of the second word is detected. A new second word in which the bits of the predetermined sign are continuous from the most significant bit to the least significant bit of the new second word by replacing the third word following the second word with the second word. A step of calculating a second bit length, adding the new second bit length to the addition bit length to obtain a new addition bit length, and calculating the new addition bit length from the determination as necessary. Predetermined code bit consecutive position detection characterized in that the position in the data where the bits of the predetermined code are continuous for the predetermined length is detected by repeatedly comparing the finally obtained addition bit length with the predetermined length. Method.
JP2028000A 1990-02-07 1990-02-07 Predetermined code bit continuous position detection method Expired - Fee Related JP2694569B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2028000A JP2694569B2 (en) 1990-02-07 1990-02-07 Predetermined code bit continuous position detection method
US08/089,605 US5343540A (en) 1990-02-07 1993-07-12 Method for detecting positions of consecutive bits set to predetermined codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2028000A JP2694569B2 (en) 1990-02-07 1990-02-07 Predetermined code bit continuous position detection method

Publications (2)

Publication Number Publication Date
JPH03231325A true JPH03231325A (en) 1991-10-15
JP2694569B2 JP2694569B2 (en) 1997-12-24

Family

ID=12236544

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2028000A Expired - Fee Related JP2694569B2 (en) 1990-02-07 1990-02-07 Predetermined code bit continuous position detection method

Country Status (1)

Country Link
JP (1) JP2694569B2 (en)

Also Published As

Publication number Publication date
JP2694569B2 (en) 1997-12-24

Similar Documents

Publication Publication Date Title
JP2575595B2 (en) Image frame compression method and data processing system
JPH011074A (en) Image processing device
JPH03231325A (en) Detecting method for continuous positions of prescribed code bit
JP4323663B2 (en) Image filter circuit and image filtering method
JP3261208B2 (en) Picture information prediction encoding and decoding apparatus
JP3314443B2 (en) Character output device
JPH1063773A (en) Recognition result editing method, pattern recognition system, and information recording medium
JP2995984B2 (en) 3D waveform display device
JP3111958B2 (en) Encoding apparatus and encoding method using pattern encoding
JPH1013842A (en) Markov model image coder
JP3016673B2 (en) Image processing area setting device
JPH0549017A (en) Moving vector detection circuit
JP4268706B2 (en) Image creation method
JP3157750B2 (en) Triplet circuit and triplet processing method
JPH07336696A (en) Compressing system and expanding system for two-dimensional image data
JPS6252683A (en) Monitor device
JP3080937B2 (en) JBIG encoding method and recording medium recording JBIG program
JPH0714205B2 (en) Sequential reproduction vector quantization encoding / decoding device
JPH11187424A (en) Detector and detection method for motion vector detector and motion vector detection method
JP2541103B2 (en) Image signal compression device
JP3212393B2 (en) Encoding device
JPH02193476A (en) Image recording and reproducing device
JP3087488B2 (en) Data restoration circuit
JPH08204580A (en) Variable-length decoding method and its device
GB2327827A (en) Motion vector detection image processing apparatus

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees