JP2012029213A - Dynamic image encoding device - Google Patents

Dynamic image encoding device Download PDF

Info

Publication number
JP2012029213A
JP2012029213A JP2010168269A JP2010168269A JP2012029213A JP 2012029213 A JP2012029213 A JP 2012029213A JP 2010168269 A JP2010168269 A JP 2010168269A JP 2010168269 A JP2010168269 A JP 2010168269A JP 2012029213 A JP2012029213 A JP 2012029213A
Authority
JP
Japan
Prior art keywords
unit
image
statistic
encoding
decoded image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010168269A
Other languages
Japanese (ja)
Other versions
JP5585271B2 (en
Inventor
Takeshi Jo
武史 城
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2010168269A priority Critical patent/JP5585271B2/en
Publication of JP2012029213A publication Critical patent/JP2012029213A/en
Application granted granted Critical
Publication of JP5585271B2 publication Critical patent/JP5585271B2/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 temporally homogenize image quality of decoded images in a dynamic image encoding device to which lossy compression of a locally decoded image is applied.SOLUTION: A dynamic image encoding device comprises: an encoding processing unit for encoding an original image of each frame of a dynamic image for each macroblock; a locally decoded image generation unit for generating a locally decoded image from compressed data obtained in the encoding process; a block compression unit for performing lossy compression on the locally decoded image for each macroblock; a block decompression unit for decompressing the compressed data to generate a restored locally decoded image; a differential image generation unit for generating a differential image between the restored locally decoded image and the locally decoded image; a statistic extraction unit for extracting a statistic indicating a statistical property of a distribution of errors appearing in the differential image; a statistic tallying unit for cumulatively adding the extracted statistics for each area; and an area determination unit for determining areas to apply intra-image encoding in encoding processing of the next frame of the current frame based on the cumulative addition result.

Description

本発明は、画面内予測と画面間予測とを組み合わせて動画像の符号化を行う動画像符号化装置に関する。   The present invention relates to a moving image encoding apparatus that encodes a moving image by combining intra prediction and inter prediction.

動画像符号化装置では、画面内予測処理で得られる予測画像と画面間予測で得られる予測画像とのうち、より小さい予測誤差を与えるものが選択され、符号化ストリームデータの生成に供される。   In the video encoding device, a prediction image that gives a smaller prediction error is selected from the prediction image obtained by the intra-screen prediction process and the prediction image obtained by the inter-screen prediction, and is used for generation of encoded stream data. .

画面間予測では、例えば、第nフレームの画像について動きベクトルを検出するために、第n−1フレームの画像符号化データを復号して得られたローカルデコード画像が用いられる。そして、画面間予測を用いて符号化された第nフレームの動画像符号は、動画像復号化装置において、第n−1フレームの符号化データを復号して得られた参照画像を用いて復号される。このように、画面間予測符号化/復号化処理は、符号化処理で用いられるローカルデコード画像と復号化処理とで用いられる参照画像とが一致していることを前提としている。   In the inter-screen prediction, for example, a local decoded image obtained by decoding image encoded data of the (n-1) th frame is used to detect a motion vector for the image of the nth frame. Then, the moving image code of the nth frame encoded using inter-screen prediction is decoded using the reference image obtained by decoding the encoded data of the (n−1) th frame in the moving image decoding apparatus. Is done. As described above, the inter-picture prediction encoding / decoding process is based on the premise that the local decoded image used in the encoding process matches the reference image used in the decoding process.

従来の動画像符号化装置では、ローカルデコード画像は、各フレームの符号化処理と並行して生成されてSDRAMなどの外部メモリに格納され、次のフレームの符号化処理に供される。例えば、画面間予測のために動きベクトルの検出を行う際に、この外部メモリからローカルデコード画像の所望の領域が読み出されて使用される。   In the conventional moving image encoding apparatus, a local decoded image is generated in parallel with the encoding process of each frame, stored in an external memory such as SDRAM, and used for the encoding process of the next frame. For example, when detecting a motion vector for inter-screen prediction, a desired region of a local decoded image is read from the external memory and used.

ところで、ハイビジョン放送の普及に伴って、動画像符号化装置が扱う画像データのサイズが大きくなってきている。上述したローカルデコード画像のデータサイズは、符号化対象の画像データサイズと同等であり、符号化データなどに比べて非常に大きい。このため、動きベクトル検出処理の際に外部メモリから転送されるデータ量も増大し、消費電力の増大を招いてしまう。   By the way, with the widespread use of high-definition broadcasting, the size of image data handled by a moving image encoding device is increasing. The data size of the local decoded image described above is equivalent to the image data size to be encoded and is much larger than the encoded data. For this reason, the amount of data transferred from the external memory during the motion vector detection process also increases, leading to an increase in power consumption.

動きベクトル検出処理の際に外部メモリから読み込むデータ量を抑制する方法として、ローカルデコード画像を圧縮してから外部メモリに格納する手法が提案されている。   As a method for suppressing the amount of data read from the external memory during the motion vector detection process, a method of compressing the local decoded image and storing it in the external memory has been proposed.

例えば、ローカルデコード画像から、縮小画像と、この縮小画像の拡大した画像とローカルデコード画像との差分画像とを生成し、縮小画像と差分画像を外部メモリに格納する手法が提案されている(特許文献1参照)。このような可逆圧縮を用いた手法では、外部メモリから読み出した縮小画像を拡大した画像に差分画像を合成することにより、元のローカルデコード画像が復元される。   For example, a method has been proposed in which a reduced image and a difference image between the enlarged image of the reduced image and the local decoded image are generated from the local decoded image, and the reduced image and the difference image are stored in an external memory (patent). Reference 1). In such a technique using lossless compression, the original local decoded image is restored by combining the difference image with the enlarged image of the reduced image read from the external memory.

また、ローカルデコード画像に対してDCT変換処理を行って圧縮データを生成し、この圧縮データをローカルデコード画像の代わりに外部メモリに格納し、次のフレームの画面間予測処理に供する手法も提案されている(特許文献2参照)。このような非可逆圧縮を用いた手法では、高い圧縮率が得られることから、動きベクトル検出処理の際に外部メモリから転送されるデータ量を低減する効果が高い。   A method is also proposed in which DCT conversion processing is performed on a local decoded image to generate compressed data, the compressed data is stored in an external memory instead of the local decoded image, and used for inter-frame prediction processing of the next frame. (See Patent Document 2). In such a technique using irreversible compression, a high compression rate can be obtained, so that the effect of reducing the amount of data transferred from the external memory at the time of motion vector detection processing is high.

特開2007−036738号公報JP 2007-036738 A 特開平10−79941号公報Japanese Patent Laid-Open No. 10-79941

ローカルデコード画像を可逆圧縮する手法では、次のフレームについて画面間予測処理を行う際に、圧縮画像から元のローカルデコード画像を復元することができる。その反面、可逆圧縮の対象となるローカルデコード画像の特徴によって、圧縮率は大きく変化するうえ、総じて圧縮率はあまり高くない。更に、ローカルデコード画像の特徴によっては、元のローカルデコード画像よりも、むしろ、可逆圧縮後のデータサイズのほうが大きくなる可能性すらある。   In the technique of reversibly compressing a local decoded image, the original local decoded image can be restored from the compressed image when performing inter-screen prediction processing for the next frame. On the other hand, the compression ratio varies greatly depending on the characteristics of the local decoded image to be subjected to lossless compression, and the compression ratio is generally not very high. Further, depending on the characteristics of the local decoded image, there is a possibility that the data size after the lossless compression is larger than the original local decoded image.

一方、非可逆圧縮を用いた手法では、高い圧縮率を保証することができるものの、圧縮データから得られる復元ローカルデコード画像と元のローカルデコード画像との間に誤差が生じる。このような誤差は、復元ローカルデコード画像を用いた画面間予測によって生成された符号化データに伝搬する。そして、この符号化データを復号して得られる復元画像にも伝搬する。更に、この復元画像は、次の符号化データを復号する際の参照画像となるので、上述した誤差は累積していくことになる。   On the other hand, in the method using lossy compression, a high compression rate can be guaranteed, but an error occurs between the restored local decoded image obtained from the compressed data and the original local decoded image. Such an error propagates to encoded data generated by inter-screen prediction using the restored local decoded image. It is also propagated to a restored image obtained by decoding the encoded data. Further, since the restored image becomes a reference image for decoding the next encoded data, the above-described errors are accumulated.

このような累積誤差は、1フレームに含まれる全てのマクロブロックを画面内予測処理によって符号化したIピクチャを、定期的に挿入することで解消される。例えば、典型的な動画像符号化装置では、Iピクチャは30フレームごとに挿入されるので、この割合で累積誤差は解消される。しかしながら、Iピクチャの直前フレームでは累積誤差が非常に大きくなっている可能性がある。つまり、累積誤差により画質が劣化した復元画像の直後に、Iピクチャの挿入によって累積誤差が解消され、復元画像の画質が急に改善されることになる。したがって、累積誤差の解消をIピクチャの挿入に依存する構成では、画質が周期的に劣化と改善を繰り返す可能性がある。そして、このような画質の時間的な変動は、利用者に不自然な印象を与えてしまう。   Such an accumulated error is eliminated by periodically inserting an I picture in which all macroblocks included in one frame are encoded by intra prediction processing. For example, in a typical moving picture coding apparatus, an I picture is inserted every 30 frames, so that the cumulative error is eliminated at this rate. However, the accumulated error may be very large in the frame immediately before the I picture. That is, immediately after the restored image whose image quality has deteriorated due to the accumulated error, the accumulated error is eliminated by inserting the I picture, and the image quality of the restored image is suddenly improved. Therefore, in a configuration that relies on the insertion of an I picture to eliminate the accumulated error, there is a possibility that the image quality periodically repeats deterioration and improvement. Such temporal fluctuations in image quality give the user an unnatural impression.

本件開示の装置は、ローカルデコード画像の非可逆圧縮を適用した動画像符号化装置において、復号画像の画質の時間的な均質化を図ることが可能な動画像符号化装置を提供することを目的とする。   It is an object of the present disclosure to provide a moving image encoding apparatus capable of temporally homogenizing the image quality of a decoded image in a moving image encoding apparatus to which irreversible compression of a local decoded image is applied. And

上述した目的は、以下に開示する動画像符号化装置によって達成することができる。   The object described above can be achieved by a moving picture encoding apparatus disclosed below.

一つの観点による動画像符号化装置は、動画像の各フレームの原画像に含まれるマクロブロックごとに、画面内符号化あるいは画面間符号化を適用して圧縮および符号化する符号化処理部と、原画像に含まれる各マクロブロックについて、符号化処理部による符号化過程で得られる圧縮データからローカルデコード画像を生成するローカルデコード画像生成部と、各マクロブロックに対応するローカルデコード画像を非可逆圧縮してブロック圧縮データを生成するブロック圧縮部と、各マクロブロックに対応するブロック圧縮データを伸長して、各マクロブロックに対応する復元ローカルデコード画像を生成するブロック伸長部と、各マクロブロックに対応する復元ローカルデコード画像とローカルデコード画像との間の誤差を示す差分画像を生成する差分画像生成部と、各マクロブロックに対応する差分画像に現れた誤差の分布の統計的な性質を示す統計量を抽出する統計量抽出部と、統計量抽出部で抽出された統計量を、フレームを区分して得られる複数の領域ごとに累積加算する統計量集計部と、統計量集計部による累積加算結果で示される各フレームまでの累積誤差に基づいて、当該フレームの次のフレームの符号化処理において複数の領域のうち画面内符号化を適用する領域を判別する領域判別部と、を備える。   A moving image encoding apparatus according to one aspect includes an encoding processing unit that compresses and encodes each macroblock included in an original image of each frame of a moving image by applying intra-screen encoding or inter-screen encoding. For each macroblock included in the original image, a local decoded image generating unit that generates a local decoded image from compressed data obtained in the encoding process by the encoding processing unit, and a local decoded image corresponding to each macroblock are irreversibly A block compression unit that generates block compressed data by compression, a block decompression unit that decompresses block compressed data corresponding to each macroblock and generates a restored local decoded image corresponding to each macroblock, and a macroblock Difference image showing error between corresponding restored local decoded image and local decoded image A difference image generation unit to be generated, a statistic extraction unit for extracting a statistic indicating a statistical property of an error distribution appearing in a difference image corresponding to each macroblock, and a statistic extracted by the statistic extraction unit Based on the cumulative error up to each frame indicated by the cumulative addition result by the statistical totaling unit and a statistical totaling unit that cumulatively adds each of a plurality of regions obtained by dividing the frame. And a region discriminating unit that discriminates a region to which intra-screen coding is applied from among a plurality of regions.

ローカルデコード画像の非可逆圧縮を適用した動画像符号化装置において、復元画像の画質を時間的に均質にすることができる。   In a moving image encoding apparatus to which irreversible compression of a local decoded image is applied, the image quality of a restored image can be made uniform in time.

動画像符号化装置の一実施形態を示す図である。It is a figure which shows one Embodiment of a moving image encoder. 画面間符号化モードの符号データを復号する際の参照範囲を説明する図である。It is a figure explaining the reference range at the time of decoding the code data of the inter-screen coding mode. 統計量の集計を説明する図である。It is a figure explaining totaling of statistics. 統計量の集計動作を表す流れ図である。It is a flowchart showing the statistics totaling operation. 領域判別部の一実施形態を示す図である。It is a figure which shows one Embodiment of an area | region discrimination | determination part. 領域判別動作を表す流れ図である。It is a flowchart showing area | region discrimination | determination operation | movement. 符号化動作を表す流れ図(その1)である。It is a flowchart (the 1) showing encoding operation | movement. 符号化動作を表す流れ図(その2)である。It is a flowchart (the 2) showing encoding operation | movement. 領域判別部の別実施形態を示す図である。It is a figure which shows another embodiment of an area | region discrimination | determination part. 領域判別部の動作を表す流れ図である。It is a flowchart showing operation | movement of an area | region discrimination | determination part. 動画像符号化装置の別実施形態を示す図である。It is a figure which shows another embodiment of a moving image encoder. 動画像符号化装置の別実施形態を示す図である。It is a figure which shows another embodiment of a moving image encoder.

以下、図面に基づいて、本発明の実施形態について詳細に説明する。
(一つの実施形態)
図1に、動画像符号化装置の一実施形態を示す。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(One embodiment)
FIG. 1 shows an embodiment of a moving image encoding apparatus.

図1に示した符号化コア部100は、画面内予測部101と画面間予測部102と符号化モード決定部103と、DCT量子部104と、エントロピー符号化部105と、ローカルデコード(LD)画像生成部111とを備えている。この符号化コア部100は、外部メモリの原画像保持部に格納された原画像を、例えば、16画素×16画素のマクロブロック単位で読み込んで符号化処理を行う。   The encoding core unit 100 illustrated in FIG. 1 includes an intra-screen prediction unit 101, an inter-screen prediction unit 102, an encoding mode determination unit 103, a DCT quantum unit 104, an entropy encoding unit 105, and a local decoding (LD). And an image generation unit 111. The encoding core unit 100 reads the original image stored in the original image holding unit of the external memory, for example, in units of macroblocks of 16 pixels × 16 pixels, and performs encoding processing.

符号化モード決定部103は、各マクロブロックの入力に応じて、画面内予測部101と画面間予測部102とでそれぞれ得られた予測残差に基づいて、当該マクロブロックに適用する符号化モードを決定する。DCT量子化部104は、符号化モードに対応する予測残差を受け取り、この予測残差に対して、DCT変換処理と量子化処理とを行って、圧縮データを生成する。この圧縮データは、エントロピー符号化部105により符号化され、生成された符号化データが出力される。   The encoding mode determination unit 103 is applied to the macroblock based on the prediction residuals obtained by the intra-screen prediction unit 101 and the inter-screen prediction unit 102 according to the input of each macroblock. To decide. The DCT quantization unit 104 receives a prediction residual corresponding to the coding mode, performs DCT transform processing and quantization processing on the prediction residual, and generates compressed data. The compressed data is encoded by the entropy encoding unit 105, and the generated encoded data is output.

ローカルデコード画像生成部111の伸長処理部106は、DCT圧縮部104から受け取った量子化圧縮データに対して、逆量子化処理と逆DCT変換処理を行って予測残差データを復元する。復元された予測残差データは、復元画像生成部107により、符号化モード決定部103から渡される予測画像と合成される。このようにして生成されたローカルデコード画像は、画面内予測部101に渡され、次のマクロブロックの予測処理に供される。また、このローカルデコード画像は、デブロッキング処理部108によるデブロッキング処理を経て、ブロック圧縮部112に渡される。なお、デブロッキング処理は、生成されたローカルデコード画像のマクロブロックとその周囲のマクロブロックとの境界付近に現れるブロックノイズを除去する処理である。   The decompression processing unit 106 of the local decoded image generation unit 111 performs inverse quantization processing and inverse DCT transform processing on the quantized compressed data received from the DCT compression unit 104 to restore prediction residual data. The restored prediction residual data is combined with the predicted image passed from the encoding mode determination unit 103 by the restored image generation unit 107. The local decoded image generated in this manner is transferred to the intra-screen prediction unit 101 and used for the prediction process of the next macroblock. In addition, this local decoded image is passed to the block compression unit 112 through the deblocking process by the deblocking processing unit 108. The deblocking process is a process for removing block noise that appears near the boundary between the macroblock of the generated local decoded image and the surrounding macroblocks.

ブロック圧縮部112は、マクロブロック単位で入力されるローカルデコード画像を、目標圧縮率を設定可能な非可逆圧縮処理によって圧縮し、ブロック圧縮データを生成する。非可逆圧縮処理の例としては、予測ブロックからDPCM(差分パルス符号変調)によって予測残差を計算し、所定の目標圧縮率を得るように、この予測残差に対して量子化処理および可変長符号化処理を行う方法がある。   The block compression unit 112 compresses a local decoded image input in units of macroblocks by an irreversible compression process in which a target compression rate can be set, and generates block compressed data. As an example of lossy compression processing, a prediction residual is calculated from a prediction block by DPCM (Differential Pulse Code Modulation), and quantization processing and variable length are performed on the prediction residual so as to obtain a predetermined target compression rate. There is a method of performing an encoding process.

ブロック圧縮部112で生成されたブロック圧縮データに対して、ブロック伸長部113は、ブロック圧縮部112の処理に対応する逆変換処理を行う。ブロック伸長部113は、伸長処理として、例えば、ブロック圧縮データを可変長復号し、復号結果に対して、逆量子化処理を行い、更に、逆DPCM処理を行うことができる。このような伸長処理により、上述したブロック圧縮データから、復元ローカルデコード画像の対応するマクロブロックが生成される。   The block decompression unit 113 performs inverse transformation processing corresponding to the processing of the block compression unit 112 on the block compressed data generated by the block compression unit 112. As the decompression process, for example, the block decompression unit 113 can perform variable length decoding on the block compressed data, perform an inverse quantization process on the decoding result, and further perform an inverse DPCM process. By such decompression processing, a corresponding macroblock of the restored local decoded image is generated from the block compressed data described above.

差分画像生成部114は、デブロッキング処理部108で生成されたローカルデコード画像と、ブロック伸長部113で生成された復元ローカルデコード画像との差分画像をマクロブロック単位で生成する。   The difference image generation unit 114 generates a difference image between the local decoded image generated by the deblocking processing unit 108 and the restored local decoded image generated by the block decompression unit 113 in units of macroblocks.

この差分画像は、符号化処理対象の第nフレームのローカルデコード画像とこのローカルデコード画像から生成される復元ローカルデコード画像との間で、符号化対象のマクロブロックの位置において新たに発生した誤差を示している。   This difference image is an error generated newly at the position of the macroblock to be encoded between the local decoded image of the nth frame to be encoded and the restored local decoded image generated from this local decoded image. Show.

以下、上述したようにして、各マクロブロックについて得られる差分画像に基づいて、1フレームを区分して得られる複数の領域のうち、当該マクロブロックを含む領域の復元ローカルデコード画像に累積していく誤差を評価する方法について検討する。なお、累積誤差の評価の単位となる領域として、例えば、フルHDサイズ(1920画素×1088画素)を、横方向および縦方向にそれぞれ15等分および17等分した横128画素×縦64画素の領域を用いることができる。この場合に、一つの領域には、16画素×16画素のマクロブロックが32個含まれ、1フレームに含まれる領域の数は255個となる。   Hereinafter, as described above, based on the difference image obtained for each macroblock, among the plurality of areas obtained by dividing one frame, the accumulated local decoded image of the area including the macroblock is accumulated. Consider how to evaluate the error. In addition, as an area serving as a unit for evaluating the accumulated error, for example, a full HD size (1920 pixels × 1088 pixels) is divided into 15 equal parts and 17 equal parts in the horizontal direction and the vertical direction, respectively. Regions can be used. In this case, 32 macroblocks each having 16 pixels × 16 pixels are included in one area, and the number of areas included in one frame is 255.

ここで、ローカルデコード画像および復元ローカルデコード画像に含まれる各画素の画素値の差分は、数値「0」となる場合が最も多く、差分値が大きくなるに従って出現頻度が低下する。したがって、上述した誤差の値の確率分布は、正規分布によって近似することができる。また、正規分布の特性として、独立した正規分布の和もまた正規分布になることが知られている。例えば、正規分布である2つの確率密度関数Ga(diff,μ、σ )と確率密度関数Ga(diff,μ、σ )と和は、差分diffと、差分平均値μおよびμと、差分分散σ およびσ とを用いて式(1)のように表される。 Here, the difference between the pixel values of each pixel included in the local decoded image and the restored local decoded image is most often a numerical value “0”, and the appearance frequency decreases as the difference value increases. Therefore, the above-described probability distribution of error values can be approximated by a normal distribution. As a characteristic of normal distribution, it is known that the sum of independent normal distributions also becomes normal distribution. For example, the two probability density functions Ga (diff, μ a , σ a 2 ) and the probability density function Ga (diff, μ b , σ b 2 ), which are normal distributions, and the sum are the difference diff and the difference average value μ a And μ b , and difference variances σ a 2 and σ b 2 , are expressed as in equation (1).

Figure 2012029213
Figure 2012029213

すなわち、各領域の差分値が正規分布の確率密度関数に従って出現していると仮定すると、各領域の局所的な確率密度関数の形状は、その領域の誤差標本平均と誤差標本分散によって決定される。つまり、誤差標本である各マクロブロックの差分画像の平均値および分散を数フレームにわたって累積することにより、各領域における誤差の累積の様子を見積もることができる。なお、差分画像に含まれる各画素に対応する差分値の平均は数値「0」に収束する傾向がある。したがって、標本誤差平均を0と仮定して、誤差分散に基づいて、各領域の局所的な確率密度分布を推定することができる。ここで、誤差分散は、標本誤差平均μを0とすると、式(2)に示すように、差分値diffの二乗和に比例する。   That is, assuming that the difference value of each region appears according to the probability distribution function of the normal distribution, the shape of the local probability density function of each region is determined by the error sample mean and error sample variance of that region . In other words, by accumulating the average value and variance of the difference image of each macroblock, which is an error sample, over several frames, it is possible to estimate the state of error accumulation in each region. Note that the average of the difference values corresponding to each pixel included in the difference image tends to converge to the numerical value “0”. Therefore, assuming that the sample error average is 0, the local probability density distribution of each region can be estimated based on the error variance. Here, the error variance is proportional to the sum of squares of the difference value diff, as shown in Expression (2), where the sampling error average μ is 0.

Figure 2012029213
Figure 2012029213

これらのことから、誤差の標本誤差分散を計算する処理は、誤差分散にほぼ正比例する誤差二乗和を計算する処理に置換え可能である。つまり、各フレームの領域jにおける誤差の標本である各マクロブロックの差分二乗和を累積させることにより、そのフレームで生成されるローカルデコード画像において、それまでに累積した誤差の大きさを見積もることができる。すなわち、差分画像の各マクロブロックについて、画素値の二乗和を算出することにより、誤差の分布の統計的な性質を示す統計量を抽出することができる。したがって、図1に示した例において、統計量抽出部115は、差分画像の各マクロブロックについて、画素値の二乗和を算出する差分二乗和算出部を用いて実現することができる。この差分二乗和算出部では、例えば、差分画像のマクロブロックに含まれる各画素の画素値の成分である輝度成分Y,色差成分Cb,Crについて、それぞれ独立に差分二乗和が算出される。更に、この差分二乗和算出部により、これらを加算した値が算出され、この値が、マクロブロックに対応して抽出した統計量として、統計量集計部116の処理に供される。   From these facts, the process of calculating the error sampling error variance can be replaced with the process of calculating the sum of squared errors that is almost directly proportional to the error variance. That is, by accumulating the sum of squared differences of each macroblock, which is a sample of errors in the region j of each frame, it is possible to estimate the magnitude of the error accumulated so far in the local decoded image generated in that frame. it can. That is, by calculating the sum of squares of the pixel values for each macro block of the difference image, a statistic indicating the statistical nature of the error distribution can be extracted. Therefore, in the example illustrated in FIG. 1, the statistic extraction unit 115 can be realized by using a difference square sum calculation unit that calculates a square sum of pixel values for each macroblock of the difference image. In this difference square sum calculation unit, for example, the difference sum of squares is calculated independently for the luminance component Y and the color difference components Cb and Cr, which are the component of the pixel value of each pixel included in the macroblock of the difference image. Further, a value obtained by adding these values is calculated by the difference square sum calculation unit, and this value is provided to the processing of the statistic totaling unit 116 as a statistic extracted corresponding to the macroblock.

ここで、画面内符号化処理では、各マクロブロックについての符号化処理に対応して生成されたローカルデコード画像が次のマクロブロックの画面内予測処理の際に参照される。上述したように、画面内符号化処理で参照されるローカルデコード画像に累積した誤差の大きさは、累積誤差の分散と高い相関性を持つ差分二乗和の累積値に基づいて高い精度で見積もることができる。そして、画面内符号化モードでは、参照されるローカルデコード画像における累積誤差が、そのまま、符号化データを介して復号側に伝搬する。したがって、例えば、各フレームの符号化処理に対応して生成される各マクロブロックの差分画像の差分二乗和を、領域ごとに累積加算することにより、累積誤差の大きさを高い精度で見積もることが可能である。   Here, in the intra-frame encoding process, the local decoded image generated corresponding to the encoding process for each macroblock is referred to in the intra-frame prediction process for the next macroblock. As described above, the magnitude of the error accumulated in the local decoded image referred to in the intra-picture encoding process is estimated with high accuracy based on the accumulated value of the sum of squared differences having a high correlation with the variance of the accumulated error. Can do. In the intra-screen coding mode, the accumulated error in the referenced local decoded image is directly propagated to the decoding side via the coded data. Therefore, for example, the cumulative error sum of the difference images of each macroblock generated corresponding to the encoding process of each frame is cumulatively added for each region, so that the magnitude of the cumulative error can be estimated with high accuracy. Is possible.

図2に、画面間符号化モードの符号データを復号する際の参照範囲を説明する図を示す。図2に示した例では、第n+1フレームのマクロブロックMB(i)に対応する符号化データを復号する際に、第nフレームのローカルデコード画像において参照される範囲が実線の矩形で示されている。そして、第Nフレームのローカルデコード画像において、復号対象のマクロブロックMB(i)に相当する位置にあるマクロブロックを破線の矩形で示した。   FIG. 2 is a diagram illustrating a reference range when decoding code data in the inter-screen coding mode. In the example shown in FIG. 2, when decoding the encoded data corresponding to the macro block MB (i) of the (n + 1) th frame, the range referred to in the local decoded image of the nth frame is indicated by a solid line rectangle. Yes. In the local decoded image of the Nth frame, the macroblock located at the position corresponding to the macroblock MB (i) to be decoded is indicated by a broken-line rectangle.

図2に示したように、画面間符号化モードで生成された符号化データが復号される場合に、第n+1フレームのマクロブロックMB(i)に現れる累積誤差は、次に挙げる二つの要因の重ね合わせとなる。重ね合わせられる要因の一つは、自身の非可逆圧縮によって発生した誤差である。そして、もう一つの要因は、第nフレームのローカルデコード画像における参照先に存在する累積誤差である。   As shown in FIG. 2, when the encoded data generated in the inter-picture encoding mode is decoded, the accumulated error appearing in the macroblock MB (i) of the (n + 1) th frame is caused by the following two factors: Overlay. One of the factors to be superimposed is an error caused by its own lossy compression. Another factor is the accumulated error existing at the reference destination in the local decoded image of the nth frame.

ここで、動きベクトルに基づいて参照される過去ピクチャの領域は、復号対象の領域の近傍領域である確率が高い。たとえば、図2に示した例では、実際の参照領域と、復号対象の領域と位置的に対応する領域とは、互いに多くの部分が重なり合っている。したがって、参照領域における誤差の統計的な性質は、第nフレームにおいて復号対象の領域と位置的に対応する領域の統計的性質とほぼ同じである可能性が高い。したがって、個々の領域の累積誤差を、過去のピクチャにおける同位置の領域に対応する統計量の累積で近似することができる。この近似を適用すれば、画面間符号化モードで符号化された符号データから生成される復号画像の累積誤差分散を、上述した画面内符号化モードでの累積誤差分散と同様に、簡易的に見積もることができる。つまり、各フレームの符号化処理に対応して生成される各マクロブロックの差分画像の差分二乗和を領域ごとに累積加算することにより、累積誤差の大きさを見積もることが可能である。   Here, the past picture region referred to based on the motion vector has a high probability of being a neighborhood region of the decoding target region. For example, in the example shown in FIG. 2, the actual reference area and the area corresponding to the area to be decoded overlap with each other in many parts. Therefore, there is a high possibility that the statistical property of the error in the reference region is almost the same as the statistical property of the region corresponding to the position to be decoded in the nth frame. Therefore, the accumulated error of each region can be approximated by the accumulation of statistics corresponding to the region at the same position in the past picture. If this approximation is applied, the cumulative error variance of the decoded image generated from the code data encoded in the inter-screen encoding mode can be simplified as in the above-described cumulative error variance in the intra-screen encoding mode. Can be estimated. That is, it is possible to estimate the magnitude of the accumulated error by accumulating the difference square sum of the difference images of the macroblocks generated corresponding to the encoding process of each frame for each region.

図1に示した動画像符号化装置の例では、統計量抽出部115により、差分画像生成部114で生成された差分画像の各画素に対応する差分値の二乗和が算出される。そして、この差分二乗和が、各フレームに対応するローカルデコード画像に含まれる各マクロブロックの誤差に関する統計量として、統計量集計部116によって集計される。   In the example of the moving image encoding apparatus illustrated in FIG. 1, the statistic extraction unit 115 calculates the sum of squares of the difference values corresponding to each pixel of the difference image generated by the difference image generation unit 114. Then, the difference sum of squares is totaled by the statistical amount counting unit 116 as a statistical amount related to the error of each macroblock included in the local decoded image corresponding to each frame.

図1に示した例では、統計量集計部116は、加算部122と更新処理部123と累積統計量保持部124とを備えている。統計量抽出部115で抽出された各マクロブロックの統計量は、加算部122により、更新処理部123からの指示に従って、対応する領域の累積統計量に加算される。この加算結果は、上述した領域に対応して累積統計量保持部124に保持され、以降の累積加算処理に供される。   In the example illustrated in FIG. 1, the statistic totaling unit 116 includes an adding unit 122, an update processing unit 123, and a cumulative statistic holding unit 124. The statistic of each macroblock extracted by the statistic extraction unit 115 is added to the accumulated statistic of the corresponding region by the addition unit 122 in accordance with an instruction from the update processing unit 123. The addition result is held in the accumulated statistic holding unit 124 corresponding to the above-described area, and is used for the subsequent accumulation adding process.

図3に、統計量の集計を説明する図を示す。また、図4に、統計量の抽出および集計動作を表す流れ図を示す。   FIG. 3 is a diagram for explaining the aggregation of statistics. FIG. 4 is a flowchart showing statistics extraction and tabulation operations.

図3(a)に示した例では、1フレームはN個の領域に分割されている。そして、各領域には、フレームの左上から順に1番からN番までの領域番号が与えられている。この例では、走査線方向にm個の領域が並んでいる。また、図3(b)に示した例では、この領域番号1〜Nに対応して、累積統計量保持部124に、上述した統計量の集計値S〜Sが格納されている。なお、この累積統計量保持部124としては、例えば、各領域に対応する統計量の集計値を4バイトで表し、領域数N=255とすると、約1Kバイトの容量を準備すればよい。 In the example shown in FIG. 3A, one frame is divided into N areas. Each area is given an area number from No. 1 to No. N in order from the upper left of the frame. In this example, m areas are arranged in the scanning line direction. In the example shown in FIG. 3B, the above-described statistical total values S 1 to S N are stored in the cumulative statistical quantity holding unit 124 corresponding to the area numbers 1 to N. As the accumulated statistic holding unit 124, for example, if the total value of the statistic corresponding to each area is expressed by 4 bytes and the number of areas N = 255, a capacity of about 1 Kbyte may be prepared.

図1に示したローカルデコード画像生成部111によって、符号化対象のフレームの原画像に含まれるi番目のマクロブロックの符号化処理に対応して、ローカルデコード画像の対応するマクロブロックMB(i)が生成される。これに応じて、図4に示す統計量の抽出および集計動作が開始される。   Corresponding to the encoding process of the i-th macroblock included in the original image of the encoding target frame by the local decoded image generation unit 111 shown in FIG. 1, the corresponding macroblock MB (i) of the local decoded image Is generated. In response to this, the statistic extraction and counting operations shown in FIG. 4 are started.

ローカルデコード画像のマクロブロックMB(i)は、まず、ブロック圧縮部112によって所望の圧縮率を適用して非可逆圧縮される(ステップ301)。ブロック圧縮部112で得られたブロック圧縮データを、ブロック伸長部113によって伸長することにより、復元ローカルデコード画像のマクロブロックMBr(i)が生成される(ステップ302)。そして、差分画像生成部114により、この復元ローカルデコード画像のマクロブロックMBr(i)と上述したローカルデコード画像のマクロブロックMB(i)とから、差分画像D(i)が生成される(ステップ303)。   The macroblock MB (i) of the local decoded image is first irreversibly compressed by applying a desired compression rate by the block compression unit 112 (step 301). The block compression data obtained by the block compression unit 112 is expanded by the block expansion unit 113, thereby generating a macroblock MBr (i) of the restored local decoded image (step 302). Then, the difference image generation unit 114 generates a difference image D (i) from the macroblock MBr (i) of the restored local decoded image and the macroblock MB (i) of the local decoded image described above (step 303). ).

この差分画像D(i)の入力に応じて、統計量抽出部115は、差分画像D(i)の各画素の画素値の二乗和Rs(i)を算出する(ステップ304)。この二乗和Rs(i)は、統計量集計部116により、次のようにして集計される。   In response to the input of the difference image D (i), the statistic extraction unit 115 calculates the square sum Rs (i) of the pixel values of each pixel of the difference image D (i) (step 304). This square sum Rs (i) is totalized by the statistic totaling unit 116 as follows.

各マクロブロックのフレームにおける位置は、マクロブロックに与えられたブロック番号で示される。このブロック番号は、例えば、フレームの左上から走査順に与えられている。したがって、更新処理部123は、ローカルデコード画像生成部111から渡されるブロック番号iに基づいて、図3(a)に示した領域のうち、マクロブロックMB(i)が所属する領域を示す領域番号jを特定することができる(ステップ305)。   The position of each macro block in the frame is indicated by a block number given to the macro block. This block number is given in the scanning order from the upper left of the frame, for example. Therefore, the update processing unit 123, based on the block number i passed from the local decoded image generation unit 111, the region number indicating the region to which the macroblock MB (i) belongs among the regions illustrated in FIG. j can be identified (step 305).

ステップ305で特定した領域番号に対応して累積統計量保持部124に保持された統計量の集計値Sjは、更新処理部123を介して加算部122に渡される。そして、加算器122により、ステップ304で新たに得られた統計量である二乗和Rs(i)とこの統計量の集計値Sjとの加算が行われる(ステップ306)。次いで、更新処理部123が、この加算結果を用いて、領域jに対応する統計量の集計値Sjを更新する(ステップ307)。これにより、新たに得られた誤差に関する統計量を、対応する領域の集計値に累積加算することができる。   The statistical total value Sj held in the cumulative statistic holding unit 124 corresponding to the area number specified in step 305 is passed to the adding unit 122 via the update processing unit 123. Then, the adder 122 adds the square sum Rs (i), which is the statistic newly obtained in step 304, and the aggregate value Sj of the statistic (step 306). Next, the update processing unit 123 updates the aggregate value Sj of the statistic corresponding to the region j using this addition result (step 307). As a result, the statistical amount relating to the newly obtained error can be cumulatively added to the total value of the corresponding region.

例えば、図3(a)に示した例では、マクロブロックMB(i)のブロック番号から、上述したステップ305の処理により、領域番号2が特定される。そして、図3(b)に示したように、この領域番号2に対応する統計量の集計値Sjに、新たに得られた統計量として二乗和Rs(i)が加算されている。   For example, in the example shown in FIG. 3A, the region number 2 is specified from the block number of the macroblock MB (i) by the process of step 305 described above. Then, as shown in FIG. 3B, the square sum Rs (i) is added as a newly obtained statistic to the aggregate value Sj of the statistic corresponding to the area number 2.

上述したステップ301からステップ307の処理は、ステップ308において、1フレームに含まれる全てのマクロブロックについての集計処理が完了したとされるまで繰り返される。このような集計処理は、各フレームの符号化処理の過程において行われる。これにより、これらのフレームの符号化処理において、ローカルデコード画像を非可逆圧縮したことによって発生する誤差の累積量を累積統計量保持部124に各領域に対応して保持された集計値の値として得ることができる。   The above-described processing from step 301 to step 307 is repeated until it is determined in step 308 that the aggregation processing has been completed for all macroblocks included in one frame. Such an aggregation process is performed in the course of the encoding process for each frame. As a result, in the encoding process of these frames, the accumulated amount of error caused by irreversible compression of the local decoded image is used as the total value stored in the accumulated statistics holding unit 124 corresponding to each area. Obtainable.

したがって、図1に示した領域判別部117は、例えば、第nフレームまでに各領域において累積した誤差の集計値の大きさに基づいて、累積誤差の解消のために、強制的に画面内符号化させる領域を判別することができる。   Therefore, the area discriminating unit 117 shown in FIG. 1 forcibly encodes the in-screen code in order to eliminate the accumulated error, for example, based on the total value of errors accumulated in each area until the nth frame. The area to be converted can be determined.

なお、ブロック圧縮部112によって生成されたブロック圧縮データは、圧縮ローカルデコード画像の一部として、外部メモリ140の圧縮ローカルデコード画像(LD画像)保持部141に保持される。そして、次のフレームの原画像についての符号化処理の際に、探索領域復元部110によってブロック圧縮データから復元ローカルデコード画像の探索領域に対応する部分が生成される。この探索領域の復元ローカルデコード画像は、探索領域保持部109を介して、画面間予測部102の処理に供される。   The block compressed data generated by the block compression unit 112 is held in the compressed local decoded image (LD image) holding unit 141 of the external memory 140 as a part of the compressed local decoded image. Then, during the encoding process for the original image of the next frame, the search area restoration unit 110 generates a portion corresponding to the search area of the restored local decoded image from the block compressed data. This restored local decoded image of the search area is provided to the process of the inter-screen prediction unit 102 via the search area holding unit 109.

次に、上述したようにして過去のピクチャについて集計された累積統計量に基づいて、次のピクチャの符号化処理を制御する方法について説明する。   Next, a method for controlling the encoding process for the next picture based on the accumulated statistics aggregated for the past pictures as described above will be described.

図5に、領域判別部の一実施形態を示す。なお、図5に示した構成要素のうち、図1に示した構成要素と同等のものについては、同一の符号を付して示し、その説明は省略する。   FIG. 5 shows an embodiment of the area determination unit. Note that among the components shown in FIG. 5, components equivalent to those shown in FIG. 1 are denoted by the same reference numerals, and description thereof is omitted.

図5に示した例では、領域判別部117は、領域検出部125と、閾値調整部126と判別フラグ保持部127とを備えている。領域検出部125は、上述したN個の領域のうち、累積統計量保持部124に保持された累積統計量の集計値が所定の閾値Thv以上であるものを、画面内符号化処理の適用対象の領域として検出する。そして、領域検出部125は、検出した適用対象領域について、判別フラグ保持部127の判別フラグを操作する。また、閾値調整部126は、判別フラグ保持部127の判別フラグによって示される適用対象領域の数に基づいて、領域検出部125による検出に用いる閾値Thvの値を調整する。   In the example illustrated in FIG. 5, the region determination unit 117 includes a region detection unit 125, a threshold adjustment unit 126, and a determination flag holding unit 127. The area detection unit 125 applies an intra-frame encoding process to which the aggregate value of the accumulated statistics held in the accumulated statistics holding unit 124 is equal to or greater than a predetermined threshold Thv among the N areas described above. Detected as a region. Then, the region detection unit 125 operates the determination flag of the determination flag holding unit 127 for the detected application target region. Further, the threshold adjustment unit 126 adjusts the value of the threshold Thv used for detection by the region detection unit 125 based on the number of application target regions indicated by the determination flag of the determination flag holding unit 127.

図6に、領域判別動作を表す流れ図を示す。なお、図6に示すステップ311〜ステップ318の処理は、例えば、各フレームの符号化処理と並行したローカルデコード画像の非可逆圧縮処理に伴って、そのフレームまでの累積統計量の集計が完了するごとに行われる。   FIG. 6 is a flowchart showing the region discrimination operation. Note that the processing from step 311 to step 318 shown in FIG. 6 is completed, for example, with the irreversible compression processing of the local decoded image in parallel with the encoding processing of each frame, and the accumulation of the accumulated statistics up to that frame is completed. Done every time.

まず、適用対象領域の数kの値が、例えば、閾値調整部126によって初期化される(ステップ311)。また、併せて、判別処理の対象となる領域を示す領域番号jも、例えば、フレームの左上の領域を示す領域番号1に初期化される。   First, the value k of the number of application target areas is initialized by, for example, the threshold adjustment unit 126 (step 311). At the same time, the area number j indicating the area to be discriminated is also initialized to, for example, area number 1 indicating the upper left area of the frame.

次いで、領域検出部125により、累積統計量保持部124から領域番号jに対応する集計値S(j)が読み出される(ステップ312)。そして、読み出された集計値S(j)は、領域検出部125により、閾値Thvと比較される(ステップ313)。   Next, the total value S (j) corresponding to the region number j is read from the cumulative statistic holding unit 124 by the region detection unit 125 (step 312). Then, the read total value S (j) is compared with the threshold Thv by the region detection unit 125 (step 313).

集計値S(j)が閾値Thv以上であるとされた場合に(ステップ313の肯定判定)、領域検出部125は、判別フラグ保持部127の領域番号jに対応する判別フラグに、当該領域が適用対象である旨を示す値をセットする(ステップ314)。例えば、領域検出部125は、ステップ314で、領域番号jに対応する判別フラグに「TRUE」を示す値をセットすればよい。また、この判別フラグの操作に伴って、閾値調整部126により、適用対象領域の数kに1が加算される(ステップ315)。   When the total value S (j) is determined to be equal to or greater than the threshold value Thv (affirmative determination in step 313), the region detection unit 125 sets the determination flag corresponding to the region number j of the determination flag holding unit 127 as the region. A value indicating that it is an application target is set (step 314). For example, in step 314, the region detection unit 125 may set a value indicating “TRUE” to the determination flag corresponding to the region number j. In accordance with the operation of the determination flag, the threshold value adjustment unit 126 adds 1 to the number k of application target regions (step 315).

一方、集計値S(j)が閾値Thvよりも小さいとされた場合に(ステップ313の否定判定)、領域検出部125は、判別フラグ保持部127の領域番号jに対応する判別フラグに、当該領域が適用対象でない旨を示す値をセットする(ステップ317)。例えば、領域検出部125は、ステップ317で、領域番号jに対応する判別フラグに「FALSE」を示す値をセットすればよい。   On the other hand, when the total value S (j) is determined to be smaller than the threshold value Thv (negative determination in step 313), the region detection unit 125 sets the determination flag corresponding to the region number j of the determination flag holding unit 127 to A value indicating that the area is not applicable is set (step 317). For example, the area detection unit 125 may set a value indicating “FALSE” in the determination flag corresponding to the area number j in step 317.

上述したようにして、ステップ313の判定結果に応じた処理が行われた後に、領域検出部125は、全ての領域についての処理が完了したか否かを判定する(ステップ316)。ステップ316の否定判定の場合に、領域検出部125は、領域番号jをインクリメントした上でステップ312に戻り、新たな領域番号jに対応する集計値S(j)に基づく処理を行う。   As described above, after the processing according to the determination result in step 313 is performed, the region detection unit 125 determines whether or not the processing for all the regions has been completed (step 316). In the case of negative determination in step 316, the area detection unit 125 increments the area number j and returns to step 312 to perform processing based on the total value S (j) corresponding to the new area number j.

このようにして、ステップ312〜ステップ317を繰り返し、1フレームに含まれる全ての領域についての判別処理が完了した後に、閾値調整部126は、適用対象領域の数kの値に応じて、閾値Thvの値を調整する(ステップ318)。閾値調整部126は、例えば、適用対象領域の数kと、領域の総数Nと、このNよりも小さい自然数mdとを用いて、式(3)のように表される係数αを閾値Thvに乗じて、新たな閾値Thvを算出することができる。   In this way, Steps 312 to 317 are repeated, and after the determination processing for all the regions included in one frame is completed, the threshold adjustment unit 126 determines the threshold Thv according to the value of the number k of application target regions. Is adjusted (step 318). For example, the threshold adjustment unit 126 uses the number k of application target regions, the total number N of regions, and a natural number md smaller than N as a threshold Thv using a coefficient α expressed by Equation (3). By multiplying, a new threshold value Thv can be calculated.

α=1+(k−md)/N ・・・(3)
式(3)で表される係数αは、適用対象領域数kが自然数mdよりも大きいときに、その値が1よりも大きな値となり、これに応じて、閾値Thvの値は増大する方向に調整される。逆に、適用対象領域数kが自然数mdよりも小さいときに、その値は1よりも小さい値となり、これに応じて、閾値Thvの値は減少する方向に調整される。なお、上述した自然数mdの値は、符号化データの転送速度などの制限を考慮して予め決定しておくことができる。例えば、各フレームにおいて、md個の領域が強制的に画面内符号化された場合に、ピクチャあたりの符号データの量が、符号化データの転送速度で伝送可能な量となるように決定することができる。
α = 1 + (k−md) / N (3)
The coefficient α represented by the expression (3) has a value larger than 1 when the number of application target areas k is larger than the natural number md, and the value of the threshold Thv increases accordingly. Adjusted. On the contrary, when the number of application target areas k is smaller than the natural number md, the value is smaller than 1, and the value of the threshold Thv is adjusted in a decreasing direction accordingly. Note that the value of the natural number md described above can be determined in advance in consideration of limitations such as the transfer rate of encoded data. For example, when md areas are forcibly intra-coded in each frame, the amount of code data per picture is determined to be an amount that can be transmitted at the transfer rate of the encoded data. Can do.

次に、上述したようにして得られた判別結果を、次のフレームの符号化処理に反映する方法について説明する。   Next, a method for reflecting the determination result obtained as described above in the encoding process of the next frame will be described.

図5に示した符号化モード決定部103は、モード決定制御部131と判別フラグ読み込み部132とを備えている。また、図5に示した累積統計量調整部118は、符号化モード決定部103で決定された符号化モードに応じて、累積統計量保持部124に保持された累積統計量の値を調整する。図5に示した例では、累積統計量調整部118は、選択調整部128と一括調整部129とを備えている。   The coding mode determination unit 103 illustrated in FIG. 5 includes a mode determination control unit 131 and a discrimination flag reading unit 132. Further, the cumulative statistic adjustment unit 118 illustrated in FIG. 5 adjusts the value of the cumulative statistic held in the cumulative statistic holding unit 124 according to the encoding mode determined by the encoding mode determination unit 103. . In the example illustrated in FIG. 5, the cumulative statistic adjustment unit 118 includes a selection adjustment unit 128 and a collective adjustment unit 129.

図7に、符号化動作を表す流れ図(その1)を示す。また、図8に、符号化動作を表す流れ図(その2)を示す。図7、図8に示した流れ図は、各フレームのピクチャの符号化動作を表している。つまり、各ピクチャについて、図7、図8に示した符号化動作が繰り返される。   FIG. 7 is a flowchart (part 1) showing the encoding operation. FIG. 8 is a flowchart (part 2) showing the encoding operation. The flowcharts shown in FIGS. 7 and 8 show the encoding operation of the picture of each frame. That is, the encoding operation shown in FIGS. 7 and 8 is repeated for each picture.

符号化対象の原画像(ピクチャ)は、マクロブロック単位で符号化コア部100に読み込まれる。i番目のマクロブロックMB(i)が読み込まれるごとに(ステップ321)、モード決定制御部131は、まず、符号化対象のピクチャがIピクチャであるか否かを判定する(ステップ322)。   An original image (picture) to be encoded is read into the encoding core unit 100 in units of macroblocks. Each time the i-th macroblock MB (i) is read (step 321), the mode determination control unit 131 first determines whether or not the picture to be encoded is an I picture (step 322).

符号化対象のピクチャがIピクチャでない場合に(ステップ322の否定判定)、判別不ラブ読み込み部132は、判別フラグ保持部127からマクロブロックMB(i)を含む領域jに対応する判別フラグF(j)を読み込む(ステップ323)。読み込まれた判別フラグF(j)が「TRUE」であった場合に、モード決定制御部131は、符号化対象のマクロブロックMB(i)は画面内符号化処理の適用対象領域に含まれると判断する(ステップ324の肯定判定)。   If the picture to be encoded is not an I picture (negative determination in step 322), the discrimination unlove reading unit 132 determines from the discrimination flag holding unit 127 the discrimination flag F (corresponding to the region j including the macroblock MB (i). j) is read (step 323). When the read discrimination flag F (j) is “TRUE”, the mode determination control unit 131 determines that the macro block MB (i) to be encoded is included in the application target region of the intra-frame encoding process. Judgment (affirmative determination in step 324).

この場合に、モード決定制御部131からの領域番号jの通知を受けて、累積統計量調整部118の選択調整部128により、累積統計量保持部124に対応して保持された累積統計量が初期化される(ステップ325)。このとき、選択調整部128は、例えば、領域番号jに対応して累積統計量保持部124に保持された統計量の集計結果Sの値を初期値0に書き換えることができる。 In this case, in response to the notification of the area number j from the mode determination control unit 131, the cumulative statistic held in correspondence with the cumulative statistic holding unit 124 by the selection adjusting unit 128 of the cumulative statistic adjusting unit 118 is stored. Initialization is performed (step 325). At this time, for example, the selection adjustment unit 128 can rewrite the value of the statistical total result S j held in the cumulative statistic holding unit 124 corresponding to the region number j to the initial value 0.

その後、画面内予測部101により、上述したマクロブロックMB(i)についての画面内予測残差が算出される(ステップ326)。そして、DCT量子化部104およびエントロピー符号化部105により、算出された画面内予測残差を符号化する処理が行われ(ステップ327)、生成された符号化データが出力される(ステップ328)。   Thereafter, the intra prediction unit 101 calculates the intra prediction residual for the above-described macroblock MB (i) (step 326). Then, the DCT quantization unit 104 and the entropy encoding unit 105 perform processing for encoding the calculated intra prediction residual (step 327), and the generated encoded data is output (step 328). .

次に、モード決定制御部131により、1フレームに含まれる全てのマクロブロックの符号化が完了したか否かが判定され(ステップ329)、否定判定の場合は、ステップ321に戻って次のマクロブロックの読み込みが行われる。   Next, the mode determination control unit 131 determines whether or not the encoding of all macroblocks included in one frame is completed (step 329). If the determination is negative, the process returns to step 321 to return to the next macro. A block is read.

このようにして、読み込まれたマクロブロックMB(i)が画面内符号化処理の適用対象となる領域に含まれている場合には、画面内予測残差および画面間予測残差にかかわらず、このマクロブロックMB(i)は強制的に画面内符号化される。つまり、判別フラグ保持部127に保持された判別フラグが「TRUE」となっている領域に含まれる全てのマクロブロックは強制的に画面内符号化される。そして、これらの領域を画面内符号化することによって、それまでの符号化処理に伴ってローカルデコード画像を非可逆圧縮したことによる誤差の累積は、これらの領域について選択的に解消される。   In this way, when the read macroblock MB (i) is included in the region to which the intraframe encoding process is applied, regardless of the intraframe prediction residual and the interframe prediction residual, This macro block MB (i) is forcibly intra-coded. That is, all the macroblocks included in the region where the determination flag held in the determination flag holding unit 127 is “TRUE” are forcibly intra-coded. Then, by intra-coding these areas, the accumulation of errors due to irreversible compression of the local decoded image accompanying the encoding process so far is selectively eliminated for these areas.

また、累積統計量調整部118の選択調整部128により、画面内符号化処理が適用された領域jに対応する統計量の集計結果Sを選択的に初期値0に戻すことにより、上述した累積誤差の選択的な解消を累積統計量保持部124の内容に反映することができる。したがって、次のピクチャについての符号化処理では、直前のピクチャの符号化処理で累積誤差の解消が図られた領域以外の領域が、画面内符号化処理の対象領域となる確率が高くなる。 Also, the selection adjustment unit 128 of the cumulative statistic adjustment unit 118 selectively returns the aggregation result S j of the statistic corresponding to the region j to which the in-screen encoding process is applied to the initial value 0, as described above. The selective elimination of the accumulated error can be reflected in the contents of the accumulated statistics holding unit 124. Therefore, in the encoding process for the next picture, there is a high probability that an area other than the area in which the accumulated error has been eliminated in the encoding process for the previous picture will be the target area for the intra-picture encoding process.

また、図1〜図3を用いて説明したように、累積統計量保持部124に保持された累積統計量には、nフレームまでの符号化処理に伴って累積した誤差が高い忠実度で反映されている。したがって、上述したような符号化モードの制御により、累積統計量が大きくなった領域から順次に画面内符号化処理を適用することにより、累積誤差の効果的な解消を図ることができる。このような累積誤差の解消手法では、領域ごとに推定される累積誤差に基づいて、領域ごとに累積誤差の解消が行われる。つまり、1フレームに含まれるN個の領域についての累積誤差の解消は、複数フレームの符号化処理の過程で分散して行われる。そして、各フレームの符号化処理において、強制的な画面内符号化処理を適用することで累積誤差が解消された領域についは、復号側で復元される画像の画質が改善される。したがって、Iピクチャの挿入のみで累積誤差の解消を図った場合に比べて、復号側で再生される動画像の画質の時間的な変動を抑制することができる。つまり、上述したような構成を備えた動画像符号化装置では、ローカルデコード画像の非可逆圧縮を適用した際に生じる誤差の累積の解消を図りつつ、復号側で利用者に提供される動画像の画質の均質化を図ることが可能となる。   In addition, as described with reference to FIGS. 1 to 3, the accumulated statistic held in the accumulated statistic holding unit 124 reflects with high fidelity the error accumulated with the encoding process up to n frames. Has been. Therefore, the cumulative error can be effectively eliminated by sequentially applying the intra-screen coding processing from the region where the cumulative statistic is increased by controlling the coding mode as described above. In such a cumulative error elimination method, the cumulative error is eliminated for each area based on the accumulated error estimated for each area. That is, elimination of the accumulated error for N areas included in one frame is performed in a distributed manner during the encoding process of a plurality of frames. In the encoding process of each frame, the image quality of the image restored on the decoding side is improved in the area where the accumulated error is eliminated by applying the compulsory intra-screen encoding process. Accordingly, it is possible to suppress temporal fluctuations in the image quality of a moving image reproduced on the decoding side, compared to a case where the accumulated error is eliminated only by inserting an I picture. That is, in the moving image encoding apparatus having the above-described configuration, the moving image provided to the user on the decoding side while eliminating the accumulation of errors caused when irreversible compression of the local decoded image is applied. It is possible to achieve uniform image quality.

また、領域判別部117において、適用対象領域の検出に用いる閾値Thvを動的に調整することにより、各フレームにおいて適用対象として判別される領域の数の平準化を図ることができる。これにより、累積誤差の解消のために、画面内符号化を適用したことによって増大する符号量をほぼ一定にすることができる。したがって、DCT量子化部104での量子化処理やエントロピー符号化部105による符号化処理での圧縮率もまたほぼ一定の水準で維持される。   In addition, by dynamically adjusting the threshold Thv used for detection of the application target region in the region determination unit 117, the number of regions determined as application targets in each frame can be leveled. Thereby, in order to eliminate the accumulated error, it is possible to make the code amount increased by applying the intra-screen coding almost constant. Therefore, the compression rate in the quantization process in the DCT quantization unit 104 and the encoding process in the entropy encoding unit 105 is also maintained at a substantially constant level.

一方、符号化対象のピクチャがIピクチャである場合に(ステップ322の肯定判定)、モード決定制御部131は、その旨を累積統計量調整部118の一括調整部129に通知する。これに応じて、この一括調整部129により、累積統計量保持部124に保持された全ての領域に対応する統計量の集計値が初期化される(ステップ330)。   On the other hand, when the picture to be encoded is an I picture (affirmative determination in step 322), the mode determination control unit 131 notifies the collective adjustment unit 129 of the cumulative statistic adjustment unit 118 to that effect. In response to this, the collective adjustment unit 129 initializes the aggregate value of the statistics corresponding to all the regions held in the accumulated statistics holding unit 124 (step 330).

その後、ステップ326と同様にして、上述したマクロブロックMB(i)についての画面内予測残差が算出され(ステップ331)、また、算出された画面内予測残差を符号化する処理が行われる(ステップ332)。次いで、ステップ328に進んで、生成された符号化データが出力される。   Thereafter, in the same manner as in step 326, the intra prediction residual for the above-described macroblock MB (i) is calculated (step 331), and a process for encoding the calculated intra prediction residual is performed. (Step 332). Next, the process proceeds to step 328, and the generated encoded data is output.

なお、Iピクチャ以外のピクチャの符号化処理において、読み込まれた判別フラグF(j)が「FALSE」であった場合に(ステップ324の否定判定)、モード決定制御部131は、符号化対象のマクロブロックMB(i)について、符号化モードの決定処理を行う。   Note that, in the encoding process for pictures other than the I picture, when the read determination flag F (j) is “FALSE” (No determination in step 324), the mode determination control unit 131 sets the encoding target. A coding mode determination process is performed on the macroblock MB (i).

この場合に、図8に示したステップ334において、探索領域復元部110により、圧縮ローカルデコード画像から復元ローカルデコード画像の探索領域を復元する処理が行われる。このとき、探索領域復元部110は、図1に示した圧縮ローカルデコード画像保持部141から、マクロブロックMB(i)について設定される探索領域に対応するブロック圧縮データを読み出す。そして、これらのブロック圧縮データに対して、図1に示したブロック伸長部113と同様の伸長処理を行って、上述した探索領域を復元する。復元された探索領域は、探索領域保持部109を介して画面間予測部102の処理に供される。   In this case, in step 334 shown in FIG. 8, the search area restoration unit 110 performs a process of restoring the search area of the restored local decoded image from the compressed local decoded image. At this time, the search area restoration unit 110 reads block compressed data corresponding to the search area set for the macroblock MB (i) from the compressed local decoded image holding unit 141 shown in FIG. Then, decompression processing similar to that performed by the block decompression unit 113 shown in FIG. 1 is performed on these block compressed data to restore the search area described above. The restored search area is provided to the process of the inter-screen prediction unit 102 via the search area holding unit 109.

次いで、画面内予測部101および画面間予測部102により、それぞれ予測残差が算出され(ステップ335)、これらの予測残差に基づいて、モード決定制御部131により、符号化モードが決定される(ステップ336)。画面内予測残差のほうが小さい場合は、ステップ337の肯定判定としてステップ338に進み、符号化対象のマクロブロックMB(i)は、画面内符号化処理される。一方、画面間予測残差のほうが小さい場合は、ステップ337の否定判定としてステップ339に進み、符号化対象のマクロブロックMB(i)は、画面間符号化処理される。その後、いずれの場合も、図7に示したステップ328に進み、生成された符号化データの出力が行われる。   Next, the prediction residual is calculated by the intra-screen prediction unit 101 and the inter-screen prediction unit 102 (step 335), and the encoding mode is determined by the mode determination control unit 131 based on these prediction residuals. (Step 336). If the intra prediction residual is smaller, the process proceeds to step 338 as an affirmative determination in step 337, and the macro block MB (i) to be encoded is subjected to the intra encoding process. On the other hand, when the inter-screen prediction residual is smaller, the process proceeds to step 339 as a negative determination in step 337, and the macro block MB (i) to be encoded is subjected to inter-screen encoding processing. Thereafter, in either case, the process proceeds to step 328 shown in FIG. 7, and the generated encoded data is output.

なお、図8に示したように、適用対象領域以外の領域に含まれる各マクロブロックの符号化が行われる過程では、累積統計量保持部124に保持された累積統計量は初期化されない。したがって、符号化に伴って生成されるローカルデコード画像の圧縮前後での誤差は、符号化対象のマクロブロックMB(i)が属する領域に対応するそれまでの累積誤差を示す統計量の集計値Sに加算される。そして、全てのマクロブロックの符号化処理が完了した後に、次のピクチャの符号化において画面内符号化処理の適用対象とする領域を判別する処理に供される。 As shown in FIG. 8, in the process of encoding each macroblock included in a region other than the application target region, the cumulative statistic held in the cumulative statistic holding unit 124 is not initialized. Accordingly, the error before and after compression of the local decoded image generated along with the encoding is the statistical total value S indicating the accumulated error corresponding to the area to which the macro block MB (i) to be encoded belongs. is added to j . Then, after the encoding process of all the macroblocks is completed, it is subjected to a process of determining an area to which the intra-picture encoding process is applied in the encoding of the next picture.

ところで、Iピクチャ以外の各ピクチャを符号化する際に、各フレームに含まれる適用対象領域の数をほぼ一定に保つ方法は、上述したようにして、適用対象領域の検出に用いる閾値Thvを調整する方法に限られない。また、各ピクチャの符号化処理過程において、ローカルデコード画像の圧縮前後の誤差を示す統計量として、上述した差分二乗和以外の統計量を抽出することもできる。   By the way, when encoding each picture other than the I picture, the method of keeping the number of application target areas included in each frame substantially constant is to adjust the threshold Thv used for detection of the application target area as described above. It is not limited to the method of doing. In addition, in the encoding process of each picture, a statistic other than the above-described difference square sum can be extracted as a statistic indicating an error before and after compression of the local decoded image.

次に、適用対象領域の判別処理についての変形例について説明する。
(別の実施形態)
図9に、領域判別部の別実施形態を示す。なお、図9に示した構成要素のうち、図5に示した構成要素と同等のものについては、同一の符号を付して示し、その説明は省略する。
Next, a modified example of the application target area determination process will be described.
(Another embodiment)
FIG. 9 shows another embodiment of the region discriminating unit. Note that among the constituent elements shown in FIG. 9, the same constituent elements as those shown in FIG. 5 are denoted by the same reference numerals, and description thereof is omitted.

図9に示した例では、領域判別部117は、閾値調整部126の代わりに、領域選択部134を備えている。この領域選択部134は、領域検出部125によって検出された領域の中から、所定数の領域を選択し、選択した領域を適用対象として示すように、判別フラグの操作を行う。   In the example illustrated in FIG. 9, the region determination unit 117 includes a region selection unit 134 instead of the threshold adjustment unit 126. The region selection unit 134 selects a predetermined number of regions from the regions detected by the region detection unit 125, and operates the determination flag so as to indicate the selected region as an application target.

図10に、領域判別動作を表す流れ図を示す。なお、図10に示したステップのうち、図6に示したステップと同等のものについては、同一の符号を付して示し、その説明は省略する。   FIG. 10 is a flowchart showing the region discrimination operation. Of the steps shown in FIG. 10, the same steps as those shown in FIG. 6 are denoted by the same reference numerals, and the description thereof is omitted.

図10に示した例では、各領域に対応して累積統計量保持部124に保持された累積統計量を読み出すステップ312の処理の前に、適用対象領域の数kが所定数Kより小さいか否かを判定している(ステップ319)。そして、適用対象領域の数kが所定数Kより小さい場合に限って(ステップ319の肯定判定)、累積統計量が読み出される(ステップ312)。そして、この累積統計量と閾値Thvとの比較に基づく判別フラグの操作が行われる(ステップ313〜ステップ317)。   In the example shown in FIG. 10, whether the number k of application target areas is smaller than a predetermined number K before the processing of step 312 for reading the accumulated statistics held in the accumulated statistics holding unit 124 corresponding to each area. It is determined whether or not (step 319). Then, only when the number k of application target areas is smaller than the predetermined number K (Yes in step 319), the accumulated statistics are read (step 312). Then, the determination flag is operated based on the comparison between the accumulated statistic and the threshold value Thv (steps 313 to 317).

例えば、適用対象領域の数kが上述した所定数Kよりも小さい間は、領域番号順に累積統計量が読み出され、読み出された累積統計量が閾値Thvよりも大きいとされるごとに、この累積統計量に対応する領域が適用対象として選択される。そして、新たな領域が適用対象として選択されるごとに、適用対象領域の数kがインクリメントされる。   For example, as long as the number k of application target areas is smaller than the predetermined number K described above, the accumulated statistics are read in the order of area numbers, and whenever the read accumulated statistics are larger than the threshold Thv, A region corresponding to this cumulative statistic is selected as an application target. Each time a new area is selected as an application target, the number k of application target areas is incremented.

このようにして適用対象領域が選択されていき、その数が上述した所定数Kと等しくなった後は、ステップ319の否定判定となる。そして、以降の各領域に対応する判別フラグの値は、それぞれの累積統計量の値にかかわらず、適用対象領域ではない旨の「FALSE」がセットされる。   After the application target area is selected in this way and the number becomes equal to the predetermined number K described above, a negative determination is made in step 319. Then, the value of the determination flag corresponding to each subsequent area is set to “FALSE” indicating that it is not the application target area regardless of the value of each accumulated statistic.

このような領域判別処理では、各フレームで適用対象領域として検出される領域の数が所定数K以下となるように制限することができる。これにより、累積誤差の解消のために、画面内符号化を適用したことによって増大する符号量を一定量以下に抑制することができる。なお、上述した領域判別処理で選択された適用対象領域の第nフレームまでの累積誤差は、次の第n+1フレームの符号化処理において、これらの適用対象領域を強制的に画面内符号化することにより解消される。このとき、これらの適用対象領域に対応して累積統計量保持部124に保持された累積統計量が初期化される。そして、第n+1フレームの符号化が完了した時点で累積統計量保持部124に保持された累積統計量に基づいて、その次の第n+2フレームで強制的な画面内符合化処理を適用する領域が選択される。つまり、累積統計量調整部118の処理と上述した領域判別処理とを組み合わせて行うことにより、前のフレームで選択された適用対象領域を除外して、次のフレームにおける適用対象領域を選択することができる。したがって、上述したように、最初に検出されたK個までの領域を適用対象領域とする領域判別処理を採用した場合でも、画面内の位置によって、適用対象領域として選択される確率が偏ることはない。なお、累積統計量保持部124に保持された累積統計量の値が大きい順に、適用対象領域を選択することも可能である。   In such an area determination process, the number of areas detected as application target areas in each frame can be limited to a predetermined number K or less. Thereby, in order to eliminate the accumulated error, it is possible to suppress the code amount that is increased by applying the intra-screen coding to a certain amount or less. Note that the accumulated error up to the nth frame of the application target area selected in the above-described area determination process is to forcibly encode the application target area in the next n + 1 frame encoding process. Is eliminated. At this time, the accumulated statistics held in the accumulated statistics holding unit 124 corresponding to these application target areas are initialized. Then, based on the accumulated statistic held in the accumulated statistic holding unit 124 at the time when the encoding of the (n + 1) th frame is completed, an area to which forcible intra-frame coding processing is applied in the next n + 2 frame is provided. Selected. In other words, by combining the process of the cumulative statistic adjustment unit 118 and the area determination process described above, the application target area selected in the previous frame is excluded and the application target area in the next frame is selected. Can do. Therefore, as described above, even when the area determination process using up to K areas detected first as the application target area is adopted, the probability of being selected as the application target area is biased depending on the position in the screen. Absent. Note that it is also possible to select the application target region in descending order of the cumulative statistic value held in the cumulative statistic holding unit 124.

次に、ローカルデコード画像の圧縮前後の誤差を示す統計量の抽出処理についてのさまざまな変形例について説明する。
(別の実施形態)
図11に、動画像符号化装置の別実施形態を示す。なお、図11に示した構成要素のうち、図1および図5に示した構成要素と同等のものについては、同一の符号を付して示し、その説明は省略する。
Next, various modified examples of the process of extracting a statistic indicating an error before and after compression of a local decoded image will be described.
(Another embodiment)
FIG. 11 shows another embodiment of the moving image encoding apparatus. Note that among the components shown in FIG. 11, components equivalent to those shown in FIGS. 1 and 5 are denoted by the same reference numerals and description thereof is omitted.

図11に示した統計量抽出部115は、差分絶対値和算出部135と重み加算部136とを備えている。差分絶対値和算出部135は、差分画像生成部114で生成された差分画像D(x,y)(x、y=1〜16)に含まれる輝度成分Y(x,y)および色差成分Cb(x,y),Cr(x,y)について、それぞれの絶対値和を算出する。重み加算部136は、差分絶対値輪算出部135により、各成分について得られた差分絶対値和にそれぞれ対応する重みwy,wb,wrを乗算し、これらの乗算結果を加算する。図11に示した例では、この重み加算部136による加算結果が、符号化対象のマクロブロックに対応してローカルデコード画像の圧縮前後の誤差を示す統計量として統計量集計部116に渡される。   The statistic extraction unit 115 illustrated in FIG. 11 includes a difference absolute value sum calculation unit 135 and a weight addition unit 136. The difference absolute value sum calculation unit 135 includes a luminance component Y (x, y) and a color difference component Cb included in the difference image D (x, y) (x, y = 1 to 16) generated by the difference image generation unit 114. For each of (x, y) and Cr (x, y), the absolute value sum is calculated. The weight addition unit 136 multiplies the difference absolute value sum obtained for each component by the difference absolute value ring calculation unit 135 by the weights wy, wb, wr, respectively, and adds the multiplication results. In the example shown in FIG. 11, the addition result by the weight addition unit 136 is passed to the statistic counting unit 116 as a statistic indicating an error before and after compression of the local decoded image corresponding to the macroblock to be encoded.

ここで、差分二乗和と差分絶対値和との間には高い相関性がある。したがって、上述したように、差分二乗和の代わりに、差分絶対値和を算出し、これをローカルデコード画像の圧縮前後の誤差の分布を示す統計量として用いることができる。そして、差分絶対値和を算出する処理は、差分二乗和を算出する処理に比べて簡易な構成で実現することができる。つまり、統計量抽出部115において、差分二乗和の代わりに、差分絶対値和を算出する構成により、ローカルデコード画像の圧縮前後の誤差の分布を示す統計量を少ないハードウェア資源を用いて実現することができる。   Here, there is a high correlation between the difference square sum and the difference absolute value sum. Therefore, as described above, instead of the sum of squared differences, a sum of absolute differences can be calculated and used as a statistic indicating the distribution of errors before and after compression of the local decoded image. And the process which calculates a difference absolute value sum can be implement | achieved by a simple structure compared with the process which calculates a difference square sum. That is, in the statistic extraction unit 115, the statistic indicating the distribution of errors before and after compression of the local decoded image is realized with a small amount of hardware resources by calculating the sum of absolute differences instead of the sum of squared differences. be able to.

また、重み加算部136により、各成分の差分絶対値和に対して、それぞれの成分に対応する重みを付加することができる。例えば、色差成分Cb,Crの差分絶対値和に比べて、輝度成分Yの差分絶対値和について大きな重みを付加することができる。このように、人間の視覚において輝度成分のノイズが画質の劣化として捉えられやすいことを反映して、輝度成分についての累積誤差を統計量において強調することができる。これにより、輝度成分の累積統計量が大きくなっている領域が、優先的に適用対象領域として判別され、その累積誤差の解消が図られるので、視覚に捉えられやすい画質の劣化を招く累積誤差を優先的に解消することができる。   Further, the weight adding unit 136 can add a weight corresponding to each component to the sum of absolute differences of each component. For example, a larger weight can be added to the sum of absolute differences of the luminance component Y than to the sum of absolute differences of the color difference components Cb and Cr. As described above, the accumulated error regarding the luminance component can be emphasized in the statistic, reflecting that the noise of the luminance component is easily perceived as degradation of image quality in human vision. As a result, the area where the accumulated statistics of the luminance component is large is preferentially determined as the application target area, and the accumulated error is eliminated. It can be resolved with priority.

また、上述した人間の視覚の特性を利用して、ローカルデコード画像の圧縮前後の誤差を示す統計量を抽出する処理の簡略化を図ることもできる。
(別の実施形態)
図12に、動画像符号化装置の別実施形態を示す。なお、図12に示した構成要素のうち、図1に示した構成要素と同等のものについては、同一の符号を付して示し、その説明は省略する。
In addition, it is possible to simplify the process of extracting a statistic indicating an error before and after compression of a local decoded image using the above-described human visual characteristics.
(Another embodiment)
FIG. 12 shows another embodiment of the moving image encoding apparatus. 12 that are the same as those shown in FIG. 1 are denoted by the same reference numerals and description thereof is omitted.

図12に示した符号化コア部100では、デブロッキング処理部108が省略されており、復元画像生成部107によってマクロブロック単位で生成されたローカルデコード画像が、そのままブロック圧縮部112に入力される。   In the coding core unit 100 illustrated in FIG. 12, the deblocking processing unit 108 is omitted, and the local decoded image generated in units of macroblocks by the restored image generation unit 107 is input to the block compression unit 112 as it is. .

このブロック圧縮部112では、ローカルデコード画像の各画素値に含まれる輝度成分および色差成分について、上述した圧縮処理をそれぞれ行い、各成分についてのブロック圧縮データを生成する。そして、これらのブロック圧縮データは、圧縮ローカルデコード画像保持部141に保持され、次のフレームの符号化処理で利用される。   The block compression unit 112 performs the above-described compression processing on the luminance component and the color difference component included in each pixel value of the local decoded image, and generates block compression data for each component. These block compressed data are held in the compressed local decoded image holding unit 141 and used in the encoding process of the next frame.

図12に示した輝度ブロック伸長部138は、ブロック圧縮部112で生成されたブロック圧縮データのうち、輝度成分についてのブロック圧縮データに対して選択的に伸長処理を行う。この伸長処理により、復元ローカルデコード画像の輝度成分がマクロブロック単位で生成される。そして、差分輝度画像生成部139により、この復元ローカルデコード画像の輝度成分と圧縮前のローカルデコード画像の輝度成分とから、差分輝度画像がマクロブロック単位で生成される。   The luminance block decompression unit 138 illustrated in FIG. 12 selectively performs decompression processing on the block compressed data for the luminance component among the block compressed data generated by the block compressing unit 112. By this expansion processing, the luminance component of the restored local decoded image is generated in units of macro blocks. Then, the difference luminance image generation unit 139 generates a difference luminance image for each macroblock from the luminance component of the restored local decoded image and the luminance component of the local decoded image before compression.

図12に示した差分絶対値和算出部136は、差分輝度画像生成部139で生成された差分輝度画像について、各画素の差分輝度値の絶対値和を算出する。このようにして算出された差分輝度値の絶対値和は、図11に示した統計量抽出部115において、輝度成分の重みwyを1とし、色差成分の重みwb、wrを0として場合に相当する。そして、この差分輝度値の絶対値和が、ローカルデコード画像の圧縮前後の誤差に関する統計量として統計量集計部116の集計処理に供される。   The difference absolute value sum calculation unit 136 illustrated in FIG. 12 calculates the sum of absolute values of the difference luminance values of each pixel for the difference luminance image generated by the difference luminance image generation unit 139. The absolute value sum of the difference luminance values calculated in this way corresponds to the case where the luminance component weight wy is set to 1 and the color difference component weights wb and wr are set to 0 in the statistic extraction unit 115 shown in FIG. To do. Then, the sum of absolute values of the difference luminance values is used as a statistic relating to an error before and after compression of the local decoded image, and is subjected to a counting process of the statistic counting unit 116.

このように、輝度値のみに注目してローカルデコード画像の圧縮前後の誤差に関する統計量を評価することができる。この場合は、画素値に含まれる全ての成分を考慮して誤差に関する統計量を算出する場合に比べて、ブロック伸長処理や差分画像の生成処理および差分絶対値和の算出処理に要するハードウェア量を削減することができる。   In this way, it is possible to evaluate the statistics related to the error before and after compression of the local decoded image by paying attention only to the luminance value. In this case, the amount of hardware required for block decompression processing, difference image generation processing, and difference absolute value sum calculation processing, compared to the case of calculating statistics regarding errors in consideration of all components included in pixel values Can be reduced.

また、デブロッキング処理部108を省略したことによるハードウェアの削減効果も大きい。なぜなら、デブロッキング処理部108では、ローカルデコード画像についてのブロックノイズ除去のために、新たなマクロブロックの直前までの1行分のマクロブロックが保持されているからである。なお、上述した各実施形態では、ローカルデコード画像は非可逆圧縮される。したがって、非可逆圧縮前のローカルデコード画像に作用するデブロッキング処理部108を省略したことが、圧縮後に復元された復元ローカルデコード画像の画質に与える影響は少ない。   In addition, the hardware reduction effect due to the omission of the deblocking processing unit 108 is great. This is because the deblocking processing unit 108 holds macroblocks for one row up to immediately before a new macroblock in order to remove block noise for the local decoded image. In each embodiment described above, the local decoded image is irreversibly compressed. Therefore, the omission of the deblocking processing unit 108 that acts on the local decoded image before lossy compression has little influence on the image quality of the restored local decoded image restored after compression.

以上の説明に関して、更に、以下の各項を開示する。
(付記1) 動画像の各フレームの原画像に含まれるマクロブロックごとに、画面内符号化あるいは画面間符号化を適用して圧縮および符号化する符号化処理部と、
前記原画像に含まれる各マクロブロックについて、前記符号化処理部による符号化過程で得られる圧縮データからローカルデコード画像を生成するローカルデコード画像生成部と、
前記各マクロブロックに対応する前記ローカルデコード画像を非可逆圧縮してブロック圧縮データを生成するブロック圧縮部と、
前記各マクロブロックに対応する前記ブロック圧縮データを伸長して、各マクロブロックに対応する復元ローカルデコード画像を生成するブロック伸長部と、
前記各マクロブロックに対応する前記復元ローカルデコード画像と前記ローカルデコード画像との間の誤差を示す差分画像を生成する差分画像生成部と、
前記各マクロブロックに対応する前記差分画像に現れた前記誤差の分布の統計的な性質を示す統計量を抽出する統計量抽出部と、
前記統計量抽出部で抽出された統計量を、前記フレームを区分して得られる複数の領域ごとに累積加算する統計量集計部と、
前記統計量集計部による累積加算結果で示される前記各フレームまでの累積誤差に基づいて、当該フレームの次のフレームの符号化処理において前記複数の領域のうち画面内符号化を適用する領域を判別する領域判別部と、
を備えたことを特徴とする動画像符号化装置。
(付記2) 付記1に記載の動画像符号化装置において、
前記領域判別部による判別結果と前記符号化処理部で適用される符号化モードとに基づいて、前記統計量集計部によって前記各領域について集計された累積誤差を示す値を調整する累積統計量調整部と、
を備えたことを特徴とする動画像符号化装置。
(付記3) 付記2に記載の動画像符号化装置において、
前記累積統計量調整部は、
前記領域判別部によって画面内符号の適用対象とされた前記領域について、前記統計量集計部で得られた累積統計量を選択的に所定の初期値に戻す選択調整部と、
前記符号化モードにより、1フレームに含まれる全てのマクロブロックが画面内符号化されることが示されたときに、前記統計量集計部で得られた全ての領域に対応する累積統計量を一括して前記初期値に戻す一括調整部と、
を備えた
ことを特徴とする動画像符号化装置。
(付記4) 付記1に記載の動画像符号化装置において、
前記領域判別部は、
前記統計量集計部による集計結果に基づいて、前記累積統計量が所定の閾値Thvよりも大きい領域を領域検出部と、
前記閾値検出部によって検出された領域の数と、前記1フレームに含まれる領域数Nよりも小さい自然数mdとを比較した結果に基づいて、前記閾値比較部において前記累積統計量と比較される前記所定の閾値Thvを変更する閾値調整部と、
を備え、
前記領域検出部によって検出された領域を画面内符号化の適用対象とする
ことを特徴とする動画像符号化装置。
(付記5) 付記1に記載の動画像符号化装置において、
前記領域判別部は、
前記統計量集計部による集計結果に基づいて、前記累積統計量が所定の閾値Thvよりも大きい領域を検出する領域検出部と、
前記領域検出部によって検出された領域の数が、前記1フレームに含まれる領域数Nよりも小さい別の自然数Kよりも大きいときに、前記領域検出部によって検出された領域から前記自然数K個の領域を、画面内符号化処理の適用対象として選択する領域選択部と、
を備えた
ことを特徴とする動画像符号化装置。
(付記6) 付記1に記載の動画像符号化装置において、
前記統計量抽出部は、複数の領域ごとに、前記差分画像の画素値の二乗和を算出する二乗和算出部を備えた
ことを特徴とする動画像符号化装置。
(付記7) 付記1に記載の動画像符号化装置において、
前記統計量抽出部は、複数の領域ごとに、前記差分画像の画素値の絶対値和を算出する絶対値和算出部を備えた
ことを特徴とする動画像符号化装置。
(付記8) 付記1に記載の動画像符号化装置において、
前記統計量抽出部は、
前記差分画像の各画素値に含まれる輝度成分および色成分についてそれぞれ統計量を求める成分統計量算出部と、
前記輝度成分および前記色成分にそれぞれ重みを対応する統計量に付加し、前記重みが付加された統計量を互いに足し合わせる重み加算部と、
を備えた
ことを特徴とする動画像符号化装置。
Regarding the above description, the following items are further disclosed.
(Supplementary Note 1) An encoding processing unit that compresses and encodes each macroblock included in an original image of each frame of a moving image by applying intra-screen encoding or inter-screen encoding;
For each macroblock included in the original image, a local decoded image generation unit that generates a local decoded image from compressed data obtained in the encoding process by the encoding processing unit,
A block compression unit for irreversibly compressing the local decoded image corresponding to each macroblock to generate block compressed data;
A block decompression unit that decompresses the block compressed data corresponding to each macroblock and generates a restored local decoded image corresponding to each macroblock;
A difference image generation unit for generating a difference image indicating an error between the restored local decoded image and the local decoded image corresponding to each macroblock;
A statistic extracting unit that extracts a statistic indicating a statistical property of the distribution of the error that appears in the difference image corresponding to each macroblock;
A statistic totaling unit that cumulatively adds the statistic extracted by the statistic extraction unit for each of a plurality of regions obtained by dividing the frame;
Based on the cumulative error up to each frame indicated by the cumulative addition result by the statistic counting unit, a region to which intra-screen coding is applied among the plurality of regions is determined in the coding process of the next frame of the frame. An area discriminating unit to perform,
A moving picture encoding apparatus comprising:
(Supplementary note 2) In the video encoding device according to supplementary note 1,
A cumulative statistic adjustment that adjusts a value indicating a cumulative error that has been aggregated for each of the areas by the statistic aggregating unit based on a discrimination result by the region discriminating unit and an encoding mode that is applied by the encoding processing unit. And
A moving picture encoding apparatus comprising:
(Supplementary Note 3) In the moving picture encoding apparatus according to Supplementary Note 2,
The cumulative statistic adjustment unit
A selection adjustment unit that selectively returns the accumulated statistic obtained by the statistic totaling unit to a predetermined initial value for the region that is the application target of the intra-screen code by the region discriminating unit;
When the encoding mode indicates that all macroblocks included in one frame are encoded in the screen, cumulative statistics corresponding to all areas obtained by the statistics totaling unit are collectively displayed. And a batch adjustment unit for returning to the initial value,
A moving picture encoding apparatus comprising:
(Supplementary Note 4) In the video encoding device according to Supplementary Note 1,
The region discriminating unit
Based on the counting result by the statistic counting unit, an area where the cumulative statistic is larger than a predetermined threshold Thv, an area detecting unit,
Based on the result of comparing the number of regions detected by the threshold detection unit and the natural number md smaller than the number N of regions included in the one frame, the threshold comparison unit compares the accumulated statistics. A threshold adjustment unit for changing the predetermined threshold Thv;
With
An area detected by the area detection unit is an application target of intra-frame encoding.
(Supplementary note 5) In the moving picture encoding apparatus according to supplementary note 1,
The region discriminating unit
An area detection unit that detects an area in which the accumulated statistic is greater than a predetermined threshold Thv based on a counting result by the statistic counting unit;
When the number of regions detected by the region detection unit is larger than another natural number K smaller than the number N of regions included in the one frame, the natural number K of the regions detected by the region detection unit An area selection unit that selects an area as an application target of the intra-screen encoding process;
A moving picture encoding apparatus comprising:
(Supplementary note 6) In the moving picture encoding apparatus according to supplementary note 1,
The moving picture encoding apparatus, wherein the statistic extraction unit includes a square sum calculation unit that calculates a square sum of pixel values of the difference image for each of a plurality of regions.
(Supplementary note 7) In the video encoding device according to supplementary note 1,
The moving image encoding apparatus, wherein the statistic extraction unit includes an absolute value sum calculation unit that calculates an absolute value sum of pixel values of the difference image for each of a plurality of regions.
(Supplementary note 8) In the moving picture encoding apparatus according to supplementary note 1,
The statistic extraction unit includes:
A component statistic calculation unit for obtaining a statistic for each of the luminance component and the color component included in each pixel value of the difference image;
A weight adding unit that adds weights to the luminance component and the color component respectively corresponding to the statistic, and adds the weighted statistics together;
A moving picture encoding apparatus comprising:

100 符号化コア部
101 画面内予測部
102 画面間予測部
103 符号化モード決定部
104 DCT量子化部
105 エントロピー符号化部
106 伸長処理部
107 復元画像生成部
108 デブロッキング処理部
109 探索領域保持部
110 探索領域復元部
111 ローカルデコード(LD)画像生成部
112 ブロック圧縮部
113 ブロック伸長部
114 差分画像生成部
115 統計量抽出部
116 統計量集計部
117 領域判別部
118 累積統計量調整部
122 加算部
123 更新処理部
124 累積統計量保持部
125 領域検出部
126 閾値調整部
127 判別フラグ保持部
128 選択調整部
129 一括調整部
131 モード決定制御部
132 判別フラグ読み込み部
134 領域選択部
135 差分絶対値和算出部
136 重み加算部
138 輝度ブロック伸長部
139 差分輝度画像生成部
140 外部メモリ
141 圧縮ローカルデコード(LD)画像保持部
142 原画像保持部
100 Coding core unit 101 Intra-screen prediction unit 102 Inter-screen prediction unit 103 Coding mode determination unit 104 DCT quantization unit 105 Entropy coding unit 106 Decompression processing unit 107 Restored image generation unit 108 Deblocking processing unit 109 Search region holding unit 110 Search region restoration unit 111 Local decode (LD) image generation unit 112 Block compression unit 113 Block decompression unit 114 Difference image generation unit 115 Statistics extraction unit 116 Statistics aggregation unit 117 Region determination unit 118 Cumulative statistics adjustment unit 122 Addition unit 123 update processing unit 124 cumulative statistic holding unit 125 region detection unit 126 threshold adjustment unit 127 discrimination flag holding unit 128 selection adjustment unit 129 collective adjustment unit 131 mode determination control unit 132 discrimination flag reading unit 134 region selection unit 135 sum of absolute differences Calculation unit 136 Weight addition unit 138 Degrees block extender 139 difference luminance image generation unit 140 external memory 141 compressed locally decoded (LD) image holding unit 142 the original image holding unit

Claims (5)

動画像の各フレームの原画像に含まれるマクロブロックごとに、画面内符号化あるいは画面間符号化を適用して圧縮および符号化する符号化処理部と、
前記原画像に含まれる各マクロブロックについて、前記符号化処理部による符号化過程で得られる圧縮データからローカルデコード画像を生成するローカルデコード画像生成部と、
前記各マクロブロックに対応する前記ローカルデコード画像を非可逆圧縮してブロック圧縮データを生成するブロック圧縮部と、
前記各マクロブロックに対応する前記ブロック圧縮データを伸長して、各マクロブロックに対応する復元ローカルデコード画像を生成するブロック伸長部と、
前記各マクロブロックに対応する前記復元ローカルデコード画像と前記ローカルデコード画像との間の誤差を示す差分画像を生成する差分画像生成部と、
前記各マクロブロックに対応する前記差分画像に現れた前記誤差の分布の統計的な性質を示す統計量を抽出する統計量抽出部と、
前記統計量抽出部で抽出された統計量を、前記フレームを区分して得られる複数の領域ごとに累積加算する統計量集計部と、
前記統計量集計部による累積加算結果で示される前記各フレームまでの累積誤差に基づいて、当該フレームの次のフレームの符号化処理において前記複数の領域のうち画面内符号化を適用する領域を判別する領域判別部と、
を備えたことを特徴とする動画像符号化装置。
An encoding processing unit that compresses and encodes each macroblock included in the original image of each frame of the moving image by applying intra-screen encoding or inter-screen encoding;
For each macroblock included in the original image, a local decoded image generation unit that generates a local decoded image from compressed data obtained in the encoding process by the encoding processing unit,
A block compression unit for irreversibly compressing the local decoded image corresponding to each macroblock to generate block compressed data;
A block decompression unit that decompresses the block compressed data corresponding to each macroblock and generates a restored local decoded image corresponding to each macroblock;
A difference image generation unit for generating a difference image indicating an error between the restored local decoded image and the local decoded image corresponding to each macroblock;
A statistic extracting unit that extracts a statistic indicating a statistical property of the distribution of the error that appears in the difference image corresponding to each macroblock;
A statistic totaling unit that cumulatively adds the statistic extracted by the statistic extraction unit for each of a plurality of regions obtained by dividing the frame;
Based on the cumulative error up to each frame indicated by the cumulative addition result by the statistic counting unit, a region to which intra-screen coding is applied among the plurality of regions is determined in the coding process of the next frame of the frame. An area discriminating unit to perform,
A moving picture encoding apparatus comprising:
請求項1に記載の動画像符号化装置において、
前記領域判別部による判別結果と前記符号化処理部で適用される符号化モードとに基づいて、前記統計量集計部によって前記各領域について集計された累積誤差を示す値を調整する累積誤差調整部と、
を備えたことを特徴とする動画像符号化装置。
The moving image encoding device according to claim 1,
A cumulative error adjusting unit that adjusts a value indicating a cumulative error that is aggregated for each region by the statistic totaling unit based on a determination result by the region determining unit and an encoding mode that is applied by the encoding processing unit. When,
A moving picture encoding apparatus comprising:
請求項1に記載の動画像符号化装置において、
前記領域判別部は、
前記統計量集計部による集計結果に基づいて、前記累積誤差が所定の閾値Thvよりも大きい領域を領域検出部と、
前記閾値検出部によって検出された領域の数と、前記1フレームに含まれる領域数Nよりも小さい自然数mdとを比較した結果に基づいて、前記閾値比較部において前記累積誤差と比較される前記所定の閾値Thvを変更する閾値調整部と、
を備え、
前記領域検出部によって検出された領域を画面内符号化の適用対象とする
ことを特徴とする動画像符号化装置。
The moving image encoding device according to claim 1,
The region discriminating unit
Based on the counting result by the statistic counting unit, an area where the cumulative error is larger than a predetermined threshold Thv,
Based on the result of comparing the number of regions detected by the threshold detection unit and the natural number md smaller than the number N of regions included in the one frame, the threshold comparison unit compares the predetermined error with the accumulated error. A threshold adjustment unit for changing the threshold Thv of
With
An area detected by the area detection unit is an application target of intra-frame encoding.
請求項1に記載の動画像符号化装置において、
前記領域判別部は、
前記統計量集計部による集計結果に基づいて、前記累積誤差が所定の閾値Thvよりも大きい領域を検出する領域検出部と、
前記領域検出部によって検出された領域の数が、前記1フレームに含まれる領域数Nよりも小さい別の自然数Kよりも大きいときに、前記領域検出部によって検出された領域から前記自然数K個の領域を、画面内符号化処理の適用対象として選択する領域選択部と、
を備えた
ことを特徴とする動画像符号化装置。
The moving image encoding device according to claim 1,
The region discriminating unit
An area detection unit that detects an area in which the accumulated error is larger than a predetermined threshold Thv based on a counting result by the statistic counting unit;
When the number of regions detected by the region detection unit is larger than another natural number K smaller than the number N of regions included in the one frame, the natural number K of the regions detected by the region detection unit An area selection unit that selects an area as an application target of the intra-screen encoding process;
A moving picture encoding apparatus comprising:
請求項1に記載の動画像符号化装置において、
前記統計量抽出部は、
前記差分画像の各画素値に含まれる輝度成分および色成分についてそれぞれ統計量を求める成分統計量算出部と、
前記輝度成分および前記色成分にそれぞれ重みを対応する統計量に付加し、前記重みが付加された統計量を互いに足し合わせる重み加算部と、
を備えた
ことを特徴とする動画像符号化装置。
The moving image encoding device according to claim 1,
The statistic extraction unit includes:
A component statistic calculation unit for obtaining a statistic for each of the luminance component and the color component included in each pixel value of the difference image;
A weight adding unit that adds weights to the luminance component and the color component respectively corresponding to the statistic, and adds the weighted statistics together;
A moving picture encoding apparatus comprising:
JP2010168269A 2010-07-27 2010-07-27 Video encoding device Expired - Fee Related JP5585271B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010168269A JP5585271B2 (en) 2010-07-27 2010-07-27 Video encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010168269A JP5585271B2 (en) 2010-07-27 2010-07-27 Video encoding device

Publications (2)

Publication Number Publication Date
JP2012029213A true JP2012029213A (en) 2012-02-09
JP5585271B2 JP5585271B2 (en) 2014-09-10

Family

ID=45781596

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010168269A Expired - Fee Related JP5585271B2 (en) 2010-07-27 2010-07-27 Video encoding device

Country Status (1)

Country Link
JP (1) JP5585271B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015177294A (en) * 2014-03-14 2015-10-05 三菱電機株式会社 Terminal device and data management device
JP2020099013A (en) * 2018-12-18 2020-06-25 ルネサスエレクトロニクス株式会社 Moving picture encoding device, operating method of the same, and vehicle with moving picture encoding device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08116539A (en) * 1994-10-17 1996-05-07 Hitachi Ltd Dynamic image coder and dynamic image coding method
JP2009260977A (en) * 2008-04-15 2009-11-05 Sony Corp Video data compression using combination of irreversible compression and reversible compression
JP2010098352A (en) * 2008-10-14 2010-04-30 Panasonic Corp Image information encoder
JP2010135885A (en) * 2008-12-02 2010-06-17 Panasonic Corp Image coding apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08116539A (en) * 1994-10-17 1996-05-07 Hitachi Ltd Dynamic image coder and dynamic image coding method
JP2009260977A (en) * 2008-04-15 2009-11-05 Sony Corp Video data compression using combination of irreversible compression and reversible compression
JP2010098352A (en) * 2008-10-14 2010-04-30 Panasonic Corp Image information encoder
JP2010135885A (en) * 2008-12-02 2010-06-17 Panasonic Corp Image coding apparatus and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015177294A (en) * 2014-03-14 2015-10-05 三菱電機株式会社 Terminal device and data management device
JP2020099013A (en) * 2018-12-18 2020-06-25 ルネサスエレクトロニクス株式会社 Moving picture encoding device, operating method of the same, and vehicle with moving picture encoding device
JP7224892B2 (en) 2018-12-18 2023-02-20 ルネサスエレクトロニクス株式会社 MOVING IMAGE ENCODER AND OPERATION METHOD THEREOF, VEHICLE INSTALLING MOVING IMAGE ENCODER

Also Published As

Publication number Publication date
JP5585271B2 (en) 2014-09-10

Similar Documents

Publication Publication Date Title
TWI399097B (en) System and method for encoding video, and computer readable medium
KR100987765B1 (en) Prediction method and apparatus in video encoder
KR100750136B1 (en) Method and apparatus for encoding and decoding of video
JP3748717B2 (en) Video encoding device
KR100850706B1 (en) Method for adaptive encoding and decoding motion image and apparatus thereof
JP5174958B2 (en) Method and system for simultaneous optimization of video coder and decoder
CN102986211B (en) Speed control in Video coding
JP4799477B2 (en) Image coding apparatus and image coding method
JP2013102471A (en) Enhanced image/video quality through artifact evaluation
US8000393B2 (en) Video encoding apparatus and video encoding method
US11134250B2 (en) System and method for controlling video coding within image frame
US8594189B1 (en) Apparatus and method for coding video using consistent regions and resolution scaling
JP2009224854A (en) Image encoding device and method
JP5078837B2 (en) Encoding apparatus, encoding apparatus control method, and computer program
CN114793282A (en) Neural network based video compression with bit allocation
KR102424258B1 (en) Method and encoder system for encoding video
JP5649296B2 (en) Image encoding device
JP5585271B2 (en) Video encoding device
JP2007053620A (en) Image processing apparatus and image processing method
JP4942208B2 (en) Encoder
KR100584422B1 (en) Method and device for compressing image data
JP4911625B2 (en) Image processing apparatus and imaging apparatus equipped with the same
KR20170077621A (en) Method and Apparatus of removal of Flickering artifact for Video compression
KR101247024B1 (en) Method of motion estimation and compensation using in-loop preprocessing filtering
JP2011055023A (en) Image encoding device and image decoding device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130604

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140408

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140603

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: 20140624

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140707

R150 Certificate of patent or registration of utility model

Ref document number: 5585271

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees