JPH09116761A - Jbig code decoder - Google Patents

Jbig code decoder

Info

Publication number
JPH09116761A
JPH09116761A JP26845195A JP26845195A JPH09116761A JP H09116761 A JPH09116761 A JP H09116761A JP 26845195 A JP26845195 A JP 26845195A JP 26845195 A JP26845195 A JP 26845195A JP H09116761 A JPH09116761 A JP H09116761A
Authority
JP
Japan
Prior art keywords
pixel
shift register
line
adaptive
address
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.)
Pending
Application number
JP26845195A
Other languages
Japanese (ja)
Inventor
Yoshiro Eto
義郎 江藤
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.)
TEC CORP
Original Assignee
TEC CORP
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 TEC CORP filed Critical TEC CORP
Priority to JP26845195A priority Critical patent/JPH09116761A/en
Publication of JPH09116761A publication Critical patent/JPH09116761A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make the configuration small and to realize high speed processing. SOLUTION: A valve of an address counter 13 is fed to an adder 14, in which an adaptive picture element selection signal value is subtracted from the valve of the address counter 13. A 1st changeover switch 15 is operated in a 1 picture element shift period, a value of a counter and a value of the adder are alternately outputted as an address to, e.g. a line memory 12. Then image data whose address is designated by a counter is shifted by one picture element each in a shift register group 21 from the line memory 12 based on a shift clock, and image data whose address is designated by the adder is shifted by one picture element each in the shift register group 22 from the line memory 12 based on a signal the inverse of the shift clock. An arithmetic coding decoding circuit 25 applies 2-line template processing to picture elements from the shift register groups 19, 21 and the arithmetic coding decoding circuit 25 conducts coding decoding processing by using the picture element from the shift register group 22 as an adaptive picture element.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、2値化した画像デ
ータをJBIG符号復号化方式で符号復号化するJBI
G符号復号装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a JBI for decoding binarized image data by the JBIG code decoding system.
The present invention relates to a G code decoding device.

【0002】[0002]

【従来の技術】JBIG(Joint Bi-level Image Grou
p)符号化方式は、2値画情報の符号化方式であり、プ
ログレッシブ伝送とシーケンシャル伝送との両立機能、
MMR(Modified MR )方式よりも高い符号化効率、広
範囲な種類の画像に対し高い符号化効率を有するといっ
た特徴を持つ。JBIGで検討された2値画情報の予測
符号復号化方式では、コンテクストと呼ばれる複数の参
照画素のパターンから符号化しようとする画素の色を予
測する。JBIGのコンテクストは、2ラインテンプレ
ートと、3ラインテンプレートがある。
2. Description of the Related Art JBIG (Joint Bi-level Image Grou)
p) The encoding method is an encoding method of binary image information, and has a compatibility function of progressive transmission and sequential transmission,
It has the features of higher coding efficiency than the MMR (Modified MR) method and high coding efficiency for a wide variety of images. In the predictive coding / decoding method of binary image information studied by JBIG, the color of a pixel to be coded is predicted from a pattern of a plurality of reference pixels called a context. The JBIG context has a 2-line template and a 3-line template.

【0003】また、JBIG符号復号化方式では符号復
号化の際に、アダプティブ画素移動というモードがあ
り、これによって疑似中間調画像データのように周期性
を持った画像の符号化効率を有利にしている。勧告書に
よれば80%程度の効果があると記述している。また、
勧告書によればアダプティブ画素(以下、AT画素と称
する。)の移動範囲は符号復号化する画素の前、最大1
27画素目まで可能となっている。図3は、JBIG符
号化方式で使用する2ラインテンプレートでのAT画素
の移動範囲を示している。この図において、?は符号復
号化する画素を示し、Xは参照すべき通常の画素を示
し、Aは参照すべき特別の画素を示している。画素Xと
Aは2ラインテンプレートを構成している。また、Aは
AT画素と呼ばれ圧縮率の向上を目的とした、位置の移
動が許されている特別の画素である。
Further, in the JBIG code decoding system, there is a mode called adaptive pixel movement at the time of code decoding, which makes coding efficiency of an image having periodicity such as pseudo halftone image data advantageous. There is. According to the recommendation, it has an effect of about 80%. Also,
According to the recommendation, the moving range of adaptive pixels (hereinafter referred to as AT pixels) is 1 at maximum before the pixel to be coded and decoded.
Up to the 27th pixel is possible. FIG. 3 shows the moving range of AT pixels in the 2-line template used in the JBIG encoding method. In this figure? Indicates a pixel to be coded, X indicates a normal pixel to be referred to, and A indicates a special pixel to be referred to. Pixels X and A form a 2-line template. In addition, A is a special pixel called an AT pixel whose position is allowed to move for the purpose of improving the compression rate.

【0004】AはAT画素の標準の位置であるが、オプ
ションにより符号復号化する画素?の前127画素まで
に配置することができる。
A is the standard position of the AT pixel, but is it a pixel to be encoded / decoded optionally? Up to 127 pixels before can be arranged.

【0005】このようなことから、従来のJBIG符号
復号装置は図4に示す構成であった。すなわち、画像デ
ータを1ライン毎に交互に格納する1対のラインメモリ
1,2及びこの各ラインメモリ1,2から画像データを
1画素ずつ出力させるためにアドレス指定を行うアドレ
スカウンタ3を設け、ある1ラインにおいてはラインメ
モリ1からの画素を第1の切替スイッチ4のa接点を介
して第1のシフトレジスタ群5の各シフトレジスタに順
次シフトさせ、また、ラインメモリ2からの画素を第2
の切替スイッチ6のb接点を介して第2のシフトレジス
タ群7の各シフトレジスタに順次シフトさせ、次の1ラ
インにおいては各切替スイッチ4,6を切替えてライン
メモリ1からの画素を第2の切替スイッチ6のa接点を
介して第2のシフトレジスタ群7の各シフトレジスタに
順次シフトさせ、また、ラインメモリ2からの画素を第
1の切替スイッチ4のb接点を介して第1のシフトレジ
スタ群5の各シフトレジスタに順次シフトさせるように
なっている。
For this reason, the conventional JBIG code decoding apparatus has the configuration shown in FIG. That is, a pair of line memories 1 and 2 for alternately storing image data for each line, and an address counter 3 for addressing in order to output image data pixel by pixel from the line memories 1 and 2, are provided. In one certain line, the pixels from the line memory 1 are sequentially shifted to the respective shift registers of the first shift register group 5 via the a contact of the first changeover switch 4, and the pixels from the line memory 2 are shifted to the first line. Two
The shift switches 6 are sequentially shifted to the respective shift registers of the second shift register group 7, and in the next one line, the changeover switches 4 and 6 are switched to shift the pixels from the line memory 1 to the second pixel. Of the shift switch 6 is sequentially shifted to each shift register of the second shift register group 7, and the pixel from the line memory 2 is transferred to the first shift switch 4 through the b contact of the first shift switch 4. The shift registers of the shift register group 5 are sequentially shifted.

【0006】第1のシフトレジスタ群5は2ラインテン
プレートの1ライン目の各画素を格納する6個のシフト
レジスタS1 〜S6 からなり、ラインメモリから見て1
段目のシフトレジスタS6 には標準位置のAT画素を格
納するようになっている。第2のシフトレジスタ群7は
2ラインテンプレートの2ライン目の各画素を格納する
4個のシフトレジスタS7 〜S10と符号復号化する画素
を格納する1個のシフトレジスタS11と符号復号化する
画素の2つ後までの画素を格納する2つのシフトレジス
タS12,S13の合計7個のシフトレジスタからなる。そ
して、第2のシフトレジスタ群7の手前に符号復号化す
る画素の前127画素まで格納できる多数のシフトレジ
スタからなるAT画素用シフトレジスタ群8を接続して
いる。
The first shift register group 5 is composed of six shift registers S1 to S6 for storing each pixel of the first line of the two-line template, and is 1 when viewed from the line memory.
The AT register at the standard position is stored in the shift register S6 of the stage. The second shift register group 7 includes four shift registers S7 to S10 for storing each pixel on the second line of the two-line template, one shift register S11 for storing pixels to be code-decoded, and pixels to be code-decoded. It is composed of two shift registers S12 and S13 for storing pixels up to two pixels after the above. Then, before the second shift register group 7, an AT pixel shift register group 8 including a large number of shift registers capable of storing up to 127 pixels before the pixel to be coded is connected.

【0007】第1のシフトレジスタ群5のシフトレジス
タS1 〜S5 の画素値と第2のシフトレジスタ群7のシ
フトレジスタS7 〜S10の画素値を通常の参照画素とし
て算術符号復号回路9に供給している。また、第1のシ
フトレジスタ群5のシフトレジスタS6 の画素値とAT
画素用シフトレジスタ群8の各シフトレジスタの画素値
をAT画素選択回路10に供給している。AT画素選択
回路10はAT画素選択信号により、どの画素をAT画
素として使用するかを選択し、選択した画素をAT画素
として算術符号復号回路9に供給している。
The pixel values of the shift registers S1 to S5 of the first shift register group 5 and the pixel values of the shift registers S7 to S10 of the second shift register group 7 are supplied to the arithmetic code decoding circuit 9 as normal reference pixels. ing. Also, the pixel value of the shift register S6 of the first shift register group 5 and the AT
The pixel value of each shift register of the pixel shift register group 8 is supplied to the AT pixel selection circuit 10. The AT pixel selection circuit 10 selects which pixel to use as an AT pixel based on the AT pixel selection signal, and supplies the selected pixel as an AT pixel to the arithmetic code decoding circuit 9.

【0008】この従来のJBIG符号復号装置は、例え
ばラインメモリ2に1ラインの画像データが格納される
と、アドレスカウンタ3がアドレス値を出力して各ライ
ンメモリ1,2から画像データを1画素ずつ出力する。
このときにAT画素選択信号で、アドレス出力の基準値
を設定する。これにより、任意の位置のAT画素を得る
ことができる。
In this conventional JBIG code decoding apparatus, for example, when one line of image data is stored in the line memory 2, the address counter 3 outputs an address value to output one pixel of image data from each of the line memories 1 and 2. Output one by one.
At this time, the reference value of the address output is set by the AT pixel selection signal. Thereby, the AT pixel at an arbitrary position can be obtained.

【0009】アドレスカウンタ3は1つずつカウントア
ップし、これに応じて各ラインメモリ1,2からは画像
データが1画素ずつ出力する。そして、ラインメモリ1
には1ライン前の画像データが格納され、ラインメモリ
2には新たな画像データが格納されているので、ライン
メモリ1の画像データは第1の切替スイッチ4のa接点
を介して第1のシフトレジスタ群5の各シフトレジスタ
に順次シフトされ、また、ラインメモリ2の画像データ
は第2の切替スイッチ4のb接点を介して第2のシフト
レジスタ群7及びAT画素用シフトレジスタ群8の各シ
フトレジスタに順次シフトされる。アドレスカウンタ3
のアドレス値がマイナス値のとき、すなわち、符号復号
化する画素データが存在しないアドレスのときにはライ
ンメモリ1,2から出力する画素のデータは「0」とな
る。これは勧告の仕様に基づく。
The address counter 3 counts up one by one, and in response thereto, the image data is output from the line memories 1 and 2 pixel by pixel. And line memory 1
Since the image data of one line before is stored in and the new image data is stored in the line memory 2, the image data of the line memory 1 is stored in the first contact via the a contact of the first changeover switch 4. The image data of the line memory 2 is sequentially shifted to each shift register of the shift register group 5, and the image data of the line memory 2 is transferred to the second shift register group 7 and the AT pixel shift register group 8 through the b contact of the second changeover switch 4. The shift registers are sequentially shifted. Address counter 3
When the address value is negative, that is, when the pixel data to be encoded / decoded is not present, the pixel data output from the line memories 1 and 2 is “0”. This is based on the recommendations specifications.

【0010】AT画素選択回路10はAT画素選択信号
により、移動可能なAT画素の全ての位置から1つの位
置を選択する。そして、ラインメモリ2から出力した画
素のデータがAT画素選択信号で設定した値分シフトす
ると、このときの画素データがAT画素選択回路10で
選択され、AT画素情報として算術符号復号回路9に供
給される。そして、算術符号復号回路9は2ラインテン
プレートの各シフトレジスタS1 〜S5 、S7 〜S10の
画素情報と共に算術符号復号処理を行う。
The AT pixel selection circuit 10 selects one position from all the positions of movable AT pixels by the AT pixel selection signal. When the pixel data output from the line memory 2 is shifted by the value set by the AT pixel selection signal, the pixel data at this time is selected by the AT pixel selection circuit 10 and supplied to the arithmetic code decoding circuit 9 as AT pixel information. To be done. Then, the arithmetic code decoding circuit 9 performs the arithmetic code decoding process together with the pixel information of the shift registers S1 to S5 and S7 to S10 of the two-line template.

【0011】もし、AT画素位置が127画素目であれ
ば、第1画素目を算術符号復号処理するためには、12
7回のシフト動作が必要で、算術符号復号処理を開始す
るまでの時間が長くなる。また、AT画素位置が8画素
目であれば、第1画素目を算術符号復号処理するために
は、8回のシフト動作が済み、算術符号復号処理を開始
するまでの時間が短くなる。図5は、アドレスカウンタ
3の出力、ラインメモリの出力データ、シフトクロック
及び図4に示すポイントP1 〜P5 の画素値の変化と符
号復号開始タイミングを示すタイミング図で、ポイント
P3 が符号復号化する画素の画素値である。
If the AT pixel position is the 127th pixel, 12 pixels are required to perform arithmetic code decoding processing on the first pixel.
Seven shift operations are necessary, and the time required to start the arithmetic code decoding process becomes long. Further, if the AT pixel position is the 8th pixel, the shift operation is performed 8 times in order to perform the arithmetic code decoding process on the first pixel, and the time until the arithmetic code decoding process is started becomes short. FIG. 5 is a timing chart showing the output of the address counter 3, the output data of the line memory, the shift clock, the pixel values at the points P1 to P5 shown in FIG. 4, and the code decoding start timing. The point P3 is code-decoded. The pixel value of the pixel.

【0012】[0012]

【発明が解決しようとする課題】このように、従来のJ
BIG符号復号装置は、AT画素の移動範囲が符号復号
化する画素の前、最大127画素目まで可能であること
に合わせて、127画素目まで画素のデータを格納でき
るシフトレジスタを設けていたので、膨大な数のシフト
レジスタが必要となり、構成が大型化するとともにAT
画素位置を127画素目近傍に設定した場合には算術符
号復号処理を開始するまでの時間が長くなり、処理速度
が遅くなるという問題があった。
As described above, the conventional J
Since the BIG encoding / decoding device is provided with the shift register capable of storing the pixel data up to the 127th pixel in accordance with that the moving range of the AT pixel can be up to the 127th pixel at the maximum before the pixel to be encoded / decoded. , An enormous number of shift registers are required, and the configuration becomes large and AT
When the pixel position is set in the vicinity of the 127th pixel, there is a problem that it takes a long time to start the arithmetic code decoding process and the processing speed becomes slow.

【0013】そこで、本発明は、多数のシフトレジスタ
からなるAT画素用シフトレジスタ群を使用すること無
くAT画素の移動範囲を符号復号化する画素の前、最大
127画素目まで可能にでき、これにより構成の小型化
を図ることができ、また、AT画素の位置に関係なく算
術符号復号処理を開始するまでの時間を短時間で一定に
でき、これにより高速処理が実現できるJBIG符号復
号装置を提供する。
Therefore, according to the present invention, the moving range of the AT pixel can be up to 127th pixel in front of the pixel to be code-decoded without using the AT pixel shift register group consisting of a large number of shift registers. With this, it is possible to reduce the size of the configuration, and the time until the arithmetic code decoding process is started can be made constant in a short time regardless of the position of the AT pixel, thereby realizing a high speed process. provide.

【0014】[0014]

【課題を解決するための手段】請求項1記載の発明は、
2値化した画像データをJBIG符号復号化方式で符号
復号化するJBIG符号復号装置において、画像データ
を1ライン毎に交互に格納する1対のラインメモリと、
この各ラインメモリから画像データを1画素ずつシフト
し、符号復号化すべき画素とともにこの符号復号化すべ
き画素を予測符号復号化するために使用する、アダプテ
ィブ画素を含む複数の参照画素を格納するシフトレジス
タと、各ラインメモリからシフトレジスタに出力する画
素のアドレス値を順次出力するアドレスカウンタと、こ
のアドレスカウンタのアドレス値からアダプティブ画素
の選択信号の値を減算してアダプティブ画素位置のアド
レス値を出力するアダーと、アドレスカウンタのアドレ
ス値とアダーのアドレス値を1画素シスト期間内におい
て交互に取出す第1の切替手段と、アドレスカウンタの
アドレス値を一方のラインメモリに供給するとともに第
1の切替手段で取出したアドレスカウンタのアドレス値
とアダーのアドレス値を他方のラインメモリに供給し、
かつ各ラインメモリに対するアドレス値の供給内容を1
ライン単位で切替える第2の切替手段と、アダーのアド
レス値を供給したラインメモリから出力するアダプティ
ブ画素位置の画素を格納するアダプティブ画素格納手段
と、アダプティブ画素の選択信号によりシフトレジスタ
からアダプティブ画素を取出すかアダプティブ画素格納
手段からアダプティブ画素を取出すか選択するアダプテ
ィブ画素選択手段と、シフトレジスタからアダプティブ
画素を除く複数の参照画素を取込むとともにアダプティ
ブ画素選択手段からアダプティブ画素を取込み、符号復
号化すべき画素を予測符号復号化する算術符号復号回路
とを設けたものである。
According to the first aspect of the present invention,
In a JBIG code decoding device for coding and decoding binarized image data by the JBIG code decoding system, a pair of line memories for alternately storing the image data for each line,
A shift register that shifts the image data from each of the line memories one pixel at a time and stores a plurality of reference pixels including adaptive pixels, which are used for predictive coding and decoding of the pixel to be coded and decoded together with the pixel to be coded and decoded. And an address counter that sequentially outputs the address value of the pixel output from each line memory to the shift register, and the value of the adaptive pixel selection signal is subtracted from the address value of this address counter to output the address value of the adaptive pixel position. The adder, first switching means for alternately fetching the address value of the address counter and the address value of the adder within the one-pixel system period, and supplying the address value of the address counter to one line memory and at the same time by the first switching means. The address value of the fetched address counter and the address of the adder Supplying the value to the other line memory,
In addition, the content of the address value supplied to each line memory is set to 1
Second switching means for switching on a line-by-line basis, adaptive pixel storage means for storing the pixel at the adaptive pixel position output from the line memory to which the address value of the adder is supplied, and adaptive pixel extraction from the shift register by the adaptive pixel selection signal An adaptive pixel selecting means for selecting whether to extract an adaptive pixel from the adaptive pixel storing means, a plurality of reference pixels excluding the adaptive pixel from the shift register, an adaptive pixel from the adaptive pixel selecting means, and a pixel to be encoded / decoded. An arithmetic code decoding circuit for performing predictive code decoding is provided.

【0015】このような構成においては、アダー、第1
の切替手段、第2の切替手段、アダプティブ画素格納手
段及びアダプティブ画素選択手段を設けることで、ライ
ンメモリに対するアドレス入力方法を変更して通常の画
像データとアダプティブ画素を略同時的に取出し、アダ
プティブ画素をアダプティブ画素格納手段に格納してア
ダプティブ画素選択手段で選択的に取出して算術符号復
号回路に供給できる。
In such a configuration, the adder, the first
By providing the switching means, the second switching means, the adaptive pixel storage means, and the adaptive pixel selection means, the address input method to the line memory is changed and the normal image data and the adaptive pixels are taken out substantially at the same time. Can be stored in the adaptive pixel storage means, selectively taken out by the adaptive pixel selection means, and supplied to the arithmetic code decoding circuit.

【0016】[0016]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。図1に示すように、1対のライン
メモリ11,12を設け、この各ラインメモリ11,1
2に画像データを1ライン毎に交互に格納するようにな
っている。また、前記各ラインメモリ11,12から出
力する画素のアドレス値を順次出力するアドレスカウン
タ13を設け、このアドレスカウンタ13のアドレス値
をアダー14に供給するとともに第1の切替手段である
第1の切替スイッチ15のa接点を介し、さらに第2の
切替手段を構成する第2の切替スイッチ16のa接点を
介して前記ラインメモリ12に供給するとともに第2の
切替手段を構成する第3の切替スイッチ17のa接点を
介して前記ラインメモリ11に供給している。また、前
記アドレスカウンタ13のアドレス値を前記第2の切替
スイッチ16のb接点を介して前記ラインメモリ12に
供給するとともに前記第3の切替スイッチ17のb接点
を介して前記ラインメモリ11に供給している。
Embodiments of the present invention will be described below with reference to the drawings. As shown in FIG. 1, a pair of line memories 11 and 12 are provided, and each of the line memories 11 and 1 is provided.
The image data is stored alternately in line 2 for each line. Further, an address counter 13 for sequentially outputting the address value of the pixel output from each of the line memories 11 and 12 is provided, and the address value of the address counter 13 is supplied to the adder 14 and is the first switching means. The third switching which supplies the line memory 12 through the a contact of the changeover switch 15 and further through the a contact of the second changeover switch 16 which constitutes the second changeover means and which constitutes the second changeover means. It is supplied to the line memory 11 via the a contact of the switch 17. Further, the address value of the address counter 13 is supplied to the line memory 12 via the b contact of the second changeover switch 16 and to the line memory 11 via the b contact of the third changeover switch 17. doing.

【0017】前記各ラインメモリ11,12は、前記ア
ドレスカウンタ13からのアドレス値を取込み、画像デ
ータを1画素ずつ出力するようになっている。前記アダ
ー14は、前記アドレスカウンタ13のアドレス値から
アダプティブ画素(以下、AT画素と称する。)の選択
信号の値を減算してAT画素位置のアドレス値を出力す
るようになっている。そして、前記アダー14の出力
を、前記第1の切替スイッチ15のb接点を介し、さら
に前記第2の切替スイッチ16のa接点を介して前記ラ
インメモリ12に供給するとともに前記第3の切替スイ
ッチ17のa接点を介して前記ラインメモリ11に供給
している。
Each of the line memories 11 and 12 takes in the address value from the address counter 13 and outputs the image data pixel by pixel. The adder 14 subtracts the value of the selection signal of the adaptive pixel (hereinafter referred to as AT pixel) from the address value of the address counter 13 and outputs the address value of the AT pixel position. Then, the output of the adder 14 is supplied to the line memory 12 through the b contact of the first changeover switch 15 and further through the a contact of the second changeover switch 16, and the third changeover switch is also supplied. It is supplied to the line memory 11 via a contact point a of 17.

【0018】前記第1の切替スイッチ15は、符号復号
画素ラインでのラインメモリに相当するアドレスを1画
素シフト期間内で切替えるようになっている。すなわ
ち、1画素シフト期間内において、先ず、b接点をオン
して前記アダー14の出力を選択出力し、続いて切替わ
り動作してa接点をオンして前記アドレスカウンタ13
のアドレス値を選択出力するようになっている。前記第
2、第3の切替スイッチ16,17は、1ライン毎に切
替わり動作するもので、第2の切替スイッチ16のa接
点がオンしたときは第3の切替スイッチ17のb接点が
オンし、第2の切替スイッチ16のb接点がオンしたと
きは第3の切替スイッチ17のa接点がオンするように
なっている。
The first change-over switch 15 is adapted to change over the address corresponding to the line memory in the code decoding pixel line within one pixel shift period. That is, in the one pixel shift period, first, the contact b is turned on to selectively output the output of the adder 14, and then the switching operation is performed to turn on the contact a to turn on the address counter 13.
The address value of is selected and output. The second and third change-over switches 16 and 17 are switched and operated line by line. When the a contact of the second changeover switch 16 is turned on, the b contact of the third changeover switch 17 is turned on. However, when the b contact of the second changeover switch 16 is turned on, the a contact of the third changeover switch 17 is turned on.

【0019】前記ラインメモリ11からの画像データを
第4の切替スイッチ18のa接点を介して第1のシフト
レジスタ群19の各シフトレジスタに順次シフトして格
納するとともに、第5の切替スイッチ20のa接点を介
して第2のシフトレジスタ群21の各シフトレジスタに
順次シフトして格納するようになっている。また、前記
ラインメモリ12からの画像データを前記第4の切替ス
イッチ18のb接点を介して前記第1のシフトレジスタ
群19の各シフトレジスタに順次シフトして格納すると
ともに、前記第5の切替スイッチ20のb接点を介して
前記第2のシフトレジスタ群21の各シフトレジスタに
順次シフトして格納するようになっている。
The image data from the line memory 11 is sequentially shifted and stored in each shift register of the first shift register group 19 via the a contact of the fourth changeover switch 18, and the fifth changeover switch 20 is also stored. The data is sequentially shifted and stored in each shift register of the second shift register group 21 via the contact a. Further, the image data from the line memory 12 is sequentially shifted and stored in each shift register of the first shift register group 19 via the b contact of the fourth changeover switch 18, and the fifth changeover is performed. The data is sequentially shifted and stored in each shift register of the second shift register group 21 via the b contact of the switch 20.

【0020】前記第4の切替スイッチ18及び第5の切
替スイッチ20は、1ライン毎に切替わり動作するもの
で、第4の切替スイッチ18のa接点がオンしたときは
第5の切替スイッチ20のb接点がオンし、第4の切替
スイッチ18のb接点がオンしたときは第5の切替スイ
ッチ20のa接点がオンするようになっている。従っ
て、ある1ラインにおいては前記ラインメモリ11から
の画素を第4の切替スイッチ18のa接点を介して前記
第1のシフトレジスタ群19の各シフトレジスタに順次
シフトさせ、また、前記ラインメモリ12からの画素を
第5の切替スイッチ21のb接点を介して前記第2のシ
フトレジスタ群21の各シフトレジスタに順次シフトさ
せ、次の1ラインにおいては各切替スイッチ18,20
を切替えて前記ラインメモリ11からの画素を第5の切
替スイッチ20のa接点を介して前記第2のシフトレジ
スタ群21の各シフトレジスタに順次シフトさせ、ま
た、前記ラインメモリ12からの画素を第4の切替スイ
ッチ18のb接点を介して前記第1のシフトレジスタ群
19の各シフトレジスタに順次シフトさせるようになっ
ている。
The fourth changeover switch 18 and the fifth changeover switch 20 are switched and operated for each line. When the contact a of the fourth changeover switch 18 is turned on, the fifth changeover switch 20 is turned on. When the b contact of No. 4 is turned on and the b contact of the fourth changeover switch 18 is turned on, the a contact of the fifth changeover switch 20 is turned on. Therefore, in one line, the pixels from the line memory 11 are sequentially shifted to each shift register of the first shift register group 19 via the a contact of the fourth changeover switch 18, and the line memory 12 is also used. Pixels are sequentially shifted to the respective shift registers of the second shift register group 21 via the b contact of the fifth changeover switch 21, and in the next one line, the changeover switches 18 and 20 are changed.
To shift the pixels from the line memory 11 sequentially to the respective shift registers of the second shift register group 21 via the a contact of the fifth changeover switch 20, and the pixels from the line memory 12 to each other. The shift switches of the first shift register group 19 are sequentially shifted through the b contact of the fourth changeover switch 18.

【0021】前記第1のシフトレジスタ群19は2ライ
ンテンプレートの1ライン目の各画素を格納する6個の
シフトレジスタS1 〜S6 からなり、各ラインメモリ1
1,12から見て1段目のシフトレジスタS6 には標準
位置のAT画素を格納するようになっている。前記第2
のシフトレジスタ群21は2ラインテンプレートの2ラ
イン目の各画素を格納する4個のシフトレジスタS7 〜
S10と符号復号化する画素を格納する1個のシフトレジ
スタS11と符号復号化する画素の2つ後までの画素を格
納する2つのシフトレジスタS12,S13の合計7個のシ
フトレジスタからなる。
The first shift register group 19 is composed of six shift registers S1 to S6 for storing each pixel of the first line of the two-line template.
The AT pixel at the standard position is stored in the shift register S6 of the first stage when viewed from the first and the second stages. The second
The shift register group 21 includes four shift registers S7 to S7 for storing each pixel on the second line of the two-line template.
S10 and one shift register S11 for storing pixels to be coded and decoded, and two shift registers S12 and S13 for storing pixels up to two pixels after the pixel to be coded and decoded, a total of seven shift registers.

【0022】前記ラインメモリ11からの画像データを
第5の切替スイッチ20のa接点を介してアダプティブ
画素格納手段を構成する第3のシフトレジスタ群22の
各シフトレジスタに順次シフトして格納するとともに、
前記ラインメモリ12からの画像データを前記第5の切
替スイッチ20のb接点を介して前記第3のシフトレジ
スタ群22の各シフトレジスタに順次シフトして格納す
るようになっている。前記第3のシフトレジスタ群22
は3個のシフトレジスタS14〜S16からなる。
The image data from the line memory 11 is sequentially shifted and stored in each shift register of the third shift register group 22 constituting the adaptive pixel storage means via the a contact of the fifth changeover switch 20. ,
The image data from the line memory 12 is sequentially shifted and stored in each shift register of the third shift register group 22 via the b contact of the fifth changeover switch 20. The third shift register group 22
Is composed of three shift registers S14 to S16.

【0023】前記第1、第2のシフトレジスタ群19、
21の各シフトレジスタはシフトクロックの立上がりに
同期してシフトし、前記第3のシフトレジスタ群22の
各シフトレジスタはシフトクロックをインバータ回路2
3で反転したシフトクロック反転信号の立上がりに同期
してシフトするようになっている。前記第1のシフトレ
ジスタ群19の初段のシフトレジスタS6 の出力(ポイ
ントP10の画素値)及び前記第3のシフトレジスタ群2
2の最終段のシフトレジスタS14の出力(ポイントP9
の画素値)を切替回路24に供給している。前記切替回
路24は、アダプティブ画素選択手段を構成し、前記A
T画素選択信号に応動して切替え動作し、シフトレジス
タS6 の出力かシフトレジスタS14の出力を選択的に出
力するようになっている。
The first and second shift register groups 19,
Each shift register 21 shifts in synchronization with the rising edge of the shift clock, and each shift register of the third shift register group 22 shifts the shift clock to the inverter circuit 2.
The shift clock is inverted in 3 and is shifted in synchronization with the rising edge of the inverted signal. The output of the first-stage shift register S6 of the first shift register group 19 (pixel value of point P10) and the third shift register group 2
The output of the shift register S14 at the final stage of 2 (point P9
(Pixel value of) is supplied to the switching circuit 24. The switching circuit 24 constitutes adaptive pixel selection means, and
The switching operation is performed in response to the T pixel selection signal, and the output of the shift register S6 or the output of the shift register S14 is selectively output.

【0024】前記第1のシフトレジスタ群19のシフト
レジスタS1 〜S5 の画素値と前記第2のシフトレジス
タ群21のシフトレジスタS7 〜S10の画素値を通常の
参照画素として算術符号復号回路25に供給するととも
に、前記切替回路24の出力(画素値)をAT画素とし
て前記算術符号復号回路25に供給している。前記算術
符号復号回路25は2ラインテンプレートの各シフトレ
ジスタS1 〜S5 、S7 〜S10の画素情報と共に切替回
路24からの画素情報を使用して算術符号復号処理を行
うようになっている。
The arithmetic code decoding circuit 25 uses the pixel values of the shift registers S1 to S5 of the first shift register group 19 and the pixel values of the shift registers S7 to S10 of the second shift register group 21 as normal reference pixels. At the same time, the output (pixel value) of the switching circuit 24 is supplied to the arithmetic code decoding circuit 25 as an AT pixel. The arithmetic code decoding circuit 25 is adapted to perform the arithmetic code decoding process by using the pixel information from the switching circuit 24 together with the pixel information of the shift registers S1 to S5 and S7 to S10 of the two line template.

【0025】このような構成において、例えば、今、第
2〜第5の切替スイッチ16,17,18,20が図に
示すようになっているとする。すなわち、第2の切替ス
イッチ16のa接点、第3の切替スイッチ17のb接
点、第4の切替スイッチ18のa接点、第5の切替スイ
ッチ20のb接点がそれぞれオンしているとする。この
状態ではラインメモリ12に格納している画像データが
符号復号ラインとなる。また、AT画素位置を符号復号
画素の前10画素目(n=10)に設定されているとす
る。
In such a structure, for example, it is now assumed that the second to fifth changeover switches 16, 17, 18, 20 are as shown in the figure. That is, it is assumed that the a contact of the second changeover switch 16, the b contact of the third changeover switch 17, the a contact of the fourth changeover switch 18, and the b contact of the fifth changeover switch 20 are on. In this state, the image data stored in the line memory 12 becomes a code decoding line. It is also assumed that the AT pixel position is set to the tenth pixel (n = 10) before the coded pixel.

【0026】アドレスカウンタ13はテンプレート再生
のためにアドレス値を出力する。このとき、1ラインの
画像データの前4画素目から選択するように動作する。
これは、1画素目を符号復号するときにテンプレートと
してAT画素を除いて前4画素〜前1画素が必要なため
である。アダー14は、アドレスカウンタ13のアドレ
ス値からAT画素選択信号の値(n=10)を減算した
値を出力する。また、第1の切替スイッチ15は1画素
シフト期間内においてa接点とb接点を切替える。
The address counter 13 outputs an address value for template reproduction. At this time, it operates so as to select from the fourth pixel before the image data of one line.
This is because when the first pixel is coded and decoded, the previous 4 pixels to the previous 1 pixel are required as a template excluding the AT pixel. The adder 14 outputs a value obtained by subtracting the value (n = 10) of the AT pixel selection signal from the address value of the address counter 13. Further, the first changeover switch 15 switches between the a contact and the b contact within one pixel shift period.

【0027】アドレスカウンタ13からのアドレス値は
第2の切替スイッチ16のa接点を介してラインメモリ
12に供給され、また、第3の切替スイッチ17のb接
点を介してラインメモリ11に供給される。こうして各
ラインメモリ11,12から画像データが出力される。
第1のシフトレジスタ群19の各シフトレジスタはシフ
トクロックでラインメモリ11からの画像データを1画
素ずつシフトして格納する。また、第2のシフトレジス
タ群21の各シフトレジスタはシフトクロックでライン
メモリ12からの画像データ、すなわち、符号復号ライ
ンの画像データを1画素ずつシフトして格納する。ま
た、第3のシフトレジスタ群22の各シフトレジスタは
シフトクロックの反転信号でラインメモリ12からの画
像データ、すなわち、符号復号ラインの画像データを1
画素ずつシフトして格納する。こうして、第3のシフト
レジスタ群22はAT画素の値をシフトする。
The address value from the address counter 13 is supplied to the line memory 12 via the a contact of the second changeover switch 16 and to the line memory 11 via the b contact of the third changeover switch 17. It In this way, the image data is output from each of the line memories 11 and 12.
Each shift register of the first shift register group 19 shifts and stores the image data from the line memory 11 pixel by pixel by a shift clock. In addition, each shift register of the second shift register group 21 shifts the image data from the line memory 12, that is, the image data of the code decoding line, by one pixel and stores the shifted image data. Further, each shift register of the third shift register group 22 outputs the image data from the line memory 12, that is, the image data of the code decoding line to 1 by the inversion signal of the shift clock.
The data is shifted pixel by pixel and stored. In this way, the third shift register group 22 shifts the value of the AT pixel.

【0028】切替回路24は、シフトレジスタS6 の出
力、すなわち、ポイントP10の画素値とシフトレジスタ
S14の出力、すなわち、ポイントP9 の画素値を選択す
る。AT画素の移動がない場合はポイントP10の画素値
を選択して出力し、AT画素の移動がある場合はポイン
トP9 の画素値を選択して出力する。ここでは、AT画
素の移動がない場合はラインメモリ11の画像データの
3画素目の値を出力し、また、AT画素の移動がある場
合は−9画素の値を出力する。
The switching circuit 24 selects the output of the shift register S6, that is, the pixel value of the point P10 and the output of the shift register S14, that is, the pixel value of the point P9. When there is no movement of the AT pixel, the pixel value of the point P10 is selected and output, and when there is movement of the AT pixel, the pixel value of the point P9 is selected and output. Here, when there is no movement of the AT pixel, the value of the third pixel of the image data in the line memory 11 is output, and when there is movement of the AT pixel, the value of -9 pixel is output.

【0029】例えば、AT画素の移動がある場合として
−9画素の値を出力すると、算術符号復号回路25は、
2ラインテンプレートの各画素値を使用して符号復号対
象画素P3 の算術符号復号処理を行う。以上における各
部の出力タイミングとシフトクロック、画素値を示すと
図2に示すようになる。
For example, when the value of -9 pixels is output when the AT pixel is moved, the arithmetic code decoding circuit 25
The arithmetic code decoding processing of the code decoding target pixel P3 is performed using each pixel value of the two-line template. The output timing, shift clock, and pixel value of each unit in the above are shown in FIG.

【0030】このように、アダー14、第1の切替スイ
ッチ15、第2の切替スイッチ16、第3の切替スイッ
チ17、3個のシフトレジスタS14〜S16からなる第3
のシフトレジスタ群22及び切替回路24を設けること
で、ラインメモリ11,12に対するアドレス入力方法
を変更して通常の画像データとAT画素を略同時的に取
出し、AT画素を第3のシフトレジスタ群22に格納し
て切替回路24で選択的に取出して算術符号復号回路2
5に供給できるので、127画素目まで画素データを格
納できる膨大な数のシフトレジスタを設ける必要はな
い。従って、構成の小型化を図ることができる。また、
AT画素位置の値をアダー14の出力によってラインメ
モリ11,12のアドレス指定を行って取出すようにし
ているので、AT画素の位置に関係なく算術符号復号処
理を開始するまでの時間を短時間で一定にでき、これに
より高速処理が実現できる。
In this way, the adder 14, the first changeover switch 15, the second changeover switch 16, the third changeover switch 17 and the third shift register S14 to S16 are provided.
By providing the shift register group 22 and the switching circuit 24, the address input method for the line memories 11 and 12 is changed to take out the normal image data and the AT pixel substantially at the same time, and the AT pixel is set to the third shift register group. 22 and the switching circuit 24 selectively takes out the arithmetic code decoding circuit 2
5, it is not necessary to provide an enormous number of shift registers capable of storing pixel data up to the 127th pixel. Therefore, the size of the structure can be reduced. Also,
Since the value of the AT pixel position is specified by the address of the line memories 11 and 12 by the output of the adder 14, it takes a short time to start the arithmetic code decoding process regardless of the position of the AT pixel. It can be kept constant, which enables high-speed processing.

【0031】[0031]

【発明の効果】以上、請求項1記載の発明によれば、多
数のシフトレジスタからなるAT画素用シフトレジスタ
群を使用すること無くAT画素の移動範囲を符号復号化
する画素の前、最大127画素目まで可能にでき、これ
により構成の小型化を図ることができ、また、AT画素
の位置に関係なく算術符号復号処理を開始するまでの時
間を短時間で一定にでき、これにより高速処理が実現で
きる。
As described above, according to the first aspect of the present invention, 127 pixels at the maximum before the pixel for which the AT pixel moving range is code-decoded without using the AT pixel shift register group including a large number of shift registers. It is possible to achieve up to the pixel, and this makes it possible to reduce the size of the structure, and the time until the arithmetic code decoding process is started can be made constant in a short time regardless of the position of the AT pixel, which enables high-speed processing. Can be realized.

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

【図1】本発明の実施の形態を示す回路構成図。FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention.

【図2】同実施の形態における動作例を示すタイミング
図。
FIG. 2 is a timing chart showing an operation example in the same embodiment.

【図3】2ラインテンプレートの構成を示す図。FIG. 3 is a diagram showing a configuration of a two-line template.

【図4】従来例を示す回路構成図。FIG. 4 is a circuit configuration diagram showing a conventional example.

【図5】同従来例の動作を示すタイミング図。FIG. 5 is a timing chart showing the operation of the conventional example.

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

11,12…ラインメモリ 13…アドレスカウンタ 14…アダー 15…第1の切替スイッチ(第1の切替手段) 16…第2の切替スイッチ(第2の切替手段) 17…第3の切替スイッチ(第2の切替手段) 19…第1のシフトレジスタ群 21…第2のシフトレジスタ群 22…第3のシフトレジスタ群(アダプティブ画素格納
手段) 24…切替回路(アダプティブ画素選択手段) 25…算術符号復号回路
11, 12 ... Line memory 13 ... Address counter 14 ... Adder 15 ... First changeover switch (first changeover means) 16 ... Second changeover switch (second changeover means) 17 ... Third changeover switch (first changeover switch) Switching means 2) 19 ... First shift register group 21 ... Second shift register group 22 ... Third shift register group (adaptive pixel storage means) 24 ... Switching circuit (adaptive pixel selection means) 25 ... Arithmetic code decoding circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 2値化した画像データをJBIG符号復
号化方式で符号復号化するJBIG符号復号装置におい
て、画像データを1ライン毎に交互に格納する1対のラ
インメモリと、この各ラインメモリから画像データを1
画素ずつシフトし、符号復号化すべき画素とともにこの
符号復号化すべき画素を予測符号復号化するために使用
する、アダプティブ画素を含む複数の参照画素を格納す
るシフトレジスタと、前記各ラインメモリから前記シフ
トレジスタに出力する画素のアドレス値を順次出力する
アドレスカウンタと、このアドレスカウンタのアドレス
値からアダプティブ画素の選択信号の値を減算してアダ
プティブ画素位置のアドレス値を出力するアダーと、前
記アドレスカウンタのアドレス値と前記アダーのアドレ
ス値を1画素シスト期間内において交互に取出す第1の
切替手段と、前記アドレスカウンタのアドレス値を一方
のラインメモリに供給するとともに前記第1の切替手段
で取出した前記アドレスカウンタのアドレス値と前記ア
ダーのアドレス値を他方のラインメモリに供給し、かつ
前記各ラインメモリに対するアドレス値の供給内容を1
ライン単位で切替える第2の切替手段と、前記アダーの
アドレス値を供給したラインメモリから出力するアダプ
ティブ画素位置の画素を格納するアダプティブ画素格納
手段と、アダプティブ画素の選択信号により前記シフト
レジスタからアダプティブ画素を取出すか前記アダプテ
ィブ画素格納手段からアダプティブ画素を取出すか選択
するアダプティブ画素選択手段と、前記シフトレジスタ
からアダプティブ画素を除く複数の参照画素を取込むと
ともに前記アダプティブ画素選択手段からアダプティブ
画素を取込み、符号復号化すべき画素を予測符号復号化
する算術符号復号回路とを設けたことを特徴とするJB
IG符号復号装置。
1. A JBIG code decoding device for coding and decoding binarized image data by a JBIG code decoding system, and a pair of line memories for alternately storing the image data line by line, and each line memory. Image data from 1
A shift register for shifting a pixel by pixel and storing a plurality of reference pixels including adaptive pixels, which are used together with a pixel to be code-decoded to predictively code the pixel to be code-decoded; and the shift from each line memory. An address counter that sequentially outputs the address value of the pixel to be output to the register, an adder that subtracts the value of the adaptive pixel selection signal from the address value of this address counter, and outputs the address value of the adaptive pixel position, and the address counter First switching means for alternately fetching the address value and the address value of the adder within one pixel system period, and the address value of the address counter is supplied to one line memory and fetched by the first switching means. Address value of address counter and address value of the adder It was supplied to the other line memory, and the supply contents of the address values for the line memories 1
Second switching means for switching on a line-by-line basis, adaptive pixel storage means for storing the pixel at the adaptive pixel position output from the line memory to which the address value of the adder is supplied, and adaptive pixel from the shift register in response to the adaptive pixel selection signal. An adaptive pixel selecting means for selecting whether to take out an adaptive pixel from the adaptive pixel storing means, a plurality of reference pixels excluding the adaptive pixel from the shift register, and an adaptive pixel from the adaptive pixel selecting means, and a code A JB characterized in that an arithmetic code decoding circuit for predictively coding and decoding a pixel to be decoded is provided.
IG code decoding device.
JP26845195A 1995-10-17 1995-10-17 Jbig code decoder Pending JPH09116761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26845195A JPH09116761A (en) 1995-10-17 1995-10-17 Jbig code decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26845195A JPH09116761A (en) 1995-10-17 1995-10-17 Jbig code decoder

Publications (1)

Publication Number Publication Date
JPH09116761A true JPH09116761A (en) 1997-05-02

Family

ID=17458697

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26845195A Pending JPH09116761A (en) 1995-10-17 1995-10-17 Jbig code decoder

Country Status (1)

Country Link
JP (1) JPH09116761A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998049241A1 (en) * 1997-04-30 1998-11-05 The Yokohama Rubber Co., Ltd. Process for producing modified carbon black for reinforcing rubber and process for producing rubber composition containing modified carbon black

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998049241A1 (en) * 1997-04-30 1998-11-05 The Yokohama Rubber Co., Ltd. Process for producing modified carbon black for reinforcing rubber and process for producing rubber composition containing modified carbon black

Similar Documents

Publication Publication Date Title
US5621464A (en) Method of reordering a decoded video picture sequence
JPH0969951A (en) Encoding method and decoding method
JP2924964B2 (en) Image information encoding device, image information decoding device, and image information encoding / decoding device
JPH06225292A (en) Module memory for image decoding system
EP0522835A2 (en) Decoding apparatus for image signal
JPH01198868A (en) Facsimile decoding circuit
JPH09116761A (en) Jbig code decoder
JPH1155530A (en) Image reader and image output device
JPS6360952B2 (en)
US6668087B1 (en) Filter arithmetic device
US6282321B1 (en) Context generation circuit and method for small screen
JPH08116545A (en) Image transmission method and system therefor
JPH05260461A (en) Motion compensation prediction device
EP0501988A1 (en) Storage of digital image composition control signal.
JP3213200B2 (en) Decoding device and method
JP2506705B2 (en) Coding / decoding apparatus for hierarchical image
US6560286B1 (en) Field frame motion design for digital video decoder
JP2506706B2 (en) Coding / decoding apparatus for hierarchical image
JPH0132703B2 (en)
JP3227237B2 (en) Encoding device
JP3875465B2 (en) Image reduction method, image processing apparatus and image processing apparatus control method
JPH114443A (en) Information processing unit
JPH09205553A (en) Image coder
JPH08336114A (en) Line conversion circuit for image processor
JPH05191635A (en) Picture reduction method and device