JPH0686255A - Picture encoder - Google Patents

Picture encoder

Info

Publication number
JPH0686255A
JPH0686255A JP23454092A JP23454092A JPH0686255A JP H0686255 A JPH0686255 A JP H0686255A JP 23454092 A JP23454092 A JP 23454092A JP 23454092 A JP23454092 A JP 23454092A JP H0686255 A JPH0686255 A JP H0686255A
Authority
JP
Japan
Prior art keywords
data
circuit
block
quantizer
activity
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
JP23454092A
Other languages
Japanese (ja)
Other versions
JP3175328B2 (en
Inventor
Kenji Tsunashima
健次 綱島
Soji Kurahashi
聡司 倉橋
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP23454092A priority Critical patent/JP3175328B2/en
Priority to US08/048,732 priority patent/US5440344A/en
Publication of JPH0686255A publication Critical patent/JPH0686255A/en
Priority to US08/385,987 priority patent/US5583573A/en
Priority to US08/655,641 priority patent/US5818529A/en
Application granted granted Critical
Publication of JP3175328B2 publication Critical patent/JP3175328B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To control data so that constant data generating amounts can be attained within a short unit period by quantizing the data by plural quantizers preliminarily decided by prediction, variable length-encoding the data, and then selecting and outputting the data according to the activity of each block. CONSTITUTION:Digital video data inputted from an input terminal 11 are divided into small blocks by a blocking circuit 1, and an orthogonal transformer 2 outputs transformation coefficients by a DCT to a non-zero coefficient counting circuit 3, a standard deviation calculating circuit 4, and a delay circuit 5. The circuit 3 counts and stores the number of coefficients being non-zero at the time of quantizing the data by preliminarily decoded plural quantization steps for each quantization step. The circuit 4 calculates standard deviation for each block. The outputs of the circuits 3 and 4 are inputted to a calculating circuit 6, the activity is calculated, inputted to a selecting circuit 7, and a quantizer 8 by which the target data generating amounts can be established is selected. The output of the transformer 2 is quantized through the delay circuit 5 by the quantizer 8, replaced with a variable length code by an encoder 9, transmitted through a buffer circuit 10, and outputted from a terminal 12 as a code to be transmitted.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、映像信号をディジタ
ル化し、一定の伝送レートで、記録,伝送を行う映像信
号符号化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video signal coding apparatus which digitizes a video signal and records and transmits it at a constant transmission rate.

【0002】[0002]

【従来の技術】図5は例えばIEEE Transaction on Cons
umer Electronics, Vol.34, No.3, Aug.1988, ■An Exp
erimental Digital VCR with 40mm Drum, Single Actua
tor and DCT-Based Bit-Rate Reduction■, S.M.C.Borg
ers,et.al.に示された画像信号符号化装置のブロック回
路図で、図中、31,32は入力映像信号を一時的に蓄
えるフレームメモリ、33は離散コサイン変換を行うD
CT装置、34はDCT装置33の出力をあらかじめ定
められた順序に並び替えるとともに、DCT装置33の
出力の位置に応じて一定の係数を乗算する処理(ウエイ
ティング処理)を施すブロック走査/ウエイティング処
理ブロック、35は適応量子化器、36は量子化された
各係数の振幅値に応じて係数の順序を変更するとともに
順序を示すアドレスを求めるソーティング回路、37は
ソーティング回路36の出力を可変長符号に置き換える
可変長符号器、38は可変長符号を蓄え一定のレートで
出力するバッファ回路、39はバッファ回路38の状態
を監視して、量子化のパラメータ等を決定するバッファ
制御回路である。
2. Description of the Related Art FIG. 5 shows, for example, IEEE Transaction on Cons.
umer Electronics, Vol.34, No.3, Aug.1988, ■ An Exp
erimental Digital VCR with 40mm Drum, Single Actua
tor and DCT-Based Bit-Rate Reduction ■, SMCBorg
ers, et.al. is a block circuit diagram of the image signal encoding device, in which 31 and 32 are frame memories for temporarily storing an input video signal, and 33 is D for performing discrete cosine transform.
The CT device, 34 rearranges the output of the DCT device 33 in a predetermined order, and performs a block scanning / weighting process for multiplying a constant coefficient according to the position of the output of the DCT device 33 (waiting process). A processing block, 35 is an adaptive quantizer, 36 is a sorting circuit for changing the order of the coefficients according to the amplitude value of each quantized coefficient and obtaining an address indicating the order, 37 is a variable length output of the sorting circuit 36. A variable-length encoder that replaces the code, 38 is a buffer circuit that stores the variable-length code and outputs it at a constant rate, and 39 is a buffer control circuit that monitors the state of the buffer circuit 38 and determines quantization parameters and the like.

【0003】次に図5の動作を説明する。入力映像信号
(輝度信号Yおよび色信号U,V)は一旦フレームメモ
リ31,32に蓄えられた後、垂直方向8画素、水平方
向8画素を単位として互いに重なり合わないデータブロ
ックとしてフレームメモリ31,32から読みだされ
る。DCT装置33では、フレームメモリ31,32か
ら8×8ブロックの形で読みだされたデータに2次元離
散コサイン変換を施す。離散コサイン変換に拠って得ら
れた係数データは、図6に示すような順序に並び替えら
れるとともに、ブロック内の位置によって定められてい
るウエイティングが掛けられる。
Next, the operation of FIG. 5 will be described. The input video signals (luminance signal Y and color signals U and V) are temporarily stored in the frame memories 31 and 32, and then, as a data block that does not overlap each other in units of 8 pixels in the vertical direction and 8 pixels in the horizontal direction, the frame memory 31, Read from 32. The DCT device 33 performs a two-dimensional discrete cosine transform on the data read from the frame memories 31 and 32 in the form of 8 × 8 blocks. The coefficient data obtained by the discrete cosine transform is rearranged in the order shown in FIG. 6 and weighted by the position in the block.

【0004】ブロック走査/ウエイティング処理ブロッ
ク34の出力は、適応量子化器35で量子化される。適
応量子化器35は、一定の値を下回る係数データをすべ
て零データとする、いわゆるスレショルド処理を含むも
のとする。量子化時に用いられる量子化ステップサイズ
およびスレショルド値は、各ブロックの性質とバッファ
制御回路39の出力の双方を用いて決定される。例え
ば、急峻なレベル変化を含むブロックは、小さな振幅の
高精細信号を含むブロックより劣化が視覚的に目立たな
いと考えれているため、急峻なレベル変動を含むブロッ
クについてはより大きなステップサイズとスレショルド
値で量子化を行うものとする。
The output of the block scanning / weighting processing block 34 is quantized by an adaptive quantizer 35. The adaptive quantizer 35 includes a so-called threshold process in which all coefficient data below a certain value is zero data. The quantization step size and the threshold value used at the time of quantization are determined by using both the property of each block and the output of the buffer control circuit 39. For example, a block that includes abrupt level changes is considered to be visually less noticeable than a block that includes a high-definition signal with a small amplitude, so a block with abrupt level changes has a larger step size and threshold value. Quantize with.

【0005】また、量子化ステップサイズとスレショル
ド値は、バッファ回路38の状態に応じてバッファ制御
回路39から供給される制御信号によってもコントロー
ルされる。すなわち、バッファ回路38に蓄えられたデ
ータ量が多くなった場合には、量子化ステップサイズお
よびスレショルド値を大きくし、逆にデータ量が所定の
値より小さい場合には量子化ステップサイズおよびスレ
ショルド値を小さくする。この様な制御に拠って、バッ
ファ回路がオーバーフローする事を防いでいる。適応量
子化器35の出力は、ソーティング回路36に於いて発
生する符号量を削減できるよう、零でない振幅値の係数
を振幅の順序に並び替えた後、処理される。
The quantization step size and the threshold value are also controlled by a control signal supplied from the buffer control circuit 39 according to the state of the buffer circuit 38. That is, when the amount of data stored in the buffer circuit 38 increases, the quantization step size and the threshold value are increased, and conversely, when the amount of data is smaller than a predetermined value, the quantization step size and the threshold value are increased. To reduce. Under such control, the buffer circuit is prevented from overflowing. The output of the adaptive quantizer 35 is processed after rearranging the coefficients of the non-zero amplitude value in the order of amplitude so that the code amount generated in the sorting circuit 36 can be reduced.

【0006】ソーティング回路36の出力は、可変長符
号化器37でデータの統計的性質を反映した可変長符号
に変換され、バッファ回路38に書き込まれる。バッフ
ァ回路38の状態は常にバッファ制御回路39によって
監視されており、上述のようにバッファ回路38の充填
度に応じて量子化のパラメータが変えられる。すなわ
ち、バッファ回路38の充填度が高くなった場合には、
量子化ステップサイズおよびスレショルド値の双方を大
きく設定することによって発生データ量を減らし、逆に
バッファ回路38の充填度が低くなった場合には、量子
化ステップサイズおよびスレショルド値ともに小さくす
る。
The output of the sorting circuit 36 is converted by the variable length encoder 37 into a variable length code reflecting the statistical properties of the data, and written in the buffer circuit 38. The state of the buffer circuit 38 is constantly monitored by the buffer control circuit 39, and as described above, the quantization parameter is changed according to the filling degree of the buffer circuit 38. That is, when the filling degree of the buffer circuit 38 becomes high,
By setting both the quantization step size and the threshold value large, the amount of generated data is reduced, and conversely, when the filling degree of the buffer circuit 38 becomes low, both the quantization step size and the threshold value are reduced.

【0007】[0007]

【発明が解決しようとする課題】上述の例のように、可
変長符号を蓄えるバッファの状態に応じて量子化パラメ
ータを変化させる、いわゆるフィードバック制御を採用
した映像信号符号化装置では、発生データ量をフレーム
単位以下の短時間内で一定値に納めることは困難で、V
TR等フレーム単位以下で発生データ量が一定値以下に
効率よく抑えられることが要求されるような場合には、
必ずしも適切ではないという問題点があった。
As described above, in the video signal coding apparatus adopting so-called feedback control, in which the quantization parameter is changed according to the state of the buffer storing the variable length code, the amount of generated data is increased. It is difficult to set V to a constant value within a short time of less than a frame unit.
When it is required to efficiently suppress the amount of generated data to a fixed value or less in a frame unit such as TR or the like,
There was a problem that it was not always appropriate.

【0008】この発明は、上記のような問題点を解消す
るためになされたもので、1フレーム以下の短い期間を
単位としても所定の値にデータ発生量を制御することの
出来る映像信号符号化装置を提供することを目的とす
る。
The present invention has been made in order to solve the above problems, and video signal encoding capable of controlling the data generation amount to a predetermined value even in a unit of a short period of one frame or less. The purpose is to provide a device.

【0009】[0009]

【課題を解決するための手段】請求項1の発明に係る映
像信号符号化装置は、入力映像信号を互いに重なり合わ
ないよう分割して得たブロックを直交変換し、あらかじ
め定めた複数の量子化ステップで量子化した際にブロッ
ク毎に非零となる係数の数をカウントするとともに、各
ブロックのデータの標準偏差を求め、各ブロックの非零
係数の数と標準偏差の線形和を求めアクティビティパラ
メータとし、該アクティビティパラメータに基づき、符
号化データ量を予測し、予測結果よって量子化ステップ
を選択するように構成したものである。
According to a first aspect of the present invention, there is provided a video signal encoding apparatus, which orthogonally transforms blocks obtained by dividing input video signals so that they do not overlap each other, and performs a plurality of predetermined quantization. Counts the number of coefficients that become non-zero for each block when quantized in steps, calculates the standard deviation of the data in each block, and calculates the linear sum of the number of non-zero coefficients in each block and the standard deviation. Then, the coded data amount is predicted based on the activity parameter, and the quantization step is selected according to the prediction result.

【0010】また、請求項2の発明に係る映像信号符号
化装置は、請求項1のアクティビティ算出手段で求めら
れたアクティビティに基づいて選択される量子化器を複
数個設け、それぞれの量子化器の出力を一時的に蓄える
バッファを用意するとともに、ブロック毎に複数個のバ
ッファに蓄えられたデータのいずれかを選択するデータ
選択手段とで構成したものである。
According to a second aspect of the present invention, there is provided a video signal encoding device, wherein a plurality of quantizers selected based on the activity calculated by the activity calculating means of the first aspect are provided, and each quantizer is provided. And a data selection means for selecting any of the data stored in a plurality of buffers for each block.

【0011】また、請求項3の発明に係る映像信号符号
化装置は、請求項2の発明のデータ選択手段を構成する
に当たり、アクティビティの大きいブロックから順次符
号量の少ないバッファのデータを選択するようにしたも
のである。
The video signal encoding apparatus according to the third aspect of the present invention, when configuring the data selecting means of the second aspect of the present invention, selects the data in the buffer having a smaller code amount in order from the block having a large activity. It is the one.

【0012】[0012]

【作用】請求項1の発明における映像信号符号化装置で
もちいる、各ブロック毎に量子化後に非零となる係数の
数と、標準偏差の和として求めたアクティビティパラメ
ータと、符号化データ量とは、高い相関を示すため良好
な符号化データ量予測を行うことが出来るので、適切な
量子化ステップの選択を行うことができ、短い期間内で
一定の発生データ量となるよう制御することが可能とな
る。
According to the video signal encoding device of the present invention, the number of coefficients that become non-zero after quantization for each block, the activity parameter obtained as the sum of standard deviations, and the encoded data amount Shows a high correlation, so that a good encoded data amount prediction can be performed, an appropriate quantization step can be selected, and it is possible to control so that the generated data amount is constant within a short period. It will be possible.

【0013】また、請求項2の発明では、複数個の量子
化器それぞれに対して、異なったデータ量の出力が得ら
れるので、データ選択手段において複数の量子化データ
の中からブロック毎に選択して出力することによって複
数ブロックの合計符号量を目標符号量により近づけるこ
とが可能となる。
Further, according to the second aspect of the present invention, since the outputs of different data amounts can be obtained for each of the plurality of quantizers, the data selecting means selects from the plurality of quantized data for each block. Then, the total code amount of a plurality of blocks can be brought closer to the target code amount.

【0014】また、請求項3の発明では、複数の符号化
データの選択にあたって、ブロック毎のアクティビティ
に応じて選択するブロックを決定するようにしたので、
ブロック毎の画像の性質が考慮されることになり、再生
画質の向上が期待できる。
Further, according to the invention of claim 3, when selecting a plurality of encoded data, the block to be selected is determined according to the activity of each block.
The property of the image of each block is taken into consideration, and the improvement of the reproduced image quality can be expected.

【0015】[0015]

【実施例】実施例1.以下、この発明の実施例1を図1
について説明する。図1において、1はブロック化回
路、2は直交変換器、3は非零係数計数回路、4は標準
偏差算出回路、5は遅延回路、6はアクティビティ算出
回路、7は量子化器選択回路、8は量子化器、9は可変
長符号化器、10はバッファ回路、11は映像信号入力
端子、12は符号出力端子である。
EXAMPLES Example 1. Embodiment 1 of the present invention will be described below with reference to FIG.
Will be described. In FIG. 1, 1 is a blocking circuit, 2 is an orthogonal transformer, 3 is a non-zero coefficient counting circuit, 4 is a standard deviation calculation circuit, 5 is a delay circuit, 6 is an activity calculation circuit, 7 is a quantizer selection circuit, Reference numeral 8 is a quantizer, 9 is a variable length encoder, 10 is a buffer circuit, 11 is a video signal input terminal, and 12 is a code output terminal.

【0016】次にその動作を説明する。映像入力端子1
1から入力されたディジタル映像入力データはブロック
化回路1で互いに重なりあわない小ブロックに分割され
る。この小ブロックの大きさは例えば、垂直方向、水平
方向ともに8画素とする。ブロック化回路1で形成され
たブロックは直交変換器2に入力される。直交変換器2
では、各ブロック毎に、離散コサイン変換等の直交変換
を施し、変換された係数を得る。直交変換器2の出力で
ある各変換係数は、非零係数計数回路3、標準偏差算出
回路4および遅延回路5に供給される。
Next, the operation will be described. Video input terminal 1
The digital video input data input from 1 is divided into small blocks which do not overlap each other in the blocking circuit 1. The size of this small block is, for example, 8 pixels both in the vertical and horizontal directions. The block formed by the blocking circuit 1 is input to the orthogonal transformer 2. Orthogonal transformer 2
Then, orthogonal transform such as discrete cosine transform is performed for each block to obtain the transformed coefficient. Each transform coefficient output from the orthogonal transformer 2 is supplied to the non-zero coefficient counting circuit 3, the standard deviation calculating circuit 4, and the delay circuit 5.

【0017】非零係数計数回路3では、予め定めた複数
の量子化ステップで量子化した際に非零となる係数の数
をそれぞれの量子化ステップに対して、カウントして記
憶しておく。また、標準偏差算出回路4では、ブロック
毎にデータの標準偏差を算出するものとする。非零係数
計数回路3と標準偏差算出回路4の出力はともにアクテ
ィビティ算出回路6に与えられる。アクティビティ算出
回路6では、非零係数のカウント値Nに予め定めた定数
aを乗算した値と標準偏差Sに予め定めた別の定数bを
乗算した値の和を算出し、アクティビティactとする。
すなわち、アクティビティactは、 act = aN+bS によって算出する。こうして算出したアクティビティは
符号化発生データ量と高い相関を示すことがシミュレー
ションによって確認されている。したがって、複数の画
像データを用いて、各量子化ステップ毎にアクティビテ
ィ値と符号化後の発生データ量の関係を調べておけば、
高い精度で入力画像のブロック毎のアクティビティから
発生データ量を予測することが出来る。そこで、アクテ
ィビティ算出回路6で算出されたアクティビティは量子
化器選択回路7に与えられ、目標とするデータ発生量を
達成出来る量子化器の選択に用いられる。
In the non-zero coefficient counting circuit 3, the number of coefficients that become non-zero when quantized by a plurality of predetermined quantization steps is counted and stored for each quantization step. Further, the standard deviation calculation circuit 4 calculates the standard deviation of data for each block. The outputs of the non-zero coefficient counting circuit 3 and the standard deviation calculating circuit 4 are both given to the activity calculating circuit 6. In the activity calculation circuit 6, a predetermined constant is set to the count value N of the non-zero coefficient.
The sum of the value obtained by multiplying a and the standard deviation S by another predetermined constant b is calculated, and is defined as the activity act.
That is, the activity act is calculated by act = aN + bS. It has been confirmed by simulation that the activity calculated in this way has a high correlation with the amount of encoded data. Therefore, if you check the relationship between the activity value and the amount of generated data after encoding for each quantization step using multiple image data,
The amount of generated data can be predicted with high accuracy from the activity of each block of the input image. Therefore, the activity calculated by the activity calculating circuit 6 is given to the quantizer selecting circuit 7 and is used for selecting the quantizer that can achieve the target data generation amount.

【0018】ここで、発生データ量の予測はブロック毎
に行われるので、発生データ量の制御は1フレーム以下
の短い単位で行うことが可能で、例えば数ブロックとい
う短い単位での設定も可能である。例えば100ブロッ
ク単位で符号化データ量を一定にしようとした場合に
は、対象とする100ブロックについて各ブロックのア
クティビティを予め設定された全ての量子化ステップに
関して求め、量子化ステップ毎のデータ発生量を予測
し、所定のデータ量以下となる量子化ステップの組合せ
の内、データ発生量が最大になるものを選択する。
Since the prediction of the generated data amount is performed for each block, the generated data amount can be controlled in a short unit of one frame or less, and can be set in a short unit of, for example, several blocks. is there. For example, when trying to make the encoded data amount constant in units of 100 blocks, the activity of each block is obtained for all 100 quantization blocks set in advance, and the data generation amount for each quantization step is calculated. From among the combinations of quantization steps that result in a predetermined data amount or less, the one that maximizes the data generation amount is selected.

【0019】直交変換器2の出力は、上記のように発生
データ量予測のために非零係数計数回路3および標準偏
差算出回路4に与えられるとともに、遅延回路5にも入
力される。遅延回路5は上述の過程で発生データ量を予
測したのち、量子化ステップを決定するまでの時間遅れ
を補償するもので、量子化ステップが決まるまでの時間
分だけ量子化器8に入力されるデータを遅延する。上記
の100ブロック単位で制御を行う例では少なくとも1
00ブロック分の遅延が必要となる。遅延回路5の出力
は、量子化器選択回路7で選択された量子化器8で量子
化された後、可変長符号化器9で可変長符号に置き換え
られる。可変長符号器9の出力は一旦、バッファ10に
蓄積された後、一定のレートで読みだされ、伝送すべき
符号として、出力端子12から出力される。
The output of the orthogonal transformer 2 is supplied to the non-zero coefficient counting circuit 3 and the standard deviation calculating circuit 4 for predicting the generated data amount as described above, and is also input to the delay circuit 5. The delay circuit 5 compensates for the time delay until the quantization step is determined after predicting the generated data amount in the above process, and is input to the quantizer 8 for the time until the quantization step is determined. Delay the data. In the above example of performing control in 100 block units, at least 1
A delay of 00 blocks is required. The output of the delay circuit 5 is quantized by the quantizer 8 selected by the quantizer selection circuit 7, and then replaced by a variable-length code by the variable-length encoder 9. The output of the variable-length encoder 9 is temporarily stored in the buffer 10, then read at a constant rate, and output from the output terminal 12 as a code to be transmitted.

【0020】なお、上記実施例1では、一つの入力信号
を対象として説明したが、たとえば、輝度信号と二つの
色信号から一つの映像信号が構成されている場合には、
それぞれの信号に対して図1の構成を適用してもよい
し、また、輝度信号と色信号を時間軸上で多重して、図
1の構成の入力信号としてもよい。
In the first embodiment described above, one input signal has been described. However, for example, when one video signal is composed of a luminance signal and two color signals,
The configuration of FIG. 1 may be applied to each signal, or the luminance signal and the chrominance signal may be multiplexed on the time axis and used as the input signal of the configuration of FIG.

【0021】上記の構成を例えばディジタルVTRに適
用した場合には、図1中の映像信号出力端子から出力さ
れるデータを誤り訂正符号等のデータを付加したのち、
テープに磁気記録される。図2にディジタルVTRの信
号処理全体のブロック回路図を示す。図2において、4
1は入力映像信号(輝度信号Yおよび色信号U,V)を
ディジタル信号に変換するA/D変換器、42は高能率
符号化エンコーダ、43は誤り訂正エンコーダ、44は
変調器、45は信号を磁気テープ上に記録および再生を
行なう磁気記録再生システム、46は復調器、47は復
調された信号に含まれる時間軸変動成分を取り除くため
の時間軸補正装置、48は誤り訂正デコーダ、49は高
能率符号化デコーダ、50はディジタル信号をアナログ
再生信号に変換するD/A変換器である。
When the above configuration is applied to, for example, a digital VTR, after data such as an error correction code is added to the data output from the video signal output terminal in FIG.
Magnetically recorded on tape. FIG. 2 shows a block circuit diagram of the entire signal processing of the digital VTR. In FIG. 2, 4
1 is an A / D converter for converting an input video signal (luminance signal Y and chrominance signals U, V) into a digital signal, 42 is a high efficiency coding encoder, 43 is an error correction encoder, 44 is a modulator, and 45 is a signal Is a magnetic recording / reproducing system for recording and reproducing data on a magnetic tape, 46 is a demodulator, 47 is a time axis correction device for removing time axis fluctuation components contained in the demodulated signal, 48 is an error correction decoder, and 49 is A high-efficiency coding decoder, 50 is a D / A converter for converting a digital signal into an analog reproduction signal.

【0022】図1に示した実施例1の映像信号符号化装
置は、図2中の高能率符号化エンコーダ42に相当して
いる。高能率符号化エンコーダ42の出力は、誤り訂正
エンコーダ43において誤り訂正符号が付加された後、
変調器44で記録信号のビットストリームに変換され、
磁気テープ上に記録される。ディジタルVTRでは一般
に、1画面(1フレーム)の信号が図3に示すように複
数本のトラックに記録される。一本のトラックにはあら
かじめ与えられた量のデータが記録されことになるが、
実施例1の映像信号符号化装置を用いれば1フレーム以
下の単位で符号量が一定になるように制御が行われ、例
えば、1トラックに記録される映像の領域が固定され
る。
The video signal coding apparatus according to the first embodiment shown in FIG. 1 corresponds to the high efficiency coding encoder 42 shown in FIG. The output of the high-efficiency encoding encoder 42 is, after the error correction code is added in the error correction encoder 43,
It is converted into a bit stream of the recording signal by the modulator 44,
Recorded on magnetic tape. In a digital VTR, a signal for one screen (one frame) is generally recorded on a plurality of tracks as shown in FIG. A given amount of data will be recorded on one track,
If the video signal coding apparatus of the first embodiment is used, control is performed so that the code amount is constant in units of one frame or less, and, for example, the area of the video recorded on one track is fixed.

【0023】ディジタルVTRでは、スピードサーチ等
の特殊再生モードが導入される。例えば、フォワードス
ピードサーチ(順方向高速再生)時には、テープ上を走
査するヘッドの軌跡が通常再生時とは異なり、図3中に
破線で示したような軌跡となる。このときヘッドがトラ
ックを横切るたびに各トラックからとびとびのデータが
読みだされる。読みだされたデータは画面上の位置との
対応関係に従って再生映像信号の一部として用いられ
る。読みだされたデータと画面上の位置関係は一般には
ヘッドとテープの位置関係によって特定されるが、この
発明に係る符号化装置によれば、各トラックに記録され
た信号と画面上の位置の対応が明確となるので、読み出
された信号を画面上のどの位置に挿入するかを決定でき
る。さらに1トラック以下の単位で符号量制御を行え
ば、より明確に読み出された信号と画面上の位置関係を
特定できる。このように特殊再生を容易にするためには
短い時間間隔で発生符号量を一定にすることが望まれ
る。
In the digital VTR, a special reproduction mode such as speed search is introduced. For example, in the forward speed search (forward direction high speed reproduction), the locus of the head that scans the tape is different from that in the normal reproduction, and becomes the locus shown by the broken line in FIG. At this time, each time the head crosses a track, discrete data is read from each track. The read data is used as part of the reproduced video signal according to the correspondence with the position on the screen. The positional relationship between the read data and the screen is generally specified by the positional relationship between the head and the tape. According to the encoding device of the present invention, the signal recorded on each track and the position on the screen are compared. Since the correspondence becomes clear, it is possible to determine at which position on the screen the read signal is to be inserted. Furthermore, if the code amount is controlled in units of one track or less, the positional relationship between the read signal and the screen can be specified more clearly. As described above, in order to facilitate special reproduction, it is desired to keep the generated code amount constant at short time intervals.

【0024】実施例2.図4は、この発明の実施例2の
ブロック回路図で、図1と同一符号はそれぞれ同一、ま
たは相当部分を示しており、13は第一の量子化器、1
4は第二の量子化器、15は第一の可変長符号器、16
は第二の可変長符号器、17は第一のバッファ回路、1
8は第二のバッファ回路、19は第一のバッファ回路1
7と第二のバッファ回路18のいずれかの出力を選択す
るデータ選択回路、20は第一,第二のバッファ回路1
7,18に蓄えられたブロック毎のデータ量を監視し、
ブロック毎に第一のバッファ回路17または第二のバッ
ファ回路18の出力をデータ選択回路19で選択するた
めの信号を生成するブロック選択信号発生回路である。
図4において、第一の量子化器13,第二の量子化器1
4および第一の可変長符号器15,第二の可変長符号器
16、また、第一のバッファ回路17,第二のバッファ
回路18のいずれもそれぞれ同等の装置が用いられる。
Example 2. FIG. 4 is a block circuit diagram of a second embodiment of the present invention, in which the same reference numerals as those in FIG. 1 denote the same or corresponding portions, and 13 denotes a first quantizer, 1
4 is a second quantizer, 15 is a first variable length encoder, 16
Is a second variable length encoder, 17 is a first buffer circuit, 1
8 is the second buffer circuit, 19 is the first buffer circuit 1
7 and the second buffer circuit 18, a data selection circuit for selecting one of the outputs, 20 is the first and second buffer circuits 1
Monitor the amount of data for each block stored in 7, 18,
The block selection signal generation circuit generates a signal for selecting the output of the first buffer circuit 17 or the second buffer circuit 18 by the data selection circuit 19 for each block.
In FIG. 4, the first quantizer 13 and the second quantizer 1
4 and the first variable length coder 15, the second variable length coder 16, and the first buffer circuit 17 and the second buffer circuit 18 are equivalent devices.

【0025】次に、実施例2の動作を説明する。入力映
像信号は、図1に示す実施例1と同様に、ブロック化、
直交変換が行われ、各ブロックについて非零係数の個
数、標準偏差からアクティビティを求める。この時、量
子化器選択回路7ではアクティビティから目標とするデ
ータ発生量を上回るデータのうち最小の値となる第一の
量子化ステップを決定し、当該量子化ステップで量子化
するよう第一の量子化器13に信号をおくるとともに、
目標とするデータ発生量を下回るデータ量のうち最大の
値となる第二の量子化ステップを求め、第二の量子化ス
テップで量子化するよう第二の量子化器14に信号を送
る。ここで、データ量制御を行う単位、たとえば、上記
の例では連続する100ブロックに対しては同一の量子
化ステップを用いるものと仮定する。
Next, the operation of the second embodiment will be described. The input video signal is divided into blocks as in the first embodiment shown in FIG.
Orthogonal transformation is performed and the activity is calculated from the number of non-zero coefficients and standard deviation for each block. At this time, the quantizer selection circuit 7 determines the first quantization step which becomes the minimum value of the data exceeding the target data generation amount from the activity, and the first quantization step is performed so as to perform the quantization at the quantization step. While sending the signal to the quantizer 13,
The second quantizing step that has the maximum value of the data amount that is less than the target data generation amount is obtained, and a signal is sent to the second quantizer 14 so as to perform the quantization in the second quantizing step. Here, it is assumed that the same quantization step is used for a unit for performing data amount control, for example, 100 consecutive blocks in the above example.

【0026】第一の量子化器13の出力は第一の可変長
符号器15で可変長符号化されたのち、第一のバッファ
回路17に蓄えられ、第二の量子化器14の出力は第二
の可変長符号器16で量子化された後、第二のバッファ
回路18に蓄えられる。このとき、予測が大きく外れな
い限り、第一のバッファ回路17に蓄えられたデータ量
は、目標データ量を越えており、第二のバッファ回路1
8に蓄えられたデータ量は目標データ量を下回っている
はずである。そこで、ブロック選択信号発生回路20で
は、第一のバッファ回路17と第二のバッファ回路18
に蓄えられたデータ量をブロック毎に監視し、データ制
御の単位で目標データ量以下でもっとも目標データ量に
近くなるように、ブロック毎に第一のバッファ回路17
または第二のバッファ回路18に蓄えられたデータを選
択すべくデータ選択回路19に対し制御信号をおくる。
この時選択方法としてはさまざまな方法が考えられる
が、例えば以下に示すようにすればよい。
The output of the first quantizer 13 is variable-length coded by the first variable-length encoder 15 and then stored in the first buffer circuit 17, and the output of the second quantizer 14 is After being quantized by the second variable length encoder 16, it is stored in the second buffer circuit 18. At this time, unless the prediction largely deviates, the data amount stored in the first buffer circuit 17 exceeds the target data amount, and the second buffer circuit 1
The amount of data stored in 8 should be below the target amount of data. Therefore, in the block selection signal generation circuit 20, the first buffer circuit 17 and the second buffer circuit 18
The amount of data stored in each block is monitored for each block, and the first buffer circuit 17 is provided for each block so that the amount of data is smaller than or equal to the target data amount in units of data control.
Alternatively, a control signal is sent to the data selection circuit 19 to select the data stored in the second buffer circuit 18.
At this time, various methods are conceivable as the selection method, but for example, the following method may be adopted.

【0027】まず、第一のバッファ回路17に蓄えられ
た総データ量を求める。このデータ量は一般に目標デー
タ量を超えているはずである。そこで、第一のバッファ
回路17に蓄えらたデータの内、アクティビティが大き
いブロックから順次、第二のバッファ回路18に蓄えら
れたデータに置き換えてゆき、合計データ量が目標デー
タ量より小さくなるブロックの組合せを求める。データ
選択回路19はこの組合せにしたがって第一のバッファ
回路17の内容と第二のバッファ回路18の内容とをブ
ロック毎に選択して出力する。このように、符号化済み
のデータを選択することによって出力データ列を形成す
るので、データを確実に一定量に抑えるべく制御を行う
ことが出来る。加えて、アクティビティの大きいブロッ
ク程画面上での劣化が目立たないと考えられるため、上
述のようにアクティビティの大きいブロックから、順次
データ量の削減を図ることは画質面からも望ましいと考
えられる。
First, the total amount of data stored in the first buffer circuit 17 is calculated. This amount of data should generally exceed the target amount of data. Therefore, in the data stored in the first buffer circuit 17, the blocks having the largest activity are sequentially replaced with the data stored in the second buffer circuit 18, and the total data amount becomes smaller than the target data amount. The combination of. The data selection circuit 19 selects the contents of the first buffer circuit 17 and the contents of the second buffer circuit 18 for each block according to this combination, and outputs the selected contents. In this way, since the output data string is formed by selecting the coded data, it is possible to perform control so as to reliably suppress the data to a fixed amount. In addition, since it is considered that deterioration of the screen is less noticeable for blocks with larger activity, it is considered desirable to reduce the amount of data sequentially from blocks with large activity as described above in terms of image quality.

【0028】[0028]

【発明の効果】以上のように、この発明によれば直交変
換後の変換係数のブロック毎の標準偏差と予め定めた複
数個の量子化器で量子化した際に生じる非零の係数の数
を線形結合することによって求めたアクティビティに基
づきデータ発生量を予測して量子化ステップサイズを定
めるように構成したので、1フレーム以下の短い期間を
対象としても一定の発生データ量に制御することが出来
る。
As described above, according to the present invention, the standard deviation of the transform coefficient after orthogonal transform for each block and the number of non-zero coefficients generated when quantized by a plurality of predetermined quantizers. Since it is configured to predict the data generation amount based on the activity obtained by linearly combining, and determine the quantization step size, it is possible to control the generated data amount to a constant amount even for a short period of one frame or less. I can.

【0029】さらに、予測によって定めた複数個の量子
化器で量子化、可変長符号化したのち、各ブロックのア
クティビティにしたがってデータを選択して出力するよ
うに構成することによって発生データ量を精度良く制御
できるとともに、再生画質も考慮したブロック毎の発生
データ量の割当を行うことが出来る。
Furthermore, after quantizing and variable-length coding by a plurality of quantizers determined by prediction, the data is selected and output according to the activity of each block. In addition to good control, the amount of generated data for each block can be assigned in consideration of reproduction image quality.

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

【図1】この発明の実施例1の画像符号化装置のブロッ
ク回路図である。
FIG. 1 is a block circuit diagram of an image coding apparatus according to a first embodiment of the present invention.

【図2】ディジタルVTRの構成の一例を示すブロック
回路図である。
FIG. 2 is a block circuit diagram showing an example of the configuration of a digital VTR.

【図3】ディジタルVTRのテープ上のトラックパター
ンを示す図である。
FIG. 3 is a diagram showing a track pattern on a tape of a digital VTR.

【図4】この発明の実施例2の画像符号化装置のブロッ
ク回路図である。
FIG. 4 is a block circuit diagram of an image coding apparatus according to a second embodiment of the present invention.

【図5】従来の画像符号化装置のブロック回路図であ
る。
FIG. 5 is a block circuit diagram of a conventional image encoding device.

【図6】1ブロック内のデータを走査する場合の走査順
序を示す図である。
FIG. 6 is a diagram showing a scanning order when scanning data in one block.

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

1 ブロック化回路 2 直交変換器 3 非零係数計数回路 4 標準偏差算出回路 6 アクティビティ算出回路 7 量子化器選択回路 8 量子化器 9 可変長符号器 13 量子化器 14 量子化器 15 可変長符号器 16 可変長符号器 19 データ選択回路 20 ブロック選択信号発生回路 1 Blocking circuit 2 Orthogonal transformer 3 Non-zero coefficient counting circuit 4 Standard deviation calculation circuit 6 Activity calculation circuit 7 Quantizer selection circuit 8 Quantizer 9 Variable length encoder 13 Quantizer 14 Quantizer 15 Variable length code 16 Variable-length encoder 19 Data selection circuit 20 Block selection signal generation circuit

フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 H04N 7/137 Z Continuation of front page (51) Int.Cl. 5 Identification number Office reference number FI Technical indication H04N 7/137 Z

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 映像信号をディジタル化して1画面を互
いに重なりあわない複数のブロックに分割し、直交変換
を施したのち、符号化を行う画像符号化装置において、
各ブロックの標準偏差を算出する標準偏差算出手段と、
あらかじめ定めた複数個の量子化器で量子化した際、各
ブロックで発生する非零の係数を計数する非零係数計数
手段と、前記標準偏差算出手段で求めた標準偏差と前記
非零係数計数手段で計数した1ブロック当りの非零係数
の個数との線形結合をアクティビティとして算出するア
クティビティ算出手段と、アクティビティに応じて量子
化器を選択する量子化器選択手段と、当該量子化器選択
手段によって選択される複数の量子化器と、選択された
量子化器の出力を可変長符号に置き換える可変長符号器
を設けたことを特徴とする画像符号化装置。
1. An image coding apparatus which digitizes a video signal to divide one screen into a plurality of blocks which do not overlap each other, performs orthogonal transformation, and then performs coding,
Standard deviation calculating means for calculating the standard deviation of each block,
Non-zero coefficient counting means for counting non-zero coefficients generated in each block when quantized by a plurality of predetermined quantizers, standard deviation obtained by the standard deviation calculating means, and non-zero coefficient counting Activity calculating means for calculating, as an activity, a linear combination with the number of non-zero coefficients per block counted by the means, quantizer selecting means for selecting a quantizer according to the activity, and the quantizer selecting means. An image coding apparatus comprising: a plurality of quantizers selected by the variable quantizer and a variable length encoder that replaces the output of the selected quantizer with a variable length code.
【請求項2】 請求項1に記載の画像符号化装置におい
て、量子化器とその出力を符号化する可変長符号化器お
よび可変長符号化器の出力を蓄えるバッファをそれぞれ
複数個設けるとともに、ブロック毎に複数個のバッファ
の内いずれの内容を選択するかを決定するブロック選択
信号発生手段と、ブロック選択信号発生手段の出力信号
に応じて前記複数のバッファのデータを選択して出力す
るデータ選択手段とを設けたことを特徴とする画像符号
化装置。
2. The image coding apparatus according to claim 1, wherein a quantizer and a variable length coder for coding the output thereof and a plurality of buffers for storing the outputs of the variable length coder are respectively provided, Block selection signal generating means for deciding which of the plurality of buffers is selected for each block, and data for selecting and outputting the data of the plurality of buffers according to the output signal of the block selection signal generating means An image coding apparatus comprising: a selection unit.
【請求項3】 請求項2に記載の画像符号化装置におい
て、アクティビティの大きなブロックから順次符号量の
少ないバッファのデータを選択することによって符号量
を目標値以下に制御する手段を備えたことを特徴とする
画像符号化装置。
3. The image coding apparatus according to claim 2, further comprising means for controlling the code amount to be equal to or less than a target value by sequentially selecting data in a buffer having a small code amount from a block having a large activity. A characteristic image encoding device.
JP23454092A 1992-04-28 1992-09-02 Image coding device Expired - Fee Related JP3175328B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP23454092A JP3175328B2 (en) 1992-09-02 1992-09-02 Image coding device
US08/048,732 US5440344A (en) 1992-04-28 1993-04-21 Video encoder using adjacent pixel difference for quantizer control
US08/385,987 US5583573A (en) 1992-04-28 1995-02-09 Video encoder and encoding method using intercomparisons of pixel values in selection of appropriation quantization values to yield an amount of encoded data substantialy equal to nominal amount
US08/655,641 US5818529A (en) 1992-04-28 1996-05-30 Variable length coding of video with controlled deletion of codewords

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23454092A JP3175328B2 (en) 1992-09-02 1992-09-02 Image coding device

Publications (2)

Publication Number Publication Date
JPH0686255A true JPH0686255A (en) 1994-03-25
JP3175328B2 JP3175328B2 (en) 2001-06-11

Family

ID=16972632

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23454092A Expired - Fee Related JP3175328B2 (en) 1992-04-28 1992-09-02 Image coding device

Country Status (1)

Country Link
JP (1) JP3175328B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4851191A (en) * 1987-04-10 1989-07-25 Poong San Metal Corporation High strength and wear resistance copper alloys
WO1998010594A1 (en) * 1996-09-06 1998-03-12 Sony Corporation Method and device for encoding data
JP2014003648A (en) * 2013-08-02 2014-01-09 Qualcomm Incorporated Method and device for processing digital video data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4851191A (en) * 1987-04-10 1989-07-25 Poong San Metal Corporation High strength and wear resistance copper alloys
WO1998010594A1 (en) * 1996-09-06 1998-03-12 Sony Corporation Method and device for encoding data
US6348945B1 (en) 1996-09-06 2002-02-19 Sony Corporation Method and device for encoding data
JP2014003648A (en) * 2013-08-02 2014-01-09 Qualcomm Incorporated Method and device for processing digital video data

Also Published As

Publication number Publication date
JP3175328B2 (en) 2001-06-11

Similar Documents

Publication Publication Date Title
EP0987899B1 (en) Adaptive variable-length coding method for video data
EP0660612B1 (en) Image encoding apparatus
EP0677969B1 (en) Moving picture coding method and an apparatus therefor
US7065138B2 (en) Video signal quantizing apparatus and method thereof
KR100904329B1 (en) Image processing device, image processing method, and recording medium
US5291283A (en) Decoding apparatus of a compressed digital video signal
KR100272120B1 (en) Quantization control circuit
JP3175328B2 (en) Image coding device
US6498896B1 (en) Recording apparatus able to control the recording of compressed image pictures so that pictures which are necessary to restore the last pictures are recorded
JPH02141088A (en) Moving image encoding system
KR0145044B1 (en) Code bit fixing method and apparatus thereof
JP3190164B2 (en) Code amount estimation device
JP3446240B2 (en) Encoding method and encoding device
JPH07131789A (en) Picture coding system
JPH01278185A (en) Picture signal encoder
JP2001169290A (en) Method, device and system for encoding moving image
JPH0993604A (en) Recording and reproducing device
JPH06125528A (en) Moving image encoder
JPH07222100A (en) Dynamic image reproduction device
JPH0496487A (en) Orthogonal transform coding device
JPH09307507A (en) Transmission rate converter
JPH05274809A (en) Transmission device of digital picture signal
JPH05316495A (en) Picture data encoding device
JPH05268568A (en) Band compression processing unit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080406

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090406

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees