JP2004032615A - Apparatus for converting image data size - Google Patents

Apparatus for converting image data size Download PDF

Info

Publication number
JP2004032615A
JP2004032615A JP2002189543A JP2002189543A JP2004032615A JP 2004032615 A JP2004032615 A JP 2004032615A JP 2002189543 A JP2002189543 A JP 2002189543A JP 2002189543 A JP2002189543 A JP 2002189543A JP 2004032615 A JP2004032615 A JP 2004032615A
Authority
JP
Japan
Prior art keywords
image data
memory
image
size conversion
unit
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.)
Pending
Application number
JP2002189543A
Other languages
Japanese (ja)
Inventor
Masahiro Naito
内藤 正博
Miki Sugano
菅野 美樹
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2002189543A priority Critical patent/JP2004032615A/en
Publication of JP2004032615A publication Critical patent/JP2004032615A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that a memory capacity cannot be reduced when a frame memory is used, equipment cannot be miniaturized whereas image data captured for storage do not match with image data to be displayed unless the frame memory is used. <P>SOLUTION: A memory write completion signal outputted from a memory write means is outputted to a memory read means and to a CPU. Image data are read from a memory at the timing of the memory read means that has received a write completion signal while no image capture instructions are outputted, size conversion or the like is made, and then image data are displayed. When an image capturing instruction is outputted, the reading of the image data read at the time of the instruction is completed with the timing of the memory read means, the reading is conducted with the timing of a CPU from the image data in the next frame, size conversion or the like is made, and then the image data are displayed and saved. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
この発明は、画像データサイズ変換装置に係わるものであり、例えば、画像データの表示及び保存機能を有する携帯機器等に利用される画像データサイズ変換装置に係わるものである。
【0002】
【従来の技術】
図8は、第1の従来の画像データサイズ変換装置のブロック図であり、撮像画像を表示及び保存するように構成されている。図8において、101は画像を撮像する画像撮像手段、102は画像データをフレームメモリ103に書き込むメモリ書き込み手段、103は画像データと同じかそれ以上のデータ容量を有するフレームメモリ、104はフレームメモリ103に書き込まれた画像データを読み出すメモリ読み出し手段、105は画像サイズ変換手段であり、表示手段107にて表示する大きさに適合するよう、画像データのサイズを変換する。106は表示手段107の入力フォーマットに従って画像データをフォーマット変換し、画像データを出力する表示制御手段、107は液晶ディスプレイや有機EL等の画像データを表示する表示手段である。108は中央演算装置(以下、「CPU」と言う。)であり、データバス、制御線等を有し、各手段、メモリの動作を制御するとともに、フレームメモリ103に書き込まれた画像データを読み出し、サイズ変換やフォーマット変換をおこなう。109はサイズ変換やフォーマット変換した画像データを、取り込み保存しておく保存用大容量メモリである。
【0003】
次に、動作について説明する。
画像撮像手段101は撮像した画像を、水平画素数N画素、垂直画素数M画素(以下、「画素数N×M」と言う。)の画像データとして、メモリ書き込み手段102に出力する。メモリ書き込み手段102は、画像撮像手段101から出力される画像データを、画素数N×M又はそれ以上のデータ容量をもつフレームメモリ103に書き込む。このフレームメモリ103への書き込み動作について、図9を参照して説明する。即ち、フレームメモリ103内のアドレス(N、M)=(0、0)からスタートし、(N、M)=(1、0)、(N、M)=(2、0)と水平方向(図9中、紙面に向かって左から右へ向かう方向)に(N、M)=(N―1、0)まで1ライン分の画像データを順次書き込み、書き終えると、次に、(N、M)=(0、1)から水平方向に2ライン目の画像データを書き込む。2ライン目の最後に、アドレス(N、M)=(N−1、1)まで書き込み、書き終えると、3ライン目に書き込みを行なう。この動作を繰り返し、フレームメモリ102内のアドレスが(N、M)=(N−1、M−1)まで1画面分の画像データを書き終えると、再び次の画素数N×Mの画像データが画像撮像手段101から出力され、メモリ書き込み手段102は、アドレス(N、M)=(0、0)から順次書き込みを開始する。以上のような動作を繰り返してフレームメモリ103内の画像データが更新される。
【0004】
フレームメモリ103に書き込まれた画像データは、メモリ書き込み手段102がフレームメモリ103に書き込みを行なう速度に比べて、十分に速い速度でメモリ読み出し手段104により読み出される。フレームメモリ103への書き込みおよび読み出しのタイミングを図10を参照して説明する。なお、通常、フレームメモリ103は書き込みと読み出しが同時にできないメモリであることが多い。そこで、フレームメモリ103からの画像データの読み出しは、画像撮像手段101の垂直ブランキング期間を利用しておこなわれれ、メモリ書き込み手段102からフレームメモリ103への画像データの書き込みは、各垂直ブランキング期間に挟まれた時間帯に行なわれる。即ち、メモリ読み出し手段104は、画像撮像手段101から出力される垂直同期信号を受け取り、この同期信号により画像データ書き込み期間を判断して、垂直ブランキングの期間内に読み出しを行なう。したがって、フレームメモリ103からの画像データの読み出しは垂直ブランキング期間内に完了する必要があり、フレームメモリ103への画像データの書き込みは、各垂直ブランキング期間に挟まれた時間帯で完了する必要がある。
【0005】
メモリ読み出し手段104は、図9を参照して説明したような書き込みの手順と同様に、画素数N×Mの画像データを、フレームメモリ103内のアドレス(N、M)=(0、0)から水平方向に順に(N、M)=(N―1、0)まで1ライン分の画像データを読み出し、次に(N、M)=(0、1)から水平方向に2ライン目の画像データを読み出し、(N、M)=(N−1、1)まで読み出すと、次に3ライン目の読み出しを行なう。この動作を繰り返し、フレームメモリ103内のアドレスが(N、M)=(N−1、M−1)まで1画面分の画像データを読み出す。したがって、メモリ読み出し手段104から画像サイズ変換手段105には、ライン毎に画像データが出力される。この画像データの読み出しを垂直ブランキング期間内に完了すると、フレームメモリ103には次のフレームの新しい画像データが書き込まれる。そして、次の垂直ブランキング期間で、フレームメモリ103にある新しいフレームの画像データの読み出しを行なう。
【0006】
メモリ読み出し手段104により読み出され、画像サイズ変換手段105に出力された画像データは、画像サイズ変換手段105により所望のサイズに変換される。なお、変換後の画像データのサイズは、表示手段107に表示するサイズにより決定される。つまり、表示手段107で画素数H×Kの大きさで表示する場合は、画素数N×Mの画像データを画素数H×Kの画像データにサイズ変換する必要がある。サイズ変換の具体的な方法については、後述する。サイズ変換された画素数H×Kの画像データは、画像サイズ変換手段105から表示制御手段106に出力される。
【0007】
表示制御手段106は、画素数H×Kの画像データを表示手段107に表示可能な形式にフォーマット変換を行ない、表示手段107に画像データを出力する。また、表示手段107は内部に表示画面用メモリ107aを有しており、表示制御手段106から出力された画像データを保持し、表示手段107のリフレッシュタイミングに合わせてこのメモリ107aから読出し、画像データを表示する。
【0008】
次に、画像データを保存用大容量メモリ109へ取り込む手順を、図11に示す。図11に示すように、第2フレーム目の書き込みの途中で画像データの取り込み指示が出されると、CPU108はまず最初に、メモリ読み出し手段104に対し、第2フレームの画像データを読み出した後に読み出し作業を停止するよう制御する。すると、表示手段107には第2フレームの画像データが表示された状態となり、ユーザーはその画像データを確認することが出来る。次に、CPU108はメモリ書き込み手段102に対し、画像撮像手段101から出力される第3フレームの画像データが、フレームメモリ103に書き込まれることを禁止するよう制御する。そして、CPU108は、CPUBUSを介し第2フレームの画像データをフレームメモリ103から読み出す。読み出された第2フレームの画像データは、さらにCPU108で所望のサイズ、フォーマットに変換され、保存用大容量メモリ109に取り込まれ、保存される。
【0009】
なお、保存用大容量メモリ109に取り込まれた画像データを、表示手段106に表示することもできる。すなわち、保存用大容量メモリ109に取り込まれた画像データをCPU108が読み出し、当該CPU108においてサイズ、フォーマット変換した後、CPUBUSを介してフレームメモリ103に出力する。そして、メモリ読込み手段104、画像サイズ変換手段105、表示制御手段106を介し、表示手段107に表示する。また、保存用大容量メモリ109への取り込みまではされていないが、CPU108に読み込まれた画像データも、上述したのと同様に、当然表示手段107に表示することができる。
【0010】
上記第1の従来の画像データサイズ変換装置では、フレームメモリ103は画像データ1フレーム分以上の大容量のものが必要であった。そこで、より容量の小さいメモリで済ませる工夫もなされており、それを第2の従来の画像データサイズ変換装置として説明する。図12は第2の従来の画像データサイズ変換装置のブロック図であり、撮像画像を表示及び保存するように構成されている。図12において、201は画像を撮像する画像撮像手段、202はメモリ203に画像データを書き込むメモリ書き込み手段、203は画像データをサイズ変換するために必要な所定のデータ容量を有して、画像データを一時的に保存するメモリ、204はメモリ203に書き込まれた画像データを読み出すメモリ読み出し手段、205は画像サイズ変換手段であり、表示手段107にて表示する大きさに適合するよう、画像データのサイズを変換する。208はCPUであり、データバス、制御線等を有し、各手段の動作を制御する。なお、図8と同様の要素については、同じ符号が付されている。
【0011】
次に、動作について説明する。
画像撮像手段201は撮像した画像に対する画素数N×Mの画像データを、メモリ書き込み手段202に出力する。メモリ書き込み手段202は、画像撮像手段201から出力される画像データを、画素数N×(a×2)のデータ容量をもつ、画像データを一時的に保存するメモリ203に書き込む。このとき垂直分割数aは正の整数であり、垂直分割数aの値は、画像サイズ変換手段205において画像データをサイズ変換するのに必要な、垂直方向の画素数により決定される。メモリ読み出し手段204はメモリ書き込み手段203からの書き込み完了信号を受け、メモリ202から画像データの読み出しを行なう。読み出された画像データは、画像サイズ変換手段205に出力されサイズ変換される。
【0012】
画像撮像手段201からメモリ書き込み手段202に出力される画像データの大きさは、第1の従来の例と同様に画素数N×Mである。メモリ書き込み手段202は、画素数N×Mの画像データを、画素数N×aのデータに分割してメモリ203に書き込む。また、メモリ203は、画素数N×aのデータ容量を持つ領域αと、同じデータ容量の領域βとにより構成される。図13は、画素数N×Mの画像データを、画素数N×aのデータ容量をそれぞれ有するM/a個のブロックに分割し、それぞれAブロック、Bブロック、Cブロック、…(M/a)ブロックとしたこと、及びメモリ203が、各領域のデータ容量が各々画素数N×aである領域αと領域βとにより構成されている状態を示している。
【0013】
画像データのメモリ203への書き込みからサイズ変換までの手順を詳細に説明する。
まず、メモリ書き込み手段202は、Aブロックのデータの領域αへの書き込みを開始する。図14に示すように、Aブロックのデータの領域αへの書き込みが、領域αの最後の画素である画素N×a画素目まで達すると、メモリ書き込み手段202はメモリ読み出し手段204に領域αへの書き込み完了信号を出力し、次に、Bブロックのデータの領域βへの書き込みを開始する。
【0014】
メモリ書き込み手段202から領域αへの書き込み完了信号を受け取ったメモリ読み出し手段204は、領域αに書き込まれたAブロックのデータの読み出しを開始する。この時、メモリ読み出し手段204が領域αからデータを読み出す速度は、メモリ書き込み手段202が領域αへ書き込む速度よりも十分に速い。
【0015】
Bブロックのデータの領域βへの書き込みが、領域βの最後の画素N×a×2画素目まで達すると、メモリ書き込み手段202はメモリ読み出し手段204に領域βへの書き込み完了信号を出力し、次にCブロックのデータの領域αへの書き込みを開始する。この時、領域αに一時的に保存されたAブロックのデータは、メモリ読み出し手段204によって読み出されており、N×a画素目までの読み出しが完了している。
【0016】
メモリ書き込み手段202から領域βへの書き込み完了信号を受け取ったメモリ読み出し手段204は、領域βに書き込まれたBブロックのデータの読み出しを開始する。この時、領域βからのデータの読み出しは、メモリ書き込み手段202が領域βへ書き込む速度よりも十分に速い速度で行なわれる。
【0017】
続いてメモリ書き込み手段203は、Cブロックのデータの領域αへの書き込みを開始し、書き込みが領域αの最後の画素N×a画素目まで達すると、メモリ読み出し手段203に領域αへの書き込み完了信号を出力し、次にDブロックのデータの領域βへの領域に書き込みを開始する。図13において、上記のような動作を(M/a)ブロックのデータまで書き込み、読み出しを繰り返し、1フレーム分の画像データの読み出しが完了する。さらに、次のフレームでも上記と同様に動作することにより、連続した画像データの読み出しが可能である。
【0018】
次に、画像サイズ変換手段205にて行われる、画像データのサイズ変換方法について説明する。今、水平および垂直方向ともに、例えば1/2倍のサイズ変換を行なう場合について述べる。なお、画像サイズ変換においては一般に水平方向、垂直方向とも同一の倍率にてサイズ変換が行われる。1/2倍のサイズ変換の場合は垂直分割数a=2であり、図13においては、Aブロック、Bブロック、・・・等の各ブロック、及び領域α、領域βの大きさは画素数N×2となる。また、図15に領域α、又は領域βからの画素の読み出し順、及び画素の生成方法を模式的に示す。垂直分割数a=2の場合、4画素から新たな1画素を生成することになる。したがって、メモリ読み出し手段204は、図15に示すような番号順に画素の読み出しを行ない、順次読み出した4画素から1画素を生成する。新たな画素の生成の方法としては、4画素の平均を取ったり、代表点のデータを採用したり、各画素と係数との演算により生成する等の手法がある。画素1から画素4までの読み出したこれら4画素から1画素を生成すると、次に上記と同様に、図15に示すように画素5から順に画素8まで読み出しを行ない、この4画素から次の1画素を生成する。こうして画素数N×2のデータから画素数N/2のデータを生成する。生成された画像データは、画像サイズ変換手段205から表示制御手段206に出力される。
【0019】
また、例えば垂直分割数a=1の場合には、図16に示すように、領域α、領域βとも画素数N×1の大きさ、つまり、水平方向に1ライン分の大きさとなるので、メモリ202は2ライン分のメモリを用意しておけばよく、メモリ読み出し手段204から出力されたデータは、画像サイズ変換手段205が1倍のサイズ変換を行ったことになり、そのまま表示制御手段106に出力される。
【0020】
メモリ読み出し手段204により読み出され、画素サイズ変換手段205においてサイズ変換されたデータは、表示制御手段106に出力される。表示制御手段106は、サイズ変換処理された画像データを、表示手段107に表示可能な形式にフォーマット変換を行ない、表示手段107に画像データを出力する。
【0021】
また、画像データを保存用大容量メモリ109へ取り込む手順を示す。図11に示したように、第1の従来の例と同様に、第2フレーム目の書き込みの途中で画像取り込みの指示が出されると、CPU208はまず最初にメモリ読み出し手段204対し、第2フレームを読み出した後に読み出し作業をとめるように制御する。このとき、表示手段107には第2フレームの画像データが表示された状態となり、ユーザーはその画像データを確認することが出来る。なお、CPU208と表示制御手段106は非同期であるため、画像サイズ変換手段205からCPU208と表示制御手段106とに同時に画像データを出力することはできない。また、メモリ203は、1フレーム分の画像データを保持しているフレームメモリ103と異なり、画像サイズ変換に必要な分のデータ容量しかないため、メモリ書き込み手段202に書き込みを止める制御をすることができない。したがって、次に、CPU208は、所望のサイズの画像データをCPU208自身が読み込むために、CPUBUSを介してメモリ203、メモリ読み出し手段204、画像サイズ変換手段205にそれぞれ設定を行ない、画像サイズ変換手段205の出力データバスをCPUBUSに切り替え、画像サイズ変換手段205を通して所望のサイズ、フォーマットに変換された画像データを読み込み、保存用大容量メモリ109に画像データを取り込む。
【0022】
したがって、CPU208が読み込む画像データは、表示手段107に表示している第2フレームの画像データではなく、次の第3フレームまたは数フレーム後の画像データとなる。CPU208が読み込んだ画像データや、保存用大容量メモリ109に取り込まれた画像データは、表示手段107が表示可能な形式に変換を行なった後、画像サイズ変換手段205、表示制御手段106を介して画像データ転送し、表示する画像データを更新する。
【0023】
【発明が解決しようとする課題】
従来の画像データサイズ変換装置は、以上のように構成されていたので、下記のような問題が有った。まず、第1の従来例においては、画像データのサイズが大きくなると画像データサイズ分のフレームメモリの容量が必要となる。この場合、LSI等の内部にフレームメモリを持たせるとLSIのチップ面積が増大し、LSIの外部にフレームメモリを持たせても、機器本体のサイズアップに繋がり、機器の小型化が要求されている携帯電話等の端末装置では、その要求に反することとなる。さらに、画像データを保存用大容量メモリに取り込むために、画像データのサイズ、フォーマット変換等の処理をCPUが行なっていたため、CPUの処理能力を低下させる原因になっていた。
【0024】
また、第2の従来例においては、表示している画像データとCPUに読み込まれる画像データではフレームが一致しないため、CPUに読み込まれた画像データや保存用大容量メモリに取り込まれた画像データをユーザーが確認するためには、画像データをサイズ、フォーマット変換した後に表示手段に転送して、表示を更新させる必要があった。
【0025】
この発明は以上のような問題点を解決するためになされたもので、画像データを一時的に書き込むメモリの容量の削減と機器本体のサイズアップ防止、CPUの処理能力の低下を防止すると共に、表示される画像データと、保存用に取込まれる画像データとを同じフレームの画像データとすることができる画像データサイズ変換装置を供給することを目的とする。
【0026】
【課題を解決するための手段】
この発明に係る画像データサイズ変換装置は、入力される画像データをメモリに書き込むメモリ書き込み手段と、入力される画像データの1フレーム分より小さい容量を有し、複数の領域に分割され、上記各々の領域に対する書き込み、読み出しの操作をそれぞれ独立して行うことができるメモリと、上記メモリに書き込まれる画像データを読み出すメモリ読み出し手段と、上記メモリ読み出し手段により読み出される画像データのサイズを変換する画像サイズ変換手段と、サイズ変換された画像データを表示する表示手段と、上記各手段とメモリを制御する中央演算装置と、画像データを保存する保存用大容量メモリとを備え、上記メモリ書き込み手段から画像データの書き込み完了信号が上記中央演算装置に出力され、上記完了信号を受取った上記中央演算装置から出力される制御信号に基づいて上記メモリ読み出し手段を制御し、上記中央演算装置は上記画像サイズ変換手段から画像データを読み出し、保存用大容量メモリに画像データを取り込むこととしたものである。
【0027】
また、メモリの各領域は、画像サイズ変換手段における画像データのサイズ変換動作に必要な容量を有することとしてもよい。
【0028】
さらに、画像撮像手段を更に備え、画像データは画像撮像手段から出力されるものであることとしてもよい。
【0029】
【発明の実施の形態】
以下、この発明に係る画像データサイズ変換装置を図を用いて説明する。
【0030】
実施の形態1.
図1は、この発明の実施の形態1に係る、画像データサイズ変換装置のブロック図であり、撮像画像を表示及び保存するように構成されている。図1において、1は画像を撮像する画像撮像手段、2はメモリ3に画像データを書き込むメモリ書き込み手段、3は画像データをサイズ変換するために必要な所定のデータ容量を有して、画像データを一時的に保存するメモリであり、第2の従来の画像データサイズ変換装置で説明したメモリ203と同様に複数の領域、具体的には画素数N×aの二つの領域に分割されており、1フレーム分の画素数N×Mのデータ容量よりはるかに小さい。4はメモリ3に書き込まれた画像データを読み出すメモリ読み出し手段、5は画像データを所望のサイズに変換する画像サイズ変換手段、6は表示手段7の入力フォーマットに従って画像データをフォーマット変換し、画像データを出力する表示制御手段、7は液晶ディスプレイや有機EL等の画像データを表示する表示手段である。8はCPUであり、データバス、制御線等を有し、各手段の動作を制御する。9はサイズ変換やフォーマット変換した画像データを、取り込み保存しておく保存用大容量メモリである。なお、メモリ書き込み手段2からの書き込み完了信号は、メモリ読み出し手段4だけでなく、CPU8にも出力される点が第2の従来の画像データサイズ変換装置と相違する。また、CPU8は、書き込み完了信号を受けてアドレス信号CPU_Add、リード信号CPU_RDをメモリ読み出し手段4に出力し、メモリ読み出し手段4は、ウェイト信号WAITをCPU8に出力する点でも第2の従来の画像データサイズ変換装置と相違する。
【0031】
次に、動作に付いて、画像データの取り込み指示が出る場合について、図2を用いて動作を説明する。
図2に示すように、例えば、第2フレーム目の画像データを読み出している途中で画像取り込み指示を受けるとする。この場合、第1フレームの画像データの読み出しは、第2の従来例で説明したように、メモリ書き込み手段2からメモリ読み出し手段4へ完了信号が出力され、画像データの読み出しやサイズ変換等が行われ、既に完了している。さらに、第2フレーム目の画像データについても第1フレームの場合と同様、1フレーム分の画像データの読み出しが終了するまでは、メモリ読み出し手段4のタイミングでメモリ3の読み出しを行なう。メモリ書き込み手段2は、第2フレーム目の最後のデータブロックである(M/a)ブロックのデータをメモリ3に書き込んだ後、書き込み完了信号をCPU8に出力する。書き込み完了信号を受取ったCPU8はタイミング制御を行い、第2フレーム目と第3フレーム目の間のブランキング期間で読み出しタイミングの切り換えを行なう。第3フレーム目の画像データの読み出しは、CPU8のタイミングで行われ、画像データの表示、保存処理が行われる。
【0032】
図3、図4を用いて、第3フレームの画像データの処理について説明する。
まず、メモリ書き込み手段2は、Aブロックのデータの領域αへの書き込みを開始する。Aブロックのデータの領域αへの書き込みが、領域αの最後の画素である画素N×a画素目まで達すると、メモリ書き込み手段2はメモリ読み出し手段4に領域αへの書き込み完了信号INT1を出力し、次に、Bブロックのデータの領域βへの書き込みを開始する。
【0033】
メモリ書き込み手段2から領域αへの書き込み完了信号INT1を受け取ったCPU8は、領域αに書き込まれたAブロックのデータの読み出し指令をメモリ読み出し手段4に出力する。
CPU8からメモリ読み出し手段4に出力される読み出し指令を、図4を用いて説明する。まず、CPU8がメモリ読み出し手段4に、アドレス信号CPU_Add=A1、読み出し信号CPU_RDをLOWとして出力すると、メモリ読み出し手段4はCPU8にWAIT信号をHIGHとして出力し、CPU8の画像データの読み出しを待たせる。この間、メモリ読み出し手段4は、図3の番号に対応するメモリ読み出しアドレスMA1、MA2、MA3、MA4を発生し、メモリ3の各画素から各々の画像データD1、D2、D3、D4を読み出す。そして、これらの画像データを画像サイズ変換手段5に出力する。画像サイズ変換手段5では、出力された各画像データD1、D2、D3、D4からデータサイズが変換された画像データDD1を作成する。画像データDD1が生成されるタイミングで、メモリ読み出し手段4がCPU8に出力していたWAIT信号をHIGHからLOWに設定を変えると、読み出し信号CPU_RDがHIGHに移行し、1クロック後にLOWに戻る。この時、画像サイズ変換手段5はCPUBUSに画像データDD1を出力し、CPU8はサイズ変換された画像データDD1をCPUBUSから読み出し、保存用大容量メモリ9に画像データDD1を取り込む。また、読み出し信号CPU_RDがHIGHに移行したタイミングで、画像サイズ変換手段5は表示制御手段7に読み出しイネーブル信号をHIGHからLOWに移行させ、1クロック後にHIGHに戻す。表示制御手段6はこのタイミングでサイズ変換後の画像データDD1を画像サイズ変換手段5から読み出す。したがって、サイズ変換後の画像データDD1がCPU8を経て保存用大容量メモリ9に取り込まれる、CPU_RDがHIGHの期間となるタイミングと、表示制御手段6が画像データDD1を読み出す、読み出しネーブル信号がLOWと期間は同じタイミングとなる。同様のタイミング手順にて、画像サイズ変換後の2画素目の画像データDD2をCPU8と表示制御手段6が読み出す。これを繰り返して、Aブロックを読み出してN/2画素のデータを取り込む。
【0034】
Bブロックのデータの領域βへの書き込みが、領域βの最後の画素N×a×2画素目まで達すると、メモリ書き込み手段2はCPU8に領域βへの書き込み完了信号INT2を出力し、次にCブロックのデータの領域αへの書き込みを開始する。この時、領域αに一時的に保存されたAブロックのデータは、メモリ読み出し手段4によって読み出されており、N×a画素目までの読み出しが完了している。
【0035】
メモリ書き込み手段2から領域βへの書き込み完了信号INT2を受け取ったCPU8は、領域βに書き込まれたBブロックのデータの読み出し指令をメモリ読み出し手段4に出力する。
以下の動作は、上記の場合と同様である。
これらの動作を、(M/a)ブロックのデータの読み出し、書き込み完了信号INT(M/a)の出力までサイズ変換を繰り返し、1フレーム分の画像データの変換作業が完了する。
【0036】
このように、メモリ3を複数の領域に分割し、領域毎に書き込みと読み出しを独立して行うようにしたので、メモリ容量が画像データ1フレーム分の容量より小さくてすむ。また、CPU8のタイミングでメモリ読み出し手段4の書き込みと読み出し動作を行うようにしたので、保存用大容量メモリ9に取り込む画像データと表示手段7に表示させる画像データとが同一フレームの画像となる。
【0037】
なお、CPU8から画像データの取り込み指示が出ていない場合は、画像データを表示手段7に表示させるための処理、即ち、画像データのメモリ3への書き込み、メモリ3からの読み出し、画像サイズ変換等における各手段の動作等が第2の従来例と同様であるので、ここでは詳細な説明は省略する。
【0038】
実施の形態2.
次に実施の形態2に付いて説明する。
実施の形態1では、表示手段7に表示させる画像データと、CPU8により読み込まれる画像データのサイズが同じであった。この実施の形態2では、表示される画像データと、読み込まれる画像データのサイズが異なる場合に付いて説明する。なお、機器の構成は実施の形態1で説明した図1と同様であるため、図1の説明は省略する。また、メモリ書き込み手段2、メモリ3、画像サイズ変換手段4、CPU8、書き込み完了信号等についても実施の形態1と同様であるため、説明を省略する。
【0039】
CPU8からメモリ読み出し手段4に出力される読み出し指令を、図5を用いて説明する。書き込み完了信号を受取ったCPU8はメモリ読み出し手段4に、アドレス信号CPU_Add=A1、読み出し信号CPU_RDをLOWとして出力するが、メモリ読み出し手段4は、CPU8にWAIT信号をHIGHとして出力せず、CPU8の画像データの読み出しを待たせない。したがって、CPU8からの読み出し信号CPU_RDは、実施の形態1の場合よりも短い周期でHIGH、LOWを繰り返す。メモリ読み出し手段4は、図3の番号に対応するメモリ読み出しアドレスMA1、MA2、MA3、MA4をそれぞれ発生し、メモリ3の各画素から各々の画像データD1、D2、D3、D4を順番に読み出す。そして、これらの画像データを順番に画像サイズ変換手段5に出力する。一方、CPU_RDがHIGHに移行し1クロック後にLOWとなるタイミングで、画像サイズ変換手段5は画像データをCPUBUS出力し、CPU8はCPUBUSを介しこれらのサイズ変換前の画像データを読み出し、保存用大容量メモリ9に取り込む。したがって、CPU8が読み出し、保存用大容量メモリ9に取り込まれる画像データは、画像サイズ変換前のD1、D2、D3、D4そのものである。一方、画像サイズ変換手段5では、出力された各画像データD1、D2、D3、D4から画像データDD1を作成する。画像データDD1が生成されるタイミングで、画像サイズ変換手段5は表示制御手段6に読み出しイネーブル信号を出力し、表示制御手段6はこのタイミングでサイズ変換後の画像データDD1を画像サイズ変換手段5から読み出す。
【0040】
同様のタイミング手順にて、画像サイズ変換前のD5、D6、D7、D8が画像サイズ変換手段5、CPUBUS、CPU8を介し保存用大容量メモリ9に取り込まれ、表示制御手段6は画像サイズ変換手段5から画像サイズ変換後の2画素目の画像データDD2を読み出す。
この動作を繰り返すと保存用大容量メモリ9に取り込まれる画像データはサイズ変換前のものであるから、画素数N×Mの画像データとなる一方、表示手段7に表示される画像データは(N×M)/4の大きさとなる。
【0041】
実施の形態3.
図6は、この発明の実施の形態3に係る画像データサイズ変換装置のブロック図であり、撮像画像を送信するように構成されており、撮像画像を送信する装置、例えば携帯電話端末機器、PDA等である。図6において、11は送信手段である。なお、図1と同様の要素については、同じ符号が付されている。実施の形態1、2については撮像画像を表示、保存する装置について説明したが、本発明はその実施の形態において説明したものに限られるものではなく、図6のように画像サイズ変換手段5の後段に送信手段11を設けてもよい。送信手段11は表示手段7、保存用大容量メモリ9と交換して構成してもよく、また、新たに追加して構成してもよい。もちろん、それらが一体とに構成されていてもよい。このように送信手段11を備えることにより、他の端末機器に画像データを送信することが可能となる。
【0042】
実施の形態4.
図7は、この発明の実施の形態4に係る画像データサイズ変換装置のブロック図であり、装置外部からの画像を受信するように構成されており、装置外部からの画像を受信する装置、例えば、携帯電話端末機器、PDA等である。図7において、12は受信手段である。なお、図1と同様の要素については、同じ符号が付されている。上記では撮像画像を送信する装置について説明したが、図7のようにメモリ書き込み手段2の前段に受信手段12を設けてもよい。受信手段12は表示手段7、保存用大容量メモリ9、発信手段11と交換して構成してもよく、また、新たに追加して構成してもよい。もちろん、それらが一体として構成されていてもよい。さらに、送信手段11と受信手段12とを備えた構成としてもよい。このように受信手段12を備えることにより、他の端末機器からの画像データを受信することが可能となり、同時に送信手段11を備えれば、画像データの送受信が可能となる。
また、サイズ変更の対象となる画像データは、撮像画像に限られるものではなく、受信手段12により受信した画像や、ダウンロード画像でもよい。また、静止画、動画のいずれでもよい。
【0043】
【発明の効果】
この発明は、以上説明したように構成されているので、以下に示すような効果を奏する。
【0044】
入力される画像データをメモリに書き込むメモリ書き込み手段と、入力される画像データの1フレーム分より小さい容量を有し、複数の領域に分割され、上記各々の領域に対する書き込み、読み出しの操作をそれぞれ独立して行うことができるメモリと、上記メモリに書き込まれる画像データを読み出すメモリ読み出し手段と、上記メモリ読み出し手段により読み出される画像データのサイズを変換する画像サイズ変換手段と、サイズ変換された画像データを表示する表示手段と、上記各手段とメモリを制御する中央演算装置と、画像データを保存する保存用大容量メモリとを備え、上記メモリ書き込み手段から画像データの書き込み完了信号が上記中央演算装置に出力され、上記完了信号を受取った上記中央演算装置から出力される制御信号に基づいて上記メモリ読み出し手段を制御し、上記中央演算装置は上記画像サイズ変換手段から画像データを読み出し、保存用大容量メモリに画像データを取り込むこととしたので、画像データを一時的に書き込むメモリの容量の削減と機器本体のサイズアップを防止でき、CPUの処理能力の低下を防止しつつ、表示される画像データと、保存用に取込まれる画像データとを同じフレームの画像データすることができる。
【0045】
メモリの各領域は、画像サイズ変換手段における画像データのサイズ変換動作に必要な容量を有することとすれば、画像データを一時的に書き込むメモリの容量の削減することができる。
【0046】
画像撮像手段を更に備え、画像データは画像撮像手段から出力されるものであることとすれば、画像データを一時的に書き込むメモリの容量の削減と機器本体のサイズアップを防止できる。
【図面の簡単な説明】
【図1】実施の形態1における画像データサイズ変換装置を示すブロック図である。
【図2】実施の形態1におけるメモリの書き込み、及び読み出しのタイミングを示す図である。
【図3】実施の形態1における、垂直分割数a=2によるサイズ変換を説明するための説明図である。
【図4】実施の形態1における、画像データの読み出しのタイミングを示す図である。
【図5】実施の形態2における、画像データの読み出しのタイミングを示す図である。
【図6】実施の形態3における画像データサイズ変換装置を示すブロック図である。
【図7】実施の形態4における画像データサイズ装置を示すブロック図である。
【図8】第1の従来の画像データサイズ変換装置を示すブロック図である。
【図9】第1の従来の画像データサイズ変換装置における、フレームメモリの書き込み、及び読み出し方法を示す図である。
【図10】第1の従来の画像データサイズ変換装置における、フレームメモリの書き込み、及び読み出しのタイミングを示す図である。
【図11】第1の従来の画像データサイズ変換装置における、画像データを保存用大容量メモリに取り込むタイミングを示す図である。
【図12】第2の従来の画像データサイズ変換装置を示すブロック図である。
【図13】第2の従来の画像データサイズ変換装置における、メモリに書き込むために分割された画像データ、及び複数の領域で構成されたメモリを示す図である。
【図14】第2の従来の画像データサイズ変換装置におけるメモリの書き込み、及び読み出しのタイミングを示す図である。
【図15】第2の従来の画像データサイズ変換装置における、垂直分割数a=2によるサイズ変換を説明するための説明図である。
【図16】第2の従来の画像データサイズ変換装置における、垂直分割数a=1によるサイズ変換を説明するための説明図である。
【符号の説明】
1 画像撮像手段、2 メモリ書き込み手段、3 メモリ、4 メモリ読み出し手段、5 画像サイズ変換手段、6 表示制御手段、7 表示手段、8 CPU、9 保存用大容量メモリ、11 送信手段、12 受信手段。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image data size conversion device, for example, to an image data size conversion device used for a portable device having a function of displaying and storing image data.
[0002]
[Prior art]
FIG. 8 is a block diagram of a first conventional image data size conversion device, which is configured to display and store a captured image. 8, reference numeral 101 denotes an image capturing unit that captures an image; 102, a memory writing unit that writes image data into a frame memory 103; 103, a frame memory having a data capacity equal to or larger than image data; And 105, an image size conversion means for converting the size of the image data so as to match the size displayed on the display means 107. Reference numeral 106 denotes a display control means for converting the format of image data according to the input format of the display means 107 and outputting the image data, and 107 a display means for displaying image data such as a liquid crystal display or an organic EL. Reference numeral 108 denotes a central processing unit (hereinafter, referred to as a “CPU”), which has a data bus, control lines, and the like, controls the operation of each unit and memory, and reads image data written in the frame memory 103. Perform size conversion and format conversion. Reference numeral 109 denotes a large-capacity storage memory that captures and stores image data that has been subjected to size conversion or format conversion.
[0003]
Next, the operation will be described.
The image capturing unit 101 outputs the captured image to the memory writing unit 102 as image data having N horizontal pixels and M vertical pixels (hereinafter referred to as “pixel number N × M”). The memory writing unit 102 writes the image data output from the image capturing unit 101 to a frame memory 103 having a data capacity of N × M pixels or more. The write operation to the frame memory 103 will be described with reference to FIG. That is, starting from the address (N, M) = (0, 0) in the frame memory 103, (N, M) = (1, 0), (N, M) = (2, 0) and the horizontal direction ( In FIG. 9, one line of image data is sequentially written until (N, M) = (N-1, 0) in the direction from left to right toward the page, and when writing is completed, (N, M) M) = (0,1) Writes the image data of the second line in the horizontal direction. At the end of the second line, writing is performed up to the address (N, M) = (N-1, 1), and when writing is completed, writing is performed on the third line. When this operation is repeated and the image data for one screen is written until the address in the frame memory 102 becomes (N, M) = (N-1, M-1), the image data of the next pixel number N × M is again obtained. Is output from the image capturing unit 101, and the memory writing unit 102 starts writing sequentially from the address (N, M) = (0, 0). By repeating the above operation, the image data in the frame memory 103 is updated.
[0004]
The image data written in the frame memory 103 is read out by the memory reading unit 104 at a speed sufficiently faster than the speed at which the memory writing unit 102 writes into the frame memory 103. The timing of writing to and reading from the frame memory 103 will be described with reference to FIG. Note that usually, the frame memory 103 is often a memory in which writing and reading cannot be performed simultaneously. Therefore, the reading of the image data from the frame memory 103 is performed using the vertical blanking period of the image capturing unit 101, and the writing of the image data from the memory writing unit 102 to the frame memory 103 is performed in each vertical blanking period. It is performed in the time zone between That is, the memory reading unit 104 receives the vertical synchronizing signal output from the image capturing unit 101, determines the image data writing period based on the synchronizing signal, and performs reading during the vertical blanking period. Therefore, the reading of the image data from the frame memory 103 needs to be completed within the vertical blanking period, and the writing of the image data to the frame memory 103 needs to be completed within the time period between each vertical blanking period. There is.
[0005]
The memory reading unit 104 stores the image data of the number of pixels N × M in the frame memory 103 at the address (N, M) = (0, 0) in the same manner as the writing procedure described with reference to FIG. , The image data for one line is sequentially read out from (N, M) = (N−1, 0) in the horizontal direction, and then the image of the second line in the horizontal direction from (N, M) = (0, 1) When the data is read out and read out until (N, M) = (N-1, 1), the reading of the third line is performed next. This operation is repeated, and the image data for one screen is read out until the address in the frame memory 103 becomes (N, M) = (N-1, M-1). Therefore, image data is output from the memory reading unit 104 to the image size conversion unit 105 line by line. When the reading of the image data is completed within the vertical blanking period, new image data of the next frame is written into the frame memory 103. Then, in the next vertical blanking period, image data of a new frame in the frame memory 103 is read.
[0006]
The image data read by the memory reading unit 104 and output to the image size conversion unit 105 is converted into a desired size by the image size conversion unit 105. The size of the converted image data is determined by the size displayed on the display unit 107. That is, when the display unit 107 performs display with the size of the number of pixels H × K, it is necessary to convert the image data of the number of pixels N × M into image data of the number of pixels H × K. A specific method of size conversion will be described later. The size-converted image data of the number of pixels H × K is output from the image size conversion unit 105 to the display control unit 106.
[0007]
The display control means 106 converts the image data of the number of pixels H × K into a format that can be displayed on the display means 107 and outputs the image data to the display means 107. The display means 107 has a display screen memory 107a therein, holds the image data output from the display control means 106, and reads out the image data from the memory 107a in accordance with the refresh timing of the display means 107. Is displayed.
[0008]
Next, a procedure for loading image data into the large-capacity storage memory 109 is shown in FIG. As shown in FIG. 11, when an instruction to capture image data is issued during the writing of the second frame, the CPU 108 first instructs the memory reading unit 104 to read out the image data of the second frame and then read out the image data. Control to stop work. Then, the image data of the second frame is displayed on the display unit 107, and the user can check the image data. Next, the CPU 108 controls the memory writing unit 102 to prohibit the third frame of image data output from the image capturing unit 101 from being written to the frame memory 103. Then, the CPU 108 reads out the image data of the second frame from the frame memory 103 via the CPUBUS. The read image data of the second frame is further converted into a desired size and format by the CPU 108, taken into the large-capacity storage memory 109, and stored.
[0009]
The image data captured in the large-capacity storage memory 109 can be displayed on the display unit 106. That is, the CPU 108 reads out the image data taken in the large-capacity storage memory 109, converts the size and format in the CPU 108, and outputs the converted data to the frame memory 103 via the CPUBUS. Then, the image is displayed on the display unit 107 via the memory reading unit 104, the image size conversion unit 105, and the display control unit 106. Further, the image data read by the CPU 108 can be naturally displayed on the display means 107 in the same manner as described above, although the image data has not been loaded into the large-capacity storage memory 109.
[0010]
In the first conventional image data size conversion device, the frame memory 103 needs to have a large capacity of one frame or more of image data. In view of the above, there has been a contrivance for using a memory having a smaller capacity, and this will be described as a second conventional image data size converter. FIG. 12 is a block diagram of a second conventional image data size conversion apparatus, which is configured to display and store a captured image. In FIG. 12, reference numeral 201 denotes an image capturing unit that captures an image; 202, a memory writing unit that writes image data into a memory 203; 203, a predetermined data capacity necessary for converting the size of the image data; 204 is a memory reading means for reading image data written in the memory 203, 205 is an image size converting means, and the image data converting means 205 is adapted to fit the size of the image data to be displayed on the display means 107. Convert size. A CPU 208 has a data bus, control lines, and the like, and controls the operation of each unit. Note that the same components as those in FIG. 8 are denoted by the same reference numerals.
[0011]
Next, the operation will be described.
The image capturing unit 201 outputs image data of the number of pixels N × M for the captured image to the memory writing unit 202. The memory writing unit 202 writes the image data output from the image capturing unit 201 into a memory 203 having a data capacity of N × (a × 2) pixels and temporarily storing image data. At this time, the number of vertical divisions a is a positive integer, and the value of the number of vertical divisions a is determined by the number of pixels in the vertical direction necessary for the image size conversion means 205 to convert the size of image data. The memory reading means 204 receives the write completion signal from the memory writing means 203 and reads image data from the memory 202. The read image data is output to the image size conversion means 205 and subjected to size conversion.
[0012]
The size of the image data output from the image capturing unit 201 to the memory writing unit 202 is the number of pixels N × M as in the first conventional example. The memory writing unit 202 divides the image data having the number of pixels N × M into data having the number of pixels N × a, and writes the divided data into the memory 203. The memory 203 includes an area α having a data capacity of the number N × a of pixels and an area β having the same data capacity. FIG. 13 divides image data having the number of pixels N × M into M / a blocks each having a data capacity of the number of pixels N × a, and each of the blocks A, B, C,... (M / a 3) shows a state in which the memory 203 is composed of a region α and a region β in which the data capacity of each region is the number of pixels N × a.
[0013]
A procedure from writing of image data to the memory 203 to size conversion will be described in detail.
First, the memory writing unit 202 starts writing the data of the A block to the area α. As shown in FIG. 14, when the writing of the data of the block A into the area α reaches the pixel N × a pixel which is the last pixel of the area α, the memory writing means 202 sends the memory reading means 204 to the area α. Then, the writing of the data of the B block to the area β is started.
[0014]
The memory reading means 204, which has received the write completion signal to the area α from the memory writing means 202, starts reading data of the A block written in the area α. At this time, the speed at which the memory reading means 204 reads data from the area α is sufficiently higher than the speed at which the memory writing means 202 writes to the area α.
[0015]
When the writing of the data of the B block to the region β reaches the last pixel N × a × 2 pixel of the region β, the memory writing unit 202 outputs a write completion signal to the region β to the memory reading unit 204, Next, the writing of the data of the C block to the area α is started. At this time, the data of the A block temporarily stored in the area α has been read by the memory reading means 204, and the reading up to the N × a-th pixel has been completed.
[0016]
The memory reading unit 204 that has received the write completion signal to the area β from the memory writing unit 202 starts reading data of the B block written in the area β. At this time, the reading of data from the area β is performed at a speed sufficiently higher than the speed at which the memory writing means 202 writes to the area β.
[0017]
Subsequently, the memory writing means 203 starts writing the data of the C block to the area α, and when the writing reaches the last pixel N × a pixel of the area α, the memory reading means 203 completes the writing to the area α. Then, a signal is output, and then writing of the data of the D block to the area β is started. In FIG. 13, the above operation is repeated until data of (M / a) block is written and read, and reading of image data for one frame is completed. Further, by operating in the same manner as described above in the next frame, continuous image data can be read.
[0018]
Next, a method of converting the size of image data performed by the image size conversion unit 205 will be described. Now, a case will be described in which, for example, a size conversion of 1/2 times is performed in both the horizontal and vertical directions. In image size conversion, size conversion is generally performed at the same magnification in both the horizontal and vertical directions. In the case of 1/2 size conversion, the number of vertical divisions a = 2. In FIG. 13, the size of each block such as A block, B block,. N × 2. FIG. 15 schematically illustrates the order of reading pixels from the region α or the region β, and a method of generating pixels. When the number of vertical divisions a = 2, one new pixel is generated from four pixels. Therefore, the memory reading means 204 reads out the pixels in numerical order as shown in FIG. 15, and generates one pixel from the four pixels sequentially read out. As a method of generating a new pixel, there are a method of averaging four pixels, adopting data of a representative point, and a method of generating by calculating each pixel and a coefficient. When one pixel is generated from the four pixels read out from the pixel 1 to the pixel 4, next, similarly to the above, reading is performed from the pixel 5 to the pixel 8 as shown in FIG. Generate pixels. Thus, data of the pixel number N / 2 is generated from the data of the pixel number N × 2. The generated image data is output from the image size conversion unit 205 to the display control unit 206.
[0019]
Also, for example, when the number of vertical divisions a = 1, as shown in FIG. 16, both the area α and the area β have the size of the number of pixels N × 1, that is, the size of one line in the horizontal direction. The memory 202 only needs to have two lines of memory, and the data output from the memory reading means 204 has been subjected to one-time size conversion by the image size conversion means 205, and the display control means 106 Is output to
[0020]
The data read by the memory reading unit 204 and subjected to size conversion by the pixel size conversion unit 205 is output to the display control unit 106. The display control means 106 converts the size-converted image data into a format that can be displayed on the display means 107, and outputs the image data to the display means 107.
[0021]
Also, a procedure for importing image data into the large-capacity storage memory 109 will be described. As shown in FIG. 11, as in the first conventional example, when an instruction to capture an image is issued during the writing of the second frame, the CPU 208 first causes the memory reading unit 204 to send the second frame to the second frame. Is controlled so that the reading operation is stopped after reading the data. At this time, the image data of the second frame is displayed on the display means 107, and the user can check the image data. Since the CPU 208 and the display control unit 106 are asynchronous, the image data cannot be output from the image size conversion unit 205 to the CPU 208 and the display control unit 106 at the same time. Also, unlike the frame memory 103 that holds image data for one frame, the memory 203 has only the data capacity necessary for image size conversion, so that the memory writing unit 202 can control to stop writing. Can not. Accordingly, the CPU 208 next sets the memory 203, the memory readout unit 204, and the image size conversion unit 205 via the CPU BUS so that the CPU 208 itself reads image data of a desired size. Is switched to the CPU BUS, the image data converted into a desired size and format is read through the image size conversion means 205, and the image data is taken into the large-capacity storage memory 109.
[0022]
Therefore, the image data read by the CPU 208 is not the image data of the second frame displayed on the display means 107 but the image data of the next third frame or several frames later. The image data read by the CPU 208 and the image data taken into the large-capacity storage memory 109 are converted into a format that can be displayed by the display unit 107, and then converted via the image size conversion unit 205 and the display control unit 106. The image data is transferred and the image data to be displayed is updated.
[0023]
[Problems to be solved by the invention]
Since the conventional image data size conversion device is configured as described above, there are the following problems. First, in the first conventional example, when the size of the image data increases, the capacity of the frame memory for the image data size is required. In this case, if a frame memory is provided inside an LSI or the like, the chip area of the LSI increases, and even if a frame memory is provided outside the LSI, it leads to an increase in the size of the device body, and a reduction in the size of the device is required. For example, a terminal device such as a mobile phone violates the demand. Further, since the CPU performs processing such as conversion of the size and format of the image data in order to load the image data into the large-capacity storage memory, it causes a reduction in the processing capability of the CPU.
[0024]
Further, in the second conventional example, since the frames of the displayed image data and the image data read by the CPU do not match, the image data read by the CPU or the image data captured by the large-capacity memory are stored in the memory. In order for the user to confirm, it is necessary to transfer the image data to the display unit after converting the size and format, and update the display.
[0025]
The present invention has been made in order to solve the above-described problems, and it is possible to reduce the capacity of a memory for temporarily writing image data, prevent an increase in the size of a device main body, and prevent a reduction in processing performance of a CPU. It is an object of the present invention to provide an image data size conversion device capable of converting image data to be displayed and image data taken in for storage into image data of the same frame.
[0026]
[Means for Solving the Problems]
An image data size conversion device according to the present invention has a memory writing unit for writing input image data to a memory, and a capacity smaller than one frame of the input image data, and is divided into a plurality of regions. A memory that can independently perform writing and reading operations on the area, a memory reading unit that reads image data written to the memory, and an image size that converts the size of image data read by the memory reading unit Conversion means, display means for displaying the size-converted image data, a central processing unit for controlling each of the means and the memory, and a large-capacity storage memory for storing the image data. A data write completion signal is output to the central processing unit and the completion signal is received. Controlling the memory readout means based on a control signal output from the central processing unit, the central processing unit reads out image data from the image size conversion means, and loads the image data into a large-capacity memory for storage. It is what it was.
[0027]
Further, each area of the memory may have a capacity necessary for the image data size conversion operation of the image size conversion means.
[0028]
Further, the image processing apparatus may further include an image capturing unit, and the image data may be output from the image capturing unit.
[0029]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an image data size conversion device according to the present invention will be described with reference to the drawings.
[0030]
Embodiment 1 FIG.
FIG. 1 is a block diagram of an image data size conversion device according to Embodiment 1 of the present invention, which is configured to display and store a captured image. In FIG. 1, reference numeral 1 denotes an image capturing unit for capturing an image, 2 denotes a memory writing unit that writes image data to a memory 3, and 3 denotes a predetermined data capacity necessary for converting the size of the image data. Is temporarily divided into a plurality of areas, specifically, two areas having the number of pixels N × a, similarly to the memory 203 described in the second conventional image data size conversion apparatus. Is much smaller than the data capacity of N × M pixels for one frame. 4 is a memory reading means for reading the image data written in the memory 3, 5 is an image size converting means for converting the image data into a desired size, 6 is a format converting means for the image data according to the input format of the display means 7, Is a display control means for outputting image data such as a liquid crystal display or an organic EL. A CPU 8 has a data bus, control lines, and the like, and controls the operation of each unit. Reference numeral 9 denotes a large-capacity memory for storing image data that has been subjected to size conversion or format conversion. Note that the write completion signal from the memory writing means 2 is output not only to the memory reading means 4 but also to the CPU 8, which is different from the second conventional image data size conversion apparatus. Further, the CPU 8 outputs the address signal CPU_Add and the read signal CPU_RD to the memory reading means 4 in response to the write completion signal, and the memory reading means 4 outputs the wait signal WAIT to the CPU 8 in the second conventional image data. It is different from the size conversion device.
[0031]
Next, a case where an instruction to capture image data is issued will be described with reference to FIG.
As shown in FIG. 2, for example, it is assumed that an image capture instruction is received while image data of the second frame is being read. In this case, in the reading of the image data of the first frame, as described in the second conventional example, a completion signal is output from the memory writing means 2 to the memory reading means 4, and the reading of the image data and the size conversion are performed. We have already completed. Further, as for the image data of the second frame, as in the case of the first frame, the reading of the memory 3 is performed at the timing of the memory reading means 4 until the reading of the image data for one frame is completed. The memory writing unit 2 writes the data of the (M / a) block, which is the last data block of the second frame, to the memory 3, and then outputs a write completion signal to the CPU 8. Upon receiving the write completion signal, the CPU 8 performs timing control, and switches read timing in a blanking period between the second frame and the third frame. The reading of the image data of the third frame is performed at the timing of the CPU 8, and the display and storage processing of the image data is performed.
[0032]
The processing of the image data of the third frame will be described with reference to FIGS.
First, the memory writing unit 2 starts writing the data of the A block to the area α. When the writing of the data of the A block to the area α reaches the pixel N × a pixel which is the last pixel of the area α, the memory writing means 2 outputs a write completion signal INT1 to the area reading section 4 to the memory reading means 4. Then, the writing of the data of the B block to the area β is started.
[0033]
The CPU 8 that has received the write completion signal INT1 to the area α from the memory writing means 2 outputs to the memory reading means 4 an instruction to read the data of the A block written in the area α.
A read command output from the CPU 8 to the memory read means 4 will be described with reference to FIG. First, when the CPU 8 outputs the address signal CPU_Add = A1 and the read signal CPU_RD to the memory reading means 4 as LOW, the memory reading means 4 outputs the WAIT signal to HIGH to make the CPU 8 wait for the CPU 8 to read the image data. During this time, the memory read means 4 generates the memory read addresses MA1, MA2, MA3, MA4 corresponding to the numbers in FIG. 3, and reads the respective image data D1, D2, D3, D4 from each pixel of the memory 3. Then, these image data are output to the image size conversion means 5. The image size conversion unit 5 creates image data DD1 whose data size has been converted from the output image data D1, D2, D3, and D4. When the setting of the WAIT signal output from the memory reading means 4 to the CPU 8 is changed from HIGH to LOW at the timing when the image data DD1 is generated, the reading signal CPU_RD shifts to HIGH, and returns to LOW one clock later. At this time, the image size conversion means 5 outputs the image data DD1 to the CPUBUS, and the CPU 8 reads the size-converted image data DD1 from the CPUBUS, and loads the image data DD1 into the large-capacity storage memory 9. At the timing when the read signal CPU_RD shifts to HIGH, the image size conversion means 5 shifts the read enable signal from HIGH to LOW to the display control means 7 and returns to HIGH after one clock. The display control means 6 reads out the image data DD1 after the size conversion from the image size conversion means 5 at this timing. Therefore, the size-converted image data DD1 is taken into the large-capacity storage memory 9 via the CPU 8, the timing when CPU_RD is in the HIGH period, the display control means 6 reads the image data DD1, and the read enable signal is LOW. The periods have the same timing. In a similar timing procedure, the CPU 8 and the display control means 6 read out the image data DD2 of the second pixel after the image size conversion. By repeating this, block A is read and data of N / 2 pixels is taken in.
[0034]
When the writing of the data of the B block to the area β reaches the last pixel N × a × 2 pixel of the area β, the memory writing means 2 outputs a write completion signal INT2 to the area β to the CPU 8, and then The writing of the data of the C block to the area α is started. At this time, the data of the A block temporarily stored in the area α has been read by the memory reading means 4, and the reading up to the N × a-th pixel has been completed.
[0035]
The CPU 8 which has received the write completion signal INT2 to the area β from the memory writing means 2 outputs a command to read data of the B block written in the area β to the memory reading means 4.
The following operation is the same as in the above case.
These operations are repeated until the reading of the data of the (M / a) block and the output of the write completion signal INT (M / a) are repeated, thereby completing the conversion of the image data for one frame.
[0036]
As described above, since the memory 3 is divided into a plurality of areas and writing and reading are performed independently for each area, the memory capacity can be smaller than the capacity of one frame of image data. Further, since the writing and reading operations of the memory reading means 4 are performed at the timing of the CPU 8, the image data taken into the large-capacity storage memory 9 and the image data to be displayed on the display means 7 are the same frame image.
[0037]
If the CPU 8 does not issue an instruction to capture image data, processing for displaying the image data on the display unit 7, that is, writing the image data to the memory 3, reading the image data from the memory 3, and converting the image size, etc. Are the same as those in the second conventional example, and the detailed description is omitted here.
[0038]
Embodiment 2 FIG.
Next, a second embodiment will be described.
In the first embodiment, the size of the image data displayed on the display unit 7 and the size of the image data read by the CPU 8 are the same. In the second embodiment, a case where the size of image data to be displayed is different from the size of image data to be read will be described. Note that the configuration of the device is the same as that of FIG. 1 described in Embodiment 1, and therefore the description of FIG. 1 is omitted. In addition, the memory writing unit 2, the memory 3, the image size conversion unit 4, the CPU 8, the write completion signal, and the like are the same as those in the first embodiment, and the description is omitted.
[0039]
A read command output from the CPU 8 to the memory read means 4 will be described with reference to FIG. The CPU 8 that has received the write completion signal outputs the address signal CPU_Add = A1 and the read signal CPU_RD to the memory reading means 4 as LOW. However, the memory reading means 4 does not output the WAIT signal to the CPU 8 as HIGH, Do not wait for data reading. Therefore, the read signal CPU_RD from the CPU 8 repeats HIGH and LOW in a shorter cycle than in the first embodiment. The memory read means 4 generates memory read addresses MA1, MA2, MA3, and MA4 corresponding to the numbers in FIG. 3, respectively, and sequentially reads the respective image data D1, D2, D3, and D4 from each pixel of the memory 3. Then, these image data are output to the image size conversion means 5 in order. On the other hand, at the timing when the CPU_RD shifts to HIGH and becomes LOW one clock later, the image size conversion means 5 outputs the image data to the CPU BUS, and the CPU 8 reads out the image data before the size conversion via the CPU BUS and outputs the large capacity for storage. The data is stored in the memory 9. Therefore, the image data read by the CPU 8 and taken into the large-capacity storage memory 9 are D1, D2, D3, and D4 themselves before the image size conversion. On the other hand, the image size conversion means 5 creates image data DD1 from the output image data D1, D2, D3, D4. At the timing when the image data DD1 is generated, the image size conversion unit 5 outputs a read enable signal to the display control unit 6, and the display control unit 6 outputs the image data DD1 after the size conversion at this timing from the image size conversion unit 5. read out.
[0040]
In a similar timing procedure, D5, D6, D7 and D8 before image size conversion are taken into the large-capacity storage memory 9 via the image size conversion means 5, CPUBUS and CPU8, and the display control means 6 5, the image data DD2 of the second pixel after the image size conversion is read out.
When this operation is repeated, the image data taken into the large-capacity storage memory 9 is the one before the size conversion, so that the image data is N × M pixels, while the image data displayed on the display means 7 is (N × M) / 4.
[0041]
Embodiment 3 FIG.
FIG. 6 is a block diagram of an image data size conversion device according to Embodiment 3 of the present invention, which is configured to transmit a captured image, and a device that transmits the captured image, for example, a mobile phone terminal device, a PDA And so on. In FIG. 6, reference numeral 11 denotes a transmitting unit. Note that the same elements as those in FIG. 1 are denoted by the same reference numerals. In the first and second embodiments, a device for displaying and storing a captured image has been described. However, the present invention is not limited to the device described in the embodiment, and the image size conversion unit 5 may be configured as shown in FIG. The transmission means 11 may be provided at a subsequent stage. The transmission means 11 may be configured by replacing the display means 7 and the large-capacity storage memory 9, or may be newly added. Of course, they may be integrally formed. The provision of the transmission means 11 makes it possible to transmit image data to another terminal device.
[0042]
Embodiment 4 FIG.
FIG. 7 is a block diagram of an image data size conversion apparatus according to Embodiment 4 of the present invention, which is configured to receive an image from the outside of the apparatus. , A mobile phone terminal device, a PDA, and the like. In FIG. 7, reference numeral 12 denotes a receiving unit. Note that the same elements as those in FIG. 1 are denoted by the same reference numerals. Although the apparatus for transmitting the captured image has been described above, the receiving unit 12 may be provided before the memory writing unit 2 as shown in FIG. The receiving means 12 may be replaced with the display means 7, the large-capacity storage memory 9, and the transmitting means 11, or may be newly added. Of course, they may be configured integrally. Further, a configuration including a transmitting unit 11 and a receiving unit 12 may be employed. The provision of the receiving means 12 makes it possible to receive image data from another terminal device. At the same time, if the transmitting means 11 is provided, image data can be transmitted and received.
Further, the image data to be resized is not limited to the captured image, but may be an image received by the receiving unit 12 or a download image. Further, either a still image or a moving image may be used.
[0043]
【The invention's effect】
Since the present invention is configured as described above, it has the following effects.
[0044]
A memory writing means for writing input image data to a memory; and a memory having a capacity smaller than one frame of the input image data, divided into a plurality of areas, and independently performing writing and reading operations for the respective areas. Memory, a memory readout unit that reads out image data written to the memory, an image size conversion unit that converts the size of image data read out by the memory readout unit, Display means for displaying, a central processing unit for controlling each of the means and the memory, and a large-capacity storage memory for storing image data, wherein a write completion signal of image data is sent from the memory writing means to the central processing unit. The control signal output from the central processing unit that has received the completion signal. The central processing unit reads out the image data from the image size conversion means and loads the image data into the large-capacity storage memory, so that the memory for temporarily writing the image data is controlled. Image data to be displayed and image data to be taken in for storage can be converted into image data of the same frame while preventing a reduction in the capacity of the device and an increase in the size of the device main body and a decrease in the processing capacity of the CPU. it can.
[0045]
If each area of the memory has a capacity necessary for the size conversion operation of the image data by the image size conversion means, the capacity of the memory for temporarily writing the image data can be reduced.
[0046]
If the image capturing means is further provided, and the image data is output from the image capturing means, it is possible to reduce the capacity of the memory for temporarily writing the image data and prevent the size of the device body from increasing.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating an image data size conversion device according to a first embodiment.
FIG. 2 is a diagram showing write and read timings of a memory according to the first embodiment;
FIG. 3 is an explanatory diagram for explaining size conversion based on a vertical division number a = 2 in the first embodiment.
FIG. 4 is a diagram showing a timing of reading image data in the first embodiment.
FIG. 5 is a diagram showing a timing of reading image data in the second embodiment.
FIG. 6 is a block diagram illustrating an image data size conversion device according to a third embodiment.
FIG. 7 is a block diagram illustrating an image data size device according to a fourth embodiment.
FIG. 8 is a block diagram showing a first conventional image data size conversion device.
FIG. 9 is a diagram showing a method of writing and reading data in a frame memory in a first conventional image data size conversion device.
FIG. 10 is a diagram showing timings of writing and reading of a frame memory in the first conventional image data size conversion device.
FIG. 11 is a diagram showing timings of loading image data into a large-capacity storage memory in the first conventional image data size conversion device.
FIG. 12 is a block diagram showing a second conventional image data size conversion device.
FIG. 13 is a diagram illustrating image data divided for writing into a memory and a memory configured with a plurality of areas in a second conventional image data size conversion device.
FIG. 14 is a diagram showing timings of writing and reading of a memory in a second conventional image data size converter.
FIG. 15 is an explanatory diagram for explaining size conversion by a vertical division number a = 2 in the second conventional image data size conversion device.
FIG. 16 is an explanatory diagram for explaining size conversion by a vertical division number a = 1 in a second conventional image data size conversion device.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Image imaging means, 2 memory writing means, 3 memories, 4 memory reading means, 5 image size conversion means, 6 display control means, 7 display means, 8 CPU, 9 large-capacity memory for storage, 11 transmission means, 12 reception means .

Claims (3)

入力される画像データをメモリに書き込むメモリ書き込み手段と、入力される画像データの1フレーム分より小さい容量を有し、複数の領域に分割され、上記各々の領域に対する書き込み、読み出しの操作をそれぞれ独立して行うことができるメモリと、上記メモリに書き込まれる画像データを読み出すメモリ読み出し手段と、上記メモリ読み出し手段により読み出される画像データのサイズを変換する画像サイズ変換手段と、サイズ変換された画像データを表示する表示手段と、上記各手段とメモリを制御する中央演算装置と、画像データを保存する保存用大容量メモリとを備え、上記メモリ書き込み手段から画像データの書き込み完了信号が上記中央演算装置に出力され、上記完了信号を受取った上記中央演算装置から出力される制御信号に基づいて上記メモリ読み出し手段を制御し、上記中央演算装置は上記画像サイズ変換手段から画像データを読み出し、保存用大容量メモリに画像データを取り込むことを特徴とする画像データサイズ変換装置。A memory writing means for writing input image data to a memory; and a memory having a capacity smaller than one frame of the input image data, divided into a plurality of areas, and independently performing writing and reading operations for the respective areas. Memory, a memory readout unit that reads out image data written to the memory, an image size conversion unit that converts the size of image data read out by the memory readout unit, Display means for displaying, a central processing unit for controlling each of the means and the memory, and a large-capacity storage memory for storing image data, wherein a write completion signal of image data is sent from the memory writing means to the central processing unit. Control signal that is output and output from the central processing unit that has received the completion signal. The controls the memory reading means, said central processing unit reads the image data from the image size conversion unit, the image data size conversion device characterized by capturing image data in a mass memory for storing based on. 上記メモリの各領域は、上記画像サイズ変換手段における画像データのサイズ変換動作に必要な容量を有することを特徴とする請求項1に記載の画像データサイズ変換装置。2. The image data size conversion device according to claim 1, wherein each area of said memory has a capacity necessary for an image data size conversion operation in said image size conversion means. 画像撮像手段を更に備え、画像データは上記画像撮像手段から出力されるものであることを特徴とする請求項1又は2に記載の画像データサイズ変換装置。3. The image data size conversion device according to claim 1, further comprising an image capturing unit, wherein the image data is output from the image capturing unit.
JP2002189543A 2002-06-28 2002-06-28 Apparatus for converting image data size Pending JP2004032615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002189543A JP2004032615A (en) 2002-06-28 2002-06-28 Apparatus for converting image data size

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002189543A JP2004032615A (en) 2002-06-28 2002-06-28 Apparatus for converting image data size

Publications (1)

Publication Number Publication Date
JP2004032615A true JP2004032615A (en) 2004-01-29

Family

ID=31183930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002189543A Pending JP2004032615A (en) 2002-06-28 2002-06-28 Apparatus for converting image data size

Country Status (1)

Country Link
JP (1) JP2004032615A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013179646A (en) * 2004-12-24 2013-09-09 Dap Realize:Kk Portable information communication device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013179646A (en) * 2004-12-24 2013-09-09 Dap Realize:Kk Portable information communication device

Similar Documents

Publication Publication Date Title
JP4993856B2 (en) Image conversion device, direct memory access device for image conversion, and camera interface supporting image conversion
US9082205B2 (en) Image processing apparatus for processing image data to produce compressed image data and display data
US9703731B2 (en) Data transfer apparatus and data transfer method
JP2008506295A (en) Method and system for displaying a series of image frames
JP4015890B2 (en) Pixel block data generation apparatus and pixel block data generation method
US20060133695A1 (en) Display controller, electronic instrument, and image data supply method
JP4728393B2 (en) Method and apparatus for processing image data stored in a frame buffer
JP2006203437A (en) Camera and its image processing method
KR100663380B1 (en) Imaging device and method for transferring image signal
JP4060414B2 (en) Program load device
JP2007147901A (en) Personal digital assistant
JPS62256088A (en) Picture processor
JP2004032615A (en) Apparatus for converting image data size
US20060077201A1 (en) Synchronous image-switching device and method thereof
CN115205099A (en) Image data transmission method and device and electronic equipment
JP2001022553A (en) Frame buffer device provided with digital image input- output and image display device
US20080018742A1 (en) Analog front-end device and imaging apparatus
US20120144150A1 (en) Data processing apparatus
EP1396997A2 (en) Image Display System and Display Device
JPH1166289A (en) Image signal processing circuit
JP2005123858A (en) Camera control device
JP3448173B2 (en) Image processing device
KR100791176B1 (en) Interface apparatus for matching widths of digital data
US20050162438A1 (en) System including address generator and address generator
JP3971183B2 (en) Imaging system

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040709