JP2003125403A - Transcoder for picture code and transcoding method for picture code - Google Patents

Transcoder for picture code and transcoding method for picture code

Info

Publication number
JP2003125403A
JP2003125403A JP2001316806A JP2001316806A JP2003125403A JP 2003125403 A JP2003125403 A JP 2003125403A JP 2001316806 A JP2001316806 A JP 2001316806A JP 2001316806 A JP2001316806 A JP 2001316806A JP 2003125403 A JP2003125403 A JP 2003125403A
Authority
JP
Japan
Prior art keywords
amplitude
image code
zero
code
frequency components
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.)
Granted
Application number
JP2001316806A
Other languages
Japanese (ja)
Other versions
JP3856292B2 (en
Inventor
Shigeyuki Kurahashi
茂之 倉橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2001316806A priority Critical patent/JP3856292B2/en
Publication of JP2003125403A publication Critical patent/JP2003125403A/en
Application granted granted Critical
Publication of JP3856292B2 publication Critical patent/JP3856292B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a transcoder whose operation quantity is less and which can maintain constant picture quality and to provide a transcoding method. SOLUTION: The transcoder of a picture code is provided with a decoding means 122 decoding a first picture code and obtaining the frequency components of the respective encoding blocks of a picture, an amplitude change means 123 reducing all or a part of the amplitudes of the frequency components of the encoding blocks or making them to zero so that code quantity per encoding block is reduced when the respective encoding blocks are re-encoded and a re-encoding means 125 re-encoding the frequency components of the respective blocks, where all or a part of the amplitudes of the frequency components are reduced or become zero and obtaining a second picture code. The amplitude change means low-pass-filter the frequency components of the respective blocks.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、原画像を符号化し
て得られた原画像符号を、その原画像符号よりも符号総
量が少なく、符号量相応の品質の画像を表す削減画像符
号に変換するための画像符号のトランスコーダに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention converts an original image code obtained by encoding an original image into a reduced image code having a code total amount smaller than that of the original image code and representing an image having a quality corresponding to the code amount. The present invention relates to an image code transcoder for performing.

【0002】[0002]

【従来の技術】近年、MPEG(Motion Picture Expert
s Group)方式は、動画像及び音声を蓄積又は伝送する方
式として普及してきており、例えば、CD−R(Compact
Disc-Recordable)、DVD(Digital Versatile Dis
c)、ハードディスク等のデジタル蓄積メディア(Digital
Storage Medium)の記録フォーマットとして使用され、
また、デジタルテレビ放送のデータ符号化方式としても
使用されている。また、MPEG方式は動画像及び音声
のストリーミングのデータ符号化方式としても使用され
ている。
2. Description of the Related Art In recent years, MPEG (Motion Picture Expert)
The s Group) method has become widespread as a method of storing or transmitting moving images and audio, and for example, CD-R (Compact
Disc-Recordable), DVD (Digital Versatile Dis)
c), digital storage media such as a hard disk (Digital
Storage Medium) is used as a recording format,
It is also used as a data coding method for digital television broadcasting. The MPEG system is also used as a data encoding system for streaming moving images and audio.

【0003】MPEG信号より成るストリーミングデー
タによりストリーミングを行うストリーミングクライア
ントとしては、10Mbpsの伝送ビットレートの光通
信によりストリーミングデータを受信するパーソナルコ
ンピュータの外に、数Mbpsの伝送ビットレートのA
DSL(Asymmetric Digital Subscriber Line)によりス
トリーミングデータを受信するパーソナルコンピュータ
及び384kbps〜2Mbpsの伝送ビットレートの
データ通信チャネルによりストリーミングデータを受信
するW−CDMA(Wideband-Code Division Multiple A
ccess)方式の携帯端末等が想定される。一方、ストリー
ミングサーバには、コンテンツ制作者が制作したMPE
Gデータが蓄積されているが、このMPEGデータは、
高画質なオリジナルMPEGデータである。NTSC方
式、PAL/SECAM方式等のコンベンショナルテレ
ビ方式の信号を基にしたオリジナルMPEGデータをそ
のまま伝送するならば、6Mbps程度のビットレート
を必要とする。
As a streaming client for streaming with streaming data composed of MPEG signals, in addition to a personal computer that receives streaming data by optical communication with a transmission bit rate of 10 Mbps, an A with a transmission bit rate of several Mbps is used.
A personal computer that receives streaming data by DSL (Asymmetric Digital Subscriber Line) and W-CDMA (Wideband-Code Division Multiple A) that receives streaming data by a data communication channel having a transmission bit rate of 384 kbps to 2 Mbps.
ccess type mobile terminals are assumed. On the other hand, the streaming server uses MPE created by the content creator.
G data is stored, but this MPEG data is
It is high quality original MPEG data. If original MPEG data based on signals of conventional television systems such as NTSC system and PAL / SECAM system is directly transmitted, a bit rate of about 6 Mbps is required.

【0004】従って、種々のストリーミングクライアン
トにストリーミングデータを送信するためには、トラン
スコーダにより、オリジナルMPEGデータをそれより
も必要とする伝送ビットレートが低い2次的なMPEG
データに変換する必要がある。
Therefore, in order to transmit the streaming data to various streaming clients, the transcoder requires the original MPEG data, which is a secondary MPEG having a lower transmission bit rate.
Needs to be converted to data.

【0005】従来、トランスコーダによって符号量を削
減する方法として、(1)MPEGデコーダによりビデ
オ信号を復号してから、復号されたビデオ信号をMPE
Gエンコーダにより符号化する方法、(2)量子化スケ
ールを調整することにより、符号量を削減する方法、
(3)Pピクチャを間引くことにより、符号量を削減す
る方法、(4)IピクチャをPピクチャに変換すること
により、符号量を削減する方法及び(5)ダウンスケー
リングを行うことにより符号量を削減する方法が提案さ
れている。
Conventionally, as a method of reducing the code amount by a transcoder, (1) a video signal is decoded by an MPEG decoder and then the decoded video signal is MPE
A method of encoding by a G encoder, (2) a method of reducing the code amount by adjusting the quantization scale,
(3) A method of reducing the code amount by thinning out P pictures, (4) A method of reducing the code amount by converting an I picture into a P picture, and (5) A code amount by performing downscaling. A method of reducing is proposed.

【0006】MPEGデコーダによりビデオ信号を復号
してから、復号されたビデオ信号をMPEGエンコーダ
により符号化する方法について説明する。
A method of decoding a video signal with an MPEG decoder and then encoding the decoded video signal with an MPEG encoder will be described.

【0007】この方法は、最も原始的な方法であり、図
22に示すMPEGデコーダによりビデオ信号を復号し
てから、図23に示すMPEGエンコーダによりビデオ
信号を符号化する。
This method is the most primitive method, in which the video signal is decoded by the MPEG decoder shown in FIG. 22, and then the video signal is encoded by the MPEG encoder shown in FIG.

【0008】図22を参照すると、MPEGデコーダ
は、バッファ701、可変長復号器702、逆量子化器
703、逆離散コサイン変換器(IDCT)704、加算
器705、過去画像メモリ706、未来画像メモリ70
7、動き補償予測器708及びスイッチ709を備え
る。このMPEGデコーダは、ビデオストリーム751
を入力し、ビデオ信号752を出力する。また、逆量子
化器の逆量子化特性は量子化スケール753により定め
られる。量子化特性については後述する。また、MPE
Gデコーダの各部の動作は公知であるので、その説明は
省略する。
Referring to FIG. 22, the MPEG decoder comprises a buffer 701, a variable length decoder 702, an inverse quantizer 703, an inverse discrete cosine transformer (IDCT) 704, an adder 705, a past image memory 706 and a future image memory. 70
7, a motion compensation predictor 708 and a switch 709. This MPEG decoder is a video stream 751
Is input and a video signal 752 is output. The inverse quantization characteristic of the inverse quantizer is determined by the quantization scale 753. The quantization characteristic will be described later. Also, MPE
The operation of each part of the G decoder is well known, and therefore its explanation is omitted.

【0009】図23を参照すると、MPEGエンコーダ
は、スイッチ801、離散コサイン変換器(DCT)8
02、量子化器803、逆量子化器804、逆離散コサ
イン変換器(IDCT)804、加算器806、過去画
像メモリ807、未来画像メモリ808、動き検出部8
09、動き補償予測器810、スイッチ811、可変長
符号器813、バッファ814及び制御部815を備え
る。このMPEGエンコーダはMPEGデコーダが出力
するビデオ信号752をビデオ信号851として入力
し、ビデオストリーム852を出力する。量子化器80
3及び逆量子化器の量子化特性は量子化スケール853
により定められる。MPEGエンコーダの各部の動作は
公知であるので、その説明は省略する。
Referring to FIG. 23, the MPEG encoder comprises a switch 801, a discrete cosine transformer (DCT) 8
02, quantizer 803, inverse quantizer 804, inverse discrete cosine transformer (IDCT) 804, adder 806, past image memory 807, future image memory 808, motion detection unit 8
09, a motion compensation predictor 810, a switch 811, a variable length encoder 813, a buffer 814, and a control unit 815. This MPEG encoder inputs the video signal 752 output from the MPEG decoder as a video signal 851 and outputs a video stream 852. Quantizer 80
3 and the quantization characteristics of the inverse quantizer are the quantization scale 853
Is determined by Since the operation of each unit of the MPEG encoder is known, its description is omitted.

【0010】このMPEGデコーダとMPEGエンコー
ダを直列接続したトランスコーダにおいて、バッファ8
14からビデオストリームを読み出すビットレートをビ
デオストリーム751のビットレートとは異ならせるこ
とにより、トランスコーディングが可能となる。この場
合、バッファ814からビデオストリームを読み出すビ
ットレートに応じて量子化スケール853が変化する。
また、MPEGエンコーダが決定するGOP(Group Of
Pictures)の構成を変化させることによっても、トラン
スコーディングが可能となる。
In the transcoder in which the MPEG decoder and the MPEG encoder are connected in series, the buffer 8
By making the bit rate of reading the video stream from 14 different from the bit rate of the video stream 751, transcoding becomes possible. In this case, the quantization scale 853 changes according to the bit rate of reading the video stream from the buffer 814.
In addition, the GOP (Group Of
Transcoding is also possible by changing the structure of (Pictures).

【0011】量子化スケールを調整することにより、符
号量を削減する方法について説明する。
A method of reducing the code amount by adjusting the quantization scale will be described.

【0012】この方法を実現するためには、例えば、図
24に示すようなトランスコーダを用いる。このトラン
スコーダは、バッファ901、可変長符号器902、逆
量子化器903、量子化器904、マルチプレクサ90
5、可変長符号器906、バッファ907及び制御部9
08を備える。バッファ901、可変長復号器902及
び逆量子化器903は、公知のMPEGデコーダのもの
と同一であるので、その説明は省略する。量子化器90
4は、逆量子化器903が出力するDCT係数を制御部
908が出力するトランスコーディド量子化スケール9
54に従って、再量子化する。マルチプレクサ905
は、量子化器904が出力する再量子化されたDCT係
数のレベルを示す数値及びDCT係数以外のデータをマ
ルチプレクスする。可変長符号器906は、マルチプレ
クサ905が出力するデータを可変長符号化する。この
可変長符号化には、DCT係数の2次元ハフマン符号化
が含まれる。バッファ907は、可変長符号器906が
出力する可変長符号の発生頻度のゆらぎを吸収して一定
のビットレートでトランスコーディドビデオストリーム
952を出力する。制御部908は、バッファ907の
占有率及び所定の規則等に従ってトランスコーディド量
子化スケール954の値を定める。バッファ907から
トランスコーディドビデオストリーム952を読み出す
ビットレートを原ビデオストリーム951のビットスト
リームと異ならせることにより、トランスコーディド量
子化スケール954の値を調整することができる。ま
た、このように調整されたトランスコーディド量子化ス
ケール954は原量子化スケールとは、一般に異なる。
従って、原量子化スケール953をトランスコーディド
量子化スケール954に変換したことになる。
To implement this method, for example, a transcoder as shown in FIG. 24 is used. This transcoder includes a buffer 901, a variable length encoder 902, an inverse quantizer 903, a quantizer 904, and a multiplexer 90.
5, variable length encoder 906, buffer 907, and control unit 9
08. The buffer 901, the variable length decoder 902, and the inverse quantizer 903 are the same as those of a known MPEG decoder, and therefore their explanations are omitted. Quantizer 90
4 is a transcoded quantization scale 9 output from the control unit 908 for the DCT coefficient output from the inverse quantizer 903.
Requantization according to 54. Multiplexer 905
Multiplexes the data indicating the level of the requantized DCT coefficient output from the quantizer 904 and the data other than the DCT coefficient. The variable length encoder 906 performs variable length encoding on the data output from the multiplexer 905. This variable length coding includes two-dimensional Huffman coding of DCT coefficients. The buffer 907 absorbs fluctuations in the occurrence frequency of the variable length code output by the variable length encoder 906 and outputs the transcoded video stream 952 at a constant bit rate. The control unit 908 determines the value of the transcoded quantization scale 954 according to the occupation rate of the buffer 907, a predetermined rule, and the like. The value of the transcoded quantization scale 954 can be adjusted by making the bit rate of reading the transcoded video stream 952 from the buffer 907 different from that of the original video stream 951. Also, the transcoded quantization scale 954 thus adjusted is generally different from the original quantization scale.
Therefore, the original quantization scale 953 is converted into the transcoded quantization scale 954.

【0013】トランスコーディドビデオストリーム95
2を復号するMPEGデコーダは、図22に示すMPE
Gデコーダと同一であり、このMPEGデコーダは、ト
ランスコーディド量子化スケール954を量子化スケー
ル753として用いる。
Transcoded video stream 95
The MPEG decoder for decoding 2 is the MPE shown in FIG.
This is the same as the G decoder, and this MPEG decoder uses the transcoded quantization scale 954 as the quantization scale 753.

【0014】図22に示すトランスコーダの量子化器9
04では、マクロブロックがイントラマクロブロックで
あるか非イントラマクロブロックであるかにかかわら
ず、各マクロブロック内の各DCTブロックの8×8個
の画素をDCT変換して得られた8×8個のDCT係数
を量子化する。この量子化の結果得られるのは、量子化
後のDCT係数の振幅を示す数値である。そして、図2
2に示すMPEGデコーダでは、マクロブロックがイン
トラマクロブロックであるか非イントラマクロブロック
であるかにかかわらず、量子化後のDCT係数の振幅を
示す数値より量子化後のDCT係数を復元し、復元され
た8×8個のDCT係数を逆DCT変換して8×8個の
画素を復元する。
The quantizer 9 of the transcoder shown in FIG.
In 04, regardless of whether the macroblock is an intra macroblock or a non-intra macroblock, 8 × 8 pixels obtained by DCT transforming 8 × 8 pixels of each DCT block in each macroblock. Quantize the DCT coefficient of. The result of this quantization is a numerical value indicating the amplitude of the DCT coefficient after quantization. And FIG.
In the MPEG decoder shown in 2, regardless of whether the macroblock is an intra macroblock or a non-intra macroblock, the quantized DCT coefficient is restored from the numerical value indicating the amplitude of the quantized DCT coefficient and restored. The 8 × 8 DCT coefficients thus obtained are inversely DCT-transformed to restore 8 × 8 pixels.

【0015】イントラマクロブロック内のDCTブロッ
クのDCT係数のうちのAC係数F(m、n)(m、n
は0以上且つm+n≠0を満たす整数)は、振幅がゼロ
の付近のデッドゾーンを有しない量子化器により量子化
される。この量子化器のステップサイズS1は、AC係
数の成分により異なるので、S1(m、n)と表すこと
ができるが、ステップサイズS1(m、n)は、 S1(m、n)=2×イントラ量子化マトリックス
(m、n)×量子化スケール/32 と表される。
AC coefficient F (m, n) (m, n) of the DCT coefficients of the DCT block in the intra macroblock
Is greater than or equal to 0 and an integer satisfying m + n ≠ 0) is quantized by a quantizer having no dead zone near the amplitude of zero. Since the step size S1 of this quantizer differs depending on the AC coefficient component, it can be expressed as S1 (m, n). However, the step size S1 (m, n) is S1 (m, n) = 2 × It is expressed as Intra quantization matrix (m, n) × quantization scale / 32.

【0016】この量子化器に対応する逆量子化器により
得られる量子化後のDCT係数の振幅F1(m、n)
は、量子化器が出力する量子化後のDCT係数の振幅F
1(m、n)を示す数値をQF1(m、n)とすれば、 F1(m、n)=2×QF1(m、n)×イントラ量子
化マトリックス(m、n)×量子化 スケール/32となる。
Amplitude F1 (m, n) of the quantized DCT coefficient obtained by the inverse quantizer corresponding to this quantizer
Is the amplitude F of the quantized DCT coefficient output from the quantizer.
If the numerical value indicating 1 (m, n) is QF1 (m, n), then F1 (m, n) = 2 × QF1 (m, n) × intra quantization matrix (m, n) × quantization scale / 32.

【0017】非イントラマクロブロック内のDCTブロ
ックのDCT係数F(m、n)(m、nは0以上の整
数)は、振幅がゼロの付近のデッドゾーンを有する量子
化器により量子化される。この量子化器のステップサイ
ズS2は、DCT係数の成分により異なるので、S2
(m、n)と表すことができるが、ステップサイズS2
(m、m)は、 S2(m、n)=2×量子化スケール×非イントラ量子
化マトリックス(m、n)/32 と表される。
The DCT coefficient F (m, n) (m, n is an integer equal to or greater than 0) of the DCT block in the non-intra macroblock is quantized by a quantizer having a dead zone near the amplitude of zero. . Since the step size S2 of this quantizer differs depending on the DCT coefficient component, S2
Can be expressed as (m, n), but the step size S2
(M, m) is expressed as S2 (m, n) = 2 × quantization scale × non-intra-quantization matrix (m, n) / 32.

【0018】この量子化器に対応する逆量子化器により
得られる量子化後のDCT係数の振幅F2(m、n)
は、量子化器が出力する量子化後のDCT係数の振幅F
2(m、n)を示す数値をQF2(m、n)とすれば、 F2(m、n)=(2×QF2(m、n)+k)×非イ
ントラ量子化マトリックス(m、n)×量子化スケール
/32 ただし、 k=sign(QF2(m、n)) となる。
Amplitude F2 (m, n) of the quantized DCT coefficient obtained by the inverse quantizer corresponding to this quantizer
Is the amplitude F of the quantized DCT coefficient output from the quantizer.
If the numerical value indicating 2 (m, n) is QF2 (m, n), then F2 (m, n) = (2 × QF2 (m, n) + k) × non-intra-quantized matrix (m, n) × Quantization scale / 32 However, k = sign (QF2 (m, n)).

【0019】ここで、上2式の量子化スケールは、q_sc
ale_typeの値が0であるときには、 量子化スケール=2×量子化スケールコード と表され、q_scale_typeの値が1であるときには、 量子化スケール=function(量子化スケールコ
ード) と表される。ここで、functionは非線形特性を
示す。図25に量子化スケールコード対量子化スケール
の特性の例を示す。
Here, the quantization scale of the above two equations is q_sc
When the value of ale_type is 0, it is expressed as quantization scale = 2 × quantization scale code, and when the value of q_scale_type is 1, it is expressed as quantization scale = function (quantization scale code). Here, function shows a non-linear characteristic. FIG. 25 shows an example of the characteristics of the quantization scale code versus the quantization scale.

【0020】q_scale_typeはピクチャ毎に定めることが
でき、量子化スケールコードはマクロブロック毎に定め
ることができる。従って、ピクチャ毎にq_scale_typeの
値を調整し、且つ、マクロブロック毎に量子化スケール
コードの値をこれが大きくなるように調整することによ
り、マクロブロック毎の量子化スケールを大きくするこ
とができる。そして、量子化スケールを大きくすること
により、量子化されたDCTブロックのDCT係数を表
す数値の値を小さくして、符号量を削減することができ
る。
The q_scale_type can be set for each picture, and the quantization scale code can be set for each macroblock. Therefore, by adjusting the value of q_scale_type for each picture and adjusting the value of the quantization scale code for each macroblock so as to be large, the quantization scale for each macroblock can be increased. Then, by increasing the quantization scale, it is possible to reduce the value of the numerical value representing the DCT coefficient of the quantized DCT block and reduce the code amount.

【0021】Pピクチャを間引くことにより、符号量を
削減する方法について説明する。
A method of reducing the code amount by thinning out P pictures will be described.

【0022】図26に示すように、ピクチャを間引くこ
とにより間引いたピクチャの分だけ符号量を削減するこ
とができる。図26(a)に示すような構造を有するG
OP(Group Of Pictures)が与えられたとする。僅かに
符号量を削減する場合には、図26(b)に示すよう
に、B2ピクチャ、B5ピクチャ及びB8ピクチャを間引
く。この場合には、復号器では、例えば、B2ピクチャ
をI1ピクチャで補間し、B5ピクチャをP4ピクチャで
補間し、B8ピクチャをP7ピクチャで補間すればよいの
で、トランスコーダは、間引かれていないピクチャを再
符号化する必要はない。更に、符号量を削減する場合に
は、図26(c)に示すように、B2ピクチャ、B3ピク
チャ、B5ピクチャ、B6ピクチャ、B8ピクチャ及びB9
ピクチャを間引く。この場合には、復号器では、例え
ば、B2ピクチャ及びB3ピクチャをI 1ピクチャで補間
し、B5ピクチャ及びB6ピクチャをP4ピクチャで補間
し、B8ピクチャ及びB9ピクチャをP7ピクチャで補間
すればよいので、トランスコーダは、間引かれていない
ピクチャを再符号化する必要はない。更に、符号量を削
減する場合には、図26(d)に示すように、B2ピク
チャ、B3ピクチャ、B5ピクチャ、B6ピクチャ、B8
クチャ及びB9ピクチャに加えてP4ピクチャを間引く。
この場合には、復号器では、例えば、B2ピクチャ、B3
ピクチャ、P4ピクチャ及びB5ピクチャをI1ピクチャ
で補間し、B6ピクチャ、B8ピクチャ及びB 9ピクチャ
をP7ピクチャで補完する。しかし、P7ピクチャは、P
4ピクチャから元々動き補償予測されているので、復号
器では、P4ピクチャが間引かれていると、P7ピクチャ
を復号することができない。そこで、トランスコーダ
は、P7ピクチャをI1ピクチャから動き補償予測して、
予測誤差を符号化しなければならない。
As shown in FIG. 26, the picture can be thinned out.
The code amount can be reduced by the amount of pictures thinned out by
You can G having a structure as shown in FIG.
It is assumed that OP (Group Of Pictures) is given. Slightly
When reducing the code amount, as shown in FIG.
To B2Picture, BFivePicture and B8Thin out pictures
Ku. In this case, in the decoder, for example, B2Picture
I1Interpolate with picture, BFiveP the pictureFourIn the picture
Interpolate, B8P the picture7Just interpolate with a picture
The transcoder then re-displays the undecimated pictures.
No need to encode. Furthermore, when reducing the code amount
Is, as shown in FIG.2Picture, B3Piku
Cha, BFivePicture, B6Picture, B8Picture and B9
Thin out pictures. In this case, the decoder
For example, B2Picture and B3Picture I 1Interpolate with picture
Then BFivePicture and B6P the pictureFourInterpolate with picture
Then B8Picture and B9P the picture7Interpolate with picture
Transcoder is not thinned out so
There is no need to re-encode the picture. In addition, reduce the code amount
In the case of decreasing, as shown in FIG.2Piku
Cha, B3Picture, BFivePicture, B6Picture, B8Pi
Kucha and B9P in addition to the pictureFourThin out pictures.
In this case, in the decoder, for example, B2Picture, B3
Picture, PFourPicture and BFivePicture I1Picture
Interpolate with, B6Picture, B8Picture and B 9Picture
To P7Complement with a picture. But P7Picture is P
FourSince motion-compensated prediction is originally made from the picture, decoding
In the container, PFourIf the picture is thinned out, P7Picture
Cannot be decrypted. So transcoder
Is P7Picture I1Motion-compensated prediction from the picture,
The prediction error must be encoded.

【0023】IフレームをPフレームに変換することに
より、符号量を削減する方法について説明する。
A method of reducing the code amount by converting an I frame into a P frame will be described.

【0024】GOPは、Iピクチャ、Pピクチャ、Bピ
クチャより構成されるが、1ピクチャあたりの符号量
は、Iピクチャが最も多く、Pピクチャ、Bピクチャと
続く。そこで、図27に示すように、GOP2のI10
クチャをP10ピクチャに変換することにより、符号量を
削減する。このためには、トランスコーダは、P10ピク
チャをP7ピクチャから動き補償予測して、予測誤差を
符号化しなければならない。
The GOP is composed of I-pictures, P-pictures and B-pictures, and the code amount per picture is the largest for I-pictures, followed by P-pictures and B-pictures. Therefore, as shown in FIG. 27, the code amount is reduced by converting the I 10 picture of GOP2 into the P 10 picture. To do this, the transcoder must perform motion-compensated prediction of the P 10 picture from the P 7 picture and encode the prediction error.

【0025】Bピクチャ及びPピクチャを間引くことに
より、符号量を削減する方法とIフレームをPフレーム
に変換することにより、符号量を削減する方法を組み合
わせた場合の例を図28に示すが、この例では、B2
クチャ、B3ピクチャ、P4ピクチャ、B5ピクチャ、B6
ピクチャ、P7ピクチャ、B8ピクチャ、B9ピクチャ、
11ピクチャ、B12ピクチャ、P13ピクチャ、B14ピク
チャ、B15ピクチャ、P16ピクチャ、B17ピクチャ、B
18ピクチャが間引かれ、I10ピクチャがP10ピクチャに
変換される。この場合には、P10ピクチャは、これに最
も近い過去のピクチャであるI1ピクチャから動き補償
予測されることになる。
FIG. 28 shows an example in which a method for reducing the code amount by thinning out B pictures and P pictures and a method for reducing the code amount by converting an I frame into a P frame are combined. In this example, B 2 picture, B 3 picture, P 4 picture, B 5 picture, B 6 picture
Picture, P 7 picture, B 8 picture, B 9 picture,
B 11 picture, B 12 picture, P 13 picture, B 14 picture, B 15 picture, P 16 picture, B 17 picture, B
18 picture is thinned out, I 10 picture is converted into P 10 picture. In this case, the P 10 picture is motion-compensated and predicted from the I 1 picture which is the closest past picture.

【0026】ダウンスケーリングを行うことにより符号
量を削減する方法について説明する。
A method of reducing the code amount by performing downscaling will be described.

【0027】画像に含まれる画素数を削減することをダ
ウンスケーリングという。例えば、640(水平方向)
×480(垂直方向)のフレームを320(水平方向)
×240(垂直方向)のフレームに縮小することにより
画像に含まれる画素数を削減する。この場合、ダウンス
ケーリング前のDCTブロックを2(水平方向)×2
(垂直方向)個集めたものがダウンスケーリング後の1
つのDCTブロックとなる。最も単純なダウンスケーリ
ングは、画像符号を復号して復号画像を得て、復号画像
を再符号化するものである。再符号化する際に、画像符
号を復号したときに得られた動きベクトルを再利用でき
る場合もある。
Reducing the number of pixels included in an image is called downscaling. For example, 640 (horizontal direction)
320 x 480 (vertical direction) frames (horizontal direction)
The number of pixels included in the image is reduced by reducing the frame size to × 240 (vertical direction). In this case, the DCT block before downscaling is 2 (horizontal direction) × 2
(Vertical direction) The collected one is the downscaled 1
One DCT block. The simplest downscaling is to decode the image code to obtain the decoded image and re-encode the decoded image. At the time of re-encoding, the motion vector obtained when the image code is decoded may be reused in some cases.

【0028】[0028]

【発明が解決しようとする課題】ところで、ストリーミ
ングは、同時に多数のストリーミングクライアントが行
う。従って、ストリーミングサーバは、同時に多数のス
トリーミングクライアントにストリーミングデータを送
信する必要がある。そして、ストリーミングクライアン
トは上記のように多種あり、それに応じてストリーミン
グデータのビットレートも多種ある。従って、ストリー
ミングサーバは、多種のビットレートのストリーミング
データを同時に生成するために、多数のトランスコーデ
ィングを同時に行わなければならない。
By the way, streaming is performed by a large number of streaming clients at the same time. Therefore, the streaming server needs to send streaming data to many streaming clients at the same time. There are various types of streaming clients as described above, and accordingly, there are various types of bit rates of streaming data. Therefore, the streaming server must perform a large number of transcodings simultaneously in order to simultaneously generate streaming data of various bit rates.

【0029】原始的なトランスコーディングの方法を利
用した場合には、全てのデコード処理及び全てのエンコ
ード処理が必要であるので、大量の処理を必要とする。
When the primitive transcoding method is used, a large amount of processing is required since all decoding processing and all encoding processing are required.

【0030】また、例えば、Pピクチャの間引きを行う
トランスコーディング、IピクチャのPピクチャへの変
換を行うトランスコーディング、ダウンスケーリングを
行うトランスコーディングは、動き補償予測を行うため
に動き予測ベクトルをマクロブロック毎に必要とする。
そして、トランスコーディング前の動き予測ベクトルを
トランスコーディング後のマクロブロックに再利用でき
る場合もあるが、できない場合もある。トランスコーデ
ィング前の動き予測ベクトルをトランスコーディング後
のマクロブロックに再利用できない場合には、動き予測
ベクトルの生成は大量の演算を必要とするので、このよ
うなトランスコーディングは演算量が非常に多い。従っ
て、1つのストリーミングサーバでCPUを用いて多数
のこれらの種類のトランスコーディングをすることは、
現在のCPU能力を考えると殆ど不可能である。量子化
スケールの調整を行うトランスコーディングは、Pピク
チャの間引きを行うトランスコーディング、Iピクチャ
のPピクチャへの変換を行うトランスコーディング、ダ
ウンスケーリングを行うトランスコーディングに比べ
て、必要とする演算量が少ないが、このトランスコーデ
ィングを用いた場合であっても、1つのストリーミング
サーバでCPUを用いて多数のこの種類のトランスコー
ディングをすることは、現在のCPU能力を考えると非
常に困難である。特に、将来は、同時にストリーミング
を行うストリーミングクライアントの数が増大すること
が予測されるので、この問題が深刻となることが予測さ
れる。
In addition, for example, in transcoding for thinning out P pictures, transcoding for converting I pictures into P pictures, and transcoding for downscaling, a motion prediction vector is used as a macroblock for motion compensation prediction. You need each.
In some cases, the motion vector predictor before transcoding can be reused in the macroblock after transcoding, but in some cases it cannot be reused. When the motion vector predictor before transcoding cannot be reused for the macroblock after transcoding, the generation of the motion vector predictor requires a large amount of calculation, and thus such transcoding has a large amount of calculation. Therefore, doing a large number of these types of transcoding with a CPU on one streaming server is:
Considering the current CPU power, it is almost impossible. Transcoding for adjusting the quantization scale requires less computation than transcoding for thinning out P pictures, transcoding for converting I pictures into P pictures, and transcoding for downscaling. However, even if this transcoding is used, it is very difficult to perform a large number of this type of transcoding using the CPU in one streaming server in view of the current CPU capability. In particular, in the future, it is expected that the number of streaming clients performing simultaneous streaming will increase, so that this problem is expected to become serious.

【0031】また、量子化スケールを調整することによ
り、符号量を削減するトランスコーディングでは、同一
のマクロブロック内の全てのDCTブロックの全てのD
CT係数が一律に粗く量子化されることとなるので、画
質が劣化する。Pピクチャを間引くことにより、符号量
を削減するトランスコーディングでは、フレームレート
が落ちるので、動きがぎくしゃくして、画質が劣化す
る。IピクチャをPピクチャに変換することにより、符
号量を削減するトランスコーディングでは、エラー耐性
が弱くなるので、僅かなエラーが発生しただけでも、画
質が劣化する。ダウンスケーリングを行うことにより符
号量を削減するトランスコーディングでは、画面が小さ
くなるので、解像度が落ちて、画質が劣化する。
Further, in transcoding in which the code amount is reduced by adjusting the quantization scale, all Ds of all DCT blocks within the same macroblock are processed.
Since the CT coefficients are uniformly quantized roughly, the image quality deteriorates. In transcoding in which the amount of code is reduced by thinning out P pictures, the frame rate drops, so the motion becomes jerky and the image quality deteriorates. In the transcoding in which the code amount is reduced by converting the I picture into the P picture, the error resistance becomes weak, so that the image quality deteriorates even if a few errors occur. In transcoding in which the amount of codes is reduced by performing downscaling, the screen becomes smaller, so the resolution drops and the image quality deteriorates.

【0032】本発明は、上記の問題点に鑑みてなされた
ものであり、演算量が少なく且つ一定の画質を維持でき
るトランスコーダ及びトランスコーディング方法を提供
することを目的とする。
The present invention has been made in view of the above problems, and it is an object of the present invention to provide a transcoder and a transcoding method that can maintain a constant image quality with a small amount of calculation.

【0033】[0033]

【課題を解決するための手段】本発明の第1の観点によ
れば、第1の画像符号を復号して画像の各符号化ブロッ
クの周波数成分を得る復号手段と、各符号化ブロックを
再符号化したときに各符号化ブロック当たりの符号量が
減少するように、各符号化ブロックの周波数成分の全て
又は一部の振幅を減少し又はゼロにする振幅変更手段
と、周波数成分の全て又は一部の振幅が減少し又はゼロ
になった各ブロックの周波数成分を再符号化して第2の
画像符号を得る再符号手段と、を備える画像符号のトラ
ンスコーダにおいて、前記振幅変更手段は、各ブロック
の周波数成分に低域通過フィルタをかけることを特徴と
する画像符号のトランスコーダが提供される。
According to a first aspect of the present invention, decoding means for decoding a first image code to obtain a frequency component of each coded block of an image, and for each coded block Amplitude changing means for reducing or zeroing the amplitude of all or some of the frequency components of each coding block so that the amount of code per each coding block decreases when encoded, and all of the frequency components or Re-encoding means for re-encoding the frequency component of each block in which a part of the amplitude has decreased or has become zero, and a re-encoding means for obtaining a second image code. An image code transcoder is provided which is characterized by low-pass filtering the frequency components of a block.

【0034】上記の画像符号のトランスコーダにおい
て、前記振幅変更手段により振幅がゼロになった周波数
成分のうちの1つ以上の周波数成分の振幅を非ゼロにす
る手段を更に備えていてもよい。
The above-mentioned image code transcoder may further comprise means for making non-zero the amplitude of one or more frequency components among the frequency components whose amplitude has become zero by the amplitude changing means.

【0035】上記の画像符号のトランスコーダは、前記
第1の画像符号の量から前記第2の画像符号の量への削
減率を計測する計測手段と、計測された前記削減率が目
標削減率になるように、前記低域通過フィルタの周波数
特性を変化させる制御手段と、を更に備えていてもよ
い。
The above-mentioned image code transcoder measures means for measuring the reduction rate from the amount of the first image code to the amount of the second image code, and the measured reduction rate is the target reduction rate. So that the frequency characteristic of the low-pass filter is changed.

【0036】本発明の第2の観点によれば、第1の画像
符号を復号して画像の各符号化ブロックの周波数成分を
得る復号手段と、各符号化ブロックを再符号化したとき
に各符号化ブロック当たりの符号量が減少するように、
各符号化ブロックの周波数成分の全て又は一部の振幅を
減少し又はゼロにする振幅変更手段と、周波数成分の全
て又は一部の振幅が減少し又はゼロになった各ブロック
の周波数成分を再符号化して第2の画像符号を得る再符
号手段と、を備える画像符号のトランスコーダにおい
て、前記振幅変更手段は、全て又は一部の周波数成分を
1よりも大きい整数で除算し、その商を切り捨てて整数
化し、整数化の結果を前記整数で乗算することを特徴と
する画像符号のトランスコーダが提供される。
According to a second aspect of the present invention, decoding means for decoding the first image code to obtain the frequency component of each coded block of the image, and each decoding block when the coded block is re-coded To reduce the amount of code per coding block,
Amplitude changing means that reduces or reduces the amplitude of all or part of the frequency components of each encoded block, and re-creates the frequency components of each block in which the amplitude of all or part of the frequency components is reduced or becomes zero. In a transcoder for an image code, which comprises a re-encoding means for encoding to obtain a second image code, the amplitude changing means divides all or some of the frequency components by an integer greater than 1, and calculates the quotient. An image code transcoder is provided, which is rounded down to an integer and the result of the integer is multiplied by the integer.

【0037】上記の画像符号のトランスコーダは、前記
振幅変更手段により振幅がゼロになった周波数成分のう
ちの1つ以上の周波数成分の振幅を非ゼロにする手段を
更に備えていてもよい。
The above-mentioned image code transcoder may further comprise means for making non-zero the amplitude of one or more frequency components among the frequency components whose amplitude has become zero by the amplitude changing means.

【0038】上記の画像符号のトランスコーダは、前記
第1の画像符号の量から前記第2の画像符号の量への削
減率を計測する計測手段と、計測された前記削減率が目
標削減率になるように、前記整数を変化させる制御手段
と、を更に備えていてもよい。
The above-mentioned image code transcoder measures the reduction rate from the amount of the first image code to the amount of the second image code, and the measured reduction rate is the target reduction rate. The control means for changing the integer may further be provided.

【0039】本発明の第3の観点によれば、第1の画像
符号を復号して画像の各符号化ブロックの周波数成分を
得る復号手段と、各符号化ブロックを再符号化したとき
に各符号化ブロック当たりの符号量が減少するように、
各符号化ブロックの周波数成分の全て又は一部の振幅を
減少し又はゼロにする振幅変更手段と、周波数成分の全
て又は一部の振幅が減少し又はゼロになった各ブロック
の周波数成分を再符号化して第2の画像符号を得る再符
号手段と、を備える画像符号のトランスコーダにおい
て、前記振幅変更手段は、各符号化ブロックの周波数成
分をスキャンしたときに非ゼロの周波数成分と該非ゼロ
の周波数成分に先行するゼロの数に対応する可変長符号
の長さが1段階又は数段階短くなるように該非ゼロの周
波数成分の振幅を減少させ又はゼロにすることを特徴と
する画像符号のトランスコーダが提供される。
According to a third aspect of the present invention, a decoding means for decoding the first image code to obtain the frequency component of each coded block of the image, and each decoding block when the coded block is re-coded To reduce the amount of code per coding block,
Amplitude changing means that reduces or reduces the amplitude of all or part of the frequency components of each encoded block, and re-creates the frequency components of each block in which the amplitude of all or part of the frequency components is reduced or becomes zero. In a transcoder for an image code, which comprises re-encoding means for encoding to obtain a second image code, the amplitude changing means includes a non-zero frequency component and the non-zero frequency component when the frequency component of each encoded block is scanned. Of the non-zero frequency component so that the length of the variable-length code corresponding to the number of zeros preceding the frequency component is reduced by one or several steps. A transcoder is provided.

【0040】上記の画像符号のトランスコーダにおい
て、振幅を減少させ又はゼロにする非ゼロの周波数成分
を、該非ゼロの周波数成分と該非ゼロの周波数成分に先
行するゼロの数に対応する可変長符号の長さが短くなる
ように減少された後の振幅のそのように減少される前の
振幅と比べた削減率が所定の割合以下であるものに限っ
てもよい。
In the above-mentioned image code transcoder, a variable-length code corresponding to the number of zeros leading to the non-zero frequency component and the non-zero frequency component, the non-zero frequency component of which amplitude is reduced or made zero. May be limited to those in which the reduction ratio of the amplitude after the length is reduced to be shorter than the amplitude before the reduction is less than or equal to a predetermined ratio.

【0041】上記の画像符号のトランスコーダにおい
て、振幅を減少させ又はゼロにする非ゼロの周波数成分
を、該非ゼロの周波数成分と該非ゼロの周波数成分に先
行するゼロの数に対応する可変長符号の長さが短くなる
ように減少された後の振幅をそのように減少される前の
振幅から差し引いた差が所定の値以下であるものに限っ
てもよい。
In the above-mentioned image code transcoder, a non-zero frequency component whose amplitude is reduced or reduced to zero corresponds to the non-zero frequency component and the number of zeros preceding the non-zero frequency component. May be limited to those in which the difference between the amplitude after being reduced to a shorter length and the amplitude before being so reduced is less than or equal to a predetermined value.

【0042】上記の画像符号のトランスコーダは、前記
振幅変更手段により振幅がゼロになった周波数成分のう
ちの1つ以上の周波数成分の振幅を非ゼロにする手段を
更に備えていてもよい。
The above-mentioned image code transcoder may further comprise means for making the amplitude of one or more frequency components among the frequency components whose amplitude has become zero by the amplitude changing means non-zero.

【0043】上記の画像符号のトランスコーダは、前記
第1の画像符号の量から前記第2の画像符号の量への削
減率を計測する計測手段と、計測された前記削減率が目
標削減率になるように、振幅を減少し又はゼロにする周
波数成分の数を変化させる制御手段と、を更に備えてい
てもよい。
The above-mentioned image code transcoder measures the reduction rate from the amount of the first image code to the amount of the second image code, and the measured reduction rate is the target reduction rate. Therefore, the control means for changing the number of frequency components for decreasing or zeroing the amplitude may further be provided.

【0044】上記の画像符号のトランスコーダは、前記
第1の画像符号の量から前記第2の画像符号の量への削
減率を計測する手段と、計測された前記削減率が目標削
減率になるように、振幅を減少し又はゼロにする程度を
変化させる制御手段と、を更に備えていてもよい。
The above-mentioned image code transcoder measures the reduction rate from the amount of the first image code to the amount of the second image code, and the measured reduction rate is the target reduction rate. So as to reduce the amplitude or change the degree to which the amplitude is reduced to zero.

【0045】本発明の第4の観点によれば、第1の画像
符号を復号して画像の各符号化ブロックの周波数成分を
得る復号手段と、各符号化ブロックを再符号化したとき
に各符号化ブロック当たりの符号量が減少するように、
各符号化ブロックの周波数成分の全て又は一部の振幅を
減少し又はゼロにする振幅変更手段と、周波数成分の全
て又は一部の振幅が減少し又はゼロになった各ブロック
の周波数成分を再符号化して第2の画像符号を得る再符
号手段と、を備える画像符号のトランスコーダにおい
て、前記振幅変更手段は、各符号化ブロックの周波数成
分をスキャンしたときの最後から1個又はそれ以上の数
の非ゼロの周波数成分をゼロにすることを特徴とする画
像符号のトランスコーダが提供される。
According to a fourth aspect of the present invention, the decoding means for decoding the first image code to obtain the frequency component of each coded block of the image and the decoding means for each coded block when re-coded To reduce the amount of code per coding block,
Amplitude changing means that reduces or reduces the amplitude of all or part of the frequency components of each encoded block, and re-creates the frequency components of each block in which the amplitude of all or part of the frequency components is reduced or becomes zero. In a transcoder for an image code, which comprises a re-encoding means for encoding to obtain a second image code, the amplitude changing means is one or more from the end when the frequency component of each encoded block is scanned. An image code transcoder is provided which is characterized by zeroing out a number of non-zero frequency components.

【0046】上記の画像符号のトランスコーダは、前記
第1の画像符号の量から前記第2の画像符号の量への削
減率を計測する手段と、計測された前記削減率が目標削
減率になるように、ゼロにする非ゼロの周波数成分の数
を変化させる制御手段と、を更に備えていてもよい。
The above-mentioned image code transcoder measures the reduction rate from the amount of the first image code to the amount of the second image code, and the measured reduction rate is the target reduction rate. As described above, a control unit that changes the number of non-zero frequency components to be zero may be further included.

【0047】本発明の第5の観点によれば、第1の画像
符号を復号して画像の各符号化ブロックの周波数成分を
得る復号手段と、各符号化ブロックを再符号化したとき
に各符号化ブロック当たりの符号量が減少するように、
各符号化ブロックの周波数成分の全て又は一部の振幅を
減少し又はゼロにする振幅変更手段と、前記振幅変更手
段により振幅がゼロになった周波数成分のうちの1つ以
上の周波数成分の振幅を非ゼロにする手段と、周波数成
分の全て又は一部の振幅が減少し又はゼロになった各ブ
ロックの周波数成分を再符号化して第2の画像符号を得
る再符号手段と、を備える画像符号のトランスコーダが
提供される。
According to a fifth aspect of the present invention, a decoding means for decoding the first image code to obtain the frequency component of each coded block of the image, and each decoding block when the coded block is re-coded To reduce the amount of code per coding block,
Amplitude changing means for reducing or zeroing the amplitude of all or part of the frequency components of each coding block, and the amplitude of one or more frequency components of which the amplitude has become zero by the amplitude changing means. And non-zero means, and re-encoding means for re-encoding the frequency components of each block in which the amplitude of all or part of the frequency components has decreased or became zero to obtain a second image code. A code transcoder is provided.

【0048】上記の画像符号のトランスコーダは、前記
第1の画像符号の量から前記第2の画像符号の量への削
減率を計測する計測手段と、計測された前記削減率が目
標削減率になるように、前記振幅変更手段を制御する制
御手段と、を更に備えていてもよい。
The above-described image code transcoder measures the reduction rate from the amount of the first image code to the amount of the second image code, and the measured reduction rate is the target reduction rate. The control means for controlling the amplitude changing means may further be provided.

【0049】[0049]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態について詳細に説明する。
DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0050】図1は、本発明の実施形態によるトランス
コーダの構成を示す。図2は、本発明の実施形態による
トランスコーダの入出力信号のフォーマットを示す。図
1に示すトランスコーダは、図2に示すフォーマットの
原プログラムストリーム151を入力し、これをトラン
スコードして、図2に示すフォーマットのトランスコー
ディドプログラムストリーム161を出力する。プログ
ラムストリームは、MPEG2の規格で定められたもの
である。図2を参照すると明らかなように、トランスコ
ーディドプログラムストリーム161は、原プログラム
ストリーム151と比較すると、スライス(スライス1
〜6)が短くなっている点が相違し、他の部分は同一で
ある。
FIG. 1 shows the structure of a transcoder according to an embodiment of the present invention. FIG. 2 shows a format of an input / output signal of the transcoder according to the embodiment of the present invention. The transcoder shown in FIG. 1 receives the original program stream 151 in the format shown in FIG. 2, transcodes it, and outputs the transcoded program stream 161 in the format shown in FIG. The program stream is defined by the MPEG2 standard. As apparent from FIG. 2, the transcoded program stream 161 has a slice (slice 1) when compared with the original program stream 151.
6-6 are different in that they are shorter, and other parts are the same.

【0051】図1を参照すると、本発明の実施形態によ
るトランスコーダは、ビデオPES(Packetized Elemen
tary Stream)検出部101、ビデオPESトランスコー
ダ102、トランスコーディドビデオPESFIFO1
03、PESカウンタ104、原プログラムストリーム
FIFO105、Dタイプフリップフロップ106、減
算器107、比較器108、ラッチ109、トランスコ
ーディドビデオPESカウンタ110、比較器111、
立ち上がり検出回路112、RSフリップフロップ11
3、マルチプレクサ114を備える。
Referring to FIG. 1, a transcoder according to an embodiment of the present invention is a video PES (Packetized Elemen).
tary Stream) detection unit 101, video PES transcoder 102, transcoded video PESFIFO1
03, PES counter 104, original program stream FIFO 105, D type flip-flop 106, subtractor 107, comparator 108, latch 109, transcoded video PES counter 110, comparator 111,
Rise detection circuit 112, RS flip-flop 11
3, the multiplexer 114 is provided.

【0052】ビデオPES検出部101は、主に原プロ
グラムストリーム151のうちのビデオPESの検出を
行う。ビデオPES検出部101は、原プログラムスト
リーム151を入力し、原プログラムストリーム15
1、原プログラムストリーム151のうちのビデオPE
Sを検出した部分でアクティブになるビデオPESイネ
ーブル信号171、原プログラムストリーム151から
PESスタートコード検出信号を検出した時にアクティ
ブになるPESスタートコード検出信号及び原プログラ
ムストリーム151のうちのビデオPESの末部を検出
したときにアクティブとなるビデオPES末部検出信号
173を出力する。
The video PES detector 101 mainly detects the video PES in the original program stream 151. The video PES detector 101 receives the original program stream 151 and inputs the original program stream 151.
1. Video PE in original program stream 151
The video PES enable signal 171, which becomes active at the portion where S is detected, the PES start code detection signal which becomes active when a PES start code detection signal is detected from the original program stream 151, and the end of the video PES in the original program stream 151. The video PES end detection signal 173 which becomes active when is detected is output.

【0053】ビデオPESトランスコーダ102は、ビ
デオPES内の各スライスに含まれる各DCTブロック
当たりの画像符号の量を削減する。この削減により、各
スライスが短くなり、また、各ビデオPESが短くな
る。このように短くされたビデオPESがトランスコー
ディドビデオPES152である。ビデオPESトラン
スコーダ102は、原プログラムストリーム151、ビ
デオPESイネーブル信号171、ビデオPES末部検
出信号173及び削減率指示信号176を入力し、トラ
ンスコーディドビデオPES152、ビデオPES末部
検出信号173及びトランスコーディドビデオPESイ
ネーブル信号174を出力する。トランスコーディドビ
デオPESイネーブル信号174は、ビデオPESトラ
ンスコーダ102が有効なトランスコーディドビデオP
ES152を出力しているときにアクティブとなる信号
である。ビデオPESトランスコーダ102の入出力信
号のタイミング図を図3に示す。ビデオPESイネーブ
ル信号171は、ビデオPES(ビデオPES1、ビデ
オPES2、ビデオPES3)の部分でアクティブとな
る。ビデオPES末部検出信号173は、ビデオPES
(ビデオPES1、ビデオPES2、ビデオPES3)
の末部でアクティブとなる。トランスコーディドビデオ
PES152は、原プログラムストリーム中のビデオP
ESと比較すると、各スライス(スライス1’、・・・
スライス6’)が短くなっている点において相違する。
トランスコーディドビデオPESイネーブル信号174
は、トランスコーディドビデオPESの各スライスのう
ちの有効な画像符号が含まれている部分及びスライス以
外の部分(ユーザデータ1、ユーザデータ2、ユーザデ
ータ3)でアクティブとなる。ビデオPESトランスコ
ーダ102の構成及び動作の詳細な説明は後にする。
The video PES transcoder 102 reduces the amount of image code for each DCT block included in each slice in the video PES. This reduction shortens each slice and each video PES. The video PES shortened in this way is the transcoded video PES152. The video PES transcoder 102 receives the original program stream 151, the video PES enable signal 171, the video PES end detection signal 173, and the reduction rate instruction signal 176, and receives the transcoded video PES 152, the video PES end detection signal 173, and the transformer. The coded video PES enable signal 174 is output. The transcoded video PES enable signal 174 indicates that the transcoded video PES is valid for the video PES transcoder 102.
This signal is active when the ES 152 is being output. A timing diagram of input / output signals of the video PES transcoder 102 is shown in FIG. The video PES enable signal 171 becomes active in the video PES (video PES1, video PES2, video PES3) portion. The video PES end detection signal 173 is the video PES.
(Video PES1, Video PES2, Video PES3)
Become active at the end of. The transcoded video PES152 is the video P in the original program stream.
Compared to ES, each slice (slice 1 ', ...
The difference is that the slice 6 ') is shorter.
Transcoded video PES enable signal 174
Is active in a portion of each slice of the transcoded video PES that includes a valid image code and a portion other than the slice (user data 1, user data 2, user data 3). A detailed description of the structure and operation of the video PES transcoder 102 will be given later.

【0054】図1に戻ると、トランスコーディドビデオ
PESFIFO103は、トランスコーディドビデオP
ESイネーブル信号174をライトイネーブル(WE
N)として使用することにより、有効なトランスコーデ
ィドビデオPES及びビデオPES末部検出信号173
のみを一時記憶し、RSフリップフロップ113が出力
するマルチプレクス制御信号(後述)に従って、これら
を出力する。従って、トランスコーディドビデオPES
FIFO103は、ビデオPESのうちの画像符号のな
いスライス末部を除去する機能と、トランスコーディド
ビデオPESを可変遅延する機能を有する。
Returning to FIG. 1, the transcoded video PESFIFO 103 has the transcoded video P
Write the ES enable signal 174 to the write enable (WE
N) as a valid transcoded video PES and video PES end detection signal 173.
Only these are temporarily stored, and these are output according to a multiplex control signal (described later) output by the RS flip-flop 113. Therefore, transcoded video PES
The FIFO 103 has a function of removing a slice end without a video code in the video PES and a function of variably delaying the transcoded video PES.

【0055】PESカウンタ104は、PESスタート
コード検出信号172を入力し、これをカウントした値
を示すPESカウント175を出力する。
The PES counter 104 receives the PES start code detection signal 172 and outputs a PES count 175 indicating the counted value.

【0056】原プログラムストリームFIFO105
は、ビデオPESイネーブル信号171の反転信号をラ
イトイネーブル(WEN)信号として入力し、この反転
信号に従って、原プログラムストリーム151及びPE
Sカウント175を一時記憶する。従って、図4に示す
ように、原プログラムストリームFIFO105は、原
プログラムストリーム151のうちビデオPES以外の
PES(ユーザデータPES1、オーディオPES1、
オーディオPES2)及びビデオPES以外のPESに
対応したPESカウント(n、n+3、n+4)を一時
記憶する。原プログラムストリームFIFO105は、
RSフリップフロップ113が出力するマルチプレクス
制御信号(後述)に従って、一時記憶したデータを出力
する。従って、原プログラムストリームFIFO105
は、原プログラムストリーム151のうちのビデオPE
Sを除去する機能と、ビデオPESが除去された原プロ
グラムストリーム151を可変遅延する機能を有する。
Original program stream FIFO 105
Inputs the inverted signal of the video PES enable signal 171 as a write enable (WEN) signal, and according to this inverted signal, the original program stream 151 and PE
The S count 175 is temporarily stored. Therefore, as shown in FIG. 4, the original program stream FIFO 105 includes the PES (user data PES1, audio PES1, PES) other than the video PES in the original program stream 151.
The PES count (n, n + 3, n + 4) corresponding to the PES other than the audio PES2) and the video PES is temporarily stored. The original program stream FIFO 105 is
The temporarily stored data is output according to a multiplex control signal (described later) output by the RS flip-flop 113. Therefore, the original program stream FIFO 105
Is the video PE of the original program stream 151.
It has a function of removing S and a function of variably delaying the original program stream 151 from which the video PES is removed.

【0057】Dタイプフリップフロップ106、減算器
107、比較器108、ラッチ109、トランスコーデ
ィドビデオPESカウンタ110、比較器111、立ち
上がり検出回路112及びRSフリップフロップ113
は、前述のマルチプレクス制御信号(マルチプレクサ1
14を制御すると共に、トランスコーディドビデオPE
SFIFO103のリードイネーブル(REN)及び原
プログラムストリームFIFO105のリードイネーブ
ル(REN)を制御する信号)を発生するために用意さ
れている。これらのタイミング図を図5に示す。
D type flip-flop 106, subtractor 107, comparator 108, latch 109, transcoded video PES counter 110, comparator 111, rising edge detection circuit 112 and RS flip-flop 113.
Is the above-mentioned multiplex control signal (multiplexer 1
Controls 14 and transcoded video PE
It is provided to generate a read enable (REN) for the SFIFO 103 and a read enable (REN) for the original program stream FIFO 105. These timing diagrams are shown in FIG.

【0058】まず、原プログラムストリームFIFO1
05のRENがアクティブであるので、原プログラムス
トリームFIFO105から値がnであるPESカウン
ト及びユーザデータPES1が出力される。ユーザデー
タPES1が終了すると、PESカウントの値はnから
n+3に変化し、従って、減算器107からは3が出力
され、比較器108の出力はHIGHとなり、ラッチ1
09には3がラッチされ、トランスコーディドビデオP
ESカウンタ110には「1」がロードされ、RSフリ
ップフロップ113はリセットされる。
First, the original program stream FIFO1
Since the REN 05 is active, the original program stream FIFO 105 outputs the PES count having the value n and the user data PES1. When the user data PES1 ends, the value of the PES count changes from n to n + 3. Therefore, 3 is output from the subtractor 107, the output of the comparator 108 becomes HIGH, and the latch 1
3 is latched in 09, and transcoded video P
The ES counter 110 is loaded with “1” and the RS flip-flop 113 is reset.

【0059】RSフリップフロップ113がリセットさ
れるので、原プログラムストリームFIFO105から
のユーザデータ1の読出は停止し、トランスコーディド
ビデオPESFIFO103からビデオPES1’が読
み出される。また、マルチプレクサ114の出力は、ユ
ーザデータPES1からビデオPES1’に切り替わ
る。ビデオPES1’の末部では、トランスコーディド
ビデオPESFIFO103から読み出されるビデオP
ES末部検出信号がHIGHとなるので、トランスコー
ディドビデオPESカウンタ110のカウント値が1か
ら2に増加する。続いて、トランスコーディドビデオP
ESFIFO103からビデオPES2’が読み出され
る。ビデオPES2’の末部では、トランスコーディド
ビデオPESFIFOから読み出されるビデオ末部検出
信号が再度HIGHとなるので、トランスコーディドビ
デオPESカウンタ110のカウント値が2から3に増
加する。
Since the RS flip-flop 113 is reset, the reading of the user data 1 from the original program stream FIFO 105 is stopped, and the video PES1 'is read from the transcoded video PESFIFO103. In addition, the output of the multiplexer 114 switches from the user data PES1 to the video PES1 ′. At the end of the video PES1 ', the video P read from the transcoded video PESFIFO103
Since the ES end detection signal becomes HIGH, the count value of the transcoded video PES counter 110 increases from 1 to 2. Next, transcoded video P
The video PES2 ′ is read from the ESFIFO 103. At the end of the video PES2 ′, the video end detection signal read from the transcoded video PESFIFO becomes HIGH again, so that the count value of the transcoded video PES counter 110 increases from 2 to 3.

【0060】トランスコーディドビデオPESカウンタ
110のカウント値が3になると、この値とラッチ10
9が保持している値3とが等しくなるので、比較器11
1の出力はアクティブ(HIGH)となる。立ち上がり
検出回路112は、比較器111の出力の変化を検出
し、RSフリップフロック113のセット信号を発生す
る。従って、この時にRSフリップフロップ113はセ
ットされるので、トランスコーディドビデオPESFI
FO103からのビデオPES2’の読出は停止し、原
プログラムストリームFIFO105からオーディオP
ES1が読み出される。また、マルチプレクサ114の
出力は、ビデオPES2’からオーディオPES1に切
り替わる。
When the count value of the transcoded video PES counter 110 reaches 3, this value and the latch 10
Since the value 3 held by 9 becomes equal, the comparator 11
The output of 1 becomes active (HIGH). The rising edge detection circuit 112 detects a change in the output of the comparator 111 and generates a set signal for the RS flip-flop 113. Therefore, since the RS flip-flop 113 is set at this time, the transcoded video PESFI is set.
The reading of the video PES2 ′ from the FO 103 is stopped, and the audio P from the original program stream FIFO 105 is stopped.
ES1 is read. In addition, the output of the multiplexer 114 switches from the video PES2 ′ to the audio PES1.

【0061】オーディオデータPES1が終了すると、
PESカウントの値はn+3からn+4に変化し、従っ
て、減算器107からは1が出力さるが、比較器108
の出力はLOWのままである。従って、ラッチ109は
3をラッチしたままであり、トランスコーディドビデオ
PESカウンタ110のカウントは「3」のままであ
り、RSフリップフロップ113はセットされたままで
ある。従って、次に原プログラムストリームFIFO1
05からオーディオPES2が読み出される。
When the audio data PES1 ends,
The value of the PES count changes from n + 3 to n + 4, so that the subtractor 107 outputs 1 but the comparator 108
Output remains low. Therefore, the latch 109 remains latching 3, the count of the transcoded video PES counter 110 remains “3”, and the RS flip-flop 113 remains set. Therefore, next, the original program stream FIFO1
The audio PES2 is read from 05.

【0062】これ以降の動作は上記と同様であるので、
その説明を省略する。
Since the subsequent operation is the same as above,
The description is omitted.

【0063】このような動作により、マルチプレクサ1
14から図2に示すようなフォーマットのトランスコー
ディドプログラムストリーム161が出力される。な
お、トランスコーディドビデオPESFIFO103及
び原プログラムストリームFIFO105の読出クロッ
クをこれらの書き込みクロックよりも遅くすることによ
り、ビットレートの低減が可能となる。
With this operation, the multiplexer 1
14 outputs a transcoded program stream 161 having a format as shown in FIG. The bit rate can be reduced by making the read clocks of the transcoded video PESFIFO 103 and the original program stream FIFO 105 slower than these write clocks.

【0064】次に、ビデオPESトランスコーダ102
について詳細に説明する。
Next, the video PES transcoder 102.
Will be described in detail.

【0065】図6は、ビデオPESトランスコーダ10
2の構成の一例を示す。図6を参照すると、ビデオPE
Sトランスコーダ102は、スライス検出部121、可
変長復号器122、DCT係数変更部123、マルチプ
レクサ124、可変長復号器125、論理積ゲート12
6及び符号量制御部127を備える。
FIG. 6 shows a video PES transcoder 10
An example of the structure of 2 is shown. Referring to FIG. 6, video PE
The S transcoder 102 includes a slice detector 121, a variable length decoder 122, a DCT coefficient changing unit 123, a multiplexer 124, a variable length decoder 125, and a logical product gate 12.
6 and a code amount control unit 127.

【0066】スライス検出部121は、原プログラムス
トリーム151及びビデオPESイネーブル信号171
を入力し、ビデオPESからビデオスタートコード及び
スライスを検出し、原プログラムストリーム151、ビ
デオPESイネーブル信号171、ビデオスタートコー
ド検出信号180及びスライスイネーブル信号189を
出力する。ビデオスタートコード検出信号180は、ス
ライス検出部121が出力する原プログラムストリーム
151のうちのビデオスタートコードがある部分でアク
ティブとなる信号である。ビデオスタートコードとは、
ピクチャスタートコード(00H)、スライススタート
コード(01H〜AFH)等の00H〜B8Hの値をと
るスタートコードである。スライスイネーブル信号18
9は、スライス検出部121が出力する原プログラムス
トリーム151のうちのスライスの部分でアクティブと
なる信号である。
The slice detector 121 has the original program stream 151 and the video PES enable signal 171.
To detect the video start code and the slice from the video PES, and output the original program stream 151, the video PES enable signal 171, the video start code detection signal 180, and the slice enable signal 189. The video start code detection signal 180 is a signal that becomes active in a portion of the original program stream 151 output by the slice detection unit 121 that has a video start code. What is a video start code?
It is a start code having a value of 00H to B8H such as a picture start code (00H) and a slice start code (01H to AFH). Slice enable signal 18
Reference numeral 9 is a signal that becomes active in the slice portion of the original program stream 151 output by the slice detection unit 121.

【0067】可変長復号器122は、原プログラムスト
リーム151、ビデオPESイネーブル信号171、ビ
デオスタートコード検出信号180及びスライスイネー
ブル信号189を入力し、ビデオPES内の可変長符号
を復号し、各DCTブロックのDCT係数を含む変更前
復号データ181を出力する。
The variable length decoder 122 receives the original program stream 151, the video PES enable signal 171, the video start code detection signal 180, and the slice enable signal 189, decodes the variable length code in the video PES, and outputs each DCT block. The pre-change decoded data 181 including the DCT coefficient of is output.

【0068】DCT係数変更部123は、可変長復号デ
ータ181のうちの各DCTブロックのDCT係数を入
力し、各DCTブロックのDCT係数の全て又は一部に
ついては、振幅を減少させ又はゼロにして出力し、振幅
を減少させ又はゼロにしないDCT係数については、そ
のまま出力する。また、DCT係数変更部123は、係
数変更信号188の値により、DCT係数を減少させ又
はゼロにする程度を変化させる。DCT係数変更部12
3が行うDCT係数の減少化又はゼロ化の方法について
は、後に詳しく説明する。
The DCT coefficient changing unit 123 inputs the DCT coefficient of each DCT block in the variable length decoded data 181, and reduces or zeros the amplitude of all or some of the DCT coefficients of each DCT block. DCT coefficients that are output and whose amplitude is not reduced or made zero are output as they are. Further, the DCT coefficient changing unit 123 changes the degree of reducing or zeroing the DCT coefficient according to the value of the coefficient changing signal 188. DCT coefficient changing unit 12
The method of reducing or zeroing the DCT coefficient performed by 3 will be described later in detail.

【0069】マルチプレクサ124は、DCT係数変更
部123から各DCTブロックのDCT係数を入力し、
可変長復号器122からDCT係数以外のデータを入力
し、これらの入力したデータをマルチプレクスして、出
力する。
The multiplexer 124 inputs the DCT coefficient of each DCT block from the DCT coefficient changing section 123,
Data other than the DCT coefficient is input from the variable length decoder 122, and these input data are multiplexed and output.

【0070】可変長符号器125は、マルチプレクサ1
24でマルチプレクスされたデータを可変長符号化し
て、可変長符号をトランスコーディドビデオPES15
2として出力する。この可変長符号化は、各DCTブロ
ックのDCT係数の可変長符号化も含む。また、可変長
符号器125は、出力するトランスコーディドビデオP
ES152の各バイトが有効であるか否かを示すトラン
スコーディドビデオPESイネーブル信号174も出力
する。図3に示すトランスコーディドビデオPESイネ
ーブル信号174はスライスの始点から途中まで連続し
てアクティブであるが、これは、可変長符号器125が
スライス内でスライスの先頭から連続して可変長符号を
生成した場合のものである。DCT係数変更部123で
各DCTブロックのDCT係数が削減され又はゼロにさ
れているので、スライスの途中から末部までは、可変長
符号が生成されず、それに対応して、この部分でトラン
スコーディドビデオPESイネーブル信号174は非ア
クティブとなる。なお、可変長符号器125が断続的に
可変長符号を生成してもよく、この場合には、トランス
コーディドビデオPESイネーブル信号174も断続的
にアクティブとなる。
The variable length encoder 125 is the multiplexer 1
The data multiplexed in 24 is variable-length coded, and the variable-length code is converted into the transcoded video PES15.
Output as 2. This variable length coding also includes variable length coding of the DCT coefficients of each DCT block. The variable length encoder 125 also outputs the transcoded video P to be output.
It also outputs a transcoded video PES enable signal 174 indicating whether or not each byte of ES 152 is valid. The transcoded video PES enable signal 174 shown in FIG. 3 is continuously active from the start point to the middle of the slice, which means that the variable length encoder 125 continuously outputs the variable length code from the beginning of the slice within the slice. It is when generated. Since the DCT coefficient of each DCT block is reduced or set to zero by the DCT coefficient changing unit 123, the variable length code is not generated from the middle to the end of the slice, and accordingly, the transcoding is performed in this portion. The do-video PES enable signal 174 becomes inactive. The variable length encoder 125 may intermittently generate the variable length code, and in this case, the transcoded video PES enable signal 174 is also intermittently active.

【0071】論理積ゲート186は、画像符号イネーブ
ル信号185の反転信号及びビデオPESイネーブル信
号171の論理積をとり、この論理積を画像符号ディス
エーブル信号186として出力する。
The logical product gate 186 takes the logical product of the inversion signal of the image code enable signal 185 and the video PES enable signal 171, and outputs this logical product as the image code disable signal 186.

【0072】図7を参照すると、符号量制御部127
は、画像符号イネーブル時間計測部201、画像符号デ
ィスエーブル時間計測部202、削減率計測部203及
び係数変更信号調整部204を備える。画像符号イネー
ブル時間計測部201は、画像符号イネーブル信号18
5を入力し、この信号がアクティブである時間の累積値
T1を計測する。画像符号ディスエーブル時間計測部2
02は、画像符号ディスエーブル信号186を入力し、
この信号がアクティブである時間の累積値T2を計測す
る。削減率計測部203は、計測削減率Rを、次式、R
=T2/(T1+T2)により求め、これを示す計測削
減率信号213を出力する。係数変更信号調整部204
は、削減率指示信号176及び計測削減率信号213を
入力し、計測削減率信号213により示される計測削減
率Rが削減率指示信号176により示され目標削減率に
なるように、係数変更信号188の値を変化させる。
Referring to FIG. 7, the code amount control unit 127
Includes an image code enable time measuring unit 201, an image code disable time measuring unit 202, a reduction rate measuring unit 203, and a coefficient change signal adjusting unit 204. The image code enable time measuring unit 201 uses the image code enable signal 18
5 is input, and the cumulative value T1 of the time when this signal is active is measured. Image code disable time measurement unit 2
02 receives the image code disable signal 186,
The cumulative value T2 of the time when this signal is active is measured. The reduction rate measuring unit 203 calculates the measurement reduction rate R by the following equation, R
= T2 / (T1 + T2), and the measurement reduction rate signal 213 indicating this is output. Coefficient change signal adjustment unit 204
Inputs the reduction rate instruction signal 176 and the measurement reduction rate signal 213, and the coefficient change signal 188 is set so that the measurement reduction rate R indicated by the measurement reduction rate signal 213 becomes the target reduction rate indicated by the reduction rate instruction signal 176. Change the value of.

【0073】次に、DCT係数変更部123の行うDC
T係数を削減又はゼロ化する方法に詳細に説明する。
Next, DC performed by the DCT coefficient changing unit 123
A method of reducing or zeroing the T coefficient will be described in detail.

【0074】DCT係数変更部123は、入力した各D
CTブロックのDCT係数を、再符号化したときにDC
Tブロック当たりの符号量が少なくなるように、変更す
る。変更の方法としては、例えば、以下に示す(1)〜
(7)の方法を用いる。すなわち、DCT係数変更部1
23は、(1)〜(7)のいずれかの方法を用いること
により、入力した非ゼロDCT係数の全て又は一部の振
幅をより小さい振幅に減少させ、又は0にして、これに
より各DCTブロックあたりの符号量を削減する。
The DCT coefficient changing unit 123 receives each D
DC when the DCT coefficient of the CT block is re-encoded
Change so that the code amount per T block is reduced. Examples of the changing method include (1) to
The method of (7) is used. That is, the DCT coefficient changing unit 1
23 reduces the amplitude of all or part of the input non-zero DCT coefficients to a smaller amplitude by using the method of any one of (1) to (7), or sets the amplitude to 0, thereby each DCT. Reduce the amount of code per block.

【0075】(1)各DCTブロックのDCT係数に低
域通過フィルタをかけて、高域のDCT係数の振幅を減
らし又はゼロにする。
(1) A low pass filter is applied to the DCT coefficients of each DCT block to reduce or eliminate the amplitude of the high frequency DCT coefficients.

【0076】例えば、図8に示すような周波数特性を有
する2次元低域通過フィルタを用意する。この2次元低
域通過フィルタの周波数特性は、4つの周波数領域(領
域A、領域B、領域C及び領域D)に分割されている。
各周波数領域のゲインは、1(領域A)、3/4(領域
B)、2/4(領域C)又は1/4(領域D)である。
2次元低域通過フィルタは、各DCT係数にこのゲイン
を乗じて、整数化のために切り捨てる。この2次元フィ
ルタを例えば図9の左に示すDCT係数f(i、j)に
適用すると、図9の右に示すDCT係数F(i、j)が
得られる。この2次元低域通過フィルタをかけると、非
ゼロDCT係数f(i、j)のうちのf(2、3)=1
はF(2、3)=0に変化するが、他の非ゼロ係数f
(i、j)はゼロにはならずに振幅が減少する。
For example, a two-dimensional low pass filter having a frequency characteristic as shown in FIG. 8 is prepared. The frequency characteristic of this two-dimensional low pass filter is divided into four frequency regions (region A, region B, region C and region D).
The gain in each frequency region is 1 (region A), 3/4 (region B), 2/4 (region C) or 1/4 (region D).
The two-dimensional low pass filter multiplies each DCT coefficient by this gain and rounds down for integerization. When this two-dimensional filter is applied to the DCT coefficient f (i, j) shown on the left of FIG. 9, for example, the DCT coefficient F (i, j) shown on the right of FIG. 9 is obtained. When this two-dimensional low-pass filter is applied, f (2,3) = 1 of the non-zero DCT coefficient f (i, j)
Changes to F (2,3) = 0 but other non-zero coefficients f
(I, j) does not become zero but the amplitude decreases.

【0077】2次元分布するDCT係数は、図10に示
すようなジグザグスキャンにより1次元のDCT係数に
並べられる。すなわち、DCT係数は、f(0、0)、
f(0、1)、f(1、0)、f(2、0)、f(1、
1)、f(0、2)、..、.f(7、7)の順に一次
元的に並べられる。そしてこれらのDCT係数は、非ゼ
ロのDCT係数の振幅(レベル)とこのように並べられた
ときに非ゼロのDCT係数に先行するゼロのDCT係数
の連続個数(ゼロランレングス)をペアとして符号化さ
れる。レベルとゼロランレングスの各ペアには発生頻度
に応じた長さの可変長符号が割り当てられる。各ペアの
レベルとゼロランレングスの組み合わせと可変長符号の
長さの関係は、図11及び図12に示すようになる。図
11は、非イントラブロック及びintra_vlc_format=0の
イントラブロックについてのものであり、図12は、in
tra_vlc_format=1のイントラブロックについてのもので
ある。ただし、図11及び図12はレベルとゼロランレ
ングスの全ての組み合わせのうち一部についてのみレベ
ルとゼロランレングスの組み合わせと可変長符号の長さ
の関係を示している。
The two-dimensionally distributed DCT coefficients are arranged into one-dimensional DCT coefficients by zigzag scanning as shown in FIG. That is, the DCT coefficient is f (0,0),
f (0,1), f (1,0), f (2,0), f (1,
1), f (0,2) ,. . ,. One-dimensionally arranged in the order of f (7, 7). These DCT coefficients are coded as a pair with the amplitude (level) of the non-zero DCT coefficient and the consecutive number of zero DCT coefficients (zero run length) preceding the non-zero DCT coefficient when arranged in this way. Be converted. A variable length code having a length according to the occurrence frequency is assigned to each pair of level and zero run length. The relationship between the level of each pair, the combination of zero run lengths, and the length of the variable length code is as shown in FIGS. 11 and 12. FIG. 11 shows a non-intra block and an intra block with intra_vlc_format = 0, and FIG.
This is for an intra block with tra_vlc_format = 1. However, FIGS. 11 and 12 show the relationship between the combination of the level and the zero run length and the length of the variable length code only for a part of all the combinations of the level and the zero run length.

【0078】図9に示すブロックがintra_vlc_format=1
のイントラブロックであるとした場合、このような符号
化を2次元低域通過フィルタをかける前のf(i、j)
に対して行うと、図9の左側の2次元マトリックスにお
いて、例えば、DCT係数f(1、1)の振幅(レベル)
は1であり、対応するゼロランレングスは図10のジグ
ザグスキャンによりゼロをカウントすると3であり、対
応する符号長は図12の可変長符号長の表においてレベ
ル1とゼロランレングス3における値である6となる。
The block shown in FIG. 9 is intra_vlc_format = 1.
F (i, j) before applying such a coding to a two-dimensional low-pass filter.
For the two-dimensional matrix on the left side of FIG. 9, for example, the amplitude (level) of the DCT coefficient f (1,1)
Is 1, and the corresponding zero run length is 3 when counting zeros by the zigzag scan of FIG. 10, and the corresponding code length is the value at level 1 and zero run length 3 in the variable length code length table of FIG. There will be 6.

【0079】他のDCT係数の振幅に対応するゼロラン
レングスと符号長も図9の左側の2次元マトリックスの
下に示すように求められる。従って、EOB(End Of B
lock)を除いたブロック当たりの符号長は123ビット
となる。
Zero run lengths and code lengths corresponding to the amplitudes of other DCT coefficients are also obtained as shown below the two-dimensional matrix on the left side of FIG. Therefore, EOB (End Of B
The code length per block excluding lock) is 123 bits.

【0080】一方、図9に示すブロックがintra_vlc_fo
rmat=1のイントラブロックであるとした場合、このよう
な符号化を2次元低域通過フィルタをかけた後のDCT
係数F(i、j)に対して行うと、図9の右側の2次元
マトリックスの下に示すように符号長が求められ、EO
Bを除いたブロック当たりの符号長は109ビットとな
る。
On the other hand, the block shown in FIG. 9 is intra_vlc_fo.
If it is an intra block with rmat = 1, a DCT after such a coding is applied to a two-dimensional low-pass filter
When the coefficient F (i, j) is calculated, the code length is obtained as shown below the two-dimensional matrix on the right side of FIG.
The code length per block excluding B is 109 bits.

【0081】従って、intra_vlc_format=1のイントラブ
ロックの場合には、図9に示すように、各非ゼロDCT
係数とそれに先行するゼロラングレングスを図10に示
すジグザグスキャンに沿って2次元ハフマン符号化した
ときのDCTブロックあたりの符号量は、2次元フィル
タをかける前では123ビットであるが、2次元フィル
タをかけた後では109ビットに削減される。
Therefore, in the case of the intra block of intra_vlc_format = 1, as shown in FIG. 9, each non-zero DCT
The code amount per DCT block when the coefficient and the preceding zero-length are two-dimensionally Huffman-encoded along the zigzag scan shown in FIG. 10 is 123 bits before the two-dimensional filter is applied, but the two-dimensional filter After multiplying, it is reduced to 109 bits.

【0082】(2)各DCTブロックのDCT係数の振
幅を1よりも大きい整数で除算し、その商を切り捨てて
整数化し、整数化の結果をその整数で乗算する。つま
り、切り捨て前の振幅をAmp1、切り捨て後の振幅を
Amp2としたときに、 Amp2=int(Amp1/n)×n ただし、nは1よりも大きい整数 とする。nの値をDCT係数の周波数毎に変えても良
く、例えば、nの値をDCT係数の周波数が高いほど大
きくしても良い。また、全てのDCT係数について上記
の方法を行っても良いが、一部のDCT係数について
は、このような処理を行わなくても良い。
(2) The amplitude of the DCT coefficient of each DCT block is divided by an integer greater than 1, the quotient is rounded down to an integer, and the result of the integer conversion is multiplied by the integer. That is, when the amplitude before truncation is Amp1 and the amplitude after truncation is Amp2, Amp2 = int (Amp1 / n) × n, where n is an integer greater than 1. The value of n may be changed for each frequency of the DCT coefficient. For example, the value of n may be increased as the frequency of the DCT coefficient is higher. Further, although the above method may be performed for all DCT coefficients, such processing may not be performed for some DCT coefficients.

【0083】例えば、図13に示すように周波数領域を
4つの周波数領域(領域A、領域B、領域C及び領域
D)に分割する。領域AのDCT係数は2で割ってか
ら、切り捨てて整数化し、それから2をかける。同様
に、領域BのDCT係数は4で割ってから、切り捨てて
整数化し、それから4をかけ、領域CのDCT係数は8
で割ってから、切り捨てて整数化し、それから8をか
け、領域DのDCT係数は16で割ってから、切り捨て
て整数化し、それから16をかける。この方法を例えば
図14の左に示すDCT係数f(i、j)に適用する
と、図14の右に示すDCT係数F(i、j)が得られ
る。この方法を適用すると、非ゼロDCT係数f(i、
j)のうちのf(1、1)、f(2、1)、f(0、
4)f(2、3)及びf(6、4)はゼロに変化する
が、他の非ゼロ係数f(i、j)は0にはならずに振幅
が減少する。intra_vlc_format=1のイントラブロックの
場合には、図14に示すように、各非ゼロDCT係数と
それに先行するゼロラングレングスを図10に示すジグ
ザグスキャンに沿って2次元ハフマン符号化したときの
DCTブロックあたりの符号量は、この方法を行う前で
は123ビットであるが、この方法を行った後では10
1ビットに削減される。
For example, as shown in FIG. 13, the frequency domain is divided into four frequency domains (area A, area B, area C and area D). The DCT coefficient of region A is divided by 2, rounded down to an integer, and then multiplied by 2. Similarly, the DCT coefficient in region B is divided by 4, then rounded down to an integer, then multiplied by 4, and the DCT coefficient in region C is 8.
Divide by, truncate to integer, then multiply by 8, divide by DCT coefficient in region D by 16, truncate to integer, then multiply by 16. When this method is applied to the DCT coefficient f (i, j) shown on the left of FIG. 14, for example, the DCT coefficient F (i, j) shown on the right of FIG. 14 is obtained. Applying this method, the non-zero DCT coefficients f (i,
f (1,1), f (2,1), f (0,
4) f (2,3) and f (6,4) change to zero, but the other non-zero coefficients f (i, j) do not become zero but decrease in amplitude. In the case of an intra block of intra_vlc_format = 1, as shown in FIG. 14, each non-zero DCT coefficient and the preceding zero run length are two-dimensional Huffman-encoded along the zigzag scan shown in FIG. The code amount per bit is 123 bits before this method, but 10 bits after this method.
It is reduced to 1 bit.

【0084】(3)各DCTブロックの非ゼロDCT係
数の全て又は一部の振幅を、非ゼロDCT係数とジグザ
グスキャンしたときにその非ゼロDCT係数に先行する
連続するゼロの組に対応する可変長符号の長さが1段階
又は数段階短くなるように、減らし、又は0にする。
(3) The amplitude of all or some of the non-zero DCT coefficients of each DCT block is varied with the non-zero DCT coefficient corresponding to the set of consecutive zeros preceding the non-zero DCT coefficient when zigzag scanned. The length of the long code is reduced or set to 0 so that the length is shortened by one step or several steps.

【0085】非ゼロDCT係数とそれに先行する連続し
たゼロの組に対応する2次元ハフマン符号化の長さは、
非イントラブロック及びintra_vlc_format=0のイントラ
ブロックについては、図11に示すようになり、intra_
vlc_format=1のイントラブロックについては、図12に
示すようになる。ただし、図11及び図12は、一部の
(非ゼロ係数、それに先行する連続したゼロの数)の組
についてのみ2次元ハフマン符号の長さを示している。
The length of the two-dimensional Huffman coding corresponding to a set of non-zero DCT coefficients and the preceding consecutive zeros is:
The non-intra block and the intra block with intra_vlc_format = 0 are as shown in FIG.
The intra block with vlc_format = 1 is as shown in FIG. However, FIG. 11 and FIG. 12 show the length of the two-dimensional Huffman code only for some (non-zero coefficient, the number of consecutive zeros preceding it) pairs.

【0086】従って、図12からわかるように、例え
ば、intra_vlc_format=1のイントラブロックの場合であ
れば、1つのゼロに先行され振幅が6のDCT係数の振
幅を5に減少させれば、対応するハフマン符号の長さを
14ビットから9ビットに削減できる。すなわち、この
ようにすれば、対応するハフマン符号の長さを1段階短
くすることができる。このような方法を例えば図15の
左に示すイントラブロックのDCT係数f(i、j)に
適用すると、図15の右に示すDCT係数F(i、j)
が得られる。図15の例では、図12のテーブルを参照
して、ハフマン符号の長さが1段階短くなるようにDC
T係数f(i、j)の振幅をDCT係数F(i、j)に
減少させている。intra_vlc_format=1のイントラブロッ
クの場合には、図15に示すように、各非ゼロDCT係
数とそれに先行するゼロラングレングスを図10に示す
ジグザグスキャンに沿って2次元ハフマン符号化したと
きのDCTブロックあたりの符号量は、この方法を行う
前では123ビットであるが、この方法を行った後では
90ビットに削減される。
Therefore, as can be seen from FIG. 12, for example, in the case of the intra block of intra_vlc_format = 1, if the amplitude of the DCT coefficient which is preceded by one zero and whose amplitude is 6 is reduced to 5, it corresponds. The length of the Huffman code can be reduced from 14 bits to 9 bits. That is, in this way, the length of the corresponding Huffman code can be shortened by one step. When such a method is applied to the DCT coefficient f (i, j) of the intra block shown on the left of FIG. 15, for example, the DCT coefficient F (i, j) shown on the right of FIG.
Is obtained. In the example of FIG. 15, referring to the table of FIG. 12, DC is set so that the length of the Huffman code is shortened by one step.
The amplitude of the T coefficient f (i, j) is reduced to the DCT coefficient F (i, j). In the case of the intra block of intra_vlc_format = 1, as shown in FIG. 15, each non-zero DCT coefficient and the preceding zero run length are two-dimensional Huffman-encoded DCT blocks along the zigzag scan shown in FIG. The code amount per hit is 123 bits before this method is performed, but is reduced to 90 bits after this method.

【0087】なお、図15の例では、ハフマン符号の長
さが1段階短くなるように各非ゼロDCT係数の振幅を
減少させたが、ハフマン符号の長さが数段階短くなるよ
うに各非ゼロDCT係数の振幅を減少させ又はゼロにし
ても良い。
In the example of FIG. 15, the amplitude of each non-zero DCT coefficient is reduced so that the length of the Huffman code is shortened by one step, but each non-zero DCT coefficient is reduced by several steps. The amplitude of the zero DCT coefficient may be reduced or even zeroed.

【0088】(4)(3)において、振幅の減少割合が
所定の割合を超えないようにする。すなわち、変更前の
振幅をAmp3、変更後の振幅をAmp4としたとき
に、 (Amp3−Amp4)/Amp3<r ただし、rは0を超え1未満の数 とする。rの値は、例えば、0.9、0.8、0.7、
0.6、0.5等とする。このように、振幅の減少割合
が所定の割合を超えないようにすることにより、画質劣
化を抑えることができる。
(4) In (3), the decrease rate of the amplitude is set not to exceed the predetermined rate. That is, when the amplitude before change is Amp3 and the amplitude after change is Amp4, (Amp3-Amp4) / Amp3 <r, where r is a number greater than 0 and less than 1. The values of r are, for example, 0.9, 0.8, 0.7,
0.6, 0.5, etc. As described above, by preventing the decrease rate of the amplitude from exceeding the predetermined rate, it is possible to suppress the image quality deterioration.

【0089】図16は、図15に示す例に、r=0.5
の制限をかけた場合のDCT係数の振幅変化とDCTブ
ロックあたりの符号量の変化を示す。intra_vlc_format
=1のイントラブロックの場合には、図16に示すよう
に、各非ゼロDCT係数とそれに先行するゼロラングレ
ングスを図4に示すジグザグスキャンに沿って2次元ハ
フマン符号化したときのDCTブロックあたりの符号量
は、イントラブロックの場合には、この方法を行う前で
は123ビットであるが、この方法を行った後では11
0ビットに削減される。
FIG. 16 shows the case of r = 0.5 in the example shown in FIG.
3 shows a change in the amplitude of the DCT coefficient and a change in the amount of code per DCT block when the restriction is applied. intra_vlc_format
In the case of an intra block of = 1, as shown in FIG. 16, each non-zero DCT coefficient and the preceding zero run length are two-dimensional Huffman encoded along the zigzag scan shown in FIG. In the case of an intra block, the code amount of is 123 bits before performing this method, but after performing this method, it is 11 bits.
Reduced to 0 bits.

【0090】(5)(3)において、振幅の減少値が所
定の値を超えないようにする。すなわち、変更前の振幅
をAmp3、変更後の振幅をAmp4としたときに、 (Amp3−Amp4)<diff ただし、diffは0を超えた整数 とするdiffの値は、例えば、1、2、3、・・・等
とする。このように、振幅の減少値が所定の値を超えな
いようにすることにより、画質劣化を抑えることができ
る。
(5) In (3), the decrease value of the amplitude is set not to exceed the predetermined value. That is, when the amplitude before change is Amp3 and the amplitude after change is Amp4, (Amp3-Amp4) <diff, where diff is an integer exceeding 0, the value of diff is, for example, 1, 2, 3 , ... and so on. As described above, by preventing the decrease value of the amplitude from exceeding the predetermined value, it is possible to suppress the image quality deterioration.

【0091】図17は、図15に示す例に、diff=
1の制限をかけた場合のDCT係数の振幅変化とDCT
ブロックあたりの符号量の変化を示す。intra_vlc_form
at=1のイントラブロックの場合には、図17に示すよう
に、各非ゼロDCT係数とそれに先行するゼロラングレ
ングスを図4に示すジグザグスキャンに沿って2次元ハ
フマン符号化したときのDCTブロックあたりの符号量
は、イントラブロックの場合には、この方法を行う前で
は123ビットであるが、この方法を行った後では11
9ビットに削減される。
FIG. 17 shows an example shown in FIG. 15 in which diff =
Amplitude change of DCT coefficient and DCT when limit of 1 is applied
The change in the code amount per block is shown. intra_vlc_form
In the case of the intra block of at = 1, as shown in FIG. 17, each non-zero DCT coefficient and the preceding zero run length are two-dimensional Huffman-encoded along the zigzag scan shown in FIG. In the case of an intra block, the code amount per bit is 123 bits before performing this method, but is 11 after performing this method.
It is reduced to 9 bits.

【0092】(6)DCT係数をジグザグスキャンした
ときの最後の所定個数sの非ゼロのDCT係数の振幅を
0にする。
(6) The amplitude of the final predetermined number s of non-zero DCT coefficients when the DCT coefficients are zigzag scanned is set to zero.

【0093】例えば、所定個数sの値を2にして図18
の左に示すDCT係数にこの方法を適用すると、図18
の右に示すようなDCT係数が得られる。intra_vlc_fo
rmat=1のイントラブロックの場合には、図18に示すよ
うに、各非ゼロDCT係数とそれに先行するゼロラング
レングスを図10に示すジグザグスキャンに沿って2次
元ハフマン符号化したときのDCTブロックあたりの符
号量は、この方法を行う前では123ビットであるが、
この方法を行った後では75ビットに削減される。
For example, the value of the predetermined number s is set to 2, and FIG.
When this method is applied to the DCT coefficient shown on the left of FIG.
The DCT coefficient as shown on the right of is obtained. intra_vlc_fo
In the case of the intra block of rmat = 1, as shown in FIG. 18, each non-zero DCT coefficient and the zero length preceding it are two-dimensionally Huffman-encoded along the zigzag scan shown in FIG. The code amount per bit is 123 bits before this method,
After performing this method, it is reduced to 75 bits.

【0094】(7)(1)〜(6)の方法を組み合わせ
る。
(7) The methods of (1) to (6) are combined.

【0095】例えば、図14の左に示すDCT係数に
(1)の方法を適用して図14の右(又は図19の左)
に示すDCT係数を得た後に、更に、(4)の方法を適
用すると、図19の右に示すDCT係数が得られる。in
tra_vlc_format=1のイントラブロックの場合には、図1
4及び図19に示すように、各非ゼロDCT係数とそれ
に先行するゼロラングレングスを図10に示すジグザグ
スキャンに沿って2次元ハフマン符号化したときのDC
Tブロックあたりの符号量は、この方法を行う前では1
23ビットであるが、この方法を行った後では90ビッ
トに削減される。
For example, by applying the method (1) to the DCT coefficients shown on the left side of FIG. 14, the right side of FIG. 14 (or the left side of FIG. 19).
When the method of (4) is further applied after obtaining the DCT coefficient shown in (4), the DCT coefficient shown on the right of FIG. 19 is obtained. in
In case of intra block of tra_vlc_format = 1,
4 and FIG. 19, DC when each non-zero DCT coefficient and the zero length preceding it are two-dimensionally Huffman encoded along the zigzag scan shown in FIG.
The code amount per T block is 1 before performing this method.
It is 23 bits, but is reduced to 90 bits after performing this method.

【0096】(8)(1)〜(3)又は(7)の方法に
おいて、DCTブロック当たりの総符号量を削減するた
めに、元々非ゼロDCT係数であったが、(1)〜
(3)又は(6)の方法によりゼロとなったDCT係数
の全て又は一部を非ゼロDCT係数にする。
(8) In the method of (1) to (3) or (7), in order to reduce the total code amount per DCT block, it was originally a non-zero DCT coefficient, but (1) to
All or part of the DCT coefficients which have become zero by the method (3) or (6) are made into non-zero DCT coefficients.

【0097】(1)の方法の図9に示す例では、f
(2、3)=1をF(2、3)=0に変化させているの
で、f(2、3)とそれに先行するゼロランレングス
(=2)に対応する符号の符号長6とf(2、3)の後
の非ゼロDCT係数であるf(3、2)(=7)とそれ
に先行するゼロランレングス(=0)に対応する符号の
符号長7の和(=13)よりも、それに対応する領域の
符号(F(3、2)(=5)とそれに対応するゼロラン
レングス(=3)に対応する符号)の符号長(=24)
が長くなってしまっている。この問題を解決するため
に、以下のような対策をとる。
In the example of the method (1) shown in FIG. 9, f
Since (2,3) = 1 is changed to F (2,3) = 0, the code length 6 and f of the code corresponding to f (2,3) and the preceding zero run length (= 2) are From the sum (= 13) of the code lengths 7 of the codes corresponding to the non-zero DCT coefficient f (3,2) (= 7) after (2,3) and the preceding zero run length (= 0) Also, the code length (= 24) of the code of the corresponding area (the code corresponding to F (3,2) (= 5) and the corresponding zero run length (= 3))
Has become longer. The following measures are taken to solve this problem.

【0098】まず、(1)〜(3)又は(7)の方法に
より、非ゼロDCT係数の振幅を削減し又はゼロにし
て、DCTブロックを符号化し、DCTブロック当たり
の符号量を求める。それから、(1)の方法により非ゼ
ロからゼロに変化したDCT係数があったならば、その
係数を非ゼロにして(例えば、1にする。元の振幅に戻
しても良い。)、DCTブロックを符号化し、DCTブ
ロック当たりの符号量を求める。そして、後者の符号量
の方が少なければ、ゼロに変化したDCT係数を非ゼロ
にする。
First, by the method of (1) to (3) or (7), the amplitude of the non-zero DCT coefficient is reduced or set to zero, the DCT block is coded, and the code amount per DCT block is obtained. Then, if there is a DCT coefficient that has changed from non-zero to zero by the method (1), that coefficient is made non-zero (for example, set to 1. It may be returned to the original amplitude), and the DCT block. Is encoded to obtain the code amount per DCT block. If the latter code amount is smaller, the DCT coefficient changed to zero is set to non-zero.

【0099】(1)の方法に(8)の方法を適用する
と、図20の右に示すように、F(2、3)の振幅は1
となる。この場合のDCTブロック当たりの符号量は、
97ビットとなり、図9の右に示す例の符号量109ビ
ットよりも少なくなる。
When the method (8) is applied to the method (1), the amplitude of F (2,3) is 1 as shown on the right side of FIG.
Becomes In this case, the code amount per DCT block is
This is 97 bits, which is smaller than the code amount of 109 bits in the example shown on the right side of FIG.

【0100】(2)の方法に(8)の方法を適用する
と、図21の右に示すように、F(2、3)の振幅は1
となる。この場合のDCTブロック当たりの符号量は、
89ビットとなり、図14の右に示す例の符号量101
ビットよりも少なくなる。
When the method (8) is applied to the method (2), the amplitude of F (2,3) is 1 as shown on the right side of FIG.
Becomes In this case, the code amount per DCT block is
It becomes 89 bits, and the code amount 101 in the example shown on the right side of FIG.
Less than a bit.

【0101】例は示さないが、(3)、(6)の方法に
(8)の方法を適用することも可能である。
Although an example is not shown, it is also possible to apply the method (8) to the methods (3) and (6).

【0102】DCT係数変更部123は、係数変更信号
188の値に応じて、DCT係数の振幅の削減の割合又
は変更するDCT係数の数を調整し、これによって、各
DCTブロックあたりの符号量の削減の割合を調整す
る。(1)の方法を用いているときには、低域通過フィ
ルタの周波数特性を変えることにより、DCT係数の振
幅の変更の割合を調整することができる。(2)の方法
を用いているときには、周波数毎にnの値を変えること
により、DCT係数の振幅の変更の割合を調整すること
ができる。(3)の方法を用いているときには、振幅を
減らすDCT係数の数を変えることにより、変更される
DCT係数の数を調整することができる。また、ハフマ
ン符号の長さの削減の段階の数を変えることにより、D
CT係数の振幅の割合を調整することができる。(4)
の方法を用いているときには、rの値を変えることによ
り、変更されるDC係数の数を調整することができる。
(5)の方法を用いているときには、所定個数sの値を
変えることにより変更されるDCT係数の数を調整する
ことができる。DCT係数変更部123は、係数変更信
号188の値に応じて、用いる方法又はこれらの方法の
組み合わせを適宜変更することにより、DCT係数の振
幅の削減の割合及び/又は変更するDCT係数の数を調
整することができる。
The DCT coefficient changing unit 123 adjusts the reduction rate of the amplitude of the DCT coefficient or the number of DCT coefficients to be changed according to the value of the coefficient changing signal 188, whereby the code amount of each DCT block is changed. Adjust the rate of reduction. When the method (1) is used, the rate of change in the amplitude of the DCT coefficient can be adjusted by changing the frequency characteristic of the low pass filter. When the method (2) is used, the rate of change in the amplitude of the DCT coefficient can be adjusted by changing the value of n for each frequency. When the method (3) is used, the number of DCT coefficients to be changed can be adjusted by changing the number of DCT coefficients to reduce the amplitude. Also, by changing the number of steps of reducing the length of the Huffman code, D
The ratio of the amplitude of the CT coefficient can be adjusted. (4)
When using the method of, the number of DC coefficients to be changed can be adjusted by changing the value of r.
When the method (5) is used, the number of DCT coefficients to be changed can be adjusted by changing the value of the predetermined number s. The DCT coefficient changing unit 123 appropriately changes the method to be used or a combination of these methods according to the value of the coefficient changing signal 188 to determine the reduction ratio of the amplitude of the DCT coefficient and / or the number of DCT coefficients to be changed. Can be adjusted.

【0103】なお、図1に示すトランスコーダ、図6に
示すビデオPESトランスコーダ及び図7に示す符号量
制御部の構成はあくまでハードウェアにより実現した場
合の一例である。また、図1に示すトランスコーダ及び
図6に示すビデオPESトランスコーダでは、数クロッ
ク単位の遅延調整のための回路は省略している。トラン
スコーダは図1に示す構成以外の構成によっても実現す
ることができる。特に、トランスコーダは、コンピュー
タをトランスコーダとして機能させるためのプログラム
をコンピュータが読み取り、実行することによって実現
することもできる。従って、トランスコーダの行う方法
を記述したプログラムをコンピュータが読み取り実行す
ることにより、コンピュータをトランスコーダとして機
能させることができる。
Note that the configurations of the transcoder shown in FIG. 1, the video PES transcoder shown in FIG. 6, and the code amount control unit shown in FIG. 7 are merely examples realized by hardware. Further, in the transcoder shown in FIG. 1 and the video PES transcoder shown in FIG. 6, a circuit for delay adjustment in units of several clocks is omitted. The transcoder can be realized by a configuration other than that shown in FIG. In particular, the transcoder can also be realized by causing the computer to read and execute a program for causing the computer to function as the transcoder. Therefore, the computer can be caused to function as a transcoder by causing the computer to read and execute the program describing the method performed by the transcoder.

【0104】[0104]

【発明の効果】以上説明したように、本発明によれば、
各DCTブロックのDCT係数の振幅を削減し又はゼロ
にすることによりトランスコーディングを行うので、ト
ランスコーディングのための演算量を削減することがで
き、従って、コンピュータが同時に多数のトランスコー
ディングを行うことが可能となる。
As described above, according to the present invention,
Since the transcoding is performed by reducing or zeroing the amplitude of the DCT coefficient of each DCT block, the amount of calculation for transcoding can be reduced, and thus the computer can perform many transcodings at the same time. It will be possible.

【0105】また、本発明によれば、単に各DCTブロ
ックのDCT係数のうちの高域成分を無くすような方法
を採らずに、DCT係数の振幅があまり変動しないよう
にしているので、トランスコーディングされた画像符号
からビットレート相応の復号画像を得ることが可能とな
る。
Further, according to the present invention, the amplitude of the DCT coefficient does not change much without adopting a method of simply eliminating the high frequency component of the DCT coefficient of each DCT block. It is possible to obtain a decoded image corresponding to the bit rate from the generated image code.

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

【図1】本発明の実施形態によるトランスコーダの構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a transcoder according to an embodiment of the present invention.

【図2】本発明の実施形態によるトランスコーダの入出
力信号のフォーマットを示す図である。
FIG. 2 is a diagram showing a format of an input / output signal of the transcoder according to the embodiment of the present invention.

【図3】本発明の実施形態によるトランスコーダのビデ
オPESトランスコーダの入出力信号のタイミング図で
ある。
FIG. 3 is a timing diagram of input / output signals of a video PES transcoder of a transcoder according to an exemplary embodiment of the present invention.

【図4】本発明の実施形態によるトランスコーダの原プ
ログラムストリームFIFOの入力信号のタイミング図
である。
FIG. 4 is a timing diagram of input signals of an original program stream FIFO of a transcoder according to an exemplary embodiment of the present invention.

【図5】本発明の実施形態によるトランスコーダのトラ
ンスコーディドビデオPESFIFO及び原プログラム
ストリームFIFOの出力信号及び関連信号のタイミン
グ図である。
FIG. 5 is a timing diagram of output signals and related signals of a transcoded video PESFIFO and an original program stream FIFO of a transcoder according to an exemplary embodiment of the present invention.

【図6】本発明の実施形態によるトランスコーダのビデ
オPESトランスコーダの構成を示すブロック図であ
る。
FIG. 6 is a block diagram showing a configuration of a video PES transcoder of the transcoder according to the embodiment of the present invention.

【図7】本発明の実施形態によるトランスコーダの符号
量制御部の構成を示すブロック図である。
FIG. 7 is a block diagram showing a configuration of a code amount control unit of the transcoder according to the embodiment of the present invention.

【図8】本発明の実施形態によるトランスコーダのDC
T係数変更部が行う第1の方法を説明するための図であ
る。
FIG. 8 is a DC of a transcoder according to an embodiment of the present invention.
It is a figure for demonstrating the 1st method which a T coefficient change part performs.

【図9】本発明の実施形態によるトランスコーダのDC
T係数変更部がDCT係数に対して第1の方法を行う前
のDCT係数と行った後のDCT係数を比較する図であ
る。
FIG. 9 is a transcoder DC according to an embodiment of the present invention.
FIG. 6 is a diagram in which the T coefficient changing unit compares the DCT coefficient before performing the first method with the DCT coefficient and the DCT coefficient after performing the first method.

【図10】DCT係数を2次元可変長符号化するときに
用いるジグザグスキャンの例を示す図である。
FIG. 10 is a diagram showing an example of zigzag scanning used when two-dimensional variable-length coding of DCT coefficients is performed.

【図11】MPEG規格による2次元可変長符号の符号
長を示す第1の図表である。
FIG. 11 is a first chart showing the code length of a two-dimensional variable length code according to the MPEG standard.

【図12】MPEG規格による2次元可変長符号の符号
長を示す第2の図表である。
FIG. 12 is a second chart showing the code length of a two-dimensional variable length code according to the MPEG standard.

【図13】本発明の実施形態によるトランスコーダのD
CT係数変更部が行う第2の方法を説明するための図で
ある。
FIG. 13 is a transcoder D according to an embodiment of the present invention.
It is a figure for demonstrating the 2nd method which a CT coefficient change part performs.

【図14】本発明の実施形態によるトランスコーダのD
CT係数変更部がDCT係数に対して第2の方法を行う
前のDCT係数と行った後のDCT係数を比較する図で
ある。
FIG. 14 is a transcoder D according to an embodiment of the present invention.
FIG. 6 is a diagram in which the CT coefficient changing unit compares the DCT coefficient before performing the second method with the DCT coefficient and after performing the second method.

【図15】本発明の実施形態によるトランスコーダのD
CT係数変更部がDCT係数に対して第3の方法を行う
前のDCT係数と行った後のDCT係数を比較する図で
ある。
FIG. 15 is a transcoder D according to an embodiment of the present invention.
FIG. 9 is a diagram in which the CT coefficient changing unit compares the DCT coefficient before performing the third method with the DCT coefficient and after performing the third method.

【図16】本発明の実施形態によるトランスコーダのD
CT係数変更部がDCT係数に対して第4の方法を行う
前のDCT係数と行った後のDCT係数を比較する図で
ある。
FIG. 16 is a transcoder D according to an embodiment of the present invention.
FIG. 10 is a diagram in which the CT coefficient changing unit compares the DCT coefficient before performing the fourth method and the DCT coefficient after performing the fourth method for the DCT coefficient.

【図17】本発明の実施形態によるトランスコーダのD
CT係数変更部がDCT係数に対して第5の方法を行う
前のDCT係数と行った後のDCT係数を比較する図で
ある。
FIG. 17 is a transcoder D according to an embodiment of the present invention.
It is a figure in which a CT coefficient change part compares a DCT coefficient before performing a 5th method with a DCT coefficient after performing it to a DCT coefficient.

【図18】本発明の実施形態によるトランスコーダのD
CT係数変更部がDCT係数に対して第6の方法を行う
前のDCT係数と行った後のDCT係数を比較する図で
ある。
FIG. 18 is a transcoder D according to an embodiment of the present invention.
It is a figure in which a CT coefficient change part compares a DCT coefficient before performing a 6th method with a DCT coefficient after performing it to a DCT coefficient.

【図19】本発明の実施形態によるトランスコーダのD
CT係数変更部がDCT係数に対して第7の方法を行う
前のDCT係数と行った後のDCT係数を比較する図で
ある。
FIG. 19 is a transcoder D according to an embodiment of the present invention.
It is a figure in which a CT coefficient change part compares a DCT coefficient before performing a 7th method and a DCT coefficient after performing with respect to a DCT coefficient.

【図20】本発明の実施形態によるトランスコーダのD
CT係数変更部がDCT係数に対して第1及び第8の方
法を行う前のDCT係数と行った後のDCT係数を比較
する図である。
FIG. 20 is a transcoder D according to an embodiment of the present invention.
It is a figure in which a CT coefficient change part compares a DCT coefficient before performing the 1st and 8th methods with a DCT coefficient after performing it to a DCT coefficient.

【図21】本発明の実施形態によるトランスコーダのD
CT係数変更部がDCT係数に対して第2及び第7の方
法を行う前のDCT係数と行った後のDCT係数を比較
する図である。
FIG. 21 is a transcoder D according to an embodiment of the present invention.
It is a figure which a CT coefficient change part compares the DCT coefficient before performing the 2nd and 7th method with respect to a DCT coefficient, and the DCT coefficient after performing it.

【図22】従来例によるMPEGデコーダの構成を示す
ブロック図である。
FIG. 22 is a block diagram showing the structure of a conventional MPEG decoder.

【図23】従来例によるMPEGエンコーダの構成を示
すブロック図である。
FIG. 23 is a block diagram showing a configuration of an MPEG encoder according to a conventional example.

【図24】従来例によるトランスコーダの構成を示すブ
ロック図である。
FIG. 24 is a block diagram showing a configuration of a transcoder according to a conventional example.

【図25】MPEG2規格による量子化スケールコード
対量子化スケールの特性の例を示すグラフである。
FIG. 25 is a graph showing an example of characteristics of a quantization scale code and a quantization scale according to the MPEG2 standard.

【図26】Pピクチャを間引くことにより、符号量を削
減する従来の方法を説明するための図である。
[Fig. 26] Fig. 26 is a diagram for describing a conventional method of reducing the code amount by thinning out P pictures.

【図27】IフレームをPフレームに変換することによ
り、符号量を削減する従来の方法を説明するための図で
ある。
FIG. 27 is a diagram for explaining a conventional method for reducing the code amount by converting an I frame into a P frame.

【図28】Iピクチャ及びPピクチャを間引き、更に、
IフレームをPフレームに変換することにより、符号量
を削減する従来の方法を説明するための図である。
FIG. 28 thins out I and P pictures, and
It is a figure for demonstrating the conventional method of reducing a code amount by converting an I frame into a P frame.

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

101 ビデオPES検出部 102 ビデオPESトランスコーダ 103 トランスコーディドビデオPESFIFO 104 PESカウンタ 105 原プログラムストリームFIFO 106 Dタイプフリップフロップ 107 減算器 108 比較器 109 ラッチ 110 トランスコーディドビデオPESカウンタ 111 比較器 112 立ち上がり検出回路 113 RSフリップフロップ 114 マルチプレクサ 101 Video PES detector 102 Video PES transcoder 103 transcoded video PESFIFO 104 PES counter 105 Original program stream FIFO 106 D type flip-flop 107 Subtractor 108 Comparator 109 latch 110 transcoded video PES counter 111 comparator 112 Rise detection circuit 113 RS flip-flop 114 multiplexer

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK15 KK41 MA00 MA23 MC11 MC38 ME01 SS02 SS13 TA69 TB08 TC38 TD06 TD07 UA02 UA05 UA12 5J064 AA01 BA09 BB05 BC01 BC08 BC11 BC16 BC18 BC23 BD03   ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5C059 KK15 KK41 MA00 MA23 MC11                       MC38 ME01 SS02 SS13 TA69                       TB08 TC38 TD06 TD07 UA02                       UA05 UA12                 5J064 AA01 BA09 BB05 BC01 BC08                       BC11 BC16 BC18 BC23 BD03

Claims (48)

【特許請求の範囲】[Claims] 【請求項1】 第1の画像符号を復号して画像の各符号
化ブロックの周波数成分を得る復号手段と、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更手段と、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号手段と、 を備える画像符号のトランスコーダにおいて、 前記振幅変更手段は、 各ブロックの周波数成分に低域通過フィルタをかけるこ
とを特徴とする画像符号のトランスコーダ。
1. Decoding means for decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block when each coded block is recoded. So as to reduce or zero the amplitude of all or part of the frequency components of each encoded block, and the amplitude changing means of each block where all or part of the frequency components have their amplitude reduced or become zero. An image code transcoder comprising: a re-encoding unit for re-encoding a frequency component to obtain a second image code, wherein the amplitude changing unit applies a low-pass filter to the frequency component of each block. Image code transcoder to do.
【請求項2】 請求項1に記載の画像符号のトランスコ
ーダにおいて、前記振幅変更手段により振幅がゼロにな
った周波数成分のうちの1つ以上の周波数成分の振幅を
非ゼロにする手段を更に備えることを特徴とする画像符
号のトランスコーダ。
2. The image code transcoder according to claim 1, further comprising means for making non-zero the amplitude of one or more frequency components among the frequency components whose amplitude has become zero by said amplitude changing means. An image code transcoder, comprising:
【請求項3】 請求項1又は2に記載の画像符号のトラ
ンスコーダにおいて、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測手段と、 計測された前記削減率が目標削減率になるように、前記
低域通過フィルタの周波数特性を変化させる制御手段
と、 を更に備えることを特徴とする画像符号のトランスコー
ダ。
3. The transcoder for the image code according to claim 1, further comprising a measuring unit that measures a reduction rate from the amount of the first image code to the amount of the second image code. And a control means for changing the frequency characteristic of the low-pass filter so that the reduction rate becomes a target reduction rate.
【請求項4】 第1の画像符号を復号して画像の各符号
化ブロックの周波数成分を得る復号手段と、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更手段と、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号手段と、 を備える画像符号のトランスコーダにおいて、 前記振幅変更手段は、 全て又は一部の周波数成分を1よりも大きい整数で除算
し、その商を切り捨てて整数化し、整数化の結果を前記
整数で乗算することを特徴とする画像符号のトランスコ
ーダ。
4. Decoding means for decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block when each coded block is recoded. So as to reduce or zero the amplitude of all or part of the frequency components of each encoded block, and the amplitude changing means of each block where all or part of the frequency components have their amplitude reduced or become zero. In a transcoder for an image code, comprising: a re-encoding means for re-encoding a frequency component to obtain a second image code, wherein the amplitude changing means divides all or some of the frequency components by an integer greater than 1. A transcoder for an image code, characterized in that the quotient is rounded down to an integer, and the result of the integer conversion is multiplied by the integer.
【請求項5】 請求項4に記載の画像符号のトランスコ
ーダにおいて、前記振幅変更手段により振幅がゼロにな
った周波数成分のうちの1つ以上の周波数成分の振幅を
非ゼロにする手段を更に備えることを特徴とする画像符
号のトランスコーダ。
5. The image code transcoder according to claim 4, further comprising means for making non-zero the amplitude of one or more frequency components among the frequency components whose amplitude has become zero by the amplitude changing means. An image code transcoder, comprising:
【請求項6】 請求項4又は5に記載の画像符号のトラ
ンスコーダにおいて、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測手段と、 計測された前記削減率が目標削減率になるように、前記
整数を変化させる制御手段と、 を更に備えることを特徴とする画像符号のトランスコー
ダ。
6. The transcoder for the image code according to claim 4 or 5, further comprising: a measuring unit that measures a reduction rate from the amount of the first image code to the amount of the second image code. An image code transcoder, further comprising: a control unit that changes the integer so that the reduction rate becomes a target reduction rate.
【請求項7】 第1の画像符号を復号して画像の各符号
化ブロックの周波数成分を得る復号手段と、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更手段と、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号手段と、 を備える画像符号のトランスコーダにおいて、 前記振幅変更手段は、 各符号化ブロックの周波数成分をスキャンしたときに非
ゼロの周波数成分と該非ゼロの周波数成分に先行するゼ
ロの数に対応する可変長符号の長さが1段階又は数段階
短くなるように該非ゼロの周波数成分の振幅を減少させ
又はゼロにすることを特徴とする画像符号のトランスコ
ーダ。
7. Decoding means for decoding the first image code to obtain the frequency component of each coded block of the image, and reducing the code amount per coded block when each coded block is recoded. So as to reduce or zero the amplitude of all or part of the frequency components of each encoded block, and the amplitude changing means of each block where all or part of the frequency components have their amplitude reduced or become zero. Recoding means for recoding frequency components to obtain a second image code, and a transcoder for the image code comprising: the amplitude changing means, wherein the amplitude changing means scans the frequency components of each coded block Reducing or zeroing the amplitude of the non-zero frequency component such that the length of the variable length code corresponding to the number of components and zeros preceding the non-zero frequency component is reduced by one or several steps. Video code transcoder characterized.
【請求項8】 請求項7に記載の画像符号のトランスコ
ーダにおいて、 振幅を減少させ又はゼロにする非ゼロの周波数成分を、
該非ゼロの周波数成分と該非ゼロの周波数成分に先行す
るゼロの数に対応する可変長符号の長さが短くなるよう
に減少された後の振幅のそのように減少される前の振幅
と比べた削減率が所定の割合以下であるものに限ること
を特徴とする画像符号のトランスコーダ。
8. The image code transcoder according to claim 7, wherein a non-zero frequency component that reduces or reduces amplitude is
The amplitude of the non-zero frequency component and the amplitude of the variable length code corresponding to the number of zeros preceding the non-zero frequency component after being reduced to be short compared to the amplitude before being reduced to such An image code transcoder characterized in that the reduction rate is limited to a predetermined rate or less.
【請求項9】 請求項7に記載の画像符号のトランスコ
ーダにおいて、 振幅を減少させ又はゼロにする非ゼロの周波数成分を、
該非ゼロの周波数成分と該非ゼロの周波数成分に先行す
るゼロの数に対応する可変長符号の長さが短くなるよう
に減少された後の振幅をそのように減少される前の振幅
から差し引いた差が所定の値以下であるものに限ること
を特徴とする画像符号のトランスコーダ。
9. The image code transcoder according to claim 7, wherein a non-zero frequency component that reduces or zeros the amplitude,
The amplitude after the variable length code corresponding to the non-zero frequency component and the number of zeros preceding the non-zero frequency component after being reduced to a shorter length was subtracted from the amplitude before being so reduced. An image code transcoder characterized in that the difference is limited to a predetermined value or less.
【請求項10】 請求項7に記載の画像符号のトランス
コーダにおいて、前記振幅変更手段により振幅がゼロに
なった周波数成分のうちの1つ以上の周波数成分の振幅
を非ゼロにする手段を更に備えることを特徴とする画像
符号のトランスコーダ。
10. The image code transcoder according to claim 7, further comprising means for making the amplitude of one or more frequency components among the frequency components whose amplitude has become zero by the amplitude changing means non-zero. An image code transcoder, comprising:
【請求項11】 請求項7乃至10のいずれか1項に記
載の画像符号のトランスコーダにおいて、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測手段と、 計測された前記削減率が目標削減率になるように、振幅
を減少し又はゼロにする周波数成分の数を変化させる制
御手段と、 を更に備えることを特徴とする画像符号のトランスコー
ダ。
11. The image code transcoder according to claim 7, wherein the measurement is performed by measuring a reduction rate from the amount of the first image code to the amount of the second image code. A transcoder for an image code, further comprising: a control unit configured to change the number of frequency components whose amplitude is reduced or made zero so that the measured reduction rate becomes a target reduction rate. .
【請求項12】 請求項7乃至10のいずれか1項に記
載の画像符号のトランスコーダにおいて、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する手段と、 計測された前記削減率が目標削減率になるように、振幅
を減少し又はゼロにする程度を変化させる制御手段と、 を更に備えることを特徴とする画像符号のトランスコー
ダ。
12. The image code transcoder according to claim 7, wherein the reduction rate from the amount of the first image code to the amount of the second image code is measured. And a control means for changing the degree to which the amplitude is reduced or made zero so that the measured reduction rate becomes a target reduction rate.
【請求項13】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号手段と、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更手段と、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号手段と、 を備える画像符号のトランスコーダにおいて、 前記振幅変更手段は、 各符号化ブロックの周波数成分をスキャンしたときの最
後から1個又はそれ以上の数の非ゼロの周波数成分をゼ
ロにすることを特徴とする画像符号のトランスコーダ。
13. Decoding means for decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block when each coded block is recoded. So as to reduce or zero the amplitude of all or part of the frequency components of each encoded block, and the amplitude changing means of each block where all or part of the frequency components have their amplitude reduced or become zero. Recoding means for recoding frequency components to obtain a second image code, and a transcoder for the image code, wherein the amplitude changing means is one from the end when the frequency components of each coding block are scanned. An image code transcoder characterized in that a number of non-zero frequency components equal to or more than zero is set to zero.
【請求項14】 請求項13に記載の画像符号のトラン
スコーダにおいて、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する手段と、 計測された前記削減率が目標削減率になるように、ゼロ
にする非ゼロの周波数成分の数を変化させる制御手段
と、 を更に備えることを特徴とする画像符号のトランスコー
ダ。
14. The image code transcoder according to claim 13, wherein the reduction rate from the amount of the first image code to the amount of the second image code is measured, and the measured reduction is performed. A transcoder for an image code, further comprising: control means for changing the number of non-zero frequency components to be zero so that the rate becomes a target reduction rate.
【請求項15】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号手段と、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更手段と、 前記振幅変更手段により振幅がゼロになった周波数成分
のうちの1つ以上の周波数成分の振幅を非ゼロにする手
段と、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号手段と、 を備える画像符号のトランスコーダ。
15. Decoding means for decoding the first image code to obtain the frequency component of each coded block of the image, and reducing the code amount per coded block when each coded block is recoded. As described above, one or more of an amplitude changing unit that reduces or zeros the amplitude of all or a part of the frequency components of each encoded block, and one or more of the frequency components whose amplitude has become zero by the amplitude changing unit. A means for making the amplitude of the frequency component non-zero, and a re-encoding means for re-encoding the frequency component of each block in which the amplitude of all or part of the frequency component has decreased or has become zero to obtain a second image code. , An image code transcoder comprising.
【請求項16】 請求項15に記載の画像符号のトラン
スコーダにおいて、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測手段と、 計測された前記削減率が目標削減率になるように、前記
振幅変更手段を制御する制御手段と、 を更に備えることを特徴とする画像符号のトランスコー
ダ。
16. The image code transcoder according to claim 15, wherein a measuring unit that measures a reduction rate from the amount of the first image code to the amount of the second image code; A transcoder for an image code, further comprising: control means for controlling the amplitude changing means so that the reduction rate becomes a target reduction rate.
【請求項17】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法におい
て、 前記振幅変更ステップでは、 各ブロックの周波数成分に低域通過フィルタをかけるこ
とを特徴とする画像符号のトランスコーディング方法。
17. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or some of the frequency components of each coded block to zero, and to change the amplitude of all or some of the frequency components of each block to zero. A re-encoding step of re-encoding the frequency component to obtain a second image code, and a trans-coding method of the image code, comprising: in the amplitude changing step, a low-pass filter is applied to the frequency component of each block. Image code transcoding method.
【請求項18】 請求項17に記載の画像符号のトラン
スコーディング方法において、前記振幅変更ステップで
振幅がゼロになった周波数成分のうちの1つ以上の周波
数成分の振幅を非ゼロにするステップを更に有すること
を特徴とする画像符号のトランスコーディング方法。
18. The method of transcoding an image code according to claim 17, further comprising the step of making the amplitude of one or more frequency components among the frequency components whose amplitude becomes zero in the amplitude changing step non-zero. A method for transcoding an image code, further comprising:
【請求項19】 請求項17又は18に記載の画像符号
のトランスコーディング方法において、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測ステップと、 計測された前記削減率が目標削減率になるように、前記
低域通過フィルタの周波数特性を変化させる制御ステッ
プと、 を更に有することを特徴とする画像符号のトランスコー
ディング方法。
19. The transcoding method for an image code according to claim 17, further comprising a measuring step of measuring a reduction rate from the amount of the first image code to the amount of the second image code. And a control step of changing the frequency characteristic of the low-pass filter so that the reduction rate thus obtained becomes a target reduction rate.
【請求項20】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法におい
て、 前記振幅変更ステップでは、 全て又は一部の周波数成分を1よりも大きい整数で除算
し、その商を切り捨てて整数化し、整数化の結果を前記
整数で乗算することを特徴とする画像符号のトランスコ
ーディング方法。
20. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or some of the frequency components of each coded block to zero, and to change the amplitude of all or some of the frequency components of each block to zero. A recoding step of recoding frequency components to obtain a second image code, and a transcoding method of the image code having: in the amplitude changing step, all or some of the frequency components are divided by an integer greater than 1. Then, the quotient is rounded down to an integer, and the result of the integer conversion is multiplied by the integer.
【請求項21】 請求項20に記載の画像符号のトラン
スコーディング方法において、前記振幅変更ステップで
振幅がゼロになった周波数成分のうちの1つ以上の周波
数成分の振幅を非ゼロにするステップを更に有すること
を特徴とする画像符号のトランスコーディング方法。
21. The image code transcoding method according to claim 20, further comprising the step of making the amplitudes of one or more frequency components among the frequency components whose amplitudes become zero in the amplitude changing step non-zero. A method for transcoding an image code, further comprising:
【請求項22】 請求項20又は21に記載の画像符号
のトランスコーディング方法において、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測ステップと、 計測された前記削減率が目標削減率になるように、前記
整数を変化させる制御ステップと、 を更に有することを特徴とする画像符号のトランスコー
ディング方法。
22. The image code transcoding method according to claim 20 or 21, further comprising a measuring step of measuring a reduction rate from the amount of the first image code to the amount of the second image code. And a control step of changing the integer so that the obtained reduction rate becomes a target reduction rate.
【請求項23】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法におい
て、 前記振幅変更ステップでは、 各符号化ブロックの周波数成分をスキャンしたときに非
ゼロの周波数成分と該非ゼロの周波数成分に先行するゼ
ロの数に対応する可変長符号の長さが1段階又は数段階
短くなるように該非ゼロの周波数成分の振幅を減少させ
又はゼロにすることを特徴とする画像符号のトランスコ
ーディング方法。
23. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or some of the frequency components of each coded block to zero, and to change the amplitude of all or some of the frequency components of each block to zero. A recoding step of recoding frequency components to obtain a second image code, and a transcoding method of the image code having: wherein in the amplitude changing step, a non-zero value is obtained when the frequency components of each coded block are scanned. The non-zero frequency component is oscillated so that the length of the variable-length code corresponding to the number of zeros preceding the frequency component and the non-zero frequency component is shortened by one step or several steps. Image transcoding method code, characterized by the reduced thereby or zero.
【請求項24】 請求項23に記載の画像符号のトラン
スコーディング方法において、 振幅を減少させ又はゼロにする非ゼロの周波数成分を、
該非ゼロの周波数成分と該非ゼロの周波数成分に先行す
るゼロの数に対応する可変長符号の長さが短くなるよう
に減少された後の振幅のそのように減少される前の振幅
と比べた削減率が所定の割合以下であるものに限ること
を特徴とする画像符号のトランスコーディング方法。
24. The transcoding method of the image code according to claim 23, wherein a non-zero frequency component that reduces or zeros the amplitude,
The amplitude of the non-zero frequency component and the amplitude of the variable length code corresponding to the number of zeros preceding the non-zero frequency component after being reduced to be short compared to the amplitude before being reduced to such A method for transcoding an image code, wherein the reduction rate is limited to a predetermined rate or less.
【請求項25】 請求項23に記載の画像符号のトラン
スコーディング方法において、 振幅を減少させ又はゼロにする非ゼロの周波数成分を、
該非ゼロの周波数成分と該非ゼロの周波数成分に先行す
るゼロの数に対応する可変長符号の長さが短くなるよう
に減少された後の振幅をそのように減少される前の振幅
から差し引いた差が所定の値以下であるものに限ること
を特徴とする画像符号のトランスコーディング方法。
25. The transcoding method for an image code according to claim 23, wherein the non-zero frequency component that reduces or reduces the amplitude to:
The amplitude after the variable length code corresponding to the non-zero frequency component and the number of zeros preceding the non-zero frequency component after being reduced to a shorter length was subtracted from the amplitude before being so reduced. A method of transcoding an image code, wherein the difference is limited to a value less than a predetermined value.
【請求項26】 請求項23に記載の画像符号のトラン
スコーディング方法において、前記振幅変更ステップで
振幅がゼロになった周波数成分のうちの1つ以上の周波
数成分の振幅を非ゼロにするステップを更に有すること
を特徴とする画像符号のトランスコーディング方法。
26. The image code transcoding method according to claim 23, further comprising the step of making the amplitude of one or more frequency components among the frequency components whose amplitudes become zero in the amplitude changing step non-zero. A method for transcoding an image code, further comprising:
【請求項27】 請求項23乃至26のいずれか1項に
記載の画像符号のトランスコーディング方法において、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測ステップと、 計測された前記削減率が目標削減率になるように、振幅
を減少し又はゼロにする周波数成分の数を変化させる制
御ステップと、 を更に有することを特徴とする画像符号のトランスコー
ディング方法。
27. The image code transcoding method according to claim 23, wherein a reduction rate from the amount of the first image code to the amount of the second image code is measured. A transformer for an image code, further comprising: a measuring step; and a control step of changing the number of frequency components whose amplitude is reduced or becomes zero so that the measured reduction rate becomes a target reduction rate. Coding method.
【請求項28】 請求項23乃至26のいずれか1項に
記載の画像符号のトランスコーディング方法において、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測するステップと、 計測された前記削減率が目標削減率になるように、振幅
を減少し又はゼロにする程度を変化させる制御ステップ
と、 を更に有することを特徴とする画像符号のトランスコー
ディング方法。
28. The image code transcoding method according to claim 23, wherein a reduction rate from the amount of the first image code to the amount of the second image code is measured. A method of transcoding an image code, further comprising: a step of controlling a degree of decreasing an amplitude or changing the amplitude to zero so that the measured reduction rate becomes a target reduction rate.
【請求項29】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法におい
て、 前記振幅変更ステップでは、 各符号化ブロックの周波数成分をスキャンしたときの最
後から1個又はそれ以上の数の非ゼロの周波数成分をゼ
ロにすることを特徴とする画像符号のトランスコーディ
ング方法。
29. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or some of the frequency components of each coded block to zero, and to change the amplitude of all or some of the frequency components of each block to zero. A recoding step of recoding frequency components to obtain a second image code, and a transcoding method of the image code having the: A method for transcoding an image code, wherein zero or more non-zero frequency components are set to zero.
【請求項30】 請求項29に記載の画像符号のトラン
スコーディング方法において、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測するステップと、 計測された前記削減率が目標削減率になるように、ゼロ
にする非ゼロの周波数成分の数を変化させる制御ステッ
プと、 を更に有することを特徴とする画像符号のトランスコー
ディング方法。
30. The image code transcoding method according to claim 29, wherein a step of measuring a reduction rate from the amount of the first image code to the amount of the second image code is measured. A method of transcoding an image code, further comprising: a control step of changing the number of non-zero frequency components to be zero so that the reduction rate becomes a target reduction rate.
【請求項31】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 前記振幅変更ステップで振幅がゼロになった周波数成分
のうちの1つ以上の周波数成分の振幅を非ゼロにするス
テップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法。
31. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or part of the frequency components of each coding block or to zero, and one or more of the frequency components whose amplitude has become zero in the amplitude changing step. A step of making the amplitude of the frequency component non-zero, and a step of re-encoding the frequency component of each block in which the amplitude of all or part of the frequency component is reduced or becomes zero to obtain a second image code. A method for transcoding an image code, comprising:
【請求項32】 請求項31に記載の画像符号のトラン
スコーディング方法において、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測ステップと、 計測された前記削減率が目標削減率になるように、前記
振幅変更ステップを制御する制御ステップと、 を更に有することを特徴とする画像符号のトランスコー
ディング方法。
32. The transcoding method of the image code according to claim 31, wherein a measuring step of measuring a reduction rate from the amount of the first image code to the amount of the second image code is measured. And a control step of controlling the amplitude changing step so that the reduction rate becomes a target reduction rate.
【請求項33】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法であっ
て、 前記振幅変更ステップでは、 各ブロックの周波数成分に低域通過フィルタをかけるこ
とを特徴とする画像符号のトランスコーディング方法を
コンピュータに実行させるためのプログラム。
33. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or some of the frequency components of each coded block to zero, and to change the amplitude of all or some of the frequency components of each block to zero. A re-encoding step of re-encoding a frequency component to obtain a second image code, and a trans-coding method of the image code, comprising: applying a low-pass filter to the frequency component of each block in the amplitude changing step. A program for causing a computer to execute a transcoding method of an image code characterized by.
【請求項34】 請求項33に記載の画像符号のプログ
ラムにおいて、前記画像符号のトランスコーディング方
法は、前記振幅変更ステップで振幅がゼロになった周波
数成分のうちの1つ以上の周波数成分の振幅を非ゼロに
するステップを更に有することを特徴とするプログラ
ム。
34. The program of the image code according to claim 33, wherein the transcoding method of the image code is an amplitude of one or more frequency components among frequency components whose amplitude becomes zero in the amplitude changing step. A program further comprising the step of:
【請求項35】 請求項33又は34に記載のプログラ
ムにおいて、 前記画像符号のトランスコーディング方法は、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測ステップと、 計測された前記削減率が目標削減率になるように、前記
低域通過フィルタの周波数特性を変化させる制御ステッ
プと、 を更に有することを特徴とするプログラム。
35. The program according to claim 33, wherein the transcoding method for the image code measures a reduction rate from the amount of the first image code to the amount of the second image code. A program, further comprising: a control step of changing a frequency characteristic of the low-pass filter so that the measured reduction rate becomes a target reduction rate.
【請求項36】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法であっ
て、 前記振幅変更ステップでは、 全て又は一部の周波数成分を1よりも大きい整数で除算
し、その商を切り捨てて整数化し、整数化の結果を前記
整数で乗算することを特徴とする画像符号のトランスコ
ーディング方法をコンピュータに実行させるためのプロ
グラム。
36. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or some of the frequency components of each coded block to zero, and to change the amplitude of all or some of the frequency components of each block to zero. A re-encoding step of re-encoding a frequency component to obtain a second image code, and a trans-coding method of an image code, comprising: in the amplitude changing step, all or some of the frequency components , The quotient is rounded down to an integer, and the result of the integerization is multiplied by the integer to cause a computer to execute a transcoding method of the image code. Program for.
【請求項37】 請求項36に記載のプログラムにおい
て、前記画像符号のトランスコーディング方法は、前記
振幅変更ステップで振幅がゼロになった周波数成分のう
ちの1つ以上の周波数成分の振幅を非ゼロにするステッ
プを更に有することを特徴とするプログラム。
37. The program according to claim 36, wherein the transcoding method of the image code sets the amplitude of one or more frequency components among the frequency components whose amplitude is zero in the amplitude changing step to non-zero. A program further comprising the step of:
【請求項38】 請求項36又は37に記載のプログラ
ムにおいて、 前記画像符号のトランスコーディング方法は、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測ステップと、 計測された前記削減率が目標削減率になるように、前記
整数を変化させる制御ステップと、 を更に有することを特徴とするプログラム。
38. The program according to claim 36, wherein the transcoding method for the image code measures a reduction rate from the amount of the first image code to the amount of the second image code. A program further comprising: a control step of changing the integer so that the measured reduction rate becomes a target reduction rate.
【請求項39】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法であっ
て、 前記振幅変更ステップでは、 各符号化ブロックの周波数成分をスキャンしたときに非
ゼロの周波数成分と該非ゼロの周波数成分に先行するゼ
ロの数に対応する可変長符号の長さが1段階又は数段階
短くなるように該非ゼロの周波数成分の振幅を減少させ
又はゼロにすることを特徴とする画像符号のトランスコ
ーディング方法をコンピュータに実行させるためのプロ
グラム。
39. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or some of the frequency components of each coded block to zero, and to change the amplitude of all or some of the frequency components of each block to zero. A recoding step of re-encoding frequency components to obtain a second image code, and a transcoding method of the image code, comprising: in the amplitude changing step, when the frequency components of each coded block are scanned, The non-zero frequency component is oscillated so that the length of the variable-length code corresponding to the number of zero frequency components and zeros preceding the non-zero frequency component is shortened by one step or several steps. Program for executing the transcoding method of image coding characterized a computer to a reduced or zero.
【請求項40】 請求項39に記載のプログラムにおい
て、 振幅を減少させ又はゼロにする非ゼロの周波数成分を、
該非ゼロの周波数成分と該非ゼロの周波数成分に先行す
るゼロの数に対応する可変長符号の長さが短くなるよう
に減少された後の振幅のそのように減少される前の振幅
と比べた削減率が所定の割合以下であるものに限ること
を特徴とするプログラム。
40. The program according to claim 39, wherein a non-zero frequency component that reduces or reduces the amplitude is
The amplitude of the non-zero frequency component and the amplitude of the variable length code corresponding to the number of zeros preceding the non-zero frequency component after being reduced to be short compared to the amplitude before being reduced to such A program characterized in that the reduction rate is limited to a predetermined rate or less.
【請求項41】 請求項39に記載の画像符号のプログ
ラムにおいて、 振幅を減少させ又はゼロにする非ゼロの周波数成分を、
該非ゼロの周波数成分と該非ゼロの周波数成分に先行す
るゼロの数に対応する可変長符号の長さが短くなるよう
に減少された後の振幅をそのように減少される前の振幅
から差し引いた差が所定の値以下であるものに限ること
を特徴とするプログラム。
41. The program of the image code according to claim 39, wherein a non-zero frequency component that reduces or reduces amplitude is
The amplitude after the variable length code corresponding to the non-zero frequency component and the number of zeros preceding the non-zero frequency component after being reduced to a shorter length was subtracted from the amplitude before being so reduced. A program characterized in that the difference is limited to a predetermined value or less.
【請求項42】 請求項39に記載のプログラムにおい
て、前記画像符号のトランスコーディング方法は、前記
振幅変更ステップで振幅がゼロになった周波数成分のう
ちの1つ以上の周波数成分の振幅を非ゼロにするステッ
プを更に有することを特徴とするプログラム。
42. The program according to claim 39, wherein the transcoding method for the image code sets the amplitude of one or more frequency components among the frequency components whose amplitude has become zero in the amplitude changing step to non-zero. A program further comprising the step of:
【請求項43】 請求項39乃至42のいずれか1項に
記載のプログラムにおいて、 前記画像符号のトランスコーディング方法は、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測ステップと、 計測された前記削減率が目標削減率になるように、振幅
を減少し又はゼロにする周波数成分の数を変化させる制
御ステップと、 を更に有することを特徴とするプログラム。
43. The program according to claim 39, wherein the transcoding method for the image code reduces the amount of the first image code to the amount of the second image code. A measurement step of measuring a rate, and a control step of changing the number of frequency components for decreasing or zeroing the amplitude so that the measured reduction rate becomes a target reduction rate. program.
【請求項44】 請求項39乃至42のいずれか1項に
記載のプログラムにおいて、 前記画像符号のトランスコーディング方法は、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測するステップと、 計測された前記削減率が目標削減率になるように、振幅
を減少し又はゼロにする程度を変化させる制御ステップ
と、 を更に有することを特徴とするプログラム。
44. The program according to any one of claims 39 to 42, wherein the transcoding method for the image code reduces the amount of the first image code to the amount of the second image code. A program, further comprising: a step of measuring a rate, and a control step of changing a degree of decreasing or zeroing an amplitude so that the measured reduction rate becomes a target reduction rate.
【請求項45】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法であっ
て、 前記振幅変更ステップでは、 各符号化ブロックの周波数成分をスキャンしたときの最
後から1個又はそれ以上の数の非ゼロの周波数成分をゼ
ロにすることを特徴とする画像符号のトランスコーディ
ング方法をコンピュータに実行させるためのプログラ
ム。
45. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or some of the frequency components of each coded block to zero, and to change the amplitude of all or some of the frequency components of each block to zero. A re-encoding step of re-encoding a frequency component to obtain a second image code, and a trans-coding method of an image code, comprising the step of: To cause a computer to perform a method of transcoding an image code, characterized in that one or more non-zero frequency components from Program.
【請求項46】 請求項45に記載のプログラムにおい
て、 前記画像符号のトランスコーディング方法は、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測するステップと、 計測された前記削減率が目標削減率になるように、ゼロ
にする非ゼロの周波数成分の数を変化させる制御ステッ
プと、 を更に有することを特徴とするプログラム。
46. The program according to claim 45, wherein the method of transcoding the image code measures a reduction rate from the amount of the first image code to the amount of the second image code, A control step of changing the number of non-zero frequency components to be zero so that the measured reduction rate becomes a target reduction rate.
【請求項47】 第1の画像符号を復号して画像の各符
号化ブロックの周波数成分を得る復号ステップと、 各符号化ブロックを再符号化したときに各符号化ブロッ
ク当たりの符号量が減少するように、各符号化ブロック
の周波数成分の全て又は一部の振幅を減少し又はゼロに
する振幅変更ステップと、 前記振幅変更ステップで振幅がゼロになった周波数成分
のうちの1つ以上の周波数成分の振幅を非ゼロにするス
テップと、 周波数成分の全て又は一部の振幅が減少し又はゼロにな
った各ブロックの周波数成分を再符号化して第2の画像
符号を得る再符号ステップと、 を有する画像符号のトランスコーディング方法をコンピ
ュータに実行させるためのプログラム。
47. A decoding step of decoding a first image code to obtain a frequency component of each coded block of an image, and a code amount for each coded block is reduced when each coded block is recoded. So as to reduce the amplitude of all or part of the frequency components of each coding block or to zero, and one or more of the frequency components whose amplitude has become zero in the amplitude changing step. A step of making the amplitude of the frequency component non-zero, and a step of re-encoding the frequency component of each block in which the amplitude of all or part of the frequency component is reduced or becomes zero to obtain a second image code. And a program for causing a computer to execute a transcoding method of an image code having :.
【請求項48】 請求項47に記載のプログラムにおい
て、 前記画像符号のトランスコーディング方法は、 前記第1の画像符号の量から前記第2の画像符号の量へ
の削減率を計測する計測ステップと、 計測された前記削減率が目標削減率になるように、前記
振幅変更ステップを制御する制御ステップと、 を更に有することを特徴とする画像符号のプログラム。
48. The program according to claim 47, wherein the transcoding method of the image code measures a reduction rate from the amount of the first image code to the amount of the second image code. A program of an image code, further comprising: a control step of controlling the amplitude changing step so that the measured reduction rate becomes a target reduction rate.
JP2001316806A 2001-10-15 2001-10-15 Image code transcoder and image code transcoding method Expired - Fee Related JP3856292B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001316806A JP3856292B2 (en) 2001-10-15 2001-10-15 Image code transcoder and image code transcoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001316806A JP3856292B2 (en) 2001-10-15 2001-10-15 Image code transcoder and image code transcoding method

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2005241147A Division JP3948024B2 (en) 2005-08-23 2005-08-23 Image code transcoder and image code transcoding method
JP2005241148A Division JP3948025B2 (en) 2005-08-23 2005-08-23 Image code transcoder and image code transcoding method

Publications (2)

Publication Number Publication Date
JP2003125403A true JP2003125403A (en) 2003-04-25
JP3856292B2 JP3856292B2 (en) 2006-12-13

Family

ID=19134760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001316806A Expired - Fee Related JP3856292B2 (en) 2001-10-15 2001-10-15 Image code transcoder and image code transcoding method

Country Status (1)

Country Link
JP (1) JP3856292B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2014167609A1 (en) * 2013-04-12 2017-02-16 株式会社スクウェア・エニックス・ホールディングス Information processing apparatus, control method, program, and recording medium
JP2018014721A (en) * 2017-07-31 2018-01-25 株式会社スクウェア・エニックス・ホールディングス Information processing device, control method, program, and recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2014167609A1 (en) * 2013-04-12 2017-02-16 株式会社スクウェア・エニックス・ホールディングス Information processing apparatus, control method, program, and recording medium
US9769486B2 (en) 2013-04-12 2017-09-19 Square Enix Holdings Co., Ltd. Information processing apparatus, method of controlling the same, and storage medium
US10003812B2 (en) 2013-04-12 2018-06-19 Square Enix Holdings Co., Ltd. Information processing apparatus, method of controlling the same, and storage medium
JP2018014721A (en) * 2017-07-31 2018-01-25 株式会社スクウェア・エニックス・ホールディングス Information processing device, control method, program, and recording medium

Also Published As

Publication number Publication date
JP3856292B2 (en) 2006-12-13

Similar Documents

Publication Publication Date Title
US7949044B2 (en) Method for coefficient bitdepth limitation, encoder and bitstream generation apparatus
KR100253931B1 (en) Approximate mpeg decoder with compressed reference frames
US6658157B1 (en) Method and apparatus for converting image information
JP3888597B2 (en) Motion compensation coding apparatus and motion compensation coding / decoding method
KR100934290B1 (en) MPEG-2 4: 2: 2-Method and Architecture for Converting a Profile Bitstream to a Main-Profile Bitstream
US7301999B2 (en) Quantization method and system for video MPEG applications and computer program product therefor
US8213498B2 (en) Bitrate reduction techniques for image transcoding
US8014450B2 (en) Flexible range reduction
US9071844B2 (en) Motion estimation with motion vector penalty
US20100091842A1 (en) Coding rate conversion apparatus, coding rate conversion method, and integrated circuit
US20060269149A1 (en) Encoding and decoding apparatus and method for reducing blocking phenomenon and computer-readable recording medium storing program for executing the method
EP1195993A2 (en) Transcoding of video signal
JP2005323353A (en) High-fidelity transcoding
KR100238622B1 (en) A motion video compression system with novel adaptive quantisation
US8903196B2 (en) Video presentation at fractional speed factor using time domain interpolation
KR100510756B1 (en) Image decoding apparatus and method and image reproducing apparatus
JPH08275158A (en) Moving image compression system with guaranteed bit generation limit
JP2003520513A (en) Image data compression
US6804299B2 (en) Methods and systems for reducing requantization-originated generational error in predictive video streams using motion compensation
JP3948025B2 (en) Image code transcoder and image code transcoding method
JPH10174098A (en) Video data compressor and its method
US20080253447A1 (en) Video Transcoding with Selection of Data Portions to be Processed
US6040875A (en) Method to compensate for a fade in a digital video input sequence
US20030174771A1 (en) Method, apparatus, and program for variable bit rate encoding
JP3856292B2 (en) Image code transcoder and image code transcoding method

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20040423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050624

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050823

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060825

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060907

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090922

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100922

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110922

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120922

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120922

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120922

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120922

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120922

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120922

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130922

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees