[go: up one dir, main page]

JP3581382B2 - Encoding device and method - Google Patents

Encoding device and method Download PDF

Info

Publication number
JP3581382B2
JP3581382B2 JP25590193A JP25590193A JP3581382B2 JP 3581382 B2 JP3581382 B2 JP 3581382B2 JP 25590193 A JP25590193 A JP 25590193A JP 25590193 A JP25590193 A JP 25590193A JP 3581382 B2 JP3581382 B2 JP 3581382B2
Authority
JP
Japan
Prior art keywords
circuit
input
refresh
control
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP25590193A
Other languages
Japanese (ja)
Other versions
JPH07111653A (en
Inventor
満 大和田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP25590193A priority Critical patent/JP3581382B2/en
Publication of JPH07111653A publication Critical patent/JPH07111653A/en
Application granted granted Critical
Publication of JP3581382B2 publication Critical patent/JP3581382B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

【0001】
【産業上の利用分野】
本願発明は符号化装置及びその方法にかかり、特に画面内符号化モードと画面間符号化モードとを適応的に用いて画像データを符号化する符号化装置及びその方法に関するものである。
【0002】
【従来の技術】
従来より画像情報をデジタル伝送する場合、伝送データ量を削減するために各種の符号化方式が提案されている。
【0003】
その提案されている符号化方式の1つに、フレーム内符号化とフレーム間符号化とを切り換えて符号化する方式がある。
【0004】
フレーム内圧縮は、近接する画素同士は明るさと色が類似する画像の特性を利用して情報量低減する方式である。
【0005】
実際の画像では、空や壁など大半の部分は同程度の明るさと色がほぼ続いているため、フレーム内圧縮のみを用いても1/5〜1/10程度の圧縮が可能である。
【0006】
フレーム間圧縮は、類似した画像を利用して、補正分の情報のみで画像を得る方式である。
【0007】
通常動画では近接するフレームの絵柄は、多少の動きや変形はあるが類似している。この点を利用して、まず圧縮符号化しようとするフレームと近接するフレーム間との類似性(動き、色、明るさ等)を計算する。その計算に基づいて「予測値」、つまり「近接フレーム」から「符号化しようとするフレーム」に更に類似したフレームの値を算出する。
【0008】
次に、符号化しようとするフレームから「予測値」との差分情報のみを符号化(記録・伝送)する。このため、データ量(補正分)が低減する。
【0009】
つまり人物だけ移っている動画で人物が右に移動した場合、一つ前のフレームで、移動の補正情報も含めて人物がいる画素が予測値で、右に移動した全体の画素から予測値を引いたものが差分となる。
【0010】
従来の符号化装置の場合、一般にフレーム間処理により圧縮する場合、伝送路上で誤りが発生すると、その誤りが伝播することが知られている。したがって、フレーム間処理を所定数行うと自動的にフレーム内処理(リフレッシュ動作)を行うものとなっていった。
【0011】
【発明が解決しようとする課題】
各符号化画面の1フレーム当りのデータ量は、フレーム内処理の場合16K〜25Kバイト、フレーム間処理の場合7〜10Kバイト程度である。
【0012】
つまり、一般にフレーム内処理はフレーム間処理よりも発生するデータ量が多いことが知られている。
【0013】
従って、定期的にフレーム内符号化を行う場合、その直前の量子化ステップ(フレーム間符号化に使われた量子化ステップ)を使って量子化すると急にデータ発生量が増えてしまい、伝送レート上の問題となる。
【0014】
そこで、データ発生量を抑えるために量子化ステップを変えて、符号化を行うと今度は画質劣化を引き起こしてしまうという問題が生じる。
【0015】
上述のような問題は、複数の符号化モードを適応的に切り換えて符号化を行う符号化装置(少なくとも予測符号化モードを有する)に発生するものである。
【0016】
上述したような背景から、本願発明は従来の符号化装置における上述の問題を解消し、信号劣化を防止した符号化装置及びその方法を提供することを目的とする。
【0017】
【課題を解決するための手段】
本願は斯かる目的下にその一つの発明の符号化装置として、連続的に画像データを入力する入力手段と、画面内符号化モードと画面間符号化モードとを選択的に用いて、前記入力手段によって入力された画像データを符号化する符号化手段と、前記入力手段によって入力された画像データを複数のエリアに分割し、前記エリア毎に前記画像データを符号化した際の符号量が所望の符号量になるように前記符号化手段を制御する符号量制御手段と、前記符号量制御手段の制御単位である前記各エリア内に一定の比率で強制的に画面内符号化モードを実行するリフレッシュエリアを設定し、かつ前記リフレッシュエリアを画面単位で所定単位毎に移動するように制御するリフレッシュ制御手段とを有することを特徴とする。また、本願は斯かる目的下にその一つの発明の符号化方法として、連続的に画像データを入力する入力工程と、画面内符号化モードと画面間符号化モードとを選択的に用いて、前記入力工程で入力された画像データを符号化する符号化工程と、前記入力工程で入力された画像データを複数のエリアに分割し、前記エリア毎に前記画像データを符号化した際の符号量が所望の符号量になるように前記符号化手段を制御する符号量制御工程と、前記符号量制御工程の制御単位である前記各エリア内に一定の比率で強制的に画面内符号化モードを実行するリフレッシュエリアを設定し、かつ前記リフレッシュエリアを画面単位で所定単位毎に移動するように制御するリフレッシュ制御工程とを有することを特徴とする。
【0019】
【実施例】
以下、本願発明にかかる実施例の符号化装置を説明する。
【0020】
図1は本実施例を適用させた符号化装置のブロック図である。
【0021】
図1において、101は画像信号が入力される入力端子、102は入力されたアナログ信号をデジタル信号に変換するA/D変換回路、103は画素順序を入れかえてブロックに分割するブロック分割回路、104は現フレーム信号と予測信号の差分演算を行う予測誤差算出回路、105は前記ブロック分割器103からの入力と予測誤差算出回路104からの入力とを切り換えるスイッチ回路である。
【0022】
106は現フレーム信号と予測誤差信号とを比較し、符号化信号を選択する判定回路である。
【0023】
107はリフレッシュ制御回路である。リフレッシュ制御回路107にはフレーム信号と後述するW,Sの設定値が入力されている。リフレッシュ制御回路107の動作は後述詳しく説明する。
【0024】
108は前記判定回路106の判定結果とリフレッシュ制御回路107からのリフレッシュ制御信号を入力とするOR回路、109はスイッチ回路105により選択された信号を直交変換する直交変換回路、110は直交変換係数を量子化する量子化回路、111は量子化回路110により量子化された係数を可変長符号化する可変長符号化回路、112は発生するデータ量と伝送されるデータ量を制御するためのバッファメモリ、113は伝送フォーマットを作成する為の伝送I/F回路、114は伝送信号出力端子である。
【0025】
115は量子化回路110の逆量子化を行う逆量子化回路、116は直交変換回路109の逆変換を行う逆直交変換回路、117は現フレームの画像を再生するための加算回路、118はスイッチ回路105に連動してOR回路108の出力によりa,b端を選択するスイッチ回路である。
【0026】
119は現フレームの再生画像を一時記憶する画像メモリ回路、120は現フレームと前フレームの信号を比較して動きベクトルを算出する動きベクトル検出回路、121は前フレームの再生画像信号に対して動きベクトル検出回路120の信号に応じて動き補償を行う動き補償回路である。130はフッファメモリ112の蓄積データ量を一定に保つためのバッファ制御回路である。
【0027】
以下、上述のような構成を備える符号化装置の動作について説明する。
【0028】
入力端子101に入力されたアナログ画像信号はA/D変換回路102でデジタル信号に変換され、更にブロック分割器103で水平方向a画素、垂直方向bラインのブロック、例えばa=b=8に分割される。
【0029】
この信号は予測誤差算出回路104、フレーム内/フレーム間符号化切換スイッチ回路105a端、フレーム内/フレーム間符号化判定回路106に入力される。
【0030】
予測誤差算出回路104には、前フレームの動き予測値と現フレームの信号が入力され、その差分値を算出してスイッチ回路105b端と判定回路106に入力される。
【0031】
判定回路106は入力された現フレーム信号と予測誤差信号とで比較を行い符号化効率の良い方(フレーム間/フレーム内符号化)を判定出力とする。
【0032】
判定出力はOR回路108を介してスイッチ回路105,118を制御し、現フレームが符号化効率がよければa端を、予測誤差信号の方がよければb端を適応的に選択する。
【0033】
OR回路108の他方にはリフレッシュ制御回路107からのリフレッシュのために定期的に強制フレーム内とする制御信号が入力される。
【0034】
このリフレッシュ動作は画像に誤りが発生した場合に、その誤りの伝播を止めることを目的としている。
【0035】
このリフレッシュ制御回路107の動作の詳細は後述する。
【0036】
スイッチ回路105により選択された信号は直交変換回路109に入力される。
【0037】
本実施例では直交変換方式として、高い変換効率を持ち、ハードウェア化で実現性のある離散コサイン変換(DCT)を適用する。
【0038】
直交変換回路109からはその変換後の係数が出力され、量子化回路110に入力される。
【0039】
量子化回路110では、入力された直交変換係数を画像の視覚特性等を考慮した特性により量子化する。量子化回路110の出力信号は可変長符号回路111と逆量子化回路115にそれぞれ入力される。
【0040】
可変長符号化回路111は、直交変換後のデータが画像の特性からデータ発生分布が効率よく符号化されるようにデータの並び変えを行い、更にその分布の特性が符号化効率に最適となるような可変長符号化を行う。
【0041】
可変長符号化回路111からの出力信号はバッファメモリ112に入力されるバッファメモリのデータ量はバッファ制御回路130により所定の処理単位で一定となる様に制御される(後で詳細に述べる)。仮にバッファ量が増大したとすると、バッファ制御回路130から量子化回路110、逆量子化回路116は、データ発生をおさえる量子化テーブルを選択する制御信号が送られる。逆にバッファ量が減少した時は、データ発生量が増大する量子化テーブルを選択する制御信号が送られる。前記処理動作により、バッファメモリ112の蓄積データ量は一定に保たれる。また、バッファメモリ112からの出力データ量を単位時間で等しくなるように動作する。バッファメモリ112からの出力は伝送I/F回路に入力される。
【0042】
伝送I/F回路113では伝送クロックに同期して、バッファメモリ112の画像データを伝送フォーマットに従って出力端子114に出力する。このとき伝送フォーマットに含まれる動きベクトル情報,伝送同期信号及び誤り訂正符号等も同時に多重伝送される。
【0043】
一方、逆量子化回路115に入力された信号は、量子化回路110と逆の特性により量子化回路110の入力信号と同じ信号が逆量子化回路115から出力され、逆直交変換回路116に入力される。同様に直交変換回路109の逆変換回路である逆直交変換回路116により、直交変換回路109の入力信号と同じ信号が出力される。
【0044】
加算回路117には、前記逆変換された信号と、スイッチ118からの出力信号とが入力される。
【0045】
スイッチ回路118がa端に接続された時は、フレーム内処理でありスイッチ回路105も同様にa端が選択され、現フレームの信号が差分を取ることなく符号化、逆符号化され加算回路117に入力される。
【0046】
このときスイッチ回路118のa端は「0」であるため、加算回路117の出力はブロック分割回路103の出力信号と等しくなる。
【0047】
また、スイッチ回路118がb端の時は動き補償回路121の出力、つまり予測値との差分がスイッチ回路105から出力され、加算回路117に入力される。
【0048】
スイッチ回路118のb端は前記予測値と同じ信号なので加算回路117で加算されることで出力は同様にブロック分割回路103の出力と等しくなる。
【0049】
画像メモリ119は現フレーム信号を記憶し、約1フレーム分の遅れをもって出力される。
【0050】
動きベクトル検出回路120は前記画像メモリ119の出力、つまり現フレームの画像データが入力され、画像メモリ119に記憶されている前フレームの画像信号と比較して、符号化ブロックの動きを動きベクトルとして算出して動き補償回路121に出力する。
【0051】
動き補償回路121は前フレームの画像信号を動きベクトル検出回路120からのベクトル情報により動き補償を行ない予測値として出力する。
【0052】
以下、リフレッシュ制御回路107の制御動作について詳細に説明する。
【0053】
まず、図2、3を用いてリフレッシュ制御信号とバッファ制御の関係について説明する。
【0054】
図2(a)はバッファ制御の処理単位について示している。まずバッファ制御回路130は図2(a)の(ア)に対応するエリアのデータ発生量を検出し、制御目標値に対しての誤差演算を行い、量子化回路110、逆量子化回路116に制御信号を送りデータの発生量を制御する。この動作は図2(a)の(イ)、(ウ)についても順次行われる。図2(a)中の(ア)、(イ)、(ウ)のそれぞれのエリア内ではそれぞれ同一の制御値により制御されるわけでこの(ア)、(イ)、(ウ)の単位がバッファ制御の処理単位になるわけである。
【0055】
この処理単位は、細かい程バッファ制御の応答性が速くなり、バッファ制御の応答は向上するが、反面、画面上の小さなエリアごとに発生データ量が均一化されてしまい、本来細かい画像でデータ量の大きい部分は大幅に圧縮され画質劣化が大きく、逆に単純な画像は充分なデータ量が割り当てられ、劣化の少ない画像となる。これは視覚的に劣化が目立ち、画像の品質を大幅に低下させてしまう。
【0056】
逆に、処理単位が大きくなると符号化データの画質は良くなるが、バッファ制御が困難になり、バッファー量を大きく必要とする事になる。従って処理単位はある条件の大きさを保つ必要がある。一般的には、DCT処理単位の整数倍に設定される。
【0057】
図1中の、バッファ制御回路130からリフレッシュ制御回路107には上述の処理単位を示す信号(図3(b))が伝送される。
【0058】
リフレッシュ制御回路107では、バッファ制御処理単位毎に一定量のリフレッシュ制御信号が出力される様に動作する(図3(c))。
【0059】
図2(b)はそのリフレッシュエリアの一例を示している。
【0060】
バッファ制御処理単位毎に一定の比率でリフレッシュエリアが設定されるため、リフレッシュによる強制Intra処理によるデータ発生の急激な変化はなくなり、安定したバッファ制御を行う事ができ、急激な画質劣化を避ける事ができる。また、リフレッシュエリアは図2(b)に示すようにフレーム単位で所定単位毎に移動させている。つまり、図3(c)のリフレッシュ制御信号の発生期間は、フレーム単位で所定単位毎に移動させ、nフレームで一巡するものである。
【0061】
本実施例では、フレーム間動き補償符号化について説明したが、フィールド間動き補償符号化についても同様である。又、図3(c)には、リフレッシュ制御信号の発生時期は各バッファ制御単位毎(図3(a)の(ア)、(イ)、(ウ))に同じであるが、相違していてもよいことは、自明である。
【0062】
また、初めの画像は参照画像が存在しないので、Intra処理を行っていることは明らかである。
【0063】
【発明の効果】
以上説明したように本発明によれば、符号量制御単位である各エリア内に一定の比率でリフレッシュエリアを設定し、前記リフレッシュエリアを画面単位で所定単位毎に移動するようにしたので、誤り伝播を所定画面数単位で止めることができる共に、リフレッシュエリアによるデータ量増加の影響は符号量制御単位である各エリアにおいて同等となるので、符号量制御単位であるエリア間の画質差を防止することができ総合的な画質を大幅に向上させることができる。
【図面の簡単な説明】
【図1】本発明の実施例にかかる符号化装置のブロック図である。
【図2】本発明の実施例にかかるバッファ制御動作及びリフレッシュ動作を説明するための図である。
【図3】本発明の実施例にかかるリフレッシュ制御信号の発生期間を説明するための図である。
【符号の説明】
105,118 スイッチ回路
106 判定回路
107 リフレッシュ回路
108 OR回路
130 バッファ制御回路
[0001]
[Industrial applications]
The present invention relates to a coding apparatus and a coding method, and more particularly to a coding apparatus and a coding method for coding image data by adaptively using an intra-screen coding mode and an inter-screen coding mode.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, when digitally transmitting image information, various encoding methods have been proposed to reduce the amount of transmitted data.
[0003]
As one of the proposed coding methods, there is a method of performing coding by switching between intra-frame coding and inter-frame coding.
[0004]
Intra-frame compression is a method of reducing the amount of information by using characteristics of an image in which adjacent pixels have similar brightness and color.
[0005]
In an actual image, almost the same brightness and color continue almost in the sky and the walls such as walls, so that only 1/5 to 1/10 can be compressed by using only intra-frame compression.
[0006]
The inter-frame compression is a method of obtaining an image using only similar information by using similar images.
[0007]
In a normal moving image, the patterns of adjacent frames are similar, although there are some movements and deformations. Utilizing this point, first, the similarity (motion, color, brightness, etc.) between the frame to be compression-encoded and the adjacent frame is calculated. Based on the calculation, a value of a frame that is more similar to the “predicted value”, that is, the “frame to be encoded” from the “proximal frame” is calculated.
[0008]
Next, only the difference information from the "prediction value" is encoded (recorded / transmitted) from the frame to be encoded. Therefore, the data amount (correction amount) is reduced.
[0009]
In other words, when a person moves to the right in a moving image of a person, the pixel in which the person including the movement correction information is included in the previous frame is the predicted value, and the predicted value is calculated from the entire pixels moved to the right. The difference is the difference.
[0010]
In the case of a conventional encoding device, it is generally known that when an error occurs on a transmission path when compression is performed by inter-frame processing, the error propagates. Therefore, when a predetermined number of inter-frame processes are performed, an intra-frame process (refresh operation) is automatically performed.
[0011]
[Problems to be solved by the invention]
The amount of data per frame of each encoded screen is about 16K to 25K bytes for intra-frame processing and about 7 to 10K bytes for inter-frame processing.
[0012]
That is, it is generally known that the intra-frame processing generates a larger amount of data than the inter-frame processing.
[0013]
Therefore, when performing intra-frame coding periodically, if the quantization is performed using the immediately preceding quantization step (the quantization step used for inter-frame coding), the amount of generated data suddenly increases, and the transmission rate increases. This is a problem.
[0014]
Therefore, if encoding is performed by changing the quantization step in order to suppress the amount of generated data, there arises a problem that image quality is deteriorated this time.
[0015]
The above-described problem occurs in a coding apparatus (having at least a predictive coding mode) that performs coding by adaptively switching a plurality of coding modes.
[0016]
In view of the above-described background, an object of the present invention is to solve the above-described problems in a conventional encoding device and to provide an encoding device and a method thereof that prevent signal degradation.
[0017]
[Means for Solving the Problems]
For this purpose, the present application provides an input device for continuously inputting image data and an input device for selectively inputting an intra-screen encoding mode and an inter-screen encoding mode. Encoding means for encoding the image data inputted by the means; and dividing the image data inputted by the input means into a plurality of areas, and a desired code amount when the image data is encoded for each area. Code amount control means for controlling the encoding means so that the code amount is equal to, and forcibly executing the intra-screen encoding mode at a constant ratio in each area which is a control unit of the code amount control means. Refresh control means for setting a refresh area and controlling the refresh area to be moved in predetermined units on a screen-by-screen basis. In addition, the present application, as an encoding method of the present invention for such purpose, an input step of continuously inputting image data, and selectively using an intra-screen encoding mode and an inter-screen encoding mode, An encoding step of encoding the image data input in the input step, and a code amount when dividing the image data input in the input step into a plurality of areas and encoding the image data for each area Is a code amount control step of controlling the encoding means so that the desired code amount is obtained, and the intra-screen encoding mode is forcibly set at a fixed ratio in each area which is a control unit of the code amount control step. And a refresh control step of setting a refresh area to be executed and controlling the refresh area to be moved in predetermined units on a screen basis.
[0019]
【Example】
Hereinafter, an encoding device according to an embodiment of the present invention will be described.
[0020]
FIG. 1 is a block diagram of an encoding device to which the present embodiment is applied.
[0021]
In FIG. 1, reference numeral 101 denotes an input terminal to which an image signal is input; 102, an A / D conversion circuit that converts an input analog signal into a digital signal; 103, a block division circuit that divides the order of pixels into blocks; Reference numeral denotes a prediction error calculation circuit that performs a difference operation between the current frame signal and the prediction signal, and reference numeral 105 denotes a switch circuit that switches between the input from the block divider 103 and the input from the prediction error calculation circuit 104.
[0022]
A determination circuit 106 compares the current frame signal with the prediction error signal and selects an encoded signal.
[0023]
107 is a refresh control circuit. To the refresh control circuit 107, a frame signal and W and S setting values to be described later are input. The operation of the refresh control circuit 107 will be described later in detail.
[0024]
Reference numeral 108 denotes an OR circuit that receives the determination result of the determination circuit 106 and the refresh control signal from the refresh control circuit 107, 109 denotes an orthogonal transform circuit that orthogonally transforms the signal selected by the switch circuit 105, and 110 denotes an orthogonal transform coefficient. A quantizing circuit for quantizing, 111 is a variable length coding circuit for performing variable length coding of the coefficient quantized by the quantizing circuit 110, 112 is a buffer memory for controlling the amount of data generated and the amount of data transmitted , 113 are transmission I / F circuits for creating a transmission format, and 114 is a transmission signal output terminal.
[0025]
Reference numeral 115 denotes an inverse quantization circuit that performs inverse quantization of the quantization circuit 110; 116, an inverse orthogonal transformation circuit that performs inverse transformation of the orthogonal transformation circuit 109; 117, an addition circuit for reproducing an image of the current frame; A switch circuit that selects the terminals a and b based on the output of the OR circuit 108 in conjunction with the circuit 105.
[0026]
An image memory circuit 119 temporarily stores a reproduced image of the current frame, a motion vector detecting circuit 120 compares a signal of the current frame with a signal of the previous frame to calculate a motion vector, and a reference numeral 121 denotes a motion vector for the reproduced image signal of the previous frame. This is a motion compensation circuit that performs motion compensation according to the signal of the vector detection circuit 120. Reference numeral 130 denotes a buffer control circuit for keeping the amount of data stored in the buffer memory 112 constant.
[0027]
Hereinafter, the operation of the encoding device having the above configuration will be described.
[0028]
The analog image signal input to the input terminal 101 is converted into a digital signal by an A / D conversion circuit 102, and further divided by a block divider 103 into blocks of a pixel in the horizontal direction and b lines in the vertical direction, for example, a = b = 8 Is done.
[0029]
This signal is input to the prediction error calculating circuit 104, the end of the intra-frame / inter-frame encoding changeover switch circuit 105a, and the intra-frame / inter-frame encoding determining circuit 106.
[0030]
The prediction error calculation circuit 104 receives the motion prediction value of the previous frame and the signal of the current frame, calculates the difference between them, and inputs the difference value to the end of the switch circuit 105b and the determination circuit 106.
[0031]
The determination circuit 106 compares the input current frame signal and the prediction error signal, and determines the one with the higher coding efficiency (inter-frame / intra-frame coding) as a determination output.
[0032]
The decision output controls the switch circuits 105 and 118 via the OR circuit 108, and the terminal a is adaptively selected if the current frame has better coding efficiency, and the terminal b is suitable if the prediction error signal is better.
[0033]
To the other of the OR circuits 108, a control signal from the refresh control circuit 107 for periodically setting a forced frame for refresh is input.
[0034]
The purpose of this refresh operation is to stop the propagation of an error when an error occurs in the image.
[0035]
Details of the operation of the refresh control circuit 107 will be described later.
[0036]
The signal selected by the switch circuit 105 is input to the orthogonal transform circuit 109.
[0037]
In the present embodiment, a discrete cosine transform (DCT) which has high conversion efficiency and can be realized by hardware is applied as an orthogonal transform method.
[0038]
The transformed coefficients are output from the orthogonal transformation circuit 109 and input to the quantization circuit 110.
[0039]
The quantization circuit 110 quantizes the input orthogonal transform coefficients according to characteristics in consideration of the visual characteristics and the like of the image. The output signal of the quantization circuit 110 is input to the variable length code circuit 111 and the inverse quantization circuit 115, respectively.
[0040]
The variable-length coding circuit 111 rearranges the data after the orthogonal transformation so that the data generation distribution is efficiently coded from the characteristics of the image, and the characteristics of the distribution are optimized for the coding efficiency. Such variable length coding is performed.
[0041]
The output signal from the variable length coding circuit 111 is controlled by the buffer control circuit 130 so that the data amount of the buffer memory input to the buffer memory 112 is constant in a predetermined processing unit (described later in detail). Assuming that the buffer amount has increased, a control signal for selecting a quantization table for suppressing data generation is sent from the buffer control circuit 130 to the quantization circuit 110 and the inverse quantization circuit 116. Conversely, when the buffer amount decreases, a control signal for selecting a quantization table in which the data generation amount increases is sent. By the processing operation, the amount of data stored in the buffer memory 112 is kept constant. Further, the operation is performed so that the output data amount from the buffer memory 112 becomes equal in unit time. The output from the buffer memory 112 is input to the transmission I / F circuit.
[0042]
The transmission I / F circuit 113 outputs the image data in the buffer memory 112 to the output terminal 114 in accordance with the transmission format in synchronization with the transmission clock. At this time, motion vector information, a transmission synchronization signal, an error correction code, and the like included in the transmission format are also multiplexed and transmitted.
[0043]
On the other hand, the signal input to the inverse quantization circuit 115 is the same signal as the input signal of the quantization circuit 110 due to the opposite characteristics of the quantization circuit 110 and is output from the inverse quantization circuit 115 and input to the inverse orthogonal transform circuit 116. Is done. Similarly, an inverse orthogonal transform circuit 116, which is an inverse transform circuit of the orthogonal transform circuit 109, outputs the same signal as the input signal of the orthogonal transform circuit 109.
[0044]
The inversely converted signal and the output signal from the switch 118 are input to the addition circuit 117.
[0045]
When the switch circuit 118 is connected to the terminal a, the processing in the frame is performed, and the terminal a is similarly selected for the switch circuit 105. The signal of the current frame is coded and inverse coded without taking a difference, and the addition circuit 117 is used. Is input to
[0046]
At this time, since the terminal a of the switch circuit 118 is “0”, the output of the adder circuit 117 becomes equal to the output signal of the block dividing circuit 103.
[0047]
When the switch circuit 118 is at the end b, the output of the motion compensation circuit 121, that is, the difference from the predicted value is output from the switch circuit 105 and input to the addition circuit 117.
[0048]
Since the terminal b of the switch circuit 118 is the same signal as the predicted value, the output is similarly made equal to the output of the block dividing circuit 103 by being added by the adding circuit 117.
[0049]
The image memory 119 stores the current frame signal and outputs it with a delay of about one frame.
[0050]
The motion vector detection circuit 120 receives the output of the image memory 119, that is, the image data of the current frame, compares it with the image signal of the previous frame stored in the image memory 119, and determines the motion of the encoded block as a motion vector. The calculated value is output to the motion compensation circuit 121.
[0051]
The motion compensation circuit 121 performs motion compensation on the image signal of the previous frame based on the vector information from the motion vector detection circuit 120, and outputs a predicted value.
[0052]
Hereinafter, the control operation of the refresh control circuit 107 will be described in detail.
[0053]
First, the relationship between the refresh control signal and the buffer control will be described with reference to FIGS.
[0054]
FIG. 2A shows the processing unit of the buffer control. First, the buffer control circuit 130 detects the amount of data generation in the area corresponding to (a) of FIG. 2A, performs an error calculation on the control target value, and sends the error calculation to the quantization circuit 110 and the inverse quantization circuit 116. A control signal is sent to control the amount of data generated. This operation is also performed sequentially for (a) and (c) in FIG. In each of the areas (A), (A), and (C) in FIG. 2A, each area is controlled by the same control value, so that the units of (A), (A), and (C) are This is a unit of processing for buffer control.
[0055]
The smaller this processing unit, the faster the response of buffer control and the better the response of buffer control, but on the other hand, the amount of data generated is uniform for each small area on the screen, and the data amount is originally small The portion having a large value is greatly compressed, and the image quality is greatly deteriorated. On the other hand, a simple image is assigned a sufficient data amount, and the image is less deteriorated. This is visually noticeable and significantly reduces image quality.
[0056]
Conversely, when the processing unit is increased, the image quality of the encoded data is improved, but buffer control becomes difficult, and a large buffer amount is required. Therefore, the processing unit needs to keep the size of a certain condition. Generally, it is set to an integral multiple of the DCT processing unit.
[0057]
A signal (FIG. 3B) indicating the above-described processing unit is transmitted from the buffer control circuit 130 to the refresh control circuit 107 in FIG.
[0058]
The refresh control circuit 107 operates to output a fixed amount of refresh control signal for each buffer control processing unit (FIG. 3C).
[0059]
FIG. 2B shows an example of the refresh area.
[0060]
Since the refresh area is set at a fixed ratio for each buffer control processing unit, there is no sudden change in data generation due to forced intra processing due to refresh, stable buffer control can be performed, and rapid image quality deterioration can be avoided. Can be. Further, the refresh area is moved by a predetermined unit in a frame unit as shown in FIG. In other words, the generation period of the refresh control signal in FIG. 3C is shifted by a predetermined unit in a frame unit and makes one cycle in n frames.
[0061]
In the present embodiment, the description has been given of the inter-frame motion compensation coding, but the same applies to the inter-field motion compensation coding. Further, in FIG. 3C, the generation timing of the refresh control signal is the same for each buffer control unit ((A), (A), and (C) in FIG. 3A), but is different. It is self-evident.
[0062]
In addition, since the first image has no reference image, it is clear that the intra process is performed.
[0063]
【The invention's effect】
As described above, according to the present invention, a refresh area is set at a fixed ratio in each area which is a code amount control unit, and the refresh area is moved by a predetermined unit in a screen unit. Propagation can be stopped in units of a predetermined number of screens, and the effect of an increase in the data amount due to the refresh area is the same in each area as the code amount control unit, so that a difference in image quality between areas as the code amount control unit is prevented. The overall image quality can be greatly improved.
[Brief description of the drawings]
FIG. 1 is a block diagram of an encoding device according to an embodiment of the present invention.
FIG. 2 is a diagram for explaining a buffer control operation and a refresh operation according to the embodiment of the present invention.
FIG. 3 is a diagram for explaining a generation period of a refresh control signal according to the embodiment of the present invention.
[Explanation of symbols]
105, 118 switch circuit 106 determination circuit 107 refresh circuit 108 OR circuit 130 buffer control circuit

Claims (2)

連続的に画像データを入力する入力手段と、
画面内符号化モードと画面間符号化モードとを選択的に用いて、前記入力手段によって入力された画像データを符号化する符号化手段と、
前記入力手段によって入力された画像データを複数のエリアに分割し、前記エリア毎に前記画像データを符号化した際の符号量が所望の符号量になるように前記符号化手段を制御する符号量制御手段と、
前記符号量制御手段の制御単位である前記各エリア内に一定の比率で強制的に画面内符号化モードを実行するリフレッシュエリアを設定し、かつ前記リフレッシュエリアを画面単位で所定単位毎に移動するように制御するリフレッシュ制御手段とを有することを特徴とする符号化装置。
Input means for continuously inputting image data;
Encoding means for encoding the image data input by the input means, by selectively using the intra-screen encoding mode and the inter-screen encoding mode,
A code amount for dividing the image data input by the input unit into a plurality of areas, and controlling the encoding unit so that a code amount when the image data is encoded for each area becomes a desired code amount. Control means;
A refresh area for forcibly executing the intra-screen encoding mode is set at a fixed ratio in each area, which is a control unit of the code amount control means, and the refresh area is moved in predetermined units in screen units. And a refresh control means for performing control as described above.
連続的に画像データを入力する入力工程と、
画面内符号化モードと画面間符号化モードとを選択的に用いて、前記入力工程で入力された画像データを符号化する符号化工程と、
前記入力工程で入力された画像データを複数のエリアに分割し、前記エリア毎に前記画像データを符号化した際の符号量が所望の符号量になるように前記符号化手段を制御する符号量制御工程と、
前記符号量制御工程の制御単位である前記各エリア内に一定の比率で強制的に画面内符号化モードを実行するリフレッシュエリアを設定し、かつ前記リフレッシュエリアを画面単位で所定単位毎に移動するように制御するリフレッシュ制御工程とを有することを特徴とする符号化方法。
An input step of continuously inputting image data;
An encoding step of encoding the image data input in the input step by selectively using an intra-screen encoding mode and an inter-screen encoding mode,
A code amount that divides the image data input in the input step into a plurality of areas, and controls the coding unit so that a code amount when the image data is coded for each area is a desired code amount. Control process;
A refresh area for forcibly executing an intra-screen encoding mode is set at a fixed ratio in each area, which is a control unit of the code amount control step, and the refresh area is moved in predetermined units in screen units. And a refresh control step of performing control as described above.
JP25590193A 1993-10-13 1993-10-13 Encoding device and method Expired - Fee Related JP3581382B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25590193A JP3581382B2 (en) 1993-10-13 1993-10-13 Encoding device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25590193A JP3581382B2 (en) 1993-10-13 1993-10-13 Encoding device and method

Publications (2)

Publication Number Publication Date
JPH07111653A JPH07111653A (en) 1995-04-25
JP3581382B2 true JP3581382B2 (en) 2004-10-27

Family

ID=17285150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25590193A Expired - Fee Related JP3581382B2 (en) 1993-10-13 1993-10-13 Encoding device and method

Country Status (1)

Country Link
JP (1) JP3581382B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010064136A (en) * 1999-12-24 2001-07-09 오길록 Method and apparatus for Inter/Intra mode decision using the characteristics in temporal and spatial domains
JP4789127B2 (en) * 2001-09-18 2011-10-12 株式会社メガチップス Image distribution method, image recording method, and program thereof
JP4599609B2 (en) * 2001-09-18 2010-12-15 株式会社メガチップス Image compression encoding method, image distribution method, and program thereof
JP2008258952A (en) * 2007-04-05 2008-10-23 Ibex Technology Co Ltd Encoding device, encoding program, and encoding method
JP5332812B2 (en) * 2009-03-30 2013-11-06 富士通株式会社 Video encoding device and video transmission system

Also Published As

Publication number Publication date
JPH07111653A (en) 1995-04-25

Similar Documents

Publication Publication Date Title
JP3441132B2 (en) Moving picture compression apparatus and method
US5386234A (en) Interframe motion predicting method and picture signal coding/decoding apparatus
EP1170957B1 (en) Video encoding and decoding apparatus
JP3210082B2 (en) Encoding device and method
EP1280356A2 (en) Apparatus and method for compressing multiplexed video signals
JPH07112284B2 (en) Predictive encoding device and decoding device
JPH04262694A (en) Encoding device for picture signal
JP3651706B2 (en) Video encoding device
JP3581382B2 (en) Encoding device and method
JPH0837663A (en) Encoder
JPH08102940A (en) Moving picture processing unit and its method
JP4240200B2 (en) Moving picture coding apparatus and moving picture coding method
KR970003100B1 (en) Video encoding method to adaptively select forced intra mode
KR0123243B1 (en) Bit rate control method in a scene conversion
JPH07143487A (en) Image coding device
JPH05308629A (en) Moving image encoding system
JP3363476B2 (en) Encoding device and method
KR100778473B1 (en) Bit rate control method
KR0124162B1 (en) Prediction coding method
JPH07107473A (en) Picture encoder
JP2002101417A (en) Moving image encoding method and device therefor
JPH06153181A (en) Prediction coding method, prediction decoding method, prediction coder and prediction decoder
JP4186544B2 (en) Encoding apparatus, encoding method, program, and recording medium
JP2001258039A (en) Variable image rate encoder, variable image rate decoder, variable image rate coding method, and variable image rate decoding method
JPH11331848A (en) Moving image signal encoding device and its method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030826

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040723

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: 20080730

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080730

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110730

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120730

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120730

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees