JP2003102004A - Image coding and decoding method - Google Patents

Image coding and decoding method

Info

Publication number
JP2003102004A
JP2003102004A JP2001285420A JP2001285420A JP2003102004A JP 2003102004 A JP2003102004 A JP 2003102004A JP 2001285420 A JP2001285420 A JP 2001285420A JP 2001285420 A JP2001285420 A JP 2001285420A JP 2003102004 A JP2003102004 A JP 2003102004A
Authority
JP
Japan
Prior art keywords
coding
mode
image
integer
decoding
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
Application number
JP2001285420A
Other languages
Japanese (ja)
Inventor
Shinya Sumino
眞也 角野
Makoto Hagai
誠 羽飼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001285420A priority Critical patent/JP2003102004A/en
Publication of JP2003102004A publication Critical patent/JP2003102004A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image coding and decoding method that can efficiently encodes a moving picture signal into a stream including a signal indicative of reference frame selection and a quantization parameter. SOLUTION: A unit converting mode into numerical value MVMap 1 outputs a mode information numeral value ModeVal corresponding to a motion vector MV and a reference frame presence/absence signal HasRef indicative of whether or not a frame referenced by the motion vector MV is a specified value. A multiplication unit Mul1 multiplies a constant K1 with the reference frame presence/absence signal to obtain a correction reference frame presence/absence numeral KMVal. An addition unit Add1 sums the correction reference frame presence/absence numeral and the mode information numeral to output a mode/ reference presence/absence information numeral MVModeVal. When the mode/ reference presence/absence information numeral MVModeVal indicates that the reference frame is a specified value, a selection unit Sel2 outputs no information of a part denoting the reference frame in the motion vector MV as a numeral Va1.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像信号をブロッ
ク単位で可変長符号化を用いた符号化を行う際に、画面
間予測の有無、動き補償単位、量子化ステップを示すパ
ラメータの符号化の有無を示す各種の情報を効率よく符
号化可能にした画像符号化方法、画像符号化装置、およ
びそれを正しく復号化する画像復号化方法、画像復号化
装置、並びにそれをソフトウェアで実施するためのプロ
グラムが記録された記録媒体である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to coding of parameters indicating the presence / absence of inter-picture prediction, a motion compensation unit, and a quantizing step when an image signal is coded using variable length coding in block units. Image encoding method capable of efficiently encoding various information indicating presence / absence, image encoding device, image decoding method for correctly decoding it, image decoding device, and software for implementing the same It is a recording medium in which the program of is recorded.

【0002】[0002]

【従来の技術】近年、音声、画像、その他の画素値を統
合的に扱うマルチメディア時代を迎え、従来からの情報
メディア、つまり新聞、雑誌、テレビ、ラジオ、電話等
の情報を人に伝達する手段がマルチメディアの対象とし
て取り上げられるようになってきた。一般に、マルチメ
ディアとは、文字だけでなく、図形、音声、特に画像等
を同時に関連づけて表すことをいうが、上記従来の情報
メディアをマルチメディアの対象とするには、その情報
をディジタル形式にして表すことが必須条件となる。
2. Description of the Related Art In recent years, in the era of multimedia in which voices, images, and other pixel values are integrated, information media from the past, that is, newspapers, magazines, televisions, radios, telephones, etc., are transmitted to people. Means have become the subject of multimedia. In general, multimedia means not only characters but also figures, voices, especially images, etc. are associated with each other at the same time. However, in order to target the above-mentioned conventional information media as multimedia, the information is converted into a digital format. It becomes an indispensable condition.

【0003】ところが、上記各情報メディアの持つ情報
量をディジタル情報量として見積もってみると、文字の
場合1文字当たりの情報量は1〜2バイトであるのに対
し、音声の場合1秒当たり64kbits(電話品質)、さら
に動画については1秒当たり100Mbits(現行テレビ受信
品質)以上の情報量が必要となり、上記情報メディアで
その膨大な情報をディジタル形式でそのまま扱うことは
現実的では無い。例えば、テレビ電話は、64kbps〜1.5M
bpsの伝送速度を持つサービス総合ディジタル網(IS
DN:Integrated Services Digital Network)によっ
て既に実用化されているが、テレビ・カメラの映像をそ
のままISDNで送ることは不可能である。
However, when the information amount of each of the above information media is estimated as a digital information amount, the amount of information per character is 1 to 2 bytes in the case of characters, whereas that of voice is 64 kbits per second. (Telephone quality), and for moving images, an information amount of 100 Mbits (current television reception quality) or more is required per second, and it is not realistic to handle the enormous amount of information in the digital form as it is in the above information media. For example, videophone is 64kbps ~ 1.5M
Integrated service digital network (IS
Although it has already been put to practical use by DN: Integrated Services Digital Network), it is impossible to send the image of the TV / camera as it is with ISDN.

【0004】そこで、必要となってくるのが情報の圧縮
技術であり、例えば、テレビ電話の場合、ITU(国際
電気通信連合 電気通信標準化部門)で国際標準化され
たH.261やH.263規格の動画圧縮技術が用いられている。
また、MPEG-1規格の情報圧縮技術によると、通常の音楽
用CD(コンパクト・ディスク)に音声情報と共に画像情
報を入れることも可能となる。
Therefore, what is needed is an information compression technique. For example, in the case of a videophone, the H.261 and H.263 standards internationally standardized by the ITU (International Telecommunication Union Telecommunication Standardization Sector). The video compression technology of is used.
Further, according to the information compression technology of the MPEG-1 standard, it becomes possible to put image information together with audio information in a normal music CD (compact disc).

【0005】ここで、MPEG(Moving Picture Experts G
roup)とは、動画像信号のデジタル圧縮の国際規格であ
り、MPEG-1は、動画像信号を1.5Mbpsまで、つまりテレ
ビ信号の情報を約100分の1にまで圧縮する規格であ
る。また、MPEG-1規格を対象とする伝送速度が主として
約1.5Mbpsに制限されていることから、さらなる高画質
化の要求を満たすべく規格化されたMPEG-2では、動画像
信号が2〜15Mbpsに圧縮される。
Here, MPEG (Moving Picture Experts G
roup) is an international standard for digital compression of moving image signals, and MPEG-1 is a standard for compressing moving image signals up to 1.5 Mbps, that is, information of television signals up to about 1/100. In addition, since the transmission speed for the MPEG-1 standard is mainly limited to about 1.5 Mbps, in MPEG-2 standardized to meet the demand for higher image quality, the moving image signal is 2 to 15 Mbps. Is compressed to.

【0006】さらに現状では、MPEG-1、MPEG-2と標準化
を進めてきた作業グループ(ISO/IEC JTC1/SC29/WG11)
によって、より圧縮率が高いMPEG-4が規格化された。M
PEG-4では、当初、低ビットレートで効率の高い符号化
が可能になるだけでなく、伝送路誤りが発生しても主観
的な画質劣化を小さくできる強力な誤り耐性技術も導入
されている。また、ITUでは次世代画像符号化方式と
して、H.26Lの標準化活動が進んでいる。
[0006] Furthermore, at present, a working group that has been promoting standardization with MPEG-1 and MPEG-2 (ISO / IEC JTC1 / SC29 / WG11)
Has standardized MPEG-4, which has a higher compression rate. M
Initially, PEG-4 not only enables highly efficient encoding at a low bit rate, but also introduces powerful error resilience technology that can reduce subjective image quality degradation even if a transmission path error occurs. . In addition, the ITU is promoting the standardization of H.26L as a next-generation image coding method.

【0007】図12は画像符号化装置のブロック図であ
る。動き検出ユニットMEはメモリMemから読み出された
参照画像PrevVと画像信号Vinを比較し、画面間誤差を最
小とする動きベクトルMVを検出する。動き補償ユニット
MCは動きベクトルMVで指示される画素をメモリMemから
読み出し、予測画像RefVとして出力する。減算ユニット
Sub0は画像信号Vinから予測画像RefVを減算し、差信号
である残差画像DifVを出力する。周波数変換ユニットTr
ansは残差画像DifVに対してコサイン変換等の周波数変
換を行い、画素係数成分Coefを出力する。量子化ユニッ
トQは画素係数成分Coefを量子化パラメータQPで量子化
し、量子化値Qcoefを出力する。係数情報可変長符号化
ユニットCoefVLCは画素係数成分Coefを符号化し、画素
値符号化信号CoefStrと、画素係数成分Coefの特定部も
しくは全ての係数値が0であるかどうかを示す符号化ス
キップ情報Skipを出力する。
FIG. 12 is a block diagram of an image coding apparatus. The motion detection unit ME compares the reference image PrevV read from the memory Mem with the image signal Vin, and detects the motion vector MV that minimizes the inter-screen error. Motion compensation unit
The MC reads the pixel designated by the motion vector MV from the memory Mem and outputs it as the predicted image RefV. Subtraction unit
Sub0 subtracts the predicted image RefV from the image signal Vin and outputs a residual image DifV which is a difference signal. Frequency conversion unit Tr
ans performs frequency conversion such as cosine conversion on the residual image DifV and outputs a pixel coefficient component Coef. The quantization unit Q quantizes the pixel coefficient component Coef with the quantization parameter QP and outputs a quantized value Qcoef. The coefficient information variable length coding unit CoefVLC encodes the pixel coefficient component Coef, and the pixel value coding signal CoefStr and the coding skip information Skip that indicates whether or not a specific part of the pixel coefficient component Coef or all coefficient values are 0. Is output.

【0008】逆量子化ユニットIQは、画素値符号化信号
CoefStrを量子化パラメータQPで逆量子化し、逆量子化
値IQCoefを出力する。周波数逆変換ユニットITransは逆
量子化値IQCoefに周波数逆変換を行い、再生画素成分ID
ifVを出力する。加算ユニットAdd0は再生画素成分IDifV
と予測画像RefVを加算して再生画像RecVを得、後続画像
の符号化で参照するためにメモリMemに蓄積される。
The inverse quantization unit IQ is a pixel value encoded signal.
Dequantize CoefStr with a quantization parameter QP and output an inverse quantized value IQCoef. The frequency inverse transform unit ITrans performs frequency inverse transform on the inverse quantized value IQCoef, and the reproduced pixel component ID
Output ifV. Addition unit Add0 is the reproduction pixel component IDifV
And the predicted image RefV are added to obtain a reproduced image RecV, which is stored in the memory Mem for reference in the encoding of the subsequent image.

【0009】符号化モード決定ModeDecは動きベクトルM
Vと符号化スキップ情報Skipを参照し、モード情報Mode
を決定する。ヘッダ情報可変長符号化ユニットModeVLC
は、モード情報Mode、動きベクトルMVおよび量子化パラ
メータQPを可変長符号化し、モード符号化信号ModeStr
として出力する。多重化ユニットMuxはモード符号化信
号ModeStrとモード符号化信号ModeStrを多重化し、画像
符号化信号Strとして出力する。
The encoding mode decision ModeDec is the motion vector M
Refer to V and coding skip information Skip, and set mode information Mode
To decide. Header information variable length coding unit ModeVLC
Encodes the mode information Mode, the motion vector MV and the quantization parameter QP in a variable length,
Output as. The multiplexing unit Mux multiplexes the mode-coded signal ModeStr and the mode-coded signal ModeStr and outputs it as an image-coded signal Str.

【0010】画像符号化信号Strのビット数を一定の範
囲に制限するため、レート制御ユニットRateCtlは画像
符号化信号Strを監視し、画像符号化信号Strのビット数
が所定値よりも大きければ量子化パラメータQPを大きく
してビット数が少なくなるように制御し、画像符号化信
号Strのビット数が所定値よりも小さければ量子化パラ
メータQPを小さくしてより多くのビット数を使用して画
質を向上する。
In order to limit the number of bits of the image coded signal Str to a certain range, the rate control unit RateCtl monitors the image coded signal Str, and if the number of bits of the image coded signal Str is larger than a predetermined value, the quantum Control by increasing the quantization parameter QP to reduce the number of bits, and if the number of bits of the image coded signal Str is smaller than the specified value, reduce the quantization parameter QP and use more bits to improve the image quality. To improve.

【0011】図13は従来の画像符号化装置におけるヘ
ッダ情報可変長符号化ユニットModeVLCのブロック図で
ある。動きベクトルMV、モード情報Mode、量子化パラメ
ータQPはそれぞれモード数値化ユニットMVMap0、モード
数値化ユニットModeMap0、モード復元ユニットQPIMap0
でそれぞれに対応する数値である動きベクトル数値MVVa
l0、モード情報数値ModeVal、量子化数値QPValに変換さ
れる。選択ユニットSel0は動きベクトル数値MVVal0、モ
ード情報数値ModeVal、量子化数値QPValを順番に選択
し、数値Valとして出力する。可変長符号化ユニットVLC
は数値Valを単一の可変長符号体系で可変長符号化を行
い、モード符号化信号ModeStrとして出力する。
FIG. 13 is a block diagram of a header information variable length coding unit ModeVLC in a conventional image coding apparatus. The motion vector MV, the mode information Mode, and the quantization parameter QP are the mode digitization unit MVMap0, the mode digitization unit ModeMap0, and the mode restoration unit QPIMap0, respectively.
Is the corresponding motion vector value MVVa
Converted to l0, mode information value ModeVal, and quantized value QPVal. The selection unit Sel0 sequentially selects the motion vector numerical value MVVal0, the mode information numerical value ModeVal, and the quantized numerical value QPVal, and outputs it as the numerical value Val. Variable length coding unit VLC
Performs variable length coding of the numerical value Val with a single variable length coding system, and outputs it as a mode coded signal ModeStr.

【0012】図14はH.26Lで使用されている可変長符
号化の数値と符号の対応を示す図である。Value;が一般
に数値Value+1を2進数で表現した場合にN桁の2進数b(N
-1),b(N-2),b(N-3),…,b(2,),b(1),b(0)で表現されたと
すると、0,b(N-2),0,b(N-3),0,b(N-4),0,…,b(2),0,b
(1),0,b(0),1なる2×N-1ビットがValueの符号語(Cod
e)となり、全てのValueに対応する符号表を準備しなく
ても算術演算で簡単にValueとCodeの関係が計算できる
ことが特徴である。
FIG. 14 is a diagram showing the correspondence between numerical values and codes in variable length coding used in H.26L. When Value; generally represents the numerical value Value + 1 in binary, it is an N-digit binary number b (N
-1), b (N-2), b (N-3), ..., b (2,), b (1), b (0), then 0, b (N-2), 0, b (N-3), 0, b (N-4), 0, ..., b (2), 0, b
(1), 0, b (0), 1 2 × N-1 bits are codewords of Value (Cod
e), and the feature is that the relation between Value and Code can be easily calculated by arithmetic operation without preparing the code table corresponding to all Value.

【0013】図15は従来の画像符号化装置におけるヘ
ッダ情報可変長符号化ユニットModeVLCの数値とモード
の対応図であり、ValueとH.26Lで使用されている画面間
符号化フレームにおけるモード情報Modeの関係を示すも
のである。H.26Lでは、マクロブロック単位(説明を簡
単にするため、簡単に以下ブロックと略す)で、前画像
との差が全く符号化されていない(Skip)、画面内符号
化(Intra)の他に、4x4,4x8,8x4,8x8,8x16,16x8,16x16
の7通りの大きさで画面間予測を行い予測誤差(Inte
r)を符号化可能である。
FIG. 15 is a correspondence diagram of the numerical values and modes of the header information variable length coding unit ModeVLC in the conventional image coding apparatus, and the mode information Mode in the inter-picture coding frame used in Value and H.26L. It shows the relationship of. In H.26L, the difference from the previous image is not coded at all in macro block units (simply abbreviated below as block for the sake of simplicity), other than intra-frame coding (Intra). At 4x4,4x8,8x4,8x8,8x16,16x8,16x16
Prediction error (Inte
r) can be encoded.

【0014】図16は従来の画像符号化装置で作成され
る画像符号化信号のブロックに対応するストリームを示
す図である。符号化モード符号化信号MBTypeStrは図1
5に示すようなブロックが画面内符号化もしくは画面間
符号化のいずれであるかの識別を表す符号化信号であ
る。H.26Lでは複数の画像から参照画像を選択可能であ
り、参照フレーム番号符号化信号RefFrameStrは当該ブ
ロックがどのフレームを参照するかを指示する符号化信
号である。動きベクトル符号化信号MVStrは当該ブロッ
クの動きベクトルを示す符号化信号であり、量子化パラ
メータ符号化信号QPStrは当該ブロックの量子化パラメ
ータ(量子化ステップ)を表す符号化信号である。図1
2および図13の動きベクトルMVは、参照フレーム番号
符号化信号RefFrameStrと動きベクトル符号化信号MVStr
を組み合わせた情報である。これらのブロックのヘッダ
であるモード符号化信号ModeStrに引き続き、各画素の
画素値の符号化信号である画素値符号化信号CoefStrが
配置される。
FIG. 16 is a diagram showing a stream corresponding to a block of an image coded signal created by a conventional image coding apparatus. Coding mode Coded signal MBTypeStr is shown in Fig. 1.
5 is a coded signal indicating whether the block shown in FIG. 5 is intra-frame coding or inter-frame coding. In H.26L, a reference image can be selected from a plurality of images, and a reference frame number coded signal RefFrameStr is a coded signal that indicates which frame the block refers to. The motion vector coded signal MVStr is a coded signal indicating the motion vector of the block, and the quantization parameter coded signal QPStr is a coded signal representing the quantization parameter (quantization step) of the block. Figure 1
2 and the motion vector MV of FIG. 13 are the reference frame number coded signal RefFrameStr and the motion vector coded signal MVStr.
It is the information that is combined. Subsequent to the mode coded signal ModeStr which is the header of these blocks, the pixel value coded signal CoefStr which is the coded signal of the pixel value of each pixel is arranged.

【0015】図17は画像復号化装置のブロック図であ
る。分離ユニットDeMuxは画像符号化信号Strをモード符
号化信号ModeStrと画素値符号化信号CoefStrに分離す
る。ヘッダ情報可変長復号化ユニットModeVLDはモード
符号化信号ModeStrを可変長復号化し、動きベクトルM
V、量子化パラメータQPとモード情報Modeを出力する。
メモリMem、動き補償ユニットMC、逆量子化ユニットI
Q、周波数逆変換ユニットITrans、加算ユニットAdd0の
各ユニットの動作は図12の画像符号化装置のブロック
図に記載された各ユニットの動作と同じため、説明を省
略する。このようにして、画像復号化装置の復号化画像
である再生画像RecVが得られる。
FIG. 17 is a block diagram of the image decoding apparatus. The separation unit DeMux separates the image coded signal Str into a mode coded signal ModeStr and a pixel value coded signal CoefStr. The header information variable length decoding unit ModeVLD performs variable length decoding of the mode coded signal ModeStr, and the motion vector M
Output V, quantization parameter QP and mode information Mode.
Memory Mem, motion compensation unit MC, inverse quantization unit I
The operation of each unit of Q, the frequency inverse conversion unit ITrans, and the addition unit Add0 is the same as the operation of each unit described in the block diagram of the image encoding device in FIG. In this way, the reproduced image RecV that is the decoded image of the image decoding apparatus is obtained.

【0016】図18は従来の画像復号化装置におけるヘ
ッダ情報可変長復号化ユニットModeVLDのブロック図で
ある。可変長復号化ユニットVLDはモード符号化信号Mod
eStrを復号化してモード符号化信号ModeStrを構成する
各符号語を対応する数値Valに変換する。数値Valは選択
ユニットSel1で動きベクトル数値MVVal0、モード情報数
値ModeVal、量子化数値QPValに分離される。モード復元
ユニットMVIMap0、モード数値化ユニットModeMap0、モ
ード復元ユニットQPIMap0はそれぞれ動きベクトル数値M
VVal0、モード情報数値ModeVal、量子化数値QPValに対
応するシンボルである動きベクトルMV、モード情報Mod
e、量子化パラメータQPに変換する。
FIG. 18 is a block diagram of a header information variable length decoding unit ModeVLD in a conventional image decoding apparatus. Variable length decoding unit VLD is a mode coded signal Mod
The eStr is decoded to convert each codeword forming the mode coded signal ModeStr into a corresponding numerical value Val. The numerical value Val is separated by the selection unit Sel1 into a motion vector numerical value MVVal0, a mode information numerical value ModeVal, and a quantized numerical value QPVal. The mode restoration unit MVIMap0, the mode digitization unit ModeMap0, and the mode restoration unit QPIMap0 are the motion vector numbers M, respectively.
VVal0, mode information value ModeVal, motion vector MV which is a symbol corresponding to quantized value QPVal, mode information Mod
e, Convert to the quantization parameter QP.

【0017】[0017]

【発明が解決しようとする課題】さて、このような従来
の画像符号化装置および従来の画像復号化装置では、図
16の従来の画像符号化装置で作成される画像符号化信
号のブロックに対応するストリームに示すように、必ず
参照フレーム番号符号化信号RefFrameStrや量子化パラ
メータ符号化信号QPStrをストリーム中に配置しなくて
はならない。
The conventional image coding apparatus and the conventional image decoding apparatus as described above correspond to the blocks of the image coded signal created by the conventional image coding apparatus of FIG. As shown in the stream, the reference frame number encoded signal RefFrameStr and the quantization parameter encoded signal QPStr must be arranged in the stream.

【0018】一方、MPEGでは参照フレーム番号符号化信
号RefFrameStrに相当する概念は無く、量子化パラメー
タ符号化信号QPStrは規定値を決めておき、規定値と同
じ場合は量子化パラメータ符号化信号QPStrをストリー
ム中に配置することを省略可能としている。しかしなが
ら、量子化パラメータ符号化信号QPStrの有無を含めた
全てのモード情報Modeに対応する符号化モード符号化信
号MBTypeStrのシンボルを準備すると膨大な大きさの可
変長符号化表を準備することになるため、ごく限られた
特定のモード情報Modeの場合のみ量子化パラメータ符号
化信号QPStrのストリーム中での配置を省略可能として
いる。
On the other hand, in MPEG, there is no concept corresponding to the reference frame number coded signal RefFrameStr, and the quantized parameter coded signal QPStr has a defined value. Placement in the stream can be omitted. However, when the symbols of the coding mode coded signal MBTypeStr corresponding to all the mode information Mode including the presence / absence of the quantization parameter coded signal QPStr are prepared, a variable length coding table of enormous size is prepared. Therefore, the arrangement of the quantization parameter coded signal QPStr in the stream can be omitted only in the case of very limited specific mode information Mode.

【0019】従って、参照フレーム番号符号化信号RefF
rameStrや量子化パラメータ符号化信号QPStrのストリー
ム中への配置が必要な場合が多々発生し、圧縮率向上が
阻害される欠点がある。
Therefore, the reference frame number coded signal RefF
The rameStr and the quantized parameter coded signal QPStr often need to be arranged in the stream, which has the drawback of hindering the improvement of the compression rate.

【0020】[0020]

【課題を解決するための手段】この課題を解決するため
に、第1の発明は、ブロック単位の符号化モードをシン
ボルに整数を割り付ける第1の符号化ステップと前記割
り付けた整数を算術演算可能な可変長符号化する第2の
符号化ステップで符号化する可変長符号を有する画像符
号化方法であって、α通りの第1の符号化モードとβ通
りの第2の符号化モードを有し、第1の符号化モードが
整数γ(但しγ≦α-1)、第2の符号化モードが整数δ
(但しδ≦β-1)で表現される場合に、γ+δ×ε(但
しεはε≦αなる定数)なる整数を前記第1の符号化ス
テップで割り付ける整数とする画像符号化方法である。
In order to solve this problem, a first aspect of the present invention is directed to a first coding step of allocating an integer to a symbol in a block-by-block coding mode and the arithmetic operation of the allocated integer. An image coding method having a variable-length code coded in a second coding step for variable-length coding, comprising α first coding modes and β second coding modes. However, the first coding mode is an integer γ (where γ ≦ α-1) and the second coding mode is an integer δ.
(Where δ ≦ β−1), an image encoding method in which an integer of γ + δ × ε (where ε is a constant ε ≦ α) is an integer to be assigned in the first encoding step.

【0021】第2の発明は、算術演算可能な可変長符号
を復号化して整数値を取得する第1の復号化ステップと
前記取得した整数値をシンボルに変換する第2の復号化
ステップで復号化する画像復号化方法であって、α通り
の第1の符号化モードとβ通りの第2の符号化モードを
有し、前記第2の復号化ステップは、γ+δ×ε(但し
εはε≦αなる定数)なる整数値から第1の符号化モー
ドを表す整数γ(但しγ≦α-1)と第2の符号化モード
を表す整数δ(但しδ≦β-1)を取得するものである画
像復号化方法である。
A second aspect of the present invention comprises a first decoding step of decoding an arithmetically operable variable length code to obtain an integer value and a second decoding step of converting the obtained integer value into a symbol. An image decoding method for encoding, comprising α first encoding modes and β second encoding modes, wherein the second decoding step is γ + δ × ε (where ε is ε Acquiring an integer γ (where γ ≦ α-1) representing the first coding mode and an integer δ (where δ ≦ β-1) representing the second coding mode from an integer value of ≦ α Is the image decoding method.

【0022】以上の構成の本発明では、第1の符号化モ
ードと第2の符号化モードの組合せによって表現される
整数を算術演算可能な可変長符号化を行うことで、全て
の第1の符号化モードおよび第2の符号化モードの組合
せ表現の符号化を可能にする。第2の符号化モードは量
子化パラメータ符号化の有無や、動きベクトル符号化有
無の識別信号に相当する。算術可能な可変長符号化自体
の圧縮率は、従来のMPEGのように可変長符号表を用いる
手法ほど高くは無いが、膨大な大きさの符号表を準備す
ることなく算術演算で符号化可能なことから、全ての第
1の符号化モードおよび第2の符号化モードの組合せ表
現を符号化することができる。その結果、参照フレーム
番号符号化信号RefFrameStrや量子化パラメータ符号化
信号QPStrのストリーム中への配置が不要な場合が多々
発生し、全体としてみれば圧縮率向上が実現できる。
According to the present invention having the above-mentioned configuration, all the first numbers are represented by performing the variable length coding capable of arithmetically operating the integers represented by the combination of the first coding mode and the second coding mode. Enables coding of a combined representation of the coding mode and the second coding mode. The second coding mode corresponds to the presence / absence of quantization parameter coding and a motion vector coding presence / absence identification signal. The compression rate of arithmetic variable length coding itself is not as high as the method that uses a variable length code table like conventional MPEG, but it can be coded by arithmetic operation without preparing a huge size code table. Therefore, the combined representation of all the first coding modes and the second coding modes can be coded. As a result, the reference frame number coded signal RefFrameStr and the quantization parameter coded signal QPStr often do not need to be arranged in the stream, and the compression rate can be improved as a whole.

【0023】同様に、画像を復号化する場合は、膨大な
大きさの符号表を準備することなく算術演算で復号化可
能なことから、全ての第1の符号化モードおよび第2の
符号化モードの組合せ表現を復号化することができる。
その結果、参照フレーム番号符号化信号RefFrameStrや
量子化パラメータ符号化信号QPStrのストリーム中への
配置を省略した全ての組合せの場合でも、画像信号を正
しく復号化することができる。
Similarly, when an image is decoded, it can be decoded by an arithmetic operation without preparing a code table having an enormous size. Therefore, all the first coding mode and the second coding are possible. The combined representation of modes can be decoded.
As a result, even in the case of all combinations in which the arrangement of the reference frame number encoded signal RefFrameStr and the quantization parameter encoded signal QPStr is omitted in the stream, the image signal can be correctly decoded.

【0024】[0024]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図1から図11を用いて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to FIGS. 1 to 11.

【0025】(実施の形態1)図1は本発明の画像符号
化装置におけるヘッダ情報可変長符号化ユニットModeVL
Cのブロック図であり、図12のヘッダ情報可変長符号
化ユニットModeVLCとしして動作をする。図1におい
て、図12の画像符号化装置のブロック図と同じ動作を
するユニットおよび同じ動作の信号は同じ記号を付し、
説明を省略する。即ち、モード数値化ユニットQPMap0お
よび可変長符号化ユニットVLCの動作は同じである。
(Embodiment 1) FIG. 1 shows a header information variable length coding unit ModeVL in the image coding apparatus of the present invention.
FIG. 13 is a block diagram of C and operates as the header information variable length coding unit ModeVLC of FIG. 12. In FIG. 1, units that perform the same operations as those in the block diagram of the image encoding apparatus in FIG.
The description is omitted. That is, the operations of the mode digitizing unit QPMap0 and the variable length coding unit VLC are the same.

【0026】モード数値化ユニットMVMap1は動きベクト
ルMVに対応する数値であるモード情報数値ModeValを出
力すると共に、動きベクトルMVが参照するフレームが規
定値であるかどうかを示す参照フレーム有無信号HasRef
を出力する。定数発生器ConstGen1は定数K1を発生し、
乗算ユニットMul1で定数K1と参照フレーム有無信号HasR
efの乗算を行い、補正参照フレーム有無数値KMValを得
る。モード数値化ユニットModeMap1はモード情報Modeに
対応する数値であるモード情報数値ModeValを出力す
る。加算ユニットAdd1は補正参照フレーム有無数値KMVa
lとモード情報数値ModeValを加算し、モード・参照フレ
ーム有無情報数値MVModeValを出力する。
The mode digitizing unit MVMap1 outputs a mode information numerical value ModeVal, which is a numerical value corresponding to the motion vector MV, and also a reference frame presence / absence signal HasRef indicating whether or not the frame referred to by the motion vector MV is a prescribed value.
Is output. The constant generator ConstGen1 generates the constant K1,
Constant K1 and reference frame presence / absence signal HasR in multiplication unit Mul1
ef is multiplied to obtain the corrected reference frame presence / absence value KMVal. The mode digitizing unit ModeMap1 outputs a mode information numerical value ModeVal which is a numerical value corresponding to the mode information Mode. Addition unit Add1 has a correction reference frame presence / absence value KMVa
l is added to the mode information numerical value ModeVal, and the mode / reference frame presence / absence information numerical value MVModeVal is output.

【0027】選択ユニットSel2は動きベクトル数値MVVa
l1、モード・参照フレーム有無情報数値MVModeVal、量
子化数値QPValを逐次選択し、それぞれ数値Valとして出
力する。但し、モード・参照フレーム有無情報数値MVMo
deValで参照フレームが規定値であることを示す場合
は、動きベクトルMVのうち参照フレームを示す部分の情
報は数値Valとして出力しない。可変長符号化ユニットV
LCは数値Valを符号化し、モード符号化信号ModeStrとし
て出力する。
The selection unit Sel2 is a motion vector value MVVa.
l1, mode / reference frame presence / absence information numerical value MVModeVal, and quantized numerical value QPVal are sequentially selected and output as numerical values Val respectively. However, mode / reference frame presence / absence information numerical value MVMo
When deVal indicates that the reference frame has a specified value, the information of the portion indicating the reference frame in the motion vector MV is not output as the numerical value Val. Variable length coding unit V
The LC encodes the numerical value Val and outputs it as a mode encoded signal ModeStr.

【0028】図3は本発明の画像符号化装置で作成され
る画像符号化信号のブロックに対応するストリームであ
る。参照フレームが規定値でない場合は、図3(a)に
示すように図16と同様に参照フレーム番号符号化信号
RefFrameStrがストリーム中に配置されるが、参照フレ
ームが規定値の場合は、図3(b)に示すように参照フ
レーム番号符号化信号RefFrameStrが省略される。この
ように、動きベクトルMVのうち参照フレームを示す部分
の符号化情報を削減できるため、圧縮率が向上すること
ができる。
FIG. 3 shows a stream corresponding to a block of an image coded signal created by the image coding apparatus of the present invention. When the reference frame is not the specified value, as shown in FIG. 3A, the reference frame number encoded signal is the same as in FIG.
RefFrameStr is arranged in the stream, but when the reference frame has a specified value, the reference frame number coded signal RefFrameStr is omitted as shown in FIG. In this way, the coding information of the portion of the motion vector MV indicating the reference frame can be reduced, so that the compression rate can be improved.

【0029】図2は本発明の画像符号化装置におけるヘ
ッダ情報可変長符号化ユニットModeVLCの数値とモード
の対応を示す図である。図2では、参照フレーム番号Re
fFrameが符号化されるモード情報Modeの数値Valueは、
参照フレーム番号RefFrameが符号化されないモード情報
Modeに対応する数値Value1〜7に対し、それぞれ7を加算
した数値Value9〜15が対応することになる。このよう
に、図2の対応図で、数値Value0〜8の部分(この部分
は図15の従来の画像符号化装置におけるヘッダ情報可
変長符号化ユニットModeVLCの数値とモードの対応図に
相当)さえ準備すれば、数値Value9〜15に対応する符号
表を記憶する必要がなく、符号表記憶に必要なメモリを
節約できる。
FIG. 2 is a diagram showing the correspondence between numerical values and modes of the header information variable length coding unit ModeVLC in the image coding apparatus of the present invention. In FIG. 2, the reference frame number Re
Numerical value of mode information Mode in which fFrame is encoded is
Mode information in which the reference frame number RefFrame is not encoded
The numerical values Value1 to 7 corresponding to the Mode correspond to the numerical values Value9 to 15 obtained by adding 7 respectively. Thus, in the correspondence diagram of FIG. 2, even the parts of the numerical values Value0 to 8 (this part corresponds to the correspondence diagram of the numerical values and modes of the header information variable length coding unit ModeVLC in the conventional image coding device of FIG. 15). If prepared, it is not necessary to store the code table corresponding to the numerical values Value9 to 15, and the memory required for storing the code table can be saved.

【0030】なお、実施の形態1で、ヘッダ部では、動
きベクトルMV、モード情報Mode、量子化パラメータQPを
ヘッダ情報可変長符号化ユニットModeVLCで符号化する
例を示したが、量子化パラメータQPが他の手段で符号化
される等の理由でヘッダ情報可変長符号化ユニットMode
VLCで符号化する必要が無い場合は、動きベクトルMVと
モード情報Modeのみをヘッダ情報可変長符号化ユニット
ModeVLCで符号化してもよい。
In the first embodiment, in the header part, the example in which the motion vector MV, the mode information Mode, and the quantization parameter QP are coded by the header information variable length coding unit ModeVLC has been described. Header information variable-length coding unit Mode because it is encoded by other means.
When it is not necessary to encode with VLC, only the motion vector MV and mode information Mode are header information variable length encoding unit.
It may be encoded by ModeVLC.

【0031】(実施の形態2)図4は本発明の画像復号
化装置におけるヘッダ情報可変長復号化ユニットModeVL
Dのブロック図である。図4は図17のヘッダ情報可変
長復号化ユニットModeVLDとして動作をし、図1のヘッ
ダ情報可変長符号化ユニットModeVLCの逆動作をする。
図4において、図18の従来の画像復号化装置における
ヘッダ情報可変長復号化ユニットModeVLDのブロック図
と同じ動作をするユニットおよび同じ動作の信号は同じ
記号を付し、説明を省略する。即ち、可変長復号化ユニ
ットVLDおよびモード復元ユニットQPIMap0の動作は同じ
である。
(Second Embodiment) FIG. 4 shows a header information variable length decoding unit ModeVL in the image decoding apparatus of the present invention.
It is a block diagram of D. FIG. 4 operates as the header information variable length decoding unit ModeVLD of FIG. 17, and performs the reverse operation of the header information variable length coding unit ModeVLC of FIG.
In FIG. 4, units that perform the same operations and signals that perform the same operations as those in the block diagram of the header information variable length decoding unit ModeVLD in the conventional image decoding apparatus in FIG. 18 are given the same symbols, and description thereof will be omitted. That is, the operations of the variable length decoding unit VLD and the mode restoration unit QPIMap0 are the same.

【0032】数値Valは選択ユニットSel3によって動き
ベクトル数値MVVal1、モード・参照フレーム有無情報数
値MVModeVal、量子化数値QPValのいずれかに分類され
る。定数発生器ConstGen1は定数K1を発生し、除算ユニ
ットDiv1はモード・参照フレーム有無情報数値MVModeVa
lを定数K1で除算する。定数K1で除算した商は参照フレ
ーム有無信号HasRefとなり、定数K1で除算した余りはモ
ード情報数値ModeValとなる。但し、符号表の一部のモ
ードのみが算術的に構成できる場合は、算術的に構成で
きる部分のみについてこの除算手順を適用する。
The numerical value Val is classified by the selection unit Sel3 into one of a motion vector numerical value MVVal1, a mode / reference frame presence / absence information numerical value MVModeVal, and a quantized numerical value QPVal. The constant generator ConstGen1 generates a constant K1, and the division unit Div1 calculates the mode / reference frame presence / absence information numerical value MVModeVa
Divide l by the constant K1. The quotient divided by the constant K1 becomes the reference frame presence / absence signal HasRef, and the remainder divided by the constant K1 becomes the mode information numerical value ModeVal. However, if only some modes of the code table can be arithmetically configured, this division procedure is applied only to the part that can be arithmetically configured.

【0033】例えば、図2に示す本発明の画像符号化装
置におけるヘッダ情報可変長符号化ユニットModeVLCの
数値とモードの対応図では、数値Value1〜7のモード情
報Modeが数値Value9〜15の構成に利用されているので、
定数K1を8とすれば数値Valueが規則的で無い0と8以外
は、数値Valueを定数K1で除算した商が参照フレーム番
号RefFrame、数値Valueを定数K1で除算した余りがモー
ド情報Modeになる。
For example, in the diagram of the correspondence between the numerical values and modes of the header information variable length coding unit ModeVLC in the image coding apparatus of the present invention shown in FIG. 2, the mode information Mode of numerical values Value1 to 7 has the configuration of numerical values Value9 to 15. Since it is used,
If the constant K1 is 8, the numeric value is not regular except 0 and 8, the quotient obtained by dividing the numeric value by the constant K1 is the reference frame number RefFrame, and the remainder when the numeric value is divided by the constant K1 is the mode information Mode. .

【0034】モード復元ユニットMVIMap1は参照フレー
ム有無信号HasRefを参照し、参照フレームが符号化され
ていない場合は既定の参照フレームを参照するものとし
て動きベクトル数値MVVal1を復元して動きベクトルMVを
得、参照フレームが符号化されている場合は動きベクト
ル数値MVVal1から参照フレームを示す情報を含む動きベ
クトルMVを復元する。
The mode restoration unit MVIMap1 refers to the reference frame presence / absence signal HasRef, and if the reference frame is not coded, restores the motion vector value MVVal1 by referring to the default reference frame to obtain the motion vector MV, When the reference frame is encoded, the motion vector MV including information indicating the reference frame is restored from the motion vector value MVVal1.

【0035】以上のように、本実施の形態によれば、図
1のヘッダ情報可変長符号化ユニットModeVLCを用いた
画像符号化装置で生成された画像符号化信号Strを正し
く復号化することができる。
As described above, according to the present embodiment, the image coded signal Str generated by the image coding apparatus using the header information variable length coding unit ModeVLC in FIG. 1 can be correctly decoded. it can.

【0036】なお、実施の形態1で、ヘッダ部では、動
きベクトルMV、モード情報Mode、量子化パラメータQPを
ヘッダ情報可変長符号化ユニットModeVLCで復号化する
例を示したが、量子化パラメータQPが他の手段で復号化
される等の理由でヘッダ情報可変長符号化ユニットMode
VLCで復号化する必要が無い場合は、動きベクトルMVと
モード情報Modeのみをヘッダ情報可変長符号化ユニット
ModeVLCで復号化してもよい。
In the first embodiment, in the header section, an example in which the motion vector MV, the mode information Mode, and the quantization parameter QP are decoded by the header information variable length coding unit ModeVLC has been described. Header information variable length coding unit Mode because it is decoded by other means.
When there is no need to decode with VLC, only the motion vector MV and mode information Mode are header information variable length coding unit.
You may decrypt with ModeVLC.

【0037】(実施の形態3)図5は本発明の画像符号
化装置におけるヘッダ情報可変長符号化ユニットModeVL
Cのブロック図であり、図12のヘッダ情報可変長符号
化ユニットModeVLCとしして動作をする。図5におい
て、図12の画像符号化装置のブロック図と同じ動作を
するユニットおよび同じ動作の信号は同じ記号を付し、
説明を省略する。即ち、モード数値化ユニットMVMap0お
よび可変長符号化ユニットVLCの動作は同じである。
(Third Embodiment) FIG. 5 shows a header information variable length coding unit ModeVL in the image coding apparatus of the present invention.
FIG. 13 is a block diagram of C and operates as the header information variable length coding unit ModeVLC of FIG. 12. 5, units having the same operation as those in the block diagram of the image coding apparatus in FIG. 12 and signals having the same operation are denoted by the same symbols,
The description is omitted. That is, the operations of the mode digitization unit MVMap0 and the variable length coding unit VLC are the same.

【0038】モード数値化ユニットQPMap1は量子化パラ
メータQPに対応する数値である量子化数値QPValを出力
すると共に、量子化パラメータQPが規定値であるかどう
かを示す量子化パラメータ符号化有無信号HasQPを出力
する。定数発生器ConstGen2は定数K2を発生し、乗算ユ
ニットMul2で定数K2と量子化パラメータ符号化有無信号
HasQPの乗算を行い、補正量子化パラメータ有無数値KQP
Valを得る。モード数値化ユニットModeMap1はモード情
報Modeに対応する数値であるモード情報数値ModeValを
出力する。加算ユニットAdd2は補正量子化パラメータ有
無数値KQPValとモード情報数値ModeValを加算し、モー
ド・量子化パラメータ有無情報数値QPModeValを出力す
る。
The mode digitization unit QPMap1 outputs a quantized value QPVal, which is a number corresponding to the quantized parameter QP, and outputs a quantized parameter coding presence / absence signal HasQP indicating whether or not the quantized parameter QP is a prescribed value. Output. The constant generator ConstGen2 generates the constant K2, and the multiplication unit Mul2 outputs the constant K2 and the quantization parameter coding presence / absence signal.
HasQP multiplication is performed, and the numerical value KQP with or without correction quantization parameter
Get Val. The mode digitizing unit ModeMap1 outputs a mode information numerical value ModeVal which is a numerical value corresponding to the mode information Mode. The addition unit Add2 adds the correction quantization parameter presence / absence value KQPVal and the mode information value ModeVal, and outputs a mode / quantization parameter presence / absence information value QPModeVal.

【0039】選択ユニットSel4は動きベクトル数値MVVa
l0、モード・量子化パラメータ有無情報数値QPModeVa
l、量子化数値QPValを逐次選択し、それぞれ数値Valと
して出力する。但し、モード・量子化パラメータ有無情
報数値QPModeValで量子化パラメータが規定値であるこ
とを示す場合は、当該ブロックの量子化数値QPValを数
値Valとして出力しない。可変長符号化ユニットVLCは数
値Valを符号化し、モード符号化信号ModeStrとして出力
する。
The selection unit Sel4 is a motion vector value MVVa.
l0, mode / quantization parameter presence / absence information Numerical value QPModeVa
l and the quantized numerical value QPVal are sequentially selected and output as numerical values Val respectively. However, when the mode / quantization parameter presence / absence information numerical value QPModeVal indicates that the quantization parameter is a specified value, the quantized numerical value QPVal of the block is not output as the numerical value Val. The variable length coding unit VLC codes the numerical value Val and outputs it as a mode coded signal ModeStr.

【0040】図7は本発明の画像符号化装置で作成され
る画像符号化信号のブロックに対応するストリームを示
す図である。量子化パラメータが規定値でない場合は、
図6(a)に示すように図16と同様に量子化パラメー
タ符号化信号QPStrがストリーム中に配置されるが、参
照フレームが規定値の場合は、図7(b)に示すように
量子化パラメータ符号化信号QPStrが省略される。この
ように、量子化パラメータが規定値の場合は量子化パラ
メータ符号化信号QPStrの符号化情報を削減できるた
め、圧縮率が向上することができる。
FIG. 7 is a diagram showing a stream corresponding to a block of an image coded signal created by the image coding apparatus of the present invention. If the quantization parameter is not a specified value,
As shown in FIG. 6 (a), the quantization parameter coded signal QPStr is arranged in the stream as in FIG. 16, but if the reference frame has a specified value, quantization is performed as shown in FIG. 7 (b). The parameter coded signal QPStr is omitted. In this way, when the quantization parameter is the specified value, the coding information of the quantization parameter coded signal QPStr can be reduced, so that the compression rate can be improved.

【0041】図6は本発明の画像符号化装置におけるヘ
ッダ情報可変長符号化ユニットModeVLCの数値とモード
の対応を示す図である。図6では、量子化パラメータQP
が符号化されるモード情報Modeの数値Valueは、量子化
パラメータQPが符号化されないモード情報Modeに対応す
る数値Value1〜8に対し、それぞれ8を加算した数値Valu
e9〜16が対応することになる。このように、図6の対応
図で、数値Value0〜8の部分(この部分は図15の従来
の画像符号化装置におけるヘッダ情報可変長符号化ユニ
ットModeVLCの数値とモードの対応図に相当)さえ準備
すれば、数値Value9〜16に対応する符号表を記憶する必
要がなく、符号表記憶に必要なメモリを節約できる。
FIG. 6 is a diagram showing the correspondence between numerical values and modes of the header information variable length coding unit ModeVLC in the image coding apparatus of the present invention. In FIG. 6, the quantization parameter QP
Numerical value of the mode information Mode in which is encoded is the numerical value Valu obtained by adding 8 to each of the numerical values Value1 to 8 corresponding to the mode information Mode in which the quantization parameter QP is not encoded.
e9-16 will be supported. Thus, in the correspondence diagram of FIG. 6, even the parts of the numerical values Value0 to 8 (this part corresponds to the correspondence diagram of the numerical values and modes of the header information variable length coding unit ModeVLC in the conventional image coding device of FIG. 15) If prepared, it is not necessary to store the code table corresponding to the numeric values Value 9 to 16, and the memory required for storing the code table can be saved.

【0042】なお、実施の形態3で、ヘッダ部では、動
きベクトルMV、モード情報Mode、量子化パラメータQPを
ヘッダ情報可変長符号化ユニットModeVLCで符号化する
例を示したが、動きベクトルMVが他の手段で符号化され
る等の理由でヘッダ情報可変長符号化ユニットModeVLC
で符号化する必要が無い場合は、量子化パラメータQPと
モード情報Modeのみをヘッダ情報可変長符号化ユニット
ModeVLCで符号化してもよい。
In the third embodiment, in the header section, the example in which the motion vector MV, the mode information Mode, and the quantization parameter QP are coded by the header information variable length coding unit ModeVLC has been shown. Header information variable length coding unit ModeVLC because it is coded by other means
If it is not necessary to encode with, only the quantization parameter QP and mode information Mode are header information variable length coding unit.
It may be encoded by ModeVLC.

【0043】(実施の形態4)図8は本発明の画像復号
化装置におけるヘッダ情報可変長復号化ユニットModeVL
Dのブロック図である。図8は図17のヘッダ情報可変
長復号化ユニットModeVLDとして動作をし、図5の本発
明の画像符号化装置におけるヘッダ情報可変長符号化ユ
ニットModeVLCのブロック図の逆動作をする。図8にお
いて、図18の従来の画像復号化装置におけるヘッダ情
報可変長復号化ユニットModeVLDのブロック図と同じ動
作をするユニットおよび同じ動作の信号は同じ記号を付
し、説明を省略する。即ち、可変長復号化ユニットVLD
およびモード復元ユニットMVIMap0の動作は同じであ
る。
(Embodiment 4) FIG. 8 shows a header information variable length decoding unit ModeVL in the image decoding apparatus of the present invention.
It is a block diagram of D. FIG. 8 operates as the header information variable length decoding unit ModeVLD of FIG. 17, and performs the reverse operation of the block diagram of the header information variable length coding unit ModeVLC of the image coding apparatus of the present invention of FIG. In FIG. 8, units that perform the same operations and signals that perform the same operations as those in the block diagram of the header information variable length decoding unit ModeVLD in the conventional image decoding apparatus of FIG. 18 are given the same symbols, and description thereof is omitted. That is, the variable length decoding unit VLD
And the operation of the mode restoration unit MVIMap0 is the same.

【0044】数値Valは選択ユニットSel5によって動き
ベクトル数値MVVal0、モード・量子化パラメータ有無情
報数値QPModeVal、量子化数値QPValのいずれかに分類さ
れる。定数発生器ConstGen2は定数K2を発生し、除算ユ
ニットDiv2はモード・量子化パラメータ有無情報数値QP
ModeValを定数K2で除算する。定数K2で除算した商は量
子化パラメータ符号化有無信号HasQPとなり、定数K2で
除算した余りはモード情報数値ModeValとなる。但し、
符号表の一部のモードのみが算術的に構成できる場合
は、算術的に構成できる部分のみについてこの除算手順
を適用する。
The numerical value Val is classified by the selection unit Sel5 into one of a motion vector numerical value MVVal0, a mode / quantization parameter presence / absence information numerical value QPModeVal, and a quantized numerical value QPVal. The constant generator ConstGen2 generates a constant K2, and the division unit Div2 outputs the mode / quantization parameter presence / absence information numerical value QP.
Divide ModeVal by the constant K2. The quotient divided by the constant K2 becomes the quantization parameter coding presence / absence signal HasQP, and the remainder divided by the constant K2 becomes the mode information numerical value ModeVal. However,
If only some modes of the codebook can be configured arithmetically, then this division procedure is applied only to the part that can be configured arithmetically.

【0045】例えば、図6に示す本発明の画像符号化装
置におけるヘッダ情報可変長符号化ユニットModeVLCの
数値とモードの対応図では、数値Value1〜8のモード情
報Modeが数値Value9〜16の構成に利用されているので、
定数K2を8とし数値Valueが規則的で無い0を除外するた
め予め数値Valueから1を減算すれば、数値Value-1を定
数K2で除算した商が量子化パラメータQPの符号化有無、
数値Value-1を定数K2で除算した余りが同じモード情報M
odeを示す数値になる。
For example, in the correspondence diagram of the numerical values and modes of the header information variable length coding unit ModeVLC in the image coding apparatus of the present invention shown in FIG. 6, the mode information Mode of numerical values Value1 to 8 has the configuration of numerical values Value9 to 16. Since it is used,
If the constant K2 is set to 8 and the numerical Value is not regular and 0 is excluded, if 1 is subtracted from the numerical value beforehand, the quotient obtained by dividing the numerical value Value-1 by the constant K2 indicates whether or not the quantization parameter QP is encoded.
Mode information M with the same remainder when the numerical value Value-1 is divided by the constant K2
It becomes a numerical value indicating ode.

【0046】モード復元ユニットQPIMap1は量子化パラ
メータ符号化有無信号HasQPを参照し、量子化パラメー
タが符号化されていない場合は既定の既定の量子化パラ
メータであるとして量子化パラメータQPを得、量子化パ
ラメータが符号化されている場合は量子化数値QPValか
ら量子化パラメータQPを復元する。
The mode restoration unit QPIMap1 refers to the quantization parameter coding presence / absence signal HasQP, and when the quantization parameter is not coded, obtains the quantization parameter QP as a default quantization parameter, and quantizes it. If the parameter is encoded, the quantization parameter QP is restored from the quantized value QPVal.

【0047】以上のように、本実施の形態によれば、図
1のヘッダ情報可変長符号化ユニットModeVLCを用いた
画像符号化装置で生成された画像符号化信号Strを正し
く復号化することができる。
As described above, according to the present embodiment, the image coded signal Str generated by the image coding apparatus using the header information variable length coding unit ModeVLC of FIG. 1 can be correctly decoded. it can.

【0048】なお、実施の形態4で、ヘッダ部では、動
きベクトルMV、モード情報Mode、量子化パラメータQPを
ヘッダ情報可変長符号化ユニットModeVLCで符号化する
例を示したが、動きベクトルMVが他の手段で復号化され
る等の理由でヘッダ情報可変長符号化ユニットModeVLC
で復号化する必要が無い場合は、量子化パラメータQPと
モード情報Modeのみをヘッダ情報可変長符号化ユニット
ModeVLCで復号化してもよい。
In the fourth embodiment, the example in which the motion vector MV, the mode information Mode and the quantization parameter QP are coded by the header information variable length coding unit ModeVLC in the header part has been described. Header information variable length coding unit ModeVLC because it is decoded by other means
If there is no need to decode in, only the quantization parameter QP and the mode information Mode are included in the header information variable length coding unit.
You may decrypt with ModeVLC.

【0049】(実施の形態5)実施の形態1と実施の形
態3、または実施の形態2と実施の形態4を組合せ、量
子化パラメータQP符号化の有無、参照フレーム番号RefF
rame符号化の有無をまとめてモード情報として符号化し
ても良い。
(Embodiment 5) A combination of Embodiments 1 and 3, or Embodiments 2 and 4, combining with or without quantization parameter QP coding, and reference frame number RefF
The presence / absence of rame encoding may be collectively encoded as mode information.

【0050】図9は本発明の画像符号化装置におけるヘ
ッダ情報可変長符号化ユニットModeVLCの数値とモード
の対応図である。図9の例では、量子化パラメータQP符
号化の有無、参照フレーム番号RefFrame符号化の有無、
対応するモードは下記の規則で算術的に計算できる。
FIG. 9 is a correspondence diagram of numerical values and modes of the header information variable length coding unit ModeVLC in the image coding apparatus of the present invention. In the example of FIG. 9, quantization parameter QP coding is performed, reference frame number RefFrame coding is performed,
The corresponding mode can be calculated arithmetically according to the following rules.

【0051】(数値Valueを生成する場合) 1)量子化パラメータQPと参照フレーム番号RefFrameが
符号化されない場合Valueは図15のものを使用 2)量子化パラメータQPのみ符号化される場合 Valueは図15で同じModeのものに8を加算 3)参照フレーム番号RefFrameのみ符号化される場合 Valueは図15で同じModeのものに16を加算 4)量子化パラメータQPと参照フレーム番号RefFrameが
符号化される場合 Valueは図15で同じModeのものに23を加算 (数値Valueを復元する場合) Valueを16で除算した商が1なら参照フレーム番号符号
化信号RefFrameStrあり、0なら参照フレーム番号符号化
信号RefFrameStrなし 1)Valueが17未満の場合 Value-1を8で除算した商が1なら量子化パラメータ符号
化信号QPStrあり、0なら量子化パラメータ符号化信号QP
Strなし Value-1を8で除算した余りに1を加算したValueに対応
する図15のModeが対応 2)Valueが17未満の場合 Value-3を7で除算した商が3なら量子化パラメータ符号
化信号QPStrあり、2なら量子化パラメータ符号化信号QP
Strなし Value-3を7で除算した余りに1を加算したValueに対応
する図15のModeが対応 数値Valueを生成する場合の1)、2)、3)、4)に
対応するモード符号化信号ModeStrの例を、それぞれ図
10(a)〜(d)に示す。
(When Numerical Value is Generated) 1) When the quantization parameter QP and the reference frame number RefFrame are not coded, the value shown in FIG. 15 is used. 2) When only the quantization parameter QP is coded Value is shown in FIG. 15: Add 8 to the same Mode 3) When only the reference frame number RefFrame is encoded Value: Add 16 to the same Mode 4 in Fig. 15 4) Quantization parameter QP and reference frame number RefFrame are encoded If the quotient obtained by dividing Value by 16 is 1, there is a reference frame number encoded signal RefFrameStr, and if 0, the reference frame number encoded signal is present. RefFrameStr None 1) When Value is less than 17 If the quotient obtained by dividing Value-1 by 8 is 1, there is a quantization parameter coded signal QPStr, and if it is 0, there is a quantization parameter coded signal QP.
Str None Value-1 is divided by 8 and 1 is added to the remainder, which corresponds to the mode in Fig. 15 2) When Value is less than 17, if Value-3 is divided by 7 and the quotient is 3, quantization parameter encoding Signal QPStr present, if 2 then quantization parameter coded signal QP
Str None Value-3 corresponding to the value obtained by adding 1 to the remainder obtained by dividing by 3 and the mode coded signal corresponding to 1), 2), 3), 4) when the mode of FIG. Examples of ModeStr are shown in FIGS.

【0052】(実施の形態6)さらに、上記各実施の形
態で示した画像符号化方法または画像復号化方法の構成
を実現するためのプログラムを、フロッピー(登録商
標)ディスク等の記憶媒体に記録するようにすることに
より、上記各実施の形態で示した処理を、独立したコン
ピュータシステムにおいて簡単に実施することが可能と
なる。
(Sixth Embodiment) Furthermore, a program for realizing the configuration of the image coding method or the image decoding method shown in each of the above embodiments is recorded in a storage medium such as a floppy (registered trademark) disk. By doing so, it becomes possible to easily carry out the processing shown in each of the above embodiments in an independent computer system.

【0053】図11は、上記実施の形態1から実施の形
態2の画像符号化方法または画像復号化方法を格納した
フロッピーディスクを用いて、コンピュータシステムに
より実施する場合の説明図である。
FIG. 11 is an explanatory diagram of a case where the present invention is carried out by a computer system using a floppy disk storing the image coding method or the image decoding method of the first to second embodiments.

【0054】図11(b)は、フロッピーディスクの正
面からみた外観、断面構造、及びフロッピーディスクを
示し、図11(a)は、記録媒体本体であるフロッピー
ディスクの物理フォーマットの例を示している。フロッ
ピーディスクFDはケースF内に内蔵され、該ディスク
の表面には、同心円状に外周からは内周に向かって複数
のトラックTrが形成され、各トラックは角度方向に1
6のセクタSeに分割されている。従って、上記プログ
ラムを格納したフロッピーディスクでは、上記フロッピ
ーディスクFD上に割り当てられた領域に、上記プログ
ラムとしての画像符号化方法および画像復号化方法が記
録されている。
FIG. 11B shows the external appearance, sectional structure, and floppy disk of the floppy disk as viewed from the front, and FIG. 11A shows an example of the physical format of the floppy disk, which is the recording medium body. . The floppy disk FD is built in a case F, and a plurality of tracks Tr are formed concentrically from the outer circumference toward the inner circumference on the surface of the disk F, and each track is formed in an angular direction by one.
It is divided into 6 sectors Se. Therefore, in the floppy disk storing the program, the image encoding method and the image decoding method as the program are recorded in the area allocated on the floppy disk FD.

【0055】また、図11(c)は、フロッピーディス
クFDに上記プログラムの記録再生を行うための構成を
示す。上記プログラムをフロッピーディスクFDに記録
する場合は、コンピュータシステムCsから上記プログ
ラムとしての画像符号化方法または画像復号化方法をフ
ロッピーディスクドライブを介して書き込む。また、フ
ロッピーディスク内のプログラムにより上記画像符号化
方法および画像復号化方法をコンピュータシステム中に
構築する場合は、フロッピーディスクドライブによりプ
ログラムをフロッピーディスクから読み出し、コンピュ
ータシステムに転送する。
FIG. 11C shows a structure for recording / reproducing the above-mentioned program on the floppy disk FD. When the program is recorded on the floppy disk FD, the image encoding method or the image decoding method as the program is written from the computer system Cs via the floppy disk drive. When the image coding method and the image decoding method are constructed in a computer system by a program in a floppy disk, the program is read from the floppy disk by a floppy disk drive and transferred to the computer system.

【0056】なお、上記説明では、記録媒体としてフロ
ッピーディスクを用いて説明を行ったが、光ディスクを
用いても同様に行うことができる。また、記録媒体はこ
れに限らず、ICカード、ROMカセット等、プログラ
ムを記録できるものであれば同様に実施することができ
る。
In the above description, a floppy disk is used as the recording medium, but an optical disk may be used. Further, the recording medium is not limited to this, and any recording medium such as an IC card and a ROM cassette that can record the program can be similarly used.

【0057】[0057]

【発明の効果】以上の様に、本発明にかかる画像符号化
方法および画像復号化方法によれば、膨大な大きさの符
号表を準備することなく、全ての符号化モードの組合せ
表現を符号化することができる。その結果、参照フレー
ム番号符号化信号RefFrameStrや量子化パラメータ符号
化信号QPStrのストリーム中への配置が不要な場合が多
々発生し、全体としてみれば圧縮率向上が実現でき実用
的価値は高い。
As described above, according to the image coding method and the image decoding method according to the present invention, the combined representation of all the coding modes is coded without preparing a code table of enormous size. Can be converted. As a result, the reference frame number coded signal RefFrameStr and the quantization parameter coded signal QPStr often do not need to be arranged in the stream, and as a whole, the compression rate can be improved and the practical value is high.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施の形態1の画像符号化装置におけ
るヘッダ情報可変長符号化ユニットModeVLCのブロック
FIG. 1 is a block diagram of a header information variable length coding unit ModeVLC in an image coding apparatus according to a first embodiment of the present invention.

【図2】本発明の実施の形態1の画像符号化装置におけ
るヘッダ情報可変長符号化ユニットModeVLCの数値とモ
ードの対応を示す図
FIG. 2 is a diagram showing correspondence between numerical values and modes of a header information variable length coding unit ModeVLC in the image coding device according to the first embodiment of the present invention.

【図3】本発明の実施の形態1の画像符号化装置で作成
される画像符号化信号のブロックに対応するストリーム
を示す図
FIG. 3 is a diagram showing streams corresponding to blocks of an image coded signal created by the image coding apparatus according to the first embodiment of the present invention.

【図4】本発明の実施の形態2の画像復号化装置におけ
るヘッダ情報可変長復号化ユニットModeVLDのブロック
FIG. 4 is a block diagram of a header information variable length decoding unit ModeVLD in an image decoding device according to a second embodiment of the present invention.

【図5】本発明の実施の形態3の画像符号化装置におけ
るヘッダ情報可変長符号化ユニットModeVLCのブロック
FIG. 5 is a block diagram of a header information variable length coding unit ModeVLC in the image coding apparatus according to the third embodiment of the present invention.

【図6】本発明の実施の形態3の画像符号化装置におけ
るヘッダ情報可変長符号化ユニットModeVLCの数値とモ
ードの対応を示す図
FIG. 6 is a diagram showing correspondence between numerical values and modes of a header information variable length coding unit ModeVLC in the image coding apparatus according to the third embodiment of the present invention.

【図7】本発明の実施の形態3の画像符号化装置で作成
される画像符号化信号のブロックに対応するストリーム
を示す図
FIG. 7 is a diagram showing streams corresponding to blocks of an image coded signal created by the image coding apparatus according to the third embodiment of the present invention.

【図8】本発明の実施の形態4の画像復号化装置におけ
るヘッダ情報可変長復号化ユニットModeVLDのブロック
FIG. 8 is a block diagram of a header information variable length decoding unit ModeVLD in an image decoding apparatus according to a fourth embodiment of the present invention.

【図9】本発明の実施の形態5の画像符号化装置におけ
るヘッダ情報可変長符号化ユニットModeVLCの数値とモ
ードの対応を示す図
FIG. 9 is a diagram showing correspondence between numerical values and modes of the header information variable length coding unit ModeVLC in the image coding apparatus according to the fifth embodiment of the present invention.

【図10】本発明の実施の形態5の画像符号化装置で作
成される画像符号化信号のストリームを示す図
FIG. 10 is a diagram showing a stream of an image coded signal created by the image coding apparatus according to the fifth embodiment of the present invention.

【図11】本発明の実施の形態6の画像符号化方法およ
び画像復号化方法をコンピュータシステムにより実現す
るためのプログラムを格納するための記憶媒体について
の説明図
FIG. 11 is an explanatory diagram of a storage medium for storing a program for implementing the image coding method and the image decoding method according to the sixth embodiment of the present invention by a computer system.

【図12】画像符号化装置のブロック図FIG. 12 is a block diagram of an image encoding device.

【図13】従来の画像符号化装置におけるヘッダ情報可
変長符号化ユニットModeVLCのブロック図
FIG. 13 is a block diagram of a header information variable length coding unit ModeVLC in a conventional image coding apparatus.

【図14】可変長符号化の数値と符号の対応を示す図FIG. 14 is a diagram showing correspondence between numerical values and codes in variable-length coding.

【図15】従来の画像符号化装置におけるヘッダ情報可
変長符号化ユニットModeVLCの数値とモードの対応を示
す図
FIG. 15 is a diagram showing correspondence between numerical values and modes of a header information variable length coding unit ModeVLC in a conventional image coding apparatus.

【図16】従来の画像符号化装置で作成される画像符号
化信号のブロックに対応するストリームを示す図
FIG. 16 is a diagram showing a stream corresponding to a block of an image coded signal created by a conventional image coding apparatus.

【図17】画像復号化装置のブロック図FIG. 17 is a block diagram of an image decoding device.

【図18】従来の画像復号化装置におけるヘッダ情報可
変長復号化ユニットModeVLDのブロック図
FIG. 18 is a block diagram of a header information variable length decoding unit ModeVLD in a conventional image decoding device.

【符号の説明】[Explanation of symbols]

Vin 動画像信号 Vout 復号動画像信号 Str 画像符号化信号 ME 動き検出ユニット MC 動き補償ユニット Mem メモリ Trans 周波数変換ユニット Itrans 周波数逆変換ユニット Q 量子化ユニット IQ 逆量子化ユニット Mux 多重化ユニット DeMux 分離ユニット CoefVLC 係数情報可変長符号化ユニット CoefVLD 係数情報可変長復号化ユニット RateCtl レート制御ユニット ModeDec 符号化モード決定 ConstGen1,ConstGen2 定数発生器 MVMap0,MVMap1,ModeMap0,ModeMap1,QPMap0,QPMap1
モード数値化ユニット MVIMap0,MVIMap1,ModeIMap0,ModeIMap1,QPIMap0,Q
PIMap1 モード復元ユニット ModeVLC ヘッダ情報可変長符号化ユニット ModeVLD ヘッダ情報可変長復号化ユニット Sel0,Sel1,Sel2,Sel3,Sel4,Sel5 選択ユニット Mul1,Mul2 乗算ユニット Add0,Add1,Add2 加算ユニット Sub0 減算ユニット Div1,Div2 除算ユニット VLC 可変長符号化ユニット VLD 可変長復号化ユニット Cs コンピュータ・システム FD フロッピディスク FDD フロッピディスクドライブ
Vin Video signal Vout Decoded video signal Str Image coded signal ME Motion detection unit MC Motion compensation unit Mem Memory Trans Frequency conversion unit Itrans Frequency inverse transform unit Q Quantization unit IQ inverse quantization unit Mux Multiplexing unit DeMux Separation unit CoefVLC Coefficient information variable length coding unit CoefVLD Coefficient information variable length decoding unit RateCtl Rate control unit ModeDec Coding mode decision ConstGen1, ConstGen2 Constant generator MVMap0, MVMap1, ModeMap0, ModeMap1, QPMap0, QPMap1
Mode digitization unit MVIMap0, MVIMap1, ModeIMap0, ModeIMap1, QPIMap0, Q
PIMap1 Mode restoration unit ModeVLC Header information variable length coding unit ModeVLD Header information variable length decoding unit Sel0, Sel1, Sel2, Sel3, Sel4, Sel5 Selection unit Mul1, Mul2 Multiplication unit Add0, Add1, Add2 Addition unit Sub0 Subtraction unit Div1, Div2 Division unit VLC Variable length coding unit VLD Variable length decoding unit Cs Computer system FD floppy disk FDD floppy disk drive

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 MA27 MD02 ME01 ME11 ME17 NN01 PP01 PP04 RB02 RB09 RB12 RC32 RC37 SS20 UA02 UA38 UA39 5J064 AA02 BA09 BB03 BB06 BC01 BC08 BC09 BC16    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5C059 MA27 MD02 ME01 ME11 ME17                       NN01 PP01 PP04 RB02 RB09                       RB12 RC32 RC37 SS20 UA02                       UA38 UA39                 5J064 AA02 BA09 BB03 BB06 BC01                       BC08 BC09 BC16

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 ブロック単位の符号化モードをシンボル
に整数を割り付ける第1の符号化ステップと前記割り付
けた整数を算術演算可能な可変長符号化する第2の符号
化ステップで符号化する可変長符号を有する画像符号化
方法であって、α通りの第1の符号化モードとβ通りの
第2の符号化モードを有し、第1の符号化モードが整数
γ(但しγ≦α-1)、第2の符号化モードが整数δ(但
しδ≦β-1)で表現される場合に、γ+δ×ε(但しε
はε≦αなる定数)なる整数を前記第1の符号化ステッ
プで割り付ける整数とする画像符号化方法。
1. A variable length coded block-by-block coding mode in a first coding step of allocating integers to symbols and a second coding step of variable-length coding of the allocated integers capable of arithmetic operation. An image coding method having a code, which has α first coding modes and β second coding modes, where the first coding mode is an integer γ (where γ ≦ α-1 ), If the second coding mode is represented by an integer δ (where δ ≦ β-1), then γ + δ × ε (where ε
Is a constant that satisfies ε ≦ α), which is an integer assigned in the first encoding step.
【請求項2】 ブロック単位の画像符号化方法であっ
て、参照画像として参照する画像を特定する信号が符号
化されているか否かを示す識別信号を第2の符号化モー
ドとする請求項1記載の画像符号化方法。
2. A block-based image coding method, wherein an identification signal indicating whether or not a signal specifying an image to be referred to as a reference image is coded is the second coding mode. The described image coding method.
【請求項3】 ブロック単位の画像符号化方法であっ
て、前記ブロックの量子化ステップを表すパラメータが
符号化されているか否かを示す識別信号を第2の符号化
モードとする請求項1記載の画像符号化方法。
3. A block-based image coding method, wherein the identification signal indicating whether or not the parameter representing the quantization step of the block is coded is the second coding mode. Image coding method.
【請求項4】 算術演算可能な可変長符号を復号化して
整数値を取得する第1の復号化ステップと前記取得した
整数値をシンボルに変換する第2の復号化ステップで復
号化する画像復号化方法であって、α通りの第1の符号
化モードとβ通りの第2の符号化モードを有し、前記第
2の復号化ステップは、γ+δ×ε(但しεはε≦αな
る定数)なる整数値から第1の符号化モードを表す整数
γ(但しγ≦α-1)と第2の符号化モードを表す整数δ
(但しδ≦β-1)を取得するものである画像復号化方
法。
4. An image decoding for decoding a variable length code capable of arithmetic operation to obtain an integer value by a first decoding step and a second decoding step for converting the obtained integer value into a symbol. A first encoding mode in α ways and a second encoding mode in β ways, wherein the second decoding step is γ + δ × ε (where ε is a constant such that ε ≦ α). ), An integer γ representing the first encoding mode (where γ ≦ α-1) and an integer δ representing the second encoding mode.
An image decoding method for acquiring (where δ ≦ β-1).
【請求項5】 ブロック単位の画像復号化方法であっ
て、参照画像として参照する画像を特定する信号が符号
化されているか否かを示す識別信号を第2の符号化モー
ドとする請求項4記載の画像復号化方法。
5. A block-by-block image decoding method, wherein an identification signal indicating whether or not a signal specifying an image to be referred to as a reference image is encoded is the second encoding mode. The described image decoding method.
【請求項6】 ブロック単位の画像復号化方法であっ
て、当該ブロックの量子化ステップを表すパラメータが
符号化されているか否かを示す識別信号を第2の符号化
モードとする請求項1記載の画像符号化方法。
6. A block-by-block image decoding method, wherein the identification signal indicating whether or not the parameter representing the quantization step of the block is coded is the second coding mode. Image coding method.
【請求項7】 ブロック単位の符号化モードをシンボル
に整数を割り付ける第1の符号化手段と前記割り付けた
整数を符号化する第2の符号化手段を備え、第1の符号
化手段はα通りの第1の符号化モードとβ通りの第2の
符号化モードを有し、第1の符号化モードが整数γ(但
しγ≦α-1)、第2の符号化モードが整数δ(但しδ≦
β-1)で表現される場合にγ+δ×ε(但しεはε≦α
なる定数)なる整数を前記第1の符号化手段で割り付け
る整数とする画像符号化用可変長符号化装置。
7. A block-unit coding mode is provided with a first coding means for allocating an integer to a symbol and a second coding means for coding the allocated integer, and the first coding means has α patterns. Of the first coding mode and β second coding modes, where the first coding mode is an integer γ (where γ ≦ α-1) and the second coding mode is an integer δ (where δ ≦
γ + δ × ε (where ε is ε ≤ α when expressed as β-1)
Variable constant encoding device for image encoding, wherein the integer is a constant that is assigned by the first encoding means.
【請求項8】 可変長符号で復号化して整数値を復号化
する第1の復号化手段と、前記復号化した整数値をシン
ボルに変換する第2の復号化手段を備え、前記第2の復
号化手段は、γ+δ×ε(但しεはε≦αなる定数)な
る整数値から第1の符号化モードを表す整数γ(但しγ
≦α-1)と第2の符号化モードを表す整数δ(但しδ≦
β-1)を取得する画像復号化用可変長復号化装置。
8. A first decoding means for decoding an integer value by decoding with a variable length code, and a second decoding means for converting the decoded integer value into a symbol, the second decoding means. The decoding means uses an integer value of γ + δ × ε (where ε is a constant such that ε ≦ α) and an integer γ representing the first encoding mode (where γ
≤α-1) and an integer δ representing the second coding mode (where δ≤
β-1) variable length decoding device for image decoding.
【請求項9】 コンピュータにより、請求項1記載の画
像符号化方法を行うためのプログラムを格納した記憶媒
体であって、 上記プログラムはコンピュータに、 ブロック単位の符号化モードをシンボルに整数を割り付
ける第1の符号化ステップと前記割り付けた整数を算術
演算可能な可変長符号化する第2の符号化ステップで符
号化する可変長符号を有する画像符号化方法であって、
α通りの第1の符号化モードとβ通りの第2の符号化モ
ードを有し、第1の符号化モードが整数γ(但しγ≦α
-1)、第2の符号化モードが整数δ(但しδ≦β-1)で
表現される場合に、γ+δ×ε(但しεはε≦αなる定
数)なる整数を前記第1の符号化ステップで割り付ける
整数とする画像符号化方法を、行わせるものであること
を特徴とする記憶媒体。
9. A storage medium for storing a program for performing the image coding method according to claim 1 by a computer, wherein the program assigns an integer to a symbol as a block-based coding mode for the computer. An image coding method having a variable length code which is coded in a coding step of 1 and a second coding step of performing a variable length coding capable of arithmetically operating the allocated integers,
It has α first coding modes and β second coding modes, and the first coding mode is an integer γ (where γ ≦ α
-1), and when the second coding mode is expressed by an integer δ (where δ ≦ β-1), an integer of γ + δ × ε (where ε is a constant such that ε ≦ α) is used for the first coding. A storage medium for performing an image coding method, which is an integer assigned in steps.
【請求項10】 コンピュータにより、請求項5記載の
画像復号化方法を行うためのプログラムを格納した記憶
媒体であって、 上記プログラムはコンピュータに、 算術演算可能な可変長符号を復号化して整数値を取得す
る第1の復号化ステップと前記取得した整数値をシンボ
ルに変換する第2の復号化ステップで復号化する画像復
号化方法であって、α通りの第1の符号化モードとβ通
りの第2の符号化モードを有し、前記第2の復号化ステ
ップは、γ+δ×ε(但しεはε≦αなる定数)なる整
数値から第1の符号化モードを表す整数γ(但しγ≦α
-1)と第2の符号化モードを表す整数δ(但しδ≦β-
1)を取得するものである画像復号化方法を、行わせる
ものであることを特徴とする記憶媒体。
10. A storage medium for storing a program for performing the image decoding method according to claim 5 by a computer, wherein the program decodes an arithmetically operable variable length code into an integer value. An image decoding method for performing decoding in a first decoding step of obtaining a first encoding mode and a second decoding step of converting the obtained integer value into a symbol, the first encoding mode having α ways and the first encoding mode having β ways In the second decoding step, and in the second decoding step, an integer γ representing the first coding mode (where γ is γ + δ × ε (where ε is a constant ε ≦ α)) ≤ α
-1) and an integer δ representing the second coding mode (where δ ≦ β-
A storage medium characterized in that the image decoding method for obtaining 1) is performed.
JP2001285420A 2001-09-19 2001-09-19 Image coding and decoding method Pending JP2003102004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001285420A JP2003102004A (en) 2001-09-19 2001-09-19 Image coding and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001285420A JP2003102004A (en) 2001-09-19 2001-09-19 Image coding and decoding method

Publications (1)

Publication Number Publication Date
JP2003102004A true JP2003102004A (en) 2003-04-04

Family

ID=19108568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001285420A Pending JP2003102004A (en) 2001-09-19 2001-09-19 Image coding and decoding method

Country Status (1)

Country Link
JP (1) JP2003102004A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303570A (en) * 2016-08-22 2017-01-04 北京奇艺世纪科技有限公司 A kind of Video coding reference frame selecting method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303570A (en) * 2016-08-22 2017-01-04 北京奇艺世纪科技有限公司 A kind of Video coding reference frame selecting method and device

Similar Documents

Publication Publication Date Title
JP4158993B1 (en) Encoding method and encoding apparatus
WO2004032521A1 (en) Image encoding device, image decoding device and their methods
JP2003102004A (en) Image coding and decoding method
JP4100552B2 (en) Decryption method
JP2003101416A (en) Image encoding method and image decoding method
JP3905938B2 (en) Image coding apparatus and image decoding apparatus
JP4158985B2 (en) Encoding method and encoding apparatus
JP4158986B2 (en) Decoding method and decoding apparatus