JPH03247122A - Variable quantizer and video/picture encoder - Google Patents

Variable quantizer and video/picture encoder

Info

Publication number
JPH03247122A
JPH03247122A JP2044952A JP4495290A JPH03247122A JP H03247122 A JPH03247122 A JP H03247122A JP 2044952 A JP2044952 A JP 2044952A JP 4495290 A JP4495290 A JP 4495290A JP H03247122 A JPH03247122 A JP H03247122A
Authority
JP
Japan
Prior art keywords
quantizer
fixed
quantization
signal
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2044952A
Other languages
Japanese (ja)
Inventor
Hitoshi Miyasaka
仁 宮坂
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2044952A priority Critical patent/JPH03247122A/en
Publication of JPH03247122A publication Critical patent/JPH03247122A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To realize high speed processing with the addition of a simple circuit by providing a function converting a negative number into a positive number to a fixed quantizer in a variable quantizer receiving a data in 2's complement expression. CONSTITUTION:A signal transformed by a discrete cosine transformation device 103 for every block is inputted to a fixed quantizer A202, a fixed quantizer B203 and a delay buffer 205 through an input 201. A signal inputted from the input 201 is expressed in 12-bit 2's complement notation. The signal is quantized by the fixed quantizer A202 in a step size of 8. The signal is quantized by the fixed quantizer B203 in a step size of 32. The result of quantization of the fixed quantizers A202, B203 is inputted to a quantization decision device 204, rearranged in a block, subjected zigzag scanning and the code generation quantity in the case of Huffman coding is obtained from a Huffman code quantity table 211.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、映像信号や画像信号の符号化器およびその中
で使われる量子化器に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a video signal or image signal encoder and a quantizer used therein.

[従来の技術] 従来の可変量子化器に於いては、量子化ステップ可変量
子化器の出力を可変長符号化して発生符号量を求め、そ
の結果に応じて量子化ステップを制御していた。制御方
法は、1989年電子情報通信学会秋季全国大会D−4
5に述べられているように、量子化ステップ可変量子化
器の出力を可変長符号化して発生符号量を求めることを
2−3回繰り返して、その結果に応じて量子化ステップ
を制御していた。
[Prior art] In conventional variable quantizers, the output of the variable quantization step quantizer is variable-length encoded to obtain the amount of generated code, and the quantization step is controlled according to the result. . The control method is D-4 of the 1989 Institute of Electronics, Information and Communication Engineers Autumn National Conference.
5, the output of the quantizer with variable quantization step is variable-length coded to obtain the generated code amount, which is repeated 2-3 times, and the quantization step is controlled according to the result. Ta.

[発明が解決しようとする課題] しかし上記の従来技術では、量子化ステップ可変量子化
器の出力を可変長符号化して発生符号量を求めることを
2−3回繰り返す事による遅延時間のために、高速処理
が出来ないという課題を有する。そこで本発明はこのよ
うな課題を解決するもので、その目的とするところは簡
単な回路の追加で高速処理を実現するところにある。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional technology, due to the delay time caused by repeating 2-3 times of variable-length encoding the output of the variable quantization step quantizer to obtain the generated code amount. , which has the problem of not being able to perform high-speed processing. The present invention is intended to solve these problems, and its purpose is to realize high-speed processing by adding a simple circuit.

[課題を解決するための手段] (1)本発明の可変量子化器は、少なくとも1つの量子
化ステップ可変量子化器と、少なくとも2つの固定量子
化器と、固定量子化器の出力から量子化ステップ可変量
子化器の量子化ステップを制御する量子化決定器を有し
、2の補数表現されたデータを入力する可変量子化器に
於て、該固定量子化器に負数を正数に変換する機能をも
たせたことを特徴とする。
[Means for Solving the Problems] (1) The variable quantizer of the present invention includes at least one quantization step variable quantizer, at least two fixed quantizers, and a quantizer from the output of the fixed quantizer. The variable quantizer has a quantization decider that controls the quantization step of the variable step quantizer, and inputs data expressed in two's complement. It is characterized by having a conversion function.

(2)本発明の可変量子化器は、 (1)項記載の少な
くとも2つの固定量子化器の量子化ステップを、それぞ
れ2のべき乗で互いに異なった値に設定し、入力データ
の下位ビットを捨てることにより実現することを特徴と
する。
(2) The variable quantizer of the present invention sets the quantization steps of the at least two fixed quantizers described in (1) to different values by a power of 2, so that the lower bits of the input data are It is characterized by being realized by throwing it away.

(3)本発明の映像/画像符号化器は、 (1)項また
は(2)項記載の可変量子化器を有することを特徴とす
る。
(3) The video/image encoder of the present invention is characterized by having the variable quantizer described in (1) or (2).

[実施例1] 第1図は本発明の可変量子化器104をCCITT、5
GXV(伝送システム及び装置)で標準化が進んでいる
TV電話/会議用px64kbPs(p=1−30)映
像符号化器(H,261CODEC)に適用した場合の
ブロック図である。
[Embodiment 1] FIG. 1 shows a variable quantizer 104 of the present invention in a CCITT, 5
It is a block diagram when applied to a px64 kbPs (p=1-30) video encoder (H, 261 CODEC) for TV telephone/conference, which is being standardized in GXV (transmission system and device).

以下N1図の信号の流れを説明する。映像信号はCIF
 (共通中間フォーマット)で表されており、8ライン
×8画素のブロックと、輝度信号4ブロツクと色差信号
2ブロツクの計6ブロツクより成るマクロブロックに分
けられている。予測は通常フレーム間で行われるため、
符号化コントロール102によりスイッチ109、スイ
ッチ110は第1図に示す通り下側につながっている。
The signal flow in diagram N1 will be explained below. Video signal is CIF
(common intermediate format), and is divided into macroblocks consisting of 8 lines x 8 pixel blocks, 4 blocks of luminance signals, and 2 blocks of color difference signals, a total of 6 blocks. Prediction is usually done between frames, so
Encoding control 102 connects switch 109 and switch 110 to the lower side as shown in FIG.

映像信号はマクロブロック毎に映像信号入力101より
入力される。まず動き補償予測器107に入力され、既
に記録されているlフレーム前の信号より、予測誤差が
最小になるマクロブロックの信号を選びだしく動ベクト
ル検出)、そのマクロブロックの信号が出力される。こ
の信号はループフィルタ108を通った後映像入力信号
との差分が取られる。この映像入力信号と1フレーム前
の動ベクトルで指示されるマクロブロックとの差分信号
は、ブロック毎に離散コサイン変換器103で変換され
る。そして、可変量子化器104で量子化されハフマン
符号化されて符号化結果112より出力される。可変量
子化器104の量子化特性は伝送路の伝送レートに合う
ように適応的に設定される。この方法については第2図
の説明で詳細に述べる。量子化された信号は逆量子化器
105で逆量子化され、逆離散コサイン変換器106で
逆離散コサイン変換された後、動ベクトルで指示される
ブロックの信号をループフィルタ108を通した信号と
加算されて動き補償予測器107に記録される。一方、
最初のフレームやシーンチェンジの時などは、予測はフ
レーム内で行われるため、符号化コントロール102に
よりスイッチ109、スイッチ110は上側につながれ
る。即ち映像信号入力101より入力された信号はその
まま離散コサイン変換器103で変換される。そして、
可変量子化器104で量子化され、さらにハフマン符号
化されて符号化結果112より出力される。量子化され
た信号は逆量子化器105で逆量子化され、逆離散コサ
イン変換器106で逆離散コサイン変換された後、動き
補償予測器107に記録される。
A video signal is input from a video signal input 101 for each macroblock. First, it is input to the motion compensation predictor 107, which selects the signal of the macroblock with the minimum prediction error from the already recorded signal one frame before (motion vector detection), and outputs the signal of that macroblock. . After this signal passes through a loop filter 108, the difference between it and the video input signal is taken. The difference signal between this video input signal and the macroblock indicated by the motion vector of one frame before is converted by a discrete cosine transformer 103 for each block. Then, the variable quantizer 104 performs quantization and Huffman encoding, and the encoded result 112 is output. The quantization characteristic of the variable quantizer 104 is adaptively set to match the transmission rate of the transmission path. This method will be described in detail in the description of FIG. The quantized signal is dequantized by an inverse quantizer 105 and subjected to inverse discrete cosine transform by an inverse discrete cosine transformer 106, and then the signal of the block indicated by the motion vector is converted into a signal passed through a loop filter 108. The sum is added and recorded in the motion compensation predictor 107. on the other hand,
At the first frame or at a scene change, prediction is performed within the frame, so the switches 109 and 110 are connected to the upper side by the encoding control 102. That is, the signal inputted from the video signal input 101 is directly converted by the discrete cosine transformer 103. and,
The signal is quantized by a variable quantizer 104 and further subjected to Huffman encoding, and is output as an encoding result 112. The quantized signal is dequantized by an inverse quantizer 105, subjected to inverse discrete cosine transform by an inverse discrete cosine transformer 106, and then recorded in a motion compensation predictor 107.

第2図は本発明の可変量子化器(第1図の可変量子化器
104)を詳細に示した図である。
FIG. 2 is a diagram showing details of the variable quantizer (variable quantizer 104 in FIG. 1) of the present invention.

まずこの可変量子化器の特性について説明する。First, the characteristics of this variable quantizer will be explained.

ブロック毎に離散コサイン変換された信号が入力され、
量子化されて、第5図の番号順(1−64)にジグザグ
スキャンされた後、ハフマン符号化される。第4図の1
番目の値は、離散コサイン変換前のブロック信号の直流
成分に対応するため量子化ステップ8の固定量子化をす
る。2番目から64番目の値は、離散コサイン変換前の
ブロック信号の交流成分に対応するため量子化ステップ
は2から62の間の偶数値で、マクロブロック単位に可
変としてハブマン符号化後に伝送路の伝送レートに合う
ように制御する。この可変量子化器の特性はデッドゾー
ンも考慮すると第6図のようになる。可変量子化器で最
適な量子化ステップの決め方は、まず2つの量子化ステ
ップで量子化して発生符号量を測定し、式1より定数a
、  bを求める。
A discrete cosine transformed signal is input for each block,
After being quantized and zigzag scanned in the numerical order (1-64) in FIG. 5, it is Huffman encoded. Figure 4 1
The th value corresponds to the DC component of the block signal before discrete cosine transformation, so it is subjected to fixed quantization in quantization step 8. The 2nd to 64th values correspond to the AC components of the block signal before the discrete cosine transform, so the quantization step is an even value between 2 and 62, and is variable for each macroblock. Control to match the transmission rate. The characteristics of this variable quantizer are as shown in FIG. 6, taking into account the dead zone. To determine the optimal quantization step with a variable quantizer, first quantize with two quantization steps, measure the amount of generated code, and then use the constant a from Equation 1.
, find b.

(発生符号IF)=ax log(1量子化ステツプサイズ)+b:式1 そして伝送路に合う発生符号量より最適量子化ステップ
サイズが求まる。
(Generated code IF) = ax log (1 quantization step size) + b: Equation 1 Then, the optimum quantization step size is determined from the generated code amount that matches the transmission path.

以下第2図の信号の流れを説明する。ブロック毎に離散
コサイン変換器103(第1図)で変換された信号は、
入力201を通して固定量子化器A202、固定量子化
器B2O3、及び遅延バッファー205に入力される。
The signal flow in FIG. 2 will be explained below. The signal transformed by the discrete cosine transformer 103 (Fig. 1) for each block is
The signal is input through an input 201 to a fixed quantizer A202, a fixed quantizer B2O3, and a delay buffer 205.

入力201から入力される信号は、12ビツトの2の補
数表示されている。固定量子化器A202ではステップ
サイズ8で量子化される。これは第6図のQUANT=
4に対応している。固定量子化器B2O3ではステップ
サイズ32で量子化される。これは第6図のQUANT
=16に対応している。固定量子化器A202、固定量
子化器B2O3の量子化結果は量子化決定器204に入
力され、それぞれ第5図に示すようにブロック内で並び
変えられ、ジグザグスキャンされる。そして、第5図の
2番目から64番目の値を用いて、ハフマン符号化する
ときの発生符号量をハフマン符号量テーブル211より
求める。ハフマン符号量テーブル211は、入力データ
の絶対値でハフマン符号化後の発生符号量が決まるよう
設計されており、発生符号量は入力データの符号によら
ない。この操作をマクロブロックの中の6個のブロック
について行い、式1から定数a、  bを求める。そし
て伝送路に合う発生符号量を指定することにより最適量
子化ステップサイズが求まる。これを量子化インデック
ス208より出力するとともに、量子化ステップサイズ
212として可変量子化器C206に出力する。遅延バ
ッファー205に入力した信号は、1つのマクロブロッ
クが書き込まれた後、量子化ステップサイズ212が可
変量子化器0206に入力するのを待って、可変量子化
器0206に入力する。可変量子化器0206では、第
5図の1番目のデータは量子化ステップサイズ8で量子
化し、第5図の2番目から64番目のデータは量子化ス
テップサイズ212の値で量子化する。量子化結果は、
ハフマン符号化器214へ出力するとともに、ライン毎
のスキャンに戻して逆量子化器への出力209より出力
する。ハフマン符号化器214では、第5図の1番目の
データはそのまま通し、第5図の2番目から64番目の
データはハフマン符号化して符号化結果207より出力
する。
The signal input from the input 201 is expressed as a 12-bit two's complement number. The fixed quantizer A202 performs quantization with a step size of 8. This is QUANT=
It corresponds to 4. The fixed quantizer B2O3 performs quantization with a step size of 32. This is QUANT in Figure 6
=16. The quantization results of the fixed quantizer A202 and the fixed quantizer B2O3 are input to the quantization determiner 204, rearranged within the block, and zigzag scanned, respectively, as shown in FIG. Then, using the 2nd to 64th values in FIG. 5, the amount of codes generated during Huffman encoding is determined from the Huffman code amount table 211. The Huffman code amount table 211 is designed so that the generated code amount after Huffman encoding is determined by the absolute value of the input data, and the generated code amount does not depend on the code of the input data. This operation is performed for six blocks in the macroblock, and constants a and b are obtained from Equation 1. The optimum quantization step size is then determined by specifying the amount of generated code that matches the transmission path. This is outputted from the quantization index 208 and also outputted as the quantization step size 212 to the variable quantizer C206. After one macroblock is written, the signal input to the delay buffer 205 waits for the quantization step size 212 to be input to the variable quantizer 0206, and then input to the variable quantizer 0206. The variable quantizer 0206 quantizes the first data in FIG. 5 with a quantization step size of 8, and quantizes the second to 64th data in FIG. 5 with a quantization step size of 212. The quantization result is
The signal is output to the Huffman encoder 214, and is returned to line-by-line scanning and output from the output 209 to the inverse quantizer. In the Huffman encoder 214, the first data in FIG. 5 is passed through as is, and the second to 64th data in FIG. 5 are Huffman encoded and output as the encoding result 207.

第3図は本発明の固定量子化器A202の構成を示した
図である。入力データ301は12ビツトの2の補数表
示されており、入力データ301が正の場合は(MSB
=O)、1を加算して12とットデータ302とする。
FIG. 3 is a diagram showing the configuration of the fixed quantizer A202 of the present invention. The input data 301 is expressed as a 12-bit two's complement number, and if the input data 301 is positive, (MSB
=O), 1 is added to obtain 12 and set data 302.

1を加算しているのは第6図の量子化特性に合わせるた
めである。入力データ301が負の場合は(MSB=1
)、入力データ301をビット毎に反転しさらにに2を
加算し12ビツトデータ302とする6反転したデータ
に2を加算しているのは、1を加算して負の入力データ
301の符号を反転するためと、さらに1を加算して第
6図の量子化特性に合わせるためである。次に12ビツ
トデータ302を、LSB側3ビットとMSB側2上2
ビット視して第3図のように8ビツトデータ303とす
る。これは、量子化ステップサイズが8であるためLS
B側3ビットを捨てることにより量子化器を構成できる
事を示している。8ビツトデータ303のMSBを0と
しているのは本方式では符号ビットに意味がないためで
ある。
The reason why 1 is added is to match the quantization characteristics shown in FIG. If the input data 301 is negative (MSB=1
), input data 301 is inverted bit by bit and 2 is added to it to obtain 12-bit data 302. 6 The reason why 2 is added to the inverted data is to add 1 and change the sign of negative input data 301. This is for inverting and also for adding 1 to match the quantization characteristics shown in FIG. Next, the 12-bit data 302 is divided into three bits on the LSB side and two upper bits on the MSB side.
In terms of bits, it is assumed to be 8-bit data 303 as shown in FIG. This is because the quantization step size is 8, so LS
It is shown that a quantizer can be constructed by discarding the 3 bits on the B side. The MSB of the 8-bit data 303 is set to 0 because the sign bit has no meaning in this system.

第4図は本発明の固定量子化器B2O3の構成を示した
図である。入力データ401は12ビツトの2の補数表
示されており、入力データ401が正の場合は(MSB
=O)、1を加算して12ビツトデータ402とする。
FIG. 4 is a diagram showing the configuration of the fixed quantizer B2O3 of the present invention. The input data 401 is expressed as a 12-bit two's complement number, and if the input data 401 is positive, (MSB
=O) and 1 is added to obtain 12-bit data 402.

1を加算しているのは第6図の量子化特性に合わせるた
めである。入カデータ401が負の場合は(MSB=1
)、入力データ401をビット毎に反転しさらにに2を
加算し12ビツトデータ402とする。反転したデータ
に2を加算しているのは、1を加算して負の入力データ
401の符号を反転するためと、さらに1を加算して第
6図の量子化特性に合わせるためである。次に12とッ
トデータ402を、LSB側5ビットとMSB側1ビッ
トを無視して第4図のように8ビツトデータ403とす
る。これは、量子化ステップサイズが32であるためL
SB側5ビットを捨てることにより量子化器を構成でき
る事を示している。8ビツトデータ403のMSB側2
ビットをOとしているのは本方式では符号ビットに意味
がないためである。
The reason why 1 is added is to match the quantization characteristics shown in FIG. If the input data 401 is negative (MSB=1
), input data 401 is inverted bit by bit, and 2 is added to obtain 12-bit data 402. The reason why 2 is added to the inverted data is to invert the sign of the negative input data 401 by adding 1, and to match the quantization characteristics shown in FIG. 6 by adding 1. Next, the 12-bit data 402 is converted into 8-bit data 403 as shown in FIG. 4, ignoring the 5 bits on the LSB side and the 1 bit on the MSB side. This is because the quantization step size is 32, so L
It is shown that a quantizer can be constructed by discarding 5 bits on the SB side. MSB side 2 of 8-bit data 403
The reason why the bit is set to O is because the sign bit has no meaning in this method.

なお、第3図の入力データ301から12ビツトデータ
302までの回路と第4図の入力データ401から12
ビツトデータ402までの回路は、同じ構成であるため
共通化出来る。
Note that the circuit for input data 301 to 12 bit data 302 in FIG. 3 and the input data 401 to 12 bit data in FIG.
Since the circuits up to bit data 402 have the same configuration, they can be shared.

[実施例2] 実施例1の映像符号化器(第1図)に於ける可変量子化
器104の構成を第7図の構成としたものである。第2
図と比べると、固定量子化器D701が追加され量子化
決定器204が量子化決定器702に変更されているが
、他は同じである。
[Embodiment 2] The configuration of the variable quantizer 104 in the video encoder (FIG. 1) of Embodiment 1 is changed to the configuration shown in FIG. 7. Second
Compared to the figure, a fixed quantizer D701 is added and the quantization decider 204 is changed to a quantization decider 702, but the other things are the same.

入力201から入力される信号は、12ビツトの2の補
数表示されている。固定量子化器A202ではステップ
サイズ8で量子化される。これは第6図のQUANT=
4に対応している。固定量子化器B2O3ではステップ
サイズ32で量子化される。これは第6図のQUANT
=16に対応している。固定量子化器D701ではステ
ップサイズ16で量子化される。これは第6図のQUA
NT=8に対応している。固定量子化器A202、固定
量子化器B2O3、固定量子化器D701の量子化結果
は量子化決定器702に入力され、それぞれ第5図に示
すようにブロック内で並び変えられ、ジグザグスキャン
される0次に第5図の2番目から64番目の値をハフマ
ン符号化するときの発生符号量をハフマン符号量テーブ
ル211より求める。この操作をマクロブロックの中の
6個のブロックについて行い、式1から定数a、  b
を求める。実施例2の場合は測定点が3点となるため、
実施例1と比べて量子化ステップサイズの最適値は精度
良く求まるが、演算時間は増加する。
The signal input from the input 201 is expressed as a 12-bit two's complement number. The fixed quantizer A202 performs quantization with a step size of 8. This is QUANT=
It corresponds to 4. The fixed quantizer B2O3 performs quantization with a step size of 32. This is QUANT in Figure 6
=16. The fixed quantizer D701 performs quantization with a step size of 16. This is the QUA in Figure 6.
It corresponds to NT=8. The quantization results of the fixed quantizer A202, fixed quantizer B2O3, and fixed quantizer D701 are input to the quantization determiner 702, rearranged within the block, and zigzag scanned, respectively, as shown in FIG. The amount of code generated when the 2nd to 64th values in FIG. 5 are Huffman encoded is determined from the Huffman code amount table 211. This operation is performed for 6 blocks in the macroblock, and from Equation 1, constants a and b
seek. In the case of Example 2, there are three measurement points, so
Although the optimum value of the quantization step size can be determined with higher accuracy than in the first embodiment, the calculation time increases.

求めた最適量子化ステップサイズを量子化インデックス
208より出力し、それ以降の動作は実施例1の説明と
同じである。
The obtained optimal quantization step size is output from the quantization index 208, and the subsequent operations are the same as described in the first embodiment.

第8図は本発明の固定量子化器D701の構成を示した
図である。入力データ801は12ビツトの2の補数表
示されており、入力データ801が正の場合は(MSB
=O)、1を加算して12ビツトデータ802とする。
FIG. 8 is a diagram showing the configuration of the fixed quantizer D701 of the present invention. Input data 801 is expressed as a 12-bit two's complement number, and if input data 801 is positive, (MSB
=O) and 1 is added to obtain 12-bit data 802.

1を加算しているのは第6図の量子化特性に合わせるた
めである。入力データ801が負の場合は(MSB=1
)、入力データ801をビット毎に反転しさらにに2を
加算し12ビツトデータ802とする0反転したデータ
に2を加算しているのは、1を加算して負の入力データ
801の符号を反転するためと、さらに1を加算して第
6図の量子化特性に合わせるためである。次に12ビツ
トデータ802を、LSB側4ビットとMSB側1ビッ
トを無視して第8図のように8ビツトデータ803とす
る。これは、量子化ステップサイズが16であるためL
SB側4ビットを捨てることにより量子化器を構成でき
る事を示している。8ビツトデータ803のMSBを0
としているのは本方式では符号ビットに意味がないため
である。
The reason why 1 is added is to match the quantization characteristics shown in FIG. If the input data 801 is negative (MSB=1
), the input data 801 is inverted bit by bit and 2 is added to it to obtain 12-bit data 802.The reason why 2 is added to the 0-inverted data is to add 1 and change the sign of the negative input data 801. This is for inverting and also for adding 1 to match the quantization characteristics shown in FIG. Next, the 12-bit data 802 is converted into 8-bit data 803 as shown in FIG. 8 by ignoring the 4 bits on the LSB side and the 1 bit on the MSB side. This is because the quantization step size is 16, so L
It is shown that a quantizer can be constructed by discarding the 4 bits on the SB side. The MSB of 8-bit data 803 is set to 0.
This is because the sign bit has no meaning in this method.

なお、第3図の入力データ301から12ビツトデータ
302までの回路と第4図の入力データ401から12
ビツトデータ402までの回路と第8図の入力データ8
01から12ビツトデータ802までの回路は、同じ構
成であるため共通化出来る。
Note that the circuit for input data 301 to 12 bit data 302 in FIG. 3 and the input data 401 to 12 bit data in FIG.
Circuit up to bit data 402 and input data 8 in Figure 8
Since the circuits from 01 to 12-bit data 802 have the same configuration, they can be shared.

[発明の効果] 以上述べたように本発明によれば、2の補数表現された
データを量子化ステップサイズ固定で量子化する際、割
り算操作無しで、LSB側ビットを捨てることにより実
現できるため、高速処理を簡単な回路で実現するという
効果を有する。
[Effects of the Invention] As described above, according to the present invention, when data expressed in two's complement is quantized with a fixed quantization step size, this can be achieved by discarding the LSB side bits without a division operation. , it has the effect of realizing high-speed processing with a simple circuit.

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

第1図は本発明の映像/画像符号化器の一実施例を示す
ブロック図。 第2図は本発明の可変量子化器の一実施例を示すブロッ
ク図。 第3図は本発明の固定量子化器を示す図。 第4図は本発明の固定量子化器を示す図。 第5図はジグザグスキャンを説明するための図。 第6図は量子化特性を説明するための図。 第7図は本発明の可変量子化器の一実施例を示すブロッ
ク図。 第8図は本発明の固定量子化器を示す図。 101・・・映像信号入力 102・・・符号化コントロール 103・・・離散コサイン変換器 104・・・可変量子化器 105・・・逆量子化器 106・・・逆離散コサイン変換器 107 ・ 108 ・ 109  ・ 110 ・ 111 ・ 112 ・ 201 ・ 202 ・ 203 ・ 204 ・ 205 ・ 206 ・ 207 ・ 208 ・ 209 ・ 211 ・ 212 ・ 214 ・ 301 ・ 302 ・ ・動き補償予測器 ・ループフィルタ ・スイッチ ・スイッチ ・量子化インデックス ・符号化結果 ・入力 ・固定量子化器A ・固定量子化器B ・量子化決定器 ・遅延バッファー ・可変量子化器C ・符号化結果 ・量子化インデックス ・逆量子化器への出力 ・ハフマン符号量テーブル ・量子化ステップサイズ ・ハフマン符号化器 ・入力データ ・12ビツトデータ  03 01 02 03 01 02 01 02 03 ・8ビツトデータ ・入力データ ・12とットデータ ・8ビツトデータ ・固定量子化器D ・量子化決定器 ・入力データ ・12ビツトデータ 、8ビツトデータ 以上
FIG. 1 is a block diagram showing an embodiment of the video/image encoder of the present invention. FIG. 2 is a block diagram showing an embodiment of the variable quantizer of the present invention. FIG. 3 is a diagram showing a fixed quantizer of the present invention. FIG. 4 is a diagram showing a fixed quantizer of the present invention. FIG. 5 is a diagram for explaining zigzag scanning. FIG. 6 is a diagram for explaining quantization characteristics. FIG. 7 is a block diagram showing an embodiment of the variable quantizer of the present invention. FIG. 8 is a diagram showing a fixed quantizer of the present invention. 101...Video signal input 102...Encoding control 103...Discrete cosine transformer 104...Variable quantizer 105...Inverse quantizer 106...Inverse discrete cosine transformer 107 and 108・ 109 ・ 110 ・ 111 ・ 112 ・ 201 ・ 202 ・ 203 ・ 204 ・ 205 ・ 206 ・ 207 ・ 208 ・ 209 ・ 211 ・ 212 ・ 214 ・ 301 ・ 302 ・ ・Motion compensation predictor・Loop filter・Switch・switch/ Quantization index, encoding result, input, fixed quantizer A, fixed quantizer B, quantization decider, delay buffer, variable quantizer C, encoding result, quantization index, to inverse quantizer Output, Huffman code amount table, quantization step size, Huffman encoder, input data, 12 bit data 03 01 02 03 01 02 01 02 03, 8 bit data, input data, 12 bit data, 8 bit data, fixed quantum Converter D ・Quantization decider ・Input data ・12 bit data, 8 bit data or more

Claims (3)

【特許請求の範囲】[Claims] (1)少なくとも1つの量子化ステップ可変量子化器と
、少なくとも2つの固定量子化器と、該固定量子化器の
出力から該量子化ステップ可変量子化器の量子化ステッ
プを制御する量子化決定器を有し、2の補数表現された
データを入力する可変量子化器に於て、該固定量子化器
に負数を正数に変換する機能をもたせたことを特徴とす
る可変量子化器。
(1) at least one quantization step variable quantizer, at least two fixed quantizers, and a quantization decision that controls the quantization step of the quantization step variable quantizer from the output of the fixed quantizer; 1. A variable quantizer having a fixed quantizer and inputting data expressed in two's complement, characterized in that the fixed quantizer is provided with a function of converting a negative number into a positive number.
(2)請求項1記載の少なくとも2つの固定量子化器の
量子化ステップは、それぞれ2のべき乗で互いに異なっ
た値に設定することを特徴とし、入力データの下位ビッ
トを捨てることにより実現することを特徴とする請求項
1記載の可変量子化器。
(2) The quantization step of the at least two fixed quantizers according to claim 1 is characterized in that each set is set to a different value by a power of 2, and is realized by discarding lower bits of the input data. The variable quantizer according to claim 1, characterized in that:
(3)請求項1または請求項2記載の可変量子化器を有
することを特徴とする映像/画像符号化器。
(3) A video/image encoder comprising the variable quantizer according to claim 1 or 2.
JP2044952A 1990-02-26 1990-02-26 Variable quantizer and video/picture encoder Pending JPH03247122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2044952A JPH03247122A (en) 1990-02-26 1990-02-26 Variable quantizer and video/picture encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2044952A JPH03247122A (en) 1990-02-26 1990-02-26 Variable quantizer and video/picture encoder

Publications (1)

Publication Number Publication Date
JPH03247122A true JPH03247122A (en) 1991-11-05

Family

ID=12705826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2044952A Pending JPH03247122A (en) 1990-02-26 1990-02-26 Variable quantizer and video/picture encoder

Country Status (1)

Country Link
JP (1) JPH03247122A (en)

Similar Documents

Publication Publication Date Title
JP2000125297A (en) Method for coding and decoding consecutive image
KR940008487A (en) Image Coder Using Adaptive Frame / Field Transform Coding
WO1991003128A1 (en) Control system for encoding image
JPH0313089A (en) Encoder
JP2911682B2 (en) Motion compensation using the minimum number of bits per motion block as a criterion for block matching
JPH06189290A (en) Video signal encoding device using 1d/2d dct
JPH0355987A (en) Reducing apparatus of redundancy in block of digital video data in discrete cosine transformation coding
US5508745A (en) Apparatus for controlling a quantization level to be modified by a motion vector
JPH05347710A (en) Adaptive variable length coding method
JPS6342988B2 (en)
JPH03247122A (en) Variable quantizer and video/picture encoder
JPH03247121A (en) Variable quantizer and video/picture encoder
JPH03247189A (en) Video encoder
JPH0388488A (en) Picture coding system
JPH0595542A (en) Dynamic picture coder-decoder
KR100552345B1 (en) method and apparatus for compressing video image using universal variable length coding
JPS62154987A (en) High-efficiency image encoding system
KR100207380B1 (en) Apparatus for reducing the data in motion picture
JPH09107293A (en) Method and device for controlling code volume
JP2701274B2 (en) High efficiency coding device
JPH0683444B2 (en) Image coding method
JPH05227441A (en) Digital picture signal compression device
JPH03124182A (en) Cell abort compensation picture decoding system
KR100207384B1 (en) Apparatus for decoding intra dc coefficient of video signal decoding system
KR0148155B1 (en) Esc coding apparatus and method of image coding