JP2003284077A - Apparatus and method for coding image, and image coding program - Google Patents

Apparatus and method for coding image, and image coding program

Info

Publication number
JP2003284077A
JP2003284077A JP2003006463A JP2003006463A JP2003284077A JP 2003284077 A JP2003284077 A JP 2003284077A JP 2003006463 A JP2003006463 A JP 2003006463A JP 2003006463 A JP2003006463 A JP 2003006463A JP 2003284077 A JP2003284077 A JP 2003284077A
Authority
JP
Japan
Prior art keywords
frame
coding
macroblock
encoding
still
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
JP2003006463A
Other languages
Japanese (ja)
Inventor
Kyoko Uchibayashi
京子 内林
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 JP2003006463A priority Critical patent/JP2003284077A/en
Publication of JP2003284077A publication Critical patent/JP2003284077A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image coding apparatus, an image coding method, and an image coding program which suppresses the quantity of code generation to a minimum, and perform high-image-quality coding, when the stationary part of an image is coded by compression coding. <P>SOLUTION: A stationary frame coding judgment means 15 which judges whether or not a frame to be intended to code is a frame which is stationary (a stationary frame) from the difference value between the frame and a reference frame just before it, and a quantization parameter value control means 16 which controls quantization parameter values to be used for coding only for one frame at an initial time when its image begins to be stationary, are provided. Coding is performed whose coding error is smaller than that to be generated when other frames are coded. <P>COPYRIGHT: (C)2004,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像符号化装置、
画像符号化方法、及び画像符号化プログラムに関し、特
に、被符号化フレームのうち、静止フレームを特定し、
該フレームの高画質符号化を行うものに関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding device,
The present invention relates to an image encoding method and an image encoding program, and in particular, specifies a still frame among encoded frames,
The present invention relates to a high-quality encoding of the frame.

【0002】[0002]

【従来の技術】デジタル画像を効率よく蓄積もしくは伝
送するには、圧縮符号化する必要がある。デジタル画像
を圧縮符号化するための方法として、離散コサイン変換
(DCT)のほかに、サブバンドやウェーブレット、フ
ラクタルなどの波形符号化方法がある。また、画像は、
符号化の際、例えば、一画面内に類似した部分のある画
像の場合の画面内で冗長な情報や連続する表示画面にお
いて、静止している部分等の画面間で冗長な情報を取り
除くことによって圧縮され、これが符号化される。
2. Description of the Related Art In order to efficiently store or transmit digital images, compression coding is required. As a method for compressing and coding a digital image, there are waveform coding methods such as subband, wavelet, and fractal in addition to the discrete cosine transform (DCT). Also, the image is
At the time of encoding, for example, in the case of an image having a similar part in one screen, redundant information in the screen or continuous display screens, by removing redundant information between screens such as a still part It is compressed and this is encoded.

【0003】上記画面内の冗長な情報を取り除く方法と
しては、画面内予測という方法がある。この方法は、符
号化しようとする部分を、既に符号化した隣接部分との
差分を求め差分信号として表し、この差分信号を波形符
号化するものである。
As a method for removing the redundant information in the screen, there is a method called intra-screen prediction. In this method, the portion to be encoded is obtained as a difference signal by obtaining the difference from the already encoded adjacent portion, and this difference signal is waveform-encoded.

【0004】また、隣接するフレームの画面間における
冗長な画像情報を取り除く方法としては、動き補償を用
いた画面間予測を行う方法、つまり、現画面の画素の画
素値を、これと前画面の画素の画素値との差分を求め差
分信号として表し、この差分信号を波形符号化する方法
がある。
As a method of removing redundant image information between screens of adjacent frames, a method of inter-screen prediction using motion compensation, that is, the pixel value of a pixel of the current screen is compared with that of the previous screen. There is a method in which the difference from the pixel value of a pixel is obtained and expressed as a difference signal, and this difference signal is waveform-coded.

【0005】上記画面間予測を行う方法を用いる従来の
画像予測符号化装置の一例を図16を用いて説明する。
図16は、一般的画像符号化装置1500の構成を示す
ブロック図である。
An example of a conventional image predictive coding apparatus using the above inter-picture prediction method will be described with reference to FIG.
FIG. 16 is a block diagram showing the configuration of a general image encoding device 1500.

【0006】図16において、画像符号化装置1500
は、入力画像を16×16画素の大きさのマクロブロッ
ク毎に分割するブロック化器1と、符号化対象となる対
象マクロブロックとこれに対応する予測マクロブロック
との差分値s1を求める減算手段2と、スキップマクロ
ブロック判定器4の判定結果に基づいてON,OFFを
行うスイッチ3と、差分値s1の絶対値と外部から与え
られた量子化パラメータとを用いて、当該マクロブロッ
クを直前画面の同じ位置マクロブロックで置き換えるス
キップマクロブロックとするか、差分値s1を符号化す
るかを判定し、スイッチ3の切り替えを行うスキップマ
クロブロック判定器4と、差分値s1を圧縮符号化する
圧縮符号化手段5と、圧縮符号化手段5より出力される
量子化係数に基づいて局所復号化を行う局所復号化手段
9と、局所復号化手段9の出力から予測マクロブロック
を生成する局所予測画像生成手段12とを備えたもので
ある。
In FIG. 16, an image encoding device 1500
Is a blocker 1 that divides an input image into macroblocks each having a size of 16 × 16 pixels, and subtraction means that obtains a difference value s1 between a target macroblock to be encoded and a prediction macroblock corresponding to the macroblock. 2, the switch 3 that turns ON / OFF based on the determination result of the skip macroblock determiner 4, the absolute value of the difference value s1 and the quantization parameter given from the outside, and the macroblock is displayed on the immediately preceding screen. Of the same position, the skip macroblock determiner 4 that determines whether to be the skip macroblock to be replaced or the difference value s1 is encoded, and switches the switch 3, and the compression code that compresses and encodes the difference value s1. Localizing means 5, local decoding means 9 for performing local decoding based on the quantized coefficient output from the compression coding means 5, and local decoding Is obtained by a local predictive image generation means 12 for generating a predictive macroblock from the output of stage 9.

【0007】圧縮符号化手段5は、差分値s1を周波数
領域信号に変換する周波数変換器6と、周波数変換器6
の出力を外部から入力される量子化パラメータを用いて
量子化する量子化器7と、量子化器7の出力(量子化係
数)を可変長符号化する、あるいは、スキップマクロブ
ロック判定器4の出力であるスキップマクロブロック信
号s2を他のマクロブロックの差分信号を可変長符号化
したデータと多重化し、符号列として出力する可変長符
号化器8とを備えたものである。
The compression coding means 5 comprises a frequency converter 6 for converting the difference value s1 into a frequency domain signal, and a frequency converter 6
Quantizer 7 which quantizes the output of the above using an externally input quantization parameter, and variable length coding of the output (quantization coefficient) of the quantizer 7, or the skip macroblock determiner 4 A skip length macroblock signal s2 which is an output is provided with a variable length encoder 8 which multiplexes the differential signals of other macroblocks with variable length encoded data and outputs the multiplexed signal as a code string.

【0008】局所復号化手段9は、量子化器7の出力
(量子化係数)を逆量子化する逆量子化器10と、逆量
子化器10の出力(周波数領域信号)を空間領域信号に
変換する周波数逆変換器11とを備えたものである。
The local decoding means 9 dequantizes the output (quantization coefficient) of the quantizer 7 and the dequantizer 10 and the output (frequency domain signal) of the dequantizer 10 into a spatial domain signal. The frequency inverse converter 11 for converting is provided.

【0009】局所予測画像生成手段12は、局所復号化
手段9の出力(局所復号化データ)と予測画像生成手段
13の出力(予測マクロブロック)とを加算したデータ
を格納するフレームメモリ14と、予測マクロブロック
を生成する予測画像生成器13とを備えたものである。
The local predicted image generating means 12 stores a frame memory 14 for storing data obtained by adding the output (locally decoded data) of the local decoding means 9 and the output (predicted macroblock) of the predicted image generating means 13, And a prediction image generator 13 for generating a prediction macroblock.

【0010】以上のように構成された画像符号化装置1
500の動作について説明する。入力画像はブロック化
器1によりマクロブロック毎に分割される。そして、符
号化処理の対象となる対象マクロブロックと該対象マク
ロブロックに対応する予測マクロブロックとの差分値s
1が減算手段3により求められ、この差分値s1の絶対
値と外部から与えられた量子化パラメータを用いて、当
該マクロブロックをスキップマクロブロックとするか否
かの判定がスキップマクロブロック判定器4にて行われ
る。
The image coding apparatus 1 configured as described above
The operation of 500 will be described. The input image is divided by the blocker 1 into macroblocks. Then, the difference value s between the target macroblock to be the target of the encoding process and the prediction macroblock corresponding to the target macroblock
1 is obtained by the subtracting means 3, and the skip macroblock determiner 4 determines whether or not the macroblock is a skip macroblock using the absolute value of the difference value s1 and the quantization parameter given from the outside. Will be held in.

【0011】ここで、スキップマクロブロック判定器4
の処理方法について図17を用いて説明する。まず、減
算手段2の出力である当該マクロブロックの差分値s1
の絶対値和Xを求め(ステップS1600)、該求めた
絶対値和Xと量子化パラメータに一定値を乗算した閾値
THR_Lとを比較する(ステップS1601)。絶対
値和Xが閾値THR_Lより大きい場合、ステップS1
602に進み、当該マクロブロックはインターマクロブ
ロックであると判定し、差分値s1を符号化する。絶対
値和Xが閾値THR_Lより小さい場合、ステップS1
603に進み、当該マクロブロックがスキップマクロブ
ロックであると判定する。つまり、スキップマクロブロ
ックと判定されるマクロブロックは、直前フレームと当
該フレームの符号化しようとするマクロブロックやその
付近において、動きの少ない、もしくは動きの無い(静
止している)場合である。
Here, the skip macroblock determiner 4
The processing method of will be described with reference to FIG. First, the difference value s1 of the macroblock output from the subtraction unit 2
The absolute value sum X is calculated (step S1600), and the calculated absolute value sum X is compared with the threshold value THR_L obtained by multiplying the quantization parameter by a constant value (step S1601). If the absolute value sum X is larger than the threshold value THR_L, step S1
Proceeding to 602, it is determined that the macro block is an inter macro block, and the difference value s1 is encoded. If the sum of absolute values X is smaller than the threshold value THR_L, step S1
In step 603, it is determined that the macro block is a skip macro block. That is, the macroblock determined to be the skip macroblock is a case where there is little motion or no motion (stationary) in the immediately preceding frame, the macroblock to be encoded in the frame, and the vicinity thereof.

【0012】スキップマクロブロック判定器4により当
該マクロブロックがスキップマクロブロックでないと判
定された場合、差分値s1はスイッチ3により圧縮符号
化手段5へ出力され、該差分値s1は圧縮符号化手段5
内の周波数変換器6により周波数領域信号に変換され、
該周波数領域信号は量子化器7により外部から入力され
る量子化パラメータを用いて量子化される。さらに、量
子化器7からの出力(量子化係数)は、可変長符号化器
8において可変長符号化される。なお、量子化器7の出
力は、局所復号化手段9によって局所復号化され、さら
に局所復号化されたデータは、局所予測画像生成手段1
2にて予測画像(予測マクロブロック)生成に用いられ
る。
When the skip macroblock determiner 4 determines that the macroblock is not a skip macroblock, the difference value s1 is output to the compression coding means 5 by the switch 3, and the difference value s1 is compressed compression means 5.
Is converted into a frequency domain signal by the frequency converter 6 in the
The frequency domain signal is quantized by a quantizer 7 using a quantization parameter input from the outside. Further, the output (quantization coefficient) from the quantizer 7 is variable-length coded in the variable-length encoder 8. The output of the quantizer 7 is locally decoded by the local decoding means 9, and the locally decoded data is the locally predicted image generating means 1
2 is used to generate a predicted image (predicted macroblock).

【0013】スキップマクロブロック判定器4により当
該マクロブロックがスキップマクロブロックであると判
定された場合、スキップマクロブロック判定器4から可
変長符号化器8に対してスキップマクロブロック信号s
2が出力され、可変長符号化器8にて他のマクロブロッ
クの差分信号を可変長符号化したデータと多重化され、
符号列として出力される。このように、画像を符号化し
ながら静止画を判定し、該判定した静止画を高画質に符
号化することができる。
If the skip macroblock determiner 4 determines that the macroblock is a skip macroblock, the skip macroblock determiner 4 sends the skip macroblock signal s to the variable length encoder 8.
2 is output, and the variable length encoder 8 multiplexes the differential signals of the other macro blocks with the variable length encoded data,
It is output as a code string. In this way, a still image can be determined while encoding the image, and the determined still image can be encoded with high image quality.

【0014】上記図16を用いて説明した画像符号化方
法は、符号化対象の画像信号を符号化装置に1度しか入
力しない1パス符号化(1パスコーディング)方法であ
り、この符号化方法によると、符号化信号を入力直後に
符号化することができ、リアルタイム符号化を行うこと
ができる。
The image coding method described with reference to FIG. 16 is a one-pass coding (one-pass coding) method in which the image signal to be coded is input only once to the coding apparatus. According to this, the coded signal can be coded immediately after input, and real-time coding can be performed.

【0015】また、上記1パスコーディングとは異な
り、符号化対象の画像信号を一度符号化し、その符号化
情報を用いて再度符号化を行う2パス符号化(2パスコ
ーディング)方法もあり、この2パスコーディングによ
ると、1度目の情報を用いた符号化を行うことができる
が、1パスコーディングに比べて符号化にかかる時間が
多くなる。
Also, unlike the above-mentioned one-pass coding, there is also a two-pass coding (two-pass coding) method in which an image signal to be coded is once coded and then coded again using the coded information. According to the 2-pass coding, it is possible to perform the coding using the first information, but the time required for the coding is longer than that in the 1-pass coding.

【0016】[0016]

【特許文献1】特開2000−188735号公報[Patent Document 1] Japanese Patent Laid-Open No. 2000-188735

【特許文献2】特開2000−125301号公報[Patent Document 2] Japanese Patent Laid-Open No. 2000-125301

【0017】[0017]

【発明が解決しようとする課題】しかしながら、上記従
来の方法では、画像全体を符号化するため、発生符号量
が多くなるという問題が生じる。そこで、従来法から用
いられる画面間予測を用いて差分値を符号化、もしく
は、スキップマクロブロックとされた当該マクロブロッ
クを直前フレームのマクロブロックで置き換える符号化
を行うようにすれば、当該フレームの符号化における発
生ビット量は、画面間予測を行わない符号化に比べて減
少するとともに、静止画像もしくは静止部分が多い画像
においては、特に画面間予測を用いて符号化すると圧縮
率のうえで大きな効果が得られる。
However, in the above-mentioned conventional method, since the entire image is coded, there arises a problem that the generated code amount increases. Therefore, if the difference value is encoded by using the inter-frame prediction used from the conventional method, or if the encoding is performed by replacing the macro block that is the skip macro block with the macro block of the immediately preceding frame, The amount of generated bits in encoding is smaller than that in encoding that does not perform inter-frame prediction, and in the case of a still image or an image with many still parts, particularly when encoding using inter-frame prediction, a large compression rate is achieved. The effect is obtained.

【0018】また、上記従来の方法では、静止画像もし
くは静止部分が多い画像においては、静止画像の最初以
外のフレームでは画面間残差信号がほとんど発生せず、
直前フレームを参照するスキップマクロブロックが多く
なるという問題が生じる。このとき、最初の静止フレー
ムの符号化による画質劣化(符号化誤差)が十分小さけ
れば、これを参照する後続の静止フレームの画質向上が
見込めるが、最初の静止フレームの符号化誤差が大きい
場合は、これを参照する静止部分全体にその符号化誤差
が影響し、画質劣化が改善されない。このような画質劣
化を防ぐためには、スキップマクロブロックを少なくし
たり、量子化幅を小さくし量子化する必要がある。
Further, according to the above-mentioned conventional method, in a still image or an image having many still portions, an inter-screen residual signal is hardly generated in a frame other than the first frame of the still image,
There is a problem that the number of skip macroblocks that refer to the immediately preceding frame increases. At this time, if the image quality deterioration (encoding error) due to the encoding of the first still frame is sufficiently small, the image quality of the subsequent still frame referring to this can be expected to improve, but if the encoding error of the first still frame is large, The coding error affects the entire still part that refers to this, and the image quality deterioration is not improved. In order to prevent such image quality deterioration, it is necessary to reduce the number of skip macroblocks or to reduce the quantization width for quantization.

【0019】本発明は、上記問題点を解決するためにな
されたものであり、静止画像もしくは静止部分の符号化
において、発生符号量の増加を防ぎ、かつ高画質に符号
化する画像符号化装置、画像符号化方法、及び画像符号
化プログラムを提供することを目的とする。
The present invention has been made in order to solve the above problems, and in the coding of a still image or a still part, an image coding apparatus for preventing an increase in the generated code amount and coding with high image quality. , An image encoding method, and an image encoding program.

【0020】[0020]

【課題を解決するための手段】上記課題を解決するため
に、本発明の請求項1にかかる画像符号化方法は、符号
化対象である被符号化フレームを処理単位であるマクロ
ブロックにブロック化し、当該フレームと参照フレーム
との差分値を求め、該差分値を符号化する画像符号化方
法であって、上記被符号化フレームが静止している静止
フレームであるかを判定する静止フレーム判定ステップ
と、上記静止フレーム判定ステップにて、静止フレーム
と判断されたフレームのうち、少なくとも1フレームに
対してその他のフレームの符号化に比べて高画質に符号
化する静止フレーム符号化を行う高画質符号化ステップ
と、を含むことを特徴とするものである。これにより、
静止フレームである被符号化フレームを特定し、少なく
とも1フレームに対して高画質符号化を行うことで、従
来のように全ての静止フレームを高画質に符号化するこ
とによる発生符号量の増加を抑え、かつ、後続のフレー
ムも画質を改善することができる。
In order to solve the above-mentioned problems, the image coding method according to claim 1 of the present invention divides a coded frame to be coded into macroblocks which are processing units. A still frame determination method for determining whether or not the encoded frame is a still frame, which is an image encoding method for obtaining a difference value between the frame and a reference frame and encoding the difference value And a high image quality code for performing still frame encoding in which at least one frame among the frames determined to be still frames in the still frame determination step has higher image quality than the encoding of other frames. And a converting step. This allows
By specifying the encoded frame that is a still frame and performing high image quality encoding on at least one frame, it is possible to increase the amount of generated code by encoding all still frames with high image quality as in the conventional case. The image quality can be suppressed and the quality of the subsequent frames can be improved.

【0021】また、本発明の請求項2にかかる画像符号
化方法は、請求項1に記載の画像符号化方法において、
上記静止フレーム判定ステップは、上記被符号化フレー
ムと上記参照フレームとの差分値に基づいて上記判定を
行うことを特徴とするものである。これにより、静止し
始めたフレームの次フレームを特定し、該次フレームに
対して高画質符号化を行うことができ、その結果、後続
のフレームも高画質になる。
An image coding method according to claim 2 of the present invention is the image coding method according to claim 1, wherein
The still frame determination step is characterized in that the determination is performed based on a difference value between the encoded frame and the reference frame. As a result, the next frame of the frame that has started to be stationary can be identified, and high quality coding can be performed on the next frame, and as a result, the subsequent frames also have high quality.

【0022】また、本発明の請求項3にかかる画像符号
化方法は、請求項1に記載の画像符号化方法において、
上記高画質符号化ステップは、上記静止フレームと判定
された被符号化フレームに対して静止フレーム符号化を
行うか、あるいは、通常フレーム符号化を行うかを判定
する静止フレーム符号化判定ステップと、上記静止フレ
ーム符号化判定ステップにて判定された符号化方法に基
づいて外部から入力された量子化パラメータの量子化幅
を制御する量子化パラメータ値制御ステップと、上記量
子化パラメータ値制御ステップにて制御された上記量子
化パラメータと上記差分値とを用いて、上記被符号化フ
レームの各マクロブロックがスキップマクロブロックで
あるか否かを判定するスキップマクロブロック判定ステ
ップと、上記スキップマクロブロック判定ステップにて
得られた、上記各マクロブロックの判定結果に基づいて
上記被符号化フレームの符号化を行う符号化ステップ
と、を含むことを特徴とするものである。これにより、
スキップマクロブロックと判定されるマクロブロックの
数が抑制することができ、その結果、発生符号量の増加
を防いで、画質の劣化を生じさせることなく、静止フレ
ームと判断された被符号化フレームを高画質に符号化す
ることができる。
An image coding method according to claim 3 of the present invention is the image coding method according to claim 1, wherein
The high image quality encoding step includes a still frame encoding determination step of determining whether to perform still frame encoding on the encoded frame determined to be the still frame, or to perform normal frame encoding, In the quantization parameter value control step for controlling the quantization width of the quantization parameter input from the outside based on the encoding method determined in the still frame encoding determination step, and in the quantization parameter value control step A skip macroblock determining step of determining whether each macroblock of the encoded frame is a skip macroblock using the controlled quantization parameter and the difference value, and the skip macroblock determining step Based on the judgment result of each macro block obtained in A coding step of coding arm, in which characterized in that it comprises a. This allows
The number of macroblocks that are determined to be skip macroblocks can be suppressed, and as a result, it is possible to prevent an increase in the amount of generated code and prevent encoded frames that have been determined to be still frames without degrading image quality. It can be encoded with high image quality.

【0023】また、本発明の請求項4にかかる画像符号
化方法は、請求項1に記載の画像符号化方法において、
上記高画質符号化ステップは、上記静止フレームと判定
された被符号化フレームに対して静止フレーム符号化を
行うか、あるいは、通常フレーム符号化を行うかを判定
する静止フレーム符号化判定ステップと、上記静止フレ
ーム符号化判定ステップにて上記被符号化フレームは静
止フレーム符号化をしないフレームであると判定された
場合、上記被符号化フレームと参照フレームとの差分値
と所定の閾値とを用いて該被符号化フレームの各マクロ
ブロックがスキップマクロブロックであるか否かを判定
し、上記静止フレーム符号化判定ステップにて上記被符
号化フレームは静止フレーム符号化をするフレームであ
ると判定された場合、上記所定の閾値を小さくなるよう
制御し、該制御された閾値と上記被符号化フレームと参
照フレームとの差分値とを用いて該被符号化フレームの
各マクロブロックがスキップマクロブロックであるか否
かを判定するスキップマクロブロック判定ステップと、
上記スキップマクロブロック判定ステップにて得られ
た、上記各マクロブロックの判定結果に基づいて上記被
符号化フレームの符号化を行う符号化ステップと、を含
むことを特徴とするものである。これにより、スキップ
マクロブロックと判定されるマクロブロックの数が抑制
することができ、その結果、発生符号量の増加を防い
で、画質の劣化を生じさせることなく、静止フレームと
判断された被符号化フレームを高画質に符号化すること
ができる。
An image coding method according to claim 4 of the present invention is the image coding method according to claim 1, wherein
The high image quality encoding step includes a still frame encoding determination step of determining whether to perform still frame encoding on the encoded frame determined to be the still frame, or to perform normal frame encoding, When it is determined in the still frame coding determination step that the coded frame is a frame in which still frame coding is not performed, a difference value between the coded frame and a reference frame and a predetermined threshold value are used. It is determined whether or not each macroblock of the encoded frame is a skip macroblock, and it is determined in the still frame encoding determination step that the encoded frame is a frame for still frame encoding. In this case, the predetermined threshold is controlled to be small, and the difference between the controlled threshold and the encoded frame and the reference frame is A skip macro-block determination step of determining whether each macroblock of 該被 coded frame is a skip macro-block by using a value,
An encoding step of encoding the frame to be encoded based on the determination result of each macroblock obtained in the skip macroblock determination step. As a result, the number of macroblocks that are determined to be skip macroblocks can be suppressed, and as a result, it is possible to prevent an increase in the amount of generated code and prevent a coded code that is determined to be a still frame without degrading image quality. The encoded frame can be encoded with high image quality.

【0024】また、本発明の請求項5にかかる画像符号
化方法は、請求項1に記載の画像符号化方法において、
上記被符号化フレームの前フレームの符号化において決
定された上記被符号化フレームの符号化情報に基づいて
上記被符号化フレームの次フレームが、静止フレーム符
号化を行うフレームであるか、あるいは通常フレーム符
号化を行うフレームであるかを判定する静止フレーム符
号化判定ステップと、上記静止フレーム判定ステップに
て判定された符号化方法に基づいて外部から入力された
量子化パラメータの量子化幅を制御する量子化パラメー
タ値制御ステップと、上記量子化パラメータ値制御ステ
ップにて制御された上記量子化パラメータと上記差分値
とを用いて、上記被符号化フレームの各マクロブロック
がスキップマクロブロックであるか否かを判定するスキ
ップマクロブロック判定ステップと、上記静止フレーム
符号化判定ステップの判定結果に基づいて上記被符号化
フレームの次フレームの符号化方法を決定し、かつ、上
記被符号化フレームの符号化を上記前フレームの符号化
において決定された符号化情報に基づいて行う符号化ス
テップとを含むことを特徴とするものである。これによ
り、量子化誤差の少ない、高画質符号化を行うことがで
きる。
The image coding method according to claim 5 of the present invention is the image coding method according to claim 1, wherein
Whether the next frame of the coded frame based on the coding information of the coded frame determined in the coding of the preceding frame of the coded frame is a frame for still frame coding, or Still frame coding determination step of determining whether or not the frame is a frame to be frame-encoded, and control of quantization width of quantization parameter input from the outside based on the encoding method determined in the still frame determination step Whether each macroblock of the coded frame is a skip macroblock by using the quantization parameter value control step for performing the quantization parameter value control step, the quantization parameter controlled in the quantization parameter value control step, and the difference value. The skip macroblock determination step for determining whether or not there is the still frame coding determination step Determines the encoding method of the next frame of the encoded frame based on the determination result of, and performs the encoding of the encoded frame based on the encoding information determined in the encoding of the previous frame And an encoding step. As a result, it is possible to perform high image quality encoding with less quantization error.

【0025】また、本発明の請求項6にかかる画像符号
化方法は、請求項1に記載の画像符号化方法において、
上記静止フレーム判定ステップは、上記参照フレームの
各マクロブロックが有する、当該マクロブロックの符号
化方法をあらわす符号化タイプに基づいて行うことを特
徴とするものである。これにより、被符号化フレームの
静止フレーム判定における演算量を抑えることができ、
さらに、静止し始めたフレームの2フレーム後のフレー
ムを特定し、該フレームのみを高画質に符号化し、その
結果、従来よりも発生符号量を抑えることができ、か
つ、後続のフレームも高画質となる。
An image coding method according to claim 6 of the present invention is the image coding method according to claim 1, wherein
The still frame determining step is performed based on a coding type that represents a coding method of the macroblock of each macroblock of the reference frame. As a result, it is possible to reduce the calculation amount in the still frame determination of the encoded frame,
In addition, the frame two frames after the frame that has started to be stationary is specified, and only that frame is encoded with high image quality. As a result, the generated code amount can be suppressed more than before, and the subsequent frames also have high image quality. Becomes

【0026】また、本発明の請求項7にかかる画像符号
化方法は、請求項6に記載の画像符号化方法において、
上記各マクロブロックの符号化タイプは、上記被符号化
マクロブロックがスキップマクロブロックであるか否か
を示す第1のフラグと、上記被符号化マクロブロックが
スキップマクロブロックのとき、被符号化フレームが静
止フレーム符号化であるか否かを示す第2,第3のフラ
グ、の3値のフラグであり、被符号化マクロブロックが
参照するマクロブロックの上記フラグ値に応じて被符号
化マクロブロックのフラグは更新されるものとすること
を特徴とするものである。これにより、一度、高画質符
号化されたマクロブロックは以降の処理で高画質符号化
されることなく、スキップマクロブロックと判断され、
その結果、最初のフレームのみを高画質に符号化するこ
とができ、また、被符号化フレームの静止フレーム判定
における演算量を抑えることができる。
An image coding method according to claim 7 of the present invention is the image coding method according to claim 6, wherein
The coding type of each macroblock includes a first flag indicating whether the coded macroblock is a skip macroblock, and a coded frame when the coded macroblock is a skip macroblock. Is a ternary flag indicating whether or not is the still frame coding, and the coded macroblock is coded according to the flag value of the macroblock referred to by the coded macroblock. Flag is to be updated. As a result, once the macroblock that has been encoded with high image quality is determined to be a skip macroblock without being encoded with high image quality in the subsequent processing,
As a result, only the first frame can be encoded with high image quality, and the amount of calculation in the still frame determination of the encoded frame can be suppressed.

【0027】また、本発明の請求項8にかかる画像符号
化方法は、請求項1に記載の画像符号化方法において、
上記高画質符号化ステップは、画面内予測符号化のみを
行うIフレームに対しては高画質符号化をしないことを
特徴とするものである。これにより、画面内予測符号化
を行うフレームに対しては、静止フレーム符号化を行わ
ず、その結果、量子化幅を小さくする必要がなくなり、
発生符号量の増加をより抑えることができる。
An image coding method according to claim 8 of the present invention is the image coding method according to claim 1, wherein
The high image quality encoding step is characterized in that the high image quality encoding is not performed on the I frame for which only intra-picture predictive encoding is performed. As a result, still frame coding is not performed for a frame for which intra-frame predictive coding is performed, and as a result, it is not necessary to reduce the quantization width,
It is possible to further suppress an increase in the generated code amount.

【0028】また、本発明の請求項9にかかる画像符号
化方法は、請求項1に記載の画像符号化方法において、
上記高画質符号化ステップは、画面内予測符号化を行う
マクロブロックに対して高画質符号化をしないことを特
徴とするものである。これにより、画面内予測符号化を
行うマクロブロックに対しては、静止フレーム符号化を
行わず、その結果、量子化幅を小さくする必要がなくな
り、発生符号量の増加をより抑えることができる。
An image coding method according to claim 9 of the present invention is the image coding method according to claim 1, wherein
The high image quality encoding step is characterized in that the high image quality encoding is not performed on the macroblock for which the intra-picture predictive encoding is performed. As a result, still frame coding is not performed for macroblocks for which intra-picture predictive coding is performed, and as a result, there is no need to reduce the quantization width, and the increase in the amount of generated code can be further suppressed.

【0029】また、本発明の請求項10にかかる画像符
号化方法は、符号化対象である被符号化フレームを処理
単位であるマクロブロックにブロック化し、当該フレー
ムと参照フレームとの差分値を求め、該差分値を符号化
する画像符号化方法であって、上記被符号化フレームの
各マクロブロックが静止しているか否かを画面内予測す
る静止マクロブロック判定ステップと、上記静止マクロ
ブロック判定ステップにて静止していると判定されたマ
クロブロックに対し、他のマクロブロックの符号化に比
べて高画質に符号化するマクロブロック符号化ステップ
と、を含むことを特徴とするものである。これにより、
符号量の発生を押さえ、かつ、高画質に符号化すること
ができる。
According to a tenth aspect of the image encoding method of the present invention, the encoded frame to be encoded is divided into macroblocks, which are processing units, and the difference value between the frame and the reference frame is obtained. An image encoding method for encoding the difference value, the still macroblock determining step of predicting whether or not each macroblock of the encoded frame is still, and the still macroblock determining step The macroblock coding step of coding a macroblock determined to be still in 1. with higher image quality than the coding of other macroblocks is included. This allows
It is possible to suppress the generation of the code amount and perform encoding with high image quality.

【0030】また、本発明の請求項11にかかる画像符
号化方法は、請求項1に記載の画像符号化方法におい
て、上記高画質符号化ステップは、上記静止フレームと
判断された被符号化フレームにおいて、各マクロブロッ
クが静止しているか否かを画面内予測する静止マクロブ
ロック判定ステップと、上記静止マクロブロック判定ス
テップにて静止していると判定されたマクロブロックに
対し、他のマクロブロックの符号化に比べて高画質に符
号化するマクロブロック符号化ステップと、を含むこと
を特徴とするものである。これにより、静止フレーム符
号化するフレーム内においても量子化パラメータの変動
による符号化誤差の少ない高画質な符号化を行うことが
できる。
An image coding method according to claim 11 of the present invention is the image coding method according to claim 1, wherein the high image quality coding step is a frame to be coded judged to be the still frame. In the still macroblock determination step of predicting whether or not each macroblock is still in the screen, and for the macroblock determined to be still in the still macroblock determination step, other macroblocks And a macroblock coding step for coding with high image quality as compared with coding. As a result, it is possible to perform high-quality coding with few coding errors due to fluctuations in the quantization parameter even in a frame in which still frame coding is performed.

【0031】また、本発明の請求項12にかかる画像符
号化装置は、符号化対象である被符号化フレームを処理
単位であるマクロブロックにブロック化し、上記被符号
化フレームと参照フレームとの差分値を求め、該差分値
に基づいて上記被符号化フレームの符号化を行う画像符
号化装置であって、上記差分値に基づいて、上記被符号
化フレームが静止フレームであるか否かを判断し、上記
静止フレームであると判断した上記被符号化フレーム
が、他のフレームの符号化に比べて高画質に符号化する
静止フレーム符号化を行うフレームであるか、あるいは
通常フレーム符号化を行うフレームであるかを判定する
静止フレーム符号化判定手段と、上記静止フレーム符号
化判定手段の出力信号に基づいて外部から入力された量
子化パラメータの量子化幅を制御する量子化パラメータ
値制御手段と、上記量子化パラメータ値制御手段により
制御された量子化パラメータと上記差分値を用いて、上
記被符号化フレームの各マクロブロックがスキップマク
ロブロックであるか否かを判定するスキップマクロブロ
ック判定手段と、上記スキップマクロブロック判定手段
の出力に基づいて上記被符号化フレームの符号化を行う
符号化手段と、を備えたことを特徴とするものである。
これにより、スキップマクロブロックと判定されるマク
ロブロックの数を抑制し、静止し始めたフレームの次の
フレームを高画質に符号化することができ、その結果、
従来よりも発生符号量を抑えることができ、かつ、後続
のフレームも画質を改善することができる。
The image coding apparatus according to claim 12 of the present invention blocks the coded frame to be coded into macroblocks as a processing unit, and calculates the difference between the coded frame and the reference frame. An image coding apparatus that obtains a value and encodes the encoded frame based on the difference value, and determines whether the encoded frame is a still frame based on the difference value. If the frame to be coded, which is determined to be the still frame, is a frame to be subjected to still frame coding which is coded with higher image quality than the coding to other frames, or is subjected to normal frame coding. Still frame coding determining means for determining whether the frame is a frame, and the amount of quantization parameter input from the outside based on the output signal of the still frame coding determining means. By using the quantization parameter value control means for controlling the quantization width, the quantization parameter controlled by the quantization parameter value control means and the difference value, each macroblock of the encoded frame is a skip macroblock. It is characterized by further comprising: skip macroblock determining means for determining whether or not the encoding target frame is encoded based on an output of the skip macroblock determining means. .
As a result, the number of macroblocks determined to be skip macroblocks can be suppressed, and the frame next to the frame that has started to be stationary can be encoded with high image quality.
It is possible to suppress the amount of generated codes as compared with the conventional technique and improve the image quality of subsequent frames.

【0032】また、本発明の請求項13にかかる画像符
号化装置は、請求項12に記載の画像符号化装置におい
て、上記符号化手段は、上記量子化パラメータ値制御手
段により制御された量子化パラメータを用いて上記符号
化を行うことを特徴とするものである。これにより、量
子化誤差の少ない、高画質符号化を行うことができる。
An image coding apparatus according to a thirteenth aspect of the present invention is the image coding apparatus according to the twelfth aspect, wherein the coding means is a quantization controlled by the quantization parameter value control means. The above-mentioned encoding is performed using a parameter. As a result, it is possible to perform high image quality encoding with less quantization error.

【0033】また、本発明の請求項14にかかる画像符
号化装置は、符号化対象である被符号化フレームを処理
単位であるマクロブロックにブロック化し、上記被符号
化フレームと符号化済みの参照フレームとの差分値を求
め、該差分値に基づいて上記被符号化フレームの符号化
を行う画像符号化装置であって、上記差分値に基づいて
上記被符号化フレームが静止フレームであるか否かを判
断し、静止フレームであると判断した上記被符号化フレ
ームが、他のフレームに比べて高画質に符号化する静止
フレーム符号化を行うフレームであるか、あるいは通常
フレーム符号化を行うフレームであるかを判定する静止
フレーム符号化判定手段と、上記静止フレーム符号化判
定手段の出力と上記差分値を用いて、上記被符号化フレ
ームの各マクロブロックがスキップマクロブロックであ
るか否かを判定するスキップマクロブロック判定手段
と、上記スキップマクロブロック判定手段の出力に基づ
いて上記被符号化フレームの符号化を行う符号化手段
と、を備えたことを特徴とするものである。これによ
り、スキップマクロブロックと判定されるマクロブロッ
クの数を抑制し、静止し始めたフレームの次のフレーム
を高画質に符号化することができ、その結果、従来より
も発生符号量を抑えることができ、かつ、後続のフレー
ムも高画質となる。
According to a fourteenth aspect of the present invention, the image coding apparatus blocks the coded frame to be coded into macroblocks, which are processing units, and refers to the coded frame and the coded reference. An image coding apparatus that obtains a difference value from a frame and encodes the coded frame based on the difference value, and determines whether the coded frame is a still frame based on the difference value. Whether the frame to be coded, which is determined to be a still frame, is a frame for performing still frame encoding for encoding with higher image quality than other frames, or a frame for performing normal frame encoding Is determined using the still frame coding determination means, the output of the still frame coding determination means, and the difference value. A skip macroblock determining unit that determines whether or not the block is a skip macroblock, and an encoding unit that encodes the encoded frame based on the output of the skip macroblock determining unit. It is characterized by that. As a result, the number of macroblocks that are determined to be skip macroblocks can be suppressed, and the frame next to the frame that has started to be stationary can be encoded with high image quality. As a result, the generated code amount can be suppressed more than before. And the subsequent frames also have high image quality.

【0034】また、本発明の請求項15にかかる画像符
号化装置は、請求項14に記載の画像符号化装置におい
て、上記静止フレーム符号化判定手段の出力信号に基づ
いて外部から入力された量子化パラメータの量子化幅を
制御する量子化パラメータ値制御手段を備え、上記符号
化手段は、上記量子化パラメータ値制御手段により制御
された量子化パラメータを用いて上記被符号化フレーム
の符号化を行うことを特徴とするものである。これによ
り、量子化誤差の少ない、高画質符号化を行うことがで
きる。
An image coding apparatus according to a fifteenth aspect of the present invention is the image coding apparatus according to the fourteenth aspect, wherein the quantum input from the outside based on the output signal of the still frame coding determination means. A quantization parameter value control means for controlling the quantization width of the quantization parameter, wherein the encoding means encodes the encoded frame using the quantization parameter controlled by the quantization parameter value control means. It is characterized by performing. As a result, it is possible to perform high image quality encoding with less quantization error.

【0035】また、本発明の請求項16にかかる画像符
号化装置は、符号化対象である被符号化フレームを処理
単位であるマクロブロックにブロック化し、上記被符号
化フレームと参照フレームとの差分値を求め、該差分値
に基づいて上記被符号化フレームの符号化を行う画像符
号化装置であって、上記被符号化フレームの各マクロブ
ロックが静止しているか否かを画面内予測を行い、当該
マクロブロックの近傍マクロブロックがスキップマクロ
ブロックであるとき、当該マクロブロックを静止マクロ
ブロックと判定するスキップマクロブロック判定手段
と、上記スキップマクロブロック判定手段にて静止マク
ロブロックと判定された当該マクロブロックの量子化パ
ラメータ値を、外部から入力された量子化パラメータ値
よりも小さくなるよう制御する量子化パラメータ値制御
手段と、上記量子化パラメータ値制御手段により制御さ
れた量子化パラメータを用いて上記静止マクロブロック
と判定されたマクロブロックに対し、他のマクロブロッ
クの符号化に比べ高画質に符号化する符号化手段と、を
備えたことを特徴とするものである。これにより、符号
量の発生を押さえ、かつ、高画質に符号化することがで
きる。
According to a sixteenth aspect of the present invention, the image coding apparatus blocks the coded frame to be coded into macroblocks which are processing units, and the difference between the coded frame and the reference frame. An image coding apparatus that obtains a value and encodes the encoded frame based on the difference value, and performs intra-screen prediction as to whether or not each macroblock of the encoded frame is stationary. , A skip macroblock determining unit that determines the macroblock as a still macroblock when a macroblock in the vicinity of the macroblock is a skip macroblock, and a macro that is determined as a still macroblock by the skip macroblock determining unit. Make the quantization parameter value of the block smaller than the quantization parameter value input from the outside. The quantization parameter value control means to be controlled and the macroblock determined to be the still macroblock using the quantization parameter controlled by the quantization parameter value control means are higher than those of other macroblocks. And a coding means for coding in image quality. As a result, it is possible to suppress the generation of the code amount and perform encoding with high image quality.

【0036】また、本発明の請求項17にかかる画像符
号化装置は、符号化対象である被符号化フレームを処理
単位であるマクロブロックにブロック化し、当該フレー
ムと参照フレームとの差分値を求め、該差分値を符号化
する画像符号化装置であって、上記被符号化フレームの
前フレームの符号化において決定された上記被符号化フ
レームの符号化情報に基づいて上記被符号化フレームの
次フレームが、他のフレームの符号化に比べて高画質に
符号化する静止フレーム符号化を行うフレームである
か、あるいは通常フレーム符号化を行うフレームである
かを判定する静止フレーム符号化判定手段と、上記静止
フレーム判定手段の出力に基づいて外部から入力された
量子化パラメータの量子化幅を制御する量子化パラメー
タ値制御手段と、上記差分値と上記量子化パラメータ値
制御手段により制御された量子化パラメータとを用い
て、上記被符号化フレームの各マクロブロックがスキッ
プマクロブロックであるか否かを判定するスキップマク
ロブロック判定手段と、上記静止フレーム符号化判定手
段の判定結果に基づいて上記被符号化フレームの次フレ
ームの符号化方法を決定し、上記前フレームの符号化に
おいて決定された符号化情報に基づいて上記被符号化フ
レームの符号化を行う符号化手段と、を備えたことを特
徴とするものである。これにより、スキップマクロブロ
ックと判定されるマクロブロックの数を抑制し、静止し
始めたフレームの次のフレームを高画質に符号化するこ
とができ、その結果、従来よりも発生符号量を抑えるこ
とができ、かつ、後続のフレームも高画質となる。
An image coding apparatus according to claim 17 of the present invention divides a coded frame to be coded into macroblocks as a processing unit and obtains a difference value between the frame and the reference frame. An image encoding device for encoding the difference value, wherein the next frame of the encoded frame is based on the encoding information of the encoded frame determined in the encoding of the previous frame of the encoded frame. Still frame coding determining means for determining whether the frame is a frame for performing still frame coding for coding with higher image quality than that for coding for other frames, or a frame for performing normal frame coding. A quantization parameter value control means for controlling the quantization width of a quantization parameter input from the outside based on the output of the still frame determination means, Using the difference value and the quantization parameter controlled by the quantization parameter value control means, skip macroblock determination means for determining whether each macroblock of the encoded frame is a skip macroblock, The encoding method of the next frame of the encoded frame is determined based on the determination result of the still frame encoding determination means, and the encoded frame is determined based on the encoding information determined in the encoding of the previous frame. And encoding means for performing encoding of. As a result, the number of macroblocks that are determined to be skip macroblocks can be suppressed, and the frame next to the frame that has started to be stationary can be encoded with high image quality. As a result, the generated code amount can be suppressed more than before. And the subsequent frames also have high image quality.

【0037】また、本発明の請求項18にかかる画像符
号化装置は、請求項17に記載の画像符号化装置におい
て、上記符号化手段は、上記量子化パラメータ値制御手
段により制御された量子化パラメータを用いて上記符号
化を行うことを特徴とするものである。これにより、量
子化誤差の少ない、高画質符号化を行うことができる。
The image coding apparatus according to claim 18 of the present invention is the image coding apparatus according to claim 17, wherein the coding means is a quantization controlled by the quantization parameter value control means. The above-mentioned encoding is performed using a parameter. As a result, it is possible to perform high image quality encoding with less quantization error.

【0038】また、本発明の請求項19にかかる画像符
号化装置は、請求項17に記載の画像符号化装置におい
て、上記スキップマクロブロック判定手段は、外部から
の上記被符号化フレームの符号化方法を示すフレーム符
号化信号の入力により上記スキップマクロブロックの判
定処理を開始し、上記符号化手段は、上記フレーム符号
化信号が画面内予測符号化方法を示す信号である場合、
上記被符号化フレームの各マクロブロックの符号化を行
い、上記フレーム符号化信号が画面内予測符号化方法を
示す信号でない場合、上記差分値の符号化を行うことを
特徴とするものである。これにより、画面内予測符号化
を行うフレーム及びマクロブロックに対しては、静止フ
レーム符号化を行わず、その結果、量子化幅を小さくす
る必要がなくなり、発生符号量の増加をより抑えること
ができる。
An image coding apparatus according to a nineteenth aspect of the present invention is the image coding apparatus according to the seventeenth aspect, wherein the skip macroblock determining means encodes the encoded frame from the outside. Starting the determination processing of the skip macroblock by inputting a frame encoded signal indicating a method, the encoding means, when the frame encoded signal is a signal indicating an intra-frame prediction encoding method,
Each of the macroblocks of the frame to be coded is coded, and when the frame coded signal is not a signal indicating the intra-frame predictive coding method, the difference value is coded. As a result, still frame coding is not performed for frames and macroblocks for which intra-frame predictive coding is performed, and as a result, there is no need to reduce the quantization width, and the increase in the amount of generated code can be further suppressed. it can.

【0039】また、本発明の請求項20にかかる画像符
号化装置は、符号化対象である被符号化フレームを処理
単位であるマクロブロックにブロック化し、当該フレー
ムと参照フレームとの差分値を求め、該差分値を符号化
する画像符号化装置であって、上記差分値と外部から入
力された量子化パラメータとを用いて、上記被符号化フ
レームの各マクロブロックがスキップマクロブロックで
あるか否かを判定するスキップマクロブロック判定手段
と、上記被符号化フレームの前フレームの符号化におい
て決定された上記被符号化フレームの符号化情報に基づ
いて上記被符号化フレームの次フレームが、他のフレー
ムの符号化に比べて高画質に符号化する静止フレーム符
号化を行うフレームであるか、あるいは通常フレーム符
号化を行うフレームであるかを判定する静止フレーム符
号化判定手段と、上記静止フレーム符号化判定手段の判
定結果に基づいて上記被符号化フレームの次フレームの
符号化方法を決定し、上記被符号化フレームの符号化は
上記前フレームの符号化において決定された符号化情報
に基づいて行う符号化手段と、を備えたことを特徴とす
るものである。これにより、次フレーム符号を静止フレ
ーム符号化するか否かの判定処理を簡単に実現すること
ができ、また、スキップマクロブロックと判定されるマ
クロブロックの数を抑制し、静止し始めたフレームの2
フレーム後のフレームを高画質に符号化することがで
き、その結果、従来よりも発生符号量を抑えることがで
き、かつ、後続のフレームも高画質となる。
Further, an image coding apparatus according to claim 20 of the present invention divides a coded frame to be coded into macroblocks which are processing units, and obtains a difference value between the frame and the reference frame. An image encoding apparatus for encoding the difference value, wherein whether each macroblock of the encoded frame is a skip macroblock using the difference value and a quantization parameter input from the outside A skip macroblock determining means for determining whether or not the next frame of the encoded frame is based on the encoding information of the encoded frame determined in the encoding of the preceding frame of the encoded frame, It is a frame that performs still frame encoding that encodes with higher image quality than frame encoding, or a frame that performs normal frame encoding. And the coding method of the next frame of the coded frame based on the judgment result of the still frame coding judging means The encoding is characterized by comprising: an encoding unit that performs the encoding based on the encoding information determined in the encoding of the previous frame. As a result, it is possible to easily realize the determination process of whether or not to encode the next frame code as a still frame, suppress the number of macroblocks determined to be skip macroblocks, and reduce the number of Two
The frame after the frame can be encoded with high image quality, and as a result, the generated code amount can be suppressed more than before, and the subsequent frame also has high image quality.

【0040】また、本発明の請求項21にかかる画像符
号化装置は、請求項20に記載の画像符号化装置におい
て、上記静止フレーム符号化判定手段の出力に基づいて
外部から入力された量子化パラメータの量子化幅を制御
する量子化パラメータ値制御手段を備え、上記符号化手
段は、上記量子化パラメータ値制御手段により制御され
た量子化パラメータを用いて上記符号化を行うことを特
徴とするものである。これにより、量子化誤差の少な
い、高画質符号化を行うことができる。
An image coding apparatus according to a twenty-first aspect of the present invention is the image coding apparatus according to the twentieth aspect, wherein the quantization input from the outside based on the output of the still frame coding determination means. It is characterized in that it comprises a quantization parameter value control means for controlling the quantization width of the parameter, wherein the encoding means performs the encoding using the quantization parameter controlled by the quantization parameter value control means. It is a thing. As a result, it is possible to perform high image quality encoding with less quantization error.

【0041】また、本発明の請求項22にかかる画像符
号化装置は、請求項20に記載の画像符号化装置におい
て、上記スキップマクロブロック判定手段は、外部から
の上記被符号化フレームの符号化方法を示すフレーム符
号化信号の入力により、上記スキップマクロブロックの
判定処理を開始し、上記符号化手段は、上記フレーム符
号化信号が画面内予測符号化方法を示す信号である場
合、上記被符号化フレームの各マクロブロックの符号化
を行い、上記フレーム符号化信号が画面内予測符号化方
法を示す信号でない場合、上記差分値の符号化を行うこ
とを特徴とするものである。これにより、画面内予測符
号化を行うフレーム及びマクロブロックに対しては、静
止フレーム符号化を行わず、その結果、量子化幅を小さ
くする必要がなくなり、発生符号量の増加をより抑える
ことができる。
An image coding apparatus according to a twenty-second aspect of the present invention is the image coding apparatus according to the twentieth aspect, wherein the skip macroblock determining means encodes the encoded frame from the outside. By inputting a frame encoded signal indicating a method, the skip macroblock determination process is started, and the encoding means, when the frame encoded signal is a signal indicating an intra-frame predictive encoding method, the encoded Each of the macroblocks of the encoded frame is encoded, and when the frame encoded signal is not a signal indicating the intra-frame predictive encoding method, the difference value is encoded. As a result, still frame coding is not performed for frames and macroblocks for which intra-frame predictive coding is performed, and as a result, there is no need to reduce the quantization width, and the increase in the amount of generated code can be further suppressed. it can.

【0042】また、本発明の請求項23にかかる画像符
号化プログラムは、符号化対象である被符号化フレーム
を処理単位であるマクロブロックにブロック化し、当該
フレームと参照フレームとの差分値を求め、該差分値を
符号化する処理を、コンピュータにより行うためのプロ
グラムであって、上記被符号化フレームが静止フレーム
であるか否かの判定を行い、該判定の結果、静止フレー
ムと判定されたフレームのうち、少なくとも1フレーム
を、他のフレームの符号化よりも高画質に符号化する高
画質符号化処理をコンピュータにより行うためのプログ
ラムであることを特徴とするものである。これにより、
静止フレームである被符号化フレームを特定し、少なく
とも1フレームに対して高画質符号化を行うことがで
き、従来のように全ての静止フレームを高画質に符号化
することによる発生符号量の増加を抑え、かつ、後続の
フレームも高画質にすることができる。
Further, the image coding program according to claim 23 of the present invention divides the coded frame to be coded into macroblocks as a processing unit, and obtains a difference value between the frame and the reference frame. Is a program for performing the process of encoding the difference value by a computer, and it is determined whether or not the encoded frame is a still frame. As a result of the determination, it is determined that the frame is a still frame. The program is characterized by being a program for causing a computer to perform a high image quality encoding process of encoding at least one of the frames to have a higher image quality than the encoding of other frames. This allows
It is possible to specify a frame to be coded that is a still frame and perform high-quality encoding on at least one frame, and increase the amount of generated code by encoding all still frames with high image quality as in the past. It is possible to suppress the image quality and to make the subsequent frames have high image quality.

【0043】[0043]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照しながら説明する。なお、ここで示す実施
の形態はあくまでも一例であって、必ずしもこの実施の
形態に限定されるものではない。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. The embodiment shown here is merely an example, and the present invention is not necessarily limited to this embodiment.

【0044】(実施の形態1)以下に、本発明の実施の
形態1による画像符号化装置及び画像符号化方法につい
て説明する。本実施の形態1による画像符号化装置10
0は、符号化対象の画像信号を1度の入力で符号化する
1パスコーディングであって、符号化しようとするフレ
ームが、静止しているフレームであるかを判定し、静止
し始めたフレーム(静止フレームと判定されたフレーム
の直前フレーム)の次のフレーム(1フレーム後)にお
いて他のフレームに比べて高画質の符号化(静止フレー
ム符号化)を行うものである。
(Embodiment 1) An image coding apparatus and an image coding method according to Embodiment 1 of the present invention will be described below. Image coding apparatus 10 according to the first embodiment
0 is one-pass coding that encodes the image signal to be encoded with one input, and determines whether the frame to be encoded is a still frame and starts the still frame. In a frame (one frame later) subsequent to (a frame immediately before a frame determined to be a still frame), high-quality coding (still frame coding) is performed as compared with other frames.

【0045】図1は、本実施の形態1にかかる画像符号
化装置100の構成を示すブロック図である。なお、図
において、図16と同一または相当する構成要素につい
ては同じ符号を用い、その説明を省略する。
FIG. 1 is a block diagram showing the configuration of the image coding apparatus 100 according to the first embodiment. In the figure, the same or corresponding components as those in FIG. 16 are designated by the same reference numerals, and the description thereof will be omitted.

【0046】図1において、15は静止フレーム符号化
判定器であり、当該フレームが静止フレーム符号化を行
うフレームであるか、通常(従来法と同様)の符号化を
行うフレームであるかを判定する。16は量子化パラメ
ータ値制御器であり、静止フレーム符号化判定器15の
出力に基づいて外部から入力された量子化パラメータの
量子化幅を制御する。
In FIG. 1, reference numeral 15 denotes a still frame coding determiner, which determines whether the frame is a frame for still frame coding or a frame for normal (similar to the conventional method) coding. To do. A quantization parameter value controller 16 controls the quantization width of the quantization parameter input from the outside based on the output of the still frame coding determiner 15.

【0047】以上のように構成された画像符号化装置1
00の動作について説明する。まず、符号化しようとす
るフレームの輝度・色差信号は、ブロック化器1により
処理単位であるマクロブロックに分割され、当該フレー
ムと参照フレームとの差分値s1が減算手段2により求
められ、当該符号化フレームが静止フレーム(直前の符
号化フレームに比べて完全に静止しているフレーム、も
しくは静止部分の多いフレーム)であるかが静止フレー
ム符号化判定器15にて判定され、さらに、静止フレー
ムであると判定されたフレームについて、静止フレーム
符号化を行うか、もしくは通常のフレーム符号化を行う
かが判定される。この判定結果(静止フレーム符号化判
定器15の出力)に基づいて外部から入力された量子化
パラメータの量子化幅は量子化パラメータ値制御器16
により制御され、該制御された量子化パラメータs3
(量子化パラメータ値制御器16の出力)はスキップマ
クロブロック判定器4に入力される。
The image coding apparatus 1 configured as described above
The operation of 00 will be described. First, the luminance / color difference signal of the frame to be encoded is divided into macroblocks as a processing unit by the blocker 1, the difference value s1 between the frame and the reference frame is obtained by the subtraction unit 2, and the code The still frame coding determiner 15 determines whether the encoded frame is a still frame (a frame that is completely still as compared to the immediately preceding encoded frame, or a frame that has many still portions). For a frame determined to be present, it is determined whether to perform still frame encoding or normal frame encoding. The quantization width of the quantization parameter input from the outside based on this determination result (output of the still frame coding determination unit 15) is the quantization parameter value controller 16
And the controlled quantization parameter s3
(The output of the quantization parameter value controller 16) is input to the skip macroblock determiner 4.

【0048】スキップマクロブロック判定器4では、差
分値s1と量子化パラメータs3とを用いて、当該マク
ロブロックがスキップマクロブロックであるか否かが判
定される。
The skip macroblock determiner 4 uses the difference value s1 and the quantization parameter s3 to determine whether the macroblock is a skip macroblock.

【0049】上記スキップマクロブロック判定器4によ
り当該マクロブロックがスキップマクロブロックでない
と判定された場合、スイッチ3をONにして差分値s1
を圧縮符号化手段5へ出力し、該差分値s1は圧縮符号
化手段5内の周波数変換器6により周波数領域信号に変
換される。そして、周波数領域信号は、量子化パラメー
タ値制御器16から出力された量子化パラメータs3を
用いて量子化器7により量子化され、さらに、量子化器
7の出力(量子化係数)は可変長符号化器8により可変
長符号化される。なお、量子化器7の出力は、局所復号
化手段9によって局所復号化され、さらに局所復号化さ
れたデータは、局所予測画像生成手段12にて予測画像
(予測マクロブロック)生成に用いられる。
When the skip macro block determiner 4 determines that the macro block is not the skip macro block, the switch 3 is turned on and the difference value s1
To the compression coding means 5 and the difference value s1 is converted into a frequency domain signal by the frequency converter 6 in the compression coding means 5. The frequency domain signal is quantized by the quantizer 7 using the quantization parameter s3 output from the quantization parameter value controller 16, and the output (quantization coefficient) of the quantizer 7 has a variable length. Variable-length coding is performed by the encoder 8. The output of the quantizer 7 is locally decoded by the local decoding unit 9, and the locally decoded data is used by the local prediction image generation unit 12 to generate a prediction image (prediction macroblock).

【0050】一方、上記スキップマクロブロック判定器
4により当該マクロブロックがスキップマクロブロック
であると判定された場合、スキップマクロブロック判定
器4から可変長符号化器8に対してスキップマクロブロ
ック信号s2が出力され、可変長符号化器8にて、他の
マクロブロックの差分信号を可変長符号化したデータと
多重化され、符号列として出力される。
On the other hand, when the skip macroblock determiner 4 determines that the macroblock is a skip macroblock, the skip macroblock signal s2 is sent from the skip macroblock determiner 4 to the variable length encoder 8. The data is output, and the variable length encoder 8 multiplexes the differential signals of the other macroblocks with the variable length encoded data, and outputs the multiplexed signal as a code string.

【0051】ここで、静止フレーム符号化判定器15の
動作について詳細に説明する。まず、静止フレーム符号
化判定器15による静止フレーム判定方法について図2
を用いて詳細に説明する。
Here, the operation of the still frame coding decision unit 15 will be described in detail. First, a still frame determination method by the still frame coding determination unit 15 will be described with reference to FIG.
Will be described in detail.

【0052】図2において、符号化する画像の各フレー
ム201〜208を示すものであり、フレーム201か
ら順に符号化される。なお、フレーム203〜208は
画面間予測符号化を行う静止フレームとし、フレーム2
03〜205およびフレーム208は前方向予測(過去
のフレームから予測を行う)フレーム(Pフレーム)、
フレーム206、207は双方向予測(過去と未来もし
くは、いずれかのフレームから予測を行う)フレーム
(Bフレーム)とする。それぞれのフレームは矢印で示
すフレーム、例えば、フレーム204ならフレーム20
3を参照フレームとする。
FIG. 2 shows each of frames 201 to 208 of an image to be encoded, which are encoded in order from the frame 201. It should be noted that the frames 203 to 208 are still frames for which inter-frame predictive coding is performed, and the frame 2
03-205 and frame 208 are forward prediction frames (prediction is performed from past frames) frames (P frames),
The frames 206 and 207 are bidirectional prediction frames (prediction is made from past or future or any one of the frames) (B frames). Each frame is a frame indicated by an arrow, for example, a frame 204 is a frame 20.
3 is a reference frame.

【0053】静止フレーム符号化判定器15は、Pフレ
ームであるフレーム204の各マクロブロック符号化の
際、フレーム203を参照フレームとし、対応するマク
ロブロックとの差分値を符号化する。このとき、当該フ
レームの差分値の絶対値和が小さい場合は、当該フレー
ムは静止していると判断する。同様に、フレーム205
の符号化においてはフレーム204を参照し、フレーム
208の符号化においてはフレーム205を参照し、B
フレームであるフレーム206,207の符号化におい
てはフレーム208を参照し、対応するマクロブロック
との差分値を符号化する。
The still frame coding determiner 15 uses the frame 203 as a reference frame when coding each macroblock of the frame 204 which is a P frame, and codes the difference value from the corresponding macroblock. At this time, if the sum of the absolute values of the difference values of the frame is small, it is determined that the frame is stationary. Similarly, frame 205
The frame 204 is referred to in the encoding of B, the frame 205 is referred to in the encoding of frame 208, and B is referred to.
When encoding the frames 206 and 207 which are frames, the frame 208 is referred to and the difference value from the corresponding macroblock is encoded.

【0054】このように、静止フレーム符号化判定器1
5は、当該フレームと参照フレームとの差分値の絶対値
和が所定の閾値より小さいとき、当該フレームを静止フ
レームと判断する。従って、静止フレームと判断される
のは、画像が静止してから最短1フレーム後であり、図
2においては、最初の静止フレームがフレーム204で
あり、画像の静止が続くフレーム205〜208は後続
の静止フレームとなる。
In this way, the still frame coding decision unit 1
5 determines that the frame is a still frame when the absolute value sum of the difference values between the frame and the reference frame is smaller than a predetermined threshold. Therefore, a still frame is determined to be one frame at the shortest after the image has stopped. In FIG. 2, the first still frame is the frame 204, and the frames 205 to 208 in which the still image continues are followed. It becomes the still frame of.

【0055】次に、上記静止フレームの判定において静
止フレームと判断されたフレームに対し、静止フレーム
符号化を行うか、もしくは通常フレーム符号化を行うか
の符号化判定方法について図3を用いて詳細に説明す
る。ここでは、符号化判定に用いるFLAGの値を0お
よび1を用いて説明するが、これに限定する必要はな
い。
Next, with reference to FIG. 3, a detailed description will be given of an encoding determination method for determining whether to perform still frame encoding or normal frame encoding on a frame determined to be a still frame in the still frame determination. Explained. Here, the value of FLAG used for the coding determination will be described using 0 and 1, but the value is not limited to this.

【0056】静止フレーム符号化判定器15は、まず、
当該フレームと参照フレームとの画面間差分の絶対値和
Yに対して、その値が所定の方法で決定された値THR
aより小さいか否かを判定する(ステップS303)。
The still frame coding determiner 15 first
The value THR determined by a predetermined method with respect to the sum Y of the absolute values of the differences between the screens of the frame and the reference frame
It is determined whether it is smaller than a (step S303).

【0057】上記ステップS303において、画面間差
分の絶対値和Yが閾値THRa以上の場合、当該フレー
ムは通常画面間予測符号化するものとし(ステップS3
04)、静止フレーム符号化を判定する為のFLAGを
0に更新する(ステップS305)。
In step S303, if the sum Y of absolute values of inter-screen differences is equal to or greater than the threshold value THRa, the frame is normally subjected to inter-screen predictive coding (step S3).
04), FLAG for determining still frame coding is updated to 0 (step S305).

【0058】一方、ステップS303において、画面間
差分の絶対値和Yが閾値THRaより小さい場合、静止
フレーム符号化を判定する為のFLAGが0であるか否
かを判定する(ステップS306)。FLAGが0でな
い場合、当該フレームを通常画面間予測符号化するもの
とする(ステップS307)。FLAGが0であった場
合、当該フレームは静止フレーム符号化するものとし
(ステップS308)、静止フレーム符号化を判定する
為のFLAGを1に更新する(ステップS309)。な
お、静止フレーム符号化を判定する為のFLAGは初期
値を0とし、静止フレーム符号化される時点でFLAG
は1に更新され、画像が静止している間(静止フレーム
の間)はこの値が更新されることはない。そして、静止
フレームでないと判断された時点でFLAGは0に更新
され、次の静止フレームまでこの値が更新されることは
ない。このように、FLAGの値により当該フレームを
静止フレームとして符号化するか否かを判定し、静止し
始めてから1フレーム後のフレームを特定し、そのフレ
ームに対してのみ静止フレーム符号化を行う。
On the other hand, in step S303, when the absolute value sum Y of the inter-screen differences is smaller than the threshold value THRa, it is determined whether FLAG for determining still frame coding is 0 (step S306). If FLAG is not 0, the frame is subjected to normal inter-picture predictive coding (step S307). If FLAG is 0, the frame is assumed to be still frame encoded (step S308), and FLAG for determining still frame encoding is updated to 1 (step S309). FLAG for determining still frame coding has an initial value of 0, and FLAG is set at the time of still frame coding.
Is updated to 1 and this value is not updated while the image is still (during a still frame). FLAG is updated to 0 when it is determined that the frame is not a still frame, and this value is not updated until the next still frame. In this way, it is determined whether or not the frame is coded as a still frame based on the value of FLAG, the frame one frame after the start of stillness is specified, and still frame coding is performed only for that frame.

【0059】次に、量子化パラメータ値制御器16によ
る、静止フレーム符号化判定器15の出力に応じた量子
化パラメータ値の制御について、図4を用いて詳細に説
明する。量子化パラメータ値制御器16は、静止フレー
ム符号化判定器15の出力(当該フレームを静止フレー
ム符号化するか否かの判定結果を示す信号)と、外部か
ら与えられる量子化パラメータとが入力されると、量子
化パラメータ値の制御処理を開始し、上記静止フレーム
符号化判定器15の出力信号に基づいて当該フレームが
静止フレーム符号化されるか否かを判定する(ステップ
S401)。
Next, the control of the quantization parameter value by the quantization parameter value controller 16 according to the output of the still frame coding determiner 15 will be described in detail with reference to FIG. The quantization parameter value controller 16 receives the output of the still frame coding determiner 15 (a signal indicating the determination result of whether or not the frame is still frame encoded) and the quantization parameter given from the outside. Then, the control process of the quantization parameter value is started, and it is determined whether or not the frame is still frame encoded, based on the output signal of the still frame encoding determiner 15 (step S401).

【0060】上記ステップS401において、当該フレ
ームが静止フレーム符号化されないと判定された場合、
外部から与えられた量子化パラメータ値QPinputを当
該フレームの量子化パラメータ値QPとする(ステップ
S402)。
If it is determined in step S401 that the frame is not still frame encoded,
The quantization parameter value QPinput given from the outside is set as the quantization parameter value QP of the frame (step S402).

【0061】一方、上記ステップS401において、当
該フレームが静止フレーム符号化されると判定された場
合、当該フレームの量子化パラメータ値QPを、外部か
ら与えられた量子化パラメータ値QPinputに所定の方
法により決定された値β(0<β<1)を乗算した値と
する(ステップS403)。
On the other hand, when it is determined in step S401 that the frame is still frame encoded, the quantization parameter value QP of the frame is set to the quantization parameter value QPinput given from the outside by a predetermined method. The determined value β (0 <β <1) is multiplied (step S403).

【0062】このように、静止フレーム符号化判定器1
5により当該フレームが静止フレーム符号化するフレー
ム(静止し始めてから1フレーム後のフレーム)である
と判断された場合、量子化パラメータ値を通常の量子化
パラメータ値よりも小さな値とする(量子化幅を小さく
する)ことにより、スキップマクロブロック判定器4に
おいては、従来の画像符号化方法で示した図17のステ
ップ1601における閾値THR_Lが結果として小さ
な値となり、当該フレームが静止フレーム符号化されな
い場合よりもスキップマクロブロックの割合が少なくな
る。これは、参照マクロブロックで当該マクロブロック
を置き換えず、差分を符号化する部分(インターマクロ
ブロック)が増えることに等しく、画像が静止し始めた
フレームの1フレーム後のフレームを高画質に符号化す
ることに有効である。さらに、静止フレーム符号化され
る静止フレームにおいて、通常フレーム符号化よりも小
さな値に設定された量子化パラメータを用いて量子化器
7の量子化を行うことにより、量子化誤差の少ない、す
なわち高画質符号化が行える。
In this way, the still frame coding decision unit 1
When it is determined by 5 that the frame is a frame for still frame coding (frame one frame after the start of stillness), the quantization parameter value is set to a value smaller than the normal quantization parameter value (quantization By reducing the width), in the skip macroblock determiner 4, the threshold value THR_L in step 1601 of FIG. 17 shown in the conventional image encoding method becomes a small value as a result, and the frame is not still frame encoded. The ratio of skip macroblocks is smaller than that. This is equivalent to that the reference macroblock does not replace the macroblock and increases the portion (inter-macroblock) that encodes the difference, and the frame one frame after the frame at which the image starts to be stationary is encoded with high image quality. It is effective to do. Further, in the still frame to be encoded in the still frame, the quantizer 7 performs quantization using the quantization parameter set to a value smaller than that in the normal frame encoding, so that the quantization error is small, that is, high. Image quality coding can be performed.

【0063】なお、量子化器7で用いる量子化パラメー
タは、量子化パラメータ値制御器16の出力s3ではな
く、外部から入力された量子化パラメータとしてもよ
い。
The quantization parameter used in the quantizer 7 may be a quantization parameter input from outside instead of the output s3 of the quantization parameter value controller 16.

【0064】また、上述の画像符号化装置100におい
て、スキップマクロブロック判定器4への入力を、量子
化パラメータ値制御器16の出力である量子化パラメー
タs3としているが、静止フレーム符号化判定器15の
出力としてもよい。
Further, in the above-mentioned image coding apparatus 100, the input to the skip macroblock determiner 4 is the quantization parameter s3 which is the output of the quantization parameter value controller 16, but the still frame coding determiner is used. The output of 15 may be used.

【0065】ここで、スキップマクロブロック判定器4
への入力を、静止フレーム符号化判定器15の出力とし
た場合の画像符号化装置について図5を用いて説明す
る。なお、図1の画像符号化装置100や従来の画像符
号化装置1500におけるスキップマクロブロック判定
器4は、当該符号化マクロブロックがスキップマクロブ
ロックであるか否かの判定に量子化パラメータ値から決
定される閾値THR_Lを用いていたが、図5に示す画
像符号化装置110では、スキップマクロブロック判定
器4において、静止フレーム符号化判定器15の出力を
用いて上記判定を行う。
Here, the skip macroblock determiner 4
An image coding apparatus in which the input to the still frame coding determination unit 15 is the output will be described with reference to FIG. Note that the skip macroblock determiner 4 in the image encoding device 100 of FIG. 1 and the conventional image encoding device 1500 determines from the quantization parameter value to determine whether or not the encoding macroblock is a skip macroblock. Although the threshold THR_L to be used is used, in the image encoding device 110 shown in FIG. 5, the skip macroblock determiner 4 uses the output of the still frame encoding determiner 15 to make the above determination.

【0066】まず、図5に示す画像符号化装置110に
おけるスキップマクロブロック判定器4の処理方法につ
いて図6を用いて説明する。スキップマクロブロック判
定器4は、静止フレーム符号化判定器15の出力(当該
フレームを静止フレーム符号化するか否かを示す信号)
が入力されると、スキップマクロブロック判定処理を開
始し、該入力信号に基づいて当該フレームが静止フレー
ム符号化するフレームであるか否かを判定する(ステッ
プS601)。
First, the processing method of the skip macroblock determiner 4 in the image coding apparatus 110 shown in FIG. 5 will be described with reference to FIG. The skip macroblock determiner 4 outputs the still frame coding determiner 15 (a signal indicating whether or not the frame is still frame encoded).
Is input, the skip macroblock determination process is started, and it is determined based on the input signal whether or not the frame is a frame for still frame coding (step S601).

【0067】上記判定の結果、当該フレームが静止フレ
ーム符号化をしないフレームであると判定された場合、
閾値THRskipを所定の方法で決定された閾値THRsk
ip_baseとする(ステップS602)。一方、当該フレ
ームが静止フレーム符号化するフレームであると判定さ
れた場合、閾値THRskipを閾値THRskip_baseに所
定の方法により決定された値γ(0<γ<1)を乗算し
た値とする(ステップS603)。なお、閾値THRsk
ipとは、スキップマクロブロックか否かの判定に用いる
ものである。
As a result of the above determination, when it is determined that the frame is a frame not subjected to still frame coding,
The threshold value THRskip is a threshold value THRsk determined by a predetermined method.
It is set to ip_base (step S602). On the other hand, when it is determined that the frame is a frame for still frame encoding, the threshold value THRskip is set to a value obtained by multiplying the threshold value THRskip_base by a value γ (0 <γ <1) determined by a predetermined method (step S603). ). The threshold value THRsk
The ip is used to determine whether or not the macro block is a skip macro block.

【0068】次に、上記ステップS602もしくはステ
ップS603で決定された閾値THRskipを用い、減算
手段2から入力された当該マクロブロックの画面間差分
値s1の絶対値和Xが閾値THRskipより小さいかを判
定する(ステップ604)。該判定の結果、当該マクロ
ブロックの差分値の絶対値和XがTHRskip以上である
場合、当該マクロブロックは画面間差分値を符号化する
と判定し(ステップS605)、そうでない場合はスキ
ップマクロブロックと判定する(ステップS606)。
Next, by using the threshold value THRskip determined in step S602 or step S603, it is determined whether the sum X of absolute values of the inter-screen difference values s1 of the macro block input from the subtraction means 2 is smaller than the threshold value THRskip. (Step 604). As a result of the determination, if the absolute value sum X of the difference values of the macroblock is equal to or more than THRskip, it is determined that the macroblock encodes the inter-screen difference value (step S605), and if not, it is determined to be a skip macroblock. The determination is made (step S606).

【0069】このように、当該フレームを静止フレーム
符号化する場合、スキップマクロブロック判定器4での
判定に用いる閾値THRskipを静止フレーム符号化しな
い場合よりも小さな値とすることにより、スキップマク
ロブロックとなる部分が抑制される。これは、参照マク
ロブロックで当該マクロブロックを置き換えず、差分を
符号化する部分が増えることに等しく、静止フレーム符
号化されるフレームを高画質に符号化することに有効で
ある。
As described above, when the frame is still frame-encoded, the threshold value THRskip used for the determination by the skip macroblock determiner 4 is set to a value smaller than that when the still frame is not encoded, so that a skip macroblock is obtained. Is suppressed. This is equivalent to increasing the portion for encoding the difference without replacing the macro block with the reference macro block, and is effective for encoding still frame encoded frames with high image quality.

【0070】なお、図5に示す画像符号化装置110に
おいて、量子化パラメータ値制御器16を除き、量子化
器7で量子化の際に用いる量子化パラメータを外部から
入力される量子化パラメータとしてもよい。
In the image coding apparatus 110 shown in FIG. 5, except for the quantization parameter value controller 16, the quantization parameter used in the quantization by the quantizer 7 is used as the quantization parameter input from the outside. Good.

【0071】このような実施の形態1による画像符号化
装置では、1パスコーディングにおいて符号化しようと
する画像が静止し始めたフレームから1フレーム後のフ
レームに対して、他のフレームに比べて高画質の符号化
を行うようにしたので、後続の静止フレームは高画質に
符号化された画像を参照することができ、また一度符号
化したデータを参照して符号化を行う2パスコーディン
グに比べて短い符号化時間で、画像が静止している間の
フレームに対して画質改善を行うことができる。
In the image coding apparatus according to the first embodiment, the image to be coded in the 1-pass coding is higher in the frame one frame after the frame in which the image starts to be stationary than in the other frames. Since the image quality is encoded, the subsequent still frame can refer to the image encoded with high image quality, and compared with the two-pass encoding in which the encoded data is referred to and encoded. The image quality can be improved for a frame while the image is still in a short coding time.

【0072】なお、上記実施の形態1では、静止フレー
ム符号化判定器15にて後続の静止フレームであると判
断されたフレームの符号化に関して、量子化パラメータ
値制御器16を、符号化に用いる量子化パラメータ値を
外部から入力される量子化パラメータ値よりも大きな値
に制御するようにすれば、当該フレームのスキップマク
ロブロックが他のフレームに比べて多くなるが、スキッ
プマクロブロックとして置き換える参照マクロブロック
が既に高画質に符号化されているので、画質の劣化が起
こらず、かつ発生符号量を他のフレームよりも抑えるこ
とができる。
In the first embodiment, the quantization parameter value controller 16 is used for the encoding of the frame determined by the still frame encoding determiner 15 as the subsequent still frame. If the quantization parameter value is controlled to a value larger than the quantization parameter value input from the outside, the number of skip macroblocks in the frame will be larger than in other frames, but the reference macro to be replaced as a skip macroblock Since the blocks have already been encoded with high image quality, the image quality does not deteriorate, and the generated code amount can be suppressed as compared with other frames.

【0073】また、上記実施の形態1では、被符号化フ
レームの符号化を開始する直前に、被符号化フレームの
参照フレームとの画面間差分をとり、被符号化フレーム
の符号化方法(静止フレーム符号化するか否か)を判定
しているが、被符号化フレームの各マクロブロックの符
号化の際に算出される差分値を保持しておき、被符号化
フレームの符号化終了後に、上記保持しておいた差分値
からフレーム全体の差分値を求め、該求めた差分値から
次符号化フレームの符号化方法を決定しても良い。
In the first embodiment, immediately before the coding of the coded frame is started, the difference between the frames of the coded frame and the reference frame is calculated, and the coding method of the coded frame (still Whether or not to encode the frame) is determined, but the difference value calculated at the time of encoding each macroblock of the encoded frame is held, and after the encoding of the encoded frame is completed, The difference value of the entire frame may be obtained from the held difference value, and the encoding method for the next encoded frame may be determined from the obtained difference value.

【0074】また、上記実施の形態1では、符号化方法
を1パスコーディングとしたが、符号化方法を、一度符
号化したデータを参照して符号化を行う2パスコーディ
ングとしてもよい。この場合、一度符号化した各フレー
ムの発生符号量、または、1パス目の符号化において与
えられる静止フレームであることを示すフラグや、フレ
ームの差分値などから静止フレームであるか否かの判定
を行い、静止開始フレームに対して高画質の符号化(静
止フレーム符号化)を行うようにすれば、1パスコーデ
ィングの符号化方法に比べて符号化処理に時間がかかる
が、静止開始フレームを正確に特定することができ、静
止フレーム符号化するフレームを、上記実施の形態1の
図1および図5に示した画像符号化装置よりも1フレー
ム早く高画質に符号化することが出来る。
In the first embodiment, the coding method is one-pass coding, but the coding method may be two-pass coding in which coding is performed with reference to data that has been coded once. In this case, it is determined whether or not the frame is a still frame based on the generated code amount of each frame once encoded, a flag indicating that the frame is a still frame given in the first pass encoding, a frame difference value, or the like. If high-quality coding (still frame coding) is performed on the still start frame, the coding process takes longer than the one-pass coding method. It is possible to specify the frame accurately, and it is possible to encode the frame to be encoded in the still frame with high image quality one frame earlier than the image encoding device shown in FIGS. 1 and 5 of the first embodiment.

【0075】ここで、上記実施の形態1による画像符号
化装置100,110により符号化された画像符号化デ
ータ(ビットストリーム)は、次のような特徴を有す
る。上記画像符号化装置100,110により、静止し
始めたフレームの次のフレームが必ず高画質に符号化さ
れるので、符号化されたビットストリームは、従来の画
像符号化装置で符号化されたビットストリームに比べ、
静止開始直後のフレームは他のPフレームよりも量子化
パラメータ値が小さな値となっており、該量子化パラメ
ータ値が小さくなったフレーム直後のフレームはスキッ
プマクロブロックとなる割合が多くなっている、という
特徴を有する。これは、高画質符号化されたフレームの
画質がきれいであるほど、後続の静止フレームにおいて
差分値が小さくなるため、スキップマクロブロックの割
合が多くなり、その結果、後続フレームを高画質にする
ことができる。
Here, the image coded data (bit stream) coded by the image coding apparatuses 100 and 110 according to the first embodiment has the following features. Since the image encoding devices 100 and 110 always encode the next frame of the frame that has started to be stationary with high image quality, the encoded bit stream is a bit encoded by a conventional image encoding device. Compared to streams
The frame immediately after the start of stillness has a smaller quantization parameter value than the other P frames, and the frame immediately after the frame having the smaller quantization parameter value has a higher proportion of skip macroblocks. It has the feature. This is because the higher the image quality of the high-quality coded frame, the smaller the difference value in the subsequent still frame, and the larger the proportion of skip macroblocks, and the higher the quality of the subsequent frame. You can

【0076】また、上記画像符号化装置100,110
により、静止開始直後のフレームをIフレームとして符
号化するようにすれば、符号化されたビットストリーム
は、静止開始直後のフレームは必ずIフレームとして符
号化されている、という特徴を有する。従って、Iフレ
ームはPフレームに比べ画質が良いので、静止フレーム
符号化よりも画質をきれいにすることができる。
Further, the image coding devices 100 and 110
Thus, if the frame immediately after the start of stillness is encoded as an I frame, the encoded bitstream has a feature that the frame immediately after the start of stillness is always encoded as an I frame. Therefore, since the I frame has a better image quality than the P frame, the image quality can be better than that of the still frame coding.

【0077】また、上記画像符号化装置100,110
により、静止開始直後のフレームについて量子化パラメ
ータ値を小さく制御した後、後続の静止フレームにおい
て量子化パラメータ値を通常の値よりも大きくなるよう
制御すれば、符号化されたビットストリームは、静止画
像の後続静止フレームにおいて量子化パラメータ値が大
きな値となっている、という特徴を有する。これは、後
続静止フレームの量子化パラメータ値を大きくするとス
キップマクロブロックが多くなり、静止フレーム符号化
した画像を表示することになり、高画質の画像を表示可
能となる。また、静止し始めた直後のフレームを静止フ
レームとして量子化パラメータ値を小さくして符号化す
ると1フレームの発生符号量は多くなるが、後続静止フ
レームについて量子化パラメータ値を大きくすれば逆に
1フレームあたりの発生符号量は少なくなるため、静止
画像間での発生符号量は平均化され、その結果、平均発
生符号量(ビットレート)はほぼ一定になる。
Further, the image coding devices 100 and 110
Thus, if the quantization parameter value is controlled to be small for the frame immediately after the start of stillness and then the quantization parameter value is controlled to be higher than the normal value in the subsequent still frames, the encoded bitstream becomes a still image. In the following still frame, the quantization parameter value has a large value. This means that when the quantization parameter value of the subsequent still frame is increased, the number of skip macroblocks is increased, and a still frame-coded image is displayed, so that a high quality image can be displayed. Also, when the frame immediately after the start of stillness is set as a still frame and the quantization parameter value is reduced and encoded, the generated code amount of one frame increases, but if the quantization parameter value of the subsequent still frame is increased, it becomes 1 Since the generated code amount per frame is small, the generated code amount between the still images is averaged, and as a result, the average generated code amount (bit rate) becomes substantially constant.

【0078】このような特徴を持つビットストリーム
は、通常使用される画像復号化装置により復号化するこ
とができ、さらに、従来の画像符号化装置によるビット
ストリームよりも高画質な画像を再生することができ
る。また、画像復号化装置として、上述の通常の復号化
処理を行うのではなく、後続の静止フレームのデコード
において、スキップマクロブロック数が全マクロブロッ
ク数に対して所定の方法で求められた個数以上となった
場合に、当該フレームの表示を行わないスキップフレー
ムと判断し、次フレームのデコード処理を開始するよう
にすれば、高画質の画像の再生が得られるだけでなく、
デコード処理における演算量を削減することも可能とな
る。
A bitstream having such characteristics can be decoded by a commonly used image decoding device, and can reproduce an image having a higher image quality than a bitstream by a conventional image coding device. You can Further, as the image decoding device, the number of skip macroblocks is not less than the number obtained by a predetermined method with respect to the total number of macroblocks in the decoding of the subsequent still frame, instead of performing the above-described normal decoding processing. If it is determined that the frame is a skip frame not to be displayed and the decoding process of the next frame is started, not only high-quality image reproduction can be obtained,
It is also possible to reduce the calculation amount in the decoding process.

【0079】なお、上記実施の形態1による画像符号化
方法は、MPEG−2、MPEG−4、H.261およ
びH.263等の標準化画像符号化方法に取り入れるこ
とが出来る。ただし、MPEG−4規格では、マクロブ
ロックの量子化パラメータ値の変動は±2の範囲内と規
定されている。
The image coding method according to the first embodiment is based on MPEG-2, MPEG-4, H.264. 261 and H.264. It can be incorporated into standardized image coding methods such as H.263. However, the MPEG-4 standard stipulates that the variation of the quantization parameter value of the macroblock is within ± 2.

【0080】また、上述ではフレーム間で静止フレーム
を判定していたが、画像の静止を判定する方法として
は、画面内予測、つまり、同じフレームの既に符号化し
た近傍マクロブロックから予測しても良い。例えば、図
1や図5に示した装置の画像静止判定方法は、参照画像
との差分値のみで判定しているが、同じフレームの既に
符号化した近傍マクロブロック(当該マクロブロックの
上部、左部、左上部などに位置する符号化済みマクロブ
ロック)がスキップマクロブロックかどうかに関する情
報から各マクロブロックの静止を判定するようにしても
よい。また、マクロブロックごとの量子化パラメータ値
の変動は、差分値及びフラグからのみでなく、既に符号
化されている近傍マクロブロックを参照し、それらの状
態によって決定してもよい。たとえば、当該マクロブロ
ックの直前のマクロブロックがスキップマクロブロック
であるとき、当該マクロブロックの量子化パラメータ値
を小さく制御するようにすれば、当該マクロブロックを
高画質符号化することができる。
Further, although the still frame is determined between the frames in the above, as a method of determining the stillness of the image, intra-frame prediction, that is, prediction from the already encoded neighboring macroblock of the same frame is also performed. good. For example, in the image stillness determination method of the apparatus shown in FIGS. 1 and 5, the determination is made only by the difference value from the reference image, but the already encoded neighboring macroblock of the same frame (the upper part of the macroblock, the left Part, upper left portion, and the like) may be determined as stillness of each macroblock based on information regarding whether the macroblock is a skip macroblock. Further, the fluctuation of the quantization parameter value for each macroblock may be determined not only from the difference value and the flag but also by referring to the neighboring macroblocks that have already been coded and by their states. For example, when the macroblock immediately before the macroblock is a skip macroblock, the macroblock can be encoded with high image quality by controlling the quantization parameter value of the macroblock to be small.

【0081】このような画面内予測による画像静止判定
方法を用いた場合の画像符号化装置は、例えば、図7に
示すように構成される。図7において、図1と同一また
は相当する構成要素は同じ符号を用い、その説明を省略
する。
An image coding apparatus using the image stillness determination method based on such intra-frame prediction is configured, for example, as shown in FIG. In FIG. 7, the same or corresponding components as those in FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted.

【0082】以下に、図7に示した画像符号化装置12
0のスキップマクロブロック判定方法について説明す
る。スキップマクロブロック判定器4では、まず、当該
マクロブロックの左マクロブロックがスキップマクロブ
ロックであるか否かの判定を行う(ステップS70
1)。なお、ここでは、参照するマクロブロックを左マ
クロブロックとして説明するが、左マクロブロック、つ
まり直前マクロブロックに限定する必要はなく、当該マ
クロブロックの近傍マクロブロック(当該マクロブロッ
クの上部、左部、左上部などに位置するマクロブロッ
ク)であれば良い。また、この参照する近傍マクロブロ
ックの数が多いほど、より細かなスキップマクロブロッ
ク判定を行うことができる。
Below, the image coding device 12 shown in FIG.
A method for determining a 0 skip macroblock will be described. The skip macroblock determiner 4 first determines whether or not the left macroblock of the macroblock is a skip macroblock (step S70).
1). Although the macro block to be referred to is described as a left macro block here, it is not necessary to limit the macro block to the left macro block, that is, the immediately preceding macro block, and the neighboring macro blocks (the upper part, the left part of the macro block, Any macro block located on the upper left or the like may be used. Further, the greater the number of neighboring macroblocks to be referred to, the more detailed skip macroblock determination can be performed.

【0083】左マクロブロックがスキップマクロブロッ
クでない場合、当該マクロブロックの量子化パラメータ
QPの値は、外部から与えられた量子化パラメータQP
inputと同じ値とする(ステップS702)。一方、左
マクロブロックがスキップマクロブロックである場合、
当該マクロブロックの量子化パラメータQPの値を外部
から与えられる量子化パラメータQPinputの値よりも
小さく設定する(ステップS703)。
When the left macroblock is not the skip macroblock, the value of the quantization parameter QP of the macroblock is the quantization parameter QP given from the outside.
The same value as input is set (step S702). On the other hand, if the left macroblock is a skip macroblock,
The value of the quantization parameter QP of the macroblock is set smaller than the value of the quantization parameter QPinput given from the outside (step S703).

【0084】このようにすれば、参照フレームとの差分
符号化を行わない画面内予測のみでの符号化において
も、画像の静止部分を予測して量子化パラメータ値を小
さく制御することができ、その結果、符号量の発生を押
さえつつ、かつ、高画質に符号化することができる。ま
た、この方法を図1や図5に示した装置の画像符号化方
法とあわせて用いた場合、静止フレーム符号化するフレ
ーム内でも量子化パラメータの変動により符号化誤差の
少ない高画質な符号化を行うことができる。
In this way, even in the case of only the intra-picture prediction that does not perform the differential coding with the reference frame, the still part of the image can be predicted and the quantization parameter value can be controlled small. As a result, encoding can be performed with high image quality while suppressing the generation of code amount. When this method is used in combination with the image coding method of the apparatus shown in FIG. 1 or FIG. 5, high-quality coding with few coding errors due to fluctuations in quantization parameters even in a frame to be coded in still frame coding. It can be performed.

【0085】(実施の形態2)以下に、本発明の実施の
形態2による画像符号化装置及び画像符号化方法につい
て説明する。本実施の形態2による画像符号化装置20
0は、図9に示すような構成であり、符号化しようとす
る画像に対して、静止しているフレームを判定し、静止
し始めたフレームから2フレーム後のフレームにおいて
他のフレームに比べて高画質の符号化(静止フレーム符
号化)を行うものである。
(Second Embodiment) An image coding apparatus and an image coding method according to the second embodiment of the present invention will be described below. Image coding apparatus 20 according to the second embodiment
0 has a configuration as shown in FIG. 9, and determines a still frame for an image to be encoded, and compares a frame that is two frames after the frame that started to be stationary with another frame. High-quality coding (still frame coding) is performed.

【0086】なお、実施の形態1の画像符号化装置10
0の構成との違いは、図1に示した1パスコーディング
の画像符号化装置100の構成において、静止フレーム
符号化を行うか否かの判定を行う静止フレーム符号化判
定器15の処理、および量子化パラメータ値制御器16
の処理が異なる点である。以下に、その相違部分につい
て図10及び図12を用いて説明する。
The image coding apparatus 10 according to the first embodiment
The difference from the configuration of 0 is that in the configuration of the image encoding device 100 for 1-pass coding shown in FIG. 1, the processing of the still frame encoding determiner 15 that determines whether or not to perform still frame encoding, and Quantization parameter value controller 16
Is the difference in processing. The difference will be described below with reference to FIGS. 10 and 12.

【0087】まず、本実施の形態2における、静止フレ
ーム符号化判定器15による静止フレーム符号化の判定
処理方法について図10を用いて説明する。上記静止フ
レーム符号化の判定には、当該マクロブロックの符号化
方法(符号化タイプ)を表す3値のフラグが用いられ
る。なお、このフラグは符号化の処理単位であるマクロ
ブロック毎に与えられるものであり、次フレームの符号
化の際に参照される。図において、フラグ0は、当該マ
クロブロックがスキップマクロブロックでない場合を表
し、フラグ1は、過去の符号化フレームで静止フレーム
符号化されていないマクロブロックで、かつ当該マクロ
ブロックがスキップマクロブロックである場合を表し、
フラグ2は、すでに過去の符号化フレームで静止フレー
ム符号化されたマクロブロックで、かつ当該マクロブロ
ックがスキップマクロブロックである場合を表してい
る。
First, a still frame coding determination processing method by the still frame coding determination unit 15 in the second embodiment will be described with reference to FIG. A ternary flag indicating the encoding method (encoding type) of the macroblock is used for the determination of the still frame encoding. It should be noted that this flag is given for each macroblock, which is a unit of encoding processing, and is referred to when encoding the next frame. In the figure, a flag 0 represents a case where the macro block is not a skip macro block, and a flag 1 is a macro block which is not still frame coded in a past coded frame, and the macro block is a skip macro block. Represents the case
The flag 2 represents a case where the macro block has already been coded in a still frame in the past coded frame and the macro block is a skip macro block.

【0088】当該フレームの符号化が開始され、静止フ
レーム符号化判定器15の処理が開始されると、静止フ
レーム符号化判定器15は、まず、スキップマクロブロ
ック判定器4の出力s4に基づいて当該マクロブロック
がスキップマクロブロックか否かを判断する(ステップ
S803)。
When the coding of the frame is started and the processing of the still frame coding determiner 15 is started, the still frame coding determiner 15 firstly based on the output s4 of the skip macroblock determiner 4. It is determined whether the macro block is a skip macro block (step S803).

【0089】当該マクロブロックがスキップマクロブロ
ックでない場合、当該マクロブロックのフラグ値を0と
する(ステップS804)。当該マクロブロックがスキ
ップマクロブロックである場合、参照マクロブロックの
フラグ値を参照し(ステップS805)、フラグ値が0
であれば、当該マクロブロックのフラグ値を1とする
(ステップS806)、そうでなければ、当該フレーム
が静止フレーム符号化であるかを判定する(ステップS
807)。
If the macroblock is not a skip macroblock, the flag value of the macroblock is set to 0 (step S804). If the macro block is a skip macro block, the flag value of the reference macro block is referenced (step S805), and the flag value is 0.
If so, the flag value of the macroblock is set to 1 (step S806), and if not, it is determined whether the frame is still frame coding (step S806).
807).

【0090】上記ステップS807の判定の結果、静止
フレーム符号化でないと判定された場合、当該マクロブ
ロックのフラグ値を参照マクロブロックのフラグ値とす
る(ステップS808)。当該フレームが静止フレーム
符号化である場合、当該マクロブロックのフラグ値を2
とする(ステップS809)。この処理を当該フレーム
の全マクロブロックの符号化において行い、当該フレー
ムの全マクロブロックの符号化が終了すれば、フラグ値
が1となるマクロブロックの数Fが閾値THRcより大
きいかを判定する(ステップS810)。なお、閾値T
HRcは当該フレームの全マクロブロック数に所定の方
法により決定された値δ(0<δ<1)を乗算した値と
する。
If the result of determination in step S807 is that still frame coding has not been performed, the flag value of the macroblock is set as the flag value of the reference macroblock (step S808). If the frame is still frame encoded, set the flag value of the macroblock to 2
(Step S809). When this processing is performed in the coding of all the macroblocks of the frame and the coding of all the macroblocks of the frame is completed, it is determined whether the number F of macroblocks having a flag value of 1 is larger than the threshold value THRc ( Step S810). The threshold T
HRc is a value obtained by multiplying the total number of macroblocks in the frame by a value δ (0 <δ <1) determined by a predetermined method.

【0091】上記ステップS810において、フラグ値
が1となるマクロブロック数Fが閾値THRcより大き
い場合は、次符号化フレームを静止フレーム符号化する
ものとする(ステップS812)。そうでない場合は、
次符号化フレームを通常の符号化とする(ステップS8
11)。
When the number F of macroblocks having the flag value of 1 is larger than the threshold value THRc in step S810, the next coded frame is still frame coded (step S812). If not,
The next encoded frame is encoded normally (step S8).
11).

【0092】ここで、上記で説明した3値のフラグにつ
いて、参照マクロブロックのフラグ値から当該マクロブ
ロックの状態によりフラグ値が遷移する状態を図11の
状態遷移図に示す。
Here, regarding the above-mentioned three-valued flag, the state in which the flag value changes from the flag value of the reference macroblock depending on the state of the macroblock is shown in the state transition diagram of FIG.

【0093】参照マクロブロックのフラグ値が0(N9
01)のとき、当該マクロブロックがスキップマクロブ
ロックでない場合はフラグ値は0のままであり、当該マ
クロブロックがスキップマクロブロックである場合(M
904)は、当該マクロブロックのフラグ値は1(N9
02)となる。
The flag value of the reference macroblock is 0 (N9
01), the flag value remains 0 if the macro block is not a skip macro block, and if the macro block is a skip macro block (M
904), the flag value of the macroblock is 1 (N9
02).

【0094】参照マクロブロックのフラグ値が1(N9
02)のとき、当該マクロブロックがスキップマクロブ
ロックでかつ、当該フレームが静止フレーム符号化され
ない場合、当該マクロブロックのフラグ値は1のままで
あり、当該マクロブロックがスキップマクロブロック
で、かつ当該フレームが静止フレーム符号化される場合
(M905)は、当該マクロブロックのフラグ値は2
(N903)となり、当該マクロブロックがスキップマ
クロブロックでない場合は、当該マクロブロックのフラ
グ値は0(N901)となる。
The flag value of the reference macroblock is 1 (N9
02), if the macroblock is a skip macroblock and the frame is not still frame coded, the flag value of the macroblock remains 1, and the macroblock is a skip macroblock and the frame is Is still frame encoded (M905), the flag value of the macroblock is 2
(N903), and if the macroblock is not a skip macroblock, the flag value of the macroblock is 0 (N901).

【0095】参照マクロブロックのフラグ値が2(N9
03)のとき、当該マクロブロックがスキップマクロブ
ロックである場合は、当該マクロブロックのフラグ値は
2のままであり、当該マクロブロックがスキップマクロ
ブロックでない場合は、当該マクロブロックのフラグ値
は0(N901)となる。
The flag value of the reference macroblock is 2 (N9
03), if the macro block is a skip macro block, the flag value of the macro block remains 2. If the macro block is not a skip macro block, the flag value of the macro block is 0 ( N901).

【0096】以上のように、静止フレーム符号化判定器
15は、当該マクロブロックの符号化方法を示す信号s
4(スキップマクロブロックであるか否かを示す信号)
をスキップマクロブロック判定器4から取得し、さら
に、直前フレーム符号化において決定された当該フレー
ムの符号化方法、および参照マクロブロックに与えられ
たマクロブロックの符号化方法を表すフラグ値を用いて
次符号化フレームを静止フレーム符号化するか否かの判
定を行い、当該フレームの符号化においては前フレーム
符号化時に決定された結果を用いる。なお、上記図10
及び図11において説明した3値のフラグは、その値を
0、1、2と限定するものではない。
As described above, the still frame coding determiner 15 outputs the signal s indicating the coding method of the macroblock.
4 (signal indicating whether or not it is a skip macro block)
From the skip macroblock determiner 4 and further using the flag value representing the coding method of the frame determined in the immediately preceding frame coding and the coding method of the macroblock given to the reference macroblock, It is determined whether or not the encoded frame is still frame encoded, and the result determined at the time of encoding the previous frame is used in encoding the frame. In addition, in FIG.
The three-valued flag described in FIG. 11 does not limit its value to 0, 1, 2.

【0097】次に、本実施の形態2における、量子化パ
ラメータ値制御器16による、量子化パラメータ値の制
御方法について図12を用いて説明する。ここでは、上
記静止フレーム符号化判定器15で保持している、参照
フレームが静止フレーム符号化であるか否かの情報と、
参照マクロブロックのフラグ値により制御される量子化
パラメータ値について説明する。
Next, a method of controlling the quantization parameter value by the quantization parameter value controller 16 in the second embodiment will be described with reference to FIG. Here, information on whether or not the reference frame is still frame coding, which is held by the still frame coding determiner 15,
The quantization parameter value controlled by the flag value of the reference macroblock will be described.

【0098】量子化パラメータ値制御器16は、静止フ
レーム符号化判定器15により決定された参照マクロブ
ロックのフラグ値と参照フレームが静止フレーム符号化
であるか否かを示す信号s5と外部から与えられる量子
化パラメータとが入力され、量子化パラメータ値の制御
処理を開始する。
The quantization parameter value controller 16 gives a flag value of the reference macroblock determined by the still frame coding determiner 15 and a signal s5 indicating whether or not the reference frame is still frame coding from the outside. And the quantization parameter to be input are input, and control processing of the quantization parameter value is started.

【0099】まず、静止フレーム符号化判定器15の出
力信号s5に基づいて当該フレームが静止フレーム符号
化であるか否かを判断する(ステップS1001)。当
該フレームが静止フレーム符号化でないと判断された場
合、外部から与えられた量子化パラメータ値QPinput
を当該マクロブロックの量子化パラメータ値QPとする
(ステップS1002)。一方、当該フレームが静止フ
レーム符号化であると判断された場合、参照マクロブロ
ックのフラグ値が0(非スキップマクロブロック)であ
るか否かについて判定する(ステップS1003)。
First, based on the output signal s5 of the still frame coding determiner 15, it is judged whether or not the frame is still frame coded (step S1001). When it is determined that the frame is not still frame encoding, the quantization parameter value QPinput given from the outside
Is set as the quantization parameter value QP of the macroblock (step S1002). On the other hand, when it is determined that the frame is still frame encoding, it is determined whether the flag value of the reference macroblock is 0 (non-skip macroblock) (step S1003).

【0100】上記ステップS1003において、参照マ
クロブロックのフラブ値が0でない場合、当該マクロブ
ロックの量子化パラメータ値は、外部からの与えられた
量子化パラメータ値QPinputに所定の方法により決定
された値ε(0<ε<1)を乗算した値とする(ステッ
プS1004)。また、参照マクロブロックのフラブ値
が0である場合、当該マクロブロックの量子化パラメー
タ値は外部から与えられた量子化パラメータ値QPinpu
tに所定の方法により決定された値ε(0<ε<1)を
乗算し、さらに、所定の方法で決定された値ζ(0<
ζ)を加算した値とする(ステップS1005)。
When the flab value of the reference macroblock is not 0 in step S1003, the quantization parameter value of the macroblock is a value ε determined by a predetermined method for the quantization parameter value QPinput given from the outside. The value is multiplied by (0 <ε <1) (step S1004). When the flab value of the reference macroblock is 0, the quantization parameter value of the macroblock is a quantization parameter value QPinpu given from the outside.
t is multiplied by a value ε (0 <ε <1) determined by a predetermined method, and further, a value ζ (0 <0 <determined by a predetermined method.
ζ) is added (step S1005).

【0101】このように、量子化パラメータ値制御器1
6は、静止フレーム符号化判定器15の出力s5に基づ
いて外部から入力された量子化パラメータ値を制御する
ことで、当該マクロブロックの符号化において直前フレ
ーム符号化以前に静止フレーム符号化をしていないマク
ロブロックを参照マクロブロックとする場合は、当該マ
クロブロックが静止し始めてから2フレーム目のマクロ
ブロックであると判断し、量子化パラメータ値QPを通
常フレームの符号化における外部から入力される量子化
パラメータ値QPinputよりも小さな値に設定すること
ができる。また、既に静止フレーム符号化を行ったマク
ロブロックを参照する場合は、参照マクロブロックは既
に符号化誤差の少ない符号化を行っているので、量子化
パラメータ値をQPinput×εの値よりも大きな値に設
定しても符号化誤差が大きくなることはない。
As described above, the quantization parameter value controller 1
6 controls the quantization parameter value input from the outside based on the output s5 of the still frame coding determiner 15 to perform still frame coding before the immediately preceding frame coding in the coding of the macroblock. When a macro block that is not present is used as a reference macro block, it is determined that the macro block is a macro block of the second frame after the macro block starts to be stationary, and the quantization parameter value QP is input from the outside in the encoding of the normal frame. It can be set to a value smaller than the quantization parameter value QPinput. When referring to a macroblock that has already undergone still frame coding, the reference macroblock has already been coded with a small coding error, so the quantization parameter value is larger than the value of QPinput × ε. Even if it is set to, the coding error does not increase.

【0102】なお、MPEG−4規格では、マクロブロ
ックの量子化パラメータ値の変動は±2の範囲内と規定
されている。つまり、隣り合うマクロブロックの量子化
パラメータ値の差は±2しか許されないため、図12に
よりε,ζにより変動する量子化パラメータ値QPの1
マクロブロック毎の値の差は+2、+1、0、−1、−
2のいずれかになるよう制御しなければならない。
According to the MPEG-4 standard, the fluctuation of the quantization parameter value of the macroblock is regulated within the range of ± 2. That is, since the difference between the quantization parameter values of adjacent macroblocks is only ± 2, the quantization parameter value QP of 1 which varies depending on ε and ζ is shown in FIG.
The difference in value for each macroblock is +2, +1, 0, -1,-.
It must be controlled to be either of the two.

【0103】ここで、量子化パラメータ値を小さな値に
制御することで発生符号量が増加することを考えれば、
静止フレーム符号化を行わないマクロブロック(ステッ
プS1005)に対しては、その量子化パラメータ値Q
Pを外部から入力された量子化パラメータ値QPinpu
t、もしくはそれに近い値にすればよい。
Here, considering that the generated code amount increases by controlling the quantization parameter value to a small value,
For a macroblock (step S1005) for which still frame coding is not performed, the quantization parameter value Q
Quantization parameter value QPinpu input P from the outside
It should be t or a value close to it.

【0104】なお、上記画像符号化装置200では、量
子化器7での差分符号化に用いる量子化パラメータ値
は、量子化パラメータ値制御器16の出力s3ではな
く、外部から入力される量子化パラメータ値としても良
い。
In the image coding apparatus 200, the quantization parameter value used for the differential coding in the quantizer 7 is not the output s3 of the quantization parameter value controller 16 but the quantizer input from the outside. It may be a parameter value.

【0105】また、スキップマクロブロック符号化判定
器4による当該マクロブロックをスキップマクロブロッ
クとするか否かの判定において、図5の画像符号化装置
110に示したように、静止フレーム符号化判定手段の
出力を用いても良い。
Further, in the judgment by the skip macroblock coding judgment unit 4 as to whether or not the macroblock should be a skip macroblock, as shown in the image coding apparatus 110 in FIG. 5, still frame coding judgment means. You may use the output of.

【0106】また、フラグを用いてマクロブロック単位
で静止しているか否かを判断しているが、これに限定す
るものではなく、別の単位でも良い。例えば、フレーム
を4分割した各部分で判定したり、任意の領域で判定し
たりしても良い。
Further, the flag is used to determine whether or not the unit is still in macroblock units, but the present invention is not limited to this, and another unit may be used. For example, the determination may be made in each of the four divided parts of the frame, or in any area.

【0107】このような実施の形態2による画像符号化
装置200では、各マクロブロックに静止フレーム符号
化を行うか否かに用いるフラグを与え、参照フレームの
符号化方法、参照マクロブロックのフラグ値、および当
該マクロブロックの状態(スキップマクロブロックか否
か、静止フレーム符号化か否か)から、次符号化フレー
ムを静止フレーム符号化するか否かの判定処理を容易に
実現することができ、マクロブロックの単位で量子化パ
ラメータ値を制御することにより、実施の形態1でも示
したように、当該マクロブロックをスキップマクロブロ
ックとするか否かの判定、および差分符号化時の量子化
において、符号化誤差をできるだけ少なく符号化するこ
とができる。
In the image coding apparatus 200 according to the second embodiment, a flag used to determine whether or not still frame coding is performed is given to each macroblock, the coding method of the reference frame, and the flag value of the reference macroblock. , And the state of the macroblock (whether it is a skip macroblock, whether still frame coding or not), it is possible to easily realize a determination process as to whether or not the next coded frame is still frame coded. By controlling the quantization parameter value in units of macroblocks, it is possible to determine whether or not to make the macroblock a skip macroblock and to perform quantization at the time of differential encoding, as shown in the first embodiment. It is possible to code with as little coding error as possible.

【0108】ここで、上記実施の形態2による画像符号
化装置200により符号化された画像符号化データ(ビ
ットストリーム)は、次のような特徴を有する。上記画
像符号化装置200により、静止し始めたフレームの次
のフレームが必ず高画質に符号化されるので、符号化さ
れたビットストリームは、従来の画像符号化装置で符号
化されたビットストリームに比べ、静止開始直後のフレ
ームは他のPフレームよりも量子化パラメータ値が小さ
な値となっており、該量子化パラメータ値が小さくなっ
たフレーム直後のフレームはスキップマクロブロックと
なる割合が多くなっている、という特徴を有する。これ
は、高画質符号化されたフレームの画質がきれいである
ほど、後続の静止フレームにおいて差分値が小さくなる
ため、スキップマクロブロックの割合が多くなり、その
結果、後続フレームを高画質にすることができる。
Here, the image coded data (bit stream) coded by the image coding apparatus 200 according to the second embodiment has the following features. Since the image encoding device 200 always encodes a frame next to a frame that has started to be stationary with high image quality, the encoded bit stream becomes a bit stream encoded by a conventional image encoding device. In comparison, the frame immediately after the start of stillness has a smaller quantization parameter value than the other P frames, and the frame immediately after the frame having the smaller quantization parameter value has a higher proportion of skip macroblocks. It has the characteristic of being This is because the higher the image quality of the high-quality coded frame, the smaller the difference value in the subsequent still frame, and the larger the proportion of skip macroblocks, and the higher the quality of the subsequent frame. You can

【0109】また、上記画像符号化装置200により、
静止開始直後のフレームをIフレームとして符号化する
ようにすれば、符号化されたビットストリームは、静止
開始直後のフレームは必ずIフレームとして符号化され
ている、という特徴を有する。従って、IフレームはP
フレームに比べ画質が良いので、静止フレーム符号化よ
りも画質をきれいにすることができる。
Further, by the image coding device 200,
If the frame immediately after the start of stillness is encoded as an I frame, the encoded bit stream has a feature that the frame immediately after the start of stillness is always encoded as an I frame. Therefore, the I frame is P
Since the image quality is better than that of frames, the image quality can be better than that of still frame coding.

【0110】また、上記画像符号化装置200により、
静止開始直後のフレームについて量子化パラメータ値を
小さく制御し、後続の静止フレームにおいて量子化パラ
メータ値を通常の値よりも大きくなるよう制御すれば、
符号化されたビットストリームは、静止画像の後続静止
フレームにおいて量子化パラメータ値が大きな値となっ
ている、という特徴を有する。これは、後続静止フレー
ムの量子化パラメータ値を大きくするとスキップマクロ
ブロックが多くなり、静止フレーム符号化した画像を表
示することになり、高画質の画像を表示可能となる。ま
た、静止し始めた直後のフレームを静止フレームとして
量子化パラメータ値を小さくして符号化すると1フレー
ムの発生符号量は多くなるが、後続静止フレームについ
て量子化パラメータ値を大きくすれば逆に1フレームあ
たりの発生符号量は少なくなるため、静止画像間での発
生符号量は平均化され、その結果、平均発生符号量(ビ
ットレート)はほぼ一定になる。
Further, by the image coding device 200,
If the quantization parameter value is controlled to be small for the frame immediately after the start of stillness, and the quantization parameter value is controlled to be larger than the normal value in the subsequent still frames,
The encoded bit stream has a feature that the quantization parameter value is large in the subsequent still frame of the still image. This means that when the quantization parameter value of the subsequent still frame is increased, the number of skip macroblocks is increased, and a still frame-coded image is displayed, so that a high quality image can be displayed. Also, when the frame immediately after the start of stillness is set as a still frame and the quantization parameter value is reduced and encoded, the generated code amount of one frame increases, but if the quantization parameter value of the subsequent still frame is increased, it becomes 1 Since the generated code amount per frame is small, the generated code amount between the still images is averaged, and as a result, the average generated code amount (bit rate) becomes substantially constant.

【0111】このような特徴を有する画像符号化データ
(ビットストリーム)は、通常使用される画像復号化装
置により復号化することができ、さらに、従来の画像符
号化装置によるビットストリームよりも高画質な画像を
再生することができる。また、画像復号化装置として、
上述の通常の復号化処理を行うのではなく、後続の静止
フレームのデコードにおいて、スキップマクロブロック
数が全マクロブロック数に対して所定の方法で求められ
た個数以上となった場合に、当該フレームの表示を行わ
ないスキップフレームと判断し、次フレームのデコード
処理を開始するようにすれば、高画質の画像の再生が得
られるだけでなく、デコード処理における演算量を削減
することも可能となる。
The image coded data (bitstream) having such characteristics can be decoded by a commonly used image decoding device, and the image quality is higher than that of the bitstream by the conventional image coding device. It is possible to reproduce various images. Also, as an image decoding device,
Instead of performing the above normal decoding process, when decoding the subsequent still frame, if the number of skip macroblocks is equal to or more than the number obtained by a predetermined method with respect to the total number of macroblocks, the frame concerned is skipped. If it is determined that the skip frame is not displayed and the decoding process of the next frame is started, not only a high-quality image can be reproduced, but also the amount of calculation in the decoding process can be reduced. .

【0112】また、本実施の形態2で示したフラグによ
る画像の静止判定とそれを用いて高画質に符号化すると
いう方法を双方向予測符号化する(時間的に過去のフレ
ーム、もしくは時間的に未来のフレームを参照する)フ
レーム(Bフレーム)の場合には適用しない。つまり、
フラグの更新やそれに伴う量子化パラメータの制御を行
わずに、通常の符号化を行うようにすれば、予測画像と
して用いない(その後のフレームの参照フレームとなら
ない)フレーム(Bフレーム)については発生符号量の
増加を抑制することができる。そして、静止し始めて2
フレーム後のPフレーム(つまり後続のフレームに参照
されるフレーム)が静止フレームとして高画質に符号化
されるので、それ以降の上記静止フレーム符号化したフ
レームを参照するフレームの画質改善がなされる。
In addition, bidirectional predictive coding is performed by the method of determining the stillness of an image by the flag shown in the second embodiment and coding with high image quality using the flag (temporally past frame or temporally. It does not apply to a frame (referring to a future frame) to a frame (B frame). That is,
If normal encoding is performed without updating the flag or controlling the quantization parameter accordingly, a frame (B frame) that is not used as a prediction image (that does not serve as a reference frame of a subsequent frame) is generated. It is possible to suppress an increase in code amount. And it started to stop 2
Since the P frame after the frame (that is, the frame referred to by the subsequent frame) is encoded with a high image quality as a still frame, the image quality of the subsequent frames that refer to the still frame encoded frame is improved.

【0113】また、当該フレームが静止フレーム符号化
するフレームと判断されており、かつBフレームの場
合、量子化パラメータの制御により通常より小さな量子
化パラメータで高画質に符号化するが、フラグの更新を
行わないようにすれば、静止フレームと判断されたフレ
ームを参照するBフレームは静止フレーム符号化(高画
質に符号化)され、かつ後続の参照フレームとなる次P
フレームも静止フレーム符号化されるので、その後の後
続静止フレームにおいても画質の改善を行うことができ
る。
If the frame is determined to be a still frame and the frame is a B frame, high quality image is encoded with a quantization parameter smaller than usual by controlling the quantization parameter, but the flag is updated. If not performed, the B frame that refers to the frame that is determined to be a still frame is still frame encoded (encoded with high image quality) and becomes the subsequent reference frame.
Since the frame is also still frame encoded, the image quality can be improved in the subsequent still frame.

【0114】なお、上記実施の形態2による画像符号化
方法は、MPEG−2、MPEG−4、H.261、お
よびH.263等の標準化画像符号化方法に取り入れる
ことが出来る。ただし、MPEG−4規格では、マクロ
ブロックの量子化パラメータ値の変動は±2の範囲内と
規定されている。
The image coding method according to the second embodiment is based on MPEG-2, MPEG-4, H.264. 261 and H.H. It can be incorporated into standardized image coding methods such as H.263. However, the MPEG-4 standard stipulates that the variation of the quantization parameter value of the macroblock is within ± 2.

【0115】(実施の形態3)以下に、本発明の実施の
形態3による画像符号化装置及び画像符号化方法につい
て説明する。本実施の形態3による画像符号化装置30
0は、図13に示すような構成であり、符号化しようと
する画像に対して、静止しているフレームを判定し、静
止し始めたフレームから2フレーム後のフレームにおい
て他のフレームに比べて高画質の符号化(静止フレーム
符号化)を行うものである。
(Embodiment 3) An image coding apparatus and an image coding method according to Embodiment 3 of the present invention will be described below. Image coding apparatus 30 according to the third embodiment
0 is a configuration as shown in FIG. 13, which determines a still frame for an image to be encoded, and a frame two frames after the frame that has started to be stationary is compared with other frames. High-quality coding (still frame coding) is performed.

【0116】なお、本実施の形態3の画像符号化装置
と、実施の形態2の画像符号化装置200とは、静止フ
レーム符号化を行うか否かの判定を行う静止フレーム符
号化判定器15の処理、およびスキップマクロブロック
判定器4の処理が異なるため、この相違部分について以
下に説明する。
The image coding apparatus according to the third embodiment and the image coding apparatus 200 according to the second embodiment include the still frame coding determiner 15 that determines whether or not to perform still frame coding. Since the processing of 1 and the processing of the skip macroblock determiner 4 are different, the difference will be described below.

【0117】まず、本実施の形態3における、スキップ
マクロブロック判定器4の動作について説明する。スキ
ップマクロブロック判定器4は、外部から入力される当
該フレームの符号化方法を示すフレーム符号化信号s1
1が入力されると、スキップマクロブロックの判定処理
を開始する。
First, the operation of the skip macroblock determiner 4 in the third embodiment will be described. The skip macroblock determiner 4 is a frame coded signal s1 that is input from the outside and indicates the coding method of the frame.
When 1 is input, the skip macroblock determination process is started.

【0118】上記入力信号s11が画面内予測符号化フ
レーム(Iフレーム)を示す信号である場合、ブロック
化器1の出力である画像信号s10を圧縮符号化手段5
に出力するようスイッチ17が制御され、圧縮符号化手
段5により圧縮符号化される。
When the input signal s11 is a signal indicating an intra-frame predictive coding frame (I frame), the image signal s10 output from the blocker 1 is compressed and coded by the compression coding means 5.
The switch 17 is controlled so as to output the data, and the data is compressed and encoded by the compression encoder 5.

【0119】また、上記入力信号s11がIフレームを
示さない信号である場合は、上記減算手段2の出力であ
る当該マクロブロックの差分値s1の絶対値和Xと、所
定の方法により決定された閾値THR_Hとを比較する
(ステップS1201)。なお、閾値THR_Hは、量
子化パラメータ値s3に値α1(0<α1<1)を乗算
したものである。
When the input signal s11 is a signal that does not indicate an I frame, the sum of absolute values X of the difference values s1 of the macro block output from the subtracting means 2 and the absolute value sum X are determined by a predetermined method. The threshold value THR_H is compared (step S1201). The threshold value THR_H is obtained by multiplying the quantization parameter value s3 by the value α1 (0 <α1 <1).

【0120】上記差分値s1の絶対値和Xが上記閾値T
HR_H以上である場合、ステップ1202に進み、当
該マクロブロックをイントラマクロブロックと決定す
る。これにより、ブロック化器1の出力信号s10が圧
縮符号化手段5で圧縮符号化される。
The sum X of absolute values of the difference value s1 is the threshold value T
If it is greater than or equal to HR_H, the process proceeds to step 1202, and the macro block is determined to be an intra macro block. As a result, the output signal s10 of the blocker 1 is compression encoded by the compression encoding means 5.

【0121】一方、上記差分値s1の絶対値和Xが閾値
THR_H以下である場合、ステップ1203に進み、
上記絶対値和Xと、所定の方法により決定された閾値T
HR_Lとを比較する(S1203)。ここで、閾値T
HR_Lは、量子化パラメータ値s3に値α2(0<α
2<α1)を乗算したものである。
On the other hand, if the absolute value sum X of the difference values s1 is less than or equal to the threshold value THR_H, the process proceeds to step 1203,
The sum X of absolute values and the threshold T determined by a predetermined method
It is compared with HR_L (S1203). Where the threshold T
HR_L has a value α2 (0 <α
2 <α1).

【0122】上記ステップS1203において、上記差
分値s1の絶対値和Xが上記閾値THR_L以上の場
合、ステップ1204に進み、当該マクロブロックをイ
ンターマクロブロックとする。これにより、減算手段2
の出力s1が圧縮符号化手段5で圧縮符号化される。
When the absolute value sum X of the difference values s1 is equal to or more than the threshold value THR_L in step S1203, the process proceeds to step 1204, and the macro block is set as an inter macro block. Thereby, the subtraction means 2
The output s1 of the above is compressed and encoded by the compression encoding means 5.

【0123】また、上記S1203において、上記差分
値s1の絶対値和Xが上記閾値THR_Lより小さい場
合、ステップ1205に進み、当該マクロブロックをス
キップマクロブロックとする。これにより、スキップマ
クロブロック信号s2が可変長符号化器8に出力され
る。
If the sum X of the absolute values of the difference value s1 is smaller than the threshold value THR_L in step S1203, the flow advances to step 1205 to set the macroblock as a skip macroblock. As a result, the skip macroblock signal s2 is output to the variable length encoder 8.

【0124】以上のように、スキップマクロブロック判
定器4は、外部から入力される当該フレームを画面内予
測符号化するか、画面間予測符号化するかというフレー
ム符号化方法を示す信号s11と、量子化パラメータ値
制御器16からの出力である量子化パラメータ値s3を
入力とし、当該マクロブロックを画面内予測符号化(イ
ントラマクロブロック)とするか、画面間予測符号化
(インターマクロブロック)とするかを判定する。
As described above, the skip macroblock determiner 4 outputs the signal s11 indicating the frame coding method of intraframe predictive coding or interframe predictive coding of the frame input from the outside, The quantization parameter value s3, which is the output from the quantization parameter value controller 16, is input and the macroblock is intra-picture predictive coding (intra macroblock) or inter-picture predictive coding (inter macroblock). Determine whether to do.

【0125】次に、本実施の形態3による画像符号化装
置300の、静止フレーム符号化判定器15の処理につ
いて図15を用いて説明する。図15の中で用いられる
フラグは、当該マクロブロックの符号化方法(符号化タ
イプ)を表す3値のフラグであり、上記実施の形態2で
説明したものと同様である。なお、図15で用いる3値
のフラグは、その値を0、1、2と限定するものではな
い。
Next, the processing of the still frame coding decision unit 15 of the image coding apparatus 300 according to the third embodiment will be described with reference to FIG. The flag used in FIG. 15 is a ternary flag indicating the encoding method (encoding type) of the macroblock, and is the same as that described in the second embodiment. The three-valued flag used in FIG. 15 is not limited to 0, 1, and 2.

【0126】当該フレームの符号化が開始され、静止フ
レーム符号化判定器15の処理が開始されると、静止フ
レーム符号化判定器15は、まず、スキップマクロブロ
ック判定器4の出力s4を用いて、当該マクロブロック
がスキップマクロブロックか否かを判断する(ステップ
S1301)。当該マクロブロックがスキップマクロブ
ロックでない場合、当該マクロブロックのフラグ値を0
とする(ステップS1302)。
When the coding of the frame is started and the processing of the still frame coding determiner 15 is started, the still frame coding determiner 15 first uses the output s4 of the skip macroblock determiner 4. Then, it is determined whether the macro block is a skip macro block (step S1301). If the macro block is not a skip macro block, set the flag value of the macro block to 0.
(Step S1302).

【0127】また、当該マクロブロックがスキップマク
ロブロックである場合は、参照マクロブロックのフラグ
値を参照する(ステップS1303)。上記参照マクロ
ブロックのフラグの値が0であれば、当該マクロブロッ
クのフラグの値を1とし(ステップS1304)、そう
でなければ、ステップS1305に進み、当該フレーム
が静止フレーム符号化であるか否かを判定する。当該フ
レームが静止フレーム符号化でない場合は、当該マクロ
ブロックのフラグの値を参照マクロブロックのフラグ値
と同じものとする(ステップS1306)。当該フレー
ムが静止フレーム符号化である場合は、当該マクロブロ
ックのフラグの値を2とする(ステップS1307)。
If the macro block is a skip macro block, the flag value of the reference macro block is referenced (step S1303). If the flag value of the reference macroblock is 0, the flag value of the macroblock is set to 1 (step S1304). If not, the process proceeds to step S1305, and the frame is still frame encoded or not. To determine. If the frame is not still frame coded, the flag value of the macroblock is set to be the same as the flag value of the reference macroblock (step S1306). If the frame is still frame encoded, the flag value of the macroblock is set to 2 (step S1307).

【0128】以上の処理は当該フレームの全マクロブロ
ックの符号化において行い、当該フレームの全マクロブ
ロックの符号化が終了するまで繰り返す。全マクロブロ
ックの符号化処理を終了すると、フラグ1となるマクロ
ブロックの数Fが閾値THRcより大きいかを判定する
(ステップS1308)。ここで閾値THRcは、当該
フレームの全マクロブロック数に値δ(0<δ<1)を
乗算した値とする。
The above processing is performed in the coding of all the macroblocks of the frame, and is repeated until the coding of all the macroblocks of the frame is completed. When the encoding process of all macroblocks is completed, it is determined whether the number F of macroblocks having flag 1 is larger than the threshold value THRc (step S1308). Here, the threshold value THRc is a value obtained by multiplying the total number of macroblocks in the frame by a value δ (0 <δ <1).

【0129】上記ステップS1308において、フラグ
1となるマクロブロックの数Fが閾値THRcより大き
い場合は、次符号化フレームを静止フレーム符号化する
ものとし(ステップS1310)、そうでない場合は、
次符号化フレームを通常の符号化とする(ステップS1
309)。
At step S1308, if the number F of macroblocks having flag 1 is larger than the threshold value THRc, the next coded frame is assumed to be still frame coded (step S1310), and if not,
The next encoded frame is encoded normally (step S1).
309).

【0130】以上のように、静止フレーム符号化判定器
15は、当該マクロブロックの符号化方法(スキップマ
クロブロックであるか否か)をスキップマクロブロック
判定器4の出力から取得し、さらに、静止フレーム符号
化判定器15内部に保持されている直前フレーム符号化
において決定された当該フレームの符号化方法(静止フ
レームであるか否か)、および参照マクロブロックに与
えられたマクロブロックの符号化方法(符号化タイプ)
を表すフラグ値を用いて、次符号化フレームを静止フレ
ーム符号化するか否かの判定を行い、当該フレームの符
号化においては前フレーム符号化時に決定された結果を
用いる。
As described above, the still frame coding decision unit 15 obtains the coding method (whether or not it is a skip macro block) of the macro block from the output of the skip macro block decision unit 4, and further The encoding method of the frame (whether or not it is a still frame) determined in the immediately preceding frame encoding held in the frame encoding determiner 15, and the encoding method of the macroblock given to the reference macroblock. (Encoding type)
It is determined whether or not the next coded frame is to be still frame coded by using a flag value that represents, and the result determined at the time of coding the previous frame is used in the coding of the frame.

【0131】なお、画像符号化装置300においては、
量子化器7での差分符号化において量子化パラメータ値
を外部から入力される量子化パラメータ値としても良
い。
In the image coding device 300,
In the differential encoding in the quantizer 7, the quantization parameter value may be the quantization parameter value input from the outside.

【0132】また、当該マクロブロックの符号化におい
て、スキップマクロブロック判定器4における当該マク
ロブロックをスキップマクロブロックとするか否かの判
定において、図5の画像符号化装置110に示したよう
に、静止フレーム符号化判定手段の出力を用いるように
しても良い。
In the coding of the macroblock, the skip macroblock determiner 4 determines whether or not the macroblock is a skip macroblock, as shown in the image coding apparatus 110 of FIG. The output of the still frame coding determination means may be used.

【0133】このような本実施の形態3による画像符号
化装置では、各マクロブロックに静止フレーム符号化を
行うか否かに用いるフラグを与え、参照フレームの符号
化方法、参照マクロブロックのフラグ値、および当該マ
クロブロックの状態(スキップマクロブロックか否か、
静止フレーム符号化か否か)から次符号化フレームを静
止フレーム符号化するか否かの判定処理を容易に実現す
ることができ、マクロブロックの単位で量子化パラメー
タ値を制御することにより、上記実施の形態1でも示し
たように、当該マクロブロックのスキップマクロブロッ
ク判定時、および差分符号化時の量子化において、符号
化誤差をできるだけ少なく符号化することができ、か
つ、画面内予測符号化を行うフレームおよびマクロブロ
ックに対しては、上記静止フレーム符号化を適用しない
ことで量子化幅を小さくすることなく、符号化における
発生符号量を抑えることができる。
In the image coding apparatus according to the third embodiment as described above, a flag used to determine whether or not still frame coding is performed is given to each macroblock, the reference frame coding method, and the reference macroblock flag value. , And the state of the macroblock (whether it is a skip macroblock,
Whether or not still frame coding is performed), it is possible to easily realize whether or not the next coded frame is still frame coded, and by controlling the quantization parameter value in units of macroblocks, As shown in the first embodiment, it is possible to perform coding with the least possible coding error in the skip macroblock determination of the macroblock and in the quantization at the time of differential coding, and the intraframe prediction coding is possible. By not applying the still frame coding to the frames and macroblocks for which the coding is performed, it is possible to suppress the generated code amount in the coding without reducing the quantization width.

【0134】なお、上記実施の形態3による画像符号化
装置において、外部から入力されたフレームの符号化方
法を示す信号が画面内予測符号化(Iフレーム)を示す
信号であるとき、被符号化フレームが静止フレームであ
ると判断されると、Iフレームとして符号化するのでは
なく、画面間予測符号化を行うようにすれば、参照画像
が高画質データであるので、画質劣化が少なく、かつ発
生符号量を削減することができる。ここで、上記実施の
形態3による画像符号化装置300により符号化された
画像符号化データ(ビットストリーム)は、次のような
特徴を有する。
In the image coding apparatus according to the third embodiment, when the signal indicating the coding method of the frame input from the outside is the signal indicating the intra-frame predictive coding (I frame), the coding is performed. If it is determined that the frame is a still frame, inter-frame predictive coding is performed instead of encoding as an I frame, so that the reference image is high-quality data, and image quality deterioration is small, and The generated code amount can be reduced. Here, the image coded data (bit stream) coded by the image coding apparatus 300 according to the third embodiment has the following features.

【0135】上記画像符号化装置300により、静止し
始めたフレームの次のフレームが必ず高画質に符号化さ
れるので、符号化されたビットストリームは、従来の画
像符号化装置で符号化されたビットストリームに比べ、
静止開始直後のフレームは他のPフレームよりも量子化
パラメータ値が小さな値となっており、該量子化パラメ
ータ値が小さくなったフレーム直後のフレームはスキッ
プマクロブロックとなる割合が多くなっている、という
特徴を有する。これは、高画質符号化されたフレームの
画質がきれいであるほど、後続の静止フレームにおいて
差分値が小さくなるため、スキップマクロブロックの割
合が多くなり、その結果、後続フレームを高画質にする
ことができる。
Since the image encoding device 300 always encodes the frame next to the frame that has started to be stationary with high image quality, the encoded bit stream was encoded by the conventional image encoding device. Compared to bitstream
The frame immediately after the start of stillness has a smaller quantization parameter value than the other P frames, and the frame immediately after the frame having the smaller quantization parameter value has a higher proportion of skip macroblocks. It has the feature. This is because the higher the image quality of the high-quality coded frame, the smaller the difference value in the subsequent still frame, and the larger the proportion of skip macroblocks, and the higher the quality of the subsequent frame. You can

【0136】また、上記画像符号化装置300により、
静止開始直後のフレームを、Iフレームとして符号化す
るようにすれば、符号化されたビットストリームは、静
止開始直後のフレームは必ずIフレームとして符号化さ
れている、という特徴を有する。従って、Iフレームは
Pフレームに比べ画質が良いので、静止フレーム符号化
よりも画質をきれいにすることができる。
Further, by the image coding device 300,
If the frame immediately after the start of stillness is encoded as an I frame, the encoded bitstream has a feature that the frame immediately after the start of stillness is always encoded as an I frame. Therefore, since the I frame has a better image quality than the P frame, the image quality can be better than that of the still frame coding.

【0137】また、上記画像符号化装置300により、
静止開始直後のフレームについては、量子化パラメータ
値を小さく制御し、後続の静止フレームにおいて量子化
パラメータ値を通常の値よりも大きくなるよう制御すれ
ば、符号化されたビットストリームは、静止画像の後続
静止フレームにおいて量子化パラメータ値が大きな値と
なっている、という特徴を有する。これは、後続静止フ
レームの量子化パラメータ値を大きくするとスキップマ
クロブロックが多くなり、静止フレーム符号化した画像
を表示することになり、高画質の画像を表示可能とな
る。また、静止し始めた直後のフレームを静止フレーム
として量子化パラメータ値を小さくして符号化すると1
フレームの発生符号量は多くなるが、後続静止フレーム
について量子化パラメータ値を大きくすれば逆に1フレ
ームあたりの発生符号量は少なくなるため、静止画像間
での発生符号量は平均化され、その結果、平均発生符号
量(ビットレート)はほぼ一定になる。
Further, by the image coding device 300,
For the frame immediately after the start of stillness, the quantization parameter value is controlled to be small, and the quantization parameter value is controlled to be larger than the normal value in the subsequent still frames. It is characterized in that the quantization parameter value is large in the subsequent still frame. This means that when the quantization parameter value of the subsequent still frame is increased, the number of skip macroblocks is increased, and a still frame-coded image is displayed, so that a high quality image can be displayed. Further, if the frame immediately after the start of stillness is set as a still frame and the quantization parameter value is reduced and encoding is performed, 1
Although the generated code amount of a frame increases, the generated code amount per frame decreases on the contrary when the quantization parameter value for the subsequent still frame is increased. Therefore, the generated code amount between still images is averaged. As a result, the average generated code amount (bit rate) becomes almost constant.

【0138】また、上記画像符号化装置300により、
静止フレームと判断されているときは、Iフレーム符号
化の指示が外部から入力されても、画面間予測符号化を
行うようにすれば、静止が続く後続静止フレームでは必
ずIフレームが挿入されていない、という特徴を有す
る。これは、参照画像が高画質となるので、画質劣化を
防ぎ、かつ、発生符号量を削減することができる。
Further, by the image coding device 300,
When it is determined that the frame is a still frame, even if an I-frame coding instruction is input from the outside, if the inter-frame predictive coding is performed, the I frame is always inserted in the subsequent still frame in which stillness continues. It has the characteristic that it does not exist. Since the reference image has high image quality, it is possible to prevent image quality deterioration and reduce the generated code amount.

【0139】このような特徴を有する画像符号化データ
(ビットストリーム)は、通常使用される画像復号化装
置により復号化することができ、さらに、従来の画像符
号化装置によるビットストリームよりも高画質な画像を
再生することができる。また、画像復号化装置として、
上述の通常の復号化処理を行うのではなく、後続の静止
フレームのデコードにおいて、スキップマクロブロック
数が全マクロブロック数に対して所定の方法で求められ
た個数以上となった場合に、当該フレームの表示を行わ
ないスキップフレームと判断し、次フレームのデコード
処理を開始するようにすれば、高画質の画像の再生が得
られるだけでなく、デコード処理における演算量を削減
することも可能となる。
The coded image data (bitstream) having such characteristics can be decoded by a commonly used image decoding device, and further has a higher image quality than a bitstream by a conventional image coding device. It is possible to reproduce various images. Also, as an image decoding device,
Instead of performing the above normal decoding process, when decoding the subsequent still frame, if the number of skip macroblocks is equal to or more than the number obtained by a predetermined method with respect to the total number of macroblocks, the frame concerned is skipped. If it is determined that the skip frame is not displayed and the decoding process of the next frame is started, not only a high-quality image can be reproduced, but also the amount of calculation in the decoding process can be reduced. .

【0140】なお、上記実施の形態3による画像符号化
方法は、MPEG−2、MPEG−4、H.261、お
よびH.263等の標準化画像符号化方法に取り入れる
ことができる。ただし、MPEG−4規格では、マクロ
ブロックの量子化パラメータ値の変動は±2の範囲内と
規定されている。
The image coding method according to the third embodiment is based on MPEG-2, MPEG-4, H.264. 261 and H.H. It can be incorporated into standardized image coding methods such as H.263. However, the MPEG-4 standard stipulates that the variation of the quantization parameter value of the macroblock is within ± 2.

【0141】また、上記各実施の形態1〜3では、入力
画像はフレーム単位であるものとして説明しているがこ
れに限定する必要はなく、フィールド単位などであって
も同様の効果を得ることができる。さらに、上記各実施
の形態1〜3では、本発明の画像符号化方法をハードウ
ェアにより実現したものを示したが、ソフトウェアによ
り実現しても良い。
In each of the first to third embodiments described above, the input image is described in frame units, but the present invention is not limited to this, and similar effects can be obtained in field units. You can Furthermore, in each of the above-described first to third embodiments, the image coding method of the present invention is realized by hardware, but it may be realized by software.

【0142】[0142]

【発明の効果】以上のように、本発明の請求項1に記載
の画像符号化方法によれば、符号化対象である被符号化
フレームを処理単位であるマクロブロックにブロック化
し、当該フレームと参照フレームとの差分値を求め、該
差分値を符号化する画像符号化方法であって、上記被符
号化フレームが静止している静止フレームであるかを判
定する静止フレーム判定ステップと、上記静止フレーム
判定ステップにて、静止フレームと判断されたフレーム
のうち、少なくとも1フレームに対してその他のフレー
ムの符号化に比べて高画質に符号化する静止フレーム符
号化を行う高画質符号化ステップと、を含むことより、
静止フレームである被符号化フレームを特定し、少なく
とも1フレームに対して高画質符号化を行うことで、従
来のように全ての静止フレームを高画質に符号化するこ
とによる発生符号量の増加を抑え、かつ、後続のフレー
ムも画質を改善することができる。
As described above, according to the image coding method of the first aspect of the present invention, the coded frame to be coded is divided into macroblocks which are processing units, and An image encoding method for obtaining a difference value from a reference frame and encoding the difference value, the still frame determining step of determining whether or not the encoded frame is a still frame, In the frame determination step, a high image quality encoding step of performing still frame encoding in which at least one frame of the frames determined to be still frames is encoded with a higher image quality than the encoding of other frames, Than including
By specifying the encoded frame that is a still frame and performing high image quality encoding on at least one frame, it is possible to increase the amount of generated code by encoding all still frames with high image quality as in the conventional case. The image quality can be suppressed and the quality of the subsequent frames can be improved.

【0143】また、本発明の請求項2に記載の画像符号
化方法によれば、請求項1に記載の画像符号化方法にお
いて、上記静止フレーム判定ステップは、上記被符号化
フレームと上記参照フレームとの差分値に基づいて上記
判定を行うようにしたので、静止し始めたフレームの次
フレームを特定し、該次フレームに対して高画質符号化
を行うことができ、その結果、後続のフレームも高画質
になる。
According to the image coding method of the second aspect of the present invention, in the image coding method of the first aspect, the still frame determining step includes the coded frame and the reference frame. Since the above determination is made based on the difference value between the frame and the frame, the next frame of the frame that has started to be stationary can be specified, and high-quality encoding can be performed on the next frame. Also becomes high quality.

【0144】また、本発明の請求項3に記載の画像符号
化方法によれば、請求項1に記載の画像符号化方法にお
いて、上記高画質符号化ステップは、上記静止フレーム
と判定された被符号化フレームに対して静止フレーム符
号化を行うか、あるいは、通常フレーム符号化を行うか
を判定する静止フレーム符号化判定ステップと、上記静
止フレーム符号化判定ステップにて判定された符号化方
法に基づいて外部から入力された量子化パラメータの量
子化幅を制御する量子化パラメータ値制御ステップと、
上記量子化パラメータ値制御ステップにて制御された上
記量子化パラメータと上記差分値とを用いて、上記被符
号化フレームの各マクロブロックがスキップマクロブロ
ックであるか否かを判定するスキップマクロブロック判
定ステップと、上記スキップマクロブロック判定ステッ
プにて得られた、上記各マクロブロックの判定結果に基
づいて上記被符号化フレームの符号化を行う符号化ステ
ップと、を含むことより、スキップマクロブロックと判
定されるマクロブロックの数が抑制することができ、そ
の結果、発生符号量の増加を防いで、画質の劣化を生じ
させることなく、静止フレームと判断された被符号化フ
レームを高画質に符号化することができる。
According to the image coding method of the third aspect of the present invention, in the image coding method of the first aspect, the high image quality coding step is performed on the object determined to be the still frame. The still frame coding determination step for determining whether to perform still frame coding or normal frame coding for the coded frame, and the coding method determined in the still frame coding determination step A quantization parameter value control step of controlling the quantization width of the quantization parameter input from the outside based on
Skip macroblock determination for determining whether or not each macroblock of the frame to be encoded is a skip macroblock using the quantization parameter and the difference value controlled in the quantization parameter value control step It is determined to be a skip macroblock by including a step and an encoding step that encodes the encoded frame based on the determination result of each macroblock obtained in the skip macroblock determination step. As a result, the number of generated macroblocks can be suppressed, and as a result, it is possible to prevent an increase in the amount of generated code and to encode a coded frame determined to be a still frame with high image quality without degrading image quality. can do.

【0145】また、本発明の請求項4に記載の画像符号
化方法によれば、請求項1に記載の画像符号化方法にお
いて、上記高画質符号化ステップは、上記静止フレーム
と判定された被符号化フレームに対して静止フレーム符
号化を行うか、あるいは、通常フレーム符号化を行うか
を判定する静止フレーム符号化判定ステップと、上記静
止フレーム符号化判定ステップにて上記被符号化フレー
ムは静止フレーム符号化をしないフレームであると判定
された場合、上記被符号化フレームと参照フレームとの
差分値と所定の閾値とを用いて該被符号化フレームの各
マクロブロックがスキップマクロブロックであるか否か
を判定し、上記静止フレーム符号化判定ステップにて上
記被符号化フレームは静止フレーム符号化をするフレー
ムであると判定された場合、上記所定の閾値を小さくな
るよう制御し、該制御された閾値と上記被符号化フレー
ムと参照フレームとの差分値とを用いて該被符号化フレ
ームの各マクロブロックがスキップマクロブロックであ
るか否かを判定するスキップマクロブロック判定ステッ
プと、上記スキップマクロブロック判定ステップにて得
られた、上記各マクロブロックの判定結果に基づいて上
記被符号化フレームの符号化を行う符号化ステップと、
を含むことより、スキップマクロブロックと判定される
マクロブロックの数が抑制することができ、その結果、
発生符号量の増加を防いで、画質の劣化を生じさせるこ
となく、静止フレームと判断された被符号化フレームを
高画質に符号化することができる。
Further, according to the image coding method of the fourth aspect of the present invention, in the image coding method of the first aspect, the high image quality coding step is performed on the object determined to be the still frame. In the still frame coding determination step of determining whether to perform still frame coding or normal frame coding for the coded frame, and in the still frame coding determination step, the coded frame remains stationary. When it is determined that the frame is not frame-encoded, whether each macroblock of the encoded frame is a skip macroblock using the difference value between the encoded frame and the reference frame and a predetermined threshold value. It is determined whether or not the frame to be encoded is a frame for still frame encoding in the still frame encoding determination step. If the predetermined threshold is controlled to be small, each macroblock of the encoded frame is a skip macroblock using the controlled threshold and the difference value between the encoded frame and the reference frame. A skip macroblock determining step for determining whether or not there is, and an encoding step for encoding the encoded frame based on the determination result of each macroblock obtained in the skip macroblock determining step, ,
By including, it is possible to suppress the number of macroblocks determined to be skip macroblocks, as a result,
It is possible to prevent an increase in the amount of generated code, and to encode a coded frame determined to be a still frame with high image quality without causing deterioration in image quality.

【0146】また、本発明の請求項5に記載の画像符号
化方法によれば、請求項1に記載の画像符号化方法にお
いて、上記被符号化フレームの前フレームの符号化にお
いて決定された上記被符号化フレームの符号化情報に基
づいて上記被符号化フレームの次フレームが、静止フレ
ーム符号化を行うフレームであるか、あるいは通常フレ
ーム符号化を行うフレームであるかを判定する静止フレ
ーム符号化判定ステップと、上記静止フレーム判定ステ
ップにて判定された符号化方法に基づいて外部から入力
された量子化パラメータの量子化幅を制御する量子化パ
ラメータ値制御ステップと、上記量子化パラメータ値制
御ステップにて制御された上記量子化パラメータと上記
差分値とを用いて、上記被符号化フレームの各マクロブ
ロックがスキップマクロブロックであるか否かを判定す
るスキップマクロブロック判定ステップと、上記静止フ
レーム符号化判定ステップの判定結果に基づいて上記被
符号化フレームの次フレームの符号化方法を決定し、か
つ、上記被符号化フレームの符号化を上記前フレームの
符号化において決定された符号化情報に基づいて行う符
号化ステップとを含むことより、量子化誤差の少ない、
高画質符号化を行うことができる。
Further, according to the image coding method of the fifth aspect of the present invention, in the image coding method of the first aspect, it is determined that the preceding frame of the frame to be coded is determined. Still frame coding for determining whether the next frame of the coded frame is a frame for still frame coding or a frame for normal frame coding based on the coding information of the frame to be coded A determination step, a quantization parameter value control step of controlling a quantization width of a quantization parameter input from the outside based on the encoding method determined in the still frame determination step, and the quantization parameter value control step Each macroblock of the coded frame is skipped by using the quantization parameter and the difference value controlled by A skip macroblock determining step for determining whether or not the block is a black block, and a coding method for the next frame of the coded frame based on the determination result of the still frame coding determining step, and By including the encoding step of encoding the encoded frame based on the encoding information determined in the encoding of the previous frame, there is less quantization error,
High quality coding can be performed.

【0147】また、本発明の請求項6に記載の画像符号
化方法によれば、請求項1に記載の画像符号化方法にお
いて、上記静止フレーム判定ステップは、上記参照フレ
ームの各マクロブロックが有する、当該マクロブロック
の符号化方法をあらわす符号化タイプに基づいて行うよ
うにしたので、被符号化フレームの静止フレーム判定に
おける演算量を抑えることができ、さらに、静止し始め
たフレームの2フレーム後のフレームを特定し、該フレ
ームのみを高画質に符号化し、その結果、従来よりも発
生符号量を抑えることができ、かつ、後続のフレームも
高画質となる。
According to the image coding method of the sixth aspect of the present invention, in the image coding method of the first aspect, the still frame determination step has each macroblock of the reference frame. Since the coding method of the macroblock is performed based on the coding type that represents the coding method, it is possible to reduce the amount of calculation in the still frame determination of the frame to be coded. Is specified and only that frame is encoded with high image quality. As a result, the generated code amount can be suppressed more than before, and the subsequent frames also have high image quality.

【0148】また、本発明の請求項7に記載の画像符号
化方法によれば、請求項6に記載の画像符号化方法にお
いて、上記各マクロブロックの符号化タイプは、上記被
符号化マクロブロックがスキップマクロブロックである
か否かを示す第1のフラグと、上記被符号化マクロブロ
ックがスキップマクロブロックのとき、被符号化フレー
ムが静止フレーム符号化であるか否かを示す第2,第3
のフラグ、の3値のフラグであり、被符号化マクロブロ
ックが参照するマクロブロックの上記フラグ値に応じて
被符号化マクロブロックのフラグは更新されるものとし
たので、一度、高画質符号化されたマクロブロックは以
降の処理で高画質符号化されることなく、スキップマク
ロブロックと判断され、その結果、最初のフレームのみ
を高画質に符号化することができ、また、被符号化フレ
ームの静止フレーム判定における演算量を抑えることが
できる。
According to the image coding method of the seventh aspect of the present invention, in the image coding method of the sixth aspect, the coding type of each macroblock is the coded macroblock. Is a skip macroblock, and a second flag indicating whether the coded frame is still frame coded when the coded macroblock is a skip macroblock. Three
Is a three-valued flag, and the flag of the encoded macroblock is updated according to the flag value of the macroblock referred to by the encoded macroblock. The determined macroblock is judged as a skip macroblock without being subjected to high image quality encoding in the subsequent processing, and as a result, only the first frame can be encoded in high image quality and the encoded frame It is possible to suppress the calculation amount in the still frame determination.

【0149】また、本発明の請求項8に記載の画像符号
化方法によれば、請求項1に記載の画像符号化方法にお
いて、上記高画質符号化ステップは、画面内予測符号化
のみを行うIフレームに対しては高画質符号化をしない
ようにしたので、画面内予測符号化を行うフレームに対
しては、静止フレーム符号化を行わず、その結果、量子
化幅を小さくする必要がなくなり、発生符号量の増加を
より抑えることができる。
According to the image coding method of the eighth aspect of the present invention, in the image coding method of the first aspect, the high image quality coding step only performs intra-frame predictive coding. Since the high quality coding is not performed for the I frame, the still frame coding is not performed for the frame for which the intra prediction coding is performed, and as a result, it is not necessary to reduce the quantization width. , It is possible to further suppress an increase in the generated code amount.

【0150】また、本発明の請求項9に記載の画像符号
化方法によれば、請求項1に記載の画像符号化方法にお
いて、上記高画質符号化ステップは、画面内予測符号化
を行うマクロブロックに対して高画質符号化をしないよ
うにしたので、画面内予測符号化を行うマクロブロック
に対しては、静止フレーム符号化を行わず、その結果、
量子化幅を小さくする必要がなくなり、発生符号量の増
加をより抑えることができる。
According to the image coding method of the ninth aspect of the present invention, in the image coding method of the first aspect, the high image quality coding step is a macro for performing intra-picture predictive coding. Since high-quality coding is not performed for blocks, still frame coding is not performed for macroblocks that perform intra-picture predictive coding, and as a result,
It is not necessary to reduce the quantization width, and it is possible to further suppress the increase in the generated code amount.

【0151】また、本発明の請求項10に記載の画像符
号化方法によれば、符号化対象である被符号化フレーム
を処理単位であるマクロブロックにブロック化し、当該
フレームと参照フレームとの差分値を求め、該差分値を
符号化する画像符号化方法であって、上記被符号化フレ
ームの各マクロブロックが静止しているか否かを画面内
予測する静止マクロブロック判定ステップと、上記静止
マクロブロック判定ステップにて静止していると判定さ
れたマクロブロックに対し、他のマクロブロックの符号
化に比べて高画質に符号化するマクロブロック符号化ス
テップと、を含むようにしたので、符号量の発生を押さ
え、かつ、高画質に符号化することができる。
According to the image coding method of the tenth aspect of the present invention, the coded frame to be coded is divided into macroblocks as processing units, and the difference between the frame and the reference frame is calculated. An image encoding method for obtaining a value and encoding the difference value, the method comprising: a still macroblock determining step of predicting in-screen whether or not each macroblock of the encoded frame is still; A macroblock coding step for coding a macroblock that is determined to be still in the block determination step with higher image quality than the coding of other macroblocks is included. It is possible to suppress the occurrence of the error and to encode with high image quality.

【0152】また、本発明の請求項11に記載の画像符
号化方法によれば、請求項1に記載の画像符号化方法に
おいて、上記高画質符号化ステップは、上記静止フレー
ムと判断された被符号化フレームにおいて、各マクロブ
ロックが静止しているか否かを画面内予測する静止マク
ロブロック判定ステップと、上記静止マクロブロック判
定ステップにて静止していると判定されたマクロブロッ
クに対し、他のマクロブロックの符号化に比べて高画質
に符号化するマクロブロック符号化ステップと、を含む
ことより、静止フレーム符号化するフレーム内において
も量子化パラメータの変動による符号化誤差の少ない高
画質な符号化を行うことができる。
Further, according to the image coding method of the eleventh aspect of the present invention, in the image coding method of the first aspect, the high image quality coding step is performed on the object determined to be the still frame. In the encoded frame, a still macroblock determination step of predicting whether or not each macroblock is still in the screen, and other macroblocks determined to be still in the still macroblock determination step By including a macroblock coding step for coding with higher image quality than that for macroblock coding, a high-quality code with less coding error due to fluctuations in quantization parameters even in a frame for still frame coding. Can be converted.

【0153】また、本発明の請求項12に記載の画像符
号化装置によれば、符号化対象である被符号化フレーム
を処理単位であるマクロブロックにブロック化し、上記
被符号化フレームと参照フレームとの差分値を求め、該
差分値に基づいて上記被符号化フレームの符号化を行う
画像符号化装置であって、上記差分値に基づいて、上記
被符号化フレームが静止フレームであるか否かを判断
し、上記静止フレームであると判断した上記被符号化フ
レームが、他のフレームの符号化に比べて高画質に符号
化する静止フレーム符号化を行うフレームであるか、あ
るいは通常フレーム符号化を行うフレームであるかを判
定する静止フレーム符号化判定手段と、上記静止フレー
ム符号化判定手段の出力信号に基づいて外部から入力さ
れた量子化パラメータの量子化幅を制御する量子化パラ
メータ値制御手段と、上記量子化パラメータ値制御手段
により制御された量子化パラメータと上記差分値を用い
て、上記被符号化フレームの各マクロブロックがスキッ
プマクロブロックであるか否かを判定するスキップマク
ロブロック判定手段と、上記スキップマクロブロック判
定手段の出力に基づいて上記被符号化フレームの符号化
を行う符号化手段と、を備えたことより、スキップマク
ロブロックと判定されるマクロブロックの数を抑制し、
静止し始めたフレームの次のフレームを高画質に符号化
することができ、その結果、従来よりも発生符号量を抑
えることができ、かつ、後続のフレームも画質を改善す
ることができる。
According to the twelfth aspect of the image coding apparatus of the present invention, the coded frame to be coded is divided into macroblocks which are processing units, and the coded frame and the reference frame are coded. An image encoding apparatus that obtains a difference value between the encoded frame and the encoded frame based on the difference value, and determines whether the encoded frame is a still frame based on the difference value. Whether the frame to be coded, which has been determined to be the still frame, is a frame for performing still frame encoding that encodes with higher image quality than the encoding of other frames, or a normal frame code Still frame coding determining means for determining whether the frame is a frame to be encoded, and a quantization parameter input from the outside based on the output signal of the still frame encoding determining means. Using the quantization parameter value control means for controlling the quantization width of, the quantization parameter controlled by the quantization parameter value control means and the difference value, each macroblock of the encoded frame is skipped macroblock Skip macro block determining means for determining whether or not, and the encoding means for encoding the frame to be encoded based on the output of the skip macro block determining means, the skip macro block Suppress the number of macroblocks that are determined to be
It is possible to encode the frame next to the frame that has started to be stationary with high image quality, and as a result, it is possible to suppress the amount of generated code as compared with the conventional technique and to improve the image quality of the subsequent frames.

【0154】また、本発明の請求項13に記載の画像符
号化装置によれば、請求項12に記載の画像符号化装置
において、上記符号化手段は、上記量子化パラメータ値
制御手段により制御された量子化パラメータを用いて上
記符号化を行うようにしたので、量子化誤差の少ない、
高画質符号化を行うことができる。
According to the image coding apparatus of the thirteenth aspect of the present invention, in the image coding apparatus of the twelfth aspect, the coding means is controlled by the quantization parameter value control means. Since the above encoding is performed using the quantization parameter, the quantization error is small,
High quality coding can be performed.

【0155】また、本発明の請求項14に記載の画像符
号化装置によれば、符号化対象である被符号化フレーム
を処理単位であるマクロブロックにブロック化し、上記
被符号化フレームと符号化済みの参照フレームとの差分
値を求め、該差分値に基づいて上記被符号化フレームの
符号化を行う画像符号化装置であって、上記差分値に基
づいて上記被符号化フレームが静止フレームであるか否
かを判断し、静止フレームであると判断した上記被符号
化フレームが、他のフレームに比べて高画質に符号化す
る静止フレーム符号化を行うフレームであるか、あるい
は通常フレーム符号化を行うフレームであるかを判定す
る静止フレーム符号化判定手段と、上記静止フレーム符
号化判定手段の出力と上記差分値を用いて、上記被符号
化フレームの各マクロブロックがスキップマクロブロッ
クであるか否かを判定するスキップマクロブロック判定
手段と、上記スキップマクロブロック判定手段の出力に
基づいて上記被符号化フレームの符号化を行う符号化手
段と、を備えたことより、スキップマクロブロックと判
定されるマクロブロックの数を抑制し、静止し始めたフ
レームの次のフレームを高画質に符号化することがで
き、その結果、従来よりも発生符号量を抑えることがで
き、かつ、後続のフレームも高画質となる。
According to the image coding apparatus of the fourteenth aspect of the present invention, the coded frame to be coded is divided into macroblocks which are processing units, and the coded frame and the coded frame are coded. An image encoding apparatus that obtains a difference value from an already-referenced frame and encodes the encoded frame based on the difference value, wherein the encoded frame is a still frame based on the difference value. Whether the frame to be coded, which is determined to be a still frame by determining whether there is a still frame, is a frame for performing still frame encoding that encodes with higher image quality than other frames, or a normal frame encoding The still frame coding determining means for determining whether the frame is to be processed, the output of the still frame coding determining means, and the difference value are used to determine each marker of the encoded frame. A skip macroblock determining unit that determines whether or not the block is a skip macroblock, and an encoding unit that encodes the encoded frame based on the output of the skip macroblock determining unit. Therefore, it is possible to suppress the number of macroblocks that are determined to be skip macroblocks, and to encode the frame next to the frame that has started to be still with high image quality, and as a result, reduce the amount of generated code more than before. And the subsequent frames also have high image quality.

【0156】また、本発明の請求項15に記載の画像符
号化装置によれば、請求項14に記載の画像符号化装置
において、上記静止フレーム符号化判定手段の出力信号
に基づいて外部から入力された量子化パラメータの量子
化幅を制御する量子化パラメータ値制御手段を備え、上
記符号化手段は、上記量子化パラメータ値制御手段によ
り制御された量子化パラメータを用いて上記被符号化フ
レームの符号化を行うようにしたので、量子化誤差の少
ない、高画質符号化を行うことができる。
According to the fifteenth aspect of the image coding apparatus of the present invention, in the image coding apparatus of the fourteenth aspect, the image is input from the outside based on the output signal of the still frame coding determination means. A quantization parameter value control means for controlling the quantization width of the quantization parameter thus obtained, wherein the encoding means uses the quantization parameter controlled by the quantization parameter value control means to Since the encoding is performed, it is possible to perform high quality encoding with less quantization error.

【0157】また、本発明の請求項16に記載の画像符
号化装置によれば、符号化対象である被符号化フレーム
を処理単位であるマクロブロックにブロック化し、上記
被符号化フレームと参照フレームとの差分値を求め、該
差分値に基づいて上記被符号化フレームの符号化を行う
画像符号化装置であって、上記被符号化フレームの各マ
クロブロックが静止しているか否かを画面内予測を行
い、当該マクロブロックの近傍マクロブロックがスキッ
プマクロブロックであるとき、当該マクロブロックを静
止マクロブロックと判定するスキップマクロブロック判
定手段と、上記スキップマクロブロック判定手段にて静
止マクロブロックと判定された当該マクロブロックの量
子化パラメータ値を、外部から入力された量子化パラメ
ータ値よりも小さくなるよう制御する量子化パラメータ
値制御手段と、上記量子化パラメータ値制御手段により
制御された量子化パラメータを用いて上記静止マクロブ
ロックと判定されたマクロブロックに対し、他のマクロ
ブロックの符号化に比べ高画質に符号化する符号化手段
と、を備えたことより、符号量の発生を押さえ、かつ、
高画質に符号化することができる。
According to the image coding apparatus of the sixteenth aspect of the present invention, the coded frame to be coded is divided into macroblocks which are processing units, and the coded frame and the reference frame are An image coding apparatus that obtains a difference value between the coded frame and the coded frame based on the difference value, and determines whether or not each macroblock of the coded frame is stationary. Prediction is performed, and when the macroblock in the vicinity of the macroblock is a skip macroblock, the macroblock is determined as a still macroblock by a skip macroblock determining unit that determines the macroblock as a still macroblock and the skip macroblock determining unit. The quantization parameter value of the relevant macroblock is smaller than the quantization parameter value input from the outside. The quantization parameter value control means for controlling so that the macroblock determined to be the still macroblock by using the quantization parameter controlled by the quantization parameter value control means is used for encoding of another macroblock. By providing the encoding means for encoding with high image quality, the generation of the code amount is suppressed, and
It can be encoded with high image quality.

【0158】また、本発明の請求項17に記載の画像符
号化装置によれば、符号化対象である被符号化フレーム
を処理単位であるマクロブロックにブロック化し、当該
フレームと参照フレームとの差分値を求め、該差分値を
符号化する画像符号化装置であって、上記被符号化フレ
ームの前フレームの符号化において決定された上記被符
号化フレームの符号化情報に基づいて上記被符号化フレ
ームの次フレームが、他のフレームの符号化に比べて高
画質に符号化する静止フレーム符号化を行うフレームで
あるか、あるいは通常フレーム符号化を行うフレームで
あるかを判定する静止フレーム符号化判定手段と、上記
静止フレーム判定手段の出力に基づいて外部から入力さ
れた量子化パラメータの量子化幅を制御する量子化パラ
メータ値制御手段と、上記差分値と上記量子化パラメー
タ値制御手段により制御された量子化パラメータとを用
いて、上記被符号化フレームの各マクロブロックがスキ
ップマクロブロックであるか否かを判定するスキップマ
クロブロック判定手段と、上記静止フレーム符号化判定
手段の判定結果に基づいて上記被符号化フレームの次フ
レームの符号化方法を決定し、上記前フレームの符号化
において決定された符号化情報に基づいて上記被符号化
フレームの符号化を行う符号化手段と、を備えたことよ
り、スキップマクロブロックと判定されるマクロブロッ
クの数を抑制し、静止し始めたフレームの次のフレーム
を高画質に符号化することができ、その結果、従来より
も発生符号量を抑えることができ、かつ、後続のフレー
ムも高画質となる。
Further, according to the image coding apparatus of the seventeenth aspect of the present invention, the coded frame to be coded is divided into macroblocks as processing units, and the difference between the frame and the reference frame is calculated. An image encoding apparatus for obtaining a value and encoding the difference value, wherein the encoding target is based on the encoding information of the encoding target frame determined in the encoding of the previous frame of the encoding target frame. Still frame coding that determines whether the next frame of the frame is a frame that performs still frame coding that codes with higher image quality than the coding of other frames or a frame that performs normal frame coding Determination means and quantization parameter value control means for controlling the quantization width of a quantization parameter input from the outside based on the output of the still frame determination means , A skip macroblock determining means for determining whether or not each macroblock of the encoded frame is a skip macroblock using the difference value and the quantization parameter controlled by the quantization parameter value control means And a coding method for the next frame of the coded frame based on the determination result of the still frame coding determination means, and the coded information is determined based on the coding information determined in the coding of the preceding frame. The number of macroblocks that are determined to be skip macroblocks is suppressed, and the next frame of the frame that has started to be stationary is encoded with high image quality by including an encoding unit that encodes the encoded frame. As a result, the amount of generated codes can be suppressed more than before, and the subsequent frames also have high image quality.

【0159】また、本発明の請求項18に記載の画像符
号化装置によれば、請求項17に記載の画像符号化装置
において、上記符号化手段は、上記量子化パラメータ値
制御手段により制御された量子化パラメータを用いて上
記符号化を行うようにしたので、量子化誤差の少ない、
高画質符号化を行うことができる。
Further, according to the image coding apparatus of the eighteenth aspect of the present invention, in the image coding apparatus of the seventeenth aspect, the coding means is controlled by the quantization parameter value control means. Since the above encoding is performed using the quantization parameter, the quantization error is small,
High quality coding can be performed.

【0160】また、本発明の請求項19に記載の画像符
号化装置によれば、請求項17に記載の画像符号化装置
において、上記スキップマクロブロック判定手段は、外
部からの上記被符号化フレームの符号化方法を示すフレ
ーム符号化信号の入力により上記スキップマクロブロッ
クの判定処理を開始し、上記符号化手段は、上記フレー
ム符号化信号が画面内予測符号化方法を示す信号である
場合、上記被符号化フレームの各マクロブロックの符号
化を行い、上記フレーム符号化信号が画面内予測符号化
方法を示す信号でない場合、上記差分値の符号化を行う
ようにしたので、画面内予測符号化を行うフレーム及び
マクロブロックに対しては、静止フレーム符号化を行わ
ず、その結果、量子化幅を小さくする必要がなくなり、
発生符号量の増加をより抑えることができる。
According to a nineteenth aspect of the present invention, there is provided the image encoding device according to the seventeenth aspect, wherein the skip macroblock determining means is an externally encoded frame. The skip macroblock determination process is started by the input of the frame coded signal indicating the coding method, and the coding means, when the frame coded signal is a signal indicating the intra-frame prediction coding method, Each macroblock of the frame to be coded is coded, and if the frame coded signal is not a signal indicating the intraframe prediction coding method, the difference value is coded. For frames and macroblocks for which the still frame coding is not performed, as a result, there is no need to reduce the quantization width,
It is possible to further suppress an increase in the generated code amount.

【0161】また、本発明の請求項20に記載の画像符
号化装置によれば、符号化対象である被符号化フレーム
を処理単位であるマクロブロックにブロック化し、当該
フレームと参照フレームとの差分値を求め、該差分値を
符号化する画像符号化装置であって、上記差分値と外部
から入力された量子化パラメータとを用いて、上記被符
号化フレームの各マクロブロックがスキップマクロブロ
ックであるか否かを判定するスキップマクロブロック判
定手段と、上記被符号化フレームの前フレームの符号化
において決定された上記被符号化フレームの符号化情報
に基づいて上記被符号化フレームの次フレームが、他の
フレームの符号化に比べて高画質に符号化する静止フレ
ーム符号化を行うフレームであるか、あるいは通常フレ
ーム符号化を行うフレームであるかを判定する静止フレ
ーム符号化判定手段と、上記静止フレーム符号化判定手
段の判定結果に基づいて上記被符号化フレームの次フレ
ームの符号化方法を決定し、上記被符号化フレームの符
号化は上記前フレームの符号化において決定された符号
化情報に基づいて行う符号化手段と、を備えたことよ
り、次フレーム符号を静止フレーム符号化するか否かの
判定処理を簡単に実現することができ、また、スキップ
マクロブロックと判定されるマクロブロックの数を抑制
し、静止し始めたフレームの2フレーム後のフレームを
高画質に符号化することができ、その結果、従来よりも
発生符号量を抑えることができ、かつ、後続のフレーム
も高画質となる。
Further, according to the image coding apparatus of the twentieth aspect of the present invention, the coded frame to be coded is divided into macroblocks which are processing units, and the difference between the frame and the reference frame. An image encoding apparatus for obtaining a value and encoding the difference value, wherein each macroblock of the encoded frame is a skip macroblock using the difference value and a quantization parameter input from the outside. A skip macroblock determining means for determining whether or not there is a next frame of the encoded frame based on the encoding information of the encoded frame determined in the encoding of the previous frame of the encoded frame. , A frame for which still frame coding is performed to achieve higher image quality than other frames, or normal frame coding is performed Still frame coding determining means for determining whether the frame is a frame, and determining the encoding method of the next frame of the encoded frame based on the determination result of the still frame encoding determining means. The encoding is provided based on the encoding information determined in the encoding of the preceding frame, and the determination processing as to whether or not the next frame code is the still frame encoding is easily realized. In addition, it is possible to suppress the number of macroblocks that are determined to be skip macroblocks, and to encode a frame that is two frames after the frame that has started to be stationary with higher image quality. The generated code amount can be suppressed, and the subsequent frames also have high image quality.

【0162】また、本発明の請求項21に記載の画像符
号化装置によれば、請求項20に記載の画像符号化装置
において、上記静止フレーム符号化判定手段の出力に基
づいて外部から入力された量子化パラメータの量子化幅
を制御する量子化パラメータ値制御手段を備え、上記符
号化手段は、上記量子化パラメータ値制御手段により制
御された量子化パラメータを用いて上記符号化を行うよ
うにしたので、量子化誤差の少ない、高画質符号化を行
うことができる。
According to a twenty-first aspect of the present invention, there is provided the image encoding device according to the twenty-first aspect, in which the image data is input from the outside based on the output of the still frame encoding determination means. And a quantization parameter value control means for controlling the quantization width of the quantization parameter, wherein the encoding means performs the encoding using the quantization parameter controlled by the quantization parameter value control means. As a result, it is possible to perform high image quality encoding with less quantization error.

【0163】また、本発明の請求項22に記載の画像符
号化装置によれば、請求項20に記載の画像符号化装置
において、上記スキップマクロブロック判定手段は、外
部からの上記被符号化フレームの符号化方法を示すフレ
ーム符号化信号の入力により、上記スキップマクロブロ
ックの判定処理を開始し、上記符号化手段は、上記フレ
ーム符号化信号が画面内予測符号化方法を示す信号であ
る場合、上記被符号化フレームの各マクロブロックの符
号化を行い、上記フレーム符号化信号が画面内予測符号
化方法を示す信号でない場合、上記差分値の符号化を行
うようにしたので、画面内予測符号化を行うフレーム及
びマクロブロックに対しては、静止フレーム符号化を行
わず、その結果、量子化幅を小さくする必要がなくな
り、発生符号量の増加をより抑えることができる。
According to a twenty-second aspect of the present invention, there is provided the image encoding apparatus according to the twenty-first aspect, wherein the skip macroblock determining means is an externally encoded frame. By the input of a frame coded signal indicating the coding method, the skip macroblock determination process is started, and the coding means, when the frame coded signal is a signal indicating an intra-frame prediction coding method, When each macroblock of the frame to be coded is coded, and when the frame coded signal is not a signal indicating the intra-frame prediction coding method, the difference value is coded. Still frame coding is not performed on the frames and macroblocks to be coded, and as a result, it is not necessary to reduce the quantization width, and the generated code amount is increased. It can be more suppressed.

【0164】また、本発明の請求項23に記載の画像符
号化プログラムによれば、符号化対象である被符号化フ
レームを処理単位であるマクロブロックにブロック化
し、当該フレームと参照フレームとの差分値を求め、該
差分値を符号化する処理を、コンピュータにより行うた
めのプログラムであって、上記被符号化フレームが静止
フレームであるか否かの判定を行い、該判定の結果、静
止フレームと判定されたフレームのうち、少なくとも1
フレームを、他のフレームの符号化よりも高画質に符号
化する高画質符号化処理をコンピュータにより行うため
のプログラムであることより、静止フレームである被符
号化フレームを特定し、少なくとも1フレームに対して
高画質符号化を行うことができ、従来のように全ての静
止フレームを高画質に符号化することによる発生符号量
の増加を抑え、かつ、後続のフレームも高画質にするこ
とができる。
According to the image coding program of the twenty-third aspect of the present invention, the coded frame to be coded is divided into macroblocks as processing units, and the difference between the frame and the reference frame is calculated. A program for performing a process of obtaining a value and encoding the difference value by a computer, determining whether or not the encoded frame is a still frame, and as a result of the determination, determines that the frame is a still frame. At least one of the determined frames
Since it is a program for a computer to perform high image quality encoding processing that encodes a frame with higher image quality than that of other frames, the encoded frame that is a still frame is specified, and at least one frame is set. On the other hand, it is possible to perform high image quality encoding, suppress an increase in the amount of generated code due to encoding all still frames to high image quality as in the conventional art, and also make the subsequent frames high image quality. .

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

【図1】本発明の実施の形態1による画像符号化装置の
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an image encoding device according to a first embodiment of the present invention.

【図2】本発明の実施の形態1および、実施の形態2に
よる静止フレームと判定されるフレームの概念図であ
る。
FIG. 2 is a conceptual diagram of a frame determined to be a still frame according to the first embodiment and the second embodiment of the present invention.

【図3】本発明の実施の形態1による画像符号化装置の
静止フレーム符号化するか否かの判定処理を示すフロー
チャート図である。
[Fig. 3] Fig. 3 is a flowchart showing a process of determining whether or not still frame coding is to be performed by the image coding device according to Embodiment 1 of the present invention.

【図4】本発明の実施の形態1による画像符号化装置の
量子化パラメータ値の制御処理を示すフローチャート図
である。
FIG. 4 is a flow chart diagram showing a control process of a quantization parameter value of the image coding apparatus according to the first embodiment of the present invention.

【図5】スキップマクロブロック判定器への入力を静止
フレーム符号化判定器の出力とした場合の実施の形態1
による画像符号化装置の変形例を示す図である。
FIG. 5 is a first embodiment in which an input to a skip macroblock determiner is an output of a still frame coding determiner.
FIG. 11 is a diagram showing a modified example of the image coding apparatus according to the present invention.

【図6】スキップマクロブロック判定器への入力を静止
フレーム符号化判定器の出力とした場合の画像符号化装
置のスキップマクロブロック判定処理を示すフローチャ
ート図である。
FIG. 6 is a flowchart showing skip macroblock determination processing of the image encoding device when the input to the skip macroblock determination unit is the output of the still frame coding determination unit.

【図7】画面内予測を用いた場合の実施の形態1による
画像符号化装置の変形例を示す図である。
FIG. 7 is a diagram showing a modified example of the image coding device according to the first embodiment when using intra prediction.

【図8】画面内予測を用いた場合の実施の形態1による
画像符号化装置の量子化パラメータ値の制御処理を示す
フローチャート図である。
FIG. 8 is a flowchart showing a control process of a quantization parameter value of the image coding apparatus according to the first embodiment when using the intra prediction.

【図9】本発明の実施の形態2による画像符号化装置を
説明する為のブロック図。
FIG. 9 is a block diagram for explaining an image coding apparatus according to Embodiment 2 of the present invention.

【図10】本発明の実施の形態2による画像符号化装置
の静止フレーム符号化するか否かの判定処理のフローを
示す図。
FIG. 10 is a diagram showing a flow of determination processing as to whether or not still frame encoding is performed by the image encoding device according to the second embodiment of the present invention.

【図11】本発明の実施の形態2による画像符号化装置
の静止フレーム符号化するか否かの判定処理に用いるフ
ラグの状態遷移を示す状態遷移図。
FIG. 11 is a state transition diagram showing state transitions of flags used in a process of determining whether or not still frame encoding is performed by the image encoding device according to the second embodiment of the present invention.

【図12】本発明の実施の形態2による画像符号化装置
の量子化パラメータ値の制御処理のフローを示す図。
FIG. 12 is a diagram showing a flow of a quantization parameter value control process of the image coding apparatus according to the second embodiment of the present invention.

【図13】本発明の実施の形態3による画像符号化装置
を説明する為のブロック図。
FIG. 13 is a block diagram for explaining an image coding apparatus according to Embodiment 3 of the present invention.

【図14】本発明の実施の形態3による画像符号化装置
のスキップマクロブロック判定処理のフローを示す図。
FIG. 14 is a diagram showing a flow of skip macroblock determination processing of the image encoding device according to the third embodiment of the present invention.

【図15】本発明の実施の形態3による画像符号化装置
の静止フレーム符号化するか否かの判定処理のフローを
示す図。
FIG. 15 is a diagram showing a flow of determination processing as to whether or not still frame encoding is to be performed by the image encoding device according to the third embodiment of the present invention.

【図16】従来の一般的に用いられる画像符号化装置を
説明する為のブロック図。
FIG. 16 is a block diagram for explaining a conventional generally used image encoding device.

【図17】上記従来の一般的に用いられる画像符号化装
置のスキップマクロブロックを判定する処理のフローを
示す図。
FIG. 17 is a diagram showing a flow of processing for determining skip macroblocks in the conventional image coding apparatus that is generally used.

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

100、110、120、200、300、1500
画像符号化装置 1 ブロック化器 2 減算手段 3 スイッチ 4 スキップマクロブロック判定器 5 圧縮符号化手段 6 周波数変換器 7 量子化器 8 可変長符号化器 9 局所復号化手段 10 逆量子化器 11 周波数逆変化器 12 局所予測画像生成手段 13 予測画像生成器 14 フレームメモリ 15 静止フレーム符号化判定器 16 量子化パラメータ値制御器 201〜208 フレーム
100, 110, 120, 200, 300, 1500
Image encoder 1 Blocker 2 Subtractor 3 Switch 4 Skip macroblock determiner 5 Compression encoder 6 Frequency converter 7 Quantizer 8 Variable length encoder 9 Local decoder 10 Inverse quantizer 11 Frequency Inverse changer 12 Local predicted image generation means 13 Predicted image generator 14 Frame memory 15 Still frame coding determination device 16 Quantization parameter value controller 201 to 208 frames

フロントページの続き Fターム(参考) 5C059 MA00 MA05 MA21 MC11 MC15 MC38 ME01 NN23 PP05 PP06 PP16 TA48 TB07 TC03 TC13 TC27 TD06 TD12 UA02 UA33 5J064 AA02 BB01 BB03 BC16 BC26 BD01 Continued front page    F-term (reference) 5C059 MA00 MA05 MA21 MC11 MC15                       MC38 ME01 NN23 PP05 PP06                       PP16 TA48 TB07 TC03 TC13                       TC27 TD06 TD12 UA02 UA33                 5J064 AA02 BB01 BB03 BC16 BC26                       BD01

Claims (23)

【特許請求の範囲】[Claims] 【請求項1】 符号化対象である被符号化フレームを処
理単位であるマクロブロックにブロック化し、当該フレ
ームと参照フレームとの差分値を求め、該差分値を符号
化する画像符号化方法であって、 上記被符号化フレームが静止している静止フレームであ
るかを判定する静止フレーム判定ステップと、 上記静止フレーム判定ステップにて、静止フレームと判
断されたフレームのうち、少なくとも1フレームに対し
てその他のフレームの符号化に比べて高画質に符号化す
る静止フレーム符号化を行う高画質符号化ステップと、
を含む、 ことを特徴とする画像符号化方法。
1. An image coding method in which a coded frame to be coded is divided into macroblocks as processing units, a difference value between the frame and a reference frame is obtained, and the difference value is coded. Then, at least one frame of at least one of the frames determined to be still frames in the still frame determination step of determining whether the coded frame is a still frame A high image quality encoding step for performing still frame encoding that encodes with higher image quality compared to the encoding of other frames,
An image coding method comprising:
【請求項2】 請求項1に記載の画像符号化方法におい
て、 上記静止フレーム判定ステップは、 上記被符号化フレームと上記参照フレームとの差分値に
基づいて上記判定を行う、 ことを特徴とする画像符号化方法。
2. The image encoding method according to claim 1, wherein the still frame determining step makes the determination based on a difference value between the coded frame and the reference frame. Image coding method.
【請求項3】 請求項1に記載の画像符号化方法におい
て、 上記高画質符号化ステップは、 上記静止フレームと判定された被符号化フレームに対し
て静止フレーム符号化を行うか、あるいは、通常フレー
ム符号化を行うかを判定する静止フレーム符号化判定ス
テップと、 上記静止フレーム符号化判定ステップにて判定された符
号化方法に基づいて外部から入力された量子化パラメー
タの量子化幅を制御する量子化パラメータ値制御ステッ
プと、 上記量子化パラメータ値制御ステップにて制御された上
記量子化パラメータと上記差分値とを用いて上記被符号
化フレームの各マクロブロックがスキップマクロブロッ
クであるか否かを判定するスキップマクロブロック判定
ステップと、 上記スキップマクロブロック判定ステップにて得られ
た、上記各マクロブロックの判定結果に基づいて上記被
符号化フレームの符号化を行う符号化ステップと、を含
む、 ことを特徴とする画像符号化方法。
3. The image coding method according to claim 1, wherein in the high quality coding step, still frame coding is performed on a coded frame determined to be the still frame, or Still frame coding determination step of determining whether to perform frame coding, and controlling the quantization width of the quantization parameter input from the outside based on the coding method determined in the still frame coding determination step Whether each macroblock of the encoded frame is a skip macroblock using the quantization parameter value control step, the quantization parameter controlled in the quantization parameter value control step, and the difference value The skip macroblock determination step for determining Based on the determination result of each macroblock including a coding step of coding the target encoded frame, image coding method, characterized in that.
【請求項4】 請求項1に記載の画像符号化方法におい
て、 上記高画質符号化ステップは、 上記静止フレームと判定された被符号化フレームに対し
て静止フレーム符号化を行うか、あるいは、通常フレー
ム符号化を行うかを判定する静止フレーム符号化判定ス
テップと、 上記静止フレーム符号化判定ステップにて上記被符号化
フレームは静止フレーム符号化をしないフレームである
と判定された場合、上記被符号化フレームと参照フレー
ムとの差分値と所定の閾値とを用いて該被符号化フレー
ムの各マクロブロックがスキップマクロブロックである
か否かを判定し、上記静止フレーム符号化判定ステップ
にて上記被符号化フレームは静止フレーム符号化をする
フレームであると判定された場合、上記所定の閾値を小
さくなるよう制御し、該制御された閾値と上記被符号化
フレームと参照フレームとの差分値とを用いて該被符号
化フレームの各マクロブロックがスキップマクロブロッ
クであるか否かを判定するスキップマクロブロック判定
ステップと、 上記スキップマクロブロック判定ステップにて得られ
た、上記各マクロブロックの判定結果に基づいて上記被
符号化フレームの符号化を行う符号化ステップと、を含
む、 ことを特徴とする画像符号化方法。
4. The image coding method according to claim 1, wherein in the high quality coding step, still frame coding is performed on a coded frame determined to be the still frame, or In the still frame coding determination step of determining whether to perform frame coding, and in the still frame coding determination step, when it is determined that the coded frame is a frame in which still frame coding is not performed, the coded It is determined whether or not each macroblock of the encoded frame is a skip macroblock using a difference value between the encoded frame and the reference frame and a predetermined threshold value, and the still frame encoding determination step is performed to detect the encoded frame. When it is determined that the coded frame is a frame for still frame coding, the predetermined threshold value is controlled to be smaller, and the control is performed. A skip macroblock determining step of determining whether or not each macroblock of the encoded frame is a skip macroblock by using a controlled threshold value and a difference value between the encoded frame and a reference frame, An image encoding method, comprising: an encoding step of encoding the frame to be encoded based on the determination result of each macroblock obtained in the skip macroblock determining step.
【請求項5】 請求項1に記載の画像符号化方法におい
て、 上記被符号化フレームの前フレームの符号化において決
定された上記被符号化フレームの符号化情報に基づいて
上記被符号化フレームの次フレームが、静止フレーム符
号化を行うフレームであるか、あるいは通常フレーム符
号化を行うフレームであるかを判定する静止フレーム符
号化判定ステップと、 上記静止フレーム判定ステップにて判定された符号化方
法に基づいて外部から入力された量子化パラメータの量
子化幅を制御する量子化パラメータ値制御ステップと、 上記量子化パラメータ値制御ステップにて制御された上
記量子化パラメータと上記差分値とを用いて、上記被符
号化フレームの各マクロブロックがスキップマクロブロ
ックであるか否かを判定するスキップマクロブロック判
定ステップと、 上記静止フレーム符号化判定ステップの判定結果に基づ
いて上記被符号化フレームの次フレームの符号化方法を
決定し、かつ、上記被符号化フレームの符号化を上記前
フレームの符号化において決定された符号化情報に基づ
いて行う符号化ステップと、を含む、 ことを特徴とする画像符号化方法。
5. The image coding method according to claim 1, wherein the encoded frame is encoded based on encoding information of the encoded frame determined in encoding of a previous frame of the encoded frame. A still frame coding determination step of determining whether the next frame is a frame for still frame coding or a frame for normal frame coding, and the coding method determined in the still frame determination step Based on the quantization parameter value control step for controlling the quantization width of the quantization parameter input from the outside, using the quantization parameter and the difference value controlled in the quantization parameter value control step , A skip macroblock for determining whether or not each macroblock of the encoded frame is a skip macroblock. A lock determination step and a coding method for the next frame of the encoded frame are determined based on the determination result of the still frame encoding determination step, and the encoding of the encoded frame is performed by encoding the previous frame. And a coding step performed based on the coding information determined in the coding.
【請求項6】 請求項1に記載の画像符号化方法におい
て、 上記静止フレーム判定ステップは、 上記参照フレームの各マクロブロックが有する、当該マ
クロブロックの符号化方法をあらわす符号化タイプに基
づいて行う、 ことを特徴とする画像符号化方法。
6. The image coding method according to claim 1, wherein the still frame determination step is performed based on a coding type which is included in each macroblock of the reference frame and which represents a coding method of the macroblock. An image coding method characterized by the following.
【請求項7】 請求項6に記載の画像符号化方法におい
て、 上記各マクロブロックの符号化タイプは、 上記被符号化マクロブロックがスキップマクロブロック
であるか否かを示す第1のフラグと、上記被符号化マク
ロブロックがスキップマクロブロックのとき、被符号化
フレームが静止フレーム符号化であるか否かを示す第
2,第3のフラグ、の3値のフラグであり、 被符号化マクロブロックが参照するマクロブロックの上
記フラグ値に応じて被符号化マクロブロックのフラグは
更新されるものとする、 ことを特徴とする画像符号化方法。
7. The image coding method according to claim 6, wherein the coding type of each macroblock is a first flag indicating whether or not the coded macroblock is a skip macroblock, When the coded macroblock is a skip macroblock, it is a ternary flag of a second flag and a third flag indicating whether the coded frame is still frame coded. The image coding method is characterized in that the flag of the encoded macroblock is updated according to the flag value of the macroblock referred to by.
【請求項8】 請求項1に記載の画像符号化方法におい
て、 上記高画質符号化ステップは、 画面内予測符号化のみを行うIフレームに対しては高画
質符号化をしない、 ことを特徴とする画像符号化方法。
8. The image encoding method according to claim 1, wherein the high image quality encoding step does not perform high image quality encoding on an I frame for which only intra-picture predictive encoding is performed. Image coding method.
【請求項9】 請求項1に記載の画像符号化方法におい
て、 上記高画質符号化ステップは、 画面内予測符号化を行うマクロブロックに対して高画質
符号化をしない、 ことを特徴とする画像符号化方法。
9. The image encoding method according to claim 1, wherein the high image quality encoding step does not perform high image quality encoding on a macroblock for which intra-picture predictive encoding is performed. Encoding method.
【請求項10】 符号化対象である被符号化フレームを
処理単位であるマクロブロックにブロック化し、当該フ
レームと参照フレームとの差分値を求め、該差分値を符
号化する画像符号化方法であって、 上記被符号化フレームの各マクロブロックが静止してい
るか否かを画面内予測する静止マクロブロック判定ステ
ップと、 上記静止マクロブロック判定ステップにて静止している
と判定されたマクロブロックに対し、他のマクロブロッ
クの符号化に比べて高画質に符号化するマクロブロック
符号化ステップと、を含む、 ことを特徴とする画像符号化方法。
10. An image coding method for blocking a coded frame to be coded into macroblocks as a processing unit, obtaining a difference value between the frame and a reference frame, and coding the difference value. Then, for the still macroblock determination step of predicting whether or not each macroblock of the encoded frame is still, and for the macroblock determined to be still in the still macroblock determination step, And a macroblock coding step for coding with a higher image quality than the coding of other macroblocks.
【請求項11】 請求項1に記載の画像符号化方法にお
いて、 上記高画質符号化ステップは、 上記静止フレームと判断された被符号化フレームにおい
て、各マクロブロックが静止しているか否かを画面内予
測する静止マクロブロック判定ステップと、 上記静止マクロブロック判定ステップにて静止している
と判定されたマクロブロックに対し、他のマクロブロッ
クの符号化に比べて高画質に符号化するマクロブロック
符号化ステップと、を含む、 ことを特徴とする画像符号化方法。
11. The image coding method according to claim 1, wherein the high image quality coding step displays whether or not each macroblock is still in a coded frame determined to be the still frame. In-prediction still macroblock determination step, and macroblock code that encodes a macroblock that is determined to be still in the still macroblock determination step with higher image quality than the encoding of other macroblocks An image encoding method comprising: an encoding step;
【請求項12】 符号化対象である被符号化フレームを
処理単位であるマクロブロックにブロック化し、上記被
符号化フレームと参照フレームとの差分値を求め、該差
分値に基づいて上記被符号化フレームの符号化を行う画
像符号化装置であって、 上記差分値に基づいて、上記被符号化フレームが静止フ
レームであるか否かを判断し、上記静止フレームである
と判断した上記被符号化フレームが、他のフレームの符
号化に比べて高画質に符号化する静止フレーム符号化を
行うフレームであるか、あるいは通常フレーム符号化を
行うフレームであるかを判定する静止フレーム符号化判
定手段と、 上記静止フレーム符号化判定手段の出力信号に基づいて
外部から入力された量子化パラメータの量子化幅を制御
する量子化パラメータ値制御手段と、 上記量子化パラメータ値制御手段により制御された量子
化パラメータと上記差分値を用いて、上記被符号化フレ
ームの各マクロブロックがスキップマクロブロックであ
るか否かを判定するスキップマクロブロック判定手段
と、 上記スキップマクロブロック判定手段の出力に基づいて
上記被符号化フレームの符号化を行う符号化手段と、を
備えた、 ことを特徴とする画像符号化装置。
12. An encoding target frame to be encoded is blocked into macroblocks which are processing units, a difference value between the encoding frame and a reference frame is obtained, and the encoding target is based on the difference value. An image encoding device for encoding a frame, wherein the encoded frame is determined based on the difference value to determine whether the encoded frame is a still frame, and the encoded frame is determined to be the still frame. Still frame coding determining means for determining whether the frame is a frame for performing still frame coding for coding with higher image quality than that for coding for other frames, or a frame for performing normal frame coding. A quantization parameter value control means for controlling the quantization width of a quantization parameter input from the outside based on the output signal of the still frame coding determination means, Using the quantization parameter and the difference value controlled by the quantization parameter value control means, a skip macroblock determination means for determining whether each macroblock of the encoded frame is a skip macroblock, An image encoding apparatus comprising: an encoding unit that encodes the frame to be encoded based on an output of the skip macroblock determining unit.
【請求項13】 請求項12に記載の画像符号化装置に
おいて、 上記符号化手段は、上記量子化パラメータ値制御手段に
より制御された量子化パラメータを用いて上記符号化を
行う、 ことを特徴とする画像符号化装置。
13. The image coding apparatus according to claim 12, wherein the coding means performs the coding by using a quantization parameter controlled by the quantization parameter value control means. Image encoding device.
【請求項14】 符号化対象である被符号化フレームを
処理単位であるマクロブロックにブロック化し、上記被
符号化フレームと符号化済みの参照フレームとの差分値
を求め、該差分値に基づいて上記被符号化フレームの符
号化を行う画像符号化装置であって、 上記差分値に基づいて上記被符号化フレームが静止フレ
ームであるか否かを判断し、静止フレームであると判断
した上記被符号化フレームが、他のフレームに比べて高
画質に符号化する静止フレーム符号化を行うフレームで
あるか、あるいは通常フレーム符号化を行うフレームで
あるかを判定する静止フレーム符号化判定手段と、 上記静止フレーム符号化判定手段の出力と上記差分値を
用いて、上記被符号化フレームの各マクロブロックがス
キップマクロブロックであるか否かを判定するスキップ
マクロブロック判定手段と、 上記スキップマクロブロック判定手段の出力に基づいて
上記被符号化フレームの符号化を行う符号化手段と、を
備えた、 ことを特徴とする画像符号化装置。
14. A coding target frame to be coded is divided into macroblocks as a processing unit, a difference value between the coding target frame and a coded reference frame is calculated, and based on the difference value. An image coding apparatus for coding the coded frame, wherein the coded frame is judged as a still frame by judging whether the coded frame is a still frame based on the difference value. Still frame coding determining means for determining whether the coded frame is a frame for performing still frame coding for coding with higher image quality than other frames, or a frame for performing normal frame coding, It is determined whether each macroblock of the coded frame is a skip macroblock using the output of the still frame coding determination means and the difference value. A skip macro-block determination means for, encoding means for encoding the target encoding frame based on the output of the skip macro-block determination unit, comprising a picture coding apparatus, characterized in that.
【請求項15】 請求項14に記載の画像符号化装置に
おいて、 上記静止フレーム符号化判定手段の出力信号に基づいて
外部から入力された量子化パラメータの量子化幅を制御
する量子化パラメータ値制御手段を備え、 上記符号化手段は、上記量子化パラメータ値制御手段に
より制御された量子化パラメータを用いて上記被符号化
フレームの符号化を行う、 ことを特徴とする画像符号化装置。
15. The image coding apparatus according to claim 14, wherein a quantization parameter value control for controlling a quantization width of a quantization parameter input from the outside based on an output signal of the still frame coding determination means. An image coding apparatus, comprising: means, wherein the coding means codes the frame to be coded using the quantization parameter controlled by the quantization parameter value control means.
【請求項16】 符号化対象である被符号化フレームを
処理単位であるマクロブロックにブロック化し、上記被
符号化フレームと参照フレームとの差分値を求め、該差
分値に基づいて上記被符号化フレームの符号化を行う画
像符号化装置であって、 上記被符号化フレームの各マクロブロックが静止してい
るか否かを画面内予測を行い、当該マクロブロックの近
傍マクロブロックがスキップマクロブロックであると
き、当該マクロブロックを静止マクロブロックと判定す
るスキップマクロブロック判定手段と、 上記スキップマクロブロック判定手段にて静止マクロブ
ロックと判定された当該マクロブロックの量子化パラメ
ータ値を、外部から入力された量子化パラメータ値より
も小さくなるよう制御する量子化パラメータ値制御手段
と、 上記量子化パラメータ値制御手段により制御された量子
化パラメータを用いて上記静止マクロブロックと判定さ
れたマクロブロックに対し、他のマクロブロックの符号
化に比べ高画質に符号化する符号化手段と、を備えた、 ことを特徴とする画像符号化装置。
16. An encoding target frame which is an encoding target is divided into macroblocks which are processing units, a difference value between the encoding target frame and a reference frame is obtained, and the encoding target is based on the difference value. An image coding apparatus for coding a frame, wherein intra-screen prediction is performed as to whether or not each macroblock of the coded frame is stationary, and a macroblock in the vicinity of the macroblock is a skip macroblock. At this time, a skip macroblock determining unit that determines the macroblock as a still macroblock, and a quantization parameter value of the macroblock that is determined as a still macroblock by the skip macroblock determining unit is input from an externally input quantum. Quantization parameter value control means for controlling to be smaller than the quantization parameter value; Coding means for coding the macroblock determined to be the still macroblock using the quantization parameter controlled by the child parameter value control means with higher image quality than the coding of other macroblocks, An image coding apparatus, comprising:
【請求項17】 符号化対象である被符号化フレームを
処理単位であるマクロブロックにブロック化し、当該フ
レームと参照フレームとの差分値を求め、該差分値を符
号化する画像符号化装置であって、 上記被符号化フレームの前フレームの符号化において決
定された上記被符号化フレームの符号化情報に基づいて
上記被符号化フレームの次フレームが、他のフレームの
符号化に比べて高画質に符号化する静止フレーム符号化
を行うフレームであるか、あるいは通常フレーム符号化
を行うフレームであるかを判定する静止フレーム符号化
判定手段と、 上記静止フレーム判定手段の出力に基づいて外部から入
力された量子化パラメータの量子化幅を制御する量子化
パラメータ値制御手段と、 上記差分値と上記量子化パラメータ値制御手段により制
御された量子化パラメータとを用いて、上記被符号化フ
レームの各マクロブロックがスキップマクロブロックで
あるか否かを判定するスキップマクロブロック判定手段
と、 上記静止フレーム符号化判定手段の判定結果に基づいて
上記被符号化フレームの次フレームの符号化方法を決定
し、上記前フレームの符号化において決定された符号化
情報に基づいて上記被符号化フレームの符号化を行う符
号化手段と、を備えた、 ことを特徴とする画像符号化装置。
17. An image coding apparatus which blocks a coded frame to be coded into macroblocks which are processing units, obtains a difference value between the frame and a reference frame, and encodes the difference value. Then, based on the encoding information of the encoded frame determined in the encoding of the previous frame of the encoded frame, the next frame of the encoded frame has a higher image quality than the encoding of other frames. Still frame coding determining means for determining whether the frame is a still frame encoding frame or a normal frame encoding frame, and an external input based on the output of the still frame determining means. The quantization parameter value control means for controlling the quantization width of the quantization parameter, and the difference value and the quantization parameter value control means. Using a controlled quantization parameter, the skip macroblock determination means for determining whether or not each macroblock of the encoded frame is a skip macroblock, and the determination result of the still frame coding determination means An encoding means for determining the encoding method of the next frame of the encoded frame based on the encoding means for encoding the encoded frame based on the encoding information determined in the encoding of the previous frame; An image coding apparatus, comprising:
【請求項18】 請求項17に記載の画像符号化装置に
おいて、 上記符号化手段は、上記量子化パラメータ値制御手段に
より制御された量子化パラメータを用いて上記符号化を
行う、 ことを特徴とする画像符号化装置。
18. The image coding apparatus according to claim 17, wherein the coding means performs the coding using a quantization parameter controlled by the quantization parameter value control means. Image encoding device.
【請求項19】 請求項17に記載の画像符号化装置に
おいて、 上記スキップマクロブロック判定手段は、 外部からの上記被符号化フレームの符号化方法を示すフ
レーム符号化信号の入力により上記スキップマクロブロ
ックの判定処理を開始し、 上記符号化手段は、 上記フレーム符号化信号が画面内予測符号化方法を示す
信号である場合、上記被符号化フレームの各マクロブロ
ックの符号化を行い、上記フレーム符号化信号が画面内
予測符号化方法を示す信号でない場合、上記差分値の符
号化を行う、 ことを特徴とする画像符号化装置。
19. The image coding apparatus according to claim 17, wherein the skip macroblock determining means receives the frame coded signal indicating a coding method of the coded frame from the outside, and thereby the skip macroblock. When the frame coded signal is a signal indicating an intra-frame predictive coding method, the coding means performs coding of each macroblock of the coded frame to determine the frame code. An image coding apparatus, characterized in that when the coded signal is not a signal indicating an intra-frame predictive coding method, the difference value is coded.
【請求項20】 符号化対象である被符号化フレームを
処理単位であるマクロブロックにブロック化し、当該フ
レームと参照フレームとの差分値を求め、該差分値を符
号化する画像符号化装置であって、 上記差分値と外部から入力された量子化パラメータとを
用いて、上記被符号化フレームの各マクロブロックがス
キップマクロブロックであるか否かを判定するスキップ
マクロブロック判定手段と、 上記被符号化フレームの前フレームの符号化において決
定された上記被符号化フレームの符号化情報に基づいて
上記被符号化フレームの次フレームが、他のフレームの
符号化に比べて高画質に符号化する静止フレーム符号化
を行うフレームであるか、あるいは通常フレーム符号化
を行うフレームであるかを判定する静止フレーム符号化
判定手段と、 上記静止フレーム符号化判定手段の判定結果に基づいて
上記被符号化フレームの次フレームの符号化方法を決定
し、上記被符号化フレームの符号化は上記前フレームの
符号化において決定された符号化情報に基づいて行う符
号化手段と、を備えた、 ことを特徴とする画像符号化装置。
20. An image coding apparatus for blocking a frame to be coded to be coded into macroblocks as a processing unit, obtaining a difference value between the frame and a reference frame, and coding the difference value. Then, using the difference value and a quantization parameter input from the outside, a skip macroblock determining unit that determines whether or not each macroblock of the encoded frame is a skip macroblock, and the encoded target A still frame in which the next frame of the encoded frame is encoded with higher image quality than the encoding of other frames based on the encoding information of the encoded frame determined in the encoding of the preceding frame of the encoded frame. Still frame coding judging means for judging whether it is a frame for frame coding or a frame for normal frame coding The coding method of the next frame of the coded frame is determined based on the determination result of the still frame coding determination means, and the coding of the coded frame is the code determined in the coding of the previous frame. An image coding apparatus comprising: a coding unit that performs coding based on coding information.
【請求項21】 請求項20に記載の画像符号化装置に
おいて、 上記静止フレーム符号化判定手段の出力に基づいて外部
から入力された量子化パラメータの量子化幅を制御する
量子化パラメータ値制御手段を備え、 上記符号化手段は、上記量子化パラメータ値制御手段に
より制御された量子化パラメータを用いて上記符号化を
行う、 ことを特徴とする画像符号化装置。
21. The image coding apparatus according to claim 20, wherein the quantization parameter value control means controls the quantization width of the quantization parameter input from the outside based on the output of the still frame coding determination means. The image coding apparatus, wherein the coding means performs the coding using the quantization parameter controlled by the quantization parameter value control means.
【請求項22】 請求項20に記載の画像符号化装置に
おいて、 上記スキップマクロブロック判定手段は、外部からの上
記被符号化フレームの符号化方法を示すフレーム符号化
信号の入力により、上記スキップマクロブロックの判定
処理を開始し、 上記符号化手段は、上記フレーム符号化信号が画面内予
測符号化方法を示す信号である場合、上記被符号化フレ
ームの各マクロブロックの符号化を行い、上記フレーム
符号化信号が画面内予測符号化方法を示す信号でない場
合、上記差分値の符号化を行う、 ことを特徴とする画像符号化装置。
22. The image coding apparatus according to claim 20, wherein the skip macroblock determination means receives the frame coded signal indicating an encoding method of the coded frame from the outside, and thus the skip macroblock. The block determining process is started, and when the frame coded signal is a signal indicating an intra-frame predictive coding method, the coding means codes each macroblock of the coded frame, An image coding apparatus, characterized in that, when the coded signal is not a signal indicating an intra-frame predictive coding method, the difference value is coded.
【請求項23】 符号化対象である被符号化フレームを
処理単位であるマクロブロックにブロック化し、当該フ
レームと参照フレームとの差分値を求め、該差分値を符
号化する処理を、コンピュータにより行うためのプログ
ラムであって、 上記被符号化フレームが静止フレームであるか否かの判
定を行い、該判定の結果、静止フレームと判定されたフ
レームのうち、少なくとも1フレームを、他のフレーム
の符号化よりも高画質に符号化する高画質符号化処理を
コンピュータにより行うためのプログラムである、 ことを特徴とする画像符号化プログラム。
23. A computer performs a process of dividing an encoded frame to be encoded into macroblocks as a processing unit, obtaining a difference value between the frame and a reference frame, and encoding the difference value. Is a program for determining whether or not the encoded frame is a still frame, and as a result of the determination, at least one of the frames determined to be a still frame is a code of another frame. An image coding program, which is a program for causing a computer to perform a high-quality coding process for coding with a higher image quality than encoding.
JP2003006463A 2002-01-16 2003-01-15 Apparatus and method for coding image, and image coding program Pending JP2003284077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003006463A JP2003284077A (en) 2002-01-16 2003-01-15 Apparatus and method for coding image, and image coding program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2002-7868 2002-01-16
JP2002007868 2002-01-16
JP2003006463A JP2003284077A (en) 2002-01-16 2003-01-15 Apparatus and method for coding image, and image coding program

Publications (1)

Publication Number Publication Date
JP2003284077A true JP2003284077A (en) 2003-10-03

Family

ID=29252936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003006463A Pending JP2003284077A (en) 2002-01-16 2003-01-15 Apparatus and method for coding image, and image coding program

Country Status (1)

Country Link
JP (1) JP2003284077A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005064947A1 (en) * 2003-12-25 2005-07-14 Nec Corporation Moving image encoding method and apparatus
JP2008516514A (en) * 2004-10-07 2008-05-15 松下電器産業株式会社 Image coding apparatus and image decoding apparatus
JP4592805B1 (en) * 2009-06-11 2010-12-08 株式会社東芝 Moving picture decoding apparatus, program, and decoding process simplification method
WO2013066045A1 (en) * 2011-10-31 2013-05-10 엘지전자 주식회사 Method and apparatus for initializing reference picture list
JP2014200076A (en) * 2013-03-15 2014-10-23 株式会社リコー Distribution control system, distribution control method, and program
JP2015522223A (en) * 2012-07-05 2015-08-03 ビタリエビッチ ヤロシェンコ,バディム How to encode digital video
JP2015220741A (en) * 2014-05-21 2015-12-07 株式会社リコー Distribution control system, distribution control method, and program
CN113542804A (en) * 2021-07-09 2021-10-22 杭州当虹科技股份有限公司 Method for detecting static frame sequence based on code stream statistical characteristics

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9071846B2 (en) 2003-12-25 2015-06-30 Nec Corporation Moving picture encoding method and apparatus for performing a multi-frame motion prediction with reference to a plurality of picture frames
JPWO2005064947A1 (en) * 2003-12-25 2007-12-20 日本電気株式会社 Video coding method and apparatus
JP4632049B2 (en) * 2003-12-25 2011-02-16 日本電気株式会社 Video coding method and apparatus
WO2005064947A1 (en) * 2003-12-25 2005-07-14 Nec Corporation Moving image encoding method and apparatus
JP2008516514A (en) * 2004-10-07 2008-05-15 松下電器産業株式会社 Image coding apparatus and image decoding apparatus
JP4838253B2 (en) * 2004-10-07 2011-12-14 パナソニック株式会社 Image encoding device, image encoding method, image decoding device, image decoding method, and recording method
US8514938B2 (en) 2004-10-07 2013-08-20 Hewlett-Packard Development Company L.P. Picture coding apparatus for a still picture sequence and picture decoding apparatus for a still picture sequence
JP4592805B1 (en) * 2009-06-11 2010-12-08 株式会社東芝 Moving picture decoding apparatus, program, and decoding process simplification method
JP2010288044A (en) * 2009-06-11 2010-12-24 Toshiba Corp Moving image decoding apparatus, program and decoding processing simplification method
US8107536B2 (en) 2009-06-11 2012-01-31 Kabushiki Kaisha Toshiba Video decoder
WO2013066045A1 (en) * 2011-10-31 2013-05-10 엘지전자 주식회사 Method and apparatus for initializing reference picture list
JP2015522223A (en) * 2012-07-05 2015-08-03 ビタリエビッチ ヤロシェンコ,バディム How to encode digital video
JP2014200076A (en) * 2013-03-15 2014-10-23 株式会社リコー Distribution control system, distribution control method, and program
JP2015220741A (en) * 2014-05-21 2015-12-07 株式会社リコー Distribution control system, distribution control method, and program
CN113542804A (en) * 2021-07-09 2021-10-22 杭州当虹科技股份有限公司 Method for detecting static frame sequence based on code stream statistical characteristics
CN113542804B (en) * 2021-07-09 2023-10-27 杭州当虹科技股份有限公司 Method for detecting static frame sequence based on code stream statistical characteristics

Similar Documents

Publication Publication Date Title
EP1345450A2 (en) Image coding apparatus, image coding method, and image coding program
JP4643454B2 (en) Moving picture decoding apparatus and moving picture decoding method
KR101089325B1 (en) Encoding method, decoding method, and encoding apparatus for a digital picture sequence
JP5219089B2 (en) Image data generation method
JP2006304307A5 (en)
JP2009021908A (en) Motion picture encoder, and program
JP2006304307A (en) Method for adaptively selecting context model for entropy coding and video decoder
JP2004297768A (en) Video signal encoding apparatus, and video signal encoding method
CN110933430B (en) Secondary coding optimization method
JP4383240B2 (en) Intra-screen predictive coding apparatus, method thereof and program thereof
JP2003304538A (en) Image encoder, image decoder, and method for them
JP2003284077A (en) Apparatus and method for coding image, and image coding program
JP4643437B2 (en) Information processing device
JP2011091772A (en) Image encoder
JP4357560B2 (en) Moving picture coding apparatus, moving picture coding method, and moving picture coding program
JP4964689B2 (en) Image encoding method, image decoding method, image encoding device, image decoding device, image encoding program, image decoding program, and computer-readable recording medium
Chono et al. Detented quantization to suppress flicker artifacts in periodically inserted intra-coded pictures in H. 264 video coding
JPH10229563A (en) Moving image encoding method and moving image encoder
Bansal et al. VP8 Encoder—Cost effective implementation
JP2007529144A (en) How to prevent noise during macroblock coding
KR0123243B1 (en) Bit rate control method in a scene conversion
JP4185413B2 (en) Flicker reduction quantizer, flicker reduction quantization method, and program thereof
JP2005303362A (en) Image coder and program
KR20040066397A (en) Image Compression System for Digital Video Surveillance and Method for controlling the Same
KR200309401Y1 (en) Image Compression System for Digital Video Surveillance

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080311

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080325

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080515

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090324