Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3484900B2 - Image data encoding device - Google Patents
[go: Go Back, main page]

JP3484900B2 - Image data encoding device - Google Patents

Image data encoding device

Info

Publication number
JP3484900B2
JP3484900B2 JP30188996A JP30188996A JP3484900B2 JP 3484900 B2 JP3484900 B2 JP 3484900B2 JP 30188996 A JP30188996 A JP 30188996A JP 30188996 A JP30188996 A JP 30188996A JP 3484900 B2 JP3484900 B2 JP 3484900B2
Authority
JP
Japan
Prior art keywords
index
clock cycle
input
parameter
storage memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP30188996A
Other languages
Japanese (ja)
Other versions
JPH10145609A (en
Inventor
典司 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP30188996A priority Critical patent/JP3484900B2/en
Publication of JPH10145609A publication Critical patent/JPH10145609A/en
Application granted granted Critical
Publication of JP3484900B2 publication Critical patent/JP3484900B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像データのデー
タ圧縮を行なう画像データ符号化装置に関するものであ
り、特に写真等の多値画像を擬似中間調化により2値化
した画像データを圧縮する際にも好適な画像データ符号
化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data encoding apparatus for compressing image data, and in particular, compresses multi-valued image data such as photographs by binarizing it by pseudo halftoning. The present invention also relates to a suitable image data encoding device.

【0002】[0002]

【従来の技術】2値画像の符号化技術の1つとして、周
辺の画素から注目画素の状態を予測し、予測した結果を
符号化する予測符号化方式がある。予測符号化において
は、注目画素と相関関係があると思われる周囲画素をマ
ルコフ情報源として予測に用いる。最も単純な予測方式
としては、注目画素の直前の画素との一致性を判定し、
白画素または黒画素が続く部分の長さに基づいて符号化
する方法がある。
2. Description of the Related Art As one of binary image coding techniques, there is a predictive coding method in which the state of a pixel of interest is predicted from surrounding pixels and the predicted result is coded. In predictive coding, surrounding pixels that are considered to have a correlation with the pixel of interest are used for prediction as Markov information sources. The simplest prediction method is to determine the match with the pixel immediately before the pixel of interest,
There is a method of encoding based on the length of a portion where white pixels or black pixels continue.

【0003】写真等の多値画像信号を2値画像に変換し
て擬似的に階調再現する手法として、誤差拡散法、平均
誤差最小法等のランダムディザ法が知られている。しか
しランダムディザ法により2値化された信号系列には周
期性がなく、ランダムに白、黒が出現するため、上述の
ような直前の画素との一致性を判定するような予測方式
では十分な圧縮率が得られない。
A random dither method such as an error diffusion method or a minimum mean error method is known as a method for converting a multi-valued image signal such as a photograph into a binary image and reproducing the gradation in a pseudo manner. However, since the signal sequence binarized by the random dither method has no periodicity and white and black appear at random, the above-described prediction method for determining the coincidence with the immediately preceding pixel is sufficient. The compression ratio cannot be obtained.

【0004】このようなランダムディザ法により2値化
された信号系列に対して圧縮効率を高める方法として、
例えば特開平4−239271号公報に記載されている
ように、注目画素に隣接または近接する複数の画素から
なる領域の信号値の組み合わせからなる状態値をアドレ
スとして予測テーブルに入力し、出力される予測値を用
い、予測誤差データを生成している。
As a method of improving the compression efficiency for a signal sequence binarized by such a random dither method,
For example, as described in Japanese Patent Application Laid-Open No. 4-239271, a state value formed by a combination of signal values of a region including a plurality of pixels adjacent to or adjacent to a target pixel is input as an address to a prediction table and output. The prediction value is used to generate prediction error data.

【0005】予測誤差データを符号化する方法の一つと
して、算術符号化方式がある。算術符号化方式は、例え
ば特公平1−17295号公報に示されているように、
数直線上の領域を入力されたシンボルの1,0の発生確
率に合わせて分割し、入力シンボルの値によって領域を
選択する。このとき、予測と一致したシンボル(優勢シ
ンボル)をMPS(More probable Sy
mbol)、一致しないシンボル(劣性シンボル)をL
PS(Less probable Symbol)と
呼ぶ。
An arithmetic coding method is one of the methods for coding the prediction error data. The arithmetic coding method is, for example, as disclosed in Japanese Patent Publication No. 1-17295.
The area on the number line is divided according to the occurrence probabilities of 1 and 0 of the input symbol, and the area is selected according to the value of the input symbol. At this time, a symbol (predominant symbol) that matches the prediction is set to MPS (More probable Sy).
mbol), L that is a non-matching symbol (recessive symbol)
It is called PS (Less probable Symbol).

【0006】図5は、算術符号化の概念図である。斜線
で示した領域が、それぞれシンボルの符号化終了後の有
効領域である。初期状態では、有効領域は[0,1)区
間であり、LPS発生時の領域幅LSZ(0)が設定さ
れている。1−LSZ(0)がMPS発生時の領域幅で
ある。ここではシンボルが「0」のときをMPS、
「1」のときをLPSとする。図5において確率値は2
進数で示している。
FIG. 5 is a conceptual diagram of arithmetic coding. The hatched areas are the effective areas after the symbol coding is completed. In the initial state, the effective area is the [0, 1) section, and the area width LSZ (0) when LPS occurs is set. 1-LSZ (0) is the region width when MPS occurs. Here, the MPS is when the symbol is “0”,
When it is "1", it is set as LPS. In FIG. 5, the probability value is 2
It is shown in a decimal number.

【0007】図5では、最初に入力されたシンボルが
「0」であるので、MPSの発生により有効領域は図5
(A)においてハッチングを施した領域となる。そして
この有効領域内をLPS発生時とMPS発生時の領域に
分割する新たな領域幅LSZ(1)を設定する。次のシ
ンボルが「1」のときは、LPSの発生により図5
(B)においてハッチングを施した領域が有効領域とな
る。同様にして、3番目のシンボルが「0」のとき、図
5(C)においてハッチングを施した領域が有効領域と
なり、さらに4番目のシンボルが「1」のとき、図5
(D)においてハッチングを施した領域が有効領域とな
る。
In FIG. 5, since the first input symbol is "0", the effective area is changed to that shown in FIG.
The hatched area in (A). Then, a new area width LSZ (1) that divides the effective area into areas when LPS occurs and when MPS occurs is set. When the next symbol is "1", the occurrence of LPS causes
The hatched area in (B) is the effective area. Similarly, when the third symbol is “0”, the hatched area in FIG. 5C is the effective area, and when the fourth symbol is “1”, the area shown in FIG.
The hatched area in (D) is the effective area.

【0008】出力される符号はCで表わされる。入力さ
れたシンボル列「0101」に対する符号は、図5
(D)における有効領域内の1点とすればよい。ここで
は、有効領域の基底、すなわち有効領域の最も小さい値
C(3)を符号として表わし、出力することになる。
The output code is represented by C. The code for the input symbol string “0101” is shown in FIG.
It may be one point in the effective area in (D). Here, the basis of the effective area, that is, the smallest value C (3) of the effective area is represented as a code and output.

【0009】算術符号化においては、符号化の過程で、
有効領域の1点を符号とするため、領域を大きくとれ
ば、有効桁が減り符号量が減る。つまり、MPS発生時
にはなるべくLSZの値を小さくし、LPS発生時には
なるべくLSZの値を大きくすることによって、有効領
域を多く確保でき、符号量を減らすことができる。
In arithmetic coding, in the process of coding,
Since one point in the effective area is used as a code, if the area is made large, the effective digits decrease and the code amount decreases. In other words, by reducing the value of LSZ as much as possible when MPS occurs and increasing the value of LSZ as much as possible when LPS occurs, it is possible to secure a large effective area and reduce the code amount.

【0010】このようにMPS、LPSの発生確率推定
値は、予測的中率などによって変化させることによって
高効率な符号化を実現できる。例えば特開平2−285
776号公報には、状態値ごとに注目画素の画素値の出
現履歴に応じて変化するインデックスを付与し、インデ
ックスに対応した符号化パラメータを用いて算術符号化
を行なうことによって、符号化すべき画像の特徴に適し
た効率的な符号化を行なっている。符号化パラメータと
しては、予測値およびLSZ値が適応的に変更される。
As described above, highly efficient coding can be realized by changing the estimated probability of occurrence of MPS and LPS according to the predictive predictive value or the like. For example, JP-A-2-285
In Japanese Patent No. 776, an image to be coded is provided by assigning an index that changes according to the appearance history of the pixel value of the pixel of interest for each state value and performing arithmetic coding using a coding parameter corresponding to the index. Efficient encoding that is suitable for the characteristics of. As the encoding parameter, the predicted value and the LSZ value are adaptively changed.

【0011】図6は、従来の符号化装置の一例を示すブ
ロック図である。図中、1は画像信号、2はラインメモ
リ、3はラインメモリ出力、4は状態決定回路、5は状
態信号、6は確率状態保存メモリ、7はインデックス、
8は優勢シンボル、9は符号化パラメータテーブル、1
0は符号化パラメータ、11はインデックス更新回路、
12は新優勢シンボル、13は新インデックス、14は
EX−NOR回路、15は予測信号、16は算術符号
器、17は符号、18は遷移先インデックステーブル、
19は遷移先インデックス、20,21,22,23,
24,25はフリップフロップである。
FIG. 6 is a block diagram showing an example of a conventional coding apparatus. In the figure, 1 is an image signal, 2 is a line memory, 3 is a line memory output, 4 is a state determination circuit, 5 is a state signal, 6 is a probability state storage memory, 7 is an index,
8 is a dominant symbol, 9 is a coding parameter table, 1
0 is an encoding parameter, 11 is an index update circuit,
12 is a new dominant symbol, 13 is a new index, 14 is an EX-NOR circuit, 15 is a prediction signal, 16 is an arithmetic encoder, 17 is a code, 18 is a transition destination index table,
19 is a transition destination index, 20, 21, 22, 23,
Reference numerals 24 and 25 are flip-flops.

【0012】2値の画像信号1はラインメモリ2に入力
され、複数行分のデータが保持される。ここからのライ
ンメモリ出力3を状態決定回路4に入力する。状態決定
回路4は、注目画素と隣接あるいは近接画素群のそれぞ
れの値から注目画素が所属する状態を決定する。図7
は、状態決定回路で参照する画素の一例の説明図であ
る。Pを注目画素とすると、その画素Pに隣接あるいは
近接する参照画素X9 〜X0 を参照するように構成する
ことができる。参照する画素は図7に示すパターンに限
らない。また、動的に参照する画素を変更する場合もあ
る。
The binary image signal 1 is input to the line memory 2 and holds data for a plurality of lines. The line memory output 3 from here is input to the state determination circuit 4. The state determination circuit 4 determines the state to which the target pixel belongs from the respective values of the target pixel and the adjacent or adjacent pixel groups. Figure 7
FIG. 3 is an explanatory diagram of an example of a pixel referred to by a state determination circuit. When P is a pixel of interest, reference pixels X 9 to X 0 adjacent to or adjacent to the pixel P can be referred to. The pixel to be referred to is not limited to the pattern shown in FIG. Also, the pixel to be dynamically referenced may be changed.

【0013】状態決定回路4で決定した注目画素が所属
する状態を表わす状態信号5(CX)は、フリップフロ
ップ20を介して確率状態保存メモリ6に入力される。
図8は、確率状態保存メモリの内容の一例の説明図であ
る。図8に示した例では、確率状態保存メモリ6には状
態信号5(CX)で表わされる状態ごとに、出現しやす
いシンボル(優勢シンボルMPS)と、注目画素の画素
値の出現履歴によって遷移するインデックス(ST)が
記憶されている。なお、状態信号5(CX)は2進数で
示しているが、この例では図7に示す参照画素X9 〜X
0 のそれぞれの画素値に対応させて示している。例え
ば、参照画素X0 の値のみが「1」で他の参照画素は
「0」であれば、状態信号5(CX)として「0000
000001」が確率状態保存メモリ6に与えられ、M
PS「1」とインデックス「2」が得られる。
The state signal 5 (CX) representing the state to which the pixel of interest belongs, which is determined by the state determining circuit 4, is input to the stochastic state storage memory 6 via the flip-flop 20.
FIG. 8 is an explanatory diagram of an example of the contents of the probability state storage memory. In the example shown in FIG. 8, the probability state storage memory 6 makes a transition for each state represented by the state signal 5 (CX) depending on the symbol (dominant symbol MPS) that is likely to appear and the appearance history of the pixel value of the target pixel. The index (ST) is stored. The status signal 5 (CX) is shown in binary, but in this example, the reference pixels X 9 to X shown in FIG. 7 are used.
It is shown corresponding to each pixel value of 0 . For example, if only the value of the reference pixel X 0 is “1” and the other reference pixels are “0”, the status signal 5 (CX) is “0000”.
000001 ”is given to the stochastic state storage memory 6, and M
PS "1" and index "2" are obtained.

【0014】確率状態保存メモリ6から読み出されたM
PS8はEX−NOR回路14において、フリップフロ
ップ21を介して入力された画像信号1、すなわち注目
画素の値と比較され、一致した場合は1、不一致の場合
は0となる予測信号15を出力する。一方、インデック
ス7(ST)は符号化パラメータテーブル9に入力され
る。図9は、符号化パラメータテーブルの一例の説明図
である。符号化パラメータテーブル9には、インデック
ス7(ST)に対応た符号化パラメータが記憶されてい
る。図9に示した例では、符号化パラメータとして、出
現しにくいシンボル(劣勢シンボルLPS)の出現確率
LSZを格納している。例えば、ステートが「2」のと
き、LSZとして「0x1114」が得られる。ここ
で、「0x」で始まる数値は、16進数である。入力さ
れるインデックス7(ST)に対応して符号化パラメー
タテーブル9から読み出された符号化パラメータ10
(LSZ)は、算術符号器16で用いられる。
M read from the stochastic state storage memory 6
In the EX-NOR circuit 14, the PS8 is compared with the image signal 1 input through the flip-flop 21, that is, the value of the pixel of interest, and outputs a prediction signal 15 that is 1 when they match and 0 when they do not match. . On the other hand, the index 7 (ST) is input to the coding parameter table 9. FIG. 9 is an explanatory diagram of an example of the encoding parameter table. The coding parameter table 9 stores coding parameters corresponding to the index 7 (ST). In the example shown in FIG. 9, the appearance probability LSZ of a symbol (inferior symbol LPS) that is unlikely to appear is stored as an encoding parameter. For example, when the state is "2", "0x1114" is obtained as the LSZ. Here, the numerical value starting with "0x" is a hexadecimal number. Coding parameter 10 read from coding parameter table 9 corresponding to input index 7 (ST)
(LSZ) is used by the arithmetic encoder 16.

【0015】遷移先インデックステーブル18は、現在
のインデックスから次に遷移する可能性のある遷移先イ
ンデックス19をインデックス更新回路11に供給す
る。図10は、遷移先インデックステーブルの一例の説
明図である。図10に示した遷移先インデックステーブ
ルでは、インデックス7(ST)に対応して、画像信号
がMPSと一致したときに遷移(MPS遷移)する可能
性のあるインデックスNMPSと、一致しなかった時に
遷移(LPS遷移)する可能性のあるインデックスNL
PSが記憶されている。このほか、確率状態保存メモリ
6に保持されているMPSの値を更新可能か否かを示す
フラグを付加することもある。遷移先インデックステー
ブル18は、確率状態保存メモリ6から出力されるイン
デックス7(ST)に従い、遷移先インデックス19と
してインデックスNMPSとインデックスNLPSをイ
ンデックス更新回路11に出力する。
The transition destination index table 18 supplies to the index update circuit 11 the transition destination index 19 which has the possibility of the next transition from the current index. FIG. 10 is an explanatory diagram of an example of the transition destination index table. In the transition destination index table shown in FIG. 10, corresponding to index 7 (ST), there is a possibility of transition (MPS transition) when the image signal matches MPS, and transition when it does not match. Index NL that has the possibility of (LPS transition)
PS is stored. In addition, a flag indicating whether or not the MPS value held in the probability state storage memory 6 can be updated may be added. The transition destination index table 18 outputs the index NMPS and the index NLPS as the transition destination index 19 to the index update circuit 11 according to the index 7 (ST) output from the probability state storage memory 6.

【0016】インデックス更新回路11では予測信号1
5およびLSZ10を用いて確率状態保存メモリ6を書
き換えるか否かの判定をある条件に従って行なう。確率
状態保存メモリ6を書き換える場合には、遷移先インデ
ックステーブル18から与えられる遷移先インデックス
19のうちのインデックスNMPSまたはインデックス
NLPSを予測信号15に従って選択し、新インデック
ス13とする。また、確率状態保存メモリ6から出力さ
れるMPS8に従い、新優勢シンボル12を生成して出
力する。新優勢シンボル12および新インデックス13
はそれぞれフリップフロップ22および23でラッチさ
れ、次のクロックで確率状態保存メモリ6の内容を書き
換える。
In the index update circuit 11, the prediction signal 1
5 and LSZ 10 are used to determine whether to rewrite the stochastic state storage memory 6 according to a certain condition. When rewriting the probability state storage memory 6, the index NMPS or the index NLPS of the transition destination indexes 19 given from the transition destination index table 18 is selected according to the prediction signal 15 and is set as the new index 13. Further, the new dominant symbol 12 is generated and output according to the MPS 8 output from the probability state storage memory 6. New dominant symbol 12 and new index 13
Are latched by flip-flops 22 and 23, respectively, and the contents of the probability state storage memory 6 are rewritten at the next clock.

【0017】インデックス更新回路11のアルゴリズム
は符号化の方式によって異なるが、例えばISO115
44で勧告されている、いわゆるJBIG方式では、算
術符号化で用いられるオージェントレジスタAの正規化
の際に確率状態保存メモリ6の書き換えを行なう。正規
化とは、オージェントレジスタAの値が0.5<A<
1.0の範囲におさまるように、レジスタをシフトする
操作のことである。
The algorithm of the index update circuit 11 differs depending on the encoding method, but for example, ISO115.
In the so-called JBIG method recommended by S.44, the probability state storage memory 6 is rewritten when normalizing the augent register A used in arithmetic coding. Normalization means that the value of the orient register A is 0.5 <A <
It is an operation to shift a register so that it falls within the range of 1.0.

【0018】算術符号器16は、それぞれフリップフロ
ップ24および25を介して入力される予測信号15お
よびLSZ10を用いて算術符号化を行ない、符号17
を出力する。
The arithmetic encoder 16 performs arithmetic encoding using the prediction signal 15 and the LSZ 10 input via the flip-flops 24 and 25, respectively, and the reference numeral 17
Is output.

【0019】上述の符号化装置の動作を、具体例を用い
ながら説明する。図11は、入力される画像データの一
具体例の説明図である。図11では、図7に示す部分の
画像データ1のみを示している。図11に示すように、
状態信号5(CX)が「0000000011」(X9
〜X0 )のとき、注目画素Pが1であった場合を考え
る。確率状態保存メモリ6、符号化パラメータテーブル
9、遷移先インデックステーブル18には、それぞれ図
8、図9、図10に示す内容が設定されているものとす
る。
The operation of the above coding apparatus will be described by using a specific example. FIG. 11 is an explanatory diagram of a specific example of input image data. In FIG. 11, only the image data 1 of the portion shown in FIG. 7 is shown. As shown in FIG.
Status signal 5 (CX) is "0000000011" (X 9
˜X 0 ), consider the case where the pixel of interest P is 1. It is assumed that the stochastic state storage memory 6, the coding parameter table 9, and the transition destination index table 18 have the contents shown in FIGS. 8, 9, and 10, respectively.

【0020】まず、状態信号5(CX)として「000
0000011」が確率状態保存メモリ6に入力され
る。この時、確率状態保存メモリ6には、状態信号5
(CX)「0000000011」に対応して、図8に
示すように、MPS「0」とインデックス「80」が格
納されている。確率状態保存メモリ6から読み出された
インデックス「80」は、符号化パラメータテーブル9
および遷移先インデックステーブル18に入力される。
次に符号化パラメータテーブル9のインデックス「8
0」が参照され、LSZ「0x5832」が読み出さ
れ、算術符号器16に出力される。
First, "000" is given as the status signal 5 (CX).
“0000011” is input to the probability state storage memory 6. At this time, the state signal 5 is stored in the probability state storage memory 6.
Corresponding to (CX) "0000000011", MPS "0" and index "80" are stored as shown in FIG. The index “80” read from the stochastic state storage memory 6 is the encoding parameter table 9
And the transition destination index table 18 are input.
Next, the index “8” of the encoding parameter table 9
0 ”is referred to, LSZ“ 0x5832 ”is read out, and output to the arithmetic encoder 16.

【0021】このとき、注目画素Pの値は「1」である
が、符号化パラメータテーブル9から読み出されたMP
Sは「0」であるため、LPSが発生した、ということ
になる。LPSが発生した場合、このLSZが基本的に
次の有効領域となる。LSZは、通常、0.5未満であ
るから、0.5以上1未満になるように正規化が行なわ
れる。インデックス更新回路11は、遷移先インデック
ステーブル18におけるインデックス「80」に対応し
たNLPSの値「80」を新インデックス13として、
確率状態保存メモリ6の状態信号5(CX)「0000
000011」に対応するインデックスとして上書きさ
れる。また、MPSは反転されて新優勢シンボル12が
「1」となり、状態信号5(CX)「00000000
11」に対応するMPSとして上書きされる。図12
は、書き換え後の確率状態保存メモリ6の一具体例の説
明図である。このようにして図12に示すように、確率
状態保存メモリ6の状態信号5(CX)「000000
0011」に対応するMPSおよびインデックスが書き
換えられる。この書き換えられた後の確率状態保存メモ
リ6を用いて、次の画像データ1についての予測を行な
うことになる。次に同じコンテキストが入力された場合
は、予測値が1となっている。
At this time, although the value of the pixel of interest P is "1", MP read from the encoding parameter table 9
Since S is "0", it means that LPS has occurred. When LPS occurs, this LSZ basically becomes the next effective area. Since LSZ is usually less than 0.5, normalization is performed so as to be 0.5 or more and less than 1. The index update circuit 11 sets the NLPS value “80” corresponding to the index “80” in the transition destination index table 18 as the new index 13,
State signal 5 (CX) “0000 of probability state storage memory 6
It is overwritten as an index corresponding to "000011". Also, the MPS is inverted and the new superior symbol 12 becomes "1", and the status signal 5 (CX) "00000000".
11 ”is overwritten as the MPS corresponding to. 12
FIG. 7 is an explanatory diagram of a specific example of the stochastic state storage memory 6 after rewriting. In this way, as shown in FIG. 12, the state signal 5 (CX) “000000” of the stochastic state storage memory 6 is set.
The MPS and index corresponding to "0011" are rewritten. The rewritten probability state storage memory 6 is used to predict the next image data 1. When the same context is input next, the predicted value is 1.

【0022】この例ではLPSが発生したが、MPSが
発生した場合には、正規化を行なったときには確率状態
保存メモリ6のインデックスを遷移先インデックステー
ブル18のNMPS「81」に書き換える。書き換え
後、次に同じ状態信号5(CX)が入力された場合、イ
ンデックスが「81」であり、このときのLSZは図9
から「0x4d1c」となる。この値は、インデックス
「80」のときのLSZ「0x5832」よりも小さ
く、つまりLPSが発生する確率が小さいことを意味す
る。これは、前回の同じ状態信号5(CX)の時の予測
が当たったため、次に同じ状態信号5(CX)が入力さ
れた場合、MPSが発生時の領域幅を広げておき、再度
予測が当たった場合に有効領域を広くとれるようにした
ものであり、最終的な有効領域を増大させ、符号量を減
少させることができる。
Although LPS occurs in this example, if MPS occurs, the index in the probability state storage memory 6 is rewritten to NMPS "81" in the transition destination index table 18 when normalization is performed. After the rewriting, when the same state signal 5 (CX) is input next time, the index is “81”, and the LSZ at this time is as shown in FIG.
Becomes “0x4d1c”. This value is smaller than LSZ “0x5832” at the time of index “80”, that is, the probability that LPS will occur is small. This is because the prediction at the same state signal 5 (CX) of the previous time was correct. Therefore, when the same state signal 5 (CX) is input next time, the region width when the MPS occurs is widened and the prediction is performed again. When it hits, the effective area can be widened, and the final effective area can be increased and the code amount can be reduced.

【0023】このような回路によれば、確率状態保存メ
モリ6の内容を書き換えながら符号化を行なうため、算
術符号化による符号量を減らすことができ、高効率な符
号化を実現できる。しかしながら、前述の符号化装置で
は、フリップフロップ20とフリップフロップ22およ
び23の間に確率状態保存メモリ6、符号化パラメータ
テーブル9および遷移先インデックステーブル19、イ
ンデックス更新回路11が存在し、これらの回路の遅延
時間の合計が符号化装置全体の動作速度を決めてしま
う。例えば、確率状態保存メモリ6の読み出しには最大
12ns、符号化パラメータテーブル9および遷移先イ
ンデックステーブル19の読み出しには最大13ns、
そしてインデックス更新回路11には最大25ns程度
の遅延が生じるとすれば、符号化装置全体では20MH
z程度でしか動作しない。
According to such a circuit, since the coding is performed while rewriting the contents of the probability state storage memory 6, it is possible to reduce the code amount by arithmetic coding and realize highly efficient coding. However, in the above-described encoding device, the probability state storage memory 6, the encoding parameter table 9, the transition destination index table 19, and the index updating circuit 11 exist between the flip-flop 20 and the flip-flops 22 and 23, and these circuits are provided. The total of the delay times of the above decides the operation speed of the entire encoding device. For example, a maximum of 12 ns for reading the probability state storage memory 6, a maximum of 13 ns for reading the coding parameter table 9 and the transition destination index table 19,
If the index update circuit 11 has a maximum delay of about 25 ns, the entire encoding device has a delay of 20 MH.
Only works at z.

【0024】動作速度を高速化するために通常用いられ
る手法として、各処理のうち独立に実行できる処理をパ
イプライン化して並列に実行させることが知られてい
る。しかし、図6に示した従来の符号化装置では、上述
の具体例でも示したように、インデックスの更新が生じ
た場合には確率状態保存メモリ6の内容も変化するた
め、フリップフロップ20とフリップフロップ22およ
び23の間をさらにパイプライン化することができず、
符号化装置の動作速度を向上させることが困難であると
いう問題点があった。
As a method generally used to increase the operation speed, it is known that among the processes, those processes that can be executed independently are pipelined and executed in parallel. However, in the conventional encoding device shown in FIG. 6, as shown in the above-described specific example, the contents of the probability state storage memory 6 also change when the index is updated, so that the flip-flop 20 and the flip-flop 20 are not changed. Could not be further pipelined between
There is a problem that it is difficult to improve the operation speed of the encoding device.

【0025】[0025]

【発明が解決しようとする課題】本発明は、上述した事
情に鑑みてなされたもので、符号化装置の符号化パラメ
ータテーブルの読み出しとインデックスの変更をパイプ
ライン化でき、高速に符号化を行なうことができる画像
データ符号化装置を提供することを目的とするものであ
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned circumstances, and the reading of the coding parameter table of the coding apparatus and the change of the index can be pipelined, and the coding can be performed at high speed. It is an object of the present invention to provide an image data encoding device that can be used.

【0026】[0026]

【課題を解決するための手段】請求項1に記載の発明
は、画像データ符号化装置において、入力された2値画
像信号を順次格納するメモリと、前記2値画像信号の1
つを注目画素信号とし前記メモリに格納される注目画素
に隣接または近接する複数の2値画像信号の値の組み合
わせからなる状態値によって注目画素を分類し前記状態
値ごとに特定の画素値の出現確率に対応して適宜更新さ
れるインデックスを保存する確率状態保存メモリと、前
記確率状態保存メモリに保存されている前記インデック
スに対応した第1のパラメータを供給する第1のパラメ
ータ保持手段と、前記インデックスが更新される可能性
のある少なくとも一つのインデックスに対応した第2の
パラメータを供給する第2のパラメータ保持手段と、前
記確率状態保存メモリに保存されている前記インデック
スを更新する更新手段と、前記状態値が直前の状態値と
等しくかつ前記更新手段によるインデックスの更新が行
なわれた場合は前記第2のパラメータ保持手段の出力の
一つを選択し他の場合は第1のパラメータ保持手段の出
力を選択する選択手段と、該選択手段によって選択され
たパラメータに従って画像信号を算術符号化する算術符
号器を有することを特徴とするものである。
According to a first aspect of the present invention, in an image data encoding device, a memory for sequentially storing input binary image signals, and one of the binary image signals are stored.
One pixel of interest is defined as a pixel of interest signal, and the pixel of interest is classified by a state value consisting of a combination of values of a plurality of binary image signals adjacent to or adjacent to the pixel of interest stored in the memory, and a specific pixel value appears for each state value A probability state storage memory that stores an index that is appropriately updated corresponding to a probability; a first parameter holding unit that supplies a first parameter corresponding to the index stored in the probability state storage memory; Second parameter holding means for supplying a second parameter corresponding to at least one index whose index may be updated; updating means for updating the index stored in the stochastic state storage memory; If the state value is equal to the immediately preceding state value and the index is updated by the updating means, Selecting means for selecting one of the outputs of the second parameter holding means and for selecting the output of the first parameter holding means in other cases, and arithmetic for arithmetically encoding the image signal according to the parameter selected by the selecting means It is characterized by having an encoder.

【0027】請求項2に記載の発明は、請求項1に記載
の画像データ符号化装置において、前記第2のパラメー
タ保持手段は、前記インデックスがアドレスとして入力
され、前記インデックスが更新される可能性のある二つ
のインデックスに対応した二つのパラメータを前記アド
レスに格納した記憶装置であることを特徴とするもので
ある。
According to a second aspect of the present invention, in the image data encoding apparatus according to the first aspect, the second parameter holding means may receive the index as an address and update the index. It is a storage device in which two parameters corresponding to two indexes are stored at the address.

【0028】請求項3に記載の発明は、請求項1に記載
の画像データ符号化装置において、前記第2のパラメー
タ保持手段は、前記インデックスが更新される可能性の
ある複数のインデックスのうちの一つが選択的にアドレ
スとして入力され、選択されたインデックスに対応した
パラメータを前記アドレスに格納した記憶装置であるこ
とを特徴とするものである。
According to a third aspect of the present invention, in the image data encoding apparatus according to the first aspect, the second parameter holding means is one of a plurality of indexes in which the index may be updated. One is a memory device in which one is selectively input as an address and a parameter corresponding to the selected index is stored in the address.

【0029】[0029]

【発明の実施の形態】図1は、本発明の画像データ符号
化装置の第1の実施の形態を示す構成図である。図中、
図6と同様の部分には同じ符号を付して説明を省略す
る。31,32はセレクタ、33は遷移信号、34,3
5は符号化パラメータ、36は第1の符号化パラメータ
テーブル、37は第2の符号化パラメータテーブル、3
8,39,40はフリップフロップである。
1 is a block diagram showing a first embodiment of an image data coding apparatus according to the present invention. In the figure,
The same parts as those in FIG. 6 are designated by the same reference numerals and the description thereof will be omitted. 31 and 32 are selectors, 33 is a transition signal, 34 and 3
5 is an encoding parameter, 36 is a first encoding parameter table, 37 is a second encoding parameter table, 3
Reference numerals 8, 39 and 40 are flip-flops.

【0030】第1の符号化パラメータテーブル36は図
6における符号化パラメータテーブル9と同一のもので
あり、インデックスSTに対応した符号化パラメータL
SZが記憶されている。この第1の実施の形態では、第
1の符号化パラメータテーブル36とは別に、第2の符
号化パラメータテーブル37を有している。第2の符号
化パラメータテーブル35には、各インデックスSTか
らMPS遷移した場合の遷移先インデックスに対応した
符号化パラメータLSZ’およびLPS遷移した場合の
遷移先インデックスに対応した符号化パラメータLS
Z”が記憶されている。セレクタ31は、第1の符号化
パラメータテーブル36から読み出される符号化パラメ
ータLSZ、第2の符号化パラメータテーブル37から
読み出されるMPS遷移した場合の遷移先インデックス
に対応した符号化パラメータLSZ’、LPS遷移した
場合の遷移先インデックスに対応した符号化パラメータ
LSZ”のうちのいずれかを、インデックス更新回路1
1から出力される遷移信号33に従って切り換える。セ
レクタ32は、確率状態保存メモリ6から出力される優
勢シンボル8(MPS)またはインデックス更新回路1
1から出力される新優勢シンボル12(MPS’)のい
ずれかを選択し、EX−NOR回路14に入力する。
The first coding parameter table 36 is the same as the coding parameter table 9 in FIG. 6, and the coding parameter L corresponding to the index ST is used.
SZ is stored. In the first embodiment, a second coding parameter table 37 is provided in addition to the first coding parameter table 36. In the second encoding parameter table 35, the encoding parameter LSZ ′ corresponding to the transition destination index when the MPS transition is made from each index ST and the encoding parameter LS corresponding to the transition destination index when the LPS transition is made.
Z ”is stored. The selector 31 corresponds to the encoding parameter LSZ read from the first encoding parameter table 36 and the transition destination index when the MPS transition is read from the second encoding parameter table 37. Any one of the coding parameter LSZ ′ and the coding parameter LSZ ″ corresponding to the transition destination index in the case of LPS transition is set to the index updating circuit 1
Switching is performed according to the transition signal 33 output from 1. The selector 32 uses the dominant symbol 8 (MPS) output from the probability state storage memory 6 or the index update circuit 1.
One of the new dominant symbols 12 (MPS ') output from 1 is selected and input to the EX-NOR circuit 14.

【0031】2値の画像信号1はラインメモリ2に入力
され、複数行分のデータが保持される。ラインメモリ3
からのラインメモリ出力3を状態決定回路4に入力する
ことにより、画像信号1中の注目画素が所属する状態が
決まる。決定した状態を表わす状態信号5(CX)は、
フリップフロップ20を介して確率状態保存メモリ6に
入力される。確率状態保存メモリ6には状態信号5(C
X)で表わされる状態ごとに、優勢シンボルMPSとイ
ンデックスSTが記憶されている。
The binary image signal 1 is input to the line memory 2 and the data for a plurality of lines is held. Line memory 3
By inputting the line memory output 3 from 1 to the state determining circuit 4, the state to which the pixel of interest in the image signal 1 belongs is determined. The status signal 5 (CX) representing the determined status is
It is input to the stochastic state storage memory 6 via the flip-flop 20. The state signal 5 (C
The dominant symbol MPS and the index ST are stored for each state represented by X).

【0032】確率状態保存メモリ6から読み出されたイ
ンデックス7(ST)は第1の符号化パラメータテーブ
ル36および第2の符号化パラメータテーブル35に入
力される。第1の符号化パラメータテーブル36から
は、インデックス7(ST)に対応した符号化パラメー
タ10(LSZ)が出力される。また、第2の符号化パ
ラメータテーブル35からは、インデックス7(ST)
からMPS遷移した場合の遷移先インデックスに対応し
た符号化パラメータ34(LSZ’)およびLPS遷移
した場合の遷移先インデックスに対応した符号化パラメ
ータ35(LSZ”)が出力される。セレクタ31は、
第1の符号化パラメータテーブル36および第2の符号
化パラメータテーブル37の出力のうち、状態信号5
(CX)が直前のクロックサイクルでの状態信号5(C
X)と同じで、インデックス更新回路11から出力され
る遷移信号33がMPS遷移を示している場合は符号化
パラメータ34(LSZ’)を、状態信号5(CX)が
直前のクロックサイクルでの状態信号5(CX)と同じ
で、遷移信号33がLPS遷移を示している場合は符号
化パラメータ35(LSZ”)を、その他の場合は符号
化パラメータ10(LSZ)を選択し、フリップフロッ
プ39を介してインデックス更新回路11および算術符
号器16に供給する。
The index 7 (ST) read from the probability state storage memory 6 is input to the first coding parameter table 36 and the second coding parameter table 35. From the first encoding parameter table 36, the encoding parameter 10 (LSZ) corresponding to the index 7 (ST) is output. Also, from the second encoding parameter table 35, the index 7 (ST)
To the encoding parameter 34 (LSZ ′) corresponding to the transition destination index when the MPS transition is made, and the encoding parameter 35 (LSZ ″) corresponding to the transition destination index when the LPS transition is made.
Of the outputs of the first coding parameter table 36 and the second coding parameter table 37, the status signal 5
(CX) is the status signal 5 (C
X) and the transition signal 33 output from the index update circuit 11 indicates an MPS transition, the encoding parameter 34 (LSZ ′) is set, and the state signal 5 (CX) is set in the immediately previous clock cycle. Same as the signal 5 (CX), the coding parameter 35 (LSZ ″) is selected when the transition signal 33 indicates the LPS transition, and the coding parameter 10 (LSZ) is selected otherwise, and the flip-flop 39 is selected. It is supplied to the index update circuit 11 and the arithmetic encoder 16 via the index update circuit 11.

【0033】セレクタ32は、状態信号5(CX)が直
前のクロックサイクルでの状態信号5(CX)と異なる
場合には優勢シンボル8(MPS)を選択し、そうでな
い場合にはインデックス更新回路11から出力される新
優勢シンボル12(MPS’)を選択して、EX−NO
R回路14の一方に入力する。EX−NOR回路14の
他方の入力にはフリップフロップ21を介して入力され
た画像信号1が入力される。EX−NOR回路14では
これら二つの入力信号が比較され、一致した場合は1、
不一致の場合は0となる予測信号15を出力する。
The selector 32 selects the dominant symbol 8 (MPS) when the status signal 5 (CX) is different from the status signal 5 (CX) in the immediately previous clock cycle, and selects the dominant symbol 8 (MPS) otherwise. Select the new superior symbol 12 (MPS ') output from the EX-NO
Input to one of the R circuits 14. The image signal 1 input via the flip-flop 21 is input to the other input of the EX-NOR circuit 14. In the EX-NOR circuit 14, these two input signals are compared, and if they match, it is 1,
When they do not match, the prediction signal 15 which becomes 0 is output.

【0034】遷移先インデックステーブル18は、遷移
先インデックス19として、MPS遷移が生じた場合の
遷移先インデックスであるNMPSとLPS遷移が生じ
た場合の遷移先インデックスであるNLPSをフリップ
フロップ38を介してインデックス更新回路11に供給
する。インデックス更新回路11は、予測信号15およ
びセレクタ31によって選択された符号化パラメータ1
0(LSZ)、符号化パラメータ34(LSZ’)、符
号化パラメータ35(LSZ”)のいずれかを用いて判
定処理を行ない、ある条件の下で確率状態保存メモリ6
内のMPSおよびインデックスSTをそれぞれ新優勢シ
ンボル12(MPS’)および新インデックス13(S
T’)に更新する。新インデックス13(ST’)の値
はあらかじめ遷移先インデックステーブル18から供給
された遷移先インデックス19から選択される。新優勢
シンボル12(MPS’)および新インデックス13
(ST’)はそれぞれフリップフロップ22および23
でラッチされ、次のクロックサイクルで確率状態保存メ
モリ6の内容を書き換える。さらに、インデックスの更
新の有無、および、更新が生じた場合にはMPS遷移と
LPS遷移のどちらによるものかを表わす遷移信号33
を出力する。
The transition destination index table 18 uses, as the transition destination index 19, the transition destination index NMPS when the MPS transition occurs and the transition destination index NLPS when the LPS transition occurs via the flip-flop 38. It is supplied to the index update circuit 11. The index update circuit 11 uses the prediction signal 15 and the coding parameter 1 selected by the selector 31.
0 (LSZ), the encoding parameter 34 (LSZ ′), or the encoding parameter 35 (LSZ ″) is used for the determination process, and the probability state storage memory 6 is stored under a certain condition.
The MPS and the index ST in the new dominant symbol 12 (MPS ') and the new index 13 (S
T '). The value of the new index 13 (ST ') is selected from the transition destination index 19 supplied from the transition destination index table 18 in advance. New dominant symbol 12 (MPS ') and new index 13
(ST ') is the flip-flops 22 and 23, respectively.
Are latched in and the contents of the stochastic state storage memory 6 are rewritten in the next clock cycle. Furthermore, a transition signal 33 indicating whether or not the index is updated and, if the update occurs, whether it is due to an MPS transition or an LPS transition.
Is output.

【0035】算術符号器16は、フリップフロップ40
を介して入力される予測信号15、および、フリップフ
ロップ39を介して入力されるセレクタ31によって選
択された符号化パラメータ10(LSZ)、符号化パラ
メータ34(LSZ’)、符号化パラメータ35(LS
Z”)のいずれかを用いて算術符号化を行ない、符号1
7を出力する。
The arithmetic encoder 16 includes a flip-flop 40.
Of the prediction signal 15 input via the flip-flop 39 and the coding parameter 10 (LSZ) selected by the selector 31 input via the flip-flop 39, the coding parameter 34 (LSZ ′), and the coding parameter 35 (LS).
Z ″) is used to perform arithmetic encoding, and the code 1
7 is output.

【0036】図2は、本発明の画像データ符号化装置の
第1の実施の形態における動作の一例を示すタイミング
チャートである。まず状態信号5(CX)が直前のクロ
ックサイクルから変化した場合の動作について、クロッ
クサイクル1で入力されたCX1に対しての動作を用い
て説明する。
FIG. 2 is a timing chart showing an example of the operation in the first embodiment of the image data coding apparatus of the present invention. First, the operation when the state signal 5 (CX) changes from the immediately previous clock cycle will be described using the operation for CX1 input in clock cycle 1.

【0037】クロックサイクル1で入力された状態信号
5であるCX1は、クロックサイクル2で確率状態保存
メモリ6に入力され、CX1に対応してインデックス7
としてST1が読み出される。直前のクロックサイクル
ではCX0に対応したインデックスSTaが更新される
が、CX0とCX1は異なるため、CX1のインデック
スST1には影響しない。ST1はクロックサイクル3
で第1の符号化パラメータテーブル36および第2の符
号化パラメータテーブル37に入力され、ST1に対応
する符号化パラメータLSZ1、ST1からMPS遷移
をしたときの符号化パラメータLSZ2およびST1か
らLPS遷移をしたときの符号化パラメータLSZcを
出力する。セレクタ31はこれらの中からLSZ1を選
択し、クロックサイクル4で算術符号器16に供給す
る。またクロックサイクル3では、インデックス更新回
路11で例えばMPS遷移が生じたと判定されたものと
すると、遷移先インデックス19からNMPSが選択さ
れ新インデックスST2として出力される。また、確率
状態保存メモリ6の書き換えは、クロックサイクル4で
行なわれる。
CX1 which is the status signal 5 input in the clock cycle 1 is input to the stochastic state storage memory 6 in the clock cycle 2 and the index 7 corresponding to CX1.
ST1 is read as. The index STa corresponding to CX0 is updated in the immediately preceding clock cycle, but since CX0 and CX1 are different, the index ST1 of CX1 is not affected. ST1 is clock cycle 3
At the first encoding parameter table 36 and the second encoding parameter table 37, the encoding parameters LSZ1 corresponding to ST1 and the encoding parameters LSZ2 and ST1 when the MPS transition is made from the ST1 are performed. Then, the encoding parameter LSZc is output. The selector 31 selects LSZ1 from these and supplies it to the arithmetic encoder 16 in clock cycle 4. Further, in the clock cycle 3, assuming that the index update circuit 11 determines that, for example, an MPS transition has occurred, NMPS is selected from the transition destination index 19 and output as the new index ST2. The rewriting of the probability state storage memory 6 is performed in the clock cycle 4.

【0038】次に、直前のクロックサイクルと同じCX
が入力され、かつ直前のクロックサイクルでMPS遷移
が発生し、確率状態保存メモリ6の書き換えを行なう場
合の動作について、クロックサイクル2で入力されたC
X1に対する動作を用いて説明する。クロックサイクル
2で入力されたCX1は、クロックサイクル3で確率状
態保存メモリ6に入力される。直前のクロックサイクル
ではMPS遷移が生じているため、CX1に対応したイ
ンデックスは更新後のインデックスST2であるべきで
ある。しかしながら、確率状態保存メモリ6の書き換え
はクロックサイクル4で行なわれるため、クロックサイ
クル3ではクロックサイクル2と同じST1が読み出さ
れてしまう。従ってクロックサイクル4では第1の符号
化パラメータテーブル36および第2の符号化パラメー
タテーブル37から符号化パラメータLSZ1、ST1
からMPS遷移をしたときの符号化パラメータLSZ2
およびST1からLPS遷移をしたときの符号化パラメ
ータLSZcが読み出される。セレクタ31はこれらの
中から正しい符号化パラメータLSZ2を選択し、クロ
ックサイクル5で算術符号器16に供給する。それとと
もに、確率状態保存メモリ6から出力されている優勢シ
ンボル8は更新前のものであるため、インデックス更新
回路12から出力されている新優勢シンボル23をセレ
クタ32で選択し、EX−NOR回路14で予測信号1
5を作成して算術符号器16に供給する。なお、ここで
はクロックサイクル4においてインデックス更新回路1
1で更新が生じないことが判定されたものとし、確率状
態保存メモリ6の書き換えは行なわれないとする。
Next, the same CX as the immediately previous clock cycle
Is input and the MPS transition occurs in the immediately previous clock cycle, and the operation of rewriting the stochastic state storage memory 6 is performed, the C input in the clock cycle 2 is input.
The operation for X1 will be described. The CX1 input in the clock cycle 2 is input to the stochastic state storage memory 6 in the clock cycle 3. Since the MPS transition has occurred in the immediately previous clock cycle, the index corresponding to CX1 should be the updated index ST2. However, since the rewriting of the probability state storage memory 6 is performed in the clock cycle 4, the same ST1 as in the clock cycle 2 is read in the clock cycle 3. Therefore, in clock cycle 4, the coding parameters LSZ1 and ST1 are read from the first coding parameter table 36 and the second coding parameter table 37.
Parameter LSZ2 when the MPS transition is made from
And the encoding parameter LSZc at the time of the LPS transition from ST1 is read. The selector 31 selects the correct encoding parameter LSZ2 from these and supplies it to the arithmetic encoder 16 in clock cycle 5. At the same time, since the dominant symbol 8 output from the probability state storage memory 6 is before updating, the new dominant symbol 23 output from the index updating circuit 12 is selected by the selector 32, and the EX-NOR circuit 14 is selected. Predicted signal 1
5 is created and supplied to the arithmetic encoder 16. Here, in the clock cycle 4, the index update circuit 1
It is assumed that it is determined that the update does not occur in 1, and the probability state storage memory 6 is not rewritten.

【0039】次に、直前のクロックサイクルと同じCX
が入力され、かつ直前のクロックサイクルでMPS遷移
もLPS遷移も起きない場合の動作について、クロック
サイクル3で入力されたCX1に対する動作を用いて説
明する。クロックサイクル3で入力されたCX1は、ク
ロックサイクル4で確率状態保存メモリ6に入力され
る。この時、二つ前のクロックサイクルのMPS遷移に
よってインデックスは正しいインデックスST2に書き
換えられている。ST2はクロックサイクル5で第1の
符号化パラメータテーブル36および第2の符号化パラ
メータテーブル37に入力され、ST2に対応する符号
化パラメータLSZ2、ST2からMPS遷移をしたと
きの符号化パラメータLSZdおよびST2からLPS
遷移をしたときの符号化パラメータLSZ3を出力す
る。セレクタ31はこれらの中からLSZ2を選択し、
クロックサイクル6で算術符号器16に供給する。ま
た、例えばクロックサイクル5において、インデックス
更新回路11でLPS遷移が生じたことが判定された場
合、更新後のインデックスST3が出力される。確率状
態保存メモリ6の書き換えはクロックサイクル6で行な
われる。
Next, the same CX as the immediately previous clock cycle
Will be described, and the operation when neither MPS transition nor LPS transition occurs in the immediately previous clock cycle will be described using the operation for CX1 input in clock cycle 3. The CX1 input in the clock cycle 3 is input to the probability state storage memory 6 in the clock cycle 4. At this time, the index is rewritten to the correct index ST2 by the MPS transition of the clock cycle two before. ST2 is input to the first coding parameter table 36 and the second coding parameter table 37 at clock cycle 5, and the coding parameters LSZ2 corresponding to ST2 and the coding parameters LSZd and ST2 when the MPS transition is made from ST2. To LPS
The coding parameter LSZ3 at the time of the transition is output. The selector 31 selects LSZ2 from these,
It is supplied to the arithmetic encoder 16 in the clock cycle 6. Further, for example, in the clock cycle 5, when the index update circuit 11 determines that the LPS transition has occurred, the updated index ST3 is output. Rewriting of the stochastic state storage memory 6 is performed in the clock cycle 6.

【0040】最後に直前のクロックサイクルと同じCX
が入力され、かつ直前のクロックサイクルでLPS遷移
がおきた場合の動作について、クロックサイクル4で入
力されたCX1に対する動作を用いて説明する。クロッ
クサイクル4で入力されたCX1は、クロックサイクル
5で確率状態保存メモリ6に入力される。直前のクロッ
クサイクルではLPS遷移が生じているため、CX1に
対応したインデックスは更新後のインデックスST3で
あるべきである。しかしながら、確率状態保存メモリ6
の書き換えはクロックサイクル6で行なわれるため、ク
ロックサイクル5ではクロックサイクル4と同じST2
が読み出されてしまう。従ってクロックサイクル6では
第1および第2の符号化パラメータテーブルから符号化
パラメータLSZ2、ST2からMPS遷移をしたとき
の符号化パラメータLSZdおよびST2からLPS遷
移をしたときの符号化パラメータLSZ3が読み出され
る。セレクタ31はこれらの中から正しい符号化パラメ
ータLSZ3を選択し、クロックサイクル7で算術符号
器16に供給する。それとともに、確率状態保存メモリ
6から出力されている優勢シンボル8は更新前のもので
あるため、インデックス更新回路12から出力されてい
る新優勢シンボル23をセレクタ32で選択し、EX−
NOR回路14で予測信号15を作成して算術符号器1
6に供給する。
Finally, the same CX as the immediately previous clock cycle
Is input and the LPS transition occurs in the immediately previous clock cycle, the operation for CX1 input in clock cycle 4 will be described. The CX1 input in the clock cycle 4 is input to the probability state storage memory 6 in the clock cycle 5. Since the LPS transition has occurred in the immediately previous clock cycle, the index corresponding to CX1 should be the updated index ST3. However, the probability state storage memory 6
Is rewritten in clock cycle 6, so in clock cycle 5, ST2, which is the same as clock cycle 4, is written.
Will be read. Therefore, in the clock cycle 6, the coding parameters LSZ2, the coding parameter LSZd at the time of the MPS transition from ST2 and the coding parameter LSZ3 at the time of the LPS transition from ST2 are read from the first and second coding parameter tables. The selector 31 selects the correct encoding parameter LSZ3 from these and supplies it to the arithmetic encoder 16 in clock cycle 7. At the same time, the dominant symbol 8 output from the stochastic state storage memory 6 has not been updated yet, so the new dominant symbol 23 output from the index update circuit 12 is selected by the selector 32 and EX-
Prediction signal 15 is created by NOR circuit 14 and arithmetic encoder 1
Supply to 6.

【0041】以上のように第1の実施の形態では、第1
の符号化パラメータテーブル36および第2の符号化パ
ラメータテーブル37とインデックス更新回路11の間
にセレクタ31を設け、確率状態保存メモリ6のインデ
ックスの更新と、更新中の符号化パラメータの第2の符
号化パラメータテーブル37からの読み出しを同時に行
なえるようにして、符号化パラメータの読み出し処理と
インデックスの更新処理を並列化することが可能となっ
た。これにより符号化装置の動作速度を律速するのは、
確率状態保存メモリ6と、第1の符号化パラメータテー
ブル36あるいは第2の符号化パラメータテーブル37
の読み出し時間の和またはインデックス更新回路11の
遅延時間となる。例えば、確率状態保存メモリ6の読み
出しに最大12ns、第1の符号化パラメータテーブル
36または第2の符号化パラメータテーブル37の読み
出しに最大13ns、そしてインデックス更新回路11
には最大25ns程度の遅延が生じるとすると、装置全
体は40MHz程度で動作できるようになり、従来の符
号化装置の20MHzに比べ、高速な処理が可能であ
る。
As described above, in the first embodiment, the first
The selector 31 is provided between the encoding parameter table 36 and the second encoding parameter table 37 and the index update circuit 11 to update the index of the probability state storage memory 6 and the second code of the encoding parameter being updated. By making it possible to read from the encoding parameter table 37 at the same time, it becomes possible to parallelize the encoding parameter reading process and the index updating process. This limits the operating speed of the encoder by
Probability state storage memory 6 and first encoding parameter table 36 or second encoding parameter table 37
Or the delay time of the index update circuit 11. For example, a maximum of 12 ns for reading the probability state storage memory 6, a maximum of 13 ns for reading the first encoding parameter table 36 or the second encoding parameter table 37, and the index updating circuit 11
Assuming that a maximum delay of about 25 ns occurs, the entire apparatus can operate at about 40 MHz, which enables high-speed processing as compared with the conventional encoding apparatus of 20 MHz.

【0042】図3は、本発明の画像データ符号化装置の
第2の実施の形態を示す構成図である。図中、図1と同
様の部分には同じ符号を付して説明を省略する。41は
セレクタである。画像信号1の入力から確率状態保存メ
モリ6の読み出しまでと、予測信号15の出力、および
遷移先インデックステーブル18に関しては第1の実施
の形態と同じである。この例では、第2の符号化パラメ
ータテーブル37は、遷移先インデックステーブル18
から出力される遷移先インデックス19であるNMPS
あるいはNLPSのうちのいずれかがセレクタ41で選
択されて入力される。
FIG. 3 is a block diagram showing the second embodiment of the image data encoding apparatus of the present invention. In the figure, the same parts as those in FIG. 41 is a selector. The process from the input of the image signal 1 to the reading of the probability state storage memory 6, the output of the prediction signal 15, and the transition destination index table 18 are the same as those in the first embodiment. In this example, the second encoding parameter table 37 is the transition destination index table 18
NMPS that is the transition destination index 19 output from
Alternatively, one of the NLPS is selected by the selector 41 and input.

【0043】第2の符号化パラメータテーブル37に
は、第1の符号化パラメータテーブル36と同様にイン
デックスSTに対応した符号化パラメータLSZが保存
されている。またセレクタ41は、遷移先インデックス
テーブル18から出力されるNMPSおよびNLPSの
うち、予測信号15が1の時はNMPSを、0の時はN
LPSを選択して、第2の符号化パラメータテーブル3
7に供給する。第2の符号化パラメータテーブル37
は、セレクタ41で選択された遷移先インデックス19
のうちのNMPSまたはNLPSに従い、符号化パラメ
ータ34(LSZ’)を出力する。
Similar to the first coding parameter table 36, the second coding parameter table 37 stores the coding parameter LSZ corresponding to the index ST. Further, the selector 41 selects NMPS when the prediction signal 15 is 1 out of NMPS and NLPS output from the transition destination index table 18, and N when it is 0.
LPS is selected and the second encoding parameter table 3
Supply to 7. Second encoding parameter table 37
Is the transition destination index 19 selected by the selector 41.
The encoding parameter 34 (LSZ ') is output according to NMPS or NLPS of the above.

【0044】第1の符号化パラメータテーブル36に
は、インデックスSTに対応した符号化パラメータLS
Zが保存されており、インデックス7(ST)に対応し
た符号化パラメータ10(LSZ)が読み出される。セ
レクタ31は、状態信号5(CX)が直前のクロックサ
イクルでの状態信号5(CX)と同じで、インデックス
更新回路11から出力される遷移信号33がインデック
スの更新の発生を示している場合は、第2の符号化パラ
メータテーブル37から出力される符号化パラメータ3
4(LSZ’)を、他の場合は符号化パラメータ10
(LSZ)を選択し、フリップフロップ39を介してイ
ンデックス更新回路11および算術符号器16に供給す
る。
In the first coding parameter table 36, the coding parameters LS corresponding to the index ST are stored.
Z is stored, and the coding parameter 10 (LSZ) corresponding to the index 7 (ST) is read. When the status signal 5 (CX) is the same as the status signal 5 (CX) in the immediately previous clock cycle and the transition signal 33 output from the index update circuit 11 indicates that the index update has occurred, the selector 31 , The encoding parameter 3 output from the second encoding parameter table 37
4 (LSZ '), otherwise encoding parameter 10
(LSZ) is selected and supplied to the index update circuit 11 and the arithmetic encoder 16 via the flip-flop 39.

【0045】インデックス更新回路11は、予測信号1
5およびセレクタ31によって選択された符号化パラメ
ータ10(LSZ)または符号化パラメータ34(LS
Z’)のいずれかを用いて判定処理を行ない、ある条件
の下でMPSおよびインデックスSTをそれぞれ新優勢
シンボル12(MPS’)および新インデックス13
(ST’)に更新する。新インデックス13(ST’)
の値はあらかじめ遷移先インデックステーブル18から
供給されたインデックス19から選択される。新優勢シ
ンボル12(MPS’)および新インデックス13(S
T’)はそれぞれフリップフロップ22および23でラ
ッチされ、次のクロックサイクルで確率状態保存メモリ
6の内容を書き換える。さらにインデックスの更新の有
無を表わす遷移信号33を出力する。
The index update circuit 11 uses the prediction signal 1
5 and the coding parameter 10 (LSZ) or the coding parameter 34 (LS) selected by the selector 31.
Z ') is used to perform the determination process, and under certain conditions, the MPS and index ST are set as the new dominant symbol 12 (MPS') and the new index 13 respectively.
Update to (ST '). New index 13 (ST ')
The value of is selected from the index 19 supplied from the transition destination index table 18 in advance. New dominant symbol 12 (MPS ') and new index 13 (S
T ′) is latched by the flip-flops 22 and 23, respectively, and rewrites the contents of the stochastic state storage memory 6 in the next clock cycle. Further, a transition signal 33 indicating whether or not the index is updated is output.

【0046】また、算術符号器16はそれぞれフリップ
フロップ39を介して入力される予測信号15、および
セレクタ32で選択された符号化パラメータ10(LS
Z)、または符号化パラメータ34(LSZ’)のいず
れかを用いて算術符号化を行ない、符号17を出力す
る。
Further, the arithmetic encoder 16 receives the prediction signal 15 input through the flip-flop 39 and the encoding parameter 10 (LS) selected by the selector 32, respectively.
Z) or the encoding parameter 34 (LSZ ') is used to perform arithmetic encoding, and the code 17 is output.

【0047】図4は、本発明の画像データ符号化装置の
第2の実施の形態における動作の一例を示すタイミング
チャートである。まず、状態信号5(CX)が直前のク
ロックサイクルから変化した場合の動作について、クロ
ックサイクル1で入力されたCX1に対しての動作を用
いて説明する。
FIG. 4 is a timing chart showing an example of the operation of the second embodiment of the image data coding apparatus of the present invention. First, the operation when the status signal 5 (CX) changes from the immediately previous clock cycle will be described using the operation for CX1 input in clock cycle 1.

【0048】クロックサイクル1で入力されたCX1
は、クロックサイクル2で確率状態保存メモリ6に入力
され、CX1に対応したインデックスST1が読み出さ
れる。直前のクロックサイクルでCX0に対応したイン
デックスが更新されたとしても、状態信号5が異なるた
め、CX1のインデックスST1には影響しない。ST
1はクロックサイクル3で第1の符号化パラメータテー
ブル36に入力され、ST1に対応する符号化パラメー
タLSZ1を出力する。セレクタ31は、第2の符号化
パラメータテーブル37の出力LSZbと第1の符号化
パラメータテーブル36からの出力LSZ1のうちから
LSZ1を選択し、クロックサイクル4で算術符号器1
6に供給する。それとともに、セレクタ32は確率状態
保存メモリ6から読み出される優勢シンボル8(MP
S)とインデックス更新回路11から出力される新優勢
シンボル23(MPS’)のうちから優勢シンボル8
(MPS)を選択してEX−NOR回路14に入力し、
予測信号15を作成して算術符号器16に供給する。こ
の予測信号15に従って、セレクタ41は遷移先インデ
ックステーブル18から出力される遷移先インデックス
19のうちからNMPSあるいはNLPSを選択して第
2の符号化パラメータテーブル37に供給する。またク
ロックサイクル3ではインデックス更新回路11でMP
SまたはLPS遷移が生じたことが判定され、更新後の
インデックスST2が出力される。確率状態保存メモリ
6の書き換えはクロックサイクル4で行なわれる。
CX1 input in clock cycle 1
Is input to the probability state storage memory 6 in clock cycle 2, and the index ST1 corresponding to CX1 is read. Even if the index corresponding to CX0 is updated in the immediately preceding clock cycle, since the status signal 5 is different, it does not affect the index ST1 of CX1. ST
1 is input to the first encoding parameter table 36 at clock cycle 3 and outputs the encoding parameter LSZ1 corresponding to ST1. The selector 31 selects LSZ1 from the output LSZb of the second encoding parameter table 37 and the output LSZ1 from the first encoding parameter table 36, and in the clock cycle 4, the arithmetic encoder 1
Supply to 6. At the same time, the selector 32 causes the dominant symbol 8 (MP
S) and the new dominant symbol 23 (MPS ') output from the index update circuit 11
Select (MPS) and input to the EX-NOR circuit 14,
The prediction signal 15 is created and supplied to the arithmetic encoder 16. According to the prediction signal 15, the selector 41 selects NMPS or NLPS from the transition destination indexes 19 output from the transition destination index table 18 and supplies it to the second encoding parameter table 37. In clock cycle 3, the index update circuit 11 uses MP
It is determined that an S or LPS transition has occurred, and the updated index ST2 is output. Rewriting of the stochastic state storage memory 6 is performed in the clock cycle 4.

【0049】次に、直前のクロックサイクルと同じCX
が入力され、かつ直前のクロックサイクルでMPS遷移
またはLPS遷移が発生して確率状態保存メモリ6の更
新を行なう場合の動作について、クロックサイクル2で
入力されたCX1に対する動作を用いて説明する。クロ
ックサイクル2で入力されたCX1は、クロックサイク
ル3で確率状態保存メモリ6に入力される。直前のクロ
ックサイクルではMPS遷移またはLPS遷移が生じて
いるため、CX1に対応したインデックスは更新後のイ
ンデックスST2であるべきである。しかしながら、確
率状態保存メモリ6の書き換えはクロックサイクル4で
行なわれるため、クロックサイクル3ではクロックサイ
クル2と同じST1が読み出されてしまう。従ってクロ
ックサイクル4では第1の符号化パラメータテーブル3
6から符号化パラメータLSZ1が読み出される。一
方、第2の符号化パラメータテーブル37には直前のク
ロックサイクルにおける遷移先インデックスST2が入
力されており、ST2に対応した符号化パラメータLS
Z2が読み出される。セレクタ31はこれらの中から正
しい符号化パラメータLSZ2を選択し、クロックサイ
クル5で算術符号器16に供給する。また、セレクタ3
2は新優勢シンボル23(MPS’)を選択し、EX−
NOR回路14で予測信号15を作成して算術符号器1
6に供給する。ここでは、クロックサイクル4において
インデックス更新回路11で更新が生じないことが判定
されたとする。従って、確率状態保存メモリ6の書き換
えは行なわれないとする。
Next, the same CX as the immediately previous clock cycle
Is input and the MPS transition or LPS transition occurs in the immediately previous clock cycle to update the stochastic state storage memory 6, the operation for the CX1 input in clock cycle 2 will be described. The CX1 input in the clock cycle 2 is input to the stochastic state storage memory 6 in the clock cycle 3. Since the MPS transition or the LPS transition has occurred in the immediately previous clock cycle, the index corresponding to CX1 should be the updated index ST2. However, since the rewriting of the probability state storage memory 6 is performed in the clock cycle 4, the same ST1 as in the clock cycle 2 is read in the clock cycle 3. Therefore, in clock cycle 4, the first encoding parameter table 3
The encoding parameter LSZ1 is read from 6. On the other hand, the transition destination index ST2 in the immediately previous clock cycle is input to the second encoding parameter table 37, and the encoding parameter LS corresponding to ST2 is input.
Z2 is read. The selector 31 selects the correct encoding parameter LSZ2 from these and supplies it to the arithmetic encoder 16 in clock cycle 5. Also, selector 3
2 selects the new superior symbol 23 (MPS ') and EX-
Prediction signal 15 is created by NOR circuit 14 and arithmetic encoder 1
Supply to 6. Here, it is assumed that the index update circuit 11 determines that the update does not occur in the clock cycle 4. Therefore, it is assumed that the probability state storage memory 6 is not rewritten.

【0050】次に、直前のクロックサイクルと同じCX
が入力され、かつ直前のクロックサイクルでMPS遷移
もLPS遷移も起きない場合の動作について、クロック
サイクル3で入力されたCX1に対する動作を用いて説
明する。クロックサイクル3で入力されたCX1は、ク
ロックサイクル4で確率状態保存メモリ6に入力され
る。この時、二つ前のクロックサイクルのMPS遷移ま
たはLPS遷移によってインデックスは正しいインデッ
クスST2に書き換えられている。ST2はクロックサ
イクル5で第1の符号化パラメータテーブル36に入力
され、ST2に対応する符号化パラメータLSZ2を出
力する。セレクタ31は第2の符号化パラメータテーブ
ル37から出力される符号化パラメータLSZcと第1
の符号化パラメータテーブル36から出力されるLSZ
2のうちからLSZ2を選択し、クロックサイクル6で
算術符号器16に供給する。この場合には、セレクタ3
2は優勢シンボル8(MPS)を選択し、EX−NOR
回路14で予測信号15を作成して算術符号器16に供
給する。
Next, the same CX as the immediately previous clock cycle
Will be described, and the operation when neither MPS transition nor LPS transition occurs in the immediately previous clock cycle will be described using the operation for CX1 input in clock cycle 3. The CX1 input in the clock cycle 3 is input to the probability state storage memory 6 in the clock cycle 4. At this time, the index is rewritten to the correct index ST2 by the MPS transition or LPS transition of the clock cycle two before. ST2 is input to the first encoding parameter table 36 in clock cycle 5 and outputs the encoding parameter LSZ2 corresponding to ST2. The selector 31 outputs the first encoding parameter LSZc output from the second encoding parameter table 37 and the first encoding parameter LSZc.
LSZ output from the encoding parameter table 36 of
LSZ2 is selected from 2 and supplied to the arithmetic encoder 16 in the clock cycle 6. In this case, selector 3
2 selects the superior symbol 8 (MPS) and EX-NOR
The circuit 14 produces the prediction signal 15 and supplies it to the arithmetic encoder 16.

【0051】以上のように、この第2の実施の形態でも
上述の第1の実施の形態と同様に、第1の符号化パラメ
ータテーブル36および第2の符号化パラメータテーブ
ル37とインデックス更新回路11との間にセレクタ3
4を設け、確率状態保存メモリ6の更新処理と第2の符
号化パラメータテーブル37による符号化パラメータの
読み出し処理とを並列化することが可能となった。これ
により、符号化装置の動作速度を律速するのは確率状態
保存メモリ6と第1の符号化パラメータテーブル36あ
るいは第2の符号化パラメータテーブル37の読み出し
時間との和、またはインデックス更新回路11の遅延時
間となる。例えば、確率状態保存メモリ6の読み出しに
最大12ns、第1の符号化パラメータテーブル36ま
たは第2の符号化パラメータテーブル37の読み出しに
は最大13ns、そしてインデックス更新回路11には
最大25ns程度の遅延が生じるとすると、装置全体は
40MHz程度で動作できるようになり、従来の符号化
装置の20MHzと比べ、高速処理が可能である。
As described above, also in the second embodiment, the first encoding parameter table 36, the second encoding parameter table 37, and the index updating circuit 11 are provided as in the first embodiment described above. Between selector 3
4, it is possible to parallelize the updating process of the probability state storage memory 6 and the reading process of the coding parameter by the second coding parameter table 37. As a result, the operation speed of the encoding device is limited by the sum of the stochastic state storage memory 6 and the read time of the first encoding parameter table 36 or the second encoding parameter table 37, or the index updating circuit 11. It becomes a delay time. For example, there is a maximum delay of 12 ns for reading the probability state storage memory 6, a maximum of 13 ns for reading the first coding parameter table 36 or the second coding parameter table 37, and a maximum delay of about 25 ns for the index updating circuit 11. If it occurs, the entire device can operate at about 40 MHz, which enables high-speed processing as compared with 20 MHz of the conventional encoding device.

【0052】なお、上述の各実施の形態では確率状態保
存メモリ6の出力にフリップフロップを設けていない
が、新たにフリップフロップを設けてパイプラインの段
数を増やすこともできる。
In each of the above-mentioned embodiments, the flip-flop is not provided at the output of the stochastic state storage memory 6, but a new flip-flop may be provided to increase the number of pipeline stages.

【0053】[0053]

【発明の効果】以上の説明から明らかなように、本発明
によれば、符号化パラメータテーブルの読み出し処理と
インデックスの変更処理を並列して行なうことができる
ので、これらの処理をパイプライン化でき、処理速度の
高速な画像データ符号化装置を実現することができると
いう効果がある。
As is apparent from the above description, according to the present invention, the process of reading the coding parameter table and the process of changing the index can be performed in parallel, so that these processes can be pipelined. There is an effect that it is possible to realize an image data encoding device with a high processing speed.

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

【図1】 本発明の画像データ符号化装置の第1の実施
の形態を示す構成図である。
FIG. 1 is a configuration diagram showing a first embodiment of an image data encoding device of the present invention.

【図2】 本発明の画像データ符号化装置の第1の実施
の形態における動作の一例を示すタイミングチャートで
ある。
FIG. 2 is a timing chart showing an example of operation in the first embodiment of the image data encoding device of the present invention.

【図3】 本発明の画像データ符号化装置の第2の実施
の形態を示す構成図である。
FIG. 3 is a configuration diagram showing a second embodiment of an image data encoding device of the present invention.

【図4】 本発明の画像データ符号化装置の第2の実施
の形態における動作の一例を示すタイミングチャートで
ある。
FIG. 4 is a timing chart showing an example of operation in the second embodiment of the image data encoding device of the present invention.

【図5】 算術符号化の概念図である。FIG. 5 is a conceptual diagram of arithmetic coding.

【図6】 従来の符号化装置の一例を示すブロック図で
ある。
FIG. 6 is a block diagram showing an example of a conventional encoding device.

【図7】 状態決定回路で参照する画素の一例の説明図
である。
FIG. 7 is an explanatory diagram of an example of pixels referred to by a state determination circuit.

【図8】 確率状態保存メモリの内容の一例の説明図で
ある。
FIG. 8 is an explanatory diagram of an example of contents of a stochastic state storage memory.

【図9】 符号化パラメータテーブルの一例の説明図で
ある。
FIG. 9 is an explanatory diagram of an example of an encoding parameter table.

【図10】 遷移先インデックステーブルの一例の説明
図である。
FIG. 10 is an explanatory diagram of an example of a transition destination index table.

【図11】 入力される画像データの一具体例の説明図
である。
FIG. 11 is an explanatory diagram of a specific example of input image data.

【図12】 書き換え後の確率状態保存メモリ6の一具
体例の説明図である。
FIG. 12 is an explanatory diagram of a specific example of the stochastic state storage memory 6 after rewriting.

【符号の説明】 1…画像信号、2…ラインメモリ、3…ラインメモリ出
力、4…状態決定回路、5…状態信号、6…確率状態保
存メモリ、7…インデックス、8…優勢シンボル、9…
符号化パラメータテーブル、10…符号化パラメータ、
11…インデックス更新回路、12…新優勢シンボル、
13…新インデックス、14…EX−NOR回路、15
…予測信号、16…算術符号器、17…符号、18…遷
移先インデックステーブル、19…遷移先インデック
ス、20,21,22,23,24,25,38,3
9,40…フリップフロップ、31,32,41…セレ
クタ、33…遷移信号、34,35…符号化パラメー
タ、36…第1の符号化パラメータテーブル、37…第
2の符号化パラメータテーブル。
[Explanation of Codes] 1 ... Image signal, 2 ... Line memory, 3 ... Line memory output, 4 ... State determination circuit, 5 ... State signal, 6 ... Stochastic state storage memory, 7 ... Index, 8 ... Dominant symbol, 9 ...
Coding parameter table, 10 ... Coding parameter,
11 ... Index update circuit, 12 ... New superior symbol,
13 ... New index, 14 ... EX-NOR circuit, 15
... prediction signal, 16 ... arithmetic encoder, 17 ... code, 18 ... transition destination index table, 19 ... transition destination index, 20, 21, 22, 23, 24, 25, 38, 3
9, 40 ... Flip-flops, 31, 32, 41 ... Selectors, 33 ... Transition signals, 34, 35 ... Encoding parameters, 36 ... First encoding parameter table, 37 ... Second encoding parameter table.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力された2値画像信号を順次格納する
メモリと、前記2値画像信号の1つを注目画素信号とし
前記メモリに格納される注目画素に隣接または近接する
複数の2値画像信号の値の組み合わせからなる状態値に
よって注目画素を分類し前記状態値ごとに特定の画素値
の出現確率に対応して適宜更新されるインデックスを保
存する確率状態保存メモリと、前記確率状態保存メモリ
に保存されている前記インデックスに対応した第1のパ
ラメータを供給する第1のパラメータ保持手段と、前記
インデックスが更新される可能性のある少なくとも一つ
のインデックスに対応した第2のパラメータを供給する
第2のパラメータ保持手段と、前記確率状態保存メモリ
に保存されている前記インデックスを更新する更新手段
と、前記状態値が直前の状態値と等しくかつ前記更新手
段によるインデックスの更新が行なわれた場合は前記第
2のパラメータ保持手段の出力の一つを選択し他の場合
は第1のパラメータ保持手段の出力を選択する選択手段
と、該選択手段によって選択されたパラメータに従って
画像信号を算術符号化する算術符号器を有することを特
徴とする画像データ符号化装置。
1. A memory for sequentially storing input binary image signals, and a plurality of binary images adjacent to or in proximity to a pixel of interest stored in the memory with one of the binary image signals as a pixel of interest signal. A probability state storage memory that classifies a pixel of interest according to a state value composed of a combination of signal values and stores an index that is appropriately updated corresponding to the appearance probability of a specific pixel value for each state value; A first parameter holding means for supplying a first parameter corresponding to the index stored in, and a second parameter for supplying at least one index with which the index may be updated. 2 parameter holding means, updating means for updating the index stored in the stochastic state storage memory, and the state value directly If it is equal to the previous state value and the index is updated by the updating means, one of the outputs of the second parameter holding means is selected; otherwise, the output of the first parameter holding means is selected. An image data coding apparatus comprising: a selecting unit and an arithmetic encoder that arithmetically codes an image signal according to a parameter selected by the selecting unit.
【請求項2】 前記第2のパラメータ保持手段は、前記
インデックスがアドレスとして入力され、前記インデッ
クスが更新される可能性のある二つのインデックスに対
応した二つのパラメータを前記アドレスに格納した記憶
装置であることを特徴とする請求項1に記載の画像デー
タ符号化装置。
2. The second parameter holding means is a storage device in which the index is input as an address and two parameters corresponding to two indexes with which the index may be updated are stored in the address. The image data encoding device according to claim 1, wherein the image data encoding device is provided.
【請求項3】 前記第2のパラメータ保持手段は、前記
インデックスが更新される可能性のある複数のインデッ
クスのうちの一つが選択的にアドレスとして入力され、
選択されたインデックスに対応したパラメータを前記ア
ドレスに格納した記憶装置であることを特徴とする請求
項1に記載の画像データ符号化装置。
3. The second parameter holding unit is selectively input with one of a plurality of indexes in which the index may be updated as an address,
The image data encoding device according to claim 1, wherein the image data encoding device is a storage device that stores a parameter corresponding to the selected index at the address.
JP30188996A 1996-11-13 1996-11-13 Image data encoding device Expired - Fee Related JP3484900B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30188996A JP3484900B2 (en) 1996-11-13 1996-11-13 Image data encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30188996A JP3484900B2 (en) 1996-11-13 1996-11-13 Image data encoding device

Publications (2)

Publication Number Publication Date
JPH10145609A JPH10145609A (en) 1998-05-29
JP3484900B2 true JP3484900B2 (en) 2004-01-06

Family

ID=17902359

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30188996A Expired - Fee Related JP3484900B2 (en) 1996-11-13 1996-11-13 Image data encoding device

Country Status (1)

Country Link
JP (1) JP3484900B2 (en)

Also Published As

Publication number Publication date
JPH10145609A (en) 1998-05-29

Similar Documents

Publication Publication Date Title
JP2000115783A (en) Decoding device and method
JP3684128B2 (en) Arithmetic encoding / decoding method and arithmetic encoding / decoding device
US5617089A (en) Huffman code decoding circuit
JP3621512B2 (en) Digital information encoding apparatus, digital information decoding apparatus, digital information encoding / decoding apparatus, digital information encoding method, and digital information decoding method
JP3593884B2 (en) Encoding device and decoding device
JP2002033925A (en) Method arithmetic encoding and decoding, and apparatus for arithmetic encoding and decoding
JPH09298668A (en) Digital information encoding device, digital information decoding device, digital information encoding / decoding device, digital information encoding method, and digital information decoding method
JP3459759B2 (en) Arithmetic decoding device
JP3484900B2 (en) Image data encoding device
JP2001189661A (en) Encoding device and decoding device
JP2002094386A (en) Encoding device, decoding device, encoding method and decoding method
JP3119025B2 (en) Encoding device and decoding device
CN110365346A (en) A kind of arithmetic entropy coding method and system
US6882751B2 (en) Arithmetic decoding method and device and storage medium
JP3871995B2 (en) Encoding device and decoding device
JP2729165B2 (en) Image processing apparatus and processing method thereof
US6549665B1 (en) Image signal processing device
JP3235510B2 (en) Encoding method and encoding device, decoding method and decoding device
CN119625087B (en) JBIG arithmetic coding and decoding method and system
JP4086481B2 (en) Arithmetic decoding method and apparatus, and storage medium
JP3141794B2 (en) Decryption device
JP2000278538A (en) Device and method for arithmetic encoding/decoding
JP3146109B2 (en) Binary image coding device
JP3302253B2 (en) Information encoding / decoding method and apparatus
JP3427651B2 (en) Arithmetic coding apparatus and flash processing method thereof

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071024

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081024

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091024

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees