JP5349904B2 - Moving picture coding apparatus and moving picture coding method - Google Patents
Moving picture coding apparatus and moving picture coding method Download PDFInfo
- Publication number
- JP5349904B2 JP5349904B2 JP2008274878A JP2008274878A JP5349904B2 JP 5349904 B2 JP5349904 B2 JP 5349904B2 JP 2008274878 A JP2008274878 A JP 2008274878A JP 2008274878 A JP2008274878 A JP 2008274878A JP 5349904 B2 JP5349904 B2 JP 5349904B2
- Authority
- JP
- Japan
- Prior art keywords
- encoding
- motion vector
- block
- compression rate
- encoded
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
本発明は動画像符号化装置及び動画像符号化方法に関し、特に、圧縮率を高く設定して動画像の符号化を行うために用いて好適な技術に関する。 The present invention relates to a moving image encoding apparatus and a moving image encoding method, and more particularly to a technique suitable for use in encoding a moving image with a high compression rate.
従来、例えば被写体を撮影し、それにより得られた動画像を圧縮符号化して記録媒体に記録するカメラ一体型動画像記録装置として、デジタルビデオカメラがよく知られている。近年は、ランダムアクセス性などの利便性が高いため、記録媒体が従来の磁気テープからディスク媒体や半導体メモリなどに移り変わってきている。 2. Description of the Related Art Conventionally, for example, a digital video camera is well known as a camera-integrated moving image recording apparatus that captures a subject and compresses and encodes a moving image obtained thereby to record it on a recording medium. In recent years, recording media have been changed from conventional magnetic tapes to disk media, semiconductor memories, and the like due to high convenience such as random accessibility.
また、圧縮方式としては、フレーム間で動き予測を用いて高い圧縮率で圧縮可能なMPEG2が一般的であり、さらに近年では、より高圧縮に圧縮可能なH.264なども用いられている。このような圧縮方式では、量子化によって情報を削減することによって圧縮を実現しており、量子化幅を制御することで所望の圧縮率に設定することが可能である。 As a compression method, MPEG2 which can be compressed at a high compression rate by using motion prediction between frames is generally used. H.264 is also used. In such a compression method, compression is realized by reducing information by quantization, and a desired compression rate can be set by controlling the quantization width.
前述のような方法で情報を圧縮しているため、圧縮率を高めると、失われる情報が多くなり画質が劣化してしまう。ところで、ディスク媒体や半導体メモリなどは一般的に記録容量が小さいため、通常はユーザが画質と記録時間とのトレードオフを判断して使用するようになっている。 Since the information is compressed by the method as described above, if the compression rate is increased, more information is lost and the image quality deteriorates. By the way, since a recording capacity of a disk medium, a semiconductor memory, or the like is generally small, a user usually uses the apparatus after judging a trade-off between image quality and recording time.
すなわち、符号化の圧縮率を低く設定して高画質で記録すると、高いビットレートで記録されるためにひとつの記録媒体へ記録できる時間が短くなる。また、符号化の圧縮率を高く設定して長時間記録できるようにすると、元の画像の情報が大きく失われることによって画質が劣化してしまう。 That is, if the encoding compression rate is set low and recording is performed with high image quality, the time required for recording on one recording medium is shortened because the recording is performed at a high bit rate. Also, if the encoding compression rate is set high so that recording can be performed for a long time, the information of the original image is largely lost and the image quality deteriorates.
そこで、高圧縮率で符号化しても質の劣化をできるだけ抑えることができるようにする工夫が考案されている。例えば、下記の特許文献1では、高圧縮率で符号化するときは、マクロブロック毎に選択可能なフレーム間符号化とフレーム内符号化の2つの符号化モードのうち、フレーム間符号化の方が優先的に選択されるようにしている。 In view of this, a device has been devised so that deterioration in quality can be suppressed as much as possible even when encoding is performed at a high compression rate. For example, in the following Patent Document 1, when encoding at a high compression rate, inter-frame encoding is one of the two encoding modes of inter-frame encoding and intra-frame encoding that can be selected for each macroblock. Is preferentially selected.
通常は、人の視覚特性を考慮し、輝度信号のサンプルレートより色差信号のサンプルレートを低くして符号化を行うようになっている。これにより、符号化の圧縮率が高くなると、信号の劣化という観点では輝度信号と色差信号は同程度に劣化するはずである。しかしながら、圧縮率が高くなって相当量の情報が失われると、前述のように色差信号のサンプルレートが低いために、色差情報の劣化の影響範囲が広範囲に及ぶことから、視覚的には劣化が非常に目立つという課題がある。 In general, in consideration of human visual characteristics, encoding is performed with a sample rate of the color difference signal lower than that of the luminance signal. As a result, when the compression rate of encoding increases, the luminance signal and the color difference signal should deteriorate to the same extent in terms of signal deterioration. However, if a considerable amount of information is lost due to a high compression ratio, since the sample rate of the color difference signal is low as described above, the influence range of the deterioration of the color difference information extends over a wide range. There is a problem that is very conspicuous.
また、動き予測を用いる符号化では、動きベクトル自体も符号化する必要があるが、この動きベクトル自体の符号量は符号化の圧縮率に影響を受けない量である。このため、圧縮率が高くなると画像信号は大きく圧縮されるため、相対的に動きベクトルの符号量の割合が大きくなり、画像信号に割り当てられる符号量が少なくなることから、画像の劣化が大きくなるという課題もある。
本発明は前述の問題点に鑑み、圧縮率を高く設定して符号化を行っても視覚的に良好な再生画像が得られるようにすることを目的としている。
In the encoding using motion prediction, it is necessary to encode the motion vector itself, but the code amount of the motion vector itself is an amount that is not influenced by the encoding compression rate. For this reason, since the image signal is largely compressed when the compression rate is high, the ratio of the code amount of the motion vector is relatively increased, and the code amount assigned to the image signal is reduced, so that the deterioration of the image is increased. There is also a problem.
The present invention has been made in view of the above-described problems, and it is an object of the present invention to obtain a visually good reproduced image even when encoding is performed with a high compression rate.
本発明の動画像符号化装置は、動画像データの画面を複数のブロックに分割し、過去または未来の画像を用いて予測画像を生成し、符号化対象の画像と予測画像との差分を符号化する符号化手段を有する動画像符号化装置であって、前記過去または未来の画像を参照画像として参照し、前記符号化対象のブロックの動きベクトルを探索する動きベクトル探索手段と、前記符号化手段により行われる符号化の圧縮率を設定する圧縮率設定手段とを有し、前記動画像データは輝度信号と色差信号からなり、前記動きベクトル探索手段は、複数の動きベクトル候補に対して、参照画像内の対応するブロックと、前記符号化対象のブロックとの画素差分値を、輝度信号と色差信号とのそれぞれに対して順次算出し、前記輝度信号の画素差分値に第1の係数を掛けた値と、前記色差信号の画素差分値に第2の係数を掛けた値との和を、前記動きベクトル候補に対するコストとし、前記コストが最小となる動きベクトル候補を前記符号化対象のブロックに対する動きベクトルとして決定するように動作して、前記圧縮率設定手段が設定する圧縮率に応じて、前記第1の係数と前記第2の係数の値を変え、前記動きベクトル探索手段は、前記圧縮率設定手段が設定する圧縮率が高くなると、前記第1の係数に対する前記第2の係数の割合が大きくなるようにすることを特徴とする。 The moving image encoding apparatus of the present invention divides a screen of moving image data into a plurality of blocks, generates a predicted image using past or future images, and encodes a difference between the image to be encoded and the predicted image. A motion image encoding device having encoding means for converting, referring to the past or future image as a reference image and searching for a motion vector of the block to be encoded, and the encoding Compression rate setting means for setting a compression rate of encoding performed by the means, wherein the moving image data is composed of a luminance signal and a color difference signal, and the motion vector search means is for a plurality of motion vector candidates, A pixel difference value between the corresponding block in the reference image and the encoding target block is sequentially calculated for each of the luminance signal and the color difference signal, and the first pixel difference value of the luminance signal is calculated. The sum of the value multiplied by the number and the value obtained by multiplying the pixel difference value of the color difference signal by the second coefficient is the cost for the motion vector candidate, and the motion vector candidate with the minimum cost is the encoding target. And the motion vector search means changes the values of the first coefficient and the second coefficient according to the compression ratio set by the compression ratio setting means. The ratio of the second coefficient to the first coefficient increases as the compression ratio set by the compression ratio setting means increases.
本発明の動画像符号化方法は、動画像データの画面を複数のブロックに分割し、過去または未来の画像を用いて予測画像を生成し、符号化対象の画像と予測画像との差分を符号化する符号化工程を有する動画像符号化方法であって、前記過去または未来の画像を参照画像として参照し、前記符号化対象のブロックの動きベクトルを探索する動きベクトル探索工程と、前記符号化工程において行われる符号化の圧縮率を設定する圧縮率設定工程とを有し、前記動画像データは輝度信号と色差信号からなり、前記動きベクトル探索工程において、複数の動きベクトル候補に対して、参照画像内の対応するブロックと、前記符号化対象のブロックとの画素差分値を、輝度信号と色差信号とのそれぞれに対して順次算出し、前記輝度信号の画素差分値に第1の係数を掛けた値と、前記色差信号の画素差分値に第2の係数を掛けた値との和を、前記動きベクトル候補に対するコストとし、前記コストが最小となる動きベクトル候補を前記符号化対象のブロックに対する動きベクトルとして決定するように動作して、前記圧縮率設定工程において設定する圧縮率に応じて、前記第1の係数と前記第2の係数の値を変え、前記動きベクトル探索工程において、前記圧縮率設定工程において設定する圧縮率が高くなると、前記第1の係数に対する前記第2の係数の割合が大きくなるようにすることを特徴とする。 The moving image encoding method of the present invention divides a screen of moving image data into a plurality of blocks, generates a predicted image using past or future images, and encodes the difference between the image to be encoded and the predicted image. A motion image encoding method including an encoding step of encoding, a motion vector search step of searching for a motion vector of the block to be encoded with reference to the past or future image as a reference image, and the encoding A compression rate setting step for setting a compression rate of encoding performed in the step, wherein the moving image data includes a luminance signal and a color difference signal, and in the motion vector search step, a plurality of motion vector candidates are The pixel difference value between the corresponding block in the reference image and the encoding target block is sequentially calculated for each of the luminance signal and the color difference signal, and the pixel difference value of the luminance signal is calculated. The sum of the value obtained by multiplying the first coefficient and the value obtained by multiplying the pixel difference value of the color difference signal by the second coefficient is set as the cost for the motion vector candidate, and the motion vector candidate having the minimum cost is determined as the cost. The motion vector operates so as to be determined as a motion vector for the block to be encoded, and changes the values of the first coefficient and the second coefficient according to the compression rate set in the compression rate setting step, and the motion vector In the searching step, when the compression rate set in the compression rate setting step is increased, the ratio of the second coefficient to the first coefficient is increased.
本発明によれば、符号化の圧縮率に応じて動きベクトル算出方法を変更することにより、例えば圧縮率を高く設定した場合に、色差成分の劣化を抑えて符号化を行うことが可能となり、再生時において視覚的に画像の劣化が認知されにくいようにすることができる。これにより、圧縮率を高く設定して符号化をした場合でも視覚的に良好な再生画像が得られる動画像符号化装置を提供することができる。
また、本発明の他の特徴によれば、例えば圧縮率を高く設定して符号化をした場合でも、動きベクトルに要する符号量を抑えることで、相対的に画像情報に割り当てる符号量が増し、画像の劣化が抑えられ、視覚的に良好な再生画像が得られる。
According to the present invention, by changing the motion vector calculation method according to the compression rate of encoding, for example, when the compression rate is set high, it is possible to perform encoding while suppressing deterioration of color difference components, It is possible to make it difficult to visually perceive image degradation during reproduction. Accordingly, it is possible to provide a moving image encoding apparatus that can provide a visually reproduced image even when encoding is performed with a high compression rate.
Further, according to another feature of the present invention, for example, even when encoding is performed with a high compression rate, by suppressing the code amount required for the motion vector, the code amount allocated to the image information is relatively increased, Deterioration of the image is suppressed, and a visually good reproduction image can be obtained.
(第1の実施形態)
以下、本発明の実施形態を、図面を参照して説明する。
図1は、本発明の第1の実施形態に係る動画像符号化装置100の構成例を示すブロック図である。
図1において、本実施形態の動画像符号化装置は、レンズやCCD等のカメラ部を含む撮像部101、フレームメモリ102、動きベクトル探索を行う動き予測部103、画面内予測方法を選択する画面内予測部104を有する。
(First embodiment)
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration example of a moving
In FIG. 1, the moving image encoding apparatus according to the present embodiment includes an
また、動き予測と画面内予測のどちらかの予測方法を選択する予測方法選択部105、予測画像生成部106、減算器107、整数変換部108、量子化部109、逆量子化部110、逆整数変換部111、加算器112、ループ内フィルタ113を有する。
Also, a prediction
さらに、エントロピー符号化部115、符号量制御部116、記録部117、記録媒体118を備えている。そして、各構成部の動作は、システムコントローラ114によって制御されるようになされている。すなわち、このシステムコントローラ114は装置全体の動作制御を司るものであり、図示していない操作部からの必要に応じたユーザからの指示によっても、装置全体の動作制御を行うようになされている。
Furthermore, an
次に、撮像時に行われる符号化処理について説明する。
撮像部101において、被写体を撮像して得られた画像信号は、第1フレーム、第2フレーム、第3フレーム、・・・の順で、フレームメモリ102に順次格納されていく。そして、フレームメモリ102からは、例えば、第3フレーム、第1フレーム、第2フレーム、・・・などのように、符号化を行う順序で画像データを取り出していく。
Next, the encoding process performed at the time of imaging will be described.
The image signal obtained by imaging the subject in the
次に、符号化方式を判断する。フレームメモリ102から取り出した動画像データを符号化する方式としては、フレーム内の画像データのみで符号化する"イントラ符号化"と、フレーム間予測も含めて符号化する"インター符号化"とがある。インター符号化は、動き補償の単位(MCブロック)に対して1枚の参照フレームとの予測を行うPピクチャと、MCブロックに対して2枚までの参照フレームとの予測を行うBピクチャとがある。なお、イントラ符号化を行うピクチャをIピクチャという。符号化するフレームの順番が入力されたフレームの順番と異なるのは、時間的に過去または未来の画像を用いて予測(後方予測)を可能にするためである。
Next, the encoding method is determined. As a method for encoding moving image data extracted from the
イントラ符号化が行われる場合には、符号化単位となるブロックの画像データはフレームメモリ102から読み出されて画面内予測部104へ入力される。画面内予測部104は、符号化対象ブロックと、後述する同一フレーム内の符号化対象ブロック近傍に位置する再構成画像から生成される複数の予測画像とのブロックマッチングをそれぞれに行う。そして、最も相関の高いイントラ予測画像を選択して予測方法選択部105へ出力する。
When intra coding is performed, image data of a block serving as a coding unit is read from the
予測方法選択部105は、イントラ符号化がなされる場合には、常に画面内予測を選択し、予測画像生成部106へ選択結果を通知する。予測画像生成部106は、予測方法選択部105が選択した予測方法に従って、フレームメモリ102から再構成画像を読み出して画面内予測画像を生成する。そして、生成した画面内予測画像を減算器107に出力する。
When intra coding is performed, the prediction
減算器107へは、前述した画面内予測画像と、フレームメモリ102から読み出される符号化対象ブロックの画像データとが入力され、符号化対象ブロックの画像と画面内予測画像との画素値の差分画像を生成する。そして、この生成した差分画像が整数変換部108へ出力される。整数変換部108に入力された画素値の差分画像は、整数変換部108において整数変換が施された後、量子化部109に入力されて量子化処理される。
The above-described intra-screen prediction image and the image data of the encoding target block read from the
量子化部109において量子化された変換係数は、エントロピー符号化部115においてエントロピー符号化がなされた後、記録部117に入力される。そして、記録部117において記録媒体へ記録するための記録信号として生成されて、記録媒体118へ記録される。
The transform coefficient quantized by the
量子化部109における量子化係数は、エントロピー符号化部115が発生した符号量のフィードバックや、システムコントローラ114から設定される目標の符号量などから符号量制御部116が算出する。すなわち、符号量制御部116は符号化の圧縮率を設定する。また、量子化部109の出力である量子化された変換係数は、逆量子化部110において逆量子化され、逆整数変換部111において逆整数変換処理が施される。
The quantization coefficient in the
逆整数変換部111において逆整数変換処理された信号は加算器112に出力される。加算器112へは、逆整数変換部111から出力される逆整数変換されたデータと、減算器107から出力される差分画像が入力される。加算器112は、これらの入力された2つを加算する。加算後のデータは復号された再構成画像となり、前述した画面内予測部104の入力となって画面内予測画像の生成に用いられる。また、加算器112から出力される再構成画像は、ループ内フィルタ113にも入力される。そして、ループ内フィルタ113によって符号化歪の軽減処理が施された後、後述するインター符号化の際に用いる参照画像としてフレームメモリ102に記憶される。
The signal subjected to the inverse integer conversion processing in the inverse
一方、インター符号化がなされる場合、符号化単位となるブロックの動画像データはフレームメモリ102から読み出されて、動き予測部103へ入力される。動き予測部103は、参照画像をフレームメモリ102から読み出し、符号化画像と参照画像内の対応するブロックとから動きベクトルを検出して、予測方法選択部105へ通知する。
On the other hand, when inter coding is performed, moving image data of a block serving as a coding unit is read from the
インター符号化がなされる場合、符号化ブロックごとに動き予測か画面内予測かを選択することができる。画面内予測部104は前述のように動作し、画面内予測の結果を予測方法選択部105へ通知する。予測方法選択部105は、動き予測部103と画面内予測部104の結果を入力とし、例えば差分値が小さい方の予測方法を選択して、予測画像生成部106へ通知する。
When inter coding is performed, motion prediction or intra prediction can be selected for each coding block. The
符号化画像と予測画像との差分は減算器107によって計算されて差分画像が生成される。差分画像は整数変換部108に出力され、その他の処理は前述のイントラ符号化の場合と同様である。
The difference between the encoded image and the predicted image is calculated by the
次に、動き予測部103の動作について、図2のブロック図と、図4のフローチャートを参照しながら詳細に説明する。図2は、本発明の第1の実施形態に係る動画像符号化装置が備える動き予測部103の構成例を説明するブロック図である。
Next, the operation of the
図2に示すように、本実施形態の動き予測部103は、輝度用の符号化画像取得部201、輝度用の参照画像取得部202、色差用の符号化画像取得部203,色差用の参照画像取得部204などを有する。また、係数発生部205、動きベクトル設定部206、コスト比較部207、輝度用の積算部208、色差用の積算部209などを有する。さらに、第1の加算器211、第2の加算器212、第3の加算器213、第1の乗算器214、第2の乗算器215などを有する。なお、係数発生部205は、符号量制御部116から圧縮率の情報を取得し、設定された圧縮率に応じた大きさの係数を発生することによって、動きベクトルの算出方法の変更を行うものである。
As shown in FIG. 2, the
このように構成された本実施形態の動き予測部103においては、動作が開始されると、輝度用の符号化画像取得部201、及び色差用の符号化画像取得部203は、符号化対象ブロックの動画像データをフレームメモリ102から取得する(ステップS401)。
In the
次に、動きベクトル設定部206は、複数の動きベクトル候補の中から、動きベクトルを、輝度用の参照画像取得部202、及び色差用の参照画像取得部204へ順次設定する(ステップS402)。
Next, the motion
次に、ステップS403に進み、参照画像取得部202、204は、動きベクトル設定部206によって設定された動きベクトルに対応する画像データをフレームメモリ102から取得する。
In step S 403, the reference
そして、輝度用の符号化画像取得部201により取得された符号化画像(輝度)と、輝度用の参照画像取得部202により取得された参照画像(輝度)は、第1の加算器211に供給される。
The encoded image (luminance) acquired by the luminance encoded
また、色差用の符号化画像取得部203により取得された符号化画像(色差)と、色差用の参照画像取得部204により取得された参照画像(色差)は、第2の加算器212に供給される。そして、輝度と色差のそれぞれについて差分が順次算出される(ステップS404)。
Also, the encoded image (color difference) acquired by the color difference encoded
輝度の差分値は輝度用の積算部208に与えられ、符号化対象画像のブロックに含まれる画素数分が積算される。また、色差の差分値は色差用の積算部209に与えられ、符号化対象画像のブロックに含まれる画素数分が積算される(ステップS405)。輝度用の積算部208において積算された画素差分値は第1の乗算器214に出力され、第1の乗算器214において、係数発生部205から出力される輝度用の係数である第1の係数(Ky)と乗算される。また、色差用の積算部209において積算された画素差分値は第2の乗算器215に出力され、第2の乗算器215において、係数発生部205から出力される色差用の係数である第2の係数(Kc)と乗算される(ステップS406)。
The luminance difference value is given to the
また、第1の乗算器214の乗算結果と、第2の乗算器215の乗算結果は、第3の加算器213に出力され、第3の加算器213において加算される。第3の加算器213の加算結果は、設定された動きベクトルに対するコスト値となり、コスト比較部207へ出力される(ステップS407)。
Further, the multiplication result of the
コスト比較部207は、これまで算出されたコスト値の中で、最も値が小さいもののコスト値と、それに対応する動きベクトルを記憶する。そして、すべての動きベクトル候補に対するコスト値の算出が終わった時点で、記憶されている動きベクトルの中で、コストが最小となる動きベクトル候補を符号化対象のブロックに対する動きベクトルとして決定する(ステップS408)。次に、ステップS409において、処理の終了判断を行い、終了しない場合にはステップS401に戻って前述した処理を繰り返し行う。また、ステップS409の判断の結果、終了する場合にはエンド処理を行う。
The
前述したように、本実施形態の動画像符号化装置100の係数発生部205は、符号量制御部116から通知される圧縮率に応じた大きさの係数を発生する。すなわち、圧縮率設定が高いほどKyに対するKcの値の割合が大きくなるように係数を発生する。逆に、圧縮率設定が低いほどKyに対するKcの値の割合が小さくなるように係数を発生する。すなわち、本実施形態の動画像符号化装置100によれば、符号量制御部116によって設定された圧縮率が高いときは動きベクトルの算出方法を変更して、色差信号の差分を重視した動きベクトルを決定するようにし、色差成分の劣化を抑えることができる。これにより、圧縮率の低下による視覚的な画質劣化を軽減することができる。一方、圧縮率が低いときは、輝度信号の差分を重視した動きベクトルを決定するように変更することもできる。
As described above, the
(第2の実施形態)
以下、本発明の第2の実施形態を説明する。
本実施形態における動作は、動き予測部の動作が異なる他は、前述の第1の実施形態に記載の動画像符号化装置と同様に動作する。図3は、本発明の第2の実施形態に係る動画像符号化装置が備える動き予測部の構成例を説明するブロック図である。
(Second Embodiment)
Hereinafter, a second embodiment of the present invention will be described.
The operation in this embodiment is the same as that of the moving picture encoding apparatus described in the first embodiment except that the operation of the motion prediction unit is different. FIG. 3 is a block diagram illustrating a configuration example of a motion prediction unit included in the video encoding device according to the second embodiment of the present invention.
符号化画像取得部301は、符号化対象ブロックの動画像データをフレームメモリ102から取得する。また、動きベクトル設定部306は、複数の動きベクトル候補の中から、動きベクトルを順次、参照画像取得部302、ベクトル符号量算出部309へ設定する。
The encoded
参照画像取得部302は、前記設定された動きベクトルに対応する動画像データをフレームメモリ102から取得する。前記取得された符号化画像と参照画像は第4の加算器310に与えられて差分が算出される。そして、第4の加算器310で算出された差分は積算部308に与えられ、符号化対象画像のブロックに含まれる画素数分が積算される。また、ベクトル符号量算出部309は、前記設定された動きベクトル自体の符号量を算出する。
The reference
係数発生部305は、符号量制御部116から圧縮率の情報を取得し、設定された圧縮率に応じた大きさの係数を発生することによって、動きベクトルの算出方法変更を行うものである。そして、積算部308において積算された画素差分値は乗算器311において、係数発生部305が出力する、差分値に対する係数として第3の係数(Kd)と乗算される。また、ベクトル符号量算出部309から出力される算出値は、乗算器312において動きベクトルの符号量に対する係数として第4の係数(Kv)と乗算される。その後、乗算器311の乗算結果及び乗算器312の乗算結果とが加算器313で加算されて、設定された動きベクトルに対するコスト値となり、コスト比較部307へ入力される。
The
コスト比較部307は、これまで算出されたコスト値の中で、最も値が小さいもののコスト値と、それに対応する動きベクトルを記憶する。そして、すべての動きベクトル候補に対するコスト値の算出が終わった時点で、記憶されている動きベクトルを、符号化対象のブロックに対する動きベクトルとして決定する。
The
係数発生部305は、符号量制御部116から通知される圧縮率に応じて、圧縮率が高いほどKdに対するKvの値の割合が大きくなり、逆に圧縮率が低いほどKdに対するKvの値の割合が小さくなるように係数を発生する。すなわち、圧縮率が高いときは動きベクトルの算出方法を変更して、動きベクトル自体の符号量を重視した動きベクトル決定をするようにし、動きベクトル自体の発生符号量を抑えることができる。
In accordance with the compression rate notified from the code
(本発明に係る他の実施形態)
前述した本発明の実施形態における動画像符号化装置を構成する各手段は、コンピュータのRAMやROMなどに記憶されたプログラムが動作することによって実現できる。このプログラム及び前記プログラムを記録したコンピュータ読み取り可能な記録媒体は本発明に含まれる。
(Other embodiments according to the present invention)
Each means constituting the moving picture coding apparatus according to the above-described embodiment of the present invention can be realized by operating a program stored in a RAM or ROM of a computer. This program and a computer-readable recording medium recording the program are included in the present invention.
また、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施形態も可能であり、具体的には、複数の機器から構成されるシステムに適用してもよいし、また、一つの機器からなる装置に適用してもよい。 In addition, the present invention can be implemented as, for example, a system, apparatus, method, program, storage medium, or the like. Specifically, the present invention may be applied to a system including a plurality of devices. The present invention may be applied to an apparatus composed of a single device.
なお、本発明は、前述した動画像符号化方法における各工程を実行するソフトウェアのプログラム(実施形態では図4に示すフローチャートに対応したプログラム)を、システムあるいは装置に直接、あるいは遠隔から供給する。そして、そのシステムあるいは装置のコンピュータが前記供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。 According to the present invention, a software program (in the embodiment, a program corresponding to the flowchart shown in FIG. 4) for executing each step in the above-described moving image encoding method is directly or remotely supplied to a system or apparatus. In addition, this includes a case where the system or the computer of the apparatus is also achieved by reading and executing the supplied program code.
したがって、本発明の機能処理をコンピュータで実現するために、前記コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。 Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であってもよい。 In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, and the like.
プログラムを供給するための記録媒体としては種々の記録媒体を使用することができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。 Various recording media can be used as a recording medium for supplying the program. For example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD- R).
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続する。そして、前記ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。 As another program supply method, a browser on a client computer is used to connect to an Internet home page. The computer program itself of the present invention or a compressed file including an automatic installation function can be downloaded from the homepage by downloading it to a recording medium such as a hard disk.
また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。 It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.
また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせる。そして、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。 In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. Let me. It is also possible to execute the encrypted program by using the key information and install the program on a computer.
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される他、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行うことによっても前述した実施形態の機能が実現され得る。 In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer may perform part or all of the actual processing. The functions of the above-described embodiments can be realized.
さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現される。 Further, the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instructions of the program, and the functions of the above-described embodiments are realized by the processing.
100 動画像符号化装置
101 撮像部
102 フレームメモリ
103 動き予測部
104 画面内予測部
105 予測方法選択部
106 予測画像生成部
107 減算器
108 整数変換部
109 量子化部
110 逆量子化部
111 逆整数変換部
112 加算器
113 ループ内フィルタ
114 システムコントローラ
115 エントロピー符号化部
116 符号量制御部
117 記録部
118 記録媒体
201 輝度用の符号化画像取得部
202 輝度用の参照画像取得部
203 色差用の符号化画像取得部
204 色差用の参照画像取得部
205 係数発生部
206 動きベクトル設定部
207 コスト比較部
208 輝度用の積算部
209 色差用の積算部
301 符号化画像取得部
302 参照画像取得部
305 係数発生部
306 動きベクトル設定部
307 コスト比較部
308 積算部
309 ベクトル符号量算出部
DESCRIPTION OF
Claims (18)
前記過去または未来の画像を参照画像として参照し、前記符号化対象のブロックの動きベクトルを探索する動きベクトル探索手段と、
前記符号化手段により行われる符号化の圧縮率を設定する圧縮率設定手段とを有し、前記動画像データは輝度信号と色差信号からなり、
前記動きベクトル探索手段は、複数の動きベクトル候補に対して、参照画像内の対応するブロックと、前記符号化対象のブロックとの画素差分値を、輝度信号と色差信号とのそれぞれに対して順次算出し、前記輝度信号の画素差分値に第1の係数を掛けた値と、前記色差信号の画素差分値に第2の係数を掛けた値との和を、前記動きベクトル候補に対するコストとし、前記コストが最小となる動きベクトル候補を前記符号化対象のブロックに対する動きベクトルとして決定するように動作して、前記圧縮率設定手段が設定する圧縮率に応じて、前記第1の係数と前記第2の係数の値を変え、
前記動きベクトル探索手段は、前記圧縮率設定手段が設定する圧縮率が高くなると、前記第1の係数に対する前記第2の係数の割合が大きくなるようにすることを特徴とする動画像符号化装置。 A moving image code having an encoding unit that divides a screen of moving image data into a plurality of blocks, generates a predicted image using past or future images, and encodes a difference between the image to be encoded and the predicted image Device.
Motion vector search means for referring to the past or future image as a reference image and searching for a motion vector of the block to be encoded;
Compression rate setting means for setting a compression rate of encoding performed by the encoding means, and the moving image data comprises a luminance signal and a color difference signal,
The motion vector search means sequentially calculates a pixel difference value between a corresponding block in a reference image and the block to be encoded for a plurality of motion vector candidates for each of a luminance signal and a color difference signal. A sum of a value obtained by multiplying the pixel difference value of the luminance signal by a first coefficient and a value obtained by multiplying the pixel difference value of the color difference signal by a second coefficient is a cost for the motion vector candidate; The first coefficient and the first coefficient are operated according to a compression rate set by the compression rate setting means, and the motion vector candidate having the minimum cost is determined as a motion vector for the block to be encoded. Change the value of the coefficient of 2,
The moving picture coding apparatus characterized in that the motion vector search means increases the ratio of the second coefficient to the first coefficient when the compression ratio set by the compression ratio setting means increases. .
前記動画像データの画面の符号化対象のブロックの画像を符号化する場合、前記符号化対象のブロックの画面の過去または未来の画面の符号化後の符号化データを復号化した参照画像から生成された予測画像と、前記符号化対象のブロックの画像との差分を符号化する符号化手段と、
前記符号化手段による符号化の圧縮率を設定する圧縮率設定手段と、
前記予測画像を生成するための前記符号化対象のブロックの動きベクトルを決定する動きベクトル決定手段とを有し、
前記動きベクトル決定手段は、前記圧縮率設定手段が設定する符号化の圧縮率が大きいときの動きベクトルに対応する前記参照画像内のブロックと前記符号化対象のブロックとの色差成分の画素差分値が、前記圧縮率設定手段が設定する符号化の圧縮率が小さいときの動きベクトルに対応する前記参照画像内のブロックと前記符号化対象のブロックとの色差成分の画素差分値よりも小さくなるように前記符号化対象のブロックの動きベクトルを決定することを特徴とする動画像符号化装置。 A moving image encoding apparatus that encodes a luminance component screen and a color difference component screen of moving image data in units of blocks,
When encoding an image of a block to be encoded on the screen of the moving image data, generated from a reference image obtained by decoding the encoded data of the past or future screen of the screen of the block to be encoded Encoding means for encoding a difference between the predicted image and the image of the encoding target block;
Compression rate setting means for setting a compression rate of encoding by the encoding means;
Motion vector determining means for determining a motion vector of the block to be encoded for generating the predicted image;
The motion vector determination means is a pixel difference value of a color difference component between a block in the reference image and the block to be encoded corresponding to a motion vector when the compression ratio of encoding set by the compression ratio setting means is large. Is smaller than the pixel difference value of the color difference component between the block in the reference image corresponding to the motion vector when the compression rate of encoding set by the compression rate setting means is small and the block to be encoded. And determining a motion vector of the block to be encoded.
前記動画像データの画面の符号化対象のブロックの画像を符号化する場合、前記符号化対象のブロックの画面の過去または未来の画面の符号化後の符号化データを復号化した参照画像から生成された予測画像と、前記符号化対象のブロックの画像との差分を符号化する符号化手段と、
前記符号化手段による符号化の圧縮率を設定する圧縮率設定手段と、
前記予測画像を生成するための前記符号化対象のブロックの動きベクトルを決定する動きベクトル決定手段とを有し、
前記動きベクトル決定手段は、前記動画像データの輝度成分と色差成分のそれぞれについて、複数の動きベクトル候補に対応する前記参照画像内のブロックと前記符号化対象のブロックとの画素差分値を算出し、
前記動きベクトル決定手段は、前記圧縮率設定手段が設定する符号化の圧縮率が大きいときは、前記圧縮率設定手段が設定する符号化の圧縮率が小さいときより、前記算出された前記色差成分の画素差分値を重視して前記符号化対象のブロックの動きベクトルを決定することを特徴とする動画像符号化装置。 A moving image encoding apparatus that encodes a luminance component screen and a color difference component screen of moving image data in units of blocks,
When encoding an image of a block to be encoded on the screen of the moving image data, generated from a reference image obtained by decoding the encoded data of the past or future screen of the screen of the block to be encoded Encoding means for encoding a difference between the predicted image and the image of the encoding target block;
Compression rate setting means for setting a compression rate of encoding by the encoding means;
Motion vector determining means for determining a motion vector of the block to be encoded for generating the predicted image;
The motion vector determining means calculates a pixel difference value between a block in the reference image corresponding to a plurality of motion vector candidates and a block to be encoded for each of a luminance component and a color difference component of the moving image data. ,
The motion vector determination unit is configured to calculate the color difference component when the compression rate set by the compression rate setting unit is large and when the compression rate set by the compression rate setting unit is small. A video encoding apparatus, wherein the motion vector of the block to be encoded is determined with emphasis on the pixel difference value of the encoding target block.
前記動画像データの画面の符号化対象のブロックの画像を符号化する場合、前記符号化対象のブロックの画面の過去または未来の画面の符号化後の符号化データを復号化した参照画像から生成された予測画像と、前記符号化対象のブロックの画像との差分を符号化する符号化手段と、
前記符号化手段による符号化の圧縮率を設定する圧縮率設定手段と、
前記予測画像を生成するための動きベクトルを決定する動きベクトル決定手段とを有し、
前記動きベクトル決定手段は、前記動画像データの輝度信号と色差信号のそれぞれについて、複数の動きベクトル候補に対応する前記参照画像内のブロックと前記符号化対象のブロックとの画素差分値を算出し、
前記算出された前記輝度信号の画素差分値と、前記色差信号の画素差分値とに基づいて前記符号化対象のブロックに対する動きベクトルを決定し、
前記動きベクトル決定手段は、前記圧縮率設定手段が設定する符号化の圧縮率が大きいときは、前記符号化の圧縮率が小さいときよりも前記色差信号の画素差分値が小さくなる動きベクトル候補を前記符号化対象のブロックに対する動きベクトルとして決定することを特徴とする動画像符号化装置。 A moving image encoding device for encoding moving image data,
When encoding an image of a block to be encoded on the screen of the moving image data, generated from a reference image obtained by decoding the encoded data of the past or future screen of the screen of the block to be encoded Encoding means for encoding a difference between the predicted image and the image of the encoding target block;
Compression rate setting means for setting a compression rate of encoding by the encoding means;
Motion vector determining means for determining a motion vector for generating the predicted image;
The motion vector determination unit calculates a pixel difference value between a block in the reference image corresponding to a plurality of motion vector candidates and a block to be encoded for each of a luminance signal and a color difference signal of the moving image data. ,
Determining a motion vector for the block to be encoded based on the calculated pixel difference value of the luminance signal and the pixel difference value of the color difference signal;
The motion vector determination unit selects a motion vector candidate having a smaller pixel difference value of the color difference signal when the compression rate of the encoding set by the compression rate setting unit is larger than when the compression rate of the encoding is small. A moving picture coding apparatus, characterized in that it is determined as a motion vector for the block to be coded.
前記動画像データの画面の符号化対象のブロックの画像を符号化する場合、前記符号化対象のブロックの画面の過去または未来の画面の符号化後の符号化データを復号化した参照画像から生成された予測画像と、前記符号化対象のブロックの画像との差分を符号化する符号化手段と、
前記符号化手段による符号化の圧縮率を設定する圧縮率設定手段と、
前記予測画像を生成するための動きベクトルを決定する動きベクトル決定手段とを有し、
前記動きベクトル決定手段は、前記動画像データの輝度信号と色差信号のそれぞれについて、複数の動きベクトル候補に対応する前記参照画像内のブロックと前記符号化対象のブロックとの画素差分値を算出し、
前記算出された前記輝度信号の画素差分値と、前記色差信号の画素差分値とに基づいて前記符号化対象のブロックに対する動きベクトルを決定し、
前記動きベクトル決定手段は、前記圧縮率設定手段が設定する符号化の圧縮率が大きいときは、前記符号化の圧縮率が小さいときよりも動きベクトル自体の符号量が小さくなる動きベクトル候補を前記符号化対象のブロックに対する動きベクトルとして決定することを特徴とする動画像符号化装置。 A moving image encoding device for encoding moving image data,
When encoding an image of a block to be encoded on the screen of the moving image data, generated from a reference image obtained by decoding the encoded data of the past or future screen of the screen of the block to be encoded Encoding means for encoding a difference between the predicted image and the image of the encoding target block;
Compression rate setting means for setting a compression rate of encoding by the encoding means;
Motion vector determining means for determining a motion vector for generating the predicted image;
The motion vector determination unit calculates a pixel difference value between a block in the reference image corresponding to a plurality of motion vector candidates and a block to be encoded for each of a luminance signal and a color difference signal of the moving image data. ,
Determining a motion vector for the block to be encoded based on the calculated pixel difference value of the luminance signal and the pixel difference value of the color difference signal;
The motion vector determination unit determines a motion vector candidate whose code amount of the motion vector itself is smaller when the compression rate of the encoding set by the compression rate setting unit is larger than when the compression rate of the encoding is small. A moving picture coding apparatus, characterized in that it is determined as a motion vector for a block to be coded.
前記過去または未来の画像を参照画像として参照し、前記符号化対象のブロックの動きベクトルを探索する動きベクトル探索工程と、
前記符号化工程において行われる符号化の圧縮率を設定する圧縮率設定工程とを有し、前記動画像データは輝度信号と色差信号からなり、
前記動きベクトル探索工程において、複数の動きベクトル候補に対して、参照画像内の対応するブロックと、前記符号化対象のブロックとの画素差分値を、輝度信号と色差信号とのそれぞれに対して順次算出し、前記輝度信号の画素差分値に第1の係数を掛けた値と、前記色差信号の画素差分値に第2の係数を掛けた値との和を、前記動きベクトル候補に対するコストとし、前記コストが最小となる動きベクトル候補を前記符号化対象のブロックに対する動きベクトルとして決定するように動作して、前記圧縮率設定工程において設定する圧縮率に応じて、前記第1の係数と前記第2の係数の値を変え、
前記動きベクトル探索工程において、前記圧縮率設定工程において設定する圧縮率が高くなると、前記第1の係数に対する前記第2の係数の割合が大きくなるようにすることを特徴とする動画像符号化方法。 A moving picture code having a coding step of dividing a screen of moving picture data into a plurality of blocks, generating a predicted picture using past or future pictures, and coding a difference between the picture to be coded and the predicted picture A method of
A motion vector search step of referring to the past or future image as a reference image and searching for a motion vector of the block to be encoded;
A compression rate setting step for setting a compression rate of encoding performed in the encoding step, and the moving image data includes a luminance signal and a color difference signal,
In the motion vector search step, for a plurality of motion vector candidates, pixel difference values between a corresponding block in a reference image and the block to be encoded are sequentially applied to each of a luminance signal and a color difference signal. A sum of a value obtained by multiplying the pixel difference value of the luminance signal by a first coefficient and a value obtained by multiplying the pixel difference value of the color difference signal by a second coefficient is a cost for the motion vector candidate; The first coefficient and the first coefficient are operated according to a compression rate set in the compression rate setting step, and the motion vector candidate having the minimum cost is determined as a motion vector for the block to be encoded. Change the value of the coefficient of 2,
In the motion vector search step, when the compression rate set in the compression rate setting step is high, the ratio of the second coefficient to the first coefficient is increased. .
前記動画像データの画面の符号化対象のブロックの画像を符号化する場合、前記符号化対象のブロックの画面の過去または未来の画面の符号化後の符号化データを復号化した参照画像から生成された予測画像と、前記符号化対象のブロックの画像との差分を符号化する符号化工程と、
前記符号化工程における符号化の圧縮率を設定する圧縮率設定工程と、
前記予測画像を生成するための前記符号化対象のブロックの動きベクトルを決定する動きベクトル決定工程とを有し、
前記動きベクトル決定工程において、前記圧縮率設定工程において設定する符号化の圧縮率が大きいときの動きベクトルに対応する前記参照画像内のブロックと前記符号化対象のブロックとの色差成分の画素差分値が、前記圧縮率設定工程において設定する符号化の圧縮率が小さいときの動きベクトルに対応する前記参照画像内のブロックと前記符号化対象のブロックとの色差成分の画素差分値よりも小さくなるように前記符号化対象のブロックの動きベクトルを決定することを特徴とする動画像符号化方法。 A moving image encoding method for encoding a luminance component screen and a color difference component screen of moving image data in block units,
When encoding an image of a block to be encoded on the screen of the moving image data, generated from a reference image obtained by decoding the encoded data of the past or future screen of the screen of the block to be encoded An encoding step for encoding a difference between the predicted image and the image of the encoding target block;
A compression rate setting step for setting a compression rate of encoding in the encoding step;
A motion vector determining step for determining a motion vector of the encoding target block for generating the predicted image,
In the motion vector determination step, the pixel difference value of the color difference component between the block in the reference image and the block to be encoded corresponding to the motion vector when the compression rate of encoding set in the compression rate setting step is large Is smaller than the pixel difference value of the color difference component between the block in the reference image corresponding to the motion vector when the compression rate of encoding set in the compression rate setting step is small and the block to be encoded. And determining a motion vector of the block to be encoded.
前記動画像データの画面の符号化対象のブロックの画像を符号化する場合、前記符号化対象のブロックの画面の過去または未来の画面の符号化後の符号化データを復号化した参照画像から生成された予測画像と、前記符号化対象のブロックの画像との差分を符号化する符号化工程と、
前記符号化工程における符号化の圧縮率を設定する圧縮率設定工程と、
前記予測画像を生成するための前記符号化対象のブロックの動きベクトルを決定する動きベクトル決定工程とを有し、
前記動きベクトル決定工程において、前記動画像データの輝度成分と色差成分のそれぞれについて、複数の動きベクトル候補に対応する前記参照画像内のブロックと前記符号化対象のブロックとの画素差分値を算出し、
前記動きベクトル決定工程において、前記圧縮率設定工程において設定する符号化の圧縮率が大きいときは、前記圧縮率設定工程において設定する符号化の圧縮率が小さいときより、前記算出された前記色差成分の画素差分値を重視して前記符号化対象のブロックの動きベクトルを決定することを特徴とする動画像符号化方法。 A moving image encoding method for encoding a luminance component screen and a color difference component screen of moving image data in block units,
When encoding an image of a block to be encoded on the screen of the moving image data, generated from a reference image obtained by decoding the encoded data of the past or future screen of the screen of the block to be encoded An encoding step for encoding a difference between the predicted image and the image of the encoding target block;
A compression rate setting step for setting a compression rate of encoding in the encoding step;
A motion vector determining step for determining a motion vector of the encoding target block for generating the predicted image,
In the motion vector determination step, a pixel difference value between a block in the reference image corresponding to a plurality of motion vector candidates and a block to be encoded is calculated for each of a luminance component and a color difference component of the moving image data. ,
In the motion vector determination step, when the encoding compression rate set in the compression rate setting step is large, the calculated color difference component is more than when the encoding compression rate set in the compression rate setting step is small. A moving picture encoding method, wherein the motion vector of the encoding target block is determined with emphasis on the pixel difference value of the encoding target block.
前記動画像データの画面の符号化対象のブロックの画像を符号化する場合、前記符号化対象のブロックの画面の過去または未来の画面の符号化後の符号化データを復号化した参照画像から生成された予測画像と、前記符号化対象のブロックの画像との差分を符号化する符号化工程と、
前記符号化工程における符号化の圧縮率を設定する圧縮率設定工程と、
前記予測画像を生成するための動きベクトルを決定する動きベクトル決定工程とを有し、前記動きベクトル決定工程において、前記動画像データの輝度信号と色差信号のそれぞれについて、複数の動きベクトル候補に対応する前記参照画像内のブロックと前記符号化対象のブロックとの画素差分値を算出し、
前記算出された前記輝度信号の画素差分値と、前記色差信号の画素差分値とに基づいて前記符号化対象のブロックに対する動きベクトルを決定し、
前記動きベクトル決定工程において、前記圧縮率設定工程において設定する符号化の圧縮率が大きいときは、前記符号化の圧縮率が小さいときよりも前記色差信号の画素差分値が小さくなる動きベクトル候補を前記符号化対象のブロックに対する動きベクトルとして決定することを特徴とする動画像符号化方法。 A moving image encoding method for encoding moving image data,
When encoding an image of a block to be encoded on the screen of the moving image data, generated from a reference image obtained by decoding the encoded data of the past or future screen of the screen of the block to be encoded An encoding step for encoding a difference between the predicted image and the image of the encoding target block;
A compression rate setting step for setting a compression rate of encoding in the encoding step;
A motion vector determination step for determining a motion vector for generating the predicted image, and the motion vector determination step corresponds to a plurality of motion vector candidates for each of the luminance signal and the color difference signal of the moving image data. Calculating a pixel difference value between the block in the reference image and the block to be encoded;
Determining a motion vector for the block to be encoded based on the calculated pixel difference value of the luminance signal and the pixel difference value of the color difference signal;
In the motion vector determination step, when the compression rate of the encoding set in the compression rate setting step is large, a motion vector candidate whose pixel difference value of the color difference signal is smaller than when the compression rate of the encoding is small. A moving picture coding method, wherein the motion vector is determined as a motion vector for the block to be coded.
前記動画像データの画面の符号化対象のブロックの画像を符号化する場合、前記符号化対象のブロックの画面の過去または未来の画面の符号化後の符号化データを復号化した参照画像から生成された予測画像と、前記符号化対象のブロックの画像との差分を符号化する符号化工程と、
前記符号化工程における符号化の圧縮率を設定する圧縮率設定工程と、
前記予測画像を生成するための動きベクトルを決定する動きベクトル決定工程とを有し、
前記動きベクトル決定工程において、前記動画像データの輝度信号と色差信号のそれぞれについて、複数の動きベクトル候補に対応する前記参照画像内のブロックと前記符号化対象のブロックとの画素差分値を算出し、
前記算出された前記輝度信号の画素差分値と、前記色差信号の画素差分値とに基づいて前記符号化対象のブロックに対する動きベクトルを決定し、
前記動きベクトル決定工程において、前記圧縮率設定工程において設定する符号化の圧縮率が大きいときは、前記符号化の圧縮率が小さいときよりも動きベクトル自体の符号量が小さくなる動きベクトル候補を前記符号化対象のブロックに対する動きベクトルとして決定することを特徴とする動画像符号化方法。 A moving image encoding method for encoding moving image data,
When encoding an image of a block to be encoded on the screen of the moving image data, generated from a reference image obtained by decoding the encoded data of the past or future screen of the screen of the block to be encoded An encoding step for encoding a difference between the predicted image and the image of the encoding target block;
A compression rate setting step for setting a compression rate of encoding in the encoding step;
A motion vector determining step for determining a motion vector for generating the predicted image,
In the motion vector determination step, a pixel difference value between a block in the reference image corresponding to a plurality of motion vector candidates and a block to be encoded is calculated for each of a luminance signal and a color difference signal of the moving image data. ,
Determining a motion vector for the block to be encoded based on the calculated pixel difference value of the luminance signal and the pixel difference value of the color difference signal;
In the motion vector determination step, when the compression rate of the encoding set in the compression rate setting step is large, the motion vector candidate having a smaller code amount of the motion vector itself than when the compression rate of the encoding is small A moving picture coding method characterized by determining a motion vector for a block to be coded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008274878A JP5349904B2 (en) | 2008-10-24 | 2008-10-24 | Moving picture coding apparatus and moving picture coding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008274878A JP5349904B2 (en) | 2008-10-24 | 2008-10-24 | Moving picture coding apparatus and moving picture coding method |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2010103864A JP2010103864A (en) | 2010-05-06 |
JP2010103864A5 JP2010103864A5 (en) | 2011-12-08 |
JP5349904B2 true JP5349904B2 (en) | 2013-11-20 |
Family
ID=42294069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008274878A Expired - Fee Related JP5349904B2 (en) | 2008-10-24 | 2008-10-24 | Moving picture coding apparatus and moving picture coding method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5349904B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3143494B2 (en) * | 1991-06-25 | 2001-03-07 | キヤノン株式会社 | Motion vector apparatus and method |
JP3480067B2 (en) * | 1994-09-30 | 2003-12-15 | ソニー株式会社 | Image coding apparatus and method |
JPH11243551A (en) * | 1997-12-25 | 1999-09-07 | Mitsubishi Electric Corp | Motion compensation device and dynamic image corder and its method |
JP4713972B2 (en) * | 2005-07-27 | 2011-06-29 | 株式会社東芝 | Encoder |
-
2008
- 2008-10-24 JP JP2008274878A patent/JP5349904B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2010103864A (en) | 2010-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8718138B2 (en) | Image encoding apparatus and image encoding method that determine an encoding method, to be used for a block to be encoded, on the basis of an intra-frame-prediction evaluation value calculated using prediction errors between selected reference pixels and an input image | |
US8325799B2 (en) | Moving picture encoding method, device using the same, and computer program | |
JP4863333B2 (en) | Method and apparatus for creating high resolution still images | |
US8675979B2 (en) | Transcoder, method of transcoding, and digital recorder | |
JP5173409B2 (en) | Encoding device and moving image recording system provided with encoding device | |
JP5230483B2 (en) | Imaging apparatus and control method thereof | |
JP2008283560A (en) | Information processing apparatus and method thereof | |
JP2012034213A (en) | Image processing device, image processing system and image processing method | |
JP4494803B2 (en) | Improved noise prediction method and apparatus based on motion compensation, and moving picture encoding method and apparatus using the same | |
JP4898415B2 (en) | Moving picture coding apparatus and moving picture coding method | |
JP5294688B2 (en) | Video compression encoding device | |
US20090060039A1 (en) | Method and apparatus for compression-encoding moving image | |
JP2010239423A (en) | Photographing resolution predictive video encoding and decoding apparatus | |
JP4357560B2 (en) | Moving picture coding apparatus, moving picture coding method, and moving picture coding program | |
JP5349904B2 (en) | Moving picture coding apparatus and moving picture coding method | |
JP4971817B2 (en) | Image encoding device | |
JP2006340001A (en) | Device and method for image encoding | |
JP5247210B2 (en) | Moving picture coding apparatus and moving picture coding method | |
JP4605183B2 (en) | Image signal processing apparatus and method | |
JP5355234B2 (en) | Encoding apparatus and encoding method | |
JP5094750B2 (en) | Moving picture coding apparatus and moving picture coding method | |
JP2009049513A (en) | Moving picture encoding device and moving picture encoding method | |
JP4765961B2 (en) | Digital video recording device | |
JP4590337B2 (en) | Moving picture coding apparatus and moving picture coding method | |
JP4850683B2 (en) | Video signal processing apparatus, video signal processing method, program, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111020 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20111020 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120718 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120724 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120920 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20130326 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130625 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20130703 |
|
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: 20130723 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130821 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5349904 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |