JP2008252931A - Decoding apparatus and method, encoding apparatus and method, image processing system, and image processing method - Google Patents

Decoding apparatus and method, encoding apparatus and method, image processing system, and image processing method Download PDF

Info

Publication number
JP2008252931A
JP2008252931A JP2008137236A JP2008137236A JP2008252931A JP 2008252931 A JP2008252931 A JP 2008252931A JP 2008137236 A JP2008137236 A JP 2008137236A JP 2008137236 A JP2008137236 A JP 2008137236A JP 2008252931 A JP2008252931 A JP 2008252931A
Authority
JP
Japan
Prior art keywords
encoding
image data
parameter
picture
error flag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008137236A
Other languages
Japanese (ja)
Other versions
JP4390009B2 (en
Inventor
Motoki Kato
元樹 加藤
Koji Obata
功史 小幡
Shinya Iki
信弥 伊木
Hideyuki Narita
秀之 成田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2008137236A priority Critical patent/JP4390009B2/en
Publication of JP2008252931A publication Critical patent/JP2008252931A/en
Application granted granted Critical
Publication of JP4390009B2 publication Critical patent/JP4390009B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To perform encoding processing with satisfactory image quality even if an error occurs in a bit stream, while information indicating that the error occurs in the bit stream is produced. <P>SOLUTION: A decoding apparatus 10 includes a means 12 for producing image data by decoding a bit stream, a means 12 for producing encoding parameters for each hierarchy, and a means 12 for producing an error flag that indicates whether the encoding parameters can be used effectively or not. An encoding apparatus 30 includes a means 41 for judging whether the encoding parameters can be used effectively or not based on the error flag, a means 36 for calculating encoding parameters when the encoding parameters are not effective, and means 38, 39 for performing encoding of the image data using the encoding parameters from the decoding apparatus 10 when the encoding parameters are effective, and performing encoding of the image data using the calculated encoding parameters when the encoding parameters from the decoding apparatus are not effective. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像データの再エンコードを行うシステムに用いて好適な復号装置及び方法、符号化装置及び方法、画像処理システム、画像処理方法に関し、特に、ビットストリームを復号して画像データを生成するとともに再エンコードを行うときに用いる符号化パラメータを生成する復号装置及び方法、復号装置からの画像データ及び符号化パラメータを用いて再エンコードを行う符号化装置及び方法、ビットストリームを復号して画像データを生成するとともに再エンコードを行うときに用いる符号化パラメータを生成し、復号装置からの画像データ及び符号化パラメータを用いて再エンコードを行う画像処理システム、画像処理方法に関する。   The present invention relates to a decoding apparatus and method suitable for use in a system for re-encoding image data, an encoding apparatus and method, an image processing system, and an image processing method, and in particular, decodes a bit stream to generate image data. And a decoding apparatus and method for generating encoding parameters used when re-encoding, an encoding apparatus and method for performing re-encoding using image data and encoding parameters from the decoding apparatus, and image data by decoding a bitstream The present invention relates to an image processing system and an image processing method that generate encoding parameters used when re-encoding and generate re-encoding using image data and encoding parameters from a decoding device.

従来のエンコーダにおいて、MPEG(Moving Picture Experts Group)方式でエンコードされた画像信号に対する編集処理において、一旦エンコードされた画像信号を復号化し、復号化した画像について再エンコードを行う際に、通常のビデオ信号についてエンコードを行う場合と比較した大きな画質劣化が生ずる場合がある。このような画像劣化の原因としては、再エンコードを行う前後、すなわち最初にMPEG方式でエンコードしたときと再エンコードを行うときとで、ピクチャタイプ、動きベクトル等の各種符号化パラメータの不一致が挙げられる。   In an editing process for an image signal encoded by the MPEG (Moving Picture Experts Group) method in a conventional encoder, an ordinary video signal is decoded when the encoded image signal is once decoded and the decoded image is re-encoded. There is a case where the image quality is greatly deteriorated as compared with the case where encoding is performed. As a cause of such image degradation, there is a mismatch between various encoding parameters such as picture type and motion vector before and after re-encoding, that is, when encoding is first performed in MPEG format and when re-encoding is performed. .

このような符号化パラメータの不一致のうち、ピクチャタイプが不一致であることで画質劣化が発生するときの一例について説明する。例えば、B0,B1,I2,B3,B4,P5,B6,B7,P8とI(Intra)ピクチャ、P(Predictive)ピクチャ、B(Bidirectionally predictive)ピクチャが配されてなるMPEG方式で準拠したピクチャ数N=9、あるI又はPピクチャから次のI又はPピクチャまでのピクチャ数M=3のGOP(Group of Pictures)ひとつ分の入力復号画像、すなわち再エンコードすべき復号画像についてのピクチャタイプがある。そして、上述のように配されてなるGOPに対して、B0,B1,I2,B3,B4,P5,B6,B7,P8と位相ロックを行う場合には再エンコードの際の参照画像として、上記入力復号画像中において、Iピクチャであったものがそのまま用いられる。   An example of a case where image quality degradation occurs due to mismatched picture types among the mismatched encoding parameters will be described. For example, the number of pictures conforming to the MPEG system in which B0, B1, I2, B3, B4, P5, B6, B7, P8 and I (Intra) picture, P (Predictive) picture, and B (Bidirectionally predictive) picture are arranged. N = 9, there is a picture type for an input decoded image corresponding to one GOP (Group of Pictures) with a number of pictures M = 3 from one I or P picture to the next I or P picture, that is, a decoded image to be re-encoded . When the GOP arranged as described above is phase-locked with B0, B1, I2, B3, B4, P5, B6, B7, and P8, the above-mentioned reference image is used as a reference image for re-encoding. In the input decoded image, what was an I picture is used as it is.

これに対して、B0,I1,B2,B3,P4,B5,B6,P7と配列され、位相ロックを行わない場合には例えば3個目のピクチャ(B2)のように、画質劣化の度合いが大きいBピクチャが再エンコードを行うときの参照画像として用いられることになる。その結果として、再エンコードの精度が低下し、大きな画質劣化が発生することになる。   On the other hand, in the case where B0, I1, B2, B3, P4, B5, B6, and P7 are arranged and phase lock is not performed, the degree of image quality degradation is, for example, as in the third picture (B2). A large B picture is used as a reference image when re-encoding is performed. As a result, the re-encoding accuracy is lowered and a large image quality degradation occurs.

また、上述のように、従来のエンコーダにおいて、ピクチャタイプのみならず、他の符号化パラメータ、例えば動きベクトルについても、再エンコードの前後で一致させると、再エンコード時に符号化パラメータの再計算を行って算出する値を使用する場合よりも、再エンコードしたときの画質劣化が小さくなる。そして、従来のエンコーダにおいては、ピクチャタイプ、動きベクトルを含む全ての符号化パラメータを再エンコードの前後で一致させることにより、再エンコードによる画質劣化がほとんど生じない。   In addition, as described above, in the conventional encoder, if not only the picture type but also other encoding parameters such as motion vectors are matched before and after re-encoding, the encoding parameters are recalculated at the time of re-encoding. The image quality degradation when re-encoding is smaller than when using the value calculated in the above. In the conventional encoder, image quality deterioration due to re-encoding hardly occurs by matching all encoding parameters including the picture type and motion vector before and after re-encoding.

ところで、ビットストリームの伝送経路中でエラーが付加されたり、又はオリジナルのビットストリームをエンコードしたエンコーダがMPEG方式に準拠しない符号化パラメータを使用する場合においては、デコーダで受信したビットストリームの中にシンタクスエラーが発生する場合がある。   By the way, when an error is added in the bitstream transmission path or an encoder that encodes the original bitstream uses an encoding parameter that does not conform to the MPEG system, the syntax is included in the bitstream received by the decoder. An error may occur.

このように、ビットストリームの中にシンタクスエラーが発生した場合、デコーダは、ビットストリームのエラーが発生した位置から、次のスタートコード(32ビット長の同期コード)をサーチすることによって、エラーリカバリーをする。そして、デコーダは、ビットストリームのエラーが発生した位置からエラーリカバリーできた位置までのビットストリームからは画像を復号することはできないので、既に復号された画像の情報を用いて、シンタクスエラーで失われた画像部分のエラーコンシールを行う。このとき、デコーダは、例えば過去の表示画像からエラーで失われた画像部分へ画像をコピーして表示する処理を行う。   Thus, when a syntax error occurs in the bitstream, the decoder performs error recovery by searching the next start code (32-bit synchronization code) from the position where the bitstream error occurred. To do. Since the decoder cannot decode an image from the bitstream from the position where the error occurred in the bitstream to the position where error recovery was possible, it is lost due to a syntax error using information on the already decoded image. Perform error concealment on the image portion. At this time, the decoder performs a process of copying and displaying an image from a past display image to an image portion lost due to an error, for example.

国際公開第98/03017号International Publication No. 98/03017

従来のエンコーダを例に挙げて説明したようにピクチャタイプ、動きベクトルを含む全ての符号化パラメータを再エンコードの前後で一致させて再エンコードをしている場合において、デコーダで受信したビットストリームの中にシンタクスエラーが発生したとき、エンコーダには、デコーダがエラーコンシールによって再生した画像が入力され、また、その時の符号化パラメータは入力されないか、又は誤った値の符号化パラメータが入力されることになる。そして、エンコーダは、デコーダからの誤った符号化パラメータを用いてエンコードを行うと、非常に画質劣化が大きな符号化結果となってしまう。   In the case of re-encoding with all the encoding parameters including picture type and motion vector being matched before and after re-encoding as described with reference to a conventional encoder as an example, in the bit stream received by the decoder When a syntax error occurs, an image reproduced by the decoder by the error concealment is input to the encoder, and the encoding parameter at that time is not input, or an encoding parameter having an incorrect value is input. Become. When the encoder performs encoding using an incorrect encoding parameter from the decoder, an encoding result with extremely large image quality deterioration is obtained.

上述したように、従来においては、デコーダに入力されたビットストリームにシンタクスエラー等が発生したか否かに関わらず、エンコーダ側でデコーダからの符号化パラメータを用いてエンコードを行うことが多かった。したがって、エンコーダでは、誤った符号化パラメータを用いて画像の符号化を行うことにより、正常な処理を行うことができなくなってしまうという問題があった。   As described above, conventionally, encoding is often performed on the encoder side using the encoding parameter from the decoder regardless of whether a syntax error or the like has occurred in the bitstream input to the decoder. Therefore, the encoder has a problem that normal processing cannot be performed by encoding an image using an incorrect encoding parameter.

そこで、本発明は、上述したような実情に鑑みて提案されたものであり、ビットストリームにエラーが発生したことを示す情報を生成することができる復号装置及び方法、ビットストリームにエラーが発生しても良好な画質で符号化処理を行うことができる符号化装置及び方法、画像処理システム、画像処理方法を提供することを目的とする。   Therefore, the present invention has been proposed in view of the above-described circumstances, and a decoding apparatus and method capable of generating information indicating that an error has occurred in the bitstream, and an error in the bitstream. It is an object of the present invention to provide an encoding apparatus and method, an image processing system, and an image processing method that can perform encoding processing with good image quality.

上述の課題を解決する本発明に係る復号装置は、入力されたビットストリームを復号して画像データを生成する復号手段と、上記復号手段で復号された画像データを再符号化するときに用いる各階層についての符号化パラメータを生成する符号化パラメータ生成手段と、画像データの再符号化を行うときに上記符号化パラメータ生成手段により生成された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成するエラーフラグ生成手段とを備えることを特徴とする。   A decoding apparatus according to the present invention that solves the above-described problems includes a decoding unit that decodes an input bitstream to generate image data, and each of the units used when re-encoding the image data decoded by the decoding unit. The encoding parameter generating means for generating the encoding parameter for the layer and the encoding parameter for each layer generated by the encoding parameter generating means when the image data is re-encoded can be used effectively. And an error flag generation means for generating an error flag indicating whether or not.

また、本発明に係る復号方法は、入力されたビットストリームを復号して画像データを生成するとともに、復号された上記画像データを再符号化するときに用いる各階層についての符号化パラメータを生成し、画像データの再符号化を行うときに各階層ごとの上記符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成することを有することを特徴とする。   In addition, the decoding method according to the present invention generates image data by decoding an input bitstream, and generates encoding parameters for each layer used when re-encoding the decoded image data. The method further comprises generating an error flag indicating whether or not the encoding parameter for each layer can be used effectively when re-encoding the image data.

更に、本発明に係る符号化装置は、復号装置から入力された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグに基づいて、復号装置から入力された画像データの再符号化を行うときに上記符号化パラメータを有効に用いることができるか否かを判定する判定手段と、復号装置からの符号化パラメータが有効でない旨の上記判定手段からの判定結果に基づいて、復号装置からの画像データを用いて符号化パラメータを計算する符号化パラメータ計算手段と、復号装置からの符号化パラメータが有効であると判定手段により判定されたときには復号装置から入力された符号化パラメータを用いて画像データの符号化を行い、復号装置からの符号化パラメータが有効でないと判定手段により判定されたときには上記符号化パラメータ計算手段で生成された符号化パラメータを用いて画像データの符号化を行う符号化手段とを備えることを特徴とする。   Furthermore, the encoding apparatus according to the present invention is configured such that the image data input from the decoding apparatus is based on an error flag indicating whether the encoding parameter for each layer input from the decoding apparatus can be used effectively. Based on a determination unit that determines whether or not the encoding parameter can be used effectively when performing re-encoding, and a determination result from the determination unit that the encoding parameter from the decoding device is not effective The encoding parameter calculation means for calculating the encoding parameter using the image data from the decoding apparatus, and the code input from the decoding apparatus when the determination means determines that the encoding parameter from the decoding apparatus is valid. When the image data is encoded using the encoding parameter and the determination unit determines that the encoding parameter from the decoding device is not valid Characterized in that it comprises a coding means for coding the image data by using the coding parameters generated by the serial coding parameter calculating means.

更にまた、本発明に係る符号化方法は、復号装置から入力された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグに基づいて、復号装置から入力された画像データの再符号化を行うときに上記符号化パラメータを有効に用いることができるか否かを判定する判定処理と、復号装置からの符号化パラメータが有効でない旨の判定結果に基づいて、復号装置からの画像データを用いて符号化パラメータを計算する符号化パラメータ計算処理と、復号装置からの符号化パラメータが有効であると判定されたときには復号装置から入力された符号化パラメータを用いて画像データの符号化を行い、復号装置からの符号化パラメータが有効でないと判定されたときには上記符号化パラメータ計算処理で生成した符号化パラメータを用いて画像データの符号化を行う符号化処理とを有することを特徴とする。   Furthermore, in the encoding method according to the present invention, an image input from the decoding device based on an error flag indicating whether or not the encoding parameter for each layer input from the decoding device can be used effectively. Based on a determination process for determining whether or not the encoding parameter can be used effectively when re-encoding data, and a determination result indicating that the encoding parameter from the decoding apparatus is not valid, the decoding apparatus Encoding parameter calculation processing for calculating encoding parameters using image data from the image data, and image data using the encoding parameters input from the decoding device when it is determined that the encoding parameters from the decoding device are valid When it is determined that the encoding parameter from the decoding device is not valid, the code generated by the above encoding parameter calculation process And having a coding process of coding image data by using the parameters.

更にまた、本発明に係る画像処理システムは、入力されたビットストリームを復号して画像データを生成する復号手段と、上記復号手段で復号された画像データを再符号化するときに用いる各階層についての符号化パラメータを生成する符号化パラメータ生成手段と、画像データの再符号化を行うときに上記符号化パラメータ生成手段により生成された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成するエラーフラグ生成手段とを備える復号装置と、上記復号装置から入力された各階層ごとのエラーフラグに基づいて、再符号化を行うときに上記符号化パラメータを有効に用いることができるか否かを判定する判定手段と、上記復号装置からの符号化パラメータが有効でない旨の上記判定手段からの判定結果に基づいて、上記復号装置からの画像データを用いて符号化パラメータを計算する符号化パラメータ計算手段と、上記復号装置からの符号化パラメータが有効であると判定手段により判定されたときには上記復号装置から入力された符号化パラメータを用いて画像データの符号化を行い、上記復号装置からの符号化パラメータが有効でないと判定手段により判定されたときには上記符号化パラメータ計算手段で生成された符号化パラメータを用いて画像データの符号化を行う符号化手段とを備える符号化装置とを備えることを特徴とするものである。   Furthermore, the image processing system according to the present invention includes a decoding unit that decodes an input bitstream to generate image data, and each layer used when re-encoding the image data decoded by the decoding unit. Whether or not the encoding parameter generating means for generating the encoding parameters and the encoding parameter for each layer generated by the encoding parameter generating means when re-encoding the image data can be used effectively A decoding device comprising an error flag generating means for generating an error flag indicating whether or not the encoding parameter is enabled when re-encoding is performed based on the error flag for each layer input from the decoding device. Determining means for determining whether or not it can be used, and determining means for indicating that the encoding parameter from the decoding device is not valid. Based on the determination result, the encoding parameter calculation means for calculating the encoding parameter using the image data from the decoding device, and the determination means determines that the encoding parameter from the decoding device is valid. The image data is encoded using the encoding parameter input from the decoding device, and is generated by the encoding parameter calculation unit when the determination unit determines that the encoding parameter from the decoding device is not valid. And an encoding device including encoding means for encoding image data using an encoding parameter.

更にまた、本発明に係る他の画像処理システムは、入力されたビットストリームを復号して画像データを生成する復号手段と、上記復号手段からの画像データを逆量子化してDCT変換係数とする逆量子化手段と、上記逆量子化手段からのDCT変換係数を量子化して画像データとする量子化手段と、上記復号手段で復号された画像データを再符号化するときに用いる各階層についての符号化パラメータを生成する符号化パラメータ生成手段と、画像データの再符号化を行うときに上記符号化パラメータ生成手段により生成された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成するエラーフラグ生成手段と、上記エラーフラグ生成手段からのエラーフラグに基づいて符号化パラメータを計算する符号化パラメータ計算手段と、上記符号化パラメータ生成手段又は上記符号化パラメータ計算手段からの符号化パラメータを用いて上記量子化手段からの画像データの符号化を行う上記符号化手段と、上記エラーフラグ生成手段で生成されたエラーフラグに基づいて符号化パラメータが有効であるときには上記符号化パラメータ生成手段で生成された符号化パラメータを用いて画像データの符号化を行なわせ、上記エラーフラグ生成手段で生成されたエラーフラグに基づいて符号化パラメータが有効でないときには上記符号化パラメータ計算手段で生成された符号化パラメータを用いて画像データの符号化を行わせる制御手段とを備えることを特徴とするものである。   Furthermore, another image processing system according to the present invention includes a decoding unit that decodes an input bitstream to generate image data, and an inverse quantization unit that converts the image data from the decoding unit into a DCT transform coefficient. Quantization means, quantization means for quantizing the DCT transform coefficient from the inverse quantization means to make image data, and codes for each layer used when re-encoding the image data decoded by the decoding means Encoding parameter generating means for generating encoding parameters, and whether or not the encoding parameters for each layer generated by the encoding parameter generating means when the image data is re-encoded can be used effectively An error flag generating means for generating an error flag to be indicated, and calculating an encoding parameter based on the error flag from the error flag generating means Encoding parameter calculation means, encoding means for encoding image data from the quantization means using the encoding parameters from the encoding parameter generation means or the encoding parameter calculation means, and the error flag When the encoding parameter is valid based on the error flag generated by the generation means, the image data is encoded using the encoding parameter generated by the encoding parameter generation means, and the error flag generation means Control means for encoding image data using the encoding parameter generated by the encoding parameter calculation means when the encoding parameter is not valid based on the generated error flag. It is.

更にまた、本発明に係る画像処理方法は、入力されたビットストリームを復号して画像データ、上記画像データを再符号化するときに用いる各階層についての符号化パラメータ、上記画像データの再符号化を行うときに各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成する復号処理と、上記画像データを逆量子化してDCT変換係数とする逆量子化処理と、上記DCT変換係数を量子化して画像データとする量子化処理と、上記エラーフラグ生成手段からのエラーフラグに基づいて符号化パラメータを計算する符号化パラメータ計算処理と、上記エラーフラグに基づいて符号化パラメータが有効であるときには復号処理で生成した符号化パラメータを用いて画像データの符号化を行い、上記エラーフラグに基づいて符号化パラメータが有効でないときには上記符号化パラメータ計算処理で生成した符号化パラメータを用いて画像データの符号化を行う符号化処理とを有することを特徴とする。   Still further, the image processing method according to the present invention decodes an input bit stream to decode image data, a coding parameter for each layer used when re-encoding the image data, and re-encoding of the image data. A decoding process for generating an error flag indicating whether or not the encoding parameter for each layer can be used effectively when performing the above, and a dequantization process for dequantizing the image data into a DCT transform coefficient; A quantization process for quantizing the DCT transform coefficient into image data, a coding parameter calculation process for calculating a coding parameter based on an error flag from the error flag generating means, and a code based on the error flag. When the encoding parameters are valid, the image data is encoded using the encoding parameters generated by the decoding process, and the error When the coding parameters based on the lag is not valid, characterized in that it has a coding process of coding image data by using the coding parameters generated by the coding parameter calculation process.

本発明に係る復号装置及び方法は、画像データの再符号化を行うときに各階層ごとの上記符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成することができるので、復号した後、再エンコードを行うときに用いる符号化パラメータを制御させることができる。したがって、この復号装置及び方法によれば、例えば復号した符号化パラメータが無効であるときには、当該符号化パラメータを用いないでエンコーダで生成した符号化パラメータを用いて再エンコードを行うことで、正確に再エンコードを行わせることができる。   Since the decoding apparatus and method according to the present invention can generate an error flag indicating whether or not the encoding parameter for each layer can be used effectively when re-encoding image data, After decoding, the encoding parameters used when re-encoding can be controlled. Therefore, according to this decoding apparatus and method, for example, when a decoded encoding parameter is invalid, re-encoding is performed using the encoding parameter generated by the encoder without using the encoding parameter. Re-encoding can be performed.

更に、本発明に係る符号化装置及び方法は、復号装置からの符号化パラメータが有効であると判定されたときには復号装置から入力された符号化パラメータを用いて画像データの符号化を行い、復号装置からの符号化パラメータが有効でないと判定されたときには上記符号化パラメータ計算処理で生成した符号化パラメータを用いて画像データの符号化を行う符号化処理を有するので、復号装置からの符号化パラメータが有効なときには入力された画像データについての符号化パラメータを用いて再符号化を行い、復号装置からの符号化パラメータが無効のときには自身で計算して得た符号化パラメータで再符号化を行う。したがって、この符号化装置及び方法によれば、エラーフラグにより示された符号化パラメータを用いて再符号化を行うことがないので正確に再符号化を行うことができ、良好な画質で符号化結果を得ることができる。   Furthermore, the encoding device and method according to the present invention encodes image data using the encoding parameter input from the decoding device when it is determined that the encoding parameter from the decoding device is valid, and decoding is performed. Since it has an encoding process for encoding image data using the encoding parameter generated by the encoding parameter calculation process when it is determined that the encoding parameter from the apparatus is not valid, the encoding parameter from the decoding apparatus When is valid, re-encoding is performed using the encoding parameter for the input image data, and when the encoding parameter from the decoding device is invalid, re-encoding is performed with the encoding parameter obtained by itself. . Therefore, according to this encoding apparatus and method, since re-encoding is not performed using the encoding parameter indicated by the error flag, re-encoding can be performed accurately, and encoding can be performed with good image quality. The result can be obtained.

更にまた、本発明に係る画像処理システムは、画像データの再符号化を行うときに符号化パラメータ生成手段により生成された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成するエラーフラグ生成手段を備える復号装置と、復号装置から入力された各階層ごとのエラーフラグに基づいて、再符号化を行うときに符号化パラメータを有効に用いることができるか否かを判定する判定手段と、復号装置からの符号化パラメータが有効でない旨の判定手段からの判定結果に基づいて、復号装置からの画像データを用いて符号化パラメータを計算する符号化パラメータ計算手段と、復号装置からの符号化パラメータが有効であると判定手段により判定されたときには復号装置から入力された符号化パラメータを用いて画像データの符号化を行い、復号装置からの符号化パラメータが有効でないと判定手段により判定されたときには符号化パラメータ計算手段で生成された符号化パラメータを用いて画像データの符号化を行う符号化手段とを備える符号化装置とを備えるので、復号装置からの符号化パラメータが有効なときには入力された画像データについての符号化パラメータを用いて再符号化を行い、復号装置からの符号化パラメータが無効のときには符号化装置で計算して得た符号化パラメータで再符号化を行うことができる。したがって、この画像処理システムによれば、エラーフラグにより示された符号化パラメータを用いて再符号化を行うことがないので正確に再符号化を行うことができ、良好な画質で符号化結果を得ることができる。   Furthermore, the image processing system according to the present invention indicates whether or not the encoding parameter for each layer generated by the encoding parameter generation means can be used effectively when re-encoding image data. Whether or not the encoding parameter can be effectively used when performing re-encoding based on the decoding apparatus having an error flag generating means for generating an error flag and the error flag for each layer input from the decoding apparatus And a coding parameter calculation unit that calculates a coding parameter using image data from the decoding device based on a determination result from the determination unit that the coding parameter from the decoding device is not valid. When the determination unit determines that the encoding parameter from the decoding device is valid, the encoding parameter input from the decoding device is determined. The image data is encoded using the data, and when the determining means determines that the encoding parameter from the decoding device is not valid, the image data is encoded using the encoding parameter generated by the encoding parameter calculating means. And an encoding device including an encoding means for performing re-encoding using the encoding parameter for the input image data when the encoding parameter from the decoding device is valid, and from the decoding device When the encoding parameter is invalid, re-encoding can be performed with the encoding parameter calculated by the encoding device. Therefore, according to this image processing system, since re-encoding is not performed using the encoding parameter indicated by the error flag, re-encoding can be performed accurately, and the encoding result can be obtained with good image quality. Obtainable.

更にまた、本発明に係る画像処理システム及び画像処理方法は、入力されたビットストリームを復号して画像データ、上記画像データを再符号化するときに用いる各階層についての符号化パラメータ、上記画像データの再符号化を行うときに各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成する復号処理と、上記エラーフラグに基づいて符号化パラメータを計算する符号化パラメータ計算処理と、上記エラーフラグに基づいて符号化パラメータが有効であるときには復号処理で生成した符号化パラメータを用いて画像データの符号化を行い、上記エラーフラグに基づいて符号化パラメータが有効でないときには上記符号化パラメータ計算処理で生成した符号化パラメータを用いて画像データの符号化を行う符号化処理とを有するので、符号化パラメータが有効なときには復号処理で生成した符号化パラメータを用いて再符号化を行い、復号処理で生成した符号化パラメータが無効のときには再計算して得た符号化パラメータで再符号化を行うことができる。したがって、この画像処理システム及び画像処理方法によれば、エラーフラグにより示された符号化パラメータを用いて再符号化を行うことがないので正確に再符号化を行うことができ、良好な画質の符号化結果を得ることができる。   Furthermore, the image processing system and the image processing method according to the present invention decode the input bit stream to decode the image data, the encoding parameters for each layer used when re-encoding the image data, and the image data Decoding processing for generating an error flag indicating whether or not the encoding parameter for each layer can be used effectively when performing re-encoding, and encoding for calculating the encoding parameter based on the error flag When the encoding parameter is valid based on the parameter calculation process and the error flag, the image data is encoded using the encoding parameter generated by the decoding process, and the encoding parameter is not valid based on the error flag. Sometimes the encoding of image data using the encoding parameters generated by the above encoding parameter calculation process Therefore, re-encoding is performed using the encoding parameter generated by the decoding process when the encoding parameter is valid, and re-calculation is performed when the encoding parameter generated by the decoding process is invalid. Re-encoding can be performed with the obtained encoding parameters. Therefore, according to the image processing system and the image processing method, since the re-encoding is not performed using the encoding parameter indicated by the error flag, the re-encoding can be performed accurately, and the image quality can be improved. An encoding result can be obtained.

以下、本発明の実施の形態について図面を参照しながら詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

本発明は、例えば図1に示すように構成された画像処理システム1に適用される。   The present invention is applied to, for example, an image processing system 1 configured as shown in FIG.

図1に示す画像処理システム1は、デコーダ10とエンコーダ30とをカスケードに接続してなり、外部からエンコードされたMPEG2規格に準拠したビットストリームが入力されるデコーダ10と、デコーダ10でデコードされた画像データを再エンコードして外部にビットストリームとして出力するエンコーダ30とからなる。   The image processing system 1 shown in FIG. 1 includes a decoder 10 and an encoder 30 connected in cascade, a decoder 10 to which an externally encoded bit stream conforming to the MPEG2 standard is input, and the decoder 10 decodes It comprises an encoder 30 that re-encodes image data and outputs it as a bit stream to the outside.

デコーダ10は、外部からMPEG2方式で符号化されたビットストリームが入力されるバッファ11を備える。このバッファ11は、ビットストリームを一旦記憶して、可変長復号部(VLD:Variable Length Decoder)12に出力する。   The decoder 10 includes a buffer 11 to which a bit stream encoded by the MPEG2 system is input from the outside. The buffer 11 temporarily stores the bit stream and outputs it to a variable length decoding unit (VLD: Variable Length Decoder) 12.

可変長復号部12は、バッファ11からの可変長符号のビットストリームに例えばマクロブロック(MB)単位で可変長復号処理を施すことで量子化係数や動きベクトルを求めて、逆量子化部(Inverse Quantization:IQ)14に出力する。   The variable length decoding unit 12 obtains a quantization coefficient and a motion vector by performing variable length decoding processing on the bit stream of the variable length code from the buffer 11 in units of macroblocks (MB), for example, and obtains an inverse quantization unit (Inverse Quantization: IQ) 14.

また、この可変長復号部12は、上述のように可変長復号処理を行うとともに、各MB層について付加された符号化パラメータ(以下、MBパラメータ(MB_parameters)と呼ぶ。)を検出してメモリ13に出力する。更に、可変長復号部12は、ピクチャ層以上の符号化パラメータ(Sequence_GOP_Picure_parameters)を検出するとともに、ピクチャ層の符号化パラメータ及びMBパラメータが有効か否かを示すパラメータ判定情報(picture_mb_parameters_valid)を生成して、後述の制御部41に出力する。   In addition, the variable length decoding unit 12 performs the variable length decoding process as described above, detects an encoding parameter added to each MB layer (hereinafter referred to as MB parameter (MB_parameters)), and the memory 13. Output to. Furthermore, the variable length decoding unit 12 detects encoding parameters (Sequence_GOP_Picure_parameters) of the picture layer and higher, and generates parameter determination information (picture_mb_parameters_valid) indicating whether the encoding parameters and MB parameters of the picture layer are valid. And output to the control unit 41 described later.

上記Sequence_GOP_Picure_parametersには、MPEG2規格において定義されている以下のパラメータを含む。すなわち可変長復号部12に入力されるビットストリームには、シーケンスヘッダ(Sequence_header)の直後配置されるシーケンス拡張部(Sequence_extension)、シーケンスディスプレイ機能拡張部(Sequence_display_extension)、シーケンス・スケーラブル機能拡張部(Sequence_scalable_extension)が含まれ、これらの拡張部に続いてGOPヘッダ(group_of_pictures_header)が付加される。   The Sequence_GOP_Picure_parameters includes the following parameters defined in the MPEG2 standard. That is, the bit stream input to the variable length decoding unit 12 includes a sequence extension unit (Sequence_extension), a sequence display function extension unit (Sequence_display_extension), and a sequence scalable function extension unit (Sequence_scalable_extension) arranged immediately after the sequence header (Sequence_header). And a GOP header (group_of_pictures_header) is added following these extensions.

更に、ビットストリームには、I(Inter)ピクチャ(フレーム内符号化画像)、P(Predictive)ピクチャ(フレーム間順方向予測符号化画像)及びB(Bidirectionally Predictive)ピクチャ(双方向予測符号化画像)のピクチャ毎に関する情報を格納したピクチャヘッダ(picture_header)、ピクチャ符号化機能拡張部(picture_coding_extension)、量子化マトリクス機能拡張部(quant_matrix_extension)、ピクチャディスプレイ機能拡張部(picture_display_extension)等の拡張部が含まれる。   Further, the bitstream includes an I (Inter) picture (intra-frame encoded image), a P (Predictive) picture (inter-frame forward predictive encoded image), and a B (Bidirectionally Predictive) picture (bidirectional predictive encoded image). Extension units such as a picture header (picture_header), a picture encoding function extension unit (picture_coding_extension), a quantization matrix function extension unit (quant_matrix_extension), and a picture display function extension unit (picture_display_extension) that store information related to each picture are included.

更にまた、ピクチャ層以上の符号化パラメータは、画像サイズ(horizontal_size、vertical_size)、piture_coding_type、top_field_first、repeat_first_field等のパラメータをも含む。   Furthermore, the encoding parameters beyond the picture layer include parameters such as image size (horizontal_size, vertical_size), picture_coding_type, top_field_first, repeat_first_field.

上記MBパラメータは、MB層の符号化パラメータであり、MPEG2規格において定義されている以下のパラメータを含む。すなわち、MB層には、マクロブロックアドレス、量子化ステップ・サイズを示す量子化スケール、この量子化スケールが有効であることを示すフラグ(MBがスキップMB又はnot coded MBのとき、“0”とされる。)、DCTがフレームモードかフィールドモードかを示すDCTタイプ、フレームモード、フィールドモード又はデュアルプライムモードで動き補償を行うことを示す動き補償タイプ、前方向、後方向又は両方向で動き予測を行うことを示すMBモード、動きベクトル、フィールド動きベクトルの参照フィールド、デュアルプライムの補助ベクトルが含まれる。   The MB parameter is an MB layer encoding parameter and includes the following parameters defined in the MPEG2 standard. That is, the MB layer includes a macroblock address, a quantization scale indicating a quantization step size, and a flag indicating that this quantization scale is effective (when MB is a skip MB or a not coded MB, “0” is set. DCT type indicating whether DCT is frame mode or field mode, motion compensation type indicating that motion compensation is performed in frame mode, field mode or dual prime mode, forward, backward or bi-directional motion prediction. This includes an MB mode indicating that the operation is to be performed, a motion vector, a field motion vector reference field, and a dual prime auxiliary vector.

可変長復号部12は、復号するマクロブロックが“not coded MB”であるとき、すなわちイントラMB以外でcoded_block_patternが存在しないマクロブロックのとき、上記DCTタイプをフレームモードとする。   The variable length decoding unit 12 sets the DCT type as the frame mode when the macroblock to be decoded is “not coded MB”, that is, when the macroblock has a coded_block_pattern other than the intra MB.

また、可変長復号部12は、スキップMBのとき、上記DCTタイプをフレームモードとし、上記動き補償タイプをフレーム予測とし、上記MBモードをPピクチャのとき前方向予測、Bピクチャのとき直前のMBからの予測とし、上記動きベクトルをPピクチャのとき0、Bピクチャのとき直前のMBと同じ値とする。   Further, the variable length decoding unit 12 sets the DCT type as a frame mode when skipped MB, sets the motion compensation type as frame prediction, forward prediction when the MB mode is P picture, and immediately preceding MB when the B mode is B picture. The motion vector is 0 for a P picture and the same value as the previous MB for a B picture.

更に、可変長復号部12は、上述したように、シーケンス層、GOP層、ピクチャ層、MB層における種々の符号化パラメータを出力するとともに、下記の表1に示すように、2ビットのフラグ、すなわちピクチャ層の符号化パラメータが有効か否かを示す1ビットのフラグと、MBパラメータが有効か否かを示す1ビットのフラグで表現されるパラメータ判定情報を生成する。   Further, as described above, the variable length decoding unit 12 outputs various encoding parameters in the sequence layer, the GOP layer, the picture layer, and the MB layer, and as shown in Table 1 below, a 2-bit flag, That is, parameter determination information expressed by a 1-bit flag indicating whether or not the picture layer encoding parameter is valid and a 1-bit flag indicating whether or not the MB parameter is valid is generated.

Figure 2008252931
Figure 2008252931

すなわち、可変長復号部12は、ピクチャ層の符号化パラメータ及びMBパラメータにエラー(invalid)を含んでいるときにはフラグを“00”とし、ピクチャ層の符号化パラメータにはエラーを含んでない(valid)がMBパラメータにエラーを含んでいるときにはフラグを“10”とし、ピクチャ層の符号化パラメータ及びMBパラメータにエラーを含んでないときにはフラグを“11”としてパラメータ判定情報を生成して制御部41に出力する。   That is, the variable length decoding unit 12 sets the flag to “00” when an error (invalid) is included in the encoding parameter and MB parameter of the picture layer, and does not include an error (valid). If the MB parameter contains an error, the flag is set to “10”. If the encoding parameter of the picture layer and the MB parameter do not contain an error, the flag is set to “11” and parameter determination information is generated and output to the control unit 41. To do.

ピクチャ層の符号化パラメータにエラーが含まれるときとしては、例えば、デコーダ10の可変長復号部12における復号処理中においてビットストリームにエラーが発生したときが挙げられる。このとき、次のGOPヘッダを検出してエラーリカバリーをするまでの間にデコーダ10からエラーコンシールによって出力した画像データはpicture_coding_typeを持たないので、ピクチャ層の符号化パラメータにエラーを含むことになり、ピクチャ層の符号化パラメータが後述の制御部41で無効と判定される。   An example of a case where an error is included in the coding parameter of the picture layer is a case where an error occurs in the bit stream during the decoding process in the variable length decoding unit 12 of the decoder 10. At this time, since the image data output by the error concealment from the decoder 10 until the next GOP header is detected and error recovery is performed does not have picture_coding_type, the coding parameter of the picture layer includes an error, The encoding parameter of the picture layer is determined to be invalid by the control unit 41 described later.

また、MBパラメータにエラーが含まれるときとしては、例えば、復号したピクチャ内にMB層のビットストリームエラーがあったときが挙げられる。このとき、MBパラメータにエラーを含むことになり、MBパラメータが後述の制御部41で無効と判定される。   In addition, examples of the case where an error is included in the MB parameter include a case where there is an MB layer bit stream error in the decoded picture. At this time, an error is included in the MB parameter, and the MB parameter is determined to be invalid by the control unit 41 described later.

更に、この可変長復号部12は、スイッチ部21を介してエンコーダ30に出力されるフィールド画像列の画像データの中でスイッチ部31に入力されるフィールド画像と、エンコーダ30から出力するときのフィールド画像とが同じ画像としてエンコーダ30側でエンコードを行わせるため、top_field_first及びrepeat_first_fieldを制御部41に出力する。   Further, the variable length decoding unit 12 includes a field image input to the switch unit 31 among the image data of the field image sequence output to the encoder 30 via the switch unit 21, and a field when output from the encoder 30. The top_field_first and repeat_first_field are output to the control unit 41 so that the encoder 30 performs encoding as the same image as the image.

ここで、上記top_field_firstはインタレース画像において、フレーム構造のピクチャのトップフィールドとボトムフィールドとのいずれかを時間的に先に表示するか否かを示すフラグであり、上記repeat_first_fieldはフレーム構造のピクチャを表示するときに一番目に表示するフィールドを2番目に表示するフィールドの後に繰り返して表示するか否かを示すフラグである。   Here, the top_field_first is a flag indicating whether to display either the top field or the bottom field of the frame-structured picture first in the interlaced image, and the repeat_first_field is the frame-structured picture. It is a flag indicating whether or not to repeatedly display the field to be displayed first when it is displayed after the field to be displayed second.

メモリ13は、可変長復号部12からのMBパラメータが入力され、エンコーダ30側の処理タイミングに応じて、後述する所定のピクチャ時間のディレイが制御部41により制御されて出力する。   The memory 13 receives the MB parameter from the variable length decoding unit 12 and outputs a predetermined picture time delay, which will be described later, controlled by the control unit 41 in accordance with the processing timing on the encoder 30 side.

逆量子化部14は、可変長復号部12からの量子化係数からなる画像データについて例えば8×8画素ブロックごとに逆量子化を行う。このとき、逆量子化部14は、画像データに量子化ステップを乗算することでDCT変換係数とする逆量子化処理を行って、画像データを逆DCT(Inverse Discrete Cosine Transform:IDCT)部15に出力する。   The inverse quantization unit 14 performs inverse quantization on the image data including the quantization coefficient from the variable length decoding unit 12 for each 8 × 8 pixel block, for example. At this time, the inverse quantization unit 14 performs an inverse quantization process by multiplying the image data by a quantization step to obtain a DCT transform coefficient, and sends the image data to an inverse DCT (Inverse Discrete Cosine Transform: IDCT) unit 15. Output.

逆DCT部15は、逆量子化部14からの画像データについて例えば8×8画素ブロック単位で離散コサイン変換の逆変換を行う。これにより、逆DCT部15は、8×8画素ブロック毎にそれぞれの画素値(輝度、色差)を算出する。そして、この逆DCT部15は、逆変換を施して生成した画素値からなる画像データを加算器16に出力する。   The inverse DCT unit 15 performs inverse transformation of discrete cosine transformation on the image data from the inverse quantization unit 14, for example, in units of 8 × 8 pixel blocks. As a result, the inverse DCT unit 15 calculates each pixel value (luminance, color difference) for each 8 × 8 pixel block. Then, the inverse DCT unit 15 outputs image data composed of pixel values generated by performing inverse transformation to the adder 16.

加算器16は、逆DCT部15からの画像データと、動き補償部18からの画像データとを加算処理して制御部17に出力する。   The adder 16 adds the image data from the inverse DCT unit 15 and the image data from the motion compensation unit 18 and outputs the result to the control unit 17.

動き補償(Motion Compensation:MC)部18は、時間的に前及び後に位置する画像データを格納するフレームメモリ(FM)を備え、動きベクトルに基づいて当該フレームメモリから予測する画像データをピクチャタイプ毎に読み出して加算器16で加算処理をさせることで動き補償をする。   The motion compensation (MC) unit 18 includes a frame memory (FM) for storing image data positioned before and after in time, and the image data predicted from the frame memory based on the motion vector is stored for each picture type. And the adder 16 performs an addition process to compensate for motion.

制御部17は、加算器16から復号順序でフレームが配列されてなるフレーム画像シーケンスを、表示順序でフレームが配列されてなるフレーム画像シーケンスとするように、フレームの順序を変更して画像処理部19に出力する。   The control unit 17 changes the order of the frames so that the frame image sequence in which the frames are arranged in the decoding order from the adder 16 is a frame image sequence in which the frames are arranged in the display order. 19 output.

画像処理部19は、後段のエンコーダ30で行う再エンコードを画像サイズを変更して行うとき、制御部17から入力される画像データS10について、画像サイズを変更する処理を行う。この画像処理部19は、例えば720ピクセル×480ピクセルの画像を352ピクセル×480ピクセルの画像データS30としてスイッチ部21に出力する。   When the re-encoding performed by the subsequent encoder 30 is performed by changing the image size, the image processing unit 19 performs a process of changing the image size for the image data S10 input from the control unit 17. For example, the image processing unit 19 outputs an image of 720 pixels × 480 pixels to the switch unit 21 as image data S30 of 352 pixels × 480 pixels.

また、この画像処理部19は、制御部17からの画像データを構成する各ピクチャについて、ピクチャ内の垂直方向及び水平方向の画素を補間して、制御部17から入力されたときよりも解像度が高いピクチャとするアップサンプリング処理を行う。   Further, the image processing unit 19 interpolates vertical and horizontal pixels in the picture for each picture constituting the image data from the control unit 17, and has a resolution higher than that when input from the control unit 17. The upsampling process to make a high picture is performed.

また、画像処理部19は、各ピクチャのピクチャヘッダに付加されているトップ・フィールド・ファースト(top_field_first)及びリピート・ファースト・フィールド(repeat_first_field)に基づいて、入力されたビットストリームを構成する各ピクチャをフレーム画像からインタレース画像とする。   In addition, the image processing unit 19 determines each picture constituting the input bitstream based on the top field first (top_field_first) and repeat first field (repeat_first_field) added to the picture header of each picture. Interlaced image from frame image.

更に、この画像処理部19は、各ピクチャについて輝度信号、色差信号Cb、Crの比を示す輝度色差フォーマットを変換する処理を行う。すなわち、この画像処理部19は、ピクチャ毎に水平方向及び垂直方向において色情報を半分に削減した輝度色差フォーマットを示す4:2:0から、水平方向において色情報を半分に削減した輝度色差フォーマットを示す4:2:2に切り換える処理を行う。   Further, the image processing unit 19 performs a process of converting a luminance color difference format indicating a ratio of the luminance signal and the color difference signals Cb and Cr for each picture. That is, the image processing unit 19 uses the luminance color difference format in which the color information is reduced in half in the horizontal direction from 4: 2: 0 indicating the color difference format in half in the horizontal direction and the vertical direction for each picture. A process of switching to 4: 2: 2 is performed.

そして、この画像処理部19は、画像サイズを変更する処理、上述したアップサンプリング処理、ピクチャヘッダを書き換えてフレーム画像からフィールド画像に変換する処理、輝度色差フォーマットを変換する処理を行った画像データS30をスイッチ部21を介してエンコーダ30に出力する。   Then, the image processing unit 19 performs the image data S30 on which the processing for changing the image size, the above-described upsampling processing, the processing for rewriting the picture header to convert from the frame image to the field image, and the processing for converting the luminance color difference format are performed. Is output to the encoder 30 via the switch unit 21.

ダミーデータ付加部20は、後段のエンコーダ30で行う再エンコードを画像サイズを変更しないで行うとき、制御部17から入力される画像データについて、図2に示すように、例えば水平方向におけるサイズx×垂直方向におけるサイズyの画像データ(図2(a))にダミーデータを付加する処理を行って(図2(b))、ダミーデータを付加した画像データS20をスイッチ部21を介してエンコーダ30に出力する。   When the re-encoding performed by the subsequent encoder 30 is performed without changing the image size, the dummy data adding unit 20 performs, for example, a horizontal size xx as shown in FIG. 2 on the image data input from the control unit 17. A process of adding dummy data to the image data of the size y in the vertical direction (FIG. 2A) (FIG. 2B) is performed, and the image data S20 to which the dummy data is added is transferred via the switch unit 21 to the encoder 30. Output to.

このとき、ダミーデータ付加部20は、制御部17からの画像データS10のピクチャ単位の画像サイズが720ピクセル×480又は576ピクセルよりも小さいと判定したときにはダミーデータを付加して、720ピクセル×480又は576ピクセルの画像データとする処理を行う。すなわち、ダミーデータ付加部20は、制御部17からの画像データS10のピクチャ単位の画像サイズが720ピクセル×480又は576ピクセルよりも小さいと判定したときには、画像データが示すピクチャの水平方向において(720−x)ピクセル×480又は576ピクセルのダミーデータを付加し、ピクチャの垂直方向においてxピクセル×(480−y)又は(567−y)ピクセルのダミーデータを付加する処理を行う。   At this time, when the dummy data adding unit 20 determines that the image size in units of pictures of the image data S10 from the control unit 17 is smaller than 720 pixels × 480 or 576 pixels, the dummy data adding unit 20 adds dummy data, and 720 pixels × 480. Alternatively, a process of making image data of 576 pixels is performed. That is, when the dummy data adding unit 20 determines that the image size in units of pictures of the image data S10 from the control unit 17 is smaller than 720 pixels × 480 or 576 pixels, in the horizontal direction of the picture indicated by the image data (720 -X) A process of adding dummy data of 480 pixels or 576 pixels and adding dummy data of x pixels x (480-y) or (567-y) pixels in the vertical direction of the picture is performed.

スイッチ部21は、後述の制御部41からの制御信号にしたがって開閉動作し、端子aが接続されることでダミーデータ付加部20からの画像データS20をエンコーダ30に出力するとともに、端子bが接続されることで画像処理部19からの画像データS30をエンコーダ30に出力する。   The switch unit 21 opens and closes in accordance with a control signal from the control unit 41 to be described later. When the terminal a is connected, the switch unit 21 outputs the image data S20 from the dummy data adding unit 20 to the encoder 30 and the terminal b is connected. As a result, the image data S30 from the image processing unit 19 is output to the encoder 30.

制御部41は、可変長復号部12からピクチャ層以上の符号化パラメータ(Sequence_GOP_Picure_parameters)が入力され、Sequence_parameters、GOP_parameters、Picure_parametersをエンコーダ30に出力する。また、この制御部41には、可変長復号部12から上述の表1を用いて説明したパラメータ判定情報が入力される。制御部41は、入力した符号化パラメータ及びパラメータ判定情報をメモリ42に格納する処理を行う。   The control unit 41 receives the encoding parameters (Sequence_GOP_Picure_parameters) of the picture layer or higher from the variable length decoding unit 12, and outputs Sequence_parameters, GOP_parameters, and Picure_parameters to the encoder 30. In addition, the parameter determination information described with reference to Table 1 is input from the variable length decoding unit 12 to the control unit 41. The control unit 41 performs processing for storing the input encoding parameter and parameter determination information in the memory 42.

制御部41は、デコーダ10及びエンコーダ30の処理タイミングを制御するため、スイッチ部21、スイッチ部31及びスイッチ部37に制御信号を出力して、各スイッチ部21、31、37の開閉タイミングを制御する。このとき、制御部41は、上記パラメータ判定情報を参照することで、ピクチャ層の符号化パラメータが有効か否かを判定するとともに、MBパラメータが有効か否かを判定して、スイッチ部37を開閉動作させるための制御信号等を生成する。このとき、制御部41は、作業用メモリとして機能するメモリ42に上記各パラメータを格納して上述の処理を行う。   The control unit 41 outputs control signals to the switch unit 21, the switch unit 31, and the switch unit 37 in order to control the processing timing of the decoder 10 and the encoder 30, and controls the open / close timing of each switch unit 21, 31, 37. To do. At this time, the control unit 41 refers to the parameter determination information to determine whether the encoding parameter of the picture layer is valid, determines whether the MB parameter is valid, and sets the switch unit 37. A control signal for opening / closing operation is generated. At this time, the control unit 41 stores the parameters in the memory 42 functioning as a working memory and performs the above-described processing.

エンコーダ30は、上記スイッチ部21から画像データS20又は画像データS30が入力されるスイッチ部31を備える。   The encoder 30 includes a switch unit 31 to which the image data S20 or the image data S30 is input from the switch unit 21.

スイッチ部31は、制御部41からの制御信号にしたがって開閉動作し、端子aが接続されることでデコーダ10からの画像データS20を入力してダミーデータ除去部32に画像データS21を出力するとともに、端子bが接続されることでデコーダ10からの画像データS30を入力して画像処理部33に画像データS31を出力する。   The switch unit 31 opens and closes in accordance with a control signal from the control unit 41, inputs the image data S20 from the decoder 10 when the terminal a is connected, and outputs the image data S21 to the dummy data removal unit 32. When the terminal b is connected, the image data S30 from the decoder 10 is input and the image data S31 is output to the image processing unit 33.

ダミーデータ除去部32は、スイッチ部31からの画像データS21について図2(c)に示すように、ダミーデータを除去する処理を行って画像データS40を動き推定部34に出力する。すなわち、このダミーデータ除去部32は、デコーダ10からのダミーデータが付加された画像データS20(図2(b))に付加されているダミーデータを除去する処理を行ってダミーデータが付加される前の画像データとする。   As shown in FIG. 2C, the dummy data removing unit 32 performs processing for removing dummy data on the image data S <b> 21 from the switch unit 31 and outputs the image data S <b> 40 to the motion estimating unit 34. That is, the dummy data removing unit 32 performs a process of removing the dummy data added to the image data S20 (FIG. 2B) to which the dummy data from the decoder 10 is added, and the dummy data is added. The previous image data.

画像処理部33は、スイッチ部31からの画像データS31について、上述の画像処理部19で変更された画像サイズを変更するとき、スイッチ部31から入力される画像データS31について、画像サイズを変更する処理等を行って画像データS40を動き推定部34に出力する。この画像処理部33は、例えば352ピクセル×480ピクセルの画像を720ピクセル×480ピクセルの画像として動き推定(ME:Motion Estimation)部34に出力する。   The image processing unit 33 changes the image size of the image data S31 input from the switch unit 31 when the image size of the image data S31 from the switch unit 31 is changed by the image processing unit 19 described above. Processing etc. are performed and image data S40 is output to the motion estimation part 34. FIG. For example, the image processing unit 33 outputs an image of 352 pixels × 480 pixels to the motion estimation (ME) unit 34 as an image of 720 pixels × 480 pixels.

また、この画像処理部33は、画像データS31について2−3プルダウン処理を行う。すなわち、この画像処理部33は、例えば24ピクチャ/秒のフィルム映像を、30フレーム/秒の画像データに変換する処理を行う。   The image processing unit 33 performs 2-3 pull-down processing on the image data S31. That is, the image processing unit 33 performs a process of converting, for example, a film picture of 24 pictures / second into image data of 30 frames / second.

更に、この画像処理部33は、画像データS31を構成する各ピクチャについて、ピクチャ内の垂直方向及び水平方向の画素を間引いて、スイッチ部31から入力されたときよりも解像度が低いピクチャとするダウンサンプリング処理を行う。   The image processing unit 33 further reduces the resolution of each picture constituting the image data S31 by reducing the pixels in the vertical and horizontal directions in the picture so that the picture has a lower resolution than when the image data S31 is input from the switch unit 31. Perform sampling processing.

更にまた、画像処理部33は、各ピクチャのピクチャ層のヘッダに付加されているトップ・フィールド・ファースト(top_field_first)及びリピート・ファースト・フィールド(repeat_first_field)に基づいて、入力されたビットストリームを構成する各ピクチャをインタレース画像からフレーム画像とする。   Furthermore, the image processing unit 33 configures the input bit stream based on the top field first (top_field_first) and repeat first field (repeat_first_field) added to the header of the picture layer of each picture. Each picture is changed from an interlaced image to a frame image.

更に、この画像処理部33は、各ピクチャについて輝度信号、色差信号Cb、Crの比を示す輝度色差フォーマットを変換する処理を行う。すなわち、この画像処理部33は、水平方向において色情報を半分に削減した輝度色差フォーマットを示す4:2:2から、ピクチャ毎に水平方向及び垂直方向において色情報を半分に削減した輝度色差フォーマットを示す4:2:0に切り換える処理を行う。   Further, the image processing unit 33 performs a process of converting a luminance color difference format indicating a ratio of the luminance signal and the color difference signals Cb and Cr for each picture. That is, the image processing unit 33 changes the luminance color difference format in which the color information is reduced in half in the horizontal direction and the vertical direction for each picture from 4: 2: 2 indicating the color difference format in which the color information is reduced in half in the horizontal direction. A process of switching to 4: 2: 0 is performed.

そして、この画像処理部33は、画像サイズを変更する処理、上述した2−3プルダウン処理、ダウンサンプリング処理、ピクチャヘッダを書き換えてインタレース画像からフレーム画像に変換する処理、輝度色差フォーマットを変換する処理を行った画像データS40を動き推定部34に出力する。   Then, the image processing unit 33 converts the image size, the above-described 2-3 pull-down process, down-sampling process, the process of rewriting the picture header to convert from an interlaced image to a frame image, and the luminance / color-difference format. The processed image data S40 is output to the motion estimation unit 34.

動き推定部34は、スイッチ部31又はダミーデータ除去部32からの画像データS40を、MB単位で動きベクトルを算出する処理を行う。ここで、動き推定部34は、過去の画像から予測を行う順方向予測、未来の画像から予測を行う逆方向予測及び過去及び未来の画像から予測を行う双方向予測を行って動きベクトルを算出する処理を行う。そして、この動き推定部34は、算出した動きベクトル及びMB単位の画像データを制御部35及びMBパラメータ計算部36に出力する。   The motion estimation unit 34 performs a process of calculating a motion vector in MB units for the image data S40 from the switch unit 31 or the dummy data removal unit 32. Here, the motion estimation unit 34 calculates a motion vector by performing forward prediction that performs prediction from past images, backward prediction that performs prediction from future images, and bidirectional prediction that performs predictions from past and future images. Perform the process. Then, the motion estimation unit 34 outputs the calculated motion vector and MB-unit image data to the control unit 35 and the MB parameter calculation unit 36.

制御部35は、動き推定部34からの表示順序でフレームが配列されてなるフレーム画像シーケンスを、符号化順序でフレームが配列されてなるフレーム画像シーケンスとするように、フレームの順序を変更してエンコード部38に出力する。   The control unit 35 changes the order of the frames so that the frame image sequence in which the frames are arranged in the display order from the motion estimation unit 34 is changed to a frame image sequence in which the frames are arranged in the encoding order. The data is output to the encoding unit 38.

MBパラメータ計算部36は、動き推定部34からのMB単位の動きベクトル及びMB単位の画像データを用いて、MBパラメータを生成してスイッチ部37に出力する処理を行う。   The MB parameter calculation unit 36 uses the motion vector in MB unit and the image data in MB unit from the motion estimation unit 34 to generate MB parameters and output them to the switch unit 37.

スイッチ部37は、制御部41からの制御信号にしたがって開閉動作し、端子aが接続されることでMBパラメータ計算部36で計算されたMBパラメータを入力してエンコード部38に出力するとともに、端子bが接続されることでデコーダ10からのMBパラメータを入力してエンコード部38に出力する。   The switch unit 37 opens and closes in accordance with a control signal from the control unit 41, inputs the MB parameter calculated by the MB parameter calculation unit 36 when the terminal a is connected, and outputs the MB parameter to the encoding unit 38. By connecting b, the MB parameter from the decoder 10 is input and output to the encoding unit 38.

エンコード部38は、制御部35からのMB単位の画像データが入力される加算器51と、加算器51からのMB単位の画像データについて離散コサイン変換処理を施してDCT変換係数からなる画像データとするDCT処理部(DCT)52と、このDCT処理部52からの画像データを構成するDCT変換係数について量子化を行う量子化処理部(Q)53と、逆量子化処理部(IQ)と、逆DCT処理部(IDCT)55と、加算器56と、フレームメモリ(FM)57a及び動き補償部(MC)57bとからなる。   The encoding unit 38 includes an adder 51 to which image data in MB units from the control unit 35 is input, image data having DCT conversion coefficients by performing discrete cosine transform processing on the image data in MB units from the adder 51. A DCT processing unit (DCT) 52 that performs quantization, a quantization processing unit (Q) 53 that performs quantization on DCT transform coefficients that form image data from the DCT processing unit 52, an inverse quantization processing unit (IQ), An inverse DCT processing unit (IDCT) 55, an adder 56, a frame memory (FM) 57a, and a motion compensation unit (MC) 57b are included.

ここで、動き補償部(MC)57bは、時間的に前及び後に位置する画像データを格納するフレームメモリ(FM)を備え、動きベクトルに基づいて当該フレームメモリから予測する画像データを読み出して加算器51及び加算器56で加算処理をさせることで動き補償をする。   Here, the motion compensation unit (MC) 57b includes a frame memory (FM) that stores image data positioned before and after in time, and reads and adds image data to be predicted from the frame memory based on a motion vector. Motion compensation is performed by causing the adder 51 and the adder 56 to perform addition processing.

このようなエンコード部38は、上述したように構成されることで、MB単位で画像データのエンコードを行うことで、MPEG2規格に準拠してIピクチャ、Pピクチャ及びBピクチャが配列されてなる画像データを生成して可変長符号化部39に出力する。   Such an encoding unit 38 is configured as described above, and encodes image data in MB units so that an image in which I pictures, P pictures, and B pictures are arranged in accordance with the MPEG2 standard. Data is generated and output to the variable length encoding unit 39.

可変長符号化部39は、エンコード部38からの量子化係数からなるMB単位の画像データについてハフマン符号化を用いることで可変長圧縮を行ってビットストリームとしバッファ40に出力する。   The variable length encoding unit 39 performs variable length compression on the MB-unit image data composed of the quantized coefficients from the encoding unit 38 by using Huffman encoding, and outputs the result to the buffer 40 as a bit stream.

バッファ40は、可変長符号化部39からのビットストリームを一旦格納し、再エンコードしたビットストリームを外部に出力する。   The buffer 40 temporarily stores the bit stream from the variable length encoding unit 39 and outputs the re-encoded bit stream to the outside.

次に、上述したように構成された画像処理システム1において、エンコードデコーダ10からピクチャ層の符号化パラメータ、パラメータ判定情報等がエンコーダ30に入力されるときのタイミングチャート図3を参照して説明する。   Next, in the image processing system 1 configured as described above, a timing chart when the encoding parameters of the picture layer, parameter determination information, and the like are input from the encoder decoder 10 to the encoder 30 will be described with reference to FIG. .

この図3によれば、先ず、図3(a)に示すように、デコーダ10には、ピクチャ時間t1〜t6に亘って、ピクチャI2,B0,B1,P5,B3,B4の順に配されてなるビットストリームがバッファ11に入力される。   According to FIG. 3, first, as shown in FIG. 3A, the decoder 10 is arranged in the order of pictures I2, B0, B1, P5, B3, and B4 over picture times t1 to t6. The bit stream is input to the buffer 11.

ここで、バッファ11にビットストリームがピクチャ時間t1〜t6に亘って入力されることと同じタイミングで、図3(c)に示すように、可変長復号部12は、ピクチャ層以上の符号化パラメータ(Sequence_GOP_Picure_parameters)をピクチャI2,B0,B1,P5,B3,B4の順に検出して制御部41に出力する。   Here, at the same timing that the bit stream is input to the buffer 11 over the picture times t1 to t6, as shown in FIG. (Sequence_GOP_Picure_parameters) is detected in the order of pictures I2, B0, B1, P5, B3, and B4 and output to the control unit 41.

また、デコーダ10の可変長復号部12では、パラメータ判定情報(picture_mb_parameters_valid)をピクチャの可変長復号するごとに生成し、図3(d)に示すように、図3(a)に示すバッファ11へのビットストリームの入力タイミングに対して1ピクチャ時間だけ遅延して出力する。ここで、可変長復号部12は、ピクチャI2,B0,B1,P5,B3,B4についてのパラメータ判定情報をピクチャ時間t2〜t7に亘って制御部41に出力する。   Further, the variable length decoding unit 12 of the decoder 10 generates parameter determination information (picture_mb_parameters_valid) every time the picture is subjected to variable length decoding, and, as shown in FIG. 3 (d), stores it in the buffer 11 shown in FIG. 3 (a). Is output with a delay of one picture time with respect to the input timing of the bit stream. Here, the variable length decoding unit 12 outputs the parameter determination information for the pictures I2, B0, B1, P5, B3, and B4 to the control unit 41 over the picture times t2 to t7.

更に、デコーダ10のスイッチ部21からは、画像処理部19又はダミーデータ付加部20で上述した処理を施した画像データを図3(b)に示すように、バッファ11にビットストリームの入力タイミングに対して1ピクチャ時間だけ遅延してピクチャ時間t2〜t7に亘ってエンコーダ30にピクチャB0,B1,I2,B3,B4,P5の順に出力する。   Further, from the switch unit 21 of the decoder 10, the image data subjected to the above-described processing by the image processing unit 19 or the dummy data adding unit 20 is input to the buffer 11 at the bit stream input timing as shown in FIG. On the other hand, the picture B0, B1, I2, B3, B4, and P5 are output to the encoder 30 over the picture time t2 to t7 with a delay of one picture time.

図3(a)〜(d)に示したデコーダ10側の処理に対し、エンコーダ30では、図3(e)に示すように、図3(b)に示すデコーダ10からの画像データの出力タイミングに対して遅延なしでピクチャ時間t2〜t7に亘りピクチャB0,B1,I2,B3,B4,P5の順に画像データが入力される。   In contrast to the processing on the decoder 10 side shown in FIGS. 3A to 3D, the encoder 30 outputs image data from the decoder 10 shown in FIG. 3B, as shown in FIG. 3E. On the other hand, image data is input in the order of pictures B0, B1, I2, B3, B4, and P5 over a picture time t2 to t7 without delay.

また、エンコーダ30では、図3(f)に示すように、デコーダ10からのピクチャI2,B0,B1,P5,B3,B4の順にピクチャ層以上の符号化パラメータ(Sequence_GOP_Picure_parameters)が、図3(c)に示す可変長復号部12からの出力タイミングから遅延なしで制御部41を介して入力される。   Also, in the encoder 30, as shown in FIG. 3 (f), the encoding parameters (Sequence_GOP_Picure_parameters) of the picture layers and higher in the order of pictures I2, B0, B1, P5, B3, B4 from the decoder 10 are shown in FIG. ) Is input via the control unit 41 without delay from the output timing from the variable length decoding unit 12 shown in FIG.

更に、エンコーダ30では、図3(g)に示すように、デコーダ10からのピクチャI2,B0,B1,P5,B3,B4の順にパラメータ判定情報が可変長復号部12から遅延なしで入力される。このとき、エンコーダ30には、可変長復号部12からのピクチャI2,B0,B1,P5,B3,B4についてのパラメータ判定情報をピクチャ時間t2〜t7に亘って制御部41を介して入力される。   Furthermore, in the encoder 30, parameter determination information is input from the variable length decoding unit 12 without delay in the order of pictures I2, B0, B1, P5, B3, and B4 from the decoder 10, as shown in FIG. . At this time, the parameter determination information for the pictures I2, B0, B1, P5, B3, and B4 from the variable length decoding unit 12 is input to the encoder 30 through the control unit 41 over the picture times t2 to t7. .

更にまた、エンコーダ30では、図3(h)に示すように、M=3のGOPの画像データをエンコードするのに要する遅延タイミングとして、図3(e)の画像データの入力タイミングから3ピクチャ時間の遅延タイミングでピクチャ時間t5〜t10に亘りバッファ40からビットストリームを出力する。このとき、エンコーダ30からは、ピクチャI2,B0,B1,P5,B3,B4の順に出力する。   Furthermore, in the encoder 30, as shown in FIG. 3 (h), the delay time required to encode the GOP image data with M = 3 is 3 picture time from the input timing of the image data in FIG. 3 (e). The bit stream is output from the buffer 40 over the picture times t5 to t10 at the delay timing of. At this time, the encoder 30 outputs pictures I2, B0, B1, P5, B3, and B4 in this order.

ここで、エンコーダ30側ではエンコードするのに要するピクチャ時間分だけピクチャ層の符号化パラメータをメモリ42でバッファリングする必要がある。そして、本例において、制御部41は、MPEG2規格に準拠してM=3のGOPから構成されるビットストリームを出力するとき、4ピクチャ時間分(t1〜t4)だけ符号化パラメータのバッファリングを行わせることで、符号化パラメータが付加されエンコードしたビットストリームを出力させる処理を行うように制御する。   Here, on the encoder 30 side, it is necessary to buffer the coding parameters of the picture layer in the memory 42 for the picture time required for encoding. In this example, when the control unit 41 outputs a bit stream composed of GOPs of M = 3 in accordance with the MPEG2 standard, the control unit 41 buffers the encoding parameter for 4 picture times (t1 to t4). By performing the control, control is performed so as to perform processing for outputting an encoded bitstream to which an encoding parameter is added.

次に、上述の画像処理システム1において、デコーダ10からMBパラメータ等がエンコーダ30に入力されるときのタイミングチャートを図4を参照して説明する。   Next, a timing chart when MB parameters and the like are input from the decoder 10 to the encoder 30 in the above-described image processing system 1 will be described with reference to FIG.

デコーダ10では、図4(a)に示すように、ピクチャ時間t1〜t6に亘って、ピクチャI2,B0,B1,P5,B3,B4の順にピクチャが配されてなるビットストリームがバッファ11に入力される。   In the decoder 10, as shown in FIG. 4A, a bit stream in which pictures are arranged in the order of pictures I 2, B 0, B 1, P 5, B 3, B 4 is input to the buffer 11 over picture times t 1 to t 6. Is done.

また、デコーダ10の可変長復号部12では、図4(c)に示すように、ピクチャ時間t1〜t6に亘るビットストリームのバッファ11への入力タイミングに対して遅延なく同じタイミングでMBパラメータ(MB_parameters)をデコードして生成する。このとき、可変長復号部12は、ピクチャI2,B0,B1,P5,B3,B4ついてのMBパラメータを順に生成する。   Further, in the variable length decoding unit 12 of the decoder 10, as shown in FIG. 4C, the MB parameter (MB_parameters) at the same timing without delay with respect to the input timing of the bit stream to the buffer 11 over the picture times t1 to t6. ) Is generated by decoding. At this time, the variable length decoding unit 12 sequentially generates MB parameters for the pictures I2, B0, B1, P5, B3, and B4.

そして、デコーダ10の可変長復号部12では、上述の図4(c)に示すタイミングで生成したMBパラメータを、図4(d)に示すように、4ピクチャ時間分だけ遅延させてピクチャ時間t5〜t10に亘って、ピクチャI2,B0,B1,P5,B3,B4ついてのMBパラメータを順に出力する。   Then, in the variable length decoding unit 12 of the decoder 10, the MB parameter generated at the timing shown in FIG. 4C is delayed by 4 picture times as shown in FIG. MB parameters for pictures I2, B0, B1, P5, B3, and B4 are output in order over t10.

ここで、制御部41は、GOPのM=3であるときには4ピクチャ時間分(4フレーム分)のMBパラメータをメモリ13にバッファリングさせてエンコーダ30に出力するように制御する。   Here, the control unit 41 controls the MB parameter for 4 picture time (4 frames) to be buffered in the memory 13 and output to the encoder 30 when M = 3 of the GOP.

更にまた、デコーダ10は、図4(b)に示すように、ビットストリームの入力タイミングに対して1ピクチャ時間だけ遅延してピクチャ時間t2〜t7に亘ってエンコーダ30にピクチャB0,B1,I2,B3,B4,P5の順に画像データを出力する。   Furthermore, as shown in FIG. 4B, the decoder 10 delays the picture timings B0, B1, I2, and the encoder 30 over the picture times t2 to t7 with a delay of one picture time with respect to the input timing of the bitstream. Image data is output in the order of B3, B4, and P5.

図4(a)〜(d)に示したデコーダ10側の処理に対し、エンコーダ30では、図4(e)に示すように、デコーダ10から画像データが図4(b)に示す出力タイミングに対して遅延なしでピクチャ時間t2〜t7に亘りピクチャB0,B1,I2,B3,B4,P5の順に画像データが入力される。   In contrast to the processing on the decoder 10 side shown in FIGS. 4A to 4D, in the encoder 30, as shown in FIG. 4E, image data from the decoder 10 is output at the output timing shown in FIG. On the other hand, image data is input in the order of pictures B0, B1, I2, B3, B4, and P5 over a picture time t2 to t7 without delay.

また、エンコーダ30では、図4(d)に示すMBパラメータの出力タイミングに対して遅延なしでピクチャ時間t5〜t10に亘りピクチャI2,B0,B1,P5,B3,B4ついてのMBパラメータが順に入力される。   The encoder 30 sequentially inputs MB parameters for pictures I2, B0, B1, P5, B3, and B4 over picture times t5 to t10 without delay with respect to the output timing of MB parameters shown in FIG. Is done.

更に、エンコーダ30では、図4(g)の入力タイミングで入力されたMBパラメータを用いてエンコード部38でエンコード等をすることで生成したビットストリームを、図4(f)に示すように、図4(e)に示すエンコーダ30への画像データ入力の入力タイミングに対して3ピクチャ時間遅延してピクチャ時間t5〜t10に亘りピクチャI2,B0,B1,P5,B3,B4の順に出力する。   Furthermore, in the encoder 30, as shown in FIG. 4 (f), a bit stream generated by encoding or the like in the encoding unit 38 using the MB parameter input at the input timing of FIG. The picture data is input in the order of pictures I2, B0, B1, P5, B3, and B4 over picture times t5 to t10 with a delay of 3 picture times with respect to the input timing of image data input to the encoder 30 shown in 4 (e).

ここで、エンコーダ30側ではエンコードするのに要するピクチャ時間分だけピクチャ層の符号化パラメータをメモリ42でバッファリングする必要がある。そして、本例において、制御部41は、M=3のGOPで構成されるビットストリームを出力するとき、画像データの入力タイミングに対して3ピクチャ時間分(t2〜t4)だけ遅延させて出力するように制御する。   Here, on the encoder 30 side, it is necessary to buffer the coding parameters of the picture layer in the memory 42 for the picture time required for encoding. In this example, when outputting a bit stream composed of M = 3 GOPs, the control unit 41 outputs the bit stream delayed by three picture times (t2 to t4) with respect to the input timing of the image data. To control.

次に、上述の画像処理システム1において、デコーダ10からのパラメータ判定情報に応じた処理について説明する。   Next, processing according to the parameter determination information from the decoder 10 in the image processing system 1 described above will be described.

画像処理システム1は、可変長復号部12で生成されたパラメータ判定情報に基づいてピクチャ層以上の符号化パラメータ及びMBパラメータが有効か無効かを制御部41で判定させ、制御部41によりエンコーダ30側でエンコードを行うときに用いる符号化パラメータを選択する処理を行わせる。   The image processing system 1 causes the control unit 41 to determine whether the encoding parameters and MB parameters of the picture layer and higher are valid or invalid based on the parameter determination information generated by the variable length decoding unit 12, and the control unit 41 uses the encoder 30. A process for selecting an encoding parameter to be used when encoding on the side is performed.

具体的には、制御部41は、可変長復号部12からのパラメータ判定情報に基づいて、ピクチャ層以上の符号化パラメータ及びMBパラメータにエラーを含んでおらず有効であることを示すフラグを検出したときには、デコーダ10に入力されたビットストリームに付加された符号化パラメータと同じ符号化パラメータを用いてデコーダ10から入力される画像データをエンコーダ30でエンコードさせる。   Specifically, the control unit 41 detects, based on the parameter determination information from the variable length decoding unit 12, a flag indicating that the encoding parameters and MB parameters of the picture layer and higher do not include an error and are valid. Then, the encoder 30 encodes the image data input from the decoder 10 using the same encoding parameter as the encoding parameter added to the bit stream input to the decoder 10.

また、制御部41は、エンコーダ30でエンコードを行うことでビットレートを下げる場合には、量子化スケールを示す符号化パラメータのみをエンコーダ30で変更してエンコードを行い、他の符号化パラメータについてはデコーダ10に入力されたビットストリームに付加された符号化パラメータを用いてエンコードするように制御する。   In addition, in the case where the bit rate is lowered by encoding with the encoder 30, the control unit 41 performs encoding by changing only the encoding parameter indicating the quantization scale with the encoder 30, and for other encoding parameters. Control is performed so that encoding is performed using the encoding parameter added to the bitstream input to the decoder 10.

更に、制御部41は、エンコーダ30で画像サイズを変更してエンコードを行う場合には、ピクチャ層以上の符号化パラメータのみを用いてエンコードを行わせる。このとき、制御部41は、少なくともpicture_coding_type、top_field_first、repeat_first_fieldについて、エンコードを行うときの符号化パラメータとデコーダ10に入力されるビットストリームに付加された符号化パラメータとを同じくするように制御する。また、制御部41は、可変長復号部12からのMBパラメータを無効とし、MBパラメータ計算部36で計算されたMB層の全ての符号化パラメータを用いてエンコード部38でエンコードを行うようにスイッチ部37を制御する。   Further, when the encoder 30 performs encoding by changing the image size by the encoder 30, the control unit 41 performs encoding using only the encoding parameters of the picture layer or higher. At this time, the control unit 41 performs control so that at least picture_coding_type, top_field_first, and repeat_first_field have the same encoding parameters for encoding and the encoding parameters added to the bit stream input to the decoder 10. Also, the control unit 41 disables the MB parameter from the variable length decoding unit 12 and switches the encoding unit 38 to perform encoding using all the encoding parameters of the MB layer calculated by the MB parameter calculation unit 36. The unit 37 is controlled.

一方、上述の画像処理システム1おいて、可変長復号部12からのパラメータ判定情報に基づいて、ピクチャ層以上の符号化パラメータ及びMBパラメータにエラーを含んでおり無効であることを示すフラグを検出したときには、エンコーダ30のMBパラメータ計算部36で計算したMBパラメータを用いてエンコードを行う。以下に、符号化パラメータが無効であるときの処理について図5に示すタイミングチャートを参照して説明する。   On the other hand, in the image processing system 1 described above, based on the parameter determination information from the variable length decoding unit 12, a flag indicating that the encoding parameter and the MB parameter of the picture layer or higher include an error and is invalid is detected. In this case, encoding is performed using the MB parameter calculated by the MB parameter calculation unit 36 of the encoder 30. Hereinafter, a process when the encoding parameter is invalid will be described with reference to a timing chart shown in FIG.

この図5に示すタイミングチャートによれば、図5(a)に示すようにピクチャ時間t1〜t12に亘りピクチャI2,B0,B1,P5,B3,B4,P8,B6,B7,I2,B0,B1の順にピクチャが配されてなるビットストリームがデコーダ10のバッファ11に入力される。   According to the timing chart shown in FIG. 5, as shown in FIG. 5A, the pictures I2, B0, B1, P5, B3, B4, P8, B6, B7, I2, B0, A bit stream in which pictures are arranged in the order of B 1 is input to the buffer 11 of the decoder 10.

これに応じて、デコーダ10の可変長復号部12では、図5(c)に示すように、ビットストリームの入力タイミングと同じタイミングでピクチャ時間t1〜t12に亘りピクチャI2,B0,B1,P5,B3,B4,P8,B6,B7,I2,B0,B1の順でMBパラメータのデコードを行う。   In response to this, in the variable length decoding unit 12 of the decoder 10, as shown in FIG. 5C, the pictures I2, B0, B1, P5 over the picture times t1 to t12 at the same timing as the input timing of the bitstream. MB parameters are decoded in the order of B3, B4, P8, B6, B7, I2, B0, and B1.

ここで、図5(d)に示すように、ピクチャ時間t4において、ピクチャP5についてのMB層のシンタクスエラーが発生すると、可変長復号部12は、図5(e)に示すように、パラメータ判定情報(mb_parameters_valid)のMB層についての1ビットのフラグを“0”とする。そして、可変長復号部12は、ピクチャP5の次のピクチャB3のスタートコードでエラーリカバリーを行う。   Here, as shown in FIG. 5D, when a syntax error of the MB layer for the picture P5 occurs at the picture time t4, the variable length decoding unit 12 performs parameter determination as shown in FIG. A 1-bit flag for the MB layer of information (mb_parameters_valid) is set to “0”. Then, the variable length decoding unit 12 performs error recovery with the start code of the picture B3 next to the picture P5.

また、可変長復号部12は、ピクチャ時間t1〜t3及びt5〜t12においてはMB層にエラーが発生せずに、パラメータ判定情報のMB層についての1ビットのフラグを“1”とする。   Further, the variable length decoding unit 12 sets the 1-bit flag for the MB layer of the parameter determination information to “1” without causing an error in the MB layer during the picture times t1 to t3 and t5 to t12.

また、デコーダ10は、図5(f)に示すように、可変長復号部12でデコードして生成したMBパラメータをメモリ13にバッファリングして制御部41からの制御によりビットストリームの入力タイミングに対して4ピクチャ時間だけ遅延させてピクチャ時間t5〜t16に亘りピクチャI2,B0,B1,P5,B3,B4,P8,B6,B7,I2,B0,B1の順でMBパラメータを30に出力する。   Further, as shown in FIG. 5 (f), the decoder 10 buffers the MB parameter generated by decoding by the variable length decoding unit 12 in the memory 13, and controls the input timing of the bitstream by the control from the control unit 41. The MB parameter is output to 30 in the order of pictures I2, B0, B1, P5, B3, B4, P8, B6, B7, I2, B0, and B1 with a delay of 4 picture times. .

更に、デコーダ10は、図5(b)に示すように、ビットストリームの入力タイミングに対して1ピクチャ時間だけ遅延してピクチャ時間t2〜t13に亘ってピクチャB0,B1,I2,B3,B4,P5,B6,B7,P8,B0,B1,I2の順に画像データをエンコーダ30に出力する。   Further, as shown in FIG. 5B, the decoder 10 delays pictures B0, B1, I2, B3, B4 over picture times t2 to t13 with a delay of one picture time with respect to the input timing of the bit stream. Image data is output to the encoder 30 in the order of P5, B6, B7, P8, B0, B1, and I2.

図5(a)〜(f)に示したデコーダ10側の処理に対し、エンコーダ30では、図5(g)に示すように、デコーダ10から画像データが図5(b)に示す出力タイミングに対して遅延なしでピクチャ時間t2〜t10に亘りピクチャB0,B1,I2,B3,B4,P5,B6,B7,P8の順に画像データが入力される。   In contrast to the processing on the decoder 10 side shown in FIGS. 5A to 5F, in the encoder 30, as shown in FIG. 5G, the image data is output from the decoder 10 at the output timing shown in FIG. On the other hand, image data is input in the order of pictures B0, B1, I2, B3, B4, P5, B6, B7, and P8 over a picture time t2 to t10 without delay.

また、エンコーダ30には、図5(h)に示すように、図5(f)に示すMBパラメータの出力タイミングに対して遅延なしでピクチャ時間t5〜t16に亘りピクチャI2,B0,B1,P5,B3,B4,P8,B6,B7,I2,B0,B1ついてのMBパラメータが入力される。   Further, as shown in FIG. 5 (h), the encoder 30 transmits pictures I2, B0, B1, P5 over the picture time t5 to t16 without delay with respect to the output timing of the MB parameter shown in FIG. 5 (f). , B3, B4, P8, B6, B7, I2, B0, B1 are input MB parameters.

そして、図5(i)に示すように、図5(h)に示したMBパラメータの入力タイミングと同じタイミングで、制御部41では、可変長復号部12からのパラメータ判定情報に基づいて、可変長復号部12からのMBパラメータが有効か否かの判定を行う。ここで、図5(i)においては、制御部41によりMBパラメータを有効と判定したときには“1”と表記し、制御部41によりMBパラメータを無効と判定したときには“0”と表記している。   Then, as shown in FIG. 5 (i), at the same timing as the MB parameter input timing shown in FIG. It is determined whether the MB parameter from the long decoding unit 12 is valid. Here, in FIG. 5 (i), when the control unit 41 determines that the MB parameter is valid, it is expressed as “1”, and when the control unit 41 determines that the MB parameter is invalid, it is expressed as “0”. .

図5(d)に示したようにピクチャ時間t4においてピクチャP5についてのMBパラメータにエラーを含んでいる旨のパラメータ判定情報に応じて、制御部41は、ピクチャP5がエラーコンシールにより生成された画像データであることを認識する。そして、制御部41は、ピクチャP5を用いて予測符号化がなされて生成されたピクチャB3,B4,P8,B6,B7についてのMBパラメータも無効とする。そして、制御部41は、ピクチャP5を用いないで生成されるピクチャI2から再びMBパラメータが有効と判定する。すなわち、制御部41は、ピクチャ時間t5〜t7に入力されるピクチャI2,B0,B1についてのMBパラメータ及びピクチャ時間t14〜t16に入力されるピクチャI2,B0,B1についてのMBパラメータを有効と判定し、ピクチャ時間t8〜t13に入力されるピクチャP5,B3,B4,P8,B6,B7についてのMBパラメータを無効と判定する。   As illustrated in FIG. 5D, in response to the parameter determination information indicating that the MB parameter for the picture P5 includes an error at the picture time t4, the control unit 41 generates an image in which the picture P5 is generated by the error concealment. Recognize that it is data. Then, the control unit 41 also invalidates the MB parameters for the pictures B3, B4, P8, B6, and B7 generated by predictive coding using the picture P5. Then, the control unit 41 determines that the MB parameter is valid again from the picture I2 generated without using the picture P5. That is, the control unit 41 determines that the MB parameters for the pictures I2, B0, and B1 input at the picture times t5 to t7 and the MB parameters for the pictures I2, B0, and B1 input at the picture times t14 to t16 are valid. The MB parameters for the pictures P5, B3, B4, P8, B6, and B7 input during the picture times t8 to t13 are determined to be invalid.

図5(i)に示したように、MBパラメータが有効と判定されたピクチャI2,B0,B1については、制御部41は、スイッチ部37が端子bと接続するように制御し、可変長復号部12からスイッチ部37に入力されたMBパラメータを用いてエンコード部38で動きベクトルの予測等の処理を行ってエンコードを行うように制御する。   As shown in FIG. 5 (i), for the pictures I2, B0, B1 for which the MB parameter is determined to be valid, the control unit 41 controls the switch unit 37 to be connected to the terminal b, and variable length decoding is performed. Using the MB parameter input from the unit 12 to the switch unit 37, the encoding unit 38 performs processing such as prediction of a motion vector and performs control.

一方、図5(i)に示したように、MBパラメータが無効と判定されたピクチャP5,B3,B4,P8,B6,B7については、制御部41は、スイッチ部37が端子aと接続するように制御し、可変長復号部12で生成されエンコーダ30に入力されたMBパラメータを用いず、MBパラメータ計算部36で計算したMBパラメータを用いてエンコード部38で動きベクトルの予測等の処理を行ってエンコードを行うように制御する。   On the other hand, as shown in FIG. 5I, for the pictures P5, B3, B4, P8, B6, and B7 for which the MB parameter is determined to be invalid, the control unit 41 connects the switch unit 37 to the terminal a. The encoding unit 38 performs processing such as motion vector prediction using the MB parameter calculated by the MB parameter calculation unit 36 without using the MB parameter generated by the variable length decoding unit 12 and input to the encoder 30. Control to go and encode.

そして、エンコーダ30は、エンコード部38でエンコード等をすることで生成したビットストリームを、図5(j)に示すように、図5(g)に示す画像データ入力の入力タイミングに対して3ピクチャ時間分遅延してピクチャ時間t5〜t16に亘りピクチャI2,B0,B1,P5,B3,B4,P8,B6,B7,I2,B0,B1の順に出力する。   Then, the encoder 30 converts the bit stream generated by encoding or the like in the encoding unit 38 into three pictures with respect to the input timing of the image data input shown in FIG. 5G, as shown in FIG. Delayed by the time, the pictures are output in the order of pictures I2, B0, B1, P5, B3, B4, P8, B6, B7, I2, B0, and B1 over picture times t5 to t16.

ここで、エンコーダ30側ではエンコードするのに要するピクチャ時間分だけピクチャ層の符号化パラメータをメモリ42でバッファリングする必要がある。そして、本例において、制御部41は、M=3のGOPで構成されるビットストリームを出力するとき、画像データの入力タイミングに対して3ピクチャ時間分(t2〜t4)だけ遅延させて出力するように制御する。   Here, on the encoder 30 side, it is necessary to buffer the coding parameters of the picture layer in the memory 42 for the picture time required for encoding. In this example, when outputting a bit stream composed of M = 3 GOPs, the control unit 41 outputs the bit stream delayed by three picture times (t2 to t4) with respect to the input timing of the image data. To control.

このように構成された画像処理システム1は、デコーダ10の可変長復号部12でピクチャ層の符号化パラメータ、MBパラメータにエラーが発生していることを示すパラメータ判定情報を生成して、エンコーダ30で用いる符号化パラメータを制御部41により制御することができる。したがって、この画像処理システム1によれば、例えば符号化パラメータが無効であるときには、当該符号化パラメータを用いないでエンコーダ30で計算して生成した符号化パラメータを用いて再エンコードを行うことで、正確に再エンコードを行うことができる。   In the image processing system 1 configured as described above, the variable length decoding unit 12 of the decoder 10 generates parameter determination information indicating that an error has occurred in the encoding parameter and MB parameter of the picture layer, and the encoder 30 Can be controlled by the control unit 41. Therefore, according to this image processing system 1, for example, when the encoding parameter is invalid, re-encoding is performed using the encoding parameter calculated and generated by the encoder 30 without using the encoding parameter. Re-encoding can be performed accurately.

具体的には、画像処理システム1によれば、図5(d)に示すように、MB層のエラーが発生したときには、デコーダ10の可変長復号部12で生成したMBパラメータを用いないで、MBパラメータ計算部36で計算したMBパラメータを用いてエンコード部38で再エンコードを行うことで、間違いのある符号化パラメータを用いて再エンコードすることを防止することができる。   Specifically, according to the image processing system 1, as shown in FIG. 5 (d), when an MB layer error occurs, the MB parameter generated by the variable length decoding unit 12 of the decoder 10 is not used. By performing re-encoding by the encoding unit 38 using the MB parameter calculated by the MB parameter calculating unit 36, it is possible to prevent re-encoding using an erroneous encoding parameter.

上述の図3〜図5を用いて説明した動作を行う画像処理システム1に備えられるエンコーダ30は、Iピクチャ又はPピクチャの間隔が3(M=3)以下のGOPで構成される画像データについてエンコードを行うものであり、Mが3以上(M>3)のGOPで構成される画像データが入力されたときには、Mが3以下(M≦3)の画像データに変更する処理を制御部41により行って再エンコードを行う。   The encoder 30 provided in the image processing system 1 that performs the operation described with reference to FIGS. 3 to 5 described above is for image data composed of GOPs in which the interval between I pictures or P pictures is 3 (M = 3) or less. When image data composed of GOPs with M being 3 or more (M> 3) is input, the control unit 41 performs processing for changing to image data with M being 3 or less (M ≦ 3). And re-encode.

例えば、エンコーダ30にピクチャI0,B1,B2,B3,B4,P5が順に表示される画像データについては、制御部41は、ピクチャB3をピクチャP3と変更する処理を行ってピクチャI0,B1,B2,P3,B4,P5が順に表示される画像データとする。これにより、制御部41は、M=5のGOPの画像データを、M=3とM=2のGOPの画像データとする。   For example, for image data in which pictures I0, B1, B2, B3, B4, and P5 are displayed in order on the encoder 30, the control unit 41 performs a process of changing the picture B3 to the picture P3 to perform the pictures I0, B1, and B2. , P3, B4, and P5 are sequentially displayed as image data. Thus, the control unit 41 sets the GOP image data of M = 5 as the GOP image data of M = 3 and M = 2.

制御部41は、上述のように、Mを変更するとき、ピクチャの表示順に従ってエンコーダ30に入力されるピクチャパラメータのpicture_coding_typeを参照して、連続して入力されるBピクチャの数をカウントし、当該カウント数が3となったときのBピクチャをPピクチャに変更するように符号化パラメータを生成して再エンコードを行うように制御する。   As described above, when changing the M, the control unit 41 refers to the picture_coding_type of the picture parameter input to the encoder 30 according to the display order of the pictures, and counts the number of B pictures that are continuously input, Control is performed so that the encoding parameter is generated and re-encoding is performed so that the B picture when the count number becomes 3 is changed to the P picture.

このような処理を行う画像処理システム1について図6のタイミングチャートを参照して説明する。   The image processing system 1 that performs such processing will be described with reference to the timing chart of FIG.

この図6に示すタイミングチャートによれば、先ず、図6(a)に示すように、ピクチャ時間t1〜t14に亘りピクチャI2,B0,B1,P5,B3,B4,Pa,B6,B7,B8,B9,Pd,Bb,Bcの順にピクチャが配されてなるビットストリームがデコーダ10のバッファ11に入力される。   According to the timing chart shown in FIG. 6, first, as shown in FIG. 6 (a), pictures I2, B0, B1, P5, B3, B4, Pa, B6, B7, B8 over picture times t1 to t14. , B9, Pd, Bb, Bc, a bit stream in which pictures are arranged in this order is input to the buffer 11 of the decoder 10.

ここで、デコーダ10に入力されたビットストリームについてのMは、あるピクチャ時間のIピクチャ又はPピクチャから後のピクチャ時間に出現するIピクチャ又はPピクチャまでのピクチャ数を検出することにより得られ、図6(b)に示すように、ピクチャI2,B0,B1で3となり、ピクチャP5,B3,B4で“3”となり、ピクチャPa,B6,B7,B8,B9で“5”となり、ピクチャPd,Bb,Bcで“3”となる。   Here, M for the bitstream input to the decoder 10 is obtained by detecting the number of pictures from an I picture or P picture at a certain picture time to an I picture or P picture appearing at a later picture time, As shown in FIG. 6B, the picture I2, B0, B1 becomes 3, the picture P5, B3, B4 becomes “3”, the picture Pa, B6, B7, B8, B9 becomes “5”, and the picture Pd , Bb and Bc become “3”.

図6(a)に示すビットストリームの入力タイミングと同じタイミングで、デコーダ10の可変長復号部12では、図6(d)に示すように、ピクチャ時間t1〜t14に亘りピクチャI2,B0,B1,P5,B3,B4,Pa,B6,B7,B8,B9,Pd,Bb,Bcの順で各ピクチャについてのMBパラメータのデコードを行う。   At the same timing as the input timing of the bit stream shown in FIG. 6A, the variable length decoding unit 12 of the decoder 10 has pictures I2, B0, B1 over picture times t1 to t14 as shown in FIG. 6D. , P5, B3, B4, Pa, B6, B7, B8, B9, Pd, Bb, and Bc, the MB parameters for each picture are decoded.

そして、デコーダ10は、図6(e)に示すように、可変長復号部12で生成したMBパラメータをメモリ13にバッファリングして制御部41からの制御によりビットストリームの入力タイミングに対して4ピクチャ時間だけ遅延させてピクチャ時間t5〜t16に亘りピクチャI2,B0,B1,P5,B3,B4,P8,B6,B7,I2,B0,B1の順で各ピクチャについてのMBパラメータをエンコーダ30に出力する。   Then, as shown in FIG. 6E, the decoder 10 buffers the MB parameter generated by the variable length decoding unit 12 in the memory 13 and controls the bit stream input timing to 4 with the control from the control unit 41. The MB parameter for each picture is given to the encoder 30 in the order of pictures I2, B0, B1, P5, B3, B4, P8, B6, B7, I2, B0, B1 over a picture time t5 to t16. Output.

更に、デコーダ10は、図6(c)に示すように、ビットストリームの入力タイミングに対して1ピクチャ時間だけ遅延しピクチャ時間t2〜t15に亘ってピクチャB0,B1,I2,B3,B4,P5,B6,B7,B8,B9,Pa,Bb,Bc,Pdの順に画像データをエンコーダ30に出力する。   Further, as shown in FIG. 6 (c), the decoder 10 delays by one picture time with respect to the input timing of the bit stream and delays the pictures B0, B1, I2, B3, B4, P5 over the picture times t2 to t15. , B6, B7, B8, B9, Pa, Bb, Bc, and Pd are output to the encoder 30 in this order.

これに対し、エンコーダ30には、図6(f)に示すように、図6(c)に示すデコーダ10からの画像データの出力タイミングと同じタイミングで、ピクチャ時間t2〜t15に亘ってピクチャB0,B1,I2,B3,B4,P5,B6,B7,B8,B9,Pa,Bb,Bc,Pdの順に画像データが入力される。   On the other hand, as shown in FIG. 6F, the encoder 30 sends picture B0 over the picture time t2 to t15 at the same timing as the output timing of the image data from the decoder 10 shown in FIG. , B1, I2, B3, B4, P5, B6, B7, B8, B9, Pa, Bb, Bc, Pd in this order.

ここで、制御部41は、図6(g)に示すように、図6(f)に示す画像データの入力タイミングに基づいて、エンコーダ30に時間的に連続して入力されるBピクチャの数をカウントして、カウント数を得る。制御部41は、Iピクチャ又はPピクチャがエンコーダ30に入力されたとき、又はカウント数が“3”となったときに、カウント数を“0”にリセットする。   Here, as shown in FIG. 6G, the control unit 41 counts the number of B pictures that are continuously input to the encoder 30 based on the input timing of the image data shown in FIG. To get the count number. The control unit 41 resets the count number to “0” when an I picture or P picture is input to the encoder 30 or when the count number becomes “3”.

すなわち、制御部41は、図6(f)に示すように入力された画像データに対し、1,2,0,1,2,0,1,2,3,1,0,1,2,0とピクチャに対応したカウント数を得る。   That is, the control unit 41 applies 1, 2, 0, 1, 2, 0, 1, 2, 3, 1, 0, 1, 2, to the input image data as shown in FIG. 0 and the count corresponding to the picture are obtained.

そして、制御部41は、図6(g)に示すカウント数に基づいて、画像データのMを変更するか否かを判定を行う。すなわち、制御部41は、カウンタ数が“3”となったときに画像データのMを変更する旨の判定をし、図6(h)に示すように、ピクチャ時間t10においてカウンタ数が“3”におけるピクチャB8をPピクチャに変更して、Mを変更する。   Then, the control unit 41 determines whether or not to change M of the image data based on the count number shown in FIG. That is, the control unit 41 determines that M of the image data is to be changed when the counter number reaches “3”, and the counter number is “3” at the picture time t10 as shown in FIG. The picture B8 in "" is changed to a P picture, and M is changed.

このようにBピクチャをPピクチャに変更した場合において、制御部41は、図6(i)に示すように、図6(g)に示すカウンタ数に基づいて、各ピクチャについてのピクチャタイプ(picture_coding_type)を決定する。本例において、制御部41は、ピクチャ時間t10におけるピクチャB8をPピクチャに変更することにより、図6(f)のピクチャタイプをBピクチャからPピクチャに変更する処理を行う。   In this way, when the B picture is changed to the P picture, the control unit 41, as shown in FIG. 6 (i), based on the counter number shown in FIG. 6 (g), the picture type (picture_coding_type) for each picture. ). In this example, the control unit 41 performs a process of changing the picture type in FIG. 6F from the B picture to the P picture by changing the picture B8 at the picture time t10 to the P picture.

ここで、制御部41は、デコーダ10からエンコーダ30に入力されるMBパラメータに関わらず、カウント数に基づいて決定したピクチャタイプに従ってエンコード部38で再エンコードを行うように制御する。   Here, the control unit 41 controls the encoding unit 38 to perform re-encoding according to the picture type determined based on the count number, regardless of the MB parameter input from the decoder 10 to the encoder 30.

また、エンコーダ30には、図6(j)に示すように、図6(e)に示すMBパラメータの出力タイミングに対して遅延なしでピクチャ時間t5〜t18に亘りピクチャI2,B0,B1,P5,B3,B4,Pa,B6,B7,B8,B9,Pd,Bb,BcついてのMBパラメータが順に入力される。   Further, as shown in FIG. 6 (j), the encoder 30 transmits pictures I2, B0, B1, P5 over the picture time t5 to t18 without delay with respect to the output timing of the MB parameter shown in FIG. 6 (e). , B3, B4, Pa, B6, B7, B8, B9, MB parameters for Pd, Bb, Bc are sequentially input.

そして、図6(k)に示すように、図6(j)に示したMBパラメータの入力タイミングと同じタイミングで、制御部41では、可変長復号部12からのパラメータ判定情報に基づいて、可変長復号部12からのMBパラメータが有効か否かの判定を行う。ここで、図6(k)においては、制御部41によりMBパラメータを有効と判定したときには“1”と表記し、制御部41によりMBパラメータを無効と判定したときには“0”と表記している。   Then, as shown in FIG. 6 (k), the control unit 41 is variable based on the parameter determination information from the variable length decoding unit 12 at the same timing as the MB parameter input timing shown in FIG. 6 (j). It is determined whether the MB parameter from the long decoding unit 12 is valid. Here, in FIG. 6 (k), when the MB parameter is determined to be valid by the control unit 41, it is expressed as “1”, and when the MB parameter is determined as invalid by the control unit 41, it is expressed as “0”. .

ここで、制御部41は、上述の図6(i)に示すようにピクチャ時間t10におけるピクチャをBピクチャからPピクチャに変更した場合において、変更した時におけるBピクチャと時間的に連続するBピクチャから、時間的に後のPピクチャまでにおける各ピクチャについてのMBパラメータ(例えば動きベクトル等)を無効と判定する。   Here, when the picture at the picture time t10 is changed from the B picture to the P picture as shown in FIG. 6 (i), the control unit 41 is a B picture that is temporally continuous with the B picture at the time of the change. Therefore, it is determined that the MB parameter (for example, motion vector) for each picture up to the later P picture in time is invalid.

すなわち、制御部41は、カウンタ数が3であるときのピクチャB8と当該ピクチャB8と時間的に連続するピクチャB6,B7,B9から、時間的に後のピクチャPaまでのMBパラメータを無効と判定し、それ以外のピクチャについてのMBパラメータを有効と判定する。   That is, the control unit 41 determines that the MB parameters from the picture B8 when the counter number is 3 and the pictures B6, B7, and B9 temporally continuous to the picture B8 to the picture Pa that is temporally later are invalid. Then, the MB parameters for other pictures are determined to be valid.

そして、制御部41は、無効と判定されたMBパラメータに対応するピクチャについてはMBパラメータ計算部36で計算して得たMBパラメータを用いてエンコード部38で再エンコードを行い、有効と判定されたMBパラメータに対応するピクチャについてはデコーダ10からのMBパラメータを用いてエンコード部38で再エンコードを行う。   Then, the control unit 41 re-encodes the picture corresponding to the MB parameter determined to be invalid by the encoding unit 38 using the MB parameter calculated by the MB parameter calculation unit 36, and is determined to be valid. The picture corresponding to the MB parameter is re-encoded by the encoding unit 38 using the MB parameter from the decoder 10.

すなわち、制御部41は、デコーダ10から入力されたMBパラメータが無効であるピクチャB6〜Paまでについてはスイッチ部37が端子aと接続するように制御し、可変長復号部12で生成されエンコーダ30に入力されたMBパラメータを用いず、MBパラメータ計算部36で計算したMBパラメータ(picture_coding_type)を用いてエンコード部38で動きベクトルの予測等の処理を行ってエンコードを行うようにスイッチ部37を制御する。   That is, the control unit 41 controls the switch unit 37 to be connected to the terminal a for the pictures B6 to Pa for which the MB parameter input from the decoder 10 is invalid, and is generated by the variable length decoding unit 12 and encoded by the encoder 30. The switch unit 37 is controlled so that the encoding is performed by the encoding unit 38 using the MB parameter (picture_coding_type) calculated by the MB parameter calculation unit 36 without using the MB parameter input to To do.

一方、制御部41は、デコーダ10から入力されたMBパラメータが有効であるピクチャについては、可変長復号部12からスイッチ部37に入力されたMBパラメータを用いてエンコード部38で動きベクトルの予測等の処理を行ってエンコードを行うように制御する。   On the other hand, for the picture for which the MB parameter input from the decoder 10 is valid, the control unit 41 uses the MB parameter input from the variable length decoding unit 12 to the switch unit 37 to predict the motion vector in the encoding unit 38. Control is performed to perform encoding.

そして、エンコーダ30は、エンコード部38でエンコード等をすることで生成したビットストリームを、図6(l)に示すように、図6(f)に示す画像データ入力の入力タイミングに対して3ピクチャ時間遅延してピクチャ時間t5〜t18に亘りピクチャI2,B0,B1,P5,B3,B4,P8,B6,B7,Pa,B9,Pd,Bb,Bcの順に出力する。   Then, the encoder 30 converts the bit stream generated by encoding or the like in the encoding unit 38 into three pictures with respect to the input timing of the image data input shown in FIG. 6 (f), as shown in FIG. 6 (l). The pictures are output in the order of pictures I2, B0, B1, P5, B3, B4, P8, B6, B7, Pa, B9, Pd, Bb, and Bc over time t5 to t18.

ここで、エンコーダ30側ではエンコードするのに要するピクチャ時間分だけピクチャ層の符号化パラメータをメモリ42でバッファリングする必要がある。そして、本例において、制御部41は、M=3のGOPで構成されるビットストリームを出力するとき、画像データの入力タイミングに対して3ピクチャ時間分(t2〜t4)だけ遅延させて出力するように制御する。   Here, on the encoder 30 side, it is necessary to buffer the coding parameters of the picture layer in the memory 42 for the picture time required for encoding. In this example, when outputting a bit stream composed of M = 3 GOPs, the control unit 41 outputs the bit stream delayed by three picture times (t2 to t4) with respect to the input timing of the image data. To control.

このような処理を行う画像処理システム1によれば、Mが3以下のGOPの画像データに対応したエンコーダ30において、Mが3以上のGOPの画像データがデコーダ10から入力されたときにはBピクチャをPピクチャに変更してMが3以下のGOPの画像データに変更しても、デコーダ10からの符号化パラメータに代えてMBパラメータ計算部36で計算した符号化パラメータを用いることにより正確に再エンコードを行うことができる。   According to the image processing system 1 that performs such processing, when GOP image data with M equal to or greater than 3 is input from the decoder 10 in the encoder 30 corresponding to GOP image data with M equal to or less than 3, a B picture is displayed. Even if the picture is changed to a P picture and changed to GOP image data with M of 3 or less, the encoding parameter calculated by the MB parameter calculation unit 36 is used in place of the encoding parameter from the decoder 10 to accurately re-encode. It can be performed.

すなわち、この画像処理システム1によれば、デコーダ10から入力する符号化パラメータがエンコーダ30で符号化することができる範囲外であっても、MBパラメータ計算部36で計算した符号化パラメータを用いることにより、符号化パラメータを変更して再エンコードを行うことができる。   That is, according to this image processing system 1, even if the encoding parameter input from the decoder 10 is outside the range that can be encoded by the encoder 30, the encoding parameter calculated by the MB parameter calculation unit 36 is used. Thus, re-encoding can be performed by changing the encoding parameter.

また、エンコーダ30は、デコーダ10から入力されたMBパラメータのうち量子化スケールを使用して再エンコードを行った場合であっても、エンコード部38で再エンコードした各ピクチャについての平均量子化スケールを計算する処理を行う。このとき、エンコーダ30では、MBパラメータのうち、量子化スケールが有効であることを示すフラグを検出し、エラーフラグのない有効な量子化スケールのみを用いて各ピクチャについての量子化スケールを計算する処理を行う。このように計算した平均量子化スケールは、レートコントロールに応じて可変長符号化部39で行う符号化の符号化難易度を学習するときに用いられる。これにより、エンコーダ30は、デコーダ10から入力される量子化スケールでエンコードを行う処理モードから、MBパラメータ計算部36で量子化スケールを計算してエンコードを行う処理モードに変更したとき、上述のように計算した平均量子化スケールを用いた学習を可変長符号化部39で再符号化を行うときのレートコントロールに生かすことができる。   Also, the encoder 30 sets the average quantization scale for each picture re-encoded by the encoding unit 38 even when re-encoding is performed using the quantization scale among the MB parameters input from the decoder 10. Perform the calculation process. At this time, the encoder 30 detects a flag indicating that the quantization scale is valid among the MB parameters, and calculates the quantization scale for each picture using only the effective quantization scale without an error flag. Process. The average quantization scale calculated in this way is used when learning the encoding difficulty level of encoding performed by the variable length encoding unit 39 in accordance with rate control. As a result, when the encoder 30 changes from the processing mode in which encoding is performed with the quantization scale input from the decoder 10 to the processing mode in which the MB parameter calculation unit 36 calculates the quantization scale and performs encoding, as described above. The learning using the average quantization scale calculated in (5) can be used for rate control when re-encoding is performed by the variable-length encoding unit 39.

なお、本発明を適用した画像処理システム1の説明においては、可変長復号部12で生成するパラメータ判定情報をピクチャ層以上の階層及びMB層について生成するときの一例について説明したが、これに限らず、例えばMPEG規格に準拠したGOP層やスライス層等の他の階層(レイヤー)についてパラメータ判定情報を生成しても良い。これにより、画像処理システム1は、エンコーダ30で再エンコードを行うとき、上記各階層に対応したパラメータ判定情報を参照して、デコーダ10からの符号化パラメータを用いて再エンコードを行うか、各階層における符号化パラメータをMBパラメータ計算部36で生成して再エンコードを行うかを制御部41により判定して、正確な再エンコードを行うことができる。   In the description of the image processing system 1 to which the present invention is applied, an example has been described in which the parameter determination information generated by the variable length decoding unit 12 is generated for the layer higher than the picture layer and the MB layer. Instead, for example, parameter determination information may be generated for other layers (layers) such as a GOP layer and a slice layer conforming to the MPEG standard. As a result, when the image processing system 1 performs re-encoding with the encoder 30, the image processing system 1 refers to the parameter determination information corresponding to each of the above layers and performs re-encoding using the encoding parameters from the decoder 10, or each layer The control unit 41 determines whether the encoding parameter is generated by the MB parameter calculation unit 36 and re-encoding is performed, and accurate re-encoding can be performed.

更に、本発明を適用した画像処理システム1においては、パラメータ判定情報を可変長復号部12で生成して制御部41に出力する一例について説明したが、これに限らず、画像データ中のブランキング区間やクロマ信号のLSB(LeastSignificant Bit)等の有効な画像データでない信号部分に書き込んでデコーダ10からエンコーダ30に入力しても良い。このとき、可変長復号部12は、パラメータ判定情報のみならず、ピクチャ層以上の符号化パラメータ及びMBパラメータも画像データ中の有効な部分以外に書き込んであることが望ましい。   Furthermore, in the image processing system 1 to which the present invention is applied, an example in which the parameter determination information is generated by the variable length decoding unit 12 and output to the control unit 41 has been described. However, the present invention is not limited thereto, and blanking in image data is performed. It may be written in a signal portion that is not valid image data, such as a section or a LSB (Least Significant Bit) of a chroma signal, and input from the decoder 10 to the encoder 30. At this time, it is desirable that the variable length decoding unit 12 writes not only the parameter determination information but also an encoding parameter and an MB parameter of the picture layer or more in an area other than an effective part in the image data.

つぎに、本発明を適用した他の画像処理システム100について説明する。この画像処理システムは、入力されるビットストリームを画像データにまでは復号しないで、その途中の符号化情報まで復号して、当該符号化情報を用いて再エンコードを行う。   Next, another image processing system 100 to which the present invention is applied will be described. This image processing system does not decode the input bit stream into image data, but decodes the encoded information in the middle, and performs re-encoding using the encoded information.

この画像処理システム100は、図7に示すように、入力端子101を介してビットストリームS51が入力されるバッファ102と、バッファ102からのビットストリームS51について可変長復号を行って量子化DCT係数からなる画像データとする可変長復号部103と、可変長復号部103からの画像データS52を逆量子化部105に出力するとともに及び画像データS52以外の情報S53を遅延処理部109に出力するスイッチ部104と、スイッチ部104からの画像データS52に逆量子化処理を行ってDCT係数からなる画像データとする逆量子化部105と、逆量子化部105からの画像データについて量子化処理を行って量子化DCT係数からなる画像データS54とする量子化部106と、可変長復号部103からの量子化パラメータに基づいて量子化部106の量子化処理を制御する量子化コントロール部107と、可変長復号部103からのパラメータ判定情報に基づいて符号化パラメータを生成するパラメータ発生部108と、スイッチ部104から量子化DCT係数以外の情報S53が入力される遅延処理部109と、量子化部106からの画像データS54、遅延処理部109で遅延処理がなされた情報S53、パラメータ発生部108で生成した符号化パラメータのいずれかを出力するように制御されるスイッチ部110と、スイッチ部110からの画像データについて可変長符号化処理を施してビットストリームS55を生成する可変長符号化部111と、バッファ11からのビットストリームを一旦格納して出力端子113を介して外部に出力するバッファ112とを備える。   As shown in FIG. 7, the image processing system 100 performs variable-length decoding on the buffer 102 to which the bit stream S51 is input via the input terminal 101 and the bit stream S51 from the buffer 102 to obtain the quantized DCT coefficient. A variable-length decoding unit 103 configured as image data, and a switch unit that outputs the image data S52 from the variable-length decoding unit 103 to the inverse quantization unit 105 and outputs information S53 other than the image data S52 to the delay processing unit 109 104, the inverse quantization unit 105 which performs inverse quantization processing on the image data S52 from the switch unit 104 to obtain image data composed of DCT coefficients, and performs quantization processing on the image data from the inverse quantization unit 105 A quantizing unit 106 that generates image data S54 including quantized DCT coefficients, and a variable-length decoding unit 103 A quantization control unit 107 that controls the quantization processing of the quantization unit 106 based on the quantization parameter, a parameter generation unit 108 that generates an encoding parameter based on the parameter determination information from the variable length decoding unit 103, The delay processing unit 109 receives information S53 other than the quantized DCT coefficient from the switch unit 104, the image data S54 from the quantization unit 106, the information S53 subjected to delay processing by the delay processing unit 109, and the parameter generation unit 108 The switch unit 110 that is controlled to output any of the encoding parameters generated in the above, and the variable length encoding unit 111 that performs variable length encoding processing on the image data from the switch unit 110 and generates the bitstream S55. And once storing the bit stream from the buffer 11 via the output terminal 113 And a buffer 112 which outputs the section.

このように構成された画像処理システム100において、可変長復号部103は、上述した可変長復号部12と同様の処理を行い、バッファ102からのビットストリームに例えばマクロブロック(MB)単位で可変長復号処理を施すことで量子化DCT変換係数からなる画像データを求めてスイッチ部104に出力する。   In the image processing system 100 configured as described above, the variable length decoding unit 103 performs the same processing as the variable length decoding unit 12 described above, and converts the bit stream from the buffer 102 to a variable length, for example, in units of macroblocks (MB). By performing decoding processing, image data composed of quantized DCT transform coefficients is obtained and output to the switch unit 104.

また、この可変長復号部103は、上述のように可変長復号処理を行うとともに、各MB層について付加されたMBパラメータ(MB_parameters)及びピクチャ層以上の符号化パラメータ(Sequence_GOP_Picure_parameters)を検出してスイッチ部104に出力する。更に、可変長復号部102は、ピクチャ層の符号化パラメータ及びMBパラメータが有効か否かを示すパラメータ判定情報(picture_mb_parameters_valid)を生成してパラメータ発生部108及びスイッチ部104に出力する。   Further, the variable length decoding unit 103 performs variable length decoding processing as described above, detects MB parameters (MB_parameters) added for each MB layer, and encoding parameters (Sequence_GOP_Picure_parameters) higher than the picture layer to switch Output to the unit 104. Furthermore, the variable length decoding unit 102 generates parameter determination information (picture_mb_parameters_valid) indicating whether or not the encoding parameter and MB parameter of the picture layer are valid, and outputs them to the parameter generation unit 108 and the switch unit 104.

スイッチ部104は、図示しない制御部から制御信号が入力されることで端子A又は端子Bと接続されるように制御されて動作する。このスイッチ部104は、端子Aと接続することで可変長復号部103からの画像データを逆量子化部105に出力するとともに、端子Bと接続することで可変長復号部103からの符号化パラメータを遅延処理部109に出力する。   The switch unit 104 is controlled to operate so as to be connected to the terminal A or the terminal B when a control signal is input from a control unit (not shown). The switch unit 104 is connected to the terminal A to output the image data from the variable length decoding unit 103 to the inverse quantization unit 105, and is connected to the terminal B to be encoded parameters from the variable length decoding unit 103. Is output to the delay processing unit 109.

逆量子化部105は、スイッチ部104からの量子化DCT変換係数からなる画像データについて例えば8×8画素ブロックごとに逆量子化を行う。このとき、逆量子化部14は、画像データに量子化ステップを乗算することでDCT変換係数とする逆量子化処理を行って量子化部106に出力する。   The inverse quantization unit 105 performs inverse quantization on the image data including the quantized DCT transform coefficient from the switch unit 104, for example, for each 8 × 8 pixel block. At this time, the inverse quantization unit 14 performs an inverse quantization process by multiplying the image data by a quantization step to obtain a DCT transform coefficient, and outputs the result to the quantization unit 106.

量子化部106は、逆量子化部105からのDCT変換係数からなる画像データについて量子化を行うことで量子化DCT変換係数からなる画像データS54にしてスイッチ部110に出力する。   The quantization unit 106 quantizes the image data composed of the DCT transform coefficients from the inverse quantization unit 105 and outputs the image data S54 composed of the quantized DCT transform coefficients to the switch unit 110.

遅延処理部109は、逆量子化部105及び量子化部106における処理に要する時間だけスイッチ部110への入力タイミングを遅延させてスイッチ部110に符号化パラメータS53を出力する。   The delay processing unit 109 delays the input timing to the switch unit 110 by the time required for processing in the inverse quantization unit 105 and the quantization unit 106, and outputs the encoding parameter S53 to the switch unit 110.

量子化コントロール部107は、可変長復号部103からの量子化パラメータに基づいて、バッファ112のビット占有量を計算し、バッファ112から所定のビットレート以下のビットストリームS55が出力されるように、量子化部106で行う量子化処理における量子化スケールを指定する量子化制御信号を生成する。   The quantization control unit 107 calculates the bit occupation amount of the buffer 112 based on the quantization parameter from the variable length decoding unit 103, and outputs a bit stream S55 having a predetermined bit rate or less from the buffer 112. A quantization control signal that specifies a quantization scale in the quantization process performed by the quantization unit 106 is generated.

なお、この量子化コントロール部107は、エンコード及びデコードするときに原理上発生してしまう再生画像の動き補償によるビットストリームS55のミスマッチエラーが目立たないように量子化スケールを制御することが望ましい。   It is desirable that the quantization control unit 107 controls the quantization scale so that a mismatch error of the bit stream S55 due to motion compensation of a reproduced image that occurs in principle when encoding and decoding is not conspicuous.

パラメータ発生部108は、可変長復号部103からパラメータ判定情報に基づいて符号化パラメータを生成する。すなわち、このパラメータ発生部108は、パラメータ判定情報により、エラーが発生している階層における符号化パラメータを生成してスイッチ部110に出力する。   The parameter generation unit 108 generates an encoding parameter based on the parameter determination information from the variable length decoding unit 103. That is, the parameter generation unit 108 generates an encoding parameter in a layer where an error has occurred based on the parameter determination information, and outputs it to the switch unit 110.

スイッチ部110は、可変長復号部103からのパラメータ判定情報及び図示しない制御部から制御信号が入力されることで端子A、端子B又は端子Cと接続され出力タイミングが制御されて動作する。このスイッチ部110は、パラメータ判定情報により可変長復号部103で生成した符号化パラメータが有効と判定したときには遅延処理部109からの符号化パラメータを可変長符号化部111に出力するように端子Bと接続され、パラメータ判定情報により可変長復号部103で生成した符号化パラメータが無効と判定したときにはパラメータ発生部108からの符号化パラメータを可変長符号化部111に出力するように端子Cと接続される。   The switch unit 110 is connected to the terminal A, the terminal B, or the terminal C when the parameter determination information from the variable length decoding unit 103 and the control signal from the control unit (not shown) are input, and operates with the output timing controlled. The switch unit 110 is configured to output a coding parameter from the delay processing unit 109 to the variable length coding unit 111 when the coding parameter generated by the variable length decoding unit 103 is determined to be valid based on the parameter determination information. Connected to the terminal C so that the encoding parameter from the parameter generation unit 108 is output to the variable length encoding unit 111 when the encoding parameter generated by the variable length decoding unit 103 is determined to be invalid according to the parameter determination information. Is done.

可変長符号化部111は、スイッチ部110からの画像データを可変長符号化してビットストリームS55を生成してバッファ112に出力し、目的とするビットレートで出力端子113を介してビットストリームを出力する。   The variable length coding unit 111 performs variable length coding on the image data from the switch unit 110 to generate a bit stream S55 and outputs the bit stream to the buffer 112, and outputs the bit stream via the output terminal 113 at a target bit rate. To do.

このように構成された画像処理システム100において、入力端子101から入力されたビットストリームにシンタクスエラーが発生しないときの動作について説明する。   An operation when a syntax error does not occur in the bit stream input from the input terminal 101 in the image processing system 100 configured as described above will be described.

このとき、可変長復号部103で生成されるパラメータ判定情報のフラグは、表1を参照して明らかなように“11”となる。すなわち、可変長復号部103で可変長復号されたビットストリームのピクチャ層及びMBパラメータにはエラーが発生しておらず有効である。したがって、この場合においては、可変長復号部103で生成した符号化パラメータを用いて可変長符号化部111で可変長符号化を行うことでビットレートを変換するように再エンコードをしてビットストリームS55を生成する。   At this time, the flag of the parameter determination information generated by the variable length decoding unit 103 is “11” as is apparent with reference to Table 1. That is, no error has occurred in the picture layer and MB parameter of the bit stream that has been variable-length decoded by the variable-length decoding unit 103 and is effective. Therefore, in this case, the bit stream is re-encoded so as to convert the bit rate by performing the variable length encoding by the variable length encoding unit 111 using the encoding parameter generated by the variable length decoding unit 103. S55 is generated.

次に、入力端子101から入力されたビットストリームにシンタクスエラーが発生した場合の画像処理システム100の動作について説明する。   Next, an operation of the image processing system 100 when a syntax error occurs in the bit stream input from the input terminal 101 will be described.

入力されたビットストリームにシンタクスエラーが発生すると、可変長復号部103は、パラメータ判定情報のフラグが“00”又は“10”となる。このとき、パラメータ発生部108は、エラーがIピクチャ又はPピクチャの位置で発生したときには、Pピクチャのピクチャヘッダを出力し、スキップマクロブロックとする旨のMBパラメータをスイッチ部110に出力する。   When a syntax error occurs in the input bitstream, the variable length decoding unit 103 sets the parameter determination information flag to “00” or “10”. At this time, when an error occurs at the position of the I picture or P picture, the parameter generation unit 108 outputs the picture header of the P picture and outputs the MB parameter indicating that it is a skip macroblock to the switch unit 110.

また、パラメータ発生部108は、エラーがBピクチャの位置で発生したときにはBピクチャのピクチャヘッダを出力し、動きベクトルが“0”でありDCT係数を持たないことを示すMBパラメータをスイッチ部110に出力する。そして、スイッチ部110では、パラメータ判定情報に基づいて、端子Cに入力された符号化パラメータとともに、端子Aに入力された符号化パラメータを可変長符号化部111に出力し、ビットレートを変換するように再エンコードをしてビットストリームS55を生成する。   The parameter generator 108 outputs a picture header of the B picture when an error occurs at the position of the B picture, and sends an MB parameter indicating that the motion vector is “0” and has no DCT coefficient to the switch unit 110. Output. Based on the parameter determination information, the switch unit 110 outputs the coding parameter input to the terminal A together with the coding parameter input to the terminal C to the variable length coding unit 111, and converts the bit rate. The bit stream S55 is generated by re-encoding as described above.

次に、入力端子101から入力されたビットストリームにMB層のシンタクスエラーが発生した場合の画像処理システム100の動作について説明する。   Next, the operation of the image processing system 100 when an MB layer syntax error occurs in the bitstream input from the input terminal 101 will be described.

この画像処理システム100において、パラメータ判定情報により、MB層のエラーがIピクチャの中で発生したときには、パラメータ発生部108は、エラーが発生したマクロブロックと隣接するマクロブロックについての符号化パラメータをエラーが発生したマクロブロックの符号化パラメータとしてスイッチ部110に出力する。   In this image processing system 100, when an MB layer error occurs in an I picture according to parameter determination information, the parameter generation unit 108 sets an encoding parameter for a macroblock adjacent to the errored macroblock to an error. Is output to the switch unit 110 as an encoding parameter of the macroblock in which the error occurs.

また、エラーがPピクチャの中で発生した場合には、パラメータ発生部108は、スキップマクロブロックとする旨のMBパラメータをスイッチ部110に出力する。   When an error occurs in the P picture, the parameter generator 108 outputs an MB parameter indicating that it is a skip macroblock to the switch unit 110.

更に、エラーがBピクチの中で発生したときには、パラメータ発生部108は、動きベクトルが“0”であり、DCT係数を持たないことを示すMBパラメータをスイッチ部110に出力する。そして、スイッチ部110では、パラメータ判定情報に基づいて、端子Cに入力された符号化パラメータとともに、端子Aに入力された符号化パラメータを可変長符号化部111に出力し、ビットレートを変換するように再エンコードをしてビットストリームS55を生成する。   Further, when an error occurs in the B picture, the parameter generation unit 108 outputs an MB parameter indicating that the motion vector is “0” and has no DCT coefficient to the switch unit 110. Based on the parameter determination information, the switch unit 110 outputs the coding parameter input to the terminal A together with the coding parameter input to the terminal C to the variable length coding unit 111, and converts the bit rate. The bit stream S55 is generated by re-encoding as described above.

このように構成された画像処理システム100は、入力されたビットストリームにシンタクスエラーが発生する場合に置いても、可変長復号部103で生成したパラメータ判定情報に基づいて、パラメータ発生部108でピクチャ層及びMBパラメータを生成するので、シンタクスエラーを修正したビットストリームを生成するように再エンコードして出力端子113から出力することができる。   In the image processing system 100 configured as described above, even when a syntax error occurs in the input bit stream, the parameter generation unit 108 uses the parameter determination information generated by the variable length decoding unit 103 to generate a picture. Since the layer and the MB parameter are generated, it can be re-encoded so as to generate a bit stream in which the syntax error is corrected and output from the output terminal 113.

本発明を適用した画像処理システムの構成について示すブロック図である。It is a block diagram shown about the structure of the image processing system to which this invention is applied. (a)は水平方向におけるサイズx×垂直方向におけるサイズyの画像データを示す図であり、(b)は画像データにダミーデータを付加する処理について説明するための図であり、(c)は画像データからダミーデータを除去する処理について説明するための図である。(A) is a figure which shows the image data of the size x in the horizontal direction x the size y in the vertical direction, (b) is a figure for demonstrating the process which adds dummy data to image data, (c). It is a figure for demonstrating the process which removes dummy data from image data. 本発明を適用した画像処理システムにおいて、デコーダからピクチャパラメータ、パラメータ判定情報等がエンコーダに入力されるときの処理タイミングを説明するためのタイミングチャートである。5 is a timing chart for explaining processing timing when picture parameters, parameter determination information, and the like are input from the decoder to the encoder in the image processing system to which the present invention is applied. 本発明を適用した画像処理システムにおいて、デコーダからMBパラメータ等がエンコーダに入力されるときの処理タイミングを説明するためのタイミングチャートである。5 is a timing chart for explaining processing timing when MB parameters and the like are input from the decoder to the encoder in the image processing system to which the present invention is applied. 本発明を適用した画像処理システムにおいて、デコーダからエンコーダに入力された符号化パラメータが無効であるときの処理タイミングについて説明するためのタイミングチャートである。6 is a timing chart for explaining processing timing when an encoding parameter input from a decoder to an encoder is invalid in an image processing system to which the present invention is applied. ピクチャの表示順に従ってエンコーダに入力されるpicture_coding_typeのMBパラメータを参照して、Bピクチャの数をカウント数に応じてBピクチャをPピクチャと変更してエンコードを行うときの処理タイミングについて説明するためのタイミングチャートである。Referring to the picture_coding_type MB parameter input to the encoder according to the display order of pictures, the processing timing when encoding is performed by changing the number of B pictures to P pictures according to the count number It is a timing chart. 本発明を適用した他の画像処理システムについて説明するための図である。It is a figure for demonstrating the other image processing system to which this invention is applied.

符号の説明Explanation of symbols

1,100 画像処理システム、10 デコーダ、30 エンコーダ   1,100 image processing system, 10 decoder, 30 encoder

Claims (17)

入力されたビットストリームを復号して画像データを生成する復号手段と、
上記復号手段で復号された画像データを再符号化するときに用いる各階層についての符号化パラメータを生成する符号化パラメータ生成手段と、
画像データの再符号化を行うときに上記符号化パラメータ生成手段により生成された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成するエラーフラグ生成手段と
を備える復号装置。
Decoding means for decoding the input bitstream to generate image data;
Encoding parameter generation means for generating an encoding parameter for each layer used when re-encoding the image data decoded by the decoding means;
Error flag generation means for generating an error flag indicating whether or not the encoding parameter for each layer generated by the encoding parameter generation means can be used effectively when re-encoding image data; A decoding device provided.
上記エラーフラグ生成手段は、MPEG2規格に準拠したピクチャ層及びマクロブロック層の符号化パラメータについてエラーフラグを生成する請求項1記載の復号装置。   2. The decoding apparatus according to claim 1, wherein the error flag generating means generates an error flag for encoding parameters of a picture layer and a macroblock layer conforming to the MPEG2 standard. 入力されたビットストリームを復号して画像データを生成するとともに、復号された上記画像データを再符号化するときに用いる各階層についての符号化パラメータを生成し、
画像データの再符号化を行うときに各階層ごとの上記符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成する復号方法。
The input bitstream is decoded to generate image data, and the encoding parameter for each layer used when re-encoding the decoded image data is generated,
A decoding method for generating an error flag indicating whether or not the above encoding parameters for each layer can be used effectively when re-encoding image data.
MPEG2規格に準拠したピクチャ層及びマクロブロック層の符号化パラメータについてエラーフラグを生成する請求項3記載の復号方法。   4. The decoding method according to claim 3, wherein an error flag is generated for coding parameters of a picture layer and a macroblock layer in conformity with the MPEG2 standard. 復号装置から入力された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグに基づいて、復号装置から入力された画像データの再符号化を行うときに上記符号化パラメータを有効に用いることができるか否かを判定する判定手段と、
復号装置からの符号化パラメータが有効でない旨の上記判定手段からの判定結果に基づいて、復号装置からの画像データを用いて符号化パラメータを計算する符号化パラメータ計算手段と、
復号装置からの符号化パラメータが有効であると判定手段により判定されたときには復号装置から入力された符号化パラメータを用いて画像データの符号化を行い、復号装置からの符号化パラメータが有効でないと判定手段により判定されたときには上記符号化パラメータ計算手段で生成された符号化パラメータを用いて画像データの符号化を行う符号化手段と
を備える符号化装置。
Based on an error flag indicating whether or not the encoding parameter for each layer input from the decoding device can be used effectively, the above encoding is performed when re-encoding the image data input from the decoding device. Determining means for determining whether the parameter can be used effectively;
An encoding parameter calculation unit that calculates an encoding parameter using image data from the decoding device based on a determination result from the determination unit that the encoding parameter from the decoding device is not valid;
When the determination unit determines that the encoding parameter from the decoding device is valid, the image data is encoded using the encoding parameter input from the decoding device, and the encoding parameter from the decoding device is not effective. An encoding device comprising: encoding means for encoding image data using the encoding parameter generated by the encoding parameter calculating means when determined by the determining means.
エラーフラグは、MPEG2規格に準拠したピクチャ層及びマクロブロック層の符号化パラメータについてのフラグである請求項5記載の符号化装置。   6. The encoding apparatus according to claim 5, wherein the error flag is a flag for encoding parameters of a picture layer and a macroblock layer conforming to the MPEG2 standard. 復号装置からのエラーフラグが付加されているピクチャを示す画像データのピクチャタイプを判定するピクチャタイプ判定手段を備え、上記判定手段は、上記ピクチャタイプ判定手段からのエラーフラグが付加されているピクチャを示す画像データのピクチャタイプに基づいて、当該エラーフラグが付加されているピクチャを用いて生成されたピクチャを示す画像データについての符号化パラメータを有効でないと判定することを特徴とする請求項5記載の符号化装置。   Picture type determination means for determining a picture type of image data indicating a picture to which an error flag from a decoding device is added, wherein the determination means selects a picture to which an error flag from the picture type determination means is added; 6. The coding parameter for image data indicating a picture generated using a picture to which the error flag is added is determined to be invalid based on a picture type of the indicated image data. Encoding device. 復号装置から入力された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグに基づいて、復号装置から入力された画像データの再符号化を行うときに上記符号化パラメータを有効に用いることができるか否かを判定する判定処理と、
復号装置からの符号化パラメータが有効でない旨の判定結果に基づいて、復号装置からの画像データを用いて符号化パラメータを計算する符号化パラメータ計算処理と、
復号装置からの符号化パラメータが有効であると判定されたときには復号装置から入力された符号化パラメータを用いて画像データの符号化を行い、復号装置からの符号化パラメータが有効でないと判定されたときには上記符号化パラメータ計算処理で生成した符号化パラメータを用いて画像データの符号化を行う符号化処理と
を有する符号化方法。
Based on an error flag indicating whether or not the encoding parameter for each layer input from the decoding device can be used effectively, the above encoding is performed when re-encoding the image data input from the decoding device. A determination process for determining whether the parameter can be used effectively;
A coding parameter calculation process for calculating a coding parameter using image data from the decoding device based on a determination result that the coding parameter from the decoding device is not valid;
When it is determined that the encoding parameter from the decoding device is valid, the image data is encoded using the encoding parameter input from the decoding device, and it is determined that the encoding parameter from the decoding device is not effective. An encoding method comprising: an encoding process for encoding image data using the encoding parameter generated by the encoding parameter calculation process.
エラーフラグは、MPEG2規格に準拠したピクチャ層及びマクロブロック層の符号化パラメータについてのフラグである請求項8記載の符号化方法。   9. The encoding method according to claim 8, wherein the error flag is a flag for encoding parameters of a picture layer and a macroblock layer compliant with the MPEG2 standard. 復号装置からのエラーフラグが付加されているピクチャを示す画像データのピクチャタイプを判定するピクチャタイプ判定処理を有し、上記判定処理は、上記ピクチャタイプ判定処理で判定されたエラーフラグが付加されているピクチャを示す画像データのピクチャタイプに基づいて、当該エラーフラグが付加されているピクチャを用いて生成されたピクチャを示す画像データについての符号化パラメータを有効でないと判定することを特徴とする請求項8記載の符号化方法。   A picture type determination process for determining a picture type of image data indicating a picture to which an error flag from the decoding device is added, and the determination process includes the error flag determined in the picture type determination process The coding parameter for the image data indicating the picture generated using the picture to which the error flag is added is determined to be invalid based on the picture type of the image data indicating the current picture. Item 9. The encoding method according to Item 8. 入力されたビットストリームを復号して画像データを生成する復号手段と、上記復号手段で復号された画像データを再符号化するときに用いる各階層についての符号化パラメータを生成する符号化パラメータ生成手段と、画像データの再符号化を行うときに上記符号化パラメータ生成手段により生成された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成するエラーフラグ生成手段とを備える復号装置と、
上記復号装置から入力された各階層ごとのエラーフラグに基づいて、再符号化を行うときに上記符号化パラメータを有効に用いることができるか否かを判定する判定手段と、上記復号装置からの符号化パラメータが有効でない旨の上記判定手段からの判定結果に基づいて、上記復号装置からの画像データを用いて符号化パラメータを計算する符号化パラメータ計算手段と、上記復号装置からの符号化パラメータが有効であると判定手段により判定されたときには上記復号装置から入力された符号化パラメータを用いて画像データの符号化を行い、上記復号装置からの符号化パラメータが有効でないと判定手段により判定されたときには上記符号化パラメータ計算手段で生成された符号化パラメータを用いて画像データの符号化を行う符号化手段とを備える符号化装置と
を備える画像処理システム。
Decoding means for decoding input bitstream to generate image data, and encoding parameter generation means for generating encoding parameters for each layer used when re-encoding image data decoded by the decoding means And an error flag generation means for generating an error flag indicating whether or not the encoding parameter for each layer generated by the encoding parameter generation means can be used effectively when re-encoding the image data A decoding device comprising:
A determination means for determining whether or not the encoding parameter can be used effectively when re-encoding based on an error flag for each layer input from the decoding device; An encoding parameter calculation unit that calculates an encoding parameter using image data from the decoding device based on a determination result from the determination unit that the encoding parameter is not valid, and an encoding parameter from the decoding device Is determined to be effective by the determination means, the image data is encoded using the encoding parameter input from the decoding device, and the determination means determines that the encoding parameter from the decoding device is not effective. In such a case, the encoding method for encoding the image data using the encoding parameter generated by the encoding parameter calculation means. Image processing system comprising a coding device comprising a and.
上記エラーフラグ生成手段は、MPEG2規格に準拠したピクチャ層及びマクロブロック層の符号化パラメータについてエラーフラグを生成する請求項11記載の画像処理システム。   12. The image processing system according to claim 11, wherein the error flag generation means generates an error flag for encoding parameters of a picture layer and a macroblock layer that conform to the MPEG2 standard. 上記符号化装置は、上記復号装置からのエラーフラグが付加されているピクチャを示す画像データのピクチャタイプを判定するピクチャタイプ判定手段を備え、上記判定手段は、上記ピクチャタイプ判定手段からのエラーフラグが付加されているピクチャを示す画像データのピクチャタイプに基づいて、当該エラーフラグが付加されているピクチャを用いて生成されたピクチャを示す画像データについての符号化パラメータを有効でないと判定する請求項11記載の画像処理システム。   The encoding device includes a picture type determination unit that determines a picture type of image data indicating a picture to which an error flag from the decoding device is added, and the determination unit includes an error flag from the picture type determination unit And determining that the encoding parameter for the image data indicating the picture generated using the picture to which the error flag is added is not valid based on the picture type of the image data indicating the picture to which the error flag is added. 11. The image processing system according to 11. 入力されたビットストリームを復号して画像データを生成する復号手段と、
上記復号手段からの画像データを逆量子化してDCT変換係数とする逆量子化手段と、
上記逆量子化手段からのDCT変換係数を量子化して画像データとする量子化手段と、
上記復号手段で復号された画像データを再符号化するときに用いる各階層についての符号化パラメータを生成する符号化パラメータ生成手段と、
画像データの再符号化を行うときに上記符号化パラメータ生成手段により生成された各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成するエラーフラグ生成手段と、
上記エラーフラグ生成手段からのエラーフラグに基づいて符号化パラメータを計算する符号化パラメータ計算手段と、
上記符号化パラメータ生成手段又は上記符号化パラメータ計算手段からの符号化パラメータを用いて上記量子化手段からの画像データの符号化を行う上記符号化手段と、
上記エラーフラグ生成手段で生成されたエラーフラグに基づいて符号化パラメータが有効であるときには上記符号化パラメータ生成手段で生成された符号化パラメータを用いて画像データの符号化を行なわせ、上記エラーフラグ生成手段で生成されたエラーフラグに基づいて符号化パラメータが有効でないときには上記符号化パラメータ計算手段で生成された符号化パラメータを用いて画像データの符号化を行わせる制御手段と
を備える徴とする画像処理システム。
Decoding means for decoding the input bitstream to generate image data;
Inverse quantization means for inversely quantizing the image data from the decoding means to obtain DCT transform coefficients;
Quantization means for quantizing the DCT transform coefficient from the inverse quantization means to form image data;
Encoding parameter generation means for generating an encoding parameter for each layer used when re-encoding the image data decoded by the decoding means;
Error flag generating means for generating an error flag indicating whether or not the encoding parameter for each layer generated by the encoding parameter generating means can be used effectively when re-encoding image data;
Coding parameter calculation means for calculating a coding parameter based on the error flag from the error flag generation means;
The encoding means for encoding the image data from the quantizing means using the encoding parameters from the encoding parameter generating means or the encoding parameter calculating means;
When the encoding parameter is valid based on the error flag generated by the error flag generating means, the image data is encoded using the encoding parameter generated by the encoding parameter generating means, and the error flag is set. Control means for encoding image data using the encoding parameter generated by the encoding parameter calculation means when the encoding parameter is not valid based on the error flag generated by the generation means. Image processing system.
上記符号化手段で符号化されたビットストリームを所定のビットレート以下で出力するビデオバッファと、上記ビデオバッファのビット占有量に基づいて、上記ビデオバッファで出力するビットストリームのビットレートを上記所定のビットストリーム以下とするように上記量子化手段で量子化を行うときの量子化ステップを制御する量子化制御信号を出力する量子化制御手段とを備える請求項14記載の画像処理システム。   A video buffer for outputting the bit stream encoded by the encoding means at a predetermined bit rate or less, and a bit rate of the bit stream output by the video buffer based on the bit occupancy of the video buffer. The image processing system according to claim 14, further comprising: a quantization control unit that outputs a quantization control signal for controlling a quantization step when quantization is performed by the quantization unit so as to have a bit stream or less. 入力されたビットストリームを復号して画像データ、上記画像データを再符号化するときに用いる各階層についての符号化パラメータ、上記画像データの再符号化を行うときに各階層ごとの符号化パラメータを有効に用いることができるか否かを示すエラーフラグを生成する復号処理と、
上記画像データを逆量子化してDCT変換係数とする逆量子化処理と、上記DCT変換係数を量子化して画像データとする量子化処理と、
上記エラーフラグに基づいて符号化パラメータを計算する符号化パラメータ計算処理と、上記エラーフラグに基づいて符号化パラメータが有効であるときには復号処理で生成した符号化パラメータを用いて画像データの符号化を行い、上記エラーフラグに基づいて符号化パラメータが有効でないときには上記符号化パラメータ計算処理で生成した符号化パラメータを用いて画像データの符号化を行う符号化処理と
を有する画像処理方法。
Decode the input bitstream to obtain image data, encoding parameters for each layer used when re-encoding the image data, and encoding parameters for each layer when re-encoding the image data A decoding process for generating an error flag indicating whether or not it can be used effectively;
An inverse quantization process for inversely quantizing the image data to obtain a DCT transform coefficient; a quantization process for quantizing the DCT transform coefficient to obtain image data;
Encoding parameter calculation processing for calculating the encoding parameter based on the error flag, and encoding of image data using the encoding parameter generated by the decoding processing when the encoding parameter is valid based on the error flag. And an encoding process for encoding image data using the encoding parameter generated by the encoding parameter calculation process when the encoding parameter is not valid based on the error flag.
符号化されたビットストリームを所定のビットレート以下で出力するビデオバッファのビット占有量に基づいて、上記ビデオバッファで出力するビットストリームのビットレートを上記所定のビットストリーム以下とするように上記量子化処理で量子化を行うときの量子化ステップを制御する請求項16記載の画像処理方法。   Based on the bit occupancy of the video buffer that outputs the encoded bit stream at a predetermined bit rate or lower, the quantization is performed so that the bit rate of the bit stream output from the video buffer is lower than the predetermined bit stream. The image processing method according to claim 16, wherein a quantization step when performing quantization in the processing is controlled.
JP2008137236A 2008-05-26 2008-05-26 Encoding apparatus and method, and image processing system Expired - Fee Related JP4390009B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008137236A JP4390009B2 (en) 2008-05-26 2008-05-26 Encoding apparatus and method, and image processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008137236A JP4390009B2 (en) 2008-05-26 2008-05-26 Encoding apparatus and method, and image processing system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP14398399A Division JP2000333163A (en) 1999-05-24 1999-05-24 Decoder, its method, coder, its method, image processing system and image processing method

Publications (2)

Publication Number Publication Date
JP2008252931A true JP2008252931A (en) 2008-10-16
JP4390009B2 JP4390009B2 (en) 2009-12-24

Family

ID=39977251

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008137236A Expired - Fee Related JP4390009B2 (en) 2008-05-26 2008-05-26 Encoding apparatus and method, and image processing system

Country Status (1)

Country Link
JP (1) JP4390009B2 (en)

Also Published As

Publication number Publication date
JP4390009B2 (en) 2009-12-24

Similar Documents

Publication Publication Date Title
EP2319241B1 (en) Skip modes for inter-layer residual video coding and decoding
RU2659748C2 (en) Syntax and semantics for buffering information to simplify video concatenation
JP3861698B2 (en) Image information encoding apparatus and method, image information decoding apparatus and method, and program
JP2005506815A5 (en)
EP1833256B1 (en) Selection of encoded data, setting of encoded data, creation of recoded data, and recoding method and device
JP2005506815A (en) Method and apparatus for spatially extensible compression
JP2004518342A (en) Scalable video transcoding method and apparatus
KR20060088461A (en) Method and apparatus for deriving motion vectors of macro blocks from motion vectors of pictures of base layer when encoding/decoding video signal
JPH09121358A (en) Picture coding/decoding device and its method
JP2005507589A5 (en)
US7899121B2 (en) Video encoding method, video encoder, and personal video recorder
JP2001145113A (en) Device and method for image information conversion
US6795498B1 (en) Decoding apparatus, decoding method, encoding apparatus, encoding method, image processing system, and image processing method
JP2006279573A (en) Encoder and encoding method, and decoder and decoding method
JP2009290463A (en) Encoding/decoding device, encoding/decoding method, and program
JP2007266749A (en) Encoding method
US6804299B2 (en) Methods and systems for reducing requantization-originated generational error in predictive video streams using motion compensation
JP2002199392A (en) Method and device for encoding image
KR100364748B1 (en) Apparatus for transcoding video
JP4357560B2 (en) Moving picture coding apparatus, moving picture coding method, and moving picture coding program
KR20070081949A (en) Transcoding apparatus and method thereof
JP4390009B2 (en) Encoding apparatus and method, and image processing system
JP2009246489A (en) Video-signal switching apparatus
JP4133581B2 (en) Telop synthesis device, telop synthesis method, and telop synthesis program
JP4399794B2 (en) Image coding apparatus and image coding method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081125

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090126

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090512

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090803

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20090827

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090915

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090928

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

Free format text: PAYMENT UNTIL: 20121016

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121016

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees