JP2013158041A - Transcoder - Google Patents

Transcoder Download PDF

Info

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
Application number
JP2013079401A
Other languages
Japanese (ja)
Other versions
JP5559902B2 (en
Inventor
Hiroshi Hasegawa
弘 長谷川
Akira Okamoto
彰 岡本
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.)
MegaChips Corp
Original Assignee
MegaChips 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 MegaChips Corp filed Critical MegaChips Corp
Priority to JP2013079401A priority Critical patent/JP5559902B2/en
Publication of JP2013158041A publication Critical patent/JP2013158041A/en
Application granted granted Critical
Publication of JP5559902B2 publication Critical patent/JP5559902B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a technique that enables more minute image quality adjustment and code amount adjustment at a transcoder that decodes an input image into a decoded image and encodes the decoded image into an output image.SOLUTION: A quantization step value determination part 6 determines an output quantization step value for each macro block by correcting an input quantization step value based on various characteristic evaluation values. A CPU 5 controls the quantization step value determination part 6 in accordance with an input/output state based on an input bit rate, an output bit rate, and a target bit rate. The transcoder 1 is capable of performing image quality adjustment and code amount adjustment more minutely. As the various characteristic evaluation values, it is possible to cite an evaluation value indicative of a change degree in a space direction, an evaluation value indicative of a change degree in a time direction, an evaluation value indicative of a prediction error in the time direction, an evaluation value indicative of skin color chromaticity, and an evaluation value indicative of a coordinate position of each macro block.

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 Patent Document 1 reduces the image quality degradation of image data and reduces the transmission burden and storage burden of image data. That is, the transcoder calculates the degree of change in the space / time direction for each macroblock. Then, for each macroblock, the transcoder corrects the quantization step value in the first coding scheme based on the degree of change in the space / time direction, and determines the quantization step value in the second coding scheme. .

すなわち、トランスコーダは、画像データの画質を高くする必要がある画像領域については、第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.

特開2008−42426号公報JP 2008-42426 A

特許文献1のトランスコーダは、画像データの画質低下を低減させるとともに、画像データの伝送負担および記憶負担を低減させる。すなわち、トランスコーダは、各マクロブロックについて、空間/時間方向の変化度合に基づいて、第1符号化方式における量子化ステップ値を補正して、第2符号化方式における量子化ステップ値を決定する。しかし、トランスコーダは、他のパラメータによる評価を加味することにより、画質調整および符号量調整をさらにきめ細やかにできることが期待される。   The transcoder disclosed in Patent Document 1 reduces the image quality degradation of image data and reduces the transmission burden and storage burden of image data. That is, for each macroblock, the transcoder corrects the quantization step value in the first coding scheme based on the degree of change in the space / time direction, and determines the quantization step value in the second coding scheme. . However, it is expected that the transcoder can finely adjust the image quality and the code amount by taking into account the evaluation based on other parameters.

そこで、本発明は前記問題点に鑑み、入力画像を復号画像に復号化して、復号画像を出力画像に符号化するトランスコーダにおいて、画質調整および符号量調整をよりきめ細やかにできる技術を提供することを目的とする。   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 invention 1 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. A spatial change evaluation value calculation unit that calculates a spatial change evaluation value that indicates the degree of change in the spatial direction in a prediction error evaluation value calculation unit that calculates a prediction error evaluation value that indicates a prediction error in the time direction in each macroblock, Quantization that corrects the input quantization step value of each macroblock and determines the output quantization step value of each macroblock by using a correction coefficient based on the spatial change evaluation value and the prediction error evaluation value A step value determining unit, wherein the correction coefficient is multiplied by an input quantization step value to determine an output quantization step value. And coefficient, in order to output the quantization step value is determined, characterized in that it comprises a, and adding the correction factor to be added to the input quantization step value.

発明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 transcoder Invention 1 or Invention 2, the quantization step value determining unit, the smaller the spatial change evaluation value, to determine low output quantization step value, the larger the prediction error evaluation value As a result, the output quantization step value is determined to be small.

発明4は、発明1ないし発明3のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、各マクロブロックのピクチャ種類に基づいて、出力量子化ステップ値を決定することを特徴とする。 A fourth aspect of the present invention is any of the transcoder of the invention 1 to invention 3, the quantization step value determining unit, based on the picture type of each macroblock, and determines the output quantization step value.

発明5は、発明1ないし発明4のいずれかのトランスコーダにおいて、前記空間変化評価値は、復号画像の各マクロブロックにおいて、各画素値と平均画素値の差分絶対値を、各画素について加算した画像内差分絶対値和、を含むことを特徴とする。 A fifth aspect of the present invention is any of the transcoder of the invention 1 to invention 4, the spatial variation evaluation value in each macroblock of the decoded image, a difference absolute value of the average pixel value and the pixel value, obtained by adding for each pixel Intra-image difference absolute value sum is included.

発明6は、発明1ないし発明5のいずれかのトランスコーダにおいて、前記予測誤差評価値は、復号画像と参照画像の各マクロブロックにおいて、各対応画素値の差分絶対値を、各対応画素について加算した画像間差分絶対値和、を含むことを特徴とする。 Invention 6, in any of the transcoder of the invention 1 to invention 5, the prediction error evaluation value in each macroblock of the decoded image and the reference image, the difference absolute value of each corresponding pixel value, added up for each corresponding pixel The sum of absolute differences between images is included.

発明7は、発明1ないし発明6のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値と前記予測誤差評価値の比率を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。 Invention 7, the invention in one to one of transcoders invention 6, the quantization step value determining unit, the ratio of the prediction error evaluation value and the spatial variation evaluation value as a variable, the correction for storing said correction factor A coefficient storage unit.

発明8は、発明1ないし発明6のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値と前記予測誤差評価値を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。 An invention 8 is the transcoder according to any one of the invention 1 to the invention 6, wherein the quantization step value determination unit stores the correction coefficient using the spatial change evaluation value and the prediction error evaluation value as variables. Part.

発明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のいずれかのトランスコーダにおいて、前記空間変化評価値は、復号画像の各マクロブロックにおいて、各画素値と平均画素値の差分絶対値を、各画素について加算した画像内差分絶対値和、を含むことを特徴とする。 Invention 12, in any one of the transcoder of the invention 9 to invention 11, the spatial variation evaluation value in each macroblock of the decoded image, a difference absolute value of the average pixel value and the pixel value, obtained by adding for each pixel Intra-image difference absolute value sum is included.

発明13は、発明9ないし発明12のいずれかのトランスコーダにおいて、前記時間変化評価値は、入力画像の各マクロブロックにおける動きベクトルの大きさ、を含むことを特徴とする。 Invention 13, in any one of the transcoder of the invention 9 to invention 12, wherein the time variation evaluation value, characterized in that it comprises a size of the motion vector in each macroblock of the input image.

発明14は、発明9ないし発明12のいずれかのトランスコーダにおいて、前記時間変化評価値は、入力画像の各マクロブロックにおける動きベクトルの符号量、を含むことを特徴とする。 Invention 14, in any one of the transcoder of the invention 9 to invention 12, wherein the time variation evaluation value, characterized in that it comprises a code amount of motion vectors in each macroblock of the input image.

発明15は、発明9ないし発明14のいずれかのトランスコーダにおいて、前記量子化ステップ値決定部は、前記空間変化評価値と前記時間変化評価値を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。 Invention 15, the invention 9 to in any of the transcoders invention 14, the quantization step value determining unit, the time variation evaluation value and the spatial variation evaluation value as a variable, stored correction coefficients for storing said correction factor Part.

発明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 invention 16 or the invention 17, wherein the spatial change evaluation value is an intra-image difference obtained by adding a difference absolute value between each pixel value and an average pixel value for each pixel in each macroblock of the decoded image. A sum of absolute values.

発明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は、入力画像を復号化して復号画像を生成するデコーダと、復号画像を符号化して出力画像を生成するエンコーダと、を備えるトランスコーダであって、各マクロブロックの位置を示す座標位置評価値を算出する座標位置評価値算出部と、前記座標位置評価値に基づいて、補正係数を利用することにより、各マクロブロックの入力量子化ステップ値を補正して、各マクロブロックの出力量子化ステップ値を決定する量子化ステップ値決定部と、を備えることを特徴とする。 Invention 20 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 coordinate position evaluation indicates the position of each macroblock. A coordinate position evaluation value calculation unit for calculating a value, and using the correction coefficient based on the coordinate position evaluation value, the input quantization step value of each macroblock is corrected, and the output quantization of each macroblock A quantization step value determination unit that determines a step value.

発明21は、発明20のトランスコーダにおいて、前記量子化ステップ値決定部は、各マクロブロックの位置が画像中心の位置に近いほど、出力量子化ステップ値を小さく決定することを特徴とする。 Invention 21, in the transcoder of the invention 20, the quantization step value determining unit, the position of each macro block is closer to the position of the image center, and determines reduce the output quantization step value.

発明22は、発明20または発明21のトランスコーダにおいて、前記量子化ステップ値決定部は、前記座標位置評価値を変数として、前記補正係数を格納する補正係数格納部、を含むことを特徴とする。 Invention 22, in the transcoder of the invention 20 or invention 21, the quantization step value determining unit, the coordinate position evaluation value as a variable, characterized in that it comprises a correction coefficient storage unit, for storing said correction factor .

発明23は、発明7、発明8、発明15、発明19、発明22のいずれかのトランスコーダにおいて、さらに、入力画像の入力ビットレートと、出力画像の出力ビットレートと、出力画像の目標ビットレートと、の時間変化に基づいて、前記補正係数を前記補正係数格納部に時々刻々と更新して書き込む補正係数更新書込部、を備えることを特徴とする。 Invention 23, the invention 7, the invention 8, the invention 15, the invention 19, in any of the transcoders invention 22 further comprises an input bit rate of the input image, the output bit rate of the output image, the target bit rate of the output image And a correction coefficient update writing unit that updates and writes the correction coefficient to the correction coefficient storage unit every moment based on the time change.

発明24は、発明1ないし発明23のいずれかのトランスコーダにおいて、さらに、各マクロブロックにおける評価値に対して、所定個数の区分分けを実行する評価値区分分け部、を備え、前記量子化ステップ値決定部は、所定個数の区分分けを実行された評価値に基づいて、出力量子化ステップ値を決定することを特徴とする。 Invention 24, the invention in any of the transcoder 1 to invention 23, further the evaluation value for each macroblock, comprising an evaluation value division divided unit, to perform division classification of a predetermined number, the quantization step The value determining unit determines the output quantization step value based on the evaluation value that has been subjected to the predetermined number of divisions.

発明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 invention 1 to the invention 28, wherein the quantization step value determining unit is finely adjusted by a fine adjustment coefficient with respect to the output quantization step value corrected by the correction coefficient. A fine adjustment unit for calculating an output quantization step value.

発明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 invention 30, the fine adjustment factor, characterized in that it comprises a summing fine adjustment factor, which is added to the correction output quantization step value by the correction coefficient.

発明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.

トランスコーダの構成要素を示すブロック図である。It is a block diagram which shows the component of a transcoder. 量子化ステップ値決定部の構成要素を示すブロック図である。It is a block diagram which shows the component of a quantization step value determination part. 第1決定部の構成要素を示すブロック図である。It is a block diagram which shows the component of a 1st determination part. 第1決定部におけるLUTの内容を示す図である。It is a figure which shows the content of LUT in a 1st determination part. 第1決定部の構成要素を示すブロック図である。It is a block diagram which shows the component of a 1st determination part. 評価値のカテゴリ化方法を示す図である。It is a figure which shows the categorization method of an evaluation value. 第1決定部におけるLUTの内容を示す図である。It is a figure which shows the content of LUT in a 1st determination part. 第2決定部の構成要素を示すブロック図である。It is a block diagram which shows the component of a 2nd determination part. 第2決定部におけるLUTの内容を示す図である。It is a figure which shows the content of LUT in a 2nd determination part. 論理回路部における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in a logic circuit part. 第3決定部の構成要素を示すブロック図である。It is a block diagram which shows the component of a 3rd determination part. 第3決定部におけるLUTの内容を示す図である。It is a figure which shows the content of LUT in a 3rd determination part. 第4決定部の構成要素を示すブロック図であるIt is a block diagram which shows the component of a 4th determination part. 第4決定部におけるLUTの内容を示す図である。It is a figure which shows the content of LUT in a 4th determination part. 量子化ステップ値決定部の構成要素を示すブロック図である。It is a block diagram which shows the component of a quantization step value determination part. 第5決定部の構成要素を示すブロック図である。It is a block diagram which shows the component of a 5th determination part. 量子化ステップ値決定部の構成要素を示すブロック図である。It is a block diagram which shows the component of a quantization step value determination part. 微調整部の構成要素を示すブロック図である。It is a block diagram which shows the component of a fine adjustment part.

{第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 transcoder 1. The transcoder 1 inputs an input image encoded by MPEG2, An output image encoded by H.264 is output. The encoding method of the input image and the output image is MPEG2 or H.264. It is not limited to H.264. The encoding method of the input image and the output image may be different or the same.

トランスコーダ1は、デコーダ2、エンコーダ3、処理設定部4、CPU5、量子化ステップ値決定部6、評価値算出部7、画像メモリ8などから構成される。   The transcoder 1 includes a decoder 2, an encoder 3, a process setting unit 4, a CPU 5, a quantization step value determining unit 6, an evaluation value calculating unit 7, an image memory 8, and the like.

デコーダ2は、入力画像を復号化して、復号画像を生成する。すなわち、デコーダ2は、復号化、逆量子化、周波数逆変換を、以上の順序により実行する。エンコーダ3は、復号画像を符号化して、出力画像を生成する。すなわち、エンコーダ3は、周波数変換、量子化、符号化を、以上の順序により実行する。   The decoder 2 decodes the input image and generates a decoded image. That is, the decoder 2 performs decoding, inverse quantization, and frequency inverse transform in the above order. The encoder 3 encodes the decoded image and generates an output image. That is, the encoder 3 performs frequency conversion, quantization, and encoding in the above order.

処理設定部4は、目標ビットレートなどの処理設定を、トランスコーダ1のユーザから受け付ける。CPU5は、デコーダ2から通知された入力ビットレート、エンコーダ3から通知された出力ビットレート、処理設定部4から通知された目標ビットレートに基づいて、トランスコーダ1を統括的に制御する。   The process setting unit 4 receives process settings such as a target bit rate from the user of the transcoder 1. The CPU 5 comprehensively controls the transcoder 1 based on the input bit rate notified from the decoder 2, the output bit rate notified from the encoder 3, and the target bit rate notified from the processing setting unit 4.

量子化ステップ値決定部6は、各マクロブロックについて、入力画像の量子化ステップ値をデコーダ2から入力して補正する。量子化ステップ値決定部6は、各マクロブロックについて、出力画像の量子化ステップ値を決定してエンコーダ3に出力する。   The quantization step value determination unit 6 inputs and corrects the quantization step value of the input image from the decoder 2 for each macroblock. The quantization step value determination unit 6 determines the quantization step value of the output image for each macroblock and outputs it to the encoder 3.

評価値算出部7は、復号画像をデコーダ2から入力して、各マクロブロックについて、様々な特性評価値(後述)を算出する。画像メモリ8は、復号画像をデコーダ2から入力してエンコーダ3に出力するにあたり、復号画像を一時的に格納する。   The evaluation value calculation unit 7 inputs a decoded image from the decoder 2 and calculates various characteristic evaluation values (described later) for each macroblock. The image memory 8 temporarily stores the decoded image when the decoded image is input from the decoder 2 and output to the encoder 3.

入力画像の量子化ステップ値の補正、および、出力画像の量子化ステップ値の決定は、量子化ステップ値決定部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 value determination unit 6 and the evaluation value calculation unit 7. It is executed based on various characteristic evaluation values (described later).

[量子化ステップ値決定部の構成要素]
図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 value determination unit 6. FIG. 2 includes peripheral components of the quantization step value determination unit 6. The quantization step value determination unit 6 includes a first determination unit 61, a second determination unit 62, a third determination unit 63, a fourth determination unit 64, and the like.

第1決定部61は、各マクロブロックについて、トランスコーダ1に入力される入力画像の量子化ステップ値をデコーダ2から入力して、補正後の量子化ステップ値を第2決定部62に出力する。第1決定部61は、各マクロブロックについて、トランスコーダ1に入力される入力画像の量子化ステップ値を補正するにあたり、空間方向の変化度合を示す空間変化評価値、および、時間方向の予測誤差を示す予測誤差評価値を利用する。   The first determination unit 61 inputs the quantization step value of the input image input to the transcoder 1 from the decoder 2 for each macroblock, and outputs the corrected quantization step value to the second determination unit 62. . The first determination unit 61 corrects the quantization step value of the input image input to the transcoder 1 for each macroblock, the spatial change evaluation value indicating the degree of change in the spatial direction, and the prediction error in the temporal direction. A prediction error evaluation value indicating is used.

第2決定部62は、各マクロブロックについて、第1決定部61により補正された量子化ステップ値を第1決定部61から入力して、補正後の量子化ステップ値を第3決定部63に出力する。第2決定部62は、各マクロブロックについて、第1決定部61により補正された量子化ステップ値を補正するにあたり、空間方向の変化度合を示す空間変化評価値、および、時間方向の変化度合を示す時間変化評価値を利用する。   The second determination unit 62 inputs the quantization step value corrected by the first determination unit 61 for each macroblock from the first determination unit 61 and supplies the corrected quantization step value to the third determination unit 63. Output. When correcting the quantization step value corrected by the first determining unit 61 for each macroblock, the second determining unit 62 calculates the spatial change evaluation value indicating the change degree in the spatial direction and the change degree in the time direction. The time change evaluation value shown is used.

第3決定部63は、各マクロブロックについて、第2決定部62により補正された量子化ステップ値を第2決定部62から入力して、補正後の量子化ステップ値を第4決定部64に出力する。第3決定部63は、各マクロブロックについて、第2決定部62により補正された量子化ステップ値を補正するにあたり、空間方向の変化度合を示す空間変化評価値、および、肌色色度を示す肌色色度評価値を利用する。   For each macroblock, the third determination unit 63 inputs the quantization step value corrected by the second determination unit 62 from the second determination unit 62, and sends the corrected quantization step value to the fourth determination unit 64. Output. The third determining unit 63 corrects the quantization step value corrected by the second determining unit 62 for each macroblock, and the skin change evaluation value indicating the degree of change in the spatial direction and the skin color indicating the skin color chromaticity Use the chromaticity evaluation value.

第4決定部64は、各マクロブロックについて、第3決定部63により補正された量子化ステップ値を第3決定部63から入力して、トランスコーダ1から出力される出力画像の量子化ステップ値をエンコーダ3に出力する。第4決定部64は、各マクロブロックについて、第3決定部63により補正された量子化ステップ値を補正するにあたり、各マクロブロックの座標位置を示す座標位置評価値を利用する。   The fourth determination unit 64 inputs the quantization step value corrected by the third determination unit 63 for each macroblock from the third determination unit 63 and outputs the quantization step value of the output image output from the transcoder 1. Is output to the encoder 3. The fourth determination unit 64 uses a coordinate position evaluation value indicating the coordinate position of each macroblock when correcting the quantization step value corrected by the third determination unit 63 for each macroblock.

第1の実施の形態についての以下の説明においては、第1決定部61、第2決定部62、第3決定部63、第4決定部64の処理内容について、以上の順序により説明する。   In the following description of the first embodiment, the processing contents of the first determination unit 61, the second determination unit 62, the third determination unit 63, and the fourth determination unit 64 will be described in the above order.

[第1決定部61Aの処理内容]
図3は、第1決定部61の一種として、第1決定部61Aの構成要素を示すブロック図である。第1決定部61Aは、図3の左端において、「入力量子化ステップ値」、「ACT_MB」、「SAD_MB」を入力する。第1決定部61Aは、図3の右端において、「出力量子化ステップ値」を出力する。
[Processing content of first determination unit 61A]
FIG. 3 is a block diagram showing components of the first determination unit 61A as a kind of the first determination unit 61. As shown in FIG. The first determination unit 61A inputs “input quantization step value”, “ACT_MB”, and “SAD_MB” at the left end of FIG. The first determination unit 61A outputs an “output quantization step value” at the right end of FIG.

「入力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1に入力される入力画像の量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、第1決定部61Aにより補正された量子化ステップ値である。   The “input quantization step value” is a quantization step value of an input image input to the transcoder 1 in each macroblock. The “output quantization step value” is a quantization step value corrected by the first determination unit 61A in each macroblock.

「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 value calculation unit 7 inputs a decoded image from the decoder 2. Next, the evaluation value calculation unit 7 calculates the spatial change evaluation value ACT_MB by adding the absolute value of the difference between each pixel value and the average pixel value for each pixel in each macroblock of the decoded image.

「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 decoder 2 searches for a reference image referred to by the decoded image. Next, the decoder 2 calculates the prediction error evaluation value SAD_MB by adding the difference absolute value of each corresponding pixel value for each corresponding pixel in each macroblock of the decoded image and the reference image.

「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 first determination unit 61A includes shifters 611A and 612A, a selector 613A, an adder 614A, a divider 615A, a correction coefficient storage unit 616A, a multiplier 617A, an adder 618A, a selector 619A, and the like. In particular, the correction coefficient storage unit 616A will be described.

補正係数格納部616Aは、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を1変数として、乗算係数1次元LUT616AMに格納されている。補正係数として加算係数が、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を1変数として、加算係数1次元LUT616AAに格納されている。   The correction coefficient storage unit 616A 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 one-dimensional LUT 616AM with the ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB as one variable. An addition coefficient as a correction coefficient is stored in the addition coefficient one-dimensional LUT 616AA with the ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB as one variable.

ここで、厳密には、予測誤差評価値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 shifter 611A to the prediction error evaluation value SAD_MB shifted by the shifter 612A and added by the adder 614A is defined as one variable. Stores the addition coefficient. The reason why the multiplication coefficient and the addition coefficient are stored as described above will be described.

そもそも、各マクロブロックおよびその参照マクロブロックのピクチャ間距離は、各マクロブロックのピクチャ種類により相違する。そのため、各マクロブロックにおける予測誤差評価値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 first determination unit 61A.

シフタ611Aは、あるマクロブロックについて、空間変化評価値ACT_MBを入力する。シフタ611Aは、空間変化評価値ACT_MBについて、シフトビット数act_shift_bit分だけ、シフト演算を実行する。シフタ611Aによるシフト演算により、乗算係数1次元LUT616AMおよび加算係数1次元LUT616AAは、各マクロブロックのピクチャ種類に依存せずより有効に利用される。   The shifter 611A inputs the space change evaluation value ACT_MB for a certain macroblock. The shifter 611A performs a shift operation on the space change evaluation value ACT_MB by the number of shift bits act_shift_bit. By the shift operation by the shifter 611A, the multiplication coefficient one-dimensional LUT 616AM and the addition coefficient one-dimensional LUT 616AA are used more effectively without depending on the picture type of each macroblock.

シフタ612Aは、あるマクロブロックについて、予測誤差評価値SAD_MBを入力する。シフタ612Aは、予測誤差評価値SAD_MBについて、シフトビット数sad_shift_bit分だけ、シフト演算を実行する。ここで、シフトビット数sad_shift_bitは、以下に説明するように決定される。   The shifter 612A inputs the prediction error evaluation value SAD_MB for a certain macroblock. The shifter 612A performs a shift operation on the prediction error evaluation value SAD_MB by the number of shift bits sad_shift_bit. Here, the shift bit number sad_shift_bit is determined as described below.

セレクタ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 selector 613A inputs the picture type P_type_MB as a switching signal for a certain macroblock. When the picture type P_type_MB is an I picture, a P picture, or a B picture, the selector 613A outputs sad_shift_bit_I, sad_shift_bit_P, and sad_shift_bit_B as the number of shift bits, respectively. When the picture type P_type_MB is an intra macroblock of a P picture or a B picture, the selector 613A outputs sad_shift_bit_I_PB as the number of shift bits.

加算器614Aは、オフセットsad_offsetを、シフト演算を実行された予測誤差評価値SAD_MBに加算する。加算器614Aによる加算演算により、シフト演算を実行された予測誤差評価値SAD_MBは、よりきめ細かく微調整される。   The adder 614A adds the offset sad_offset to the prediction error evaluation value SAD_MB for which the shift operation has been performed. The prediction error evaluation value SAD_MB subjected to the shift operation is finely finely adjusted by the addition operation by the adder 614A.

除算器615Aは、シフト演算を実行された空間変化評価値ACT_MBを、シフト演算および加算演算を実行された予測誤差評価値SAD_MBにより除算することにより、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を算出する。   The divider 615A divides the spatial change evaluation value ACT_MB for which the shift operation has been performed by the prediction error evaluation value SAD_MB for which the shift operation and the addition operation have been performed, thereby obtaining the spatial change evaluation value ACT_MB for the prediction error evaluation value SAD_MB. Calculate the percentage.

補正係数格納部616Aは、予測誤差評価値SAD_MBに対する空間変化評価値ACT_MBの割合を入力する。補正係数格納部616Aは、乗算係数1次元LUT616AMを利用して、乗算係数を算出する。補正係数格納部616Aは、加算係数1次元LUT616AAを利用して、加算係数を算出する。   The correction coefficient storage unit 616A inputs a ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB. The correction coefficient storage unit 616A calculates a multiplication coefficient using the multiplication coefficient one-dimensional LUT 616AM. The correction coefficient storage unit 616A calculates an addition coefficient using the addition coefficient one-dimensional LUT 616AA.

図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 multiplier 617A multiplies the input quantization step value by the multiplication coefficient calculated by the multiplication coefficient one-dimensional LUT 616AM. The adder 618A adds the addition coefficient calculated by the addition coefficient one-dimensional LUT 616AA to the input quantization step value.

セレクタ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 CPU 5 based on the input bit rate, the output bit rate, and the target bit rate. For example, when the output bit rate is higher than the target bit rate, the multiplication coefficient and the addition coefficient may be greatly rewritten.

また、シフトビット数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 CPU 5 from time to time based on the input bit rate, the output bit rate, and the target bit rate. For example, when the output bit rate is higher than the target bit rate, the shift bit numbers act_shift_bit and sad_shift_bit may be updated so that the ratio of the spatial change evaluation value ACT_MB to the prediction error evaluation value SAD_MB increases.

さらに、セレクタ619Aへの切替信号は、入力ビットレート、出力ビットレート、目標ビットレートに基づいて、CPU5により時々刻々と更新されてもよい。たとえば、出力ビットレートが目標ビットレートより高いときには、セレクタ619Aに入力される量子化ステップ値のうち、最大の量子化ステップ値がセレクタ619Aから出力されるように、セレクタ619Aへの切替信号が更新されるとよい。   Further, the switching signal to the selector 619A may be updated every moment by the CPU 5 based on the input bit rate, the output bit rate, and the target bit rate. For example, when the output bit rate is higher than the target bit rate, the switching signal to the selector 619A is updated so that the maximum quantization step value among the quantization step values input to the selector 619A is output from the selector 619A. It is good to be done.

[第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 first determination unit 61. The first determination unit 61B inputs “input quantization step value”, “h_ACT_MB”, and “h_SAD_MB” at the left end of FIG. The first determination unit 61B outputs an “output quantization step value” at the right end of FIG.

「入力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1に入力される入力画像の量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、第1決定部61Bにより補正された量子化ステップ値である。   The “input quantization step value” is a quantization step value of an input image input to the transcoder 1 in each macroblock. The “output quantization step value” is a quantization step value corrected by the first determination unit 61B in each macroblock.

「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 shifter 611A in the evaluation value calculation unit 7.

「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 shifter 612A and an addition operation similar to the adder 614A in the evaluation value calculation unit 7.

図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 categories 0, 1, 2, 3, and 4 are the same. At this time, categorization of evaluation values is easily performed.

図6(b)に示した第2のカテゴリ化方法においては、カテゴリ0、1、2、3、4のレンジはそれぞれ相違する。カテゴリ番号が増加するほど、カテゴリのレンジが増加する。このときには、評価値が最小値に近いときほど、評価値が細かくカテゴリ化される。   In the second categorization method shown in FIG. 6B, the ranges of categories 0, 1, 2, 3, and 4 are different. The category range increases as the category number increases. At this time, the evaluation value is categorized more finely as the evaluation value is closer to the minimum value.

図6(c)に示した第3のカテゴリ化方法においては、カテゴリ0、1、2、3、4のレンジはそれぞれ相違する。カテゴリ番号が2に近づくほど、カテゴリのレンジが減少する。このときには、評価値が中間値に近いときほど、評価値が細かくカテゴリ化される。   In the third categorization method shown in FIG. 6C, the categories 0, 1, 2, 3, and 4 have different ranges. As the category number approaches 2, the category range decreases. At this time, the evaluation value is categorized more finely as the evaluation value is closer to the intermediate value.

第1決定部61Bは、補正係数格納部611B、乗算器612B、加算器613B、セレクタ614Bなどから構成される。特に、補正係数格納部611Bについて説明する。   The first determination unit 61B includes a correction coefficient storage unit 611B, a multiplier 612B, an adder 613B, a selector 614B, and the like. In particular, the correction coefficient storage unit 611B will be described.

補正係数格納部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 multiplier 612B multiplies the input quantization step value by the multiplication coefficient calculated by the multiplication coefficient two-dimensional LUT 611BM. The adder 613B adds the addition coefficient calculated by the addition coefficient two-dimensional LUT 611BA to the input quantization step value.

セレクタ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 CPU 5 every moment. The switching signal to the selector 619A may be fixed without changing with time, and may be updated by the CPU 5 every moment.

[第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 second determination unit 62. The second determination unit 62 inputs “input quantization step value”, “h_ACT_MB”, “h_MVbit_MB”, and “P_type_MB” at the left end of FIG. The second determination unit 62 outputs an “output quantization step value” at the right end of FIG.

「入力量子化ステップ値」は、各マクロブロックにおける、第1決定部61により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、第2決定部62により補正された量子化ステップ値である。   The “input quantization step value” is a quantization step value corrected by the first determination unit 61 in each macroblock. The “output quantization step value” is a quantization step value corrected by the second determination unit 62 in each macroblock.

「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 value calculation unit 7 inputs a decoded image from the decoder 2. Next, the evaluation value calculation unit 7 calculates the spatial change evaluation value ACT_MB by adding the absolute value of the difference between each pixel value and the average pixel value for each pixel in each macroblock of the decoded image. Next, the evaluation value calculation unit 7 performs categorization by the categorization method shown in FIG.

「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 decoder 2 acquires the magnitude of the motion vector or the code amount of the motion vector in each macroblock of the input image. Here, the code amount of the motion vector corresponds to the magnitude of the motion vector. Next, the evaluation value calculation unit 7 performs categorization by the categorization method shown in FIG.

「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 second determination unit 62 includes correction coefficient storage units 621, 622, and 623, a selector 624, a logic circuit unit 625, a multiplier 626, an adder 627, a selector 628, and the like. In particular, the correction coefficient storage units 621, 622, and 623 will be described.

補正係数格納部621は、Pピクチャについて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Pを2変数として、乗算係数2次元LUT621Mに格納されている。補正係数として加算係数が、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Pを2変数として、加算係数2次元LUT621Aに格納されている。   The correction coefficient storage unit 621 stores a correction coefficient for correcting an input quantization step value and determining an output quantization step value for a P picture. A multiplication coefficient as a correction coefficient is stored in the multiplication coefficient two-dimensional LUT 621M with the space change evaluation value h_ACT_MB and the time change evaluation value h_MVbit_MB_P as two variables. An addition coefficient as a correction coefficient is stored in the addition coefficient two-dimensional LUT 621A with the space change evaluation value h_ACT_MB and the time change evaluation value h_MVbit_MB_P as two variables.

補正係数格納部622は、Bピクチャについて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Bを2変数として、乗算係数2次元LUT622Mに格納されている。補正係数として加算係数が、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Bを2変数として、加算係数2次元LUT622Aに格納されている。   The correction coefficient storage unit 622 stores the correction coefficient for correcting the input quantization step value and determining the output quantization step value for the B picture. A multiplication coefficient as a correction coefficient is stored in the multiplication coefficient two-dimensional LUT 622M with the space change evaluation value h_ACT_MB and the time change evaluation value h_MVbit_MB_B as two variables. An addition coefficient as a correction coefficient is stored in the addition coefficient two-dimensional LUT 622A with the space change evaluation value h_ACT_MB and the time change evaluation value h_MVbit_MB_B as two variables.

補正係数格納部623は、Iピクチャについて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、空間変化評価値h_ACT_MBを1変数として、乗算係数1次元LUT623Mに格納されている。補正係数として加算係数が、空間変化評価値h_ACT_MBを1変数として、加算係数1次元LUT623Aに格納されている。Iピクチャについて、時間変化評価値h_MVbit_MBは、乗算係数1次元LUT623Mおよび加算係数1次元LUT623Aの変数とならない。   The correction coefficient storage unit 623 stores the correction coefficient for correcting the input quantization step value and determining the output quantization step value for the I picture. The multiplication coefficient is stored in the multiplication coefficient one-dimensional LUT 623M with the spatial change evaluation value h_ACT_MB as one variable. An addition coefficient as a correction coefficient is stored in the addition coefficient one-dimensional LUT 623A with the spatial change evaluation value h_ACT_MB as one variable. For the I picture, the temporal change evaluation value h_MVbit_MB is not a variable of the multiplication coefficient one-dimensional LUT 623M and the addition coefficient one-dimensional LUT 623A.

次に、第2決定部62において、あるマクロブロックについて、入力量子化ステップ値が補正されて、出力量子化ステップ値が決定される処理内容について説明する。   Next, description will be made regarding the processing contents in which the second quantization unit 62 determines the output quantization step value by correcting the input quantization step value for a certain macroblock.

補正係数格納部621は、Pピクチャのあるマクロブロックについて、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Pを入力する。補正係数格納部621は、乗算係数2次元LUT621Mを利用して、乗算係数を算出する。補正係数格納部621は、加算係数2次元LUT621Aを利用して、加算係数を算出する。補正係数格納部621は、乗算係数および加算係数を、セレクタ624に出力する。   The correction coefficient storage unit 621 receives a spatial change evaluation value h_ACT_MB and a temporal change evaluation value h_MVbit_MB_P for a macroblock having a P picture. The correction coefficient storage unit 621 calculates a multiplication coefficient using the multiplication coefficient two-dimensional LUT 621M. The correction coefficient storage unit 621 calculates the addition coefficient using the addition coefficient two-dimensional LUT 621A. The correction coefficient storage unit 621 outputs the multiplication coefficient and the addition coefficient to the selector 624.

補正係数格納部622は、Bピクチャのあるマクロブロックについて、空間変化評価値h_ACT_MBおよび時間変化評価値h_MVbit_MB_Bを入力する。補正係数格納部622は、乗算係数2次元LUT622Mを利用して、乗算係数を算出する。補正係数格納部622は、加算係数2次元LUT622Aを利用して、加算係数を算出する。補正係数格納部622は、乗算係数および加算係数を、セレクタ624に出力する。   The correction coefficient storage unit 622 receives the spatial change evaluation value h_ACT_MB and the temporal change evaluation value h_MVbit_MB_B for a macroblock having a B picture. The correction coefficient storage unit 622 calculates a multiplication coefficient using the multiplication coefficient two-dimensional LUT 622M. The correction coefficient storage unit 622 calculates the addition coefficient using the addition coefficient two-dimensional LUT 622A. The correction coefficient storage unit 622 outputs the multiplication coefficient and the addition coefficient to the selector 624.

補正係数格納部623は、Iピクチャのあるマクロブロックについて、空間変化評価値h_ACT_MBを入力する。補正係数格納部623は、乗算係数1次元LUT623Mを利用して、乗算係数を算出する。補正係数格納部623は、加算係数1次元LUT623Aを利用して、加算係数を算出する。補正係数格納部623は、乗算係数および加算係数を、セレクタ624に出力する。   The correction coefficient storage unit 623 receives the spatial change evaluation value h_ACT_MB for a macroblock having an I picture. The correction coefficient storage unit 623 calculates a multiplication coefficient using the multiplication coefficient one-dimensional LUT 623M. The correction coefficient storage unit 623 calculates an addition coefficient using the addition coefficient one-dimensional LUT 623A. The correction coefficient storage unit 623 outputs the multiplication coefficient and the addition coefficient to the selector 624.

図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-dimensional LUTs 621M and 622M. As the time change evaluation value h_MVbit_MB increases, the multiplication coefficient decreases monotonously. As the space change evaluation value h_ACT_MB increases, the multiplication coefficient decreases monotonously. The multiplication coefficients two-dimensional LUTs 621M and 622M may be the same as shown in FIG. 9A or different from those shown in FIG. 9A.

図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-dimensional LUTs 621A and 622A. As the time change evaluation value h_MVbit_MB increases, the addition coefficient decreases monotonously. As the space change evaluation value h_ACT_MB increases, the addition coefficient decreases monotonously. The addition coefficient two-dimensional LUTs 621A and 622A may be the same as shown in FIG. 9B or different from those shown in FIG. 9B.

図9(c)は、乗算係数1次元LUT623Mの内容を示す図である。空間変化評価値h_ACT_MBが増加するに従って、乗算係数が単調に減少する。   FIG. 9C shows the contents of the multiplication coefficient one-dimensional LUT 623M. As the space change evaluation value h_ACT_MB increases, the multiplication coefficient decreases monotonously.

図9(d)は、加算係数1次元LUT623Aの内容を示す図である。空間変化評価値h_ACT_MBが増加するに従って、加算係数が単調に減少する。   FIG. 9D shows the contents of the addition coefficient one-dimensional LUT 623A. As the space change evaluation value h_ACT_MB increases, the addition coefficient decreases monotonously.

論理回路部625は、あるマクロブロックについて、ピクチャ種類P_type_MBを入力する。論理回路部625は、セレクタ624の切替信号を、セレクタ624に出力する。図10は、論理回路部625における処理の流れを示すフローチャートである。   The logic circuit unit 625 inputs a picture type P_type_MB for a certain macroblock. The logic circuit portion 625 outputs a switching signal for the selector 624 to the selector 624. FIG. 10 is a flowchart showing the flow of processing in the logic circuit unit 625.

論理回路部625がピクチャ種類P_type_MBを入力したとき(ステップS1)、ピクチャ種類P_type_MBがPピクチャであるときについて考える(ステップS2においてYES)。論理回路部625は、セレクタ624の切替信号として、Pピクチャに対応する“0”を出力する(ステップS3)。セレクタ624は、乗算係数および加算係数として、乗算係数2次元LUT621Mおよび加算係数2次元LUT621Aにより算出されたものを出力する。   When the logic circuit unit 625 receives the picture type P_type_MB (step S1), consider that the picture type P_type_MB is a P picture (YES in step S2). The logic circuit unit 625 outputs “0” corresponding to the P picture as the switching signal of the selector 624 (step S3). The selector 624 outputs the multiplication coefficient and the addition coefficient calculated by the multiplication coefficient two-dimensional LUT 621M and the addition coefficient two-dimensional LUT 621A.

論理回路部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 logic circuit unit 625 receives the picture type P_type_MB (step S1), consider that the picture type P_type_MB is a B picture (NO in step S2 and YES in step S4). The logic circuit unit 625 outputs “1” corresponding to the B picture as a switching signal of the selector 624 (step S5). The selector 624 outputs the multiplication coefficient and the addition coefficient calculated by the multiplication coefficient two-dimensional LUT 622M and the addition coefficient two-dimensional LUT 622A.

論理回路部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 logic circuit unit 625 inputs the picture type P_type_MB (step S1), consider that the picture type P_type_MB is an I picture (NO in step S2, NO in step S4, YES in step S6). The logic circuit unit 625 outputs “2” corresponding to the I picture as the switching signal of the selector 624 (step S7). The selector 624 outputs the multiplication coefficient and the addition coefficient calculated by the multiplication coefficient one-dimensional LUT 623M and the addition coefficient one-dimensional LUT 623A.

論理回路部625がピクチャ種類P_type_MBを入力したとき(ステップS1)、ピクチャ種類P_type_MBがPピクチャまたはBピクチャのイントラマクロブロックであるときについて考える(ステップS2においてNO、ステップS4においてNO、ステップS6においてNO)。論理回路部625は、そのマクロブロックの近傍に位置するマクロブロックについて、すでに算出されている乗算係数および加算係数を出力するように、セレクタ624に指示する(ステップS8)。   When the logic circuit unit 625 inputs the picture type P_type_MB (step S1), consider that the picture type P_type_MB is an intra macroblock of a P picture or a B picture (NO in step S2, NO in step S4, NO in step S6) ). The logic circuit unit 625 instructs the selector 624 to output the already calculated multiplication coefficient and addition coefficient for the macroblock located in the vicinity of the macroblock (step S8).

乗算器626は、セレクタ624により出力された乗算係数を、入力量子化ステップ値に乗算する。加算器627は、セレクタ624により出力された加算係数を、入力量子化ステップ値に加算する。   Multiplier 626 multiplies the input quantization step value by the multiplication coefficient output by selector 624. The adder 627 adds the addition coefficient output from the selector 624 to the input quantization step value.

セレクタ628は、“0”、“1”、“2”のうちいずれかを、切替信号として入力する。切替信号が“0”であるときには、セレクタ628は、出力量子化ステップ値として、補正されていない入力量子化ステップ値を出力する。切替信号が“1”であるときには、セレクタ628は、出力量子化ステップ値として、乗算係数を乗算された入力量子化ステップ値を出力する。切替信号が“2”であるときには、セレクタ628は、出力量子化ステップ値として、加算係数を加算された入力量子化ステップ値を出力する。   The selector 628 inputs any one of “0”, “1”, and “2” as a switching signal. When the switching signal is “0”, the selector 628 outputs the uncorrected input quantization step value as the output quantization step value. When the switching signal is “1”, the selector 628 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 628 outputs the input quantization step value added with the addition coefficient as the output quantization step value.

空間方向の変化度合が大きく、時間方向の変化度合が大きい画像領域については、出力量子化ステップ値は小さく設定される。空間方向の変化度合が小さく、時間方向の変化度合が小さい画像領域については、出力量子化ステップ値は大きく設定される。   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 first determination unit 61, the output quantization step value is set to be small in an image region where the degree of change in the spatial direction is small. That is, a large number of output bits are assigned to a flat image area. However, in the second determination unit 62, the output quantization step value is set to be small in an image region where the degree of change in the spatial direction is large. That is, a large number of output bits are assigned to an image area including a small object. As described above, the first determination unit 61 and the second determination unit 62 allocate a large number of output bits to image regions having different image characteristics.

乗算係数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 CPU 5. The switching signal to the selector 628 may be fixed without changing with time, and may be updated by the CPU 5 every moment. The range of categories is arbitrary, and the number of dimensions using categorization is arbitrary.

[第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 third determination unit 63. The third determination unit 63 inputs “input quantization step value”, “h_ACT_MB”, and “h_SkinTone_MB” at the left end of FIG. 11. The third determining unit 63 outputs an “output quantization step value” at the right end of FIG.

「入力量子化ステップ値」は、各マクロブロックにおける、第2決定部62により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、第3決定部63により補正された量子化ステップ値である。   The “input quantization step value” is a quantization step value corrected by the second determination unit 62 in each macroblock. The “output quantization step value” is a quantization step value corrected by the third determination unit 63 in each macroblock.

「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 value calculation unit 7 inputs a decoded image from the decoder 2. Next, the evaluation value calculation unit 7 calculates the spatial change evaluation value ACT_MB by adding the absolute value of the difference between each pixel value and the average pixel value for each pixel in each macroblock of the decoded image. Next, the evaluation value calculation unit 7 performs categorization by the categorization method shown in FIG.

「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 value calculation unit 7 inputs a decoded image from the decoder 2. Next, the evaluation value calculation unit 7 calculates the flesh color chromaticity of each pixel based on the color difference signal of each pixel in each macroblock of the decoded image, and measures the number of pixels having a high flesh color chromaticity. The skin color chromaticity evaluation value SkinTone_MB is calculated. Next, the evaluation value calculation unit 7 performs categorization by the categorization method shown in FIG.

第3決定部63は、補正係数格納部631、乗算器632、加算器633、セレクタ634などから構成される。特に、補正係数格納部631について説明する。   The third determination unit 63 includes a correction coefficient storage unit 631, a multiplier 632, an adder 633, a selector 634, and the like. In particular, the correction coefficient storage unit 631 will be described.

補正係数格納部631は、入力量子化ステップ値を補正して、出力量子化ステップ値を決定するため、補正係数を格納する。補正係数として乗算係数が、空間変化評価値h_ACT_MBおよび肌色色度評価値h_SkinTone_MBを2変数として、乗算係数2次元LUT631Mに格納されている。補正係数として加算係数が、空間変化評価値h_ACT_MBおよび肌色色度評価値h_SkinTone_MBを2変数として、加算係数2次元LUT631Aに格納されている。   The correction coefficient storage unit 631 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 631M with the space change evaluation value h_ACT_MB and the skin color chromaticity evaluation value h_SkinTone_MB as two variables. An addition coefficient as a correction coefficient is stored in the addition coefficient two-dimensional LUT 631A with the space change evaluation value h_ACT_MB and the skin color chromaticity evaluation value h_SkinTone_MB as two variables.

次に、第3決定部63において、あるマクロブロックについて、入力量子化ステップ値が補正されて、出力量子化ステップ値が決定される処理内容について説明する。   Next, description will be made regarding the processing contents in which the third determination unit 63 determines the output quantization step value after correcting the input quantization step value for a certain macroblock.

補正係数格納部631は、あるマクロブロックについて、空間変化評価値h_ACT_MBおよび肌色色度評価値h_SkinTone_MBを入力する。補正係数格納部631は、乗算係数2次元LUT631Mを利用して、乗算係数を算出する。補正係数格納部631は、加算係数2次元LUT631Aを利用して、加算係数を算出する。   The correction coefficient storage unit 631 inputs the space change evaluation value h_ACT_MB and the skin color chromaticity evaluation value h_SkinTone_MB for a certain macroblock. The correction coefficient storage unit 631 calculates a multiplication coefficient using the multiplication coefficient two-dimensional LUT 631M. The correction coefficient storage unit 631 calculates an addition coefficient using the addition coefficient two-dimensional LUT 631A.

図12(a)は、乗算係数2次元LUT631Mの内容を示す図である。肌色色度評価値h_SkinTone_MBが増加するに従って、乗算係数が単調に減少する。空間変化評価値h_ACT_MBが増加するに従って、乗算係数が単調に増加する。   FIG. 12A shows the contents of the multiplication coefficient two-dimensional LUT 631M. As the flesh color chromaticity evaluation value h_SkinTone_MB increases, the multiplication coefficient decreases monotonously. As the space change evaluation value h_ACT_MB increases, the multiplication coefficient increases monotonously.

図12(b)は、加算係数2次元LUT631Aの内容を示す図である。肌色色度評価値h_SkinTone_MBが増加するに従って、加算係数が単調に減少する。空間変化評価値h_ACT_MBが増加するに従って、加算係数が単調に増加する。   FIG. 12B is a diagram illustrating the contents of the addition coefficient two-dimensional LUT 631A. As the skin color chromaticity evaluation value h_SkinTone_MB increases, the addition coefficient decreases monotonously. As the space change evaluation value h_ACT_MB increases, the addition coefficient increases monotonously.

乗算器632は、乗算係数2次元LUT631Mにより出力された乗算係数を、入力量子化ステップ値に乗算する。加算器633は、加算係数2次元LUT631Aにより出力された加算係数を、入力量子化ステップ値に加算する。   The multiplier 632 multiplies the input quantization step value by the multiplication coefficient output from the multiplication coefficient two-dimensional LUT 631M. The adder 633 adds the addition coefficient output from the addition coefficient two-dimensional LUT 631A to the input quantization step value.

セレクタ634は、“0”、“1”、“2”のうちいずれかを、切替信号として入力する。切替信号が“0”であるときには、セレクタ634は、出力量子化ステップ値として、補正されていない入力量子化ステップ値を出力する。切替信号が“1”であるときには、セレクタ634は、出力量子化ステップ値として、乗算係数を乗算された入力量子化ステップ値を出力する。切替信号が“2”であるときには、セレクタ634は、出力量子化ステップ値として、加算係数を加算された入力量子化ステップ値を出力する。   The selector 634 inputs any one of “0”, “1”, and “2” as a switching signal. When the switching signal is “0”, the selector 634 outputs an uncorrected input quantization step value as the output quantization step value. When the switching signal is “1”, the selector 634 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 634 outputs the input quantization step value added with the addition coefficient as the output quantization step value.

肌色色度が大きく、空間方向の変化度合が小さい画像領域については、出力量子化ステップ値は小さく設定される。肌色色度が小さく、空間方向の変化度合が大きい画像領域については、出力量子化ステップ値は大きく設定される。   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-dimensional LUT 631M and the addition coefficient two-dimensional LUT 631A may be fixed without changing over time, or may be rewritten by the CPU 5 every moment. The switching signal to the selector 634 may be fixed without changing with time, and may be updated by the CPU 5 every moment. The range of categories is arbitrary, and the number of dimensions using categorization is arbitrary. The image area in which the output quantization step value is decreased may be not only an image area with high skin color chromaticity but also other image areas with high chromaticity.

[第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 fourth determination unit 64. The fourth determination unit 64 inputs “input quantization step value”, “MB_Addr_x”, and “MB_Addr_y” at the left end of FIG. The fourth determination unit 64 outputs an “output quantization step value” at the right end of FIG.

「入力量子化ステップ値」は、各マクロブロックにおける、第3決定部63により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1から出力される出力画像の量子化ステップ値である。   The “input quantization step value” is a quantization step value corrected by the third determination unit 63 in each macroblock. The “output quantization step value” is a quantization step value of an output image output from the transcoder 1 in each macroblock.

「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 decoder 2. In the following description of the fourth determination unit 64, for the sake of brevity, it is assumed that the size of one frame in the horizontal direction and the vertical direction is the size of five macroblocks.

第4決定部64は、補正係数格納部641、乗算器642、加算器643、セレクタ644などから構成される。特に、補正係数格納部641について説明する。   The fourth determination unit 64 includes a correction coefficient storage unit 641, a multiplier 642, an adder 643, a selector 644, and the like. In particular, the correction coefficient storage unit 641 will be described.

補正係数格納部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 coefficient storage unit 641 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 641M with coordinate position evaluation values MB_Addr_x and MB_Addr_y as two variables. An addition coefficient as a correction coefficient is stored in the addition coefficient two-dimensional LUT 641A with the coordinate position evaluation values MB_Addr_x and MB_Addr_y as two variables. Reflecting that both the horizontal and vertical sizes of one frame are the size of five macroblocks, the number of matrices of the multiplication coefficient two-dimensional LUT 641M and the addition coefficient two-dimensional LUT 641A are both 5 × 5.

次に、第4決定部64において、あるマクロブロックについて、入力量子化ステップ値が補正されて、出力量子化ステップ値が決定される処理内容について説明する。   Next, description will be made regarding the processing contents in which the fourth quantization unit 64 determines the output quantization step value by correcting the input quantization step value for a certain macroblock.

補正係数格納部641は、あるマクロブロックについて、座標位置評価値MB_Addr_x、MB_Addr_yを入力する。補正係数格納部641は、乗算係数2次元LUT641Mを利用して、乗算係数を算出する。補正係数格納部641は、加算係数2次元LUT641Aを利用して、加算係数を算出する。   The correction coefficient storage unit 641 inputs coordinate position evaluation values MB_Addr_x and MB_Addr_y for a certain macroblock. The correction coefficient storage unit 641 calculates a multiplication coefficient using the multiplication coefficient two-dimensional LUT 641M. The correction coefficient storage unit 641 calculates an addition coefficient using the addition coefficient two-dimensional LUT 641A.

図14(a)は、乗算係数2次元LUT641Mの内容を示す図である。対象マクロブロックが画像中心に近くなるに従って、乗算係数が単調に減少する。   FIG. 14A shows the contents of the multiplication coefficient two-dimensional LUT 641M. As the target macroblock approaches the center of the image, the multiplication coefficient decreases monotonously.

図14(b)は、加算係数2次元LUT641Aの内容を示す図である。対象マクロブロックが画像中心に近くなるに従って、加算係数が単調に減少する。   FIG. 14B shows the contents of the addition coefficient two-dimensional LUT 641A. As the target macroblock approaches the center of the image, the addition coefficient decreases monotonously.

乗算器642は、乗算係数2次元LUT641Mにより出力された乗算係数を、入力量子化ステップ値に乗算する。加算器643は、加算係数2次元LUT641Aにより出力された加算係数を、入力量子化ステップ値に加算する。   The multiplier 642 multiplies the input quantization step value by the multiplication coefficient output by the multiplication coefficient two-dimensional LUT 641M. The adder 643 adds the addition coefficient output from the addition coefficient two-dimensional LUT 641A to the input quantization step value.

セレクタ644は、“0”、“1”、“2”のうちいずれかを、切替信号として入力する。切替信号が“0”であるときには、セレクタ644は、出力量子化ステップ値として、補正されていない入力量子化ステップ値を出力する。切替信号が“1”であるときには、セレクタ644は、出力量子化ステップ値として、乗算係数を乗算された入力量子化ステップ値を出力する。切替信号が“2”であるときには、セレクタ644は、出力量子化ステップ値として、加算係数を加算された入力量子化ステップ値を出力する。   The selector 644 inputs any one of “0”, “1”, and “2” as a switching signal. When the switching signal is “0”, the selector 644 outputs the uncorrected input quantization step value as the output quantization step value. When the switching signal is “1”, the selector 644 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 644 outputs the input quantization step value added with the addition coefficient as the output quantization step value.

画像中心に近い画像領域については、出力量子化ステップ値は小さく設定される。画像中心から遠い画像領域については、出力量子化ステップ値は大きく設定される。   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-dimensional LUT 641M and the addition coefficient two-dimensional LUT 641A may be fixed without changing over time, or may be rewritten by the CPU 5 every moment. The switching signal to the selector 644 may be fixed without changing with time, and may be updated by the CPU 5 every moment. The coordinate position evaluation values MB_Addr_x and MB_Addr_y may be categorized. At this time, the range of categories is arbitrary, and the number of dimensions using categorization is arbitrary. The image area for decreasing the output quantization step value may be not only the central image area but also the face image area. At this time, the coordinate position of the face image area may be designated by the evaluation value calculation unit 7.

[量子化ステップ値決定部のまとめ]
量子化ステップ値決定部6は、各マクロブロックについて、様々な特性評価値に基づいて、入力量子化ステップ値を補正して、出力量子化ステップ値を決定する。トランスコーダ1は、画質調整および符号量調整をよりきめ細やかにできる。
[Summary of quantization step value determination unit]
The quantization step value determination unit 6 corrects the input quantization step value for each macroblock based on various characteristic evaluation values, and determines an output quantization step value. The transcoder 1 can finely adjust the image quality and the code amount.

量子化ステップ値決定部6において、第1決定部61などの決定部の個数および配列順序は任意である。第1決定部61などの決定部において、乗算係数LUTおよび加算係数LUTの変数の個数および組み合わせは任意である。   In the quantization step value determination unit 6, the number and arrangement order of the determination units such as the first determination unit 61 are arbitrary. In the determining unit such as the first determining unit 61, the number and combination of variables of the multiplication coefficient LUT and the addition coefficient LUT are arbitrary.

量子化ステップ値決定部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 value determination unit 6, for example, the second determination unit 62, the first determination unit 61, the fourth determination unit 64, and the third determination unit 63 may be arranged in the above order. In the multiplication coefficient LUT and the addition coefficient LUT, for example, a skin color chromaticity evaluation value h_SkinTone_MB, a space change evaluation value h_ACT_MB, and a time change evaluation value h_MVbit_MB may be set as three variables.

{第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 value determination unit 6 is mainly different from the first and second embodiments. FIG. 15 is a block diagram illustrating components of the quantization step value determination unit 6. Comparing the first and second embodiments, the fifth determination unit 65 is disposed downstream of the fourth determination unit 64.

第5決定部65は、各マクロブロックについて、第4決定部64により補正された量子化ステップ値を第4決定部64から入力して、トランスコーダ1から出力される出力画像の量子化ステップ値をエンコーダ3に出力する。第5決定部65は、各マクロブロックについて、第4決定部64により補正された量子化ステップ値を補正するにあたり、空間方向の変化度合を示す空間変化評価値を利用する。   The fifth determination unit 65 inputs the quantization step value corrected by the fourth determination unit 64 for each macroblock from the fourth determination unit 64 and outputs the quantization step value of the output image output from the transcoder 1. Is output to the encoder 3. The fifth determining unit 65 uses a spatial change evaluation value indicating the degree of change in the spatial direction when correcting the quantization step value corrected by the fourth determining unit 64 for each macroblock.

[第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 unit 65. The fifth determination unit 65 inputs “input quantization step value”, “ACT_MB”, and “ACT_PIC” at the left end of FIG. The fifth determining unit 65 outputs an “output quantization step value” at the right end of FIG.

「入力量子化ステップ値」は、各マクロブロックにおける、第4決定部64により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1から出力される出力画像の量子化ステップ値である。   The “input quantization step value” is a quantization step value corrected by the fourth determination unit 64 in each macroblock. The “output quantization step value” is a quantization step value of an output image output from the transcoder 1 in each macroblock.

「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 value calculation unit 7 inputs a decoded image from the decoder 2. Next, the evaluation value calculation unit 7 calculates the spatial change evaluation value ACT_MB by adding the absolute value of the difference between each pixel value and the average pixel value for each pixel in each macroblock of the decoded image. Next, the evaluation value calculation unit 7 calculates the spatial change evaluation average value ACT_PIC by calculating the average of the spatial change evaluation values ACT_MB of all macroblocks in each frame of the decoded image.

第5決定部65は、シフタ651、652、減算器653、乗算器654、リミッタ655、加算器656などから構成される。処理内容についても合わせて説明する。   The fifth determination unit 65 includes shifters 651 and 652, a subtracter 653, a multiplier 654, a limiter 655, an adder 656, and the like. The processing contents will also be described.

シフタ651は、空間変化評価値ACT_MBを入力する。そして、シフタ651は、空間変化評価値ACT_MBについて、桁合わせのためのシフト演算を実行する。シフタ652は、空間変化評価平均値ACT_PICを入力する。そして、シフタ652は、空間変化評価平均値ACT_PICについて、桁合わせのためのシフト演算を実行する。   The shifter 651 receives the space change evaluation value ACT_MB. Then, the shifter 651 performs a shift operation for digit alignment on the space change evaluation value ACT_MB. The shifter 652 inputs the spatial change evaluation average value ACT_PIC. Then, the shifter 652 performs a shift operation for digit alignment on the space change evaluation average value ACT_PIC.

減算器653は、シフト演算を実行された空間変化評価値ACT_MB、および、シフト演算を実行された空間変化評価平均値ACT_PICを入力する。そして、減算器653は、シフト演算を実行された空間変化評価値ACT_MBから、シフト演算を実行された空間変化評価平均値ACT_PICを減算する。減算器653による減算値は、各マクロブロックにおける空間方向の変化度合が、各マクロブロックが属するフレームにおける空間方向の平均的な変化度合と比較して、どの程度ばらついているかを示す値である。   The subtractor 653 receives the spatial change evaluation value ACT_MB for which the shift operation has been performed and the spatial change evaluation average value ACT_PIC for which the shift operation has been performed. Then, the subtractor 653 subtracts the spatial change evaluation average value ACT_PIC for which the shift calculation has been performed from the spatial change evaluation value ACT_MB for which the shift calculation has been performed. The subtraction value by the subtractor 653 is a value indicating how much the degree of change in the spatial direction in each macroblock varies compared to the average degree of change in the spatial direction in the frame to which each macroblock belongs.

乗算器654は、減算器653による減算値を入力する。そして、乗算器654は、減算器653による減算値に、1より小さい正数である調整係数raqを乗算する。これにより、乗算器654は、減算器653による減算値の振れ幅を小さくする。 The multiplier 654 receives the subtraction value from the subtracter 653. The multiplier 654 multiplies the subtraction value obtained by the subtracter 653 by an adjustment coefficient r aq that is a positive number smaller than 1. As a result, the multiplier 654 reduces the fluctuation width of the subtraction value by the subtractor 653.

リミッタ655は、乗算器654による乗算値を入力する。また、リミッタ655は、上限閾値としてLIMIT_THRES_Hを入力して、下限閾値としてLIMIT_THRES_Lを入力する。そして、リミッタ655は、乗算器654による乗算値を上限閾値LIMIT_THRES_Hによりクリップして、乗算器654による乗算値を下限閾値LIMIT_THRES_Lによりクリップする。これにより、リミッタ655は、乗算器654による乗算値の振れ幅を小さくする。   The limiter 655 receives the product multiplied by the multiplier 654. Further, the limiter 655 inputs LIMIT_THRES_H as an upper limit threshold and inputs LIMIT_THRES_L as a lower limit threshold. The limiter 655 clips the multiplication value by the multiplier 654 with the upper limit threshold LIMIT_THRES_H, and clips the multiplication value by the multiplier 654 with the lower limit threshold LIMIT_THRES_L. As a result, limiter 655 reduces the amplitude of the product multiplied by multiplier 654.

加算器656は、入力量子化ステップ値、および、リミッタ655による出力値を入力する。そして、加算器656は、入力量子化ステップ値にリミッタ655による出力値を加算することにより、各マクロブロックにおける出力量子化ステップ値を決定する。   The adder 656 receives the input quantization step value and the output value from the limiter 655. Then, the adder 656 determines the output quantization step value in each macroblock by adding the output value from the limiter 655 to the input quantization step value.

空間方向の変化度合が小さい画像領域については、出力量子化ステップ値は小さく設定される。空間方向の変化度合が大きい画像領域については、出力量子化ステップ値は大きく設定される。出力量子化ステップ値は過度に小さくならず、過度に大きくならない。   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 CPU 5 every moment. In the quantization step value determination unit 6, the number and arrangement order of the determination units such as the first determination unit 61 are arbitrary.

{第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 value determination unit 6 is mainly different from the second and third embodiments. FIG. 17 is a block diagram illustrating components of the quantization step value determination unit 6. Compared with the second and third embodiments, the fine adjustment unit 66 is arranged downstream of the fifth determination unit 65.

微調整部66は、各マクロブロックについて、第5決定部65により補正された量子化ステップ値を第5決定部65から入力して、トランスコーダ1から出力される出力画像の量子化ステップ値をエンコーダ3に出力する。微調整部66は、各マクロブロックについて、第5決定部65により補正された量子化ステップ値を微調整するにあたり、乗算微調整係数および加算微調整係数を利用する。   The fine adjustment unit 66 inputs the quantization step value corrected by the fifth determination unit 65 from the fifth determination unit 65 for each macroblock, and calculates the quantization step value of the output image output from the transcoder 1. Output to the encoder 3. The fine adjustment unit 66 uses the multiplication fine adjustment coefficient and the addition fine adjustment coefficient for fine adjustment of the quantization step value corrected by the fifth determination unit 65 for each macroblock.

[微調整部の処理内容]
図18は、微調整部66の構成要素を示すブロック図である。微調整部66は、図18の左端において、「入力量子化ステップ値」、「P_type_MB」を入力する。微調整部66は、図18の右端において、「出力量子化ステップ値」を出力する。
[Details of fine adjustment processing]
FIG. 18 is a block diagram illustrating components of the fine adjustment unit 66. The fine adjustment unit 66 inputs “input quantization step value” and “P_type_MB” at the left end of FIG. The fine adjustment unit 66 outputs an “output quantization step value” at the right end of FIG.

「入力量子化ステップ値」は、各マクロブロックにおける、第5決定部65により補正された量子化ステップ値である。「出力量子化ステップ値」は、各マクロブロックにおける、トランスコーダ1から出力される出力画像の量子化ステップ値である。   The “input quantization step value” is a quantization step value corrected by the fifth determination unit 65 in each macroblock. The “output quantization step value” is a quantization step value of an output image output from the transcoder 1 in each macroblock.

「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 fine adjustment unit 66 includes a multiplier 661, a selector 662, an adder 663, a selector 664, and the like. The processing contents will also be described.

乗算器661は、入力量子化ステップ値を入力する。そして、乗算器661は、入力量子化ステップ値に、乗算微調整係数を乗算する。ここで、乗算微調整係数は、以下に説明するように決定される。   The multiplier 661 receives the input quantization step value. Then, the multiplier 661 multiplies the input quantization step value by a multiplication fine adjustment coefficient. Here, the fine multiplication adjustment coefficient is determined as described below.

セレクタ662は、ピクチャ種類P_type_MBを切替信号として入力する。ピクチャ種類P_type_MBがIピクチャ、Pピクチャ、Bピクチャ、PピクチャまたはBピクチャのイントラマクロブロックであるときには、セレクタ662は、乗算微調整係数として、それぞれ、α、α、α、αI−PBを出力する。 The selector 662 inputs the picture type P_type_MB as a switching signal. When the picture type P_type_MB is an intra macroblock of an I picture, P picture, B picture, P picture, or B picture, the selector 662 uses α I , α P , α B , α I− as the multiplication fine adjustment coefficients, respectively . PB is output.

加算器663は、乗算器661による乗算値を入力する。そして、加算器663は、乗算器661による乗算値に、加算微調整係数を加算する。ここで、加算微調整係数は、以下に説明するように決定される。   The adder 663 receives the multiplication value obtained by the multiplier 661. The adder 663 adds an addition fine adjustment coefficient to the multiplication value obtained by the multiplier 661. Here, the addition fine adjustment coefficient is determined as described below.

セレクタ664は、ピクチャ種類P_type_MBを切替信号として入力する。ピクチャ種類P_type_MBがIピクチャ、Pピクチャ、Bピクチャ、PピクチャまたはBピクチャのイントラマクロブロックであるときには、セレクタ664は、加算微調整係数として、それぞれ、β、β、β、βI−PBを出力する。 The selector 664 receives the picture type P_type_MB as a switching signal. When the picture type P_type_MB is an I-picture, P-picture, B-picture, P-picture, or B-picture intra macroblock, the selector 664 uses β I , β P , β B , β I- PB is output.

第1決定部61から第5決定部65までにおいて、出力量子化ステップ値の補正が実行されて、微調整部66において、出力量子化ステップ値の微調整が実行される。乗算微調整係数α、α、α、αI−PB、および、加算微調整係数β、β、β、βI−PBは、時間変化することなく固定されていてもよく、CPU5により時々刻々と書き換えられてもよい。量子化ステップ値決定部6において、第1決定部61などの決定部および微調整部66など微調整部の個数および配列順序は任意である。 From the first determination unit 61 to the fifth determination unit 65, the output quantization step value is corrected, and in the fine adjustment unit 66, the output quantization step value is finely adjusted. The multiplication fine adjustment coefficients α I , α P , α B , α I-PB , and the addition fine adjustment coefficients β I , β P , β B , β I-PB may be fixed without changing over time. The CPU 5 may rewrite the data every moment. In the quantization step value determination unit 6, the number and arrangement order of the determination unit such as the first determination unit 61 and the fine adjustment unit such as the fine adjustment unit 66 are arbitrary.

1 トランスコーダ
2 デコーダ
3 エンコーダ
4 処理設定部
5 CPU
6 量子化ステップ値決定部
7 評価値算出部
8 画像メモリ
61、61A、61B 第1決定部
62 第2決定部
63 第3決定部
64 第4決定部
65 第5決定部
66 微調整部
1 Transcoder 2 Decoder 3 Encoder 4 Processing Setting Unit 5 CPU
6 quantization step value determination unit 7 evaluation value calculation unit 8 image memories 61, 61A, 61B first determination unit 62 second determination unit 63 third determination unit 64 fourth determination unit 65 fifth determination unit 66 fine adjustment unit

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.
請求項ないし請求項10のいずれかに記載のトランスコーダにおいて、
前記量子化ステップ値決定部は、
前記空間変化評価値と前記所定色度評価値を変数として、前記補正係数を格納する補正係数格納部、
を含むことを特徴とするトランスコーダ。
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:
請求項12に記載のトランスコーダにおいて、
前記量子化ステップ値決定部は、各マクロブロックの位置が画像中心の位置に近いほど、出力量子化ステップ値を小さく決定することを特徴とするトランスコーダ。
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.
請求項12または請求項13に記載のトランスコーダにおいて、
前記量子化ステップ値決定部は、
前記座標位置評価値を変数として、前記補正係数を格納する補正係数格納部、
を含むことを特徴とするトランスコーダ。
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.
請求項、請求項11、請求項14のいずれかに記載のトランスコーダにおいて、さらに、
入力画像の入力ビットレートと、出力画像の出力ビットレートと、出力画像の目標ビットレートと、の時間変化に基づいて、前記補正係数を前記補正係数格納部に時々刻々と更新して書き込む補正係数更新書込部、
を備えることを特徴とするトランスコーダ。
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:
請求項1ないし請求項15のいずれかに記載のトランスコーダにおいて、さらに、
各マクロブロックにおける評価値に対して、所定個数の区分分けを実行する評価値区分分け部、
を備え、
前記量子化ステップ値決定部は、所定個数の区分分けを実行された評価値に基づいて、出力量子化ステップ値を決定することを特徴とするトランスコーダ。
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.
請求項16に記載のトランスコーダにおいて、
各区分における評価値のレンジは、それぞれ等しいことを特徴とするトランスコーダ。
The transcoder of claim 16 .
A transcoder characterized in that the evaluation value ranges in each section are equal.
請求項16に記載のトランスコーダにおいて、
各区分における評価値のレンジは、それぞれ異なることを特徴とするトランスコーダ。
The transcoder of claim 16 .
Transcoders characterized by different evaluation value ranges in each category.
請求項ないし請求項14のいずれかに記載のトランスコーダにおいて、
前記補正係数は、
出力量子化ステップ値が決定されるために、入力量子化ステップ値に乗算される乗算補正係数と、
出力量子化ステップ値が決定されるために、入力量子化ステップ値に加算される加算補正係数と、
を含むことを特徴とするトランスコーダ。
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.
請求項19に記載のトランスコーダにおいて、さらに、
前記乗算補正係数が入力量子化ステップ値に乗算された量子化ステップ値と、前記加算補正係数が入力量子化ステップ値に加算された量子化ステップ値と、前記乗算補正係数が入力量子化ステップ値に乗算されていない、かつ、前記加算補正係数が入力量子化ステップ値に加算されていない量子化ステップ値とのうち、いずれかの量子化ステップ値を出力量子化ステップ値として選択する出力量子化ステップ値選択部、
を備えることを特徴とするトランスコーダ。
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:
請求項1ないし請求項20のいずれかに記載のトランスコーダにおいて、
前記量子化ステップ値決定部は、
前記補正係数により補正された出力量子化ステップ値に対して、微調整係数により微調整された出力量子化ステップ値を算出する微調整部、
を含むことを特徴とするトランスコーダ。
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.
請求項21に記載のトランスコーダにおいて、
前記微調整係数は、
前記補正係数により補正された出力量子化ステップ値に乗算される乗算微調整係数、
を含むことを特徴とするトランスコーダ。
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.
請求項21または請求項22に記載のトランスコーダにおいて、
前記微調整係数は、
前記補正係数により補正された出力量子化ステップ値に加算される加算微調整係数、
を含むことを特徴とするトランスコーダ。
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.
請求項21ないし請求項23のいずれかに記載のトランスコーダにおいて、
前記微調整係数は、各マクロブロックのピクチャ種類に基づいて、それぞれ設定されることを特徴とするトランスコーダ。
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.
請求項21ないし請求項24のいずれかに記載のトランスコーダにおいて、
前記微調整係数は、入力画像の入力ビットレートと、出力画像の出力ビットレートと、出力画像の目標ビットレートと、の時間変化に基づいて、時々刻々と更新されることを特徴とするトランスコーダ。


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. .


JP2013079401A 2013-04-05 2013-04-05 Transcoder Expired - Fee Related JP5559902B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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