JP2008193464A - Image processing device and imaging apparatus - Google Patents

Image processing device and imaging apparatus Download PDF

Info

Publication number
JP2008193464A
JP2008193464A JP2007026574A JP2007026574A JP2008193464A JP 2008193464 A JP2008193464 A JP 2008193464A JP 2007026574 A JP2007026574 A JP 2007026574A JP 2007026574 A JP2007026574 A JP 2007026574A JP 2008193464 A JP2008193464 A JP 2008193464A
Authority
JP
Japan
Prior art keywords
data
compression processing
compression
image
processing 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.)
Withdrawn
Application number
JP2007026574A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Takahashi
和敬 高橋
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.)
Nikon Corp
Original Assignee
Nikon 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 Nikon Corp filed Critical Nikon Corp
Priority to JP2007026574A priority Critical patent/JP2008193464A/en
Priority to EP07790302.9A priority patent/EP2053841B1/en
Priority to US12/309,741 priority patent/US8249339B2/en
Priority to PCT/JP2007/000808 priority patent/WO2008015781A1/en
Publication of JP2008193464A publication Critical patent/JP2008193464A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a means capable of more quickly executing compression processing of image data. <P>SOLUTION: This image processing device includes a first compression processing part, a second compression processing part and a control part. The first compression processing part compresses data of an input image and generates first compressed data. A second compression processing part compresses the data of the input image and generates second compressed data. The control part divides an image of one frame into two areas and respectively makes the first compression processing part and the second compression processing part perform parallel processing of the divided image data. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像のデータの圧縮処理を行う画像処理装置および撮像装置に関する。   The present invention relates to an image processing apparatus and an imaging apparatus that perform compression processing of image data.

電子カメラなどをはじめとする画像処理装置では、記録の効率を高めるために画像のデータに圧縮処理を施すことが一般的である。ここで、画像処理装置における圧縮処理では、残フレーム数を把握し易くする観点から、スケールファクタの調整によって1フレーム分の圧縮データ量をほぼ一定にする固定長圧縮が多く採用される。なお、特許文献1には、固定長圧縮処理を行う電子カメラの構成の一例が開示されている。
特開平9−219807号公報
In an image processing apparatus such as an electronic camera, it is common to perform compression processing on image data in order to increase recording efficiency. Here, in the compression processing in the image processing apparatus, from the viewpoint of easily grasping the number of remaining frames, fixed-length compression that makes the amount of compressed data for one frame substantially constant by adjusting the scale factor is often used. Note that Patent Document 1 discloses an example of the configuration of an electronic camera that performs fixed-length compression processing.
JP-A-9-219807

ところで、撮像装置の連写速度向上や画像処理の高速化の観点から、画像のデータに対する圧縮処理については一層の高速化がなお要請されている。
本発明は上記従来技術の課題を解決するものである。本発明の目的は、画像のデータの圧縮処理をより迅速に実行できる手段を提供することである。
By the way, from the viewpoint of improving the continuous shooting speed of the imaging apparatus and speeding up the image processing, there is still a demand for further speeding up the compression processing for image data.
The present invention solves the above-mentioned problems of the prior art. An object of the present invention is to provide a means capable of executing image data compression processing more quickly.

第1の発明に係る画像処理装置は、第1圧縮処理部と、第2圧縮処理部と、制御部とを備える。第1圧縮処理部は、入力された画像のデータを圧縮して第1圧縮データを生成する。第2圧縮処理部は、入力された画像のデータを圧縮して第2圧縮データを生成する。制御部は、1フレームの画像を2つの領域に分割するとともに、該分割された画像のデータをそれぞれ第1圧縮処理部および第2圧縮処理部に並列処理させる。   An image processing apparatus according to a first aspect includes a first compression processing unit, a second compression processing unit, and a control unit. The first compression processing unit compresses the input image data to generate first compressed data. The second compression processing unit compresses the input image data to generate second compressed data. The control unit divides the image of one frame into two regions, and causes the first compression processing unit and the second compression processing unit to process the data of the divided images in parallel.

第2の発明は、第1の発明において、データを一時的に記録するメモリと、データ転送部とを画像処理装置がさらに備える。データ転送部は、第1圧縮データおよび第2圧縮データを、メモリ上で1フレーム分に割り当てられた共通の記録領域に記録する。
第3の発明は、第2の発明において、データ転送部は、第1圧縮データを記録領域の先頭アドレスから正方向に記録するとともに、第2圧縮データを記録領域の最後尾アドレスから逆方向に記録する。
In a second aspect based on the first aspect, the image processing apparatus further includes a memory for temporarily recording data and a data transfer unit. The data transfer unit records the first compressed data and the second compressed data in a common recording area allocated for one frame on the memory.
In a third aspect based on the second aspect, the data transfer unit records the first compressed data in the forward direction from the start address of the recording area, and the second compressed data in the reverse direction from the end address of the recording area. Record.

第4の発明は、第3の発明において、データ転送部は、第2圧縮データの並び順を反転させて記録領域に記録する。
第5の発明は、第1の発明において、制御部は、第1圧縮処理部および第2圧縮処理部の圧縮結果に基づいて、再圧縮時のパラメータを演算する。
ここで、上記の発明に、被写体像を撮像して画像のデータを生成する撮像部を加えて撮像装置を構成してもよい。また、上記の各発明の内容を画像処理方法やコンピュータプログラムなどに変換して表現したものも本発明の具体的態様として有効である。
In a fourth aspect based on the third aspect, the data transfer unit reverses the arrangement order of the second compressed data and records it in the recording area.
In a fifth aspect based on the first aspect, the control unit calculates a parameter at the time of recompression based on the compression results of the first compression processing unit and the second compression processing unit.
Here, the imaging apparatus may be configured by adding an imaging unit that captures a subject image and generates image data to the above-described invention. In addition, what is expressed by converting the contents of each of the above inventions into an image processing method or a computer program is also effective as a specific aspect of the present invention.

本発明の画像処理装置では、第1圧縮処理部および第2圧縮処理部によって1フレーム分の画像のデータを並列処理し、より迅速に圧縮処理を実行できる。   In the image processing apparatus of the present invention, image data for one frame can be processed in parallel by the first compression processing unit and the second compression processing unit, and the compression processing can be executed more quickly.

図1は、本実施形態の電子カメラの構成を示すブロック図である。電子カメラは、撮像光学系11と、撮像素子12と、アナログ信号処理部13と、A/D変換部14と、バッファメモリ15と、画像処理部16と、第1圧縮処理部17および第2圧縮処理部18と、DMA(Direct Memory Access)制御部19と、記録I/F20と、操作部材21およびレリーズ釦22と、ROM23と、CPU24およびシステムバス25とを有している。   FIG. 1 is a block diagram showing the configuration of the electronic camera of this embodiment. The electronic camera includes an imaging optical system 11, an imaging element 12, an analog signal processing unit 13, an A / D conversion unit 14, a buffer memory 15, an image processing unit 16, a first compression processing unit 17 and a second compression unit. A compression processing unit 18, a DMA (Direct Memory Access) control unit 19, a recording I / F 20, an operation member 21 and a release button 22, a ROM 23, a CPU 24 and a system bus 25 are provided.

ここで、バッファメモリ15、画像処理部16、第1圧縮処理部17、第2圧縮処理部18、DMA制御部19、記録I/F20およびCPU24は、それぞれシステムバス25を介して接続されている。このシステムバス25は複数のデータバスを有している(図1では個々のデータバスの図示を省略する)。なお、撮像素子12、アナログ信号処理部13、A/D変換部14、操作部材21、レリーズ釦22およびROM23は、それぞれCPU24と接続されている。   Here, the buffer memory 15, the image processing unit 16, the first compression processing unit 17, the second compression processing unit 18, the DMA control unit 19, the recording I / F 20, and the CPU 24 are respectively connected via a system bus 25. . The system bus 25 has a plurality of data buses (in FIG. 1, illustration of individual data buses is omitted). Note that the image sensor 12, the analog signal processing unit 13, the A / D conversion unit 14, the operation member 21, the release button 22, and the ROM 23 are connected to the CPU 24, respectively.

撮像光学系11は、ズームレンズやフォーカシングレンズを含む複数のレンズ群で構成されている。なお、簡単のため、図1では撮像光学系11を1枚のレンズとして図示する。
撮像素子12は撮像光学系11の像空間側に配置されている。この撮像素子12はレリーズ時に記録用画像(本画像)を撮像し、撮像光学系11を通過した光束を光電変換してアナログの画像信号を生成する。この撮像素子12の出力はアナログ信号処理部13に接続されている。
The imaging optical system 11 includes a plurality of lens groups including a zoom lens and a focusing lens. For simplicity, the imaging optical system 11 is illustrated as a single lens in FIG.
The imaging element 12 is disposed on the image space side of the imaging optical system 11. The image sensor 12 captures a recording image (main image) at the time of release, and photoelectrically converts the light beam that has passed through the imaging optical system 11 to generate an analog image signal. The output of the image sensor 12 is connected to an analog signal processing unit 13.

アナログ信号処理部13は、撮像素子12の出力に対してアナログ信号処理を施すアナログフロントエンド回路である。アナログ信号処理部13は、相関二重サンプリングや画像信号のゲインの調整などを行う。このアナログ信号処理部13の出力はA/D変換部14に接続されている。
A/D変換部14は、アナログ信号処理部13から出力される画像信号をA/D変換する。このA/D変換部14の出力は、バッファメモリ15と接続されている。
The analog signal processing unit 13 is an analog front-end circuit that performs analog signal processing on the output of the image sensor 12. The analog signal processing unit 13 performs correlated double sampling, image signal gain adjustment, and the like. The output of the analog signal processing unit 13 is connected to the A / D conversion unit 14.
The A / D converter 14 performs A / D conversion on the image signal output from the analog signal processor 13. The output of the A / D converter 14 is connected to the buffer memory 15.

バッファメモリ15は、A/D変換部14から出力される本画像のデータをバッファリングする。また、バッファメモリ15は、圧縮処理の前後で本画像のデータを一時的に記録する。
画像処理部16は、1フレーム分の画像のデータに対して、各種の画像処理(色補間処理、階調変換処理、輪郭強調処理、ホワイトバランス調整など)を施す。
The buffer memory 15 buffers the main image data output from the A / D converter 14. The buffer memory 15 temporarily records the main image data before and after the compression process.
The image processing unit 16 performs various types of image processing (color interpolation processing, gradation conversion processing, contour enhancement processing, white balance adjustment, etc.) on image data for one frame.

第1圧縮処理部17は、画像処理後の本画像のデータをJPEG(Joint Photographic Experts Group)形式で圧縮するプロセッサである。この第1圧縮処理部17は、圧縮データのデータ量を計測する符号量計測部17aを内部に有している。
ここで、第1圧縮処理部17は、以下に示す一連の圧縮処理を実行する。第1に、第1圧縮処理部17は、処理対象の画像に対してDCT(離散コサイン変換)処理を実行してDCT係数を求める。なお、このDCT変換は、8×8画素のブロック単位で実行される。第2に、第1圧縮処理部17は、後述の量子化テーブルに基づいて、DCT係数の量子化処理を実行する。第3に、第1圧縮処理部17は、量子化された値に対してハフマン符号化処理を実行し、本画像の圧縮データを生成する。
The first compression processing unit 17 is a processor that compresses the data of the main image after image processing in the JPEG (Joint Photographic Experts Group) format. The first compression processing unit 17 includes a code amount measuring unit 17a that measures the amount of compressed data.
Here, the 1st compression process part 17 performs the following series of compression processes. First, the first compression processing unit 17 performs DCT (discrete cosine transform) processing on the image to be processed to obtain DCT coefficients. This DCT conversion is executed in units of 8 × 8 pixel blocks. Secondly, the first compression processing unit 17 performs DCT coefficient quantization processing based on a quantization table described later. Thirdly, the first compression processing unit 17 performs Huffman encoding processing on the quantized value, and generates compressed data of the main image.

第2圧縮処理部18は、上記の第1圧縮処理部17と同じ構成のプロセッサであって、符号量計測部18aを内部に有している。この第2圧縮処理部18については、第1圧縮処理部17との重複説明を省略する。なお、第1圧縮処理部17および第2圧縮処理部18は、1フレームの本画像のデータを並列処理で固定長圧縮することができる。
DMA制御部19は、CPU24の指示に基づいて、各モジュール間における画像のデータのDMA転送を各データバス毎に制御する。すなわち、DMA制御部19は、データバス毎に別々のモジュールへのデータ転送を同時に行うことができる。なお、DMA制御部19は、モジュール間でデータを転送するときにデータの並び順を反転させて逆順にすることも可能である。
The second compression processing unit 18 is a processor having the same configuration as that of the first compression processing unit 17 and includes a code amount measurement unit 18a inside. The second compression processing unit 18 is not redundantly described with the first compression processing unit 17. Note that the first compression processing unit 17 and the second compression processing unit 18 can perform fixed-length compression on one frame of main image data by parallel processing.
The DMA control unit 19 controls DMA transfer of image data between the modules for each data bus based on an instruction from the CPU 24. That is, the DMA control unit 19 can simultaneously transfer data to different modules for each data bus. The DMA control unit 19 can also reverse the order of data arrangement when transferring data between modules.

記録I/F20には、記録媒体26を接続するためのコネクタが形成されている。そして、記録I/F20は、コネクタに接続された記録媒体26に対してデータの書き込み/読み込みを実行する。上記の記録媒体26は、ハードディスクや、半導体メモリを内蔵したメモリカードなどで構成される。なお、図1では記録媒体26の一例としてメモリカードを図示する。   A connector for connecting the recording medium 26 is formed in the recording I / F 20. The recording I / F 20 executes data writing / reading with respect to the recording medium 26 connected to the connector. The recording medium 26 is composed of a hard disk, a memory card incorporating a semiconductor memory, or the like. In FIG. 1, a memory card is illustrated as an example of the recording medium 26.

操作部材21は、例えばコマンドダイヤル、十字状のカーソルキー、決定釦などで構成される。そして、操作部材21は電子カメラの各種設定入力をユーザーから受け付ける。例えば、ユーザーは、(a)本画像の圧縮率に関する圧縮モード(例えば、「FINE」、「NORMAL」、「BASIC」など)の選択や、(b)記録モードの切替などを操作部材21で行うことができる。なお、上記の記録モードの切替では、通常の画像処理を行う第1記録モードと、RAWデータ(未加工の画像データ)を記録する第2記録モードとをユーザーが選択できる。   The operation member 21 includes, for example, a command dial, a cross-shaped cursor key, a determination button, and the like. The operation member 21 receives various setting inputs of the electronic camera from the user. For example, the user performs (a) selection of a compression mode (for example, “FINE”, “NORMAL”, “BASIC”, etc.) relating to the compression ratio of the main image, or (b) switching of the recording mode with the operation member 21. be able to. In the recording mode switching described above, the user can select a first recording mode for performing normal image processing and a second recording mode for recording RAW data (raw image data).

レリーズ釦22は、レリーズタイミング(本画像の露光開始)の指示入力をユーザーから受け付ける。
ROM23には、電子カメラを制御するためのシーケンスプログラムや、標準量子化テーブルおよびスケールファクタテーブルなどが記録されている。ここで、標準量子化テーブルには、各DCT係数に対して量子化の刻みを定義する数値が格納されている。この標準量子化テーブルの数値は、人間の視覚特性上失われても目立たない高周波成分のデータ量を多く削減するように設定されている。
The release button 22 receives an instruction input of a release timing (start of exposure of the main image) from the user.
The ROM 23 stores a sequence program for controlling the electronic camera, a standard quantization table, a scale factor table, and the like. Here, the standard quantization table stores numerical values that define quantization steps for each DCT coefficient. The numerical values of this standard quantization table are set so as to greatly reduce the amount of high-frequency component data that is inconspicuous even if lost due to human visual characteristics.

一方、上記のスケールファクタテーブルには、複数の標本画像データについて圧縮処理時のスケールファクタ(圧縮率に関する係数)の値と圧縮データ量との対応関係がそれぞれ記録されている。ここで、スケールファクタテーブルの値は、DCT処理後の各標本画像データについてスケールファクタの値を除々に変えながら圧縮処理を繰り返すことで求められる。なお、同一の画像のデータに対してはスケールファクタが大きいほど、データの圧縮率は大きくなる傾向がある。   On the other hand, in the scale factor table, the correspondence between the value of the scale factor (coefficient related to the compression rate) at the time of compression processing and the amount of compressed data is recorded for each of the plurality of sample image data. Here, the value of the scale factor table is obtained by repeating the compression process while gradually changing the value of the scale factor for each sample image data after the DCT process. For the same image data, the data compression ratio tends to increase as the scale factor increases.

CPU24は、電子カメラの統括的な制御を行うプロセッサである。CPU24は、上記のシーケンスプログラムに従って電子カメラの各部動作を制御する。
また、本実施形態でのCPU24は、1フレームの本画像を2つの領域に分割するとともに、分割された本画像のデータをそれぞれ第1圧縮処理部17および第2圧縮処理部18に並列処理で圧縮させる。さらに、CPU24は、本画像のデータの圧縮処理に関し、スケールファクタの決定や量子化テーブルの値の演算などを実行する。
The CPU 24 is a processor that performs overall control of the electronic camera. CPU24 controls operation | movement of each part of an electronic camera according to said sequence program.
In addition, the CPU 24 in the present embodiment divides one frame of the main image into two regions, and the divided main image data is respectively processed in parallel in the first compression processing unit 17 and the second compression processing unit 18. Compress. Further, the CPU 24 performs determination of a scale factor, calculation of a quantization table value, and the like regarding the compression processing of the data of the main image.

以下、本実施形態における電子カメラの撮像動作を説明する。なお、以下の例では、ユーザーの操作によって、電子カメラが第1記録モードに設定されている状態を前提として説明を行う。
ユーザーによってレリーズ釦22が全押しされると、CPU24は撮像素子12を駆動させて本画像の撮像を実行する。撮像素子12から読み出された本画像の画像信号は、アナログ信号処理部13およびA/D変換部14をパイプライン式に通過してバッファメモリ15にバッファリングされる。そして、本画像のデータは、画像処理部16によって各種の画像処理が施された後にバッファメモリ15に再び記録される。
Hereinafter, the imaging operation of the electronic camera in the present embodiment will be described. In the following example, description will be made on the assumption that the electronic camera is set to the first recording mode by the user's operation.
When the release button 22 is fully pressed by the user, the CPU 24 drives the image pickup device 12 and executes the image pickup of the main image. The image signal of the main image read from the image sensor 12 passes through the analog signal processing unit 13 and the A / D conversion unit 14 in a pipeline manner and is buffered in the buffer memory 15. The data of the main image is recorded again in the buffer memory 15 after various image processing is performed by the image processing unit 16.

そして、CPU24は、第1圧縮処理部17および第2圧縮処理部18に圧縮処理を実行させて、本画像のデータを固定長で圧縮する。以下、図2の流れ図を参照しつつ、本実施形態での電子カメラにおける圧縮処理を詳細に説明する。
ステップ101:CPU24は圧縮対象の本画像のデータを2つに分割し、分割したデータの圧縮処理を第1圧縮処理部17と第2圧縮処理部18とにそれぞれ割り当てる。本実施形態では、CPU24は本画像を上下に中央から2分割する。そして、CPU24は、本画像の上半分の圧縮処理を第1圧縮処理部17に割り当てるとともに、本画像の下半分の圧縮処理を第2圧縮処理部18に割り当てる。
Then, the CPU 24 causes the first compression processing unit 17 and the second compression processing unit 18 to perform compression processing, and compresses the data of the main image with a fixed length. Hereinafter, the compression processing in the electronic camera according to the present embodiment will be described in detail with reference to the flowchart of FIG.
Step 101: The CPU 24 divides the data of the main image to be compressed into two, and assigns the compression processing of the divided data to the first compression processing unit 17 and the second compression processing unit 18, respectively. In the present embodiment, the CPU 24 divides the main image vertically into two parts from the center. Then, the CPU 24 assigns the compression process for the upper half of the main image to the first compression processing unit 17 and the compression process for the lower half of the main image to the second compression processing unit 18.

ステップ102:CPU24は、現在の圧縮モードの設定に基づいて圧縮目標のデータ量を決定する。そして、CPU24は、圧縮目標のデータ量に対応する1フレーム分の記録領域をバッファメモリ15上に確保する。なお、このS102で確保された記録領域には、後述の第1圧縮データおよび第2圧縮データが書き込まれることとなる。
ステップ103:CPU24は、ROM23のスケールファクタテーブルを参照し、圧縮目標のデータ量(S102)に基づいてスケールファクタを設定する。
Step 102: The CPU 24 determines a compression target data amount based on the current compression mode setting. Then, the CPU 24 secures a recording area for one frame corresponding to the compression target data amount on the buffer memory 15. Note that first compressed data and second compressed data, which will be described later, are written in the recording area secured in S102.
Step 103: The CPU 24 refers to the scale factor table in the ROM 23 and sets the scale factor based on the compression target data amount (S102).

ステップ104:CPU24は、標準量子化テーブルの値にスケールファクタを乗じて、圧縮処理に用いる量子化テーブルの値を求める。そして、CPU24は、第1圧縮処理部17および第2圧縮処理部18に量子化テーブルの値のデータをそれぞれ出力する。したがって、第1圧縮処理部17および第2圧縮処理部18は、それぞれ同じ量子化テーブルの値に基づいて本画像の圧縮処理を行うこととなる。   Step 104: The CPU 24 multiplies the value of the standard quantization table by the scale factor to obtain the value of the quantization table used for the compression process. Then, the CPU 24 outputs the data of the quantization table value to the first compression processing unit 17 and the second compression processing unit 18, respectively. Therefore, the first compression processing unit 17 and the second compression processing unit 18 perform compression processing of the main image based on the same quantization table value.

ステップ105:CPU24は、第1圧縮処理部17、第2圧縮処理部18、DMA制御部19を動作させて本画像のデータの圧縮処理を実行する。このS105での圧縮処理は、第1圧縮処理部17と第2圧縮処理部18との並列処理によって行われる。
まず、第1圧縮処理部17による本画像のデータの圧縮処理について説明する。
第1に、DMA制御部19は、バッファメモリ15に記録されている本画像のデータのうちで画像の上半分に対応するデータを第1圧縮処理部17にDMA転送する。DMA制御部19は、上半分の画像における左上側を起点として、8×8画素のブロックごとに画像のデータを順次読み出す。なお、DMA制御部19は画像の左端のブロックから右端のブロックの順に読み出しを行う。そして、右端のブロックの読み出しが終了すると、DMA制御部19はその一段下で水平に並ぶブロックについて上記と同様の読み出しを行う。なお、図3に画像のデータの読出方法を模式的に示す。
Step 105: The CPU 24 operates the first compression processing unit 17, the second compression processing unit 18, and the DMA control unit 19 to execute the compression processing of the main image data. The compression processing in S105 is performed by parallel processing of the first compression processing unit 17 and the second compression processing unit 18.
First, the compression processing of the main image data by the first compression processing unit 17 will be described.
First, the DMA control unit 19 DMA-transfers data corresponding to the upper half of the image among the main image data recorded in the buffer memory 15 to the first compression processing unit 17. The DMA control unit 19 sequentially reads out image data for each block of 8 × 8 pixels starting from the upper left side of the upper half image. Note that the DMA control unit 19 reads in order from the leftmost block to the rightmost block of the image. When the reading of the rightmost block is completed, the DMA control unit 19 performs the same reading as described above for the blocks arranged horizontally one step below. FIG. 3 schematically shows a method for reading image data.

第2に、第1圧縮処理部17は、上半分の画像のデータをブロック単位で圧縮処理して第1圧縮データを生成する。また、第1圧縮処理部17の符号量計測部17aは、第1圧縮データのデータ量をCPU24に逐次出力する。
第3に、DMA制御部19は、所定長の第1圧縮データを出力順のままでバッファメモリ15の記録領域(S102)にDMA転送する。
Second, the first compression processing unit 17 compresses the upper half of the image data in units of blocks to generate first compressed data. Further, the code amount measuring unit 17a of the first compression processing unit 17 sequentially outputs the data amount of the first compressed data to the CPU 24.
Third, the DMA control unit 19 DMA-transfers the first compressed data having a predetermined length to the recording area (S102) of the buffer memory 15 in the output order.

ここで、DMA制御部19は、記録領域の先頭アドレスから第1圧縮データの記録を開始する。そして、DMA制御部19は、第1圧縮データのDMA転送時には先頭データの記録アドレス値を順次加算していく。これにより、第1圧縮データは、記録領域の先頭アドレスから順方向に所定長ずつ順次記録されることとなる。なお、図4に圧縮データの記録方法を模式的に示す。   Here, the DMA control unit 19 starts recording the first compressed data from the start address of the recording area. Then, the DMA control unit 19 sequentially adds the recording address value of the head data during the DMA transfer of the first compressed data. Thus, the first compressed data is sequentially recorded by a predetermined length in the forward direction from the start address of the recording area. FIG. 4 schematically shows a compressed data recording method.

次に、第2圧縮処理部18による本画像のデータの圧縮処理について説明する。なお、第2圧縮処理部18の圧縮処理は、上記の第1圧縮処理部17の圧縮処理と並行してほぼ同時に行われる。
第1に、DMA制御部19は、バッファメモリ15に記録されている本画像のデータのうちで画像の下半分に対応するデータを第2圧縮処理部18にDMA転送する。DMA制御部19は、下半分の画像における左上側を起点として、8×8画素のブロックごとに画像のデータを順次読み出す(図3参照)。なお、各ブロックの読み出し方は、上記した第1圧縮処理部17の場合と同様であるので重複説明は省略する。
Next, the compression processing of the main image data by the second compression processing unit 18 will be described. The compression processing of the second compression processing unit 18 is performed almost simultaneously with the compression processing of the first compression processing unit 17 described above.
First, the DMA control unit 19 DMA-transfers data corresponding to the lower half of the image among the main image data recorded in the buffer memory 15 to the second compression processing unit 18. The DMA control unit 19 sequentially reads out the image data for each 8 × 8 pixel block starting from the upper left side of the lower half image (see FIG. 3). In addition, since the reading method of each block is the same as that of the case of the above-mentioned 1st compression process part 17, duplicate description is abbreviate | omitted.

第2に、第2圧縮処理部18は、下半分の画像のデータをブロック単位で圧縮処理して第2圧縮データを生成する。また、第2圧縮処理部18の符号量計測部18aは、第2圧縮データのデータ量をCPU24に逐次出力する。
第3に、DMA制御部19は、所定長の第2圧縮データをバッファメモリ15の記録領域(S102)にDMA転送する。
Secondly, the second compression processing unit 18 compresses the lower half image data in units of blocks to generate second compressed data. The code amount measuring unit 18a of the second compression processing unit 18 sequentially outputs the data amount of the second compressed data to the CPU 24.
Thirdly, the DMA control unit 19 DMA-transfers the second compressed data having a predetermined length to the recording area (S102) of the buffer memory 15.

ここで、DMA制御部19は、記録領域の最後尾アドレス側から第2圧縮データの記録を開始する。このとき、DMA制御部19は、DMA転送のときに第2圧縮データの並び順を反転させるとともに、反転前の最上位ビットが最後尾のアドレスに位置するように記録する。そして、DMA制御部19は、第2圧縮データのDMA転送時には先頭データの記録アドレス値を順次減算していく。これにより、第2圧縮データは、最後尾アドレスから逆方向に所定長ずつ順次記録されることとなる(図4参照)。なお、第1圧縮データと第2圧縮データとの合計データ量が記録領域の容量(バッファサイズ)よりも少ない場合には、記録領域の中間部分に空き領域が生じる。   Here, the DMA control unit 19 starts recording the second compressed data from the end address side of the recording area. At this time, the DMA control unit 19 reverses the arrangement order of the second compressed data during the DMA transfer, and records so that the most significant bit before the inversion is located at the last address. Then, the DMA control unit 19 sequentially subtracts the recording address value of the head data during the DMA transfer of the second compressed data. As a result, the second compressed data is sequentially recorded by a predetermined length in the reverse direction from the last address (see FIG. 4). When the total data amount of the first compressed data and the second compressed data is smaller than the capacity (buffer size) of the recording area, an empty area is generated in the middle part of the recording area.

一例として、第2圧縮処理部18から第2圧縮データとして「01011101」のデータ列が出力された場合を考える。DMA制御部19は、第2圧縮データの並び順を反転させて「10111010」としてバッファメモリ15に転送する。上記の「10111010」のデータ列は、最下位ビットが記録領域の最後尾のアドレスに位置するように記録される。したがって、記録領域の最後尾アドレスからデータを逆方向に読み出したときには、本来の第2圧縮データのデータ列(「01011101」)が正しく出力されることとなる。   As an example, consider a case where a data string “0101101101” is output from the second compression processing unit 18 as the second compressed data. The DMA control unit 19 inverts the arrangement order of the second compressed data and transfers it to the buffer memory 15 as “10111010”. The data string “10111010” is recorded such that the least significant bit is located at the end address of the recording area. Therefore, when the data is read in the reverse direction from the last address of the recording area, the original data string of the second compressed data (“010111101”) is correctly output.

ステップ106:CPU24は、符号量計測部17a,18aの出力に基づいて、S105の圧縮処理時に総圧縮データ量(第1圧縮データおよび第2圧縮データの合計)が記録領域(S102)の容量をオーバーしたか(バッファオーバーか)否かを判定する。
総圧縮データ量が記録領域の容量をオーバーした場合(YES側)には、CPU24は再び圧縮処理を行うためにS107に移行する。一方、総圧縮データ量が記録領域の容量に収まる場合(NO側)には、CPU24はS108に移行する。
Step 106: Based on the output of the code amount measuring units 17a and 18a, the CPU 24 determines that the total compressed data amount (total of the first compressed data and the second compressed data) is the capacity of the recording area (S102) during the compression processing in S105. It is determined whether it is over (buffer over) or not.
If the total compressed data amount exceeds the capacity of the recording area (YES side), the CPU 24 proceeds to S107 to perform the compression process again. On the other hand, when the total amount of compressed data falls within the capacity of the recording area (NO side), the CPU 24 proceeds to S108.

ステップ107:CPU24は、以下の(1)から(3)のいずれかの手段によって、圧縮率が高くなるようにスケールファクタを修正する。その後、CPU24はS104に戻って上記の動作を繰り返す。
(1)CPU24は、総圧縮データ量が記録領域の容量をオーバーした段階で、DMA制御部19に圧縮データの転送を停止させる。その一方で、CPU24は、第1圧縮処理部17および第2圧縮処理部18に本画像のデータを最後まで圧縮させて、符号量計測部17a,18aの出力から最終的な総圧縮データ量を求める。この場合には、バッファオーバー後の圧縮データは符号量の計測のみに使用され、圧縮データが記録されることはない。そして、CPU24は、最終的な総圧縮データ量に基づいて、本画像のデータが圧縮目標のデータ量に収まるようにスケールファクタを求める。
Step 107: The CPU 24 corrects the scale factor so as to increase the compression rate by any of the following means (1) to (3). Thereafter, the CPU 24 returns to S104 and repeats the above operation.
(1) The CPU 24 causes the DMA control unit 19 to stop transferring compressed data when the total amount of compressed data exceeds the capacity of the recording area. On the other hand, the CPU 24 causes the first compression processing unit 17 and the second compression processing unit 18 to compress the data of the main image to the end, and obtains the final total compressed data amount from the output of the code amount measuring units 17a and 18a. Ask. In this case, the compressed data after the buffer over is used only for code amount measurement, and the compressed data is not recorded. Then, the CPU 24 obtains a scale factor based on the final total compressed data amount so that the data of the main image falls within the compression target data amount.

例えば、CPU24は、今回のスケールファクタと最終的な総圧縮データ量との組み合わせから、圧縮対象の本画像に近似する標本画像データを推定する。そして、CPU24は、推定した標本画像データに対応するスケールファクタテーブルを用いてスケールファクタを再び演算する。この場合には、今回の圧縮結果に基づいて、CPU24は次回の圧縮に用いるスケールファクタの推定を高い精度で行うことができる。   For example, the CPU 24 estimates sample image data that approximates the main image to be compressed from the combination of the current scale factor and the final total compressed data amount. Then, the CPU 24 calculates the scale factor again using the scale factor table corresponding to the estimated sample image data. In this case, based on the current compression result, the CPU 24 can estimate the scale factor used for the next compression with high accuracy.

(2)CPU24は、総圧縮データ量が記録領域の容量をオーバーした段階で、第1圧縮処理部17および第2圧縮処理部18による圧縮処理を全て停止させる。そして、CPU24は、符号量計測部17a,18aの出力と、本画像のデータのうちで未圧縮の残データの量とに基づいて、以下の手順でスケールファクタを求める。
第1に、CPU24は、上記の残データのデータ量を求める。
(2) The CPU 24 stops all the compression processing by the first compression processing unit 17 and the second compression processing unit 18 when the total amount of compressed data exceeds the capacity of the recording area. Then, the CPU 24 obtains a scale factor according to the following procedure based on the output of the code amount measuring units 17a and 18a and the amount of uncompressed remaining data in the main image data.
First, the CPU 24 obtains the data amount of the remaining data.

第2に、CPU24は、符号量計測部17a,18aの出力に基づいて、記録領域に記録された第1圧縮データと第2圧縮データとのそれぞれのデータ量を求める。
第3に、CPU24は、第1圧縮データおよび第2圧縮データの場合と同様に残データが圧縮されるものとみなして、残データ分の圧縮データ量を推定する。
具体的には、CPU24は、本画像の上半分に対応する残データについて、圧縮済みの上半分の画像のデータ量と第1圧縮データのデータ量とから、第1圧縮処理部17での実際の圧縮率を求める。そして、CPU24は、残データのデータ量に上記の圧縮率を乗じて圧縮データ量の推定値を求める。なお、CPU24は、本画像の下半分に対応する残データについても、上記と同様の工程で圧縮データ量の推定値を求める。
Secondly, the CPU 24 obtains the respective data amounts of the first compressed data and the second compressed data recorded in the recording area based on the outputs of the code amount measuring units 17a and 18a.
Thirdly, the CPU 24 assumes that the remaining data is compressed as in the case of the first compressed data and the second compressed data, and estimates the compressed data amount for the remaining data.
Specifically, the CPU 24 determines the actual data in the first compression processing unit 17 from the data amount of the compressed upper half image and the data amount of the first compressed data for the remaining data corresponding to the upper half of the main image. Determine the compression ratio. Then, the CPU 24 obtains an estimated value of the compressed data amount by multiplying the data amount of the remaining data by the above compression rate. Note that the CPU 24 calculates an estimated value of the compressed data amount for the remaining data corresponding to the lower half of the main image in the same process as described above.

第4に、CPU24は、上記した圧縮データ量の推定値の合計と、記録領域の容量との和から、最終的な総圧縮データ量の推定値を求める。そして、CPU24は、最終的な総圧縮データ量の推定値に基づいて、本画像のデータが圧縮目標のデータ量に収まるようにスケールファクタを再設定する。なお、この場合のスケールファクタの演算は、上記(1)の場合と同様であるので重複説明を省略する。   Fourthly, the CPU 24 obtains a final estimated value of the total compressed data amount from the sum of the total estimated value of the compressed data amount and the capacity of the recording area. Then, the CPU 24 resets the scale factor based on the final estimated value of the total compressed data amount so that the data of the main image is within the compression target data amount. Note that the calculation of the scale factor in this case is the same as in the case of the above (1), and therefore a duplicate description is omitted.

この(2)の場合にも、今回の圧縮結果に基づいて、CPU24は次回の圧縮に用いるスケールファクタの推定を高い精度で行うことができる。なお、(2)の場合には、圧縮処理を最後まで行う必要がないので、CPU24は上記(1)の場合よりも処理時間を短縮することが可能となる。
(3)CPU24は、総圧縮データ量が記録領域の容量をオーバーした段階で、第1圧縮処理部17および第2圧縮処理部18による圧縮処理を全て停止させる。そして、CPU24は、未圧縮の残データも圧縮できるようにスケールファクタを求める。一例として、本画像のデータ全体に対する未圧縮の残データの比が4:1となる場合を考えると、CPU24はS105での圧縮条件と比べて圧縮率が125%((4+1)/4)に高まるようにスケールファクタを再設定する。なお、この(3)の場合にも圧縮処理を最後まで行う必要がないので、CPU24は上記(1)の場合よりも処理時間を短縮することが可能となる。
Also in the case of (2), based on the current compression result, the CPU 24 can estimate the scale factor used for the next compression with high accuracy. In the case of (2), since it is not necessary to perform the compression process to the end, the CPU 24 can shorten the processing time as compared with the case of (1).
(3) The CPU 24 stops all the compression processing by the first compression processing unit 17 and the second compression processing unit 18 when the total amount of compressed data exceeds the capacity of the recording area. And CPU24 calculates | requires a scale factor so that uncompressed remaining data can also be compressed. As an example, considering the case where the ratio of uncompressed remaining data to the entire data of the main image is 4: 1, the CPU 24 reduces the compression ratio to 125% ((4 + 1) / 4) as compared with the compression condition in S105. Reset the scale factor to increase. In the case of (3), it is not necessary to perform the compression process to the end, so the CPU 24 can shorten the processing time compared to the case of (1).

ステップ108:CPU24は、圧縮処理(S105)の実行回数が閾値を超えるか否かを判定する。圧縮処理の実行回数が閾値を超える場合(YES側)には、CPU24はS111に移行して本画像のデータに対する圧縮処理を打ち切る。一方、圧縮処理の実行回数が閾値以下の場合(NO側)には、CPU24はS109に移行する。
ステップ109:CPU24は、総圧縮データ量(S106)が、圧縮目標のデータ量を上限とする許容範囲に収まるか否かを判定する。総圧縮データ量が許容範囲に収まる場合(YES側)には、CPU24はS111に移行する。一方、総圧縮データ量が許容範囲を下回る場合(NO側)には、CPU24は再び圧縮処理を行うためにS110に移行する。
Step 108: The CPU 24 determines whether or not the number of executions of the compression process (S105) exceeds a threshold value. If the number of executions of the compression process exceeds the threshold (YES side), the CPU 24 proceeds to S111 and terminates the compression process for the main image data. On the other hand, when the number of executions of the compression process is equal to or less than the threshold (NO side), the CPU 24 proceeds to S109.
Step 109: The CPU 24 determines whether or not the total compressed data amount (S106) falls within an allowable range having the compression target data amount as an upper limit. If the total compressed data amount is within the allowable range (YES side), the CPU 24 proceeds to S111. On the other hand, when the total compressed data amount is below the allowable range (NO side), the CPU 24 proceeds to S110 to perform the compression process again.

ステップ110:CPU24は、圧縮率が低くなるようにスケールファクタを修正する。この場合、CPU24は、第1圧縮データおよび第2圧縮データのデータ量に基づいて、記録領域のうちの空き領域の容量を求める。そして、CPU24は、上記の空き領域の容量に応じて総圧縮データ量が増加するようにスケールファクタを再設定する。その後、CPU24はS104に戻って上記の動作を繰り返す。   Step 110: The CPU 24 corrects the scale factor so that the compression rate becomes low. In this case, the CPU 24 obtains the capacity of the free area in the recording area based on the data amounts of the first compressed data and the second compressed data. Then, the CPU 24 resets the scale factor so that the total amount of compressed data increases according to the capacity of the free area. Thereafter, the CPU 24 returns to S104 and repeats the above operation.

ステップ111:CPU24は、バッファメモリ15の記録領域に記録されている第1圧縮データおよび第2圧縮データを記録媒体26に記録する。このとき、DMA制御部19は、CPU24の指示に応じて、以下のように各圧縮データを転送する。
まず、DMA制御部19は、記録領域の先頭アドレスから第1圧縮データを順方向に読み出して記録媒体26に転送する。ここで、第1圧縮データは第1圧縮処理部17からの出力順のままで記録媒体26に記録されることとなる。
Step 111: The CPU 24 records the first compressed data and the second compressed data recorded in the recording area of the buffer memory 15 on the recording medium 26. At this time, the DMA control unit 19 transfers each compressed data in accordance with an instruction from the CPU 24 as follows.
First, the DMA control unit 19 reads the first compressed data from the start address of the recording area in the forward direction and transfers it to the recording medium 26. Here, the first compressed data is recorded on the recording medium 26 in the output order from the first compression processing unit 17.

次に、第1圧縮データの読み出しが終了した時点で、DMA制御部19は記録領域の最後尾アドレスから第2圧縮データを逆方向に読み出して記録媒体26に転送する。この転送後の第2圧縮データの並び順は、上述したように第2圧縮処理部18からの出力順の状態となる。そして、第1圧縮データと第2圧縮データとは、1つのデータ列として記録媒体26に連続的に記録される。これにより、1フレーム分の本画像の圧縮データは、1つの圧縮処理プロセッサで圧縮した場合と同様の状態で記録媒体26に記録されることとなる。以上で、本実施形態における電子カメラの撮像動作の説明を終了する。   Next, when reading of the first compressed data is completed, the DMA control unit 19 reads the second compressed data in the reverse direction from the last address of the recording area and transfers it to the recording medium 26. The arrangement order of the second compressed data after the transfer is in the order of the output from the second compression processing unit 18 as described above. The first compressed data and the second compressed data are continuously recorded on the recording medium 26 as one data string. As a result, the compressed data of the main image for one frame is recorded on the recording medium 26 in the same state as when compressed by one compression processor. Above, description of the imaging operation of the electronic camera in this embodiment is complete | finished.

以下、本実施形態の作用効果を説明する。本実施形態の電子カメラでは、第1圧縮処理部17および第2圧縮処理部18が1フレームの本画像を並列処理で圧縮する。そのため、画像のデータを1つの圧縮処理プロセッサで圧縮する場合と比べて、本実施形態では圧縮処理の高速化を図ることができる。
また、本実施形態の電子カメラでは、第1圧縮処理部17の第1圧縮データと第2圧縮処理部18の第2圧縮データとがバッファメモリ15の共通の記録領域に一時的に記録される。したがって、本実施形態では、バッファメモリ15への圧縮データの記録効率を高めることができる。一例として、一方の圧縮処理部の圧縮符号量が少なく、他方の圧縮処理部の圧縮符号量が多くなる場合を考える。ここで、第1圧縮処理部17と第2圧縮処理部18とにバッファメモリ15の記録領域を別々に割り当てると、ワーストケースを考慮して個々の記録領域のバッファサイズを符号量の多い場合に合わせる必要が生じる。すなわち、各々の圧縮処理部ごとに記録領域を用意すると、圧縮目標のデータ量よりも多いバッファサイズが必要となる。
Hereinafter, the effect of this embodiment is demonstrated. In the electronic camera of this embodiment, the first compression processing unit 17 and the second compression processing unit 18 compress one frame of the main image by parallel processing. Therefore, compared with the case where image data is compressed by a single compression processor, the speed of the compression process can be increased in this embodiment.
In the electronic camera of this embodiment, the first compressed data of the first compression processing unit 17 and the second compressed data of the second compression processing unit 18 are temporarily recorded in a common recording area of the buffer memory 15. . Therefore, in this embodiment, the recording efficiency of compressed data in the buffer memory 15 can be increased. As an example, consider a case where the compression code amount of one compression processing unit is small and the compression code amount of the other compression processing unit is large. Here, if the recording areas of the buffer memory 15 are separately allocated to the first compression processing section 17 and the second compression processing section 18, the buffer size of each recording area is set with a large code amount in consideration of the worst case. Need to match. That is, if a recording area is prepared for each compression processing unit, a buffer size larger than the compression target data amount is required.

その一方で、本実施形態のように各々の圧縮処理部で記録領域を共用する構成では、一方の圧縮処理部の圧縮符号量が少なければ、その分だけ他方の圧縮処理部の圧縮符号量を多く記録できる。したがって、本実施形態の構成では、圧縮目標のデータ量に相当するサイズの記録領域をバッファメモリ15に確保すれば足りる。
特に、本実施形態の電子カメラでは、記録領域の先頭アドレスから第1圧縮データが順方向に記録される一方で、記録領域の最後尾アドレスから第2圧縮データが逆方向に記録される。そのため、記録領域において第1圧縮データと第2圧縮データとに挟まれた中間部分に空き領域がまとまるので、バッファメモリ15への圧縮データの記録効率をより高めることができる。
On the other hand, in the configuration in which each compression processing unit shares a recording area as in this embodiment, if the compression code amount of one compression processing unit is small, the compression code amount of the other compression processing unit is increased by that amount. Can record a lot. Therefore, in the configuration of the present embodiment, it is sufficient to secure a recording area having a size corresponding to the compression target data amount in the buffer memory 15.
In particular, in the electronic camera of this embodiment, the first compressed data is recorded in the forward direction from the start address of the recording area, while the second compressed data is recorded in the reverse direction from the last address of the recording area. For this reason, since the empty area is gathered in the intermediate portion sandwiched between the first compressed data and the second compressed data in the recording area, the recording efficiency of the compressed data in the buffer memory 15 can be further improved.

さらに、本実施形態の電子カメラは、第2圧縮データの並び順を反転させて記録領域に記録する。そのため、第2圧縮データを最後尾アドレスから逆方向に読み出せば、CPU24はバッファメモリ15から第2圧縮データを正しい並び順で読み出すことができる。
(実施形態の補足事項)
(1)本発明における圧縮処理は上記実施形態のように撮像時に限定されることはない。例えば、上記実施形態において、第2記録モードで撮像されたRAWデータをデジタル的に現像するときに、第1圧縮処理部17および第2圧縮処理部18が並列的に圧縮処理を実行してもよい。さらに、本発明の圧縮処理は、複数のプロセッサコアを有するコンピュータにおいて、別々のプロセッサコアを2つの圧縮処理部として機能させることでソフトウエア的に実現してもよい。
Furthermore, the electronic camera according to the present embodiment records the second compressed data in the recording area by inverting the order of arrangement. Therefore, if the second compressed data is read in the reverse direction from the tail address, the CPU 24 can read the second compressed data from the buffer memory 15 in the correct arrangement order.
(Supplementary items of the embodiment)
(1) The compression processing in the present invention is not limited to the time of imaging as in the above embodiment. For example, in the above embodiment, when the RAW data imaged in the second recording mode is digitally developed, the first compression processing unit 17 and the second compression processing unit 18 execute the compression processing in parallel. Good. Furthermore, the compression processing of the present invention may be realized in software by causing a separate processor core to function as two compression processing units in a computer having a plurality of processor cores.

(2)本発明での画像圧縮方法は、JPEG規格に準拠したDCT変換に限定されるものではなく、他の公知の画像圧縮方法によるものでもよい。例えば、上記実施形態の第1圧縮処理部17および第2圧縮処理部18は、JPEG2000の規格に準拠して、タイル単位で分割された本画像にウェーブレット変換処理を並列的に施すようにしてもよい。
(3)本発明での本画像の分割方法は、画像を水平方向に上下に2分割する場合のみに限定されずに自由に変更することができる。例えば、画像を垂直方向に左右に2分割するようにしてもよい。また、第1圧縮処理部17および第2圧縮処理部18がJPEG2000の規格に準拠して圧縮処理を行う場合には、第1圧縮処理部17にROI(Region Of Interest)領域の圧縮処理を割り当て、第2圧縮処理部18にその他の領域の圧縮処理を割り当てるようにしてもよい。
(2) The image compression method in the present invention is not limited to DCT conversion conforming to the JPEG standard, and may be another known image compression method. For example, the first compression processing unit 17 and the second compression processing unit 18 of the above embodiment may perform wavelet transform processing in parallel on the main image divided in units of tiles in accordance with the JPEG2000 standard. Good.
(3) The method of dividing the main image in the present invention is not limited to the case where the image is divided into two in the horizontal direction and can be freely changed. For example, the image may be divided into two in the vertical direction. When the first compression processing unit 17 and the second compression processing unit 18 perform compression processing in accordance with the JPEG2000 standard, ROI (Region Of Interest) area compression processing is assigned to the first compression processing unit 17. The second compression processing unit 18 may be assigned compression processing for other areas.

なお、本発明は、その精神またはその主要な特徴から逸脱することなく他の様々な形で実施することができる。そのため、上述した実施形態はあらゆる点で単なる例示に過ぎず、限定的に解釈してはならない。本発明は、特許請求の範囲によって示されるものであって、本発明は明細書本文にはなんら拘束されない。さらに、特許請求の範囲の均等範囲に属する変形や変更は、全て本発明の範囲内である。   The present invention can be implemented in various other forms without departing from the spirit or the main features thereof. Therefore, the above-described embodiment is merely an example in all respects and should not be interpreted in a limited manner. The present invention is defined by the claims, and the present invention is not limited to the text of the specification. Further, all modifications and changes belonging to the equivalent scope of the claims are within the scope of the present invention.

本実施形態の電子カメラの構成を示すブロック図The block diagram which shows the structure of the electronic camera of this embodiment 本実施形態での電子カメラにおける圧縮処理を説明する流れ図Flowchart for explaining compression processing in the electronic camera in the present embodiment 画像のデータの読出方法を模式的に示す図The figure which shows the reading method of the image data typically 圧縮データの記録方法を模式的に示す図The figure which shows the recording method of compressed data typically

符号の説明Explanation of symbols

11…撮像光学系、12…撮像素子、13…アナログ信号処理部、14…A/D変換部、15…バッファメモリ、16…画像処理部、17…第1圧縮処理部、18…第2圧縮処理部、19…DMA制御部、24…CPU
DESCRIPTION OF SYMBOLS 11 ... Imaging optical system, 12 ... Image sensor, 13 ... Analog signal processing part, 14 ... A / D conversion part, 15 ... Buffer memory, 16 ... Image processing part, 17 ... 1st compression processing part, 18 ... 2nd compression Processing unit, 19 ... DMA control unit, 24 ... CPU

Claims (6)

入力された画像のデータを圧縮して第1圧縮データを生成する第1圧縮処理部と、
入力された画像のデータを圧縮して第2圧縮データを生成する第2圧縮処理部と、
1フレームの前記画像を2つの領域に分割するとともに、該分割された前記画像のデータをそれぞれ前記第1圧縮処理部および前記第2圧縮処理部に並列処理させる制御部と、
を備えることを特徴とする画像処理装置。
A first compression processing unit that compresses input image data to generate first compressed data;
A second compression processing unit that compresses input image data to generate second compressed data;
A control unit that divides the image of one frame into two regions, and causes the first compression processing unit and the second compression processing unit to process the data of the divided images in parallel,
An image processing apparatus comprising:
請求項1に記載の画像処理装置において、
データを一時的に記録するメモリと、
前記第1圧縮データおよび前記第2圧縮データを、前記メモリ上で1フレーム分に割り当てられた共通の記録領域に記録するデータ転送部と、
をさらに備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
A memory for temporarily recording data,
A data transfer unit for recording the first compressed data and the second compressed data in a common recording area allocated for one frame on the memory;
An image processing apparatus further comprising:
請求項2に記載の画像処理装置において、
前記データ転送部は、前記第1圧縮データを前記記録領域の先頭アドレスから正方向に記録するとともに、前記第2圧縮データを前記記録領域の最後尾アドレスから逆方向に記録することを特徴とする画像処理装置。
The image processing apparatus according to claim 2,
The data transfer unit records the first compressed data in the forward direction from the start address of the recording area, and records the second compressed data in the reverse direction from the end address of the recording area. Image processing device.
請求項3に記載の画像処理装置において、
前記データ転送部は、前記第2圧縮データの並び順を反転させて前記記録領域に記録することを特徴とする画像処理装置。
The image processing apparatus according to claim 3.
The data transfer unit, wherein the arrangement order of the second compressed data is reversed and recorded in the recording area.
請求項1に記載の画像処理装置において、
前記制御部は、前記第1圧縮処理部および前記第2圧縮処理部の圧縮結果に基づいて、再圧縮時のパラメータを演算することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The image processing apparatus, wherein the control unit calculates a parameter at the time of recompression based on a compression result of the first compression processing unit and the second compression processing unit.
被写体像を撮像して画像のデータを生成する撮像部と、
請求項1から請求項5のいずれか1項に記載の画像処理装置と、
を備えることを特徴とする撮像装置。
An imaging unit that captures a subject image and generates image data;
The image processing apparatus according to any one of claims 1 to 5,
An imaging apparatus comprising:
JP2007026574A 2006-08-01 2007-02-06 Image processing device and imaging apparatus Withdrawn JP2008193464A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2007026574A JP2008193464A (en) 2007-02-06 2007-02-06 Image processing device and imaging apparatus
EP07790302.9A EP2053841B1 (en) 2006-08-01 2007-07-30 Image processing device and electronic camera
US12/309,741 US8249339B2 (en) 2006-08-01 2007-07-30 Image processing device and electronic camera
PCT/JP2007/000808 WO2008015781A1 (en) 2006-08-01 2007-07-30 Image processing device and electronic camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007026574A JP2008193464A (en) 2007-02-06 2007-02-06 Image processing device and imaging apparatus

Publications (1)

Publication Number Publication Date
JP2008193464A true JP2008193464A (en) 2008-08-21

Family

ID=39753108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007026574A Withdrawn JP2008193464A (en) 2006-08-01 2007-02-06 Image processing device and imaging apparatus

Country Status (1)

Country Link
JP (1) JP2008193464A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183162A (en) * 2009-02-03 2010-08-19 Mitsubishi Electric Corp Motion picture encoder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183162A (en) * 2009-02-03 2010-08-19 Mitsubishi Electric Corp Motion picture encoder

Similar Documents

Publication Publication Date Title
WO2008015781A1 (en) Image processing device and electronic camera
JP4682102B2 (en) Image coding apparatus and image coding method
JP4047183B2 (en) Image compression encoding apparatus and control method thereof
US9241172B2 (en) Moving image encoding and decoding device
JP6406949B2 (en) Image processing apparatus and image processing method
JP6512916B2 (en) Image pickup apparatus, control method thereof and program
CN1937696A (en) Image signal processing apparatus and method
JP6278712B2 (en) Imaging apparatus and control method thereof
JP6792351B2 (en) Encoding device, imaging device, coding method, and program
JP2002314999A (en) Image compressor, image compressing program and electronic camera
JP2008193464A (en) Image processing device and imaging apparatus
JP4725217B2 (en) Imaging device
JP6946671B2 (en) Image processing device and image processing method
JP2012010239A (en) Imaging apparatus, data structure of moving image file, image processing apparatus, and program
KR101524464B1 (en) Imaging apparatus, imaging method and storing medium having computer program to perform the same
JP2006254333A (en) Coding device, coding method, and digital camera
JP4706567B2 (en) Image processing method, image processing method program, recording medium storing image processing method program, and image processing apparatus
JP6486120B2 (en) Encoding apparatus, encoding apparatus control method, and program
JP6512927B2 (en) Image coding apparatus and control method thereof
JP2016005103A (en) Imaging apparatus and control method therefor
JP2013126182A (en) Imaging apparatus and image processing method
JP7332399B2 (en) Image processing device and its control method
JP2010147531A (en) Imaging apparatus and imaging method
JPH09284767A (en) Picture compression system and picture compression method
JP2006340045A (en) Image processor and image processing method

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: 20100406