JP4110558B2 - Encoding device, decoding device, encoding method, and decoding method - Google Patents
Encoding device, decoding device, encoding method, and decoding method Download PDFInfo
- Publication number
- JP4110558B2 JP4110558B2 JP2005293639A JP2005293639A JP4110558B2 JP 4110558 B2 JP4110558 B2 JP 4110558B2 JP 2005293639 A JP2005293639 A JP 2005293639A JP 2005293639 A JP2005293639 A JP 2005293639A JP 4110558 B2 JP4110558 B2 JP 4110558B2
- Authority
- JP
- Japan
- Prior art keywords
- value
- section
- information source
- source symbol
- appearance probability
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Image Processing (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
この発明は、データを圧縮・解凍する符号化装置および復号装置ならびに符号化方法および復号方法に関するものである。 The present invention relates to an encoding device, a decoding device, an encoding method, and a decoding method for compressing / decompressing data.
従来より、従来技術として種々の提案がなされている(例えば、特許文献1参照)。 Conventionally, various proposals have been made as conventional techniques (see, for example, Patent Document 1).
従来の符号化方式の一例として、高い圧縮率が得られる算術符号化について説明する。具体的に動作を説明する前に、図16で2値算術符号化の概念を説明する。算術符号化は、0.0以上1.0未満の数直線上の2進小数座標値が符号Cとなる。処理過程において、上記数直線上の範囲を有効区間幅Aとして2値シンボルの出現確率に比例して分割し、実際に出現したシンボルに対応する部分区間を新たな有効区間として分割を繰り返す。MPS(More Probable Symbol)は出現確率がより高いデータ値が出たことを示す優勢シンボル、LPS(Less Probable Symbol)は出現確率がより低いデータ値が出たことを示す劣勢シンボルである。最終シンボルで更新された有効区間内の1つの座標を符号として出力する。処理中は、符号Cを有効区間の下界値として計算し、同図において上界値と下界値の差である有効区間幅とともに更新される。最終的な符号は、座標末尾に続く0を切り捨てた有効区間内で有効桁数が最小の座標値を選択することもできる。 As an example of a conventional coding method, arithmetic coding that provides a high compression rate will be described. Before explaining the operation concretely, the concept of binary arithmetic coding will be explained with reference to FIG. In arithmetic coding, a binary decimal coordinate value on a number line between 0.0 and 1.0 is a code C. In the processing process, the range on the number line is divided as the effective interval width A in proportion to the appearance probability of the binary symbol, and the division is repeated with the partial interval corresponding to the actually appearing symbol as a new effective interval. MPS (More Probable Symbol) is a dominant symbol indicating that a data value having a higher appearance probability has been output, and LPS (Less Probable Symbol) is an inferior symbol indicating that a data value having a lower appearance probability has been output. One coordinate in the valid section updated with the last symbol is output as a code. During processing, the code C is calculated as the lower bound value of the effective section, and is updated together with the effective section width which is the difference between the upper bound value and the lower bound value in the figure. As the final code, it is also possible to select a coordinate value having the minimum number of significant digits in the valid section in which zeros following the end of the coordinates are truncated.
算術符号化の実用化に当たっては、符号演算時の有効桁数増加に対処した減算型算術符号化が一般に用いられる。以下、算術符号は減算型算術符号を指すものとする。図17は、減算型算術符号化と正規化処理の概念を示す図である。LSZはLPSに割当てられる部分区間であり、シンボルの出現確率に基づいて予め用意されたテーブルから近似値が選択される。ここで、有効区間が1/2を下回ると2のべき乗倍して1/2以上に拡大する正規化処理を行う。これにより、計算時の小数部の桁数は一定に保たれる。このとき、整数部において小数点から続く1とその上位の0となった桁については後の座標計算で桁上がりの伝播によって変更されることあるため値が確定していないが、それより上位桁は桁上がりの伝播がないため符号器外へ送出してしまうことができる。 For practical use of arithmetic coding, subtractive arithmetic coding that copes with an increase in the number of significant digits during code calculation is generally used. Hereinafter, the arithmetic code indicates a subtractive arithmetic code. FIG. 17 is a diagram illustrating the concept of subtractive arithmetic coding and normalization processing. LSZ is a partial section allocated to LPS, and an approximate value is selected from a table prepared in advance based on the appearance probability of the symbol. Here, when the effective interval is less than ½, normalization processing is performed in which the power is multiplied by 2 and expanded to ½ or more. Thereby, the number of digits of the decimal part at the time of calculation is kept constant. At this time, the value of the 1 digit that follows the decimal point in the integer part and the digit that is higher than 0 is not fixed because it may be changed by carry propagation in later coordinate calculation, but the higher digit is Since there is no carry of carry, it can be sent out of the encoder.
最も代表的な減算型算術符号化の符号器(Encoder)・復号器(Decoder)は、ITU−Tの国際標準勧告T.82に記載されるテーブルおよび処理フローによって実現できる。以下、この算術符号化をQMコーダー(QM−Coder)と呼び、符号化対象データを2値画像として上記先行技術文献で規定される符号化および復号の演算処理について説明する。ここで、QMコーダー(QM−Coder)の符号および復号の演算処理には、日本国特許第2128115号に示されるシンボルに対応する部分区間の補正技術が採用されている。これを図18で説明するが、ここでは数値を10進で表現する。同図(a)では有効区間が0.6に対して、LPZとして0.2が選択され、全体の1/3を占める。これは、1/2に満たないのでLPS、残りの区間をMPSへ割り当てる。しかし、同図(b)のように、ここではLSZが2/3を占め、1/2を超えるとき、出現確率比と実際の占有率のシンボル対応が逆転するため、単純にMPSとLPSで区間を交換することにより補正し、符号化性能の低下を抑えている。これは「条件付きMPS/LPS交換」と呼ばれている。 The most representative encoder / decoder for subtractive arithmetic coding is the ITU-T international standard recommendation T.264. 82 and the processing flow described in FIG. Hereinafter, the arithmetic coding is referred to as a QM coder (QM-Coder), and encoding and decoding calculation processes defined in the above-described prior art document will be described using the data to be encoded as a binary image. Here, the correction technique of the partial section corresponding to the symbol shown in Japanese Patent No. 2128115 is adopted in the calculation processing of the code and decoding of the QM coder. This will be described with reference to FIG. 18. Here, numerical values are expressed in decimal. In FIG. 5A, while the effective interval is 0.6, 0.2 is selected as the LPZ, accounting for 1/3 of the whole. Since this is less than 1/2, LPS and the remaining section are allocated to MPS. However, as shown in FIG. 6B, when the LSZ occupies 2/3 and exceeds 1/2, the symbol correspondence between the appearance probability ratio and the actual occupancy rate is reversed. Corrections are made by exchanging sections to suppress a decrease in encoding performance. This is called “conditional MPS / LPS exchange”.
符号化および復号の演算処理の動作を説明するために必要となるQMコーダー(QM−Coder)の符号器1Aおよび復号器1Bのブロック構成図を、それぞれ、図19及び図20に示す。本従来例では、画像メモリ5Aおよび5Bを符号器1A、復号器1Bの内部に配置されるものとして説明する。
FIG. 19 and FIG. 20 respectively show block configuration diagrams of an
これらの図19及び図20において、2はコンテクスト(Context)、3は符号化の対象となる画素(Pixel)、4は符号、5A,5Bは画像メモリ、7は予測値テーブルMPS、8はステートテーブルST、9はLPS区間幅テーブルLSZ、10はMPS状態遷移先テーブルNMPS、11はLPS状態遷移先テーブルNLPS、12は予測値反転判定テーブルSWTCH、13A,13Bは算術符号器、14はシンボル、15A,15Bは画素シンボル変換器である。
19 and 20, 2 is a context, 3 is a pixel to be encoded (Pixel), 4 is a code, 5A and 5B are image memories, 7 is a prediction value table MPS, and 8 is a state. Table ST, 9 is an LPS section width table LSZ, 10 is an MPS state transition destination table NMPS, 11 is an LPS state transition destination table NLPS, 12 is a predicted value inversion determination table SWTCH, 13A and 13B are arithmetic encoders, 14 is a symbol,
動作について説明する。QM符号器1Aにおける画像メモリ5Aは、入力される画像6を蓄積し、符号化の対象となる画素(Pixel)3に対してモデルテンプレート(Model Template)で所定の符号化済み画素を参照し、その生成されたパターンであるコンテクスト(Context)2と、同時に、符号化対象画素3を出力する。
The operation will be described. The
一方、QM復号器1Bにおける画像メモリ5Bは、すでに復号された復号画素3を蓄積し、これから復号の対象とする画素に対するコンテクスト2を生成して出力し、そのコンテクストを使用して復号された復号対象画素を得て蓄え、画像6を出力する。
On the other hand, the
QMコーダー(QM−Coder)では、符号化/復号対象画素に対する各コンテクストごとに画素値の予測一致確率を推定し、その変動に伴って学習しながら符号化/復号を進める。学習は、コンテクスト2をインデクスとする2つの変数テーブル7,8を書き換えることによって行われる。1つは、出現する確率の高い画素値MPSを予測値として記憶する各1ビットの予測値テーブルMPS7(以下、MPSテーブル7とする)である。もう1つは、予測値の予測一致確率の程度を総計113個の状態(State)に分類した状態番号(0〜112)を記憶する各7ビットのステートテーブルST8(以下、STテーブル8とする)である。
A QM coder (QM-Coder) estimates a prediction match probability of a pixel value for each context with respect to an encoding / decoding target pixel, and advances encoding / decoding while learning according to the variation. Learning is performed by rewriting the two variable tables 7 and 8 with the
変数テーブル7,8の他に、符号化/復号の際に状態番号(ステート)をインデクスとして参照する定数テーブル(確率推定テーブル)9〜12が存在する。すなわち、LPS区間幅を16ビットで表すLPS区間幅テーブルLSZ9(以下、LSZテーブル9とする)、MPS遷移先を7ビットで表すMPS状態遷移先テーブルNMPS10(以下、NMPSテーブル10とする)、LPS遷移先を7ビットで表すLPS状態遷移先テーブルNLPS11(以下、NLPSテーブル11)、及び、予測値反転判定を1ビットで表す予測値反転判定テーブルSWTCH12(以下、SWTCHテーブル12とする)である(ここで示した英字の変数・定数テーブル名は、後述の処理フローで用いる配列名とする。)。 In addition to the variable tables 7 and 8, there are constant tables (probability estimation tables) 9 to 12 that refer to state numbers (states) as indexes during encoding / decoding. That is, an LPS section width table LSZ9 (hereinafter referred to as LSZ table 9) representing the LPS section width by 16 bits, an MPS state transition destination table NMPS10 (hereinafter referred to as NMPS table 10) representing the MPS transition destination by 7 bits, LPS These are an LPS state transition destination table NLPS11 (hereinafter referred to as NLPS table 11) that represents a transition destination in 7 bits, and a predicted value inversion determination table SWTCH12 (hereinafter referred to as SWTCH table 12) that represents a predicted value inversion determination in 1 bit ( The alphabetic variable / constant table names shown here are array names used in the processing flow described later.)
LSZテーブル9は、算術符号器13A/算術復号器13B内の演算部で参照され、適応予測の学習には直接的には関係しない。算術符号器13A/算術復号器13Bの内部ではLSZ値を用いて演算が行われ、演算精度が低下した際には正規化処理(Renormalize)を行う。この正規化処理が行われるとき、同時に学習を行う。
The LSZ table 9 is referred to by the arithmetic unit in the
正規化処理を発生したときの符号化/復号シンボル14が優勢シンボルであればNMPS値を、劣勢シンボルであればNLPS値をSTテーブル8に書き込み、状態を更新する。優勢シンボルとは、符号化/復号対象画素3が予測値MPS7と等しいことを示し、劣勢シンボルとはそれらが等しくないことを示している。符号化のときは、画素シンボル変換器15Aがシンボル14を算術符号器13Aへ出力し、復号のときは、復号器13Bがシンボル14をシンボル画素変換器15Bへ出力する。
If the encoding /
また、正規化処理が劣勢シンボルによるものであるとき、その予測一致確率が1/2相当であればMPS値7を反転(演算「1−MPS」)させてMPSテーブル7に書き込む。一致確率が1/2であるかどうかは、SWTCH値12をフラグとして判定することができる。
Further, when the normalization processing is based on the inferior symbol, if the predicted matching probability is equivalent to 1/2, the
このように、2つの変数テーブルST8およびMPS7に対して、それぞれ更新処理を行い、個別に管理しなければならない。 In this way, the two variable tables ST8 and MPS7 must be individually updated and managed.
図21に定数テーブルの例を示す。実際のQMコーダー(QM−Coder)の定数テーブルは113個の状態から構成されるが、簡単なモデルで説明する。ここでは、10個の状態から構成され、状態0から状態9までLPSの出現確率を0.5から0.05刻みで小さくなるものとする。状態iでMPS処理時に正規化が発生したときNMPS値を参照し、コンテクストで記憶される状態番号を(i+1)へ更新する。i=9であればそれ以上確率の低い状態へは遷移できないため留まる。また、状態iでLPS処理されたときNLPS値を参照し、(i−1)へ更新する。i=0であればそれ以上確率の高い状態へは遷移できないため留まるが、このときSWTCH=1であるため、コンテクストで記憶される予測値MPSを反転値(1−MPS)へ更新する。ここで、LSZは確率値とするのが理想であるが、実際には有効区間幅が0.5から1.0の間に存在するため、それらに起因する誤差をできるだけ小さくするように決定され、実際の確率をテーブルに持つとは限らない。同図では、単純に状態iと状態(i+1)の確率の平均値を記載した。
FIG. 21 shows an example of a constant table. A constant table of an actual QM coder (QM-coder) is composed of 113 states, which will be described with a simple model. Here, it is composed of 10 states, and it is assumed that the appearance probability of LPS from
また、符号化および復号の演算処理で使用される符号化レジスタC30A、復号レジスタC30Bおよび区間幅レジスタA31のビット配置を図22に示す。符号化レジスタC30Aにおいて、bit15とbit16の間に小数点を設定し、小数部"x"(16ビット)はLSZ9に基づく演算部Cx32であり、キャリがある場合はより上位の整数部へ伝搬する。整数部において"b"(8ビット)はバイト出力部Cb33、"c"(1ビット)は桁上がり判定部Cc34である。桁上がりは、直前に出力された符号バイトに伝播され、必要ならばさらにそれ以前の出力バイトまで波及する。符号化の過程において、Cレジスタ値は符号4として符号化したシンボルに対応させた区間の下界値となるように更新される。
FIG. 22 shows the bit arrangement of the encoding register C30A, decoding register C30B, and interval width register A31 used in the encoding and decoding arithmetic processing. In the encoding register C30A, a decimal point is set between bit 15 and
復号レジスタC30Bにおいて、下位レジスタCLOW36と上位レジスタCHIGH37は、bit23とbit24の間に小数点を設定し、"b"(8ビット)はバイト入力部(CLOWレジスタ35)と同じCb36、"x"(17ビット)はLSZ9に基づく演算部Cx(CHIGHレジスタ37)38である。復号の過程において、Cレジスタ値は復号したシンボルに対応させた区間の下界値からその区間内の座標である符号4へのオフセット値となるように更新される。
In the decoding register C30B, the lower register CLOW36 and the upper register CHIGH37 set a decimal point between bit23 and bit24, and “b” (8 bits) is the same as the byte input unit (CLOW register 35) Cb36, “x” (17 Bit) is a calculation unit Cx (CHIGH register 37) 38 based on LSZ9. In the decoding process, the C register value is updated so as to become an offset value from the lower bound value of the section corresponding to the decoded symbol to the
Cbにおける符号バイト入出力は、レジスタ以外の補助変数であるCT50で正規化処理によるCレジスタ30A、30BおよびAレジスタ31のシフト数を計数し、値が0となったとき行われる。CT50の初期値、再設定値は8である。先行技術文献(勧告T.82)に規定される符号化レジスタは、CxとCbの間にCsがあるが、説明を簡単にするため省略しているが、Csを設けるならばその桁数を変数CTの初期値に加える必要がある。また、復号レジスタの整数部bit24は規定されてはおらず、本従来例においては不要である。CLOWレジスタ36は16ビットで規定されるがCbより下位8ビットは使用されないため省略している。これらの記載変更はいずれも符号化性能に影響するものではない。
The sign byte input / output in Cb is performed when the number of shifts of the C registers 30A, 30B and A
符号化および復号で共通に使用される区間幅レジスタA31は、符号化/復号レジスタ30A,30Bの小数点に対応して、"x"レジスタ部に合わせて"a"(16ビット)が小数部として配置され、初期状態の値でのみ整数部(bit16)が"1"となる。区間幅(区間サイズともいう)は、A−LSZ(下方区間幅)またはLSZ(上方区間幅)に更新され、初期値(整数部="1")を除いて1/2の重みを示すbit15が"1"となるように正規化され、1/2以上に保つことによって上方区間幅としていかなるLSZ9を選択しても下方区間の確保を保証している。正規化処理では、Aレジスタ31、Cレジスタ30Aまたは30Bを同時に拡大する。
The interval width register A31 used in common in encoding and decoding corresponds to the decimal point of the encoding /
QMコーダー(QM−Coder)では、状態に対して固定サイズとなる上方区間LSZ9は通常LPSに割り当てられるが、下方区間が上方区間より小さくなるときにはMPSに割り当てる「条件付きMPS/LPS交換」を行っている。LPSを符号化/復号したとき、および「条件付きMPS/LPS交換」を適用してMPSを符号化/復号したときには正規化処理が必ず行われる。 In the QM-coder, the upper section LSZ9 having a fixed size with respect to the state is normally assigned to the LPS, but when the lower section becomes smaller than the upper section, “conditional MPS / LPS exchange” is performed to assign to the MPS. ing. Normalization is always performed when the LPS is encoded / decoded and when the MPS is encoded / decoded by applying the “conditional MPS / LPS exchange”.
まず、符号化の演算処理を具体的な処理フローに沿って説明する。 First, encoding calculation processing will be described along a specific processing flow.
符号化演算処理の開始時において、Cレジスタ30A(図22)の初期値は0、Aレジスタ31の初期値は0x10000、補助変数CT50の初期値は上記Cレジスタの仕様に基づき8となる。また、すべてのコンテクスト(参照パターン)CX2(図19)に対する予測値MPS[CX]7および状態ST[CX]8の初期値は0とする。そして、符号化終了時は符号化レジスタ30Aの内容を最終符号4として掃き出す規定の処理を行う。
At the start of the encoding operation, the initial value of the C register 30A (FIG. 22) is 0, the initial value of the
図23は、符号化対象画素値3と予測値7の一致・不一致から呼び出す処理を切り替える符号化処理(ENCODE)フローである。ステップS111では画素値PIX3と予測値MPS[CX]7の一致・不一致を判定し、一致ならばMPS、不一致ならばLPSを符号化する。ステップS112ではCODELPS(LPS符号化)を呼び出してLPSを、ステップS113ではCODEMPS(MPS符号化)を呼び出してMPSを符号化する。
FIG. 23 is an encoding process (ENCODE) flow for switching a process to be called when the encoding
図24は、符号化対象画素値3と予測値7が不一致のとき、すなわちLPSを符号化する際に呼び出されるCODELPS処理フローである。まず、ステップS120でLSZをLSZ[ST[CX]]とする。ステップS121ではAレジスタ31値を一時的に下方区間幅に更新する。ステップS122の判定でLSZ値(上方区間幅)がA値(下方区間幅)より大きければ(Yes)、条件付きMPS/LPS交換が適用され、Aレジスタ31値、Cレジスタ30A値ともそのままで有効区間をより小さい下方区間に更新する。LSZ(上方区間幅)がA(下方区間幅)以下ならば(No)、ステップS123でCレジスタ30Aに下方区間幅(現Aレジスタ31)を加えた後、ステップS124でAレジスタ31をLSZとして有効区間をより小さい上方区間に更新する。ステップS125の判定で定数SWTCH値12が1ならば、ステップS126で予測値7(MPSテーブル)の反転・更新を行う。LPS符号化では、ステップS127でNLPSテーブル11参照による状態遷移を行い、ステップS128でRENORMEを呼び出して正規化処理を行う。
FIG. 24 is a CODELPS processing flow called when the encoding
図25は、符号化対象画素値3と予測値7が一致のとき、すなわちMPSを符号化する際に呼び出されるCODEMPS処理フローである。まず、ステップS130でLSZをLSZ[ST[CX]]とする。ステップS131ではAレジスタ31値を一時的に下方区間幅に更新する。ステップS132の判定でAレジスタ31値が0x8000以上ならば(No)、本処理フローを終了する。Aレジスタ31値が0x8000未満ならば(Yes)、ステップS133の判定でLSZ値(上方区間幅)がA値(下方区間幅)より小さければ(Yes)、条件付きMPS/LPS交換が適用され、ステップS134でCレジスタ30Aに下方区間幅(現Aレジスタ31)を加えた後、ステップS135でAレジスタ31をLSZとして有効区間をより大きい上方区間に更新する。一方、ステップS133の判定で、LSZ(上方区間幅)がA(下方区間幅)以上ならば(No)、Aレジスタ31値、Cレジスタ30A値ともそのままで有効区間をより大きい下方区間に更新する。MPS符号化では、ステップS136でNMPSテーブル10参照による状態遷移を行い、ステップS137でRENORMEを呼び出して正規化処理を行う。
FIG. 25 is a CODEMPS processing flow that is called when the encoding
図26は、正規化処理を行うRENORME処理フローである。ステップS141ではAレジスタ31、ステップS142ではCレジスタ30Aを1ビット上位へシフトすることによって2倍の乗算と等価な演算を行う。ステップS143で変数CT50から1を減じ、ステップS144で変数CT50が0か否か判定し、判定がYesならば、ステップS145でCレジスタ30A(Cb)から1バイト符号4を出力し、変数CT50に8を再設定する。ステップS146の判定は、正規化処理の終了判定を行っており、Aレジスタ31が0x8000未満ならばステップS141からステップS145を繰り返し、0x8000以上となれば区間が1/2以上となり終了する。
FIG. 26 is a RENORME processing flow for performing normalization processing. In step S141, an operation equivalent to double multiplication is performed by shifting the
ステップS145において、Cbレジスタ33から符号4を1バイト出力するとき、Ccレジスタ34によりキャリを判定し、既に出力済みの符号バイトへの伝播を行うことになる。そして、キャリ伝播、符号バイト出力の後、Cbレジスタ33およびCcレジスタ34をクリアする。
In step S145, when 1 byte of
次に、復号の演算処理を具体的な処理フローに沿って説明する。 Next, decoding calculation processing will be described along a specific processing flow.
復号演算処理の開始時において、Cレジスタ30Bは小数部bit0からbit23に符号を3バイト入力して初期値とし、Aレジスタ31の初期値は0x10000である。また、補助変数CT50の初期値は8とし、すべてのコンテクスト(参照パターン)CX2に対する予測値MPS[CX]7および状態ST[CX]8の初期値は0とする。
At the start of the decoding calculation process, the
図27は、復号対象画素を復号するDECODE処理(復号処理)フローである。まず、ステップS220でLSZをLSZ[ST[CX]]とする。ステップS221ではAレジスタ31値を一時的に下方区間幅に更新する。ステップS222の判定で符号CHIGHレジスタ37値がAレジスタ31値未満ならば(Yes)、下方区間を復号する。次に、ステップS223の判定でAレジスタ31値が0x8000未満ならば(Yes)、ステップS224でMPS_EXCHANGEを呼び出し、ステップS225でRENORMDを呼び出して正規化処理を行う。一方、ステップS223の判定で、Aレジスタ31値が0x8000以上ならば(No)、正規化処理することなくMPSを復号し、ステップS226で画素値3を予測値7とすることで、Aレジスタ31値、Cレジスタ30B値ともそのままで有効区間をより大きい下方区間に更新する。また、ステップS222の判定で符号CHIGHレジスタ37値がAレジスタ31値以上ならば(No)、上方区間を復号する。ステップS227でLPS_EXCHANGEを呼び出し、ステップS228でRENORMDを呼び出して正規化処理を行う。MPS_EXCHANGE,LPS_EXCHANGEを呼び出す処理経路では、それぞれ復号すべき区間は決まっていても区間の大小を比較しないと復号対象がMPSかLPSか判断できない。呼び出した処理フローでそれぞれ復号される画素値3を決定する。
FIG. 27 is a DECODE process (decoding process) flow for decoding a decoding target pixel. First, in step S220, LSZ is set to LSZ [ST [CX]]. In step S221, the
図28は、上方区間を復号するLPS_EXCHANGE処理フローである。ステップS231の判定でLSZ値(上方区間幅)がA値(下方区間幅)より小さければ(Yes)、条件付きMPS/LPS交換が適用され、ステップS232でCHIGHレジスタ37に下方区間幅(現Aレジスタ31)を減じた後、ステップS233でAレジスタ31をLSZとする。このとき上方区間は下方区間より大きいためMPSを復号し、ステップS234で画素値3を予測値7とし、ステップS235でNMPSテーブル10参照による状態遷移を行う。LSZ(上方区間幅)がA(下方区間幅)以上ならば(No)、ステップS236でCHIGHレジスタ37に下方区間幅(現Aレジスタ31)を減じた後、ステップS237でAレジスタ31をLSZとする。このとき上方区間は下方区間より小さいためLPSを復号し、ステップS238で画素値3を非予測値(1−予測値7)とする。ステップS239の判定で定数SWTCH値12が1ならば、ステップS240で予測値7(MPSテーブル)の反転・更新を行う。ステップS241でNLPSテーブル11参照による状態遷移を行う。
FIG. 28 is an LPS_EXCHANGE processing flow for decoding the upper section. If it is determined in step S231 that the LSZ value (upper section width) is smaller than the A value (lower section width) (Yes), conditional MPS / LPS exchange is applied, and in step S232, the lower section width (current A) is applied. After subtracting the register 31), the
図29は、下方区間を復号するMPS_EXCHANGE処理フローである。ステップS251の判定でLSZ値(上方区間幅)がA値(下方区間幅)より小さければ(Yes)、条件付きMPS/LPS交換が適用され、LPSを復号し、ステップS252で画素値3を非予測値(1−予測値7)とすることで、Aレジスタ31値、Cレジスタ30B値ともそのままで有効区間をより小さい下方区間に更新する。次に、ステップS253の判定で定数SWTCH値12が1ならば、ステップS254で予測値7(MPSテーブル)の反転・更新を行い、ステップS255でNLPSテーブル11参照による状態遷移を行う。一方、ステップS251の判定で、LSZ(上方区間幅)がA(下方区間幅)以上ならば(No)、MPSを復号し、ステップS256で画素値3を予測値7とし、ステップS257でNMPSテーブル10参照による状態遷移を行う。
FIG. 29 is an MPS_EXCHANGE processing flow for decoding the lower section. If it is determined in step S251 that the LSZ value (upper section width) is smaller than the A value (lower section width) (Yes), conditional MPS / LPS exchange is applied, LPS is decoded, and
図30は、正規化処理を行うRENORMD処理フローである。ステップS261で変数CT50が0か否か判定し、判定がYesならばステップS262でCレジスタ30B(Cb)へ1バイト符号4を入力し、変数CT50に8を再設定する。ステップS263ではAレジスタ31、ステップS264ではCレジスタ30Bを1ビット上位へシフトすることによって2倍の乗算と等価な演算を行う。ステップS265で変数CT50から1を減じる。ステップS266の判定は、正規化処理の終了判定を行っており、Aレジスタ31が0x8000未満ならばステップS261からステップS265を繰り返す。ステップS267で変数CT50が0か否か判定し、判定がYesならばステップS268でCレジスタ30B(Cb)に1バイト符号4を入力し、変数CT50に8を再設定する。
FIG. 30 is a RENORMD processing flow for performing normalization processing. In step S261, it is determined whether or not the variable CT50 is 0. If the determination is Yes, a 1-
なお、上記符号化および復号の演算処理フローにおいて、従来例として引用した上述の先行技術文献(勧告T.82)では、上記ステップS120、S130、S220は記載されておらず、LSZテーブル9の参照形式で各演算式に直接記載されているが、ここでは、後述の本発明の説明上、処理フローの中でインデクスST[CX]を表記しない(テーブル参照形式でない)変数LSZとして参照できることを明示的に表した。 In the above-described encoding and decoding calculation processing flow, the above-described prior art document (Recommendation T.82) cited as a conventional example does not describe steps S120, S130, and S220, and refers to the LSZ table 9. Although it is directly described in each arithmetic expression in the form, here, for the explanation of the present invention to be described later, it is explicitly shown that the index ST [CX] can be referred to as a variable LSZ that does not represent the index ST [CX] in the processing flow. Expressed.
従来の符号化装置および復号装置ならびに符号化方法および復号方法では、算術符号化および復号の過程で有効区間を分割するとき、有効区間幅に関わらず固定近似値を部分区間に割当てるので、その占有率とシンボルの推定出現確率の誤差が大きくなって符号化効率が低下するという問題点があった。 In the conventional encoding device and decoding device, and the encoding method and decoding method, when an effective interval is divided in the process of arithmetic encoding and decoding, a fixed approximate value is assigned to a partial interval regardless of the effective interval width. There is a problem in that the encoding efficiency is reduced due to an error in the rate and the estimated appearance probability of the symbol.
この発明は、かかる問題点を解決するためになされたものであり、特定の確率値のシンボルでは、有効区間を当該特定の確率値に応じた第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させて、情報源シンボルの値と同一の情報源シンボルの値に対応する部分区間を新たな上記有効区間とすることによって符号化効率を向上させることが可能な符号化装置及び復号化装置、ならびに、符号化方法及び復号化方法を得ることを目的とする。 The present invention has been made to solve such a problem. In a symbol having a specific probability value, the effective interval is divided into a first partial interval and a second partial interval corresponding to the specific probability value. Then, each partial section is made to correspond to a predetermined information source symbol value, and a partial section corresponding to the same information source symbol value as the information source symbol value is set as the new effective section, thereby improving the coding efficiency. It is an object to obtain an encoding device and a decoding device, and an encoding method and a decoding method capable of improving the above.
この発明は、情報源シンボルの出現確率を推定する確率推定手段と、特定の情報源シンボル出現確率を記憶する記憶手段と、上記確率推定手段が推定した推定出現確率と上記記憶手段に記憶されている特定の情報源シンボル出現確率との一致を判定する判定手段と、この判定手段において上記推定出現確率が上記特定の情報源シンボル出現確率と一致しないと判定したとき、数直線上の有効区間を第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる第1の区間分割手段と、上記判定手段において上記推定出現確率が上記特定の情報源シンボル出現確率と一致したと判定したとき、上記有効区間を上記特定の情報源シンボル出現確率に応じた第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる第2の区間分割手段と、上記第1または第2の区間分割手段が上記所定の情報源シンボルの値に対応させた上記第1の部分区間と上記第2の部分区間のうち、上記情報源シンボルの値と同一の情報源シンボルの値に対応する部分区間を新たな上記有効区間とし、この有効区間の内部座標を符号として出力する符号化手段とを備える符号化装置である。 According to the present invention, probability estimation means for estimating an appearance probability of an information source symbol, storage means for storing a specific information source symbol appearance probability, an estimated appearance probability estimated by the probability estimation means, and the storage means are stored. Determining means for determining a match with a specific information source symbol appearance probability, and when the determination means determines that the estimated appearance probability does not match the specific information source symbol appearance probability, A first section dividing unit that divides the first partial section and the second partial section and associates each partial section with a value of a predetermined information source symbol; When it is determined that the information source symbol appearance probability matches, the effective section is divided into a first partial section and a second partial section corresponding to the specific information source symbol appearance probability. And a second section dividing means for making each partial section correspond to a value of a predetermined information source symbol, and the first section dividing means for making the first or second section dividing means correspond to the value of the predetermined information source symbol. Of the one partial section and the second partial section, a partial section corresponding to the same information source symbol value as the information source symbol value is set as the new effective section, and the internal coordinates of the effective section are used as codes. An encoding device includes an encoding means for outputting.
この発明は、情報源シンボルの出現確率を推定する確率推定手段と、特定の情報源シンボル出現確率を記憶する記憶手段と、上記確率推定手段が推定した推定出現確率と上記記憶手段に記憶されている特定の情報源シンボル出現確率との一致を判定する判定手段と、この判定手段において上記推定出現確率が上記特定の情報源シンボル出現確率と一致しないと判定したとき、数直線上の有効区間を第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる第1の区間分割手段と、上記判定手段において上記推定出現確率が上記特定の情報源シンボル出現確率と一致したと判定したとき、上記有効区間を上記特定の情報源シンボル出現確率に応じた第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる第2の区間分割手段と、上記第1または第2の区間分割手段が上記所定の情報源シンボルの値に対応させた上記第1の部分区間と上記第2の部分区間のうち、上記情報源シンボルの値と同一の情報源シンボルの値に対応する部分区間を新たな上記有効区間とし、この有効区間の内部座標を符号として出力する符号化手段とを備える符号化装置であるので、特定の確率値のシンボルでは、有効区間を当該特定の確率値に応じた第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させて、情報源シンボルの値と同一の情報源シンボルの値に対応する部分区間を新たな上記有効区間とすることによって符号化効率を向上させることができる。 According to the present invention, probability estimation means for estimating an appearance probability of an information source symbol, storage means for storing a specific information source symbol appearance probability, an estimated appearance probability estimated by the probability estimation means, and the storage means are stored. Determining means for determining a match with a specific information source symbol appearance probability, and when the determination means determines that the estimated appearance probability does not match the specific information source symbol appearance probability, A first section dividing unit that divides the first partial section and the second partial section and associates each partial section with a value of a predetermined information source symbol; When it is determined that the information source symbol appearance probability matches, the effective section is divided into a first partial section and a second partial section corresponding to the specific information source symbol appearance probability. And a second section dividing means for making each partial section correspond to a value of a predetermined information source symbol, and the first section dividing means for making the first or second section dividing means correspond to the value of the predetermined information source symbol. Of the one partial section and the second partial section, a partial section corresponding to the same information source symbol value as the information source symbol value is set as the new effective section, and the internal coordinates of the effective section are used as codes. Since the encoding device includes the encoding means for outputting, in the symbol of the specific probability value, the effective interval is divided into the first partial interval and the second partial interval corresponding to the specific probability value, Is made to correspond to the value of a predetermined information source symbol, and the partial interval corresponding to the value of the information source symbol that is the same as the value of the information source symbol is made the new effective interval, thereby improving the coding efficiency. Door can be.
本実施の形態では、減算型算術符号のシンボルに対応させる部分区間の補正を従来例の簡易な構成をほぼ保ったまま圧縮性能を向上させる技術について説明する。 In the present embodiment, a technique for improving the compression performance while maintaining the simple configuration of the conventional example for correcting the partial section corresponding to the symbol of the subtraction type arithmetic code will be described.
実施の形態1.
上述の従来例のような減算型算術符号において、出現推定確率が0.5に近い状態ではLSZ区間の有効区間に対する占有率は非常に高いものとなり、その誤差の大きさが符号化性能の低下の原因となる。本実施の形態では、従来の定数テーブルのSWTCHテーブル12を予測値反転実行判定にのみ用いるのではなく、LSZテーブル9参照以外に部分区間幅を得るために兼用する。SWTCHテーブル12は、状態の推定確率値が0.5であることを示すので、このときはAレジスタ31値の大小に関わらず、LSZテーブル9から状態に対する固定値を割り当てるのではなく、Aレジスタ31値の1/2を割り当てるようにし、推定確率と有効区間に対する占有率の誤差を縮小し、符号化性能の向上を図る。
In the subtraction type arithmetic code as in the conventional example described above, when the appearance estimation probability is close to 0.5, the occupation ratio of the LSZ section with respect to the effective section becomes very high, and the magnitude of the error decreases the encoding performance. Cause. In this embodiment, the SWTCH table 12 of the conventional constant table is not used only for the prediction value inversion execution determination, but is also used for obtaining a partial section width other than the LSZ table 9 reference. Since the SWTCH table 12 indicates that the estimated probability value of the state is 0.5, at this time, a fixed value for the state is not assigned from the LSZ table 9 regardless of the magnitude of the
図1、図2は、本実施の形態における符号器および復号器の概略構成図を示している。図19、図20に示された従来の概略構成図に対して、算術符号器13A、算術復号器13Bが上記SWTCHテーブル値12を参照する構成をとっている点が異なり、他の構成については従来例と同様であるため、ここでは説明を省略する。
1 and 2 show schematic configuration diagrams of an encoder and a decoder according to the present embodiment. 19 and 20 is different from the conventional schematic configuration diagram shown in FIGS. 19 and 20 in that the
符号化および復号の演算処理について、具体的な処理フローを用いて説明する。本実施の形態において、図23のENCODE処理フロー、図26のRENORME処理フロー、図28のLPS_EXCHANGE処理フロー、図29のMPS_EXCHANGE処理フロー、図30のRENORMD処理フローは従来のまま変更せず適用するものとする。 Encoding and decoding arithmetic processing will be described using a specific processing flow. In this embodiment, the ENCODE processing flow of FIG. 23, the RENORME processing flow of FIG. 26, the LPS_EXCHANGE processing flow of FIG. 28, the MPS_EXCHANGE processing flow of FIG. 29, and the RENORMD processing flow of FIG. And
図3は、LPSを符号化するCODELPS処理(LPS符号化)フローであり、図24のステップS120をステップS120'へ変更したものである。ステップS120'では、現状態ST[CX]に対する定数SWTCH12値が0ならば(ステップS120'−1)、従来通りLSZ[ST[CX]]を与え(ステップS120'−2)、一方、0でなければAレジスタ31値の1/2を与える(ステップS120'−3)。ここでは、Aレジスタ31値をSWTCH12値(=1)桁だけ右シフトすることにより算出している。このように変数LSZを設定し、ステップS121以下の処理は図24の処理フローと同一である。
FIG. 3 is a flowchart of the CODELPS process (LPS encoding) for encoding LPS, in which step S120 in FIG. 24 is changed to step S120 ′. In step S120 ′, if the constant SWTCH12 value for the current state ST [CX] is 0 (step S120′-1), LSZ [ST [CX]] is given as usual (step S120′-2). If not, 1/2 of the value of the
図4は、MPSを符号化するCODEMPS処理(MPS符号化)フローであり、図25のステップS130をステップS130'へ変更したものである。ステップS130'は、上記図3のS120'と同一の処理であり、またS131以下の処理は図25の処理フローと同一である。 FIG. 4 is a CODEMPS process (MPS encoding) flow for encoding MPS, and is obtained by changing step S130 of FIG. 25 to step S130 ′. Step S130 ′ is the same process as S120 ′ of FIG. 3, and the processes after S131 are the same as the process flow of FIG.
図5は、復号対象画素を復号するDECODE処理(復号処理)フローであり、図27のステップS220をステップS220'へ変更したものである。ステップS220'は、上記図3のステップS120'と同一の処理であり、またステップS221以下の処理は図27の処理フローと同一である。 FIG. 5 is a DECODE process (decoding process) flow for decoding a pixel to be decoded, in which step S220 in FIG. 27 is changed to step S220 ′. Step S220 ′ is the same process as step S120 ′ of FIG. 3, and the process after step S221 is the same as the process flow of FIG.
以上のように、本実施の形態における符号器及び複合器は、学習しながら情報源シンボルの出現確率を推定し、上記推定出現確率の近似値を適用する第1の部分区間と残りの第2の部分区間との2つの部分区間に数直線上の有効区間を分割し、出現したシンボルに対応した部分区間を新たな上記有効区間とする算術符号を適用した符号化装置および復号装置であって、推定出現確率が特定値(ここでは0)であることを記憶する記憶手段(SWTCHテーブル12)と、記憶手段を参照して推定出現確率が当該特定値であることを判定する判定手段(ステップS120'−1)と、推定出現確率が当該特定値であることが判定されたときに上記第1、第2の部分区間の割当てを補正する補正手段(ステップS120'−3)とを備えて、推定出現確率として特定値をとるシンボルに対して部分区間の割当てを補正するようにしたので、符号化性能が向上するという効果が得られる。 As described above, the encoder and the complex in this embodiment estimate the appearance probability of the information source symbol while learning, and apply the approximate value of the estimated appearance probability to the first partial interval and the remaining second A coding apparatus and a decoding apparatus to which an arithmetic code is applied by dividing an effective section on a number line into two partial sections and a partial section corresponding to an appearing symbol as a new effective section. , Storage means (SWTCH table 12) for storing that the estimated appearance probability is a specific value (0 in this case), and determination means for determining that the estimated appearance probability is the specific value with reference to the storage means (step S120′-1) and correction means (step S120′-3) for correcting the assignment of the first and second partial sections when it is determined that the estimated appearance probability is the specific value. Estimated Since so as to correct the assignment of subintervals for the symbols take the specific value as a probability, effect that coding performance is improved.
なお、本実施の形態では、SWTCH12値が1のとき、Aレジスタ31値をSWTCH12値桁だけ右シフトさせてLSZを算出しているが、直接の整数値1と記述しても構わない。また、復号処理フローにおいて、ステップS267およびステップS268でCT50値が0になった時点で次の符号4をCLOWレジスタ35に1バイト読み込んでいるが、次のシフト操作で実際に符号4が必要になるまで待ってステップS261およびステップS262で読み込んでも構わない。その読込みまでCLOWレジスタ35は空のままの状態で復号の演算処理がCHIGHレジスタ37上で進められても問題ない。
In this embodiment, when the SWTCH12 value is 1, the LSZ is calculated by shifting the
また、本実施の形態は、出現推定確率がほぼ0.5である状態の符号化および復号について符号化性能を向上させる効果がある。例えば、2値画像データにおいて、特にディザ手法あるいは誤差拡散手法で表現された疑似中間調画像では学習が進んでも推定確率がほとんど偏ることなく0.5に近い状態に留まることが知られており、文字画像への適用に比較してこの効果がより期待できる。 In addition, the present embodiment has an effect of improving the encoding performance for encoding and decoding in a state where the appearance estimation probability is approximately 0.5. For example, in binary image data, it is known that a pseudo-halftone image expressed by a dither method or an error diffusion method stays close to 0.5 with almost no bias in estimation probability even if learning progresses. This effect can be expected more than application to character images.
本実施の形態では、分割されたより大きい区間にMPSを割り当てる条件付きMPS/LPS交換を行う上記先行技術文献の符号化および復号の演算処理フローについて説明したが、上記部分区間を交換しない算術符号化および算術復号においては、さらにLSZ区間の有効区間に対する占有率は推定確率と大小関係が逆転することさえあるため、本手法の適用効果がより大きく得られることはいうまでもない。この効果は、本実施の形態以降の他の実施の形態についても同様である。 In the present embodiment, the encoding and decoding calculation processing flow of the above prior art document that performs conditional MPS / LPS exchange for assigning MPS to a larger divided section has been described, but arithmetic coding without exchanging the partial sections In addition, in arithmetic decoding, since the occupation ratio of the LSZ interval to the effective interval may even reverse the relationship between the estimation probability and the magnitude, it goes without saying that the application effect of the present method can be obtained more greatly. This effect is the same in other embodiments after the present embodiment.
実施の形態2.
上述の実施の形態1では、LSZ値の決定に際してSWTCH12値の参照を行い、さらに、図3のCODELPS処理フロー、従来のまま適用する図28のLPS_EXCHANGE処理フロー、図29のMPS_EXCHANGE処理フローにおいて再度参照を行っており、またAレジスタ31値を1/2とすれば正規化処理により直ちに2倍されることになり、1ビットのシフトで終了することは明白であっても図26のRENORME処理フロー、図30のRENORMD処理フローでは正規化終了判定を形式上行う点で処理フローに冗長度が大きい。また、Aレジスタ31値が奇数であれば1/2とした時点で桁落ちによる誤差が発生して厳密な1/2とはならない。つまり、Aレジスタ31値(奇数)を1桁シフトして縮小して部分区間とし、その後その部分区間を正規化処理により1桁シフトして拡大しても元のAレジスタ31値には戻らないということである。ただし、LPS区間幅とすべきLSZがA−LSZより1小さくなる点ではシンボルの定義上では理に適っているといえる。本実施の形態では、SWTCH値により処理経路を分離することにより上記冗長度を改善し、正規化手順の変更により上記桁落ち誤差を解消する処理フローを提供する。すなわち、本実施の形態においては、記憶手段が記憶する特定値の一つを1/2とし、該当シンボルに対して上記推定出現確率の推定対象シンボル値の更新を伴う一連の演算処理操作を非該当シンボルの演算処理操作から独立させて構成する。
In the first embodiment described above, the SWTCH12 value is referred to when determining the LSZ value, and is further referred to in the CODELPS processing flow of FIG. 3, the LPS_EXCHANGE processing flow of FIG. 28 applied as before, and the MPS_EXCHANGE processing flow of FIG. If the value of the
ここで説明する処理フローにおいて、新しく加えた処理は破線枠で囲み、破線枠内の処理番号は、対応する従来の処理番号にダッシュを付けて示している。本実施例において、図23のENCODE処理フロー、図26のRENORME処理フロー、図30のRENORMD処理フローは従来のまま変更せず適用するものとする。 In the processing flow described here, a newly added process is surrounded by a broken line frame, and a process number in the broken line frame is shown by adding a dash to a corresponding conventional process number. In this embodiment, the ENCODE processing flow in FIG. 23, the RENORME processing flow in FIG. 26, and the RENORMD processing flow in FIG.
図6は、LPSを符号化する本実施の形態におけるCODELPS処理(LPS符号化)フローであり、図24からステップS125及びS126を抜き、ステップS120の前に破線で囲まれた処理を加えたものである。ステップS125'の判定ではSWTCH12値が1のとき破線枠内の処理経路へ切り替える。ステップS126'で予測値7(MPSテーブル)の反転・更新を行い、ステップS127'でNLPSテーブル11参照による状態遷移を行う。ステップS142'は正規化のシフト処理であり、この後、ステップS123'でCレジスタ30AにAレジスタ31を加える手順により桁落ちを防止している。正規化処理のステップS143'で変数CT50から1を減じ、ステップS144'で変数CT50が0か否か判定し、判定がYesならばステップS145'でCレジスタ30A(Cb)から1バイト符号4を出力し、変数CT50に8を再設定する。SWTCH12値が1でなければステップS120からステップS128までステップS125、ステップS126を除いて図24の処理フローと同一である。
FIG. 6 is a flowchart of the CODELPS process (LPS encoding) in this embodiment for encoding LPS. Steps S125 and S126 are extracted from FIG. 24, and a process surrounded by a broken line is added before step S120. It is. In the determination in step S125 ′, when the SWTCH12 value is 1, the processing path is switched to a broken line. In step S126 ′, the predicted value 7 (MPS table) is inverted and updated, and in step S127 ′, state transition is performed by referring to the NLPS table 11. Step S142 ′ is a normalization shift process. Thereafter, in step S123 ′, the digit loss is prevented by the procedure of adding the
図7は、MPSを符号化するCODEMPS処理(MPS符号化)フローであり、図25のステップS130の前に破線で囲まれた処理を加えたものである。ステップS138の判定によりSWTCH12値が1のとき破線枠内の処理経路を切り替える。ステップS136'でNMPSテーブル10参照による状態遷移を行う。ステップS142'は正規化のシフト処理である。ステップS143'で変数CT50から1を減じ、ステップS144'で変数CT50が0か否か判定し、判定がYesならばステップS145'でCレジスタ30A(Cb)から1バイト符号4を出力し、変数CT50に8を再設定する。SWTCH12値が1でなければステップS130からステップS137まで図25の処理フローと同一である。
FIG. 7 is a CODEMPPS process (MPS encoding) flow for encoding MPS, which is obtained by adding a process surrounded by a broken line before step S130 in FIG. When the SWTCH12 value is 1 according to the determination in step S138, the processing path within the broken line frame is switched. In step S136 ′, state transition is performed by referring to the NMPS table 10. Step S142 ′ is a normalization shift process. In step S143 ′, 1 is subtracted from the variable CT50. In step S144 ′, it is determined whether the variable CT50 is 0. If the determination is Yes, 1
図8は、復号対象画素を復号するDECODE処理フローであり、図27のステップS220の前に破線で囲まれた処理を加えたものである。ステップS239'(ステップS253'にも相当)の判定によりSWTCH12値が1のとき破線枠内の処理経路を切り替え、A点から後述の図9の処理フローを実行し、B点へ戻る。SWTCH12値が1でなければステップS220からステップS228まで図27の処理フローと同一である。 FIG. 8 is a DECODE process flow for decoding a pixel to be decoded, which is obtained by adding a process surrounded by a broken line before step S220 in FIG. When the SWTCH12 value is 1 as a result of the determination in step S239 ′ (also corresponding to step S253 ′), the processing path in the broken line frame is switched, the processing flow of FIG. 9 described later is executed from point A, and the processing returns to point B. If the SWTCH12 value is not 1, the process flow from step S220 to step S228 is the same as that in FIG.
図9は、図8に示しきれなかった部分、すなわち、図8の(A)から(B)までのDECODE処理フローである。ステップS264'は正規化のシフト処理であり、ステップS265'で変数CT50から1を減じる。ステップS222'の判定で符号CHIGHレジスタ37値がAレジスタ31値未満ならば(Yes)、下方区間を復号する。本処理フロー部では、下方区間幅と上方区間幅は等しいため、下方区間はMPSに対応する。よって、ステップS256'で画素値3を予測値7とし、ステップS257'でNMPSテーブル10参照による状態遷移を行う。ステップS222'の判定で符号CHIGHレジスタ37値がAレジスタ31値以上ならば(No)、LPSに対応する上方区間を復号する。ステップS236'でCHIGHレジスタ37に下方区間幅を減じ、ステップS238'で画素値3を非予測値(1−予測値7)とする。本処理フロー部ではSWTCH12値は必ず1であるため、図28の判定ステップS239は不要となり、ステップS240'で予測値7(MPSテーブル)の反転・更新を行う。ステップS241'でNLPSテーブル11参照による状態遷移を行う。状態遷移後、ステップS267'で変数CT50が0か否か判定し、判定がYesならばステップS268'でCレジスタ30B(Cb)に1バイト符号4を入力し、変数CT50に8を再設定する。
FIG. 9 shows a DECODE process flow from the part not shown in FIG. 8, that is, from (A) to (B) of FIG. Step S264 ′ is a normalization shift process. In step S265 ′, 1 is subtracted from the variable CT50. If the
図10は、上方区間を復号するLPS_EXCHANGE処理(上方区間の復号)フローである。図8の判定ステップS239'によって、本処理フローはSWTCH12値が1のシンボルの処理経路ではないため、ステップS239およびS240は不要となるため削除し、それ以外の処理は図28の処理フローと同一である。 FIG. 10 is an LPS_EXCHANGE process (upper section decoding) flow for decoding the upper section. By the determination step S239 ′ of FIG. 8, this processing flow is not a processing path for a symbol having the SWTCH12 value of 1, so steps S239 and S240 are unnecessary and are deleted, and other processing is the same as the processing flow of FIG. It is.
図11は、下方区間を復号するMPS_EXCHANGE処理(下方区間の復号)フローである。図8の判定ステップS239'によって、本処理フローはSWTCH12値が1のシンボルの処理経路ではないため、ステップS253およびS254は不要となるため削除し、それ以外の処理は図29の処理フローと同一である。 FIG. 11 is an MPS_EXCHANGE process (lower section decoding) flow for decoding the lower section. Since this processing flow is not a processing path for a symbol having a SWTCH12 value of 1 due to determination step S239 ′ in FIG. 8, steps S253 and S254 are unnecessary and are deleted, and other processing is the same as the processing flow in FIG. It is.
本実施の形態は、有効区間の演算後、正規化処理による拡大を行う従来例に対して、演算と正規化処理を処理フロー上分けずに拡大後に演算する手順として記述したため、SWTCH12値が1のとき、Aレジスタ31のMPSおよびLPSの部分区間を等分割する際の表現精度上の制約による桁落ち誤差を防止できる。ただし、先に正規化のシフト処理を実行してCHIGHレジスタ37を演算するため、図24のCレジスタ30Bに整数部1桁(bit24)が必要となる。
Since the present embodiment is described as a procedure for performing calculation after expansion without dividing the processing flow and normalization processing with respect to the conventional example in which normalization processing is expanded after calculation of the effective interval, the SWTCH12 value is 1 In this case, it is possible to prevent a precision error caused by restrictions on the expression accuracy when equally dividing the MPS and LPS partial sections of the
また、符号化および復号の際にAレジスタ30A、30Bの初期値は従来同様に0x10000とするが、従来では第2シンボル以降Aレジスタ値が該初期値となることはありえないが、本実施例では第1シンボルから以降のシンボルの処理時もSWTCH12値が1となる限り該初期値のままとり続けることになるが、符号化および復号で再現性のある処理であるため復号可能性を保証できる。ただし、符号化および復号の際にAレジスタ30A、30Bの初期値を併せて変更すれば、第1シンボルも含めて0x10000となることはなくなる。このとき、変更値を0xFFFFとすることにより初期値変更による符号化性能の低下(符号長ロス)を最も小さく抑えることができる。第1シンボルで分割される2つの部分領域とも0x7FFF.8(16進小数1桁)となっていずれも0x8000未満となるため正規化が必要となるが、上記処理フローに従えば正規化処理に相当する拡大を先に行うため有効区間の値は0xFFFFのままで処理されることになる。 In addition, the initial value of the A registers 30A and 30B is set to 0x10000 in the same way as in the past in encoding and decoding, but in the past, the A register value cannot be the initial value after the second symbol. Even when the symbols from the first symbol are processed, the initial value is kept as long as the SWTCH12 value is 1. However, since the process is reproducible in encoding and decoding, the possibility of decoding can be guaranteed. However, if the initial values of the A registers 30A and 30B are changed together at the time of encoding and decoding, it will not be 0x10000 including the first symbol. At this time, by setting the change value to 0xFFFF, it is possible to minimize the decrease in coding performance (code length loss) due to the change of the initial value. The two partial areas divided by the first symbol are both 0x7FFF.8 (1 hexadecimal digit) and both are less than 0x8000, so normalization is required. Since the corresponding enlargement is performed first, the value of the valid section is processed with 0xFFFF.
以上のように、本実施の形態においては、上述の実施の形態1と同様の効果が得られるとともに、さらに、テーブルで記憶する特定値の一つを1/2とし、該当シンボルに対して上記出現確率の推定対象シンボル値の更新を伴う一連の演算処理操作を非該当シンボルの演算処理操作から独立させて構成するようにしたので、冗長性のない演算処理が可能となる。 As described above, in the present embodiment, the same effect as in the first embodiment described above can be obtained, and further, one of the specific values stored in the table is halved, and the above is applied to the corresponding symbol. Since a series of calculation processing operations involving updating of the appearance probability estimation target symbol value is made independent from the calculation processing operations of non-corresponding symbols, calculation processing without redundancy becomes possible.
また、本実施の形態においては、該当シンボルに適用される符号化において、上記補正器は上記第1および第2の部分区間を上記有効区間と等値とみなして補正し、上記有効区間は変更せず、符号のみ1桁のシフト処理あるいは2倍の乗算で拡大した後、符号値を演算する手順によって有効区間の表現精度を最大に保つ正規化処理と、上記正規化手段による符号更新後、出力可能な符号を出力する符号出力処理とを行うので、符号演算を正規化に相当する拡大処理後に行うことにより、有効区間の表現精度を最大に保つことができる。 In the present embodiment, in the encoding applied to the corresponding symbol, the corrector corrects the first and second partial sections as equivalent to the effective section, and changes the effective section. Without normalization, after the code only is expanded by a one-digit shift process or double multiplication, a normalization process that maximizes the representation accuracy of the valid section by the procedure for calculating the code value, and after the code update by the normalization means, Since the code output process for outputting a code that can be output is performed, the expression accuracy of the effective section can be maintained at the maximum by performing the code calculation after the enlargement process corresponding to normalization.
なお、本実施の形態においては、該当シンボルに適用される復号において、上記補正器は上記第1および第2の部分区間を上記有効区間と等値とみなして補正し、上記有効区間は変更せず、符号のみ1桁のシフト処理あるいは2倍の乗算で拡大した後、符号値を演算する手順によって有効区間の表現精度を最大に保つ正規化処理と、正規化手段による符号拡大後または拡大前に、以後新たに演算部に取り込まれる符号の入力が必要であれば予め準備して入力する符号入力手段を備えて、符号演算を正規化に相当する拡大処理後に行うことにより、有効区間の表現精度を最大に保つことができる。 In the present embodiment, in the decoding applied to the corresponding symbol, the corrector corrects the first and second partial intervals as equivalent to the effective interval, and changes the effective interval. First, after normalizing only the code by 1-digit shift processing or double multiplication, the normalization processing that maximizes the representation accuracy of the valid section by the procedure for calculating the code value, and after the code expansion by the normalizing means or before the expansion In addition, if it is necessary to input a code to be newly taken into the calculation unit thereafter, a code input means for preparing and inputting the code in advance is provided, and the code calculation is performed after the enlargement process corresponding to normalization, thereby expressing the effective section. The accuracy can be kept to the maximum.
実施の形態3.
本実施の形態では、SWTCHテーブル12の用途を拡張し、状態の確率が1/2のべき乗であることを示すフラグとして、その指数nを設定するものとする。一例を図12に示す。ここでは、確率1/2以外に1/4の状態のSWTCH値に2を設定している。このように設定したテーブルを実施例1に示した符号化および復号の処理フローに適用することにより、ステップS120'、S130'、S220'においてSWTCH12値が1のときLSZはAレジスタ31値をn桁だけ右シフトした値が設定され、より誤差の少ない部分区間の割当てが可能となり、符号化性能が向上する。
In the present embodiment, the use of the SWTCH table 12 is expanded, and the index n is set as a flag indicating that the probability of the state is a power of 1/2. An example is shown in FIG. Here, in addition to the
上記指数nは任意であり、定数テーブルを再設定して状態数を増減し、それに伴って対応する確率に1/2のべき乗の状態数が増減しても、同じ確率の状態が複数存在しても構わない。また、確率が1/2のべき乗の状態の一部に確率推定誤差を許容する場合には上記SWITCH12値の設定を行わなくても構わない。 The index n is arbitrary. Even if the number of states is increased or decreased by resetting the constant table, and the number of states that are a power of 1/2 is increased or decreased, there are a plurality of states having the same probability. It doesn't matter. Further, when the probability estimation error is allowed in a part of the power state with a probability of 1/2, the SWITCH12 value need not be set.
以上のように、本実施の形態においては、テーブルが記憶する特定値は1/2のべき乗で表現できる確率値であるようにしたので、出現確率が1/2のべき乗となるシンボルを他のシンボルと区別できるため、近似値を適用せずに、より誤差を少なく補正することができる。 As described above, in the present embodiment, since the specific value stored in the table is a probability value that can be expressed by a power of 1/2, symbols whose appearance probability is a power of 1/2 are changed to other symbols. Since it can be distinguished from the symbol, the error can be corrected with less error without applying the approximate value.
なお、上記特定値を1/2のべき乗で表現した場合の2進小数指数部の正の整数値で記憶するようにしてもよく、これにより、記憶容量の節約が可能になるとともに、有効区間を上記正整数桁だけシフト処理で縮小した値を上記第1の部分区間の補正値にするため、補正値をシフト処理で容易に算出することが可能となる。 The specific value may be stored as a positive integer value of a binary decimal exponent when the power is expressed by a power of 1/2, which enables saving of storage capacity and an effective interval. Since the value reduced by the above-mentioned positive integer digits by the shift process is used as the correction value of the first partial section, the correction value can be easily calculated by the shift process.
また、区間幅の更新の際に有効区間を正の整数値の桁だけシフト処理で縮小した値を上記第1の部分区間の補正値にするようにしてもよく、この場合には、補正値を有効区間幅からシフト処理で容易に算出することが可能になり、処理の簡易化及び高速化を図ることができる。 In addition, when updating the section width, a value obtained by reducing the effective section by a shift process of a positive integer value may be used as the correction value of the first partial section. In this case, the correction value Can be easily calculated from the effective section width by the shift process, and the process can be simplified and speeded up.
実施の形態4.
本実施の形態は、上記実施の形態2に対して、実施の形態3と同様に1/2のべき乗の確率に対してその指数部nを設定したSWTCHテーブル12を適用する場合について説明する。本実施の形態において、図23のENCODE処理フロー、図26のRENORME処理フロー、図9のDECODE処理フロー、図10のLPS_EXCHANGE処理フロー、図11のMPS_EXCHANGE処理フロー、図30のRENORMD処理フローは変更を加えず適用するものとする。
In the present embodiment, a case will be described in which the SWTCH table 12 in which the exponent n is set for the probability of a power of 1/2 is applied to the second embodiment, as in the third embodiment. In this embodiment, the ENCODE processing flow in FIG. 23, the RENORME processing flow in FIG. 26, the DECODE processing flow in FIG. 9, the LPS_EXCHANGE processing flow in FIG. 10, the MPS_EXCHANGE processing flow in FIG. 11, and the RENORMD processing flow in FIG. Applicable without addition.
図13は、LPSを符号化するCODELPS処理フローであり、図6のステップS120を図3のステップS120'に変更したものである。 FIG. 13 is a CODELPS processing flow for encoding LPS, in which step S120 in FIG. 6 is changed to step S120 ′ in FIG.
図14は、MPSを符号化するCODEMPS処理フローであり、図7のステップS130を図4のステップS130'に変更したものである。 FIG. 14 is a CODEMPS processing flow for encoding MPS, which is obtained by changing step S130 of FIG. 7 to step S130 ′ of FIG.
図15は、復号対象画素を復号するDECODE処理フローであり、図8のステップS220を図5のステップS220'に変更したものである。 FIG. 15 is a DECODE process flow for decoding a pixel to be decoded, in which step S220 in FIG. 8 is changed to step S220 ′ in FIG.
以上のように、この発明は、学習しながら情報源シンボルの出現確率を推定し、上記推定出現確率の近似値を適用する第1の部分区間と残りの第2の部分区間に数直線上の有効区間を分割し、出現したシンボルに対応した部分区間を新たな有効区間とする算術符号を適用した符号化装置であって、推定出現確率が特定値であることを記憶する記憶手段と、記憶手段の特定値を参照して推定出現確率が特定値であることを判定する判定手段と、推定出現確率が上記特定値であることが判定されたときに、第1及び第2の部分区間の割当てを補正する補正手段とを備えた符号化装置であるため、推定出現確率として特定値をとるシンボルに対して部分区間の割当てを補正するので符号化性能が向上するという効果がある。 As described above, the present invention estimates the appearance probability of the information source symbol while learning, and applies the approximate value of the estimated appearance probability to the first partial section and the remaining second partial section on the number line. An encoding device that applies an arithmetic code that divides an effective interval and sets a partial interval corresponding to the appearing symbol as a new effective interval, and stores a storage means for storing the estimated appearance probability as a specific value; Determining means for determining that the estimated appearance probability is a specific value with reference to a specific value of the means, and when it is determined that the estimated appearance probability is the specific value, the first and second partial sections Since the encoding apparatus includes a correcting unit that corrects the allocation, the allocation of the partial section is corrected for a symbol having a specific value as the estimated appearance probability, so that the encoding performance is improved.
また、記憶手段が記憶する特定値の一つを1/2とし、該当シンボルに対して推定出現確率の推定対象シンボル値の更新を伴う一連の演算処理操作を非該当シンボルの演算処理操作から独立させて構成するため、出現確率の推定対象シンボル値の更新を伴う確率1/2をとるシンボルの符号化および復号の演算処理を通常の演算処理から独立させるので、冗長性のない演算処理が可能となる。
Further, one of the specific values stored in the storage means is halved, and a series of arithmetic processing operations involving updating the estimation target symbol value of the estimated appearance probability for the corresponding symbol is independent of the arithmetic processing operation for the non-corresponding symbol. Therefore, symbol encoding / decoding calculation processing with
また、該当シンボルに適用される符号化において、補正手段は上記第1および第2の部分区間を上記有効区間と等値とみなして補正し、有効区間は変更せず、符号のみ1桁のシフト処理あるいは2倍の乗算で拡大した後、符号値を演算する手順によって有効区間の表現精度を最大に保つ正規化手段と、正規化手段による符号更新後、出力可能な符号を出力する符号出力手段とを備えているので、符号演算を正規化に相当する拡大処理後に行うため、有効区間の表現精度を最大に保つことが可能となる。 In the encoding applied to the corresponding symbol, the correction means corrects the first and second partial sections as equivalent to the effective section, and does not change the effective section and shifts only the code by one digit. A normalizing means for maximizing the representation accuracy of the effective section by a procedure for calculating a code value after being expanded by processing or multiplication, and a code output means for outputting a code that can be output after the code is updated by the normalizing means Since the sign operation is performed after the enlargement process corresponding to normalization, the representation accuracy of the effective section can be kept at the maximum.
また、記憶手段が記憶する上記特定値は1/2のべき乗で表現できる確率値であるので、出現確率が1/2のべき乗となるシンボルを他のシンボルと区別できるため、近似値を適用せずにより誤差を少なく補正することが可能となる。 In addition, since the specific value stored in the storage means is a probability value that can be expressed by a power of 1/2, a symbol whose appearance probability is a power of 1/2 can be distinguished from other symbols. Therefore, the error can be corrected with less error.
また、記憶手段は上記特定値を上記1/2のべき乗で表現した場合の2進小数指数部の正の整数値で記憶し、判定手段は上記正整数値に基づいて判定を行うので、出現確率が1/2のべき乗となるシンボルを2進小数指数部の正の整数値で記憶するため、記憶容量を節約することが可能となる。 In addition, the storage means stores the specific value as a positive integer value of the binary decimal exponent when the specific value is expressed by a power of 1/2, and the determination means makes a determination based on the positive integer value. Since a symbol whose probability is a power of 1/2 is stored as a positive integer value of a binary decimal exponent, it is possible to save storage capacity.
また、記憶手段が記憶した正整数値に対して、補正手段は上記有効区間を正整数桁だけシフト処理で縮小した値を第1の部分区間の補正値にするので、出現確率が1/2のべき乗となるシンボルを2進小数指数部の正の整数値で記憶するため、補正値を有効区間幅からシフト処理で容易に算出することが可能となる。 In addition, since the correction means reduces the effective interval by the shift process by a positive integer digit to the correction value of the first partial interval with respect to the positive integer value stored by the storage means, the appearance probability is 1/2. Since a symbol that is a power of is stored as a positive integer value of a binary decimal exponent, a correction value can be easily calculated from the effective interval width by a shift process.
また、この発明は、学習しながら情報源シンボルの出現確率を推定し、推定出現確率の近似値を適用する第1の部分区間と残りの第2の部分区間に数直線上の有効区間を分割し、出現したシンボルに対応した部分区間を新たな有効区間とする算術符号を適用した復号装置であって、推定出現確率が特定値であることを記憶する記憶手段と、記憶手段の特定値を参照して推定出現確率が特定値であることを判定する判定手段と、推定出現確率が特定値であることが判定されたときに、第1及び第2の部分区間の割当てを補正する補正手段とを備えた復号装置であるため、推定出現確率として特定値をとるシンボルに対して部分区間の割当てを補正するので符号化性能が向上するという効果がある。 In addition, the present invention estimates the appearance probability of the information source symbol while learning, and divides the effective section on the number line into the first partial section to which the approximate value of the estimated appearance probability is applied and the remaining second partial section. And a decoding device to which an arithmetic code having a partial section corresponding to the appearing symbol as a new effective section is applied, the storage means storing the estimated appearance probability is a specific value, and the specific value of the storage means Reference means for determining that the estimated appearance probability is a specific value with reference to, and correction means for correcting the allocation of the first and second partial sections when it is determined that the estimated appearance probability is a specific value Therefore, there is an effect that the encoding performance is improved because the allocation of the partial section is corrected for a symbol having a specific value as the estimated appearance probability.
また、記憶手段が記憶する特定値の一つを1/2とし、該当シンボルに対して推定出現確率の推定対象シンボル値の更新を伴う一連の演算処理操作を非該当シンボルの演算処理操作から独立させて構成するため、出現確率の推定対象シンボル値の更新を伴う確率1/2をとるシンボルの符号化および復号の演算処理を通常の演算処理から独立させるので、冗長性のない演算処理が可能となる。
Further, one of the specific values stored in the storage means is halved, and a series of arithmetic processing operations involving updating the estimation target symbol value of the estimated appearance probability for the corresponding symbol is independent of the arithmetic processing operation for the non-corresponding symbol. Therefore, symbol encoding / decoding calculation processing with
また、該当シンボルに適用される復号において、補正手段は第1および第2の部分区間を有効区間と等値とみなして補正し、有効区間は変更せず、符号のみ1桁のシフト処理あるいは2倍の乗算で拡大した後、符号値を演算する手順によって有効区間の表現精度を最大に保つ正規化手段と、正規化手段による符号拡大後に、以後新たに演算部に取り込まれる符号の入力が必要であれば予め準備して入力する符号入力手段とを備えているので、符号演算を正規化に相当する拡大処理後に行うため、有効区間の表現精度を最大に保つことが可能となる。 Further, in the decoding applied to the corresponding symbol, the correcting means corrects the first and second partial sections as equivalent to the effective section, and does not change the effective section, and only the code is shifted by one digit or 2 After enlarging by double multiplication, normalization means that keeps the expression accuracy of the valid section to the maximum by the procedure for calculating the code value, and after the code expansion by the normalization means, input of the code that is newly taken into the calculation unit is required after that In this case, since it is provided with a code input means that prepares and inputs in advance, the code calculation is performed after the enlargement process corresponding to normalization, so that it is possible to maintain the maximum representation accuracy of the effective section.
また、該当シンボルに適用される復号において、補正手段は上記第1および第2の部分区間を上記有効区間と等値とみなして補正し、有効区間は変更せず、符号のみ1桁のシフト処理あるいは2倍の乗算で拡大した後、符号値を演算する手順によって有効区間の表現精度を最大に保つ正規化手段と、正規化手段による符号の拡大前に、演算部に取り込まれる符号の入力が必要であれば入力する符号入力手段とを備えているので、符号演算を正規化に相当する拡大処理後に行うため、有効区間の表現精度を最大に保つことが可能となる。 Further, in the decoding applied to the corresponding symbol, the correction means corrects the first and second partial sections as equivalent to the effective section, and does not change the effective section and shifts only one code. Alternatively, after enlarging by a multiplication of 2 times, normalization means that keeps the expression accuracy of the effective section maximum by the procedure for calculating the code value, and before the code is expanded by the normalization means, the input of the code that is taken into the arithmetic unit is Since it is provided with a code input means for inputting if necessary, the code calculation is performed after the enlargement process corresponding to normalization, so that the representation accuracy of the effective section can be kept at the maximum.
また、記憶手段が記憶する特定値は1/2のべき乗で表現できる確率値であるので、出現確率が1/2のべき乗となるシンボルを他のシンボルと区別できるため、近似値を適用せずにより誤差を少なく補正することが可能となる。 In addition, since the specific value stored in the storage means is a probability value that can be expressed by a power of 1/2, a symbol whose appearance probability is a power of 1/2 can be distinguished from other symbols, and thus an approximate value is not applied. This makes it possible to correct the error with a small amount.
また、記憶手段は特定値を1/2のべき乗で表現した場合の2進小数指数部の正の整数値で記憶し、判定手段は正整数値に基づいて判定を行うので、出現確率が1/2のべき乗となるシンボルを2進小数指数部の正の整数値で記憶するため、記憶容量を節約することが可能となる。 The storage means stores the specific value as a positive integer value of the binary decimal exponent when the specific value is expressed by a power of 1/2, and the determination means performs the determination based on the positive integer value, so that the appearance probability is 1 Since a symbol that is a power of / 2 is stored as a positive integer value of a binary decimal exponent, the storage capacity can be saved.
また、記憶手段が記憶した正整数値に対して、補正手段は有効区間を正整数桁だけシフト処理で縮小した値を上記第1の部分区間の補正値にするので、出現確率が1/2のべき乗となるシンボルを2進小数指数部の正の整数値で記憶するため、補正値を有効区間幅からシフト処理で容易に算出することが可能となる。 Further, since the correction means reduces the effective interval by a shift process by a positive integer digit to the correction value of the first partial interval with respect to the positive integer value stored by the storage means, the appearance probability is ½. Since a symbol that is a power of is stored as a positive integer value of a binary decimal exponent, a correction value can be easily calculated from the effective interval width by a shift process.
また、この発明は、学習しながら情報源シンボルの出現確率を推定し、推定出現確率の近似値を適用する第1の部分区間と残りの第2の部分区間に数直線上の有効区間を分割し、出現したシンボルに対応した部分区間を新たな上記有効区間とする算術符号を適用した符号化方法であって、推定出現確率が特定値であることを記憶する記憶ステップと、記憶ステップにおいて記憶された特定値を参照して推定出現確率が特定値であることを判定する判定ステップと、推定出現確率が特定値であることが判定されたときに、第1及び第2の部分区間の割当てを補正する補正ステップとを備えた符号化方法であるため、推定出現確率として特定値をとるシンボルに対して部分区間の割当てを補正するので符号化性能が向上するという効果がある。 In addition, the present invention estimates the appearance probability of the information source symbol while learning, and divides the effective section on the number line into the first partial section to which the approximate value of the estimated appearance probability is applied and the remaining second partial section. And an encoding method using an arithmetic code in which a partial interval corresponding to the appearing symbol is a new effective interval, and storing an estimated appearance probability as a specific value, and storing in a storage step A determination step for determining that the estimated appearance probability is a specific value with reference to the specified specific value, and assignment of the first and second partial sections when the estimated appearance probability is determined to be the specific value Therefore, there is an effect that the encoding performance is improved because the allocation of the partial section is corrected for a symbol having a specific value as the estimated appearance probability.
また、記憶ステップにおいて記憶された特定値の一つを1/2とし、該当シンボルに対して推定出現確率の推定対象シンボル値の更新を伴う一連の演算処理操作を非該当シンボルの演算処理操作から独立させて構成するため、出現確率の推定対象シンボル値の更新を伴う確率1/2をとるシンボルの符号化および復号の演算処理を通常の演算処理から独立させるので、冗長性のない演算処理が可能となる。 One of the specific values stored in the storing step is halved, and a series of arithmetic processing operations involving updating of the estimation target symbol value of the estimated appearance probability for the corresponding symbol is performed from the arithmetic processing operation of the non-corresponding symbol. Since it is configured independently, the symbol encoding and decoding arithmetic processing having a probability of 1/2 accompanied by the update of the estimation target symbol value of the appearance probability is made independent from the normal arithmetic processing, so that arithmetic processing without redundancy is performed. It becomes possible.
また、該当シンボルに適用される符号化において、補正ステップは第1および第2の部分区間を有効区間と等値とみなして補正し、有効区間は変更せず、符号のみ1桁のシフト処理あるいは2倍の乗算で拡大した後、符号値を演算する手順によって有効区間の表現精度を最大に保つ正規化ステップと、正規化ステップによる符号更新後、出力可能な符号を出力する符号出力ステップとを備えているので、符号演算を正規化に相当する拡大処理後に行うため、有効区間の表現精度を最大に保つことが可能となる。 Further, in the encoding applied to the corresponding symbol, the correction step corrects the first and second partial sections as equivalent to the effective section, and corrects the effective section without changing the effective section. A normalization step that maximizes the representation accuracy of the effective interval by a procedure for calculating a code value after enlarging by double multiplication, and a code output step that outputs a code that can be output after the code update by the normalization step. Since the code calculation is performed after the enlargement process corresponding to normalization, the representation accuracy of the effective section can be kept at the maximum.
また、記憶ステップにおいて記憶される上記特定値は1/2のべき乗で表現できる確率値であるので、出現確率が1/2のべき乗となるシンボルを他のシンボルと区別できるため、近似値を適用せずにより誤差を少なく補正することが可能となる。 In addition, since the specific value stored in the storing step is a probability value that can be expressed by a power of 1/2, a symbol whose appearance probability is a power of 1/2 can be distinguished from other symbols. Therefore, the error can be corrected with less error.
また、記憶ステップは特定値を1/2のべき乗で表現した場合の2進小数指数部の正の整数値で記憶し、判定ステップは正整数値に基づいて判定を行うので、出現確率が1/2のべき乗となるシンボルを2進小数指数部の正の整数値で記憶するため、記憶容量を節約することが可能となる。 In addition, the storage step stores the specific value as a positive integer value of the binary decimal exponent when the specific value is expressed by a power of ½, and the determination step performs determination based on the positive integer value, so that the appearance probability is 1 Since a symbol that is a power of / 2 is stored as a positive integer value of a binary decimal exponent, the storage capacity can be saved.
また、記憶ステップにおいて記憶された正整数値に対して、補正ステップは有効区間を正整数桁だけシフト処理で縮小した値を第1の部分区間の補正値にするので、出現確率が1/2のべき乗となるシンボルを2進小数指数部の正の整数値で記憶するため、補正値を有効区間幅からシフト処理で容易に算出することが可能となる。 Moreover, since the correction step reduces the effective interval by a shift process by a positive integer digit to the correction value of the first partial interval with respect to the positive integer value stored in the storage step, the appearance probability is 1/2. Since a symbol that is a power of is stored as a positive integer value of a binary decimal exponent, a correction value can be easily calculated from the effective interval width by a shift process.
また、この発明は、学習しながら情報源シンボルの出現確率を推定し、推定出現確率の近似値を適用する第1の部分区間と残りの第2の部分区間に数直線上の有効区間を分割し、出現したシンボルに対応した部分区間を新たな有効区間とする算術符号を適用した復号方法であって、推定出現確率が特定値であることを記憶する記憶ステップと、記憶ステップにおいて記憶された特定値を参照して推定出現確率が特定値であることを判定する判定ステップと、推定出現確率が特定値であることが判定されたときに、第1及び第2の部分区間の割当てを補正する補正ステップとを備えた復号方法であるため、推定出現確率として特定値をとるシンボルに対して部分区間の割当てを補正するので符号化性能が向上するという効果がある。 In addition, the present invention estimates the appearance probability of the information source symbol while learning, and divides the effective section on the number line into the first partial section to which the approximate value of the estimated appearance probability is applied and the remaining second partial section. And a decoding method to which an arithmetic code having a partial interval corresponding to the appearing symbol as a new effective interval is applied, wherein the estimated appearance probability is a specific value, and stored in the storage step A determination step for determining that the estimated appearance probability is a specific value with reference to the specific value, and correcting the allocation of the first and second partial sections when the estimated appearance probability is determined to be the specific value Therefore, since the allocation of the partial section is corrected for a symbol having a specific value as the estimated appearance probability, there is an effect that the coding performance is improved.
また、記憶ステップにおいて記憶される特定値の一つを1/2とし、該当シンボルに対して推定出現確率の推定対象シンボル値の更新を伴う一連の演算処理操作を非該当シンボルの演算処理操作から独立させて構成するため、出現確率の推定対象シンボル値の更新を伴う確率1/2をとるシンボルの符号化および復号の演算処理を通常の演算処理から独立させるので、冗長性のない演算処理が可能となる。 Further, one of the specific values stored in the storing step is halved, and a series of arithmetic processing operations involving updating of the estimation target symbol value of the estimated appearance probability for the corresponding symbol is performed from the arithmetic processing operation of the non-corresponding symbol. Since it is configured independently, the symbol encoding and decoding arithmetic processing having a probability of 1/2 accompanied by the update of the estimation target symbol value of the appearance probability is made independent from the normal arithmetic processing, so that arithmetic processing without redundancy is performed. It becomes possible.
また、該当シンボルに適用される復号において、補正ステップは第1および第2の部分区間を有効区間と等値とみなして補正し、有効区間は変更せず、符号のみ1桁のシフト処理あるいは2倍の乗算で拡大した後、符号値を演算する手順によって有効区間の表現精度を最大に保つ正規化ステップと、正規化ステップによる符号拡大後に、以後新たに演算部に取り込まれる符号の入力が必要であれば予め準備して入力する符号入力ステップとを備えているので、符号演算を正規化に相当する拡大処理後に行うため、有効区間の表現精度を最大に保つことが可能となる。 In the decoding applied to the corresponding symbol, the correction step corrects the first and second partial sections as equivalent to the effective section and corrects the effective section without changing the effective section. A normalization step that maximizes the representation accuracy of the valid interval by the procedure of calculating the code value after enlarging by double multiplication, and after the code expansion by the normalization step, input of a code that is newly taken into the calculation unit is required after that In this case, a code input step for preparing and inputting in advance is provided, so that the sign calculation is performed after the enlargement process corresponding to normalization, so that the representation accuracy of the effective section can be kept at the maximum.
また、該当シンボルに適用される復号において、補正ステップは第1および第2の部分区間を上記有効区間と等値とみなして補正し、有効区間は変更せず、符号のみ1桁のシフト処理あるいは2倍の乗算で拡大した後、符号値を演算する手順によって有効区間の表現精度を最大に保つ正規化ステップと、正規化ステップによる符号の拡大前に、演算部に取り込まれる符号の入力が必要であれば入力する符号入力ステップとを備えているので、符号演算を正規化に相当する拡大処理後に行うため、有効区間の表現精度を最大に保つことが可能となる。 Further, in the decoding applied to the corresponding symbol, the correction step corrects the first and second partial intervals by regarding them as equivalent to the effective interval, and does not change the effective interval and shifts the code only by one digit. After enlarging by 2 times multiplication, a normalization step that keeps the expression accuracy of the effective section maximum by the procedure of calculating the code value, and input of the code to be taken into the arithmetic unit is required before the code is expanded by the normalization step If so, since the sign input step is input, the sign calculation is performed after the enlargement process corresponding to normalization, so that the representation accuracy of the effective section can be kept at the maximum.
また、記憶ステップにおいて記憶される特定値は1/2のべき乗で表現できる確率値であるので、出現確率が1/2のべき乗となるシンボルを他のシンボルと区別できるため、近似値を適用せずにより誤差を少なく補正することが可能となる。 In addition, since the specific value stored in the storing step is a probability value that can be expressed by a power of 1/2, a symbol whose appearance probability is a power of 1/2 can be distinguished from other symbols. Therefore, the error can be corrected with less error.
また、記憶ステップは特定値を1/2のべき乗で表現した場合の2進小数指数部の正の整数値で記憶し、判定ステップは上記正整数値に基づいて判定を行うので、出現確率が1/2のべき乗となるシンボルを2進小数指数部の正の整数値で記憶するため、記憶容量を節約することが可能となる。 Further, the storing step stores the specific value as a positive integer value of the binary decimal exponent when the specific value is expressed by a power of 1/2, and the determination step performs the determination based on the positive integer value. Since a symbol that is a power of 1/2 is stored as a positive integer value of a binary decimal exponent, it is possible to save the storage capacity.
また、記憶ステップにおいて記憶された正整数値に対して、補正ステップは有効区間を正整数桁だけシフト処理で縮小した値を第1の部分区間の補正値にするので、出現確率が1/2のべき乗となるシンボルを2進小数指数部の正の整数値で記憶するため、補正値を有効区間幅からシフト処理で容易に算出することが可能となる。 Moreover, since the correction step reduces the effective interval by a shift process by a positive integer digit to the correction value of the first partial interval with respect to the positive integer value stored in the storage step, the appearance probability is 1/2. Since a symbol that is a power of is stored as a positive integer value of a binary decimal exponent, a correction value can be easily calculated from the effective interval width by a shift process.
1A QM符号器、1B QM復号器、2 コンテクスト、3 画素、4 符号、5A、5B 画像メモリ、6 画像、7 予測値テーブルMPSおよび変数MPS、8 ステートテーブルSTおよび変数ST、9 LPS区間幅テーブルLSZ、10 MPS状態遷移先テーブルNMPS、11 LPS状態遷移先テーブルNLPS、12 予測値反転判定テーブルSWTCH、13A 算術符号器、13B 算術復号器、14 シンボル、15A 画素シンボル変換器、15B シンボル画素変換器、16 反転器、17 セレクタ、30A 符号化レジスタC、30B 復号レジスタC、31 区間幅レジスタA、32 Cxレジスタ、33 Cbレジスタ、34 Ccレジスタ、35 CLOWレジスタ、36 Cbレジスタ、37 CHIGHレジスタ、38 Cxレジスタ、50 CTカウンタ。 1A QM encoder, 1B QM decoder, 2 contexts, 3 pixels, 4 codes, 5A, 5B image memory, 6 images, 7 predicted value table MPS and variable MPS, 8 state table ST and variable ST, 9 LPS interval width table LSZ, 10 MPS state transition destination table NMPS, 11 LPS state transition destination table NLPS, 12 predicted value inversion determination table SWTCH, 13A arithmetic encoder, 13B arithmetic decoder, 14 symbols, 15A pixel symbol converter, 15B symbol pixel converter , 16 Inverter, 17 Selector, 30A Coding register C, 30B Decoding register C, 31 Interval width register A, 32 Cx register, 33 Cb register, 34 Cc register, 35 CLOW register, 36 Cb register, 37 CHIGH register , 38 Cx register, 50 CT counter.
Claims (12)
特定の情報源シンボル出現確率を記憶する記憶手段と、
上記確率推定手段が推定した推定出現確率と上記記憶手段に記憶されている特定の情報源シンボル出現確率との一致を判定する判定手段と、
この判定手段において上記推定出現確率が上記特定の情報源シンボル出現確率と一致しないと判定したとき、数直線上の有効区間を第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる第1の区間分割手段と、
上記判定手段において上記推定出現確率が上記特定の情報源シンボル出現確率と一致したと判定したとき、上記有効区間を上記特定の情報源シンボル出現確率に応じた第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる第2の区間分割手段と、
上記第1または第2の区間分割手段が上記所定の情報源シンボルの値に対応させた上記第1の部分区間と上記第2の部分区間のうち、上記情報源シンボルの値と同一の情報源シンボルの値に対応する部分区間を新たな上記有効区間とし、この有効区間の内部座標を符号として出力する符号化手段と
を備えることを特徴とする符号化装置。 Probability estimation means for estimating the appearance probability of the information source symbol;
Storage means for storing the probability of appearance of a specific information source symbol;
Determination means for determining a match between the estimated appearance probability estimated by the probability estimation means and the specific information source symbol appearance probability stored in the storage means;
When the determining means determines that the estimated appearance probability does not coincide with the specific information source symbol appearance probability, the effective section on the number line is divided into a first partial section and a second partial section, First section dividing means for corresponding a section to a value of a predetermined information source symbol;
When the determining means determines that the estimated appearance probability coincides with the specific information source symbol appearance probability, the effective section is defined as a first partial section and a second part corresponding to the specific information source symbol appearance probability. A second section dividing unit that divides the section into sections and associates each partial section with a value of a predetermined information source symbol;
Of the first partial section and the second partial section that the first or second section dividing means corresponds to the value of the predetermined information source symbol, the same information source as the value of the information source symbol An encoding device comprising: encoding means for setting a partial section corresponding to a symbol value as the new effective section and outputting the internal coordinates of the effective section as a code.
上記第2の区間分割手段は、上記有効区間に対して、上記記憶手段が記憶する1/2のべき乗倍に縮小処理した部分区間を上記第1の部分区間とすることを特徴とする請求項1記載の符号化装置。 The storage means stores a probability that can be expressed by a power of 1/2 as the specific information source symbol appearance probability,
2. The second section dividing unit according to claim 1, wherein the partial section obtained by reducing the effective section to a power of 1/2 that is stored by the storage unit is used as the first partial section. The encoding device according to 1.
上記第2の区間分割手段は、上記有効区間に対する1/2のべき乗倍の縮小処理に上記記憶手段が記憶する上記正の整数値で表される桁数の下位方向へのシフト演算を適用することを特徴とする請求項2記載の符号化装置。 The storage means stores the probability of appearance of the specific information source symbol as a positive integer value of the binary decimal exponent,
The second section dividing unit applies a shift operation in the lower direction of the number of digits represented by the positive integer value stored in the storage unit to a reduction process of a power of 1/2 to the effective section. The encoding apparatus according to claim 2.
上記判定手段における上記推定出現確率と上記特定の情報源シンボル出現確率との一致または不一致の判定によって、上記有効区間の区間幅と位置座標の更新処理と正規化処理を異なる手順で適用することを特徴とする請求項1記載の符号化装置。 The encoding means holds the section width of the effective section and the position coordinates on the number line, performs update processing of the section width and position coordinates, and when the section width becomes smaller than a predetermined width, the effective section Perform a normalization process to enlarge the section width and position coordinates of the same at the same magnification until it becomes larger than the predetermined width,
Applying update processing and normalization processing of the section width and position coordinates of the effective section in different procedures by determining whether the estimated appearance probability and the specific information source symbol appearance probability match or not in the determination means. The encoding apparatus according to claim 1, characterized in that:
特定の情報源シンボル出現確率を記憶する記憶手段と、
上記確率推定手段が推定した推定出現確率と上記記憶手段に記憶されている特定の情報源シンボル出現確率との一致を判定する判定手段と、
この判定手段において上記推定出現確率が上記特定の情報源シンボル出現確率と一致しないと判定したとき、数直線上の有効区間を第1の部分区間および第2の部分区間に分割し、
それぞれの部分区間を所定の情報源シンボルの値に対応させる第1の区間分割手段と、
上記判定手段において上記推定出現確率が上記特定の情報源シンボル出現確率と一致したと判定したとき、上記有効区間を上記特定の情報源シンボル出現確率に応じた第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる第2の区間分割手段と、
上記第1または第2の区間分割手段が上記所定の情報源シンボルの値に対応させた上記第1の部分区間と上記第2の部分区間のうち、入力される符号の値を内部座標としてもつ部分区間を新たな上記有効区間とし、その部分区間に対応されていた情報源シンボルの値と同一の情報源シンボルの値を出力する復号手段と
を備えることを特徴とする復号装置。 Probability estimation means for estimating the appearance probability of the information source symbol;
Storage means for storing the probability of appearance of a specific information source symbol;
Determination means for determining a match between the estimated appearance probability estimated by the probability estimation means and the specific information source symbol appearance probability stored in the storage means;
When the determination means determines that the estimated appearance probability does not match the specific information source symbol appearance probability, the effective section on the number line is divided into a first partial section and a second partial section,
First section dividing means for corresponding each partial section to a value of a predetermined information source symbol;
When the determining means determines that the estimated appearance probability matches the specific information source symbol appearance probability, the effective section is defined as a first partial section and a second part corresponding to the specific information source symbol appearance probability. A second section dividing unit that divides the section into sections and associates each partial section with a value of a predetermined information source symbol;
Of the first partial section and the second partial section, the first or second section dividing means corresponding to the value of the predetermined information source symbol has an input code value as an internal coordinate. A decoding apparatus comprising: a decoding unit that sets a partial section as a new effective section and outputs a value of an information source symbol that is the same as a value of an information source symbol corresponding to the partial section.
上記第2の区間分割手段は、上記有効区間に対して、上記記憶手段が記憶する1/2のべき乗倍に縮小処理した部分区間を上記第1の部分区間とすることを特徴とする請求項6記載の復号装置。 The storage means stores a probability that can be expressed by a power of 1/2 as the specific information source symbol appearance probability,
2. The second section dividing unit according to claim 1, wherein the partial section obtained by reducing the effective section to a power of 1/2 that is stored by the storage unit is used as the first partial section. 6. The decoding device according to 6.
上記第2の区間分割手段は、上記有効区間に対する1/2のべき乗倍の縮小処理に上記記憶手段が記憶する上記正の整数値で表される桁数の下位方向へのシフト演算を適用することを特徴とする請求項7記載の復号装置。 The storage means stores the probability of appearance of the specific information source symbol as a positive integer value of the binary decimal exponent,
The second section dividing unit applies a shift operation in the lower direction of the number of digits represented by the positive integer value stored in the storage unit to a reduction process of a power of 1/2 to the effective section. The decoding device according to claim 7.
上記判定手段における上記推定出現確率と上記特定の情報源シンボル出現確率との一致または不一致の判定によって、上記有効区間の区間幅と位置座標の更新処理と正規化処理を異なる手順で適用することを特徴とする請求項6記載の復号装置。 The decoding means holds the code as the section width of the effective section and the position coordinates inside the effective section, performs update processing of the section width and position coordinates, and when the section width is smaller than a predetermined width, A normalization process is performed to expand the section width and the position coordinates of the effective section at the same magnification until it becomes larger than the predetermined width,
Applying update processing and normalization processing of the section width and position coordinates of the effective section in different procedures by determining whether the estimated appearance probability and the specific information source symbol appearance probability match or not in the determination means. The decoding device according to claim 6.
この碓率推定ステップにおいて推定した推定出現確率と特定の情報源シンボル出現確率との一致を判定する判定ステップと、
この判定ステップにおいて上記推定出現確率が上記特定の情報源シンボル出現確率と一致しないと判定したとき、数直線上の有効区間を第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させるとともに、
上記判定ステップにおいて上記推定出現確率が上記特定の情報源シンボル出現確率と一致したと判定したとき、上記有効区間を上記特定の情報源シンボル出現確率に応じた第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる分割ステップと、
この分割ステップにおいて上記所定の情報源シンボルの値に対応させた上記第1の部分区間と上記第2の部分区間のうち、上記情報源シンボルの値と同一の情報源シンボルの値に対応する部分区間を新たな上記有効区間とし、この有効区間の内部座標を符号として出力する符号化ステップと
を備えることを特徴とする符号化方法。 A probability estimation step for estimating the appearance probability of the information source symbol;
A determination step for determining a match between the estimated appearance probability estimated in the probability estimation step and the specific information source symbol appearance probability;
When it is determined in this determination step that the estimated appearance probability does not match the specific information source symbol appearance probability, the effective section on the number line is divided into a first partial section and a second partial section, The interval corresponds to the value of a predetermined information source symbol,
When it is determined in the determination step that the estimated appearance probability matches the specific information source symbol appearance probability, the effective section is defined as a first partial section and a second part corresponding to the specific information source symbol appearance probability. A division step of dividing the segment into segments and corresponding each segment to a value of a predetermined information source symbol;
Of the first partial section and the second partial section corresponding to the predetermined information source symbol value in this division step, the portion corresponding to the same information source symbol value as the information source symbol value An encoding method comprising: an encoding step of setting an interval as a new effective interval and outputting the internal coordinates of the effective interval as a code.
この確率推定ステップにおいて推定した推定出現確率と特定の情報源シンボル出現確率との一致を判定する判定ステップと、
この判定ステップにおいて上記推定出現確率が上記特定の情報源シンボル出現確率と一致しないと判定したとき、数直線上の有効区間を第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させるとともに、
上記判定ステップにおいて上記推定出現確率が上記特定の情報源シンボル出現確率と一致したと判定したとき、上記有効区間を上記特定の情報源シンボル出現確率に応じた第1の部分区間および第2の部分区間に分割し、それぞれの部分区間を所定の情報源シンボルの値に対応させる分割ステップと、
この分割ステップにおいて上記所定の情報源シンボルの値に対応させた上記第1の部分区間と上記第2の部分区間のうち、入力される符号の値を内部座標としてもつ部分区間を新たな上記有効区間とし、その部分区間に対応されていた情報源シンボルの値と同一の情報源シンボルの値を出力する復号ステップと
を備えることを特徴とする復号方法。 A probability estimation step for estimating the appearance probability of the information source symbol;
A determination step for determining a match between the estimated appearance probability estimated in the probability estimation step and the specific information source symbol appearance probability;
When it is determined in this determination step that the estimated appearance probability does not match the specific information source symbol appearance probability, the effective section on the number line is divided into a first partial section and a second partial section, The interval corresponds to the value of a predetermined information source symbol,
When it is determined in the determination step that the estimated appearance probability matches the specific information source symbol appearance probability, the effective section is defined as a first partial section and a second part corresponding to the specific information source symbol appearance probability. A division step of dividing the segment into segments and corresponding each segment to a value of a predetermined information source symbol;
Of the first partial section and the second partial section corresponding to the value of the predetermined information source symbol in this division step, a partial section having the input code value as an internal coordinate is newly added to the effective section. And a decoding step of outputting a value of the same information source symbol as that of the information source symbol corresponding to the partial interval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005293639A JP4110558B2 (en) | 2005-10-06 | 2005-10-06 | Encoding device, decoding device, encoding method, and decoding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005293639A JP4110558B2 (en) | 2005-10-06 | 2005-10-06 | Encoding device, decoding device, encoding method, and decoding method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000275842A Division JP2002094386A (en) | 2000-09-12 | 2000-09-12 | Encoder, decoder, coding method and decoding method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006109486A JP2006109486A (en) | 2006-04-20 |
JP4110558B2 true JP4110558B2 (en) | 2008-07-02 |
Family
ID=36378566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005293639A Expired - Fee Related JP4110558B2 (en) | 2005-10-06 | 2005-10-06 | Encoding device, decoding device, encoding method, and decoding method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4110558B2 (en) |
-
2005
- 2005-10-06 JP JP2005293639A patent/JP4110558B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2006109486A (en) | 2006-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3391251B2 (en) | Adaptive probability estimation method, adaptive encoding method, and adaptive decoding method | |
KR940010959B1 (en) | Coding device and method | |
JP2000115783A (en) | Decoder and its method | |
JP2000115781A (en) | Coder | |
CN110291793B (en) | Method and apparatus for range derivation in context adaptive binary arithmetic coding | |
JP3684128B2 (en) | Arithmetic encoding / decoding method and arithmetic encoding / decoding device | |
TWI354931B (en) | Method for parallel processing at least two bins a | |
KR20010012832A (en) | Arithmetic encoding and decoding of an information signal | |
CN110049333B (en) | JPEG _ LS image compression output coding code stream splicing system and method | |
EP1189354A2 (en) | Data encoding method, data encoding apparatus, data decoding method, and data decoding apparatus | |
US6373408B1 (en) | Encoding apparatus, decoding apparatus, encoding/decoding apparatus, encoding method and decoding method | |
JP2008022215A (en) | Image encoding device, image encoding method, and storage medium therefor | |
JP4110558B2 (en) | Encoding device, decoding device, encoding method, and decoding method | |
JP3459759B2 (en) | Arithmetic decoding device | |
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 | |
JPH06121172A (en) | Picture encoder | |
JP2891818B2 (en) | Encoding device | |
JPH06311045A (en) | Encoder and decoder | |
JP5200854B2 (en) | Encoding device, decoding device, and image processing system | |
JP3427651B2 (en) | Arithmetic coding apparatus and flash processing method thereof | |
JP3146109B2 (en) | Binary image coding device | |
JP3078692B2 (en) | Arithmetic encoder | |
JPH10145609A (en) | Image data coder | |
JPH10290166A (en) | Coding method, coder, decoding method and decoder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080306 |
|
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: 20080318 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080328 |
|
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: 20110418 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110418 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110418 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110418 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |