JP4130312B2 - Image encoding apparatus and image decoding apparatus - Google Patents
Image encoding apparatus and image decoding apparatus Download PDFInfo
- Publication number
- JP4130312B2 JP4130312B2 JP2001278402A JP2001278402A JP4130312B2 JP 4130312 B2 JP4130312 B2 JP 4130312B2 JP 2001278402 A JP2001278402 A JP 2001278402A JP 2001278402 A JP2001278402 A JP 2001278402A JP 4130312 B2 JP4130312 B2 JP 4130312B2
- Authority
- JP
- Japan
- Prior art keywords
- symbol
- codeword
- image
- unit
- update
- 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 Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、可変長符号語を用いて動画像データを符号化する画像符号化装置及び動画像データを復号化する画像復号化装置に関するものである。
【0002】
【従来の技術】
MPEGなどの国際標準方式をはじめ、一般に動画像を符号化する際には可変長符号化処理が用いられる。MPEGで採用されている可変長符号化処理は、シンボルを符号化する際、予めシンボルの発生確率に応じて、シンボルと可変長符号語が対応付けられた符号語テーブルを使用する手法がとられている。発生確率の高いシンボルには短い符号語を割り当て、発生確率の低いシンボルには長い符号語を割り当てることにより、平均の符号量を少なくする手法である。
【0003】
しかし、画像信号の性質によっては、シンボルの発生確率が必ずしも可変長符号語のテーブルには合致しない場合がある。したがって、予め符号語テーブルを作成する手法では、平均の符号量を少なくすることができない画像信号が存在する。
なお、特開平8−205169号公報には、全ての画像信号の平均の符号量を少なくすることができるようにするため、符号化処理を実施しながら、全てのシンボルの発生確率を計算し、符号語テーブルをフレーム毎に更新する画像符号化装置及び画像復号化装置が開示されている。
【0004】
【発明が解決しようとする課題】
従来の画像符号化装置及び画像復号化装置は以上のように構成されているので、全てのシンボルの発生確率を常に計算する必要があり、シンボルの個数が多くなる程、計算用のメモリや回路規模が大きくなる課題があった。
【0005】
この発明は上記のような課題を解決するためになされたもので、シンボルの個数が増えても、計算用のメモリや回路規模の増大を招くことなく、画像信号の符号量を少なくすることができる画像符号化装置及び画像復号化装置を得ることを目的とする。
【0006】
【課題を解決するための手段】
この発明に係る画像符号化装置は、可変長符号化手段に対する同一シンボルの連続入力回数を計数して、その連続入力回数が最大のシンボルを特定するシンボル特定手段と、そのシンボル特定手段により特定されたシンボルに対応する符号語が最も短い符号語になるように符号語テーブルを更新するテーブル更新手段とを設けたものである。
【0007】
この発明に係る画像符号化装置は、連続入力回数が最大のシンボルを記憶し、あるシンボルの連続入力回数が、最大のシンボルの連続入力回数を超えると、その記憶内容を更新するようにしたものである。
【0008】
この発明に係る画像符号化装置は、可変長符号化手段が予め定められている符号化の処理単位を完了する毎に、符号語テーブルを更新するようにしたものである。
【0009】
この発明に係る画像符号化装置は、シンボル特定手段により連続入力回数が最大のシンボル以外のシンボルも記憶されている場合、そのシンボルも考慮して符号語テーブルを更新するようにしたものである。
【0010】
この発明に係る画像符号化装置は、符号語テーブルの更新タイミングをテーブル更新手段に指示する更新制御手段を設けたものである。
【0011】
この発明に係る画像符号化装置は、テーブル更新手段により更新される符号語テーブルの他に、デフォルトの符号語テーブルが用意されている場合、可変長符号化手段が参照する符号語テーブルを選択する選択手段を設けたものである。
【0012】
この発明に係る画像符号化装置は、予め指定された領域に係る符号語テーブルのみを更新するようにしたものである。
【0013】
この発明に係る画像符号化装置は、予め指定された領域が分割された場合、各分割領域に係る符号語テーブルをそれぞれ更新するようにしたものである。
【0014】
この発明に係る画像符号化装置は、画像復号化装置に備わっている符号語テーブルの更新能力に応じてテーブル更新手段の更新能力を初期設定する初期設定手段を設けたものである。
【0015】
この発明に係る画像復号化装置は、可変長復号化手段による同一シンボルの連続出力回数を計数して、その連続出力回数が最大のシンボルを特定するシンボル特定手段と、そのシンボル特定手段により特定されたシンボルに対応する符号語が最も短い符号語になるように符号語テーブルを更新するテーブル更新手段とを設けたものである。
【0016】
この発明に係る画像復号化装置は、連続出力回数が最大のシンボルを記憶し、あるシンボルの連続出力回数が、最大のシンボルの連続出力回数を超えると、その記憶内容を更新するようにしたものである。
【0017】
この発明に係る画像復号化装置は、可変長復号化手段が予め定められている復号化の処理単位を完了する毎に、符号語テーブルを更新するようにしたものである。
【0018】
この発明に係る画像復号化装置は、シンボル特定手段が記憶内容を更新する毎に、符号語テーブルを更新するようにしたものである。
【0019】
この発明に係る画像復号化装置は、シンボル特定手段により連続出力回数が最大のシンボル以外のシンボルも記憶されている場合、そのシンボルも考慮して符号語テーブルを更新するようにしたものである。
【0020】
この発明に係る画像復号化装置は、符号語テーブルの更新タイミングをテーブル更新手段に指示する更新制御手段を設けたものである。
【0021】
この発明に係る画像復号化装置は、テーブル更新手段により更新される符号語テーブルの他に、デフォルトの符号語テーブルが用意されている場合、可変長復号化手段が参照する符号語テーブルを選択する選択手段を設けたものである。
【0022】
この発明に係る画像復号化装置は、予め指定された領域に係る符号語テーブルのみを更新するようにしたものである。
【0023】
この発明に係る画像復号化装置は、予め指定された領域が分割された場合、各分割領域に係る符号語テーブルをそれぞれ更新するようにしたものである。
【0024】
この発明に係る画像復号化装置は、テーブル更新手段の更新能力を初期設定する初期設定手段を設けたものである。
【0025】
この発明に係る画像復号化装置は、可変長復号化手段による同一シンボルの連続出力回数を計数して、その連続出力回数が最大のシンボルを特定し、そのシンボルに対応する符号語が最も短い符号語になるように符号語テーブルを更新するようにしたものである。
【0026】
【発明の実施の形態】
以下、この発明の実施の一形態を説明する。
実施の形態1.
図1はこの発明の実施の形態1による画像符号化装置及び画像復号化装置を示す構成図であり、図において、1は各種のシンボルに対応する符号語を格納する適応符号語テーブル(符号語テーブル)、2はあるシンボルを入力すると、適応符号語テーブル1を参照して当該シンボルに対応する符号語を出力する可変長符号化部(可変長符号化手段)、3は可変長符号化部2に対する同一シンボルの連続入力回数を計数して、その連続入力回数が最大のシンボルを特定する最大シンボル特定部(シンボル特定手段)、4は最大シンボル特定部3により特定されたシンボルに対応する符号語が最も短い符号語になるように適応符号語テーブル1を更新する適応符号語テーブル作成部(テーブル更新手段)である。
【0027】
5は各種のシンボルに対応する符号語を格納する適応符号語テーブル(符号語テーブル)であり、デフォルト時において画像符号化装置における適応符号語テーブル1と同一内容を格納している。6はある符号語を入力すると、適応符号語テーブル5を参照して当該符号語に対応するシンボルを出力する可変長復号化部(可変長復号化手段)、7は可変長復号化部6による同一シンボルの連続出力回数を計数して、その連続出力回数が最大のシンボルを特定する最大シンボル特定部(シンボル特定手段)、8は最大シンボル特定部7により特定されたシンボルに対応する符号語が最も短い符号語になるように適応符号語テーブル5を更新する適応符号語テーブル作成部(テーブル更新手段)である。
【0028】
次に動作について説明する。
まず、画像符号化装置に入力されるデータは、DCTや量子化などの処理が行われた様々な符号化シンボルである。例えば、MPEG−2の場合、図2に示すように、シーケンス情報、ピクチャ情報、スライス情報、マクロブロック情報、ブロック情報などの複数の階層に分けられる。
【0029】
シーケンス情報には、画像のサイズやフレームレートなど一連の符号化する情報が含まれている。ピクチャ情報には、そのピクチャの符号化タイプ(MPEG−2の場合は、フレーム内符号化、片方向フレーム間予測符号化又は両方向フレーム間予測符号化)や動き補償予測の探索範囲など、そのピクチャに固有な情報が含まれる。スライス情報には、そのスライスの先頭の位置情報が含まれており、符号化データにエラーが発生して復号処理が正しく行えなくなった場合に再同期をとるための最小の単位となる。
【0030】
マクロブロック情報には、符号化処理を行う最小単位であるマクロブロックの符号化方式や動き補償予測の方式等を示すマクロブロックタイプ、動きベクトル、マクロブロックを構成するブロックの有効・無効(量子化係数データの無いブロックを無効、1つ以上データのあるブロックを有効と呼ぶ)などの情報が含まれる。ブロック情報には、DCT・量子化処理により得られる量子化係数の情報が含まれる。
【0031】
画像符号化装置の可変長符号化部2は、あるシンボルを入力すると、適応符号語テーブル1を参照して当該シンボルに対応する符号語を出力する。適応符号語テーブル1の更新がまだ行われていないデフォルトの状態では、可変長符号化部2は、図3(a)のデフォルト符号語テーブルを参照する。例えば、入力したシンボルが“C”であれば、“001”の符号語を出力し、入力したシンボルが“E”であれば、“00001”の符号語を出力する。
【0032】
一方、最大シンボル特定部3は、可変長符号化部2に対する同一シンボルの連続入力回数を計数して、その連続入力回数が最大のシンボルを特定する。即ち、最大シンボル特定部3は、過去に可変長符号化部2に入力されたシンボルの中で、連続入力回数が最大のシンボルを記憶しており(例えば、シンボルAの連続入力回数が5回で、その他のシンボルB〜Fの連続入力回数が5回未満であれば、シンボルAを記憶している)、可変長符号化部2に今回入力されたシンボルの連続入力回数を計数する。例えば、シンボルCが入力された場合において、前回入力されたシンボルが“C”以外であれば、シンボルCの連続入力回数を“1”と計数する。一方、前回入力されたシンボルも“C”であれば、シンボルCの連続入力回数を“2”と計数する。さらに、前々回入力されたシンボルも“C”であれば、シンボルCの連続入力回数を“3”と計数する。
【0033】
このようにして、今回入力されたシンボルの連続入力回数を計数すると、そのシンボルの連続入力回数と、最大のシンボルの連続入力回数とを比較し、最大のシンボルの連続入力回数を上回っている場合には、最大シンボル特定部3の記憶内容である最大のシンボルを更新する。
上記の例では、今回入力されたシンボルCの連続入力回数が、シンボルAの連続入力回数である5回を上回ると、シンボルCが連続入力回数が最大のシンボルであるものとして更新する。
【0034】
適応符号語テーブル作成部4は、予め定められている符号化の処理単位(例えば、1ピクチャ分)を完了すると、最大シンボル特定部3により特定されたシンボルに対応する符号語が最も短い符号語になるように適応符号語テーブル1を更新する。
具体的には次の通りである。
【0035】
図3の例では、適応符号語テーブル1に格納されているシンボルの個数が6個であり、それぞれにハフマン符号語を与えている。
例えば、所定の単位の符号化処理を終えた結果、シンボルCの連続入力回数が最大であった場合、最短符号語である“1”をシンボルCの符号語とし、その他のシンボルに対しては順次符号語を与えるように、適応符号語テーブル1を更新する(図3(b)を参照)。
【0036】
さらに、次の所定の単位の符号化処理を終えた結果、シンボルDの発生回数が最大であった場合、最短符号語である“1”をシンボルDの符号語とし、一つ前の単位で連続入力回数が最大であったシンボル“C”を2番目に短い符号語を与えて、以下順次符号語を与えるように、適応符号語テーブル1を更新する(図3(c)を参照)。
以下、この作業を繰り返し実行して適応符号語テーブル1の更新作業を行う。
【0037】
画像復号化装置の可変長復号化部6は、画像符号化装置からある符号語を受信すると、適応符号語テーブル5を参照して当該符号語に対応するシンボルを出力する。適応符号語テーブル5の更新がまだ行われていないデフォルトの状態では、可変長復号化部6は、図3(a)のデフォルト符号語テーブルを参照する。例えば、入力した符号語が“001”であれば、シンボルCを出力し、入力した符号語が“00001”であれば、シンボルEを出力する。
【0038】
最大シンボル特定部7は、可変長復号化部6による同一シンボルの連続出力回数を計数して、その連続出力回数が最大のシンボルを特定する。
なお、最大シンボル特定部7の処理内容は、画像符号化装置の最大シンボル特定部3の処理内容と基本的に同様であるため詳細な説明は省略する。
【0039】
適応符号語テーブル作成部8は、予め定められている符号化の処理単位(例えば、1ピクチャ分)を完了すると、最大シンボル特定部7により特定されたシンボルに対応する符号語が最も短い符号語になるように適応符号語テーブル5を更新する。
なお、適応符号語テーブル作成部8の処理内容は、画像符号化装置の適応符号語テーブル作成部4の処理内容と基本的に同様であるため詳細な説明は省略する。
これにより、画像符号化装置の適応符号語テーブル1と画像復号化装置の適応符号語テーブル5は、同一内容の格納が維持される。
【0040】
以上で明らかなように、この実施の形態1によれば、画像符号化装置では、可変長符号化部2に対する同一シンボルの連続入力回数を計数して、その連続入力回数が最大のシンボルを特定し、そのシンボルに対応する符号語が最も短い符号語になるように適応符号語テーブル1を更新するように構成し、画像復号化装置では、可変長復号化部6による同一シンボルの連続出力回数を計数して、その連続出力回数が最大のシンボルを特定し、そのシンボルに対応する符号語が最も短い符号語になるように適応符号語テーブル5を更新するように構成したので、最大シンボル特定部3,7では2種類のシンボル(連続入力回数又は連続出力回数が最大のシンボル、今回入力されたシンボル)分の記憶領域を用意するだけで足りる。したがって、シンボルの個数が増えても、計算用のメモリや回路規模の増大を招くことなく、画像信号の符号量を少なくすることができる効果を奏する。
【0041】
この実施の形態1では、1ピクチャ分の処理毎に、適応符号語テーブル1,5の更新を行うものについて示したが、1スライス単位や予め指定されたスライス数もしくはピクチャ数単位に更新を行うようにしてもよい。
また、1ピクチャ分の処理毎に、適応符号語テーブル1,5の更新を行うのではなく、最大シンボル特定部3,7が記憶内容を更新する毎に、適応符号語テーブル1,5を更新するようにしてもよい。
【0042】
また、この実施の形態1では、連続入力回数(または連続出力回数)が最大のシンボルを1つのみ記憶するものについて示したが、2以上のシンボル(例えば、連続入力回数が最大のシンボルと連続入力回数が2番目のシンボル、あるいは、指定された連続入力回数を超えたすべてのシンボル)を記憶するようにしてもよい。これにより、画像信号の符号量をより少なくすることができる効果を奏する。
なお、記憶するシンボルの個数については、予め画像符号化装置と画像復号化装置間で決めておいてもよいし、画像符号化装置からシーケンス情報の一つとして、その個数を画像復号化装置に知らせるようにしてもよい。
【0043】
実施の形態2.
図4はこの発明の実施の形態2による画像符号化装置及び画像復号化装置を示す構成図であり、図において、図1と同一符号は同一または相当部分を示すので説明を省略する。
11は適応符号語テーブル1,5の更新タイミングを適応符号語テーブル作成部4,8に指示する符号語テーブル制御部(更新制御手段)である。
【0044】
次に動作について説明する。
上記実施の形態1では、予め定められている符号化の処理単位(例えば、1ピクチャ分)を完了すると、適応符号語テーブル1,5を更新するものについて示したが、符号語テーブル制御部11が適応符号語テーブル1,5の更新タイミングを適応符号語テーブル作成部4,8に指示するようにしてもよい。
これにより、上記実施の形態1では、予め指定された所定の単位毎でしかテーブルの更新処理を行えなかったが、任意のタイミングで適応符号語テーブル1,5の更新を行うことが可能となり、効率の良い符号化や復号化処理を実現することが可能となる。
【0045】
なお、図4の例では、符号語テーブル制御部11と画像復号化装置の適応符号語テーブル作成部8との間に信号線を配線して、符号語テーブル制御部11からの制御信号を適応符号語テーブル作成部8に送る必要があるが、可変長符号化部2が符号語に含めて当該制御信号を画像復号化装置に送るようにすれば、上記信号線を省略することができる。
【0046】
実施の形態3.
図5はこの発明の実施の形態3による画像符号化装置及び画像復号化装置を示す構成図であり、図において、図1と同一符号は同一または相当部分を示すので説明を省略する。
1aは適応符号語テーブル1のデフォルト時の格納内容を記憶するデフォルト符号語テーブル(符号語テーブル)、5aは適応符号語テーブル5のデフォルト時の格納内容を記憶するデフォルト符号語テーブル(符号語テーブル)、12は適応符号語テーブル1又はデフォルト符号語テーブル1aを選択するスイッチ、13は適応符号語テーブル5又はデフォルト符号語テーブル5aを選択するスイッチ、14はスイッチ12,13を制御する符号語テーブル選択部である。なお、スイッチ12,13及び符号語テーブル選択部14から選択手段が構成されている。
【0047】
次に動作について説明する。
上記実施の形態1,2では、可変長符号化部2が常に適応符号語テーブル1を参照し、可変長復号化部6が常に適応符号語テーブル5を参照するものについて示したが、符号語テーブル選択部14がスイッチ12,13を制御することにより、可変長符号化部2及び可変長復号化部6が必要に応じてデフォルト符号語テーブル1a,5aを参照できるようにしてもよい。
これにより、例えば、図示せぬ受信機側よりエラー信号を受信した場合や、画像信号の途中から再生を開始するような場合には、デフォルト符号語テーブル1a,5aを参照することができるので、符号精度の劣化を抑制することができる効果を奏する。
【0048】
実施の形態4.
図6はこの発明の実施の形態4による画像符号化装置及び画像復号化装置を示す構成図であり、図において、図1と同一符号は同一または相当部分を示すので説明を省略する。
15は適応符号語テーブル1,5を更新する画像領域を指定する領域指定部(テーブル更新手段)である。
【0049】
次に動作について説明する。
領域指定部15は、例えば、画面の中央付近の所定の範囲を指定する(図7の網掛部分)。
これにより、最大シンボル特定部3,7は、その領域内でのみシンボルの発生回数を計数するので、適応符号語テーブル作成部4,8は、その領域に係る適応符号語テーブル1,5のみを更新することになる。
【0050】
したがって、画面の中央付近にのみ人物が写っており、周囲はほとんど変化の無い背景画像となるテレビ電話やテレビ会議のような映像に対して、人物付近の最も重要な領域のみのシンボル発生回数を計数することができるため、符号化効率の向上を図ることができるとともに、計算用のメモリや回路規模の増大を抑制することができる効果を奏する。
【0051】
領域の指定方法としては、例えば、矩形領域の場合には、左上と右下の座標を指定し、シーケンス情報として復号処理側に通知することにより、符号化処理側・復号処理側の双方で同じ単位で適応符号語テーブル1,5の更新処理が可能となる。また、人物が時々刻々と移動するような映像の場合には、ピクチャ情報として領域の移動情報を指定することにより、個々のフレームに合わせて最適化を図ることも可能となる。また、図7のような矩形領域に対応するばかりでなく、人物の形を忠実にとらえた任意形状領域に対して適用することも可能である。
【0052】
なお、この実施の形態4では、上記実施の形態1と同様に、同一シンボルの連続入力回数(または連続出力回数)を計数して、その連続入力回数(または連続出力回数)が最大のシンボルを特定し、そのシンボルに対応する符号語が最も短い符号語になるように適応符号語テーブル1,5を更新するものに適用するものについて示したが、従来例と同様に、全てのシンボルに対する発生確率を計算することにより、可変長符号化部2により符号化されるシンボル、または、可変長復号化部6により復号化されたシンボルの発生頻度に応じて適応符号語テーブル1,5を更新するものに適用するようにしてもよい。
【0053】
実施の形態5.
上記実施の形態4では、適応符号語テーブル1,5を更新する画像領域を指定するものについて示したが、図8に示すように、領域指定部15が指定領域の分割を指示するようにして、各分割領域に係る適応符号語テーブル1,5をそれぞれ更新するようにしてもよい。
【0054】
即ち、この実施の形態5では、図8に示すように、例えば、画面を水平方向に4つ、垂直方向に3つの合計12個の領域に分割する。この場合は、それぞれの単位でシンボルの発生回数を計数し、それぞれの単位ごとに適応符号語テーブル1,5を作成する。分割数だけ最大シンボル特定部3,7、適応符号語テーブル作成部4,8、適応符号語テーブル1,5が必要になるが、それぞれの領域毎に最適な適応符号語テーブル1,5を作成することができるため、符号化効率の向上を図ることができる。
なお、分割数や分割の方法に関しては、シーケンス情報として復号処理側に通知することにより、符号化処理側・復号処理側の双方で同じ単位で適応符号語テーブル1,5の更新処理が可能となる。
【0055】
実施の形態6.
図9はこの発明の実施の形態6による画像符号化装置及び画像復号化装置を示す構成図であり、図において、図1と同一符号は同一または相当部分を示すので説明を省略する。
16は画像復号化装置における適応符号語テーブル5の更新能力を初期設定する一方、適応符号語テーブル5の更新能力を示す情報を符号化能力制御部17に送信する復号能力制御部(初期設定手段)、17は復号能力制御部16から画像復号化装置に備わっている適応符号語テーブル5の更新能力を示す情報を受信すると、その更新能力に応じて画像符号化装置における適応符号語テーブル1の更新能力を初期設定する符号化能力制御部(初期設定手段)である。
【0056】
次に動作について説明する。
まず、復号能力制御部16は、画像復号化装置における適応符号語テーブル5の更新能力を初期設定し、その更新能力を示す情報を符号化能力制御部17に送信する。
ここで、適応符号語テーブル5の更新能力とは、例えば、適応符号語テーブル5の作成能力の有無、適応符号語テーブル作成部8の最短動作周期(例えば、ピクチャ単位でしか動作できない、スライス単位で処理できるなどの動作周期)や、作成できる適応符号語テーブル5の個数、最大シンボル特定部7で計数できるシンボルの最大個数などである。
【0057】
符号化能力制御部17は、復号能力制御部16から画像復号化装置に備わっている適応符号語テーブル5の更新能力を示す情報を受信すると、その更新能力に応じて画像符号化装置における適応符号語テーブル1の更新能力を初期設定する。即ち、復号処理側の能力に応じて適応符号語テーブル1の使用の有無、適応符号語テーブル作成部4の動作周期や適応符号語テーブル1の個数、最大シンボル特定部3で計数するシンボルの個数などを設定し、動作の制御を行う。符号化処理側での設定内容は、例えばシーケンス情報の一部として復号処理側に通知される。
このようにすることにより、画像符号化装置・画像復号化装置で処理することが可能な最大能力を使用して符号化・復号化処理を行うことができる。
【0058】
この実施の形態6では、復号処理側の処理能力に関して、適応符号語テーブル5の更新能力を示す情報を符号化処理側に通知するものとして説明を行ったが、復号処理能力に対して複数の階層を事前に設けておき、その能力に応じて符号化処理側および復号処理側を制御するようにしてもよい。
例えば、携帯電話のように、その搭載能力が限定されるような端末に対しては適応符号語テーブルを一つだけ持つというように事前に取り決めを行っておけば、携帯電話と通信を行う場合には、適応符号語テーブル5の更新能力を示す情報を送受信することなく、符号化能力制御部17において符号化処理側の能力制御を行うことができるため、より効率の良い符号化・復号化処理を実現することができる。
【0059】
また、復号処理側においては、復号処理を行うフレームレート(1秒間あたりの復号フレーム数)や符号化タイプ(フレーム内符号化/片方向フレーム間予測符号化/両方向フレーム間予測符号化)などによって処理量が異なる。そこで、フレームレートや符号化タイプに対応させた復号能力を設定しておき、符号化処理側における符号化能力制御部17が符号化処理を制御することにより、より効率の良い符号化・復号処理を実現することができる。
【0060】
また、この実施の形態6では、MPEG−2を対象に説明を行ったが、MPEG−2のように階層構造化された他の動画像符号化方式に適用することも可能である。また、国際標準方式のH.261やH.263のようにシーケンス情報の階層を持たない方式に適用する場合には、シーケンス情報のパラメータとして説明したものを全てピクチャ情報に入れることにより、説明した全ての方法を実現することができる。
【0061】
なお、この実施の形態6では、上記実施の形態1と同様に、同一シンボルの連続入力回数(または連続出力回数)を計数して、その連続入力回数(または連続出力回数)が最大のシンボルを特定し、そのシンボルに対応する符号語が最も短い符号語になるように適応符号語テーブル1,5を更新するものに適用するものについて示したが、従来例と同様に、全てのシンボルに対する発生確率を計算することにより、可変長符号化部2により符号化されるシンボル、または、可変長復号化部6により復号化されたシンボルの発生頻度に応じて適応符号語テーブル1,5を更新するものに適用するようにしてもよい。
【0062】
【発明の効果】
以上のように、この発明によれば、可変長符号化手段に対する同一シンボルの連続入力回数を計数して、その連続入力回数が最大のシンボルを特定するシンボル特定手段と、そのシンボル特定手段により特定されたシンボルに対応する符号語が最も短い符号語になるように符号語テーブルを更新するテーブル更新手段とを設けるように構成したので、シンボルの個数が増えても、計算用のメモリや回路規模の増大を招くことなく、画像信号の符号量を少なくすることができる効果がある。
【0063】
この発明によれば、連続入力回数が最大のシンボルを記憶し、あるシンボルの連続入力回数が、最大のシンボルの連続入力回数を超えると、その記憶内容を更新するように構成したので、シンボルの個数が増えても、計算用のメモリや回路規模の増大を抑制することができる効果がある。
【0064】
この発明によれば、可変長符号化手段が予め定められている符号化の処理単位を完了する毎に、符号語テーブルを更新するように構成したので、周期的に符号語テーブルを更新することができる効果がある。
【0065】
この発明によれば、シンボル特定手段により連続入力回数が最大のシンボル以外のシンボルも記憶されている場合、そのシンボルも考慮して符号語テーブルを更新するように構成したので、画像信号の符号量をより少なくすることができる効果がある。
【0066】
この発明によれば、符号語テーブルの更新タイミングをテーブル更新手段に指示する更新制御手段を設けるように構成したので、効率の良い符号化や復号化処理を実現することができる効果がある。
【0067】
この発明によれば、テーブル更新手段により更新される符号語テーブルの他に、デフォルトの符号語テーブルが用意されている場合、可変長符号化手段が参照する符号語テーブルを選択する選択手段を設けるように構成したので、符号精度の劣化を抑制することができる効果がある。
【0068】
この発明によれば、予め指定された領域に係る符号語テーブルのみを更新するように構成したので、符号化効率の向上を図ることができるとともに、計算用のメモリや回路規模の増大を抑制することができる効果がある。
【0069】
この発明によれば、予め指定された領域が分割された場合、各分割領域に係る符号語テーブルをそれぞれ更新するように構成したので、符号化効率の向上を図ることができる効果がある。
【0070】
この発明によれば、画像復号化装置に備わっている符号語テーブルの更新能力に応じてテーブル更新手段の更新能力を初期設定する初期設定手段を設けるように構成したので、画像符号化装置で処理することが可能な最大能力を使用して符号化処理を行うことができる効果がある。
【0071】
この発明によれば、可変長復号化手段による同一シンボルの連続出力回数を計数して、その連続出力回数が最大のシンボルを特定するシンボル特定手段と、そのシンボル特定手段により特定されたシンボルに対応する符号語が最も短い符号語になるように符号語テーブルを更新するテーブル更新手段とを設けるように構成したので、シンボルの個数が増えても、計算用のメモリや回路規模の増大を招くことなく、画像信号の符号量を少なくすることができる効果がある。
【0072】
この発明によれば、連続出力回数が最大のシンボルを記憶し、あるシンボルの連続出力回数が、最大のシンボルの連続出力回数を超えると、その記憶内容を更新するように構成したので、シンボルの個数が増えても、計算用のメモリや回路規模の増大を抑制することができる効果がある。
【0073】
この発明によれば、可変長復号化手段が予め定められている復号化の処理単位を完了する毎に、符号語テーブルを更新するように構成したので、周期的に符号語テーブルを更新することができる効果がある。
【0074】
この発明によれば、シンボル特定手段が記憶内容を更新する毎に、符号語テーブルを更新するように構成したので、符号語テーブルを効率よく更新することができる効果がある。
【0075】
この発明によれば、シンボル特定手段により連続出力回数が最大のシンボル以外のシンボルも記憶されている場合、そのシンボルも考慮して符号語テーブルを更新するように構成したので、画像信号の符号量をより少なくすることができる効果がある。
【0076】
この発明によれば、符号語テーブルの更新タイミングをテーブル更新手段に指示する更新制御手段を設けるように構成したので、効率の良い符号化や復号化処理を実現することができる効果がある。
【0077】
この発明によれば、テーブル更新手段により更新される符号語テーブルの他に、デフォルトの符号語テーブルが用意されている場合、可変長復号化手段が参照する符号語テーブルを選択する選択手段を設けるように構成したので、符号精度の劣化を抑制することができる効果がある。
【0078】
この発明によれば、予め指定された領域に係る符号語テーブルのみを更新するように構成したので、符号化効率の向上を図ることができるとともに、計算用のメモリや回路規模の増大を抑制することができる効果がある。
【0079】
この発明によれば、予め指定された領域が分割された場合、各分割領域に係る符号語テーブルをそれぞれ更新するように構成したので、符号化効率の向上を図ることができる効果がある。
【0080】
この発明によれば、テーブル更新手段の更新能力を初期設定する初期設定手段を設けるように構成したので、画像復号化装置で処理することが可能な最大能力を使用して復号処理を行うことができる効果がある。
【0081】
この発明によれば、可変長復号化手段による同一シンボルの連続出力回数を計数して、その連続出力回数が最大のシンボルを特定し、そのシンボルに対応する符号語が最も短い符号語になるように符号語テーブルを更新するように構成したので、シンボルの個数が増えても、計算用のメモリや回路規模の増大を招くことなく、画像信号の符号量を少なくすることができる効果がある。
【図面の簡単な説明】
【図1】 この発明の実施の形態1による画像符号化装置及び画像復号化装置を示す構成図である。
【図2】 符号化シンボルの一例を示す説明図である。
【図3】 適応符号語テーブルの格納内容を示す説明図である。
【図4】 この発明の実施の形態2による画像符号化装置及び画像復号化装置を示す構成図である。
【図5】 この発明の実施の形態3による画像符号化装置及び画像復号化装置を示す構成図である。
【図6】 この発明の実施の形態4による画像符号化装置及び画像復号化装置を示す構成図である。
【図7】 指定領域を示す説明図である。
【図8】 分割領域を示す説明図である。
【図9】 この発明の実施の形態6による画像符号化装置及び画像復号化装置を示す構成図である。
【符号の説明】
1 適応符号語テーブル(符号語テーブル)、1a デフォルト符号語テーブル(符号語テーブル)、2 可変長符号化部(可変長符号化手段)、3 最大シンボル特定部(シンボル特定手段)、4 適応符号語テーブル作成部(テーブル更新手段)、5 適応符号語テーブル(符号語テーブル)、5a デフォルト符号語テーブル(符号語テーブル)、6 可変長復号化部(可変長復号化手段)、7 最大シンボル特定部(シンボル特定手段)、8 適応符号語テーブル作成部(テーブル更新手段)、11 符号語テーブル制御部(更新制御手段)、12 スイッチ(選択手段)、13 スイッチ(選択手段)、14 符号語テーブル選択部(選択手段)、15 領域指定部(テーブル更新手段)、16 復号能力制御部(初期設定手段)、17 符号化能力制御部(初期設定手段)。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image encoding device that encodes moving image data using a variable-length codeword and an image decoding device that decodes moving image data.
[0002]
[Prior art]
In general, a variable length encoding process is used when encoding a moving image including an international standard system such as MPEG. The variable length encoding process employed in MPEG employs a method of using a codeword table in which symbols and variable length codewords are associated in advance according to the probability of occurrence of symbols when encoding symbols. ing. This is a technique for reducing the average code amount by assigning a short code word to a symbol with a high probability of occurrence and assigning a long code word to a symbol with a low probability of occurrence.
[0003]
However, depending on the nature of the image signal, the symbol occurrence probability may not necessarily match the variable length codeword table. Therefore, there is an image signal in which the average code amount cannot be reduced by the method of creating the codeword table in advance.
In JP-A-8-205169, in order to reduce the average code amount of all image signals, the probability of occurrence of all symbols is calculated while performing the encoding process, An image encoding device and an image decoding device that update a codeword table for each frame are disclosed.
[0004]
[Problems to be solved by the invention]
Since the conventional image encoding device and image decoding device are configured as described above, it is necessary to always calculate the probability of occurrence of all symbols. The larger the number of symbols, the more the memory and circuit for calculation. There was a problem of increasing the scale.
[0005]
The present invention has been made to solve the above-described problems. Even if the number of symbols increases, the code amount of the image signal can be reduced without increasing the memory for calculation and the circuit scale. An object is to obtain an image encoding device and an image decoding device that can be used.
[0006]
[Means for Solving the Problems]
The image coding apparatus according to the present invention counts the number of consecutive inputs of the same symbol to the variable length coding unit, identifies the symbol having the maximum number of consecutive inputs, and identifies the symbol by the symbol identifying unit. And table update means for updating the codeword table so that the codeword corresponding to the symbol becomes the shortest codeword.
[0007]
The image coding apparatus according to the present invention stores a symbol having the maximum number of continuous inputs, and updates the stored contents when the number of continuous inputs of a certain symbol exceeds the number of continuous inputs of the maximum symbol. It is.
[0008]
The image coding apparatus according to the present invention updates the codeword table every time the variable length coding means completes a predetermined coding processing unit.
[0009]
In the image coding apparatus according to the present invention, when a symbol other than the symbol having the maximum number of continuous inputs is stored by the symbol specifying means, the code word table is updated in consideration of the symbol.
[0010]
The image coding apparatus according to the present invention is provided with update control means for instructing the table update means to update the codeword table.
[0011]
The image coding apparatus according to the present invention selects a codeword table referred to by the variable length coding means when a default codeword table is prepared in addition to the codeword table updated by the table updating means. Selection means are provided.
[0012]
The image coding apparatus according to the present invention updates only the code word table relating to a predesignated area.
[0013]
The image coding apparatus according to the present invention updates a codeword table related to each divided area when a previously designated area is divided.
[0014]
The image coding apparatus according to the present invention is provided with an initial setting means for initially setting the update capability of the table update means in accordance with the update capability of the codeword table provided in the image decoding device.
[0015]
The image decoding apparatus according to the present invention counts the number of consecutive outputs of the same symbol by the variable-length decoding unit, specifies a symbol having the maximum number of consecutive outputs, and specifies the symbol by the symbol specifying unit. And table update means for updating the codeword table so that the codeword corresponding to the symbol becomes the shortest codeword.
[0016]
The image decoding apparatus according to the present invention stores a symbol having the maximum number of continuous outputs, and updates the stored contents when the number of continuous outputs of a certain symbol exceeds the number of continuous outputs of the maximum symbol. It is.
[0017]
The image decoding apparatus according to the present invention updates the codeword table every time the variable length decoding means completes a predetermined decoding processing unit.
[0018]
The image decoding apparatus according to the present invention updates the codeword table every time the symbol specifying means updates the stored contents.
[0019]
In the image decoding apparatus according to the present invention, when a symbol other than the symbol having the maximum number of continuous outputs is stored by the symbol specifying means, the code word table is updated in consideration of the symbol.
[0020]
The image decoding apparatus according to the present invention is provided with update control means for instructing the table update means to update the codeword table.
[0021]
The image decoding apparatus according to the present invention selects a codeword table referred to by the variable length decoding means when a default codeword table is prepared in addition to the codeword table updated by the table updating means. Selection means are provided.
[0022]
The image decoding apparatus according to the present invention updates only the codeword table relating to a predesignated area.
[0023]
The image decoding apparatus according to the present invention updates a codeword table relating to each divided area when a previously designated area is divided.
[0024]
The image decoding apparatus according to the present invention is provided with an initial setting means for initially setting the update capability of the table update means.
[0025]
The image decoding apparatus according to the present invention counts the number of consecutive outputs of the same symbol by the variable length decoding means, identifies the symbol having the maximum number of consecutive outputs, and codes with the shortest code word corresponding to the symbol The code word table is updated so that it becomes a word.
[0026]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described below.
FIG. 1 is a block diagram showing an image coding apparatus and an image decoding apparatus according to
[0027]
[0028]
Next, the operation will be described.
First, data input to the image encoding device is various encoded symbols subjected to processing such as DCT and quantization. For example, in the case of MPEG-2, as shown in FIG. 2, it is divided into a plurality of layers such as sequence information, picture information, slice information, macroblock information, and block information.
[0029]
The sequence information includes a series of information to be encoded such as an image size and a frame rate. The picture information includes the picture such as the coding type of the picture (in the case of MPEG-2, intra-frame coding, one-way inter-frame prediction coding or two-way inter-frame prediction coding) and the search range of motion compensation prediction. Contains specific information. The slice information includes the position information of the head of the slice, and becomes the minimum unit for resynchronization when an error occurs in the encoded data and the decoding process cannot be performed correctly.
[0030]
The macroblock information includes macroblock type, motion vector, and valid / invalid (quantization) of the block constituting the macroblock indicating the encoding method of the macroblock, the motion compensation prediction method, etc. Information such as a block having no coefficient data is invalid and a block having one or more data is called valid). The block information includes quantization coefficient information obtained by DCT / quantization processing.
[0031]
When a variable symbol is input to the variable
[0032]
On the other hand, the maximum
[0033]
In this way, when the number of consecutive inputs of the symbol input this time is counted, the number of consecutive inputs of the symbol is compared with the number of consecutive inputs of the maximum symbol, and the number of consecutive inputs of the maximum symbol is exceeded. The maximum symbol which is the stored content of the maximum
In the above example, when the number of continuous inputs of the symbol C input this time exceeds 5 that is the number of continuous inputs of the symbol A, the symbol C is updated as the symbol having the maximum number of continuous inputs.
[0034]
When the adaptive codeword
Specifically, it is as follows.
[0035]
In the example of FIG. 3, the number of symbols stored in the adaptive codeword table 1 is 6, and a Huffman codeword is given to each.
For example, when the number of consecutive inputs of the symbol C is the maximum as a result of the completion of the encoding process of a predetermined unit, the shortest code word “1” is set as the code word of the symbol C, and for other symbols The adaptive codeword table 1 is updated so as to sequentially supply codewords (see FIG. 3B).
[0036]
Further, when the number of occurrences of the symbol D is the maximum as a result of completing the encoding process of the next predetermined unit, the shortest code word “1” is set as the code word of the symbol D, and the previous unit is used. The adaptive codeword table 1 is updated so that the second short codeword is given to the symbol “C” having the maximum number of continuous inputs, and the codeword is given sequentially thereafter (see FIG. 3C).
Thereafter, this operation is repeatedly executed to update the adaptive codeword table 1.
[0037]
When the variable
[0038]
The maximum
Note that the processing content of the maximum
[0039]
When the adaptive codeword
Note that the processing content of the adaptive codeword
Thereby, the storage of the same content is maintained in the adaptive codeword table 1 of the image encoding device and the adaptive codeword table 5 of the image decoding device.
[0040]
As is apparent from the above, according to the first embodiment, the image coding apparatus counts the number of consecutive inputs of the same symbol to the variable
[0041]
In the first embodiment, the adaptive codeword tables 1 and 5 are updated every time one picture is processed. However, the update is performed in units of one slice, a predetermined number of slices or a number of pictures. You may do it.
In addition, the adaptive codeword tables 1 and 5 are not updated every time one picture is processed, but the adaptive codeword tables 1 and 5 are updated every time the maximum
[0042]
In the first embodiment, only one symbol having the maximum number of continuous inputs (or the number of continuous outputs) is stored. However, two or more symbols (for example, the symbols having the maximum number of continuous inputs are continuously included). It is also possible to store the second input symbol or all symbols exceeding the designated number of consecutive inputs. Thereby, there is an effect that the code amount of the image signal can be further reduced.
Note that the number of symbols to be stored may be determined in advance between the image encoding device and the image decoding device, or the number of symbols as one of the sequence information from the image encoding device to the image decoding device. You may make it inform.
[0043]
4 is a block diagram showing an image coding apparatus and an image decoding apparatus according to
Reference numeral 11 denotes a codeword table control unit (update control means) that instructs the adaptive codeword
[0044]
Next, the operation will be described.
In
Thereby, in the first embodiment, the table update process can be performed only in predetermined units specified in advance. However, the adaptive codeword tables 1 and 5 can be updated at an arbitrary timing. Efficient encoding and decoding processing can be realized.
[0045]
In the example of FIG. 4, a signal line is wired between the codeword table control unit 11 and the adaptive codeword
[0046]
FIG. 5 is a block diagram showing an image coding apparatus and an image decoding apparatus according to
1a is a default codeword table (codeword table) for storing the default stored contents of the adaptive codeword table 1, and 5a is a default codeword table (codeword table) for storing the default stored contents of the adaptive codeword table 5. ), 12 is a switch for selecting the adaptive codeword table 1 or the default codeword table 1a, 13 is a switch for selecting the adaptive codeword table 5 or the default codeword table 5a, and 14 is a codeword table for controlling the
[0047]
Next, the operation will be described.
In the first and second embodiments, the variable
Thereby, for example, when an error signal is received from a receiver (not shown) or when reproduction is started from the middle of an image signal, the default codeword tables 1a and 5a can be referred to. There is an effect that the deterioration of the code accuracy can be suppressed.
[0048]
6 is a block diagram showing an image coding apparatus and an image decoding apparatus according to
[0049]
Next, the operation will be described.
For example, the
As a result, the maximum
[0050]
Therefore, the number of occurrences of symbols only in the most important area near the person is shown for a videophone or video conference that is a background image that has a background image with almost no change, with the person appearing only near the center of the screen. Since counting can be performed, the encoding efficiency can be improved, and an increase in the memory for calculation and the circuit scale can be suppressed.
[0051]
For example, in the case of a rectangular area, the area designation method is the same on both the encoding process side and the decoding process side by designating the upper left and lower right coordinates and notifying the decoding process side as sequence information. It is possible to update the adaptive codeword tables 1 and 5 in units. In addition, in the case of a video in which a person moves from moment to moment, it is possible to optimize in accordance with individual frames by specifying region movement information as picture information. In addition to corresponding to the rectangular area as shown in FIG. 7, the present invention can be applied to an arbitrary shape area that accurately captures the shape of a person.
[0052]
In the fourth embodiment, as in the first embodiment, the number of continuous inputs (or the number of continuous outputs) of the same symbol is counted, and the symbol having the maximum number of continuous inputs (or the number of continuous outputs) is counted. It was specified and applied to the one that updates the adaptive codeword tables 1 and 5 so that the codeword corresponding to the symbol becomes the shortest codeword. By calculating the probability, the adaptive codeword tables 1 and 5 are updated according to the frequency of occurrence of the symbols encoded by the variable
[0053]
In the fourth embodiment, the adaptive codeword tables 1 and 5 are designated for specifying the image area to be updated. However, as shown in FIG. 8, the
[0054]
That is, in the fifth embodiment, as shown in FIG. 8, for example, the screen is divided into four areas in the horizontal direction and three areas in the vertical direction, for a total of 12 areas. In this case, the number of symbol occurrences is counted in each unit, and adaptive codeword tables 1 and 5 are created for each unit. The maximum number of
The number of divisions and the division method are notified to the decoding processing side as sequence information, so that the adaptive codeword tables 1 and 5 can be updated in the same unit on both the encoding processing side and the decoding processing side. Become.
[0055]
FIG. 9 is a block diagram showing an image encoding device and an image decoding device according to
16 is a decoding capability control unit (initial setting means) for initializing the update capability of the adaptive codeword table 5 in the image decoding apparatus and transmitting information indicating the update capability of the adaptive codeword table 5 to the encoding
[0056]
Next, the operation will be described.
First, the decoding
Here, the update capability of the adaptive codeword table 5 is, for example, whether or not the adaptive codeword table 5 is created, the shortest operation cycle of the adaptive codeword table creation unit 8 (for example, a slice unit that can operate only in units of pictures) The number of adaptive codeword tables 5 that can be created, the maximum number of symbols that can be counted by the maximum
[0057]
When receiving the information indicating the update capability of the adaptive codeword table 5 provided in the image decoding device from the decoding
In this way, encoding / decoding processing can be performed using the maximum capability that can be processed by the image encoding device / image decoding device.
[0058]
In the sixth embodiment, the processing capability on the decoding processing side has been described as notifying the encoding processing side of information indicating the update capability of the adaptive codeword table 5, but there are a plurality of decoding processing capabilities. A hierarchy may be provided in advance, and the encoding processing side and the decoding processing side may be controlled according to the capability.
For example, if you decide to have a single adaptive codeword table for terminals with limited installation capabilities, such as mobile phones, you can communicate with mobile phones. Therefore, since the capability control on the encoding process side can be performed in the encoding
[0059]
On the decoding process side, depending on the frame rate (number of decoded frames per second) and the encoding type (intra-frame encoding / unidirectional inter-frame predictive encoding / bidirectional inter-frame predictive encoding) The amount of processing is different. Therefore, the decoding capability corresponding to the frame rate and the encoding type is set, and the encoding
[0060]
In the sixth embodiment, the description has been given for MPEG-2, but the present invention can also be applied to other moving picture coding systems having a hierarchical structure such as MPEG-2. In addition, the international standard H.264 standard. 261 and H.264. When applied to a method such as H.263 that does not have a sequence information hierarchy, all the methods described as sequence information parameters can be implemented in the picture information by implementing all the described methods.
[0061]
In the sixth embodiment, as in the first embodiment, the number of continuous inputs (or the number of continuous outputs) of the same symbol is counted, and the symbol having the maximum number of continuous inputs (or the number of continuous outputs) is counted. It was specified and applied to the one that updates the adaptive codeword tables 1 and 5 so that the codeword corresponding to the symbol becomes the shortest codeword. By calculating the probability, the adaptive codeword tables 1 and 5 are updated according to the frequency of occurrence of the symbols encoded by the variable
[0062]
【The invention's effect】
As described above, according to the present invention, the number of consecutive inputs of the same symbol to the variable length coding means is counted, and the symbol specifying means for specifying the symbol having the maximum number of continuous inputs and the symbol specifying means specify Since the table update means for updating the code word table is provided so that the code word corresponding to the selected symbol becomes the shortest code word, even if the number of symbols increases, the memory for calculation and the circuit scale There is an effect that the amount of code of the image signal can be reduced without incurring an increase in the image signal.
[0063]
According to the present invention, the symbol having the maximum number of continuous inputs is stored, and when the number of continuous inputs of a certain symbol exceeds the number of continuous inputs of the maximum symbol, the stored contents are updated. Even if the number increases, it is possible to suppress an increase in the memory for calculation and the circuit scale.
[0064]
According to the present invention, since the codeword table is updated every time the variable length coding means completes a predetermined coding processing unit, the codeword table is periodically updated. There is an effect that can.
[0065]
According to the present invention, when a symbol other than the symbol with the maximum number of consecutive inputs is stored by the symbol specifying means, the code word table is updated in consideration of the symbol, so the code amount of the image signal There is an effect that can be reduced.
[0066]
According to the present invention, since the update control means for instructing the update timing of the codeword table to the table update means is provided, there is an effect that efficient encoding and decoding processing can be realized.
[0067]
According to this invention, in addition to the codeword table updated by the table updating means, when a default codeword table is prepared, the selection means for selecting the codeword table referred to by the variable length coding means is provided. Since it comprised so, there exists an effect which can suppress degradation of a code precision.
[0068]
According to the present invention, since only the code word table relating to the area designated in advance is updated, it is possible to improve the coding efficiency and suppress the increase in the memory for calculation and the circuit scale. There is an effect that can.
[0069]
According to the present invention, when the predesignated area is divided, the codeword table related to each divided area is updated, so that there is an effect that the coding efficiency can be improved.
[0070]
According to the present invention, since the initial setting means for initially setting the update capability of the table update means according to the update capability of the codeword table provided in the image decoding device is provided, the image encoding device performs processing. There is an effect that the encoding process can be performed using the maximum capacity that can be performed.
[0071]
According to this invention, the number of consecutive outputs of the same symbol by the variable length decoding unit is counted, the symbol specifying unit for specifying the symbol having the maximum number of continuous outputs, and the symbol specified by the symbol specifying unit Since the table update means for updating the codeword table is provided so that the codeword to be performed becomes the shortest codeword, even if the number of symbols increases, the memory for calculation and the circuit scale increase. In addition, there is an effect that the code amount of the image signal can be reduced.
[0072]
According to the present invention, the symbol having the maximum number of continuous outputs is stored, and when the number of continuous outputs of a certain symbol exceeds the number of continuous outputs of the maximum symbol, the stored contents are updated. Even if the number increases, it is possible to suppress an increase in the memory for calculation and the circuit scale.
[0073]
According to the present invention, since the codeword table is updated each time the variable length decoding means completes a predetermined decoding processing unit, the codeword table is periodically updated. There is an effect that can.
[0074]
According to the present invention, since the code word table is updated every time the symbol specifying means updates the stored contents, there is an effect that the code word table can be updated efficiently.
[0075]
According to the present invention, when a symbol other than the symbol with the maximum number of continuous outputs is stored by the symbol specifying means, the code word table is updated in consideration of the symbol, so the code amount of the image signal There is an effect that can be reduced.
[0076]
According to the present invention, since the update control means for instructing the update timing of the codeword table to the table update means is provided, there is an effect that efficient encoding and decoding processing can be realized.
[0077]
According to the present invention, in addition to the codeword table updated by the table updating means, when a default codeword table is prepared, the selection means for selecting the codeword table referred to by the variable length decoding means is provided. Since it comprised so, there exists an effect which can suppress degradation of a code precision.
[0078]
According to the present invention, since only the code word table relating to the area designated in advance is updated, it is possible to improve the coding efficiency and suppress the increase in the memory for calculation and the circuit scale. There is an effect that can.
[0079]
According to the present invention, when the predesignated area is divided, the codeword table related to each divided area is updated, so that there is an effect that the coding efficiency can be improved.
[0080]
According to the present invention, since the initial setting means for initially setting the update capability of the table update means is provided, the decoding process can be performed using the maximum capability that can be processed by the image decoding apparatus. There is an effect that can be done.
[0081]
According to the present invention, the number of consecutive outputs of the same symbol by the variable length decoding means is counted, the symbol having the maximum number of consecutive outputs is specified, and the code word corresponding to the symbol becomes the shortest code word. Since the code word table is updated, the code amount of the image signal can be reduced without increasing the calculation memory or the circuit scale even if the number of symbols increases.
[Brief description of the drawings]
FIG. 1 is a configuration diagram illustrating an image encoding device and an image decoding device according to
FIG. 2 is an explanatory diagram illustrating an example of an encoded symbol.
FIG. 3 is an explanatory diagram showing stored contents of an adaptive codeword table.
FIG. 4 is a configuration diagram showing an image encoding device and an image decoding device according to
FIG. 5 is a block diagram showing an image encoding device and an image decoding device according to
FIG. 6 is a block diagram showing an image encoding device and an image decoding device according to
FIG. 7 is an explanatory diagram showing a designated area.
FIG. 8 is an explanatory diagram showing divided areas.
FIG. 9 is a block diagram showing an image encoding device and an image decoding device according to
[Explanation of symbols]
DESCRIPTION OF
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001278402A JP4130312B2 (en) | 2001-09-13 | 2001-09-13 | Image encoding apparatus and image decoding apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001278402A JP4130312B2 (en) | 2001-09-13 | 2001-09-13 | Image encoding apparatus and image decoding apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2003087789A JP2003087789A (en) | 2003-03-20 |
JP4130312B2 true JP4130312B2 (en) | 2008-08-06 |
Family
ID=19102780
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001278402A Expired - Fee Related JP4130312B2 (en) | 2001-09-13 | 2001-09-13 | Image encoding apparatus and image decoding apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4130312B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006324944A (en) * | 2005-05-19 | 2006-11-30 | Renesas Technology Corp | Encoding device |
EP3229472B1 (en) * | 2005-09-26 | 2020-07-01 | Mitsubishi Electric Corporation | Moving image coding apparatus |
US20150121111A1 (en) * | 2013-10-24 | 2015-04-30 | Qualcomm Incorporated | System and method for providing multi-user power saving codebook optmization |
-
2001
- 2001-09-13 JP JP2001278402A patent/JP4130312B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2003087789A (en) | 2003-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101335896B (en) | Predicting motion vectors for fields of forward-predicted interlaced video frames | |
JP3840895B2 (en) | Video encoded data conversion apparatus and method | |
US20060017592A1 (en) | Method of context adaptive binary arithmetic coding and apparatus using the same | |
JPH08251583A (en) | Image encoding device and image decoding device | |
JP2007300455A (en) | Arithmetic encoding apparatus, and context table initialization method in arithmetic encoding apparatus | |
JP2008124772A (en) | Coding device and coding method | |
EP1280356A2 (en) | Apparatus and method for compressing multiplexed video signals | |
JP3940657B2 (en) | Moving picture encoding method and apparatus and moving picture decoding method and apparatus | |
US6748114B1 (en) | Moving picture encoding method and moving picture encoding apparatus | |
JP4669239B2 (en) | Apparatus and method for encoding video data | |
JP2005260588A (en) | Encoding device, encoding method, decoding device and decoding method | |
JP4133346B2 (en) | Intra coding of video data blocks by selection of prediction type | |
KR100510138B1 (en) | Method for selecting reference picture, motion compensation method thereof and apparatus thereof | |
JP4130312B2 (en) | Image encoding apparatus and image decoding apparatus | |
JPH08205169A (en) | Encoding device and decoding device for dynamic image | |
JP2008153907A (en) | Image encoding apparatus, information terminal including the same, and image encoding method | |
RU2341037C2 (en) | Partial intraframe coding mode and system for multimedia radio transmission | |
JP3491001B1 (en) | Signal encoding method, signal decoding method, signal encoding device, signal decoding device, signal encoding program, and signal decoding program | |
JP3599942B2 (en) | Moving picture coding method and moving picture coding apparatus | |
KR100585710B1 (en) | Variable length coding method for moving picture | |
JP3581382B2 (en) | Encoding device and method | |
JP3907996B2 (en) | Image encoding apparatus, image decoding apparatus and method, image encoding program, and image decoding program | |
JP3690259B2 (en) | High-speed moving image encoding apparatus and high-speed moving image encoding method | |
JP3380841B2 (en) | Error correction system and decoding device using the error correction system | |
JP2003125408A (en) | Image coder, image decoder, its method, image coding program, and image decoding program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050708 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070801 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070814 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071004 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20071011 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20071011 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20071011 |
|
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: 20080422 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080521 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110530 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110530 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120530 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120530 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130530 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140530 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |