JP2013158041A - Transcoder - Google Patents
Transcoder Download PDFInfo
- Publication number
- JP2013158041A JP2013158041A JP2013079401A JP2013079401A JP2013158041A JP 2013158041 A JP2013158041 A JP 2013158041A JP 2013079401 A JP2013079401 A JP 2013079401A JP 2013079401 A JP2013079401 A JP 2013079401A JP 2013158041 A JP2013158041 A JP 2013158041A
- Authority
- JP
- Japan
- Prior art keywords
- quantization step
- value
- transcoder
- step value
- evaluation value
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
本発明は、入力画像を復号画像に復号化して、復号画像を出力画像に符号化するトランスコーダに関する。 The present invention relates to a transcoder that decodes an input image into a decoded image and encodes the decoded image into an output image.
画像圧縮技術は、画像データの伝送負担および記憶負担を低減させるため、広範囲に利用されている。従来の符号化方式としてMPEG2などが存在して、新規の符号化方式としてH.264などが存在する。トランスコーダは、画像データの伝送負担および記憶負担を低減させるため、異なるまたは同一の符号化方式間における符号変換を実行する。 Image compression technology is widely used to reduce the transmission load and storage load of image data. MPEG2 or the like exists as a conventional encoding method, and H.264 is a new encoding method. H.264 exists. The transcoder performs code conversion between different or the same encoding methods in order to reduce the transmission load and storage load of image data.
すなわち、トランスコーダは、まず、第1符号化方式による圧縮画像を入力して、第1符号化方式により伸張画像を生成する。そして、トランスコーダは、次に、第2符号化方式により伸張画像を圧縮して、第2符号化方式による圧縮画像を出力する。 That is, the transcoder first inputs a compressed image by the first encoding method, and generates a decompressed image by the first encoding method. The transcoder then compresses the decompressed image by the second encoding method and outputs a compressed image by the second encoding method.
ここで、トランスコーダは、画像データの伝送負担および記憶負担を低減させるため、出力ビットレートを目標ビットレートまで低くする必要がある。しかし、トランスコーダは、画像データの画質低下を低減させるため、第2符号化方式における量子化ステップ値を、第1符号化方式における量子化ステップ値から過度に大きくしない必要がある。 Here, the transcoder needs to reduce the output bit rate to the target bit rate in order to reduce the transmission burden and storage burden of image data. However, the transcoder needs not to excessively increase the quantization step value in the second encoding method from the quantization step value in the first encoding method in order to reduce deterioration in image quality of the image data.
特許文献1のトランスコーダは、画像データの画質低下を低減させるとともに、画像データの伝送負担および記憶負担を低減させる。すなわち、トランスコーダは、各マクロブロックについて、空間/時間方向の変化度合を算出する。そして、トランスコーダは、各マクロブロックについて、空間/時間方向の変化度合に基づいて、第1符号化方式における量子化ステップ値を補正して、第2符号化方式における量子化ステップ値を決定する。
The transcoder disclosed in
すなわち、トランスコーダは、画像データの画質を高くする必要がある画像領域については、第2符号化方式による圧縮画像の符号量を多く割り振る。そして、トランスコーダは、画像データの画質を高くする必要がない画像領域については、第2符号化方式による圧縮画像の符号量を多く割り振らない。そのため、トランスコーダは、第2符号化方式による圧縮画像全体の符号量を低減させることができる。 That is, the transcoder allocates a large amount of code of a compressed image by the second encoding method for an image area where the image quality of the image data needs to be increased. Then, the transcoder does not allocate a large amount of code of the compressed image by the second encoding method for an image area where it is not necessary to improve the image quality of the image data. Therefore, the transcoder can reduce the code amount of the entire compressed image by the second encoding method.
特許文献1のトランスコーダは、画像データの画質低下を低減させるとともに、画像データの伝送負担および記憶負担を低減させる。すなわち、トランスコーダは、各マクロブロックについて、空間/時間方向の変化度合に基づいて、第1符号化方式における量子化ステップ値を補正して、第2符号化方式における量子化ステップ値を決定する。しかし、トランスコーダは、他のパラメータによる評価を加味することにより、画質調整および符号量調整をさらにきめ細やかにできることが期待される。
The transcoder disclosed in
そこで、本発明は前記問題点に鑑み、入力画像を復号画像に復号化して、復号画像を出力画像に符号化するトランスコーダにおいて、画質調整および符号量調整をよりきめ細やかにできる技術を提供することを目的とする。 Therefore, in view of the above problems, the present invention provides a technique capable of finely adjusting image quality adjustment and code amount adjustment in a transcoder that decodes an input image into a decoded image and encodes the decoded image into an output image. For the purpose.
上記課題を解決するため、発明1は、入力画像を復号化して復号画像を生成するデコーダと、復号画像を符号化して出力画像を生成するエンコーダと、を備えるトランスコーダであって、各マクロブロックにおける空間方向の変化度合を示す空間変化評価値を算出する空間変化評価値算出部と、各マクロブロックにおける時間方向の予測誤差を示す予測誤差評価値を算出する予測誤差評価値算出部と、前記空間変化評価値と前記予測誤差評価値に基づいて、補正係数を利用することにより、各マクロブロックの入力量子化ステップ値を補正して、各マクロブロックの出力量子化ステップ値を決定する量子化ステップ値決定部と、を備え、前記補正係数は、出力量子化ステップ値が決定されるために、入力量子化ステップ値に乗算される乗算補正係数と、出力量子化ステップ値が決定されるために、入力量子化ステップ値に加算される加算補正係数と、を含むことを特徴とする。
In order to solve the above-mentioned problem, the
発明2は、発明1のトランスコーダにおいて、さらに、前記乗算補正係数が入力量子化ステップ値に乗算された量子化ステップ値と、前記加算補正係数が入力量子化ステップ値に加算された量子化ステップ値と、前記乗算補正係数が入力量子化ステップ値に乗算されていない、かつ、前記加算補正係数が入力量子化ステップ値に加算されていない量子化ステップ値とのうち、いずれかの量子化ステップ値を出力量子化ステップ値として選択する出力量子化ステップ値選択部、を備えることを特徴とする。 A second aspect of the invention is the transcoder of the first aspect, further comprising: a quantization step value obtained by multiplying an input quantization step value by the multiplication correction coefficient; and a quantization step in which the addition correction coefficient is added to an input quantization step value. Any quantization step of a value and a quantization step value in which the multiplication correction coefficient is not multiplied by an input quantization step value and the addition correction coefficient is not added to an input quantization step value An output quantization step value selection unit that selects a value as an output quantization step value is provided.
発明3は、発明1または発明2のトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値が小さいほど、出力量子化ステップ値を小さく決定して、前記予測誤差評価値が大きいほど、出力量子化ステップ値を小さく決定することを特徴とする。
A third aspect of the present invention is
発明4は、発明1ないし発明3のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、各マクロブロックのピクチャ種類に基づいて、出力量子化ステップ値を決定することを特徴とする。
A fourth aspect of the present invention is any of the transcoder of the
発明5は、発明1ないし発明4のいずれかのトランスコーダにおいて、前記空間変化評価値は、復号画像の各マクロブロックにおいて、各画素値と平均画素値の差分絶対値を、各画素について加算した画像内差分絶対値和、を含むことを特徴とする。
A fifth aspect of the present invention is any of the transcoder of the
発明6は、発明1ないし発明5のいずれかのトランスコーダにおいて、前記予測誤差評価値は、復号画像と参照画像の各マクロブロックにおいて、各対応画素値の差分絶対値を、各対応画素について加算した画像間差分絶対値和、を含むことを特徴とする。
発明7は、発明1ないし発明6のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値と前記予測誤差評価値の比率を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。
発明8は、発明1ないし発明6のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値と前記予測誤差評価値を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。
An
発明9は、入力画像を復号化して復号画像を生成するデコーダと、復号画像を符号化して出力画像を生成するエンコーダと、を備えるトランスコーダであって、各マクロブロックにおける空間方向の変化度合を示す空間変化評価値を算出する空間変化評価値算出部と、各マクロブロックにおける時間方向の変化度合を示す時間変化評価値を算出する時間変化評価値算出部と、前記空間変化評価値と前記時間変化評価値に基づいて、補正係数を利用することにより、各マクロブロックの入力量子化ステップ値を補正して、各マクロブロックの出力量子化ステップ値を決定する量子化ステップ値決定部と、を備えることを特徴とする。 The invention 9 is a transcoder comprising a decoder that decodes an input image to generate a decoded image, and an encoder that encodes the decoded image to generate an output image, and the degree of change in the spatial direction in each macroblock is determined. A spatial change evaluation value calculation unit that calculates a spatial change evaluation value, a time change evaluation value calculation unit that calculates a time change evaluation value that indicates the degree of change in the time direction in each macroblock, the spatial change evaluation value, and the time A quantization step value determination unit that corrects an input quantization step value of each macroblock by using a correction coefficient based on the change evaluation value and determines an output quantization step value of each macroblock; It is characterized by providing.
発明10は、発明9のトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値が大きいほど、出力量子化ステップ値を小さく決定して、前記時間変化評価値が大きいほど、出力量子化ステップ値を小さく決定することを特徴とする。 A tenth aspect of the invention is the transcoder of the ninth aspect, wherein the quantization step value determining unit determines an output quantization step value to be smaller as the spatial change evaluation value is larger, and an output is larger as the time change evaluation value is larger. The quantization step value is determined to be small.
発明11は、発明9または発明10のトランスコーダにおいて、前記量子化ステップ値決定部は、各マクロブロックのピクチャ種類に基づいて、出力量子化ステップ値を決定することを特徴とする。 An eleventh aspect of the invention is characterized in that in the transcoder of the ninth or tenth aspect of the invention , the quantization step value determining unit determines an output quantization step value based on a picture type of each macroblock.
発明12は、発明9ないし発明11のいずれかのトランスコーダにおいて、前記空間変化評価値は、復号画像の各マクロブロックにおいて、各画素値と平均画素値の差分絶対値を、各画素について加算した画像内差分絶対値和、を含むことを特徴とする。
発明13は、発明9ないし発明12のいずれかのトランスコーダにおいて、前記時間変化評価値は、入力画像の各マクロブロックにおける動きベクトルの大きさ、を含むことを特徴とする。
発明14は、発明9ないし発明12のいずれかのトランスコーダにおいて、前記時間変化評価値は、入力画像の各マクロブロックにおける動きベクトルの符号量、を含むことを特徴とする。
発明15は、発明9ないし発明14のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値と前記時間変化評価値を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。
発明16は、入力画像を復号化して復号画像を生成するデコーダと、復号画像を符号化して出力画像を生成するエンコーダと、を備えるトランスコーダであって、各マクロブロックにおける空間方向の変化度合を示す空間変化評価値を算出する空間変化評価値算出部と、各マクロブロックにおける所定色度を示す所定色度評価値を算出する所定色度評価値算出部と、前記空間変化評価値と前記所定色度評価値に基づいて、補正係数を利用することにより、各マクロブロックの入力量子化ステップ値を補正して、各マクロブロックの出力量子化ステップ値を決定する量子化ステップ値決定部と、を備えることを特徴とする。 A sixteenth aspect of the present invention is a transcoder comprising a decoder that decodes an input image to generate a decoded image, and an encoder that encodes the decoded image to generate an output image, wherein the degree of change in the spatial direction in each macroblock is determined. A spatial change evaluation value calculating unit that calculates a spatial change evaluation value to be indicated; a predetermined chromaticity evaluation value calculating unit that calculates a predetermined chromaticity evaluation value indicating a predetermined chromaticity in each macroblock; the spatial change evaluation value and the predetermined Based on the chromaticity evaluation value, by using a correction coefficient, a quantization step value determination unit that corrects an input quantization step value of each macroblock and determines an output quantization step value of each macroblock; It is characterized by providing.
発明17は、発明16のトランスコーダにおいて、前記所定色度評価値は、復号画像の各マクロブロックにおける肌色色度を示す肌色色度評価値、を含み、前記量子化ステップ値決定部は、前記空間変化評価値が小さいほど、出力量子化ステップ値を小さく決定して、前記肌色色度評価値が大きいほど、出力量子化ステップ値を小さく決定することを特徴とする。 A seventeenth aspect of the present invention is the transcoder of the sixteenth aspect, wherein the predetermined chromaticity evaluation value includes a flesh color chromaticity evaluation value indicating a flesh color chromaticity in each macroblock of a decoded image, and the quantization step value determining unit includes the The smaller the spatial change evaluation value, the smaller the output quantization step value, and the smaller the skin color chromaticity evaluation value, the smaller the output quantization step value.
発明18は、発明16または発明17のトランスコーダにおいて、前記空間変化評価値は、復号画像の各マクロブロックにおいて、各画素値と平均画素値の差分絶対値を、各画素について加算した画像内差分絶対値和、を含むことを特徴とする。
The invention 18 is the transcoder of the
発明19は、発明16ないし発明18のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値と前記所定色度評価値を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。 A nineteenth aspect of the invention is the transcoder according to any one of the sixteenth to eighteenth aspects of the invention , wherein the quantization step value determining unit stores the correction coefficient using the spatial change evaluation value and the predetermined chromaticity evaluation value as variables. A storage unit.
発明20は、入力画像を復号化して復号画像を生成するデコーダと、復号画像を符号化して出力画像を生成するエンコーダと、を備えるトランスコーダであって、各マクロブロックの位置を示す座標位置評価値を算出する座標位置評価値算出部と、前記座標位置評価値に基づいて、補正係数を利用することにより、各マクロブロックの入力量子化ステップ値を補正して、各マクロブロックの出力量子化ステップ値を決定する量子化ステップ値決定部と、を備えることを特徴とする。
発明21は、発明20のトランスコーダにおいて、前記量子化ステップ値決定部は、各マクロブロックの位置が画像中心の位置に近いほど、出力量子化ステップ値を小さく決定することを特徴とする。
Invention 21, in the transcoder of the
発明22は、発明20または発明21のトランスコーダにおいて、前記量子化ステップ値決定部は、前記座標位置評価値を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。
Invention 22, in the transcoder of the
発明23は、発明7、発明8、発明15、発明19、発明22のいずれかのトランスコーダにおいて、さらに、入力画像の入力ビットレートと、出力画像の出力ビットレートと、出力画像の目標ビットレートと、の時間変化に基づいて、前記補正係数を前記補正係数格納部に時々刻々と更新して書き込む補正係数更新書込部、を備えることを特徴とする。
Invention 23, the
発明24は、発明1ないし発明23のいずれかのトランスコーダにおいて、さらに、各マクロブロックにおける評価値に対して、所定個数の区分分けを実行する評価値区分分け部、を備え、前記量子化ステップ値決定部は、所定個数の区分分けを実行された評価値に基づいて、出力量子化ステップ値を決定することを特徴とする。
Invention 24, the invention in any of the
発明25は、発明24のトランスコーダにおいて、各区分における評価値のレンジは、それぞれ等しいことを特徴とする。 A twenty-fifth aspect of the present invention is the transcoder of the twenty-fourth aspect, wherein the ranges of evaluation values in each section are equal.
発明26は、発明24のトランスコーダにおいて、各区分における評価値のレンジは、それぞれ異なることを特徴とする。 The invention 26 is characterized in that, in the transcoder of the invention 24, the range of the evaluation value in each section is different.
発明27は、発明9ないし発明22のいずれかのトランスコーダにおいて、前記補正係数は、出力量子化ステップ値が決定されるために、入力量子化ステップ値に乗算される乗算補正係数と、出力量子化ステップ値が決定されるために、入力量子化ステップ値に加算される加算補正係数と、を含むことを特徴とする。 Invention 27, in any one of the transcoder of the invention 9 to invention 22, the correction coefficient, in order to output the quantization step value is determined, the multiplication correction factor to be multiplied to an input quantization step value, the output quantum In order to determine the quantization step value, an addition correction coefficient added to the input quantization step value is included.
発明28は、発明27のトランスコーダにおいて、さらに、前記乗算補正係数が入力量子化ステップ値に乗算された量子化ステップ値と、前記加算補正係数が入力量子化ステップ値に加算された量子化ステップ値と、前記乗算補正係数が入力量子化ステップ値に乗算されていない、かつ、前記加算補正係数が入力量子化ステップ値に加算されていない量子化ステップ値とのうち、いずれかの量子化ステップ値を出力量子化ステップ値として選択する出力量子化ステップ値選択部、を備えることを特徴とする。 A twenty-eighth aspect of the present invention is the transcoder of the twenty-seventh aspect, further comprising: a quantization step value obtained by multiplying an input quantization step value by the multiplication correction coefficient; and a quantization step in which the addition correction coefficient is added to an input quantization step value. Any quantization step of a value and a quantization step value in which the multiplication correction coefficient is not multiplied by an input quantization step value and the addition correction coefficient is not added to an input quantization step value An output quantization step value selection unit that selects a value as an output quantization step value is provided.
発明29は、発明1ないし発明28のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、前記補正係数により補正された出力量子化ステップ値に対して、微調整係数により微調整された出力量子化ステップ値を算出する微調整部、を含むことを特徴とする。
The invention 29 is the transcoder according to any one of the
発明30は、発明29のトランスコーダにおいて、前記微調整係数は、前記補正係数により補正された出力量子化ステップ値に乗算される乗算微調整係数、を含むことを特徴とする。 A thirty-third aspect of the invention is characterized in that, in the transcoder of the twenty-ninth aspect, the fine adjustment coefficient includes a multiplication fine adjustment coefficient that is multiplied by an output quantization step value corrected by the correction coefficient.
発明31は、発明29または発明30のトランスコーダにおいて、前記微調整係数は、前記補正係数により補正された出力量子化ステップ値に加算される加算微調整係数、を含むことを特徴とする。
Invention 31, in the transcoder of the invention 29 or
発明32は、発明29ないし発明31のいずれかのトランスコーダにおいて、前記微調整係数は、各マクロブロックのピクチャ種類に基づいて、それぞれ設定されることを特徴とする。 Invention 32, in any one of the transcoder of the invention 29 to invention 31, the fine adjustment factor based on the picture type of each macroblock, characterized in that it is set respectively.
発明33は、発明29ないし発明32のいずれかのトランスコーダにおいて、前記微調整係数は、入力画像の入力ビットレートと、出力画像の出力ビットレートと、出力画像の目標ビットレートと、の時間変化に基づいて、時々刻々と更新されることを特徴とする。 A thirty-third aspect of the invention is the transcoder according to any one of the twenty-ninth to thirty-second aspects of the present invention , wherein the fine adjustment coefficient is a time change of an input bit rate of the input image, an output bit rate of the output image, and a target bit rate of the output image Based on the above, it is updated every moment.
本発明のトランスコーダは、各マクロブロックについて、様々な特性評価値に基づいて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定する。これにより、トランスコーダは、画質調整および符号量調整をよりきめ細やかにできる。ここで、様々な特性評価値として、以下の特性評価値があげられる。 The transcoder of the present invention determines an output quantization step value by correcting an input quantization step value based on various characteristic evaluation values for each macroblock. Thereby, the transcoder can finely adjust the image quality and the code amount. Here, the following characteristic evaluation values are given as various characteristic evaluation values.
第1の特性評価値として、空間方向の変化度合を示す空間変化評価値、および、時間方向の予測誤差を示す予測誤差評価値があげられる。空間変化評価値が小さいほど、また、予測誤差評価値が大きいほど、出力量子化ステップ値は小さく決定される。これにより、時間方向の予測誤差が大きい画像領域については、画質をより向上させることができる。また、時間方向の予測誤差が小さいとしても、空間方向の変化度合が小さい画像領域についても、画質をより向上させることができる。画像全体の符号量調整も図られる。 Examples of the first characteristic evaluation value include a spatial change evaluation value indicating the degree of change in the spatial direction and a prediction error evaluation value indicating a prediction error in the time direction. The smaller the spatial change evaluation value and the larger the prediction error evaluation value, the smaller the output quantization step value is determined. As a result, the image quality can be further improved for an image region having a large prediction error in the time direction. Even if the prediction error in the time direction is small, the image quality can be further improved for an image region having a small degree of change in the spatial direction. The code amount of the entire image is also adjusted.
第2の特性評価値として、空間方向の変化度合を示す空間変化評価値、および、時間方向の変化度合を示す時間変化評価値があげられる。空間変化評価値が大きいほど、また、時間変化評価値が大きいほど、出力量子化ステップ値は小さく決定される。これにより、空間方向の変化度合が大きいうえに、時間方向の変化度合が大きい画像領域については、画質をより向上させることができる。画像全体の符号量調整も図られる。 Examples of the second characteristic evaluation value include a space change evaluation value indicating the degree of change in the spatial direction and a time change evaluation value indicating the degree of change in the time direction. The larger the space change evaluation value and the larger the time change evaluation value, the smaller the output quantization step value is determined. As a result, the image quality can be further improved for an image region having a large degree of change in the spatial direction and a large degree of change in the time direction. The code amount of the entire image is also adjusted.
第3の特性評価値として、空間方向の変化度合を示す空間変化評価値、および、肌色色度を示す肌色色度評価値があげられる。空間変化評価値が小さいほど、また、肌色色度評価値が大きいほど、出力量子化ステップ値は小さく決定される。これにより、顔画像領域については、画質をより向上させることができる。画像全体の符号量調整も図られる。 Examples of the third characteristic evaluation value include a spatial change evaluation value indicating the degree of change in the spatial direction and a skin color chromaticity evaluation value indicating the skin color chromaticity. The smaller the space change evaluation value is, and the larger the skin color chromaticity evaluation value is, the smaller the output quantization step value is determined. As a result, the image quality of the face image area can be further improved. The code amount of the entire image is also adjusted.
第4の特性評価値として、各マクロブロックの座標位置を示す座標位置評価値があげられる。各マクロブロックの座標位置が、画像中心の座標位置に近いほど、出力量子化ステップ値は小さく決定される。これにより、中央画像領域については、画質をより向上させることができる。画像全体の符号量調整も図られる。 As the fourth characteristic evaluation value, there is a coordinate position evaluation value indicating the coordinate position of each macroblock. The closer the coordinate position of each macroblock is to the coordinate position of the center of the image, the smaller the output quantization step value is determined. As a result, the image quality of the central image region can be further improved. The code amount of the entire image is also adjusted.
{第1の実施の形態}
[トランスコーダの構成要素]
以下、図面を参照しつつ、第1の実施の形態について説明する。図1は、トランスコーダ1の構成要素を示すブロック図である。トランスコーダ1は、MPEG2により符号化された入力画像を入力して、H.264により符号化された出力画像を出力する。入力画像および出力画像の符号化方式は、MPEG2またはH.264などに限られない。入力画像および出力画像の符号化方式は、異なっていても同一であってもよい。
{First embodiment}
[Transcoder components]
Hereinafter, the first embodiment will be described with reference to the drawings. FIG. 1 is a block diagram showing components of the
トランスコーダ1は、デコーダ2、エンコーダ3、処理設定部4、CPU5、量子化ステップ値決定部6、評価値算出部7、画像メモリ8などから構成される。
The
デコーダ2は、入力画像を復号化して、復号画像を生成する。すなわち、デコーダ2は、復号化、逆量子化、周波数逆変換を、以上の順序により実行する。エンコーダ3は、復号画像を符号化して、出力画像を生成する。すなわち、エンコーダ3は、周波数変換、量子化、符号化を、以上の順序により実行する。
The
処理設定部4は、目標ビットレートなどの処理設定を、トランスコーダ1のユーザから受け付ける。CPU5は、デコーダ2から通知された入力ビットレート、エンコーダ3から通知された出力ビットレート、処理設定部4から通知された目標ビットレートに基づいて、トランスコーダ1を統括的に制御する。
The
量子化ステップ値決定部6は、各マクロブロックについて、入力画像の量子化ステップ値をデコーダ2から入力して補正する。量子化ステップ値決定部6は、各マクロブロックについて、出力画像の量子化ステップ値を決定してエンコーダ3に出力する。
The quantization step
評価値算出部7は、復号画像をデコーダ2から入力して、各マクロブロックについて、様々な特性評価値(後述)を算出する。画像メモリ8は、復号画像をデコーダ2から入力してエンコーダ3に出力するにあたり、復号画像を一時的に格納する。
The evaluation
入力画像の量子化ステップ値の補正、および、出力画像の量子化ステップ値の決定は、量子化ステップ値決定部6に格納された補正係数(後述)、および、評価値算出部7から通知された様々な特性評価値(後述)などに基づいて実行される。
The correction of the quantization step value of the input image and the determination of the quantization step value of the output image are notified from the correction coefficient (described later) stored in the quantization step
[量子化ステップ値決定部の構成要素]
図2は、量子化ステップ値決定部6の構成要素を示すブロック図である。図2は、量子化ステップ値決定部6の周辺構成要素を含んでいる。量子化ステップ値決定部6は、第1決定部61、第2決定部62、第3決定部63、第4決定部64などから構成される。
[Components of quantization step value determination unit]
FIG. 2 is a block diagram illustrating components of the quantization step
第1決定部61は、各マクロブロックについて、トランスコーダ1に入力される入力画像の量子化ステップ値をデコーダ2から入力して、補正後の量子化ステップ値を第2決定部62に出力する。第1決定部61は、各マクロブロックについて、トランスコーダ1に入力される入力画像の量子化ステップ値を補正するにあたり、空間方向の変化度合を示す空間変化評価値、および、時間方向の予測誤差を示す予測誤差評価値を利用する。
The
第2決定部62は、各マクロブロックについて、第1決定部61により補正された量子化ステップ値を第1決定部61から入力して、補正後の量子化ステップ値を第3決定部63に出力する。第2決定部62は、各マクロブロックについて、第1決定部61により補正された量子化ステップ値を補正するにあたり、空間方向の変化度合を示す空間変化評価値、および、時間方向の変化度合を示す時間変化評価値を利用する。
The
第3決定部63は、各マクロブロックについて、第2決定部62により補正された量子化ステップ値を第2決定部62から入力して、補正後の量子化ステップ値を第4決定部64に出力する。第3決定部63は、各マクロブロックについて、第2決定部62により補正された量子化ステップ値を補正するにあたり、空間方向の変化度合を示す空間変化評価値、および、肌色色度を示す肌色色度評価値を利用する。
For each macroblock, the
第4決定部64は、各マクロブロックについて、第3決定部63により補正された量子化ステップ値を第3決定部63から入力して、トランスコーダ1から出力される出力画像の量子化ステップ値をエンコーダ3に出力する。第4決定部64は、各マクロブロックについて、第3決定部63により補正された量子化ステップ値を補正するにあたり、各マクロブロックの座標位置を示す座標位置評価値を利用する。
The
第1の実施の形態についての以下の説明においては、第1決定部61、第2決定部62、第3決定部63、第4決定部64の処理内容について、以上の順序により説明する。
In the following description of the first embodiment, the processing contents of the
[第1決定部61Aの処理内容]
図3は、第1決定部61の一種として、第1決定部61Aの構成要素を示すブロック図である。第1決定部61Aは、図3の左端において、「入力量子化ステップ値」、「ACT_MB」、「SAD_MB」を入力する。第1決定部61Aは、図3の右端において、「出力量子化ステップ値」を出力する。
[Processing content of
FIG. 3 is a block diagram showing components of the
「入力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1に入力される入力画像の量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、第1決定部61Aにより補正された量子化ステップ値である。
The “input quantization step value” is a quantization step value of an input image input to the
「ACT_MB」は、各マクロブロックにおける、空間方向の変化度合を示す空間変化評価値である。空間変化評価値ACT_MBは、以下に説明するように算出される。まず、評価値算出部7は、デコーダ2から復号画像を入力する。次に、評価値算出部7は、復号画像の各マクロブロックにおいて、各画素値および平均画素値の差分絶対値を、各画素について加算することにより、空間変化評価値ACT_MBを算出する。
“ACT_MB” is a spatial change evaluation value indicating the degree of change in the spatial direction in each macroblock. The space change evaluation value ACT_MB is calculated as described below. First, the evaluation
「SAD_MB」は、各マクロブロックにおける、時間方向の予測誤差を示す予測誤差評価値である。予測誤差評価値SAD_MBは、以下に説明するように算出される。まず、デコーダ2は、復号画像が参照する参照画像を探索する。次に、デコーダ2は、復号画像および参照画像の各マクロブロックにおいて、各対応画素値の差分絶対値を、各対応画素について加算することにより、予測誤差評価値SAD_MBを算出する。
“SAD_MB” is a prediction error evaluation value indicating a prediction error in the time direction in each macroblock. The prediction error evaluation value SAD_MB is calculated as described below. First, the
「P_type_MB」は、各マクロブロックにおける、ピクチャ種類を示すパラメータである。ピクチャ種類として、Iピクチャ、Pピクチャ、Bピクチャ、PピクチャまたはBピクチャにおけるイントラマクロブロックがあげられる。 “P_type_MB” is a parameter indicating the picture type in each macroblock. Examples of picture types include intra macroblocks in I pictures, P pictures, B pictures, P pictures, or B pictures.
ピクチャ種類がIピクチャであるときには、そのピクチャが参照する参照ピクチャは存在しない。このときには、そのピクチャの各マクロブロックにおける予測誤差評価値SAD_MBとして、そのピクチャの直前に位置するPピクチャの各対応マクロブロックにおける予測誤差評価値SAD_MBを採用する。 When the picture type is an I picture, there is no reference picture referenced by that picture. At this time, the prediction error evaluation value SAD_MB in each corresponding macroblock of the P picture located immediately before the picture is adopted as the prediction error evaluation value SAD_MB in each macroblock of the picture.
ピクチャ種類がPピクチャまたはBピクチャにおけるイントラマクロブロックであるときには、そのマクロブロックが参照する参照マクロブロックは存在しない。このときには、そのマクロブロックにおける予測誤差評価値SAD_MBとして、そのマクロブロックの近傍に位置するマクロブロックにおける予測誤差評価値SAD_MBを採用する。 When the picture type is an intra macroblock in a P picture or a B picture, there is no reference macroblock referenced by the macroblock. At this time, the prediction error evaluation value SAD_MB in the macroblock located in the vicinity of the macroblock is adopted as the prediction error evaluation value SAD_MB in the macroblock.
第1決定部61Aは、シフタ611A、612A、セレクタ613A、加算器614A、除算器615A、補正係数格納部616A、乗算器617A、加算器618A、セレクタ619Aなどから構成される。特に、補正係数格納部616Aについて説明する。
The
補正係数格納部616Aは、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を1変数として、乗算係数1次元LUT616AMに格納されている。補正係数として加算係数が、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を1変数として、加算係数1次元LUT616AAに格納されている。
The correction
ここで、厳密には、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を1変数として、乗算係数および加算係数が格納されているわけではない。むしろ、厳密には、シフタ612Aによりシフト演算されて加算器614Aにより加算演算された予測誤差評価値SAD_MBに対する、シフタ611Aによりシフト演算された空間変化評価値ACT_MBの割合を1変数として、乗算係数および加算係数が格納されている。以上のように乗算係数および加算係数が格納されている理由について説明する。
Here, strictly speaking, the multiplication coefficient and the addition coefficient are not stored with the ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB as one variable. Rather, strictly speaking, the ratio of the spatial change evaluation value ACT_MB shifted by the
そもそも、各マクロブロックおよびその参照マクロブロックのピクチャ間距離は、各マクロブロックのピクチャ種類により相違する。そのため、各マクロブロックにおける予測誤差評価値SAD_MBは、各マクロブロックのピクチャ種類によりレンジが相違する。しかし、乗算係数1次元LUT616AMおよび加算係数1次元LUT616AAは、各マクロブロックのピクチャ種類に依存せず、それぞれ1種類のみが格納されている。 In the first place, the distance between pictures of each macroblock and its reference macroblock differs depending on the picture type of each macroblock. Therefore, the prediction error evaluation value SAD_MB in each macroblock has a different range depending on the picture type of each macroblock. However, the multiplication coefficient one-dimensional LUT 616AM and the addition coefficient one-dimensional LUT 616AA do not depend on the picture type of each macroblock, and only one type is stored.
そこで、各マクロブロックにおける予測誤差評価値SAD_MBは、各マクロブロックのピクチャ種類に依存して、それぞれ相違するシフト演算を実行される。そのため、シフト演算を実行された各マクロブロックにおける予測誤差評価値SAD_MBは、各マクロブロックのピクチャ種類によりレンジが相違しない。これにより、乗算係数1次元LUT616AMおよび加算係数1次元LUT616AAは、それぞれ1種類のみが格納されているとしても、各マクロブロックのピクチャ種類に依存せず有効に利用される。 Therefore, the prediction error evaluation value SAD_MB in each macroblock is subjected to a different shift operation depending on the picture type of each macroblock. Therefore, the prediction error evaluation value SAD_MB in each macroblock for which the shift operation has been performed does not differ in range depending on the picture type of each macroblock. As a result, even if only one type of multiplication coefficient one-dimensional LUT 616AM and addition coefficient one-dimensional LUT 616AA are stored, they are effectively used regardless of the picture type of each macroblock.
次に、第1決定部61Aにおいて、あるマクロブロックについて、入力量子化ステップ値が補正されて、出力量子化ステップ値が決定される処理内容について説明する。
Next, description will be made regarding the processing contents in which the input quantization step value is corrected and the output quantization step value is determined for a certain macroblock in the
シフタ611Aは、あるマクロブロックについて、空間変化評価値ACT_MBを入力する。シフタ611Aは、空間変化評価値ACT_MBについて、シフトビット数act_shift_bit分だけ、シフト演算を実行する。シフタ611Aによるシフト演算により、乗算係数1次元LUT616AMおよび加算係数1次元LUT616AAは、各マクロブロックのピクチャ種類に依存せずより有効に利用される。
The
シフタ612Aは、あるマクロブロックについて、予測誤差評価値SAD_MBを入力する。シフタ612Aは、予測誤差評価値SAD_MBについて、シフトビット数sad_shift_bit分だけ、シフト演算を実行する。ここで、シフトビット数sad_shift_bitは、以下に説明するように決定される。
The
セレクタ613Aは、あるマクロブロックについて、ピクチャ種類P_type_MBを切替信号として入力する。ピクチャ種類P_type_MBがIピクチャ、Pピクチャ、Bピクチャであるときには、セレクタ613Aは、シフトビット数として、それぞれ、sad_shift_bit_I、sad_shift_bit_P、sad_shift_bit_Bを出力する。ピクチャ種類P_type_MBがPピクチャまたはBピクチャのイントラマクロブロックであるときには、セレクタ613Aは、シフトビット数として、sad_shift_bit_I_PBを出力する。
The
加算器614Aは、オフセットsad_offsetを、シフト演算を実行された予測誤差評価値SAD_MBに加算する。加算器614Aによる加算演算により、シフト演算を実行された予測誤差評価値SAD_MBは、よりきめ細かく微調整される。
The
除算器615Aは、シフト演算を実行された空間変化評価値ACT_MBを、シフト演算および加算演算を実行された予測誤差評価値SAD_MBにより除算することにより、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を算出する。
The
補正係数格納部616Aは、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を入力する。補正係数格納部616Aは、乗算係数1次元LUT616AMを利用して、乗算係数を算出する。補正係数格納部616Aは、加算係数1次元LUT616AAを利用して、加算係数を算出する。
The correction
図4(a)は、乗算係数1次元LUT616AMの内容を示す図である。予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合が増加するに従って、乗算係数が単調に増加する。予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合が所定値xであるときに、乗算係数は1である。すなわち、乗算係数を利用して決定される量子化ステップ値は、入力量子化ステップ値から変化しない。 FIG. 4A shows the contents of the multiplication coefficient one-dimensional LUT 616AM. As the ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB increases, the multiplication coefficient increases monotonously. When the ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB is the predetermined value x, the multiplication coefficient is 1. That is, the quantization step value determined using the multiplication coefficient does not change from the input quantization step value.
図4(b)は、加算係数1次元LUT616AAの内容を示す図である。予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合が増加するに従って、加算係数が単調に増加する。予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合が所定値xであるときに、加算係数は0である。すなわち、加算係数を利用して決定される量子化ステップ値は、入力量子化ステップ値から変化しない。 FIG. 4B shows the contents of the addition coefficient one-dimensional LUT 616AA. As the ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB increases, the addition coefficient increases monotonously. When the ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB is the predetermined value x, the addition coefficient is 0. That is, the quantization step value determined using the addition coefficient does not change from the input quantization step value.
乗算器617Aは、乗算係数1次元LUT616AMにより算出された乗算係数を、入力量子化ステップ値に乗算する。加算器618Aは、加算係数1次元LUT616AAにより算出された加算係数を、入力量子化ステップ値に加算する。
The
セレクタ619Aは、“0”、“1”、“2”のうちいずれかを、切替信号として入力する。切替信号が“0”であるときには、セレクタ619Aは、出力量子化ステップ値として、補正されていない入力量子化ステップ値を出力する。切替信号が“1”であるときには、セレクタ619Aは、出力量子化ステップ値として、乗算係数を乗算された入力量子化ステップ値を出力する。切替信号が“2”であるときには、セレクタ619Aは、出力量子化ステップ値として、加算係数を加算された入力量子化ステップ値を出力する。 The selector 619A inputs any one of “0”, “1”, and “2” as a switching signal. When the switching signal is “0”, the selector 619A outputs the uncorrected input quantization step value as the output quantization step value. When the switching signal is “1”, the selector 619A outputs the input quantization step value multiplied by the multiplication coefficient as the output quantization step value. When the switching signal is “2”, the selector 619A outputs the input quantization step value added with the addition coefficient as the output quantization step value.
空間方向の変化度合が同程度である画像領域のうち、時間方向の予測誤差が大きい画像領域については、出力量子化ステップ値が小さく決定される。そして、時間方向の予測誤差が小さい画像領域については、出力量子化ステップ値が大きく決定される。 Of the image regions having the same degree of change in the spatial direction, the output quantization step value is determined to be small for an image region having a large prediction error in the temporal direction. The output quantization step value is determined to be large for an image region with a small prediction error in the time direction.
すなわち、時間方向の予測誤差が大きい画像領域については、多くの出力ビット数が割り当てられることにより、画質をより向上させることができる。そして、時間方向の予測誤差が小さい画像領域については、多くの出力ビット数が割り当てられなくても、画質を過度に劣化させることはない。これにより、画像全体の符号量調整も図られる。 That is, for an image region having a large prediction error in the time direction, the image quality can be further improved by assigning a large number of output bits. For an image region with a small prediction error in the time direction, even if a large number of output bits are not assigned, the image quality is not excessively degraded. Thereby, the code amount adjustment of the whole image is also achieved.
時間方向の予測誤差が同程度である画像領域のうち、空間方向の変化度合が小さい画像領域については、出力量子化ステップ値が小さく決定される。そして、空間方向の変化度合が大きい画像領域については、出力量子化ステップ値が大きく決定される。 Of the image regions having the same prediction error in the temporal direction, the output quantization step value is determined to be small for an image region having a small degree of change in the spatial direction. For an image region having a large degree of change in the spatial direction, the output quantization step value is determined to be large.
すなわち、空間方向の変化度合が小さい画像領域については、多くの出力ビット数が割り当てられることにより、画質をより向上させることができる。そして、空間方向の変化度合が大きい画像領域については、多くの出力ビット数が割り当てられなくても、画質を過度に劣化させることはない。これにより、画像全体の符号量調整も図られる。 That is, for an image region having a small degree of change in the spatial direction, the image quality can be further improved by assigning a large number of output bits. For an image region having a large degree of change in the spatial direction, even if a large number of output bits are not assigned, the image quality is not excessively deteriorated. Thereby, the code amount adjustment of the whole image is also achieved.
ここで、乗算係数1次元LUT616AMおよび加算係数1次元LUT616AAの内容は、時間変化することなく固定されていてもよい。また、シフトビット数act_shift_bit、sad_shift_bit、オフセットsad_offsetは、時間変化することなく固定されていてもよい。さらに、セレクタ619Aへの切替信号は、時間変化することなく固定されていてもよい。 Here, the contents of the multiplication coefficient one-dimensional LUT 616AM and the addition coefficient one-dimensional LUT 616AA may be fixed without changing over time. Further, the number of shift bits act_shift_bit, sad_shift_bit, and offset sad_offset may be fixed without changing over time. Further, the switching signal to the selector 619A may be fixed without changing over time.
しかし、乗算係数1次元LUT616AMおよび加算係数1次元LUT616AAの内容は、入力ビットレート、出力ビットレート、目標ビットレートに基づいて、CPU5により時々刻々と書き換えられてもよい。たとえば、出力ビットレートが目標ビットレートより高いときには、乗算係数および加算係数が大きく書き換えられるとよい。
However, the contents of the multiplication coefficient one-dimensional LUT 616AM and the addition coefficient one-dimensional LUT 616AA may be rewritten from time to time by the
また、シフトビット数act_shift_bit、sad_shift_bit、オフセットsad_offsetは、入力ビットレート、出力ビットレート、目標ビットレートに基づいて、CPU5により時々刻々と更新されてもよい。たとえば、出力ビットレートが目標ビットレートより高いときには、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合が大きくなるように、シフトビット数act_shift_bit、sad_shift_bitが更新されるとよい。
Further, the shift bit numbers act_shift_bit, sad_shift_bit, and offset sad_offset may be updated by the
さらに、セレクタ619Aへの切替信号は、入力ビットレート、出力ビットレート、目標ビットレートに基づいて、CPU5により時々刻々と更新されてもよい。たとえば、出力ビットレートが目標ビットレートより高いときには、セレクタ619Aに入力される量子化ステップ値のうち、最大の量子化ステップ値がセレクタ619Aから出力されるように、セレクタ619Aへの切替信号が更新されるとよい。
Further, the switching signal to the selector 619A may be updated every moment by the
[第1決定部61Bの処理内容]
図5は、第1決定部61の一種として、第1決定部61Bの構成要素を示すブロック図である。第1決定部61Bは、図5の左端において、「入力量子化ステップ値」、「h_ACT_MB」、「h_SAD_MB」を入力する。第1決定部61Bは、図5の右端において、「出力量子化ステップ値」を出力する。
[Processing content of first determination unit 61B]
FIG. 5 is a block diagram showing components of the first determination unit 61B as a kind of the
「入力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1に入力される入力画像の量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、第1決定部61Bにより補正された量子化ステップ値である。
The “input quantization step value” is a quantization step value of an input image input to the
「h_ACT_MB」は、各マクロブロックにおける、空間方向の変化度合を示す空間変化評価値である。空間変化評価値h_ACT_MBは、空間変化評価値ACT_MBがカテゴリ化されたときのカテゴリ番号である。ここで、空間変化評価値ACT_MBは、評価値算出部7において、シフタ611Aと同様なシフト演算を実行されている。
“H_ACT_MB” is a spatial change evaluation value indicating the degree of change in the spatial direction in each macroblock. The space change evaluation value h_ACT_MB is a category number when the space change evaluation value ACT_MB is categorized. Here, the spatial change evaluation value ACT_MB is subjected to a shift operation similar to that performed by the
「h_SAD_MB」は、各マクロブロックにおける、時間方向の予測誤差を示す予測誤差評価値である。予測誤差評価値h_SAD_MBは、予測誤差評価値SAD_MBがカテゴリ化されたときのカテゴリ番号である。ここで、予測誤差評価値SAD_MBは、評価値算出部7において、シフタ612Aと同様なシフト演算、および、加算器614Aと同様な加算演算を実行されている。
“H_SAD_MB” is a prediction error evaluation value indicating a prediction error in the time direction in each macroblock. The prediction error evaluation value h_SAD_MB is a category number when the prediction error evaluation value SAD_MB is categorized. Here, the prediction error evaluation value SAD_MB is subjected to a shift operation similar to the
図6は、評価値のカテゴリ化方法を示す図である。図6(a)、(b)、(c)の共通点として、評価値は最小値から最大値までにかけて、5個のカテゴリにカテゴリ化されている。そして、カテゴリ番号が増加するほど、カテゴリに属する評価値が増加する。 FIG. 6 is a diagram illustrating a method for categorizing evaluation values. As common points of FIGS. 6A, 6B, and 6C, the evaluation values are categorized into five categories from the minimum value to the maximum value. As the category number increases, the evaluation value belonging to the category increases.
図6(a)に示した第1のカテゴリ化方法においては、カテゴリ0、1、2、3、4のレンジはそれぞれ同一である。このときには、評価値のカテゴリ化は容易に実行される。
In the first categorization method shown in FIG. 6A, the ranges of
図6(b)に示した第2のカテゴリ化方法においては、カテゴリ0、1、2、3、4のレンジはそれぞれ相違する。カテゴリ番号が増加するほど、カテゴリのレンジが増加する。このときには、評価値が最小値に近いときほど、評価値が細かくカテゴリ化される。
In the second categorization method shown in FIG. 6B, the ranges of
図6(c)に示した第3のカテゴリ化方法においては、カテゴリ0、1、2、3、4のレンジはそれぞれ相違する。カテゴリ番号が2に近づくほど、カテゴリのレンジが減少する。このときには、評価値が中間値に近いときほど、評価値が細かくカテゴリ化される。
In the third categorization method shown in FIG. 6C, the
第1決定部61Bは、補正係数格納部611B、乗算器612B、加算器613B、セレクタ614Bなどから構成される。特に、補正係数格納部611Bについて説明する。
The first determination unit 61B includes a correction coefficient storage unit 611B, a
補正係数格納部611Bは、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、予測誤差評価値h_SAD_MBおよび空間変化評価値h_ACT_MBを2変数として、乗算係数2次元LUT611BMに格納されている。補正係数として加算係数が、予測誤差評価値h_SAD_MBおよび空間変化評価値h_ACT_MBを2変数として、加算係数2次元LUT611BAに格納されている。補正係数格納部611Bは、カテゴリ番号を2変数とする2次元LUTを格納するため、2次元LUTを格納するとしても、記憶容量を低減させることができる。 The correction coefficient storage unit 611B stores the correction coefficient in order to correct the input quantization step value and determine the output quantization step value. A multiplication coefficient as a correction coefficient is stored in the multiplication coefficient two-dimensional LUT 611BM with the prediction error evaluation value h_SAD_MB and the spatial change evaluation value h_ACT_MB as two variables. An addition coefficient as a correction coefficient is stored in the addition coefficient two-dimensional LUT 611BA with the prediction error evaluation value h_SAD_MB and the spatial change evaluation value h_ACT_MB as two variables. Since the correction coefficient storage unit 611B stores a two-dimensional LUT having two variables for the category number, the storage capacity can be reduced even if the two-dimensional LUT is stored.
次に、第1決定部61Bにおいて、あるマクロブロックについて、入力量子化ステップ値が補正されて、出力量子化ステップ値が決定される処理内容について説明する。 Next, description will be made regarding the processing contents in which the first quantization unit 61B corrects the input quantization step value and determines the output quantization step value for a certain macroblock.
補正係数格納部611Bは、あるマクロブロックについて、予測誤差評価値h_SAD_MBおよび空間変化評価値h_ACT_MBを入力する。補正係数格納部611Bは、乗算係数2次元LUT611BMを利用して、乗算係数を算出する。補正係数格納部611Bは、加算係数2次元LUT611BAを利用して、加算係数を算出する。 The correction coefficient storage unit 611B inputs a prediction error evaluation value h_SAD_MB and a spatial change evaluation value h_ACT_MB for a certain macroblock. The correction coefficient storage unit 611B calculates a multiplication coefficient using the multiplication coefficient two-dimensional LUT 611BM. The correction coefficient storage unit 611B calculates an addition coefficient using the addition coefficient two-dimensional LUT 611BA.
図7(a)は、乗算係数2次元LUT611BMの内容を示す図である。予測誤差評価値h_SAD_MBが増加するに従って、乗算係数が単調に減少する。空間変化評価値h_ACT_MBが増加するに従って、乗算係数が単調に増加する。 FIG. 7A shows the contents of the multiplication coefficient two-dimensional LUT 611BM. As the prediction error evaluation value h_SAD_MB increases, the multiplication coefficient decreases monotonously. As the space change evaluation value h_ACT_MB increases, the multiplication coefficient increases monotonously.
図7(b)は、加算係数2次元LUT611BAの内容を示す図である。予測誤差評価値h_SAD_MBが増加するに従って、加算係数が単調に減少する。空間変化評価値h_ACT_MBが増加するに従って、加算係数が単調に増加する。 FIG. 7B shows the contents of the addition coefficient two-dimensional LUT 611BA. As the prediction error evaluation value h_SAD_MB increases, the addition coefficient decreases monotonously. As the space change evaluation value h_ACT_MB increases, the addition coefficient increases monotonously.
乗算器612Bは、乗算係数2次元LUT611BMにより算出された乗算係数を、入力量子化ステップ値に乗算する。加算器613Bは、加算係数2次元LUT611BAにより算出された加算係数を、入力量子化ステップ値に加算する。
The
セレクタ614Bは、“0”、“1”、“2”のうちいずれかを、切替信号として入力する。切替信号が“0”であるときには、セレクタ614Bは、出力量子化ステップ値として、補正されていない入力量子化ステップ値を出力する。切替信号が“1”であるときには、セレクタ614Bは、出力量子化ステップ値として、乗算係数を乗算された入力量子化ステップ値を出力する。切替信号が“2”であるときには、セレクタ614Bは、出力量子化ステップ値として、加算係数を加算された入力量子化ステップ値を出力する。 The selector 614B inputs any one of “0”, “1”, and “2” as a switching signal. When the switching signal is “0”, the selector 614B outputs an uncorrected input quantization step value as the output quantization step value. When the switching signal is “1”, the selector 614B outputs the input quantization step value multiplied by the multiplication coefficient as the output quantization step value. When the switching signal is “2”, the selector 614B outputs the input quantization step value added with the addition coefficient as the output quantization step value.
乗算係数2次元LUT611BMおよび加算係数2次元LUT611BAの内容は、時間変化することなく固定されていてもよく、CPU5により時々刻々と書き換えられてもよい。セレクタ619Aへの切替信号は、時間変化することなく固定されていてもよく、CPU5により時々刻々と更新されてもよい。
The contents of the multiplication coefficient two-dimensional LUT 611BM and the addition coefficient two-dimensional LUT 611BA may be fixed without changing over time, or may be rewritten by the
[第2決定部の処理内容]
図8は、第2決定部62の構成要素を示すブロック図である。第2決定部62は、図8の左端において、「入力量子化ステップ値」、「h_ACT_MB」、「h_MVbit_MB」、「P_type_MB」を入力する。第2決定部62は、図8の右端において、「出力量子化ステップ値」を出力する。
[Processing content of second determination unit]
FIG. 8 is a block diagram showing components of the
「入力量子化ステップ値」は、各マクロブロックにおける、第1決定部61により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、第2決定部62により補正された量子化ステップ値である。
The “input quantization step value” is a quantization step value corrected by the
「h_ACT_MB」は、各マクロブロックにおける、空間方向の変化度合を示す空間変化評価値である。空間変化評価値h_ACT_MBは、以下に説明するように算出される。まず、評価値算出部7は、デコーダ2から復号画像を入力する。次に、評価値算出部7は、復号画像の各マクロブロックにおいて、各画素値および平均画素値の差分絶対値を、各画素について加算することにより、空間変化評価値ACT_MBを算出する。次に、評価値算出部7は、図6に示したカテゴリ化方法により、カテゴリ化を実行する。
“H_ACT_MB” is a spatial change evaluation value indicating the degree of change in the spatial direction in each macroblock. The space change evaluation value h_ACT_MB is calculated as described below. First, the evaluation
「h_MVbit_MB」は、各マクロブロックにおける、時間方向の変化度合を示す時間変化評価値である。時間変化評価値h_MVbit_MBは、以下に説明するように算出される。まず、デコーダ2は、入力画像の各マクロブロックにおける動きベクトルの大きさまたは動きベクトルの符号量を取得する。ここで、動きベクトルの符号量は、動きベクトルの大きさに相当する。次に、評価値算出部7は、図6に示したカテゴリ化方法により、カテゴリ化を実行する。
“H_MVbit_MB” is a time change evaluation value indicating the degree of change in the time direction in each macroblock. The time change evaluation value h_MVbit_MB is calculated as described below. First, the
「P_type_MB」は、各マクロブロックにおける、ピクチャ種類を示すパラメータである。ピクチャ種類として、Iピクチャ、Pピクチャ、Bピクチャ、PピクチャまたはBピクチャにおけるイントラマクロブロックがあげられる。 “P_type_MB” is a parameter indicating the picture type in each macroblock. Examples of picture types include intra macroblocks in I pictures, P pictures, B pictures, P pictures, or B pictures.
ピクチャ種類がIピクチャであるときには、そのピクチャが参照する参照ピクチャは存在しない。このときには、そのピクチャの各マクロブロックにおける時間変化評価値h_MVbit_MBは算出されない。 When the picture type is an I picture, there is no reference picture referenced by that picture. At this time, the temporal change evaluation value h_MVbit_MB in each macroblock of the picture is not calculated.
ピクチャ種類がPピクチャまたはBピクチャにおけるイントラマクロブロックであるときには、そのマクロブロックが参照する参照マクロブロックは存在しない。このときには、そのマクロブロックにおける時間変化評価値h_MVbit_MBは算出されない。 When the picture type is an intra macroblock in a P picture or a B picture, there is no reference macroblock referenced by the macroblock. At this time, the time change evaluation value h_MVbit_MB in the macroblock is not calculated.
第2決定部62は、補正係数格納部621、622、623、セレクタ624、論理回路部625、乗算器626、加算器627、セレクタ628などから構成される。特に、補正係数格納部621、622、623について説明する。
The
補正係数格納部621は、Pピクチャについて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Pを2変数として、乗算係数2次元LUT621Mに格納されている。補正係数として加算係数が、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Pを2変数として、加算係数2次元LUT621Aに格納されている。
The correction
補正係数格納部622は、Bピクチャについて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Bを2変数として、乗算係数2次元LUT622Mに格納されている。補正係数として加算係数が、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Bを2変数として、加算係数2次元LUT622Aに格納されている。
The correction
補正係数格納部623は、Iピクチャについて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、空間変化評価値h_ACT_MBを1変数として、乗算係数1次元LUT623Mに格納されている。補正係数として加算係数が、空間変化評価値h_ACT_MBを1変数として、加算係数1次元LUT623Aに格納されている。Iピクチャについて、時間変化評価値h_MVbit_MBは、乗算係数1次元LUT623Mおよび加算係数1次元LUT623Aの変数とならない。
The correction
次に、第2決定部62において、あるマクロブロックについて、入力量子化ステップ値が補正されて、出力量子化ステップ値が決定される処理内容について説明する。
Next, description will be made regarding the processing contents in which the
補正係数格納部621は、Pピクチャのあるマクロブロックについて、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Pを入力する。補正係数格納部621は、乗算係数2次元LUT621Mを利用して、乗算係数を算出する。補正係数格納部621は、加算係数2次元LUT621Aを利用して、加算係数を算出する。補正係数格納部621は、乗算係数および加算係数を、セレクタ624に出力する。
The correction
補正係数格納部622は、Bピクチャのあるマクロブロックについて、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Bを入力する。補正係数格納部622は、乗算係数2次元LUT622Mを利用して、乗算係数を算出する。補正係数格納部622は、加算係数2次元LUT622Aを利用して、加算係数を算出する。補正係数格納部622は、乗算係数および加算係数を、セレクタ624に出力する。
The correction
補正係数格納部623は、Iピクチャのあるマクロブロックについて、空間変化評価値h_ACT_MBを入力する。補正係数格納部623は、乗算係数1次元LUT623Mを利用して、乗算係数を算出する。補正係数格納部623は、加算係数1次元LUT623Aを利用して、加算係数を算出する。補正係数格納部623は、乗算係数および加算係数を、セレクタ624に出力する。
The correction
図9(a)は、乗算係数2次元LUT621M、622Mの内容を示す図である。時間変化評価値h_MVbit_MBが増加するに従って、乗算係数が単調に減少する。空間変化評価値h_ACT_MBが増加するに従って、乗算係数が単調に減少する。乗算係数2次元LUT621M、622Mは、図9(a)のように同一のものであっても、図9(a)と異なり相違するものであってもよい。
FIG. 9A shows the contents of the multiplication coefficient two-
図9(b)は、加算係数2次元LUT621A、622Aの内容を示す図である。時間変化評価値h_MVbit_MBが増加するに従って、加算係数が単調に減少する。空間変化評価値h_ACT_MBが増加するに従って、加算係数が単調に減少する。加算係数2次元LUT621A、622Aは、図9(b)のように同一のものであっても、図9(b)と異なり相違するものであってもよい。
FIG. 9B is a diagram illustrating the contents of the addition coefficient two-
図9(c)は、乗算係数1次元LUT623Mの内容を示す図である。空間変化評価値h_ACT_MBが増加するに従って、乗算係数が単調に減少する。
FIG. 9C shows the contents of the multiplication coefficient one-
図9(d)は、加算係数1次元LUT623Aの内容を示す図である。空間変化評価値h_ACT_MBが増加するに従って、加算係数が単調に減少する。
FIG. 9D shows the contents of the addition coefficient one-
論理回路部625は、あるマクロブロックについて、ピクチャ種類P_type_MBを入力する。論理回路部625は、セレクタ624の切替信号を、セレクタ624に出力する。図10は、論理回路部625における処理の流れを示すフローチャートである。
The
論理回路部625がピクチャ種類P_type_MBを入力したとき(ステップS1)、ピクチャ種類P_type_MBがPピクチャであるときについて考える(ステップS2においてYES)。論理回路部625は、セレクタ624の切替信号として、Pピクチャに対応する“0”を出力する(ステップS3)。セレクタ624は、乗算係数および加算係数として、乗算係数2次元LUT621Mおよび加算係数2次元LUT621Aにより算出されたものを出力する。
When the
論理回路部625がピクチャ種類P_type_MBを入力したとき(ステップS1)、ピクチャ種類P_type_MBがBピクチャであるときについて考える(ステップS2においてNO、ステップS4においてYES)。論理回路部625は、セレクタ624の切替信号として、Bピクチャに対応する“1”を出力する(ステップS5)。セレクタ624は、乗算係数および加算係数として、乗算係数2次元LUT622Mおよび加算係数2次元LUT622Aにより算出されたものを出力する。
When the
論理回路部625がピクチャ種類P_type_MBを入力したとき(ステップS1)、ピクチャ種類P_type_MBがIピクチャであるときについて考える(ステップS2においてNO、ステップS4においてNO、ステップS6においてYES)。論理回路部625は、セレクタ624の切替信号として、Iピクチャに対応する“2”を出力する(ステップS7)。セレクタ624は、乗算係数および加算係数として、乗算係数1次元LUT623Mおよび加算係数1次元LUT623Aにより算出されたものを出力する。
When the
論理回路部625がピクチャ種類P_type_MBを入力したとき(ステップS1)、ピクチャ種類P_type_MBがPピクチャまたはBピクチャのイントラマクロブロックであるときについて考える(ステップS2においてNO、ステップS4においてNO、ステップS6においてNO)。論理回路部625は、そのマクロブロックの近傍に位置するマクロブロックについて、すでに算出されている乗算係数および加算係数を出力するように、セレクタ624に指示する(ステップS8)。
When the
乗算器626は、セレクタ624により出力された乗算係数を、入力量子化ステップ値に乗算する。加算器627は、セレクタ624により出力された加算係数を、入力量子化ステップ値に加算する。
セレクタ628は、“0”、“1”、“2”のうちいずれかを、切替信号として入力する。切替信号が“0”であるときには、セレクタ628は、出力量子化ステップ値として、補正されていない入力量子化ステップ値を出力する。切替信号が“1”であるときには、セレクタ628は、出力量子化ステップ値として、乗算係数を乗算された入力量子化ステップ値を出力する。切替信号が“2”であるときには、セレクタ628は、出力量子化ステップ値として、加算係数を加算された入力量子化ステップ値を出力する。
The
空間方向の変化度合が大きく、時間方向の変化度合が大きい画像領域については、出力量子化ステップ値は小さく設定される。空間方向の変化度合が小さく、時間方向の変化度合が小さい画像領域については、出力量子化ステップ値は大きく設定される。 For an image region having a large degree of change in the spatial direction and a large degree of change in the time direction, the output quantization step value is set small. The output quantization step value is set to be large for an image region having a small degree of change in the spatial direction and a small degree of change in the time direction.
すなわち、小さい物体が激しく動く画像領域については、多くの出力ビット数が割り当てられることにより、画質をより向上させることができる。そして、大きい物体が緩やかに動く画像領域については、多くの出力ビット数が割り当てられなくても、画質を過度に劣化させることはない。これにより、画像全体の符号量調整も図られる。 That is, for an image region in which a small object moves violently, the image quality can be further improved by assigning a large number of output bits. For an image region in which a large object moves slowly, the image quality is not excessively degraded even if a large number of output bits are not assigned. Thereby, the code amount adjustment of the whole image is also achieved.
ここで、第1決定部61においては、空間方向の変化度合が小さい画像領域において、出力量子化ステップ値が小さく設定される。すなわち、平坦な画像領域について、多くの出力ビット数が割り当てられる。しかし、第2決定部62においては、空間方向の変化度合が大きい画像領域において、出力量子化ステップ値が小さく設定される。すなわち、小さい物体を含む画像領域について、多くの出力ビット数が割り当てられる。このように、第1決定部61および第2決定部62は、それぞれ画像特性の異なる画像領域について、多くの出力ビット数を割り当てるのである。
Here, in the
乗算係数LUTおよび加算係数LUTの内容は、時間変化することなく固定されていてもよく、CPU5により時々刻々と書き換えられてもよい。セレクタ628への切替信号は、時間変化することなく固定されていてもよく、CPU5により時々刻々と更新されてもよい。カテゴリのレンジは任意であり、カテゴリ化を利用する次元数は任意である。
The contents of the multiplication coefficient LUT and the addition coefficient LUT may be fixed without changing over time, and may be rewritten from time to time by the
[第3決定部の処理内容]
図11は、第3決定部63の構成要素を示すブロック図である。第3決定部63は、図11の左端において、「入力量子化ステップ値」、「h_ACT_MB」、「h_SkinTone_MB」を入力する。第3決定部63は、図11の右端において、「出力量子化ステップ値」を出力する。
[Processing content of third determining unit]
FIG. 11 is a block diagram illustrating components of the
「入力量子化ステップ値」は、各マクロブロックにおける、第2決定部62により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、第3決定部63により補正された量子化ステップ値である。
The “input quantization step value” is a quantization step value corrected by the
「h_ACT_MB」は、各マクロブロックにおける、空間方向の変化度合を示す空間変化評価値である。空間変化評価値h_ACT_MBは、以下に説明するように算出される。まず、評価値算出部7は、デコーダ2から復号画像を入力する。次に、評価値算出部7は、復号画像の各マクロブロックにおいて、各画素値および平均画素値の差分絶対値を、各画素について加算することにより、空間変化評価値ACT_MBを算出する。次に、評価値算出部7は、図6に示したカテゴリ化方法により、カテゴリ化を実行する。
“H_ACT_MB” is a spatial change evaluation value indicating the degree of change in the spatial direction in each macroblock. The space change evaluation value h_ACT_MB is calculated as described below. First, the evaluation
「h_SkinTone_MB」は、各マクロブロックにおける、肌色色度を示す肌色色度評価値である。肌色色度評価値h_SkinTone_MBは、以下に説明するように算出される。まず、評価値算出部7は、デコーダ2から復号画像を入力する。次に、評価値算出部7は、復号画像の各マクロブロックにおいて、各画素の肌色色度を各画素の色差信号に基づいて算出して、肌色色度の高い画素数を計測することにより、肌色色度評価値SkinTone_MBを算出する。次に、評価値算出部7は、図6に示したカテゴリ化方法により、カテゴリ化を実行する。
“H_SkinTone_MB” is a skin color chromaticity evaluation value indicating a skin color chromaticity in each macro block. The skin color chromaticity evaluation value h_SkinTone_MB is calculated as described below. First, the evaluation
第3決定部63は、補正係数格納部631、乗算器632、加算器633、セレクタ634などから構成される。特に、補正係数格納部631について説明する。
The
補正係数格納部631は、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、空間変化評価値h_ACT_MBおよび肌色色度評価値h_SkinTone_MBを2変数として、乗算係数2次元LUT631Mに格納されている。補正係数として加算係数が、空間変化評価値h_ACT_MBおよび肌色色度評価値h_SkinTone_MBを2変数として、加算係数2次元LUT631Aに格納されている。
The correction
次に、第3決定部63において、あるマクロブロックについて、入力量子化ステップ値が補正されて、出力量子化ステップ値が決定される処理内容について説明する。
Next, description will be made regarding the processing contents in which the
補正係数格納部631は、あるマクロブロックについて、空間変化評価値h_ACT_MBおよび肌色色度評価値h_SkinTone_MBを入力する。補正係数格納部631は、乗算係数2次元LUT631Mを利用して、乗算係数を算出する。補正係数格納部631は、加算係数2次元LUT631Aを利用して、加算係数を算出する。
The correction
図12(a)は、乗算係数2次元LUT631Mの内容を示す図である。肌色色度評価値h_SkinTone_MBが増加するに従って、乗算係数が単調に減少する。空間変化評価値h_ACT_MBが増加するに従って、乗算係数が単調に増加する。
FIG. 12A shows the contents of the multiplication coefficient two-
図12(b)は、加算係数2次元LUT631Aの内容を示す図である。肌色色度評価値h_SkinTone_MBが増加するに従って、加算係数が単調に減少する。空間変化評価値h_ACT_MBが増加するに従って、加算係数が単調に増加する。
FIG. 12B is a diagram illustrating the contents of the addition coefficient two-
乗算器632は、乗算係数2次元LUT631Mにより出力された乗算係数を、入力量子化ステップ値に乗算する。加算器633は、加算係数2次元LUT631Aにより出力された加算係数を、入力量子化ステップ値に加算する。
The
セレクタ634は、“0”、“1”、“2”のうちいずれかを、切替信号として入力する。切替信号が“0”であるときには、セレクタ634は、出力量子化ステップ値として、補正されていない入力量子化ステップ値を出力する。切替信号が“1”であるときには、セレクタ634は、出力量子化ステップ値として、乗算係数を乗算された入力量子化ステップ値を出力する。切替信号が“2”であるときには、セレクタ634は、出力量子化ステップ値として、加算係数を加算された入力量子化ステップ値を出力する。
The
肌色色度が大きく、空間方向の変化度合が小さい画像領域については、出力量子化ステップ値は小さく設定される。肌色色度が小さく、空間方向の変化度合が大きい画像領域については、出力量子化ステップ値は大きく設定される。 The output quantization step value is set to be small for an image region having a large flesh color chromaticity and a small degree of change in the spatial direction. For an image region having a small flesh color chromaticity and a large degree of change in the spatial direction, the output quantization step value is set large.
すなわち、顔画像領域については、多くの出力ビット数が割り当てられることにより、画質をより向上させることができる。そして、顔画像領域以外の画像領域については、多くの出力ビット数が割り当てられなくても、画質を過度に劣化させることはない。これにより、画像全体の符号量調整も図られる。 In other words, the image quality can be further improved by assigning a large number of output bits to the face image area. For image areas other than the face image area, even if a large number of output bits are not assigned, the image quality is not excessively deteriorated. Thereby, the code amount adjustment of the whole image is also achieved.
乗算係数2次元LUT631Mおよび加算係数2次元LUT631Aの内容は、時間変化することなく固定されていてもよく、CPU5により時々刻々と書き換えられてもよい。セレクタ634への切替信号は、時間変化することなく固定されていてもよく、CPU5により時々刻々と更新されてもよい。カテゴリのレンジは任意であり、カテゴリ化を利用する次元数は任意である。出力量子化ステップ値を小さくする画像領域は、肌色色度の高い画像領域のみならず、その他の色度の高い画像領域であってもよい。
The contents of the multiplication coefficient two-
[第4決定部の処理内容]
図13は、第4決定部64の構成要素を示すブロック図である。第4決定部64は、図13の左端において、「入力量子化ステップ値」、「MB_Addr_x」、「MB_Addr_y」を入力する。第4決定部64は、図13の右端において、「出力量子化ステップ値」を出力する。
[Processing content of the fourth determination unit]
FIG. 13 is a block diagram illustrating components of the
「入力量子化ステップ値」は、各マクロブロックにおける、第3決定部63により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1から出力される出力画像の量子化ステップ値である。
The “input quantization step value” is a quantization step value corrected by the
「MB_Addr_x」および「MB_Addr_y」は、それぞれ、各マクロブロックの水平方向および垂直方向の座標位置を示す座標位置評価値である。座標位置評価値MB_Addr_x、MB_Addr_yは、デコーダ2から出力される。第4決定部64についての以下の説明においては、説明を簡潔にするため、1フレームの水平方向および垂直方向のサイズは、ともにマクロブロック5個分のサイズであると仮定する。
“MB_Addr_x” and “MB_Addr_y” are coordinate position evaluation values indicating the horizontal and vertical coordinate positions of each macroblock, respectively. The coordinate position evaluation values MB_Addr_x and MB_Addr_y are output from the
第4決定部64は、補正係数格納部641、乗算器642、加算器643、セレクタ644などから構成される。特に、補正係数格納部641について説明する。
The
補正係数格納部641は、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、座標位置評価値MB_Addr_x、MB_Addr_yを2変数として、乗算係数2次元LUT641Mに格納されている。補正係数として加算係数が、座標位置評価値MB_Addr_x、MB_Addr_yを2変数として、加算係数2次元LUT641Aに格納されている。1フレームの水平方向および垂直方向のサイズがともにマクロブロック5個分のサイズであることを反映して、乗算係数2次元LUT641Mおよび加算係数2次元LUT641Aのマトリックス数はともに5×5である。
The correction
次に、第4決定部64において、あるマクロブロックについて、入力量子化ステップ値が補正されて、出力量子化ステップ値が決定される処理内容について説明する。
Next, description will be made regarding the processing contents in which the
補正係数格納部641は、あるマクロブロックについて、座標位置評価値MB_Addr_x、MB_Addr_yを入力する。補正係数格納部641は、乗算係数2次元LUT641Mを利用して、乗算係数を算出する。補正係数格納部641は、加算係数2次元LUT641Aを利用して、加算係数を算出する。
The correction
図14(a)は、乗算係数2次元LUT641Mの内容を示す図である。対象マクロブロックが画像中心に近くなるに従って、乗算係数が単調に減少する。
FIG. 14A shows the contents of the multiplication coefficient two-
図14(b)は、加算係数2次元LUT641Aの内容を示す図である。対象マクロブロックが画像中心に近くなるに従って、加算係数が単調に減少する。
FIG. 14B shows the contents of the addition coefficient two-
乗算器642は、乗算係数2次元LUT641Mにより出力された乗算係数を、入力量子化ステップ値に乗算する。加算器643は、加算係数2次元LUT641Aにより出力された加算係数を、入力量子化ステップ値に加算する。
The
セレクタ644は、“0”、“1”、“2”のうちいずれかを、切替信号として入力する。切替信号が“0”であるときには、セレクタ644は、出力量子化ステップ値として、補正されていない入力量子化ステップ値を出力する。切替信号が“1”であるときには、セレクタ644は、出力量子化ステップ値として、乗算係数を乗算された入力量子化ステップ値を出力する。切替信号が“2”であるときには、セレクタ644は、出力量子化ステップ値として、加算係数を加算された入力量子化ステップ値を出力する。
The
画像中心に近い画像領域については、出力量子化ステップ値は小さく設定される。画像中心から遠い画像領域については、出力量子化ステップ値は大きく設定される。 For an image region close to the image center, the output quantization step value is set small. For an image region far from the image center, the output quantization step value is set large.
すなわち、中央画像領域については、多くの出力ビット数が割り当てられることにより、画質をより向上させることができる。そして、中央画像領域以外の画像領域については、多くの出力ビット数が割り当てられなくても、画質を過度に劣化させることはない。これにより、画像全体の符号量調整も図られる。 In other words, the image quality can be further improved by assigning a large number of output bits to the central image area. For image areas other than the central image area, even if a large number of output bits are not assigned, the image quality is not excessively degraded. Thereby, the code amount adjustment of the whole image is also achieved.
乗算係数2次元LUT641Mおよび加算係数2次元LUT641Aの内容は、時間変化することなく固定されていてもよく、CPU5により時々刻々と書き換えられてもよい。セレクタ644への切替信号は、時間変化することなく固定されていてもよく、CPU5により時々刻々と更新されてもよい。座標位置評価値MB_Addr_x、MB_Addr_yは、カテゴリ化されていてもよい。このときには、カテゴリのレンジは任意であり、カテゴリ化を利用する次元数は任意である。出力量子化ステップ値を小さくする画像領域は、中央画像領域のみならず、顔画像領域であってもよい。このときには、顔画像領域の座標位置が評価値算出部7により指定されればよい。
The contents of the multiplication coefficient two-
[量子化ステップ値決定部のまとめ]
量子化ステップ値決定部6は、各マクロブロックについて、様々な特性評価値に基づいて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定する。トランスコーダ1は、画質調整および符号量調整をよりきめ細やかにできる。
[Summary of quantization step value determination unit]
The quantization step
量子化ステップ値決定部6において、第1決定部61などの決定部の個数および配列順序は任意である。第1決定部61などの決定部において、乗算係数LUTおよび加算係数LUTの変数の個数および組み合わせは任意である。
In the quantization step
量子化ステップ値決定部6において、たとえば、第2決定部62、第1決定部61、第4決定部64、第3決定部63が、以上の順序により配列されていてもよい。乗算係数LUTおよび加算係数LUTにおいて、たとえば、肌色色度評価値h_SkinTone_MB、空間変化評価値h_ACT_MB、時間変化評価値h_MVbit_MBが、3変数として設定されていてもよい。
In the quantization step
{第2の実施の形態}
[量子化ステップ値決定部の構成要素]
次に、第2の実施の形態について説明する。第1および第2の実施の形態を比較して、量子化ステップ値決定部6が主に相違する。図15は、量子化ステップ値決定部6の構成要素を示すブロック図である。第1および第2の実施の形態を比較して、第5決定部65が第4決定部64の下流側に配置されている。
{Second Embodiment}
[Components of quantization step value determination unit]
Next, a second embodiment will be described. The quantization step
第5決定部65は、各マクロブロックについて、第4決定部64により補正された量子化ステップ値を第4決定部64から入力して、トランスコーダ1から出力される出力画像の量子化ステップ値をエンコーダ3に出力する。第5決定部65は、各マクロブロックについて、第4決定部64により補正された量子化ステップ値を補正するにあたり、空間方向の変化度合を示す空間変化評価値を利用する。
The
[第5決定部の処理内容]
図16は、第5決定部65の構成要素を示すブロック図である。第5決定部65は、図16の左端において、「入力量子化ステップ値」、「ACT_MB」、「ACT_PIC」を入力する。第5決定部65は、図16の右端において、「出力量子化ステップ値」を出力する。
[Processing content of fifth determining unit]
FIG. 16 is a block diagram showing components of the fifth determining
「入力量子化ステップ値」は、各マクロブロックにおける、第4決定部64により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1から出力される出力画像の量子化ステップ値である。
The “input quantization step value” is a quantization step value corrected by the
「ACT_MB」は、各マクロブロックにおける、空間方向の変化度合を示す空間変化評価値である。「ACT_PIC」は、各フレームにおける、全マクロブロックの空間変化評価値ACT_MBの平均を示す空間変化評価平均値である。空間変化評価値ACT_MBおよび空間変化評価平均値ACT_PICは、以下に説明するように算出される。まず、評価値算出部7は、デコーダ2から復号画像を入力する。次に、評価値算出部7は、復号画像の各マクロブロックにおいて、各画素値および平均画素値の差分絶対値を、各画素について加算することにより、空間変化評価値ACT_MBを算出する。次に、評価値算出部7は、復号画像の各フレームにおいて、全マクロブロックの空間変化評価値ACT_MBの平均を算出することにより、空間変化評価平均値ACT_PICを算出する。
“ACT_MB” is a spatial change evaluation value indicating the degree of change in the spatial direction in each macroblock. “ACT_PIC” is a spatial change evaluation average value indicating the average of the spatial change evaluation values ACT_MB of all macroblocks in each frame. The space change evaluation value ACT_MB and the space change evaluation average value ACT_PIC are calculated as described below. First, the evaluation
第5決定部65は、シフタ651、652、減算器653、乗算器654、リミッタ655、加算器656などから構成される。処理内容についても合わせて説明する。
The
シフタ651は、空間変化評価値ACT_MBを入力する。そして、シフタ651は、空間変化評価値ACT_MBについて、桁合わせのためのシフト演算を実行する。シフタ652は、空間変化評価平均値ACT_PICを入力する。そして、シフタ652は、空間変化評価平均値ACT_PICについて、桁合わせのためのシフト演算を実行する。
The
減算器653は、シフト演算を実行された空間変化評価値ACT_MB、および、シフト演算を実行された空間変化評価平均値ACT_PICを入力する。そして、減算器653は、シフト演算を実行された空間変化評価値ACT_MBから、シフト演算を実行された空間変化評価平均値ACT_PICを減算する。減算器653による減算値は、各マクロブロックにおける空間方向の変化度合が、各マクロブロックが属するフレームにおける空間方向の平均的な変化度合と比較して、どの程度ばらついているかを示す値である。
The
乗算器654は、減算器653による減算値を入力する。そして、乗算器654は、減算器653による減算値に、1より小さい正数である調整係数raqを乗算する。これにより、乗算器654は、減算器653による減算値の振れ幅を小さくする。
The
リミッタ655は、乗算器654による乗算値を入力する。また、リミッタ655は、上限閾値としてLIMIT_THRES_Hを入力して、下限閾値としてLIMIT_THRES_Lを入力する。そして、リミッタ655は、乗算器654による乗算値を上限閾値LIMIT_THRES_Hによりクリップして、乗算器654による乗算値を下限閾値LIMIT_THRES_Lによりクリップする。これにより、リミッタ655は、乗算器654による乗算値の振れ幅を小さくする。
The
加算器656は、入力量子化ステップ値、および、リミッタ655による出力値を入力する。そして、加算器656は、入力量子化ステップ値にリミッタ655による出力値を加算することにより、各マクロブロックにおける出力量子化ステップ値を決定する。
The
空間方向の変化度合が小さい画像領域については、出力量子化ステップ値は小さく設定される。空間方向の変化度合が大きい画像領域については、出力量子化ステップ値は大きく設定される。出力量子化ステップ値は過度に小さくならず、過度に大きくならない。 For an image region where the degree of change in the spatial direction is small, the output quantization step value is set small. For an image region having a large degree of change in the spatial direction, the output quantization step value is set large. The output quantization step value will not be too small and not too large.
すなわち、空間方向の変化度合が小さい画像領域については、多くの出力ビット数が割り当てられることにより、画質をより向上させることができる。そして、空間方向の変化度合が大きい画像領域については、多くの出力ビット数が割り当てられなくても、画質を過度に劣化させることはない。これにより、画像全体の符号量調整も図られる。 That is, for an image region having a small degree of change in the spatial direction, the image quality can be further improved by assigning a large number of output bits. For an image region having a large degree of change in the spatial direction, even if a large number of output bits are not assigned, the image quality is not excessively deteriorated. Thereby, the code amount adjustment of the whole image is also achieved.
調整係数raq、上限閾値LIMIT_THRES_H、下限閾値LIMIT_THRES_Lは、時間変化することなく固定されていてもよく、CPU5により時々刻々と書き換えられてもよい。量子化ステップ値決定部6において、第1決定部61などの決定部の個数および配列順序は任意である。
The adjustment coefficient r aq , the upper limit threshold LIMIT_THRES_H, and the lower limit threshold LIMIT_THRES_L may be fixed without changing over time, or may be rewritten by the
{第3の実施の形態}
[量子化ステップ値決定部の構成要素]
次に、第3の実施の形態について説明する。第2および第3の実施の形態を比較して、量子化ステップ値決定部6が主に相違する。図17は、量子化ステップ値決定部6の構成要素を示すブロック図である。第2および第3の実施の形態を比較して、微調整部66が第5決定部65の下流側に配置されている。
{Third embodiment}
[Components of quantization step value determination unit]
Next, a third embodiment will be described. The quantization step
微調整部66は、各マクロブロックについて、第5決定部65により補正された量子化ステップ値を第5決定部65から入力して、トランスコーダ1から出力される出力画像の量子化ステップ値をエンコーダ3に出力する。微調整部66は、各マクロブロックについて、第5決定部65により補正された量子化ステップ値を微調整するにあたり、乗算微調整係数および加算微調整係数を利用する。
The
[微調整部の処理内容]
図18は、微調整部66の構成要素を示すブロック図である。微調整部66は、図18の左端において、「入力量子化ステップ値」、「P_type_MB」を入力する。微調整部66は、図18の右端において、「出力量子化ステップ値」を出力する。
[Details of fine adjustment processing]
FIG. 18 is a block diagram illustrating components of the
「入力量子化ステップ値」は、各マクロブロックにおける、第5決定部65により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1から出力される出力画像の量子化ステップ値である。
The “input quantization step value” is a quantization step value corrected by the
「P_type_MB」は、各マクロブロックにおける、ピクチャ種類を示すパラメータである。ピクチャ種類として、Iピクチャ、Pピクチャ、Bピクチャ、PピクチャまたはBピクチャにおけるイントラマクロブロックがあげられる。 “P_type_MB” is a parameter indicating the picture type in each macroblock. Examples of picture types include intra macroblocks in I pictures, P pictures, B pictures, P pictures, or B pictures.
微調整部66は、乗算器661、セレクタ662、加算器663、セレクタ664などから構成される。処理内容についても合わせて説明する。
The
乗算器661は、入力量子化ステップ値を入力する。そして、乗算器661は、入力量子化ステップ値に、乗算微調整係数を乗算する。ここで、乗算微調整係数は、以下に説明するように決定される。
The
セレクタ662は、ピクチャ種類P_type_MBを切替信号として入力する。ピクチャ種類P_type_MBがIピクチャ、Pピクチャ、Bピクチャ、PピクチャまたはBピクチャのイントラマクロブロックであるときには、セレクタ662は、乗算微調整係数として、それぞれ、αI、αP、αB、αI−PBを出力する。
The
加算器663は、乗算器661による乗算値を入力する。そして、加算器663は、乗算器661による乗算値に、加算微調整係数を加算する。ここで、加算微調整係数は、以下に説明するように決定される。
The
セレクタ664は、ピクチャ種類P_type_MBを切替信号として入力する。ピクチャ種類P_type_MBがIピクチャ、Pピクチャ、Bピクチャ、PピクチャまたはBピクチャのイントラマクロブロックであるときには、セレクタ664は、加算微調整係数として、それぞれ、βI、βP、βB、βI−PBを出力する。
The
第1決定部61から第5決定部65までにおいて、出力量子化ステップ値の補正が実行されて、微調整部66において、出力量子化ステップ値の微調整が実行される。乗算微調整係数αI、αP、αB、αI−PB、および、加算微調整係数βI、βP、βB、βI−PBは、時間変化することなく固定されていてもよく、CPU5により時々刻々と書き換えられてもよい。量子化ステップ値決定部6において、第1決定部61などの決定部および微調整部66など微調整部の個数および配列順序は任意である。
From the
1 トランスコーダ
2 デコーダ
3 エンコーダ
4 処理設定部
5 CPU
6 量子化ステップ値決定部
7 評価値算出部
8 画像メモリ
61、61A、61B 第1決定部
62 第2決定部
63 第3決定部
64 第4決定部
65 第5決定部
66 微調整部
1
6 quantization step
Claims (25)
復号画像を符号化して出力画像を生成するエンコーダと、
を備えるトランスコーダであって、
各マクロブロックにおける空間方向の変化度合を示す空間変化評価値を算出する空間変化評価値算出部と、
各マクロブロックにおける時間方向の変化度合を示す時間変化評価値を算出する時間変化評価値算出部と、
前記空間変化評価値と前記時間変化評価値に基づいて、補正係数を利用することにより、各マクロブロックの入力量子化ステップ値を補正して、各マクロブロックの出力量子化ステップ値を決定する量子化ステップ値決定部と、
を備えることを特徴とするトランスコーダ。 A decoder that decodes an input image to generate a decoded image;
An encoder that encodes the decoded image to generate an output image;
A transcoder comprising:
A spatial change evaluation value calculation unit that calculates a spatial change evaluation value indicating the degree of change in the spatial direction in each macroblock;
A time change evaluation value calculation unit for calculating a time change evaluation value indicating the degree of change in the time direction in each macroblock;
Based on the space change evaluation value and the time change evaluation value, a quantization coefficient is used to correct an input quantization step value of each macroblock and determine an output quantization step value of each macroblock. A step value determination unit;
A transcoder comprising:
前記量子化ステップ値決定部は、前記空間変化評価値が大きいほど、出力量子化ステップ値を小さく決定して、前記時間変化評価値が大きいほど、出力量子化ステップ値を小さく決定することを特徴とするトランスコーダ。 The transcoder of claim 1 .
The quantization step value determination unit determines an output quantization step value to be smaller as the spatial change evaluation value is larger, and determines an output quantization step value to be smaller as the temporal change evaluation value is larger. Transcoder.
前記量子化ステップ値決定部は、各マクロブロックのピクチャ種類に基づいて、出力量子化ステップ値を決定することを特徴とするトランスコーダ。 The transcoder according to claim 1 or 2 ,
The transcoder, wherein the quantization step value determination unit determines an output quantization step value based on a picture type of each macroblock.
前記空間変化評価値は、
復号画像の各マクロブロックにおいて、各画素値と平均画素値の差分絶対値を、各画素について加算した画像内差分絶対値和、
を含むことを特徴とするトランスコーダ。 The transcoder according to any one of claims 1 to 3,
The spatial change evaluation value is
In each macroblock of the decoded image, the difference absolute value sum of each pixel value and the average pixel value for each pixel is added,
Transcoder characterized by including.
前記時間変化評価値は、
入力画像の各マクロブロックにおける動きベクトルの大きさ、
を含むことを特徴とするトランスコーダ。 The transcoder according to any one of claims 1 to 4,
The time change evaluation value is
The magnitude of the motion vector in each macroblock of the input image,
Transcoder characterized by including.
前記時間変化評価値は、
入力画像の各マクロブロックにおける動きベクトルの符号量、
を含むことを特徴とするトランスコーダ。 The transcoder according to any one of claims 1 to 4,
The time change evaluation value is
Code amount of motion vector in each macroblock of the input image,
Transcoder characterized by including.
前記量子化ステップ値決定部は、
前記空間変化評価値と前記時間変化評価値を変数として、前記補正係数を格納する補正係数格納部、
を含むことを特徴とするトランスコーダ。 The transcoder according to any one of claims 1 to 6,
The quantization step value determination unit
A correction coefficient storage unit that stores the correction coefficient using the space change evaluation value and the time change evaluation value as variables,
Transcoder characterized by including.
復号画像を符号化して出力画像を生成するエンコーダと、
を備えるトランスコーダであって、
各マクロブロックにおける空間方向の変化度合を示す空間変化評価値を算出する空間変化評価値算出部と、
各マクロブロックにおける所定色度を示す所定色度評価値を算出する所定色度評価値算出部と、
前記空間変化評価値と前記所定色度評価値に基づいて、補正係数を利用することにより、 各マクロブロックの入力量子化ステップ値を補正して、各マクロブロックの出力量子化ステップ値を決定する量子化ステップ値決定部と、
を備えることを特徴とするトランスコーダ。 A decoder that decodes an input image to generate a decoded image;
An encoder that encodes the decoded image to generate an output image;
A transcoder comprising:
A spatial change evaluation value calculation unit that calculates a spatial change evaluation value indicating the degree of change in the spatial direction in each macroblock;
A predetermined chromaticity evaluation value calculating unit that calculates a predetermined chromaticity evaluation value indicating a predetermined chromaticity in each macroblock;
Based on the spatial change evaluation value and the predetermined chromaticity evaluation value, the input quantization step value of each macroblock is corrected by using a correction coefficient, and the output quantization step value of each macroblock is determined. A quantization step value determination unit;
A transcoder comprising:
前記所定色度評価値は、
復号画像の各マクロブロックにおける肌色色度を示す肌色色度評価値、
を含み、
前記量子化ステップ値決定部は、前記空間変化評価値が小さいほど、出力量子化ステップ値を小さく決定して、前記肌色色度評価値が大きいほど、出力量子化ステップ値を小さく決定することを特徴とするトランスコーダ。 The transcoder according to claim 8 , wherein
The predetermined chromaticity evaluation value is:
Skin color chromaticity evaluation value indicating the skin color chromaticity in each macroblock of the decoded image,
Including
The quantization step value determination unit determines an output quantization step value to be smaller as the spatial change evaluation value is smaller, and determines an output quantization step value to be smaller as the skin color chromaticity evaluation value is larger. A characteristic transcoder.
前記空間変化評価値は、
復号画像の各マクロブロックにおいて、各画素値と平均画素値の差分絶対値を、各画素について加算した画像内差分絶対値和、
を含むことを特徴とするトランスコーダ。 The transcoder according to claim 8 or 9 ,
The spatial change evaluation value is
In each macroblock of the decoded image, the difference absolute value sum of each pixel value and the average pixel value for each pixel is added,
Transcoder characterized by including.
前記量子化ステップ値決定部は、
前記空間変化評価値と前記所定色度評価値を変数として、前記補正係数を格納する補正係数格納部、
を含むことを特徴とするトランスコーダ。 The transcoder according to any one of claims 8 to 10 ,
The quantization step value determination unit
A correction coefficient storage unit that stores the correction coefficient using the space change evaluation value and the predetermined chromaticity evaluation value as variables,
Transcoder characterized by including.
復号画像を符号化して出力画像を生成するエンコーダと、
を備えるトランスコーダであって、
各マクロブロックの位置を示す座標位置評価値を算出する座標位置評価値算出部と、
前記座標位置評価値に基づいて、補正係数を利用することにより、各マクロブロックの入力量子化ステップ値を補正して、各マクロブロックの出力量子化ステップ値を決定する量子化ステップ値決定部と、
を備えることを特徴とするトランスコーダ。 A decoder that decodes an input image to generate a decoded image;
An encoder that encodes the decoded image to generate an output image;
A transcoder comprising:
A coordinate position evaluation value calculation unit for calculating a coordinate position evaluation value indicating the position of each macroblock;
A quantization step value determining unit that corrects an input quantization step value of each macroblock by using a correction coefficient based on the coordinate position evaluation value and determines an output quantization step value of each macroblock; ,
A transcoder comprising:
前記量子化ステップ値決定部は、各マクロブロックの位置が画像中心の位置に近いほど、出力量子化ステップ値を小さく決定することを特徴とするトランスコーダ。 The transcoder according to claim 12 , wherein
The quantization step value determining unit determines the output quantization step value to be smaller as the position of each macroblock is closer to the center of the image.
前記量子化ステップ値決定部は、
前記座標位置評価値を変数として、前記補正係数を格納する補正係数格納部、
を含むことを特徴とするトランスコーダ。 The transcoder according to claim 12 or claim 13 ,
The quantization step value determination unit
A correction coefficient storage unit that stores the correction coefficient using the coordinate position evaluation value as a variable,
Transcoder characterized by including.
入力画像の入力ビットレートと、出力画像の出力ビットレートと、出力画像の目標ビットレートと、の時間変化に基づいて、前記補正係数を前記補正係数格納部に時々刻々と更新して書き込む補正係数更新書込部、
を備えることを特徴とするトランスコーダ。 The transcoder according to any one of claims 7 , 11 , and 14 ,
A correction coefficient that is updated and written to the correction coefficient storage unit every moment based on temporal changes of the input bit rate of the input image, the output bit rate of the output image, and the target bit rate of the output image Update writing section,
A transcoder comprising:
各マクロブロックにおける評価値に対して、所定個数の区分分けを実行する評価値区分分け部、
を備え、
前記量子化ステップ値決定部は、所定個数の区分分けを実行された評価値に基づいて、出力量子化ステップ値を決定することを特徴とするトランスコーダ。 The transcoder according to any one of claims 1 to 15 , further comprising:
An evaluation value classification unit that performs a predetermined number of classifications on the evaluation values in each macroblock,
With
The quantization step value determination unit determines an output quantization step value based on an evaluation value that has been subjected to a predetermined number of divisions.
各区分における評価値のレンジは、それぞれ等しいことを特徴とするトランスコーダ。 The transcoder of claim 16 .
A transcoder characterized in that the evaluation value ranges in each section are equal.
各区分における評価値のレンジは、それぞれ異なることを特徴とするトランスコーダ。 The transcoder of claim 16 .
Transcoders characterized by different evaluation value ranges in each category.
前記補正係数は、
出力量子化ステップ値が決定されるために、入力量子化ステップ値に乗算される乗算補正係数と、
出力量子化ステップ値が決定されるために、入力量子化ステップ値に加算される加算補正係数と、
を含むことを特徴とするトランスコーダ。 The transcoder according to any one of claims 1 to 14,
The correction factor is
A multiplication correction factor by which the input quantization step value is multiplied in order to determine the output quantization step value;
In order to determine the output quantization step value, an addition correction coefficient added to the input quantization step value;
Transcoder characterized by including.
前記乗算補正係数が入力量子化ステップ値に乗算された量子化ステップ値と、前記加算補正係数が入力量子化ステップ値に加算された量子化ステップ値と、前記乗算補正係数が入力量子化ステップ値に乗算されていない、かつ、前記加算補正係数が入力量子化ステップ値に加算されていない量子化ステップ値とのうち、いずれかの量子化ステップ値を出力量子化ステップ値として選択する出力量子化ステップ値選択部、
を備えることを特徴とするトランスコーダ。 The transcoder of claim 19 , further comprising:
A quantization step value obtained by multiplying the input quantization step value by the multiplication correction coefficient, a quantization step value obtained by adding the addition correction coefficient to the input quantization step value, and an input quantization step value obtained by the multiplication correction coefficient. Output quantization step value is selected as the output quantization step value from among the quantization step values that are not multiplied by and the addition correction coefficient is not added to the input quantization step value Step value selector,
A transcoder comprising:
前記量子化ステップ値決定部は、
前記補正係数により補正された出力量子化ステップ値に対して、微調整係数により微調整された出力量子化ステップ値を算出する微調整部、
を含むことを特徴とするトランスコーダ。 The transcoder according to any one of claims 1 to 20 ,
The quantization step value determination unit
A fine adjustment unit that calculates an output quantization step value finely adjusted by a fine adjustment coefficient with respect to the output quantization step value corrected by the correction coefficient,
Transcoder characterized by including.
前記微調整係数は、
前記補正係数により補正された出力量子化ステップ値に乗算される乗算微調整係数、
を含むことを特徴とするトランスコーダ。 The transcoder of claim 21 .
The fine adjustment factor is
A multiplication fine adjustment coefficient to be multiplied by the output quantization step value corrected by the correction coefficient;
Transcoder characterized by including.
前記微調整係数は、
前記補正係数により補正された出力量子化ステップ値に加算される加算微調整係数、
を含むことを特徴とするトランスコーダ。 The transcoder according to claim 21 or claim 22 ,
The fine adjustment factor is
An addition fine adjustment coefficient to be added to the output quantization step value corrected by the correction coefficient;
Transcoder characterized by including.
前記微調整係数は、各マクロブロックのピクチャ種類に基づいて、それぞれ設定されることを特徴とするトランスコーダ。
24. The transcoder according to any one of claims 21 to 23 , wherein:
The transcoder, wherein the fine adjustment coefficient is set based on a picture type of each macroblock.
前記微調整係数は、入力画像の入力ビットレートと、出力画像の出力ビットレートと、出力画像の目標ビットレートと、の時間変化に基づいて、時々刻々と更新されることを特徴とするトランスコーダ。
25. The transcoder according to any one of claims 21 to 24 , wherein:
The fine adjustment coefficient is updated from time to time based on temporal changes of the input bit rate of the input image, the output bit rate of the output image, and the target bit rate of the output image. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013079401A JP5559902B2 (en) | 2013-04-05 | 2013-04-05 | Transcoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013079401A JP5559902B2 (en) | 2013-04-05 | 2013-04-05 | Transcoder |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008130335A Division JP5505822B2 (en) | 2008-05-19 | 2008-05-19 | Transcoder |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013158041A true JP2013158041A (en) | 2013-08-15 |
JP5559902B2 JP5559902B2 (en) | 2014-07-23 |
Family
ID=49052747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013079401A Expired - Fee Related JP5559902B2 (en) | 2013-04-05 | 2013-04-05 | Transcoder |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5559902B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015177295A (en) * | 2014-03-14 | 2015-10-05 | 三菱電機株式会社 | Terminal apparatus and data management apparatus |
JP2015177294A (en) * | 2014-03-14 | 2015-10-05 | 三菱電機株式会社 | Terminal device and data management device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001078193A (en) * | 1999-06-30 | 2001-03-23 | Media Glue Corp | Moving picture compression coded signal conversion method and device |
JP2002223443A (en) * | 2001-01-24 | 2002-08-09 | Yamaha Corp | Transcoding method and transcoder |
JP2003087785A (en) * | 2001-06-29 | 2003-03-20 | Toshiba Corp | Method of converting format of encoded video data and apparatus therefor |
JP2003244706A (en) * | 2002-02-21 | 2003-08-29 | Nec Corp | Image encoded data conversion apparatus and conversion method, and conversion program |
JP2005328434A (en) * | 2004-05-17 | 2005-11-24 | Sony Corp | Coding device and method, program of coding method, and recording medium recording program of coding method thereon |
JP2006086964A (en) * | 2004-09-17 | 2006-03-30 | Toshiba Corp | Bit rate conversion apparatus and bit rate conversion method |
JP2006295449A (en) * | 2005-04-08 | 2006-10-26 | Matsushita Electric Ind Co Ltd | Rate converting method and rate converter |
JP2006311079A (en) * | 2005-04-27 | 2006-11-09 | Victor Co Of Japan Ltd | Image bit stream conversion apparatus |
JP2008042426A (en) * | 2006-08-04 | 2008-02-21 | Megachips Lsi Solutions Inc | Transcoder and encoded image conversion method |
-
2013
- 2013-04-05 JP JP2013079401A patent/JP5559902B2/en not_active Expired - Fee Related
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001078193A (en) * | 1999-06-30 | 2001-03-23 | Media Glue Corp | Moving picture compression coded signal conversion method and device |
JP2002223443A (en) * | 2001-01-24 | 2002-08-09 | Yamaha Corp | Transcoding method and transcoder |
JP2003087785A (en) * | 2001-06-29 | 2003-03-20 | Toshiba Corp | Method of converting format of encoded video data and apparatus therefor |
JP2003244706A (en) * | 2002-02-21 | 2003-08-29 | Nec Corp | Image encoded data conversion apparatus and conversion method, and conversion program |
JP2005328434A (en) * | 2004-05-17 | 2005-11-24 | Sony Corp | Coding device and method, program of coding method, and recording medium recording program of coding method thereon |
JP2006086964A (en) * | 2004-09-17 | 2006-03-30 | Toshiba Corp | Bit rate conversion apparatus and bit rate conversion method |
JP2006295449A (en) * | 2005-04-08 | 2006-10-26 | Matsushita Electric Ind Co Ltd | Rate converting method and rate converter |
JP2006311079A (en) * | 2005-04-27 | 2006-11-09 | Victor Co Of Japan Ltd | Image bit stream conversion apparatus |
JP2008042426A (en) * | 2006-08-04 | 2008-02-21 | Megachips Lsi Solutions Inc | Transcoder and encoded image conversion method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015177295A (en) * | 2014-03-14 | 2015-10-05 | 三菱電機株式会社 | Terminal apparatus and data management apparatus |
JP2015177294A (en) * | 2014-03-14 | 2015-10-05 | 三菱電機株式会社 | Terminal device and data management device |
Also Published As
Publication number | Publication date |
---|---|
JP5559902B2 (en) | 2014-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4624321B2 (en) | Transcoder and coded image conversion method | |
CN110024387B (en) | Encoding device, decoding device, encoding method, and decoding method | |
JP4529919B2 (en) | Adaptive quantization apparatus and adaptive quantization program | |
JP5502336B2 (en) | Video signal encoding apparatus and video signal encoding method | |
US8699563B2 (en) | Image coding apparatus and image coding method | |
JPH1079948A (en) | Image encoding device | |
JP5133290B2 (en) | Video encoding apparatus and decoding apparatus | |
KR19990076563A (en) | Video coding method | |
JP2014511632A (en) | Deblocking filtering control | |
US11432005B2 (en) | Moving image encoding device | |
JP5076083B2 (en) | Transcoder | |
US20220141458A1 (en) | Information processing device, information processing method, and program | |
JP5559902B2 (en) | Transcoder | |
JP5505822B2 (en) | Transcoder | |
JP4736619B2 (en) | Image processing apparatus and image processing method | |
KR100708182B1 (en) | Rate control apparatus and method in video encoder | |
KR101522391B1 (en) | Quantization control device and method, and quantization control program | |
JP5256803B2 (en) | Transcoder | |
JP2007124580A (en) | Moving picture encoding program, program storage medium and encoder | |
US8422807B2 (en) | Encoder and image conversion apparatus | |
WO2009147878A1 (en) | Transcoder | |
JP5391479B2 (en) | Encoder | |
JP3711573B2 (en) | Image coding apparatus and image coding method | |
JP7357481B2 (en) | Deblocking filter control device and program | |
JP5238735B2 (en) | Signal correction apparatus, encoding apparatus, decoding apparatus, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131202 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20131210 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140207 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140304 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140416 |
|
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: 20140520 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140606 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5559902 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |