JP4122753B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP4122753B2 JP4122753B2 JP2001336324A JP2001336324A JP4122753B2 JP 4122753 B2 JP4122753 B2 JP 4122753B2 JP 2001336324 A JP2001336324 A JP 2001336324A JP 2001336324 A JP2001336324 A JP 2001336324A JP 4122753 B2 JP4122753 B2 JP 4122753B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage device
- color difference
- mcu
- luminance signal
- 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
Description
【0001】
【発明の属する技術分野】
本発明は、前記撮像素子により光電変換された映像信号を記録することが可能なデジタルスチルカメラもしくはデジタルビデオカメラに関する。
【0002】
【従来の技術】
撮像素子から出力される画像データを、輝度信号・色差信号に分離してラインごとに一時的にSDRAMなどの記憶装置へ格納する。
【0003】
格納した画像データをJPEG規格に則ってラスタブロック変換する際、 数ライン分の容量を持つラスタブロック変換用メモリを必要としていた。
【0004】
また、記憶装置から画像データを読み出してラスタブロック変換用メモリへ格納する処理と、 ラスタブロック変換用メモリで変換した画像データを読み出す処理が順次処理となっていた。
【0005】
【発明が解決しようとする課題】
上記のような従来の画像処理装置では、回路規模が大きい、処理速度が遅いと言う欠点があった。
【0006】
そこで、本発明はラスタブロック変換回路において、処理速度を落とさずにラスタブロック変換用メモリの容量が削減できる画像処理装置を提供する。
【0007】
【課題を解決するための手段】
本発明は、上記の課題を解決するために次のような手段を講じた。
【0008】
被写体の光学像を光電変換する撮像素子と、各種データを一時的に記憶する記憶装置と、前記撮像素子から出力される画像データを一時的に前記記憶装置に記憶させるための一時記憶手段Aと、前記画像データを輝度信号に対応する成分と色差信号に対応する成分に分離する画像処理手段と、前記輝度信号および前記色差信号を記録用として一時的に前記記憶装置に記憶させるための一時記憶手段Bと、前記輝度信号および前記色差信号を表示用として一時的に前記記憶装置に記憶させるための一時記憶手段Cと、Read/Writeが同時に行うことができるラスタブロック変換用メモリを有し前記輝度信号および前記色差信号に対して符号化処理あるいは復号化処理を行なう符号化手段と、前記符号化手段によって得られた符号化映像デ―タを所定の記録媒体に記録保持させる記録手段と、前記一時記憶手段A、前記一時記憶手段B、前記一時記憶手段C、前記符号化手段および前記記録手段の前記記憶装置へのアクセスを調停する調停手段とを有する画像処理装置であって、前記ラスタブロック変換用メモリのアドレス制御をリングバッファとして構成し、前記記憶装置に記憶された輝度信号および色差信号を前記符号化手段で符号化処理を行った後前記記録手段により前記記録媒体に記録する場合、前記符号化手段が前記記憶装置にアクセスして輝度信号もしくは色差信号を読み出す際の1回のアクセス単位(ページ)が、JPEGの1MCU(Minimum Coded Unit)を構成する水平画素数より多くなるように設定することにより、前記符号化手段がアクセスしたアドレスの1MCUを構成するに必要なデータを前記記憶装置から読み出す際に該アドレスの1MCUに隣接するMCUのデータも含めて読み出し、それらの読み出した全てのデータ(イ)を前記ラスタブロック変換用メモリに格納しておき、前記ラスタブロック変換用メモリに格納したデータが符号化処理されることに伴いMCU単位でメモリに空き領域が生じるが、前記空き領域の合計が前記アクセス単位のデータを格納可能となったときに、前記符号化手段は前記記憶装置から前記データ(イ)の次ぎに続くMCUを構成するデータを含む輝度信号もしくは色差信号の読み出しを行い、それらの読み出した全てのデータを前記ラスタブロック変換用メモリの前記空き領域に格納することを特徴とする。
【0009】
Read/Writeが同時に行える前記ラスタブロック変換用メモリを使用し、前記ラスタブロック変換用メモリのアドレス制御をリングバッファ状構成とすることで、前記ラスタブロック変換用メモリからブロック順でデータを読み出し終えたアドレスに、前記記憶装置から次に読み出したデータを格納することが出来、メモリ容量を減らすことが可能となる。
【0010】
また、前記記憶装置から画像データを読み出す際、前記記憶装置にアクセスしたアドレスのMCUを構成するのに必要なデータ以外の隣接するMCUのデータも含めた、全てのデータを前記ラスタブロック変換用メモリで保持することで、記憶装置へのアクセス頻度を最小限にし、処理時間の増加を抑えることが可能となる。
【0011】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態を説明する。
【0012】
図1に示すように、画像処理装置1には、撮像素子2、表示装置3、記憶装置4及び、記録媒体5が接続されている。
【0013】
画像処理装置1は、撮像素子2から入力した入力画像データD1を記録用データD2と表示用データD3に変換し、記録用データD2はJPEG方式に基づいて圧縮を行い、圧縮画像データD4を記録媒体5に記録する。表示用データD3を表示装置3に出力する。
【0014】
また、再生時には記録媒体5から圧縮画像データD4を読み出し、JPEG方式に基づいて伸張を行い、表示用データD3に変換し、表示装置3に出力する。
【0015】
撮像素子2は、CCDカメラ等より構成し、カラー静止画等の入力画像データD1を取り込み、その入力画像データD1を画像処理装置1に出力する。
【0016】
表示装置3は、液晶モニター等より構成し、画像を表示する。記憶装置4は、1画面分の記録用データD2を記憶するのに充分な容量のSDRAM等のメモリデバイスで構成する。記録媒体5は、不揮発性メモリカード装置等より構成する。
【0017】
次に、画像処理装置1の構成を詳述する。
【0018】
画像処理装置1は、一時記憶手段A11、画像処理手段12、一時記憶手段B13、一時記憶手段C14、符号化手段15、記録手段16、及び、調停手段17により構成されている。調停手段17は、一時記憶手段A11、一時記憶手段B13、一時記憶手段C14、符号化手段15、及び、記録手段16の記憶装置4へのアクセスを時分割に調停している。
【0019】
また一時記憶手段B13には平滑化手段R18を、一時記憶手段C14には平滑化手段M19を、符号化手段15にはJPEGアルゴリズムに従って圧縮および伸張を行うJPEGコア20を有している。
【0020】
なお、符号化手段15は、所定の方式(本実施の形態ではJPEG方式)に基づいて画像データの圧縮・伸長を行うためのものである。
【0021】
画像処理装置1は、撮像素子2から入力した入力画像データD1を一時記憶手段A11によって取り込み、記憶装置4に記憶させる。記憶装置4に記憶させた入力画像データD1を一時記憶手段A11によって読み出し、次に撮像素子2から入力する入力画像データD1とともに画像処理手段12へ出力する。
【0022】
なお、モニターモードにおいては、撮像素子2から入力した入力画像データD1を記憶装置4に記憶させずに画像処理手段12へ出力する。
【0023】
画像処理手段12は、入力した入力画像データD1を輝度信号と色差信号に分離して、記録用データD2と表示用データD3を生成する。記録用データD2を一時記憶手段B、表示用データD3を一時記憶手段Cによって、1画面分の記録用データD2を記憶するのに充分な容量のSDRAM等のメモリデバイスで構成する記憶装置4に記憶させる。記録用データD2を符号化手段15によってSRAM等で構成されるラスタブロック変換用メモリ21でラスター順のデータをブロック順に変換してJPEGコア20に出力し、JPEGコア20でJPEGアルゴリズムに従って圧縮する。
【0024】
その圧縮した圧縮画像データD4を符号化手段15によって記憶装置4に記憶させ、記録手段16により不揮発性メモリ装置等よりなる記録媒体5に出力し、記録する。
【0025】
それと同時に表示用データD3は、モニター画像、プレビュー画像として液晶モニター等よりなる表示装置3に出力し、表示装置3は画像を表示する。
【0026】
また画像処理装置1は、記録手段16により記録媒体5に記録された圧縮画像データD4を読み出して記憶装置4に記憶させ、その圧縮画像データD4を符号化手段15によってJPEGアルゴリズムに従って伸長し、記録用データD2として記憶装置4に記憶させる。記憶装置4に格納した記録用データD2を一時記憶手段A11によって読み出し、画像処理手段12により表示用データD3に変換して一時記憶手段C14が表示装置3に出力し、表示装置3は画像を復元する。
【0027】
また、伸張された記録用データD2を一時記憶手段A11によって読み出し、画像処理手段12により画像サイズや画角を変更して一時記憶手段Bによって記憶装置4に記憶させ、符号化手段15によって圧縮するリサイズ機能と切り出し機能を備える。
【0028】
なお、記憶装置4への平均データレートを下げるため、SRAM等で構成されるメモリを有する平滑化手段R18および平滑化手段M19を一時記憶手段B13及び一時記憶手段C14に用いている。
【0029】
次に、上記のように構成された画像処理装置1の作用を説明する。
【0030】
図2は、記憶装置4に4:2:0形式で400万画素(2240×1680)の記録用データD2を格納する概念図である。
【0031】
なお、記録用データD2の格納位置を上詰めで記載しているが、格納位置は可変である。
【0032】
記憶装置4の縦軸がSDRAMの総ページ数およびページアドレス、横軸が記憶装置4の1回のアクセス単位(ページ)を示す。
【0033】
1ページは32Byteであり、1ライン2240画素であるので70ページ/ラインとなる。
【0034】
4:2:0形式なので、輝度信号2ラインに対して色差信号1ラインである。
【0035】
輝度信号はラインの先頭から順に詰めて格納している。また色差信号は、Cb/Crが1画素ごとにインターリーブして画像処理手段12から出力されたものを、それぞれ8画素ごとに分けて格納している。
【0036】
その詳細を図3に示す。1行が1回のアクセスで読み書きできるデータの集まりを示し、ラインの先頭から順番にLSBから4Byteずつを格納している。
【0037】
なお、各手段の出力するページアドレスからSDRAMの実際のアドレスへの変換は調停手段17にて行っている。
【0038】
本実施例においては、記憶装置4のアクセス単位が32Byteであるので、1回の記憶装置4へのアクセスで、1MCUを構成するのに隣接したMCUのデータも読み出してくる。
【0039】
画像処理装置1の全体の処理速度を落とさないためには、記憶装置4へのアクセス回数を最小にする必要があるため、読み出したデータは全てラスタブロック変換用メモリ21に格納する。4:2:0圧縮で1MCUを構成するには、32Byte×24回=768Byteのデータを記憶装置4から読み出す。
【0040】
ここで隣接したMCUのデータもすべて格納するとラスタブロック変換用メモリ21には768Byteの容量が必要となるが、図4に示す構成を取る事によりメモリ容量を削減する。
【0041】
図4は、4:2:0圧縮時の符号化手段におけるラスタブロック変換用メモリ21の各JPEGマクロブロックと格納アドレスの構成を示す。
【0042】
ここで、輝度マクロブロックYn、Yn+1、Yn+2、Yn+3及び色差マクロブロックCbn、Crnで1MCUを構成し、輝度マクロブロックYn+4、Yn+5、Yn+6、Yn+7及び色差マクロブロックCbn+1、Crn+1で隣接する1MCUを構成する(n=0,8,16...)。
【0043】
記憶装置4より記録用データD2の輝度信号を8回分読み出して輝度マクロブロックYn、Yn+1、Yn+4、Yn+5を完成させる。完成した輝度マクロブロックYnおよび輝度マクロブロックYn+1をJPEGコア20に入力しつつ、ラスタブロック変換用メモリ21の空きが4マクロブロック以上あるので、記憶装置4に8回アクセスして記録用データD2の輝度信号を8ページ分読み出し、次の輝度マクロブロックYn+2、Yn+3、Yn+6、Yn+7を完成させる。
【0044】
次に輝度マクロブロックYn、Yn+1をJPEGコア20に入力し終えたら、ラスタブロック変換用メモリ21の空きが4マクロブロック以上できるので、記憶装置4より記録用データD2の色差信号を8回分読み出して色差マクロブロックCbn、Crn、Cbn+1、Crn+1を完成させる。
【0045】
▲1▼この間順次JPEGコア20にYn+2、Yn+3、Cbn、Crnデータを入力し、1MCU入力後次のMCUのを輝度マクロブロックYn+4、Yn+5を入力する。
【0046】
▲2▼輝度マクロブロックYn+4、Yn+5を入力し終えたら、記憶装置4より記録用データD2の輝度信号を8回分読み出して次の輝度マクロブロックYn、Yn+1、Yn+4、Yn+5を完成させる。
【0047】
▲3▼輝度マクロブロックYn+6、Yn+7を入力し終えたら、記憶装置4より記録用データD2の輝度信号を8回分読み出して次の輝度マクロブロックYn+2、Yn+3、Yn+6、Yn+7を完成させる。
【0048】
▲4▼色差マクロブロックCbn+1、Crn+1を入力し終え、かつ輝度マクロブロックYn、Yn+1をJPEGコア20に入力し終えたら、記憶装置4より次の色差マクロブロックCbn、Crn、Cbn+1、Crn+1を読み出す。
【0049】
以降▲1▼から▲4▼の繰り返しとなる。各マクロブロックの格納アドレスの遷移は、図4中の6通り。
【0050】
図5は、4:2:0圧縮時の最初の1MCUを構成する、輝度マクロブロックY0,Y1、Y2、Y3および色差マクロブロックCb0、Cr0を図3における各画素と対比してラスタブロック変換用メモリ21に格納した詳細な構成を示す。
【0051】
図6は、4:2:2圧縮時の符号化手段におけるラスタブロック変換用メモリ21のJPEGマクロブロックと格納アドレスの構成を示す。
【0052】
記憶装置4より記録用データD2の輝度信号を8回分読み出して輝度マクロブロックYn、Yn+1、Yn+2、Yn+3を完成させる。
【0053】
完成した輝度マクロブロックYnおよび輝度マクロブロックYn+1をJPEGコア20に入力しつつ、ラスタブロック変換用メモリ21の空きが4マクロブロック以上あるので、記憶装置4より記録用データD2の色差信号を8回分読み出して色差マクロブロックCbn、Crn、Cbn+1、Crn+1を完成させる。
【0054】
▲5▼次に輝度マクロブロックYn、Yn+1、色差マクロブロックCbn、Crn及び輝度マクロブロックYn+2、Yn+3をJPEGコア20に入力し終えたら、記憶装置4より記録用データD2の輝度信号を8回分読み出して輝度マクロブロックYn、Yn+1、Yn+2、Yn+3を完成させる。
【0055】
▲6▼次に色差マクロブロックCbn+1、Crn+1をJPEGコア20に入力し終えたら、色差マクロブロックCbn、Crn、Cbn+1、Crn+1を完成させる。
【0056】
以降▲5▼から▲6▼の繰り返しとなる。各マクロブロックの格納アドレスの遷移は、図6中の1通り。
【0057】
以上記述したように、本形態によれば、以下の効果を奏する。
【0058】
本発明の実施の形態における画像処理装置は、被写体の光学像を光電変換する撮像素子と、各種データを一時的に記憶する記憶装置と、前記撮像素子から出力される画像データを一時的に前記記憶装置に記憶させるための一時記憶手段Aと、
前記画像データを輝度信号に対応する成分と色差信号に対応する成分に分離する画像処理手段と、前記輝度信号および前記色差信号を記録用として一時的に前記記憶装置に記憶させるための一時記憶手段Bと、前記輝度信号および前記色差信号を表示用として一時的に前記記憶装置に記憶させるための一時記憶手段Cと、
Read/Writeが同時に行うことができるラスタブロック変換用メモリを有し前記輝度信号および前記色差信号に対して符号化処理あるいは復号化処理を行なう符号化手段と、前記符号化手段によって得られた符号化映像デ―タを所定の記録媒体に記録保持させる記録手段と、前記一時記憶手段A、前記一時記憶手段B、前記一時記憶手段C、前記符号化手段および前記記録手段の前記記憶装置へのアクセスを調停する調停手段とを有する画像処理装置であって、前記ラスタブロック変換用メモリのアドレス制御をリングバッファとして構成し、前記記憶装置に記憶された輝度信号および色差信号を前記符号化手段で符号化処理を行った後前記記録手段により前記記録媒体に記録する場合、前記符号化手段が前記記憶装置にアクセスして輝度信号もしくは色差信号を読み出す際の1回のアクセス単位(ページ)が、JPEGの1MCU(Minimum Coded Unit)を構成する水平画素数より多くなるように設定することにより、前記符号化手段がアクセスしたアドレスの1MCUを構成するに必要なデータを前記記憶装置から読み出す際に該アドレスの1MCUに隣接するMCUのデータも含めて読み出し、それらの読み出した全てのデータ(イ)を前記ラスタブロック変換用メモリに格納しておき、前記ラスタブロック変換用メモリに格納したデータが符号化処理されることに伴いMCU単位でメモリに空き領域が生じるが、前記空き領域の合計が前記アクセス単位のデータを格納可能となったときに、前記符号化手段は前記記憶装置から前記データ(イ)の次ぎに続くMCUを構成するデータを含む輝度信号もしくは色差信号の読み出しを行い、それらの読み出した全てのデータを前記ラスタブロック変換用メモリの前記空き領域に格納することを特徴とする。
【0059】
Read/Writeが同時に行える前記ラスタブロック変換用メモリ21を使用し、前記ラスタブロック変換用メモリ21のアドレス制御をリングバッファ状構成とすることで、前記ラスタブロック変換用メモリ21からブロック順でデータを読み出し終えたアドレスに、前記記憶装置から読み出した次のデータを格納することが出来、メモリ容量を減らすことが可能となる。
【0060】
また、前記記憶装置から画像データを読み出す際、アクセスしたアドレスの(MCUを構成するのに必要なデータ以外の余分なデータも含めた)全てのデータを前記ラスタブロック変換用メモリ21で保持することで、記憶装置へのアクセス頻度を減らし、処理時間の増加を抑えることが可能となる。
【0061】
尚、本発明は上記形態に限定されるものではなく、以下のように実施してもよい。
(1) 本実施の形態において、平均データレートを下げるため、平滑化手段R18および平滑化手段M19を用いているが、用いずに構成してもよい。
(2) 本実施の形態において、Cb/Crを8画素ごとに分けて記憶装置4に格納しているが、インターリーブのまま格納しても良い。
(3) 本実施の形態において、記録媒体5を光ディスク装置で構成してもよい。
(4) 本実施の形態において、記憶装置4の容量を64Mbitとしたが、256Mbitまでの容量で構成してもよい。
【0062】
【発明の効果】
以上詳述したように本発明によれば、ラスタブロック変換回路において、処理速度を落とさずにラスタブロック変換用メモリの容量が削減できる画像処理装置を提供することができる。
【図面の簡単な説明】
【図1】実施の形態の画像処理装置1のブロック回路図
【図2】記憶装置4の記録用データD2メモリマップ概念図
【図3】記憶装置4の記録用データD2のCb/Cr詳細メモリマップ概念図
【図4】4:2:0圧縮時のJPEGマクロブロックとラスタブロック変換用メモリ21の格納アドレスを示す説明図
【図5】4:2:0の1MCUをラスタブロック変換用メモリ21に格納した詳細な構成を示す説明図
【図6】4:2:2圧縮時のJPEGマクロブロックとラスタブロック変換用メモリ21の格納アドレスを示す説明図
【符号の説明】
1 画像処理装置
2 撮像素子
3 表示装置
4 記憶装置
5 記録媒体
11 一時記憶手段A
12 画像処理手段
13 一時記憶手段B
14 一時記憶手段C
15 符号化手段
16 記録手段
17 調停手段
18 平滑化手段R
19 平滑化手段M[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a digital still camera or a digital video camera capable of recording a video signal photoelectrically converted by the imaging device.
[0002]
[Prior art]
Image data output from the image sensor is separated into luminance signals and color difference signals and temporarily stored in a storage device such as an SDRAM for each line.
[0003]
When converting the stored image data into raster blocks according to the JPEG standard, a raster block conversion memory having a capacity of several lines was required.
[0004]
In addition, the process of reading out image data from the storage device and storing it in the raster block conversion memory and the process of reading out the image data converted by the raster block conversion memory are sequential processes.
[0005]
[Problems to be solved by the invention]
The conventional image processing apparatus as described above has a drawback that the circuit scale is large and the processing speed is slow.
[0006]
Accordingly, the present invention provides an image processing apparatus capable of reducing the capacity of a raster block conversion memory without reducing the processing speed in a raster block conversion circuit.
[0007]
[Means for Solving the Problems]
In order to solve the above-mentioned problems, the present invention has taken the following measures.
[0008]
An image sensor that photoelectrically converts an optical image of a subject, a storage device that temporarily stores various data, and a temporary storage unit A that temporarily stores image data output from the image sensor in the storage device; Image processing means for separating the image data into a component corresponding to a luminance signal and a component corresponding to a color difference signal, and temporary storage for temporarily storing the luminance signal and the color difference signal for recording in the storage device Means B, temporary storage means C for temporarily storing the luminance signal and the color difference signal in the storage device for display, and a raster block conversion memory capable of simultaneously performing Read / Write Encoding means for performing an encoding process or a decoding process on a luminance signal and the color difference signal, and an encoded video obtained by the encoding means A recording means for recording and holding the data in a predetermined recording medium, and arbitration of the temporary storage means A, the temporary storage means B, the temporary storage means C, the encoding means and the recording means access to the storage device And an arbitration unit configured to perform address control of the raster block conversion memory as a ring buffer, and the luminance unit and the color difference signal stored in the storage unit are encoded by the encoding unit. When recording on the recording medium by the recording means after performing the above, one access unit (page) when the encoding means accesses the storage device and reads out the luminance signal or the color difference signal is 1 MCU of JPEG. By setting the number of pixels to be larger than the number of horizontal pixels constituting (Minimum Coded Unit), the encoding means can access. When the data necessary to configure one MCU at the address is read from the storage device, the data including the data of the MCU adjacent to the one MCU at the address is read, and all the read data (a) is used for the raster block conversion. As the data stored in the memory and stored in the raster block conversion memory is encoded, a free area is generated in the MCU unit, but the total of the free areas stores the data in the access unit. When it becomes possible, the encoding means reads out the luminance signal or the color difference signal including the data constituting the MCU following the data (A) from the storage device, and stores all the read data. It characterized the Turkey be stored in the free area of the raster blocks conversion memory.
[0009]
By using the raster block conversion memory that can be read / written at the same time, and the address control of the raster block conversion memory is configured in a ring buffer configuration, the data is read from the raster block conversion memory in block order. Data read next from the storage device can be stored in the address, and the memory capacity can be reduced.
[0010]
Further, when reading out image data from the storage device, all the data including the data of the adjacent MCU other than the data necessary for configuring the MCU of the address accessed to the storage device is stored in the raster block conversion memory. By holding in this manner, it is possible to minimize the frequency of access to the storage device and suppress an increase in processing time.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
[0012]
As shown in FIG. 1, an
[0013]
The
[0014]
Further, at the time of reproduction, the compressed image data D4 is read from the
[0015]
The
[0016]
The
[0017]
Next, the configuration of the
[0018]
The
[0019]
The temporary storage means B13 has a smoothing means R18, the temporary storage means C14 has a smoothing means M19, and the encoding means 15 has a
[0020]
The encoding means 15 is for compressing / decompressing image data based on a predetermined method (JPEG method in the present embodiment).
[0021]
The
[0022]
In the monitor mode, the input image data D1 input from the
[0023]
The image processing means 12 separates the inputted input image data D1 into a luminance signal and a color difference signal, and generates recording data D2 and display data D3. The recording data D2 is temporarily stored in the storage device B and the display data D3 is temporarily stored in the storage device C. The
[0024]
The compressed compressed image data D4 is stored in the
[0025]
At the same time, the display data D3 is output as a monitor image and a preview image to the
[0026]
Further, the
[0027]
The expanded recording data D2 is read by the temporary storage means A11, the image size is changed by the image processing means 12 and stored in the
[0028]
In order to lower the average data rate to the
[0029]
Next, the operation of the
[0030]
FIG. 2 is a conceptual diagram in which the
[0031]
In addition, although the storage position of the recording data D2 is written in an upper order, the storage position is variable.
[0032]
The vertical axis of the
[0033]
Since one page is 32 bytes and one line is 2240 pixels, it is 70 pages / line.
[0034]
Since the format is 4: 2: 0, the color signal is one line with respect to two luminance signals.
[0035]
Luminance signals are stored in order from the beginning of the line. In addition, the color difference signal is obtained by interleaving Cb / Cr for each pixel and outputting it from the image processing means 12 separately for each 8 pixels.
[0036]
The details are shown in FIG. One row indicates a collection of data that can be read and written by one access, and
[0037]
Note that the mediating means 17 converts the page address output from each means to the actual address of the SDRAM.
[0038]
In the present embodiment, since the access unit of the
[0039]
In order not to reduce the overall processing speed of the
[0040]
Here, if all the data of adjacent MCUs are stored, the raster
[0041]
FIG. 4 shows the configuration of each JPEG macroblock and storage address of the raster
[0042]
Here, luminance macroblocks Yn, Yn + 1, Yn + 2, Yn + 3 and chrominance macroblocks Cbn, Crn constitute one MCU, and luminance
[0043]
The luminance signal of the recording data D2 is read eight times from the
[0044]
Next, after the luminance macroblocks Yn and Yn + 1 have been input to the
[0045]
(1) During this time, Yn + 2, Yn + 3, Cbn, and Crn data are sequentially input to the
[0046]
{Circle around (2)} When the luminance macroblocks Yn + 4 and Yn + 5 have been input, the luminance signal of the recording data D2 is read from the
[0047]
{Circle around (3)} When the luminance macroblocks Yn + 6 and Yn + 7 have been input, the luminance signal of the recording data D2 is read from the
[0048]
(4) When the color difference macroblocks Cbn + 1 and Crn + 1 have been input and the luminance macroblocks Yn and Yn + 1 have been input to the
[0049]
Thereafter, the repetition of (1) to (4) is repeated. There are six transitions in the storage address of each macroblock in FIG.
[0050]
FIG. 5 shows a raster block conversion by comparing the luminance macroblocks Y0, Y1, Y2, Y3 and the chrominance macroblocks Cb0, Cr0 constituting the first 1 MCU in 4: 2: 0 compression with each pixel in FIG. A detailed configuration stored in the
[0051]
FIG. 6 shows a configuration of JPEG macroblocks and storage addresses of the raster
[0052]
The luminance signal of the recording data D2 is read eight times from the
[0053]
While the completed luminance macroblock Yn and luminance macroblock Yn + 1 are input to the
[0054]
(5) Next, when the luminance macroblocks Yn, Yn + 1, the chrominance macroblocks Cbn, Crn and the luminance
[0055]
(6) Next, when the color difference macroblocks Cbn + 1 and Crn + 1 have been input to the
[0056]
After that, steps (5) to (6) are repeated. The transition of the storage address of each macroblock is one way in FIG.
[0057]
As described above, according to this embodiment, the following effects can be obtained.
[0058]
An image processing apparatus according to an embodiment of the present invention includes an image sensor that photoelectrically converts an optical image of a subject, a storage device that temporarily stores various data, and image data that is output from the image sensor temporarily. Temporary storage means A for storing in a storage device;
Image processing means for separating the image data into a component corresponding to a luminance signal and a component corresponding to a color difference signal, and temporary storage means for temporarily storing the luminance signal and the color difference signal for recording in the storage device B, temporary storage means C for temporarily storing the luminance signal and the color difference signal in the storage device for display;
An encoding unit having a raster block conversion memory capable of performing Read / Write simultaneously and performing an encoding process or a decoding process on the luminance signal and the chrominance signal; and a code obtained by the encoding unit Recording means for recording and holding the encoded video data in a predetermined recording medium, the temporary storage means A, the temporary storage means B, the temporary storage means C, the encoding means, and the recording means to the storage device An image processing apparatus having arbitration means for arbitrating access, wherein the address control of the raster block conversion memory is configured as a ring buffer, and the luminance signal and the color difference signal stored in the storage device are When recording on the recording medium by the recording means after performing the encoding process, the encoding means accesses the storage device. The encoding means accessed by setting a single access unit (page) for reading out a luminance signal or a color difference signal to be larger than the number of horizontal pixels constituting one MCU (minimum coded unit) of JPEG. When data required to configure one MCU at an address is read from the storage device, the data including MCU data adjacent to the one MCU at the address is read, and all the read data (A) is read from the raster block conversion memory. As the data stored in the raster block conversion memory is encoded, an empty area is generated in the MCU unit, but the total of the empty areas can store the data in the access unit. Then, the encoding means follows the data (b) from the storage device. Subsequent reads the luminance signal or color difference signal containing data constituting the MCU, and wherein the benzalkonium to store all of the data out thereof read in the empty area of the raster blocks conversion memory.
[0059]
By using the raster
[0060]
Further, when image data is read from the storage device, (also included extra data other than necessary data to configure the MCU) of the accessed address to retain all data in the previous SL raster
[0061]
In addition, this invention is not limited to the said form, You may implement as follows.
(1) In this embodiment, the smoothing means R18 and the smoothing means M19 are used to lower the average data rate, but they may be configured without using them.
(2) In the present embodiment, Cb / Cr is divided into 8 pixels and stored in the
(3) In the present embodiment, the
(4) In the present embodiment, the
[0062]
【The invention's effect】
As described above in detail, according to the present invention, it is possible to provide an image processing apparatus capable of reducing the capacity of the raster block conversion memory without reducing the processing speed in the raster block conversion circuit.
[Brief description of the drawings]
1 is a block circuit diagram of an
DESCRIPTION OF
12 Image processing means 13 Temporary storage means B
14 Temporary storage means C
15 Coding means 16 Recording means 17 Arbitration means 18 Smoothing means R
19 Smoothing means M
Claims (4)
前記撮像素子から出力される画像データを一時的に前記記憶装置に記憶させるための一時記憶手段Aと、
前記画像データを輝度信号に対応する成分と色差信号に対応する成分に分離する画像処理手段と、
前記輝度信号および前記色差信号を記録用として一時的に前記記憶装置に記憶させるための一時記憶手段Bと、
前記輝度信号および前記色差信号を表示用として一時的に前記記憶装置に記憶させるための一時記憶手段Cと、
Read/Writeが同時に行うことができるラスタブロック変換用メモリを有し前記輝度信号および前記色差信号に対して符号化処理あるいは復号化処理を行なう符号化手段と、
前記符号化手段によって得られた符号化映像デ―タを所定の記録媒体に記録保持させる記録手段と、
前記一時記憶手段A、前記一時記憶手段B、前記一時記憶手段C、前記符号化手段および前記記録手段の前記記憶装置へのアクセスを調停する調停手段とを有する画像処理装置であって、
前記ラスタブロック変換用メモリのアドレス制御をリングバッファとして構成し、前記記憶装置に記憶された輝度信号および色差信号を前記符号化手段で符号化処理を行った後前記記録手段により前記記録媒体に記録する場合、前記符号化手段が前記記憶装置にアクセスして輝度信号もしくは色差信号を読み出す際の1回のアクセス単位(ページ)が、JPEGの1MCU(Minimum Coded Unit)を構成する水平画素数より多くなるように設定することにより、前記符号化手段がアクセスしたアドレスの1MCUを構成するに必要なデータを前記記憶装置から読み出す際に該アドレスの1MCUに隣接するMCUのデータも含めて読み出し、それらの読み出した全てのデータ(イ)を前記ラスタブロック変換用メモリに格納しておき、前記ラスタブロック変換用メモリに格納したデータが符号化処理されることに伴いMCU単位でメモリに空き領域が生じるが、前記空き領域の合計が前記アクセス単位のデータを格納可能となったときに、前記符号化手段は前記記憶装置から前記データ(イ)の次ぎに続くMCUを構成するデータを含む輝度信号もしくは色差信号の読み出しを行い、それらの読み出した全てのデータを前記ラスタブロック変換用メモリの前記空き領域に格納することを特徴とする画像処理装置。An image sensor that photoelectrically converts an optical image of a subject; a storage device that temporarily stores various data;
Temporary storage means A for temporarily storing image data output from the image sensor in the storage device;
Image processing means for separating the image data into a component corresponding to a luminance signal and a component corresponding to a color difference signal;
Temporary storage means B for temporarily storing the luminance signal and the color difference signal in the storage device for recording;
Temporary storage means C for temporarily storing the luminance signal and the color difference signal in the storage device for display;
An encoding unit having a raster block conversion memory capable of performing Read / Write simultaneously, and performing an encoding process or a decoding process on the luminance signal and the color difference signal;
Recording means for recording and holding the encoded video data obtained by the encoding means in a predetermined recording medium;
An image processing apparatus comprising: temporary storage means A, temporary storage means B, temporary storage means C, encoding means, and arbitration means for arbitrating access of the recording means to the storage device,
The address control of the raster block conversion memory is configured as a ring buffer, and the luminance signal and the color difference signal stored in the storage device are encoded by the encoding unit and then recorded on the recording medium by the recording unit. When the encoding unit accesses the storage device and reads out the luminance signal or the color difference signal, one access unit (page) is larger than the number of horizontal pixels constituting one MCU (Minimum Coded Unit) of JPEG. By setting so that, when reading out the data necessary for configuring one MCU of the address accessed by the encoding means from the storage device, the data of the MCU adjacent to the one MCU of the address is read, Store all the read data (a) in the raster block conversion memory When the data stored in the raster block conversion memory is encoded, an empty area is generated in the MCU unit, but the total of the empty areas can store the access unit data. In addition, the encoding means reads out a luminance signal or a color difference signal including data constituting the MCU subsequent to the data (A) from the storage device, and converts all of the read out data for the raster block conversion. the image processing apparatus according to claim and Turkey be stored in the free area of the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001336324A JP4122753B2 (en) | 2001-11-01 | 2001-11-01 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001336324A JP4122753B2 (en) | 2001-11-01 | 2001-11-01 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2003143454A JP2003143454A (en) | 2003-05-16 |
JP4122753B2 true JP4122753B2 (en) | 2008-07-23 |
Family
ID=19151170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001336324A Expired - Fee Related JP4122753B2 (en) | 2001-11-01 | 2001-11-01 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4122753B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4513487B2 (en) * | 2004-10-06 | 2010-07-28 | 株式会社日立製作所 | Video data compression device |
-
2001
- 2001-11-01 JP JP2001336324A patent/JP4122753B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2003143454A (en) | 2003-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3096618B2 (en) | Imaging device | |
JP4151684B2 (en) | Encoding apparatus, encoding method, encoding program, and imaging apparatus | |
JP4130207B2 (en) | Image processing display device and image processing display method | |
EP1774467A1 (en) | Caching data for video edge filtering | |
JPH10271529A (en) | Image processor, still image pickup device and image processing method | |
JP3348917B2 (en) | Image signal processing device | |
US7929777B2 (en) | Variable length decoding device, variable length decoding method and image capturing system | |
US7336302B2 (en) | Frame memory device and method with subsampling and read-out of stored signals at lower resolution than that of received image signals | |
US6661452B1 (en) | Digital camera capable of decreasing a required memory capacity | |
EP0820199B1 (en) | Image signal processing apparatus and method | |
JP4122753B2 (en) | Image processing device | |
JP3931942B2 (en) | Image file device | |
JP3276858B2 (en) | Digital still camera | |
JPH01221989A (en) | Reduction-recording device and enlargement-reproducing device of picture signal | |
JP3081665B2 (en) | Frame memory device | |
JP4006671B2 (en) | Video signal mapping method | |
JP3718239B2 (en) | Image signal processing device | |
JP3062702B2 (en) | Image storage device | |
JP3884830B2 (en) | Image signal processing device | |
JP3890338B2 (en) | Image signal processing device | |
JPH0283578A (en) | Device and method for image data display | |
JPH04301986A (en) | Device and method for recording/reproducing picture | |
JP3123225B2 (en) | Data sorting device | |
JPS6053388A (en) | Picture signal recording and reproducing device | |
JPH09223226A (en) | Picture processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20041019 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20050701 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070412 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070424 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070625 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071009 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071207 |
|
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: 20080408 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080421 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4122753 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110516 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120516 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130516 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130516 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140516 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |