JPH09200774A - Image encoder - Google Patents

Image encoder

Info

Publication number
JPH09200774A
JPH09200774A JP763596A JP763596A JPH09200774A JP H09200774 A JPH09200774 A JP H09200774A JP 763596 A JP763596 A JP 763596A JP 763596 A JP763596 A JP 763596A JP H09200774 A JPH09200774 A JP H09200774A
Authority
JP
Japan
Prior art keywords
prediction
predictor
priority
pixel
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP763596A
Other languages
Japanese (ja)
Inventor
Masayuki Hisatake
真之 久武
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
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 filed Critical Fuji Xerox Co Ltd
Priority to JP763596A priority Critical patent/JPH09200774A/en
Publication of JPH09200774A publication Critical patent/JPH09200774A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To select a predictor having high predictive accuracy and to efficiently compress image data in comparatively simple configuration. SOLUTION: Predictors 1a-1c predict the value of a concerned picture element based on the values of surrounding picture elements and calculate predictive errors Da-Dc later. Based on information showing the predictor applying the minimum predictive error to the concerned picture element and information showing the predictor used for the preceding picture element, a priority setting part 5 sets priority by counting the number of times of selection as the optimum predictor for each of predictors 1a-1c. Based on the priority, a multiplexer 6 selects any one predictor. A predictor information latch 7 latches the information showing this selected predictor and applies the information for a multiplexer 3 to select the predictor to be used for the concerned picture element. As a result, the multiplexer 3 outputs a predictive error D corresponding to the optimum predictor much more used for picture elements in the past to an encoder part 8.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、画像データを効
率よく圧縮処理する画像符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus for efficiently compressing image data.

【0002】[0002]

【従来の技術】従来より、画像データを簡単な構成で効
率よく圧縮する方式の1つに予測符号化方式がある。こ
の予測符号化方式は、二値画像データに適用する場合、
注目画素の周辺画素データから求めた該注目画素の予測
値と、実際の注目画素の値とを比較し、予測が当たった
ビットを「0」にし、予測が外れたビットを「1」に置
き換えることで、「0」となったビットが連続して発生
する回数を稼ぎ、これをランレングス符号化すること
で、元の画像データ(二値)を直接ランレングス符号化
するのに比べ、符号化効率を向上させるものである。こ
の時、予め複数の予測器を備え、画像の状態に応じて予
測器を適応的に切り換えながら、注目画素の値を予測す
れば、さらに符号化効率を向上させることができる。
2. Description of the Related Art Conventionally, there is a predictive coding method as one of the methods for efficiently compressing image data with a simple structure. When this predictive coding method is applied to binary image data,
The predicted value of the pixel of interest obtained from the peripheral pixel data of the pixel of interest is compared with the value of the actual pixel of interest, and the bit for which the prediction is correct is set to "0", and the bit for which prediction is incorrect is replaced with "1". By doing so, the number of consecutive occurrences of "0" bits is increased, and by performing run-length encoding on the original image data (binary), compared with direct run-length encoding, the encoding is performed. It improves the efficiency of conversion. At this time, if a plurality of predictors are provided in advance and the value of the pixel of interest is predicted while adaptively switching the predictors according to the state of the image, the coding efficiency can be further improved.

【0003】上述した予測符号化方式は、二値画像デー
タに限定されるものではなく、多値画像の圧縮にも用い
ることができる。例えば、特開平3−273762号公
報には、複数の予測器を備え、符号化済みの画素で、予
測誤差の絶対値が最小となる予測器を注目画素に対する
予測器として使用する技術が開示されている。このよう
に、符号化済みの画素を用いて現在符号化しようとして
いる注目画素に対する予測器を決定する手法によれば、
符号化時に使用した予測器は復号した画素から決定でき
るので、予測器の選択履歴を符号データに重畳して残す
必要がない。
The above-described predictive coding system is not limited to binary image data, but can be used for compression of multi-valued images. For example, Japanese Unexamined Patent Publication No. 3-273762 discloses a technique that includes a plurality of predictors and uses a predictor that has a minimum absolute value of a prediction error among coded pixels as a predictor for a pixel of interest. ing. In this way, according to the method of determining the predictor for the pixel of interest currently to be encoded using the encoded pixel,
Since the predictor used at the time of encoding can be determined from the decoded pixel, it is not necessary to superimpose and leave the selection history of the predictor on the code data.

【0004】[0004]

【発明が解決しようとする課題】ところで、上述したよ
うに、複数の予測器を適応的に切り換えていく予測符号
化方式では、できるだけ予測精度の高い予測器を選択し
ていくことが符号化効率を向上させる上で重要となる。
この点で見直してみると、従来の画像符号化装置および
その方法では、複数の予測器で同じ大きさの予測誤差が
得られた場合に、どの予測器を選択すればよいのかが明
確に開示されていない。複数の予測器に対して予め優先
順位を設定し、予測誤差が等しい場合には、優先順位に
従って選択する方法も考えられるが、画像によって画素
間の相関が変わることから予測器の優先順位も変える必
要がある。したがって、従来の画像符号化装置およびそ
の方法では、実際には、予測精度の高い予測器を選択す
ることができないという問題がある。
By the way, as described above, in the predictive coding method in which a plurality of predictors are adaptively switched, it is necessary to select a predictor with the highest prediction accuracy. Will be important in improving.
In reviewing this point, in the conventional image encoding device and method, it is clearly disclosed which predictor should be selected when a plurality of predictors have the same prediction error. It has not been. A method may be considered in which priorities are set in advance for a plurality of predictors, and when the prediction errors are equal, selection is performed according to the priorities, but since the correlation between pixels changes depending on the image, the priority order of the predictors also changes. There is a need. Therefore, in the conventional image coding apparatus and method, there is a problem that a predictor with high prediction accuracy cannot be actually selected.

【0005】この発明は上述した事情に鑑みてなされた
もので、比較的簡単な構成で、予測精度の高い予測器を
選択でき、効率よく画像データを圧縮することができる
画像符号化装置を提供することを目的としている。
The present invention has been made in view of the above-mentioned circumstances, and provides an image coding apparatus capable of selecting a predictor having high prediction accuracy and efficiently compressing image data with a relatively simple structure. The purpose is to do.

【0006】[0006]

【課題を解決するための手段】上述した問題点を解決す
るために、請求項1記載の発明では、入力された画像の
注目画素の値をその周辺画素の値から各々異なるパラメ
ータに基づいて予測する複数の予測手段と、前記複数の
予測手段によって予測された注目画素の値と該注目画素
の実際の値との差分である予測誤差を算出する予測誤差
算出手段と、動的に変化する所定の優先度に基づいて前
記複数の予測手段の中から1つの予測手段を選択する予
測選択手段と、前記予測選択手段により任意の予測手段
の選択状態に基づいて、前記複数の予測手段毎に前記優
先度を設定する優先度設定手段と、前記予測選択手段に
よって選択された予測手段によって予測された予測値に
基づいて前記注目画素の値を符号化する符号化手段とを
具備することを特徴とする。
In order to solve the above-mentioned problems, according to the invention of claim 1, the value of the pixel of interest of the input image is predicted from the values of its peripheral pixels based on different parameters. A plurality of prediction units, a prediction error calculation unit that calculates a prediction error that is a difference between the value of the pixel of interest predicted by the plurality of prediction units, and the actual value of the pixel of interest; For each of the plurality of prediction units, based on the prediction selection unit that selects one prediction unit from among the plurality of prediction units based on the priority of, and the selection state of any prediction unit by the prediction selection unit. It is characterized by comprising priority setting means for setting a priority and coding means for coding the value of the pixel of interest based on the prediction value predicted by the prediction means selected by the prediction selection means. To.

【0007】また、請求項2記載の発明では、請求項1
記載の画像符号化装置において、前記優先度設定手段
は、前記予測選択手段によって少なくとも2回以上連続
して選択された予測手段の優先度を高く設定することを
特徴とする。
[0007] According to the second aspect of the present invention, the first aspect is provided.
In the image coding apparatus described above, the priority setting means sets a high priority to a prediction means selected continuously by the prediction selection means at least twice or more.

【0008】また、請求項3記載の発明では、請求項1
記載の画像符号化装置において、前記優先度設定手段
は、前記予測選択手段によって同じ予測手段が連続して
選択されない回数に基づいて優先度を設定するととも
に、全ての予測手段に対する回数が所定回数に達した場
合に前記回数をリセットすることを特徴とする。
[0008] According to the third aspect of the present invention, the first aspect of the present invention.
In the image coding apparatus according to the description, the priority setting unit sets the priority based on the number of times that the same prediction unit is not continuously selected by the prediction selection unit, and the number of times for all prediction units is a predetermined number. The number of times is reset when it reaches.

【0009】また、請求項4記載の発明では、請求項1
記載の画像符号化装置において、前記優先度設定手段
は、前記予測選択手段によって同じ予測手段が連続して
選択されない回数に基づいて優先度を設定するととも
に、全ての予測手段に対する回数が所定回数に達した場
合に前記複数の予測手段に対する回数を等しい割合で減
ずることを特徴とする。
Further, according to the invention described in claim 4, according to claim 1,
In the image coding apparatus according to the description, the priority setting unit sets the priority based on the number of times that the same prediction unit is not continuously selected by the prediction selection unit, and the number of times for all prediction units is a predetermined number. When reaching, the number of times for the plurality of prediction means is reduced at an equal rate.

【0010】また、請求項5記載の発明では、請求項1
記載の画像符号化装置において、前記優先度設定手段
は、前記予測選択手段によって同じ予測手段が連続して
選択されない回数に基づいて優先度を設定するととも
に、任意の1つの予測手段に対する回数が所定回数に達
した場合に前記複数の予測手段全てに対する回数を等し
い割合で減ずることを特徴とする。
According to the invention of claim 5, claim 1
In the image coding apparatus described above, the priority setting unit sets the priority based on the number of times that the same prediction unit is not continuously selected by the prediction selection unit, and the number of times for any one prediction unit is predetermined. When the number of times reaches the number of times, the number of times for all of the plurality of prediction means is reduced at an equal rate.

【0011】この発明によれば、予測誤差算出手段は、
複数の予測手段において、各々異なるパラメータに基づ
いて予測された注目画素の値と該注目画素の実際の値と
の差分である予測誤差を算出する。予測選択手段は、優
先度設定手段によって設定された、動的に変化する所定
の優先度に基づいて複数の予測手段の中から1つの予測
手段を選択する。優先度設定手段は、予測選択手段によ
り任意の予測手段の選択状態に基づいて、前記複数の予
測手段毎に前記優先度を設定する。ゆえに、予測器に設
定される優先度は、符号化の度に更新される。符号化手
段は、予測選択手段によって選択された予測手段によっ
て予測された予測値に基づいて注目画素の値を符号化す
る。したがって、比較的簡単な構成で、予測精度の高い
予測器を選択することが可能となり効率よく画像データ
を圧縮することが可能となる。
According to the present invention, the prediction error calculating means is
A plurality of prediction means calculates a prediction error that is a difference between the value of the pixel of interest predicted based on different parameters and the actual value of the pixel of interest. The prediction selection means selects one prediction means from among the plurality of prediction means based on the predetermined dynamically changing priority set by the priority setting means. The priority setting means sets the priority for each of the plurality of prediction means based on the selection state of any prediction means by the prediction selection means. Therefore, the priority set in the predictor is updated at every encoding. The encoding means encodes the value of the pixel of interest based on the prediction value predicted by the prediction means selected by the prediction selection means. Therefore, with a relatively simple configuration, it is possible to select a predictor with high prediction accuracy, and it is possible to efficiently compress image data.

【0012】[0012]

【発明の実施の形態】次に図面を参照してこの発明の実
施形態について説明する。 A.実施形態の構成 A−1.画像処理装置のブロック構成 図1は本発明の一実施形態による画像符号化装置の構成
を示すブロック図である。図において、予測器1a,1
b,1cは、各々、異なる予測関数を有しており、入力
される画像データに対して、それぞれの予測関数を用い
て符号化すべき注目画素の画素信号Xに対する予測値P
a,Pb,Pcを求めるとともに、注目画素値に対する
予測誤差Da,Db,Dcを算出し、予測誤差評価部2
a,2b,2cおよびマルチプレクサ3に供給する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will now be described with reference to the drawings. A. Configuration of Embodiment A-1. Block Configuration of Image Processing Device FIG. 1 is a block diagram showing the configuration of an image encoding device according to an embodiment of the present invention. In the figure, the predictors 1a, 1
b and 1c have different prediction functions, and the prediction value P for the pixel signal X of the pixel of interest to be coded using the respective prediction functions with respect to the input image data.
a, Pb, Pc are calculated, prediction errors Da, Db, Dc for the pixel value of interest are calculated, and the prediction error evaluation unit 2
a, 2b, 2c and the multiplexer 3.

【0013】ここで、図2(a),(b),(c)は、
各々、上述した予測器1a,1b,1cによる予測値を
求める動作例を示す概念図である。予測器1aは、図2
(a)に示すように、同一走査線上の直前画素xの画素
値Xを注目画素の予測値Paとする。次に、予測器1b
は、図2(b)に示すように、直上走査線上の同じ位置
の画素yの画素値Yを注目画素の予測値Pbとするもの
である。上記予測器1a,1bは、注目画素に隣接する
画素の値を予測値とするもので、多値画像および二値画
像の双方に使用することができる。また、予測器1c
は、図2(c)に示すように、注目画素に最も近接する
画素xの画素値Xおよび画素yの画素値Yの平均値を注
目画素の予測値Pcとする。この場合は、予測器1c
は、多値画像を想定した予測器となるが、参照画素xの
画素値Xと画素yの画素値Yの論理積(AND)を演算
することによって、注目画素の予測値Pcを算出するよ
うにすれば、二値画像を想定した予測器として用いるこ
とができる。
Here, FIGS. 2A, 2B and 2C are
FIG. 3 is a conceptual diagram showing an operation example of obtaining a predicted value by each of the predictors 1a, 1b, 1c described above. The predictor 1a is shown in FIG.
As shown in (a), the pixel value X of the immediately preceding pixel x on the same scanning line is set as the predicted value Pa of the target pixel. Next, the predictor 1b
As shown in FIG. 2B, the pixel value Y of the pixel y at the same position on the scan line immediately above is set as the predicted value Pb of the target pixel. The predictors 1a and 1b use the value of the pixel adjacent to the pixel of interest as the prediction value, and can be used for both multi-valued images and binary images. Also, the predictor 1c
As shown in FIG. 2C, the average value of the pixel value X of the pixel x and the pixel value Y of the pixel y closest to the target pixel is set as the predicted value Pc of the target pixel. In this case, the predictor 1c
Is a predictor assuming a multi-valued image, but the predicted value Pc of the target pixel is calculated by calculating the logical product (AND) of the pixel value X of the reference pixel x and the pixel value Y of the pixel y. Then, it can be used as a predictor assuming a binary image.

【0014】また、上述した予測器1a,1b,1cに
おいて、二値画像データに対する予測誤差は、注目画素
値と予測値の排他的論理和演算により算出し、多値画像
データに対する予測誤差は、注目画素値と予測値との差
分演算により算出する。なお、本実施形態では、3つの
予測器を例に説明しているが、予測器の数はこれに限定
されるものでなく、一般に、N個の予測器を用いればよ
い。なお、多値画像データであっても、1画素当たり2
乃至4ビット程度の情報量になるように量子化された場
合には、対応するビット毎に排他的論理和演算を行うこ
とで、多値の予測誤差を算出するようにしてもよい。
In the predictors 1a, 1b and 1c described above, the prediction error for binary image data is calculated by an exclusive OR operation of the pixel value of interest and the prediction value, and the prediction error for multi-valued image data is It is calculated by calculating the difference between the pixel value of interest and the predicted value. In the present embodiment, three predictors are described as an example, but the number of predictors is not limited to this, and generally N predictors may be used. Even for multi-valued image data, 2 pixels per pixel
If the information is quantized to have an information amount of about 4 bits, a multi-valued prediction error may be calculated by performing an exclusive OR operation for each corresponding bit.

【0015】次に、図1に戻り、予測誤差評価部2a,
2b,2cは、各々、上記予測器1a,1b,1cに対
応付けて設けられた同一構成の演算器であり、対応する
予測器1a,1b,1cからの予測誤差Da,Db,D
cの大きさを求め、予測誤差評価値Ea,Eb,Ecと
して最小予測誤差検出部4に供給する。予測誤差評価部
2a,2b,2cの構成は、予測誤差の演算方法、すな
わち元の画像データが二値画像データであるか多値画像
データであるかによって異なる。例えば、二値画像デー
タの場合、すなわち、排他的論理和により予測誤差を算
出した場合には、予測誤差の大きさは、所定ビット毎に
まとめた複数の予測誤差の中に含まれる予測外れビット
(排他的論理和により「1」になっているビット)数の
合計数によって算出されることから、予測誤差評価部2
a,2b,2cは、予測外れビット数を計数するカウン
タ回路から構成され、その出力である予測誤差評価値E
a,Eb,Ecは、各々、予測誤差Da,Db,Dcの
計数値となる。これに対して、多値画像データの場合、
すなわち、差分により予測誤差を算出した場合には、予
測誤差の大きさは、予測誤差の絶対値を求めればよいの
で、予測誤差評価部2a,2b,2cは、予測誤差の絶
対値を求める絶対値演算回路から構成され、その出力で
ある予測誤差評価値Ea,Eb,Ecは、各々、予測誤
差Da,Db,Dcの絶対値となる。
Next, returning to FIG. 1, the prediction error evaluation unit 2a,
Reference numerals 2b and 2c are arithmetic units of the same configuration provided in association with the predictors 1a, 1b and 1c, respectively, and prediction errors Da, Db and D from the corresponding predictors 1a, 1b and 1c.
The magnitude of c is calculated and supplied to the minimum prediction error detection unit 4 as the prediction error evaluation values Ea, Eb, Ec. The configuration of the prediction error evaluation units 2a, 2b, 2c differs depending on the calculation method of the prediction error, that is, whether the original image data is binary image data or multi-valued image data. For example, in the case of binary image data, that is, when the prediction error is calculated by exclusive OR, the size of the prediction error is the prediction error bit included in a plurality of prediction errors collected for each predetermined bit. Since it is calculated by the total number of (bits that are “1” by exclusive OR), the prediction error evaluation unit 2
a, 2b, and 2c are composed of a counter circuit that counts the number of mispredicted bits, and the output is the prediction error evaluation value E.
a, Eb, and Ec are count values of the prediction errors Da, Db, and Dc, respectively. On the other hand, in the case of multi-valued image data,
That is, when the prediction error is calculated from the difference, the magnitude of the prediction error may be obtained by calculating the absolute value of the prediction error. Therefore, the prediction error evaluation units 2a, 2b, and 2c are the absolute values of the prediction error. The prediction error evaluation values Ea, Eb, Ec, which are output from the value calculation circuit, are absolute values of the prediction errors Da, Db, Dc, respectively.

【0016】次に、マルチプレクサ3は、後述する予測
器情報ラッチ7から出力される情報に従って、予測器1
a,1b,1cの出力である3組の予測誤差Da,D
b,Dcの中から符号化すべき予測誤差を1つ選択して
最終的な予測誤差Dとして出力する。後述するように、
予測器情報ラッチ7の出力は、現在の符号化注目画素よ
り以前に符号化された画素において選択された最適な予
測器を示す情報であるので、マルチプレクサ3では、符
号化済みの画素において予測誤差が最小となった予測
器、すなわち現在の注目画素に対しても最適である可能
性の高い予測器による予測誤差を選択することになる。
Next, the multiplexer 3 operates in accordance with the information output from the predictor information latch 7 which will be described later.
3 sets of prediction errors Da, D which are outputs of a, 1b, 1c
One prediction error to be encoded is selected from b and Dc and is output as the final prediction error D. As described below,
The output of the predictor information latch 7 is information indicating the optimum predictor selected in the pixel coded before the current pixel of interest to be coded, so that the multiplexer 3 predicts the prediction error in the coded pixel. The prediction error by the predictor having the smallest value, that is, the predictor that is highly likely to be optimal for the current pixel of interest is selected.

【0017】次に、最小予測誤差検出部4は、上記予測
器1a,1b,1cで算出した、各々の予測誤差Da,
Db,Dcの大きさを示す3つの予測誤差評価値Ea,
Eb,Ecのうち、最小の予測誤差を与えた予測器に対
応するフラグビットを全てアサートして出力する。本実
施形態では、予測器1a,1b,1cを備えているの
で、各予測器に対応する3ビットのフラグFを出力す
る。予測誤差の大きさが等しい予測器が複数存在した場
合には、アサートされるフラグビットも複数存在するこ
とになる。例えば、予測器1aと予測器1cとが共に最
小の予測誤差を与えた場合には、フラグFは、「1,
0,1」となり、予測器1bと予測器1cが共に最小の
予測誤差を与えた場合には、フラグFは「0,1,1」
となる。
Next, the minimum prediction error detection unit 4 calculates each prediction error Da, calculated by the predictors 1a, 1b, 1c.
Three prediction error evaluation values Ea, which indicate the magnitudes of Db and Dc,
Of Eb and Ec, all flag bits corresponding to the predictor that gives the smallest prediction error are asserted and output. In the present embodiment, since the predictors 1a, 1b, 1c are provided, the 3-bit flag F corresponding to each predictor is output. When there are a plurality of predictors having the same magnitude of prediction error, a plurality of flag bits are asserted. For example, when both the predictors 1a and 1c give the minimum prediction error, the flag F is set to "1,
0,1 "and both the predictors 1b and 1c give the minimum prediction error, the flag F is" 0,1,1 ".
Becomes

【0018】次に、優先順位決定部5は、マルチプレク
サ6の出力である現在の注目画素に対して選択された予
測器を示す選択情報、および予測器情報ラッチ7の出力
である、現在の注目画素より以前の符号化済みの画素に
対して選択された予測器を示す選択情報に基づいて、予
測器1a,1b,1cのうち、次の注目画素に対してど
の予測器を優先的に選択すべきかを示す優先順位を決定
し、選択すべき予測器を示す選択順位情報Sを出力す
る。なお、上記予測器1a,1b,1cのうち複数の予
測器が同一の優先順位となる場合には、その中からどの
予測器を優先的に選択すべきかを予め設定された固定優
先順位に従って決定する。該優先順位決定部5の詳細に
ついては後述する。
Next, the priority determining section 5 outputs selection information indicating the predictor selected for the current pixel of interest, which is the output of the multiplexer 6, and the output of the predictor information latch 7, that is, the current attention. Among the predictors 1a, 1b, 1c, which predictor is preferentially selected for the next pixel of interest based on the selection information indicating the predictor selected for the coded pixel before the pixel. The priority order indicating whether or not to do is determined, and the selection order information S indicating the predictor to be selected is output. When a plurality of predictors among the predictors 1a, 1b, 1c have the same priority, which predictor should be preferentially selected among them is determined according to a preset fixed priority. To do. Details of the priority order determination unit 5 will be described later.

【0019】次に、マルチプレクサ6は、上記優先順位
決定部5から与えられる優先順位情報Sに従って、上記
最小予測誤差検出部4が出力するフラグFの各フラグビ
ットのうち、唯一アサートすべきビットを決定する。す
なわち、マルチプレクサ6が出力する3ビットの状態に
よって、予測器1a,1b,1cの中から次の注目画素
に対して最終的に使用すべき1つの予測器が決定され
る。言い換えれば、マルチプレクサ6の出力は、予測器
1a,1b,1cによって算出された予測誤差Da,D
b,Dcを評価した結果、最適な予測器がどれであるか
を示す情報となる。具体的には、例えば、優先順位決定
部5により予測器1aが選択された場合には、その出力
は、「1,0,0」となり、優先順位決定部5により予
測器1bが選択された場合には、「0,1,0」、優先
順位決定部5により予測器1cが選択された場合には、
「0,0,1」となる。また、マルチプレクサ6には、
優先順位情報の他に、符号化処理開始時にどの予測器を
用いるかを示す初期予測器選択情報が供給されており、
符号化開始時には、該初期予測器選択情報によって所定
の予測器が選択される。
Next, the multiplexer 6 determines which of the flag bits of the flag F output by the minimum prediction error detection unit 4 is the only bit that should be asserted, in accordance with the priority information S given from the priority determination unit 5. decide. That is, one predictor to be finally used for the next pixel of interest is determined from the predictors 1a, 1b, and 1c according to the 3-bit state output from the multiplexer 6. In other words, the output of the multiplexer 6 is the prediction error Da, D calculated by the predictors 1a, 1b, 1c.
As a result of evaluating b and Dc, the information is information indicating which is the optimum predictor. Specifically, for example, when the predictor 1a is selected by the priority order determining unit 5, the output is "1, 0, 0", and the predictor 1b is selected by the priority order determining unit 5. In this case, “0,1,0”, when the predictor 1c is selected by the priority order determination unit 5,
It becomes "0, 0, 1". In addition, the multiplexer 6 has
In addition to the priority information, initial predictor selection information indicating which predictor to use at the start of the encoding process is supplied,
At the start of encoding, a predetermined predictor is selected by the initial predictor selection information.

【0020】予測器情報ラッチ7は、マルチプレクサ6
の出力を一時記憶する3ビットのラッチ回路であり、マ
ルチプレクサ6から供給されるデータ(現在の注目画素
に対して選択した予測器を示す情報)をラッチするとと
もに、マルチプレクサ3および優先順位決定部5に供給
する。したがって、予測器情報ラッチ7の出力は、現
在、符号化しようとしている注目画素より以前の符号化
済みの画素に対して選択された(最適であった)予測器
がどれであったかを示している。例えば、1画素毎に画
像データを入力し、入力画像データに対して予測値を求
めるようにした場合には、予測器情報ラッチ7の出力
は、現在符号化しようとしている注目画素の直前画素
で、予測誤差が最小となった予測器を示すようになって
いる。また、二値画像データを複数画素をまとめてグル
ープ化して予測を行った場合には、現在符号化しようと
している注目画素を含むグループの直前のグループに対
して予測誤差が最小となった予測器を示すようになって
いる。
The predictor information latch 7 is a multiplexer 6
Is a 3-bit latch circuit for temporarily storing the output of the multiplexer 6, latches the data supplied from the multiplexer 6 (information indicating the predictor selected for the current pixel of interest), and the multiplexer 3 and the priority determination unit 5 Supply to. Therefore, the output of the predictor information latch 7 indicates which predictor was selected (optimum) for the coded pixel before the pixel of interest currently being coded. . For example, when image data is input pixel by pixel and a prediction value is calculated for the input image data, the output of the predictor information latch 7 is the pixel immediately preceding the pixel of interest currently being encoded. , The predictor with the smallest prediction error is shown. In addition, when the prediction is performed by grouping a plurality of pixels of the binary image data into a group, the predictor having the smallest prediction error with respect to the group immediately before the group including the pixel of interest currently being encoded. Is shown.

【0021】符号化部8は、ハフマン符号やランレング
ス符号、算術符号等の符号化方式により、マルチプレク
サ3が出力する注目画素に対する予測誤差D(Da,D
b,Dcのいずれか)を符号化する。
The coding unit 8 uses a coding method such as Huffman coding, run-length coding, or arithmetic coding to predict the prediction error D (Da, D) for the target pixel output from the multiplexer 3.
b or Dc) is encoded.

【0022】このように、本実施形態と従来技術との差
は、優先順位決定部5を設け、優先順位決定部5によっ
て、予測誤差の大きさに予測器毎の予測精度を加味し、
注目画素を符号化するための最適な予測器を、複数の予
測器の中から過去の選択情報に基づいて選択するように
したところにある。以下、該優先順位決定部の構成につ
いて説明する。
As described above, the difference between this embodiment and the prior art is that the priority order determining section 5 is provided, and the priority order determining section 5 adds the prediction accuracy of each predictor to the magnitude of the prediction error.
The optimum predictor for encoding the pixel of interest is selected from a plurality of predictors based on past selection information. The configuration of the priority order determination unit will be described below.

【0023】A−2.優先順位決定部の構成 図3は、本実施形態による画像符号化装置の優先順位決
定部の一構成例を示すブロック図である。図において、
Sar,Sbr,Scrは、各々、予測器1a,1b,
1cに対応するマルチプレクサ6の出力である。また、
Sap,Sbp,Scpは、各々、予測器1a,1b,
1cに対する予測器情報ラッチ7の出力、すなわち、現
在、符号化しようとしている注目画素より以前の符号化
済みの画素に対して最適であった予測器を示す情報であ
る。
A-2. Configuration of Priority Order Determination Unit FIG. 3 is a block diagram showing an example of the configuration of the priority order determination unit of the image encoding device according to the present embodiment. In the figure,
Sar, Sbr, and Scr are predictors 1a, 1b, and
This is the output of the multiplexer 6 corresponding to 1c. Also,
Sap, Sbp, and Scp are predictors 1a, 1b, and
This is information indicating the output of the predictor information latch 7 for 1c, that is, the predictor that is optimum for the coded pixel before the current pixel to be coded.

【0024】前述したように、マルチプレクサ6の出力
は、現在の注目画素において、予測器1a,1b,1c
によって算出された予測誤差Da,Db,Dcのうち、
最小の予測誤差を与える予測器を示す情報である。ま
た、予測器情報ラッチ7の出力は、現在の注目画素に対
してどの予測器を選択するかを示す情報であると同時
に、直前画素において予測誤差が最小となった予測器を
示す情報である。
As described above, the output of the multiplexer 6 is the predictors 1a, 1b, 1c at the current pixel of interest.
Of the prediction errors Da, Db, Dc calculated by
This is information indicating the predictor that gives the smallest prediction error. The output of the predictor information latch 7 is information indicating which predictor is selected for the current pixel of interest, and at the same time is information indicating the predictor having the smallest prediction error in the immediately preceding pixel. .

【0025】ANDゲート11a,11b,11cは、
各々、マルチプレクサ6の出力Sar,Sbr,Scr
と予測器情報ラッチ7の出力Sap,Sbp,Scpと
の論理積を演算し、演算結果をカウンタ12a,12
b,12cに供給する。すなわち、各ANDゲート11
a,11b,11cでは、入力される双方のビットが
「1」である場合にのみ「1」を出力する。双方のビッ
トが「1」であるということは、現在選択されている予
測器が直前画素においても最小の予測誤差を与えた予測
器であったことを示している。すなわち、ANDゲート
11a,11b,11cの出力は、現在の注目画素のた
めに選択した予測器(予測器情報ラッチ7の出力)が直
前画素においても最小の予測誤差を与えた予測器(マル
チプレクサ6の出力)であるかどうかを示す情報とな
り、双方が一致し、対応するANDゲートの出力が
「1」となった場合には、現在の注目画素に対して最適
な予測器を選択したことになる。
The AND gates 11a, 11b and 11c are
The outputs Sar, Sbr, Scr of the multiplexer 6, respectively.
And the outputs Sap, Sbp, Scp of the predictor information latch 7 are calculated, and the calculation results are obtained by the counters 12a, 12
b, 12c. That is, each AND gate 11
In a, 11b, and 11c, "1" is output only when both input bits are "1". The fact that both bits are “1” indicates that the currently selected predictor was the predictor that gave the smallest prediction error even in the immediately preceding pixel. That is, the outputs of the AND gates 11a, 11b, and 11c are predictors (multiplexer 6) to which the predictor selected for the current pixel of interest (output of the predictor information latch 7) gives the smallest prediction error even in the immediately preceding pixel. Output), and when both match and the output of the corresponding AND gate is “1”, it means that the optimum predictor for the current pixel of interest is selected. Become.

【0026】カウンタ12a,12b,12cは、AN
Dゲート11a,11b,11cの各々に対応して設け
られており、各ANDゲート11a,11b,11cの
出力が「1」となった回数を計数し、それぞれ計数値S
UMa,SUMb,SUMcとして比較器13に供給す
る。したがって、カウンタ12a,12b,12cにお
ける計数値SUMa,SUMb,SUMcは、使用する
予測器として選択した回数を予測器1a,1b,1c毎
に示していることになり、計数値が大きいほど、対応す
る予測器が最適な予測器として選択された回数が多く、
予測精度が高いと言える。言い換えると、現在の注目画
素に対して最小の予測誤差を与えた予測器と注目画素よ
り以前の符号化済み画素に対する予測器とが一致しない
場合には、対応するカウンタの計数値は増加しないこと
になる。
The counters 12a, 12b, 12c are the ANs.
It is provided corresponding to each of the D gates 11a, 11b, 11c, and counts the number of times that the output of each AND gate 11a, 11b, 11c becomes "1", and counts the count value S respectively.
It is supplied to the comparator 13 as UMa, SUMb, and SUMc. Therefore, the count values SUMa, SUMb, and SUMc in the counters 12a, 12b, and 12c indicate the number of times selected as the predictor to be used for each predictor 1a, 1b, and 1c. The number of times that the predictor that
It can be said that the prediction accuracy is high. In other words, if the predictor that gives the smallest prediction error for the current pixel of interest does not match the predictor for the coded pixels before the pixel of interest, the count value of the corresponding counter should not increase. become.

【0027】比較器13は、予測器毎に対応して設けら
れたカウンタ12a,12b,12cの計数値SUM
a,SUMb,SUMcを比較し、計数値の小さい方か
ら順に高くなるように、各予測器1a,1b,1cの優
先順位を設定する。上記計数値SUMa,SUMb,S
UMcが一致している場合には、予め設定されている固
定優先順位に従って優先順位を決定し、一致したうちの
いずれか1つを次の画素に対する予測器とすればよい。
The comparator 13 is a count value SUM of the counters 12a, 12b, 12c provided corresponding to each predictor.
a, SUMb, and SUMc are compared, and the predictors 1a, 1b, and 1c are prioritized so that the count values become higher in ascending order. Count value SUMa, SUMb, S
When the UMc match, the priority order is determined according to a preset fixed priority order, and any one of the match values may be used as a predictor for the next pixel.

【0028】B.実施形態の動作 次に、本実施形態の動作を説明する。まず、入力される
画像データは、画素(またはグループ)単位で、異なる
予測関数を有する予測器1a〜1cによって、注目画素
の画素信号Xに対する予測値Pa〜Pcが算出された
後、注目画素値に対する予測誤差Da,Db,Dcが算
出される。マルチプレクサ3では、予測器情報ラッチ7
から出力される情報、すなわち、現在の符号化注目画素
より以前に符号化された画素において選択された最適な
予測器を示す情報に従って、上記予測誤差Da〜Dcの
いずれかを選択し、符号化すべき予測誤差Dとして符号
化部8に供給する。符号化部8では、所定の符号化方式
により、マルチプレクサ3が出力する予測誤差Dを符号
化する。
B. Next, the operation of this embodiment will be described. First, in the input image data, the prediction values Pa to Pc for the pixel signal X of the target pixel are calculated by the predictors 1a to 1c having different prediction functions in units of pixels (or groups), and then the target pixel value Prediction errors Da, Db, Dc are calculated. In the multiplexer 3, the predictor information latch 7
Any of the prediction errors Da to Dc is selected and encoded according to the information output from the above, that is, the information indicating the optimum predictor selected in the pixel encoded before the current encoded pixel of interest. The prediction error D is supplied to the encoding unit 8. The encoding unit 8 encodes the prediction error D output from the multiplexer 3 by a predetermined encoding method.

【0029】一方、上記予測誤差Da〜Dcは、予測誤
差評価部2a〜2cによって、その大きさが求められ、
予測誤差評価値Ea〜Ecとして最小予測誤差検出部4
に供給される。最小予測誤差検出部4では、各予測誤差
Da〜Dcの大きさを示す3つの予測誤差評価値Ea〜
Ecのうち、最小の予測誤差を与えた予測器に対応する
フラグビットを全てアサートして出力する。このとき、
マルチプレクサ6には、優先順位決定部5から直前画素
に対して選択された予測器を示す優先順位情報Sが供給
されている。したがって、マルチプレクサ6では、該優
先順位情報Sに従って、上記最小予測誤差検出部4が出
力するフラグFの各フラグビットのうち、どのフラグビ
ットをアサートすべきかが決定される。
On the other hand, the magnitudes of the prediction errors Da to Dc are obtained by the prediction error evaluation units 2a to 2c,
The minimum prediction error detection unit 4 as the prediction error evaluation values Ea to Ec
Is supplied to. In the minimum prediction error detection unit 4, three prediction error evaluation values Ea to indicating the magnitudes of the prediction errors Da to Dc.
Of Ec, all flag bits corresponding to the predictor that gave the smallest prediction error are asserted and output. At this time,
The multiplexer 6 is supplied with priority information S indicating the predictor selected for the immediately preceding pixel from the priority determination unit 5. Therefore, in the multiplexer 6, according to the priority order information S, which flag bit of each flag bit of the flag F output by the minimum prediction error detection unit 4 is to be asserted is determined.

【0030】優先順位決定部5では、マルチプレクサ6
の出力、すなわち現在の注目画素に対して最小の予測誤
差を与える予測器を示す情報と予測器情報ラッチ7から
出力される直前画素に対して用いた最適な予測器を示す
情報とに基づいて、予測器1a〜1cのうち次の注目画
素に対してどの予測器を優先的に選択すべきかを示す優
先順位を決定し、選択すべき予測器を示す選択順位情報
Sを出力する。
In the priority order determining section 5, the multiplexer 6
Based on the information indicating the predictor that gives the smallest prediction error to the current pixel of interest and the information indicating the optimum predictor used for the immediately preceding pixel output from the predictor information latch 7. Among the predictors 1a to 1c, the priority order indicating which predictor should be preferentially selected for the next pixel of interest is determined, and the selection order information S indicating the predictor to be selected is output.

【0031】具体的には、優先順位決定部5では、ま
ず、マルチプレクサ6の出力Sar,Sbr,Scrと
予測器情報ラッチ7の出力Sap,Sbp,Scpとの
論理積がANDゲート11a〜11cによって演算され
る。次いで、カウンタ12a〜12cによって、各AN
Dゲート11a〜11cの出力が「1」となった回数が
計数され、それぞれ計数値SUMa,SUMb,SUM
cとして比較器13に供給される。したがって、カウン
タ12a〜12cにおける計数値SUMa,SUMb,
SUMcは、最適な予測器として選択された回数を予測
器1a〜1c毎に示していることになり、計数値が大き
いほど、予測精度が高いと言える。また、該計数値は、
直前画素に対して選択した予測器と現在の注目画素で最
小の予測誤差を与える予測器が一致した場合にのみカウ
ントアップされる。比較器13では、カウンタ12a〜
12cの計数値SUMa,SUMb,SUMcを比較
し、計数値の小さい方から順に高くなるように、各予測
器1a〜1cに対する優先順位情報Sを設定する。上述
したように、計数値が大きいということは、最適な予測
器として選択された回数が多く、予測精度の高い予測器
として選択されたことを示している。したがって、予測
器情報ラッチ7では、直前画素に対して選択した、その
時点で最適な予測器を示す情報となり、マルチプレクサ
3からは、該最適な予測器で算出された予測誤差が最終
的に符号化される予測誤差Dとして出力されることにな
る。
Specifically, in the priority order determining section 5, first, the AND gates 11a to 11c determine the logical product of the outputs Sar, Sbr, Scr of the multiplexer 6 and the outputs Sap, Sbp, Scp of the predictor information latch 7. Is calculated. Then, the counters 12a to 12c cause each AN to operate.
The number of times that the output of the D gates 11a to 11c becomes "1" is counted, and the count values SUMa, SUMb, SUM are respectively counted.
It is supplied to the comparator 13 as c. Therefore, the count values SUMa, SUMb, in the counters 12a to 12c,
The SUMc indicates the number of times selected as the optimum predictor for each of the predictors 1a to 1c, and it can be said that the larger the count value, the higher the prediction accuracy. Further, the count value is
It is counted up only when the predictor selected for the immediately preceding pixel and the predictor giving the smallest prediction error at the current pixel of interest match. In the comparator 13, the counters 12a ...
The count values SUMa, SUMb, and SUMc of 12c are compared, and the priority order information S for each of the predictors 1a to 1c is set so that the count values become higher in ascending order. As described above, the fact that the count value is large indicates that the number of times of selection as the optimum predictor is large and the predictor with high prediction accuracy is selected. Therefore, the predictor information latch 7 has information indicating the optimum predictor selected for the immediately preceding pixel at that time, and the prediction error calculated by the optimum predictor is finally encoded from the multiplexer 3. Will be output as the prediction error D to be converted.

【0032】このように、本実施形態では、優先順位設
定部5において、直前画素に対して選択した予測器(そ
の時点で最適な予測器)が現在の注目画素に対して最小
の予測誤差を与える予測器と同一である場合、その予測
器に対する優先順位が高くなるように設定し、該動的に
変化する優先順位に従って、次の画素を符号化する際に
用いる予測器を決定するようにしたので、比較的簡単な
構成で、予測精度の高い予測器を選択することができ、
画質劣化を最小限に抑えながら効率よく画像データを圧
縮することができる。
As described above, in the present embodiment, in the priority setting unit 5, the predictor selected for the immediately preceding pixel (the optimum predictor at that time) produces the smallest prediction error for the current pixel of interest. If it is the same as the given predictor, it is set to have a higher priority for the predictor, and the predictor to be used when encoding the next pixel is determined according to the dynamically changing priority. Therefore, with a relatively simple configuration, you can select a predictor with high prediction accuracy,
It is possible to efficiently compress image data while minimizing deterioration of image quality.

【0033】C.本実施形態の変形例 C−1.第1変形例 (a)第1変形例による優先順位決定部5およびマルチ
プレクサ6の構成 次に、上述した優先順位決定部5とマルチプレクサ6と
を同一ブロックにまとめた変形例について図4を参照し
て説明する。なお、図3に対応する部分には同一の符号
を付けて説明を省略する。図において、ANDゲート1
4a,14b,14cは、各々、図3において優先順位
決定部5を構成していたカウンタ12a,12b,12
c各々の計数値と最小予測誤差検出部4の出力である予
測器1a,1b,1c毎に対応したビットを有するフラ
グF(各ビットをFa,Fb,Fcと表す)との論理積
を演算し、演算結果を比較器15に供給する。このと
き、最小予測誤差検出器4で最小値を与えると判定され
た予測器のフラグビットはアサートされているので、当
該予測器に対応するカウンタの計数値は、対応するAN
Dゲートを介してそのまま比較器15に供給される。こ
れに対して、最小予測誤差検出部4で最小値を与えない
と判定された予測器のフラグビットはネゲートのままで
あるので、当該予測器に対応するカウンタの計数値は、
対応するANDゲートを通過しないので、比較器15に
は「0」が供給される。
C. Modification of this embodiment C-1. First Modified Example (a) Configuration of Priority Determining Unit 5 and Multiplexer 6 According to First Modified Example Next, with reference to FIG. 4, for a modified example in which the priority determining unit 5 and the multiplexer 6 described above are combined in the same block. Explain. The parts corresponding to those in FIG. 3 are designated by the same reference numerals and the description thereof will be omitted. In the figure, AND gate 1
4a, 14b and 14c are counters 12a, 12b and 12 which constitute the priority order determination unit 5 in FIG.
The logical product of the count value of each c and the flag F (each bit is represented as Fa, Fb, Fc) having a bit corresponding to each predictor 1a, 1b, 1c which is the output of the minimum prediction error detection unit 4 is calculated. Then, the calculation result is supplied to the comparator 15. At this time, since the flag bit of the predictor determined to give the minimum value by the minimum prediction error detector 4 is asserted, the count value of the counter corresponding to the predictor is the corresponding AN.
It is directly supplied to the comparator 15 via the D gate. On the other hand, since the flag bit of the predictor determined not to give the minimum value by the minimum prediction error detection unit 4 remains negated, the count value of the counter corresponding to the predictor is
Since it does not pass through the corresponding AND gate, "0" is supplied to the comparator 15.

【0034】比較器15は、各予測器1a,1b,1c
に対応するカウンタ12a,12b,12cの計数値の
最大値を決定し、最大値である入力に対応した出力ビッ
トのみをアサートする。したがって、最小予測誤差検出
部4の出力である3ビットのフラグFの中から唯一アサ
ートすべきビットを、過去により多く選択された情報に
従って、言い換えると、予測精度に関連した優先順位に
従って決定することになる。
The comparator 15 includes the predictors 1a, 1b and 1c.
The maximum value of the count values of the counters 12a, 12b, 12c corresponding to is determined, and only the output bit corresponding to the input having the maximum value is asserted. Therefore, the only bit to be asserted from the 3-bit flag F output from the minimum prediction error detection unit 4 is determined according to the information selected more in the past, in other words, according to the priority order related to the prediction accuracy. become.

【0035】(b)第1変形例による優先順位決定部5
およびマルチプレクサ6の動作 上述した第2変形例による優先順位決定部5によれば、
ANDゲート11a〜11cによって、比較器15の出
力である信号Sar,Sbr,Scrと、予測器情報ラ
ッチ7の出力である信号Sap,Sbp,Scpとの論
理積が演算される。したがって、ANDゲート11a〜
11cの出力は、前述したように、直前画素に対して最
小の予測誤差を与えた予測器が現在の注目画素に対して
も最小の予測誤差を与えた予測器であることを示すこと
になる。したがって、カウンタ12a〜12cでは、直
前画素において予測誤差が最小であった予測器が現在の
注目画素に対しても最適な予測器であった回数が計数さ
れる。
(B) Priority order determination unit 5 according to the first modification
And the operation of the multiplexer 6 According to the priority order determination unit 5 according to the second modification described above,
The AND gates 11a to 11c calculate the logical product of the signals Sar, Sbr, Scr output from the comparator 15 and the signals Sap, Sbp, Scp output by the predictor information latch 7. Therefore, the AND gates 11a ...
As described above, the output of 11c indicates that the predictor that gives the minimum prediction error to the immediately preceding pixel is the predictor that also gives the minimum prediction error to the current pixel of interest. . Therefore, the counters 12a to 12c count the number of times that the predictor having the smallest prediction error in the immediately preceding pixel was the optimum predictor for the current pixel of interest.

【0036】ANDゲート14a〜14cでは、最小予
測誤差検出器4からのフラグFのフラグビットFa〜F
cに従って、各カウンタ12a〜12cの計数値を通過
させる。すなわち、最小値を与えると判定された予測器
に対応するカウンタの計数値は、対応するANDゲート
を介してそのまま比較器15に供給される一方、最小値
を与えないと判定された予測器に対応するカウンタの計
数値は、対応するANDゲートを通過しないので、比較
器15には「0」が供給される。
In the AND gates 14a to 14c, the flag bits Fa to F of the flag F from the minimum prediction error detector 4 are inputted.
According to c, the count value of each counter 12a-12c is passed. That is, the count value of the counter corresponding to the predictor determined to give the minimum value is directly supplied to the comparator 15 via the corresponding AND gate, while it is supplied to the predictor determined not to give the minimum value. Since the count value of the corresponding counter does not pass through the corresponding AND gate, “0” is supplied to the comparator 15.

【0037】比較器15では、各予測器1a〜1cに対
応するカウンタ12a〜12cの計数値の最大値を決定
し、最大値である入力に対応した出力ビットのみをアサ
ートし、最終的な予測誤差Dを選択するためのマルチプ
レクサ3に供給する。この結果、注目画素に対して最適
な予測器で算出された予測誤差が符号化されるべき予測
誤差Dとして符号化部8に供給される。
The comparator 15 determines the maximum value of the count values of the counters 12a to 12c corresponding to the predictors 1a to 1c, asserts only the output bit corresponding to the input having the maximum value, and makes the final prediction. The error D is supplied to the multiplexer 3 for selecting. As a result, the prediction error calculated by the optimum predictor for the pixel of interest is supplied to the encoding unit 8 as the prediction error D to be encoded.

【0038】このように、本第2変形例では、上述した
優先順位決定部5とマルチプレクサ6とを同一ブロック
にまとめたので、回路構成を簡略化できる。
As described above, in the second modification, the above-mentioned priority determining section 5 and the multiplexer 6 are integrated in the same block, so that the circuit structure can be simplified.

【0039】C−2.第2変形例 ところで、図3に示すように、選択した予測器が最適で
あった回数を予測器毎に計数し、その計数値から予測精
度を推定する場合、最適な予測器が選択され続ける限
り、その回数を計数する必要があるので、カウンタ12
a,12b,12cは大規模なカウンタ回路で構成しな
ければならなくなる。使用する予測器の数が多ければ、
それだけ大規模なカウンタ回路の数も増やさなければな
らない。
C-2. Second Modification By the way, as shown in FIG. 3, when the number of times that the selected predictor is optimum is counted for each predictor and the prediction accuracy is estimated from the count value, the optimum predictor continues to be selected. As long as it is necessary to count the number of times, the counter 12
a, 12b, and 12c will have to be composed of large-scale counter circuits. If you use a large number of predictors,
The number of large-scale counter circuits must be increased accordingly.

【0040】本実施形態のように、直前画素で予測誤差
が最小となった予測器を注目画素の予測器として使用す
る場合、予測器を切り換えた直後も、引き続きその予測
器が選択される回数、すなわち、当該予測器が少なくと
も2回以上連続して選択される回数が多いほど、当該予
測器の予測精度が高いと考えられる。以下では、カウン
タ回路の規模を大きくしないために、連続して選択され
る回数に基づいて優先順位を決定する方式について説明
する。
When the predictor having the smallest prediction error in the immediately preceding pixel is used as the predictor of the pixel of interest as in the present embodiment, the number of times that the predictor is continuously selected even immediately after switching the predictor. That is, it is considered that the prediction accuracy of the predictor increases as the number of times the predictor is continuously selected at least twice or more. In the following, a method of deciding the priority order based on the number of times of continuous selection will be described in order not to increase the scale of the counter circuit.

【0041】(a)第2変形例による優先順位決定部5
の構成 図5は、上述したように、予測器を切り換えた直後、引
き続き同一の予測器が選択された回数を検出し、各予測
器の優先順位を決定する優先順位決定部5の構成を示す
回路図である。図において、D型フリップフロップ21
a,21b,21cおよびAND回路22a,22b,
22cは、Sar,Sbr,Scrの立ち上がり微分信
号を生成する。また、D型フリップフロップ23a,2
3b,23cは、上記立ち上がり微分信号を1サンプル
クロック分遅延させ、信号Sap’,Sbp’,Sc
p’として出力する。すなわち、本第2変形例では、予
測器情報ラッチ7の出力Sap,Sbp,Scpの代わ
りに、D型フリップフロップ23a,23b,23cで
1サンプルクロック分遅延させた信号Sap’,Sb
p’,Scp’を用いている。AND回路24a,24
b.24cは、各々、信号SarとSap’、Sbrと
Sbp’、ScrとScp’との論理積を演算し、その
演算結果をカウンタ25a,25b,25cに供給す
る。
(A) Priority order determination unit 5 according to the second modification
Configuration of FIG. 5 shows the configuration of the priority order determination unit 5 that determines the priority order of each predictor by detecting the number of times the same predictor is selected immediately after switching the predictors, as described above. It is a circuit diagram. In the figure, a D-type flip-flop 21
a, 21b, 21c and AND circuits 22a, 22b,
22c generates rising differential signals of Sar, Sbr, and Scr. In addition, the D-type flip-flops 23a, 2
3b and 23c delay the rising differential signal by one sample clock to generate signals Sap ', Sbp' and Sc.
Output as p '. That is, in the second modified example, instead of the outputs Sap, Sbp, Scp of the predictor information latch 7, signals Sap ′, Sb delayed by one sample clock by the D-type flip-flops 23a, 23b, 23c.
p ′ and Scp ′ are used. AND circuits 24a, 24
b. 24 c calculates the logical product of the signals Sar and Sap ′, Sbr and Sbp ′, Scr and Scp ′, and supplies the calculation results to the counters 25 a, 25 b and 25 c.

【0042】カウンタ25a,25b,25cは、上記
AND回路24a,24b,24cの出力が「1」とな
る回数を計数し、後述する制御部27から供給される制
御信号CS1に従って、計数値をシフトレジスタ26
a,26b,26cおよび比較器28に供給する。シフ
トレジスタ26a,26b,26cは、後述する制御部
27から供給される制御信号CS1に従って、カウンタ
25a,25b,25cが出力する各計数値を取り込ん
だ後、所定ビット数(=m)だけ左シフトし、その結果
を制御部27から供給される上記制御信号CS1によ
り、カウンタ25a,25b,25cに再供給する。
The counters 25a, 25b, 25c count the number of times that the outputs of the AND circuits 24a, 24b, 24c become "1", and shift the count value according to a control signal CS1 supplied from a control unit 27 described later. Register 26
a, 26b, 26c and the comparator 28. The shift registers 26a, 26b, 26c take in the respective count values output by the counters 25a, 25b, 25c according to a control signal CS1 supplied from a control unit 27 described later, and then shift left by a predetermined number of bits (= m). Then, the result is re-supplied to the counters 25a, 25b, 25c by the control signal CS1 supplied from the control unit 27.

【0043】制御部27は、カウンタ25a,25b,
25cのいずれかでキャリーが発生したことを検出し、
その時点で、カウンタ25a,25b,25cそれぞれ
の計数値を次段のシフトレジスタ26a,26b,26
cに取り込ませる。
The control unit 27 includes counters 25a, 25b,
It is detected that a carry occurs in any of 25c,
At that time, the count values of the counters 25a, 25b, 25c are set to the shift registers 26a, 26b, 26 of the next stage.
Incorporate into c.

【0044】(b)第2変形例による優先順位決定部5
の動作 上述した第2変形例による優先順位決定部5によれば、
D型フリップフロップ21a〜21cおよびAND回路
22a〜22cによって、Sar,Sbr,Scrの立
ち上がり微分信号を生成した後、該立ち上がり微分信号
を、さらに、1サンプルクロック周期の時間、D型フリ
ップフロップ23a〜23cによって遅延させ、信号S
ap’,Sbp’,Scp’を生成する。次に、AND
回路24a〜24cによって、上記信号Sar,Sb
r,Scrと上記信号Sap’,Sbp’,Scp’の
論理積を演算する。この結果、AND回路24a〜24
cの出力は、直前画素で最小の予測画素を与えた予測器
が現在の注目画素に対しても最小の予測誤差を与えた予
測器であることを示すことになる。したがって、カウン
タ25a〜25cでは、直前画素において予測誤差が最
小であった予測器が現在の注目画素に対しても、最適な
予測器であった回数が計数される。
(B) Priority order determination unit 5 according to the second modification
According to the priority order determination unit 5 according to the second modification described above,
After the rising differential signals of Sar, Sbr, and Scr are generated by the D-type flip-flops 21a to 21c and the AND circuits 22a to 22c, the rising differential signals are further added to the D-type flip-flops 23a to 23a. 23c to delay the signal S
ap ', Sbp', and Scp 'are generated. Next, AND
The signals Sar and Sb are output by the circuits 24a to 24c.
The logical product of r, Scr and the signals Sap ′, Sbp ′, Scp ′ is calculated. As a result, AND circuits 24a-24
The output of c indicates that the predictor that gave the smallest predicted pixel in the immediately preceding pixel is the predictor that also gave the smallest prediction error for the current pixel of interest. Therefore, the counters 25a to 25c count the number of times that the predictor having the smallest prediction error in the immediately preceding pixel was the optimum predictor for the current pixel of interest.

【0045】そして、カウンタ25a〜25cのいずれ
かでキャリーが生じると、制御部27によって、上記キ
ャリーが検出され、制御信号CS1がカウンタ25a〜
25cおよびシフトレジスタ26a〜26cに供給され
る。シフトレジスタ26a〜26cは、制御信号CS1
が供給されると、上記カウンタ25a〜25cによる計
数値を取り込み、所定ビット数(=m)だけ左シフトす
る。その後、シフトされた計数値は、カウンタ25a〜
25cに再ロードされる。
When a carry occurs in any of the counters 25a to 25c, the control unit 27 detects the carry and the control signal CS1 outputs the control signal CS1.
25c and shift registers 26a to 26c. The shift registers 26a to 26c use the control signal CS1.
Is supplied, the count values of the counters 25a to 25c are fetched and left-shifted by a predetermined number of bits (= m). Thereafter, the shifted count value is counted by the counters 25a to
Reloaded to 25c.

【0046】このように、任意のカウンタでキャリーが
生じると、他のカウンタ25a〜25cの計数値ととも
に、1/2m分減じることができる。したがって、カウ
ンタ25a〜25cのビット数を大きくすることなく、
小規模な回路構成で、複数個の予測器の中から注目画素
に最適な予測器をその都度選択することができる。
In this way, when a carry occurs in any counter, it can be reduced by 1/2 m together with the count values of the other counters 25a to 25c. Therefore, without increasing the number of bits of the counters 25a to 25c,
With a small-scale circuit configuration, the optimum predictor for the target pixel can be selected from the plurality of predictors each time.

【0047】比較器28では、各予測器1a〜1cに対
応するカウンタ25a〜25cの計数値の最大値を決定
し、最大値である入力に対応した出力ビットのみをアサ
ートし、最終的な予測誤差Dを選択するためのマルチプ
レクサ3に供給する。この結果、注目画素に対して最適
な予測器で算出された予測誤差が符号化されるべき予測
誤差Dとして符号化部8に供給される。
The comparator 28 determines the maximum value of the count values of the counters 25a to 25c corresponding to the predictors 1a to 1c, asserts only the output bit corresponding to the input having the maximum value, and makes the final prediction. The error D is supplied to the multiplexer 3 for selecting. As a result, the prediction error calculated by the optimum predictor for the pixel of interest is supplied to the encoding unit 8 as the prediction error D to be encoded.

【0048】このように、本第2変形例では、予測器を
切り換えた直後も、引き続きその予測器が選択される回
数、すなわち、当該予測器が少なくとも2回以上連続し
て選択される回数に基づいて優先順位を決定するため
に、カウンタ25a〜25cのいずれかでフルカウント
になってキャリーが生じると、上記カウンタ25a〜2
5cによる計数値を、所定ビット数(=m)だけ左シフ
トし、1/2m分減じるようにしたので、カウンタ25
a〜25cのビット数を大きくすることなく、小規模な
回路構成で実現できる。
As described above, in the second modified example, immediately after switching the predictor, the number of times that the predictor is continuously selected, that is, the number of times when the predictor is continuously selected at least twice or more is set. In order to determine the priority order based on the above, when one of the counters 25a to 25c becomes a full count and a carry occurs, the counters 25a to 25c
Since the count value of 5c is shifted to the left by a predetermined number of bits (= m) and reduced by 1/2 m, the counter 25
It can be realized with a small-scale circuit configuration without increasing the number of bits of a to 25c.

【0049】なお、図5に示す構成では、カウンタ25
a〜25cによる計数値を除算することにより小さな値
とすることで、カウンタ25a〜25cを少ないビット
数で構成可能としたが、任意のカウンタでキャリー発生
を検出した時点でのカウンタ最小計数値を求め、その値
を全てのカウンタから減じた値を、カウンタ25a〜2
5cに再ロードして、次回のカウンタ初期値としてもよ
い。
In the configuration shown in FIG. 5, the counter 25
Although it is possible to configure the counters 25a to 25c with a small number of bits by dividing the count value by a to 25c into a small value, the counter minimum count value at the time when a carry occurrence is detected by an arbitrary counter is set. The values obtained by subtracting the obtained values from all the counters are counted by the counters 25 a to 2
It may be reloaded to 5c and used as the next counter initial value.

【0050】C−3.第3変形例 上述した実施形態では、任意の予測器の予測精度を当該
予測器が連続して選択される回数により評価していた
が、本第3変形例では、符号化済みの画素に対して最小
の予測誤差を与えた予測器が現在の注目画素に対して
は、最適な予測器ではなかった回数を計数し、その計数
値が多い予測器ほどその優先順位を下げるようにしても
よい。以下では、最適な予測器ではなかった回数を計数
し、その計数値が多い予測器ほどその優先順位を下げる
方式について説明する。
C-3. Third Modified Example In the above-described embodiment, the prediction accuracy of an arbitrary predictor is evaluated based on the number of times that the predictor is continuously selected. The predictor that gives the smallest prediction error may count the number of times that it is not the optimum predictor for the current pixel of interest, and lower the priority of the predictor with the larger count value. . In the following, a method will be described in which the number of times that is not the optimum predictor is counted, and the predictor having a larger count value lowers its priority.

【0051】(a)第3変形例による優先順位決定部5
の構成 図6は、上述したように、最適な予測器ではなかった回
数を計数し、その計数値に基づいて優先順位を決定する
優先順位決定部5の構成を示す回路図である。図におい
て、D型フリップフロップ31a,31b,31cおよ
びNAND回路32a,32b,32cは、マルチプレ
クサ6からの信号Sar,Sbr,Scrの立ち上がり
微分信号を生成する。また、D型フリップフロップ33
a,33b,33cは、上記立ち上がり微分信号を1サ
ンプルクロック分遅延させ、信号Sap’,Sbp’,
Scp’として出力する。NOR回路34a,34b,
34cは、各々、信号SarとSap’、SbrとSb
p’、ScrとScp’との負論理積を演算し、その演
算結果をカウンタ35a,35b,35cに供給する。
したがって、NOR回路34a,34b,34cの出力
は、双方の信号が「0」となった場合、すなわち、直前
画素に対して最小の予測誤差を与え、現在の着目画素で
は最小の予測誤差を与えなかった予測器であった場合に
「1」となる。
(A) Priority order determination unit 5 according to the third modification
Configuration of FIG. 6 is a circuit diagram showing the configuration of the priority order determination unit 5 that counts the number of times that it is not the optimum predictor and determines the priority order based on the count value, as described above. In the figure, D-type flip-flops 31a, 31b, 31c and NAND circuits 32a, 32b, 32c generate rising differential signals of the signals Sar, Sbr, Scr from the multiplexer 6. In addition, the D-type flip-flop 33
a, 33b and 33c delay the rising differential signal by one sample clock to generate signals Sap ′, Sbp ′,
Output as Scp '. NOR circuits 34a, 34b,
34c are signals Sar and Sap ', Sbr and Sb, respectively.
A negative logical product of p ', Scr and Scp' is calculated, and the calculation result is supplied to the counters 35a, 35b, 35c.
Therefore, the outputs of the NOR circuits 34a, 34b, and 34c give the smallest prediction error to the immediately preceding pixel when both signals are "0", and give the smallest prediction error to the current pixel of interest. It becomes "1" when the predictor is not present.

【0052】カウンタ35a,35b,35cは、各
々、NOR回路34a,34b,34cの出力が「1」
となる回数を計数し、該計数値を比較器37に供給する
とともに、計数値がフルカウント状態になると、カウン
ト動作を停止し、NAND回路36にキャリーを供給す
る。このように、カウンタ35a,35b,35cは、
フルカウントとになると、カウント動作を停止するの
で、全てのカウンタにおける計数値は、フルカウントに
なると、それ以降は予測器の優先順位が動的に変更でき
なくなる。そこで、全てのカウンタ35a,35b,3
5cの計数値がフルカウントになった時点で、各カウン
タのキャリーの負論理出力の負論理積を演算するNAN
D回路36を設ける。NAND回路36は、各カウンタ
35a,35b,35cが出力するキャリーの負論理積
を演算することで、フルカウントになったことを検出
し、上記演算結果によってカウンタ35a,35b,3
5cをリセットするようになっている。この結果、カウ
ンタ35a,35b,35cは、再度、NOR回路34
a,34b,34cが出力する「1」を計数できるよう
になる。
The outputs of the NOR circuits 34a, 34b, 34c of the counters 35a, 35b, 35c are "1", respectively.
When the count value reaches the full count state, the count operation is stopped and a carry is supplied to the NAND circuit 36. In this way, the counters 35a, 35b, 35c are
When the count reaches the full count, the counting operation is stopped. When the count values of all the counters reach the full count, the priority of the predictor cannot be dynamically changed thereafter. Therefore, all the counters 35a, 35b, 3
NAN for calculating the negative logical product of the negative logical outputs of the carry of each counter when the count value of 5c reaches the full count
A D circuit 36 is provided. The NAND circuit 36 detects the full count by calculating the negative logical product of the carry output from each of the counters 35a, 35b, 35c, and detects the counters 35a, 35b, 3 according to the calculation result.
5c is designed to be reset. As a result, the counters 35a, 35b, and 35c are again in the NOR circuit 34.
It becomes possible to count "1" output by a, 34b, 34c.

【0053】次に、比較器37は、上述した実施形態お
よび変形例とは異なり、計数値が大きいカウンタに対応
する予測器ほど優先順位が低くなるように設定するよう
になっている。すなわち、カウンタにおける計数値が大
きいほど、該カウンタに対応する予測器による予測誤差
が最小(最適)ではなかったことを示しているためであ
る。
Next, unlike the above-described embodiment and modification, the comparator 37 is set such that the predictor corresponding to the counter having a larger count value has a lower priority. That is, the larger the count value in the counter, the more the prediction error by the predictor corresponding to the counter is not the smallest (optimal).

【0054】(b)第3変形例による優先順位決定部5
の動作 上述した第3変形例による優先順位決定部5によれば、
D型フリップフロップ31a〜31cおよびNAND回
路32a〜32cによって、Sar,Sbr,Scrの
立ち上がり微分信号を生成した後、該立ち上がり微分信
号を、さらに、1サンプルクロック周期D型フリップフ
ロップ33a〜33cによって遅延させ、信号Sa
p’,Sbp’,Scp’を生成する。次に、NOR回
路34a〜34cによって、上記信号Sar,Sbr,
Scrと上記信号Sap’,Sbp’,Scp’の負論
理積を演算する。この結果、NOR回路34a〜34c
の出力は、直前画素において最小の予測誤差を与えたに
も拘らず、現在の注目画素で最小の予測誤差を与えなか
ったことを示すことになる。したがって、カウンタ35
a〜35cでは、直前画素において予測誤差が最小であ
った予測器が現在の注目画素に対しては、最適な予測器
でなかった回数が計数される。
(B) Priority order determination unit 5 according to the third modification
According to the priority order determination unit 5 according to the third modification described above,
After the rising differential signals of Sar, Sbr, and Scr are generated by the D-type flip-flops 31a to 31c and the NAND circuits 32a to 32c, the rising differential signals are further delayed by one sample clock cycle D-type flip-flops 33a to 33c. Let the signal Sa
p ', Sbp', Scp 'are generated. Next, by the NOR circuits 34a to 34c, the signals Sar, Sbr,
A negative logical product of Scr and the signals Sap ′, Sbp ′, Scp ′ is calculated. As a result, the NOR circuits 34a to 34c
The output of indicates that the minimum prediction error was not given to the current pixel of interest, even though the minimum prediction error was given to the immediately preceding pixel. Therefore, the counter 35
In a to 35c, the number of times that the predictor with the smallest prediction error in the immediately preceding pixel is not the optimum predictor for the current pixel of interest is counted.

【0055】そして、カウンタ35a〜35cのいずれ
かがフルカウントとなり、キャリーが生じると、該当カ
ウンタでは計数動作が停止する。このとき、NAND回
路36では、上記キャリーが全て発生したことを検出す
るので、カウンタ35a〜35cがリセットされ、カウ
ンタ35a〜35cの計数動作が再開される。
When one of the counters 35a to 35c reaches the full count and a carry occurs, the counting operation of the corresponding counter is stopped. At this time, the NAND circuit 36 detects that all of the above carry has occurred, so that the counters 35a to 35c are reset and the counting operations of the counters 35a to 35c are restarted.

【0056】比較器37では、計数値が大きいカウンタ
に対応する予測器ほど低くなるように優先順位を設定す
る。すなわち、比較器37では、各予測器1a,1b,
1cに対応するカウンタ35a〜35cの計数値の最小
値を決定し、最小値である入力に対応した出力ビットの
みをアサートし、最終的な予測誤差Dを選択するための
マルチプレクサ3に供給する。この結果、注目画素に対
して最適な予測器で算出された予測誤差が符号化される
べき予測誤差Dとして符号化部8に供給される。
In the comparator 37, the priority order is set so that the predictor corresponding to the counter having a larger count value becomes lower. That is, in the comparator 37, the predictors 1a, 1b,
The minimum value of the count values of the counters 35a to 35c corresponding to 1c is determined, only the output bit corresponding to the input having the minimum value is asserted, and the final prediction error D is supplied to the multiplexer 3. As a result, the prediction error calculated by the optimum predictor for the pixel of interest is supplied to the encoding unit 8 as the prediction error D to be encoded.

【0057】このように、本第3変形例では、符号化済
みの画素に対して最小の予測誤差を与えた予測器が現在
の注目画素に対しては、最適な予測器ではなかった回数
を計数し、その計数値が多い予測器ほどその優先順位を
下げることで、各予測器の優先順位を決定するようにし
たので、優先順位決定部5をより簡単な回路構成で実現
できるとともに、予測精度の高い予測器を動的に選択す
ることができ、効率よく画像データを圧縮することがで
きる。
As described above, in the third modification, the number of times that the predictor that gives the minimum prediction error to the coded pixel is not the optimum predictor for the current pixel of interest. Since the priority order of each predictor is determined by counting and decreasing the priority order of the predictor having a larger count value, the priority order determining unit 5 can be realized with a simpler circuit configuration and the prediction can be performed. A highly accurate predictor can be dynamically selected, and image data can be efficiently compressed.

【0058】なお、上述した第3変形例において、全て
の計数値がフルカウントになった時点以降は、予め設定
された固定優先順位で予測器の優先順位を決定してもよ
い。また、計数値がフルカウントになったカウンタに対
応する予測器をそれ以降で使用しないようにしてもよ
い。
In the third modified example described above, the priority order of the predictor may be determined by a preset fixed priority order after the time when all the count values reach the full count. Further, the predictor corresponding to the counter whose count value has reached the full count may not be used thereafter.

【0059】また、上述した第3変形例において、予測
外れ回数を計数することで、複数の予測器の間の優先順
位を設定する場合であっても、図5に示す方式を用い
て、任意のカウンタでキャリーが発生したことを検出
し、その時点で、カウンタ35a〜35cの各々の出力
をシフト手段によって等しく減じ、それを次回のカウン
タ初期値とするように構成してもよい。
Further, in the above-mentioned third modification, even when the priority order among a plurality of predictors is set by counting the number of times of prediction failure, the method shown in FIG. It is also possible to detect that a carry has occurred in the counter, and at that time, the output of each of the counters 35a to 35c is equally reduced by the shift means and set as the next counter initial value.

【0060】また、上述した実施形態および第1ないし
第3変形例において、各部はソフトウエアによるプログ
ラムで実現されてもよいことは言うまでもない。
It goes without saying that, in the above-described embodiment and the first to third modifications, each unit may be realized by a program by software.

【0061】[0061]

【発明の効果】以上、説明したように、この発明によれ
ば、各々異なるパラメータに基づいて、複数の予測手段
により予測された注目画素の値と該注目画素の実際の値
との差分である予測誤差を、予測誤差算出手段によって
算出し、次いで、予測選択手段によって、所定の優先度
に基づいて、複数の予測手段の中から1つの予測手段を
選択し、符号化手段によって、予測選択手段が選択した
予測手段により予測された予測値に基づいて注目画素の
値を符号化する際に、優先度設定手段によって、上記予
測選択手段が同じ予測手段を連続して選択する回数に関
連した情報に基づいて、予測手段毎に、次に使用すべき
予測器を決める優先度を設定するようにしたので、比較
的簡単な構成で、予測精度の高い予測器を選択でき、効
率よく画像データを圧縮することができるという利点が
得られる。
As described above, according to the present invention, it is the difference between the value of the pixel of interest predicted by a plurality of prediction means and the actual value of the pixel of interest based on different parameters. The prediction error is calculated by the prediction error calculating means, then the prediction selecting means selects one predicting means from the plurality of predicting means based on a predetermined priority, and the encoding means selects the predicting selecting means. When the value of the pixel of interest is encoded on the basis of the prediction value predicted by the prediction means selected by the priority setting means, information related to the number of times the prediction selecting means successively selects the same prediction means. Based on the above, the priority that determines the predictor to be used next is set for each predictor, so a predictor with high prediction accuracy can be selected with a relatively simple configuration, and image data can be efficiently used. Advantage that it can be compressed can be obtained.

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

【図1】 本発明の一実施形態による画像符号化装置の
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an image encoding device according to an embodiment of the present invention.

【図2】 本実施形態による画像符号化装置の予測器に
よる予測値を求める動作例を示す概念図である。
FIG. 2 is a conceptual diagram showing an operation example of obtaining a prediction value by a predictor of the image encoding device according to the present embodiment.

【図3】 本実施形態による画像符号化装置の優先順位
決定部の一構成例を示すブロック図である。
FIG. 3 is a block diagram showing a configuration example of a priority order determination unit of the image encoding device according to the present embodiment.

【図4】 本実施形態の第1変形例による優先順位決定
部およびマルチプレクサの構成を示す回路図である。
FIG. 4 is a circuit diagram showing configurations of a priority order determination unit and a multiplexer according to a first modified example of the present embodiment.

【図5】 本実施形態の第2変形例による優先順位決定
部の構成を示す回路図である。
FIG. 5 is a circuit diagram showing a configuration of a priority order determination unit according to a second modification of the present embodiment.

【図6】 本実施形態の第3変形例による優先順位決定
部の構成を示す回路図である。
FIG. 6 is a circuit diagram showing a configuration of a priority order determination unit according to a third modification of the present embodiment.

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

1a,1b,1c 予測器(複数の予測手段、予測誤差
算出手段) 2a,2b,2c 予測誤差評価部 3 マルチプレクサ 4 最小予測誤差検出部(予測選択手段) 5 優先順位決定部(優先度設定手段) 6 マルチプレクサ(予測選択手段) 7 予測器情報ラッチ 8 符号化部(符号化手段)
1a, 1b, 1c Predictor (plurality of prediction means, prediction error calculation means) 2a, 2b, 2c Prediction error evaluation section 3 Multiplexer 4 Minimum prediction error detection section (prediction selection means) 5 Priority order determination section (priority setting means) ) 6 multiplexer (prediction selection means) 7 predictor information latch 8 encoding unit (encoding means)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像の注目画素の値をその周
辺画素の値から各々異なるパラメータに基づいて予測す
る複数の予測手段と、 前記複数の予測手段によって予測された注目画素の値と
該注目画素の実際の値との差分である予測誤差を算出す
る予測誤差算出手段と、 動的に変化する所定の優先度に基づいて前記複数の予測
手段の中から1つの予測手段を選択する予測選択手段
と、 前記予測選択手段により任意の予測手段の選択状態に基
づいて、前記複数の予測手段毎に前記優先度を設定する
優先度設定手段と、 前記予測選択手段によって選択された予測手段によって
予測された予測値に基づいて前記注目画素の値を符号化
する符号化手段とを具備することを特徴とする画像符号
化装置。
1. A plurality of predicting means for predicting a value of a target pixel of an input image from values of its peripheral pixels based on respective different parameters, and a value of the target pixel predicted by the plurality of predicting means, Prediction error calculation means for calculating a prediction error that is a difference from the actual value of the pixel of interest, and prediction for selecting one prediction means from the plurality of prediction means based on a dynamically changing predetermined priority. Selection means, priority setting means for setting the priority for each of the plurality of prediction means based on a selection state of any prediction means by the prediction selection means, and prediction means selected by the prediction selection means An image coding apparatus, comprising: a coding unit that codes the value of the pixel of interest based on a predicted value predicted.
【請求項2】 前記優先度設定手段は、前記予測選択手
段によって少なくとも2回以上連続して選択された予測
手段の優先度を高く設定することを特徴とする請求項1
記載の画像符号化装置。
2. The priority setting means sets the priority of the prediction means selected by the prediction selection means at least twice in succession to a high priority.
The image encoding device according to claim 1.
【請求項3】 前記優先度設定手段は、前記予測選択手
段によって同じ予測手段が連続して選択されない回数に
基づいて優先度を設定するとともに、全ての予測手段に
対する回数が所定回数に達した場合に前記回数をリセッ
トすることを特徴とする請求項1記載の画像符号化装
置。
3. The priority setting means sets the priority based on the number of times that the same prediction means is not continuously selected by the prediction selection means, and when the number of times for all prediction means reaches a predetermined number. The image coding apparatus according to claim 1, wherein the number of times is reset to.
【請求項4】 前記優先度設定手段は、前記予測選択手
段によって同じ予測手段が連続して選択されない回数に
基づいて優先度を設定するとともに、全ての予測手段に
対する回数が所定回数に達した場合に前記複数の予測手
段に対する回数を等しい割合で減ずることを特徴とする
請求項1記載の画像符号化装置。
4. The priority setting means sets the priority based on the number of times that the same prediction means is not continuously selected by the prediction selection means, and when the number of times for all the prediction means reaches a predetermined number. 2. The image coding apparatus according to claim 1, wherein the number of times for the plurality of prediction means is reduced by an equal ratio.
【請求項5】 前記優先度設定手段は、前記予測選択手
段によって同じ予測手段が連続して選択されない回数に
基づいて優先度を設定するとともに、任意の1つの予測
手段に対する回数が所定回数に達した場合に前記複数の
予測手段全てに対する回数を等しい割合で減ずることを
特徴とする請求項1記載の画像符号化装置。
5. The priority setting means sets the priority based on the number of times that the same prediction means is not continuously selected by the prediction selection means, and the number of times for any one prediction means reaches a predetermined number. The image coding apparatus according to claim 1, wherein in such a case, the number of times for all of the plurality of prediction units is reduced at an equal rate.
JP763596A 1996-01-19 1996-01-19 Image encoder Pending JPH09200774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP763596A JPH09200774A (en) 1996-01-19 1996-01-19 Image encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP763596A JPH09200774A (en) 1996-01-19 1996-01-19 Image encoder

Publications (1)

Publication Number Publication Date
JPH09200774A true JPH09200774A (en) 1997-07-31

Family

ID=11671296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP763596A Pending JPH09200774A (en) 1996-01-19 1996-01-19 Image encoder

Country Status (1)

Country Link
JP (1) JPH09200774A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6292587B1 (en) 1998-02-12 2001-09-18 Fuji Xerox Co., Ltd. Image encoding method and apparatus with adaptive prediction
WO2005039058A1 (en) * 2003-10-17 2005-04-28 Matsushita Electric Industrial Co., Ltd. Encoding data generation method and device
WO2009157047A1 (en) * 2008-06-27 2009-12-30 富士通株式会社 Image compression device and image restoration device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6292587B1 (en) 1998-02-12 2001-09-18 Fuji Xerox Co., Ltd. Image encoding method and apparatus with adaptive prediction
WO2005039058A1 (en) * 2003-10-17 2005-04-28 Matsushita Electric Industrial Co., Ltd. Encoding data generation method and device
US7271746B2 (en) 2003-10-17 2007-09-18 Matsushita Electric Industrial Co., Ltd. Encoding data generation method and device
US7528746B2 (en) 2003-10-17 2009-05-05 Panasonic Corporation Encoding data generation method and device
WO2009157047A1 (en) * 2008-06-27 2009-12-30 富士通株式会社 Image compression device and image restoration device
EP2306732A1 (en) * 2008-06-27 2011-04-06 Fujitsu Limited Image compression device and image restoration device
EP2306732A4 (en) * 2008-06-27 2012-02-22 Fujitsu Ltd Image compression device and image restoration device
JP5093349B2 (en) * 2008-06-27 2012-12-12 富士通株式会社 Image compression apparatus and image restoration apparatus
US8358861B2 (en) 2008-06-27 2013-01-22 Fujitsu Limited Image compression device and image decompression device

Similar Documents

Publication Publication Date Title
US8031766B2 (en) Performance adaptive video encoding with concurrent decoding
US5740283A (en) Digital video compression utilizing mixed vector and scalar outputs
US7382294B2 (en) Coding apparatus, decoding apparatus, coding method, decoding method, computer readable medium and computer data signal
US20060028359A1 (en) Context-based adaptive binary arithmetic coding method and apparatus
US7088272B2 (en) Pipeline arithmetic code decoding method and apparatus using context index predictor
Papadonikolakis et al. Efficient high-performance ASIC implementation of JPEG-LS encoder
JP2006332790A (en) Data coding apparatus, data decoding apparatus, data coding method, data decoding method and program
US5617149A (en) Apparatus and method for detecting scene changes using the difference of mad between image frames
US6668094B1 (en) Variable length coding method and apparatus
JP2000350215A (en) Image encoding device, image decoding device, and device and method for encoding and decoding image
US6546065B1 (en) Frame synchronous circuit
JPH09200774A (en) Image encoder
WO2024051757A1 (en) Information processing method and apparatus, electronic device and computer readable medium
CN1436425A (en) Adaptive early exit techniques for image correlation minimum distortion calculation
US7397401B2 (en) Arithmetic decode without renormalization costs
KR100739110B1 (en) Method for compressing binary image rapidly
US6629118B1 (en) Zero result prediction
US8755619B2 (en) Method and apparatus for encoding and decoding image data using run of the image data
JP2004112483A (en) Image processor
JP3119025B2 (en) Encoding device and decoding device
JP2006217486A (en) Motion compensation type ip conversion processor and processing method
US20020026467A1 (en) Microcomputer
CN117971160B (en) Multiplier comprising misprediction
JP3837850B2 (en) Image coding method and apparatus
US8170113B2 (en) Encoder, data file, encoding method, computer readable medium and computer data signal