JPH08172534A - Coder and its method - Google Patents
Coder and its methodInfo
- Publication number
- JPH08172534A JPH08172534A JP6313700A JP31370094A JPH08172534A JP H08172534 A JPH08172534 A JP H08172534A JP 6313700 A JP6313700 A JP 6313700A JP 31370094 A JP31370094 A JP 31370094A JP H08172534 A JPH08172534 A JP H08172534A
- Authority
- JP
- Japan
- Prior art keywords
- encoding
- pixel
- address
- appearance probability
- address storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
- G06T9/005—Statistical coding, e.g. Huffman, run length coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は符号化装置及び方法に関
し、例えば、記憶装置のアクセス方法を利用して符号
化、復号化を行う符号化装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding apparatus and method, for example, a coding apparatus which performs coding and decoding by utilizing a memory access method.
【0002】[0002]
【従来の技術】近年の画像処理装置の発展はめざまし
く、特にカラー画像を処理可能な画像処理装置も多く製
品化されている。特にカラー画像処理技術において、そ
の膨大なデータ量のために、画像データの符号化/復号
化の技術が重要となる。2. Description of the Related Art The recent development of image processing apparatuses has been remarkable, and many image processing apparatuses capable of processing color images have been commercialized. Particularly in color image processing technology, the technology for encoding / decoding image data is important because of its enormous amount of data.
【0003】画像データの符号化方式としては、種々の
方式が提案、実用化されているが、中でも算術符号化方
法は、符号化を行いながら、符号化パラメータをそのと
きの画素情報源の局所的性質に適応するように動的に変
更する動的適応化が比較的容易に行えるという点で有用
である。即ち、種々の性質の画像を取り扱うようなシス
テムや画像の部位によって統計的性質が大幅に変化する
ような画像を取り扱うシステムにおいては、同一のアル
ゴリズムで効率的な符号化が行えるということは、極め
て有効である。例えば、既に符号化済みの画素から局所
的な統計的性質を推定し、それに基づいて符号化パラメ
ータを逐次変更することにより、動的適応化が可能とな
る。Various methods have been proposed and put into practical use as image data encoding methods. Among them, the arithmetic encoding method is such that the encoding parameter is changed while the encoding parameter is locally applied to the pixel information source at that time. This is useful in that dynamic adaptation that dynamically changes to adapt to physical properties can be performed relatively easily. In other words, in a system that handles images of various properties and a system that handles images in which the statistical properties greatly change depending on the part of the image, it is extremely effective to perform efficient encoding with the same algorithm. It is valid. For example, dynamic adaptation is possible by estimating local statistical properties from already-encoded pixels and sequentially changing encoding parameters based on the estimated statistical properties.
【0004】以下、算術符号化方式について、図面を参
照して説明する。The arithmetic coding method will be described below with reference to the drawings.
【0005】ISO/IEC Committee Draft 115
44に記載されているように、従来の算術符号化方式に
おいては、シンボル系列の出現確率に応じて確率数直線
を区間分割し、分割された区間内の位置を示す2進小数
値を該系列に対する符号とする。即ち、各画素の発生す
る確率に応じて符号化を行う。尚、各画素の出現確率の
推定は、各画素の出現過程に応じて適宜更新される学習
機能により実現される。ISO / IEC Committee Draft 115
As described in No. 44, in the conventional arithmetic coding method, the probability line is divided into sections according to the appearance probability of the symbol series, and the binary fractional value indicating the position in the divided section is given to the series. Is the code for. That is, the encoding is performed according to the probability of occurrence of each pixel. The estimation of the appearance probability of each pixel is realized by a learning function that is appropriately updated according to the appearance process of each pixel.
【0006】図3に、従来の算術符号化装置の構成例を
示す。図3において、109は画像データを入力するス
キャナ、110は入力された画像データを一時格納する
ための画像メモリ、111は各画像データを画素毎に後
述するアドレス記憶部100の対応するアドレス情報1
03に変換するアドレス変換部である。100はアドレ
ス記憶部であり、算術パラメータROM106のアドレ
ス情報を示す算術パラメータ情報107及び推定シンボ
ル情報105が格納されている。106は算術パラメー
タROMであり、算術パラメータ(アドレス)に対応し
て出現確率104が予め格納されている。101は算術
符号化部であり、出現確率104及び推定シンボル情報
105に基づいて算術符号化を行い、符号化データ10
2を出力する。FIG. 3 shows a configuration example of a conventional arithmetic coding device. In FIG. 3, reference numeral 109 is a scanner for inputting image data, 110 is an image memory for temporarily storing the input image data, and 111 is the corresponding address information 1 of an address storage unit 100, which will be described later, for each pixel of each image data.
This is an address conversion unit for converting the address into 03. An address storage unit 100 stores arithmetic parameter information 107 indicating the address information of the arithmetic parameter ROM 106 and estimated symbol information 105. Reference numeral 106 denotes an arithmetic parameter ROM, in which the appearance probability 104 is stored in advance corresponding to the arithmetic parameter (address). An arithmetic coding unit 101 performs arithmetic coding based on the appearance probability 104 and the estimated symbol information 105 to generate coded data 10
2 is output.
【0007】アドレス記憶部100に入力されるアドレ
ス情報103は、アドレス記憶部100内の任意の算術
パラメータ情報107、推定シンボル情報105を読み
出すためのアドレスデータであり、アドレス記憶部10
0の内容(算術パラメータ情報107及び推定シンボル
情報105)は、不図示の制御部からの更新データ10
8により更新される。The address information 103 input to the address storage unit 100 is address data for reading arbitrary arithmetic parameter information 107 and estimated symbol information 105 in the address storage unit 100.
The content of 0 (arithmetic parameter information 107 and estimated symbol information 105) is the update data 10 from the control unit (not shown).
8 updated.
【0008】次に、図4を参照して、アドレス変換部1
11におけるアドレス情報103の決定方法について説
明する。Next, referring to FIG. 4, the address conversion unit 1
A method of determining the address information 103 in 11 will be described.
【0009】図4の(a)において、各マス目は2値の
1画素を示し、4画素に重なった円は該4画素を所定の
縮小アルゴリズムに基づいて縮小した画素を示す。尚、
以下の説明のために、各画素にh11〜h16,h21〜h2
6,h31〜h36,各縮小画素にL11〜L13,L21〜L23
というように、参照符号を付す。In FIG. 4A, each square represents one binary pixel, and a circle overlapping four pixels represents a pixel obtained by reducing the four pixels based on a predetermined reduction algorithm. still,
For the following description, h11 to h16 and h21 to h2 are assigned to each pixel.
6, h31 to h36, L11 to L13, L21 to L23 for each reduced pixel
As such, reference numerals are attached.
【0010】まず図4の(a)において、h13を符号化
対象の画素とする。算術符号化は、画素h13がいかなる
シンボルであるか、またそのシンボルはどのような出現
確率であるかに基いて行われる。画素h13に関する各推
定は、過去の出現状況に応じて行われるが、画素h13の
周囲に存在する各画素(シンボル)を参照する事によ
り、実現される。First, in FIG. 4A, h13 is a pixel to be coded. Arithmetic encoding is performed based on what kind of symbol the pixel h13 is and what the appearance probability of the symbol is. Each estimation regarding the pixel h13 is performed according to the past appearance situation, but is realized by referring to each pixel (symbol) existing around the pixel h13.
【0011】例えば、図4の(a)に示す太線で囲まれ
た領域内の画素h13以外の6画素(h11,h12,h22〜
h24,h33)、及び4つの縮小画素(L11,L12,L2
1,L22)によりアドレス情報103が構成される。For example, six pixels (h11, h12, h22 to h22 other than the pixel h13 in the area surrounded by the thick line shown in FIG. 4A).
h24, h33) and four reduced pixels (L11, L12, L2)
The address information 103 is composed of 1, L22).
【0012】これら画素群により構成される任意かつ独
立のアドレス情報103により、アドレス記憶装置10
0内の任意のアドレスを指定可能となり、読み出しが行
われる。The address storage device 10 is provided with arbitrary and independent address information 103 composed of these pixel groups.
An arbitrary address within 0 can be designated, and reading is performed.
【0013】尚、図4の(a)に示す場合においては各
画素は2値であるため、アドレス情報103が取りうる
値は2の10乗通り、即ち、1024通りである。In the case shown in FIG. 4A, each pixel has a binary value, so that the value that the address information 103 can take is 2 to the 10th power, that is, 1024 values.
【0014】次に、図4の(b)においては、上述した
図4の(a)の場合とは異なり画素h14を符号化対象画
素とした場合について考える。即ち、図4の(a)にお
いては縮小画素L22の左上に位置する画素h13を符号化
する場合についての説明であったが、図4の(b)にお
いては、縮小画素L22の右上に位置する画素h14を符号
化する場合について考える。Next, in FIG. 4B, unlike the case of FIG. 4A described above, consider the case where the pixel h14 is the pixel to be coded. That is, in FIG. 4A, the description has been made on the case of encoding the pixel h13 located at the upper left of the reduced pixel L22, but in FIG. 4B, it is located at the upper right of the reduced pixel L22. Consider the case of encoding pixel h14.
【0015】図4の(b)の場合は、画素h14のシンボ
ル,及びその出現確率を推定するために参照する各画素
の相対的な位置関係が図4の(a)と異なる。図4の
(b)においては、画素h14のシンボル,及びその出現
確率を推定するために、太線で囲まれた周辺画素h12,
h13,h23〜h25,h34,L12,L13,L22,L23を参
照する。このように、符号化対象画素に対するL22等の
縮小画素の相対的位置関係により参照する画素が異なる
のは、縮小画素が縮小前の4画素に対して1画素しか存
在しないためである。In the case of FIG. 4B, the relative positional relationship between the symbol of the pixel h14 and each pixel referred to in order to estimate its appearance probability is different from that of FIG. 4A. In FIG. 4B, in order to estimate the symbol of the pixel h14 and its appearance probability, the peripheral pixel h12 surrounded by a thick line,
Reference is made to h13, h23 to h25, h34, L12, L13, L22, and L23. As described above, the pixel to be referred to differs depending on the relative positional relationship of the reduced pixel such as L22 with respect to the encoding target pixel, because there is only one reduced pixel among the four pixels before reduction.
【0016】以下、符号化対象の画素が図4の(a)に
示すような位置関係の場合を位相0、図4の(b)に示
すような位置関係の場合を位相1と称する。Hereinafter, the case where the pixel to be coded has the positional relationship shown in FIG. 4A is called phase 0, and the case where the pixel has the positional relationship shown in FIG. 4B is called phase 1.
【0017】従って、アドレス記憶部100に入力され
るアドレス情報103は、上述した参照画素によるアド
レスのみでなく、位相情報(位相0又は位相1)も含ん
でいる必要がある。Therefore, the address information 103 input to the address storage section 100 needs to include not only the address by the reference pixel described above but also phase information (phase 0 or phase 1).
【0018】ここで、従来の算術符号化の手順を図3を
参照して改めて説明する。The conventional arithmetic coding procedure will be described again with reference to FIG.
【0019】まず、スキャナ109によって読み込まれ
た画像データは、画像メモリ110に一旦格納され、ア
ドレス変換部111によって、各画素毎に画素値及び位
相情報によりアドレス情報103を構成し、アドレス記
憶部100に入力する。アドレス記憶部100では、入
力されたアドレス情報103に応じて算術パラメータ情
報107を算術パラメータROM106へ、推定シンボ
ル情報105を算術符号化部101へ出力する。算術パ
ラメータROM106では、算術パラメータ情報107
により符号化対象画素の対応する出現確率104を出力
する。そして算術符号化部101では、推定シンボル情
報105及び出現確率104に基づいて算術符号化を行
い、符号化データ102を適宜出力する。First, the image data read by the scanner 109 is temporarily stored in the image memory 110, the address conversion unit 111 forms the address information 103 by the pixel value and the phase information for each pixel, and the address storage unit 100. To enter. The address storage unit 100 outputs the arithmetic parameter information 107 to the arithmetic parameter ROM 106 and the estimated symbol information 105 to the arithmetic encoding unit 101 according to the input address information 103. In the arithmetic parameter ROM 106, the arithmetic parameter information 107
Outputs the corresponding appearance probability 104 of the pixel to be encoded. Then, the arithmetic encoding unit 101 performs arithmetic encoding based on the estimated symbol information 105 and the appearance probability 104, and outputs encoded data 102 as appropriate.
【0020】そして、不図示の制御部が算術符号化部1
01における圧縮率が低下していることを検知すると、
制御部は圧縮率を上げるためにアドレス記憶部100に
格納された推定シンボル情報105や算術パラメータ情
報107を更新する更新データ108を出力する。する
とアドレス記憶部100は更新データ108に基づいて
更新され、次画素の符号化に備える。即ち、学習を行う
ことができる。尚、更新データ108は、アドレス記憶
部100上のアドレス情報103によって示されるアド
レスに書き込まれる。The control unit (not shown) is the arithmetic coding unit 1.
When it is detected that the compression rate at 01 is low,
The control unit outputs update data 108 for updating the estimated symbol information 105 and the arithmetic parameter information 107 stored in the address storage unit 100 in order to increase the compression rate. Then, the address storage unit 100 is updated based on the update data 108 to prepare for encoding the next pixel. That is, learning can be performed. The update data 108 is written in the address indicated by the address information 103 on the address storage unit 100.
【0021】以下、上述した処理を繰り返すことによ
り、一連の画素列の算術符号化が行われる。After that, by repeating the above-mentioned processing, arithmetic coding of a series of pixel columns is performed.
【0022】[0022]
【発明が解決しようとする課題】しかしながら上記従来
例では、圧縮率が良くない場合には頻繁にアドレス記憶
部100の更新が行われ、アドレス記憶部100の内容
を更新データ108によって更新している期間は排他制
御が行われるため、次画素を符号化するための推定シン
ボル105、算術パラメータ情報107を読み出すこと
ができなかった。従って、符号化処理速度が低下してし
まうという欠点があった。However, in the above-mentioned conventional example, when the compression ratio is not good, the address storage unit 100 is frequently updated, and the contents of the address storage unit 100 are updated by the update data 108. Since the exclusive control is performed during the period, the estimated symbol 105 and the arithmetic parameter information 107 for encoding the next pixel could not be read. Therefore, there is a drawback that the encoding processing speed decreases.
【0023】また、圧縮率によってアドレス記憶部10
0の更新頻度が異なるため、符号化処理速度は圧縮率に
応じて変化し、一定にはならなかった。しかしながらス
キャナ109による画像データの入力速度は一定であ
り、また、アドレス記憶部100の更新時には次の画素
を処理することができないため、一時的に画像データを
格納する画像メモリ110は、スキャナ109からの入
力と後続するアドレス記憶部100への出力の同期をと
るために不可欠な構成要件であった。従って、コストの
低減が達成しづらかった。In addition, the address storage unit 10 is selected according to the compression ratio.
Since the update frequency of 0 is different, the encoding processing speed changes according to the compression rate and is not constant. However, the input speed of the image data by the scanner 109 is constant, and since the next pixel cannot be processed when the address storage unit 100 is updated, the image memory 110 that temporarily stores the image data is read from the scanner 109. Was indispensable in order to synchronize the input of and the output to the subsequent address storage unit 100. Therefore, it was difficult to achieve cost reduction.
【0024】本発明は上述した課題を解決するためにな
されたものであり、上述した課題を解決するために、符
号化対象画素の出現確率を推定するための記憶手段を分
割し、一方の記憶内容を読み出している期間に他方の記
憶内容の更新を行うことにより、高速処理が安価に可能
となる符号化装置及び方法を提供することを目的とす
る。The present invention has been made to solve the above-mentioned problems, and in order to solve the above-mentioned problems, the storage means for estimating the appearance probability of the pixel to be coded is divided, and one of the memories is stored. An object of the present invention is to provide an encoding device and method that can perform high-speed processing at low cost by updating the other stored content while the content is being read.
【0025】[0025]
【課題を解決するための手段】上述した目的を達成する
ために、本発明は以下の構成を備える。In order to achieve the above-mentioned object, the present invention comprises the following constitutions.
【0026】即ち、符号化対象画素の出現確率を推定す
る複数の推定手段と、前記複数の推定手段のうちの1つ
を選択する選択手段と、前記選択された推定手段による
出現確率に基づいて算術符号化を行う符号化手段とを有
し、前記複数の推定手段はその推定内容をそれぞれ独立
に更新されることを特徴とする。That is, based on the plurality of estimating means for estimating the appearance probability of the pixel to be coded, the selecting means for selecting one of the plurality of estimating means, and the appearance probability by the selected estimating means. Coding means for performing arithmetic coding is provided, and the estimation contents of the plurality of estimation means are independently updated.
【0027】例えば、前記複数の推定手段は、符号化済
みの参照画素に応じて符号化対象画素の出現確率を更新
されることを特徴とする。For example, the plurality of estimating means are characterized in that the appearance probabilities of the encoding target pixels are updated according to the encoded reference pixels.
【0028】例えば、前記複数の推定手段はメモリであ
り、符号化対象画素のシンボル毎に出現確率を格納して
いることを特徴とする。For example, the plurality of estimating means are memories, and the appearance probability is stored for each symbol of the pixel to be encoded.
【0029】例えば、前記複数の推定手段は、符号化対
象画素の前記参照画素に対する位相情報によって分類さ
れていることを特徴とする。For example, the plurality of estimating means are classified according to phase information of the pixel to be encoded with respect to the reference pixel.
【0030】例えば、前記複数の推定手段は、所定周期
で更新されることを特徴とする。For example, the plurality of estimating means are updated at a predetermined cycle.
【0031】例えば、前記複数の推定手段は、前記符号
化手段における符号化効率が低下すると更新されること
を特徴とする。For example, the plurality of estimating means are updated when the encoding efficiency in the encoding means decreases.
【0032】[0032]
【作用】以上の構成により、符号化対象画素の参照画素
に対する位相に応じてその出現確率を推定するための記
憶手段を分割し、一方の記憶内容を読み出している期間
に他方の記憶内容の更新が行えるという特有の作用効果
がある。With the above configuration, the storage means for estimating the appearance probability of the pixel to be encoded according to the phase of the reference pixel with respect to the reference pixel is divided, and the storage content of one is updated while the storage content of one is being read. There is a unique effect that can be done.
【0033】[0033]
【実施例】本発明の特徴は、推定シンボル、出現確率等
を特定するためのデータを格納するアドレス記憶部を、
周期的に参照されるアドレスグループ毎に分割し、ある
グループに対して読み出しを行っている間に、他のグル
ープに対して更新データの書き込みが可能としたことに
ある。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A feature of the present invention is that an address storage unit for storing data for specifying estimated symbols, appearance probabilities, etc.
It is divided into address groups that are periodically referred to, and while reading data from a certain group, it is possible to write update data to another group.
【0034】以下、本発明に係る一実施例を、図面を参
照して詳細に説明する。An embodiment according to the present invention will be described in detail below with reference to the drawings.
【0035】<第1実施例>本実施例の算術符号化にお
いて、符号化対象画素を符号化するために参照する周辺
画素群は、従来例で示した図4と同様である。従って、
位相0と位相1の2種類が想定される。<First Embodiment> In the arithmetic coding of the present embodiment, a peripheral pixel group referred to for coding a pixel to be coded is the same as that shown in FIG. 4 shown in the conventional example. Therefore,
Two types, phase 0 and phase 1, are assumed.
【0036】図1に、本実施例における算術符号化装置
のブロック構成を示す。FIG. 1 shows a block configuration of the arithmetic coding apparatus in this embodiment.
【0037】13は画像データを入力するスキャナ、1
4は入力された画像データの各画素毎に、従来例と同様
に各位相毎にアドレス情報9及び10を生成するアドレ
ス変換部である。尚、スキャナ13は、画像データの入
力が可能な構成であれば、特にスキャナに限定されるも
のではない。Reference numeral 13 is a scanner for inputting image data, and 1
Reference numeral 4 denotes an address conversion unit that generates address information 9 and 10 for each phase of each pixel of the input image data, similarly to the conventional example. The scanner 13 is not particularly limited to the scanner as long as it can input image data.
【0038】1は上述した位相0である画素を処理対象
とするアドレス記憶部A、2は上述した位相1である画
素を処理対象とするアドレス記憶部B、3は算術符号化
部、4はセレクタである。尚、算術符号化部3は、出現
確率を格納している算術パラメータROMを含んでいる
ものとする。1 is the address storage unit A for processing the pixel having the phase 0 described above, 2 is the address storage unit B for processing the pixel having the phase 1 described above, 3 is the arithmetic coding unit, 4 is the It is a selector. The arithmetic encoding unit 3 is assumed to include an arithmetic parameter ROM that stores the appearance probability.
【0039】アドレス記憶部A1は、符号化対象画素が
位相0の場合のアドレス情報9を入力とし、上述した従
来例と同様に、該符号化対象画素の出現確率を示す情報
及び位相情報とを信号6として出力する。同様に、アド
レス記憶部B2は、符号化対象画素が位相1の場合のア
ドレス情報10を入力とし、該符号化対象画素の出現確
率を示す情報及び位相情報とが信号7として出力する。The address storage unit A1 receives the address information 9 when the pixel to be coded has a phase of 0 and inputs the information indicating the appearance probability of the pixel to be coded and the phase information as in the conventional example described above. Output as signal 6. Similarly, the address storage unit B2 receives the address information 10 when the encoding target pixel is in phase 1, and outputs the information indicating the appearance probability of the encoding target pixel and the phase information as a signal 7.
【0040】アドレス記憶部A1の出力信号6及びアド
レス記憶部B2の出力信号7は、セレクタ4に入力さ
れ、制御信号5によりいずれかが選択され、信号11と
して出力される。算術符号化部3にはセレクタ4からの
出力信号11(信号6又は信号7)が入力され、従来の
算術符号化を行い、符号化データ8を出力する。The output signal 6 of the address storage unit A1 and the output signal 7 of the address storage unit B2 are input to the selector 4, one of them is selected by the control signal 5, and output as a signal 11. The output signal 11 (the signal 6 or the signal 7) from the selector 4 is input to the arithmetic coding unit 3, performs the conventional arithmetic coding, and outputs the coded data 8.
【0041】また、アドレス記憶部A1又はアドレス記
憶部B2の内容は、不図示の制御部からの更新データ1
2により、アドレス情報9又は10で示されるアドレス
について更新可能である。The contents of the address storage unit A1 or the address storage unit B2 are the update data 1 from the control unit (not shown).
2, the address indicated by the address information 9 or 10 can be updated.
【0042】図2に、上述した本実施例の符号化装置に
おけるタイミングチャートを示す。尚、図2に示す期間
1〜9は、不図示の画素クロックの1周期を示し、ま
た、セレクタ4は、制御信号5のLレベルで信号6を、
Hレベルで信号7を選択する。FIG. 2 shows a timing chart in the above-described coding apparatus of this embodiment. Note that periods 1 to 9 shown in FIG. 2 indicate one cycle of a pixel clock (not shown), and the selector 4 outputs the signal 6 at the L level of the control signal 5.
The signal 7 is selected at the H level.
【0043】図2に示す期間1において、アドレス記憶
部A1にアドレス情報9(位相0に対応)が「a1」で
入力されると、推定シンボル及び出現確率情報からなる
信号6が「b1」として出力される。In the period 1 shown in FIG. 2, when the address information 9 (corresponding to the phase 0) is input as "a1" to the address storage unit A1, the signal 6 including the estimated symbol and the appearance probability information is regarded as "b1". Is output.
【0044】そして、セレクタ4は制御信号5によって
信号6を選択し、従ってセレクタ4の出力信号11は
「b1」となる。算術符号化部3は、入力される信号1
1に基づいて、算術符号化処理を行う。Then, the selector 4 selects the signal 6 by the control signal 5, so that the output signal 11 of the selector 4 becomes "b1". The arithmetic coding unit 3 receives the input signal 1
Based on 1, arithmetic coding processing is performed.
【0045】次に、期間2においては、アドレス記憶部
B2にアドレス情報10(位相1に対応)が「a′1」
で入力されると、推定シンボル及び出現確率情報からな
る信号7が「b′1」として出力される。Next, in the period 2, the address information 10 (corresponding to phase 1) is "a'1" in the address memory B2.
When it is input at, the signal 7 including the estimated symbol and the appearance probability information is output as “b′1”.
【0046】そして、セレクタ4は制御信号5によって
信号7を選択し、従ってセレクタ4の出力信号11は
「b′1」となる。算術符号化部3は、入力される信号
11に基づいて、算術符号化処理を行う。Then, the selector 4 selects the signal 7 by the control signal 5, so that the output signal 11 of the selector 4 becomes "b'1". The arithmetic encoding unit 3 performs arithmetic encoding processing based on the input signal 11.
【0047】一方、アドレス記憶部A1に入力されるア
ドレス情報9の内容は、期間2においても「a1」が保
持されており、従って、アドレス記憶部A1におけるア
ドレス「a1」の内容(推定シンボル及び出現確率情
報)を更新する必要がある場合には、期間2において、
更新データ12により更新可能である。アドレス記憶部
A1の別のアドレス(「a2」)からの新たな読出しは
期間3において行われるため、期間2でアドレス記憶部
A1の内容を更新するために排他制御がかかっても、タ
イミングとしては何ら問題ない。On the other hand, the content of the address information 9 input to the address storage unit A1 retains "a1" even in the period 2. Therefore, the content of the address "a1" in the address storage unit A1 (estimated symbol and If it is necessary to update the appearance probability information), in period 2,
It can be updated by the update data 12. Since new reading from another address (“a2”) of the address storage unit A1 is performed in the period 3, even if exclusive control is applied to update the contents of the address storage unit A1 in the period 2, the timing is There is no problem.
【0048】そして、期間3でアドレス記憶部A1から
読み出された推定シンボル及び出現確率情報からなる信
号6に基づいて、算術符号化部3において算術符号化を
同様に行い、アドレス記憶部B2の「b1」のアドレス
で示される内容に対して更新の必要がある場合には、期
間3において更新データ12により同様に更新する。Then, based on the signal 6 consisting of the estimated symbol and the appearance probability information read from the address storage unit A1 in the period 3, the arithmetic coding unit 3 similarly performs the arithmetic coding, and the address storage unit B2 stores it. When it is necessary to update the content indicated by the address “b1”, the update data 12 is similarly updated in the period 3.
【0049】以下、上述した処理を繰り返すことによ
り、全画像データの算術符号化を行う。Hereinafter, arithmetic coding of all image data is performed by repeating the above-mentioned processing.
【0050】以上説明したように、本実施例においては
アドレス記憶部を2つに分割することにより更新タイミ
ングを調整している。従ってアドレス記憶部の分割方法
によって、その処理効率は大きく変化する。図2のタイ
ミングチャートからも明らかな様に、アドレス記憶部A
1及びアドレス記憶部B2への参照タイミングは交互と
なるのが最も効率が良いが、処理系の特性に合わせて最
適な分割方法を採用すれば良い。As described above, in this embodiment, the update timing is adjusted by dividing the address storage unit into two. Therefore, the processing efficiency greatly changes depending on the division method of the address storage unit. As is clear from the timing chart of FIG. 2, the address storage unit A
It is most efficient that the reference timings of 1 and the address storage unit B2 are alternated, but an optimal division method may be adopted according to the characteristics of the processing system.
【0051】尚、本実施例においてはセレクタ4を用い
て算術符号化部3に入力される信号を制御する例につい
て説明を行ったが、本発明はこの例に限定されるもので
はなく、最適な推定シンボル及び出現確率情報が算術符
号化部3に入力可能な構成となっていれば本発明の趣旨
を満たす。In the present embodiment, an example in which the selector 4 is used to control the signal input to the arithmetic coding unit 3 has been described, but the present invention is not limited to this example, and is optimal. If the estimated symbols and the appearance probability information can be input to the arithmetic coding unit 3, the gist of the present invention is satisfied.
【0052】以上説明したように本実施例によれば、推
定シンボル、出現確率等を特定するためのデータを格納
するアドレス記憶部を、周期的に参照されるアドレスグ
ループ毎に分割することにより、一方のグループに対し
て読み出しを行っている間に、他方のグループに対して
更新データの書き込みが可能となり、高速処理が可能と
なる。As described above, according to the present embodiment, the address storage unit for storing the data for specifying the estimated symbol, the appearance probability, etc. is divided into address groups which are periodically referred to, The update data can be written in the other group while the reading is performed in the one group, and high-speed processing can be performed.
【0053】<その他の実施例>上述した第1実施例に
おいては、アドレス記憶部を2つの位相について分割し
た例を説明したが、2つ以上の位相によりアドレス記憶
部を分割してももちろんかまわない。また、第1実施例
では位相による分割を行ったが、アドレス記憶部に入力
されるアドレス情報に周期性があれば、位相による分割
に限らず、該周期に合わせてアドレス記憶部を分割すれ
ば、第1実施例と同様の効果を得ることができる。<Other Embodiments> In the above-described first embodiment, an example in which the address storage unit is divided into two phases has been described, but it is of course possible to divide the address storage unit into two or more phases. Absent. In addition, although the division according to the phase is performed in the first embodiment, if the address information input to the address storage unit has periodicity, it is not limited to the division according to the phase, and the address storage unit may be divided according to the period. The same effect as that of the first embodiment can be obtained.
【0054】また、上述した第1実施例では、各アドレ
ス記憶部に推定シンボル及び出現確率情報を格納してい
たが、例えば図5に示すように、セレクタ4と算術符号
化部3との間にデコーダ13を備えることにより、アド
レス記憶部A1及びアドレス記憶部B2に格納する推定
シンボル及び出現確率情報を圧縮又はエンコードしたデ
ータとすることができる。これにより、アドレス記憶部
の容量を低減することが可能となる。もちろん、デコー
ダ13の挿入位置は、例えばアドレス記憶部A1とセレ
クタ4の間と、アドレス記憶部B2とセレクタ4の間と
しても良い。In the first embodiment described above, the estimated symbol and the appearance probability information are stored in each address storage unit. However, as shown in FIG. 5, for example, between the selector 4 and the arithmetic coding unit 3. By including the decoder 13 in the above, the estimated symbol and the appearance probability information stored in the address storage unit A1 and the address storage unit B2 can be compressed or encoded data. This makes it possible to reduce the capacity of the address storage unit. Of course, the insertion positions of the decoder 13 may be, for example, between the address storage unit A1 and the selector 4 and between the address storage unit B2 and the selector 4.
【0055】また、上述した第1実施例において、入力
されるアドレス情報に周期性がない場合でも、一方のア
ドレス記憶部のみにより符号化処理が可能となるように
装置を構成するのが望ましい。Further, in the above-described first embodiment, it is desirable to configure the apparatus so that the encoding process can be performed by only one address storage unit even when the input address information has no periodicity.
【0056】また、アドレス記憶部の内容更新時に、複
数のアドレス記憶部に対して同一のアドレス情報を入力
し、同一のタイミングでそれぞれ更新可能となるような
構成としても良い。Further, when updating the contents of the address storage unit, the same address information may be input to a plurality of address storage units so that each address can be updated at the same timing.
【0057】尚、本発明は、複数の機器から構成される
システムに適用しても1つの機器から成る装置に適用し
ても良い。また、本発明は、システム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることはいうまでもない。The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.
【0058】[0058]
【発明の効果】以上説明したように本発明によれば、符
号化対象画素の参照画素に対する位相に応じてその出現
確率を推定するための記憶手段を分割し、一方の記憶内
容を読み出している期間に他方の記憶内容の更新を可能
とすることにより、学習効果が高まり、圧縮率が向上す
ると共に、高速処理が可能となる。As described above, according to the present invention, the storage means for estimating the appearance probability of the pixel to be coded is divided according to the phase of the reference pixel with respect to the reference pixel, and one of the stored contents is read. By allowing the other stored content to be updated during the period, the learning effect is enhanced, the compression rate is improved, and high-speed processing is possible.
【0059】更に、画像データの入力部と符号化部との
同期をとるために入力された画像データを一時格納して
おく必要がなく、装置に備える画像メモリが必ずしも必
要でなくなるため、コスト的に有利な構成を実現するこ
とができる。Further, it is not necessary to temporarily store the input image data in order to synchronize the image data input unit and the encoding unit, and the image memory provided in the apparatus is not necessarily required, which is cost effective. It is possible to realize an advantageous configuration.
【0060】[0060]
【図1】本発明に係る一実施例の符号化装置の構成例を
示すブロック図である。FIG. 1 is a block diagram showing a configuration example of an encoding device according to an embodiment of the present invention.
【図2】本実施例の符号化装置における符号化処理のタ
イミングチャートである。FIG. 2 is a timing chart of encoding processing in the encoding device of the present embodiment.
【図3】従来の算術符号化を行う符号化装置の構成例を
示すブロック図である。FIG. 3 is a block diagram showing a configuration example of a conventional encoding device that performs arithmetic encoding.
【図4】従来の符号化装置における符号化対象画素及び
参照画素の位置関係を示す図である。FIG. 4 is a diagram showing a positional relationship between an encoding target pixel and a reference pixel in a conventional encoding device.
【図5】本実施例の符号化装置の他の構成例を示すブロ
ック図である。FIG. 5 is a block diagram showing another configuration example of the encoding device according to the present embodiment.
1 アドレス記憶部A 2 アドレス記憶部B 3 算術符号化部 4 セレクタ 13,109 スキャナ 14,111 アドレス変換部 110 画像メモリ 1 Address Storage Unit A 2 Address Storage Unit B 3 Arithmetic Coding Unit 4 Selector 13,109 Scanner 14,111 Address Conversion Unit 110 Image Memory
Claims (11)
数の推定手段と、 前記複数の推定手段のうちの1つを選択する選択手段
と、 前記選択された推定手段による出現確率に基づいて算術
符号化を行う符号化手段とを有し、 前記複数の推定手段はその推定内容をそれぞれ独立に更
新されることを特徴とする符号化装置。1. A plurality of estimating means for estimating an appearance probability of a pixel to be encoded, a selecting means for selecting one of the plurality of estimating means, and an appearance probability by the selected estimating means. An encoding device, comprising: an encoding unit that performs arithmetic encoding, wherein the plurality of estimating units update their estimation contents independently of each other.
照画素に応じて符号化対象画素の出現確率を更新される
ことを特徴とする請求項1記載の符号化装置。2. The encoding apparatus according to claim 1, wherein the plurality of estimation means update the appearance probability of the encoding target pixel according to the encoded reference pixel.
号化対象画素のシンボル毎に出現確率を格納しているこ
とを特徴とする請求項2記載の符号化装置。3. The encoding apparatus according to claim 2, wherein the plurality of estimating units are memories and store the appearance probability for each symbol of the encoding target pixel.
の前記参照画素に対する位相情報によって分類されてい
ることを特徴とする請求項1記載の符号化装置。4. The encoding apparatus according to claim 1, wherein the plurality of estimating units are classified according to phase information of an encoding target pixel with respect to the reference pixel.
されることを特徴とする請求項1記載の符号化装置。5. The encoding device according to claim 1, wherein the plurality of estimating means are updated at a predetermined cycle.
における符号化効率が低下すると更新されることを特徴
とする請求項1記載の符号化装置。6. The encoding apparatus according to claim 1, wherein the plurality of estimation units are updated when the encoding efficiency of the encoding unit decreases.
数の推定工程と、 前記複数の推定工程のうちの1つを選択する選択工程
と、 前記選択された推定工程による出現確率に基づいて算術
符号化を行う符号化工程とを有し、 前記複数の推定工程はその推定内容をそれぞれ独立に更
新されることを特徴とする符号化方法。7. Based on a plurality of estimation steps for estimating the appearance probability of a pixel to be coded, a selection step for selecting one of the plurality of estimation steps, and an appearance probability by the selected estimation step. An encoding method for performing arithmetic encoding, wherein the estimation contents of the plurality of estimation steps are independently updated.
照画素に応じて符号化対象画素の出現確率を更新される
ことを特徴とする請求項7記載の符号化方法。8. The encoding method according to claim 7, wherein in the plurality of estimation steps, the appearance probability of the encoding target pixel is updated according to the encoded reference pixel.
の前記参照画素に対する位相情報によって分類されてい
ることを特徴とする請求項7記載の符号化方法。9. The encoding method according to claim 7, wherein the plurality of estimation steps are classified according to phase information of an encoding target pixel with respect to the reference pixel.
新されることを特徴とする請求項7記載の符号化方法。10. The encoding method according to claim 7, wherein the plurality of estimation steps are updated at a predetermined cycle.
程における符号化効率が低下すると更新されることを特
徴とする請求項7記載の符号化方法。11. The encoding method according to claim 7, wherein the plurality of estimation steps are updated when the encoding efficiency in the encoding step decreases.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6313700A JPH08172534A (en) | 1994-12-16 | 1994-12-16 | Coder and its method |
EP95309150A EP0717554B1 (en) | 1994-12-16 | 1995-12-15 | Coding/decoding apparatus and coding/decoding method |
AU40487/95A AU688635B2 (en) | 1994-12-16 | 1995-12-15 | Coding/decoding apparatus and coding/decoding method |
DE69521191T DE69521191T2 (en) | 1994-12-16 | 1995-12-15 | Encoding and decoding device and method |
US08/573,533 US5848194A (en) | 1994-12-16 | 1995-12-15 | Coding/decoding apparatus and coding/decoding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6313700A JPH08172534A (en) | 1994-12-16 | 1994-12-16 | Coder and its method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH08172534A true JPH08172534A (en) | 1996-07-02 |
Family
ID=18044472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6313700A Pending JPH08172534A (en) | 1994-12-16 | 1994-12-16 | Coder and its method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH08172534A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5986594A (en) * | 1996-09-11 | 1999-11-16 | Canon Kabushiki Kaisha | Image compression by arithmetic coding with learning limit |
-
1994
- 1994-12-16 JP JP6313700A patent/JPH08172534A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5986594A (en) * | 1996-09-11 | 1999-11-16 | Canon Kabushiki Kaisha | Image compression by arithmetic coding with learning limit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100459715C (en) | Inter-block interpolation prediction coder, decoder, coding method and decoding method | |
JP4782181B2 (en) | Entropy decoding circuit, entropy decoding method, and entropy decoding method using pipeline method | |
US5848194A (en) | Coding/decoding apparatus and coding/decoding method | |
US7515761B2 (en) | Encoding device and method | |
JPH0969951A (en) | Encoding method and decoding method | |
US5436666A (en) | Limited-domain motion estimation/compensation for video encoding/decoding | |
CN105187845A (en) | Video data decoding device and method | |
US8711944B2 (en) | Representations of compressed video | |
JP4865662B2 (en) | Entropy encoding apparatus, entropy encoding method, and computer program | |
JP2005251196A (en) | Memory interface and data processing system | |
JP2009509415A (en) | Adaptive influence area filter | |
US20080260272A1 (en) | Image coding device, image coding method, and image decoding device | |
JPH08172534A (en) | Coder and its method | |
JP3432039B2 (en) | Image encoding method and apparatus | |
JPH08140098A (en) | Movement compensation coding device | |
US6091855A (en) | method and apparatus for encoding signal method and apparatus for decoding signal and recording medium | |
US6356667B1 (en) | Encoding apparatus and method, decoding apparatus and method and recording medium | |
US6668087B1 (en) | Filter arithmetic device | |
CN1222039A (en) | Digital information source decoder decoded by video | |
JP3213200B2 (en) | Decoding device and method | |
JP3326879B2 (en) | Image signal converter | |
JP3270665B2 (en) | Encoding / decoding apparatus and method | |
JP3251447B2 (en) | Encoding device and method, and decoding device and method | |
JP2003198858A (en) | Encoder and decoder | |
JPH08275181A (en) | Video data decoding device |