JP2001128166A - Integrated circuit for image compression and image compressing device - Google Patents

Integrated circuit for image compression and image compressing device

Info

Publication number
JP2001128166A
JP2001128166A JP30740099A JP30740099A JP2001128166A JP 2001128166 A JP2001128166 A JP 2001128166A JP 30740099 A JP30740099 A JP 30740099A JP 30740099 A JP30740099 A JP 30740099A JP 2001128166 A JP2001128166 A JP 2001128166A
Authority
JP
Japan
Prior art keywords
integrated circuit
image compression
data
image
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP30740099A
Other languages
Japanese (ja)
Inventor
Toshihisa Kuroiwa
壽久 黒岩
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 JP30740099A priority Critical patent/JP2001128166A/en
Publication of JP2001128166A publication Critical patent/JP2001128166A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a general purpose integrated circuit for image compression which can be adaptive to the specifications of various application segments. SOLUTION: The integrated circuit for image compression makes the data length of an application segment externally settable, prepares dummy data having the style of the application segment from the data length, and outputs the dummy data in a state where the data are inserted into a compressed image file. On an external device side, the compressed image file is completed by replacing the dummy data with a regular application segment. Since the integrated circuit can be adaptive to various application segments, the versatility of the integrated circuit is improved.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像圧縮用の集積
回路、およびその集積回路を使用した画像圧縮装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an integrated circuit for compressing an image and an image compressing apparatus using the integrated circuit.

【0002】[0002]

【従来の技術】従来、電子カメラその他の画像圧縮機能
を有する機器(以下『画像圧縮装置』という)におい
て、専用LSIからなる画像圧縮用集積回路を搭載した
ものが知られている。この種の画像圧縮用集積回路で
は、圧縮画像ファイルのヘッダ情報(例えば、JPEG
規格に定められるSOI,DQT,DHT,DRI,S
OF0,SOS,RSTm,EOIのマーカー)を自動
的に生成するものが知られている。このようなヘッダ情
報の自動生成機能を利用することにより、集積回路の外
部処理が大幅に軽減される。
2. Description of the Related Art Conventionally, there is known an electronic camera or other device having an image compression function (hereinafter referred to as an "image compression device") on which an image compression integrated circuit comprising a dedicated LSI is mounted. In this type of image compression integrated circuit, header information of a compressed image file (for example, JPEG
SOI, DQT, DHT, DRI, S specified in the standard
It is known to automatically generate OF0, SOS, RSTm, and EOI markers). By utilizing such a function of automatically generating header information, external processing of the integrated circuit is greatly reduced.

【0003】[0003]

【発明が解決しようとする課題】ところで、このような
圧縮画像ファイル内には、ファイルの利用サイドで任意
に付加可能なデータ領域として、アプリケーションセグ
メントが用意されている。例えば、電子カメラ用のEx
if(Exchangeable image file format)では、APP
1として、サムネイル画像などからなる独自データを記
録している。このようなアプリケーションセグメント
は、圧縮画像ファイルの利用機器や用途ごとに多様に定
めることが可能であり、データ長やデータ内容もそれぞ
れ異なる。そのため、汎用の画像圧縮用集積回路では、
これら多様なアプリケーションセグメントのすべてを自
動生成することは不可能であった。
By the way, in such a compressed image file, an application segment is prepared as a data area that can be arbitrarily added on the use side of the file. For example, Ex for electronic cameras
If (Exchangeable image file format), APP
As 1, unique data such as a thumbnail image is recorded. Such an application segment can be variously determined for each device or use of the compressed image file, and the data length and data content also differ. Therefore, in a general-purpose image compression integrated circuit,
It has not been possible to automatically generate all of these various application segments.

【0004】そこで従来、画像圧縮装置側では、画像圧
縮用集積回路から出力される標準的な圧縮画像ファイル
を、アプリケーションセグメントを含むヘッダ情報ごと
書き換えていた。この場合、画像圧縮装置側では、圧縮
画像ファイル内のヘッダ情報をデータ移動したり、ヘッ
ダ情報を自製するなどの処理プログラム等を別途用意し
なければならない。そのため、設計工程において汎用の
画像圧縮用集積回路を使いづらいものにしていた。
Conventionally, on the image compression apparatus side, a standard compressed image file output from an image compression integrated circuit is rewritten together with header information including an application segment. In this case, the image compression apparatus must separately prepare a processing program for moving data of header information in the compressed image file or producing header information by itself. Therefore, it has been difficult to use a general-purpose image compression integrated circuit in the design process.

【0005】また、画像圧縮用集積回路で内部生成され
るヘッダ情報は、実際の画像圧縮作業で使用された正確
なパラメータを含むため、信頼性が高い。しかしなが
ら、このようなヘッダ情報を装置側で書き換えた場合、
ソフトウェアのバグなどの影響を受け、ヘッダ情報の信
頼性が低下する。
[0005] Further, the header information internally generated by the image compression integrated circuit includes accurate parameters used in the actual image compression work, and is therefore highly reliable. However, when such header information is rewritten on the device side,
Under the influence of software bugs, the reliability of header information is reduced.

【0006】このような問題を避けるには、専用のアプ
リケーションセグメントを自動生成する画像圧縮用集積
回路を作成すればよい。しかしながら、このような専用
の集積回路は、汎用性がないために製造個数が極めて限
られ、極端に高コストになるという不具合が生じる。
In order to avoid such a problem, an image compression integrated circuit for automatically generating a dedicated application segment may be created. However, since such a dedicated integrated circuit is not versatile, the number of manufactured integrated circuits is extremely limited, resulting in a problem of extremely high cost.

【0007】そこで本発明では、上述した問題点を解決
するために、多様なアプリケーションセグメントを含む
圧縮画像ファイルを効率良く生成することを可能にす
る、汎用の画像圧縮用集積回路を提供することを目的と
する。また、本発明では、このような画像圧縮用集積回
路を利用して、固有のアプリケーションセグメントを含
む圧縮画像ファイルを効率良く生成する画像圧縮装置を
提供することを目的とする。
In order to solve the above-mentioned problems, the present invention provides a general-purpose image compression integrated circuit which enables efficient generation of a compressed image file including various application segments. Aim. Another object of the present invention is to provide an image compression apparatus that efficiently generates a compressed image file including a unique application segment using such an image compression integrated circuit.

【0008】[0008]

【課題を解決するための手段】以下、実施形態(図1、
図2、図6)の符号を対応付けながら、課題を解決する
ための手段を説明する。なお、ここでの対応付けは、参
考のためであり、本発明を限定するものではない。
An embodiment (FIG. 1, FIG.
Means for solving the problem will be described while associating the reference numerals in FIGS. 2 and 6). Note that the association here is for reference and does not limit the present invention.

【0009】《請求項1》請求項1に記載の発明は、画
像データを圧縮して、圧縮画像ファイルを生成する画像
圧縮用集積回路(11)において、アプリケーションセ
グメントのデータ長について外部から設定を受け付ける
APPデータ長入力手段(12)と、圧縮画像ファイル
のアプリケーションセグメント位置に、APPデータ長
入力手段に設定されたデータ長のダミーデータを挿入す
るダミー挿入手段(13,17)とを備え、ダミー挿入
手段を介してダミーデータが挿入された圧縮画像ファイ
ルを出力することを特徴とする。
According to a first aspect of the present invention, in the image compression integrated circuit (11) for compressing image data and generating a compressed image file, the data length of the application segment is externally set. APP data length input means (12) for accepting, and dummy insertion means (13, 17) for inserting dummy data of the data length set in the APP data length input means at the application segment position of the compressed image file, A compressed image file into which dummy data has been inserted is output via an insertion unit.

【0010】このような画像圧縮用集積回路では、外部
設定されたデータ長に従ってアプリケーションセグメン
トの体裁を整えたダミーデータを生成し、圧縮画像ファ
イル内に挿入する。したがって、外部装置では、圧縮画
像ファイル内のダミーデータ(あるいはダミーデータ中
の書き換え必要な箇所)を正規のアプリケーションセグ
メントで後から置換すればよい。この場合、従来のヘッ
ダ情報の書き換えやアドレス移動などの必要がなくな
り、装置側の処理負担が軽減する。
In such an image compression integrated circuit, dummy data in which the format of the application segment is adjusted according to the data length set externally is generated and inserted into the compressed image file. Therefore, in the external device, the dummy data in the compressed image file (or the portion in the dummy data that needs to be rewritten) may be replaced later with the regular application segment. In this case, it is not necessary to rewrite the header information or move the address in the related art, and the processing load on the device side is reduced.

【0011】また、画像圧縮用集積回路側では、アプリ
ケーションセグメントのデータ長の外部設定により、多
種多様なアプリケーションセグメントの仕様に即時対応
することができる。したがって、本発明では、汎用性の
非常に高い画像圧縮用集積回路が実現する。なお、後述
する請求項5の発明では、同様の課題を解決するため
に、アプリケーションセグメントを格納するためのバッ
ファメモリを画像圧縮用集積回路に搭載する。この場
合、将来にわたって多種多様なアプリケーションセグメ
ントに十分対応するためには、十分な容量のバッファメ
モリを必要とする。そのため、集積回路のチップサイズ
が拡大するなどコスト上昇の要因となる。一方、請求項
1の発明においては、この種のバッファメモリが不要で
あり、かつ集積回路外のソフトウェア処理などにより柔
軟に課題を解決できるという利点がある。
Further, on the image compression integrated circuit side, by setting the data length of the application segment externally, it is possible to immediately respond to the specifications of various application segments. Therefore, according to the present invention, an integrated circuit for image compression with very high versatility is realized. In a fifth aspect of the present invention, a buffer memory for storing an application segment is mounted on an image compression integrated circuit in order to solve the same problem. In this case, a buffer memory having a sufficient capacity is required to sufficiently cope with various application segments in the future. For this reason, it causes a cost increase such as an increase in the chip size of the integrated circuit. On the other hand, the invention of claim 1 has an advantage that this kind of buffer memory is unnecessary and that the problem can be flexibly solved by software processing outside the integrated circuit.

【0012】また、後述する請求項5の発明では、通
常、バッファメモリ内のアプリケーションセグメントが
確定するまで、圧縮画像ファイルを出力できない。この
場合、アプリケーションセグメントの確定タイミングや
装置側の処理速度によっては、画像圧縮用集積回路の高
速性を十分に活かせない。一方、請求項1の発明では、
アプリケーションセグメントのデータ長が確定すれば
(特にセグメント数などの大雑把なデータ長であれば迅
速に確定できる)、圧縮画像ファイルをとりあえず出力
できる。したがって、装置側の処理速度にさほど影響さ
れずに次コマの圧縮処理にすぐ移れるなど、画像圧縮用
集積回路の高速性を十分活用することが可能となる。さ
らに、装置側では、アプリケーションセグメントの作成
および置換処理を、後から余白時間に行うなどの柔軟か
つ効率的な処理も可能となる。
Further, in the invention of claim 5 described later, normally, a compressed image file cannot be output until the application segment in the buffer memory is determined. In this case, the high speed of the image compression integrated circuit cannot be fully utilized depending on the timing of determining the application segment and the processing speed on the device side. On the other hand, in the invention of claim 1,
If the data length of the application segment is determined (especially if the data length is rough such as the number of segments, the compressed image file can be output for the time being). Therefore, it is possible to make full use of the high speed of the integrated circuit for image compression, for example, it is possible to immediately proceed to the compression processing of the next frame without being greatly affected by the processing speed of the apparatus. Further, on the device side, flexible and efficient processing, such as performing the creation and replacement processing of the application segment later in the margin time, is also possible.

【0013】《請求項2》請求項2に記載の発明は、請
求項1に記載の画像圧縮用集積回路(11)において、
アプリケーションセグメントのファイル内位置について
外部から設定を受け付けるAPP位置入力手段(12)
を備え、ダミー挿入手段(13,17)は、APP位置
入力手段により設定されたファイル内位置に、ダミーデ
ータを挿入することを特徴とする。上記構成では、アプ
リケーションセグメントのファイル内位置の指定も可能
となる。したがって、さらに汎用性の高い画像圧縮用集
積回路を実現することができる。
<Second Aspect> According to a second aspect of the present invention, in the integrated circuit for image compression according to the first aspect,
APP position input means (12) for receiving an external setting for the position of the application segment in the file
Wherein the dummy insertion means (13, 17) inserts dummy data at a position in the file set by the APP position input means. In the above configuration, the position of the application segment in the file can be specified. Therefore, a more versatile image compression integrated circuit can be realized.

【0014】《請求項3》請求項3に記載の発明は、請
求項1に記載の画像圧縮用集積回路(11)において、
ダミー挿入手段(13,17)は、ダミーデータを、S
OIマーカーの直後に挿入することを特徴とする。上記
構成では、アプリケーションセグメントのダミーデータ
をSOIマーカーの直後に挿入する。通常、アプリケー
ションセグメントはSOIマーカーの直後に挿入される
ケースが多い。そのため、このような構成でも、汎用性
の十分に高い画像圧縮用集積回路を実現できる。
According to a third aspect of the present invention, in the integrated circuit for image compression according to the first aspect,
Dummy inserting means (13, 17) inserts dummy data into S
It is characterized by being inserted immediately after the OI marker. In the above configuration, the dummy data of the application segment is inserted immediately after the SOI marker. Usually, the application segment is often inserted immediately after the SOI marker. Therefore, even with such a configuration, an image compression integrated circuit with sufficiently high versatility can be realized.

【0015】《請求項4》請求項4に記載の発明は、請
求項1ないし請求項3のいずれか1項に記載の画像圧縮
用集積回路(11)において、ダミー挿入手段(13、
17)は、圧縮画像ファイル内でその他使用されるマー
カーコードを含まないようにダミーデータを生成するこ
とを特徴とする。
According to a fourth aspect of the present invention, there is provided an image compression integrated circuit (11) according to any one of the first to third aspects, wherein the dummy insertion means (13,
17) is characterized in that dummy data is generated so as not to include other marker codes used in the compressed image file.

【0016】通常、ダミーデータ内に、アプリケーショ
ンセグメント以外のマーカーコードが紛れ込んだ場合、
圧縮画像ファイルのファイル解釈に重大な誤りを生じる
可能性がある。そこで、請求項4の発明では、不必要な
マーカーコードが含まれないように、ダミーデータを生
成し、圧縮画像ファイル内に埋め込む。このような動作
により、ファイル解釈の誤りを未然に防止することが可
能となる。
Normally, when a marker code other than the application segment is inserted into the dummy data,
Significant errors can occur in file interpretation of compressed image files. Therefore, according to the invention of claim 4, dummy data is generated and embedded in the compressed image file so that unnecessary marker codes are not included. Such an operation makes it possible to prevent an error in file interpretation.

【0017】《請求項5》請求項5に記載の発明は、画
像データを圧縮して、圧縮画像ファイルを生成する画像
圧縮用集積回路(51)において、外部からアプリケー
ションセグメントを書き込み可能なバッファメモリ(5
2)と、バッファメモリに書き込まれたアプリケーショ
ンセグメントを、圧縮画像ファイルのアプリケーション
セグメント位置に挿入するAPP挿入手段(17)とを
備え、APP挿入手段を介してアプリケーションセグメ
ントが挿入された圧縮画像ファイルを出力することを特
徴とする。このような画像圧縮用集積回路では、バッフ
ァメモリに書き込まれたアプリケーションセグメントを
挿入して、圧縮画像ファイルを完成する。この場合、集
積回路側ではアプリケーションセグメントのデータを個
別に作成する必要がないので、汎用性の非常に高い画像
圧縮用集積回路が実現する。
According to a fifth aspect of the present invention, in the image compression integrated circuit (51) for compressing image data and generating a compressed image file, a buffer memory capable of externally writing an application segment. (5
2) and APP insertion means (17) for inserting the application segment written in the buffer memory into the application segment position of the compressed image file. The compressed image file in which the application segment has been inserted via the APP insertion means is provided. It is characterized by outputting. In such an image compression integrated circuit, a compressed image file is completed by inserting the application segment written in the buffer memory. In this case, since it is not necessary for the integrated circuit to individually create the data of the application segment, an image compression integrated circuit having extremely high versatility is realized.

【0018】《請求項6》請求項6に記載の発明は、請
求項1ないし請求項4のいずれか1項に記載の画像圧縮
用集積回路と、画像圧縮用集積回路に対して、ダミーデ
ータを生成するために必要な情報を設定するAPP情報
設定手段(27)と、画像圧縮用集積回路から出力され
た圧縮画像ファイルに対して、アプリケーションセグメ
ントを上書きするAPP上書き手段(27)とを備え
て、画像圧縮装置を構成したことを特徴とする。
According to a sixth aspect of the present invention, there is provided an image compression integrated circuit according to any one of the first to fourth aspects, and dummy data is stored in the image compression integrated circuit. APP information setting means (27) for setting information necessary for generating an image segment, and APP overwriting means (27) for overwriting an application segment on a compressed image file output from the image compression integrated circuit. Thus, an image compression apparatus is configured.

【0019】《請求項7》請求項7に記載の発明は、請
求項5に記載の画像圧縮用集積回路と、画像圧縮用集積
回路内のバッファメモリに対して、アプリケーションセ
グメントを書き込むAPP書き込み手段(27)とを備
えて、画像圧縮装置を構成したことを特徴とする。
<Seventh Aspect> According to a seventh aspect of the present invention, there is provided an APP writing means for writing an application segment to the image compression integrated circuit according to the fifth aspect and a buffer memory in the image compression integrated circuit. (27) to constitute an image compression device.

【0020】[0020]

【発明の実施の形態】以下、図面に基づいて本発明にお
ける実施の形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0021】《第1の実施形態》第1の実施形態は、請
求項1〜4、6に記載の発明に対応する実施形態であ
る。 [画像圧縮用集積回路の構成]図1は、画像圧縮用集積
回路11の内部構成を概念的に示すブロック図である。
なお、本図では、説明の都合上、集積回路内においてソ
フトウェアシーケンサなどのソフトウェア処理で柔軟に
実現される一部機能についても、機能ブロックとして表
現している。なお、本実施形態の集積回路11の内部処
理の一部または全部をハードウェア(例えば、ハードウ
ェアシーケンサと、そのシーケンス制御下で処理を実行
するハードウェア処理回路)により実現しても、もちろ
んかまわない。
<< First Embodiment >> The first embodiment is an embodiment corresponding to the first to fourth and sixth aspects of the present invention. [Configuration of Image Compression Integrated Circuit] FIG. 1 is a block diagram conceptually showing the internal configuration of the image compression integrated circuit 11.
In this figure, for convenience of explanation, some functions that are flexibly realized by software processing such as a software sequencer in an integrated circuit are also represented as functional blocks. Note that part or all of the internal processing of the integrated circuit 11 of the present embodiment may be realized by hardware (for example, a hardware sequencer and a hardware processing circuit that executes processing under the sequence control thereof). Absent.

【0022】図1において、画像圧縮用集積回路11
は、下記の機能ブロックを備えて概略構成される。 APP設定レジスタ12・・・外部から書き込まれる
『アプリケーションセグメントのダミーデータ作成に必
要な情報』を保持するためのレジスタ。このレジスタ内
には、APP0〜15の各データ長と、ファイル内位置
の情報とを記録する領域が予め定められている。 ダミーデータ生成部13・・・APP設定レジスタ1
2の情報を参照して、アプリケーションセグメントのダ
ミーデータを生成する。 JPEGヘッダ等の生成部14・・・JPEGヘッダ
その他の付随情報(ただしアプリケーションセグメント
は除く)を生成する。 圧縮演算部15・・・画像データをJPEG圧縮(画
素ブロック化→DCT変換→量子化→符号化)する。 ファイル作成部17・・・各生成されたデータをファ
イルフォーマットの順に並べ、圧縮画像ファイルとして
外部出力する。
In FIG. 1, an image compression integrated circuit 11 is shown.
Is schematically configured with the following functional blocks. APP setting register 12: A register for holding “information necessary for creating dummy data of an application segment” written from outside. In this register, an area for recording each data length of APP0 to APP15 and information on the position in the file is predetermined. Dummy data generation unit 13: APP setting register 1
The dummy data of the application segment is generated with reference to the information of No. 2. A JPEG header generation unit 14 generates a JPEG header and other accompanying information (excluding an application segment). Compression operation unit 15: JPEG compression of image data (pixel block → DCT conversion → quantization → encoding). File creator 17: Arranges each generated data in the order of the file format, and externally outputs it as a compressed image file.

【0023】[電子カメラの構成]一方、図2は、画像
圧縮用集積回路11を搭載する電子カメラ21の内部構
成を示す図である。図2において、電子カメラ21に
は、被写体像を結像する撮影レンズ22が装着される。
この撮影レンズ22の像空間には、被写体像を光電変換
する撮像素子23が配置される。撮像素子23からの画
像データは、A/D変換部24および信号処理部25を
順に介した後、画像圧縮用集積回路11に与えられる。
この画像圧縮用集積回路11は、バス30などを介し
て、システムコントロール用のMPU(マイクロプロセ
ッサユニット)27、システムメモリ28、および画像
記録用のメモリカード29などにそれぞれ接続される。
なお、図2中に示す破線領域(画像圧縮用集積回路1
1、MPU27、システムメモリ28、およびバス3
0)の構成をもって、画像圧縮装置26が構成される。
[Configuration of Electronic Camera] On the other hand, FIG. 2 is a diagram showing the internal configuration of an electronic camera 21 on which the image compression integrated circuit 11 is mounted. In FIG. 2, a photographing lens 22 for forming an image of a subject is attached to an electronic camera 21.
In the image space of the taking lens 22, an image pickup device 23 for photoelectrically converting a subject image is arranged. The image data from the image sensor 23 is supplied to the image compression integrated circuit 11 after passing through the A / D converter 24 and the signal processor 25 in this order.
The image compression integrated circuit 11 is connected to an MPU (microprocessor unit) 27 for system control, a system memory 28, a memory card 29 for image recording, and the like via a bus 30 and the like.
Note that a broken line area (the image compression integrated circuit 1) shown in FIG.
1, MPU 27, system memory 28, and bus 3
The image compression device 26 is configured by the configuration of (0).

【0024】[電子カメラ21側における画像データの
圧縮記録動作]図3は、電子カメラ21側で実行される
圧縮記録動作を示す図である。以下、図3のステップ番
号に従って、電子カメラ21における圧縮記録動作を説
明する。 ステップS1: まず初期設定として、MPU27は、
各アプリケーションセグメントのデータ長を、画像圧縮
用集積回路11内のAPP設定レジスタ12に記録す
る。なお、アプリケーションセグメントのファイル内位
置がSOIマーカー直後と異なる場合、MPU27は、
このファイル内位置を示す情報も、APP設定レジスタ
12に記録する。 ステップS2: 次に、MPU27は、システムメモリ
28上に、アプリケーションセグメントのデータを作成
する。なおこの期間中、画像圧縮用集積回路11側で
は、ダミーデータを含む圧縮画像ファイルの作成処理
(後述)が並列に実行される。 ステップS3: 画像圧縮用集積回路11側で完成した
圧縮画像ファイル(ダミーデータを含む)は、バス30
を介して、システムメモリ28に順次記録される。 ステップS4: MPU27は、圧縮画像ファイルのダ
ミーデータ(又はダミーコード)を、ステップS2で作
成した正規のアプリケーションセグメントで上書きす
る。 ステップS5: MPU27は、アプリケーションセグ
メントの完成した圧縮画像ファイルをメモリカード29
に記録する。
[Compression Recording Operation of Image Data on Electronic Camera 21] FIG. 3 is a diagram showing a compression recording operation executed on the electronic camera 21 side. Hereinafter, the compression recording operation in the electronic camera 21 will be described according to the step numbers in FIG. Step S1: First, as an initial setting, the MPU 27
The data length of each application segment is recorded in the APP setting register 12 in the image compression integrated circuit 11. If the position of the application segment in the file is different from that immediately after the SOI marker, the MPU 27
The information indicating the position in the file is also recorded in the APP setting register 12. Step S2: Next, the MPU 27 creates application segment data on the system memory 28. During this period, on the image compression integrated circuit 11 side, a process of creating a compressed image file including dummy data (described later) is executed in parallel. Step S3: The compressed image file (including the dummy data) completed on the image compression integrated circuit 11 side is
Are sequentially recorded in the system memory 28. Step S4: The MPU 27 overwrites the dummy data (or dummy code) of the compressed image file with the regular application segment created in step S2. Step S5: The MPU 27 stores the completed compressed image file of the application segment in the memory card 29.
To record.

【0025】[画像圧縮用集積回路11側における圧縮
画像ファイルの作成処理]図4は、画像圧縮用集積回路
11の内部で実行される圧縮画像ファイル(ダミーデー
タを含む)の作成処理を示す図である。以下、図4に示
す圧縮画像ファイルの作成処理について説明する。 ステップS11: 画像圧縮用集積回路11内の圧縮演
算部15は、信号処理部25から与えられる画像データ
に対してJPEG圧縮をハードウェア処理で実行する。
なお、固定長圧縮の場合、圧縮演算部15は、複数回の
テスト圧縮を経てスケールファクタを決定したのちに、
固定長圧縮を実行する。 ステップS12: ダミーデータ生成部13は、まず、
APP設定レジスタ12に記録された設定情報を読み出
す。ダミーデータ生成部13は、設定情報の中からアプ
リケーションセグメントのデータ長を取得し、図5に示
すようなダミーデータを作成する。ここでのダミーデー
タは、下記のデータ列から構成される。 各アプリケーションセグメントのマーカーコード 各アプリケーションセグメントのセグメント長(デー
タ長から算出した値) 各アプリケーションセグメントのデータ長を満足する
ように、ダミーコード(ここでは00HまたはFFH)
を並べたデータ領域 なお、ダミーデータ生成部13は、データ長がゼロに設
定されたアプリケーションセグメントについてはファイ
ル中に存在しないものと解釈し、当該アプリケーション
セグメントのダミーデータを生成しない。 ステップS13: ファイル作成部17は、APP設定
レジスタ12にファイル内位置の有効な情報があるか否
かを判定する。ファイル内位置の情報がない場合、ファ
イル作成部17は、ステップS14に動作を移行する。
一方、ファイル内位置の情報があった場合、ファイル作
成部17は、ステップS15に動作を移行する。 ステップS14: ファイル作成部17は、ダミーデー
タ生成部13で作成されたダミーデータを、JPEGヘ
ッダ内のSOIマーカーの直後(デフォルト位置)に挿
入する。その後、ファイル作成部17は、ステップS1
6に動作を移行する。 ステップS15: ファイル作成部17は、ダミーデー
タ生成部13で作成されたダミーデータを、設定された
ファイル内位置に挿入する。その後、ファイル作成部1
7は、ステップS16に動作を移行する。 ステップS16: ファイル作成部17は、圧縮済みの
画像データおよびJPEGヘッダ等の付随情報(ダミー
データを含む)を、JPEGファイルフォーマットに従
って外部出力する。なお具体的には、画像圧縮用集積回
路11内には、一種のシーケンサ(ハードウェアシーケ
ンサまたはソフトウェアシーケンサ)が設けられる。こ
のシーケンサがファイル作成部17として、ダミーデー
タ生成部13、JPEGヘッダ等の生成部14、圧縮演
算部15等の機能ブロックをシーケンス制御(起動およ
び停止など)する。その結果、各機能ブロックの出力デ
ータは、出力時に競合することなく、圧縮画像ファイル
の内部データ順に沿って外部へ順次出力される。
[Process of Creating Compressed Image File on Image Compression Integrated Circuit 11] FIG. 4 shows a process of creating a compressed image file (including dummy data) executed inside the image compression integrated circuit 11. It is. Hereinafter, the process of creating the compressed image file shown in FIG. 4 will be described. Step S11: The compression operation unit 15 in the image compression integrated circuit 11 executes JPEG compression on the image data supplied from the signal processing unit 25 by hardware processing.
In the case of fixed-length compression, the compression calculation unit 15 determines the scale factor after performing a plurality of test compressions,
Perform fixed-length compression. Step S12: The dummy data generation unit 13 firstly
The setting information recorded in the APP setting register 12 is read. The dummy data generation unit 13 acquires the data length of the application segment from the setting information and creates dummy data as shown in FIG. The dummy data here is composed of the following data strings. Marker code of each application segment Segment length of each application segment (value calculated from data length) Dummy code (here, 00H or FFH) so as to satisfy the data length of each application segment
The dummy data generation unit 13 interprets that the application segment whose data length is set to zero does not exist in the file, and does not generate the dummy data of the application segment. Step S13: The file creation unit 17 determines whether or not the APP setting register 12 has valid information on the position in the file. When there is no information on the position in the file, the file creating unit 17 shifts the operation to Step S14.
On the other hand, when there is information on the position in the file, the file creating unit 17 shifts the operation to Step S15. Step S14: The file creation unit 17 inserts the dummy data created by the dummy data creation unit 13 immediately after the SOI marker (default position) in the JPEG header. After that, the file creation unit 17 determines in step S1
The operation moves to 6. Step S15: The file creation unit 17 inserts the dummy data created by the dummy data creation unit 13 into the set position in the file. Then, the file creation unit 1
The operation proceeds to step S16. Step S16: The file creating section 17 outputs the compressed image data and accompanying information (including dummy data) such as a JPEG header to the outside according to the JPEG file format. Specifically, a kind of sequencer (hardware sequencer or software sequencer) is provided in the image compression integrated circuit 11. The sequencer functions as a file creation unit 17 to perform sequence control (eg, start and stop) of functional blocks such as a dummy data generation unit 13, a generation unit 14 such as a JPEG header, and a compression operation unit 15. As a result, the output data of each functional block is sequentially output to the outside in the order of the internal data of the compressed image file without conflict at the time of output.

【0026】(第1の実施形態の効果など)以上説明し
た一連の動作により、画像圧縮用集積回路11からは、
図5に一例を示すような圧縮画像ファイル(ダミーデー
タを含む)が、バス30上に出力される。電子カメラ2
1側では、このダミーコードを正規のアプリケーション
セグメントで上書きすることにより、正規の圧縮画像フ
ァイルを迅速かつ正確に完成することができる。
(Effects of the First Embodiment, etc.) By the above-described series of operations, the integrated circuit for image compression 11
A compressed image file (including dummy data) whose example is shown in FIG. Electronic camera 2
On the first side, by overwriting the dummy code with a regular application segment, a regular compressed image file can be completed quickly and accurately.

【0027】特に、画像圧縮用集積回路11では、外部
設定によりアプリケーションセグメント(ダミーデー
タ)のデータ長を自在に変更できる。また、アプリケー
ションセグメント(ダミーデータ)のファイル内位置を
自在に変更することもできる。このような機能により、
多種多様なファイル仕様に柔軟に対応可能な、汎用性の
非常に高い画像圧縮用集積回路11が実現する。
In particular, in the image compression integrated circuit 11, the data length of the application segment (dummy data) can be freely changed by external setting. Further, the position of the application segment (dummy data) in the file can be freely changed. With these features,
A very versatile image compression integrated circuit 11 that can flexibly cope with various file specifications is realized.

【0028】また、画像圧縮用集積回路11は、ダミー
データ中のデータ領域を00HまたはFFHのダミーコ
ードで埋めている。したがって、本実施形態では、ダミ
ーデータ中に不必要なマーカーコードが出現せず、ファ
イル解釈の誤りを確実に防止できる。さらに、画像圧縮
用集積回路11は、複数個のアプリケーションセグメン
ト(APP0〜15)に対応したダミーデータを生成す
る。したがって、画像圧縮用集積回路11は、アプリケ
ーションセグメントを複数個挿入するようなファイル仕
様にも柔軟に対応することができる。
The image compression integrated circuit 11 fills the data area in the dummy data with a dummy code of 00H or FFH. Therefore, in the present embodiment, unnecessary marker codes do not appear in the dummy data, and an error in file interpretation can be reliably prevented. Further, the image compression integrated circuit 11 generates dummy data corresponding to a plurality of application segments (APP0 to APP15). Therefore, the image compression integrated circuit 11 can flexibly cope with a file specification in which a plurality of application segments are inserted.

【0029】また、画像圧縮用集積回路11は、各ダミ
ーデータの先頭に、APPn(アプリケーションセグメ
ントのマーカーコード)とセグメント長とを挿入する。
したがって、電子カメラ21側では、これらのデータを
生成するなどの手間を省くことが可能となる。また特
に、画像圧縮用集積回路11の出力時点において、圧縮
画像ファイル内の各データ位置は確定している。したが
って、電子カメラ21側で正規のアプリケーションセグ
メントへ書き換えるに当たってデータをアドレス移動す
るなどの必要がない。そのため、データバス幅以下の半
端なアドレス移動によってデータが上位バイト/下位バ
イトに分かれるなどのおそれがなく、圧縮画像ファイル
のバス転送を効率良く行うことができる。次に、別の実
施形態について説明する。
The image compression integrated circuit 11 inserts APPn (marker code of the application segment) and the segment length at the head of each dummy data.
Therefore, on the electronic camera 21 side, it is possible to save trouble such as generating these data. In particular, at the time of output from the image compression integrated circuit 11, each data position in the compressed image file has been determined. Therefore, there is no need to move the address of data when rewriting the application segment on the electronic camera 21 to the regular application segment. Therefore, there is no danger that the data is divided into upper byte / lower byte due to an odd address movement smaller than the data bus width, and the bus transfer of the compressed image file can be performed efficiently. Next, another embodiment will be described.

【0030】《第2の実施形態》第2の実施形態は、請
求項5、7に記載の発明に対応した実施形態である。図
6は、画像圧縮用集積回路51の概略構成を示す図であ
る。画像圧縮用集積回路51の構成上の特徴点は、アプ
リケーションセグメントのデータを外部から書き込み可
能なバッファメモリ52を備えている点である。なお、
その他の構成については、第1の実施形態(図1、図
2)と同じため、同一の符号を付与してここでの説明を
省略する。
<< Second Embodiment >> A second embodiment is an embodiment corresponding to the fifth and seventh aspects of the present invention. FIG. 6 is a diagram showing a schematic configuration of the image compression integrated circuit 51. The feature of the configuration of the image compression integrated circuit 51 is that the image compression integrated circuit 51 is provided with a buffer memory 52 that can externally write application segment data. In addition,
Other configurations are the same as those of the first embodiment (FIGS. 1 and 2), and thus the same reference numerals are given and the description thereof is omitted.

【0031】図7は、画像圧縮用集積回路51を搭載し
た電子カメラ21の圧縮記録動作を説明する図である。
以下、図7のステップ番号に従って、電子カメラ21の
圧縮記録動作を説明する。 ステップS21: まず、MPU27は、システムメモ
リ28上に、アプリケーションセグメントのデータを作
成する。 ステップS22: MPU27は、画像圧縮用集積回路
51内のバッファメモリ52に、作成したアプリケーシ
ョンセグメントのデータを書き込む。なお、アプリケー
ションセグメントのデータ領域が、バッファメモリ52
の容量を超える場合、MPU27は、超過したデータ領
域についてはバッファメモリ52に書き込まず、システ
ムメモリ28上にそのまま保持する。 ステップS23: 画像圧縮用集積回路51側で完成し
た圧縮画像ファイルは、バス30を介して、システムメ
モリ28に順次記録される。 ステップS24: 上記ステップS22で、超過分のデ
ータ領域がシステムメモリ28に残っていた場合、MP
U27はステップS25に動作を移行する。一方、超過
分のデータ領域がシステムメモリ28に残っていない場
合、MPU27はステップS26に動作を移行する。 ステップS25: MPU27は、システムメモリ28
上に残存する超過分のデータ領域を、圧縮画像ファイル
中のダミーコードに上書きする。 ステップS26: MPU27は、アプリケーションセ
グメントの完成した圧縮画像ファイルをメモリカード2
9に記録する。
FIG. 7 is a diagram for explaining the compression recording operation of the electronic camera 21 equipped with the image compression integrated circuit 51.
Hereinafter, the compression recording operation of the electronic camera 21 will be described according to the step numbers in FIG. Step S21: First, the MPU 27 creates application segment data on the system memory 28. Step S22: The MPU 27 writes the created application segment data into the buffer memory 52 in the image compression integrated circuit 51. The data area of the application segment is stored in the buffer memory 52.
When the capacity exceeds the capacity, the MPU 27 does not write the excess data area into the buffer memory 52, and keeps the data area as it is on the system memory 28. Step S23: The compressed image files completed on the image compression integrated circuit 51 side are sequentially recorded in the system memory 28 via the bus 30. Step S24: If the excess data area remains in the system memory 28 in step S22, the MP
U27 transfers the operation to step S25. On the other hand, when the excess data area does not remain in the system memory 28, the MPU 27 shifts the operation to Step S26. Step S25: The MPU 27 stores the system memory 28
The excess data area remaining above is overwritten with the dummy code in the compressed image file. Step S26: The MPU 27 stores the completed compressed image file of the application segment in the memory card 2.
Record in 9.

【0032】[画像圧縮用集積回路51側における圧縮
画像ファイルの作成処理]図8は、画像圧縮用集積回路
51の内部で実行される圧縮画像ファイルの作成処理を
示す図である。以下、図8に示す圧縮画像ファイルの作
成処理について説明する。 ステップS31: 画像圧縮用集積回路51内の圧縮演
算部15は、信号処理部25から与えられる画像データ
に対してJPEG圧縮をハードウェア処理で実行する。 ステップS32: ファイル作成部17は、まず、バッ
ファメモリ52内のアプリケーションセグメントをJP
EGヘッダ内に挿入する。 ステップS33: ファイル作成部17は、バッファメ
モリ52内のアプリケーションセグメントのセグメント
長から判断して、バッファ容量を超えるアプリケーショ
ンセグメントか否かを判定する。バッファ容量を超える
アプリケーションセグメントの場合、ファイル作成部1
7は、ステップS34に動作を移行する。一方、バッフ
ァ容量を超えないアプリケーションセグメントの場合、
ファイル作成部17は、ステップS35に動作を移行す
る。 ステップS34: ファイル作成部17は、アプリケー
ションセグメントのセグメント長の値から未格納なデー
タ領域のデータ長を判断し、そのデータ長分のダミーコ
ードを挿入しておく。 ステップS35: ファイル作成部17は、圧縮済みの
画像データおよびJPEGヘッダ等の付随情報を、JP
EGファイルフォーマットに従って外部出力する。
[Process of Creating Compressed Image File on Integrated Circuit 51 for Image Compression] FIG. 8 is a diagram showing the process of creating a compressed image file executed inside the integrated circuit 51 for image compression. Hereinafter, the process of creating the compressed image file shown in FIG. 8 will be described. Step S31: The compression operation unit 15 in the image compression integrated circuit 51 executes JPEG compression on the image data supplied from the signal processing unit 25 by hardware processing. Step S32: The file creating unit 17 first sets the application segment in the buffer memory 52 to JP
Insert into EG header. Step S33: The file creation unit 17 determines whether or not the application segment exceeds the buffer capacity by judging from the segment length of the application segment in the buffer memory 52. If the application segment exceeds the buffer capacity, the file creation unit 1
The operation proceeds to step S34. On the other hand, if the application segment does not exceed the buffer capacity,
The file creating unit 17 shifts the operation to Step S35. Step S34: The file creating unit 17 determines the data length of the unstored data area from the value of the segment length of the application segment, and inserts a dummy code corresponding to the data length. Step S35: The file creation unit 17 sends the compressed image data and the accompanying information such as the JPEG header to the JP
External output according to EG file format.

【0033】(第2の実施形態の効果など)以上説明し
た一連の動作により、画像圧縮用集積回路51からは、
正規のアプリケーションセグメントを一部もしくは全部
含む圧縮画像ファイルが、バス30上に出力される。こ
の場合、画像圧縮用集積回路51側では、アプリケーシ
ョンセグメントのデータを個別に作成する必要がないた
め、汎用性の非常に高い画像圧縮用集積回路51が実現
する。
(Effects of Second Embodiment, etc.) By the above-described series of operations, the integrated circuit for image compression 51
A compressed image file including a part or all of the regular application segment is output on the bus 30. In this case, it is not necessary for the image compression integrated circuit 51 to individually create the data of the application segment, so that the image compression integrated circuit 51 with extremely high versatility is realized.

【0034】《実施形態の補足事項》なお、第1の実施
形態では、複数個のアプリケーションセグメントごとに
データ長をそれぞれ設定しているが、これに限定される
ものではない。例えば、アプリケーションセグメントの
種類や個数などの情報を設定するようにしてもよい。こ
の場合、画像圧縮用集積回路11は、アプリケーション
セグメントの種類と個数(同一種類のアプリケーション
セグメントの数)などから、アプリケーションセグメン
トの体裁を整えたダミーデータを作成し、圧縮画像ファ
イルに挿入すればよい。
<< Supplementary Items of the Embodiment >> In the first embodiment, the data length is set for each of a plurality of application segments, but the present invention is not limited to this. For example, information such as the type and number of application segments may be set. In this case, the image compression integrated circuit 11 may create dummy data in which the format of the application segment is adjusted based on the type and the number of the application segments (the number of the same type of application segments) and insert the dummy data into the compressed image file. .

【0035】また例えば、画像圧縮用集積回路11にお
いて、アプリケーションセグメント全体の総データ長に
関する設定を受け付けるようにしてもよい。この場合、
画像圧縮用集積回路11は、総データ長分のダミーデー
タ(単にダミーコードを並べたもの)を生成して圧縮画
像ファイルに挿入すればよい。この場合、ダミーデータ
列は、アプリケーションマーカーコードやセグメント長
などを含まない。そのため、総データ長の範囲内で、任
意の個数、任意の長さ、任意の順序でアプリケーション
セグメントを後から柔軟に上書きすることができる。
For example, the image compression integrated circuit 11 may receive a setting relating to the total data length of the entire application segment. in this case,
The image compression integrated circuit 11 may generate the dummy data (the dummy codes are simply arranged) for the total data length and insert the dummy data into the compressed image file. In this case, the dummy data string does not include the application marker code, the segment length, and the like. Therefore, the application segments can be flexibly overwritten later in an arbitrary number, an arbitrary length, and an arbitrary order within the range of the total data length.

【0036】また、第1の実施形態では、システムメモ
リ28上でダミーデータの置換を行っているが、これに
限定されるものではない。例えば、画像圧縮用集積回路
11からの圧縮画像ファイルをメモリカード29に直に
記録し、メモリカード29上でダミーデータの置換を行
ってもよい。なお、第2の実施形態において、バッファ
メモリ52中のデータが『アプリケーションセグメン
ト』か『ダミーデータ生成用の情報』のいずれかを(例
えばデータの特徴や設定フラグ情報などから)判別する
データ判別手段を設けてもよい。この場合、ファイル作
成部17(APP挿入手段)は、バッファ内のデータが
アプリケーションセグメントと判別された場合に、その
アプリケーションセグメントを圧縮画像ファイルに挿入
する。一方、ダミーデータ生成用の情報と判別された場
合、ファイル作成部17(APP挿入手段)は、その情
報からダミーデータを生成して圧縮画像ファイルに挿入
する。このような構成により、上述した2つの実施形態
どちらにも自動的に対処可能な、より汎用性の高い画像
圧縮用集積回路51が実現する。
In the first embodiment, replacement of dummy data is performed on the system memory 28, but the present invention is not limited to this. For example, the compressed image file from the image compression integrated circuit 11 may be directly recorded on the memory card 29, and the dummy data may be replaced on the memory card 29. In the second embodiment, a data discriminating means for discriminating whether the data in the buffer memory 52 is “application segment” or “information for generating dummy data” (for example, from data characteristics or setting flag information). May be provided. In this case, when the data in the buffer is determined to be an application segment, the file creation unit 17 (APP insertion means) inserts the application segment into the compressed image file. On the other hand, if it is determined that the information is for generating dummy data, the file creating unit 17 (APP inserting means) generates dummy data from the information and inserts the dummy data into the compressed image file. With such a configuration, a more versatile image compression integrated circuit 51 that can automatically deal with both of the above-described two embodiments is realized.

【0037】また、上述した第2の実施形態において、
バッファメモリ52内に『アプリケーションセグメント
のファイル内位置の情報』を書き込み可能にしてもよ
い。この場合、ファイル作成部17が、このファイル内
位置にアプリケーションセグメントを挿入する。このよ
うな構成では、ファイル内位置についても外部設定可能
な、より汎用性の高い画像圧縮用集積回路51が実現す
る。
In the second embodiment described above,
“Information on the position of the application segment in the file” may be made writable in the buffer memory 52. In this case, the file creating unit 17 inserts the application segment at the position in the file. With such a configuration, a more versatile image compression integrated circuit 51 that can externally set the position in the file is realized.

【0038】なお、上述した2つの実施形態では、ダミ
ーコードとして00HまたはFFHを使用しているが、
これに限定されるものではない。一般的には、ダミーデ
ータ中に、不要なマーカーコードが現れなければよい。
また、上述した2つの実施形態では、図5に示すように
DRI(Define Restart Interval)情報を出力する場
合について説明したが、これに限定されるものではな
い。例えば、圧縮画像ファイルによっては、DRI情報
およびRSTmマーカーを含まない場合ももちろんあ
る。また例えば、画像圧縮用集積回路に、DRI情報を
出力する/出力しないを指定するDRI指定手段を設け
て、その指定に従ってDRI情報を出力する/出力しな
いを自動切り替えしてもよい。さらに、DRI情報を出
力する場合に、DRI情報に適合するRSTm(Restar
t Interval Termination)マーカーを、ECS(Entrop
y Coded Segment)に自動的に挿入するRST挿入手段
を画像圧縮用集積回路に設けてもよい。また、上述した
2つの実施形態では、JPEGの場合について説明した
が、これに限定されるものではない。本発明におけるア
プリケーションセグメントとは、ユーザー側もしくは圧
縮装置側で任意に付加可能なデータ領域を指すので、M
PEGその他のファイルフォーマットに広範囲に適用可
能である。
In the above two embodiments, 00H or FFH is used as the dummy code.
It is not limited to this. Generally, it is sufficient that unnecessary marker codes do not appear in the dummy data.
In the two embodiments described above, the case where DRI (Define Restart Interval) information is output as shown in FIG. 5 has been described, but the present invention is not limited to this. For example, some compressed image files do not include DRI information and RSTm markers. Also, for example, the image compression integrated circuit may be provided with a DRI designation unit for designating whether or not to output the DRI information, and automatically switch between outputting and not outputting the DRI information according to the designation. Further, when DRI information is output, RSTm (Restar
t Interval Termination (ECS) marker
RST insertion means for automatically inserting the RST into the coded segment may be provided in the image compression integrated circuit. In the above two embodiments, the case of JPEG has been described, but the present invention is not limited to this. The application segment in the present invention refers to a data area that can be arbitrarily added on the user side or the compression apparatus side.
Widely applicable to PEG and other file formats.

【0039】[0039]

【発明の効果】請求項1に記載の発明では、外部設定さ
れたデータ長に従って、アプリケーションセグメントの
ダミーデータを圧縮画像ファイル内に挿入する。この場
合、外部からデータ長の設定を変更することにより、多
種多様なアプリケーションセグメントの仕様に柔軟に対
応することが可能となる。また、本発明の画像圧縮用集
積回路は、アプリケーションセグメントのデータ完成を
待たずに、圧縮画像ファイル(ダミーデータを含む)を
出力することができる。したがって、アプリケーション
セグメントのデータ作成に高速されて、圧縮画像ファイ
ル(ダミーデータを含む)の出力が遅延するなどの不具
合がなく、画像圧縮用集積回路の高速性を十分活用する
ことが可能となる。請求項2に記載の発明では、アプリ
ケーションセグメントのファイル内位置の指定も可能と
なるので、一段と汎用性の高い画像圧縮用集積回路が実
現する。請求項3に記載の発明では、アプリケーション
セグメントのダミーデータをSOIマーカーの直後に挿
入する。通常、アプリケーションセグメントはSOIマ
ーカーの直後に挿入される頻度が非常に高いため、この
ような構成でも、汎用性の十分に高い画像圧縮用集積回
路が実現する。請求項4に記載の発明では、不必要なマ
ーカーコードが含まれないように、ダミーデータを生成
する。したがって、ファイル解釈の誤りを確実に防止す
ることが可能となる。請求項5に記載の発明では、バッ
ファメモリに書き込まれたアプリケーションセグメント
を挿入して、圧縮画像ファイルを完成する。したがっ
て、画像圧縮用集積回路側でアプリケーションセグメン
トの独自データを作成する必要が一切なく、汎用性の非
常に高い画像圧縮用集積回路が実現する。請求項6に記
載の発明では、請求項1ないし請求項4のいずれか1項
に記載の画像圧縮用集積回路を使用した画像圧縮装置が
実現する。請求項7に記載の発明では、請求項5に記載
の画像圧縮用集積回路を使用した画像圧縮装置が実現す
る。
According to the first aspect of the present invention, dummy data of an application segment is inserted into a compressed image file according to an externally set data length. In this case, by changing the setting of the data length from the outside, it is possible to flexibly cope with the specifications of various application segments. Further, the integrated circuit for image compression of the present invention can output a compressed image file (including dummy data) without waiting for completion of data of the application segment. Therefore, the speed of generating the data of the application segment is increased, and there is no problem such as a delay in the output of the compressed image file (including the dummy data), and the high speed of the image compression integrated circuit can be fully utilized. According to the second aspect of the present invention, the position of the application segment in the file can be specified, so that a more versatile integrated circuit for image compression is realized. According to the third aspect of the present invention, the dummy data of the application segment is inserted immediately after the SOI marker. Usually, since the application segment is very frequently inserted immediately after the SOI marker, an image compression integrated circuit having sufficiently high versatility is realized even with such a configuration. According to the fourth aspect of the present invention, dummy data is generated so that unnecessary marker codes are not included. Therefore, it is possible to reliably prevent an error in file interpretation. According to the invention described in claim 5, the compressed image file is completed by inserting the application segment written in the buffer memory. Therefore, there is no need to create any unique data of the application segment on the image compression integrated circuit side, and an extremely versatile image compression integrated circuit is realized. According to a sixth aspect of the present invention, there is provided an image compression apparatus using the image compression integrated circuit according to any one of the first to fourth aspects. According to a seventh aspect of the present invention, an image compression apparatus using the image compression integrated circuit according to the fifth aspect is realized.

【図面の簡単な説明】[Brief description of the drawings]

【図1】画像圧縮用集積回路11の内部構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing an internal configuration of an image compression integrated circuit 11.

【図2】電子カメラ21の内部構成を示す図である。FIG. 2 is a diagram showing an internal configuration of the electronic camera 21.

【図3】第1の実施形態における電子カメラ21の圧縮
記録動作を示す図である。
FIG. 3 is a diagram illustrating a compression recording operation of the electronic camera 21 according to the first embodiment.

【図4】画像圧縮用集積回路11側で実行される圧縮画
像ファイルの作成処理を示す図である。
FIG. 4 is a diagram showing a process of creating a compressed image file executed on the image compression integrated circuit 11 side.

【図5】ダミーコードを含む圧縮画像ファイルの一例を
示す図である。
FIG. 5 is a diagram illustrating an example of a compressed image file including a dummy code.

【図6】画像圧縮用集積回路51の内部構成を示す図で
ある。
FIG. 6 is a diagram showing an internal configuration of an image compression integrated circuit 51.

【図7】第2の実施形態における電子カメラ21の圧縮
記録動作を説明する図である。
FIG. 7 is a diagram illustrating a compression recording operation of the electronic camera 21 according to the second embodiment.

【図8】画像圧縮用集積回路51側で実行される圧縮画
像ファイルの作成処理を示す図である。
FIG. 8 is a diagram showing a process of creating a compressed image file executed on the image compression integrated circuit 51 side.

【符号の説明】[Explanation of symbols]

11 画像圧縮用集積回路 12 APP設定レジスタ 13 ダミーデータ生成部 14 JPEGヘッダ等の生成部 15 圧縮演算部 17 ファイル作成部 21 電子カメラ 22 撮影レンズ 23 撮像素子 24 A/D変換部 25 信号処理部 26 画像圧縮装置 27 MPU 28 システムメモリ 29 メモリカード 30 バス 51 画像圧縮用集積回路 52 バッファメモリ DESCRIPTION OF SYMBOLS 11 Image compression integrated circuit 12 APP setting register 13 Dummy data generation part 14 Generation part of JPEG header etc. 15 Compression operation part 17 File preparation part 21 Electronic camera 22 Photographing lens 23 Imaging element 24 A / D conversion part 25 Signal processing part 26 Image compression device 27 MPU 28 System memory 29 Memory card 30 Bus 51 Image compression integrated circuit 52 Buffer memory

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C052 AA17 GA02 GA07 GA09 GB06 GB09 GE08 5C053 FA08 GA10 GB05 GB06 GB36 HA33 JA21 KA01 KA04 LA01 5C059 KK07 KK33 KK50 MA00 MA23 PP01 PP16 RB09 RC09 RC24 UA32 5C078 AA09 CA14 CA36 DA01 EA00 ──────────────────────────────────────────────────続 き Continued on the front page F-term (reference)

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 画像データを圧縮して、圧縮画像ファイ
ルを生成する画像圧縮用集積回路において、 アプリケーションセグメント(前記圧縮画像ファイル内
に任意に付加可能なデータ領域のこと)のデータ長につ
いて、外部から設定を受け付けるAPPデータ長入力手
段と、 前記圧縮画像ファイルのアプリケーションセグメント位
置に、前記APPデータ長入力手段に設定されたデータ
長のダミーデータを挿入するダミー挿入手段とを備え、 前記ダミー挿入手段を介して前記ダミーデータが挿入さ
れた圧縮画像ファイルを出力することを特徴とする画像
圧縮用集積回路。
An image compression integrated circuit for compressing image data to generate a compressed image file, wherein an external data length of an application segment (a data area that can be arbitrarily added to the compressed image file) An APP data length input unit for receiving setting from the device; and a dummy insertion unit for inserting dummy data having a data length set in the APP data length input unit into an application segment position of the compressed image file. And outputting the compressed image file in which the dummy data has been inserted via the CPU.
【請求項2】 請求項1に記載の画像圧縮用集積回路に
おいて、 アプリケーションセグメントのファイル内位置について
外部から設定を受け付けるAPP位置入力手段を備え、 前記ダミー挿入手段は、前記APP位置入力手段により
設定されたファイル内位置に、前記ダミーデータを挿入
することを特徴とする画像圧縮用集積回路。
2. The integrated circuit for image compression according to claim 1, further comprising: APP position input means for receiving an external setting of the position of the application segment in the file, wherein said dummy inserting means is set by said APP position input means. An integrated circuit for compressing an image, wherein the dummy data is inserted at a position in the file.
【請求項3】 請求項1に記載の画像圧縮用集積回路に
おいて、 前記ダミー挿入手段は、前記ダミーデータを、SOI
(Start of Image)マーカーの直後に挿入することを特
徴とする画像圧縮用集積回路。
3. The integrated circuit for compressing an image according to claim 1, wherein said dummy inserting means outputs the dummy data to an SOI.
(Start of Image) An integrated circuit for image compression, which is inserted immediately after a marker.
【請求項4】 請求項1ないし請求項3のいずれか1項
に記載の画像圧縮用集積回路において、 前記ダミー挿入手段は、前記圧縮画像ファイル内でその
他使用されるマーカーコードを含まないように前記ダミ
ーデータを生成することを特徴とする画像圧縮用集積回
路。
4. The image compression integrated circuit according to claim 1, wherein the dummy insertion unit does not include a marker code used in the compressed image file. An image compression integrated circuit, wherein the dummy data is generated.
【請求項5】 画像データを圧縮して、圧縮画像ファイ
ルを生成する画像圧縮用集積回路において、 外部からアプリケーションセグメントを書き込み可能な
バッファメモリと、 前記バッファメモリに書き込まれたアプリケーションセ
グメントを、前記圧縮画像ファイルのアプリケーション
セグメント位置に挿入するAPP挿入手段とを備え、 前記APP挿入手段を介してアプリケーションセグメン
トが挿入された圧縮画像ファイルを出力することを特徴
とする画像圧縮用集積回路。
5. An image compression integrated circuit for compressing image data to generate a compressed image file, comprising: a buffer memory to which an application segment can be written from the outside; An integrated circuit for image compression, comprising: APP insertion means for inserting an application segment into an application segment position of an image file; and outputting a compressed image file in which the application segment is inserted via the APP insertion means.
【請求項6】 請求項1ないし請求項4のいずれか1項
に記載の画像圧縮用集積回路と、 前記画像圧縮用集積回路に対し、前記ダミーデータを生
成するために必要な情報を設定するAPP情報設定手段
と、 前記画像圧縮用集積回路から出力された圧縮画像ファイ
ルに対して、アプリケーションセグメントを上書きする
APP上書き手段とを備えたことを特徴とする画像圧縮
装置。
6. An image compression integrated circuit according to claim 1, wherein information necessary for generating the dummy data is set in the image compression integrated circuit. An image compression apparatus comprising: APP information setting means; and APP overwriting means for overwriting an application segment on a compressed image file output from the image compression integrated circuit.
【請求項7】 請求項5に記載の画像圧縮用集積回路
と、 前記画像圧縮用集積回路内のバッファメモリに対して、
アプリケーションセグメントを書き込むAPP書き込み
手段とを備えたことを特徴とする画像圧縮装置。
7. An image compression integrated circuit according to claim 5, and a buffer memory in the image compression integrated circuit.
An image compression apparatus comprising: an APP writing unit that writes an application segment.
JP30740099A 1999-10-28 1999-10-28 Integrated circuit for image compression and image compressing device Pending JP2001128166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30740099A JP2001128166A (en) 1999-10-28 1999-10-28 Integrated circuit for image compression and image compressing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30740099A JP2001128166A (en) 1999-10-28 1999-10-28 Integrated circuit for image compression and image compressing device

Publications (1)

Publication Number Publication Date
JP2001128166A true JP2001128166A (en) 2001-05-11

Family

ID=17968605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30740099A Pending JP2001128166A (en) 1999-10-28 1999-10-28 Integrated circuit for image compression and image compressing device

Country Status (1)

Country Link
JP (1) JP2001128166A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004006562A1 (en) 2002-06-27 2004-01-15 Ricoh Company, Ltd. Image processing apparatus and image processing method
CN102238379A (en) * 2010-04-27 2011-11-09 华晶科技股份有限公司 Processing method for image file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004006562A1 (en) 2002-06-27 2004-01-15 Ricoh Company, Ltd. Image processing apparatus and image processing method
CN102238379A (en) * 2010-04-27 2011-11-09 华晶科技股份有限公司 Processing method for image file
CN102238379B (en) * 2010-04-27 2013-08-07 华晶科技股份有限公司 Processing method for image file

Similar Documents

Publication Publication Date Title
US5745912A (en) Memory card apparatus including a link table for managing the correspondency between the recorded contents in the memory card and that in the link table
JPH03232029A (en) Storage managing system for memory card
JPH11252503A (en) Image processor, image printing controller, and printing image designating method and image printing controlling method
US20110102633A1 (en) Image sensing apparatus
US6680870B2 (en) Memory device, data processing method and data processing program
JP4665299B2 (en) Electronic camera
CN108632552A (en) Recording device, control method and storage medium
JP2007233512A (en) Data recorder, data recording method, and program
JPH09135412A (en) Recording and reproducing device
JPH04307644A (en) Memory card storage control system
US20060132620A1 (en) Data recording apparatus and method thereof
JP2001128166A (en) Integrated circuit for image compression and image compressing device
JP4346695B2 (en) Recording apparatus and recording method
JP2002183675A (en) Control device of data recording medium and method therefor, data recorder and control device
JP4262220B2 (en) Digital camera
JP2006133923A (en) Data recording/reproducing device, recording/reproducing method, program and data recording medium
JP4764296B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP3509658B2 (en) Operation mode switching circuit and method
JPH0877049A (en) Method and device for information recording of electronic still camera
JP3552247B2 (en) Electronic still camera
JPH0547189A (en) Memory card device
JP2010009205A (en) Recording control device
JP2003141059A (en) Information processor and method, storage medium and program
JPH0879686A (en) Method for recording information of electronic still camera and device therefor
JP3419547B2 (en) Non-volatile memory