[go: up one dir, main page]

JP2003189309A - Re-coding method and apparatus for compressed moving picture - Google Patents

Re-coding method and apparatus for compressed moving picture

Info

Publication number
JP2003189309A
JP2003189309A JP2001384415A JP2001384415A JP2003189309A JP 2003189309 A JP2003189309 A JP 2003189309A JP 2001384415 A JP2001384415 A JP 2001384415A JP 2001384415 A JP2001384415 A JP 2001384415A JP 2003189309 A JP2003189309 A JP 2003189309A
Authority
JP
Japan
Prior art keywords
rounding
encoding
compressed moving
signal
moving image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001384415A
Other languages
Japanese (ja)
Other versions
JP4082025B2 (en
Inventor
Junji Tajime
純二 田治米
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 JP2001384415A priority Critical patent/JP4082025B2/en
Publication of JP2003189309A publication Critical patent/JP2003189309A/en
Application granted granted Critical
Publication of JP4082025B2 publication Critical patent/JP4082025B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide re-encoding technologies capable of effectively suppressing accumulation of rounding errors in a motion compensation processing process of error signals so as to prevent deterioration in image quality. <P>SOLUTION: A compressed moving picture stream of a prescribed encoding system is received and decoded. After performing motion compensation predictive processing including rounding processing to a finite length in the unit less than pixel accuracy to the decoded stream, the resulting decoded stream is encoded again. The decoded image signal is quantized again and an error predictive signal synthesis section 102 performs a motion compensation predictive process for a resulting re-quantized error signal E2(n-1). A rounding system decision section 101 at that time revises a rounding system for the rounding processing in each processing unit such as a frame/field or a macro block independent of the encoding processing when the input compressed moving picture stream is generated. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は圧縮動画像の再符号
化技術に係り、特に入力した圧縮動画像ストリームの符
号量を低減して出力する圧縮動画像再符号化方法および
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for re-encoding a compressed moving image, and more particularly to a compressed moving image re-encoding method and apparatus for reducing the code amount of an input compressed moving image stream for output.

【0002】[0002]

【従来の技術】ディジタル放送システムやサービス等に
おいて動画像信号を伝送・蓄積する場合、多くの動画像
信号は圧縮符号化され伝送・蓄積される。近年では動画
像信号の圧縮符号化方式としてISO/ICE IS13818-2(M
PEG-2 VIDEO)等が規格化され、ディジタル放送システ
ムやサービス等に用いられている。
2. Description of the Related Art When transmitting and storing moving image signals in digital broadcasting systems and services, many moving image signals are compression-coded and transmitted and stored. In recent years, ISO / ICE IS13818-2 (M
PEG-2 VIDEO) has been standardized and is used in digital broadcasting systems and services.

【0003】放送局や家庭では、所定のビットレートで
圧縮符号化された圧縮動画ストリームを異なるビットレ
ートの圧縮動画ストリームに再符号化し、伝送あるいは
蓄積する装置やアプリケーションが期待されている。例
えばディジタル動画像信号録画装置における長時間録画
機能があげられる。放送局から家庭に分配される圧縮動
画ストリームは所定のビットレートで符号化されてい
る。視聴者が長時間録画を目的とし、限られた記憶容量
に分配された圧縮動画ストリームを録画する場合、分配
時のビットレートよりも低いビットレートで圧縮動画ス
トリームを再符号化する必要がある。
Broadcast stations and homes are expected to have devices and applications for re-encoding a compressed moving picture stream compressed at a predetermined bit rate into a compressed moving picture stream having a different bit rate and transmitting or accumulating it. For example, there is a long-time recording function in a digital moving image signal recording device. The compressed moving image stream distributed from the broadcasting station to the home is encoded at a predetermined bit rate. When a viewer records a compressed moving image stream distributed in a limited storage capacity for the purpose of long-time recording, it is necessary to re-encode the compressed moving image stream at a bit rate lower than the bit rate at the time of distribution.

【0004】以下、このようなビットレート変換を行う
従来の再符号化方法および装置について、MPEG-2 VIDEO
に従って圧縮符号化されている圧縮動画ストリーム(以
下、MPEG-2ビットストリームという。)の場合を例に取
って説明する。
Hereinafter, a conventional re-encoding method and apparatus for performing such bit rate conversion will be described with reference to MPEG-2 VIDEO.
A case of a compressed moving image stream (hereinafter referred to as an MPEG-2 bit stream) that is compression-encoded according to the above will be described as an example.

【0005】図17に示すように、基本的な再符号化回
路は、MPEG-2ビットストリームの復号器と符号化器とを
直列に接続した構成となる。復号器には、可変長復号器
201、逆量子化器202、および逆離散コサイン変換
器203が設けられ、入力したMPEG-2ビットストリーム
から予測誤差信号R1(n)を得る。ここで、添え字
‘1’は復号器で得られた信号であることを表し、
‘n’は画像信号系列内の画像信号の時間方向の番号を
表す(以下、同様である)。加算器204は、予測誤差
信号R1(n)と予測画像信号MC[I1(n-1), V]と加算して
復号された画像信号I1(n)を生成する。したがって、画
像信号I1(n)は、次式で表される。
As shown in FIG. 17, the basic re-encoding circuit has a configuration in which an MPEG-2 bit stream decoder and an encoder are connected in series. The decoder is provided with a variable length decoder 201, an inverse quantizer 202, and an inverse discrete cosine transformer 203, and obtains a prediction error signal R1 (n) from the input MPEG-2 bit stream. Here, the subscript “1” indicates that the signal is obtained by the decoder,
“N” represents the number in the time direction of the image signal in the image signal sequence (the same applies hereinafter). The adder 204 adds the prediction error signal R1 (n) and the prediction image signal MC [I1 (n-1), V] to generate a decoded image signal I1 (n). Therefore, the image signal I1 (n) is expressed by the following equation.

【0006】[0006]

【数1】 I1(n) = R1(n) + MC[I1(n-1), V] ・・・ (1)。[Equation 1]   I1 (n) = R1 (n) + MC [I1 (n-1), V] (1).

【0007】復号された画像信号I1(n)は符号化器へ供
給されると共に、メモリ206で遅延され動き補償器2
05へ出力される。動き補償器205は、既に復号した
画像信号I1(n-1)と可変長復号器201から供給される
動きベクトルフィールドVを用いて動き補償MCを行
い、予測画像信号MC[I1(n-1), V]を生成して加算器20
4へ出力する。
The decoded image signal I1 (n) is supplied to the encoder and is delayed by the memory 206, and the motion compensator 2
It is output to 05. The motion compensator 205 performs motion compensation MC using the already-decoded image signal I1 (n-1) and the motion vector field V supplied from the variable length decoder 201 to obtain the predicted image signal MC [I1 (n-1 ), V] and adder 20
Output to 4.

【0008】符号化器は復号器で復号した画像信号I1
(n)の再符号化を行う。まず、減算器207は、復号し
た画像信号I1(n)から第2の予測画像信号MC[I2(n-1),
V]を減算して予測誤差信号R2(n)を求める。ここで、添
え字‘2’は符号化器で得られた信号であることを表
し、‘n’は画像信号系列内の画像信号の時間方向の番
号を表す(以下、同様である)。すなわち、予測誤差信
号R2(n)は次式で表される。
The encoder is the image signal I1 decoded by the decoder.
Re-encode (n). First, the subtractor 207 outputs the second predicted image signal MC [I2 (n-1), from the decoded image signal I1 (n).
V] is subtracted to obtain the prediction error signal R2 (n). Here, the subscript “2” represents a signal obtained by the encoder, and “n” represents the number in the time direction of the image signal in the image signal sequence (the same applies hereinafter). That is, the prediction error signal R2 (n) is expressed by the following equation.

【0009】[0009]

【数2】 R2(n) = I1(n) - MC[I2(n-1),V] ・・・ (2)。[Equation 2]   R2 (n) = I1 (n)-MC [I2 (n-1), V] (2).

【0010】予測画像信号MC[I2(n-1), V]は、動き補償
器208において、既に復号した画像信号I2(n-1)と動
きベクトルフィールドVを用いて動き補償を行うことで
求められる。
The predicted image signal MC [I2 (n-1), V] is motion-compensated by the motion compensator 208 using the already decoded image signal I2 (n-1) and the motion vector field V. Desired.

【0011】符号化器には、離散コサイン変換器20
9、量子化器210、および可変長符号化器211が設
けられ、得られた予測誤差信号R2(n)からビットレート
変換されたMPEG-2ビットストリームを生成して出力す
る。
The encoder includes a discrete cosine converter 20.
9, a quantizer 210, and a variable-length encoder 211 are provided to generate and output an MPEG-2 bitstream that is bit rate converted from the obtained prediction error signal R2 (n).

【0012】また量子化器210で得られた離散コサイ
ン変換係数に対して、逆量子化器212が逆量子化を行
い、さらに逆離散コサイン変換器213が逆離散コサイ
ン変換を行うことで、予測誤差信号R2(n)+E2(n)が得ら
れる。ただし、量子化と逆量子化は可逆変換ではないた
め、得られた予測誤差信号には誤差信号E2(n)が含まれ
ることになる。
Further, the inverse quantizer 212 performs inverse quantization on the discrete cosine transform coefficient obtained by the quantizer 210, and the inverse discrete cosine transformer 213 performs inverse discrete cosine transform, thereby predicting An error signal R2 (n) + E2 (n) is obtained. However, since the quantization and the inverse quantization are not reversible transforms, the obtained prediction error signal includes the error signal E2 (n).

【0013】加算器214は、動き補償器208によっ
て得られた予測画像信号MC[I2(n-1), V]と予測誤差信号
R2(n)+E2(n)とを加算して画像信号I2(n)を求める。した
がって、画像信号I2(n)は、式(2)を用いて、次のよ
うに表すことができる。
The adder 214 calculates the prediction image signal MC [I2 (n-1), V] and the prediction error signal obtained by the motion compensator 208.
The image signal I2 (n) is obtained by adding R2 (n) + E2 (n). Therefore, the image signal I2 (n) can be expressed as follows using the equation (2).

【0014】[0014]

【数3】 I2(n) = MC[I2(n-1),V] + R2(n) + E2(n) = I1(n) + E2(n) ・・・ (3)。[Equation 3]   I2 (n) = MC [I2 (n-1), V] + R2 (n) + E2 (n)         = I1 (n) + E2 (n) (3).

【0015】この画像信号I2(n)がメモリ215で遅延
され動き補償器208へ出力される。動き補償器208
は、既に復号した画像信号I2(n-1)と動きベクトルフィ
ールドVを用いて動き補償MCを行い、予測画像信号MC
[I2(n-1), V]を生成して減算器207へ出力する。
This image signal I2 (n) is delayed by the memory 215 and output to the motion compensator 208. Motion compensator 208
Performs the motion compensation MC using the already decoded image signal I2 (n-1) and the motion vector field V to obtain the predicted image signal MC
[I2 (n-1), V] is generated and output to the subtractor 207.

【0016】ところで、動き補償処理は、符号化を行う
画像信号ブロックと相関の高い、既に復号した画像信号
ブロックを選択すること、および選択したブロックを動
きベクトルを用いてシフトすることで実現される。その
ため、動き補償処理に対しては線形性が成り立つ。この
動き補償処理の線形性を利用して装置構成を簡易化した
従来技術が、特開平8−51631号公報、特許第31
66501号、あるいは米国特許5,623,312号
などに記載されている。これらの装置では、再量子化で
生じた誤差信号に対して動き補償処理した結果を予測誤
差信号に加える手段が設けられている。
By the way, the motion compensation process is realized by selecting an already decoded image signal block having a high correlation with the image signal block to be encoded, and shifting the selected block using a motion vector. . Therefore, linearity is established for the motion compensation processing. A conventional technique in which the device configuration is simplified by utilizing the linearity of the motion compensation processing is disclosed in Japanese Patent Laid-Open No. 8-51631 and Japanese Patent No. 31.
66501, or US Pat. No. 5,623,312. These devices are provided with means for adding the result of motion compensation processing to the error signal generated by requantization to the prediction error signal.

【0017】ここでは、特開平8−51631号公報に
記載された圧縮動画像再符号化装置を一例として説明す
る。まず、動き補償処理の線形性を適用した簡易化の過
程を説明する。
Here, the compressed moving picture re-encoding device described in Japanese Patent Laid-Open No. 8-51631 will be described as an example. First, the process of simplification by applying the linearity of the motion compensation process will be described.

【0018】上記式(3)よりI2(n)=I1(n) + E2(n)で
あるから、予測画像信号MC[I2(n-1), V]は、次式で表わ
すことができる。
Since I2 (n) = I1 (n) + E2 (n) from the above equation (3), the predicted image signal MC [I2 (n-1), V] can be expressed by the following equation. .

【0019】[0019]

【数4】 MC[I2(n-1), V] = MC[(I1(n-1)+E2(n-1)), V] ・・・ (4)。[Equation 4]   MC [I2 (n-1), V] = MC [(I1 (n-1) + E2 (n-1)), V] (4).

【0020】ここで、動き補償処理の線形性より、次式
が成り立つ。
Here, the following expression holds from the linearity of the motion compensation processing.

【0021】[0021]

【数5】 MC[(I1(n-1)+E2(n-1)),V] = MC[I1(n-1),V] + MC[E2(n-1),V] ・・・ (5)。[Equation 5]   MC [(I1 (n-1) + E2 (n-1)), V] = MC [I1 (n-1), V] + MC [E2 (n-1), V]                                               ... (5).

【0022】予測誤差信号R2(n)については、式(2)
に対して、式(1)、式(4)および式(5)を適用す
ることで、次式が成り立つ。
For the prediction error signal R2 (n), equation (2)
By applying the equation (1), the equation (4), and the equation (5) to the above, the following equation is established.

【0023】[0023]

【数6】 R2(n) = R1(n) + MC[I1(n-1),V] - MC[I1(n-1)+E2(n-1),V] = R1(n) + MC[I1(n-1),V] - MC[I1(n-1),V] - MC[E2(n-1),V] = R1(n) - MC[E2(n-1),V] ・・・ (6)。[Equation 6]   R2 (n) = R1 (n) + MC [I1 (n-1), V]-MC [I1 (n-1) + E2 (n-1), V]         = R1 (n) + MC [I1 (n-1), V]-MC [I1 (n-1), V]-MC [E2 (n-1), V]         = R1 (n)-MC [E2 (n-1), V]                                                 ... (6).

【0024】この式(6)から、再符号化に必要な予測
誤差信号R2(n)は、復号した予測誤差信号R1(n)から誤
差信号E2(n)の動き補償処理結果(以下、誤差予測信号
という。)を減算することで求められる。したがって、
図15に示す再符号化装置に比べ、再符号化に必要なメ
モリの個数を削減でき、装置構成を簡易化することがで
きるわけである。
From this equation (6), the prediction error signal R2 (n) necessary for re-encoding is the motion compensation processing result (hereinafter, error) of the decoded prediction error signal R1 (n) to the error signal E2 (n). It is obtained by subtracting the prediction signal. Therefore,
As compared with the re-encoding device shown in FIG. 15, the number of memories required for re-encoding can be reduced and the device configuration can be simplified.

【0025】図18は、このようにして簡易化された再
符号化装置の一例(特開平8−51631号公報)を示
す回路図である。可変長復号器301、逆量子化器30
2および逆離散コサイン変換器303によって入力であ
るMPEG-2ビットストリームから予測誤差信号R1(n)を求
め、離散コサイン変換器306、量子化器308および
可変長符号化器309によって予測誤差信号R2(n)から
出力であるMPEG-2ビットストリームを求め、さらに逆量
子化器310および逆離散コサイン変換器311によっ
て予測誤差信号R2(n)+E2(n)を求める構成は、図17と
同様である。
FIG. 18 is a circuit diagram showing an example (Japanese Patent Laid-Open No. 8-51631) of a re-encoding device simplified in this way. Variable length decoder 301, inverse quantizer 30
2 and the inverse discrete cosine converter 303 obtain the prediction error signal R1 (n) from the input MPEG-2 bit stream, and the discrete cosine converter 306, the quantizer 308 and the variable length encoder 309 predict the prediction error signal R2. The structure in which the output MPEG-2 bit stream is obtained from (n), and the prediction error signal R2 (n) + E2 (n) is further obtained by the inverse quantizer 310 and the inverse discrete cosine transformer 311 is the same as in FIG. Is.

【0026】この簡易化された再符号化装置では、減算
器304において、予測誤差信号R1(n)から誤差信号E2
(n-1)の誤差予測信号MC[E2(n-1),V]を減算することで予
測誤差信号R2(n)を求める。さらに、減算器307にお
いては、逆離散コサイン変換器311から出力された予
測誤差信号R2(n)+E2(n)から予測誤差信号R2(n)を減算す
ることで誤差信号E2(n)を求め、メモリ312で遅延さ
れて動き補償器305へ出力される。動き補償器305
は、誤差信号E2(n)と動きベクトルフィールドVとを用
いて誤差信号の動き補償MCを行い、誤差予測信号MC[E
2(n-1),V]を生成して減算器304へ出力する。このよ
うに構成することで、再量子化で生じた誤差信号の動き
補償処理が基本的に可能となる。
In this simplified re-encoding device, the subtractor 304 calculates the error signal E2 from the prediction error signal R1 (n).
The prediction error signal R2 (n) is obtained by subtracting the error prediction signal MC [E2 (n-1), V] of (n-1). Further, the subtractor 307 subtracts the prediction error signal R2 (n) from the prediction error signal R2 (n) + E2 (n) output from the inverse discrete cosine converter 311 to obtain the error signal E2 (n). It is obtained, delayed in the memory 312, and output to the motion compensator 305. Motion compensator 305
Performs the motion compensation MC of the error signal using the error signal E2 (n) and the motion vector field V to obtain the error prediction signal MC [E
2 (n-1), V] is generated and output to the subtractor 304. With this configuration, motion compensation processing of the error signal generated by requantization can be basically performed.

【0027】[0027]

【発明が解決しようとする課題】しかしながら、誤差信
号の動き補償を実施し、その演算過程において有限長へ
の丸め処理を行うと画質劣化が生じるという問題があっ
た。以下、従来の再符号化装置における画質劣化の原因
について説明する。ここでも、圧縮動画ストリームはMP
EG-2 VIDEOに従って圧縮符号化されているものとする。
周知のように、MPEG-2 VIDEOでは、動きベクトルの最小
単位を隣接する画素の半分の長さとした半画素精度の動
き補償処理が用いられている。動き補償処理において動
きベクトルが整数値でない場合には、存在しない画素位
置の画素値は補間により求められる。
However, when the motion compensation of the error signal is performed and the rounding process to the finite length is performed in the calculation process, there is a problem that the image quality deteriorates. The cause of image quality deterioration in the conventional re-encoding device will be described below. Again, the compressed video stream is MP
It shall be compressed and encoded according to EG-2 VIDEO.
As is well known, in MPEG-2 VIDEO, half-pixel precision motion compensation processing is used in which the minimum unit of a motion vector is half the length of an adjacent pixel. When the motion vector is not an integer value in the motion compensation process, the pixel value of a pixel position that does not exist is obtained by interpolation.

【0028】図19に示すように、整数画素位置40
1、402、403、404における画素信号の画素値
をそれぞれLa、Lb、Lc、Ldとした場合、MPEG-2 VIDEOで
は補間する半画素位置405、406、407、408
の画素信号の画素値Ia、Ib、Ic、Idは、それぞれ式7〜
式10で求められる。
As shown in FIG. 19, integer pixel position 40
If the pixel values of the pixel signals at 1, 402, 403, and 404 are La, Lb, Lc, and Ld, respectively, half-pixel positions 405, 406, 407, and 408 to be interpolated in MPEG-2 VIDEO.
The pixel values Ia, Ib, Ic, and Id of the pixel signal of
It is calculated by the equation 10.

【0029】[0029]

【数7】Ia=La ・・・(7)。[Equation 7] Ia = La (7).

【0030】[0030]

【数8】Ib=(La+Lb+1)/2 ・・・(8)。(8) Ib = (La + Lb + 1) / 2 (8).

【0031】[0031]

【数9】Ic=(La+Lc+1)/2 ・・・(9)。## EQU9 ## Ic = (La + Lc + 1) / 2 (9).

【0032】[0032]

【数10】 Id=(La+Lb+Lc+Ld+2)/4 ・・・(10)。[Equation 10] Id = (La + Lb + Lc + Ld + 2) / 4 (10).

【0033】ここで、‘/’は、除算の結果をその値を
超えない整数に丸める演算である。また、式7〜式10
において画素値に1または2が加算されているのは、小
数点以下の値を四捨五入するためである。このように半
画素精度の動き補償処理を行った場合、画素値を整数値
に丸めることによる誤差が生じる。以下、このような画
素値および誤差信号の誤差値を整数値に丸めることによ
る誤差を「丸め誤差」と呼ぶ。
Here, '/' is an operation for rounding the result of division to an integer not exceeding that value. In addition, formula 7 to formula 10
The reason that 1 or 2 is added to the pixel value in is that the value after the decimal point is rounded off. When motion compensation processing with half-pixel precision is performed in this way, an error occurs due to rounding pixel values into integer values. Hereinafter, an error caused by rounding the pixel value and the error value of the error signal into an integer value is referred to as “rounding error”.

【0034】上述したように、図18に示す再符号化装
置では、式5に示す線形性を利用することで装置構成を
簡易化していた。この場合、式5の左辺はMC[(I1(n-1)+
E2(n-1)), V]を生成する際に丸め誤差が生じ、右辺は第
一項MC[I1(n-1), V]と第二項MC[E2(n-1), V]の各項で丸
め誤差が生じる。
As described above, in the re-encoding device shown in FIG. 18, the device configuration is simplified by utilizing the linearity shown in equation 5. In this case, the left side of Equation 5 is MC [(I1 (n-1) +
E2 (n-1)), V] has a rounding error, and the right side has the first term MC [I1 (n-1), V] and the second term MC [E2 (n-1), V]. Rounding error occurs in each term of.

【0035】しかしながら、MC[(I1(n-1)+E2(n-1)), V]
の丸め誤差と、右辺第一項MC[I1(n-1), V]の丸め誤差お
よび第二項MC[E2(n-1), V]の丸め誤差の和とは等しくは
ならないので、式5は一般的に成立しない。その結果、
このように簡易化された構成では、一般に、動き補償処
理を行う際の丸め誤差が原因となって、図17に示す再
符号化装置とは異なる結果が得られる。
However, MC [(I1 (n-1) + E2 (n-1)), V]
Since the rounding error of is not equal to the sum of the rounding error of the first term MC [I1 (n-1), V] and the second term MC [E2 (n-1), V] on the right-hand side, Equation 5 is Generally does not hold. as a result,
In such a simplified configuration, a result different from that of the re-encoding device shown in FIG. 17 is generally obtained due to a rounding error when performing motion compensation processing.

【0036】丸め誤差が蓄積しなければ、丸め誤差によ
る画質劣化の影響は実用上は小さいと考えられるから、
確率的に丸め誤差の期待値が0になることが重要であ
る。上記式6により、丸め誤差が生じるのはMC[E2(n-
1), V]の項で示される動き補償処理においてであるか
ら、MC[E2(n-1), V]における丸め誤差の期待値について
考える。
If the rounding error does not accumulate, the effect of the image quality deterioration due to the rounding error is considered to be small in practical use.
It is important that the expected value of the rounding error is stochastically zero. According to the above equation 6, the rounding error is caused by MC [E2 (n-
1), V], which is the motion compensation process, so let us consider the expected rounding error in MC [E2 (n-1), V].

【0037】図19に示した整数画素位置401、40
2、403、404における誤差信号の誤差値をそれぞ
れLa, Lb, Lc, Ldとした場合、半画素位置405、40
6、407、408における誤差信号の誤差値Ia, Ib,
Ic, Idは、それぞれ式11〜式14により求めることが
できる。
The integer pixel positions 401 and 40 shown in FIG.
When the error values of the error signals at 2, 403, and 404 are La, Lb, Lc, and Ld, respectively, the half pixel positions 405 and 40
6, the error values Ia, Ib of the error signal at 407, 408,
Ic and Id can be calculated by Equations 11 to 14, respectively.

【0038】[0038]

【数11】 Ia = La ・・・ (11)。[Equation 11]   Ia = La (11).

【0039】[0039]

【数12】 If (La+Lb>=0), then Ib=(La+Lb+1)/2 else Ib=(La+Lb)/2 ・・・ (12)。[Equation 12]   If (La + Lb> = 0), then Ib = (La + Lb + 1) / 2                    else Ib = (La + Lb) / 2 (12).

【0040】[0040]

【数13】 if (La+Lc>=0), then Ic=(La+Lc+1)/2 else Ic=(La+Lc)/2 ・・・ (13)。[Equation 13]   if (La + Lc> = 0), then Ic = (La + Lc + 1) / 2                    else Ic = (La + Lc) / 2 (13).

【0041】[0041]

【数14】 if (La+Lb+Lc+Ld>=0), then Id=(La+Lb+Lc+Ld+2)/4 else Id=(La+Lb+Lc+Ld+1)/4 ・・・ (14)。[Equation 14]   if (La + Lb + Lc + Ld> = 0), then Id = (La + Lb + Lc + Ld + 2) / 4                          else Id = (La + Lb + Lc + Ld + 1) / 4 (14).

【0042】図17の再符号化装置における式7〜式1
0と異なるのは、図18に示す簡易化された再符号化装
置では、正負の値をもつ誤差信号に対して動き補償処理
を行うからである。丸め方式としては、0を中心とした
正負対称丸めが一般に用いられるので、式7〜式10を
正負対称とした式11〜式14となる。
Equations 7 to 1 in the re-encoding apparatus shown in FIG.
The difference from 0 is that the simplified re-encoding device shown in FIG. 18 performs motion compensation processing on error signals having positive and negative values. As a rounding method, positive / negative symmetrical rounding with 0 at the center is generally used, and therefore Equations 11 to 14 are obtained by positively and negatively symmetric Equations 7 to 10.

【0043】誤差信号を求めたい半画素位置が図19に
示した405、406,407,408となる確率をそ
れぞれ1/4とすると、画素位置405における丸め誤
差は明らかに0である。
If the half-pixel positions for which the error signal is to be obtained are ¼, 405, 406, 407, and 408 shown in FIG. 19, respectively, the rounding error at the pixel position 405 is obviously 0.

【0044】画素位置406における丸め誤差は、La+L
bの正負および奇偶で異なる。La+Lbが0となる場合に丸
め誤差は生じないので、0となる確率は考慮しない。そ
こでLa+Lbが正となる確率をp、負となる確率を(1-p)と
する。また、La+Lbの奇偶の確率をそれぞれ1/2とす
る。画素位置406における丸め誤差は、La+Lbが偶数
の場合は0、La+Lbが正かつ奇数の場合は1/2、La+Lb
が負かつ奇数の場合は−1/2であり、その期待値は、
0×(p+1-p)×1/2 + 1/2×p×1/2 + (-1/2)×
(1-p)×1/2=(2p-1)/4となる。画素位置407におけ
る丸め誤差の期待値も画素位置406と同様に(2p-1)/4
となる。
The rounding error at the pixel position 406 is La + L
It differs depending on whether the sign of b is odd or even. No rounding error occurs when La + Lb is 0, so the probability of 0 is not considered. Therefore, the probability that La + Lb is positive is p, and the probability that it is negative is (1-p). Also, the odd-even probability of La + Lb is set to 1/2. The rounding error at the pixel position 406 is 0 when La + Lb is even, 1/2 when La + Lb is positive and odd, and La + Lb
Is negative and odd, it is -1/2, and its expected value is
0 x (p + 1-p) x 1/2 + 1/2 x p x 1/2 + (-1/2) x
(1-p) × 1/2 = (2p-1) / 4. The expected value of the rounding error at the pixel position 407 is (2p-1) / 4 as in the pixel position 406.
Becomes

【0045】画素位置408における丸め誤差は、La+L
b+Lc+Ldの正負およびLa+Lb+Lc+Ldを4で割った余りで異
なる。そこで、La+Lb+Lc+Ldが正となる確率をq、負とな
る確率を(1-q)とする。La+Lb+Lc+Ldが正の場合に、4で
割った余りが0, 1, 2, 3である場合の丸め誤差は、そ
れぞれ0,−1/4, 1/2, 1/4となる。この時、
余りが0から3になる確率は等確率とする。また、La+L
b+Lc+Ldが負の場合に、La+Lb+Lc+Ldの絶対値を4で割っ
た余りが0, 1, 2, 3である場合の丸め誤差は、それぞ
れ0, 1/4, −1/2, −1/4となる。この時、余
りが0から3になる確率は等確率とする。これより画素
位置408における丸め誤差の期待値は、q×(0×1/
4-1/4×1/4+1/2×1/4×1/4) +(1-q)×(0×
1/4+1/4×1/4-1/2×1/4-1/4×1/4)=(2q
-1)/8となる。
The rounding error at the pixel position 408 is La + L
The difference is positive / negative of b + Lc + Ld and the remainder when La + Lb + Lc + Ld is divided by 4. Therefore, the probability that La + Lb + Lc + Ld is positive is q, and the probability that it is negative is (1-q). When La + Lb + Lc + Ld is positive, the rounding error when the remainder divided by 4 is 0, 1, 2, 3 is 0, -1/4, 1/2, 1/4, respectively. . At this time,
The probability that the remainder becomes 0 to 3 is equal. Also, La + L
When b + Lc + Ld is negative, the rounding error when the remainder of dividing the absolute value of La + Lb + Lc + Ld by 4 is 0, 1, 2, 3 is 0, 1/4, −, respectively. It becomes 1/2 and -1/4. At this time, the probability that the remainder becomes 0 to 3 is equal. From this, the expected value of the rounding error at the pixel position 408 is q × (0 × 1 /
4-1 / 4 × 1/4 + 1/2 × 1/4 × 1/4) + (1-q) × (0 ×
1/4 + 1/4 × 1 / 4−1 / 2 × 1 / 4−1 / 4 × 1/4) = (2q
-1) / 8.

【0046】よって、最終的な丸め誤差の期待値は、0
×1/4+(2p-1)/4×1/4 + (2p-1)/4×1/4 + (2q-
1)/8×1/4 = (2p-1)/8 + (2q-1)/32となる。これ
は、誤差信号の動き補償を行う度に、(2p-1)/8 +(2q-
1)/32の丸め誤差が発生することを意味する。
Therefore, the expected value of the final rounding error is 0.
× 1/4 + (2p-1) / 4 × 1/4 + (2p-1) / 4 × 1/4 + (2q-
1) / 8 × 1/4 = (2p-1) / 8 + (2q-1) / 32. This is (2p-1) / 8 + (2q-
1) It means that a rounding error of / 32 occurs.

【0047】ここで正負の確率が等確率とすれば、すな
わちp=q=1/2とすれば、丸め誤差の期待値は0となり、
丸め誤差は生じない。ただし、ここでは説明を簡単にす
るために奇遇および余りおよび誤差値の画素位置の確率
を等確率と仮定している。
Here, if the positive and negative probabilities are equal probabilities, that is, if p = q = 1/2, the expected rounding error value is 0,
No rounding error occurs. However, here, in order to simplify the explanation, the odds, the remainder, and the probability of the pixel position of the error value are assumed to be equal probabilities.

【0048】しかしながら、一般に、誤差信号における
誤差値の正負は、画像特性や量子化特性等により異なり
等確率とはならない。図20に、3種類のMPEG-2 VIDEO
ビットストリーム1,2,および3を実際に再符号化し
た場合の誤差値の分布を示す。
However, in general, the positive / negative of the error value in the error signal differs depending on the image characteristics, the quantization characteristics, etc. and does not become equal probability. Fig. 20 shows three types of MPEG-2 VIDEO
4 shows a distribution of error values when bit streams 1, 2, and 3 are actually re-encoded.

【0049】ここで、MPEG-2 VIDEOではフレーム内予測
もしくはフレーム間予測を用いて圧縮される。フレーム
内予測を用いて符号化されたフレームは動き補償が行わ
れないため、動き補償における丸め誤差は発生しない。
MPEG-2 VIDEOではIピクチャがそれにあたる。また、フ
レーム間予測を用いて符号化されたフレームのうち、参
照画像として用いられないフレームは、丸め誤差が蓄積
することはない。MPEG-2 VIDEOではBピクチャがそれに
あたる。
Here, in MPEG-2 VIDEO, compression is performed using intraframe prediction or interframe prediction. Since a frame encoded using intra-frame prediction is not motion-compensated, a rounding error in motion compensation does not occur.
In MPEG-2 VIDEO, I picture corresponds to it. Further, among frames coded using inter-frame prediction, a frame that is not used as a reference image does not accumulate rounding errors. In MPEG-2 VIDEO, this corresponds to B picture.

【0050】そこで、参照画像として用いられ、動き補
償予測を用いて圧縮されたPピクチャにおける丸め誤差
の蓄積を防ぐことが重要となる。ここではIPPPP...の構
造をもつMPEG-2 VIDEOビットストリームを用いて再符号
化を行った。Iピクチャの間隔は30フレームである。
Therefore, it is important to prevent accumulation of rounding error in a P picture used as a reference image and compressed using motion compensation prediction. Here, re-encoding was performed using an MPEG-2 VIDEO bitstream having the IPPPP ... structure. The interval between I pictures is 30 frames.

【0051】図20のグラフにおいて縦軸は輝度信号に
おけるフレームあたりの誤差値の平均値、横軸はフレー
ム番号を表す。図20から、一般には誤差信号における
誤差値の正負は、画像特性や量子化特性等により異な
り、等確率とはなっていないことがわかる。その結果、
誤差値の分布によっては丸め誤差が正もしくは負の一定
方向に蓄積することがあり、式11〜式14の補間処理
を行うと画質劣化が生じる可能性がある。
In the graph of FIG. 20, the vertical axis represents the average value of error values per frame in the luminance signal, and the horizontal axis represents the frame number. It can be seen from FIG. 20 that the positive / negative of the error value in the error signal generally differs depending on the image characteristics, the quantization characteristics, and the like, and is not equal probability. as a result,
Depending on the distribution of error values, rounding errors may accumulate in a positive or negative fixed direction, and the image quality may be deteriorated by performing the interpolation processing of Expressions 11 to 14.

【0052】圧縮動画像の符号化および復号化システム
として丸め誤差の蓄積を抑える方法は、種々提案されて
いる。
Various methods for suppressing the accumulation of rounding errors have been proposed as a system for encoding and decoding compressed moving images.

【0053】たとえば、特開平11−317957号公
報には、符号化時にプラスの丸め込み(切り上げ)方式
とマイナスの丸め込み(切り捨て)方式とを切り換える
ことで丸め誤差の蓄積を抑制する方法が開示されてい
る。同様に、特開平11−69345号公報にも、丸め
方向が正の無限大方向になる方式と負の無限大方向にな
る方式とをほぼ同じ確率で選択することで丸め誤差の累
積を回避する方法が開示されている。言い換えれば、上
記式7〜式10のような一定方向(ここでは正の方向)
への丸め方式だけを用いると、符号化時の丸め誤差が常
に一定方向に蓄積され、画質劣化が生じてしまう。この
丸め誤差の蓄積を回避するために、符号化する際に丸め
方式の切り換えを行うわけである。
For example, Japanese Laid-Open Patent Publication No. 11-317957 discloses a method of suppressing accumulation of rounding error by switching between a positive rounding (rounding up) method and a negative rounding (rounding down) method at the time of encoding. . Similarly, in Japanese Patent Laid-Open No. 11-69345, a method of avoiding accumulation of rounding errors by selecting a method in which the rounding direction is a positive infinity direction and a method in which a rounding direction is a negative infinity direction with approximately the same probability. Is disclosed. In other words, the constant direction as in the above formulas 7 to 10 (here, the positive direction)
If only the rounding method is used, the rounding error at the time of encoding is always accumulated in a fixed direction, and the image quality deteriorates. In order to avoid the accumulation of this rounding error, the rounding method is switched at the time of encoding.

【0054】しかしながら、これら公報で開示されてい
るのは、符号化および復号化システムとして丸め誤差の
蓄積を抑える方法である。したがって、これら公報で開
示された技術では、符号化時の参照画像と復号時の参照
画像を一致させるために、符号化時に用いた丸め方式が
復号化時に与えられていなければならない。そのため、
圧縮動画ストリームに丸め方式の情報を含める必要があ
る。すなわち、符号化装置における丸め方式の切り換え
情報を復号装置へ通知し、復号装置でも同じ丸め方式で
丸め処理を行うようにする必要がある。上記公報に記載
された方法は、言い換えれば、符号化方法で規定された
動き補償処理の演算精度で生じる丸め誤差を抑制しよう
とするものである。
However, what is disclosed in these publications is a method for suppressing the accumulation of rounding error as an encoding and decoding system. Therefore, in the techniques disclosed in these publications, the rounding method used at the time of encoding must be given at the time of decoding in order to match the reference image at the time of encoding and the reference image at the time of decoding. for that reason,
Rounding information must be included in the compressed video stream. That is, it is necessary to notify the decoding device of the rounding system switching information in the encoding device, so that the decoding device also performs the rounding process in the same rounding system. In other words, the method described in the above publication is intended to suppress the rounding error that occurs due to the calculation accuracy of the motion compensation processing defined by the encoding method.

【0055】これに対して、本発明の属する再符号化技
術は、符号化時の丸め方式には関係なく、入力した圧縮
動画ストリームに対して何らかの変換(符号量の低減な
ど)を行い、異なる圧縮動画ストリームとして出力する
ものである。したがって、復号装置では、その変換され
たストリームを入力して画像信号を生成する。本発明の
属する再符号化技術では、誤差信号の動き補償処理の演
算過程において有限長への丸め処理を行った場合に生じ
る丸め誤差、言い換えれば、動き補償処理の演算精度が
原因で生じる丸め誤差を打ち消すことを目的としてい
る。言い換えれば、符号化方法で規定されていない動き
補償処理の演算精度(低減された精度)で生じる丸め誤
差を抑制しようとするものである。
On the other hand, the re-encoding technique to which the present invention belongs is different regardless of the rounding method at the time of encoding, by performing some conversion (such as reduction of the code amount) on the input compressed moving image stream. It is output as a compressed moving image stream. Therefore, the decoding device inputs the converted stream and generates an image signal. In the re-encoding technology to which the present invention belongs, a rounding error that occurs when a rounding process to a finite length is performed in the calculation process of the motion compensation process of an error signal, in other words, a rounding error that occurs due to the calculation accuracy of the motion compensation process is canceled. Is intended. In other words, it is intended to suppress a rounding error that occurs in the calculation accuracy (reduced accuracy) of the motion compensation processing that is not specified by the encoding method.

【0056】したがって、特開平11−317957号
公報や特開平11−69345号公報に記載された符号
化方法を用いたとしても、図18に示すような簡易化さ
れた再符号化装置を用いて圧縮動画像ストリームデータ
を再符号化した場合には誤差信号E2(n)の丸め誤差が生
じ、画質劣化が生じるであろう。すなわち、本発明の課
題である丸め誤差は、上記公報に記載されている丸め誤
差とは異なるものであり、これら公報に記載されている
方法を用いても本発明の課題を解決することはできな
い。
Therefore, even if the encoding methods described in Japanese Patent Laid-Open Nos. 11-317957 and 11-69345 are used, a simplified re-encoding device as shown in FIG. 18 is used. If the compressed moving image stream data is re-encoded, a rounding error of the error signal E2 (n) will occur, and the image quality will deteriorate. That is, the rounding error that is the subject of the present invention is different from the rounding error described in the above publications, and the methods of these publications cannot solve the problems of the present invention.

【0057】本発明の目的は、誤差信号の動き補償処理
過程において有限長への丸め処理を行う際の丸め誤差の
蓄積を抑制して画質の劣化を防止でき、かつ簡易な構成
を有する再符号化方法および装置を提供することにあ
る。
An object of the present invention is to prevent re-encoding which has a simple structure and which can prevent the deterioration of image quality by suppressing the accumulation of rounding error when rounding processing to a finite length in the motion compensation processing process of an error signal. A method and apparatus are provided.

【0058】[0058]

【課題を解決するための手段】本発明による再符号化方
法は、所定符号化方式の圧縮動画像ストリームを入力し
て復号化し、有限長への丸め処理を含む画素精度未満単
位の動き補償予測処理を実行した後、再度符号化する方
法において、前記圧縮動画像ストリームの少なくとも一
部を復号して得られる画像信号を再量子化し、再量子化
する前の信号と再量子化した後の信号とから再量子化誤
差信号を計算し、前記再量子化誤差信号に対して前記動
き補償予測処理を実行する過程において、前記入力圧縮
動画像ストリームが生成された際の符号化処理に依存し
ない処理単位毎に、前記丸め処理の丸め方式を変更す
る、ことを特徴とする。
A re-encoding method according to the present invention is a motion-compensated prediction in units of less than pixel precision including rounding processing to a finite length by inputting and decoding a compressed moving image stream of a predetermined encoding method. In the method of re-encoding after performing processing, an image signal obtained by decoding at least a part of the compressed moving image stream is requantized, and a signal before requantization and a signal after requantization In the process of calculating a requantization error signal from the above and performing the motion compensation prediction process on the requantization error signal, a process that does not depend on the encoding process when the input compressed moving image stream is generated. The rounding method of the rounding process is changed for each unit.

【0059】前記所定符号化方式は、好ましくは、周波
数空間への変換処理を組み合わせた符号化方式であり、
前記圧縮動画像ストリームの少なくとも一部を復号して
得られる画像信号は、前記圧縮動画像ストリームの少な
くとも一部を復号して得られる周波数係数である。
The predetermined coding method is preferably a coding method in which conversion processing into frequency space is combined.
The image signal obtained by decoding at least a part of the compressed moving image stream is a frequency coefficient obtained by decoding at least a part of the compressed moving image stream.

【0060】また、丸め方式が変更される処理単位は、
好ましくは、少なくとも1フレーム/フィールドあるい
はフレーム/フィールド内の少なくとも1個の小ブロッ
クであり、少なくとも1個の画素であってもよい。
The processing unit whose rounding method is changed is
It is preferably at least one frame / field or at least one small block in a frame / field, and may be at least one pixel.

【0061】本発明の一実施形態によれば、丸め方式
は、異なるフレーム/フィールドの符号化タイプ毎に複
数個予め設定されており、前記複数の丸め方式から1つ
が前記処理単位毎に選択されることを特徴とする。ま
た、フレーム/フィールドの符号化タイプの少なくとも
1つは前記丸め方式が固定されていることを特徴とす
る。
According to an embodiment of the present invention, a plurality of rounding schemes are preset for different frame / field coding types, and one of the plurality of rounding schemes is selected for each processing unit. It is characterized by Further, at least one of frame / field coding types is characterized in that the rounding method is fixed.

【0062】動き補償予測処理は複数の補間処理を有
し、前記丸め方式は、前記複数の補間処理のそれぞれに
対応して少なくとも1つ設定されていることが望まし
い。
It is preferable that the motion compensation prediction process has a plurality of interpolation processes, and at least one rounding method is set corresponding to each of the plurality of interpolation processes.

【0063】本発明の他の実施形態によれば、所定符号
化方式の圧縮動画像ストリームを入力して復号化し、有
限長への丸め処理を含む画素精度未満単位の動き補償予
測処理を実行した後、再度符号化する方法において、前
記圧縮動画像ストリームの少なくとも一部を復号して得
られる画像信号を再量子化し、再量子化する前の信号と
再量子化した後の信号とから再量子化誤差信号を計算
し、前記再量子化誤差信号の統計情報を生成し、前記再
量子化誤差信号に対して前記動き補償予測処理を実行す
る過程において、前記入力圧縮動画像ストリームが生成
された際の符号化処理に依存しない処理単位毎に、前記
統計情報に基づいて前記丸め処理の丸め方式を変更す
る、ことを特徴とする。
According to another embodiment of the present invention, a compressed moving image stream of a predetermined encoding method is input and decoded, and motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length is executed. Then, in the method of re-encoding, the image signal obtained by decoding at least a part of the compressed moving image stream is requantized, and requantized from the signal before requantization and the signal after requantization. In the process of calculating a quantization error signal, generating statistical information of the requantization error signal, and performing the motion compensation prediction process on the requantization error signal, the input compressed moving image stream is generated. The rounding method of the rounding process is changed based on the statistical information for each processing unit that does not depend on the encoding process.

【0064】統計情報は、画素ごとの前記再量子化誤差
信号の誤差値に基づいて生成されることを特徴とする。
さらに、統計情報は、複数の画素における前記再量子化
誤差信号の誤差値の平均値に基づいて生成されることが
望ましい。統計情報は、フレーム/フィールド内の小ブ
ロックにおける前記再量子化誤差信号の誤差値の平均値
に基づいて生成されることが望ましい。
The statistical information is generated based on an error value of the requantization error signal for each pixel.
Further, it is preferable that the statistical information is generated based on an average value of error values of the requantization error signal in a plurality of pixels. The statistical information is preferably generated based on an average value of error values of the requantization error signal in a small block in a frame / field.

【0065】本発明の他の観点によれば、所定符号化方
式の圧縮動画像ストリームを入力して復号化し、有限長
への丸め処理を含む画素精度未満単位の動き補償予測処
理を実行した後、再度符号化する圧縮画像の再符号化装
置は、前記圧縮動画像ストリームの少なくとも一部を復
号して得られる画像信号を再量子化する再量子化手段
と、再量子化する前の信号と再量子化した後の信号とか
ら再量子化誤差信号を計算する誤差計算手段と、前記再
量子化誤差信号に対して前記動き補償予測処理を実行す
る誤差予測信号合成手段と、前記動き補償予測処理の過
程において、前記入力圧縮動画像ストリームが生成され
た際の符号化処理に依存しない処理単位毎に、前記丸め
処理の丸め方式を変更する丸め方式決定手段と、を有す
ることを特徴とする。
According to another aspect of the present invention, after inputting and decoding a compressed moving image stream of a predetermined encoding method and executing motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length. , A re-encoding device for re-encoding a compressed image includes re-quantizing means for re-quantizing an image signal obtained by decoding at least a part of the compressed moving image stream, and a signal before re-quantizing. Error calculation means for calculating a requantized error signal from the requantized signal, error prediction signal synthesizing means for executing the motion compensation prediction process on the requantized error signal, and the motion compensated prediction In the process of processing, there is provided rounding method determining means for changing the rounding method of the rounding processing for each processing unit that does not depend on the encoding processing when the input compressed moving image stream is generated.

【0066】本発明の一実施形態によれば、周波数空間
への変換処理を組み合わせた符号化方式の圧縮動画像ス
トリームを入力して復号化し、有限長への丸め処理を含
む画素精度未満単位の動き補償予測処理を実行した後、
再度符号化する圧縮画像の再符号化装置は、前記圧縮動
画像ストリームの少なくとも一部を復号して得られる第
1画像信号を周波数空間へ変換して周波数係数を生成す
る変換手段と、前記周波数係数を再量子化する再量子化
手段と、前記再量子化された信号を逆量子化する逆量子
化手段と、逆量子化された信号を第2画像信号に変換す
る逆変換手段と、前記第1画像信号と前記第2画像信号
とから再量子化誤差信号を計算する誤差計算手段と、前
記再量子化誤差信号に対して前記動き補償予測処理を実
行する誤差予測信号合成手段と、前記動き補償予測処理
の過程において、前記入力圧縮動画像ストリームが生成
された際の符号化処理に依存しない処理単位毎に、前記
丸め処理の丸め方式を変更する丸め方式決定手段と、を
有することを特徴とする。
According to one embodiment of the present invention, a compressed moving image stream of an encoding method in which a conversion process into a frequency space is combined is input, decoded, and rounded to a finite length. After performing the motion compensation prediction process,
A re-encoding device for re-encoding a compressed image includes converting means for converting a first image signal obtained by decoding at least a part of the compressed moving image stream into a frequency space to generate frequency coefficients, and the frequency. Requantizing means for requantizing coefficients, dequantizing means for dequantizing the requantized signal, inverse transforming means for transforming the dequantized signal into a second image signal, and Error calculating means for calculating a requantized error signal from the first image signal and the second image signal; error predicted signal synthesizing means for executing the motion compensation prediction process on the requantized error signal; In the process of the motion compensation prediction process, a rounding method determining unit that changes the rounding method of the rounding process is provided for each processing unit that does not depend on the encoding process when the input compressed moving image stream is generated. Characteristic To.

【0067】本発明のさらに他の観点によれば、所定符
号化方式の圧縮動画像ストリームを入力して復号化し、
有限長への丸め処理を含む画素精度未満単位の動き補償
予測処理を実行した後、再度符号化する圧縮画像の再符
号化装置は、前記圧縮動画像ストリームの少なくとも一
部を復号して得られる画像信号を再量子化する再量子化
手段と、再量子化する前の信号と再量子化した後の信号
とから再量子化誤差信号を計算する誤差計算手段と、前
記再量子化誤差信号に対して前記動き補償予測処理を実
行し、前記丸め処理による誤差値を生成する誤差予測信
号合成手段と、前記丸め処理による誤差値の統計情報を
蓄積する蓄積手段と、前記動き補償予測処理の過程にお
いて、前記入力圧縮動画像ストリームが生成された際の
符号化処理に依存しない処理単位毎に、前記統計情報に
基づいて前記丸め処理の丸め方式を変更する丸め方式決
定手段と、を有することを特徴とする。
According to still another aspect of the present invention, a compressed moving image stream of a predetermined encoding method is input and decoded,
A re-encoding device for a compressed image that performs re-encoding after performing motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length is obtained by decoding at least a part of the compressed moving image stream. Requantization means for requantizing the image signal, error calculation means for calculating a requantization error signal from the signal before requantization and the signal after requantization, and the requantization error signal On the other hand, an error prediction signal synthesizing unit that executes the motion compensation prediction process to generate an error value by the rounding process, a storage unit that accumulates statistical information of the error value by the rounding process, and a process of the motion compensation prediction process. In the above, there is provided a rounding method determining unit that changes the rounding method of the rounding processing based on the statistical information for each processing unit that does not depend on the encoding processing when the input compressed moving image stream is generated. It is characterized in.

【0068】上述したように、本発明によれば、画像デ
ータのフレーム/フィールドあるいは小ブロックなどの
所定処理単位ごとに、動き補償の丸め方式が変更される
ために、丸め誤差の蓄積を抑制することができ、誤差値
の分布が偏った場合でも、時間方向の平均では丸め誤差
の期待値を0に近づけることができ、一定方向への丸め
誤差の発生を抑えることができる。
As described above, according to the present invention, since the rounding method of motion compensation is changed for each predetermined processing unit such as a frame / field of image data or a small block, accumulation of rounding error is suppressed. Even if the distribution of the error values is biased, the expected value of the rounding error can be brought close to 0 on the average in the time direction, and the occurrence of the rounding error in the fixed direction can be suppressed.

【0069】さらに、丸め誤差の統計情報を用いること
で、実際の誤差発生に応じて丸め方式を決定することが
でき、丸め誤差の蓄積をさらに効果的に抑制することが
できる。
Furthermore, by using the statistical information of the rounding error, the rounding method can be determined according to the actual occurrence of the error, and the accumulation of the rounding error can be suppressed more effectively.

【0070】[0070]

【発明の実施の形態】以下、本発明の実施形態を説明す
るが、再符号化装置としての基本的構成は図16に示す
ものと同じである。したがって、可変長復号器や逆量子
化器などの説明は省略し、本発明による動き補償器を中
心に詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below, but the basic configuration of a re-encoding device is the same as that shown in FIG. Therefore, the description of the variable length decoder and the inverse quantizer is omitted, and the motion compensator according to the present invention will be mainly described in detail.

【0071】(第1実施形態)図1は、本発明による再
符号化装置の第1実施形態における動き補償部の構成を
示すブロック図である。本発明による動き補償部10
は、入力ビットストリームの符号化情報、丸め方式変更
情報および参照誤差信号を入力し、誤差予測信号を出力
する。動き補償部10は、丸め方式決定部101および
誤差予測信号合成部102を含む。
(First Embodiment) FIG. 1 is a block diagram showing the configuration of a motion compensation section in a first embodiment of a re-encoding device according to the present invention. Motion compensation unit 10 according to the present invention
Inputs input bitstream coding information, rounding scheme change information, and a reference error signal, and outputs an error prediction signal. The motion compensation unit 10 includes a rounding method determination unit 101 and an error prediction signal synthesis unit 102.

【0072】丸め方式決定部101は、現在の丸め方
式、丸め方式変更情報および符号化情報に基づいて次の
丸め方式を決定し、誤差予測信号合成部102へ丸め方
式情報を出力する。ここで丸め方式変更情報は、後述す
るように、丸め方式の変更を行う期間および条件に関す
る情報であり、例えば、誤差予測信号合成部102に予
め組み込まれている設定可能な丸め方式(図2参照)の
インデックスあるいは丸め方式の数式情報等である。丸
め方式変更情報にしたがって、丸め方式決定部101は
丸め方式を設定し、設定された丸め方式によって誤差予
測信号合成部102は動き補償処理を実行する。
The rounding scheme determination unit 101 determines the next rounding scheme based on the current rounding scheme, the rounding scheme change information and the coding information, and outputs the rounding scheme information to the error prediction signal synthesis unit 102. Here, the rounding method change information is information about a period and a condition for changing the rounding method, as will be described later. For example, the rounding method change information that is set in advance in the error prediction signal synthesis unit 102 (see FIG. 2). ) Index or rounding formula information. The rounding method determination unit 101 sets the rounding method according to the rounding method change information, and the error prediction signal synthesizing unit 102 executes the motion compensation process according to the set rounding method.

【0073】誤差予測信号合成部102は、参照する誤
差信号E2(n-1)と、動きベクトル等の入力ストリームの
符号化情報と、丸め決定部101から入力した丸め方式
情報とを用いて誤差予測信号MC[E2(n-1),V]を求め、減
算器20へ出力する。
The error prediction signal synthesizing unit 102 uses the error signal E2 (n-1) to be referred to, the coding information of the input stream such as the motion vector, and the rounding method information input from the rounding determining unit 101 to calculate the error. The prediction signal MC [E2 (n-1), V] is obtained and output to the subtractor 20.

【0074】ここでは、補間する誤差信号の画素位置や
符号化モード等によってM種類の補間処理が存在するも
のとし、各補間処理において、複数の丸め方式Zが設定
されている。たとえば、補間処理1では、K(1)個の
丸め方式Z11〜Z1K(1)が存在し、同様に、補間処理M
では、K(M)個の丸め方式ZM1〜ZMK(M)が存在する
ものとする。たとえば、各補間処理の複数の丸め方式を
初期設定方式から順次あるいはランダムに選択する。
Here, it is assumed that there are M types of interpolation processing depending on the pixel position of the error signal to be interpolated, the encoding mode, etc., and a plurality of rounding methods Z are set in each interpolation processing. For example, in the interpolation processing 1, there are K (1) rounding methods Z 11 to Z 1K (1) , and similarly, the interpolation processing M
Then, it is assumed that there are K (M) rounding methods Z M1 to Z MK (M) . For example, a plurality of rounding methods for each interpolation process are sequentially or randomly selected from the initial setting method.

【0075】図2は、第1実施形態に用いられる丸め方
式の一覧を示す図である。各補間処理において、入力ビ
ットストリームに含まれる符号化情報等を用いた条件C
ごとに丸め方式が存在するものとしても良い。たとえ
ば、K(1)個の条件C11〜C 1K(1)に対してそれぞれ
丸め方式Z11〜Z1K(1)が存在し、同様に、補間処理M
では、K(M)個の条件CM1〜CMK(M)に対してそれぞ
れ丸め方式ZM1〜ZMK(M)が存在してもよい。
FIG. 2 shows a rounding method used in the first embodiment.
It is a figure which shows the list of a formula. In each interpolation process, input
Condition C using encoding information included in the input stream
There may be a rounding method for each. for example
For example, K (1) condition C11~ C 1K (1)Against each
Rounding method Z11~ Z1K (1)Exists, and similarly, the interpolation process M
Then, there are K (M) conditions CM1~ CMK (M)Against that
Re rounding method ZM1~ ZMK (M)May exist.

【0076】図3は、本実施形態における丸め決定部1
01の動作を示すフローチャートである。補間処理の丸
め方式に対しては初期値が与えられているものとする。
また、丸め決定部101において、符号化情報は丸め方
式の変更時判定および参照画像であるかどうかの判定で
用いられる。
FIG. 3 shows the rounding determination unit 1 in this embodiment.
It is a flow chart which shows operation of 01. It is assumed that an initial value is given to the rounding method of the interpolation processing.
Further, in the rounding determination unit 101, the encoded information is used in the determination when changing the rounding method and the determination as to whether it is a reference image.

【0077】ステップS1では、丸め方式決定部101
に供給される丸め方式変更情報および符号化情報を用い
て丸め方式を変更をするか否かを判断する。丸め方式を
変更する場合はステップS2へ、変更しない場合はステ
ップS3へ移る。丸め方式の変更は、丸め方式変更情報
によって定められたある処理単位ごとに行う。後述する
ように、フレーム/フィールド単位、あるいはフレーム
/フィールド内のブロック単位などである。
In step S1, the rounding method determining unit 101
It is determined whether to change the rounding method using the rounding method change information and the encoding information supplied to the. If the rounding method is changed, the process proceeds to step S2, and if not, the process proceeds to step S3. The change of the rounding method is performed for each certain processing unit defined by the rounding method change information. As will be described later, it is a frame / field unit or a block unit in a frame / field.

【0078】ステップS2では、補間処理で求める誤差
信号が、参照画像として用いられるか否かを符号化情報
を用いて判断する。参照画像として用いられる場合はス
テップS4へ、そうでない場合はステップS5へ移る。
In step S2, it is judged using the coding information whether or not the error signal obtained by the interpolation processing is used as the reference image. If it is used as a reference image, the process proceeds to step S4, and if not, the process proceeds to step S5.

【0079】ステップS3では、丸め方式を変更せず
に、前回の補間処理と同様の丸め方式を用いる。すなわ
ち、このステップS3では何も行わずに、丸め方式の決
定処理を終了する。
In step S3, the same rounding method as the previous interpolation process is used without changing the rounding method. That is, in this step S3, the rounding method determination process is terminated without doing anything.

【0080】ステップS4では、丸め方式を変更する。
補間する誤差信号の画素位置や符号化モード等によって
複数種類の補間処理が存在するため、各補間処理におけ
る丸め方式を変更する。
In step S4, the rounding method is changed.
Since there are multiple types of interpolation processing depending on the pixel position of the error signal to be interpolated, the encoding mode, etc., the rounding method in each interpolation processing is changed.

【0081】ステップS5では、参照画像として用いら
れない誤差信号の丸め方式を決定する。参照画像として
用いられない誤差信号の丸め誤差は蓄積されないので、
丸め方式を初期値のままで用いる場合には、このステッ
プでは何も行わず、そのまま丸め方式の決定処理を終了
する。
In step S5, the rounding method of the error signal not used as the reference image is determined. Since the rounding error of the error signal that is not used as the reference image is not accumulated,
When the rounding method is used with the initial value as it is, nothing is done in this step, and the rounding method determination processing is ended.

【0082】ステップS6では、ステップS4で決定し
た丸め方式を、丸め方式情報として誤差予測信号合成部
102へ出力し、丸め方式の決定処理を終了する。
In step S6, the rounding method determined in step S4 is output to the error prediction signal synthesizing unit 102 as rounding method information, and the rounding method determination processing ends.

【0083】次に、具体的な実施例を用いて、本実施形
態の動作を詳細に説明する。
Next, the operation of this embodiment will be described in detail using a specific example.

【0084】(1)第1実施形態の第1実施例 第1実施例では、入力となる圧縮動画ストリームはMPEG
-2 VIDEOストリームとし、誤差信号を整数値に丸めるも
のとする。MPEG-2 VIDEOにおいて、誤差信号の補間処理
を行い、かつ参照画像信号となるのは前方向予測を用い
たPピクチャのみである。本実施例では、丸め方式の変
更はPピクチャに対してのみ行い、その期間は1フレー
ムごとに行うという丸め変更情報が供給されるものとす
る。
(1) First Example of First Embodiment In the first example, the input compressed moving image stream is MPEG.
-2 It shall be a VIDEO stream and the error signal shall be rounded to an integer value. In MPEG-2 VIDEO, it is only the P picture that uses forward prediction that interpolates the error signal and becomes the reference image signal. In the present embodiment, it is assumed that the rounding method is changed only for the P picture, and the rounding change information is supplied for each frame during the period.

【0085】丸め方式の変更期間および条件に関して
は、輝度信号や各色信号ごとに変更したり、画像信号の
あるブロックサイズごと、もしくは、あるフレーム数ご
と、ある符号化タイプごとに変更したり、ある予測方式
毎に変更したり、と様々なものが考えられる。例えば、
MPEG-2 VIDEOでは、予測方式に順方向予測、逆方向予
測、双方向予測があり、これらの予測方式には、フィー
ルド予測、フレーム予測等がある。
The changing period and conditions of the rounding method may be changed for each luminance signal or each color signal, for each block size of an image signal, for each certain number of frames, or for each certain coding type. Various methods can be considered, such as changing for each prediction method. For example,
In MPEG-2 VIDEO, the prediction methods include forward prediction, backward prediction, and bidirectional prediction, and these prediction methods include field prediction and frame prediction.

【0086】丸め方式は、複数の補間処理、複数の条件
ごとに設定可能である。例えば、MPEG-2 VIDEOでは、補
間処理として、水平半画素丸め、垂直半画素丸め、水平
・垂直半画素丸め、デュアルプライム丸め、双方向予測
丸めの5種類がある。
The rounding method can be set for each of a plurality of interpolation processes and a plurality of conditions. For example, in MPEG-2 VIDEO, there are five types of interpolation processing: horizontal half-pixel rounding, vertical half-pixel rounding, horizontal / vertical half-pixel rounding, dual prime rounding, and bidirectional predictive rounding.

【0087】また、条件としては、例えば輝度信号や各
色差信号の信号による条件、フレーム動き補償やフィー
ルド動き補償等の符号化情報を用いた条件、およびその
組み合わせが考えられる。しかし、ここでは簡単化のた
めに、条件による丸め方式の設定は行わず、上記5種類
の補間処理に対して次に示す丸め方式を設定するものと
する。
As the condition, for example, a condition based on a signal of a luminance signal or each color difference signal, a condition using encoded information such as frame motion compensation or field motion compensation, and a combination thereof can be considered. However, here, for simplification, the rounding method is not set according to the conditions, and the following rounding methods are set for the above-mentioned five types of interpolation processing.

【0088】まず、PピクチャおよびBピクチャの丸め
方式の初期値として、上記式12〜式14および次式1
5の丸め方式を与える。
First, as the initial values of the rounding method for P pictures and B pictures, the above equations 12 to 14 and the following equation 1 are used.
A rounding method of 5 is given.

【0089】[0089]

【数15】 if (Le+Lf>=0), then Ie=(Le+Lf+1)/2, else Ie=(Le+Lf)/2 ・・・ (15)。[Equation 15]   if (Le + Lf> = 0), then Ie = (Le + Lf + 1) / 2,                     else Ie = (Le + Lf) / 2 (15).

【0090】式15は、Pピクチャのデュアルプライム
予測時およびBピクチャの双方向予測時に用いられる丸
め方式である。デュアルプライム予測および双方向予測
では2つの画素信号LeとLfの平均をとる。
Expression 15 is a rounding method used in dual prime prediction of P pictures and bidirectional prediction of B pictures. In dual prime prediction and bidirectional prediction, the two pixel signals Le and Lf are averaged.

【0091】上記式12〜式15をまとめて、以下、上
記5種類の補間処理に対する丸め方式の初期値を次のよ
うに記すこととする。
The above equations 12 to 15 are put together, and the initial values of the rounding method for the above five kinds of interpolation processing will be described as follows.

【0092】水平半画素の丸め: La+Lb>=0の場合には、丸め方式Z11:Ib=(La+Lb+1)/2、 La+Lb<0の場合には、丸め方式Z12:Ib=(La+Lb)/2。Rounding of half horizontal pixel: Rounding method Z 11 when La + Lb> = 0: Rounding method Z 11 when Ib = (La + Lb + 1) / 2, La + Lb <0 12 : Ib = (La + Lb) / 2.

【0093】垂直半画素の丸め: La+Lc>=0の場合には、丸め方式Z21:Ic=(La+Lc+1)/2、 La+Lc<0の場合には、丸め方式Z22:Ic=(La+Lc)/2。Rounding of vertical half pixels: Rounding method Z 21 if La + Lc> = 0: Rounding method Z 21 if Ic = (La + Lc + 1) / 2, La + Lc <0 22 : Ic = (La + Lc) / 2.

【0094】水平・垂直半画素の丸め: La+Lb+Lc+Ld>=0の場合には、丸め方式Z31:Id=(La+Lb+
Lc+Ld+2)/4、 La+Lb+Lc+Ld <0の場合には、丸め方式Z32:Id=(La+Lb+
Lc+Ld+1)/4。
Rounding of horizontal / vertical half pixels: When La + Lb + Lc + Ld> = 0, rounding method Z 31 : Id = (La + Lb +
Lc + Ld + 2) / 4, La + Lb + Lc + Ld <0, rounding method Z 32 : Id = (La + Lb +
Lc + Ld + 1) / 4.

【0095】デュアルプライム/双方向予測の丸め: Le+Lf>=0の場合には、丸め方式Z41:Ie=(Le+Lf+1)/2、 Le+Lf<0の場合には、丸め方式Z42:Ie=(Le+Lf)/2。Rounding of dual prime / bidirectional prediction: Rounding method Z 41 when Le + Lf> = 0: Ie = (Le + Lf + 1) / 2, Le + Lf <0 Rounding method Z 42 : Ie = (Le + Lf) / 2.

【0096】図4は、本発明による第1実施例における
丸め方式決定部の動作を示すフローチャートである。ま
ず、各補間処理の丸め方式に対して上記初期値を与えて
おく。
FIG. 4 is a flow chart showing the operation of the rounding method determining section in the first embodiment according to the present invention. First, the initial value is given to the rounding method of each interpolation process.

【0097】ステップS11では、補間処理で求める誤
差信号の位置がフレームの先頭かを符号化情報を用いて
判断する。もしフレームの先頭であれば、ステップS1
2へ、そうでない場合はステップS13へ移る。
In step S11, it is determined using the coding information whether the position of the error signal obtained by the interpolation processing is the head of the frame. If it is the beginning of the frame, step S1
2; otherwise, to step S13.

【0098】ステップS12では、補間処理で求める誤
差信号がPピクチャであるか否かを符号化情報を用いて
判断する。誤差信号がPピクチャの場合は、ステップS
14へ、そうでない場合はステップS15へ移る。
In step S12, it is determined using the coding information whether the error signal obtained by the interpolation processing is a P picture. If the error signal is a P picture, step S
14, otherwise, to step S15.

【0099】ステップS13では、丸め方式を変更しな
い。この場合は、前回の処理と同様の丸め方式を用い
て、丸め方式の決定処理を終了する。
In step S13, the rounding method is not changed. In this case, the rounding method similar to the previous processing is used to end the rounding method determination processing.

【0100】ステップS14では、水平半画素、垂直半
画素、水平垂直半画素、デュアルプライムの4種類の補
間処理に対する丸め方式を変更する。第1実施例では、
Pピクチャ1フレームごとに、補間処理内部における誤
差値の和の正負に応じて丸め方式を設定している。
In step S14, the rounding method for four types of interpolation processing of horizontal half pixel, vertical half pixel, horizontal vertical half pixel, and dual prime is changed. In the first embodiment,
For each P picture frame, a rounding method is set according to whether the sum of error values inside the interpolation process is positive or negative.

【0101】したがって、Pピクチャが偶数枚目の時に
は初期値と同様の丸め方式となる。すなわち、水平半画
素の丸めの場合には、La+Lbが0以上の時に丸め方式Z
11:Ib=(La+Lb+1)/2が、La+Lbが負の時に丸め方式
12:Ib=(La+Lb)/2が設定され、垂直半画素の丸めの場
合には、La+Lcが0以上の時に丸め方式Z21:Ic=(La+Lc
+1)/2が、La+Lcが負の時に丸め方式Z22:Ic=(La+Lc)/2
が設定され、水平・垂直半画素の丸めの場合には、La+L
b+Lc+Ldが0以上の時に丸め方式Z31:Id=(La+Lb+Lc+Ld
+2)/4が、La+Lb+Lc+Ldが負の時に丸め方式Z32:Id=(La
+Lb+Lc+Ld+1)/4が設定され、デュアルプライムの丸めの
場合には、Le+Lfが0以上の時に丸め方式Z41:Ie=(Le+
Lf+1)/2が、Le+Lfが負の時に丸め方式Z42:Ie=(Le+Lf)
/2が設定される。
Therefore, when the number of P pictures is an even number, the rounding method is the same as the initial value. That is, in the case of rounding the horizontal half pixel, when La + Lb is 0 or more, the rounding method Z
11 : Ib = (La + Lb + 1) / 2 is set, and when La + Lb is negative, a rounding method Z 12 : Ib = (La + Lb) / 2 is set, and in the case of rounding half a vertical pixel, Rounding method when La + Lc is 0 or more Z 21 : Ic = (La + Lc
Rounding method when +1) / 2 is negative La + Lc Z 22 : Ic = (La + Lc) / 2
Is set, and if horizontal / vertical half-pixel rounding is performed, La + L
Rounding method when b + Lc + Ld is 0 or more Z 31 : Id = (La + Lb + Lc + Ld
Rounding method when +2) / 4 and La + Lb + Lc + Ld are negative Z 32 : Id = (La
+ Lb + Lc + Ld + 1) / 4 is set, and in case of dual prime rounding, when Le + Lf is 0 or more, rounding method Z 41 : Ie = (Le +
Rounding method when Lf + 1) / 2 is negative Le + Lf Z 42 : Ie = (Le + Lf)
/ 2 is set.

【0102】またPピクチャが奇数枚目の時には、次の
ように丸め方式が変更される。 すなわち、水平半画素
の丸めの場合には、La+Lbが0以上の時に丸め方式
12:Ib=(La+Lb)/2が、La+Lbが負の時に丸め方式
11:Ib=(La+Lb+1)/2が設定され、垂直半画素の丸めの
場合には、La+Lcが0以上の時に丸め方式Z22:Ic=(La+
Lc)/2が、La+Lcが負の時に丸め方式Z21:Ic=(La+Lc+1)
/2が設定され、水平・垂直半画素の丸めの場合には、La
+Lb+Lc+Ldが0以上の時に丸め方式Z32:Id=(La+Lb+Lc+
Ld+1)/4が、La+Lb+Lc+Ldが負の時に丸め方式Z31:Id=
(La+Lb+Lc+Ld+2)/4が設定され、デュアルプライムの丸
めの場合には、Le+Lfが0以上の時に丸め方式Z42:Ie=
(Le+Lf)/2が、Le+Lfが負の時に丸め方式Z41:Ie=(Le+L
f+1)/2が設定される。
When the number of P pictures is odd, the rounding method is changed as follows. That is, in the case of rounding half a horizontal pixel, the rounding method Z 12 : Ib = (La + Lb) / 2 when La + Lb is 0 or more, and the rounding method Z 11 : Ib = when La + Lb is negative. When (La + Lb + 1) / 2 is set and the rounding of the vertical half pixel is performed, when La + Lc is 0 or more, the rounding method Z 22 : Ic = (La +
Rounding method when Lc) / 2 is La + Lc is negative Z 21 : Ic = (La + Lc + 1)
When / 2 is set and the horizontal / vertical half pixel is rounded, La
Rounding method when + Lb + Lc + Ld is 0 or more Z 32 : Id = (La + Lb + Lc +
Rounding method when Ld + 1) / 4 and La + Lb + Lc + Ld are negative Z 31 : Id =
(La + Lb + Lc + Ld + 2) / 4 is set, and in the case of dual prime rounding, when Le + Lf is 0 or more, the rounding method Z 42 : Ie =
Rounding method when (Le + Lf) / 2 is negative Le + Lf Z 41 : Ie = (Le + L
f + 1) / 2 is set.

【0103】ステップS15では、Bピクチャの丸め方
式を決定するが、本実施例ではBピクチャの丸め方式は
初期値を用いるので、このステップでは何も行わない
で、丸め方式の決定処理を終了する。
In step S15, the B picture rounding method is determined. In this embodiment, however, since the B picture rounding method uses an initial value, nothing is done in this step, and the rounding method determination processing ends. .

【0104】ステップS16では、ステップS14で決
定した丸め方式を、丸め方式情報として誤差予測信号合
成部102へ出力し、丸め方式の決定処理を終了する。
In step S16, the rounding method determined in step S14 is output to the error prediction signal synthesizing unit 102 as rounding method information, and the rounding method determination processing ends.

【0105】(2)第1実施形態の第2実施例 第2実施例は、第1実施例における丸め方式の変更ステ
ップ(図4のS14およびS15)が異なる。第2実施例
では補完処理内部の条件によらず、つまり誤差値の和の
正負よらず1つの丸め方式を設定している点で第1実施
例と異なる。
(2) Second Example of First Embodiment The second example is different in the rounding method changing steps (S14 and S15 in FIG. 4) in the first example. The second embodiment is different from the first embodiment in that one rounding method is set irrespective of the condition inside the complementary processing, that is, whether the sum of error values is positive or negative.

【0106】図5は、本発明による第2実施例における
丸め方式決定部の動作を示すフローチャートである。上
述したように、まず、各補間処理の丸め方式に対して上
記初期値を与えておく。続く、ステップS21〜S23
は、図4のステップS11〜S13と同じである。
FIG. 5 is a flow chart showing the operation of the rounding method determining unit in the second embodiment according to the present invention. As described above, first, the initial value is given to the rounding method of each interpolation process. Sequential steps S21 to S23
Is the same as steps S11 to S13 in FIG.

【0107】ステップS24では、第1実施例と同様
に、水平半画素、垂直半画素、水平垂直半画素、デュア
ルプライムの4種類の補間処理に対する丸め方式を変更
する。ただし、第1実施例とは異なり、Pピクチャ1フ
レームごとに、補間処理内部における誤差値の和の正負
とは関係なく丸め方式を設定する。
In step S24, as in the first embodiment, the rounding method for the four types of interpolation processing of horizontal half pixel, vertical half pixel, horizontal vertical half pixel, and dual prime is changed. However, unlike the first embodiment, the rounding method is set for each P picture frame, regardless of whether the sum of error values in the interpolation process is positive or negative.

【0108】具体的には、Pピクチャが偶数枚目の時に
は初期値と同様の丸め方式となる。すなわち、水平半画
素の丸めの場合には、丸め方式Z11:Ib=(La+Lb+1)/2が
設定され、垂直半画素の丸めの場合には、丸め方式
21:Ic=(La+Lc+1)/2が設定され、水平・垂直半画素の
丸めの場合には、丸め方式Z31:Id=(La+Lb+Lc+Ld+2)/4
が設定され、デュアルプライムの丸めの場合には、丸め
方式Z41:Ie=(Le+Lf+1)/2が設定される。
Specifically, when the P picture is an even number, the rounding method is the same as the initial value. That is, the rounding method Z 11 : Ib = (La + Lb + 1) / 2 is set in the case of horizontal half-pixel rounding, and the rounding method Z 21 : Ic = (is set in the case of vertical half-pixel rounding. When La + Lc + 1) / 2 is set and the horizontal / vertical half pixel is rounded, the rounding method Z 31 : Id = (La + Lb + Lc + Ld + 2) / 4
Is set, and in the case of dual prime rounding, the rounding method Z 41 : Ie = (Le + Lf + 1) / 2 is set.

【0109】またPピクチャが奇数枚目の時には、次の
ように丸め方式が変更される。 すなわち、水平半画素
の丸めの場合には、丸め方式Z12:Ib=(La+Lb)/2が設定
され、垂直半画素の丸めの場合には、丸め方式Z22:Ic
=(La+Lc)/2がが設定され、水平・垂直半画素の丸めの場
合には、丸め方式Z32:Id=(La+Lb+Lc+Ld+1)/4が設定さ
れ、デュアルプライムの丸めの場合には、丸め方式
42:Ie=(Le+Lf)/2が設定される。
When the P picture is an odd number, the rounding method is changed as follows. That is, the rounding method Z 12 : Ib = (La + Lb) / 2 is set in the case of horizontal half pixel rounding, and the rounding method Z 22 : Ic is set in the case of vertical half pixel rounding.
= (La + Lc) / 2 is set and horizontal / vertical half-pixel rounding is used, the rounding method Z 32 : Id = (La + Lb + Lc + Ld + 1) / 4 is set and dual In the case of prime rounding, the rounding method Z 42 : Ie = (Le + Lf) / 2 is set.

【0110】ステップS25では、Bピクチャの丸め方
式を決定するが、本実施例ではBピクチャの丸め方式は
初期値を用いるので、このステップでは何も行わない
で、丸め方式の決定処理を終了する。ただし、S24と
同様に補間処理の内部条件によらず1つの丸め方式を用
いる。
In step S25, the B picture rounding method is determined. However, since the B picture rounding method uses an initial value in this embodiment, nothing is done in this step, and the rounding method determination processing ends. . However, as in S24, one rounding method is used regardless of the internal conditions of the interpolation processing.

【0111】ステップS26では、ステップS24で決
定した丸め方式を、丸め方式情報として誤差予測信号合
成部102へ出力し、丸め方式の決定処理を終了する。
In step S26, the rounding method determined in step S24 is output to the error prediction signal synthesizing unit 102 as rounding method information, and the rounding method determining process is terminated.

【0112】第2実施例では、各補間処理内部に一つの
丸め方式を用いるので、補間処理内部の条件分岐が省略
できる。このために、第1実施例に比べ、装置規模を小
さくできる。また、プログラムなどの場合は、補間処理
内部での条件分岐の判断が省略できるので、高速な処理
を実現できる。
In the second embodiment, since one rounding method is used inside each interpolation process, the conditional branch inside the interpolation process can be omitted. Therefore, the device scale can be reduced as compared with the first embodiment. Further, in the case of a program or the like, determination of conditional branching inside the interpolation processing can be omitted, so high-speed processing can be realized.

【0113】(第2実施形態)本発明の第2実施形態
は、構成においては第1実施形態と同様であるが、第1
実施形態と丸め方式決定部101においてフレームの符
号化タイプごとに丸め方式を変更する点で動作が異な
る。
(Second Embodiment) The second embodiment of the present invention has the same structure as the first embodiment, but the first embodiment
The operation is different from that of the embodiment in that the rounding method is changed for each frame coding type in the rounding method determination unit 101.

【0114】図6は、本発明による第2実施形態におけ
る丸め方式決定部の動作を示すフローチャートである。
ここでは、丸め方式決定部において、符号化情報が丸め
方式の変更判定および符号化タイプの判定で用いられ
る。また、フレームの符号化タイプはW種類存在するも
のとし、K種類の符号化タイプ1〜Kに対しては丸め方
式の変更を行い、残りの符号化タイプK+1〜Wに対し
ては初期値として設定された丸め方式を用いるものとす
る。
FIG. 6 is a flow chart showing the operation of the rounding method determination unit in the second embodiment according to the present invention.
Here, in the rounding scheme determination unit, the coding information is used in the rounding scheme change determination and the coding type determination. Also, it is assumed that there are W types of frame encoding types, the rounding method is changed for K types of encoding types 1 to K, and the remaining encoding types K + 1 to W are set to initial values. The set rounding method shall be used.

【0115】ステップS31では、丸め方式決定部10
1に供給される丸め方式変更情報および符号化情報を用
いて丸め方式を変更をするか否かを判断する。丸め方式
の変更は丸め方式変更情報によって定められたある処理
単位ごとに行う。丸め方式を変更する場合は、ステップ
S32へ、そうでない場合はステップS33へ移る。ス
テップS33では、丸め方式を変更しない。この場合
は、前回の処理と同様の丸め方式を用いて、丸め方式の
決定処理を終了する。
In step S31, the rounding method determining unit 10
It is determined whether or not to change the rounding method by using the rounding method change information and the encoding information supplied to 1. The change of the rounding method is performed for each certain processing unit determined by the rounding method change information. If the rounding method is changed, the process proceeds to step S32, and if not, the process proceeds to step S33. In step S33, the rounding method is not changed. In this case, the rounding method similar to the previous processing is used to end the rounding method determination processing.

【0116】ステップS32では、補間処理で求める誤
差信号が、符号化タイプ1であるか否かを符号化情報を
用いて判断する。符号化タイプ1である場合はステップ
S36へ、そうでない場合は符号化タイプ2の条件分岐
処理へ移る。以下同様にして、符号化タイプKの条件分
岐処理(ステップS34)まで、各符号化タイプを順次
判別する。ステップS34において、符号化タイプKで
ある場合はステップS37へ、そうでない場合には符号
化タイプK+1〜Wであるか否か条件分岐処理(ステッ
プS35)へ移る。
In step S32, it is judged using the coding information whether or not the error signal obtained by the interpolation processing is coding type 1. If it is the coding type 1, the process proceeds to step S36, and if not, the process proceeds to the coding type 2 conditional branching process. Similarly, each coding type is sequentially determined until the conditional branching process of the coding type K (step S34). If the coding type is K in step S34, the process proceeds to step S37. If not, the process proceeds to conditional branching processing (step S35) to determine whether the coding types are K + 1 to W.

【0117】ステップS36では、符号化タイプ1の丸
め方式を変更する。ここでは、M(1)種類の補間処理
が存在するものとしている。続いてステップS39へ移
る。同様に、各条件分岐ステップにおいて該当符号化タ
イプiであると判定された場合には、当該符号化タイプ
iの丸め方式を変更する。ここではM(i)種類の補間
処理が存在するものとしている。
In step S36, the coding type 1 rounding method is changed. Here, it is assumed that there are M (1) types of interpolation processing. Then, it proceeds to step S39. Similarly, if it is determined in each conditional branching step that the encoding type is the corresponding encoding type i, the rounding method of the encoding type i is changed. Here, it is assumed that there are M (i) types of interpolation processing.

【0118】ステップS37では、符号化タイプKの丸
め方式を変更する。ここではM(K)種類の補間処理が
存在するものとしている。
In step S37, the coding type K rounding method is changed. Here, it is assumed that there are M (K) types of interpolation processing.

【0119】ステップS38では、符号化タイプK+1
〜Wの丸め方式を決定するが、これらの符号化タイプで
は丸め方式を初期値を用いるので、このステップでは結
局何も行わない。
In step S38, the coding type K + 1
The rounding method of ~ W is determined, but in these coding types, since the rounding method uses the initial value, nothing is done in this step.

【0120】上述したように第1実施形態においては、
丸め方式は参照画像信号に対して同一の丸め方式を設定
し、参照画像信号でない信号に対しては初期値として設
定された丸め方式を設定していた。
As described above, in the first embodiment,
As the rounding method, the same rounding method is set for the reference image signal, and the rounding method set as an initial value is set for the signal that is not the reference image signal.

【0121】これに対して、第2実施形態では、符号化
タイプごとに丸め方式の設定もしくは初期値の丸め方式
を用いるかを決定できる。その結果、符号化タイプの特
性に応じた丸め方式を設定することができ、再符号化に
おける画質劣化をより効果的に抑制することが可能とな
る。
On the other hand, in the second embodiment, it is possible to decide whether to set the rounding method or use the rounding method of the initial value for each coding type. As a result, it is possible to set the rounding method according to the characteristics of the coding type, and it is possible to more effectively suppress the image quality deterioration during re-coding.

【0122】(1)第2実施形態の実施例 第2実施形態の実施例は、第1実施形態の第1実施例と
Bピクチャの丸め方式の変更ステップ(図4のS15)
の動作が異なる。第1実施形態の第1実施例(図4)で
はPピクチャ1フレームごとに丸め方式を変更していた
のに対して、本実施例では、PピクチャだけでなくBピ
クチャについても1フレームごとに丸め方式を変更して
いる。
(1) Example of Second Embodiment The example of the second embodiment is the same as the first example of the first embodiment and the step of changing the B picture rounding method (S15 in FIG. 4).
Behave differently. In the first example (FIG. 4) of the first embodiment, the rounding method is changed for each P-frame, whereas in the present example, not only P-pictures but also B-pictures are changed frame by frame. The rounding method is changed.

【0123】図7は、本発明による第2実施形態の一実
施例における丸め方式決定部の動作を示すフローチャー
トである。PピクチャおよびBピクチャの丸め方式の初
期値としては第1実施形態の第1実施例と同様に与えら
れる。続く、ステップS41〜S44は、図4のステッ
プS11〜S14と同じである。
FIG. 7 is a flow chart showing the operation of the rounding method determination unit in an example of the second embodiment according to the present invention. The initial values of the rounding method for P pictures and B pictures are given in the same manner as in the first example of the first embodiment. Subsequent steps S41 to S44 are the same as steps S11 to S14 in FIG.

【0124】ステップS45では、Bピクチャの各補間
処理における丸め方式を変更する。水平半画素、垂直半
画素、水平垂直半画素、および双方向予測の4種類の補
間処理に対して丸め方式を変更する。本実施例では補間
処理内部における誤差値の和の正負に応じて丸め方式を
設定している。
In step S45, the rounding method in each interpolation process of the B picture is changed. The rounding method is changed for four types of interpolation processing of horizontal half pixel, vertical half pixel, horizontal vertical half pixel, and bidirectional prediction. In this embodiment, the rounding method is set according to whether the sum of error values inside the interpolation process is positive or negative.

【0125】したがって、Bピクチャ1フレームごとに
丸め方式を変更する場合、Bピクチャのフレーム数が偶
数枚の場合は初期値と同様の丸め方式となる。すなわ
ち、水平半画素の丸めの場合には、La+Lbが0以上の時
に丸め方式Z11:Ib=(La+Lb+1)/2が、La+Lbが負の時に
丸め方式Z12:Ib=(La+Lb)/2が設定され、垂直半画素の
丸めの場合には、La+Lcが0以上の時に丸め方式Z21:I
c=(La+Lc+1)/2が、La+Lcが負の時に丸め方式Z22:Ic=
(La+Lc)/2が設定され、水平・垂直半画素の丸めの場合
には、La+Lb+Lc+Ldが0以上の時に丸め方式Z31:Id=(L
a+Lb+Lc+Ld+2)/4が、La+Lb+Lc+Ldが負の時に丸め方式Z
32:Id=(La+Lb+Lc+Ld+1)/4が設定され、双方向予測の丸
めの場合には、Le+Lfが0以上の時に丸め方式Z41:Ie=
(Le+Lf+1)/2が、Le+Lfが負の時に丸め方式Z42:Ie=(Le
+Lf)/2が設定される。
Therefore, when changing the rounding method for each B picture frame, if the number of B picture frames is even, the rounding method is the same as the initial value. That is, in the case of rounding of half horizontal pixels, the rounding method Z 11 : Ib = (La + Lb + 1) / 2 when La + Lb is 0 or more, and the rounding method Z 12 : when La + Lb is negative. When Ib = (La + Lb) / 2 is set and the vertical half pixel is rounded, when La + Lc is 0 or more, the rounding method Z 21 : I
c = (La + Lc + 1) / 2 is a rounding method when La + Lc is negative Z 22 : Ic =
When (La + Lc) / 2 is set and the horizontal / vertical half-pixel rounding is performed, when La + Lb + Lc + Ld is 0 or more, the rounding method Z 31 : Id = (L
Rounding method Z when a + Lb + Lc + Ld + 2) / 4 is negative and La + Lb + Lc + Ld is negative
32 : Id = (La + Lb + Lc + Ld + 1) / 4 is set, and in the case of bidirectional prediction rounding, when Le + Lf is 0 or more, the rounding method Z 41 : Ie =
Rounding method when (Le + Lf + 1) / 2 is negative Le + Lf Z 42 : Ie = (Le
+ Lf) / 2 is set.

【0126】またBピクチャが奇数枚目の時には、次の
ように丸め方式が変更される。 すなわち、水平半画素
の丸めの場合には、La+Lbが0以上の時に丸め方式
12:Ib=(La+Lb)/2が、La+Lbが負の時に丸め方式
11:Ib=(La+Lb+1)/2が設定され、垂直半画素の丸めの
場合には、La+Lcが0以上の時に丸め方式Z22:Ic=(La+
Lc)/2が、La+Lcが負の時に丸め方式Z21:Ic=(La+Lc+1)
/2が設定され、水平・垂直半画素の丸めの場合には、La
+Lb+Lc+Ldが0以上の時に丸め方式Z32:Id=(La+Lb+Lc+
Ld+1)/4が、La+Lb+Lc+Ldが負の時に丸め方式Z31:Id=
(La+Lb+Lc+Ld+2)/4が設定され、双方向予測の丸めの場
合には、Le+Lfが0以上の時に丸め方式Z42:Ie=(Le+L
f)/2が、Le+Lfが負の時に丸め方式Z41:Ie=(Le+Lf+1)/
2が設定される。
When the number of B pictures is odd, the rounding method is changed as follows. That is, in the case of rounding half a horizontal pixel, the rounding method Z 12 : Ib = (La + Lb) / 2 when La + Lb is 0 or more, and the rounding method Z 11 : Ib = when La + Lb is negative. When (La + Lb + 1) / 2 is set and the rounding of the vertical half pixel is performed, when La + Lc is 0 or more, the rounding method Z 22 : Ic = (La +
Rounding method when Lc) / 2 is La + Lc is negative Z 21 : Ic = (La + Lc + 1)
When / 2 is set and the horizontal / vertical half pixel is rounded, La
Rounding method when + Lb + Lc + Ld is 0 or more Z 32 : Id = (La + Lb + Lc +
Rounding method when Ld + 1) / 4 and La + Lb + Lc + Ld are negative Z 31 : Id =
(La + Lb + Lc + Ld + 2) / 4 is set, and in the case of rounding for bidirectional prediction, when Le + Lf is 0 or more, the rounding method Z 42 : Ie = (Le + L
Rounding method when f) / 2 is negative Le + Lf Z 41 : Ie = (Le + Lf + 1) /
2 is set.

【0127】ステップS46では、ステップS44ある
いはS45で決定した丸め方式を、丸め方式情報として
誤差予測信号合成部102へ出力し、丸め方式の決定処
理を終了する。
In step S46, the rounding method determined in step S44 or S45 is output to the error prediction signal synthesizing unit 102 as rounding method information, and the rounding method determination processing ends.

【0128】上述したように、もし動き補償を行う誤差
値の正負が1/2で発生するのであれば、誤差値の丸め誤
差の期待値は0となり丸め誤差の蓄積は生じない。しか
しながら、誤差値の分布が正に偏っている場合(たとえ
ば、図18に示したストリーム1)、誤差信号の動き補
償処理によって正方向の丸め誤差が生じることになる。
As described above, if the positive / negative of the error value for motion compensation occurs at 1/2, the expected value of the rounding error of the error value is 0, and the rounding error is not accumulated. However, if the distribution of the error values is positively biased (for example, stream 1 shown in FIG. 18), the motion compensation processing of the error signal causes a rounding error in the positive direction.

【0129】第1及び第2実施形態では、P/Bピクチ
ャのフレーム毎に動き補償の丸め方式が変更されるため
に、このような丸め誤差の蓄積を抑制することができ、
誤差値の分布が偏った場合でも一定方向への丸め誤差の
発生を抑えることができる。
In the first and second embodiments, since the rounding method of motion compensation is changed for each frame of P / B pictures, accumulation of such rounding error can be suppressed.
Even if the distribution of error values is biased, it is possible to suppress the occurrence of rounding error in a certain direction.

【0130】たとえば、図8(A)のような分布に対し
てPピクチャごとに四捨五入と切り捨ての2つの丸め方
式を切り替えると、図8(B)に示すように、各Pピク
チャにおいては丸め誤差は生じるものの、時間方向の平
均では丸め誤差の期待値は0に近い値となる。その結
果、丸め誤差の一定方向への蓄積を抑えることが可能と
なる。
For example, if the two rounding methods of rounding and truncating are switched for each P picture for the distribution as shown in FIG. 8A, the rounding error in each P picture is as shown in FIG. 8B. Although it occurs, the expected value of the rounding error is close to 0 in the average in the time direction. As a result, it becomes possible to suppress the accumulation of rounding error in a certain direction.

【0131】図9は、MPEG-2 VIDEOビットストリームを
実際に再符号化した場合の、色差信号のpeak signal to
noise ratio(PSNR)を示すグラフである。ここで、縦軸
はPSNRを表し、横軸はフレーム番号を表す。また、従来
方式は、式11〜式14の丸め方式を用いた場合を表し
ており、実施例1および実施例2は、第1実施形態1の
第1実施例および第2実施例の方式を用いたことを表し
ている。入力となるMPEG-2 VIDEOビットストリームはIP
PPP...の構造をもち、Iピクチャの間隔は60フレーム
である。
FIG. 9 shows the peak signal to color difference signal when the MPEG-2 VIDEO bit stream is actually re-encoded.
It is a graph which shows noise ratio (PSNR). Here, the vertical axis represents PSNR and the horizontal axis represents the frame number. Further, the conventional method represents the case where the rounding method of Expression 11 to Expression 14 is used, and Example 1 and Example 2 are the methods of the first example and the second example of the first embodiment 1. Indicates that it has been used. The input MPEG-2 VIDEO bitstream is IP
It has the structure of PPP ... and the interval between I pictures is 60 frames.

【0132】図9から明らかなように、従来方式は誤差
蓄積が原因で画質劣化が生じているのに対し、本発明の
第1実施形態を用いた場合は、誤差蓄積の蓄積が抑制さ
れており、それによって画質劣化を抑える効果があるこ
とが分かる。
As is apparent from FIG. 9, in the conventional method, the image quality is deteriorated due to the error accumulation, whereas when the first embodiment of the present invention is used, the accumulation of the error accumulation is suppressed. Therefore, it can be seen that this has the effect of suppressing image quality deterioration.

【0133】(第3実施形態)図10は、本発明による
再符号化装置の第3実施形態における動き補償部の構成
を示すブロック図である。第3実施形態による動き補償
部10は、丸め方式決定部110、誤差予測信号合成部
111、および統計情報蓄積部112を含む。
(Third Embodiment) FIG. 10 is a block diagram showing the structure of a motion compensator in a third embodiment of the re-encoding device according to the present invention. The motion compensation unit 10 according to the third embodiment includes a rounding method determination unit 110, an error prediction signal synthesis unit 111, and a statistical information storage unit 112.

【0134】丸め方式決定部110は、丸め方式変更情
報、入力ビットストリームの符号化情報、現在の丸め方
式、および、統計情報蓄積部112から入力した丸め誤
差値を用いて次の丸め方式を決定し、誤差予測信号合成
部111へ丸め方式情報を供給する。
The rounding method determining section 110 determines the next rounding method using the rounding method change information, the input bit stream coding information, the current rounding method, and the rounding error value input from the statistical information accumulating section 112. , Rounding method information is supplied to the error prediction signal synthesis unit 111.

【0135】誤差予測信号合成部111は、参照する誤
差信号と、動きベクトル等の入力ストリームの符号化情
報と、丸め決定部110から供給される丸め方式情報を
用いて誤差予測信号を求め出力する。また、補間処理で
生じた丸め誤差値およびその位置情報を統計情報蓄積部
112へ供給する。
The error prediction signal synthesizing unit 111 obtains and outputs the error prediction signal using the error signal to be referred to, the coding information of the input stream such as the motion vector, and the rounding method information supplied from the rounding determining unit 110. . Further, the rounding error value generated in the interpolation process and its position information are supplied to the statistical information storage unit 112.

【0136】統計情報蓄積部112は、誤差予測信号合
成部111から供給された丸め誤差値を、既に蓄積して
いた丸め誤差値に加算し、その加算結果を丸め方式決定
部110へ供給する。また、蓄積する画素位置の誤差信
号がフレーム内予測であった場合には、蓄積していた画
素位置の丸め誤差値を初期化する。
The statistical information accumulator 112 adds the rounding error value supplied from the error prediction signal synthesizer 111 to the already accumulated rounding error value, and supplies the addition result to the rounding method determiner 110. If the error signal of the pixel position to be accumulated is intra-frame prediction, the rounding error value of the accumulated pixel position is initialized.

【0137】図11は、本発明による第3実施形態にお
ける丸め方式決定部の動作を示すフローチャートであ
る。ステップS51〜S53、S55およびS56は、
図4のステップS11〜S13、S15およびS16と
同じである。動作が異なるのは、丸め方式の変更ステッ
プS54である。
FIG. 11 is a flow chart showing the operation of the rounding method determination unit in the third embodiment according to the present invention. Steps S51 to S53, S55 and S56 are
This is the same as steps S11 to S13, S15 and S16 in FIG. The operation is different in the rounding method changing step S54.

【0138】ステップS54では補間処理ごとに丸め方
式を変更する。ここでは、M種類の補間処理が存在する
ものとしている。さらに各補間処理においては、丸め誤
差値蓄積部112から入力した丸め誤差加算値および符
号化情報を用いて決定されるN種類の丸め誤差値条件1
〜Nごとに丸め方式を変更し、ステップS56へ移る。
In step S54, the rounding method is changed for each interpolation process. Here, it is assumed that there are M types of interpolation processing. Further, in each interpolation process, N kinds of rounding error value conditions 1 determined using the rounding error addition value and the coding information input from the rounding error value accumulating unit 112.
~ The rounding method is changed for each N, and the process proceeds to step S56.

【0139】第3実施形態では、実際に生じた丸め誤差
について考慮して丸め方式を決定する。丸め誤差値の分
布によっては、丸め誤差の期待値が0から離れた値にな
る場合があるからである。ここでは、実際の丸め誤差値
を蓄積し、次の丸め処理で丸め誤差の期待値が0に近づ
くように丸め方式を調整する。その結果、第1実施形態
の構成に比べ、丸め誤差の期待値を0に近い値にするこ
とができ、丸め誤差の蓄積をより効果的に抑えることが
可能となる。
In the third embodiment, the rounding method is determined in consideration of the actually occurring rounding error. This is because the expected value of the rounding error may be a value apart from 0 depending on the distribution of the rounding error value. Here, the actual rounding error value is accumulated, and the rounding method is adjusted so that the expected rounding error value approaches 0 in the next rounding process. As a result, compared to the configuration of the first embodiment, the expected value of the rounding error can be set to a value close to 0, and the accumulation of the rounding error can be suppressed more effectively.

【0140】(1)第3実施形態の実施例 まず、統計情報蓄積部112について説明する。例え
ば、ある位置の誤差信号を丸め方式Z11:Ib=(La+Lb+1)
/2で求めるとする。ここでLa=1, Lb=6とすると、Ib=4と
なる。丸めがない場合にはIb=3.5となるので、この誤差
信号には+0.5の丸め誤差が生じることになる。この場
合、誤差予測信号合成部111は、補間処理で生じた丸
め誤差値+0.5およびその画素位置を統計情報蓄積部
112へ出力する。
(1) Example of Third Embodiment First, the statistical information storage unit 112 will be described. For example, a rounding method for an error signal at a certain position Z 11 : Ib = (La + Lb + 1)
Suppose you ask for it at / 2. If La = 1 and Lb = 6, then Ib = 4. If there is no rounding, Ib = 3.5, so a rounding error of +0.5 occurs in this error signal. In this case, the error prediction signal synthesis unit 111 outputs the rounding error value +0.5 generated in the interpolation process and the pixel position thereof to the statistical information storage unit 112.

【0141】丸め誤差は誤差の最小単位ごとに生じるの
で、丸め誤差値の累和を蓄積するには最小単位ごとに丸
め誤差値を加算すればよい。しかし、この場合には、画
素数分の丸め誤差値を記憶するメモリが必要となる。そ
こで、例えば図13に示すように、あるブロックサイズ
ごとの平均値や、輝度信号と色差信号の平均値の累和と
して蓄積することで、丸め誤差値を記憶するメモリ容量
を削減することも可能である。
Since a rounding error occurs for each minimum unit of error, it is sufficient to add the rounding error value for each minimum unit to accumulate the cumulative sum of rounding error values. However, in this case, a memory for storing the rounding error value for the number of pixels is required. Therefore, for example, as shown in FIG. 13, it is possible to reduce the memory capacity for storing the rounding error value by accumulating as an average value for each certain block size or a cumulative sum of the average values of the luminance signal and the color difference signals. is there.

【0142】本実施例では、丸め方式の変更をマクロブ
ロック毎とし、丸め誤差値の条件としては、誤差予測信
号合成部111においてマクロブロックの補間時に参照
される画素における丸め誤差値累和の平均値の正負で場
合分けを行う。以下具体例を示す。
In the present embodiment, the rounding method is changed for each macroblock, and the condition of the rounding error value is that the average value of the cumulative sum of rounding error values of the pixels referred to at the time of interpolation of the macroblock in the error prediction signal synthesis unit 111 is The case is divided into positive and negative. A specific example is shown below.

【0143】図12は、本発明による第3実施形態の一
実施例における丸め方式決定部の動作を示すフローチャ
ートである。まず、補間処理の丸め方式に対して初期値
を与える。PピクチャおよびBピクチャの丸め方式とし
ては、式12〜式15の丸め方式を用いる。
FIG. 12 is a flow chart showing the operation of the rounding method determination unit in an example of the third embodiment according to the present invention. First, an initial value is given to the rounding method of interpolation processing. As the rounding method for P pictures and B pictures, the rounding methods of Expressions 12 to 15 are used.

【0144】ステップS61では、補間処理で求める誤
差信号の位置がマクロブロックの先頭か否かを符号化情
報を用いて判断する。もしマクロブロックの先頭であれ
ば、ステップS62へ、そうでない場合はステップS6
3へ移る。
In step S61, it is determined using the coding information whether or not the position of the error signal obtained by the interpolation processing is at the head of the macroblock. If it is the head of the macroblock, go to step S62, and if not, go to step S6.
Move to 3.

【0145】ステップS62では、補間処理で求める誤
差信号がPピクチャであるか否かを符号化情報を用いて
判断する。誤差信号がPピクチャの場合は、ステップS
64へ、そうでない場合はステップS65へ移る。
In step S62, it is determined using the coding information whether or not the error signal obtained by the interpolation processing is a P picture. If the error signal is a P picture, step S
If not, the process proceeds to step S65.

【0146】ステップS63では、丸め方式を変更しな
い。この場合は、前回の処理と同様の丸め方式を用い
て、丸め方式の決定処理を終了する。
In step S63, the rounding method is not changed. In this case, the rounding method similar to the previous processing is used to end the rounding method determination processing.

【0147】ステップS64では、水平半画素、垂直半
画素、水平垂直半画素、デュアルプライムの4種類の補
間処理に対する丸め方式を変更する。丸め方式は、マク
ロブロックにおける丸め誤差値累和の平均値の正負およ
び誤差値の和の正負で場合分けし、決定される。
In step S64, the rounding method for four types of interpolation processing of horizontal half pixel, vertical half pixel, horizontal vertical half pixel, and dual prime is changed. The rounding method is determined depending on whether the average of rounding error value cumulative sums in a macroblock is positive or negative and the sum of error values is positive or negative.

【0148】実際には、丸め誤差の累和平均値が0以上
の場合は、丸め誤差が負となるような丸め方式を適用す
る。その結果、水平半画素の丸めの場合で、La+Lb>=0の
時にも、またLa+Lb<0の時にも、丸め方式Z12:Ib=(La+
Lb)/2が設定される。丸め誤差の累和平均値が負の場合
は、丸め誤差が正となるような丸め方式を適用する。そ
の結果、水平半画素の丸めの場合で、La+Lb>=0の時に
も、またLa+Lb<0の時にも、丸め方式Z11:Ib=(La+Lb+
1)/2が設定される。このようにLa+Lbの正負に関係な
く、丸め方式は同じになる。
In practice, when the cumulative sum average value of the rounding error is 0 or more, the rounding method that makes the rounding error negative is applied. As a result, in the case of horizontal half-pixel rounding, when La + Lb> = 0 and when La + Lb <0, the rounding method Z 12 : Ib = (La +
Lb) / 2 is set. If the cumulative average of the rounding errors is negative, the rounding method that makes the rounding error positive is applied. As a result, in the case of horizontal half-pixel rounding, when La + Lb> = 0 and when La + Lb <0, the rounding method Z 11 : Ib = (La + Lb +
1) / 2 is set. In this way, the rounding method is the same regardless of whether La + Lb is positive or negative.

【0149】同様に、垂直半画素の丸めの場合には、丸
め誤差の累和平均値が0以上で丸め方式Z22:Ic=(La+L
c)/2が、丸め誤差の累和平均値が負の場合で丸め方式Z
21:Ic=(La+Lc+1)/2が設定される。水平・垂直半画素の
丸めの場合には、丸め誤差の累和平均値が0以上で丸め
方式Z32:Id=(La+Lb+Lc+Ld+1)/4が、丸め誤差の累和平
均値が負の場合で丸め方式Z31:Id=(La+Lb+Lc+Ld+2)/4
が設定される。デュアルプライムの丸めの場合には、丸
め誤差の累和平均値が0以上で丸め方式Z42:Ie=(Le+L
f)/2が、丸め誤差の累和平均値が負の場合で丸め方式Z
41:Ie=(Le+Lf+1)/2が設定される。
Similarly, in the case of rounding of half a vertical pixel, the rounding method Z 22 : Ic = (La + L) when the cumulative average value of rounding errors is 0 or more.
c) / 2 is the rounding method Z when the cumulative average of rounding errors is negative
21 : Ic = (La + Lc + 1) / 2 is set. When rounding horizontal / vertical half pixels, the rounding error cumulative average value is 0 or more, and the rounding method Z 32 : Id = (La + Lb + Lc + Ld + 1) / 4 is the rounding error cumulative average value. If N is negative, rounding method Z 31 : Id = (La + Lb + Lc + Ld + 2) / 4
Is set. In the case of dual prime rounding, if the cumulative average value of rounding error is 0 or more, rounding method Z 42 : Ie = (Le + L
f) / 2 is the rounding method Z when the cumulative average of rounding errors is negative
41 : Ie = (Le + Lf + 1) / 2 is set.

【0150】なお、ブロックサイズごとに丸め誤差値累
和平均値を用いた場合には、図14に示すように、参照
される画素の面積の重みづけ平均をとる等の方式が考え
られる。図14では簡単のために、動き補償単位および
累和を蓄積する単位を4画素ごととしている。
When the rounding error value cumulative average value is used for each block size, as shown in FIG. 14, a method of taking a weighted average of the areas of the referred pixels can be considered. In FIG. 14, for the sake of simplicity, the motion compensation unit and the unit for accumulating the sum are set to every four pixels.

【0151】(再符号化装置の構成)図15は、本発明
による再符号化装置の第1実施形態の構成を示すブロッ
ク図である。ここでは、動き補償器10以外は、図18
に示す従来の再符号化装置と同様であるから、同じ参照
番号を付して詳細は省略する。上述した動き補償器10
の丸め動作によって、丸め誤差の蓄積が抑制され高画質
な再符号化を達成できる。動き補償器10を図10に示
す構成にしても、上述したような同様の効果を得ること
ができる。
(Structure of Recoding Device) FIG. 15 is a block diagram showing the structure of the first embodiment of the recoding device according to the present invention. Here, except for the motion compensator 10, FIG.
Since it is the same as the conventional re-encoding device shown in FIG. Motion compensator 10 described above
Rounding operation suppresses accumulation of rounding error and achieves high quality re-encoding. Even if the motion compensator 10 is configured as shown in FIG. 10, the same effect as described above can be obtained.

【0152】なお、ここでは、離散コサイン変換(DC
T)を用いた再符号化装置を例示したが、本発明はDC
Tを用いない場合でも適用可能であることはいうまでも
ない。さらに、本発明は、再量子化誤差信号の動き補償
を用いた再符号化装置一般に適用可能であることもいう
までもない。
Here, the discrete cosine transform (DC
Although a re-encoding device using T) has been illustrated, the present invention uses DC
Needless to say, it is applicable even when T is not used. Furthermore, it goes without saying that the present invention is applicable to general re-encoding devices using motion compensation of re-quantized error signals.

【0153】図16は、本発明による再符号化装置をイ
ンプリメントした情報処理システムの一例を示す概略的
ブロック構成図である。本発明による動き補償器10を
含む再符号化装置は、以上の説明から明らかなように、
ハードウエアで構成することもできるが、コンピュータ
プログラムにより実現することも可能である。
FIG. 16 is a schematic block diagram showing an example of an information processing system which implements the re-encoding device according to the present invention. The re-encoding device including the motion compensator 10 according to the present invention is, as apparent from the above description,
Although it can be configured by hardware, it can also be implemented by a computer program.

【0154】図16に示す情報処理システムは、プロセ
ッサ121、プログラムメモリ122、記憶媒体123
および124からなる。記憶媒体123および124
は、別個の記憶媒体であってもよいし、同一の記憶媒体
の異なる記憶領域であってもよい。記憶媒体としては、
ハードディスク等の磁気記録媒体を用いることができ
る。
The information processing system shown in FIG. 16 includes a processor 121, a program memory 122, and a storage medium 123.
And 124. Storage media 123 and 124
May be separate storage media or different storage areas of the same storage medium. As a storage medium,
A magnetic recording medium such as a hard disk can be used.

【0155】プロセッサ121は、プログラムメモリ1
22に格納されたプログラムを実行することで、上述し
た第1、第2あるいは第3実施形態による再符号化装置
の各機能をそれぞれ実現することができる。たとえば、
プログラムメモリ122に、図15に示すブロック30
1〜312および動き補償器10を実現するプログラム
を格納してプロセッサ121により実行してもよい。具
体的には、ハードディスク123から高ビットレート
(たとえば22Mbps)のビットストリームを入力
し、プロセッサ121で上述した再符号化処理を行い、
低ビットレート(たとえば10Mbps)のビットスト
リームをハードディスク124へ出力する。
The processor 121 uses the program memory 1
By executing the program stored in 22, it is possible to realize each function of the above-described re-encoding device according to the first, second, or third embodiment. For example,
In the program memory 122, the block 30 shown in FIG.
1 to 312 and a program that implements the motion compensator 10 may be stored and executed by the processor 121. Specifically, a high bit rate (for example, 22 Mbps) bit stream is input from the hard disk 123, and the processor 121 performs the above-mentioned re-encoding process.
A low bit rate (for example, 10 Mbps) bit stream is output to the hard disk 124.

【0156】[0156]

【発明の効果】以上詳細に説明したように、従来では誤
差値などの分布によっては、丸め誤差が蓄積し画質劣化
が生じていたのに対し、本発明によれば丸め誤差の期待
値を0に近づけることができ、丸め誤差の蓄積を抑制し
画質劣化が生じない。よって、高画質な再符号化を達成
できる。
As described above in detail, according to the present invention, the rounding error accumulates and the image quality deteriorates depending on the distribution of the error value and the like, but according to the present invention, the expected value of the rounding error approaches 0. Therefore, the accumulation of rounding error is suppressed and the image quality is not deteriorated. Therefore, high quality re-encoding can be achieved.

【0157】さらに、丸め誤差の統計情報を用いること
で、実際の誤差発生に応じて丸め方式を決定することが
でき、丸め誤差の蓄積をさらに効果的に抑制することが
できる。
Further, by using the statistical information of the rounding error, the rounding method can be determined according to the actual occurrence of the error, and the accumulation of the rounding error can be suppressed more effectively.

【0158】本発明では丸め誤差の蓄積が生じにくいた
め、誤差信号を記憶するための記憶容量を小さくできる
という効果もある。さらに、丸め方式の条件を簡易にす
ることで、通常の方式と同等の画質を保ちつつ、プログ
ラムの高速処理や装置の簡易化を実現できる。
In the present invention, since rounding error is unlikely to be accumulated, there is an effect that the storage capacity for storing the error signal can be reduced. Further, by simplifying the condition of the rounding method, high-speed processing of the program and simplification of the apparatus can be realized while maintaining the image quality equivalent to that of the normal method.

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

【図1】本発明による再符号化装置の第1実施形態にお
ける動き補償部の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a motion compensation unit in a first embodiment of a re-encoding device according to the present invention.

【図2】第1実施形態に用いられる丸め方式の一覧を示
す図である。
FIG. 2 is a diagram showing a list of rounding methods used in the first embodiment.

【図3】第1実施形態における丸め決定部101の動作
を示すフローチャートである。
FIG. 3 is a flowchart showing an operation of a rounding determination unit 101 in the first embodiment.

【図4】本発明による第1実施例における丸め方式決定
部の動作を示すフローチャートである。
FIG. 4 is a flowchart showing an operation of a rounding method determination unit in the first exemplary embodiment of the present invention.

【図5】本発明による第2実施例における丸め方式決定
部の動作を示すフローチャートである。
FIG. 5 is a flowchart showing an operation of a rounding method determination unit in the second exemplary embodiment of the present invention.

【図6】本発明による第2実施形態における丸め方式決
定部の動作を示すフローチャートである。
FIG. 6 is a flowchart showing an operation of a rounding method determination unit according to the second embodiment of the present invention.

【図7】本発明による第2実施形態の一実施例における
丸め方式決定部の動作を示すフローチャートである。
FIG. 7 is a flowchart showing an operation of a rounding method determination unit in an example of the second exemplary embodiment of the present invention.

【図8】(A)は正に偏っている誤差値の分布を示す図
であり、(b)はPピクチャごとに四捨五入と切り捨て
の2つの丸め方式を切り替えた場合の誤差値の分布を示
す図である。
FIG. 8A is a diagram showing a distribution of positively biased error values, and FIG. 8B shows a distribution of error values when two rounding methods of rounding and truncation are switched for each P picture. It is a figure.

【図9】MPEG-2 VIDEOビットストリームを実際に再符号
化した場合の、色差信号のpeaksignal to noise ratio
(PSNR)を示すグラフである。
FIG. 9 is a peak signal to noise ratio of a color difference signal when an MPEG-2 VIDEO bit stream is actually re-encoded.
It is a graph which shows (PSNR).

【図10】本発明による再符号化装置の第3実施形態に
おける動き補償部の構成を示すブロック図である。
FIG. 10 is a block diagram showing a configuration of a motion compensation unit in the third embodiment of the re-encoding device according to the present invention.

【図11】本発明による第3実施形態における丸め方式
決定部の動作を示すフローチャートである。
FIG. 11 is a flowchart showing an operation of a rounding method determination unit in the third exemplary embodiment of the present invention.

【図12】本発明による第3実施形態の一実施例におけ
る丸め方式決定部の動作を示すフローチャートである。
FIG. 12 is a flowchart showing an operation of a rounding method determination unit in an example of the third exemplary embodiment of the present invention.

【図13】本発明による第3実施形態の一実施例の動作
を説明するための模式図である。
FIG. 13 is a schematic diagram for explaining the operation of an example of the third exemplary embodiment of the present invention.

【図14】本発明による第3実施形態の一実施例の動作
を説明するための模式図である。
FIG. 14 is a schematic diagram for explaining the operation of an example of the third exemplary embodiment of the present invention.

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

【図16】本発明による再符号化装置をインプリメント
した情報処理システムの一例を示す概略的ブロック構成
図である。
FIG. 16 is a schematic block configuration diagram showing an example of an information processing system implementing a re-encoding device according to the present invention.

【図17】基本的の再符号化装置の回路構成を示すブロ
ック図である。
FIG. 17 is a block diagram showing a circuit configuration of a basic re-encoding device.

【図18】従来の再符号化装置の一例を示す回路図であ
る。
FIG. 18 is a circuit diagram showing an example of a conventional re-encoding device.

【図19】半画素精度の動き補償処理における補間処理
を説明するための模式図である。
FIG. 19 is a schematic diagram for explaining an interpolation process in a motion compensation process with half-pixel accuracy.

【図20】輝度信号におけるフレームあたりの誤差値の
平均値を示すグラフである。
FIG. 20 is a graph showing an average value of error values per frame in a luminance signal.

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

10 動き補償部 101 丸め方式決定部 102 誤差予測信号合成部 110 丸め方式決定部 111 誤差予測信号合成部 112 統計情報蓄積部 201 可変長復号器 202 逆量子化器 203 逆離散コサイン変換器 204 加算器 205 動き補償器 206 メモリ 207 減算器 208 動き補償器 209 離散コサイン変換器 210 量子化器 211 可変長符号化器 212 逆量子化器 213 逆離散コサイン変換器 214 加算器 215 メモリ 301 可変長復号器 302 逆量子化器 303 逆離散コサイン変換器 304 減算器 305 動き補償器 306 離散コサイン変換器 307 減算器 308 量子化器 309 可変長符号化器 310 逆量子化器 311 逆離散コサイン変換器 312 メモリ 10 Motion compensation section 101 Rounding method determination unit 102 error prediction signal synthesis unit 110 Rounding method determination unit 111 error prediction signal synthesis unit 112 Statistical information storage 201 variable length decoder 202 Dequantizer 203 Inverse Discrete Cosine Transform 204 adder 205 motion compensator 206 memory 207 Subtractor 208 motion compensator 209 Discrete Cosine Transform 210 quantizer 211 variable length encoder 212 Dequantizer 213 Inverse Discrete Cosine Transform 214 adder 215 memory 301 variable length decoder 302 Inverse quantizer 303 Inverse Discrete Cosine Transform 304 subtractor 305 Motion Compensator 306 Discrete Cosine Transform 307 Subtractor 308 quantizer 309 Variable length encoder 310 Dequantizer 311 Inverse Discrete Cosine Transform 312 memory

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C053 FA23 GA11 GB17 GB22 GB26 GB30 GB32 GB38 KA03 LA14 5C059 KK01 KK08 MA00 MA23 MC11 MC38 ME01 NN15 NN21 PP06 PP07 PP16 RC16 SS11 TA61 TB04 TB05 TB08 TB10 TC03 TC11 TC37 UA02 UA05 UA33 5D044 AB07 BC01 CC05 GL01 GL22 GM21 5J064 AA00 BA01 BA16 BB14 BC00 BC08 BC14 BC16 BC21 BC29 BD02 BD03 BD04    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5C053 FA23 GA11 GB17 GB22 GB26                       GB30 GB32 GB38 KA03 LA14                 5C059 KK01 KK08 MA00 MA23 MC11                       MC38 ME01 NN15 NN21 PP06                       PP07 PP16 RC16 SS11 TA61                       TB04 TB05 TB08 TB10 TC03                       TC11 TC37 UA02 UA05 UA33                 5D044 AB07 BC01 CC05 GL01 GL22                       GM21                 5J064 AA00 BA01 BA16 BB14 BC00                       BC08 BC14 BC16 BC21 BC29                       BD02 BD03 BD04

Claims (27)

【特許請求の範囲】[Claims] 【請求項1】 所定符号化方式の圧縮動画像ストリーム
を入力して復号化し、有限長への丸め処理を含む画素精
度未満単位の動き補償予測処理を実行した後、再度符号
化する方法において、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる画像信号を再量子化し、 再量子化する前の信号と再量子化した後の信号とから再
量子化誤差信号を計算し、 前記再量子化誤差信号に対して前記動き補償予測処理を
実行する過程において、前記入力圧縮動画像ストリーム
が生成された際の符号化処理に依存しない処理単位毎
に、前記丸め処理の丸め方式を変更する、 ことを特徴とする圧縮動画像の再符号化方法。
1. A method of inputting and decoding a compressed moving image stream of a predetermined encoding method, executing motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length, and then encoding again. An image signal obtained by decoding at least a part of the compressed moving image stream is requantized, and a requantization error signal is calculated from the signal before requantization and the signal after requantization, In the process of performing the motion compensation prediction process on the quantized error signal, the rounding method of the rounding process is changed for each processing unit that does not depend on the encoding process when the input compressed moving image stream is generated. A method for re-encoding a compressed moving image, characterized by:
【請求項2】 前記所定符号化方式は、周波数空間への
変換処理を組み合わせた符号化方式であり、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる画像信号は、前記圧縮動画像ストリームの少な
くとも一部を復号して得られる周波数係数である、 ことを特徴とする請求項1記載の圧縮動画像の再符号化
方法。
2. The predetermined encoding method is an encoding method in which conversion processing into a frequency space is combined, and an image signal obtained by decoding at least a part of the compressed moving image stream is the compressed moving image. It is a frequency coefficient obtained by decoding at least one part of a stream, The re-encoding method of the compressed moving image of Claim 1 characterized by the above-mentioned.
【請求項3】 前記丸め方式が変更される処理単位は、
少なくとも1フレーム/フィールドであることを特徴と
する請求項1または2記載の圧縮動画像の再符号化方
法。
3. The processing unit in which the rounding method is changed is
The method of re-encoding a compressed moving image according to claim 1 or 2, wherein at least one frame / field is used.
【請求項4】 前記丸め方式が変更される処理単位は、
フレーム/フィールド内の少なくとも1個の小ブロック
であることを特徴とする請求項1または2記載の圧縮動
画像の再符号化方法。
4. The processing unit in which the rounding method is changed is
The method of re-encoding a compressed moving picture according to claim 1 or 2, wherein at least one small block in a frame / field.
【請求項5】 前記丸め方式が変更される処理単位は、
フレーム/フィールド内の少なくとも1個の画素である
ことを特徴とする請求項1または2記載の圧縮動画像の
再符号化方法。
5. The processing unit in which the rounding method is changed is
3. The re-encoding method for a compressed moving picture according to claim 1, wherein the re-encoding is at least one pixel within a frame / field.
【請求項6】 前記丸め方式は、異なるフレーム/フィ
ールドの符号化タイプ毎に複数個予め設定されており、
前記複数の丸め方式から1つが前記処理単位毎に選択さ
れることを特徴とする請求項1または2記載の圧縮動画
像の再符号化方法。
6. A plurality of the rounding methods are preset for each coding type of different frames / fields,
3. The re-encoding method for a compressed moving image according to claim 1, wherein one of the plurality of rounding methods is selected for each processing unit.
【請求項7】 前記フレーム/フィールドの符号化タイ
プの少なくとも1つは前記丸め方式が固定されているこ
とを特徴とする請求項6載の圧縮動画像の再符号化方
法。
7. The re-encoding method according to claim 6, wherein at least one of the frame / field coding types has a fixed rounding method.
【請求項8】 前記動き補償予測処理は複数の補間処理
を有し、前記丸め方式は、前記複数の補間処理のそれぞ
れに対応して少なくとも1つ設定されていることを特徴
とする請求項1または2記載の圧縮動画像の再符号化方
法。
8. The motion compensation prediction process includes a plurality of interpolation processes, and at least one rounding method is set corresponding to each of the plurality of interpolation processes. Alternatively, the compressed video re-encoding method according to the item 2.
【請求項9】 前記動き補償予測処理は複数の補間処理
を有し、前記丸め方式は、前記複数の補間処理のそれぞ
れに対応して少なくとも1つ設定されていることを特徴
とする請求項6記載の圧縮動画像の再符号化方法。
9. The motion compensation prediction process includes a plurality of interpolation processes, and at least one rounding method is set corresponding to each of the plurality of interpolation processes. A method for re-encoding a compressed moving image as described.
【請求項10】 所定符号化方式の圧縮動画像ストリー
ムを入力して復号化し、有限長への丸め処理を含む画素
精度未満単位の動き補償予測処理を実行した後、再度符
号化する方法において、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる画像信号を再量子化し、 再量子化する前の信号と再量子化した後の信号とから再
量子化誤差信号を計算し、 前記再量子化誤差信号の統計情報を生成し、 前記再量子化誤差信号に対して前記動き補償予測処理を
実行する過程において、前記入力圧縮動画像ストリーム
が生成された際の符号化処理に依存しない処理単位毎
に、前記統計情報に基づいて前記丸め処理の丸め方式を
変更する、 ことを特徴とする圧縮動画像の再符号化方法。
10. A method of inputting and decoding a compressed moving image stream of a predetermined encoding method, executing motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length, and then encoding again. An image signal obtained by decoding at least a part of the compressed moving image stream is requantized, and a requantization error signal is calculated from the signal before requantization and the signal after requantization, A process that does not depend on the encoding process when the input compressed moving image stream is generated in the process of generating the statistical information of the quantization error signal and executing the motion compensation prediction process on the requantization error signal. A re-encoding method for a compressed moving image, wherein the rounding method of the rounding process is changed for each unit based on the statistical information.
【請求項11】 前記所定符号化方式は、周波数空間へ
の変換処理を組み合わせた符号化方式であり、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる画像信号は、前記圧縮動画像ストリームの少な
くとも一部を復号して得られる周波数係数である、 ことを特徴とする請求項10記載の圧縮動画像の再符号
化方法。
11. The predetermined encoding method is an encoding method in which conversion processing into a frequency space is combined, and an image signal obtained by decoding at least a part of the compressed moving image stream is the compressed moving image. It is a frequency coefficient obtained by decoding at least one part of a stream, The re-encoding method of the compressed moving image of Claim 10 characterized by the above-mentioned.
【請求項12】 前記統計情報は、画素ごとの前記再量
子化誤差信号の誤差値に基づいて生成されることを特徴
とする請求項10または11記載の圧縮動画像の再符号
化方法。
12. The re-encoding method for a compressed moving image according to claim 10, wherein the statistical information is generated based on an error value of the re-quantization error signal for each pixel.
【請求項13】 前記統計情報は、複数の画素における
前記再量子化誤差信号の誤差値の平均値に基づいて生成
されることを特徴とする請求項10または11記載の圧
縮動画像の再符号化方法。
13. The recoding of a compressed moving image according to claim 10, wherein the statistical information is generated based on an average value of error values of the requantization error signal in a plurality of pixels. Method.
【請求項14】 前記統計情報は、フレーム/フィール
ド内の小ブロックにおける前記再量子化誤差信号の誤差
値の平均値に基づいて生成されることを特徴とする請求
項13記載の圧縮動画像の再符号化方法。
14. The compressed moving image according to claim 13, wherein the statistical information is generated based on an average value of error values of the requantization error signal in a small block in a frame / field. Re-encoding method.
【請求項15】 所定符号化方式の圧縮動画像ストリー
ムを入力して復号化し、有限長への丸め処理を含む画素
精度未満単位の動き補償予測処理を実行した後、再度符
号化する圧縮画像の再符号化装置において、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる画像信号を再量子化する再量子化手段と、 再量子化する前の信号と再量子化した後の信号とから再
量子化誤差信号を計算する誤差計算手段と、 前記再量子化誤差信号に対して前記動き補償予測処理を
実行する誤差予測信号合成手段と、 前記動き補償予測処理の過程において、前記入力圧縮動
画像ストリームが生成された際の符号化処理に依存しな
い処理単位毎に、前記丸め処理の丸め方式を変更する丸
め方式決定手段と、 を有することを特徴とする圧縮動画像の再符号化装置。
15. A compressed moving image stream of a predetermined encoding method is input and decoded, a motion compensated prediction process in units of less than pixel precision including rounding processing to a finite length is executed, and then a compressed image to be encoded again. In the re-encoding device, re-quantization means for re-quantizing an image signal obtained by decoding at least a part of the compressed moving image stream, a signal before re-quantization and a signal after re-quantization Error calculation means for calculating a requantization error signal from the error prediction signal combining means for executing the motion compensation prediction process on the requantization error signal, and the input compression in the process of the motion compensation prediction process. A re-compressed moving image re-composition comprising: a rounding method determining unit that changes the rounding method of the rounding process for each processing unit that does not depend on the encoding process when the moving image stream is generated. Goka apparatus.
【請求項16】 周波数空間への変換処理を組み合わせ
た符号化方式の圧縮動画像ストリームを入力して復号化
し、有限長への丸め処理を含む画素精度未満単位の動き
補償予測処理を実行した後、再度符号化する圧縮画像の
再符号化装置において、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる第1画像信号を周波数空間へ変換して周波数係
数を生成する変換手段と、 前記周波数係数を再量子化する再量子化手段と、 前記再量子化された信号を逆量子化する逆量子化手段
と、 逆量子化された信号を第2画像信号に変換する逆変換手
段と、 前記第1画像信号と前記第2画像信号とから再量子化誤
差信号を計算する誤差計算手段と、 前記再量子化誤差信号に対して前記動き補償予測処理を
実行する誤差予測信号合成手段と、 前記動き補償予測処理の過程において、前記入力圧縮動
画像ストリームが生成された際の符号化処理に依存しな
い処理単位毎に、前記丸め処理の丸め方式を変更する丸
め方式決定手段と、 を有することを特徴とする圧縮動画像の再符号化装置。
16. A compressed moving image stream of an encoding method that combines conversion processing into frequency space is input and decoded, and after performing motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length. A re-encoding device for re-encoding a compressed image, wherein the first image signal obtained by decoding at least a part of the compressed moving image stream is converted into a frequency space to generate a frequency coefficient; Requantizing means for requantizing frequency coefficients; dequantizing means for dequantizing the requantized signal; and inverse transforming means for transforming the dequantized signal into a second image signal, Error calculation means for calculating a requantization error signal from the first image signal and the second image signal; error prediction signal synthesizing means for executing the motion compensation prediction process on the requantization error signal; Rounding method determining means for changing the rounding method of the rounding processing for each processing unit that does not depend on the encoding processing when the input compressed moving image stream is generated in the process of the motion compensation prediction processing; A re-encoding device for compressed moving images, characterized by:
【請求項17】 所定符号化方式の圧縮動画像ストリー
ムを入力して復号化し、有限長への丸め処理を含む画素
精度未満単位の動き補償予測処理を実行した後、再度符
号化する圧縮画像の再符号化装置において、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる画像信号を再量子化する再量子化手段と、 再量子化する前の信号と再量子化した後の信号とから再
量子化誤差信号を計算する誤差計算手段と、 前記再量子化誤差信号に対して前記動き補償予測処理を
実行し、前記丸め処理による誤差値を生成する誤差予測
信号合成手段と、 前記丸め処理による誤差値の統計情報を蓄積する蓄積手
段と、 前記動き補償予測処理の過程において、前記入力圧縮動
画像ストリームが生成された際の符号化処理に依存しな
い処理単位毎に、前記統計情報に基づいて前記丸め処理
の丸め方式を変更する丸め方式決定手段と、 を有することを特徴とする圧縮動画像の再符号化装置。
17. A compressed moving image stream of a predetermined encoding method is input and decoded, and after performing motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length, a compressed image to be encoded again. In the re-encoding device, a re-quantization means for re-quantizing an image signal obtained by decoding at least a part of the compressed moving image stream, a signal before re-quantization and a signal after re-quantization An error calculation means for calculating a requantization error signal from the error prediction signal combining means for executing the motion compensation prediction process on the requantization error signal to generate an error value by the rounding process; Accumulating means for accumulating statistical information of error values due to processing, in the process of the motion compensation prediction processing, for each processing unit that does not depend on the encoding processing when the input compressed moving image stream is generated, Serial statistics recoding device of the compressed moving image and having a a method determination means rounding changes the rounding mode of the rounding process based on.
【請求項18】 前記所定符号化方式は、周波数空間へ
の変換処理を組み合わせた符号化方式であり、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる画像信号は、前記圧縮動画像ストリームの少な
くとも一部を復号して得られる周波数係数である、 ことを特徴とする請求項17記載の圧縮動画像の再符号
化装置。
18. The predetermined encoding method is an encoding method combining a conversion process into a frequency space, and an image signal obtained by decoding at least a part of the compressed moving image stream is the compressed moving image. The re-encoding device according to claim 17, wherein the re-encoding device is a frequency coefficient obtained by decoding at least a part of the stream.
【請求項19】 前記統計情報は、画素ごとの前記再量
子化誤差信号の誤差値に基づいて生成されることを特徴
とする請求項17または18記載の圧縮動画像の再符号
化装置。
19. The re-encoding device for a compressed moving image according to claim 17, wherein the statistical information is generated based on an error value of the re-quantization error signal for each pixel.
【請求項20】 前記統計情報は、複数の画素における
前記再量子化誤差信号の誤差値の平均値に基づいて生成
されることを特徴とする請求項17または18記載の圧
縮動画像の再符号化装置。
20. The recoding of a compressed moving image according to claim 17, wherein the statistical information is generated based on an average value of error values of the requantization error signal in a plurality of pixels. Device.
【請求項21】 前記統計情報は、フレーム/フィール
ド内の小ブロックにおける前記再量子化誤差信号の誤差
値の平均値に基づいて生成されることを特徴とする請求
項20記載の圧縮動画像の再符号化装置。
21. The compressed moving image according to claim 20, wherein the statistical information is generated based on an average value of error values of the requantization error signal in a small block in a frame / field. Re-encoding device.
【請求項22】 所定符号化方式の圧縮動画像ストリー
ムを入力して復号化し、有限長への丸め処理を含む画素
精度未満単位の動き補償予測処理を実行した後、再量子
化を行い、再度符号化する処理をコンピュータに実行さ
せるためのプログラムにおいて、 前記入力圧縮動画像ストリームが生成された際の符号化
処理に依存しない処理単位の先頭であるか否かを判定す
るステップと、 前記処理単位の先頭である時に、当該画像が予め指定さ
れた画像であるか否かを判定するステップと、 予め指定された画像であれば、再量子化誤差信号に対し
て前記動き補償予測処理を実行する過程において、当該
指定された画像に対応して前記丸め処理の丸め方式を変
更するステップと、 を含むことを特徴とするコンピュータプログラム。
22. A compressed moving image stream of a predetermined encoding method is input and decoded, and after motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length is performed, requantization is performed and then again. In a program for causing a computer to execute a process of encoding, a step of determining whether or not it is a head of a process unit that does not depend on an encoding process when the input compressed moving image stream is generated, and the process unit The step of determining whether or not the image is a pre-designated image at the beginning of the, and if it is the pre-designated image, the motion compensation prediction process is performed on the requantized error signal. And a step of changing the rounding method of the rounding process in correspondence with the designated image in the process.
【請求項23】 所定符号化方式の圧縮動画像ストリー
ムを入力して復号化し、有限長への丸め処理を含む画素
精度未満単位の動き補償予測処理を実行した後、再量子
化を行い、再度符号化する処理をコンピュータに実行さ
せるためのプログラムにおいて、 再量子化する前の信号と再量子化した後の信号とから再
量子化誤差信号を計算し、前記再量子化誤差信号の統計
情報を計算するステップと、 前記入力圧縮動画像ストリームが生成された際の符号化
処理に依存しない処理単位の先頭であるか否かを判定す
るステップと、 前記処理単位の先頭である時に、当該画像が予め指定さ
れた画像であるか否かを判定するステップと、 予め指定された画像であれば、前記再量子化誤差信号に
対して前記動き補償予測処理を実行する過程において、
当該指定された画像に対応して前記丸め処理の丸め方式
を前記統計情報に基づいて変更するステップと、 を含むことを特徴とするコンピュータプログラム。
23. A compressed moving image stream of a predetermined encoding method is input and decoded, a motion-compensated prediction process in units of less than pixel precision including rounding processing to a finite length is executed, and then re-quantization is performed, and again. In a program for causing a computer to perform a process of encoding, a requantization error signal is calculated from a signal before requantization and a signal after requantization, and statistical information of the requantization error signal is calculated. A step of calculating, a step of determining whether or not it is the head of a processing unit that does not depend on the encoding processing when the input compressed moving image stream is generated, and when the image is at the head of the processing unit, the image is A step of determining whether or not the image is a pre-specified image, and if the image is a pre-specified image, in the process of performing the motion compensation prediction process on the requantized error signal,
Changing the rounding method of the rounding process based on the statistical information corresponding to the designated image.
【請求項24】 周波数空間への変換処理を組み合わせ
た符号化方式の圧縮動画像ストリームを入力して復号化
し、有限長への丸め処理を含む画素精度未満単位の動き
補償予測処理を実行した後、再度符号化することで生成
される圧縮画像再符号化ストリームデータにおいて、 前記圧縮動画像ストリームの少なくとも一部を復号して
得られる第1画像信号を周波数空間へ変換して周波数係
数を生成し、 前記周波数係数を再量子化し、 前記再量子化された信号を逆量子化し、 逆量子化された信号を第2画像信号に変換し、 前記第1画像信号と前記第2画像信号とから再量子化誤
差信号を計算し、 前記再量子化誤差信号に対して前記動き補償予測処理を
実行し、 前記動き補償予測処理の過程において、前記入力圧縮動
画像ストリームが生成された際の符号化処理に依存しな
い処理単位毎に、前記丸め処理の丸め方式を変更する、 ことにより生成されることを特徴とする圧縮動画像再符
号化ストリームデータ。
24. After inputting and decoding a compressed moving image stream of an encoding method in which conversion processing into frequency space is combined, and performing motion compensation prediction processing in units of less than pixel precision including rounding processing to a finite length. In the compressed image re-encoded stream data generated by re-encoding, the first image signal obtained by decoding at least a part of the compressed moving image stream is converted into a frequency space to generate frequency coefficients. Requantizing the frequency coefficient, dequantizing the requantized signal, converting the dequantized signal into a second image signal, re-quantizing from the first image signal and the second image signal, A quantized error signal is calculated, the motion-compensated prediction process is performed on the re-quantized error signal, and the input compressed moving image stream is generated in the process of the motion-compensated prediction process. And for each processing unit that is independent of the encoding process time, changing the rounding mode of the rounding, compressed moving picture re-encoding stream data, characterized in that it is produced by.
【請求項25】 請求項1ないし14のいずれかに記載
の圧縮動画像再符号化方法により生成された圧縮動画像
の再符号化ストリームデータ。
25. Re-encoded stream data of a compressed moving image generated by the compressed moving image re-encoding method according to any one of claims 1 to 14.
【請求項26】 前記丸め方式は、異なる予測方式毎に
複数個予め設定されており、前記複数の丸め方式から1
つが前記処理単位毎に選択されることを特徴とする請求
項1または2記載の圧縮動画像の再符号化方法。
26. A plurality of the rounding methods is preset for each different prediction method, and one of the plurality of rounding methods is set in advance.
3. The re-encoding method for a compressed moving image according to claim 1, wherein one is selected for each processing unit.
【請求項27】 前記予測方式の少なくとも1つは前記
丸め方式が固定されていることを特徴とする請求項26
載の圧縮動画像の再符号化方法。
27. The rounding method is fixed for at least one of the prediction methods.
A method for re-encoding compressed moving pictures.
JP2001384415A 2001-12-18 2001-12-18 Method and apparatus for re-encoding compressed video Expired - Lifetime JP4082025B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001384415A JP4082025B2 (en) 2001-12-18 2001-12-18 Method and apparatus for re-encoding compressed video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001384415A JP4082025B2 (en) 2001-12-18 2001-12-18 Method and apparatus for re-encoding compressed video

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2007028957A Division JP4539661B2 (en) 2007-02-08 2007-02-08 Method and apparatus for re-encoding compressed video

Publications (2)

Publication Number Publication Date
JP2003189309A true JP2003189309A (en) 2003-07-04
JP4082025B2 JP4082025B2 (en) 2008-04-30

Family

ID=27594149

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001384415A Expired - Lifetime JP4082025B2 (en) 2001-12-18 2001-12-18 Method and apparatus for re-encoding compressed video

Country Status (1)

Country Link
JP (1) JP4082025B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007184956A (en) * 2007-02-08 2007-07-19 Nec Corp Reencoding method and apparatus for compressed moving picture
WO2007108642A1 (en) * 2006-03-23 2007-09-27 Samsung Electronics Co., Ltd. Image encoding/decoding method and apparatus
JP2008507206A (en) * 2004-07-13 2008-03-06 ドルビー・ラボラトリーズ・ライセンシング・コーポレーション Uneven rounding for image compression
JP2009508445A (en) * 2005-09-14 2009-02-26 マイクロソフト コーポレーション Efficient integrated digital video transcoding
JP2010098537A (en) * 2008-10-16 2010-04-30 Fujitsu Ltd Transcoding device and method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008507206A (en) * 2004-07-13 2008-03-06 ドルビー・ラボラトリーズ・ライセンシング・コーポレーション Uneven rounding for image compression
JP2009508445A (en) * 2005-09-14 2009-02-26 マイクロソフト コーポレーション Efficient integrated digital video transcoding
US8447121B2 (en) 2005-09-14 2013-05-21 Microsoft Corporation Efficient integrated digital video transcoding
WO2007108642A1 (en) * 2006-03-23 2007-09-27 Samsung Electronics Co., Ltd. Image encoding/decoding method and apparatus
US8170355B2 (en) 2006-03-23 2012-05-01 Samsung Electronics Co., Ltd. Image encoding/decoding method and apparatus
JP2007184956A (en) * 2007-02-08 2007-07-19 Nec Corp Reencoding method and apparatus for compressed moving picture
JP2010098537A (en) * 2008-10-16 2010-04-30 Fujitsu Ltd Transcoding device and method

Also Published As

Publication number Publication date
JP4082025B2 (en) 2008-04-30

Similar Documents

Publication Publication Date Title
KR100289852B1 (en) Image coding method, image coding apparatus and image recording medium
JP3720875B2 (en) Transcoding method and apparatus
JP3871840B2 (en) Compressed video re-encoding device
JP5021502B2 (en) Method and apparatus for controlling rate distortion trade-off by mode selection of video encoder
CN100579234C (en) Image encoding/decoding method and apparatus thereof
KR100850705B1 (en) Method for adaptive encoding motion image based on the temperal and spatial complexity and apparatus thereof
EP1045590A2 (en) Transcoder and transcoding method with bit rate regulation
JP2011155678A (en) Method and apparatus for variable accuracy inter-picture timing specification for digital video encoding with reduced requirements for division operations
KR20010031222A (en) Transcoding
KR20030090308A (en) Method for adaptive encoding and decoding motion image and apparatus thereof
JP2002209215A (en) Code amount control apparatus and method, and image information conversion apparatus and method
KR100386583B1 (en) Apparatus and method for transcoding video
JP2009089332A (en) Motion prediction method and motion prediction apparatus
JP2006279573A (en) Encoder and encoding method, and decoder and decoding method
JP2006217560A (en) How to reduce frame buffer memory size and access
US7903731B2 (en) Methods and transcoders that estimate an output macroblock and motion vector for video transcoding
CN100555332C (en) Method and apparatus for encoding a picture sequence using predicted and non-predicted pictures comprising a plurality of macroblocks
JP3674535B2 (en) Video coding method and apparatus
JP4082025B2 (en) Method and apparatus for re-encoding compressed video
JP4421734B2 (en) Encoded data conversion method and data recording medium
EP1459563A2 (en) Image coding with block dropping
JP2005012249A (en) Image processing apparatus, image processing method, information processing apparatus, recording medium, and program
JP4539661B2 (en) Method and apparatus for re-encoding compressed video
JP2000188735A (en) MOTION VECTOR DETECTION DEVICE AND MOVING IMAGE ENCODING DEVICE USING THE SAME
JP2002218470A (en) Method for converting image encoded data rate and device for converting image encoding rate

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050830

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051031

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061212

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070111

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20070111

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070208

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071211

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071219

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: 20080122

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080204

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4082025

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110222

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110222

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120222

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120222

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130222

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130222

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140222

Year of fee payment: 6

EXPY Cancellation because of completion of term