JPH1141570A - Multiplexing device and method therefor - Google Patents
Multiplexing device and method thereforInfo
- Publication number
- JPH1141570A JPH1141570A JP19094097A JP19094097A JPH1141570A JP H1141570 A JPH1141570 A JP H1141570A JP 19094097 A JP19094097 A JP 19094097A JP 19094097 A JP19094097 A JP 19094097A JP H1141570 A JPH1141570 A JP H1141570A
- Authority
- JP
- Japan
- Prior art keywords
- digital video
- video signal
- data
- parameter
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 85
- 238000012545 processing Methods 0.000 claims abstract description 129
- 238000001514 detection method Methods 0.000 claims description 28
- 230000001131 transforming effect Effects 0.000 claims 4
- 238000004364 calculation method Methods 0.000 abstract description 17
- 230000001186 cumulative effect Effects 0.000 abstract description 12
- 230000005540 biological transmission Effects 0.000 abstract description 11
- 230000015556 catabolic process Effects 0.000 abstract 1
- 238000006731 degradation reaction Methods 0.000 abstract 1
- 230000033001 locomotion Effects 0.000 description 45
- 230000000875 corresponding effect Effects 0.000 description 28
- 238000013139 quantization Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 102100022907 Acrosin-binding protein Human genes 0.000 description 8
- 230000000903 blocking effect Effects 0.000 description 8
- 238000006243 chemical reaction Methods 0.000 description 8
- 230000006866 deterioration Effects 0.000 description 6
- 230000001934 delay Effects 0.000 description 3
- 230000003111 delayed effect Effects 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 102100035167 Coiled-coil domain-containing protein 54 Human genes 0.000 description 1
- 101000756551 Homo sapiens Acrosin-binding protein Proteins 0.000 description 1
- 102100031798 Protein eva-1 homolog A Human genes 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Television Systems (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、多重化装置及び多
重化方法に関し、例えば衛星放送に適用することができ
る。本発明は、複数チャンネルのディジタル信号を符号
化処理した後、時分割多重化して伝送する際に、上限値
及び又は下限値の範囲で一定条件で発生するデータ量に
応じて各チャンネルに割り当てるデータ量を設定するこ
とにより、又は指定されたデータ量より一定条件下で発
生するデータ量を基準にして各チャンネルのデータ量を
設定することにより、各チャンネルの画質劣化を低減す
ることができるようにする。The present invention relates to a multiplexing apparatus and a multiplexing method, and can be applied to, for example, satellite broadcasting. According to the present invention, when a digital signal of a plurality of channels is subjected to encoding processing and then transmitted in a time-division multiplexed manner, data to be allocated to each channel according to the amount of data generated under certain conditions in the range of an upper limit and / or a lower limit By setting the amount, or by setting the data amount of each channel based on the amount of data generated under a certain condition from the specified data amount, it is possible to reduce the image quality deterioration of each channel. I do.
【0002】[0002]
【従来の技術】従来、衛星放送等においては、図11に
示すような多重化装置により、複数チャンネルの放送信
号をリアルタイムで多重化してアップリンクするように
なされている。2. Description of the Related Art Conventionally, in a satellite broadcast or the like, a multiplexing apparatus as shown in FIG. 11 multiplexes broadcast signals of a plurality of channels in real time to perform uplink.
【0003】すなわち多重化装置1において、エンコー
ダ2A〜2Cは、MPEG(MovingPicture Experts Gr
oup)のエンコーダにより構成され、それぞれ各放送チ
ャンネルを構成するディジタルビデオ信号をデータ圧縮
する。マルチプレクサ3は、これらエンコーダ2A〜2
Cより出力されるビットストリームDA〜DCを順次パ
ケット化することにより時分割多重化し、その結果得ら
れる多重化ビットストリームDMをトランスポンダに送
出する。That is, in the multiplexing apparatus 1, the encoders 2A to 2C use MPEG (Moving Picture Experts Gr.)
oup), and compresses data of digital video signals constituting each broadcast channel. Multiplexer 3 includes encoders 2A-2
The bit streams DA to DC output from C are time-division multiplexed by packetizing them sequentially, and the resulting multiplexed bit stream DM is sent to the transponder.
【0004】図12は、これらエンコーダ2A〜2Cの
映像信号処理系を示すブロック図である。なおエンコー
ダ2A〜2Cは、同一の構成でなることから、以下にお
いてはエンコーダ2Aについてのみ説明し、重複した説
明は省略する。FIG. 12 is a block diagram showing a video signal processing system of these encoders 2A to 2C. Since the encoders 2A to 2C have the same configuration, only the encoder 2A will be described below, and redundant description will be omitted.
【0005】このエンコーダ2Aにおいて、並べ替え回
路6は、時系列により順次入力するディジタルビデオ信
号SVAを受け、このディジタルビデオ信号SVAのフ
レームの順序を入れ換えて符号化の順序により出力す
る。すなわち並べ替え回路6は、ディジタルビデオ信号
SVAをGOP単位で区切って見たとき、各GOPでI
ピクチャーが先頭になるように順序を入れ換える。また
連続するフレーム間で対応する予測フレームが先に符号
化処理されるように各フレームの順序を入れ替える。In the encoder 2A, a reordering circuit 6 receives the digital video signals SVA sequentially input in a time series, rearranges the order of the frames of the digital video signals SVA, and outputs them in the order of encoding. That is, when the digital video signal SVA is divided into GOP units and viewed,
Rearrange the order so that the picture comes first. In addition, the order of each frame is switched so that the corresponding predicted frame is encoded first between consecutive frames.
【0006】続くブロック化回路7は、ディジタルビデ
オ信号を構成する画像データの順序を入れ替え、1フレ
ームを単位にしたラスタ走査の順序で連続する画像デー
タを、16×16画素のマクロブロックを単位にしたラ
スタ走査の順序により動き検出回路8、減算回路9に出
力する。[0006] The following blocking circuit 7 changes the order of the image data constituting the digital video signal, and converts continuous image data in the order of raster scanning in units of one frame in units of macroblocks of 16 × 16 pixels. The data is output to the motion detection circuit 8 and the subtraction circuit 9 according to the raster scanning order.
【0007】動き検出回路8は、例えばブロックマッチ
ングの手法により、動き補償回路10に保持された予測
フレームを用いて、ブロック化回路7より出力される画
像データの動きベクトルMVを検出する。このとき動き
検出回路8は、ブロック化回路7より出力される画像デ
ータに設定されたピクチャーに応じて、前予測、後予
測、双方向予測による動きベクトルMVを検出する。ま
たこのブロック化回路7より出力される画像データがI
ピクチャーの場合、動きベクトルMVの検出を中止す
る。The motion detecting circuit 8 detects the motion vector MV of the image data output from the blocking circuit 7 by using, for example, the prediction frame held in the motion compensating circuit 10 by a block matching technique. At this time, the motion detection circuit 8 detects a motion vector MV by pre-prediction, post-prediction, and bidirectional prediction according to the picture set in the image data output from the blocking circuit 7. The image data output from the blocking circuit 7 is I
In the case of a picture, the detection of the motion vector MV is stopped.
【0008】動き補償回路10は、動きベクトルMVに
応じたタイミングにより予測フレームの画像データを減
算回路9に出力する。このとき動き補償回路10は、減
算回路9に入力される画像データがIピクチャーの場
合、画像データの出力を中止する。これに対して減算回
路9に入力される画像データがBピクチャーの場合、動
きベクトルMVの検出結果に基づいて、前予測、後予測
又は双方向予測により予測フレームを設定する。The motion compensation circuit 10 outputs the image data of the predicted frame to the subtraction circuit 9 at a timing according to the motion vector MV. At this time, when the image data input to the subtraction circuit 9 is an I picture, the motion compensation circuit 10 stops outputting the image data. On the other hand, when the image data input to the subtraction circuit 9 is a B picture, a prediction frame is set by pre-prediction, post-prediction, or bidirectional prediction based on the detection result of the motion vector MV.
【0009】減算回路9は、ブロック化回路7より出力
される画像データから、動き補償回路10より出力され
る画像データを減算して出力する。これにより減算回路
9は、ブロック化回路7より出力される画像データがI
ピクチャーの場合、順次入力する画像データをそのまま
出力する。またこの画像データがP又はBピクチャーの
場合、動き補償した予測フレームとの差分データを出力
する。The subtraction circuit 9 subtracts the image data output from the motion compensation circuit 10 from the image data output from the blocking circuit 7 and outputs the result. Accordingly, the subtraction circuit 9 determines that the image data output from the blocking circuit 7 is I
In the case of a picture, the sequentially input image data is output as it is. When the image data is a P or B picture, difference data from a motion-compensated predicted frame is output.
【0010】ディスクリートコサイン変換回路(DC
T)11は、減算回路9より出力される画像データをマ
クロブロック単位でディスクリートコサイン変換処理す
る。さらにディスクリートコサイン変換回路11は、処
理結果でなる係数データを低次の係数より順次出力す
る。A discrete cosine conversion circuit (DC
T) 11 performs discrete cosine transform processing on the image data output from the subtraction circuit 9 in macroblock units. Further, the discrete cosine transform circuit 11 sequentially outputs coefficient data as a processing result, starting from a low-order coefficient.
【0011】量子化回路(Q)12は、符号量制御回路
13の制御により量子化テーブルを切り換えて、ディス
クリートコサイン変換回路11より出力される係数デー
タを順次量子化して出力する。逆量子化回路(IQ)1
4は、この量子化回路12の出力データを逆量子化し、
これにより伝送先で復号されてなる、量子化回路12の
入力データに対応する係数データを再現する。逆ディス
クリートコサイン変換回路(IDCT)16は、逆量子
化回路14の出力データを逆ディスクリートコサイン変
換処理し、これにより伝送先で復号されてなる、ディス
クリートコサイン変換回路11の入力データに対応する
画像データを再現する。The quantization circuit (Q) 12 switches the quantization table under the control of the code amount control circuit 13, and sequentially quantizes and outputs the coefficient data output from the discrete cosine transform circuit 11. Inverse quantization circuit (IQ) 1
4 dequantizes the output data of the quantization circuit 12,
As a result, the coefficient data corresponding to the input data of the quantization circuit 12 decoded at the transmission destination is reproduced. An inverse discrete cosine transform circuit (IDCT) 16 performs an inverse discrete cosine transform process on the output data of the inverse quantization circuit 14, thereby decoding the image data corresponding to the input data of the discrete cosine transform circuit 11 at the transmission destination. To reproduce.
【0012】加算回路17は、動き補償回路10より出
力される画像データと、逆ディスクリートコサイン変換
回路16より出力される画像データとを加算し、これに
より伝送先で復号されてなる、減算回路9の入力データ
に対応する画像データを再現する。さらに加算回路17
は、これら画像データが、他のフレームの予測フレーム
に設定されている場合、この画像データを動き補償回路
10に内蔵のフレームメモリに格納する。これら逆量子
化回路14から動き補償回路10までの一連の処理によ
り、エンコーダ2Aは、符号化処理、複合化処理におけ
る誤差が累積しないようにして、連続する画像データを
順次符号化処理する。The addition circuit 17 adds the image data output from the motion compensation circuit 10 and the image data output from the inverse discrete cosine conversion circuit 16 and thereby, the subtraction circuit 9 is decoded at the transmission destination. And reproduces image data corresponding to the input data. Further, the addition circuit 17
Stores these image data in a frame memory built in the motion compensation circuit 10 when these image data are set in a predicted frame of another frame. Through a series of processes from the inverse quantization circuit 14 to the motion compensation circuit 10, the encoder 2A sequentially encodes continuous image data so that errors in the encoding process and the decoding process are not accumulated.
【0013】可変長符号化回路(VLC)18は、量子
化回路12の出力データを可変長符号化処理して出力す
る。バッファ19は、この可変長符号化回路18の出力
データを所定の伝送速度により出力する。A variable length coding circuit (VLC) 18 performs variable length coding on output data of the quantization circuit 12 and outputs the result. The buffer 19 outputs the output data of the variable length coding circuit 18 at a predetermined transmission rate.
【0014】符号量制御回路13は、バッファ19を介
して符号化データDAの発生符号量を監視しながら、そ
れぞれ各放送チャンネルに割り当てられた目標符号量に
応じて、量子化回路12の量子化テーブルを切り換え、
これにより符号化処理により発生する符号量が目標符号
量になるように、量子化回路12の動作を制御する。こ
れにより従来の多重化装置1においては、各チャンネル
に割り当てた符号量によりディジタルビデオ信号を符号
化処理した後、多重化して伝送するようになされてい
る。The code amount control circuit 13 monitors the generated code amount of the coded data DA via the buffer 19, and controls the quantization of the quantization circuit 12 according to the target code amount assigned to each broadcast channel. Switch tables,
Thereby, the operation of the quantization circuit 12 is controlled so that the code amount generated by the encoding process becomes the target code amount. Thus, in the conventional multiplexing apparatus 1, a digital video signal is encoded according to the code amount assigned to each channel, and then multiplexed and transmitted.
【0015】[0015]
【発明が解決しようとする課題】ところで、このように
連続するフレーム間の相関を利用して符号化処理する場
合、場面が切り換わるシーンチェンジにあっては、動き
補償後のデータ量が増大する。また動きの激しいスポー
ツ番組等を伝送する場合にも、同様に、動き補償後のデ
ータ量が増大する。In the case where the encoding process is performed using the correlation between consecutive frames as described above, the data amount after motion compensation increases in a scene change in which a scene is switched. . Similarly, in the case of transmitting a sports program or the like in which the movement is intense, the data amount after the motion compensation similarly increases.
【0016】このような場合に、他の場面、番組と同様
に、各放送チャンネルに割り当てられたビットレートに
応じて量子化テーブルを設定し、一律な符号量によりこ
の種のビデオ信号を伝送すると、シーンチェンジ、動き
の激しい場面で画質が劣化する。In such a case, as in other scenes and programs, a quantization table is set according to the bit rate assigned to each broadcast channel, and this kind of video signal is transmitted with a uniform code amount. The image quality is degraded in scenes where scene changes and intense movement occur.
【0017】本発明は以上の点を考慮してなされたもの
で、各チャンネルの画質劣化を低減することができる多
重化装置及び多重化方法を提案しようとするものであ
る。The present invention has been made in view of the above points, and it is an object of the present invention to propose a multiplexing apparatus and a multiplexing method capable of reducing image quality deterioration of each channel.
【0018】[0018]
【課題を解決するための手段】かかる課題を解決するた
め本発明においては、多重化装置又は多重化方法におい
て、一定の条件による符号化処理により発生する符号化
データのデータ量に対応するパラメータを検出し、上限
値及び又は下限値の範囲で、多重化データにおける各チ
ャンネルの符号化データのデータ量がパラメータに対応
するデータ量になるように、符号化手段による符号化処
理を制御する。According to the present invention, there is provided a multiplexing apparatus or a multiplexing method in which a parameter corresponding to a data amount of encoded data generated by an encoding process under a predetermined condition is set. Detecting and controlling the encoding process by the encoding means so that the data amount of the encoded data of each channel in the multiplexed data becomes the data amount corresponding to the parameter within the range of the upper limit value and / or the lower limit value.
【0019】また同様に多重化装置又は多重化方法にお
いて、各チャンネルに設定された基準のデータ量をパラ
メータにより補正して各チャンネルの目標データ量を設
定し、多重化データにおける各チャンネルの符号化デー
タのデータ量がこの目標データ量になるように、符号化
手段による符号化処理を制御する。Similarly, in the multiplexing apparatus or the multiplexing method, the reference data amount set for each channel is corrected by a parameter to set the target data amount of each channel, and the encoding of each channel in the multiplexed data is performed. The encoding process by the encoding means is controlled so that the data amount of the data becomes the target data amount.
【0020】一定の条件による符号化処理により発生す
る符号化データのデータ量に対応するパラメータを検出
し、上限値及び又は下限値の範囲で、多重化データにお
ける各チャンネルの符号化データのデータ量がパラメー
タに対応するデータ量になるように符号化処理を制御す
れば、上限値及び又は下限値による制限範囲で、多重化
データのデータ量を適切に配分することができる。これ
により例えばディジタルビデオ信号を伝送する場合に
は、上限値及び又は下限値による画質を保障しつつ、デ
ィジタルビデオ信号の変化に対応してデータ量を変化さ
せて、画質を改善することができる。A parameter corresponding to the data amount of the encoded data generated by the encoding process under a certain condition is detected, and the data amount of the encoded data of each channel in the multiplexed data within the range of the upper limit and / or the lower limit. If the encoding process is controlled such that is equal to the data amount corresponding to the parameter, the data amount of the multiplexed data can be appropriately distributed within the range limited by the upper limit and / or the lower limit. Thus, for example, in the case of transmitting a digital video signal, the image quality can be improved by guaranteeing the image quality by the upper limit value and / or the lower limit value and changing the data amount according to the change of the digital video signal.
【0021】またこれに代えて、各チャンネルに設定さ
れた基準のデータ量をパラメータにより補正して各チャ
ンネルの目標データ量を設定し、多重化データにおける
各チャンネルの符号化データのデータ量が目標データ量
になるように符号化処理を制御すれば、チャンネルに設
定した基準のデータ量を基準にして伝送に供するディジ
タル信号の変化に対応してデータ量を増減でき、これに
より例えば基準のデータ量による画質を保障しつつ、デ
ィジタルビデオ信号の変化に対応してデータ量を変化さ
せて、画質を改善することができる。Alternatively, the target data amount of each channel is set by correcting the reference data amount set for each channel by a parameter, and the data amount of the coded data of each channel in the multiplexed data is set to the target value. If the encoding process is controlled so as to achieve the data amount, the data amount can be increased or decreased in accordance with the change in the digital signal to be transmitted based on the reference data amount set for the channel. The image quality can be improved by changing the data amount in response to a change in the digital video signal while guaranteeing the image quality of the digital video signal.
【0022】[0022]
【発明の実施の形態】以下、適宜図面を参照しながら本
発明の実施の形態を詳述する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0023】(1)第1の実施の形態 図2は、本発明の第1の実施の形態に係る多重化装置を
示すブロック図である。この多重化装置20は、3チャ
ンネルのディジタルビデオ信号SVA〜SVCをMPE
Gに規定のフォーマットによりデータ圧縮した後、多重
化して伝送する。この多重化装置20において、符号化
回路21A、21B、21Cは、同一に構成され、それ
ぞれディジタルビデオ信号SVA〜SVCをMPEGに
規定のフォーマットによりデータ圧縮し、ビットストリ
ームDA、DB、DCを出力する。(1) First Embodiment FIG. 2 is a block diagram showing a multiplexing apparatus according to a first embodiment of the present invention. The multiplexer 20 converts the three-channel digital video signals SVA to SVC into MPEs.
After compressing the data according to the format specified in G, the data is multiplexed and transmitted. In the multiplexing device 20, the encoding circuits 21A, 21B, and 21C have the same configuration, compress data of the digital video signals SVA to SVC in a format prescribed by MPEG, and output bit streams DA, DB, and DC. .
【0024】すなわち符号化回路21A、21B、21
Cにおいて、パラメータ算出回路22A、22B、22
Cは、それぞれディジタルビデオ信号SVA〜SVCを
受け、各ディジタルビデオ信号SVA〜SVCの困難度
を算出するために必要なパラメータME、DC、IA
C、FLTを検出する。符号化回路21A、21B、2
1Cは、各パラメータ算出回路22A、22B、22C
を介して出力されるディジタルビデオ信号SVA〜SV
CをFIFO23A、23B、23Cを介してエンコー
ダ24A、24B、24Cに受け、ここでパラメータM
E、DC、IAC、FLTに基づいて中央処理ユニット
(CPU)25により設定されたレートによりディジタ
ルビデオ信号SVA〜SVCをデータ圧縮する。That is, the encoding circuits 21A, 21B, 21
In C, the parameter calculation circuits 22A, 22B, 22
C receives digital video signals SVA to SVC, respectively, and obtains parameters ME, DC, and IA necessary for calculating the degree of difficulty of each digital video signal SVA to SVC.
C, FLT is detected. Encoding circuits 21A, 21B, 2
1C is each parameter calculation circuit 22A, 22B, 22C
Video signals SVA to SV output through
C is received by the encoders 24A, 24B, 24C via the FIFOs 23A, 23B, 23C, where the parameter M
The digital video signals SVA to SVC are data-compressed at a rate set by the central processing unit (CPU) 25 based on E, DC, IAC, and FLT.
【0025】ここで困難度は、何ら発生ビット量を制限
することなくディジタルビデオ信号SVA〜SVCをそ
れぞれ符号化処理して発生するデータ量に対応する変数
であり、例えば図12について上述したエンコーダにお
いて、量子化テーブルを固定した状態で、それぞれディ
ジタルビデオ信号を供給して測定されるバッファ19の
出力データ量に対応する。Here, the difficulty is a variable corresponding to the amount of data generated by encoding each of the digital video signals SVA to SVC without limiting the amount of generated bits at all. For example, in the encoder described with reference to FIG. , With the quantization table fixed, respectively, and corresponds to the output data amount of the buffer 19 measured by supplying the digital video signal.
【0026】これに対してパラメータME、DC、IA
C、FLTは、それぞれディジタルビデオ信号より直接
検出可能な、困難度に対して高い相関を示すパラメータ
であり、一次式により困難度に近似可能なパラメータで
ある。従ってパラメータME、DC、IAC、FLT
は、それぞれが一定の条件によりディジタルビデオ信号
を符号化処理した際に発生する符号化データのデータ量
に対応するパラメータであり、困難度が直接的にデータ
量に対応するのに対し、これらのパラメータが間接的に
データ量に対応する点で相違する。On the other hand, parameters ME, DC, IA
C and FLT are parameters that can be directly detected from the digital video signal and show a high correlation with the degree of difficulty, and are parameters that can be approximated to the degree of difficulty by a linear expression. Therefore, the parameters ME, DC, IAC, FLT
Are parameters corresponding to the data amount of the encoded data generated when the digital video signal is subjected to the encoding process under certain conditions, and the degree of difficulty directly corresponds to the data amount. The difference is that the parameter indirectly corresponds to the data amount.
【0027】このうち第1のパラメータMEは、いわゆ
るME残差であり、輝度データについて、予測フレーム
を動きベクトル(mvx ,mvy )により動き補償して
対応するマクロブロックとの間で検出される差分信号の
絶対値の累積値である。かくするにつき、この第1のパ
ラメータMEは、ディジタルビデオ信号の輝度データに
ついて、動き補償して得られるフレーム間差分の累積値
であり、次式により表される。ここでfcurr(x,y)
(xs ≦x<xe ,ys ≦y<ye )は、該当するマク
ロブロックを、fref (x,y)は、予測フレームの対
応する領域を、xs 、xe 、ys 、ye は、マクロブロ
ックにおけるx及びy方向の範囲を示す。The first parameter ME is a so-called ME residual, and the luminance data is detected between the corresponding macroblock by performing motion compensation on the predicted frame using the motion vector (mv x , mv y ). Is the cumulative value of the absolute value of the difference signal. Thus, the first parameter ME is the cumulative value of the inter-frame difference obtained by performing motion compensation on the luminance data of the digital video signal, and is expressed by the following equation. Where f curr (x, y)
(X s ≦ x <x e , y s ≦ y <y e) is the corresponding macroblock, f ref (x, y) is the corresponding area of the predicted frame, x s, x e, y s , Y e indicate the range in the x and y directions of the macroblock.
【0028】[0028]
【数1】 (Equation 1)
【0029】かくするにつき、この第1のパラメータ
は、動き補償して得られるフレーム間差分の絶対値の累
積でなることにより、動きの激しい部分、シーンチェン
ジの場面で値が増大し、これによりフレーム間符号化処
理において、困難度、符号化処理による発生データ量と
高い相関を示すことになる。Since the first parameter is the accumulation of the absolute value of the inter-frame difference obtained by motion compensation, the first parameter increases in a portion where the movement is severe or a scene change. In the inter-frame encoding process, the degree of difficulty and the amount of data generated by the encoding process are highly correlated.
【0030】これに対して第2のパラメータDCは、フ
レーム毎に、輝度データを累積加算して検出され、次式
により表される。On the other hand, the second parameter DC is detected by accumulative addition of luminance data for each frame, and is represented by the following equation.
【0031】[0031]
【数2】 (Equation 2)
【0032】かくするにつきこの第2のパラメータDC
は、フレーム毎に、輝度データを累積加算して検出され
ることにより、輝度レベルの直流レベルを示すことにな
る。画像データにおいては、輝度レベルの直流レベルが
高い程、この直流レベルが損なわれると、視覚上画質が
劣化することになる。これによりエンコーダにおいて、
この第2のパラメータDCの値が大きな場合に、発生デ
ータ量を制限すると画質が劣化することになる。これに
より第2のパラメータDCは、フレーム内符号化処理に
おいて、困難度及び発生データ量と高い相関を示すこと
になる。Thus, this second parameter DC
Indicates the DC level of the luminance level by detecting the cumulative addition of the luminance data for each frame. In image data, as the DC level of the luminance level is higher, if the DC level is lost, the image quality is visually deteriorated. This allows the encoder to:
If the value of the generated data is limited when the value of the second parameter DC is large, the image quality deteriorates. As a result, the second parameter DC shows a high correlation with the degree of difficulty and the amount of generated data in the intra-frame encoding process.
【0033】これに対して第3のパラメータIACは、
マクロブロックにおける平均輝度レベルと輝度レベルと
のレベル差を絶対値化して累積したものであり、次式に
より表される。なおここでAVは、マクロブロックにお
ける平均輝度レベルを、Nは、マクロブロックにおける
輝度データの数を示す。On the other hand, the third parameter IAC is
The level difference between the average luminance level and the luminance level in the macro block is converted into an absolute value and accumulated, and is represented by the following equation. Here, AV indicates the average luminance level in the macroblock, and N indicates the number of luminance data in the macroblock.
【0034】[0034]
【数3】 (Equation 3)
【0035】かくするにつきこの第3のパラメータIA
Cは、マクロブロックにおける平均輝度レベルと輝度レ
ベルとのレベル差を絶対値化して累積したものであるこ
とから、輝度レベルの変化の激しいフレームで値が増大
し、このような画像においては、フレーム内符号化処理
によりディスクリートコサイン変換処理して高次の係数
データが有意の値を取るようになる。これによりこの第
3のパラメータIACは、フレーム内符号化処理におい
て、困難度及び発生データ量と高い相関を示すことにな
る。Thus, this third parameter IA
C is a value obtained by accumulating the level difference between the average luminance level and the luminance level in the macroblock by making the absolute value into an absolute value. Therefore, the value increases in a frame in which the luminance level changes drastically. The higher-order coefficient data takes a significant value by the discrete cosine transform processing by the inner encoding processing. As a result, the third parameter IAC shows a high correlation with the degree of difficulty and the amount of generated data in the intra-frame encoding process.
【0036】これに対して第4のパラメータFLTは、
1画面を斜め方向に見て、輝度レベルの変化が所定値よ
り小さな箇所をカウントしたものである。この実施の形
態では、1画面を2×2画素の小ブロックに分割し、各
ブロックにおいて斜め方向の画素間で差分値を検出する
ことにより2つの差分値を検出する。さらにこのように
して検出した差分値の何れかが、絶対値化して所定のレ
ベル以下のとき、このブロックをカウントする。On the other hand, the fourth parameter FLT is
When one screen is viewed in a diagonal direction, the points where the change in the luminance level is smaller than a predetermined value are counted. In this embodiment, one screen is divided into small blocks of 2 × 2 pixels, and two difference values are detected by detecting a difference value between pixels in an oblique direction in each block. When any of the difference values detected in this way is converted into an absolute value and is equal to or lower than a predetermined level, this block is counted.
【0037】かくするにつきこの第4のパラメータFL
Tは、1画面を斜め方向に見て、輝度レベルの変化の大
きさを示すことから、フレーム内符号化処理において、
困難度及び発生データ量と高い相関を示すことになる。Thus, the fourth parameter FL
T indicates the magnitude of the change in the brightness level when one screen is viewed obliquely, so that in the intra-frame encoding process,
This shows a high correlation with the degree of difficulty and the amount of generated data.
【0038】図3及び図4は、各符号化回路21Aを詳
細に示すブロック図である。なお符号化回路21B及び
21Cは、処理対象のディジタルビデオ信号が異なる点
を除いて符号化回路21Aと同一構成でなることによ
り、重複した説明は省略する。またこの図3及び図4に
示す構成において、図11及び図12について上述した
従来構成と同一の構成は、対応する符号を付して示し、
重複した説明は省略する。FIGS. 3 and 4 are block diagrams showing each encoding circuit 21A in detail. The encoding circuits 21B and 21C have the same configuration as that of the encoding circuit 21A except that the digital video signal to be processed is different, and thus redundant description is omitted. In the configurations shown in FIGS. 3 and 4, the same configurations as those of the conventional configuration described above with reference to FIGS.
Duplicate description is omitted.
【0039】符号化回路21Aにおいて、並べ替え回路
26は、時系列により順次入力するディジタルビデオ信
号SVAを受け、このディジタルビデオ信号SVAのフ
レームの順序を入れ換えて出力する。すなわち並べ替え
回路26は、ディジタルビデオ信号SVAをGOP単位
で区切って見たとき、各GOPでIピクチャーが先頭に
なるように順序を入れ換える。また連続するフレーム間
で対応する予測フレームが先に符号化処理されるように
各フレームの順序を入れ替える。In the encoding circuit 21A, the reordering circuit 26 receives the digital video signals SVA sequentially input in a time series, and outputs the digital video signals SVA by changing the frame order. That is, when the digital video signal SVA is divided into GOP units and viewed, the rearrangement circuit 26 rearranges the order so that the I picture is first in each GOP. In addition, the order of each frame is switched so that the corresponding predicted frame is encoded first between consecutive frames.
【0040】続くブロック化回路27は、ディジタルビ
デオ信号を構成する画像データの順序を入れ替え、1フ
レームを単位にしたラスタ走査の順序で連続する画像デ
ータを、16×16画素のマクロブロックを単位にした
ラスタ走査の順序により出力する。The block forming circuit 27 changes the order of the image data constituting the digital video signal, and converts the continuous image data in the raster scanning order in units of one frame in units of macroblocks of 16 × 16 pixels. Are output in the order of the raster scanning.
【0041】イントラAC検出回路28は、このブロッ
ク化回路27より出力されるディジタルビデオ信号SV
A1より、(3)式により説明した第3のパラメータ
(イントラAC)IACを計算する。すなわち図5に示
すように、イントラAC検出回路28は、加算回路29
及び遅延回路(D)30による累積加算器により、ディ
ジタルビデオ信号SVA1の輝度データをマクロブロッ
ク単位で累積加算する。The intra AC detection circuit 28 is a digital video signal SV output from the blocking circuit 27.
From A1, the third parameter (intra AC) IAC described by equation (3) is calculated. That is, as shown in FIG. 5, the intra AC detection circuit 28
The luminance data of the digital video signal SVA1 is cumulatively added for each macroblock by the accumulator of the delay circuit (D) 30.
【0042】ラッチ回路31は、マクロブロックが終了
するタイミングで加算回路29の出力データをラッチす
ることにより、加算回路29及び遅延回路30による累
積加算値をラッチする。このときラッチ回路31は、マ
クロブロックを構成する画素数の分だけ累積加算値をビ
ットシフトさせてラッチし、これによりマクロブロック
における平均輝度レベルAVを取り込む。続くラッチ回
路32は、このラッチ回路31に取り込んだ平均輝度レ
ベルを続くマクロブロックの期間、減算回路33に継続
して供給する。The latch circuit 31 latches the accumulated data by the adder 29 and the delay circuit 30 by latching the output data of the adder 29 at the timing when the macroblock ends. At this time, the latch circuit 31 bit-shifts and latches the cumulative addition value by the number of pixels constituting the macroblock, thereby taking in the average luminance level AV in the macroblock. The subsequent latch circuit 32 continuously supplies the average luminance level taken into the latch circuit 31 to the subtraction circuit 33 during the period of the subsequent macro block.
【0043】FIFO34は、減算回路29に入力され
るディジタルビデオ信号SVA1を所定期間遅延させ
て、対応するタイミングにより減算回路33に出力す
る。これにより減算回路33は、平均輝度レベルと輝度
レベルとのレベル差を順次出力する。The FIFO 34 delays the digital video signal SVA1 input to the subtraction circuit 29 by a predetermined period, and outputs the digital video signal SVA1 to the subtraction circuit 33 at a corresponding timing. Thus, the subtraction circuit 33 sequentially outputs the level difference between the average luminance level and the luminance level.
【0044】絶対値化回路(ABS)35は、この減算
回路33の出力データを絶対値化して出力する。加算回
路36及び遅延回路37は、累積加算器を構成し、絶対
値化回路35の出力データを累積加算してパラメータI
ACを検出する。なおこの実施の形態において、イント
ラAC検出回路28は、フレーム単位で、加算回路36
及び遅延回路37による累積加算器をリセットする。こ
れによりこの第3のパラメータIACを1フレーム分累
積して出力する。The absolute value conversion circuit (ABS) 35 converts the output data of the subtraction circuit 33 into an absolute value and outputs the data. The addition circuit 36 and the delay circuit 37 constitute a cumulative adder, and cumulatively add the output data of the absolute value conversion circuit 35 to obtain a parameter I.
Detect AC. In this embodiment, the intra AC detection circuit 28 is provided with an addition circuit 36 for each frame.
And reset the accumulator by the delay circuit 37. This accumulates and outputs the third parameter IAC for one frame.
【0045】フラットネス検出回路40は(図3)、デ
ィジタルビデオ信号SVA1より第4のパラメータFL
Tを検出して出力する。すなわち図6に示すように、フ
ラットネス検出回路40は、ディジタルビデオ信号SV
A1の輝度データをFIFO41に与え、ここで16画
素分に対応するタイミングだけ遅延させる。かくするに
つき16画素は、マクロブロックの1ラインを構成する
画素数である。遅延回路(D)42は、このFIFO4
1の入力データを1画素に対応するタイミングだけ遅延
させるのに対し、遅延回路43は、このFIFO41の
出力データを1画素に対応するタイミングだけ遅延させ
る。The flatness detection circuit 40 (FIG. 3) calculates the fourth parameter FL from the digital video signal SVA1.
T is detected and output. That is, as shown in FIG. 6, the flatness detection circuit 40 outputs the digital video signal SV
The luminance data of A1 is supplied to the FIFO 41, where it is delayed by a timing corresponding to 16 pixels. Thus, 16 pixels are the number of pixels constituting one line of the macro block. The delay circuit (D) 42
While one input data is delayed by a timing corresponding to one pixel, the delay circuit 43 delays the output data of the FIFO 41 by a timing corresponding to one pixel.
【0046】減算回路44は、遅延回路42の出力デー
タから遅延回路43の入力データを減算して出力し、減
算回路45は、遅延回路42の入力データから遅延回路
43の出力データを減算して出力する。これにより減算
回路44及び45は、2×2画素の領域において、それ
ぞれ斜め方向に隣接する輝度データ間の差分データを出
力する。The subtraction circuit 44 subtracts the input data of the delay circuit 43 from the output data of the delay circuit 42 and outputs the result. The subtraction circuit 45 subtracts the output data of the delay circuit 43 from the input data of the delay circuit 42. Output. As a result, the subtraction circuits 44 and 45 output difference data between luminance data adjacent in the diagonal direction in the 2 × 2 pixel area.
【0047】絶対値化回路(ABS)46は、減算回路
44の出力データを絶対値化して出力し、絶対値化回路
(ABS)47は、減算回路45の出力データを絶対値
化して出力する。最小値選択回路(MIN)48は、絶
対値化回路46及び47の出力データより値の小さな出
力データを選択して出力する。比較回路(CMP)49
は、最小値選択回路48の出力データがしきい値データ
THより小さな場合に値1の比較結果を出力する。The absolute value conversion circuit (ABS) 46 converts the output data of the subtraction circuit 44 into an absolute value and outputs the data, and the absolute value conversion circuit (ABS) 47 converts the output data of the subtraction circuit 45 into an absolute value and outputs it. . The minimum value selection circuit (MIN) 48 selects and outputs output data having a smaller value than the output data of the absolute value conversion circuits 46 and 47. Comparison circuit (CMP) 49
Outputs the comparison result of the value 1 when the output data of the minimum value selection circuit 48 is smaller than the threshold data TH.
【0048】加算回路50及び遅延回路51は、累積加
算器を構成し、比較回路49の出力データをフレーム単
位で累積加算し、第4のパラメータFLTを生成して出
力する。The adder circuit 50 and the delay circuit 51 constitute a cumulative adder, and cumulatively add the output data of the comparator circuit 49 on a frame-by-frame basis to generate and output a fourth parameter FLT.
【0049】累積加算器53は(図3)、加算回路及び
遅延回路により構成され、ディジタルビデオ信号SVA
1の輝度データをフレーム単位で累積加算して、第2の
パラメータDCを生成する。The accumulator 53 (FIG. 3) is composed of an addition circuit and a delay circuit, and the digital video signal SVA
The second parameter DC is generated by cumulatively adding the luminance data of each frame.
【0050】動き検出回路54は、ディジタルビデオ信
号SVA1を内蔵のフレームメモリに選択的に保持する
ことにより、予測フレームを保持する。かくするにつき
エンコーダにおいては、伝送に供した係数データを復号
して予測フレームを形成するのに対し、この動き検出回
路54においては、何ら符号化処理していない画像デー
タを予測フレームとして保持する点で相違することにな
る。The motion detection circuit 54 holds a predicted frame by selectively holding the digital video signal SVA1 in a built-in frame memory. Thus, while the encoder decodes the coefficient data provided for transmission to form a predicted frame, the motion detection circuit 54 holds image data that has not been encoded at all as a predicted frame. Will be different.
【0051】さらに動き検出回路54は、ブロックマッ
チングの手法を適用して、Pピクチャー、Bピクチャー
に設定されたマクロブロックについて、動きベクトルM
Vを検出して出力する。すなわち動き検出回路54は、
順次マクロブロックを単位にしたラスタ走査の順序で入
力する画像データを、動き検出範囲に対応する複数系統
の減算回路に入力する。さらにこの画像データに対して
動き検出範囲に対応する予測フレームの画像データを同
時並列的にこれらの減算回路に供給し、各減算回路より
得られる差分データをそれぞれマクロブロック単位で累
積する。さらに動き検出回路54は、これらの累積値の
最小値を検出し、最小値の得られた減算回路におけるデ
ィジタルビデオ信号SVA1と予測フレームとの関係よ
り動きベクトルMVを検出する。Further, the motion detection circuit 54 applies a block matching technique to calculate the motion vector M for the macroblock set in the P picture and the B picture.
V is detected and output. That is, the motion detection circuit 54
Image data input in the order of raster scanning in units of macroblocks is input to a plurality of subtraction circuits corresponding to the motion detection range. Further, the image data of the prediction frame corresponding to the motion detection range is supplied to these subtraction circuits simultaneously and in parallel with the image data, and the difference data obtained from each subtraction circuit is accumulated in macroblock units. Further, the motion detection circuit 54 detects the minimum value of these accumulated values, and detects the motion vector MV from the relationship between the digital video signal SVA1 and the predicted frame in the subtraction circuit from which the minimum value has been obtained.
【0052】さらに動き検出回路54は、このようにし
て検出した動きベクトルにおける差分データの累積値を
ME残差MEとして出力する。累積加算器55は、この
動き検出回路54よりマクロブロック単位で出力される
ME残差をフレーム単位で累積加算して出力する。Further, the motion detecting circuit 54 outputs the accumulated value of the difference data in the motion vector detected in this way as ME residual error ME. The accumulative adder 55 accumulatively adds the ME residual output from the motion detection circuit 54 in macroblock units in frame units and outputs the result.
【0053】FIFO56は、動き検出回路54で検出
された動きベクトルMVを所定期間遅延させることによ
り、対応するディジタルビデオ信号SVA1がエンコー
ダ24Aに入力されるタイミングで、この動きベクトル
MVをエンコーダ24Aに入力する。The FIFO 56 delays the motion vector MV detected by the motion detection circuit 54 by a predetermined period, and inputs the motion vector MV to the encoder 24A at the timing when the corresponding digital video signal SVA1 is input to the encoder 24A. I do.
【0054】FIFO23Aは、パラメータ算出回路2
2Aより出力されるディジタルビデオ信号SVA1を1
GOPの期間だけ遅延させてエンコーダ24Aに入力す
る。The FIFO 23A has a parameter calculation circuit 2
The digital video signal SVA1 output from 2A is set to 1
The signal is input to the encoder 24A after being delayed by the GOP period.
【0055】エンコーダ24Aは(図4)、このディジ
タルビデオ信号SVA1をMPEGに規定のフォーマッ
トにより符号化して出力する。かくするにつき符号化回
路21Aでは、パラメータ算出回路22Aにおいて、符
号化の順序で、さらにマクロブロック単位でディジタル
ビデオ信号SVA1の画像データが並べ替えられている
ことにより、エンコーダ24Aにおいては、図12につ
いて上述した並べ替え回路6、ブロック化回路7が省略
され、また動き検出回路8も省略されるようになされて
いる。これにより符号化回路21Aは、従来構成のエン
コーダに対してイントラAC検出回路28等の構成を付
加するだけの簡易な構成により作成できるようになされ
ている。The encoder 24A (FIG. 4) encodes this digital video signal SVA1 in a format prescribed by MPEG and outputs it. Thus, in the encoding circuit 21A, the image data of the digital video signal SVA1 is rearranged in the encoding order and in macroblock units in the parameter calculation circuit 22A. The arrangement circuit 6 and the blocking circuit 7 described above are omitted, and the motion detection circuit 8 is omitted. Thus, the encoding circuit 21A can be created by a simple configuration in which a configuration such as the intra AC detection circuit 28 is added to the encoder having the conventional configuration.
【0056】かくするにつきエンコーダ24Aは、ディ
スクリートコサイン変換回路11において、減算回路9
より得られる差分データ又は画像データをディスクリー
トコサイン変換処理し、その結果得られる係数データを
量子化回路12により量子化して出力する。このとき符
号量制御回路13により量子化テーブルが設定されるこ
とにより、エンコーダ24Aは、発生データ量が符号量
制御回路13に設定された目標符号量になるように係数
データを量子化処理し、この量子化処理した係数データ
を可変長符号化回路(VLC)18により可変長符号化
処理する。エンコーダ24Aは、このようにして生成し
た符号化データDAをバッファ19を介して出力する。To this end, the encoder 24A uses the subtraction circuit 9 in the discrete cosine conversion circuit 11.
The obtained differential data or image data is subjected to discrete cosine transform processing, and the resulting coefficient data is quantized by the quantization circuit 12 and output. At this time, by setting the quantization table by the code amount control circuit 13, the encoder 24A performs quantization processing on the coefficient data so that the generated data amount becomes the target code amount set in the code amount control circuit 13, The quantized coefficient data is subjected to a variable length encoding process by a variable length encoding circuit (VLC) 18. The encoder 24A outputs the encoded data DA generated in this way via the buffer 19.
【0057】図7は、パラメータME、IAC、DC、
FLTより目標データ量を設定する中央処理ユニット2
5(図2)の処理手順を示すフローチャートである。中
央処理ユニット25は、ディジタルビデオ信号SVA〜
SVCのGOP周期でこの処理手順を実行する。FIG. 7 shows parameters ME, IAC, DC,
Central processing unit 2 for setting target data amount from FLT
5 is a flowchart showing the procedure of FIG. 5 (FIG. 2). The central processing unit 25 converts the digital video signals SVA to
This processing procedure is executed in the SVC GOP cycle.
【0058】すなわち中央処理ユニット25は、ステッ
プSP1からステップSP2に移り、パラメータME、
IAC、DC、FLTを各符号化回路21A、21B、
21Cより入力した後、次式の演算処理を実行すること
により、これらパラメータME、IAC、DC、FLT
から各ディジタルビデオ信号SVA〜SVBの困難度D
A〜DCを計算する。That is, the central processing unit 25 proceeds from step SP1 to step SP2, and
The IAC, DC, and FLT are encoded by the respective encoding circuits 21A, 21B,
21C, the parameters ME, IAC, DC, FLT are calculated by executing the following arithmetic processing.
From the difficulty level D of each digital video signal SVA to SVB
Calculate A-DC.
【0059】[0059]
【数4】 (Equation 4)
【0060】なおここでA1〜A4、Bは、係数であ
り、ディジタルビデオ信号SVA〜SVCがIピクチャ
ーの場合、係数A2〜A4、Bが値0以外の有意な値に
セットされ、係数A1が値0にセットされる。またディ
ジタルビデオ信号SVA〜SVがPピクチャー、Bピク
チャーの場合、係数A1が値0にセットされ、係数A2
〜A3、係数Bが値0以外の有意な値にセットされる。
さらにこれら係数A1〜A4、Bにセットされる有意な
値は、種々のディジタルビデオ信号について検出した困
難度と各パラメータME、IAC、DC、FLTとの値
を1次式により近似して設定される。Here, A1 to A4 and B are coefficients. When the digital video signals SVA to SVC are I pictures, the coefficients A2 to A4 and B are set to significant values other than the value 0, and the coefficient A1 is Set to the value 0. When the digital video signals SVA to SV are P-pictures and B-pictures, the coefficient A1 is set to a value 0 and the coefficient A2
A3, coefficient B is set to a significant value other than the value 0.
Further, the significant values set in these coefficients A1 to A4, B are set by approximating the degree of difficulty detected for various digital video signals and the values of the parameters ME, IAC, DC, FLT by a linear expression. You.
【0061】このようにして各ディジタルビデオ信号S
VA〜SVの1フレーム分について困難度DA〜DCを
検出すると、中央処理ユニット25は、ステップSP3
に移り、困難度を累積加算値に加算する。なお中央処理
ユニット25は、この累積加算値をGOP周期でリセッ
トする。Thus, each digital video signal S
Upon detecting the difficulty levels DA to DC for one frame of VA to SV, the central processing unit 25 proceeds to step SP3.
Then, the difficulty level is added to the cumulative addition value. Note that the central processing unit 25 resets the cumulative addition value at the GOP cycle.
【0062】続いて中央処理ユニット25は、ステップ
SP4に移り、困難度を1GOP分累積したか否か判断
し、ここで否定結果が得られると、ステップSP2に戻
る。これにより中央処理ユニット25は、ステップSP
2−SP3−SP4−SP2の処理手順を繰り返し、1
GOP分困難度を累積すると、ステップSP4において
肯定結果が得られることにより、ステップSP5に移
る。Subsequently, the central processing unit 25 proceeds to step SP4 and determines whether or not the difficulty level has been accumulated for one GOP. If a negative result is obtained here, the processing returns to step SP2. As a result, the central processing unit 25 executes step SP
By repeating the processing procedure of 2-SP3-SP4-SP2, 1
When the degree of difficulty for the GOP is accumulated, a positive result is obtained in step SP4, and the process proceeds to step SP5.
【0063】このステップSP5において、中央処理ユ
ニット25は、目標符号量計算処理を実行することによ
り、各ディジタルビデオ信号の困難度の累積値より、各
ディジタルビデオ信号の1GOPについて、目標符号量
を計算する。続いて中央処理ユニット25は、ステップ
SP6に移り、この計算した目標符号量を各エンコーダ
24A〜24Cにセットした後、ステップSP2に移
り、続くGOPについて同様に目標符号量の計算を開始
する。In step SP5, the central processing unit 25 executes the target code amount calculation process to calculate the target code amount for one GOP of each digital video signal from the cumulative value of the difficulty of each digital video signal. I do. Subsequently, the central processing unit 25 proceeds to step SP6, sets the calculated target code amount in each of the encoders 24A to 24C, and then proceeds to step SP2 to similarly start calculating the target code amount for the subsequent GOP.
【0064】これにより中央処理ユニット25は、ディ
ジタルビデオ信号のGOPを単位にしてエンコーダ24
A〜24Cに目標符号量を設定し、多重化装置20にお
いては、この目標符号量により符号化処理された各ディ
ジタルビデオ信号を時分割多重化して伝送するようにな
されている。As a result, the central processing unit 25 converts the GOP of the digital video signal into a unit.
A target code amount is set to A to 24C, and the multiplexing device 20 is configured to time-division multiplex and transmit each digital video signal coded according to the target code amount.
【0065】図1は、目標符号量計算処理を示すフロー
チャートである。中央処理ユニット25は、2チャンネ
ルのディジタルビデオ信号について、事前に、伝送速度
の上限値及び下限値を受け付ける。また残る1チャンネ
ルのディジタルビデオ信号については、伝送速度の下限
値を受け付ける。この実施の形態では、ディジタルビデ
オ信号SVA〜SVCについて、それぞれ上限値uA、
uB及び下限値lA、lB、lCを受け付けているとす
る。FIG. 1 is a flowchart showing the target code amount calculation processing. The central processing unit 25 receives an upper limit value and a lower limit value of the transmission speed in advance for the two-channel digital video signal. For the remaining one-channel digital video signal, the lower limit of the transmission speed is accepted. In this embodiment, upper limit values uA,
It is assumed that uB and lower limits lA, lB, and lC have been received.
【0066】さらに中央処理ユニット25は、図7につ
いて上述した処理手順を実行する前に、次式の演算処理
を実行し、これら上限値uA、uB及び下限値lA、l
B、lC、マルチプレクサに許容される伝送速度Tを、
1GOPに許容される上限値UA、UB及び下限値L
A、LB、LC、マルチプレクサに許容される伝送速度
Mに変換する。なおここでNは、1GOPのフレーム数
である。Further, before executing the processing procedure described above with reference to FIG. 7, the central processing unit 25 executes the arithmetic processing of the following equation to determine the upper limit values uA and uB and the lower limit values lA and lA.
B, 1C, the transmission rate T allowed for the multiplexer,
Upper limits UA, UB and lower limit L allowed for one GOP
A, LB, LC, and the transmission rate M allowed by the multiplexer are converted. Here, N is the number of frames of one GOP.
【0067】[0067]
【数5】 (Equation 5)
【0068】[0068]
【数6】 (Equation 6)
【0069】[0069]
【数7】 (Equation 7)
【0070】[0070]
【数8】 (Equation 8)
【0071】[0071]
【数9】 (Equation 9)
【0072】[0072]
【数10】 (Equation 10)
【0073】具体的に、ディジタルビデオ信号SVA〜
SVCがNTSC方式で、Nが30フレーム、Tが10
〔Mbps〕の場合に、オペレータにより上限値uA=
2.5〔Mbps〕、uB=3.0〔Mbps〕、下限
値lA=1.8〔Mbps〕、lB=2.0〔Mbp
s〕、lC=4.5〔Mbps〕が設定された場合、各
GOPの上限値UA、UB、下限値LA、LBは、以下
の値となる。More specifically, digital video signals SVA-
SVC is NTSC system, N is 30 frames, T is 10
[Mbps], the operator sets the upper limit value uA =
2.5 [Mbps], uB = 3.0 [Mbps], lower limit lA = 1.8 [Mbps], lB = 2.0 [Mbp]
s] and 1C = 4.5 [Mbps], the upper limit values UA and UB and the lower limit values LA and LB of each GOP are as follows.
【0074】[0074]
【数11】 [Equation 11]
【0075】なお中央処理ユニット25は、このオペレ
ータによる設定の際に、次式の関係式を満足するか否か
判断し、この関係式を満足しない場合、オペレータに誤
入力を通知する。At the time of setting by the operator, the central processing unit 25 determines whether or not the following relational expression is satisfied. If the relational expression is not satisfied, the central processing unit 25 notifies the operator of an erroneous input.
【0076】[0076]
【数12】 (Equation 12)
【0077】このような演算処理を事前に実行した上で
中央処理ユニット25は、目標符号量計算処理におい
て、ステップSP10からステップSP11に移り、上
限値が設定されてなる1つのディジタルビデオ信号SV
Aについて、次式の演算処理を実行する。これにより困
難度DA〜DCに応じて全体の目標符号量を配分してこ
の1チャンネルのディジタルビデオ信号について目標符
号量EAを計算する。なおこの処理手順における困難度
DA〜DCは、GOP単位で累積された困難度である。After executing such arithmetic processing in advance, the central processing unit 25 moves from step SP10 to step SP11 in the target code amount calculation processing, and sets one digital video signal SV having an upper limit set.
For A, the following arithmetic processing is executed. As a result, the entire target code amount is allocated according to the degree of difficulty DA to DC, and the target code amount EA is calculated for the digital video signal of one channel. Note that the difficulty levels DA to DC in this processing procedure are the difficulty levels accumulated in GOP units.
【0078】[0078]
【数13】 (Equation 13)
【0079】これにより上述の具体例において、困難度
DA、DB、DCがそれぞれ10、20、30の場合、
次式の目標符号量EAが計算される。Thus, in the above specific example, when the difficulty levels DA, DB, and DC are 10, 20, and 30, respectively,
The target code amount EA of the following equation is calculated.
【0080】[0080]
【数14】 [Equation 14]
【0081】続いて中央処理ユニット25は、ステップ
SP12に移り、この計算した符号量EAと上限値U
A、符号量EAと下限値LAとを比較することにより、
符号量EAを上限値UA及び下限値LAにより制限する
ための分岐条件を判定する。Subsequently, the central processing unit 25 proceeds to step SP12, where the calculated code amount EA and the upper limit U
A, by comparing the code amount EA with the lower limit LA,
A branch condition for limiting the code amount EA by the upper limit value UA and the lower limit value LA is determined.
【0082】続いて中央処理ユニット25は、ステップ
SP13に移り、このステップSP12における比較結
果より、符号量EAが下限値LA以下か否か判断する。
ここで肯定結果が得られると、中央処理ユニット25
は、ステップSP14に移り、計算した符号量EAに代
えて、下限値LAを目標符号量EA1に設定した後、ス
テップSP15に移る。Subsequently, the central processing unit 25 proceeds to step SP13, and determines from the comparison result in step SP12 whether or not the code amount EA is equal to or smaller than the lower limit value LA.
If a positive result is obtained here, the central processing unit 25
Moves to step SP14, sets the lower limit value LA to the target code amount EA1 instead of the calculated code amount EA, and then moves to step SP15.
【0083】これに対してステップSP13において否
定結果が得られると、中央処理ユニット25は、ステッ
プSP16に移り、ここで符号量EAが下限値LAから
上限値UAの範囲か否か判断する。ここで肯定結果が得
られると、中央処理ユニット25は、ステップSP17
に移り、計算した符号量EAを目標符号量EA1にセッ
トした後、ステップSP15に移る。On the other hand, if a negative result is obtained in step SP13, the central processing unit 25 proceeds to step SP16, and determines whether or not the code amount EA is in the range from the lower limit LA to the upper limit UA. If a positive result is obtained here, the central processing unit 25 proceeds to step SP17.
After setting the calculated code amount EA to the target code amount EA1, the process moves to step SP15.
【0084】これに対してステップSP16において否
定結果が得られると、中央処理ユニット25は、ステッ
プSP18に移る。この場合符号量EAが上限値UAを
越えていることにより、計算した符号量EAに代えて、
上限値UAを目標符号量EA1にセットした後、ステッ
プSP15に移る。On the other hand, if a negative result is obtained in step SP16, the central processing unit 25 proceeds to step SP18. In this case, since the code amount EA exceeds the upper limit value UA, instead of the calculated code amount EA,
After setting the upper limit value UA to the target code amount EA1, the process moves to step SP15.
【0085】これらにより中央処理ユニット25は、ス
テップSP11において計算した符号量EAから次式に
より示すように目標符号量EA1を設定する。Thus, the central processing unit 25 sets the target code amount EA1 from the code amount EA calculated in step SP11 as shown by the following equation.
【0086】[0086]
【数15】 (Equation 15)
【0087】具体的に上述した例では、EA<LAの関
係が得られる得られることにより、中央処理ユニット2
5は、このディジタルビデオ信号SVAについては、目
標符号量EA1を下限値LAでなる1.8〔Mbps〕
に設定することになる。In the above-described example, the relationship of EA <LA is obtained, so that the central processing unit 2
5 is 1.8 [Mbps] in which the target code amount EA1 of the digital video signal SVA is the lower limit value LA.
Will be set to
【0088】続いて中央処理ユニット25は、ステップ
SP15に移り、上限値が設定されてなる残るディジタ
ルビデオ信号SVBについて目標符号量を計算する。こ
こで中央処理ユニット25は、次式の演算処理により、
ディジタルビデオ信号SVAに目標符号量EA1を割り
当てて残る符号量(M−EA1)を、残る2チャンネル
の困難度DB及びDCにより配分して目標符号量EBを
算出する。Subsequently, the central processing unit 25 proceeds to step SP15, and calculates a target code amount for the remaining digital video signal SVB having the upper limit set. Here, the central processing unit 25 calculates the following equation.
The target code amount EB1 is assigned to the digital video signal SVA, and the remaining code amount (M-EA1) is distributed by the remaining two channels of difficulty DB and DC to calculate the target code amount EB.
【0089】[0089]
【数16】 (Equation 16)
【0090】具体的に上述の例では、中央処理ユニット
25は、次式により示される目標符号量EBを算出する
ことになる。Specifically, in the above example, the central processing unit 25 calculates the target code amount EB represented by the following equation.
【0091】[0091]
【数17】 [Equation 17]
【0092】続いて中央処理ユニット25は、ステップ
SP19に移り、この計算した符号量EBと上限値U
B、符号量EBと下限値LBとを比較することにより、
符号量EBを上限値UB及び下限値LBにより制限する
ための分岐条件を判定する。Subsequently, the central processing unit 25 proceeds to step SP19, where the calculated code amount EB and the upper limit U
B, by comparing the code amount EB with the lower limit value LB,
A branch condition for limiting the code amount EB by the upper limit value UB and the lower limit value LB is determined.
【0093】続いて図8に示すように、中央処理ユニッ
ト25は、ステップSP20に移り、このステップSP
19における比較結果より、符号量EBが下限値LB以
下か否か判断する。ここで肯定結果が得られると、中央
処理ユニット25は、ステップSP21に移り、計算し
た符号量EBに代えて、下限値LBを目標符号量EB1
に設定した後、ステップSP22に移る。Subsequently, as shown in FIG. 8, the central processing unit 25 proceeds to step SP20,
From the comparison result in 19, it is determined whether or not the code amount EB is equal to or smaller than the lower limit value LB. If a positive result is obtained here, the central processing unit 25 proceeds to step SP21, and sets the lower limit value LB to the target code amount EB1 instead of the calculated code amount EB.
Then, the process proceeds to step SP22.
【0094】これに対してステップSP20において否
定結果が得られると、中央処理ユニット25は、ステッ
プSP23に移り、ここで符号量EBが下限値LBから
上限値UBの範囲か否か判断する。ここで肯定結果が得
られると、中央処理ユニット25は、ステップSP24
に移り、計算した符号量EBを目標符号量EB1にセッ
トした後、ステップSP22に移る。On the other hand, if a negative result is obtained in step SP20, the central processing unit 25 proceeds to step SP23, and determines whether or not the code amount EB is in the range from the lower limit value LB to the upper limit value UB. If a positive result is obtained here, the central processing unit 25 proceeds to step SP24.
Then, the calculated code amount EB is set to the target code amount EB1, and then the process proceeds to step SP22.
【0095】これに対してステップSP23において否
定結果が得られると、中央処理ユニット25は、ステッ
プSP25に移る。この場合符号量EBが上限値UBを
越えていることにより、計算した符号量EBに代えて、
上限値UBを目標符号量EB1にセットした後、ステッ
プSP22に移る。On the other hand, if a negative result is obtained in step SP23, the central processing unit 25 proceeds to step SP25. In this case, since the code amount EB exceeds the upper limit value UB, instead of the calculated code amount EB,
After setting the upper limit value UB to the target code amount EB1, the process moves to step SP22.
【0096】これらにより中央処理ユニット25は、ス
テップSP19において計算した符号量EBから次式に
より示すように目標符号量EB1を設定する。Thus, the central processing unit 25 sets the target code amount EB1 from the code amount EB calculated in step SP19 as shown by the following equation.
【0097】[0097]
【数18】 (Equation 18)
【0098】具体的に上述した例では、EB>UBの関
係が得られることにより、中央処理ユニット25は、こ
のディジタルビデオ信号SVBについては、目標符号量
EB1を上限値UBでなる3.0〔Mbps〕に設定す
ることになる。In the specific example described above, since the relationship of EB> UB is obtained, the central processing unit 25 sets the target code amount EB1 of this digital video signal SVB to the upper limit value UB of 3.0 [3.0]. Mbps].
【0099】このようにしてディジタルビデオ信号SV
Bについて目標符号量EBを設定すると、中央処理ユニ
ット25は、ステップSP22において残るディジタル
ビデオ信号SVCについて目標符号量を計算する。ここ
で中央処理ユニット25は、次式の演算処理により、デ
ィジタルビデオ信号SVA及びSVBに目標符号量EA
1及びEB1を割り当てて残る符号量(M−EA1−E
B1)を、残るチャンネルの目標符号量ECに設定す
る。Thus, the digital video signal SV
After setting the target code amount EB for B, the central processing unit 25 calculates the target code amount for the remaining digital video signal SVC in step SP22. Here, the central processing unit 25 applies the target code amount EA to the digital video signals SVA and SVB by the following arithmetic processing.
1 and EB1 are allocated and the remaining code amount (M-EA1-E
B1) is set to the target code amount EC of the remaining channels.
【0100】[0100]
【数19】 [Equation 19]
【0101】具体的に上述の例では、次式により示され
る目標符号量ECが設定されることになる。In the above example, the target code amount EC represented by the following equation is set.
【0102】[0102]
【数20】 (Equation 20)
【0103】続いて中央処理ユニット25は、ステップ
SP26に移り、計算した目標符号量EA1、EB1、
ECにより、エンコーダ24A、24B、24Cに対応
するパラメータNA、NB、BCをセットした後、ステ
ップSP27に移って元の処理ルーチンに戻る。Subsequently, the central processing unit 25 proceeds to step SP26, and calculates the calculated target code amounts EA1, EB1,.
After the EC sets the parameters NA, NB, and BC corresponding to the encoders 24A, 24B, and 24C, the process proceeds to step SP27 and returns to the original processing routine.
【0104】以上の構成において、多重化装置20にお
いて、ディジタルビデオ信号SVA、SVB、SVCは
(図2及び図3)、パラメータ算出回路22A、22
B、22Cにおいて、所定の符号化の条件による発生符
号量に対応するパラメータME、DC、IAC、FLT
が順次フレーム単位で検出される。In the above configuration, in the multiplexer 20, the digital video signals SVA, SVB, and SVC (FIGS. 2 and 3) are converted into parameter calculation circuits 22A and 22.
B, 22C, parameters ME, DC, IAC, FLT corresponding to the amount of generated code under predetermined coding conditions
Are sequentially detected in frame units.
【0105】すなわち動き検出回路54より得られる差
分データが累積加算器55において累積加算され、いわ
ゆるME残差により第1のパラメータMEが検出され
る。また累積加算器53において、輝度データを累積加
算して第2のパラメータDCが検出される。さらにイン
トラAC検出回路28において、マクロブロックの平均
輝度レベルと輝度レベルとのレベル差が絶対値化されて
累積され、第3のパラメータIACが検出される。さら
にフラットネス検出回路40において、1画面を斜め方
向に見て、輝度レベルの変化が所定値より小さな箇所が
カウントされて、第4のパラメータFLTが検出され
る。That is, the difference data obtained from the motion detecting circuit 54 is cumulatively added in the cumulative adder 55, and the first parameter ME is detected by a so-called ME residual. In addition, the accumulator 53 accumulates the luminance data and detects the second parameter DC. Further, in the intra AC detection circuit 28, the level difference between the average luminance level and the luminance level of the macro block is converted into an absolute value and accumulated, and the third parameter IAC is detected. Further, in the flatness detection circuit 40, when one screen is viewed obliquely, a portion where the change in the brightness level is smaller than a predetermined value is counted, and the fourth parameter FLT is detected.
【0106】ディジタルビデオ信号SVA、SVB、S
VCは、これらのパラメータME、DC、IAC、FL
Tが順次中央処理ユニット25に入力され、(4)式の
演算処理により、所定の符号化の条件による発生符号量
に対応する困難度DA、DB、DCが計算され、この困
難度がGOP単位で累積される。Digital video signals SVA, SVB, S
VC calculates these parameters ME, DC, IAC, FL
T are sequentially input to the central processing unit 25, and the degree of difficulty DA, DB, DC corresponding to the amount of generated code under predetermined coding conditions is calculated by the arithmetic processing of equation (4). Is accumulated.
【0107】ディジタルビデオ信号SVA〜SVCは、
上限値及び下限値により制限されて、この困難度DA、
DB、DCに応じて、割り当て可能な符号量がGOP単
位で配分されて、この配分された目標符号量EA1、E
B1、ECにより符号化処理されて多重化される。The digital video signals SVA to SVC are
Limited by the upper and lower limits, this difficulty DA,
In accordance with DB and DC, code amounts that can be allocated are allocated in GOP units, and the allocated target code amounts EA1, EA
The data is coded and multiplexed by B1 and EC.
【0108】すなわちディジタルビデオ信号SVA〜S
VCは、始めに第1チャンネルのディジタルビデオ信号
SVAについて、割り当て可能な符号量Mが困難度D
A、DB、DCにより配分されて目標符号量EAが仮設
定された後、上限値UA及び下限値LAにより制限して
このディジタルビデオ信号SVAの目標符号量EA1が
計算される。さらに第2チャンネルのディジタルビデオ
信号SVAについて、残る割り当て可能な符号量M−E
A1が困難度DB、DCにより配分されて目標符号量E
Bが仮設定された後、上限値UB及び下限値LBにより
制限してこのディジタルビデオ信号SVBの目標符号量
EB1が計算される。さらに残り割り当て可能な符号量
M−EA1−EB1が残るチャンネルのディジタルビデ
オ信号SVCに割り当てられる。That is, the digital video signals SVA to SVA
VC first determines that the code amount M that can be assigned to the digital video signal SVA of the first channel is the difficulty level D.
After the target code amount EA is temporarily set by distributing by A, DB, and DC, the target code amount EA1 of the digital video signal SVA is calculated by limiting the target code amount EA with the upper limit value UA and the lower limit value LA. Further, with respect to the second channel digital video signal SVA, the remaining allocatable code amount ME is set.
A1 is distributed by the difficulty level DB and DC, and the target code amount E
After B is temporarily set, the target code amount EB1 of the digital video signal SVB is calculated by limiting the upper limit value UB and the lower limit value LB. Further, the remaining assignable code amount M-EA1-EB1 is assigned to the digital video signal SVC of the remaining channel.
【0109】これによりディジタルビデオ信号SVA〜
SVCは、困難度DA、DB、DCを基本とした符号量
の配分により、動きの激しい場合、シーンチェンジ等の
場合に多くの符号量が割り当てられ、これにより一様な
符号量を割り当てる場合に比して高画質により伝送され
る。As a result, digital video signals SVA-
In the SVC, a large amount of code is allocated in the case of rapid movement, scene change, etc. by allocating a code amount based on the degree of difficulty DA, DB, and DC. It is transmitted with higher image quality.
【0110】またこのとき上限値による制限により、動
きの激しい場合、シーンチェンジ等の場合でも割り当て
られる符号量が制限され、これにより他のディジタルビ
デオ信号における符号量の急激な低下による画質劣化を
有効に回避することができる。さらに下限値による制限
によっても、他のディジタルビデオ信号が動きの激しい
場合、シーンチェンジ等の場合でも、最低の画質を補償
できる程度の符号量が割り当てられ、これによっても画
質劣化を有効に回避することができる。At this time, due to the limitation by the upper limit value, the amount of codes to be allocated is limited even in the case of rapid movement, scene change, etc., thereby effectively preventing image quality deterioration due to a sharp decrease in the amount of codes in other digital video signals. Can be avoided. In addition, even if the other digital video signals are intensely moving or a scene change is performed, a code amount of such a level that the minimum image quality can be compensated is also assigned due to the limitation by the lower limit value, thereby effectively avoiding image quality deterioration. be able to.
【0111】以上の構成によれば、困難度DA、DB、
DCに応じて割り当て可能な符号量を配分したことによ
り、一様な符号量を割り当てる場合に比して高画質によ
りディジタルビデオ信号を伝送することができる。この
とき上限値及び下限値により制限して符号量を配分した
ことにより、動きの激しい場合、シーンチェンジ等の場
合でも、他のディジタルビデオ信号の画質劣化を有効に
回避することができる。According to the above configuration, the degrees of difficulty DA, DB,
By allocating the code amount that can be allocated according to DC, a digital video signal can be transmitted with higher image quality than when a uniform code amount is allocated. At this time, by allocating the code amount by restricting the upper limit value and the lower limit value, it is possible to effectively avoid the deterioration of the image quality of other digital video signals even in the case of rapid movement or scene change.
【0112】(2)第2の実施の形態 図9は、本発明の第2の実施の形態に係る中央処理ユニ
ットによる目標符号量計算処理手順を示すフローチャー
トである。この実施の形態に係る多重化装置は、中央処
理ユニットにおけるこの目標符号量計算処理手順が異な
る以外、第1の実施の形態と同一に構成される。また中
央処理ユニットは、この処理手順に対応して、上限値及
び下限値に代えて、オペレータより各チャンネルの平均
符号量aA、aB、aCの設定を受け付ける。なおこれ
ら平均符号量aA、aB、aCは、マルチプレクサ3に
許容される伝送速度Tに対して、次式の関係を満足する
必要がある。(2) Second Embodiment FIG. 9 is a flowchart showing a target code amount calculation processing procedure by a central processing unit according to a second embodiment of the present invention. The multiplexing apparatus according to this embodiment has the same configuration as that of the first embodiment except that the target code amount calculation processing procedure in the central processing unit is different. Further, in response to this processing procedure, the central processing unit accepts the setting of the average code amounts aA, aB, and aC of each channel from the operator instead of the upper and lower limits. Note that these average code amounts aA, aB, and aC need to satisfy the following equation with respect to the transmission speed T allowed for the multiplexer 3.
【0113】[0113]
【数21】 (Equation 21)
【0114】中央処理ユニットは、この入力された平均
符号量aA、aB、aCより、事前に次式の演算処理を
実行し、平均符号量aA、aB、aCをGOP単位の符
号量AA、AB、ACに変換し、このGOP単位の符号
量AA、AB、ACを用いて目標符号量計算処理を実行
する。The central processing unit executes the following arithmetic processing based on the input average code amounts aA, aB, and aC in advance, and converts the average code amounts aA, aB, and aC into code amounts AA, AB in GOP units. , AC, and performs a target code amount calculation process using the code amounts AA, AB, and AC in GOP units.
【0115】[0115]
【数22】 (Equation 22)
【0116】[0116]
【数23】 (Equation 23)
【0117】[0117]
【数24】 (Equation 24)
【0118】具体的な例として、NTSC方式のディジ
タルビデオ信号を1GOP=30フレーム(N=30)
により処理する場合に、平均符号量aA、aB、aCが
それぞれ2.0〔Mbps〕、3.0〔Mbps〕、
5.0〔Mbps〕に設定された場合、中央処理ユニッ
トは、次式に示すように、GOP単位の符号量AA、A
B、ACを計算することになる。As a specific example, 1 GOP = 30 frames (N = 30) of an NTSC digital video signal
, The average code amounts aA, aB, and aC are 2.0 [Mbps], 3.0 [Mbps], respectively.
When set to 5.0 [Mbps], the central processing unit determines the code amounts AA, A
B and AC will be calculated.
【0119】[0119]
【数25】 (Equation 25)
【0120】また中央処理ユニットは、これらの演算処
理と共に、事前に次式の演算処理を実行し、各チャンネ
ルへの等分な符号量の配分比率P0を計算する。The central processing unit executes the following arithmetic processing together with these arithmetic processings in advance, and calculates the distribution ratio P0 of the equal code amount to each channel.
【0121】[0121]
【数26】 (Equation 26)
【0122】中央処理ユニットは、第1の実施の形態と
同様にして、順次入力されるディジタルビデオ信号SV
A〜SVBについて、第1〜第4のパラメータME、D
C、IAC、FLTより順次GOP単位で困難度DA、
DB、DCを計算し、この計算した困難度DA、DB、
DCより順次目標符号量を計算してセットする。このと
きこれら事前の演算処理により計算されたGOP単位の
符号量AA、AB、AC、各チャンネルへの等分な符号
量の配分比率P0を用いて目標符号量を補正する。The central processing unit operates similarly to the first embodiment to sequentially input digital video signals SV.
For A to SVB, first to fourth parameters ME and D
C, IAC, and FLT in order of GOP unit DA,
DB and DC are calculated, and the calculated degree of difficulty DA, DB,
The target code amount is sequentially calculated and set from DC. At this time, the target code amount is corrected using the code amounts AA, AB, and AC in GOP units calculated by the previous arithmetic processing and the distribution ratio P0 of the equal code amount to each channel.
【0123】すなわち中央処理ユニットは、ステップS
P30からステップSP31に移り、次式の演算処理を
実行することにより、検出された困難度DA、DB、D
Cによる符号量の配分比率pA、pB、pCを計算す
る。That is, the central processing unit executes step S
The process proceeds from step P30 to step SP31 and executes the arithmetic processing of the following equation, thereby detecting the detected degrees of difficulty DA, DB, and D.
The code amount distribution ratios pA, pB, and pC based on C are calculated.
【0124】[0124]
【数27】 [Equation 27]
【0125】具体的に、困難度DA、DB、DCがそれ
ぞれ50、40、10の場合、中央処理ユニットは、次
式により示すように困難度DA、DB、DCによる符号
量の配分比率pA、pB、pCを計算する。Specifically, when the degrees of difficulty DA, DB, and DC are 50, 40, and 10, respectively, the central processing unit determines the distribution ratio pA of the code amount by the degrees of difficulty DA, DB, and DC as shown by the following equation. Calculate pB and pC.
【0126】[0126]
【数28】 [Equation 28]
【0127】続いて中央処理ユニットは、ステップSP
32に移り、ここで次式の演算処理を実行することによ
り、等分な配分比率P0と、困難度DA、DB、DCに
よる配分比率pA、pB、pCとの差分PA、PB、P
Cを計算する。これにより中央処理ユニットは、等分な
符号量配分を基準にして困難度による符号量配分の変化
を検出する。Subsequently, the central processing unit proceeds to step SP
32, where the calculation processing of the following equation is executed, whereby the differences PA, PB, PC between the equally divided distribution ratio P0 and the distribution ratios pA, pB, pC by the degrees of difficulty DA, DB, and DC.
Calculate C. Thus, the central processing unit detects a change in the distribution of the code amount due to the degree of difficulty based on the distribution of the equal code amount.
【0128】[0128]
【数29】 (Equation 29)
【0129】具体的に、上述の例の場合、中央処理ユニ
ットは、次式に示すように、差分PA、PB、PCを算
出する。More specifically, in the case of the above example, the central processing unit calculates the differences PA, PB, and PC as shown in the following equations.
【0130】[0130]
【数30】 [Equation 30]
【0131】続いて中央処理ユニットは、ステップSP
33に移り、次式の演算処理を実行することにより、各
チャンネルに設定された平均符号量より、この計算した
差分に対応する符号量を計算する。このとき中央処理ユ
ニットは、次式において括弧により括って示すように、
(29)式の演算処理により負の演算処理結果が得られ
てなる、等分な符号配分に対して困難度による符号配分
に余裕のあるチャンネルについて、差分に対応する符号
量余裕分を計算する。Subsequently, the central processing unit proceeds to step SP
Then, the process proceeds to step 33, where the following arithmetic operation is executed to calculate the code amount corresponding to the calculated difference from the average code amount set for each channel. At this time, the central processing unit, as shown in parentheses in the following equation,
A code amount margin corresponding to the difference is calculated for a channel in which a negative calculation processing result is obtained by the arithmetic processing of the equation (29) and which has a margin for code distribution due to difficulty in equal code distribution. .
【0132】[0132]
【数31】 (Equation 31)
【0133】かくするにつき、上述の例によれば、PA
>0、PB>0、PC<0の関係が得られることによ
り、中央処理ユニットは、この第3チャンネルのディジ
タルビデオ信号SVCについて、次式より示される符号
量BCを計算する。Thus, according to the above-described example, PA
By obtaining the relationships of> 0, PB> 0, and PC <0, the central processing unit calculates the code amount BC of the digital video signal SVC of the third channel by the following equation.
【0134】[0134]
【数32】 (Equation 32)
【0135】続いて中央処理ユニットは、ステップSP
34に移り、符号量余裕分の配分処理を実行し、ステッ
プSP33で検出した符号量余裕分を他のチャンネルに
配分して各チャンネルの目標符号量を設定する。さらに
中央処理ユニットは、各チャンネルの目標符号量をエン
コーダ24A、24B、24Cにセットした後、ステッ
プSP35に移って元の処理手順に戻る。Subsequently, the central processing unit proceeds to step SP
The process proceeds to S34, where the code amount margin is distributed, and the code amount margin detected in step SP33 is allocated to other channels to set the target code amount for each channel. Further, the central processing unit sets the target code amount of each channel to the encoders 24A, 24B, 24C, and then proceeds to step SP35 to return to the original processing procedure.
【0136】図10は、この符号量余裕分の配分処理を
示すフローチャートである。中央処理ユニットは、ステ
ップSP40からステップSP41に移り、ここで上述
のステップSP32で計算した差分PA、PB、PCの
何れもが値0か否か判断する。ここで肯定結果が得られ
ると、中央処理ユニットは、ステップSP42に移り、
次式により示すように、各チャンネルについて設定され
た平均符号量aA、aB、aCによるGOPの符号量A
A、AB、ACを目標符号量NA、NB、NCに設定し
た後、ステップSP43に移ってこの処理手順を終了す
る。FIG. 10 is a flowchart showing the distribution processing of the code amount margin. The central processing unit proceeds from step SP40 to step SP41, where it determines whether any of the differences PA, PB, and PC calculated in step SP32 is zero. If a positive result is obtained here, the central processing unit proceeds to step SP42,
As shown by the following equation, the code amount A of the GOP based on the average code amounts aA, aB, and aC set for each channel.
After setting A, AB, and AC to the target code amounts NA, NB, and NC, the process moves to step SP43 and ends the processing procedure.
【0137】[0137]
【数33】 [Equation 33]
【0138】これに対してステップSP41において否
定結果が得られると、中央処理ユニットは、ステップS
P44に移り、ここで第1チャンネルについてステップ
SP32で計算した差分が負の値か否か判断することに
より、この第1チャンネルにおいては、符号量に余裕が
あるか否か判断する。ここで肯定結果が得られると、中
央処理ユニットは、ステップSP45に移り、同様にし
て第2チャンネルについて符号量に余裕があるか否か判
断する。On the other hand, if a negative result is obtained in step SP41, the central processing unit proceeds to step S41.
The process proceeds to P44, where it is determined whether or not the difference calculated for the first channel in step SP32 is a negative value, thereby determining whether or not the code amount is sufficient in the first channel. Here, if a positive result is obtained, the central processing unit proceeds to step SP45, and similarly determines whether or not the code amount for the second channel has a margin.
【0139】ここで肯定結果が得られると、この場合第
3チャンネルにおいては、ステップSP32で計算した
差分が正の値に保持され、他のチャンネルに比して符号
量に余裕がないことにより、中央処理ユニットは、ステ
ップSP46に移り、次式の演算処理を実行する。これ
により中央処理ユニットは、第1及び第2チャンネルの
余裕分BA、BBを第3チャンネルに振り分けて目標符
号量NA、NB、NCを設定する。If a positive result is obtained here, in this case, the difference calculated in step SP32 is held at a positive value in the third channel, and the code amount has no margin as compared with the other channels. The central processing unit proceeds to step SP46 and executes the arithmetic processing of the following equation. Accordingly, the central processing unit sets the target code amounts NA, NB, and NC by allocating the margins BA and BB of the first and second channels to the third channel.
【0140】[0140]
【数34】 (Equation 34)
【0141】これに対してステップSP45において否
定結果が得られると、中央処理ユニットは、ステップS
P47に移る。ここで中央処理ユニットは、第3チャン
ネルについてステップSP32で計算した差分が負の値
か否か判断することにより、この第3チャンネルにおい
ては、符号量に余裕があるか否か判断する。ここで肯定
結果が得られると、この場合第1及び第3チャンネルに
ついては、符号量に余裕があり、第2チャンネルについ
ては他のチャンネルに比して符号量に余裕がないことに
より、中央処理ユニットは、ステップSP48に移り、
次式の演算処理を実行する。これにより中央処理ユニッ
トは、第1及び第3チャンネの余裕分BA及びBCを第
2チャンネルに振り分けて、目標符号量NA、NB、N
Cを設定する。On the other hand, if a negative result is obtained in step SP45, the central processing unit proceeds to step S45.
Move to P47. Here, the central processing unit determines whether or not the difference calculated in step SP32 for the third channel is a negative value, thereby determining whether or not the third channel has a sufficient code amount. If a positive result is obtained here, in this case, the first and third channels have a margin in the code amount, and the second channel has no margin in the code amount as compared with the other channels. The unit moves to step SP48,
The following arithmetic processing is executed. Thereby, the central processing unit allocates the spare BA and BC of the first and third channels to the second channel, and sets the target code amounts NA, NB, N
Set C.
【0142】[0142]
【数35】 (Equation 35)
【0143】これに対してステップSP47において否
定結果が得られると、中央処理ユニットは、ステップS
P49に移る。この場合第1チャンネルだけ符号量に余
裕があり、他のチャンネルについては余裕分がないこと
により、中央処理ユニットは、次式の演算処理により、
第1チャンネルの余裕分BAを、ステップSP32で計
算した差分に応じて第2及び第3チャンネルに配分し、
目標符号量NA、NB、NCを設定する。If a negative result is obtained in step SP47, the central processing unit proceeds to step S47.
Move to P49. In this case, since there is a margin in the code amount only for the first channel, and there is no margin for the other channels, the central processing unit performs the following arithmetic processing.
The spare BA of the first channel is allocated to the second and third channels according to the difference calculated in step SP32,
The target code amounts NA, NB, and NC are set.
【0144】[0144]
【数36】 [Equation 36]
【0145】これに対してステップSP44において否
定結果が得られると、中央処理ユニットは、ステップS
P50に移る。ここで中央処理ユニットは、ここで第2
チャンネルについてステップSP32で計算した差分が
負の値か否か判断することにより、この第2チャンネル
においては、符号量に余裕があるか否か判断する。こで
肯定結果が得られると、中央処理ユニットは、ステップ
SP51に移り、同様にして第3チャンネルについて、
符号量に余裕があるか否か判断する。On the other hand, if a negative result is obtained in step SP44, the central processing unit proceeds to step S44.
Move to P50. Here the central processing unit is
By determining whether or not the difference calculated for the channel in step SP32 is a negative value, it is determined whether or not the second channel has a sufficient code amount. If a positive result is obtained here, the central processing unit proceeds to step SP51, and similarly performs processing for the third channel.
It is determined whether or not the code amount has a margin.
【0146】ここで肯定結果が得られると、中央処理ユ
ニットは、ステップSP52に移り、この場合第2及び
第3チャンネルで符号量に余裕があることにより、次式
の演算処理を実行する。これにより中央処理ユニット
は、第2及び第3チャンネルの余裕分BB、BCを第1
チャンネルに振り分けて、目標符号量NA、NB、NC
を設定する。Here, if a positive result is obtained, the central processing unit proceeds to step SP52, and in this case, since there is a margin in the code amount in the second and third channels, the central processing unit executes the following arithmetic processing. As a result, the central processing unit sets the margins BB and BC of the second and third channels to the first.
Allocation to channels, target code amount NA, NB, NC
Set.
【0147】[0147]
【数37】 (37)
【0148】これに対してステップSP51において否
定結果が得られると、中央処理ユニットは、ステップS
P53に移る。この場合第2チャンネルだけ符号量に余
裕があり、他のチャンネルについては余裕がないことに
より、中央処理ユニットは、次式の演算処理を実行する
ことにより、第2チャンネルの余裕分BBを、ステップ
SP32で計算した差分に応じて第2及び第3チャンネ
ルに配分し、目標符号量NA、NB、NCを設定する。On the other hand, if a negative result is obtained in step SP51, the central processing unit proceeds to step S51.
Move to P53. In this case, since there is a margin in the code amount only for the second channel, and there is no margin for the other channels, the central processing unit executes the arithmetic processing of the following equation, thereby calculating the margin BB of the second channel by step It is allocated to the second and third channels according to the difference calculated in SP32, and the target code amounts NA, NB, and NC are set.
【0149】[0149]
【数38】 (38)
【0150】これに対してステップSP50において否
定結果が得られると、中央処理ユニットは、ステップS
P54に移る。この場合第1及び第2チャンネルに余裕
がないことにより第3チャンネルについては符号量に余
裕があることになる。これにより中央処理ユニットは、
次式の演算処理を実行することにより、第3チャンネル
の余裕分BCを、ステップSP32で計算した差分に応
じて第1及び第2チャンネルに配分し、目標符号量N
A、NB、NCを設定する。If a negative result is obtained in step SP50, the central processing unit proceeds to step S50.
Move to P54. In this case, since there is no margin in the first and second channels, there is a margin in the code amount for the third channel. This allows the central processing unit to:
By executing the following equation, the margin BC of the third channel is allocated to the first and second channels according to the difference calculated in step SP32, and the target code amount N
A, NB, and NC are set.
【0151】[0151]
【数39】 [Equation 39]
【0152】このような各差分PA、PB、PCの正負
に応じて、符号量余裕分を判断して振り分けることによ
り、中央処理ユニットは、上述の例の場合は、PA>
0,PB>0,PC<0の関係が得られることにより、
(32)式で計算した1.15〔Mbps〕を次式によ
り第1及び第2チャンネルに配分して目標符号量NA、
NB、NCを設定することになる。By determining and allocating a code margin according to the sign of each of the differences PA, PB, and PC, the central processing unit determines that PA>
By obtaining the relationship of 0, PB> 0, PC <0,
1.15 [Mbps] calculated by the equation (32) is distributed to the first and second channels by the following equation, and the target code amount NA is calculated.
NB and NC are set.
【0153】[0153]
【数40】 (Equation 40)
【0154】以上の構成によれば、平均号量を基準にし
て、困難度に応じて符号量を配分することにより、平均
符号量による画質を保障しつつ、画像の性質に応じて符
号量を増大して伝送することができ、その分高画質によ
りディジタルビデオ信号を伝送することができる。According to the above configuration, by allocating the code amount according to the degree of difficulty based on the average code amount, it is possible to guarantee the image quality based on the average code amount and to reduce the code amount according to the characteristics of the image. The digital video signal can be transmitted with an increased image quality.
【0155】(3)他の実施の形態 なお上述の実施の形態においては、(4)式に示したよ
うに、4つのパラメータME、IAC、DC、FLTを
重み付けして困難度を算出する場合について述べたが、
本発明はこれに限らず、必要に応じてこれら何れかのパ
ラメータを選択的に使用して困難度を算出してもよい。
また(4)式の各重み付け係数をシーンチェンジ、フラ
ッシュ、素材の種類等により適応的に切り換え、又は値
を変更してもよい。(3) Other Embodiments In the above-described embodiment, as shown in equation (4), when the difficulty is calculated by weighting four parameters ME, IAC, DC, and FLT , But
The present invention is not limited to this, and the difficulty may be calculated by selectively using any of these parameters as needed.
Further, each weighting coefficient of the equation (4) may be adaptively switched or its value may be changed according to scene change, flash, type of material, and the like.
【0156】さらに上述の実施の形態においては、4つ
のパラメータME、IAC、DC、FLTを重み付けし
て困難度を算出することにより、間接的に、一定の条件
により符号化処理した場合発生する符号化データについ
て、この符号化データのデータ量に対応するパラメータ
を検出する場合について述べたが、本発明はこれに限ら
ず、別途エンコーダを用意して固定した量子化テーブル
により符号化処理することにより、発生データ量を検出
し、これにより直接、符号化データのデータ量に対応す
るパラメータを検出してもよい。Furthermore, in the above-described embodiment, by calculating the degree of difficulty by weighting the four parameters ME, IAC, DC, and FLT, the code generated when the coding processing is indirectly performed under certain conditions is obtained. For the encoded data, the case where the parameter corresponding to the data amount of the encoded data is detected has been described. However, the present invention is not limited to this, and the encoding process is performed by using a quantization table fixed by preparing a separate encoder. , The amount of generated data may be detected, and thereby the parameter corresponding to the data amount of the encoded data may be directly detected.
【0157】また上述の第1の実施の形態においては、
2つのチャンネルについて上限値及び下限値を設定し、
残るチャンネルについては下限値を設定する場合につい
て述べたが、本発明はこれに限らず、上限値だけ設定す
る場合、下限値だけ設定する場合にも広く適用すること
ができる。In the first embodiment described above,
Set upper and lower limits for the two channels,
Although the case where the lower limit is set for the remaining channels has been described, the present invention is not limited to this, and can be widely applied to the case where only the upper limit is set and the case where only the lower limit is set.
【0158】さらに上述の第2の実施の形態において
は、余裕分の有無を検出して振り分ける場合について述
べたが、本発明はこれに限らず、これとは逆に不足分の
有無を検出して余裕のあるチャンネルの符号量を振り分
けるようにしても良い。Further, in the above-described second embodiment, the case where the presence or absence of a margin is detected and sorted is described. However, the present invention is not limited to this. Alternatively, the code amount of a channel having a margin may be allocated.
【0159】また上述の第2の実施の形態においては、
(26)式により示したように、各チャンネルへの等分
な符号量より差分を検出して符号量を再配分する場合に
ついて述べたが、本発明はこれに限らず、等分な符号量
に代えて、各チャンネルに設定した符号量より差分を検
出して符号量を再配分してもよい。In the second embodiment described above,
As shown by the equation (26), the case has been described where the difference is detected from the equal code amount to each channel and the code amount is redistributed. However, the present invention is not limited to this, and the equal code amount is not limited to this. Instead, the difference may be detected from the code amount set for each channel and the code amount may be redistributed.
【0160】さらに上述の実施の形態においては、GO
P単位で符号量を配分する場合について述べたが、本発
明はこれに限らず、フレーム単位で符号量を配分しても
よく、さらには複数GOP単位で符号量を配分してもよ
い。Further, in the above embodiment, GO
Although the case where the code amount is distributed in P units has been described, the present invention is not limited to this, and the code amount may be distributed in frame units, and further, the code amount may be distributed in multiple GOP units.
【0161】また上述の実施の形態においては、MPE
Gのフォーマットにより符号化処理する場合について述
べたが、本発明はこれに限らず、例えばディスクリート
コサイン変換処理に代えてハール変換処理により符号化
処理する場合等、種々の符号化処理に広く適用すること
ができる。In the above embodiment, the MPE
Although the description has been given of the case where the encoding process is performed according to the G format, the present invention is not limited to this, and is widely applied to various encoding processes such as a case where the encoding process is performed by the Haar transform process instead of the discrete cosine transform process. be able to.
【0162】さらに上述の実施の形態においては、3チ
ャンネルのディジタルビデオ信号を多重化する場合につ
いて述べたが、本発明はこれに限らず、種々のチャンネ
ル数のディジタルビデオ信号を多重化する場合、さらに
は種々のディジタル信号を符号化処理して多重化する場
合に広く適用することができる。Further, in the above-described embodiment, a case has been described in which digital video signals of three channels are multiplexed. However, the present invention is not limited to this, and when digital video signals of various channels are multiplexed, Further, the present invention can be widely applied to a case where various digital signals are encoded and multiplexed.
【0163】[0163]
【発明の効果】上述のように本発明によれば、上限値及
び又は下限値の範囲で、一定の条件で発生するデータ量
に応じて各チャンネルに割り当てるデータ量を設定する
ことにより、又は指定されたデータ量より一定の条件で
発生するデータ量を基準にして各チャンネルのデータ量
を設定することにより、各チャンネルの画質劣化を低減
することができる。As described above, according to the present invention, the data amount to be allocated to each channel is set or specified in the range of the upper limit value and / or the lower limit value according to the data amount generated under certain conditions. By setting the data amount of each channel based on the data amount generated under certain conditions from the data amount thus set, it is possible to reduce the image quality deterioration of each channel.
【図1】本発明の第1の実施の形態に係る中央処理ユニ
ットの目標量計算処理を示すフローチャートである。FIG. 1 is a flowchart showing a target amount calculation process of a central processing unit according to a first embodiment of the present invention.
【図2】第1の実施の形態に係る多重化装置を示すブロ
ック図である。FIG. 2 is a block diagram illustrating a multiplexing device according to a first embodiment.
【図3】図2の符号化回路を示すブロック図である。FIG. 3 is a block diagram showing an encoding circuit of FIG. 2;
【図4】図2のエンコーダを詳細に示すブロック図であ
る。FIG. 4 is a block diagram showing the encoder of FIG. 2 in detail.
【図5】図3のイントラAC検出回路を示すブロック図
である。FIG. 5 is a block diagram showing an intra AC detection circuit shown in FIG. 3;
【図6】図3のフラットネス検出回路を示すブロック図
である。FIG. 6 is a block diagram illustrating a flatness detection circuit of FIG. 3;
【図7】図2の中央処理ユニットの処理手順を示すフロ
ーチャートである。FIG. 7 is a flowchart illustrating a processing procedure of a central processing unit of FIG. 2;
【図8】図1の続きの処理手順を示すフローチャートで
ある。FIG. 8 is a flowchart showing a processing procedure following FIG. 1;
【図9】本発明の第2の実施の形態に係る中央処理ユニ
ットの目標量計算処理を示すフローチャートである。FIG. 9 is a flowchart illustrating a target amount calculation process of the central processing unit according to the second embodiment of the present invention.
【図10】図9の符号量余裕分の再配分処理を示すフロ
ーチャートである。FIG. 10 is a flowchart showing a redistribution process for a code amount margin in FIG. 9;
【図11】従来の多重化装置を示すブロック図である。FIG. 11 is a block diagram showing a conventional multiplexer.
【図12】図11のエンコーダを示すブロック図であ
る。FIG. 12 is a block diagram showing the encoder of FIG. 11;
1、20……多重化装置、2A〜2C、24A〜24C
……エンコーダ、8、54……動き検出回路、21A〜
21C……符号化回路、22A〜22C……パラメータ
算出回路、23A〜23C……FIFO、28……イン
トラAC検出回路、40……フラットネス検出回路、5
3、55……累積加算器1, 20 ... Multiplexer, 2A-2C, 24A-24C
…… Encoder, 8, 54 …… Motion detection circuit, 21A-
21C: coding circuit, 22A to 22C: parameter calculation circuit, 23A to 23C: FIFO, 28: intra AC detection circuit, 40: flatness detection circuit, 5
3, 55 cumulative accumulator
Claims (24)
タル信号をそれぞれ符号化処理して生成した複数チャン
ネルの符号化データを、多重化手段により時分割多重化
して多重化データを生成する多重化装置において、 一定の条件による前記符号化処理により発生する前記符
号化データのデータ量に対応するパラメータを検出し、 前記チャンネルに設定された上限値及び又は下限値の範
囲で、前記多重化データにおける前記各チャンネルの前
記符号化データのデータ量が前記パラメータに対応する
データ量になるように、前記符号化手段による符号化処
理を制御することを特徴とする多重化装置。A multiplexing apparatus for generating multiplexed data by time-division multiplexing multiplexed data generated by encoding processing of digital signals of a plurality of channels by encoding means and by multiplexing means. Detecting a parameter corresponding to a data amount of the encoded data generated by the encoding process under a certain condition, and detecting each parameter in the multiplexed data within a range of an upper limit and / or a lower limit set for the channel. A multiplexing apparatus, comprising: controlling an encoding process by said encoding means so that a data amount of said encoded data of a channel becomes a data amount corresponding to said parameter.
処理して発生するデータ量を測定して検出されることを
特徴とする請求項1に記載の多重化装置。2. The method according to claim 1, wherein the digital signal is a digital video signal, and the parameter is detected by measuring a data amount generated by encoding the digital video signal in a predetermined block unit. The multiplexing device according to claim 1.
されることを特徴とする請求項1に記載の多重化装置。3. The multiplexing apparatus according to claim 1, wherein said digital signal is a digital video signal, and said parameter is detected by integrating a luminance level of said digital video signal.
のレベル差の絶対値を積算して検出されることを特徴と
する請求項1に記載の多重化装置。4. The digital signal is a digital video signal, and the parameter is detected by integrating an absolute value of a level difference between a luminance level of the digital video signal and a reference level. Item 3. The multiplexing device according to Item 1.
度レベルの変化の大きな箇所又は小さな箇所をカウント
して検出されることを特徴とする請求項1に記載の多重
化装置。5. The method according to claim 1, wherein the digital signal is a digital video signal, and wherein the parameter is detected by counting a portion where a change in luminance level is large or small in a diagonal direction of an image based on the digital video signal. The multiplexing device according to claim 1, wherein
間の差分信号を直交変換して生成され、 前記パラメータは、 前記差分信号の絶対値を累積して検出されることを特徴
とする請求項1に記載の多重化装置。6. The digital signal is a digital video signal, the encoded data is generated by orthogonally transforming a difference signal between frames or fields of the digital video signal, and the parameter is the difference signal 2. The multiplexing apparatus according to claim 1, wherein the absolute value of is accumulated and detected.
タル信号をそれぞれ符号化処理して生成した複数チャン
ネルの符号化データを、多重化手段により時分割多重化
して多重化データを生成する多重化装置において、 一定の条件による前記符号化処理により発生する前記符
号化データのデータ量に対応するパラメータを検出し、 前記各チャンネルに設定された基準のデータ量を前記パ
ラメータにより補正して各チャンネルの目標データ量を
設定し、 前記多重化データにおける前記各チャンネルの前記符号
化データのデータ量が前記目標データ量になるように、
前記符号化手段による符号化処理を制御することを特徴
とする多重化装置。7. A multiplexing apparatus for generating multiplexed data by time-division multiplexing the coded data of a plurality of channels generated by encoding each of the digital signals of the plurality of channels by the encoding means by the multiplexing means. Detecting a parameter corresponding to a data amount of the encoded data generated by the encoding process under a certain condition, and correcting a reference data amount set for each channel by the parameter to obtain target data of each channel. Setting the amount, so that the data amount of the coded data of each channel in the multiplexed data is the target data amount,
A multiplexing device for controlling an encoding process by said encoding means.
処理して発生するデータ量を測定して検出されることを
特徴とする請求項7に記載の多重化装置。8. The digital signal is a digital video signal, and the parameter is detected by measuring an amount of data generated by encoding the digital video signal in a predetermined block unit. The multiplexing device according to claim 7.
されることを特徴とする請求項7に記載の多重化装置。9. The multiplexing apparatus according to claim 7, wherein said digital signal is a digital video signal, and said parameter is detected by integrating a luminance level of said digital video signal.
のレベル差の絶対値を積算して検出されることを特徴と
する請求項7に記載の多重化装置。10. The digital signal is a digital video signal, and the parameter is detected by integrating an absolute value of a level difference between a luminance level of the digital video signal and a reference level. Item 8. The multiplexing device according to Item 7.
度レベルの変化の大きな箇所又は小さな箇所をカウント
して検出されることを特徴とする請求項7に記載の多重
化装置。11. The digital signal is a digital video signal, and the parameter is that a point where a change in luminance level is large or small is detected in a diagonal direction of an image by the digital video signal. The multiplexing device according to claim 7, wherein
間の差分信号を直交変換して生成され、 前記パラメータは、 前記差分信号の絶対値を累積して検出されることを特徴
とする請求項7に記載の多重化装置。12. The digital signal is a digital video signal, the encoded data is generated by orthogonally transforming a difference signal between frames or fields of the digital video signal, and the parameter is the difference signal 8. The multiplexing apparatus according to claim 7, wherein the absolute value of is detected by accumulating.
ジタル信号をそれぞれ符号化処理して生成した複数チャ
ンネルの符号化データを、多重化手段により時分割多重
化して多重化データを生成する多重化方法において、 一定の条件による前記符号化処理により発生する前記符
号化データのデータ量に対応するパラメータを検出し、 前記チャンネルに設定された上限値及び又は下限値の範
囲で、前記多重化データにおける前記各チャンネルの前
記符号化データのデータ量が前記パラメータに対応する
データ量になるように、前記符号化手段による符号化処
理を制御することを特徴とする多重化方法。13. A multiplexing method for generating multiplexed data by time-division multiplexing of coded data of a plurality of channels generated by encoding processing of digital signals of a plurality of channels by an encoding means by a multiplexing means. Detecting a parameter corresponding to a data amount of the encoded data generated by the encoding process under a certain condition, and detecting each parameter in the multiplexed data within a range of an upper limit and / or a lower limit set for the channel. A multiplexing method, characterized by controlling an encoding process by said encoding means so that a data amount of said encoded data of a channel becomes a data amount corresponding to said parameter.
処理して発生するデータ量を測定して検出されることを
特徴とする請求項13に記載の多重化方法。14. The digital signal is a digital video signal, and the parameter is detected by measuring an amount of data generated by encoding the digital video signal in predetermined block units. The multiplexing method according to claim 13.
されることを特徴とする請求項13に記載の多重化方
法。15. The multiplexing method according to claim 13, wherein said digital signal is a digital video signal, and said parameter is detected by integrating a luminance level of said digital video signal.
のレベル差の絶対値を積算して検出されることを特徴と
する請求項13に記載の多重化方法。16. The digital signal according to claim 16, wherein the parameter is detected by integrating an absolute value of a level difference between a luminance level of the digital video signal and a reference level. Item 14. The multiplexing method according to Item 13.
度レベルの変化の大きな箇所又は小さな箇所をカウント
して検出されることを特徴とする請求項13に記載の多
重化方法。17. The digital signal is a digital video signal, and the parameter is that a point where a change in luminance level is large or small is counted and detected in an oblique direction of an image based on the digital video signal. 14. The multiplexing method according to claim 13, wherein:
間の差分信号を直交変換して生成され、 前記パラメータは、 前記差分信号の絶対値を累積して検出されることを特徴
とする請求項13に記載の多重化方法。18. The digital signal is a digital video signal, the encoded data is generated by orthogonally transforming a difference signal between frames or fields of the digital video signal, and the parameter is the difference signal 14. The multiplexing method according to claim 13, wherein the detection is performed by accumulating the absolute value of.
ジタル信号をそれぞれ符号化処理して生成した複数チャ
ンネルの符号化データを、多重化手段により時分割多重
化して多重化データを生成する多重化方法において、 一定の条件による前記符号化処理により発生する前記符
号化データのデータ量に対応するパラメータを検出し、 前記各チャンネルに設定された基準のデータ量を前記パ
ラメータにより補正して各チャンネルの目標データ量を
設定し、 前記多重化データにおける前記各チャンネルの前記符号
化データのデータ量が前記目標データ量になるように、
前記符号化手段による符号化処理を制御することを特徴
とする多重化方法。19. A multiplexing method for generating multiplexed data by time-division multiplexing the coded data of a plurality of channels generated by respectively coding digital signals of the plurality of channels by the coding means by the multiplexing means. Detecting a parameter corresponding to a data amount of the encoded data generated by the encoding process under a certain condition, and correcting a reference data amount set for each channel by the parameter to obtain target data of each channel. Setting the amount, so that the data amount of the coded data of each channel in the multiplexed data is the target data amount,
A multiplexing method characterized by controlling an encoding process by the encoding means.
処理して発生するデータ量を測定して検出されることを
特徴とする請求項19に記載の多重化方法。20. The digital signal comprising a digital video signal, wherein the parameter is detected by measuring an amount of data generated by encoding the digital video signal in a predetermined block unit. The multiplexing method according to claim 19.
されることを特徴とする請求項19に記載の多重化方
法。21. The multiplexing method according to claim 19, wherein said digital signal is a digital video signal, and said parameter is detected by integrating a luminance level of said digital video signal.
のレベル差の絶対値を積算して検出されることを特徴と
する請求項19に記載の多重化方法。22. The digital signal comprising a digital video signal, wherein the parameter is detected by integrating an absolute value of a level difference between a luminance level of the digital video signal and a reference level. Item 20. The multiplexing method according to Item 19.
度レベルの変化の大きな箇所又は小さな箇所をカウント
して検出されることを特徴とする請求項19に記載の多
重化方法。23. The digital signal is a digital video signal, and the parameter is such that a position where a change in luminance level is large or small is counted and detected in an oblique direction of an image based on the digital video signal. 20. The multiplexing method according to claim 19, wherein:
間の差分信号を直交変換して生成され、 前記パラメータは、 前記差分信号の絶対値を累積して検出されることを特徴
とする請求項19に記載の多重化方法。24. The digital signal is a digital video signal, the encoded data is generated by orthogonally transforming a difference signal between frames or fields of the digital video signal, and the parameter is the difference signal 20. The multiplexing method according to claim 19, wherein the absolute value of the sum is detected by accumulating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19094097A JPH1141570A (en) | 1997-07-16 | 1997-07-16 | Multiplexing device and method therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19094097A JPH1141570A (en) | 1997-07-16 | 1997-07-16 | Multiplexing device and method therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH1141570A true JPH1141570A (en) | 1999-02-12 |
Family
ID=16266215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP19094097A Pending JPH1141570A (en) | 1997-07-16 | 1997-07-16 | Multiplexing device and method therefor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH1141570A (en) |
-
1997
- 1997-07-16 JP JP19094097A patent/JPH1141570A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0685971B1 (en) | Video coding apparatus comprising a plurality of encoders | |
JP3358620B2 (en) | Image encoding method and image encoding device | |
JPH06284414A (en) | Picture signal transmission method and device therefor | |
WO1994024822A1 (en) | Method and apparatus for coding image, and image recording medium | |
JP2002209215A (en) | Code quantity control device and method, and image information conversion device and method | |
US20010038669A1 (en) | Precise bit control apparatus with look-ahead for mpeg encoding | |
JPH0879766A (en) | Moving image coding method and moving image coder | |
JP4362795B2 (en) | Video encoding apparatus and method | |
US6243417B1 (en) | Device and method for encoding image data, and image data transmission method | |
KR100588795B1 (en) | Coding Device and Coding Method | |
JP4019478B2 (en) | Multiplexer and multiplexing method | |
US6040875A (en) | Method to compensate for a fade in a digital video input sequence | |
KR100571685B1 (en) | Image data encoding apparatus and method and image data transmission method | |
JP3812269B2 (en) | Video encoding apparatus and method | |
JPH1141570A (en) | Multiplexing device and method therefor | |
US20010000675A1 (en) | Video data encoding apparatus, video data encoding method, and video data transmission method | |
KR100286108B1 (en) | Method and apparatus for estimating the number of bits of a video signal for real-time processing, method of encoding using the method, and apparatus therefor | |
JP2005072995A (en) | Rate converter | |
JP4035747B2 (en) | Encoding apparatus and encoding method | |
JPH10290461A (en) | Rate controller and rate control method | |
JP4346732B2 (en) | Method and system for processing multiple streams of video frames | |
KR0141819B1 (en) | Apparatus for compression of data | |
JPH07327229A (en) | Multiple encoding device | |
JPH11196423A (en) | Device and method for picture processing and presentation medium | |
JPH1127665A (en) | Video data coder, its method and video data transmission method |