JPH0787487A - Method and device for coding and decoding picture data - Google Patents

Method and device for coding and decoding picture data

Info

Publication number
JPH0787487A
JPH0787487A JP22527893A JP22527893A JPH0787487A JP H0787487 A JPH0787487 A JP H0787487A JP 22527893 A JP22527893 A JP 22527893A JP 22527893 A JP22527893 A JP 22527893A JP H0787487 A JPH0787487 A JP H0787487A
Authority
JP
Japan
Prior art keywords
code
image
frame
data
holding
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
JP22527893A
Other languages
Japanese (ja)
Other versions
JP3345475B2 (en
Inventor
Hirotaka Chiba
広隆 千葉
Tsuguo Noda
嗣男 野田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP22527893A priority Critical patent/JP3345475B2/en
Publication of JPH0787487A publication Critical patent/JPH0787487A/en
Application granted granted Critical
Publication of JP3345475B2 publication Critical patent/JP3345475B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To naturally reproduce a scene moved rapidly at a predetermined rate from a coded motion picture. CONSTITUTION:A reference code quantity latch means 22 sets a code rate able to be transferred or stored per frame period, that is, a code quantity to a processing discrimination means 26 as a reference code quantity F. When a code quantity (f) of a coding means 16 exceeds the reference code quantity F, a code data output section 30 stops outputting code data and sends a copy code. Only valid code data analyzed by a code analysis means 82 in the decoding side are decoded by a decoding means 84 and when the copy code is analyzed, a picture display control means 88 displays picture data of a preceding frame as they are. A processing discrimination means 26 identifies whether a picture is a still picture or a motion picture as a generating condition of the copy code and in the case of the still picture only, the copy code is sent. In the case of a moving picture, coding is implemented by decreasing a quantization coefficient and the picture quality is degraded without decreasing number of pictures to be coded to satisfy the coding rate.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像データを圧縮し、
またデータ圧縮された画像を復元する画像データの符号
化方法および復元方法並びに装置に関し、特に、複数の
画像の各々の多値画像を、複数の画素からなるブロック
に分割して、ブロック内の画素を直交変換して符号化す
る多値画像の直交変換符号化による画像データの符号化
方法および復元方法並びに装置に関する。
BACKGROUND OF THE INVENTION The present invention compresses image data,
Further, the present invention relates to an image data encoding method and an image data decompression method and apparatus for decompressing a data-compressed image, and in particular, dividing a multi-valued image of each of a plurality of images into a block of a plurality of pixels and TECHNICAL FIELD The present invention relates to an image data encoding method, a restoration method, and an apparatus by orthogonal transform encoding of a multivalued image in which orthogonal transformation is performed for encoding.

【0002】数値データに比べて情報量が桁違いに大き
い画像データ、特に、中間調画像やカラー画像のデータ
を蓄積し、あるいは、高速、高品質で伝送するために
は、画素毎の階調値を高能率に符号化する必要がある。
画像データの高能率な圧縮方式として、例えば適応離散
コサイン変換符号化方式(Adaptive Discrete CosineTr
ansform 以下、略して「ADCT」と称する)があ
る。
In order to store image data whose information amount is incomparably larger than that of numerical data, especially halftone image and color image data, or to transmit at high speed and high quality, gradation for each pixel is required. The values need to be encoded efficiently.
As a highly efficient compression method of image data, for example, an adaptive discrete cosine transform coding method (Adaptive Discrete CosineTr
Ansform is hereinafter referred to as "ADCT" for short).

【0003】ADCTは、画像を8×8画素からなるブ
ロックに分割し、各ブロックの画信号を2次元離散コサ
イン変換(以下、「DCT」と称する)により空間周波
数分布の係数に変換する。更に視覚に適応した閾値で空
間周波数分布の係数を量子化し、求まった量子化係数を
統計的に求めたハフマン・テーブルにより符号化するも
のである。
The ADCT divides an image into blocks of 8 × 8 pixels, and converts the image signal of each block into a coefficient of spatial frequency distribution by a two-dimensional discrete cosine transform (hereinafter referred to as “DCT”). Further, the coefficient of the spatial frequency distribution is quantized with a threshold adapted to the visual sense, and the obtained quantized coefficient is encoded by a Huffman table obtained statistically.

【0004】[0004]

【従来の技術】従来、静止画像の符号化装置では、対象
が動画像であっても静止画像の集合と考え、各画像を単
独に符号化する。図14に従来の静止画像の符号化装置
の例を示す。入力端子104からはフレーム画像データ
の中から縦8画素×横8画素=64画素で構成されるブ
ロック毎の画像データが入力され、ブロックバッファ1
06に保持される。
2. Description of the Related Art Conventionally, in a still image coding apparatus, even if a target is a moving image, it is considered as a set of still images and each image is coded independently. FIG. 14 shows an example of a conventional still image encoding device. Image data for each block composed of vertical 8 pixels × horizontal 8 pixels = 64 pixels is input from the frame image data from the input terminal 104, and the block buffer 1
It is held at 06.

【0005】DCT変換部108は各ブロックの画素信
号を2次元離散コサイン変換により空間周波数分布のD
CT係数に変換する。次に量子化部110が、視覚に適
応した量子化閾値112を用いてDCT係数を量子化
し、最後に量子化DCT係数を統計的に求めたハフマン
符号表116により可変長符号化部114で可変長符号
化し、符号データとして出力端子118より送出する。
The DCT transform unit 108 performs a two-dimensional discrete cosine transform on the pixel signal of each block to obtain a spatial frequency distribution D.
Convert to CT coefficient. Next, the quantization unit 110 quantizes the DCT coefficient using the quantization threshold 112 adapted to the visual sense, and finally the variable-length coding unit 114 uses the Huffman code table 116 that statistically obtains the quantized DCT coefficient. It is long-coded and sent as coded data from the output terminal 118.

【0006】従来の静止画像の復元装置は、図15に示
すように符号化装置と逆の順序で画像を復元して順次画
像メモリに書き込み、1画面の画像を復元する。まず入
力端子120からブロック単位に符号データを入力し、
可変長復号化部122でハフマン復号表124を使用し
て固定長の量子化DCT係数を復号する。次に逆量子化
部126で量子化DCT係数に量子化閾値128を掛け
合せる逆量子化を行ってDCT係数に変換し、逆DCT
変換部130による逆DCTで1ブロック分の画素信号
を復元する。
As shown in FIG. 15, the conventional still image restoration device restores images in the reverse order of the encoding device and sequentially writes them in the image memory to restore one screen image. First, input code data in block units from the input terminal 120,
The variable length decoding unit 122 decodes the fixed length quantized DCT coefficient using the Huffman decoding table 124. Next, the inverse quantization unit 126 performs inverse quantization in which the quantized DCT coefficient is multiplied by the quantization threshold 128 to convert into a DCT coefficient, and the inverse DCT
The inverse DCT by the conversion unit 130 restores the pixel signal for one block.

【0007】このときブロック内画素書き込み制御部1
34による制御のもとにブロックアドレス発生部136
より1ブロック分の画素書込アドレスを発生し、画像メ
モリ132の該当するブロック位置に復元した画素信号
を書き込む。このような静止画像の符号化装置および復
元装置は、LSI化により高速符号化と高速復元が可能
となり、現在で30枚/秒の符号化復元性能が可能とな
っており、簡単な構成で動画像の符号化と復元が可能で
ある。
At this time, in-block pixel writing control unit 1
Under the control of the block 34, the block address generator 136
Then, a pixel write address for one block is generated, and the restored pixel signal is written in the corresponding block position of the image memory 132. Such a still image encoding device and decompression device are capable of high-speed encoding and high-speed decompression by being integrated into an LSI, and currently have an encoding / decompression performance of 30 pictures / sec. Image coding and reconstruction is possible.

【0008】一方、連続シーンを対象としたテレビ会議
向けの動画像の符号化技術がある。図16に従来の動画
像符号化装置の基本部分の構成を示す。動画像の符号化
技術では、前画像の符号化データを復元した復元画像デ
ータを基準画像データとして現画データとの像との差分
を求め、この差分データに対してDCT、量子化、およ
び可変長符号化を施すことを基本にしている。
[0008] On the other hand, there is a moving picture coding technique for a video conference for continuous scenes. FIG. 16 shows the configuration of the basic part of a conventional moving picture coding apparatus. In the moving image coding technique, the difference between the current image data and the image is obtained by using the restored image data obtained by restoring the encoded data of the previous image as the reference image data, and the difference data is subjected to DCT, quantization, and variable. It is basically based on long coding.

【0009】すなわち入力端子138からの現フレーム
の画像データと、画像メモリ162に保持している前回
の符号化データから復元した基準画像データとの差分画
像を差分生成部140でブロックごとに求めてブロック
バッファ142に格納し、DCT変換部144、量子化
部146、ハフマン符号表150を備えた可変長符号化
部148により符号化し、符号バッファ152に格納し
た後、出力端子164から送出する。
That is, a difference image between the image data of the current frame from the input terminal 138 and the reference image data restored from the previous encoded data held in the image memory 162 is obtained for each block by the difference generation unit 140. The data is stored in the block buffer 142, coded by the DCT conversion unit 144, the quantization unit 146, and the variable length coding unit 148 including the Huffman code table 150, stored in the code buffer 152, and then output from the output terminal 164.

【0010】一方、量子化部146からの量子化DCT
係数は逆量子化部156および逆DCT部158で復元
され、加算部160で画像メモリ162に保持している
前回までの復元データの該当するブロック画像に加算さ
れ、画像メモリ162の基準画像を更新する。更に、出
力端子164から送出される符号データの符号量が、予
め定めた符号レートに基づく単位時間当りの符号量に納
まるように、レコード制御部154が符号データの符号
量を符号バッファ152の格納容量から検出し、最適な
符号量になるように、量子化部146で使用する量子化
閾値を変更する。例えば符号量が多い場合は、量子化閾
値を上げて画質を落し、符号量が少なく余裕がある場合
は、量子化閾値を下げて画質を向上させる。
On the other hand, the quantized DCT from the quantizer 146
The coefficient is restored by the inverse quantization unit 156 and the inverse DCT unit 158, added by the addition unit 160 to the corresponding block image of the restored data up to the previous time held in the image memory 162, and the reference image in the image memory 162 is updated. To do. Further, the record control unit 154 stores the code amount of the code data in the code buffer 152 so that the code amount of the code data transmitted from the output terminal 164 is within the code amount per unit time based on a predetermined code rate. The quantization threshold value used in the quantizing unit 146 is changed so that the code amount is detected optimally from the capacity. For example, when the code amount is large, the quantization threshold is raised to deteriorate the image quality, and when the code amount is small and there is a margin, the quantization threshold is lowered to improve the image quality.

【0011】また従来の動画像の復元装置は、図17に
示すように、符号化装置と逆の順序で、入力端子166
から入力した符号データを、ハフマン復号表170を備
えた可変長復号化部168、逆量子化部172、逆DC
T部174で復元する。復元した1ブロック分の差分画
像を示す画像信号は、前画面までの復元画像を格納して
いる画像メモリ178からの画像信号に加算部176で
加算され、加算結果をブロック内画素書き込み制御部1
80およびブロックアドレス発生部182により画像メ
モリ178に書き込み、新たな差分変化を生じた画像を
復元する。
Further, as shown in FIG. 17, the conventional moving image restoration apparatus has an input terminal 166 in the reverse order of the encoding apparatus.
The encoded data input from the variable length decoding unit 168 including the Huffman decoding table 170, the inverse quantization unit 172, the inverse DC
The T section 174 restores. An image signal indicating the restored one block difference image is added to the image signal from the image memory 178 that stores the restored image up to the previous screen in the addition unit 176, and the addition result is added to the in-block pixel writing control unit 1
80 and the block address generator 182 write the image in the image memory 178 to restore the image in which a new difference change has occurred.

【0012】ここで、符号化装置の符号量を決める適切
な符号レートとしては、ISDN等の通信網を介して伝
送する場合は通信網の最大転送速度等を考慮して予め決
められる。また符号データを記憶媒体に記憶する場合
は、記憶媒体の記憶容量を考慮して決められる。例え
ば、通信網の最大転送速度が64,000bps、1b
yteを8bit、1秒間に30フレームを表示する動
画像を伝送する場合、 64000bps/30枚=2133bit/枚=26
7byte となる。このため267byte以下であれば、毎秒3
0枚の動画像伝送が可能となる。そこで、最適な符号レ
ート(1フレームの符号量)を267byte以下の
値、例えば260byteに設定する。
Here, an appropriate code rate for determining the code amount of the encoding device is predetermined in consideration of the maximum transfer rate of the communication network when transmitting through a communication network such as ISDN. When the code data is stored in the storage medium, it is determined in consideration of the storage capacity of the storage medium. For example, the maximum transfer rate of the communication network is 64,000 bps, 1b
When transmitting a moving image that displays 30 frames per second for 8 bits, 64000 bps / 30 pictures = 2133 bits / picture = 26
It will be 7 bytes. Therefore, if it is 267 bytes or less, 3 per second
It is possible to transmit 0 moving images. Therefore, the optimum code rate (code amount for one frame) is set to a value of 267 bytes or less, for example, 260 bytes.

【0013】動画像を静止画像の集合とみなし、静止画
像の符号化装置により各画像を単独に符号化する方法に
よれば、簡単な方法で、しかも、小さな回路規模で動画
像の復元ができる長所がある。そこで、本願発明者等に
あっては、図18示す画像データの符号化・復元装置を
提案している。この装置は、符号量の制御として、符号
量が符号レートに基づく単位時間当りの符号量をオーバ
ーする場合には、前画面のコピーを行なうことを指示す
る制御コード、すなわちコピーコードを送り、1秒間に
実際に転送する画像の枚数を減らすようにしたことを特
徴とする。
According to the method in which a moving image is regarded as a set of still images and each image is independently encoded by a still image encoding device, the moving image can be restored by a simple method and with a small circuit scale. There are advantages. Therefore, the inventors of the present application have proposed an image data encoding / restoring device shown in FIG. As a control of the code amount, this device sends a control code for instructing to copy the previous screen, that is, a copy code, when the code amount exceeds the code amount per unit time based on the code rate. The feature is that the number of images actually transferred per second is reduced.

【0014】すなわち符号化装置にあっては、符号化部
182によるフレーム当りの符号量fと、基準符号量保
持部186からの基準符号量Fとを符号量判定部188
で比較している。符号量fが基準符号量Fより少なけれ
ば、符号データ出力部184は符号化部182からの符
号データを出力する。符号量fが基準符号量Fより多く
なると、1フレーム周期内では全ての符号を転送しきれ
なくなるので、この場合は、符号データ出力部184は
固定的に決めたコピーコードを出力し、このフレームの
符号データは転送しない。
That is, in the encoding device, the code amount determination unit 188 determines the code amount f per frame by the encoding unit 182 and the reference code amount F from the reference code amount holding unit 186.
I am comparing with. If the code amount f is less than the reference code amount F, the code data output unit 184 outputs the code data from the encoding unit 182. If the code amount f becomes larger than the reference code amount F, all the codes cannot be transferred within one frame period. In this case, the code data output unit 184 outputs a fixedly determined copy code and this frame The code data of is not transferred.

【0015】基準符号量更新部190は、コピーコード
を送った際に、次のフレーム周期で使用する基準符号量
Fを2倍にし、前フレームから継続して行っている符号
化による符号量が基準符号量をオーバーしないように更
新する。このためコピーコードを送った次のフレーム周
期は、前周期からの符号化転送に使用されるため、間引
かれることになる。
When the copy code is sent, the reference code amount updating unit 190 doubles the reference code amount F used in the next frame period so that the code amount by the encoding which is continuously performed from the previous frame is Update so that the reference code amount is not exceeded. Therefore, the next frame period after sending the copy code is thinned out because it is used for the coded transfer from the previous period.

【0016】復元装置にあっては、符号解析部192で
符号データかコピーコードかを解析する。符号データで
あれば、復元化部194で復元して画像メモリ196を
書き替え、フレーム表示制御部198が書き替えた画像
メモリ196の画像データを表示させる。コピーコード
であれば、フレーム表示制御部198が画像メモリ19
6に保持している前回の復元画像を読出して表示させ
る。
In the restoration device, the code analysis unit 192 analyzes the code data or the copy code. If it is coded data, the decompression unit 194 reconstructs it and rewrites the image memory 196, and the frame display control unit 198 displays the rewritten image data of the image memory 196. If it is a copy code, the frame display control unit 198 causes the image memory 19
The previously restored image held in 6 is read out and displayed.

【0017】このような画像データの符号化装置および
復元装置によれば、転送される画像を質を一定(同一の
量子化条件)に保った動画像の符号化と復元が実現でき
る。
According to such an image data encoding device and an image data restoration device, it is possible to realize the encoding and restoration of a moving image while keeping the quality of the transferred image constant (same quantization condition).

【0018】[0018]

【発明が解決しようとする課題】ところで図18に示し
た画像データの符号化装置および復元装置によれば、復
元画像の画質を一定に保つために量子化条件を固定して
いるため、フレーム画像の符号量が転送レートで決まる
符号量を越えた場合は、コピーコードを送って前の画像
をコピーさせており、そのシーンが静止している場合は
問題がない。
By the way, according to the image data encoding apparatus and the restoration apparatus shown in FIG. 18, since the quantization condition is fixed in order to keep the quality of the restored image constant, the frame image If the code amount of exceeds the code amount determined by the transfer rate, a copy code is sent to copy the previous image, and there is no problem if the scene is stationary.

【0019】しかし、動きの激しいシーンでコピーコー
ドを送って前の画像をコピーした場合には、コピーコー
ドを送った次のフレーム画像が間引かれるため動きが不
連続になり、不自然な動きが知覚されるという問題があ
った。本発明の目的は、符号化した動画像を一定のレー
トで転送でき、しかも、動きの激しいシーンを自然に再
現できる高画質な画像データの符号化方法および復元方
法並びに装置を提供することにある。
However, when a copy code is sent to copy the previous image in a scene with a lot of motion, the next frame image to which the copy code is sent is thinned out, resulting in discontinuous motion and unnatural motion. There was a problem that was perceived. An object of the present invention is to provide a high-quality image data encoding method, restoration method, and apparatus capable of transferring an encoded moving image at a constant rate and capable of naturally reproducing a scene with a lot of motion. .

【0020】[0020]

【課題を解決するための手段】図1は装置構成を対象と
した本発明の原理説明図である。画像データを符号化す
る画像データの符号化装置は、画像データ保持手段1
2、静止画検出手段14、画像データ符号化手段16、
符号データ保持手段18、コピーコード保持手段20、
基準符号量保持手段22、処理判定手段26、量子化閾
値更新手段28、符号データ制御手段32、選択スイッ
チ34および基準符号量更新手段36で構成される。
FIG. 1 is a diagram for explaining the principle of the present invention, which is directed to the device configuration. An image data encoding device for encoding image data includes image data holding means 1
2, still image detecting means 14, image data encoding means 16,
Code data holding means 18, copy code holding means 20,
The reference code amount holding unit 22, the process determining unit 26, the quantization threshold updating unit 28, the code data control unit 32, the selection switch 34, and the reference code amount updating unit 36 are included.

【0021】画像データ保持手段12は符号化対象とな
るフレーム画像データを保持する。静止画検出手段14
は、符号化対象のフレーム画像が静止画であるか動画で
あるかを検出する。例えば、符号化対象となった1フレ
ーム画像を構成する奇数フィールドと偶数フィールドの
各画像の相関に基づいて、フレーム画像が静止画か動画
かを判別する。
The image data holding means 12 holds the frame image data to be encoded. Still image detecting means 14
Detects whether the frame image to be encoded is a still image or a moving image. For example, it is determined whether the frame image is a still image or a moving image based on the correlation between the images of the odd field and the even field that form one frame image to be encoded.

【0022】画像データ符号化手段16は、ADCTに
よりフレーム画像データを符号化する。符号データ保持
手段18は、符号化されたフレーム符号データを保持す
る。コピーコード保持手段20は、前フレームの画像デ
ータと同一データであることを示すコピーコードを保持
する。さらに、基準符号量保持手段22は、符号化レー
トに基づいた1フレーム当りの基準符号量を保持する。
The image data encoding means 16 encodes the frame image data by ADCT. The code data holding means 18 holds the coded frame code data. The copy code holding unit 20 holds a copy code indicating that it is the same data as the image data of the previous frame. Further, the reference code amount holding unit 22 holds the reference code amount per frame based on the coding rate.

【0023】処理判定手段26は、符号化手段16から
得られる1フレーム当りの符号量f、基準符号量保持手
段15に設定されている基準符号量F、静止画検出手段
12から得られた静止画か動画かを示す情報をもとに、
フレーム符号データの複写モードか量子化閾値の変更モ
ードかを決定する。処理判定手段26で量子化閾値変更
モードを決定した際の指示で、量子化閾値更新手段28
は、符号化手段で使用する量子化係数を変更する。
The processing determining means 26 is a code amount f per frame obtained from the encoding means 16, a reference code amount F set in the reference code amount holding means 15, and a still image obtained from the still image detecting means 12. Based on the information indicating whether it is a picture or a movie,
It is determined whether the mode is the frame code data copy mode or the quantization threshold change mode. The quantization threshold updating means 28 is instructed when the processing determination means 26 determines the quantization threshold changing mode.
Changes the quantization coefficient used in the encoding means.

【0024】符号データ制御手段32は、処理判定手段
26で量子化係数変更モードを決定した際の指示で、符
号データ保持手段18に保持したフレーム符号を選択ス
イッチ34で選択して出力し、一方、処理判定手段26
で複写モードを決定した際の指示で、コピーコード保持
手段20に保持したコピーコードを選択スイッチ34で
選択して出力する。
The code data control means 32 selects and outputs the frame code held in the code data holding means 18 by the selection switch 34 according to an instruction when the processing determination means 26 determines the quantization coefficient changing mode. , Processing determination means 26
The copy code held in the copy code holding means 20 is selected by the selection switch 34 and output according to the instruction when the copy mode is determined in.

【0025】基準符号量更新手段36は、符号データ制
御手段32におけるフレーム符号データ出力時の指示
で、基準符号量保持手段22の基準符号量Fの値を変更
し、また、符号データ制御手段32におけるコピーコー
ド出力時の指示で、基準符号量保持手段22の基準符号
量Fを1フレーム分増加させる。さらに詳しくは、符号
化による1フレーム当りの符号量fが基準符号量Fより
小さい場合(f<F)は、基準符号量更新手段36は、
両者の差(F−f)分だけ基準符号量Fを増加させ、且
つ処理判定手段26は量子化閾値を低い値に設定変更し
て1フレーム当りの符号量fを増加させる。
The reference code amount updating means 36 changes the value of the reference code amount F of the reference code amount holding means 22 according to an instruction when the code data control means 32 outputs the frame code data, and also the code data control means 32. The reference code amount F of the reference code amount holding means 22 is increased by one frame according to the instruction at the time of outputting the copy code. More specifically, when the code amount f per frame by encoding is smaller than the reference code amount F (f <F), the reference code amount updating means 36,
The reference code amount F is increased by the difference (F−f) between the two, and the processing determination unit 26 changes the setting of the quantization threshold to a low value to increase the code amount f per frame.

【0026】逆に符号化による1フレーム当りの符号量
fが基準符号量Fより大きい場合(f>F)は、基準符
号量更新手段36は両者の差(f−F)分だけ基準符号
量Fを減少させ、且つ処理判定手段26は量子化閾値を
高い値に設定変更して1フレーム当りの符号量fを減少
させる。次に本発明の復元装置は、符号化装置から転送
されるフレーム符号データ又は前回符号化したフレーム
画像と同一の画像であることを指示するコピーコードを
含む符号データからフレーム画像を復元する。この復元
装置は、画像保持手段86、符号解析手段82、復元手
段84および画像表示制御手段88で構成される。
On the contrary, when the code amount f per frame by encoding is larger than the reference code amount F (f> F), the reference code amount updating means 36 causes the reference code amount by the difference (f−F) between the two. F is decreased, and the processing determination means 26 changes the quantization threshold value to a high value to decrease the code amount f per frame. Next, the restoration device of the present invention restores the frame image from the frame code data transferred from the encoding device or the code data including the copy code indicating that it is the same image as the previously encoded frame image. This restoration device is composed of an image holding means 86, a code analysis means 82, a restoration means 84 and an image display control means 88.

【0027】画像保持手段86は、復元したフレーム画
像を保持する。符号解析手段82は、入力した符号デー
タを解析し、フレーム符号コードかコピーコードかを識
別して個別に出力する。復元手段84は、符号解析手段
82でフレーム符号データを識別した場合に、逆ADC
Tによりフレーム符号データからフレーム画像データを
復元して画像保持手段86のフレーム画像を更新する。
The image holding means 86 holds the restored frame image. The code analysis unit 82 analyzes the input code data, identifies the frame code code or the copy code, and outputs them individually. When the code analysis unit 82 identifies the frame code data, the restoration unit 84 determines the inverse ADC.
The frame image data is restored from the frame code data by T and the frame image of the image holding unit 86 is updated.

【0028】画像表示制御手段88は、符号解析手段8
2でフレーム符号データを識別した場合、画像保持手段
86で更新済みの復元フレーム画像を表示させ、符号解
析手段82でコピーコードを識別した場合は、画像保持
手段86に保持した前フレームの復元フレーム画像を表
示させる。
The image display control means 88 is a code analysis means 8.
When the frame code data is identified in 2, the restored frame image that has been updated is displayed by the image holding unit 86, and when the copy code is identified by the code analysis unit 82, the restored frame of the previous frame held in the image holding unit 86 Display the image.

【0029】[0029]

【作用】このような本発明の画像データの符号化方法お
よび復元方法並びに装置によれば、予め得たい符号レー
ト、即ちフレーム周期当りに転送又は記憶可能な符号量
を基準符号量として設定し、基準符号量をオーバーする
符号データは転送をやめ、コピーコードのみを伝送す
る。そして、次のフレーム周期の基準符号量に前周期の
基準符号量を加算して新たな基準符号量とし、前周期か
ら継続して求めている実際の符号量と比較し、再度転送
できるかを判定し、基準符号量以内であれば符号の転送
を行う。復元では有効な符号データのみを復元し、コピ
ーコードを受信した場合には、前フレームの画像データ
をそのまま表示する。
According to the image data encoding method, the image data restoring method and the apparatus of the present invention, the desired code rate, that is, the code amount that can be transferred or stored per frame period is set as the reference code amount. Code data that exceeds the reference code amount is stopped and only the copy code is transmitted. Then, the reference code amount of the previous cycle is added to the reference code amount of the next frame period to obtain a new reference code amount, which is compared with the actual code amount continuously obtained from the previous period to determine whether or not it can be transferred again. It is determined that the code is transferred if it is within the reference code amount. In the restoration, only valid code data is restored, and when the copy code is received, the image data of the previous frame is displayed as it is.

【0030】さらに、コピーコードの作成条件として本
発明は、符号化対象の画像が静止画か動画かを識別し
て、静止画の場合にのみコピーコードを送る。動画像の
場合には、次のフレームにおいて画質を落して発生する
符号量を小さくする。つまり、量子化閾値をある所定値
だけ増加させて符号化を行なうことで、符号化される画
像の枚数を減少させることなく、画質を落して、符号レ
ートを満足させる。
Further, as a condition for creating the copy code, the present invention identifies whether the image to be encoded is a still image or a moving image, and sends the copy code only when the image is a still image. In the case of a moving image, the image quality is degraded in the next frame to reduce the generated code amount. That is, by performing the encoding by increasing the quantization threshold value by a predetermined value, the image quality is degraded and the code rate is satisfied without reducing the number of images to be encoded.

【0031】[0031]

【実施例】図2は本発明による画像データの符号化装置
の一実施例を示した実施例構成図である。図2の符号化
装置は入力端子10,画像バッファ12,静止画像検出
部14,符号化部16,符号バッファ18,固定データ
保持部20,基準符号量保持部22,処理判定部26,
量子化閾値更新部28,符号データ制御部32と選択ス
イッチ34を備えた符号データ出力部30、及び出力端
子38で構成される。
FIG. 2 is a block diagram showing an embodiment of an image data encoding apparatus according to the present invention. The encoding device of FIG. 2 includes an input terminal 10, an image buffer 12, a still image detection unit 14, an encoding unit 16, a code buffer 18, a fixed data holding unit 20, a reference code amount holding unit 22, a processing determination unit 26,
The quantization threshold update unit 28, a code data control unit 32, and a code data output unit 30 including a selection switch 34, and an output terminal 38.

【0032】入力端子10からはフレーム単位に画像デ
ータが入力される。画像バッファ12は1フレーム分の
画像データを格納する。ここでフレーム画像はNTSC
方式から明らかなように、奇数ラインの奇数フィールド
画像と偶数ラインの偶数フィールド画像で構成されてい
る。静止画像検出部14は画像バッファ12に格納され
た符号化対象となったフレーム画像が静止画像か動画像
かを検出する。
Image data is input from the input terminal 10 in frame units. The image buffer 12 stores image data for one frame. Here, the frame image is NTSC
As is clear from the method, it is composed of an odd field image of odd lines and an even field image of even lines. The still image detection unit 14 detects whether the frame image to be encoded stored in the image buffer 12 is a still image or a moving image.

【0033】図4は図2の静止画像検出部14による検
出処理を示した説明図である。符号化対象となったフレ
ーム画像54は偶数フィールド画像56と奇数フィール
ド画像58の2つのフィールド画像から構成されてい
る。静止している画像の場合、偶数フィールド画像56
と奇数フィールド画像58との間では相関が高い。一
方、動いている画像の場合は偶数フィールド画像56と
奇数フィールド画像58の相関は低い。
FIG. 4 is an explanatory diagram showing the detection processing by the still image detection unit 14 of FIG. The frame image 54 to be encoded is composed of two field images, an even field image 56 and an odd field image 58. For static images, even field image 56
And the odd field image 58 have a high correlation. On the other hand, in the case of a moving image, the correlation between the even field image 56 and the odd field image 58 is low.

【0034】そこで相関演算部60において、偶数フィ
ールド56と奇数フィールド58の同一位置の画素値の
差の絶対値の総和として相関値を求める。この相関値を
比較判定部62に示すように、ある定数Kを定めて比較
し、定数Kより小さい画像は相関の高い静止画像64で
あり、定数Kより大きい画像は相関が低い動画像66で
あると判定することができる。
Therefore, the correlation calculator 60 obtains the correlation value as the sum of the absolute values of the differences between the pixel values of the even field 56 and the odd field 58 at the same position. As shown in the comparison / determination unit 62, a certain constant K is determined and compared, and an image smaller than the constant K is a still image 64 having a high correlation, and an image larger than the constant K is a moving image 66 having a low correlation, as shown in the comparison determination unit 62. It can be determined that there is.

【0035】再び図2を参照するに、静止画像検出部1
4で検出された動画像か静止画像かを示す信号は処理判
定部26に与えられる。画像バッファ12に格納された
1フレーム分の画像は符号化部16により符号データに
変換される。符号化部16は図3に示す構成を有する。
図3の符号化部16にあっては、フレーム画像を8画素
×8画素=64画素単位に分割したブロック毎の画像デ
ータを入力する。2次元DCT部42は各ブロックの画
素信号を2次元離散コサイン変換により空間周波数分布
のDCT係数に変換する。
Referring again to FIG. 2, the still image detecting section 1
A signal indicating whether the image is a moving image or a still image detected in 4 is given to the processing determination unit 26. The image for one frame stored in the image buffer 12 is converted into code data by the encoding unit 16. The encoding unit 16 has the configuration shown in FIG.
In the encoding unit 16 of FIG. 3, image data for each block obtained by dividing a frame image into units of 8 pixels × 8 pixels = 64 pixels is input. The two-dimensional DCT unit 42 converts the pixel signal of each block into a DCT coefficient of spatial frequency distribution by two-dimensional discrete cosine transform.

【0036】次に線形量子化部44で量子化マトリクス
46として格納された比較に適応した量子化閾値を用い
て量子化(割算)して、量子化DCT係数を求める。最
後に量子化DCT係数を統計的に求めたハフマン符号表
50により可変長符号化部48で可変長符号化し、出力
端子52より符号データとして出力し、図2の符号バッ
ファ18に格納する。符号バッファ18に格納された1
フレーム分の符号量は符号量fとして処理判定部26に
通知される。
Next, the linear quantizer 44 quantizes (divides) using the quantization threshold value stored in the quantization matrix 46 and adapted to the comparison to obtain the quantized DCT coefficient. Finally, the quantized DCT coefficient is variable-length coded by the variable-length coding unit 48 using the Huffman code table 50 that is statistically obtained, is output as coded data from the output terminal 52, and is stored in the code buffer 18 of FIG. 1 stored in the code buffer 18
The code amount for the frame is notified to the processing determination unit 26 as the code amount f.

【0037】処理判定部26は静止画像検出部14から
の動画像か静止画像かを示す信号、符号バッファ18か
らの符号量f、及び基準符号量保持部22からの基準符
号量Fに基づいて、符号データ出力部30による出力制
御、量子化閾値更新部28に対する量子化閾値の更新、
更に符号データ制御部32を経由した基準符号更新部3
6による基準符号量Fの更新を行わせるための指示信号
を出力する。この処理判定部26による処理は後の説明
で更に明らかにする。
The processing determination unit 26 is based on the signal indicating whether it is a moving image or still image from the still image detection unit 14, the code amount f from the code buffer 18, and the reference code amount F from the reference code amount holding unit 22. , Output control by the code data output unit 30, updating the quantization threshold value for the quantization threshold value updating unit 28,
Further, the reference code updating unit 3 via the code data control unit 32
An instruction signal for updating the reference code amount F by 6 is output. The processing by the processing determination unit 26 will be further clarified later.

【0038】符号データ出力部30に設けた符号データ
制御部32は処理判定部26の指示に基づき選択スイッ
チ34を制御して、符号データバッファ18に格納され
た符号データまたは固定データ保持部20に保持された
コピーコードを出力端子38より出力する。この符号デ
ータ出力部30による動画符号データの転送フレームは
図5に示すようになる。
The code data control unit 32 provided in the code data output unit 30 controls the selection switch 34 based on the instruction of the process determination unit 26 so that the code data stored in the code data buffer 18 or the fixed data holding unit 20 is stored. The held copy code is output from the output terminal 38. The transfer frame of the moving image code data by the code data output unit 30 is as shown in FIG.

【0039】図5は連続する静止画像を転送する符号デ
ータのフレームフォーマットを示している。このフレー
ムフォーマットは先頭の動画開始コード(SOM;Star
t ofMotion )68から始まり、nフレーム分の符号デ
ータ70を送り、最後に動画終了コード(EOM; End
of Motion)72で終わる。nフレーム分の符号データ7
0は0番のフレームについて取り出して示すように、符
号開始コード(SOI; Start of Image) 74で始ま
り、間に1フレームを構成する複数ブロック分の符号デ
ータを配置し、最終的に無候終了コード(EOI; End
of Image)78で終わる。また、1ブロック分の符号デ
ータ70としては、符号データの代わりにコピーコード
(COI; Copy of image )80を配置する場合もあ
る。
FIG. 5 shows a frame format of code data for transferring continuous still images. This frame format is the beginning video start code (SOM; Star)
(t of Motion) 68, code data 70 for n frames is transmitted, and finally a moving picture end code (EOM; End)
of Motion) 72 ends. Code data 7 for n frames
As shown in 0 for the 0th frame, 0 starts with a code start code (SOI) 74, code data for a plurality of blocks forming one frame is arranged between them, and finally a silent end is performed. Code (EOI; End
of Image) 78. Further, as the code data 70 for one block, a copy code (COI; Copy of image) 80 may be arranged instead of the code data.

【0040】図5のフレームフォーマットで固定的に使
用する動画開始コード68,動画終了コード72のそれ
ぞれは固定データとして図2の固定データ保持部20に
保持されている。更に、1フレーム分の符号データの代
わりに転送するコピーコード80についても同様に、固
定データ保持部20に保持されている。図2の処理判定
部26は符号バッファ18からの符号量fと基準符号量
保持部22からの基準符号量Fの大小関係と、静止画像
検出部14からの動画像か静止画像かを示す信号に基づ
き、符号データの出力かコピーデータの出力かを決定す
る。まず、基準符号量保持部22には予め符号レートに
基づいた符号量frが基準符号量Fとして保持されてい
る。例えば、基準符号量Fの初期値として使用される符
号レートに基づいた符号量frは、64Kbpsの転送
能力をもつネットワークを使用して1秒間に30フレー
ムの動画像を転送する場合には、1フレーム画像当たり
の符号量は267byteとなることから、最適な符号
レートfrを例えばfr=260byteに設定する。
The moving picture start code 68 and the moving picture end code 72, which are fixedly used in the frame format of FIG. 5, are held in the fixed data holding section 20 of FIG. 2 as fixed data. Further, the copy code 80 to be transferred instead of the code data for one frame is also held in the fixed data holding unit 20. The processing determination unit 26 of FIG. 2 is a signal indicating the magnitude relationship between the code amount f from the code buffer 18 and the reference code amount F from the reference code amount holding unit 22, and a signal indicating whether the moving image or the still image is output from the still image detection unit 14. It is determined whether to output the code data or the copy data based on the. First, the reference code amount holding unit 22 holds the code amount fr based on the code rate in advance as the reference code amount F. For example, the code amount fr based on the code rate used as the initial value of the reference code amount F is 1 when transferring a moving image of 30 frames per second using a network having a transfer capacity of 64 Kbps. Since the code amount per frame image is 267 bytes, the optimum code rate fr is set to, for example, fr = 260 bytes.

【0041】処理判定部26による出力データの決定は
次の基準に従う。 符号データの符号量fが基準符号量Fより少ない場合
(f<F)、選択スイッチ34により符号バッファ18
の符号データを選択して出力する。 符号データの符号量fが基準符号量Fより多い場合で
(f>F)、且つ静止画像であった場合は、選択スイッ
チ34により固定データ保持部20のコピーコードを選
択して出力し、符号データは出力しない。
The determination of the output data by the processing determination unit 26 follows the following criteria. When the code amount f of the code data is smaller than the reference code amount F (f <F), the code buffer 18 is selected by the selection switch 34.
The code data of is selected and output. When the code amount f of the code data is larger than the reference code amount F (f> F) and the image is a still image, the selection switch 34 selects and outputs the copy code of the fixed data holding unit 20, No data is output.

【0042】符号データの符号量fが基準符号量Fよ
り多い場合で(f>F)で、且つ動画像であった場合
は、選択スイッチ34により符号バッファ18を選択し
て符号データを出力する。同時に、量子化閾値更新部2
8に量子化閾値SFを所定値だけ増加させる指示を行
い、次のフレーム画像の符号量fを減少させる。 図6は図2の判定処理部26の指示に基づく符号データ
の転送処理を前記のそれぞれの条件について示し
たタイムチャートである。
When the code amount f of the code data is larger than the reference code amount F (f> F) and the image is a moving image, the selection switch 34 selects the code buffer 18 to output the code data. . At the same time, the quantization threshold updating unit 2
8 is instructed to increase the quantization threshold SF by a predetermined value, and the code amount f of the next frame image is decreased. FIG. 6 is a time chart showing the transfer processing of code data based on the instruction of the determination processing unit 26 of FIG. 2 for each of the above conditions.

【0043】図6において、フレーム周期T11,T12
処理対象となったフレーム画像A11,A12の符号データ
11,B12のそれぞれは、共に符号量fが基準符号量F
より少なく、図5に示したフォーマットに従った転送信
号として出力される。ここで、フレーム画像の符号化に
対し、符号データの転送は1フレーム分遅延したタイミ
ングで示している。
In FIG. 6, in each of the code data B 11 and B 12 of the frame images A 11 and A 12 processed in the frame periods T 11 and T 12 , the code amount f is the reference code amount F.
It is output as a transfer signal according to the format shown in FIG. Here, with respect to the encoding of the frame image, the transfer of the encoded data is shown at a timing delayed by one frame.

【0044】次に、フレーム周期T21のフレーム画像A
21は静止画像と判断され、フレーム画像A21の符号化で
得られた符号データB21の符号量fは基準符号量Fをオ
ーバーしていたとする。この場合にはフレーム周期T21
に対応した転送周期での符号データの転送終了はできな
いことから、フレーム画像A21の符号データB21の転送
を開始し、続いてコピーコード80を送る。このため、
符号レートをオーバーする符号量となったフレーム画像
21に続く次のフレーム周期T22のフレーム画像A22
間引きされることになる。
Next, the frame image A of the frame cycle T 21
It is assumed that 21 is determined as a still image, and the code amount f of the code data B 21 obtained by encoding the frame image A 21 exceeds the reference code amount F. In this case, the frame cycle T 21
Since it is not possible to end the transfer of the code data in the transfer cycle corresponding to, the transfer of the code data B 21 of the frame image A 21 is started, and then the copy code 80 is sent. For this reason,
The frame image A 22 of the next frame period T 22 following the frame image A 21 became code amount over the code rate will be thinned.

【0045】フレーム周期T31のフレーム画像A31は動
画と判断され、その符号データB31の符号量fは基準符
号量Fをオーバーしていたとする。このように、符号デ
ータB31の符号量が基準符号量Fをオーバーしても、動
画の場合には静止画のようにコピーコード80は転送せ
ず、動画A31の符号データB31の転送を開始する。この
とき、次のフレーム周期T32のフレーム画像A32を符号
化するための量子化閾値SFを所定値だけ増加させ、量
子化閾値SFの増加によりフレーム画像A32から得られ
る符号データB32の符号量fを減少させる。
It is assumed that the frame image A 31 of the frame cycle T 31 is judged to be a moving image, and the code amount f of the code data B 31 thereof exceeds the reference code amount F. Thus, even if over the code amount reference code amount F of the code data B 31, copy the code 80 as a still picture in the case of a moving image does not transfer, the transfer of encoded data B 31 video A 31 To start. At this time, the quantization threshold value SF for encoding the frame image A 32 of the next frame period T 32 is increased by a predetermined value, and the increase of the quantization threshold value SF causes the encoded data B 32 of the code image B 32 to be obtained. The code amount f is reduced.

【0046】このような量子化閾値SFの増加に伴う符
号量の減少により、符号レートを越える符号量を持った
符号データB31に続く次のフレーム画像A32の符号デー
タB 32の符号量は少なくなり、フレーム周期T31にフレ
ーム周期T32を加えた転送周期内でそれぞれの符号デー
タB31,B32を転送することができる。即ち、動画像の
場合は符号量fが基準符号量Fを越えてもコピーコード
の送出に伴う次のフレーム画像の間引きが行われず、画
質は低下するが、動画像を全て連続的に符号化して転送
することができる。
A code accompanying such an increase in the quantization threshold SF
Due to the decrease in the code amount, the code amount exceeds the code rate
Code data B31Next frame image A following32Sign day of
B 32The code amount of is reduced, and the frame period T31To
Cycle T32Within the transfer cycle including
B31, B32Can be transferred. That is, of the moving image
If the code amount f exceeds the reference code amount F, the copy code
The next frame image is not thinned when the
Quality is reduced, but all moving images are continuously encoded and transferred
can do.

【0047】次に、符号データ出力部30における前記
〜の条件に従った出力処理に対応した基準符号更新
部36における基準符号量Fの更新処理を説明する。図
7は符号データの符号量fが基準符号量Fより少ないと
きの前記条件における基準符号量更新処理を示し、図
6のフレーム周期T11,T12に対応している。まず最初
のフレーム周期T11にあっては、転送レートに基づいて
定めた基準となる符号量frが基準符号量Fとして定め
られており、符号化により得られた符号量fは基準符号
量Fより少ない。この場合の両者の符号量の差は(F−
f)となる。
Next, the update process of the reference code amount F in the reference code update unit 36 corresponding to the output process in the code data output unit 30 in accordance with the above conditions 1 to 3 will be described. FIG. 7 shows the reference code amount updating process under the above condition when the code amount f of the code data is smaller than the reference code amount F, and corresponds to the frame cycles T 11 and T 12 of FIG. In the first frame period T 11 , the reference code amount fr determined based on the transfer rate is set as the reference code amount F, and the code amount f obtained by the encoding is the reference code amount F. Fewer. In this case, the difference in code amount between the two is (F-
f).

【0048】このようなフレーム周期T11については、
次のフレーム周期T12で使用する基準符号量Fとしてフ
レーム周期T11の基準符号量F=frに、フレーム周期
11における基準符号量Fと実際の符号量fとの差(F
−f)を加えた符号量を新たな基準符号量Fとする。即
ち、 F=(F−f)+fr ・・・(1) とする。
Regarding such a frame period T 11 ,
The reference code amount F = fr frame period T 11 as a reference code amount F to be used in the next frame period T 12, the difference between the actual code amount f with reference code amount F in the frame period T 11 (F
The code amount obtained by adding -f) is set as a new reference code amount F. That is, F = (F−f) + fr (1)

【0049】また、フレーム周期T11で基準符号量Fに
対し実際の符号量fが少なく、(F−f)分の余裕があ
ることから、次のフレーム周期T12にあっては符号化に
使用する量子化閾値SFを所定値xだけ減少させる。こ
のため、フレーム周期T12にあっては、例えばフレーム
周期T11と全く同じ画像であったとしても、量子化閾値
SFを下げることで符号量fが増加し、転送レートの範
囲内で画質を向上させることができる。
Further, since the actual code amount f is smaller than the reference code amount F in the frame period T 11 and there is a margin of (F−f), the encoding is performed in the next frame period T 12. The quantization threshold SF to be used is reduced by a predetermined value x. Therefore, in the frame period T 12 , even if the image is exactly the same as the frame period T 11 , for example, the code amount f is increased by lowering the quantization threshold value SF, and the image quality is improved within the range of the transfer rate. Can be improved.

【0050】図8はフレーム画像が静止画像と識別さ
れ、且つ符号データの符号量fが基準符号量Fをオーバ
ーした場合の基準符号量Fの更新を示したもので、図6
のフレーム周期T21,T23に対応している。まず、フレ
ーム周期T21にあっては、基準符号量Fは転送レートに
基づいた符号量frであり、このときの符号データの符
号量fが基準符号量Fをオーバーしている。ここで、フ
レーム周期T21のフレーム画像は静止画像であることか
ら、コピーコードの送出が行われる。次のフレーム周期
23にあっては、基準符号量Fを1フレーム分増加させ
る。即ち、前周期のフレーム周期T21で基準符号量F=
frであったことから、次のフレーム周期T23にあって
は、 F=F+fr=fr+fr ・・・(2) とする。このような基準符号量Fの1フレーム分の増加
W×、フレーム周期T23にあっては、前周期から継続し
ている符号化による符号量が増加しても、1フレーム分
増加した基準符号量Fに納まるようにしている。
FIG. 8 shows updating of the reference code amount F when the frame image is identified as a still image and the code amount f of the code data exceeds the reference code amount F. FIG.
Frame periods T 21 and T 23 of. First, in the frame period T 21, the reference code amount F is code amount fr based on the transfer rate, the code amount f of the code data at this time is over the reference code amount F. Here, since the frame image of the frame cycle T 21 is a still image, the copy code is transmitted. In the next frame period T 23, the reference code amount F is increased one frame. That is, in the previous frame period T 21 , the reference code amount F =
Since it was fr, in the next frame cycle T 23 , F = F + fr = fr + fr (2) In such a case where the reference code amount F is increased by one frame W × and the frame period T 23 , the reference code increased by one frame even if the code amount due to the encoding continued from the previous period is increased. I try to fit in the quantity F.

【0051】尚、フレーム周期T23においてもフレーム
周期T21のフレーム画像の符号データの符号量fが転送
できない場合には、フレーム周期T22でコピーコードを
送出し、次のフレーム周期T23に移行して、更に1フレ
ーム分、基準符号量Fを増加させた処理を行う。図9は
フレーム画像が動画であり、且つ符号データの符号量f
が基準符号量Fをオーバーした場合の前記の条件にお
ける基準符号量Fの更新処理を示し、図6のフレーム周
期T31,T32に対応している。まずフレーム周期T31
あっては、基準符号量Fは転送レートにより決まった基
準となる符号量frであり、フレーム周期T31の符号デ
ータの符号量fが基準符号量Fをオーバーしている。こ
の場合の両者の差は(F−f)となる。但し、F<fで
あることから、(F−f)の値はマイナスの値となる。
[0051] In the case where the code amount f of the code data of the frame image of a frame period T 21 even frame period T 23 can not be transferred, and sends a copy code a frame period T 22, the next frame period T 23 After the shift, the processing is performed in which the reference code amount F is further increased by one frame. In FIG. 9, the frame image is a moving image and the code amount f of the code data is
Shows the updating process of the reference code amount F under the above conditions when the reference code amount F exceeds the reference code amount F, and corresponds to the frame periods T 31 and T 32 of FIG. First, in the frame period T 31 , the reference code amount F is the reference code amount fr determined by the transfer rate, and the code amount f of the code data in the frame period T 31 exceeds the reference code amount F. . In this case, the difference between the two is (F−f). However, since F <f, the value of (F−f) becomes a negative value.

【0052】この場合には、次のフレーム周期T32の符
号化に使用する符号化閾値SFを所定値xだけ増加して
符号データの符号量fを減らしている。従って、次のフ
レーム周期T32で使用する基準符号量Fについても、前
周期T31の基準符号量F=frより符号データの符号量
fとの差分(F−f)だけ少ない符号量とする。即ち、 F=(F−f)+fr =fr−(f−F) ・・・(3) とする。
In this case, the coding threshold value SF used for coding of the next frame period T 32 is increased by a predetermined value x to reduce the code amount f of code data. Therefore, the reference code amount F used in the next frame cycle T 32 is also smaller than the reference code amount F = fr of the previous cycle T 31 by the difference (F−f) from the code amount f of the code data. . That is, F = (F−f) + fr = fr− (f−F) (3)

【0053】図10は図2の符号化装置による符号化処
理を示したフローチャートである。まずステップS1
で、量子化閾値更新部28は符号化部16に対し所定の
量子化閾値sfを用いて基準量子化閾値SFをセットす
る。またステップS2で基準符号量保持部22は処理判
定部26に対し、符号レートに基づいて予め定めた基準
となる符号量frを基準符号量Fとして設定する。次の
ステップS3では入力するフレーム画像の終了の有無を
チェックしており、フレーム画像の処理を終了するまで
ステップS4以降の処理を繰り返す。
FIG. 10 is a flow chart showing the coding process by the coding apparatus of FIG. First, step S1
Then, the quantization threshold updating unit 28 sets the reference quantization threshold SF for the encoding unit 16 using a predetermined quantization threshold sf. Further, in step S2, the reference code amount holding unit 22 sets the reference code amount fr as a reference code amount F to the processing determination unit 26, which is a reference that is predetermined based on the code rate. In the next step S3, the presence or absence of the end of the input frame image is checked, and the processes in and after step S4 are repeated until the processing of the frame image is completed.

【0054】この符号化処理は、まずステップS4で画
像バッファ12に格納されたフレーム画像を対象に、図
3に示したADCTに従った符号化を行い、符号バッフ
ァ18に1フレーム分の符号データを格納する。続いて
ステップS5で処理判定部26が符号バッファ18に格
納した1フレーム分の符号データの符号量fが基準符号
量保持部22により設定された基準符号量F以下か否か
チェックする。
In this encoding process, first, the frame image stored in the image buffer 12 in step S4 is encoded according to the ADCT shown in FIG. To store. Subsequently, in step S5, the process determination unit 26 checks whether or not the code amount f of the code data for one frame stored in the code buffer 18 is less than or equal to the reference code amount F set by the reference code amount holding unit 22.

【0055】符号データの符号量fが基準符号量F以下
であれば符号量fは転送レートを満足していることか
ら、ステップS6で符号データ制御部32により選択ス
イッチ34を駆動して符号バッファ18の符号データを
選択して、出力端子38より図2に示したフレームフォ
ーマットに従って出力する。続いてステップS7で、基
準符号量fに対し実際の符号量fに余裕があることか
ら、量子化閾値更新部28の量子化閾値SFを下げて画
質を向上するように設定変更する。続いてステップS8
で、図7に示したように基準符号量Fを更新する。
If the code amount f of the code data is equal to or smaller than the reference code amount F, the code amount f satisfies the transfer rate. Therefore, in step S6, the code data control unit 32 drives the selection switch 34 to drive the code buffer. The code data of 18 are selected and output from the output terminal 38 according to the frame format shown in FIG. Then, in step S7, since there is a margin in the actual code amount f with respect to the reference code amount f, the quantization threshold SF of the quantization threshold updating unit 28 is lowered and the setting is changed so as to improve the image quality. Then step S8
Then, the reference code amount F is updated as shown in FIG.

【0056】一方、ステップS8で符号データの符号量
fが基準符号量Fをオーバーしていた場合にはステップ
S9に進み、動画シーンか否か判別する。動画シーンで
なかった場合、即ち静止画像であった場合にはステップ
S10に進み、選択スイッチ34により固定データ保持
部20からのコピーコードを符号データの代わりにコピ
ーフレームとして出力する。続いてステップS11で基
準符号量Fを図8に示したように1フレーム分増加させ
る。
On the other hand, if the code amount f of the code data exceeds the reference code amount F in step S8, the process proceeds to step S9 and it is determined whether or not it is a moving image scene. If it is not a moving image scene, that is, if it is a still image, the process proceeds to step S10 and the selection switch 34 outputs the copy code from the fixed data holding unit 20 as a copy frame instead of the code data. Then, in step S11, the reference code amount F is increased by one frame as shown in FIG.

【0057】ステップS9で動画シーンが判別された場
合にはステップS12に進み、選択スイッチ34により
符号バッファ18を選択して符号データを出力する。続
いてステップS13で基準量子化閾値SFを所定値xだ
け増加させる更新を行い、次のフレーム画像の符号化に
よる符号量を減少させる。更にステップS14で、図9
に示したように基準符号量Fを減少させる更新を行う。
If a moving image scene is discriminated in step S9, the flow advances to step S12 to select the code buffer 18 with the selection switch 34 and output the code data. Subsequently, in step S13, the reference quantization threshold value SF is updated by increasing it by a predetermined value x, and the code amount by encoding the next frame image is decreased. Further, in step S14, as shown in FIG.
The updating is performed to reduce the reference code amount F as shown in FIG.

【0058】図11は本発明による復元装置の実施例を
示した実施例構成図である。この復元装置は入力端子8
1,符号解析部82,復元部84,画像メモリ86及び
フレーム表示制御部88で構成される。入力端子81か
らは図2の符号化装置より出力された図5に示すフレー
ムフォーマットを持つ符号データが入力する。符号解析
部82は各フレームフォーマットに含まれるデータが符
号データかコピーコードかを解析している。符号データ
を識別した場合には識別した符号データを復元部84に
出力する。
FIG. 11 is a block diagram of an embodiment showing an embodiment of the restoration device according to the present invention. This restoration device has an input terminal 8
1, a code analysis unit 82, a restoration unit 84, an image memory 86 and a frame display control unit 88. From the input terminal 81, the code data having the frame format shown in FIG. 5 which is output from the encoding device of FIG. 2 is input. The code analysis unit 82 analyzes whether the data included in each frame format is code data or copy code. When the coded data is identified, the identified coded data is output to the restoration unit 84.

【0059】復元部84は図12に示すように、入力端
子90,可変長復号化部92,ハフマン復号表94,線
形逆量子化部96,量子化マトリクス98,2次元逆D
CT部100及び出力端子102で構成され、図3に示
した符号化部と逆の変換処理を行い、符号データから画
像データをブロック単位に復元する。再び図11を参照
するに、復元部84により復元された1フレーム分の画
像データは画像メモリ86に格納される。フレーム表示
制御部88は符号解析部82により符号データを解析し
た場合には、画像メモリ86に書き込まれた現フレーム
の復元フレーム画像を読み出して出力表示する。一方、
符号解析部82よりコピーコードの解析結果を受けた場
合には、フレーム表示制御部88は画像メモリ86に格
納されている前フレームの画像データを表示出力し、前
周期のフレーム画像のコピー表示を行う。
As shown in FIG. 12, the restoring unit 84 has an input terminal 90, a variable length decoding unit 92, a Huffman decoding table 94, a linear inverse quantization unit 96, a quantization matrix 98, and a two-dimensional inverse D.
The CT unit 100 and the output terminal 102 are used to perform the reverse conversion process of the encoding unit shown in FIG. 3 to restore the image data from the encoded data in block units. Referring again to FIG. 11, the image data for one frame restored by the restoration unit 84 is stored in the image memory 86. When the code analysis unit 82 analyzes the code data, the frame display control unit 88 reads the restored frame image of the current frame written in the image memory 86, and outputs and displays it. on the other hand,
When receiving the analysis result of the copy code from the code analysis unit 82, the frame display control unit 88 displays and outputs the image data of the previous frame stored in the image memory 86, and displays the copy of the frame image of the previous cycle. To do.

【0060】図13は図11の復元装置による復元処理
を示したフローチャートである。まずステップS1で、
図5に示したフレームフォーマットから符号データの終
了の有無をチェックしており、終了するまではステップ
S2〜S5の復元処理を繰り返す。ステップS2では現
在受信したフレーム分の符号データの内容がコピーコー
ドか否かチェックする。コピーコードでなければ符号デ
ータであることからステップS3に進み、復元部84で
1フレーム分の画像データを復元して画像メモリ86を
更新し、ステップS4でフレーム表示制御部88が復元
画像を表示する。一方、ステップS2でコピーコードを
判別した場合はステップS5に進み、画像メモリ86に
保持している前フレームの画像を読み出し、ステップS
4で画像表示するようになる。
FIG. 13 is a flow chart showing the restoration processing by the restoration device of FIG. First, in step S1,
It is checked from the frame format shown in FIG. 5 whether or not the code data ends, and the restoration process of steps S2 to S5 is repeated until the end. In step S2, it is checked whether or not the content of the code data for the currently received frame is a copy code. If it is not a copy code, since it is code data, the process proceeds to step S3, the restoration unit 84 restores the image data for one frame and updates the image memory 86, and the frame display control unit 88 displays the restored image in step S4. To do. On the other hand, when the copy code is determined in step S2, the process proceeds to step S5, the image of the previous frame held in the image memory 86 is read out, and the process proceeds to step S5.
4 will display an image.

【0061】尚、上記の実施例における符号化及び復元
はJPEGに従っており、その詳細は1991年丸善発
行 安田浩著の「マルチメディア符号化の国際標準」の
第1章に示される。
The encoding and decompression in the above-mentioned embodiment are in accordance with JPEG, and details thereof are shown in Chapter 1 of "International Standard of Multimedia Encoding" by Hiroyasu Yasuda, published by Maruzen in 1991.

【0062】[0062]

【発明の効果】以上説明してきたように本発明によれ
ば、符号データの復号量が一定の符号レートをオーバー
した場合、動画についてはコピーフレームを送らずに符
号データをそのまま送り、次のフレームでの符号化につ
いて量子化閾値を下げて符号量を下げ、画質は落ちるが
画像を間引くことなく連続的に符号化転送して復元で
き、動きの激しいシーンであっても自然な復元動画像を
得ることができる。
As described above, according to the present invention, when the decoding amount of coded data exceeds a certain code rate, the coded data is sent as it is without sending a copy frame for a moving image, and the next frame is sent. Encoding in the lower the quantization threshold to reduce the code amount, but the image quality is degraded, but it is possible to restore by continuously encoding and transferring without thinning the image, even if the scene has a lot of motion. Obtainable.

【0063】また、静止画像用の符号化装置のもつ単純
な構成をそのまま使用して動画用の符号化装置に要求さ
れる一定の符号レートに従った制御を実現でき、高画質
の動画像を一定レートで復元することができる。
Further, the simple structure of the still picture coding apparatus can be used as it is to realize control in accordance with the constant code rate required for the moving picture coding apparatus, and a high quality moving picture can be obtained. It can be restored at a constant rate.

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

【図1】本発明の原理説明図FIG. 1 is an explanatory view of the principle of the present invention.

【図2】本発明による符号化装置の実施例構成図FIG. 2 is a configuration diagram of an embodiment of an encoding device according to the present invention.

【図3】図3の符号化部の詳細を示した実施例構成図FIG. 3 is a configuration diagram of an embodiment showing details of an encoding unit in FIG.

【図4】図2における静止画と動画の検出方法を示した
説明図
FIG. 4 is an explanatory diagram showing a method of detecting a still image and a moving image in FIG.

【図5】本発明で用いる符号データ転送フレームの説明
FIG. 5 is an explanatory diagram of a coded data transfer frame used in the present invention.

【図6】本発明の符号化と符号データの転送を示したタ
イムチャート
FIG. 6 is a time chart showing encoding and transfer of encoded data according to the present invention.

【図7】符号量fが基準符号量Fより少ない場合の基準
符号量Fの更新を示した説明図
FIG. 7 is an explanatory diagram showing updating of the reference code amount F when the code amount f is smaller than the reference code amount F.

【図8】符号量fが基準符号量Fより多く且つ静止画の
場合の基準符号量Fの更新を示した説明図
FIG. 8 is an explanatory diagram showing updating of the reference code amount F when the code amount f is larger than the reference code amount F and is a still image.

【図9】符号量fが基準符号量Fより多く且つ動画の場
合の基準符号量Fの更新を示した説明図
FIG. 9 is an explanatory diagram showing updating of the reference code amount F when the code amount f is larger than the reference code amount F and is a moving image.

【図10】本発明による符号化処理を示したフローチャ
ート
FIG. 10 is a flowchart showing an encoding process according to the present invention.

【図11】本発明による復元装置の実施例構成図FIG. 11 is a block diagram of an embodiment of a restoration device according to the present invention.

【図12】図11の復元部の詳細を示した実施例構成図FIG. 12 is a configuration diagram of an embodiment showing details of a restoration unit in FIG.

【図13】本発明による復元処理を示したフローチャー
FIG. 13 is a flowchart showing a restoration process according to the present invention.

【図14】従来の静止画の符号化装置を示したブロック
FIG. 14 is a block diagram showing a conventional still image encoding device.

【図15】従来の静止画の復元装置を示したブロック図FIG. 15 is a block diagram showing a conventional still image restoration device.

【図16】従来の動画の符号化装置を示したブロック図FIG. 16 is a block diagram showing a conventional moving picture coding apparatus.

【図17】従来の動画の復元装置を示したブロック図FIG. 17 is a block diagram showing a conventional moving picture restoring device.

【図18】本願発明者等が提案している符号化装置およ
び復元装置を示したブロック図
FIG. 18 is a block diagram showing an encoding device and a restoration device proposed by the inventors of the present application.

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

10,40,81,90:入力端子 12:画像バッファ(画像データ保持手段) 14:静止画検出部(静止画検出手段) 16:符号化部(符号化手段) 18:符号バッファ(符号データ保持手段) 20:固定データ保持部(コピーコード保持手段) 22:基準符号量保持部(基準符号量保持手段) 26:処理判定部(処理判定手段) 28:量子化閾値更新部(量子化閾値更新手段) 30:符号データ出力部 32:符号データ制御部(符号データ制御手段) 34:選択スイッチ 36:基準符号更新部(基準符号更新手段) 38,52,102:出力端子 42:2次元DCT部 44:線形量子化部 46:量子化マトリマクス 48,98:可変長符号化部 50:ハフマン符号表 54:フレーム画像 56:奇数フィールド画像 58:偶数フィールド画像 60:相関計算部 60:比較判定部 64:静止画像 66:動画像 68:動画開始コード(SOM; Start of Mortion) 70:nブロック分の符号データ 72:動画終了コード(EOM; End of Mortion) 74:符号開始コード(SOI; Start of Image) 76:1ブロック分の符号データ 78:符号少量コード(EOI; End of Image) 80:コピーコード(COI; Copy of Image) 82:符号解析部(符号解析手段) 84:復元部(復元手段) 86:画像メモリ(画像保持手段) 88:フレーム表示制御部(画像表示制御手段) 92:可変長復号化部 94:ハフマン復号表 96:線形逆量子化部 100:2次元逆DCT部 10, 40, 81, 90: input terminal 12: image buffer (image data holding means) 14: still image detection unit (still image detection means) 16: encoding unit (encoding means) 18: code buffer (code data holding) Means) 20: Fixed data holding unit (copy code holding unit) 22: Reference code amount holding unit (reference code amount holding unit) 26: Processing determination unit (processing determination unit) 28: Quantization threshold updating unit (quantization threshold updating) Means) 30: Code data output unit 32: Code data control unit (code data control unit) 34: Selection switch 36: Reference code updating unit (reference code updating unit) 38, 52, 102: Output terminal 42: Two-dimensional DCT unit 44: Linear Quantization Unit 46: Quantization Matrices 48, 98: Variable Length Encoding Unit 50: Huffman Code Table 54: Frame Image 56: Odd Field Image 58: Even Field image 60: Correlation calculation unit 60: Comparison determination unit 64: Still image 66: Moving image 68: Video start code (SOM; Start of Mortion) 70: Code data for n blocks 72: Video end code (EOM; End of) Mortion) 74: Code start code (SOI; Start of Image) 76: Code data for one block 78: Code small amount code (EOI; End of Image) 80: Copy code (COI; Copy of Image) 82: Code analysis unit (Code analysis means) 84: Restoration section (restoration means) 86: Image memory (image holding means) 88: Frame display control section (image display control means) 92: Variable length decoding section 94: Huffman decoding table 96: Linear inverse Quantization unit 100: Two-dimensional inverse DCT unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】画像データを符号化する画像データの符号
化方法に於いて、 符号化対象となるフレーム画像データを保持する画像デ
ータ保持過程と、 符号化対象のフレーム画像が静止画であるか動画である
かを検出する静止画検出過程と、 前記フレーム画像データを符号化する画像データ符号化
過程と、 符号化されたフレーム符号データを保持する符号データ
保持過程と、 前フレームの画像データと同一データであることを示す
コピーコードを保持するコピーコード保持過程と、 符号化レートに基づいた1フレーム当りの符号量(f
r)を基準符号量(F)として保持する基準符号量保持
過程と、 前記符号化過程で得られる1フレーム当りの符号量
(f)、前記基準符号量保持過程で設定された基準符号
量(F)、および前記静止画検出過程から得られた静止
画か動画かを示す情報をもとに、フレーム符号データの
複写モードか量子化閾値の変更モードかを決定する処理
判定過程と、 前記処理判定過程で量子化閾値変更モードを決定した際
に、前記符号化過程で使用する量子化閾値を変更する量
子化閾値更新過程と、 前記処理判定過程で量子化係数変更モードを決定した際
に、前記符号データ保持過程に保持したフレーム符号デ
ータを選択して出力し、前記処理判定過程で複写モード
を決定した際には、前記コピーコード保持過程に保持し
たコピーコードを選択して出力する符号データ制御過程
と、 前記符号データ制御過程におけるフレーム符号データの
出力時に、前記基準符号量保持過程で保持している基準
符号量(F)の値を変更すると共に、前記符号データ制
御過程におけるコピーコード出力時には、基準符号量保
持過程で保持している前記基準符号量(F)を1フレー
ム分増加させる基準符号量更新過程と、を設けたことを
特徴とする画像データの符号化装置。
1. An image data encoding method for encoding image data, comprising: an image data holding process for holding frame image data to be encoded; and whether the frame image to be encoded is a still image. A still image detecting step of detecting whether it is a moving image, an image data encoding step of encoding the frame image data, a code data holding step of holding the encoded frame code data, and an image data of the previous frame A copy code holding process for holding a copy code indicating the same data, and a code amount per frame (f
r) as a reference code amount (F), a reference code amount holding process, a code amount per frame (f) obtained in the encoding process, and a reference code amount (f) set in the reference code amount holding process. F), and a process determination process for determining whether the mode is a frame code data copy mode or a quantization threshold change mode, based on information indicating a still image or a moving image obtained from the still image detection process, When determining the quantization threshold change mode in the determination process, the quantization threshold update process of changing the quantization threshold used in the encoding process, when determining the quantization coefficient change mode in the process determination process, The frame code data held in the code data holding process is selected and output, and when the copy mode is determined in the process determination process, the copy code held in the copy code holding process is selected and output. In the code data control process, the value of the reference code amount (F) held in the reference code amount holding process is changed when the frame code data is output in the code data control process. A coding device for image data, comprising: a reference code amount updating process of increasing the reference code amount (F) held in the reference code amount holding process by one frame when a copy code is output.
【請求項2】請求項1記載の画像データの符号化方法に
於いて、前記静止画検出過程は、符号化対象となった1
フレーム画像を構成する奇数フィールドと偶数フィール
ドの各画像の相関に基づいて該フレーム画像が静止画か
動画かを判別することを特徴とする画像データの符号化
方法。
2. The image data encoding method according to claim 1, wherein the still image detecting step is an object to be encoded.
An image data encoding method, characterized in that it is determined whether the frame image is a still image or a moving image on the basis of the correlation between each of the odd-numbered field image and the even-numbered field image forming the frame image.
【請求項3】請求項1記載の画像データの符号化方法に
於いて、 前記符号化による1フレーム当りの符号量(f)が前記
基準符号量(F)より小さい場合は、前記基準符号量更
新過程は両者の差(F−f)分だけ前記基準符号量
(F)を増加させ、且つ前記処理判定過程は量子化閾値
を低い値に設定変更して1フレーム当りの符号量(f)
を増加させ、 前記符号化による1フレーム当りの符号量(f)が前記
基準符号量(F)より大きい場合は、前記基準符号量更
新過程は両者の差(f−F)分だけ前記基準符号量
(F)を減少させ、且つ前記処理判定過程は量子化閾値
を高い値に設定変更して1フレーム当りの符号量(f)
を減少させることを特徴とする画像データの符号化方
法。
3. The image data encoding method according to claim 1, wherein the code amount per frame by the encoding (f) is smaller than the reference code amount (F), the reference code amount. In the update process, the reference code amount (F) is increased by the difference (F−f) between the two, and in the process determination process, the quantization threshold is changed to a low value to change the code amount per frame (f).
When the code amount per frame (f) by the encoding is larger than the reference code amount (F), the reference code amount updating process is performed by the difference (f−F) between the reference codes. The amount of code (f) is reduced by reducing the amount (F), and the quantization threshold is changed to a high value in the process determination process.
A method of encoding image data, characterized in that
【請求項4】画像データを符号化する画像データの符号
化装置に於いて、 符号化対象となるフレーム画像データを保持する画像デ
ータ保持手段(12)と、 符号化対象のフレーム画像が静止画であるか動画である
かを検出する静止画検出手段(14)と、 前記フレーム画像データを符号化する画像データ符号化
手段(16)と、 符号化されたフレーム符号データを保持する符号データ
保持手段(18)と、 前フレームの画像データと同一データであることを示す
コピーコードを保持するコピーコード保持手段(20)
と、 符号化レートに基づいた1フレーム当りの基準符号量を
保持する基準符号量保持手段(22)と、 前記符号化手段(16)から得られる1フレーム当りの
符号量(f)、前記基準符号量保持手段(15)に設定
されている基準符号量(F)、前記静止画検出手段(1
2)から得られた静止画か動画かを示す情報をもとに、
フレーム符号データの複写モードか量子化係数の変更モ
ードかを決定する処理判定手段(26)と、 前記処理判定手段(26)で量子化係数変更モードを決
定した際の指示で、前記符号化手段化で使用する量子化
係数を変更する量子化閾値更新手段(28)と、 前記処理判定手段(26)で量子化係数変更モードを決
定した際の指示で前記符号データ保持手段(18)に保
持したフレーム符号を選択スイッチ(34)で選択して
出力し、前記処理判定手段(26)で複写モードを決定
した際の指示で前記コピーコード保持手段((20)に
保持したコピーコードを選択スイッチ(34)で選択し
て出力する符号データ制御手段(32)と、 前記符号データ制御手段(32)におけるフレーム符号
のデータ出力時の指示で基準符号量保持手段(22)の
基準符号量(F)の値を変更すると共に、前記符号デー
タ制御手段(32)におけるコピーコード出力時の指示
で基準符号量保持手段(22)の前記基準符号量(F)
を1フレーム分増加させる基準符号量更新手段(36)
と、 を備えたことを特徴とする画像データの符号化装置。
4. An image data encoding device for encoding image data, comprising: an image data holding means (12) for holding frame image data to be encoded; and a frame image to be encoded is a still image. Still image detection means (14) for detecting whether the frame image data is a moving image, image data encoding means (16) for encoding the frame image data, and code data holding for holding the encoded frame code data. Means (18) and copy code holding means (20) for holding a copy code indicating that the image data is the same as the image data of the previous frame.
A reference code amount holding means (22) for holding a reference code amount per frame based on an encoding rate; a code amount per frame (f) obtained from the encoding means (16); Reference code amount (F) set in the code amount holding means (15), the still image detecting means (1)
Based on the information indicating whether it is a still image or a moving image obtained from 2),
The processing determination means (26) for determining the frame code data copy mode or the quantization coefficient change mode, and the encoding means according to an instruction when the processing determination means (26) determines the quantization coefficient change mode. Quantization threshold updating means (28) for changing the quantization coefficient used in the quantization, and holding in the code data holding means (18) by an instruction when the processing determination means (26) determines the quantization coefficient changing mode. The selected frame code is selected and output by the selection switch (34), and the copy code held in the copy code holding means ((20) is selected by an instruction when the copy mode is determined by the processing determination means (26). A code data control means (32) selected and output in (34), and a reference code amount holding means according to an instruction at the time of outputting frame code data in the code data control means (32). Reference code amount of 22) (with changing the value of F), wherein the reference code amount of the code data control means (reference code amount storing means at the direction of copy-code output at 32) (22) (F)
Code amount updating means (36) for increasing the value by 1 frame
An image data encoding apparatus comprising:
【請求項5】フレームごとにフレーム符号データ又は前
回符号化したフレーム画像と同一の画像であることを指
示するコピーコードを含む符号データからフレーム画像
を復元する画像データの復元方法に於いて、 復元したフレーム画像を保持する画像保持過程と、 入力した符号データを解析し、フレーム符号コードかコ
ピーコードかを識別して個別に出力する符号解析過程
と、 前記符号解析過程でフレーム符号データを識別した場合
に、該フレーム符号データからフレーム画像データを復
元して前記画像保持過程で保持している前回のム画像を
更新する復元過程と、 前記符号解析過程でフレーム符号データを識別した場
合、前記画像保持過程で保持している更新済みの復元フ
レーム画像を表示させ、前記符号解析過程でコピーコー
ドを識別した場合は、前記画像保持過程で保持している
前フレームの復元フレーム画像を表示させる画像表示制
御過程と、 を備えたことを特徴とする画像データの復元方法。
5. An image data restoration method for restoring a frame image from frame code data for each frame or code data including a copy code indicating that the frame image is the same as the previously encoded frame image. The image holding process for holding the frame image, the code analyzing process for analyzing the input code data, identifying the frame code code or the copy code, and outputting individually, and identifying the frame code data in the code analyzing process In this case, the frame image data is restored from the frame code data to restore the previous frame image held in the image holding step; and the frame code data is identified in the code analysis step, the image The updated restored frame image held in the holding process is displayed, and the copy code is identified in the code analysis process. In this case, an image display control process of displaying a restored frame image of the previous frame held in the image holding process, and a method of restoring image data.
【請求項6】フレームごとにフレーム符号データ又は前
回符号化したフレーム画像と同一の画像であることを指
示するコピーコードを含む符号データからフレーム画像
を復元する画像データの復元装置に於いて、 復元したフレーム画像を保持する画像保持手段(86)
と、 入力した符号データを解析し、フレーム符号コードかコ
ピーコードかを識別して個別に出力する符号解析手段
(82)と、 前記符号解析手段(82)でフレーム符号データを識別
した場合に、該フレーム符号データからフレーム画像デ
ータを復元して前記画像保持手段(86)のフレーム画
像を更新する復元手段(84)と、 前記符号解析手段(82)でフレーム符号データを識別
した場合、前記画像保持手段(86)で更新済みの復元
フレーム画像を表示させ、前記符号解析手段(82)で
コピーコードを識別した場合は、前記画像保持手段(8
6)に保持した前フレームの復元フレーム画像を表示さ
せる画像表示制御手段(88)と、 を備えたことを特徴とする画像データ復元装置。
6. An image data restoring device for restoring a frame image from frame code data for each frame or code data including a copy code indicating that the image is the same as the previously coded frame image. Image holding means (86) for holding the created frame image
And a code analysis means (82) for analyzing the input code data and discriminating between the frame code code and the copy code and outputting the code data separately; and when the code analysis means (82) identifies the frame code data, When the frame code data are identified by the restoration means (84) for restoring the frame image data from the frame code data and updating the frame image of the image holding means (86), the image When the holding unit (86) displays the updated restored frame image and the code analyzing unit (82) identifies the copy code, the image holding unit (8)
An image data restoration device comprising: an image display control means (88) for displaying the restored frame image of the previous frame held in 6).
JP22527893A 1993-09-10 1993-09-10 Image data encoding method and restoration method and apparatus Expired - Fee Related JP3345475B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22527893A JP3345475B2 (en) 1993-09-10 1993-09-10 Image data encoding method and restoration method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22527893A JP3345475B2 (en) 1993-09-10 1993-09-10 Image data encoding method and restoration method and apparatus

Publications (2)

Publication Number Publication Date
JPH0787487A true JPH0787487A (en) 1995-03-31
JP3345475B2 JP3345475B2 (en) 2002-11-18

Family

ID=16826829

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22527893A Expired - Fee Related JP3345475B2 (en) 1993-09-10 1993-09-10 Image data encoding method and restoration method and apparatus

Country Status (1)

Country Link
JP (1) JP3345475B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010074241A (en) * 2008-09-16 2010-04-02 Canon Inc Moving picture reproducing apparatus, moving picture reproducing method, program, and recording medium
JP2017121047A (en) * 2015-12-28 2017-07-06 株式会社半導体エネルギー研究所 Semiconductor device, and transmission system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010074241A (en) * 2008-09-16 2010-04-02 Canon Inc Moving picture reproducing apparatus, moving picture reproducing method, program, and recording medium
JP2017121047A (en) * 2015-12-28 2017-07-06 株式会社半導体エネルギー研究所 Semiconductor device, and transmission system

Also Published As

Publication number Publication date
JP3345475B2 (en) 2002-11-18

Similar Documents

Publication Publication Date Title
US6941021B2 (en) Video conferencing
JP3205498B2 (en) Coding method and decoding method for continuous image
JP2646169B2 (en) Video compression and decompression methods
US6304606B1 (en) Image data coding and restoring method and apparatus for coding and restoring the same
US6222881B1 (en) Using numbers of non-zero quantized transform signals and signal differences to determine when to encode video signals using inter-frame or intra-frame encoding
US6301304B1 (en) Architecture and method for inverse quantization of discrete cosine transform coefficients in MPEG decoders
EP0241989A2 (en) Image display
US6208689B1 (en) Method and apparatus for digital image decoding
US8908982B2 (en) Image encoding device and image encoding method
JPH05207517A (en) Method and device for compressing and extending multiple bit digital pixel data
JPH05234260A (en) Digital vtr
JPH11513205A (en) Video coding device
JPH0787482A (en) Method and device for coding and decoding picture data
US8675732B2 (en) Method and apparatus of compressing image data
JP2003517796A (en) How to reduce the &#34;uneven picture&#34; effect
US5793428A (en) Self-encoded deltas for digital video data transmission
KR20020026189A (en) Efficient video data access using fixed ratio compression
US20090304073A1 (en) Systems and Methods for the Bandwidth Efficient Processing of Data
JP3345475B2 (en) Image data encoding method and restoration method and apparatus
JP2002218472A (en) Device and method for decoding variable image rate
KR100798386B1 (en) Method of compressing and decompressing image and equipment thereof
CN1396769A (en) Compression method and system for moving image information
KR102543449B1 (en) Image processing device and method for operating image processing device
JPH06217273A (en) Method and device for encoding image data
JPH0678297A (en) Method for encoding of digital video signal

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020730

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

Free format text: PAYMENT UNTIL: 20080830

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090830

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090830

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100830

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110830

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees