JPH10341436A - Highly efficient encoding device - Google Patents

Highly efficient encoding device

Info

Publication number
JPH10341436A
JPH10341436A JP14888897A JP14888897A JPH10341436A JP H10341436 A JPH10341436 A JP H10341436A JP 14888897 A JP14888897 A JP 14888897A JP 14888897 A JP14888897 A JP 14888897A JP H10341436 A JPH10341436 A JP H10341436A
Authority
JP
Japan
Prior art keywords
scaling factor
block
code amount
value
coding
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
JP14888897A
Other languages
Japanese (ja)
Inventor
Kazuhiro Wake
一博 和気
Shoichi Nishino
正一 西野
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 JP14888897A priority Critical patent/JPH10341436A/en
Priority to EP98905823A priority patent/EP0905981B1/en
Priority to DE69835058T priority patent/DE69835058D1/en
Priority to PCT/JP1998/000967 priority patent/WO1998041027A1/en
Priority to US09/180,447 priority patent/US6553068B1/en
Publication of JPH10341436A publication Critical patent/JPH10341436A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To suppress deterioration of a picture and to suppress the code amount of a whole screen by selecting plural scaling factor candidates from significance showing the degree of the protection of a block and information of the same picture which is encoded. SOLUTION: A significance calculation part 108 decides the significance of a macro block from at least one of information of a first macro block, a second macro block, a coefficient macro block and a moving vector. L(L<K)- pieces of candidates are decided from K-pieces of scaling factors which can be selected in a scaling factor decision part 111. The coefficient block is quantized and variable-length-encoded on whole macro blocks by using the candidate. A final scaling factor decision part 110 decides the scaling factor giving the code amount which is most approximate to a target code amount among the code amounts of L-pieces of candidates.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像信号を高能率
符号化し、記録・伝送する際に用いる高能率符号化装置
に関するものであり、画質劣化を抑え、画像全体の総符
号量を一定以下に抑える符号量制御方式を提供するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a high-efficiency coding apparatus used for high-efficiency coding, recording and transmission of an image signal. It is intended to provide a code amount control method for suppressing the number of codes.

【0002】[0002]

【従来の技術】画像信号を高能率符号化し、特定の符号
量(以下、目的符号量と表現する)になるように符号量
制御を行う場合、従来方式として、現在までの発生符号
量と目的符号量との関係から量子化パラメータ(以下、
スケーリングファクタと表現する)を決定するフィード
バック方式と、使用できる全てのスケーリングファクタ
(説明の都合上、K個のスケーリングファクタが使用可
能であるとする)を用いて符号量の先読みを行い、得ら
れたK個の符号量の中から目的符号量に最も近いスケー
リングファクタを最終的なスケーリングファクタとする
フィードフォワード方式がある。
2. Description of the Related Art Conventionally, when an image signal is encoded with high efficiency and code amount control is performed so as to have a specific code amount (hereinafter, referred to as a target code amount), as a conventional method, the generated code amount and the target The quantization parameter (hereinafter, referred to as
A code amount is pre-read using a feedback method for determining a scaling factor) and all available scaling factors (for convenience of explanation, K scaling factors are available). There is a feed-forward method in which the scaling factor closest to the target code amount among the K code amounts is used as the final scaling factor.

【0003】スケーリングファクタは量子化を行う際の
パラメータであり、一つのマクロブロックに対し一つの
スケーリングファクタが与えられる。スケーリングファ
クタの値が小さいと、そのマクロブロックはより小さな
量子化ステップで量子化される。逆にスケーリングファ
クタの値が大きいと、そのマクロブロックはより大きな
量子化ステップで量子化される。
[0003] The scaling factor is a parameter for performing quantization, and one scaling factor is given to one macroblock. If the value of the scaling factor is small, the macroblock is quantized in smaller quantization steps. Conversely, if the value of the scaling factor is large, the macroblock is quantized in a larger quantization step.

【0004】以下、図14を用いて第1の従来例である
フィードバック方式について説明する。図14におい
て、700は第一のブロック化部、701は第一のマク
ロブロック化部、702は動きベクトル検出部、703
は差分画像生成部、704は第二のブロック化部、70
5は第二のマクロブロック化部、706は圧縮部入力マ
クロブロック生成部、707は直交変換部、708は重
要度算出部、709はスケーリングファクタ決定部、7
10は量子化部、711は可変長符号化部、712はロ
ーカルデコーダである。
[0004] Hereinafter, a feedback system which is a first conventional example will be described with reference to FIG. In FIG. 14, reference numeral 700 denotes a first blocking unit, 701 denotes a first macroblocking unit, 702 denotes a motion vector detecting unit, and 703 denotes a motion vector detecting unit.
Is a difference image generation unit, 704 is a second blocking unit, 70
5 is a second macroblock forming unit, 706 is a compression unit input macroblock generation unit, 707 is an orthogonal transformation unit, 708 is an importance calculation unit, 709 is a scaling factor determination unit, 7
Reference numeral 10 denotes a quantization unit, 711 denotes a variable length coding unit, and 712 denotes a local decoder.

【0005】第1の従来例の動作について説明する。入
力された画像信号は第一のブロック化部700、及び動
きベクトル検出部702に入力される。第一のブロック
化部700は入力された画像の標本値を水平方向に8
個、垂直方法に8個集めて、8×8個の標本値からなる
第一のブロックを生成する。第一のブロックは第一のマ
クロブロック化部701に入力される。第一のマクロブ
ロック化部701は、第一のブロックを複数個集めて第
一のマクロブロックを生成する。第一のマクロブロック
は圧縮部入力マクロブロック決定部706、及び重要度
算出部708に入力される。動きベクトル検出部702
は、入力された画像と、その予測に用いる参照画像から
動きベクトル検出を行い、動きベクトルを出力する。動
きベクトルは差分画像生成部703に入力される。差分
画像生成部703は、入力された動きベクトルと参照画
像を用いて予測画像を生成し、入力された画像と予測画
像との差分演算を行い、差分画像を生成する。差分画像
は第二のブロック化部704に入力される。第二のブロ
ック化部704は入力された差分画像の標本値を水平方
向に8個、垂直方法に8個集めて、8×8個の標本値か
らなる第二のブロックを生成する。第二のブロックは第
二のマクロブロック化部705に入力される。第二のマ
クロブロック化部705は、第二のブロックを複数個集
めて第二のマクロブロックを生成する。第二のマクロブ
ロックは圧縮部入力マクロブロック決定部706に入力
される。圧縮部入力マクロブロック決定部706は、符
号化の対象となっている画像の符号化の方式がフレーム
内ならば、第一のマクロブロックを出力し、この場合、
第一のマクロブロックは直交変換部707に入力され
る。これに対し、符号化の方式がフレーム間ならば第二
のマクロブロックを出力し、この場合、第二のマクロブ
ロックが直交変換部707に入力される。
The operation of the first conventional example will be described. The input image signal is input to the first blocking unit 700 and the motion vector detection unit 702. The first blocking unit 700 converts the sample values of the input image into eight in the horizontal direction.
And a vertical method to generate a first block of 8 × 8 sample values. The first block is input to a first macroblock forming unit 701. The first macroblock generation unit 701 generates a first macroblock by collecting a plurality of first blocks. The first macroblock is input to the compression unit input macroblock determination unit 706 and the importance calculation unit 708. Motion vector detection unit 702
Performs motion vector detection from an input image and a reference image used for the prediction, and outputs a motion vector. The motion vector is input to the difference image generation unit 703. The difference image generation unit 703 generates a prediction image using the input motion vector and the reference image, performs a difference operation between the input image and the prediction image, and generates a difference image. The difference image is input to the second blocking unit 704. The second blocking unit 704 collects eight sample values of the input difference image in the horizontal direction and eight sample values in the vertical direction, and generates a second block including 8 × 8 sample values. The second block is input to the second macroblock generator 705. The second macroblock generator 705 collects a plurality of second blocks to generate a second macroblock. The second macroblock is input to the compression unit input macroblock determination unit 706. The compression unit input macroblock determination unit 706 outputs the first macroblock if the encoding scheme of the image to be encoded is within a frame. In this case,
The first macro block is input to orthogonal transform section 707. On the other hand, if the encoding method is between frames, a second macroblock is output. In this case, the second macroblock is input to the orthogonal transform unit 707.

【0006】直交変換部707は入力されたマクロブロ
ックに対し、ブロック単位で直交変換を行い、係数マク
ロブロックを生成する。係数マクロブロックは量子化部
710に入力される。重要度算出部708は入力された
マクロブロックのアクティビティを計算し、アクティビ
ティと、その画像に対する目的符号量と現在までの発生
符号量との差(残符号量)とからそのマクロブロックの
重要度を設定する。マクロブロックの重要度はスケーリ
ングファクタ決定部709に入力される。スケーリング
ファクタ決定部709は、入力された重要度より、その
マクロブロックのスケーリングファクタの、基準となる
スケーリングファクタに対するオフセットを決定し、そ
のマクロブロックのスケーリングファクタを出力する。
マクロブロックの重要度が高ければ、そのマクロブロッ
クには基準となるスケーリングファクタよりも小さいス
ケーリングファクタが与えられる。逆にマクロブロック
の重要度が低ければ、そのマクロブロックには基準とな
るスケーリングファクタよりも大きいスケーリングファ
クタが与えられる。スケーリングファクタは量子化部7
10に入力される。量子化部710は入力された係数マ
クロブロックを、入力されたスケーリングファクタを用
いて量子化し、量子化データを出力する。量子化データ
は可変長符号化部711に入力される。可変長符号化部
711は入力された量子化データを可変長符号化し、符
号語を出力する。符号語はローカルデコーダ712、及
び重要度算出部708に入力される。ローカルデコーダ
712は入力された符号語を復号化し、復号画像を差分
画像生成部703に入力する。重要度算出部708は入
力された符号語より、そのマクロブロックの符号量を算
出し、そのマクロブロックまでの発生符号量、及び残符
号量を更新する。
The orthogonal transform unit 707 performs orthogonal transform on the input macroblock in block units to generate a coefficient macroblock. The coefficient macroblock is input to the quantization unit 710. The importance calculation unit 708 calculates the activity of the input macroblock, and determines the importance of the macroblock from the activity and the difference between the target code amount for the image and the generated code amount up to now (remaining code amount). Set. The importance of the macroblock is input to the scaling factor determination unit 709. The scaling factor determination unit 709 determines the offset of the scaling factor of the macroblock from the reference importance, based on the input importance, and outputs the scaling factor of the macroblock.
If the importance of the macroblock is high, the macroblock is given a scaling factor smaller than the reference scaling factor. Conversely, if the importance of the macroblock is low, the macroblock is given a scaling factor larger than the reference scaling factor. The scaling factor is determined by the quantization unit 7
10 is input. The quantization unit 710 quantizes the input coefficient macroblock using the input scaling factor, and outputs quantized data. The quantized data is input to the variable length coding unit 711. The variable length coding unit 711 performs variable length coding on the input quantized data, and outputs a codeword. The codeword is input to the local decoder 712 and the importance calculator 708. The local decoder 712 decodes the input codeword and inputs the decoded image to the difference image generator 703. The importance calculation unit 708 calculates the code amount of the macroblock from the input codeword, and updates the generated code amount up to the macroblock and the remaining code amount.

【0007】次に図15を用いて第2の従来例であるフ
ィードフォワード方式について説明する。図15におい
て、800は第一のブロック化部、801は第一のマク
ロブロック化部、802は動きベクトル検出部、803
は差分画像生成部、804は第二のブロック化部、80
5は第二のマクロブロック化部、806は圧縮部入力マ
クロブロック生成部、807は直交変換部、808は重
要度算出部、809はK個の符号量先読み部、810は
最終スケーリングファクタ決定部、811は量子化部、
812は可変長符号化部、813はローカルデコーダで
ある。
Next, a feed forward system as a second conventional example will be described with reference to FIG. 15, reference numeral 800 denotes a first blocking unit, 801 denotes a first macroblocking unit, 802 denotes a motion vector detecting unit, and 803 denotes a motion vector detecting unit.
Is a difference image generation unit, 804 is a second blocking unit, and 80
5 is a second macroblock forming unit, 806 is a compression unit input macroblock generation unit, 807 is an orthogonal transformation unit, 808 is an importance calculation unit, 809 is a K code amount prefetch unit, and 810 is a final scaling factor determination unit. , 811 is a quantization unit,
812 is a variable length coding unit, and 813 is a local decoder.

【0008】第2の従来例の動作について説明する。入
力された画像信号は第一のブロック化部800、動きベ
クトル検出部802、及び差分画像生成部803に入力
される。第一のブロック化部800は入力された画像の
標本値を水平方向に8個、垂直方法に8個集めて、8×
8個の標本値からなる第一のブロックを生成する。第一
のブロックは第一のマクロブロック化部801に入力さ
れる。第一のマクロブロック化部801は、第一のブロ
ックを複数個集めて第一のマクロブロックを生成する。
第一のマクロブロックは圧縮部入力マクロブロック決定
部806、及び重要度算出部808に入力される。動き
ベクトル検出部802は、入力された画像と、その予測
に用いる参照画像から動きベクトル検出を行い、動きベ
クトルを出力する。動きベクトルは差分画像生成部80
3に入力される。差分画像生成部803は、入力された
動きベクトルと参照画像を用いて予測画像を生成し、入
力された画像と予測画像との差分演算を行い、差分画像
を生成する。差分画像は第二のブロック化部804に入
力される。第二のブロック化部804は入力された差分
画像の標本値を水平方向に8個、垂直方法に8個集め
て、8×8個の標本値からなる第二のブロックを生成す
る。第二のブロックは第二のマクロブロック化部805
に入力される。第二のマクロブロック化部805は、第
二のブロックを複数個集めて第二のマクロブロックを生
成する。第二のマクロブロックは圧縮部入力マクロブロ
ック決定部806に入力される。圧縮部入力マクロブロ
ック決定部806は、符号化の対象となっている画像の
符号化の方式がフレーム内ならば、第一のマクロブロッ
クを出力し、この場合、第一のマクロブロックは直交変
換部807に入力される。これに対し、符号化の方式が
フレーム間ならば第二のマクロブロックを出力し、この
場合、第二のマクロブロックが直交変換部807に入力
される。
The operation of the second conventional example will be described. The input image signal is input to a first blocking unit 800, a motion vector detection unit 802, and a difference image generation unit 803. The first blocking unit 800 collects eight sample values of the input image in the horizontal direction and eight in the vertical method, and
Generate a first block of eight sample values. The first block is input to a first macroblock generator 801. The first macroblock forming unit 801 collects a plurality of first blocks to generate a first macroblock.
The first macroblock is input to the compression unit input macroblock determination unit 806 and the importance calculation unit 808. The motion vector detection unit 802 detects a motion vector from an input image and a reference image used for the prediction, and outputs a motion vector. The motion vector is calculated by the difference image generation unit 80.
3 is input. The difference image generation unit 803 generates a prediction image using the input motion vector and the reference image, performs a difference operation between the input image and the prediction image, and generates a difference image. The difference image is input to the second blocking unit 804. The second blocking unit 804 collects eight sample values of the input difference image in the horizontal direction and eight sample values in the vertical method, and generates a second block including 8 × 8 sample values. The second block is a second macroblock generator 805.
Is input to The second macroblock generator 805 collects a plurality of second blocks to generate a second macroblock. The second macroblock is input to the compression unit input macroblock determination unit 806. The compression unit input macroblock determination unit 806 outputs the first macroblock if the encoding scheme of the image to be encoded is within a frame. In this case, the first macroblock is orthogonally transformed. The data is input to the unit 807. On the other hand, if the encoding method is between frames, a second macroblock is output. In this case, the second macroblock is input to the orthogonal transform unit 807.

【0009】直交変換部807は入力されたマクロブロ
ックに対し、ブロック単位で直交変換を行い、係数マク
ロブロックを生成する。係数マクロブロックは符号量先
読み部809、及び量子化部811に入力される。重要
度算出部811は入力された第一マクロブロックのアク
ティビティを計算し、そのマクロブロックの重要度を設
定する。マクロブロックの重要度は符号量先読み部80
9、及び量子化部811に入力される。符号量先読み部
809は選択可能なK個のスケーリングファクタと入力
された重要度より、そのマクロブロックのスケーリング
ファクタを決定し、決定されたスケーリングファクタを
用いて係数マクロブロックを量子化、可変長符号化を行
う。この処理を一画面中の全マクロブロックに対して行
い、各スケーリングファクタで量子化、及び可変長符号
化を行ったときの符号量を算出する。各スケーリングフ
ァクタ毎に算出したK個の符号量は最終スケーリングフ
ァクタ決定部810に入力される。最終スケーリングフ
ァクタ決定部は入力されたK個の符号量の中で、目的符
号量に最も近い符号量を与えるスケーリングファクタを
最終スケーリングファクタとして決定する。最終スケー
リングファクタは量子化部811に入力される。量子化
部811は入力された最終スケーリングファクタと重要
度から、係数マクロブロックを量子化し、量子化データ
を出力する。量子化データは可変長符号化部812に入
力される。可変長符号化部812は入力された量子化デ
ータを可変長符号化し、符号語を出力する。符号語はロ
ーカルデコーダ813に入力される。ローカルデコーダ
813は入力された符号語を復号化し、復号画像を差分
画像生成部803に入力する。
An orthogonal transformation unit 807 performs an orthogonal transformation on the input macroblock on a block basis to generate a coefficient macroblock. The coefficient macroblock is input to the code amount prefetch unit 809 and the quantization unit 811. The importance calculation unit 811 calculates the activity of the input first macroblock, and sets the importance of the macroblock. The importance of the macroblock is determined by the code amount prefetch unit 80.
9 and the quantization unit 811. The code amount look-ahead unit 809 determines the scaling factor of the macroblock from the selectable K scaling factors and the input importance, quantizes the coefficient macroblock using the determined scaling factor, and performs variable-length coding. Perform the conversion. This process is performed for all macroblocks in one screen, and the amount of code when quantization and variable length coding are performed with each scaling factor is calculated. The K code amounts calculated for each scaling factor are input to the final scaling factor determination unit 810. The final scaling factor determination unit determines a scaling factor that gives the code amount closest to the target code amount among the input K code amounts as the final scaling factor. The final scaling factor is input to the quantization unit 811. The quantization unit 811 quantizes the coefficient macroblock based on the input final scaling factor and importance, and outputs quantized data. The quantized data is input to the variable length coding unit 812. The variable length coding unit 812 performs variable length coding on the input quantized data, and outputs a codeword. The codeword is input to local decoder 813. The local decoder 813 decodes the input codeword and inputs the decoded image to the difference image generation unit 803.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、第1の
従来例で示したフィードバック方式では信号の急峻な変
化に対応することは難しく、エッジ部で大きな劣化が発
生してしまう。
However, in the feedback system shown in the first conventional example, it is difficult to cope with a steep change of a signal, and a large deterioration occurs at an edge portion.

【0011】また第2の従来例で示したフィードフォワ
ード方式では信号の変化に対応することはできるが、K
個の符号量先読み部を持つ必要があるため、回路規模が
増大してしまうという問題があった。
In the feedforward system shown in the second conventional example, it is possible to cope with a change in the signal.
Since it is necessary to have the number of code amount prefetch units, there is a problem that the circuit scale is increased.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
の第1の発明は、入力された画像に対し、複数の予測演
算方式を前記入力画像を分割するブロック単位で適応的
に切り替え、直交変換、及び可変長符号化を行う符号化
手段と、前記符号化手段における符号化の際の符号量を
制御する符号量制御手段からなる高能率符号化装置にお
いて、前記符号量制御手段が、前記入力画像、前記予測
演算を行う際に用いる動きベクトル、前記予測演算によ
って得られた差分画像、及び前記直交変換により得られ
た変換係数のうち、少なくとも一つを用いて、前記ブロ
ック毎にそのブロックの保護の度合いを表す重要度を設
定し、符号化済みの同一ピクチャの情報を用いて、選択
可能なK個(Kは整数)のスケーリングファクタの中か
ら候補となるL個(Lは、L<Kを満たす整数)のスケ
ーリングファクタを決定し、前記L個のスケーリングフ
ァクタと前記重要度を用いてL個の符号量を算出し、前
記L個の符号量のうち、目的符号量に最も近い符号量を
与えるスケーリングファクタを最終スケーリングファク
タと決定することを特徴とした高能率符号化装置であ
る。
According to a first aspect of the present invention, a plurality of prediction calculation methods are adaptively switched for an input image in units of blocks which divide the input image. In a high-efficiency coding apparatus comprising a coding unit for performing conversion and variable-length coding, and a code amount control unit for controlling a code amount at the time of coding in the coding unit, the code amount control unit includes: For each block, at least one of an input image, a motion vector used when performing the prediction operation, a difference image obtained by the prediction operation, and a transform coefficient obtained by the orthogonal transformation is used for each block. Is set to indicate the degree of protection, and using information of the same coded picture, L candidates that can be selected from among K (K is an integer) selectable scaling factors are selected. L is an integer that satisfies L <K), calculates L code amounts using the L scale factors and the importance, and calculates a target code among the L code amounts. A high-efficiency coding apparatus characterized in that a scaling factor that gives a code amount closest to the amount is determined as a final scaling factor.

【0013】第2の発明は、前記符号量制御手段が、前
記入力画像、前記動きベクトル、前記差分画像、及び前
記変換係数のうち、少なくとも一つを用いて、前記ブロ
ック毎に前記重要度を設定し、符号化済みの同一ピクチ
ャの情報を用いて、選択可能なK個(Kは整数)のスケ
ーリングファクタの中から、直前に符号化された同一ピ
クチャの最終スケーリングファクタの周辺を細かく、そ
れ以外の領域を荒く分割することで候補となるL個(L
は、L<Kを満たす整数)のスケーリングファクタを決
定し、前記L個のスケーリングファクタと前記重要度を
用いてL個の符号量を算出し、前記L個の符号量のう
ち、目的符号量に最も近い符号量を与えるスケーリング
ファクタを最終スケーリングファクタと決定することを
特徴とした請求項1記載の高能率符号化装置である。
In a second aspect of the present invention, the code amount control means uses at least one of the input image, the motion vector, the difference image, and the transform coefficient to determine the importance for each block. Using the information of the same picture that has been set and coded, from the selectable K (K is an integer) scaling factors, the area around the last scaling factor of the same picture coded immediately before is finely divided. L (L
Is an integer that satisfies L <K), calculates L code amounts using the L scale factors and the importance, and calculates a target code amount among the L code amounts. 2. The high-efficiency encoding apparatus according to claim 1, wherein a scaling factor that gives a code amount closest to the above is determined as a final scaling factor.

【0014】第3の発明は、前記符号量制御手段が、前
記入力画像、前記動きベクトル、前記差分画像、及び前
記変換係数のうち、少なくとも一つを用いて、前記ブロ
ック毎に前記重要度を設定し、前記差分画像よりシーン
チェンジが発生したか否かを検出し、符号化済みの同一
ピクチャの情報と前記シーンチェンジ情報とを用いて、
選択可能なK個(Kは整数)のスケーリングファクタの
中から、シーンチェンジが発生していた場合、シーンチ
ェンジ発生用のL個(Lは、L<Kを満たす整数)の候
補スケーリングファクタを決定し、シーンチェンジが発
生していない場合にはシーンチェンジ非発生用のL個の
候補スケーリングファクタを決定し、前記L個のスケー
リングファクタと前記重要度を用いてL個の符号量を算
出し、前記L個の符号量のうち、目的符号量に最も近い
符号量を与えるスケーリングファクタを最終スケーリン
グファクタと決定することを特徴とした請求項1記載の
高能率符号化装置である。
[0014] In a third aspect, the code amount control means uses at least one of the input image, the motion vector, the difference image, and the transform coefficient to determine the importance for each block. Setting, detecting whether or not a scene change has occurred from the difference image, using information of the encoded same picture and the scene change information,
When a scene change has occurred from among the selectable K (K is an integer) scaling factors, L (L is an integer satisfying L <K) candidate scaling factors for scene change occurrence are determined. If no scene change has occurred, L candidate scaling factors for scene change non-occurrence are determined, and L code amounts are calculated using the L scaling factors and the importance, 2. The high-efficiency encoding apparatus according to claim 1, wherein a scaling factor that gives a code amount closest to the target code amount among the L code amounts is determined as a final scaling factor.

【0015】第4の発明は、前記符号量制御手段が、前
記入力画像、前記動きベクトル、前記差分画像、及び前
記変換係数のうち、少なくとも一つを用いて、前記ブロ
ック毎に前記重要度を設定し、前記動きベクトルよりシ
ーンチェンジが発生したか否かを検出し、符号化済みの
同一ピクチャの情報と前記シーンチェンジ情報とを用い
て、選択可能なK個(Kは整数)のスケーリングファク
タの中から、シーンチェンジが発生していた場合、シー
ンチェンジ発生用のL個(Lは、L<Kを満たす整数)
の候補スケーリングファクタを決定し、シーンチェンジ
が発生していない場合にはシーンチェンジ非発生用のL
個の候補スケーリングファクタを決定し、前記L個のス
ケーリングファクタと前記重要度を用いてL個の符号量
を算出し、前記L個の符号量のうち、目的符号量に最も
近い符号量を与えるスケーリングファクタを最終スケー
リングファクタと決定することを特徴とした請求項1記
載の高能率符号化装置である。
In a fourth aspect of the present invention, the code amount control means uses at least one of the input image, the motion vector, the difference image, and the transform coefficient to determine the importance for each block. Setting, detecting whether or not a scene change has occurred from the motion vector, and using the information of the encoded same picture and the scene change information, selectable K scaling factors (K is an integer) If a scene change has occurred, L for scene change occurrence (L is an integer satisfying L <K)
Is determined, and if no scene change has occurred, L for scene change non-occurrence is determined.
The number of candidate scaling factors are determined, the L code amounts are calculated using the L scale factors and the importance, and the code amount closest to the target code amount among the L code amounts is given. 2. The high-efficiency encoding apparatus according to claim 1, wherein the scaling factor is determined as a final scaling factor.

【0016】第5の発明は、前記符号量制御手段が、シ
ーンチェンジが発生した場合には、選択可能なK個(K
は整数)の領域を均等に分割することで、候補となるL
個(Lは、L<Kを満たす整数)のスケーリングファク
タを決定し、シーンチェンジが発生しなかった場合に
は、選択可能なK個のスケーリングファクタの中から、
直前に符号化された同一ピクチャの最終スケーリングフ
ァクタの周辺を細かく、それ以外の領域を荒く分割する
ことで候補となるL個のスケーリングファクタを決定す
ることを特徴とした請求項3、4記載の高能率符号化装
置である。
According to a fifth aspect of the present invention, the code amount control means selects K (K)
Are integers), the candidate L
(L is an integer that satisfies L <K) is determined, and if no scene change occurs, from among the selectable K scaling factors,
The L scaling factors as candidates are determined by finely dividing the periphery of the final scaling factor of the same picture encoded immediately before and roughly dividing the other region. It is a highly efficient coding device.

【0017】第6の発明は、入力された画像に対し、複
数の予測演算方式を前記入力画像を分割するブロック単
位で適応的に切り替え、直交変換、及び可変長符号化を
行う符号化手段と、前記符号化手段における符号化の際
の符号量を制御する符号量制御手段からなる高能率符号
化装置において、前記符号量制御手段が、前記入力画
像、前記予測演算を行う際に用いる動きベクトル、前記
予測演算によって得られた差分画像、前記直交変換で得
られた変換係数、現在までの発生符号量、及び目的符号
量と前記発生符号量との差のうち、少なくとも一つを用
いて、前記ブロック毎にそのブロックの保護度合いを表
す重要度を設定し、前記重要度と基準となるスケーリン
グファクタから、前記ブロックのスケーリングファクタ
を決定することを特徴とした高能率符号化装置である。
According to a sixth aspect of the present invention, there is provided an encoding means for performing an orthogonal transformation and a variable length encoding on an input image by adaptively switching a plurality of prediction calculation methods in units of blocks dividing the input image. A high-efficiency encoding apparatus including a code amount control unit that controls a code amount at the time of encoding in the encoding unit, wherein the code amount control unit uses the input image and a motion vector used when performing the prediction calculation. Using the difference image obtained by the prediction operation, the transform coefficient obtained by the orthogonal transform, the generated code amount up to the present, and at least one of the difference between the target code amount and the generated code amount, It is characterized in that importance is set for each block to indicate the degree of protection of the block, and the scaling factor of the block is determined from the importance and a reference scaling factor. It is a high-efficiency encoding apparatus and.

【0018】第7の発明は、前記符号量制御手段が、前
記符号化対象ブロックがフレーム間である場合に、前記
符号化対象ブロックに対し予測演算を行った差分ブロッ
クの標本値よりアクティビティを算出し、前記アクティ
ビティが特定のしきい値より大きい場合に、前記符号化
対象ブロックのスケーリングファクタを基準スケーリン
グファクタより小さくする、すなわち基準値よりもより
小さい量子化ステップで量子化することを特徴とした請
求項6記載の高能率符号化装置である。
In a seventh aspect, the code amount control means calculates an activity from a sample value of a difference block obtained by performing a prediction operation on the coding target block when the coding target block is between frames. And, when the activity is larger than a specific threshold value, the scaling factor of the current block is made smaller than a reference scaling factor, that is, quantized in a quantization step smaller than the reference value. A high efficiency coding apparatus according to claim 6.

【0019】第8の発明は、前記符号量制御手段が、前
記符号化対象ブロックの符号化方式がフレーム間である
場合に、前記変換係数のAC係数値の絶対値和を算出
し、前記絶対値和が特定のしきい値より大きい場合に、
前記符号化対象ブロックのスケーリングファクタを基準
スケーリングファクタより小さくする、すなわち基準値
よりもより小さい量子化ステップで量子化することを特
徴とした請求項6記載の高能率符号化装置である。
In an eighth aspect, the code amount control means calculates the sum of absolute values of AC coefficient values of the transform coefficients when the coding method of the block to be coded is between frames. If the sum is greater than a certain threshold,
7. The high-efficiency encoding apparatus according to claim 6, wherein a scaling factor of the block to be encoded is smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value.

【0020】第9の発明は、前記符号量制御手段が、前
記符号化対象ブロックの符号化方式がフレーム間である
場合に、前記変換係数のAC係数値の中で絶対値が最大
となる係数を算出し、前記係数値が特定のしきい値より
大きい場合に、前記符号化対象ブロックのスケーリング
ファクタを基準スケーリングファクタより小さくする、
すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置である。
According to a ninth aspect of the present invention, the code amount control means, when the coding method of the block to be coded is inter-frame, a coefficient having the maximum absolute value among the AC coefficient values of the transform coefficient. Is calculated, and when the coefficient value is larger than a specific threshold value, the scaling factor of the current block is made smaller than a reference scaling factor.
That is, the high-efficiency encoding apparatus according to claim 6, wherein the quantization is performed in a quantization step smaller than the reference value.

【0021】第10の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記符号化対象ブロックの標本値より第一の
アクティビティを算出し、前記差分ブロックの標本値よ
り第二のアクティビティを算出し、前記第一のアクティ
ビティが特定の第一のしきい値より大きく、かつ、前記
第二のアクティビティが特定の第二のしきい値より大き
い場合に、前記符号化対象ブロックのスケーリングファ
クタを基準スケーリングファクタよりも大きくする、す
なわち基準値よりもより大きい量子化ステップで量子化
することを特徴とした請求項6記載の高能率符号化装置
である。
In a tenth aspect, the code amount control means includes:
When the encoding method of the encoding target block is between frames, a first activity is calculated from a sample value of the encoding target block, and a second activity is calculated from a sample value of the difference block. When the first activity is greater than a specific first threshold and the second activity is greater than a specific second threshold, the scaling factor of the current block is calculated from a reference scaling factor. 7. The high-efficiency encoding apparatus according to claim 6, wherein quantization is performed in a quantization step larger than a reference value.

【0022】第11の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記変換係数のAC係数値の絶対値和を算出
し、前記符号化対象ブロックの標本値よりアクティビテ
ィを算出し、前記絶対値和が特定の第一のしきい値より
大きく、かつ、前記アクティビティが特定の第二のしき
い値より大きい場合に、前記符号化対象ブロックのスケ
ーリングファクタを基準スケーリングファクタよりも大
きくする、すなわち基準値よりもより大きい量子化ステ
ップで量子化することを特徴とした請求項6記載の高能
率符号化装置である。
In an eleventh aspect, the code amount control means includes:
Calculating the sum of absolute values of the AC coefficient values of the transform coefficients, calculating the activity from the sample values of the current block, and calculating the sum of absolute values; Is larger than a specific first threshold value and the activity is larger than a specific second threshold value, the scaling factor of the current block is larger than a reference scaling factor, that is, a reference value 7. The high-efficiency encoding apparatus according to claim 6, wherein the quantization is performed in a larger quantization step.

【0023】第12の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記変換係数のAC係数値の中で絶対値が最
大となる係数を算出し、前記符号化対象ブロックの標本
値よりアクティビティを算出し、前記係数が特定の第一
のしきい値より大きく、かつ、前記アクティビティが特
定の第二のしきい値より大きい場合に、前記符号化対象
ブロックのスケーリングファクタを基準スケーリングフ
ァクタよりも大きくする、すなわち基準値よりもより大
きい量子化ステップで量子化することを特徴とした請求
項6記載の高能率符号化装置である。
In a twelfth aspect, the code amount control means includes:
When the encoding method of the current block is inter-frame, a coefficient having the largest absolute value among the AC coefficient values of the transform coefficients is calculated, and an activity is calculated from a sample value of the current block. When the coefficient is larger than a specific first threshold and the activity is larger than a specific second threshold, the scaling factor of the current block is made larger than a reference scaling factor. 7. The high efficiency coding apparatus according to claim 6, wherein the quantization is performed in a quantization step larger than the reference value.

【0024】第13の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記差分ブロックの標本値よりアクティビテ
ィを算出し、前記アクティビティが特定のしきい値より
小さい場合に、前記符号化対象ブロックのスケーリング
ファクタを基準スケーリングファクタより小さくする、
すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置である。
According to a thirteenth aspect, the code amount control means comprises:
When the coding method of the current block is inter-frame, an activity is calculated from the sample value of the difference block, and when the activity is smaller than a specific threshold, Smaller than the reference scaling factor,
That is, the high-efficiency encoding apparatus according to claim 6, wherein the quantization is performed in a quantization step smaller than the reference value.

【0025】第14の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記変換係数のAC係数値の絶対値和を算出
し、前記絶対値和が特定のしきい値より小さい場合に、
前記符号化対象ブロックのスケーリングファクタを基準
スケーリングファクタより小さくする、すなわち基準値
よりもより小さい量子化ステップで量子化することを特
徴とした請求項6記載の高能率符号化装置である。
In a fourteenth aspect, the code amount control means comprises:
When the encoding method of the encoding target block is between frames, calculate the sum of absolute values of AC coefficient values of the transform coefficients, and when the absolute value sum is smaller than a specific threshold,
7. The high-efficiency encoding apparatus according to claim 6, wherein a scaling factor of the block to be encoded is smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value.

【0026】第15の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記符号化対象ブロックの標本値よりアクテ
ィビティを算出し、前記アクティビティが特定のしきい
値より小さい場合に、前記符号化対象ブロックのスケー
リングファクタを基準スケーリングファクタより小さく
する、すなわち基準値よりもより小さい量子化ステップ
で量子化することを特徴とした請求項6記載の高能率符
号化装置である。
In a fifteenth aspect, the code amount control means includes:
When the encoding method of the encoding target block is between frames, an activity is calculated from a sample value of the encoding target block, and when the activity is smaller than a specific threshold, the activity of the encoding target block is calculated. 7. The high-efficiency encoding apparatus according to claim 6, wherein the scaling factor is smaller than the reference scaling factor, that is, the quantization is performed in a quantization step smaller than the reference value.

【0027】第16の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記符号化対象ブロック内の、Y−R成分ブ
ロックの標本値に対し、特定の第一のしきい値より大き
い値を持つ標本値の個数を算出し、前記個数が特定の第
二のしきい値より多い場合に、前記符号化対象ブロック
のスケーリングファクタを基準スケーリングファクタよ
り小さくする、すなわち基準値よりもより小さい量子化
ステップで量子化することを特徴とした請求項6記載の
高能率符号化装置である。
According to a sixteenth aspect, the code amount control means includes:
When the encoding method of the encoding target block is inter-frame, a sample having a value larger than a specific first threshold value with respect to the sample value of the YR component block in the encoding target block. Calculating the number of values, and when the number is greater than a specific second threshold, reducing the scaling factor of the current block to be smaller than a reference scaling factor, that is, in a quantization step smaller than the reference value. 7. The high-efficiency encoding apparatus according to claim 6, wherein quantization is performed.

【0028】第17の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記符号化対象ブロック内の、Y−B成分ブ
ロックの標本値に対し、特定の第一のしきい値より大き
い値を持つ標本値の個数を算出し、前記個数が特定の第
二のしきい値より多い場合に、前記符号化対象ブロック
のスケーリングファクタを基準スケーリングファクタよ
り小さくする、すなわち基準値よりもより小さい量子化
ステップで量子化することを特徴とした請求項6記載の
高能率符号化装置である。
In a seventeenth aspect, the code amount control means comprises:
When the coding method of the current block is inter-frame, a sample having a value larger than a specific first threshold value with respect to the sample value of the YB component block in the current block. Calculating the number of values, and when the number is greater than a specific second threshold, reducing the scaling factor of the current block to be smaller than a reference scaling factor, that is, in a quantization step smaller than the reference value. 7. The high-efficiency encoding apparatus according to claim 6, wherein quantization is performed.

【0029】第18の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記符号化対象ブロック内の、Y−R成分ブ
ロック、及びY−B成分ブロックの標本値に対し、前記
Y−R成分ブロックの標本値と前記Y−B成分ブロック
の標本値との差分値が、特定の第一のしきい値より大き
い値を持つ差分値の個数を算出し、前記個数が特定の第
二のしきい値より多い場合に、前記符号化対象ブロック
のスケーリングファクタを基準スケーリングファクタよ
り小さくする、すなわち基準値よりもより小さい量子化
ステップで量子化することを特徴とした請求項6記載の
高能率符号化装置である。
In an eighteenth aspect, the code amount control means includes:
When the encoding method of the encoding target block is between frames, the YR component block of the YR component block is compared with the sample value of the YR component block and the YB component block in the encoding target block. A difference value between a sample value and a sample value of the YB component block is calculated as the number of difference values having a value greater than a specific first threshold value, and the number is calculated as a specific second threshold value. 7. The high-efficiency encoding apparatus according to claim 6, wherein when the number is larger, the scaling factor of the encoding target block is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value. It is.

【0030】第19の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記符号化対象ブロック内の、Y−R成分ブ
ロック、及びY−B成分ブロックの標本値に対し、前記
Y−B成分ブロックの標本値と前記Y−R成分ブロック
の標本値との差分値が、特定の第一のしきい値より大き
い値を持つ差分値の個数を算出し、前記個数が特定の第
二のしきい値より多い場合に、前記符号化対象ブロック
のスケーリングファクタを基準スケーリングファクタよ
り小さくする、すなわち基準値よりもより小さい量子化
ステップで量子化することを特徴とした請求項6記載の
高能率符号化装置である。
In a nineteenth aspect, the code amount control means includes:
When the encoding method of the encoding target block is inter-frame, the YB component block is compared with the sample values of the YR component block and the YB component block in the encoding target block. A difference value between the sample value and the sample value of the YR component block is calculated as the number of difference values having a value larger than a specific first threshold value, and the number is calculated as a specific second threshold value. 7. The high-efficiency encoding apparatus according to claim 6, wherein when the number is larger, the scaling factor of the encoding target block is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value. It is.

【0031】第20の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記符号化対象ブロック内の、Y成分ブロッ
クの標本値に対し、特定の第一のしきい値より大きい値
を持つ標本値の個数を算出し、前記個数が特定の第二の
しきい値より多い場合に、前記符号化対象ブロックのス
ケーリングファクタを基準スケーリングファクタより大
きくする、すなわち基準値よりもより大きい量子化ステ
ップで量子化することを特徴とした請求項6記載の高能
率符号化装置である。
In a twentieth aspect, the code amount control means includes:
When the encoding method of the encoding target block is inter-frame, the sampling value of the sample value of the Y component block in the encoding target block is larger than a specific first threshold value. Calculate the number, and if the number is greater than a specific second threshold, increase the scaling factor of the block to be encoded to be greater than a reference scaling factor, that is, quantize in a quantization step greater than the reference value. 7. The high-efficiency encoding apparatus according to claim 6, wherein:

【0032】第21の発明は、前記符号量制御手段が、
前記符号化対象ブロックの符号化方式がフレーム間であ
る場合に、前記符号化対象ブロック内の、Y成分ブロッ
クの標本値に対し、特定の第一のしきい値より小さい値
を持つ標本値の個数を算出し、前記個数が特定の第二の
しきい値より多い場合に、前記符号化対象ブロックのス
ケーリングファクタを基準スケーリングファクタより大
きくする、すなわち基準値よりもより大きい量子化ステ
ップで量子化することを特徴とした請求項6記載の高能
率符号化装置である。
In a twenty-first aspect, the code amount control means comprises:
When the encoding scheme of the encoding target block is inter-frame, the sampling value of the sample value having a value smaller than a specific first threshold value with respect to the sample value of the Y component block in the encoding target block is described. Calculate the number, and if the number is greater than a specific second threshold, increase the scaling factor of the block to be encoded to be greater than a reference scaling factor, that is, quantize in a quantization step greater than the reference value. 7. The high-efficiency encoding apparatus according to claim 6, wherein:

【0033】第22の発明は、前記符号量制御手段が、
前記符号化対象ブロックの画面上の位置が上端、下端、
左端、及び右端のいずれかである場合、前記符号化対象
ブロックのスケーリングファクタを基準スケーリングフ
ァクタより大きくする、すなわち基準値よりもより大き
い量子化ステップで量子化することを特徴とした請求項
6記載の高能率符号化装置である。
[0033] In a twenty-second invention, the code amount control means comprises:
The position of the block to be encoded on the screen is the upper end, the lower end,
7. The method according to claim 6, wherein the scaling factor of the block to be coded is made larger than a reference scaling factor, that is, quantized in a quantization step larger than a reference value, when the block is one of a left end and a right end. Is a highly efficient encoding device.

【0034】第23の発明は、前記符号量制御手段が、
前記符号化対象ブロックの動きベクトルと、前記符号化
対象ブロックの周辺ブロックの動きベクトルとのずれを
算出し、前記ベクトルのずれが特定のしきい値より多い
場合に、前記符号化対象ブロックのスケーリングファク
タを基準スケーリングファクタより小さくする、すなわ
ち基準値よりもより小さい量子化ステップで量子化する
ことを特徴とした請求項6記載の高能率符号化装置であ
る。
In a twenty-third aspect, the code amount control means comprises:
Calculate the difference between the motion vector of the encoding target block and the motion vector of the peripheral block of the encoding target block, and when the deviation of the vector is larger than a specific threshold, scaling of the encoding target block. 7. The high-efficiency encoding apparatus according to claim 6, wherein the factor is smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value.

【0035】第24の発明は、前記符号量制御手段が、
前記符号化対象ブロックの動きベクトルと、前記符号化
対象ブロックの周辺ブロックの動きベクトルの種類を検
出し、前記符号化対象ブロックの動きベクトルの種類
が、前記符号化対象ブロックの周辺ブロックの動きベク
トルの種類と異なっていた場合に、前記符号化対象ブロ
ックのスケーリングファクタを基準スケーリングファク
タより小さくする、すなわち基準値よりもより小さい量
子化ステップで量子化することを特徴とした請求項6記
載の高能率符号化装置である。
In a twenty-fourth aspect, the code amount control means includes:
The motion vector of the encoding target block and the type of motion vector of the peripheral block of the encoding target block are detected, and the type of the motion vector of the encoding target block is determined as the motion vector of the peripheral block of the encoding target block. 7. The method according to claim 6, wherein when the type is different, the scaling factor of the block to be coded is made smaller than a reference scaling factor, that is, quantized in a quantization step smaller than a reference value. It is an efficiency coding device.

【0036】第25の発明は、入力された画像に対し、
複数の予測演算方式を前記入力画像を分割するブロック
単位で適応的に切り替え、直交変換、及び可変長符号化
を行う符号化手段と、前記符号化手段における符号化の
際の符号量を制御する符号量制御手段からなる高能率符
号化装置において、前記符号量制御手段が、前記ブロッ
ク単位で検出した第一の動きベクトルと、複数の前記ブ
ロックからなるスーパーブロック単位で検出した第二の
動きベクトルを用いて、前記ブロック毎にそのブロック
の保護度合いを表す重要度を検出し、前記重要度と基準
となるスケーリングファクタから、前記ブロックのスケ
ーリングファクタを決定することを特徴とした高能率符
号化装置である。
According to a twenty-fifth aspect of the present invention, the input image is
A plurality of predictive operation methods are adaptively switched in units of blocks that divide the input image, and an encoding unit that performs orthogonal transform and variable-length encoding, and a code amount at the time of encoding in the encoding unit is controlled. In the high-efficiency encoding apparatus including the code amount control unit, the code amount control unit detects the first motion vector detected in the block unit and the second motion vector detected in the super block unit including the plurality of blocks. A high-efficiency coding apparatus, wherein, for each of the blocks, a degree of importance indicating the degree of protection of the block is detected, and the scaling factor of the block is determined from the degree of importance and a reference scaling factor. It is.

【0037】[0037]

【発明の実施の形態】第1の発明の高能率符号化装置で
は、入力された画像に対し、複数の予測演算方式を前記
入力画像を分割するブロック単位で適応的に切り替え、
直交変換、及び可変長符号化を行う符号化手段と、前記
符号化手段における符号化の際の符号量を制御する符号
量制御手段からなる高能率符号化装置において、前記符
号量制御手段が、前記入力画像、前記予測演算を行う際
に用いる動きベクトル、前記予測演算によって得られた
差分画像、及び前記直交変換により得られた変換係数の
うち、少なくとも一つを用いて、前記ブロック毎にその
ブロックの保護の度合いを表す重要度を設定し、符号化
済みの同一ピクチャの情報を用いて、選択可能なK個
(Kは整数)のスケーリングファクタの中から候補とな
るL個(Lは、L<Kを満たす整数)のスケーリングフ
ァクタを決定し、前記L個のスケーリングファクタと前
記重要度を用いてL個の符号量を算出し、前記L個の符
号量のうち、目的符号量に最も近い符号量を与えるスケ
ーリングファクタを最終スケーリングファクタと決定す
ることで、少ない回路規模で画質劣化を抑え、画面全体
の符号量を一定以下に抑えることができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In a high efficiency coding apparatus according to the first invention, a plurality of prediction calculation methods are adaptively switched for an input image in units of blocks for dividing the input image.
Orthogonal transform, and encoding means for performing variable-length encoding, in a high efficiency encoding apparatus comprising a code amount control means for controlling the code amount at the time of the encoding in the encoding means, the code amount control means, The input image, the motion vector used when performing the prediction operation, the difference image obtained by the prediction operation, and at least one of the transform coefficients obtained by the orthogonal transform, using at least one of the An importance level indicating the degree of protection of a block is set, and L (L is a candidate) out of K selectable scaling factors (K is an integer) using information of the same coded picture. L <an integer satisfying L <K) is determined, and L code amounts are calculated using the L scale factors and the importance, and among the L code amounts, a target code is calculated. The scaling factor that gives the code amount closest to the amount to determine a final scaling factor, suppressing image quality deterioration with a small circuit scale can be suppressed code amounts of the entire screen to be constant below.

【0038】第2の発明の高能率符号化装置では、前記
符号量制御手段が、前記入力画像、前記動きベクトル、
前記差分画像、及び前記変換係数のうち、少なくとも一
つを用いて、前記ブロック毎に前記重要度を設定し、符
号化済みの同一ピクチャの情報を用いて、選択可能なK
個(Kは整数)のスケーリングファクタの中から、直前
に符号化された同一ピクチャの最終スケーリングファク
タの周辺を細かく、それ以外の領域を荒く分割すること
で候補となるL個(Lは、L<Kを満たす整数)のスケ
ーリングファクタを決定し、前記L個のスケーリングフ
ァクタと前記重要度を用いてL個の符号量を算出し、前
記L個の符号量のうち、目的符号量に最も近い符号量を
与えるスケーリングファクタを最終スケーリングファク
タと決定することで、少ない回路規模で画質劣化を抑
え、画面全体の符号量を一定以下に抑えることができ
る。
In the high-efficiency coding apparatus according to a second aspect of the present invention, the code amount control means controls the input image, the motion vector,
The importance is set for each block by using at least one of the difference image and the transform coefficient, and a selectable K is set using information of the same encoded picture.
Among the scaling factors (K is an integer), L around the final scaling factor of the same picture encoded immediately before is finely divided, and the other areas are roughly divided into L (L is L <Integer that satisfies K), and calculates L code amounts using the L scale factors and the importance, and among the L code amounts, the code amount closest to the target code amount. By determining the scaling factor that gives the code amount as the final scaling factor, image quality degradation can be suppressed with a small circuit scale, and the code amount of the entire screen can be suppressed to a certain value or less.

【0039】第3の発明の高能率符号化装置では、前記
符号量制御手段が、前記入力画像、前記動きベクトル、
前記差分画像、及び前記変換係数のうち、少なくとも一
つを用いて、前記ブロック毎に前記重要度を設定し、前
記差分画像よりシーンチェンジが発生したか否かを検出
し、符号化済みの同一ピクチャの情報と前記シーンチェ
ンジ情報とを用いて、選択可能なK個(Kは整数)のス
ケーリングファクタの中から、シーンチェンジが発生し
ていた場合、シーンチェンジ発生用のL個(Lは、L<
Kを満たす整数)の候補スケーリングファクタを決定
し、シーンチェンジが発生していない場合にはシーンチ
ェンジ非発生用のL個の候補スケーリングファクタを決
定し、前記L個のスケーリングファクタと前記重要度を
用いてL個の符号量を算出し、前記L個の符号量のう
ち、目的符号量に最も近い符号量を与えるスケーリング
ファクタを最終スケーリングファクタと決定すること
で、少ない回路規模で画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to a third aspect of the present invention, the code amount control means controls the input image, the motion vector,
Using the difference image and at least one of the transform coefficients, the importance is set for each block, and whether or not a scene change has occurred from the difference image is detected. Using the picture information and the scene change information, if a scene change has occurred from among the selectable K (K is an integer) scaling factors, L scene change occurrences (L is L <
(An integer that satisfies K), and if no scene change has occurred, L candidate scaling factors for non-scene change occurrence are determined, and the L scaling factors and the importance are determined. L code amount is calculated using the code amount, and among the L code amounts, the scaling factor that gives the code amount closest to the target code amount is determined as the final scaling factor, thereby suppressing image quality degradation with a small circuit scale. Thus, the code amount of the entire screen can be suppressed to a certain value or less.

【0040】第4の発明の高能率符号化装置では、前記
符号量制御手段が、前記入力画像、前記動きベクトル、
前記差分画像、及び前記変換係数のうち、少なくとも一
つを用いて、前記ブロック毎に前記重要度を設定し、前
記動きベクトルよりシーンチェンジが発生したか否かを
検出し、符号化済みの同一ピクチャの情報と前記シーン
チェンジ情報とを用いて、選択可能なK個(Kは整数)
のスケーリングファクタの中から、シーンチェンジが発
生していた場合、シーンチェンジ発生用のL個(Lは、
L<Kを満たす整数)の候補スケーリングファクタを決
定し、シーンチェンジが発生していない場合にはシーン
チェンジ非発生用のL個の候補スケーリングファクタを
決定し、前記L個のスケーリングファクタと前記重要度
を用いてL個の符号量を算出し、前記L個の符号量のう
ち、目的符号量に最も近い符号量を与えるスケーリング
ファクタを最終スケーリングファクタと決定すること
で、少ない回路規模で画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to a fourth aspect of the present invention, the code amount control means controls the input image, the motion vector,
Using the at least one of the difference image and the transform coefficient, the importance is set for each of the blocks, and it is detected whether or not a scene change has occurred from the motion vector. K selectable (K is an integer) using picture information and the scene change information
If a scene change has occurred from among the scaling factors of L, L for scene change occurrence (L is
(An integer satisfying L <K), and if no scene change has occurred, determine L candidate scaling factors for the non-occurrence of a scene change. The L code amount is calculated using the degree, and the scaling factor that gives the code amount closest to the target code amount among the L code amounts is determined as the final scaling factor. And the code amount of the entire screen can be suppressed to a certain value or less.

【0041】第5の発明の高能率符号化装置では、前記
符号量制御手段が、シーンチェンジが発生した場合に
は、選択可能なK個(Kは整数)の領域を均等に分割す
ることで、候補となるL個(Lは、L<Kを満たす整
数)のスケーリングファクタを決定し、シーンチェンジ
が発生しなかった場合には、選択可能なK個のスケーリ
ングファクタの中から、直前に符号化された同一ピクチ
ャの最終スケーリングファクタの周辺を細かく、それ以
外の領域を荒く分割することで候補となるL個のスケー
リングファクタを決定することで、少ない回路規模で画
質劣化を抑え、画面全体の符号量を一定以下に抑えるこ
とができる。
In the high-efficiency coding apparatus according to a fifth aspect of the present invention, when a scene change occurs, the code amount control means equally divides a selectable K (K is an integer) area. , Determine L candidate scaling factors (L is an integer satisfying L <K), and if no scene change has occurred, select a code from the selectable K scaling factors immediately before By determining L candidate scaling factors by finely dividing the periphery of the final scaling factor of the same picture and roughly dividing the other area, image quality degradation is suppressed with a small circuit scale, and the entire screen is reduced. The code amount can be suppressed to a certain value or less.

【0042】第6の発明の高能率符号化装置では、入力
された画像に対し、複数の予測演算方式を前記入力画像
を分割するブロック単位で適応的に切り替え、直交変
換、及び可変長符号化を行う符号化手段と、前記符号化
手段における符号化の際の符号量を制御する符号量制御
手段からなる高能率符号化装置において、前記符号量制
御手段が、前記入力画像、前記予測演算を行う際に用い
る動きベクトル、前記予測演算によって得られた差分画
像、前記直交変換で得られた変換係数、現在までの発生
符号量、及び目的符号量と前記発生符号量との差のう
ち、少なくとも一つを用いて、前記ブロック毎にそのブ
ロックの保護度合いを表す重要度を設定し、前記重要度
と基準となるスケーリングファクタから、前記ブロック
のスケーリングファクタを決定することで、画質劣化を
抑え、画面全体の符号量を一定以下に抑えることができ
る。
In the high-efficiency coding apparatus according to a sixth aspect of the present invention, a plurality of predictive calculation methods are adaptively switched for an input image in units of blocks that divide the input image, and orthogonal transform and variable-length coding are performed. In the high-efficiency encoding apparatus comprising an encoding unit that performs the following, and a code amount control unit that controls the code amount at the time of encoding in the encoding unit, the code amount control unit performs the input image and the prediction calculation. The motion vector used when performing, the difference image obtained by the prediction operation, the transform coefficient obtained by the orthogonal transform, the generated code amount up to the present, and at least the difference between the target code amount and the generated code amount Using one of the blocks, an importance level indicating the degree of protection of the block is set for each block, and the scaling factor of the block is calculated from the importance level and a reference scaling factor. By determining, suppressing image quality deterioration can be suppressed code amounts of the entire screen to be constant below.

【0043】第7の発明の高能率符号化装置では、前記
符号量制御手段が、前記符号化対象ブロックがフレーム
間である場合に、前記符号化対象ブロックに対し予測演
算を行った差分ブロックの標本値よりアクティビティを
算出し、前記アクティビティが特定のしきい値より大き
い場合に、前記符号化対象ブロックのスケーリングファ
クタを基準スケーリングファクタより小さくする、すな
わち基準値よりもより小さい量子化ステップで量子化す
ることで、画質劣化を抑え、画面全体の符号量を一定以
下に抑えることができる。
In the high-efficiency coding apparatus according to a seventh aspect of the present invention, when the coding target block is between frames, the code amount control means determines whether or not a difference block obtained by performing a prediction operation on the coding target block is present. An activity is calculated from the sample value, and when the activity is larger than a specific threshold value, the scaling factor of the block to be coded is made smaller than a reference scaling factor, that is, quantized in a quantization step smaller than the reference value. By doing so, it is possible to suppress image quality deterioration and suppress the code amount of the entire screen to a certain value or less.

【0044】第8の発明の高能率符号化装置では、前記
符号量制御手段が、前記符号化対象ブロックの符号化方
式がフレーム間である場合に、前記変換係数のAC係数
値の絶対値和を算出し、前記絶対値和が特定のしきい値
より大きい場合に、前記符号化対象ブロックのスケーリ
ングファクタを基準スケーリングファクタより小さくす
る、すなわち基準値よりもより小さい量子化ステップで
量子化することで、画質劣化を抑え、画面全体の符号量
を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to an eighth aspect of the present invention, the code amount control means is configured such that, when the coding method of the block to be coded is between frames, the sum of absolute values of the AC coefficient values of the transform coefficients is used. And calculating the scaling factor of the current block to be smaller than a reference scaling factor when the sum of absolute values is larger than a specific threshold, that is, quantizing in a quantization step smaller than the reference value. Thus, image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0045】第9の発明の高能率符号化装置では、前記
符号量制御手段が、前記符号化対象ブロックの符号化方
式がフレーム間である場合に、前記変換係数のAC係数
値の中で絶対値が最大となる係数を算出し、前記係数値
が特定のしきい値より大きい場合に、前記符号化対象ブ
ロックのスケーリングファクタを基準スケーリングファ
クタより小さくする、すなわち基準値よりもより小さい
量子化ステップで量子化することで、画質劣化を抑え、
画面全体の符号量を一定以下に抑えることができる。
In the high-efficiency encoding apparatus according to a ninth aspect, when the encoding method of the block to be encoded is inter-frame, the code amount control means sets an absolute value in the AC coefficient value of the transform coefficient. Calculating a coefficient having a maximum value, and when the coefficient value is larger than a specific threshold value, reducing the scaling factor of the current block to be smaller than a reference scaling factor, that is, a quantization step that is smaller than the reference value. By quantizing with, image quality degradation is suppressed,
The code amount of the entire screen can be suppressed to a certain value or less.

【0046】第10の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記符号化対象ブロッ
クの標本値より第一のアクティビティを算出し、前記差
分ブロックの標本値より第二のアクティビティを算出
し、前記第一のアクティビティが特定の第一のしきい値
より大きく、かつ、前記第二のアクティビティが特定の
第二のしきい値より大きい場合に、前記符号化対象ブロ
ックのスケーリングファクタを基準スケーリングファク
タよりも大きくする、すなわち基準値よりもより大きい
量子化ステップで量子化することで、画質劣化を抑え、
画面全体の符号量を一定以下に抑えることができる。
In the high efficiency coding apparatus according to a tenth aspect of the present invention, when the coding method of the block to be coded is inter-frame, the code amount control means calculates the first value from the sample value of the block to be coded. Is calculated, a second activity is calculated from the sample value of the difference block, the first activity is greater than a specific first threshold, and the second activity is a specific second threshold. When the threshold value is larger than the threshold value, the scaling factor of the encoding target block is made larger than a reference scaling factor, that is, by quantizing in a quantization step larger than the reference value, image quality degradation is suppressed,
The code amount of the entire screen can be suppressed to a certain value or less.

【0047】第11の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記変換係数のAC係
数値の絶対値和を算出し、前記符号化対象ブロックの標
本値よりアクティビティを算出し、前記絶対値和が特定
の第一のしきい値より大きく、かつ、前記アクティビテ
ィが特定の第二のしきい値より大きい場合に、前記符号
化対象ブロックのスケーリングファクタを基準スケーリ
ングファクタよりも大きくする、すなわち基準値よりも
より大きい量子化ステップで量子化することで、画質劣
化を抑え、画面全体の符号量を一定以下に抑えることが
できる。
In the high efficiency coding apparatus according to the eleventh aspect of the present invention, the code amount control means may include, when the coding method of the block to be coded is between frames, the sum of absolute values of AC coefficients of the transform coefficients. Is calculated from the sample value of the block to be encoded, and the sum of absolute values is larger than a specific first threshold and the activity is larger than a specific second threshold. In addition, the scaling factor of the encoding target block is made larger than a reference scaling factor, that is, by quantizing in a quantization step larger than a reference value, image quality deterioration is suppressed, and the code amount of the entire screen is kept to a certain value or less. Can be suppressed.

【0048】第12の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記変換係数のAC係
数値の中で絶対値が最大となる係数を算出し、前記符号
化対象ブロックの標本値よりアクティビティを算出し、
前記係数が特定の第一のしきい値より大きく、かつ、前
記アクティビティが特定の第二のしきい値より大きい場
合に、前記符号化対象ブロックのスケーリングファクタ
を基準スケーリングファクタよりも大きくする、すなわ
ち基準値よりもより大きい量子化ステップで量子化する
ことで、画質劣化を抑え、画面全体の符号量を一定以下
に抑えることができる。
In the high-efficiency encoding apparatus according to the twelfth aspect, the code amount control means includes an absolute value in the AC coefficient value of the transform coefficient when the encoding method of the encoding target block is between frames. Calculate the coefficient with the maximum value, calculate the activity from the sample value of the block to be encoded,
When the coefficient is larger than a specific first threshold and the activity is larger than a specific second threshold, the scaling factor of the current block is made larger than a reference scaling factor, By performing quantization at a quantization step larger than the reference value, image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0049】第13の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記差分ブロックの標
本値よりアクティビティを算出し、前記アクティビティ
が特定のしきい値より小さい場合に、前記符号化対象ブ
ロックのスケーリングファクタを基準スケーリングファ
クタより小さくする、すなわち基準値よりもより小さい
量子化ステップで量子化することで、画質劣化を抑え、
画面全体の符号量を一定以下に抑えることができる。
In the high efficiency coding apparatus according to a thirteenth aspect, the code amount control means calculates an activity from a sample value of the difference block when the coding method of the block to be coded is between frames. When the activity is smaller than a specific threshold value, the scaling factor of the current block is made smaller than a reference scaling factor, that is, by quantizing in a quantization step smaller than the reference value, image quality degradation is reduced. Hold down,
The code amount of the entire screen can be suppressed to a certain value or less.

【0050】第14の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記変換係数のAC係
数値の絶対値和を算出し、前記絶対値和が特定のしきい
値より小さい場合に、前記符号化対象ブロックのスケー
リングファクタを基準スケーリングファクタより小さく
する、すなわち基準値よりもより小さい量子化ステップ
で量子化することで、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to a fourteenth aspect, the code amount control means is configured such that, when the coding method of the block to be coded is between frames, the absolute value sum of the AC coefficient values of the transform coefficients is used. And calculating the scaling factor of the current block to be smaller than a reference scaling factor when the sum of absolute values is smaller than a specific threshold value, that is, performing quantization in a quantization step smaller than the reference value. Thus, image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0051】第15の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記符号化対象ブロッ
クの標本値よりアクティビティを算出し、前記アクティ
ビティが特定のしきい値より小さい場合に、前記符号化
対象ブロックのスケーリングファクタを基準スケーリン
グファクタより小さくする、すなわち基準値よりもより
小さい量子化ステップで量子化することで、画質劣化を
抑え、画面全体の符号量を一定以下に抑えることができ
る。
In the high efficiency coding apparatus according to a fifteenth aspect of the present invention, when the coding method of the block to be coded is between frames, the code amount control means determines the activity from the sample value of the block to be coded. When the activity is smaller than a specific threshold value, the scaling factor of the current block is made smaller than a reference scaling factor, that is, by quantizing in a quantization step smaller than the reference value, the image quality is improved. Deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0052】第16の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記符号化対象ブロッ
ク内の、Y−R成分ブロックの標本値に対し、特定の第
一のしきい値より大きい値を持つ標本値の個数を算出
し、前記個数が特定の第二のしきい値より多い場合に、
前記符号化対象ブロックのスケーリングファクタを基準
スケーリングファクタより小さくする、すなわち基準値
よりもより小さい量子化ステップで量子化することで、
画質劣化を抑え、画面全体の符号量を一定以下に抑える
ことができる。
In the high efficiency coding apparatus according to a sixteenth aspect of the present invention, when the coding method of the block to be coded is inter-frame, the code amount control means sets the Y-R in the block to be coded. For the sample values of the component blocks, calculate the number of sample values having a value greater than a specific first threshold, and when the number is greater than a specific second threshold,
By making the scaling factor of the encoding target block smaller than the reference scaling factor, that is, by performing quantization at a quantization step smaller than the reference value,
Image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0053】第17の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記符号化対象ブロッ
ク内の、Y−B成分ブロックの標本値に対し、特定の第
一のしきい値より大きい値を持つ標本値の個数を算出
し、前記個数が特定の第二のしきい値より多い場合に、
前記符号化対象ブロックのスケーリングファクタを基準
スケーリングファクタより小さくする、すなわち基準値
よりもより小さい量子化ステップで量子化することで、
画質劣化を抑え、画面全体の符号量を一定以下に抑える
ことができる。
In the high efficiency coding apparatus according to a seventeenth aspect, when the coding method of the block to be coded is inter-frame, the code amount control means sets the YB in the block to be coded. For the sample values of the component blocks, calculate the number of sample values having a value greater than a specific first threshold, and when the number is greater than a specific second threshold,
By making the scaling factor of the encoding target block smaller than the reference scaling factor, that is, by performing quantization at a quantization step smaller than the reference value,
Image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0054】第18の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記符号化対象ブロッ
ク内の、Y−R成分ブロック、及びY−B成分ブロック
の標本値に対し、前記Y−R成分ブロックの標本値と前
記Y−B成分ブロックの標本値との差分値が、特定の第
一のしきい値より大きい値を持つ差分値の個数を算出
し、前記個数が特定の第二のしきい値より多い場合に、
前記符号化対象ブロックのスケーリングファクタを基準
スケーリングファクタより小さくする、すなわち基準値
よりもより小さい量子化ステップで量子化することで、
画質劣化を抑え、画面全体の符号量を一定以下に抑える
ことができる。
In the high efficiency coding apparatus according to the eighteenth aspect of the present invention, the code amount control means, when the coding method of the block to be coded is inter-frame, Y-R in the block to be coded. A difference value between the sample value of the YR component block and the sample value of the YB component block is larger than a specific first threshold value for the sample values of the component block and the YB component block. Calculate the number of difference values having a value, and when the number is greater than a specific second threshold,
By making the scaling factor of the encoding target block smaller than the reference scaling factor, that is, by performing quantization at a quantization step smaller than the reference value,
Image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0055】第19の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記符号化対象ブロッ
ク内の、Y−R成分ブロック、及びY−B成分ブロック
の標本値に対し、前記Y−B成分ブロックの標本値と前
記Y−R成分ブロックの標本値との差分値が、特定の第
一のしきい値より大きい値を持つ差分値の個数を算出
し、前記個数が特定の第二のしきい値より多い場合に、
前記符号化対象ブロックのスケーリングファクタを基準
スケーリングファクタより小さくする、すなわち基準値
よりもより小さい量子化ステップで量子化することで、
画質劣化を抑え、画面全体の符号量を一定以下に抑える
ことができる。
In the high-efficiency coding apparatus according to a nineteenth aspect, the code amount control means, when the coding scheme of the block to be coded is inter-frame, the Y-R in the block to be coded. A difference value between the sample value of the YB component block and the sample value of the YR component block is larger than a specific first threshold value for the sample values of the component block and the YB component block. Calculate the number of difference values having a value, and when the number is greater than a specific second threshold,
By making the scaling factor of the encoding target block smaller than the reference scaling factor, that is, by performing quantization at a quantization step smaller than the reference value,
Image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0056】第20の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記符号化対象ブロッ
ク内の、Y成分ブロックの標本値に対し、特定の第一の
しきい値より大きい値を持つ標本値の個数を算出し、前
記個数が特定の第二のしきい値より多い場合に、前記符
号化対象ブロックのスケーリングファクタを基準スケー
リングファクタより大きくする、すなわち基準値よりも
より大きい量子化ステップで量子化することで、画質劣
化を抑え、画面全体の符号量を一定以下に抑えることが
できる。
In the high-efficiency coding apparatus according to the twentieth aspect, the code amount control means may include, when the coding method of the block to be coded is inter-frame, a Y component block in the block to be coded. Calculate the number of sample values having a value greater than a specific first threshold value for the sample values, and when the number is greater than a specific second threshold value, scale the coding target block. By making the factor larger than the reference scaling factor, that is, by performing quantization in a quantization step larger than the reference value, it is possible to suppress image quality deterioration and suppress the code amount of the entire screen to a certain value or less.

【0057】第21の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの符号化
方式がフレーム間である場合に、前記符号化対象ブロッ
ク内の、Y成分ブロックの標本値に対し、特定の第一の
しきい値より小さい値を持つ標本値の個数を算出し、前
記個数が特定の第二のしきい値より多い場合に、前記符
号化対象ブロックのスケーリングファクタを基準スケー
リングファクタより大きくする、すなわち基準値よりも
より大きい量子化ステップで量子化することで、画質劣
化を抑え、画面全体の符号量を一定以下に抑えることが
できる。
In the high-efficiency encoding apparatus according to the twenty-first aspect, the code amount control means, when the encoding scheme of the encoding target block is between frames, is a Y component block in the encoding target block. Calculate the number of sample values having a value smaller than a specific first threshold value for the sample values of, and when the number is larger than a specific second threshold value, scale the coding target block. By making the factor larger than the reference scaling factor, that is, by performing quantization in a quantization step larger than the reference value, it is possible to suppress image quality deterioration and suppress the code amount of the entire screen to a certain value or less.

【0058】第22の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの画面上
の位置が上端、下端、左端、及び右端のいずれかである
場合、前記符号化対象ブロックのスケーリングファクタ
を基準スケーリングファクタより大きくする、すなわち
基準値よりもより大きい量子化ステップで量子化するこ
とで、画質劣化を抑え、画面全体の符号量を一定以下に
抑えることができる。
In the high-efficiency encoding apparatus according to a twenty-second aspect, the code amount control means, if the position of the block to be encoded on the screen is any of an upper end, a lower end, a left end, and a right end, By making the scaling factor of the block to be converted larger than the reference scaling factor, that is, by performing quantization in a quantization step larger than the reference value, it is possible to suppress image quality degradation and suppress the code amount of the entire screen to a certain value or less.

【0059】第23の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの動きベ
クトルと、前記符号化対象ブロックの周辺ブロックの動
きベクトルとのずれを算出し、前記ベクトルのずれが特
定のしきい値より多い場合に、前記符号化対象ブロック
のスケーリングファクタを基準スケーリングファクタよ
り小さくする、すなわち基準値よりもより小さい量子化
ステップで量子化することで、画質劣化を抑え、画面全
体の符号量を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to a twenty-third aspect, the code amount control means calculates a deviation between a motion vector of the block to be coded and a motion vector of a peripheral block of the block to be coded. When the vector shift is larger than a specific threshold value, the scaling factor of the current block is made smaller than a reference scaling factor, that is, by quantizing in a quantization step smaller than the reference value, image quality degradation And the code amount of the entire screen can be suppressed to a certain value or less.

【0060】第24の発明の高能率符号化装置では、前
記符号量制御手段が、前記符号化対象ブロックの動きベ
クトルと、前記符号化対象ブロックの周辺ブロックの動
きベクトルの種類を検出し、前記符号化対象ブロックの
動きベクトルの種類が、前記符号化対象ブロックの周辺
ブロックの動きベクトルの種類と異なっていた場合に、
前記符号化対象ブロックのスケーリングファクタを基準
スケーリングファクタより小さくする、すなわち基準値
よりもより小さい量子化ステップで量子化することで、
画質劣化を抑え、画面全体の符号量を一定以下に抑える
ことができる。
In the high efficiency coding apparatus according to a twenty-fourth aspect, the code amount control means detects a motion vector of the block to be coded and a type of a motion vector of a block around the block to be coded. When the type of the motion vector of the encoding target block is different from the type of the motion vector of the peripheral block of the encoding target block,
By making the scaling factor of the encoding target block smaller than the reference scaling factor, that is, by performing quantization at a quantization step smaller than the reference value,
Image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0061】第25の発明の高能率符号化装置では、入
力された画像に対し、複数の予測演算方式を前記入力画
像を分割するブロック単位で適応的に切り替え、直交変
換、及び可変長符号化を行う符号化手段と、前記符号化
手段における符号化の際の符号量を制御する符号量制御
手段からなる高能率符号化装置において、前記符号量制
御手段が、前記ブロック単位で検出した第一の動きベク
トルと、複数の前記ブロックからなるスーパーブロック
単位で検出した第二の動きベクトルを用いて、前記ブロ
ック毎にそのブロックの保護度合いを表す重要度を検出
し、前記重要度と基準となるスケーリングファクタか
ら、前記ブロックのスケーリングファクタを決定するこ
とで、画質劣化を抑え、画面全体の符号量を一定以下に
抑えることができる。
In the high-efficiency coding apparatus according to the twenty-fifth aspect, a plurality of predictive operation methods are adaptively switched for an input image in units of blocks that divide the input image, and orthogonal transform and variable-length coding are performed. In the high-efficiency coding apparatus comprising a coding means for performing the following, and a code amount control means for controlling the code amount at the time of encoding in the coding means, the code amount control means, the first detected in the block unit Using the motion vector and the second motion vector detected in a super block unit composed of a plurality of blocks, the importance indicating the degree of protection of the block is detected for each block, and the importance is used as a reference. By determining the scaling factor of the block from the scaling factor, image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0062】(実施の形態1)以下、本発明の第1の実
施の形態について図1、2を参照しながら説明する。
(Embodiment 1) Hereinafter, a first embodiment of the present invention will be described with reference to FIGS.

【0063】図1において、100は第一のブロック化
部、101は第一のマクロブロック部、102は動きベ
クトル検出部、103は差分画像生成部、104は第二
のブロック化部、105は第二のマクロブロック化部、
106は圧縮部入力マクロブロック決定部、107は直
交変換部、108は重要度算出部、109は符号量先読
み部、110は最終スケーリングファクタ決定部、11
1はスケーリングファクタ決定部、112は量子化部、
113は可変長符号化部、114はローカルデコーダで
ある。
In FIG. 1, reference numeral 100 denotes a first blocking unit, 101 denotes a first macroblock unit, 102 denotes a motion vector detecting unit, 103 denotes a difference image generating unit, 104 denotes a second blocking unit, and 105 denotes a second blocking unit. A second macroblock generator,
106 is a compression unit input macroblock determination unit, 107 is an orthogonal transformation unit, 108 is an importance calculation unit, 109 is a code amount prefetch unit, 110 is a final scaling factor determination unit, 11
1 is a scaling factor determination unit, 112 is a quantization unit,
Reference numeral 113 denotes a variable length coding unit, and 114 denotes a local decoder.

【0064】次に本実施の形態の動作について説明す
る。入力された画像信号は第一のブロック化部100、
動きベクトル検出部102、及び差分画像生成部103
に入力される。第一のブロック化部100は入力された
画像の標本値を水平方向に8個、垂直方法に8個集め
て、8×8個の標本値からなる第一のブロックを生成す
る。第一のブロックは第一のマクロブロック化部101
に入力される。第一のマクロブロック化部101は、第
一のブロックを複数個集めて第一のマクロブロックを生
成する。第一のマクロブロックは圧縮入力マクロブロッ
ク決定部106、及び重要度算出部108に入力され
る。動きベクトル検出部102は、入力された画像と、
その予測に用いる参照画像から動きベクトル検出を行
い、動きベクトルを出力する。動きベクトルは差分画像
生成部103、及び重要度算出部108に入力される。
Next, the operation of this embodiment will be described. The input image signal is input to the first blocking unit 100,
Motion vector detection unit 102 and difference image generation unit 103
Is input to The first blocking unit 100 collects eight sample values of the input image in the horizontal direction and eight sample values in the vertical direction, and generates a first block including 8 × 8 sample values. The first block is a first macroblock conversion unit 101
Is input to The first macroblock forming unit 101 generates a first macroblock by collecting a plurality of first blocks. The first macroblock is input to the compressed input macroblock determination unit 106 and the importance calculation unit 108. The motion vector detection unit 102 calculates the input image,
A motion vector is detected from a reference image used for the prediction, and a motion vector is output. The motion vector is input to the difference image generation unit 103 and the importance calculation unit 108.

【0065】差分画像生成部103は、入力された動き
ベクトルと参照画像を用いて予測画像を生成し、入力さ
れた画像と予測画像との差分演算を行い、差分画像を生
成する。差分画像は第二のブロック化部104に入力さ
れる。第二のブロック化部104は入力された差分画像
の標本値を水平方向に8個、垂直方法に8個集めて、8
×8個の標本値からなる第二のブロックを生成する。第
二のブロックは第二のマクロブロック化部105に入力
される。第二のマクロブロック化部105は、第二のブ
ロックを複数個集めて第二のマクロブロックを生成す
る。第二のマクロブロックは圧縮入力マクロブロック決
定部106に入力される。圧縮入力マクロブロック決定
部106は、符号化の対象となっている画像の符号化の
方式がフレーム内ならば、第一のマクロブロックを出力
し、この場合、第一のマクロブロックは直交変換部10
7に入力される。これに対し、符号化の方式がフレーム
間ならば第二のマクロブロックを出力し、この場合、第
二のマクロブロックが直交変換部107に入力される。
直交変換部107は入力されたマクロブロックに対し、
ブロック単位で直交変換を行い、係数マクロブロックを
生成する。係数マクロブロックは符号量先読み部10
9、重要度算出部108、及び量子化部112に入力さ
れる。重要度算出部108は入力された第一マクロブロ
ック、第二マクロブロック、係数マクロブロック、及び
動きベクトルの情報の内、少なくとも一つの情報を用い
て、そのマクロブロックの重要度を設定する。マクロブ
ロックの重要度は符号量先読み部109、及び量子化部
112に入力される。スケーリングファクタ決定部11
1は、既に符号化され、かつ現在符号化対象となってい
る画像とピクチャタイプが同じ画像で使用されたスケー
リングファクタの情報を用いて、選択可能なK個のスケ
ーリングファクタの中から、候補となるL個のスケーリ
ングファクタを決定する。
The difference image generation unit 103 generates a prediction image using the input motion vector and the reference image, performs a difference operation between the input image and the prediction image, and generates a difference image. The difference image is input to the second blocking unit 104. The second blocking unit 104 collects eight sample values of the input difference image in the horizontal direction and eight sample values in the vertical method, and
Generate a second block consisting of × 8 sample values. The second block is input to the second macroblock forming unit 105. The second macroblock forming unit 105 generates a second macroblock by collecting a plurality of second blocks. The second macroblock is input to the compressed input macroblock determination unit 106. The compression input macroblock determination unit 106 outputs the first macroblock if the encoding scheme of the image to be encoded is within a frame. In this case, the first macroblock is an orthogonal transformation unit. 10
7 is input. On the other hand, if the encoding method is between frames, a second macroblock is output. In this case, the second macroblock is input to the orthogonal transform unit 107.
The orthogonal transform unit 107 converts the input macroblock
The orthogonal transform is performed in block units to generate coefficient macro blocks. The coefficient macroblock is a code amount prefetch unit 10
9, input to the importance calculation unit 108 and the quantization unit 112. The importance calculation unit 108 sets the importance of the macroblock using at least one of the input information of the first macroblock, the second macroblock, the coefficient macroblock, and the motion vector. The importance of the macroblock is input to the code amount prefetch unit 109 and the quantization unit 112. Scaling factor determination unit 11
1 is selected from among K selectable scaling factors using information of a scaling factor used in an image which has already been encoded and has the same picture type as the image to be currently encoded. L scaling factors are determined.

【0066】例えば、選択可能なスケーリングファクタ
の総数を31(K=31)、候補となるスケーリングフ
ァクタの総数を9(L=9)とし、現在符号化対象とな
っている画像のピクチャタイプがPピクチャで、その直
前の符号化済みのPピクチャのスケーリングファクタが
16であった場合、現在符号化対象となっている画像の
符号量見積もりを行うための候補となるスケーリングフ
ァクタには、1、13、14、15、16、17、1
8、19、31が選択される。符号量先読み部109
は、各スケーリングファクタと、入力された重要度よ
り、そのマクロブロックのスケーリングファクタを決定
し、決定されたスケーリングファクタを用いて係数マク
ロブロックを量子化、可変長符号化を行う。各マクロブ
ロックは、その重要度に応じて4段階のクラスに分けら
れ、各クラスに対応したオフセットが与えられる。例え
ば、クラスが0のマクロブロックに対してはオフセット
0が与えられ、クラスが3のマクロブロックに対しては
オフセット3が与えられる。スケーリングファクタを1
6として符号量の先読みを行う場合、クラスが0のマク
ロブロックに対しては、16+0=16で量子化を行
い、クラスが3のマクロブロックに対しては16+3=
19で量子化を行う。これにより重要と判断されたマク
ロブロックはより小さなスケーリングファクタで量子化
され、重要でないと判断されたマクロブロックはより大
きなスケーリングファクタで量子化されるため、画像の
特徴に応じた符号量制御が可能となる。
For example, assume that the total number of selectable scaling factors is 31 (K = 31), the total number of candidate scaling factors is 9 (L = 9), and the picture type of the image currently being encoded is P In the case of a picture, if the scaling factor of the immediately preceding coded P picture is 16, the scaling factors that are candidates for estimating the code amount of the image currently being encoded are 1, 13 , 14, 15, 16, 17, 1
8, 19 and 31 are selected. Code amount look-ahead unit 109
Determines the scaling factor of the macroblock from each scaling factor and the input importance, quantizes the coefficient macroblock using the determined scaling factor, and performs variable length coding. Each macro block is divided into four levels of classes according to its importance, and an offset corresponding to each class is given. For example, offset 0 is given to a macroblock of class 0, and offset 3 is given to a macroblock of class 3. Scaling factor is 1
When prefetching the code amount as 6 is performed, quantization is performed by 16 + 0 = 16 for a macroblock of class 0, and 16 + 3 = 16 for a macroblock of class 3
At 19, quantization is performed. As a result, macroblocks that are determined to be important are quantized with a smaller scaling factor, and macroblocks that are determined to be unimportant are quantized with a larger scaling factor, so that the code amount can be controlled according to the characteristics of the image. Becomes

【0067】この処理を一画面中の全マクロブロックに
対して行い、各スケーリングファクタで量子化、及び可
変長符号化を行ったときの符号量を算出する。各スケー
リングファクタ毎に算出したL個の符号量は最終スケー
リングファクタ決定部110に入力される。最終スケー
リングファクタ決定部110は入力されたL個の符号量
の中で、目的符号量に最も近い符号量を与えるスケーリ
ングファクタを最終スケーリングファクタとして決定す
る。最終スケーリングファクタは量子化部112、及び
スケーリングファクタ決定部111に入力される。スケ
ーリングファクタ決定部は、同一ピクチャのスケーリン
グファクタを入力されたスケーリングファクタに置き換
える。量子化部112は入力された最終スケーリングフ
ァクタに重要度で定められるオフセットを加え、係数マ
クロブロックを量子化し、量子化データを出力する。量
子化データは可変長符号化部113に入力される。可変
長符号化部113は入力された量子化データを可変長符
号化し、符号語を出力する。符号語はローカルデコーダ
114に入力される。ローカルデコーダ114は入力さ
れた符号語を復号し得られる復号画像を差分画像生成部
103に入力する。
This processing is performed for all macroblocks in one screen, and the code amount when quantization and variable length coding are performed with each scaling factor is calculated. The L code amounts calculated for each scaling factor are input to the final scaling factor determination unit 110. The final scaling factor determination unit 110 determines a scaling factor that gives the code amount closest to the target code amount among the input L code amounts as the final scaling factor. The final scaling factor is input to the quantization unit 112 and the scaling factor determination unit 111. The scaling factor determination unit replaces the scaling factor of the same picture with the input scaling factor. The quantization unit 112 adds an offset determined by importance to the input final scaling factor, quantizes the coefficient macroblock, and outputs quantized data. The quantized data is input to the variable length coding unit 113. The variable length coding unit 113 performs variable length coding on the input quantized data, and outputs a codeword. The codeword is input to local decoder 114. The local decoder 114 inputs a decoded image obtained by decoding the input codeword to the difference image generation unit 103.

【0068】図2を用いて、先に述べたK=31、L=
9で、直前に符号化した同一ピクチャのスケーリングフ
ァクタが16だった場合のスケーリングファクタ決定
部、符号量先読み部、及び最終スケーリングファクタ決
定部の動作について説明する。150はスケーリングフ
ァクタ決定部、151は符号量先読み部、152は最終
スケーリングファクタ決定部である。この場合、候補と
なるスケーリングファクタは1、13、14、15、1
6、17、18、19、31であり、各スケーリングフ
ァクタに応じて符号量の算出を行う。いま各スケーリン
グファクタの符号量が、図2に示すように算出されたと
する。9つの符号量は最終スケーリングファクタ決定部
152に入力される。最終スケーリングファクタ決定部
152は、目的符号量に最も近い符号量を与えるスケー
リングファクタを、最終スケーリングファクタとして決
定する。この場合、目的符号量は62000ビットであ
るため、最終スケーリングファクタは15となる。
Referring to FIG. 2, K = 31 and L =
9, the operation of the scaling factor determination unit, the code amount prefetch unit, and the final scaling factor determination unit when the scaling factor of the same picture encoded immediately before is 16 will be described. 150 is a scaling factor determination unit, 151 is a code amount prefetch unit, and 152 is a final scaling factor determination unit. In this case, the candidate scaling factors are 1, 13, 14, 15, 1
6, 17, 18, 19, and 31, and the code amount is calculated according to each scaling factor. Now, it is assumed that the code amount of each scaling factor is calculated as shown in FIG. The nine code amounts are input to the final scaling factor determination unit 152. The final scaling factor determination unit 152 determines a scaling factor that gives the code amount closest to the target code amount as the final scaling factor. In this case, since the target code amount is 62000 bits, the final scaling factor is 15.

【0069】これにより、より少ない回路規模で画質劣
化を抑え、画面全体の符号量を一定以下に抑えることが
できる。
As a result, image quality degradation can be suppressed with a smaller circuit scale, and the code amount of the entire screen can be suppressed to a certain value or less.

【0070】(実施の形態2)以下、本発明の第2の実
施の形態について図1、3を参照しながら説明する。
(Embodiment 2) Hereinafter, a second embodiment of the present invention will be described with reference to FIGS.

【0071】各構成、及び基本的な動作は実施の形態1
で述べた通りであるが、スケーリングファクタ決定部1
11が、既に符号化され、かつ現在符号化対象となって
いる画像とピクチャタイプが同じ画像で使用されたスケ
ーリングファクタの周辺を細かく、その他の領域を荒く
分割して、選択可能なK個のスケーリングファクタの中
から、候補となるL個のスケーリングファクタを決定す
る。
Each configuration and basic operation are described in the first embodiment.
As described above, the scaling factor determination unit 1
11 finely divides the periphery of a scaling factor used in an image which is already coded and has the same picture type as that of an image to be currently coded and roughly divides other areas, and selects K selectable areas. From the scaling factors, L candidate scaling factors are determined.

【0072】図3を用いて、先に述べたK=31、L=
9で、直前に符号化した同一ピクチャのスケーリングフ
ァクタが16だった場合のスケーリングファクタ決定
部、符号量先読み部、及び最終スケーリングファクタ決
定部の動作について説明する。200はスケーリングフ
ァクタ決定部、201は符号量先読み部、202は最終
スケーリングファクタ決定部である。この場合、候補と
なるスケーリングファクタは1、9、13、15、1
6、17、19、23、31であり、各スケーリングフ
ァクタに応じて符号量の算出を行う。いま各スケーリン
グファクタの符号量が、図3に示すように算出されたと
する。9つの符号量は最終スケーリングファクタ決定部
202に入力される。最終スケーリングファクタ決定部
202は、目的符号量に最も近い符号量を与えるスケー
リングファクタを、最終スケーリングファクタとして決
定する。この場合、目的符号量は62000ビットであ
るため、最終スケーリングファクタは15となる。
Referring to FIG. 3, K = 31 and L =
9, the operation of the scaling factor determination unit, the code amount prefetch unit, and the final scaling factor determination unit when the scaling factor of the same picture encoded immediately before is 16 will be described. Reference numeral 200 denotes a scaling factor determination unit, 201 denotes a code amount look-ahead unit, and 202 denotes a final scaling factor determination unit. In this case, the candidate scaling factors are 1, 9, 13, 15, 1
6, 17, 19, 23, and 31, and the code amount is calculated according to each scaling factor. Now, it is assumed that the code amount of each scaling factor is calculated as shown in FIG. The nine code amounts are input to the final scaling factor determination unit 202. The final scaling factor determination unit 202 determines a scaling factor that gives the code amount closest to the target code amount as the final scaling factor. In this case, since the target code amount is 62000 bits, the final scaling factor is 15.

【0073】これにより、より少ない回路規模で画質劣
化を抑え、画面全体の符号量を一定以下に抑えることが
できる。
As a result, it is possible to suppress the image quality deterioration with a smaller circuit scale and to suppress the code amount of the entire screen to a certain value or less.

【0074】(実施の形態3)以下、本発明の第3の実
施の形態について図4、5、6を参照しながら説明す
る。
(Embodiment 3) Hereinafter, a third embodiment of the present invention will be described with reference to FIGS.

【0075】図4において、300は第一のブロック化
部、301は第一のマクロブロック部、302は動きベ
クトル検出部、303は差分画像生成部、304は第二
のブロック化部、305は第二のマクロブロック化部、
306は圧縮部入力マクロブロック決定部、307は直
交変換部、308は重要度算出部、309は符号量先読
み部、310は最終スケーリングファクタ決定部、31
1はシーンチェンジ検出部、312はスケーリングファ
クタ決定部、313は量子化部、314は可変長符号化
部、315はローカルデコーダである。
In FIG. 4, reference numeral 300 denotes a first blocking unit, 301 denotes a first macroblock unit, 302 denotes a motion vector detecting unit, 303 denotes a difference image generating unit, 304 denotes a second blocking unit, and 305 denotes a second blocking unit. A second macroblock generator,
306 is a compression unit input macroblock determination unit, 307 is an orthogonal transformation unit, 308 is an importance calculation unit, 309 is a code amount prefetch unit, 310 is a final scaling factor determination unit, 31
1 is a scene change detection unit, 312 is a scaling factor determination unit, 313 is a quantization unit, 314 is a variable length coding unit, and 315 is a local decoder.

【0076】次に本実施の形態の動作について説明す
る。入力された画像信号は第一のブロック化部300、
動きベクトル検出部302、及び差分画像生成部303
に入力される。第一のブロック化部300は入力された
画像の標本値を水平方向に8個、垂直方法に8個集め
て、8×8個の標本値からなる第一のブロックを生成す
る。第一のブロックは第一のマクロブロック化部301
に入力される。第一のマクロブロック化部301は、第
一のブロックを複数個集めて第一のマクロブロックを生
成する。第一のマクロブロックは圧縮入力マクロブロッ
ク決定部306、及び重要度算出部308に入力され
る。動きベクトル検出部302は、入力された画像と、
その予測に用いる参照画像から動きベクトル検出を行
い、動きベクトルを出力する。動きベクトルは差分画像
生成部303、及び重要度算出部308に入力される。
Next, the operation of this embodiment will be described. The input image signal is input to the first blocking unit 300,
Motion vector detection unit 302 and difference image generation unit 303
Is input to The first blocking unit 300 collects eight sample values of the input image in the horizontal direction and eight sample values in the vertical direction, and generates a first block including 8 × 8 sample values. The first block is a first macroblock forming unit 301.
Is input to The first macroblock generation unit 301 generates a first macroblock by collecting a plurality of first blocks. The first macroblock is input to the compressed input macroblock determining unit 306 and the importance calculating unit 308. The motion vector detection unit 302 calculates the input image,
A motion vector is detected from a reference image used for the prediction, and a motion vector is output. The motion vector is input to the difference image generation unit 303 and the importance calculation unit 308.

【0077】差分画像生成部303は、入力された動き
ベクトルと参照画像を用いて予測画像を生成し、入力さ
れた画像と予測画像との差分演算を行い、差分画像を生
成する。差分画像は第二のブロック化部304、及びシ
ーンチェンジ検出部311に入力される。シーンチェン
ジ検出部311は入力された差分画像よりシーンチェン
ジは発生したか否かを検出し、シーンチェンジ情報を出
力する。シーンチェンジ情報はスケーリングファクタ決
定部312に入力される。第二のブロック化部304は
入力された差分画像の標本値を水平方向に8個、垂直方
法に8個集めて、8×8個の標本値からなる第二のブロ
ックを生成する。第二のブロックは第二のマクロブロッ
ク化部305に入力される。第二のマクロブロック化部
305は、第二のブロックを複数個集めて第二のマクロ
ブロックを生成する。第二のマクロブロックは圧縮入力
マクロブロック決定部306に入力される。圧縮入力マ
クロブロック決定部306は、符号化の対象となってい
る画像の符号化の方式がフレーム内ならば、第一のマク
ロブロックを出力し、この場合、第一のマクロブロック
は直交変換部307に入力される。これに対し、符号化
の方式がフレーム間ならば第二のマクロブロックを出力
し、この場合、第二のマクロブロックが直交変換部30
7に入力される。直交変換部307は入力されたマクロ
ブロックに対し、ブロック単位で直交変換を行い、係数
マクロブロックを生成する。係数マクロブロックは符号
量先読み部309、重要度算出部308、及び量子化部
313に入力される。重要度算出部308は入力された
第一マクロブロック、第二マクロブロック、係数マクロ
ブロック、及び動きベクトルの情報の内、少なくとも一
つの情報を用いて、そのマクロブロックの重要度を設定
する。マクロブロックの重要度は符号量先読み部30
9、及び量子化部313に入力される。スケーリングフ
ァクタ決定部312は、シーンチェンジ情報と、既に符
号化され、かつ現在符号化対象となっている画像とピク
チャタイプが同じ画像で使用されたスケーリングファク
タの情報を用いて、シーンチェンジが発生した場合は、
シーンチェンジ発生用のL個の候補スケーリングファク
タを決定し、シーンチェンジが発生していない場合は、
シーンチェンジ非発生用のL個の候補スケーリングファ
クタを決定、出力する。
The difference image generation unit 303 generates a prediction image using the input motion vector and the reference image, performs a difference operation between the input image and the prediction image, and generates a difference image. The difference image is input to the second blocking unit 304 and the scene change detection unit 311. The scene change detection unit 311 detects whether a scene change has occurred from the input difference image and outputs scene change information. Scene change information is input to the scaling factor determination unit 312. The second blocking unit 304 collects eight sample values of the input difference image in the horizontal direction and eight sample values in the vertical direction, and generates a second block including 8 × 8 sample values. The second block is input to the second macroblock forming unit 305. The second macroblock generator 305 collects a plurality of second blocks to generate a second macroblock. The second macroblock is input to the compressed input macroblock determination unit 306. The compression input macroblock determining unit 306 outputs the first macroblock if the encoding scheme of the image to be encoded is within a frame. In this case, the first macroblock is 307. On the other hand, if the encoding method is between frames, a second macroblock is output. In this case, the second macroblock is
7 is input. The orthogonal transform unit 307 performs an orthogonal transform on the input macroblock in block units to generate a coefficient macroblock. The coefficient macroblock is input to the code amount prefetch unit 309, the importance calculation unit 308, and the quantization unit 313. The importance calculation unit 308 sets the importance of the macroblock using at least one of the input information of the first macroblock, the second macroblock, the coefficient macroblock, and the motion vector. The importance of the macroblock is determined by the code amount prefetch unit 30.
9 and the quantization unit 313. The scaling factor determination unit 312 uses the scene change information and the scaling factor information used in the image that is already encoded and has the same picture type as the image that is currently being encoded, and a scene change has occurred. If
Determine L candidate scaling factors for scene change occurrence, and if no scene change has occurred,
Determine and output L candidate scaling factors for non-occurrence of scene change.

【0078】例えば、選択可能なスケーリングファクタ
の総数を31(K=31)、候補となるスケーリングフ
ァクタの総数を9(L=9)とし、現在符号化対象とな
っている画像のピクチャタイプがPピクチャで、その直
前の符号化済みのPピクチャのスケーリングファクタが
16であった場合、差分画像のアクティビティが特定の
しきい値を越えたらシーンチェンジが発生したとして、
現在符号化対象となっている画像の符号量見積もりを行
うための候補となるスケーリングファクタとして、シー
ンチェンジ発生用の候補スケーリングファクタ、1、
4、8、12、16、20、24、28、31が選択さ
れる。逆に差分画像のアクティビティがしきい値よりも
小さければシーンチェンジが発生しなかったとして、シ
ーンチェンジ非発生用の候補スケーリングファクタ、
1、9、13、15、16、17、19、23、31が
選択される。符号量先読み部309は、各スケーリング
ファクタと、入力された重要度より、そのマクロブロッ
クのスケーリングファクタを決定し、決定されたスケー
リングファクタを用いて係数マクロブロックを量子化、
可変長符号化を行う。
For example, the total number of selectable scaling factors is 31 (K = 31), the total number of candidate scaling factors is 9 (L = 9), and the picture type of the image to be encoded is P In a picture, if the scaling factor of the immediately preceding coded P picture is 16, if the activity of the difference image exceeds a specific threshold, it is determined that a scene change has occurred.
As candidate scaling factors for estimating the code amount of the image currently being encoded, candidate scaling factors for scene change occurrence, 1,
4, 8, 12, 16, 20, 24, 28, 31 are selected. Conversely, if the activity of the difference image is smaller than the threshold, no scene change has occurred, and a candidate scaling factor for non-occurrence of a scene change,
1, 9, 13, 15, 16, 17, 19, 23 and 31 are selected. The code amount look-ahead unit 309 determines a scaling factor of the macroblock from each scaling factor and the input importance, quantizes the coefficient macroblock using the determined scaling factor,
Perform variable length coding.

【0079】実施の形態1で述べたように各マクロブロ
ックは、その重要度に応じて4段階のクラスに分けら
れ、各クラスに対応したオフセットが与えられる。各ス
ケーリングファクタ毎に算出したL個の符号量は最終ス
ケーリングファクタ決定部310に入力される。最終ス
ケーリングファクタ決定部310は入力されたL個の符
号量の中で、目的符号量に最も近い符号量を与えるスケ
ーリングファクタを最終スケーリングファクタとして決
定する。最終スケーリングファクタは量子化部313、
及びスケーリングファクタ決定部312に入力される。
スケーリングファクタ決定部312は、同一ピクチャの
スケーリングファクタを入力されたスケーリングファク
タに置き換える。量子化部313は入力された最終スケ
ーリングファクタに重要度で定められるオフセットを加
え、係数マクロブロックを量子化し、量子化データを出
力する。量子化データは可変長符号化部314に入力さ
れる。可変長符号化部314は入力された量子化データ
を可変長符号化し、符号語を出力する。符号語はローカ
ルデコーダ315に入力される。ローカルデコーダ31
5は入力された符号語を復号して得られる復号画像を、
差分画像生成部303に入力される。
As described in the first embodiment, each macro block is divided into four stages according to its importance, and an offset corresponding to each class is given. The L code amounts calculated for each scaling factor are input to final scaling factor determination section 310. The final scaling factor determination unit 310 determines a scaling factor that gives the code amount closest to the target code amount among the input L code amounts as the final scaling factor. The final scaling factor is the quantization unit 313,
And a scaling factor determination unit 312.
The scaling factor determination unit 312 replaces the scaling factor of the same picture with the input scaling factor. The quantization unit 313 adds an offset determined by importance to the input final scaling factor, quantizes the coefficient macroblock, and outputs quantized data. The quantized data is input to the variable length coding unit 314. The variable length coding unit 314 performs variable length coding on the input quantized data, and outputs a codeword. The codeword is input to local decoder 315. Local decoder 31
5 is a decoded image obtained by decoding the input codeword,
It is input to the difference image generation unit 303.

【0080】図5、6を用いて、先に述べたK=31、
L=9、直前に符号化した同一ピクチャのスケーリング
ファクタを16とし、シーンチェンジが発生した場合
と、発生しなかった場合のスケーリングファクタ決定
部、符号量先読み部、及び最終スケーリングファクタ決
定部の動作について説明する。
Referring to FIGS. 5 and 6, K = 31,
L = 9, the scaling factor of the same picture coded immediately before is 16, and the operations of the scaling factor determining unit, code amount prefetch unit, and final scaling factor determining unit when a scene change occurs and when a scene change does not occur Will be described.

【0081】図5はシーンチェンジが発生した場合であ
る。350はスケーリングファクタ決定部、351は符
号量先読み部、352は最終スケーリングファクタ決定
部である。この場合、候補となるスケーリングファクタ
は1、4、8、12、16、20、24、28、31で
あり、各スケーリングファクタに応じて符号量の算出を
行う。いま各スケーリングファクタの符号量が、図5に
示すように算出されたとする。9つの符号量は最終スケ
ーリングファクタ決定部352に入力される。最終スケ
ーリングファクタ決定部352は、目的符号量に最も近
い符号量を与えるスケーリングファクタを、最終スケー
リングファクタとして決定する。この場合、目的符号量
は62000ビットであるため、最終スケーリングファ
クタは12となる。
FIG. 5 shows a case where a scene change has occurred. 350 is a scaling factor determination unit, 351 is a code amount prefetch unit, and 352 is a final scaling factor determination unit. In this case, the candidate scaling factors are 1, 4, 8, 12, 16, 20, 24, 28, and 31, and the code amount is calculated according to each scaling factor. Now, it is assumed that the code amount of each scaling factor is calculated as shown in FIG. The nine code amounts are input to the final scaling factor determination unit 352. The final scaling factor determination unit 352 determines a scaling factor that gives the code amount closest to the target code amount as the final scaling factor. In this case, since the target code amount is 62000 bits, the final scaling factor is 12.

【0082】図6はシーンチェンジが発生しなかった場
合である。360はスケーリングファクタ決定部、36
1は符号量先読み部、362は最終スケーリングファク
タ決定部である。この場合、候補となるスケーリングフ
ァクタは1、9、13、15、16、17、19、2
3、31であり、各スケーリングファクタに応じて符号
量の算出を行う。いま各スケーリングファクタの符号量
が、図6に示すように算出されたとする。9つの符号量
は最終スケーリングファクタ決定部352に入力され
る。最終スケーリングファクタ決定部352は、目的符
号量に最も近い符号量を与えるスケーリングファクタ
を、最終スケーリングファクタとして決定する。この場
合、目的符号量は62000ビットであるため、最終ス
ケーリングファクタは15となる。
FIG. 6 shows a case where no scene change has occurred. 360 is a scaling factor determination unit;
1 is a code amount prefetch unit, and 362 is a final scaling factor determination unit. In this case, the candidate scaling factors are 1, 9, 13, 15, 16, 17, 19, 2
3, 31, and the code amount is calculated according to each scaling factor. Now, it is assumed that the code amount of each scaling factor is calculated as shown in FIG. The nine code amounts are input to the final scaling factor determination unit 352. The final scaling factor determination unit 352 determines a scaling factor that gives the code amount closest to the target code amount as the final scaling factor. In this case, since the target code amount is 62000 bits, the final scaling factor is 15.

【0083】これにより、より少ない回路規模で画質劣
化を抑え、画面全体の符号量を一定以下に抑えることが
できる。
As a result, image quality degradation can be suppressed with a smaller circuit scale, and the code amount of the entire screen can be suppressed to a certain value or less.

【0084】(実施の形態4)以下、本発明の第4の実
施の形態について図7を参照しながら説明する。
(Embodiment 4) Hereinafter, a fourth embodiment of the present invention will be described with reference to FIG.

【0085】図7において、400は第一のブロック化
部、401は第一のマクロブロック部、402は動きベ
クトル検出部、403は差分画像生成部、404は第二
のブロック化部、405は第二のマクロブロック化部、
406は圧縮部入力マクロブロック決定部、407は直
交変換部、408は重要度算出部、409は符号量先読
み部、410は最終スケーリングファクタ決定部、41
1はシーンチェンジ検出部、412はスケーリングファ
クタ決定部、413は量子化部、414は可変長符号化
部、415はローカルデコーダである。
In FIG. 7, reference numeral 400 denotes a first blocking unit; 401, a first macroblock unit; 402, a motion vector detecting unit; 403, a difference image generating unit; 404, a second blocking unit; A second macroblock generator,
406 is a compression unit input macroblock determination unit, 407 is an orthogonal transformation unit, 408 is an importance calculation unit, 409 is a code amount prefetch unit, 410 is a final scaling factor determination unit, 41
1 is a scene change detection unit, 412 is a scaling factor determination unit, 413 is a quantization unit, 414 is a variable length coding unit, and 415 is a local decoder.

【0086】次に本実施の形態の動作について説明す
る。入力された画像信号は第一のブロック化部400、
動きベクトル検出部402、及び差分画像生成部403
に入力される。第一のブロック化部400は入力された
画像の標本値を水平方向に8個、垂直方法に8個集め
て、8×8個の標本値からなる第一のブロックを生成す
る。第一のブロックは第一のマクロブロック化部401
に入力される。第一のマクロブロック化部401は、第
一のブロックを複数個集めて第一のマクロブロックを生
成する。第一のマクロブロックは圧縮入力マクロブロッ
ク決定部406、及び重要度算出部408に入力され
る。動きベクトル検出部402は、入力された画像と、
その予測に用いる参照画像から動きベクトル検出を行
い、動きベクトルを出力する。動きベクトルは差分画像
生成部403、重要度算出部408、及びシーンチェン
ジ検出部411に入力される。シーンチェンジ検出部4
11は入力された動きベクトルよりシーンチェンジが発
生したか否かを検出し、シーンチェンジ情報を出力す
る。シーンチェンジ情報はスケーリングファクタ決定部
412に入力される。
Next, the operation of the present embodiment will be described. The input image signal is a first blocking unit 400,
Motion vector detection unit 402 and difference image generation unit 403
Is input to The first blocking unit 400 collects eight sample values of the input image in the horizontal direction and eight sample values in the vertical direction, and generates a first block including 8 × 8 sample values. The first block is a first macroblock forming unit 401
Is input to The first macroblock generation unit 401 collects a plurality of first blocks to generate a first macroblock. The first macroblock is input to the compressed input macroblock determination unit 406 and the importance calculation unit 408. The motion vector detection unit 402 calculates the input image,
A motion vector is detected from a reference image used for the prediction, and a motion vector is output. The motion vector is input to the difference image generation unit 403, the importance calculation unit 408, and the scene change detection unit 411. Scene change detector 4
Numeral 11 detects whether or not a scene change has occurred from the input motion vector, and outputs scene change information. Scene change information is input to the scaling factor determination unit 412.

【0087】差分画像生成部403は、入力された動き
ベクトルと参照画像を用いて予測画像を生成し、入力さ
れた画像と予測画像との差分演算を行い、差分画像を生
成する。差分画像は第二のブロック化部404に入力さ
れる。第二のブロック化部404は入力された差分画像
の標本値を水平方向に8個、垂直方法に8個集めて、8
×8個の標本値からなる第二のブロックを生成する。第
二のブロックは第二のマクロブロック化部405に入力
される。第二のマクロブロック化部405は、第二のブ
ロックを複数個集めて第二のマクロブロックを生成す
る。第二のマクロブロックは圧縮入力マクロブロック決
定部406に入力される。圧縮入力マクロブロック決定
部406は、符号化の対象となっている画像の符号化の
方式がフレーム内ならば、第一のマクロブロックを出力
し、この場合、第一のマクロブロックは直交変換部40
7に入力される。これに対し、符号化の方式がフレーム
間ならば第二のマクロブロックを出力し、この場合、第
二のマクロブロックが直交変換部407に入力される。
直交変換部407は入力されたマクロブロックに対し、
ブロック単位で直交変換を行い、係数マクロブロックを
生成する。係数マクロブロックは符号量先読み部40
9、重要度算出部408、及び量子化部413に入力さ
れる。重要度算出部408は入力された第一マクロブロ
ック、第二マクロブロック、係数マクロブロック、及び
動きベクトルの情報の内、少なくとも一つの情報を用い
て、そのマクロブロックの重要度を設定する。マクロブ
ロックの重要度は符号量先読み部409、及び量子化部
413に入力される。スケーリングファクタ決定部41
2は、シーンチェンジ情報と、既に符号化され、かつ現
在符号化対象となっている画像とピクチャタイプが同じ
画像で使用されたスケーリングファクタの情報を用い
て、シーンチェンジが発生した場合は、シーンチェンジ
発生用のL個の候補スケーリングファクタを決定し、シ
ーンチェンジが発生していない場合は、シーンチェンジ
非発生用のL個の候補スケーリングファクタを決定、出
力する。シーンチェンジ用のL個の候補スケーリングフ
ァクタ、及びシーンチェンジ非発生用のL個の候補スケ
ーリングファクタについては実施の形態3で述べた通り
である。
The difference image generation unit 403 generates a prediction image using the input motion vector and the reference image, performs a difference operation between the input image and the prediction image, and generates a difference image. The difference image is input to the second blocking unit 404. The second blocking unit 404 collects eight sample values of the input difference image in the horizontal direction and eight sample values in the vertical method, and
Generate a second block consisting of × 8 sample values. The second block is input to the second macroblock forming unit 405. The second macroblock generator 405 collects a plurality of second blocks to generate a second macroblock. The second macro block is input to the compressed input macro block determining unit 406. The compression input macroblock determining unit 406 outputs the first macroblock if the encoding scheme of the image to be encoded is within a frame. In this case, the first macroblock is an orthogonal transform unit. 40
7 is input. On the other hand, if the encoding method is between frames, a second macroblock is output. In this case, the second macroblock is input to the orthogonal transform unit 407.
The orthogonal transform unit 407 converts the input macroblock into
The orthogonal transform is performed in block units to generate coefficient macro blocks. The coefficient macro block is a code amount pre-reading unit 40.
9, input to the importance calculation unit 408 and the quantization unit 413. The importance calculation unit 408 sets the importance of the macroblock using at least one of the input information of the first macroblock, the second macroblock, the coefficient macroblock, and the motion vector. The importance of the macroblock is input to the code amount prefetch unit 409 and the quantization unit 413. Scaling factor determination unit 41
When a scene change occurs using scene change information and scaling factor information used in an image that has already been encoded and has the same picture type as the image to be encoded, a scene change occurs. L candidate scaling factors for change occurrence are determined, and if no scene change has occurred, L candidate scaling factors for no scene change occurrence are determined and output. The L candidate scaling factors for scene change and the L candidate scaling factors for non-scene change occurrence are as described in the third embodiment.

【0088】最終スケーリングファクタ決定部410は
入力されたL個の符号量の中で、目的符号量に最も近い
符号量を与えるスケーリングファクタを最終スケーリン
グファクタとして決定する。最終スケーリングファクタ
は量子化部413、及びスケーリングファクタ決定部4
12に入力される。スケーリングファクタ決定部412
は、同一ピクチャのスケーリングファクタを入力された
スケーリングファクタに置き換える。量子化部413は
入力された最終スケーリングファクタに重要度で定めら
れるオフセットを加え、係数マクロブロックを量子化
し、量子化データを出力する。量子化データは可変長符
号化部414に入力される。可変長符号化部414は入
力された量子化データを可変長符号化し、符号語を出力
する。符号語はローカルデコーダ415に入力される。
ローカルデコーダ415は入力された符号語を復号化す
ることで得られる復号画像を、差分画像生成部に入力す
る。
The final scaling factor determining section 410 determines a scaling factor that gives the code amount closest to the target code amount from the input L code amounts as the final scaling factor. The final scaling factor is determined by the quantization unit 413 and the scaling factor determination unit 4
12 is input. Scaling factor determination unit 412
Replaces the scaling factor of the same picture with the input scaling factor. The quantization unit 413 adds an offset determined by importance to the input final scaling factor, quantizes the coefficient macroblock, and outputs quantized data. The quantized data is input to the variable length coding unit 414. The variable length coding unit 414 performs variable length coding on the input quantized data and outputs a codeword. The codeword is input to local decoder 415.
The local decoder 415 inputs a decoded image obtained by decoding the input codeword to the difference image generation unit.

【0089】これにより、より少ない回路規模で画質劣
化を抑え、画面全体の符号量を一定以下に抑えることが
できる。
As a result, image quality degradation can be suppressed with a smaller circuit scale, and the code amount of the entire screen can be suppressed to a certain value or less.

【0090】(実施の形態5)以下、本発明の第5の実
施の形態について図4を参照しながら説明する。
Embodiment 5 Hereinafter, a fifth embodiment of the present invention will be described with reference to FIG.

【0091】各構成、及び基本的な動作は実施の形態3
で述べた通りであるが、スケーリングファクタ決定部3
12が、シーンチェンジが発生した場合には、選択可能
なK個の領域を均等に分割して、候補となるL個のスケ
ーリングファクタを決定し、シーンチェンジが発生しな
かった場合には、選択可能なK個のスケーリングファク
タの中から、直前に符号化された同一ピクチャの最終ス
ケーリングファクタの周辺を細かく、それ以外の領域を
荒く分割することで候補となるL個のスケーリングファ
クタを決定することを特徴としている。
Embodiments 3 and 4 are described in Embodiment 3.
As described above, the scaling factor determination unit 3
12, when a scene change occurs, the selectable K areas are equally divided to determine L scaling factors as candidates, and when no scene change occurs, the selection is performed. Determining L candidate scaling factors from the possible K scaling factors by finely dividing the area around the final scaling factor of the same picture encoded immediately before, and roughly dividing the other areas. It is characterized by.

【0092】これにより、より少ない回路規模で画質劣
化を抑え、画面全体の符号量を一定以下に抑えることが
できる。
As a result, image quality degradation can be suppressed with a smaller circuit scale, and the code amount of the entire screen can be suppressed to a certain value or less.

【0093】(実施の形態6)以下、本発明の第6の実
施の形態について図8を参照しながら説明する。
(Embodiment 6) Hereinafter, a sixth embodiment of the present invention will be described with reference to FIG.

【0094】図8において、500は第一のブロック化
部、501は第一のマクロブロック部、502は動きベ
クトル検出部、503は差分画像生成部、504は第二
のブロック化部、505は第二のマクロブロック化部、
506は圧縮部入力マクロブロック決定部、507は直
交変換部、508は重要度算出部、509はスケーリン
グファクタ決定部、510は量子化部、511は可変長
符号化部、512はローカルデコーダである。
In FIG. 8, reference numeral 500 denotes a first blocking unit, 501 denotes a first macro block unit, 502 denotes a motion vector detecting unit, 503 denotes a difference image generating unit, 504 denotes a second blocking unit, and 505 denotes a second blocking unit. A second macroblock generator,
Reference numeral 506 denotes a compression unit input macroblock determination unit, 507 denotes an orthogonal transformation unit, 508 denotes an importance calculation unit, 509 denotes a scaling factor determination unit, 510 denotes a quantization unit, 511 denotes a variable length coding unit, and 512 denotes a local decoder. .

【0095】次に本実施の形態の動作について説明す
る。入力された画像信号は第一のブロック化部500、
動きベクトル検出部502、及び差分画像生成部503
に入力される。第一のブロック化部500は入力された
画像の標本値を水平方向に8個、垂直方法に8個集め
て、8×8個の標本値からなる第一のブロックを生成す
る。第一のブロックは第一のマクロブロック化部501
に入力される。第一のマクロブロック化部501は、第
一のブロックを複数個集めて第一のマクロブロックを生
成する。第一のマクロブロックは圧縮入力マクロブロッ
ク決定部506、及び重要度算出部508に入力され
る。動きベクトル検出部502は、入力された画像と、
その予測に用いる参照画像から動きベクトル検出を行
い、動きベクトルを出力する。動きベクトルは差分画像
生成部503、及び重要度算出部508に入力される。
Next, the operation of this embodiment will be described. The input image signal is input to the first blocking unit 500,
Motion vector detection unit 502 and difference image generation unit 503
Is input to The first blocking unit 500 collects eight sample values of the input image in the horizontal direction and eight sample values in the vertical direction, and generates a first block including 8 × 8 sample values. The first block is a first macroblock forming unit 501.
Is input to The first macroblock forming unit 501 generates a first macroblock by collecting a plurality of first blocks. The first macroblock is input to the compressed input macroblock determination unit 506 and the importance calculation unit 508. The motion vector detection unit 502 calculates the input image,
A motion vector is detected from a reference image used for the prediction, and a motion vector is output. The motion vector is input to the difference image generation unit 503 and the importance calculation unit 508.

【0096】差分画像生成部503は、入力された動き
ベクトルと参照画像を用いて予測画像を生成し、入力さ
れた画像と予測画像との差分演算を行い、差分画像を生
成する。差分画像は第二のブロック化部504に入力さ
れる。第二のブロック化部504は入力された差分画像
の標本値を水平方向に8個、垂直方法に8個集めて、8
×8個の標本値からなる第二のブロックを生成する。第
二のブロックは第二のマクロブロック化部505に入力
される。第二のマクロブロック化部505は、第二のブ
ロックを複数個集めて第二のマクロブロックを生成す
る。第二のマクロブロックは圧縮入力マクロブロック決
定部506に入力される。圧縮入力マクロブロック決定
部506は、符号化の対象となっている画像の符号化の
方式がフレーム内ならば、第一のマクロブロックを出力
し、この場合、第一のマクロブロックは直交変換部50
7に入力される。これに対し、符号化の方式がフレーム
間ならば第二のマクロブロックを出力し、この場合、第
二のマクロブロックが直交変換部507に入力される。
直交変換部507は入力されたマクロブロックに対し、
ブロック単位で直交変換を行い、係数マクロブロックを
生成する。係数マクロブロックは重要度算出部508、
及び量子化部510に入力される。重要度算出部508
は入力された第一マクロブロック、第二マクロブロッ
ク、係数マクロブロック、動きベクトル、目的符号量か
ら現在符号化対象となっているマクロブロックまでに発
生した発生符号量との差(残符号量)の情報の内、少な
くとも一つの情報を用いて、そのマクロブロックの重要
度を設定する。マクロブロックの重要度はスケーリング
ファクタ決定部509、及び量子化部510に入力され
る。スケーリングファクタ決定部509は、入力された
重要度と基準となる基準スケーリングファクタより、そ
のマクロブロックのスケーリングファクタを決定する。
決定されたスケーリングファクタは量子化部510に入
力される。量子化部510は入力されたスケーリングフ
ァクタで、係数マクロブロックを量子化し、量子化デー
タを出力する。量子化データは可変長符号化部511に
入力される。可変長符号化部511は入力された量子化
データを可変長符号化し、符号語を出力する。符号語は
重要度算出部508、及びローカルデコーダ512に入
力される。スケーリングファクタ決定部509は入力さ
れた符号語より発生符号量を更新する。ローカルデコー
ダ512は入力された符号語を復号して得られる復号画
像を差分画像生成部503に入力する。
The difference image generation unit 503 generates a prediction image using the input motion vector and the reference image, performs a difference operation between the input image and the prediction image, and generates a difference image. The difference image is input to the second blocking unit 504. The second blocking unit 504 collects eight sample values of the input difference image in the horizontal direction and eight sample values in the vertical method, and
Generate a second block consisting of × 8 sample values. The second block is input to the second macroblock forming unit 505. The second macroblock forming unit 505 collects a plurality of second blocks to generate a second macroblock. The second macroblock is input to the compressed input macroblock determination unit 506. The compression input macroblock determination unit 506 outputs the first macroblock if the encoding scheme of the image to be encoded is within a frame. In this case, the first macroblock is 50
7 is input. On the other hand, if the encoding method is between frames, a second macroblock is output. In this case, the second macroblock is input to the orthogonal transform unit 507.
The orthogonal transform unit 507 converts the input macroblock into
The orthogonal transform is performed in block units to generate coefficient macro blocks. The coefficient macroblock is calculated by the importance calculation unit 508,
And the quantization unit 510. Importance calculation unit 508
Is the difference between the input first macroblock, second macroblock, coefficient macroblock, motion vector, and generated code amount generated from the target code amount to the current macroblock to be coded (remaining code amount). The importance of the macroblock is set by using at least one of the pieces of information. The importance of the macroblock is input to the scaling factor determination unit 509 and the quantization unit 510. The scaling factor determination unit 509 determines the scaling factor of the macroblock based on the input importance and the reference scaling factor serving as a reference.
The determined scaling factor is input to the quantization unit 510. The quantization unit 510 quantizes the coefficient macroblock with the input scaling factor and outputs quantized data. The quantized data is input to the variable length coding unit 511. The variable length coding unit 511 performs variable length coding on the input quantized data, and outputs a codeword. The codeword is input to importance calculating section 508 and local decoder 512. The scaling factor determining unit 509 updates the generated code amount from the input codeword. The local decoder 512 inputs a decoded image obtained by decoding the input codeword to the difference image generation unit 503.

【0097】これにより、画質劣化を抑え、画面全体の
符号量を一定以下に抑えることができる。
As a result, it is possible to suppress the deterioration of the image quality and suppress the code amount of the entire screen to a certain value or less.

【0098】(実施の形態7)以下、本発明の第7の実
施の形態について図8を参照しながら説明する。
(Embodiment 7) Hereinafter, a seventh embodiment of the present invention will be described with reference to FIG.

【0099】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、差分画像をマクロブロ
ック化した第二マクロブロックのアクティビティを算出
し、算出したアクティビティがしきい値よりも大きい場
合は、符号化対象となっているマクロブロックのスケー
リングファクタを、基準となるスケーリングファクタよ
り小さくする、すなわち基準値よりも、より小さい量子
化ステップで量子化することを特徴としている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8), but the importance calculating section 508 determines whether the image to be encoded is If the encoding method is between frames, the activity of the second macroblock obtained by converting the difference image into a macroblock is calculated. It is characterized in that the scaling factor is made smaller than the reference scaling factor, that is, quantization is performed in a smaller quantization step than the reference value.

【0100】これにより、複雑な動きをしている領域を
保護することができ、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
As a result, it is possible to protect an area where a complicated movement is occurring, to suppress deterioration in image quality, and to suppress the code amount of the entire screen to a certain value or less.

【0101】(実施の形態8)以下、本発明の第8の実
施の形態について図8を参照しながら説明する。
Embodiment 8 Hereinafter, an eighth embodiment of the present invention will be described with reference to FIG.

【0102】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、係数マクロブロックの
AC係数の絶対値和を算出し、AC係数の絶対値和がし
きい値よりも大きい場合は、符号化対象となっているマ
クロブロックのスケーリングファクタを、基準となるス
ケーリングファクタより小さくする、すなわち基準値よ
りも、より小さい量子化ステップで量子化することを特
徴としている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8). If the encoding method is between frames, the sum of the absolute values of the AC coefficients of the coefficient macro blocks is calculated. If the sum of the absolute values of the AC coefficients is larger than the threshold, the sum of the It is characterized in that the scaling factor is made smaller than the reference scaling factor, that is, quantization is performed in a smaller quantization step than the reference value.

【0103】これにより、複雑な動きをしている領域を
保護することができ、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
As a result, it is possible to protect an area in which a complicated movement is occurring, to suppress deterioration in image quality, and to suppress the code amount of the entire screen to a certain value or less.

【0104】(実施の形態9)以下、本発明の第9の実
施の形態について図8を参照しながら説明する。
Embodiment 9 Hereinafter, a ninth embodiment of the present invention will be described with reference to FIG.

【0105】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、係数マクロブロックの
AC係数の中で絶対値が最大となる係数を算出し、AC
係数の絶対値の最大値がしきい値よりも大きい場合は、
符号化対象となっているマクロブロックのスケーリング
ファクタを、基準となるスケーリングファクタより小さ
くする、すなわち基準値よりも、より小さい量子化ステ
ップで量子化することを特徴としている。
The configuration and the basic operation of this embodiment are as described in the sixth embodiment (see FIG. 8). However, the importance calculating section 508 determines whether the image to be encoded is If the encoding method is between frames, the coefficient having the maximum absolute value among the AC coefficients of the coefficient macroblock is calculated,
If the maximum absolute value of the coefficient is greater than the threshold,
It is characterized in that a scaling factor of a macroblock to be encoded is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value.

【0106】これにより、複雑な動きをしている領域を
保護することができ、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
As a result, it is possible to protect an area where a complicated motion is occurring, to suppress deterioration in image quality, and to suppress the code amount of the entire screen to a certain value or less.

【0107】(実施の形態10)以下、本発明の第10
の実施の形態について図8を参照しながら説明する。
Embodiment 10 Hereinafter, a tenth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0108】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、原画像をマクロブロッ
ク化した第一マクロブロックから第一のアクティビティ
を算出し、差分画像をマクロブロック化した第二マクロ
ブロックから第二のアクティビティを算出し、第一のア
クティビティが第一のしきい値より大きく、かつ第二の
アクティビティが第二のしきい値より大きい場合は、符
号化対象となっているマクロブロックのスケーリングフ
ァクタを、基準となるスケーリングファクタより大きく
する、すなわち基準値よりも、より大きい量子化ステッ
プで量子化することを特徴としている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8). However, the importance calculating section 508 determines whether the image to be encoded is If the encoding method is between frames, the first activity is calculated from the first macroblock obtained by macroblocking the original image, and the second activity is calculated from the second macroblock obtained by macroblocking the difference image, If the first activity is greater than the first threshold and the second activity is greater than the second threshold, the scaling factor of the macroblock to be encoded is changed to a reference scaling factor. It is characterized in that quantization is made larger, that is, quantization is performed in a quantization step larger than the reference value.

【0109】これにより、複雑な背景、及び複雑な背景
上を動いている領域を保護せず、符号量を他の領域に与
えることで、画質劣化を抑え、画面全体の符号量を一定
以下に抑えることができる。
As a result, the code amount is given to other regions without protecting the complex background and the region moving on the complex background, thereby suppressing the deterioration of the image quality and keeping the code amount of the entire screen below a certain value. Can be suppressed.

【0110】(実施の形態11)以下、本発明の第11
の実施の形態について図8を参照しながら説明する。
Embodiment 11 Hereinafter, an eleventh embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0111】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、係数マクロブロックの
AC係数の絶対値和を算出し、原画像をマクロブロック
化した第一マクロブロックのアクティビティを算出し、
AC係数の絶対値和が第一のしきい値より大きく、かつ
アクティビティが第二のしきい値より大きい場合は、符
号化対象となっているマクロブロックのスケーリングフ
ァクタを、基準となるスケーリングファクタより大きく
する、すなわち基準値よりも、より大きい量子化ステッ
プで量子化することを特徴としている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8). If the encoding method is between frames, the sum of the absolute values of the AC coefficients of the coefficient macroblocks is calculated, and the activity of the first macroblock obtained by converting the original image into a macroblock is calculated.
If the sum of the absolute values of the AC coefficients is larger than the first threshold and the activity is larger than the second threshold, the scaling factor of the macroblock to be coded is set to be smaller than the reference scaling factor. It is characterized in that quantization is made larger, that is, quantization is performed in a quantization step larger than the reference value.

【0112】これにより、複雑な背景、及び複雑な背景
上を動いている領域を保護せず、符号量を他の領域に与
えることで、画質劣化を抑え、画面全体の符号量を一定
以下に抑えることができる。
As a result, the image quality is suppressed from deteriorating and the code amount of the entire screen is reduced to a certain value by giving the code amount to other regions without protecting the complicated background and the region moving on the complicated background. Can be suppressed.

【0113】(実施の形態12)以下、本発明の第12
の実施の形態について図8を参照しながら説明する。
Embodiment 12 Hereinafter, a twelfth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0114】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、係数マクロブロックの
AC係数の中で絶対値が最大となる係数を算出し、原画
像をマクロブロック化した第一マクロブロックのアクテ
ィビティを算出し、AC係数の絶対値の最大値が第一の
しきい値より大きく、かつアクティビティが第二のしき
い値より大きい場合は、符号化対象となっているマクロ
ブロックのスケーリングファクタを、基準となるスケー
リングファクタより大きくする、すなわち基準値より
も、より大きい量子化ステップで量子化することを特徴
としている。
The configuration and the basic operation of this embodiment are as described in the sixth embodiment (see FIG. 8). However, the importance calculating section 508 determines whether the image to be encoded is If the encoding method is inter-frame, the coefficient having the largest absolute value among the AC coefficients of the coefficient macroblock is calculated, the activity of the first macroblock obtained by converting the original image into a macroblock is calculated, and the AC coefficient is calculated. If the maximum absolute value is greater than the first threshold and the activity is greater than the second threshold, increase the scaling factor of the macroblock to be coded to a value greater than the reference scaling factor. That is, the quantization is performed in a quantization step larger than the reference value.

【0115】これにより、複雑な背景、及び複雑な背景
上を動いている領域を保護せず、符号量を他の領域に与
えることで、画質劣化を抑え、画面全体の符号量を一定
以下に抑えることができる。
As a result, the code amount is given to other regions without protecting the complex background and the region moving on the complex background, thereby suppressing image quality deterioration and reducing the code amount of the entire screen to a certain value or less. Can be suppressed.

【0116】(実施の形態13)以下、本発明の第13
の実施の形態について図8を参照しながら説明する。
Embodiment 13 Hereinafter, a thirteenth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0117】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、差分画像をマクロブロ
ック化した第二マクロブロックのアクティビティを算出
し、算出したアクティビティがしきい値よりも小さい場
合は、符号化対象となっているマクロブロックのスケー
リングファクタを、基準となるスケーリングファクタよ
り小さくする、すなわち基準値よりも、より小さい量子
化ステップで量子化することを特徴としている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8). If the coding method is between frames, the activity of the second macroblock obtained by converting the difference image into a macroblock is calculated, and if the calculated activity is smaller than the threshold, the activity of the macroblock to be coded is calculated. The present invention is characterized in that the scaling factor is made smaller than the reference scaling factor, that is, quantization is performed in a smaller quantization step than the reference value.

【0118】これにより、平坦領域を保護することがで
き、画質劣化を抑え、画面全体の符号量を一定以下に抑
えることができる。
As a result, a flat area can be protected, image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0119】(実施の形態14)以下、本発明の第14
の実施の形態について図8を参照しながら説明する。
(Embodiment 14) Hereinafter, a fourteenth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0120】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、係数マクロブロックの
AC係数の中で絶対値が最大となる係数を算出し、算出
したAC係数の絶対値の最大値がしきい値よりも小さい
場合は、符号化対象となっているマクロブロックのスケ
ーリングファクタを、基準となるスケーリングファクタ
より小さくする、すなわち基準値よりも、より小さい量
子化ステップで量子化することを特徴としている。
The configuration and the basic operation of this embodiment are as described in the sixth embodiment (see FIG. 8). However, the importance calculating section 508 determines whether the image to be encoded is If the encoding method is between frames, the coefficient having the largest absolute value among the AC coefficients of the coefficient macroblock is calculated. If the calculated maximum value of the absolute value of the AC coefficient is smaller than the threshold value, It is characterized in that a scaling factor of a macroblock to be encoded is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value.

【0121】これにより、平坦領域を保護することがで
き、画質劣化を抑え、画面全体の符号量を一定以下に抑
えることができる。
As a result, a flat area can be protected, image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0122】(実施の形態15)以下、本発明の第15
の実施の形態について図8を参照しながら説明する。
Embodiment 15 Hereinafter, a fifteenth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0123】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、原画像をマクロブロッ
ク化した第一マクロブロックのアクティビティを算出
し、算出したアクティビティがしきい値よりも小さい場
合は、符号化対象となっているマクロブロックのスケー
リングファクタを、基準となるスケーリングファクタよ
り小さくする、すなわち基準値よりも、より小さい量子
化ステップで量子化することを特徴としている。
Although the configuration and basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8), the importance calculating section 508 determines whether the image to be encoded is If the encoding method is between frames, the activity of the first macroblock obtained by converting the original image into a macroblock is calculated, and if the calculated activity is smaller than the threshold, the activity of the macroblock to be encoded is calculated. It is characterized in that the scaling factor is made smaller than the reference scaling factor, that is, quantization is performed in a smaller quantization step than the reference value.

【0124】これにより、平坦領域を保護することがで
き、画質劣化を抑え、画面全体の符号量を一定以下に抑
えることができる。
As a result, a flat area can be protected, image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0125】(実施の形態16)以下、本発明の第16
の実施の形態について図8を参照しながら説明する。
(Embodiment 16) Hereinafter, a sixteenth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0126】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、原画像をマクロブロッ
ク化した第一マクロブロック中のY−R成分ブロックの
標本値に対し、第一のしきい値より大きい値を持つ標本
値の個数を算出し、しきい値より大きい標本値の個数が
第二のしきい値より多い場合は、符号化対象となってい
るマクロブロックのスケーリングファクタを、基準とな
るスケーリングファクタより小さくする、すなわち基準
値よりも、より小さい量子化ステップで量子化すること
を特徴としている。
Although the configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8), the importance calculating section 508 determines whether the image to be encoded is If the encoding method is inter-frame, the number of sample values having a value larger than the first threshold value is calculated with respect to the sample value of the YR component block in the first macroblock obtained by macroblocking the original image. If the calculated number of sample values larger than the threshold value is larger than the second threshold value, the scaling factor of the macroblock to be coded is made smaller than the reference scaling factor, that is, the reference value It is characterized in that the quantization is performed in a smaller quantization step than in the case of FIG.

【0127】これにより、彩度の高い赤色を含む領域を
保護することができ、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
As a result, it is possible to protect an area including red with high saturation, suppress image quality deterioration, and suppress the code amount of the entire screen to a certain value or less.

【0128】(実施の形態17)以下、本発明の第17
の実施の形態について図8を参照しながら説明する。
(Embodiment 17) Hereinafter, a seventeenth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0129】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、原画像をマクロブロッ
ク化した第一マクロブロック中のY−B成分ブロックの
標本値に対し、第一のしきい値より大きい値を持つ標本
値の個数を算出し、しきい値より大きい標本値の個数が
第二のしきい値より多い場合は、符号化対象となってい
るマクロブロックのスケーリングファクタを、基準とな
るスケーリングファクタより小さくする、すなわち基準
値よりも、より小さい量子化ステップで量子化すること
を特徴としている。
Although the configuration and the basic operation of this embodiment are as described in the sixth embodiment (see FIG. 8), the importance calculating section 508 determines whether the image to be encoded is If the encoding method is inter-frame, the number of sample values having a value larger than the first threshold value is calculated with respect to the sample values of the YB component block in the first macro block obtained by macroblocking the original image. If the calculated number of sample values larger than the threshold value is larger than the second threshold value, the scaling factor of the macroblock to be coded is made smaller than the reference scaling factor, that is, the reference value It is characterized in that the quantization is performed in a smaller quantization step than in the case of FIG.

【0130】これにより、彩度の高い青色を含む領域を
保護することができ、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
As a result, it is possible to protect an area including blue with high saturation, suppress image quality deterioration, and suppress the code amount of the entire screen to a certain value or less.

【0131】(実施の形態18)以下、本発明の第18
の実施の形態について図8を参照しながら説明する。
(Embodiment 18) Hereinafter, an eighteenth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0132】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、原画像をマクロブロッ
ク化した第一マクロブロック中のY−R成分ブロック、
及びY−B成分ブロックの標本値に対し、Y−R成分ブ
ロックの標本値とY−B成分ブロックの標本値との差分
が、第一のしきい値より大きい値を持つ標本値の個数を
算出し、しきい値より大きい標本値の個数が第二のしき
い値より多い場合は、符号化対象となっているマクロブ
ロックのスケーリングファクタを、基準となるスケーリ
ングファクタより小さくする、すなわち基準値よりも、
より小さい量子化ステップで量子化することを特徴とし
ている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8). If the encoding method is between frames, a Y-R component block in the first macroblock obtained by macroblocking the original image,
And the sample value of the YB component block, the difference between the sample value of the YR component block and the sample value of the YB component block is the number of sample values having a value larger than the first threshold value. If the calculated number of sample values larger than the threshold value is larger than the second threshold value, the scaling factor of the macroblock to be coded is made smaller than the reference scaling factor, that is, the reference value than,
It is characterized in that quantization is performed in a smaller quantization step.

【0133】これにより、彩度の高い赤色を含む領域を
保護することができ、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
As a result, it is possible to protect an area including red with high saturation, suppress image quality deterioration, and suppress the code amount of the entire screen to a certain value or less.

【0134】(実施の形態19)以下、本発明の第19
の実施の形態について図8を参照しながら説明する。
Embodiment 19 Hereinafter, a nineteenth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0135】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、原画像をマクロブロッ
ク化した第一マクロブロック中のY−R成分ブロック、
及びY−B成分ブロックの標本値に対し、Y−B成分ブ
ロックの標本値とY−R成分ブロックの標本値との差分
が、第一のしきい値より大きい値を持つ標本値の個数を
算出し、しきい値より大きい標本値の個数が第二のしき
い値より多い場合は、符号化対象となっているマクロブ
ロックのスケーリングファクタを、基準となるスケーリ
ングファクタより小さくする、すなわち基準値よりも、
より小さい量子化ステップで量子化することを特徴とし
ている。
Although the configuration and the basic operation of this embodiment are as described in the sixth embodiment (see FIG. 8), the importance calculating section 508 determines whether the image to be encoded is If the encoding method is between frames, a Y-R component block in the first macroblock obtained by macroblocking the original image,
And the sample value of the YB component block, the difference between the sample value of the YB component block and the sample value of the YR component block is the number of sample values having a value larger than the first threshold value. If the calculated number of sample values larger than the threshold value is larger than the second threshold value, the scaling factor of the macroblock to be coded is made smaller than the reference scaling factor, that is, the reference value than,
It is characterized in that quantization is performed in a smaller quantization step.

【0136】これにより、彩度の高い青色を含む領域を
保護することができ、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
As a result, it is possible to protect a region including blue with high saturation, suppress image quality deterioration, and suppress the code amount of the entire screen to a certain value or less.

【0137】(実施の形態20)以下、本発明の第20
の実施の形態について図8を参照しながら説明する。
Embodiment 20 Hereinafter, a twentieth embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0138】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、原画像をマクロブロッ
ク化した第一マクロブロック中のY成分ブロックの標本
値に対し、第一のしきい値より大きい値を持つ標本値の
個数を算出し、しきい値より大きい標本値の個数が第二
のしきい値より多い場合は、符号化対象となっているマ
クロブロックのスケーリングファクタを、基準となるス
ケーリングファクタより大きくする、すなわち基準値よ
りも、より大きい量子化ステップで量子化することを特
徴としている。
Although the configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8), the importance calculating section 508 determines whether the image to be encoded is If the encoding method is between frames, the number of sample values having a value larger than the first threshold value is calculated for the sample values of the Y component block in the first macroblock obtained by macroblocking the original image. If the number of sample values larger than the threshold value is larger than the second threshold value, the scaling factor of the macroblock to be encoded is set to be larger than the reference scaling factor, that is, the reference value. , Quantization is performed in a larger quantization step.

【0139】これにより、非常に明るい領域を保護せ
ず、符号量を他の領域に与えることで、画質劣化を抑
え、画面全体の符号量を一定以下に抑えることができ
る。
In this way, by providing the code amount to other regions without protecting a very bright region, it is possible to suppress the image quality deterioration and suppress the code amount of the entire screen to a certain value or less.

【0140】(実施の形態21)以下、本発明の第21
の実施の形態について図8を参照しながら説明する。
(Embodiment 21) Hereinafter, a twenty-first embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0141】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、原画像をマクロブロッ
ク化した第一マクロブロック中のY成分ブロックの標本
値に対し、第一のしきい値より小さい値を持つ標本値の
個数を算出し、しきい値より小さい標本値の個数が第二
のしきい値より多い場合は、符号化対象となっているマ
クロブロックのスケーリングファクタを、基準となるス
ケーリングファクタより大きくする、すなわち基準値よ
りも、より大きい量子化ステップで量子化することを特
徴としている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8), but the importance calculating section 508 determines whether the image to be encoded is If the encoding method is between frames, the number of sample values having a value smaller than the first threshold value is calculated with respect to the sample values of the Y component block in the first macroblock obtained by macroblocking the original image. If the number of sample values smaller than the threshold value is larger than the second threshold value, the scaling factor of the macroblock to be coded is set to be larger than the reference scaling factor, that is, , Quantization is performed in a larger quantization step.

【0142】これにより、非常に暗い領域を保護せず、
符号量を他の領域に与えることで、画質劣化を抑え、画
面全体の符号量を一定以下に抑えることができる。
As a result, without protecting a very dark area,
By giving the code amount to other areas, image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0143】(実施の形態22)以下、本発明の第22
の実施の形態について図8を参照しながら説明する。
(Embodiment 22) Hereinafter, a twenty-second embodiment of the present invention will be described.
The embodiment will be described with reference to FIG.

【0144】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム内、及びフレーム間いずれの場合
にも、原画像をマクロブロック化した第一マクロブロッ
クの画面上の位置が、上端、下端、左端、及び右端のい
ずれかである場合、符号化対象となっているマクロブロ
ックのスケーリングファクタを、基準となるスケーリン
グファクタより大きくする、すなわち基準値よりも、よ
り大きい量子化ステップで量子化することを特徴として
いる。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8). When the encoding method is within a frame or between frames, the position on the screen of the first macroblock in which the original image is macroblocked is one of the upper end, the lower end, the left end, and the right end, It is characterized in that the scaling factor of a macroblock to be encoded is made larger than a reference scaling factor, that is, quantization is performed in a quantization step larger than a reference value.

【0145】これにより、画面上の上端、下端、左端、
及び右端の領域を保護せず、符号量を他の領域に与える
ことで、画質劣化を抑え、画面全体の符号量を一定以下
に抑えることができる。
As a result, the upper end, lower end, left end,
By providing the code amount to other regions without protecting the right end region, the image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0146】(実施の形態23)以下、本発明の第23
の実施の形態について図8、9を参照しながら説明す
る。
Embodiment 23 Hereinafter, a twenty-third embodiment of the present invention will be described.
The embodiment will be described with reference to FIGS.

【0147】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、符号化対象となってい
るマクロブロックの動きベクトルと、その周辺の動きベ
クトルとのずれを算出し、算出したベクトルのずれがし
きい値よりも大きい場合は、符号化対象となっているマ
クロブロックのスケーリングファクタを、基準となるス
ケーリングファクタより小さくする、すなわち基準値よ
りも、より小さい量子化ステップで量子化することを特
徴としている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8). If the encoding method is between frames, calculate the difference between the motion vector of the macroblock to be coded and the surrounding motion vector, and if the calculated vector shift is larger than the threshold, Is characterized in that a scaling factor of a macroblock to be encoded is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value.

【0148】図9は符号化対象画像のピクチャタイプが
Pピクチャであるときの動きベクトルを示しており、符
号化対象マクロブロックの動きベクトルが(4、4)の
前方向予測、その周辺のマクロブロックの動きベクトル
が(8、0)の前方向予測であるとする。(x、y)と
いう表現は、水平方向にxサンプル、垂直方向にyサン
プル動いていることを示している。いま、符号化対象と
なっているマクロブロックの動きベクトルと、その周辺
の動きベクトルとの差分の絶対値和をベクトルのずれと
すると、算出されるベクトルのずれは、(|4−8|+
|4ー0|)×8=64となる。しきい値を32に設定
したとき、このマクロブロックは保護される。
FIG. 9 shows a motion vector when the picture type of the picture to be coded is a P picture. The motion vector of the macro block to be coded is (4, 4) forward prediction, It is assumed that the motion vector of the block is forward prediction of (8, 0). The expression (x, y) indicates that x samples are moving in the horizontal direction and y samples are moving in the vertical direction. Now, assuming that the sum of the absolute values of the differences between the motion vector of the macroblock to be encoded and its surrounding motion vectors is a vector shift, the calculated vector shift is (| 4-8 | +
| 4-0 |) × 8 = 64. When the threshold is set to 32, this macroblock is protected.

【0149】これにより、動いている物体、及び動き検
出が外れた領域を保護することができ、画質劣化を抑
え、画面全体の符号量を一定以下に抑えることができ
る。
As a result, it is possible to protect a moving object and an area from which motion detection is not performed, suppress image quality degradation, and suppress the code amount of the entire screen to a certain value or less.

【0150】(実施の形態24)以下、本発明の第24
の実施の形態について図8、10を参照しながら説明す
る。
Embodiment 24 Hereinafter, a twenty-fourth embodiment of the present invention will be described.
The embodiment will be described with reference to FIGS.

【0151】本実施の形態の構成、及び基本的な動作は
実施の形態6で述べた通り(図8参照)であるが、重要
度算出部508が、符号化の対象となっている画像の符
号化の方式がフレーム間ならば、符号化対象となってい
るマクロブロックの動きベクトルと、その周辺の動きベ
クトルとの種類が異なっていれば、符号化対象となって
いるマクロブロックのスケーリングファクタを、基準と
なるスケーリングファクタより小さくする、すなわち基
準値よりも、より小さい量子化ステップで量子化するこ
とを特徴としている。
The configuration and the basic operation of the present embodiment are as described in the sixth embodiment (see FIG. 8). If the encoding method is inter-frame, if the type of the motion vector of the macroblock to be encoded is different from that of the surrounding motion vector, the scaling factor of the macroblock to be encoded is different. Is smaller than the reference scaling factor, that is, quantized in a smaller quantization step than the reference value.

【0152】図10は符号化対象画像のピクチャタイプ
がBピクチャであるときの動きベクトルを示しており、
符号化対象マクロブロックの動きベクトルが(8、0)
の後方向予測、その周辺のマクロブロックの動きベクト
ルが(8、0)の前方向予測であるとする。いま、符号
化対象となっているマクロブロックの動きベクトルと、
その周辺の動きベクトルとの種類が異なっているため、
このマクロブロックは保護される。
FIG. 10 shows a motion vector when the picture type of the picture to be coded is a B picture.
The motion vector of the macroblock to be coded is (8, 0)
It is assumed that the backward prediction is performed, and the motion vector of the surrounding macroblock is the forward prediction of (8, 0). Now, the motion vector of the macroblock to be coded,
Since the type of the surrounding motion vector is different,
This macroblock is protected.

【0153】これにより、動いている物体、及び動き検
出が外れた領域を保護することができ、画質劣化を抑
え、画面全体の符号量を一定以下に抑えることができ
る。
As a result, it is possible to protect a moving object and an area from which motion detection is not performed, suppress image quality deterioration, and suppress the code amount of the entire screen to a certain value or less.

【0154】(実施の形態25)以下、本発明の第25
の実施の形態について図11、12、13を参照しなが
ら説明する。
(Embodiment 25) Hereinafter, a twenty-fifth embodiment of the present invention will be described.
The embodiment will be described with reference to FIGS.

【0155】図11において、600は第一のブロック
化部、601は第一のマクロブロック部、602は第一
の動きベクトル検出部、603は差分画像生成部、60
4は第二のブロック化部、605は第二のマクロブロッ
ク化部、606は圧縮部入力マクロブロック決定部、6
07は直交変換部、608は第二の動きベクトル検出
部、609は重要度算出部、610はスケーリングファ
クタ決定部、611は量子化部、612は可変長符号化
部、613はローカルデコーダである。
In FIG. 11, reference numeral 600 denotes a first blocking unit, 601 denotes a first macroblock unit, 602 denotes a first motion vector detecting unit, 603 denotes a difference image generating unit,
4 is a second blocking unit, 605 is a second macroblocking unit, 606 is a compression unit input macroblock determining unit, 6
07 is an orthogonal transformation unit, 608 is a second motion vector detection unit, 609 is an importance calculation unit, 610 is a scaling factor determination unit, 611 is a quantization unit, 612 is a variable length coding unit, and 613 is a local decoder. .

【0156】次に本実施の形態の動作について説明す
る。入力された画像信号は第一のブロック化部600、
第一の動きベクトル検出部602、第二の動きベクトル
検出部608、及び差分画像生成部603に入力され
る。第一のブロック化部600は入力された画像の標本
値を水平方向に8個、垂直方法に8個集めて、8×8個
の標本値からなる第一のブロックを生成する。第一のブ
ロックは第一のマクロブロック化部601に入力され
る。第一のマクロブロック化部601は、第一のブロッ
クを複数個集めて第一のマクロブロックを生成する。第
一のマクロブロックは圧縮入力マクロブロック決定部6
06、及び重要度算出部609に入力される。第一の動
きベクトル検出部602は、入力された画像と、その予
測に用いる参照画像からマクロブロック単位で動きベク
トル検出を行い、第一の動きベクトルを出力する。第一
の動きベクトルは差分画像生成部603、及び重要度算
出部609に入力される。第二の動きベクトル検出部6
08はマクロブロックを複数個集めてスーパーブロック
を生成し、スーパーブロック単位で動きベクトル検出を
行い、第二の動きベクトルを検出する。第二の動きベク
トルは重要度算出部609に入力される。
Next, the operation of the present embodiment will be described. The input image signal is converted into a first blocking unit 600,
It is input to the first motion vector detection unit 602, the second motion vector detection unit 608, and the difference image generation unit 603. The first blocking unit 600 collects eight sample values of the input image in the horizontal direction and eight sample values in the vertical direction, and generates a first block including 8 × 8 sample values. The first block is input to the first macroblock generator 601. The first macroblock generation unit 601 generates a first macroblock by collecting a plurality of first blocks. The first macroblock is a compressed input macroblock determination unit 6
06 and the importance calculation unit 609. The first motion vector detection unit 602 performs motion vector detection in macroblock units from an input image and a reference image used for the prediction, and outputs a first motion vector. The first motion vector is input to the difference image generation unit 603 and the importance calculation unit 609. Second motion vector detection unit 6
08 collects a plurality of macroblocks to generate a superblock, performs motion vector detection in superblock units, and detects a second motion vector. The second motion vector is input to importance calculating section 609.

【0157】差分画像生成部603は、入力された第一
の動きベクトルと参照画像を用いて予測画像を生成し、
入力された画像と予測画像との差分演算を行い、差分画
像を生成する。差分画像は第二のブロック化部604に
入力される。第二のブロック化部604は入力された差
分画像の標本値を水平方向に8個、垂直方法に8個集め
て、8×8個の標本値からなる第二のブロックを生成す
る。第二のブロックは第二のマクロブロック化部605
に入力される。第二のマクロブロック化部605は、第
二のブロックを複数個集めて第二のマクロブロックを生
成する。第二のマクロブロックは圧縮入力マクロブロッ
ク決定部606に入力される。圧縮入力マクロブロック
決定部606は、符号化の対象となっている画像の符号
化の方式がフレーム内ならば、第一のマクロブロックを
出力し、この場合、第一のマクロブロックは直交変換部
607に入力される。これに対し、符号化の方式がフレ
ーム間ならば第二のマクロブロックを出力し、この場
合、第二のマクロブロックが直交変換部607に入力さ
れる。直交変換部607は、入力されたマクロブロック
に対し、ブロック単位で直交変換を行い、係数マクロブ
ロックを生成する。係数マクロブロックは重要度算出部
609、及び量子化部611に入力される。
The difference image generation unit 603 generates a prediction image using the input first motion vector and the reference image,
The difference between the input image and the predicted image is calculated to generate a difference image. The difference image is input to the second blocking unit 604. The second blocking unit 604 collects eight sample values of the input difference image in the horizontal direction and eight sample values in the vertical direction, and generates a second block including 8 × 8 sample values. The second block is a second macroblock converting unit 605.
Is input to The second macroblock generator 605 collects a plurality of second blocks to generate a second macroblock. The second macroblock is input to the compressed input macroblock determination unit 606. The compression input macroblock determination unit 606 outputs the first macroblock if the encoding scheme of the image to be encoded is within a frame. In this case, the first macroblock is 607. On the other hand, if the encoding method is between frames, a second macroblock is output. In this case, the second macroblock is input to the orthogonal transform unit 607. The orthogonal transform unit 607 performs orthogonal transform on the input macroblock in block units to generate a coefficient macroblock. The coefficient macroblock is input to the importance calculation unit 609 and the quantization unit 611.

【0158】重要度算出部609は入力された第一の動
きベクトル、及び第二の動きベクトルに対して、符号化
の対象となっているマクロブロックの第一の動きベクト
ルと、そのマクロブロックが属するスーパーブロックの
第二の動きベクトルのずれを算出し、ベクトルのずれが
しきい値より大きければ、そのマクロブロックは重要で
あると判断される。マクロブロックの重要度はスケーリ
ングファクタ決定部610に入力される。スケーリング
ファクタ決定部610は、入力された重要度、及び基準
となる基準スケーリングファクタより、そのマクロブロ
ックのスケーリングファクタを決定する。決定されたス
ケーリングファクタは量子化部611に入力される。量
子化部611は入力されたスケーリングファクタで、係
数マクロブロックを量子化し、量子化データを出力す
る。量子化データは可変長符号化部612に入力され
る。可変長符号化部612は入力された量子化データを
可変長符号化し、符号語を出力する。符号語はローカル
デコーダ613に入力される。ローカルデコーダ613
は入力された符号語を復号化して得られる復号画像を差
分画像生成部603に入力する。
The importance calculating section 609 compares the first motion vector and the second motion vector with the first motion vector of the macroblock to be encoded and the macroblock. The shift of the second motion vector of the superblock to which the macroblock belongs is calculated, and if the shift of the vector is larger than the threshold, the macroblock is determined to be important. The importance of the macroblock is input to the scaling factor determination unit 610. The scaling factor determination unit 610 determines the scaling factor of the macroblock based on the input importance and the reference reference scaling factor. The determined scaling factor is input to the quantization unit 611. The quantization unit 611 quantizes the coefficient macroblock using the input scaling factor, and outputs quantized data. The quantized data is input to the variable length coding unit 612. The variable length coding unit 612 performs variable length coding on the input quantized data and outputs a codeword. The codeword is input to local decoder 613. Local decoder 613
Inputs a decoded image obtained by decoding the input codeword to the difference image generation unit 603.

【0159】図12(a)、(b)は符号化対象画像の
ピクチャタイプがPピクチャであるときの動きベクトル
を示した図である。(a)は、符号化対象マクロブロッ
クの第一の動きベクトルが(4、4)の前方向予測であ
ったことを示し、(b)は、そのマクロブロックが属す
るスーパーブロックの第二の動きベクトルが(8、0)
の前方向予測であったことを示している。いま、符号化
対象となっているマクロブロックの第一の動きベクトル
と、そのマクロブロックが属するスーパーブロックの第
二の動きベクトルとの差分の絶対値和をベクトルのずれ
とすると、算出されるベクトルのずれは、(|4−8|
+|4ー0|)=8となる。しきい値を4に設定したと
き、このマクロブロックは保護される。
FIGS. 12A and 12B are diagrams showing motion vectors when the picture type of the picture to be coded is a P picture. (A) shows that the first motion vector of the encoding target macroblock was the forward prediction of (4, 4), and (b) shows the second motion vector of the superblock to which the macroblock belongs. Vector is (8,0)
Indicates that the prediction was forward. Assuming that the sum of the absolute value of the difference between the first motion vector of the macroblock to be encoded and the second motion vector of the superblock to which the macroblock belongs is a vector shift, a vector to be calculated Deviation is (| 4-8 |
+ | 4-0 |) = 8. When the threshold is set to 4, this macroblock is protected.

【0160】図13(a)、(b)は符号化対象画像の
ピクチャタイプがBピクチャであるときの動きベクトル
を示した図である。(a)は、符号化対象マクロブロッ
クの第一の動きベクトルが(8、0)の後方向予測であ
ったことを示し、(b)は、そのマクロブロックが属す
るスーパーブロックの第二の動きベクトルが(8、0)
の前方向予測であったことを示している。いま、符号化
対象となっているマクロブロックの動きベクトルと、そ
のマクロブロックが属するスーパーブロックの動きベク
トルとの種類が異なっているため、このマクロブロック
は保護される。
FIGS. 13A and 13B are diagrams showing motion vectors when the picture type of the picture to be coded is a B picture. (A) shows that the first motion vector of the current macroblock is (8, 0) backward prediction, and (b) shows the second motion vector of the superblock to which the macroblock belongs. Vector is (8,0)
Indicates that the prediction was forward. Now, since the type of the motion vector of the macroblock to be coded is different from the type of the motion vector of the superblock to which the macroblock belongs, this macroblock is protected.

【0161】これにより、動いている物体、及び動き検
出が外れた領域を保護することができ、画質劣化を抑
え、画面全体の符号量を一定以下に抑えることができ
る。
As a result, it is possible to protect a moving object and an area from which motion detection is not performed, suppress image quality degradation, and suppress the code amount of the entire screen to a certain value or less.

【0162】[0162]

【発明の効果】第1の発明の高能率符号化装置では、入
力された画像に対し、複数の予測演算方式を前記入力画
像を分割するブロック単位で適応的に切り替え、直交変
換、及び可変長符号化を行う符号化手段と、前記符号化
手段における符号化の際の符号量を制御する符号量制御
手段からなる高能率符号化装置において、前記符号量制
御手段が、前記入力画像、前記予測演算を行う際に用い
る動きベクトル、前記予測演算によって得られた差分画
像、及び前記直交変換により得られた変換係数のうち、
少なくとも一つを用いて、前記ブロック毎にそのブロッ
クの保護の度合いを表す重要度を設定し、符号化済みの
同一ピクチャの情報を用いて、選択可能なK個(Kは整
数)のスケーリングファクタの中から候補となるL個
(Lは、L<Kを満たす整数)のスケーリングファクタ
を決定し、前記L個のスケーリングファクタと前記重要
度を用いてL個の符号量を算出し、前記L個の符号量の
うち、目的符号量に最も近い符号量を与えるスケーリン
グファクタを最終スケーリングファクタと決定すること
で、少ない回路規模で、画質の劣化を抑え、画面全体の
符号量を一定以下に抑えることができる。
According to the high-efficiency coding apparatus of the first invention, a plurality of predictive operation methods are adaptively switched for an input image in units of blocks that divide the input image, and orthogonal transform and variable length coding are performed. In a high-efficiency encoding apparatus including an encoding unit that performs encoding and a code amount control unit that controls a code amount at the time of encoding in the encoding unit, the code amount control unit includes the input image and the prediction. Of the motion vector used when performing the operation, the difference image obtained by the prediction operation, and the transform coefficient obtained by the orthogonal transform,
At least one of the blocks is used to set a degree of importance indicating the degree of protection of the block, and K information (K is an integer) selectable scaling factors using information of the same encoded picture. L scaling factors (L is an integer that satisfies L <K) are determined from among the above, L code amounts are calculated using the L scaling factors and the importance, and the L coding amount is calculated. By determining the scaling factor that gives the code amount closest to the target code amount out of the code amounts as the final scaling factor, with a small circuit scale, the deterioration of the image quality is suppressed, and the code amount of the entire screen is kept below a certain value. be able to.

【0163】第2の発明の高能率符号化装置では、選択
可能なK個のスケーリングファクタに対し、直前に符号
化された同一ピクチャの最終スケーリングファクタの周
辺を細かく、その他の領域を荒く分割しL個の候補スケ
ーリングファクタを生成することで、少ない回路規模
で、画質の劣化を抑え、画面全体の符号量を一定以下に
抑えることができる。
In the high-efficiency coding apparatus according to the second aspect of the present invention, for the selectable K scaling factors, the area around the final scaling factor of the same picture coded immediately before is finely divided, and other areas are roughly divided. By generating L candidate scaling factors, it is possible to suppress deterioration of image quality and reduce the code amount of the entire screen to a certain value or less with a small circuit scale.

【0164】第3の発明の高能率符号化装置では、差分
画像より検出したシーンチェンジ情報を用いて、シーン
チェンジが発生、非発生により符号量先読みに用いるL
個のスケーリングファクタの候補を切り替えることで、
少ない回路規模で、画質の劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
In the high-efficiency encoding apparatus according to the third aspect of the present invention, the scene change information is used for prefetching the code amount when a scene change occurs or does not occur using scene change information detected from the difference image.
By switching the candidates of the scaling factor,
With a small circuit scale, deterioration of image quality can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0165】第4の発明の高能率符号化装置では、動き
ベクトルより検出したシーンチェンジ情報を用いて、シ
ーンチェンジが発生、非発生により符号量先読みに用い
るL個のスケーリングファクタの候補を切り替えること
で、少ない回路規模で、画質の劣化を抑え、画面全体の
符号量を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to the fourth invention, switching of L scaling factor candidates used for code amount look-ahead is performed by using scene change information detected from a motion vector depending on whether a scene change occurs or not. Thus, with a small circuit scale, deterioration of image quality can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0166】第5の発明の高能率符号化装置では、差分
画像、または動きベクトルより検出したシーンチェンジ
情報を用いて、シーンチェンジが発生したときは、K個
のスケーリングファクタの領域を均等に分割し、シーン
チェンジが発生していないときは、直前に符号化された
同一ピクチャの最終スケーリングファクタの周辺を細か
く、その他の領域を荒く分割しL個のスケーリングファ
クタを生成することで、少ない回路規模で、画質の劣化
を抑え、画面全体の符号量を一定以下に抑えることがで
きる。
In the high-efficiency coding apparatus according to the fifth aspect of the present invention, when a scene change occurs using a difference image or scene change information detected from a motion vector, the area of K scaling factors is equally divided. When a scene change has not occurred, a small circuit scale is obtained by finely dividing the periphery of the final scaling factor of the same picture coded immediately before, and roughly dividing other regions to generate L scaling factors. Thus, it is possible to suppress the deterioration of the image quality and suppress the code amount of the entire screen to a certain value or less.

【0167】第6の発明の高能率符号化装置では、入力
された画像に対し、複数の予測演算方式を前記入力画像
を分割するブロック単位で適応的に切り替え、直交変
換、及び可変長符号化を行う符号化手段と、前記符号化
手段における符号化の際の符号量を制御する符号量制御
手段からなる高能率符号化装置において、前記符号量制
御手段が、前記入力画像、前記予測演算を行う際に用い
る動きベクトル、前記予測演算によって得られた差分画
像、前記直交変換で得られた変換係数、現在までの発生
符号量、及び目的符号量と前記発生符号量との差のう
ち、少なくとも一つを用いて、前記ブロック毎にそのブ
ロックの保護度合いを表す重要度を設定し、前記重要度
と基準となるスケーリングファクタから、前記ブロック
のスケーリングファクタを決定することで画質劣化を抑
え、画面全体の符号量を一定以下に抑えることができ
る。
In the high efficiency coding apparatus according to a sixth aspect of the present invention, a plurality of predictive calculation methods are adaptively switched for an input image in units of blocks that divide the input image, and orthogonal transform and variable length coding are performed. In the high-efficiency encoding apparatus comprising an encoding unit that performs the following, and a code amount control unit that controls the code amount at the time of encoding in the encoding unit, the code amount control unit performs the input image and the prediction calculation. The motion vector used when performing, the difference image obtained by the prediction operation, the transform coefficient obtained by the orthogonal transform, the generated code amount up to the present, and at least the difference between the target code amount and the generated code amount Using one of the blocks, an importance level indicating the degree of protection of the block is set for each block, and the scaling factor of the block is calculated from the importance level and a reference scaling factor. Suppressing image quality deterioration by determining, it is possible to suppress the code amount of the entire screen to be constant below.

【0168】第7の発明の高能率符号化装置では、フレ
ーム間符号化方式であるブロックに対し、予測演算によ
って得られた差分ブロックのアクティビティを算出し、
アクティビティがしきい値より大きければ、そのブロッ
クを基準となるスケーリングファクタよりも少ないスケ
ーリングファクタで符号化することで、複雑な動きをし
ている領域を保護することができ、画質劣化を抑え、画
面全体の符号量を一定以下に抑えることができる。
In the high efficiency coding apparatus according to the seventh invention, the activity of the difference block obtained by the prediction operation is calculated for the block of the interframe coding method,
If the activity is larger than the threshold, coding the block with a scaling factor smaller than the reference scaling factor can protect areas with complex movements, reduce image quality degradation, The entire code amount can be suppressed to a certain value or less.

【0169】第8の発明の高能率符号化装置では、フレ
ーム間符号化方式であるブロックに対し、直交変換によ
って得られた変換係数のAC係数の絶対値和を算出し、
AC係数の絶対値和がしきい値よりも大きい場合は、そ
のブロックを基準となるスケーリングファクタよりも小
さい量子化ステップで符号化することで、複雑な動きを
している領域を保護することができ、画質劣化を抑え、
画面全体の符号量を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to the eighth invention, the sum of the absolute values of the AC coefficients of the transform coefficients obtained by the orthogonal transform is calculated for the block of the inter-frame coding method.
If the sum of the absolute values of the AC coefficients is larger than the threshold value, it is possible to protect the region in which a complex motion is occurring by coding the block with a quantization step smaller than the reference scaling factor. Yes, reduce image quality degradation,
The code amount of the entire screen can be suppressed to a certain value or less.

【0170】第9の発明の高能率符号化装置では、フレ
ーム間符号化方式であるブロックに対し、直交変換によ
って得られた変換係数のAC係数の中で絶対値が最大と
なる係数を算出し、AC係数の絶対値の最大値がしきい
値よりも大きい場合は、そのブロックを基準となるスケ
ーリングファクタよりも小さいスケーリングファクタで
符号化することで、複雑な動きをしている領域を保護す
ることができ、画質劣化を抑え、画面全体の符号量を一
定以下に抑えることができる。
In the high-efficiency coding apparatus according to the ninth aspect, the coefficient having the largest absolute value among the AC coefficients of the transform coefficients obtained by the orthogonal transform is calculated for the block of the interframe coding method. If the maximum value of the absolute value of the AC coefficient is larger than the threshold value, the block in which the motion is complicated is protected by coding the block with a scaling factor smaller than the reference scaling factor. Therefore, it is possible to suppress the deterioration of the image quality and suppress the code amount of the entire screen to a certain value or less.

【0171】第10の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、予測演算を
行う前のブロックから第一のアクティビティを算出し、
予測演算によって得られた差分ブロックから第二のアク
ティビティを算出し、第一のアクティビティが第一のし
きい値より大きく、かつ第二のアクティビティが第二の
しきい値より大きい場合は、そのブロックを基準となる
スケーリングファクタよりも大きいスケーリングファク
タで符号化することで、複雑な背景、及び複雑な背景上
を動いている領域を保護せず、符号量を他の領域に与え
ることで、画質劣化を抑え、画面全体の符号量を一定以
下に抑えることができる。
In the high-efficiency coding apparatus according to the tenth aspect, a first activity is calculated from a block before performing a prediction operation on a block which is an inter-frame coding method.
A second activity is calculated from the difference block obtained by the prediction operation, and if the first activity is greater than the first threshold and the second activity is greater than the second threshold, the block is Is encoded with a scaling factor larger than the reference scaling factor, and the image quality is degraded by giving the code amount to other areas without protecting the complex background and the area moving on the complex background. And the code amount of the entire screen can be suppressed to a certain value or less.

【0172】第11の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、直交変換に
よって得られた変換係数のAC係数の絶対値和を算出
し、予測演算を行う前のブロックのアクティビティを算
出し、AC係数の絶対値和が第一のしきい値より大き
く、かつアクティビティが第二のしきい値より大きい場
合は、そのブロックを基準となるスケーリングファクタ
よりも大きいスケーリングファクタで符号化すること
で、複雑な背景、及び複雑な背景上を動いている領域を
保護せず、符号量を他の領域に与えることで、画質劣化
を抑え、画面全体の符号量を一定以下に抑えることがで
きる。
In the high efficiency coding apparatus according to the eleventh aspect of the present invention, the sum of the absolute values of the AC coefficients of the transform coefficients obtained by the orthogonal transform is calculated for the block which is the interframe coding method, and the prediction operation is performed. If the sum of the absolute values of the AC coefficients is greater than the first threshold and the activity is greater than the second threshold, the block is scaled to be larger than the reference scaling factor. Encoding by factor does not protect the complex background and the area moving on the complex background, and gives the code amount to other areas to suppress image quality degradation and keep the code amount of the entire screen constant It can be suppressed to the following.

【0173】第12の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、直交変換に
よって得られた変換係数のAC係数の中で絶対値が最大
となる係数を算出し、予測演算を行う前のブロックのア
クティビティを算出し、AC係数の絶対値の最大値が第
一のしきい値より大きく、かつアクティビティが第二の
しきい値より大きい場合は、そのブロックを基準となる
スケーリングファクタよりも大きいスケーリングファク
タで符号化することで、複雑な背景、及び複雑な背景上
を動いている領域を保護せず、符号量を他の領域に与え
ることで、画質劣化を抑え、画面全体の符号量を一定以
下に抑えることができる。
In the high-efficiency coding apparatus according to the twelfth aspect, the coefficient having the maximum absolute value among the AC coefficients of the transform coefficients obtained by the orthogonal transform is calculated for the block of the interframe coding method. Calculating the activity of the block before performing the prediction operation, and if the maximum value of the absolute value of the AC coefficient is larger than the first threshold and the activity is larger than the second threshold, By coding with a scaling factor that is larger than the following scaling factor, it does not protect complex backgrounds and areas moving on complex backgrounds, and suppresses image quality degradation by giving the code amount to other areas. Thus, the code amount of the entire screen can be suppressed to a certain value or less.

【0174】第13の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、予測演算に
よって得られた差分ブロックのアクティビティを算出
し、算出したアクティビティがしきい値よりも小さい場
合は、そのブロックを基準となるスケーリングファクタ
よりも小さいスケーリングファクタで符号化すること
で、平坦領域を保護することができ、画質劣化を抑え、
画面全体の符号量を一定以下に抑えることができる。
In the high efficiency coding apparatus according to the thirteenth aspect, the activity of the difference block obtained by the prediction operation is calculated for the block of the interframe coding method, and the calculated activity is smaller than the threshold value. In this case, by coding the block with a scaling factor smaller than the reference scaling factor, it is possible to protect a flat area, suppress image quality degradation,
The code amount of the entire screen can be suppressed to a certain value or less.

【0175】第14の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、直交変換に
よって得られた変換係数のAC係数の中で絶対値が最大
となる係数を算出し、算出したAC係数の絶対値の最大
値がしきい値よりも小さい場合は、そのブロックを基準
となるスケーリングファクタよりも小さいスケーリング
ファクタで符号化することで、平坦領域を保護すること
ができ、画質劣化を抑え、画面全体の符号量を一定以下
に抑えることができる。
In the high-efficiency coding apparatus according to the fourteenth aspect, a coefficient having the largest absolute value among AC coefficients of transform coefficients obtained by orthogonal transform is calculated for a block which is an inter-frame coding method. If the maximum value of the calculated absolute value of the AC coefficient is smaller than the threshold value, the block can be protected by coding the block with a scaling factor smaller than the reference scaling factor, Image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0176】第15の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、予測演算を
行う前のブロックのアクティビティを算出し、算出した
アクティビティがしきい値よりも小さい場合は、そのブ
ロックを基準となるスケーリングファクタよりも小さい
スケーリングファクタで符号化することで、平坦領域を
保護することができ、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
In the high efficiency coding apparatus according to the fifteenth aspect, the activity of the block before performing the prediction operation is calculated for the block of the interframe coding method, and the calculated activity is smaller than the threshold value. By encoding the block with a scaling factor smaller than the reference scaling factor, a flat area can be protected, image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0177】第16の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、差分演算を
行う前のブロック中のY−R成分ブロックの標本値に対
し、第一のしきい値より大きい値を持つ標本値の個数を
算出し、しきい値より大きい標本値の個数が第二のしき
い値より多い場合は、そのブロックを基準となるスケー
リングファクタよりも小さいスケーリングファクタで符
号化することで、彩度の高い赤色を含む領域を保護する
ことができ、画質劣化を抑え、画面全体の符号量を一定
以下に抑えることができる。
In the high-efficiency coding apparatus according to the sixteenth aspect of the present invention, the first encoding is performed on the sample value of the YR component block in the block before the difference operation is performed on the block of the interframe coding method. Calculate the number of sample values having a value greater than the threshold value, and if the number of sample values greater than the threshold value is greater than the second threshold value, use that block with a scaling factor smaller than the reference scaling factor. By encoding, an area including red with high saturation can be protected, image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0178】第17の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、差分演算を
行う前のブロック中のY−B成分ブロックの標本値に対
し、第一のしきい値より大きい値を持つ標本値の個数を
算出し、しきい値より大きい標本値の個数が第二のしき
い値より多い場合は、そのブロックを基準となるスケー
リングファクタよりも小さいスケーリングファクタで符
号化することで、彩度の高い青色を含む領域を保護する
ことができ、画質劣化を抑え、画面全体の符号量を一定
以下に抑えることができる。
In the high-efficiency coding apparatus according to the seventeenth aspect, the first coding is performed on the sample value of the YB component block in the block before the difference operation is performed on the block which is the inter-frame coding method. Calculate the number of sample values having a value greater than the threshold value, and if the number of sample values greater than the threshold value is greater than the second threshold value, use that block with a scaling factor smaller than the reference scaling factor. By encoding, an area including blue with high saturation can be protected, image quality degradation can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0179】第18の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、差分演算を
行う前のブロック中のY−R成分ブロック、及びY−B
成分ブロックの標本値に対し、Y−R成分ブロックの標
本値とY−B成分ブロックの標本値との差分が、第一の
しきい値より大きい値を持つ標本値の個数を算出し、し
きい値より大きい標本値の個数が第二のしきい値より多
い場合は、そのブロックを基準となるスケーリングファ
クタよりも小さいスケーリングファクタで符号化するこ
とで、彩度の高い赤色を含む領域を保護することがで
き、画質劣化を抑え、画面全体の符号量を一定以下に抑
えることができる。
In the high efficiency coding apparatus according to the eighteenth aspect of the present invention, the YR component block and the YB
For the sample values of the component blocks, the number of sample values in which the difference between the sample value of the YR component block and the sample value of the YB component block is greater than a first threshold value is calculated. If the number of sample values greater than the threshold is greater than the second threshold, the block is coded with a scaling factor smaller than the reference scaling factor to protect areas containing highly saturated red. Therefore, it is possible to suppress the deterioration of the image quality and suppress the code amount of the entire screen to a certain value or less.

【0180】第19の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、差分演算を
行う前のブロック中のY−R成分ブロック、及びY−B
成分ブロックの標本値に対し、Y−B成分ブロックの標
本値とY−R成分ブロックの標本値との差分が、第一の
しきい値より大きい値を持つ標本値の個数を算出し、し
きい値より大きい標本値の個数が第二のしきい値より多
い場合は、そのブロックを基準となるスケーリングファ
クタよりも小さいスケーリングファクタで符号化するこ
とで、彩度の高い青色を含む領域を保護することがで
き、画質劣化を抑え、画面全体の符号量を一定以下に抑
えることができる。
In the high-efficiency coding apparatus according to the nineteenth aspect, the YR component block and the YB component block in the block before the difference operation is performed on the block of the interframe coding system.
For the sample value of the component block, the difference between the sample value of the YB component block and the sample value of the YR component block is calculated as the number of sample values having a value larger than a first threshold value. If the number of sample values greater than the threshold is greater than the second threshold, the block is coded with a scaling factor smaller than the reference scaling factor to protect areas containing highly saturated blue. Therefore, it is possible to suppress the deterioration of the image quality and suppress the code amount of the entire screen to a certain value or less.

【0181】第20の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、差分演算を
行う前のブロック中のY成分ブロックの標本値に対し、
第一のしきい値より大きい値を持つ標本値の個数を算出
し、しきい値より大きい標本値の個数が第二のしきい値
より多い場合は、そのブロックを基準となるスケーリン
グファクタよりも大きいスケーリングファクタで符号化
することで、非常に明るい領域を保護せず、符号量を他
の領域に与えることで、画質劣化を抑え、画面全体の符
号量を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to the twentieth aspect, the sample value of the Y component block in the block before the difference operation is performed on the block of the inter-frame coding method.
Calculate the number of sample values that have a value greater than the first threshold, and if the number of sample values that are greater than the threshold is greater than the second threshold, make the block smaller than the reference scaling factor. By coding with a large scaling factor, a very bright area is not protected, and by giving a code amount to another area, image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain level or less.

【0182】第21の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、差分演算を
行う前のブロック中のY成分ブロックの標本値に対し、
第一のしきい値より小さい値を持つ標本値の個数を算出
し、しきい値より小さい標本値の個数が第二のしきい値
より多い場合は、そのブロックを基準となるスケーリン
グファクタよりも大きいスケーリングファクタで符号化
することで、非常に暗い領域を保護せず、符号量を他の
領域に与えることで、画質劣化を抑え、画面全体の符号
量を一定以下に抑えることができる。
In the high efficiency coding apparatus according to the twenty-first aspect, the sample value of the Y component block in the block before the difference operation is performed on the block of the inter-frame coding method
Calculate the number of sample values that have a value smaller than the first threshold, and if the number of sample values that are smaller than the threshold is larger than the second threshold, set the block to be smaller than the reference scaling factor. By coding with a large scaling factor, a very dark area is not protected, and the code amount is given to another area, so that image quality deterioration can be suppressed and the code amount of the entire screen can be suppressed to a certain level or less.

【0183】第22の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、ブロックの
画面上の位置が、上端、下端、左端、及び右端のいずれ
かである場合は、そのブロックを基準となるスケーリン
グファクタよりも大きいスケーリングファクタで符号化
することで、画面上の上端、下端、左端、及び右端の領
域を保護せず、符号量を他の領域に与えることで、画質
劣化を抑え、画面全体の符号量を一定以下に抑えること
ができる。
In the high efficiency coding apparatus according to the twenty-second aspect, when the position of the block on the screen is any of the upper end, the lower end, the left end, and the right end with respect to the block which is the inter-frame coding method, By coding the block with a scaling factor larger than the reference scaling factor, the upper, lower, left, and right areas on the screen are not protected, and the amount of code is given to other areas to improve image quality. Deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

【0184】第23の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、ブロックの
動きベクトルと、その周辺の動きベクトルとのずれを算
出し、算出したベクトルのずれがしきい値よりも大きい
場合は、そのブロックを基準となるスケーリングファク
タよりも小さいスケーリングファクタで符号化すること
で、動いている物体、及び動き検出が外れた領域を保護
することができ、画質劣化を抑え、画面全体の符号量を
一定以下に抑えることができる。
In the high-efficiency coding apparatus according to the twenty-third aspect, the difference between the motion vector of the block and the surrounding motion vector is calculated for the block of the interframe coding method, and the calculated vector shift is calculated. If the value is larger than the threshold value, the moving object and the area where the motion detection is not performed can be protected by encoding the block with a scaling factor smaller than the reference scaling factor. And the code amount of the entire screen can be suppressed to a certain value or less.

【0185】第24の発明の高能率符号化装置では、フ
レーム間符号化方式であるブロックに対し、ブロックの
動きベクトルと、その周辺の動きベクトルとの種類が異
なっている場合は、そのブロックを基準となるスケーリ
ングファクタよりも小さいスケーリングファクタで符号
化することで、動いている物体、及び動き検出が外れた
領域を保護することができ、画質劣化を抑え、画面全体
の符号量を一定以下に抑えることができる。
In the high-efficiency coding apparatus according to the twenty-fourth aspect, when the type of a motion vector of a block differs from that of a peripheral motion vector with respect to a block of the inter-frame coding method, the block is By coding with a scaling factor smaller than the reference scaling factor, it is possible to protect moving objects and areas where motion detection has been lost, suppress image quality degradation, and reduce the code amount of the entire screen to a certain level or less. Can be suppressed.

【0186】第25の発明の高能率符号化装置では、入
力された画像に対し、複数の予測演算方式を前記入力画
像を分割するブロック単位で適応的に切り替え、直交変
換、及び可変長符号化を行う符号化手段と、前記符号化
手段における符号化の際の符号量を制御する符号量制御
手段からなる高能率符号化装置において、前記符号量制
御手段が、前記ブロック単位で検出した第一の動きベク
トルと、複数の前記ブロックからなるスーパーブロック
単位で検出した第二の動きベクトルを用いて、前記ブロ
ック毎にそのブロックの保護度合いを表す重要度を検出
し、前記重要度と基準となるスケーリングファクタか
ら、前記ブロックのスケーリングファクタを決定するこ
とで、画質劣化を抑え、画面全体の符号量を一定以下に
抑えることができる。
In the high-efficiency encoding apparatus according to the twenty-fifth aspect, a plurality of predictive operation methods are adaptively switched for an input image in units of blocks that divide the input image, and orthogonal transform and variable-length encoding are performed. In the high-efficiency encoding apparatus comprising an encoding means for performing the following, and a code amount control means for controlling the code amount at the time of encoding in the encoding means, the code amount control means, the first detected by the block unit Using the motion vector and the second motion vector detected in a unit of a super block composed of a plurality of blocks, the importance indicating the degree of protection of the block is detected for each of the blocks, and the importance is used as a reference. By determining the scaling factor of the block from the scaling factor, image quality deterioration can be suppressed, and the code amount of the entire screen can be suppressed to a certain value or less.

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

【図1】本発明の第1の実施の形態における高能率符号
化装置のブロック図
FIG. 1 is a block diagram of a high-efficiency encoding device according to a first embodiment of the present invention.

【図2】本発明の第1の実施の形態において、K=3
1、L=9で、基準スケーリングファクタが16だった
場合の、スケーリングファクタ決定部、符号量先読み
部、及び最終スケーリングファクタ決定部の動作を示し
た図
FIG. 2 shows a first embodiment of the present invention, wherein K = 3
1, L = 9, the operation of the scaling factor determination unit, the code amount prefetch unit, and the final scaling factor determination unit when the reference scaling factor is 16

【図3】本発明の第2の実施の形態において、K=3
1、L=9で、基準スケーリングファクタが16だった
場合の、スケーリングファクタ決定部、符号量先読み
部、及び最終スケーリングファクタ決定部の動作を示し
た図
FIG. 3 shows a second embodiment of the present invention, wherein K = 3
1, L = 9, the operation of the scaling factor determination unit, the code amount prefetch unit, and the final scaling factor determination unit when the reference scaling factor is 16

【図4】本発明の第3の実施の形態における高能率符号
化装置のブロック図
FIG. 4 is a block diagram of a high-efficiency encoding device according to a third embodiment of the present invention.

【図5】本発明の第3の実施の形態において、K=3
1、L=9で、基準スケーリングファクタが16、かつ
シーンチェンジ発生時のスケーリングファクタ決定部、
符号量先読み部、及び最終スケーリングファクタ決定部
の動作を示した図
FIG. 5 shows a third embodiment of the present invention, wherein K = 3
1, L = 9, the reference scaling factor is 16, and a scaling factor determining unit when a scene change occurs;
The figure which showed operation | movement of a code amount look-ahead part and a final scaling factor determination part.

【図6】本発明の第3の実施の形態において、K=3
1、L=9で、基準スケーリングファクタが16、かつ
シーンチェンジ非発生時のスケーリングファクタ決定
部、符号量先読み部、及び最終スケーリングファクタ決
定部の動作を示した図
FIG. 6 shows a third embodiment of the present invention, wherein K = 3
1, L = 9, the reference scaling factor is 16, and the operation of the scaling factor determination unit, code amount prefetch unit, and final scaling factor determination unit when a scene change does not occur is shown.

【図7】本発明の第4の実施の形態における高能率符号
化装置のブロック図
FIG. 7 is a block diagram of a high efficiency coding apparatus according to a fourth embodiment of the present invention.

【図8】本発明の第6、7、8、9、10、11、1
2、13、14、15、16、17、18、19、2
0、21、22、23、24の実施の形態における高能
率符号化装置のブロック図
FIG. 8 shows sixth, seventh, eighth, ninth, tenth, eleventh, and tenth aspects of the invention
2, 13, 14, 15, 16, 17, 18, 19, 2,
Block diagram of high-efficiency coding apparatus in embodiments of 0, 21, 22, 23, and 24

【図9】本発明の第23の実施の形態において、符号化
対象マクロブロックと、その周辺のマクロブロックの動
きベクトルを示した図
FIG. 9 is a diagram showing a motion vector of an encoding target macroblock and its surrounding macroblocks in the twenty-third embodiment of the present invention.

【図10】本発明の第24の実施の形態において、符号
化対象マクロブロックと、その周辺のマクロブロックの
動きベクトルを示した図
FIG. 10 is a diagram showing a motion vector of an encoding target macroblock and its surrounding macroblocks in a twenty-fourth embodiment of the present invention.

【図11】本発明の第25の実施の形態における高能率
符号化装置のブロック図
FIG. 11 is a block diagram of a high efficiency coding apparatus according to a twenty-fifth embodiment of the present invention.

【図12】本発明の第25の実施の形態において、符号
化対象マクロブロックと、そのマクロブロックが属する
スーパーブロックの動きベクトルを示した図
FIG. 12 is a diagram showing a motion vector of a macroblock to be coded and a superblock to which the macroblock belongs according to a twenty-fifth embodiment of the present invention.

【図13】本発明の第25の実施の形態において、符号
化対象マクロブロックと、そのマクロブロックが属する
スーパーブロックの動きベクトルを示した図
FIG. 13 is a diagram showing a current macroblock to be coded and a motion vector of a superblock to which the macroblock belongs in the twenty-fifth embodiment of the present invention.

【図14】第一の従来例における高能率符号化装置のブ
ロック図
FIG. 14 is a block diagram of a high-efficiency coding apparatus according to a first conventional example.

【図15】第二の従来例における高能率符号化装置のブ
ロック図
FIG. 15 is a block diagram of a high-efficiency encoding device according to a second conventional example.

【符号の説明】 100,300,400,500,600,700,8
00 第一のブロック化部 101,301,401,501,601,701,8
01 第一のマクロブロック化部 102,302,402,502,602,702,8
02 動きベクトル検出部 602 第一の動きベクトル検出部 103,303,403,503,603,703,8
03 差分画像生成部 104,304,404,504,604,704,8
04 第二のブロック化部 105,305,405,505,605,705,8
05 第二のマクロブロック化部 106,306,406,506,606,706,8
06 圧縮部入力マクロブロック決定部 107,307,407,507,607,707,8
07 直交変換部 108,308,408,508,609,708,8
08 重要度算出部 608 第二の動きベクトル検出部 109,151,201,309,351,361,4
09,809 符号量先読み部 110,152,202,310,352,362,4
10,810 最終スケーリングファクタ決定部 311,411 シーンチェンジ検出部 111,150,200,312,350,360,4
12,509,610,709,809 スケーリング
ファクタ決定部 112,313,413,510,611,710,8
11 量子化部 113,314,414,511,612,711,8
12 可変長符号化部 114,315,415,512,613,712,8
13 ローカルデコーダ
[Description of Signs] 100, 300, 400, 500, 600, 700, 8
00 First blocking units 101, 301, 401, 501, 601, 701, 8
01 first macroblock forming units 102, 302, 402, 502, 602, 702, 8
02 motion vector detecting section 602 first motion vector detecting section 103, 303, 403, 503, 603, 703, 8
03 Difference image generation units 104, 304, 404, 504, 604, 704, 8
04 Second blocking unit 105, 305, 405, 505, 605, 705, 8
05 Second macroblock forming units 106, 306, 406, 506, 606, 706, 8
06 Compressor input macroblock determiner 107, 307, 407, 507, 607, 707, 8
07 orthogonal transformation unit 108, 308, 408, 508, 609, 708, 8
08 Importance calculation unit 608 Second motion vector detection unit 109, 151, 201, 309, 351, 361, 4
09,809 Code amount prefetch unit 110, 152, 202, 310, 352, 362, 4
10,810 Final scaling factor determination unit 311,411 Scene change detection unit 111,150,200,312,350,360,4
12,509,610,709,809 Scaling factor determination unit 112,313,413,510,611,710,8
11 Quantizer 113, 314, 414, 511, 612, 711, 8
12 Variable length coding units 114, 315, 415, 512, 613, 712, 8
13 Local decoder

Claims (43)

【特許請求の範囲】[Claims] 【請求項1】入力された画像に対し、複数の予測演算方
式を前記入力画像を分割するブロック単位で適応的に切
り替え、直交変換、及び可変長符号化を行う符号化手段
と、前記符号化手段における符号化の際の符号量を制御
する符号量制御手段からなる高能率符号化装置におい
て、 前記符号量制御手段が、前記入力画像、前記予測演算を
行う際に用いる動きベクトル、前記予測演算によって得
られた差分画像、及び前記直交変換により得られた変換
係数のうち、少なくとも一つを用いて、前記ブロック毎
にそのブロックの保護の度合いを表す重要度を設定し、 符号化済みの同一ピクチャの情報を用いて、選択可能な
K個(Kは整数)のスケーリングファクタの中から候補
となるL個(Lは、L<Kを満たす整数)のスケーリン
グファクタを決定し、 前記L個のスケーリングファクタと前記重要度を用いて
L個の符号量を算出し、前記L個の符号量のうち、目的
符号量に最も近い符号量を与えるスケーリングファクタ
を最終スケーリングファクタと決定することを特徴とし
た高能率符号化装置。
An encoding means for adaptively switching a plurality of prediction calculation systems for an input image in units of blocks dividing the input image, and performing orthogonal transform and variable length encoding, and A high-efficiency encoding apparatus comprising a code amount control means for controlling a code amount at the time of encoding in the means, the code amount control means comprising: the input image; a motion vector used when performing the prediction operation; Using at least one of the difference image obtained by the above and the transform coefficient obtained by the orthogonal transform, the importance indicating the degree of protection of the block is set for each of the blocks; Using the picture information, L candidate (L is an integer satisfying L <K) out of K selectable scaling factors (K is an integer) is selected. L code amounts are calculated using the L scale factors and the importance, and a scaling factor that gives a code amount closest to a target code amount among the L code amounts is a final scaling factor. A high-efficiency coding apparatus characterized in that:
【請求項2】前記符号量制御手段が、前記入力画像、前
記動きベクトル、前記差分画像、及び前記変換係数のう
ち、少なくとも一つを用いて、前記ブロック毎に前記重
要度を設定し、 符号化済みの同一ピクチャの情報を用いて、選択可能な
K個(Kは整数)のスケーリングファクタの中から、直
前に符号化された同一ピクチャの最終スケーリングファ
クタの周辺を細かく、それ以外の領域を荒く分割するこ
とで候補となるL個(Lは、L<Kを満たす整数)のス
ケーリングファクタを決定し、 前記L個のスケーリングファクタと前記重要度を用いて
L個の符号量を算出し、前記L個の符号量のうち、目的
符号量に最も近い符号量を与えるスケーリングファクタ
を最終スケーリングファクタと決定することを特徴とし
た請求項1記載の高能率符号化装置。
2. The code amount control means sets the importance for each block using at least one of the input image, the motion vector, the difference image, and the transform coefficient. Using the information of the same picture that has already been converted, from the selectable K (K is an integer) scaling factors, the area around the last scaling factor of the same picture encoded immediately before is finely divided, and other areas are divided. L candidate (L is an integer satisfying L <K) scaling factors which are candidates by roughly dividing are determined, and L code amounts are calculated using the L scaling factors and the importance, 2. The high efficiency according to claim 1, wherein a scaling factor that gives a code amount closest to the target code amount among the L code amounts is determined as a final scaling factor. Goka apparatus.
【請求項3】前記符号量制御手段が、前記入力画像、前
記動きベクトル、前記差分画像、及び前記変換係数のう
ち、少なくとも一つを用いて、前記ブロック毎に前記重
要度を設定し、 前記差分画像よりシーンチェンジが発生したか否かを検
出し、 符号化済みの同一ピクチャの情報と前記シーンチェンジ
情報とを用いて、選択可能なK個(Kは整数)のスケー
リングファクタの中から、シーンチェンジが発生してい
た場合、シーンチェンジ発生用のL個(Lは、L<Kを
満たす整数)の候補スケーリングファクタを決定し、シ
ーンチェンジが発生していない場合にはシーンチェンジ
非発生用のL個の候補スケーリングファクタを決定し、 前記L個のスケーリングファクタと前記重要度を用いて
L個の符号量を算出し、前記L個の符号量のうち、目的
符号量に最も近い符号量を与えるスケーリングファクタ
を最終スケーリングファクタと決定することを特徴とし
た請求項1記載の高能率符号化装置。
3. The code amount control means sets the importance for each block using at least one of the input image, the motion vector, the difference image, and the transform coefficient, Detecting whether or not a scene change has occurred from the difference image, and using information of the encoded same picture and the scene change information, among K selectable (K is an integer) scaling factors, If a scene change has occurred, L (L is an integer satisfying L <K) candidate scaling factors for determining a scene change are determined. If no scene change has occurred, a scene change non-occurrence candidate is determined. Are determined, and L code amounts are calculated using the L scale factors and the importance, and among the L code amounts, High efficiency coding apparatus according to claim 1 which is characterized by determining a scaling factor and a final scaling factor that gives the closest code amount to the purpose code amount.
【請求項4】前記符号量制御手段が、前記入力画像、前
記動きベクトル、前記差分画像、及び前記変換係数のう
ち、少なくとも一つを用いて、前記ブロック毎に前記重
要度を設定し、 前記動きベクトルよりシーンチェンジが発生したか否か
を検出し、 符号化済みの同一ピクチャの情報と前記シーンチェンジ
情報とを用いて、選択可能なK個(Kは整数)のスケー
リングファクタの中から、シーンチェンジが発生してい
た場合、シーンチェンジ発生用のL個(Lは、L<Kを
満たす整数)の候補スケーリングファクタを決定し、シ
ーンチェンジが発生していない場合にはシーンチェンジ
非発生用のL個の候補スケーリングファクタを決定し、 前記L個のスケーリングファクタと前記重要度を用いて
L個の符号量を算出し、前記L個の符号量のうち、目的
符号量に最も近い符号量を与えるスケーリングファクタ
を最終スケーリングファクタと決定することを特徴とし
た請求項1記載の高能率符号化装置。
4. The code amount control means sets the importance for each block using at least one of the input image, the motion vector, the difference image, and the transform coefficient, Detecting whether or not a scene change has occurred from the motion vector, and using information of the same coded picture and the scene change information, among K selectable (K is an integer) scaling factors, If a scene change has occurred, L (L is an integer satisfying L <K) candidate scaling factors for determining a scene change are determined. If no scene change has occurred, a scene change non-occurrence candidate is determined. Are determined, L code amounts are calculated using the L scale factors and the importance, and the L code amounts of the L code amounts are calculated. Chi, high-efficiency encoding apparatus that claim 1 was characterized by determining the scaling factor that gives the closest code amount to the purpose code amount as the final scaling factor.
【請求項5】前記符号量制御手段が、シーンチェンジが
発生した場合には、選択可能なK個(Kは整数)の領域
を均等に分割することで、候補となるL個(Lは、L<
Kを満たす整数)のスケーリングファクタを決定し、シ
ーンチェンジが発生しなかった場合には、選択可能なK
個のスケーリングファクタの中から、直前に符号化され
た同一ピクチャの最終スケーリングファクタの周辺を細
かく、それ以外の領域を荒く分割することで候補となる
L個のスケーリングファクタを決定することを特徴とし
た請求項3または4記載の高能率符号化装置。
5. The code amount control means, when a scene change occurs, equally divides a selectable K (K is an integer) area, thereby selecting L (L is a candidate) L <
(Integer satisfying K) is determined, and if no scene change occurs, selectable K
Determining, from among the scaling factors, L candidate scaling factors by finely dividing the periphery of the final scaling factor of the same picture encoded immediately before and roughly dividing the other regions. The high-efficiency encoding apparatus according to claim 3 or 4, wherein
【請求項6】入力された画像に対し、複数の予測演算方
式を前記入力画像を分割するブロック単位で適応的に切
り替え、直交変換、及び可変長符号化を行う符号化手段
と、前記符号化手段における符号化の際の符号量を制御
する符号量制御手段からなる高能率符号化装置におい
て、 前記符号量制御手段が、前記入力画像、前記予測演算を
行う際に用いる動きベクトル、前記予測演算によって得
られた差分画像、前記直交変換で得られた変換係数、現
在までの発生符号量、及び目的符号量と前記発生符号量
との差のうち、少なくとも一つを用いて、前記ブロック
毎にそのブロックの保護度合いを表す重要度を設定し、 前記重要度と基準となるスケーリングファクタから、前
記ブロックのスケーリングファクタを決定することを特
徴とした高能率符号化装置。
6. An encoding means for adaptively switching a plurality of prediction calculation methods for an input image in units of blocks dividing the input image, and performing orthogonal transform and variable length encoding. A high-efficiency encoding apparatus comprising a code amount control means for controlling a code amount at the time of encoding in the means, the code amount control means comprising: the input image; a motion vector used when performing the prediction operation; By using at least one of the difference image obtained by the above, the transform coefficient obtained by the orthogonal transformation, the generated code amount up to the present, and the difference between the target code amount and the generated code amount, Setting a degree of importance indicating the degree of protection of the block, and determining the scaling factor of the block from the degree of importance and a reference scaling factor. Encoding device.
【請求項7】前記符号量制御手段が、前記符号化対象ブ
ロックがフレーム間である場合に、前記符号化対象ブロ
ックに対し予測演算を行った差分ブロックの標本値より
アクティビティを算出し、 前記アクティビティが特定のしきい値より大きい場合
に、前記符号化対象ブロックのスケーリングファクタを
基準スケーリングファクタより小さくする、すなわち基
準値よりもより小さい量子化ステップで量子化すること
を特徴とした請求項6記載の高能率符号化装置。
7. The coding amount control means calculates an activity from a sample value of a difference block obtained by performing a prediction operation on the coding target block when the coding target block is between frames. 7. The method according to claim 6, wherein when is larger than a specific threshold value, the scaling factor of the block to be coded is made smaller than a reference scaling factor, that is, quantized in a quantization step smaller than the reference value. High efficiency coding device.
【請求項8】前記符号量制御手段が、前記符号化対象ブ
ロックの符号化方式がフレーム間である場合に、前記変
換係数のAC係数値の絶対値和を算出し、 前記絶対値和が特定のしきい値より大きい場合に、前記
符号化対象ブロックのスケーリングファクタを基準スケ
ーリングファクタより小さくする、すなわち基準値より
もより小さい量子化ステップで量子化することを特徴と
した請求項6記載の高能率符号化装置。
8. The code amount control means calculates the sum of absolute values of AC coefficient values of the transform coefficients when the coding method of the current block is inter-frame, and specifies the sum of absolute values. 7. The method according to claim 6, wherein when the threshold value is larger than the threshold value, the scaling factor of the encoding target block is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than the reference value. Efficiency coding device.
【請求項9】前記符号量制御手段が、前記符号化対象ブ
ロックの符号化方式がフレーム間である場合に、前記変
換係数のAC係数値の中で絶対値が最大となる係数を算
出し、 前記係数値が特定のしきい値より大きい場合に、前記符
号化対象ブロックのスケーリングファクタを基準スケー
リングファクタより小さくする、すなわち基準値よりも
より小さい量子化ステップで量子化することを特徴とし
た請求項6記載の高能率符号化装置。
9. The code amount control means calculates a coefficient having the maximum absolute value among AC coefficient values of the transform coefficient when an encoding method of the encoding target block is between frames. If the coefficient value is larger than a specific threshold value, the scaling factor of the current block is made smaller than a reference scaling factor, that is, quantized in a quantization step smaller than the reference value. Item 7. A high-efficiency encoding device according to Item 6.
【請求項10】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
符号化対象ブロックの標本値より第一のアクティビティ
を算出し、 前記差分ブロックの標本値より第二のアクティビティを
算出し、 前記第一のアクティビティが特定の第一のしきい値より
大きく、 かつ、前記第二のアクティビティが特定の第二のしきい
値より大きい場合に、前記符号化対象ブロックのスケー
リングファクタを基準スケーリングファクタよりも大き
くする、すなわち基準値よりもより大きい量子化ステッ
プで量子化することを特徴とした請求項6記載の高能率
符号化装置。
10. The coding amount control means calculates a first activity from a sample value of the coding target block when a coding method of the coding target block is between frames, and calculates a first activity of the difference block. Calculating a second activity from the sample value, wherein if the first activity is greater than a particular first threshold and the second activity is greater than a particular second threshold, 7. The high efficiency coding apparatus according to claim 6, wherein the scaling factor of the block to be coded is made larger than a reference scaling factor, that is, quantization is performed in a quantization step larger than a reference value.
【請求項11】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、 前記変換係数のAC係数値の絶対値和を算出し、 前記符号化対象ブロックの標本値よりアクティビティを
算出し、 前記絶対値和が特定の第一のしきい値より大きく、 かつ、前記アクティビティが特定の第二のしきい値より
大きい場合に、前記符号化対象ブロックのスケーリング
ファクタを基準スケーリングファクタよりも大きくす
る、すなわち基準値よりもより大きい量子化ステップで
量子化することを特徴とした請求項6記載の高能率符号
化装置。
11. The coding amount control means calculates an absolute value sum of AC coefficient values of the transform coefficients when the coding method of the coding target block is inter-frame, Calculating an activity from a sample value; and when the sum of absolute values is greater than a specific first threshold and the activity is greater than a specific second threshold, a scaling factor of the encoding target block. 7. The high-efficiency encoding apparatus according to claim 6, wherein is quantized by a quantization step larger than a reference scaling factor, that is, by a quantization step larger than a reference value.
【請求項12】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
変換係数のAC係数値の中で絶対値が最大となる係数を
算出し、 前記符号化対象ブロックの標本値よりアクティビティを
算出し、 前記係数が特定の第一のしきい値より大きく、 かつ、前記アクティビティが特定の第二のしきい値より
大きい場合に、前記符号化対象ブロックのスケーリング
ファクタを基準スケーリングファクタよりも大きくす
る、すなわち基準値よりもより大きい量子化ステップで
量子化することを特徴とした請求項6記載の高能率符号
化装置。
12. The coding amount control means calculates a coefficient having the maximum absolute value among AC coefficient values of the transform coefficient when the coding method of the coding target block is between frames. Calculating an activity from a sample value of the current block; if the coefficient is greater than a specific first threshold and the activity is greater than a specific second threshold, 7. The high-efficiency coding apparatus according to claim 6, wherein the scaling factor of the block is made larger than a reference scaling factor, that is, quantization is performed in a quantization step larger than a reference value.
【請求項13】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
差分ブロックの標本値よりアクティビティを算出し、 前記アクティビティが特定のしきい値より小さい場合
に、前記符号化対象ブロックのスケーリングファクタを
基準スケーリングファクタより小さくする、 すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
13. The coding amount control means calculates an activity from a sample value of the difference block when the coding method of the coding target block is between frames, and calculates the activity based on a specific threshold value. 7. The high-efficiency coding apparatus according to claim 6, wherein when the size is smaller, the scaling factor of the block to be coded is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value.
【請求項14】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
変換係数のAC係数値の絶対値和を算出し、 前記絶対値和が特定のしきい値より小さい場合に、前記
符号化対象ブロックのスケーリングファクタを基準スケ
ーリングファクタより小さくする、すなわち基準値より
もより小さい量子化ステップで量子化することを特徴と
した請求項6記載の高能率符号化装置。
14. The code amount control means calculates an absolute value sum of AC coefficient values of the transform coefficients when the encoding method of the encoding target block is between frames, and specifies the absolute value sum. 7. The method according to claim 6, wherein when the threshold value is smaller than the threshold value, the scaling factor of the block to be coded is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than the reference value. Efficiency coding device.
【請求項15】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
符号化対象ブロックの標本値よりアクティビティを算出
し、 前記アクティビティが特定のしきい値より小さい場合
に、前記符号化対象ブロックのスケーリングファクタを
基準スケーリングファクタより小さくする、 すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
15. The coding amount control means calculates an activity from a sample value of the coding target block when the coding method of the coding target block is between frames, wherein the activity is a specific threshold. 7. The high-efficiency coding according to claim 6, wherein when the value is smaller than the value, the scaling factor of the block to be coded is smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than the reference value. apparatus.
【請求項16】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
符号化対象ブロック内の、Y−R成分ブロックの標本値
に対し、特定の第一のしきい値より大きい値を持つ標本
値の個数を算出し、 前記個数が特定の第二のしきい値より多い場合に、前記
符号化対象ブロックのスケーリングファクタを基準スケ
ーリングファクタより小さくする、 すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
16. The coding amount control means according to claim 1, wherein a coding method of said block to be coded is inter-frame, a specific value of a sample value of a YR component block in said block to be coded is specified. Calculating the number of sample values having a value greater than a first threshold value, and, when the number is greater than a specific second threshold value, reducing the scaling factor of the current block to be smaller than a reference scaling factor 7. The high-efficiency encoding apparatus according to claim 6, wherein the quantization is performed in a quantization step smaller than the reference value.
【請求項17】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
符号化対象ブロック内の、Y−B成分ブロックの標本値
に対し、特定の第一のしきい値より大きい値を持つ標本
値の個数を算出し、 前記個数が特定の第二のしきい値より多い場合に、前記
符号化対象ブロックのスケーリングファクタを基準スケ
ーリングファクタより小さくする、 すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
17. A method according to claim 17, wherein said code amount control means specifies a specific value for a sample value of a Y-B component block in said coding target block when said coding method of said coding target block is inter-frame. Calculating the number of sample values having a value greater than a first threshold value, and, when the number is greater than a specific second threshold value, reducing the scaling factor of the current block to be smaller than a reference scaling factor 7. The high-efficiency encoding apparatus according to claim 6, wherein the quantization is performed in a quantization step smaller than the reference value.
【請求項18】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
符号化対象ブロック内の、Y−R成分ブロック、及びY
−B成分ブロックの標本値に対し、前記Y−R成分ブロ
ックの標本値と前記Y−B成分ブロックの標本値との差
分値が、特定の第一のしきい値より大きい値を持つ差分
値の個数を算出し、 前記個数が特定の第二のしきい値より多い場合に、前記
符号化対象ブロックのスケーリングファクタを基準スケ
ーリングファクタより小さくする、 すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
18. The coding amount control means according to claim 1, wherein said coding target block is a frame-to-frame coding system, wherein said coding target block includes a YR component block and a Y-R component block.
A difference value between a sample value of the Y-R component block and a sample value of the Y-B component block with respect to a sample value of the B component block, the difference value being larger than a specific first threshold value If the number is larger than a specific second threshold, the scaling factor of the current block is made smaller than a reference scaling factor, that is, the quantization step is performed in a quantization step smaller than the reference value. 7. The high-efficiency coding apparatus according to claim 6, wherein the coding is performed.
【請求項19】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
符号化対象ブロック内の、Y−R成分ブロック、及びY
−B成分ブロックの標本値に対し、前記Y−B成分ブロ
ックの標本値と前記Y−R成分ブロックの標本値との差
分値が、特定の第一のしきい値より大きい値を持つ差分
値の個数を算出し、 前記個数が特定の第二のしきい値より多い場合に、前記
符号化対象ブロックのスケーリングファクタを基準スケ
ーリングファクタより小さくする、 すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
19. The coding amount control means according to claim 1, wherein said coding target block is a frame-to-frame coding scheme, and said coding target block includes a YR component block and a Y-R component block.
A difference value between a sample value of the YB component block and a sample value of the YR component block that is larger than a specific first threshold value with respect to the sample value of the B component block If the number is larger than a specific second threshold, the scaling factor of the current block is made smaller than a reference scaling factor, that is, the quantization step is performed in a quantization step smaller than the reference value. 7. The high-efficiency coding apparatus according to claim 6, wherein the coding is performed.
【請求項20】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
符号化対象ブロック内の、Y成分ブロックの標本値に対
し、特定の第一のしきい値より大きい値を持つ標本値の
個数を算出し、前記個数が特定の第二のしきい値より多
い場合に、前記符号化対象ブロックのスケーリングファ
クタを基準スケーリングファクタより大きくする、 すなわち基準値よりもより大きい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
20. When the coding method of the current block is inter-frame, the code amount control unit determines a specific first component value for a sample value of a Y component block in the current block. Calculate the number of sample values having a value greater than the threshold value, and when the number is greater than a specific second threshold value, increase the scaling factor of the block to be encoded to be larger than a reference scaling factor. 7. The high efficiency coding apparatus according to claim 6, wherein the quantization is performed in a quantization step larger than the reference value.
【請求項21】前記符号量制御手段が、前記符号化対象
ブロックの符号化方式がフレーム間である場合に、前記
符号化対象ブロック内の、Y成分ブロックの標本値に対
し、特定の第一のしきい値より小さい値を持つ標本値の
個数を算出し、前記個数が特定の第二のしきい値より多
い場合に、前記符号化対象ブロックのスケーリングファ
クタを基準スケーリングファクタより大きくする、 すなわち基準値よりもより大きい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
21. A method according to claim 21, wherein said code amount control means specifies a specific first value for a sample value of a Y component block in said coding target block when the coding method of said coding target block is inter-frame. The number of sample values having a value smaller than the threshold value is calculated, and when the number is larger than a specific second threshold value, the scaling factor of the current block is set larger than a reference scaling factor. 7. The high efficiency coding apparatus according to claim 6, wherein the quantization is performed in a quantization step larger than the reference value.
【請求項22】前記符号量制御手段が、前記符号化対象
ブロックの画面上の位置が上端、下端、左端、及び右端
のいずれかである場合、前記符号化対象ブロックのスケ
ーリングファクタを基準スケーリングファクタより大き
くする、 すなわち基準値よりもより大きい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
22. When the code amount control means determines that the position of the encoding target block on the screen is one of an upper end, a lower end, a left end, and a right end, the encoding amount control means determines a scaling factor of the encoding target block as a reference scaling factor. 7. The high-efficiency encoding apparatus according to claim 6, wherein the quantization is performed at a quantization step larger than a reference value.
【請求項23】前記符号量制御手段が、前記符号化対象
ブロックの動きベクトルと、前記符号化対象ブロックの
周辺ブロックの動きベクトルとのずれを算出し、 前記ベクトルのずれが特定のしきい値より多い場合に、
前記符号化対象ブロックのスケーリングファクタを基準
スケーリングファクタより小さくする、 すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
23. The code amount control means calculates a shift between a motion vector of the coding target block and a motion vector of a peripheral block of the coding target block. If more,
7. The high-efficiency coding apparatus according to claim 6, wherein a scaling factor of the block to be coded is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than a reference value.
【請求項24】前記符号量制御手段が、前記符号化対象
ブロックの動きベクトルと、前記符号化対象ブロックの
周辺ブロックの動きベクトルの種類を検出し、前記符号
化対象ブロックの動きベクトルの種類が、前記符号化対
象ブロックの周辺ブロックの動きベクトルの種類と異な
っていた場合に、前記符号化対象ブロックのスケーリン
グファクタを基準スケーリングファクタより小さくす
る、 すなわち基準値よりもより小さい量子化ステップで量子
化することを特徴とした請求項6記載の高能率符号化装
置。
24. The code amount control means detects a motion vector of the current block and a type of a motion vector of a peripheral block of the current block, and determines a type of the motion vector of the current block. If the type of the motion vector of the peripheral block of the current block is different from that of the current block, the scaling factor of the current block is made smaller than a reference scaling factor, that is, quantization is performed in a quantization step smaller than the reference value. 7. The high-efficiency encoding apparatus according to claim 6, wherein the encoding is performed.
【請求項25】入力された画像に対し、複数の予測演算
方式を前記入力画像を分割するブロック単位で適応的に
切り替え、直交変換、及び可変長符号化を行う符号化手
段と、前記符号化手段における符号化の際の符号量を制
御する符号量制御手段からなる高能率符号化装置におい
て、 前記符号量制御手段が、前記ブロック単位で検出した第
一の動きベクトルと、複数の前記ブロックからなるスー
パーブロック単位で検出した第二の動きベクトルを用い
て、前記ブロック毎にそのブロックの保護度合いを表す
重要度を検出し、前記重要度と基準となるスケーリング
ファクタから、前記ブロックのスケーリングファクタを
決定することを特徴とした高能率符号化装置。
25. Encoding means for adaptively switching a plurality of prediction operation systems for an input image in units of blocks dividing the input image, performing orthogonal transform and variable length encoding, and In a high-efficiency encoding apparatus including a code amount control unit that controls a code amount at the time of encoding in the unit, the code amount control unit detects a first motion vector detected in the block unit and a plurality of the blocks. Using the second motion vector detected in units of super blocks, the importance level representing the degree of protection of the block is detected for each block, and the scaling factor of the block is calculated from the importance level and the reference scaling factor. A high-efficiency coding apparatus characterized by determining.
【請求項26】前記重要度算出手段が、請求項7記載の
重要度算出手段であることを特徴とした請求項1、2、
3、4または5記載の高能率符号化装置。
26. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 7.
6. The high-efficiency coding apparatus according to 3, 4, or 5.
【請求項27】前記重要度算出手段が、請求項8記載の
重要度算出手段であることを特徴とした請求項1、2、
3、4または5記載の高能率符号化装置。
27. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 8.
6. The high-efficiency coding apparatus according to 3, 4, or 5.
【請求項28】前記重要度算出手段が、請求項9記載の
重要度算出手段であることを特徴とした請求項1、2、
3、4または5記載の高能率符号化装置。
28. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 9.
6. The high-efficiency coding apparatus according to 3, 4, or 5.
【請求項29】前記重要度算出手段が、請求項10記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
29. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 10.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項30】前記重要度算出手段が、請求項11記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
30. An apparatus according to claim 11, wherein said importance calculating means is the importance calculating means according to claim 11.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項31】前記重要度算出手段が、請求項12記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
31. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 12.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項32】前記重要度算出手段が、請求項13記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
32. An apparatus according to claim 13, wherein said importance calculating means is the importance calculating means according to claim 13.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項33】前記重要度算出手段が、請求項14記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
33. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 14.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項34】前記重要度算出手段が、請求項15記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
34. An apparatus according to claim 15, wherein said importance calculating means is the importance calculating means according to claim 15.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項35】前記重要度算出手段が、請求項16記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
35. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 16.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項36】前記重要度算出手段が、請求項17記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
36. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 17.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項37】前記重要度算出手段が、請求項18記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
37. An apparatus according to claim 18, wherein said importance calculating means is the importance calculating means according to claim 18.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項38】前記重要度算出手段が、請求項19記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
38. An apparatus according to claim 19, wherein said importance calculating means is the importance calculating means according to claim 19.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項39】前記重要度算出手段が、請求項20記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
39. An apparatus according to claim 20, wherein said importance calculating means is the importance calculating means according to claim 20.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項40】前記重要度算出手段が、請求項21記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
40. An apparatus according to claim 21, wherein said importance calculating means is the importance calculating means according to claim 21.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項41】前記重要度算出手段が、請求項22記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
41. An apparatus according to claim 1, wherein said importance calculating means is the importance calculating means according to claim 22.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項42】前記重要度算出手段が、請求項23記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
42. An apparatus according to claim 23, wherein said importance calculating means is the importance calculating means according to claim 23.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
【請求項43】前記重要度算出手段が、請求項24記載
の重要度算出手段であることを特徴とした請求項1、
2、3、4または5記載の高能率符号化装置。
43. An apparatus according to claim 24, wherein said importance calculating means is the importance calculating means according to claim 24.
6. The high-efficiency coding apparatus according to 2, 3, 4, or 5.
JP14888897A 1997-03-12 1997-06-06 Highly efficient encoding device Pending JPH10341436A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP14888897A JPH10341436A (en) 1997-06-06 1997-06-06 Highly efficient encoding device
EP98905823A EP0905981B1 (en) 1997-03-12 1998-03-10 Video signal coding method and coding device
DE69835058T DE69835058D1 (en) 1997-03-12 1998-03-10 METHOD AND DEVICE FOR VIDEO SIGNAL CODING
PCT/JP1998/000967 WO1998041027A1 (en) 1997-03-12 1998-03-10 Video signal coding method and coding device
US09/180,447 US6553068B1 (en) 1997-03-12 1998-03-10 Video signal coding method and device adapted to control code amounts according to the characteristics of pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14888897A JPH10341436A (en) 1997-06-06 1997-06-06 Highly efficient encoding device

Publications (1)

Publication Number Publication Date
JPH10341436A true JPH10341436A (en) 1998-12-22

Family

ID=15462954

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14888897A Pending JPH10341436A (en) 1997-03-12 1997-06-06 Highly efficient encoding device

Country Status (1)

Country Link
JP (1) JPH10341436A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007243515A (en) * 2006-03-08 2007-09-20 Nippon Hoso Kyokai <Nhk> Color image signal encoding apparatus
KR100800772B1 (en) 2004-05-26 2008-02-01 마츠시타 덴끼 산교 가부시키가이샤 Apparatus and method for encoding motion vector, and program and medium therefor
JP2008219876A (en) * 2007-02-09 2008-09-18 Matsushita Electric Ind Co Ltd Moving image encoding device, moving image encoding method and moving image decoding device
JP2008219870A (en) * 2007-02-09 2008-09-18 Matsushita Electric Ind Co Ltd Moving picture coding method and moving picture encoder
JP2022508246A (en) * 2018-11-27 2022-01-19 オーピー ソリューションズ, エルエルシー Block-based spatial activity measure for pictures

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100800772B1 (en) 2004-05-26 2008-02-01 마츠시타 덴끼 산교 가부시키가이샤 Apparatus and method for encoding motion vector, and program and medium therefor
JP2007243515A (en) * 2006-03-08 2007-09-20 Nippon Hoso Kyokai <Nhk> Color image signal encoding apparatus
JP4714044B2 (en) * 2006-03-08 2011-06-29 日本放送協会 Color image signal encoding apparatus
JP2008219876A (en) * 2007-02-09 2008-09-18 Matsushita Electric Ind Co Ltd Moving image encoding device, moving image encoding method and moving image decoding device
JP2008219870A (en) * 2007-02-09 2008-09-18 Matsushita Electric Ind Co Ltd Moving picture coding method and moving picture encoder
US8279923B2 (en) 2007-02-09 2012-10-02 Panasonic Corporation Video coding method and video coding apparatus
US8526498B2 (en) 2007-02-09 2013-09-03 Panasonic Corporation Video coding apparatus, video coding method, and video decoding apparatus
JP2022508246A (en) * 2018-11-27 2022-01-19 オーピー ソリューションズ, エルエルシー Block-based spatial activity measure for pictures

Similar Documents

Publication Publication Date Title
US7031387B2 (en) B picture mode determining method and apparatus in video coding system
JP2007060164A (en) Apparatus and method for detecting motion vector
JP2008219870A (en) Moving picture coding method and moving picture encoder
CA2739304A1 (en) Moving image encoding apparatus, moving image decoding apparatus, moving image encoding method, moving image decoding method, moving image encoding program, moving image decodingprogram, and moving image encoding/decoding system
JP2004007650A (en) Computerized method for processing video image and recording medium
EP0260721B1 (en) Method and apparatus for coding motion image signal
JP2017034531A (en) Moving image encoder and moving image encoding method
JP4485996B2 (en) Image encoding apparatus and image encoding program
JP3531532B2 (en) Video encoding apparatus and method
KR100632072B1 (en) Moving picture compression/coding apparatus and motion vector detection method
JP2005151391A (en) Method and apparatus for coding moving image, and program
JP2001128179A (en) Device and method for encoding moving picture
JPH0846969A (en) System for encoding video signal
JP6652068B2 (en) Moving picture coding apparatus, moving picture coding method and moving picture coding program
JPH10341436A (en) Highly efficient encoding device
WO2007148596A1 (en) Image encoding device and image encoding method
KR100613732B1 (en) Image Compression System for Digital Video Surveillance and Method for controlling the Same
JPS61164390A (en) Adaptive forecast coding device of inter-frame and between frames of animation picture signal
JP4594561B2 (en) Encoding device and encoding program
JP4847423B2 (en) Moving picture encoding apparatus and computer program
KR100635009B1 (en) Mothod and apparatus for motion estimation considering total moving of image
KR200309401Y1 (en) Image Compression System for Digital Video Surveillance
JPH09327023A (en) Intra-frame/inter-frame coding changeover method and image coding device
KR100196828B1 (en) Method for selecting motion vector in image encoder
JPH08289299A (en) Image data compressor