JP2003153271A - Moving picture encoding sequence conversion apparatus and method, and its program - Google Patents

Moving picture encoding sequence conversion apparatus and method, and its program

Info

Publication number
JP2003153271A
JP2003153271A JP2001343400A JP2001343400A JP2003153271A JP 2003153271 A JP2003153271 A JP 2003153271A JP 2001343400 A JP2001343400 A JP 2001343400A JP 2001343400 A JP2001343400 A JP 2001343400A JP 2003153271 A JP2003153271 A JP 2003153271A
Authority
JP
Japan
Prior art keywords
block
encoding
motion vector
moving picture
moving image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2001343400A
Other languages
Japanese (ja)
Inventor
Takahiro Kimoto
崇博 木本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2001343400A priority Critical patent/JP2003153271A/en
Publication of JP2003153271A publication Critical patent/JP2003153271A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/004Predictors, e.g. intraframe, interframe coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a moving picture encoding sequence conversion apparatus and method, and its program that can reduce a processing quantity at re- encoding without deteriorating an encoding efficiency by predicting a motion vector at motion compensation prediction in the case of re-encoding a moving picture encoding sequence depending on applications. SOLUTION: A moving picture decoding section 100 receives a pixel coefficient code 1001 and a motion vector code 1002 to generate a decoded image 1004, calculates complexity of a coefficient distribution (encoding complexity information 1006) from the pixel coefficient code 1001 and outputs a motion vector 1003 used in decoding. A motion vector prediction section 108 references the encoding complexity information 1006 to generate a prediction vector 1005 in re-encoding. A moving picture encoding section 110 references the motion vector 1005 to re-encode a decoded image 1008 down-sampled by a resolution conversion section 109.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、動画像符号列変換
装置、動画像符号列変換方法、およびそのプログラムに
関し、特に、動画像符号列を使用用途に応じて再符号化
し、再符号化時の処理量を低減するための動きベクトル
予測を行う動画像符号列変換装置、動画像符号列変換方
法、およびそのプログラムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture code sequence conversion apparatus, a moving picture code sequence conversion method, and a program thereof, and more particularly, to re-encoding a moving picture code sequence according to the intended use and re-encoding. The present invention relates to a moving image code sequence conversion device, a moving image code sequence conversion method, and a program thereof that perform motion vector prediction to reduce the processing amount of.

【0002】[0002]

【従来の技術】高品位に符号化された動画像符号列をよ
り劣悪な伝送環境で利用する場合、MPEGに代表され
る動画像符号化方法に従った符号列を用途に応じて変換
する必要がある。さらに符号化方法自体を変換するに
は、符号列を一旦画像に復号した後再符号化するという
手段がとられる。この際、双方の符号化手法が動き補償
予測を伴う場合には、元の符号列に含まれる動きベクト
ルから再符号化時の動き補償予測に用いられる動きベク
トルを推定することで、処理量を削減するという方法が
とられる。また、広帯域用の符号列を狭帯域用に変換す
る際、画像の解像度を変換する方法が通常とられる。再
符号化時の動きベクトル推定においても解像度変換を考
慮する必要がある。
2. Description of the Related Art When a moving picture code string encoded with high quality is used in a worse transmission environment, it is necessary to convert the code string according to a moving picture coding method represented by MPEG according to the application. There is. Further, in order to convert the encoding method itself, a means of once decoding the code string into an image and then re-encoding it is used. At this time, when both coding methods involve motion-compensated prediction, the processing amount is estimated by estimating the motion vector used for motion-compensated prediction during re-encoding from the motion vector included in the original code string. The method of reduction is taken. Further, when converting a wideband code string to a narrowband, a method of converting the resolution of an image is usually used. It is necessary to consider resolution conversion also in motion vector estimation during re-encoding.

【0003】図9は、特開2000−59789号公報
が開示するところの動画像符号列変換装置及びその方法
(以下、従来例1)における再符号化時に解像度変換を
伴う動画像符号列変換を行う装置の構成を本発明に則し
て変形した図である。以下、図9を用いて、動画像符号
化変換方法について説明を行う。
FIG. 9 shows a moving picture code string conversion that involves resolution conversion at the time of re-encoding in the moving picture code string converting apparatus and method (hereinafter referred to as conventional example 1) disclosed in Japanese Patent Laid-Open No. 2000-59789. It is the figure which changed the structure of the apparatus to perform according to this invention. Hereinafter, the moving image coding conversion method will be described with reference to FIG.

【0004】符号列のうち画素係数符号1001と動き
ベクトル符号1002とがそれぞれ復号された後、係数
符号は、逆量子化および逆変換符号化される。また動き
補償部105は、復号された動きベクトル1003に従
ってフレームメモリ106に格納された参照画像に対し
て動き補償処理を行う。逆変換符号化の結果と動き補償
の結果は、加算器107によって加算され、復号画像1
004が得られる。復号画像1004は解像度変換部1
09によってダウンサンプルされる。
After the pixel coefficient code 1001 and the motion vector code 1002 of the code string are decoded, the coefficient code is inverse-quantized and inverse-transform coded. The motion compensation unit 105 also performs motion compensation processing on the reference image stored in the frame memory 106 according to the decoded motion vector 1003. The result of the inverse transform coding and the result of the motion compensation are added by the adder 107 to obtain the decoded image 1
004 is obtained. The decoded image 1004 is the resolution conversion unit 1
09 downsampled.

【0005】再符号化に伴い、動きベクトル予測部10
8は、動きベクトル1003および解像度変換率100
7に従って予測ベクトル1005を算出する。動き探索
部111は、解像度変換された復号画像1008、フレ
ームメモリ112に格納された参照画像、および予測ベ
クトル1005を参照して動きベクトル1011を算出
する。動き補償部113は、動きベクトル1011、お
よびフレームメモリ112に格納された参照画像を用い
て動き補償を行い、予測画像1012を生成する。差分
器114は、解像度変換された復号画像1008と予測
画像1012との差分をとり、差分画像を生成する。減
算器(差分器)114により得られた差分画像は、変換
符号化および量子化の後、可変長符号化されて画素係数
符号1009となる。
With the re-encoding, the motion vector predictor 10
8 is the motion vector 1003 and the resolution conversion rate 100.
According to 7, the prediction vector 1005 is calculated. The motion search unit 111 calculates a motion vector 1011 by referring to the decoded image 1008 whose resolution has been converted, the reference image stored in the frame memory 112, and the prediction vector 1005. The motion compensation unit 113 performs motion compensation using the motion vector 1011 and the reference image stored in the frame memory 112 to generate a predicted image 1012. The subtractor 114 takes the difference between the decoded image 1008 whose resolution has been converted and the predicted image 1012, and generates a difference image. The difference image obtained by the subtractor (differential device) 114 is transformed and quantized, and then variable-length coded to become a pixel coefficient code 1009.

【0006】また、動きベクトル1011も可変長符号
化され、動きベクトル符号1010として出力される。
量子化された差分画像はあらためて逆量子化の後に逆変
換され、予測画像1012と加えられた後フレームメモ
リ112に格納される。
The motion vector 1011 is also variable length coded and output as a motion vector code 1010.
The quantized difference image is again inversely quantized, then inversely transformed, added to the predicted image 1012, and then stored in the frame memory 112.

【0007】図2は、解像度変換におけるブロックと候
補ベクトルの関係を説明する概念図である。図2におい
て、F1は元ストリームのフレームを表し、F2は水平
垂直方向ともに二分の一に縮小した再符号化フレームを
表す。再符号化時のブロックb2に対応する元ストリー
ム上の領域は2×2の4つのブロックからなる領域b1
となる。動きベクトル予測部は対応する4本の動きベク
トルを統合し予測ベクトルを算出する。統合の方法とし
て、候補となるベクトルそれぞれについて予測効率を計
算し最も効率のよいベクトルを選択する。
FIG. 2 is a conceptual diagram for explaining the relationship between blocks and candidate vectors in resolution conversion. In FIG. 2, F1 represents a frame of the original stream, and F2 represents a re-encoded frame which has been reduced by half in both the horizontal and vertical directions. An area on the original stream corresponding to the block b2 at the time of re-encoding is an area b1 composed of four 2 × 2 blocks.
Becomes The motion vector prediction unit integrates four corresponding motion vectors to calculate a prediction vector. As a method of integration, prediction efficiency is calculated for each candidate vector and the most efficient vector is selected.

【0008】また、特開2000−232646号公報
が開示するところのストリーム伝送装置および方法、並
びに提供媒体(以下、従来例2)には、過去に演算した
動きベクトルを用いて再符号化を行うことにより、少な
いデータ量で再符号化に伴う画像劣化を抑制するストリ
ーム伝送装置が記載されていた。
Further, the stream transmission device and method disclosed in Japanese Patent Laid-Open No. 2000-232646, and the providing medium (hereinafter referred to as Conventional Example 2) are re-encoded using motion vectors calculated in the past. As a result, a stream transmission device that suppresses image deterioration due to re-encoding with a small amount of data has been described.

【0009】また、特開2000−232647号公報
が開示するところの符号化装置および方法、並びに提供
媒体(以下、従来例3)には、過去に演算した動きベク
トルを用いて再符号化を行うことにより、少ないデータ
量で再符号化に伴う画像劣化を抑制する符号化装置が記
載されていた。
Further, the encoding device and method disclosed in Japanese Patent Laid-Open No. 2000-232647 and the providing medium (hereinafter referred to as Conventional Example 3) perform re-encoding using the motion vector calculated in the past. As a result, an encoding device that suppresses image deterioration due to re-encoding with a small amount of data has been described.

【0010】また、特開2000−244929号公報
が開示するところの動画像再符号化装置(以下、従来例
4)では、符号化された動画像データを復号化して得ら
れるベースバンド情報である動画像信号に対して、早送
り、スロー、ポーズ等の特殊再生処理、副映像あるいは
GUIのオーバレイ等の処理を施し、さらに復号時に動
画像符号化データから抽出された各種符号化パラメータ
の情報、特殊再生およびオーバレイ処理等の情報を基に
最適な符号化パラメータの決定を行い、低コストで高画
質な再符号化を実現可能としていた。
Further, in the moving picture re-encoding device disclosed in Japanese Patent Laid-Open No. 2000-244929 (hereinafter, Conventional Example 4), the base band information is obtained by decoding the encoded moving picture data. Special playback processing such as fast-forward, slow, pause, etc. is performed on the moving image signal, processing such as sub-picture or GUI overlay is performed, and information on various coding parameters extracted from the moving image coded data at the time of decoding, special The optimum encoding parameters were decided based on information such as reproduction and overlay processing, and it was possible to realize high-quality re-encoding at low cost.

【0011】また、特開2000−354242号公報
が開示するところの符号化変換装置(以下、従来例5)
には、符号化効率の異なる符号化方式を有し、復号化し
た動画像信号を再符号化する際、伝送方式に応じて、符
号化方式を切り替える符号化変換装置が記載されてい
た。
Further, a coding conversion device disclosed in Japanese Patent Laid-Open No. 2000-354242 (hereinafter, conventional example 5).
Describes a coding conversion device that has coding systems with different coding efficiencies and switches the coding systems according to the transmission system when re-encoding a decoded moving image signal.

【0012】また、特開平10−336672号公報が
開示するところの符号化方式変換装置およびその動きベ
クトル検出方法(以下、従来例6)では、符号化された
画像データを復号して所定の符号化方式により再符号化
する場合に、復号時の動きベクトルの中から再符号化の
際の動きベクトルを選択して再符号化処理を行ってい
た。
Further, in the encoding method conversion device and the motion vector detecting method thereof (hereinafter referred to as Conventional Example 6) disclosed in Japanese Patent Laid-Open No. 10-336672, the encoded image data is decoded to obtain a predetermined code. When re-encoding by the encoding method, the motion vector at the time of re-encoding is selected from the motion vectors at the time of decoding and the re-encoding process is performed.

【0013】また、特開平11−275592号公報が
開示するところの動画像符号列変換装置及びその方法
(以下、従来例7)では、入来した符号列を復号すると
ともに、符号列から取り出した動きベクトルを用いて異
なった動き補償制度の動きベクトルを再構成し、新たな
動きベクトルを用いて再符号化していた。
Further, in the moving picture code string conversion apparatus and method (hereinafter referred to as Conventional Example 7) disclosed in Japanese Patent Laid-Open No. 11-275592, an incoming code string is decoded and taken out from the code string. We used motion vectors to reconstruct motion vectors of different motion compensation systems, and re-encoded using new motion vectors.

【0014】[0014]

【発明が解決しようとする課題】従来例1においては、
ベクトルの統合のために、各々の候補ベクトルについて
動き補償処理を行い、予測誤差パワーを比較する処理が
必要であった。この処理は、ベクトル予測を行わずに動
画像符号化部が単独で動き探索を行う場合に比べて、小
さな演算量によって実現できるが、それでも無視できな
いだけの演算量を要するといった問題が生じる。再符号
化処理に十分な演算量を割り当てられない装置において
は、ベクトル統合についても、低演算量かつ予測効率を
損なわない方法が求められる。
DISCLOSURE OF THE INVENTION In the conventional example 1,
For vector integration, it was necessary to perform motion compensation processing for each candidate vector and compare prediction error powers. This processing can be realized with a small amount of calculation as compared to the case where the moving image coding unit independently performs the motion search without performing vector prediction, but there is a problem that the amount of calculation that cannot be ignored is still required. For a device that cannot allocate a sufficient amount of calculation for re-encoding processing, a method that requires a small amount of calculation and does not impair the prediction efficiency is also required for vector integration.

【0015】また、再符号化時の符号化手法が、符号化
対象ブロックをいくつかのサブブロックに細分化し各々
のブロックについて動き補償処理を行うサブブロック動
き補償を採用している場合、さらなる符号化効率の向上
が見込めることから、動きベクトル予測のサブブロック
動き補償への対応および通常の動き補償予測との適切な
切替判定をさらに備えるのが望ましい。この場合も、再
符号化処理に十分な演算量を割り当てられない装置に適
用するため、低演算量かつ予測効率を損なわない方法が
求められる。
Further, when the encoding method at the time of re-encoding employs sub-block motion compensation in which the block to be encoded is subdivided into several sub-blocks and motion compensation processing is performed for each block, further encoding is performed. Since it is expected that the conversion efficiency can be improved, it is desirable to further include the correspondence of the motion vector prediction to the sub-block motion compensation and the appropriate switching determination between the normal motion-compensated prediction. In this case as well, since it is applied to a device that cannot allocate a sufficient amount of calculation for re-encoding processing, a method that has a low amount of calculation and does not impair the prediction efficiency is required.

【0016】また、従来例2から7においても、符号化
の対象となるブロックごとの画像特性(テクスチャ等)
を考慮して、再符号化を行っておらず、再符号化におけ
る低演算率および高予測効率を実現することは困難であ
った。
Also in the conventional examples 2 to 7, the image characteristics (texture, etc.) of each block to be coded.
In consideration of the above, re-encoding is not performed, and it is difficult to realize a low operation rate and high prediction efficiency in re-encoding.

【0017】本発明は、上記問題点に鑑みてなされたも
のであり、符号化対象のブロックごとの画像特性(変換
係数に係るパラメータ)を考慮するとともに、再符号化
の際の動きベクトルを低演算量かつ高予測効率で算出す
る動画像符号列変換装置、動画像符号列変換方法、およ
びそのプログラムを提供することを目的とする。
The present invention has been made in view of the above problems, and takes into consideration the image characteristics (parameters related to transform coefficients) of each block to be coded, and reduces the motion vector at the time of re-coding. An object of the present invention is to provide a moving image code string conversion device, a moving image code string conversion method, and a program for calculating the amount of calculation with high prediction efficiency.

【0018】[0018]

【課題を解決するための手段】かかる目的を達成するた
め、請求項1記載の発明は、第1の動画像符号列を復号
して得られた復号画像を解像度変換した後に新たに符号
化して第2の動画像符号列を生成する動画像符号列変換
装置であって、第1の動画像符号列に含まれる係数符号
の複雑度と、第1の動画像符号列における動き補償予測
に用いられる第1の動きベクトルと、に基づいて、第2
の動画像符号列における動き補償予測に用いられる第2
の動きベクトルを生成することを特徴とする。
In order to achieve the above object, the invention according to the first aspect is such that the decoded image obtained by decoding the first moving image code string is resolution-converted and then newly encoded. A moving picture code string conversion device for generating a second moving picture code string, which is used for the complexity of coefficient codes included in the first moving picture code string and for motion compensation prediction in the first moving picture code string. And a second motion vector based on the first motion vector
Second used for motion-compensated prediction in a moving image code sequence
Is generated.

【0019】また、請求項2記載の発明は、第1の動画
像符号列を復号して得られた復号画像を解像度変換した
後に新たに符号化して第2の動画像符号列を生成する動
画像符号列変換装置であって、動き補償予測を用いた第
1の動画像符号列を復号し、第1の動画像符号列から、
符号化単位となるブロックごとの係数符号の複雑度を表
す符号化複雑度情報と、動き補償予測に用いられる第1
の動きベクトルと、を検出する動画像復号手段と、動画
像復号手段により得られた復号画像に対して、予め定め
られた解像度変換率に従って解像度変換を行う解像度変
換手段と、動画像復号手段により検出された第1の動き
ベクトルおよび符号化複雑度情報と、解像度変換率と、
を参照して、第2の動画像符号列における動き補償予測
に用いられる第2の動きベクトルを生成する動きベクト
ル予測手段と、第2の動きベクトルを参照し、動き補償
予測を用いて、第2の動画像符号列を生成する動画像符
号化手段と、を有することを特徴とする。
Further, the invention according to claim 2 is a moving image in which the decoded image obtained by decoding the first moving image code sequence is resolution-converted and then newly encoded to generate the second moving image code sequence. An image code sequence conversion apparatus, which decodes a first moving image code sequence using motion compensation prediction, and from the first moving image code sequence,
Coding complexity information indicating the complexity of coefficient code for each block, which is a coding unit, and the first used for motion compensation prediction.
Motion vector detecting means for detecting the motion vector of the motion vector, resolution conversion means for performing resolution conversion on the decoded image obtained by the motion image decoding means in accordance with a predetermined resolution conversion rate, and moving image decoding means. The detected first motion vector and coding complexity information, the resolution conversion rate,
Motion vector predicting means for generating a second motion vector used for motion compensated prediction in the second moving image code sequence, and referring to the second motion vector, using motion compensated prediction, And a moving picture coding means for generating a moving picture code sequence of No. 2.

【0020】また、請求項3記載の発明によれば、請求
項2記載の動画像符号列変換装置において、動画像復号
手段は、符号化複雑度情報として、第1の動画像符号列
におけるブロックごとの係数符号の符号量を出力するこ
とを特徴とする。
According to the invention described in claim 3, in the moving picture code string conversion apparatus according to claim 2, the moving picture decoding means uses the block in the first moving picture code string as coding complexity information. It is characterized in that the code amount of each coefficient code is output.

【0021】また、請求項4記載の発明によれば、請求
項2記載の動画像符号列変換装置において、動画像復号
手段は、符号化複雑度情報として、第1の動画像符号列
におけるブロックごとの係数符号を復号した変換係数の
うち、非0係数の数を出力することを特徴とする。
According to the invention described in claim 4, in the moving picture code string conversion apparatus according to claim 2, the moving picture decoding means uses the block in the first moving picture code string as coding complexity information. It is characterized by outputting the number of non-zero coefficients among the transform coefficients obtained by decoding the coefficient code for each.

【0022】また、請求項5記載の発明によれば、請求
項2記載の動画像符号列変換装置において、動画像復号
手段は、符号化複雑度情報として、第1の動画像符号列
におけるブロックごとの係数符号を復号した変換係数の
絶対値和を出力することを特徴とする。
According to a fifth aspect of the present invention, in the moving image code string conversion apparatus according to the second aspect, the moving image decoding means uses the block in the first moving image code string as the encoding complexity information. It is characterized in that the sum of absolute values of the transform coefficients obtained by decoding the coefficient code for each is output.

【0023】また、請求項6記載の発明によれば、請求
項2記載の動画像符号列変換装置において、動きベクト
ル予測手段は、再符号化時のブロックごとに対応する解
像度変換前の領域に含まれる複数ブロックを選択し、複
数ブロックのうち符号化複雑度情報により示される符号
化複雑度の最も大きなブロックに対応する動きベクトル
を、解像度変換率に応じてスケール変換を行い、第2の
動きベクトルとすることを特徴とする。
Further, according to the invention of claim 6, in the moving picture code string converting apparatus according to claim 2, the motion vector predicting means sets the area before resolution conversion corresponding to each block at the time of re-encoding. A plurality of blocks included therein are selected, a motion vector corresponding to a block having the largest coding complexity indicated by the coding complexity information among the plurality of blocks is scale-converted according to the resolution conversion rate, and a second motion is performed. It is characterized by being a vector.

【0024】また、請求項7記載の発明は、第1の動画
像符号列を復号して得られた復号画像を解像度変換した
後に新たに符号化して第2の動画像符号列を生成する動
画像符号列変換装置であって、動き補償予測を用いた第
1の動画像符号列を復号し、第1の動画像符号列から、
符号化単位となるブロックごとの係数符号の複雑度を表
す符号化複雑度情報と、動き補償予測に用いられる第1
の動きベクトルと、を検出する動画像復号手段と、動画
像復号手段により得られた復号画像に対して、予め定め
られた解像度変換率に従って解像度変換を行う解像度変
換手段と、動画像復号手段により検出された第1の動き
ベクトルおよび符号化複雑度情報を参照して、第2の動
画像符号列におけるブロックごとの動き補償予測の種別
を表す符号化モードを決定する符号化モード決定手段
と、動画像復号手段により検出された第1の動きベクト
ルおよび符号化複雑度情報と、解像度変換率と、を参照
して、第2の動画像符号列における動き補償予測に用い
られる第2の動きベクトルを生成する動きベクトル予測
手段と、第2の動きベクトルと符号化モードとを参照
し、動き補償予測を用いて、第2の動画像符号列を生成
する動画像符号化手段と、を有することを特徴とする。
Further, the invention according to claim 7 is a moving image in which the decoded image obtained by decoding the first moving image code sequence is resolution-converted and then newly encoded to generate the second moving image code sequence. An image code sequence conversion apparatus, which decodes a first moving image code sequence using motion compensation prediction, and from the first moving image code sequence,
Coding complexity information indicating the complexity of coefficient code for each block, which is a coding unit, and the first used for motion compensation prediction.
Motion vector detecting means for detecting the motion vector of the motion vector, resolution conversion means for performing resolution conversion on the decoded image obtained by the motion image decoding means in accordance with a predetermined resolution conversion rate, and moving image decoding means. A coding mode determination unit that determines a coding mode indicating a type of motion compensation prediction for each block in the second moving image code string, with reference to the detected first motion vector and coding complexity information, A second motion vector used for motion-compensated prediction in the second moving image code string with reference to the first motion vector and coding complexity information detected by the moving image decoding means, and the resolution conversion rate. And a motion vector predicting means for generating a second motion image coding sequence using motion compensation prediction with reference to the second motion vector and the coding mode. , Characterized by having a.

【0025】また、請求項8記載の発明によれば、請求
項7記載の動画像符号列変換装置において、動画像復号
手段は、符号化複雑度情報として、第1の動画像符号列
におけるブロックごとの係数符号の符号量を出力するこ
とを特徴とする。
According to the invention described in claim 8, in the moving picture code string converting apparatus according to claim 7, the moving picture decoding means uses the block in the first moving picture code string as coding complexity information. It is characterized in that the code amount of each coefficient code is output.

【0026】また、請求項9記載の発明によれば、請求
項7記載の動画像符号列変換装置において、動画像復号
手段は、符号化複雑度情報として、第1の動画像符号列
におけるブロックごとの係数符号を復号した変換係数の
うち、非0係数の数を出力することを特徴とする。
According to the invention described in claim 9, in the moving picture code string converting apparatus according to claim 7, the moving picture decoding means uses the block in the first moving picture code string as coding complexity information. It is characterized by outputting the number of non-zero coefficients among the transform coefficients obtained by decoding the coefficient code for each.

【0027】また、請求項10記載の発明によれば、請
求項7記載の動画像符号列変換装置において、動画像復
号手段は、符号化複雑度情報として、第1の動画像符号
列におけるブロックごとの係数符号を復号した変換係数
の絶対値和を出力することを特徴とする。
According to the invention described in claim 10, in the moving picture code string conversion apparatus according to claim 7, the moving picture decoding means uses the block in the first moving picture code string as coding complexity information. It is characterized in that the sum of absolute values of the transform coefficients obtained by decoding the coefficient code for each is output.

【0028】また、請求項11記載の発明によれば、請
求項7記載の動画像符号列変換装置において、符号化モ
ード決定手段は、ブロック全体に対して動き補償予測を
行う通常モードと、ブロックを複数のサブブロックに分
割し、複数のサブブロックについて別々に動き補償予測
を行うサブブロックモードと、のうちのいずれかの符号
化モードを選択し、動画像符号化手段は、符号化モード
決定手段により選択された符号化モードに基づいて、動
き補償予測を行い、動きベクトル予測手段は、通常モー
ド時には一本の動きベクトルを出力し、サブブロックモ
ード時には複数のサブブロックの動きベクトルをそれぞ
れ出力することを特徴とする。
According to the eleventh aspect of the present invention, in the moving picture code string conversion apparatus according to the seventh aspect, the coding mode determining means has a normal mode for performing motion compensation prediction for the entire block and a block. Is divided into a plurality of sub-blocks, and one of the sub-block modes in which motion compensation prediction is performed separately for the plurality of sub-blocks is selected, and the moving picture coding means determines the coding mode. Motion compensation prediction is performed based on the coding mode selected by the means, and the motion vector prediction means outputs one motion vector in the normal mode, and outputs the motion vectors of a plurality of sub blocks in the sub block mode. It is characterized by doing.

【0029】また、請求項12記載の発明によれば、請
求項11記載の動画像符号列変換装置において、動きベ
クトル予測手段は、通常モード時に、再符号化時のブロ
ックごとに対応し、解像度変換前の領域に含まれる複数
ブロックを選択し、複数ブロックのうち符号化複雑度情
報に含まれる符号化複雑度の最も大きなブロックに対応
する動きベクトルを、解像度変換率に応じてスケール変
換を行い、第2の動きベクトルとすることを特徴とす
る。
According to the twelfth aspect of the present invention, in the moving picture code string conversion apparatus according to the eleventh aspect, the motion vector predicting means corresponds to each block at the time of re-encoding in the normal mode, and has a resolution. Selects multiple blocks included in the area before conversion, and scales the motion vector corresponding to the block with the highest coding complexity included in the coding complexity information among the multiple blocks according to the resolution conversion rate. , And the second motion vector.

【0030】また、請求項13記載の発明によれば、請
求項11記載の動画像符号列変換装置において、動きベ
クトル予測手段は、サブブロックモード時に、再符号化
時のブロックごとに対応し、解像度変換前の領域に含ま
れる複数ブロックを選択し、複数ブロックの持つ動きベ
クトルを解像度変換率に応じてスケール変換した後、再
符号化時のサブブロックの動きベクトルとして割り振る
ことを特徴とする。
According to the thirteenth aspect of the present invention, in the moving picture code sequence conversion apparatus according to the eleventh aspect, the motion vector predicting means corresponds to each block at the time of re-encoding in the sub-block mode, It is characterized in that a plurality of blocks included in a region before resolution conversion are selected, the motion vector of the plurality of blocks is scale-converted according to the resolution conversion rate, and then the motion vector of the sub-block is allocated at the time of re-encoding.

【0031】また、請求項14記載の発明によれば、請
求項11記載の動画像符号列変換装置において、符号化
モード決定手段は、再符号化時のブロックに対応し、解
像度変換前のフレーム内の領域に含まれる各ブロックの
符号化複雑度情報の平均が閾値Taより大きい場合、再
符号化時のブロックに対してサブブロックモードを選択
することを特徴とする。
According to a fourteenth aspect of the present invention, in the moving image code sequence conversion apparatus according to the eleventh aspect, the encoding mode determining means corresponds to the block at the time of re-encoding and the frame before resolution conversion. If the average of the coding complexity information of each block included in the area is larger than the threshold value Ta, the sub-block mode is selected for the block at the time of re-coding.

【0032】また、請求項15記載の発明によれば、請
求項11記載の動画像符号列変換装置において、符号化
モード決定手段は、再符号化時のブロックに対応し、解
像度変換前のフレーム内の領域に含まれる各ブロックの
符号化複雑度情報の分散が閾値Tbより大きい場合、再
符号化時のブロックに対してサブブロックモードを選択
することを特徴とする。
According to a fifteenth aspect of the present invention, in the moving picture code string converting apparatus according to the eleventh aspect, the encoding mode determining means corresponds to the block at the time of re-encoding and the frame before resolution conversion. When the variance of the coding complexity information of each block included in the area is larger than the threshold value Tb, the sub-block mode is selected for the block at the time of re-coding.

【0033】また、請求項16記載の発明によれば、請
求項11記載の動画像符号列変換装置において、符号化
モード決定手段は、再符号化時のブロックに対応し、解
像度変換前のフレーム内の領域に含まれる各ブロックの
動きベクトルの分散が閾値Tc1より大きく、かつ閾値
Tc2以下である場合、再符号化時のブロックに対して
サブブロックモードを選択することを特徴とする。
According to the sixteenth aspect of the present invention, in the moving image code sequence conversion apparatus according to the eleventh aspect, the encoding mode determining means corresponds to the block at the time of re-encoding and the frame before resolution conversion. If the variance of the motion vector of each block included in the area is larger than the threshold Tc1 and is equal to or smaller than the threshold Tc2, the sub-block mode is selected for the block at the time of re-encoding.

【0034】また、請求項17記載の発明によれば、請
求項11に記載の動画像符号列変換装置において、符号
化モード決定手段は、再符号化時のブロックに対応し、
解像度変換前のフレーム内の領域に含まれる各ブロック
の動きベクトルの分散が閾値Tc1以下である場合、あ
るいは閾値Tc2より大きい場合、再符号化時のブロッ
クに対して通常モードを選択することを特徴とする。
According to a seventeenth aspect of the present invention, in the moving picture code string conversion apparatus according to the eleventh aspect, the encoding mode determining means corresponds to the block at the time of re-encoding,
When the variance of the motion vector of each block included in the area within the frame before resolution conversion is less than or equal to the threshold value Tc1 or greater than the threshold value Tc2, the normal mode is selected for the block at the time of re-encoding. And

【0035】また、請求項18記載の発明は、第1の動
画像符号列を復号して得られた復号画像を解像度変換し
た後に新たに符号化して第2の動画像符号列を生成する
動画像符号列変換方法であって、第1の動画像符号列に
含まれる係数符号の複雑度と、第1の動画像符号列にお
ける動き補償予測に用いられる第1の動きベクトルと、
に基づいて、第2の動画像符号列における動き補償予測
に用いられる第2の動きベクトルを生成することを特徴
とする。
In the eighteenth aspect of the present invention, a moving image is generated in which a decoded image obtained by decoding the first moving image code sequence is resolution-converted and then newly encoded to generate a second moving image code sequence. An image code sequence conversion method, wherein the degree of complexity of coefficient codes included in the first moving image code sequence and a first motion vector used for motion compensation prediction in the first moving image code sequence,
The second motion vector used for the motion compensation prediction in the second moving image code sequence is generated based on

【0036】また、請求項19記載の発明は、第1の動
画像符号列を復号して得られた復号画像を解像度変換し
た後に新たに符号化して第2の動画像符号列を生成する
動画像符号列変換方法であって、動き補償予測を用いた
第1の動画像符号列を復号し、第1の動画像符号列か
ら、符号化単位となるブロックごとの係数符号の複雑度
を表す符号化複雑度情報と、動き補償予測に用いられる
第1の動きベクトルと、を検出する動画像復号工程と、
動画像復号工程により得られた復号画像に対して、予め
定められた解像度変換率に従って解像度変換を行う解像
度変換工程と、動画像復号工程により検出された第1の
動きベクトルおよび符号化複雑度情報と、解像度変換率
と、を参照して、第2の動画像符号列における動き補償
予測に用いられる第2の動きベクトルを生成する動きベ
クトル予測工程と、第2の動きベクトルを参照し、動き
補償予測を用いて、第2の動画像符号列を生成する動画
像符号化工程と、を有することを特徴とする。
The invention described in claim 19 is a moving image in which a decoded image obtained by decoding the first moving image code sequence is resolution-converted and then newly encoded to generate a second moving image code sequence. An image code sequence conversion method, which decodes a first moving image code sequence using motion compensation prediction, and represents the complexity of coefficient code for each block, which is a coding unit, from the first moving image code sequence. A moving picture decoding step of detecting coding complexity information and a first motion vector used for motion compensation prediction;
A resolution conversion step of performing resolution conversion on a decoded image obtained by the moving image decoding step according to a predetermined resolution conversion rate, and a first motion vector and coding complexity information detected by the moving image decoding step. And a resolution conversion rate, and a motion vector prediction step of generating a second motion vector used for motion compensation prediction in the second moving image code sequence, and a motion vector prediction step with reference to the second motion vector. And a moving picture coding step of generating a second moving picture code sequence using the compensation prediction.

【0037】また、請求項20記載の発明によれば、請
求項19記載の動画像符号列変換方法において、動画像
復号工程は、符号化複雑度情報として、第1の動画像符
号列におけるブロックごとの係数符号の符号量を出力す
ることを特徴とする。
According to the twentieth aspect of the present invention, in the moving picture code string conversion method according to the nineteenth aspect, the moving picture decoding step uses the block in the first moving picture code string as coding complexity information. It is characterized in that the code amount of each coefficient code is output.

【0038】また、請求項21記載の発明によれば、請
求項19記載の動画像符号列変換方法において、動画像
復号工程は、符号化複雑度情報として、第1の動画像符
号列におけるブロックごとの係数符号を復号した変換係
数のうち、非0係数の数を出力することを特徴とする。
According to the twenty-first aspect of the present invention, in the moving picture code string conversion method according to the nineteenth aspect, the moving picture decoding step uses the block in the first moving picture code string as coding complexity information. It is characterized by outputting the number of non-zero coefficients among the transform coefficients obtained by decoding the coefficient code for each.

【0039】また、請求項22記載の発明によれば、請
求項19記載の動画像符号列変換方法において、動画像
復号工程は、符号化複雑度情報として、第1の動画像符
号列におけるブロックごとの係数符号を復号した変換係
数の絶対値和を出力することを特徴とする。
[0039] According to the invention of claim 22, in the moving picture code string conversion method according to claim 19, the moving picture decoding step uses the block in the first moving picture code string as coding complexity information. It is characterized in that the sum of absolute values of the transform coefficients obtained by decoding the coefficient code for each is output.

【0040】また、請求項23記載の発明によれば、請
求項19記載の動画像符号列変換方法において、動きベ
クトル予測工程は、再符号化時のブロックごとに対応す
る解像度変換前の領域に含まれる複数ブロックを選択
し、複数ブロックのうち符号化複雑度情報により示され
る符号化複雑度の最も大きなブロックに対応する動きベ
クトルを、解像度変換率に応じてスケール変換を行い、
第2の動きベクトルとすることを特徴とする。
According to the twenty-third aspect of the present invention, in the moving picture code string conversion method according to the nineteenth aspect, the motion vector prediction step is performed on the area before resolution conversion corresponding to each block at the time of re-encoding. Select a plurality of blocks included, the motion vector corresponding to the block with the largest coding complexity indicated by the coding complexity information among the plurality of blocks, scale conversion according to the resolution conversion rate,
It is characterized in that it is the second motion vector.

【0041】また、請求項24記載の発明によれば、請
求項19記載の動画像符号列変換方法において、動画像
復号工程により検出された第1の動きベクトルおよび符
号化複雑度情報を参照して、第2の動画像符号列におけ
るブロックごとの動き補償予測の種別を表す符号化モー
ドを決定する符号化モード決定工程と、第2の動きベク
トルと符号化モードとを参照し、動き補償予測を用い
て、第2の動画像符号列を生成する第2の動画像符号化
工程と、を有することを特徴とする。
According to the invention described in claim 24, in the moving picture code string conversion method according to claim 19, the first motion vector and the coding complexity information detected in the moving picture decoding step are referred to. Then, the motion compensation prediction is performed with reference to the coding mode determination step of determining the coding mode indicating the type of motion compensation prediction for each block in the second moving image code sequence and the second motion vector and the coding mode. And a second moving picture coding step of generating a second moving picture coded sequence using.

【0042】また、請求項25記載の発明によれば、請
求項24記載の動画像符号列変換方法において、符号化
モード決定工程は、ブロック全体に対して動き補償予測
を行う通常モードと、ブロックを複数のサブブロックに
分割し、複数のサブブロックについて別々に動き補償予
測を行うサブブロックモードと、のうちのいずれかの符
号化モードを選択し、第2の動画像符号化工程は、符号
化モード決定工程により選択された符号化モードに基づ
いて、動き補償予測を行い、動きベクトル予測工程は、
通常モード時には一本の動きベクトルを出力し、サブブ
ロックモード時には複数のサブブロックの動きベクトル
をそれぞれ出力することを特徴とする。
According to a twenty-fifth aspect of the present invention, in the moving picture code string conversion method according to the twenty-fourth aspect, the coding mode determining step includes a normal mode in which motion compensation prediction is performed on the entire block, and a block. Is divided into a plurality of sub-blocks, and one of the sub-block modes in which motion compensation prediction is separately performed for the plurality of sub-blocks is selected, and the second moving image coding step is performed by Based on the coding mode selected in the coding mode determination step, motion compensation prediction is performed, and the motion vector prediction step is
It is characterized in that one motion vector is output in the normal mode, and motion vectors of a plurality of sub-blocks are output in the sub-block mode.

【0043】また、請求項26記載の発明によれば、請
求項25記載の動画像符号列変換方法において、動きベ
クトル予測工程は、サブブロックモード時に、再符号化
時のブロックごとに対応し、解像度変換前の領域に含ま
れる複数ブロックを選択し、複数ブロックの持つ動きベ
クトルを解像度変換率に応じてスケール変換した後、再
符号化時のサブブロックの動きベクトルとして割り振る
ことを特徴とする。
According to the twenty-sixth aspect of the present invention, in the moving picture code string conversion method of the twenty-fifth aspect, the motion vector prediction step corresponds to each block at the time of re-encoding in the sub-block mode, It is characterized in that a plurality of blocks included in a region before resolution conversion are selected, the motion vector of the plurality of blocks is scale-converted according to the resolution conversion rate, and then the motion vector of the sub-block is allocated at the time of re-encoding.

【0044】また、請求項27記載の発明によれば、請
求項25記載の動画像符号列変換方法において、符号化
モード決定工程は、再符号化時のブロックに対応し、解
像度変換前のフレーム内の領域に含まれる各ブロックの
符号化複雑度情報の平均が閾値Taより大きい場合、再
符号化時のブロックに対してサブブロックモードを選択
することを特徴とする。
According to the twenty-seventh aspect of the present invention, in the moving image code sequence conversion method according to the twenty-fifth aspect, the encoding mode determination step corresponds to the block at the time of re-encoding and the frame before resolution conversion is performed. If the average of the coding complexity information of each block included in the area is larger than the threshold value Ta, the sub-block mode is selected for the block at the time of re-coding.

【0045】また、請求項28記載の発明によれば、請
求項25記載の動画像符号列変換方法において、符号化
モード決定工程は、再符号化時のブロックに対応し、解
像度変換前のフレーム内の領域に含まれる各ブロックの
符号化複雑度情報の分散が閾値Tbより大きい場合、再
符号化時のブロックに対してサブブロックモードを選択
することを特徴とする。
According to the invention described in Item 28, in the moving image code string conversion method according to Item 25, the coding mode determining step corresponds to the block at the time of re-encoding, and the frame before resolution conversion is performed. When the variance of the coding complexity information of each block included in the area is larger than the threshold value Tb, the sub-block mode is selected for the block at the time of re-coding.

【0046】また、請求項29記載の発明によれば、請
求項25記載の動画像符号列変換方法において、符号化
モード決定工程は、再符号化時のブロックに対応し、解
像度変換前のフレーム内の領域に含まれる各ブロックの
動きベクトルの分散が閾値Tc1より大きく、かつ閾値
Tc2以下である場合、再符号化時のブロックに対して
サブブロックモードを選択することを特徴とする。
According to the twenty-ninth aspect of the present invention, in the moving image code string conversion method according to the twenty-fifth aspect, the encoding mode determination step corresponds to the block at the time of re-encoding, and the frame before resolution conversion is performed. If the variance of the motion vector of each block included in the area is larger than the threshold Tc1 and is equal to or smaller than the threshold Tc2, the sub-block mode is selected for the block at the time of re-encoding.

【0047】また、請求項30記載の発明によれば、請
求項25に記載の動画像符号列変換方法において、符号
化モード決定工程は、再符号化時のブロックに対応し、
解像度変換前のフレーム内の領域に含まれる各ブロック
の動きベクトルの分散が閾値Tc1以下である場合、あ
るいは閾値Tc2より大きい場合、再符号化時のブロッ
クに対して通常モードを選択することを特徴とする。
According to the invention of claim 30, in the moving picture code string converting method of claim 25, the coding mode determining step corresponds to the block at the time of re-encoding,
When the variance of the motion vector of each block included in the area within the frame before resolution conversion is less than or equal to the threshold value Tc1 or greater than the threshold value Tc2, the normal mode is selected for the block at the time of re-encoding. And

【0048】また、請求項31記載の発明は、第1の動
画像符号列を復号して得られた復号画像を解像度変換し
た後に新たに符号化して第2の動画像符号列を生成する
プログラムであって、第1の動画像符号列に含まれる係
数符号の複雑度と、第1の動画像符号列における動き補
償予測に用いられる第1の動きベクトルと、に基づい
て、第2の動画像符号列における動き補償予測に用いら
れる第2の動きベクトルを生成する処理をコンピュータ
に実行させることを特徴とする。
According to a thirty-first aspect of the present invention, a program for generating a second moving image code string by newly encoding after performing resolution conversion on a decoded image obtained by decoding the first moving image code string. The second moving image is based on the complexity of the coefficient code included in the first moving image code sequence and the first motion vector used for motion compensation prediction in the first moving image code sequence. It is characterized by causing a computer to execute a process of generating a second motion vector used for motion compensation prediction in an image code sequence.

【0049】また、請求項32記載の発明は、第1の動
画像符号列を復号して得られた復号画像を解像度変換し
た後に新たに符号化して第2の動画像符号列を生成する
プログラムであって、動き補償予測を用いた第1の動画
像符号列を復号し、第1の動画像符号列から、符号化単
位となるブロックごとの係数符号の複雑度を表す符号化
複雑度情報と、動き補償予測に用いられる第1の動きベ
クトルと、を検出する動画像復号処理と、動画像復号処
理により得られた復号画像に対して、予め定められた解
像度変換率に従って解像度変換を行う解像度変換処理
と、動画像復号処理により検出された第1の動きベクト
ルおよび符号化複雑度情報と、解像度変換率と、を参照
して、第2の動画像符号列における動き補償予測に用い
られる第2の動きベクトルを生成する動きベクトル予測
処理と、第2の動きベクトルを参照し、動き補償予測を
用いて、第2の動画像符号列を生成する第1の動画像符
号化処理と、をコンピュータに実行させることを特徴と
する。
Further, the invention of claim 32 is a program for generating a second moving image code sequence by newly encoding after performing resolution conversion on a decoded image obtained by decoding the first moving image code sequence. That is, the first moving image code sequence using motion compensation prediction is decoded, and the encoding complexity information indicating the complexity of the coefficient code for each block, which is the encoding unit, is decoded from the first moving image code sequence. And a first motion vector used for motion-compensated prediction, and resolution conversion is performed on a decoded image obtained by the moving image decoding process and the moving image decoding process according to a predetermined resolution conversion rate. The resolution conversion process, the first motion vector and encoding complexity information detected by the moving image decoding process, and the resolution conversion rate are referred to and used for motion compensation prediction in the second moving image code string. Second movement A computer performs a motion vector prediction process that generates a tor and a first motion image coding process that refers to a second motion vector and uses motion compensation prediction to generate a second motion image code string. It is characterized by

【0050】また、請求項33記載の発明によれば、請
求項32記載のプログラムにおいて、動画像復号処理
は、符号化複雑度情報として、第1の動画像符号列にお
けるブロックごとの係数符号の符号量を出力することを
特徴とする。
According to the thirty-third aspect of the present invention, in the program of the thirty-second aspect, the moving image decoding process uses the coefficient code of each block in the first moving image code string as the encoding complexity information. It is characterized by outputting the code amount.

【0051】また、請求項34記載の発明によれば、請
求項32記載のプログラムにおいて、動画像復号処理
は、符号化複雑度情報として、第1の動画像符号列にお
けるブロックごとの係数符号を復号した変換係数のう
ち、非0係数の数を出力することを特徴とする。
According to a thirty-fourth aspect of the invention, in the program of the thirty-second aspect, the moving picture decoding process uses a coefficient code for each block in the first moving picture code string as coding complexity information. It is characterized by outputting the number of non-zero coefficients among the decoded transform coefficients.

【0052】また、請求項35記載の発明によれば、請
求項32記載のプログラムにおいて、動画像復号処理
は、符号化複雑度情報として、第1の動画像符号列にお
けるブロックごとの係数符号を復号した変換係数の絶対
値和を出力することを特徴とする。
According to the thirty-fifth aspect of the invention, in the program of the thirty-second aspect, the moving picture decoding process uses a coefficient code for each block in the first moving picture code string as the coding complexity information. It is characterized in that the sum of absolute values of the decoded transform coefficients is output.

【0053】また、請求項36記載の発明によれば、請
求項32記載のプログラムにおいて、動きベクトル予測
処理は、再符号化時のブロックごとに対応する解像度変
換前の領域に含まれる複数ブロックを選択し、複数ブロ
ックのうち符号化複雑度情報により示される符号化複雑
度の最も大きなブロックに対応する動きベクトルを、解
像度変換率に応じてスケール変換を行い、第2の動きベ
クトルとすることを特徴とする。
According to the thirty-sixth aspect of the present invention, in the program of the thirty-second aspect, the motion vector prediction process includes a plurality of blocks included in an area before resolution conversion corresponding to each block at the time of re-encoding. It is possible to select the motion vector corresponding to the block having the largest coding complexity indicated by the coding complexity information among the plurality of blocks and perform the scale conversion according to the resolution conversion rate to be the second motion vector. Characterize.

【0054】また、請求項37記載の発明によれば、請
求項32記載のプログラムにおいて、動画像復号処理に
より検出された第1の動きベクトルおよび符号化複雑度
情報を参照して、第2の動画像符号列におけるブロック
ごとの動き補償予測の種別を表す符号化モードを決定す
る符号化モード決定処理と、第2の動きベクトルと符号
化モードとを参照し、動き補償予測を用いて、第2の動
画像符号列を生成する第2の動画像符号化処理と、をコ
ンピュータに実行させることを特徴とする。
According to the thirty-seventh aspect of the invention, in the program of the thirty-second aspect, the second motion vector and the coding complexity information detected by the moving image decoding process are referred to and the second motion vector is referred to. By referring to a coding mode determination process that determines a coding mode that represents a type of motion compensation prediction for each block in a moving image code sequence and a second motion vector and a coding mode, motion compensation prediction is used to And a second moving image encoding process for generating two moving image code strings.

【0055】また、請求項38記載の発明によれば、請
求項37記載のプログラムにおいて、符号化モード決定
処理は、ブロック全体に対して動き補償予測を行う通常
モードと、ブロックを複数のサブブロックに分割し、複
数のサブブロックについて別々に動き補償予測を行うサ
ブブロックモードと、のうちのいずれかの符号化モード
を選択し、第2の動画像符号化処理は、符号化モード決
定処理により選択された符号化モードに基づいて、動き
補償予測を行い、動きベクトル予測処理は、通常モード
時には一本の動きベクトルを出力し、サブブロックモー
ド時には複数のサブブロックの動きベクトルをそれぞれ
出力することを特徴とする。
According to a thirty-eighth aspect of the present invention, in the program of the thirty-seventh aspect, the coding mode determination processing includes a normal mode in which motion compensation prediction is performed on the entire block, and the block includes a plurality of sub-blocks. Sub-block mode in which motion compensation prediction is separately performed for a plurality of sub-blocks, and one of the coding modes is selected, and the second moving image coding process is performed by the coding mode determination process. Motion-compensated prediction is performed based on the selected coding mode. Motion vector prediction processing outputs one motion vector in normal mode, and outputs motion vectors of multiple sub-blocks in sub-block mode. Is characterized by.

【0056】また、請求項39記載の発明によれば、請
求項38記載のプログラムにおいて、動きベクトル予測
処理は、サブブロックモード時に、再符号化時のブロッ
クごとに対応し、解像度変換前の領域に含まれる複数ブ
ロックを選択し、複数ブロックの持つ動きベクトルを解
像度変換率に応じてスケール変換した後、再符号化時の
サブブロックの動きベクトルとして割り振ることを特徴
とする。
According to a thirty-ninth aspect of the invention, in the program of the thirty-eighth aspect, the motion vector prediction process corresponds to each block at the time of re-encoding in the sub-block mode, and the region before resolution conversion is performed. Is selected, the motion vector of the plurality of blocks is scale-converted according to the resolution conversion ratio, and then the motion vector of the sub-block is re-encoded.

【0057】また、請求項40記載の発明によれば、請
求項38記載のプログラムにおいて、符号化モード決定
処理は、再符号化時のブロックに対応し、解像度変換前
のフレーム内の領域に含まれる各ブロックの符号化複雑
度情報の平均が閾値Taより大きい場合、再符号化時の
ブロックに対してサブブロックモードを選択することを
特徴とする。
According to the invention described in Item 40, in the program according to Item 38, the encoding mode determination process corresponds to the block at the time of re-encoding and is included in the area in the frame before resolution conversion. When the average of the coding complexity information of each block is larger than the threshold value Ta, the sub-block mode is selected for the block at the time of re-coding.

【0058】また、請求項41記載の発明によれば、請
求項38記載のプログラムにおいて、符号化モード決定
処理は、再符号化時のブロックに対応し、解像度変換前
のフレーム内の領域に含まれる各ブロックの符号化複雑
度情報の分散が閾値Tbより大きい場合、再符号化時の
ブロックに対してサブブロックモードを選択することを
特徴とする。
According to the invention described in Item 41, in the program according to Item 38, the encoding mode determination process corresponds to a block at the time of re-encoding and is included in an area in a frame before resolution conversion. When the variance of the coding complexity information of each block to be reproduced is larger than the threshold value Tb, the sub-block mode is selected for the block at the time of re-encoding.

【0059】また、請求項42記載の発明によれば、請
求項38記載のプログラムにおいて、符号化モード決定
処理は、再符号化時のブロックに対応し、解像度変換前
のフレーム内の領域に含まれる各ブロックの動きベクト
ルの分散が閾値Tc1より大きく、かつ閾値Tc2以下
である場合、再符号化時のブロックに対してサブブロッ
クモードを選択することを特徴とする。
According to the 42nd aspect of the invention, in the program according to the 38th aspect, the encoding mode determination processing corresponds to a block at the time of re-encoding and is included in an area in a frame before resolution conversion. When the variance of the motion vector of each block to be reproduced is larger than the threshold Tc1 and smaller than or equal to the threshold Tc2, the sub-block mode is selected for the block at the time of re-encoding.

【0060】また、請求項43記載の発明によれば、請
求項38に記載のプログラムにおいて、符号化モード決
定処理は、再符号化時のブロックに対応し、解像度変換
前のフレーム内の領域に含まれる各ブロックの動きベク
トルの分散が閾値Tc1以下である場合、あるいは閾値
Tc2より大きい場合、再符号化時のブロックに対して
通常モードを選択することを特徴とする。
According to the invention described in Item 43, in the program according to Item 38, the encoding mode determination process corresponds to the block at the time of re-encoding, and the encoding mode determination process is performed in an area in the frame before resolution conversion. The feature is that the normal mode is selected for the block at the time of re-encoding when the variance of the motion vector of each included block is less than or equal to the threshold Tc1 or greater than the threshold Tc2.

【0061】また、本発明によれば、第1の動画像符号
列を復号する動画像復号部と、復号画像をあらかじめ定
められた解像度変換率に従って解像度変換を行う解像度
変換部と、動画像復号部において得られる動き補償予測
に用いられる動きベクトルと、解像度変換率と、動画像
復号部において得られる、第1の動画像符号列における
符号化単位となるブロック毎の符号化複雑度情報を参照
して、予測ベクトルを生成する動きベクトル予測部と、
予測ベクトルを参照して再符号化を行う動画像符号化部
とからなることを特徴とする。符号化複雑度情報とし
て、ブロック毎の符号量もしくは変換符号化係数のうち
の非0係数の数もしくは変換符号化係数の絶対値和を用
い、動きベクトル予測部は、再符号化時の各ブロックに
対応する解像度変換前の領域に含まれる複数ブロックか
ら符号化複雑度情報の最も大きなものを選択し、対応す
る動きベクトルを解像度変換率に応じてスケール変換し
て予測ベクトルとする。
Further, according to the present invention, a moving picture decoding unit that decodes the first moving picture code sequence, a resolution conversion unit that performs resolution conversion of the decoded image according to a predetermined resolution conversion rate, and a moving picture decoding unit. Refer to the motion vector used for the motion compensation prediction obtained in the section, the resolution conversion rate, and the coding complexity information for each block, which is the coding unit in the first moving image code string, obtained in the moving image decoding unit. And a motion vector prediction unit that generates a prediction vector,
It is characterized by comprising a moving picture coding unit which performs re-coding by referring to a prediction vector. As the coding complexity information, the code amount for each block, the number of non-zero coefficients among the transform coding coefficients, or the sum of the absolute values of the transform coding coefficients is used, and the motion vector prediction unit uses each block at the time of recoding. The one having the largest coding complexity information is selected from a plurality of blocks included in the area before resolution conversion corresponding to, and the corresponding motion vector is scale-converted according to the resolution conversion rate to be a prediction vector.

【0062】また、本発明によれば、上記に加え、動画
像復号に用いた動きベクトルとブロック毎の符号化複雑
度情報とを参照して、再符号化時のブロック毎の動き補
償予測の種別を表す符号化モードを決定する符号化モー
ド決定部を有することを特徴とする。動画像符号化部
は、符号化単位となるブロック全体に対して動き補償予
測を行う通常モードと、前記ブロックを複数のサブブロ
ックに分割し各々のサブブロックについて動き補償予測
を行うサブブロックモードとを切り替えて行う。符号化
モード決定部は二つのモードのいずれかを選択し、動き
ベクトル予測部は、通常モードの時には一本の動きベク
トルを、サブブロックモードの時には各サブブロックの
動きベクトルを出力する。符号化モードは、符号化複雑
度情報もしくは動きベクトルの分布に基づいて決定され
る。
Further, according to the present invention, in addition to the above, by referring to the motion vector used for the moving image decoding and the coding complexity information for each block, the motion compensation prediction for each block at the time of re-coding is performed. It is characterized by having a coding mode determination unit that determines a coding mode indicating a type. The moving picture coding unit has a normal mode in which motion compensation prediction is performed on the entire block that is a coding unit, and a subblock mode in which the block is divided into a plurality of subblocks and motion compensation prediction is performed for each subblock. To switch. The coding mode determination unit selects one of the two modes, and the motion vector prediction unit outputs one motion vector in the normal mode, and outputs the motion vector of each sub block in the sub block mode. The coding mode is determined based on coding complexity information or motion vector distribution.

【0063】[0063]

【発明の実施の形態】(第1の実施形態)図1は、本発
明の第1の実施形態における動画像符号列変換装置の構
成図である。図2は、解像度変換におけるブロックと候
補ベクトルの関係を説明する概念図である。図3は、符
号化複雑度と動き補償予測との関係の概念を示す図であ
る。以下、本発明の第1の実施形態について、図1から
図3を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) FIG. 1 is a block diagram of a moving picture code string conversion apparatus according to a first embodiment of the present invention. FIG. 2 is a conceptual diagram illustrating the relationship between blocks and candidate vectors in resolution conversion. FIG. 3 is a diagram showing the concept of the relationship between the coding complexity and the motion compensation prediction. Hereinafter, the first embodiment of the present invention will be described with reference to FIGS. 1 to 3.

【0064】動画像符号列変換装置は、動画像復号部1
00と、動きベクトル予測部108と、解像度変換部1
09と、動画像復号化部110と、を有する。
The moving picture code string converting apparatus is provided with a moving picture decoding unit 1.
00, the motion vector prediction unit 108, and the resolution conversion unit 1
09 and a moving picture decoding unit 110.

【0065】動画像復号部100は、係数符号解釈部1
01と、動きベクトル符号解釈部102と、逆量子化部
103と、逆変換符号化部104と、動き補償部105
と、フレームメモリ106と、加算器107と、を有す
る。動画像復号部100は、符号列のうち画素係数符号
1001と動きベクトル符号1002とを受け取る。
The moving picture decoding unit 100 includes a coefficient code interpretation unit 1
01, a motion vector code interpretation unit 102, an inverse quantization unit 103, an inverse transform encoding unit 104, and a motion compensation unit 105.
And a frame memory 106 and an adder 107. The moving image decoding unit 100 receives the pixel coefficient code 1001 and the motion vector code 1002 in the code string.

【0066】係数符号解釈部101は、入力された画素
係数符号1001を変換係数に復号する。逆量子化部1
03は、係数符号解釈部101により変換係数(例えば
DCT係数)に復号された画素係数符号1001を、逆
量子化する。逆変換符号化部104は、逆量子化部10
3により逆量子化された画素係数符号1001を、逆変
換符号化する。
The coefficient code interpretation unit 101 decodes the input pixel coefficient code 1001 into transform coefficients. Inverse quantizer 1
03 inversely quantizes the pixel coefficient code 1001 decoded into the transform coefficient (for example, DCT coefficient) by the coefficient code interpretation unit 101. The inverse transform encoding unit 104 includes an inverse quantization unit 10
The pixel coefficient code 1001 inversely quantized by 3 is inversely transformed and coded.

【0067】フレームメモリ106は、動き補償が行わ
れる際に用いられる参照画面を格納する。動きベクトル
符号解釈部102は、入力された動きベクトル符号10
02を復号化し、動きベクトル1003を生成する。動
き補償部105は、生成された動きベクトル1003に
従って、フレームメモリ106に格納された参照画像に
対して動き補償処理を行う。加算器107は、逆変換符
号化部104による逆変換符号化の結果と、動き補償部
105による動き補償の結果と、を加算し、復号画像1
004を生成する。
The frame memory 106 stores a reference screen used when motion compensation is performed. The motion vector code interpretation unit 102 receives the input motion vector code 10
02 is decoded and a motion vector 1003 is generated. The motion compensation unit 105 performs motion compensation processing on the reference image stored in the frame memory 106 according to the generated motion vector 1003. The adder 107 adds the result of the inverse transform coding by the inverse transform coding unit 104 and the result of the motion compensation by the motion compensating unit 105 to obtain the decoded image 1
004 is generated.

【0068】復号画像1004は、解像度変換部109
は、復号画像1004を、あらかじめ定められた解像度
変換率1007に従って、ダウンサンプルする。
The decoded image 1004 has a resolution conversion unit 109.
Downsamples the decoded image 1004 according to a predetermined resolution conversion rate 1007.

【0069】係数符号解釈部101は、符号化単位とな
るブロック毎に、係数符号の複雑度を表す符号化複雑度
情報1006を出力する。符号化複雑度情報1006
(符号化複雑度)としては、ブロック毎の係数符号に要
した符号量、もしくは各変換係数のうち非0係数の数あ
るいは絶対値和が用いられる。動きベクトル予測部10
8は、動きベクトル1003と符号化複雑度情報100
6とを参照して、再符号化時の各ブロックにおける動き
ベクトル予測値(予測ベクトル1005)を生成する。
The coefficient code interpretation unit 101 outputs the coding complexity information 1006 indicating the complexity of the coefficient code for each block as a coding unit. Encoding complexity information 1006
As the (coding complexity), the code amount required for coefficient coding for each block, or the number of non-zero coefficients among each transform coefficient or the sum of absolute values is used. Motion vector predictor 10
8 is a motion vector 1003 and coding complexity information 100.
6, the motion vector prediction value (prediction vector 1005) in each block at the time of re-encoding is generated.

【0070】動きベクトル予測について、図2を用いて
説明する。図2において、フレームF1は元ストリーム
における画像フレーム、フレームF2は水平垂直方向と
もに二分の一に縮小した再符号化フレームをそれぞれ表
す。再符号化時のブロックb2は、元ストリーム上の2
×2の4つのブロックからなる領域b1に対応する。動
きベクトル予測部108は各ブロックに対応する4本の
動きベクトルを統合し予測ベクトル1005を算出す
る。ベクトルの統合には、符号化複雑度情報1006が
用いられる。なお、領域b1上の4本の動きベクトル
は、動きベクトル1003に相当し、ブロックb2上の
動きベクトルは、予測ベクトル1005に相当する。
Motion vector prediction will be described with reference to FIG. In FIG. 2, a frame F1 represents an image frame in the original stream, and a frame F2 represents a re-encoded frame which has been reduced by half in both the horizontal and vertical directions. The block b2 at the time of re-encoding is 2 on the original stream.
This corresponds to a region b1 composed of four blocks of × 2. The motion vector prediction unit 108 integrates four motion vectors corresponding to each block to calculate a prediction vector 1005. The coding complexity information 1006 is used for vector integration. The four motion vectors on the area b1 correspond to the motion vector 1003, and the motion vector on the block b2 corresponds to the prediction vector 1005.

【0071】符号化複雑度情報と動き補償予測の関係に
ついて、図3を用いて説明する。フレームF01、F1
1は、互いに異なる画像フレームである。フレームF0
0は、フレームF01に対応する参照フレームであり、
フレームF10は、フレームF11に対応する参照フレ
ームである。F01における符号化対象ブロックb0
1、およびF11における符号化対象ブロックb11
は、互いに異なるテクスチャを持っており、符号化対象
ブロックb01のテクスチャは、符号化対象ブロックb
11のテクスチャよりも複雑である。領域b00、b1
0は、それぞれ動き補償予測が最適に行われた場合に参
照されるべき領域である。領域b00' は、領域b00
から微小にシフトした領域であり、領域b10' は、領
域b10から微小にシフトした領域である。
The relationship between the coding complexity information and the motion compensation prediction will be described with reference to FIG. Frames F01, F1
1 is a different image frame. Frame F0
0 is a reference frame corresponding to the frame F01,
The frame F10 is a reference frame corresponding to the frame F11. Encoding target block b0 in F01
1 and the encoding target block b11 in F11
Have different textures from each other, and the texture of the encoding target block b01 is the encoding target block b.
More complex than 11 textures. Area b00, b1
0 is a region to be referred to when motion compensation prediction is optimally performed. The area b00 ′ is the area b00
Is a region slightly shifted from the region b10 ′, and a region b10 ′ is a region slightly shifted from the region b10.

【0072】実際の符号化において動き補償予測が最適
でなく、領域b01が領域b00'を参照して予測符号
化される場合、画素単位の予測誤差は、E01のように
なる。また、同様に、実際の符号化において動き補償予
測が最適でなく、領域b11がb10' を参照して予測
符号化される場合、画素単位の予測誤差は、E11のよ
うになる。
When the motion compensation prediction is not optimal in the actual encoding and the region b01 is predictively encoded by referring to the region b00 ', the prediction error in pixel units becomes E01. Similarly, when the motion-compensated prediction is not optimal in the actual coding and the region b11 is predictively coded with reference to b10 ', the prediction error in pixel units becomes E11.

【0073】一般に、複数の領域における予測誤差を比
較した場合、テクスチャが複雑な領域は、他の領域より
も動きベクトルが外れた場合の予測誤差が大きくなる。
ここで、領域b01の方が領域b11よりもテクスチャ
が複雑であるため、予測誤差E01は、予測誤差E11
より大きくなる。
In general, when the prediction errors in a plurality of regions are compared, a region having a complicated texture has a larger prediction error when the motion vector deviates from the other regions.
Here, since the texture of the region b01 is more complicated than that of the region b11, the prediction error E01 is equal to the prediction error E11.
Get bigger.

【0074】テクスチャの複雑さと符号化複雑度との間
には相関が高いことから、符号化複雑度の高いブロック
ほど、動き補償時のベクトルが最適値から離れるにつれ
予測効率が大きく低下すると考えられる。動きベクトル
予測部108は、領域b1に含まれる複数のブロックの
うち、候補となる符号化複雑度情報1006(符号化複
雑度)の最も大きなものを選択し、対応する動きベクト
ルを解像度変換率1007に従ってスケーリングし、予
測ベクトル1005とする。
Since there is a high correlation between the texture complexity and the coding complexity, it is considered that the higher the coding complexity of a block, the more the prediction efficiency decreases as the vector at the time of motion compensation deviates from the optimum value. . The motion vector prediction unit 108 selects the largest candidate of the coding complexity information 1006 (coding complexity) from the plurality of blocks included in the region b1, and sets the corresponding motion vector to the resolution conversion rate 1007. According to the above, the prediction vector 1005 is obtained.

【0075】動画像符号化部110は、予測ベクトル1
005を用いて、解像度変換後の復号画像1008を符
号化し、画素係数符号1009および動きベクトル符号
1010を生成する。
The moving picture coding unit 110 uses the prediction vector 1
The decoded image 1008 after resolution conversion is encoded using 005 to generate a pixel coefficient code 1009 and a motion vector code 1010.

【0076】動画像符号化部110は、動き探索部11
1と、フレームメモリ112と、動き補償部113と、
減算器(差分器)114と、変換符号化部115と、量
子化部116と、可変長符号化部117、118と、逆
量子化部119と、逆変換符号化部120と、加算器1
21と、を有する。
The moving picture coding unit 110 includes a motion search unit 11
1, a frame memory 112, a motion compensation unit 113,
The subtracter (differential device) 114, the transform coding unit 115, the quantization unit 116, the variable length coding units 117 and 118, the dequantization unit 119, the inverse transform coding unit 120, and the adder 1
21 and.

【0077】動き探索部111は、復号画像1008、
フレームメモリ112に格納された参照画像、および予
測ベクトル1005を参照して、動きベクトル1011
を算出する。
The motion search unit 111 detects the decoded image 1008,
The motion vector 1011 is referred to by referring to the reference image and the prediction vector 1005 stored in the frame memory 112.
To calculate.

【0078】フレームメモリ112は、動き補償が行わ
れる際に用いられる参照画面を格納する。動き補償部1
13は、動きベクトル1011より参照画像に動き補償
を行った予測画像1012を生成する。減算器114
は、復号画像1008と予測画像1012との差分画像
1013を生成する。変換符号化部115は、差分画像
1013の変換符号化を行う。量子化部116は、変換
符号化部115により変換符号化された差分画像101
3の量子化を行う。可変長符号化部117は、量子化部
116により量子化された差分画像1013の可変長符
号化を行い、画素係数符号1009を生成する。
The frame memory 112 stores a reference screen used when motion compensation is performed. Motion compensation unit 1
13 generates a predicted image 1012 in which motion compensation is performed on the reference image from the motion vector 1011. Subtractor 114
Generates a difference image 1013 between the decoded image 1008 and the predicted image 1012. The transform coding unit 115 performs transform coding of the difference image 1013. The quantization unit 116 receives the difference image 101 that has been transform-coded by the transform-encoding unit 115.
Quantization of 3 is performed. The variable length coding unit 117 performs variable length coding on the difference image 1013 quantized by the quantizing unit 116 to generate a pixel coefficient code 1009.

【0079】可変長符号化部118は、動きベクトル1
011を可変長符号化し、動きベクトル符号1010と
して出力する。
The variable length coding unit 118 uses the motion vector 1
011 is variable-length coded and output as a motion vector code 1010.

【0080】逆量子化部119は、量子化された差分画
像1014を逆量子化する。逆変換符号化部120は、
逆量子化部119により逆量子化された差分画像を逆変
換する。加算器121は、逆変換符号化部120により
逆変換された差分画像に、予測画像1012を加える。
フレームメモリ112は、加算器121により生成され
た画像である、逆変換された差分画像と予測画像101
2との和を、参照画像として格納する。
The inverse quantizer 119 inversely quantizes the quantized difference image 1014. The inverse transform coding unit 120
The inverse quantization unit 119 inversely transforms the inversely quantized difference image. The adder 121 adds the prediction image 1012 to the difference image inversely transformed by the inverse transform encoding unit 120.
The frame memory 112 is an image generated by the adder 121, which is the inversely transformed difference image and the predicted image 101.
The sum of 2 is stored as the reference image.

【0081】図4および図5は、本発明の第1の実施形
態における動画像符号列変換装置による動作の流れを示
すフローチャートである。以下、図1を用い、図4およ
び図5に沿って、本実施形態における動画像符号列変換
装置による動作について説明する。
FIG. 4 and FIG. 5 are flow charts showing the flow of the operation by the moving picture code string conversion apparatus in the first embodiment of the present invention. Hereinafter, the operation of the moving image code string conversion apparatus according to the present embodiment will be described with reference to FIG. 1 and with reference to FIGS. 4 and 5.

【0082】まず、係数符号解釈部101は、入力され
た画素係数符号1001を変換係数に復号する(ステッ
プS101)。次に、逆量子化部103は、復号された
変換係数を逆量子化する(ステップS102)。逆変換
符号化部104は、逆量子化された変換係数を逆変換符
号化する(ステップS103)。
First, the coefficient code interpretation unit 101 decodes the input pixel coefficient code 1001 into transform coefficients (step S101). Next, the inverse quantization unit 103 inversely quantizes the decoded transform coefficient (step S102). The inverse transform encoding unit 104 inverse transform encodes the inversely quantized transform coefficient (step S103).

【0083】また、動きベクトル符号解釈部102は、
入力された動きベクトル符号1002を復号し、動きベ
クトル1003を生成する(ステップS104)。動き
補償部105は、生成された動きベクトル1003に基
づいて、フレームメモリ106に格納されている参照画
像の動き補償を行う(ステップS105)。
Further, the motion vector code interpretation unit 102
The input motion vector code 1002 is decoded to generate a motion vector 1003 (step S104). The motion compensation unit 105 performs motion compensation on the reference image stored in the frame memory 106 based on the generated motion vector 1003 (step S105).

【0084】加算器107は、逆変換符号化の結果と動
き補償の結果とを加算し、復号画像1004を生成する
(ステップS106)。
The adder 107 adds the result of the inverse transform coding and the result of the motion compensation to generate a decoded image 1004 (step S106).

【0085】解像度変換部109は、予め設定されてい
る解像度変換率1007に基づいて、生成された復号画
像1004の解像度を変換する(ステップS107)。
The resolution conversion unit 109 converts the resolution of the generated decoded image 1004 based on the preset resolution conversion rate 1007 (step S107).

【0086】また、係数符号解釈部101は、入力され
た画素係数符号1001に基づいて、符号化複雑度情報
1006を生成する(ステップS108)。
The coefficient code interpretation unit 101 also generates coding complexity information 1006 based on the input pixel coefficient code 1001 (step S108).

【0087】動きベクトル予測部108は、動きベクト
ル1003、符号化複雑度情報1006、および解像度
変換率1007に基づいて、予測ベクトル1005を生
成する(ステップS109)。
The motion vector prediction unit 108 generates a prediction vector 1005 based on the motion vector 1003, the coding complexity information 1006, and the resolution conversion rate 1007 (step S109).

【0088】動き探索部111は、フレームメモリ11
2に格納されている参照画像、予測ベクトル1005、
および解像度変換後の復号画像1008に基づいて、動
きベクトル1011を生成する(ステップS110)。
The motion search unit 111 uses the frame memory 11
2, the reference image, the prediction vector 1005,
And the motion vector 1011 is generated based on the decoded image 1008 after the resolution conversion (step S110).

【0089】動き補償部113は、動きベクトル101
1を用いて、フレームメモリ112に格納されている参
照画像の動き補償を行い、予測画像1012を生成する
(ステップS111)。
The motion compensating section 113 calculates the motion vector 101.
1, the motion compensation of the reference image stored in the frame memory 112 is performed, and the predicted image 1012 is generated (step S111).

【0090】減算器114は、解像度変換後の復号画像
1008と予測画像1012との差分をとり、差分画像
1013を生成する(ステップS112)。変換符号化
部115は、生成した差分画像1013の変換符号化を
行う。量子化部116は、変換符号化された差分画像1
013の量子化を行う(ステップS113)。
The subtractor 114 takes the difference between the decoded image 1008 after the resolution conversion and the predicted image 1012 to generate a difference image 1013 (step S112). The transform coding unit 115 performs transform coding of the generated difference image 1013. The quantization unit 116 uses the transform-encoded difference image 1
Quantization of 013 is performed (step S113).

【0091】次に、図5に遷移して、可変長符号化部1
17は、変換符号化・量子化された差分画像1013を
可変長符号化し、変換符号化・量子化された後に可変長
符号化された差分画像1013を、画素係数符号100
9として出力する(ステップS114)。
Next, transitioning to FIG. 5, the variable length coding unit 1
Reference numeral 17 denotes variable-length coding of the difference image 1013 that has been transform-coded and quantized, and the difference image 1013 that has been variable-length coded after being transform-coded and quantized is converted into the pixel coefficient code 100.
It is output as 9 (step S114).

【0092】また、可変長符号化部118は、動き探索
部111により生成された動きベクトル1011を可変
長符号化し、可変長符号化した動きベクトル1011
を、動きベクトル符号1010として出力する(ステッ
プS115)。
Further, the variable length coding unit 118 performs variable length coding on the motion vector 1011 generated by the motion search unit 111, and performs the variable length coding on the motion vector 1011.
Is output as the motion vector code 1010 (step S115).

【0093】変換符号化・量子化された差分画像101
3は、逆量子化部119により逆量子化された後、逆変
換符号化部120により逆変換符号化される(ステップ
S116)。
Transform-coded / quantized difference image 101
3 is inversely quantized by the inverse quantization unit 119 and then inversely transformed and coded by the inverse transform coding unit 120 (step S116).

【0094】加算器121は、逆変換符号化部120に
より逆変換された差分画像と動き補償部113により生
成された予測画像1012との和を生成し、生成した和
を参照画像としてフレームメモリ112に格納する(ス
テップS117)。以上で、動画像符号列変換装置は、
動作を終了する。
The adder 121 generates the sum of the difference image inversely transformed by the inverse transform encoder 120 and the prediction image 1012 produced by the motion compensator 113, and the produced sum is used as a reference image in the frame memory 112. (Step S117). As described above, the moving image code string conversion device is
The operation ends.

【0095】以上、説明したように、本実施形態によれ
ば、解像度変換前の所定の領域内における複数のブロッ
クのうち、最も符号化複雑度の値が大きなブロックに対
応する動きベクトルをスケーリングし、予測ベクトル1
005とする。従って、本実施形態では、高予測効率か
つ低演算量で再符号化処理を行うことが可能となる。
As described above, according to the present embodiment, the motion vector corresponding to the block having the largest coding complexity value among the plurality of blocks in the predetermined region before resolution conversion is scaled. , Prediction vector 1
005. Therefore, in the present embodiment, it is possible to perform re-encoding processing with high prediction efficiency and low calculation amount.

【0096】(第2の実施形態)図6は、本発明の第2
の実施形態における動画像符号列変換装置の構成図であ
る。図7は、本発明の第2の実施形態における符号化複
雑度の分散とサブブロック動き補償予測との関係の概念
を示す図である。図8は、本発明の第2の実施形態にお
ける動画像符号列変換装置による動画像符号列変換装置
によるサブブロック動き補償と通常の動き補償における
動きベクトル割り当ての一例を示す図である。以下、本
発明の第2の実施形態について、図6から図8を用いて
説明する。
(Second Embodiment) FIG. 6 shows a second embodiment of the present invention.
It is a block diagram of the moving image code sequence conversion apparatus in the embodiment of. FIG. 7 is a diagram showing the concept of the relationship between the variance of the coding complexity and the sub-block motion compensation prediction in the second embodiment of the present invention. FIG. 8 is a diagram showing an example of motion vector allocation in sub-block motion compensation and normal motion compensation by the moving picture code string conversion apparatus according to the second embodiment of the present invention. Hereinafter, the second embodiment of the present invention will be described with reference to FIGS. 6 to 8.

【0097】本実施形態における動画像符号列変換装置
の構成は、以下、特記しない限り、本発明の第1の実施
形態における構成と同様であるとして説明を進める。
Unless otherwise specified, the structure of the moving picture code string converting apparatus in this embodiment will be described below as being the same as the structure in the first embodiment of the present invention.

【0098】図6に示されているように、本実施形態に
おける動画像符号列変換装置は、図1に示される第1の
実施形態における動画像符号列変換装置と比較して、符
号化モード決定部122をさらに有することを特徴とす
る。
As shown in FIG. 6, the moving picture code string converting apparatus according to the present embodiment has a higher coding mode than the moving picture code string converting apparatus according to the first embodiment shown in FIG. It is characterized by further including a determining unit 122.

【0099】本実施形態における動画像符号化部110
では、通常行われるブロック単位の動き補償予測(通常
モード)の他に、ブロック内の複数のサブブロック毎に
動き補償予測を行うサブブロックモードが用いられる。
例えば、本実施形態における動画像符号列変換装置が行
う画像符号化方式として、ISO/IECの定める画像
符号化の標準方式MPEG−4が用いられる場合、動画
像符号化部110は、サイズが16×16のブロックで
行われる通常の動き補償予測、もしくはサイズが8×8
の4つのブロックで行われるサブブロック動き補償予測
を選択的に行う。
The moving picture coding unit 110 in this embodiment.
In addition to the block-based motion-compensated prediction that is normally performed (normal mode), a sub-block mode that performs motion-compensated prediction for each of a plurality of sub-blocks in a block is used.
For example, when the standard MPEG-4 image encoding method defined by ISO / IEC is used as the image encoding method performed by the moving image code sequence conversion apparatus according to the present embodiment, the moving image encoding unit 110 has a size of 16 Ordinary motion-compensated prediction performed on × 16 blocks, or size 8 × 8
Sub-block motion-compensated prediction performed on the four blocks is selectively performed.

【0100】符号化モード決定部122は、動きベクト
ル1003および符号化複雑度情報1006を参照し
て、動き補償予測のモードを表す符号化モード1015
を生成する。
The coding mode determining unit 122 refers to the motion vector 1003 and the coding complexity information 1006, and the coding mode 1015 representing the motion compensation prediction mode.
To generate.

【0101】符号化モードの決定について図2を用いて
さらに詳説する。第1の実施形態において図3で説明し
たように、符号化複雑度の高いブロックほど動きベクト
ルが最適でない場合の予測効率が低下することから、領
域を細分化して動き補償予測を行うサブブロックモード
を用いることによる利得が大きいと考えられる。
The determination of the coding mode will be described in more detail with reference to FIG. As described with reference to FIG. 3 in the first embodiment, since the prediction efficiency when the motion vector is not optimal decreases as the block having a higher coding complexity, the sub-block mode in which the region is subdivided and the motion compensation prediction is performed. It is considered that the gain by using is large.

【0102】符号化モード決定部122は、再符号化時
のブロックb2に対応する解像度変換前の領域b1に含
まれる複数のブロックについて、それぞれの符号化複雑
度情報1006の和あるいは平均と、ある定められた値
である閾値Taと、を比較する(和の場合と平均の場合
では閾値が異なってもよい)。符号化複雑度情報100
6の和あるいは平均が閾値Taよりも小さい場合、符号
化モード決定部122は、ブロックb2の動き補償予測
を通常モードに決定する。また、符号化複雑度情報10
06の和あるいは平均が閾値Taよりも大きい場合、符
号化モード決定部122は、ブロックb2の動き補償予
測をサブブロックモードに決定する。
The encoding mode determining unit 122 has the sum or average of the encoding complexity information 1006 of each of a plurality of blocks included in the area b1 before resolution conversion corresponding to the block b2 at the time of re-encoding. The threshold value Ta, which is a predetermined value, is compared (the threshold value may be different between the case of sum and the case of average). Encoding complexity information 100
When the sum or average of 6 is smaller than the threshold value Ta, the coding mode determination unit 122 determines the motion compensation prediction of the block b2 as the normal mode. Also, the encoding complexity information 10
When the sum or average of 06 is larger than the threshold value Ta, the coding mode determination unit 122 determines the motion compensation prediction of the block b2 as the sub-block mode.

【0103】また、他の判定指標として、領域b1に含
まれる複数のブロックについて符号化複雑度情報100
6の分散が用いられる。以下、符号化複雑度情報の分散
と動き補償予測の関係について図7を用いて説明する。
As another determination index, the coding complexity information 100 for a plurality of blocks included in the area b1 is used.
A variance of 6 is used. Hereinafter, the relationship between the variance of the coding complexity information and the motion compensation prediction will be described with reference to FIG. 7.

【0104】図7に示されるように、画像フレームF2
内の物体C2は、ベクトルV1の方向に移動しているの
に対し、背景領域(フレームF2における物体C2を除
いた領域)は、ベクトルV2の方向に移動している。ブ
ロックb2は、サブブロックsb21、sb22、sb
23、sb24により構成されている。
As shown in FIG. 7, the image frame F2
The object C2 inside is moving in the direction of the vector V1, whereas the background area (the area excluding the object C2 in the frame F2) is moving in the direction of the vector V2. The block b2 is a sub-block sb21, sb22, sb.
23 and sb24.

【0105】物体C2の境界上にあるブロックb2を符
号化する際には、物体C2との共通領域が大きい右側の
サブブロック(サブブロックsb23、sb24)と、
完全に背景領域に含まれる左側の領域(サブブロックs
b21、sb22)と、で別々に動き補償を行う方が予
測効率が高くなる。個々のサブブロック内係数の複雑度
に差があるブロックは、異なる係数分布を持つ領域毎に
動き補償予測を行うことで符号化効率が大きく向上す
る。
When coding the block b2 on the boundary of the object C2, the right sub-block (sub-blocks sb23, sb24) having a large common area with the object C2,
An area on the left side (sub-block s) completely included in the background area
Prediction efficiency is higher if motion compensation is separately performed for b21 and sb22). Coding efficiency is greatly improved for blocks having different coefficients in subblocks by performing motion compensation prediction for each region having a different coefficient distribution.

【0106】符号化モード決定部122は、領域b1に
おける符号化複雑度情報1006の分散がある定められ
た値である閾値Tbよりも大きい場合に、ブロックb2
の動き補償予測をサブブロックモードとする。また、符
号化モード決定部122は、領域b1における符号化複
雑度情報1006の分散が閾値Tbよりも小さい場合
に、ブロックb2の動き補償予測を通常モードとする。
The coding mode determining unit 122 determines that the block b2 is set when the variance of the coding complexity information 1006 in the area b1 is larger than a threshold value Tb which is a predetermined value.
The motion compensation prediction of is set to the sub-block mode. In addition, the coding mode determination unit 122 sets the motion compensation prediction of the block b2 to the normal mode when the variance of the coding complexity information 1006 in the region b1 is smaller than the threshold Tb.

【0107】また、他の判定指標として、領域b1に含
まれる複数のブロックに対応する動きベクトル1003
の分散を用いてもよい。領域b1に含まれる複数のブロ
ックに対応する動きベクトル1003の分散が、ある定
められた値である第1の閾値Tc1よりも大きい場合、
符号化モード決定部122は、ブロックb2の動き補償
予測をサブブロックモードとする。
As another determination index, motion vectors 1003 corresponding to a plurality of blocks included in the area b1.
Dispersions may be used. When the variance of the motion vector 1003 corresponding to the plurality of blocks included in the region b1 is larger than the first threshold value Tc1 which is a predetermined value,
The coding mode determination unit 122 sets the motion-compensated prediction of the block b2 to the sub-block mode.

【0108】一般に、サブブロックモードは、細分化さ
れた領域に対して動き補償を行うため、予測効率が通常
の動き補償よりも向上し画質改善につながる。その一
方、符号化される動きベクトルの数が増えるため、動き
ベクトルに割り当てられる符号量が大きく増大した場合
には符号化効率が却って低下する。符号化モード決定部
122は、領域b1に含まれる複数のブロックに対応す
る動きベクトル1003の分散が、ある定められた値で
ある第2の閾値Tc2よりも大きい場合には、ベクトル
の符号化によって全体の符号化効率が低下するとみな
し、ブロックb2の動き補償予測を通常のブロック単位
のものとする。
In general, in the sub-block mode, motion compensation is performed on a subdivided area, so that the prediction efficiency is improved as compared with normal motion compensation, leading to an improvement in image quality. On the other hand, since the number of motion vectors to be coded increases, if the code amount assigned to the motion vector significantly increases, the coding efficiency rather decreases. When the variance of the motion vector 1003 corresponding to a plurality of blocks included in the region b1 is larger than the second threshold value Tc2 which is a predetermined value, the coding mode determination unit 122 performs vector coding. Since it is considered that the overall coding efficiency is lowered, the motion-compensated prediction of the block b2 is performed in a normal block unit.

【0109】以上説明したように、動きベクトル100
3の分散が第1の閾値Tc1より大きく、かつ第2の閾
値Tc2以下の場合は、符号化モードとしてサブブロッ
クモードが選択される。また、動きベクトル1003の
分散が第1の閾値Tc1以下の場合、あるいは第2の閾
値Tc2よりも大きな場合は、符号化モードとして通常
モードが選択される。
As described above, the motion vector 100
When the variance of 3 is larger than the first threshold Tc1 and is equal to or smaller than the second threshold Tc2, the sub-block mode is selected as the encoding mode. If the variance of the motion vector 1003 is less than or equal to the first threshold Tc1 or greater than the second threshold Tc2, the normal mode is selected as the encoding mode.

【0110】動きベクトル予測部123は、符号化モー
ドが通常の動き補償予測(通常モード)をさす場合、本
発明の第1の実施形態におけるベクトル予測と同様に候
補ベクトルから符号化複雑度情報1006を参照して予
測ベクトル1005を生成する。
When the coding mode refers to a normal motion compensation prediction (normal mode), the motion vector predicting unit 123 calculates coding complexity information 1006 from the candidate vector as in the vector prediction in the first embodiment of the present invention. To generate a prediction vector 1005.

【0111】また、符号化モードがサブブロックモード
をさす場合には、動きベクトル1003を適宜サブブロ
ックの動きベクトルとして割り当て、解像度変換率10
07に従ってスケーリングした値を予測ベクトル100
5として生成する。
When the coding mode refers to the sub-block mode, the motion vector 1003 is appropriately assigned as the motion vector of the sub-block, and the resolution conversion rate 10
The vector scaled according to 07 is the prediction vector 100
Generate as 5.

【0112】図8は、本実施形態における水平垂直の双
方に二分の一にダウンサンプルした画像において、通常
の動き補償予測(通常モード)と4つのサブブロックに
よる動き補償予測(サブブロックモード)とにおけるベ
クトルの割り当てを表す図である。
FIG. 8 shows normal motion-compensated prediction (normal mode) and motion-compensated prediction by four sub-blocks (sub-block mode) in an image downsampled to half in both the horizontal and vertical directions in this embodiment. 3 is a diagram showing vector allocation in FIG.

【0113】フレームF1は、元ストリームにおける画
像フレームである。領域b1は、フレームF1上の所定
領域を示し、複数(本実施形態では2×2の4つ)のブ
ロックからなる。領域b1に含まれる複数のブロックご
とに、それぞれ動きベクトルが算出されている。また、
フレームF2は通常モードにより再符号化されたフレー
ムであり、ブロックb2はフレームF1上の領域b1に
対応するフレームF2上のブロックである。また、フレ
ームF2' はサブブロックモードにより再符号化された
フレームであり、ブロックb2' は領域b1に対応する
フレームF2'上のブロックである。なお、領域b1上
の4本の動きベクトルは、動きベクトル1003に相当
し、ブロックb2あるいはブロックb2' 上の動きベク
トルは、予測ベクトル1005に相当する。
The frame F1 is an image frame in the original stream. The area b1 indicates a predetermined area on the frame F1 and is made up of a plurality of (2 × 2, four in this embodiment) blocks. The motion vector is calculated for each of the plurality of blocks included in the region b1. Also,
The frame F2 is a frame re-encoded in the normal mode, and the block b2 is a block on the frame F2 corresponding to the area b1 on the frame F1. Further, the frame F2 ′ is a frame re-encoded in the sub-block mode, and the block b2 ′ is a block on the frame F2 ′ corresponding to the area b1. The four motion vectors on the area b1 correspond to the motion vector 1003, and the motion vector on the block b2 or the block b2 ′ corresponds to the prediction vector 1005.

【0114】画像F1を解像度変換したF2' における
ブロックb2' に対して各々のサブブロックについて動
き補償予測を行う場合(サブブロックモード)には、領
域b1に含まれる複数のブロックに対応する動きベクト
ルをそれぞれスケーリングしてサブブロックに割り当て
ていく。また、ブロックb2に対し通常の動き補償予測
を行う場合(通常モード)には、第1の実施形態に示し
たものと同様の方法によって領域b1に含まれる複数の
ブロックに対応する動きベクトルから適切なベクトルを
選択した後解像度変換率に従ってスケーリングを行う。
When motion-compensated prediction is performed for each sub-block for the block b2 'in the resolution F2' of the image F1 (sub-block mode), motion vectors corresponding to a plurality of blocks included in the region b1 are calculated. Are each scaled and assigned to sub-blocks. Further, when the normal motion compensation prediction is performed on the block b2 (normal mode), it is appropriate from the motion vectors corresponding to the plurality of blocks included in the region b1 by the same method as that shown in the first embodiment. After selecting a proper vector, scaling is performed according to the resolution conversion rate.

【0115】動き探索部124は、符号化モード101
5に従い、予測ベクトル1005を参照して動きベクト
ル1011を生成する。また、動き補償部125は、符
号化モード1015および動きベクトル1011に基づ
いて動き補償予測を行う。
The motion search unit 124 uses the coding mode 101.
5, the motion vector 1011 is generated by referring to the prediction vector 1005. The motion compensation unit 125 also performs motion compensation prediction based on the coding mode 1015 and the motion vector 1011.

【0116】以上説明したように、本実施形態では、符
号化モード選択の判定基準として、 符号化複雑度情報1006の和あるいは平均、符号
化複雑度情報1006の分散、および動きベクトル1
003の分散を用いるとした。判定基準としては、上記
の〜のいずれか1つを用いるようにしてもよいし、
その組み合わせ(〜の全てを含む)を用いるように
してもよい。
As described above, in this embodiment, the sum or average of the coding complexity information 1006, the variance of the coding complexity information 1006, and the motion vector 1 are used as the criterion for selecting the coding mode.
A dispersion of 003 was used. As the criterion, any one of the above items may be used,
The combination (including all of) may be used.

【0117】なお、本実施形態における1つのブロック
は、4つのサブブロックからなるものとしたが、ブロッ
クを構成するサブブロックの個数は、他の値であっても
よい。
Although one block in this embodiment is composed of four sub-blocks, the number of sub-blocks constituting the block may have other values.

【0118】本実施形態によれば、再符号化を行う領域
が複数のブロックにより構成され、上記の複数のブロッ
クにおける符号化複雑度情報1011の和あるいは平均
が閾値Taより大きな場合、再符号化時のフレームF2
におけるサブブロックごとに動き補償予測を行う。従っ
て、本実施形態では、再符号化処理における符号化効率
を向上させることが可能となる。
According to this embodiment, when the region to be re-encoded is composed of a plurality of blocks and the sum or average of the encoding complexity information 1011 in the plurality of blocks is larger than the threshold value Ta, the re-encoding is performed. Frame of time F2
Motion-compensated prediction is performed for each sub-block in. Therefore, in the present embodiment, it is possible to improve the coding efficiency in the re-coding process.

【0119】また、本実施形態によれば、再符号化を行
う領域が複数のブロックにより構成され、上記の複数の
ブロックにおける符号化複雑度情報1011の分散が閾
値Tbより大きな場合、再符号化時のフレームF2にお
けるサブブロックごとに動き補償予測を行う。従って、
本実施形態では、再符号化処理における符号化効率を向
上させることが可能となる。
Further, according to the present embodiment, when the area to be re-encoded is composed of a plurality of blocks and the variance of the encoding complexity information 1011 in the plurality of blocks is larger than the threshold Tb, the re-encoding is performed. Motion-compensated prediction is performed for each sub-block in the frame F2 at that time. Therefore,
In this embodiment, it is possible to improve the coding efficiency in the re-coding process.

【0120】また、本実施形態によれば、再符号化を行
う領域が複数のブロックにより構成され、上記の複数の
ブロックにおける動きベクトルの分散が閾値Tc1より
大きく、閾値Tc2以下の場合、再符号化時のフレーム
F2におけるサブブロックごとに動き補償予測を行う。
従って、本実施形態では、再符号化処理における符号化
効率を向上させることが可能となる。
Further, according to the present embodiment, when the region to be re-encoded is composed of a plurality of blocks and the variance of the motion vector in the plurality of blocks is larger than the threshold value Tc1 and not more than the threshold value Tc2, the re-encoding is performed. Motion-compensated prediction is performed for each sub-block in the frame F2 at the time of conversion.
Therefore, in the present embodiment, it is possible to improve the coding efficiency in the re-coding process.

【0121】また、動画像符号列変換装置は、動き補償
予測を用いた第1の動画像符号列を復号し、第1の動画
像符号列から符号化単位となるブロックごとの係数符号
の複雑度を表す符号化複雑度情報と動き補償予測に用い
られる第1の動きベクトルとを検出する処理と、復号画
像に対して予め定められた解像度変換率に従って解像度
変換を行う処理と、検出された第1の動きベクトルおよ
び符号化複雑度情報と解像度変換率とを参照して第2の
動画像符号列における動き補償予測に用いられる第2の
動きベクトルを生成する処理と、第2の動きベクトルを
参照し、動き補償予測を用いて第2の動画像符号列を生
成する処理と、検出された第1の動きベクトルおよび符
号化複雑度情報を参照して第2の動画像符号列における
ブロックごとの動き補償予測の種別を表す符号化モード
を決定する処理と、第2の動きベクトルと符号化モード
とを参照し、動き補償予測を用いて第2の動画像符号列
を生成する処理と、を行う。上記の処理は、動画像符号
列変換装置が有するコンピュータプログラムにより実行
されるが、上記のプログラムは、光ディスクあるいは磁
気ディスク等の記録媒体に記録され、上記の記録媒体か
らロードされるようにしてもよいし、所定のネットワー
クを介して接続されている外部機器からロードされるよ
うにしてもよい。
Also, the moving picture code string conversion apparatus decodes the first moving picture code string using the motion compensation prediction, and the coefficient code for each block, which is a coding unit, is complicated from the first moving picture code string. Of the encoded complexity information indicating the degree and the first motion vector used for the motion compensation prediction, the process of performing resolution conversion on the decoded image according to a predetermined resolution conversion rate, and the detected process. A process of generating a second motion vector used for motion compensation prediction in a second moving image code string by referring to the first motion vector, coding complexity information, and resolution conversion rate; and a second motion vector And a process of generating a second moving image code sequence using motion compensation prediction, and a block in the second moving image code sequence by referring to the detected first motion vector and coding complexity information. Movement of each A process of determining a coding mode representing the type of compensation prediction and a process of referring to the second motion vector and the coding mode to generate a second moving image code string using motion compensation prediction are performed. . The above-mentioned processing is executed by a computer program included in the moving picture code string conversion apparatus. However, the above-mentioned program is recorded in a recording medium such as an optical disk or a magnetic disk and may be loaded from the above-mentioned recording medium. Alternatively, it may be loaded from an external device connected via a predetermined network.

【0122】[0122]

【発明の効果】本発明によれば、係数符号より得られる
ブロック毎の複雑度を比較して再符号化時のベクトル統
合を行う。従って、本発明に用いる統合処理は演算量を
ほとんど必要とせず、ブロックの係数分布を考慮するこ
とで予測効率を大きく損なわずに動き補償処理を行うこ
とができる。
According to the present invention, vector integration at the time of re-encoding is performed by comparing the complexity of each block obtained from coefficient codes. Therefore, the integration process used in the present invention requires almost no calculation amount, and by considering the coefficient distribution of the block, the motion compensation process can be performed without significantly impairing the prediction efficiency.

【0123】また、本発明によれば、サブブロック動き
補償を機能の一つとして持つ符号化方法への変換におい
て、元ストリームの係数符号より得られるサブブロック
毎の複雑度および動きベクトルの分布を用いて通常の動
き補償予測と適宜切り替える。従って、演算量の増大も
なく符号化効率をさらに向上させることができる。
Further, according to the present invention, in the conversion to the coding method having the sub-block motion compensation as one of the functions, the complexity and the motion vector distribution for each sub-block obtained from the coefficient code of the original stream are calculated. It is used to switch appropriately to the normal motion compensation prediction. Therefore, the coding efficiency can be further improved without increasing the calculation amount.

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

【図1】本発明の第1の実施形態における動画像符号列
変換装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a moving picture code string conversion apparatus in a first embodiment of the present invention.

【図2】解像度変換に伴う元ストリームと再符号化時の
動きベクトルの関係を示す図である。
[Fig. 2] Fig. 2 is a diagram illustrating a relationship between an original stream associated with resolution conversion and a motion vector upon re-encoding.

【図3】本発明の第1の実施形態における符号化複雑度
と動き補償予測の関係を説明する概念図である。
FIG. 3 is a conceptual diagram illustrating a relationship between coding complexity and motion compensation prediction according to the first embodiment of the present invention.

【図4】本発明の第1の実施形態における動画像符号列
変換装置による動作の流れを示すフローチャートであ
る。
FIG. 4 is a flowchart showing a flow of operations performed by the moving picture code string conversion apparatus in the first embodiment of the present invention.

【図5】本発明の第1の実施形態における動画像符号列
変換装置による動作の流れを示すフローチャートであ
る。
FIG. 5 is a flowchart showing a flow of operations performed by the moving image code string conversion apparatus in the first embodiment of the present invention.

【図6】本発明の第2の実施形態における動画像符号列
変換装置の構成を示すブロック図である。
FIG. 6 is a block diagram showing a configuration of a moving picture code string conversion device according to a second embodiment of the present invention.

【図7】本発明の第2の実施形態における符号化複雑度
の分散とサブブロック動き補償予測の関係を説明する概
念図である。
[Fig. 7] Fig. 7 is a conceptual diagram illustrating a relationship between variance of coding complexity and sub-block motion compensation prediction according to the second embodiment of the present invention.

【図8】本発明の第2の実施形態におけるサブブロック
動き補償と通常の動き補償における動きベクトル割り当
ての一例を示す図である。
[Fig. 8] Fig. 8 is a diagram illustrating an example of motion vector allocation in sub-block motion compensation and normal motion compensation according to the second embodiment of the present invention.

【図9】従来技術による動画像符号列変換装置の構成を
示すブロック図である。
FIG. 9 is a block diagram showing a configuration of a moving image code string conversion apparatus according to a conventional technique.

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

100 動画像復号部 101 係数符号解釈部 102 動きベクトル符号解釈部 103、119 逆量子化部 104、120 逆変換符号化部 105、113、125 動き補償部 106、112 フレームメモリ 107、121 加算器 108、123 動きベクトル予測部 109 解像度変換部 110 動画像符号化部 111、124 動き探索部 114 減算器 115 変換符号化部 116 量子化部 117、118 可変長符号化部 122 符号化モード決定部 1001、1009 画素係数符号 1002、1010 動きベクトル符号 1003、1011 動きベクトル 1004、1008 復号画像 1005 予測ベクトル 1006 符号化複雑度情報 1007 解像度変換率 1012 予測画像 1013 差分画像 1014 係数データ 1015 符号化モード F1、F2 フレーム b1 領域 b2 符号化ブロック sb21〜sb24 サブブロック Ta、Tb、Tc1、Tc2 閾値 100 Video decoding unit 101 coefficient code interpretation unit 102 motion vector code interpretation unit 103, 119 inverse quantizer 104, 120 inverse transform coding unit 105, 113, 125 Motion compensation unit 106, 112 frame memory 107, 121 adder 108, 123 Motion vector predictor 109 resolution converter 110 Video Coding Unit 111, 124 motion search unit 114 subtractor 115 transform coding unit 116 quantizer 117, 118 Variable length coding unit 122 Encoding mode determination unit 1001, 1009 Pixel coefficient code 1002, 1010 motion vector code 1003, 1011 motion vector 1004, 1008 Decoded image 1005 prediction vector 1006 encoding complexity information 1007 Resolution conversion rate 1012 prediction image 1013 Difference image 1014 coefficient data 1015 encoding mode F1 and F2 frames b1 area b2 coded block sb21 to sb24 sub blocks Ta, Tb, Tc1, Tc2 threshold

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK11 KK41 MA00 MA23 MC11 MC38 ME01 NN01 NN21 NN28 PP04 RC16 TA61 TB08 TC04 TC10 TC18 TD12 UA02 UA05 UA33 5J064 AA02 BA09 BB03 BC01 BC02 BC08 BC16 BD01    ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5C059 KK11 KK41 MA00 MA23 MC11                       MC38 ME01 NN01 NN21 NN28                       PP04 RC16 TA61 TB08 TC04                       TC10 TC18 TD12 UA02 UA05                       UA33                 5J064 AA02 BA09 BB03 BC01 BC02                       BC08 BC16 BD01

Claims (43)

【特許請求の範囲】[Claims] 【請求項1】 第1の動画像符号列を復号して得られた
復号画像を解像度変換した後に新たに符号化して第2の
動画像符号列を生成する動画像符号列変換装置であっ
て、 前記第1の動画像符号列に含まれる係数符号の複雑度
と、前記第1の動画像符号列における動き補償予測に用
いられる第1の動きベクトルと、に基づいて、前記第2
の動画像符号列における動き補償予測に用いられる第2
の動きベクトルを生成することを特徴とする動画像符号
列変換装置。
1. A moving picture code string conversion apparatus for generating a second moving picture code string by newly encoding after performing resolution conversion on a decoded image obtained by decoding a first moving picture code string. The second motion vector based on the complexity of the coefficient code included in the first motion picture code sequence and the first motion vector used for motion compensation prediction in the first motion picture code sequence.
Second used for motion-compensated prediction in a moving image code sequence
A moving picture code string conversion apparatus, characterized in that it generates a motion vector of
【請求項2】 第1の動画像符号列を復号して得られた
復号画像を解像度変換した後に新たに符号化して第2の
動画像符号列を生成する動画像符号列変換装置であっ
て、 動き補償予測を用いた前記第1の動画像符号列を復号
し、前記第1の動画像符号列から、符号化単位となるブ
ロックごとの係数符号の複雑度を表す符号化複雑度情報
と、動き補償予測に用いられる第1の動きベクトルと、
を検出する動画像復号手段と、 該動画像復号手段により得られた復号画像に対して、予
め定められた解像度変換率に従って解像度変換を行う解
像度変換手段と、 前記動画像復号手段により検出された第1の動きベクト
ルおよび符号化複雑度情報と、前記解像度変換率と、を
参照して、前記第2の動画像符号列における動き補償予
測に用いられる第2の動きベクトルを生成する動きベク
トル予測手段と、 前記第2の動きベクトルを参照し、前記動き補償予測を
用いて、前記第2の動画像符号列を生成する動画像符号
化手段と、 を有することを特徴とする動画像符号列変換装置。
2. A moving picture code string conversion apparatus for generating a second moving picture code string by newly encoding the decoded image obtained by decoding the first moving picture code string after resolution conversion. , Decoding the first moving image code sequence using motion compensation prediction, and encoding complexity information indicating the degree of complexity of a coefficient code for each block, which is an encoding unit, from the first moving image code sequence, , A first motion vector used for motion compensated prediction,
A moving image decoding means for detecting the resolution, a resolution converting means for performing resolution conversion on the decoded image obtained by the moving image decoding means in accordance with a predetermined resolution conversion rate, and a moving image decoding means for detecting Motion vector prediction that refers to the first motion vector and coding complexity information, and the resolution conversion rate to generate a second motion vector used for motion compensation prediction in the second moving image code string And a moving picture coding means for generating the second moving picture code string by using the motion compensation prediction with reference to the second motion vector. Converter.
【請求項3】 前記動画像復号手段は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号の符号量を出力す
ることを特徴とする請求項2記載の動画像符号列変換装
置。
3. The moving picture decoding means outputs, as the coding complexity information, a code amount of a coefficient code for each block in the first moving picture code string. Video code string converter.
【請求項4】 前記動画像復号手段は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号を復号した変換係
数のうち、非0係数の数を出力することを特徴とする請
求項2記載の動画像符号列変換装置。
4. The moving picture decoding means outputs, as the coding complexity information, the number of non-zero coefficients among the transform coefficients obtained by decoding the coefficient code for each block in the first moving picture code string. The moving picture code string conversion apparatus according to claim 2, wherein
【請求項5】 前記動画像復号手段は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号を復号した変換係
数の絶対値和を出力することを特徴とする請求項2記載
の動画像符号列変換装置。
5. The moving image decoding means outputs, as the encoding complexity information, an absolute value sum of transform coefficients obtained by decoding the coefficient code of each block in the first moving image code string. The moving picture code string conversion apparatus according to claim 2.
【請求項6】 前記動きベクトル予測手段は、 再符号化時の前記ブロックごとに対応する解像度変換前
の領域に含まれる複数ブロックを選択し、該複数ブロッ
クのうち前記符号化複雑度情報により示される符号化複
雑度の最も大きなブロックに対応する動きベクトルを、
前記解像度変換率に応じてスケール変換を行い、前記第
2の動きベクトルとすることを特徴とする請求項2記載
の動画像符号列変換装置。
6. The motion vector predicting means selects a plurality of blocks included in a region before resolution conversion corresponding to each of the blocks at the time of re-encoding, and indicates the plurality of blocks by the encoding complexity information. The motion vector corresponding to the block with the largest coding complexity
The moving picture code sequence conversion apparatus according to claim 2, wherein scale conversion is performed according to the resolution conversion rate to obtain the second motion vector.
【請求項7】 第1の動画像符号列を復号して得られた
復号画像を解像度変換した後に新たに符号化して第2の
動画像符号列を生成する動画像符号列変換装置であっ
て、 動き補償予測を用いた前記第1の動画像符号列を復号
し、前記第1の動画像符号列から、符号化単位となるブ
ロックごとの係数符号の複雑度を表す符号化複雑度情報
と、動き補償予測に用いられる第1の動きベクトルと、
を検出する動画像復号手段と、 該動画像復号手段により得られた復号画像に対して、予
め定められた解像度変換率に従って解像度変換を行う解
像度変換手段と、 前記動画像復号手段により検出された第1の動きベクト
ルおよび符号化複雑度情報を参照して、前記第2の動画
像符号列における前記ブロックごとの動き補償予測の種
別を表す符号化モードを決定する符号化モード決定手段
と、 前記動画像復号手段により検出された第1の動きベクト
ルおよび符号化複雑度情報と、前記解像度変換率と、を
参照して、前記第2の動画像符号列における動き補償予
測に用いられる第2の動きベクトルを生成する動きベク
トル予測手段と、 前記第2の動きベクトルと前記符号化モードとを参照
し、前記動き補償予測を用いて、前記第2の動画像符号
列を生成する動画像符号化手段と、 を有することを特徴とする動画像符号列変換装置。
7. A moving picture code string conversion device for generating a second moving picture code string by newly encoding the decoded image obtained by decoding the first moving picture code string after resolution conversion. , Decoding the first moving image code sequence using motion compensation prediction, and encoding complexity information indicating the degree of complexity of a coefficient code for each block, which is an encoding unit, from the first moving image code sequence, , A first motion vector used for motion compensated prediction,
And a resolution conversion unit that performs resolution conversion on the decoded image obtained by the moving image decoding unit according to a predetermined resolution conversion rate, and a resolution conversion unit that detects the moving image decoding unit. A coding mode determining unit that determines a coding mode indicating a type of motion compensation prediction for each block in the second moving image code string, with reference to a first motion vector and coding complexity information; By referring to the first motion vector and coding complexity information detected by the moving picture decoding means, and the resolution conversion rate, the second motion vector predictor used in the motion compensation prediction in the second moving picture code string is referred to. The motion vector predicting means for generating a motion vector, the second motion vector and the encoding mode are referred to, and the second motion picture code sequence is generated by using the motion compensation prediction. And a moving picture coding means for generating the moving picture coding sequence.
【請求項8】 前記動画像復号手段は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号の符号量を出力す
ることを特徴とする請求項7記載の動画像符号列変換装
置。
8. The moving image decoding means outputs, as the encoding complexity information, a code amount of a coefficient code for each block in the first moving image code string. Video code string converter.
【請求項9】 前記動画像復号手段は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号を復号した変換係
数のうち、非0係数の数を出力することを特徴とする請
求項7記載の動画像符号列変換装置。
9. The moving picture decoding means outputs, as the coding complexity information, the number of non-zero coefficients among the transform coefficients obtained by decoding the coefficient code for each block in the first moving picture code string. The moving picture code string conversion apparatus according to claim 7, wherein:
【請求項10】 前記動画像復号手段は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号を復号した変換係
数の絶対値和を出力することを特徴とする請求項7記載
の動画像符号列変換装置。
10. The moving image decoding means outputs, as the encoding complexity information, an absolute value sum of transform coefficients obtained by decoding the coefficient code for each block in the first moving image code string. The moving picture code string conversion apparatus according to claim 7.
【請求項11】 前記符号化モード決定手段は、 ブロック全体に対して前記動き補償予測を行う通常モー
ドと、前記ブロックを複数のサブブロックに分割し、該
複数のサブブロックについて別々に前記動き補償予測を
行うサブブロックモードと、のうちのいずれかの符号化
モードを選択し、 前記動画像符号化手段は、 前記符号化モード決定手段により選択された符号化モー
ドに基づいて、前記動き補償予測を行い、 前記動きベクトル予測手段は、 前記通常モード時には一本の動きベクトルを出力し、前
記サブブロックモード時には前記複数のサブブロックの
動きベクトルをそれぞれ出力することを特徴とする請求
項7記載の動画像符号列変換装置。
11. The encoding mode determination means divides the block into a normal mode in which the motion compensation prediction is performed on the entire block and a plurality of sub-blocks, and separately performs the motion compensation on the plurality of sub-blocks. A sub-block mode for performing prediction, or any one of coding modes is selected, and the moving picture coding means is based on the coding mode selected by the coding mode determining means, and the motion compensation prediction is performed. 8. The motion vector predicting means outputs one motion vector in the normal mode, and outputs the motion vectors of the plurality of sub blocks in the sub block mode, respectively. Video code sequence converter.
【請求項12】 前記動きベクトル予測手段は、 前記通常モード時に、再符号化時のブロックごとに対応
し、解像度変換前の領域に含まれる複数ブロックを選択
し、該複数ブロックのうち前記符号化複雑度情報に含ま
れる符号化複雑度の最も大きなブロックに対応する動き
ベクトルを、前記解像度変換率に応じてスケール変換を
行い、前記第2の動きベクトルとすることを特徴とする
請求項11記載の動画像符号列変換装置。
12. The motion vector predicting means selects a plurality of blocks included in a region before resolution conversion corresponding to each block at the time of re-encoding in the normal mode, and performs the encoding among the plurality of blocks. The motion vector corresponding to the block having the largest coding complexity included in the complexity information is scale-converted according to the resolution conversion rate to be the second motion vector. Video code string converter.
【請求項13】 前記動きベクトル予測手段は、 前記サブブロックモード時に、再符号化時のブロックご
とに対応し、解像度変換前の領域に含まれる複数ブロッ
クを選択し、該複数ブロックの持つ動きベクトルを前記
解像度変換率に応じてスケール変換した後、再符号化時
の前記サブブロックの動きベクトルとして割り振ること
を特徴とする請求項11記載の動画像符号列変換装置。
13. The motion vector predicting means selects a plurality of blocks included in a region before resolution conversion corresponding to each block at the time of re-encoding in the sub-block mode, and a motion vector possessed by the plurality of blocks. 12. The moving picture code sequence conversion apparatus according to claim 11, wherein after performing scale conversion according to the resolution conversion rate, is assigned as a motion vector of the sub-block at the time of re-encoding.
【請求項14】 前記符号化モード決定手段は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの前記符号化複雑度情
報の平均が閾値Taより大きい場合、前記再符号化時の
ブロックに対して前記サブブロックモードを選択するこ
とを特徴とする請求項11記載の動画像符号列変換装
置。
14. The encoding mode determination means corresponds to a block at the time of re-encoding, and an average of the encoding complexity information of each block included in an area in a frame before resolution conversion is larger than a threshold value Ta. In this case, the moving picture code string conversion apparatus according to claim 11, wherein the sub-block mode is selected for the block at the time of re-encoding.
【請求項15】 前記符号化モード決定手段は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの前記符号化複雑度情
報の分散が閾値Tbより大きい場合、前記再符号化時の
ブロックに対して前記サブブロックモードを選択するこ
とを特徴とする請求項11記載の動画像符号列変換装
置。
15. The encoding mode determining means corresponds to a block at the time of re-encoding, and a variance of the encoding complexity information of each block included in an area in a frame before resolution conversion is larger than a threshold Tb. In this case, the moving picture code string conversion apparatus according to claim 11, wherein the sub-block mode is selected for the block at the time of re-encoding.
【請求項16】 前記符号化モード決定手段は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの動きベクトルの分散
が閾値Tc1より大きく、かつ閾値Tc2以下である場
合、前記再符号化時のブロックに対して前記サブブロッ
クモードを選択することを特徴とする請求項11記載の
動画像符号列変換装置。
16. The encoding mode determining means corresponds to a block at the time of re-encoding, and a motion vector of each block included in an area in a frame before resolution conversion has a variance larger than a threshold value Tc1 and a threshold value Tc2. 12. The moving picture code sequence conversion apparatus according to claim 11, wherein the sub-block mode is selected for the block at the time of re-encoding in the following cases.
【請求項17】 前記符号化モード決定手段は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの動きベクトルの分散
が閾値Tc1以下である場合、あるいは閾値Tc2より
大きい場合、前記再符号化時のブロックに対して前記通
常モードを選択することを特徴とする請求項11に記載
の動画像符号列変換装置。
17. The encoding mode determination means corresponds to a block at the time of re-encoding, and a variance of motion vectors of each block included in an area in a frame before resolution conversion is equal to or less than a threshold value Tc1, or The moving picture code sequence conversion apparatus according to claim 11, wherein the normal mode is selected for the block at the time of re-encoding when the value is larger than the threshold value Tc2.
【請求項18】 第1の動画像符号列を復号して得られ
た復号画像を解像度変換した後に新たに符号化して第2
の動画像符号列を生成する動画像符号列変換方法であっ
て、 前記第1の動画像符号列に含まれる係数符号の複雑度
と、前記第1の動画像符号列における動き補償予測に用
いられる第1の動きベクトルと、に基づいて、前記第2
の動画像符号列における動き補償予測に用いられる第2
の動きベクトルを生成することを特徴とする動画像符号
列変換方法。
18. A decoded image obtained by decoding the first moving image code sequence is resolution-converted and then newly encoded to obtain a second moving image.
A moving picture code string conversion method for generating a moving picture code string, the method being used for the complexity of coefficient codes included in the first moving picture code string and motion compensated prediction in the first moving picture code string. And a second motion vector based on the second motion vector
Second used for motion-compensated prediction in a moving image code sequence
A method for converting a moving image code string, which comprises generating a motion vector of
【請求項19】 第1の動画像符号列を復号して得られ
た復号画像を解像度変換した後に新たに符号化して第2
の動画像符号列を生成する動画像符号列変換方法であっ
て、 動き補償予測を用いた前記第1の動画像符号列を復号
し、前記第1の動画像符号列から、符号化単位となるブ
ロックごとの係数符号の複雑度を表す符号化複雑度情報
と、動き補償予測に用いられる第1の動きベクトルと、
を検出する動画像復号工程と、 該動画像復号工程により得られた復号画像に対して、予
め定められた解像度変換率に従って解像度変換を行う解
像度変換工程と、 前記動画像復号工程により検出された第1の動きベクト
ルおよび符号化複雑度情報と、前記解像度変換率と、を
参照して、前記第2の動画像符号列における動き補償予
測に用いられる第2の動きベクトルを生成する動きベク
トル予測工程と、 前記第2の動きベクトルを参照し、前記動き補償予測を
用いて、前記第2の動画像符号列を生成する第1の動画
像符号化工程と、 を有することを特徴とする動画像符号列変換方法。
19. A decoded image obtained by decoding a first moving image code sequence is resolution-converted and then newly encoded to obtain a second image.
Is a moving picture code string conversion method for generating a moving picture code string, wherein the first moving picture code string is decoded using motion compensation prediction, and the first moving picture code string is converted into a coding unit. Encoding complexity information indicating the complexity of coefficient code for each block, and a first motion vector used for motion compensation prediction,
And a resolution conversion step of performing resolution conversion on the decoded image obtained by the moving picture decoding step according to a predetermined resolution conversion rate, and a moving picture decoding step detected by the moving picture decoding step. Motion vector prediction that refers to the first motion vector and coding complexity information, and the resolution conversion rate to generate a second motion vector used for motion compensation prediction in the second moving image code string And a first moving picture coding step of generating the second moving picture code sequence by using the motion compensated prediction with reference to the second motion vector. Image code string conversion method.
【請求項20】 前記動画像復号工程は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号の符号量を出力す
ることを特徴とする請求項19記載の動画像符号列変換
方法。
20. The moving image decoding step outputs, as the encoding complexity information, a code amount of a coefficient code for each block in the first moving image code string. Video code string conversion method.
【請求項21】 前記動画像復号工程は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号を復号した変換係
数のうち、非0係数の数を出力することを特徴とする請
求項19記載の動画像符号列変換方法。
21. The moving image decoding step outputs, as the encoding complexity information, the number of non-zero coefficients among the transform coefficients obtained by decoding the coefficient code for each block in the first moving image code string. 20. The moving picture code string converting method according to claim 19, wherein
【請求項22】 前記動画像復号工程は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号を復号した変換係
数の絶対値和を出力することを特徴とする請求項19記
載の動画像符号列変換方法。
22. The moving image decoding step outputs, as the encoding complexity information, an absolute value sum of transform coefficients obtained by decoding the coefficient code for each block in the first moving image code string. 20. The moving picture code string conversion method according to claim 19.
【請求項23】 前記動きベクトル予測工程は、 再符号化時の前記ブロックごとに対応する解像度変換前
の領域に含まれる複数ブロックを選択し、該複数ブロッ
クのうち前記符号化複雑度情報により示される符号化複
雑度の最も大きなブロックに対応する動きベクトルを、
前記解像度変換率に応じてスケール変換を行い、前記第
2の動きベクトルとすることを特徴とする請求項19記
載の動画像符号列変換方法。
23. The motion vector predicting step selects a plurality of blocks included in an area before resolution conversion corresponding to each of the blocks at the time of re-encoding, and indicates by the encoding complexity information among the plurality of blocks. The motion vector corresponding to the block with the largest coding complexity
20. The moving image code sequence conversion method according to claim 19, wherein scale conversion is performed according to the resolution conversion rate to obtain the second motion vector.
【請求項24】 前記動画像復号工程により検出された
第1の動きベクトルおよび符号化複雑度情報を参照し
て、前記第2の動画像符号列における前記ブロックごと
の動き補償予測の種別を表す符号化モードを決定する符
号化モード決定工程と、 前記第2の動きベクトルと前記符号化モードとを参照
し、前記動き補償予測を用いて、前記第2の動画像符号
列を生成する第2の動画像符号化工程と、 を有することを特徴とする請求項19記載の動画像符号
列変換方法。
24. A type of motion-compensated prediction for each block in the second moving image code string is represented by referring to the first motion vector and coding complexity information detected in the moving image decoding step. A coding mode determining step of deciding a coding mode; and a second moving image code sequence generation step using the motion compensation prediction with reference to the second motion vector and the coding mode. 20. The moving picture code string conversion method according to claim 19, further comprising:
【請求項25】 前記符号化モード決定工程は、 ブロック全体に対して前記動き補償予測を行う通常モー
ドと、前記ブロックを複数のサブブロックに分割し、該
複数のサブブロックについて別々に前記動き補償予測を
行うサブブロックモードと、のうちのいずれかの符号化
モードを選択し、 前記第2の動画像符号化工程は、 前記符号化モード決定工程により選択された符号化モー
ドに基づいて、前記動き補償予測を行い、 前記動きベクトル予測工程は、 前記通常モード時には一本の動きベクトルを出力し、前
記サブブロックモード時には前記複数のサブブロックの
動きベクトルをそれぞれ出力することを特徴とする請求
項24記載の動画像符号列変換方法。
25. The encoding mode determining step divides the block into a normal mode in which the motion compensation prediction is performed on the entire block and a plurality of sub blocks, and the motion compensation is performed separately for the plurality of sub blocks. A sub-block mode for performing prediction and one of the coding modes is selected, and the second moving image coding step is based on the coding mode selected by the coding mode determination step, A motion-compensated prediction is performed, and the motion vector prediction step outputs one motion vector in the normal mode and outputs motion vectors of the plurality of sub-blocks in the sub-block mode. 24. The moving image code string conversion method described in 24.
【請求項26】 前記動きベクトル予測工程は、 前記サブブロックモード時に、再符号化時のブロックご
とに対応し、解像度変換前の領域に含まれる複数ブロッ
クを選択し、該複数ブロックの持つ動きベクトルを前記
解像度変換率に応じてスケール変換した後、再符号化時
の前記サブブロックの動きベクトルとして割り振ること
を特徴とする請求項25記載の動画像符号列変換方法。
26. The motion vector predicting step selects, in the sub-block mode, a plurality of blocks corresponding to each block at the time of re-encoding and included in an area before resolution conversion, and a motion vector of the plurality of blocks is selected. 26. The moving image code sequence conversion method according to claim 25, wherein after performing scale conversion according to the resolution conversion rate, is assigned as a motion vector of the sub-block at the time of re-encoding.
【請求項27】 前記符号化モード決定工程は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの前記符号化複雑度情
報の平均が閾値Taより大きい場合、前記再符号化時の
ブロックに対して前記サブブロックモードを選択するこ
とを特徴とする請求項25記載の動画像符号列変換方
法。
27. The encoding mode determining step corresponds to a block at the time of re-encoding, and an average of the encoding complexity information of each block included in an area in a frame before resolution conversion is larger than a threshold Ta. 26. In the case, the sub-block mode is selected for the block at the time of re-encoding, the moving picture code string conversion method according to claim 25.
【請求項28】 前記符号化モード決定工程は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの前記符号化複雑度情
報の分散が閾値Tbより大きい場合、前記再符号化時の
ブロックに対して前記サブブロックモードを選択するこ
とを特徴とする請求項25記載の動画像符号列変換方
法。
28. The encoding mode determining step corresponds to a block at the time of re-encoding, and a variance of the encoding complexity information of each block included in an area in a frame before resolution conversion is larger than a threshold Tb. 26. In the case, the sub-block mode is selected for the block at the time of re-encoding, the moving picture code string conversion method according to claim 25.
【請求項29】 前記符号化モード決定工程は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの動きベクトルの分散
が閾値Tc1より大きく、かつ閾値Tc2以下である場
合、前記再符号化時のブロックに対して前記サブブロッ
クモードを選択することを特徴とする請求項25記載の
動画像符号列変換方法。
29. The encoding mode determining step corresponds to a block at the time of re-encoding, and a motion vector of each block included in an area in a frame before resolution conversion has a variance larger than a threshold Tc1 and a threshold Tc2. 26. The moving picture code string conversion method according to claim 25, wherein the sub-block mode is selected for the block at the time of re-encoding when the following cases are true.
【請求項30】 前記符号化モード決定工程は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの動きベクトルの分散
が閾値Tc1以下である場合、あるいは閾値Tc2より
大きい場合、前記再符号化時のブロックに対して前記通
常モードを選択することを特徴とする請求項25に記載
の動画像符号列変換方法。
30. The encoding mode determining step corresponds to a block at the time of re-encoding, and a motion vector variance of each block included in an area in a frame before resolution conversion is equal to or less than a threshold value Tc1, or 26. The moving picture code string conversion method according to claim 25, wherein the normal mode is selected for a block at the time of re-encoding when the value is larger than a threshold value Tc2.
【請求項31】 第1の動画像符号列を復号して得られ
た復号画像を解像度変換した後に新たに符号化して第2
の動画像符号列を生成するプログラムであって、 前記第1の動画像符号列に含まれる係数符号の複雑度
と、前記第1の動画像符号列における動き補償予測に用
いられる第1の動きベクトルと、に基づいて、前記第2
の動画像符号列における動き補償予測に用いられる第2
の動きベクトルを生成する処理をコンピュータに実行さ
せるためのプログラム。
31. A decoded image obtained by decoding a first moving image code sequence is resolution-converted and then newly encoded to obtain a second moving image.
And a complexity of coefficient codes included in the first moving image code sequence, and a first motion used for motion compensation prediction in the first moving image code sequence. The second based on the vector and
Second used for motion-compensated prediction in a moving image code sequence
A program for causing a computer to execute the process of generating the motion vector of.
【請求項32】 第1の動画像符号列を復号して得られ
た復号画像を解像度変換した後に新たに符号化して第2
の動画像符号列を生成するプログラムであって、 動き補償予測を用いた前記第1の動画像符号列を復号
し、前記第1の動画像符号列から、符号化単位となるブ
ロックごとの係数符号の複雑度を表す符号化複雑度情報
と、動き補償予測に用いられる第1の動きベクトルと、
を検出する動画像復号処理と、 該動画像復号処理により得られた復号画像に対して、予
め定められた解像度変換率に従って解像度変換を行う解
像度変換処理と、 前記動画像復号処理により検出された第1の動きベクト
ルおよび符号化複雑度情報と、前記解像度変換率と、を
参照して、前記第2の動画像符号列における動き補償予
測に用いられる第2の動きベクトルを生成する動きベク
トル予測処理と、 前記第2の動きベクトルを参照し、前記動き補償予測を
用いて、前記第2の動画像符号列を生成する第1の動画
像符号化処理と、 をコンピュータに実行させるためのプログラム。
32. The decoded image obtained by decoding the first moving image code sequence is resolution-converted and then newly encoded to generate the second moving image.
Which is a program for generating a moving picture code string of the following, decoding the first moving picture code string using motion compensated prediction, and coefficient for each block which is a coding unit from the first moving picture code string. Coding complexity information indicating the complexity of a code, a first motion vector used for motion compensation prediction,
And a resolution conversion process for performing resolution conversion on the decoded image obtained by the moving image decoding process according to a predetermined resolution conversion rate, and a moving image decoding process detected by the moving image decoding process. Motion vector prediction that refers to the first motion vector and coding complexity information, and the resolution conversion rate to generate a second motion vector used for motion compensation prediction in the second moving image code string A program for causing a computer to execute a process, a first moving image coding process of referring to the second motion vector, and using the motion compensated prediction to generate the second moving image code sequence. .
【請求項33】 前記動画像復号処理は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号の符号量を出力す
ることを特徴とする請求項32記載のプログラム。
33. The moving image decoding process outputs the code amount of a coefficient code for each block in the first moving image code string as the encoding complexity information. Program of.
【請求項34】 前記動画像復号処理は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号を復号した変換係
数のうち、非0係数の数を出力することを特徴とする請
求項32記載のプログラム。
34. The moving image decoding process outputs, as the encoding complexity information, the number of non-zero coefficients among the transform coefficients obtained by decoding the coefficient code for each block in the first moving image code string. 33. The program according to claim 32, wherein
【請求項35】 前記動画像復号処理は、 前記符号化複雑度情報として、前記第1の動画像符号列
における前記ブロックごとの係数符号を復号した変換係
数の絶対値和を出力することを特徴とする請求項32記
載のプログラム。
35. The moving image decoding process outputs, as the encoding complexity information, an absolute value sum of transform coefficients obtained by decoding the coefficient code of each block in the first moving image code string. The program according to claim 32.
【請求項36】 前記動きベクトル予測処理は、 再符号化時の前記ブロックごとに対応する解像度変換前
の領域に含まれる複数ブロックを選択し、該複数ブロッ
クのうち前記符号化複雑度情報により示される符号化複
雑度の最も大きなブロックに対応する動きベクトルを、
前記解像度変換率に応じてスケール変換を行い、前記第
2の動きベクトルとすることを特徴とする請求項32記
載のプログラム。
36. The motion vector prediction process selects a plurality of blocks included in an area before resolution conversion corresponding to each of the blocks at the time of re-encoding, and indicates the plurality of blocks by the encoding complexity information. The motion vector corresponding to the block with the largest coding complexity
33. The program according to claim 32, wherein scale conversion is performed in accordance with the resolution conversion rate to obtain the second motion vector.
【請求項37】 前記動画像復号処理により検出された
第1の動きベクトルおよび符号化複雑度情報を参照し
て、前記第2の動画像符号列における前記ブロックごと
の動き補償予測の種別を表す符号化モードを決定する符
号化モード決定処理と、 前記第2の動きベクトルと前記符号化モードとを参照
し、前記動き補償予測を用いて、前記第2の動画像符号
列を生成する第2の動画像符号化処理と、 をコンピュータに実行させるための請求項32記載のプ
ログラム。
37. A type of motion-compensated prediction for each block in the second moving image code string is represented by referring to a first motion vector and coding complexity information detected by the moving image decoding process. A coding mode determination process for determining a coding mode, and a second motion vector coding sequence using the motion compensation prediction with reference to the second motion vector and the coding mode. 33. The program according to claim 32, for causing a computer to execute the moving image encoding process of.
【請求項38】 前記符号化モード決定処理は、 ブロック全体に対して前記動き補償予測を行う通常モー
ドと、前記ブロックを複数のサブブロックに分割し、該
複数のサブブロックについて別々に前記動き補償予測を
行うサブブロックモードと、のうちのいずれかの符号化
モードを選択し、 前記第2の動画像符号化処理は、 前記符号化モード決定処理により選択された符号化モー
ドに基づいて、前記動き補償予測を行い、 前記動きベクトル予測処理は、 前記通常モード時には一本の動きベクトルを出力し、前
記サブブロックモード時には前記複数のサブブロックの
動きベクトルをそれぞれ出力することを特徴とする請求
項37記載のプログラム。
38. The encoding mode determination process divides the block into a normal mode in which the motion compensation prediction is performed on the entire block and a plurality of sub blocks, and the motion compensation is performed separately for the plurality of sub blocks. A sub-block mode for performing prediction, and one of the coding modes is selected, and the second moving image coding process is based on the coding mode selected by the coding mode determination process, and A motion-compensated prediction is performed, and the motion vector prediction process outputs one motion vector in the normal mode and outputs motion vectors of the plurality of sub-blocks in the sub-block mode. 37. The program according to 37.
【請求項39】 前記動きベクトル予測処理は、 前記サブブロックモード時に、再符号化時のブロックご
とに対応し、解像度変換前の領域に含まれる複数ブロッ
クを選択し、該複数ブロックの持つ動きベクトルを前記
解像度変換率に応じてスケール変換した後、再符号化時
の前記サブブロックの動きベクトルとして割り振ること
を特徴とする請求項38記載のプログラム。
39. In the motion vector prediction process, in the sub-block mode, a plurality of blocks corresponding to each block at the time of re-encoding and included in an area before resolution conversion are selected, and motion vectors of the plurality of blocks are selected. 39. The program according to claim 38, wherein after being scale-converted in accordance with the resolution conversion rate, it is allocated as a motion vector of the sub-block at the time of re-encoding.
【請求項40】 前記符号化モード決定処理は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの前記符号化複雑度情
報の平均が閾値Taより大きい場合、前記再符号化時の
ブロックに対して前記サブブロックモードを選択するこ
とを特徴とする請求項38記載のプログラム。
40. The encoding mode determination process corresponds to a block at the time of re-encoding, and an average of the encoding complexity information of each block included in a region in a frame before resolution conversion is larger than a threshold value Ta. 39. The program according to claim 38, wherein in the case, the sub-block mode is selected for the block at the time of re-encoding.
【請求項41】 前記符号化モード決定処理は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの前記符号化複雑度情
報の分散が閾値Tbより大きい場合、前記再符号化時の
ブロックに対して前記サブブロックモードを選択するこ
とを特徴とする請求項38記載のプログラム。
41. The encoding mode determination process corresponds to a block at the time of re-encoding, and a variance of the encoding complexity information of each block included in an area in a frame before resolution conversion is larger than a threshold Tb. 39. The program according to claim 38, wherein in the case, the sub-block mode is selected for the block at the time of re-encoding.
【請求項42】 前記符号化モード決定処理は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの動きベクトルの分散
が閾値Tc1より大きく、かつ閾値Tc2以下である場
合、前記再符号化時のブロックに対して前記サブブロッ
クモードを選択することを特徴とする請求項38記載の
プログラム。
42. The encoding mode determination process corresponds to a block at the time of re-encoding, and a motion vector of each block included in an area in a frame before resolution conversion has a variance larger than a threshold value Tc1 and a threshold value Tc2. 39. The program according to claim 38, wherein the sub-block mode is selected for the block at the time of re-encoding if:
【請求項43】 前記符号化モード決定処理は、 再符号化時のブロックに対応し、解像度変換前のフレー
ム内の領域に含まれる各ブロックの動きベクトルの分散
が閾値Tc1以下である場合、あるいは閾値Tc2より
大きい場合、前記再符号化時のブロックに対して前記通
常モードを選択することを特徴とする請求項38に記載
のプログラム。
43. The encoding mode determination process corresponds to a block at the time of re-encoding, and a variance of motion vectors of each block included in a region in a frame before resolution conversion is equal to or less than a threshold value Tc1, or 39. The program according to claim 38, wherein the normal mode is selected for the block at the time of re-encoding when it is larger than the threshold value Tc2.
JP2001343400A 2001-11-08 2001-11-08 Moving picture encoding sequence conversion apparatus and method, and its program Withdrawn JP2003153271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001343400A JP2003153271A (en) 2001-11-08 2001-11-08 Moving picture encoding sequence conversion apparatus and method, and its program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001343400A JP2003153271A (en) 2001-11-08 2001-11-08 Moving picture encoding sequence conversion apparatus and method, and its program

Publications (1)

Publication Number Publication Date
JP2003153271A true JP2003153271A (en) 2003-05-23

Family

ID=19157102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001343400A Withdrawn JP2003153271A (en) 2001-11-08 2001-11-08 Moving picture encoding sequence conversion apparatus and method, and its program

Country Status (1)

Country Link
JP (1) JP2003153271A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011029863A (en) * 2009-07-24 2011-02-10 Hitachi Consumer Electronics Co Ltd Decoding processing method
JP2012019289A (en) * 2010-07-06 2012-01-26 Mega Chips Corp Image converter
JP2013098638A (en) * 2011-10-28 2013-05-20 Fujitsu Ltd Dynamic image re-coding apparatus, dynamic image re-coding method and dynamic image re-coding computer program
CN110572654A (en) * 2019-09-27 2019-12-13 腾讯科技(深圳)有限公司 video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, storage medium, and electronic apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011029863A (en) * 2009-07-24 2011-02-10 Hitachi Consumer Electronics Co Ltd Decoding processing method
JP2012019289A (en) * 2010-07-06 2012-01-26 Mega Chips Corp Image converter
JP2013098638A (en) * 2011-10-28 2013-05-20 Fujitsu Ltd Dynamic image re-coding apparatus, dynamic image re-coding method and dynamic image re-coding computer program
CN110572654A (en) * 2019-09-27 2019-12-13 腾讯科技(深圳)有限公司 video encoding method, video decoding method, video encoding apparatus, video decoding apparatus, storage medium, and electronic apparatus
CN110572654B (en) * 2019-09-27 2024-03-15 腾讯科技(深圳)有限公司 Video encoding and decoding methods and devices, storage medium and electronic device

Similar Documents

Publication Publication Date Title
JP5021502B2 (en) Method and apparatus for controlling rate distortion trade-off by mode selection of video encoder
JP4704374B2 (en) Video transcoding method and apparatus
KR100763181B1 (en) Method and apparatus for improving coding rate by coding prediction information from base layer and enhancement layer
JP3856262B2 (en) Motion compensation encoding apparatus, motion compensation encoding method, and motion compensation code recording medium
EP1551186B1 (en) Video coding apparatus with resolution converter
KR100703788B1 (en) Video encoding method, video decoding method, video encoder, and video decoder, which use smoothing prediction
US20060210184A1 (en) Method for adaptively encoding motion image based on temporal and spatial complexity and apparatus therefor
US6339617B1 (en) Moving picture compressing apparatus and moving picture compressing method
US20060233250A1 (en) Method and apparatus for encoding and decoding video signals in intra-base-layer prediction mode by selectively applying intra-coding
JP2000506687A (en) Apparatus and method for optimizing encoding using perceptual amount and performing automatically operable image compression
JP2001501430A (en) Variable bit rate video encoding method and corresponding video encoder
JP2004032718A (en) System and method for processing video frame by fading estimation/compensation
JP3633159B2 (en) Moving picture signal encoding method and apparatus, and moving picture signal transmission method
JP3778960B2 (en) Video coding method and apparatus
KR100843080B1 (en) Video transcoding method and apparatus thereof
JP4494803B2 (en) Improved noise prediction method and apparatus based on motion compensation, and moving picture encoding method and apparatus using the same
JP3982615B2 (en) System for converting encoded video data
JP4835855B2 (en) Apparatus, method and program for moving picture encoding, and apparatus method and program for moving picture decoding
JP2001128179A (en) Device and method for encoding moving picture
KR20050085730A (en) Elastic storage
JP2003153271A (en) Moving picture encoding sequence conversion apparatus and method, and its program
JP4421734B2 (en) Encoded data conversion method and data recording medium
US20090279610A1 (en) Method and apparatus for encoding/decoding with interlace scanning based motion vector transformation
JPH11346368A (en) Image processing method, image processing unit and data storage medium
JP4169767B2 (en) Encoding method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050201