JPH05160745A - Quantizer - Google Patents

Quantizer

Info

Publication number
JPH05160745A
JPH05160745A JP32442691A JP32442691A JPH05160745A JP H05160745 A JPH05160745 A JP H05160745A JP 32442691 A JP32442691 A JP 32442691A JP 32442691 A JP32442691 A JP 32442691A JP H05160745 A JPH05160745 A JP H05160745A
Authority
JP
Japan
Prior art keywords
quantizer
block
output
constant
quantization
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
JP32442691A
Other languages
Japanese (ja)
Inventor
Wataru Fujikawa
渡 藤川
Hiroyuki Ueyasu
博之 上保
Akiyoshi Tanaka
章喜 田中
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP32442691A priority Critical patent/JPH05160745A/en
Publication of JPH05160745A publication Critical patent/JPH05160745A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a quantizer which hardly causes a non-coding block for a block possibly causing picture quality deterioration if it becomes a non-coding block. CONSTITUTION:A constant (a) is set to a constant number setting device 3, the constant (a) are quantized by a quantizer 5 at the same quantizing width as that of a quantizer 4. On the other hand, a quantizer discrimination device 8 discriminates whether a processed block is a non-coding block or a coding block by monitoring an output of the quantizer 4 to control a selector 9. Then when the processing block is the coding block, the selector 9 selectively outputs an output of the quantizer 4 and when the processing block is the non-coding block, the selector 9 selectively outputs an output of the quantizer 5 to an output terminal 10.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、テレビ電話,テレビ会
議システム,マルチメディアシムテムなどの動画像符号
化装置において、特に直交変換を用いた動画像符号化装
置の量子化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding apparatus such as a videophone, a video conference system, and a multimedia system, and more particularly to a quantizing apparatus for the moving picture coding apparatus using orthogonal transformation.

【0002】[0002]

【従来の技術】近年動画像符号化技術の発達はめざまし
く、国際標準化活動も活発に行なわれており、なかでも
「シー・シー・アイ・テー・テー(CCITT Rec
omendation H.261−Video co
dec for audiovisual servi
ces at p×64kbits/s)」に示されて
いる動画像符号化方式がよく知られている。このような
動画像符号化方式は、aM画素×bNライン(a,b,
M,Nは自然数)単位の動き補償予測により求めたフレ
ーム間差分をM画素×Nラインのブロック単位で離散コ
サイン変換(以下、離散コサイン変換をDCTと略記す
る)し、さらに符号化ビットレートや伝送バッファ内の
バッファ残留量等から量子化幅を決定し、直線量子化器
でDCT係数を量子化している。以下、量子化後のDC
T係数の値を量子化幅と係数との積に分解したときの係
数を、整数に丸めた値を量子化インデックスと記す。
2. Description of the Related Art In recent years, the development of moving picture coding technology has been remarkable, and international standardization activities have been actively carried out. Among them, "CCIT Rec (CCITT Rec
orientation H.M. 261-Video co
dec for audiovisual service
ces at p × 64 kbits / s) ”is well known. Such a moving image coding method is based on aM pixels × bN lines (a, b,
(M and N are natural numbers) The inter-frame difference obtained by motion compensation prediction in units of M pixels × N lines is subjected to discrete cosine transform (hereinafter, discrete cosine transform is abbreviated as DCT), and the coding bit rate and The quantization width is determined from the buffer remaining amount in the transmission buffer, and the DCT coefficient is quantized by the linear quantizer. Below, DC after quantization
The coefficient when the value of the T coefficient is decomposed into the product of the quantization width and the coefficient is rounded to an integer and is referred to as a quantization index.

【0003】さらに従来の動画像符号化方式では、量子
化インデックスをジグザグスキャンの順序で走査して、
0でない量子化インデックスとそれに先行する0のラン
長の組合せを可変長符号化し、さらに属性情報を付加し
て伝送すべき符号列を生成している。属性情報として
は、フレーム内/フレーム間符号化の区別,動き補償予
測の有無,符号化/非符号化ブロックの区別,動ベクト
ル,量子化幅などがある。量子化インデックスが全て0
のブロックを非符号化ブロックとよび、非符号化ブロッ
クでないブロックを符号化ブロックと呼んでいるが、符
号化/非符号化ブロックの区別は、非符号化ブロックを
復号化するときに、動き補償予測に用いたフレームの対
応する位置のブロック画像をそのまま当該ブロックの画
像として用いることができるように伝送される。
Further, in the conventional moving image coding system, the quantization index is scanned in a zigzag scan order,
A combination of a non-zero quantization index and a preceding run length of 0 is variable-length coded, and attribute information is further added to generate a code string to be transmitted. The attribute information includes discrimination between intra-frame / inter-frame coding, presence / absence of motion compensation prediction, discrimination between coded / non-coded blocks, motion vector, and quantization width. All quantization indexes are 0
Blocks are called non-coded blocks, and blocks that are not non-coded blocks are called coded blocks. The distinction between coded / non-coded blocks is that motion compensation is performed when the non-coded blocks are decoded. The block image at the corresponding position of the frame used for prediction is transmitted so that it can be used as it is as the image of the block.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、背景と
の輝度変化が小さい物体が動いている部位、あるいは細
かい模様を持つ物体が動いている部位等では、フレーム
間差分が小さく、したがってブロック内の全てのDCT
係数が量子化幅の値に比べて大きくない場合がある。こ
のような場合には、上記の従来技術では、当該ブロック
が非符号化ブロックになり画像の動きが保存されないた
め、物体が欠落したり存在しない物体が現れたりして画
像品質が低下する、という課題を有していた。
However, the difference between frames is small in a region in which an object having a small change in luminance from the background is moving, or a region in which an object having a fine pattern is moving, and therefore all of the blocks in the block are DCT
The coefficient may not be larger than the value of the quantization width. In such a case, in the above-mentioned conventional technique, since the block becomes an uncoded block and the motion of the image is not preserved, the image quality is deteriorated due to missing objects or appearance of non-existing objects. Had challenges.

【0005】本発明は上記従来の課題を解決するもの
で、非符号化ブロックとなることが画質劣化につながる
部位で、非符号化ブロックになりにくい量子化装置を提
供することを目的とする。
The present invention solves the above-mentioned conventional problems, and an object of the present invention is to provide a quantizer which is less likely to become a non-encoded block in which a non-encoded block leads to image quality deterioration.

【0006】[0006]

【課題を解決するための手段】この目的を達成するため
に本発明の量子化手段は、従来技術と同等の量子化特性
を持つ第1、第2の量子化器と、第2の量子化器に入力
する量子化幅の値を設定する定数設定器と、第1の量子
化器の出力を監視する量子化判定器を有している。
In order to achieve this object, the quantizing means of the present invention comprises first and second quantizers having the same quantizing characteristics as those of the prior art, and a second quantizing means. It has a constant setter for setting the value of the quantization width input to the input unit and a quantizer decision unit for monitoring the output of the first quantizer.

【0007】[0007]

【作用】この構成により、量子化判定器で非符号化ブロ
ックを検出し、非符号化ブロックの場合には第2の量子
化器で精細に量子化することにより、画質劣化につなが
る非符号化ブロック減少させることができる。
With this configuration, the non-coding block is detected by the quantization decision unit, and in the case of the non-coding block, fine quantization is performed by the second quantizer, so that the non-coding block leading to image quality deterioration You can reduce the block.

【0008】[0008]

【実施例】以下本発明の実施例について、図面を参照し
ながら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0009】図1は、本発明による一実施例の量子化装
置のブロック構成図である。図1において、1はDCT
係数を入力する入力端子、2は量子化幅を入力する入力
端子、3は予め定めた量子化幅の値を設定する定数設定
器、4は第1の量子化器、5は第2の量子化器、6は第
1の量子化器4の出力を入力とする第1のバッファ、7
は第2の量子化器5の出力を入力とする第2のバッフ
ァ、8は第1の量子化器4の出力を入力とする量子化判
定器、9は第1及び第2の量子化器の出力を入力とし量
子化判定器8の出力を制御信号入力とするセレクタ、1
0はセレクタ9の出力を外部に出力する出力端子、11
は量子化判定器8の判定結果を外部に出力する出力端
子、12は定数設定器3の出力を外部に出力する出力端
子である。
FIG. 1 is a block diagram of a quantizer according to an embodiment of the present invention. In FIG. 1, 1 is DCT
An input terminal for inputting a coefficient, 2 an input terminal for inputting a quantization width, 3 a constant setter for setting a value of a predetermined quantization width, 4 a first quantizer, 5 a second quantum The first quantizer 4, the first buffer 7 having the output of the first quantizer 4 as an input,
Is a second buffer having the output of the second quantizer 5 as an input, 8 is a quantization decision unit having the output of the first quantizer 4 as an input, and 9 is the first and second quantizers. Of the quantization decision device 8 as an input to the control signal input, and
0 is an output terminal for outputting the output of the selector 9 to the outside, 11
Is an output terminal for outputting the determination result of the quantization determiner 8 to the outside, and 12 is an output terminal for outputting the output of the constant setting device 3 to the outside.

【0010】以上のような構成において、以下その動作
を説明する。従来技術と同等の第1の量子化器4は、入
力端子1から与えられるDCT係数を、入力端子2から
与えられる量子化幅で量子化する。第1のバッファ6
は、第1の量子化器4の出力を一時記憶する。
The operation of the above arrangement will be described below. The first quantizer 4 equivalent to the conventional technique quantizes the DCT coefficient given from the input terminal 1 with the quantization width given from the input terminal 2. First buffer 6
Temporarily stores the output of the first quantizer 4.

【0011】定数設定器3には、量子化幅として予め定
めた定数aが設定されている。定数aは、一定限の画像
品質を保つために、符号化ビットレート等を考慮して定
めた定数で、符号化ビットレートが高いほど小さな値と
する。第2の量子化器5は第1の量子化器4と同様の量
子化特性を持つ量子化器で、入力端子1から入力するD
CT係数を定数設定器3の出力で量子化する。第2のバ
ッファ7は、第2の量子化器5の出力を一時記憶する。
また正確な復号化のためには定数aの値も必要であるの
で、属性情報として利用できるように、出力端子12か
ら定数aの値を外部に出力する。
In the constant setter 3, a predetermined constant a is set as the quantization width. The constant a is a constant determined in consideration of the coding bit rate and the like in order to maintain a certain limit of image quality, and is set to a smaller value as the coding bit rate is higher. The second quantizer 5 is a quantizer having the same quantizing characteristics as the first quantizer 4, and the D quantizer inputted from the input terminal 1
The CT coefficient is quantized by the output of the constant setter 3. The second buffer 7 temporarily stores the output of the second quantizer 5.
Further, since the value of the constant a is also necessary for accurate decoding, the value of the constant a is output to the outside from the output terminal 12 so that it can be used as attribute information.

【0012】量子化判定器8は、第1の量子化器4の出
力を監視することにより、当該ブロックが非符号化ブロ
ックか符号化ブロックかを判定し、その判定結果をセレ
クタ9に通知するとともに、属性情報として利用できる
ように出力端子11から外部に通知する。セレクタ9
は、量子化判定器8の出力を制御信号として、その出力
を切り替える。すなわち、当該ブロックが符号化ブロッ
クの場合には、第1のバッファ6が出力する情報を出力
し、当該ブロックが非符号化ブロックの場合には、第2
のバッファ7が出力する情報を出力する。第1のバッフ
ァ6および第2のバッファ7に一時記憶された情報は、
量子化判定器8の判定後に供給されるクロックに同期し
て読み出され、セレクタ9を経由して、出力端子10か
ら外部に出力される。
The quantization decision unit 8 decides whether the block is an uncoded block or a coded block by monitoring the output of the first quantizer 4, and notifies the selector 9 of the decision result. At the same time, the output terminal 11 notifies the outside so that it can be used as attribute information. Selector 9
Switches the output of the quantizer determiner 8 as a control signal. That is, when the block is a coded block, the information output from the first buffer 6 is output, and when the block is a non-coded block, the second block is output.
The information output by the buffer 7 of is output. The information temporarily stored in the first buffer 6 and the second buffer 7 is
It is read in synchronization with the clock supplied after the determination by the quantization determiner 8 and is output to the outside from the output terminal 10 via the selector 9.

【0013】第2の量子化器5を用いて量子化しても非
符号化ブロックとなることがあるが、その場合は、静止
した背景等のように、伝送すべき有意な量子化インデッ
クスがほとんどない場合であり、動き補償予測に用いた
フレームの対応する位置のブロック画像をそのまま当該
ブロックの画像として用いても、画質劣化にはつながら
ない。
Quantization using the second quantizer 5 may result in non-coded blocks, but in that case, a significant quantization index to be transmitted is almost always present, such as a stationary background. This is a case where there is no such case, and even if the block image at the corresponding position of the frame used for the motion compensation prediction is used as it is as the image of the block, the image quality is not deteriorated.

【0014】第1の量子化器4および第2の量子化器5
は、DCT係数と量子化幅をアドレス入力とし、量子化
インデックスを出力とし、内部に所定の変換テーブルを
記憶しているROMを持つこと等により、容易に構成で
きる。また量子化判定器8は、第1の量子化器4の出力
を値0と比較する比較器と、前記比較器の判定結果を係
数するカウンタ等により、容易に構成できる。
First quantizer 4 and second quantizer 5
Can be easily configured by having a DCT coefficient and a quantization width as an address input, a quantization index as an output, and a ROM having a predetermined conversion table stored therein. The quantization decision unit 8 can be easily configured by a comparator that compares the output of the first quantizer 4 with the value 0, a counter that counts the decision result of the comparator, and the like.

【0015】以上のように本実施例によれば、第1の量
子化器4の入力と同じ値のDCT係数を予め定めた量子
化幅で量子化するので、第1の量子化器4で量子化した
場合には非符号化ブロックになってしまうブロックを、
符号化ブロックに変えることができる。
As described above, according to the present embodiment, since the DCT coefficient having the same value as the input of the first quantizer 4 is quantized with the predetermined quantization width, the first quantizer 4 Blocks that become uncoded blocks when quantized
It can be changed to a coded block.

【0016】なお本実施例では、同じ量子化特性を持つ
量子化器を2個用いて構成したが、非符号化ブロックと
判定された場合に、DCT係数をa倍して再び符号化す
るように構成してもよく、この場合は、第1の量子化器
と第2の量子化器を、一つの量子化器で実現することが
できる。
In this embodiment, two quantizers having the same quantization characteristic are used. However, when it is determined that the block is an uncoded block, the DCT coefficient is multiplied by a and coded again. In this case, the first quantizer and the second quantizer can be realized by one quantizer.

【0017】[0017]

【発明の効果】以上のように本発明は、同等の量子化特
性を持つ第1、第2の量子化器と、第2の量子化器に与
える量子化幅を設定する定数設定器と、第1の量子化器
の出力を監視する量子化判定器を設けることにより、輝
度変化の小さい動領域等を、非符号化ブロックから符号
化ブロックに変えて符号化することができるので、微小
画像の欠落あるいは重複のない良好な画像が得られ、そ
の効果は大きい。
As described above, according to the present invention, the first and second quantizers having equivalent quantization characteristics, the constant setter for setting the quantization width given to the second quantizer, By providing a quantizer determiner that monitors the output of the first quantizer, it is possible to change a non-coded block from a non-coded block to a coded block for coding, so that a moving image with a small luminance change can be coded. A good image with no missing or overlapping is obtained, and the effect is great.

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

【図1】本発明の一実施例における量子化装置のブロッ
ク結線図
FIG. 1 is a block diagram of a quantizer according to an embodiment of the present invention.

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

3 定数設定器 4 第1の量子化器 5 第2の量子化器 8 量子化判定器 9 セレクタ 3 constant setter 4 first quantizer 5 second quantizer 8 quantization determiner 9 selector

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 外部から与えられた量子化幅で入力信号
を量子化する第1の量子化器と、定数を設定する定数設
定器と、入力信号を前記定数設定器の出力で量子化する
第2の量子化器と、前記第1の量子化器の出力が全て0
か否か判定する量子化判定器と、前記量子化判定器の判
定結果に応じて前記第1、第2の量子化器の出力を一方
に切り替えるセレクタとを具備した量子化装置。
1. A first quantizer for quantizing an input signal with an externally given quantization width, a constant setter for setting a constant, and an input signal for quantizing with an output of the constant setter. The outputs of the second quantizer and the first quantizer are all 0
A quantizer including a quantizer determiner for determining whether or not the selector and a selector for switching the outputs of the first and second quantizers to one according to a determination result of the quantizer determiner.
JP32442691A 1991-12-09 1991-12-09 Quantizer Pending JPH05160745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32442691A JPH05160745A (en) 1991-12-09 1991-12-09 Quantizer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32442691A JPH05160745A (en) 1991-12-09 1991-12-09 Quantizer

Publications (1)

Publication Number Publication Date
JPH05160745A true JPH05160745A (en) 1993-06-25

Family

ID=18165667

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32442691A Pending JPH05160745A (en) 1991-12-09 1991-12-09 Quantizer

Country Status (1)

Country Link
JP (1) JPH05160745A (en)

Similar Documents

Publication Publication Date Title
US5636279A (en) Scramble apparatus and descramble apparatus
US5592302A (en) Coding method for coding pixel blocks and apparatus therefor
US8064516B2 (en) Text recognition during video compression
US20100177820A1 (en) Video encoding device, video decoding device, video encoding method, video decoding method, video encoding or decoding program
US6956899B2 (en) Precise bit control apparatus with look-ahead for MPEG encoding
JPH08256335A (en) Apparatus and method for determining quantization parameter
US6987808B2 (en) Transcoding method and transcoding apparatus
US7095448B2 (en) Image processing circuit and method for modifying a pixel value
JPH09154143A (en) Video data compression method
JPH07312756A (en) Circuit, device and method for conversion of information quantity of compressed animation image code signal
EP1978743B1 (en) A method and apparatus for transcoding a video signal
US6804299B2 (en) Methods and systems for reducing requantization-originated generational error in predictive video streams using motion compensation
US6556714B2 (en) Signal processing apparatus and method
JPH05160745A (en) Quantizer
JP3831411B2 (en) Method for constructing an encoded character bitstream
JPH06209469A (en) Picture coder, picture coding method, picture decoder, picture decoding method and picture recording medium
JP2820636B2 (en) Video compression device
JPH05160744A (en) Quantizer
US9253491B2 (en) Method and apparatus for transcoding a video signal
JPH05160743A (en) Quantizer
EP0927954B1 (en) Image signal compression coding method and apparatus
JP3652889B2 (en) Video encoding method, video encoding device, recording medium, and video communication system
JPH08256337A (en) Moving image coder
KR100242832B1 (en) Apparatus for generating quantization step value
JPH03124182A (en) Cell abort compensation picture decoding system