JP2002199399A - Method and device for transforming moving vector - Google Patents

Method and device for transforming moving vector

Info

Publication number
JP2002199399A
JP2002199399A JP2000398519A JP2000398519A JP2002199399A JP 2002199399 A JP2002199399 A JP 2002199399A JP 2000398519 A JP2000398519 A JP 2000398519A JP 2000398519 A JP2000398519 A JP 2000398519A JP 2002199399 A JP2002199399 A JP 2002199399A
Authority
JP
Japan
Prior art keywords
motion vector
macroblock
mpeg4
mpeg2
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000398519A
Other languages
Japanese (ja)
Inventor
Kuniaki Takahashi
邦明 高橋
Kazufumi Sato
数史 佐藤
Teruhiko Suzuki
輝彦 鈴木
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2000398519A priority Critical patent/JP2002199399A/en
Publication of JP2002199399A publication Critical patent/JP2002199399A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain a moving vector transforming method capable of improving the efficiency of encoding by reducing movement retrieving processing in an MPEG4 image information encoding method which is the constitutional element of an image information transformation method even when the transformation scales of an image frame are optional scales in both horizontal and vertical directions. SOLUTION: In the moving vector transformation method for inputting 16×16 moving vectors of MPEG2 in a bit stream indicating the image compression information of the MPEG2 to be inputted and generating 8×8 moving vectors of MPEG4 and 16×16 moving vectors of MPEG4, the 8×8 moving vectors of MPEG4 and the 16×16 moving vectors of MPEG4 are generated from the 16×16 moving vectors of MPEG2 by space scaling and time base correction.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、MPEGなどの様
に、DCT(離散コサイン変換)等の直交変換と動き補
償によって圧縮された画像情報を示すビットストリーム
を、衛星放送、ケーブルTV、インターネットなどのネ
ットワークメディアを介して受信する際に、若しくは
光、磁気ディスク、フラッシュメモリのような記憶メデ
ィア上で処理する際に用いられる画像情報変換方法にお
ける動きベクトル変換方法及び画像情報変換装置におけ
る動きベクトル変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bit stream showing image information compressed by orthogonal transform such as DCT (Discrete Cosine Transform) and motion compensation, such as MPEG, for example, satellite broadcasting, cable TV, the Internet, etc. Motion vector conversion method in image information conversion method and motion vector conversion in image information conversion apparatus used when receiving via a network medium or when processing on a storage medium such as an optical disk, a magnetic disk, or a flash memory Related to the device.

【0002】[0002]

【従来の技術】近年、画像情報をデジタル的に取り扱
い、その際、効率の高い情報の伝送、蓄積を目的とし、
画像情報特有の冗長性を利用して、離散コサイン変換等
の直交変換と動き補償により圧縮するMPEGなどの方
式に準拠した装置が、放送局などの情報配信、及び一般
家庭における情報受信の双方において普及しつつある。
2. Description of the Related Art In recent years, image information has been handled digitally, with the aim of transmitting and storing information with high efficiency.
Utilizing the redundancy inherent in image information, an apparatus that complies with a system such as MPEG, which compresses by orthogonal transform such as discrete cosine transform and motion compensation, can be used for both information distribution at broadcast stations and information reception at ordinary homes. Spreading.

【0003】特に、MPEG2(ISO/IEC 13
818−2)は、汎用画像符号化方式として定義されて
おり、飛び越し走査画像及び順次走査画像の双方、並び
に標準解像度画像及び高精細画像を網羅する標準画像符
号化方式で、プロフェッショナル用途及びコンシューマ
ー用途の広範なアプリケーションに今後とも用いられる
ものと予想される。
In particular, MPEG2 (ISO / IEC 13
818-2) is defined as a general-purpose image coding method, and is a standard image coding method covering both interlaced scan images and progressive scan images, as well as standard resolution images and high-definition images, and is used for professional and consumer applications. It is expected to be used in a wide range of applications in the future.

【0004】MPEG2の画像圧縮方式を用いることに
より、例えば720×480画素を持つ標準解像度の飛
び越し走査画像であれば4〜8Mbps、1920×1
088画素を持つ高解像度の飛び越し走査画像であれば
18〜22Mbpsの符号量を示すビットレート)を割
り当てることで、高い圧縮率と良好な画質の実現が可能
である。
By using the MPEG2 image compression method, for example, a standard resolution interlaced scan image having 720 × 480 pixels is 4 to 8 Mbps and 1920 × 1.
If a high-resolution interlaced scan image having 088 pixels is assigned a bit rate indicating a code amount of 18 to 22 Mbps, a high compression rate and good image quality can be realized.

【0005】MPEG2の符号化方式は、主として放送
用に適合する高画質符号化を対象としていたが、MPE
G1より低い符号量(ビットレート)、つまりより高い
圧縮率の符号化方式には対応していなかった。携帯端末
の普及により、今後そのような符号化方式のニーズは高
まると思われ、これに対応してMPEG4符号化方式の
標準化が行われた。画像符号化方式に関しては、199
8年12月にISO/IEC 14496−2としてそ
の規格が国際標準に承認された。
[0005] The encoding system of MPEG2 mainly targets high-quality encoding suitable for broadcasting.
It does not correspond to a coding amount (bit rate) lower than G1, that is, a coding method with a higher compression ratio. With the spread of mobile terminals, it is expected that the need for such an encoding system will increase in the future, and in response to this, the MPEG4 encoding system has been standardized. Regarding the image coding method, 199
In December 2008, the standard was approved as an international standard as ISO / IEC 14496-2.

【0006】ところで、ディジタル放送用に一度符号化
されたMPEG2の画像圧縮情報を示すビットストリー
ムを、携帯端末上等で処理するのにより適した、より低
い符号量(ビットレート)のMPEG4の画像圧縮情報
を示すビットストリームに変換したいというニーズがあ
る。
[0006] By the way, a bit stream indicating MPEG2 image compression information once encoded for digital broadcasting is more suitable for processing on a portable terminal or the like. There is a need to convert to a bitstream that represents information.

【0007】かかる目的を達成する従来の画像情報変換
装置を図1に示す。図1は、入力されたMPEG2の画
像圧縮情報を示すビットストリームを、MPEG4の画
像圧縮情報を示すビットストリームへ変換する画像情報
変換装置の従来例である。すなわち入力されたMPEG
2の画像画像圧縮情報を示すビットストリームは、MP
EG2の画像復号化装置1により復元される。復元され
た画像信号は、解像度・フレームレート変換装置2へ伝
送され、任意の異なる解像度、フレームレートをもつ画
像信号に変換される。変換された画像信号は、MPEG
4の画像符号化装置3に入力されて、MPEG4の画像
符号化方式によりMPEG4の画像圧縮情報を示すビッ
トストリームに符号化されて、出力される。
FIG. 1 shows a conventional image information conversion apparatus which achieves the above object. FIG. 1 shows a conventional example of an image information conversion apparatus that converts an input bit stream indicating MPEG2 image compression information into a bit stream indicating MPEG4 image compression information. That is, the input MPEG
The bit stream indicating the image compression information of MP2 is MP
The image is restored by the image decoding device 1 of EG2. The restored image signal is transmitted to the resolution / frame rate conversion device 2 and is converted into an image signal having any different resolution and frame rate. The converted image signal is MPEG
4 is encoded by the MPEG-4 image encoding system into a bit stream indicating MPEG4 image compression information and output.

【0008】従来の画像情報変換装置では、図1に示し
たように、MPEG2の復号化方式により復元された画
像信号を、MPEG4の画像符号化装置により符号化
し、MPEG4の画像圧縮情報を示すビットストリーム
を出力する。MPEG2の画像情報復号化装置1におい
ては、水平及び垂直方向成分ともに、入力となるMPE
G2の画像圧縮情報を示すビットストリームの8次のD
CT(離散コサイン変換)係数の全てを用いた復号処理
を行うことが考えられるが、垂直方向には8次の係数の
全てを用いるものの、水平方向には8次の係数のうち、
低域4成分のみを用いた復号処理(以下これを4×8ダ
ウンデコードと呼ぶ)、若しくは、水平、垂直方向とも
に水平方向には8次の係数のうち低域4成分のみを用い
た復号処理(以下これを4×4ダウンデコードと呼ぶ)
を行うことで、画質劣化を最小限に抑えながら、演算量
とビデオメモリ容量を削減し、更に後段のダウンサンプ
リング処理を簡略化する構成も考えられる。
As shown in FIG. 1, in a conventional image information conversion apparatus, an image signal restored by an MPEG2 decoding method is encoded by an MPEG4 image encoding apparatus, and a bit indicating MPEG4 image compression information is encoded. Output a stream. In the image information decoding apparatus 1 of MPEG2, the input MPE is used for both the horizontal and vertical components.
8th-order D of the bit stream indicating the image compression information of G2
It is conceivable to perform decoding processing using all of the CT (discrete cosine transform) coefficients. Although all the eighth-order coefficients are used in the vertical direction, among the eight-order coefficients in the horizontal direction,
Decoding processing using only the low-frequency four components (hereinafter referred to as 4 × 8 down-decoding) or decoding processing using only the low-frequency four components of the eighth-order coefficients in the horizontal direction both in the horizontal and vertical directions (Hereinafter, this is called 4 × 4 down decoding)
, The amount of calculation and the amount of video memory can be reduced while minimizing image quality degradation, and further down-sampling processing can be simplified.

【0009】このような従来の画像情報変換装置では、
MPEG4の画像符号化装置において、入力された画像
信号を符号化する際、動きベクトルを検出する演算処理
量は、全演算処理量の約60〜70パーセントを占め
る。そのため、画像のリアルタイムでの処理が困難とな
り、時間遅延が発生し、装置が大規模になってしまう等
の問題点を生じる。
In such a conventional image information conversion device,
In the MPEG4 image encoding apparatus, when encoding an input image signal, an operation processing amount for detecting a motion vector occupies about 60 to 70% of a total operation processing amount. As a result, it becomes difficult to process images in real time, causing a time delay, causing problems such as an increase in the size of the apparatus.

【0010】かかる課題を解決するために、本発明者等
は、先に、図2に示した画像情報変換装置の発明を行っ
た。以下に、図2を参照して、かかる画像情報変換装置
を説明する。すなわち、図2において、4はMPEG2
の画像情報復号化装置、5は解像度・フレームレート変
換装置、6は動きベクトル変換装置、7はMPEG4の
画像情報符号化装置である。
In order to solve such a problem, the present inventors have previously invented the image information conversion apparatus shown in FIG. Hereinafter, such an image information conversion apparatus will be described with reference to FIG. That is, in FIG.
, A resolution / frame rate converter, 6 a motion vector converter, and 7 an MPEG4 image information encoder.

【0011】図3は、MPEG2の画像圧縮情報を示す
ビットストリーム中の動きベクトルと、MPEG4の画
像圧縮情報を示すビットストリーム中の動きベクトルの
相関関係を示す概念図である。画像の解像度が変換され
る際、変換後の前フレームでの位置から現フレームでの
位置への動きベクトルの水平成分は、解像度変換前の動
きベクトルの水平成分と、画像の横方向の解像度変換レ
ートとによって求めることができる。
FIG. 3 is a conceptual diagram showing a correlation between a motion vector in a bit stream indicating MPEG2 image compression information and a motion vector in a bit stream indicating MPEG4 image compression information. When the resolution of the image is converted, the horizontal component of the motion vector from the position in the previous frame after the conversion to the position in the current frame is obtained by converting the horizontal component of the motion vector before the resolution conversion into the horizontal resolution of the image. It can be determined by the rate.

【0012】解像度変換後の垂直成分は、解像度変換前
の動きベクトルの垂直成分と、画像の縦方向の解像度変
換レートとによって求められる。すなわち、解像度変換
前の動きベクトルと、変換後の動きベクトルとは大きな
相関をもつ。その相関を利用して、解像度変換前の動き
ベクトルから変換後の動きベクトルを求めることができ
る。
The vertical component after resolution conversion is obtained from the vertical component of the motion vector before resolution conversion and the vertical resolution conversion rate of the image. That is, the motion vector before the resolution conversion and the motion vector after the conversion have a large correlation. By utilizing the correlation, a motion vector after the conversion can be obtained from the motion vector before the resolution conversion.

【0013】すなわち、入力されたMPEG2の画像圧
縮情報を示すビットストリームより、MPEG2のマク
ロブロックの動きベクトルや、マクロブロックタイプ等
のパラメータを利用し、それをMPEG4の動きベクト
ルへ簡潔に変換する。MPEG4の符号化装置7内で
は、動きベクトルの検出を行わず、変換された動きベク
トルを用いた画像符号化を行う。結果として、MPEG
4の画像符号化装置内での動き検出を行わないため、処
理量が大幅に減らされる。
That is, a motion vector of an MPEG2 macroblock or a parameter such as a macroblock type is used from a bit stream indicating MPEG2 image compression information, and the motion vector is simply converted to an MPEG4 motion vector. In the MPEG4 encoding device 7, the motion vector is not detected and the image encoding using the converted motion vector is performed. As a result, MPEG
Since no motion detection is performed in the image encoding device of No. 4, the processing amount is greatly reduced.

【0014】このように、MPEG2の動きベクトルか
らMPEG4の動きベクトルへの変換を行うこと、また
動きベクトル以外にも、MPEG2での復号に用いたパ
ラメータ、若しくは変換した後のパラメータを採用する
ことにより、MPEG4の符号化装置の処理量が減らさ
れることにおいて、時間遅延を少なくすることができ
る。
As described above, the conversion from the MPEG2 motion vector to the MPEG4 motion vector is performed. In addition to the motion vector, the parameters used for decoding in MPEG2 or the parameters after the conversion are adopted. The time delay can be reduced by reducing the processing amount of the MPEG4 encoding device.

【0015】図2において、入力されたMPEG2の画
像圧縮情報を示すビットストリームは、MPEG2の画
像復号化装置4において、復号化処理が施される。MP
EG2の画像情報復号化装置4においては、水平及び垂
直方向成分ともに、入力となるMPEG2の画像圧縮情
報を示すビットストリームの8次のDCT係数全てを用
いた復号処理を行うことが考えられるが、4×8ダウン
デコード、若しくは4×4ダウンデコードを行うこと
で、画質劣化を最小限に抑えながら、演算量とビデオメ
モリ容量を削減し、更に後段のダウンサンプリング処理
を簡略化する構成も考えられる。
In FIG. 2, an input bit stream indicating MPEG2 image compression information is subjected to a decoding process in an MPEG2 image decoding device 4. MP
In the image information decoding device 4 of EG2, it is conceivable to perform a decoding process using all the 8th-order DCT coefficients of the bit stream indicating the input MPEG2 image compression information in both the horizontal and vertical components. By performing 4 × 8 down-decoding or 4 × 4 down-decoding, it is also conceivable to reduce the amount of calculation and the video memory capacity while minimizing image quality degradation, and to further simplify down-sampling processing in the subsequent stage. .

【0016】復号化装置4から出力された画像が解像度
フレームレート変換装置5へ送られ、解像度・フレーム
変換を行った後、外部から入力された画像サイズ調整フ
ラグにより、MPEG4の画像符号化に適した解像度を
もつ画像が出力される。
An image output from the decoding device 4 is sent to a resolution / frame rate conversion device 5 and subjected to resolution / frame conversion. After that, it is suitable for MPEG4 image encoding by an externally input image size adjustment flag. An image having the same resolution is output.

【0017】解像度フレームレート変換装置5では、ま
ず、MPEG2の画像復号化装置4より入力された画像
の解像度変換を行う。ここでは、縦・横とも解像度を1
/2にする場合を例として挙げる。図4に示しているよ
うに、縦方向のダウンサンプリングは、入力された飛び
越し走査画像の第一フィールド、若しくはを第二フィー
ルドを抽出し、順次走査画像に変換する。横方向は、ダ
ウンサンプリングフィルタを用いて、1/2の解像度に
変換する。また、低ビットレートを実現するために、解
像度の変換による圧縮だけではなく、I/Pピクチャの
みの第一フィールド若しくは第二フィールドを抜き出
し、時間方向においてフレームレートを落とす。
The resolution frame rate converter 5 first converts the resolution of the image input from the MPEG2 image decoder 4. Here, the resolution is 1 for both the vertical and horizontal directions.
/ 2 is taken as an example. As shown in FIG. 4, in the vertical downsampling, the first field or the second field of the input interlaced scan image is extracted and converted into a progressive scan image. In the horizontal direction, the resolution is converted to 1/2 resolution using a downsampling filter. In addition, in order to realize a low bit rate, not only compression by resolution conversion, but also a first field or a second field of only I / P pictures is extracted, and the frame rate is reduced in the time direction.

【0018】たとえば、図4に示したMPEG2のIB
BPBBの画像は解像度・フレーム変換後、IPPPの
第一フィールドの構成になる。解像度・フレーム変換を
行った画像は、MPEG4の画像符号化方式により符号
化できるように、縦、横の画素数をともに16の倍数に
する。そのため、外部から入力される画像サイズ調整フ
ラグにより、画素の補填あるいは画素の除去を行う。
For example, the IB of MPEG2 shown in FIG.
After the resolution / frame conversion, the BPBB image has the first field configuration of the IPPP. Both the vertical and horizontal pixels are set to multiples of 16 so that the resolution-frame converted image can be encoded by the MPEG4 image encoding method. Therefore, pixels are supplemented or pixels are removed according to an image size adjustment flag input from the outside.

【0019】画像サイズ調整フラグは、解像度・フレー
ムレート変換器の外部から入力され、画像の縦・横の画
素数が16の倍数でない場合に対し、画像への画素補填
若しくは、除去を判別するためのフラグである。
The image size adjustment flag is input from the outside of the resolution / frame rate converter, and is used to determine whether the image is supplemented or removed from the image when the number of vertical and horizontal pixels is not a multiple of 16. Flag.

【0020】次に、図5を用いて、画像サイズ調整フラ
グによる画像への処理を説明する。MPEG2の画像復
号化装置4より出力された画像の解像度がm画素×n画
素であるとすると、m、nは共に16の倍数であるが、
縦、横1/2にダウンサンプリングされたm/2,n/
2は、16の整数倍、若しくは、16で割って8画素の
余りがある。m/2,n/2が共に16の倍数であるか
否かを判別し、m/2,n/2が共に16の倍数である
場合においては、MPEG4の符号化方式に適する画像
になっているため、画像への処理を行わない。また、m
/2,n/2が共に16の倍数でないときは、MPEG
4の符号化方式に適さないため、画像サイズ調整フラグ
による画像への処理が必要となる。
Next, processing on an image by the image size adjustment flag will be described with reference to FIG. Assuming that the resolution of the image output from the MPEG2 image decoding device 4 is m pixels × n pixels, both m and n are multiples of 16,
M / 2, n / downsampled to 1/2 length and width
2 has an integer multiple of 16 or a remainder of 8 pixels when divided by 16. It is determined whether or not both m / 2 and n / 2 are multiples of 16. If both m / 2 and n / 2 are multiples of 16, an image suitable for the encoding method of MPEG4 is obtained. Therefore, no processing is performed on the image. Also, m
If both / 2 and n / 2 are not a multiple of 16, MPEG
Therefore, it is necessary to process an image using an image size adjustment flag.

【0021】画像サイズ調整フラグには、画素の補填と
除去の二つの選択肢をもつ。m/2若しくはn/2が1
6で割って、8画素が余った場合においては、画像の除
去を選択すれば、余った8画素を除去する。すなわち、
出力画像は(m/2−8)若しくは(n/2―8)とな
る。一方画素の補填を選択すれば、新たに作成した8画
素若しくは元の画像から複製した8画素若しくは画像に
適した8画素を行、あるいは列の先頭若しくは、後部か
ら付け加える。すなわち、出力画像は(m/2+8)若
しくは(n/2+8)となる。結果として、変換後の画
像解像度の横と縦は16の倍数となり、MPEG4符号
化方式に適したサイズを持つ画像が出力される。
The image size adjustment flag has two options of pixel compensation and pixel removal. m / 2 or n / 2 is 1
If there are eight pixels left after dividing by 6, if the removal of the image is selected, the remaining eight pixels are removed. That is,
The output image is (m / 2-8) or (n / 2-8). On the other hand, if pixel complementation is selected, eight pixels newly created, eight pixels copied from the original image, or eight pixels suitable for the image are added from the top or the rear of the row or column. That is, the output image is (m / 2 + 8) or (n / 2 + 8). As a result, the width and height of the converted image resolution are multiples of 16, and an image having a size suitable for the MPEG4 encoding method is output.

【0022】一方、入力されたMPEG2の画像圧縮情
報を示すビットストリームは、MPEG2の画像復号化
装置4で、可変長符号の復号化を行った後、Pピクチャ
のみのマクロブロックの動きベクトルやマクロブロック
タイプなどその他のパラメータが取り出されて、動きベ
クトル変換装置6へ伝送される。
On the other hand, the input bit stream indicating the MPEG2 image compression information is subjected to variable-length code decoding by the MPEG2 image decoding device 4 and then to a motion vector or a macroblock of a macroblock including only P pictures. Other parameters such as the block type are extracted and transmitted to the motion vector converter 6.

【0023】動きベクトル変換装置6における動きベク
トル変換方法を、図6を用いて説明する。図6Aおよ
び、図6Bの実線で区切られている各正方格子の一つ一
つがマクロブロックを示している。図6AはMPEG2
の復号化装置4より出力された画像、すなわち、解像度
変換前の画像を示す。図6Bは、図6Aの画像を解像度
・フレームレート変換装置5により、縦・横の解像度と
も1/2に変換された画像を示す。たとえば、変換前の
図6Aの左上の斜線の施された16×16のマクロブロ
ックは、変換後の図6Bにおける左上の斜線の施された
8×8のブロックになる。すなわち、図6Aに示した4
つの網掛けした16×16のマクロブロックが、解像度
変換された後、それぞれ図6Bに示した4つの網掛けし
た8×8のブロックになり、それらによって、1つの1
6×16のマクロブロックが構成される。解像度変換前
と後の動きベクトルの相関が大きいため、変換後の8×
8のブロックの動きベクトルは、変換前の16×16の
マクロブロックの動きベクトルより求めることができ
る。さらに、4つの8×8の動きベクトルから、1つの
16×16の動きベクトルを求め、MPEG4の画像符
号化方式により符号化するのに用いる動きベクトルの4
つの8×8の動きベクトルと、1つの16×16の動き
ベクトルが生成される。
The motion vector conversion method in the motion vector conversion device 6 will be described with reference to FIG. Each of the square lattices separated by a solid line in FIGS. 6A and 6B indicates a macroblock. FIG. 6A shows MPEG2
, Ie, an image before resolution conversion. FIG. 6B shows an image obtained by converting the image of FIG. 6A to half in both the vertical and horizontal resolutions by the resolution / frame rate conversion device 5. For example, a 16 × 16 macroblock shaded in the upper left of FIG. 6A before conversion is an 8 × 8 block shaded in the upper left in FIG. 6B after the conversion. That is, 4 shown in FIG.
Each of the 16 × 16 shaded macroblocks, after resolution conversion, becomes four shaded 8 × 8 blocks, each shown in FIG.
A 6 × 16 macro block is configured. Since the correlation between the motion vector before and after the resolution conversion is large, the converted 8 ×
The motion vector of the 8 block can be obtained from the motion vector of the 16 × 16 macro block before the conversion. Further, one 16 × 16 motion vector is determined from the four 8 × 8 motion vectors, and the 4 × 16 motion vector used for encoding by the MPEG4 image encoding method is obtained.
Two 8 × 8 motion vectors and one 16 × 16 motion vector are generated.

【0024】図7に動きベクトル変換装置6の詳細構成
を示し、この図7を参照して、動きベクトル変換装置6
の動作原理を説明する。入力されたMPEG2の画像圧
縮情報を示すビットストリーム中の動きベクトル、画像
サイズなどのパラメータは、MPEG2の16×16の
動きベクトル→MPEG4の8×8の動きベクトル変換
装置70に供給されて、動きベクトル変換されて、補正
前の8×8の動きベクトルが作成される。
FIG. 7 shows a detailed configuration of the motion vector conversion device 6. Referring to FIG.
The operation principle of will be described. The parameters such as the motion vector and the image size in the bit stream indicating the input MPEG2 image compression information are supplied to the MPEG2 16 × 16 motion vector → MPEG4 8 × 8 motion vector conversion device 70, Vector conversion is performed to create an 8 × 8 motion vector before correction.

【0025】マクロブロック情報バッファ73に、MP
EG2のマクロブロックの動きベクトル情報、マクロブ
ロックモード、量子化スケール及びビット量が格納され
る。画像サイズ調整フラグによる動きベクトルへの調整
器71は、図5で説明した方式に基づき変換後の画像サ
イズを16の倍数に調整する。MPEG2のイントラマ
クロブロックに対する動きベクトル補正器72において
は、MPEG2のイントラマクロブロックより変換され
る動きベクトル値に、周辺インターマクロブロックで符
号化されたマクロブロックの動きベクトルを代入する。
MPEG4の8×8→16×16の動きベクトル変換装
置74においては、一つのMPEG4のマクロブロック
を構成する4つの8×8のブロックがもつ8×8の動き
ベクトルより、代表動きベクトルを判定して、16×1
6の動きベクトルに割り当てる。
In the macro block information buffer 73, the MP
The motion vector information, macroblock mode, quantization scale, and bit amount of the macroblock of EG2 are stored. The adjuster 71 for the motion vector based on the image size adjustment flag adjusts the image size after conversion to a multiple of 16 based on the method described with reference to FIG. The motion vector corrector 72 for the MPEG2 intra macroblock substitutes the motion vector of the macroblock encoded by the peripheral inter macroblock into the motion vector value converted from the MPEG2 intra macroblock.
In the MPEG4 8 × 8 → 16 × 16 motion vector converter 74, a representative motion vector is determined from the 8 × 8 motion vectors of four 8 × 8 blocks constituting one MPEG4 macroblock. And 16 × 1
6 motion vectors.

【0026】図8に、MPEG2の16×16の動きベ
クトル→MPEG4の8×8の動きベクトル変換装置6
における動作のフローチャートを示し、この図8を参照
して、この動きベクトル変換装置6の動作原理を説明す
る。
FIG. 8 shows a 16 × 16 motion vector of MPEG2 → 8 × 8 motion vector converter 6 of MPEG4.
The operation principle of the motion vector conversion device 6 will be described with reference to FIG.

【0027】入力されたMPEG2のマクロブロック動
きベクトルと、マクロブロックタイプに対し、MPEG
2の16×16の動きベクトル→MPEG4の8×8の
動きベクトル変換装置6は次のように動作する。飛び越
し走査のMPEG2の画像圧縮情報を示すビットストリ
ームにおいては、一般的にフレーム構造が用いられるた
め、今回はフレーム構造の場合への処理のみの変換方法
を説明する。
The input MPEG2 macroblock motion vector and the macroblock type are compared with the MPEG2 macroblock motion vector.
The 2 × 16 × 16 motion vector → MPEG4 8 × 8 motion vector converter 6 operates as follows. Since a frame structure is generally used in a bit stream indicating MPEG2 image compression information of interlaced scanning, a conversion method only for processing in the case of a frame structure will be described this time.

【0028】ステップST−1では、マクロブロックタ
イプが、イントラ/インター/スキップのいずれである
かが判別される。ステップST−1において、マクロブ
ロックタイプが、イントラマクロブロックであると判別
された場合には、MPEG2のイントラマクロブロック
は、解像度変換後の8×8のブロックが動きベクトルを
持つことを想定して、ステップST−2の処理を行う。
その処理としては、まず8×8の動きベクトルを0に設
定し、さらに、補正器72による処理を行うため、イン
トラモードフラグを設ける。MPEG2では、イントラ
マクロブロックである場合、イントラモードフラグが立
つ(を設ける)。
At step ST-1, it is determined whether the macroblock type is intra / inter / skip. If it is determined in step ST-1 that the macroblock type is an intra macroblock, the MPEG2 intra macroblock assumes that the 8 × 8 block after resolution conversion has a motion vector. , The processing of step ST-2 is performed.
As the processing, first, an 8 × 8 motion vector is set to 0, and an intra mode flag is provided for the processing by the corrector 72. In MPEG2, if the block is an intra macro block, an intra mode flag is set (provided).

【0029】ステップST−1において、マクロブロッ
クタイプが、スキップマクロブロックであると判別され
た場合には、ステップST−3で、各ブロックの動きベ
クトルを0と設定する。尚、スキップとは、MPEG2
において、動きベクトルが(0,0)であり、離散コサ
イン変換係数ビットが発生しないことを意味するマクロ
ブロックモードを言う。
If it is determined in step ST-1 that the macroblock type is a skip macroblock, the motion vector of each block is set to 0 in step ST-3. Note that skip means MPEG2
, The macroblock mode means that the motion vector is (0,0) and no discrete cosine transform coefficient bits are generated.

【0030】ステップST−1において、マクロブロッ
クタイプが、インターマクロブロックであると判別され
た場合には、ステップST−4で、フレーム/フィール
ド予測の判別が行われる。インターマクロブロックに対
し、画像がフレーム構造、フレーム予測である場合に
は、ステップST−5に示す如く、フレーム予測に適し
た動きベクトルへの変換が行われる。この動きベクトル
変換について、図9の概念図を参照して説明する。図3
で説明したと同様に、変換後の動きベクトルの水平成分
は、変換前の動きベクトルの水平成分と画像の横方向の
解像度変換レートから求められる。垂直成分は、変換前
の動きベクトルの垂直成分と、画像の縦方向の解像度変
換レートとから求められる。すなわち、横方向の解像度
を1/2に変換した際、変換後の動きベクトルの水平成
分も変換前の1/2になる。縦方向の解像度を1/2に
変換した際、変換後の動きベクトルの垂直成分も変換前
の1/2になる。
If it is determined in step ST-1 that the macroblock type is an inter macroblock, then in step ST-4, frame / field prediction is determined. If the image has a frame structure and frame prediction for the inter macroblock, conversion to a motion vector suitable for frame prediction is performed as shown in step ST-5. This motion vector conversion will be described with reference to the conceptual diagram of FIG. FIG.
As described above, the horizontal component of the motion vector after conversion is obtained from the horizontal component of the motion vector before conversion and the horizontal resolution conversion rate of the image. The vertical component is obtained from the vertical component of the motion vector before conversion and the vertical resolution conversion rate of the image. That is, when the resolution in the horizontal direction is converted to 1 /, the horizontal component of the converted motion vector also becomes の before the conversion. When the resolution in the vertical direction is converted to 1 /, the vertical component of the converted motion vector also becomes の before the conversion.

【0031】たとえば、図9に示した動きベクトルは、
図9Aの変換前の(8,12)から図9Bの変換後の
(4,6)になる。尚、この場合は、整数画素の中間値
(半画素)の間隔を1としている。図9Aの解像度変換
前の図においては、黒丸は整数画素の位置を示し、菱形
はは半画素の位置を示している。図9Bの解像度変換後
の図において、白丸は半画素を示す。図からわかるよう
に、図9Aの変換前の整数画素の位置に示している動き
ベクトルは、図9Bの変換後の整数画素若しくは半画素
の位置に示しいているが、図9Aの変換前の半画素の位
置に示している動きベクトルは、図9Bの解像度変換後
に参照する画素がなくなる。そこで、図9Aの変換前の
動きベクトルが半画素の位置を示している場合、図9B
の変換後の動きベクトルも予測画像の半画素の位置を示
すようにする。
For example, the motion vector shown in FIG.
(8, 12) before the conversion in FIG. 9A becomes (4, 6) after the conversion in FIG. 9B. In this case, the interval between the intermediate values (half pixels) of the integer pixels is set to 1. In the figure before the resolution conversion in FIG. 9A, black circles indicate positions of integer pixels, and diamonds indicate positions of half pixels. In the figure after the resolution conversion in FIG. 9B, white circles indicate half pixels. As can be seen from the figure, the motion vector shown at the position of the integer pixel before conversion in FIG. 9A is shown at the position of the integer pixel or half pixel after conversion in FIG. In the motion vector shown at the pixel position, there is no pixel to be referred after the resolution conversion in FIG. 9B. Therefore, when the motion vector before conversion in FIG. 9A indicates the position of a half pixel, FIG.
The motion vector after the conversion is set to indicate the position of a half pixel of the predicted image.

【0032】これは本来、復号された画像信号には、量
子化による歪みが含まれているため、そのまま予測画像
として使用すると予測効率が低下し、画質劣化を引き起
こすそおれがあるからである。これを低減するために、
低域通過フィルタに相当する参照画面での各画素間を
1:1で直線補間した半画素精度を選択されることもあ
り、これにより、画質劣化を避けることができる。従っ
て、MPEG4の画像符号化方式による符号化も、予測
効率を向上し、画質劣化を防ぐために、MPEG4で動
きベクトルが半画素の位置に示している場合、MPEG
4のフォーマットに変換した際も半画素の位置に示すよ
うに変換する。変換前と変換後の動きベクトルの対応関
係は図10の表図に示す通りである。
This is because the decoded image signal originally contains distortion due to quantization, so that if it is used as a predicted image as it is, the prediction efficiency will be reduced and image quality will be degraded. To reduce this,
In some cases, half-pixel accuracy is obtained by linearly interpolating 1: 1 between pixels on a reference screen corresponding to a low-pass filter, thereby avoiding image quality degradation. Therefore, in order to improve the prediction efficiency and prevent the image quality from deteriorating, the encoding by the MPEG4 image encoding method is performed in the case where the motion vector is indicated by a half pixel position in MPEG4.
4 is also converted as shown at the position of a half pixel. The correspondence between the motion vectors before and after the conversion is as shown in the table of FIG.

【0033】次に、ステップST−1で、マクロブロッ
クタイプが、インターマクロブロックであると判別され
た場合には、ステップST−4で、フレーム/フィール
ド予測のいずれであるかの判別が行われる。画像がフレ
ーム構造で、フィールド予測である場合は、ステップS
T−6で、第一フィールド予測/第二フィールド予測の
判別が行われる。まず、第一フィールド予測であると判
別されたときは、ステップST−7に示す如く、フィー
ルド予測の第一フィールド予測に適した動きベクトルへ
の変換を行うが、これについて図11の動きベクトル変
換の概念図を参照して説明する。動きベクトルの水平成
分は、図10について上述したのと同様な処理が行われ
る。垂直方向は、第一フィールドを抽出することによ
り、解像度を1/2に変換することを可能とする。ま
た、予測も第一フィールド予測を行っているため、変換
前の動きベクトルは、そのまま変換後の動きベクトルに
なる。
Next, when it is determined in step ST-1 that the macroblock type is an inter macroblock, in step ST-4, it is determined which of frame / field prediction is to be performed. . If the image has a frame structure and is a field prediction, step S
At T-6, the first field prediction / second field prediction is determined. First, when it is determined that it is the first field prediction, as shown in step ST-7, the field prediction is converted into a motion vector suitable for the first field prediction. This will be described with reference to a conceptual diagram of FIG. The horizontal component of the motion vector is subjected to the same processing as described above with reference to FIG. In the vertical direction, it is possible to convert the resolution to に よ り by extracting the first field. In addition, since the first field prediction is also performed in the prediction, the motion vector before the conversion becomes the motion vector after the conversion as it is.

【0034】ステップST−6の判断で、第二フィール
ド予測であると判別されたときは、ステップST−8に
示す如く、フィールド予測の第二フィールド予測に適し
た動きベクトルへの変換を行うが、その場合の動きベク
トル変換を、図12及び図13の概念図を参照して説明
する。解像度変換した際、第一フィールドのみが抽出さ
れるため、変換後は第一フィールドの画素値を参照画像
として用いる。そのため、MPEG2で予測画像として
用いた第二フィールドの画素値を解像度変換後の第一フ
ィールド予測に変換するように、動きベクトルの時空間
補正を行う。
If it is determined in step ST-6 that it is the second field prediction, as shown in step ST-8, the field prediction is converted into a motion vector suitable for the second field prediction. The motion vector conversion in that case will be described with reference to the conceptual diagrams of FIGS. At the time of resolution conversion, only the first field is extracted. Therefore, after the conversion, the pixel value of the first field is used as a reference image. Therefore, spatio-temporal correction of the motion vector is performed so that the pixel value of the second field used as the prediction image in MPEG2 is converted into the first field prediction after resolution conversion.

【0035】図12は、第二フィールド予測から近似的
に第一フィールド予測に変換するための空間的な補正を
行う手法を示した図である。すなわち、動きベクトルの
垂直成分に1を加える。図からわかるように、第二フィ
ールド予測で求めた動きベクトルの垂直成分に1を足す
と、1行を繰り上げられることによって、第二フィール
ドが第一フィールドと同様の空間位置に達し、空間上
で、第一フィールド予測で求めた動きベクトルのように
なる。数1の式は、空間補正により、第一フィールドと
同様な空間位置にある第二フィールド、すなわち近似第
一フィールドを予測とした時、動きベクトルMVtop
垂直成分を表している。
FIG. 12 is a diagram showing a method for performing spatial correction for approximately converting the second field prediction to the first field prediction. That is, 1 is added to the vertical component of the motion vector. As can be seen from the figure, when 1 is added to the vertical component of the motion vector obtained in the second field prediction, one row is moved up, so that the second field reaches the same spatial position as the first field, and , The motion vector obtained in the first field prediction. Equation 1 represents the vertical component of the motion vector MV top when the second field at the same spatial position as the first field, that is, the approximate first field is predicted by the spatial correction.

【0036】[0036]

【数1】直線成分:近似MVtop =MVbottom+1## EQU1 ## Linear component: approximate MV top = MV bottom +1

【0037】また、飛び越し走査のMPEG2の画像圧
縮情報には第一フィールドと第二フィールドとで時間ず
れがある。そのため、第二フィールドから近似された第
一フィールドと実際の第一フィールドとの時間ずれの補
正を行う。
The interlaced MPEG2 image compression information has a time lag between the first field and the second field. Therefore, the time lag between the first field approximated from the second field and the actual first field is corrected.

【0038】図13は各フィールドの時間的位置関係を
示している。ここで、第一フィールドと第二フィールド
の間隔を1とし、aをIピクチャの第二フィールドとP
ピクチャの第一フィールドとの間の間隔とすると、aは
1,3,5,7,‥‥のような奇数になる。尚、aが1
の場合は、画像の構成がIPPP…の場合である。時間
補正した動きベクトルMV′を、数2の式に示す。
FIG. 13 shows the temporal positional relationship of each field. Here, the interval between the first field and the second field is set to 1, and a is defined as
Assuming an interval between the first field and the picture, a is an odd number such as 1, 3, 5, 7,. Note that a is 1
Is a case where the image configuration is IPPP. The time-corrected motion vector MV ′ is shown in Expression 2.

【0039】[0039]

【数2】 垂直成分:MV′={(a+1)/a}近似MVtop ## EQU2 ## Vertical component: MV '= {(a + 1) / a} approximation MV top

【0040】数1の式を数2の式に代入すると、変換後
の動きベクトルの垂直成分は、数3の式のようになる。
When the equation (1) is substituted into the equation (2), the vertical component of the converted motion vector becomes the equation (3).

【0041】[0041]

【数3】垂直成分:MV′={(a+1)/a}(MV
bottom+1)
## EQU3 ## Vertical component: MV '= {(a + 1) / a} (MV
bottom +1)

【0042】尚、変換後の動きベクトルの水平成分は、
変換前の動きベクトルに(a+1)/aを乗じ、時間的
な補正を行った後、図10の表図の計算に従って求めら
れる。
The horizontal component of the converted motion vector is
The motion vector before conversion is multiplied by (a + 1) / a, and after performing temporal correction, the motion vector is obtained according to the calculation in the table of FIG.

【0043】動きベクトルの垂直成分に対して、場合に
より、時間的補正を行った後、空間的な補正を行っても
よい。その場合の動きベクトルMV′の垂直成分を数4
の式に示す。尚、水平成分は空間・時間補正(空間補正
を行ってから時間補正を行う)と、時間・空間補正(時
間補正が行ってから空間補正を行う)は同様な値とな
る。
If necessary, the vertical component of the motion vector may be temporally corrected and then spatially corrected. In this case, the vertical component of the motion vector MV 'is expressed by Equation 4.
Is shown in the following equation. The horizontal component has the same value in the space / time correction (time correction is performed after the space correction is performed) and the time / space correction (space correction is performed after the time correction is performed).

【0044】[0044]

【数4】 垂直成分:MV′={(a+1)/a}MVbottom+1## EQU4 ## Vertical component: MV ′ = {(a + 1) / a} MV bottom +1

【0045】数3の式と数4の式との差、すなわち、空
間・時間補正を行った場合と、時間・空間補正を行った
場合の動きベクトルの垂直成分の差は1/aになる。従
って、aの値によって、その差による影響が異なるの
で、aが1の場合と、1より大きい、すなわち3,5,
7,‥‥の2つの場合における補正方法を、以下に説明
する。
The difference between the formulas (3) and (4), that is, the difference between the vertical component of the motion vector when the space / time correction is performed and the time / space correction is 1 / a. . Therefore, the influence of the difference differs depending on the value of a. Therefore, when a is 1, it is larger than 1, that is, 3, 5,
The correction method in the two cases of 7 and ‥‥ will be described below.

【0046】まず、a=1の場合について説明する。即
ち、数3の式のaに1を代入すると、動きベクトルの垂
直成分は数5の式になる。
First, the case where a = 1 will be described. That is, when 1 is substituted for a in the equation (3), the vertical component of the motion vector becomes the equation (5).

【0047】[0047]

【数5】垂直成分:MV′=2×(MVbottom+1)## EQU5 ## Vertical component: MV '= 2.times. (MV bottom +1)

【0048】数4の式のaに1を代入すると、動きベク
トルの垂直成分は数6の式のようになる。
When 1 is substituted for a in equation (4), the vertical component of the motion vector is as shown in equation (6).

【0049】[0049]

【数6】垂直成分:MV′=2×MVbottom+1## EQU6 ## Vertical component: MV '= 2.times.MV bottom +1

【0050】その結果、変換前の動きベクトルMV
bottomに0,1,2,‥‥を代入すると、数5の式によ
る値は、2,4,6,‥‥のような偶数になる。すなわ
ち、空間・時間補正を行うと、変換前の動きベクトルは
整数画素の位置に示しても、半画素の位置に示しても、
変換後は全て整数画素の位置に示す。また、数6の式に
よる値は、1,3,5,‥‥のような奇数になる。すな
わち、時間・空間補正を行うと、変換前の動きベクトル
は整数画素の位置に示しても半画素の位置に示しても、
変換後は全て半画素の位置に示す。
As a result, the motion vector MV before conversion
By substituting 0, 1, 2, ‥‥ into the bottom , the value according to the equation of Equation 5 becomes an even number such as 2, 4, 6, ‥‥. That is, when the space / time correction is performed, the motion vector before the conversion may be shown at the position of an integer pixel or at the position of a half pixel,
After conversion, they are all shown at integer pixel positions. Further, the value obtained by the equation (6) is an odd number such as 1, 3, 5,. That is, when the time / space correction is performed, the motion vector before the conversion may be shown at the position of the integer pixel or at the position of the half pixel,
After conversion, they are all shown at half-pixel positions.

【0051】従って、変換前整数画素の位置に示してい
る動きベクトルは、変換後も整数画素の位置に示すよう
にする場合、空間・時間補正を行う。また、変換前の半
画素の位置に示している動きベクトルは、変換後も半画
素の位置に示すようにする場合、時間・空間補正を行
う。すなわち、変換前の動きベクトルに対し、空間補
正、時間補正を交互に使用し、解像度変換後の動きベク
トルに変換し、若しくは、変換前の動きベクトルに対し
て、全て時間・空間補正を行う。
Therefore, if the motion vector indicated at the position of the integer pixel before the conversion is to be indicated at the position of the integer pixel even after the conversion, space / time correction is performed. When the motion vector indicated at the half-pixel position before the conversion is indicated at the half-pixel position after the conversion, time / space correction is performed. That is, spatial correction and temporal correction are alternately used for the motion vector before conversion, and the motion vector is converted to a motion vector after resolution conversion, or all the time and space correction are performed for the motion vector before conversion.

【0052】以上の動きベクトル変換処理が終了した
後、補正前のMPEG4の8×8の動きベクトルが出力
される。出力された8×8の動きベクトルは、画像サイ
ズ調整フラグによる動きベクトルへの調整器71に伝送
され、外部より入力された画像サイズ調整フラグによ
り、画像サイズに適した動きベクトルを出力する。
After the above-described motion vector conversion processing is completed, an MPEG4 8 × 8 motion vector before correction is output. The output 8 × 8 motion vector is transmitted to the motion vector adjuster 71 based on the image size adjustment flag, and outputs a motion vector suitable for the image size according to the image size adjustment flag input from the outside.

【0053】画像サイズ調整フラグによる動きベクトル
への調整器71における動きベクトル調整を、図14の
概念図を参照して説明する。画像サイズがm画素×n画
素の入力画像に対して、m/2,n/2が共に16の倍
数であれば、動きベクトル変換装置70から出力された
MPEG4の8×8の動きベクトルを、調整器71で処
理することなくそのまま出力する。
The adjustment of the motion vector to the motion vector by the image size adjustment flag in the adjuster 71 will be described with reference to the conceptual diagram of FIG. If both m / 2 and n / 2 are multiples of 16 for an input image having an image size of m × n pixels, the MPEG4 8 × 8 motion vector output from the motion vector converter 70 is The data is output as it is without being processed by the adjuster 71.

【0054】m/2,n/2のいずれが16の倍数でな
い場合は、外部から入力された画像サイズ調整フラグを
利用し、画素除去の場合は、除去された8画素の8×8
の動きベクトルを出力しないで、他の8×8の動きベク
トルを出力する。また、画素補填の場合は、補填された
8画素の8×8の動きベクトルを0に設定し、他の入力
された8×8の動きベクトルと合わせて出力される。
When either m / 2 or n / 2 is not a multiple of 16, the image size adjustment flag input from the outside is used. In the case of pixel removal, 8 × 8 pixels of the removed 8 pixels are used.
Is output, another 8 × 8 motion vector is output. In the case of pixel compensation, the 8 × 8 motion vector of the supplemented eight pixels is set to 0, and output together with the other input 8 × 8 motion vectors.

【0055】再び図7に戻って説明する。画像サイズ調
整フラグによる動きベクトルへの調整器71より出力さ
れた、画像サイズに適した8×8の動きベクトルは、M
PEG4の8×8の動きベクトル→MPEG4の16×
16の動きベクトル変換装置74によって変換される。
Returning to FIG. 7, the description will be continued. The 8 × 8 motion vector suitable for the image size output from the adjuster 71 for the motion vector based on the image size adjustment flag is M
8 × 8 motion vector of PEG4 → 16 × of MPEG4
It is converted by 16 motion vector converters 74.

【0056】図7のMPEG4の8×8の動きベクトル
→MPEG4の16×16の動きベクトル変換装置74
においては、MPEG2の16×16の動きベクトル→
MPEG4の8×8の動きベクトル変換装置70におい
て生成された、そのマクロブロックに対するMPEG4
の8×8の動きベクトルのうち、最も符号化効率が高い
と考えられるマクロブロックより生成されたものを選択
し、MPEG4の16×16の動きベクトルとして出力
する。
The MPEG4 8 × 8 motion vector → MPEG4 16 × 16 motion vector converter 74 shown in FIG.
Is a 16 × 16 motion vector of MPEG2 →
MPEG4 for the macro block generated in the MPEG4 8 × 8 motion vector converter 70
Of the 8 × 8 motion vectors, a vector generated from a macroblock considered to have the highest encoding efficiency is selected and output as a 16 × 16 MPEG4 motion vector.

【0057】符号化効率の判定は、マクロブロック情報
バッファ73に格納された、画像情報変換装置の入力と
なるMPEG2の画像圧縮情報を示すビットストリーム
におけるマクロブロック毎の情報を元に行う。
The coding efficiency is determined based on information for each macroblock in a bit stream stored in the macroblock information buffer 73 and indicating MPEG2 image compression information input to the image information converter.

【0058】すなわち、第一の方法は、4つのマクロブ
ロックのうち、零でないDCT係数の最も少ないマクロ
ブロックを符号化効率が高いものとする方法である。第
二の方法は、4つのマクロブロックのうち、輝度成分の
DCT係数に割り当てられたビット数の最も少ないマク
ロブロックを、符号化効率が高いとする方法である。第
三の方法は、4つのマクロブロックのうち、DCT係数
に割り当てられたビット数の最も少ないマクロブロック
を符号化効率が高いとする方法である。第四の方法は、
4つのマクロブロックのうち、動きベクトル等を含め
た、マクロブロックに割り当てられた全ビット数の最も
少ないマクロブロックを符号化効率が高いとする方法で
ある。第五の方法は、4つのマクロブロックのうち、割
り当てられた量子化スケールが最も小さいマクロブロッ
クを符号化効率が高いとする方法である。第六の方法
は、4つのマクロブロックのうち、コンプレクシティの
最も低いマクロブロックを符号化効率が高いとする方法
である。各マクロブロックに割り当てられたコンプレク
シティXは、そのマクロブロックに割り当てられた量子
化スケールQ、及びビット数Bを用いて、以下の数7の
式のように計算される。
That is, the first method is a method in which the macroblock having the least non-zero DCT coefficient among the four macroblocks has high coding efficiency. The second method is a method in which, out of the four macroblocks, the macroblock having the smallest number of bits allocated to the DCT coefficient of the luminance component has high encoding efficiency. The third method is a method in which, out of the four macroblocks, the macroblock with the smallest number of bits allocated to the DCT coefficient has high coding efficiency. The fourth method is
In this method, among the four macroblocks, the macroblock having the smallest total number of bits, including the motion vector and the like, allocated to the macroblock has high encoding efficiency. The fifth method is a method in which, out of the four macroblocks, a macroblock having the smallest assigned quantization scale has high coding efficiency. The sixth method is a method in which a macroblock having the lowest complexity among the four macroblocks has high coding efficiency. The complexity X assigned to each macroblock is calculated using the quantization scale Q and the number of bits B assigned to the macroblock as in the following equation (7).

【0059】[0059]

【数7】X=Q・BX = Q · B

【0060】この式のビット数Bは、マクロブロック全
体に割り当てられたビット数でも良いし、DCT係数に
割り当てられたビット数でも良いし、輝度成分に割り当
てられたDCT係数に割り当てられたビット数でも良
い。
The number of bits B in this equation may be the number of bits assigned to the entire macroblock, the number of bits assigned to DCT coefficients, or the number of bits assigned to DCT coefficients assigned to luminance components. But it is good.

【0061】一方、画像サイズ調整フラグによる動きベ
クトルへの調整器71より出力された画像サイズに適し
た8×8の動きベクトルは、MPEG2のイントラマク
ロブロックに対する動きベクトル補正器72に入力され
る。そこでMPEG2の画像圧縮情報を示すビットスト
リームにおいては、イントラであったマクロブロックか
ら変換されたブロックの8×8の動きベクトルは、MP
EG4の8×8の動きベクトル→MPEG4の16×1
6の動きベクトル変換装置74によって求められた16
×16の動きベクトルに置きかえられて、補正される。
補正後の8×8の動きベクトルと、MPEG4の8×8
の動きベクトル→MPEG4の16×16の動きベクト
ル変換装置74で求めた16×16の動きベクトルとを
合わせて、MPEG4の動きベクトルとして出力する。
On the other hand, an 8 × 8 motion vector suitable for the image size output from the motion vector adjuster 71 based on the image size adjustment flag is input to a motion vector corrector 72 for an MPEG2 intra macroblock. Therefore, in the bit stream indicating the image compression information of MPEG2, the 8 × 8 motion vector of the block converted from the intra-macro block is expressed by MP
8 × 8 motion vector of EG4 → 16 × 1 of MPEG4
16 obtained by the motion vector converter 74 of FIG.
It is replaced with a × 16 motion vector and corrected.
The corrected 8 × 8 motion vector and the MPEG4 8 × 8
And the 16 × 16 motion vector obtained by the 16 × 16 motion vector converter 74 of MPEG4 are output as a motion vector of MPEG4.

【0062】[0062]

【発明が解決しようとする課題】図7について、詳細構
成を説明した動きベクトル変換装置では、MPEG4の
8×8の動きベクトル→MPEG4の16×16の動き
ベクトル変換装置74において、MPEG2の16×1
6の動きベクトル→MPEG4の8×8の動きベクトル
変換装置70の出力となるMPEG4の8×8の動きベ
クトルの代表値を選択することで、MPEG4の16×
16の動きベクトルが生成されている。
In FIG. 7, the motion vector conversion device of which the detailed configuration has been described is an 8 × 8 motion vector of MPEG4 → a 16 × 16 motion vector conversion device 74 of MPEG4. 1
By selecting a representative value of the MPEG4 8 × 8 motion vector output from the MPEG4 8 × 8 motion vector conversion device 70, the MPEG4 16 × 8
Sixteen motion vectors have been generated.

【0063】しかしながら、MPEG2の動きベクトル
をMPEG4に変換する際に、任意倍率に画枠サイズの
変換を行うが、この画枠サイズの変換の際、動きベクト
ルを変換する手段がないという問題点を有している。
However, when the motion vector of MPEG2 is converted into MPEG4, the image frame size is converted to an arbitrary magnification. However, there is no problem that there is no means for converting the motion vector in the conversion of the image frame size. Have.

【0064】かかる点に鑑み、本発明は、飛び越し走査
のMPEG2の画像情報圧縮情報を示すビットストリー
ムを入力とし、順次走査のMPEG4の画像圧縮情報を
示すビットストリームを出力とする画像情報変換方法の
構成要素である動きベクトル変換方法において、画枠の
変換倍率が水平方向、垂直方向、共に任意倍率であって
も、画像情報変換方法の構成要素であるMPEG4の画
像情報符号化方法における動き検索処理を削減し、符号
化効率を高めることのできるものを提案しようとするも
のである。
In view of the above, the present invention provides an image information conversion method in which a bit stream indicating MPEG2 image information compression information of interlaced scanning is input and a bit stream indicating MPEG4 image compression information of progressive scanning is output. In the motion vector conversion method which is a component, even if the conversion magnification of an image frame is an arbitrary magnification in both the horizontal and vertical directions, the motion search processing in the image information encoding method of MPEG4 which is a component of the image information conversion method And propose a method that can increase the coding efficiency.

【0065】また、本発明は、飛び越し走査のMPEG
2の画像情報圧縮情報を示すビットストリームを入力と
し、順次走査のMPEG4の画像圧縮情報を示すビット
ストリームを出力とする画像情報変換装置の構成要素で
ある動きベクトル変換装置において、画枠の変換倍率が
水平方向、垂直方向、共に任意倍率であっても、画像情
報変換装置の構成要素であるMPEG4の画像情報符号
化装置における動き検索処理を削減し、符号化効率を高
めることのできるものを提案しようとするものである。
The present invention also relates to an interlaced MPEG
In the motion vector conversion device which is a component of the image information conversion device which receives the bit stream indicating the image information compression information of No. 2 as input and outputs the bit stream indicating the compression image data of progressive scanning MPEG4, Proposes a system that can reduce the motion search processing in the MPEG4 image information encoding device, which is a component of the image information conversion device, and increase the encoding efficiency even if the horizontal and vertical directions are both arbitrary magnifications. What you want to do.

【0066】[0066]

【課題を解決するための手段】第1の発明は、飛び越し
走査のMPEG2の画像圧縮情報を示すビットストリー
ムを入力とし、画枠サイズを任意倍率に変換した順次走
査のMPEG4の画像圧縮情報を示すビットストリーム
を出力とする画像情報変換方法における動きベクトル変
換方法において、入力となるMPEG2の画像圧縮情報
を示すビットストリームにおけるMPEG2の16×1
6の動きベクトルを入力とし、MPEG4の8×8の動
きベクトル及びMPEG4の16×16の動きベクトル
を生成する動きベクトル変換方法であって、MPEG2
の16×16の動きベクトルから、空間スケーリング及
び時間軸補正によりMPEG4の8×8の動きベクトル
及びMPEG4の16×16の動きベクトルを生成する
ようにした動きベクトル変換方法である。
According to a first aspect of the present invention, a bit stream indicating MPEG2 image compression information of interlaced scanning is input, and progressive scanning MPEG4 image compression information obtained by converting an image frame size to an arbitrary magnification is shown. In the motion vector conversion method in the image information conversion method in which the bit stream is output, the MPEG2 16 × 1 in the bit stream indicating the input MPEG2 image compression information
6 is a motion vector conversion method for generating an 8 × 8 motion vector of MPEG4 and a 16 × 16 motion vector of MPEG4 by using as input a motion vector of MPEG2.
This is a motion vector conversion method in which an 8 × 8 motion vector of MPEG4 and a 16 × 16 motion vector of MPEG4 are generated from the 16 × 16 motion vector of the above by spatial scaling and time axis correction.

【0067】第2の発明は、飛び越し走査のMPEG2
の画像圧縮情報を示すビットストリームを入力とし、画
枠サイズを任意倍率に変換した順次走査のMPEG4の
画像圧縮情報を示すビットストリームを出力とする画像
情報変換方法において、入力となるMPEG2の画像圧
縮情報を示すビットストリームにおけるMPEG2の1
6×16の動きベクトルを入力とし、MPEG4の8×
8の動きベクトル及びMPEG4の16×16の動きベ
クトルを生成する動きベクトル変換方法であって、MP
EG2の16×16の動きベクトルから、空間スケーリ
ング及び時間軸補正により生成されたMPEG4の8×
8の動きベクトルより、MPEG4の16×16の動き
ベクトルを生成する際に、一つのMPEG4のマクロブ
ロックを構成する4つの8×8のブロックの8×8の動
きベクトルより、最も符号化効率の高いと考えられる8
×8の動きベクトルを選択し、その選択された動きベク
トルをMPEG4の16×16の動きベクトルとするこ
とを特徴とする動きベクトル変換方法。
The second invention is an MPEG2 interlaced scan.
In the image information conversion method of inputting the bit stream indicating the image compression information of the input and outputting the bit stream indicating the image compression information of the progressive scanning MPEG4 in which the image frame size is converted to an arbitrary magnification, the image compression of the input MPEG2 is performed. MPEG2 1 in the bit stream indicating information
A motion vector of 6 × 16 is input and 8 × of MPEG4
8 is a motion vector conversion method for generating a motion vector of 8 and a 16 × 16 motion vector of MPEG4.
8 × of MPEG4 generated by spatial scaling and time axis correction from 16 × 16 motion vector of EG2
When generating a 16 × 16 motion vector of MPEG4 from the 8 motion vectors, the coding efficiency of the encoding efficiency is higher than that of the 8 × 8 motion vectors of four 8 × 8 blocks constituting one MPEG4 macroblock. 8 considered high
A motion vector conversion method characterized by selecting a × 8 motion vector and using the selected motion vector as a 16 × 16 MPEG4 motion vector.

【0068】第3の発明は、飛び越し走査のMPEG2
の画像圧縮情報を示すビットストリームを入力とし、画
枠サイズを任意倍率に変換した順次走査のMPEG4の
画像圧縮情報を示すビットストリームを出力とする画像
情報変換装置における動きベクトル変換装置において、
入力となるMPEG2の画像圧縮情報を示すビットスト
リームにおけるMPEG2の16×16の動きベクトル
を入力とし、MPEG4の8×8の動きベクトル及びM
PEG4の16×16の動きベクトルを生成する動きベ
クトル変換装置であって、空間スケーリング及び時間軸
補正手段を有し、MPEG2の16×16の動きベクト
ルから、空間スケーリング及び時間軸補正手段によっ
て、MPEG4の8×8の動きベクトル及びMPEG4
の16×16の動きベクトルを生成するようにした動き
ベクトル変換装置である。
The third invention relates to interlaced MPEG2
A motion vector conversion device in an image information conversion device, which receives a bit stream indicating image compression information of an input and outputs a bit stream indicating image compression information of progressively scanned MPEG4 obtained by converting an image frame size to an arbitrary magnification,
An MPEG2 16 × 16 motion vector in a bit stream indicating MPEG2 image compression information to be input is input, and an MPEG4 8 × 8 motion vector and M
A motion vector conversion device for generating a 16 × 16 motion vector of PEG4, comprising spatial scaling and time axis correction means, and converting the 16 × 16 motion vector of MPEG2 to a MPEG4 by a spatial scaling and time axis correction means. 8x8 motion vector and MPEG4
This is a motion vector conversion device that generates a 16 × 16 motion vector.

【0069】第4の発明は、飛び越し走査のMPEG2
の画像圧縮情報を示すビットストリームを入力とし、画
枠サイズを任意倍率に変換した順次走査のMPEG4の
画像圧縮情報を示すビットストリームを出力とする画像
情報変換装置において、入力となるMPEG2の画像圧
縮情報を示すビットストリームにおけるMPEG2の1
6×16の動きベクトルを入力とし、MPEG4の8×
8の動きベクトル及びMPEG4の16×16の動きベ
クトルを生成する動きベクトル変換装置であって、空間
スケーリング及び時間軸補正手段と、一つのMPEG4
のマクロブロックを構成する4つの8×8のブロックの
8×8の動きベクトルより、最も符号化効率の高いと考
えられる8×8の動きベクトルを選択する選択手段とを
有し、MPEG2の16×16の動きベクトルから、空
間スケーリング及び時間軸補正手段によって、MPEG
4の8×8の動きベクトル及びMPEG4の16×16
の動きベクトルを生成する際、選択手段によって、選択
された最も符号化効率の高いと考えられる8×8の動き
ベクトルを、MPEG4の16×16の動きベクトルと
するようにした動きベクトル変換装置である。
A fourth aspect of the present invention relates to interlaced MPEG2
In the image information conversion apparatus which receives the bit stream indicating the image compression information of the input and outputs the bit stream indicating the image compression information of the progressive scanning MPEG4 in which the image frame size is converted to an arbitrary magnification, the image compression of the input MPEG2 is performed. MPEG2 1 in the bit stream indicating information
A motion vector of 6 × 16 is input and 8 × of MPEG4
A motion vector conversion device for generating a motion vector of 8 MPEG-8 and a 16 × 16 motion vector of MPEG4, comprising: a spatial scaling and time axis correcting means;
Selecting means for selecting an 8 × 8 motion vector considered to have the highest encoding efficiency from among the 8 × 8 motion vectors of the four 8 × 8 blocks constituting the macro block of MPEG2. From the × 16 motion vectors, the spatial scaling and time axis correction means
4 8 × 8 motion vector and MPEG4 16 × 16
When the motion vector is generated by the motion vector conversion device, the selecting unit selects the 8 × 8 motion vector considered to have the highest encoding efficiency as the 16 × 16 motion vector of MPEG4. is there.

【0070】[0070]

【発明の実施の形態】以下、図面を参照し、本発明の実
施の形態の動きベクトル変換方法及び変換装置の例を説
明する。先ず、図14の概念図を参照して、MPEG2
のビットストリーム中の動きベクトル情報を任意倍率の
画枠のMPEG4の動きベクトルに変換する方法を説明
する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an example of a motion vector conversion method and a conversion apparatus according to an embodiment of the present invention will be described with reference to the drawings. First, referring to the conceptual diagram of FIG.
A method of converting the motion vector information in the bit stream of FIG.

【0071】先ず、MPEG4の8×8の動きベクトル
への変換手法から説明する。図14に示すように、任意
倍率(水平方向にa/b倍、垂直方向にc/d倍)で画
枠サイズを変換するため、黒い塗りつぶしで示されたM
PEG2の画像の範囲はMPEG4の8×8のブロック
の範囲に相当する。この場合、画枠の変換倍率が任意倍
率であるため、MPEG2のマクロブロックの境目に揃
った範囲はMPEG4の8×8のブロックに相当してい
ない。
First, a description will be given of a method of converting MPEG4 into 8 × 8 motion vectors. As shown in FIG. 14, since the image frame size is converted at an arbitrary magnification (a / b times in the horizontal direction and c / d times in the vertical direction), M shown in black is used.
The range of the PEG2 image corresponds to the range of an 8 × 8 block of MPEG4. In this case, since the conversion magnification of the image frame is an arbitrary magnification, the range aligned with the boundary of the MPEG2 macroblock does not correspond to the 8 × 8 block of MPEG4.

【0072】図15の概念図を参照して、動きベクトル
変換手法について説明する。MPEG4のマクロブロッ
クに相当するMPEG2の画像上の範囲を黒い塗りつぶ
しで示す。図15の例においては、MPEG4の8×8
のブロックと重複するMPEG2のマクロブロックはM
B0〜MB15の4分の1の範囲、すなわち、MPEG
4の8×8のブロック0に相当する範囲に重複するMP
EG2のマクロブロックは、MPEG2のマクロブロッ
クMB0、MB1,MB4及びMB5となる。この4つ
のMPEG2のマクロブロックに関して、MPEG2の
ビットストリームに含まれるMPEG2のマクロブロッ
クのマクロブロックモードを抽出する。
The motion vector conversion method will be described with reference to the conceptual diagram of FIG. The range on the MPEG2 image corresponding to the MPEG4 macroblock is indicated by black painting. In the example of FIG. 15, 8 × 8 of MPEG4
The macro block of MPEG2 that overlaps the block of
A range of one-fourth of B0 to MB15, that is, MPEG
MP that overlaps the range corresponding to 8 × 8 block 0 of 4
The EG2 macroblocks are MPEG2 macroblocks MB0, MB1, MB4 and MB5. With respect to the four MPEG2 macroblocks, the macroblock mode of the MPEG2 macroblock included in the MPEG2 bit stream is extracted.

【0073】そして、この重複する4つのマクロブロッ
クのうちスキップと判定されているマクロブロックが含
まれる場合には出力MPEG4の動きベクトルを(0,
0)とする。尚、スキップとは、動きベクトルが(0,
0)であり、DCT(離散コサイン変換)係数ビットが
発生しないことを意味するマクロブロックモードを言
う。
When a macroblock determined to be skipped among the four overlapping macroblocks is included, the motion vector of the output MPEG4 is set to (0,
0). The skip means that the motion vector is (0,
0), which means that no DCT (discrete cosine transform) coefficient bits are generated.

【0074】4つの重複するマクロブロックのうち、ス
キップマクロブロックが存在しなければ、マクロブロッ
クモードがNotCodedであるマクロブロックが含
まれているか否かを判定する。尚、NotCodedと
は、MPEG2のシンタックス(syntax)において、DC
T係数ビットが発生しないマクロブロックのマクロブロ
ックモードを意味する。NotCodedのマクロブロ
ックが複数含まれる場合は、動きベクトルの長さを比較
し、より短い動きベクトルを持つマクロブロックの動き
ベクトルを選択する。これにより出力動きベクトルは、
NotCodedのマクロブロックの動きベクトルから
変換する。
If there is no skipped macroblock among the four overlapping macroblocks, it is determined whether or not a macroblock whose macroblock mode is NotCoded is included. Note that NotCoded is DC2 in the syntax of MPEG2.
A macroblock mode of a macroblock in which no T coefficient bit occurs. When a plurality of NotCoded macroblocks are included, the lengths of the motion vectors are compared, and a motion vector of a macroblock having a shorter motion vector is selected. Thus, the output motion vector is
It is converted from the motion vector of the NotCoded macroblock.

【0075】4つの重複するマクロブロックのうち、ス
キップマクロブロック及びNotCodedのマクロブ
ロックが存在しなければ、マクロブロックモードがNo
MCのマクロブロックが含まれているか否かを判定す
る。尚、NoMCとは、MPEG2のシンタックス(syn
tax)において、動きベクトルが(0,0)であるマクロ
ブロックのマクロブロックモードを意味する。。NoM
Cのマクロブロックが複数含まれる場合は、より符号化
ビット量が少ないマクロブロックの動きベクトルを選択
する。これにより出力MPEG4の動きベクトルは
(0,0)とする。
If the skipped macroblock and the NotCoded macroblock do not exist among the four overlapping macroblocks, the macroblock mode is No.
It is determined whether or not an MC macro block is included. NoMC is the syntax of MPEG2 (syn
tax) means a macroblock mode of a macroblock whose motion vector is (0, 0). . NoM
When a plurality of C macroblocks are included, a motion vector of a macroblock having a smaller amount of coding bits is selected. Thereby, the motion vector of the output MPEG4 is set to (0, 0).

【0076】以上、マクロブロックモードがスキップ、
NotCoded、NoMCの場合の処理を述べたが、
マクロブロックモードによる上述の判定は省いて、それ
ぞれを任意に組み合わせて処理を行っても良い。
As described above, the macroblock mode is skipped,
The processing in the case of NotCoded and NoMC has been described,
The above-described determination in the macroblock mode may be omitted, and the processing may be performed by arbitrarily combining them.

【0077】次に、MPEG4の8×8のブロックに相
当するMPEG2の画像範囲に重複する4つのMPEG
2のマクロブロックに上述のスキップ、NotCode
d、NoMCのマクロブロックモードが含まれない場合
は、符号化ビット量B0、B1、B4及びB5、また符
号化量子化スケールQ0,Q1、Q4及びQ5を抽出す
る。
Next, four MPEG-4 images overlapping an MPEG2 image area corresponding to an 8 × 8 block of MPEG4
Skip to the macro block of No.2, NotCode
If the macroblock mode of d, NoMC is not included, the coding bit amounts B0, B1, B4, and B5 and the coding quantization scales Q0, Q1, Q4, and Q5 are extracted.

【0078】また、MPEG4の8×8のブロックに相
当する範囲に重複する画素数(面積)A0、A1、A4
及びA5を計算する。それぞれのMPEG2のマクロブ
ロックにおいて、次の数8に示す式によって、パラメー
タXを求める。
The number of pixels (area) A0, A1, A4 overlapping the range corresponding to the 8 × 8 block of MPEG4
And A5 are calculated. In each of the MPEG2 macroblocks, the parameter X is obtained by the following equation (8).

【0079】[0079]

【数8】 (Equation 8)

【0080】このパラメータXの値が最も大きいマクロ
ブロックを選択し、このマクロブロックの動きベクトル
をMPEG4の8×8の動きベクトルに変換する。パラ
メータXはMPEG4の8×8のブロックに相当する範
囲に重複する画素数が大きく、マクロブロックの符号化
効率が高く、Q×Bが低い程、値が大きくなる。よっ
て、重複範囲が広く、8×8のブロックに相当する範囲
への寄与率が最も高く、尚且つ動きベクトルの予測精度
が高く、マクロブロックの符号化コンプレキシティQ×
Bが低い場合、重複範囲の中で最も符号化効率の高い動
きベクトルを選択できる。すなわち、パラメータXの値
が最大値となるマクロブロックの動きベクトルを選択
し、これを空間、時間補正することによりMPEG4の
動きベクトルを生成する。
A macroblock having the largest value of the parameter X is selected, and the motion vector of this macroblock is converted into an MPEG4 8 × 8 motion vector. The value of the parameter X increases as the number of pixels overlapping the range corresponding to the 8 × 8 block of MPEG4 increases, the macroblock coding efficiency increases, and Q × B decreases. Therefore, the overlapping range is wide, the contribution rate to the range corresponding to the 8 × 8 block is the highest, the prediction accuracy of the motion vector is high, and the coding complexity Q ×
When B is low, it is possible to select a motion vector with the highest encoding efficiency in the overlapping range. That is, a motion vector of a macroblock in which the value of the parameter X is the maximum value is selected, and this is spatially and temporally corrected to generate an MPEG4 motion vector.

【0081】以下に、図16を参照して、本発明の実施
の形態の動きベクトル変換装置を備える画像情報変換装
置の一例を説明する。MPEG2の復号化装置160
は、MPEG2の符号化画像及び、MPEG2の動きベ
クトル情報及びマクロブロックモード情報を出力する。
MPEG2の動きベクトル及びマクロブロックモードバ
ッファ161は、MPEG2の動きベクトル情報及びマ
クロブロックモード情報を格納する。参照マクロブロッ
ク算出装置167は、MPEG4の8×8のブロック及
び16×16のマクロブロックに相当する画素範囲に重
複するMPEG2のマクロブロックアドレスを算出す
る。合成ベクトル判定装置162は、上述したようにM
PEG4の8×8のブロックに相当する範囲に重複する
マクロブロック中より、一つの動きベクトルを選択す
る。
Hereinafter, an example of an image information conversion device including the motion vector conversion device according to the embodiment of the present invention will be described with reference to FIG. MPEG2 decoding device 160
Outputs MPEG2 encoded images, MPEG2 motion vector information and macroblock mode information.
The MPEG2 motion vector and macroblock mode buffer 161 stores MPEG2 motion vector information and macroblock mode information. The reference macroblock calculation device 167 calculates an MPEG2 macroblock address that overlaps a pixel range corresponding to an MPEG4 8 × 8 block and a 16 × 16 macroblock. As described above, the combined vector determination device 162
One motion vector is selected from macroblocks overlapping a range corresponding to a PEG4 8 × 8 block.

【0082】この選択されたMPEG2の動きベクトル
は、8×8の動きベクトル空間・時間補正装置163に
入力され、この装置163によって、予測モードに基づ
いてMPEG4の動きベクトルに変換される。すなわ
ち、動き補償予測モードがフレーム予測である場合は、
MPEG2の動きベクトルは指定された画枠変換の任意
倍率により縦・横方向に縮小される。MPEG2の動き
ベクトルがフィールド予測であり、参照フィールドが第
一フィールドである場合は、動きベクトルの縦方向成分
のみを2倍に正規化してから、指定された画枠変換の任
意倍率により縦・横方向に縮小される。
The selected MPEG2 motion vector is input to an 8 × 8 motion vector space / time correction device 163, which converts the motion vector into an MPEG4 motion vector based on the prediction mode. That is, when the motion compensation prediction mode is frame prediction,
The motion vector of MPEG2 is reduced in the vertical and horizontal directions by a designated arbitrary scale of image frame conversion. In the case where the motion vector of MPEG2 is field prediction and the reference field is the first field, only the vertical component of the motion vector is normalized to twice, and then the vertical / horizontal conversion is performed at an arbitrary magnification of the specified image frame conversion. Scaled down.

【0083】動き予測モードがフィールド予測であり、
参照フィールドが第二フィールドである場合は、動きベ
クトルはまずフィールド補正のため、縦方向に1ライン
分の補正(片フィールドでは半画素分)を足し合わせ、
次に片フィールド間引きで第一フィールドのみを抽出す
るためため、破棄される参照第二フィールドとその同一
フレーム内の第一フィールドとのフィールド間隔を補正
するために、(a+1)/aを掛け合わせる。この式に
おいてaはそのフィールドと参照第二フィールドとのフ
ィールド間隔を意味する。ただし、画枠サイズの変換が
縦・横2/3のように1/2以上である場合、片フィー
ルド破棄の手法を用いない可能性があるため、フィール
ドの空間・時間(間隔)補正は行わなくても良い。さら
に動きベクトルの縦方向を2倍に正規化し、指定された
画枠変換の任意倍率により縦・横方向に縮小し、MPE
G4の動きベクトルを出力する。
The motion prediction mode is field prediction,
When the reference field is the second field, the motion vector is first added with a correction of one line in the vertical direction (half a pixel in one field) for field correction,
Next, in order to extract only the first field by one-field thinning, multiply (a + 1) / a in order to correct the field interval between the discarded reference second field and the first field in the same frame. . In this expression, a means a field interval between the field and the reference second field. However, when the conversion of the image frame size is 1/2 or more, such as 2/3 in the vertical and horizontal directions, the field / time (interval) correction is performed because there is a possibility that the one-field discarding technique may not be used. You don't have to. Further, the vertical direction of the motion vector is normalized to twice, and reduced in the vertical and horizontal directions by the specified magnification of the image frame conversion.
Output the motion vector of G4.

【0084】空間・時間補正によりスケーリングされた
MPEG4の8×8の動きベクトルは次に8×8の動き
ベクトル再検索装置164に入力され、任意倍率で変換
後のMPEG4の画像において、生成されたMPEG4
の8×8の動きベクトルの周辺で再検索を行う。再検索
の範囲は任意とする。この場合再検索範囲を整数画素に
て±2画素とすると、通常のVM等に規定されているフ
ルサーチ(Full Search)においての±15の動き検索処
理より大幅に検索処理を削減することができる。
The MPEG4 8 × 8 motion vector scaled by the spatial / temporal correction is then input to the 8 × 8 motion vector re-searching device 164, and is generated in the MPEG4 image converted at an arbitrary magnification. MPEG4
Is re-searched around the 8 × 8 motion vector. The range of the re-search is arbitrary. In this case, if the re-search range is ± 2 pixels as an integer pixel, the search processing can be significantly reduced compared to the ± 15 motion search processing in a full search specified in a normal VM or the like. .

【0085】8×8の動きベクトル再検索装置164で
はゼロの動きベクトルにより求められる残差も算出し、
任意の重み付けにより変換された動きベクトルの周辺検
索により求められる残差値と比較する。ゼロ動きベクト
ルの残差成分に重み付けを引いた値が変換された動きベ
クトルより少ない場合は出力MPEG4の動きベクトル
をゼロの動きベクトルとして出力する。これによりMP
EG4のビットストリームでスキップマクロブロックと
判定されるマクロブロックが増加し、符号化効率が高ま
る。尚、MVは、MPEGで規定されるMPEG4の符
号化検証用ベリフィケイションモデル (Verification M
odel) である。
The 8 × 8 motion vector re-searching device 164 also calculates the residual obtained from the zero motion vector.
The motion vector converted by arbitrary weighting is compared with a residual value obtained by a peripheral search. If the value obtained by subtracting the weight from the residual component of the zero motion vector is smaller than the converted motion vector, the output MPEG-4 motion vector is output as a zero motion vector. This allows MP
The number of macroblocks determined to be skipped macroblocks in the EG4 bit stream increases, and the coding efficiency increases. Note that MV is a verification model (Verification M) for encoding verification of MPEG4 defined by MPEG.
odel).

【0086】8×8の動きベクトルと再検索処理により
求められた残差値は8×8→16×16の動きベクトル
選択装置165に入力され、マクロブロックを構成する
4つの8×8のブロックのうち最も予測残差が少ないも
のの動きベクトルを選択し、16×16の動きベクトル
に割り当てる。次に16×16の動きベクトル再検索装
置166において選択された16×16の動きベクトル
の周辺を小範囲で再検索することにより、16×16の
動きベクトルの符号化効率を向上させる。16×16の
動きベクトル再検索装置166においても8×8の動き
ベクトル再検索装置164と同様にゼロ動きベクトルに
より残差成分を算出し、重み付けによりゼロ動きベクト
ルの残差成分が最も少ないと判定した場合、出力16×
16の動きベクトルをゼロ動きベクトルとする。
The 8 × 8 motion vector and the residual value obtained by the re-search processing are input to an 8 × 8 → 16 × 16 motion vector selecting device 165, and four 8 × 8 blocks constituting a macro block The motion vector with the smallest prediction residual among the motion vectors is selected and assigned to a 16 × 16 motion vector. Next, the 16 × 16 motion vector re-search device 166 searches again in the small range around the 16 × 16 motion vector selected, thereby improving the coding efficiency of the 16 × 16 motion vector. Also in the 16 × 16 motion vector re-searching device 166, the residual component is calculated based on the zero motion vector in the same manner as in the 8 × 8 motion vector re-searching device 164, and it is determined that the residual component of the zero motion vector is the smallest by weighting. Output 16x
The 16 motion vectors are assumed to be zero motion vectors.

【0087】これによりMPEG4の8×8及び16×
16の動きベクトルは生成され、任意倍率の画枠変換フ
ィルタ168により任意倍率に画枠変換された画像と共
にMPEG4の符号化装置169に入力され、この装置
169からMPEG4のビットストリームを出力する。
Thus, the MPEG4 8 × 8 and 16 ×
The 16 motion vectors are generated, input to the MPEG4 encoding device 169 together with the image whose image frame has been converted to an arbitrary scale by the image frame conversion filter 168 having an arbitrary scale, and the device 169 outputs an MPEG4 bit stream.

【0088】以下に、図17を参照して、本発明の実施
の形態の動きベクトル変換装置を備える画像情報変換装
置の他の例を説明する。MPEG2復号化装置170に
おいては、MPEG2のビットストリーム情報を復号化
し、MPEG2復号化画像、MPEG2の動きベクトル
情報及びマクロブロックモード情報を出力する。合成ベ
クトル判定装置172は8×8及び16×16の動きベ
クトルに相当する範囲に重複するマクロブロックを判定
し、そのマクロブロックが8×8の動きベクトル選択装
置173、16×16の動きベクトル選択装置177に
それぞれ入力される。8×8の動きベクトルの生成方法
は、図16について説明したのと同様に処理され、16
×16の動きベクトルにおいては、8×8の動きベクト
ル生成と同様にMPEG2のフレームにおけるMPEG
4のVOP(Video Object Plane)中のマクロブロック
に相当する範囲に重複するマクロブロックより動きベク
トルを選択し、空間・時間補正によりMPEG4の16
×16の動きベクトルを生成する。これによりMPEG
4の8×8及び16×16の動きベクトルが生成され、
任意倍率画の枠変換フィルタ1710により任意倍率に
画枠変換された画像と共にMPEG4符号化装置171
1に入力され、MPEG4のビットストリームを出力す
る。
Referring to FIG. 17, another example of the image information conversion apparatus including the motion vector conversion apparatus according to the embodiment of the present invention will be described. The MPEG2 decoding device 170 decodes MPEG2 bit stream information and outputs MPEG2 decoded images, MPEG2 motion vector information, and macroblock mode information. The synthesized vector determination device 172 determines a macroblock overlapping a range corresponding to the 8 × 8 and 16 × 16 motion vectors, and determines whether the macroblock is an 8 × 8 motion vector selection device 173 or a 16 × 16 motion vector selection device. Each is input to the device 177. The method of generating the 8 × 8 motion vector is processed in the same manner as described with reference to FIG.
In the case of the × 16 motion vector, the MPEG2 frame MPEG2
The motion vector is selected from macroblocks overlapping the range corresponding to the macroblock in the VOP (Video Object Plane) of No. 4 and MPEG4 16
Generate a × 16 motion vector. This allows MPEG
4 8 × 8 and 16 × 16 motion vectors are generated,
MPEG4 encoding device 171 together with an image whose image frame has been converted to an arbitrary scale by frame conversion filter 1710 for an arbitrary scale image
1 and outputs an MPEG4 bit stream.

【0089】以上、入力としてMPEG2の画像圧縮情
報を示すビットストリームを、出力としてMPEG4の
画像圧縮情報を示すビットストリームを対象としてきた
が、入力、出力ともこれに限らず、例えばMPEG−1
やH.263などの画像圧縮情報を示すビットストリー
ムでも良い。
As described above, the bit stream indicating the image compression information of MPEG2 as the input and the bit stream indicating the image compression information of MPEG4 as the output have been described. However, the input and output are not limited to this.
And H. A bit stream indicating image compression information such as H.263 may be used.

【0090】[0090]

【発明の効果】以上述べてきた様に、本発明によれば、
飛び越し走査のMPEG2の画像情報圧縮情報を示すビ
ットストリームを入力とし、順次走査のMPEG4の画
像圧縮情報を示すビットストリームを出力とする画像情
報変換方法の構成要素である動きベクトル変換方法にお
いて、画枠の変換倍率が水平方向、垂直方向、共に任意
倍率であっても、MPEG2の動きベクトル情報及びマ
クロブロック情報を利用し、符号化効率の高いMPEG
48×8及び16×16の動きベクトルを選択すること
で、画像情報変換方法の構成要素であるMPEG4の画
像情報符号化方法における動き検索処理を削減し、符号
化効率を高めることのできるるものを得ることができ
る。
As described above, according to the present invention,
In a motion vector conversion method which is a component of an image information conversion method in which a bit stream indicating MPEG2 image information compression information of interlaced scanning is input and a bit stream indicating MPEG4 image compression information of progressive scanning is output, Even if the conversion magnification of the horizontal direction and the vertical direction is arbitrary, the motion vector information and the macroblock information of MPEG2 are used to improve the encoding efficiency of MPEG.
By selecting 48 × 8 and 16 × 16 motion vectors, it is possible to reduce the motion search processing in the MPEG4 image information encoding method, which is a component of the image information conversion method, and increase the encoding efficiency. Can be obtained.

【0091】また、本発明によれば、飛び越し走査のM
PEG2の画像情報圧縮情報を示すビットストリームを
入力とし、順次走査のMPEG4の画像圧縮情報を示す
ビットストリームを出力とする画像情報変換装置の構成
要素である動きベクトル変換装置において、画枠の変換
倍率が水平方向、垂直方向、共に任意倍率であっても、
MPEG2の動きベクトル情報及びマクロブロック情報
を利用し、符号化効率の高いMPEG48×8及び16
×16の動きベクトルを選択することで、画像情報変換
装置の構成要素であるMPEG4の画像情報符号化装置
における動き検索処理を削減し、符号化効率を高めるこ
とのできるるものを得ることができる。
Further, according to the present invention, the interlaced scanning M
In a motion vector converter, which is a component of an image information converter that receives a bit stream indicating PEG 2 image information compression information and outputs a bit stream indicating progressively scanned MPEG 4 image compression information, the image frame conversion magnification Even if the horizontal and vertical directions are both arbitrary magnification,
Using the motion vector information and macroblock information of MPEG2, MPEG48 × 8 and 16
By selecting the × 16 motion vector, it is possible to reduce the motion search processing in the MPEG4 image information encoding device, which is a component of the image information conversion device, and obtain an image information encoding device capable of improving encoding efficiency. .

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

【図1】MPEG2の画像圧縮情報を示すビットストリ
ームからMPEG4の画像情報圧縮装置を示すビットス
トリームへの変換を実現する従来の画像情報変換装置を
示すブロック線図である。
FIG. 1 is a block diagram showing a conventional image information conversion apparatus which realizes conversion from a bit stream indicating MPEG2 image compression information to a bit stream indicating an MPEG4 image information compression apparatus.

【図2】本願の発明者等により先に発明され、提案され
たMPEG2の画像圧縮情報を示すビットストリームか
らMPEG4の画像情報圧縮装置を示すビットストリー
ムへの変換を行う画像情報変換装置を示すブロック線図
である。
FIG. 2 is a block diagram showing an image information conversion apparatus which is invented by the inventors of the present application and converts a bit stream indicating MPEG2 image compression information to a bit stream indicating an MPEG4 image information compression apparatus. FIG.

【図3】MPEG2の画像圧縮情報を示すビットストリ
ーム中の動きベクトルと、MPEG4の画像圧縮情報を
示すビットストリーム中の動きベクトルの相関を示す概
念図である。
FIG. 3 is a conceptual diagram showing a correlation between a motion vector in a bit stream indicating MPEG2 image compression information and a motion vector in a bit stream indicating MPEG4 image compression information.

【図4】図2における解像度・フレームレート変換装置
5の解像度・フレームレート変換の動作原理を示す説明
図である。
FIG. 4 is an explanatory diagram showing an operation principle of resolution / frame rate conversion of the resolution / frame rate conversion device 5 in FIG. 2;

【図5】図2における解像度・フレームレート変換装置
5の画枠サイズ調整フラグに応じた画素の補填或いは除
去の動作原理を示す説明図である。
FIG. 5 is an explanatory diagram showing an operation principle of pixel supplement or removal according to an image frame size adjustment flag of the resolution / frame rate conversion device 5 in FIG. 2;

【図6】図2における動きベクトル変換装置6の動きベ
クトル変換方法を示す説明図である。
FIG. 6 is an explanatory diagram showing a motion vector conversion method of the motion vector conversion device 6 in FIG.

【図7】図2における動きベクトル変換装置6の詳細構
成を示すブロック線図である。
FIG. 7 is a block diagram showing a detailed configuration of a motion vector conversion device 6 in FIG. 2;

【図8】図2におけるMPEG2の16×16の動きベ
クトル→MPEG4の8×8の動きベクトル変換装置8
の動作を示すフローチャートである。
FIG. 8 shows a 16 × 16 motion vector of MPEG2 → 8 × 8 motion vector converter 8 of MPEG4 in FIG.
6 is a flowchart showing the operation of the first embodiment.

【図9】図7におけるMPEG2の16×16の動きベ
クトル→MPEG4の8×8の動きベクトル変換装置7
0でのフレーム構造、フレーム予測の場合の動きベクト
ル変換を示す概念図である。
9 is a 16 × 16 motion vector of MPEG2 → 8 × 8 motion vector converter 7 of MPEG4 in FIG. 7;
It is a conceptual diagram which shows the motion vector conversion in the case of the frame structure at 0, and a frame prediction.

【図10】図9におけるMPEG2の画像圧縮情報を示
すビットストリーム中の半画素精度の動きベクトルの、
MPEG4の8×8の動きベクトルへの変換後の取り扱
いを示す表図である。
10 shows a half-pixel precision motion vector in a bit stream indicating MPEG2 image compression information in FIG. 9;
FIG. 4 is a table showing handling after conversion into MPEG4 8 × 8 motion vectors.

【図11】図9における画像がフレーム構造で第二フィ
ールド予測であるときについての動きベクトル変換を説
明する概念図である。
11 is a conceptual diagram illustrating motion vector conversion when the image in FIG. 9 has a frame structure and is a second field prediction.

【図12】図9における画像がフレーム構造で、第二フ
ィールド予測であるときについての動きベクトル変換を
説明する概念図である。
12 is a conceptual diagram illustrating motion vector conversion when the image in FIG. 9 has a frame structure and is a second field prediction.

【図13】図9における画像がフレーム構造で、第二フ
ィールド予測であるときについての動きベクトルの時間
方向補正を説明する概念図である。
FIG. 13 is a conceptual diagram illustrating time-direction correction of a motion vector when the image in FIG. 9 has a frame structure and is a second field prediction.

【図14】本発明の実施の形態の動きベクトル変換方法
の例におけるMPEG2ストリーム中の動きベクトル情
報を任意倍率の画枠のMPEG4の動きベクトルに変換
する方法を説明する概念図である。
FIG. 14 is a conceptual diagram illustrating a method of converting motion vector information in an MPEG2 stream into an MPEG4 motion vector of an image frame of an arbitrary magnification in the example of the motion vector conversion method according to the embodiment of the present invention.

【図15】本発明の実施の形態の動きベクトル変換方法
の動きベクトル変換手法を説明する概念図である。
FIG. 15 is a conceptual diagram illustrating a motion vector conversion method of a motion vector conversion method according to an embodiment of the present invention.

【図16】本発明の実施の形態の動きベクトル変換装置
を備える画像情報変換装置の一例を示すブロック線図で
ある。
FIG. 16 is a block diagram illustrating an example of an image information conversion device including the motion vector conversion device according to the embodiment of the present invention.

【図17】本発明の実施の形態の動きベクトル変換装置
を備える画像情報変換装置の他の例を示すブロック線図
である。
FIG. 17 is a block diagram illustrating another example of the image information conversion device including the motion vector conversion device according to the embodiment of the present invention.

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

160 MPEG2の復号化装置、161 MPEG2
の動きベクトル及びマクロブロックモードバッファ、1
62 合成ベクトル判定装置、163 8×8のマクロ
ブロックの空間・時間補正装置、164 8×8の動き
ベクトルの再検索装置、165 8×8の動きベクトル
→16×16の動きベクトルの選択装置、166 16
×16の動きベクトルの再検索装置、167 参照マク
ロブロックアドレス算出装置、168 任意倍率画枠変
換フィルタ、169 MPEG4の符号化装置。
160 MPEG2 decoding device, 161 MPEG2
Motion vector and macroblock mode buffer, 1
62 synthetic vector determination device, 1638 × 8 macroblock space / time correction device, 1648 × 8 motion vector re-search device, 1658 × 8 motion vector → 16 × 16 motion vector selection device, 166 16
X16 motion vector re-searching device, 167 reference macroblock address calculating device, 168 arbitrary scale image frame conversion filter, 169 MPEG4 encoding device.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 鈴木 輝彦 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 Fターム(参考) 5C059 KK41 LA07 LB05 LB11 MA00 MA05 MA23 MA31 NN01 NN21 NN28 PP05 PP06 PP07 SS02 SS08 SS11 UA02 5J064 AA02 BA01 BA16 BB03 BB13 BC11 BD02  ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Teruhiko Suzuki 6-35, Kita-Shinagawa, Shinagawa-ku, Tokyo Sony Corporation F-term (reference) 5C059 KK41 LA07 LB05 LB11 MA00 MA05 MA23 MA31 NN01 NN21 NN28 PP05 PP06 PP07 SS02 SS08 SS11 UA02 5J064 AA02 BA01 BA16 BB03 BB13 BC11 BD02

Claims (52)

【特許請求の範囲】[Claims] 【請求項1】 飛び越し走査のMPEG2の画像圧縮情
報を示すビットストリームを入力とし、画枠サイズを任
意倍率に変換した順次走査のMPEG4の画像圧縮情報
を示すビットストリームを出力とする画像情報変換方法
における動きベクトル変換方法において、 入力となるMPEG2の画像圧縮情報を示すビットスト
リームにおけるMPEG2の16×16の動きベクトル
を入力とし、MPEG4の8×8の動きベクトル及びM
PEG4の16×16の動きベクトルを生成する動きベ
クトル変換方法であって、 上記MPEG2の16×16の動きベクトルから、空間
スケーリング及び時間軸補正により上記MPEG4の8
×8の動きベクトル及び上記MPEG4の16×16の
動きベクトルを生成することを特徴とする動きベクトル
変換方法。
1. An image information conversion method, wherein a bit stream indicating MPEG2 image compression information of interlaced scanning is input, and a bit stream indicating progressive scanning MPEG4 image compression information obtained by converting an image frame size to an arbitrary magnification is output. , A 16 × 16 MPEG2 motion vector in a bit stream indicating MPEG2 image compression information to be input is input, and an 8 × 8 motion vector of MPEG4 and M
A motion vector conversion method for generating a 16 × 16 motion vector of PEG4, comprising: converting the 16 × 16 motion vector of MPEG2 into 8
A motion vector conversion method comprising generating a × 8 motion vector and a 16 × 16 MPEG4 motion vector.
【請求項2】 飛び越し走査のMPEG2の画像圧縮情
報を示すビットストリームを入力とし、画枠サイズを任
意倍率に変換した順次走査のMPEG4の画像圧縮情報
を示すビットストリームを出力とする画像情報変換方法
において、 入力となるMPEG2の画像圧縮情報を示すビットスト
リームにおけるMPEG2の16×16の動きベクトル
を入力とし、MPEG4の8×8の動きベクトル及びM
PEG4の16×16の動きベクトルを生成する動きベ
クトル変換方法であって、 上記MPEG2の16×16の動きベクトルから、空間
スケーリング及び時間軸補正により生成された上記MP
EG4の8×8の動きベクトルより、上記MPEG4の
16×16の動きベクトルを生成する際に、一つのMP
EG4のマクロブロックを構成する4つの8×8のブロ
ックの8×8の動きベクトルより、最も符号化効率の高
いと考えられる8×8の動きベクトルを選択し、該選択
された動きベクトルをMPEG4の16×16の動きベ
クトルとすることを特徴とする動きベクトル変換方法。
2. An image information conversion method in which a bit stream indicating MPEG2 image compression information of interlaced scanning is input, and a bit stream indicating progressive scanning MPEG4 image compression information obtained by converting an image frame size to an arbitrary magnification is output. In the above, an MPEG2 16 × 16 motion vector in a bit stream indicating MPEG2 image compression information to be input is input, and an MPEG4 8 × 8 motion vector and M
A motion vector conversion method for generating a 16 × 16 motion vector of PEG4, wherein the MP generated by spatial scaling and time axis correction from the 16 × 16 motion vector of MPEG2.
When generating the above 16 × 16 motion vector of MPEG4 from the 8 × 8 motion vector of EG4, one MP
An 8 × 8 motion vector considered to have the highest encoding efficiency is selected from the 8 × 8 motion vectors of the four 8 × 8 blocks constituting the EG4 macroblock, and the selected motion vector is defined as MPEG4. A motion vector conversion method characterized by using a 16 × 16 motion vector.
【請求項3】 請求項1に記載の動きベクトル変換方法
において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換し、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択し、 該重複するMPEG2のマクロブロックより変換する代
表動きベクトルを選択して、MPEG4の動きベクトル
に変換することを特徴とする動きベクトル変換方法。
3. The motion vector conversion method according to claim 1, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Converting, selecting an MPEG2 macroblock that overlaps a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image, and representing the converted motion from the overlapping MPEG2 macroblock A motion vector conversion method comprising selecting a vector and converting the vector into an MPEG4 motion vector.
【請求項4】 請求項2に記載の動きベクトル変換方法
において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換し、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択し、 該重複するMPEG2のマクロブロックより変換する代
表動きベクトルを選択して、MPEG4の動きベクトル
に変換することを特徴とする動きベクトル変換方法。
4. The motion vector conversion method according to claim 2, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information as the input. Converting, selecting an MPEG2 macroblock that overlaps a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image, and representing the converted motion from the overlapping MPEG2 macroblock A motion vector conversion method comprising selecting a vector and converting the vector into an MPEG4 motion vector.
【請求項5】 請求項3に記載の動きベクトル変換方法
において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換し、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、動きベクトルが(0,0)であり、離散
コサイン変換係数ビットが発生しないことを意味するマ
クロブロックモードであるマクロブロックが含まれる場
合は、上記出力するMPEG4の動きベクトルをゼロの
動きベクトルにすることを特徴とする動きベクトル変換
方法。
5. The motion vector conversion method according to claim 3, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Converting, selecting an MPEG2 macroblock overlapping the pixel range corresponding to the 8 × 8 block and the 16 × 16 macroblock of the output MPEG4 image, and selecting the macroblock mode in the overlapping MPEG2 macroblock. However, if the motion vector is (0, 0) and a macroblock in a macroblock mode meaning that no discrete cosine transform coefficient bit is generated is included, the output MPEG4 motion vector is replaced with a zero motion vector. A motion vector conversion method characterized by:
【請求項6】 請求項4に記載の動きベクトル変換方法
において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換し、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、動きベクトルが(0,0)であり、離散
コサイン変換係数ビットが発生しないことを意味するマ
クロブロックモードであるマクロブロックが含まれる場
合は、上記出力するMPEG4の動きベクトルをゼロの
動きベクトルにすることを特徴とする動きベクトル変換
方法。
6. The motion vector conversion method according to claim 4, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Converting, selecting an MPEG2 macroblock overlapping the pixel range corresponding to the 8 × 8 block and the 16 × 16 macroblock of the output MPEG4 image, and selecting the macroblock mode in the overlapping MPEG2 macroblock. However, if the motion vector is (0, 0) and a macroblock in a macroblock mode meaning that no discrete cosine transform coefficient bit is generated is included, the output MPEG4 motion vector is replaced with a zero motion vector. A motion vector conversion method characterized by:
【請求項7】 請求項3に記載の動きベクトル変換方法
において 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換し、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、離散コサイン変換係数ビットが発生しな
いことを意味するマクロブロックモードであるマクロブ
ロックが含まれる場合は、そのマクロブロックの動きベ
クトルを選択し、画枠サイズ変換倍率に対応したスケー
リングを行うことにより上記MPEG4の動きベクトル
を生成することを特徴とする動きベクトル変換方法。
7. The motion vector conversion method according to claim 3, wherein the image frame size is converted at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information as the input. Then, an MPEG2 macroblock overlapping the pixel range corresponding to the 8 × 8 block and the 16 × 16 macroblock of the output MPEG4 image is selected, and the macroblock mode is set in the overlapping MPEG2 macroblock. If a macroblock in macroblock mode, which means that no discrete cosine transform coefficient bits are generated, is included, the motion vector of the macroblock is selected and scaling corresponding to the image frame size conversion magnification is performed. Generating a motion vector of MPEG4; Vector conversion method.
【請求項8】 請求項4に記載の動きベクトル変換方法
において上記入力となるMPEG2の画像圧縮情報を示
すビットストリーム内の動きベクトル情報及びマクロブ
ロック情報を元に、任意倍率で画枠サイズを変換し、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、離散コサイン変換係数ビットが発生しな
いことを意味するマクロブロックモードであるマクロブ
ロックが含まれる場合は、そのマクロブロックの動きベ
クトルを選択し、画枠サイズ変換倍率に対応したスケー
リングを行うことにより上記MPEG4の動きベクトル
を生成することを特徴とする動きベクトル変換方法。
8. The motion vector conversion method according to claim 4, wherein the image frame size is converted at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Then, an MPEG2 macroblock overlapping the pixel range corresponding to the 8 × 8 block and the 16 × 16 macroblock of the output MPEG4 image is selected, and the macroblock mode is set in the overlapping MPEG2 macroblock. If a macroblock in macroblock mode, which means that no discrete cosine transform coefficient bits are generated, is included, the motion vector of the macroblock is selected and scaling corresponding to the image frame size conversion magnification is performed. Motion characterized by generating a motion vector of MPEG4 Vector conversion method.
【請求項9】 請求項3に記載の動きベクトル変換方法
において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換し、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、動きベクトルが(0,0)であることを
意味するマクロブロックモードのマクロブロックが含ま
れる場合は、上記出力するMPEG4の動きベクトルを
ゼロの動きベクトルにすることを特徴とする動きベクト
ル変換方法。
9. The motion vector conversion method according to claim 3, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information as the input. Converting, selecting an MPEG2 macroblock overlapping the pixel range corresponding to the 8 × 8 block and the 16 × 16 macroblock of the output MPEG4 image, and selecting the macroblock mode in the overlapping MPEG2 macroblock. When a macroblock in a macroblock mode meaning that the motion vector is (0, 0) is included, the output MPEG4 motion vector is set to a zero motion vector. Method.
【請求項10】 請求項4に記載の動きベクトル変換方
法において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換し、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、動きベクトルが(0,0)であることを
意味するマクロブロックモードのマクロブロックが含ま
れる場合は、上記出力するMPEG4の動きベクトルを
ゼロの動きベクトルにすることを特徴とする動きベクト
ル変換方法。
10. The motion vector conversion method according to claim 4, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Converting, selecting an MPEG2 macroblock overlapping the pixel range corresponding to the 8 × 8 block and the 16 × 16 macroblock of the output MPEG4 image, and selecting the macroblock mode in the overlapping MPEG2 macroblock. When a macroblock in a macroblock mode meaning that the motion vector is (0, 0) is included, the output MPEG4 motion vector is set to a zero motion vector. Method.
【請求項11】 請求項3に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)をA、それぞれの
マクロブロックに割り当てられたビット数をB,量子化
スケールをQとしたときの、パラメータXを X=A/(Q・B) のように算出し、 該パラメータXを用いて、その最も大きいマクロブロッ
クを上記代表マクロブロックとし、該マクロブロックの
MPEG2の動きベクトルを選択し、MPEG4の動き
ベクトルに変換することを特徴とする動きベクトル変換
方法。
11. The motion vector conversion method according to claim 3, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
When the number of pixels (area) of the macroblock 2 is A, the number of bits allocated to each macroblock is B, and the quantization scale is Q, the parameter X is expressed as X = A / (Q · B). Using the parameter X as the representative macroblock, selecting an MPEG2 motion vector of the macroblock, and converting the selected motion vector into an MPEG4 motion vector. Method.
【請求項12】 請求項4に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)をA、それぞれの
マクロブロックに割り当てられたビット数をB,量子化
スケールをQとしたときの、パラメータXを X=A/(Q・B) のように算出し、 該パラメータXを用いて、その最も大きいマクロブロッ
クを上記代表マクロブロックとし、該マクロブロックの
MPEG2の動きベクトルを選択し、MPEG4の動き
ベクトルに変換することを特徴とする動きベクトル変換
方法。
12. The motion vector conversion method according to claim 4, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
When the number of pixels (area) of the macroblock 2 is A, the number of bits allocated to each macroblock is B, and the quantization scale is Q, the parameter X is expressed as X = A / (Q · B). Using the parameter X as the representative macroblock, selecting an MPEG2 motion vector of the macroblock, and converting the selected motion vector into an MPEG4 motion vector. Method.
【請求項13】 請求項3に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出し、 該検出された画素数(面積)Aを用いて、その最も大き
いマクロブロックを上記代表マクロブロックとし、該マ
クロブロックのMPEG2の動きベクトルを選択して、
MPEG4の動きベクトルに変換することを特徴とする
動きベクトル変換方法。
13. The motion vector conversion method according to claim 3, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
The number of pixels (area) A of the macroblock 2 is detected, the largest macroblock is used as the representative macroblock using the detected number of pixels (area) A, and the MPEG2 motion vector of the macroblock is calculated. Select
A motion vector conversion method characterized by converting the motion vector into an MPEG4 motion vector.
【請求項14】 請求項4に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出し、 該検出された画素数(面積)Aを用いて、その最も大き
いマクロブロックを上記代表マクロブロックとし、該マ
クロブロックのMPEG2の動きベクトルを選択して、
MPEG4の動きベクトルに変換することを特徴とする
動きベクトル変換方法。
14. The motion vector conversion method according to claim 4, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
The number of pixels (area) A of the macroblock 2 is detected, and the largest macroblock is set as the representative macroblock using the detected number of pixels (area) A, and the MPEG2 motion vector of the macroblock is calculated. Select
A motion vector conversion method characterized by converting the motion vector into an MPEG4 motion vector.
【請求項15】 請求項3に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出し、 それぞれのマクロブロックに割り当てられたビット数B
と、上記検出された画素数(面積)Aとを用いて、パラ
メータXを X=A/B のように算出し、 該パラメータXを用いて、その最も大きいマクロブロッ
クを上記代表マクロブロックとし、該マクロブロックの
MPEG2の動きベクトルを選択して、MPEG4の動
きベクトルに変換することを特徴とする動きベクトル変
換方法。
15. The motion vector conversion method according to claim 3, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
The number of pixels (area) A of the macroblock 2 is detected, and the number of bits B assigned to each macroblock
And the detected number of pixels (area) A, calculate a parameter X as X = A / B, and use the parameter X to set the largest macroblock as the representative macroblock. A motion vector conversion method, wherein an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項16】 請求項4に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出し、 それぞれのマクロブロックに割り当てられたビット数B
と、上記検出された画素数(面積)Aとを用いて、パラ
メータXを X=A/B のように算出し、 該パラメータXを用いて、その最も大きいマクロブロッ
クを上記代表マクロブロックとし、該マクロブロックの
MPEG2の動きベクトルを選択して、MPEG4の動
きベクトルに変換することを特徴とする動きベクトル変
換方法。
16. The motion vector conversion method according to claim 4, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
The number of pixels (area) A of the macroblock 2 is detected, and the number of bits B assigned to each macroblock
And the detected number of pixels (area) A, calculate a parameter X as X = A / B, and use the parameter X to set the largest macroblock as the representative macroblock. A motion vector conversion method, wherein an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項17】 請求項3に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出し、それ
ぞれのマクロブロックに割り当てられた量子化スケール
をQと、上記検出された画素数(面積)Aとを用いて、
パラメータXを X=A/Q のように算出し、 該パラメータXを用いて、その最も大きいマクロブロッ
クを上記代表マクロブロックとし、該マクロブロックの
MPEG2の動きベクトルを選択して、MPEG4の動
きベクトルに変換することを特徴とする動きベクトル変
換方法。
17. The motion vector conversion method according to claim 3, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
2, the number of pixels (area) A of the macroblock is detected, and the quantization scale assigned to each macroblock is Q, and the detected number of pixels (area) A is used as:
A parameter X is calculated as X = A / Q. Using the parameter X, the largest macroblock is set as the representative macroblock, an MPEG2 motion vector of the macroblock is selected, and an MPEG4 motion vector is selected. A motion vector conversion method characterized by converting into a motion vector.
【請求項18】 請求項4に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出し、それ
ぞれのマクロブロックに割り当てられた量子化スケール
をQと、上記検出された画素数(面積)Aとを用いて、
パラメータXを X=A/Q のように算出し、 該パラメータXを用いて、その最も大きいマクロブロッ
クを上記代表マクロブロックとし、該マクロブロックの
MPEG2の動きベクトルを選択して、MPEG4の動
きベクトルに変換することを特徴とする動きベクトル変
換方法。
18. The motion vector conversion method according to claim 4, wherein when obtaining the representative motion vector, the input M
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
2, the number of pixels (area) A of the macroblock is detected, and the quantization scale assigned to each macroblock is Q, and the detected number of pixels (area) A is used as:
A parameter X is calculated as X = A / Q. Using the parameter X, the largest macroblock is set as the representative macroblock, an MPEG2 motion vector of the macroblock is selected, and an MPEG4 motion vector is selected. A motion vector conversion method characterized by converting into a motion vector.
【請求項19】 請求項3に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられたビット数Bを検出
し、量子化スケールをQと、該検出されたビット数Bと
を用いて、パラメータXを X=Q・B のように算出し、 該パラメータXを用いて、その最も少ないマクロブロッ
クを上記代表マクロブロックとし、該マクロブロックの
MPEG2の動きベクトルを選択して、MPEG4の動
きベクトルに変換することを特徴とする動きベクトル変
換方法。
19. The motion vector conversion method according to claim 3, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating PEG2 image compression information, the number of bits B allocated to each macroblock overlapping a pixel range corresponding to an MPEG4 8 × 8 block or a 16 × 16 macroblock is detected and quantized. Using a scale of Q and the detected number of bits B, a parameter X is calculated as X = Q · B. Using the parameter X, the least macroblock is set as the representative macroblock, A motion vector conversion method, wherein an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項20】 請求項4に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられたビット数Bを検出
し、量子化スケールをQと、該検出されたビット数Bと
を用いて、パラメータXを X=Q・B のように算出し、 該パラメータXを用いて、その最も少ないマクロブロッ
クを上記代表マクロブロックとし、該マクロブロックの
MPEG2の動きベクトルを選択して、MPEG4の動
きベクトルに変換することを特徴とする動きベクトル変
換方法。
20. The motion vector conversion method according to claim 4, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating PEG2 image compression information, the number of bits B allocated to each macroblock overlapping a pixel range corresponding to an MPEG4 8 × 8 block or a 16 × 16 macroblock is detected and quantized. Using a scale of Q and the detected number of bits B, a parameter X is calculated as X = Q · B. Using the parameter X, the least macroblock is set as the representative macroblock, A motion vector conversion method, wherein an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項21】 請求項3に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられたビット数Bを検出
し、その最も少ないマクロブロックを代表マクロブロッ
クとして、該マクロブロックのMPEG2の動きベクト
ルを選択し、MPEG4の動きベクトルに変換すること
を特徴とする動きベクトル変換方法。
21. The motion vector conversion method according to claim 3, wherein the M is used as the input when obtaining the representative motion vector.
In the bit stream indicating the PEG2 image compression information, the number of bits B allocated to each macroblock overlapping the pixel range corresponding to the 8 × 8 block or 16 × 16 macroblock of MPEG4 is detected, and A motion vector conversion method characterized by selecting an MPEG2 motion vector of a macroblock as a representative macroblock and converting the selected macroblock into an MPEG4 motion vector.
【請求項22】 請求項4に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられたビット数Bを検出
し、その最も少ないマクロブロックを代表マクロブロッ
クとして、該マクロブロックのMPEG2の動きベクト
ルを選択し、MPEG4の動きベクトルに変換すること
を特徴とする動きベクトル変換方法。
22. The motion vector conversion method according to claim 4, wherein when the representative motion vector is obtained, the input M
In the bit stream indicating the PEG2 image compression information, the number of bits B allocated to each macroblock overlapping the pixel range corresponding to the 8 × 8 block or 16 × 16 macroblock of MPEG4 is detected, and A motion vector conversion method characterized by selecting an MPEG2 motion vector of a macroblock as a representative macroblock and converting the selected macroblock into an MPEG4 motion vector.
【請求項23】 請求項3に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられた量子化スケールQを
検出し、その最も少ないマクロブロックを代表マクロブ
ロックとし、該マクロブロックのMPEG2の動きベク
トルを選択して、MPEG4の動きベクトルに変換する
ことを特徴とする動きベクトル変換方法。
23. The motion vector conversion method according to claim 3, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating PEG2 image compression information, a quantization scale Q assigned to each macroblock overlapping a pixel range corresponding to an 8 × 8 block or 16 × 16 macroblock of MPEG4 is detected. A motion vector conversion method, wherein the least macroblock is a representative macroblock, and an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項24】 請求項4に記載の動きベクトル変換方
法において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられた量子化スケールQを
検出し、その最も少ないマクロブロックを代表マクロブ
ロックとし、該マクロブロックのMPEG2の動きベク
トルを選択して、MPEG4の動きベクトルに変換する
ことを特徴とする動きベクトル変換方法。
24. The motion vector conversion method according to claim 4, wherein when the representative motion vector is obtained, the input M
In a bit stream indicating PEG2 image compression information, a quantization scale Q assigned to each macroblock overlapping a pixel range corresponding to an 8 × 8 block or 16 × 16 macroblock of MPEG4 is detected. A motion vector conversion method, wherein the least macroblock is a representative macroblock, and an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項25】 請求項1に記載の動きベクトル変換方
法において、 動きベクトル補整を兼ね備え、上記入力となるMPEG
2の画像圧縮情報を示すビットストリーム内の動きベク
トル情報及びマクロブロック情報を元に、MPEG2の
動きベクトルより動きベクトル変換により変換されたM
PEG4の動きベクトルを入力とし、該入力動きベクト
ル値により求められた予測残差と、(0,0)のゼロ動
きベクトルとにより求められた予測残差を算出し、 該ゼロ動きベクトルの残差に任意の重み付けを行い、M
PEG2の動きベクトルより変換された動きベクトルよ
り重み付けされた、ゼロ動きベクトルの予測残差がより
少なければ、MPEG4の動きベクトルをゼロ動きベク
トルとして出力し、MPEG4の符号化ストリームに、
動きベクトルが(0,0)であり、離散コサイン変換係
数ビットが発生しないことを意味するマクロブロックモ
ードであるマクロブロックがより多く選ばれるように変
換することを特徴とする動きベクトル変換方法。
25. The motion vector conversion method according to claim 1, further comprising motion vector compensation, wherein the input MPEG signal is used.
Based on the motion vector information and the macroblock information in the bit stream indicating the image compression information of MPEG2, M
A PEG4 motion vector is input, and a prediction residual calculated from the input motion vector value and a zero motion vector of (0,0) are calculated, and the residual of the zero motion vector is calculated. Is given an arbitrary weight, and M
If the prediction residual of the zero motion vector weighted by the motion vector converted from the PEG2 motion vector is smaller, the MPEG4 motion vector is output as the zero motion vector, and the MPEG4 encoded stream is
A motion vector conversion method, wherein a motion vector is (0,0), and a conversion is performed such that macroblocks in a macroblock mode, which means that discrete cosine transform coefficient bits do not occur, are selected more.
【請求項26】 請求項2に記載の動きベクトル変換方
法において、 動きベクトル補整を兼ね備え、上記入力となるMPEG
2の画像圧縮情報を示すビットストリーム内の動きベク
トル情報及びマクロブロック情報を元に、MPEG2の
動きベクトルより動きベクトル変換により変換されたM
PEG4の動きベクトルを入力とし、該入力動きベクト
ル値により求められた予測残差と、(0,0)のゼロ動
きベクトルとにより求められた予測残差を算出し、 該ゼロ動きベクトルの残差に任意の重み付けを行い、M
PEG2の動きベクトルより変換された動きベクトルよ
り重み付けされた、ゼロ動きベクトルの予測残差がより
少なければ、MPEG4の動きベクトルをゼロ動きベク
トルとして出力し、MPEG4の符号化ストリームに、
動きベクトルが(0,0)であり、離散コサイン変換係
数ビットが発生しないことを意味するマクロブロックモ
ードであるマクロブロックがより多く選ばれるように変
換することを特徴とする動きベクトル変換方法。
26. The motion vector conversion method according to claim 2, further comprising a motion vector correction, wherein the input MPEG is used.
Based on the motion vector information and the macroblock information in the bit stream indicating the image compression information of M.2, M is converted from the motion vector of MPEG2 by the motion vector conversion.
A PEG4 motion vector is input, and a prediction residual calculated from the input motion vector value and a zero motion vector of (0,0) are calculated, and the residual of the zero motion vector is calculated. Is given an arbitrary weight, and M
If the prediction residual of the zero motion vector weighted by the motion vector converted from the PEG2 motion vector is smaller, the MPEG4 motion vector is output as the zero motion vector, and the MPEG4 encoded stream is
A motion vector conversion method, wherein a motion vector is (0,0), and a conversion is performed such that macroblocks in a macroblock mode, which means that discrete cosine transform coefficient bits do not occur, are selected more.
【請求項27】 飛び越し走査のMPEG2の画像圧縮
情報を示すビットストリームを入力とし、画枠サイズを
任意倍率に変換した順次走査のMPEG4の画像圧縮情
報を示すビットストリームを出力とする画像情報変換装
置における動きベクトル変換装置において、 入力となるMPEG2の画像圧縮情報を示すビットスト
リームにおけるMPEG2の16×16の動きベクトル
を入力とし、MPEG4の8×8の動きベクトル及びM
PEG4の16×16の動きベクトルを生成する動きベ
クトル変換装置であって、 空間スケーリング及び時間軸補正手段を有し、 上記MPEG2の16×16の動きベクトルから、上記
空間スケーリング及び時間軸補正手段によって、上記M
PEG4の8×8の動きベクトル及び上記MPEG4の
16×16の動きベクトルを生成することを特徴とする
動きベクトル変換装置。
27. An image information conversion apparatus which receives a bit stream indicating MPEG2 image compression information of interlaced scanning as input and outputs a bit stream indicating progressive scanning MPEG4 image compression information obtained by converting an image frame size to an arbitrary magnification. In the motion vector conversion device of the above, a 16 × 16 MPEG2 motion vector in a bit stream indicating MPEG2 image compression information to be input is input, and an 8 × 8 motion vector of MPEG4 and M
A motion vector conversion device for generating a 16 × 16 motion vector of PEG4, comprising spatial scaling and time axis correction means, and converting the 16 × 16 motion vector of MPEG2 by the spatial scaling and time axis correction means. , M above
A motion vector conversion apparatus for generating an 8 × 8 motion vector of PEG4 and a 16 × 16 motion vector of MPEG4.
【請求項28】 飛び越し走査のMPEG2の画像圧縮
情報を示すビットストリームを入力とし、画枠サイズを
任意倍率に変換した順次走査のMPEG4の画像圧縮情
報を示すビットストリームを出力とする画像情報変換装
置において、 入力となるMPEG2の画像圧縮情報を示すビットスト
リームにおけるMPEG2の16×16の動きベクトル
を入力とし、MPEG4の8×8の動きベクトル及びM
PEG4の16×16の動きベクトルを生成する動きベ
クトル変換装置であって、 空間スケーリング及び時間軸補正手段と、 一つのMPEG4のマクロブロックを構成する4つの8
×8のブロックの8×8の動きベクトルより、最も符号
化効率の高いと考えられる8×8の動きベクトルを選択
する選択手段とを有し、 上記MPEG2の16×16の動きベクトルから、上記
空間スケーリング及び時間軸補正手段によって、上記M
PEG4の8×8の動きベクトル及び上記MPEG4の
16×16の動きベクトルを生成する際、上記選択手段
によって、選択された最も符号化効率の高いと考えられ
る8×8の動きベクトルを、MPEG4の16×16の
動きベクトルとすることを特徴とする動きベクトル変換
装置。
28. An image information conversion apparatus which receives a bit stream indicating MPEG2 image compression information of interlaced scanning as input and outputs a bit stream indicating progressive scanning MPEG4 image compression information obtained by converting an image frame size to an arbitrary magnification. In the above, an MPEG2 16 × 16 motion vector in a bit stream indicating input MPEG2 image compression information is input, and an MPEG4 8 × 8 motion vector and M
A motion vector converter for generating a 16 × 16 motion vector of PEG4, comprising spatial scaling and time axis correction means, and four 8 bits constituting one MPEG4 macroblock
Selecting means for selecting an 8 × 8 motion vector which is considered to have the highest encoding efficiency from the 8 × 8 motion vectors of the × 8 block, and from the 16 × 16 motion vector of MPEG2, By means of spatial scaling and time axis correction means, the above M
When generating an 8 × 8 motion vector of PEG4 and a 16 × 16 motion vector of MPEG4, the 8 × 8 motion vector selected by the selection means and considered to have the highest encoding efficiency is converted to an MPEG4 motion vector. A motion vector conversion device, wherein the motion vector is a 16 × 16 motion vector.
【請求項29】 請求項27に記載の動きベクトル変換
装置において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換する画枠サイズ
変換手段と、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択する選択手段
と、 該重複するMPEG2のマクロブロックより変換する代
表動きベクトルを選択して、MPEG4の動きベクトル
に変換する動きベクトル変換手段とを有することを特徴
とする動きベクトル変換装置。
29. The motion vector conversion apparatus according to claim 27, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information as the input. Image frame size converting means for converting; selecting means for selecting an MPEG2 macroblock overlapping a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image; A motion vector conversion unit for selecting a representative motion vector to be converted from an MPEG2 macroblock and converting the selected motion vector into an MPEG4 motion vector.
【請求項30】 請求項28に記載の動きベクトル変換
装置において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換する画枠サイズ
変換手段と、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択する選択手段
と、 該重複するMPEG2のマクロブロックより変換する代
表動きベクトルを選択して、MPEG4の動きベクトル
に変換する動きベクトル変換手段とを有することを特徴
とする動きベクトル変換装置。
30. The motion vector conversion apparatus according to claim 28, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Image frame size converting means for converting; selecting means for selecting an MPEG2 macroblock overlapping a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image; A motion vector conversion unit for selecting a representative motion vector to be converted from an MPEG2 macroblock and converting the selected motion vector into an MPEG4 motion vector.
【請求項31】 請求項29に記載の動きベクトル変換
装置において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換する画枠サイズ
変換手段と、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択する選択手段と
を有し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、動きベクトルが(0,0)であり、離散
コサイン変換係数ビットが発生しないことを意味するマ
クロブロックモードであるマクロブロックが含まれる場
合は、上記出力するMPEG4の動きベクトルをゼロの
動きベクトルにすることを特徴とする動きベクトル変換
装置。
31. The motion vector conversion apparatus according to claim 29, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Image frame size converting means for converting; and selecting means for selecting an MPEG2 macroblock overlapping a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image, When the overlapping MPEG2 macroblock includes a macroblock in a macroblock mode in which the motion vector is (0, 0) and a discrete cosine transform coefficient bit is not generated, The output MPEG4 motion vector may be a zero motion vector. Motion vector conversion unit.
【請求項32】 請求項30に記載の動きベクトル変換
装置において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換する画枠サイズ
変換手段と、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択する選択手段と
を有し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、動きベクトルが(0,0)であり、離散
コサイン変換係数ビットが発生しないことを意味するマ
クロブロックモードであるマクロブロックが含まれる場
合は、上記出力するMPEG4の動きベクトルをゼロの
動きベクトルにすることを特徴とする動きベクトル変換
装置。
32. The motion vector conversion device according to claim 30, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information as the input. Image frame size converting means for converting; and selecting means for selecting an MPEG2 macroblock overlapping a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image, When the overlapping MPEG2 macroblock includes a macroblock in a macroblock mode in which the motion vector is (0, 0) and a discrete cosine transform coefficient bit is not generated, The output MPEG4 motion vector may be a zero motion vector. Motion vector conversion unit.
【請求項33】 請求項29に記載の動きベクトル変換
装置において 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換する画枠サイズ
変換手段と、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択する選択手段と
を有し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、離散コサイン変換係数ビットが発生しな
いことを意味するマクロブロックモードであるマクロブ
ロックが含まれる場合は、そのマクロブロックの動きベ
クトルを選択し、画枠サイズ変換倍率に対応したスケー
リングを行うことにより上記MPEG4の動きベクトル
を生成することを特徴とする動きベクトル変換装置。
33. The motion vector conversion apparatus according to claim 29, wherein the image frame size is converted at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Image frame size converting means, and selecting means for selecting an MPEG2 macroblock overlapping a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image, When the overlapping MPEG2 macroblock includes a macroblock whose macroblock mode is a macroblock mode meaning that no discrete cosine transform coefficient bits are generated, the motion vector of the macroblock is selected and the image frame is selected. By performing scaling corresponding to the size conversion magnification, the MPEG Motion vector conversion unit and generating a motion vector.
【請求項34】 請求項30に記載の動きベクトル変換
装置において上記入力となるMPEG2の画像圧縮情報
を示すビットストリーム内の動きベクトル情報及びマク
ロブロック情報を元に、任意倍率で画枠サイズを変換す
る画枠サイズ変換手段と、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択する選択手段と
を有し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、離散コサイン変換係数ビットが発生しな
いことを意味するマクロブロックモードであるマクロブ
ロックが含まれる場合は、そのマクロブロックの動きベ
クトルを選択し、画枠サイズ変換倍率に対応したスケー
リングを行うことにより上記MPEG4の動きベクトル
を生成することを特徴とする動きベクトル変換装置。
34. The motion vector conversion device according to claim 30, wherein the image frame size is converted at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Image frame size converting means, and selecting means for selecting an MPEG2 macroblock overlapping a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image, When the overlapping MPEG2 macroblock includes a macroblock whose macroblock mode is a macroblock mode meaning that no discrete cosine transform coefficient bit is generated, a motion vector of the macroblock is selected, By performing scaling corresponding to the size conversion magnification, the above MPEG4 A motion vector conversion device for generating a motion vector.
【請求項35】 請求項29に記載の動きベクトル変換
装置において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換する画枠サイズ
変換手段と、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択する選択手段と
を有し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、動きベクトルが(0,0)であることを
意味するマクロブロックモードであるマクロブロックが
含まれる場合は、上記出力するMPEG4の動きベクト
ルをゼロの動きベクトルにすることを特徴とする動きベ
クトル変換装置。
35. The motion vector conversion apparatus according to claim 29, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information as the input. Image frame size converting means for converting; and selecting means for selecting an MPEG2 macroblock overlapping a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image, If the overlapping MPEG2 macroblock includes a macroblock whose macroblock mode is the macroblock mode meaning that the motion vector is (0,0), the output MPEG4 motion vector is set to zero. A motion vector conversion device characterized in that the motion vector is a motion vector.
【請求項36】 請求項30に記載の動きベクトル変換
装置において、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、任意倍率で画枠サイズを変換する画枠サイズ
変換手段と、 上記出力するMPEG4の画像の8×8のブロック及び
16×16のマクロブロックに対応する画素範囲に重複
するMPEG2のマクロブロックを選択する選択手段と
を有し、 該重複するMPEG2のマクロブロック中にマクロブロ
ックモードが、動きベクトルが(0,0)であることを
意味するマクロブロックモードのマクロブロックが含ま
れる場合は、上記出力するMPEG4の動きベクトルを
ゼロの動きベクトルにすることを特徴とする動きベクト
ル変換装置。
36. The motion vector conversion apparatus according to claim 30, wherein the image frame size is set at an arbitrary magnification based on the motion vector information and the macroblock information in the bit stream indicating the MPEG2 image compression information to be input. Image frame size converting means for converting; and selecting means for selecting an MPEG2 macroblock overlapping a pixel range corresponding to an 8 × 8 block and a 16 × 16 macroblock of the output MPEG4 image, When the macroblock mode included in the overlapping MPEG2 macroblocks includes a macroblock in the macroblock mode meaning that the motion vector is (0,0), the output MPEG4 motion vector is set to zero. A motion vector conversion device for converting a motion vector.
【請求項37】 請求項29に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)をA、それぞれの
マクロブロックに割り当てられたビット数をB,量子化
スケールをQとしたときの、パラメータXを X=A/(Q・B) のように算出する算出手段を有し、 該算出手段によって算出されたパラメータXを用いて、
その最も大きいマクロブロックを上記代表マクロブロッ
クとし、該マクロブロックのMPEG2の動きベクトル
を選択し、MPEG4の動きベクトルに変換することを
特徴とする動きベクトル変換装置。
37. The motion vector conversion device according to claim 29, wherein the M is used as the input when the representative motion vector is obtained.
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
When the number of pixels (area) of the macroblock 2 is A, the number of bits allocated to each macroblock is B, and the quantization scale is Q, the parameter X is expressed as X = A / (Q · B). Using a parameter X calculated by the calculating means,
A motion vector conversion apparatus, wherein the largest macroblock is the representative macroblock, an MPEG2 motion vector of the macroblock is selected, and the selected macroblock is converted into an MPEG4 motion vector.
【請求項38】 請求項30に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)をA、それぞれの
マクロブロックに割り当てられたビット数をB,量子化
スケールをQとしたときの、パラメータXを X=A/(Q・B) のように算出する算出手段を有し、 該算出手段によって算出されたパラメータXを用いて、
その最も大きいマクロブロックを上記代表マクロブロッ
クとし、該マクロブロックのMPEG2の動きベクトル
を選択し、MPEG4の動きベクトルに変換することを
特徴とする動きベクトル変換装置。
38. The motion vector conversion apparatus according to claim 30, wherein the M is used as the input when the representative motion vector is obtained.
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
When the number of pixels (area) of the macroblock 2 is A, the number of bits allocated to each macroblock is B, and the quantization scale is Q, the parameter X is expressed as X = A / (Q · B). Using a parameter X calculated by the calculating means,
A motion vector conversion apparatus, wherein the largest macroblock is the representative macroblock, an MPEG2 motion vector of the macroblock is selected, and the selected macroblock is converted into an MPEG4 motion vector.
【請求項39】 請求項29に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出する検出
手段を有し、 該検出手段によって検出された画素数(面積)Aを用い
て、その最も大きいマクロブロックを上記代表マクロブ
ロックとし、該マクロブロックのMPEG2の動きベク
トルを選択して、MPEG4の動きベクトルに変換する
ことを特徴とする動きベクトル変換装置。
39. The motion vector conversion device according to claim 29, wherein the M is used as the input when obtaining the representative motion vector.
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
And a detecting means for detecting the number of pixels (area) A of the two macroblocks. Using the number of pixels (area) A detected by the detecting means, the largest macroblock is set as the representative macroblock. A motion vector conversion apparatus for selecting an MPEG2 motion vector of a macroblock and converting the selected motion vector into an MPEG4 motion vector.
【請求項40】 請求項30に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出する検出
手段を有し、 該検出手段によって検出された画素数(面積)Aを用い
て、その最も大きいマクロブロックを上記代表マクロブ
ロックとし、該マクロブロックのMPEG2の動きベク
トルを選択して、MPEG4の動きベクトルに変換する
ことを特徴とする動きベクトル変換装置。
40. The motion vector conversion device according to claim 30, wherein the M is used as the input when the representative motion vector is obtained.
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
And a detecting means for detecting the number of pixels (area) A of the two macroblocks. Using the number of pixels (area) A detected by the detecting means, the largest macroblock is set as the representative macroblock. A motion vector conversion apparatus for selecting an MPEG2 motion vector of a macroblock and converting the selected motion vector into an MPEG4 motion vector.
【請求項41】 請求項29に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出する検出
手段と、 それぞれのマクロブロックに割り当てられたビット数B
と、上記検出手段によって検出された画素数(面積)A
とを用いて、パラメータXを X=A/B のように算出する算出手段とを有し、 該算出手段によって算出されたパラメータXを用いて、
その最も大きいマクロブロックを上記代表マクロブロッ
クとし、該マクロブロックのMPEG2の動きベクトル
を選択して、MPEG4の動きベクトルに変換すること
を特徴とする動きベクトル変換装置。
41. The motion vector conversion device according to claim 29, wherein the M is used as the input when obtaining the representative motion vector.
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
Detecting means for detecting the number of pixels (area) A of two macro blocks, and the number of bits B assigned to each macro block
And the number of pixels (area) A detected by the detection means
And a calculating means for calculating the parameter X as X = A / B using the parameter X, and using the parameter X calculated by the calculating means,
A motion vector conversion apparatus characterized in that the largest macroblock is the representative macroblock, and an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項42】 請求項30に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出する検出
手段と、 それぞれのマクロブロックに割り当てられたビット数B
と、上記検出手段によって検出された画素数(面積)A
とを用いて、パラメータXを X=A/B のように算出する算出手段とを有し、 該算出手段によって算出されたパラメータXを用いて、
その最も大きいマクロブロックを上記代表マクロブロッ
クとし、該マクロブロックのMPEG2の動きベクトル
を選択して、MPEG4の動きベクトルに変換すること
を特徴とする動きベクトル変換装置。
42. The motion vector conversion device according to claim 30, wherein the M is used as the input when the representative motion vector is obtained.
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
Detecting means for detecting the number of pixels (area) A of two macro blocks, and the number of bits B assigned to each macro block
And the number of pixels (area) A detected by the detection means
And calculating means for calculating the parameter X as X = A / B by using the parameter X, and using the parameter X calculated by the calculating means
A motion vector conversion apparatus characterized in that the largest macroblock is the representative macroblock, and an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項43】 請求項29に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出する検出
手段と、 それぞれのマクロブロックに割り当てられた量子化スケ
ールQと、上記検出手段によって検出された画素数(面
積)Aとを用いて、パラメータXを X=A/Q のように算出する算出手段とを有し、 該算出手段によって算出されたパラメータXを用いて、
その最も大きいマクロブロックを上記代表マクロブロッ
クとし、該マクロブロックのMPEG2の動きベクトル
を選択して、MPEG4の動きベクトルに変換すること
を特徴とする動きベクトル変換装置。
43. The motion vector conversion apparatus according to claim 29, wherein the M is used as the input when obtaining the representative motion vector.
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
A detecting means for detecting the number of pixels (area) A of the two macroblocks; a quantization scale Q assigned to each macroblock; and the number of pixels (area) A detected by the detecting means. Calculating means for calculating the parameter X as X = A / Q, and using the parameter X calculated by the calculating means,
A motion vector conversion apparatus characterized in that the largest macroblock is the representative macroblock, and an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項44】 請求項30に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するMPEG
2のマクロブロックの画素数(面積)Aを検出する検出
手段と、 それぞれのマクロブロックに割り当てられた量子化スケ
ールQと、上記検出手段によって検出された画素数(面
積)Aとを用いて、パラメータXを X=A/Q のように算出する算出手段とを有し、 該算出手段によって算出されたパラメータXを用いて、
その最も大きいマクロブロックを上記代表マクロブロッ
クとし、該マクロブロックのMPEG2の動きベクトル
を選択して、MPEG4の動きベクトルに変換すること
を特徴とする動きベクトル変換装置。
44. The motion vector conversion device according to claim 30, wherein the input M is used when obtaining the representative motion vector.
In a bit stream indicating image compression information of PEG2, MPEG overlapping with a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4
A detecting means for detecting the number of pixels (area) A of the two macroblocks; a quantization scale Q assigned to each macroblock; and the number of pixels (area) A detected by the detecting means. Calculating means for calculating the parameter X as X = A / Q, and using the parameter X calculated by the calculating means,
A motion vector conversion apparatus characterized in that the largest macroblock is the representative macroblock, and an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項45】 請求項29に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられたビット数Bを検出す
る検出手段と、 該検出手段によって検出されたビット数Bと、量子化ス
ケールQとを利用して、パラメータXを X=Q・B のように算出する算出手段とを有し、 該算出手段によって算出されたパラメータXを用いて、
その最も少ないマクロブロックを上記代表マクロブロッ
クとし、該マクロブロックのMPEG2の動きベクトル
を選択して、MPEG4の動きベクトルに変換すること
を特徴とする動きベクトル変換装置。
45. The motion vector conversion apparatus according to claim 29, wherein the M is used as the input when the representative motion vector is obtained.
Detecting means for detecting a bit number B allocated to each macroblock overlapping a pixel range corresponding to an MPEG4 8 × 8 block or a 16 × 16 macroblock in a bit stream indicating PEG2 image compression information; And calculating means for calculating the parameter X as X = Q · B using the number of bits B detected by the detecting means and the quantization scale Q. Using the parameter X,
A motion vector conversion apparatus characterized in that the least macroblock is the representative macroblock, an MPEG2 motion vector of the macroblock is selected, and the selected macroblock is converted into an MPEG4 motion vector.
【請求項46】 請求項30に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられたビット数Bを検出す
る検出手段と、 該検出手段によって検出されたビット数Bと、量子化ス
ケールQとを利用して、パラメータXを X=Q・B のように算出する算出手段とを有し、 該算出手段によって算出されたパラメータXを用いて、
その最も少ないマクロブロックを上記代表マクロブロッ
クとし、該マクロブロックのMPEG2の動きベクトル
を選択して、MPEG4の動きベクトルに変換すること
を特徴とする動きベクトル変換装置。
46. The motion vector conversion device according to claim 30, wherein the M is used as the input when obtaining the representative motion vector.
Detecting means for detecting a bit number B allocated to each macroblock overlapping a pixel range corresponding to an MPEG4 8 × 8 block or a 16 × 16 macroblock in a bit stream indicating PEG2 image compression information; And calculating means for calculating the parameter X as X = Q · B using the number of bits B detected by the detecting means and the quantization scale Q. Using the parameter X,
A motion vector conversion apparatus characterized in that the least macroblock is the representative macroblock, an MPEG2 motion vector of the macroblock is selected, and the selected macroblock is converted into an MPEG4 motion vector.
【請求項47】 請求項29に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられたビット数Bを検出す
る検出手段を有し、 その最も少ないマクロブロックを代表マクロブロックと
して、該マクロブロックのMPEG2の動きベクトルを
選択し、MPEG4の動きベクトルに変換することを特
徴とする動きベクトル変換装置。
47. The motion vector conversion device according to claim 29, wherein the M is used as the input when obtaining the representative motion vector.
In a bit stream indicating PEG2 image compression information, a detecting means for detecting the number of bits B allocated to each macroblock overlapping a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4 A motion vector conversion apparatus comprising: selecting an MPEG2 motion vector of the macroblock as a representative macroblock, and converting the selected macroblock into an MPEG4 motion vector.
【請求項48】 請求項30に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられたビット数Bを検出す
る検出手段を有し、 その最も少ないマクロブロックを代表マクロブロックと
して、該マクロブロックのMPEG2の動きベクトルを
選択し、MPEG4の動きベクトルに変換することを特
徴とする動きベクトル変換装置。
48. The motion vector conversion device according to claim 30, wherein the M is used as the input when obtaining the representative motion vector.
In a bit stream indicating PEG2 image compression information, a detecting means for detecting the number of bits B allocated to each macroblock overlapping a pixel range corresponding to an 8 × 8 block or a 16 × 16 macroblock of MPEG4 A motion vector conversion apparatus comprising: selecting an MPEG2 motion vector of the macroblock as a representative macroblock, and converting the selected macroblock into an MPEG4 motion vector.
【請求項49】 請求項29に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられた量子化スケールQを
検出する検出手段を有し、 その最も少ないマクロブロックを代表マクロブロックと
し、該マクロブロックのMPEG2の動きベクトルを選
択して、MPEG4の動きベクトルに変換することを特
徴とする動きベクトル変換装置。
49. The motion vector conversion device according to claim 29, wherein the M is used as the input when obtaining the representative motion vector.
Detecting means for detecting a quantization scale Q assigned to each macroblock overlapping a pixel range corresponding to an MPEG4 8 × 8 block or a 16 × 16 macroblock in a bit stream indicating PEG2 image compression information. A motion vector conversion apparatus, wherein the least macroblock is set as a representative macroblock, and an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項50】 請求項30に記載の動きベクトル変換
装置において、 上記代表動きベクトルを求める際に、上記入力となるM
PEG2の画像圧縮情報を示すビットストリームにおい
て、MPEG4の8×8のブロックまたは16×16の
マクロブロックに対応する画素範囲に重複するそれぞれ
のマクロブロックに割り当てられた量子化スケールQを
検出する検出手段を有し、 その最も少ないマクロブロックを代表マクロブロックと
し、該マクロブロックのMPEG2の動きベクトルを選
択して、MPEG4の動きベクトルに変換することを特
徴とする動きベクトル変換装置。
50. The motion vector conversion device according to claim 30, wherein the input is M when obtaining the representative motion vector.
Detecting means for detecting a quantization scale Q assigned to each macroblock overlapping a pixel range corresponding to an MPEG4 8 × 8 block or a 16 × 16 macroblock in a bit stream indicating PEG2 image compression information. A motion vector conversion apparatus, wherein the least macroblock is set as a representative macroblock, and an MPEG2 motion vector of the macroblock is selected and converted to an MPEG4 motion vector.
【請求項51】 請求項27に記載の動きベクトル変換
装置において、 動きベクトル補整手段を兼ね備え、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、MPEG2の動きベクトルより動きベクトル
変換により変換されたMPEG4の動きベクトルを入力
とし、該入力動きベクトル値により求められた予測残差
と、(0,0)のゼロ動きベクトルとにより求められた
予測残差を算出する算出手段を有し、 該算出手段によって算出されたゼロ動きベクトルの残差
に任意の重み付けを行い、MPEG2の動きベクトルよ
り変換された動きベクトルより重み付けされた、ゼロ動
きベクトルの予測残差がより少なければ、MPEG4の
動きベクトルをゼロ動きベクトルとして出力し、MPE
G4の符号化ストリームに、動きベクトルが(0,0)
であり、離散コサイン変換係数ビットが発生しないこと
を意味するマクロブロックモードであるマクロブロック
がより多く選ばれるように変換することを特徴とする動
きベクトル変換装置。
51. The motion vector converting apparatus according to claim 27, further comprising a motion vector compensating means, based on motion vector information and macro block information in a bit stream indicating MPEG2 image compression information to be input. The motion vector of MPEG4 converted from the motion vector of MPEG2 by the motion vector conversion is input, and the prediction residual obtained by the input motion vector value and the prediction residual obtained by the zero motion vector of (0,0). Prediction means for calculating a difference, performing arbitrary weighting on the residual of the zero motion vector calculated by the calculation means, and weighting the motion vector converted from the motion vector of MPEG2. If the residual is smaller, use the MPEG4 motion vector as the zero motion vector Output, MPE
The motion vector is (0,0) in the G4 encoded stream.
A motion vector conversion apparatus that performs conversion so that macroblocks in a macroblock mode, which means that discrete cosine transform coefficient bits do not occur, are selected more.
【請求項52】 請求項28に記載の動きベクトル変換
装置において、 動きベクトル補整手段を兼ね備え、 上記入力となるMPEG2の画像圧縮情報を示すビット
ストリーム内の動きベクトル情報及びマクロブロック情
報を元に、MPEG2の動きベクトルより動きベクトル
変換により変換されたMPEG4の動きベクトルを入力
とし、該入力動きベクトル値により求められた予測残差
と、(0,0)のゼロ動きベクトルとにより求められた
予測残差を算出する算出手段を有し、 該算出手段によって算出されたゼロ動きベクトルの残差
に任意の重み付けを行い、MPEG2の動きベクトルよ
り変換された動きベクトルより重み付けされた、ゼロ動
きベクトルの予測残差がより少なければ、MPEG4の
動きベクトルをゼロ動きベクトルとして出力し、MPE
G4の符号化ストリームに、動きベクトルが(0,0)
であり、離散コサイン変換係数ビットが発生しないこと
を意味するマクロブロックモードであるマクロブロック
がより多く選ばれるように変換することを特徴とする動
きベクトル変換装置。
52. The motion vector converting apparatus according to claim 28, further comprising a motion vector compensating means, based on motion vector information and macroblock information in a bit stream indicating MPEG2 image compression information to be input. The motion vector of MPEG4 converted from the motion vector of MPEG2 by the motion vector conversion is input, and the prediction residual obtained by the input motion vector value and the prediction residual obtained by the zero motion vector of (0,0). Prediction means for calculating a difference, arbitrarily weighting the residual of the zero motion vector calculated by the calculation means, and weighting the motion vector converted from the MPEG2 motion vector. If the residual is smaller, use the MPEG4 motion vector as the zero motion vector Output, MPE
The motion vector is (0,0) in the G4 encoded stream.
A motion vector conversion apparatus that performs conversion so that macroblocks in a macroblock mode, which means that no discrete cosine transform coefficient bits are generated, are selected more.
JP2000398519A 2000-12-27 2000-12-27 Method and device for transforming moving vector Pending JP2002199399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000398519A JP2002199399A (en) 2000-12-27 2000-12-27 Method and device for transforming moving vector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000398519A JP2002199399A (en) 2000-12-27 2000-12-27 Method and device for transforming moving vector

Publications (1)

Publication Number Publication Date
JP2002199399A true JP2002199399A (en) 2002-07-12

Family

ID=18863472

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000398519A Pending JP2002199399A (en) 2000-12-27 2000-12-27 Method and device for transforming moving vector

Country Status (1)

Country Link
JP (1) JP2002199399A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006109418A (en) * 2004-10-02 2006-04-20 Samsung Electronics Co Ltd Methods and transcoders that estimate output macroblock and motion vector for transcoding
JP2009527977A (en) * 2006-02-22 2009-07-30 サムスン エレクトロニクス カンパニー リミテッド Method and apparatus for encoding / decoding interlaced video signal using lower layer information of mismatched type
JPWO2014034480A1 (en) * 2012-09-03 2016-08-08 ソニー株式会社 Image processing apparatus and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006109418A (en) * 2004-10-02 2006-04-20 Samsung Electronics Co Ltd Methods and transcoders that estimate output macroblock and motion vector for transcoding
JP2009527977A (en) * 2006-02-22 2009-07-30 サムスン エレクトロニクス カンパニー リミテッド Method and apparatus for encoding / decoding interlaced video signal using lower layer information of mismatched type
JPWO2014034480A1 (en) * 2012-09-03 2016-08-08 ソニー株式会社 Image processing apparatus and method
JP2016213875A (en) * 2012-09-03 2016-12-15 ソニー株式会社 Image processing device and method
US10349076B2 (en) 2012-09-03 2019-07-09 Sony Corporation Image processing device and method
US10616598B2 (en) 2012-09-03 2020-04-07 Sony Corporation Image processing device and method

Similar Documents

Publication Publication Date Title
RU2251820C2 (en) Extrapolation of movement vector for video sequence code conversion
JP4682410B2 (en) Image processing apparatus and image processing method
KR100476486B1 (en) Resolution conversion method and device, and decoder for resolution conversion
JP4378824B2 (en) Image processing apparatus and method
JPH08251583A (en) Image encoding device and image decoding device
JP2001204026A (en) Image information converter and method
JP2001145113A (en) Device and method for image information conversion
KR100945826B1 (en) Image information decoding method and decoder
JP2001285863A (en) Device and method for converting image information
JP3649370B2 (en) Motion compensation coding apparatus and motion compensation coding method
JP4360093B2 (en) Image processing apparatus and encoding apparatus and methods thereof
JP4622077B2 (en) Image processing apparatus and image processing method
JP4580880B2 (en) Image encoding apparatus, image decoding apparatus, and image processing system
JP2003348596A (en) Image processor and image processing method, recording medium, and program
JP2002199399A (en) Method and device for transforming moving vector
JPH1169362A (en) Encoding and decoding method for moving image
JP2002010267A (en) Motion vector conversion apparatus and its method
JP2003348595A (en) Image processor and image processing method, recording medium and program
JP3115866B2 (en) Image encoding device and image decoding device
JP4529295B2 (en) Motion vector conversion method and conversion device
JP2002044669A (en) Apparatus and method for conversion of image information
JP4556286B2 (en) Motion vector conversion apparatus and method
JP4779207B2 (en) Motion vector conversion apparatus and motion vector conversion method
JP2006054760A (en) Image processor and image processing method
JP3480461B2 (en) Digital image signal processing apparatus and processing method