JPH03267882A - Picture coder - Google Patents

Picture coder

Info

Publication number
JPH03267882A
JPH03267882A JP2066119A JP6611990A JPH03267882A JP H03267882 A JPH03267882 A JP H03267882A JP 2066119 A JP2066119 A JP 2066119A JP 6611990 A JP6611990 A JP 6611990A JP H03267882 A JPH03267882 A JP H03267882A
Authority
JP
Japan
Prior art keywords
compression
recording
code
image
mode
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.)
Granted
Application number
JP2066119A
Other languages
Japanese (ja)
Other versions
JP2951995B2 (en
Inventor
Migaku Yamagami
山上 琢
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
Priority to JP6611990A priority Critical patent/JP2951995B2/en
Application filed by Canon Inc filed Critical Canon Inc
Priority to EP91302265A priority patent/EP0448311B1/en
Priority to EP99200168A priority patent/EP0917350B1/en
Priority to DE69133320T priority patent/DE69133320T2/en
Priority to EP03076983A priority patent/EP1353494A3/en
Priority to DE69131542T priority patent/DE69131542T2/en
Publication of JPH03267882A publication Critical patent/JPH03267882A/en
Priority to US08/465,715 priority patent/US5903677A/en
Application granted granted Critical
Publication of JP2951995B2 publication Critical patent/JP2951995B2/en
Priority to US09/892,400 priority patent/US20010035981A1/en
Priority to US10/455,400 priority patent/US7130074B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To realize a recorder offering convenient usage by providing a means applying fixed length compression, a variable length compression and a means selecting either of the two means. CONSTITUTION:At application of power, the fixed length mode is set and an operation switch 9 of a display device 8 is used to select the fixed length/ variable length code by the user. In the case of the fixed length mode, an idle capacity of a medium is divided by the code quantity and the result is displayed as a remaining recordable picture number. In the case of the variable length mode, the idle capacity of the medium is divided by a standard code quantity or a maximum code quantity and the remaining recordable picture number is displayed. Thus, the switch 9 by which the user selects either the fixed length length code mode or the variable length code mode is provided thereby selecting which of picture quality or recordable picture number is to be traded off and improving the use of convenience.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 〔従来の技術〕 従来、画像圧縮技術を用い画像データをディジタル圧縮
し、半導体メモリや磁気DiskにDigitalDa
taで記録することを目的とするシステムとしては例え
ばADCT方式として知られている様に記録画像枚数を
保証するために画面単位での圧縮コードを固定長にする
画像圧縮方式の研究がなされている。
[Detailed Description of the Invention] [Industrial Application Field] [Prior Art] Conventionally, image compression technology is used to digitally compress image data, and digital data is stored in a semiconductor memory or magnetic disk.
As a system that aims to record in ta, for example, research is being conducted on an image compression method known as the ADCT method, which uses a fixed length compression code for each screen in order to guarantee the number of recorded images. .

〔発明が解決しようとしている課題〕[Problem that the invention is trying to solve]

しかしこれらの方式において、例えば1bit/pix
elに圧縮するようにした場合もともと情報量の少ない
画像については劣化が少ないが全ての画像についてその
圧縮画像の画質を保証することはできない。画質を保証
し、かつ符号量の固定長化を保証するためには方式にも
依るが例えば輝度、色信号合わせて8bit/pixe
+ぐらいにしか圧縮できない。
However, in these methods, for example, 1 bit/pixel
If compressed to el, images with a small amount of information will suffer less deterioration, but the image quality of the compressed images cannot be guaranteed for all images. In order to guarantee image quality and fixed length code, for example, 8 bits/pixel for brightness and color signals, depending on the method.
It can only be compressed to about +.

一方、画像圧縮符号量の固定長化を行わずに発生符号量
を画像に依存させて可変長にすることを許せば画質を保
証して圧縮することは可能である。
On the other hand, if the amount of generated code is allowed to vary depending on the image without making the image compression code amount a fixed length, it is possible to perform compression while guaranteeing image quality.

但しこの場合総記録可能枚数を保証することはできない
However, in this case, the total number of recordable sheets cannot be guaranteed.

従って、記録枚数を保証するシステムでは画質は保証で
きず、画質を保証するシステムでは記録枚数は保証でき
なかった。よって従来のどちらかのシステムではユーザ
ーにとって使い勝手の悪いシステムしか構成できなかっ
た。
Therefore, a system that guarantees the number of recorded images cannot guarantee image quality, and a system that guarantees image quality cannot guarantee the number of recorded images. Therefore, with either of the conventional systems, it was only possible to configure a system that was inconvenient for users.

本発明はかかる点に鑑みてなされたものであり、とを目
的とする。
The present invention has been made in view of these points, and has the following objects.

〔課題を解決するための手段〕[Means to solve the problem]

本発明はかかる目的を達成するため圧縮符号化した発生
符号量を画像に依らず固定、或は限定する固定長圧縮を
行う手段、画像に応じて発生符号量が異なる可変長圧縮
を行う手段、前記2つの手段を選択する手段とを有する
In order to achieve such an object, the present invention provides a means for performing fixed-length compression in which the amount of generated code that is compressed and encoded is fixed or limited regardless of the image, a means for performing variable-length compression in which the amount of generated code is different depending on the image, and means for selecting the two means.

〔実施例〕〔Example〕

第1図は本発明の一実施例の構成を示すブロック図であ
る。なお本発明に直接関係しないカメラの他の部分例え
ば絞り、シャッタ等は勿論設けられている。第1図にお
いてレンズ1により捕えられた被写体の光学像は後方に
位置する撮像デバイス2゜例えばCharge−Cou
pled  Device (CCD)によって映像電
気信号に変換される。撮像デバイス2は制御部7によっ
て与えられる制御信号に応答して被写体の光学像に対応
する電荷の蓄積、映像信号の読み出しを行う。読み出さ
れた映像信号は、A/D変換器3によってディジタル信
号に変換される。なお撮像デバイス2とA/D変換器3
との間には、図示はしていないが、ガンマ補正色信号の
形成分離、ホワイトバランス処理等の映像信号を調整す
る手段等が設けられる。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Note that other parts of the camera that are not directly related to the present invention, such as an aperture and a shutter, are of course provided. In FIG. 1, the optical image of the subject captured by the lens 1 is captured by an imaging device 2° located at the rear, for example, a Charge-Couble.
The image is converted into a video electrical signal by a predetermined device (CCD). The imaging device 2 responds to a control signal given by the control unit 7 to accumulate charges corresponding to an optical image of a subject and read out a video signal. The read video signal is converted into a digital signal by the A/D converter 3. Note that the imaging device 2 and A/D converter 3
Although not shown, means for adjusting the video signal, such as forming and separating gamma-corrected color signals and performing white balance processing, is provided between the two.

ディジタル信号に変換された映像信号は画像メモリ4に
蓄えられる。
The video signal converted into a digital signal is stored in the image memory 4.

圧縮符号化回路5は画像メモリ4から読み出される画像
データを圧縮符号化し記録装置6に出力する。
The compression encoding circuit 5 compresses and encodes the image data read from the image memory 4 and outputs it to the recording device 6.

尚、制御部7は記録装置6を通じて例えばMS−DO5
のコマンドによって記録再生を制御する様に構成されて
いる。圧縮方式としては、例えば後述する様な画像信号
をDCT変換し、その後にエントロピー符号化を行う様
な可変長符号或いは固定長符号を発生する圧縮方式を実
行する。
In addition, the control unit 7 uses the recording device 6 to record, for example, an MS-DO5.
It is configured to control recording and playback using commands. As a compression method, for example, a compression method that generates a variable length code or a fixed length code such as DCT transform of an image signal and subsequent entropy encoding as described later is executed.

又、圧縮符号を記録装置6に出力せずに圧縮符号量を計
数する機能を持つ。かかる機能のため第1図に示す回路
では圧縮符号化されたデータを記録装置6に出力する前
に符号量を計数する計数回路16を有している。
It also has a function of counting the amount of compressed codes without outputting the compressed codes to the recording device 6. For such a function, the circuit shown in FIG. 1 includes a counting circuit 16 for counting the amount of code before outputting the compression-encoded data to the recording device 6.

記録装置6は例えば半導体メモリ或いはテープ状記録媒
体を有し制御部と情報のやりとりができ、任意のディジ
タルデータについて記録媒体上の任意の物理アドレスへ
の書き込み、読み出しができる。
The recording device 6 has, for example, a semiconductor memory or a tape-shaped recording medium, and can exchange information with a control section, and can write and read arbitrary digital data to and from an arbitrary physical address on the recording medium.

又、記録媒体の空容量を計数する機能を持つ。It also has a function to count the free space on the recording medium.

制御部7は装置2〜6までの機能をM#し全体の機能を
統合する。特に記録装置を通じて記録媒体における画像
データファイルの管理を行なうことができる。
The control unit 7 integrates the functions of the devices 2 to 6 into M# and integrates the entire functions. In particular, image data files on a recording medium can be managed through the recording device.

すなわち制御部7は、計算機システムにおいて実装され
ているDO3(Disk  Operating  S
ystem)が行なっているようにファイル情報を記録
媒体上の物理アドレスに結びつける働きをする。従って
制御部7は記録媒体上にファイル(=画像圧縮データ)
がどのように記録されているかを管理でき従って空容量
も管理できる。もし圧縮符号を少量の記録単位で複数個
に分割して格納する必要があるならば、制御部は記録単
位ごとに媒体上の物理アドレスとデータ長を指定して記
録装置6に圧縮符号を記録させる。制御部7は一つの画
像ファイルが記録媒体上の複数個の位置に配置するとき
、どのように配置されたかを示す情報も記録媒体上に記
録させる。
That is, the control unit 7 is a DO3 (Disk Operating System) implemented in the computer system.
system), it functions to link file information to a physical address on a recording medium. Therefore, the control unit 7 stores a file (=image compressed data) on the recording medium.
You can manage how the information is recorded, and therefore you can also manage the free space. If it is necessary to divide the compressed code into multiple small recording units and store them, the control unit specifies the physical address and data length on the medium for each recording unit and records the compressed code in the recording device 6. let When one image file is placed at a plurality of positions on the recording medium, the control unit 7 also causes information indicating how the image file is placed to be recorded on the recording medium.

MMIF (マンマシンインターフェース)8は、レリ
ーズ(SWI、5W2)その他の後述のスイッチを動作
するための操作部材9及びFinder内表示、外部L
CD表示、ブザー等の表示装置10を含む。
The MMIF (man-machine interface) 8 includes an operating member 9 for operating the release (SWI, 5W2) and other switches described below, a display in the Finder, and an external L.
It includes a display device 10 such as a CD display and a buzzer.

実際に撮影する際の撮影可能枚数の表示は以下の手順で
行なわれる。
The number of shots that can be taken during actual shooting is displayed in the following steps.

かかる手順について第3図のフローチャートを用いて説
明する。
This procedure will be explained using the flowchart shown in FIG.

■ まず、フローチャートの最初においては制御部7は
記録装置6に対してDIR,CHK、  DSKという
コマンドを出力し空き容量を記録装置がら出力させる(
Sl)。撮影にあたりシャッターボタンが半押しくSW
I  ON)の状態になったら、制御部はレンズlを駆
動しピント合わせを行い、絞り、シャッターなどを動作
させ、撮像デバイスを露光(S5) して画像情報をメ
モリ取り込み(S7)圧縮符号化(S9)までの作業を
行なわせる。そして圧縮符号計数回路16により画像デ
ータの符号量を計数させる。一方で記録装置によって空
容量を計数させ両者の値から、これから撮影しようとす
る画像に対する撮影可能枚数を計算する(Sll)。例
えば空容量を画像データの符号量に依り除算することに
よって撮影可能枚数を計算する。そしてその計算によっ
て得られた値をファインダー内に設けられた表示装置1
0により使用者に知らせる(S13)。
■ First, at the beginning of the flowchart, the control unit 7 outputs commands DIR, CHK, and DSK to the recording device 6 to cause the recording device to output the free space (
SL). SW to press the shutter button halfway to take a picture
When the state is turned on (ON), the control unit drives the lens l to focus, operates the aperture, shutter, etc., exposes the imaging device (S5), and captures the image information into memory (S7) and compresses and encodes it. The operations up to (S9) are performed. Then, the compression code counting circuit 16 counts the code amount of the image data. On the other hand, the free space is counted by the recording device, and from both values, the number of images that can be taken from now on is calculated (Sll). For example, the number of images that can be taken is calculated by dividing the free space by the code amount of image data. The value obtained by the calculation is displayed on a display device 1 installed in the viewfinder.
0 to notify the user (S13).

かかる表示はSWlをオンしている間継続する(S15
゜517)もちろん実際に撮影、記録される画像は、さ
らにシャッターボタンを深く押した時にはS17からS
19. S21. S23にフローは分岐し、前述の5
5゜S7.S9と同様のステップが実行され、あらため
て取り込まれる。
This display continues while SWl is turned on (S15
゜517) Of course, the image actually taken and recorded will change from S17 to S when you press the shutter button even deeper.
19. S21. The flow branches to S23, and the above-mentioned 5
5°S7. A step similar to S9 is executed and the data is imported again.

■ 連写モードを選択しない場合にはS25からフロー
はS3へ分岐し、選択した場合、連写が進むにつれ記録
媒体の空容量は減り、一画面の画像データの符号量も変
化することが考えられるから、連写の1コマ目を記録し
てからは、一画面の記録が終了するごとに空容量と次に
記録する画像符号量の計数を行ない(S23)、減少し
てゆ(撮影可能枚数をファインダー内に連続的に表示す
る(S29)。
■ If the continuous shooting mode is not selected, the flow branches from S25 to S3; if the continuous shooting mode is selected, the free space on the recording medium decreases as continuous shooting progresses, and the amount of code for one screen of image data also changes. Therefore, after recording the first frame of continuous shooting, each time recording of one screen is completed, the free space and the amount of image code to be recorded next are counted (S23), and the amount of free space is counted (S23). The number of sheets is continuously displayed in the finder (S29).

即ち本実施例においてはSW2が押し続けられておりか
つ連続記録モードを選択している場合、画像を次々と露
光して、メモリへ取り込み、符号化、記録を行なう。そ
の時には、直前に記録した画像の符号量とその時の記録
媒体の空容量から残り記録可能枚数を計算して減少残り
記録可能枚数をファインダー内に連続的に逐次表示する
That is, in this embodiment, when SW2 is kept pressed and the continuous recording mode is selected, images are exposed one after another, taken into memory, encoded, and recorded. At that time, the remaining recordable number is calculated from the code amount of the image recorded immediately before and the free space of the recording medium at that time, and the reduced remaining recordable number is continuously displayed in the finder.

次に第3図におけるS21. S23のステップにおけ
る詳しいフローチャートについて第4図を用いて説明す
る。
Next, S21 in FIG. A detailed flowchart of step S23 will be explained using FIG. 4.

第4図は第1図におけるS23.即ちメモリ4に画像デ
ータを記憶した後に行われる動作を示す。
FIG. 4 shows S23 in FIG. That is, it shows the operation performed after image data is stored in the memory 4.

第4図においてまず、メモリ4に書き込まれた画像信号
を読み出して符号化回路5により圧縮符号化を行い、計
数回路16によって圧縮符号化されたデータの計数を行
い(S41)、該圧縮符号量と記録装置6内の記録媒体
の空容量との比較を行い(S43)、空容量が十分あれ
ば再びメモリ4から画像信号を読み出し圧縮符号化を行
って、記録装置6にデータを出力し、記録を行う様にゲ
ート18を制御する。
In FIG. 4, first, the image signal written in the memory 4 is read out and compression-encoded by the encoding circuit 5, and the compression-encoded data is counted by the counting circuit 16 (S41). and the free space of the recording medium in the recording device 6 (S43), and if there is enough free space, the image signal is read out from the memory 4 again, compressed and encoded, and the data is output to the recording device 6. The gate 18 is controlled to perform recording.

この場合制御部7は画像メモリ4に対して画像データの
読み出し、圧縮符号化回路5に対して圧縮符号の出力、
記録装置6に対して圧縮符号の記録、及びケート18へ
、ゲート開を指示する。記録装置6に対しては記録単位
ごとに媒体上の物理アドレスとデータ長を指定して圧縮
符号を記録させるようにする。記録装置6は制御部7か
ら記録の指示がない限りは圧縮符号化回路5に対してデ
ータの出力を要求しないので圧縮符号化回路5、画像メ
モリ4の動作は中断される。従って制御部7は、記録装
置に対して、ファイルフォーマットに従いながら記録単
位ごとに媒体上の物理アドレスとデータ長を指定し、記
録動作を指示してゆくことによって圧縮符号化回路5、
画像メモリ4の動作をコントロールしながら記録を行な
うことができる。
In this case, the control unit 7 reads out image data from the image memory 4, outputs a compression code to the compression encoding circuit 5,
The recording device 6 is instructed to record the compressed code, and the gate 18 is instructed to open the gate. The recording device 6 is configured to record a compression code by specifying a physical address on the medium and a data length for each recording unit. Since the recording device 6 does not request the compression encoding circuit 5 to output data unless there is a recording instruction from the control section 7, the operations of the compression encoding circuit 5 and the image memory 4 are interrupted. Therefore, the control unit 7 specifies the physical address and data length on the medium for each recording unit according to the file format, and instructs the recording device to perform a recording operation.
Recording can be performed while controlling the operation of the image memory 4.

全ての圧縮符号が記録された時点で記録動作は完了する
The recording operation is completed when all compressed codes are recorded.

尚、第2図は上述した制御部7と記録装置6との間の通
信手順を示す図である。
Incidentally, FIG. 2 is a diagram showing a communication procedure between the control section 7 and the recording device 6 described above.

第2図においてD −Reqは記録装置6がら制御部7
へのデータの出力要求であり、D−Ackは圧縮符号化
回路5から記録装置6へ出力されているデータが有効で
あることを示す信号であり、制御部7がら記録装置6へ
出力されている。DataD(、〜D7は圧縮符号化回
路5から記録装置6へ出力される8ビツトパラレルのデ
ータ出力である。
In FIG. 2, D-Req is the control unit 7 from the recording device 6.
D-Ack is a signal indicating that the data being output from the compression encoding circuit 5 to the recording device 6 is valid; There is. DataD(, ~D7 is 8-bit parallel data output from the compression encoding circuit 5 to the recording device 6.

第2図においては制御部7と記録装置6とが互いにD−
Req、D−Ackをやりとりしながらデータを1バイ
ト毎に出力する状態を示す。
In FIG. 2, the control unit 7 and the recording device 6 are
This shows a state in which data is output byte by byte while exchanging Req and D-Ack.

第2図においてデータを受は取る側即ち記録装置6(以
下Receiver)は信号D−ReqをHighから
Lowにすることにより、データを出力する側即ち符号
化回路5(以下Transmitter)にデータを出
力することを要求する。TransmitterはD 
−Re qがLowになったことを検知するとデータバ
ス(Do”D7)上にデータを出力し、値が確定した時
点でD−AckをHighがらLowにする。
In FIG. 2, the side that receives and receives data, that is, the recording device 6 (hereinafter referred to as Receiver), outputs data to the side that outputs data, that is, the encoding circuit 5 (hereinafter referred to as Transmitter), by changing the signal D-Req from High to Low. request that Transmitter is D
When it detects that -Req goes low, it outputs data onto the data bus (Do"D7), and when the value is determined, it changes D-Ack from high to low.

ReceiverはD−AckがLowになった時点で
データバス上の信号を引きとり、D−ReqをH4gh
にもどす。TransmitterはD −ReqがH
ighになった時点でデータバス上への出力をやめかつ
D−AckをHighにもどす。
The Receiver takes over the signal on the data bus when D-Ack goes low, and sets D-Req to H4gh.
Return to. Transmitter D-Req is H
When it becomes high, the output to the data bus is stopped and D-Ack is returned to high.

以上のReq−AckのハンドシェイクによってTra
nsmitter、  Receiver双方の都合に
合わせてデータの転送が行なわれる。従って圧縮符号化
回路5は固定の転送レートで圧縮符号を発生する必要は
なく、画像の内容によって符号長が変化することは何の
問題も引き起さない。
By the above Req-Ack handshake, Tra
Data transfer is performed according to the convenience of both the nsmitter and the receiver. Therefore, the compression encoding circuit 5 does not need to generate compression codes at a fixed transfer rate, and the fact that the code length changes depending on the content of the image does not cause any problems.

又、S43においてS47にフローが分岐する場合には
制御部はマンマシーンインタフェース8のうちのファイ
ンダ内表示警告装置10に対して、記録媒体の空容量が
足りないために記録ができないでいることを表示させて
、ユーザに対し、次の3つの処理のどれかを選択するよ
うに促す。
Further, when the flow branches to S47 in S43, the control unit notifies the finder display warning device 10 of the man-machine interface 8 that recording is not possible due to insufficient free space on the recording medium. The user is prompted to select one of the following three processes.

即ち (1)記録動作を中止する (2)記録媒体を交換する (3)現在装着されている記録媒体中の画像ファイルの
うち1つを消去する。
That is, (1) stop the recording operation, (2) replace the recording medium, and (3) erase one of the image files on the currently installed recording medium.

このため制御部7はS49. S51.S53のステッ
プを実行する。
For this reason, the control unit 7 performs S49. S51. Execute step S53.

(1)がユーザによって選択された場合S49から全て
の動作は中止される。
If (1) is selected by the user, all operations are stopped from S49.

(2)がユーザによって選択された場合、つまり記録装
置6が媒体の交換を検知して制御部7にそれを報告した
場合、S43の処理へ戻る。
If (2) is selected by the user, that is, if the recording device 6 detects the replacement of the medium and reports it to the control unit 7, the process returns to S43.

(3)がユーザによって選択された場合、制御部7は表
示装置10に何枚の画像が存在するかを表示しく555
)何番目の画像を消去するかをユーザに入力させるよう
促す。ユーザが操作スイッチを用いて消去すべき画像の
番号を入力する(S57)と制御部7は、その画像ファ
イルを消去しく559)、S43へ戻る。
When (3) is selected by the user, the control unit 7 displays how many images are present on the display device 10 555
) Prompt the user to enter which image to delete. When the user inputs the number of the image to be deleted using the operation switch (S57), the control unit 7 deletes the image file (559), and returns to S43.

尚、媒体が交換されたことを検知するためには、特開昭
61−182669号公報に示されているように、記録
部がメカ的に交換の有無を検知するような方式でもよい
。制御部7は記録装置6を介してかかる有無の情報につ
いてアクセスできる。
In order to detect that the medium has been replaced, a method may be used in which the recording section mechanically detects whether or not the medium has been replaced, as disclosed in Japanese Patent Application Laid-Open No. 182669/1983. The control unit 7 can access information on the presence/absence of such information via the recording device 6.

以上説明した第4図のフローチャートへ制御によれば可
変長の符号を発生する圧縮方式を用いてもユーザにとっ
て画像の記録が何らかの形で保証されるため使い勝手の
良く、かつ画質を保証できるシステムを提供できる。
According to the control shown in the flowchart of FIG. 4 explained above, even if a compression method that generates variable length codes is used, image recording is guaranteed for the user in some way, so a system that is easy to use and can guarantee image quality is created. Can be provided.

次に第5図を用いて第3図のSll、 S13において
実行される撮影可能枚数の表示方法について説明する。
Next, using FIG. 5, a method of displaying the number of shots that can be taken, which is executed in Sll and S13 in FIG. 3, will be explained.

制御部7は例えば前述した空容量検出のためのコマンド
を出力し記録装置6により計数させた記録媒体の空容量
を計数させ(S61)、あらかじめ記憶していた可変長
符号化方式の圧縮率の代表値と空容量から記録媒体にあ
と何枚の画像データが記録できるかを計算する(363
)。
For example, the control unit 7 outputs the above-mentioned command for detecting free space, causes the recording device 6 to count the free space of the recording medium (S61), and calculates the compression ratio of the variable length encoding method stored in advance. Calculate how many more images can be recorded on the recording medium from the representative value and free space (363
).

符号化方式として例えば“公開特許公報昭63−124
680符号化方式”の方法を採用すると符号長は、平均
2bit/ピクセル、悪くても4.5bit/ピクセル
程度であるから、S65において平均符号長2bit/
ピクセルで計算した撮影可能枚数を標準残り枚数とし、
4.5bit/ピクセルで計算した撮影可能枚数を最低
保証枚数として、両者を表示装置(8)に表示する。か
かる表示は一方だけを行ってもよいことは勿論である。
For example, the encoding method is
680 encoding method, the code length is on average 2 bits/pixel, at worst about 4.5 bits/pixel, so in S65 the average code length is 2 bits/pixel.
The number of shots that can be taken calculated in pixels is the standard number of remaining shots,
Both of them are displayed on the display device (8) with the number of images that can be taken calculated at 4.5 bits/pixel as the minimum guaranteed number of images. Of course, only one of these displays may be performed.

表示装置8は例えばLiquid  CrystalD
isplay (LCD)やLight−Emitti
ng Diocle(LED)などがよく、カメラ上部
やファインダー内のどちらかもしくは両方に表示できる
ものとする。
The display device 8 is, for example, Liquid Crystal D.
isplay (LCD) and Light-Emitti
ng Diocle (LED), etc., and can be displayed on the top of the camera, in the viewfinder, or both.

以上説明した本実施例では、記録媒体の空容量を計数す
る手段を持ち、可変長符号化における圧縮符号量の代表
値を記憶しておくことにより、計数した空容量と符号量
の代表値から記録媒体の撮影可能枚数を計算できる機能
を有し、計算によって得られた撮影可能枚数の情報を表
示する手段を持つことにより、記録媒体の撮影可能な画
面数の標準値と最低保証値のどちらか、あるいは両方を
表示することのできる可変長符号化ディジタル画像記録
装置が示される。
The present embodiment described above has means for counting the free space of the recording medium, and by storing the representative value of the compressed code amount in variable length encoding, the counted free space and the representative value of the code amount can be calculated from the counted free space and the representative value of the code amount. By having a function that can calculate the number of shots that can be taken by a recording medium, and by having a means to display information on the number of shots that can be taken by the calculation, it is possible to determine whether the number of shots that can be taken by a recording medium is the standard value or the minimum guaranteed value. A variable length encoded digital image recording device is shown that can display either or both.

更に以上説明した本実施例に依れば、第3図のSlにお
いて記録媒体の空容量を検出した後に、第5図にその詳
細を示すSll、S13のステップにおいて再び記録媒
体の空容量を検出しているのでSWIをオンした時のみ
ならず、たとえ連続記録中であっ/ ても記録媒体の空容量を逐次確認することが出来る。
Furthermore, according to the present embodiment described above, after detecting the free space of the recording medium at step S1 in FIG. 3, the free space of the recording medium is detected again at step S13, details of which are shown in FIG. This allows you to check the free space on the recording medium not only when the SWI is turned on, but also during continuous recording.

又、本実施例に依れば可変長符号化圧縮方式を用いても
、使用者に画像の記録量すなわち、記録媒体における撮
影可能な残り枚数を保証し知らせることができるので使
い勝手の良くかつ画質を保証できる。
Furthermore, according to this embodiment, even if variable length encoding compression is used, it is possible to guarantee and inform the user of the amount of images to be recorded, that is, the number of remaining images that can be taken on the recording medium, making it easy to use and improving image quality. can be guaranteed.

本実施例における可変長符号と固定長符号の両方の符号
を発生し得る圧縮方式として例えば“ISO/JTCI
/SC2/WG8  N800″に記載されているDC
T (離散コサイン変換)を用いる適応形の圧縮方式(
以下ADCT方式と称す)がある。かかるADCT方式
では符号化パラメータFによって圧縮率を制御すること
ができる。Fと圧縮率との関係は第7図に示すように圧
縮ビットレートはFの単調減少関数となる。第7図にお
いて(a)と(b)は夫々異なった画像に対するFとビ
ットレートとの関係を示している。第7図(a)、(b
)から分るようにFとビットレートの関係は画像の内容
に依存しているが必ず単調減少となる。従ってFを調整
しながら数回の試行錯誤によって所望のビットレートに
合わせることが可能である。
In this embodiment, an example of a compression method that can generate both a variable length code and a fixed length code is "ISO/JTCI
DC listed in /SC2/WG8 N800″
An adaptive compression method using T (discrete cosine transform) (
(hereinafter referred to as ADCT method). In such an ADCT method, the compression rate can be controlled by the encoding parameter F. The relationship between F and compression rate is as shown in FIG. 7, where the compression bit rate is a monotonically decreasing function of F. In FIG. 7, (a) and (b) show the relationship between F and bit rate for different images, respectively. Figure 7(a),(b)
), the relationship between F and bit rate depends on the content of the image, but always decreases monotonically. Therefore, it is possible to match the desired bit rate by several trials and errors while adjusting F.

本実施例では第1図に示す圧縮符号化回路5は前述の“
ISO・・・”に記載されている方式で可変長圧縮方式
と固定長圧縮方式とを選択することが出来るものである
In this embodiment, the compression encoding circuit 5 shown in FIG.
It is a method described in "ISO..." that allows you to select between a variable length compression method and a fixed length compression method.

又、かかる選択について制御部7はマンマシンインター
フェース9を介して知ることができる。
Further, the control unit 7 can know about such selection via the man-machine interface 9.

ユーザが記録枚数優先モードを選択しマンマシンインタ
ーフェースの中のレリーズボタンを押したことを制御部
が知ると制御部7は撮影デバイス2、AD変換器3、画
像メモリ4を制御して画像メモリ中に被写体の画像をデ
ィジタルデータとして画像メモリに蓄える。
When the control unit learns that the user has selected the recording number priority mode and pressed the release button in the man-machine interface, the control unit 7 controls the photographing device 2, AD converter 3, and image memory 4 to store images. The image of the subject is stored as digital data in the image memory.

制御部は圧縮符号化回路5にパラメータFを渡し画像メ
モリの画像デー5夕を圧縮符号化回路5に圧縮させて圧
縮符号を計数させる。このときは符号化装置は記録装置
に圧縮符号は書き込まず一画面の符号量を計算するだけ
である。そしてFを変化させながら所望の符号量になる
まで数回の試行錯誤を繰返す。
The control section passes the parameter F to the compression encoding circuit 5 to cause the compression encoding circuit 5 to compress the image data stored in the image memory and count the compression codes. At this time, the encoding device does not write the compression code to the recording device, but only calculates the amount of code for one screen. Then, trial and error is repeated several times while changing F until the desired code amount is achieved.

所望の符号量を発生させるFが求められると、制御部7
は圧縮符号化回路8に対し、そのFを与え、かつ記録装
置6に圧縮符号を出力するよう指令して、圧縮動作を再
度開始させる。そして、制御部7は記録装置6に対し圧
縮符号の記録を指令する。以上の処理で画面単位の固定
長化がなされた圧縮符号が記録装置に記録される。
When F that generates the desired amount of code is determined, the control unit 7
gives this F to the compression encoding circuit 8 and instructs the recording device 6 to output a compressed code, thereby restarting the compression operation. Then, the control unit 7 instructs the recording device 6 to record the compressed code. Through the above processing, the compressed code that has been made into a fixed length for each screen is recorded on the recording device.

次に画質優先のときは制御部は圧縮符号化回路8に渡す
パラメータFを十分小さくして画質劣化が起らないよう
にする。すなわちFの値はある値に固定されており、記
録枚数優先のときの最初のFを求める作業は行われない
。そして、圧縮符号化に対して画像メモリ上の画像デー
タを圧縮させて記録装置6に出力させ、記録装置6に対
しては圧縮符号の記録を1行わせる。
Next, when priority is given to image quality, the control section makes the parameter F passed to the compression encoding circuit 8 sufficiently small to prevent image quality deterioration. That is, the value of F is fixed at a certain value, and the work of determining the first F when the number of recording sheets is prioritized is not performed. Then, the image data on the image memory is compressed for compression encoding and outputted to the recording device 6, and the recording device 6 is caused to record one compression code.

本実施例においてかかる圧縮モードとして固定長/可変
長のモードを切り換えたときは残り可能枚数や設定可能
な連続記録速度等も変更する様にしている。すなわち固
定長の場合は、符号量は固定されているので、記録可能
枚数は媒体空容量を符号量で除算すれば正確に計算でき
る。一方、可変長モードでは正確な可能枚数の計算は不
可能である。又、固定長モードにおいては複数回の反復
処理を必要とするため記録するまでの時間は可変長モー
ド時よりもより長い時間を必要とする。従って設定可能
な連続記録速度は低下する。これらのことはカメラの表
示内容や、連続記録速度の設定に影響を与える。
In this embodiment, when the compression mode is switched between fixed length/variable length mode, the number of remaining sheets, the settable continuous recording speed, etc. are also changed. In other words, in the case of a fixed length, the amount of code is fixed, so the number of recordable sheets can be calculated accurately by dividing the free capacity of the medium by the amount of code. On the other hand, in variable length mode, it is impossible to accurately calculate the possible number of sheets. Further, in the fixed length mode, since a plurality of repetition processes are required, the time required for recording is longer than in the variable length mode. Therefore, the settable continuous recording speed decreases. These things affect the camera's display content and continuous recording speed settings.

上記二点の問題点に対して本実施例の制御部7は可変長
モード時においては標準的な符号量或は最大値で記録可
能容量を除算して記録可能枚数を求め表示する。固定長
モード時には設定可能な連続記録速度の上限を小さくす
るなどの処理が必要となる。
In response to the above two problems, the control unit 7 of this embodiment calculates and displays the number of recordable sheets by dividing the recordable capacity by the standard code amount or the maximum value in the variable length mode. In the fixed length mode, processing such as reducing the upper limit of the continuous recording speed that can be set is required.

上記の処理をフローチャートに表現すると第6図のよう
になる。まず電源ON (SL)でdeficultの
設定値として、例えば固定長モードとする。又連続速度
を最低値とする(S3)。
The above processing can be expressed as a flowchart as shown in FIG. First, when the power is turned on (SL), the set value of defect is set to, for example, fixed length mode. Also, the continuous speed is set to the lowest value (S3).

通常は端子Sで使用者が固定長/可変長モードを変更す
る。又は、連続速度を変更するかを待ち、それぞれの場
合に応じて処理が行われる。
Normally, the user changes the fixed length/variable length mode using terminal S. Alternatively, it waits to see if the continuous speed should be changed, and processes are performed depending on each case.

固定長/可変長モードの変更があった場合5tep5に
進む。固定長モードのときは、符号量で媒体の空容量を
除算し、残り記録可能枚数として表示する。そして現在
の連続可能速度を固定長モード時の連続速度の上限値と
する(S7)。又一方可変長モード時にはS9において
標準的な符号量或は最大値で媒体の空容量を除算し、残
り記録可能枚数として表示する。そして、現在の連続記
録可能速度を可変長モード時の連続記録速度の上限値と
する(Sll)。
If there is a change in fixed length/variable length mode, proceed to step 5. In fixed length mode, the free capacity of the medium is divided by the code amount and displayed as the number of remaining recordable sheets. The current possible continuous speed is then set as the upper limit of the continuous speed in the fixed length mode (S7). On the other hand, in the variable length mode, the free capacity of the medium is divided by the standard code amount or the maximum value in S9, and the result is displayed as the number of remaining recordable sheets. Then, the current continuous recording speed is set as the upper limit value of the continuous recording speed in the variable length mode (Sll).

5tep20において、現在の連続記録速度設定値が連
続記録可能速度の範囲を越えていたら、連続記録速度設
定値をかかる範囲の上限速度とする(S22)。
In step 520, if the current continuous recording speed setting value exceeds the range of possible continuous recording speeds, the continuous recording speed setting value is set as the upper limit speed of the range (S22).

そして連続スピードを表示しく524)端子Sに戻る。Then, display the continuous speed (524) and return to terminal S.

又、S2において連続記録速度変更の指示があった場合
、S30からより具体的には使用者が連続記録速度変更
ボタンを押し、連続記録速度を一単位上げることを指示
した場合にはS33の処理に進み、現在の連続記録速度
設定値を一単位速くする。そして現在の連続記録可能速
度と比較して(S35)、もし越えていたら、連続速度
を最低値にリセットする(S37)。そして連続速度設
定値を表示して端子Sに戻る(S39)。
Further, if there is an instruction to change the continuous recording speed in S2, and more specifically from S30, if the user presses the continuous recording speed change button and instructs to increase the continuous recording speed by one unit, the process in S33 is performed. Go to , and increase the current continuous recording speed setting by one unit. Then, it is compared with the current continuous recordable speed (S35), and if it exceeds, the continuous speed is reset to the lowest value (S37). Then, the continuous speed setting value is displayed and the process returns to terminal S (S39).

以上説明した本実施例によれば、使用者が固定長圧縮モ
ードか可変長圧縮モードかを選択する手段をもつことに
よって画質か記録枚数の何れがを優先させるかを選択で
きるようにして使い勝手を向上させることが出来る。
According to the embodiment described above, by providing a means for the user to select between the fixed length compression mode and the variable length compression mode, the user can select whether to give priority to image quality or the number of recording sheets, thereby improving usability. It can be improved.

更には本実施例の固定長の圧縮モードでは圧縮動作が完
了するまでは所定時間が必要であるので連続速度を高く
設定することか出来る。
Furthermore, in the fixed length compression mode of this embodiment, a predetermined time is required until the compression operation is completed, so the continuous speed can be set high.

又固定長の圧縮モードか可変長の圧縮モードかに応じて
自動的に連続記録速度の上限を修正しているので確実な
圧縮動作を行うことが出来る。
Furthermore, since the upper limit of the continuous recording speed is automatically corrected depending on whether the compression mode is fixed length or variable length, reliable compression operation can be performed.

又、本実施例における圧縮符号化方式の可変長符号化方
式としては他の種々の方式を採ってもよい。例えばDC
T符号化したデータに対してエントロピー符号化する場
合であってもよく、固定長圧縮と可変長圧縮の両方式が
切り換えればよい。したがって両方式は同じ方式でなく
てもよい。
Furthermore, various other methods may be used as the variable length encoding method of the compression encoding method in this embodiment. For example, DC
Entropy encoding may be performed on T-encoded data, and it is sufficient to switch between fixed-length compression and variable-length compression. Therefore, both methods do not have to be the same method.

又、本実施例において記録装置6としてはMS−DO5
のOSシステムで駆動されるデータ記憶装置としたがこ
れに限らず他の種類の媒体、例えば半導体メモリやテー
プ状媒体であってもよい。
Further, in this embodiment, the recording device 6 is MS-DO5.
Although the data storage device is driven by an OS system, the present invention is not limited to this, and other types of media may be used, such as semiconductor memory or tape-shaped media.

なお、記録媒体としてフロッピーディスクを考えると垂
直磁化記録方式を用いれば2インチのフロッピーディス
クで5M  Eyteの容量を実現する事は十分可能で
ある。この場合、本実施例は、標準55枚最低22枚の
TVフィールド画像をフロッピーディスクに対して保証
することができる。
When considering a floppy disk as a recording medium, it is quite possible to realize a capacity of 5M Eyes with a 2-inch floppy disk if a perpendicular magnetization recording method is used. In this case, the present embodiment can guarantee a standard 55 to at least 22 TV field images to the floppy disk.

又本実施例においては記憶手段の記憶可能容量について
の情報を発生する手段として制御部7から記録装置6へ
のDIR,CHKDSKというコマンドとしたが、これ
に限らず記憶手段の未記録部、即ち媒体としてテープを
用いた場合にはテープ上の本記録エリアを制御部7が実
際に検出する様にしてもよい。
Further, in this embodiment, commands such as DIR and CHKDSK are sent from the control unit 7 to the recording device 6 as a means for generating information regarding the storage capacity of the storage means, but the commands are not limited to this, and the unrecorded portion of the storage means, i.e. When a tape is used as the medium, the control section 7 may actually detect the main recording area on the tape.

〔発明の効果〕〔Effect of the invention〕

以上説明した様に本発明に依れば可変長符号化と固定長
符号化とを選択出来る様にしたので使い勝手の良い記録
装置を提供出来る。
As explained above, according to the present invention, it is possible to select between variable length encoding and fixed length encoding, thereby providing a recording device that is easy to use.

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

第1図は本発明の一実施例の装置の構成を示すブロック
図、 第2図は第1図に示す装置の動作を示すタイミングチャ
ート、 第3図は第1図に示す装置の動作を示すフローチャート
、 第4図、第5図は夫々第3図のフローチャートの一部の
詳細を示すフローチャート、 第6図は本発明の別の実施例のフローチャート、第7図
は第6図の実施例を説明する図である。 1:レンズ 2  :  C0D 3:A/D変換器 4:画像メモリ :圧縮符号化回路 ;記録装置 二制御部 、表示装置 :操作スイッチ 第2図 &:f; ratt (brt F!l−Pizel 
)O 0 昂 D (a−) (b)
FIG. 1 is a block diagram showing the configuration of a device according to an embodiment of the present invention, FIG. 2 is a timing chart showing the operation of the device shown in FIG. 1, and FIG. 3 is a block diagram showing the operation of the device shown in FIG. 1. Flowcharts, FIGS. 4 and 5 are flowcharts showing some details of the flowchart in FIG. 3, FIG. 6 is a flowchart of another embodiment of the present invention, and FIG. 7 is a flowchart showing the embodiment of FIG. 6. FIG. 1: Lens 2: C0D 3: A/D converter 4: Image memory: Compression encoding circuit; Recording device 2 control unit, display device: Operation switch Fig. 2 &: f; ratt (brt F!l-Pizel
)O 0 昂D (a-) (b)

Claims (1)

【特許請求の範囲】[Claims] (1)圧縮符号化した発生符号量を画像に依らず固定、
或は限定する固定長圧縮を行う手段、画像に応じて発生
符号量が異なる可変長圧縮を行う手段、前記2つの手段
を選択する手段とを有することを特徴とする画像符号化
装置。
(1) The amount of code generated by compression encoding is fixed regardless of the image.
An image encoding device comprising means for performing fixed-length compression, or means for performing variable-length compression in which the amount of generated code varies depending on the image, and means for selecting one of the two means.
JP6611990A 1990-03-16 1990-03-16 Image coding device Expired - Fee Related JP2951995B2 (en)

Priority Applications (9)

Application Number Priority Date Filing Date Title
JP6611990A JP2951995B2 (en) 1990-03-16 1990-03-16 Image coding device
EP99200168A EP0917350B1 (en) 1990-03-16 1991-03-15 Image encoding and recording apparatus and method
DE69133320T DE69133320T2 (en) 1990-03-16 1991-03-15 Image encoding and recording device and method
EP03076983A EP1353494A3 (en) 1990-03-16 1991-03-15 Image encoding and recording apparatus
EP91302265A EP0448311B1 (en) 1990-03-16 1991-03-15 Image encoding apparatus and method
DE69131542T DE69131542T2 (en) 1990-03-16 1991-03-15 Image encoding device and method
US08/465,715 US5903677A (en) 1990-03-16 1995-06-06 Image encoding and recording apparatus
US09/892,400 US20010035981A1 (en) 1990-03-16 2001-06-26 Image encoding and recording apparatus
US10/455,400 US7130074B2 (en) 1990-03-16 2003-06-06 Image encoding and recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6611990A JP2951995B2 (en) 1990-03-16 1990-03-16 Image coding device

Publications (2)

Publication Number Publication Date
JPH03267882A true JPH03267882A (en) 1991-11-28
JP2951995B2 JP2951995B2 (en) 1999-09-20

Family

ID=13306671

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6611990A Expired - Fee Related JP2951995B2 (en) 1990-03-16 1990-03-16 Image coding device

Country Status (1)

Country Link
JP (1) JP2951995B2 (en)

Also Published As

Publication number Publication date
JP2951995B2 (en) 1999-09-20

Similar Documents

Publication Publication Date Title
JP3630851B2 (en) Imaging recording device
US11004474B2 (en) Recording apparatus, reproducing apparatus, recording/reproducing apparatus, image pickup apparatus, recording method, and program
US20130188920A1 (en) Recording apparatus
US20060153539A1 (en) Motion image recording device
JP3870123B2 (en) Image processing apparatus, image processing method, program, and recording medium
KR100564186B1 (en) Electronic camera
US20070058947A1 (en) Recording apparatus and recording medium managing method
EP0917350B1 (en) Image encoding and recording apparatus and method
CN100568909C (en) Camera head and image capture method
JP3683462B2 (en) Movie display device
JP7349815B2 (en) Imaging device and its control method and program
JPH03267882A (en) Picture coder
JPH03267881A (en) Picture recorder
JP3082925B2 (en) Image recording device
JP2007104292A (en) Photographing device, file management method, and file management program
JP2006221697A (en) Optical disk recording apparatus and optical disk recording method
JPH03267863A (en) Recorder
JP4075319B2 (en) Digital camera, video playback method and video recording method
JP3524833B2 (en) Image playback device
JP3840125B2 (en) Image processing device
KR100251957B1 (en) Digital video camcorder for having selective snapshot function for previous scene and emboding method thereof
JP6520566B2 (en) Image recording device
JP5511739B2 (en) Recording apparatus and recording method
JP2006246111A (en) Photographing apparatus
JP2001238179A (en) Image recording and reproducing apparatus

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080709

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080709

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090709

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees