JPH08205192A - Image encoding device - Google Patents

Image encoding device

Info

Publication number
JPH08205192A
JPH08205192A JP788395A JP788395A JPH08205192A JP H08205192 A JPH08205192 A JP H08205192A JP 788395 A JP788395 A JP 788395A JP 788395 A JP788395 A JP 788395A JP H08205192 A JPH08205192 A JP H08205192A
Authority
JP
Japan
Prior art keywords
image data
data
image
frame
processor
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
JP788395A
Other languages
Japanese (ja)
Other versions
JP2776284B2 (en
Inventor
Masayuki Imanishi
政之 今西
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP788395A priority Critical patent/JP2776284B2/en
Publication of JPH08205192A publication Critical patent/JPH08205192A/en
Application granted granted Critical
Publication of JP2776284B2 publication Critical patent/JP2776284B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Color Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE: To provide the image encoding device of MPEG1 standards which can output a P and an I picture and has its necessary memory capacity reduced. CONSTITUTION: This device is equipped with a reference image buffer 12 which temporarily holds image data PP consisting of only vertical pixels as many as those in a vertical vector search range of image data DI of one frame and a bus controller 11 which overwrites the image data PP in the area of the image data DP stored in an image frame memory 10 after the image data DP are referred to.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は画像符号化装置に関し、
特にMPEG規格に準拠してビデオデータの符号化を行
う画像符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus,
In particular, the present invention relates to an image encoding device that encodes video data in conformity with the MPEG standard.

【0002】[0002]

【従来の技術】テレビジョン等のビデオ信号のフレーム
間予測符号化方式として、ISO/IEC,JTC1/
SC2/WG8で標準化検討されたMPEG(Movi
ngPicture Expert Group)にお
ける規格案が知られている。この1つであり勧告ISO
/IEC−11172−2(1993年)(文献1)に
規定されたMPEG1規格はデコーダについて規定して
いる。MPEG1ビデオエンコーダはMPEG1ビデオ
コーダでデコードできる符号化ビデオデータのビット列
を生成する装置を示す。
2. Description of the Related Art ISO / IEC, JTC1 / are used as interframe predictive coding systems for video signals of televisions and the like.
MPEG (Movi) standardized by SC2 / WG8
ngPicture Expert Group) is known. This one is recommended ISO
The MPEG1 standard defined in / IEC-11172-2 (1993) (reference 1) defines a decoder. MPEG1 video encoder refers to a device that generates a bit string of encoded video data that can be decoded by an MPEG1 video coder.

【0003】MPEG1規格には、3つの画像タイプが
規定されそれぞれフレーム内圧縮画像(Iピクチャ)、
時系列の過去参照画像(Pピクチャ)、時系列の過去・
未来参照画像(Bピクチャ)と呼ばれる。MPEG1ビ
デオデコーダは勿論これらI,PおよびBピクチャの全
てのデコード能力が要求されるが、MPEG1ビデオエ
ンコーダは出力ビット列のビットレートが規定を満足し
ていれば、BあるいはPピクチャ等を含まないIピクチ
ャのみのビット列を生成してもよい。
In the MPEG1 standard, three image types are defined, and an intra-frame compressed image (I picture),
Time-series past reference images (P-pictures), time-series past
It is called a future reference image (B picture). Of course, the MPEG1 video decoder is required to have all the decoding capabilities of these I, P, and B pictures, but the MPEG1 video encoder does not include B or P pictures if the bit rate of the output bit string satisfies the regulation. You may generate the bit string only for a picture.

【0004】文献1に記載の推奨MPEG1ビデオエン
コーダである基準画像符号化装置は、上記I,P,Bの
全ピクチュア対応のエンコード能力を有する。
The reference image coding apparatus, which is the recommended MPEG1 video encoder described in Document 1, has an encoding capability compatible with all I, P, and B pictures.

【0005】基準画像符号化装置をブロックで示す図4
を参照すると、この図に示す基準画像符号化装置は、画
像信号DIを入力し符号化対象データDEを出力するフ
レームリオーダ回路31と、符号化対象データDEの動
きベクトルを検出し信号D,ベクトルV,モードMの各
々を出力する動きベクトル検出回路32と信号Dの供給
に応答して差分データDDを出力する加算器33とから
成る動き補償(MC)プロセッサ30と、差分データD
Dを離散コサイン変換し信号DTを発生する離散コサイ
ン変換回路(DCT)34と、信号DTを量子化してデ
ータDQを生成する量子化回路35と、データDQを可
変長符号化圧縮し符号化データCDを発生する可変長符
号化回路(VLC)36と、データDQを逆量子化し信
号ITを発生する逆量子化回路37と、信号ITを逆離
散コサイン変換し信号IDを発生する逆離散コサイン変
換回路(IDCT)38と、信号IDと過去画像DPと
を加算し信号PIを発生する加算回路40と、信号P
I,ベクトルV,モードMを入力し参照用の過去画像D
Pを出力する過去画像バッファ39と、符号化データC
D,ベクトルV,モードMを選択的に出力してデータA
Dを発生するマルチプレクサ41と、データADの供給
に応答して出力データDO,データBOを発生するバッ
ファ42と、データBOの供給に応答してデータQCを
発生するレギュレータ43とを備える。
FIG. 4 is a block diagram showing the reference image coding apparatus.
Referring to FIG. 1, the reference image coding apparatus shown in FIG. 1 includes a frame reorder circuit 31 for inputting an image signal DI and outputting coding target data DE, and a motion vector of the coding target data DE for detecting a signal D, a vector. A motion compensation (MC) processor 30 including a motion vector detection circuit 32 which outputs V and mode M, and an adder 33 which outputs difference data DD in response to the supply of the signal D, and the difference data D
Discrete cosine transform circuit (DCT) 34 that performs discrete cosine transform of D to generate signal DT, quantizer circuit 35 that quantizes signal DT to generate data DQ, and data DQ is variable-length coded and compressed to code data. A variable length coding circuit (VLC) 36 for generating a CD, an inverse quantization circuit 37 for dequantizing the data DQ and generating a signal IT, and an inverse discrete cosine transform for inverse discrete cosine transforming the signal IT to generate a signal ID. A circuit (IDCT) 38, an adder circuit 40 for adding the signal ID and the past image DP to generate a signal PI, and a signal P.
I, vector V, mode M is input and past image D for reference
Past image buffer 39 that outputs P, and encoded data C
D, vector V, mode M are selectively output to output data A
A multiplexer 41 for generating D, a buffer 42 for generating output data DO and data BO in response to the supply of data AD, and a regulator 43 for generating data QC in response to the supply of data BO are provided.

【0006】図4を参照して基準画像符号化装置の動作
について説明すると、輝度/カラー(Y/C)デコーダ
(図示省略)によって輝度成分と色成分とに分離された
画像データDIはフレームリオーダ回路31を経由して
MCプロセッサ30に供給され、MCプロセッサ30
は、過去画像バッファ39から供給される過去画像DP
を参照しながら動きベクトルVを検索し求められた動き
ベクトルVに対して差分データDDを出力する。
The operation of the reference image coding apparatus will be described with reference to FIG. 4. Image data DI separated into a luminance component and a color component by a luminance / color (Y / C) decoder (not shown) is frame reordered. It is supplied to the MC processor 30 via the circuit 31, and the MC processor 30
Is the past image DP supplied from the past image buffer 39.
, The difference data DD is output with respect to the obtained motion vector V.

【0007】動きベクトルVの検索の概念を示す図5を
併せて参照すると、MPEG1画像では、16×16ピ
クセルの輝度成分と、8×8ピクセルの色成分とから成
るマクロブロック(MB)を基本単位として取り扱う。
このMBの内輝度成分に対して、MCプロセッサ30は
次のようにベクトル検索を行う。検索対象の現在のMB
に対して、参照画像の同一座標から±15あるいは±7
の領域との差分二乗和を取り、もっとも差分二乗和の少
ないベクトルを動きベクトルVとする。
Referring also to FIG. 5 showing the concept of retrieval of the motion vector V, in the MPEG1 image, a macro block (MB) consisting of a luminance component of 16 × 16 pixels and a color component of 8 × 8 pixels is basically used. Handle as a unit.
The MC processor 30 performs a vector search on the internal luminance component of this MB as follows. Current MB to search
, ± 15 or ± 7 from the same coordinates of the reference image
The sum of the squared differences is calculated, and the vector having the smallest sum of the squared differences is set as the motion vector V.

【0008】MCプロセッサ30から出力された差分デ
ータDDの供給を受けて、DCT34はこの差分データ
DDのDCT演算を行い、周波数成分に分解された信号
DTを生成する。量子化回路35は信号DTの各周波数
成分ごとに量子化を行い量子化データDQを生成し、V
LC36および逆量子化回路37にそれぞれ供給する。
VLC36は、供給を受けた量子化データDQを可変長
符号圧縮して生成した符号化データCDをマルチプレク
サ41およびバッファ回路42を経由してデータDOと
して出力する。
Upon receiving the supply of the differential data DD output from the MC processor 30, the DCT 34 performs a DCT operation on the differential data DD to generate a signal DT decomposed into frequency components. The quantization circuit 35 quantizes each frequency component of the signal DT to generate quantized data DQ,
It is supplied to the LC 36 and the inverse quantization circuit 37, respectively.
The VLC 36 outputs the encoded data CD generated by performing variable-length code compression on the supplied quantized data DQ via the multiplexer 41 and the buffer circuit 42 as data DO.

【0009】一方、逆量子化回路37は供給を受けた量
子化データDQを逆量子化してデータITを生成してI
DCT38に供給し、IDCT38はデータITを逆D
CT演算して信号IDを生成し加算回路41に供給す
る。加算回路41は信号IDと過去画像バッファ39か
らの過去画像DPとを加算し過去画像DP更新用の画像
データPIを生成して過去画像バッファ39に書戻す。
すなわち、これら逆量子化回路37,IDCT38,加
算回路41は過去画像バッファに対するフィードバック
ループを構成する。
On the other hand, the dequantization circuit 37 dequantizes the supplied quantized data DQ to generate data IT and I
The data is supplied to the DCT 38, and the IDCT 38 reverses the data IT.
CT calculation is performed to generate a signal ID, which is supplied to the adder circuit 41. The adder circuit 41 adds the signal ID and the past image DP from the past image buffer 39 to generate image data PI for updating the past image DP and writes it back to the past image buffer 39.
That is, the dequantization circuit 37, the IDCT 38, and the addition circuit 41 form a feedback loop for the past image buffer.

【0010】上述の基準画像符号化装置においては、特
にBピクチャの生成に演算操作が発生し、リアルタイム
処理の妨げとなるとともに、ハードゥエアおよびソフト
ウェアの規模が増大し価格増加要因となる。上述したよ
うに、このBピクチャを省略することにより装置の簡略
化が可能である。
In the above-mentioned reference image coding apparatus, a calculation operation particularly occurs in the generation of B pictures, which hinders real-time processing, and increases the scale of hardware and software, which causes a price increase. As described above, by omitting the B picture, the device can be simplified.

【0011】Iピクチャのみを生成することにより簡略
化を図った従来の第1の画像符号化装置をブロックで示
す図6を参照すると、この図に示す従来の第1の画像符
号化装置は、入力画像データDIをDCT演算し量子化
し可変長符号化して出力信号DOを発生する符号化プロ
セッサ1と、バスコントローラ2と、ダブルバッファリ
ング用の画像データメモリ3,4とを備える。
Referring to FIG. 6, which shows a block diagram of a conventional first image coding apparatus which is simplified by generating only I pictures, the conventional first image coding apparatus shown in FIG. The input image data DI is DCT operated, quantized and variable-length coded to generate an output signal DO, a bus controller 2, and image data memories 3 and 4 for double buffering.

【0012】符号化プロセッサ1は、基準画像符号化装
置のDCT34と、量子化回路35と、VLC36との
機能を有する。
The encoding processor 1 has the functions of the DCT 34 of the reference image encoding device, the quantization circuit 35, and the VLC 36.

【0013】図6を参照して動作について説明すると、
入力画像データDIはバスコントローラ2を経由して画
像データメモリ3、又は4に転送される。画像データメ
モリ3,4のうち、現在画像データDIの転送中でない
方、すなわち、画像データDIが画像データメモリ3に
転送中であれば画像データメモリ4が、逆ならば画像デ
ータメモリ3が符号化プロセッサ1にバスコントローラ
2を介して接続される。これによって、画像データDI
の画像データメモリへの転送途中でも、MPEG1に準
拠した画像圧縮操作を行うことが可能となる。また、符
号化プロセッサ1の出力DOは記録媒体に書込まれる。
The operation will be described with reference to FIG.
The input image data DI is transferred to the image data memory 3 or 4 via the bus controller 2. One of the image data memories 3 and 4 which is not currently transferring the image data DI, that is, the image data memory 4 is coded when the image data DI is being transferred to the image data memory 3, and the image data memory 3 is coded when the image data DI is being transferred. Connected to the processor 1 via the bus controller 2. As a result, the image data DI
Even during the transfer to the image data memory, the image compression operation conforming to MPEG1 can be performed. The output DO of the encoding processor 1 is written in the recording medium.

【0014】ここで、352×240ピクセルの入力画
像データPIを符号化する場合、輝度信号情報量4に対
して色信号情報量2が対応する4:2:0フォーマット
にしたがい、輝度レベルを8ビットで量子化するとバッ
ファ用の画像データメモリの所要メモリ領域は127k
バイトとなる。したがって、この第1の画像符号化装置
の所要メモリ容量は254kバイトとなる。
Here, when encoding the input image data PI of 352 × 240 pixels, the luminance level is 8 according to the 4: 2: 0 format in which the color signal information amount 2 corresponds to the luminance signal information amount 4. When quantized with bits, the required memory area of the buffer image data memory is 127k
It becomes a byte. Therefore, the required memory capacity of this first image coding apparatus is 254 kbytes.

【0015】また、この従来の第1の画像符号化装置は
Iピクチャのみの生成しか行わないので、MPEG1規
格の規定ビットレートでは、圧縮率が低くなるため画質
が低下する。
Further, since the first conventional image coding apparatus only generates I pictures, the compression rate is low at the prescribed bit rate of the MPEG1 standard, and the image quality is degraded.

【0016】この改善のため、Iピクチュアに加えてP
ピクチャを生成しBピクチュアのみを省略することによ
り簡略化を図った従来の第2の画像符号化装置をブロッ
クで示す図7を参照すると、この図に示す従来の第2の
画像符号化装置の第2の符号化装置との相違点は、図6
の構成要素2〜4に加えて、符号化プロセッサ1の機能
に従来の基準画像符号化装置の逆量子化回路37,ID
CT38の機能をさらに含む符号化プロセッサ1Aと、
従来の基準画像符号化装置のMCプロセッサ30とほぼ
同様な機能の動き補償(MC)プロセッサ5と、過去画
像バッファ39に相当し前回の画像データ(過去画像デ
ータ)を格納するRAMから成る参照フイールドメモリ
6とを備えることである。
To improve this, in addition to the I picture, P
Referring to FIG. 7, which shows a block diagram of a conventional second image coding device simplified by generating a picture and omitting only the B picture, FIG. 7 shows a block diagram of a conventional second image coding device shown in FIG. The difference from the second encoding device is that in FIG.
In addition to the constituent elements 2 to 4, the function of the encoding processor 1 includes the inverse quantization circuit 37, ID of the conventional reference image encoding device.
An encoding processor 1A further including the function of CT38;
A reference field including a motion compensation (MC) processor 5 having substantially the same function as the MC processor 30 of the conventional standard image encoding device, and a RAM corresponding to the past image buffer 39 and storing the previous image data (past image data). And a memory 6.

【0017】図7を参照して従来の第2の画像符号化装
置の動作について説明すると、第2の画像符号化装置と
同様に入力画像データDIはバスコントローラ2を経由
して画像データメモリ3、又は4に転送されるととも
に、MCプロセッサ5にも供給される。MCプロセッサ
5は参照フイールドメモリ6からの過去画像データDP
を参照し入力画像データDI中の動きベクトルを算出し
たのち、その動きベクトルをもとに過去画像データDP
との差分データDDを計算する。MCプロセッサ5から
出力された差分データDDは符号化プロセッサ1に供給
され、符号化プロセッサ1Aは、差分データDDのDC
T演算,量子化,可変長符号化を行い、出力データDO
として出力する。また、この量子化データの逆量子化,
IDCT演算を行い、得られたデータPIを参照フイー
ルドメモリ6に書戻す。
The operation of the second conventional image coding apparatus will be described with reference to FIG. 7. The input image data DI passes through the bus controller 2 and the image data memory 3 similarly to the second image coding apparatus. , Or 4, and is also supplied to the MC processor 5. The MC processor 5 uses the past image data DP from the reference field memory 6.
After calculating the motion vector in the input image data DI, the past image data DP is calculated based on the motion vector.
And the difference data DD is calculated. The difference data DD output from the MC processor 5 is supplied to the encoding processor 1, and the encoding processor 1A determines the DC of the difference data DD.
Output data DO after T calculation, quantization, and variable length coding
Output as Also, inverse quantization of this quantized data,
The IDCT operation is performed, and the obtained data PI is written back to the reference field memory 6.

【0018】従来の第1の画像符号化装置と同様の符号
化条件の場合、バッファ用の画像データメモリの所要メ
モリ容量は381kバイトとなる。また、参照フレーム
メモリを構成するRAMの所要メモリ容量は2画面分、
すなわち508kバイトとなる。
Under the same encoding conditions as the conventional first image encoding device, the required memory capacity of the image data memory for the buffer is 381 kbytes. Also, the required memory capacity of the RAM that constitutes the reference frame memory is 2 screens,
That is, it becomes 508 kbytes.

【0019】[0019]

【発明が解決しようとする課題】上述した従来の第1の
画像符号化装置は、画像データバッフアの所要メモリ容
量が少ないがIピクチュアのみしか生成できず、MPE
G1規定のビットレートでは圧縮率が低いため画質が低
下するという欠点があった。
The first conventional image coding apparatus described above has a small memory capacity required for the image data buffer, but can generate only the I picture, and thus the MPE.
The G1 standard bit rate has a drawback that the image quality is deteriorated because the compression rate is low.

【0020】これを改善した従来の第2の画像符号化装
置は、画像データバッフアの所要メモリ容量の増大とと
もに、参照フレームメモリ用の大容量のRAMを必要と
し、また、参照の終わった領域は次のフレームまで使用
されないためこのRAMの使用効率が非常に悪いという
欠点があった。
The second conventional image coding apparatus, which has improved this, requires a large capacity RAM for the reference frame memory as the required memory capacity of the image data buffer increases, and the area after the reference is This RAM has a drawback that the usage efficiency of this RAM is very poor because it is not used until the frame.

【0021】[0021]

【課題を解決するための手段】本発明の画像符号化装置
は、分離した輝度信号および色信号から成る第1の画像
データを予め定めた垂直および水平方向の複数の画素か
ら成る1フレーム分ずつ記憶し読出時に前記画像データ
の予め定めた画素数分のブロックデータであるマクロブ
ロックデータを出力する第1の画像データ記憶手段と、
前記第1の画像データとこの第1の画像データの前のフ
レームの過去参照画像データとを予め定めた垂直および
水平方向の探索範囲内で前記マクロブロックデータ毎に
比較して動きベクトルを探索し対応の差分データを出力
する動き補償プロセッサと、前記差分データの離散コサ
イン変換および量子化を行い量子化データを発生しこの
量子化データの可変長符号化とを行ない所定のデータフ
オーマットにしたがったフレーム内圧縮画像データを出
力データとして発生するととともに前記量子化データの
逆量子化および逆離散コサイン変換を行ない第2の画像
データを発生する符号化プロセッサと、前記第2の画像
データを記憶し読出時に前記過去参照画像データとして
出力する第2の画像データ記憶手段とを備える画像符号
化装置において、1フレーム分の前記第1の画像データ
のうちの前記垂直方向の探索範囲と同一の垂直方向画素
数のみから成る部分画像データを前記第2の画像データ
として生成しこの第2の画像データを前記過去参照画像
データ中の参照終了後の領域に重ね書するメモリ制御手
段を備えて構成されている。
According to the image coding apparatus of the present invention, the first image data composed of the separated luminance signal and chrominance signal is divided into a predetermined number of pixels in the vertical and horizontal directions for each frame. First image data storage means for outputting macroblock data, which is block data for a predetermined number of pixels of the image data when storing and reading.
The first image data and the past reference image data of the previous frame of the first image data are compared for each macroblock data within a predetermined vertical and horizontal search range to search for a motion vector. A motion compensation processor that outputs corresponding difference data, and a frame according to a predetermined data format by performing discrete cosine transform and quantization of the difference data to generate quantized data and performing variable length coding of the quantized data. An encoding processor that generates inner compressed image data as output data, performs dequantization and inverse discrete cosine transform of the quantized data to generate second image data, and stores the second image data at the time of reading. In an image encoding device including a second image data storage unit that outputs the past reference image data, Partial image data consisting of only the same number of vertical pixels as the vertical search range of the first image data for a frame is generated as the second image data, and the second image data is stored in the past. It is configured to include a memory control unit that overwrites an area in the reference image data after the reference is completed.

【0022】[0022]

【実施例】次に、本発明の第1の実施例を図7と共通の
構成要素には共通の参照文字/数字を付して同様にブロ
ックで示す図1を参照すると、この図に示す本実施例の
画像符号化装置は、従来と共通の符号化プロセッサ1
と、MCプロセッサ7とに加えて、入力画像データDI
を逐次蓄積し入力順序でデータDFを出力するFIFO
7と、データDFのスキャン変換のため入力画像バッフ
ァ9への入出力を制御するダイレクトメモリアクセスコ
ントローラ(DMAC)8と、データDFを一時格納す
る入力画像バッファ9と、前フレームのデータである過
去画像データを格納する画像フレームメモリ10と、バ
スコントローラ11と、画像フレームメモリへ転送する
過去画像部分データを一時保持する参照画像バッファ1
2とを備える。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A first embodiment of the present invention will now be described with reference to FIG. 1, which is also shown in block form with common reference characters / numbers for components common to FIG. The image coding apparatus according to the present embodiment is the same as the conventional coding processor 1.
In addition to the MC processor 7 and the input image data DI
FIFO that sequentially stores data and outputs data DF in input order
7, a direct memory access controller (DMAC) 8 for controlling the input / output to / from the input image buffer 9 for scan conversion of the data DF, the input image buffer 9 for temporarily storing the data DF, and the past data of the previous frame. An image frame memory 10 for storing image data, a bus controller 11, and a reference image buffer 1 for temporarily holding past image partial data to be transferred to the image frame memory.
2 and.

【0023】次に、図1を参照して本実施例の動作につ
いて説明すると、まず、従来と同様に、輝度/カラー
(Y/C)デコーダ(図示省略)によって輝度成分と色
成分とに分離された画像データDIはFIFO7に一旦
蓄積され、DMAC8はFIFO7の出力データDFを
入力画像バッファ9に転送する。通常、FIFO7に蓄
積される画像データDIは、画面左上を原点として走査
線の移動とともにデコードされるため、水平方向スキャ
ン毎のデータ(ラスタスキャンデータ)となる。一方M
PEG1方式のエンコーダでは、上述のように16×1
6ピクセルのマクロブロック(MB)単位で処理を行う
ため、ラスタスキャンデータをブロックスキャンデータ
に変更する必要がある。そのためDMAC8を用いてラ
ンダムアクセス可能な画像バッファ9に転送する。従来
と同様352×240ピクセルの画像データを輝度,色
信号ともに8ビットで量子化する場合、この入力画像バ
ッファ9の所要メモリ容量は8448バイトとなる。
Next, the operation of this embodiment will be described with reference to FIG. 1. First, similarly to the conventional case, a luminance / color (Y / C) decoder (not shown) separates the luminance component and the color component. The processed image data DI is temporarily stored in the FIFO 7, and the DMAC 8 transfers the output data DF of the FIFO 7 to the input image buffer 9. Normally, the image data DI stored in the FIFO 7 is decoded with the movement of the scanning line with the upper left corner of the screen as the origin, and thus becomes the data for each horizontal scan (raster scan data). Meanwhile, M
In the PEG1 encoder, as described above, 16 × 1
Since processing is performed in units of 6-pixel macro blocks (MB), it is necessary to change the raster scan data into block scan data. Therefore, it is transferred to the randomly accessible image buffer 9 using the DMAC 8. When 352 × 240 pixel image data is quantized with 8 bits for both luminance and color signals as in the conventional case, the required memory capacity of the input image buffer 9 is 8448 bytes.

【0024】MCプロセッサ5は入力画像バッファ9か
ら読出したMBデータMBと画像フレームメモリから読
出した過去画像データDPとを用いて動き補償を行い、
その結果生成される差分データDDを符号化プロセッサ
1Aに供給する。符号化プロセッサ1Aは、従来の第2
の画像符号化装置と同様に、差分データDDをDCT演
算し、量子化し、可変長符号化処理して出力信号DOを
生成するとともに、逆量子化し、IDCT演算を行なっ
て過去画像部分データPPを生成する。過去画像部分デ
ータPPは、以下に説明するようにバスコントローラ1
1の制御により参照画像バッファ12に保持され、画像
フレームメモリ10に転送される。
The MC processor 5 performs motion compensation using the MB data MB read from the input image buffer 9 and the past image data DP read from the image frame memory,
The difference data DD generated as a result is supplied to the encoding processor 1A. The encoding processor 1A is a conventional second
Similarly to the image encoding device of FIG. 1, the difference data DD is DCT-operated, quantized, and variable-length encoded to generate the output signal DO, and inversely quantized, and IDCT operation is performed to generate the past image partial data PP. To generate. The past image partial data PP is stored in the bus controller 1 as described below.
It is held in the reference image buffer 12 under the control of No. 1 and transferred to the image frame memory 10.

【0025】本実施例の参照画像バッフア12のバッフ
ア動作の基本概念を示す図2を併せて参照すると、図2
(A)に示す符号化対象の352×240ピクセルの画
像51の中のMB52の座標位置を画面左上を原点
(0,0)として、(32,48)であるとする。動き
ベクトル探索を行うときには、図2(A)に示す参照用
の過去画像61の同一座標のMB62の位置から±15
の範囲、すなわち(17,33)及び(47,79)を
対角線とする正方形がベクトルサーチ範囲63となる。
したがって、このベクトルサーチ範囲63を含む参照用
の領域65をサーチする場合には、過去画像61中のY
軸の0〜16の範囲の領域64はサーチに無関係であ
り、また、MBは左上から処理されていくため、この後
も参照されることはない。それ故、参照画像バッファ1
2の所要メモリ容量は領域65と同一容量でよく、参照
終了後に一時保持しておいた過去画像部分データPPを
画像フレームメモリ10に書戻す。
Referring to FIG. 2 showing the basic concept of the buffer operation of the reference image buffer 12 of the present embodiment, FIG.
It is assumed that the coordinate position of the MB 52 in the 352 × 240 pixel image 51 to be encoded shown in (A) is (32, 48) with the upper left corner of the screen as the origin (0, 0). When the motion vector search is performed, ± 15 from the position of the MB 62 at the same coordinates in the reference past image 61 shown in FIG.
The vector search range 63 is a square having the diagonal lines of (17, 33) and (47, 79).
Therefore, when searching the reference area 65 including the vector search range 63, Y in the past image 61 is searched.
The area 64 in the range of 0 to 16 on the axis is irrelevant to the search, and since the MB is processed from the upper left, it is not referred to thereafter. Therefore, the reference image buffer 1
The required memory capacity of 2 may be the same as that of the area 65, and the past image partial data PP temporarily stored after the end of the reference is written back to the image frame memory 10.

【0026】参照画像バッファ12の所要メモリサイズ
はベクトルサーチ範囲がMB座標±15の場合は253
44バイト、MB座標±7の場合には16896バイト
となる。
The required memory size of the reference image buffer 12 is 253 when the vector search range is MB coordinates ± 15.
44 bytes, and 16896 bytes for MB coordinates ± 7.

【0027】以上の条件から、FIFO7,入力画像バ
ッファ9,および画像フレームメモリ10の各々の所要
メモリ容量はそれぞれ127Kバイト,8448バイ
ト,および127kバイトであるので、参照画像バッフ
ァ12の所要メモリ容量を求めると、ベクトルサーチ範
囲がMB座標±15の場合は約288kバイト、MB座
標±7の場合には280kバイトとなる。
From the above conditions, the required memory capacities of the FIFO 7, the input image buffer 9, and the image frame memory 10 are 127 Kbytes, 8448 bytes, and 127 Kbytes, respectively. When obtained, the vector search range is about 288 kbytes when the MB coordinate is ± 15, and 280 kbytes when the MB coordinate is ± 7.

【0028】これは、従来の第2の符号化装置の参照フ
レームメモリ6の所要メモリ容量508Kバイトに対し
約56%に相当する。
This corresponds to about 56% of the required memory capacity of 508 Kbytes of the reference frame memory 6 of the conventional second encoding device.

【0029】次に、本発明の第2の実施例を図1と共通
の構成要素には共通の参照文字/数字を付して同様にブ
ロックで示す図3を参照すると、この図に示す本実施例
の画像符号化装置の第1の実施例との相違点は、MCプ
ロセッサ5と符号化プロセッサ1と入力画像バッファ9
と参照画像バッファ12との代りに、メモリとインスト
ラクションが分離され、内部データバスを有する公知の
ハーバード・アーキテクチャと呼ばれるアーキテクチャ
を持つ一般的かつプログラマブルな高速プロセッサであ
るDSP19を備えることである。
A second embodiment of the invention will now be described with reference to FIG. 3, which is also a block, with common reference characters / numbers for components common to FIG. The difference from the first embodiment of the image coding apparatus of the embodiment is that the MC processor 5, the coding processor 1, and the input image buffer 9 are different.
The reference image buffer 12 is replaced with a DSP 19 which is a general programmable high-speed processor having a well-known architecture called Harvard architecture having an internal data bus with separated memory and instructions.

【0030】DSP19は、内部データバス28,29
にそれぞれ接続され入力画像バッファ9と参照画像バッ
ファ12とにそれぞれ対応するローカルメモリ20,2
3と、レジスタ21と、ALU22と、インストラクシ
ョンメモリ24と、制御ユニット25と、DMAC26
と、セレクタ17,27と、内部データバス28,29
とを備える。
The DSP 19 has internal data buses 28 and 29.
Local memories 20, 2 respectively connected to the input image buffer 9 and the reference image buffer 12, respectively.
3, a register 21, an ALU 22, an instruction memory 24, a control unit 25, and a DMAC 26.
, Selectors 17 and 27, and internal data buses 28 and 29
With.

【0031】図3を参照して本実例の動作について説明
すると、まず、入力画像データはFIFO7に格納さ
れ、出力された画像データDFは、内部データバス28
を経由してローカルメモリ20に格納される。また、参
照用の過去画像DPは内部データバス29の外部に接続
された画像メモリ10から読込まれ、この画像データD
Pとレジスタ21とALU22はローカルメモリ20か
ら読出された画像データDF対応の画像データMBを参
照しながら、動き補償、DCT演算、IDCT演算、量
子化、逆量子化、および可変長符号化の各処理を行う。
The operation of this example will be described with reference to FIG. 3. First, the input image data is stored in the FIFO 7, and the output image data DF is stored in the internal data bus 28.
Stored in the local memory 20 via. Further, the past image DP for reference is read from the image memory 10 connected to the outside of the internal data bus 29, and the image data D
The P, the register 21, and the ALU 22 refer to the image data MB corresponding to the image data DF read from the local memory 20, and perform motion compensation, DCT calculation, IDCT calculation, quantization, dequantization, and variable length coding. Perform processing.

【0032】符号化出力データDOは内部データバス2
9の外部に接続された記録媒体に対し出力されるととも
に、ALU22のIDCT演算および逆量子化によって
ローカルデコードされたデータPPは内部データバス2
9に接続されたローカルメモリ23に一時保持される。
The encoded output data DO is the internal data bus 2
9 is output to a recording medium connected to the outside of the internal storage medium 9 and is locally decoded by the IDCT operation and inverse quantization of the ALU 22.
It is temporarily stored in the local memory 23 connected to the server 9.

【0033】一時保持されたデータは次のようにして、
参照画像メモリ10に書戻される。インストラクション
メモリ24からの命令にしたがい、所定のタイミングで
制御ユニット25からDMAC26へ起動信号Rを供給
する。この起動信号Rの供給に応答して、DMACはセ
レクタ27,30を用いて内部データバスを切替え、ロ
ーカルメモリ23の保持データPPを画像フレームメモ
リ10にDMA転送する。
The data temporarily stored is as follows.
It is written back to the reference image memory 10. According to the instruction from the instruction memory 24, the activation signal R is supplied from the control unit 25 to the DMAC 26 at a predetermined timing. In response to the supply of the activation signal R, the DMAC switches the internal data bus using the selectors 27 and 30, and DMA-transfers the data PP held in the local memory 23 to the image frame memory 10.

【0034】このような構成のDSPを使用することに
よって、第1の実施例と同一の効果を得ることが出きる
とともにMCプロセッサや符号化プロセッサ等の外部接
続デバイスを削減できる。
By using the DSP having such a configuration, it is possible to obtain the same effect as that of the first embodiment, and it is possible to reduce the number of external connection devices such as the MC processor and the encoding processor.

【0035】[0035]

【発明の効果】以上説明したように、本発明の画像符号
化装置は、1フレーム分の画像データのうちの垂直方向
のベクトル探索範囲と同一の垂直方向画素数のみから成
る部分画像データを生成しこの部分画像データを過去参
照画像データ中の参照終了後の領域に重ね書するメモリ
制御手段を備えることにより、所要メモリ容量を低減で
きるという効果がある。
As described above, the image coding apparatus of the present invention generates partial image data consisting of the same number of pixels in the vertical direction as the vector search range in the vertical direction in one frame of image data. By providing the memory control means for overwriting the partial image data in the area of the past reference image data after the end of the reference, the required memory capacity can be reduced.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の画像符号化装置の第1の実施例を示す
ブロック図である。
FIG. 1 is a block diagram showing a first embodiment of an image coding apparatus according to the present invention.

【図2】本実施例の画像符号化装置における画像データ
のバッフア動作の基本概念を示す概念図である。
FIG. 2 is a conceptual diagram showing a basic concept of buffer operation of image data in the image encoding apparatus of the present embodiment.

【図3】本発明の画像符号化装置の第2の実施例を示す
ブロック図である。
FIG. 3 is a block diagram showing a second embodiment of the image encoding device of the present invention.

【図4】MPEG1規格の推奨ビデオエンコーダである
基準画像符号化装置の一例を示すブロック図である。
FIG. 4 is a block diagram showing an example of a reference image encoding device which is a recommended video encoder of the MPEG1 standard.

【図5】動きベクトル検索動作の概念を示す概念図であ
る。
FIG. 5 is a conceptual diagram showing the concept of a motion vector search operation.

【図6】従来の第1の画像符号化装置を示すブロック図
である。
FIG. 6 is a block diagram showing a first conventional image coding apparatus.

【図7】従来の第2の画像符号化装置を示すブロック図
である。
FIG. 7 is a block diagram showing a second conventional image coding apparatus.

【符号の説明】[Explanation of symbols]

1,1A 符号化プロセッサ 2,11 バスコントローラ 3,4 画像データメモリ 5,30 MCプロセッサ 6 参照フレームメモリ 7 FIFO 8,26 DMAC 9 入力画像バッファ 10 画像フレームメモリ 12 参照画像バッファ 19 DSP 20,23 ローカルメモリ 21 レジスタ 22 ALU 24 インストラクションメモリ 25 制御ユニット 17,27 セレクタ 28,29 内部データバス 31 フレームリオーダ回路 32 動きベクトル検出回路 33,40 加算回路 34 DCT 35 量子化回路 36 VLC 37 逆量子化回路 38 IDCT 39 過去画像バッファ 41 マルチプレクサ 42 バッファ 43 レギュレータ 51,61 画像 52,62 MB 63 ベケトルサーチ範囲 64,65 領域 1, 1A Encoding processor 2, 11 Bus controller 3, 4 Image data memory 5, 30 MC processor 6 Reference frame memory 7 FIFO 8, 26 DMAC 9 Input image buffer 10 Image frame memory 12 Reference image buffer 19 DSP 20, 23 Local Memory 21 Register 22 ALU 24 Instruction memory 25 Control unit 17, 27 Selector 28, 29 Internal data bus 31 Frame reorder circuit 32 Motion vector detection circuit 33, 40 Adder circuit 34 DCT 35 Quantization circuit 36 VLC 37 Inverse quantization circuit 38 IDCT 39 Past image buffer 41 Multiplexer 42 Buffer 43 Regulator 51,61 Image 52,62 MB 63 Bekettle search range 64,65 area

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 分離した輝度信号および色信号から成る
第1の画像データを予め定めた垂直および水平方向の複
数の画素から成る1フレーム分ずつ記憶し読出時に前記
画像データの予め定めた画素数分のブロックデータであ
るマクロブロックデータを出力する第1の画像データ記
憶手段と、前記第1の画像データとこの第1の画像デー
タの前のフレームの過去参照画像データとを予め定めた
垂直および水平方向の探索範囲内で前記マクロブロック
データ毎に比較して動きベクトルを探索し対応の差分デ
ータを出力する動き補償プロセッサと、前記差分データ
の離散コサイン変換および量子化を行い量子化データを
発生しこの量子化データの可変長符号化とを行ない所定
のデータフオーマットにしたがったフレーム内圧縮画像
データを出力データとして発生するととともに前記量子
化データの逆量子化および逆離散コサイン変換を行ない
第2の画像データを発生する符号化プロセッサと、前記
第2の画像データを記憶し読出時に前記過去参照画像デ
ータとして出力する第2の画像データ記憶手段とを備え
る画像符号化装置において、 1フレーム分の前記第1の画像データのうちの前記垂直
方向の探索範囲と同一の垂直方向画素数のみから成る部
分画像データを前記第2の画像データとして生成しこの
第2の画像データを前記過去参照画像データ中の参照終
了後の領域に重ね書するメモリ制御手段を備えることを
特徴とする画像符号化装置。
1. The first image data composed of separated luminance signal and chrominance signal is stored for each one frame composed of a plurality of pixels in predetermined vertical and horizontal directions, and the predetermined number of pixels of the image data is read out at the time of reading. First image data storage means for outputting macroblock data, which is block data for a minute, and predetermined vertical and vertical directions of the first image data and past reference image data of a frame preceding the first image data. A motion compensation processor that searches for a motion vector for each macroblock data within a horizontal search range and outputs corresponding difference data; and a discrete cosine transform and quantization of the difference data to generate quantized data. Then, this quantized data is subjected to variable length coding, and compressed image data within a frame according to a predetermined data format is output data. And an encoding processor that performs inverse quantization and inverse discrete cosine transform of the quantized data to generate second image data, and stores the second image data and outputs it as the past reference image data at the time of reading. In the image coding device including the second image data storage means, partial image data including only the same number of vertical pixels as the vertical search range of the first image data for one frame is generated. An image coding apparatus, comprising: memory control means for generating the second image data and overwriting the second image data in an area in the past reference image data after completion of the reference.
【請求項2】 前記メモリ制御手段が、前記符号化プロ
セッサから出力された前記第2の画像データを一時保持
する第3の画像データ記憶手段と、 前記ベクトル探索終了後に前記第2の画像データを前記
第3の画像データ記憶手段から前記第2の画像データ記
憶手段に転送するバス制御手段とを備えることを特徴と
する請求項1記載の画像符号化装置。
2. The memory control means stores third image data storage means for temporarily holding the second image data output from the encoding processor, and stores the second image data after completion of the vector search. The image encoding apparatus according to claim 1, further comprising a bus control unit that transfers the third image data storage unit to the second image data storage unit.
【請求項3】 前記符号化プロセッサが、前記第2,第
3の画像データメモリと前記バス制御手段とを含む集積
回路化ディジタル信号処理装置を備えることを特徴とす
る請求項1記載の画像符号化装置。
3. The image code according to claim 1, wherein the encoding processor comprises an integrated circuit digital signal processing device including the second and third image data memories and the bus control means. Device.
JP788395A 1995-01-23 1995-01-23 Image coding device Expired - Fee Related JP2776284B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP788395A JP2776284B2 (en) 1995-01-23 1995-01-23 Image coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP788395A JP2776284B2 (en) 1995-01-23 1995-01-23 Image coding device

Publications (2)

Publication Number Publication Date
JPH08205192A true JPH08205192A (en) 1996-08-09
JP2776284B2 JP2776284B2 (en) 1998-07-16

Family

ID=11678010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP788395A Expired - Fee Related JP2776284B2 (en) 1995-01-23 1995-01-23 Image coding device

Country Status (1)

Country Link
JP (1) JP2776284B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0838956A3 (en) * 1996-10-23 2002-03-06 Texas Instruments Inc. A method and apparatus for decoding video data
JP2007124238A (en) * 2005-10-27 2007-05-17 Canon Inc Dynamic image encoding device and dynamic image encoding method
US7925120B2 (en) 2005-11-14 2011-04-12 Mediatek Inc. Methods of image processing with reduced memory requirements for video encoder and decoder
US8311095B2 (en) 2002-07-17 2012-11-13 Onmobile Global Limited Method and apparatus for transcoding between hybrid video codec bitstreams
CN107153666A (en) * 2016-03-02 2017-09-12 魏立江 Picture searching method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0838956A3 (en) * 1996-10-23 2002-03-06 Texas Instruments Inc. A method and apparatus for decoding video data
US8311095B2 (en) 2002-07-17 2012-11-13 Onmobile Global Limited Method and apparatus for transcoding between hybrid video codec bitstreams
JP2007124238A (en) * 2005-10-27 2007-05-17 Canon Inc Dynamic image encoding device and dynamic image encoding method
JP4590337B2 (en) * 2005-10-27 2010-12-01 キヤノン株式会社 Moving picture coding apparatus and moving picture coding method
US7925120B2 (en) 2005-11-14 2011-04-12 Mediatek Inc. Methods of image processing with reduced memory requirements for video encoder and decoder
CN107153666A (en) * 2016-03-02 2017-09-12 魏立江 Picture searching method

Also Published As

Publication number Publication date
JP2776284B2 (en) 1998-07-16

Similar Documents

Publication Publication Date Title
JP4138056B2 (en) Multi-standard decompression and / or compression device
EP0849953B1 (en) System and method for performing motion compensation using a skewed tile storage format for improved efficiency
US6459813B1 (en) Image predictive decoding method, image predictive decoding apparatus, image predictive coding method, image predictive coding apparatus, and data storage media
US5912676A (en) MPEG decoder frame memory interface which is reconfigurable for different frame store architectures
EP0821857B1 (en) Video decoder apparatus using non-reference frame as an additional prediction source and method therefor
US5982936A (en) Performance of video decompression by using block oriented data structures
US20050190976A1 (en) Moving image encoding apparatus and moving image processing apparatus
CA2151023A1 (en) Method of coding/decoding of a data stream
JP2001275116A (en) Image processor
JPH05268590A (en) Moving picture coding decoding circuit
US7319794B2 (en) Image decoding unit, image encoding/ decoding devices using image decoding unit, and method thereof
JPH10215457A (en) Moving image decoding method and device
US6928115B2 (en) Compression-encoded data decoding apparatus cross-reference to related applications
JP2776284B2 (en) Image coding device
US7330595B2 (en) System and method for video data compression
US6097843A (en) Compression encoding apparatus, encoding method, decoding apparatus, and decoding method
JP2898413B2 (en) Method for decoding and encoding compressed video data streams with reduced memory requirements
US6996185B2 (en) Image signal decoding apparatus
US5666115A (en) Shifter stage for variable-length digital code decoder
US20030147468A1 (en) Image data coding apparatus capable of promptly transmitting image data to external memory
JPWO2010021153A1 (en) Motion detection device
JP3170313B2 (en) Image processing device
JPH0984005A (en) Image expanding device
JP3456201B2 (en) Inter-frame prediction coding / decoding device
JP2864761B2 (en) Motion compensated interframe predictive coding device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980331

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

Free format text: PAYMENT UNTIL: 20090501

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees