JP5570437B2 - Entropy encoding device, entropy decoding device, entropy encoding method, and entropy decoding method - Google Patents
Entropy encoding device, entropy decoding device, entropy encoding method, and entropy decoding method Download PDFInfo
- Publication number
- JP5570437B2 JP5570437B2 JP2011004029A JP2011004029A JP5570437B2 JP 5570437 B2 JP5570437 B2 JP 5570437B2 JP 2011004029 A JP2011004029 A JP 2011004029A JP 2011004029 A JP2011004029 A JP 2011004029A JP 5570437 B2 JP5570437 B2 JP 5570437B2
- Authority
- JP
- Japan
- Prior art keywords
- symbol
- fixed
- length
- output
- 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)
Description
この発明は、多値シンボル系列を2値化して、2値化シンボル系列をエントロピー符号化するエントロピー符号化装置及びエントロピー符号化方法と、符号化データから2値化シンボル系列を復号し、2値化シンボル系列を多値化して多値シンボル系列を出力するエントロピー復号装置及びエントロピー復号方法とに関するものである。 The present invention relates to an entropy encoding device and entropy encoding method for binarizing a multilevel symbol sequence and entropy encoding the binarized symbol sequence, and decoding the binarized symbol sequence from encoded data, The present invention relates to an entropy decoding device and an entropy decoding method for converting a multi-valued symbol sequence into a multi-level and outputting a multi-level symbol sequence.
従来より、生起確率が異なる多値シンボル系列を効率よくエントロピー符号化する手法として、例えば、以下の非特許文献1に開示されているPIPE(Probability Interval Partitioning Entropy Codes)が知られている。
図7はPIPE手法によって多値シンボル系列を符号化するPIPE符号化装置を示す構成図である。
Conventionally, as a technique for efficiently entropy encoding multi-level symbol sequences having different occurrence probabilities, for example, PIPE (Probability Interval Partitioning Entropy Codes) disclosed in Non-Patent
FIG. 7 is a block diagram showing a PIPE encoding apparatus that encodes a multi-level symbol sequence by the PIPE method.
エントロピー符号化装置であるPIPE符号化装置の2値化部101は、多値シンボル系列を入力すると、多値シンボルの2値化テーブルを参照して、その多値シンボル系列内の多値シンボルを2値化し、長さが1以上の2値化シンボルの系列を符号化bin出力部103に出力する。
また、2値化部101は、多値シンボルの2値化テーブルを参照して、各2値化シンボルが上記多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を確率状態出力部102に出力する。
When the
In addition, the
確率状態出力部102は、2値化部101から出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボル(“0”又は“1”のうち、生起する確率が高い方の値を示すシンボル)を示す優勢シンボル情報を符号化bin出力部103に出力する。
また、確率状態出力部102は、その優勢シンボルの生起確率を示す確率情報を切替スイッチ104に出力する。
The probability
In addition, the probability
符号化bin出力部103は、確率状態出力部102から出力された優勢シンボル情報を参照して、2値化部101から出力された2値化シンボル系列内の各2値化シンボルが優勢シンボルであるか否かを示すフラグを符号化2値化シンボルとして切替スイッチ104に出力する。
即ち、符号化bin出力部103は、2値化部101から出力された2値化シンボル系列内の2値化シンボル毎に、当該2値化シンボルが確率状態出力部102から出力された優勢シンボル情報が示す優勢シンボルと一致するか否かを判定し、その判定結果を符号化2値化シンボルとして切替スイッチ104に出力する。
The encoding
That is, the encoding
切替スイッチ104は、符号化bin出力部103から符号化2値化シンボルの系列を受けると、N個のV2V(Variable Length Code to Variable Length Code)符号化器1061〜106Nの中から、確率状態出力部102から出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを実装しているV2V符号化器106を選択して、その符号化2値化シンボルの系列を当該V2V符号化器106の前段に配置されているbinバッファ105に格納する。
ここで、図8は優勢シンボルの生起確率に対応する符号化テーブル(V2Vテーブル)の一例を示す説明図である。
When the
Here, FIG. 8 is an explanatory diagram showing an example of a coding table (V2V table) corresponding to the occurrence probability of the dominant symbol.
例えば、PIPE符号化装置が4個のV2V符号化器1061〜1064から構成されており、V2V符号化器1061がV2Vテーブル1を実装し、V2V符号化器1062がV2Vテーブル2を実装し、V2V符号化器1063がV2Vテーブル3を実装し、V2V符号化器1064がV2Vテーブル4を実装している場合、図8の例では、優勢シンボルの生起確率が0.9375以上であれば、V2Vテーブル1を実装しているV2V符号化器1061を選択し、優勢シンボルの生起確率が0.9375未満で0.7794以上であれば、V2Vテーブル2を実装しているV2V符号化器1062を選択する。
また、優勢シンボルの生起確率が0.7794未満で0.6369以上であれば、V2Vテーブル3を実装しているV2V符号化器1063を選択し、優勢シンボルの生起確率が0.6369未満で0.5000以上であれば、V2Vテーブル4を実装しているV2V符号化器1064を選択する。
For example, the PIPE encoder is composed of four
If the occurrence probability of the dominant symbol is less than 0.7794 and 0.6369 or more, the V2V encoder 1063 that implements the V2V table 3 is selected, and the occurrence probability of the dominant symbol is less than 0.6369. if 0.5000 or more, to select the
V2V符号化器1061〜106Nは、実装しているV2Vテーブルを参照して、binバッファ1051〜105Nに格納されている符号化2値化シンボル系列を可変長符号化し、その符号化結果である可変長符号を符号化データ出力部107に出力する。
優勢シンボルの生起確率に基づいて、V2V符号化器106により入力される符号化2値化シンボル系列の平均符号長と、V2V符号化器106から出力される可変長符号の平均符号長とができる限り等しくなるように、各々のV2Vテーブルが設計されていれば、それぞれの優勢シンボルの生起確率に適するエントロピー符号化がなされるため、効率よくエントロピー符号化が行われる。
符号化データ出力部107は、V2V符号化器1061〜106Nから出力された可変長符号を多重化し、その多重化結果を符号化データとして出力する。
The
Based on the occurrence probability of the dominant symbol, the average code length of the coded binary symbol sequence input by the
The encoded
図9は図8のPIPE符号化装置により生成された符号化データを復号して多値シンボル系列を生成するPIPE復号装置を示す構成図である。
PIPE復号装置の符号化データ入力部201は、図8のPIPE符号化装置により生成された符号化データを入力すると、その符号化データから多重化されている可変長符号を抽出して、その可変長符号をV2V復号器203に出力する。
即ち、符号化データ入力部201は、V2V符号化器1061により生成された可変長符号についてはV2V復号器2031に出力し、V2V符号化器106N−1により生成された可変長符号についてはV2V復号器203N−1に出力し、V2V符号化器106Nにより生成された可変長符号についてはV2V復号器203Nに出力する。
また、符号化データ入力部201は、多値シンボルの2値化テーブルを参照して、その可変長符号に対応する各2値化シンボルが多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を確率状態出力部202に出力する。
FIG. 9 is a block diagram showing a PIPE decoding apparatus that decodes encoded data generated by the PIPE encoding apparatus of FIG. 8 to generate a multi-level symbol sequence.
When the encoded
That is, the encoded
Also, the encoded
確率状態出力部202は、符号化データ入力部201から出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボル(“0”又は“1”のうち、生起する確率が高い方の値を示すシンボル)を示す優勢シンボル情報をbin出力部206に出力する。
また、確率状態出力部202は、その優勢シンボルの生起確率を示す確率情報を切替スイッチ205に出力する。
The probability
In addition, the probability
N個のV2V復号器2031〜203Nは、V2V符号化器1061〜106Nが実装している符号化テーブル(V2Vテーブル)と逆処理になる復号テーブル(V2Vテーブル)を実装しており、符号化データ入力部201から可変長符号を受けると、実装しているV2Vテーブルを参照して、その可変長符号を可変長復号し、その復号結果である復号2値化シンボルの系列をbinバッファ2041〜204Nに格納する。
The
切替スイッチ205は、binバッファ2041〜204Nの中から、確率状態出力部202から出力された確率情報が示す優勢シンボルの生起確率に対応する復号テーブルを実装しているV2V復号器203の復号結果を格納しているbinバッファ204を選択し、そのbinバッファ204に格納されている復号結果である復号2値化シンボル系列をbin出力部206に出力する。
The
bin出力部206は、切替スイッチ205から復号2値化シンボル系列を受けると、確率状態出力部202から出力された優勢シンボル情報を参照して、その復号2値化シンボル系列内の各復号2値化シンボルが優勢シンボルであるか否かを示すフラグを2値化シンボルとして多値化部207に出力する。
即ち、bin出力部206は、切替スイッチ205から出力された復号2値化シンボル系列内の2値化シンボル毎に、当該2値化シンボルが確率状態出力部202から出力された優勢シンボル情報が示す優勢シンボルと一致するか否かを判定し、その判定結果を2値化シンボルとして多値化部207に出力する。
多値化部207は、bin出力部206から2値化シンボルの系列を受けると、その2値化シンボルの系列を多値化して、多値シンボル系列を出力する。
When the
That is, for each binarized symbol in the decoded binarized symbol sequence output from the
When the
従来のエントロピー符号化装置は以上のように構成されているので、可変長符号化手法と比べて、効率よくデータ圧縮することができる。しかし、V2V符号化器1061〜106Nが符号化2値化シンボル系列を可変長符号化しているため、エントロピー復号装置側では、可変長符号を可変長復号しなければならず、処理負荷が大きくなるなどの課題があった。
Since the conventional entropy encoding apparatus is configured as described above, data compression can be performed more efficiently than in the variable length encoding method. However, since the
この発明は上記のような課題を解決するためになされたもので、高いデータ圧縮率を維持しながら、エントロピー復号装置側での復号処理の処理負荷を軽減することができるエントロピー符号化装置及びエントロピー符号化方法を得ることを目的とする。
また、この発明は、処理負荷が少ない復号処理で、符号化データから2値化シンボル系列を復号することができるエントロピー復号装置及びエントロピー復号方法を得ることを目的とする。
The present invention has been made to solve the above-described problems. An entropy encoding device and an entropy capable of reducing the processing load of decoding processing on the entropy decoding device side while maintaining a high data compression rate. The object is to obtain an encoding method.
Another object of the present invention is to obtain an entropy decoding device and an entropy decoding method capable of decoding a binary symbol sequence from encoded data with a decoding process with a low processing load.
この発明に係るエントロピー符号化装置は、多値シンボル系列内の多値シンボルを2値化して、長さが1以上の2値化シンボルの系列を出力するとともに、2値化シンボルが多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を出力するシンボル2値化手段と、シンボル2値化手段から出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボルを示す優勢シンボル情報を出力するとともに、優勢シンボルの生起確率を示す確率情報を出力する確率情報出力手段と、確率情報出力手段から出力された優勢シンボル情報を参照して、シンボル2値化手段から出力された2値化シンボル系列内の各2値化シンボルが優勢シンボルであるか否かを示すフラグを符号化2値化シンボルとして出力する符号化2値化シンボル出力手段と、確率情報出力手段から出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを参照して、符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力する固定長符号化手段と、固定長符号化手段から出力された固定長符号を多重化し、その多重化結果を符号化データとして出力する多重化手段とを備え、固定長符号化手段は、相互に異なる符号化テーブルを実装している複数の固定長符号化器と、複数の固定長符号化器の中から、確率情報出力手段から出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを実装している固定長符号化器を選択して、符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を固定長符号化器に与える切替スイッチとを備え、固定長符号化器が符号化テーブルを参照して、符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力し、複数の固定長符号化器は、出力される全ての固定長符号が同一の符号長となるように構成されているものである。 The entropy coding apparatus according to the present invention binarizes a multilevel symbol in a multilevel symbol sequence, outputs a sequence of binarized symbols having a length of 1 or more, and the binarized symbol is a multilevel symbol There is a high probability of occurrence in the binarized symbol corresponding to the bin number output from the binarized symbol output from the binarized symbol that outputs the bin number indicating the number of the binarized symbol related to Probability symbol output indicating the dominant symbol and outputting probability information indicating the probability of occurrence of the dominant symbol, probability information output means, and symbol binarization with reference to the dominant symbol information output from the probability information output means A flag indicating whether or not each binarized symbol in the binarized symbol sequence output from the means is a dominant symbol is output as an encoded binarized symbol. The encoded binarized symbol output means and the encoded binarized symbol output means output with reference to the encoding table corresponding to the occurrence probability of the dominant symbol indicated by the probability information output from the probability information output means A fixed-length encoding means for encoding a sequence of encoded binary symbols and outputting a fixed-length code as a result of the encoding; a fixed-length code output from the fixed-length encoding means ; A fixed-length encoding unit that includes a plurality of fixed-length encoders that implement different encoding tables and a plurality of fixed-length encoding units. A fixed-length encoder mounted with an encoding table corresponding to the probability of occurrence of the dominant symbol indicated by the probability information output from the probability information output means is selected from among the generators, and the encoded binary symbol output means And a changeover switch for giving a sequence of encoded binary symbols output to the fixed-length encoder, and the fixed-length encoder refers to the encoding table and outputs from the encoded binary symbol output means The sequence of the encoded binary symbols is fixed-length encoded, and a fixed-length code as a result of the encoding is output, and a plurality of fixed-length encoders have the same code for all the fixed-length codes to be output It is comprised so that it may become long .
この発明によれば、多値シンボル系列内の多値シンボルを2値化して、長さが1以上の2値化シンボルの系列を出力するとともに、その2値化シンボルが上記多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を出力するシンボル2値化手段と、シンボル2値化手段から出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボルを示す優勢シンボル情報を出力するとともに、その優勢シンボルの生起確率を示す確率情報を出力する確率情報出力手段と、確率情報出力手段から出力された優勢シンボル情報を参照して、シンボル2値化手段から出力された2値化シンボル系列内の各2値化シンボルが優勢シンボルであるか否かを示すフラグを符号化2値化シンボルとして出力する符号化2値化シンボル出力手段と、確率情報出力手段から出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを参照して、符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力する固定長符号化手段と、固定長符号化手段から出力された固定長符号を多重化し、その多重化結果を符号化データとして出力する多重化手段とを備え、固定長符号化手段は、相互に異なる符号化テーブルを実装している複数の固定長符号化器と、複数の固定長符号化器の中から、確率情報出力手段から出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを実装している固定長符号化器を選択して、符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を固定長符号化器に与える切替スイッチとを備え、固定長符号化器が符号化テーブルを参照して、符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力し、複数の固定長符号化器は、出力される全ての固定長符号が同一の符号長となるように構成されるように構成したので、高いデータ圧縮率を維持しながら、エントロピー復号装置側での復号処理の処理負荷を軽減することができる効果がある。 According to the present invention, the multilevel symbol in the multilevel symbol sequence is binarized to output a sequence of binarized symbols having a length of 1 or more, and the binarized symbol relates to the multilevel symbol. Symbol binarizing means for outputting a bin number indicating what numbered binarized symbol, and a dominant symbol having a high probability of occurring in the binarized symbol corresponding to the bin number output from the symbol binarizing means A probability information output means for outputting probability information indicating the occurrence probability of the dominant symbol, and a symbol binarization means with reference to the dominant symbol information output from the probability information output means. Encoded binary that outputs, as an encoded binary symbol, a flag indicating whether or not each binary symbol in the binary symbol sequence output from is a dominant symbol The encoding binarization output from the encoded binarized symbol output unit with reference to the encoding table corresponding to the occurrence probability of the dominant symbol indicated by the probability output from the symbol output unit and the probability information output unit A fixed-length encoding unit that outputs a fixed-length code that is a result of encoding, and a fixed-length code output from the fixed-length encoding unit is multiplexed, and the multiplexed result is encoded. Multiplexing means for outputting as encoded data, and the fixed length encoding means includes a plurality of fixed length encoders mounting different encoding tables and a plurality of fixed length encoders, A fixed-length encoder mounted with a coding table corresponding to the probability of occurrence of the dominant symbol indicated by the probability information output from the probability information output means is selected and output from the encoded binary symbol output means. And a change-over switch for supplying a sequence of the encoded binary symbols to the fixed-length encoder. The fixed-length encoder refers to the encoding table and outputs the code output from the encoded binary symbol output means. A sequence of binarized symbols is fixed-length encoded, and a fixed-length code that is a result of the encoding is output, and a plurality of fixed-length encoders have the same code length for all the fixed-length codes that are output configured so constructed to so that as, while maintaining a high data compression rate, there is an effect that it is possible to reduce the processing load of the decoding processing in the entropy decoding apparatus side.
実施の形態1.
図1はこの発明の実施の形態1によるエントロピー符号化装置を示す構成図である。
図1において、2値化部1は多値シンボルの2値化テーブルを参照して、その多値シンボル系列内の多値シンボルを2値化し、長さが1以上の2値化シンボルの系列を符号化bin出力部3に出力する処理を実施する。
また、2値化部1は多値シンボルの2値化テーブルを参照して、各2値化シンボルが上記多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を確率状態出力部2に出力する処理を実施する。
なお、2値化部1はシンボル2値化手段を構成している。
1 is a block diagram showing an entropy encoding apparatus according to
In FIG. 1, a
Also, the
The
確率状態出力部2は予めbin番号毎に、当該bin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボル(“0”又は“1”のうち、生起する確率が高い方の値を示すシンボル)を示す優勢シンボル情報と、その優勢シンボルの生起確率を示す確率情報を記憶しており、2値化部1から出力されたbin番号に対応する優勢シンボルを示す優勢シンボル情報を符号化bin出力部3に出力するとともに、その優勢シンボルの生起確率を示す確率情報を固定長符号化部4の切替スイッチ5に出力する処理を実施する。
なお、確率状態出力部2は確率情報出力手段を構成している。
For each bin number, the probability
The probability
符号化bin出力部3は確率状態出力部2から出力された優勢シンボル情報を参照して、2値化部1から出力された2値化シンボル系列内の各2値化シンボルが優勢シンボルであるか否かを示すフラグを符号化2値化シンボルとして固定長符号化部4の切替スイッチ5に出力する処理を実施する。
即ち、符号化bin出力部3は、2値化部1から出力された2値化シンボル系列内の2値化シンボル毎に、当該2値化シンボルが確率状態出力部2から出力された優勢シンボル情報が示す優勢シンボルと一致するか否かを判定し、その判定結果を符号化2値化シンボルとして固定長符号化部4の切替スイッチ5に出力する処理を実施する。
なお、符号化bin出力部3は符号化2値化シンボル出力手段を構成している。
The encoding
That is, the encoding
The encoded
固定長符号化部4は確率状態出力部2から出力された確率情報が示す優勢シンボルの生起確率に対応する可変長bin固定長符号化テーブル(V2Fテーブル:Variable Length Code to Fixed length Code Table)を参照して、符号化bin出力部3から出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を符号化データ出力部8に出力する処理を実施する。なお、固定長符号化部4は固定長符号化手段を構成している。
The fixed
固定長符号化部4の切替スイッチ5はN個のV2F符号化器71〜7Nの中から、確率状態出力部2から出力された確率情報が示す優勢シンボルの生起確率に対応するV2Fテーブルを実装しているV2F符号化器7を選択して、符号化bin出力部3から出力された符号化2値化シンボル系列を当該V2F符号化器7の前段に配置されているbinバッファ6に格納する処理を実施する。
binバッファ61〜6Nは符号化bin出力部3から出力された符号化2値化シンボル系列を一時的に格納するメモリである。
The
The bin buffers 6 1 to 6 N are memories that temporarily store the encoded binary symbol sequence output from the encoded
固定長符号化器であるV2F符号化器71〜7Nは実装しているV2Fテーブルを参照して、binバッファ61〜6Nに格納されている符号化2値化シンボル系列を固定長符号化し、その符号化結果である固定長符号を符号化データ出力部8に出力する処理を実施する。
なお、V2F符号化器71〜7Nから出力される全ての固定長符号は同一の符号長である。
符号化データ出力部8は固定長符号化部4から出力された固定長符号を多重化し、その多重化結果を符号化データとして出力する処理を実施する。なお、符号化データ出力部8は多重化手段を構成している。
The
Note that all the fixed length codes output from the
The encoded
図1の例では、エントロピー符号化装置の構成要素である2値化部1、確率状態出力部2、符号化bin出力部3、固定長符号化部4及び符号化データ出力部8のそれぞれが専用のハードウェア(例えば、CPUを実装している半導体集積回路、あるいは、ワンチップマイコンなど)で構成されているものを想定しているが、エントロピー符号化装置の全部又は一部がコンピュータで構成されるようにしてもよく、その場合には、2値化部1、確率状態出力部2、符号化bin出力部3、固定長符号化部4及び符号化データ出力部8の処理内容を記述しているプログラムの全部又は一部をコンピュータのメモリに格納し、当該コンピュータのCPUが当該メモリに格納されているプログラムを実行するようにすればよい。
図2はこの発明の実施の形態1によるエントロピー符号化装置の処理内容を示すフローチャートである。
In the example of FIG. 1, each of the
FIG. 2 is a flowchart showing the processing contents of the entropy coding apparatus according to
次に動作について説明する。
2値化部1は、多値シンボル系列を入力すると、予め多値シンボルの種類に応じて決められた規則にしたがって、その多値シンボル系列内の多値シンボルを2値化し、1以上の2値化シンボルの系列を符号化bin出力部3に出力する(ステップST1)。
ここで、図3は多値シンボルの2値化テーブルの一例を示す説明図である。
2値化部1に入力される多値シンボルの種類(例えば、画像符号化におけるマクロブロックタイプ、DCT係数など)はシンタックスで決められているため、2値化部1は入力される多値シンボルの種類を認識することができる。
Next, the operation will be described.
When the multi-level symbol sequence is input, the
Here, FIG. 3 is an explanatory diagram showing an example of a binarization table for multilevel symbols.
Since the types of multilevel symbols input to the binarization unit 1 (for example, macroblock types in image encoding, DCT coefficients, etc.) are determined by syntax, the
図3の例では、入力された多値シンボルの種類が多値シンボルAであれば、(a)の2値化テーブルを参照して、多値シンボル系列内の多値シンボルを2値化し、多値シンボルの種類が多値シンボルBであれば、(b)の2値化テーブルを参照して、多値シンボル系列内の多値シンボルを2値化する。
また、多値シンボルの種類が多値シンボルCであれば、(c)の2値化テーブルを参照して、多値シンボル系列内の多値シンボルを2値化する。
例えば、多値シンボルの種類が多値シンボルAであり、その多値シンボルの値が“2”であれば、2値化部1から2値化シンボルとして、“1”、“0”、“1”の系列が出力される。
In the example of FIG. 3, if the type of the input multilevel symbol is the multilevel symbol A, the multilevel symbol in the multilevel symbol sequence is binarized with reference to the binarization table of (a), If the type of the multilevel symbol is the multilevel symbol B, the multilevel symbol in the multilevel symbol sequence is binarized with reference to the binarization table of (b).
If the type of multi-level symbol is multi-level symbol C, the multi-level symbol in the multi-level symbol sequence is binarized with reference to the binarization table of (c).
For example, if the type of the multi-level symbol is the multi-level symbol A and the value of the multi-level symbol is “2”, the
また、2値化部1は、多値シンボルの2値化テーブルを参照して、1以上の2値化シンボルが多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を確率状態出力部2に出力する。
例えば、“2”の多値シンボルに対応する2値化シンボルとして、“1”、“0”、“1”の系列を出力する場合、“1”、“0”、“1”の系列に対応するbin番号として、“0”、“1”、“2”、を出力する。
また、“7”の多値シンボルに対応する2値化シンボルとして、“1”、“1”、“1”、“0”、“0”の系列を出力する場合、“1”、“1”、“1” 、“0”、“0”の系列に対応するbin番号として、“0”、“1”、“2”、“3”、“4”を出力する。
In addition, the
For example, when a sequence of “1”, “0”, “1” is output as a binary symbol corresponding to a multilevel symbol of “2”, the sequence of “1”, “0”, “1” is output. As the corresponding bin number, “0”, “1”, “2” are output.
Further, when outputting a sequence of “1”, “1”, “1”, “0”, “0” as a binarized symbol corresponding to the multi-value symbol of “7”, “1”, “1” “0”, “1”, “2”, “3”, “4” are output as the bin numbers corresponding to the sequences “1”, “0”, “0”.
確率状態出力部2は、予めbin番号毎に、当該bin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボル(“0”又は“1”のうち、生起する確率が高い方の値を示すシンボル)を示す優勢シンボル情報と、その優勢シンボルの生起確率を示す確率情報を記憶している。
例えば、図3(a)の2値化テーブルの場合、“0”〜“9”の値をとる多値シンボルにおいて、“0”の多値シンボルが発生する確率が約70%であるような場合には、“0”のbin番号に対応する2値化シンボルにおいて、“0”のシンボルが生起される確率が約70%となるので、当該2値化シンボルにおける優勢シンボルは“0”のシンボルとなる。また、この優勢シンボルの生起確率は約70%となる。
確率状態出力部2は、2値化部1からbin番号を受けると、そのbin番号に対応する優勢シンボルを示す優勢シンボル情報を符号化bin出力部3に出力するとともに、その優勢シンボルの生起確率を示す確率情報を固定長符号化部4の切替スイッチ5に出力する(ステップST2)。
The probability
For example, in the case of the binarization table shown in FIG. 3A, the probability that a multi-valued symbol of “0” will occur in a multi-valued symbol having values of “0” to “9” is about 70%. In this case, in the binarized symbol corresponding to the bin number of “0”, the probability that the symbol of “0” is generated is about 70%. Therefore, the dominant symbol in the binarized symbol is “0”. Become a symbol. The probability of occurrence of this dominant symbol is about 70%.
When the probability
符号化bin出力部3は、2値化部1から2値化シンボル系列を受け、確率状態出力部2から優勢シンボル情報を受けると、その優勢シンボル情報を参照して、その2値化シンボル系列内の各2値化シンボルが優勢シンボルであるか否かを示すフラグを符号化2値化シンボルとして固定長符号化部4の切替スイッチ5に出力する(ステップST3)。
即ち、符号化bin出力部3は、2値化部1から出力された2値化シンボル系列内の2値化シンボル毎に、当該2値化シンボルが確率状態出力部2から出力された優勢シンボル情報が示す優勢シンボルと一致するか否かを判定し、その判定結果を符号化2値化シンボル(例えば、一致=1、不一致=0)として固定長符号化部4の切替スイッチ5に出力する。
When the encoded
That is, the encoding
固定長符号化部4は、符号化bin出力部3から符号化2値化シンボルの系列を受けると、確率状態出力部2から出力された確率情報が示す優勢シンボルの生起確率に対応するV2Fテーブルを参照して、その符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を符号化データ出力部8に出力する。
以下、固定長符号化部4の処理内容を具体的に説明する。
When the fixed-
Hereinafter, the processing content of the fixed-
固定長符号化部4の切替スイッチ5は、符号化bin出力部3から符号化2値化シンボルの系列を受けると、N個のV2F符号化器71〜7Nの中から、確率状態出力部2から出力された確率情報が示す優勢シンボルの生起確率に対応するV2Fテーブルを実装しているV2F符号化器7を選択して(ステップST4)、その符号化2値化シンボルの系列を当該V2F符号化器7の前段に配置されているbinバッファ6に格納する(ステップST5)。
ここで、図4は優勢シンボルの生起確率に対応するV2Fテーブルの一例を示す説明図である。
When the
Here, FIG. 4 is an explanatory diagram showing an example of the V2F table corresponding to the occurrence probability of the dominant symbol.
例えば、エントロピー符号化装置が4個のV2F符号化器71〜74から構成されており、V2F符号化器71がV2Fテーブル1を実装し、V2F符号化器72がV2Fテーブル2を実装し、V2F符号化器73がV2Fテーブル3を実装し、V2F符号化器74がV2Fテーブル4を実装している場合、図4の例では、優勢シンボルの生起確率が0.9375以上であれば、V2Fテーブル1を実装しているV2F符号化器71を選択し、優勢シンボルの生起確率が0.9375未満で0.7794以上であれば、V2Fテーブル2を実装しているV2F符号化器72を選択する。
また、優勢シンボルの生起確率が0.7794未満で0.6369以上であれば、V2Fテーブル3を実装しているV2F符号化器73を選択し、優勢シンボルの生起確率が0.6369未満で0.5000以上であれば、V2Fテーブル4を実装しているV2F符号化器74を選択する。
For example, entropy coding unit is constituted of four
If the occurrence probability of the dominant symbol is less than 0.7794 and 0.6369 or more, the V2F encoder 73 that implements the V2F table 3 is selected, and the occurrence probability of the dominant symbol is less than 0.6369. If it is 0.5000 or more, the V2F encoder 74 mounted with the V2F table 4 is selected.
V2F符号化器71〜7Nは、実装しているV2Fテーブルを参照して、binバッファ61〜6Nに格納されている符号化2値化シンボル系列を固定長符号化し、その符号化結果である固定長符号を符号化データ出力部8に出力する(ステップST6)。
このように、V2F符号化器71〜7Nが、優勢シンボルの生起確率に対応するV2Fテーブルを参照して、符号化2値化シンボルの系列を固定長符号化することにより、それぞれの優勢シンボルの生起確率に適するエントロピー符号化がなされるため、効率よくエントロピー符号化を行うことができる。
即ち、V2Fテーブルの入力側である符号化2値化シンボルの系列(可変長binコード)の平均符号長が、V2Fテーブルの固定長符号の符号長にできるだけ近い値となるように、優勢シンボルの生起確率に応じてV2Fテーブルを切り替えることにより、エントロピー限界に近い符号化効率での符号化が実現される。
また、V2F符号化器71〜7Nから出力される全ての固定長符号が同一の符号長であるため、後述する符号化データ出力部8における符号化データの多重化処理の簡易化を図ることができ、従来の手法と比べて、処理量を低減することが可能となる。
The
As described above, the
That is, the dominant symbol of the dominant symbol is set so that the average code length of the encoded binary symbol sequence (variable length bin code) on the input side of the V2F table is as close as possible to the code length of the fixed length code of the V2F table. By switching the V2F table according to the occurrence probability, encoding with encoding efficiency close to the entropy limit is realized.
Further, since all the fixed-length codes output from the
符号化データ出力部8は、固定長符号化部4から出力された固定長符号を多重化し、その多重化結果を符号化データとして出力する(ステップST7)。
例えば、多値化シンボル系列の全体を符号化し、V2F符号化器7の番号順にまとめて符号化データを多重化するようにしてもよいし、図5のエントロピー復号装置において、復号処理を実施する際に、binバッファ151〜15Nが空になる順序にしたがって符号化データを順次出力するようにしてもよい。
なお、V2F符号化器7の番号順にまとめて符号化データを多重化するように構成する場合には、V2F符号化器7の番号ごとの符号化データの終端を示す特殊コードを多重化することにより、エントロピー復号装置において固定長符号に対応するV2F符号化器7の番号を特定することができる。特殊コードとしては、例えば“0”が12個連続したコードとし、“0”が8個連続で続く場合には、必ず直後に“1”が4個連続したコードを多重化することにより、実現することができる。当然、その他のいかなる方法であっても特殊コードとして認識できる手法であれば適用することができる。
ステップST1〜ST7の処理は、全ての多値シンボル系列の処理が終了するまで繰り返し実施される(ステップST8)。
The encoded
For example, the entire multilevel symbol sequence may be encoded, and the encoded data may be multiplexed together in the order of the numbers of the
When the encoded data is multiplexed in the order of the numbers of the
The processing of steps ST1 to ST7 is repeatedly performed until the processing of all multilevel symbol sequences is completed (step ST8).
以上で明らかなように、この実施の形態1によれば、多値シンボル系列内の多値シンボルを2値化して、1以上の2値化シンボルの系列を出力するとともに、その2値化シンボルが上記多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を出力する2値化部1と、2値化部1から出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボルを示す優勢シンボル情報を出力するとともに、その優勢シンボルの生起確率を示す確率情報を出力する確率状態出力部2と、確率状態出力部2から出力された優勢シンボル情報を参照して、2値化部1から出力された2値化シンボル系列内の各2値化シンボルが優勢シンボルであるか否かを示すフラグを符号化2値化シンボルとして出力する符号化bin出力部3と、確率状態出力部2から出力された確率情報が示す優勢シンボルの生起確率に対応するV2Fテーブルを参照して、符号化bin出力部3から出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力する固定長符号化部4とを設け、符号化データ出力部8が、固定長符号化部4から出力された固定長符号を多重化し、その多重化結果を符号化データとして出力するように構成したので、高いデータ圧縮率を維持しながら、エントロピー復号装置側での復号処理の処理負荷を軽減することができる効果を奏する。
なお、この実施の形態1では、V2F符号化器71〜7Nから出力される全ての固定長符号が同一の符号長であるように構成したが、それぞれ異なる長さの固定長符号を出力するように構成しても、程度は少ないが、従来に比べてエントロピー復号装置側での復号処理の処理負荷を軽減する効果は得られる。
As is apparent from the above, according to the first embodiment, the multi-level symbol in the multi-level symbol sequence is binarized to output a sequence of one or more binarized symbols, and the binarized symbol In a
In the first embodiment, all the fixed-length codes output from the
実施の形態2.
図5はこの発明の実施の形態2によるエントロピー復号装置を示す構成図である。
図5において、符号化データ入力部11は図1のエントロピー符号化装置により生成された符号化データを入力すると、その符号化データから多重化されている固定長符号を抽出して、その固定長符号を固定長復号部13のF2V復号器14に出力する処理を実施する。
即ち、符号化データ入力部11はV2F符号化器71により生成された固定長符号についてはF2V復号器141に出力し、V2F符号化器7N−1により生成された固定長符号についてはF2V復号器14N−1に出力し、V2F符号化器7Nにより生成された固定長符号についてはF2V復号器14Nに出力する処理を実施する。
また、符号化データ入力部11は多値シンボルの2値化テーブルを参照して、その固定長符号に対応する1以上の2値化シンボルが多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を確率状態出力部12及び多値化部18に出力する処理を実施する。
なお、符号化データ入力部11は固定長符号抽出手段を構成している。
FIG. 5 is a block diagram showing an entropy decoding apparatus according to
In FIG. 5, when the encoded
That is, for a fixed length code encoded
In addition, the encoded
The encoded
確率状態出力部12は予めbin番号毎に、当該bin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボル(“0”又は“1”のうち、生起する確率が高い方の値を示すシンボル)を示す優勢シンボル情報と、その優勢シンボルの生起確率を示す確率情報を記憶しており、符号化データ入力部11から出力されたbin番号に対応する優勢シンボルを示す優勢シンボル情報をbin出力部17に出力するとともに、その優勢シンボルの生起確率を示す確率情報を固定長復号部13の切替スイッチ16に出力する処理を実施する。なお、確率状態出力部12は確率情報出力手段を構成している。
For each bin number, the probability
固定長復号部13は優勢シンボルの生起確率に対応する固定長符号可変長bin復号テーブル(F2Vテーブル:Fixed Length Code to Variable Length Code table)を参照して、符号化データ入力部11から出力された固定長符号を固定長復号し、その復号結果である復号2値化シンボル系列をbin出力部17に出力する処理を実施する。なお、固定長復号部13は固定長復号手段を構成している。
The fixed
固定長復号器であるF2V復号器141〜14NはV2F符号化器71〜7Nが実装しているV2Fテーブルと逆処理になるF2Vテーブルを実装しており、符号化データ入力部11から固定長符号を受けると、実装しているF2Vテーブルを参照して、その固定長符号を固定長復号し、その復号結果である復号2値化シンボル系列をbinバッファ151〜15Nに格納する処理を実施する。
なお、F2V復号器141〜14Nにより復号される全ての固定長符号は同一の符号長である。
The F2V decoders 14 1 to 14 N , which are fixed length decoders, are mounted with an F2V table that is reversely processed with the V2F table mounted by the
Note that all the fixed-length codes decoded by the
binバッファ151〜15NはF2V復号器141〜14Nにより復号された復号2値化シンボル系列を一時的に格納するメモリである。
切替スイッチ16はbinバッファ151〜15Nの中から、確率状態出力部12から出力された確率情報が示す優勢シンボルの生起確率に対応するF2Vテーブルを実装しているF2V復号器14の復号結果を格納しているbinバッファ15を選択し、そのbinバッファ15に格納されている復号結果である復号2値化シンボル系列をbin出力部17に出力する処理を実施する。
The bin buffers 15 1 to 15 N are memories that temporarily store the decoded binary symbol sequences decoded by the
The
bin出力部17は切替スイッチ16から復号2値化シンボル系列を受けると、確率状態出力部12から出力された優勢シンボル情報を参照して、その復号2値化シンボル系列内の各復号2値化シンボルが優勢シンボルであるか否かを示すフラグを2値化シンボルとして多値化部18に出力する処理を実施する。
即ち、bin出力部17は切替スイッチ16から出力された復号2値化シンボル系列内の2値化シンボル毎に、当該2値化シンボルが確率状態出力部12から出力された優勢シンボル情報が示す優勢シンボルと一致するか否かを判定し、その判定結果を2値化シンボルとして多値化部18に出力する処理を実施する。
なお、bin出力部17は2値化シンボル出力手段を構成している。
When the
That is, for each binarized symbol in the decoded binarized symbol sequence output from the
The
多値化部18は多値シンボルの2値化テーブルを参照して、bin出力部17から出力された2値化シンボルの系列を多値化して、多値シンボル系列を出力する処理を実施する。なお、多値化部18はシンボル多値化手段を構成している。
The
図5の例では、エントロピー復号装置の構成要素である符号化データ入力部11、確率状態出力部12、固定長復号部13、bin出力部17及び多値化部18のそれぞれが専用のハードウェア(例えば、CPUを実装している半導体集積回路、あるいは、ワンチップマイコンなど)で構成されているものを想定しているが、エントロピー復号装置の全部又は一部がコンピュータで構成されるようにしてもよく、その場合には、符号化データ入力部11、確率状態出力部12、固定長復号部13、bin出力部17及び多値化部18の処理内容を記述しているプログラムの全部又は一部をコンピュータのメモリに格納し、当該コンピュータのCPUが当該メモリに格納されているプログラムを実行するようにすればよい。
図6はこの発明の実施の形態2によるエントロピー復号装置の処理内容を示すフローチャートである。
In the example of FIG. 5, each of the encoded
FIG. 6 is a flowchart showing the processing contents of the entropy decoding apparatus according to
次に動作について説明する。
符号化データ入力部11は、図1のエントロピー符号化装置により生成された符号化データを入力すると、その符号化データから多重化されている固定長符号を抽出して、その固定長符号を固定長復号部13のF2V復号器14に出力する(ステップST11)。
符号化データを与えるF2V復号器14の順番は、図1のエントロピー符号化装置との間で予め決められており、図1のエントロピー符号化装置の符号化データ出力部8において、多値化シンボル系列の全体を符号化し、V2F符号化器7の番号順にまとめて符号化データを多重化しているような場合には、F2V復号器14の番号順に符号化データを与えるようにする。
また、符号化データ出力部8において、binバッファ151〜15Nが空になる順序にしたがって符号化データを順次出力しているような場合には、空になっているbinバッファ15の前段のF2V復号器14に符号化データを与えるようにする。
Next, the operation will be described.
When the encoded data generated by the entropy encoding apparatus in FIG. 1 is input, the encoded
The order of the
When the encoded
即ち、符号化データ入力部11は、V2F符号化器71により生成された固定長符号についてはF2V復号器141に出力し、V2F符号化器7N−1により生成された固定長符号についてはF2V復号器14N−1に出力し、V2F符号化器7Nにより生成された固定長符号についてはF2V復号器14Nに出力する。
That is, the encoded
また、符号化データ入力部11は、図3の多値シンボルの2値化テーブルを参照して、その固定長符号に対応する1以上の2値化シンボルが多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を確率状態出力部12及び多値化部18に出力する。
なお、符号化データ出力部8において、V2F符号化器7の番号順にまとめて符号化データを多重化するように構成する場合には、V2F符号化器7の番号ごとの符号化データの終端を示す特殊コードが多重化されているため、エントロピー復号装置において、固定長符号に対応するV2F符号化器7の番号を特定することができ、V2F符号化器7の番号に対応する2値化テーブルを参照する。
特殊コードとしては、例えば“0”が12個連続したコードとし、“0”が8個連続で続く場合には、必ず直後に“1”が4個連続したコードを多重化するように構成していれば、符号化データ入力部11では、“0”が8個連続で続くとき、その直後に4個の連続した“1”が続く場合には4個連続した“1”のコードを復号せずにスキップし、“0”が8個連続で続き、その直後に4個の連続した“0”が続く場合には特殊コードと認識することができる。当然、その他のいかなる方法であっても特殊コードとして認識できる手法であれば適用することができる。
また、符号化データ出力部8において、復号処理を実施する際にbinバッファ151〜15Nが空になる順序にしたがって符号化データを順次出力するように構成する場合には、多値化部18から出力される多値シンボルの種類(例えば、マクロブロックタイプ、DCT係数など)はシンタックスで決められているため、binバッファ151〜15Nが空になった場合に、次に復号すべき多値シンボルの種類およびbin番号を特定することができ、そのbin番号の優勢シンボルの生起確率に対応するF2V復号器に次の固定長符号を出力し、対応する2値化テーブルを参照する。
例えば、図4(a)のV2Fテーブル1と逆処理になるF2Vテーブル1を実装しているV2F符号化器71に対して符号化データを出力する場合において、例えば、多値シンボルの種類が多値シンボルAであり、固定長符号が“1111”であれば、2値化シンボルの系列が“1111”となり(図4(a)のV2Fテーブル1を参照)、その2値化シンボルの系列に対応するbin番号が“0”、“1”、“2”、“3”となる(図3(a)の2値化テーブルを参照)。
Also, the encoded
When the encoded
As a special code, for example, “0” is a sequence of 12 consecutive codes, and when “0” continues for 8 sequences, a code including 4 consecutive “1” s is always multiplexed. If so, the encoded
When the encoded
For example, in the case of outputting the coded data to FIG 4 V2F Table 1 and
確率状態出力部12は、図1の確率状態出力部2と同様に、予めbin番号毎に、当該bin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボル(“0”又は“1”のうち、生起する確率が高い方の値を示すシンボル)を示す優勢シンボル情報と、その優勢シンボルの生起確率を示す確率情報を記憶している。
確率状態出力部12は、符号化データ入力部11からbin番号を受けると、そのbin番号に対応する優勢シンボルを示す優勢シンボル情報をbin出力部17に出力するとともに、その優勢シンボルの生起確率を示す確率情報を固定長復号部13の切替スイッチ16に出力する(ステップST12)。
Like the probability
When the probability
固定長復号部13は、符号化データ入力部11から固定長符号を受けると、優勢シンボルの生起確率に対応するF2Vテーブルを参照して、その固定長符号を固定長復号し、その復号結果である復号2値化シンボル系列をbin出力部17に出力する。
以下、固定長復号部13の処理内容を具体的に説明する。
When the fixed
Hereinafter, the processing content of the fixed
固定長復号部13のF2V復号器141〜14Nは、V2F符号化器71〜7Nが実装しているV2Fテーブルと逆処理になるF2Vテーブルを実装しており、符号化データ入力部11から固定長符号を受けると、実装しているF2Vテーブルを参照して、その固定長符号を固定長復号し(ステップST13)、その復号結果である復号2値化シンボル系列をbinバッファ151〜15Nに格納する(ステップST14)。
このように、F2V復号器141〜14Nが、優勢シンボルの生起確率に対応するF2Vテーブルを参照して、固定長符号を固定長復号することにより、好適に復号2値化シンボル系列を得ることができる。
また、F2V復号器141〜14Nにより復号される全ての固定長符号が同一の符号長であるため、符号化データの復号処理を簡易に構成できるようになり、従来の手法と比べて処理量を低減することが可能となる。
The F2V decoders 14 1 to 14 N of the fixed-
In this way, the
In addition, since all the fixed length codes decoded by the
切替スイッチ16は、binバッファ151〜15Nの中から、確率状態出力部12から出力された確率情報が示す優勢シンボルの生起確率に対応するF2Vテーブルを実装しているF2V復号器14の復号結果を格納しているbinバッファ15を選択し、そのbinバッファ15に格納されている復号結果である復号2値化シンボル系列をbin出力部17に出力する(ステップST15)。
The
例えば、エントロピー復号装置が4個のF2V復号器141〜144から構成されており、F2V復号器141がF2Vテーブル1を実装し、F2V復号器142がF2Vテーブル2を実装し、F2V復号器143がF2Vテーブル3を実装し、F2V復号器144がF2Vテーブル4を実装している場合、例えば、優勢シンボルの生起確率が0.9375以上であれば、F2Vテーブル1を実装しているF2V復号器141を選択し、優勢シンボルの生起確率が0.9375未満で0.7794以上であれば、F2Vテーブル2を実装しているF2V復号器142を選択する。
また、優勢シンボルの生起確率が0.7794未満で0.6369以上であれば、F2Vテーブル3を実装しているF2V復号器143を選択し、優勢シンボルの生起確率が0.6369未満で0.5000以上であれば、F2Vテーブル4を実装しているF2V復号器144を選択する。
For example, entropy decoding unit is constituted of four
If the occurrence probability of the dominant symbol is less than 0.7794 and 0.6369 or more, the F2V decoder 143 that implements the F2V table 3 is selected, and the occurrence probability of the dominant symbol is less than 0.6369 and 0. If it is 5000 or more, the F2V decoder 144 that implements the F2V table 4 is selected.
bin出力部17は、切替スイッチ16から復号2値化シンボル系列を受けると、確率状態出力部12から出力された優勢シンボル情報を参照して、その復号2値化シンボル系列内の各復号2値化シンボルが優勢シンボルであるか否かを示すフラグを2値化シンボルとして多値化部18に出力する(ステップST16)。
即ち、bin出力部17は、切替スイッチ16から出力された復号2値化シンボル系列内の2値化シンボル毎に、当該2値化シンボルが確率状態出力部12から出力された優勢シンボル情報が示す優勢シンボルと一致するか否かを判定し、その判定結果を2値化シンボルとして多値化部18に出力する。
When the
That is, the
多値化部18は、bin出力部17から2値化シンボル系列を受け、符号化データ入力部11からbin番号を受けると、図3の多値シンボルの2値化テーブルを参照して、その2値化シンボル系列とbin番号に対応する多値シンボルを特定し、その多値シンボルを出力する(ステップST17)。
例えば、多値シンボルの種類が多値シンボルAであるとき、2値化シンボルの系列が“1111”であり、その2値化シンボルの系列に対応するbin番号が“0”、“1”、“2”、“3”であれば、多値シンボルの値が“9”になる(図3(a)の2値化テーブルを参照)。
ステップST11〜ST17の処理は全ての符号化データの処理が終了するまで繰り返し実施される(ステップST18)。
When receiving the binarized symbol sequence from the
For example, when the type of the multilevel symbol is the multilevel symbol A, the binarized symbol sequence is “1111”, and the bin numbers corresponding to the binarized symbol sequence are “0”, “1”, If it is “2” or “3”, the value of the multilevel symbol is “9” (see the binarization table in FIG. 3A).
The processes in steps ST11 to ST17 are repeatedly performed until all the encoded data processes are completed (step ST18).
以上で明らかなように、この実施の形態2によれば、符号化データから多重化されている固定長符号を抽出して、その固定長符号を出力するとともに、その固定長符号に対応する1以上の2値化シンボルが多値シンボルに係る何番目の2値化シンボルであるかを示すbin番号を出力する符号化データ入力部11と、符号化データ入力部11から出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボルを示す優勢シンボル情報を出力するとともに、その優勢シンボルの生起確率を示す確率情報を出力する確率状態出力部12と、その優勢シンボルの生起確率に対応するF2Vテーブルを参照して、符号化データ入力部11から出力された固定長符号を固定長復号し、その復号結果である復号2値化シンボル系列を出力する固定長復号部13と、確率状態出力部12から出力された優勢シンボル情報を参照して、固定長復号部13から出力された復号2値化シンボル系列内の各復号2値化シンボルが優勢シンボルであるか否かを示すフラグを2値化シンボルとして出力するbin出力部17とを設け、多値化部18が、bin出力部17から出力された2値化シンボルの系列を多値化して、多値シンボルの系列を出力するように構成したので、処理負荷が少ない復号処理で、符号化データから2値化シンボル系列を復号して多値シンボルが得られる効果を奏する。
As apparent from the above, according to the second embodiment, the fixed-length code multiplexed from the encoded data is extracted, the fixed-length code is output, and 1 corresponding to the fixed-length code is output. The encoded
なお、本願発明はその発明の範囲内において、各実施の形態の自由な組み合わせ、あるいは各実施の形態の任意の構成要素の変形、もしくは各実施の形態において任意の構成要素の省略が可能である。 In the present invention, within the scope of the invention, any combination of the embodiments, or any modification of any component in each embodiment, or omission of any component in each embodiment is possible. .
1 2値化部(シンボル2値化手段)、2 確率状態出力部(確率情報出力手段)、3 符号化bin出力部(符号化2値化シンボル出力手段)、4 固定長符号化部(固定長符号化手段)、5 切替スイッチ、61〜6N binバッファ、71〜7N V2F符号化器(固定長符号化器)、8 符号化データ出力部(多重化手段)、11 符号化データ入力部(固定長符号抽出手段)、12 確率状態出力部(確率情報出力手段)、13 固定長復号部(固定長復号手段)、141〜14N F2V復号器(固定長復号器)、151〜15N binバッファ、16 切替スイッチ、17 bin出力部(2値化シンボル出力手段)、18 多値化部(シンボル多値化手段)、101 2値化部、102 確率状態出力部、103 符号化bin出力部、104 切替スイッチ、1051〜105N binバッファ、1061〜106N V2V符号化器、107 符号化データ出力部、201 符号化データ入力部、202 確率状態出力部、2031〜203N V2V復号器、2041〜204N binバッファ、205 切替スイッチ、206 bin出力部、207 多値化部。 1 Binarization unit (symbol binarization unit) 2 Probability state output unit (probability information output unit) 3 Coding bin output unit (encoded binary symbol output unit) 4 Fixed length coding unit (fixed) (Long encoding means), 5 selector switch, 6 1 to 6 N bin buffer, 7 1 to 7 N V2F encoder (fixed length encoder), 8 encoded data output unit (multiplexing means), 11 encoding Data input unit (fixed length code extracting unit), 12 probability state output unit (probability information output unit), 13 fixed length decoding unit (fixed length decoding unit), 14 1 to 14 N F2V decoder (fixed length decoder), 15 1 to 15 N bin buffer, 16 changeover switch, 17 bin output unit (binarized symbol output unit), 18 multilevel unit (symbol multilevel unit), 101 binarization unit, 102 probability state output unit, 103 Coding bin output unit, 1 04 changeover switch, 105 1 to 105 N bin buffer, 106 1 to 106 N V2V encoder, 107 encoded data output unit, 201 encoded data input unit, 202 probability state output unit, 203 1 to 203 N V2V decoder , 204 1 to 204 N bin buffer, 205 selector switch, 206 bin output unit, 207 multi-level unit.
Claims (4)
上記シンボル2値化手段から出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボルを示す優勢シンボル情報を出力するとともに、上記優勢シンボルの生起確率を示す確率情報を出力する確率情報出力手段と、
上記確率情報出力手段から出力された優勢シンボル情報を参照して、上記シンボル2値化手段から出力された2値化シンボル系列内の各2値化シンボルが優勢シンボルであるか否かを示すフラグを符号化2値化シンボルとして出力する符号化2値化シンボル出力手段と、
上記確率情報出力手段から出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを参照して、上記符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力する固定長符号化手段と、
上記固定長符号化手段から出力された固定長符号を多重化し、その多重化結果を符号化データとして出力する多重化手段とを備え、
上記固定長符号化手段は、相互に異なる符号化テーブルを実装している複数の固定長符号化器と、上記複数の固定長符号化器の中から、上記確率情報出力手段から出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを実装している固定長符号化器を選択して、上記符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を上記固定長符号化器に与える切替スイッチとを備え、
上記固定長符号化器が上記符号化テーブルを参照して、上記符号化2値化シンボル出力手段から出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力し、
上記複数の固定長符号化器は、出力される全ての固定長符号が同一の符号長となるように構成されている
ことを特徴とするエントロピー符号化装置。 The binarization of the multilevel symbol in the multilevel symbol sequence is performed to output a sequence of binarized symbols having a length of 1 or more, and the binarization number of the binarized symbol related to the multilevel symbol Symbol binarization means for outputting a bin number indicating whether it is a symbol;
The dominant symbol information indicating the dominant symbol having a high probability of occurring in the binarized symbol corresponding to the bin number output from the symbol binarizing means is output, and the probability information indicating the occurrence probability of the dominant symbol is output. Probability information output means;
A flag indicating whether or not each binarized symbol in the binarized symbol sequence output from the symbol binarizing means is a dominant symbol with reference to the dominant symbol information output from the probability information output means Encoded binary symbol output means for outputting as an encoded binary symbol;
A sequence of encoded binary symbols output from the encoded binary symbol output means with reference to an encoding table corresponding to the occurrence probability of the dominant symbol indicated by the probability information output from the probability information output means Fixed-length encoding means for encoding a fixed-length code and outputting a fixed-length code as a result of the encoding;
A multiplexing unit that multiplexes the fixed-length code output from the fixed-length encoding unit and outputs the multiplexed result as encoded data ;
The fixed-length encoding means includes a plurality of fixed-length encoders mounted with different encoding tables, and a probability output from the probability information output means from the plurality of fixed-length encoders. A sequence of encoded binary symbols output from the encoded binary symbol output means by selecting a fixed-length encoder mounted with an encoding table corresponding to the occurrence probability of the dominant symbol indicated by the information And a changeover switch for supplying the fixed length encoder to the fixed length encoder,
The fixed-length encoder refers to the encoding table, performs fixed-length encoding on the encoded binary symbol sequence output from the encoded binary symbol output means, and generates a fixed result that is the encoding result. Output a long code,
The plurality of fixed length encoders are configured such that all the fixed length codes to be output have the same code length.
An entropy encoding device characterized by that.
上記固定長符号抽出手段から出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボルを示す優勢シンボル情報を出力するとともに、上記優勢シンボルの生起確率を示す確率情報を出力する確率情報出力手段と、
上記優勢シンボルの生起確率に対応する復号テーブルを参照して、上記固定長符号抽出手段から出力された固定長符号を固定長復号し、その復号結果である復号2値化シンボル系列を出力する固定長復号手段と、
上記確率情報出力手段から出力された優勢シンボル情報を参照して、上記固定長復号手段から出力された復号2値化シンボル系列内の各復号2値化シンボルが優勢シンボルであるか否かを示すフラグを2値化シンボルとして出力する2値化シンボル出力手段と、
上記2値化シンボル出力手段から出力された2値化シンボルの系列を多値化して、多値シンボルの系列を出力するシンボル多値化手段とを備え、
上記固定長復号手段は、
相互に異なる復号テーブルを実装している複数の固定長復号器と、上記複数の固定長復号器の中から、上記確率情報出力手段から出力された確率情報が示す優勢シンボルの生起確率に対応する復号テーブルを実装している固定長復号器を選択して、上記固定長復号器の復号結果である復号2値化シンボルの系列を出力する切替スイッチとから構成され、
上記複数の固定長復号器により復号される全ての固定長符号が同一の符号長であることを特徴とするエントロピー復号装置。 The fixed-length code multiplexed from the encoded data is extracted and the fixed-length code is output, and at least one of the two or more binarized symbols corresponding to the fixed-length code is related to the multi-level symbol. Fixed-length code extraction means for outputting a bin number indicating whether it is a valued symbol;
Outputs dominant symbol information indicating a dominant symbol having a high probability of occurring in the binarized symbol corresponding to the bin number output from the fixed-length code extracting means, and outputs probability information indicating the occurrence probability of the dominant symbol. Probability information output means;
A fixed-length code that is fixed-length decoded from the fixed-length code extraction means with reference to a decoding table corresponding to the occurrence probability of the dominant symbol, and a decoded binary symbol sequence that is a decoding result is output. Long decoding means;
Referring to the dominant symbol information output from the probability information output means, indicates whether each decoded binary symbol in the decoded binary symbol sequence output from the fixed-length decoding means is a dominant symbol. Binary symbol output means for outputting a flag as a binary symbol;
Symbol multileveling means for multileveling the binarized symbol sequence output from the binarized symbol output means and outputting the multilevel symbol sequence ;
The fixed length decoding means is:
Corresponding to the probability of occurrence of the dominant symbol indicated by the probability information output from the probability information output means from among the plurality of fixed length decoders mounted with different decoding tables and the plurality of fixed length decoders A changeover switch that selects a fixed-length decoder that implements a decoding table and outputs a sequence of decoded binary symbols that is a decoding result of the fixed-length decoder;
An entropy decoding device, wherein all fixed length codes decoded by the plurality of fixed length decoders have the same code length.
確率情報出力手段が上記シンボル2値化処理ステップで出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボルを示す優勢シンボル情報を出力するとともに、上記優勢シンボルの生起確率を示す確率情報を出力する確率情報出力処理ステップと、
符号化2値化シンボル出力手段が上記確率情報出力処理ステップで出力された優勢シンボル情報を参照して、上記シンボル2値化処理ステップで出力された2値化シンボル系列内の各2値化シンボルが優勢シンボルであるか否かを示すフラグを符号化2値化シンボルとして出力する符号化2値化シンボル出力処理ステップと、
固定長符号化手段が上記確率情報出力処理ステップで出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを参照して、上記符号化2値化シンボル出力処理ステップで出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力する固定長符号化処理ステップと、
多重化手段が上記固定長符号化処理ステップで出力された固定長符号を多重化し、その多重化結果を符号化データとして出力する多重化処理ステップとを備え、
上記固定長符号化処理ステップでは、
複数の固定長符号化器が、相互に異なる符号化テーブルを参照し、
切替スイッチが、上記複数の固定長符号化器の中から、上記確率情報出力処理ステップで出力された確率情報が示す優勢シンボルの生起確率に対応する符号化テーブルを実装している固定長符号化器を選択して、上記符号化2値化シンボル出力処理ステップで出力された符号化2値化シンボルの系列を上記固定長符号化器に与え、
上記固定長符号化器が上記符号化テーブルを参照して、上記符号化2値化シンボル出力処理ステップで出力された符号化2値化シンボルの系列を固定長符号化し、その符号化結果である固定長符号を出力し、
上記複数の固定長符号化器が出力する全ての固定長符号は同一の符号長であることを特徴とするエントロピー符号化方法。 The symbol binarization means binarizes the multilevel symbols in the multilevel symbol sequence, outputs a sequence of binarized symbols having a length of 1 or more, and the binarized symbol relates to the multilevel symbol A symbol binarization processing step for outputting a bin number indicating the number of the binarized symbol;
The probability information output means outputs the dominant symbol information indicating the dominant symbol that has a high probability of occurring in the binarized symbol corresponding to the bin number output in the symbol binarization processing step, and the occurrence probability of the dominant symbol. A probability information output processing step for outputting the probability information shown;
Each binarized symbol in the binarized symbol sequence output in the symbol binarization processing step with reference to the dominant symbol information output by the encoded binarized symbol output means in the probability information output processing step An encoded binary symbol output processing step for outputting a flag indicating whether or not is a dominant symbol as an encoded binary symbol;
The fixed-length encoding means is output at the encoded binary symbol output processing step with reference to the encoding table corresponding to the occurrence probability of the dominant symbol indicated by the probability information output at the probability information output processing step. A fixed-length encoding processing step that performs fixed-length encoding on a sequence of encoded binary symbols and outputs a fixed-length code that is a result of the encoding;
A multiplexing unit that multiplexes the fixed-length code output in the fixed-length encoding processing step and outputs the multiplexing result as encoded data ;
In the fixed length encoding processing step,
A plurality of fixed length encoders refer to different encoding tables,
Fixed-length coding in which the changeover switch is mounted with a coding table corresponding to the occurrence probability of the dominant symbol indicated by the probability information output in the probability information output processing step from among the plurality of fixed-length encoders And a sequence of the encoded binary symbols output in the encoded binary symbol output processing step is provided to the fixed-length encoder,
The fixed-length encoder refers to the encoding table, performs fixed-length encoding on the encoded binary symbol output sequence output in the encoded binary symbol output processing step, and shows the encoding result. Outputs a fixed-length code,
An entropy encoding method, wherein all fixed length codes output from the plurality of fixed length encoders have the same code length.
確率情報出力手段が上記固定長符号抽出処理ステップで出力されたbin番号に対応する2値化シンボルにおいて生起する確率が高い優勢シンボルを示す優勢シンボル情報を出力するとともに、上記優勢シンボルの生起確率を示す確率情報を出力する確率情報出力処理ステップと、
固定長復号手段が上記優勢シンボルの生起確率に対応する復号テーブルを参照して、上記固定長符号抽出処理ステップで出力された固定長符号を固定長復号し、その復号結果である復号2値化シンボル系列を出力する固定長復号処理ステップと、
2値化シンボル出力手段が上記確率情報出力処理ステップで出力された優勢シンボル情報を参照して、上記固定長復号処理ステップで出力された復号2値化シンボル系列内の各復号2値化シンボルが優勢シンボルであるか否かを示すフラグを2値化シンボルとして出力する2値化シンボル出力処理ステップと、
シンボル多値化手段が上記2値化シンボル出力処理ステップで出力された2値化シンボルの系列を多値化して、多値シンボルの系列を出力するシンボル多値化処理ステップとを備え、
上記固定長復号処理ステップでは、
複数の固定長復号器が、相互に異なる復号テーブルを実装し、
切替スイッチが、上記複数の固定長復号器の中から、上記確率情報出力処理ステップで出力された確率情報が示す優勢シンボルの生起確率に対応する復号テーブルを実装している固定長復号器を選択して、上記固定長復号器の復号結果である復号2値化シンボルの系列を出力し、
上記複数の固定長復号器により復号される全ての固定長符号が同一の符号長であることを特徴とするエントロピー復号方法。 The fixed-length code extraction means extracts the fixed-length code multiplexed from the encoded data, outputs the fixed-length code, and at least one binary symbol corresponding to the fixed-length code is a multi-value symbol A fixed-length code extraction processing step for outputting a bin number indicating the number of binarized symbols according to
The probability information output means outputs the dominant symbol information indicating the dominant symbol that has a high probability of occurring in the binarized symbol corresponding to the bin number output in the fixed-length code extraction processing step, and the occurrence probability of the dominant symbol. A probability information output processing step for outputting the probability information shown;
The fixed-length decoding means performs fixed-length decoding on the fixed-length code output in the fixed-length code extraction processing step with reference to the decoding table corresponding to the occurrence probability of the dominant symbol, and decodes binarization as the decoding result A fixed-length decoding processing step for outputting a symbol sequence;
With reference to the dominant symbol information output in the probability information output processing step by the binarized symbol output means, each decoded binary symbol in the decoded binary symbol sequence output in the fixed-length decoding processing step is A binarized symbol output processing step of outputting a flag indicating whether or not it is a dominant symbol as a binarized symbol;
A symbol multi-value processing means, wherein the symbol multi-value conversion means multi-values the binary symbol sequence output in the binary symbol output processing step and outputs a multi-value symbol sequence ;
In the fixed length decoding process step,
Multiple fixed-length decoders implement different decoding tables,
The changeover switch selects a fixed-length decoder mounted with a decoding table corresponding to the probability of occurrence of the dominant symbol indicated by the probability information output in the probability information output processing step from the plurality of fixed-length decoders. And outputting a sequence of decoded binary symbols, which is a decoding result of the fixed length decoder,
An entropy decoding method, wherein all fixed length codes decoded by the plurality of fixed length decoders have the same code length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011004029A JP5570437B2 (en) | 2011-01-12 | 2011-01-12 | Entropy encoding device, entropy decoding device, entropy encoding method, and entropy decoding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011004029A JP5570437B2 (en) | 2011-01-12 | 2011-01-12 | Entropy encoding device, entropy decoding device, entropy encoding method, and entropy decoding method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012147248A JP2012147248A (en) | 2012-08-02 |
JP5570437B2 true JP5570437B2 (en) | 2014-08-13 |
Family
ID=46790362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011004029A Expired - Fee Related JP5570437B2 (en) | 2011-01-12 | 2011-01-12 | Entropy encoding device, entropy decoding device, entropy encoding method, and entropy decoding method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5570437B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AP2016009618A0 (en) | 2011-06-16 | 2016-12-31 | Ge Video Compression Llc | Entropy coding of motion vector differences |
UA114674C2 (en) | 2011-07-15 | 2017-07-10 | ДЖ.І. ВІДІЕУ КЕМПРЕШН, ЛЛСі | CONTEXT INITIALIZATION IN ENTHROPIC CODING |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3124887B2 (en) * | 1994-04-28 | 2001-01-15 | 京セラ株式会社 | Data compression / decoding method |
CA2156889C (en) * | 1994-09-30 | 1999-11-02 | Edward L. Schwartz | Method and apparatus for encoding and decoding data |
JP3282407B2 (en) * | 1994-10-18 | 2002-05-13 | 富士ゼロックス株式会社 | Data compression device |
JPH09135358A (en) * | 1995-11-08 | 1997-05-20 | Nec Corp | Image encoding device using arithmetic code |
US6501397B1 (en) * | 2000-05-25 | 2002-12-31 | Koninklijke Philips Electronics N.V. | Bit-plane dependent signal compression |
JP4125565B2 (en) * | 2001-08-31 | 2008-07-30 | 松下電器産業株式会社 | Image encoding method, image decoding method and apparatus |
WO2007040361A1 (en) * | 2005-10-05 | 2007-04-12 | Lg Electronics Inc. | Method and apparatus for signal processing and encoding and decoding method, and apparatus therefor |
-
2011
- 2011-01-12 JP JP2011004029A patent/JP5570437B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2012147248A (en) | 2012-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2682009C2 (en) | Method and device for coding and decoding of basic data using compression of symbols | |
US8018996B2 (en) | Arithmetic decoding apparatus and method | |
JP4540585B2 (en) | Encoding device and decoding device | |
KR101171697B1 (en) | System and method for compressing a stream of integer-valued data | |
EP2572455B1 (en) | Methods and devices for reducing sources in binary entropy coding | |
US8660261B2 (en) | System and apparatus for integrated video/image encoding/decoding and encryption/decryption | |
EP2622744B1 (en) | Methods and devices for parallel encoding and decoding using a bitstream structured for reduced delay | |
US8400336B2 (en) | Methods and devices for reordered parallel entropy coding and decoding | |
CN101795407A (en) | Method and device for encoding a bit sequence | |
WO2011100837A1 (en) | Parallel entropy coding and decoding methods and devices | |
CN102438145A (en) | Image lossless compression method on basis of Huffman code | |
US10127913B1 (en) | Method of encoding of data stream, method of decoding of data stream, and devices for implementation of said methods | |
CN104380733A (en) | Video quantization-parameter encoding method, video quantization-parameter decoding method, device, and program | |
JP5570437B2 (en) | Entropy encoding device, entropy decoding device, entropy encoding method, and entropy decoding method | |
JP2013009167A (en) | Entropy encoding apparatus, entropy decoding apparatus, entropy encoding method and entropy decoding method | |
JP2012253413A (en) | Entropy encoding apparatus, entropy decoding apparatus, entropy encoding method and entropy decoding method | |
Ezhilarasan et al. | A new entropy encoding technique for multimedia data compression | |
US8854233B2 (en) | Method and system for de-binarization | |
KR101268934B1 (en) | Data compression/decompression device and method thereof | |
KR101573983B1 (en) | Method of data compressing, method of data recovering, and the apparatuses thereof | |
JP6707045B2 (en) | Binary arithmetic decoder and binary arithmetic decoding device | |
JP6784150B2 (en) | Arithmetic coding circuits, encoder devices, and arithmetic coding methods | |
KR102109768B1 (en) | Cabac binary arithmetic encoder for high speed processing of uhd imge | |
Kalamani et al. | A combined compatible block coding and run length coding techniques for test data compression | |
KR101578608B1 (en) | Apparatus for data encoding for generating universal code and apparatus for data decoding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130918 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140226 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140304 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140430 |
|
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: 20140527 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140624 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5570437 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |