JP2006352335A - Image coding equipment - Google Patents

Image coding equipment Download PDF

Info

Publication number
JP2006352335A
JP2006352335A JP2005173784A JP2005173784A JP2006352335A JP 2006352335 A JP2006352335 A JP 2006352335A JP 2005173784 A JP2005173784 A JP 2005173784A JP 2005173784 A JP2005173784 A JP 2005173784A JP 2006352335 A JP2006352335 A JP 2006352335A
Authority
JP
Japan
Prior art keywords
encoding
image data
image
parameter
threshold value
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
JP2005173784A
Other languages
Japanese (ja)
Inventor
Shin Takagi
心 高木
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2005173784A priority Critical patent/JP2006352335A/en
Publication of JP2006352335A publication Critical patent/JP2006352335A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problems of a decrease in the response of equipment and a decrease in successive photographing speed/number of successive photographing frames since coding must be tried by the number of a plurality of coding parameters held by a storage means and hence processing time per image data becomes long. <P>SOLUTION: Coding processing is made by selecting the same coding parameter continuously when the free space of a memory that can be used for performing the loss-less compression processing of image data is equal to or higher than a threshold. Conversely, a coding parameter where the amount of coding becomes the smallest is selected from a plurality of coding parameters for performing the coding processing when the free space is less than the threshold. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は画像データを符号化し、記録媒体に記録する、画像符号化装置に関するものである。   The present invention relates to an image encoding apparatus that encodes image data and records the image data on a recording medium.

電子カメラ等の画像処理装置において撮像素子によって撮影された画像は、デジタルデータにA/D変換され、多くの場合は必要な画像処理を行った後にJPEG符号化等の非可逆圧縮変換を施すことで、記録媒体への効率的な画像の記録を行っている。   An image captured by an image sensor in an image processing apparatus such as an electronic camera is A / D converted into digital data. In many cases, necessary image processing is performed and then irreversible compression conversion such as JPEG encoding is performed. Thus, an efficient image is recorded on the recording medium.

また、より画像品質を重視したい場合においては、電子カメラ等の画像処理装置内部では一切の画像処理を行うことなく、撮像素子から得られる全ての情報を記録媒体に可逆圧縮変換を施した後に記録し、記録された画像データは、装置メーカが提供するコンピュータソフトウェア等により、より高品位な画像処理を行うことで画像品質のより優れた画像をユーザに提供している。   In addition, when more importance is attached to image quality, all information obtained from the image sensor is recorded after reversible compression conversion is performed on the recording medium without performing any image processing inside the image processing apparatus such as an electronic camera. The recorded image data is subjected to higher quality image processing by computer software or the like provided by the apparatus manufacturer, thereby providing the user with an image with better image quality.

従来、可逆圧縮においては、多くの場合、符号化データサイズが最小になるように好適な符号化パラメータを複数の符号化パラメータの中から選択して適用することで、記録媒体への効率的な画像の記録を行っている。例えば、特許文献1においては、記憶手段に保持されている複数の符号化パラメータによる符号化を1つずつ試み、符号化データサイズが最小となった符号化パラメータを採用する技術が提案されている。   Conventionally, in lossless compression, in many cases, an efficient encoding to a recording medium can be achieved by selecting and applying a suitable encoding parameter from among a plurality of encoding parameters so that the encoded data size is minimized. The image is recorded. For example, Patent Document 1 proposes a technique of trying encoding with a plurality of encoding parameters held in a storage unit one by one and employing an encoding parameter having a minimum encoded data size. .

また特許文献2においては、高速連写撮影を行う際に画像データを保持するバッファメモリが圧縮処理の完了していない画像データで一杯になり空き容量がないと判定されると、1コマ分の画像データを圧縮処理し記録媒体に格納する方法が提案されている。
特開2001-326939 特開平07-099629
Further, in Patent Document 2, when it is determined that the buffer memory for holding the image data is full of image data that has not been subjected to compression processing when performing high-speed continuous shooting, and there is no free space, A method for compressing image data and storing it in a recording medium has been proposed.
JP2001-326939 JP 07-099629

しかしながら、特許文献1の従来技術では、記憶手段に保持されている複数の符号化パラメータの数だけ符号化を試みなくてはならず、1つの画像データあたりの処理時間が長くなるため、装置のレスポンスの低下、連写速度/連写コマ数の低下が発生するという問題があった。   However, in the prior art of Patent Document 1, encoding must be attempted by the number of the plurality of encoding parameters held in the storage unit, and the processing time per image data becomes long. There was a problem that the response and the continuous shooting speed / number of frames were reduced.

また特許文献2の従来技術では、圧縮処理された画像データのデータサイズについて考慮されていない。バッファメモリへ比べて記録媒体へ書き込み速度は遅いので、バッファメモリ中の画像データを記録媒体に書き込んでバッファメモリに空きが出来るまでに時間がかかり、連写速度の低下が発生するという問題があった。   In the prior art of Patent Document 2, the data size of the compressed image data is not considered. Since the writing speed to the recording medium is slower than the buffer memory, it takes time until the image data in the buffer memory is written to the recording medium and the buffer memory is freed, resulting in a decrease in the continuous shooting speed. It was.

本発明の目的を達成するために、本発明の画像符号化装置は以下の構成を備える。すなわち、画像データを符号化パラメータにより符号化する符号化手段と、前記符号化パラメータを複数保持する記憶手段と、画像データを符号化処理するためのメモリ領域と、前記記憶手段に保持された複数の符号化パラメータから画像データを符号化するのに最適な符号化パラメータを使用するパラメータ選択手段を有し、
前記記憶手段に保持された複数の符号化パラメータを用いて画像データを符号化しその中で最適な符号化データを選択するか、或いは予め決められた符号化パラメータを使用して符号化するかを決定する決定手段を有することを特徴とする画像符号化装置。
In order to achieve the object of the present invention, an image encoding apparatus of the present invention comprises the following arrangement. That is, an encoding unit that encodes image data with an encoding parameter, a storage unit that holds a plurality of the encoding parameters, a memory area for encoding image data, and a plurality of units that are held in the storage unit Parameter selection means that uses an optimal encoding parameter for encoding image data from the encoding parameters of
Whether to encode image data using a plurality of encoding parameters held in the storage means and select optimal encoding data among them, or to encode using predetermined encoding parameters An image encoding apparatus comprising a determining unit for determining.

連写中に電子カメラ内部の画像符号化装置において画像データの可逆圧縮処理を行う際、画像データを処理するのに必要なメモリ領域が閾値以上であるときは、前の画像データをメモリ領域に残したままで次の画像データを処理出来るので、電子カメラの連写速度は画像データをメモリに書き込む速度に依存する。この場合は画像データの特徴によらず常に同じ符号化パラメータを用いて可逆圧縮処理を一度だけ行い、圧縮処理にかける時間を短くすることで電子カメラの連写速度を速くすることができる。   When performing reversible compression processing of image data in the image encoding device inside the electronic camera during continuous shooting, if the memory area required to process the image data is greater than or equal to the threshold value, the previous image data is stored in the memory area. Since the next image data can be processed as it is, the continuous shooting speed of the electronic camera depends on the speed of writing the image data into the memory. In this case, the continuous shooting speed of the electronic camera can be increased by performing the lossless compression process only once using the same encoding parameter regardless of the characteristics of the image data and shortening the time required for the compression process.

また画像データを処理するのに必要なメモリ領域が閾値未満であるときは、電子カメラ内の画像処理装置は可逆圧縮された画像データを直ぐに記録媒体に書き込んで次の画像データを処理するためのメモリ領域を確保する必要がある。この場合においても、画像データを一回可逆圧縮処理するのにかかる時間が圧縮データを記録媒体に書き込む時間より十分速ければ、複数の符号化パラメータを用いて画像データの可逆圧縮処理を行い、最も符号量の小さい圧縮データを記録媒体に書き込むことで書き込み時間を短縮でき、次のCCD−RAWデータをメモリ領域に書き込めるようになるまでの時間を短縮し、連写速度を速くすることが出来る。   When the memory area necessary for processing the image data is less than the threshold value, the image processing device in the electronic camera immediately writes the reversibly compressed image data on the recording medium to process the next image data. It is necessary to secure a memory area. Even in this case, if the time taken to perform reversible compression processing of image data once is sufficiently faster than the time for writing the compressed data to the recording medium, the reversible compression processing of the image data is performed using a plurality of encoding parameters. Writing compressed data with a small code amount on the recording medium can shorten the writing time, shorten the time until the next CCD-RAW data can be written in the memory area, and increase the continuous shooting speed.

また、電子カメラで連写して画像データを撮る場合、画像データは類似性の高い特徴を持つ。そのため、連写して撮った1枚目の画像データを複数の符号化パラメータを用いて可逆圧縮し、最も符号量の小さくなる符号化パラメータを選択し、その符号化パラメータを連写して撮った2枚目以降の画像データにも適用することで、2枚目以降の画像データの符号量を削減し連写コマ数を増加することが出来る。   In addition, when image data is taken continuously by an electronic camera, the image data has a feature with high similarity. Therefore, the first image data taken by continuous shooting is losslessly compressed using a plurality of encoding parameters, the encoding parameter with the smallest code amount is selected, and the encoding parameters are taken continuously 2 By applying it to the image data of the second and subsequent sheets, it is possible to reduce the code amount of the image data of the second and subsequent sheets and increase the number of continuous shot frames.

(第1の実施の形態)
図1は、画像符号化装置、画像復号化装置それぞれの機能を有する画像処理装置として本実施形態で撮像装置を用いた場合に、この撮像装置の概略構成を示す図である。同図において、100は撮像装置を示したものであり、本画像の可逆圧縮・記録の際に、ベースラインJPEG回路におけるハフマン符号・復号回路を利用して、撮像素子により撮影された画像データを一切の画像処理を行うことなく可逆圧縮・記録する場合について説明する。
(First embodiment)
FIG. 1 is a diagram illustrating a schematic configuration of an imaging apparatus when the imaging apparatus is used in the present embodiment as an image processing apparatus having functions of an image encoding apparatus and an image decoding apparatus. In the figure, reference numeral 100 denotes an image pickup apparatus. When the main image is reversibly compressed and recorded, image data taken by the image pickup device is obtained using a Huffman encoding / decoding circuit in the baseline JPEG circuit. A case where reversible compression / recording is performed without performing any image processing will be described.

10は撮影像を光学的に結像させる撮像レンズ、12は撮影像をアナログの電気信号に変換する撮像素子、14は撮像素子12のアナログ信号出力をデジタル信号に変換するA/D変換器である。ここで、A/D変換器14から出力されたデジタルデータを、以下ではCCD−RAWデータとする。   Reference numeral 10 denotes an imaging lens that optically forms a photographic image, 12 denotes an imaging device that converts the photographic image into an analog electrical signal, and 14 denotes an A / D converter that converts an analog signal output from the imaging device 12 into a digital signal. is there. Here, the digital data output from the A / D converter 14 is hereinafter referred to as CCD-RAW data.

16はD/A変換器、18はTFT LCD等からなる画像表示部である。メモリ40に書き込まれた表示用の画像データはD/A変換器16を介してデジタルデータからアナログデータに変換され、画像表示部18により表示される。   Reference numeral 16 denotes a D / A converter, and 18 denotes an image display unit comprising a TFT LCD or the like. The display image data written in the memory 40 is converted from digital data to analog data via the D / A converter 16 and displayed by the image display unit 18.

20はメモリカードやハードディスク等の記録媒体であり、撮影された画像データ等は記録媒体20に記録される。   Reference numeral 20 denotes a recording medium such as a memory card or a hard disk, and photographed image data and the like are recorded on the recording medium 20.

30は画像処理回路であり、撮影、あるいは記録されたCCD−RAWデータに対して所定の画素補間処理や色変換処理等の現像処理やリサイズ処理を行う。   Reference numeral 30 denotes an image processing circuit, which performs development processing such as predetermined pixel interpolation processing and color conversion processing, and resizing processing on CCD-RAW data that has been shot or recorded.

40は撮影した画像データを一時的に格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記録容量備えている。例えば、A/D変換器14から出力された画像のデジタルデータがメモリ制御回路50、画像処理回路30を介して、あるいは直接メモリ制御回路50を介して、メモリ40に書き込まれる。   Reference numeral 40 denotes a memory for temporarily storing captured image data, which has a recording capacity sufficient to store a predetermined number of still images and a moving image for a predetermined time. For example, digital image data output from the A / D converter 14 is written into the memory 40 via the memory control circuit 50, the image processing circuit 30, or directly via the memory control circuit 50.

50はメモリ制御回路であり、A/D変換器14、D/A変換器16、記録媒体20、画像処理回路30、メモリ40、DPCM変換回路80、JPEG回路60へのデータフローを制御する。   A memory control circuit 50 controls the data flow to the A / D converter 14, D / A converter 16, recording medium 20, image processing circuit 30, memory 40, DPCM conversion circuit 80, and JPEG circuit 60.

60はベースラインJPEG方式により画像データを圧縮・伸長するJPEG回路であって、DCT変換回路62、量子化回路64、MUX(データセレクタ)66、ハフマン符号・復号回路68で構成される。データセレクタ66は、JPEG符号化・復号化する場合か、CCD−RAWデータを可逆圧縮・伸長する場合かで切り替えを行う。   Reference numeral 60 denotes a JPEG circuit that compresses / decompresses image data by the baseline JPEG method, and includes a DCT conversion circuit 62, a quantization circuit 64, a MUX (data selector) 66, and a Huffman encoding / decoding circuit 68. The data selector 66 switches between JPEG encoding / decoding and CCD-RAW data lossless compression / expansion.

70はMUX(データセレクタ)で、JPEG符号化・復号化する場合か、CCD−RAWデータを可逆圧縮・伸長する場合かで切り替えを行う。   Reference numeral 70 denotes a MUX (data selector) that switches between JPEG encoding / decoding and lossless compression / decompression of CCD-RAW data.

80は、JPEG回路60のハフマン符号・復号回路68を利用してCCD−RAWデータの可逆圧縮伸長処理を行うために、CCD−RAWデータに対してDPCM変換を行う回路である。DPCM変換回路80は、情報源のエントロピーを小さくし、ハフマン符号化における符号化効率を高めるために、CCD−RAWデータのDPCM変換(予測符号化)を行う。DPCM変換回路80は、例えば10ビットのCCD−RAWデータに対しDPCM変換(予測符号化)、及び11ビットのDPCMデータに対して逆DPCM変換を行う。   A circuit 80 performs DPCM conversion on CCD-RAW data in order to perform lossless compression / decompression processing of CCD-RAW data using the Huffman encoding / decoding circuit 68 of the JPEG circuit 60. The DPCM conversion circuit 80 performs DPCM conversion (predictive encoding) of CCD-RAW data in order to reduce the entropy of the information source and increase the encoding efficiency in the Huffman encoding. The DPCM conversion circuit 80 performs, for example, DPCM conversion (predictive coding) on 10-bit CCD-RAW data and inverse DPCM conversion on 11-bit DPCM data.

DPCM変換は、画像情報が周辺画素との相関関係が強いことを利用し、隣接画素(左隣の画素)の画素データと符号化を行う画素の画素データとの差分値に変換し、情報源のエントロピーを減少させることで、ハフマン符号化における符号化効率を高めることができる。本実施形態では、図2に示すようなCCDカラーフィルタ配列を考慮して、常に2画素左隣の画素データとの差分値を算出する。従って、DPCM変換回路80は入力されたCCD−RAWデータと、2つ前に入力されたCCD−RAWデータとの差分を求めるような構成となっている。   DPCM conversion utilizes the fact that image information has a strong correlation with surrounding pixels, and converts it into a difference value between the pixel data of an adjacent pixel (the pixel on the left) and the pixel data of the pixel to be encoded. By reducing the entropy of, the coding efficiency in Huffman coding can be increased. In the present embodiment, in consideration of the CCD color filter array as shown in FIG. 2, the difference value with the pixel data adjacent to the left by two pixels is always calculated. Therefore, the DPCM conversion circuit 80 is configured to obtain a difference between the input CCD-RAW data and the CCD-RAW data input two times before.

90はモードダイアルスイッチ92による設定に従い、またROM96(読み出し専用メモリ)に格納された内容に従い、撮像装置100全体及び撮像装置100を構成する各回路の動作制御を行うシステム制御回路である。   Reference numeral 90 denotes a system control circuit that controls the operation of the entire image capturing apparatus 100 and each circuit constituting the image capturing apparatus 100 according to the setting by the mode dial switch 92 and according to the contents stored in the ROM 96 (read only memory).

92はモードダイアルスイッチで、電源オフ、撮影モード、再生モード等の各機能モードを切り替え設定することができる。   Reference numeral 92 denotes a mode dial switch, which can switch and set each function mode such as power-off, shooting mode, and playback mode.

96は読み出し専用メモリ(ROM)で、システム制御回路50が使用するプログラム及び、JPEG回路60に設定する量子化テーブル、ハフマンテーブルがあらかじめ記憶されている。   A read-only memory (ROM) 96 stores a program used by the system control circuit 50 and a quantization table and a Huffman table set in the JPEG circuit 60 in advance.

本実施形態では連写中はレンズ10を介して撮像素子12に撮像された画像データはA/D変換器14でデジタルデータに変換され、メモリ制御回路50によりメモリ40にCCD−RAWデータとして順次バッファリングされる。   In the present embodiment, during continuous shooting, image data captured by the image sensor 12 via the lens 10 is converted into digital data by the A / D converter 14, and sequentially stored as CCD-RAW data in the memory 40 by the memory control circuit 50. Buffered.

また、可逆圧縮処理はバッファリングされたメモリ40のCCD−RAWデータを順次読み出して実行するので、撮像処理と可逆圧縮処理は非同期に進められる。   In addition, since the lossless compression process is executed by sequentially reading out the buffered CCD-RAW data in the memory 40, the imaging process and the lossless compression process are performed asynchronously.

本実施形態では、条件に応じて可逆圧縮処理の手順を変更するが撮像処理は変更しないので、以降は可逆圧縮処理について図3を用いて説明する。   In this embodiment, the procedure of the lossless compression process is changed according to the conditions, but the imaging process is not changed. Therefore, the lossless compression process will be described below with reference to FIG.

可逆圧縮処理に用いるハフマンテーブルは、統計的にあらかじめ算出され、符号化パラメータ記憶手段により保持されているものとする。メモリ96にはあらかじめ複数のハフマンテーブルが記録されている。複数のハフマンテーブルはそれぞれ類似性の高い特徴を持った画像データの平均的なヒストグラムから生成されたハフマンテーブルであって同様の類似性を持つ画像データに対して効率的な符号化処理を行うことが出来る。   It is assumed that the Huffman table used for the lossless compression process is statistically calculated in advance and held in the encoding parameter storage unit. A plurality of Huffman tables are recorded in the memory 96 in advance. A plurality of Huffman tables are Huffman tables generated from an average histogram of image data having highly similar features, and perform efficient encoding processing on image data having similar similarities. I can do it.

まず、CCD−RAWの可逆圧縮処理を開始する前に次のCCD−RAWデータの可逆圧縮処理に使用可能なメモリ40の空き容量を調べる(S101)。CCD−RAWデータの可逆圧縮処理に使用可能な空き容量に応じて次の2通りの処理のうちのどちらかを選択する。   First, before starting the reversible compression process of CCD-RAW, the free capacity of the memory 40 that can be used for the reversible compression process of the next CCD-RAW data is checked (S101). One of the following two types of processing is selected according to the free space available for the lossless compression processing of the CCD-RAW data.

CCD−RAWデータの可逆圧縮処理に使用可能なメモリ40の空き容量が閾値以上であるときはS101でNoを選択し、可逆圧縮処理に用いるハフマンテーブルをJPEG回路60に設定する(S102)。   When the free capacity of the memory 40 that can be used for the lossless compression processing of the CCD-RAW data is equal to or larger than the threshold value, No is selected in S101, and the Huffman table used for the lossless compression processing is set in the JPEG circuit 60 (S102).

なお、S101では記録媒体への書込み速度に応じて閾値を変更する。記録媒体への書き込み速度が速いときは閾値を小さく、遅いときは閾値を大きくする。   In S101, the threshold value is changed according to the writing speed to the recording medium. When the writing speed to the recording medium is fast, the threshold value is reduced, and when the writing speed is slow, the threshold value is increased.

S102で設定するハフマンテーブルはCCD−RAWデータの特徴によらず常に同じハフマンテーブルを用いる。このハフマンテーブルは異なる特徴を持った画像データを符号化したとき、平均的に符号量が小さくなるような符号化パラメータであり、事前に算出しておく。このハフマンテーブルもメモリ96に予め記録しておく。   The Huffman table set in S102 is always the same Huffman table regardless of the characteristics of the CCD-RAW data. This Huffman table is an encoding parameter that reduces the average code amount when image data having different characteristics is encoded, and is calculated in advance. This Huffman table is also recorded in the memory 96 in advance.

メモリ40に保持されたCCD−RAWデータをメモリ制御回路50を介して、DPCM変換回路80に転送される(S103)。転送されたCCD−RAWデータは、DPCM変換回路80においてDPCM変換を施され(S104)、JPEG回路60におけるベースラインJPEGのハフマン符号・復号化回路68においてハフマン符号化処理を行い(S105)、メモリ制御回路50を介してメモリ40に転送される(S106)。   The CCD-RAW data held in the memory 40 is transferred to the DPCM conversion circuit 80 via the memory control circuit 50 (S103). The transferred CCD-RAW data is subjected to DPCM conversion in the DPCM conversion circuit 80 (S104), and the baseline JPEG Huffman encoding / decoding circuit 68 in the JPEG circuit 60 is subjected to Huffman encoding processing (S105). The data is transferred to the memory 40 via the control circuit 50 (S106).

また、CCD−RAWデータの可逆圧縮処理を開始するときに(S101)メモリ40の使用可能な空き容量が閾値未満であるときは、S101でYesを選択する。次にシステム制御回路90は、メモリ96に記憶保持されているハフマンテーブルの内の1つを選択してJPEG回路60に設定し(S110)、メモリ40に保持されたCCD−RAWデータをメモリ制御回路50を介して、DPCM変換回路80に転送される(S111)。転送されたCCD−RAWデータは、DPCM変換回路80においてDPCM変換を施され(S112)、JPEG回路60におけるベースラインJPEGのハフマン符号・復号化回路68においてハフマン符号化処理を行い(S113)、メモリ制御回路50を介してメモリ40に転送される(S114)。   When the reversible compression processing of the CCD-RAW data is started (S101), if the available free space in the memory 40 is less than the threshold value, Yes is selected in S101. Next, the system control circuit 90 selects one of the Huffman tables stored in the memory 96 and sets it in the JPEG circuit 60 (S110), and performs memory control on the CCD-RAW data held in the memory 40. The data is transferred to the DPCM conversion circuit 80 via the circuit 50 (S111). The transferred CCD-RAW data is subjected to DPCM conversion in the DPCM conversion circuit 80 (S112), and the baseline JPEG Huffman encoding / decoding circuit 68 in the JPEG circuit 60 is subjected to Huffman encoding processing (S113). The data is transferred to the memory 40 via the control circuit 50 (S114).

システム制御回路90はメモリ40に保持されたハフマン符号化されたデータの符号量と、前回同符号化されたデータの符号量の比較を行う(S115)。そして符号量の比較の結果、符号量の小さな符号化データを選択し(S116)、選択された符号化データをそのままメモリ40に保持する。選択されなかった符号化データは削除するかあるいは次の符号化データを保存する領域として使用する。   The system control circuit 90 compares the code amount of the Huffman-encoded data held in the memory 40 with the code amount of the previously encoded data (S115). As a result of the code amount comparison, encoded data with a small code amount is selected (S116), and the selected encoded data is held in the memory 40 as it is. The encoded data not selected is deleted or used as an area for storing the next encoded data.

予めメモリ96に格納された複数のハフマンテーブルによる上述の符号化処理がすべて終了しているか否か判断し(S117)、全て終了していなければ、メモリ96内の次のハフマンテーブルをJPEG回路60に設定し(S110)、以上のS110以降の処理を繰り返し行う。   It is determined whether or not all the encoding processes described above using a plurality of Huffman tables stored in advance in the memory 96 have been completed (S117). If all have not been completed, the next Huffman table in the memory 96 is stored in the JPEG circuit 60. (S110), and the processes after S110 are repeated.

最終的に符号量の最も小さな符号化データがメモリ40に保持される。   Finally, the encoded data with the smallest code amount is held in the memory 40.

例えば、1回の符号化にかかる時間を500ms、記録媒体への書き込み速度を1MB/秒、複数のハフマンテーブルを用いて符号化処理を行うことで画像データの符号量が8Mバイトから6Mバイトへ減少したとすると、記録媒体への書き込み時間が2秒削減されるので、符号化を3回行ったとしても1500msしかかからないので全体としての記録時間は500ms短くなる。   For example, the time required for one encoding is 500 ms, the writing speed to the recording medium is 1 MB / second, and encoding is performed using a plurality of Huffman tables, so that the code amount of image data is changed from 8 Mbytes to 6 Mbytes. If it is reduced, the writing time to the recording medium is reduced by 2 seconds, so even if the encoding is performed three times, it takes only 1500 ms, so the overall recording time is shortened by 500 ms.

また、前述したようにメモリ40の空き容量に応じて前述の2つの処理のうちのどちらかを選択するのではなく、メモリ40上に残っている画像データのうちまだ記録媒体に書き込まれていない画像データの数が閾値以上になった場合に前述の複数のハフマンテーブルによる符号化処理を選択するように制御してもよい。この場合は記録媒体への書き込み速度が速いときは閾値を大きくし、遅いときは閾値を小さくする。   Further, as described above, one of the two processes described above is not selected according to the free space of the memory 40, but the image data remaining on the memory 40 has not yet been written to the recording medium. When the number of image data is equal to or greater than the threshold, control may be performed so as to select the encoding process using the plurality of Huffman tables described above. In this case, the threshold value is increased when the writing speed to the recording medium is high, and the threshold value is decreased when the writing speed is low.

(第2の実施の形態)
次に、本発明の第2の実施の形態を説明する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described.

第2の実施の形態の構成は、基本的に第1の実施の形態の構成と同じであるので、第2の実施の形態の説明においては、第1の実施の形態の説明を流用し、異なる部分だけを説明する。   Since the configuration of the second embodiment is basically the same as the configuration of the first embodiment, the description of the first embodiment is used in the description of the second embodiment. Only the differences are explained.

本実施例での処理の流れを図4を用いて説明する。   The flow of processing in this embodiment will be described with reference to FIG.

可逆圧縮処理を行うCCD−RAWデータが電子カメラで連写して撮られたものとする。   Assume that CCD-RAW data to be subjected to reversible compression processing is taken continuously by an electronic camera.

可逆圧縮処理を行う対象であるCCD−RAWデータが電子カメラで連写して撮られた画像データの1枚目の画像データである場合は、S200でYesを選択する。次にシステム制御回路90は、メモリ96に記憶保持されているハフマンテーブルの内の1つを選択してJPEG回路60に設定し(S210)、メモリ40に保持されたCCD−RAWデータがメモリ制御回路50を介して、DPCM変換回路80に転送される(S211)。転送されたCCD−RAWデータは、DPCM変換回路80においてDPCM変換を施され(S212)、JPEG回路60におけるベースラインJPEGのハフマン符号・復号化回路68においてハフマン符号化処理を行い(S213)、メモリ制御回路50を介してメモリ40に転送される(S214)。   If the CCD-RAW data to be subjected to the reversible compression processing is the first image data of the image data taken by the electronic camera, Yes is selected in S200. Next, the system control circuit 90 selects one of the Huffman tables stored in the memory 96 and sets it in the JPEG circuit 60 (S210), and the CCD-RAW data held in the memory 40 is controlled by the memory. The data is transferred to the DPCM conversion circuit 80 via the circuit 50 (S211). The transferred CCD-RAW data is subjected to DPCM conversion in the DPCM conversion circuit 80 (S212), and the baseline JPEG Huffman encoding / decoding circuit 68 in the JPEG circuit 60 performs Huffman encoding processing (S213). The data is transferred to the memory 40 via the control circuit 50 (S214).

システム制御回路90はメモリ40に保持されたハフマン符号化されたデータの符号量と、前回同符号化されたデータの符号量の比較を行う(S215)。そして符号量の比較の結果、符号量の小さな符号化データを選択し(S216)、選択された符号化データをそのままメモリ40に保持する。選択されなかった符号化データは削除するかあるいは次の符号化データを保存する領域として使用する。   The system control circuit 90 compares the code amount of the Huffman-encoded data held in the memory 40 with the code amount of the previously encoded data (S215). As a result of the code amount comparison, encoded data with a small code amount is selected (S216), and the selected encoded data is held in the memory 40 as it is. The encoded data not selected is deleted or used as an area for storing the next encoded data.

予めメモリ96に格納された複数のハフマンテーブルによる上述の符号化処理がすべて終了しているか否か判断し(S217)、全て終了していなければ、メモリ96内の次のハフマンテーブルをJPEG回路60に設定し(S210)、以上のS210以降の処理を繰り返し行う。   It is determined whether or not all the encoding processes described above using a plurality of Huffman tables stored in advance in the memory 96 have been completed (S217). If all have not been completed, the next Huffman table in the memory 96 is stored in the JPEG circuit 60. (S210), and the processes after S210 are repeated.

最終的に符号量の最も小さな符号化データがメモリ40に保持される。   Finally, the encoded data with the smallest code amount is held in the memory 40.

可逆圧縮処理を行う対象となるCCD−RAWデータが電子カメラで連写して撮られた画像データの2枚目以降の画像データで場合は、S200でNoを選択する。次にメモリ40内でCCD−RAWの可逆圧縮処理に使用可能な空き領域を調べ(S201)、空き容量が閾値以上である場合はS201でNoを選択する。   If the CCD-RAW data to be subjected to the reversible compression process is the second or later image data of the image data taken by the electronic camera, No is selected in S200. Next, a free area that can be used for the reversible compression processing of the CCD-RAW is checked in the memory 40 (S201).

S201では記録媒体への書込み速度に応じて閾値を変更する。記録媒体への書き込み速度が速いときは閾値を小さく、遅いときは閾値を大きくする。   In S201, the threshold is changed according to the writing speed to the recording medium. When the writing speed to the recording medium is fast, the threshold value is reduced, and when the writing speed is slow, the threshold value is increased.

続いてシステム制御回路90は、連写して撮られた画像データの1枚目をハフマン符号化するのに使用されたハフマンテーブルを選択してJPEG回路60に設定し(S202)、メモリ40に保持されたCCD−RAWデータがメモリ制御回路50を介して、DPCM変換回路80に転送される(S203)。転送されたCCD−RAWデータは、DPCM変換回路80においてDPCM変換を施され(S204)、JPEG回路60におけるベースラインJPEGのハフマン符号・復号化回路68においてハフマン符号化処理を行い(S205)、メモリ制御回路50を介してメモリ40に転送される(S206)。   Subsequently, the system control circuit 90 selects the Huffman table used for Huffman encoding the first piece of image data taken continuously and sets it in the JPEG circuit 60 (S202) and stores it in the memory 40. The obtained CCD-RAW data is transferred to the DPCM conversion circuit 80 via the memory control circuit 50 (S203). The transferred CCD-RAW data is subjected to DPCM conversion in the DPCM conversion circuit 80 (S204), Huffman encoding processing is performed in the baseline JPEG Huffman encoding / decoding circuit 68 in the JPEG circuit 60 (S205), and the memory The data is transferred to the memory 40 via the control circuit 50 (S206).

また、メモリ40内でCCD−RAWの可逆圧縮処理に使用可能な空き領域を調べ(S201)、空き容量が閾値未満である場合は、S101でYesを選択する。この場合は、前述の可逆圧縮処理を行う対象となるCCD−RAWデータが電子カメラで連写して撮られた1枚目の画像データである場合の処理と同様に、複数のハフマンテーブルのうち画像データの符号量が最も小さくなるハフマンテーブルを用いてハフマン符号化処理を行う。   Also, a free area that can be used for the reversible compression processing of the CCD-RAW in the memory 40 is checked (S201), and if the free capacity is less than the threshold value, Yes is selected in S101. In this case, as in the case where the CCD-RAW data to be subjected to the above-described lossless compression processing is the first image data taken continuously by the electronic camera, the image of the plurality of Huffman tables is used. The Huffman encoding process is performed using the Huffman table with the smallest data code amount.

例えば画像の特徴によらず常に同じハフマンテーブルを用いて画像データを符号化した場合に対して、連写の1枚目の画像データに最適なハフマンテーブルで符号化することで2枚目以降の画像データの符号量の平均が8Mバイトから6Mバイトに減ったとすると、CCD−RAWデータの可逆圧縮処理に使用できるメモリ領域が64Mバイトある場合、連写時に記録できる画像イメージは8枚から10枚に増える。   For example, in the case where image data is always encoded using the same Huffman table regardless of image characteristics, the second and subsequent images can be encoded by encoding with the Huffman table optimal for the first image data in continuous shooting. Assuming that the average code amount of image data has decreased from 8 Mbytes to 6 Mbytes, if there is a 64 Mbyte memory area that can be used for lossless compression processing of CCD-RAW data, 8 to 10 image images can be recorded during continuous shooting. It increases to.

さらに、前述したようにメモリ40の空き容量に応じて前述の2つの処理のうちのどちらかを選択するのではなく、メモリ40上に残っている画像データのうちまだ記録媒体に書き込まれていない画像データの数が閾値以上になった場合に前述の複数のハフマンテーブルによる符号化処理を選択するように制御してもよい。この場合は記録媒体への書き込み速度が速いときは閾値を大きくし、遅いときは閾値を小さくする。   Furthermore, as described above, one of the two processes described above is not selected according to the free space of the memory 40, but the image data remaining on the memory 40 has not yet been written to the recording medium. When the number of image data is equal to or greater than the threshold, control may be performed so as to select the encoding process using the plurality of Huffman tables described above. In this case, the threshold value is increased when the writing speed to the recording medium is high, and the threshold value is decreased when the writing speed is low.

本発明の実施形態における撮像装置の概略図。1 is a schematic diagram of an imaging apparatus in an embodiment of the present invention. 撮像素子のカラーフィルタ配列を示す図。FIG. 3 is a diagram illustrating a color filter array of an image sensor. 本発明の第1の実施形態における撮像装置100がCCD−RAWデータからCCD−RAW可逆圧縮画像を作成する手順を表したフローチャート。5 is a flowchart showing a procedure for the imaging apparatus 100 according to the first embodiment of the present invention to create a CCD-RAW reversible compressed image from CCD-RAW data. 本発明の第2の実施形態における撮像装置100がCCD−RAWデータからCCD−RAW可逆圧縮画像を作成する手順を表したフローチャート。10 is a flowchart illustrating a procedure in which the imaging apparatus 100 according to the second embodiment of the present invention creates a CCD-RAW lossless compressed image from CCD-RAW data.

Claims (12)

画像データを符号化パラメータにより符号化する符号化手段と、前記符号化パラメータを複数保持する記憶手段と、撮像された画像データ或いは符号化処理された画像データを記録するために用いられるメモリ領域と、前記記憶手段に保持された複数の符号化パラメータから画像データを符号化するのに最適な符号化パラメータを使用するパラメータ選択手段をもつ画像符号化装置に適用される画像符号化制御方法であって、
前記メモリ領域に保持された複数の符号化パラメータを用いて画像データを符号化しその中から符号化データを選択するか、或いは予め決められた符号化パラメータを使用して符号化するかを決定する決定ステップを有することを特徴とする画像符号化制御方法。
Encoding means for encoding image data with encoding parameters, storage means for holding a plurality of the encoding parameters, and a memory area used for recording captured image data or encoded image data An image encoding control method applied to an image encoding apparatus having parameter selection means that uses an optimal encoding parameter for encoding image data from a plurality of encoding parameters held in the storage means. And
Decide whether to encode image data using a plurality of encoding parameters stored in the memory area and select encoded data from among them, or to encode using predetermined encoding parameters An image coding control method comprising a determination step.
画像データを符号化処理するために使用可能な前記メモリ領域の空き容量が閾値未満のときに前記記憶手段に保持された複数の符号化パラメータから符号量が最も小さくなる符号化パラメータを選択し、画像データを符号化処理するために使用可能な前記メモリ領域の空き容量が閾値以上のときには常に同じ符号化パラメータを選択することを特徴とする請求項1記載の画像符号化制御方法。   Selecting an encoding parameter with the smallest code amount from a plurality of encoding parameters held in the storage means when the free space in the memory area usable for encoding image data is less than a threshold; 2. The image encoding control method according to claim 1, wherein the same encoding parameter is always selected when the free space of the memory area usable for encoding image data is equal to or greater than a threshold value. 請求項2記載の閾値を記録媒体への書込み速度が速いとき小さくし、書き込み速度が遅いときは大きくすることを特徴とする請求項1記載の画像符号化制御方法。   3. The image encoding control method according to claim 1, wherein the threshold value according to claim 2 is decreased when the writing speed to the recording medium is high and is increased when the writing speed is low. 前記メモリ領域に保持されている画像データのうちまだ記録媒体に書き込まれていない画像データの数が閾値以上のときに、前記記憶手段に保持された複数の符号化パラメータから符号量が最も小さくなる符号化パラメータを選択し、閾値未満のときは常に同じ符号化パラメータを選択することを特徴とする請求項1記載の画像符号化制御方法。   When the number of image data not yet written to the recording medium among the image data held in the memory area is equal to or greater than a threshold value, the code amount is the smallest among the plurality of encoding parameters held in the storage unit The image encoding control method according to claim 1, wherein an encoding parameter is selected, and the same encoding parameter is selected whenever the encoding parameter is less than a threshold value. 請求項4記載の閾値を記録媒体への書込み速度が速いとき大きくし、書き込み速度が遅いときは小さくすることを特徴とする請求項1記載の画像符号化制御方法。   5. The image encoding control method according to claim 1, wherein the threshold value according to claim 4 is increased when the writing speed to the recording medium is high and is decreased when the writing speed is low. 連写して撮られた画像データのうち符号化の対象となる画像データが、連写して撮られた画像データの1枚目であるときに、前記記憶手段に保持された複数の符号化パラメータから符号量が最も小さくなる符号化パラメータを選択し、符号化の対象となる画像データが連写して撮られた画像データの2枚目以降であるときは連写して撮られた画像データの1枚目に使用した符号化パラメータを選択することを特徴とする請求項1記載の画像符号化制御方法。   When the image data to be encoded is the first piece of image data taken by continuous shooting among the image data taken by continuous shooting, from the plurality of encoding parameters held in the storage means Select the encoding parameter with the smallest code amount, and if the image data to be encoded is the second or later image data taken continuously, one piece of image data taken continuously 2. The image encoding control method according to claim 1, wherein an encoding parameter used for the eyes is selected. 画像データを符号化パラメータにより符号化する符号化手段と、前記符号化パラメータを複数保持する記憶手段と、撮像された画像データ或いは符号化処理された画像データを記録するために用いられるメモリ領域と、前記記憶手段に保持された複数の符号化パラメータから画像データを符号化するのに最適な符号化パラメータを使用するパラメータ選択手段を有し、
前記記憶手段に保持された複数の符号化パラメータから画像データを符号化しその中から符号化データを選択するか、或いは予め決められた符号化パラメータを使用して符号化するかを選択する選択手段を有することを特徴とする画像符号化装置。
Encoding means for encoding image data with encoding parameters, storage means for holding a plurality of the encoding parameters, and a memory area used for recording captured image data or encoded image data A parameter selection unit that uses an optimal encoding parameter for encoding image data from a plurality of encoding parameters held in the storage unit;
Selection means for selecting whether to encode image data from a plurality of encoding parameters held in the storage means and to select encoded data from among them, or to encode using predetermined encoding parameters An image encoding apparatus comprising:
画像データを符号化処理するために使用可能な前記メモリ領域の空き容量が閾値未満のときに前記記憶手段に保持された複数の符号化パラメータから符号量が最も小さくなる符号化パラメータを選択し、画像データを符号化処理するために使用可能な前記メモリ領域の空き容量が閾値以上のときには常に同じ符号化パラメータを選択する前記選択手段を有することを特徴とする請求項7記載の画像符号化装置。   Selecting an encoding parameter with the smallest code amount from a plurality of encoding parameters held in the storage means when the free space in the memory area usable for encoding image data is less than a threshold; 8. The image encoding apparatus according to claim 7, further comprising a selection unit that selects the same encoding parameter whenever the free space in the memory area that can be used for encoding image data is equal to or greater than a threshold value. . 請求項8記載の閾値を記録媒体への書込み速度が速いとき小さくし、書き込み速度が遅いときは大きくすることを特徴とする請求項7記載の画像符号化制御方法。   9. The image encoding control method according to claim 7, wherein the threshold value according to claim 8 is decreased when the writing speed to the recording medium is high, and is increased when the writing speed is low. 前記メモリ領域に保持されている画像データのうち、まだ記録媒体に書き込まれていない画像データの数が閾値以上のときに、前記記憶手段に保持された複数の符号化パラメータから符号量が最も小さくなる符号化パラメータを選択し、閾値未満のときは常に同じ符号化パラメータを選択する前記選択手段を有することを特徴とする請求項7記載の画像符号化装置。   Of the image data held in the memory area, when the number of image data not yet written on the recording medium is equal to or greater than the threshold, the code amount is the smallest among the plurality of encoding parameters held in the storage means 8. The image encoding apparatus according to claim 7, further comprising: a selection unit that selects an encoding parameter to be selected and always selects the same encoding parameter when the encoding parameter is less than a threshold value. 請求項10記載の閾値を記録媒体への書込み速度が速いとき大きくし、書き込み速度が遅いときは小さくすることを特徴とする請求項1記載の画像符号化制御方法。   11. The image coding control method according to claim 1, wherein the threshold value according to claim 10 is increased when the writing speed to the recording medium is high, and is decreased when the writing speed is slow. 連写して撮られた画像データのうち符号化の対象となる画像データが、連写して撮られた画像データの1枚目であるときに、前記記憶手段に保持された複数の符号化パラメータから符号量が最も小さくなる符号化パラメータを選択し、符号化の対象となる画像データが連写して撮られた画像データの2枚目以降であるときは連写して撮られた画像データの1枚目に使用した符号化パラメータを選択する前記選択手段を有することを特徴とする請求項7記載の画像符号化装置。   When the image data to be encoded is the first piece of image data taken by continuous shooting among the image data taken by continuous shooting, from the plurality of encoding parameters held in the storage means Select the encoding parameter with the smallest code amount, and if the image data to be encoded is the second or later image data taken continuously, one piece of image data taken continuously 8. The image encoding apparatus according to claim 7, further comprising: a selection unit that selects an encoding parameter used for an eye.
JP2005173784A 2005-06-14 2005-06-14 Image coding equipment Withdrawn JP2006352335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005173784A JP2006352335A (en) 2005-06-14 2005-06-14 Image coding equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005173784A JP2006352335A (en) 2005-06-14 2005-06-14 Image coding equipment

Publications (1)

Publication Number Publication Date
JP2006352335A true JP2006352335A (en) 2006-12-28

Family

ID=37647727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005173784A Withdrawn JP2006352335A (en) 2005-06-14 2005-06-14 Image coding equipment

Country Status (1)

Country Link
JP (1) JP2006352335A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008258662A (en) * 2007-03-30 2008-10-23 Fujifilm Corp Image pickup device, image processing method
JP2014049835A (en) * 2012-08-30 2014-03-17 Casio Comput Co Ltd Image processing apparatus, image processing method, and program
JP2016021731A (en) * 2014-06-16 2016-02-04 キヤノン株式会社 Image capturing apparatus, method for controlling the same, and program
US11908364B2 (en) 2020-09-23 2024-02-20 Samsung Electronics Co., Ltd. Low-power display driving circuit performing internal encoding and decoding and operating method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008258662A (en) * 2007-03-30 2008-10-23 Fujifilm Corp Image pickup device, image processing method
JP4732395B2 (en) * 2007-03-30 2011-07-27 富士フイルム株式会社 Imaging apparatus and image processing method
JP2014049835A (en) * 2012-08-30 2014-03-17 Casio Comput Co Ltd Image processing apparatus, image processing method, and program
JP2016021731A (en) * 2014-06-16 2016-02-04 キヤノン株式会社 Image capturing apparatus, method for controlling the same, and program
US11908364B2 (en) 2020-09-23 2024-02-20 Samsung Electronics Co., Ltd. Low-power display driving circuit performing internal encoding and decoding and operating method thereof

Similar Documents

Publication Publication Date Title
JP4682102B2 (en) Image coding apparatus and image coding method
US7343043B2 (en) Image compression apparatus, method and recording medium storing an image compression program
KR101264389B1 (en) Imaging device and method
US7139020B2 (en) Digital camera including the compression of size-reduced images after picture taking is completed
CN107509019A (en) Picture pick-up device, image capture method and non-transient computer-readable media
JP2006352335A (en) Image coding equipment
JP2000295577A (en) Image recorder and electronic camera
JP6929044B2 (en) Imaging device, control method of imaging device, and program
JP2005039792A (en) Recording apparatus and reproducing apparatus
JP6741532B2 (en) Imaging device and recording method
KR100681833B1 (en) Apparatus compressing data in the data recording system and method therefor
JP2006024993A (en) Image pickup signal processing apparatus
KR100210443B1 (en) Image compressing method for dsc
JP7332399B2 (en) Image processing device and its control method
JPH0537901A (en) Image recorder
JP2001128109A (en) Method and device for picture processing
KR100239120B1 (en) Device and method for reproducing image record of digital camera
JP2984342B2 (en) Image signal recording device
JP2002112086A (en) Camera system, image encoding device and image decoding device
JP3697820B2 (en) Image compression recording device
KR100402926B1 (en) Compression control method of digital camera
KR100700518B1 (en) Recording space secure method for disc
JP2001326939A (en) Image coding device, image decoding device, its method and storage medium
JP2732941B2 (en) Image signal processing device
JP2001238173A (en) Recording apparatus for digital image data

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080902