JP2000253404A - Device and method for encoding moving image and moving image processing system - Google Patents
Device and method for encoding moving image and moving image processing systemInfo
- Publication number
- JP2000253404A JP2000253404A JP4886299A JP4886299A JP2000253404A JP 2000253404 A JP2000253404 A JP 2000253404A JP 4886299 A JP4886299 A JP 4886299A JP 4886299 A JP4886299 A JP 4886299A JP 2000253404 A JP2000253404 A JP 2000253404A
- Authority
- JP
- Japan
- Prior art keywords
- format
- encoding
- code
- decoded
- decoding
- 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.)
- Abandoned
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明は、符号化側と復号
化側とで異なる符号化形式の動画像を処理する動画像処
理システムの符号化側で動画像を符号化する動画像符号
化装置および動画像符号化方法並びにそれを利用した動
画像処理システムに関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding apparatus for coding a moving picture on the coding side of a moving picture processing system for processing moving pictures in different coding formats on the coding side and the decoding side. And a moving image encoding method and a moving image processing system using the same.
【0002】[0002]
【従来の技術】近年、動画像符号化形式の国際標準化が
盛んに進められている。そのような動画像符号化形式に
は、現在ISO(International Org
anisation for Standardisa
tion)/IEC(International E
lectrotechnical Commissio
n) 14496−2として標準化作業が進められてい
るMPEG−4(Moving Picture Ex
perts Group Phase−4)、TV会議
などを用途としたITU−T(Telecommuni
cation Standardization Se
ctor of International Tel
ecommunication Union)勧告H.
261およびH.263ベースラインなどがある。2. Description of the Related Art In recent years, international standardization of moving picture coding formats has been actively pursued. Such moving picture coding formats currently include ISO (International Org).
announcement for Standardisa
ION) / IEC (International E)
electrotechnical Commissio
n) MPEG-4 (Moving Picture Ex.), which is being standardized as 14496-2
parts group Phase-4), ITU-T (Telecommuni) for videoconferencing, etc.
station Standardization Se
ctor of International Tel
E. communication Union)
261 and H.E. 263 baselines and the like.
【0003】図5は、例えばMPEG−4形式で動画像
を符号化する従来の動画像符号化装置の構成例を示すブ
ロック図である。図6は、図5の動き補償予測器109
の詳細な構成例を示すブロック図であり、図7は、図5
の量子化器103の詳細な構成例を示すブロック図であ
る。FIG. 5 is a block diagram showing a configuration example of a conventional moving picture coding apparatus for coding a moving picture in the MPEG-4 format, for example. FIG. 6 shows the motion compensation predictor 109 of FIG.
FIG. 7 is a block diagram showing a detailed configuration example of FIG.
3 is a block diagram illustrating a detailed configuration example of a quantizer 103 of FIG.
【0004】図において、1はイントラ符号化またはイ
ンター符号化を選択し、それに応じてセレクタ11,1
2を連動制御する制御部である。2は画像信号に対して
離散コサイン変換を実行するDCT器であり、4は量子
化されたデータを可変長符号化する可変長符号化器であ
る。In FIG. 1, reference numeral 1 designates intra-coding or inter-coding, and selectors 11 and 1 are selected accordingly.
2 is a control unit for performing interlock control. Reference numeral 2 denotes a DCT unit that performs a discrete cosine transform on an image signal, and reference numeral 4 denotes a variable-length encoder that performs variable-length encoding on quantized data.
【0005】103は画像信号を離散コサイン変換した
DCT符号化係数を量子化する量子化器である。例えば
MPEG−4形式のDCT符号化係数の量子化にはイン
トラAC係数適応予測量子化が採用されている。図7の
量子化器103はMPEG−4形式に従ってイントラA
C係数適応予測量子化を行うものである。A quantizer 103 quantizes DCT coding coefficients obtained by performing discrete cosine transform on an image signal. For example, intra-AC coefficient adaptive prediction quantization is used for quantization of MPEG-4 DCT encoded coefficients. The quantizer 103 shown in FIG.
This performs C coefficient adaptive prediction quantization.
【0006】図7において、41はイントラ符号化ブロ
ックのDCT符号化係数の各ブロックのAC成分を量子
化する際に、隣接ブロックのAC成分から予測を行い、
実値とその予測値との差分を計算するAC係数予測器で
あり、42はイントラAC係数予測を行う場合と行わな
い場合の符号量の比較をする比較器であり、43は比較
器42の比較結果により、差分値または実値のいずれか
符号量の少ない方について量子化を実行する量子化演算
器である。[0006] In FIG. 7, when quantizing the AC component of each block of the DCT coding coefficient of the intra-coded block, 41 performs prediction from the AC component of the adjacent block.
An AC coefficient predictor 42 calculates the difference between the actual value and the predicted value. Reference numeral 42 denotes a comparator for comparing the amount of code between when the intra AC coefficient prediction is performed and when the intra AC coefficient prediction is not performed. It is a quantization calculator that performs quantization on the smaller of the code amount, either the difference value or the actual value, based on the comparison result.
【0007】5は量子化器103により量子化されたデ
ータを逆量子化する逆量子化器であり、6は逆量子化さ
れたデータを逆離散コサイン変換する逆DCT器であ
り、7はセレクタ12より前フレームの画像信号を供給
された場合には、その画像信号と逆DCT器6からのデ
ータとの画素毎の和を計算して出力し、セレクタ12よ
り前フレームの画像信号を供給されない場合には、逆D
CT器6からのデータをそのまま出力する加算器であ
り、8は少なくとも1フレーム分の画像信号を記憶する
フレームメモリである。Reference numeral 5 denotes an inverse quantizer for inversely quantizing the data quantized by the quantizer 103, reference numeral 6 denotes an inverse DCT unit for performing inverse discrete cosine transform of the inversely quantized data, and reference numeral 7 denotes a selector. When the image signal of the previous frame is supplied from the pixel 12, the sum of the image signal and the data from the inverse DCT unit 6 is calculated and output for each pixel, and the image signal of the previous frame is not supplied from the selector 12. In case, reverse D
An adder 8 outputs the data from the CT unit 6 as it is. A frame memory 8 stores at least one frame of image signal.
【0008】109はフレームメモリ8に記憶された前
フレームの画像信号と動画像入力信号のうちの現在のフ
レームの画像信号とに基づいて所定のブロック毎に動き
検出がされ、そのブロックに対応する画像信号をフレー
ムメモリ8から読み出し出力する動き補償予測器であ
る。例えばMPEG−4形式の動き補償予測にはint
er4V動き補償などが採用されている。図6の動き補
償予測器109はMPEG−4形式に従ってinter
4V動き補償などを実行可能なものである。A motion detection unit 109 detects a motion for each predetermined block based on the image signal of the previous frame stored in the frame memory 8 and the image signal of the current frame among the moving image input signals, and corresponds to the block. This is a motion compensation predictor that reads out an image signal from the frame memory 8 and outputs it. For example, motion compensation prediction in MPEG-4 format is int
er4V motion compensation and the like are employed. The motion compensation predictor 109 in FIG.
It can execute 4V motion compensation and the like.
【0009】図6において、21はMPEG−4形式に
基づいて指定されるパラメータfcodeに応じて動き
ベクトルの探索範囲を指定する制御信号や、生成する予
測信号の小数部分を切り上げるか否かを指定する制御信
号などを整数画素動き補償予測器22、半整数画素動き
補償予測器23およびinter4V用動き補償予測器
24に供給する制御部であり、22は整数画素単位で動
きベクトルを検出して予測信号を生成する整数画素動き
補償予測器であり、23は整数画素単位で検出された動
きベクトルの周囲において半整数画素単位で動きベクト
ルを検出して予測信号を生成する半整数画素動き補償予
測器であり、24はマクロブロックを4つのブロックに
分割して縦横8×8画素のブロックに対して各々1組の
動きベクトルを検出して予測信号を生成するinter
4V用動き補償予測器であり、25は整数画素動き補償
予測器22および半整数画素動き補償予測器23によっ
て生成された予測信号とinter4V用動き補償予測
器24によって生成された予測信号を比較し、所定の評
価値の良好な方を選択し出力する比較器である。In FIG. 6, reference numeral 21 designates a control signal for specifying a search range of a motion vector according to a parameter fcode specified based on the MPEG-4 format, and whether or not to round up a fractional part of a prediction signal to be generated. The control unit supplies a control signal or the like to the integer pixel motion compensation predictor 22, the half-integer pixel motion compensation predictor 23, and the motion compensation predictor 24 for inter4V. Reference numeral 23 denotes a half-integer pixel motion compensation predictor that generates a signal and detects a motion vector in half-integer pixel units around a motion vector detected in integer pixel units to generate a prediction signal. 24, the macro block is divided into four blocks, and a set of motion vectors is detected for each of the 8 × 8 pixel blocks. inter to generate a prediction signal to
A 4V motion compensation predictor 25 compares a prediction signal generated by the integer pixel motion compensation predictor 22 and a half integer pixel motion compensation predictor 23 with a prediction signal generated by the inter4V motion compensation predictor 24. , A comparator which selects and outputs the better one of the predetermined evaluation values.
【0010】10は動画像入力信号と動き補償予測器1
09からの予測信号との画素毎の差を計算し出力する差
分器であり、13は動画像入力信号を所定の画素数の範
囲(例えば縦横8画素)のブロック毎に分割するなどの
前処理を実行する前処理部である。Reference numeral 10 denotes a moving picture input signal and a motion compensation predictor 1
Numeral 13 denotes a differentiator for calculating and outputting a difference of each pixel from a prediction signal from the pixel 09, and dividing the moving image input signal into blocks of a predetermined number of pixels (for example, 8 pixels vertically and horizontally). Is a pre-processing unit that executes.
【0011】次に動作について説明する。制御部1は、
セレクタ11,12を連動制御し、ある間隔毎にフレー
ム内(イントラ)符号化を実行し、その他を動き補償予
測を用いたフレーム間予測(インター)符号化を実行さ
せる。Next, the operation will be described. The control unit 1
The selectors 11 and 12 are interlocked to perform intra-frame (intra) coding at certain intervals, and to perform inter-frame prediction (inter) coding using motion compensation prediction for the other.
【0012】イントラ符号化では、動画像入力信号の各
フレームが前処理部13により所定の大きさ(例えば縦
横8×8画素)のブロックに分割される。動画像入力信
号のブロックがセレクタ11を介してDCT器2に供給
されてDCT符号化係数に変換され、そのDCT符号化
係数が量子化器103により量子化され、量子化インデ
ックスに変換される。そして可変長符号化器4により、
量子化インデックスに対してハフマン符号が割り当てら
れ符号化ビットストリームとして出力される。In intra coding, each frame of a moving image input signal is divided into blocks of a predetermined size (for example, 8 × 8 pixels vertically and horizontally) by a preprocessing unit 13. The block of the moving image input signal is supplied to the DCT unit 2 via the selector 11 and is converted into a DCT coded coefficient. The DCT coded coefficient is quantized by the quantizer 103 and is converted into a quantization index. Then, by the variable length encoder 4,
The Huffman code is assigned to the quantization index and output as an encoded bit stream.
【0013】また量子化インデックスは逆量子化器5に
より逆量子化され、さらに逆DCT器6により逆離散コ
サイン変換された後に、フレーム間動き補償予測で使う
予測参照フレームの一部としてフレームメモリ8に記憶
される。The quantization index is inversely quantized by an inverse quantizer 5 and further subjected to an inverse discrete cosine transform by an inverse DCT unit 6, and then a frame memory 8 is used as a part of a prediction reference frame used in inter-frame motion compensation prediction. Is stored.
【0014】一方、インター符号化では、動画像入力信
号の各フレームが前処理部13により所定の大きさ(例
えば縦横16×16画素)のマクロブロックに分割され
る。そして、動き補償予測器109により、フレームメ
モリ8に記憶されている予測参照フレームが参照されて
各マクロブロックについて、画面中の物体の動きを表す
情報として動きベクトルが検出されるとともに、そのマ
クロブロックに対応する予測信号が生成される。On the other hand, in the inter coding, each frame of the moving image input signal is divided into macroblocks of a predetermined size (for example, 16 × 16 pixels in length and width) by the preprocessing unit 13. Then, the motion compensation predictor 109 refers to the prediction reference frame stored in the frame memory 8 and detects a motion vector for each macroblock as information representing the motion of the object on the screen. Is generated.
【0015】そして、動画像入力信号の各マクロブロッ
クと、それに対応する予測信号との差分が差分器10に
より計算され、その差分がDCT器2で変換されてDC
T符号化係数が生成される。そしてそのDCT符号化係
数が量子化器103で量子化され、生成された量子化イ
ンデックスおよび動きベクトルに対して可変長符号化器
4により、ハフマン符号が割り当てられ符号化ビットス
トリームとして出力される。The difference between each macroblock of the moving picture input signal and the corresponding prediction signal is calculated by a differentiator 10, and the difference is converted by a DCT unit 2 to obtain a DCT.
A T-coded coefficient is generated. Then, the DCT coded coefficients are quantized by the quantizer 103, and the Huffman code is assigned to the generated quantization index and motion vector by the variable length coder 4, and is output as a coded bit stream.
【0016】またイントラ符号化と同様に、量子化イン
デックスは逆量子化器5により逆量子化され、さらに逆
DCT器6により逆離散コサイン変換される。そして、
逆離散コサイン変換後のデータに、加算器7により予測
信号が加算され、その演算結果が次の予測参照フレーム
の一部としてフレームメモリ8に記憶される。As in the case of the intra coding, the quantization index is inversely quantized by the inverse quantizer 5 and further subjected to inverse discrete cosine transform by the inverse DCT unit 6. And
An adder 7 adds a prediction signal to the data after the inverse discrete cosine transform, and the calculation result is stored in the frame memory 8 as a part of the next prediction reference frame.
【0017】次に、図6の動き補償予測器109の詳細
な動作について説明する。制御部21は、MPEG−4
形式に基づいて指定されるパラメータfcodeに応じ
て動きベクトルの探索範囲を指定する制御信号や、生成
する予測信号の小数部分を切り上げるか否かを指定する
制御信号などを整数画素動き補償予測器22、半整数画
素動き補償予測器23およびinter4V用動き補償
予測器24に供給する。Next, a detailed operation of the motion compensation predictor 109 in FIG. 6 will be described. The control unit 21 uses the MPEG-4
A control signal for specifying a search range of a motion vector according to a parameter fcode specified based on the format, a control signal for specifying whether or not to round up a fractional part of a generated prediction signal, and the like are converted to an integer pixel motion compensation predictor 22. , A half-integer pixel motion compensation predictor 23 and a motion compensation predictor 24 for inter4V.
【0018】整数画素動き補償予測器22は、整数画素
単位で動きベクトルを検出して予測信号を生成し、半整
数画素動き補償予測器23は、その整数画素単位で検出
された動きベクトルの周囲において半整数画素単位で動
きベクトルを検出して予測信号を生成する。一方、in
ter4V用動き補償予測器24は、マクロブロックを
4つのブロックに分割して縦横8×8画素のブロックに
対して各々1組の動きベクトルを検出して予測信号を生
成する(この動き補償をinter4V動き補償とい
う)。そして、比較器25は、整数画素動き補償予測器
22および半整数画素動き補償予測器23によって生成
された予測信号とinter4V用動き補償予測器24
によって生成された予測信号を比較し、所定の評価値の
良好な方を選択し出力する。通常の符号化装置ではこの
ように、演算量削減のためにまず整数画素動き補償予測
器22により整数画素単位で動き補償予測が実行され、
その周囲に対して半整数画素動き補償予測器23により
半整数画素単位で動き補償が実行されることが多い。The integer pixel motion compensation predictor 22 detects a motion vector in integer pixel units to generate a prediction signal, and the half-integer pixel motion compensation predictor 23 generates a prediction signal around the motion vector detected in integer pixel units. , A motion vector is detected in half-integer pixel units to generate a prediction signal. On the other hand, in
The ter4V motion compensation predictor 24 divides the macroblock into four blocks, detects a set of motion vectors for each of the 8 × 8 pixel blocks in the vertical and horizontal directions, and generates a prediction signal. Motion compensation). Then, the comparator 25 compares the prediction signal generated by the integer pixel motion compensation predictor 22 and the half-integer pixel motion compensation predictor 23 with the motion compensation predictor 24 for inter4V.
Are compared, and the better one of the predetermined evaluation values is selected and output. As described above, in the ordinary coding apparatus, the motion compensation prediction is first performed by the integer pixel motion compensation predictor 22 in units of integer pixels in order to reduce the amount of computation.
In many cases, motion compensation is performed on the periphery by the half-integer pixel motion compensation predictor 23 in half-integer pixel units.
【0019】このようにMPEG−4形式によれば、半
整数画素単位での動きベクトルの検出およびinter
4V動き補償が実行可能である。この他、MPEG−4
形式によれば、動きベクトルの探索範囲を適宜設定する
ことが可能であり、また、予測信号の生成の際に対比さ
れる参照ブロックが参照画像フレーム内部に限定しない
でフレームの内部から外部にまたがることが許容される
(この動き補償を非制限動き補償という)。さらにMP
EG−4形式によれば、半整数画素についての予測信号
の少数部分を切り捨てるか切り上げるかを適宜設定する
ことが可能である。As described above, according to the MPEG-4 format, the detection of a motion vector and the inter
4V motion compensation is feasible. In addition, MPEG-4
According to the format, the search range of the motion vector can be appropriately set, and the reference block to be compared when generating the prediction signal extends from the inside of the frame to the outside without being limited to the inside of the reference image frame. (This motion compensation is called unrestricted motion compensation). Further MP
According to the EG-4 format, it is possible to appropriately set whether to round down or round up the fractional part of the prediction signal for a half-integer pixel.
【0020】一方、H.261形式やH.263ベース
ライン形式により符号化を実行する動画像符号化装置に
おいては、動き予測の範囲は±15に限定されるととも
に、動き補償の参照となるブロックは参照画像フレーム
内部に限定される。また、H.261やH.263ベー
スライン形式では、inter4V動き補償は実行され
ず、動きベクトルは縦横16×16画素の大きさのマク
ロブロックに対して1組が計算される。On the other hand, H. H.261 format and H.264 format. In a moving picture coding apparatus that performs coding in the H.263 baseline format, the range of motion prediction is limited to ± 15, and a block to be referred to for motion compensation is limited to the inside of the reference picture frame. H. 261 and H.E. In the 263 baseline format, no inter4V motion compensation is performed, and one set of motion vectors is calculated for a macroblock having a size of 16 × 16 pixels.
【0021】また、H.261形式によれば、動き補償
予測は実画素からなる予測画面に対して行われ、動きベ
クトルは整数画素ベクトル(すなわち小数部のないベク
トル)になり、整数画素単位で動き補償予測が実行され
る(この動き補償を整数画素動き補償予測という)。H. According to the H.261 format, the motion compensation prediction is performed on a prediction screen composed of real pixels, the motion vector is an integer pixel vector (that is, a vector having no decimal part), and the motion compensation prediction is performed in integer pixel units. (This motion compensation is called integer pixel motion compensation prediction).
【0022】さらに、H.263ベースライン形式で
は、MPEG−4形式と同様に、実画素の間の仮想画素
の値を周囲の実画素の値から補間により計算し、その仮
想画素(補間画素)の値をも予測信号として利用して半
整数画素単位で動き補償が実行される(この動き補償を
半整数画素動き補償予測という)。このとき色差成分に
ついてもMPEG−4形式やH.263ベースライン形
式では半整数画素単位で動きベクトルが検出されるが、
H.261形式では整数画素単位で検出される。また、
H.263ベースライン形式では、補間された半整数画
素についての予測信号が整数とならない場合には、少数
部分が常に切り上げられる。Further, H. In the H.263 baseline format, similarly to the MPEG-4 format, the value of a virtual pixel between real pixels is calculated from the values of surrounding real pixels by interpolation, and the value of the virtual pixel (interpolated pixel) is also used as a prediction signal. Motion compensation is performed in units of half-integer pixels using this method (this motion compensation is called half-integer pixel motion compensation prediction). At this time, the color difference components are also stored in MPEG-4 format or H.264 format. In the 263 baseline format, a motion vector is detected in units of half integer pixels.
H. In the H.261 format, detection is performed in integer pixel units. Also,
H. In the H.263 baseline format, if the predicted signal for the interpolated half-integer pixel is not an integer, the fractional part is always rounded up.
【0023】このように、使用する符号化形式により動
き補償における各種機能の有無がそれぞれ異なる。As described above, the presence or absence of various functions in motion compensation differs depending on the coding format used.
【0024】次に、図7の量子化器103の詳細な動作
について説明する。AC係数予測器41は、イントラ符
号化ブロックのDCT符号化係数の各ブロックのAC成
分を量子化する際に、隣接ブロックのAC成分から予測
を行い、実値とその予測値との差分を計算する。そして
比較器42により、イントラAC係数予測を行う場合と
行わない場合の符号量が比較され、量子化演算器43
は、比較器42の比較結果により、差分値または実値の
いずれか符号量の少ない方について量子化を実行する。
このように符号量の少ない方を選択することにより、符
号化効率を高くすることができる。Next, a detailed operation of the quantizer 103 shown in FIG. 7 will be described. When quantizing the AC component of each block of the DCT coding coefficient of the intra-coded block, the AC coefficient predictor 41 performs prediction from the AC component of the adjacent block and calculates the difference between the actual value and the predicted value. I do. Then, the comparator 42 compares the code amount when the intra AC coefficient prediction is performed with the code amount when the intra AC coefficient prediction is not performed.
Performs quantization on the difference value or the actual value, whichever is smaller, based on the comparison result of the comparator 42.
As described above, by selecting the one with the smaller code amount, the coding efficiency can be increased.
【0025】以上のように、国際標準規格になっている
動画像符号化形式はそれぞれ異なる機能を有しており、
送信側の符号化器と受信側の復号化器で異なる動画像符
号化形式を使用する通信システムで動画像信号の送受信
を実行する場合には、動画像信号を処理するに際して符
号化ビットストリームを変換するトランスコーダが必要
となる。As described above, the moving picture coding formats which are international standards have different functions, respectively.
When transmitting and receiving a moving image signal in a communication system that uses different moving image coding formats at the transmitting side encoder and the receiving side decoder, the coded bit stream is processed when processing the moving image signal. A transcoder for conversion is required.
【0026】図8は符号化側と復号化側とで異なる符号
化形式の動画像を処理する動画像処理システムの一例を
示すブロック図である。図8に示す動画像処理システム
においては、送信側符号化器としてMPEG−4形式で
動画像を符号化してMPEG−4ビットストリームとし
て出力するMPEG−4符号化器201が使用され、受
信側復号化器としてH.261形式で符号化されたH.
261ビットストリームから動画像を復号化するH.2
61復号化器203が使用されている。この場合には、
トランスコーダ202により、MPEG−4ビットスト
リームがH.261ビットストリームに変換される。ト
ランスコーダ202においては、MPEG−4復号化器
211により一旦MPEG−4ビットストリームから動
画像が復号化され、復号化された動画像がH.261符
号化器212によりH.261ビットストリームに再度
変換される。FIG. 8 is a block diagram showing an example of a moving image processing system for processing moving images of different encoding formats on the encoding side and the decoding side. In the moving image processing system shown in FIG. 8, an MPEG-4 encoder 201 that encodes a moving image in the MPEG-4 format and outputs it as an MPEG-4 bit stream is used as a transmitting side encoder. H. H.261 encoded in H.261 format
H.261 decoding a moving image from a H.261 bit stream 2
61 decoder 203 is used. In this case,
The transcoder 202 converts the MPEG-4 bit stream into an H.264 image. 261 bit stream. In the transcoder 202, the moving image is once decoded from the MPEG-4 bit stream by the MPEG-4 decoder 211, and the decoded moving image H.261 by the H.261 encoder 212. 261 bit stream.
【0027】[0027]
【発明が解決しようとする課題】従来の動画像処理シス
テムは以上のように構成されているので、トランスコー
ダにおいて、送信側からのMPEG−4形式の符号化ビ
ットストリームの復号化には逆DCT器およびフレーム
メモリなどが必要であり、またH.261形式での動画
像の符号化にはDCT器、逆DCT器、フレームメモリ
および動き補償予測器などが必要であり、トランスコー
ダの回路規模およびコストを低減することが困難である
とともに、トランスコーダにおける復号化処理および符
号化処理による遅延時間の発生により動画像の授受のた
めの処理時間を低減することが困難であるなどの課題が
あった。Since the conventional moving picture processing system is configured as described above, in the transcoder, the inverse DCT is used for decoding the encoded bit stream in the MPEG-4 format from the transmission side. And a frame memory are required. In order to encode a moving image in the H.261 format, a DCT unit, an inverse DCT unit, a frame memory, a motion compensation predictor, and the like are required, and it is difficult to reduce the circuit scale and cost of the transcoder. However, there is a problem that it is difficult to reduce the processing time for transmitting and receiving a moving image due to the occurrence of delay time due to the decoding process and the encoding process.
【0028】この発明は上記のような課題を解決するた
めになされたもので、例えば受信側から供給される復号
化器の情報などにより復号可能な符号の形式を特定し、
その復号可能な符号の形式に応じて、符号化側での符号
化形式の機能の一部を停止して、復号化側で復号可能な
符号へ動画像を符号化するようにして、符号化ビットス
トリームにおけるデータの規則的な並び換えのみでトラ
ンスコーディングを行うことが可能な符号化ビットスト
リームを符号化側で生成する動画像符号化装置、動画像
符号化方法および動画像処理システムを得ることを目的
とする。The present invention has been made in order to solve the above-described problems, and specifies the format of a code that can be decoded based on, for example, information of a decoder supplied from a receiving side.
Depending on the format of the code that can be decoded, a part of the function of the coding format on the encoding side is stopped, and the moving image is encoded into a code that can be decoded on the decoding side. Obtaining a moving picture coding apparatus, a moving picture coding method, and a moving picture processing system that generate a coded bit stream on the coding side capable of performing transcoding only by regular rearrangement of data in the bit stream With the goal.
【0029】[0029]
【課題を解決するための手段】この発明に係る動画像符
号化装置は、復号化側で復号可能な符号の形式を特定す
る符号形式特定手段と、符号形式特定手段により特定さ
れた復号可能な符号の形式に応じて符号化側での符号化
形式の機能の一部を停止して、復号化側で復号可能な符
号へ動画像を符号化する符号化手段とを備えるものであ
る。A moving picture coding apparatus according to the present invention comprises: a code form specifying means for specifying a code form which can be decoded on the decoding side; An encoding unit for stopping a part of the function of the encoding format on the encoding side according to the code format and encoding the moving image into a code that can be decoded on the decoding side.
【0030】この発明に係る動画像符号化装置は、符号
化手段に、動画像をMPEG形式のいずれかで符号化す
る機能を有するものである。In the moving picture coding apparatus according to the present invention, the coding means has a function of coding a moving picture in one of the MPEG formats.
【0031】この発明に係る動画像符号化装置は、復号
化側の復号化形式がinter4V動き補償によらない
で復号化するものであると特定された場合、inter
4V動き補償の機能を停止して動画像を符号化するよう
にしたものである。In the moving picture coding apparatus according to the present invention, when it is specified that the decoding format on the decoding side is to be decoded without using inter4V motion compensation, inter
The 4V motion compensation function is stopped to encode a moving image.
【0032】この発明に係る動画像符号化装置は、復号
化側の復号化形式が所定の画素範囲内のみの動きベクト
ルに基づいて復号化するものであると特定された場合、
所定の画素範囲外において動きベクトルを探索する機能
を停止して動画像を符号化するようにしたものである。The video encoding apparatus according to the present invention, when it is specified that the decoding format on the decoding side is to be decoded based on a motion vector only within a predetermined pixel range,
The function of searching for a motion vector outside a predetermined pixel range is stopped to encode a moving image.
【0033】この発明に係る動画像符号化装置は、復号
化側の復号化形式が整数画素単位の動きベクトルに基づ
いて動き補償して復号化するものであると特定された場
合、半整数画素単位の動きベクトル検出の機能を停止し
て動画像を符号化するようにしたものである。The video encoding apparatus according to the present invention, when it is specified that the decoding format on the decoding side is to perform motion compensation on the basis of a motion vector in units of integer pixels and to decode the half-integer pixels, The function of detecting a unit motion vector is stopped to encode a moving image.
【0034】この発明に係る動画像符号化装置は、復号
化側の復号化形式がフレーム外からの動きベクトルによ
る動き補償によらないで復号化するものであると特定さ
れた場合、フレーム外からの動きベクトルを検出する機
能を停止して動画像を符号化するようにしたものであ
る。The moving picture coding apparatus according to the present invention, when it is specified that the decoding format on the decoding side is to be decoded without relying on motion compensation by a motion vector from outside the frame, In this case, the function of detecting a motion vector is stopped to encode a moving image.
【0035】この発明に係る動画像符号化装置は、復号
化側の復号化形式が整数画素毎に動き補償して復号化す
るものと特定され、かつ符号化側の符号化形式が半整数
画素毎に動き補償して符号化するものである場合、奇数
番目の画素および偶数番目の画素のいずれか一方の画素
における動きベクトルの探索の機能を停止して、他方の
画素において動きベクトルを探索して動画像を符号化す
るようにしたものである。In the moving picture coding apparatus according to the present invention, it is specified that the decoding format on the decoding side performs motion compensation for each integer pixel and decodes, and the coding format on the coding side is a half integer pixel. In the case of encoding with motion compensation for each pixel, the function of searching for a motion vector in one of the odd-numbered pixel and the even-numbered pixel is stopped, and the motion vector is searched for in the other pixel. In this case, a moving image is encoded.
【0036】この発明に係る動画像符号化装置は、復号
化側の復号化形式が半整数画素毎に動き補償して復号化
し、かつ、整数画素の値から半整数画素の値を補間する
際に半整数画素の値の小数部分を切り上げるものと特定
された場合、他の動き補償予測の機能を停止して、整数
画素の値から半整数画素の値を補間する際に半整数画素
の値の小数部分を切り上げる動き補償予測をして動画像
を符号化するようにしたものである。In the moving picture coding apparatus according to the present invention, when the decoding format on the decoding side performs motion compensation for each half-integer pixel and decodes and interpolates the half-integer pixel value from the integer pixel value. When it is specified that the fractional part of the value of the half-integer pixel is rounded up, the function of other motion compensation prediction is stopped, and the value of the half-integer pixel is used when interpolating the half-integer value from the integer pixel value. The motion compensation image is encoded by performing motion compensation prediction by rounding up the decimal part of.
【0037】この発明に係る動画像符号化装置は、復号
化側の復号化形式がイントラAC係数適応予測量子化さ
れた符号を逆量子化可能ではないものと特定された場
合、イントラAC係数適応予測量子化の機能を停止して
量子化をし、動画像を符号化するようにしたものであ
る。The moving picture coding apparatus according to the present invention, when the decoding format on the decoding side is determined to be a code that has been subjected to the intra AC coefficient adaptive predictive quantization and cannot be inversely quantized, the intra AC coefficient adaptive The function of predictive quantization is stopped, quantization is performed, and a moving image is encoded.
【0038】この発明に係る動画像符号化方法は、復号
化側で復号可能な符号の形式を特定するステップと、特
定した復号可能な符号の形式に応じて符号化側での符号
化形式の機能の一部を停止して、復号化側で復号可能な
符号へ動画像を符号化するステップとを備えるものであ
る。In the moving picture coding method according to the present invention, the step of specifying the format of the code that can be decoded on the decoding side, and the step of specifying the coding format on the coding side according to the specified format of the code that can be decoded. Stopping a part of the function and encoding the moving image into a code that can be decoded on the decoding side.
【0039】この発明に係る動画像処理システムは、復
号化側で復号可能な符号の形式を特定する符号形式特定
手段、および符号形式特定手段により特定された復号可
能な符号の形式に応じて符号化側での符号化形式の機能
の一部を停止して、復号化側で復号可能な符号へ動画像
を符号化し、符号化ビットストリームを出力する符号化
手段を備える動画像符号化装置と、復号化側で復号可能
な形式の符号化ビットストリームを復号化する動画像復
号化装置と、符号化側および復号化側の復号化形式によ
る符号化ビットストリームのデータ順序の違いに基づい
て、動画像符号化装置により出力された符号化ビットス
トリームのデータを並べ替えて復号化側で復号可能な形
式の符号化ビットストリームに変換し、変換後の符号化
ビットストリームを動画像復号化装置に供給するトラン
スコーダとを備えるものである。A moving picture processing system according to the present invention comprises a code format specifying means for specifying a code format that can be decoded on the decoding side, and a code corresponding to the format of the decodable code specified by the code format specification device. A moving image encoding apparatus including an encoding unit that stops a part of the function of the encoding format on the encoding side, encodes the moving image to a code that can be decoded on the decoding side, and outputs an encoded bit stream. A video decoding device that decodes an encoded bit stream in a format that can be decoded on the decoding side, and based on the difference in the data order of the encoded bit stream depending on the decoding format on the encoding side and the decoding side, The encoded bit stream output by the video encoding device is rearranged and converted into an encoded bit stream in a format that can be decoded on the decoding side, and the converted encoded bit stream is converted. In which and a transcoder supplied to the video decoding apparatus.
【0040】[0040]
【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.実施の形態1においては、符号化側(送
信側)の符号化形式としてMPEG−4形式を、復号化
側(受信側)の符号化形式としてH.261形式または
H.263ベースライン形式を例示するが、符号化側
(送信側)の符号化形式および復号化側(受信側)の符
号化形式の種類は、これらに限定されるものではない。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. In the first embodiment, the MPEG-4 format is used as the encoding format on the encoding side (transmission side), and H.264 is used as the encoding format on the decoding side (reception side). H.261 format or H.261 format. Although the H.263 baseline format is exemplified, the types of the encoding format on the encoding side (transmission side) and the encoding format on the decoding side (reception side) are not limited to these.
【0041】図1はこの発明の実施の形態1による動画
像符号化装置の構成例を示すブロック図である。図2は
図1の動画像符号化装置における動き補償予測器9の詳
細な構成例を示すブロック図であり、図3は図1の量子
化器3の詳細な構成例を示すブロック図である。FIG. 1 is a block diagram showing a configuration example of a moving picture coding apparatus according to Embodiment 1 of the present invention. FIG. 2 is a block diagram showing a detailed configuration example of the motion compensation predictor 9 in the moving picture encoding device of FIG. 1, and FIG. 3 is a block diagram showing a detailed configuration example of the quantizer 3 of FIG. .
【0042】図において、1はイントラ符号化またはイ
ンター符号化を選択し、それに応じてセレクタ11,1
2を連動制御する制御部である。2は画像信号に対して
離散コサイン変換を実行するDCT器であり、4は量子
化されたデータを可変長符号化する可変長符号化器であ
る。In the drawing, reference numeral 1 designates intra-coding or inter-coding, and the selectors 11 and 1 are selected accordingly.
2 is a control unit for performing interlock control. Reference numeral 2 denotes a DCT unit that performs a discrete cosine transform on an image signal, and reference numeral 4 denotes a variable-length encoder that performs variable-length encoding on quantized data.
【0043】3は受信側情報に応じて復号化側で逆量子
化可能な形式で、画像信号を離散コサイン変換したDC
T符号化係数を量子化する量子化器である。MPEG−
4形式のDCT符号化係数の量子化にはイントラAC係
数適応予測量子化が採用されている。図3の量子化器3
はMPEG−4形式に従ってイントラAC係数適応予測
量子化を行うものである。Numeral 3 denotes a format in which the image signal can be inversely quantized on the decoding side in accordance with the information on the receiving side.
This is a quantizer that quantizes the T encoding coefficient. MPEG-
Intra-AC coefficient adaptive prediction quantization is used for quantization of the four types of DCT coding coefficients. Quantizer 3 of FIG.
Is for performing intra AC coefficient adaptive prediction quantization in accordance with the MPEG-4 format.
【0044】なお、受信側情報は、例えば、ITU−T
勧告H.245形式などにより規定され、送信側と受信
側との間の互いに授受される受信能力などを通知する制
御信号として供給される。また、例えば電話回線を通信
に使用する場合には、受信側の装置の情報と受信側の電
話番号と関連づけて予め記録しておき、受信側の電話番
号を受信側情報として供給するようにしてもよい。The receiving side information is, for example, an ITU-T
Recommendation H. H.245 format or the like, and is supplied as a control signal for notifying the receiving capability and the like exchanged between the transmitting side and the receiving side. Also, for example, when a telephone line is used for communication, the information on the receiving device and the telephone number of the receiving side are recorded in advance, and the telephone number of the receiving side is supplied as the receiving side information. Is also good.
【0045】図3において、41はイントラ符号化ブロ
ックのDCT符号化係数の各ブロックのAC成分を量子
化する際に、隣接ブロックのAC成分から予測を行い、
実値とその予測値との差分を計算するAC係数予測器で
あり、42はイントラAC係数予測を行う場合と行わな
い場合の符号量の比較をする比較器であり、43は比較
器42の比較結果により、差分値または実値のいずれか
符号量の少ない方について量子化を実行する量子化演算
器である。71は受信側情報に基づいてスイッチ72を
制御し、DCT符号化係数をAC係数予測器41に供給
するか否かを切り換える制御部(符号形式特定手段)で
ある。In FIG. 3, when quantizing the AC component of each block of the DCT coding coefficient of the intra-coded block, prediction is performed from the AC component of the adjacent block.
An AC coefficient predictor 42 calculates the difference between the actual value and the predicted value. Reference numeral 42 denotes a comparator for comparing the amount of code between when the intra AC coefficient prediction is performed and when the intra AC coefficient prediction is not performed. It is a quantization calculator that performs quantization on the smaller of the code amount, either the difference value or the actual value, based on the comparison result. Reference numeral 71 denotes a control unit (code format specifying unit) that controls the switch 72 based on the reception side information and switches whether to supply the DCT coding coefficient to the AC coefficient predictor 41.
【0046】5は量子化器3により量子化されたデータ
を逆量子化する逆量子化器であり、6は逆量子化された
データを逆離散コサイン変換する逆DCT器であり、7
はセレクタ12より前フレームの画像信号を供給された
場合には、その画像信号と逆DCT器6からのデータと
の画素毎の和を計算して出力し、セレクタ12より前フ
レームの画像信号を供給されない場合には、逆DCT器
6からのデータをそのまま出力する加算器であり、8は
少なくとも1フレーム分の画像信号を記憶するフレーム
メモリである。Reference numeral 5 denotes an inverse quantizer for inversely quantizing the data quantized by the quantizer 3, reference numeral 6 denotes an inverse DCT unit for performing inverse discrete cosine transform on the inversely quantized data,
When the image signal of the previous frame is supplied from the selector 12, the sum of the image signal and the data from the inverse DCT unit 6 is calculated and output for each pixel, and the image signal of the previous frame is output from the selector 12. When not supplied, an adder that outputs the data from the inverse DCT unit 6 as it is, and 8 is a frame memory that stores at least one frame of image signal.
【0047】9は受信側情報に応じて復号化側で動き補
償可能な形式で、フレームメモリ8に記憶された前フレ
ームの画像信号と動画像入力信号のうちの現在のフレー
ムの画像信号とに基づいて所定のブロック毎に動き検出
がされ、そのブロックに対応する画像信号をフレームメ
モリ8から読み出し出力する動き補償予測器である。M
PEG−4形式の動き補償予測にはinter4V動き
補償などが採用されている。図2の動き補償予測器9は
MPEG−4形式に従ってinter4V動き補償など
を実行可能なものである。Numeral 9 denotes a format in which motion can be compensated on the decoding side in accordance with the information on the receiving side. This is a motion compensation predictor that performs motion detection for each predetermined block based on the block, and reads out and outputs an image signal corresponding to the block from the frame memory 8. M
PEG-4 type motion compensation prediction employs inter4V motion compensation or the like. The motion compensation predictor 9 shown in FIG. 2 is capable of executing inter4V motion compensation or the like according to the MPEG-4 format.
【0048】図2において、21はMPEG−4形式に
基づいて指定されるパラメータfcodeに応じて動き
ベクトルの探索範囲を指定する制御信号や、生成する予
測信号の小数部分を切り上げするか否かを指定する制御
信号などを制御部51に供給する制御部であり、22は
整数画素単位で動きベクトルを検出して予測信号を生成
する整数画素動き補償予測器であり、23は整数画素単
位で検出された動きベクトルの周囲において半整数画素
単位で動きベクトルを検出して予測信号を生成する半整
数画素動き補償予測器であり、24はマクロブロックを
4つのブロックに分割して縦横8×8画素のブロックに
対して各々1組の動きベクトルを検出して予測信号を生
成するinter4V用動き補償予測器であり、25は
整数画素動き補償予測器22および半整数画素動き補償
予測器23によって生成された予測信号とinter4
V用動き補償予測器24によって生成された予測信号を
比較し、所定の評価値の良好な方を選択し出力する比較
器である。In FIG. 2, reference numeral 21 denotes a control signal for designating a search range of a motion vector according to a parameter fcode designated based on the MPEG-4 format, and whether or not to round up a fractional part of a prediction signal to be generated. A control unit that supplies a control signal or the like to be specified to the control unit 51. Reference numeral 22 denotes an integer pixel motion compensation predictor that detects a motion vector in integer pixel units and generates a prediction signal. Reference numeral 23 denotes a detection unit in integer pixel units. Is a half-integer pixel motion compensation predictor that detects a motion vector in units of half-integer pixels around the generated motion vector and generates a prediction signal. Is a motion compensation predictor for inter4V that detects a set of motion vectors for each block and generates a prediction signal. Prediction signal generated by the measuring unit 22 and half-integer pixel motion compensation predictor 23 and inter4
This is a comparator that compares the prediction signals generated by the V motion compensation predictor 24 and selects and outputs the better one of the predetermined evaluation values.
【0049】51は受信側情報に基づいてスイッチ52
およびセレクタ53を制御し、整数画素動き補償予測器
22、半整数画素動き補償予測器23およびinter
4V用動き補償予測器24の使用/不使用をそれぞれ切
換えるとともに、制御部21からの制御信号を受信側情
報に基づいて変換した後に、整数画素動き補償予測器2
2、半整数画素動き補償予測器23およびinter4
V用動き補償予測器24に供給する制御部(符号形式特
定手段)である。Reference numeral 51 denotes a switch 52 based on information on the receiving side.
And the selector 53, the integer pixel motion compensation predictor 22, the half-integer pixel motion compensation predictor 23, and
After switching the use / non-use of the 4V motion compensation predictor 24 and converting the control signal from the control unit 21 based on the receiving side information, the integer pixel motion compensation predictor 2
2. Half-integer pixel motion compensation predictor 23 and inter4
A control unit (code format specifying unit) that supplies the motion compensation predictor 24 for V.
【0050】10は動画像入力信号と動き補償予測器9
からの予測信号との画素毎の差を計算し出力する差分器
であり、13は動画像入力信号を所定の画素数の範囲
(例えば縦横8画素)のブロック毎に分割するなどの前
処理を実行する前処理部である。Reference numeral 10 denotes a moving picture input signal and a motion compensation predictor 9
13 is a differentiator for calculating and outputting a difference for each pixel from a prediction signal from the video signal, and 13 performs preprocessing such as dividing a moving image input signal into blocks of a predetermined number of pixels (for example, 8 pixels vertically and horizontally). This is a preprocessing unit to be executed.
【0051】なお、上記制御部1〜前処理部13により
符号化手段が構成される。The control section 1 to the preprocessing section 13 constitute an encoding means.
【0052】次に動作について説明する。この実施の形
態1においては、例えば受信側の電話番号やH.245
形式に基づく送信側と受信側との間で授受される制御信
号が受信側情報として量子化器3の制御部71および動
き補償予測器9の制御部51に供給される。Next, the operation will be described. In the first embodiment, for example, the telephone number of the receiving side or the H.264 standard is used. 245
A control signal exchanged between the transmitting side and the receiving side based on the format is supplied to the control unit 71 of the quantizer 3 and the control unit 51 of the motion compensation predictor 9 as receiving side information.
【0053】動き補償予測器9の制御部51は、この受
信側情報により復号化側で復号可能な符号化形式を特定
し、それに応じてスイッチ52およびセレクタ53を制
御して、整数画素動き補償予測器22、半整数画素動き
補償予測器23およびinter4V用動き補償予測器
24の使用/不使用をそれぞれ切換える。The control unit 51 of the motion compensation predictor 9 specifies an encoding format that can be decoded on the decoding side based on the information on the receiving side, and controls the switch 52 and the selector 53 in accordance with the information to perform integer pixel motion compensation. The use / non-use of the predictor 22, the half-integer pixel motion compensated predictor 23, and the inter4V motion compensated predictor 24 are switched.
【0054】例えばH.261形式のように復号化側で
復号可能な符号の符号化形式(すなわち復号化側の復号
化形式)がinter4V動き補償予測を行わないもの
である場合には、制御部51は、スイッチ52をオフ状
態にしてinter4V用動き補償予測器24を不使用
にし、マクロブロック単位の動き補償予測を実行させ
る。すなわち、この場合inter4V動き補償予測は
行われない。一方、例えばMPEG−4形式のように復
号化側の復号化形式がinter4V動き補償予測を行
うものである場合には、制御部51は、スイッチ52を
オン状態にしてinter4V用動き補償予測器24を
使用し、inter4V動き補償予測を実行させる。こ
のように、受信側情報に応じてinter4V用動き補
償予測器24の使用/不使用が切り換えられる。For example, H. When the coding format of the code that can be decoded on the decoding side (that is, the decoding format on the decoding side) does not perform the inter4V motion compensation prediction as in the H.261 format, the control unit 51 sets the switch 52 to In the off state, the motion compensation predictor 24 for the inter4V is not used, and the motion compensation prediction is performed for each macroblock. That is, in this case, the inter4V motion compensation prediction is not performed. On the other hand, when the decoding format on the decoding side performs inter4V motion compensation prediction, such as the MPEG-4 format, for example, the control unit 51 sets the switch 52 to the ON state and sets the inter4V motion compensation predictor 24. To execute the inter4V motion compensation prediction. Thus, use / non-use of the inter4V motion compensation predictor 24 is switched according to the reception side information.
【0055】また、制御部51は、受信側情報に応じ
て、動きベクトルの探索範囲を所定の範囲内に制限する
制御信号を整数画素動き補償予測器22およびinte
r4V用動き補償予測器24に供給し、所定の範囲外で
動きベクトルを探索させる。Further, the control unit 51 outputs a control signal for limiting the motion vector search range to a predetermined range in accordance with the receiving side information, by the integer pixel motion compensation predictor 22 and the integer.
The motion vector is supplied to the r4V motion compensation predictor 24 to search for a motion vector outside a predetermined range.
【0056】例えばH.261形式のように復号化側の
復号化形式が動きベクトルの探索範囲を±15に制限す
るものと特定した場合には、制御部51は、制御部21
からの制御信号を変更し、動きベクトルの探索範囲を±
15の画素範囲内に制限する制御信号を整数画素動き補
償予測器22およびinter4V用動き補償予測器2
4に供給し、±15の画素範囲外での動きベクトルの探
索の機能を停止させ、±15の画素範囲内で動きベクト
ルを探索させる。For example, H. When the decoding format on the decoding side, such as the H.261 format, specifies that the search range of the motion vector is limited to ± 15, the control unit 51
From the motion vector search range.
The control signal for restricting the control signal to a range of 15 pixels is an integer pixel motion compensation predictor 22 and an inter4V motion compensation predictor 2
4 to stop the function of searching for a motion vector outside the range of ± 15 pixels, and to search for a motion vector within the range of ± 15 pixels.
【0057】また、復号化側の復号化形式が色差成分を
整数画素単位の動きベクトルのみに基づいて復号化をす
るものであると特定した場合には、制御部51は、制御
部21からの制御信号を変更し、動きベクトルの探索
を、輝度値成分については偶数番目(または奇数番目)
の画素のみに対して行わせる制御信号を供給し、そのよ
うに色差成分の動きベクトルを探索させる。これにより
整数画素単位の色差成分の動きベクトルが検出される。When the decoding format on the decoding side specifies that the chrominance component is to be decoded based only on the motion vector in units of integer pixels, the control unit 51 Change the control signal and search for the motion vector. For the luminance component, the even-numbered (or odd-numbered)
The control signal to be performed only for the pixel is supplied, and the motion vector of the color difference component is searched in such a manner. Thereby, a motion vector of a color difference component in an integer pixel unit is detected.
【0058】また、復号化側の復号化形式がフレーム外
からの動きベクトルに基づいて復号化を実行しないもの
であると特定した場合には、制御部51は、制御部21
からの制御信号を変更し、フレーム外からの動きベクト
ルを検出する機能を停止させる制御信号を供給する。こ
れにより、フレーム内のみで動きベクトルが検出され
る。When it is determined that the decoding format on the decoding side does not execute decoding based on a motion vector from outside the frame, the control unit 51
And a control signal for stopping the function of detecting a motion vector from outside the frame is supplied. Thereby, a motion vector is detected only within a frame.
【0059】また、例えばH.261形式のように復号
化側の復号化形式が半整数画素動き補償予測を行わない
ものであると特定した場合には、制御部51は、セレク
タ53において比較器25側を選択させて半整数画素動
き補償予測器23を不使用にし、整数画素動き補償予測
器22のみを使用して整数画素動き補償予測を実行す
る。一方、例えばMPEG−4形式のように復号化側の
復号化形式が半整数画素動き補償予測を行うものである
場合には、制御部51は、セレクタ53において半整数
画素動き補償予測器23側を選択させて半整数画素動き
補償予測器23を使用して、半整数画素動き補償予測を
実行させる。このように受信側情報に基づいて特定され
る復号化側の機能に応じて半整数画素動き補償予測器2
3の使用/不使用が切り換えられる。For example, H. When it is specified that the decoding format on the decoding side does not perform the half-integer pixel motion compensation prediction like the H.261 format, the control unit 51 causes the selector 53 to select the comparator 25 side and The pixel motion compensation prediction unit 23 is not used, and the integer pixel motion compensation prediction is performed using only the integer pixel motion compensation prediction unit 22. On the other hand, if the decoding format on the decoding side performs half-integer pixel motion compensation prediction, such as the MPEG-4 format, the control unit 51 causes the selector 53 to select the half-integer pixel motion compensation predictor 23 Is selected and the half-integer pixel motion compensation prediction is performed using the half-integer pixel motion compensation predictor 23. The half-integer pixel motion compensation predictor 2 according to the function of the decoding side specified based on the information of the receiving side as described above.
3 is switched between use and non-use.
【0060】また、制御部51は、受信側情報に基づい
た値の「rounding_type」フラグを制御信
号として半整数画素動き補償予測器23に供給し、予測
信号の小数部分を常に切り上げる機能を使用するか否か
を指定する。The control unit 51 supplies a "rounding_type" flag having a value based on the receiving side information to the half-integer pixel motion compensation predictor 23 as a control signal, and uses a function of always rounding up a decimal part of the prediction signal. Specify whether or not.
【0061】例えばH.263ベースライン形式のよう
に復号化側の復号化形式が半整数画素動き補償予測にお
いて実画素から補間により計算した予測信号の少数部分
を常に切り上げるものであると特定した場合には、制御
部51は、値0の「rounding_type」フラ
グを供給して、補間により計算した予測信号の少数部分
を常に切り上げるように制限させる。For example, H. If the decoding format on the decoding side, such as the H.263 baseline format, is specified to always round up a small part of the prediction signal calculated by interpolation from real pixels in half-integer pixel motion compensation prediction, the control unit 51 Supplies a "rounding_type" flag with a value of 0 to restrict the fractional part of the prediction signal calculated by interpolation to always be rounded up.
【0062】一方、量子化器3の制御部71は、受信側
情報に基づいてスイッチ72を制御して、AC係数予測
器41の使用/不使用を切り換える。例えばH.261
形式のように復号化側の復号化形式が逆量子化において
AC係数予測を行わないものであると特定した場合に
は、制御部71は、スイッチ72をオフ状態にしてAC
係数予測器41を不使用にして、量子化におけるAC係
数予測を停止させる。On the other hand, the control unit 71 of the quantizer 3 controls the switch 72 based on the information on the receiving side to switch between using and not using the AC coefficient predictor 41. For example, H. 261
When it is determined that the decoding format on the decoding side does not perform the AC coefficient prediction in the inverse quantization like the format, the control unit 71 sets the switch 72 to the OFF state and sets the AC
The coefficient predictor 41 is not used, and the AC coefficient prediction in the quantization is stopped.
【0063】このようにして、動き補償予測器9および
量子化器3においては受信側情報に応じて各種機能を停
止する。そして各種機能の使用/不使用が設定された
後、動画像の符号化が実行される。In this way, the various functions of the motion compensation predictor 9 and the quantizer 3 are stopped according to the information on the receiving side. After the use / non-use of various functions is set, encoding of a moving image is executed.
【0064】すなわち、まず制御部1は、セレクタ1
1,12を連動制御し、ある間隔毎にフレーム内(イン
トラ)符号化を実行し、その他を動き補償予測を用いた
フレーム間予測(インター)符号化を実行させる。That is, first, the control unit 1 selects the selector 1
1 and 12 are interlocked, and intra-frame (intra) coding is performed at certain intervals, and inter-frame prediction (inter) coding using motion compensation prediction is performed for the other.
【0065】イントラ符号化では、動画像入力信号の各
フレームが前処理部13により所定の大きさ(例えば縦
横8×8画素)のブロックに分割される。動画像入力信
号のブロックがセレクタ11を介してDCT器2に供給
されてDCT符号化係数に変換され、そのDCT符号化
係数が量子化器3により量子化され、量子化インデック
スに変換される。このとき、予め設定された機能で量子
化が実行される。そして可変長符号化器4により、量子
化インデックスに対してハフマン符号が割り当てられ符
号化ビットストリームとして出力される。In the intra coding, each frame of the moving image input signal is divided into blocks of a predetermined size (for example, 8 × 8 pixels vertically and horizontally) by the preprocessing unit 13. The block of the moving image input signal is supplied to the DCT unit 2 via the selector 11 and is converted into a DCT coding coefficient. The DCT coding coefficient is quantized by the quantizer 3 and converted into a quantization index. At this time, quantization is performed by a preset function. Then, the Huffman code is assigned to the quantization index by the variable length encoder 4 and output as an encoded bit stream.
【0066】また量子化インデックスは逆量子化器5に
より逆量子化され、さらに逆DCT器6により逆離散コ
サイン変換された後に、フレーム間動き補償予測で使う
予測参照フレームの一部としてフレームメモリ8に記憶
される。After the quantization index is inversely quantized by the inverse quantizer 5 and further subjected to inverse discrete cosine transform by the inverse DCT unit 6, the frame memory 8 is used as a part of the prediction reference frame used in the inter-frame motion compensation prediction. Is stored.
【0067】一方、インター符号化では、動画像入力信
号の各フレームが前処理部13により所定の大きさ(例
えば縦横16×16画素)のマクロブロックに分割され
る。そして、動き補償予測器9により、フレームメモリ
8に記憶されている予測参照フレームが参照されて各マ
クロブロックについて、画面中の物体の動きを表す情報
として動きベクトルが検出されるとともに、そのマクロ
ブロックに対応する予測信号が生成される。このとき予
め設定された機能で動き補償予測が実行される。On the other hand, in the inter coding, each frame of the moving image input signal is divided into macroblocks of a predetermined size (for example, 16 × 16 pixels in length and width) by the preprocessing unit 13. Then, the motion compensation predictor 9 refers to the prediction reference frame stored in the frame memory 8 to detect a motion vector for each macroblock as information representing the motion of the object on the screen, Is generated. At this time, motion compensation prediction is performed using a preset function.
【0068】そして、動画像入力信号の各マクロブロッ
クと、それに対応する予測信号との差分が差分器10に
より計算され、その差分がDCT器2で変換されてDC
T符号化係数が生成される。そしてそのDCT符号化係
数が量子化器3で量子化され、生成された量子化インデ
ックスおよび動きベクトルに対して可変長符号化器4に
より、ハフマン符号が割り当てられ符号化ビットストリ
ームとして出力される。このとき同様に、予め設定され
た機能で量子化が実行される。Then, the difference between each macroblock of the moving picture input signal and the corresponding prediction signal is calculated by the differentiator 10, and the difference is converted by the DCT unit 2 to obtain a DCT.
A T-coded coefficient is generated. Then, the DCT coded coefficients are quantized by the quantizer 3, the Huffman code is assigned to the generated quantization index and the motion vector by the variable length coder 4, and the resultant is output as a coded bit stream. At this time, similarly, the quantization is executed by a preset function.
【0069】またイントラ符号化と同様に、量子化イン
デックスは逆量子化器5により逆量子化され、さらに逆
DCT器6により逆離散コサイン変換される。そして、
逆離散コサイン変換後のデータに、加算器7により予測
信号が加算され、その演算結果が次の予測参照フレーム
の一部としてフレームメモリ8に記憶される。As in the case of the intra coding, the quantization index is inversely quantized by the inverse quantizer 5 and further subjected to inverse discrete cosine transform by the inverse DCT unit 6. And
An adder 7 adds a prediction signal to the data after the inverse discrete cosine transform, and the calculation result is stored in the frame memory 8 as a part of the next prediction reference frame.
【0070】このようにして動画像の符号化が実行され
る。なお、動き補償予測の各種機能の使用/不使用のみ
を受信側情報に基づいて設定するようにする場合には、
量子化器3は従来の量子化器103でもよい。同様に量
子化の各種機能の使用/不使用のみを受信側情報に基づ
いて設定するようにする場合には、動き補償予測器9は
従来の動き補償予測器109でもよい。The coding of the moving picture is executed in this manner. If only the use / non-use of various functions of the motion compensation prediction is set based on the receiving side information,
The quantizer 3 may be a conventional quantizer 103. Similarly, when only the use / non-use of various quantization functions is set based on the reception side information, the motion compensation predictor 9 may be the conventional motion compensation predictor 109.
【0071】以上のように、この実施の形態1によれ
ば、受信側情報により復号可能な符号の形式を特定し、
その復号可能な符号の形式に応じて、符号化側での符号
化形式の機能の一部を停止して、復号化側で復号可能な
符号へ動画像を符号化するようにしたので、符号化ビッ
トストリームにおけるデータの規則的な並び換えのみで
トランスコーディングを行うことが可能な符号化ビット
ストリームを生成することができるという効果が得られ
る。As described above, according to the first embodiment, the format of a code that can be decoded is specified based on the receiving side information.
Depending on the format of the code that can be decoded, some of the functions of the coding format on the encoding side are stopped and the moving image is encoded into a code that can be decoded on the decoding side. This makes it possible to generate an encoded bit stream capable of performing transcoding only by regular rearrangement of data in the encoded bit stream.
【0072】また、受信側情報に応じてinter4V
動き補償で規定されるブロック単位で動きベクトルを計
算する動き検出の機能を停止するようにしたので、in
ter4V動き補償で規定されるブロック単位で動きベ
クトルを復号化しない復号化器で復号化可能な符号化ビ
ットストリームへのトランスコーディングをデータの規
則的な並び換えのみで行うことが可能な符号化ビットス
トリームを生成することができるという効果が得られ
る。Also, according to the receiving side information,
Since the function of motion detection that calculates a motion vector in units of blocks defined by motion compensation is stopped, in
coded bits that can be transcoded into a coded bit stream that can be decoded by a decoder that does not decode a motion vector in units of blocks specified by ter4V motion compensation by only regular rearrangement of data The effect that a stream can be generated is obtained.
【0073】さらに、受信側情報に応じて動きベクトル
の探索範囲を制限するようにしたので、符号化側におけ
る動きベクトルの探索範囲が復号化側で許容する動きベ
クトルの探索範囲よりも大きい場合においても、その探
索範囲での動きベクトルに基づいて復号化をする復号化
器で復号化可能な符号化ビットストリームへのトランス
コーディングをデータの規則的な並び換えのみで行うこ
とが可能な符号化ビットストリームを生成することがで
きるという効果が得られる。Further, since the search range of the motion vector is limited according to the information on the receiving side, the search range of the motion vector on the encoding side is larger than the search range of the motion vector allowed on the decoding side. Also, the coded bits that can be transcoded into a coded bit stream that can be decoded by a decoder that decodes based on the motion vector in the search range only by regular rearrangement of data The effect that a stream can be generated is obtained.
【0074】さらに、受信側情報に応じて半整数画素単
位の動きベクトルを計算する動き検出の機能を使用しな
いようにしたので、半整数画素単位の動きベクトルを復
号化しない復号化器で復号化可能な符号化ビットストリ
ームへのトランスコーディングをデータの規則的な並び
換えのみで行うことが可能な符号化ビットストリームを
生成することができるという効果が得られる。Further, since the function of motion detection for calculating a motion vector in half-integer pixels in accordance with the information on the receiving side is not used, decoding is performed by a decoder that does not decode motion vectors in half-integer pixels. An effect is obtained that an encoded bit stream can be generated in which transcoding into a possible encoded bit stream can be performed only by regular rearrangement of data.
【0075】さらに、受信側情報に応じてフレーム外か
らの動きベクトル検出を行う機能を使用しないようにし
たので、フレーム内の動きベクトルのみに基づいて復号
化する復号化器で復号化可能な符号化ビットストリーム
へのトランスコーディングをデータの規則的な並び換え
のみで行うことが可能な符号化ビットストリームを生成
することができるという効果が得られる。Further, since the function of detecting a motion vector from outside the frame according to the information on the receiving side is not used, a code that can be decoded by a decoder that decodes based only on the motion vector within the frame is used. This makes it possible to generate an encoded bit stream that can be transcoded into an encoded bit stream only by regular rearrangement of data.
【0076】さらに、受信側情報に応じて輝度値成分に
ついては奇数番目または偶数番目の画素についての動き
ベクトルの探索を停止するようにしたので、色差成分に
ついては整数画素単位の動きベクトルに基づいて復号化
を実行する復号化器で復号化可能な符号化ビットストリ
ームへのトランスコーディングをデータの規則的な並び
換えのみで行うことが可能な符号化ビットストリームを
生成することができるという効果が得られる。Further, since the search for the motion vector for the odd-numbered or even-numbered pixels is stopped for the luminance value component according to the receiving side information, the color difference component is determined based on the motion vector in integer pixel units. An effect is obtained that an encoded bit stream can be generated that can be transcoded into an encoded bit stream that can be decoded by a decoder that performs decoding only by regular rearrangement of data. Can be
【0077】さらに、受信側情報に応じて「round
ing_type」フラグの値を変更するようにして予
測信号の少数部分を常に切り上げるか否かを設定するよ
うにしたので、予測信号の少数部分を常に切り上げる復
号化器で復号化可能な符号化ビットストリームへのトラ
ンスコーディングをデータの規則的な並び換えのみで行
うことが可能な符号化ビットストリームを生成すること
ができるという効果が得られる。Further, according to the information on the receiving side, "round"
Since the value of the “ing_type” flag is changed to set whether to always round up the minority part of the prediction signal, an encoded bit stream that can be decoded by a decoder that always rounds up the minority part of the prediction signal This makes it possible to generate an encoded bit stream that can be transcoded only by regular rearrangement of data.
【0078】さらに、受信側情報に応じて量子化におけ
るイントラAC係数予測を停止するようにしたので、イ
ントラAC係数予測をしない復号化器で復号化可能な符
号化ビットストリームへのトランスコーディングをデー
タの規則的な並び換えのみで行うことが可能な符号化ビ
ットストリームを生成することができるという効果が得
られる。Further, since the prediction of the intra AC coefficient in the quantization is stopped according to the information on the receiving side, the transcoding to the coded bit stream that can be decoded by a decoder that does not perform the intra AC coefficient prediction is performed. Thus, it is possible to generate an encoded bit stream that can be performed only by the regular rearrangement.
【0079】実施の形態2.図4はこの発明の実施の形
態2による動画像処理システムの構成例を示すブロック
図である。図において、81は実施の形態1による動画
像符号化装置を応用した送信側符号化器(動画像符号化
装置)であり、82は送信側符号化器81および受信側
復号化器83の符号化形式による符号化ビットストリー
ムのデータ順序の違いに基づいて、送信側符号化器81
からの符号化ビットストリームにおけるデータを並べ替
えて受信側復号化器83で復号可能な形式の符号化ビッ
トストリームに変換し、変換後の符号化ビットストリー
ムを受信側復号化器83に供給するデータ並べ換え部9
1を有するトランスコーダであり、83は所定の符号化
形式の符号化ビットストリームを復号化する受信側復号
化器(動画像復号化装置)である。Embodiment 2 FIG. 4 is a block diagram showing a configuration example of a moving image processing system according to Embodiment 2 of the present invention. In the figure, reference numeral 81 denotes a transmitting side encoder (moving image encoding apparatus) to which the moving image encoding apparatus according to the first embodiment is applied, and reference numeral 82 denotes codes of the transmitting side encoder 81 and the receiving side decoder 83. Based on the difference in the data order of the encoded bit stream depending on the encoding format,
, Rearranges the data in the coded bit stream, converts the coded bit stream into a coded bit stream in a format that can be decoded by the receiving side decoder 83, and supplies the converted coded bit stream to the receiving side decoder 83. Rearranger 9
1 is a transcoder, and 83 is a receiving side decoder (moving image decoding device) for decoding an encoded bit stream of a predetermined encoding format.
【0080】次に動作について説明する。例えばH.2
45形式に基づいて受信側復号化器83は、復号可能な
符号の符号化形式などの受信側情報を送信側符号化器8
1に供給する。Next, the operation will be described. For example, H. 2
The receiver-side decoder 83 outputs the receiver-side information such as the coding format of the code that can be decoded based on the 45-format.
Feed to 1.
【0081】送信側符号化器81は、供給された受信側
情報に基づいて、上述(実施の形態1)のようにして動
画像の符号化を実行し、生成された符号化ビットストリ
ームをトランスコーダ82に供給する。トランスコーダ
82のデータ並べ換え部91は、供給された符号化ビッ
トストリームにおけるデータの順序を変更して受信側復
号化器83で復号可能な形式の符号化ビットストリーム
に変換し、変換後の符号化ビットストリームを受信側復
号化器83に供給する。そして、受信側復号化器83
は、トランスコーダ82からの所定の符号化形式の符号
化ビットストリームを復号化して動画像を出力する。The transmission-side encoder 81 executes the encoding of the moving image based on the supplied reception-side information as described above (Embodiment 1), and converts the generated encoded bit stream into a transcoded image. It is supplied to the coder 82. The data reordering unit 91 of the transcoder 82 changes the order of the data in the supplied encoded bit stream, converts the data into an encoded bit stream in a format that can be decoded by the receiver-side decoder 83, and performs encoding after the conversion. The bit stream is supplied to the receiving side decoder 83. Then, the receiving side decoder 83
Decodes a coded bit stream of a predetermined coding format from the transcoder 82 and outputs a moving image.
【0082】以上のように、この実施の形態2によれ
ば、所定の符号化形式で符号化する送信側(符号化側)
と、それとは異なる復号化形式で復号化する受信側(復
号化側)との間で通信を行う際に送信側には備えられて
いるが受信側には備えられていない機能がある場合に
は、その機能を使用しないで符号化を実行するように
し、データの並び換えを実行して符号化ビットストリー
ムを、復号化側の復号化形式の符号化ビットストリーム
に変換するようにしたので、トランスコーディングの際
に要する処理および回路規模、さらに所要時間を低減す
ることができるという効果が得られる。As described above, according to the second embodiment, the transmitting side (encoding side) encoding in a predetermined encoding format
When performing communication between a receiving side (decoding side) that decodes in a different decoding format and a function that is provided on the transmitting side but not provided on the receiving side, Did not use that function to perform encoding, and rearranged the data to convert the coded bit stream into a coded bit stream in the decoding format on the decoding side. The effect is obtained that the processing and circuit scale required for transcoding and the required time can be reduced.
【0083】なお、上記実施の形態においては符号化器
としてMPEG−4形式の符号化器を、復号化器として
H.261形式またはH.263ベースライン形式の復
号化器を例示して説明したが、本発明の適用可能な符号
化形式および復号化形式はこれらのもの限定されるもの
ではなく、例えばMPEG−1形式、MPEG−2形式
など他の種々の形式に適用できる。In the above embodiment, an encoder of the MPEG-4 format is used as an encoder, and H.264 is used as a decoder. H.261 format or H.261 format. The H.263 decoder has been described by way of example, but the encoding and decoding formats applicable to the present invention are not limited to these. For example, MPEG-1 format, MPEG-2 format And so on.
【0084】また、上記実施の形態においては整数画素
動き補償予測と半整数画素動き補償予測を直列処理と
し、整数画素動き補償予測とinter4V動き補償予
測を並列処理としているが、本発明の適用できる動き補
償予測処理の形態はこれに限定されるものではない。In the above embodiment, integer pixel motion compensation prediction and half-integer pixel motion compensation prediction are performed in series, and integer pixel motion compensation prediction and inter4V motion compensation prediction are performed in parallel. However, the present invention can be applied. The form of the motion compensation prediction process is not limited to this.
【0085】なお、本発明は上記実施の形態に限定され
るものではなく、当業者により容易に変更または修正さ
れ生成されるものも勿論含まれる。The present invention is not limited to the above-described embodiment, but also includes those which are easily changed or modified by those skilled in the art.
【0086】[0086]
【発明の効果】以上のように、この発明によれば、復号
化側で復号可能な符号の形式を特定し、特定した復号可
能な符号の形式に応じて符号化側での符号化形式の機能
の一部を停止して、復号化側で復号可能な符号へ動画像
を符号化するように構成したので、符号化ビットストリ
ームにおけるデータの規則的な並び換えのみでトランス
コーディングを行うことが可能な符号化ビットストリー
ムを生成することができるという効果がある。As described above, according to the present invention, the code format that can be decoded on the decoding side is specified, and the coding format on the coding side is specified according to the specified code format that can be decoded. Since a part of the functions is stopped and the moving image is encoded to a code that can be decoded on the decoding side, transcoding can be performed only by regular rearrangement of data in the encoded bit stream. The effect is that a possible encoded bit stream can be generated.
【0087】この発明によれば、復号化側の復号化形式
がinter4V動き補償によらないで復号化するもの
であると特定された場合、inter4V動き補償の機
能を停止して動画像を符号化するように構成したので、
inter4V動き補償で規定されるブロック単位で動
きベクトルを復号化しない復号化器で復号化可能な符号
化ビットストリームへのトランスコーディングをデータ
の規則的な並び換えのみで行うことが可能な符号化ビッ
トストリームを生成することができるという効果があ
る。According to the present invention, when it is specified that the decoding format on the decoding side is to be decoded without using the inter4V motion compensation, the function of the inter4V motion compensation is stopped to encode the moving picture. So that
coded bits that can be transcoded into a coded bit stream that can be decoded by a decoder that does not decode a motion vector in block units specified by inter4V motion compensation, by only regular rearrangement of data There is an effect that a stream can be generated.
【0088】この発明によれば、復号化側の復号化形式
が所定の画素範囲内のみの動きベクトルに基づいて復号
化するものであると特定された場合、所定の画素範囲外
において動きベクトルを探索する機能を停止して動画像
を符号化するように構成したので、符号化側における動
きベクトルの探索範囲が復号化側で許容する動きベクト
ルの探索範囲よりも大きい場合においても、その探索範
囲での動きベクトルに基づいて復号化をする復号化器で
復号化可能な符号化ビットストリームへのトランスコー
ディングをデータの規則的な並び換えのみで行うことが
可能な符号化ビットストリームを生成することができる
という効果がある。According to the present invention, when it is specified that the decoding format on the decoding side is to be decoded based on a motion vector only within a predetermined pixel range, the motion vector is determined outside the predetermined pixel range. Since the search function is stopped and the moving image is encoded, even when the search range of the motion vector on the encoding side is larger than the search range of the motion vector allowed on the decoding side, the search range Generating a coded bit stream that can be transcoded into a coded bit stream that can be decoded by a decoder that performs decoding based on the motion vector by only regular reordering of data. There is an effect that can be.
【0089】この発明によれば、復号化側の復号化形式
が整数画素単位の動きベクトルに基づいて動き補償して
復号化するものであると特定された場合、半整数画素単
位の動きベクトル検出の機能を停止して動画像を符号化
するように構成したので、半整数画素単位の動きベクト
ルを復号化しない復号化器で復号化可能な符号化ビット
ストリームへのトランスコーディングをデータの規則的
な並び換えのみで行うことが可能な符号化ビットストリ
ームを生成することができるという効果がある。According to the present invention, when it is specified that the decoding format on the decoding side is to perform motion compensation based on a motion vector in integer pixel units and to perform decoding, a motion vector detection in half integer pixel units is performed. Function is stopped and the moving picture is coded, so that the transcoding into a coded bit stream that can be decoded by a decoder that does not decode the motion vector in half-integer pixels is performed regularly. There is an effect that it is possible to generate an encoded bit stream that can be performed only by simple rearrangement.
【0090】この発明によれば、復号化側の復号化形式
がフレーム外からの動きベクトルによる動き補償によら
ないで復号化するものであると特定された場合、フレー
ム外からの動きベクトルを検出する機能を停止して動画
像を符号化するように構成したので、フレーム内の動き
ベクトルに基づいて復号化する復号化器で復号化可能な
符号化ビットストリームへのトランスコーディングをデ
ータの規則的な並び換えのみで行うことが可能な符号化
ビットストリームを生成することができるという効果が
ある。According to the present invention, when it is determined that the decoding format on the decoding side is to be decoded without relying on motion compensation using a motion vector from outside the frame, a motion vector from outside the frame is detected. Is configured to stop the function of encoding the moving image, so that the decoder that decodes based on the motion vector in the frame regularly transcodes the data into an encoded bit stream that can be decoded. There is an effect that it is possible to generate an encoded bit stream that can be performed only by simple rearrangement.
【0091】この発明によれば、復号化側の復号化形式
が整数画素毎に動き補償して復号化するものと特定さ
れ、かつ符号化側の符号化形式が半整数画素毎に動き補
償して符号化するものである場合、奇数番目の画素およ
び偶数番目の画素のいずれか一方の画素における動きベ
クトルの探索の機能を停止して、他方の画素において動
きベクトルを探索して動画像を符号化するように構成し
たので、例えば色差成分については整数画素単位の動き
ベクトルに基づいて復号化を実行する復号化器で復号化
可能な符号化ビットストリームへのトランスコーディン
グをデータの規則的な並び換えのみで行うことが可能な
符号化ビットストリームを生成することができるという
効果がある。According to the present invention, it is specified that the decoding format on the decoding side performs motion compensation for each integer pixel for decoding, and the coding format on the encoding side performs motion compensation for each half integer pixel. In the case of encoding, the function of searching for a motion vector in one of the odd-numbered pixel and the even-numbered pixel is stopped, and a motion vector is searched for in the other pixel to encode a moving image. For example, for a chrominance component, transcoding into a coded bit stream that can be decoded by a decoder that performs decoding based on a motion vector in units of integer pixels is performed using a regular arrangement of data. There is an effect that it is possible to generate an encoded bit stream that can be performed only by permutation.
【0092】この発明によれば、復号化側の復号化形式
が半整数画素毎に動き補償して復号化し、かつ、整数画
素の値から半整数画素の値を補間する際に半整数画素の
値の小数部分を切り上げるものと特定された場合、他の
動き補償予測の機能を停止して、整数画素の値から半整
数画素の値を補間する際に半整数画素の値の小数部分を
切り上げる動き補償予測をして動画像を符号化するよう
に構成したので、補間により計算した予測信号の少数部
分を常に切り上げる復号化器で復号化可能な符号化ビッ
トストリームへのトランスコーディングをデータの規則
的な並び換えのみで行うことが可能な符号化ビットスト
リームを生成することができるという効果がある。According to the present invention, when the decoding format on the decoding side is motion compensated for each half-integer pixel and decoded, and when the value of the half-integer pixel is interpolated from the value of the integer pixel, the decoding format of the half-integer pixel is If it is specified to round up the decimal part of the value, stop the motion compensation prediction function and round up the decimal part of the half-integer pixel value when interpolating the half-integer pixel value from the integer pixel value Since it is configured to encode a moving image by performing motion compensation prediction, it is necessary to transcode into a coded bit stream that can be decoded by a decoder that always rounds up a small part of a prediction signal calculated by interpolation. There is an effect that an encoded bit stream that can be performed only by dynamic rearrangement can be generated.
【0093】この発明によれば、復号化側の復号化形式
がイントラAC係数適応予測量子化された符号を逆量子
化可能ではないものと特定された場合、イントラAC係
数適応予測量子化の機能を停止して量子化をし、動画像
を符号化するように構成したので、量子化においてイン
トラAC係数予測をしない復号化器で復号化可能な符号
化ビットストリームへのトランスコーディングをデータ
の規則的な並び換えのみで行うことが可能な符号化ビッ
トストリームを生成することができるという効果があ
る。According to the present invention, when the decoding format on the decoding side is determined to be a code that has been subjected to intra AC coefficient adaptive predictive quantization and cannot be inversely quantized, the function of intra AC coefficient adaptive predictive quantization is performed. Is stopped, quantization is performed, and a moving image is coded. Therefore, transcoding into a coded bit stream that can be decoded by a decoder that does not perform intra AC coefficient prediction in quantization is performed according to data rules. There is an effect that an encoded bit stream that can be performed only by dynamic rearrangement can be generated.
【0094】この発明によれば、復号化側で復号可能な
符号の形式を特定する符号形式特定手段、および符号形
式特定手段により特定された復号可能な符号の形式に応
じて符号化側での符号化形式の機能の一部を停止して、
復号化側で復号可能な符号へ動画像を符号化し、符号化
ビットストリームを出力する符号化手段を備える動画像
符号化装置と、復号化側で復号可能な形式の符号化ビッ
トストリームを復号化する動画像復号化装置と、符号化
側および復号化側の復号化形式による符号化ビットスト
リームのデータ順序の違いに基づいて、動画像符号化装
置により出力された符号化ビットストリームのデータを
並べ替えて復号化側で復号可能な形式の符号化ビットス
トリームに変換し、変換後の符号化ビットストリームを
動画像復号化装置に供給するトランスコーダとを備える
ようにしたので、トランスコーディングの際に要する処
理および回路規模、さらに所要時間を低減することがで
きるという効果がある。According to the present invention, the code format specifying means for specifying the format of a code that can be decoded on the decoding side, and the code format on the coding side according to the format of the code that can be decoded specified by the code format specifying device. Stop some features of the encoding format,
A moving image encoding apparatus including an encoding unit that encodes a moving image to a code that can be decoded on the decoding side and outputs an encoded bit stream, and decodes an encoded bit stream in a format that can be decoded on the decoding side. A video decoding device that performs encoding, and arranges the data of the encoded bit stream output by the video encoding device based on the difference in the data order of the encoded bit stream depending on the decoding format on the encoding side and the decoding side. In other words, a transcoder that converts the encoded bit stream into a format that can be decoded on the decoding side and supplies the encoded bit stream after conversion to the video decoding device is provided. There is an effect that required processing and circuit scale, and required time can be reduced.
【図1】 この発明の実施の形態1による動画像符号化
装置の構成例を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration example of a video encoding device according to a first embodiment of the present invention.
【図2】 図1の動画像符号化装置における動き補償予
測器の詳細な構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a detailed configuration example of a motion compensation predictor in the video encoding device of FIG.
【図3】 図1の量子化器の詳細な構成例を示すブロッ
ク図である。FIG. 3 is a block diagram illustrating a detailed configuration example of a quantizer in FIG. 1;
【図4】 この発明の実施の形態2による動画像処理シ
ステムの構成例を示すブロック図である。FIG. 4 is a block diagram illustrating a configuration example of a moving image processing system according to a second embodiment of the present invention;
【図5】 例えばMPEG−4形式で動画像を符号化す
る従来の動画像符号化装置の構成例を示すブロック図で
ある。FIG. 5 is a block diagram illustrating a configuration example of a conventional moving image encoding device that encodes a moving image in, for example, the MPEG-4 format.
【図6】 図5の動き補償予測器の詳細な構成例を示す
ブロック図である。6 is a block diagram illustrating a detailed configuration example of a motion compensation predictor in FIG.
【図7】 図5の量子化器の詳細な構成例を示すブロッ
ク図である。FIG. 7 is a block diagram illustrating a detailed configuration example of the quantizer of FIG. 5;
【図8】 符号化側と復号化側とで異なる符号化形式の
動画像を処理する動画像処理システムの一例を示すブロ
ック図である。FIG. 8 is a block diagram illustrating an example of a moving image processing system that processes moving images in different encoding formats on the encoding side and the decoding side.
1 制御部(符号化手段)、2 DCT器(符号化手
段)、3 量子化器(符号化手段)、4 可変長符号化
器(符号化手段)、5 逆量子化器(符号化手段)、6
逆DCT器(符号化手段)、7 加算器(符号化手
段)、8 フレームメモリ(符号化手段)、9 動き補
償予測器(符号化手段)、10 差分器(符号化手
段)、11,12 セレクタ(符号化手段)、13 前
処理部(符号化手段)、51,71 制御部(符号形式
特定手段)、81 送信側符号化器(動画像符号化装
置)、82 トランスコーダ、83 受信側復号化器
(動画像復号化装置)。Reference Signs List 1 control unit (encoding unit), 2 DCT unit (encoding unit), 3 quantizer (encoding unit), 4 variable length encoder (encoding unit), 5 inverse quantizer (encoding unit) , 6
Inverse DCT unit (encoding unit), 7 adder (encoding unit), 8 frame memory (encoding unit), 9 motion compensation predictor (encoding unit), 10 difference unit (encoding unit), 11, 12 Selector (encoding unit), 13 preprocessing unit (encoding unit), 51, 71 control unit (encoding format identifying unit), 81 transmission side encoder (moving image encoding device), 82 transcoder, 83 reception side Decoder (moving image decoding device).
───────────────────────────────────────────────────── フロントページの続き (72)発明者 山田 悦久 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 (72)発明者 浅井 光太郎 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 (72)発明者 長谷川 由里 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 (72)発明者 関口 俊一 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 (72)発明者 小川 文伸 東京都千代田区丸の内二丁目2番3号 三 菱電機株式会社内 Fターム(参考) 5C059 KK06 KK11 MA00 MA23 MC11 MC38 ME02 NN03 NN15 NN28 PP04 SS07 TA45 TA62 TB07 TC18 TC27 TC45 UA02 UA05 UA33 5J064 AA03 BA01 BB03 BB13 BC01 BC14 BC16 BD03 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Etsuhisa Yamada 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Inside Mitsubishi Electric Corporation (72) Inventor Kotaro Asai 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Inside Rishi Electric Co., Ltd. (72) Inventor Yuri Hasegawa 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Sanritsu Electric Co., Ltd. (72) Shunichi Sekiguchi 2-3-2 Marunouchi, Chiyoda-ku, Tokyo Mitsubishi Within Electric Co., Ltd. (72) Inventor Fuminobu Ogawa 2-3-2 Marunouchi, Chiyoda-ku, Tokyo F-term (reference) 5C059 KK06 KK11 MA00 MA23 MC11 MC38 ME02 NN03 NN15 NN28 PP04 SS07 TA45 TA62 TB07 TC18 TC27 TC45 UA02 UA05 UA33 5J064 AA03 BA01 BB03 BB13 BC01 BC14 BC16 BD03
Claims (11)
式の動画像を処理する動画像処理システムの前記符号化
側で動画像を符号化する動画像符号化装置において、 前記復号化側で復号可能な符号の形式を特定する符号形
式特定手段と、 前記符号形式特定手段により特定された前記復号可能な
符号の形式に応じて前記符号化側での符号化形式の機能
の一部を停止して、前記復号化側で復号可能な符号へ動
画像を符号化する符号化手段とを備えることを特徴とす
る動画像符号化装置。1. A moving image encoding apparatus for encoding a moving image on the encoding side of a moving image processing system for processing moving images in different encoding formats on an encoding side and a decoding side, wherein: Code format specifying means for specifying the format of a code that can be decoded on the side, and a part of the function of the coding format on the coding side according to the format of the code that can be decoded specified by the code format specifying device And a coding unit for coding the moving image into a code that can be decoded on the decoding side.
いずれかで符号化する機能を有することを特徴とする請
求項1記載の動画像符号化装置。2. The moving picture coding apparatus according to claim 1, wherein said coding means has a function of coding the moving picture in one of MPEG formats.
号の形式がinter4V動き補償によらないで復号化
するものであると特定された場合、inter4V動き
補償の機能を停止して動画像を符号化することを特徴と
する請求項1または請求項2記載の動画像符号化装置。3. The encoding means stops the function of the inter4V motion compensation when it is determined that the format of the code that can be decoded on the decoding side does not depend on the inter4V motion compensation. 3. The moving picture coding apparatus according to claim 1, wherein the moving picture is coded.
号の形式が所定の画素範囲内のみの動きベクトルに基づ
いて復号化するものであると特定された場合、前記所定
の画素範囲外において動きベクトルを探索する機能を停
止して動画像を符号化することを特徴とする請求項1ま
たは請求項2記載の動画像符号化装置。4. When the encoding unit determines that the format of a code that can be decoded on the decoding side is to be decoded based on a motion vector only within a predetermined pixel range, the predetermined pixel range is determined. 3. The moving picture coding apparatus according to claim 1, wherein the function of searching for a motion vector is stopped outside and the moving picture is coded.
号の形式が整数画素単位の動きベクトルに基づいて動き
補償して復号化するものであると特定された場合、半整
数画素単位の動きベクトル検出の機能を停止して動画像
を符号化することを特徴とする請求項1または請求項2
記載の動画像符号化装置。5. When the encoding unit determines that the code format that can be decoded on the decoding side is to be motion compensated and decoded based on a motion vector in integer pixel units, the encoding unit performs decoding in half-integer pixel units. 3. A moving picture is coded by stopping the function of detecting a motion vector.
The moving picture encoding device according to the above.
号の形式がフレーム外からの動きベクトルによる動き補
償によらないで復号化するものであると特定された場
合、フレーム外からの動きベクトルを検出する機能を停
止して動画像を符号化することを特徴とする請求項1ま
たは請求項2記載の動画像符号化装置。6. The encoding means, when it is determined that the format of a code that can be decoded on the decoding side is to be decoded without using motion compensation by a motion vector from outside the frame, 3. The moving picture coding apparatus according to claim 1, wherein the function of detecting a motion vector is stopped to code the moving picture.
号の形式が整数画素毎に動き補償して復号化するものと
特定され、かつ符号化側の符号化形式が半整数画素毎に
動き補償して符号化するものである場合、奇数番目の画
素および偶数番目の画素のいずれか一方の画素における
動きベクトルの探索の機能を停止して、他方の画素にお
いて動きベクトルを探索して動画像を符号化することを
特徴とする請求項1または請求項2記載の動画像符号化
装置。7. The encoding means specifies that a code format that can be decoded on the decoding side is to be decoded by motion compensation for each integer pixel, and that the encoding format on the encoding side is half integer pixel. In the case of encoding with motion compensation, the function of searching for a motion vector in one of the odd-numbered pixel and the even-numbered pixel is stopped, and a motion vector is searched for in the other pixel. The moving picture coding apparatus according to claim 1 or 2, wherein the moving picture is coded.
号の形式が半整数画素毎に動き補償して復号化し、か
つ、整数画素の値から半整数画素の値を補間する際に半
整数画素の値の小数部分を切り上げるものと特定された
場合、他の動き補償予測の機能を停止して、整数画素の
値から半整数画素の値を補間する際に半整数画素の値の
小数部分を切り上げる動き補償予測をして動画像を符号
化することを特徴とする請求項1または請求項2記載の
動画像符号化装置。8. The encoding unit according to claim 1, wherein the code format that can be decoded on the decoding side is decoded by performing motion compensation for each half-integer pixel, and interpolating the half-integer pixel value from the integer pixel value. If it is specified that the fractional part of the half-integer pixel value is to be rounded up, the other motion compensation prediction function is stopped, and when interpolating the half-integer pixel value from the integer pixel value, the half-integer pixel value 3. The moving picture coding apparatus according to claim 1, wherein the moving picture is coded by performing motion compensation prediction in which a decimal part is rounded up.
号の形式がイントラAC係数適応予測量子化された符号
を逆量子化可能ではないものと特定された場合、イント
ラAC係数適応予測量子化の機能を停止して量子化を
し、動画像を符号化することを特徴とする請求項1また
は請求項2記載の動画像符号化装置。9. The coding means, when it is specified that the code form decodable on the decoding side is a code that cannot be inversely quantized by the intra AC coefficient adaptive prediction quantization, 3. The moving picture coding apparatus according to claim 1, wherein the function of quantization is stopped, quantization is performed, and the moving picture is coded.
形式の動画像を処理する動画像処理システムの前記符号
化側で動画像を符号化する動画像符号化方法において、 前記復号化側で復号可能な符号の形式を特定するステッ
プと、 特定した前記復号可能な符号の形式に応じて前記符号化
側での符号化形式の機能の一部を停止して、前記復号化
側で復号可能な符号へ動画像を符号化するステップとを
備えることを特徴とする動画像符号化方法。10. A moving picture coding method for coding a moving picture on the coding side of a moving picture processing system for processing moving pictures in different coding formats on the coding side and the decoding side, Identifying the format of the code that can be decoded on the side, and stopping a part of the function of the encoding format on the encoding side according to the identified format of the decodable code, Encoding the moving image into a decodable code.
形式の動画像を処理する動画像処理システムにおいて、 前記復号化側で復号可能な符号の形式を特定する符号形
式特定手段、および前記符号形式特定手段により特定さ
れた前記復号可能な符号の形式に応じて前記符号化側で
の符号化形式の機能の一部を停止して、前記復号化側で
復号可能な符号へ動画像を符号化し、符号化ビットスト
リームを出力する符号化手段を備える動画像符号化装置
と、 前記復号化側で復号可能な形式の符号化ビットストリー
ムを復号化する動画像復号化装置と、 前記符号化側および前記復号化側の復号化形式による符
号化ビットストリームのデータ順序の違いに基づいて、
前記動画像符号化装置により出力された符号化ビットス
トリームのデータを並べ替えて前記復号化側で復号可能
な形式の符号化ビットストリームに変換し、変換後の符
号化ビットストリームを前記動画像復号化装置に供給す
るトランスコーダとを備えることを特徴とする動画像処
理システム。11. A moving image processing system for processing moving images of different encoding formats on an encoding side and a decoding side, comprising: a code format identification unit for identifying a format of a code that can be decoded on the decoding side; A part of the function of the encoding format on the encoding side is stopped according to the format of the decodable code specified by the code format identification unit, and the moving image is converted to a code decodable on the decoding side. A moving image encoding device including an encoding unit that outputs an encoded bit stream, a moving image decoding device that decodes an encoded bit stream in a format that can be decoded on the decoding side, and the code Based on the difference in the data order of the encoded bit stream according to the decoding format of the decoding side and the decoding side,
The data of the coded bit stream output by the video coding apparatus is rearranged and converted into a coded bit stream in a format that can be decoded on the decoding side, and the coded bit stream after the conversion is decoded by the video decoding. A moving image processing system comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4886299A JP2000253404A (en) | 1999-02-25 | 1999-02-25 | Device and method for encoding moving image and moving image processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4886299A JP2000253404A (en) | 1999-02-25 | 1999-02-25 | Device and method for encoding moving image and moving image processing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2000253404A true JP2000253404A (en) | 2000-09-14 |
Family
ID=12815099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4886299A Abandoned JP2000253404A (en) | 1999-02-25 | 1999-02-25 | Device and method for encoding moving image and moving image processing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2000253404A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006203682A (en) * | 2005-01-21 | 2006-08-03 | Nec Corp | Converting device of compression encoding bit stream for moving image at syntax level and moving image communication system |
US7986732B2 (en) | 2003-04-10 | 2011-07-26 | Nec Corporation | Moving picture compression/encoding method conversion device and moving picture communication system |
-
1999
- 1999-02-25 JP JP4886299A patent/JP2000253404A/en not_active Abandoned
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7986732B2 (en) | 2003-04-10 | 2011-07-26 | Nec Corporation | Moving picture compression/encoding method conversion device and moving picture communication system |
JP2006203682A (en) * | 2005-01-21 | 2006-08-03 | Nec Corp | Converting device of compression encoding bit stream for moving image at syntax level and moving image communication system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6618439B2 (en) | Moving picture coding apparatus, moving picture coding method, moving picture decoding apparatus, and moving picture decoding method | |
US6393059B1 (en) | Conversion of video data bit stream | |
US7177360B2 (en) | Video encoding method and video decoding method | |
US6625215B1 (en) | Methods and apparatus for context-based inter/intra coding mode selection | |
JP3393234B2 (en) | Image signal encoding method and image signal encoding device | |
US20030095603A1 (en) | Reduced-complexity video decoding using larger pixel-grid motion compensation | |
KR20110071231A (en) | Encoding Method, Decoding Method and Apparatus | |
JP2005510983A (en) | Global motion compensation for video images | |
JP2006518568A (en) | Video encoding | |
JPH10336672A (en) | Encoding system converter and motion vector detection method therefor | |
JP3599942B2 (en) | Moving picture coding method and moving picture coding apparatus | |
US6922490B2 (en) | Image compression of selected regions based on transmission bit rate, motion, and/or region information, and bit selection before compression based on transmission bit rate | |
JP2000253404A (en) | Device and method for encoding moving image and moving image processing system | |
KR19980030414A (en) | Moving picture decoding apparatus based on compulsory one-way motion compensation | |
JP4140163B2 (en) | Encoding method converter | |
JP4350761B2 (en) | Image decoding device | |
KR101200494B1 (en) | method for transcoding H.264 to MPEG-2 | |
JP4260195B2 (en) | Image decoding device | |
JP2012191500A (en) | Image encoder, image decoder, image encoding method, and image decoding method | |
KR19980050930A (en) | Macroblock Address Variable Length Coding Device with MPEG-2 Syntax |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20041013 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060711 |
|
A762 | Written abandonment of application |
Free format text: JAPANESE INTERMEDIATE CODE: A762 Effective date: 20060815 |