JPH1028267A - Video-encoding device - Google Patents

Video-encoding device

Info

Publication number
JPH1028267A
JPH1028267A JP17961096A JP17961096A JPH1028267A JP H1028267 A JPH1028267 A JP H1028267A JP 17961096 A JP17961096 A JP 17961096A JP 17961096 A JP17961096 A JP 17961096A JP H1028267 A JPH1028267 A JP H1028267A
Authority
JP
Japan
Prior art keywords
activity
video
predetermined
video signal
image
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.)
Withdrawn
Application number
JP17961096A
Other languages
Japanese (ja)
Inventor
Mamoru Watarido
守 渡戸
Hideki Fukuda
秀樹 福田
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 JP17961096A priority Critical patent/JPH1028267A/en
Publication of JPH1028267A publication Critical patent/JPH1028267A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent a video from generating notches, or to prevent an edge from being partially blurred in the video pattern of a title image of the like after compression encoding. SOLUTION: An input video signal 101 is divided into plural blocks by a block divider 102, discreate cosine converted by a discrete cosine converter 103, quantized by a qiantizer 104 by using a using Q parameter (quantization width) selected by a switcher 117, variable length encoded by a variable length encoder 105, and outputted as a compression-encoded column. The switcher 115 selects a Q parameter 111 which is not modulated by activity as the Q parameter used when an image is a prescribed video pattern such as a title image, and selects a Q parameter 114 which is modulated by activity by a Q parameter modulator 113 when the image is an image except the prescribed video pattern.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、映像信号を圧縮符
号化する映像符号化装置の改良に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in a video encoding device for compressing and encoding a video signal.

【0002】[0002]

【従来の技術】近年、映像信号の符号化装置として、画
像を、近接する複数の画素からなるブロックに分割し、
その各ブロック毎に離散コサイン変換等の直交変換を行
う変換符号化方法を用いたものが一般的に知られてい
る。この符号化方法は、変換係数を所定の量子化幅で量
子化し、ハフマン符号等の可変長符号を用いて圧縮符号
化する方法である。
2. Description of the Related Art In recent years, as an apparatus for encoding a video signal, an image is divided into blocks each including a plurality of adjacent pixels.
A method using a transform coding method for performing an orthogonal transform such as a discrete cosine transform for each block is generally known. This encoding method is a method of quantizing a transform coefficient by a predetermined quantization width, and compressing and encoding using a variable length code such as a Huffman code.

【0003】更に、テレビ信号のような動画像符号化に
おいては、各フレーム間の相関を利用したフレーム間符
号化が行われる。このフレーム間符号化は、符号化の対
象とするフレームから見て過去のフレームを参照フレー
ムとして、対象フレームを予測し、その誤差信号を符号
化する前方向フレーム予測符号化と、過去のフレーム及
び未来のフレームを参照フレームとして、対象フレーム
を予測し、その予測誤差信号を符号化する両方向フレー
ム予測符号化とがあり、両符号化共に効率的に圧縮符号
化が可能である。
Further, in coding of a moving image such as a television signal, inter-frame coding is performed using correlation between frames. This inter-frame coding is performed by predicting a target frame using a past frame as a reference frame when viewed from a frame to be coded, and predicting a target frame and coding an error signal thereof. There is bi-directional frame prediction encoding in which a target frame is predicted using a future frame as a reference frame, and the prediction error signal is encoded. Both types of encoding can be efficiently compression-coded.

【0004】この場合、所定フレーム毎にフレーム内符
号化又は前方向フレーム予測符号化を行い、これ等の間
のフレームは両方向フレーム予測符号化の処理を行う。
前方向フレーム予測符号化の参照フレームは、過去に位
置するフレーム内符号化したフレーム又は前方向フレー
ム予測符号化したフレームの内の最も近接したフレーム
である。また、両方向フレーム予測符号化するフレーム
の参照フレームは、過去及び未来に位置するフレーム内
符号化したフレーム又は前方向フレーム予測符号化した
フレームのうちの近接したフレームである。
In this case, intra-frame coding or forward frame predictive coding is performed for each predetermined frame, and frames between these frames are subjected to bidirectional frame predictive coding.
The reference frame of the forward frame predictive coding is the closest frame among the intra-frame coded frames or the forward frame predictive coded frames located in the past. In addition, the reference frame of the frame to be subjected to bidirectional frame predictive encoding is an adjacent frame among intra-frame encoded frames and forward frame predictive encoded frames located in the past and the future.

【0005】フレーム間の予測は、複数の画素から成る
ブロック毎に行われ、各ブロックの動き量を検出して動
き補償を行う。従って、各ブロックの動き量は予測誤差
信号と共に伝送又は記録される。
[0005] Prediction between frames is performed for each block composed of a plurality of pixels, and motion compensation is performed by detecting the motion amount of each block. Therefore, the motion amount of each block is transmitted or recorded together with the prediction error signal.

【0006】従来では、例えば特開平2ー184188
号公報に開示されるように、動画像信号を複数の連続す
るフレームデータとして蓄積して、3次元又は2次元に
分割し、信号相関性(アクティビティ)を用いて、符号
化処理を行うものがある。
Conventionally, for example, Japanese Patent Laid-Open No. 2-184188
As disclosed in Japanese Unexamined Patent Publication, a video signal is stored as a plurality of continuous frame data, divided into three or two dimensions, and an encoding process is performed using signal correlation (activity). is there.

【0007】また、画像データに対する量子化係数を決
定する方法として、MPEG2のビデオデータに関する
報告書”Test Model 3 Draft(26-Nov,1992) ISO-IEC/J
TC1/SC29/WG11 pp.69-72 ”では、3次元での量子化係
数決定方法について、次のように述べられている。
As a method of determining a quantization coefficient for image data, a report on MPEG2 video data “Test Model 3 Draft (26-Nov, 1992) ISO-IEC / J
TC1 / SC29 / WG11 pp.69-72 "describes the following three-dimensional quantization coefficient determination method.

【0008】『特に第2項「レートコントロール」と第
3項「適応量子化」において、所定領域jの量子化幅mq
uant(j) は次のようにして求められる。
In particular, in the second term “rate control” and the third term “adaptive quantization”, the quantization width mq
uant (j) is obtained as follows.

【0009】但し、ここで、d0は1フレーム画像の仮想
バッファの初期値、B(j)は所定領域jまでの1フレーム
画像内での発生量、MBCNT は画像内の所定領域の個数、
T(j-1)は所定領域の1つ前の予測発生符号量である。
Here, d0 is the initial value of the virtual buffer of one frame image, B (j) is the amount of generation up to a predetermined area j in one frame image, MBCNT is the number of predetermined areas in the image,
T (j-1) is the predicted generated code amount immediately before the predetermined area.

【0010】jは1から始まる自然数であるとして、所
定領域jの符号化を開始する前に特有の仮想バッファの
充填状況d(j) を次のようにして求める。
Assuming that j is a natural number starting from 1, a coding state d (j) of the specific virtual buffer is obtained as follows before the coding of the predetermined area j is started.

【0011】例えば、フレーム内符号化画像の仮想バッ
ファの初期値d0は10 x r/31として求める。
For example, the initial value d0 of the virtual buffer of the intra-frame coded image is obtained as 10 × r / 31.

【0012】 d(j)=d0+B(jー1) x T(jー1)/MBCNT …(式1) 次に、所定領域jの参照量子化係数Q(j)は次のようにし
て求められる。
D (j) = d0 + B (j−1) × T (j−1) / MBCNT (Equation 1) Next, the reference quantization coefficient Q (j) of the predetermined area j is obtained as follows. Can be

【0013】但し、反応係数rは次のように定義する。However, the reaction coefficient r is defined as follows.

【0014】 Q(j)=d(j) x 31/r …(式2) r=2 x 1秒間あたりのビットレート/1秒間あたりのフレーム数 …(式3) 次に、原画像値を持つフレーム及びフィールドを構成す
る合計8つのサブブロックの合計8つの輝度値から、所
定領域jの空間的アクティビティmquant(j) は、次のよ
うにして求められる。但し、ここでいうサブブロックと
は8x8画素で構成される。
Q (j) = d (j) × 31 / r (expression 2) r = 2 × bit rate per second / number of frames per second (expression 3) The spatial activity mquant (j) of the predetermined area j is obtained as follows from a total of eight luminance values of a total of eight sub-blocks constituting the owning frame and field. However, the sub-block here is composed of 8 × 8 pixels.

【0015】 act(j)=1+min(var-sblk) |8-sub-block …(式4) var-sub-block =(1/64) x SUM(Pk - Pmean )|k=1,64 …(式5) Pmean =(1/64) x SUM(Pk)|k=1,64 …(式6) Nact(j) =(2 x act(j) + avgact) / (act(j) + 2 x avgact) …(式7) mquant(j) =Q(j) x Nact(j) …(式8) 』 前記式7より得られる値Nact(j) は性質上“0.5”か
ら“2.0”までの値を持ち、更に、空間的アクティビ
ティmquant(j) は、MPEG2の規格上“1”から“3
1”の値になるように定められている。
Act (j) = 1 + min (var-sblk) | 8-sub-block (Equation 4) var-sub-block = (1/64) × SUM (Pk-Pmean) | k = 1,64 ... (Equation 5) Pmean = (1/64) × SUM (Pk) | k = 1,64 (Equation 6) Nact (j) = (2 × act (j) + avgact) / (act (j) +2 x avgact) (Equation 7) mquant (j) = Q (j) x Nact (j) (Equation 8) The value Nact (j) obtained from the above Equation 7 is from “0.5” to “2 The spatial activity mquant (j) has a value from “1” to “3” according to the MPEG2 standard.
It is determined to be a value of 1 ".

【0016】[0016]

【発明が解決しようとする課題】しかし、これ等は、全
入力データに適用するものであって、全ての画像に効果
的であるとは限らない。
However, these methods are applied to all input data, and are not always effective for all images.

【0017】つまり、字幕画面のようにエッジを多く含
む映像に対して、通常のように、量子化係数を1フレー
ム内の所定領域毎にアクティビティに応じて変化させて
符号化処理を行うと、符号化処理後の画像がギザギザに
なったり、エッジがぼけた映像になるという課題があっ
た。
That is, for a video including many edges such as a subtitle screen, encoding processing is performed by changing the quantization coefficient for each predetermined area in one frame according to the activity as usual. There has been a problem that the image after the encoding process is jagged or has a blurred edge.

【0018】その理由は、字幕画面のようにエッジを多
く含む映像は、1画像内で局所的に輝度値の変化が激し
くなる特性を持つので、アクティビティの変調を用いた
量子化パラメータを用いると、量子化幅の分布が広げら
れてしまい、量子化幅の変化が細かく現れるように変調
されてしまうからである。
The reason is that a video including many edges, such as a subtitle screen, has a characteristic that the luminance value locally changes drastically within one image. Therefore, if a quantization parameter using the modulation of the activity is used. This is because the distribution of the quantization width is widened, and modulation is performed so that the change in the quantization width appears finely.

【0019】人間は、背景よりも文字を、重要な意味を
持つ1つの連続する一様な対象物と見る特性があり、同
じ字の周囲に量子化パラメータの変化があると、同じ字
を異なる量子化幅で符号化することになって、汚い部分
ときれいな部分とが生じるため、汚い部分が目立って、
以上のような矛盾を生じることになる。
Humans have the property of seeing a character as one continuous and uniform object having a more significant meaning than the background, and the same character differs when there is a change in the quantization parameter around the same character. Since encoding is performed using the quantization width, a dirty portion and a clean portion are generated, so the dirty portion is conspicuous,
The above contradictions will occur.

【0020】本発明はかかる点に鑑み、その目的は、字
幕画面等のようにエッジを多く含む映像であっても、符
号化処理後の映像にギザギザが生じたり、又は部分的に
エッジがぼけることを防止することにある。
The present invention has been made in view of the above points, and an object thereof is to provide a jagged or partially blurred edge in a video after encoding processing even for a video including many edges such as a subtitle screen. It is to prevent that.

【0021】[0021]

【課題を解決するための手段】前記目的を達成するた
め、本発明では、字幕画面等のようにエッジを多く含む
映像に対しては、アクティビティの変調を施さない量子
化パラメータを用いて、入力映像信号を圧縮符号化し
て、ギザギザに又は部分的にエッジがぼけた映像になる
ことを防止する。
In order to achieve the above object, according to the present invention, a video including many edges, such as a subtitle screen, is input using a quantization parameter which does not modulate an activity. A video signal is compression-encoded to prevent a jagged or partially blurred edge image.

【0022】本発明では、映像信号が少なくとも所定映
像パターンの時に前記式7の値Nact(j) を“1.0”に
固定すると捉えてもよいし、前記式8が次式9になるも
のとしてもよい。
In the present invention, when the video signal has at least a predetermined video pattern, the value Nact (j) of the above equation (7) may be considered to be fixed to "1.0", or the equation (8) becomes the following equation (9). It may be.

【0023】 mquant(j) =Q(j) x Nact(j) 所定映像パターンでない場合 =Q(j) 所定映像パターンの場合 …(式9) 即ち、本発明の請求項1記載の発明の映像符号化装置
は、入力映像信号を圧縮符号化する映像符号化装置であ
って、前記入力映像信号が所定映像パターンであるか否
かを検出する所定映像パターン検出手段と、前記入力映
像信号を複数画素から成るブロック映像信号に分割する
ブロック分割手段と、前記ブロック分割手段のブロック
映像信号を入力し、これ等のブロック映像信号間のアク
ティビティを算出するアクティビティ算出手段と、前記
所定映像パターン検出手段の出力を入力し、少なくとも
前記入力映像信号が前記所定映像パターンである場合に
は前記アクティビティとは無関係に量子化幅を決定する
一方、前記所定映像パターンでない場合には前記アクテ
ィビティ算出手段により算出されたアクティビティに応
じて量子化幅を決定する量子化幅決定手段と、前記量子
化幅決定手段により決定された量子化幅で前記ブロック
映像信号を量子化する量子化手段とを具備し、前記量子
化手段の出力を可変長符号化して、圧縮符号化列を出力
することを特徴とする。
Mquant (j) = Q (j) × Nact (j) If not a predetermined video pattern = Q (j) if a predetermined video pattern (Equation 9) That is, the video according to the first aspect of the present invention. The encoding device is a video encoding device that compresses and encodes an input video signal, and includes a predetermined video pattern detection unit that detects whether the input video signal is a predetermined video pattern, and a plurality of the input video signals. A block dividing unit that divides the block video signal into pixels, an activity calculating unit that inputs a block video signal of the block dividing unit, calculates an activity between these block video signals, and a predetermined video pattern detecting unit. An output is input, and when at least the input video signal is the predetermined video pattern, the quantization width is determined independently of the activity, while the predetermined video pattern is determined. If not, the quantization width determining means for determining the quantization width according to the activity calculated by the activity calculating means, and the block video signal with the quantization width determined by the quantization width determining means. Quantizing means for quantizing, wherein the output of the quantizing means is subjected to variable-length coding to output a compressed coded sequence.

【0024】請求項2記載の発明の映像符号化装置は、
入力映像信号を圧縮符号化する映像符号化装置であっ
て、前記入力映像信号と同期したタイムコードが入力さ
れ、前記タイムコードが、外部から指定された所定映像
区間を示すか否かを検出する所定映像区間検出手段と、
前記入力映像信号を複数画素から成るブロック映像信号
に分割するブロック分割手段と、前記ブロック分割手段
のブロック映像信号を入力し、これ等のブロック映像信
号間のアクティビティを算出するアクティビティ算出手
段と、前記所定映像区間検出手段の出力を入力し、前記
入力映像信号が前記所定映像区間である場合には前記ア
クティビティとは無関係に量子化幅を決定する一方、前
記所定映像区間でない場合には前記アクティビティ算出
手段により算出されたアクティビティに応じて量子化幅
を決定する量子化幅決定手段と、前記量子化幅決定手段
により決定された量子化幅で前記ブロック映像信号を量
子化する量子化手段とを具備し、前記量子化手段でされ
た信号を可変長符号化して、圧縮符号化列を出力するこ
とを特徴とする。
According to a second aspect of the present invention, there is provided a video encoding apparatus comprising:
A video encoding device that compresses and encodes an input video signal, wherein a time code synchronized with the input video signal is input, and it is detected whether the time code indicates a predetermined video section specified from the outside. Predetermined video section detection means,
A block dividing unit that divides the input video signal into block video signals composed of a plurality of pixels; an activity calculating unit that receives a block video signal of the block dividing unit and calculates an activity between these block video signals; The output of the predetermined video section detection means is input, and if the input video signal is the predetermined video section, the quantization width is determined independently of the activity. Means for determining a quantization width in accordance with the activity calculated by the means, and quantization means for quantizing the block video signal with the quantization width determined by the quantization width determination means. The signal obtained by the quantization means is subjected to variable-length encoding, and a compressed encoded sequence is output.

【0025】請求項3記載の発明の映像符号化装置は、
入力映像信号を圧縮符号化する映像符号化装置であっ
て、外部割り込み信号が入力され、前記外部割り込み信
号の入力の有無を検出する外部割り込み検出手段と、前
記入力映像信号を複数の画素から成るブロック映像信号
に分割するブロック分割手段と、前記ブロック分割手段
のブロック映像信号を入力し、これ等のブロック映像信
号間のアクティビティを算出するアクティビティ算出手
段と、前記外部割り込み検出手段の出力を入力し、少な
くとも前記入力映像信号が前記外部割り込み信号の入力
が有る区間では前記アクティビティとは無関係に量子化
幅を決定する一方、前記外部割り込み信号の入力が無い
区間では前記アクティビティ算出手段により算出された
アクティビティに応じて量子化幅を決定する量子化幅決
定手段と、前記量子化幅決定手段で決定された量子化幅
で前記ブロック映像信号を量子化する量子化手段とを具
備し、前記量子化手段でされた信号を可変長符号化し
て、圧縮符号化列を出力することを特徴とする。
According to a third aspect of the present invention, there is provided a video encoding apparatus comprising:
An image encoding device for compression encoding an input image signal, wherein an external interrupt signal is input, an external interrupt detection means for detecting the presence or absence of the input of the external interrupt signal, and the input image signal comprising a plurality of pixels. A block dividing unit for dividing into block video signals, an input of a block video signal of the block dividing unit, an activity calculating unit for calculating an activity between these block video signals, and an output of the external interrupt detecting unit. In the section where at least the input video signal has the input of the external interrupt signal, the quantization width is determined independently of the activity, while in the section where the external interrupt signal is not input, the activity calculated by the activity calculating means is determined. Quantization width determining means for determining a quantization width according to And a quantizing means for quantizing the block video signal with a quantization width determined by the width determining means, and performing variable-length encoding on the signal generated by the quantizing means to output a compression-encoded sequence. It is characterized by.

【0026】請求項4記載の発明の映像符号化装置は、
入力映像信号を圧縮符号化する映像符号化装置であっ
て、前記入力映像信号を複数の画素から成るブロック映
像信号に分割するブロック分割手段と、前記ブロック分
割手段のブロック映像信号を入力し、これ等のブロック
映像信号間のアクティビティを算出するアクティビティ
算出手段と、前記入力映像信号の所定領域のエッジの有
無を検出するエッジ検出手段と、前記エッジ検出手段の
出力に応じて、前記アクティビティとは無関係に量子化
幅を決定し、又は前記アクティビティ算出手段により算
出されたアクティビティに応じて量子化幅を決定する量
子化幅決定手段と、前記量子化幅決定手段により決定さ
れた量子化幅で前記ブロック映像信号を量子化する量子
化手段とを具備し、前記量子化手段の出力を可変長符号
化して、圧縮符号化列を出力することを特徴とする。
According to a fourth aspect of the present invention, there is provided a video encoding apparatus comprising:
What is claimed is: 1. A video encoding apparatus for compressing and encoding an input video signal, comprising: a block dividing unit that divides the input video signal into block video signals composed of a plurality of pixels; and a block video signal of the block dividing unit. Activity calculating means for calculating an activity between block video signals, etc .; edge detecting means for detecting the presence or absence of an edge in a predetermined area of the input video signal; and irrelevant to the activity according to the output of the edge detecting means. A quantization width determining means for determining a quantization width according to the activity calculated by the activity calculating means, or a quantization width determined according to the activity calculated by the activity calculating means, and the block having the quantization width determined by the quantization width determining means. A quantizing means for quantizing a video signal, wherein an output of the quantizing means is subjected to variable-length encoding and compression encoding. And outputs a.

【0027】請求項5記載の発明の映像符号化装置は、
入力映像信号を圧縮符号化する映像符号化装置であっ
て、前記入力映像信号を複数の画素から成るブロック映
像信号に分割するブロック分割手段と、前記ブロック分
割手段のブロック映像信号を入力し、これ等のブロック
映像信号間のアクティビティを算出するアクティビティ
算出手段と、前記アクティビティ算出手段により算出さ
れたアクティビティの分布に基いて、前記入力映像信号
がエッジを含む画像であるか否かを判別するエッジ画像
検出手段と、前記エッジ画像検出手段の出力を入力し、
少なくとも前記入力映像信号がエッジ画像であると判定
された区間では前記アクティビティとは無関係に量子化
幅を決定する一方、エッジ画像ではないと判定された区
間では前記アクティビティ算出手段により算出されたア
クティビティに応じて量子化幅を決定する量子化幅決定
手段と、前記量子化幅決定手段により決定された量子化
幅で前記ブロック映像信号を量子化する量子化手段とを
具備し、前記量子化手段の出力を可変長符号化して、圧
縮符号化列を出力することを特徴とする。
According to a fifth aspect of the present invention, there is provided a video encoding apparatus comprising:
What is claimed is: 1. A video encoding apparatus for compressing and encoding an input video signal, comprising: a block dividing unit that divides the input video signal into block video signals composed of a plurality of pixels; and a block video signal of the block dividing unit. Activity calculating means for calculating an activity between block video signals, and an edge image for determining whether or not the input video signal is an image including an edge based on a distribution of activities calculated by the activity calculating means. Detecting means, and inputting the output of the edge image detecting means,
At least in the section in which the input video signal is determined to be an edge image, the quantization width is determined independently of the activity, while in the section in which it is determined that the input video signal is not an edge image, the activity calculated by the activity calculating means is determined. A quantization width determining unit that determines a quantization width in accordance with the quantization width, and a quantization unit that quantizes the block video signal with the quantization width determined by the quantization width determination unit. It is characterized in that the output is variable-length coded and a compressed coded sequence is output.

【0028】請求項6記載の発明は、前記請求項1、請
求項2、請求項3、請求項4又は請求項5記載の映像符
号化装置において、前記量子化幅決定手段は、アクティ
ビティとは無関係に量子化幅を決定する場合には、量子
化幅を、外部から指定された量子化幅に決定することを
特徴とする。
According to a sixth aspect of the present invention, in the video encoding apparatus according to the first, second, third, fourth, or fifth aspect, the quantization width determining means may include an activity. When the quantization width is determined independently, the quantization width is determined to be a quantization width specified from the outside.

【0029】請求項7記載の発明は、前記請求項1、請
求項2、請求項3、請求項4又は請求項5記載の映像符
号化装置において、前記アクティビティ算出手段は、前
記入力映像信号の1フレーム内又は1フィールド内の所
定領域の画素レベルの相関量を測定することを特徴とす
る。
According to a seventh aspect of the present invention, in the video encoding device according to the first, second, third, fourth, or fifth aspect, the activity calculating means includes: The method is characterized in that a pixel-level correlation amount in a predetermined area in one frame or one field is measured.

【0030】請求項8記載の発明は、前記請求項1、請
求項2、請求項3、請求項4又は請求項5記載の映像符
号化装置において、前記アクティビティ算出手段は、前
記入力映像信号のフレーム間又はフィールド間の所定領
域の画素レベルの相関量を測定することを特徴とする。
According to an eighth aspect of the present invention, in the video encoding apparatus according to any one of the first, second, third, fourth and fifth aspects, the activity calculating means includes: The method is characterized in that a pixel-level correlation amount in a predetermined area between frames or fields is measured.

【0031】請求項9記載の発明は、前記請求項1記載
の映像符号化装置において、前記所定映像パターン検出
手段は、前記入力映像信号の所定領域の色成分の種類が
所定整数値Kよりも少ないことを検出することを特徴と
する。
According to a ninth aspect of the present invention, in the video encoding apparatus according to the first aspect, the predetermined video pattern detecting means determines that a type of a color component of a predetermined area of the input video signal is smaller than a predetermined integer value K. It is characterized by detecting that the number is small.

【0032】請求項10記載の発明は、前記請求項1記
載の映像符号化装置において、前記所定映像パターン検
出手段は、前記入力映像信号の所定領域の輝度成分が所
定閾値Xよりも大きな輝度成分を持つ画素の個数が所定
整数値M以上であることを検出することを特徴とする。
According to a tenth aspect of the present invention, in the video encoding apparatus according to the first aspect, the predetermined video pattern detecting means includes a luminance component in a predetermined area of the input video signal, the luminance component being larger than a predetermined threshold X. It is characterized in that it is detected that the number of pixels having is equal to or greater than a predetermined integer value M.

【0033】請求項11記載の発明は、前記請求項1記
載の映像符号化装置において、前記所定映像パターン検
出手段は、所定領域の輝度成分が所定数G1を越える画
素の数が所定整数値N1以上であり、且つ所定数G2よ
りも小さい画素の個数が所定整数値N2以上であること
を検出することを特徴とする。
According to an eleventh aspect of the present invention, in the video encoding apparatus according to the first aspect, the predetermined video pattern detecting means determines that the number of pixels whose luminance component in the predetermined area exceeds the predetermined number G1 is a predetermined integer N1. That is, the number of pixels smaller than the predetermined number G2 is detected to be equal to or larger than a predetermined integer value N2.

【0034】請求項12記載の発明は、前記請求項1記
載の映像符号化装置において、前記所定映像パターン検
出手段は、前記入力映像信号が字幕を含む映像であるこ
とを検出することを特徴とする。
According to a twelfth aspect of the present invention, in the video encoding apparatus according to the first aspect, the predetermined video pattern detecting means detects that the input video signal is a video including subtitles. I do.

【0035】請求項13記載の発明は、前記請求項1記
載の映像符号化装置において、前記所定映像パターン検
出手段は、前記入力映像信号がタイトル画面又はメニュ
ー画面であることを検出することを特徴とする。
According to a thirteenth aspect of the present invention, in the video encoding apparatus according to the first aspect, the predetermined video pattern detecting means detects that the input video signal is a title screen or a menu screen. And

【0036】請求項14記載の発明は、前記請求項1記
載の映像符号化装置において、前記所定映像パターン検
出手段は、前記入力映像信号がコンピューターグラフィ
ックス画面を含む映像であることを検出することを特徴
とする。
According to a fourteenth aspect of the present invention, in the video encoding apparatus according to the first aspect, the predetermined video pattern detecting means detects that the input video signal is a video including a computer graphics screen. It is characterized by.

【0037】請求項15記載の発明は、前記請求項1記
載の映像符号化装置において、前記所定映像パターン検
出手段は、前記入力映像信号がアニメーションを含む映
像であることを検出することを特徴とする。
According to a fifteenth aspect of the present invention, in the video encoding apparatus according to the first aspect, the predetermined video pattern detecting means detects that the input video signal is a video including animation. I do.

【0038】請求項16記載の発明は、前記請求項4記
載の映像符号化装置において、前記エッジ検出手段は、
離散コサイン変換後の係数の分布に基いてエッジの有無
を検出することを特徴とする。
According to a sixteenth aspect of the present invention, in the video encoding apparatus according to the fourth aspect, the edge detecting means comprises:
It is characterized in that the presence or absence of an edge is detected based on the distribution of coefficients after the discrete cosine transform.

【0039】請求項17記載の発明は、前記請求項4記
載の映像符号化装置において、前記量子化幅決定手段
は、前記エッジ検出手段によりエッジを持つと判定され
た領域の数が所定領域内で所定閾値F以上である場合に
はアクティビティとは無関係に量子化幅を決定し、所定
閾値F未満である場合はは前記アクティビティ算出手段
により算出されたアクティビティに応じて量子化幅を決
定することを特徴としている。
According to a seventeenth aspect of the present invention, in the video encoding apparatus according to the fourth aspect, the quantization width determining means determines that the number of areas determined to have an edge by the edge detecting means is within a predetermined area. If the value is equal to or more than the predetermined threshold F, the quantization width is determined independently of the activity, and if the value is less than the predetermined threshold F, the quantization width is determined according to the activity calculated by the activity calculating means. It is characterized by.

【0040】請求項18記載の発明は、前記請求項5記
載の映像符号化装置において、前記エッジ画像検出手段
は、所定領域において、前記アクティビティ算出手段に
より算出されたアクティビティの分布が正規分布以外で
ある場合にエッジ画像であると検出することを特徴とす
る。
According to an eighteenth aspect of the present invention, in the video encoding apparatus according to the fifth aspect, the edge image detecting means has a distribution of the activity calculated by the activity calculating means other than a normal distribution in a predetermined area. In some cases, the image is detected as an edge image.

【0041】請求項19記載の発明は、前記請求項5記
載の映像符号化装置において、前記エッジ画像検出手段
は、所定領域において、前記アクティビティ算出手段に
より算出されたアクティビティの最大値と最小値との差
が所定閾値X以上である場合に、エッジ画像であると検
出することを特徴とする。
According to a nineteenth aspect of the present invention, in the video encoding apparatus according to the fifth aspect, the edge image detecting means determines a maximum value and a minimum value of the activity calculated by the activity calculating means in a predetermined area. When the difference is equal to or more than the predetermined threshold value X, the image is detected as an edge image.

【0042】請求項20記載の発明は、前記請求項5記
載の映像符号化装置において、前記エッジ画像検出手段
は、所定領域において、前記アクティビティ算出手段に
より算出されたアクティビティの最大値が所定閾値X1
以上であり、且つ最小値が所定閾値X2以下である場合
に、エッジ画像であると検出することを特徴としてい
る。
According to a twentieth aspect of the present invention, in the video encoding apparatus according to the fifth aspect, the edge image detecting means determines that a maximum value of the activity calculated by the activity calculating means is equal to a predetermined threshold value X1 in a predetermined area.
If the minimum value is equal to or smaller than the predetermined threshold value X2, the image is detected as an edge image.

【0043】請求項21記載の発明は、前記請求項5記
載の映像符号化装置において、前記エッジ画像検出手段
は、所定領域において、所定閾値G1以上のアクティビ
ティの個数が所定整数値X1以上であり、且つ所定閾値
G2未満のアクティビティの個数が所定整数値X2以上
である場合に、エッジ画像であると検出することを特徴
とする。
According to a twenty-first aspect of the present invention, in the video encoding apparatus according to the fifth aspect, the edge image detecting means determines that the number of activities having a predetermined threshold value G1 or more in a predetermined area is a predetermined integer value X1 or more. When the number of activities less than the predetermined threshold value G2 is equal to or more than a predetermined integer value X2, it is detected as an edge image.

【0044】請求項22記載の発明は、前記請求項5記
載の映像符号化装置において、前記エッジ画像検出手段
は、所定領域において、1個のアクティビティとこのア
クティビティに隣接するM(Mは1から8の整数)個の
アクティビティとの各々の差が所定閾値Tを越えるもの
の数が所定数Nを越える場合に、エッジ画像であると検
出することを特徴とする。
According to a twenty-second aspect of the present invention, in the video encoding apparatus according to the fifth aspect, the edge image detecting means includes, in a predetermined area, one activity and M (M is 1 to 1) adjacent to the activity. If the difference between each of the activities and the number of activities exceeds the predetermined threshold T, the number of activities exceeds the predetermined number N, and the activity is detected as an edge image.

【0045】以上の構成により、請求項1及びこれに従
属する請求項記載の発明の映像符号化装置では、少なく
とも入力映像信号が所定映像パターンの場合には、アク
ティビティとは無関係に決定された量子化幅を用いて可
変長符号化処理が行われる一方、所定映像パターンでな
い場合には、算出されたアクティビティに応じて決定さ
れた量子化幅を用いて可変長符号化処理が行われる。従
って、少なくとも入力映像信号が字幕画面等の所定映像
パターンの場合には、圧縮符号化後の映像は、従来のよ
うにギザギザに、又は部分的にエッジがほげた映像とは
ならず、良好な映像が得られる。また、入力映像信号が
所定映像パターンでない場合には、圧縮符号化後の映像
は、従来と同様にアクティビティが反映された良好な映
像が得られる。
With the above arrangement, in the video encoding apparatus according to the first and the second aspects of the present invention, when at least the input video signal is a predetermined video pattern, the quantum coding determined independently of the activity is performed. While the variable length encoding process is performed using the quantization width, if the video pattern is not the predetermined video pattern, the variable length encoding process is performed using the quantization width determined according to the calculated activity. Therefore, when at least the input video signal is a predetermined video pattern such as a subtitle screen, the video after compression encoding does not become jagged or partially edge-blown video as in the related art. Video is obtained. If the input video signal is not a predetermined video pattern, a good video in which the activity is reflected can be obtained as in the conventional video after the compression encoding.

【0046】また、請求項2及びこれに従属する請求項
記載の発明の映像符号化装置では、入力されたタイムコ
ードが所定映像パターンを指定している場合には、アク
ティビティとは無関係に決定された量子化幅を用いて可
変長符号化処理が行われるので、前記と同様に、少なく
とも入力映像信号が字幕画面等の所定映像パターンの場
合には、圧縮符号化後の映像は、従来のようにギザギザ
に、又は部分的にエッジがほげた映像とはならず、良好
な映像が得られる。
In the video encoding apparatus according to the present invention, when the input time code specifies a predetermined video pattern, the time code is determined irrespective of the activity. Since the variable-length encoding process is performed using the quantization width obtained in the above-described manner, in the same manner as described above, if at least the input video signal is a predetermined video pattern such as a subtitle screen, the video after the compression encoding is performed as in the related art. The image does not become jagged or partially edged, and a good image is obtained.

【0047】更に、請求項3及びこれに従属する請求項
記載の発明の映像符号化装置では、外部割り込み信号が
入力された期間の映像信号では、アクティビティとは無
関係に決定された量子化幅を用いて可変長符号化処理が
行われるので、字幕画面等の所定映像シーンで前記外部
割り込み信号を入力すれば、少くともこの所定映像シー
ンでは、圧縮符号化後の字幕画面等の映像は、従来のよ
うにギザギザに、又は部分的にエッジがほげた映像とは
ならず、良好な映像が得られる。
Further, in the video encoding apparatus according to the third and the third aspects of the present invention, in the video signal during the period in which the external interrupt signal is input, the quantization width determined independently of the activity is used. Since the variable-length encoding process is performed using the external interrupt signal in a predetermined video scene such as a subtitle screen, at least in the predetermined video scene, a video such as a subtitle screen after compression encoding is conventionally used. As described above, the image does not become jagged or partially edge-blown, and a good image can be obtained.

【0048】加えて、請求項4及びこれに従属する請求
項記載の発明の映像符号化装置では、エッジを多く含む
映像信号では、アクティビティとは無関係に決定された
量子化幅を用いて可変長符号化処理が行われるので、こ
のエッジを多く含む字幕画面等の映像シーンでは、圧縮
符号化後の字幕画面等の映像は、従来のようにギザギザ
に、又は部分的にエッジがほげた映像とはならず、良好
な映像が得られる。
In addition, in the video encoding apparatus according to the fourth aspect and the dependent claims, a video signal having many edges is variable length using a quantization width determined independently of an activity. Since the encoding process is performed, in a video scene such as a subtitle screen including many edges, a video such as a subtitle screen after compression encoding is defined as a jagged or a partially edged video as in the related art. And good images can be obtained.

【0049】更に加えて、請求項5及びこれに従属する
請求項記載の発明の映像符号化装置では、アクティビテ
ィの分布により画像の複雑度が判別され、絵柄が複雑な
画像等のエッジを含む画像では、アクティビティとは無
関係に決定された量子化幅を用いて可変長符号化処理が
行われるので、このエッジを含む字幕画面等の画像は、
従来のようにギザギザに、又は部分的にエッジがほげた
映像とはならず、良好な画像が得られる。
In addition, in the video encoding apparatus according to the present invention described in claim 5 and the dependent claims, the complexity of the image is determined based on the distribution of the activity, and the image including an edge such as an image with a complicated pattern is determined. In, the variable-length encoding process is performed using the quantization width determined independently of the activity, so that an image such as a subtitle screen including the edge is
A good image can be obtained without a jagged or partially blurred edge as in the related art.

【0050】特に、請求項7記載の発明の映像符号化装
置では、アクティビティを、入力映像信号の1フレーム
内又は1フィールド内の所定領域の画素レベルの相関量
を測定して検出するので、フレーム内の特徴を画像の複
雑度に反映できる。
In particular, in the video encoding apparatus according to the present invention, the activity is detected by measuring the correlation level of the pixel level in a predetermined area within one frame or one field of the input video signal. Can be reflected in the complexity of the image.

【0051】また、請求項8記載の発明の映像符号化装
置では、アクティビティを、入力映像信号のフレーム間
又はフィールド間の所定領域の画素レベルの相関量を測
定して検出するので、フレーム間の特徴を画像の複雑度
に反映できる。
In the video encoding apparatus according to the present invention, the activity is measured and detected by measuring the pixel-level correlation in a predetermined area between frames or fields of the input video signal. Features can be reflected in the complexity of the image.

【0052】[0052]

【発明の実施の形態】以下、本発明の映像符号化装置の
実施の形態について、図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a video encoding apparatus according to the present invention will be described below with reference to the drawings.

【0053】(第1の実施の形態)図1に、本発明の第
1の実施の形態における映像符号化装置の構成を示す。
(First Embodiment) FIG. 1 shows a configuration of a video encoding apparatus according to a first embodiment of the present invention.

【0054】同図において、101は入力映像信号、1
02はブロック分割器(ブロック分割手段)、103は
離散コサイン変換器、104は量子化器(量子化手
段)、105は可変長符号化器、106は使用Qパラメ
ータ、107は圧縮符号化列、108は符号量測定器、
109は割り当て符号化値、110は符号量制御器、1
11はQパラメータ、112はアクティビティ算出器
(アクティビティ算出手段)、113はQパラメータ変
調器、114は変調Qパラメータ、115は切り替え器
(量子化幅決定手段)、116は所定映像パターン検出
器(所定映像パターン検出手段)、117は切り替え信
号である。
In the figure, 101 is an input video signal, 1
02 is a block divider (block dividing means), 103 is a discrete cosine transformer, 104 is a quantizer (quantizing means), 105 is a variable length encoder, 106 is a used Q parameter, 107 is a compressed coded sequence, 108 is a code amount measuring device,
109 is an assigned coded value, 110 is a code amount controller, 1
11 is a Q parameter, 112 is an activity calculator (activity calculating means), 113 is a Q parameter modulator, 114 is a modulation Q parameter, 115 is a switch (quantization width determining means), 116 is a predetermined video pattern detector (predetermined Image pattern detecting means) 117 is a switching signal.

【0055】以下、図1の映像符号化装置を詳細に説明
する。入力映像信号101は所定映像パターン検出器1
16及びブロック分割器102に入力される。所定映像
パターン検出器116は、入力映像信号101を入力
し、1フレーム又は1フィールド単位で所定映像パター
ンか否かを判別し、所定映像パターンでない場合には、
切り替え器115の入力側をQパラメータ変調器113
の出力である変調Qパラメータ114側に切り替え、所
定パターンである場合には切り替え器115の入力側を
符号量制御器110の出力であるQパラメータ111側
に切り替える。
Hereinafter, the video encoding apparatus of FIG. 1 will be described in detail. The input video signal 101 is a predetermined video pattern detector 1
16 and the block divider 102. The predetermined video pattern detector 116 receives the input video signal 101, determines whether or not the frame is a predetermined video pattern in units of one frame or one field.
The input side of the switch 115 is connected to the Q parameter modulator 113
, And switches the input side of the switch 115 to the Q parameter 111 output of the code amount controller 110 in the case of a predetermined pattern.

【0056】また、ブロック分割器102の出力はアク
ティビティ算出器112に入力され、アクティビティ算
出器112は、所定領域毎のアクティビティをフレーム
内の画素又はフレーム間の画素を基準に求める。
The output of the block divider 102 is input to an activity calculator 112, and the activity calculator 112 obtains the activity of each predetermined area based on pixels within a frame or pixels between frames.

【0057】一方、ブロック分割器102の出力は離散
コサイン変換器103に入力され、周波数データに変換
されて、量子化器104に入力される。
On the other hand, the output of the block divider 102 is input to the discrete cosine transformer 103, converted into frequency data, and input to the quantizer 104.

【0058】ここで、量子化器104は、所定領域の周
波数データを、決定した量子化幅、即ち使用Qパラメー
タ106で量子化するが、使用Qパラメータ106は、
上述のように、所定映像パターンでない場合には変調し
たQパラメータ114を用い、所定映像パターンである
場合には変調しないQパラメータ111を用いる。
Here, the quantizer 104 quantizes the frequency data in the predetermined area with the determined quantization width, that is, the used Q parameter 106.
As described above, the modulated Q parameter 114 is used when the image is not a predetermined image pattern, and the unmodulated Q parameter 111 is used when the image is a predetermined image pattern.

【0059】可変長符号化器105は、量子化器104
の出力である量子化コードを可変長符号化して、圧縮符
号化列107を生成する。
The variable length encoder 105 includes a quantizer 104
Is subjected to variable-length coding to generate a compressed coded sequence 107.

【0060】この時、圧縮符号化列107の発生符号量
を符号量測定器108が測定し、その測定値と割り当て
符号化値109とが符号量制御器110に入力される。
前記符号量制御器110は、前記入力された2つの値の
差を検出し、次の所定領域の発生符号量を制御するため
にQパラメータ111を、例えば前記式2に基いて計算
する。
At this time, the code amount measuring device 108 measures the generated code amount of the compression coded sequence 107, and the measured value and the assigned coded value 109 are input to the code amount controller 110.
The code amount controller 110 detects a difference between the two input values and calculates a Q parameter 111 based on, for example, Equation 2 in order to control the generated code amount in the next predetermined area.

【0061】尚、所定映像パターンとは、字幕を含む画
面、カラーバー、静止画、フラッシング画像、テストパ
ターン、タイトル画面、コンピュータグラフィックスに
よって作成された画像、アニメーションを含む画像等、
動きが少なくても複雑な絵柄を持つ画像、又は、局所的
にエッジを含むパターンが含まれる画像等、何れでもよ
い。
The predetermined video pattern includes a screen including subtitles, a color bar, a still image, a flashing image, a test pattern, a title screen, an image created by computer graphics, an image including animation, and the like.
The image may be an image having a complicated pattern with little movement, or an image including a pattern including an edge locally.

【0062】アクティビティの高い映像は一般に符号化
難易度は高いが、発生した符号化ノイズは認識され難
い。逆に、アクティビティの低い画像では符号化ノイズ
が目立ち易い傾向がある。
A video having a high activity generally has a high coding difficulty, but the generated coding noise is hard to recognize. Conversely, coding noise tends to be more noticeable in images with low activity.

【0063】従って、アクティビティの大きさに応じて
量子化パラメータを制御することによって画質の劣化を
抑制することができ、映像シーン全体での高画質化を図
ることができる。
Therefore, by controlling the quantization parameter in accordance with the size of the activity, it is possible to suppress the deterioration of the image quality, and to improve the image quality of the entire video scene.

【0064】すなわち、符号量制御器110は、可変長
符号化器105が映像信号をシーンに応じた符号化レー
トで符号化できるようにQパラメータ111を決定す
る。
That is, the code amount controller 110 determines the Q parameter 111 so that the variable length encoder 105 can encode the video signal at an encoding rate according to the scene.

【0065】(所定映像パターン検出器の第1の例)次
に、所定映像パターン検出器116の一例として、1画
面内のアクティビティを用いて字幕検出を行う構成を図
6を用いて説明する。
(First Example of Predetermined Video Pattern Detector) Next, as an example of the predetermined video pattern detector 116, a configuration for performing caption detection using an activity in one screen will be described with reference to FIG.

【0066】図6において、601は入力映像信号、6
02は輝度成分・色成分分解器、603は輝度成分、6
04は色成分、605はアクティビティ検出器、606
は所定領域アクティビティ、607は所定領域検出器、
608は所定領域制御信号、609は所定領域番号、6
10は基準領域検出器、611は基準領域リスト、61
2は基準領域制御信号、613はアクティビティ基準領
域平均化器、614は基準領域アクティビティ平均値、
615はアクティビティ差分値算出器、616はアクテ
ィビティ差分値、617はアクティビティ差分値閾値比
較器、618はアクティビティ閾値、619は輝度成分
判定結果、620は色成分種類調査器、621は色成分
種類数、622は色成分閾値判定器、623は色成分種
類数閾値、624は色成分判定結果、625は判定結果
統合器、626は所定パターン判定結果、627は切り
替え器制御器、628は切り替え信号である。
In FIG. 6, reference numeral 601 denotes an input video signal;
02 is a luminance component / color component decomposer, 603 is a luminance component, 6
04 is a color component, 605 is an activity detector, 606
Is a predetermined area activity, 607 is a predetermined area detector,
608 is a predetermined area control signal, 609 is a predetermined area number, 6
10 is a reference area detector, 611 is a reference area list, 61
2 is a reference region control signal, 613 is an activity reference region averager, 614 is a reference region activity average value,
615 is an activity difference value calculator, 616 is an activity difference value, 617 is an activity difference value threshold comparator, 618 is an activity threshold, 619 is a luminance component determination result, 620 is a color component type checker, 621 is the number of color component types, 622 is a color component threshold value judging device, 623 is a color component type number threshold value, 624 is a color component judgment result, 625 is a judgment result integrator, 626 is a predetermined pattern judgment result, 627 is a switch controller, and 628 is a switch signal. .

【0067】図7は、図6の所定映像パターン検出器1
16の構成を説明するための図であり、1フレーム(例
えば横720x縦480画素とする)内のアクティビテ
ィを所定領域毎(例えば16x16画素)に分割して、
アクティビティを求め、これ等を数値で表したものであ
る。705は1フレームの領域を表し、701は左上隅
の領域(例えば48x48画素)、702は右上隅の領
域(48x48画素)、703は左下隅(例えば48x
48画素)の領域、704は右下隅の領域(例えば48
x48画素)である。
FIG. 7 shows the predetermined image pattern detector 1 shown in FIG.
FIG. 16 is a diagram for explaining the configuration of the 16th embodiment. The activity in one frame (for example, 720 × 480 pixels) is divided into predetermined regions (for example, 16 × 16 pixels).
Activities are obtained, and these are represented by numerical values. Reference numeral 705 denotes an area of one frame, 701 denotes an upper left corner area (for example, 48 × 48 pixels), 702 denotes an upper right corner area (48 × 48 pixels), and 703 denotes a lower left corner (for example, 48 × 48 pixels).
A region 704 is a lower right corner (for example, 48 pixels).
x48 pixels).

【0068】字幕画像では、1フレーム内の4隅のアク
ティビティがほぼ同じであり、変化があるのは画面中央
部分だけである。しかも、色成分は白黒2色又は3色程
度であるので、色成分にもばらつきがほとんど無いと考
えられる。
In the subtitle image, the activities at the four corners in one frame are almost the same, and only the central part of the screen changes. Moreover, since the color components are about two or three colors of black and white, it is considered that there is almost no variation in the color components.

【0069】そこで、図7に示すように、あるフレーム
のアクティビティをフレーム内で計算し、そのフレーム
の4隅の領域701、702、703、704のアクテ
ィビティの平均値を算出し、4つの平均値の最小値と最
大値の差が、ある閾値α(αは経験的に決定される所定
定数)以下であれば、そのフレームはアクティビティの
変動が画面周囲で少ない画像であると推測されるので、
そのフレームは所定パターン(字幕)であると判別でき
る。
Therefore, as shown in FIG. 7, the activity of a certain frame is calculated in the frame, the average value of the activities in the four corner areas 701, 702, 703, and 704 is calculated, and the four average values are calculated. If the difference between the minimum value and the maximum value is less than or equal to a certain threshold value α (α is a predetermined constant empirically determined), the frame is presumed to be an image in which the fluctuation of the activity is small around the screen.
The frame can be determined to be a predetermined pattern (caption).

【0070】例えば、図7において、領域701及び領
域702及び領域703のアクティビティの平均値は
“1.00”、領域704のアクティビティの平均値は“1.
1875”であり、4つの領域でのアクティビティの平均値
の最小値と最大値の差は“0.1875”となり、閾値αが
“3.00”であるとすると、4隅の領域でのアクティビテ
ィの振幅は、アクティビティの閾値よりも小さい値であ
るので字幕画像であると判定できる。
For example, in FIG. 7, the average value of the activity in the area 701, the area 702, and the area 703 is “1.00”, and the average value of the activity in the area 704 is “1.
1875 ”, the difference between the minimum and maximum values of the average value of the activity in the four areas is“ 0.1875 ”, and if the threshold α is“ 3.00 ”, the amplitude of the activity in the four corner areas is Since the value is smaller than the activity threshold, it can be determined that the image is a caption image.

【0071】図6において、入力映像信号601は、輝
度成分・色成分分解器602に入力されて、輝度成分6
03、色成分604に分解される。
In FIG. 6, an input video signal 601 is input to a luminance component / color component
03, separated into color components 604.

【0072】輝度成分603は、画面内アクティビティ
検出器605に入力される。このアクティビティ検出器
605は、例えば、1フレームでの画素内の画素レベル
の相関量を用いてアクティビティをフレーム内の各所定
領域毎に算出し、所定領域のアクティビティ606とし
て出力する。
The luminance component 603 is input to the in-screen activity detector 605. The activity detector 605 calculates an activity for each predetermined area in a frame using, for example, a pixel level correlation amount in a pixel in one frame, and outputs the activity as an activity 606 of the predetermined area.

【0073】また、所定領域検出器607は入力映像信
号601を入力し、画面内アクティビティ検出器605
の算出するアクティビティ606の出力タイミングを制
御する。基準領域検出器610は、1フレーム内の4隅
の領域を基準領域として検出する。画面内アクティビテ
ィ検出器605は、所定領域アクティビティ606をア
クティビティ基準領域平均化器613に出力し、このア
クティビティ基準領域平均化器613は基準領域アクテ
ィビティ平均値614を算出する。このとき、基準領域
検出器608は、所定領域検出器607の出力である所
定領域番号609を入力し、基準領域がどの画素領域か
を表す基準領域リスト611を参照して、各基準領域毎
に基準領域制御信号612を出力して、アクティビティ
基準領域平均化器613の計算タイミングを制御する。
例えば、各基準領域の開始点でアクティビティ基準領域
平均化器608のアクティビティの平均値を計算する計
算レジスタをリセットし、基準領域毎のアクティビティ
の平均値である基準領域アクティビティ平均値614を
求めるタイミングを制御する。
The predetermined area detector 607 receives the input video signal 601 and outputs the in-screen activity detector 605.
The output timing of the activity 606 to be calculated is controlled. The reference area detector 610 detects four corner areas in one frame as reference areas. The in-screen activity detector 605 outputs the predetermined area activity 606 to the activity reference area averager 613, and the activity reference area averager 613 calculates a reference area activity average value 614. At this time, the reference region detector 608 inputs the predetermined region number 609 output from the predetermined region detector 607, and refers to a reference region list 611 indicating which pixel region is the reference region, and for each reference region. It outputs a reference area control signal 612 to control the calculation timing of the activity reference area averager 613.
For example, at the start point of each reference region, the calculation register for calculating the average value of the activity of the activity reference region averager 608 is reset, and the timing for obtaining the reference region activity average value 614 which is the average value of the activity for each reference region is determined. Control.

【0074】基準領域アクティビティ平均値614は、
アクティビティ差分値算出器615に入力され、4つの
基準領域でのアクティビティの平均値をストアし、これ
等の最小値と最大値との差を算出する。即ち、1フレー
ム内の4隅の領域のアクティビティの振れ幅を算出し、
アクティビティ差分値616として出力する。
The reference area activity average value 614 is
The average value of the activities in the four reference areas is stored in the activity difference value calculator 615, and the difference between the minimum value and the maximum value is calculated. That is, the amplitude of the activity in the four corner areas in one frame is calculated,
It is output as the activity difference value 616.

【0075】ここで、アクティビティ差分値閾値比較器
611は、アクティビティ差分値616がアクティビテ
ィ閾値618を下回っているか否かを比較し、下回って
いる場合には、輝度成分から判定すると字幕であるの
で、例えば輝度成分判定結果619を1ビットの信号と
し、値“1“として、1フレームの最後に出力する。一
方、下回っていない場合は、輝度成分からは字幕でない
と判別されるので、輝度成分判定結果619を値“0”
として出力する。
Here, the activity difference threshold comparator 611 compares whether or not the activity difference 616 is below the activity threshold 618. If the activity difference is below the activity threshold 618, the subtitle is determined based on the luminance component. For example, the luminance component determination result 619 is a 1-bit signal, and is output as the value “1” at the end of one frame. On the other hand, if it is not below, it is determined from the luminance component that it is not a caption, so the luminance component determination result 619 is set to the value “0”.
Output as

【0076】尚、アクティビティ閾値618はある所定
定数であって、経験的に符号化前に外部から与えること
ができる。
The activity threshold 618 is a predetermined constant and can be empirically given from outside before encoding.

【0077】また、色成分603は色成分種類調査器6
20に入力され、例えば1フレーム内に色成分が何種類
存在するかを示す色成分種類数621を出力し、色成分
閾値判定器622は色成分種類数621が色成分種類数
閾値623を下回っているか否かを比較し、下回ってい
る場合には字幕であるので、例えば色成分判定結果62
4を1ビットの信号とし、値“1”として、1フレーム
の最後に出力する。一方、下回っていない場合は、色成
分からは字幕でないと判定されるので、色成分判定結果
624を値“0”として出力する。尚、色成分種類調査
器620は、色成分の種類を調べる場合に、非常に頻度
の少ない色成分を色成分であるとは認めないで、所定数
Jよりも頻度の多い色成分の種類を色成分種類数621
としても良い。
The color component 603 is the color component type checker 6
20 and outputs, for example, the number of color component types 621 indicating how many color components exist in one frame. The color component threshold value determiner 622 determines that the number of color component types 621 falls below the color component type number threshold value 623. The subtitles are compared if they are below, and if they are below the captions, for example, the color component determination result 62
4 is a 1-bit signal, and is output as the value “1” at the end of one frame. On the other hand, if it is not below, it is determined from the color component that it is not a caption, and the color component determination result 624 is output as a value “0”. When checking the type of the color component, the color component type checker 620 does not recognize the color component that is very infrequent as a color component, and determines the type of the color component that is more frequent than the predetermined number J. Number of color component types 621
It is good.

【0078】色成分閾値623はある所定定数であっ
て、経験的に符号化前に外部から与える等すればよい。
The color component threshold value 623 is a predetermined constant, and may be empirically provided from outside before encoding.

【0079】判定結果統合器625は、輝度成分判定結
果619及び色成分判定結果624を入力とし、例えば
輝度成分判定結果619及び色成分判定結果624が共
に“1”の場合は所定パターン(字幕を含む画像)であ
るとし、所定パターン判定結果626を“1”として出
力する。それ以外の場合には、所定パターン判定結果6
26を“0”として出力する。
The judgment result integrator 625 receives the luminance component judgment result 619 and the color component judgment result 624 as inputs. For example, when both the luminance component judgment result 619 and the color component judgment result 624 are “1”, a predetermined pattern , And outputs the predetermined pattern determination result 626 as “1”. Otherwise, the predetermined pattern determination result 6
26 is output as "0".

【0080】切り替え器制御器627は、所定パターン
判定結果626に応じて切り替え信号628を、例えば
所定映像パターンである場合には“1”、所定映像パタ
ーンでない場合には“0”として出力する。
The switch controller 627 outputs a switching signal 628 according to the predetermined pattern determination result 626 as, for example, “1” when the image is a predetermined image pattern, and “0” when the image is not a predetermined image pattern.

【0081】尚、少なくとも字幕である映像シーンを判
別したい場合には、アクティビティ閾値618を大きな
値に変化させたり、色成分閾値623を大きく設定して
判定基準を緩くしても良い。また、判定結果統合器62
5は、輝度成分判定結果619と色成分判定結果624
との何れかが“1”の場合には、所定パターン(字幕)
であるとし、所定パターン判定結果626を“1”とし
て出力してもよい。
When it is desired to discriminate at least a video scene which is a subtitle, the activity threshold 618 may be changed to a large value, or the color component threshold 623 may be set large to loosen the criterion. The judgment result integrator 62
5 is a luminance component determination result 619 and a color component determination result 624
If any of the above is “1”, a predetermined pattern (caption)
And the predetermined pattern determination result 626 may be output as “1”.

【0082】尚、判定の簡易化を図って、輝度成分か色
成分の何れか一方だけを用いて所定パターンであるか否
かを判別しても良く、要は、字幕シーンのように動きが
少ないが複雑な絵柄の画像パターン、又はエッジを含む
ような画像パターンであることを判別できる方法であれ
ば、何れでも良い。
In order to simplify the determination, it is possible to determine whether the pattern is a predetermined pattern using only one of the luminance component and the color component. Any method may be used as long as it can be determined that the image pattern is a small but complicated image pattern or an image pattern including an edge.

【0083】また、基準領域として選ぶ領域は必ずしも
1フレームの4隅である必要はなく、例えば画面上部又
は画面下部を選択し、又は字幕の場合には動きの変化が
少ない部分等を選択して判別しても良いし、4隅を基準
領域として取る場合にも、4隅を同じ画素領域数にする
必要はない。
The area to be selected as the reference area does not necessarily need to be the four corners of one frame. For example, the upper part or the lower part of the screen is selected. The determination may be made, and even when the four corners are set as the reference area, the four corners need not have the same number of pixel areas.

【0084】尚、字幕画面を判別する方法は、字幕との
パターンマッチングでも良いし、字幕が出る部分が明ら
かな場合には、その部分の映像パターンのアクティビテ
ィの変化が激しくなる等の現象を元に判別しても良い
し、判別法は何れでも良い。
Incidentally, the method of discriminating the subtitle screen may be pattern matching with the subtitle, or if the portion where the subtitle appears is clear, the change of the video pattern activity in that portion may be greatly changed. May be discriminated, and any discrimination method may be used.

【0085】(所定映像パターン検出器の第2の例)次
に、所定映像パターン検出器116の第2の例として、
字幕やタイトル画面の特性で、入力映像信号の色成分の
種類が少ない点を利用したものを挙げる。
(Second Example of Predetermined Image Pattern Detector) Next, as a second example of the predetermined image pattern detector 116,
An example of the characteristics of subtitles and title screens utilizing the fact that the types of color components of an input video signal are small.

【0086】図8は、第2の例の所定映像パターン検出
器の構成を示す。
FIG. 8 shows the configuration of the predetermined image pattern detector of the second example.

【0087】同図において、801は入力映像信号、8
02は輝度成分・色成分分解回路、803は色成分、8
04は色成分種類調査器、805は色成分種類数、80
6は色成分種類数閾値、807は色成分閾値判定器、8
08は色成分判定結果、809は切り替え器制御器、8
10は切り替え信号である。
In the figure, reference numeral 801 denotes an input video signal;
02 is a luminance component / color component separation circuit, 803 is a color component, 8
04 is a color component type checker, 805 is the number of color component types, 80
6 is a color component type number threshold, 807 is a color component threshold value judging device, 8
08 is a color component determination result, 809 is a switch controller, 8
10 is a switching signal.

【0088】入力映像信号801は、輝度成分・色成分
分解回路802に入力され、特に色成分803のみを取
り出す。
An input video signal 801 is input to a luminance component / color component separation circuit 802, and in particular, extracts only a color component 803.

【0089】また、色成分803は色成分種類調査器8
04に入力され、例えば1フレーム内に色成分が何種類
存在するかを示す色成分種類数805を出力し、色成分
閾値判定器807は色成分種類数805が色成分種類数
閾値806を下回っているか否かを比較し、下回ってい
る場合には字幕であるので、例えば色成分判定結果80
8を1ビットの信号とし、値“1”として1フレームの
最後に出力する。一方、下回っていない場合は、色成分
からは字幕でないと判定されるので、色成分判定結果8
08を“0”として出力する。尚、色成分種類調査器8
04は、色成分の種類を調べた時に、非常に頻度の少な
い色成分を色成分であるとは認めないで、所定数Jより
も頻度のある色成分の種類を色成分種類805としても
良い。
The color component 803 is the color component type checker 8
For example, a color component type number 805 indicating the number of color components present in one frame is output, and the color component threshold value determiner 807 determines that the color component type number 805 is lower than the color component type number threshold value 806. It is determined whether or not the color component is determined to be a subtitle.
8 is a 1-bit signal, and is output as the value "1" at the end of one frame. On the other hand, if it is not below, it is determined from the color component that it is not a subtitle.
08 is output as “0”. The color component type checker 8
In reference numeral 04, when examining the types of color components, a color component with a very low frequency is not recognized as a color component, and a color component type with a frequency higher than a predetermined number J may be set as the color component type 805. .

【0090】切り替え器制御器809は、色成分判定結
果808に従って色成分判定結果808が“1”の場合
にはアクティビティの変調がないQパラメータ、“0”
の時にはアクティビティの変調があるQパラメータを選
択するように切り替え信号810を切り替える。
When the color component determination result 808 is “1” in accordance with the color component determination result 808, the switch controller 809 sets the Q parameter having no activity modulation, “0”.
At the time of the switching, the switching signal 810 is switched so as to select the Q parameter having the activity modulation.

【0091】(所定映像パターン検出器の第3の例)次
に、所定映像パターン検出器116の第3の例として、
字幕やタイトル画面の特性で、入力映像信号の輝度成分
が極端に明るい部分を持つ点を利用したものを挙げる。
その画像は、例えば、真黒又はブルーバックした画面の
中央に、白い文字がスクロールする画像や、タイトルが
浮き出てくる画像、ダイヤモンドが光っている画像、爆
発シーン、星空、きらきらと光る水面等を指す。コンピ
ュータグラフィックスによって作られた製作会社のロゴ
やマークを埋め込んだ画像、アニメーションで暗い画面
の中を白い服を着た大勢の人物が躍動する画像等もその
例である。
(Third Example of Predetermined Image Pattern Detector) Next, as a third example of the predetermined image pattern detector 116,
One example of the characteristics of a subtitle and a title screen that utilizes a point in which a luminance component of an input video signal has an extremely bright portion is given.
The image refers to, for example, an image in which white characters scroll, an image in which a title appears, an image in which diamonds shine, an explosion scene, a starry sky, a shining water surface, etc., in the center of a screen with black or blue back. . Examples include images in which logos and marks of a production company created by computer graphics are embedded, and images in which a large number of people wearing white clothes move on a dark screen with animation.

【0092】図9に、映像信号の輝度成分の分布が明る
い側へ偏った例を挙げる。
FIG. 9 shows an example in which the distribution of the luminance component of the video signal is biased toward the bright side.

【0093】図9の横軸901は輝度成分、縦軸902
は個数を示し、903は輝度成分の分布曲線、904は
輝度成分閾値Xである。
The horizontal axis 901 in FIG.
Denotes the number, 903 denotes a luminance component distribution curve, and 904 denotes a luminance component threshold X.

【0094】図9に示されるように、画面の所定領域で
輝度成分の分布を調べた時、白い字や星、白い服を着た
人間、砂浜、鏡、草、きらきらと光る水面等の画像で
は、特定の領域で輝度成分が大きな値を示す。
As shown in FIG. 9, when the distribution of the luminance component is examined in a predetermined area of the screen, images such as white letters and stars, humans dressed in white clothes, sandy beaches, mirrors, grass, glittering water surfaces, and the like are obtained. , The luminance component shows a large value in a specific area.

【0095】そこで、画面の所定領域で、図9の輝度成
分閾値Xよりも大きな輝度成分を示す数を数え、その数
が所定整数M以上であれば、所定映像パターンであると
判定すれば良い。
Therefore, in a predetermined area of the screen, the number indicating a luminance component larger than the luminance component threshold X in FIG. 9 is counted, and if the number is equal to or larger than a predetermined integer M, it may be determined that the image pattern is a predetermined image pattern. .

【0096】図10は、第3の例の所定映像パターン検
出器の構成図である。
FIG. 10 is a configuration diagram of the predetermined image pattern detector of the third example.

【0097】図10において、1001は入力映像信
号、1002は輝度成分・色成分分解回路、1003は
輝度成分、1004は輝度成分閾値、1005はカウン
タ、1006は輝度成分閾値判定器、1007は定数
M、1008は分布判定器、1009は輝度成分判定結
果、1010は切り替え器制御器、1011は切り替え
信号である。
In FIG. 10, 1001 is an input video signal, 1002 is a luminance component / color component separation circuit, 1003 is a luminance component, 1004 is a luminance component threshold, 1005 is a counter, 1006 is a luminance component threshold determiner, and 1007 is a constant M , 1008 is a distribution determiner, 1009 is a luminance component determination result, 1010 is a switch controller, and 1011 is a switch signal.

【0098】入力映像信号1001は、輝度成分・色成
分分解回路1002に入力され、特に輝度成分1003
のみを取り出す。
An input video signal 1001 is input to a luminance component / color component separation circuit 1002, and in particular, a luminance component 1003
Take out only.

【0099】また、輝度成分1003は輝度成分閾値判
定器1006に入力され、輝度成分1003が輝度成分
閾値1004を越えているものを判別し、越えている場
合はカウンタ1005のカウント値を1つ増やす。分布
判定器1008はカウンタ1005の値が定数M(10
07)を越えているか否かを所定領域毎に判別し、輝度
成分判定結果1009として出力する。輝度成分判定結
果1009は例えば1ビットの信号であるとして、値
“1”の場合は所定映像パターンであることを示し、
“0”の場合は所定映像パターンではないとすればよ
い。これに従って、切り替え器制御器1010は、所定
映像パターンである場合にはアクティビティの変調がな
いQパラメータを選択し、所定映像パターンでない場合
にはアクティビティの変調があるQパラメータを選択し
て、量子化するように、切り替え信号1011を設定す
れば良い。尚、所定領域は1フレームでも複数画素の領
域でも何れでも良い。
The luminance component 1003 is input to a luminance component threshold value judging unit 1006, and it is determined whether the luminance component 1003 exceeds the luminance component threshold value 1004. If the luminance component 1003 exceeds the luminance component 1003, the count value of the counter 1005 is increased by one. . The distribution determiner 1008 determines that the value of the counter 1005 is a constant M (10
07) is determined for each predetermined area, and is output as a luminance component determination result 1009. The luminance component determination result 1009 is, for example, a 1-bit signal, and a value “1” indicates a predetermined video pattern,
In the case of "0", it may be determined that it is not a predetermined video pattern. In accordance with this, the switch controller 1010 selects a Q parameter having no activity modulation when it is a predetermined video pattern, and selects a Q parameter having activity modulation when it is not a predetermined video pattern, and performs quantization. The switching signal 1011 may be set so as to perform the switching. The predetermined area may be one frame or a plurality of pixels.

【0100】尚、カウンタ1005のカウント値は所定
領域毎にゼロにリセットする。
The count value of the counter 1005 is reset to zero for each predetermined area.

【0101】(所定映像パターン検出器の第4の例)次
に、所定映像パターン検出器116の第4の例として、
字幕やタイトル画面の特性で、入力映像信号の輝度成分
が極端に明るい部分と暗い部分とを持つ点を利用したも
のを挙げる。その画像は、真っ黒又はブルーバックした
画面の中央に、白い文字がスクロールする画像やタイト
ルが浮き出てくる画像、暗闇の中で車のヘッドライトが
無数に光っている画像などを指す。コンピュータグラフ
ィックスによって作られた暗い宇宙の中に多くの輝く星
をちりばめたもの、製作会社のロゴやマークを埋め込ん
だ画像、アニメーションで暗い画面の中を大勢の白い服
を着た人物が躍動する画像等もその例である。
(Fourth Example of Predetermined Image Pattern Detector) Next, as a fourth example of the predetermined image pattern detector 116,
An example of a characteristic of a subtitle or a title screen that utilizes a point in which a luminance component of an input video signal has an extremely bright portion and a dark portion. The image refers to an image in which white characters scroll, an image in which a title appears, or an image in which the headlights of a car are illuminated countlessly in the dark in the center of a black or blue-backed screen. Many luminous stars in the dark universe created by computer graphics, images embedded with production company logos and marks, and many animations in a dark screen with animation An image is another example.

【0102】図11に、映像信号の輝度成分の分布が明
るい側と暗い側で偏りを持つ例を挙げる。
FIG. 11 shows an example in which the distribution of the luminance component of the video signal has a bias on the bright side and the dark side.

【0103】図11の横軸1101は輝度成分、縦軸1
102は個数を示し、1103は輝度の分布曲線、11
04は輝度成分閾値X1、1105は輝度成分閾値X2
である。
The horizontal axis 1101 in FIG.
102 denotes the number, 1103 denotes a luminance distribution curve, 11
04 is the luminance component threshold X1, 1105 is the luminance component threshold X2
It is.

【0104】図11に示されるように、画面の所定領域
で輝度成分の分布を調べた時、暗い背景の中で白い字や
星、白い服を着た人間が細かく動くような画像では、特
定の領域で、輝度成分が大きな値を示し、且つ他の特定
の領域においては、背景が暗い部分等であって、輝度成
分が小さい値を局所的に示す部分があることは明らかで
ある。
As shown in FIG. 11, when the distribution of the luminance component is examined in a predetermined area of the screen, when an image in which a white character, a star, or a person wearing white clothes moves finely in a dark background, a specific It is clear that the luminance component shows a large value in the region and the other specific region has a portion where the background is dark and the luminance component locally shows a small value.

【0105】そこで、画面の所定領域で、図11の輝度
成分閾値X1よりも大きな輝度成分の数を数え、その数
が所定整数N1以上であり、且つ輝度成分閾値X2より
も小さな輝度成分の数が所定整数N2以上であれば、所
定映像パターンであると判定すれば良い。
Therefore, in a predetermined area of the screen, the number of luminance components larger than the luminance component threshold value X1 in FIG. 11 is counted, and the number of the luminance components is equal to or larger than the predetermined integer N1 and smaller than the luminance component threshold value X2. Is greater than or equal to a predetermined integer N2, it may be determined that the pattern is a predetermined video pattern.

【0106】図12は第4の例の所定映像パターン検出
器の構成図である。
FIG. 12 is a configuration diagram of the predetermined image pattern detector of the fourth example.

【0107】図12において、1201は入力映像信
号、1202は輝度成分・色成分分解回路、1203は
輝度成分、1204は輝度成分閾値X1、1205は第
2の輝度成分閾値X2、1206は第1のカウンタ、1
207は第2のカウンタ、1208は第1の輝度成分判
定器、1209は第2の輝度成分判定器、1210は定
数N1、1211は定数N2、1212は分布判定器、
1213は輝度成分判定結果、1214は切り替え器制
御器、1215は切り替え信号である。
In FIG. 12, reference numeral 1201 denotes an input video signal; 1202, a luminance component / color component separation circuit; 1203, a luminance component; 1204, a luminance component threshold X1; 1205, a second luminance component threshold X2; Counter, 1
207 is a second counter, 1208 is a first luminance component determiner, 1209 is a second luminance component determiner, 1210 is a constant N1, 1211 is a constant N2, 1212 is a distribution determiner,
1213 is a luminance component determination result, 1214 is a switch controller, and 1215 is a switch signal.

【0108】入力映像信号1201は、輝度成分・色成
分分解回路1202に入力され、特に輝度成分1203
のみを取り出す。
An input video signal 1201 is input to a luminance component / color component separation circuit 1202, and in particular, a luminance component 1203
Take out only.

【0109】また、輝度成分1203は第1の輝度成分
判定器1208及び第2の輝度成分判定器1209に入
力される。第1の輝度成分判定器1208は輝度成分1
203が輝度成分閾値X1(1204)を越えているも
のを判別し、越えている場合は第1のカウンタ1206
のカウント値を1つ増やす。同様に、第2の輝度成分判
定器1209は輝度成分1203が輝度成分閾値X2
(1205)より小さいものを判別し、小さい場合は第
2のカウンタ1307のカウント値を1つ増やす。
The luminance component 1203 is input to a first luminance component determiner 1208 and a second luminance component determiner 1209. The first luminance component determiner 1208 outputs the luminance component 1
It is determined whether or not 203 exceeds the luminance component threshold value X1 (1204).
Is incremented by one. Similarly, the second luminance component determiner 1209 determines that the luminance component 1203 is the luminance component threshold X2
(1205) The value smaller than (1205) is determined, and if smaller, the count value of the second counter 1307 is increased by one.

【0110】分布判定器1212は第1のカウンタ12
06のカウント値が定数N1(1210)以上であり、
且つ第2のカウンタ1207のカウンタ値が定数N2
(1211)以上であるとき、所定パターンであると判
定し、例えば、輝度成分判定結果1213を1ビットの
信号であるとして、所定映像パターンである場合は
“1”とし、所定映像パターンでない場合は“0”とす
る。
The distribution judging unit 1212 has the first counter 12
06 is greater than or equal to the constant N1 (1210),
And the counter value of the second counter 1207 is a constant N2
(1211) When it is equal to or more than the predetermined pattern, it is determined that the signal is a predetermined pattern. For example, the luminance component determination result 1213 is a 1-bit signal. Set to “0”.

【0111】これに従って、切り替え器制御器1214
は、所定映像パターンの時にはアクティビティの変調が
ないQパラメータ、を選択し所定映像パターンでない場
合にはアクティビティの変調があるQパラメータを選択
して、量子化するように、切り替え信号1215を設定
すれば良い。尚、所定領域は1フレームでも複数画素の
領域でも何れでも良い。
Accordingly, the switch controller 1214
If the switching signal 1215 is set so as to select a Q parameter having no activity modulation at the time of the predetermined video pattern, and to select a Q parameter having activity modulation at the time of not the predetermined video pattern, and perform quantization. good. The predetermined area may be one frame or a plurality of pixels.

【0112】尚、第1のカウンタ1206及び第2のカ
ウンタ1207のカウント値は、所定領域毎にゼロにリ
セットする。
The count values of the first counter 1206 and the second counter 1207 are reset to zero for each predetermined area.

【0113】尚、ここでは、4つの所定映像パターンを
検出する構成例を述べたが、所定映像パターンとは、字
幕を含む画面、カラーバー、静止画、フラッシング画
像、テストパターン、タイトル画面、コンピュータグラ
フィックスによって作成された画像、アニメーションを
含む画像等、動きが少なくても複雑な絵柄を持つ画像、
又は局所的にエッジを含むパターンが含まれる画像等、
何れでも良い。
Here, an example of the configuration for detecting four predetermined video patterns has been described. The predetermined video patterns are a screen including subtitles, a color bar, a still image, a flashing image, a test pattern, a title screen, and a computer. Images with complicated patterns even with little movement, such as images created by graphics, images with animation,
Or an image including a pattern that includes an edge locally,
Either is acceptable.

【0114】例えば、タイトル画面又はメニュー画面で
は、字幕画面同様、4隅の色成分はほぼ同色と考えられ
るので、この部分を所定領域として、色成分が所定数以
下であるか否かを調べ、所定数以下であればタイトル画
面であると判定して良い。また、コンピュータグラフィ
ックスによって作成された画像は、コンピュータの同時
発色数の制限等により色成分がある特定の数になり易い
ので、色成分の数が所定数以下であるか否かを調べ、所
定数以下であればコンピュータグラフィックスによって
作成された画像であると判定しても良い。また、アニメ
ーションは絵をべた塗りするので、横方向又は縦方向に
所定領域を取り、その色成分の数を調べ、所定数以下で
あればアニメーションであると判定するなどすればよ
い。所定映像パターンの判定方法は何れでも良い。
For example, in the title screen or the menu screen, the color components at the four corners are considered to be substantially the same color as in the subtitle screen. If the number is not more than the predetermined number, it may be determined that the screen is a title screen. Further, since an image created by computer graphics tends to have a specific number of color components due to the limitation of the number of simultaneous colors of the computer, etc., it is checked whether the number of color components is equal to or less than a predetermined number. If the number is equal to or less than the number, the image may be determined to be an image created by computer graphics. Also, since the animation is a solid painting of a picture, a predetermined area may be taken in the horizontal or vertical direction, the number of the color components may be checked, and if the number is less than the predetermined number, it may be determined that the animation is an animation. The method of determining the predetermined video pattern may be any.

【0115】(第2の実施の形態)図2に、本発明の第
2の実施の形態における映像符号化装置の構成を示す。
(Second Embodiment) FIG. 2 shows the configuration of a video encoding apparatus according to a second embodiment of the present invention.

【0116】同図において、201は入力映像信号、2
02はブロック分割器、203は離散コサイン変換器、
204は量子化器、205は可変長符号化器、206は
使用Qパラメータ、207は圧縮符号化列、208は符
号量測定器、209は割り当て符号化値、210は符号
量制御器、211はQパラメータ、212はアクティビ
ティ算出器、213はQパラメータ変調器、214は変
調Qパラメータ、215は切り替え器である。また、2
16はタイムコード、217はタイムコードリスト、2
18は切り替え信号、219は所定映像区間検出器(所
定映像区間検出手段)である。
In the figure, reference numeral 201 denotes an input video signal;
02 is a block divider, 203 is a discrete cosine transformer,
204 is a quantizer, 205 is a variable length encoder, 206 is a used Q parameter, 207 is a compressed coded sequence, 208 is a code amount measuring device, 209 is an assigned coded value, 210 is a code amount controller, and 211 is a code amount controller. A Q parameter, 212 is an activity calculator, 213 is a Q parameter modulator, 214 is a modulation Q parameter, and 215 is a switch. Also, 2
16 is a time code, 217 is a time code list, 2
Reference numeral 18 denotes a switching signal, and 219, a predetermined video section detector (predetermined video section detection means).

【0117】本実施の形態は、前記第1の実施の形態と
比較して、入力映像の信号特性からアクティビティの変
調を切る区間を指定するのではなく、映像ソースの内容
を人が予め知っている場合に、字幕やエッジの多い画像
の存在する概略のタイムコードを指定するだけで、アク
ティビティの変調をかけない量子化幅で量子化し、可変
長符号化できる。
In this embodiment, as compared with the first embodiment, a section in which the modulation of the activity is cut off is not specified from the signal characteristics of the input video, but the contents of the video source are previously known by a person. In this case, by simply specifying the approximate time code where an image with many subtitles and edges is present, quantization with a quantization width that does not modulate the activity and variable-length encoding can be performed.

【0118】図2の映像符号化装置において、入力映像
信号201はブロック分割器202に入力される。ま
た、入力映像信号201と同期して、タイムコード21
6が入力される。タイムコード216は映像信号中のV
ITCでも構わないし、入力映像信号とは別系統の入
力、例えばLTCやASTCでも構わない。尚、VIT
Cは映像信号の垂直ブランキングや特定の水平ブランキ
ングに書き込まれたタイムコード情報であって、1フレ
ームに1つ以上の値が各フレームでユニークに書き込ま
れているものとする。また、例えばLTC(Loading Ti
meCode)は、高速再生時にテープトラックの映像信号と
は別トラックから読み込まれ、ASTC(AcouStic Tim
eCode )は低速再生時にテープトラックの映像信号とは
別トラックから読み込まれるものをいう。
In the video coding apparatus shown in FIG. 2, an input video signal 201 is input to a block divider 202. The time code 21 is synchronized with the input video signal 201.
6 is input. The time code 216 corresponds to V in the video signal.
It may be an ITC or an input of a different system from the input video signal, for example, LTC or ASTC. In addition, VIT
C is time code information written in the vertical blanking or specific horizontal blanking of the video signal, and it is assumed that one or more values are uniquely written in each frame. For example, LTC (Loading Ti
meCode) is read from a different track from the video signal of the tape track during high-speed playback, and the ASTC (AcouStic Tim
eCode) is read from a different track from the video signal of the tape track during low-speed playback.

【0119】所定映像区間検出器219は、タイムコー
ド216及びタイムコードリスト217を入力する。タ
イムコードリスト217は、アクティビティの変調をか
けたくない字幕シーンのタイムコードの開始位置と終了
位置とを示すリストである。所定映像区間検出器219
は、タイムコード216がタイムコードリスト217の
指定する区間に含まれている場合には、切り替え信号2
18の値を切り替えて切り替え器215の入力をアクテ
ィビティの変調のかけられていないQパラメータ211
の方へ切り替え、そうでない場合は、切り替え信号21
8の値を切り替えて切り替え器215の入力をQパラメ
ータ変調器213の出力である変調Qパラメータ214
の側へ切り替える。つまり、所定映像区間検出器219
は、タイムコード216を元に1フレーム又は1フィー
ルド単位で所定映像パターンか否かを判別し、所定映像
パターンでない場合には、切り替え器215の入力側を
Qパラメータ変調器213の出力である変調Qパラメー
タ214側に切り替え、所定映像パターンである場合に
は切り替え器215の入力側を符号量制御器210の出
力であるQパラメータ211側に切り替える。
The predetermined video section detector 219 inputs the time code 216 and the time code list 217. The time code list 217 is a list indicating a start position and an end position of a time code of a subtitle scene for which modulation of an activity is not desired. Predetermined video section detector 219
Is the switching signal 2 when the time code 216 is included in the section specified by the time code list 217.
The value of 18 is switched and the input of the switch 215 is changed to the unmodulated Q parameter 211 of the activity.
, If not, switch signal 21
8 and switches the input of the switch 215 to the modulation Q parameter 214 which is the output of the Q parameter modulator 213.
Switch to the side. That is, the predetermined video section detector 219
Determines whether or not the frame is a predetermined video pattern in units of one frame or one field based on the time code 216. If the video pattern is not the predetermined video pattern, the input side of the switch 215 is modulated by the output of the Q parameter modulator 213. Switching to the Q parameter 214 side, and in the case of the predetermined video pattern, switching the input side of the switch 215 to the Q parameter 211 side which is the output of the code amount controller 210.

【0120】また、ブロック分割器202の出力はアク
ティビティ算出器212に入力され、アクティビティ算
出器212は、所定領域毎のアクティビティをフレーム
内の画素又はフレーム間の画素を基準にアクティビティ
を求める。
The output of the block divider 202 is input to an activity calculator 212, and the activity calculator 212 obtains an activity for each predetermined area based on pixels in a frame or pixels between frames.

【0121】一方、ブロック分割器202の出力は離散
コサイン変換器203に入力され、周波数データとな
り、量子化器204に入力される。
On the other hand, the output of the block divider 202 is input to the discrete cosine transformer 203, becomes frequency data, and is input to the quantizer 204.

【0122】量子化器204は、所定領域の周波数デー
タを決定した量子化幅、即ち使用Qパラメータ206で
量子化するが、使用Qパラメータ206は上述のように
所定映像パターンでない場合には変調したQパラメータ
214を用い、所定映像パターンである場合は変調しな
いQパラメータ211を用いる。
The quantizer 204 quantizes the frequency data of the predetermined area using the determined quantization width, that is, the used Q parameter 206. If the used Q parameter 206 is not a predetermined video pattern as described above, the quantization is performed. The Q parameter 214 is used. If the image pattern is a predetermined video pattern, the Q parameter 211 that is not modulated is used.

【0123】可変長符号化器205は、量子化器204
の出力である量子化コードを可変長符号化し、圧縮符号
化列207を生成する。
The variable-length encoder 205 includes a quantizer 204
Is subjected to variable length encoding to generate a compressed encoded sequence 207.

【0124】この時、圧縮符号化列207の発生符号量
を符号量測定器208が測定し、その測定値と割り当て
符号化値209とを入力として、その差を検出し、次の
所定領域の発生符号量を制御するためにQパラメータ2
11を例えば前記式2に基いて符号量制御器210が計
算する。
At this time, the code amount measuring device 208 measures the generated code amount of the compressed coded sequence 207, receives the measured value and the assigned coded value 209 as input, detects the difference between the measured value and the assigned coded value 209, and detects the difference between the two. Q parameter 2 for controlling the amount of generated code
11 is calculated by the code amount controller 210 based on, for example, the equation (2).

【0125】尚、所定映像パターンとは、字幕を含む画
面、カラーバー、静止画、フラッシング画像、テストパ
ターン、タイトル画面、コンピュータグラフィックスに
よって作成された画像、アニメーションを含む画像等、
動きが少なくても複雑な絵柄を持つ画像、又は局所的に
エッジを含むパターンが含まれる画像等、何れでもよ
い。
The predetermined video pattern includes a screen including subtitles, a color bar, a still image, a flashing image, a test pattern, a title screen, an image created by computer graphics, an image including animation, and the like.
The image may be an image having a complicated pattern with little movement or an image including a pattern including a local edge.

【0126】アクティビティの高い映像は一般に符号化
難易度は高いが、発生した符号化ノイズは認識され難
い。逆に、アクティビティの低い画像では符号化ノイズ
が目立ち易い傾向にある。
A video having a high activity generally has a high coding difficulty, but the generated coding noise is hard to recognize. Conversely, coding noise tends to be noticeable in an image with low activity.

【0127】従って、アクティビティの大きさに応じて
量子化パラメータを制御することにより、画質の劣化を
抑制することができ、映像シーン全体での高画質化を図
ることができる。
Therefore, by controlling the quantization parameter in accordance with the size of the activity, the deterioration of the image quality can be suppressed, and the image quality of the entire video scene can be improved.

【0128】すなわち、符号量制御器210は、可変長
符号化器205が映像信号をシーンに応じた符号化レー
トで符号化できるようにQパラメータ211を決定す
る。
That is, the code amount controller 210 determines the Q parameter 211 so that the variable length encoder 205 can encode the video signal at an encoding rate according to the scene.

【0129】尚、字幕シーン等の所定映像パターンを含
むと思われる区間よりも広めにタイムコードリスト21
7を設定して、アクティビティの変調をかけずに量子化
幅を決定しても良いし、字幕シーン等の所定映像パター
ンを含むと思われる区間よりも狭くしても良い。
Note that the time code list 21 is set to be wider than a section which is considered to include a predetermined video pattern such as a subtitle scene.
7 may be set to determine the quantization width without modulating the activity, or may be set to be narrower than a section including a predetermined video pattern such as a subtitle scene.

【0130】(第3の実施の形態)図3に、本発明の第
3の実施の形態における映像符号化装置の構成を示す。
(Third Embodiment) FIG. 3 shows a configuration of a video encoding device according to a third embodiment of the present invention.

【0131】同図において、301は入力映像信号、3
02はブロック分割器、303は離散コサイン変換器、
304は量子化器、305は可変長符号化器、306は
使用Qパラメータ、307は圧縮符号化列、308は符
号量測定器、309は割り当て符号化値、310は符号
量制御器、311はQパラメータ、312はアクティビ
ティ算出器、313はQパラメータ変調器、314は変
調Qパラメータ、315は切り替え器、316は外部割
り込み信号、317は外部割り込み検出器(外部割り込
み検出手段)、318は切り替え信号である。
In the figure, reference numeral 301 denotes an input video signal, 3
02 is a block divider, 303 is a discrete cosine transformer,
304 is a quantizer, 305 is a variable length coder, 306 is a used Q parameter, 307 is a compression coded sequence, 308 is a code amount measuring device, 309 is an assigned coded value, 310 is a code amount controller, and 311 is a code amount controller. Q parameter, 312 is an activity calculator, 313 is a Q parameter modulator, 314 is a modulation Q parameter, 315 is a switch, 316 is an external interrupt signal, 317 is an external interrupt detector (external interrupt detection means), and 318 is a switch signal. It is.

【0132】図3の映像符号化装置において、入力映像
信号301はブロック分割器302に入力される。ま
た、本実施の形態においては、入力映像信号301とは
必ずしも同期しない外部割り込み信号316が入力され
る。外部割り込み信号316は映像信号中に書き込まれ
ている情報を読み出しても構わないし、入力映像信号3
01とは別系統から読み出しても構わない。また、例え
ばボタン等を人間が押した際に外部割り込み信号316
がオンになったことにしても良い。
In the video encoding apparatus shown in FIG. 3, an input video signal 301 is input to a block divider 302. In the present embodiment, an external interrupt signal 316 that is not necessarily synchronized with the input video signal 301 is input. As the external interrupt signal 316, information written in the video signal may be read.
The data may be read from a system different from 01. Further, for example, when a human presses a button or the like, the external interrupt signal 316 is output.
May be turned on.

【0133】外部割り込み検出器317は外部割り込み
信号316を入力し、この外部割り込み信号316がオ
ンである場合、即ち、アクティビティの変調をかけたく
ない字幕シーンでは、切り替え信号318を切り替え
て、切り替え器315の入力側をQパラメータ311側
に切り替えてアクティビティの変調を切る。また、外部
割り込み信号がオフである時には切り替え器315の入
力側をQパラメータ変調器313の出力である変調Qパ
ラメータ314の側へ切り替える。
The external interrupt detector 317 inputs the external interrupt signal 316, and when the external interrupt signal 316 is on, that is, in a subtitle scene where it is not desired to modulate the activity, the switching signal 318 is switched, and The input side of 315 is switched to the Q parameter 311 side to cut off the modulation of the activity. When the external interrupt signal is off, the input side of the switch 315 is switched to the side of the modulation Q parameter 314 which is the output of the Q parameter modulator 313.

【0134】つまり、外部割り込み検出器317は、外
部割り込み信号316を元に1フレーム若しくは1フィ
ールド単位又は複数画素単位、複数フレーム単位等の所
定区間単位で外部割り込みがあるか否かを判別し、外部
割り込み信号316がオフの場合には、切り替え器31
5の入力側をQパラメータ変調器313の出力である変
調Qパラメータ314側に切り替え、外部割り込み信号
316がオンである場合、即ち、例えば字幕シーンで
は、切り替え器315の入力側を符号量制御器310の
出力であるQパラメータ311側に切り替える。
That is, the external interrupt detector 317 determines whether or not there is an external interrupt in a predetermined section unit such as one frame, one field, or a plurality of pixels or a plurality of frames based on the external interrupt signal 316. When the external interrupt signal 316 is off, the switch 31
5 is switched to the modulation Q parameter 314, which is the output of the Q parameter modulator 313, and when the external interrupt signal 316 is on, that is, for example, in a subtitle scene, the input of the switch 315 is connected to the code amount controller. Switching is made to the Q parameter 311 side, which is the output of 310.

【0135】また、ブロック分割器302の出力はアク
ティビティ算出器312に入力され、アクティビティ算
出器312は所定領域毎のアクティビティをフレーム内
の画素又はフレーム間の画素を基準にアクティビティを
求める。
The output of the block divider 302 is input to an activity calculator 312, and the activity calculator 312 obtains the activity of each predetermined area based on the pixels in the frame or the pixels between the frames.

【0136】一方、ブロック分割器302の出力は離散
コサイン変換器303に入力され、周波数データとな
り、量子化器304に入力される。
On the other hand, the output of the block divider 302 is input to the discrete cosine transformer 303, becomes frequency data, and is input to the quantizer 304.

【0137】ここで、量子化器304は、所定領域の周
波数データを決定した量子化幅、即ち使用Qパラメータ
306で量子化するが、使用Qパラメータ306は上述
のように所定映像パターンでない場合には変調したQパ
ラメータ314を用い、所定映像パターンである場合は
変調しないQパラメータ311を用いる。
Here, the quantizer 304 quantizes the frequency data of the predetermined area using the determined quantization width, that is, the used Q parameter 306. When the used Q parameter 306 is not a predetermined video pattern as described above, Uses a modulated Q parameter 314, and uses a non-modulated Q parameter 311 for a predetermined video pattern.

【0138】可変長符号化器305は、量子化器304
の出力である量子化コードを可変長符号化し、圧縮符号
化列307を生成する。
The variable length encoder 305 includes a quantizer 304
The variable-length coding is performed on the quantized code output as the compressed code sequence 307.

【0139】この時、圧縮符号化列307の発生符号量
を符号量測定器308が測定し、その測定値と割り当て
符号化値309とを符号量制御器310が入力して、そ
の差を検出し、次の所定領域の発生符号量を制御するた
めにQパラメータ311を例えば前記式2に基いて計算
する。
At this time, the code amount measuring unit 308 measures the generated code amount of the compression coded sequence 307, and the code amount controller 310 inputs the measured value and the assigned coded value 309, and detects the difference. Then, the Q parameter 311 is calculated based on, for example, Equation 2 in order to control the generated code amount in the next predetermined area.

【0140】尚、所定映像パターンとは、字幕を含む画
面、カラーバー、静止画、フラッシング画像、テストパ
ターン、タイトル画面、コンピュータグラフィックスに
よって作成された画像、アニメーションを含む画像等、
動きが少なくても複雑な絵柄を持つ画像、又は局所的に
エッジを含むパターンが含まれる画像等、何れでもよ
い。
Note that the predetermined video pattern includes a screen including subtitles, a color bar, a still image, a flashing image, a test pattern, a title screen, an image created by computer graphics, an image including animation, and the like.
The image may be an image having a complicated pattern with little movement or an image including a pattern including a local edge.

【0141】アクティビティの高い映像は一般に符号化
難易度は高いが、発生した符号化ノイズは認識され難
い。逆に、アクティビティの低い画像では符号化ノイズ
が目立ち易い傾向にある。
A video having a high activity generally has a high coding difficulty, but the generated coding noise is hard to recognize. Conversely, coding noise tends to be noticeable in an image with low activity.

【0142】従って、アクティビティの大きさに応じて
量子化パラメータを制御することによって画質の劣化を
抑制することができ、映像シーン全体での高画質化を図
ることができる。
Therefore, by controlling the quantization parameter in accordance with the size of the activity, the deterioration of the image quality can be suppressed, and the image quality of the entire video scene can be improved.

【0143】すなわち、符号量制御器310は、可変長
符号化器305が映像信号をシーンに応じた符号化レー
トで符号化できるようにQパラメータ311を決定す
る。
That is, the code amount controller 310 determines the Q parameter 311 so that the variable length encoder 305 can encode the video signal at an encoding rate corresponding to the scene.

【0144】尚、外部割り込み信号316がオンかオフ
かを検出する単位は、1フレーム若しくは1フィールド
単位又は複数画素単位、複数フレーム単位等の所定区間
単位であれば、何れでも良い。
The unit for detecting whether the external interrupt signal 316 is on or off may be any unit, such as one frame, one field, a plurality of pixels, a plurality of frames, or any other predetermined section.

【0145】尚、外部割り込み信号316がオンになっ
た後、複数フレームの遅延時間が経過した時点でアクテ
ィビティの変調を切っても良い。
Note that the activity modulation may be turned off when the delay time of a plurality of frames elapses after the external interrupt signal 316 is turned on.

【0146】(第4の実施の形態)図4に、本発明の第
4の実施の形態における映像符号化装置の構成を示す。
(Fourth Embodiment) FIG. 4 shows the configuration of a video encoding apparatus according to a fourth embodiment of the present invention.

【0147】同図において、401は入力映像信号、4
02はブロック分割器、403は離散コサイン変換器、
404は量子化器、405は可変長符号化器、406は
使用Qパラメータ、407は圧縮符号化列、408は符
号量測定器、409は割り当て符号化値、410は符号
量制御器、411はQパラメータ、412はアクティビ
ティ算出器、413はQパラメータ変調器、414は変
調Qパラメータ、415は切り替え器、416はエッジ
検出器(エッジ検出手段)、417は切り替え信号であ
る。
In the figure, reference numeral 401 denotes an input video signal;
02 is a block divider, 403 is a discrete cosine transformer,
404 is a quantizer, 405 is a variable length coder, 406 is a used Q parameter, 407 is a compressed coded sequence, 408 is a code amount measuring device, 409 is an assigned coded value, 410 is a code amount controller, and 411 is a code amount controller. Q parameter, 412 is an activity calculator, 413 is a Q parameter modulator, 414 is a modulation Q parameter, 415 is a switch, 416 is an edge detector (edge detecting means), and 417 is a switch signal.

【0148】図4の映像符号化装置において、入力映像
信号401はエッジ検出器416及びブロック分割器4
02に入力される。エッジ検出器416は入力映像信号
401を入力とし、所定領域のエッジの有無を判別し、
エッジを持たないと判定された場合には、切り替え器4
15の入力側をQパラメータ変調器413の出力である
変調Qパラメータ414側に切り替え、エッジを持つと
判定された場合には切り替え器415の入力側を符号量
制御器410の出力であるQパラメータ411側に切り
替える。
In the video encoding apparatus shown in FIG. 4, an input video signal 401 is supplied to an edge detector 416 and a block divider 4.
02 is input. The edge detector 416 receives the input video signal 401 as input, determines whether there is an edge in a predetermined area,
If it is determined that there is no edge, the switch 4
15 is switched to the modulation Q parameter 414 side which is the output of the Q parameter modulator 413, and when it is determined that there is an edge, the input side of the switch 415 is switched to the Q parameter which is the output of the code amount controller 410. Switch to 411 side.

【0149】また、ブロック分割器402の出力はアク
ティビティ算出器412に入力され、アクティビティ算
出器412は、所定領域毎のアクティビティをフレーム
内の画素又はフレーム間の画素を基準にアクティビティ
を求める。
The output of the block divider 402 is input to an activity calculator 412, and the activity calculator 412 obtains the activity of each predetermined area based on the pixels in the frame or the pixels between the frames.

【0150】一方、ブロック分割器402の出力は離散
コサイン変換器403に入力され、周波数データとな
り、量子化器404に入力される。
On the other hand, the output of the block divider 402 is input to the discrete cosine transformer 403, becomes frequency data, and is input to the quantizer 404.

【0151】ここで、量子化器404は、所定領域の周
波数データを決定した量子化幅、即ち使用Qパラメータ
406で量子化するが、使用Qパラメータ406は上述
のようにエッジを持たないと判定された場合には変調Q
パラメータ414を用い、エッジを持つと判定された場
合には変調しないQパラメータ411を用いる。
Here, the quantizer 404 quantizes the frequency data in the predetermined area using the determined quantization width, that is, the used Q parameter 406, but determines that the used Q parameter 406 has no edge as described above. Modulation Q
Using the parameter 414, if it is determined that the image has an edge, the Q parameter 411 that is not modulated is used.

【0152】可変長符号化器405は、量子化器104
の出力である量子化コードを可変長符号化し、圧縮符号
化列407を生成する。
The variable length coder 405 is
Is subjected to variable length encoding to generate a compressed encoded sequence 407.

【0153】この時、圧縮符号化列407の発生符号量
を符号量測定器408が測定し、その測定値と割り当て
符号化値409とを符号量制御器410が入力して、そ
の差を検出し、次の所定領域の発生符号量を制御するた
めにQパラメータ411を例えば前記式2に基いて計算
する。
At this time, the code amount measuring device 408 measures the generated code amount of the compressed coded sequence 407, and the code amount controller 410 inputs the measured value and the assigned coded value 409, and detects the difference. Then, the Q parameter 411 is calculated based on, for example, Equation 2 in order to control the generated code amount in the next predetermined area.

【0154】尚、エッジを持つ画像は、字幕を含む画
面、カラーバー、静止画、フラッシング画像、テストパ
ターン、タイトル画面、コンピュータグラフィックスに
よって作成された画像、アニメーションを含む画像等、
動きが少なくても複雑な絵柄を持つ画像、又は局所的に
エッジを含むパターンが含まれる画像等、何れでもよ
い。
Images having edges include screens including subtitles, color bars, still images, flashing images, test patterns, title screens, images created by computer graphics, images including animations, and the like.
The image may be an image having a complicated pattern with little movement or an image including a pattern including a local edge.

【0155】アクティビティの高い映像は一般に符号化
難易度は高いが、発生した符号化ノイズは認識され難
い。逆に、アクティビティの低い画像では符号化ノイズ
が目立ち易い傾向にある。
A video having high activity generally has a high coding difficulty, but generated coding noise is hard to recognize. Conversely, coding noise tends to be noticeable in an image with low activity.

【0156】従って、アクティビティの大きさに応じて
量子化パラメータを制御することによって画質の劣化を
抑制することができ、映像シーン全体での高画質化が計
ることができる。
Therefore, by controlling the quantization parameter in accordance with the size of the activity, the deterioration of the image quality can be suppressed, and the image quality of the entire video scene can be improved.

【0157】すなわち、符号量制御器410は、可変長
符号化器405が映像信号をシーンに応じた符号化レー
トで符号化できるようにQパラメータ411を決定す
る。
That is, the code amount controller 410 determines the Q parameter 411 so that the variable length encoder 405 can encode the video signal at an encoding rate according to the scene.

【0158】尚、エッジの有無を判定する単位は、複数
画素単位でも、1フレーム単位でも、1フィールド単位
でも、複数フレーム単位でも何れでも良い。
The unit for determining the presence or absence of an edge may be any of a plurality of pixels, one frame, one field, or a plurality of frames.

【0159】尚、エッジの有無の判定により、アクティ
ビティの変調のない量子化幅を用いるか、アクティビテ
ィの変調の有る量子化幅を用いるかを決定する切り替え
のタイミングは、エッジの有無を判定する単位毎でもよ
いし、エッジの有無を判定する領域が複数集まった単位
でも、フレーム単位でも、フィールド単位でも、複数の
フレーム単位でも、何れでも良い。
The switching timing for determining whether to use the quantization width without activity modulation or to use the quantization width with activity modulation based on the determination of the presence or absence of an edge is a unit for determining the presence or absence of an edge. Each unit may be used, or a unit in which a plurality of regions for determining the presence or absence of an edge is collected, a frame unit, a field unit, a plurality of frame units, or the like.

【0160】例えば、前記切り替えのタイミングをフレ
ーム単位であるとして、エッジの有無を判別する領域が
例えば1350個とし、閾値F(例えば1000)個以
上のエッジがある領域であると判定されたフレームで
は、量子化幅はアクティビティの変調のない量子化幅を
用い、そうでないフレームでは量子化幅はアクティビテ
ィの変調の有る量子化幅を用いるとしても良い。
For example, assuming that the switching timing is a frame unit, the number of areas for determining the presence / absence of an edge is, for example, 1350, and a frame determined to be an area having a threshold F or more (eg, 1000) or more is a frame. The quantization width may use a quantization width without modulation of the activity, and in a frame other than that, the quantization width may use a quantization width with modulation of the activity.

【0161】(エッジ検出器の第1の例)次に、前記エ
ッジ検出器416の第1の例を挙げる。
(First Example of Edge Detector) Next, a first example of the edge detector 416 will be described.

【0162】図13は、エッジを持つ画像の水平方向の
輝度成分の変化を表す。
FIG. 13 shows a change in the luminance component in the horizontal direction of an image having an edge.

【0163】同図(a)は、ブラックアウトした画面1
301に”A”という白い文字1302が画面いっぱい
に描かれたものであり、同図(b)は同図(a)を点線
1303で切断して、輝度成分を図示したものである。
FIG. 21A shows a screen 1 which has been blacked out.
A white character 1302 "A" is drawn on the entire screen of the image 301, and FIG. 2B shows the luminance component by cutting FIG. 1A by a dotted line 1303. FIG.

【0164】図13(b)から明らかなように、輝度成
分1304は閾値α1305を越える2つの急峻な変化
の山を持つ。画面内の模様がエッジを持つ場合、輝度成
分又は色成分の水平方向、垂直方向、斜め方向の何れか
に1つ以上の急峻な変化が生じる。このような現象を測
定できれば、エッジの有無を判定できる。
As apparent from FIG. 13B, the luminance component 1304 has two sharply changing peaks exceeding the threshold value α1305. When the pattern in the screen has an edge, one or more steep changes occur in any of the horizontal direction, the vertical direction, and the oblique direction of the luminance component or the color component. If such a phenomenon can be measured, the presence or absence of an edge can be determined.

【0165】エッジ検出器416の第1の例では、1画
面のある部分で水平方向に輝度成分を抽出した場合に、
ある閾値X以上の変化が所定数N以上あるときにエッジ
画像であると判定するものを説明する。
In the first example of the edge detector 416, when a luminance component is extracted in a horizontal direction at a certain portion of one screen,
A case where an image is determined to be an edge image when a change equal to or more than a certain threshold value X is equal to or more than a predetermined number N will be described.

【0166】図14は、エッジ検出器416の第1の例
の構成図である。
FIG. 14 is a configuration diagram of a first example of the edge detector 416.

【0167】同図において、1401は入力映像信号、
1402は輝度成分・色成分分解器、1403は輝度成
分、1404は輝度成分メモリ、1405は輝度成分差
分器、1406は輝度成分閾値、1407は輝度成分差
分値、1408は輝度成分差分判定器、1409は輝度
成分判定結果、1410は色成分、1411は色成分メ
モリ、1412は色成分差分器、1413は色成分閾
値、1414は色成分差分値、1415は色成分差分判
定器、1416は色成分判定結果、1417はエッジ輝
度成分カウンタ、1418は輝度成分エッジ判定器、1
419は輝度成分エッジ基準値、1420はエッジ色成
分カウンタ、1421は色成分エッジ判定器、1422
は色成分エッジ基準値、1423は判定結果統合器、1
424は切り替え器制御器、1425は切り替え信号で
ある。
In the figure, reference numeral 1401 denotes an input video signal;
1402 is a luminance component / color component decomposer, 1403 is a luminance component, 1404 is a luminance component memory, 1405 is a luminance component difference device, 1406 is a luminance component threshold value, 1407 is a luminance component difference value, 1408 is a luminance component difference judgment device, 1409 Is a luminance component determination result, 1410 is a color component, 1411 is a color component memory, 1412 is a color component differentiator, 1413 is a color component threshold, 1414 is a color component difference value, 1415 is a color component difference determiner, and 1416 is color component determination. As a result, 1417 is an edge luminance component counter, 1418 is a luminance component edge determiner, 1
419, a luminance component edge reference value; 1420, an edge color component counter; 1421, a color component edge determiner;
Is a color component edge reference value, 1423 is a judgment result integrator, 1
424 is a switch controller and 1425 is a switch signal.

【0168】入力映像信号1401は、輝度成分・色成
分分解器1402に入力され、輝度成分1403及び色
成分1410に分解される。
An input video signal 1401 is input to a luminance component / color component decomposer 1402 and is decomposed into a luminance component 1403 and a color component 1410.

【0169】輝度成分1403は、輝度成分メモリ14
04及び輝度成分差分器1405に入力され、輝度成分
差分器1405は、輝度成分1403から輝度成分メモ
リ1404内に格納されている1所定領域前の輝度成分
を減算し、その結果を輝度成分差分値1407として、
輝度成分差分判定器1407に出力する。
The brightness component 1403 is stored in the brightness component memory 14.
04 and the luminance component differentiator 1405, which subtracts the luminance component of the predetermined region stored in the luminance component memory 1404 from the luminance component 1403 and subtracts the result from the luminance component 1403. As 1407,
Output to the luminance component difference determiner 1407.

【0170】輝度成分差分判定器1408は、輝度成分
差分値1407が輝度成分閾値1406よりも大きい場
合には、エッジ輝度成分カウンタ1417のカウント値
を1インクリメントする。また、輝度成分エッジ判定器
1418は、所定領域毎にエッジ輝度成分カウンタ14
17のカウント値をみて、輝度成分エッジ基準値141
9よりも大きいか否かを判定し、大きい場合にはエッジ
を持つ画像であると判定して、輝度成分判定結果140
9を例えば値“1”にする。
When the luminance component difference value 1407 is larger than the luminance component threshold value 1406, the luminance component difference judgment unit 1408 increments the count value of the edge luminance component counter 1417 by one. In addition, the luminance component edge determiner 1418 provides an edge luminance component counter 14 for each predetermined area.
Looking at the count value of No. 17, the luminance component edge reference value 141
9 is determined, and if it is larger, it is determined that the image has an edge.
For example, 9 is set to a value “1”.

【0171】同様に、輝度成分・色成分分解器1402
で分解された色成分1410は、色成分メモリ1411
及び色成分差分器1412に入力され、色成分差分器1
412は、色成分1410から、色成分メモリ1411
内に格納されている1所定領域前の色成分を減算し、そ
の結果を色成分差分値1414として、色成分差分判定
器1415に出力する。
Similarly, a luminance component / color component decomposer 1402
The color component 1410 separated by
And the color component differentiator 1412
Reference numeral 412 denotes a color component memory 1411 from a color component 1410.
Is subtracted from the color component one predetermined region before, and the result is output to the color component difference determination unit 1415 as a color component difference value 1414.

【0172】色成分差分判定器1415は、色成分差分
値1414が色成分閾値1413よりも大きい場合に
は、エッジ色成分カウンタ1420のカウント値を1つ
インクリメントする。また、色成分エッジ判定器142
1は、所定領域毎に、エッジ色成分カウンタ1420の
カウント値をみて、色成分エッジ基準値1422よりも
大きいか否かを判定し、大きい場合にはエッジを持つ画
像であると判定して、色成分判定結果1416を例えば
値“1”にする。
When the color component difference value 1414 is larger than the color component threshold value 1413, the color component difference judgment unit 1415 increments the count value of the edge color component counter 1420 by one. The color component edge determiner 142
1 is determined for each predetermined area by checking the count value of the edge color component counter 1420 and determining whether or not the count value is larger than the color component edge reference value 1422. If the count value is larger, it is determined that the image has an edge. The color component determination result 1416 is set to, for example, a value “1”.

【0173】判定結果統合器1423は、輝度成分判定
結果1409及び色成分判定結果1416を入力とし
て、例えば、輝度成分判定結果1409及び色成分判定
結果1416の両方が値“1”である場合に、エッジ画
像であると判定して、例えば判定結果を値“1”とし
て、切り替え器制御器1424へ出力する。
The judgment result integrator 1423 receives the luminance component judgment result 1409 and the color component judgment result 1416 as inputs and, for example, when both the luminance component judgment result 1409 and the color component judgment result 1416 are “1”, It is determined that the image is an edge image, and the determination result is output to the switch controller 1424 as a value “1”, for example.

【0174】切り替え器制御器1424は、判定結果統
合器1423の出力に従って、所定映像パターンである
場合にはアクティビティの変調がないQパラメータを選
択し、所定映像パターンでない場合にはアクティビティ
の変調があるQパラメータを選択して、量子化するよう
に、切り替え信号1425を設定する。尚、所定領域は
1フレームでも、複数の画素の領域でも、何れでも良
い。
The switch controller 1424 selects a Q parameter having no activity modulation if it is a predetermined video pattern according to the output of the determination result integrator 1423, and has activity modulation if it is not the predetermined video pattern. The switching signal 1425 is set so that the Q parameter is selected and quantized. The predetermined area may be one frame or a plurality of pixels.

【0175】尚、エッジ輝度成分カウンタ1417及び
エッジ色成分カウンタ1420のカウント値は、所定領
域毎にリセットする。
The count values of the edge luminance component counter 1417 and the edge color component counter 1420 are reset for each predetermined area.

【0176】尚、前記第1の例のエッジ検出器416で
は、輝度成分判定結果1411及び色成分判定結果14
12が共にエッジを持つという判定を判定結果統合器1
423がしたとき、エッジ画像であると判別するもので
あったが、輝度成分判定結果1411及び色成分判定結
果1412の何れか一方がエッジを持つという判定結果
である場合に、エッジ画像であると判別ししても良い。
In the edge detector 416 of the first example, the luminance component determination result 1411 and the color component determination result 1411
12 is a decision result integrator 1
When 423 is performed, the image is determined to be an edge image. However, when one of the luminance component determination result 1411 and the color component determination result 1412 is a determination result having an edge, the image is determined to be an edge image. It may be determined.

【0177】尚、前記第1の例のエッジ検出器416で
は、輝度成分と色成分の両者を用いたが、輝度成分のみ
を用いて判定しても良いし、色成分のみを用いて判定し
ても良い。
In the edge detector 416 of the first example, both the luminance component and the color component are used. However, the determination may be performed using only the luminance component, or the determination may be performed using only the color component. May be.

【0178】(エッジ検出器の第2の例)次に、エッジ
検出器416の第2の例を挙げる。
(Second Example of Edge Detector) Next, a second example of the edge detector 416 will be described.

【0179】エッジを持つ画像の輝度の変化を例に取れ
ば、隣の画素との輝度成分の差がある閾値より大きけれ
ば、その画素はエッジであると判定でき、判定領域が小
さければ、小さい変化を細かく捉えることができる,換
言すれば、エッジの型は図15に示すように、(a)水
平方向にエッジが走行した画像領域(水平型)、(b)
垂直方向にエッジが走行した画像領域(垂直型)、
(c)左斜め上方向にエッジが走行した型(左上がり斜
め型)、(d)右斜め上方向にエッジが走行した型(右
上がり斜め型)の何れかになると考えられる。勿論、色
成分を基準にしても良い。
Taking the change in the luminance of an image having an edge as an example, if the difference between the luminance components of the adjacent pixels is larger than a certain threshold, the pixel can be determined to be an edge, and if the determination area is small, the pixel is small. The change can be grasped finely. In other words, as shown in FIG. 15, the edge type is (a) an image area in which the edge runs in the horizontal direction (horizontal type), and (b)
Image area with vertical edges running (vertical type),
It is considered that either (c) a type in which the edge runs diagonally to the upper left (upward diagonal type), or (d) a type in which the edge runs diagonally to the upper right (upward diagonal). Of course, a color component may be used as a reference.

【0180】例えば、輝度成分で比較したとき、領域1
501、1503、1505、1507では輝度レベル
が高く且つ明るい画素が多く、領域1502、150
4、1506、1508では暗い画素が多いとする。
For example, when comparing the luminance components, the area 1
In 501, 1503, 1505, and 1507, the luminance level is high and there are many bright pixels.
4, 1506, and 1508 assume that there are many dark pixels.

【0181】尚、図15(a),(b),(c)及び
(d)の何れにも該当しないものは、エッジを持たない
型であるとして良い。
Incidentally, those which do not correspond to any of FIGS. 15 (a), (b), (c) and (d) may be of a type having no edge.

【0182】ここでは、簡潔化を図り、水平型と垂直型
のみの判別を行う例について述べるが、判定するパター
ンは、水平型、垂直型、左上がり斜め型、右上がり斜め
型の4種類でも良いし、更に多くの分類型を増やしても
良いし、例えば斜め型のみを判定しても良い。
Here, an example in which only the horizontal type and the vertical type are discriminated for the sake of simplicity will be described. However, there are four types of patterns to be determined: a horizontal type, a vertical type, a diagonally rising left, and a diagonally rising right. Good, more classification types may be added, and for example, only diagonal types may be determined.

【0183】図16は、エッジ検出器416の第2の例
の構成図である。
FIG. 16 is a configuration diagram of a second example of the edge detector 416.

【0184】同図において、1601は入力映像信号、
1602は輝度成分・色成分分解器、1603は輝度成
分、1604は所定領域ブロッキング器、1605は上
面平均値計算器、1606は下面平均値計算器、160
7は左面平均値計算器、1608は右面平均値計算器、
1609、1610、1611、1612は輝度成分の
平均値、1613、1614は差分器、1615、16
16は差分値、1617は水平型判定閾値、1618は
水平型判定器、1619は垂直型判定閾値、1620は
垂直型判定器、1621は判定結果統合器、1622は
切り替え器制御器、1623は切り替え信号、1624
はカウンタ、1625は閾値Xである。
In the figure, reference numeral 1601 denotes an input video signal;
1602 is a luminance component / color component decomposer, 1603 is a luminance component, 1604 is a predetermined area blocking unit, 1605 is an upper surface average value calculator, 1606 is a lower surface average value calculator, 160
7 is a left side average value calculator, 1608 is a right side average value calculator,
1609, 1610, 1611 and 1612 are average values of luminance components, 1613 and 1614 are differentiators, 1615 and 16
16 is a difference value, 1617 is a horizontal type determination threshold, 1618 is a horizontal type determiner, 1619 is a vertical type determination threshold, 1620 is a vertical type determiner, 1621 is a determination result integrator, 1622 is a switch controller, and 1623 is a switch. Signal, 1624
Is a counter and 1625 is a threshold X.

【0185】入力映像信号1601は、輝度成分・色成
分分解器1602に入力され、輝度成分1603及び色
成分に分解される。
The input video signal 1601 is input to a luminance component / color component decomposer 1602, and is decomposed into a luminance component 1603 and a color component.

【0186】輝度成分1603は、所定領域ブロッキン
グ器1604により、所定領域、例えば16x16画素
の領域に分割され、上面平均値計算器1605、下面平
均値計算器1606、左面平均値計算器1607、右面
平均値計算器1608に入力される。
The luminance component 1603 is divided by a predetermined area blocking unit 1604 into a predetermined area, for example, a 16 × 16 pixel area, and an upper surface average value calculator 1605, a lower surface average value calculator 1606, a left surface average value calculator 1607, and a right surface average It is input to the value calculator 1608.

【0187】上面平均値計算器1605は、図15
(a)の領域1501(上方の8x16画素)の輝度成
分の平均値1609を求める。下面平均値計算器160
6は、図15(a)の領域1502(下方の8x16画
素)の輝度成分の平均値1610を求める。左面平均値
計算器1607は、図15(b)の領域1503(左側
の16x8画素)の輝度成分の平均値1611を求め
る。右面平均値計算器1608は、図15(b)の領域
1504(右側の16x8画素)の輝度成分の平均値1
612を求める。
[0187] The upper surface average value calculator 1605 is shown in FIG.
An average value 1609 of the luminance component of the area 1501 (upper 8 × 16 pixels) in FIG. Lower surface average calculator 160
6 calculates an average value 1610 of the luminance components of the area 1502 (8 × 16 pixels at the bottom) in FIG. The left-side average calculator 1607 obtains the average value 1611 of the luminance component of the area 1503 (16 × 8 pixels on the left) in FIG. 15B. The right side average value calculator 1608 calculates the average value 1 of the luminance component of the area 1504 (16 × 8 pixels on the right side) in FIG.
612.

【0188】差分器1613は、輝度成分の平均値16
09、1610を入力し、差分値1615を水平型判定
器1618に出力する。差分器1614は、輝度成分の
平均値1611、1612を入力し、差分値1616を
垂直型判定器1620に出力する。
The differentiator 1613 calculates the average value 16 of the luminance component.
09 and 1610 are input, and the difference value 1615 is output to the horizontal type decision unit 1618. The differentiator 1614 receives the average values 1611 and 1612 of the luminance components and outputs the difference value 1616 to the vertical type determiner 1620.

【0189】水平型判定器1618は、差分値1615
が水平型判定閾値1617以上である場合には、明暗の
差があるので、カウンタ1624のカウント値を1つイ
ンクリメントする。
The horizontal type decision unit 1618 calculates the difference value 1615
Is greater than or equal to the horizontal type determination threshold 1617, there is a difference in brightness, so the count value of the counter 1624 is incremented by one.

【0190】垂直型判定器1619は、差分値1616
が垂直型判定閾値1619以上である場合には、明暗の
差があるので、カウンタ1624のカウント値を1つイ
ンクリメントする。
The vertical type decision unit 1619 calculates the difference value 1616
Is greater than or equal to the vertical type determination threshold value 1619, there is a difference in brightness, so the count value of the counter 1624 is incremented by one.

【0191】判定結果統合器1621は、ブロッキング
された領域が複数(例えばN個、Nは所定整数)集まっ
た所定領域毎に、水平型又は垂直型と判定された領域の
数、即ちカウンタ1624のカウント値が定数X(16
25)個以上か否かを調べ、X個以上である場合には、
エッジの多い画像であるとの判定結果を切り替え器制御
器1622に出力する。
The decision result integrator 1621 determines the number of areas determined to be horizontal or vertical, that is, the counter 1624, for each predetermined area in which a plurality of blocked areas (for example, N, N is a predetermined integer) are collected. When the count value is a constant X (16
25) Check if there are more than X, and if more than X,
The determination result that the image has many edges is output to the switch controller 1622.

【0192】切り替え器制御器1622は、判定結果統
合器1621の出力に従って、所定映像パターンである
場合にはアクティビティの変調がないQパラメータを選
択し、所定映像パターンでない場合にはアクティビティ
の変調があるQパラメータを選択して、量子化するよう
に、切り替え信号1623を設定する。尚、所定領域は
1フレームでも、複数の画素の領域でも、何れでも良
い。
The switching controller 1622 selects a Q parameter without activity modulation when the image is a predetermined image pattern, and modulates the activity when the image is not a predetermined image pattern, according to the output of the judgment result integrator 1621. The switching signal 1623 is set so that the Q parameter is selected and quantized. The predetermined area may be one frame or a plurality of pixels.

【0193】尚、カウンタ1624のカウンタ値は、所
定領域毎にゼロにリセットする。
The counter value of the counter 1624 is reset to zero for each predetermined area.

【0194】(エッジ検出器の第3の例)次に、エッジ
検出器416の第3の例を挙げる。
(Third Example of Edge Detector) Next, a third example of the edge detector 416 will be described.

【0195】エッジ検出器416の第3の例では、入力
映像信号を離散コサイン変換した後の係数の分布状態か
ら、エッジの有無を判別する例を挙げる。
In the third example of the edge detector 416, an example will be described in which the presence or absence of an edge is determined from the distribution state of the coefficients after the input video signal is subjected to the discrete cosine transform.

【0196】ここで、画像のサブブロックを直交変換す
ると、平坦な画像領域では低周波成分に電力が集中す
る。
Here, when the sub-blocks of the image are orthogonally transformed, the power is concentrated on the low-frequency components in the flat image area.

【0197】一方、図17に示すように、エッジが
(a)水平、(b)垂直、(c)斜め方向に走行する画
像領域では、変換領域(d)において、各々、領域17
01、1702、1703の領域に比較的大きな絶対値
を持った「有意な変換係数」が生じる。離散コサイン変
換をした後の係数のこの現象を利用し、有意な変換係数
について、その位置と大きさとを巧妙に符号化する手法
を導入することで極めて高能率な直交変換符号化法を示
す文献の1例として、W.H.Chen andW.K.Pratt:"Sc ene
Adaptive Coder",IEEE Trans. Commun.,COM-32,3,pp.22
5-232(Mar.1984) が挙げられる。
On the other hand, as shown in FIG. 17, in the image area where the edges run in (a) horizontal, (b) vertical, and (c) oblique directions, in the conversion area (d),
“Significant conversion coefficients” having relatively large absolute values occur in the areas of 01, 1702, and 1703. A document showing an extremely efficient orthogonal transform coding method by taking advantage of this phenomenon of coefficients after performing discrete cosine transform and introducing a technique to cleverly encode the position and size of significant transform coefficients. As an example of WHChen and W.K.Pratt: "Scene
Adaptive Coder ", IEEE Trans.Commun., COM-32,3, pp.22
5-232 (Mar.1984).

【0198】図18は、第3の例のエッジ検出器416
の構成図である。
FIG. 18 shows an edge detector 416 of the third example.
FIG.

【0199】同図において、1801は入力映像信号、
1802は輝度成分・色成分分解器、1803は輝度成
分、1804は所定領域ブロッキング器、1805は離
散コサイン変換器、1806は閾値カット処理器、18
07は閾値X、1808は水平型エッジ判定器、180
9は垂直型エッジ判定器、1810は斜め型エッジ判定
器、1811は水平型エッジ閾値、1812は垂直型エ
ッジ閾値、1813は斜め型エッジ閾値、1814は判
定結果統合器、1815は切り替え器制御器、1816
は切り替え信号、1817は定数Fである。
In the figure, reference numeral 1801 denotes an input video signal;
1802 is a luminance component / color component decomposer, 1803 is a luminance component, 1804 is a predetermined area blocking unit, 1805 is a discrete cosine transformer, 1806 is a threshold cut processing unit, 18
07 is a threshold value X, 1808 is a horizontal edge determiner, 180
9 is a vertical edge determiner, 1810 is a diagonal edge determiner, 1811 is a horizontal edge threshold, 1812 is a vertical edge threshold, 1813 is a diagonal edge threshold, 1814 is a decision result integrator, and 1815 is a switch controller. , 1816
Is a switching signal, and 1817 is a constant F.

【0200】入力映像信号1801は、輝度成分・色成
分分解器1802に入力され、輝度成分1803及び色
成分に分解される。
An input video signal 1801 is input to a luminance component / color component decomposer 1802 and is decomposed into a luminance component 1803 and a color component.

【0201】輝度成分1803は、所定領域ブロッキン
グ器1804により、所定領域、例えば16x16画素
の領域に分割され、離散コサイン変換器1805に出力
される。離散コサイン変換器1805は2次元DCT
(離散コサイン変換)を施し、DCT係数を得るが、こ
の出力は、閾値カット処理器1806の入力され、閾値
X(1807)以下の係数の値は強制的にゼロとなる。
The luminance component 1803 is divided by a predetermined area blocking unit 1804 into a predetermined area, for example, an area of 16 × 16 pixels, and is output to a discrete cosine transformer 1805. The discrete cosine transformer 1805 is a two-dimensional DCT
(Discrete cosine transform) is performed to obtain a DCT coefficient. This output is input to a threshold cut processor 1806, and the value of the coefficient equal to or smaller than the threshold X (1807) is forcibly set to zero.

【0202】閾値カット処理器1806は、閾値X以下
のDCT係数を“0”にし、このDCT係数は、水平型
エッジ判定器1808、垂直型エッジ判定器1809及
び斜め型エッジ判定器1810に出力される。
The threshold cut processor 1806 sets the DCT coefficient equal to or smaller than the threshold X to “0”, and outputs this DCT coefficient to the horizontal edge determiner 1808, the vertical edge determiner 1809, and the oblique edge determiner 1810. You.

【0203】水平型エッジ判定器1808は、例えば、
図17の領域1701の値“0”よりも大きな係数の数
を数え、その数が水平型エッジ閾値1811を越える場
合には、水平方向のエッジ走行を持つ画像領域であると
判定できるので、判定結果を例えば“1”として、判定
結果統合器1814へ出力する。
The horizontal type edge determiner 1808 is, for example,
The number of coefficients larger than the value “0” of the area 1701 in FIG. 17 is counted, and if the number exceeds the horizontal edge threshold 1811, it can be determined that the image area has horizontal edge running. The result is set to, for example, “1” and output to the determination result integrator 1814.

【0204】同様に、垂直型エッジ判定器1809は、
例えば、図17の領域1702の値“0”よりも大きな
係数の数を数え、その数が垂直型エッジ閾値1812を
越える場合には、垂直方向のエッジ走行を持つ画像領域
であると判定できるので、判定結果を例えば“1”とし
て、判定結果統合器1814へ出力する。
Similarly, the vertical edge determiner 1809 is
For example, the number of coefficients larger than the value “0” of the area 1702 in FIG. 17 is counted, and if the number exceeds the vertical edge threshold 1812, it can be determined that the image area has vertical edge running. The determination result is set to, for example, “1” and output to the determination result integrator 1814.

【0205】同様に、垂直型エッジ判定器1810は、
例えば、図17の領域1703の値“0”よりも大きな
係数の数を数え、その数が斜め型エッジ閾値1813を
越える場合には、斜め方向のエッジ走行を持つ画像領域
であると判定できるので、判定結果を例えば“1”とし
て、判定結果統合器1814へ出力する。
Similarly, the vertical edge determiner 1810
For example, the number of coefficients larger than the value “0” of the area 1703 in FIG. 17 is counted, and if the number exceeds the oblique edge threshold 1813, it can be determined that the image area has an oblique edge run. The determination result is set to, for example, “1” and output to the determination result integrator 1814.

【0206】判定結果統合器1814は、ブロッキング
された領域が複数(例えばN個、Nは所定整数)集まっ
た所定領域毎に、水平型、垂直型又は斜め型と判定され
た領域の数が、定数F(1817)個以上か否かを調
べ、F個以上であればエッジの多い画像であると判定
し、判定結果を切り替え器制御器1815に出力する。
The judgment result integrator 1814 determines, for each predetermined area in which a plurality of blocked areas (for example, N, N is a predetermined integer) are collected, the number of areas determined to be horizontal, vertical, or oblique. It is checked whether or not the number is a constant F (1817) or more. If the number is F or more, it is determined that the image has many edges, and the determination result is output to the switch controller 1815.

【0207】切り替え器制御器1815は、判定結果統
合器1814の出力に従って、所定映像パターンである
場合にはアクティビティの変調がないQパラメータを選
択し、所定映像パターンでない場合にはアクティビティ
の変調があるQパラメータを選択して、量子化するよう
に、切り替え信号1816を設定する。尚、所定領域は
1フレームでも、複数の画素の領域でも、何れでも良
い。
The switch controller 1815 selects a Q parameter having no activity modulation if the video pattern is the predetermined video pattern, and modulates the activity if the video image is not the predetermined video pattern, according to the output of the determination result integrator 1814. The switching signal 1816 is set so that the Q parameter is selected and quantized. The predetermined area may be one frame or a plurality of pixels.

【0208】尚、前記の場合、1つの領域が水平型、垂
直型、斜め型の何れの型にも該当するときがあるが、何
れか1つに決定しても良いし、エッジの走行の型は必ず
しも水平型、垂直型、斜め型の3つに限定する必要はな
く、減らしても良いし、増やしても良い。
In the above case, one area may correspond to any of the horizontal type, the vertical type, and the diagonal type. The mold need not necessarily be limited to the three types of horizontal type, vertical type, and oblique type, and may be reduced or increased.

【0209】尚、エッジ検出器416のエッジ検出の方
法は前記の例に限らず、何れでも良い。
[0209] The method of edge detection by the edge detector 416 is not limited to the above example, and may be any method.

【0210】(第5の実施の形態)図5に、本発明の第
5の実施の形態における映像符号化装置の構成を示す。
(Fifth Embodiment) FIG. 5 shows the configuration of a video encoding device according to a fifth embodiment of the present invention.

【0211】同図において、501は入力映像信号、5
02はブロック分割器、503は離散コサイン変換器、
504は量子化器、505は可変長符号化器、506は
使用Qパラメータ、507は圧縮符号化列、508は符
号量測定器、509は割り当て符号化値、510は符号
量制御器、511はQパラメータ、512はアクティビ
ティ算出器、513はQパラメータ変調器、514は変
調Qパラメータ、515は切り替え器、516はエッジ
画像検出器(エッジ画像検出手段)、517は切り替え
信号、518はアクティビティである。
In the figure, reference numeral 501 denotes an input video signal;
02 is a block divider, 503 is a discrete cosine transformer,
504 is a quantizer, 505 is a variable length coder, 506 is a used Q parameter, 507 is a compressed coded sequence, 508 is a code amount measuring device, 509 is an assigned coding value, 510 is a code amount controller, and 511 is a code amount controller. Q parameter, 512 is an activity calculator, 513 is a Q parameter modulator, 514 is a modulation Q parameter, 515 is a switch, 516 is an edge image detector (edge image detection means), 517 is a switching signal, and 518 is activity. .

【0212】図5の映像符号化装置において、入力映像
信号501はエッジ画像検出器516及びブロック分割
器502に入力される。エッジ画像検出器516はアク
ティビティ算出器512の出力であるアクティビティ5
18を入力とし、アクティビティ518の分布から所定
領域のエッジの有無を判別し、エッジを持たないと判定
された時には、切り替え器515の入力側をQパラメー
タ変調器513の出力である変調Qパラメータ514側
に切り替え、エッジを持つと判定された場合には切り替
え器515の入力側を符号量制御器510の出力である
Qパラメータ511側に切り替える。
In the video coding apparatus shown in FIG. 5, an input video signal 501 is input to an edge image detector 516 and a block divider 502. The edge image detector 516 outputs the activity 5 output from the activity calculator 512.
18 is input, the presence / absence of an edge in a predetermined area is determined from the distribution of the activity 518. When it is determined that the edge has no edge, the input side of the switch 515 is connected to the modulation Q parameter 514 which is the output of the Q parameter modulator 513. Side, and when it is determined to have an edge, the input side of the switch 515 is switched to the Q parameter 511 side which is the output of the code amount controller 510.

【0213】また、ブロック分割器502の出力はアク
ティビティ算出器512に入力され、アクティビティ算
出器512は所定領域毎のアクティビティをフレーム内
の画素又はフレーム間の画素を基準にアクティビティを
求める。
The output of the block divider 502 is input to the activity calculator 512, and the activity calculator 512 obtains the activity of each predetermined area based on the pixels in the frame or the pixels between the frames.

【0214】一方、ブロック分割器502の出力は離散
コサイン変換器503に入力され、周波数データに変換
されて、量子化器504に入力される。
On the other hand, the output of the block divider 502 is input to the discrete cosine transformer 503, converted into frequency data, and input to the quantizer 504.

【0215】ここで、量子化器504は、所定領域の周
波数データを決定した量子化幅、即ち使用Qパラメータ
506で量子化するが、使用Qパラメータ506は、上
述のようにエッジを持たないと判定された場合には変調
Qパラメータ514を用い、エッジを持つと判定された
時には場合には変調のないQパラメータ511を用い
る。
Here, the quantizer 504 quantizes the frequency data in the predetermined area using the determined quantization width, that is, the used Q parameter 506, but the used Q parameter 506 must have no edge as described above. If it is determined, the modulation Q parameter 514 is used, and if it is determined that it has an edge, the Q parameter 511 without modulation is used.

【0216】可変長符号化器505は、量子化器504
の出力である量子化コードを可変長符号化し、圧縮符号
化列507を生成する。
The variable length encoder 505 includes a quantizer 504
Is subjected to variable length encoding to generate a compressed encoded sequence 507.

【0217】この時、圧縮符号化列507の発生符号量
を符号量測定器508が測定し、その測定値と割り当て
符号化値509とを符号量制御器510に入力して、そ
の差を検出し、次の所定領域の発生符号量を制御するた
めにQパラメータ511を例えば前記式2に基いて計算
する。
At this time, the code amount measuring device 508 measures the generated code amount of the compressed coded sequence 507, and inputs the measured value and the assigned coded value 509 to the code amount controller 510 to detect the difference. Then, the Q parameter 511 is calculated based on, for example, Equation 2 in order to control the generated code amount in the next predetermined area.

【0218】尚、エッジを持つ画像は、字幕を含む画
面、カラーバー、静止画、フラッシング画像、テストパ
ターン、タイトル画面、コンピュータグラフィックスに
よって作成された画像、アニメーションを含む画像等、
動きが少なくても複雑な絵柄を持つ画像、又は局所的に
エッジを含むパターンを含む画像等、何れでもよい。
Note that images having edges include screens including subtitles, color bars, still images, flashing images, test patterns, title screens, images created by computer graphics, images including animation, and the like.
Any of an image having a complicated pattern with little movement or an image including a pattern including a local edge may be used.

【0219】アクティビティの高い映像は一般に符号化
難易度は高いが、発生した符号化ノイズは認識され難
い。逆に、アクティビティの低い画像では符号化ノイズ
が目立ち易い傾向にある。
A video having a high activity generally has a high coding difficulty, but the generated coding noise is hard to recognize. Conversely, coding noise tends to be noticeable in an image with low activity.

【0220】従って、アクティビティの大きさに応じて
量子化パラメータを制御することによって画質の劣化を
抑制することができ、映像シーン全体での高画質化を図
ることができる。
Therefore, by controlling the quantization parameter in accordance with the size of the activity, it is possible to suppress the deterioration of the image quality, and to improve the image quality of the entire video scene.

【0221】すなわち、符号量制御器510は、可変長
符号化器505が映像信号をシーンに応じた符号化レー
トで符号化できるようにQパラメータ511を決定す
る。
That is, the code amount controller 510 determines the Q parameter 511 so that the variable length encoder 505 can encode a video signal at an encoding rate according to a scene.

【0222】尚、アクティビティの分布を調べる単位
は、複数画素単位でも、1フレーム単位でも、1フィー
ルド単位でも、複数フレーム単位でも、何れでも良い。
The unit for checking the distribution of the activity may be any of a plurality of pixels, one frame, one field, a plurality of frames.

【0223】尚、エッジ画像を検出する単位は、複数画
素単位でも、1フレーム単位でも、1フィールド単位で
も、複数フレーム単位でも何れでも良い。
The unit for detecting the edge image may be any of a plurality of pixels, one frame, one field, or a plurality of frames.

【0224】また、エッジ画像か否かの検出後、エッジ
画像か否かで量子化幅を決定する切り替えのタイミング
は、エッジの有無を判定する単位毎でもよいし、複数の
エッジの有無を判定する領域が複数集まった単位でも、
フレーム単位でも、フィールド単位でも、複数のフレー
ム単位でも、何れでも良い。
After the detection of the edge image or not, the switching timing for determining the quantization width depending on whether the image is an edge image may be performed for each unit for judging the presence or absence of an edge or for judging the presence or absence of a plurality of edges. Even if a unit has multiple areas
Any of a frame unit, a field unit, and a plurality of frame units may be used.

【0225】(エッジ画像検出器の第1の例)次に、エ
ッジ画像検出器516の第1の例を説明する。
(First Example of Edge Image Detector) Next, a first example of the edge image detector 516 will be described.

【0226】ここでは、特に、画面内に局所的にエッジ
の多い画像を考えると、アクティビティが極端に高い部
分と、全体に低い部分とが現れ、そのアクティビティの
分布は、図19に示すような分布になると推察される。
そこで、図19のアクティビティの分布1901を第1
の閾値U1902と比較し、第1の閾値U1902以上
のものを数え、その数をN1個とし、第2の閾値L19
03以下の個数を数え、その数をN2個とすると、N1
≧X1且つN2≧X2であるとき、エッジ画像であると
判別すればよい。
Here, particularly when considering an image having many edges locally on the screen, an extremely high activity portion and an overall low activity portion appear, and the distribution of the activity is as shown in FIG. It is presumed to be distribution.
Therefore, the activity distribution 1901 in FIG.
Is compared with the threshold value U1902, the ones that are equal to or larger than the first threshold value U1902 are counted, the number is set to N1, and the second threshold value L19
If the number is 03 or less and the number is N2, then N1
When ≧ X1 and N2 ≧ X2, it may be determined that the image is an edge image.

【0227】図20は、エッジ画像検出器の第1の例の
構成を示す。
FIG. 20 shows the configuration of the first example of the edge image detector.

【0228】図20において、2001は入力映像信
号、2002は輝度成分・色成分分解器、2003は輝
度成分、2004は所定領域ブロッキング器、2005
はアクティビティ検出器、2006は所定領域抽出器、
2007は第1の閾値判定器、2008は第2の閾値判
定器、2009は閾値G1、2010は閾値G2、20
11は第1のカウンタ、2012は第2のカウンタ、2
013は判定結果統合器、2014は定数X1、201
5は定数X2、2016は切り替え器制御器、2017
は切り替え信号である。
In FIG. 20, 2001 is an input video signal, 2002 is a luminance component / color component decomposer, 2003 is a luminance component, 2004 is a predetermined area blocking unit, 2005
Is an activity detector, 2006 is a predetermined area extractor,
2007 is a first threshold value determiner, 2008 is a second threshold value determiner, 2009 is a threshold value G1, 2010 is a threshold value G2, 20
11 is the first counter, 2012 is the second counter, 2
013 is a judgment result integrator, 2014 is a constant X1, 201
5 is a constant X2, 2016 is a switch controller, 2017
Is a switching signal.

【0229】入力映像信号2001は、輝度成分・色成
分分解器2002に入力され、輝度成分2003及び色
成分に分解される。
An input video signal 2001 is input to a luminance component / color component decomposer 2002 and is decomposed into a luminance component 2003 and a color component.

【0230】輝度成分2003は、所定領域ブロッキン
グ器2004により、所定領域、例えば16x16画素
の領域に分割され、アクティビティ検出器2005は所
定領域毎にアクティビティを計算し、所定領域抽出器2
006に出力する。
The luminance component 2003 is divided into a predetermined area, for example, an area of 16 × 16 pixels, by a predetermined area blocking unit 2004, and an activity detector 2005 calculates an activity for each predetermined area, and the predetermined area extractor 2
006.

【0231】所定領域抽出器2006は、アクティビテ
ィの分布を調べる領域を限定し、複数個のアクティビテ
ィを、第1の閾値判定器2007及び第2の閾値判定器
2008に出力する。
The predetermined region extractor 2006 limits the region for which the activity distribution is to be examined, and outputs a plurality of activities to the first threshold value determiner 2007 and the second threshold value determiner 2008.

【0232】第1の閾値判定器2007は、所定領域抽
出器2006から出力されるアクティビティが閾値G1
(2009)以上である場合に、第1のカウンタ201
1のカウント値を1つインクリメントする。
The first threshold value determiner 2007 determines that the activity output from the predetermined area extractor 2006 is the threshold value G1.
(2009), the first counter 201
The count value of 1 is incremented by one.

【0233】第2の閾値判定器2008は、所定領域抽
出器2006から出力されるアクティビティが閾値G2
(2010)以下である場合に、第2のカウンタ201
2のカウント値を1つインクリメントする。
The second threshold value determiner 2008 determines that the activity output from the predetermined area extractor 2006 is equal to the threshold value G2.
If (2010) or less, the second counter 201
The count value of 2 is incremented by one.

【0234】尚、第1のカウンタ2011及び第2のカ
ウンタ2012のカウント値は、アクティビティの分布
を調べる所定領域毎にゼロにリセットする。
Note that the count values of the first counter 2011 and the second counter 2012 are reset to zero for each predetermined area in which the distribution of the activity is checked.

【0235】判定結果統合器2013は、ブロッキング
された領域が複数(例えばN個、Nは所定整数)集まっ
た所定領域毎に、第1のカウンタ2011のカウント値
が定数X1(2014)以上であり、且つ第2のカウン
タ2012のカウント値が定数X2(2015)以上で
ある場合には、エッジの多い画像であると判定し、判定
結果を切り替え器制御器1815に出力する。
The judgment result integrator 2013 determines that the count value of the first counter 2011 is equal to or larger than the constant X1 (2014) for each predetermined region in which a plurality of blocked regions (for example, N, N is a predetermined integer) are collected. If the count value of the second counter 2012 is equal to or larger than the constant X2 (2015), it is determined that the image has many edges, and the determination result is output to the switch controller 1815.

【0236】切り替え器制御器2016は、判定結果統
合器2013の出力に従って、所定映像パターンである
場合にはアクティビティの変調がないQパラメータを選
択し、所定映像パターンでない場合にはアクティビティ
の変調があるQパラメータを選択して、量子化するよう
に、切り替え信号2017を設定する。尚、所定領域は
1フレームでも、複数の画素の領域でも、何れでも良
い。
The switch controller 2016 selects a Q parameter having no activity modulation when it is a predetermined video pattern according to the output of the judgment result integrator 2013, and modulates the activity when it is not the predetermined video pattern. The switching signal 2017 is set so that the Q parameter is selected and quantized. The predetermined area may be one frame or a plurality of pixels.

【0237】尚、アクティビティの分布が、ある所定領
域で、図21のような正規分布以外であるか否かを調べ
ても良い。その理由は、アクティビティの分布が正規分
布を持つ画像は、平坦な特性を持つ画像と判断できるの
で、エッジを持つことが少ないと予想されるからであ
る。
It is also possible to check whether the distribution of the activity is other than the normal distribution as shown in FIG. 21 in a predetermined area. The reason for this is that an image having a normal distribution of activity can be determined to be an image having flat characteristics, and is therefore expected to have few edges.

【0238】尚、複雑な絵柄を持つエッジ画像であれ
ば、アクティビティの変化も大きいと判断される。そこ
で、アクティビティの最大値と最小値とが大きな開きを
持っているか否かを調べ、エッジ画像を判定しても良
い。例えば、ある所定領域で、アクティビティの最大値
と最小値との差が閾値X以上であれば、アクティビティ
は幅広い分布を持つと判断できるので、エッジ画像であ
ると判定できる。また、例えば、所定領域において、ア
クティビティの最大値が閾値X1以上であり、且つ最小
値が閾値X2以下であるという大きな開きを持っている
か否かを調べて、エッジ画像を判定しても良い。
In the case of an edge image having a complicated picture, it is determined that the change in the activity is large. Therefore, it may be determined whether the maximum value and the minimum value of the activity have a large difference, and the edge image may be determined. For example, if the difference between the maximum value and the minimum value of the activity in a certain predetermined area is equal to or larger than the threshold value X, the activity can be determined to have a wide distribution, and thus can be determined to be an edge image. Further, for example, the edge image may be determined by checking whether or not the predetermined area has a large difference between the maximum value of the activity equal to or larger than the threshold X1 and the minimum value equal to or smaller than the threshold X2.

【0239】(エッジ画像検出器の第2の例)次に、エ
ッジ画像検出器516の第2の例を挙げる。
(Second Example of Edge Image Detector) Next, a second example of the edge image detector 516 will be described.

【0240】ある領域のアクティビティに注目したと
き、あるアクティビティが周囲のアクティビティに比べ
て極めて異なる値を取る場合に、そのアクティビティに
応じて量子化幅を定める時、量子化幅はこれに近接する
領域の量子化幅と大きく違うことになるので、このよう
な特異な部分を持つ画像はエッジ画像であると判断して
よい。
When focusing on the activity in a certain area, if a certain activity takes a value extremely different from that of the surrounding activities, when the quantization width is determined in accordance with the activity, the quantization width is set in the area close to the activity. Therefore, an image having such a unique portion may be determined to be an edge image.

【0241】図22に、アクティビティが周囲のアクテ
ィビティとは異なる例を示す。領域2201のアクティ
ビティは周囲のアクティビティと“3”以上の差を持
ち、周囲の領域のアクティビティと異なる値を示してい
る。隣接した領域でこのような差異があると、符号化時
に周囲よりも高い符号量を持って符号化することになる
ため、ノイズがある場合にはそのノイズが顕著に目立つ
ことになる。連続したエッジがあれば一層その差異は目
立つことになる。
FIG. 22 shows an example in which the activity is different from the surrounding activities. The activity in the area 2201 has a difference of “3” or more from the surrounding activities, and indicates a different value from the activity in the surrounding area. If there is such a difference in an adjacent area, the encoding is performed with a higher code amount than the surrounding area at the time of encoding, so that when there is noise, the noise becomes conspicuous. If there are continuous edges, the difference will be more noticeable.

【0242】図23は、エッジ画像検出器516の第2
の例の構成図である。
FIG. 23 shows the second example of the edge image detector 516.
FIG. 3 is a configuration diagram of an example of FIG.

【0243】図23において、2301は入力映像信
号、2302は輝度成分・色成分分解器、2303は輝
度成分、2304は所定領域ブロッキング器、2305
はアクティビティ検出器、2306はアクティビティメ
モリ、2307は隣接アクティビティ差分判定器、23
08は閾値T、2309はカウンタ、2310は判定結
果統合器、2311は切り替え器制御器、2312は切
り替え信号、2313は定数Nである。
In FIG. 23, 2301 is an input video signal, 2302 is a luminance component / color component decomposer, 2303 is a luminance component, 2304 is a predetermined area blocking unit, 2305
Is an activity detector, 2306 is an activity memory, 2307 is an adjacent activity difference determiner, 23
08 is a threshold T, 2309 is a counter, 2310 is a judgment result integrator, 2311 is a switch controller, 2312 is a switch signal, and 2313 is a constant N.

【0244】入力映像信号2301は、輝度成分・色成
分分解器2302に入力され、輝度成分2303と色成
分に分解される。
An input video signal 2301 is input to a luminance component / color component decomposer 2302, and is decomposed into a luminance component 2303 and a color component.

【0245】輝度成分2303は所定領域ブロッキング
器2304によって、所定領域、例えば16x16画素
の領域に分割され、アクティビティ検出器2305は所
定領域毎にアクティビティを計算し、アクティビティメ
モリ2306に出力する。
The luminance component 2303 is divided by the predetermined area blocking unit 2304 into a predetermined area, for example, an area of 16 × 16 pixels. The activity detector 2305 calculates an activity for each predetermined area and outputs it to the activity memory 2306.

【0246】アクティビティメモリ2306は、複数の
アクティビティを蓄積しているが、隣接アクティビティ
2307は、あるアクティビティに隣接する最大M(M
は8以下の自然数)個のアクティビティとの差分を取
り、この差分値の何れかが閾値T(2308)を越えて
いる場合には、エッジのある画像領域であると判定し
て、カウンタ2309を1つインクリメントする。
Although the activity memory 2306 stores a plurality of activities, the adjacent activity 2307 stores the maximum M (M
Is a natural number equal to or less than 8) activities, and if any of the difference values exceeds the threshold value T (2308), it is determined that the image area has an edge, and the counter 2309 is reset. Increment by one.

【0247】尚、カウンタ2309のカウント値は所定
領域毎にゼロにリセットする。
Incidentally, the count value of the counter 2309 is reset to zero for each predetermined area.

【0248】判定結果統合器2310は、ブロッキング
された領域が複数(例えばN個、Nは所定整数)集まっ
た所定領域毎に、カウンタ2309のカウント値が定数
N(2313)個以上である場合には、エッジの多い画
像であると判定し、その判定結果を切り替え器制御器2
311に出力する。
The judgment result integrator 2310 determines whether the count value of the counter 2309 is equal to or greater than a constant N (2313) for each predetermined area in which a plurality of blocked areas (for example, N, N is a predetermined integer) are collected. Is determined to be an image having many edges, and the determination result is determined by the switch controller 2
Output to 311.

【0249】切り替え器制御器2311は、判定結果統
合器2310の出力に従って、所定映像パターンである
場合にはアクティビティの変調がないQパラメータを選
択し、所定映像パターンでない場合にはアクティビティ
の変調があるQパラメータを選択して、量子化するよう
に、切り替え信号2312を設定する。尚、所定領域は
1フレームでも、複数の画素の領域でも、何れでも良
い。
The switch controller 2311 selects a Q parameter having no activity modulation when it is a predetermined video pattern according to the output of the decision result integrator 2310, and modulates the activity when it is not the predetermined video pattern. The switching signal 2312 is set so that the Q parameter is selected and quantized. The predetermined area may be one frame or a plurality of pixels.

【0250】尚、アクティビティの分布を調べる場合、
必ずしも横方向に切断する必要はなく、横方向でも縦方
向でも斜め方向でも良いし、1画面を四角い所定領域に
区切って同様の操作をしても良い。
When examining the distribution of activities,
It is not always necessary to cut in the horizontal direction, and it may be in the horizontal, vertical, or oblique direction, or the same operation may be performed by dividing one screen into a predetermined rectangular area.

【0251】尚、第1の実施の形態において、所定映像
パターンの検出方法は映像信号の輝度成分や色成分から
特徴を捉える物でなくてもよく、映像信号の垂直器ブラ
ンキングや水平ブランキングに書かれた所定映像パター
ンを示す信号を読みとるなどしても良いし、所定映像パ
ターンの検出方法は何れでも良い。
In the first embodiment, the method of detecting a predetermined video pattern does not need to capture characteristics from the luminance and color components of the video signal. For example, a signal indicating a predetermined video pattern written in the above may be read, and any method of detecting the predetermined video pattern may be used.

【0252】尚、第1ないし第5の実施の形態におい
て、量子化幅決定器が符号化時に使用する量子化幅を外
部から指定しても構わないし、所定映像パターン又はエ
ッジ画像であると判定される区間では予め保持している
量子化幅を特定しても良い。
In the first to fifth embodiments, the quantization width used by the quantization width determiner at the time of encoding may be specified from outside, and it is determined that the image is a predetermined video pattern or edge image. In the section to be performed, the quantization width held in advance may be specified.

【0253】尚、第1ないし第5の実施の形態におい
て、所定映像パターン又はエッジ画像を含まれると推定
される区間を判別基準を緩くして広くしてもよいし、判
別基準をきつくして狭くしてもよい。
In the first to fifth embodiments, the section in which a predetermined video pattern or an edge image is estimated to be included may be broadened by loosening the criterion, or may be set to a tighter criterion. It may be narrow.

【0254】尚、第1、第4及び第5の実施の形態で
は、所定映像パターン又はエッジ画像であると判定され
た区間を更に広くしても良いし、狭めても良い。
In the first, fourth, and fifth embodiments, the section determined to be a predetermined video pattern or an edge image may be further widened or narrowed.

【0255】尚、第1ないし第5の実施の形態におい
て、離散コサイン変換を施す単位とアクティビティを求
める単位は同じでも良いし、異なっても良い。
In the first to fifth embodiments, the unit for performing the discrete cosine transform and the unit for obtaining the activity may be the same or different.

【0256】尚、前記第1ないし第5の実施の形態にお
いて、映像信号のアクティビティとして画面(1フレー
ム又は1フィールド)内の画素レベルの相関量を求めて
も良く、また画面間の画素レベルの相関量を求めてもよ
く、更にはこれ等の両方を求めてもよい。
In the first to fifth embodiments, the amount of correlation between pixel levels in a screen (one frame or one field) may be obtained as the activity of a video signal. The correlation amount may be obtained, or both of them may be obtained.

【0257】更に、第1ないし第5の実施の形態におい
て、アクティビティ算出器112、212、312、4
12、512の算出方法の一例を次に述べる。ここで
は、例えば、アクティビティとして、画素の画素レベル
の分散を求める。画素レベルの分散は、N個の画素レベ
ルをX(1)、X(2)、…、X(N)とすると、下記
式10のように計算される。尚、式10のMは次式11
で計算されるN個の画素レベルの平均値を示す。また、
Pはアクティビティを計算する所定領域の画素数であ
る。
Further, in the first to fifth embodiments, the activity calculators 112, 212, 312, 4
An example of the calculation method of 12, 512 will be described below. Here, for example, the variance at the pixel level of the pixel is obtained as the activity. The variance of the pixel level is calculated as in the following Expression 10, where N pixel levels are X (1), X (2),..., X (N). Note that M in Equation 10 is the following Equation 11
Shows the average value of the N pixel levels calculated by. Also,
P is the number of pixels in a predetermined area for calculating the activity.

【0258】 前記アクティビティの算出は、画素レベルの分散に限ら
ず、隣接する画素レベルの差分量の和、又は平均値との
差若しくは和でもよい。また、画素レベルの当該区間の
平均値や最大値でも良いし、メディアン(中央値)、最
小値、統計的に最も頻度の高いもの等、当該区間の画素
レベルの変化が測定できるものであれば、何れでも良
い。
[0258] The calculation of the activity is not limited to the variance at the pixel level, but may be the sum of the differences between adjacent pixel levels, or the difference or the sum from the average value. In addition, an average value or a maximum value of the section of the pixel level may be used, or a median (median value), a minimum value, a statistically most frequent one, and the like, in which a change in the pixel level of the section can be measured. , Any may be sufficient.

【0259】加えて、アクティビティの平均値を求める
区間は、アクティビティを求める所定領域と同じ大きさ
でもよいし、所定領域よりも大きな領域、例えば16x
16の画素領域が30個単位でもよいし、1フレーム単
位でも、1フィールド単位でも、何れでもよい。
In addition, the section for obtaining the average value of the activity may be the same size as the predetermined area for obtaining the activity, or an area larger than the predetermined area, for example, 16 ×
The 16 pixel regions may be in units of 30 pixels, in units of one frame, or in units of one field.

【0260】また、第1ないし第5の実施の形態におい
て、アクティビティの算出は、1フレーム又は1フィー
ルドを複数の画素に分割した単位で行ってもよく、ま
た、1フレーム又は1フィールド単位、又は複数画面の
単位の何れでも良い。
In the first to fifth embodiments, the activity may be calculated in units of one frame or one field divided into a plurality of pixels, or one frame or one field, or Any of a plurality of screen units may be used.

【0261】[0261]

【発明の効果】以上説明したように、請求項1及びこれ
に従属する請求項記載の発明の映像符号化装置によれ
ば、少なくとも入力映像信号が所定映像パターンの場合
には、アクティビティとは無関係に決定された量子化幅
を用いて可変長符号化処理を行うので、少なくとも入力
映像信号が字幕画面等の所定映像パターンの場合には、
従来のようにギザギザに、又は部分的にエッジがほげた
映像とはならない良好な映像が得られる。
As described above, according to the video encoding apparatus of the present invention described in claim 1 and the dependent claims, at least when the input video signal is a predetermined video pattern, it is irrelevant to the activity. Since the variable length encoding process is performed using the quantization width determined in the above, at least when the input video signal is a predetermined video pattern such as a subtitle screen,
It is possible to obtain a good image that does not become a jagged or partially blurred image as in the related art.

【0262】また、請求項2及びこれに従属する請求項
記載の発明の映像符号化装置によれば、入力されたタイ
ムコードが所定映像パターンを指定している場合には、
アクティビティとは無関係に決定された量子化幅を用い
て可変長符号化処理を行うので、前記と同様に、少なく
とも入力映像信号が字幕画面等の所定映像パターンの場
合には、従来のようにギザギザに、又は部分的にエッジ
がほげた映像とはならない良好な映像が得られる。
Further, according to the video encoding apparatus of the invention described in claim 2 and the dependent claims, when the input time code specifies a predetermined video pattern,
Since the variable length encoding process is performed using the quantization width determined independently of the activity, as described above, if at least the input video signal is a predetermined video pattern such as a subtitle screen, the conventional jagged pattern is used. Or a good image which does not become an image in which the edges are frayed partially.

【0263】更に、請求項3及びこれに従属する請求項
記載の発明の映像符号化装置によれば、映像を見ている
人等が字幕画面等の所定映像シーンで外部割り込み信号
を発生させれば、この発生期間で、アクティビティとは
無関係に決定された量子化幅を用いて可変長符号化処理
を行うので、この字幕画面等の所定映像シーンでは、従
来のようにギザギザに、又は部分的にエッジがほげた映
像とはならない良好な映像が得られる。
Further, according to the video encoding apparatus of the invention described in claim 3 and the dependent claims, a person or the like watching a video can generate an external interrupt signal in a predetermined video scene such as a subtitle screen. For example, during this occurrence period, the variable-length encoding process is performed using the quantization width determined independently of the activity. Therefore, in a predetermined video scene such as a subtitle screen, the image is jagged or partially cut as in the related art. A good image that does not become an image with a sharp edge can be obtained.

【0264】加えて、請求項4及びこれに従属する請求
項記載の発明の映像符号化装置によれば、エッジを多く
含む映像信号では、アクティビティとは無関係に決定さ
れた量子化幅を用いて可変長符号化処理を行うので、こ
のエッジを多く含む字幕画面等の映像シーンでは、従来
のようにギザギザに、又は部分的にエッジがほげた映像
とはならない良好な映像が得られる。
In addition, according to the video encoding apparatus of the invention described in claim 4 and the dependent claims, in a video signal including many edges, the quantization width determined independently of the activity is used. Since the variable-length encoding process is performed, in a video scene such as a subtitle screen including many edges, a good image that does not become a jagged or partially blurred edge as in the related art can be obtained.

【0265】更に加えて、請求項5及びこれに従属する
請求項記載の発明の映像符号化装置によれば、アクティ
ビティの分布により画像の複雑度を判別し、絵柄が複雑
な字幕画像等のエッジを含む画像では、アクティビティ
とは無関係に決定された量子化幅を用いて可変長符号化
処理を行うので、従来のようにギザギザに、又は部分的
にエッジがほげた画像とはならない良好な字幕画像等の
画像が得られる。
In addition, according to the video encoding apparatus of the invention described in claim 5 and the dependent claims, the complexity of the image is determined based on the distribution of the activity, and the edge of a subtitle image or the like having a complicated picture is determined. For images containing, the variable-length encoding process is performed using the quantization width determined independently of the activity, so good subtitles that do not become jagged or partially edge-blown images as in the past An image such as an image is obtained.

【0266】特に、請求項7記載の発明の映像符号化装
置によれば、アクティビティを、入力映像信号の1フレ
ーム内又は1フィールド内の所定領域の画素レベルの相
関量を測定して検出したので、フレーム内の特徴を画像
の複雑度に反映できる。
In particular, according to the video encoding apparatus of the present invention, the activity is detected by measuring the pixel level correlation amount of a predetermined area in one frame or one field of the input video signal. And the features in the frame can be reflected in the complexity of the image.

【0267】また、請求項8記載の発明の映像符号化装
置では、アクティビティを、入力映像信号のフレーム間
又はフィールド間の所定領域の画素レベルの相関量を測
定して検出したので、フレーム間の特徴を画像の複雑度
に反映できる。
In the video encoding apparatus according to the present invention, the activity is detected by measuring the pixel level correlation in a predetermined area between frames or fields of the input video signal. Features can be reflected in the complexity of the image.

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

【図1】本発明の第1の実施の形態における映像符号化
装置の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a video encoding device according to a first embodiment of the present invention.

【図2】本発明の第2の実施の形態における映像符号化
装置の構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a video encoding device according to a second embodiment of the present invention.

【図3】本発明の第3の実施の形態における映像符号化
装置の構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a video encoding device according to a third embodiment of the present invention.

【図4】本発明の第4の実施の形態における映像符号化
装置の構成を示すブロック図である。
FIG. 4 is a block diagram illustrating a configuration of a video encoding device according to a fourth embodiment of the present invention.

【図5】本発明の第5の実施の形態における映像符号化
装置の構成を示すブロック図である。
FIG. 5 is a block diagram illustrating a configuration of a video encoding device according to a fifth embodiment of the present invention.

【図6】本発明の第1の実施の形態における所定パター
ン検出器の第1の例の構成を示すブロック図である。
FIG. 6 is a block diagram illustrating a configuration of a first example of a predetermined pattern detector according to the first embodiment of the present invention.

【図7】所定映像パターン検出器の動作を説明するため
のアクティビティ分布を示す図である。
FIG. 7 is a diagram showing an activity distribution for explaining an operation of a predetermined video pattern detector.

【図8】所定映像パターン検出器の第2の例の構成を示
すブロック図である。
FIG. 8 is a block diagram showing a configuration of a second example of the predetermined image pattern detector.

【図9】所定映像パターンの輝度の分布図である。FIG. 9 is a distribution diagram of luminance of a predetermined video pattern.

【図10】所定映像パターン検出器の第3の例の構成を
示すブロック図である。
FIG. 10 is a block diagram showing a configuration of a third example of the predetermined image pattern detector.

【図11】所定映像パターンの輝度の分布図である。FIG. 11 is a distribution diagram of luminance of a predetermined video pattern.

【図12】所定映像パターン検出器の第4の例の構成を
示すブロック図である。
FIG. 12 is a block diagram showing a configuration of a fourth example of the predetermined image pattern detector.

【図13】エッジを持つ画像の輝度の変化の様子を示す
図である。
FIG. 13 is a diagram illustrating a change in luminance of an image having an edge.

【図14】エッジ検出器の第1の例の構成を示す図であ
る。
FIG. 14 is a diagram illustrating a configuration of a first example of an edge detector.

【図15】エッジの型の分類を示す図である。FIG. 15 is a diagram showing classification of edge types.

【図16】エッジ検出器の第2の例の構成を示す図であ
る。
FIG. 16 is a diagram showing a configuration of a second example of the edge detector.

【図17】離散コサイン変換後の係数とエッジの型との
関係を示す図である。
FIG. 17 is a diagram illustrating a relationship between coefficients after discrete cosine transform and types of edges.

【図18】エッジ検出器の第3の例の構成を示す図であ
る。
FIG. 18 is a diagram illustrating a configuration of a third example of the edge detector.

【図19】エッジ画像のアクティビティの分布を示す図
である。
FIG. 19 is a diagram showing a distribution of activities of an edge image.

【図20】エッジ画像検出器の第1の例の構成を示す図
である。
FIG. 20 is a diagram illustrating a configuration of a first example of an edge image detector.

【図21】エッジ画像でない画像のアクティビティの分
布を示す図である。
FIG. 21 is a diagram illustrating a distribution of activities of an image that is not an edge image.

【図22】隣接するアクティビティに対して大きな差を
持つアクティビティを説明する図である。
FIG. 22 is a diagram illustrating an activity having a large difference from an adjacent activity.

【図23】エッジ画像検出器の第2の例の構成を示す図
である。
FIG. 23 is a diagram illustrating a configuration of a second example of the edge image detector.

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

101 入力映像信号 102 ブロック分割器(ブロック分割手
段) 103 離散コサイン変換器 104 量子化器(量子化手段) 105 可変長符号化器 106 使用Qパラメータ 108 符号量測定器 110 符号量制御器 111 Qパラメータ 112 アクティビティ算出器(アクティ
ビティ算出手段) 113 Qパラメータ変調器 114 変調Qパラメータ 115 切り替え器(量子化幅決定手段) 116 所定映像パターン検出器(所定映
像パターン検出手段) 216 タイムコード 219 所定映像区間検出器(所定映像区
間検出手段) 316 外部割り込み信号 317 外部割り込み検出器(外部割り込
み検出手段) 416 エッジ検出器(エッジ検出手段) 516 エッジ画像検出器(エッジ画像検
出手段) 602 輝度成分・色成分分解器 605 画面内アクティビティ 606 所定領域アクティビティ 607 所定領域検出器 613 アクティビティ基準領域平均化器 615 アクティビティ差分値算出器 620 色成分種類調査器 625 判定結果統合器 626 所定パターン判定結果 627 切り替え器制御器 1005 輝度成分閾値判定器 1008、1212 分布判定器 1301 画面 1405 輝度成分差分器 1408 輝度成分差分判定器 1411 色成分メモリ 1412 色成分差分器 1415 色成分差分判定器 1417 エッジ輝度成分カウンタ 1418 輝度成分エッジ判定器 1420 エッジ色成分カウンタ 1421 色成分エッジ判定器 1604 所定領域ブロッキング器 1605 上面平均値計算器 1606 下面平均値計算器 1607 左面平均値計算器 1608 右面平均値計算器 1613 差分器 1618 水平型判定器 1805 離散コサイン変換器 1808 水平型エッジ判定器 1809 垂直型エッジ判定器 1810 斜め型エッジ判定器 2004 所定領域ブロッキング器 2005 アクティビティ検出器 2006 所定領域抽出器 2306 アクティビティメモリ 2307 隣接アクティビティ差分判定器
Reference Signs List 101 input video signal 102 block divider (block dividing means) 103 discrete cosine transformer 104 quantizer (quantizing means) 105 variable length encoder 106 used Q parameter 108 code amount measuring instrument 110 code amount controller 111 Q parameter 112 activity calculator (activity calculating means) 113 Q parameter modulator 114 modulation Q parameter 115 switch (quantization width determining means) 116 predetermined video pattern detector (predetermined video pattern detecting means) 216 time code 219 predetermined video section detector (Predetermined video section detection means) 316 external interrupt signal 317 external interrupt detector (external interrupt detection means) 416 edge detector (edge detection means) 516 edge image detector (edge image detection means) 602 luminance component / color component decomposition 605 Screen activity 606 Predetermined area activity 607 Predetermined area detector 613 Activity reference area averager 615 Activity difference value calculator 620 Color component type checker 625 Judgment result integrator 626 Predetermined pattern judgment result 627 Switching controller 1005 Luminance component Threshold judgment unit 1008, 1212 Distribution judgment unit 1301 Screen 1405 Luminance component difference unit 1408 Luminance component difference judgment unit 1411 Color component memory 1412 Color component difference unit 1415 Color component difference judgment unit 1417 Edge luminance component counter 1418 Luminance component edge judgment unit 1420 Edge Color component counter 1421 Color component edge determiner 1604 Predetermined area blocking device 1605 Upper surface average calculator 1606 Lower surface average calculator 1607 Left surface average calculator 1608 Right side average value calculator 1613 Difference unit 1618 Horizontal type decision unit 1805 Discrete cosine transform unit 1808 Horizontal type edge decision unit 1809 Vertical type edge decision unit 1810 Oblique type edge decision unit 2004 Predetermined area blocking unit 2005 Activity detector 2006 Predetermined area extraction unit 2306 Activity memory 2307 Adjacent activity difference determiner

Claims (22)

【特許請求の範囲】[Claims] 【請求項1】 入力映像信号を圧縮符号化する映像符号
化装置であって、 前記入力映像信号が所定映像パターンであるか否かを検
出する所定映像パターン検出手段と、 前記入力映像信号を複数画素から成るブロック映像信号
に分割するブロック分割手段と、 前記ブロック分割手段のブロック映像信号を入力し、こ
れ等のブロック映像信号間のアクティビティを算出する
アクティビティ算出手段と、 前記所定映像パターン検出手段の出力を入力し、少なく
とも前記入力映像信号が前記所定映像パターンである場
合には前記アクティビティとは無関係に量子化幅を決定
する一方、前記所定映像パターンでない場合には前記ア
クティビティ算出手段により算出されたアクティビティ
に応じて量子化幅を決定する量子化幅決定手段と、 前記量子化幅決定手段により決定された量子化幅で前記
ブロック映像信号を量子化する量子化手段とを具備し、 前記量子化手段の出力を可変長符号化して、圧縮符号化
列を出力することを特徴とする映像符号化装置。
1. A video encoding apparatus for compressing and encoding an input video signal, comprising: a predetermined video pattern detecting means for detecting whether the input video signal is a predetermined video pattern; A block dividing unit that divides the block video signal into pixels; an activity calculating unit that inputs a block video signal of the block dividing unit and calculates an activity between these block video signals; An output is input, and when at least the input video signal is the predetermined video pattern, the quantization width is determined independently of the activity, whereas when the input video signal is not the predetermined video pattern, the quantization width is calculated by the activity calculation unit. Quantization width determining means for determining a quantization width according to an activity; Quantizing means for quantizing the block video signal with a quantization width determined by the setting means, wherein the output of the quantizing means is subjected to variable-length encoding to output a compressed encoded sequence. Video encoding device.
【請求項2】 入力映像信号を圧縮符号化する映像符号
化装置であって、 前記入力映像信号と同期したタイムコードが入力され、 前記タイムコードが、外部から指定された所定映像区間
を示すか否かを検出する所定映像区間検出手段と、 前記入力映像信号を複数画素から成るブロック映像信号
に分割するブロック分割手段と、 前記ブロック分割手段のブロック映像信号を入力し、こ
れ等のブロック映像信号間のアクティビティを算出する
アクティビティ算出手段と、 前記所定映像区間検出手段の出力を入力し、前記入力映
像信号が前記所定映像区間である場合には前記アクティ
ビティとは無関係に量子化幅を決定する一方、前記所定
映像区間でない場合には前記アクティビティ算出手段に
より算出されたアクティビティに応じて量子化幅を決定
する量子化幅決定手段と、 前記量子化幅決定手段により決定された量子化幅で前記
ブロック映像信号を量子化する量子化手段とを具備し、 前記量子化手段でされた信号を可変長符号化して、圧縮
符号化列を出力することを特徴とする映像符号化装置。
2. A video encoding apparatus for compressing and encoding an input video signal, wherein a time code synchronized with the input video signal is input, and wherein the time code indicates a predetermined video section specified from outside. A predetermined video section detecting means for detecting whether or not the block video signal is input; a block video signal for dividing the input video signal into block video signals comprising a plurality of pixels; An activity calculating unit for calculating an activity between the input unit and an output of the predetermined video section detection unit, and when the input video signal is the predetermined video section, a quantization width is determined independently of the activity. If it is not the predetermined video section, the quantization width is set according to the activity calculated by the activity calculating means. And a quantizing unit for quantizing the block video signal with the quantization width determined by the quantizing width determining unit, wherein the signal generated by the quantizing unit is variable-length. A video encoding device that encodes and outputs a compressed encoded sequence.
【請求項3】 入力映像信号を圧縮符号化する映像符号
化装置であって、 外部割り込み信号が入力され、 前記外部割り込み信号の入力の有無を検出する外部割り
込み検出手段と、 前記入力映像信号を複数の画素から成るブロック映像信
号に分割するブロック分割手段と、 前記ブロック分割手段のブロック映像信号を入力し、こ
れ等のブロック映像信号間のアクティビティを算出する
アクティビティ算出手段と、 前記外部割り込み検出手段の出力を入力し、少なくとも
前記入力映像信号が前記外部割り込み信号の入力が有る
区間では前記アクティビティとは無関係に量子化幅を決
定する一方、前記外部割り込み信号の入力が無い区間で
は前記アクティビティ算出手段により算出されたアクテ
ィビティに応じて量子化幅を決定する量子化幅決定手段
と、 前記量子化幅決定手段で決定された量子化幅で前記ブロ
ック映像信号を量子化する量子化手段とを具備し、 前記量子化手段でされた信号を可変長符号化して、圧縮
符号化列を出力することを特徴とする映像符号化装置。
3. A video encoding device for compressing and encoding an input video signal, comprising: an external interrupt signal input; an external interrupt detection means for detecting whether or not the external interrupt signal is input; A block dividing unit for dividing into block video signals composed of a plurality of pixels; an activity calculating unit for inputting a block video signal of the block dividing unit and calculating an activity between these block video signals; and the external interrupt detecting unit And the quantization width is determined independently of the activity in at least the section where the input video signal has the input of the external interrupt signal, and the activity calculating means in the section where the external interrupt signal is not input. Quantization width determination that determines the quantization width according to the activity calculated by And a quantization means for quantizing the block video signal with the quantization width determined by the quantization width determination means, wherein the signal obtained by the quantization means is subjected to variable-length coding, A video encoding device for outputting a coded sequence.
【請求項4】 入力映像信号を圧縮符号化する映像符号
化装置であって、 前記入力映像信号を複数の画素から成るブロック映像信
号に分割するブロック分割手段と、 前記ブロック分割手段のブロック映像信号を入力し、こ
れ等のブロック映像信号間のアクティビティを算出する
アクティビティ算出手段と、 前記入力映像信号の所定領域のエッジの有無を検出する
エッジ検出手段と、 前記エッジ検出手段の出力に応じて、前記アクティビテ
ィとは無関係に量子化幅を決定し、又は前記アクティビ
ティ算出手段により算出されたアクティビティに応じて
量子化幅を決定する量子化幅決定手段と、 前記量子化幅決定手段により決定された量子化幅で前記
ブロック映像信号を量子化する量子化手段とを具備し、 前記量子化手段の出力を可変長符号化して、圧縮符号化
列を出力することを特徴とする映像符号化装置。
4. A video encoding apparatus for compressing and encoding an input video signal, comprising: a block dividing unit for dividing the input video signal into a block video signal composed of a plurality of pixels; and a block video signal of the block dividing unit. And an activity calculating means for calculating the activity between these block video signals, an edge detecting means for detecting the presence or absence of an edge in a predetermined area of the input video signal, and an output of the edge detecting means, A quantization width determination unit that determines a quantization width independently of the activity, or determines a quantization width according to the activity calculated by the activity calculation unit; and a quantum determined by the quantization width determination unit. Quantizing means for quantizing the block video signal with a quantization width, wherein the output of the quantizing means is variable-length coded. And outputting a compressed coded sequence.
【請求項5】 入力映像信号を圧縮符号化する映像符号
化装置であって、 前記入力映像信号を複数の画素から成るブロック映像信
号に分割するブロック分割手段と、 前記ブロック分割手段のブロック映像信号を入力し、こ
れ等のブロック映像信号間のアクティビティを算出する
アクティビティ算出手段と、 前記アクティビティ算出手段により算出されたアクティ
ビティの分布に基いて、前記入力映像信号がエッジを含
む画像であるか否かを判定するエッジ画像検出手段と、 前記エッジ画像検出手段の出力を入力し、少なくとも前
記入力映像信号がエッジ画像であると判定された区間で
は前記アクティビティとは無関係に量子化幅を決定する
一方、エッジ画像ではないと判定された区間では前記ア
クティビティ算出手段により算出されたアクティビティ
に応じて量子化幅を決定する量子化幅決定手段と、 前記量子化幅決定手段により決定された量子化幅で前記
ブロック映像信号を量子化する量子化手段とを具備し、 前記量子化手段の出力を可変長符号化して、圧縮符号化
列を出力することを特徴とする映像符号化装置。
5. A video encoding device for compressing and encoding an input video signal, comprising: a block dividing unit for dividing the input video signal into a block video signal comprising a plurality of pixels; and a block video signal of the block dividing unit. And an activity calculating means for calculating an activity between these block video signals; and, based on a distribution of activities calculated by the activity calculating means, whether or not the input video signal is an image including an edge. Edge image detection means for determining, and input the output of the edge image detection means, and determine the quantization width independently of the activity in at least the section where the input video signal is determined to be an edge image, In the section determined not to be an edge image, the activity calculated by the activity calculating means is determined. A quantization width determining unit that determines a quantization width according to the activity; and a quantization unit that quantizes the block video signal with the quantization width determined by the quantization width determining unit. A video coding apparatus, wherein the output of the means is variable-length coded and a compressed coded sequence is output.
【請求項6】 前記量子化幅決定手段は、アクティビテ
ィとは無関係に量子化幅を決定する場合には、量子化幅
を、外部から指定された量子化幅に決定することを特徴
とする請求項1、請求項2、請求項3、請求項4又は請
求項5記載の映像符号化装置。
6. The quantization width determining means, when determining a quantization width irrespective of an activity, determines the quantization width to a quantization width specified from the outside. The video encoding apparatus according to claim 1, 2, 3, 4, or 5.
【請求項7】 前記アクティビティ算出手段は、前記入
力映像信号の1フレーム内又は1フィールド内の所定領
域の画素レベルの相関量を測定することを特徴とする請
求項1、請求項2、請求項3、請求項4又は請求項5記
載の映像符号化装置。
7. The apparatus according to claim 1, wherein said activity calculating means measures a pixel-level correlation amount of a predetermined area in one frame or one field of said input video signal. 3. The video encoding device according to claim 4 or claim 5.
【請求項8】 前記アクティビティ算出手段は、前記入
力映像信号のフレーム間又はフィールド間の所定領域の
画素レベルの相関量を測定することを特徴とする請求項
1、請求項2、請求項3、請求項4又は請求項5記載の
映像符号化装置。
8. The apparatus according to claim 1, wherein said activity calculating means measures a pixel level correlation amount in a predetermined area between frames or fields of said input video signal. The video encoding device according to claim 4.
【請求項9】 前記所定映像パターン検出手段は、前記
入力映像信号の所定領域の色成分の種類が所定整数値K
よりも少ないことを検出することを特徴とする請求項1
記載の映像符号化装置。
9. The method according to claim 1, wherein the predetermined image pattern detecting means determines that a type of a color component in a predetermined area of the input video signal is a predetermined integer value K.
2. The method as claimed in claim 1, wherein the number is smaller than the number.
A video encoding device according to claim 1.
【請求項10】 前記所定映像パターン検出手段は、前
記入力映像信号の所定領域の輝度成分が所定閾値Xより
も大きな輝度成分を持つ画素の個数が所定整数値M以上
であることを検出することを特徴とする請求項1記載の
映像符号化装置。
10. The predetermined video pattern detection means detects that the number of pixels whose luminance component in a predetermined area of the input video signal has a luminance component larger than a predetermined threshold X is equal to or larger than a predetermined integer value M. The video encoding device according to claim 1, wherein:
【請求項11】 前記所定映像パターン検出手段は、所
定領域の輝度成分が所定数G1を越える画素の数が所定
整数値N1以上であり、且つ所定数G2よりも小さい画
素の個数が所定整数値N2以上であることを検出するこ
とを特徴とする請求項1記載の映像符号化装置。
11. The predetermined image pattern detecting means determines that the number of pixels whose luminance component exceeds a predetermined number G1 in a predetermined area is equal to or greater than a predetermined integer value N1 and the number of pixels smaller than the predetermined number G2 is a predetermined integer value. 2. The video encoding apparatus according to claim 1, wherein the video encoding apparatus detects that the number is equal to or greater than N2.
【請求項12】 前記所定映像パターン検出手段は、前
記入力映像信号が字幕を含む映像であることを検出する
ことを特徴とする請求項1記載の映像符号化装置。
12. The video encoding apparatus according to claim 1, wherein the predetermined video pattern detection unit detects that the input video signal is a video including subtitles.
【請求項13】 前記所定映像パターン検出手段は、前
記入力映像信号がタイトル画面又はメニュー画面である
ことを検出することを特徴とする請求項1記載の映像符
号化装置。
13. The video encoding apparatus according to claim 1, wherein the predetermined video pattern detection unit detects that the input video signal is a title screen or a menu screen.
【請求項14】 前記所定映像パターン検出手段は、前
記入力映像信号がコンピューターグラフィックス画面を
含む映像であることを検出することを特徴とする請求項
1記載の映像符号化装置。
14. The video encoding apparatus according to claim 1, wherein the predetermined video pattern detection unit detects that the input video signal is a video including a computer graphics screen.
【請求項15】 前記所定映像パターン検出手段は、前
記入力映像信号がアニメーションを含む映像であること
を検出することを特徴とする請求項1記載の映像符号化
装置。
15. The video encoding apparatus according to claim 1, wherein the predetermined video pattern detection unit detects that the input video signal is a video including an animation.
【請求項16】 前記エッジ検出手段は、離散コサイン
変換後の係数の分布に基いてエッジの有無を検出するこ
とを特徴とする請求項4記載の映像符号化装置。
16. The video encoding apparatus according to claim 4, wherein said edge detecting means detects the presence or absence of an edge based on a distribution of coefficients after discrete cosine transform.
【請求項17】 前記量子化幅決定手段は、前記エッジ
検出手段によりエッジを持つと判定された領域の数が所
定領域内で所定閾値F以上である場合にはアクティビテ
ィとは無関係に量子化幅を決定し、所定閾値F未満であ
る場合はは前記アクティビティ算出手段により算出され
たアクティビティに応じて量子化幅を決定することを特
徴とする請求項4記載の映像符号化装置。
17. The quantization width determining means, if the number of areas determined to have an edge by the edge detecting means is equal to or greater than a predetermined threshold F within a predetermined area, regardless of the activity. 5. The video encoding device according to claim 4, wherein the quantization width is determined according to the activity calculated by the activity calculation means when the value is smaller than the predetermined threshold F.
【請求項18】 前記エッジ画像検出手段は、所定領域
において、前記アクティビティ算出手段により算出され
たアクティビティの分布が正規分布以外である場合にエ
ッジ画像であると検出することを特徴とする請求項5記
載の映像符号化装置。
18. The image processing apparatus according to claim 5, wherein the edge image detecting means detects an edge image when a distribution of the activity calculated by the activity calculating means is other than a normal distribution in a predetermined area. A video encoding device according to claim 1.
【請求項19】 前記エッジ画像検出手段は、所定領域
において、前記アクティビティ算出手段により算出され
たアクティビティの最大値と最小値との差が所定閾値X
以上である場合に、エッジ画像であると検出することを
特徴とする請求項5記載の映像符号化装置。
19. The edge image detecting means determines a difference between a maximum value and a minimum value of the activity calculated by the activity calculating means in a predetermined area by a predetermined threshold X.
6. The video encoding apparatus according to claim 5, wherein if the above is the case, the image is detected as an edge image.
【請求項20】 前記エッジ画像検出手段は、所定領域
において、前記アクティビティ算出手段により算出され
たアクティビティの最大値が所定閾値X1以上であり、
且つ最小値が所定閾値X2以下である場合に、エッジ画
像であると検出することを特徴とする請求項5記載の映
像符号化装置。
20. The edge image detecting means, wherein a maximum value of the activity calculated by the activity calculating means is equal to or more than a predetermined threshold X1 in a predetermined area,
6. The video encoding apparatus according to claim 5, wherein when the minimum value is equal to or less than the predetermined threshold value X2, the image is detected as an edge image.
【請求項21】 前記エッジ画像検出手段は、所定領域
において、所定閾値G1以上のアクティビティの個数が
所定整数値X1以上であり、且つ所定閾値G2未満のア
クティビティの個数が所定整数値X2以上である場合
に、エッジ画像であると検出することを特徴とする請求
項5記載の映像符号化装置。
21. The edge image detecting means, wherein, in a predetermined area, the number of activities having a predetermined threshold value G1 or more is a predetermined integer value X1 or more, and the number of activities less than the predetermined threshold value G2 is a predetermined integer value X2 or more. 6. The video encoding apparatus according to claim 5, wherein in such a case, the image is detected as an edge image.
【請求項22】 前記エッジ画像検出手段は、所定領域
において、1個のアクティビティとこのアクティビティ
に隣接するM(Mは1から8の整数)個のアクティビテ
ィとの各々の差が所定閾値Tを越えるものの数が所定数
Nを越える場合に、エッジ画像であると検出することを
特徴とする請求項5記載の映像符号化装置。
22. The edge image detecting means wherein a difference between one activity and M activities (M is an integer from 1 to 8) adjacent to the activity exceeds a predetermined threshold value T in a predetermined area. 6. The video encoding apparatus according to claim 5, wherein when the number of images exceeds a predetermined number N, the image is detected as an edge image.
JP17961096A 1996-07-09 1996-07-09 Video-encoding device Withdrawn JPH1028267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17961096A JPH1028267A (en) 1996-07-09 1996-07-09 Video-encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17961096A JPH1028267A (en) 1996-07-09 1996-07-09 Video-encoding device

Publications (1)

Publication Number Publication Date
JPH1028267A true JPH1028267A (en) 1998-01-27

Family

ID=16068768

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17961096A Withdrawn JPH1028267A (en) 1996-07-09 1996-07-09 Video-encoding device

Country Status (1)

Country Link
JP (1) JPH1028267A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003067748A (en) * 2001-08-28 2003-03-07 Kddi Corp Animation image exrtractor
EP1377071A1 (en) * 2001-03-28 2004-01-02 Sony Corporation Image processing device, image processing method, image processing program, and recording medium
JP2008004983A (en) * 2006-06-20 2008-01-10 Sony Corp Image processing apparatus and method, program, and recording medium
JP2008061122A (en) * 2006-09-01 2008-03-13 Sony Corp Control device, control method, encoder, and program
US7436890B2 (en) 2002-06-05 2008-10-14 Kddi R&D Laboratories, Inc. Quantization control system for video coding

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1377071A1 (en) * 2001-03-28 2004-01-02 Sony Corporation Image processing device, image processing method, image processing program, and recording medium
EP1377071A4 (en) * 2001-03-28 2010-12-22 Sony Corp Image processing device, image processing method, image processing program, and recording medium
US8411741B2 (en) 2001-03-28 2013-04-02 Sony Corporation Picture processing apparatus, picture processing method, picture processing program and recording medium
JP2003067748A (en) * 2001-08-28 2003-03-07 Kddi Corp Animation image exrtractor
US7436890B2 (en) 2002-06-05 2008-10-14 Kddi R&D Laboratories, Inc. Quantization control system for video coding
JP2008004983A (en) * 2006-06-20 2008-01-10 Sony Corp Image processing apparatus and method, program, and recording medium
JP2008061122A (en) * 2006-09-01 2008-03-13 Sony Corp Control device, control method, encoder, and program

Similar Documents

Publication Publication Date Title
US20220312021A1 (en) Analytics-modulated coding of surveillance video
US6959044B1 (en) Dynamic GOP system and method for digital video encoding
CA2216077C (en) Scene change detector for digital video
US6347117B1 (en) Apparatus and method for encoding images and medium in which image encoding program has been recorded
KR950005620B1 (en) Adaptive dct/dpcm video signal coding method
US5301032A (en) Digital image compression and decompression method and apparatus using variable-length coding
US8179961B2 (en) Method and apparatus for adapting a default encoding of a digital video signal during a scene change period
US6816617B2 (en) Motion vector searcher and motion vector search method as well as moving picture coding apparatus
US20060171457A1 (en) Rate control for digital video compression processing
US20100303150A1 (en) System and method for cartoon compression
KR0141082B1 (en) Apparatus for coding image signal with adaptive edge part
CN101253775A (en) Method and apparatus for encoding and decoding of video frequency error recovery
US6987808B2 (en) Transcoding method and transcoding apparatus
EP1449382A2 (en) Method and system for detecting intra-coded pictures and for extracting intra dct precision and macroblock-level coding parameter s from uncompressed digital video
JPH1028267A (en) Video-encoding device
US20030031377A1 (en) Apparatus and method for removing block artifacts, and displaying device having the same apparatus
US8472523B2 (en) Method and apparatus for detecting high level white noise in a sequence of video frames
JPH047989A (en) Picture signal encoding control system
KR100613732B1 (en) Image Compression System for Digital Video Surveillance and Method for controlling the Same
Yang et al. Rate-constrained motion estimation and perceptual coding
KR200309401Y1 (en) Image Compression System for Digital Video Surveillance
KR100268057B1 (en) Method for compressing image data by use of standard block
Sowmyayani et al. Frame differencing-based segmentation for low bit rate video codec using H. 264
Hui et al. An adaptive hybrid DPCM/DCT method for video coding
JPH07322246A (en) Moving image compression coder and method therefor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060404

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20060529