JPH04122174A - Encoding device - Google Patents

Encoding device

Info

Publication number
JPH04122174A
JPH04122174A JP24321290A JP24321290A JPH04122174A JP H04122174 A JPH04122174 A JP H04122174A JP 24321290 A JP24321290 A JP 24321290A JP 24321290 A JP24321290 A JP 24321290A JP H04122174 A JPH04122174 A JP H04122174A
Authority
JP
Japan
Prior art keywords
state
context
symbol
pixel
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP24321290A
Other languages
Japanese (ja)
Other versions
JP2504316B2 (en
Inventor
Tomohiro Kimura
智広 木村
Fumitaka Ono
文孝 小野
Shigenori Kino
茂徳 木野
Masayuki Yoshida
雅之 吉田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP24321290A priority Critical patent/JP2504316B2/en
Publication of JPH04122174A publication Critical patent/JPH04122174A/en
Application granted granted Critical
Publication of JP2504316B2 publication Critical patent/JP2504316B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To decide a succeeding state transition suitable for the tendency in the increase/decrease in a code degree order by providing the history of the tendency in the increase/decrease in a probability with another state by the history of the past transition so as to separate the route of the state transition. CONSTITUTION:A history management table 57 stores a state number to be transited next based on a coding symbol for each state and a context resident state generated by a context reference table 13 is revised to a succeeding state and when prediction value conversion is commanded, a prediction value with respect to a context is revised simultaneously and the history of the state transition is managed. A coder 18 receives A coding symbol outputted from a symbol converter 14 and a code degree number outputted from a probability estimate table 15 to implement coding outputs a code. Thus, a succeeding state transition destination suitable for the state is decided.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は1画像の符号化において画素が変換された符
号化シンボルあるいは復号化シンボルの発生状況に応じ
て、符号化パラメータおよび復号化パラメータを動的に
切り替えることにより符号化効率を向上させる符号化装
置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] This invention sets encoding parameters and decoding parameters according to the generation status of encoded symbols or decoded symbols whose pixels are converted in encoding one image. The present invention relates to an encoding device that improves encoding efficiency by dynamically switching.

[従来の技術] 第4図は、従来の符号化装置における符号化部を示すブ
ロック図である。第4図において、11は画像の入力を
画素単位で行う画像入力部、12は画像入力部11から
入力された画素データを蓄えるメモリを制御するメモリ
制御部、13はメモリ制御部12に蓄えられた画素デー
タから符号化画素に対するコンテクストを生成させ、そ
のコンテクストに対して符号化の過程で更新されていく
予測値および滞在状態番号を記憶し、コンテクストの入
力により対応する予測値および滞在状態番号を示すコン
テクスト参照テーブル、14はコンテクスト参照テーブ
ル13の示す予測値と実際の符号化画素を比較して符号
化シンボルに変換するシンボル変換器、15はコンテク
スト参照テーブル13の示す滞在状態番号の状態に対応
する確率見積ものインデクスである符号次数を記憶し、
その符号次数を示す確率見積テーブル、16は確率見積
テーブル15の示す符号次数に対し上記シンボル変換器
から出力された符号化シンボルの優勢シンボル発生数を
カウントし、その状態に設定されたカウント数に達した
か否かおよび劣勢シンボルが発生したか否かによりカウ
ント値を制御するカウンタ、18はシンボル変換器14
で変換された符号化シンボルと確率見積テーブル15の
示す符号次数を入力として符号化を行って符号を出力す
る符号器、19は符号器18から出力された符号を復号
化部に伝送する伝送路である。
[Prior Art] FIG. 4 is a block diagram showing an encoding section in a conventional encoding device. In FIG. 4, 11 is an image input section that inputs an image pixel by pixel; 12 is a memory control section that controls a memory that stores pixel data input from the image input section 11; A context for the encoded pixel is generated from the pixel data, a predicted value and a stay state number that are updated during the encoding process are stored in the context, and the corresponding predicted value and stay state number are generated by inputting the context. 14 is a symbol converter that compares the predicted value shown in the context reference table 13 with the actual coded pixel and converts it into a coded symbol; 15 corresponds to the state of the staying state number shown in the context reference table 13; The code order, which is the index of the probability estimation, is memorized,
A probability estimation table 16 indicating the code order counts the number of occurrences of dominant symbols of the encoded symbols output from the symbol converter with respect to the code order indicated by the probability estimation table 15, and calculates the number of occurrences of dominant symbols set in the state. 18 is a symbol converter 14 that controls the count value depending on whether the symbol has been reached or not and whether an inferior symbol has occurred.
19 is a transmission line that transmits the code output from the encoder 18 to the decoding unit It is.

また、第5図は従来の符号化装置における復号化部を示
すブロック図である。第5図において。
Furthermore, FIG. 5 is a block diagram showing a decoding section in a conventional encoding device. In FIG.

31は符号化部から符号を伝送する伝送路、32は復号
済みの画素データを蓄えるメモリを制御するメモリ制御
部、33はメモリ制御部32に蓄えられた画素データか
ら復号化画素に対するコンテクストを生成させ、そのコ
ンテクストに対して復号化の過程で更新されていく予測
値および滞在状態番号を記憶しコンテクストの入力によ
り対応する予測値および滞在状態番号を示すコンテクス
ト参照テーブル、34はコンテゲスト参照テーブル33
の示す滞在状態番号の状態に対応する確率見積値のイン
デクスある符号次数を記憶し、その符号次数を示す確率
見積テーブル、35は伝送路31から受け取った符号と
確率見積テーブル34の示す符号次数を入力として復号
化を行って復号化シンボルを出力する復号器、36は確
率見積テーブル34の示す符号次数に対し復号器35か
ら出力された復号化シンボルの優勢シンボル発生数をカ
ウントし、その状態に設定されたカウント数に達したか
否かおよび劣勢シンボルが発生したか否かによりカウン
ト値を制御するカウンタ、38はコンテクスト参照テー
ブル33の示す予測値を復号器35から出力された復号
化シンボルと比較して画素に変換する画素変換器、39
は画素変換器により変換された画素を受け取って画像と
して出力する画像出力部である。
31 is a transmission path for transmitting codes from the encoding unit; 32 is a memory control unit that controls a memory that stores decoded pixel data; and 33 is a memory control unit that generates a context for decoded pixels from the pixel data stored in the memory control unit 32. A context reference table 34 stores predicted values and stay state numbers that are updated during the decoding process for that context, and indicates the corresponding predicted values and stay state numbers based on context input; 34 is a context guest reference table 33;
A probability estimation table 35 stores the index of the probability estimate value corresponding to the state of the stay state number indicated by and indicates the code order, and 35 stores the code received from the transmission path 31 and the code order indicated by the probability estimation table 34. A decoder 36 that performs decoding as an input and outputs decoded symbols counts the number of occurrences of dominant symbols of the decoded symbols output from the decoder 35 with respect to the code order indicated by the probability estimation table 34, and changes the number of dominant symbols to that state. A counter 38 controls the count value depending on whether a set count number has been reached and whether an inferior symbol has occurred. Pixel converter for comparing and converting into pixels, 39
is an image output unit that receives pixels converted by the pixel converter and outputs them as an image.

次に動作について説明する。Next, the operation will be explained.

まず、従来の符号化装置における符号化部の動作につい
て説明する。画像入力部11は9画像を画素単位で入力
を行い、メモリ制御部12およびシンボル変換器14に
順次送る。メモリ制御部12は、処理済みの画素をメモ
リに蓄積し、コンテクスト参照テーブル13の要求する
画素を出力する。コンテクスト参照テーブル13は、符
号化画素に対するコンテクストをメモリ制御部12に蓄
積された画素データ等から生成し、そのコンテクストに
対する滞在状態番号および予測値を示す。
First, the operation of the encoding section in a conventional encoding device will be explained. The image input section 11 inputs nine images pixel by pixel and sequentially sends them to the memory control section 12 and symbol converter 14. The memory control unit 12 stores the processed pixels in the memory and outputs the pixels requested by the context reference table 13. The context reference table 13 generates a context for a coded pixel from the pixel data stored in the memory control unit 12, and indicates a stay state number and predicted value for the context.

シンボル変換器14は1画像入力部11から入力された
画素とコンテクスト参照テーブル13の示す予測値をそ
の一致・不一致で表される符号化シンボル(以後、一致
した場合の符号化シンボルを優勢シンボルを優勢シンボ
ル、不一致の場合を劣勢シンボルと記す。)に変換する
。確率見積テーブル15は、コンテクスト参照テーブル
13の示す滞在状態番号の状態に対応する確率見積値の
インデグスである符号次数を記憶し、その符号次数を示
す。カウンタ16は、確率見積テーブル15の示す符号
次数ごとに用意され、シンボル変換器14で変換された
優勢シンボル数を計算し、その符号次数に設定された計
数値に達した場合および劣勢シンボルが発生した場合に
再初期化を行うとともにコンテクスト参照テーブル13
内のコンテクストに対応する符号次数を符号化シンボル
が優勢シンボルならば所定の段階上げ、劣勢シンボルな
らば所定の段階下げて更新する。ただし符号次数が最大
ならば符号次数はそのままとし、最小ならば符号次数は
そのままとし予測値を更新する。
The symbol converter 14 converts the pixel input from the one-image input unit 11 and the predicted value shown in the context reference table 13 into encoded symbols represented by their match/mismatch (hereinafter, the encoded symbols in the case of a match are referred to as dominant symbols). Convert to a dominant symbol, and in the case of a mismatch, a recessive symbol). The probability estimation table 15 stores the code order, which is the index of the probability estimate value corresponding to the state of the stay state number indicated by the context reference table 13, and indicates the code order. The counter 16 is prepared for each code degree indicated by the probability estimation table 15, and calculates the number of dominant symbols converted by the symbol converter 14, and when a count value set for the code degree is reached or an inferior symbol occurs. In this case, reinitialize the context reference table 13.
If the encoded symbol is a dominant symbol, the code order corresponding to the context within is updated by a predetermined step up, and if the coded symbol is a recessive symbol, it is updated by a predetermined step down. However, if the code degree is the maximum, the code degree is left as is, and if it is the minimum, the code degree is left as is and the predicted value is updated.

符号器18は、シンボル変換器14がら出力される符号
化シンボルとコンテクスト参照テーブル13から出力さ
れる符号次数を入力として符号化を行い、符号を出力す
る。出力された符号は、伝送路19から復号化部に伝送
される。
The encoder 18 receives the encoded symbols output from the symbol converter 14 and the code order output from the context reference table 13, performs encoding, and outputs a code. The output code is transmitted to the decoding section through the transmission path 19.

次に、従来の符号化装置における復号化部の動作につい
て説明する。符号化部から出力された符号は、伝送路3
1から受け取られる。メモリ制御部32は、復号済みの
画素をメモリに蓄積しコンテクスト参照テーブル33の
要求する画素を出力する。コンテクスト参照テーブル3
3は、復号化画素に対するコンテクストをメモリ制御部
32に蓄積された画素データ等から生成しそのコンテク
ストに対する滞在状態番号および予測値を示す。
Next, the operation of the decoding section in the conventional encoding device will be explained. The code output from the encoder is transmitted through transmission path 3.
Received from 1. The memory control unit 32 stores the decoded pixels in the memory and outputs the pixels requested by the context reference table 33. Context reference table 3
3 generates a context for a decoded pixel from the pixel data stored in the memory control unit 32, and indicates a staying state number and predicted value for the context.

確率見積テーブル34は、コンテクスト参照テーブル3
3の示す滞在状態番号の状態に対応する確率見積値のイ
ンデクスである符号次数を記憶し。
The probability estimation table 34 is the context reference table 3
The code order, which is the index of the estimated probability value corresponding to the state of the stay state number indicated by 3, is stored.

その符号次数を示す。復号器35は、伝送路31から受
け取った符号と確率見積テーブル34がら出力される符
号次数を入力として復号化を行い。
Indicates its code order. The decoder 35 receives the code received from the transmission path 31 and the code order outputted from the probability estimation table 34 and performs decoding.

復号化シンボルを出力する。カウンタ36は、コンテク
スト参照テーブル33の示す符号次数ごとに用意され、
復号器35で複合された優勢シンボルが復号化された場
合に再初期化を行うとともにコンテクスト参照テーブル
33内のコンテクストに対応する符号次数を符号化シン
ボルが優勢シンボルならば所定の段階上げ、劣勢シンボ
ルならば所定の段階下げて更新する。ただし、符号次数
が最大ならば符号次数はそのままとし、最小ならば符号
次数はそのままとし予測値を更新する。画素変換器38
は、復号器35でから復号された復号化シンボルを画素
に変換し、復号化シンボルが優勢シンボルならばコンテ
クスト参照テーブル33の示す予測値を画素値とし、劣
勢シンボルならば予測値でない値を画素値とする。画像
出力部39は9画素変換器38で変換された画素を画像
として出力する。
Output the decoded symbols. The counter 36 is prepared for each code degree indicated by the context reference table 33,
When the dominant symbol decoded by the decoder 35 is decoded, the code degree corresponding to the context in the context reference table 33 is increased by a predetermined step if the encoded symbol is a dominant symbol, and the code degree corresponding to the context in the context reference table 33 is increased by a predetermined step, and the code order is increased by a predetermined level for the inferior symbol. If so, update it by lowering it by a predetermined level. However, if the code degree is the maximum, the code degree is left as is, and if it is the minimum, the code degree is left as is and the predicted value is updated. Pixel converter 38
converts the decoded symbol decoded by the decoder 35 into a pixel, and if the decoded symbol is a dominant symbol, the predicted value indicated by the context reference table 33 is used as the pixel value, and if the decoded symbol is an inferior symbol, the value other than the predicted value is used as the pixel value. value. The image output unit 39 outputs the pixels converted by the 9-pixel converter 38 as an image.

また、第6図は従来の符号化装置の状態遷移の説明図テ
、例えばIBM J、RES、DEVELOP、VOL
 32 No。
FIG. 6 is an explanatory diagram of the state transition of a conventional encoding device, for example, IBM J, RES, DEVELOP, VOL.
32 No.

6 NOVEMBER1988第756頁に示されたも
のに相当する。第6図において、状対数6の例を示して
おり1図中の円は状態を示し2円内の数字は状態の符号
次数を示している。符号次数は、符号化シンボルおよび
復号化シンボルをその生起確率で分けたグループを識別
するための番号であり、符号次数の小さい方が生起確率
も小さい。第6図では一つの符号次数に対して、一つの
状態が対応している。状態に発生した優勢シンボルのカ
ウンタ計数値に達したときは図中の矢印M、劣勢シンボ
ルが発生したときには図中の矢印りに沿って状態を遷移
し、第6図では符号次数を1段階遷移している。状態を
遷移する際に、符号次数が最大ならば符号次数はそのま
まとし、最小ならば符号次数はそのままとして予測値を
更新する。
6 NOVEMBER 1988, page 756. FIG. 6 shows an example of a logarithm of 6, where the circles in FIG. 1 indicate the states and the numbers within the 2 circles indicate the code order of the states. The code order is a number for identifying groups in which coded symbols and decoded symbols are divided by their probability of occurrence, and the smaller the code order, the smaller the probability of occurrence. In FIG. 6, one state corresponds to one code order. When the counter count value of the dominant symbol that has occurred in the state is reached, the state transitions according to the arrow M in the figure, and when an inferior symbol occurs, the state transitions along the arrow in the diagram, and in Figure 6, the code order changes by one step. are doing. When changing the state, if the code degree is the maximum, the code degree is left unchanged, and if the code degree is the minimum, the code degree is left unchanged and the predicted value is updated.

[発明が解決しようとする課題] 従来の符号化装置は以上のように構成されているので、
現在の符号次数と出現したシンボルが優勢シンボルある
いは劣勢シンボルかにより次の符号次数が決まるように
なっている。また、複数のコンテクストで同一のカウン
タを共有する場合は符号次数が同じコンテクストにおい
て、その符号次数の増減の傾向が異なる場合でも遷移経
路が重なっているためにその傾向を相殺してしまい、状
態の遷移が不適当なものとなってしまうという課題があ
った。
[Problem to be solved by the invention] Since the conventional encoding device is configured as described above,
The next code order is determined depending on the current code order and whether the symbol that has appeared is a dominant symbol or a recessive symbol. In addition, when multiple contexts share the same counter, even if contexts with the same code degree have different trends in increasing or decreasing the code degree, the transition paths overlap, canceling out the trends and causing the state to change. There was a problem that the transition became inappropriate.

この発明は上記のような課題を解決するためになされた
もので、符号次数が同じであっても過去の遷移の履歴を
考慮して異なる状態を割り当てることにより符号次数の
増減の傾向の異なるコンテクストはその遷移する経路を
異ならせることにより過去の符号次数の増減の傾向に適
した状態の遷移を行う符号化装置を得るこを目的とする
This invention was made in order to solve the above-mentioned problems.Even if the code degree is the same, by assigning different states in consideration of the history of past transitions, it is possible to solve the problem in contexts where the tendency of increase/decrease in the code degree is different. The object of the present invention is to obtain an encoding device that performs state transitions suitable for past trends in increase/decrease in code order by varying the transition paths.

[課題を解決するための手段] 請求項記載の発明に係る符号化装置は、符号化の際の符
号化シンボルあるいは復号化の際の復号化シンボルに対
応するコンテクストの符号次数が同じであっても、その
確率の増減傾向を過去の遷移の履歴により別の状態とし
て設けて状態遷移の経路を独立させ、過去の遷移に基づ
いてより適した状態遷移先を決定できるように、また、
複数のコンテクストで同一のカウンタを共有する場合は
状態遷移の履歴が同じコンテクストを同一の経路を遷移
させることによりその状態に適した次なる状態遷移先を
決定することができるようにしたものである6 [作用コ 請求項記載の発明における符号化装置は、符号化の際の
符号化シンボルあるいは復号化の際の復号化シンボルに
対応するコンテクストの符号次数が同じであっても、そ
の確率の増減傾向を過去の遷移の履歴により別の状態と
して設けて状態遷移の経路を独立させ、過去の遷移に基
づいてより適した状態M移先を決定することを、また、
複数のコンテクストで同一のカウンタを共有する場合は
状態遷移の履歴が同じコンテクストを同一の経路を遷移
させることによりその状態に適した次なる状態遷移先を
決定することを可能にする。
[Means for Solving the Problem] The encoding device according to the claimed invention is such that the code orders of contexts corresponding to encoded symbols during encoding or decoded symbols during decoding are the same. In addition, the increase/decrease tendency of the probability is set as a separate state depending on the past transition history, so that the state transition path is independent, and a more suitable state transition destination can be determined based on the past transition.
When multiple contexts share the same counter, the next state transition destination suitable for that state can be determined by transitioning the contexts with the same state transition history along the same route. 6 [Operation] Even if the code order of the context corresponding to the encoded symbol during encoding or the decoded symbol during decoding is the same, the encoding device in the claimed invention increases or decreases the probability thereof. The trend is set as a separate state depending on the past transition history, the state transition path is made independent, and a more suitable state M destination is determined based on the past transition.
When multiple contexts share the same counter, by transitioning the contexts with the same state transition history along the same route, it is possible to determine the next state transition destination suitable for that state.

「実施例] 以下、この発明の一実施例を図について説明する。"Example] An embodiment of the present invention will be described below with reference to the drawings.

第1図は符号化装置における符号化部を示すブロック図
である。第1図において、57はカウンタが再初期化さ
れたときに符号化シンボルとコンテクスト参照テーブル
13の示す滞在状態番号がら決定される。その状態の次
なる状態にコンテクスト参照テーブル13の生成したコ
ンテクストに対する滞在状態番号を更新させ予測値変換
が指示されているときには同時にコンテクストに対する
予測値を更新させてその状態遷移の履歴を管理する履歴
管理テーブルである。その他のものは、同一符号を付し
て第4図に示したものと同一のものである。
FIG. 1 is a block diagram showing an encoding section in an encoding device. In FIG. 1, numeral 57 is determined from the coded symbol and the stay state number indicated by the context reference table 13 when the counter is reinitialized. History management that updates the staying state number for the context generated in the context reference table 13 in the next state of that state, updates the predicted value for the context at the same time when predicted value conversion is instructed, and manages the history of the state transition. It's a table. Other parts are the same as those shown in FIG. 4 with the same reference numerals.

また、第2図は符号化装置における復号化部を示すブロ
ック図である。第2図において、77はカウンタ36が
再初期化されたときに復号化シンボルとコンテクスト参
照テーブル33の示す滞在状態番号から決定される。そ
の状態の次なる状態にコンテクスト参照テーブル33の
生成したコンテクストに対する滞在状態番号を更新させ
、予測値変換が指示させているときには同時にコンテク
ストに対する予測値を更新させてその状態遷移の履歴を
管理する履歴管理テーブルである。その他のものは、同
一符号を付して第5図に示したものと同一のものである
Further, FIG. 2 is a block diagram showing a decoding section in the encoding device. In FIG. 2, 77 is determined from the decoded symbol and the staying state number indicated by the context reference table 33 when the counter 36 is reinitialized. A history that manages the state transition history by updating the staying state number for the context generated by the context reference table 33 in the next state of that state, and simultaneously updating the predicted value for the context when the predicted value conversion is instructed. This is a management table. Other parts are the same as those shown in FIG. 5 with the same reference numerals.

次に動作について説明する。Next, the operation will be explained.

まず、符号化装置における復号化部の動作について説明
する。画像入力部11は1画像を画素単位で入力を行い
、メモリ制御部12およびシンボル変換器14に順次送
る。メモリ制御部12は。
First, the operation of the decoding section in the encoding device will be explained. The image input section 11 inputs one image pixel by pixel and sequentially sends it to the memory control section 12 and symbol converter 14. The memory control unit 12 is.

処理済みの画素をメモリに蓄積しコンテクスト参照テー
ブル13で必要な画素データを示す。コンテクスト参照
テーブル13は、符号化画素に対するコンテクストをメ
モリ制御部12に蓄積された画素データから生成し、そ
のコンテクストに対する滞在状態番号および予測値を示
す。シンボル変換器14は1画像入力部11から入力さ
れた画素とコンテクスト参照テーブル13の示す予測値
から符号化シンボルに変換する。確率見積テーブル15
は、コンテクスト参照テーブル13の示す滞在状態番号
に対応する符号次数を示す。カウンタ16は、コンテク
スト参照テーブル13の示す滞在状態番号に対する状態
ごとに用意され、シンボル変換器14で変換された優勢
シンボル数を計数してその状態に設定されたカウント数
に達したときおよび劣勢シンボルが発生したときにカウ
ント値を再初期化する。履歴管野テーブル57は、状態
ごとに符号化シンボル(優勢シンボル、劣勢シンボル)
による次に遷移すべき状態番号を記憶しており、コンテ
クスト参照テーブル13で生成されたコンテクストの滞
在状態を次の状態に更新し予測値変換が指示されている
ときには同時にコンテクストに対する予測値を更新し、
状態遷移の履歴を管理する。符号器18は、シンボル変
換器14から出力される符号化シンボルと確率見積テー
ブル15から出力される符号次数を入力として符号化を
行い、符号を出力する。出力された符号は伝送路19か
ら復号化部に伝送される。
Processed pixels are stored in memory and necessary pixel data is indicated in a context reference table 13. The context reference table 13 generates a context for a coded pixel from the pixel data stored in the memory control unit 12, and indicates a stay state number and predicted value for the context. The symbol converter 14 converts the pixels input from the one-image input unit 11 and the predicted values indicated by the context reference table 13 into coded symbols. Probability estimation table 15
indicates the code order corresponding to the stay state number indicated by the context reference table 13. The counter 16 is prepared for each state corresponding to the stay state number indicated by the context reference table 13, and counts the number of dominant symbols converted by the symbol converter 14, and counts the number of dominant symbols converted by the symbol converter 14 when the count number set for that state is reached and the counter 16 counters the inferior symbol. Reinitializes the count value when this occurs. The history management table 57 contains encoded symbols (dominant symbols, inferior symbols) for each state.
It stores the state number to which the next transition should be made, updates the staying state of the context generated in the context reference table 13 to the next state, and updates the predicted value for the context at the same time when predicted value conversion is instructed. ,
Manage the history of state transitions. The encoder 18 receives the encoded symbols output from the symbol converter 14 and the code order output from the probability estimation table 15, performs encoding, and outputs a code. The output code is transmitted from the transmission line 19 to the decoding section.

次に、符号化装置における復号化部の動作について説明
する。符号化部から出力された符号は。
Next, the operation of the decoding section in the encoding device will be explained. The code output from the encoding section is.

伝送路31から受け取られる。メモリ制御部32は、復
号済みの画素をメモリに蓄積しコンテクスト参照テーブ
ル33で必要な画素データを示す。
It is received from the transmission path 31. The memory control unit 32 stores decoded pixels in the memory and indicates necessary pixel data in a context reference table 33.

コンテクスト参照テーブル33は、符号化画素に対する
コンテクストをメモリ制御部32に蓄積された画素デー
タがら生成し、そのコンテクストに対する滞在渋滞番号
および予測値を示す。確率見積テーブル34はコンテク
スト参照テーブル33の示す滞在状態番号に対応する符
号次数を示す。
The context reference table 33 generates a context for a coded pixel from the pixel data stored in the memory control unit 32, and indicates a traffic congestion number and a predicted value for the context. The probability estimation table 34 shows the code order corresponding to the stay state number shown in the context reference table 33.

復号器35は、伝送路31から受け取った符号と確率見
積テーブル34の示す符号次数を入力として復号化を行
い、復号化シンボルを出力する。カウンタ36は、コン
テゲスト参照テーブル33の示す滞在状態番号に対する
状態ごとに用意され。
The decoder 35 inputs the code received from the transmission path 31 and the code order indicated by the probability estimation table 34, performs decoding, and outputs decoded symbols. The counter 36 is prepared for each state corresponding to the stay state number indicated by the guest reference table 33.

復号器35で復号化された優勢シンボル数を計数してそ
の状態に設定されたカウント数に達したときおよび劣勢
シンボルが発生したときにカウント値を再初期化する。
The number of superior symbols decoded by the decoder 35 is counted, and the count value is reinitialized when the count number set for that state is reached or when an inferior symbol occurs.

履歴管理テーブル77は、状態ごとに復号化シンボル(
優勢シンボル、劣勢シンボル)による次に遷移すべき状
態番号を記憶しており、コンテクスト参照テーブル33
で生成されたコンテクストの滞在状態を次の状態に更新
し予測値変換が指示されているときには同時にコンテク
ストに対する予測値を更新し、状態遷移の履歴を管理す
る。画素変換器38は復号器35から出力された復号化
シンボルを画素に変換し、復号化シンボルが優勢シンボ
ルならばコンテクスト参照テーブル33の示す予測値を
画素値とし、劣勢シンボルならば予測値でない値を画素
値とする。
The history management table 77 stores decrypted symbols (
The state number to which the next transition should be made is stored in the context reference table 33.
The staying state of the context generated in is updated to the next state, and when predicted value conversion is instructed, the predicted value for the context is updated at the same time, and the history of state transitions is managed. The pixel converter 38 converts the decoded symbol output from the decoder 35 into a pixel, and if the decoded symbol is a dominant symbol, the pixel value is the predicted value indicated by the context reference table 33, and if the decoded symbol is an inferior symbol, it is a value other than the predicted value. Let be the pixel value.

画像出力部39は7画素変換器38で変換された画素を
画像として出力する。
The image output unit 39 outputs the pixels converted by the 7-pixel converter 38 as an image.

また、第3図は本発明の符号化装置の状態遷移の説明図
である。第3図において、第6図同様に符号次数の数が
6つの例を示しており、一つの符号次数に対して過去の
遷移の履歴により複数の状態が対応し、状態遷移の方法
は、第6図と同じである。第3図では、過去の遷移の履
歴を3段階に分けており、下段がり、中断がLM、上段
がMMの状態遷移を経たものとなっている。劣勢シンボ
ルが発生すると状態は必ず下段りに遷移する。図中の上
段MMからは符号次数を2段階下がった下段りの遷移状
態に遷移させているが1例えば状態15.36のように
遷移状態別に符号次数を下げる段階数を適宜法めること
もできる。
Moreover, FIG. 3 is an explanatory diagram of state transition of the encoding device of the present invention. FIG. 3 shows an example in which the number of code degrees is six, as in FIG. It is the same as Figure 6. In FIG. 3, the history of past transitions is divided into three stages, with the lower row representing the state transition, LM for interruption, and the upper stage representing the state transition through MM. When an inferior symbol occurs, the state always transitions to the lower stage. In the figure, the code degree is transitioned from the upper MM to the lower transition state, which is two steps lower.1 For example, the number of steps to lower the code degree may be determined for each transition state, as in state 15.36. can.

[発明の効果コ 以上のように、この発明によれば符号化装置を符号化の
際の符号化シンボルあるいは復号化の際の復号化シンボ
ルに対応するコンテクストの符号次数が同じであっても
、その確率の増減傾向を過去の遷移の履歴により別の状
態を設けて状態遷移の経路を独立させたので、過去の遷
移の履歴が同じコンテクストを同一の経路を遷移させる
ことによりその符号次数の増減の傾向に適した次なる状
態遷移を決定できるものが得られる効果がある。
[Effects of the Invention] As described above, according to the present invention, even if the code orders of the contexts corresponding to the coded symbols at the time of encoding or the decoded symbols at the time of decoding are the same, Since we created separate states and made state transition paths independent based on the history of past transitions, the trend of increase or decrease in probability can be determined by changing the code degree by transitioning contexts with the same history of past transitions along the same path. This has the effect of making it possible to determine the next state transition suitable for the tendency of .

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

第1図はこの発明の一実施例による符号化装置の符号化
部の構成を示すブロック図、第2図はこの発明の一実施
例による符号化装置の復号化部の構成を示すブロック図
、第3図はこの発明の一実施例による符号化装置の状態
遷移の説明図、第4図は従来の従来符号化装置の符号化
部の構成を示すブロック図、第5図は従来の符号化装置
の復号化部の構成を示すブロック図、第6図は従来の符
号化装置の状態遷移の説明図である。 11は画像入力部、12.32はメモリ制御部13.3
3はコンテクスト参照テーブル、14はシンボル変換器
、16.36はカウンタ、18は符号器、19.31は
伝送路、35は復号器、38は画素変換器、39は画像
出力部、15.34は確率見積テーブル、57.77は
履歴管理テーブル。 なお。 図中。 同一符号は同一。 または相当部分 を示す。
FIG. 1 is a block diagram showing the configuration of an encoding section of an encoding device according to an embodiment of the present invention, and FIG. 2 is a block diagram showing the configuration of a decoding section of an encoding device according to an embodiment of the present invention. FIG. 3 is an explanatory diagram of the state transition of the encoding device according to an embodiment of the present invention, FIG. 4 is a block diagram showing the configuration of the encoding section of the conventional encoding device, and FIG. 5 is the conventional encoding device. FIG. 6 is a block diagram showing the configuration of the decoding section of the device, and is an explanatory diagram of state transition of the conventional encoding device. 11 is an image input section, 12.32 is a memory control section 13.3
3 is a context reference table, 14 is a symbol converter, 16.36 is a counter, 18 is an encoder, 19.31 is a transmission path, 35 is a decoder, 38 is a pixel converter, 39 is an image output unit, 15.34 is a probability estimation table, and 57.77 is a history management table. In addition. In the figure. Same symbols are the same. or a significant portion.

Claims (2)

【特許請求の範囲】[Claims] (1)入力された画像の画素を符号化シンボルに変換し
、かつ符号化済みの画素から参照画素のとるパターン(
以後、コンテクストという。)ごとに符号化画素のとる
値の発生状況に応じて符号化パラメータを動的に切り替
えて画素を符号化する符号化装置の符号化部において、
画像の入力を画素単位で行う画像単位で行う画像入力部
、上記画像入力部から入力された画素データを蓄えるメ
モリを制御するメモリ制御部、上記メモリ制御部に蓄え
られた画素データから符号化画素に対するコンテクスト
を生成させそのコンテクストに対して符号化の過程で更
新されていく予測値および滞在状態番号を示すコンテク
スト参照テーブル、上記コンテクスト参照テープの示す
予測値と実際の符号化画素とを比較して符号化シンボル
に変換するシンボル変換器、上記コンテクスト参照テー
ブルの示す滞在状態番号に対応する確率見積値のインデ
クスである符号次数を記憶しその符号次数を示す確率見
積テーブル、上記コンテクスト参照テーブルの示す滞在
状態番号の状態に対し上記シンボル変換器から出力され
た符号化シンボルの優勢シンボル発生数をカウントしそ
の状態に設定されたカウント数に達したか否かおよび劣
勢シンボルが発生したか否かによりカウント値を制御す
るカウンタ、優勢シンボルか劣勢シンボルかの情報と上
記カウンタの値の内容に基づき上記コンテクスト参照テ
ーブルの示す滞在状態番号を予め設定された次なる状態
の状態番号に更新させ予測値変換が指示されているとき
には同時にコンテクストに対する予測値を更新させてそ
の状態遷移の履歴を管理する履歴管理テーブル、上記シ
ンボル変換器から出力された符号化シンボルと上記確率
見積テーブルの示す符号次数を入力として符号化を行っ
て符号を出力する符号器、上記符号器から出力された符
号を復号化部に伝送する伝送路とを備えた符号化部を有
することを特徴とする符号化装置。
(1) Convert the pixels of the input image into encoded symbols, and create a pattern (
Hereafter referred to as context. ) In the encoding unit of the encoding device that encodes pixels by dynamically switching encoding parameters according to the occurrence situation of the value taken by the encoded pixel,
An image input section that inputs images pixel by pixel, a memory control section that controls a memory that stores pixel data input from the image input section, and encoded pixels from the pixel data stored in the memory control section. A context reference table showing the predicted value and stay state number that is updated during the encoding process for that context, and the predicted value shown on the context reference tape and the actual encoded pixel are compared. A symbol converter that converts into a coded symbol, a probability estimation table that stores a code order which is an index of a probability estimate value corresponding to a stay state number indicated by the context reference table, and indicates the code order, a stay state indicated by the context reference table. Counts the number of occurrences of dominant symbols of the encoded symbols output from the symbol converter for the state of the state number, and counts based on whether the count number set for that state has been reached and whether an inferior symbol has occurred. Based on the counter that controls the value, information on whether it is a dominant symbol or a subordinate symbol, and the content of the value of the counter, the staying state number indicated in the context reference table is updated to the state number of the next state set in advance, and predicted value conversion is performed. When instructed, the history management table simultaneously updates the predicted value for the context and manages the history of its state transition, and encodes the encoded symbol output from the symbol converter and the code order indicated by the probability estimation table as input. 1. An encoding device comprising: an encoder that performs encoding and outputs a code; and a transmission path that transmits the code output from the encoder to a decoder.
(2)受信した符号から復号化シンボルとして復号化す
ることにより、復号化済みの画素から参照画素のとるパ
ターンであるコンテクストごとに復号化画素のとる値の
発生状況に応じて復号化パラメータを動的に切り替えて
画素を復号化する符号化装置の復号化部において、符号
化部から符号を伝送する伝送路、復号済みの画素データ
を蓄えるメモリを制御するメモリ制御部、上記メモリ制
御部に蓄えられた画素データから復号化画素に対するコ
ンテクストを生成させそのコンテクストに対して復号化
の過程で更新されていく予測値および滞在状態番号を記
憶し、コンテクストの入力により対応する予測値および
滞在状態番号を示すコンテクスト参照テーブル、上記コ
ンテクスト参照テーブルの示す滞在状態番号の状態に対
応する確率見積値のインデクスである符号次数を記憶し
、その符号次数を示す確率見積テーブル、上記伝送路か
ら受け取った符号と上記確率見積テーブルの示す符号次
数を入力として復号化を行って復号化シンボルを出力す
る復号器、上記コンテクスト参照テーブルの示す滞在状
態に対し、上記復号器から出力された復号化シンボルの
優勢シンボル発生数をカウントし、その状態に設定され
たカウント数に達したか否かおよび劣勢シンボルが発生
したか否かによりカウント値を制御するカウンタ、優勢
シンボルか劣勢シンボルかの情報と上記カウンタの値の
内容に基づき上記コンテクスト参照テーブルの示す滞在
状態番号を予め設定された次なる状態の状態番号に更新
させ予測値変換が指示されているときには同時にコンテ
クストに対する予測値を更新させてその状態遷移の履歴
を管理する履歴管理テーブル、上記コンテクスト参照テ
ーブルから発生された予測値を上記復号器から出力され
た復号化シンボルに応じて画素に変換する画素変換器、
上記画素変換器により変換された画素を受け取って画素
として出力する画像出力部とを備えた復号化部を有する
ことを特徴とする符号化装置。
(2) By decoding the received code as a decoded symbol, the decoding parameters are changed according to the occurrence status of the value taken by the decoded pixel for each context, which is the pattern taken by the reference pixel from the decoded pixel. In a decoding unit of an encoding device that decodes pixels by switching between pixels, there is a transmission path for transmitting codes from the encoding unit, a memory control unit that controls a memory that stores decoded pixel data, and a memory control unit that controls a memory that stores decoded pixel data. A context for the decoded pixel is generated from the pixel data that has been generated, and the predicted value and stay state number that are updated during the decoding process are stored in that context, and the corresponding predicted value and stay state number are generated by inputting the context. a probability estimation table that stores the code order, which is an index of the probability estimate value corresponding to the state of the stay state number indicated by the context reference table, and indicates the code order; a code received from the transmission path and the above code order; A decoder that performs decoding using the code order indicated by the probability estimation table as input and outputs a decoded symbol, and the number of occurrences of dominant symbols of the decoded symbols output from the decoder for the staying state indicated by the context reference table. A counter that controls the count value depending on whether the count value set in the state has been reached and whether an inferior symbol has occurred, information on whether the symbol is a superior symbol or an inferior symbol, and the contents of the value of the above counter. Based on this, the stay state number indicated in the context reference table is updated to the state number of the next state set in advance, and when predicted value conversion is instructed, the predicted value for the context is simultaneously updated and the history of the state transition is managed. a pixel converter that converts the predicted value generated from the context reference table into pixels according to the decoded symbol output from the decoder;
An encoding device comprising: a decoding section including an image output section that receives pixels converted by the pixel converter and outputs them as pixels.
JP24321290A 1990-09-13 1990-09-13 Encoding device, decoding device, encoding method, and decoding method Expired - Fee Related JP2504316B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24321290A JP2504316B2 (en) 1990-09-13 1990-09-13 Encoding device, decoding device, encoding method, and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24321290A JP2504316B2 (en) 1990-09-13 1990-09-13 Encoding device, decoding device, encoding method, and decoding method

Publications (2)

Publication Number Publication Date
JPH04122174A true JPH04122174A (en) 1992-04-22
JP2504316B2 JP2504316B2 (en) 1996-06-05

Family

ID=17100497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24321290A Expired - Fee Related JP2504316B2 (en) 1990-09-13 1990-09-13 Encoding device, decoding device, encoding method, and decoding method

Country Status (1)

Country Link
JP (1) JP2504316B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188793B1 (en) 1996-03-19 2001-02-13 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method and decoding method
KR100332175B1 (en) * 1996-11-07 2002-04-12 모리시타 요이찌 Image encoding apparatus and image encoding method
US6636641B1 (en) 1996-03-19 2003-10-21 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method and decoding method
US6744925B2 (en) 1996-03-19 2004-06-01 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method, and decoding method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998033322A1 (en) 1997-01-29 1998-07-30 Mitsubishi Denki Kabushiki Kaisha Coding method, decoding method, coding device and decoding device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6188793B1 (en) 1996-03-19 2001-02-13 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method and decoding method
US6636641B1 (en) 1996-03-19 2003-10-21 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method and decoding method
US6744925B2 (en) 1996-03-19 2004-06-01 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method, and decoding method
US6754393B2 (en) 1996-03-19 2004-06-22 Mitsubishi Denki Kabushiki Kaisha Encoding apparatus, decoding apparatus, encoding method, and decoding method
KR100332175B1 (en) * 1996-11-07 2002-04-12 모리시타 요이찌 Image encoding apparatus and image encoding method

Also Published As

Publication number Publication date
JP2504316B2 (en) 1996-06-05

Similar Documents

Publication Publication Date Title
EP1759335B1 (en) Digital video compression command priority
US5960116A (en) Image processing apparatus and method for performing prediction data encoding
EP2257070B1 (en) Image coder
US7689048B2 (en) Image encoding apparatus, method, and computer-readable storage medium for encoding a pixel value
US20180124430A1 (en) Method for Producing Video Coding and Programme-Product
JPH09224253A (en) Image coder and image decoder
JP2000115781A (en) Coder
JP2006050605A (en) Method and apparatus for coding and decoding binary state, and computer program corresponding thereto
JP2022527685A (en) In-frame predictive coding methods, devices, electronic devices and computer programs
JPWO2010050152A1 (en) Pixel predicted value generation procedure automatic generation method, image encoding method, image decoding method, apparatus thereof, program thereof, and recording medium on which these programs are recorded
US5933105A (en) Context-based arithmetic encoding/decoding method and apparatus
JPH04122174A (en) Encoding device
JP3466162B2 (en) Image decoding apparatus and image decoding method
JP2001094982A (en) Hierarchical coding method and device, program recording medium used for realization of the method, hierarchical decoding method and device thereof, and program recording medium used for realization of the method
JP3482054B2 (en) Image coding device
EP0813168A2 (en) Compression of image data
CN106851279A (en) Image quantization parameter coding/decoding method
JPH0678295A (en) Picture coding device
JPH06121172A (en) Picture encoder
JPH0537916A (en) Image transmission equipment
KR100281328B1 (en) Context-based Arithmetic Coding / Decoding Method and Apparatus
JP2810478B2 (en) Image coding device
JP3750367B2 (en) Image encoding / decoding device
WO2023197104A1 (en) Coding method, decoding method, encoders, decoder and storage medium
JP2003125408A (en) Image coder, image decoder, its method, image coding program, and image decoding program

Legal Events

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

Free format text: PAYMENT UNTIL: 20080402

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090402

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees