[go: up one dir, main page]

JP2006109063A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2006109063A
JP2006109063A JP2004292603A JP2004292603A JP2006109063A JP 2006109063 A JP2006109063 A JP 2006109063A JP 2004292603 A JP2004292603 A JP 2004292603A JP 2004292603 A JP2004292603 A JP 2004292603A JP 2006109063 A JP2006109063 A JP 2006109063A
Authority
JP
Japan
Prior art keywords
header
size
file
analysis
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2004292603A
Other languages
Japanese (ja)
Inventor
Yuichi Nakase
雄一 中瀬
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 JP2004292603A priority Critical patent/JP2006109063A/en
Publication of JP2006109063A publication Critical patent/JP2006109063A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

【課題】 ヘッダ解析のためのファイル読み込みのオーバーヘッドを最小限に抑えることができる。
【解決手段】 画像のヘッダ情報を解析する際のファイル読み込みにおいて、最初の読み込みサイズをヘッダ記載内容にかかわらず予め設定された大部分のヘッダが解析完了すると予測される固定長とし読み込みを行い、ヘッダ解析を行う。
【選択図】 図3
PROBLEM TO BE SOLVED: To minimize the overhead of reading a file for header analysis.
In reading a file when analyzing header information of an image, the initial reading size is read with a fixed length that is predicted to be completed when most of the headers set in advance are analyzed regardless of the contents described in the header, Perform header analysis.
[Selection] Figure 3

Description

本発明は、画像データを再生する画像処理装置に関するものである。   The present invention relates to an image processing apparatus that reproduces image data.

従来、固体メモリ素子を有するメモリカードを記録媒体として、静止画像や動画像を記録再生する電子カメラ等の画像処理装置は既に市販されており、カラー液晶パネル等の電子ファインダーを備える電子カメラも販売されている。   Conventionally, image processing apparatuses such as electronic cameras for recording and reproducing still images and moving images using a memory card having a solid-state memory element as a recording medium are already on the market, and electronic cameras equipped with an electronic viewfinder such as a color liquid crystal panel are also sold. Has been.

また、上記電子ファインダーを通しての画像表示のあるいは画像情報表示のために画像ヘッダ等に記載されている付加情報を解析するものがある(例えば、特許文献1)。
特開2001−111955号公報
In addition, there is a technique for analyzing additional information described in an image header or the like for image display or image information display through the electronic viewfinder (for example, Patent Document 1).
JP 2001-111955 A

しかしながら、このような従来の電子カメラにおいてはメモリーカード等の記録媒体から表示及び解析すべき画像ファイルをファイルシステムを介して読み出し解析を行うのが一般的である。そして、ヘッダの解析においてはヘッダを構成する複数の要素の解析の都度、次に解析すべき要素をファイルシステムを介して再度読み込むため読み込みのためのオーバーヘッドが複数回有り、ヘッダ解析の時間がかかるとう問題があった。   However, in such a conventional electronic camera, an image file to be displayed and analyzed from a recording medium such as a memory card is generally read and analyzed through a file system. In header analysis, each time the multiple elements that make up the header are analyzed, the next element to be analyzed is read again through the file system, so there are multiple overheads for reading, which takes time for header analysis. There was a problem.

一方、このように複数のヘッダ構成要素を解析の都度ファイルから読み込まない場合は、ヘッダの規格上保障されたサイズを一度にファイルシステムを介してメモリ上に読み込み解析する手法もあるが、この場合実際のヘッダサイズが小さいにもかかわらず必要以上のサイズを読み込むことになり読み込みのための時間がかかるという問題があった。   On the other hand, if multiple header components are not read from the file each time they are analyzed, there is a method of reading and analyzing the size guaranteed by the header standard into the memory at once via the file system. Despite the fact that the actual header size is small, there is a problem that it takes more time to read because it reads more than necessary.

本発明は上述した問題点を解決するためのものであり、ヘッダ解析のためのファイル読み込みのオーバーヘッドを最小限に抑えることができる画像処理装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus capable of minimizing the overhead of reading a file for header analysis.

上記目的を達成するために、本発明の画像処理装置は、可変長のヘッダを持つ構成をとるファイルを読み込み、その可変長のヘッダ部を解析するヘッダ解析手段を有する画像処理装置であって、前記ヘッダ解析手段はヘッダ解析のためのファイル読み込みサイズをファイルヘッダの規格上の最大長未満の固定長を一度に読み込みこれに対して解析を行い、ファイルヘッダの規格上の最大長未満の固定長での解析において、データサイズの不足により解析が完了しない場合は読み込みサイズを変更し再度読み込み後、再解析を行うことを特徴とする。   In order to achieve the above object, an image processing apparatus of the present invention is an image processing apparatus having a header analysis means for reading a file having a structure having a variable length header and analyzing the variable length header portion. The header analysis means reads the file reading size for header analysis at a time by reading a fixed length that is less than the maximum length in the file header standard, and analyzes the read length at a fixed length that is less than the maximum length in the file header standard. When the analysis is not completed due to a lack of data size, the read size is changed, the read is performed again, and the reanalysis is performed.

本発明によれば、ヘッダ解析のためのファイル読み込みのオーバーヘッドを最小限に抑えることができる。   According to the present invention, the overhead of file reading for header analysis can be minimized.

以下、図面を参照して本発明の実施の形態を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明に係る画像撮影及び再生装置のブロック構成を示す図である。図1において、100が画像撮影及び再生装置である。10は撮影レンズ、12は絞り機能を備えるシャッター、14は光学像を電気信号に変換する撮像素子、16は撮像素子14のアナログ信号出力をディジタル信号に変換するA/D変換器である。18は撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給するタイミング発生回路であり、メモリ制御回路22及びシステム制御回路50により制御される。20は画像処理回路であり、A/D変換器16からのデータ或いはメモリ制御回路22からのデータに対して所定の画素補間処理や色変換処理を行う。また、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてシステム制御回路50が露光制御手段40、測距制御手段42に対して制御を行う、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理を行っている。   FIG. 1 is a diagram showing a block configuration of an image capturing / reproducing apparatus according to the present invention. In FIG. 1, reference numeral 100 denotes an image capturing / reproducing apparatus. Reference numeral 10 denotes a photographing lens, 12 denotes a shutter having a diaphragm function, 14 denotes an image sensor that converts an optical image into an electrical signal, and 16 denotes an A / D converter that converts an analog signal output from the image sensor 14 into a digital signal. A timing generation circuit 18 supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26, and is controlled by the memory control circuit 22 and the system control circuit 50. An image processing circuit 20 performs predetermined pixel interpolation processing and color conversion processing on the data from the A / D converter 16 or the data from the memory control circuit 22. Further, the image processing circuit 20 performs predetermined calculation processing using the captured image data, and the system control circuit 50 controls the exposure control means 40 and the distance measurement control means 42 based on the obtained calculation result. TTL (through-the-lens) AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash pre-emission) processing are performed.

さらに、画像処理回路20においては、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行っている。22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、画像表示メモリ24、D/A変換器26、メモリ30、圧縮・伸長回路32を制御する。A/D変換器16のデータが画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器16のデータが直接メモリ制御回路22を介して、画像表示メモリ24或いはメモリ30に書き込まれる。また、再生においては、記録媒体200或いは210からメモリ30に読み出された圧縮画像データは、画像処理20によって伸張され、画像表示メモリ24に展開される。   Further, the image processing circuit 20 performs predetermined arithmetic processing using captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained arithmetic result. A memory control circuit 22 controls the A / D converter 16, the timing generation circuit 18, the image processing circuit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression circuit 32. The data of the A / D converter 16 is written into the image display memory 24 or the memory 30 via the image processing circuit 20 and the memory control circuit 22 or the data of the A / D converter 16 is directly passed through the memory control circuit 22. It is. In reproduction, the compressed image data read from the recording medium 200 or 210 to the memory 30 is decompressed by the image processing 20 and developed in the image display memory 24.

24は画像表示メモリ、26はD/A変換器、28はTFT LCD等から成る画像表示部であり、画像表示メモリ24に書き込まれた表示用の画像データはD/A変換器26を介して画像表示部28により表示される。画像表示部28を用いて撮像した画像データを逐次表示すれば、電子ファインダー機能を実現することが可能である。また、画像表示部28はOSDによる各種情報表示の重畳が可能であり、表示内容としては、シングルショット/連写撮影表示、セルフタイマー表示、圧縮率表示、記録画素数表示、記録枚数表示、表示画像通し番号表示、残撮影可能枚数表示、検索キーアイコン表示、シャッタースピード表示、絞り値表示、露出補正表示、フラッシュ表示、赤目緩和表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、記録媒体200及び210の着脱状態表示、通信I/F動作表示、日付け・時刻表示、等がある。これら各種情報表示のうち、撮影時条件及び設定は、撮影時に各情報を画像ヘッダに格納し、再生時に動画像ヘッダを解析抽出することにより取得ができ、再生時においても画像の撮影時の条件を参照することが可能となる。   Reference numeral 24 denotes an image display memory, 26 denotes a D / A converter, 28 denotes an image display unit including a TFT LCD, and the image data for display written in the image display memory 24 passes through the D / A converter 26. Displayed by the image display unit 28. If the image data captured using the image display unit 28 is sequentially displayed, the electronic viewfinder function can be realized. The image display unit 28 can superimpose various information displays by OSD. The display contents include single shot / continuous shooting display, self-timer display, compression rate display, recording pixel number display, recording number display, display. Image serial number display, remaining shot count display, search key icon display, shutter speed display, aperture value display, exposure compensation display, flash display, red-eye reduction display, macro shooting display, buzzer setting display, battery level display for clock, battery There are a remaining amount display, an error display, an information display by a multi-digit number, an attachment / detachment state display of the recording media 200 and 210, a communication I / F operation display, a date / time display, and the like. Among these various information displays, the shooting conditions and settings can be obtained by storing each information in the image header at the time of shooting and analyzing and extracting the moving image header at the time of playback. Can be referred to.

30は撮影した静止画像や動画像を格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶量を備えている。これにより、複数枚の静止画像を連続して撮影する連射撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みをメモリ30に対して行うことが可能となる。また、メモリ30はシステム制御回路50の作業領域としても使用することが可能である。32は適応離散コサイン変換(ADCT)等により画像データを圧縮伸長する圧縮・伸長回路であり、メモリ30に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータをメモリ30に書き込む。   Reference numeral 30 denotes a memory for storing captured still images and moving images, and has a sufficient storage capacity to store a predetermined number of still images and a predetermined time of moving images. Thereby, even in the case of continuous shooting or panoramic shooting in which a plurality of still images are continuously shot, it is possible to write a large amount of images to the memory 30 at high speed. The memory 30 can also be used as a work area for the system control circuit 50. Reference numeral 32 denotes a compression / decompression circuit that compresses and decompresses image data by adaptive discrete cosine transform (ADCT) or the like, reads an image stored in the memory 30, performs compression processing or decompression processing, and stores the processed data in the memory 30. Write to.

40は絞り機能を備えるシャッター12を制御する露光制御手段であり、フラッシュ48と連携することによりフラッシュ調光機能も有するものである。42は撮影レンズ10のフォーカシングを制御する測距制御手段、44は撮影レンズ10のズーミングを制御するズーム制御手段、46はバリアである保護手段102の動作を制御するバリア制御手段である。48はフラッシュであり、AF補助光の投光機能、フラッシュ調光機能も有する。露光制御手段40、測距制御手段42はTTL方式を用いて制御されており、撮像した画像データを画像処理回路20によって演算した演算結果に基づき、システム制御回路50が露光制御手段40、測距制御手段42に対して制御を行う。   Reference numeral 40 denotes an exposure control means for controlling the shutter 12 having a diaphragm function, and has a flash light control function in cooperation with the flash 48. Reference numeral 42 denotes a distance measuring control means for controlling the focusing of the photographing lens 10, reference numeral 44 denotes a zoom control means for controlling zooming of the photographing lens 10, and reference numeral 46 denotes a barrier control means for controlling the operation of the protection means 102 as a barrier. A flash 48 has an AF auxiliary light projecting function and a flash light control function. The exposure control means 40 and the distance measurement control means 42 are controlled using the TTL method. Based on the calculation result obtained by calculating the captured image data by the image processing circuit 20, the system control circuit 50 performs the exposure control means 40 and the distance measurement. Control is performed on the control means 42.

50は画像処理装置100全体を制御するシステム制御回路、52はシステム制御回路50の動作用の定数、変数、プログラム等を記憶するメモリである。54はシステム制御回路50でのプログラムの実行に応じて音声等を用いて動作状態やメッセージ等を表示するスピーカー等の表示部であり例えばLED、発音素子等の組み合わせにより構成されている。また、表示部54は、その一部の機能が光学ファインダー104内に設置されている。また、表示部54の表示内容のうち、光学ファインダー104内に表示するものとしては、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示、等がある。56は電気的に消去・記録可能な不揮発性メモリであり、例えばEEPROM等が用いられる。60、62、64及び70は、システム制御回路50の各種の動作指示を入力するための操作手段であり、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。   Reference numeral 50 denotes a system control circuit that controls the entire image processing apparatus 100, and reference numeral 52 denotes a memory that stores constants, variables, programs, and the like for operation of the system control circuit 50. Reference numeral 54 denotes a display unit such as a speaker that displays an operation state, a message, and the like using a voice or the like in accordance with execution of a program in the system control circuit 50, and is configured by a combination of, for example, an LED and a sounding element. In addition, the display unit 54 is partially installed in the optical viewfinder 104. Further, among the display contents of the display unit 54, what is displayed in the optical viewfinder 104 includes in-focus display, camera shake warning display, flash charge display, shutter speed display, aperture value display, exposure correction display, and the like. Reference numeral 56 denotes an electrically erasable / recordable nonvolatile memory such as an EEPROM. Reference numerals 60, 62, 64, and 70 are operation means for inputting various operation instructions of the system control circuit 50, and may be a single or a combination of a switch, a dial, a touch panel, pointing by line-of-sight detection, a voice recognition device, or the like. Composed.

ここで、これらの操作手段の具体的な説明を行う。60はモードダイアルスイッチで、電源オフ、自動撮影モード、撮影モード、パノラマ撮影モード、再生モード、マルチ画面再生・消去モード、PC接続モード等の各機能モードを切り替え設定することが出来る。62はシャッタースイッチSW1で、不図示のシャッターボタンの操作途中でONとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の動作開始を指示する。64はシャッタースイッチSW2で、不図示のシャッターボタンの操作完了でONとなり、撮像素子12から読み出した信号をA/D変換器16、メモリ制御回路22を介してメモリ30に画像データを書き込む露光処理、画像処理回路20やメモリ制御回路22での演算を用いた現像処理、メモリ30から画像データを読み出し、圧縮・伸長回路32で圧縮を行い、記録媒体200或いは210に画像データを書き込む記録処理という一連の処理の動作開始を指示する。   Here, a specific description of these operating means will be given. Reference numeral 60 denotes a mode dial switch, which can switch and set various function modes such as power-off, automatic shooting mode, shooting mode, panoramic shooting mode, playback mode, multi-screen playback / erase mode, and PC connection mode. Reference numeral 62 denotes a shutter switch SW1, which is turned ON during the operation of a shutter button (not shown), and performs AF (auto focus) processing, AE (auto exposure) processing, AWB (auto white balance) processing, EF (flash pre-flash) processing, and the like. Instruct to start operation. Reference numeral 64 denotes a shutter switch SW2, which is turned on when the operation of a shutter button (not shown) is completed, and an exposure process for writing a signal read from the image sensor 12 to the memory 30 via the A / D converter 16 and the memory control circuit 22. Development processing using operations in the image processing circuit 20 and the memory control circuit 22, recording processing for reading image data from the memory 30, compression in the compression / decompression circuit 32, and writing the image data to the recording medium 200 or 210. Instructs the start of a series of processing operations.

70は各種ボタンやタッチパネル等からなる操作部で、メニューボタン、セットボタン、マクロボタン、フラッシュ設定ボタン、単写/連写/セルフタイマー切り替えボタン、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像送り+(プラス)ボタン、再生画像送り−(マイナス)ボタン等がある。   Reference numeral 70 denotes an operation unit composed of various buttons, a touch panel, and the like. A menu button, a set button, a macro button, a flash setting button, a single shooting / continuous shooting / self-timer switching button, a menu moving + (plus) button, a menu moving − (minus). ) Button, playback image feed + (plus) button, playback image feed-(minus) button, and the like.

80は電源制御手段で、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成されており、電池の装着の有無、電池の種類、電池残量の検出を行い、検出結果及びシステム制御回路50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部へ供給する。82はコネクタ、84はコネクタ、86はアルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる電源手段である。   Reference numeral 80 denotes a power supply control means, which includes a battery detection circuit, a DC-DC converter, a switch circuit for switching a block to be energized, etc., and detects the presence / absence of a battery, the type of battery, the remaining battery level, In addition, the DC-DC converter is controlled based on an instruction from the system control circuit 50, and a necessary voltage is supplied to each unit including the recording medium for a necessary period. Reference numeral 82 denotes a connector, 84 denotes a connector, and 86 denotes a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like.

90及び94はメモリカードやハードディスク等の記録媒体とのインターフェース、92及び96はメモリカードやハードディスク等の記録媒体と接続を行うコネクタ、98はコネクタ92及び或いは96に記録媒体200或いは210が装着されているか否かを検知する記録媒体着脱検知手段である。なお、本実施形態では記録媒体を取り付けるインターフェース及びコネクタを2系統持つものとして説明している。もちろん、記録媒体を取り付けるインターフェース及びコネクタは、単数或いは複数、いずれの系統数を備える構成としても構わない。また、異なる規格のインターフェース及びコネクタを組み合わせて備える構成としても構わない。インターフェース及びコネクタとしては、PCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成して構わない。さらに、インタフェース90及び94、そしてコネクタ92及び96をPCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成した場合、LANカードやモデムカード、USBカード、IEEE1394カード、P1284カード、SCSIカード、PHS等の通信カード、等の各種通信カードを接続することにより、他のコンピュータやプリンタ等の周辺機器との間で画像データや画像データに付属した管理情報を転送し合うことが出来る。   90 and 94 are interfaces with a recording medium such as a memory card or a hard disk, 92 and 96 are connectors for connecting to a recording medium such as a memory card or a hard disk, and 98 is a recording medium 200 or 210 attached to the connector 92 or 96. Recording medium attachment / detachment detecting means for detecting whether or not the recording medium is present. In the present embodiment, it is assumed that there are two systems of interfaces and connectors for attaching a recording medium. Of course, the interface and the connector for attaching the recording medium may have a single or a plurality of systems and any number of systems. Moreover, it is good also as a structure provided with combining the interface and connector of a different standard. The interface and connector may be configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like that conforms to a standard. In addition, when the interfaces 90 and 94 and the connectors 92 and 96 are configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like, a LAN card, a modem card, a USB card, IEEE1394. Image data and management information attached to image data are transferred to and from peripheral devices such as other computers and printers by connecting various communication cards such as cards, P1284 cards, SCSI cards, and PHS communication cards. I can meet each other.

102は、画像処理装置100のレンズ10を含む撮像部を覆う事により、撮像部の汚れや破損を防止するバリアである保護手段である。104は光学ファインダであり、画像表示部28による電子ファインダー機能を使用すること無しに、光学ファインダのみを用いて撮影を行うことが可能である。110は通信手段で、RS232CやUSB、IEEE1394、P1284、SCSI、モデム、LAN、無線通信、等の各種通信機能を有する。112は通信手段110により画像処理装置100を他の機器と接続するコネクタ或いは無線通信の場合はアンテナである。   Reference numeral 102 denotes protection means that is a barrier that prevents the imaging unit from being soiled or damaged by covering the imaging unit including the lens 10 of the image processing apparatus 100. Reference numeral 104 denotes an optical viewfinder, which can take an image using only the optical viewfinder without using the electronic viewfinder function of the image display unit 28. A communication unit 110 has various communication functions such as RS232C, USB, IEEE1394, P1284, SCSI, modem, LAN, and wireless communication. Reference numeral 112 denotes a connector for connecting the image processing apparatus 100 to another device by the communication unit 110 or an antenna in the case of wireless communication.

200はメモリカードやハードディスク等の記録媒体である。記録媒体200は、半導体メモリや磁気ディスク等から構成される記録部202、画像処理装置100とのインタフェース204、画像処理装置100と接続を行うコネクタ206を備えている。210はメモリカードやハードディスク等の記録媒体である。記録媒体210は、半導体メモリや磁気ディスク等から構成される記録部212、画像処理装置100とのインタフェース214、画像処理装置100と接続を行うコネクタ216を備えている。   Reference numeral 200 denotes a recording medium such as a memory card or a hard disk. The recording medium 200 includes a recording unit 202 composed of a semiconductor memory, a magnetic disk, or the like, an interface 204 with the image processing apparatus 100, and a connector 206 for connecting to the image processing apparatus 100. Reference numeral 210 denotes a recording medium such as a memory card or a hard disk. The recording medium 210 includes a recording unit 212 composed of a semiconductor memory, a magnetic disk, and the like, an interface 214 with the image processing apparatus 100, and a connector 216 that connects to the image processing apparatus 100.

図2は、本発明の実施形態の操作部および表示部の模式図である。301は再生画像送り+(プラス)ボタン、302は再生画像送り−(マイナス)ボタン、303は画像及び各種情報表示が可能な表示部である。表示部303の詳細について説明する。307は画像通し番号である。308は再生画像の撮影日付である。306は撮影時の撮影モードを示している。305は画像の圧縮率および画素数を示している。304は画像処理装置内の記録枚数と現在の再生画像の順番を表示している。この例では画像処理装置内に280個の画像が存在し、現在の画像位置は54番目ということである。   FIG. 2 is a schematic diagram of an operation unit and a display unit according to the embodiment of the present invention. Reference numeral 301 denotes a playback image feed + (plus) button, 302 a playback image feed- (minus) button, and 303 a display unit capable of displaying images and various information. Details of the display unit 303 will be described. Reference numeral 307 denotes an image serial number. Reference numeral 308 denotes a shooting date of the reproduced image. Reference numeral 306 denotes a shooting mode at the time of shooting. Reference numeral 305 denotes an image compression rate and the number of pixels. Reference numeral 304 indicates the number of recordings in the image processing apparatus and the order of the current reproduced image. In this example, there are 280 images in the image processing apparatus, and the current image position is the 54th.

図2乃至図4を参照して、実施形態の動作を説明する。図3は画像ヘッダ解析処理のフローチャートである。   The operation of the embodiment will be described with reference to FIGS. FIG. 3 is a flowchart of the image header analysis process.

画像ヘッダ内各種情報取得のためにヘッダ解析の指示があったならば、ヘッダ解析のためのファイル読み込みサイズを規格最大長未満の固定長に設定して(S301)ヘッダ読み込み解析処理を行う(S302)。ヘッダ読み込み解析処理が正常に終了したならば(S303)、処理を抜ける。また、データ長不足以外の要因で解析が失敗したならば(S304)処理を抜ける。   If there is a header analysis instruction for acquiring various information in the image header, the file reading size for header analysis is set to a fixed length less than the standard maximum length (S301), and header reading analysis processing is performed (S302). ). If the header reading analysis process ends normally (S303), the process exits. If the analysis fails due to a factor other than the lack of data length (S304), the process is exited.

一方、データ長不足により解析に失敗した場合は(S304)、ヘッダ解析のためのファイル読み込みサイズを規格最大長にして(S305)、ヘッダ読み込み解析処理を行う(S306)。ヘッダ読み込み解析処理が正常に終了したならば(S307)処理を抜ける。また、データ長不足以外の要因で解析が失敗したならば(S308)処理を抜ける。   On the other hand, if the analysis fails due to a lack of data length (S304), the file reading size for header analysis is set to the standard maximum length (S305), and header reading analysis processing is performed (S306). If the header reading analysis process ends normally (S307), the process exits. If the analysis fails due to a factor other than the lack of data length (S308), the process is exited.

一方、データ長不足により解析に失敗した場合は(S308)、ヘッダ解析のためのファイル読み込みサイズをファイルサイズにして(S309)ヘッダ読み込み解析処理を行い(S310)処理を抜ける。   On the other hand, if the analysis fails due to a lack of data length (S308), the file reading size for header analysis is set to the file size (S309), header reading analysis processing is performed (S310), and the processing is exited.

なお。S301における固定長は、大分部の画像ファイルのヘッダを解析するのに十分であると想定される最小限の固定サイズとしているが、このサイズは例えば、解析の度に解析に必要とされた実際のヘッダサイズを算出し、これを反映し、最初の読み出しサイズであるS301における読み込みを変更しても良い。   Note that. The fixed length in S301 is the minimum fixed size that is assumed to be sufficient for analyzing the header of most image files. For example, this size is the actual size required for the analysis every time the analysis is performed. The header size may be calculated and reflected, and the reading in S301, which is the first reading size, may be changed.

また、S301における固定長は、大分部の画像ファイルのヘッダを解析するのに十分であると想定される最小限の固定サイズとしているが、このサイズは例えば、画像撮影時にヘッダを作成する際に、ヘッダサイズを算出し、これを反映し、最初の読み出しサイズであるS301における読み込みサイズを変更しても良い。   The fixed length in S301 is the minimum fixed size that is assumed to be sufficient for analyzing the header of most image files. For example, this size is used when creating a header at the time of image shooting. The header size may be calculated and reflected to change the read size in S301, which is the initial read size.

図4はヘッダ読み込み解析処理のフローチャートである。ヘッダ読み込み解析処理の指示があったならば、読み込みサイズを確認し(S401)、設定された読み込みサイズがファイルサイズ未満の場合は設定されたサイズを読み込みサイズとし(S402)、設定された読み込みサイズがファイルサイズ以上の場合は読み込みサイズをファイルサイズとして(S403)、ファイルの読み込みを行い、解析を行う(S404)。   FIG. 4 is a flowchart of the header reading analysis process. If there is an instruction for header reading analysis processing, the reading size is confirmed (S401). If the set reading size is smaller than the file size, the set size is set as the reading size (S402), and the set reading size is set. Is larger than the file size, the read size is set as the file size (S403), the file is read and analyzed (S404).

解析に成功したならば(S405)解析成功を応答し(S407)、処理を終了する。読み込みサイズ不足により解析が失敗したならば(S406)読み込みサイズ不足を応答し(S408)処理を終了する。読み込みサイズ不足以外の要因で解析に失敗したならばヘッダ解析不能を応答し(S409)処理を終了する。   If the analysis is successful (S405), the analysis success is returned (S407), and the process is terminated. If the analysis fails due to insufficient reading size (S406), a response indicating insufficient reading size is returned (S408), and the process is terminated. If the analysis fails due to a factor other than the read size shortage, a header analysis failure is returned (S409), and the process is terminated.

画像のヘッダ情報を解析する際のファイル読み込みにおいて、最初の読み込みサイズをヘッダ記載内容にかかわらず予め設定された大部分のヘッダが解析完了すると予測される固定長とし読み込みを行い、ヘッダ解析を行う。   When reading the file when analyzing the header information of the image, the initial read size is read as a fixed length that is expected to be completed when most of the headers set in advance are analyzed, and header analysis is performed. .

これにより大多数のヘッダは、一度の最小限の読み込みにより解析が完了するため、解析を行いながらその都度ファイルを読み込む場合にかかるオーバーヘッド(ファイルのシーク等)が不要となり高速にヘッダの解析が可能となる。   As a result, analysis of the majority of headers is completed with a minimum of one reading, so there is no need for overhead (such as file seeking) when reading a file each time analysis is performed, and header analysis is possible at high speed. It becomes.

以上のフローチャートによれば、固定長の読み込みデータにおいてヘッダ解析がデータ長不足により解析できなかった場合は、ヘッダの規格最大サイズにおいて読み込みを行い、ヘッダ解析を行う。これにより固定長の読み込みにおいて解析不能であったヘッダも、2回目の読み込みにより解析が完了するため、解析を行いながらその都度ファイルを読み込む場合にかかるオーバーヘッド(ファイルのシーク等)が不要となり高速にヘッダの解析が可能となる。また。大部分のヘッダは固定長の最小限の読み込みにより解析が完了するためこの処理を行うことも稀である。   According to the above flowchart, when header analysis cannot be performed due to insufficient data length in the read data having a fixed length, the header is analyzed by reading at the standard maximum size of the header. As a result, even if headers that could not be analyzed during fixed-length reading are analyzed by the second reading, the overhead (such as seeking the file) required for reading the file each time while performing analysis is not required, resulting in high speed. Header analysis is possible. Also. This analysis is rare because most headers are analyzed with a minimum of fixed-length reading.

また、ヘッダの規格最大サイズにおいての読み出しデータにおいてヘッダ解析がデータ長不足により解析できなかった場合は、ファイル全体の読み込みを行い、ヘッダ解析を行う。   In addition, when the header analysis cannot be performed due to a lack of data length in the read data at the header standard maximum size, the entire file is read and the header analysis is performed.

これによりヘッダの規格最大サイズの読み込みにおいて解析不能であったヘッダも、3回目の読み込みにより解析が完了するため、解析を行いながらその都度ファイルを読み込む場合にかかるオーバーヘッド(ファイルのシーク等)が不要となり高速にヘッダの解析が可能となる。また、この処理を行うのはヘッダが規格違反等のイレギュラーな場合でありこの処理を行うことも稀ではあるが、このような規格違反のファイルも最大限解析を行うことができる。   As a result, the header that could not be analyzed when reading the standard maximum size of the header is analyzed by the third reading, so the overhead (such as seeking the file) required for reading the file each time while analyzing is unnecessary It becomes possible to analyze the header at high speed. Further, this processing is performed when the header is irregular, such as a violation of the standard, and it is rare to perform this processing, but a file that violates the standard can be analyzed to the maximum extent.

以上説明したように、本実施形態によれば、ヘッダ解析のためのファイル読み込みサイズをファイルヘッダの規格上の最大長未満の固定長を一度に読み込みこれに対して解析を行い、ファイルヘッダの規格上の最大長未満の固定長での解析において、データサイズの不足により解析が完了しない場合は読み込みサイズを変更し再度読み込み後、再解析を行う。これにより、多くの場合においてヘッダ解析のためのファイル読み込みのオーバーヘッドを最小限に抑えることができる。   As described above, according to the present embodiment, the file reading size for header analysis is read at a time, and a fixed length less than the maximum length in the file header standard is read and analyzed. In the analysis with a fixed length less than the maximum length above, if the analysis is not completed due to a lack of data size, the read size is changed, read again, and then reanalyzed. Thereby, in many cases, the overhead of reading a file for header analysis can be minimized.

また、規格上の最大長未満の固定長は平均的なヘッダがほぼ収まるサイズに予め設定されており、多くの場合においてヘッダ解析のためのファイル読み込みが一度で完了し解析のためのオーバーヘッドを最小限に抑えることができる。   In addition, the fixed length less than the maximum length in the standard is set in advance so that the average header can be accommodated in most cases, and in many cases, the file reading for header analysis is completed at once and the overhead for analysis is minimized. To the limit.

また、規格上の最大長未満の固定長は画像撮影時作成されるヘッダサイズにより算出するので、最適な読み込みサイズを画像処理装置自らが算出することができる。   In addition, since the fixed length less than the maximum length according to the standard is calculated based on the header size created at the time of image capture, the image processing apparatus itself can calculate the optimum read size.

また、最大長未満の固定長はヘッダ解析時に再計算するこので、最適な読み込みサイズを画像処理装置自らが算出することができる。   In addition, since the fixed length less than the maximum length is recalculated at the time of header analysis, the image processing apparatus itself can calculate the optimum reading size.

また、再解析はサイズを変えて複数回行うので、多くの画像において最適な規格上の最大長未満の固定長に収まらないヘッダが存在した場合でもエラー無くヘッダの解析を行うことができる。   In addition, since reanalysis is performed a plurality of times while changing the size, even if there is a header that does not fit in a fixed length less than the maximum length of the optimum standard in many images, the header can be analyzed without error.

また、再解析の読み込みサイズはファイルヘッダの規格上の最大長とすることで、規格に合致しているファイルの解析においては最大2回目の読み込みにおいて解析が完了する。   In addition, the reanalysis read size is set to the maximum length according to the standard of the file header, and in the analysis of the file conforming to the standard, the analysis is completed at the maximum of the second read.

また、再解析の読み込みサイズはファイルサイズであることを特徴とする画像処理装置を提供することが可能となり、規格に反しているファイルにおいても解析を行うことが可能となる。   In addition, it is possible to provide an image processing apparatus characterized in that the reanalysis read size is a file size, and it is possible to perform analysis even on a file that violates the standard.

本発明の一実施形態の構成ブロック図である。It is a configuration block diagram of one embodiment of the present invention. 本実施形態の表示操作部の模式図である。It is a schematic diagram of the display operation part of this embodiment. 本実施形態のヘッダ解析処理のフローチャートである。It is a flowchart of the header analysis process of this embodiment. 本実施形態のヘッダ読み込み解析処理のフローチャートである。It is a flowchart of the header reading analysis process of this embodiment.

符号の説明Explanation of symbols

10 撮影レンズ
12 シャッター
14 撮像素子
16 A/D変換器
18 タイミング発生回路
20 画像処理回路
22 メモリ制御回路
24 画像表示メモリ
26 D/A変換器
28 画像表示部
30 メモリ
32 画像圧縮・伸長回路
40 露光制御手段
42 測距制御手段
44 ズーム制御手段
46 バリア制御手段
48 フラッシュ
50 システム制御回路
52 メモリ
54 表示部
56 不揮発性メモリ
60 モードダイアルスイッチ
62 シャッタースイッチSW1
64 シャッタースイッチSW2
70 操作部
80 電源制御手段
82 コネクタ
84 コネクタ
86 電源手段
90 インタフェース
92 コネクタ
94 インタフェース
96 コネクタ
98 記録媒体着脱検知手段
100 画像処理装置
102 保護手段
104 光学ファインダ
110 通信手段
112 コネクタ(またはアンテナ)
200 記録媒体
202 記録部
204 インタフェース
206 コネクタ
210 記録媒体
212 記録部
214 インタフェース
216 コネクタ
DESCRIPTION OF SYMBOLS 10 Shooting lens 12 Shutter 14 Image pick-up element 16 A / D converter 18 Timing generation circuit 20 Image processing circuit 22 Memory control circuit 24 Image display memory 26 D / A converter 28 Image display part 30 Memory 32 Image compression / decompression circuit 40 Exposure Control means 42 Distance measurement control means 44 Zoom control means 46 Barrier control means 48 Flash 50 System control circuit 52 Memory 54 Display unit 56 Non-volatile memory 60 Mode dial switch 62 Shutter switch SW1
64 Shutter switch SW2
DESCRIPTION OF SYMBOLS 70 Operation part 80 Power supply control means 82 Connector 84 Connector 86 Power supply means 90 Interface 92 Connector 94 Interface 96 Connector 98 Recording medium attachment / detachment detection means 100 Image processing apparatus 102 Protection means 104 Optical finder 110 Communication means 112 Connector (or antenna)
200 Recording Medium 202 Recording Unit 204 Interface 206 Connector 210 Recording Medium 212 Recording Unit 214 Interface 216 Connector

Claims (7)

可変長のヘッダを持つ構成をとるファイルを読み込み、その可変長のヘッダ部を解析するヘッダ解析手段を有する画像処理装置であって、
前記ヘッダ解析手段はヘッダ解析のためのファイル読み込みサイズをファイルヘッダの規格上の最大長未満の固定長を一度に読み込みこれに対して解析を行い、
ファイルヘッダの規格上の最大長未満の固定長での解析において、データサイズの不足により解析が完了しない場合は読み込みサイズを変更し再度読み込み後、再解析を行うことを特徴とする画像処理装置。
An image processing apparatus having a header analysis means for reading a file having a configuration having a variable length header and analyzing the variable length header portion,
The header analysis means reads a file read size for header analysis at a time, and analyzes a fixed length less than the maximum length in the file header standard,
An image processing apparatus characterized in that, in an analysis with a fixed length less than the maximum length in the file header standard, if the analysis is not completed due to a lack of data size, the read size is changed, the read is performed again, and the reanalysis is performed.
請求項1に記載の画像処理装置であって、前記規格上の最大長未満の固定長は、平均的なヘッダがほぼ収まるサイズに予め設定された画像処理装置。   The image processing apparatus according to claim 1, wherein the fixed length less than the maximum length according to the standard is set in advance to a size that can accommodate an average header. 請求項1に記載の画像処理装置であって、前記規格上の最大長未満の固定長は、画像撮影時作成されるヘッダサイズにより算出することを特徴とする画像処理装置。   The image processing apparatus according to claim 1, wherein the fixed length less than the maximum length according to the standard is calculated based on a header size created at the time of image capturing. 請求項1に記載の画像処理装置であって、前記規格上の最大長未満の固定長は、前記ヘッダ解析時に再計算することを特徴とする画像処理装置。   The image processing apparatus according to claim 1, wherein the fixed length less than the maximum length in the standard is recalculated at the time of the header analysis. 請求項1に記載の画像処理装置であって、前記再解析はサイズを変えて複数回行うことを特徴とする画像処理装置。   The image processing apparatus according to claim 1, wherein the reanalysis is performed a plurality of times at different sizes. 請求項1に記載の画像処理装置であって、前記再解析の読み込みサイズはファイルヘッダの規格上の最大長であることを特徴とする画像処理装置。   The image processing apparatus according to claim 1, wherein the reanalysis read size is a maximum length according to a standard of a file header. 請求項1に記載の画像処理装置であって、前記再解析の読み込みサイズはファイルサイズであることを特徴とする画像処理装置。   The image processing apparatus according to claim 1, wherein the reanalysis read size is a file size.
JP2004292603A 2004-10-05 2004-10-05 Image processing device Withdrawn JP2006109063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004292603A JP2006109063A (en) 2004-10-05 2004-10-05 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004292603A JP2006109063A (en) 2004-10-05 2004-10-05 Image processing device

Publications (1)

Publication Number Publication Date
JP2006109063A true JP2006109063A (en) 2006-04-20

Family

ID=36378268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004292603A Withdrawn JP2006109063A (en) 2004-10-05 2004-10-05 Image processing device

Country Status (1)

Country Link
JP (1) JP2006109063A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009038693A (en) * 2007-08-03 2009-02-19 Nikon Corp Image input apparatus and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009038693A (en) * 2007-08-03 2009-02-19 Nikon Corp Image input apparatus and program

Similar Documents

Publication Publication Date Title
EP1770988B1 (en) Image display apparatus and method
US8345143B2 (en) Image capturing apparatus and image capturing apparatus control method
US20070188647A1 (en) Image pickup apparatus with display apparatus, and display control method for display apparatus
JP2008160792A (en) Electronic camera and control method thereof
JP2008079137A (en) Image processing apparatus, control method therefor, computer program, and storage medium
JP2009177358A (en) Image processing apparatus, image processing method, and program
JP2005221771A (en) Imaging apparatus and function display method
JP2011130198A (en) Imaging apparatus, control method thereof and program
JP4612874B2 (en) Imaging apparatus and control method thereof
JP4498169B2 (en) Image processing apparatus and control method thereof
JP4574382B2 (en) Information retrieval apparatus, control method therefor, program, and storage medium
JP4298534B2 (en) Image display apparatus and method
JP2006039203A (en) Imaging apparatus and control method
JP2006109063A (en) Image processing device
JP5288962B2 (en) Imaging apparatus and control method thereof
JP4574426B2 (en) Data processing apparatus and data processing method
JP4307277B2 (en) Image processing apparatus and image processing method
JP4701297B2 (en) Image processing apparatus, method, and recording medium
JP2006203689A (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2005110128A (en) Imaging apparatus and imaging control method
JP4717762B2 (en) Image reproducing apparatus, control method for image reproducing apparatus, program, and recording medium
JP4298536B2 (en) Image processing apparatus and computer program
JP2005130392A (en) Image processing device
JP2005051347A (en) Imaging device
JP2007214774A (en) Imaging device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080108