JP2000069485A - Moving picture compression device - Google Patents

Moving picture compression device

Info

Publication number
JP2000069485A
JP2000069485A JP23758998A JP23758998A JP2000069485A JP 2000069485 A JP2000069485 A JP 2000069485A JP 23758998 A JP23758998 A JP 23758998A JP 23758998 A JP23758998 A JP 23758998A JP 2000069485 A JP2000069485 A JP 2000069485A
Authority
JP
Japan
Prior art keywords
motion
frame
frames
data
image
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.)
Granted
Application number
JP23758998A
Other languages
Japanese (ja)
Other versions
JP3542911B2 (en
Inventor
Hiroyuki Ishikawa
裕之 石川
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP23758998A priority Critical patent/JP3542911B2/en
Publication of JP2000069485A publication Critical patent/JP2000069485A/en
Application granted granted Critical
Publication of JP3542911B2 publication Critical patent/JP3542911B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a moving picture compression device in which the number of frames that are actually compressed can be reduced and smooth movement can be realized without deteriorating picture quality. SOLUTION: A movement retrieval means 12 obtains with which part in a reference frame the respective blocks of a present frame has high correlation. A distance to the block having the highest correlation is set to be the moving distance of the block from the reference frame. A movement judgment means 13 obtains the total of moving quantity in a whole screen based on the moving distances of the respective blocks and judges whether the present frame is a picture having movement or not. When the present frame is judged to be a picture with less movement, a processing up to the movement judgment means 13 is executed by the previously decided number of frames. Then, the compression processings of a frequency conversion means 14 and subsequent means are executed after the number of frames exceeds the previously decided number. When the picture of much movement is detected in the movement judgement means even if the number of frames does not continuously satisfy the previously decided number, the compression processing is executed without a system waits for the previously decided number of frames.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、動画像を圧縮符号
化して例えば蓄積媒体に記録する動画圧縮装置にに関
し、画像の動きが少ないときは画像を間引いて圧縮し、
動きが多いときは滑らかなまま圧縮できるようにするも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving image compression apparatus for compressing and encoding a moving image and recording the moving image on, for example, a storage medium.
When there is a lot of movement, compression can be performed with smoothness.

【0002】[0002]

【従来の技術】通信系の動画像圧縮方法のひとつに、前
のフレームと比較して変化のあった部分だけを求めて圧
縮する手法がある。この方法によると、動きの激しい画
像だと変化のある部分が多くなり圧縮効率が低下する。
画像をネットワークなどを通じてリアルタイムに送信す
る場合は、圧縮効率が低下すると送信に時間がかかって
しまい、送信できるフレーム数が減少してしまう。同様
の圧縮方式でリアルタイムに圧縮画像を送信する代わり
に蓄積媒体に記録するようにしても、処理の動作は変わ
らないので、動きの多い部分ではフレーム数が減少して
しまう。
2. Description of the Related Art As one of moving image compression methods for communication systems, there is a method of obtaining and compressing only a portion that has changed compared to a previous frame. According to this method, in the case of a rapidly moving image, there are many changed parts and the compression efficiency is reduced.
When transmitting an image in real time through a network or the like, if the compression efficiency is reduced, it takes time to transmit, and the number of frames that can be transmitted is reduced. Even if a compressed image is recorded on a storage medium instead of being transmitted in real time by the same compression method, the processing operation does not change, so that the number of frames is reduced in a portion having a lot of motion.

【0003】また、MPEG(Moving Picture Experts
Group)1に代表されるような蓄積系の動画像圧縮方法で
は、単位時間あたりのフレーム数が決められているた
め、動きの少ない部分も動きの激しい部分も一定のサン
プリング周期で圧縮する必要がある。この方法だと、見
た目にあまり変化していない画像も圧縮しなくてはなら
ないため、圧縮効率が低下してしまう。
Also, MPEG (Moving Picture Experts)
In a moving image compression method of a storage system represented by Group 1, the number of frames per unit time is determined. Therefore, it is necessary to compress a portion having a small amount of motion or a portion having a large amount of motion at a constant sampling cycle. is there. With this method, an image that does not change much in appearance must also be compressed, so that the compression efficiency is reduced.

【0004】また、特開平7−75092号公報には、
ネットワークで送れるデータ量により解像度を変化させ
て圧縮率を調整する手法が記載されている。この手法で
は、ネットワークの状態によっては動きの多い部分の解
像度が低くなるため、画質が劣化してしまうという問題
点がある。
Japanese Patent Application Laid-Open No. 7-75092 discloses that
A method is described in which the compression rate is adjusted by changing the resolution according to the amount of data that can be sent over a network. This method has a problem that the image quality is degraded because the resolution of a portion having a lot of motion is reduced depending on the state of the network.

【0005】また、特開平7−222173号公報に
は、フレーム間で差分を求め、動きの少ない画像は送信
せずにスチル状態を示す識別信号を送るという手法が記
載されている。この手法では、識別信号を判断する専用
の復号化器が必要になるという問題点がある。また、ス
チルと判断された場合は画像データの伝送が短縮される
が、1フレーム毎に送信処理を行うために、スチル処理
時に短縮された分の伝送路が動きの多い部分の圧縮デー
タの伝送に割り当てられることがなく、伝送路の帯域を
十分に活用できないという問題点もある。
Japanese Patent Laid-Open Publication No. Hei 7-222173 describes a method of calculating a difference between frames and transmitting an identification signal indicating a still state without transmitting an image with little motion. This method has a problem that a dedicated decoder for judging the identification signal is required. When it is determined that the still data is still, the transmission of the image data is shortened. Therefore, there is also a problem that the bandwidth of the transmission path cannot be fully utilized.

【0006】[0006]

【発明が解決しようとする課題】本発明の課題は、実際
に圧縮するフレーム数を減らすことができるとともに、
画質を劣化させることなく滑らかな動きが再現できる動
画圧縮装置を提供することにある。
An object of the present invention is to reduce the number of frames to be actually compressed,
It is an object of the present invention to provide a moving image compression apparatus capable of reproducing smooth motion without deteriorating image quality.

【0007】[0007]

【課題を解決するための手段】本発明による動画圧縮装
置の基本構成は、動画像データをフレーム単位に受け取
り、前のフレームから画像がどれだけ変化したかを検出
する動き検索手段と、この変化した量の画面全体の合計
から現フレームが動きのある画像かどうかを判定する動
き判定手段と、その判定の結果、動きの少ない画像と判
定された場合には、予め定めた数フレーム分の1フレー
ムだけを圧縮し、動きの多いと判定された場合には、連
続した数フレームを圧縮する圧縮手段とからなる。
The basic structure of a moving picture compression apparatus according to the present invention is as follows. A motion search means for receiving moving picture data on a frame basis and detecting how much the picture has changed from the previous frame, Motion determining means for determining whether or not the current frame is a moving image based on the total of the entire screen of the determined amount. If the result of the determination is that the image has little motion, a predetermined one-seventh frame is used. Compression means for compressing only frames and, when it is determined that there is a lot of motion, compressing several consecutive frames.

【0008】この基本構成を具体化する第1の態様の動
画圧縮装置は、動画像データをフレーム単位に受け取
り、現フレームを複数のブロックに分割しそれぞれのブ
ロックが参照フレームのどの部分と相関が高いかを求
め、最も相関の高いブロックまでの距離を参照フレーム
からの当該ブロックの移動距離とする動き検索手段と、
各ブロックの移動距離を基に画面全体での移動量の総和
を求めて現フレームが動きのある画像かどうかを判定す
る動き判定手段と、動き検索手段で求めた相関性の高い
ブロックとの差分データを周波数成分に変換する周波数
変換手段と、その変換後のデータを量子化する量子化手
段と、量子化データを可変長符号化する可変長符号化手
段とを備え、動き判定手段による判定で現フレームが動
きの少ない画像の場合は、あらかじめ定められたフレー
ム数までは動き判定手段までの処理だけを行い、それを
越えてから周波数変換手段以降の処理を行い、あらかじ
め定められたフレーム数に連続して満たない内に動き判
定手段で動きの多い画像が検出されれば、あらかじめ定
められたフレーム数まで待たずに周波数変換手段以降の
処理を行う。
A moving picture compression apparatus according to a first embodiment, which embodies this basic configuration, receives moving picture data in frame units, divides the current frame into a plurality of blocks, and each block has a correlation with any part of the reference frame. Motion search means for determining whether the distance is high or not, and using a distance to a block having the highest correlation as a moving distance of the block from the reference frame;
The difference between the motion determining means for determining whether the current frame is a moving image by calculating the sum of the moving amounts of the entire screen based on the moving distance of each block, and the highly correlated block obtained by the motion searching means Frequency conversion means for converting data into frequency components, a quantization means for quantizing the data after the conversion, and a variable length coding means for performing variable length coding on the quantized data, If the current frame is an image with little motion, only the processing up to the motion determining means is performed up to the predetermined number of frames, and after that, the processing after the frequency converting means is performed, and the processing is performed to the predetermined number of frames. If an image with a lot of motion is detected by the motion judging means within less than consecutive times, the processing after the frequency converting means is performed without waiting for a predetermined number of frames.

【0009】第2の態様の動画圧縮装置は、動画像デー
タをフレーム単位に受け取り、現フレームを複数のブロ
ックに分割しそれぞれのブロックが参照フレームのどの
部分と相関が高いかを求め、最も相関の高いブロックま
での距離を参照フレームからの当該ブロックの移動距離
とする動き検索手段と、各ブロックの移動距離を基に画
面全体での移動量の総和を求めて現フレームが動きのあ
る画像かどうかを判定する動き判定手段と、動き検索手
段で求めた相関性の高いブロックとの差分データを周波
数成分に変換する周波数変換手段と、その変換後のデー
タを量子化する量子化手段と、量子化データを可変長符
号化する可変長符号化手段と、差分データ値を0にする
ためのデータクリア手段とを備え、動き判定手段による
判定で現フレームが動きの少ない画像の場合は、あらか
じめ定められたフレーム数まではデータクリア手段で前
フレームとの差分データ値を0にして可変長符号化手段
で圧縮符号にし、それを越えてから周波数変換手段以降
の処理を行い、あらかじめ定められたフレーム数に連続
して満たない内に動き判定手段で動きの多い画像が検出
されれば、あらかじめ定められたフレーム数まで待たず
に周波数変換手段以降の処理を行う。
A moving image compression apparatus according to a second aspect receives moving image data on a frame basis, divides a current frame into a plurality of blocks, determines which part of a reference frame has a high correlation with each block, and determines the highest correlation. Search means that sets the distance to the block with the highest frame as the moving distance of the block from the reference frame, and determines whether the current frame is a moving image by calculating the total moving amount of the entire screen based on the moving distance of each block. Motion determining means for determining whether or not the difference data between the highly correlated block obtained by the motion searching means is converted into frequency components; quantizing means for quantizing the converted data; Variable length coding means for performing variable length coding of the encoded data, and data clear means for setting the difference data value to 0, wherein the current frame is determined by the motion determining means. In the case of an image with a small amount of motion, the difference data value from the previous frame is set to 0 by the data clear unit until the number of frames reaches a predetermined number, and the compressed code is set by the variable length coding unit. If an image with a lot of motion is detected by the motion determining means within less than the predetermined number of frames consecutively, the processing after the frequency conversion means is performed without waiting for the predetermined number of frames. Do.

【0010】第3の態様の動画圧縮装置は、入力された
現フレームと参照フレーム間で差分を求める差分検出手
段と、各画素の差分値を基に画面全体での差分値の大き
さの総和を求めて現フレームが動きのある画像かどうか
を判定する動き判定手段と、現フレームを複数のブロッ
クに分割しそれぞれのブロックが参照フレームのどの部
分と相関が高いかを求め、相関性の高いブロックとの差
分データを取り出す動き検索手段と、相関性の高いブロ
ックとの差分データを周波数成分に変換する周波数変換
手段と、その変換後のデータを量子化する量子化手段
と、量子化データを可変長符号化する可変長符号化手段
とを備え、動き判定手段による判定で現フレームが動き
の少ない画像の場合は、あらかじめ定められたフレーム
数までは動き判定手段までの処理だけを行い、それを越
えてから動き検索手段以降の処理を行い、あらかじめ定
められたフレーム数に連続して満たない内に動き判定手
段で動きの多い画像が検出されれば、あらかじめ定めら
れたフレーム数まで待たずに動き検索手段以降の処理を
行う。
A moving image compression apparatus according to a third aspect is provided with a difference detecting means for calculating a difference between an input current frame and a reference frame, and a total sum of the magnitudes of the difference values over the entire screen based on the difference values of each pixel. And a motion determining means for determining whether the current frame is a moving image, and dividing the current frame into a plurality of blocks to determine which part of the reference frame has a high correlation with each block, and Motion search means for extracting difference data from the block, frequency conversion means for converting difference data from the highly correlated block into frequency components, quantization means for quantizing the converted data, and quantization data A variable-length encoding unit for performing variable-length encoding. If the current frame is an image with little motion as judged by the motion judging unit, a motion judging method is performed up to a predetermined number of frames. Only the processing up to and including the motion search means are performed after that, and if an image with a lot of motion is detected by the motion determination means within less than the predetermined number of frames continuously, The processing after the motion search means is performed without waiting for the determined number of frames.

【0011】上記第1〜第3の態様のいずれについて
も、量子化手段の結果を逆量子化する逆量子化手段と、
それを周波数成分から画素成分に変換する逆周波数変換
手段と、その変換されたデータから動き検索手段のため
の参照フレームを作成する動き補償手段とを追加するこ
とができる。
In any of the first to third aspects, an inverse quantization means for inversely quantizing a result of the quantization means,
It is possible to add an inverse frequency conversion means for converting the frequency component into a pixel component and a motion compensation means for creating a reference frame for the motion search means from the converted data.

【0012】[0012]

【発明の実施の形態】次に、本発明の実施の形態を図面
に基づいて詳述する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0013】図1を参照すると、本発明の第1実施例の
動画圧縮装置は、画像入力手段11と、動き検索手段1
2と、動き判定手段13と、周波数変換手段14と、量
子化手段15と、逆量子化手段16と、逆周波数変換手
段17と、動き補償手段18と、可変長符号化手段19
と、出力手段20とから構成されている。
Referring to FIG. 1, a moving image compression apparatus according to a first embodiment of the present invention includes an image input unit 11 and a motion search unit 1.
2, motion determining means 13, frequency converting means 14, quantizing means 15, dequantizing means 16, inverse frequency converting means 17, motion compensating means 18, variable length coding means 19
And output means 20.

【0014】これらの手段はそれぞれ概略つぎのように
動作する。画像入力手段11より1フレーム単位に画像
が入力され、動き検索手段12で参照フレームとして格
納されている前フレームと現フレームとの相関性を求め
るため、現フレームを複数のブロックに分割しそれぞれ
のブロックが参照フレームのどの部分と相関が高いかを
求める。最も相関の高いブロックまでの距離が、参照フ
レームからのそのブロックの移動距離と考えられる。動
き判定手段13では、各ブロックの移動距離を基に画面
全体での移動量の総和を求め、この値より現フレームが
参照フレームからどれだけ変化したかが分かる。
Each of these means operates as follows. An image is input in units of one frame from the image input unit 11, and the motion search unit 12 divides the current frame into a plurality of blocks in order to determine the correlation between the previous frame stored as a reference frame and the current frame. Find out which part of the reference frame the block is highly correlated with. The distance to the block with the highest correlation is considered as the movement distance of the block from the reference frame. The motion judging means 13 calculates the total sum of the moving amounts of the entire screen based on the moving distance of each block, and from this value, it is possible to know how much the current frame has changed from the reference frame.

【0015】現フレームが動きの多い画像の場合は、動
き検索手段12で求めた相関性の高いブロックとの差分
データが周波数変換手段14に入力される。周波数変換
手段14で差分データを周波数成分に変換し、量子化手
段15で量子化が行われる。可変長符号化手段19で圧
縮符号にし、出力手段20で出力される。また、次のフ
レーム圧縮用の参照フレーム作成のため、量子化手段1
5の結果を逆量子化手段16に渡し逆量子化を行い、逆
周波数変換手段17で周波数成分から画素成分に変換
し、動き補償手段18で参照フレームのデータを作成す
る。
If the current frame is an image with a lot of motion, difference data from a highly correlated block obtained by the motion search means 12 is input to the frequency conversion means 14. The difference data is converted into a frequency component by the frequency conversion unit 14, and quantization is performed by the quantization unit 15. The data is converted into a compression code by the variable length coding means 19 and output by the output means 20. In order to create a reference frame for the next frame compression, quantization means 1 is used.
The result of No. 5 is passed to the inverse quantization means 16 for inverse quantization, the frequency component is converted to the pixel component by the inverse frequency conversion means 17, and the data of the reference frame is created by the motion compensation means 18.

【0016】現フレームが動きの少ない画像の場合は、
あらかじめ定められたフレーム数、例えば連続10フレ
ームに満たない場合は動き判定手段13までの処理だけ
を行い、11フレーム目に上記周波数変換手段14以降
の処理を全て行う。もし、連続10フレーム満たない内
に動き判定手段13で動きの多い画像が検出されれば1
1フレーム目まで待たずに上記周波数変換手段14以降
の処理を行う。
If the current frame is an image with little motion,
If the number of frames is less than a predetermined number of frames, for example, 10 continuous frames, only the processing up to the motion determining means 13 is performed, and all the processing after the frequency converting means 14 is performed on the eleventh frame. If an image with a lot of motion is detected by the motion determining means 13 within less than 10 consecutive frames, 1
The processing after the frequency conversion means 14 is performed without waiting for the first frame.

【0017】次に、図2のフローチャートを参照して第
1実施例の全体の動作について詳細に説明する。
Next, the overall operation of the first embodiment will be described in detail with reference to the flowchart of FIG.

【0018】まず、画像データが入力されると、入力画
像は複数のブロックに分割され、そのブロックごとに参
照フレームとの間で最も相関がある部分を検索する(ス
テップS1)。例えば、各画素の差分値の二乗和の合計
や差分値の絶対値和などを求め、検索範囲内で最小値だ
った部分を参照ブロックの位置とする。その検索結果か
ら参照ブロックまでの距離を求め、1画面全体での距離
の合計値を計算し、その値としきい値Aを比較する(ス
テップS2)。しきい値Aより大きい場合はそのまま圧
縮処理を行い、そうでない場合は、圧縮処理を行わない
フレームが連続した数(スキップカウント)としきい値
Bを比較する(ステップS7)。しきい値Bよりも大き
い場合はそのフレームは圧縮処理を行う。そうでない場
合は、そのフレームの圧縮処理は行わずに、スキップカ
ウントに1を加えて更新する(ステップS8)。圧縮処
理を行うフレームは、まずスキップカウントを0に更新
し(ステップS3)、周波数変換を行い(ステップS
4)、量子化を行い(ステップS5)、その結果を可変
長符号化する(ステップS6)。これを全てのフレーム
が終了するまで繰り返す(ステップS9)。
First, when image data is input, the input image is divided into a plurality of blocks, and a search is made for a portion having the highest correlation with a reference frame for each block (step S1). For example, the sum of the sum of squares of the difference values of each pixel, the sum of the absolute values of the difference values, and the like are obtained, and the portion having the minimum value within the search range is set as the position of the reference block. The distance to the reference block is obtained from the search result, the total value of the distance over one screen is calculated, and the value is compared with the threshold value A (step S2). If it is larger than the threshold value A, the compression process is performed as it is. Otherwise, the number of consecutive frames (skip count) for which the compression process is not performed is compared with the threshold value B (step S7). If it is larger than the threshold value B, the frame is subjected to compression processing. If not, the frame is not compressed and updated by adding 1 to the skip count (step S8). For the frame to be subjected to the compression processing, the skip count is first updated to 0 (step S3), and the frequency conversion is performed (step S3).
4) Perform quantization (step S5), and perform variable-length encoding on the result (step S6). This is repeated until all frames are completed (step S9).

【0019】次に具体例を用いて説明する。図3のよう
に、毎秒9フレームのデータが入力されたとする。フレ
ーム番号1から6までと11から16までは動きが少な
い画像で、7から10までは動きの多い画像であるとす
る。あらかじめ動きの少ないシーンは毎秒3フレーム、
動きの多いシーンは毎秒9フレームで圧縮すると定めら
れていたとすると、実際に圧縮されるフレームは1、
4、7、8、9、10、13、16になる。
Next, a specific example will be described. Assume that data of 9 frames per second is input as shown in FIG. Frame numbers 1 to 6 and 11 to 16 are images with little movement, and 7 to 10 are images with much movement. Scenes with little motion in advance are 3 frames per second,
Assuming that a scene with a lot of motion is compressed at 9 frames per second, the number of frames actually compressed is 1,
4, 7, 8, 9, 10, 13, and 16.

【0020】ここで図4および図5を参照して、動きの
少ないシーンと動きの多いシーンの判定方法を説明す
る。図4は動きの少ないシーンを説明した図である。参
照フレームと現フレームとの間で物体の移動量をブロッ
ク単位に調べると、移動量を示した図の通りになる。移
動量判定のしきい値を100とすると、図4のフレーム
全体での移動量の合計は46となり、しきい値より小さ
いため移動量が少ないフレームとして判定される。ま
た、図5は移動量の多いシーンを説明した図である。図
4と同様に移動量を示した図より、フレーム全体での移
動量の合計を求めると168になり、しきい値である1
00より大きいためこのフレームは移動量の多いフレー
ムであると判定される。
Referring now to FIG. 4 and FIG. 5, a method of determining a scene with a small motion and a scene with a large motion will be described. FIG. 4 is a diagram illustrating a scene with little motion. When the amount of movement of the object between the reference frame and the current frame is examined in block units, the figure shows the amount of movement. Assuming that the threshold value for the movement amount determination is 100, the total movement amount for the entire frame in FIG. 4 is 46, which is smaller than the threshold value, and is determined as a frame having a small movement amount. FIG. 5 is a diagram illustrating a scene with a large amount of movement. As shown in FIG. 4, the sum of the movement amounts for the entire frame is 168, which is the threshold value of 1
Since it is larger than 00, this frame is determined to be a frame with a large moving amount.

【0021】次に、本発明の第2実施例について説明す
る。MPEG1などのように、単位時間あたりのフレー
ム数が規定されている圧縮方式の場合について図6を参
照して説明する。図6はMPEG1のフレーム構成を示
した図である。フレームのタイプにはI、P、Bとあ
り、Iフレームは参照フレームを用いないで圧縮を行
い、Pフレームは前のIもしくはPフレームのいずれか
を参照して圧縮を行う。Bフレームは前後のIもしくは
Pフレームを参照して圧縮を行い、Bフレーム自身は参
照フレームとして用いられることはない。MPEG1で
は、単位時間あたりのフレーム数が規定されているた
め、圧縮処理を行わないフレームというものはあり得な
いので、参照フレームとして用いられないBフレームの
データを参照フレームと全く同じ画像として扱うことで
圧縮後のデータ量が非常に小さくなるため、圧縮処理を
行わない場合と同様の効果を得ることができる。
Next, a second embodiment of the present invention will be described. A case of a compression method in which the number of frames per unit time is defined, such as MPEG1, will be described with reference to FIG. FIG. 6 is a diagram showing a frame configuration of MPEG1. Frame types include I, P, and B. An I frame is compressed without using a reference frame, and a P frame is compressed with reference to either the previous I or P frame. The B frame is compressed with reference to the preceding or succeeding I or P frame, and the B frame itself is not used as a reference frame. In MPEG1, since the number of frames per unit time is specified, there is no frame that is not subjected to compression processing. Therefore, B-frame data that is not used as a reference frame should be treated as the same image as the reference frame. Since the data amount after compression becomes very small, the same effect as when no compression processing is performed can be obtained.

【0022】図7を参照すると、第2実施例は、画像入
力手段21と、動き検索手段22と、動き判定手段23
と、周波数変換手段24と、量子化手段25と、逆量子
化手段26と、逆周波数変換手段27と、動き補償手段
28と、可変長符号化手段29と、データクリア手段3
0と、出力手段31とから構成されている。
Referring to FIG. 7, in the second embodiment, an image input means 21, a motion search means 22, and a motion determination means 23
Frequency conversion means 24, quantization means 25, inverse quantization means 26, inverse frequency conversion means 27, motion compensation means 28, variable length coding means 29, data clear means 3
0 and output means 31.

【0023】これらの手段はそれぞれ概略つぎのように
動作する。画像入力手段21より1フレーム単位に画像
が入力され、動き検索手段22で参照フレームとして格
納されている前フレームと現フレームとの相関性を求め
るため、現フレームを複数のブロックに分割しそれぞれ
のブロックが参照フレームのどの部分と相関が高いかを
求める。最も相関の高いブロックまでの距離が、参照フ
レームからのそのブロックの移動距離と考えられる。動
き判定手段23では、各ブロックの移動距離を基に画面
全体での移動量の総和を求め、この値より現フレームが
参照フレームからどれだけ変化したかが分かる。
Each of these means operates as follows. An image is input in units of one frame from the image input unit 21, and the motion search unit 22 divides the current frame into a plurality of blocks in order to determine the correlation between the previous frame stored as a reference frame and the current frame. Find out which part of the reference frame the block is highly correlated with. The distance to the block with the highest correlation is considered as the movement distance of the block from the reference frame. The motion determining means 23 calculates the sum of the movement amounts of the entire screen based on the movement distance of each block, and from this value, it is possible to know how much the current frame has changed from the reference frame.

【0024】現フレームが動きの多い画像の場合は、動
き検索手段22で求めた相関性の高いブロックとの差分
データが周波数変換手段24に入力される。周波数変換
手段24で差分データを周波数成分に変換し、量子化手
段25で量子化が行われる。可変長符号化手段29で圧
縮符号にし、出力手段31で出力される。また、次のフ
レーム圧縮用の参照フレーム作成のため、量子化手段2
5の結果を逆量子化手段26に渡し逆量子化を行い、逆
周波数変換手段27で周波数成分から画素成分に変換
し、動き補償手段28で参照フレームのデータを作成す
る。
If the current frame is an image having a lot of motion, difference data from a highly correlated block obtained by the motion search means 22 is input to the frequency conversion means 24. The difference data is converted into frequency components by the frequency conversion unit 24, and quantization is performed by the quantization unit 25. The data is converted into a compression code by the variable length coding means 29 and output by the output means 31. In order to create a reference frame for the next frame compression, the quantization means 2
The result of No. 5 is passed to the inverse quantization means 26 to perform inverse quantization. The inverse frequency conversion means 27 converts the frequency components into pixel components, and the motion compensation means 28 creates reference frame data.

【0025】現フレームが動きの少ない画像の場合は、
あらかじめ定められたフレーム数、例えば連続10フレ
ームに満たない場合はデータクリア手段30で前フレー
ムとの差分データ値を0にし、可変長符号化手段29で
圧縮符号にし、出力手段31で出力される。11フレー
ム目に上記周波数変換手段24以降の処理を全て行う。
もし、連続10フレーム満たない内に動き判定手段23
で動きの多い画像が検出されれば11フレーム目まで待
たずに上記周波数変換手段24以降の処理を行う。
If the current frame is an image with little motion,
If the number of frames is less than a predetermined number of frames, for example, 10 consecutive frames, the data clear unit 30 sets the difference data value from the previous frame to 0, the variable length coding unit 29 converts the data into a compression code, and the output unit 31 outputs the data. . In the eleventh frame, all the processes after the frequency conversion means 24 are performed.
If less than 10 consecutive frames,
If an image with a lot of motion is detected, the processing after the frequency conversion means 24 is performed without waiting for the eleventh frame.

【0026】図8のフローチャートを参照して第2実施
例の全体の動作について詳細に説明する。
The overall operation of the second embodiment will be described in detail with reference to the flowchart of FIG.

【0027】まず、画像データが入力されると入力画像
は複数のブロックに分割され、そのブロックごとに参照
フレームとの間で最も相関がある部分を検索する(ステ
ップS11)。例えば、各画素の差分値の二乗和の合計
や差分値の絶対値和などを求め、検索範囲内で最小値だ
った部分を参照ブロックの位置とする。その検索結果か
ら参照ブロックまでの距離を求め、1画面全体での距離
の合計値を計算し、その値としきい値Aを比較する(ス
テップS12)。しきい値Aより大きい場合はそのまま
圧縮処理を行い、そうでない場合は圧縮処理を行わない
フレームが連続した数(スキップカウント)としきい値
Bを比較する(ステップS16)。しきい値Bよりも大
きい場合はそのフレームは圧縮処理を行う。そうでない
場合は、スキップカウントに1を加えて更新し(ステッ
プS17)、動き検索後の差分データを全て0、つまり
参照フレームと全く同一画像として扱う(ステップS1
8)。そしてデータが0のフレームの符号化を行うため
可変長符号化を行う(S19)。圧縮処理を行うフレー
ムは、まずスキップカウントを0に更新し(ステップS
13)、周波数変換を行い(ステップS14)、量子化
を行い(ステップS15)、その結果を可変長符号化す
る(ステップS19)。これを全てのフレームが終了す
るまで繰り返す(ステップS20)。
First, when image data is input, the input image is divided into a plurality of blocks, and a search is made for a portion having the highest correlation with a reference frame for each block (step S11). For example, the sum of the sum of squares of the difference values of each pixel, the sum of the absolute values of the difference values, and the like are obtained, and the portion having the minimum value within the search range is set as the position of the reference block. The distance to the reference block is obtained from the search result, the total value of the distance over the entire screen is calculated, and the value is compared with the threshold value A (step S12). If the threshold value is larger than the threshold value A, the compression process is performed as it is, otherwise, the threshold value B is compared with the number of consecutive frames (skip count) for which the compression process is not performed (step S16). If it is larger than the threshold value B, the frame is subjected to compression processing. Otherwise, the skip count is updated by adding 1 (step S17), and the difference data after the motion search is all treated as 0, that is, treated as the same image as the reference frame (step S1).
8). Then, variable-length encoding is performed to encode a frame having data of 0 (S19). For a frame to be subjected to compression processing, the skip count is first updated to 0 (step S
13) Perform frequency conversion (step S14), perform quantization (step S15), and perform variable-length encoding on the result (step S19). This is repeated until all frames are completed (step S20).

【0028】図9に差分データが0の時のBフレームの
符号を示す。フレームの先頭を示すPSCから始まり、
PCTでBフレームであることが示されている。圧縮デ
ータは16×16画素のブロック(マクロブロック)単
位で記述される。MBAIは前のマクロブロックからの
増加分を示し、先頭では1である。MBTYPEではマ
クロブロックの形式について記述され、MBPが0とい
うことはそのマクロブロックには符号化するデータがな
いことを示している。またMBESCは33個分のマク
ロブロックに符号化データがないことが示される。これ
が2回記述されているので66個分のマクロブロックに
符号化データがないことが分かる。続くMBAIが13
ということは、さらに12個分は符号化データがなく、
そのマクロブロックのMBPが0であることから、13
個分の符号化データがないことが分かる。この例で示し
た画像は、80個のマクロブロックから生成されている
画像で、符号化しないマクロブロック数は1+66+1
3=80になり、全てのマクロブロックが符号化されて
いないことを示している。その時のデータ量は157ビ
ットで済む。
FIG. 9 shows the codes of the B frame when the difference data is 0. Starting with a PSC indicating the beginning of the frame,
The PCT indicates that the frame is a B frame. The compressed data is described in units of 16 × 16 pixel blocks (macro blocks). MBAI indicates an increment from the previous macroblock, and is 1 at the beginning. In MBTYPE, the format of a macroblock is described, and a MBP of 0 indicates that there is no data to be encoded in that macroblock. Also, MBESC indicates that there is no encoded data in 33 macroblocks. Since this is described twice, it can be seen that there is no encoded data in 66 macro blocks. The next MBAI is 13
This means that there is no encoded data for 12 more,
Since the MBP of the macroblock is 0, 13
It can be seen that there is no coded data for each piece. The image shown in this example is an image generated from 80 macro blocks, and the number of macro blocks not to be encoded is 1 + 66 + 1.
3 = 80, indicating that all macroblocks have not been coded. The data amount at that time is only 157 bits.

【0029】次に、本発明の第3実施例について図面を
参照して詳細に説明する。図10を参照すると、第3実
施例は、画像入力手段41と、差分検出手段42と、動
き判定手段43と、動き検索手段44と、周波数変換手
段45と、量子化手段46と、逆量子化手段47と、逆
周波数変換手段48と、動き補償手段49と、可変長符
号化手段50と、出力手段51とから構成されている。
Next, a third embodiment of the present invention will be described in detail with reference to the drawings. Referring to FIG. 10, the third embodiment includes an image input unit 41, a difference detection unit 42, a motion determination unit 43, a motion search unit 44, a frequency conversion unit 45, a quantization unit 46, an inverse quantum It comprises an encoding means 47, an inverse frequency conversion means 48, a motion compensation means 49, a variable length encoding means 50, and an output means 51.

【0030】これらの手段はそれぞれ概略つぎのように
動作する。画像入力手段41より1フレーム単位に画像
が入力され、差分検出手段42で現フレームと参照フレ
ーム間で差分を求める。例えば輝度成分の差分の絶対値
を求めることで変化量を得ることが出来る。動き判定手
段43では、各画素の差分値を基に画面全体での差分値
の大きさの総和を求め、この値より現フレームが参照フ
レームからどれだけ変化したかが分かる。
Each of these means operates as follows. An image is input from the image input unit 41 in units of one frame, and the difference between the current frame and the reference frame is obtained by the difference detection unit 42. For example, the amount of change can be obtained by obtaining the absolute value of the difference between the luminance components. The motion determining means 43 calculates the total sum of the magnitudes of the difference values over the entire screen based on the difference values of the pixels, and from this value, it is possible to know how much the current frame has changed from the reference frame.

【0031】現フレームが動きの多い画像の場合は、動
き検索手段44で参照フレームとして格納されている前
フレームと現フレームとの相関性を求めるため、現フレ
ームを複数のブロックに分割しそれぞれのブロックが参
照フレームのどの部分と相関が高いかを求める。相関性
の高いブロックとの差分データが周波数変換手段45に
入力されると周波数成分に変換され、量子化手段46で
量子化が行われる。可変長符号化手段50で圧縮符号に
し、出力手段51で出力される。また、次のフレーム圧
縮用の参照フレーム作成のため、量子化手段46の結果
を逆量子化手段47に渡し逆量子化を行い、逆周波数変
換手段48で周波数成分から画素成分に変換し、動き補
償手段49で参照フレームのデータを作成する。
If the current frame is an image having a lot of motion, the current frame is divided into a plurality of blocks in order to obtain the correlation between the previous frame stored as a reference frame and the current frame by the motion search means 44. Find out which part of the reference frame the block is highly correlated with. When the difference data from the highly correlated block is input to the frequency conversion unit 45, it is converted into a frequency component, and quantization is performed by the quantization unit 46. The data is converted into a compression code by the variable length coding means 50 and output by the output means 51. Further, in order to create a reference frame for the next frame compression, the result of the quantization means 46 is passed to the inverse quantization means 47 to perform inverse quantization, and the inverse frequency conversion means 48 converts the frequency component into a pixel component, The compensator 49 creates reference frame data.

【0032】現フレームが動きの少ない画像の場合は、
あらかじめ定められたフレーム数、例えば連続10フレ
ームに満たない場合は動き判定手段43までの処理だけ
を行い、11フレーム目に上記動き検索手段44以降の
処理を全て行う。もし、連続10フレーム満たない内に
動き判定手段43で動きの多い画像が検出されれば11
フレーム目まで待たずに上記動き検索手段44以降の処
理を行う。
If the current frame is an image with little motion,
If the number of frames is less than a predetermined number of frames, for example, ten consecutive frames, only the processing up to the motion determining means 43 is performed, and all the processing after the motion searching means 44 is performed on the eleventh frame. If an image with a lot of motion is detected by the motion determining means 43 within less than 10 consecutive frames, 11
The processing after the motion search means 44 is performed without waiting for the frame.

【0033】次に、図11のフローチャートを参照して
第3実施例の全体の動作について詳細に説明する。
Next, the overall operation of the third embodiment will be described in detail with reference to the flowchart of FIG.

【0034】まず、画像データが入力されると入力画像
は参照フレームと同じ位置にある画素同士で差分を求め
られる(ステップS21)。この差分値から画面全体で
の変化量を計算し、その値としきい値Dと比較する(ス
テップS22)。しきい値Dより大きい場合はそのまま
圧縮処理を行い、そうでない場合はスキップカウントと
しきい値Bを比較する(ステップS28)。しきい値B
よりも大きい場合はそのフレームは圧縮処理を行う。そ
うでない場合は、そのフレームの圧縮処理は行わずに、
スキップカウントに1を加えて更新する(ステップS2
9)。圧縮処理を行うフレームは、まずスキップカウン
トを0に更新する(ステップS23)。入力画像は複数
のブロックに分割され、そのブロックごとに参照フレー
ムとの間で最も相関がある部分を検索する(ステップS
24)。動き検索で得られた差分データの周波数変換を
行い(ステップS25)、量子化を行い(ステップS2
6)、その結果を可変長符号化する(ステップS2
7)。これを全てのフレームが終了するまで繰り返す
(ステップS30)。
First, when image data is input, a difference between pixels in the input image at the same position as the reference frame is obtained (step S21). The amount of change in the entire screen is calculated from the difference value, and is compared with the threshold value D (step S22). If it is larger than the threshold value D, the compression process is performed as it is, and if not, the skip count is compared with the threshold value B (step S28). Threshold B
If it is larger, the frame is subjected to compression processing. Otherwise, without compressing the frame,
The skip count is updated by adding 1 (step S2)
9). The frame to be subjected to the compression process first updates the skip count to 0 (step S23). The input image is divided into a plurality of blocks, and for each block, a portion having the highest correlation with a reference frame is searched (step S).
24). The frequency conversion of the difference data obtained by the motion search is performed (step S25), and the quantization is performed (step S2).
6), the result is subjected to variable length coding (step S2)
7). This is repeated until all frames are completed (step S30).

【0035】次に具体例を用いて説明する。図12およ
び図13を参照して、動きの少ないシーンと動きの多い
シーンの判定方法を説明する。図12は動きの少ないシ
ーンを説明した図である。参照フレームと現フレームと
の間で差分を画素単位に調べると変化量を示した図の通
りになる。変化量は、差分値の大きさがしきい値C、例
えば10より大きい画素が何画素あるかで求められる。
変化量がしきい値D、例えば15画素以上あれば動きの
多いシーンと判定されるとすると、図12で差分値の大
きさが5より大きいものは6画素で、これは15画素よ
り少ないため移動量が少ないフレームとして判定され
る。また、図13は移動量の多いシーンを説明した図で
ある。図12と同様に変化量を示した図より、差分値が
5より大きい画素数を求めると20になり、しきい値で
ある15より大きいためこのフレームは移動量の多いフ
レームであると判定される。このようにしきい値Cを設
けることで画面に発生する微少なノイズ成分を除去した
変化量の判定が可能になる。
Next, a specific example will be described. With reference to FIG. 12 and FIG. 13, a method of determining a scene with a small motion and a scene with a large motion will be described. FIG. 12 is a diagram illustrating a scene with little motion. When the difference between the reference frame and the current frame is examined on a pixel-by-pixel basis, the amount of change is as shown in the figure. The amount of change is determined based on how many pixels the difference value is larger than a threshold value C, for example, 10 pixels.
If the change amount is a threshold value D, for example, 15 pixels or more, it is determined that the scene has a lot of motion. In FIG. 12, 6 pixels have a difference value larger than 5 pixels, which is smaller than 15 pixels. It is determined that the frame has a small moving amount. FIG. 13 is a diagram illustrating a scene with a large amount of movement. As shown in FIG. 12, the number of pixels having a difference value larger than 5 is obtained as 20 from the diagram showing the amount of change, and since the difference value is larger than the threshold value of 15, this frame is determined to be a frame with a large moving amount. You. By providing the threshold value C in this manner, it is possible to determine the amount of change by removing a minute noise component generated on the screen.

【0036】[0036]

【発明の効果】本発明の第1の効果は、圧縮したデータ
量を削減できることにある。その理由は、画面にほとん
ど動きがないときにフレームを間引くことにより、実際
に圧縮するフレーム数を減らすことが出来るからであ
る。第2の効果は滑らかな動きが再現できることにあ
る。その理由は、画面内の物体の動いた量が多いと単位
時間に圧縮するフレーム数を増やすためである。第3の
効果は画質を劣化させることなく滑らかな動きが再現で
きることにある。その理由は、圧縮画像を蓄積媒体に記
憶させることで動きのない時に削減したデータ量を動き
の大きい時の圧縮にまわすことが出来るからである。
A first effect of the present invention is that the amount of compressed data can be reduced. The reason is that the number of frames to be actually compressed can be reduced by thinning out frames when there is almost no movement on the screen. The second effect is that smooth movement can be reproduced. The reason is that if the amount of movement of the object in the screen is large, the number of frames to be compressed per unit time is increased. The third effect is that a smooth motion can be reproduced without deteriorating the image quality. The reason is that by storing the compressed image in the storage medium, the data amount reduced when there is no motion can be transferred to compression when the motion is large.

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

【図1】本発明の第1実施例の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】その動作のフローチャートである。FIG. 2 is a flowchart of the operation.

【図3】そのフレーム処理の具体例を説明する図であ
る。
FIG. 3 is a diagram illustrating a specific example of the frame processing.

【図4】動きの少ないシーンを説明した図である。FIG. 4 is a diagram illustrating a scene with little motion.

【図5】移動量の多いシーンを説明した図である。FIG. 5 is a diagram illustrating a scene with a large amount of movement.

【図6】MPEG1のフレーム構成を示した図である。FIG. 6 is a diagram showing a frame configuration of MPEG1.

【図7】本発明の第2実施例の構成を示すブロック図で
ある。
FIG. 7 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.

【図8】その動作のフローチャートである。FIG. 8 is a flowchart of the operation.

【図9】差分データが0の時のBフレームの符号図であ
る。
FIG. 9 is a code diagram of a B frame when difference data is 0.

【図10】本発明の第3実施例の構成を示すブロック図
である。
FIG. 10 is a block diagram showing a configuration of a third embodiment of the present invention.

【図11】その動作のフローチャートである。FIG. 11 is a flowchart of the operation.

【図12】動きの少ないシーンを説明した図である。FIG. 12 is a diagram illustrating a scene with little motion.

【図13】移動量の多いシーンを説明した図である。FIG. 13 is a diagram illustrating a scene with a large amount of movement.

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

11 画像入力手段 12 動き検索手段 13 動き判定手段 14 周波数変換手段 15 量子化手段 16 逆量子化手段 17 逆周波数変換手段 18 動き補償手段 19 可変長符号化手段 20 出力手段 21 画像入力手段 22 動き検索手段 23 動き判定手段 24 周波数変換手段 25 量子化手段 26 逆量子化手段 27 逆周波数変換手段 28 動き補償手段 29 可変長符号化手段 30 データクリア手段 31 出力手段 41 画像入力手段 42 差分検出手段 43 動き判定手段 44 動き検索手段 45 周波数変換手段 46 量子化手段 47 逆量子化手段 48 逆周波数変換手段 49 動き補償手段 50 可変長符号化手段 51 出力手段 DESCRIPTION OF SYMBOLS 11 Image input means 12 Motion search means 13 Motion determination means 14 Frequency conversion means 15 Quantization means 16 Inverse quantization means 17 Inverse frequency conversion means 18 Motion compensation means 19 Variable length coding means 20 Output means 21 Image input means 22 Motion search Means 23 Motion determination means 24 Frequency conversion means 25 Quantization means 26 Inverse quantization means 27 Inverse frequency conversion means 28 Motion compensation means 29 Variable length coding means 30 Data clear means 31 Output means 41 Image input means 42 Difference detection means 43 Motion Determination means 44 motion search means 45 frequency conversion means 46 quantization means 47 inverse quantization means 48 inverse frequency conversion means 49 motion compensation means 50 variable length coding means 51 output means

フロントページの続き Fターム(参考) 5C053 FA01 GB23 GB26 GB32 GB37 HA33 5C059 KK01 MA00 MA05 MA23 MC11 MC38 ME01 ME17 NN01 NN27 NN28 PP05 PP06 PP07 SS11 TA07 TB04 TC12 TC13 TD12 UA02 Continued on the front page F-term (reference) 5C053 FA01 GB23 GB26 GB32 GB37 HA33 5C059 KK01 MA00 MA05 MA23 MC11 MC38 ME01 ME17 NN01 NN27 NN28 PP05 PP06 PP07 SS11 TA07 TB04 TC12 TC13 TD12 UA02

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】動画像データをフレーム単位に受け取り、
前のフレームから画像がどれだけ変化したかを検出する
動き検索手段と、この変化した量の画面全体の合計から
現フレームが動きのある画像かどうかを判定する動き判
定手段と、その判定の結果、動きの少ない画像と判定さ
れた場合には、予め定めた数フレーム分の1フレームだ
けを圧縮し、動きの多いと判定された場合には、連続し
た数フレームを圧縮する圧縮手段とを備えてなることを
特徴とする動画圧縮装置。
1. A method for receiving moving image data in frame units,
Motion search means for detecting how much the image has changed from the previous frame; motion determination means for determining whether or not the current frame is a moving image from the total of the changed amount of the entire screen; and a result of the determination Compression means for compressing only one frame of a predetermined number of frames when it is determined that the image has little motion, and compressing several consecutive frames when it is determined that there is much motion. A moving image compression apparatus, comprising:
【請求項2】動画像データをフレーム単位に受け取り、
現フレームを複数のブロックに分割しそれぞれのブロッ
クが参照フレームのどの部分と相関が高いかを求め、最
も相関の高いブロックまでの距離を参照フレームからの
当該ブロックの移動距離とする動き検索手段と、各ブロ
ックの移動距離を基に画面全体での移動量の総和を求め
て現フレームが動きのある画像かどうかを判定する動き
判定手段と、動き検索手段で求めた相関性の高いブロッ
クとの差分データを周波数成分に変換する周波数変換手
段と、その変換後のデータを量子化する量子化手段と、
量子化データを可変長符号化する可変長符号化手段とを
備え、前記動き判定手段による判定で現フレームが動き
の少ない画像の場合は、あらかじめ定められたフレーム
数までは動き判定手段までの処理だけを行い、それを越
えてから前記周波数変換手段以降の処理を行い、あらか
じめ定められたフレーム数に連続して満たない内に動き
判定手段で動きの多い画像が検出されれば、あらかじめ
定められたフレーム数まで待たずに周波数変換手段以降
の処理を行うことを特徴とする動画圧縮装置。
2. Receiving moving image data in frame units,
A motion search unit which divides the current frame into a plurality of blocks, determines which part of the reference frame has a high correlation with each block, and determines a distance to the block having the highest correlation as a moving distance of the block from the reference frame; A motion determining unit that determines whether or not the current frame is a moving image by calculating the sum of the moving amounts of the entire screen based on the moving distance of each block, and a highly correlated block obtained by the motion searching unit. Frequency conversion means for converting the difference data into frequency components, and quantization means for quantizing the data after the conversion,
A variable-length encoding unit that performs variable-length encoding of the quantized data, and when the current frame is an image with little motion as determined by the motion determining unit, processing up to a predetermined number of frames is performed up to the motion determining unit. Is performed, and after that, the processing after the frequency conversion means is performed.If an image with a lot of motion is detected by the motion determination means within less than the predetermined number of frames continuously, the predetermined value is set. A moving image compression apparatus that performs processing after frequency conversion means without waiting for the number of frames.
【請求項3】動画像データをフレーム単位に受け取り、
現フレームを複数のブロックに分割しそれぞれのブロッ
クが参照フレームのどの部分と相関が高いかを求め、最
も相関の高いブロックまでの距離を参照フレームからの
当該ブロックの移動距離とする動き検索手段と、各ブロ
ックの移動距離を基に画面全体での移動量の総和を求め
て現フレームが動きのある画像かどうかを判定する動き
判定手段と、動き検索手段で求めた相関性の高いブロッ
クとの差分データを周波数成分に変換する周波数変換手
段と、その変換後のデータを量子化する量子化手段と、
量子化データを可変長符号化する可変長符号化手段と、
差分データ値を0にするためのデータクリア手段とを備
え、前記動き判定手段による判定で現フレームが動きの
少ない画像の場合は、あらかじめ定められたフレーム数
まではデータクリア手段で前フレームとの差分データ値
を0にして前記可変長符号化手段で圧縮符号にし、それ
を越えてから前記周波数変換手段以降の処理を行い、あ
らかじめ定められたフレーム数に連続して満たない内に
動き判定手段で動きの多い画像が検出されれば、あらか
じめ定められたフレーム数まで待たずに周波数変換手段
以降の処理を行うことを特徴とする動画圧縮装置。
3. Receiving moving image data in frame units,
A motion search unit which divides the current frame into a plurality of blocks, determines which part of the reference frame has a high correlation with each block, and determines a distance to the block having the highest correlation as a moving distance of the block from the reference frame; A motion determining unit that determines whether or not the current frame is a moving image by calculating the sum of the moving amounts of the entire screen based on the moving distance of each block, and a highly correlated block obtained by the motion searching unit. Frequency conversion means for converting the difference data into frequency components, and quantization means for quantizing the data after the conversion,
A variable-length encoding unit that performs variable-length encoding on the quantized data;
A data clear unit for setting the difference data value to 0, and when the current frame is an image with little motion as determined by the motion determining unit, the data clear unit determines the difference between the current frame and the previous frame up to a predetermined number of frames. The differential data value is set to 0, the variable-length coding means compresses the code, and after exceeding the value, the processing after the frequency conversion means is performed. A moving image compression apparatus that performs processing after frequency conversion means without waiting for a predetermined number of frames when an image with a lot of motion is detected.
【請求項4】入力された現フレームと参照フレーム間で
差分を求める差分検出手段と、各画素の差分値を基に画
面全体での差分値の大きさの総和を求めて現フレームが
動きのある画像かどうかを判定する動き判定手段と、現
フレームを複数のブロックに分割しそれぞれのブロック
が参照フレームのどの部分と相関が高いかを求め、相関
性の高いブロックとの差分データを取り出す動き検索手
段と、相関性の高いブロックとの差分データを周波数成
分に変換する周波数変換手段と、その変換後のデータを
量子化する量子化手段と、量子化データを可変長符号化
する可変長符号化手段とを備え、前記動き判定手段によ
る判定で現フレームが動きの少ない画像の場合は、あら
かじめ定められたフレーム数までは動き判定手段までの
処理だけを行い、それを越えてから前記動き検索手段以
降の処理を行い、あらかじめ定められたフレーム数に連
続して満たない内に動き判定手段で動きの多い画像が検
出されれば、あらかじめ定められたフレーム数まで待た
ずに動き検索手段以降の処理を行うことを特徴とする動
画圧縮装置。
4. A difference detecting means for calculating a difference between an input current frame and a reference frame, and a sum of magnitudes of the difference values over the entire screen based on a difference value of each pixel to determine a motion of the current frame. A motion judging means for judging whether or not the image is a certain image, and a motion for dividing the current frame into a plurality of blocks, determining which part of the reference frame has a high correlation with each block, and extracting difference data from the highly correlated block Search means, frequency conversion means for converting difference data between a highly correlated block into frequency components, quantization means for quantizing the converted data, and variable length code for performing variable length coding on the quantized data If the current frame is an image with little motion as determined by the motion determining means, only processing up to the predetermined number of frames is performed up to the motion determining means, After that, the processing after the motion search means is performed, and if an image with a lot of motion is detected by the motion determination means within less than the predetermined number of frames continuously, up to the predetermined number of frames. A moving picture compression apparatus characterized by performing processing after a motion search means without waiting.
【請求項5】量子化手段の結果を逆量子化する逆量子化
手段と、それを周波数成分から画素成分に変換する逆周
波数変換手段と、その変換されたデータから動き検索手
段のための参照フレームを作成する動き補償手段とを備
えたことを特徴とする請求項2、3又は4記載の動画圧
縮装置。
5. An inverse quantization means for inversely quantizing the result of the quantization means, an inverse frequency conversion means for converting the result from a frequency component to a pixel component, and a reference for the motion search means from the converted data. 5. The moving picture compression apparatus according to claim 2, further comprising a motion compensation unit for creating a frame.
JP23758998A 1998-08-24 1998-08-24 Video compression device Expired - Fee Related JP3542911B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23758998A JP3542911B2 (en) 1998-08-24 1998-08-24 Video compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23758998A JP3542911B2 (en) 1998-08-24 1998-08-24 Video compression device

Publications (2)

Publication Number Publication Date
JP2000069485A true JP2000069485A (en) 2000-03-03
JP3542911B2 JP3542911B2 (en) 2004-07-14

Family

ID=17017569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23758998A Expired - Fee Related JP3542911B2 (en) 1998-08-24 1998-08-24 Video compression device

Country Status (1)

Country Link
JP (1) JP3542911B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7242850B2 (en) 2001-02-23 2007-07-10 Eastman Kodak Company Frame-interpolated variable-rate motion imaging system
JP2010268525A (en) * 2004-09-16 2010-11-25 Ntt Docomo Inc Video evaluation device, frame rate determination device, video process device, video evaluation method, and video evaluation program
CN107483949A (en) * 2017-07-26 2017-12-15 千目聚云数码科技(上海)有限公司 Increase the method and system of SVAC SVC practicality
TWI650012B (en) * 2013-09-25 2019-02-01 Sony Corporation Apparatus, method, and storage medium for data encoding and decoding

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7242850B2 (en) 2001-02-23 2007-07-10 Eastman Kodak Company Frame-interpolated variable-rate motion imaging system
JP2010268525A (en) * 2004-09-16 2010-11-25 Ntt Docomo Inc Video evaluation device, frame rate determination device, video process device, video evaluation method, and video evaluation program
TWI650012B (en) * 2013-09-25 2019-02-01 Sony Corporation Apparatus, method, and storage medium for data encoding and decoding
CN107483949A (en) * 2017-07-26 2017-12-15 千目聚云数码科技(上海)有限公司 Increase the method and system of SVAC SVC practicality

Also Published As

Publication number Publication date
JP3542911B2 (en) 2004-07-14

Similar Documents

Publication Publication Date Title
EP1261208B1 (en) Encoding continuous image data
US7263125B2 (en) Method and device for indicating quantizer parameters in a video coding system
JP3157101B2 (en) Image encoding method and image encoding device
JP3133517B2 (en) Image region detecting device, image encoding device using the image detecting device
EP0561593B1 (en) Image compression apparatus
US6339617B1 (en) Moving picture compressing apparatus and moving picture compressing method
JP2000013799A (en) Device and method for motion compensation encoding and decoding
US5835147A (en) Method for compression and decompression of a video signal
JP3293369B2 (en) Image information re-encoding method and apparatus
KR100227298B1 (en) Code amount controlling method for coded pictures
JP2911682B2 (en) Motion compensation using the minimum number of bits per motion block as a criterion for block matching
FI109394B (en) Method and apparatus for encoding and decoding a video image
JP3542911B2 (en) Video compression device
US6856650B1 (en) Method and apparatus for second or later generation coding of video signal
JPH07222173A (en) Picture processor
WO2000001158A1 (en) Encoder and encoding method
JPH10224779A (en) Method and device for detecting scene change of moving image
JPH06276512A (en) Picture communication equipment
JP3629279B2 (en) Image processing device
JP2002209213A (en) Motion vector detection method and device, and image coder
JPH07298270A (en) Inter-motion compensation frame prediction coder
JP4238408B2 (en) Image compression device
JP4269405B2 (en) Encoding apparatus and method
JPH02222388A (en) Moving picture encoding method
JPH0537919A (en) Image encoder and image decoder

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040126

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040402

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080409

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090409

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100409

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110409

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140409

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees