JP2004364114A - Image processor and image processing method - Google Patents
Image processor and image processing method Download PDFInfo
- Publication number
- JP2004364114A JP2004364114A JP2003162230A JP2003162230A JP2004364114A JP 2004364114 A JP2004364114 A JP 2004364114A JP 2003162230 A JP2003162230 A JP 2003162230A JP 2003162230 A JP2003162230 A JP 2003162230A JP 2004364114 A JP2004364114 A JP 2004364114A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- circuit
- compressed image
- memory
- element 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
Links
Images
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、圧縮画像データを伸張する画像処理装置に関するものである。
【0002】
【従来の技術】
一般に、画像データの圧縮技術として、DCT(離散余弦変換)方式を用いた圧縮方式が広く使用されている。この圧縮方式では、画像のブロック単位(横方向に8又は16画素、縦方向8又は16画素)の各画素の色成分情報R、G、Bの3原色信号を輝度信号等のY、U、Vの3成分に変換した後、DCT変換により画像データを周波数空間に変換し、周波数成分毎にハフマン符号化することにより、画像データを圧縮する。
【0003】
前述した画像データの圧縮には、シーケンシャル符号化とプログレッシブ符号化の2方式がある。シーケンシャル符号化では、1画面の画像データを画像のブロック単位毎に順番に圧縮する方式である。一方、プログレッシブ符号化では、1画面全体の画像データを複数の段階に分けて圧縮する方式である。
【0004】
シーケンシャル符号化された圧縮画像データを伸張するためには、圧縮画像データをブロック毎に伸張処理を行なって、1枚の画像を生成する。一方、プログレッシブ符号化された圧縮画像データを伸張するためには、1枚の画像データを複数の段階に分けて伸張処理する。すなわち、プログレッシブ圧縮画像データの伸張処理では、解像度及び階調性の低いおおまかな1枚の全体画像を伸張処理し、その後に、順次、解像度及び階調性が高くなるように、段階的に伸張処理を行なう。
【0005】
近年のインターネットの急速な普及と共に、画像データを処理する際、前述した画像データの圧縮方式が広く使われるようになって来た。この場合、前述のシーケンシャル符号化された圧縮画像データと同様に、例えば、特許文献1、2又は3に記載されるように、プログレッシブ符号化された圧縮画像データも広く使用される。
【0006】
一方、これらの圧縮画像データを扱う端末装置も、通常のPC(Personal Computer )だけではなく、携帯電話や携帯情報端末等の端末装置が存在する。これらの携帯端末の特徴は、小型軽量である点であり、その画像表示回路には、PC等の画像表示回路とは異なり、解像度の低い、少ない色情報の表示しかできない回路が具備されていることが多い。また、このような携帯端末では、メモリの容量も、より少ない容量で実現することが求められる。
【0007】
以下、これら携帯端末での従来の画像処理装置の一例について、図面を参照しながら説明する。
【0008】
図8は圧縮画像データを伸張する従来の画像処理装置を示すブロック図である。
【0009】
同図において、301はハフマン復号回路、302は逆量子化回路、303は量子化テーブル作成回路、304は逆DCT変換回路、305は色空間変換回路、306は色数削減回路である。また、307は圧縮画像データメモリ、308は逆量子化後の画像データメモリ、309は最終画像データメモリである。
【0010】
更に、図8において、331は圧縮画像データの信号線、332はハフマン復号した画像データ信号線、333は量子化テーブル情報関連データ信号線、334は量子化テーブルデータ信号線、335は逆量子化された画像データ信号線、336はプログレッシブ符号化された画像データの前段階までの逆量子化された画像データ信号線である。また、337は逆DCT変換されたYUV画像データ信号線、338は色空間変換されたRGB画像データ信号線、339は色数削減後のRGB画像データ信号線である。
【0011】
次に、図8に示した従来の画像処理装置において、プログレッシブ符号化された圧縮画像データの伸張処理について、説明する。
【0012】
プログレッシブ符号化された各段階毎の圧縮画像データの伸張処理を行なう場合、周波数分割型プログレッシブ符号化により符号化された圧縮画像データについては、その転送に際して、画像の各要素単位毎に、1つの要素を表現する複数ビットを複数に分割して分割ビット別に順次転送する分割ビット方式があり、この分割ビット方式で転送された圧縮画像データの伸張処理について、以下、説明する。
【0013】
「処理1」
ハフマン復号回路301は、圧縮画像データメモリ307内の圧縮画像データからヘッダー情報を解析し、量子化テーブルデータの抜き取りと、圧縮画像データのハフマン復号処理とを行なう。
【0014】
ここで、圧縮画像データメモリ307に記憶された圧縮画像データは、図3に示すように、64個の要素から成り、この各要素単位は、その要素単位を周波数成分で表現する複数ビット(例えば8ビット)のデータを有する。この各要素の複数ビットは、複数に分割されて、順次転送される。これを具体的に説明すると、例えば各要素単位が8ビットで構成される場合には、例えば4つのビット組に分割されて、図4(a)に例示する各要素単位の分割ビット組が最初に転送され、以下、同図(b)、(c)、(d)に例示する各要素単位の分割ビット組がその後に順番に転送される。図4(a)に示した各要素単位の分割ビット数は、低周波成分ほど多く、図4(d)に示した各要素単位の分割ビット数は高周波成分ほど多い。例えば、低周波成分である第1要素では、図4(a)では3ビット、同図(b)では3ビット、同図(c)では2ビット、同図(d)では0ビットである。一方、高周波成分である第64要素では、図4(a)では0ビット、同図(b)では1ビット、同図(c)では4ビット、同図(d)では3ビットである。従って、各要素単位で最初に転送されるスキャン成分、即ち、各要素の最初のスキャン成分は、図4(a)から判るように、第1〜第58要素単位では第1回目に転送され、第59〜第64要素単位では同図(b)に示すように第2回目に転送される。
【0015】
「処理2」
逆量子化回路302では、ハフマン復号回路301でハフマン復号された今段階の圧縮画像データを、量子化テーブル作成回路303により作成された量子化テーブルに基づいて、逆量子化処理する。この時、この今段階の逆量子化された圧縮画像データと、逆量子化後の画像データメモリ308内に記憶された前段階までの圧縮画像データとを重ね合せて、今段階までの逆量子化された圧縮画像データを作成する。この新しい圧縮画像データは、逆量子化された画像データメモリ308に更新される。
【0016】
「処理3」
逆DCT変換回路304では、逆量子化回路302で逆量子化された今段階までの画像データを逆DCT変換して伸張し、輝度情報等の画素データ(YUVデータ)が生成される。
【0017】
「処理4」
色空間変換回路305では、前記逆DCT変換回路304で逆DCT変換されたYUVデータの色空間変換を行なって、色情報データ(RGB画像データ)が生成され、色数削減回路306に出力される。
【0018】
「処理5」
色数削減回路306では、R(赤)、G(緑)、B(青)の各色の階調を自己の有する画像表示回路の階調に関する性能に合致した階調に色数を削減する。この時、色数削減を実施する前後で画像の見栄えができるだけ相違のないように、誤差拡散手法等の技術を用いて処理する。これらの一連の処理が完了すると、伸張された画像データが最終画像データメモリ309に格納される。
【0019】
【特許文献1】
特開平6−113301号公報
【特許文献2】
特開平6−268873号公報
【特許文献3】
国際公開第99/07155号パンフレット
【0020】
【発明が解決しようとする課題】
しかしながら、前記従来の画像処理装置では、逆量子化された画像データを1画面分全て記憶する大容量の圧縮画像データメモリ308が必要であるという課題がある。これを具体的に説明すると、従来の画像処理装置では、逆DCT変換回路304への入力データの段階、即ち、逆量子化回路302による逆量子化の段階において、今段階の圧縮画像データをその前段階までの圧縮画像データと重ね合せている。このため、逆量子化された圧縮画像データの量は、1画面分の全ての画素について、輝度情報等のYUVデータの必要解像度のビット数分必要であり、逆量子化後の画像データメモリ308の容量は大容量であった。
【0021】
特に、携帯電話や携帯報端末等の小型軽量の端末装置では、メモリの容量もより少ない容量で実現することが求められる。また、これらの携帯電話や携帯情報端末では、低電力及び低コストを実現するため、PC(Personal Computer)に比べて低い処理能力を有する中央演算処理回路(CPU)と、音声やオーディオ、画像等のメディア処理を効率良く高速で実現するデジタル信号処理用プロセッサ(DSP、Digital Signal Processor)を実装している場合が多い。この低い処理能力を有する中央演算処理回路と高速処理するデジタル信号処理用プロセッサの双方を実装したシステムにおいて、プログレッシブ画像データを伸張する場合には、デジタル信号処理用プロセッサが前記ハフマン復号回路301、逆量子化回路302、量子化テーブル作成回路303、逆量子化後の画像データメモリ308、及び逆DCT変換回路304を有し、中央演算処理回路が圧縮画像データメモリ307、色空間変換回路305、色数削減回路306、最終画像データメモリ309を有する。従って、最終画像データメモリ309と圧縮画像データメモリ307とを中央演算処理回路が制御し、逆量子化後の画像データメモリ308をデジタル信号処理用プロセッサが制御する。
【0022】
しかし、デジタル信号処理用プロセッサが制御するメモリは高速動作が必要なメモリであって、記憶単位当りのコストが高価格である。一方、中央演算処理回路が制御するメモリは、低速動作で良く、記憶単位当りのコストは低価格であり、大容量であっても、デジタル信号処理用プロセッサが制御する少容量のメモリよりも低価格である。
【0023】
従って、デジタル信号処理用プロセッサが制御する逆量子化後の画像データメモリ308の容量を低減させることは、システムコストを削減する上で重要である。
【0024】
本発明の目的は、圧縮画像データを伸張する画像処理装置において、この圧縮画像データが周波数分割型プログレッシブ符号化により符号化され、且つ、各要素単位毎に分割ビット方式で順次転送されるものである場合であっても、デジタル信号処理回路が制御する高価で高速動作可能なデータメモリの容量を少なくするように対策する。
【0025】
【課題を解決するための手段】
前記目的を達成するため、本発明では、周波数分割型で且つ分割ビット方式のプログレッシブ符号化により符号化された圧縮画像データを伸張する場合には、ビット分割された各段階の圧縮画像データに対して、各々、その段階の逆量子化データを良好に生成できるように、デジタル信号処理回路が制御する高価且つ高速動作可能なデータメモリには、最小限度の情報のみを格納するようにし、各段階の圧縮画像データの重ね合せは、中央演算処理回路が制御する逆DCT変換後に行うこととする。
【0026】
また、本発明では、他の解決手段として、高価且つ高速動作可能なデータメモリの容量を少なく制限する場合に、再生される画像全体について所望の解像度が得られるように、その高価且つ高速動作可能なデータメモリの容量を圧縮画像データの各要素間で適切に配分する。
【0027】
具体的に、請求項1記載の発明の画像処理装置は、周波数分割型プログレッシブ符号化により符号化され且つ各要素単位毎に複数にビット分割されて各分割ビット別に順次転送された圧縮画像データを伸張する画像処理装置であって、前記圧縮画像データの各要素単位別に最初のスキャン成分を検出するスキャン成分検出回路と、前記スキャン成分検出回路により各要素単位別に最初のスキャン成分が検出されたことを記憶するスキャン成分検出結果メモリと、前記スキャン成分検出回路の検出結果に基づいて、前記圧縮画像データの各要素単位別に符号ビットを記憶する符号ビットメモリと、前記スキャン成分検出結果メモリ及び前記符号ビットメモリの出力に基づいて、各要素単位別に圧縮画像データを逆量子化する逆量子化回路と、前記逆量子化回路により得られた各分割ビットに対応した段階の圧縮画像データを伸張する伸張処理回路と、重ね合せ回路と、画像データメモリとを備え、前記重ね合せ回路は、前記画像データメモリに記憶されたデータと、前記伸張処理回路により伸張された今段階の画像データとを重ね合せ、前記画像データメモリは、前記重ね合せ回路により重ね合された画像データを記憶することを特徴とする。
【0028】
請求項2記載の発明は、前記請求項1記載の画像処理装置において、第1及び第2のプロセッサを備え、前記第1のプロセッサは、前記スキャン成分検出回路、前記スキャン成分検出結果メモリ、前記符号ビットメモリ、前記逆量子化回路及び前記伸張処理回路を有し、前記第2のプロセッサは、前記重ね合せ回路及び前記画像データメモリを有することを特徴とする。
【0029】
請求項3記載の発明は、前記請求項1記載の画像処理装置において、前記伸張処理回路により伸張された圧縮画像データについて色空間変換を行って色情報データを得る色空間変換回路と、前記色空間変換回路により得られた色情報データの階調を下げて色数を削減する色数削減回路とを備え、前記重ね合せ回路及び画像データメモリは、前記色空間変換回路と色数削減回路との間に配置されることを特徴とする。
【0030】
請求項4記載の発明は、前記請求項3記載の画像処理装置において、この画像処理装置は、携帯電話及び携帯情報端末を含む携帯端末に備えられることを特徴とする。
【0031】
請求項5記載の発明の画像処理装置は、周波数分割型プログレッシブ符号化により符号化され且つ各要素単位毎に複数にビット分割されて各分割ビット別に順次転送された圧縮画像データを伸張する画像処理装置であって、前記圧縮画像データのヘッダー情報を解析して、この圧縮画像データの画面サイズを検出する画面サイズ検出回路と、所定記憶容量を持つ画像データメモリと、前記画面サイズ検出回路により検出された画面サイズ及び前記画像データメモリの記憶容量に基づいて、前記圧縮画像データの各要素単位に割り当てられるビット数を算出するビット数算出回路と、前記圧縮画像データの各要素単位別に最初のスキャン成分を検出するスキャン成分検出回路と、前記スキャン成分検出回路により各要素単位別に最初のスキャン成分が検出されたことを記憶するスキャン成分検出結果メモリと、前記スキャン成分検出結果メモリ及び前記画像データメモリの出力に基づいて、各要素単位別に圧縮画像データを逆量子化し、この逆量子化された圧縮画像データのうち前記ビット数算出回路により各要素単位に割り当てられたビット数分以内の圧縮画像データを前記画像データメモリに記憶させる逆量子化回路と、前記逆量子化回路により得られた圧縮画像データを伸張する伸張処理回路とを備えたことを特徴とする。
【0032】
請求項6記載の発明は、前記請求項5記載の画像処理装置において、第1及び第2のプロセッサを備え、前記第1のプロセッサは、前記画面サイズ検出回路、前記画像データメモリ、前記ビット数算出回路、前記スキャン成分検出回路、前記スキャン成分検出結果メモリ、前記逆量子化回路及び前記伸張処理回路を有することを特徴とする。
【0033】
請求項7記載の発明の画像処理方法は、周波数分割型プログレッシブ符号化により符号化され且つ各要素単位毎に複数にビット分割されて各分割ビット別に順次転送された圧縮画像データを伸張する画像処理方法であって、前記圧縮画像データの各要素単位別に最初のスキャン成分を検出し、前記スキャン成分の検出結果に基づいて、各要素単位別に最初のスキャン成分が検出されたことを記憶すると共に、各要素単位別に符号ビットを記憶し、続いて、前記記憶された各要素単位別の最初のスキャン成分の検出結果及び各要素単位別の符号ビットに基づいて、各要素単位別にその圧縮画像データを逆量子化すると共に、前記逆量子化により得られた今段階の圧縮画像データを伸張し、その後、前記伸張された今段階の画像データをその前段階までの画像データと重ね合せることを繰り返すことを特徴とする。
【0034】
請求項8記載の発明の画像処理方法は、周波数分割型プログレッシブ符号化により符号化され且つ各要素単位毎に複数にビット分割されて各分割ビット別に順次転送された圧縮画像データを伸張する画像処理方法であって、前記圧縮画像データのヘッダー情報を解析して、この圧縮画像データの画面サイズを検出すると共に、この画面サイズ、及び備える画像データメモリの記憶容量に基づいて、前記圧縮画像データの各要素単位に割り当てられるビット数を算出し、続いて、前記圧縮画像データの各要素単位別に最初のスキャン成分を検出し、前記スキャン成分の検出結果に基づいて、各要素単位別に最初のスキャン成分が検出されたことを記憶し、その後、前記記憶されたスキャン成分検出結果、及び画像データメモリに記憶された圧縮画像データに基づいて、各要素単位別にその圧縮画像データを逆量子化し、この逆量子化された圧縮画像データのうち、各要素単位に割り当てられたビット数分以内の圧縮画像データを前記画像データメモリに記憶すると共に、前記逆量子化された圧縮画像データを伸張することを繰り返すことを特徴とする。
【0035】
以上により、請求項1〜4及び7記載の発明では、スキャン成分検出回路とスキャン成分検出結果メモリと符号ビットメモリとが備えられているので、各要素単位別のスキャン成分検出結果及び符号ビットに基づいて、今段階の圧縮画像データが正しく逆量子化される。この今位階の逆量子化された圧縮画像データは、逆DCT変換された後に、重ね合せ回路により、画像データメモリに記憶された前段階までの逆DCT変換後の圧縮画像データと重ね合わされて、今段階までの逆DCT変換後の圧縮画像データが得られる。
【0036】
ここに、逆DCT変換までの演算処理、即ち、高速処理可能なデジタル信号処理装置が行う演算処理では、スキャン成分検出結果メモリ及び符号ビットメモリが使用され、この両メモリは各々1ビットの容量で足りるので、従来に比べて、デジタル信号処理回路が使用するメモリの容量を大幅に削減することができる。
【0037】
また、請求項5、6及び8記載の発明では、予め、圧縮画像データからその画面サイズが検出され、この画面サイズに応じて画像データメモリの各要素単位に割り当てられるビット数が算出される。そして、その後に、圧縮画像データが逆量子化された際に、その逆量子化された圧縮画像データのうち前記算出された各要素単位の割り当てビット数分が逆量子化後の圧縮画像データメモリに記憶される。従って、逆量子化後の圧縮画像データメモリの各要素単位の容量配分が適切になって、逆量子化後の圧縮画像データメモリが少容量のものであっても、圧縮画像データの画面サイズに拘わらず、その画面全体を均一な解像度でもって良好に表示することができる。
【0038】
【発明の実施の形態】
以下、本発明の実施の形態の画像処理装置を図面に基づいて説明する。
【0039】
(第1の実施の形態)
図1は本発明の第1の実施の形態の画像処理装置の全体構成を示す。同図の画像処理装置は、携帯電話や携帯情報端末などの携帯端末に内蔵され、JPEG(Joint Photographic coding Experts Group)のカラー圧縮静止画像を伸張処理する。
【0040】
図1において、101はハフマン復号回路、102は逆量子化回路、103は量子化テーブル作成回路、104は逆DCT変換回路(伸張処理回路)、105は色空間変換回路、106は色数削減回路、107は圧縮画像データメモリ、109は最終画像データメモリである。前記圧縮画像データメモリ107には、周波数分割型プログレッシブ符号化により符号化された圧縮画像データが記憶されている。
【0041】
110は圧縮画像データの各要素単位別に最初のスキャン成分を検出する最初のスキャン成分検出回路、111は各要素単位毎に最初のスキャン成分を検出したことを記憶するスキャン成分検出結果メモリ、112は各要素単位別にそのデータの「正」又は「負」の符号ビットを記憶する各要素単位毎の符号ビットメモリ、113は重ね合せ回路、114は前段階までに伸張した画像データの重ね合せ後の画像データメモリ、115はセレクタである。
【0042】
また、131は圧縮画像データの信号線、132はハフマン復号した画像データ信号線、133は量子化テーブル情報関連データ信号線、134は量子化テーブルデータ信号線、135は各段階毎の逆量子化データの信号線、136は各段階毎に逆DCT変換されたYUV画像データ信号線、137は前段階までに伸張したYUV画像データと今段階のYUV画像データとを重ね合せた後のYUV画像データ、138は色空間変換されたRGB画像データ信号線、139は色数削減後のRGB画像データ信号線である。
【0043】
更に、140はセレクタ115後のYUV画像データ信号線、141は各要素単位別の最初のスキャン検出結果の信号線、142は各要素単位の符号ビット信号線、143は最初のスキャン検出結果メモリ111からの信号線、144は符号ビットメモリ112からの信号線、145は前段階までの伸張した画像データの重ねあわせ後の画像データの信号線である。
【0044】
図2は、圧縮画像データメモリ107に記憶される圧縮画像データのデータ構成を示す。同図では、64個の画素単位毎に8ビットのデータを有し、最初の1ビット目の符号ビット(11…18〜81…88)と、その符号ビットに続く7ビットのデータ(11x…18x〜81x〜88x)とにより構成される。
【0045】
次に、プログレッシブ符号化された圧縮画像データの伸張処理を説明する。ここでは、図4(a)〜(d)に4段階にビット分割された場合のプログレッシブ符号化された圧縮画像データの伸張処理の例を説明する。
【0046】
図3は8x8の画素データを表し、1〜64までの数字は、圧縮画像データの転送順序を表す。図4(a)〜(d)はこの8x8の画素データの分割ビット数を表す。図4(a)は第1段階の分割ビット数、図4(b)は第2段階の分割ビット数、図4(c)は第3段階の分割ビット数、図4(d)は第4段階の分割ビット数を示す。
【0047】
「処理1」
ハフマン復号回路101は、図4(a)に示した各要素単位別に所定の分割ビット数を持つ第1段階の圧縮画像データが圧縮画像データメモリ107から転送されて、この圧縮画像データのプロフィールであるヘッダー情報を解析する。
【0048】
「処理2」
前記ハフマン復号回路101は、前記第1段階の圧縮画像データのハフマン復号処理を行い、このハフマン復号された圧縮画像データを逆量子化回路102へ出力すると共に、圧縮画像データの中から量子化テーブルに関するデータを量子化テーブル作成回路103へ出力する。
【0049】
「処理3」
最初のスキャン成分検出回路110では、ハフマン復号回路101からのハフマン復号後の圧縮画像データを用いて、各要素単位別に最初のスキャン成分が存在する画素データが否かを検出し、その検出結果を各要素単位別の最初のスキャン検出結果メモリ111に記憶する。
【0050】
例えば、図4を用いて説明すると、同図4(a)に示す第1段階では、図3の第1〜第28番目までの画素データが3ビット分、図3の第29〜第58番目までの画素データが1ビット分存在する。即ち、第1段階において、各要素単位別に最初のスキャン成分が存在するのは、図3の第1〜第58番目までとなる。従って、第1段階では、この1〜58番目までに対応する画素に対して最初のスキャン成分を検出した結果情報“1”を最初のスキャン成分検出結果メモリ111に記憶する。
【0051】
また、図4(b)に示す第2段階では、図3の第59〜第64番目までの画素データに最初のスキャン成分が存在する。従って、第2段階では、この59〜64番目までに対応する画素に対して最初のスキャン成分を検出した結果情報“1”を最初のスキャン成分検出結果メモリ111に上書きして、記憶する。
【0052】
図4(c)及び図4(d)に示す第3段階及び第4段階では、各要素単位の最初のスキャン成分は全ての要素で既に検出された後であって、全ての要素で最初のスキャン成分は存在しないので、最初のスキャン成分検出メモリ111の記憶内容の更新は行わない。
【0053】
更に、同時に、最初のスキャン成分検出回路110において各要素単位別に最初のスキャンが存在する画素データと判断した場合には、その最初のスキャン成分が存在すると判断した各要素単位の画像データの符号ビットを検出し、この各要素単位の符号ビットを符号ビットメモリ112に記憶する。
【0054】
例えば、図4を用いて説明すると、同図(a)に示す第1段階では、最初のスキャン成分が存在する第1〜第28番目までの要素についての3ビット分の符号ビットと、第29〜第58番目までの要素についての1ビット分の符号ビットを符号ビットメモリ112に記憶する。また、図4(b)に示す第2段階では、最初のスキャン成分が存在する第59〜第64番目までの要素についての1ビット分の符号ビットを符号ビットメモリ112に記憶する。図4(c)及び図4(d)に示す第3、第4段階では、最初のスキャン成分は全ての要素で既に検出された後であって、最初のスキャン成分は存在しないので、符号ビットメモリ112の記憶内容の更新は行われない。
【0055】
「処理3」
逆量子化回路102では、量子化テーブル作成回路103からの量子化テーブル情報と、ハフマン復号回路101でハフマン復号された圧縮画像データと、各要素単位毎の最初のスキャン成分検出結果メモリ111の検出結果と、各要素単位別の符号ビットメモリ112の符号ビット情報とを用いて、今段階のハフマン復号された圧縮画像データを逆量子化処理し、逆DCT変換回路104へ出力する。
【0056】
ここで、各要素単位で最初のスキャン成分であることが判明した各要素単位のデータは、そのまま逆量子化される。一方、最初のスキャン成分ではないことが判明した各要素単位のデータは、前段階までに最初のスキャン成分が検出されていれば、逆量子化回路102は、符号ビットメモリ112から各要素単位毎の符号ビット情報を取得した後、今回の各要素単位のデータをその符号ビットが示す「正」又は「負」の符号に合せて逆量子化した後、逆DCT変換回路104へ出力する。
【0057】
例えば、図4(a)に示す第1段階では、最初のスキャン成分が存在する第1〜第28番目までの要素の3ビット分、第29〜第58番目までの要素の1ビット分を用いて逆量子化を行い、逆DCT変換回路104へ出力する。図4(b)に示す第2段階では、最初のスキャン成分が存在する第59〜第64番目までの要素の1ビット分の逆量子化処理を行うと共に、既に最初のスキャン成分を検出した前記第1〜第28番目までの要素の今段階の3ビット分と、前記第29〜第58番目までの要素の今段階の1ビット分とに関しては、符号ビットメモリ112に記憶された自己の要素の符号ビット情報に基づいて、所定の処理を行った後、逆量子化処理を実施し、逆DCT変換回路104へ出力する。図4(c)及び図4(d)に示す第3、第4段階では、最初のスキャン成分は全ての要素で既に検出された後であるので、全ての要素の今段階のビット分に関して、符号ビットメモリ112の符号ビット情報に基づいて該当の処理を行った後、逆量子化処理を実施し、逆DCT変換回路104へ出力する。
【0058】
「処理4」
逆DCT変換回路104では、逆量子化回路102で逆量子化された今段階の圧縮画像データについて逆DCT変換を行なって伸張し、輝度情報等の画素データ(YUVデータ)を生成する。
【0059】
その後、重ね合せ回路113では、前記逆DCT変換回路104からの今段階の画像データと、画像データメモリ114に記憶されている前段階までの画像データとを重ね合せて、今段階までの輝度情報等の画素データ(YUVデータ)を生成する。また、同時に、この生成した画素データを画像データメモリ114に記憶する。
【0060】
「処理5」
色空間変換回路105では、前記逆DCT変換回路104で生成されたYUVデータについて色空間変換を行なって、色情報データ(RGB画像データ)を生成し、色数削減回路106に出力する。
【0061】
「処理6」
色数削減回路106では、R(赤)、G(緑)、B(青)の各色の階調を自己の有する画像表示回路の階調に関わる性能に合った階調に色数を削減する。この時、色数削減を実施する前後で画像の見栄えができるだけ相違のないように、誤差拡散手法等の技術を用いて処理する。これらの一連の処理を完了すると、伸張した画像データは最終画像データメモリ109に格納される。
【0062】
本実施の形態では、ハフマン復号回路101から逆DCT変換回路104までのデジタル信号処理については、各要素単位毎に1ビットの最初の検出結果メモリ111と、各要素単位毎に1ビットの符号ビットメモリ112のみが備えられ、これ等メモリを合せて各要素単位毎に2ビットのメモリでもって、今段階のハフマン復号後の圧縮画像データを今段階の逆量子化データに変換できるので、従来の図8の逆量子化後の圧縮画像データメモリ308のように、各要素単位毎に8ビットのデータを持つ必要がなく、デジタル信号処理で使用するメモリを少容量のもので構成できる。
【0063】
一方、逆DCT変換後の画像データメモリ114は、大容量のものが必要であるが、逆DCT変換後の位置に配置されて、PCに比べて処理能力の低い中央演算処理回路(CPU)が使用するものであって、低速動作で足りるので、大容量であっても低価格で得ることができる。
【0064】
尚、図1に示した画像処理装置は、シーケンシャル符号化された圧縮画像データの伸張処理も可能である。以下、この伸張処理を説明する。
【0065】
「処理1」
圧縮画像データメモリ107内のシーケンシャル符号化された圧縮画像データをそのままハフマン復号回路101に入力する。
【0066】
「処理2」
ハフマン復号回路101では、入力された圧縮画像データのヘッダー情報を解析した後、その圧縮画像データのハフマン復号処理を行なって、逆量子化回路102へ出力すると共に、その圧縮画像データの中から量子化テーブルに関するデータを量子化テーブル作成回路103へ出力する。
【0067】
「処理3」
逆量子化回路102では、量子化テーブル作成回路103からの量子化テーブル情報と、ハフマン復号回路101でハフマン復号された量子化画像データの逆量子化処理を行ない、逆DCT変換回路104へ出力する。
【0068】
「処理4」
逆DCT変換回路104では、逆量子化回路102で逆量子化されたブロック毎の画像データを逆DCT変換することにより、この圧縮画像データを伸張して、輝度情報等の画素データ(YUVデータ)を生成し、色空間変換回路に105出力する。
【0069】
「処理5」
色空間変換回路105では、前記逆DCT変換回路104で生成されたYUVデータについて色空間変換を行なって、色情報データ(RGB画像データ)を生成し、色数削減回路106に出力する。
【0070】
「処理6」
色数削減回路106では、R(赤)、G(緑)、B(青)の各色の階調を自己の有する表示回路の階調に関する性能に合致した階調に下げて、色数を削減する。この時、色数削減を実施する前後で画像の見栄えができるだけ相違のないように、誤差拡散手法等の技術を用いて処理する。これらの一連の処理を完了すると、伸張した画像データを最終画像データメモリ109に格納する。
【0071】
尚、本実施の形態では、逆DCT変換回路104と色空間変換回路105との間に、重ね合せ回路113と画像データメモリ114とを配置したが、これらの重ね合せ回路113及び画像データメモリ114は、色空間変換回路105と色数削減回路106との間に配置しても良い。
【0072】
更に、本実施の形態では、色数削減回路106を備えた携帯端末を例示したが、本発明の画像処理装置が色数削減回路106を備えない画像表示装置に備えられる場合には、最終画像メモリ109を画像データメモリ114で兼用すれば良い。
【0073】
(第2の実施の形態)
次に、本発明の第2の実施の形態を図5に基づいて説明する。
【0074】
図5に示した画像処理装置では、図1に示した画像処理装置に対して、更に、画像サイズに関するヘッダー解析回路116と、記憶容量割り当て回路117と、各要素単位別の逆量子化後の画像データメモリ108とを有する。前記逆量子化後の画像データメモリ108は、符号ビットメモリ112を内蔵する。
【0075】
同図において、151は画像サイズに関するヘッダー情報の信号線、152はヘッダー解析回路116の画像サイズに関する解析結果の信号線、153は記憶容量割り当て回路117の出力であって、逆量子化後の画像データメモリ108のビット割り当て情報である。逆量子化回路102により逆量子化された今段階までの圧縮画像データは、信号線135を介して、逆量子化後の画像データメモリ108に出力されて、記憶される。
【0076】
また、 図5に示した画像処理装置では、図1に示した画像処理装置における重ね合せ回路113、逆DCT変換後の画像データメモリ114、及びセレクタ140は設けられない。
【0077】
次に、周波数分割型プログレッシブ符号化により符号化された圧縮画像データの伸張処理を説明する。前記第1の実施の形態と同様に、図3及び図4(a)〜(d)に4段階にビット分割した場合の例を用いて説明する。
【0078】
「処理1」
圧縮画像データメモリ107に記憶されている圧縮画像データのプロフィールであるヘッダー情報をハフマン復号回路101で解析する。
【0079】
続いて、画像に関するヘッダー解析回路(画面サイズ検出回路)116は、圧縮画像データメモリ107に記憶されている圧縮画像データの画像サイズを解析して、その圧縮画像データの画面サイズを検出する。記憶容量割り当て回路(ビット数算出回路)117は、前記検出された画面サイズに基づいて、逆量子化後の圧縮画像データメモリ108での各要素単位当りのビット割り当て(割り当てビット数)を決定する。
【0080】
例えば、逆量子化後の画像データメモリ108の容量が6Kbyte(49152bit=6x1024x8bit)とし、圧縮されている画像サイズが96x96、YUV=4:2:0とすると、必要な画素データは、Y画素=96×96=9216、U及びV画素=48×48×2=4608となる。従って、画像データメモリ108での1要素単位当りの割り当てビット数は、49152bit÷(9216+4608)画素=3.56bit/画素となる。従って、この場合は、符号ビットを除く1要素単位当りのビット割り当ては、2ビットとなる(符号ビットは符号ビットメモリ112に記憶される)。
【0081】
「処理2」
ハフマン復号回路101では、前記圧縮画像データのヘッダー情報を解析した後に、圧縮画像データのハフマン復号処理を行なって、逆量子化回路102に出力すると共に、圧縮画像データの中から量子化テーブルに関するデータを抜き出し、量子化テーブル作成回路103に出力する。
【0082】
その後、最初のスキャン成分検出回路110では、ハフマン復号回路101の出力であるハフマン復号処理後の圧縮画像データを用いて、各要素単位別に最初のスキャン成分が存在するか否かを検出し、その検出結果を各要素単位別に最初のスキャン成分検出結果メモリ111に記憶する。
【0083】
例えば、図4の場合では、同図(a)に示すように、第1段階では、図3の1〜28番目までの画素データが3ビット分、図3の29〜58番目までの画素データが1ビット分存在する。すなわち、第1段階において、各要素単位別に最初のスキャン成分が存在するのは、図3の1〜58番目までの画素となる。従って、第1段階では、この1〜58番目までに対応する画素に対して、各要素単位別に最初のスキャン成分を検出した結果情報“1”を各要素単位別にスキャン成分検出結果メモリ111に記憶する。同図(b)に示す第2段階では、図3の59〜64番目までの画素データに最初のスキャン成分が存在するので、この第2段階では、この59〜64番目までに対応する画素に対して各要素単位別に最初のスキャン成分を検出した結果情報“1”を最初のスキャン成分検出結果メモリ111に上書きして、記憶する。同図(c)及び同図(d)に示す第3段階及び第4段階では、最初のスキャン成分は全ての要素単位で既に検出された後であって、最初のスキャン成分は全ての要素単位で存在しないので、最初のスキャン成分検出結果メモリ111の記憶内容の更新は行わない。
【0084】
また、同時に、各要素単位でこの最初のスキャン成分検出回路110で最初のスキャン成分が存在すると判断された要素では、その要素の画像データの符号ビットを検出して、その符号ビットを各要素単位別に符号ビットメモリ112に記憶する。
【0085】
「処理3」
逆量子化回路102では、量子化テーブル作成回路103からの量子化テーブル情報と、ハフマン復号回路101でハフマン復号された量子化画像データと、最初のスキャン成分検出結果メモリ111の検出結果と、符号ビットメモリ112の各要素単位別の符号ビット情報と、逆量子化後の画像データ108とを用いて、今段階までの量子化画像データの逆量子化処理を行なって、逆DCT変換回路104へ出力する。その際、逆量子化データのうち、符号ビット以外のビットについては、記憶容量割り当て回路117で制御されている各要素単位当りの割り当てビット数以内で、逆量子化後の画像データメモリ108に記憶する。また、同時に、最初のスキャン成分検出結果メモリ111の各要素単位毎のスキャン成分検出結果情報に基づいて、前段階までに最初のスキャン成分を検出済みと判断した各要素では、今段階の逆量子化データ135のうち、記憶容量割り当て回路117で割り当てられている各要素単位当りの割り当てビット数以内で、逆量子化後の画像データメモリ108に記憶する。
【0086】
例えば、図4の場合では、同図(a)に示す第1段階において、最初のスキャン成分が存在する図3の1〜28番目までの各要素単位のデータの3ビット分の符号ビットと、図3の29〜58番目までの各要素単位のデータの1ビット分の符号ビットとを符号ビットメモリ112に記憶する。同図(b)に示す第2段階では、最初のスキャン成分が存在する図3の59〜64番目までの各要素単位のデータの1ビット分の符号ビットを符号ビットメモリ112に記憶する。同図(c)及び同図(d)に示す第3段階及び第4段階では、全ての要素単位でスキャン成分が既に検出された後であるので、符号ビットメモリ112の記憶内容の更新は行わない。
【0087】
また、本実施の形態では、各要素単位当りの符号ビット以外の割り当ては2ビットであるから、図4(a)に示す第1段階では、図3の1〜28番目までの要素単位の3ビット分のうち、符号ビット以外の2ビットを逆量子化後の画像データメモリ108に記憶する。図3の29〜58番目までの要素単位では符号ビット以外のビットはないため、逆量子化後の画像データメモリ108には記憶されない。図4(b)に示す第2段階では、図3の1〜28番目までは、前回に格納したビットが2ビット分、図3の29〜58番目までは、この第2段階の画素データの1ビット分が各要素単位別に逆量子化後の画像データメモリ108に記憶される。図4(c)に示す第3段階では、図3の1〜28番目までは、前回に格納したビットが2ビット分、図3の29〜58番目までは、第2段階での画素データの1ビット分に加えて、この第3段階での各要素単位の画素データの4ビット分のうち上位1ビットが、図3の59〜64番目までは、この第3段階での各要素単位の画素データの4ビット分のうち上位2ビットが、各要素単位別に逆量子化後の画像データメモリ108に記憶される。
【0088】
「処理4」
逆DCT変換回路104では、前記逆量子化回路102で逆量子化された今段階の画像データの逆DCT変換を行なうことにより、圧縮画像データを伸張して、輝度情報等の画素データ(YUVデータ)を生成する。
【0089】
「処理5」
色空間変換回路105では、前記逆DCT変換回路104で生成されたYUVデータについて色空間変換を行なって、色情報データ(RGB画像データ)を生成し、色数削減回路106に出力する。
【0090】
「処理6」
色数削減回路106では、R(赤)、G(緑)、B(青)の各色の階調を自己の有する表示回路の階調に関する性能に合致した階調に色数を削減する。この時、色数削減を実施する前後で画像の見栄えができるだけ相違のないように、誤差拡散手法等の技術を用いて処理する。これらの一連の処理を完了すると、伸張した画像データを最終画像データメモリ109に格納する。
【0091】
従って、本実施の形態では、予め、圧縮画像データメモリ107内の圧縮画像データの画面サイズをヘッダ解析回路116で検出して、記憶容量割り当て回路117が、その画面検出されたサイズと、逆量子化後の画像データメモリ108の記憶容量とに応じて、各要素単位当りの画素データの割り当てビット数を決定し、その後、逆量子化回路102で逆量子化された各要素単位別の圧縮画像データが、前記割り当てビット数以内で逆量子化後の画像データメモリ108に記憶される。従って、逆量子化後の画像データメモリ108の各要素単位の容量配分が適切になって、この画像データメモリ108が少容量のものであっても、圧縮画像データの画面サイズに拘わらず、その画面全体を均一な解像度でもって良好に表示することができる。
【0092】
(第3の実施の形態)
次に、本発明の第3の実施の形態の画像処理装置を説明する。
【0093】
図6は、本実施の形態の画像処理装置を示し、2つのプロセッサ201、202を有する。この画像処理装置の全体構成は図1に示した構成と同一である。
【0094】
第1のプロセッサ201は、ハフマン復号回路101、逆量子化回路102、量子化テーブル作成回路103、逆DCT変換回路104、各要素単位毎の最初のスキャン成分検出回路110、各要素単位毎の最初のスキャン成分検出結果メモリ111、各要素単位別の符号ビットメモリ112を有し、デジタル信号処理を高速で行うDSPで実現される。
【0095】
一方、第2のプロセッサ202は、色空間変換回路105、色数削減回路106、圧縮画像データメモリ107、最終画像データメモリ109、重ね合せ回路113、前段階までの重ね合せ後の伸張画像データを記憶する画像データメモリ114、セレクタ115を有し、汎用的な処理を行うCPUで実現される。
【0096】
本実施の形態では、具体的に、スキャン成分検出結果メモリ111及び符号ビットメモリ112が、デジタル信号処理を高速で処理する第1のプロセッサ201により制御されて、高速動作する必要があるが、この両メモリ111、112が各々各要素単位別に1ビットのメモリで構成されているので、従来のように各要素単位別に複数ビット(例えば8ビット)で構成する画像データメモリと比較して、極めて少容量にできる。しかも、逆DCT変換後の画像データメモリ114は汎用的な処理を行うCPU202で制御されて、高速動作する必要がないので、大容量であっても低価格で得ることができる。
【0097】
(第4の実施の形態)
続いて、本発明の第4の実施の形態の画像処理装置を説明する。
【0098】
図7は、本実施の形態の画像処理装置を示し、2つのプロセッサ201、202を有する。この画像処理装置の全体構成は図5に示した構成と同一である。
【0099】
第1のプロセッサ201は、ハフマン復号回路101、逆量子化回路102、量子化テーブル作成回路103、逆DCT変換回路104、各要素単位別の最初のスキャン成分検出回路110、各要素単位別の最初のスキャン成分検出結果メモリ111、各要素単位別の符号ビットメモリ112、逆量子化後の画像データメモリ108、ヘッダー解析回路116、及び記憶容量割り当て回路117を有しており、デジタル信号処理を高速で行うDSPで実現される。
【0100】
一方、第2のプロセッサ202は、色空間変換回路105、色数削減回路106、圧縮画像データメモリ107、最終画像データメモリ107を有し、汎用的な処理を行うCPUで実現される。
【0101】
従って、本実施の形態では、符号ビットメモリ112を含む逆量子化後の画像データメモリ108はデジタル信号処理を高速で行う第1のプロセッサ201で制御されて、高速動作する必要があるが、符号ビットメモリ112を含めて各要素単位当り少ビット(3ビット)のメモリで構成されているので、図8に示した従来の画像データメモリ308が各要素単位当り多ビット(8ビット)で構成される場合と比較して、デジタル信号処理を高速で行うプロセッサが使用するメモリの容量を少なくできる。
【0102】
【発明の効果】
以上説明したように、請求項1〜4及び7記載の発明の画像処理装置及び画像処理方法によれば、メモリとして、スキャン成分検出結果メモリ及び符号ビットメモリのみを設けて、ビット分割された今段階の圧縮画像データを正しく今段階の逆量子化データに変換しながら、逆DCT変換後において、今段階の圧縮画像データをその前段階までの圧縮画像データと重ね合せたので、従来のように逆量子化画像データを1画面分全て記憶する大容量のメモリを不要として、デジタル信号処理回路が使用するメモリの容量を大幅に削減することができる。
【0103】
また、請求項5、6及び8記載の発明の画像処理装置及び画像処理方法によれば、予め、圧縮画像データからその画面サイズを検出し、この画面サイズに応じて画像データメモリの各要素単位に割り当てられるビット数を決定したので、逆量子化後の圧縮画像データメモリの各要素単位の容量配分を適切にして、逆量子化後の圧縮画像データメモリを少容量に制限しながら、圧縮画像データの画面サイズに拘わらず、その画面全体を携帯電話や携帯情報端末の小型の画像表示回路に適した均一な解像度でもって良好に表示することが可能である。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態の画像処理装置を示すブロック図である。
【図2】圧縮画像データを構成する各要素単位のデータ構成を示す図である。
【図3】圧縮画像データの圧縮順番を示す図である。
【図4】(a)は第1段階の圧縮画像データにおける画素単位の分割ビット数を示す図、(b)は同第2段階の分割ビット数を示す図、(c)は同第3段階の分割ビット数を示す図、(d)は同第4段階の分割ビット数を示す図である。
【図5】本発明の第2の実施の形態の画像処理装置を示すブロック図である。
【図6】本発明の第3の実施の形態の画像処理装置を示すブロック図である。
【図7】本発明の第4の実施の形態の画像処理装置を示すブロック図である。
【図8】従来の画像処理装置を示すブロック図である。
【符号の説明】
101 ハフマン復号回路
102 逆量子化回路
103 量子化テーブル作成回路
104 逆DCT変換回路(伸張処理回路)
105 色空間変換回路
106 色数削減回路
107 圧縮画像データメモリ
108 逆量子化後の画像データメモリ
109 最終画像データメモリ
110 スキャン成分検出回路
111 スキャン成分検出結果メモリ
112 符号ビットメモリ
113 重ね合せ回路
114 画像データメモリ
115 セレクタ
116 ヘッダー解析回路(画面サイズ検出回路)
117 記憶容量割り当て回路(ビット数算出回路)
201 DSP(第1のプロセッサ)
202 CPU(第2のプロセッサ)[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing device for expanding compressed image data.
[0002]
[Prior art]
In general, a compression method using a DCT (Discrete Cosine Transform) method is widely used as a compression technique for image data. In this compression method, three primary color signals of color component information R, G, and B of each pixel in an image block unit (8 or 16 pixels in the horizontal direction and 8 or 16 pixels in the vertical direction) are converted into Y, U, After the conversion into the three components of V, the image data is converted into a frequency space by DCT conversion, and the image data is compressed by performing Huffman coding for each frequency component.
[0003]
There are two methods of compressing the above-described image data: sequential coding and progressive coding. In the sequential coding, image data of one screen is sequentially compressed in units of image blocks. On the other hand, progressive coding is a method of compressing image data of an entire screen in a plurality of stages.
[0004]
In order to decompress the sequentially encoded compressed image data, decompression processing is performed on the compressed image data block by block to generate one image. On the other hand, in order to expand the progressively encoded compressed image data, one image data is expanded in a plurality of stages. That is, in the expansion processing of the progressive compressed image data, one rough whole image having a low resolution and gradation is expanded, and then the image is sequentially expanded stepwise so that the resolution and the gradation become higher. Perform processing.
[0005]
With the rapid spread of the Internet in recent years, when processing image data, the above-described image data compression method has been widely used. In this case, similarly to the above-described sequential-encoded compressed image data, progressive-encoded compressed image data is widely used, for example, as described in
[0006]
On the other hand, terminal devices that handle such compressed image data include not only ordinary PCs (Personal Computers) but also terminal devices such as mobile phones and personal digital assistants. The feature of these portable terminals is that they are small and lightweight, and their image display circuits are provided with circuits having a low resolution and capable of displaying only a small amount of color information, unlike image display circuits such as PCs. Often. Further, in such a portable terminal, it is required that the capacity of the memory be realized with a smaller capacity.
[0007]
Hereinafter, an example of a conventional image processing apparatus using these portable terminals will be described with reference to the drawings.
[0008]
FIG. 8 is a block diagram showing a conventional image processing apparatus for expanding compressed image data.
[0009]
In the figure, 301 is a Huffman decoding circuit, 302 is an inverse quantization circuit, 303 is a quantization table creation circuit, 304 is an inverse DCT transformation circuit, 305 is a color space transformation circuit, and 306 is a color number reduction circuit.
[0010]
Further, in FIG. 8, 331 is a signal line of compressed image data, 332 is a Huffman-decoded image data signal line, 333 is a quantization table information related data signal line, 334 is a quantization table data signal line, and 335 is inverse quantization. The coded image
[0011]
Next, a description will be given of a process of decompressing progressively encoded compressed image data in the conventional image processing apparatus shown in FIG.
[0012]
When performing the expansion processing of the progressively coded compressed image data at each stage, the compressed image data coded by the frequency division type progressive coding is transferred for each element unit of the image at the time of transfer. There is a divided bit system in which a plurality of bits representing an element are divided into a plurality of bits and sequentially transferred for each divided bit. The expansion processing of compressed image data transferred by the divided bit system will be described below.
[0013]
"
The Huffman
[0014]
Here, the compressed image data stored in the compressed
[0015]
"
The
[0016]
"
In the inverse
[0017]
"
The color
[0018]
"Process 5"
The number-of-
[0019]
[Patent Document 1]
JP-A-6-113301
[Patent Document 2]
JP-A-6-268873
[Patent Document 3]
WO 99/07155 pamphlet
[0020]
[Problems to be solved by the invention]
However, the conventional image processing apparatus has a problem in that a large-capacity compressed
[0021]
In particular, in a small and lightweight terminal device such as a mobile phone or a portable information terminal, it is required that the memory has a smaller capacity. In addition, in order to realize low power and low cost in these mobile phones and portable information terminals, a central processing unit (CPU) having a lower processing capability than a PC (Personal Computer) and a voice, audio, image, etc. In many cases, a digital signal processor (DSP) for implementing the media processing efficiently and at high speed is mounted. In a system equipped with both a central processing circuit having this low processing capability and a processor for digital signal processing for high-speed processing, when the progressive image data is expanded, the digital signal processing processor uses the
[0022]
However, the memory controlled by the digital signal processing processor is a memory that requires a high-speed operation, and the cost per storage unit is high. On the other hand, the memory controlled by the central processing circuit can operate at a low speed, the cost per storage unit is low, and even if the memory is large, it is lower than the small memory controlled by the digital signal processing processor. Price.
[0023]
Therefore, it is important to reduce the capacity of the
[0024]
An object of the present invention is to provide an image processing apparatus for decompressing compressed image data, in which the compressed image data is encoded by frequency-division progressive coding, and sequentially transferred in a divided bit system for each element unit. Even in some cases, measures are taken to reduce the capacity of the expensive and high-speed data memory controlled by the digital signal processing circuit.
[0025]
[Means for Solving the Problems]
In order to achieve the above object, in the present invention, when decompressing compressed image data encoded by the progressive encoding of the frequency division type and divided bit system, the compressed image data of each stage divided into bits Each of the expensive and high-speed data memories controlled by the digital signal processing circuit stores only a minimum amount of information so that the dequantized data at that stage can be satisfactorily generated. The superimposition of the compressed image data is performed after the inverse DCT transform controlled by the central processing circuit.
[0026]
According to the present invention, as another solution, when the capacity of an expensive and high-speed data memory is limited to a small amount, the expensive and high-speed operation can be performed so that a desired resolution can be obtained for the entire reproduced image. The appropriate capacity of the data memory is appropriately distributed among the elements of the compressed image data.
[0027]
Specifically, the image processing apparatus according to the first aspect of the present invention provides compressed image data encoded by frequency division progressive coding, divided into a plurality of bits for each element unit, and sequentially transferred for each divided bit. An image processing apparatus for decompressing, wherein a scan component detection circuit that detects a first scan component for each element unit of the compressed image data, and wherein the first scan component is detected for each element unit by the scan component detection circuit. A scan component detection result memory, a code bit memory for storing a code bit for each element unit of the compressed image data based on a detection result of the scan component detection circuit, the scan component detection result memory and the code An inverse quantization circuit that inversely quantizes the compressed image data for each element based on the output of the bit memory; A decompression processing circuit for decompressing the compressed image data at the stage corresponding to each divided bit obtained by the inverse quantization circuit, a superimposition circuit, and an image data memory, wherein the superimposition circuit is provided in the image data memory. The stored data and the current stage image data expanded by the expansion processing circuit are superimposed, and the image data memory stores the image data superimposed by the superimposition circuit.
[0028]
According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the image processing apparatus further includes a first processor and a second processor, wherein the first processor includes the scan component detection circuit, the scan component detection result memory, It has a sign bit memory, the inverse quantization circuit and the decompression circuit, and the second processor has the superposition circuit and the image data memory.
[0029]
According to a third aspect of the present invention, in the image processing apparatus according to the first aspect, a color space conversion circuit that performs color space conversion on the compressed image data expanded by the expansion processing circuit to obtain color information data; A color number reduction circuit for reducing the number of colors by lowering the gradation of the color information data obtained by the space conversion circuit, wherein the superimposing circuit and the image data memory include the color space conversion circuit and the color number reduction circuit; It is characterized by being arranged between.
[0030]
According to a fourth aspect of the present invention, in the image processing apparatus of the third aspect, the image processing apparatus is provided in a mobile terminal including a mobile phone and a mobile information terminal.
[0031]
An image processing apparatus according to a fifth aspect of the present invention is an image processing apparatus for expanding compressed image data encoded by frequency division progressive coding, divided into a plurality of bits for each element unit, and sequentially transferred for each divided bit. A screen size detection circuit that analyzes header information of the compressed image data to detect a screen size of the compressed image data; an image data memory having a predetermined storage capacity; A bit number calculation circuit for calculating the number of bits allocated to each element unit of the compressed image data based on the screen size and the storage capacity of the image data memory; and a first scan for each element unit of the compressed image data. A scan component detection circuit for detecting a component, and the first scan for each element unit by the scan component detection circuit. Based on the outputs of the scan component detection result memory and the image data memory, and dequantizes the compressed image data for each element unit. An inverse quantization circuit for storing in the image data memory compressed image data within the number of bits assigned to each element by the bit number calculation circuit in the compressed image data, and an inverse quantization circuit. A decompression processing circuit for decompressing the compressed image data.
[0032]
According to a sixth aspect of the present invention, in the image processing apparatus according to the fifth aspect, the image processing apparatus further includes a first processor and a second processor, wherein the first processor includes the screen size detection circuit, the image data memory, and the number of bits. It has a calculation circuit, the scan component detection circuit, the scan component detection result memory, the inverse quantization circuit, and the decompression processing circuit.
[0033]
The image processing method according to the present invention is an image processing method for decompressing compressed image data encoded by frequency division progressive coding, divided into a plurality of bits for each element unit, and sequentially transferred for each divided bit. A method for detecting a first scan component for each element unit of the compressed image data, and storing that a first scan component is detected for each element unit based on a detection result of the scan component, A code bit is stored for each element unit, and then, based on the stored detection result of the first scan component for each element unit and a code bit for each element unit, the compressed image data is stored for each element unit. In addition to the inverse quantization, the compressed image data at this stage obtained by the inverse quantization is expanded, and then the expanded image data at this stage And repeating the combining image data and superimposed up.
[0034]
The image processing method according to the present invention is an image processing method for expanding compressed image data encoded by frequency division progressive coding, divided into a plurality of bits for each element unit, and sequentially transferred for each divided bit. Analyzing the header information of the compressed image data to detect the screen size of the compressed image data, and based on the screen size and the storage capacity of the provided image data memory, Calculate the number of bits allocated to each element unit, then detect the first scan component for each element unit of the compressed image data, and, based on the detection result of the scan component, determine the first scan component for each element unit. Is detected, and thereafter, the stored scan component detection result and the compression stored in the image data memory are stored. Based on the image data, the compressed image data is dequantized for each element unit, and the compressed image data within the number of bits allocated to each element unit among the dequantized compressed image data is converted to the image data. The method is characterized in that the compressed image data that has been dequantized is repeatedly expanded and stored in the memory.
[0035]
As described above, according to the first to fourth and seventh aspects of the present invention, since the scan component detection circuit, the scan component detection result memory, and the sign bit memory are provided, the scan component detection result and the sign bit for each element unit are stored. Based on this, the compressed image data at this stage is correctly dequantized. The inverse-quantized compressed image data of the current order is subjected to inverse DCT transform, and then superimposed on the compressed image data after inverse DCT transform up to the previous stage stored in the image data memory by the superimposing circuit, The compressed image data after the inverse DCT conversion up to this stage is obtained.
[0036]
Here, in the arithmetic processing up to the inverse DCT transformation, that is, the arithmetic processing performed by the digital signal processing device capable of high-speed processing, a scan component detection result memory and a sign bit memory are used, and each of these memories has a 1-bit capacity. As a result, the capacity of the memory used by the digital signal processing circuit can be significantly reduced as compared with the related art.
[0037]
According to the inventions of claims 5, 6 and 8, the screen size is detected in advance from the compressed image data, and the number of bits allocated to each element of the image data memory is calculated according to the screen size. After that, when the compressed image data is inversely quantized, the calculated number of allocated bits in each element unit of the inversely quantized compressed image data is equal to the dequantized compressed image data memory. Is stored in Accordingly, the capacity distribution of each element of the compressed image data memory after inverse quantization becomes appropriate, and even if the compressed image data memory after inverse quantization has a small capacity, the screen size of the compressed image data is reduced. Regardless, the entire screen can be displayed well with a uniform resolution.
[0038]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an image processing apparatus according to an embodiment of the present invention will be described with reference to the drawings.
[0039]
(First Embodiment)
FIG. 1 shows an overall configuration of an image processing apparatus according to a first embodiment of the present invention. The image processing apparatus shown in the figure is built in a portable terminal such as a portable telephone or a portable information terminal, and expands a JPEG (Joint Photographic Coding Experts Group) color-compressed still image.
[0040]
In FIG. 1, 101 is a Huffman decoding circuit, 102 is an inverse quantization circuit, 103 is a quantization table creation circuit, 104 is an inverse DCT conversion circuit (decompression processing circuit), 105 is a color space conversion circuit, and 106 is a color number reduction circuit. , 107 is a compressed image data memory, and 109 is a final image data memory. The compressed
[0041]
110 is a first scan component detection circuit for detecting the first scan component for each element unit of the compressed image data, 111 is a scan component detection result memory for storing that the first scan component is detected for each element unit, and 112 is a scan component detection result memory. A sign bit memory for each element unit for storing "positive" or "negative" sign bits of the data for each element unit, 113 is a superimposition circuit, 114 is a superimposed image data expanded up to the previous stage. An
[0042]
[0043]
Further, 140 is a YUV image data signal line after the
[0044]
FIG. 2 shows the data structure of the compressed image data stored in the compressed
[0045]
Next, a description will be given of a process of decompressing progressively encoded compressed image data. Here, FIGS. 4A to 4D illustrate an example of a process of decompressing progressively encoded compressed image data in the case of bit division in four stages.
[0046]
FIG. 3 shows 8 × 8 pixel data, and the
[0047]
"
The
[0048]
"
The
[0049]
"
The first scan
[0050]
For example, referring to FIG. 4, in the first stage shown in FIG. 4A, the first to 28th pixel data of FIG. 3 correspond to 3 bits, and the 29th to 58th pixel data of FIG. Pixel data up to 1 bit. That is, in the first stage, the first to the 58th scan components in FIG. 3 include the first scan component for each element unit. Therefore, in the first stage, the result information "1" of detecting the first scan component for the pixels corresponding to the 1st to 58th pixels is stored in the first scan component
[0051]
In the second stage shown in FIG. 4B, the first scan component exists in the 59th to 64th pixel data in FIG. Therefore, in the second stage, the first scan component
[0052]
In the third and fourth stages shown in FIG. 4C and FIG. 4D, the first scan component of each element unit has already been detected for all the elements, and the first scan component has been first detected for all the elements. Since there is no scan component, the storage content of the first scan
[0053]
Further, at the same time, when the first scan
[0054]
For example, referring to FIG. 4, in the first stage shown in FIG. 4A, three bits of code bits for the first to 28th elements in which the first scan component exists, and the 29th element The code bits for one bit for the elements up to the 58th element are stored in the
[0055]
"
In the
[0056]
Here, the data of each element unit that has been determined to be the first scan component in each element unit is inversely quantized. On the other hand, if the first scan component has been detected by the previous stage, the
[0057]
For example, in the first stage shown in FIG. 4A, three bits of the first to 28th elements and one bit of the 29th to 58th elements where the first scan component exists are used. , And outputs the result to the inverse
[0058]
"
The inverse
[0059]
Thereafter, the
[0060]
"Process 5"
The color
[0061]
"Process 6"
The color
[0062]
In the present embodiment, for the digital signal processing from the
[0063]
On the other hand, the
[0064]
Note that the image processing apparatus shown in FIG. 1 is also capable of decompressing sequentially encoded compressed image data. Hereinafter, this decompression processing will be described.
[0065]
"
The sequentially encoded compressed image data in the compressed
[0066]
"
After analyzing the header information of the input compressed image data, the
[0067]
"
The
[0068]
"
The inverse
[0069]
"Process 5"
The color
[0070]
"Process 6"
The number-of-
[0071]
In this embodiment, the
[0072]
Further, in the present embodiment, the portable terminal provided with the color
[0073]
(Second embodiment)
Next, a second embodiment of the present invention will be described with reference to FIG.
[0074]
The image processing apparatus shown in FIG. 5 further includes a
[0075]
In the figure, 151 is a signal line of header information relating to the image size, 152 is a signal line of an analysis result relating to the image size of the
[0076]
Further, the image processing apparatus shown in FIG. 5 does not include the
[0077]
Next, expansion processing of compressed image data encoded by the frequency division progressive coding will be described. Similar to the first embodiment, description will be made using an example in which bits are divided into four stages in FIGS. 3 and 4A to 4D.
[0078]
"
The
[0079]
Subsequently, a header analysis circuit (screen size detection circuit) 116 relating to the image analyzes the image size of the compressed image data stored in the compressed
[0080]
For example, assuming that the capacity of the
[0081]
"
The
[0082]
Thereafter, the first scan
[0083]
For example, in the case of FIG. 4, as shown in FIG. 4A, in the first stage, the first to 28th pixel data of FIG. 3 correspond to 3 bits, and the 29th to 58th pixel data of FIG. Exist for one bit. That is, in the first stage, the first scan component exists for each element unit in the 1st to 58th pixels in FIG. Therefore, in the first stage, the result information “1” of detecting the first scan component for each element unit is stored in the scan component
[0084]
At the same time, in the element for which it is determined that the first scan component is present in the first scan
[0085]
"
In the
[0086]
For example, in the case of FIG. 4, in the first stage shown in FIG. 4A, three bits of code bits of data of each element unit from 1 to 28 in FIG. The sign bit of one bit of the data of each element from the 29th to 58th in FIG. 3 is stored in the
[0087]
Further, in the present embodiment, the assignment other than the code bit for each element unit is 2 bits. Therefore, in the first stage shown in FIG. Of the bits, two bits other than the sign bit are stored in the
[0088]
"
In the inverse
[0089]
"Process 5"
The color
[0090]
"Process 6"
The number-of-
[0091]
Therefore, in the present embodiment, the screen size of the compressed image data in the compressed
[0092]
(Third embodiment)
Next, an image processing apparatus according to a third embodiment of the present invention will be described.
[0093]
FIG. 6 shows an image processing apparatus according to the present embodiment, which has two processors 201 and 202. The overall configuration of this image processing apparatus is the same as the configuration shown in FIG.
[0094]
The first processor 201 includes a
[0095]
On the other hand, the second processor 202 converts the decompressed image data after superimposition up to the previous stage into a color
[0096]
In the present embodiment, specifically, the scan component
[0097]
(Fourth embodiment)
Next, an image processing apparatus according to a fourth embodiment of the present invention will be described.
[0098]
FIG. 7 illustrates an image processing apparatus according to the present embodiment, which includes two processors 201 and 202. The overall configuration of this image processing apparatus is the same as the configuration shown in FIG.
[0099]
The first processor 201 includes a
[0100]
On the other hand, the second processor 202 includes a color
[0101]
Therefore, in the present embodiment, the inversely quantized
[0102]
【The invention's effect】
As described above, according to the image processing apparatus and the image processing method according to the first to fourth and seventh aspects of the present invention, only a scan component detection result memory and a sign bit memory are provided as memories, Since the compressed image data of the current stage is correctly converted into the dequantized data of the current stage, and after the inverse DCT conversion, the compressed image data of the current stage is superimposed on the compressed image data of the previous stage. By eliminating the need for a large-capacity memory for storing all of the dequantized image data for one screen, the capacity of the memory used by the digital signal processing circuit can be significantly reduced.
[0103]
Further, according to the image processing apparatus and the image processing method of the invention according to claims 5, 6 and 8, the screen size is detected in advance from the compressed image data, and each element unit of the image data memory is detected in accordance with the screen size. Since the number of bits allocated to the compressed image data memory after inverse quantization is appropriately determined, the compressed image data memory after inverse quantization is limited to a small capacity by appropriately allocating the capacity of each element unit. Regardless of the screen size of the data, the entire screen can be favorably displayed with a uniform resolution suitable for a small image display circuit of a mobile phone or a portable information terminal.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating an image processing apparatus according to a first embodiment of the present invention.
FIG. 2 is a diagram showing a data configuration of each element constituting compressed image data.
FIG. 3 is a diagram showing a compression order of compressed image data.
4A is a diagram showing the number of divided bits in pixel units in the first stage of compressed image data, FIG. 4B is a diagram showing the number of divided bits in the second stage, and FIG. 4C is a diagram showing the third stage FIG. 7D is a diagram showing the number of divided bits in the fourth stage.
FIG. 5 is a block diagram illustrating an image processing apparatus according to a second embodiment of the present invention.
FIG. 6 is a block diagram illustrating an image processing apparatus according to a third embodiment of the present invention.
FIG. 7 is a block diagram illustrating an image processing apparatus according to a fourth embodiment of the present invention.
FIG. 8 is a block diagram illustrating a conventional image processing apparatus.
[Explanation of symbols]
101 Huffman decoding circuit
102 Inverse quantization circuit
103 Quantization table creation circuit
104 inverse DCT transformation circuit (decompression processing circuit)
105 Color space conversion circuit
106 color number reduction circuit
107 Compressed image data memory
108 Image data memory after inverse quantization
109 Final image data memory
110 scan component detection circuit
111 Scan component detection result memory
112 Sign bit memory
113 Superposition circuit
114 Image Data Memory
115 selector
116 Header Analysis Circuit (Screen Size Detection Circuit)
117 Storage capacity allocation circuit (bit number calculation circuit)
201 DSP (first processor)
202 CPU (second processor)
Claims (8)
前記圧縮画像データの各要素単位別に最初のスキャン成分を検出するスキャン成分検出回路と、
前記スキャン成分検出回路により各要素単位別に最初のスキャン成分が検出されたことを記憶するスキャン成分検出結果メモリと、
前記スキャン成分検出回路の検出結果に基づいて、前記圧縮画像データの各要素単位別に符号ビットを記憶する符号ビットメモリと、
前記スキャン成分検出結果メモリ及び前記符号ビットメモリの出力に基づいて、各要素単位別に圧縮画像データを逆量子化する逆量子化回路と、
前記逆量子化回路により得られた各分割ビットに対応した段階の圧縮画像データを伸張する伸張処理回路と、
重ね合せ回路と、
画像データメモリとを備え、
前記重ね合せ回路は、前記画像データメモリに記憶されたデータと、前記伸張処理回路により伸張された今段階の画像データとを重ね合せ、
前記画像データメモリは、前記重ね合せ回路により重ね合された画像データを記憶する
ことを特徴とする画像処理装置。An image processing apparatus that expands compressed image data that is encoded by frequency division type progressive encoding and divided into a plurality of bits for each element unit and sequentially transferred for each divided bit,
A scan component detection circuit that detects a first scan component for each element unit of the compressed image data,
A scan component detection result memory that stores that a first scan component is detected for each element unit by the scan component detection circuit;
A code bit memory that stores a code bit for each element unit of the compressed image data based on a detection result of the scan component detection circuit;
An inverse quantization circuit that inversely quantizes the compressed image data for each element based on the output of the scan component detection result memory and the sign bit memory;
A decompression processing circuit for decompressing the compressed image data at the stage corresponding to each divided bit obtained by the inverse quantization circuit,
A superposition circuit;
With an image data memory,
The superimposing circuit superimposes the data stored in the image data memory and the current stage image data expanded by the expansion processing circuit,
The image processing apparatus according to claim 1, wherein the image data memory stores the image data superimposed by the superimposing circuit.
第1及び第2のプロセッサを備え、
前記第1のプロセッサは、前記スキャン成分検出回路、前記スキャン成分検出結果メモリ、前記符号ビットメモリ、前記逆量子化回路及び前記伸張処理回路を有し、
前記第2のプロセッサは、前記重ね合せ回路及び前記画像データメモリを有する
ことを特徴とする画像処理装置。The image processing apparatus according to claim 1,
Comprising first and second processors,
The first processor includes the scan component detection circuit, the scan component detection result memory, the sign bit memory, the inverse quantization circuit, and the decompression processing circuit,
The image processor according to claim 2, wherein the second processor includes the superimposing circuit and the image data memory.
前記伸張処理回路により伸張された圧縮画像データについて色空間変換を行って色情報データを得る色空間変換回路と、
前記色空間変換回路により得られた色情報データの階調を下げて色数を削減する色数削減回路とを備え、
前記重ね合せ回路及び画像データメモリは、前記色空間変換回路と色数削減回路との間に配置される
ことを特徴とする画像処理装置。The image processing apparatus according to claim 1,
A color space conversion circuit that performs color space conversion on the compressed image data expanded by the expansion processing circuit to obtain color information data,
A color number reduction circuit that reduces the number of colors by lowering the gradation of the color information data obtained by the color space conversion circuit,
The image processing apparatus according to claim 1, wherein the superposition circuit and the image data memory are arranged between the color space conversion circuit and the color number reduction circuit.
この画像処理装置は、携帯電話及び携帯情報端末を含む携帯端末に備えられる
ことを特徴とする画像処理装置。The image processing apparatus according to claim 3, wherein
The image processing apparatus is provided in a mobile terminal including a mobile phone and a mobile information terminal.
前記圧縮画像データのヘッダー情報を解析して、この圧縮画像データの画面サイズを検出する画面サイズ検出回路と、
所定記憶容量を持つ画像データメモリと、
前記画面サイズ検出回路により検出された画面サイズ及び前記画像データメモリの記憶容量に基づいて、前記圧縮画像データの各要素単位に割り当てられるビット数を算出するビット数算出回路と、
前記圧縮画像データの各要素単位別に最初のスキャン成分を検出するスキャン成分検出回路と、
前記スキャン成分検出回路により各要素単位別に最初のスキャン成分が検出されたことを記憶するスキャン成分検出結果メモリと、
前記スキャン成分検出結果メモリ及び前記画像データメモリの出力に基づいて、各要素単位別に圧縮画像データを逆量子化し、この逆量子化された圧縮画像データのうち前記ビット数算出回路により各要素単位に割り当てられたビット数分以内の圧縮画像データを前記画像データメモリに記憶させる逆量子化回路と、
前記逆量子化回路により得られた圧縮画像データを伸張する伸張処理回路と
を備えたことを特徴とする画像処理装置。An image processing apparatus that expands compressed image data that is encoded by frequency division type progressive encoding and divided into a plurality of bits for each element unit and sequentially transferred for each divided bit,
A screen size detection circuit that analyzes header information of the compressed image data and detects a screen size of the compressed image data;
An image data memory having a predetermined storage capacity;
A bit number calculation circuit that calculates the number of bits allocated to each element of the compressed image data based on the screen size detected by the screen size detection circuit and the storage capacity of the image data memory;
A scan component detection circuit that detects a first scan component for each element unit of the compressed image data,
A scan component detection result memory that stores that a first scan component is detected for each element unit by the scan component detection circuit;
Based on the outputs of the scan component detection result memory and the image data memory, the compressed image data is dequantized for each element unit, and the bit number calculation circuit converts the dequantized compressed image data to each element unit. An inverse quantization circuit for storing compressed image data within the allocated number of bits in the image data memory;
A decompression circuit for decompressing the compressed image data obtained by the inverse quantization circuit.
第1及び第2のプロセッサを備え、
前記第1のプロセッサは、前記画面サイズ検出回路、前記画像データメモリ、前記ビット数算出回路、前記スキャン成分検出回路、前記スキャン成分検出結果メモリ、前記逆量子化回路及び前記伸張処理回路を有する
ことを特徴とする画像処理装置。The image processing apparatus according to claim 5, wherein
Comprising first and second processors,
The first processor includes the screen size detection circuit, the image data memory, the bit number calculation circuit, the scan component detection circuit, the scan component detection result memory, the inverse quantization circuit, and the decompression processing circuit. An image processing apparatus characterized by the above-mentioned.
前記圧縮画像データの各要素単位別に最初のスキャン成分を検出し、
前記スキャン成分の検出結果に基づいて、各要素単位別に最初のスキャン成分が検出されたことを記憶すると共に、各要素単位別に符号ビットを記憶し、
続いて、前記記憶された各要素単位別の最初のスキャン成分の検出結果及び各要素単位別の符号ビットに基づいて、各要素単位別にその圧縮画像データを逆量子化すると共に、
前記逆量子化により得られた今段階の圧縮画像データを伸張し、
その後、前記伸張された今段階の画像データをその前段階までの画像データと重ね合せる
ことを繰り返す
ことを特徴とする画像処理方法。An image processing method for decompressing compressed image data encoded by frequency division progressive encoding and divided into a plurality of bits for each element unit and sequentially transferred for each divided bit,
Detecting the first scan component for each element unit of the compressed image data,
Based on the detection result of the scan component, storing that the first scan component was detected for each element unit, and storing a sign bit for each element unit,
Subsequently, based on the stored detection result of the first scan component for each element unit and the code bit for each element unit, the compressed image data is dequantized for each element unit,
Decompress the compressed image data at this stage obtained by the inverse quantization,
Thereafter, superimposing the decompressed image data of the current stage with the image data of the previous stage is repeated.
前記圧縮画像データのヘッダー情報を解析して、この圧縮画像データの画面サイズを検出すると共に、
この画面サイズ、及び備える画像データメモリの記憶容量に基づいて、前記圧縮画像データの各要素単位に割り当てられるビット数を算出し、
続いて、前記圧縮画像データの各要素単位別に最初のスキャン成分を検出し、
前記スキャン成分の検出結果に基づいて、各要素単位別に最初のスキャン成分が検出されたことを記憶し、
その後、前記記憶されたスキャン成分検出結果、及び画像データメモリに記憶された圧縮画像データに基づいて、各要素単位別にその圧縮画像データを逆量子化し、
この逆量子化された圧縮画像データのうち、各要素単位に割り当てられたビット数分以内の圧縮画像データを前記画像データメモリに記憶すると共に、
前記逆量子化された圧縮画像データを伸張する
ことを繰り返す
ことを特徴とする画像処理方法。An image processing method for decompressing compressed image data encoded by frequency division progressive encoding and divided into a plurality of bits for each element unit and sequentially transferred for each divided bit,
Analyzing the header information of the compressed image data to detect the screen size of the compressed image data,
Based on this screen size and the storage capacity of the provided image data memory, calculate the number of bits allocated to each element unit of the compressed image data,
Subsequently, the first scan component is detected for each element unit of the compressed image data,
Based on the detection result of the scan component, storing that the first scan component was detected for each element unit,
Thereafter, based on the stored scan component detection result and the compressed image data stored in the image data memory, the compressed image data is inversely quantized for each element unit,
Of the dequantized compressed image data, the compressed image data within the number of bits allocated to each element unit is stored in the image data memory,
An image processing method characterized by repeating expanding the dequantized compressed image data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003162230A JP2004364114A (en) | 2003-06-06 | 2003-06-06 | Image processor and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003162230A JP2004364114A (en) | 2003-06-06 | 2003-06-06 | Image processor and image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004364114A true JP2004364114A (en) | 2004-12-24 |
Family
ID=34054439
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003162230A Pending JP2004364114A (en) | 2003-06-06 | 2003-06-06 | Image processor and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004364114A (en) |
-
2003
- 2003-06-06 JP JP2003162230A patent/JP2004364114A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6703032B2 (en) | Backward compatibility extended image format | |
KR101161900B1 (en) | Multi-mode image processing | |
US20070076971A1 (en) | Compression of images for computer graphics | |
JP2006311474A (en) | Apparatus and method for image processing, compression, decompression, transfer, transmission, and reception, and program and display device | |
US7574056B2 (en) | Method for compression and expansion of display data | |
CN102271251B (en) | Lossless image compression method | |
US20090067733A1 (en) | Byte Representation for Enhanced Image Compression | |
US8600181B2 (en) | Method for compressing images and a format for compressed images | |
US10165278B2 (en) | Image compression device, image compression method, image extension device, and image extension method | |
JP3633860B2 (en) | Image processing apparatus and image processing method | |
JP2004364114A (en) | Image processor and image processing method | |
KR20050088568A (en) | Image coding and decoding method | |
JP4241517B2 (en) | Image encoding apparatus and image decoding apparatus | |
US20220353482A1 (en) | Image signal processor, method of operating the image signal processor and image processing system including the image signal processor | |
JP4364729B2 (en) | Image data compression / decompression method and image processing apparatus | |
JP3375080B2 (en) | Image compression method | |
JP2009111821A (en) | Image encoding apparatus, image decoding apparatus, image data processing apparatus, image encoding method, and image decoding method | |
JP2003134532A (en) | Image compression apparatus, image compression method, image expanding apparatus, and program | |
JP3375079B2 (en) | Image compression device | |
TWI227631B (en) | Image processing method and system | |
JP3375078B2 (en) | Image compression device | |
JP3002619B2 (en) | Image processing control device | |
JPH0946701A (en) | Picture data compression/expansion method and picture communication terminal equipment | |
JPH10257331A (en) | Image processor | |
JP2007219871A (en) | Data processing apparatus |