JP2007019902A - Image compression circuit, semiconductor integrated circuit and image compressing method - Google Patents
Image compression circuit, semiconductor integrated circuit and image compressing method Download PDFInfo
- Publication number
- JP2007019902A JP2007019902A JP2005199617A JP2005199617A JP2007019902A JP 2007019902 A JP2007019902 A JP 2007019902A JP 2005199617 A JP2005199617 A JP 2005199617A JP 2005199617 A JP2005199617 A JP 2005199617A JP 2007019902 A JP2007019902 A JP 2007019902A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- image compression
- data
- shutter
- moving image
- 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.)
- Withdrawn
Links
Images
Landscapes
- Studio Devices (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
本発明は、画像データを圧縮するための画像圧縮回路、半導体集積回路、及び、画像圧縮方法に関する。 The present invention relates to an image compression circuit, a semiconductor integrated circuit, and an image compression method for compressing image data.
現在、種々の装置において、JPEG(Joint Photographic Expert Group)と呼ばれる静止画像圧縮規格が用いられている。なお、この静止画像圧縮規格は、ISO/IEC 10918−1:1994、ITU−TS T.81、JIS X 4301等において定められている。 Currently, a still image compression standard called JPEG (Joint Photographic Expert Group) is used in various apparatuses. Note that this still image compression standard is ISO / IEC 10918-1: 1994, ITU-TS T.264. 81, JIS X 4301, etc.
JPEGに関する従来の技術として、例えば、下記特許文献1が知られている。 As a conventional technique related to JPEG, for example, the following Patent Document 1 is known.
また、動画像圧縮技術として、モーションJPEG(Motion JPEG)が用いられている。なお、モーションJPEGは、規格として規定はされていないが、一般に、複数のJPEG静止画像データを束ねることによって動画像データを構成する技術とされている。 As a moving image compression technique, Motion JPEG (Motion JPEG) is used. Motion JPEG is not defined as a standard, but is generally a technique for configuring moving image data by bundling a plurality of JPEG still image data.
図3は、モーションJPEGを用いた従来の携帯電話装置を示すブロック図である。図3において、この携帯電話装置30は、通信機能部40と付加機能部50とに大別される。通信機能部40は、アンテナ41にて送受信される信号(圧縮動画像等を含む)を処理する公知の各種ブロックを有する。通信機能部40の全ブロックについて説明を省略するが、ベースバンドLSI42は、主として音声などを処理するプロセッサであり、携帯電話装置30には必ず搭載されている。このベースバンドLSI42には、ベースバンドエンジン(BBE)やアプリーションプロセッサ等が搭載されている。付加機能部50は、通信機能部40のベースバンドLSI42に接続されたホストCPU(中央演算ユニット)51を有する。このホストCPU51には、LCDコントローラLSI52が接続されている。このLCDコントローラLSI52は、液晶表示装置(LCD)53と、CCDカメラ54とに接続されており、CCDカメラ54から供給される静止画像データをJPEGデータに圧縮し又はCCDカメラ54から供給される動画像データをモーションJPEGデータに圧縮する機能を有する。
FIG. 3 is a block diagram showing a conventional cellular phone device using motion JPEG. In FIG. 3, the
図4は、LCDコントローラLSI52の内部構成を示す図である。図4に示すように、LCDコントローラLSI52は、リサイズ処理回路62と、シャッター処理回路63と、JPEGエンコードモジュール64と、フレームメモリ65と、ホストインタフェース66とを具備する。JPEGエンコードモジュール64は、JPEGエンコード処理回路67と、制御回路68とを具備する。JPEGエンコード処理回路67は、離散コサイン変換(DCT)処理部71と、量子化処理部72と、ハフマン符号化処理部73とを具備する。制御回路68は、レジスタ群81と、制御処理部82とを具備する。
FIG. 4 is a diagram showing an internal configuration of the
リサイズ処理回路62は、CCDカメラ54から供給されるフレームデータにリサイズ処理を施すための回路である。
シャッター処理回路63は、制御処理部82から供給されるシャッター制御信号に従って、リサイズ処理回路62から出力されるフレームデータの取り込みを行うための回路である。
The resizing
The
離散コサイン変換処理部71は、シャッター処理回路63によって取り込まれたフレームデータに離散コサイン変換(DCT)処理を施し、量子化処理部72は、離散コサイン変換処理部71によって離散コサイン変換が施されたデータに量子化処理を施す。ハフマン符号化処理部73は、量子化処理部72によって量子化処理が施されたデータにハフマン符号化処理を施し、得られたJPEGデータをフレームメモリ65に書き込む。フレームメモリ65は、1フレーム分のJPEGデータを記憶可能な記憶容量を有しており、ホストインタフェース66を介してホストCPU51からリードアクセス可能となっている。
The discrete cosine
レジスタ群81は、ホストCPU51から指示若しくはデータを受け又はJPEGエンコードモジュール64の各種ステータスをホストCPU51に通知するための複数のレジスタを含んでいる。
制御処理部82は、ホストCPU51によってレジスタに書き込まれた指示又はデータに従って、シャッター処理回路63及びJPEGエンコード処理回路67を制御する。また、制御処理部82は、所定量(例えば、1フレームの2分の1等であり、レジスタにより設定可能)のデータのエンコードが終了した場合、1フレーム分のエンコードが完了した場合、JPEGエンコードモジュール64内において各種エラーが発生した場合等に、JPEGエンコードモジュール64のステータスを表すデータをレジスタ群81内のステータスレジスタに書き込むとともに、割込み信号をホストCPU51に出力する。ホストCPU51は、割込み信号を受信した場合に、ステータスレジスタを参照することにより、割込みの原因を特定することができる。
The
The
図5は、動画像(モーションJPEG)圧縮時におけるホストCPU51及びLCDコントローラLSI52の処理を示すフローチャートである。
動画像圧縮を行う場合、まず、ホストCPU51が、初期化指示を制御回路68に行う(ステップS31)。具体的には、ホストCPU51は、レジスタ群81の内の所定のレジスタ内のビットであってJPEGエンコード処理回路67のリセットを指示するためのビット(JPEGエンコード処理回路リセットビット)をセットする。また、ホストCPU51は、量子化処理部72が量子化処理に用いるための量子化テーブル及びハフマン符号化処理部73がハフマン符号化処理に用いるためのハフマン符号化テーブルをレジスタ群81の内の所定のレジスタに書き込む。さらに、ホストCPU51は、リサイズ処理回路62のコンフィギュレーションデータをレジスタ群81の内の所定のレジスタに書き込む。
FIG. 5 is a flowchart showing processing of the
When performing moving image compression, first, the
制御回路68内の制御処理部82は、初期化指示をホストCPU51から受けると、初期化処理を行う(ステップS41)。具体的には、制御処理部82は、JPEGエンコード処理回路リセットビットがホストCPU51によってセットされると、JPEGエンコード処理回路67のリセットを行う。また、制御処理部82は、量子化テーブル及びハフマン符号化テーブルがホストCPU51によってレジスタ群81の内の所定のレジスタに書き込まれると、量子化テーブルを量子化処理部72に、ハフマン符号化テーブルをハフマン符号化処理部73に、転送する。さらに、制御処理部82は、リサイズ処理回路62のコンフィギュレーションデータがホストCPU51によってレジスタ群81の内の所定のレジスタに書き込まれると、リサイズ処理回路62のコンフィギュレーションを行う。
When receiving the initialization instruction from the
次に、ホストCPU51は、動画像の1フレーム分のフレームデータのエンコードの開始を制御回路68に指示する(ステップS32)。具体的には、ホストCPU51は、レジスタ群81内のステータスレジスタをクリアする。また、ホストCPU51は、レジスタ群81の内の所定のレジスタ内のビットであって制御回路68からの割込み信号の発生を許可するためのビット(割込みイネーブルビット)をセットする。また、ホストCPU51は、レジスタ群81の内の所定のレジスタ内のビットであってJPEGエンコード処理回路67のJPEGエンコード動作開始を指示するためのビット(JPEGエンコード動作開始指示ビット)をセットする。さらに、ホストCPU51は、レジスタ群81の内の所定のレジスタ内のビットであってシャッター処理回路63にフレームデータの取り込みを行わせることを指示するためのビット(シャッター制御ビット)をセットする。
Next, the
制御回路68内の制御処理部82は、動画像の1フレーム分のフレームデータのエンコードの開始指示をホストCPU51から受けると、フレームエンコード制御処理を行う(ステップS42)。具体的には、制御処理部82は、JPEGエンコード処理回路67にJPEGエンコード動作を開始させる。さらに、制御処理部82は、フレームデータの取り込みをシャッター処理回路63行わせるためのシャッター制御信号を活性化する。これにより、シャッター処理回路63が、CCDカメラ54から供給される1フレーム分のフレームデータの取り込みを行う。シャッター処理回路63によって取り込まれたフレームデータは、JPEGエンコード処理回路67によってエンコードされる。なお、シャッター制御信号が活性化されシャッター処理回路63がフレームデータの取り込みを開始すると、レジスタ群81の内のレジスタであってフレームメモリ65内の有効データ数を表すためのレジスタ(JPEG有効データサイズレジスタ)の値が制御処理部82によって適宜更新されるようになり、また、JPEG有効データサイズレジスタは、ホストCPU51からリードアクセス可能となる。
When the
なお、先に説明したように、LCDコントローラLSI52においては、所定量のデータのエンコードが終了した場合、1フレーム分のエンコードが完了した場合、JPEGエンコードモジュール64内において各種エラーが発生した場合等に、割込み信号がホストCPU51に送信される。すなわち、最も遅い場合であっても、1フレーム分のフレームデータのJPEGエンコード完了時までには、割込み信号がホストCPU51に送信される。また、1フレーム分のフレームデータのJPEGエンコード完了前であっても、所定量のデータのエンコードが終了した場合、何らかのエラーが発生した場合等には、割込み信号がホストCPU51に送信される。なお、所定量のデータのエンコードが終了した場合に割込みが発生するようにレジスタが設定されている場合、1フレーム分のフレームデータのJPEGエンコード完了時までに複数回の割込みが発生し、ホストCPU51は、割込み処理を複数回実行することとなる。また、1フレーム分のフレームデータのJPEGエンコード完了時には、レジスタ群81の内のレジスタであって1フレーム分のJPEGデータのサイズを表すためのレジスタ(エンコードサイズ結果レジスタ)にエンコードが完了したJPEGデータのサイズが制御処理部82によって書き込まれ、また、エンコードサイズ結果レジスタは、ホストCPU51からリードアクセス可能となる。
As described above, in the
ホストCPU51は、制御処理部82から割込み信号を受け取ると、割込み処理を行う(ステップS33)。具体的には、ホストCPU51は、割込みイネーブルビットをクリアし、JPEGエンコード処理回路リセットビットをセットする。なお、JPEGエンコード処理回路リセットビットがセットされると、JPEG有効データサイズレジスタは、ホストCPU51からリードアクセス不可となる。次に、ホストCPU51は、ステータスレジスタを参照し、割込みの原因を特定する。そして、ホストCPU51は、割込みの原因がエラーの発生である場合には、所定のエラー処理を行い、割込みの原因が所定量のデータのエンコードの終了又は1フレーム分のデータのエンコードの完了である場合には、フレームメモリ65からデータの読み出しを行う。
When receiving an interrupt signal from the
上記したフレームエンコード開始指示(ステップS32)、フレームエンコード制御処理(ステップS42)、及び、割込み処理(ステップS33)により、1フレーム分のフレームデータのJPEGエンコードが完了するが、次フレームのフレームデータのJPEGエンコードを行うために、ホストCPU51は、フレームエンコード開始指示を再度行う(ステップS34)。なお、このステップS34の処理内容は、ステップS32の処理内容と同じである。
制御回路68は、フレームエンコード開始指示をホストCPU51から受けると、フレームエンコード制御処理を行う(ステップS43)。なお、このステップS43の処理内容は、ステップS42の処理内容と同じである。
The frame encoding start instruction (step S32), the frame encoding control process (step S42), and the interrupt process (step S33) complete the JPEG encoding of the frame data for one frame. In order to perform JPEG encoding, the
When receiving a frame encoding start instruction from the
このように、ホストCPU51が、フレームエンコード開始指示及び割込み処理を繰り返すことにより、制御回路68が、フレームエンコード制御処理を繰り返すことができる。これにより、複数のフレームデータのJPEGエンコード処理、すなわち、モーションJPEGエンコード処理が実現される。
As described above, when the
このような従来のLCDコントローラLSI52においては、ホストCPU51が、フレームエンコード開始指示を各フレームのエンコードの開始時に行う必要があった。そのため、ホストCPU51の負荷が重くなってしまうという問題があった。また、少なくとも1フレーム分のフレームデータのJPEGエンコード完了時には、割込み信号がホストCPU51に送信されるため、ホストCPU51の負荷が重くなってしまうという問題があった。また、エンコードされたデータのサイズ及びフレームメモリ65からリードした有効なデータサイズの管理をホストCPU51が行わなければならないため、ホストCPU51の負荷が重くなってしまうという問題があった。
In such a conventional
そこで、上記の点に鑑み、本発明は、ホストCPUの負荷を軽減することが可能な画像圧縮回路を提供することを第1の目的とする。また、本発明は、そのような画像圧縮回路を具備する半導体集積回路を提供することを第2の目的とする。さらに、本発明は、そのような画像圧縮方法を提供することを第3の目的とする。 Therefore, in view of the above points, a first object of the present invention is to provide an image compression circuit capable of reducing the load on the host CPU. The second object of the present invention is to provide a semiconductor integrated circuit having such an image compression circuit. Furthermore, a third object of the present invention is to provide such an image compression method.
以上の課題を解決するため、本発明に係る画像圧縮回路は、第1の外部回路から供給される動画像データを圧縮して第2の外部回路に出力するための画像圧縮回路であって、第1の外部回路から供給される動画像データの取り込みを行うためのシャッター回路と、第2の外部回路との間で信号又はデータの送受信を行うためのインタフェース回路と、インタフェース回路を介して第2の外部回路に接続されたバッファメモリと、シャッター回路によって取り込まれた動画像データに画像圧縮処理を行ってバッファメモリに書き込むための画像圧縮処理回路と、インタフェース回路を介して第2の外部回路に接続され、第2の外部回路から動画像データの圧縮を開始する旨の指示を受けた場合に、第1の外部回路から供給される動画像データの取り込みを行うようにシャッター回路を制御するとともに、シャッター回路によって取り込まれた動画像データに画像圧縮処理を行うように画像圧縮処理回路を制御するための制御回路とを具備する。
In order to solve the above problems, an image compression circuit according to the present invention is an image compression circuit for compressing moving image data supplied from a first external circuit and outputting the compressed data to a second external circuit. A shutter circuit for capturing moving image data supplied from the first external circuit, an interface circuit for transmitting / receiving signals or data to / from the second external circuit, and a second interface via the interface circuit A buffer memory connected to the
この画像圧縮回路において、制御回路が、第1の外部回路から供給される動画像データを構成する複数のフレームデータを順次取り込むようにシャッター回路を制御するとともに、シャッター回路によって順次取り込まれた複数のフレームデータに画像圧縮処理を順次行うように画像圧縮処理回路を制御するようにしても良い。 In this image compression circuit, the control circuit controls the shutter circuit so as to sequentially capture a plurality of frame data constituting the moving image data supplied from the first external circuit, and a plurality of images sequentially captured by the shutter circuit. The image compression processing circuit may be controlled so that the image compression processing is sequentially performed on the frame data.
また、制御回路が、第2の外部回路からの指示又はデータを受け取るための少なくとも1つのレジスタを具備するようにしても良い。 The control circuit may include at least one register for receiving an instruction or data from the second external circuit.
また、制御回路が、所定のエラーが発生したこと又は所定量のデータがバッファメモリ内に蓄積されたことを通知するための割込み信号を第2の外部回路に供給するようにしても良い。 The control circuit may supply an interrupt signal for notifying that a predetermined error has occurred or that a predetermined amount of data has been stored in the buffer memory to the second external circuit.
また、バッファメモリが、画像圧縮処理回路によって圧縮されたフレームデータ1つ分以上の記憶容量を有するようにしても良い。 Further, the buffer memory may have a storage capacity of one or more frame data compressed by the image compression processing circuit.
また、制御回路が、圧縮されたデータのサイズ及びバッファメモリに蓄積されている有効なデータサイズの管理を行うようにしても良い。 Further, the control circuit may manage the size of the compressed data and the effective data size stored in the buffer memory.
また、第2の外部回路に出力する動画像データがモーションJPEGデータであるようにしても良い。 Further, the moving image data output to the second external circuit may be motion JPEG data.
また、本発明に係る半導体集積回路は、本発明に係る画像圧縮回路を具備する。 The semiconductor integrated circuit according to the present invention includes the image compression circuit according to the present invention.
また、本発明に係る画像圧縮方法は、第1の外部回路から供給される動画像データの取り込みを行うためのシャッター回路と、第2の外部回路との間で信号又はデータの送受信を行うためのインタフェース回路と、インタフェース回路を介して第2の外部回路に接続されたバッファメモリと、シャッター回路によって取り込まれた動画像データに画像圧縮処理を行ってバッファメモリに書き込むための画像圧縮処理回路と、インタフェース回路を介して第2の外部回路に接続され、シャッター回路及び画像圧縮処理回路を制御するための制御回路と、を具備する画像圧縮回路において画像圧縮を行うための方法であって、動画像データの圧縮を開始する旨の指示を第2の外部回路から受けた場合に、第1の外部回路から供給される動画像データの取り込みを行うようにシャッター回路を制御するとともに、シャッター回路によって取り込まれた動画像データに画像圧縮処理を行うように画像圧縮処理回路を制御する。 In addition, the image compression method according to the present invention performs transmission / reception of signals or data between a shutter circuit for capturing moving image data supplied from a first external circuit and a second external circuit. An interface circuit, a buffer memory connected to the second external circuit via the interface circuit, and an image compression processing circuit for performing image compression processing on the moving image data captured by the shutter circuit and writing to the buffer memory A method for performing image compression in an image compression circuit, which is connected to a second external circuit via an interface circuit and includes a control circuit for controlling a shutter circuit and an image compression processing circuit, When an instruction to start compression of image data is received from the second external circuit, moving image data supplied from the first external circuit It controls the shutter circuit to perform a capture, and controls the image compression processing circuit to perform image compression processing in the moving image data captured by the shutter circuit.
以下、図面を参照しながら、本発明を実施するための最良の形態について説明する。なお、同一の構成要素には同一の参照符号を付して、説明を省略する。
図1は、本発明の一実施形態としてのLCDコントローラLSIの概要を示す図である。本実施形態は、本発明をLCDコントローラLSIに適用したものである。このLCDコントローラLSIは、種々の装置に利用可能であるが、ここでは、先に説明した携帯電話装置30(図3参照)において、従来のLCDコントローラLSI52の代替として利用した場合について説明する。
The best mode for carrying out the present invention will be described below with reference to the drawings. In addition, the same referential mark is attached | subjected to the same component and description is abbreviate | omitted.
FIG. 1 is a diagram showing an outline of an LCD controller LSI as an embodiment of the present invention. In this embodiment, the present invention is applied to an LCD controller LSI. The LCD controller LSI can be used in various devices. Here, a case where the above-described mobile phone device 30 (see FIG. 3) is used as an alternative to the conventional
図1に示すように、このLCDコントローラLSI1は、リサイズ処理回路2と、シャッター処理回路3と、JPEGエンコードモジュール4と、FIFOバッファ5と、ホストインタフェース6とを具備する。JPEGエンコードモジュール4は、JPEGエンコード処理回路7と、制御回路8とを具備する。JPEGエンコード処理回路7は、離散コサイン変換(DCT)処理部11と、量子化処理部12と、ハフマン符号化処理部13とを具備する。制御回路8は、レジスタ群21と、制御処理部22とを具備する。
As shown in FIG. 1, the LCD controller LSI 1 includes a
リサイズ処理回路2は、CCDカメラ54から供給されるフレームデータにリサイズ処理を施すための回路である。
シャッター処理回路3は、制御処理部22から供給されるシャッター制御信号に従って、リサイズ処理回路2から出力されるフレームデータの取り込みを行うための回路である。
The resizing
The
離散コサイン変換処理部11は、シャッター処理回路3によって取り込まれたフレームデータに離散コサイン変換(DCT)処理を施し、量子化処理部12は、離散コサイン変換処理部11によって離散コサイン変換が施されたデータに量子化処理を施す。ハフマン符号化処理部13は、量子化処理部12によって量子化処理が施されたデータにハフマン符号化処理を施し、得られたJPEGデータをFIFOバッファメモリ5に書き込む。FIFOバッファ5は、1フレーム分又はそれ以上(例えば、2フレーム分以上)のJPEGデータを記憶可能な記憶容量を有し、ホストインタフェース6を介してホストCPU51からリードアクセス可能となっている。
The discrete cosine
レジスタ群21は、ホストCPU51から指示若しくはデータを受け又はJPEGエンコードモジュール4の各種ステータスをホストCPU51に通知するための複数のレジスタを含んでいる。
The
制御処理部22は、ホストCPU51によってレジスタに書き込まれた指示又はデータに従って、シャッター処理回路3及びJPEGエンコード処理回路7を制御する。また、制御処理部22は、所定量(例えば、1フレームの2分の1等であり、レジスタにより設定可能)のデータのエンコードが終了した場合、JPEGエンコードモジュール4内において各種エラーが発生した場合等に、JPEGエンコードモジュール4のステータスを表すデータをレジスタ群21内のステータスレジスタに書き込むとともに、割込み信号をホストCPU51に出力する。ホストCPU51は、割込み信号を受信した場合に、ステータスレジスタを参照することにより、割込みの原因を特定することができる。
The
次に、LCDコントローラLSI1の動作について説明する。図2は、動画像(モーションJPEG)圧縮時におけるホストCPU51及びLCDコントローラLSI1の処理を示すフローチャートである。なお、レジスタ群21の内の所定のレジスタが、静止画像のエンコードを行うか又は動画像のエンコードを行うかの指示をホストCPU51から受けるためのビット(モーションJPEGイネーブルビット)を有することとし、LCDコントローラLSI1が、このモーションJPEGビットがホストCPU51によってセットされている場合に動画像のエンコードを行い、モーションJPEGビットがセットされていない場合に静止画像のエンコードを行うようにしても良い。
Next, the operation of the LCD controller LSI 1 will be described. FIG. 2 is a flowchart showing the processing of the
動画像圧縮を行う場合、まず、ホストCPU51が、初期化指示を制御回路8に行う(ステップS11)。具体的には、ホストCPU51は、レジスタ群21の内の所定のレジスタ内のビットであってJPEGエンコード処理回路7のリセットを指示するためのビット(JPEGエンコード処理回路リセットビット)をセットする。また、ホストCPU51は、量子化処理部12が量子化処理に用いるための量子化テーブル及びハフマン符号化処理部13がハフマン符号化処理に用いるためのハフマン符号化テーブルをレジスタ群21の内の所定のレジスタに書き込む。さらに、ホストCPU51は、リサイズ処理回路2のコンフィギュレーションデータをレジスタ群21の内の所定のレジスタに書き込む。
When performing moving image compression, first, the
制御回路8内の制御処理部22は、初期化指示をホストCPU51から受けると、初期化処理を行う(ステップS21)。具体的には、制御処理部22は、JPEGエンコード処理回路リセットビットがホストCPU51によってセットされると、JPEGエンコード処理回路7のリセットを行う。また、制御処理部22は、量子化テーブル及びハフマン符号化テーブルがホストCPU51によってレジスタ群21の内の所定のレジスタに書き込まれると、量子化テーブルを量子化処理部12に、ハフマン符号化テーブルをハフマン符号化処理部13に、転送する。さらに、制御処理部22は、リサイズ処理回路2のコンフィギュレーションデータがホストCPU51によってレジスタ群21の内の所定のレジスタに書き込まれると、リサイズ処理回路2のコンフィギュレーションを行う。
When receiving an initialization instruction from the
次に、ホストCPU51は、動画像のエンコードの開始を制御回路8に指示する(ステップS12)。具体的には、ホストCPU51は、レジスタ群21内のステータスレジスタをクリアする。また、ホストCPU51は、レジスタ群21の内の所定のレジスタ内のビットであって制御回路8からの割込み信号の発生を許可するためのビット(割込みイネーブルビット)をセットする。また、ホストCPU51は、レジスタ群21の内の所定のレジスタ内のビットであってJPEGエンコード処理回路7のJPEGエンコード動作開始を指示するためのビット(JPEGエンコード動作開始指示ビット)をセットする。
Next, the
制御回路8内の制御処理部22は、動画像のエンコードの開始指示をホストCPU51から受けると、エンコード制御処理を行う(ステップS22)。具体的には、制御処理部22は、JPEGエンコード処理回路7にJPEGエンコード動作を開始させる。さらに、制御処理部2は、フレームデータの取り込みをシャッター処理回路3に行わせるためのシャッター制御信号を活性化する。これにより、シャッター処理回路3が、CCDカメラ54から供給されるフレームデータの取り込みを行う。シャッター処理回路3によって取り込まれたフレームデータは、JPEGエンコード処理回路7によってJPEGデータにエンコードされる。なお、シャッター制御信号が活性化されシャッター処理回路3がフレームデータの取り込みを開始すると、レジスタ群21の内のレジスタであってFIFOバッファ5内の有効データ数を表すためのレジスタ(JPEG有効データサイズレジスタ)の値が制御処理部22によって適宜更新されるようになり、また、JPEG有効データサイズレジスタは、ホストCPU51からリードアクセス可能となる。1フレーム分のフレームデータのJPEGエンコード完了時には、レジスタ群81の内のレジスタであって1フレーム分のJPEGデータのサイズを表すためのレジスタ(エンコードサイズ結果レジスタ)にエンコードが完了しFIFOバッファ5に蓄積されているJPEGデータのサイズが制御処理部22によって書き込まれ、また、エンコードサイズ結果レジスタは、ホストCPU51からリードアクセス可能となる。さらに、制御処理部22は、エンコードされたデータのサイズ及びFIFOバッファ5に蓄積されている有効なデータサイズの管理を行う。
When receiving a moving image encoding start instruction from the
なお、ステップS22において、制御処理部22は、1フレーム分のエンコードが完了する毎に、ホストCPU51からの指示を受けることなく、シャッター制御信号を活性化してフレームデータの取り込みをシャッター処理回路3に順次行わせるとともに、シャッター処理回路3によって順次取り込まれたフレームデータのエンコードをJPEGエンコード処理回路7に順次行わせる。
In step S22, the
先に説明したように、LCDコントローラLSI1においては、所定量のデータのエンコードが終了した場合、JPEGエンコードモジュール4内において各種エラーが発生した場合等に、割込み信号がホストCPU51に送信される。ホストCPU51は、制御処理部22から割込み信号を受け取ると、割込み処理を行う(ステップS13)。具体的には、ホストCPU51は、割込みイネーブルビットをクリアする。次に、ホストCPU51は、ステータスレジスタを参照し、割込みの原因を特定する。そして、ホストCPU51は、割込みの原因がエラーの発生である場合には、所定のエラー処理を行い、割込みの原因が所定量のデータのエンコードの終了である場合には、FIFOバッファ5からデータの読み出しを行う。その後、ホストCPU51は、割込みイネーブルビットをセットする。
As described above, in the LCD controller LSI 1, an interrupt signal is transmitted to the
なお、レジスタ群21が、エンコード可能な最大サイズの指示をホストCPU51から受けるためのレジスタ(エンコードサイズリミットレジスタ)を有することとし、エンコードされたデータサイズがエンコードサイズリミットレジスタ内の値に達した場合に、割込み信号が発生するようにしても良い。
The
このように、LCDコントローラLSI1によれば、ホストCPU51がエンコード開始指示(図2のステップS12参照)を行うと、制御処理部22が、動画像のエンコード制御処理(複数のフレームのエンコード処理)を行う(図2のステップS22参照)。そのため、従来のLCDコントローラLSI52のように、ホストCPU51がフレームエンコード開始指示を各フレームのエンコードの開始時に行う必要がない。従って、ホストCPU51の負荷を軽減することができる。特に、制御処理部22が、ホストCPU51からの指示を受けることなくシャッター制御信号の活性化を行うため、ホストCPU51のシャッター制御の負荷を軽減することができる。
As described above, according to the LCD controller LSI 1, when the
また、従来のLCDコントローラLSI52においては、少なくとも1フレーム分のエンコードが完了する毎に、ホストCPU51が割込み処理(図5のステップS34)を行うとともに、LCDコントローラLSI52に次の指示を送る(図5のステップS34参照)必要があった。一方、LCDコントローラLSI1においては、制御処理部22がホストCPU51からの指示を受けることなく複数のフレームのエンコード処理を行うので、FIFOバッファ5の記憶容量を1フレーム分より多くしておくこととすれば、割込み信号の発生回数を低減し、割込み処理(図2のステップS13、S14参照)の回数を低減することができる。これにより、ホストCPU51の割込み処理の負荷を軽減することができる。
In the conventional
また、制御処理部22がエンコードされたデータのサイズ及びFIFOバッファ5に蓄積されている有効なデータサイズの管理を行うので、ホストCPU51がこれらの管理を行う必要がなく、ホストCPU51の負荷を軽減することができる。
In addition, since the
また、ここでは、LCDコントローラLSI1が、モーションJPEGデータへのエンコードを行うこととしているが、モーションJPEG2000(ISO/IEC 15444−3:2002、JIS X 4350−3:2003等に規定)、その他の動画像データへのエンコードを行うようにしても良い。 Here, the LCD controller LSI 1 encodes motion JPEG data, but motion JPEG 2000 (specified in ISO / IEC 15444-3: 2002, JIS X 4350-3: 2003, etc.), other moving images You may make it encode to image data.
本発明は、画像圧縮回路において利用可能である。この画像圧縮回路は、LCDコントローラ等において利用可能であり、さらに、携帯電話装置等に組み込み可能である。 The present invention can be used in an image compression circuit. This image compression circuit can be used in an LCD controller or the like, and can be incorporated in a mobile phone device or the like.
1、52 LCDコントローラLSI、 2、62 リサイズ処理回路、 3、63 シャッター処理回路、 4 JPEGエンコードモジュール、 5 FIFOバッファ、 6 ホストインタフェース、 7 JPEGエンコード処理回路、 8 制御回路、 11 離散コサイン変換処理部、 12 量子化処理部、 13 ハフマン符号化処理部、 21 レジスタ群、 22 制御処理部、 30 携帯電話装置、 40 通信機能部、 41 アンテナ、 42 ベースバンドLSI、 50 付加機能部、 51 ホストCPU、 53 LCD、 54 CCDカメラ 1, 52 LCD controller LSI, 2, 62 Resizing processing circuit, 3, 63 Shutter processing circuit, 4 JPEG encoding module, 5 FIFO buffer, 6 Host interface, 7 JPEG encoding processing circuit, 8 Control circuit, 11 Discrete cosine transform processing unit , 12 quantization processing unit, 13 Huffman coding processing unit, 21 register group, 22 control processing unit, 30 mobile phone device, 40 communication function unit, 41 antenna, 42 baseband LSI, 50 additional function unit, 51 host CPU, 53 LCD, 54 CCD camera
Claims (9)
前記第1の外部回路から供給される動画像データの取り込みを行うためのシャッター回路と、
前記第2の外部回路との間で信号又はデータの送受信を行うためのインタフェース回路と、
前記インタフェース回路を介して前記第2の外部回路に接続されたバッファメモリと、
前記シャッター回路によって取り込まれた動画像データに画像圧縮処理を行って前記バッファメモリに書き込むための画像圧縮処理回路と、
前記インタフェース回路を介して前記第2の外部回路に接続され、前記第2の外部回路から動画像データの圧縮を開始する旨の指示を受けた場合に、前記第1の外部回路から供給される動画像データの取り込みを行うように前記シャッター回路を制御するとともに、前記シャッター回路によって取り込まれた動画像データに画像圧縮処理を行うように前記画像圧縮処理回路を制御するための制御回路と、
を具備する画像圧縮回路。 An image compression circuit for compressing moving image data supplied from a first external circuit and outputting the compressed data to a second external circuit,
A shutter circuit for capturing moving image data supplied from the first external circuit;
An interface circuit for transmitting / receiving a signal or data to / from the second external circuit;
A buffer memory connected to the second external circuit via the interface circuit;
An image compression processing circuit for performing image compression processing on the moving image data captured by the shutter circuit and writing it to the buffer memory;
Connected to the second external circuit via the interface circuit, and supplied from the first external circuit when receiving an instruction to start compression of moving image data from the second external circuit A control circuit for controlling the image compression processing circuit so as to perform image compression processing on the moving image data captured by the shutter circuit, while controlling the shutter circuit to capture moving image data;
An image compression circuit comprising:
動画像データの圧縮を開始する旨の指示を前記第2の外部回路から受けた場合に、前記第1の外部回路から供給される動画像データの取り込みを行うように前記シャッター回路を制御するとともに、前記シャッター回路によって取り込まれた動画像データに画像圧縮処理を行うように前記画像圧縮処理回路を制御する、画像圧縮方法。 A shutter circuit for capturing moving image data supplied from the first external circuit, an interface circuit for transmitting / receiving signals or data to / from the second external circuit, and the interface circuit A buffer memory connected to the second external circuit, an image compression processing circuit for performing an image compression process on the moving image data captured by the shutter circuit and writing to the buffer memory, and the interface circuit A method for performing image compression in an image compression circuit connected to the second external circuit and comprising a control circuit for controlling the shutter circuit and the image compression processing circuit;
When receiving an instruction from the second external circuit to start compression of moving image data, the shutter circuit is controlled to take in moving image data supplied from the first external circuit. An image compression method for controlling the image compression processing circuit to perform image compression processing on the moving image data captured by the shutter circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005199617A JP2007019902A (en) | 2005-07-08 | 2005-07-08 | Image compression circuit, semiconductor integrated circuit and image compressing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005199617A JP2007019902A (en) | 2005-07-08 | 2005-07-08 | Image compression circuit, semiconductor integrated circuit and image compressing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007019902A true JP2007019902A (en) | 2007-01-25 |
Family
ID=37756656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005199617A Withdrawn JP2007019902A (en) | 2005-07-08 | 2005-07-08 | Image compression circuit, semiconductor integrated circuit and image compressing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007019902A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014200038A (en) * | 2013-03-29 | 2014-10-23 | 株式会社メガチップス | Image processing apparatus |
JP2014230159A (en) * | 2013-05-23 | 2014-12-08 | 株式会社メガチップス | Image processing device |
-
2005
- 2005-07-08 JP JP2005199617A patent/JP2007019902A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014200038A (en) * | 2013-03-29 | 2014-10-23 | 株式会社メガチップス | Image processing apparatus |
US9986243B2 (en) | 2013-03-29 | 2018-05-29 | Megachips Corporation | Image processor |
JP2014230159A (en) * | 2013-05-23 | 2014-12-08 | 株式会社メガチップス | Image processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7747097B2 (en) | Method for simple hardware implementation of JPEG size limiter | |
JP4367337B2 (en) | Multimedia processing system and multimedia processing method | |
US20090041363A1 (en) | Image Processing Apparatus For Reducing JPEG Image Capturing Time And JPEG Image Capturing Method Performed By Using Same | |
US8373770B2 (en) | Imaging device, imaging method, and program including automatically controlling an interval of continuous photographing | |
JP2008543203A (en) | Temporary image buffer for image processor using compressed raw image | |
KR100821407B1 (en) | Image information processing system and image information processing method | |
JP3680846B2 (en) | MOVING IMAGE COMPRESSION DEVICE AND IMAGING DEVICE USING THE SAME | |
US7760198B2 (en) | Display controller | |
CN113573072B (en) | Image processing method and device and related components | |
JP2010098352A (en) | Image information encoder | |
JP2007019902A (en) | Image compression circuit, semiconductor integrated circuit and image compressing method | |
US20080278606A9 (en) | Image compositing | |
JP2006014298A (en) | Method for processing rotated image and multimedia processor | |
JP2004186978A (en) | Method and device for data write and digital camera | |
JP4870563B2 (en) | Image processing method and apparatus in portable device | |
US6473527B1 (en) | Module and method for interfacing analog/digital converting means and JPEG compression means | |
US9619414B2 (en) | System and method for enabling the fast extraction of interleaved image data | |
JP2005323166A (en) | Image data compression apparatus, encoder, electronic apparatus, and image data compression method | |
JP2007201705A (en) | Image processor, image processing method, program, and computer-readable recording medium | |
JP2006254333A (en) | Coding device, coding method, and digital camera | |
JP4288210B2 (en) | Image processing apparatus, display apparatus, image processing method, and program | |
JP2006309294A (en) | Transmitter and receiver | |
JP4667348B2 (en) | Encoded data memory storage control device, method, and image processing device | |
JP2006340045A (en) | Image processor and image processing method | |
JP2008199388A (en) | Image or sound processing apparatus, and control method of image or sound processing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20081007 |