JPH10285601A - Coder, its method and storage medium storing the method - Google Patents
Coder, its method and storage medium storing the methodInfo
- Publication number
- JPH10285601A JPH10285601A JP9219297A JP9219297A JPH10285601A JP H10285601 A JPH10285601 A JP H10285601A JP 9219297 A JP9219297 A JP 9219297A JP 9219297 A JP9219297 A JP 9219297A JP H10285601 A JPH10285601 A JP H10285601A
- Authority
- JP
- Japan
- Prior art keywords
- encoding
- pixel
- prediction
- mode
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
- G06T9/004—Predictors, e.g. intraframe, interframe coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は画像データの符号化
を行う符号化装置及び方法及び方法を記憶した記憶媒体
に関するものである。[0001] 1. Field of the Invention [0002] The present invention relates to an encoding apparatus and method for encoding image data and a storage medium storing the method.
【0002】[0002]
【従来の技術】従来、画像符号化装置で使用される画像
符号化方式の一つとして予測符号化方式がある。2. Description of the Related Art Conventionally, there is a predictive coding method as one of image coding methods used in an image coding apparatus.
【0003】予測符号化方式は、符号化対象画素の画素
値を周囲の画素から予測し、予測誤差をエントロピ−符
号化するものである。これは予測方式を幾つか用意し、
周囲の画素に応じて予測方式を適応的に選択してエント
ロピ−符号化するなど、予測符号化方式をベ−スとした
種々の改良方式が提案されている。The predictive coding method predicts the pixel value of a pixel to be coded from surrounding pixels and entropy-codes a prediction error. This prepares several prediction methods,
Various improved systems based on the prediction coding system have been proposed, such as adaptively selecting a prediction system according to surrounding pixels and performing entropy coding.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、予測値
と符号化対象画素値との予測誤差をエントロピー符号化
する場合において、予測誤差Diffが同じ絶対値を有する
にもかかわらず符号長が異なる様なエントロピ−符号化
に対して、符号化効率を良くする為に依然改善の余地が
あった。However, in the case where the prediction error between the predicted value and the pixel value to be coded is entropy coded, the code length may be different even though the prediction error Diff has the same absolute value. There is still room for improvement in entropy coding to improve coding efficiency.
【0005】本発明は上記従来例に鑑みて成されたもの
であり、予測値と符号化対象画素値との予測誤差をエン
トロピー符号化する様な場合において、符号化効率を更
に向上する為の構成を提供することを目的とする。The present invention has been made in view of the above conventional example, and is intended to further improve the coding efficiency when entropy coding is performed on a prediction error between a predicted value and a pixel value to be coded. It is intended to provide a configuration.
【0006】具体的には、予測値と符号化対象画素値と
の予測誤差をエントロピー符号化する様な予測符号化モ
ードを含む複数の符号化モードを切り換えて使用するも
のにおいて、効率良く符号化を行うことを目的とする。More specifically, in the case where a plurality of encoding modes including a prediction encoding mode for entropy encoding a prediction error between a predicted value and a pixel value to be encoded are switched and used, efficient encoding is performed. The purpose is to do.
【0007】[0007]
【課題を解決するための手段】上述の課題を解決するた
めに本発明の符号化装置によれば、符号化対象画素の周
辺画素に基づいて予測値を発生し、予測値と符号化対象
画素の画素値の予測誤差をエントロピー符号化する予測
符号化モードと、予測誤差を得ることなく画素値をラン
レングス符号化するランレングス符号化モードを有する
符号化装置であって、前記予測符号化モードにおける予
測誤差の正負の符号の解釈を、符号化後の符号量が減少
されるべく反転させる符号反転処理手段を有することを
特徴とする。According to the encoding apparatus of the present invention, a prediction value is generated based on peripheral pixels of an encoding target pixel, and the prediction value and the encoding target pixel are generated. A coding apparatus having a prediction coding mode for entropy coding a prediction error of a pixel value, and a run-length coding mode for run-length coding a pixel value without obtaining a prediction error, wherein the prediction coding mode Is characterized in that it has a sign inversion processing means for inverting the interpretation of the sign of the prediction error in.
【0008】[0008]
(第1の実施の形態)次に、本発明の第1の実施の形態
について図面を参照して詳細に説明する。(First Embodiment) Next, a first embodiment of the present invention will be described in detail with reference to the drawings.
【0009】図1に本発明に係る第1の実施の形態の構
成図を示す。同図において100は信号を入力するため
の入力部、101は信号線、102は予測変換回路、1
04はGolomb−Rice符号化回路、105は予測変換回
路、106は符号予測変換回路、107はGolomb−Rice
符号化回路、108はランレングスカウンタ、109は
Melcode符号化回路、110は状態判別回路、111は
モ−ドセレクタ、112はスイッチ、113はスイッ
チ、114は信号線、115は2ライン分の画像デ−タ
を格納するバッファである。FIG. 1 shows a configuration diagram of a first embodiment according to the present invention. In FIG. 1, reference numeral 100 denotes an input unit for inputting a signal, 101 denotes a signal line, 102 denotes a predictive conversion circuit,
04 is a Golomb-Rice encoding circuit, 105 is a prediction conversion circuit, 106 is a code prediction conversion circuit, 107 is a Golomb-Rice
Encoding circuit, 108 is a run-length counter, 109 is
A Melcode encoding circuit, 110 is a state determination circuit, 111 is a mode selector, 112 is a switch, 113 is a switch, 114 is a signal line, and 115 is a buffer for storing image data of two lines.
【0010】本実施の形態では3つのモ−ドを切り換え
て符号化処理を行なう。具体的には、1つ目のモ−ドと
して予測変換回路102及びGolomb−Rice(ゴロ−ムラ
イス)符号化回路104で符号化処理を行なうノ−マル
モ−ド、2つ目のモ−ドとしてランレングスカウンタ1
08及びMelcode(メルコ−ド)符号化回路109によ
り符号化処理するランレングスモ−ド、3つ目のモ−ド
として予測変換回路105及び符号予測変換回路106
及びGolomb−Rice符号化回路107により符号化処理を
行なうラン終端モ−ドである。In this embodiment, the encoding process is performed by switching the three modes. More specifically, the first mode is a normal mode in which the predictive conversion circuit 102 and the Golomb-Rice (Golomb-Rice) coding circuit 104 perform an encoding process, and the second mode is a normal mode. Run length counter 1
08 and a run-length mode for encoding processing by a Melcode (Melcode) encoding circuit 109. The third mode is a prediction conversion circuit 105 and a code prediction conversion circuit 106.
And a run end mode in which the Golomb-Rice encoding circuit 107 performs an encoding process.
【0011】次に、1画素8ビット(0から255の
値)のモノクロ画像信号を符号化する場合を例に、本実
施の形態での各部の動作を順に説明する。しかしなが
ら、本発明はこれに限らずRGBの各8ビットの色成分、
又はLabの各8ビットの輝度色度成分からなる多値カラ
−画像を符号化する場合にも適用でき、各成分を上記モ
ノクロ画像信号と同様に符号化すればよい。Next, the operation of each section in this embodiment will be described in order, taking as an example the case of encoding a monochrome image signal of 8 bits per pixel (value from 0 to 255). However, the present invention is not limited to this.
Alternatively, the present invention can be applied to a case where a multi-valued color image composed of eight-bit luminance and chromaticity components of Lab is encoded, and each component may be encoded in the same manner as the monochrome image signal.
【0012】また各成分の符号化切換単位は、画面毎に
行うこともでき、これによれば画像全体の様子を復号化
側で早めに確認することが可能となる。また各成分の符
号化切換単位は、画素毎、1ライン毎、複数ラインから
成るバンド毎に行うこともでき、これによれば部分的で
はあるが完全なカラー画像を早めに見ることができる。[0012] Further, the coding switching unit of each component can be performed for each screen, whereby it becomes possible to check the state of the entire image on the decoding side earlier. Also, the coding switching unit of each component can be performed for each pixel, for each line, or for each band composed of a plurality of lines, whereby a partial but complete color image can be viewed earlier.
【0013】なお、バッファ115の内部の値は初期値
をすべて0に設定しておくものとする。The initial values of the internal values of the buffer 115 are all set to 0.
【0014】まず、入力部100から符号化対象となる
画素(符号化対象画素)がラスタ−スキャン順に入力さ
れ、信号線101を通じてスイッチ112、バッファ1
15へ入力される。First, a pixel to be coded (pixel to be coded) is input from the input unit 100 in raster-scan order, and the switch 112 and the buffer 1 are input through the signal line 101.
15 is input.
【0015】バッファ115は信号線101から順次入
力される画像デ−タを2ライン分格納する。この2ライ
ンは符号化対象画素のラインとその1つ前のラインであ
る。状態判別回路110は、符号化対象画素の周辺画素
の状態を表す状態番号Sとその位相を表す位相フラグRを
生成するものであり、以下の処理を行う。まず、符号化
対象画素の周辺画素a,b,c,dに対応する画素デ−タを
バッファ115から読み出す。The buffer 115 stores two lines of image data sequentially input from the signal line 101. These two lines are the line of the encoding target pixel and the line immediately before the line. The state determination circuit 110 generates a state number S indicating the state of the peripheral pixel of the encoding target pixel and a phase flag R indicating the phase thereof, and performs the following processing. First, pixel data corresponding to the peripheral pixels a, b, c, and d of the encoding target pixel are read from the buffer 115.
【0016】図2に符号化対象画素xに対する周辺画素
a,b,c,dの位置関係を示す。図2において周辺画素
a,b,c,dは、符号化対象画素xに対する既に符号化済
みの画素である。次に読み出した画像デ−タa,b,c,d
を用いてd−b,b−c,c−aを求め、各々図3に示す対応
に従って−4、−3、−2、−1、0、1、2、3、4
の9レベルの値に量子化し、量子化値q(d−b),q(b
−c),q(c−a)を求める。FIG. 2 shows peripheral pixels for the pixel x to be encoded.
The positional relationship between a, b, c, and d is shown. In FIG. 2, peripheral pixels
a, b, c, and d are pixels that have already been encoded for the encoding target pixel x. Next, the read image data a, b, c, d
Are used to determine db, bc, and ca, and according to the correspondence shown in FIG. 3, -4, -3, -2, -1, 0, 1, 2, 3, 4
, And quantized values q (d−b), q (b
−c) and q (c−a).
【0017】次に、q(d−b)×81+q(b−c)×9+
q(c−a)の計算式により周辺画素の状態を表す状態番
号Sを生成する。次に状態番号Sの符号の正負を調べ、正
である場合には位相フラグを0に設定し、負である場合
には位相フラグを1に設定すると共に状態番号Sの正負
を反転(正の値に反転)する。以上の処理により、0か
ら365までの値をとる状態番号Sと、0または1の値
をとる位相フラグRが生成され、出力される。Next, q (d−b) × 81 + q (b−c) × 9 +
The state number S representing the state of the peripheral pixel is generated by the calculation formula of q (c−a). Next, the sign of the state number S is checked. If the sign is positive, the phase flag is set to 0. If the sign is negative, the phase flag is set to 1 and the sign of the state number S is inverted (positive or negative). Value). Through the above processing, the state number S having a value from 0 to 365 and the phase flag R having a value of 0 or 1 are generated and output.
【0018】モ−ドセレクタ111は状態判別回路11
0の生成された状態番号Sとランレングスカウンタ10
8の生成するラン長RL、符号化制御信号Qに基づいて、
符号化モ−ドを選択し、スイッチ112およびスイッチ
113の切換制御を行う。ランレングスカウンタ108
からのラン長RLの初期値は0とする。The mode selector 111 is a state determination circuit 11
Generated state number S of 0 and run length counter 10
8 based on the run length RL and the coding control signal Q,
An encoding mode is selected, and switching of the switches 112 and 113 is controlled. Run length counter 108
The initial value of the run length RL from is set to 0.
【0019】図8に符号化対象画素の1画素に対するモ
−ドセレクタ111による全体的な符号化モ−ド制御の
流れを示す。なお、以下の各ステップの詳細な動作は後
述する。FIG. 8 shows the overall flow of the encoding mode control by the mode selector 111 for one pixel to be encoded. The detailed operation of each of the following steps will be described later.
【0020】まずSTEP801においてモ−ドセレクタ1
11は、最初に符号化対象画素に対応する状態番号Sと
ラン長RLを入力し、S≠0かつRL=0と判別した場合に
はSTEP802へ、それ以外の場合にはSTEP803へ処理
を進める。First, in step 801, the mode selector 1
In step 11, a state number S and a run length RL corresponding to a pixel to be encoded are first input, and if it is determined that S ≠ 0 and RL = 0, the process proceeds to STEP 802; otherwise, the process proceeds to STEP 803. .
【0021】STEP802ではスイッチ112を端子C
に、スイッチ113を端子C’に接続し、ノ−マルモ−
ドの符号化を行なう。一方、STEP803ではスイッチ1
12を端子Aに、スイッチ113を端子A’に接続し、ラ
ンレングスモ−ドの符号化即ちラン長の符号化を行う。
ランレングスモ−ドの詳細な符号化処理については後述
するが、ランレングスモ−ドで実際に符号が出力される
のは画素毎ではなくラン長が確定した場合、すなわち同
一画素値の連続がとぎれた場合のみである。この場合、
符号化制御信号cの値は’0’から’1’となる。In STEP 802, switch 112 is connected to terminal C
The switch 113 is connected to the terminal C '
Encoding of the code. On the other hand, in STEP803, switch 1
12 is connected to the terminal A, and the switch 113 is connected to the terminal A 'to perform run-length mode encoding, that is, encoding of run length.
Although the detailed encoding process of the run-length mode will be described later, the code is actually output in the run-length mode only when the run length is determined, not for each pixel, that is, when the continuation of the same pixel value is discontinued. It is. in this case,
The value of the coding control signal c changes from '0' to '1'.
【0022】ステップ803の後、ステップ804では
符号化制御信号cの値を調べ、c=1の場合にはステップ
805へと処理を進める。ステップ805ではスイッチ
112を端子Bに、スイッチ114を端子B’に接続し、
ラン終端モ−ドでの符号化処理を行なう。以上の制御を
1画素毎に繰り返して行い、3つの符号化モ−ドを選択
して符号化処理する。After step 803, the value of the encoding control signal c is checked in step 804, and if c = 1, the process proceeds to step 805. In step 805, the switch 112 is connected to the terminal B, and the switch 114 is connected to the terminal B '.
The encoding process is performed in the run end mode. The above control is repeated for each pixel, and three encoding modes are selected for encoding.
【0023】上記3つの符号化モードを切り換える理
由、即ち3つの符号化モードの役割について簡単に述べ
る。The reason for switching the above three encoding modes, that is, the role of the three encoding modes will be briefly described.
【0024】ノーマルモードは、予測変換した場合の予
測誤差がラプラス分布になるであろうと推測される画素
の符号化に適用されるものである。但し、同一輝度レベ
ルの連続が期待される様な場合(周辺画素が同一輝度レ
ベルであるような場合)にはランレングスモードに切り
換えることにより、更に符号化効率を上げるものであ
る。The normal mode is applied to encoding of a pixel which is estimated to have a Laplace distribution when a prediction error is caused by predictive conversion. However, when the same luminance level is expected to be continuous (when the peripheral pixels have the same luminance level), the coding efficiency is further increased by switching to the run-length mode.
【0025】ランレングスモードは、同一輝度レベルの
連続が期待される様な場合に用いられるモードであり、
予測誤差を符号化するのではなく画素値のラン長を符号
化(ランレングス符号化)する。これにより、前記ノー
マルモード(予測誤差のHuffman符号化,Golomb-Rice符
号化などを用いた場合)では1サンプル当たり1ビット
以下では符号化できないが、ランレングスモードでは1
サンプル当たり1ビット以下での符号化も可能となり、
符号化効率が良くなる。The run length mode is a mode used in a case where the same luminance level is expected to be continuous.
Instead of encoding the prediction error, the run length of the pixel value is encoded (run-length encoding). As a result, in the normal mode (when Huffman coding of prediction error, Golomb-Rice coding or the like is used), coding cannot be performed with 1 bit or less per sample, but in the run length mode, 1 bit cannot be coded.
Encoding with less than 1 bit per sample is also possible,
Encoding efficiency is improved.
【0026】ラン終端モードは、同一輝度レベルのラン
が終端した際の符号化対象画素を符号化するものであ
る。また、この画素の値は、ランレングス符号化におけ
るラン長の終端であるから、直前の画素値ではないこと
が分かっている。そのため、ノーマルモードのように直
前の画素値を予測値とした場合には、予測誤差0は発生
せず符号化効率が良くならない様な特殊な状態である。
この様な状態であることを考慮して、ランレングスモー
ドが終わった画素、即ち直前の画素との画素値が変化し
た符号化対象画素はノーマルモードではなくラン終端モ
ードにより符号化を行う。また、上記状態における符号
化対象画素を予測符号化した場合には、予測誤差の分布
は離散的になることが多く、ラプラス分布からはほど遠
いものとなることが推測される。このような条件下では
ノーマルモードで用いる後述の予測値修正はあまり有効
でないので、これを用いずに符号化する。そして次の符
号化対象画素からは直前の画素値を予測値として符号化
しても十分符号化効率が良くなる。The run termination mode encodes a pixel to be encoded when a run of the same luminance level ends. Also, since the value of this pixel is the end of the run length in run-length encoding, it is known that it is not the immediately preceding pixel value. Therefore, when the immediately preceding pixel value is used as the predicted value as in the normal mode, a special state is set in which no prediction error 0 occurs and the coding efficiency is not improved.
In consideration of such a state, the pixel for which the run-length mode has ended, that is, the encoding target pixel whose pixel value has changed from the immediately preceding pixel, performs encoding in the run end mode instead of the normal mode. In addition, when the encoding target pixel in the above state is predictively encoded, the distribution of the prediction error is often discrete, and it is estimated that the distribution is far from the Laplace distribution. Under such conditions, the later-described correction of the predicted value used in the normal mode is not very effective, and therefore the encoding is performed without using this. Even if the immediately preceding pixel value is encoded as the predicted value from the next encoding target pixel, the encoding efficiency is sufficiently improved.
【0027】以下上述した3つの各符号化モードについ
て個別に説明する。Hereinafter, each of the above three encoding modes will be individually described.
【0028】まず、予測変換回路102とGolomb−Rice
符号化回路104により符号化処理を行なうノ−マルモ
−ドの符号化処理について説明する。First, the prediction conversion circuit 102 and the Golomb-Rice
The normal mode encoding process in which the encoding circuit 104 performs the encoding process will be described.
【0029】図1の予測変換回路102は、符号化対象
画素の周囲画素a,b,cから符号化対象画素の画素値を
予測し、この予測により発生した予測値と符号化対象画
素の実際の画素値との差分(予測誤差)Diff及び後述す
るパラメ−タkを生成する。図4に予測変換回路102
の内部構成図を示す。The prediction conversion circuit 102 shown in FIG. 1 predicts the pixel value of the pixel to be encoded from the surrounding pixels a, b, and c of the pixel to be encoded, and calculates the predicted value generated by this prediction and the actual value of the pixel to be encoded. A difference (prediction error) Diff from the pixel value of (i) and a parameter k described later are generated. FIG. 4 shows a prediction conversion circuit 102.
FIG.
【0030】図4において401は予測器、402はエ
ラ−フィ−ドバック回路、403は予測誤差生成回路、
404はメモリ、405はパラメ−タ更新回路、406
はkパラメ−タ生成回路である。また、図1には図示さ
れていないが予測変換回路102には図1のバッファ1
15から周辺画素a,b,cの画素値のデータ、状態判別
回路110から状態Sと位相フラグRが入力される。ま
た、スイッチ112の端子Cから符号化対象画素の画素
値xが入力される。In FIG. 4, 401 is a predictor, 402 is an error feedback circuit, 403 is a prediction error generation circuit,
404 is a memory, 405 is a parameter update circuit, 406
Is a k-parameter generation circuit. Although not shown in FIG. 1, the prediction conversion circuit 102 includes the buffer 1 shown in FIG.
15, the pixel value data of the peripheral pixels a, b, and c are input, and the state S and the phase flag R are input from the state determination circuit 110. The pixel value x of the pixel to be encoded is input from the terminal C of the switch 112.
【0031】メモリ404には個々の状態番号Sに対す
る4つのパラメ−タN,A,Bγ,Cαが格納される。これ
らの値は符号化の開始時にN=1,A=4,Bγ=Cα=0
に初期化される。なお、Nは状態Sの生起回数であり、A
は状態Sにおける予測誤差の絶対値の累計であり、Bγは
状態Sにおける予測誤差の累計であり、Cαは予測値を修
正する為の修正値である。The memory 404 stores four parameters N, A, Bγ and Cα for each state number S. These values are N = 1, A = 4, Bγ = Cα = 0 at the start of encoding.
Is initialized to N is the number of occurrences of state S, and A
Is the total of the absolute values of the prediction errors in the state S, Bγ is the total of the prediction errors in the state S, and Cα is a correction value for correcting the prediction value.
【0032】以下、図4を用いて予測変換回路102の
動作を説明する。まず、予測器401はバッファ115
から符号化対象画素の周辺画素a,b,c(位置は図2参
照)の画素値を入力し、この画素値a,b,cに基づいて
予測値pを生成する。予測値pは以下の式により求める。The operation of the predictive conversion circuit 102 will be described below with reference to FIG. First, the estimator 401
, The pixel values of the peripheral pixels a, b, and c (see FIG. 2 for the position) of the pixel to be encoded are input, and a predicted value p is generated based on the pixel values a, b, and c. The predicted value p is obtained by the following equation.
【0033】 p =| max(a,b) :min(a,b)>cの時 | min(a,b) :max(a,b)<cの時 | a+b−c :上記以外の時P = | max (a, b): when min (a, b)> c | min (a, b): when max (a, b) <c | a + b−c: other than the above
【0034】エラ−フィ−ドバック回路402はメモリ
404に格納される状態Sにおける後述する予測修正値C
αを用いて予測値pを修正し、修正予測誤差p’を生成す
る。即ち、状態判別回路110から入力される位相フラ
グRが0ならばp’=p+Cαとし、1ならばp’=p−Cα
とする。更に、p’が0未満の場合にはp’=0とし、
p’が255以上の場合にはp’=255と制限する。The error feedback circuit 402 has a predictive correction value C described later in the state S stored in the memory 404.
The prediction value p is corrected using α to generate a corrected prediction error p ′. That is, if the phase flag R input from the state determination circuit 110 is 0, p ′ = p + Cα, and if 1 the value is p ′ = p−Cα.
And Further, when p ′ is less than 0, p ′ = 0,
When p 'is 255 or more, p' is limited to 255.
【0035】予測誤差生成回路403は符号化対象画素
の画素値xと修正予測値p’の差分をとり、予測誤差Diff
を求める。位相フラグRが0の場合にはDiff=x−p’と
し、位相フラグRが1の場合にはDiff=p’−xとする。
予測誤差生成回路403はDiffが−128未満の場合に
はDiffに255を加え、Diffが128以上の場合にはDi
ffから255を引くことにより、Diffの値を−128か
ら127内で表現することができる。The prediction error generation circuit 403 calculates the difference between the pixel value x of the pixel to be encoded and the corrected prediction value p ′, and calculates the prediction error Diff.
Ask for. When the phase flag R is 0, Diff = x−p ′. When the phase flag R is 1, Diff = p′−x.
The prediction error generation circuit 403 adds 255 to Diff when Diff is less than -128, and Di when Diff is 128 or more.
By subtracting 255 from ff, the value of Diff can be expressed within -128 to 127.
【0036】kパラメ−タ生成回路406は、状態Sの生
起回数Nと、状態Sでの予測誤差の絶対値の累加値Aをメ
モリ404から読み出し、min(k|N×2^k>=A)に
よりGolomb−Rice符号化時に用いるパラメ−タkの値を
求める。ここで、min(a|b)は条件bを満たす最小のaを
意味する。The k-parameter generating circuit 406 reads the number of occurrences N of the state S and the cumulative value A of the absolute value of the prediction error in the state S from the memory 404, and obtains min (k | N × 2 ^ k> = A) is used to determine the value of the parameter k used in Golomb-Rice encoding. Here, min (a | b) means the minimum a that satisfies the condition b.
【0037】パラメ−タ更新回路405は、状態Sにお
ける4つのパラメ−タN,Cα,A,Bγを更新し、N’,C
α’,A’,Bγ’を生成する。まず、Bγ’=Bγ+Dif
f,A’=A+|Diff|によりBγ’とA’を求める。次にN
の値を調べ、Nがしきい値Th1に等しい場合にはN,
A,Bγを1/2にする。しきい値Th1はA,Bγ,Nを一定
範囲に限定するためのものであり、あらかじめ設定して
おく(例えばTh1=64)。次に、N’=N+1によりN
を更新する。The parameter updating circuit 405 updates the four parameters N, Cα, A, and Bγ in the state S, and updates N ′, C
Generate α ′, A ′, and Bγ ′. First, Bγ '= Bγ + Dif
f, A ′ = A + | Diff | to obtain Bγ ′ and A ′. Then N
And if N is equal to the threshold Th1, N,
Reduce A and Bγ to 1/2. The threshold value Th1 is for limiting A, Bγ, and N to a certain range, and is set in advance (for example, Th1 = 64). Next, N ′ = N + 1, and N
To update.
【0038】図12に予測修正値Cαの更新手順を示
す。Cα’にCαの値を写した後、まずSTEP1201にお
いて、Bγ’が−N以下であるかどうかを判定し、−N以
下の場合にはSTEP1203へ、そうでない場合にはSTEP
1202へ処理を進める。STEP1203ではCα’の値
を−128と比較し、−128より大きい場合にはC
α’から1を引く(STEP1204)。FIG. 12 shows a procedure for updating the predicted correction value Cα. After copying the value of Cα to Cα ′, first, in STEP 1201, it is determined whether or not Bγ ′ is −N or less. If Bγ ′ is −N or less, go to STEP 1203; otherwise, go to STEP 1203.
The process proceeds to 1202. In step 1203, the value of Cα ′ is compared with −128.
Subtract 1 from α '(STEP 1204).
【0039】次に、Bγ’にNを加える(STEP120
5)。Bγ’が−N以下である場合にはBγ’=−N+1と
する(STEP1206,1207)。STEP1202ではB
γ’を0と比較し、Bγ’が0以上の場合にはSTEP12
08へと処理を進め、そうでない場合には更新処理を終
了する。STEP1208ではCα’の値を127と比較
し、127未満である場合にはCα’に1を加える(STE
P1209)。次に、Bγ’からNを引く(STEP121
0)。Bγ’が0以上である場合にはBγ’=0とする
(STEP1211,1212)。最後に更新されたN’,C
α’,A’,Bγ’で、メモリ404に格納されている状
態Sにおける4つのパラメ−タN,Cα,A,Bγを置き換
える。Next, N is added to Bγ ′ (STEP 120).
5). If Bγ ′ is −N or less, Bγ ′ = − N + 1 is set (STEPs 1206 and 1207). In STEP1202, B
γ ′ is compared with 0, and if Bγ ′ is 0 or more, STEP 12
08, and if not, the update process ends. In STEP 1208, the value of Cα ′ is compared with 127, and if less than 127, 1 is added to Cα ′ (STE
P1209). Next, N is subtracted from Bγ ′ (STEP 121
0). If Bγ ′ is 0 or more, Bγ ′ = 0 is set (STEPs 1211, 1212). Last updated N ', C
α ′, A ′, Bγ ′ replace the four parameters N, Cα, A, Bγ in the state S stored in the memory 404.
【0040】以上の処理により、予測変換回路102は
予測誤差Diffとパラメ−タkとを生成し、Golomb-Rice符
号化回路104にこれらを出力する。With the above processing, the prediction conversion circuit 102 generates the prediction error Diff and the parameter k, and outputs these to the Golomb-Rice encoding circuit 104.
【0041】Golomb−Rice符号化回路104は、まず、
予測変換回路102の出力する予測誤差Diffを次式によ
り非負の整数値Vに変換する。The Golomb-Rice encoding circuit 104 first
The prediction error Diff output from the prediction conversion circuit 102 is converted into a non-negative integer value V by the following equation.
【0042】 V =| −2×Diff−1 :Diff<0の時 | 2×Diff :Diff≧0の時V = | −2 × Diff−1: when Diff <0 | 2 × Diff: when Diff ≧ 0
【0043】次にこのVをパラメ−タkに基づいてGolomb
−Rice符号化する。非負の整数値Vをパラメ−タkに基づ
いてGolomb−Rice符号化する符号化手順は次のとうりで
ある。Next, this V is converted to Golomb based on the parameter k.
-Rice encoding. The coding procedure for Golomb-Rice coding of the non-negative integer value V based on the parameter k is as follows.
【0044】まず、非負の整数値Vを2進数表現する。
次にこれを下位kビット部分と上位の残りのビット部分
に分割する。次に下位kビット部分に、上位の残りのビ
ット部分を十進で表現される数だけの’0’を付加し、
最後に’1’を追加して符号語とする。具体例を挙げる
と、k=2,V=13の場合、Vの2進数表現’110
1’の下位2ビット’01’に上位の残りのビット部
分’11’の表す数、すなわち3個の’0’を付加し
て’01000’とし、最後に’1’を付加して符号
語’010001’を生成するという具合である。First, the non-negative integer value V is expressed in a binary number.
Next, this is divided into a lower k-bit part and a higher-order remaining bit part. Next, to the lower k-bit part, add the number of '0' to the remaining upper bit part by the number expressed in decimal,
Finally, '1' is added as a code word. As a specific example, when k = 2 and V = 13, the binary representation of V '110
The number represented by the remaining high-order bit part '11', that is, three '0's, is added to the lower two bits'01' of '1' to make it '01000', and '1' is added at the end to form a code word. '010001' is generated.
【0045】なお、図9に上述の符号化処理を施す場合
のパラメ−タk=0,1,2における非負の整数値と符
号語の対応を示す。FIG. 9 shows the correspondence between the non-negative integer values and the code words in the parameters k = 0, 1, and 2 when the above-described encoding process is performed.
【0046】Golomb-Rice符号化回路104で生成され
た符号は、スイッチ113の端子C’へと出力される。The code generated by the Golomb-Rice coding circuit 104 is output to the terminal C 'of the switch 113.
【0047】次に、予測変換回路105、符号予測変換
回路106、Golomb−Rice符号化回路107により符号
化処理を行なうラン終端モ−ドについて説明する。Next, a run termination mode in which the encoding process is performed by the prediction conversion circuit 105, the code prediction conversion circuit 106, and the Golomb-Rice encoding circuit 107 will be described.
【0048】予測変換回路105は周辺画素値a,bから
符号化対象画素値を予測し、予測誤差を生成する。図5
に予測変換回路105の構成図を示す。同図において5
01は比較器、502は予測器、503は予測誤差生成
回路、504はメモリ、505はkパラメ−タ生成回路
である。また、図1には示されていないが、予測変換回
路105にはバッファ115から周辺画素a,bの画素値
のデータが入力される。また、スイッチ112の端子B
から符号化対象画素値xが入力される。The prediction conversion circuit 105 predicts an encoding target pixel value from the peripheral pixel values a and b, and generates a prediction error. FIG.
2 shows a configuration diagram of the prediction conversion circuit 105. In FIG.
01 is a comparator, 502 is a predictor, 503 is a prediction error generation circuit, 504 is a memory, and 505 is a k parameter generation circuit. Although not shown in FIG. 1, pixel value data of peripheral pixels a and b are input from the buffer 115 to the prediction conversion circuit 105. Also, the terminal B of the switch 112
, The encoding target pixel value x is input.
【0049】メモリ504には状態番号Sで特定される
各状態に対応する3つのパラメ−タN,A,Bαが格納さ
れる。N,A,Bαは画像符号化の開始時にN=1,A=
4,Bα=0に初期化される。なお、Nは状態Sの生起回
数であり、Aは状態Sにおける予測誤差の絶対値の累計で
あり、Bαは状態Sにおける負の予測誤差が出現した回数
である。The memory 504 stores three parameters N, A, and Bα corresponding to each state specified by the state number S. N, A, and Bα are N = 1 and A =
4, Bα = 0. Note that N is the number of occurrences of the state S, A is the total of the absolute values of the prediction errors in the state S, and Bα is the number of times a negative prediction error has appeared in the state S.
【0050】図5を用いて予測変換回路105の動作を
詳細に説明する。まず、比較器501はバッファ115
から渡される符号化対象画素の周辺画素a,bを比較し、
b<aの場合には1を出力し、そうでない場合には0を出
力する。以降、この比較器501から出力する値を位相
フラグr(1or0)と呼ぶことにする。The operation of the prediction conversion circuit 105 will be described in detail with reference to FIG. First, the comparator 501 has the buffer 115
Is compared with the surrounding pixels a and b of the encoding target pixel passed from
If b <a, 1 is output; otherwise, 0 is output. Hereinafter, the value output from the comparator 501 will be referred to as a phase flag r (1 or 0).
【0051】予測器502は周辺画素a,bから予測値p
と状態番号Sを生成する。状態番号Sの値はa=bの場合に
は1、a≠bの場合には0となる。また、予測値pは常にb
とする。The predictor 502 calculates the predicted value p from the surrounding pixels a and b.
And a state number S are generated. The value of the state number S is 1 when a = b, and 0 when a ≠ b. Also, the predicted value p is always b
And
【0052】予測誤差生成回路503は符号化対象画素
値xと予測値pより予測誤差Diffを生成する。位相フラグ
rが0の場合にはDiff=x−pとし、位相フラグrが1の場
合にはDiff=p−xとする。The prediction error generation circuit 503 generates a prediction error Diff from the pixel value x to be encoded and the prediction value p. Phase flag
When r is 0, Diff = x−p, and when the phase flag r is 1, Diff = p−x.
【0053】kパラメ−タ生成回路505は予測器50
2から状態S、メモリ504から状態Sの生起回数Nと状
態Sでの予測誤差の絶対値の累加値Aを読み出し、次式に
よりTを求める。The k-parameter generating circuit 505 includes a predictor 50
2, the number of occurrences N of the state S and the cumulative value A of the absolute value of the prediction error in the state S are read from the memory 504, and T is obtained by the following equation.
【0054】 T = | A :S=0の時 | A+N/2:S=1の時T = | A: When S = 0 | A + N / 2: When S = 1
【0055】min(k|N×2^k>=T)によりGolomb−Ri
ce符号化時のパラメ−タkの値を求め、出力する。Golomb-Ri is obtained by min (k | N × 2 ^ k> = T).
The value of parameter k at the time of ce encoding is obtained and output.
【0056】パラメ−タ更新回路506は、状態Sにお
ける3つのパラメ−タN,A,Bαを更新し、N’,A’,B
α’を生成する。まず、A’=A+|Diff|によりA’を求
める。次にDiffの正負を調べ、正である場合にはBα’
=Bαとし、負である場合にはBα’=Bα+1とする。
即ちBαは予測誤差Diffが負であった回数を示すものと
なる。また、N’=N+1によりN’を求める。The parameter updating circuit 506 updates the three parameters N, A, and Bα in the state S, and updates N ′, A ′, and B ′.
Generate α ′. First, A ′ is obtained by A ′ = A + | Diff |. Next, the sign of Diff is checked, and if it is positive, Bα '
= Bα, and if negative, Bα ′ = Bα + 1.
That is, Bα indicates the number of times the prediction error Diff is negative. Further, N ′ is obtained by N ′ = N + 1.
【0057】最後に更新されたN’,A’,Bα’で、メ
モリ504に格納されている状態Sにおける3つのパラ
メ−タN,A,Bαを置き換える。The last updated N ', A', and Bα 'replace the three parameters N, A, and Bα in the state S stored in the memory 504.
【0058】以上の処理により、予測誤差Diff、kパラ
メ−タ、状態番号S、状態番号Sの状態における2つのパ
ラメ−タBα,Nを出力する。By the above processing, two parameters Bα and N in the state of the prediction error Diff, the k parameter, the state number S, and the state number S are output.
【0059】符号予測変換回路106は、kパラメ−タ
が0の場合に、BαとNの値から予測誤差Diffの符号(+
/−)を予測し、予測結果に基づいてDiffの符号を変更
する。When the k parameter is 0, the sign prediction conversion circuit 106 calculates the sign (+) of the prediction error Diff from the values of Bα and N.
/ −) Is predicted, and the sign of Diff is changed based on the prediction result.
【0060】図6に符号予測変換回路106の構成を示
す。同図において601は反転判定回路、602は符号
反転回路、603はセレクタである。FIG. 6 shows the configuration of the code prediction conversion circuit 106. In the figure, reference numeral 601 denotes an inversion determination circuit, 602 denotes a sign inversion circuit, and 603 denotes a selector.
【0061】図6を用いて符号予測変換回路106の動
作を詳細に説明する。まず、反転判定回路601は、k
=0の場合でありかつBα>N/2の場合に符号反転を指
示する信号’1’を、それ以外の場合には符号反転をし
ないことを指示する信号’0’を出力する。符号反転回
路602は、この指示信号(1or0)に基づいて符号化
対象画素に対応するDiffの符号(+/−)を反転し、−D
iffを信号線604に出力する。セレクタ603は反転
判定回路601の出力値が’0’の場合は信号線605
を通じて入力されるDiffを選択して出力し、’1’の場
合には符号反転回路602の出力値−Diffを出力する。The operation of the code prediction conversion circuit 106 will be described in detail with reference to FIG. First, the inversion determination circuit 601 calculates k
In the case of = 0 and Bα> N / 2, a signal '1' instructing sign inversion is output, and in other cases, a signal '0' instructing not to invert sign is output. The sign inversion circuit 602 inverts the sign (+/-) of the Diff corresponding to the encoding target pixel based on the instruction signal (1 or 0), and
iff is output to a signal line 604. When the output value of the inversion determination circuit 601 is “0”, the selector 603
Is selected and output. In the case of “1”, the output value −Diff of the sign inversion circuit 602 is output.
【0062】以上の処理により、符号予測反転回路10
6は入力値Diffに対し、Diffまたは−Diffを選択して出
力する。With the above processing, the sign prediction inversion circuit 10
Numeral 6 selects Diff or -Diff for the input value Diff and outputs it.
【0063】ここで、上記符号反転の役割を簡単に説明
する。kパラメ−タが0の場合及びkパラメ−タが2の場
合のGolomb-Rice符号化の符号化割り当ては図13の様
になる。図13においてkパラメ−タが0の場合とは符
号化画素を含めた周辺画素の値の変動が少ない場合を意
味する。よってGolomb-Rice符号化を行った時の整数値V
と符号化出力及び符号長は図のような関係になってい
る。Here, the role of the sign inversion will be briefly described. FIG. 13 shows the coding assignment of Golomb-Rice coding when the k parameter is 0 and the k parameter is 2. In FIG. 13, the case where the k parameter is 0 means the case where the values of the peripheral pixels including the coded pixel vary little. Therefore, the integer value V when Golomb-Rice coding is performed
, The coded output and the code length have a relationship as shown in the figure.
【0064】一方、kパラメ−タが2の場合は、0の場
合と比べ多少符号化画素を含めた周辺画素の値の変動が
大きくなっていることを表しているので、これに適した
符号化が行えるよう、Golomb-Rice符号化を行った時の
後述する整数値V又は予測誤差Diffと、符号化出力又は
符号長は図のような関係になっている。On the other hand, when the k parameter is 2, it indicates that the fluctuation of the values of the peripheral pixels including the coded pixel is slightly larger than that in the case of 0. In order to perform coding, the integer value V or the prediction error Diff described later when Golomb-Rice coding is performed, and the coding output or code length have a relationship as shown in the figure.
【0065】ここで、kパラメ−タが0の場合には、予
測誤差Diffが同じ絶対値を有するにもかかわらず必ず符
号長が異なるという特徴がある。これに対してkパラメ
−タが0以外の値(例えば2)の場合には、予測誤差Di
ffが同じ絶対値を有するものは同じ符号長になることが
多い。Here, when the k parameter is 0, there is a characteristic that the code length always differs even though the prediction errors Diff have the same absolute value. On the other hand, when the k parameter is a value other than 0 (for example, 2), the prediction error Di
Those having the same absolute value in ff often have the same code length.
【0066】この符号化特性を考慮して、kパラメ−タ
が0の場合かつBα>N/2の場合(状態Sにおける予測誤
差が負であった回数が過半数を超える場合)に符号反転
を行い、それ以外の場合には符号反転をしない様にすれ
ば、同じ絶対値を有する予測誤差Diff(例えば−1と
1)で発生頻度が多い方を符号長の短い符号化出力とす
ることが可能となる。In consideration of this encoding characteristic, sign inversion is performed when the k parameter is 0 and Bα> N / 2 (when the number of times the prediction error in state S is negative exceeds a majority). Otherwise, if the code inversion is not performed in other cases, the one having a higher prediction error Diff (for example, -1 and 1) having the same absolute value and having a higher occurrence frequency can be used as a coded output having a shorter code length. It becomes possible.
【0067】即ち、−1の方が発生頻度が多ければ符号
予測反転回路106の符号反転はしないで良しとし、−
1の方が発生頻度が少ない(1の方が発生頻度が大き
い)時には、−1を1と解釈して符号化し、1を−1と
して解釈して符号化することで符号化効率を上げること
ができる。That is, if the occurrence frequency of -1 is higher, it is determined that the sign prediction inversion circuit 106 does not invert the sign.
When the frequency of occurrence of 1 is lower (the frequency of occurrence of 1 is higher), encoding is performed by interpreting -1 as 1 and encoding by interpreting 1 as -1 to increase the encoding efficiency. Can be.
【0068】一方kパラメ−タが0以外の場合にも上記
符号反転処理を行うことは可能であるが、本実施の形態
ではそれほど効果がないことから、符号反転処理を行わ
ないものとする。On the other hand, the sign inversion processing can be performed even when the k parameter is other than 0, but the sign inversion processing is not performed in this embodiment because it is not so effective.
【0069】以上の符号反転処理は画像を符号化してい
る途中で適宜切り替わるものではあるが、もちろん、復
号化側でも復号化された周辺画素に基づいて上記反転判
定回路601や符号反転回路602と同等の処理部を有
するので、どの符号化対象画素の時点から予測誤差Diff
の正負の解釈の仕方が切り替わったか知ることができ
る。The above-described sign inversion processing is appropriately switched during the encoding of the image. Needless to say, the decoding side performs the inversion judgment circuit 601 and the sign inversion circuit 602 on the basis of the decoded peripheral pixels. Since it has an equivalent processing unit, the prediction error Diff from any encoding target pixel
You can see whether the interpretation of the sign has changed.
【0070】上記符号反転の処理が行われた後、Golomb
−Rice符号化回路107は、符号予測変換回路106の
出力する予測誤差Diff’をパラメ−タkでGolomb−Rice
符号化し、符号をスイッチ113の端子B’へと出力す
る。まず、Diffを以下の式により非負の整数値Vへと変
換する。After the sign inversion processing is performed, Golomb
The -Rice coding circuit 107 converts the prediction error Diff 'output from the code prediction conversion circuit 106 into a Golomb-Rice
It encodes and outputs the code to the terminal B ′ of the switch 113. First, Diff is converted into a non-negative integer value V by the following equation.
【0071】 V =| −2×(Diff−S)−1 :Diff<0の時 | 2×(Diff−S) :Diff≧0の時V = | −2 × (Diff−S) −1: When Diff <0 | 2 × (Diff−S): When Diff ≧ 0
【0072】次に、非負の整数値Vをパラメ−タkでGolo
mb−Rice符号化する。Golomb−Rice符号化の手順はGolo
mb−Rice符号化回路104の説明で述べたとうりであ
る。Next, a non-negative integer value V is obtained by the parameter k
Perform mb-Rice encoding. Golomb-Rice coding procedure is Golo
This is as described in the description of the mb-Rice encoding circuit 104.
【0073】最後に、ランレングスカウンタ108とMe
lcode符号化回路109により符号化処理を行なうラン
レングスモ−ドについて説明する。Finally, the run length counter 108 and Me
The run-length mode in which the encoding process is performed by the lcode encoding circuit 109 will be described.
【0074】ランレングスカウンタ108にはスイッチ
112の端子Aから符号化対象画素値x、バッファ115
から直前の画素値aが入力され、信号線116に符号化
制御信号c、信号線117に同一輝度連続数RLを出力す
る。図7はランレングスカウンタ108の構成を示した
ものである。同図において701は比較器、702はカ
ウンタである。比較器701は符号化対象画素値xと直
前の画素値aを比較し、値が等しい場合には’1’を、
等しくない場合には’0’を符号化制御信号cとして出
力する。カウンタ702は内部に同一輝度値の連続数RL
を保持しており、比較器701の出力する符号化制御信
号cが’0’である場合にはRLをインクリメントして出
力し、符号化制御信号cが’1’である場合にはRLの値
を出力した後、0にリセットする。The run length counter 108 receives the pixel value x to be coded from the terminal A of the switch 112,
, The immediately preceding pixel value a is input, the encoding control signal c is output to the signal line 116, and the same luminance continuous number RL is output to the signal line 117. FIG. 7 shows the configuration of the run length counter 108. In the figure, reference numeral 701 denotes a comparator, and 702 denotes a counter. The comparator 701 compares the encoding target pixel value x with the immediately preceding pixel value a.
If they are not equal, '0' is output as the coding control signal c. The counter 702 has a continuous number RL of the same luminance value internally.
RL is incremented and output when the encoding control signal c output from the comparator 701 is '0', and when the encoding control signal c is '1', After outputting the value, it is reset to zero.
【0075】Melcode符号化回路109は信号線116
から入力される符号化制御信号が’0’である場合にの
み信号線117から入力される同一輝度連続数RLを符号
化する。このMelcode符号化の手順を図10に示す。The Melcode encoding circuit 109 is connected to the signal line 116
Is encoded only when the encoding control signal input from is equal to '0'. FIG. 10 shows the procedure of the Melcode encoding.
【0076】図10のSTEP1001においてまず、Melc
ode符号化回路109の内部に保持されているindex(符
号化開始時の初期値は0)に基づいてラン長しきい値RL
Tが決定する。図11にindexとRLTの対応関係を示す。
次に、STEP1002ではRLTとラン長RLを比較し、RL≧R
LTならばSTEP1003に処理を進め、そうでない場合に
はSTEP1008へと処理を進める。First, in Step 1001 of FIG.
The run length threshold value RL is determined based on the index (the initial value at the start of encoding is 0) held inside the ode encoding circuit 109.
T is determined. FIG. 11 shows the correspondence between index and RLT.
Next, in STEP 1002, RLT is compared with the run length RL, and RL ≧ R
If LT, the process proceeds to STEP 1003; otherwise, the process proceeds to STEP 1008.
【0077】STEP1003では’0’を符号として出力
する。続いてSTEP1004でRL=RL−RLTによりRLの値
を更新する。STEP1005ではindexの値をインクリメ
ントし、STEP1006ではindexが31を超えた場合に
はSTEP1007でindexに31を設定してからSTEP10
01に処理を戻し、indexが31を超えない場合にはそ
のままSTEP1001に処理を戻す。In STEP 1003, “0” is output as a code. Subsequently, in STEP 1004, the value of RL is updated by RL = RL-RLT. In step 1005, the value of the index is incremented. In step 1006, if the index exceeds 31, the index is set to 31 in step 1007 and then in step 10
01, and if the index does not exceed 31, the process returns to STEP 1001 as it is.
【0078】一方ステップ1008へと処理が進んだ場
合には、STEP1008でまず、’1’を符号として出力
する。次にSTEP1009において、RLを2進数表現し、
その下位RLTビットを符号として出力する。STEP101
0ではindexの値をデクリメントし、STEP1011でind
exが0以下になったかどうか判断する。indexが0以下
になった場合にはSTEP1012においてindexに0を設
定して終了し、indexが0以下になっていない場合には
そのまま終了する。On the other hand, if the processing has proceeded to step 1008, “1” is first output as a code in STEP 1008. Next, in STEP 1009, RL is expressed in binary notation,
The lower RLT bit is output as a code. STEP101
At 0, the value of index is decremented.
It is determined whether ex has become 0 or less. If the index has become 0 or less, STEP 1012 sets index to 0, and the processing ends. If the index does not become 0 or less, the processing ends.
【0079】以上により、ラン長RLに対する符号が生成
され、出力される。As described above, a code for the run length RL is generated and output.
【0080】上述の処理を、入力部100より入力され
る最後の画素まで繰り返し、符号化処理を行う。これに
より、信号線114に入力画像に対する符号系列を出力
する。The above processing is repeated until the last pixel input from the input unit 100, and the encoding processing is performed. As a result, a code sequence for the input image is output to the signal line 114.
【0081】なお、上記Melcode符号化の方法について
の説明は、「電子通信学会論文誌’77/12 Vo
l.J60−A No.12」に開示されているので、詳
細は省略する。For a description of the above-mentioned Melcode encoding method, see “Transactions of the Institute of Electronics, Information and Communication Engineers, '77 / 12 Vo.
1. J60-A No. 12 ", and the details are omitted.
【0082】以上に説明した3つの各符号化モードが、
図8に示した符号化モードの切換に従って用いられる。The three encoding modes described above are:
It is used in accordance with the switching of the encoding mode shown in FIG.
【0083】上述した符号化方法によれば、カラー又は
モノクロの多値画像の情報量を失うことなく可逆(ロス
レス)符号化することができる。According to the above-described encoding method, lossless encoding can be performed without losing the information amount of a color or monochrome multivalued image.
【0084】なお、本実施例に示したロスレス符号化に
おいて、図6に示した符号反転処理を行うことにより、
予測誤差Diffが同じ絶対値を有するにもかかわらず符号
長が異なる様なGolomb-Rice符号化等のエントロピ−符
号化に対して、この符号化特性を考慮して、符号化対象
画素の前画素までに予測誤差Diffの正の符号と負の符号
の何れが多く発生しているかに基づいて、エントロピ−
符号化前に予測誤差Diffを符号反転するか否か(予測誤
差Diffの正負の符号の解釈を変えるか否か)を制御する
様にすれば、同じ絶対値の予測誤差Diffにおいて発生頻
度が多い方を短い符号長とすることができ、効率の良い
エントロピ−符号化が可能となる。In the lossless encoding shown in the present embodiment, the sign inversion processing shown in FIG.
For entropy coding such as Golomb-Rice coding in which the prediction error Diff has the same absolute value but a different code length, this encoding property is taken into consideration, and the pixel before the pixel to be coded is considered. The entropy is determined based on whether the positive or negative sign of the prediction error Diff has occurred before.
By controlling whether or not the sign of the prediction error Diff is inverted before coding (whether or not to change the interpretation of the sign of the prediction error Diff), the frequency of occurrence of the prediction error Diff having the same absolute value is high. The code length can be shorter, and efficient entropy coding can be performed.
【0085】また以上の実施の形態の符号反転処理は、
符号化対象画素の前画素までに予測誤差Diffの正の符号
と負の符号の何れが多い回数発生しているかという、単
なる発生回数に基づいて反転処理を行うことを大きな特
徴とし、これによれば、符号化対象画素の前画素までの
予測誤差Diffの累積値が正の符号と負の符号の何れであ
るかに基づいて反転処理を行う様な方法と比べて、本実
施の形態の方が処理が容易である。更には画像のノイズ
等により予測誤差Diffに正又は負の大きな値が発生して
しまったときに、上記累積値は正負の一方に偏ってしま
い最適な符号反転ができないが、本実施の形態によれば
この様なノイズによる影響を受けないで済む。The sign inversion processing of the above embodiment is
A major feature is that the inversion process is performed based on the mere number of occurrences of which one of the positive sign and the negative sign of the prediction error Diff has occurred many times before the pixel before the encoding target pixel. For example, compared to the method of performing the inversion processing based on whether the cumulative value of the prediction error Diff up to the previous pixel of the encoding target pixel is a positive sign or a negative sign, However, processing is easy. Furthermore, when a large positive or negative value occurs in the prediction error Diff due to image noise or the like, the above-mentioned accumulated value is biased to one of the positive and negative sides, and the optimum sign inversion cannot be performed. According to this, it is not necessary to be affected by such noise.
【0086】(変形例)本発明は上述した実施の形態に
限定されるものではない。例えば、符号化対象画素値の
予測方法として単純に前値予測を用いる場合にも適用で
き、幾つかの予測方法を用意して、適時切り替えても構
わない。また、エントロピ−符号化手段としてGolomb−
Rice符号とMelcodeを用いているが、これらをハフマン
符号等の他のエントロピ−符号化方式に変えても良い。
なお、上述の実施の形態ではラン終端モ−ドで符号反転
処理を行なったが、本発明はこれに限らず、ノーマルモ
ードの場合に代表される予測値をエントロピー符号化す
る様な符号化モード又は単独の符号化処理に適用する事
も可能であり、これらの変形例も本発明に含まれる。(Modification) The present invention is not limited to the above embodiment. For example, the present invention can be applied to a case where the previous value prediction is simply used as the prediction method of the pixel value to be coded. Several prediction methods may be prepared and switched as appropriate. In addition, Golomb-
Although Rice code and Melcode are used, these may be changed to another entropy coding method such as Huffman code.
In the above-described embodiment, the sign inversion processing is performed in the run end mode. However, the present invention is not limited to this, and a coding mode in which a predicted value represented by the normal mode is entropy-coded. Alternatively, the present invention can be applied to a single encoding process, and these modifications are also included in the present invention.
【0087】また本発明は複数の機器(たとえばホスト
コンピュータ、インタフェース機器、リーダ、プリンタ
等)から構成されるシステムに適用しても一つの機器
(たとえば複写機、ファクシミリ装置)からなる装置に
適用してもよい。The present invention can be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), or to an apparatus composed of one device (for example, a copying machine or a facsimile machine). You may.
【0088】また前述した実施形態の機能を実現する様
に各種のデバイスを動作させる様に該各種デバイスと接
続された装置あるいはシステム内のコンピュータに、前
記実施形態機能を実現するためのソフトウエアのプログ
ラムコードを供給し、そのシステムあるいは装置のコン
ピュータ(CPUあるいはMPU)を格納されたプログラムに
従って前記各種デバイスを動作させることによって実施
したものも本発明の範疇に含まれる。Also, in order to operate various devices to realize the functions of the above-described embodiment, a device connected to the various devices or a computer in a system is provided with software for realizing the functions of the above-described embodiment. The present invention also includes a program code supplied and executed by operating a computer (CPU or MPU) of the system or apparatus according to a stored program to operate the various devices.
【0089】またこの場合、前記ソフトウエアのプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコード自体、及びそのプログ
ラムコードをコンピュータに供給するための手段、例え
ばかかるプログラムコードを格納した記憶媒体は本発明
を構成する。In this case, the program code of the software implements the functions of the above-described embodiment. The program code itself and means for supplying the program code to a computer, for example, the program code The storage medium storing the information constitutes the present invention.
【0090】かかるプログラムコードを格納する記憶媒
体としては例えばフロッピーディスク、ハードディス
ク、光ディスク、光磁気ディスク、CD-ROM,、磁気テー
プ、不揮発性のメモリカード、ROM等を用いることが出
来る。As a storage medium for storing such a program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, magnetic tape, nonvolatile memory card, ROM or the like can be used.
【0091】またコンピュータが供給されたプログラム
コードを実行することにより、前述の実施形態の機能が
実現されるだけではなく、そのプログラムコードがコン
ピュータにおいて稼働しているOS(オペレーティングシ
ステム)、あるいは他のアプリケーションソフト等と共
同して前述の実施形態の機能が実現される場合にもかか
るプログラムコードは本願発明の実施形態に含まれるこ
とは言うまでもない。When the computer executes the supplied program code, not only the functions of the above-described embodiment are realized, but also the OS (operating system) running on the computer or another program. Needless to say, even when the functions of the above-described embodiments are realized in cooperation with application software and the like, such program codes are included in the embodiments of the present invention.
【0092】更に供給されたプログラムコードが、コン
ピュータの機能拡張ボードやコンピュータに接続された
機能拡張ユニットに備わるメモリに格納された後そのプ
ログラムコードの指示に基づいてその機能拡張ボードや
機能格納ユニットに備わるCPU等が実際の処理の一部ま
たは全部を行い、その処理によって前述した実施形態の
機能が実現される場合も本願発明に含まれることは言う
までもない。Further, the supplied program code is stored in a memory provided in a function expansion board of the computer or a function expansion unit connected to the computer, and then stored in the function expansion board or the function storage unit based on the instruction of the program code. It is needless to say that the present invention also includes a case where a provided CPU or the like performs a part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
【0093】[0093]
【発明の効果】以上説明したように本発明によれば、符
号化対象画素の周辺画素に基づいて予測値を発生し、予
測値と符号化対象画素の画素値の予測誤差をエントロピ
ー符号化する予測符号化モードと、予測誤差を得ること
なく画素値をランレングス符号化するランレングス符号
化モードを有する符号化装置であって、前記予測符号化
モードにおける予測誤差の正負の符号の解釈を、符号化
後の符号量が減少されるべく反転させる符号反転処理手
段を有するので、同じ絶対値の予測誤差Diffにおいて発
生頻度が多い方を短い符号長とすることができ、効率の
良いエントロピ−符号化が可能となる。As described above, according to the present invention, a predicted value is generated based on the peripheral pixels of the encoding target pixel, and the prediction error between the predicted value and the pixel value of the encoding target pixel is entropy-encoded. Predictive encoding mode, a coding apparatus having a run-length encoding mode for run-length encoding the pixel value without obtaining a prediction error, the interpretation of the sign of the prediction error in the prediction encoding mode, Since there is a sign inversion processing means for inverting so that the code amount after encoding is reduced, the one having a higher occurrence frequency in the prediction error Diff of the same absolute value can have a shorter code length, and an efficient entropy code Is possible.
【図1】本発明に係る第1の実施の形態でのブロック図
を示すものである。FIG. 1 shows a block diagram according to a first embodiment of the present invention.
【図2】符号化対象画素と周辺画素の位置関係を示すも
のである。FIG. 2 illustrates a positional relationship between a pixel to be encoded and peripheral pixels.
【図3】周辺画素の差分値の量子化方法を示すものであ
る。FIG. 3 illustrates a method of quantizing a difference value between peripheral pixels.
【図4】予測変換回路102の構成を示すものである。4 shows a configuration of a prediction conversion circuit 102. FIG.
【図5】予測変換回路105の構成を示すものである。5 shows a configuration of a prediction conversion circuit 105. FIG.
【図6】符号予測反転回路106の構成を示すものであ
る。FIG. 6 shows a configuration of a sign prediction inversion circuit 106.
【図7】ランレングスカウンタ108の構成を示すもの
である。FIG. 7 shows a configuration of a run length counter 108.
【図8】モ−ドセレクタ111による符号化モ−ドの制
御を示すものである。FIG. 8 shows the control of the encoding mode by the mode selector 111.
【図9】kパラメ−タ0,1,2に於けるGolomb−Rice
符号の例を示したものである。FIG. 9: Golomb-Rice in k parameters 0, 1, and 2
The example of a code | symbol was shown.
【図10】Melcode符号化手順を示したものである。FIG. 10 shows a Melcode encoding procedure.
【図11】ランレングスの符号化におけるindex値に対
するRLTの値を示したものである。FIG. 11 shows RLT values with respect to index values in run-length encoding.
【図12】予測修正値Cの更新手順を示すものである。FIG. 12 shows a procedure for updating a predicted correction value C.
【図13】kパラメ−タが0の場合及びkパラメ−タが2
の場合のGolomb-Rice符号化の符号化割り当ての様子を
しめすものである。FIG. 13: When the k parameter is 0 and when the k parameter is 2
This shows how coding is allocated in Golomb-Rice coding in the case of.
100 入力部 101,114,116,117 信号線 102,105 予測変換回路 104,107 Golomb−Rice符号化回路 106 符号予測変換回路 108 ランレングスカウンタ 109 Melcode符号化回路 110 状態判別回路 111 モ−ドセレクタ 112,113 スイッチ 115 画像デ−タ系列を格納するバッファ Reference Signs List 100 input unit 101, 114, 116, 117 signal line 102, 105 prediction conversion circuit 104, 107 Golomb-Rice coding circuit 106 code prediction conversion circuit 108 run-length counter 109 Melcode coding circuit 110 state discrimination circuit 111 mode selector 112 , 113 switch 115 buffer for storing image data sequence
Claims (20)
測値を発生し、予測値と符号化対象画素の画素値の予測
誤差をエントロピー符号化する予測符号化モードと、予
測誤差を得ることなく画素値をランレングス符号化する
ランレングス符号化モードを有する符号化装置であっ
て、 前記予測符号化モードにおける予測誤差の正負の符号の
解釈を、符号化後の符号量が減少されるべく反転させる
符号反転処理手段を有することを特徴とする符号化装
置。1. A prediction coding mode for generating a prediction value based on neighboring pixels of an encoding target pixel, and entropy encoding a prediction error between the prediction value and a pixel value of the encoding target pixel, and obtaining a prediction error. A run-length coding mode for run-length coding a pixel value, and interprets the sign of the prediction error in the prediction coding mode so that the code amount after coding is reduced. An encoding device, comprising: sign inversion processing means for inverting.
周辺画素を用いて計算された値が所定の値である場合に
行われることを特徴とする請求項1に記載の符号化装
置。2. The encoding apparatus according to claim 1, wherein the run-length encoding mode is performed when a value calculated using a plurality of peripheral pixels is a predetermined value.
画素を多値画像として符号化する第1の予測符号化モー
ド及び第2の予測符号化モードを有し、前記第2の予測
符号化モードの符号化はランレングス符号化モードによ
り符号化された画素の直後の画素に対して行われること
を特徴とする請求項1に記載の符号化処理装置。3. The predictive encoding mode has a first predictive encoding mode and a second predictive encoding mode for encoding the pixel to be encoded as a multi-valued image, and the second predictive encoding mode The encoding apparatus according to claim 1, wherein the encoding of the mode is performed on a pixel immediately after the pixel encoded in the run-length encoding mode.
辺画素の複数個に基づいて予測値を発生することを特徴
とする請求項3に記載の符号化装置。4. The encoding apparatus according to claim 3, wherein said first predictive encoding mode generates a predicted value based on a plurality of said peripheral pixels.
lomb-Rice符号化を用いることを特徴とする請求項1に
記載の符号化装置。5. The encoding in the predictive encoding mode includes Go
The encoding device according to claim 1, wherein lomb-Rice encoding is used.
号化であることを特徴とする請求項1に記載の符号化装
置。6. The encoding apparatus according to claim 1, wherein the run-length encoding is Melcode encoding.
の解釈の反転は、前記予測符号化モードにおける符号化
を行う前に前記予測誤差の正負符号を反転することを特
徴とする請求項1に記載の符号化装置。7. The method according to claim 1, wherein the inversion of the interpretation of the positive / negative sign by the sign inversion processing means inverts the positive / negative sign of the prediction error before performing encoding in the prediction encoding mode. An encoding device according to claim 1.
の解釈の反転は、符号化対象画素の前画素までに発生し
た予測誤差について、正の予測誤差と負の予測誤差の何
れが多く発生したかを表す情報に基づいて行うことを特
徴とする請求項1に記載の符号化装置。8. The inversion of the interpretation of the positive / negative sign by the sign inversion processing means, as for the prediction error occurring up to the pixel preceding the pixel to be encoded, whichever of the positive prediction error or the negative prediction error occurs more frequently. The encoding apparatus according to claim 1, wherein the encoding is performed based on information indicating whether the encoding is performed.
と、ランレングス符号化モードは符号化対象画素毎に切
換可能であることを特徴とする請求項3に記載の符号化
装置。9. The encoding apparatus according to claim 3, wherein the first and second predictive encoding modes and the run-length encoding mode can be switched for each encoding target pixel.
し、該カラー画像を構成する複数成分を画素毎に切り換
えることにより行うことを特徴とする請求項1に記載の
画像処理装置。10. The image processing apparatus according to claim 1, wherein the encoding apparatus encodes a color image and switches a plurality of components constituting the color image for each pixel.
し、該カラー画像を構成する複数成分を1ライン又は複
数のラインから成るバンド毎に切り換えることにより行
うことを特徴とする請求項1に記載の画像処理装置。11. The apparatus according to claim 1, wherein the encoding apparatus encodes a color image and switches a plurality of components constituting the color image for each line composed of one line or a plurality of lines. Image processing device.
し、該カラー画像を構成する複数成分を画面毎に切り換
えることにより行うことを特徴とする請求項1に記載の
画像処理装置。12. The image processing apparatus according to claim 1, wherein the encoding apparatus encodes a color image and switches a plurality of components constituting the color image for each screen.
予測値と符号化対象画素の画素値の予測誤差をエントロ
ピー符号化する予測符号化モードと、予測誤差を得るこ
となく画素値をランレングス符号化するランレングス符
号化モードを切換可能な符号化方法であって、 前記予測符号化モードにおける予測誤差の正負の符号の
解釈を、符号化後の符号量が減少されるべく反転させる
符号反転ステップを有することを特徴とする符号化方
法。13. Generating a predicted value based on surrounding pixels,
An encoding method capable of switching between a prediction encoding mode for entropy encoding a prediction error between a prediction value and a pixel value of a pixel to be encoded and a run-length encoding mode for run-length encoding a pixel value without obtaining a prediction error And a sign inversion step of inverting the interpretation of the sign of the prediction error in the prediction encoding mode so that the code amount after encoding is reduced so as to be reduced.
予測値と符号化対象画素の画素値の予測誤差をエントロ
ピー符号化する予測符号化モードと、予測誤差を得るこ
となく画素値をランレングス符号化するランレングス符
号化モードを切換可能な符号化プログラムをコンピュー
タより読み出し可能に記憶した記憶媒体であって、 前記予測符号化モードにおける予測誤差の正負の符号の
解釈を、符号化後の符号量が減少されるべく反転させる
符号反転ステップを前記プログラムに有することを特徴
とする記憶媒体。14. A method for generating a predicted value based on surrounding pixels,
A coding program capable of switching between a prediction coding mode for entropy coding of a prediction error between a prediction value and a pixel value of a pixel to be coded, and a run-length coding mode for run-length coding a pixel value without obtaining a prediction error. And a sign inversion step of inverting the interpretation of the sign of the prediction error in the prediction encoding mode so that the code amount after encoding is reduced so that the code amount is reduced. A storage medium characterized by having.
予測値を発生し、予測値と符号化対象画素の画素値の予
測誤差をGolomb-Rice符号化する第1モード及び第2モ
ードと、符号化対象画素の画素値をMelcode符号化する
第3モードとを有し、所定の条件に応じて画素毎のモー
ド切り換え制御が可能な符号化装置であって、 第2の予測符号化モードの符号化を行うに際して、第2
の予測符号化モードにおいてGolomb-Rice符号化に用い
られるkパラメータの値、及び第2の予測符号化モード
において符号化対象画素の前画素までに対する正の予測
誤差と負の予測誤差の何れが多く発生したかを表す情報
に基づいて、前記符号化対象画素に対応する予測誤差の
正負の符号を反転させる符号反転処理手段を有すること
を特徴とする符号化装置。15. A first mode and a second mode in which a prediction value is generated based on neighboring pixels of an encoding target pixel, and a Golomb-Rice encoding is performed on a prediction error between the prediction value and a pixel value of the encoding target pixel. A third mode for performing Melcode encoding of the pixel value of the pixel to be encoded, wherein the mode switching control for each pixel can be controlled in accordance with a predetermined condition. When encoding, the second
The value of the k parameter used for Golomb-Rice encoding in the predictive coding mode of, and which of the positive prediction error and the negative An encoding apparatus, comprising: sign inversion processing means for inverting the sign of a prediction error corresponding to the encoding target pixel based on information indicating whether the encoding error has occurred.
予測値を発生し、予測値と符号化対象画素の画素値の予
測誤差をGolomb-Rice符号化する第1モード及び第2モ
ードと、符号化対象画素の画素値をMelcode符号化する
第3モードとを有し、所定の条件に応じて画素毎のモー
ド切り換え制御が可能な符号化方法であって、 第2の予測符号化モードを行う時に、第2の予測符号化
モードにおいてGolomb-Rice符号化に用いられるkパラメ
ータの値、及び第2の予測符号化モードにおいて符号化
対象画素の前画素までに対する正の予測誤差と負の予測
誤差の何れが多く発生したかを表す情報に基づいて、前
記符号化対象画素に対応する予測誤差の正負の符号を反
転させる符号反転処理ステップを有することを特徴とす
る符号化方法。16. A first mode and a second mode in which a predicted value is generated based on peripheral pixels of a pixel to be encoded and a prediction error between the predicted value and a pixel value of the pixel to be encoded is Golomb-Rice encoded; A third mode for performing Melcode encoding of the pixel value of the pixel to be encoded, and a mode switching control for each pixel according to a predetermined condition, wherein the second predictive encoding mode is When performing, the value of the k parameter used for Golomb-Rice encoding in the second prediction encoding mode, and the positive prediction error and the negative prediction for the pixel before the pixel to be encoded in the second prediction encoding mode An encoding method, comprising: a sign inversion processing step of inverting the sign of the prediction error corresponding to the encoding target pixel based on information indicating which of the errors has occurred more frequently.
予測値を発生し、予測値と符号化対象画素の画素値の予
測誤差をGolomb-Rice符号化する第1モード及び第2モ
ードと、符号化対象画素の画素値をMelcode符号化する
第3モードとを有し、所定の条件に応じて画素毎のモー
ド切り換え制御が可能な符号化プログラムをコンピュー
タより読み取り可能な状態で記憶した記憶媒体であっ
て、 第2の予測符号化モードを行う時に、第2の予測符号化
モードにおいてGolomb-Rice符号化に用いられるkパラメ
ータの値、及び第2の予測符号化モードにおいて符号化
対象画素の前画素までに対する正の予測誤差と負の予測
誤差の何れが多く発生したかを表す情報に基づいて、前
記符号化対象画素に対応する予測誤差の正負の符号を反
転させる符号反転処理ステップを前記プログラムに有す
ることを特徴とする記憶媒体。17. A first mode and a second mode in which a prediction value is generated based on peripheral pixels of an encoding target pixel, and a Golomb-Rice encoding of a prediction error between a prediction value and a pixel value of the encoding target pixel is performed. A third mode for performing Melcode encoding of the pixel value of the encoding target pixel, and a storage medium storing an encoding program capable of mode switching control for each pixel in accordance with predetermined conditions in a state readable by a computer When performing the second predictive encoding mode, the value of the k parameter used for Golomb-Rice encoding in the second predictive encoding mode, and the value of the pixel to be encoded in the second predictive encoding mode A sign inversion processing step of inverting the sign of the prediction error corresponding to the encoding target pixel based on information indicating which of the positive prediction error and the negative prediction error with respect to the previous pixel has occurred more frequently. Storage medium characterized by having the program.
予測値を発生し、予測値と符号化対象画素の画素値の予
測誤差をエントロピー符号化する予測符号化モードを含
む複数の符号化モードを画素毎に選択使用する符号化装
置であって、 前記予測符号化モードにおける予測誤差の正負の符号の
解釈を、符号化後の符号量が減少されるべく反転させる
符号反転処理手段を有することを特徴とする符号化装
置。18. A plurality of encoding modes including a prediction encoding mode for generating a prediction value based on a peripheral pixel of the encoding target pixel and entropy encoding a prediction error between the prediction value and a pixel value of the encoding target pixel. And a sign inversion processing unit for inverting interpretation of positive and negative signs of a prediction error in the prediction encoding mode so as to reduce a code amount after encoding. An encoding device characterized by the above-mentioned.
予測値を発生し、予測値と符号化対象画素の画素値の予
測誤差をエントロピー符号化する予測符号化モードを含
む複数の符号化モードを画素毎に選択使用可能な符号化
方法であって、 前記予測符号化モードにおける予測誤差の正負の符号の
解釈を、符号化後の符号量が減少されるべく反転させる
符号反転ステップを有することを特徴とする符号化方
法。19. A plurality of encoding modes including a prediction encoding mode for generating a prediction value based on peripheral pixels of an encoding target pixel and entropy encoding a prediction error between the prediction value and a pixel value of the encoding target pixel. Is a coding method that can be selectively used for each pixel, comprising a sign inversion step of inverting the interpretation of the positive / negative sign of the prediction error in the prediction encoding mode so that the amount of code after encoding is reduced. An encoding method characterized by the following.
予測値を発生し、予測値と符号化対象画素の画素値の予
測誤差をエントロピー符号化する予測符号化モードを含
む複数の符号化モードを画素毎に選択使用可能な符号化
プログラムをコンピュータより読み出し可能に記憶した
記憶媒体であって、 前記予測符号化モードにおける予測誤差の正負の符号の
解釈を、符号化後の符号量が減少されるべく反転させる
符号反転ステップを前記プログラムに有することを特徴
とする記憶媒体。20. A plurality of encoding modes including a prediction encoding mode for generating a prediction value based on a peripheral pixel of the encoding target pixel and entropy encoding a prediction error between the prediction value and a pixel value of the encoding target pixel. A computer-readable storage medium storing an encoding program that can be selectively used for each pixel, wherein the interpretation of the positive and negative signs of the prediction error in the prediction encoding mode is reduced in code amount after encoding. A storage medium having a sign inversion step for inverting as much as possible in the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9219297A JP3847891B2 (en) | 1997-04-10 | 1997-04-10 | Encoding apparatus and method and storage medium storing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9219297A JP3847891B2 (en) | 1997-04-10 | 1997-04-10 | Encoding apparatus and method and storage medium storing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH10285601A true JPH10285601A (en) | 1998-10-23 |
JP3847891B2 JP3847891B2 (en) | 2006-11-22 |
Family
ID=14047586
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9219297A Expired - Fee Related JP3847891B2 (en) | 1997-04-10 | 1997-04-10 | Encoding apparatus and method and storage medium storing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3847891B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006129467A (en) * | 2004-10-29 | 2006-05-18 | Microsoft Corp | Lossless adaptive encoding/decoding of integer data |
JP2006325130A (en) * | 2005-05-20 | 2006-11-30 | Olympus Imaging Corp | Data encoding device, data decoding device, data encoding method, data decoding method, and program |
-
1997
- 1997-04-10 JP JP9219297A patent/JP3847891B2/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006129467A (en) * | 2004-10-29 | 2006-05-18 | Microsoft Corp | Lossless adaptive encoding/decoding of integer data |
JP2006325130A (en) * | 2005-05-20 | 2006-11-30 | Olympus Imaging Corp | Data encoding device, data decoding device, data encoding method, data decoding method, and program |
JP4500213B2 (en) * | 2005-05-20 | 2010-07-14 | オリンパスイメージング株式会社 | Data encoding apparatus, data decoding apparatus, data encoding method, data decoding method, and program |
Also Published As
Publication number | Publication date |
---|---|
JP3847891B2 (en) | 2006-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3839974B2 (en) | Encoder | |
US6233355B1 (en) | Encoding apparatus and method and storage medium | |
JP2000115782A (en) | Coder, coding method and storage medium | |
US7689048B2 (en) | Image encoding apparatus, method, and computer-readable storage medium for encoding a pixel value | |
EP0772364B1 (en) | Image processing apparatus and method | |
US11178429B2 (en) | Method for producing video coding and programme-product | |
JP4418762B2 (en) | Image encoding apparatus, image decoding apparatus, control method thereof, computer program, and computer-readable storage medium | |
JPH10107645A (en) | Coder and coding system | |
JP2000115783A (en) | Decoder and its method | |
JPH09224253A (en) | Image coder and image decoder | |
JP2008118307A (en) | Coder, and its control method | |
US10652541B2 (en) | Method and device for encoding video data | |
US10735733B2 (en) | Method and device for encoding video data | |
KR20110032331A (en) | Randomly accessible video encoding system and method | |
US20020141649A1 (en) | Coding method, coding apparatus, decoding method and decoding apparatus using subsampling | |
US6873737B2 (en) | Image encoding system, image decoding system and methods therefor | |
JP2019520001A (en) | Method and apparatus for improved importance flag encoding using a simple local predictor | |
JPH10285601A (en) | Coder, its method and storage medium storing the method | |
JPH06164940A (en) | Encoder | |
JP3966117B2 (en) | Image processing apparatus, image encoding apparatus, image printing apparatus, and methods thereof | |
JPH104557A (en) | Unit, and method for image processing and storage medium storing the method | |
JPH104551A (en) | Image processing unit, method for the unit and storage medium storing the method | |
CN113115049A (en) | Method for encoding and decoding image content and system for transmitting image content | |
JP3943634B2 (en) | Information processing apparatus and method | |
JP2872334B2 (en) | Color image encoding device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050208 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050411 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051122 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060123 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20060808 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060824 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090901 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100901 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110901 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110901 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120901 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120901 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130901 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |