JPH04114564A - Picture signal recording device - Google Patents

Picture signal recording device

Info

Publication number
JPH04114564A
JPH04114564A JP2234986A JP23498690A JPH04114564A JP H04114564 A JPH04114564 A JP H04114564A JP 2234986 A JP2234986 A JP 2234986A JP 23498690 A JP23498690 A JP 23498690A JP H04114564 A JPH04114564 A JP H04114564A
Authority
JP
Japan
Prior art keywords
compression
code
image
length compression
signal recording
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
JP2234986A
Other languages
Japanese (ja)
Other versions
JP2941913B2 (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 JP2234986A priority Critical patent/JP2941913B2/en
Application filed by Canon Inc filed Critical Canon Inc
Priority to US07/753,660 priority patent/US5216518A/en
Priority to DE69131809T priority patent/DE69131809T2/en
Priority to EP99200315A priority patent/EP0926883B1/en
Priority to DE69133412T priority patent/DE69133412T2/en
Priority to EP91307986A priority patent/EP0474444B1/en
Publication of JPH04114564A publication Critical patent/JPH04114564A/en
Priority to US08/021,103 priority patent/US5384644A/en
Priority to US08/339,664 priority patent/US5745251A/en
Application granted granted Critical
Publication of JP2941913B2 publication Critical patent/JP2941913B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

PURPOSE:To suppress the deterioration of a picture and to efficiently compress the picture by once recording plural pictures on a recording medium and permitting an expanding means to decode a recorded picture signal so as to compress by a fixed length again. CONSTITUTION:An A/D converer 3 converts an image pickup signal which an image pickup device 2 reads into a digital signal and the video signal is accumulated in a picture memory 4. A compression encoding/ decoding device 5 encodes picture data which is read from the picture memory 4 and outputs it to a recording device 6 or decodes a code which is read from the recording medium by the recording device and accumulates it in the picture memory 4. A control part 7 transfers a parameter F to the compression encoding/ decoding device 5, compresses picture data in the picture memory 4 and counts a code quantity. When the desired code quantity is generated, the control part gives the parameter Fa to the compression encoding/decoding device 5 again and instructs the recording device 6 to output a compression code. Thus, the deterioration of the picture is suppressed and the picture can efficiently be compressed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画像信号を圧縮符号化して記録する画像信号記
録装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image signal recording device that compresses and encodes an image signal and records it.

〔従来の技術〕 従来画像圧縮技術として例えばISO,/JTCI、S
C2,/WG8  N800 (以下、′文献1」とい
う)に記載されているADCT方式(Adaptive
  DiscreteCosine  Transfo
rm/以下17A D CT方式」という)がある。こ
の方式は数回の試行錯誤を行う反復処理によって画像に
依らず一定の符号量に圧縮する機能を有する。この調節
機能について以下に簡単に説明する。
[Prior art] Examples of conventional image compression technologies include ISO, /JTCI, and S
C2,/WG8 N800 (hereinafter referred to as 'Reference 1')
DiscreteCosineTransfo
rm/hereinafter referred to as "17A D CT method"). This method has the function of compressing an image to a constant code amount regardless of the image by repeating the process of trial and error several times. This adjustment function will be briefly explained below.

ADCT方式ではある符号化パラメータFによって圧縮
率(すなわち符号量)を制御できる。第3図に示すよう
に圧縮率はFの単調減少関数となる。第3図において(
a)と(b)は異なる画像に対するFと圧縮率との関係
を示している。第3図(a)(b)よりわかるようにF
と圧縮率の関係は画像の内容に依存しているが必ずFの
単調減少関数となる。従ってFを調節しながら数回の試
行錯誤によって所望の圧縮率(符号量)に収束させるこ
とが出来る。
In the ADCT method, the compression rate (that is, the amount of code) can be controlled by a certain encoding parameter F. As shown in FIG. 3, the compression ratio is a monotonically decreasing function of F. In Figure 3 (
Figures a) and (b) show the relationship between F and compression rate for different images. As can be seen from Figure 3 (a) and (b), F
The relationship between F and compression rate depends on the content of the image, but is always a monotonically decreasing function of F. Therefore, it is possible to converge to a desired compression ratio (code amount) by trial and error several times while adjusting F.

但しFの値はDCT係数の量子化サイズに比例しており
、大きくすればより粗に量子化することになるので画質
が劣化する。
However, the value of F is proportional to the quantization size of the DCT coefficient, and if it is increased, the quantization will be made more coarsely, which will deteriorate the image quality.

ADCT方式では画像によって符号量が変化してもよけ
れば反復処理を行わずにFを固定して圧縮することも可
能である。従ってFの値を十分小さく固定して圧縮すれ
ば、符号量は大きくなりかつ画像によって異なってしま
うがどの画像も圧縮による劣化は少なくなる。
In the ADCT method, if it is acceptable for the code amount to vary depending on the image, it is also possible to fix F and compress without performing repetitive processing. Therefore, if compression is performed while fixing the value of F to a sufficiently small value, the amount of code will be large and will vary depending on the image, but any image will suffer less deterioration due to compression.

ここで、反復処理を行い符号量の制御を伴う圧縮方式を
固定長圧縮(以下FLC: Fixed  Lengt
hCoding)、反復処理を行わず符号量の制御を伴
わない圧縮方式を可変長圧縮(以下VLC: Vari
ableLength  Coding)とする。
Here, fixed length compression (FLC: Fixed Length Compression) is a compression method that involves repeated processing and control of code amount.
hCoding), variable length compression (hereinafter referred to as VLC) is a compression method that does not involve repetitive processing and control of the amount of code.
availableLengthCoding).

〔発明が解決しようとしている課題I VLCにおいては画像に依存して符号量が可変長になる
、すなわち符号量は画像の内容を反映した量になるので
パラメータFの値を十分小さくして符号量を多(すれば
圧縮による劣化を究めて小さくすることが可能である。
[Problem to be solved by the invention I In VLC, the code amount is variable length depending on the image, that is, the code amount is an amount that reflects the content of the image, so the value of the parameter F is sufficiently small to reduce the code amount. By doing so, it is possible to minimize the deterioration caused by compression.

半面可変長であるから記録媒体当たりの記録可能な枚数
が不定になってしまうという欠点がある。
Since the length of one side is variable, there is a drawback that the number of sheets that can be recorded per recording medium is unstable.

一方FLCにおいては固変長であるから記録媒体当たり
の記録可能な枚数を保証することが可能である。半面画
像の内容に関係なく一定の符号量に圧縮してしまうので
画像によっては著しく劣化してしまうという欠点がある
On the other hand, since FLC has a fixed variable length, it is possible to guarantee the number of recordable sheets per recording medium. Since the half-image is compressed to a fixed amount of code regardless of its content, it has the disadvantage that some images may be significantly degraded.

そこで、本発明は画像の劣化を抑えて、効率良く画像の
圧縮を行うことのできる画像信号記録装置を提供するこ
とを目的とする。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide an image signal recording device that can efficiently compress images while suppressing image deterioration.

〔課題を解決するための手段及び作用〕上記課題を解決
するため、本発明の画像信号記録装置は、可変長圧縮を
行う第1の圧縮手段と、固定長圧縮を行う第2の圧縮手
段と、前記第1又は第2の圧縮手段によって圧縮された
画像信号を伸長す・る伸長手段を脩え、一旦記録媒体上
に前記第1の圧縮手段によって複数枚の画像を記録した
のち、記録された画像信号を前記伸長手段によって復号
して、再度前記第2の圧縮手段によって固定長圧縮を行
うことを特徴とする特 〔実施例] 本発明は上述のVLC,FLCの2つの圧縮の利点を生
かし、画質劣化の少なく、かつ記録媒体当たりの記録枚
数を保証することの出来る記録方式を提案するものであ
る。
[Means and operations for solving the problems] In order to solve the above problems, the image signal recording device of the present invention includes a first compression means that performs variable length compression, and a second compression means that performs fixed length compression. , a decompressing means for decompressing the image signal compressed by the first or second compressing means is used, a plurality of images are once recorded on the recording medium by the first compressing means, and then the images are unrecorded. [Embodiment] The present invention takes advantage of the two advantages of the above-mentioned VLC and FLC compression. This paper proposes a recording method that takes full advantage of this technology, reduces image quality deterioration, and guarantees the number of sheets per recording medium.

本発明では、基本的には先ずVLCによって画像を記録
する。このとき画質劣化の少ないようにFの値は十分小
さく選ばれる。そして、VLCによって記録された複数
の画像の総符号量がある一定の大きさになった時点にお
いて、その総符号量において保証されるべき枚数に達し
ていなければ、それらの画像を復号し、それらの総符号
量がその枚数の画像に割り当てられた符号量に収まるよ
うにFLCで再符号化する。
In the present invention, basically, an image is first recorded by VLC. At this time, the value of F is selected to be sufficiently small so that there is little deterioration in image quality. When the total code amount of multiple images recorded by VLC reaches a certain level, if the total code amount does not reach the number that should be guaranteed, then those images are decoded and The FLC is used to re-encode the images so that the total amount of code falls within the amount of code allocated to that number of images.

このとき全ての画像に均等に符号量を割り当てるのでは
なく、最初にVLCによって符号化されたときの符号量
に応じて割り当てる符号量を決定する。例えばVLCに
よる符号量が大きな画像はより画像の情報が多いと考え
られるので、比較的大きな符号量で再符号化する。
At this time, instead of allocating the amount of code equally to all images, the amount of code to be allocated is determined according to the amount of code when first encoded by VLC. For example, an image with a large amount of code by VLC is considered to have more image information, so it is re-encoded with a relatively large amount of code.

この記録方式によって画像の内容を考慮した上でバラン
スよく符号量の割当ができ、かつ記録媒体上の記録可能
枚数を保証することが可能となる。
With this recording method, it is possible to allocate the code amount in a well-balanced manner while taking into consideration the content of the image, and it is possible to guarantee the number of recordable sheets on the recording medium.

上記兜理内容をさらに具体的に説明する。The above explanation will be explained in more detail.

例えば総記録可能容量が2Mバイトの磁気ディスクを記
録媒体とするデインタルスチルカメラを想定する。そし
て磁気ディスク1枚に20枚の画像の記録を保証すると
仮定する。そのときは画像1枚当たりの平均割り当て符
号量は100にバイトである。
For example, assume a digital still camera whose recording medium is a magnetic disk with a total recordable capacity of 2 Mbytes. Assume that it is guaranteed that 20 images can be recorded on one magnetic disk. In that case, the average allocated code amount per image is 100 bytes.

たとえば〜’LCによって複数枚の画像の記録を行って
ゆき、総記録容量が1900にバイトを越えたときに2
0枚以上の記録ができていたとすると、画質を保った上
で保証すべき記録枚数は記録できたのであるから何も問
題はない。そこで19枚以下であった場合を仮定する。
For example, when multiple images are recorded using LC and the total recording capacity exceeds 1900 bytes, 2
If zero or more images were recorded, there is no problem because the guaranteed number of images could be recorded while maintaining the image quality. Therefore, assume that the number of sheets is 19 or less.

たとえば10枚の記録しかできていなかったとする。こ
の10枚の画像の総符号量がlO*1oOKバイト(=
IMバイト)になるようにFLCで再符号化する。
For example, suppose that only 10 images have been recorded. The total code amount of these 10 images is lO*1oOK bytes (=
IM byte) is re-encoded using FLC.

VLCによって符号化されたときのそれぞれの画像の符
号量をV L Cv o l u m e (i )と
する。ここてlは記録された画像の番号を表す。
Let the code amount of each image when encoded by VLC be VLCvolume(i). Here l represents the number of the recorded image.

VLCによって符号化された画像の総符号量VLCsu
mは式(1)で表される。
Total code amount of images encoded by VLC VLCsu
m is expressed by formula (1).

画像1に対する再符号化のための符号量をFLCvol
ume(i)とする。FLCvolume (i)は例
えばVLCsumをVLCvolume (i)の比で
分配して与える。このときFLCvolume (i)
は式(2)で与えられる。
The code amount for re-encoding for image 1 is FLCvol
Let it be ume(i). FLCvolume (i) is given by distributing, for example, VLCsum at the ratio of VLCvolume (i). At this time, FLCvolume (i)
is given by equation (2).

VLCsumlOOKbytesXloより必ず大きい
ので式(2)よりF L Cv o I u m e 
(i )はV L Cv o I u m e(i)よ
り必ず小さくなる。従って、一旦VLC符号を復号した
後にその記録媒体上のデータを消去すれば、必ず再符号
化された符号は記録媒体上に記録することが出来る。
Since it is always larger than VLCsumlOOKbytesXlo, from formula (2), F L Cv o I u m e
(i) is always smaller than V L Cv o I u m e (i). Therefore, once the VLC code is decoded and the data on the recording medium is erased, the re-encoded code can always be recorded on the recording medium.

10枚金石のFLCによる再符号化が終了すると10枚
トータルの符号量は1Mbytesであるから磁気ディ
スク上の空き容量はI M b y t e sである
When the re-encoding of 10 pieces of gold stone by FLC is completed, the total code amount of the 10 pieces is 1 Mbytes, so the free space on the magnetic disk is 1 Mbytes.

度再符号化の対象となった画像は再度再符号化の対象に
はしない。すなわち残りのI M b y t e s
に対してこれから撮影する10枚の画像の記録を保証す
るように同様の記録処理を行う。すなわちi (i> 
10)枚目の画像をVLCによって記録したとき磁気デ
ィスクの総符号量が1900にバイトを超え、かつlが
19以下の時に、新しく VLCによって記録した(i
−10)枚の画像について総符号量が(i −10)*
1oOKbytesになるようにFLCで再符号化する
Images that have been re-encoded once are not re-encoded again. That is, the remaining IMByte s
Similar recording processing is performed to ensure recording of the 10 images to be taken from now on. That is, i (i>
10) When the total code amount of the magnetic disk exceeds 1900 bytes when the 1st image is recorded by VLC, and l is 19 or less, a new image is recorded by VLC (i
-10) images, the total code amount is (i -10)*
Re-encode with FLC so that it becomes 1oOKbytes.

第2図は本発明の画像信号記録装置の実施例を示してい
る。ここで本発明に直接関係しないカメラのほかの部分
、例えば絞り、ンヤッタ等は省略されている。第2図に
おいてレンズ1により捕らえられた被写体の光学像は後
方に位置する撮像デバイス2例えばChange Co
upled  Device (CCD)によって映像
電気信号に変換される。撮像デバイス2は制御部7によ
って与えられる制御信号に応答して被写体の光学像に対
応する電荷の蓄積、映像信号の読み出しを行う。
FIG. 2 shows an embodiment of the image signal recording device of the present invention. Here, other parts of the camera that are not directly related to the present invention, such as the aperture and the diaphragm, are omitted. In FIG. 2, an optical image of a subject captured by a lens 1 is captured by an imaging device 2 located at the rear, such as a Change Co.
It is converted into a video electrical signal by an upgraded 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.

読み出された映像信号はA 、−’ D変喚起3によっ
てディジタル信号に変換される。なお撮像デノくイス2
とA 、/ D変喚起3との間には図示はしていないが
カンマ補正、色信号の形成分離、ホワイトノくランス処
理、Y二色差への変換等の映像信号処理手段が入る。
The read video signal is converted into a digital signal by the A, -'D converter 3. Furthermore, the imaging device 2
Although not shown, video signal processing means such as comma correction, color signal formation/separation, white lance processing, and conversion to Y two-color difference are inserted between the A and/D transformations 3.

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

圧縮符号化復号化装置5は画像メモリ4から読み出され
る画像データを前述のADCT方式によって符号化し、
記録装置6に出力する。あるいは記録装置によって記録
媒体から読み出された符号を復号し画像メモリ4に蓄え
られる。また、圧縮符号を計数するだけの機能も持つ。
The compression encoding/decoding device 5 encodes the image data read out from the image memory 4 using the above-mentioned ADCT method,
Output to recording device 6. Alternatively, the code read from the recording medium by the recording device is decoded and stored in the image memory 4. It also has the function of simply counting compression codes.

その符号量は制御部7が読み出すことができる。The amount of code can be read by the control unit 7.

制御部7は装置の機能を統合し全体のシステムの制御を
行う。つまり撮像、画像メモリ4への蓄積、圧縮、記録
媒体への記録といった一連の作業を管理する。又、記録
媒体上のファイル管理も行う。装置9はレリーズボタン
、各種操作部材を含むマンマンンインタフェースである
The control unit 7 integrates the functions of the devices and controls the entire system. That is, it manages a series of operations such as imaging, storage in the image memory 4, compression, and recording on a recording medium. It also manages files on the recording medium. The device 9 is a human interface including a release button and various operating members.

通常、制御部7は以下に示す手順てVLCによる記録を
行う。
Normally, the control unit 7 performs recording using VLC according to the following procedure.

レリーズボタンが押されると、制御部はピントあわせ、
絞り、シャッタなどを動作させ撮像デノくイスを露光し
て画像情報を画像メモリ4にとりこむ。
When the release button is pressed, the control unit focuses and
The aperture, shutter, etc. are operated to expose the imaging device and capture image information into the image memory 4.

制御部は圧縮符号化復号化装置5に対してパラメータF
を渡し、かつ記録装置に圧縮符号を出力するように指示
する。また制御部は記録装置に圧縮符号の受は取りおよ
び記録を指示する。
The control unit sets the parameter F to the compression encoding/decoding device 5.
and instructs the recording device to output the compressed code. The control unit also instructs the recording device to receive, receive and record the compressed code.

以上の処理で可変長の圧縮符号が記録装置に記録される
Through the above processing, a variable length compression code is recorded on the recording device.

VLCによって符号化された画像の符号量がある一定の
値を越えると全ての可変長符号化された符号は記録装置
6によって記録媒体から読み出され圧縮符号化復号化装
置5によって圧縮前の画像情報に復号され画像メモリ4
に蓄積される。符号化の時と同様にこれらの処理は制御
部7の管理のもとに行われる。そして画像毎に割り当て
るべき符号量を制御部が算出し、その符号量になるよう
にFLCて符号化、記録される。
When the code amount of an image encoded by VLC exceeds a certain value, all the variable-length encoded codes are read out from the recording medium by the recording device 6, and the uncompressed image is read out by the compression encoding/decoding device 5. Decoded into information and stored in image memory 4
is accumulated in These processes are performed under the control of the control section 7, as in the case of encoding. Then, the control unit calculates the amount of code to be allocated to each image, and the image is encoded and recorded using FLC so that the amount of code is calculated.

制御部7は以下に示す手順でFLCによる記録を行う。The control unit 7 performs recording by FLC in the following procedure.

制御部は圧縮符号化復号化装置5に対してパラメータF
を渡し、画像メモリ4の画像データを圧縮させて符号量
を計数させる。このときは圧縮符号化復号化装置5は圧
縮符号は出力せずに一画面の符号量を計数するだけであ
る。
The control unit sets the parameter F to the compression encoding/decoding device 5.
is passed, the image data in the image memory 4 is compressed, and the code amount is counted. At this time, the compression encoding/decoding device 5 only counts the amount of codes for one screen without outputting the compressed codes.

この動作を所望の符号量になるまでFを変化させながら
数回の試行錯誤を繰り返す。
This operation is repeated several times by trial and error while changing F until the desired code amount is achieved.

所望の符号量を発生させるF(以下Fa)が求められる
と、制御部は再度そのパラメータFaを圧縮符号化復号
化装置5に与えて、かつ記録装置6に圧縮符号を出力す
るように指示する。また制御部は記録装置に圧縮符号の
受は取りおよび記録を指示する。
When F (hereinafter referred to as Fa) that generates the desired code amount is determined, the control unit again gives the parameter Fa to the compression encoding/decoding device 5 and instructs the recording device 6 to output the compressed code. . The control unit also instructs the recording device to receive, receive and record the compressed code.

以上の処理で画面単位の固定長化がなされた圧縮符号が
記録装置6の記録媒体に記録される。
The compressed code that has been made into a fixed length for each screen by the above processing is recorded on the recording medium of the recording device 6.

次に、圧縮符号化復号化装置5の構成を第4図に示す。Next, the configuration of the compression encoding/decoding device 5 is shown in FIG.

第4図において、51はDCT/IDCT部であり、離
散コサイン変換、逆変換を行う。52は量子化/逆量子
化部であり、量子化テーブル53によって設定された量
子化パラメータに応じてデータの量子化、逆量子化を行
う。53はハフマン符号化、復号化部であり、ハフマン
テーブル56からのパラメータに応じてハフマン符号化
、復号化を行う。54はパラメータ設定用レジスタであ
り、量子化テーブルに記憶された量子化パラメータを変
更するための制御部7からのデータを保持し、そのデー
タを乗算器に送る。57はハフマン符号化復号化部53
から出力される符号量をカウントするカウンタである。
In FIG. 4, 51 is a DCT/IDCT unit that performs discrete cosine transform and inverse transform. Reference numeral 52 denotes a quantization/inverse quantization unit, which performs quantization and inverse quantization of data according to quantization parameters set by the quantization table 53. 53 is a Huffman encoding/decoding unit, which performs Huffman encoding/decoding according to parameters from the Huffman table 56. A parameter setting register 54 holds data from the control unit 7 for changing the quantization parameters stored in the quantization table, and sends the data to the multiplier. 57 is a Huffman encoding/decoding unit 53
This is a counter that counts the amount of code output from.

制御部7はカウンタ57のカウント値に応じて、パラメ
ータ設定用レジスタ54に設定するデータを演算する。
The control unit 7 calculates data to be set in the parameter setting register 54 according to the count value of the counter 57.

以上第4図の各部は、制御部7により制御される。Each section shown in FIG. 4 is controlled by the control section 7.

符号化時には画像メモリ4からの画像データがDCT 
/IDCT51で離散コサイン変換され、量子化/逆量
子化52で量子化され、ハフマン符号化復号化部53で
ハフマン符号化され、記録袋M6に格納される。
During encoding, image data from image memory 4 is subjected to DCT
/IDCT 51 performs discrete cosine transform, quantization/inverse quantization 52 quantizes, Huffman encoding/decoding section 53 performs Huffman encoding, and the result is stored in record bag M6.

また、再符号化のために一旦復号化する時には、記録装
置6に格納された符号データに対し上述とは逆の手順で
ハフマン復号化、逆量子化、逆DCTを行い、得られた
画像データを画像メモリ4に格納する。
Furthermore, when once decoding is performed for re-encoding, Huffman decoding, inverse quantization, and inverse DCT are performed on the encoded data stored in the recording device 6 in the reverse procedure to the above, and the obtained image data is stored in the image memory 4.

以上の実施例の具体的なフローチャートを第1図に示す
。第1図中の記号についてi、 j、 ivo、 VL
Csum。
A detailed flowchart of the above embodiment is shown in FIG. Regarding the symbols in Figure 1: i, j, ivo, VL
Csum.

VLCvolume ()、FLCvolume ()
、AIocAreaは変数、i m a x M V 
、  A Vは定数である。1は撮影類に付けられた画
像の番号、】vOはVLCによって記録された画像の最
初の番号、VLCsumはVLCによって記録され、ま
だ符号長の調整がなされていない画像の総符号量、配列
VLCvolume (i)はi番目の画像のVLC符
号化における符号長、配列FLCvolume (i)
はi番目の画像に対する符号量調整のための目的符号長
、AlocAreaはVLCによって記録される複数の
画像を一時的に記録媒体上に記録しておくための空き容
量である。MVは記録媒体の総記録可能容量、AVは画
像当たりの平均割り当て長である。従って記録媒体当た
りの記録可能枚数i m a xはM V / A V
で与えられる。
VLCvolume (), FLCvolume ()
, AIocArea is a variable, i m a x M V
, AV is a constant. 1 is the number of the image attached to the shooting type, ]vO is the first number of the image recorded by VLC, VLCsum is the total code amount of the image recorded by VLC and whose code length has not been adjusted yet, and the array VLCvolume (i) is the code length in VLC encoding of the i-th image, and the array FLCvolume (i)
is the target code length for adjusting the code amount for the i-th image, and AlocArea is the free space for temporarily recording a plurality of images recorded by VLC on the recording medium. MV is the total recordable capacity of the recording medium, and AV is the average allocated length per image. Therefore, the number of recordable sheets per recording medium imax is MV/AV
is given by

ステップOて変数の初期化を行う。即ち1−0.1vo
=1 、VLCsurr+=Oとする。AIocAre
aは総記録容量MAから平均データIt A Vを差し
引いている。すなわち−枚の画像程度の余裕をとってい
る。また、imaxは総記録容量M Aを平均データf
iAVて割ったものである。
In step O, variables are initialized. i.e. 1-0.1vo
=1, VLCsurr+=O. AIocAre
a is obtained by subtracting the average data It AV from the total recording capacity MA. In other words, a margin of about - images is provided. In addition, imax uses the total recording capacity M A as the average data f
It is divided by iAV.

ステップ1ではレリーズボタンが押されるのを待ち、押
されるとステップ2で露光、画像メモリ4への書き込み
を行う。
Step 1 waits for the release button to be pressed, and when the release button is pressed, exposure and writing to the image memory 4 are performed in step 2.

ステップ3では画像メモリ4の画像をVLC符号化して
記録媒体に書き込む。この時の記録符号IをV L C
v o I u m e (i )に保存する。
In step 3, the image in the image memory 4 is VLC encoded and written on the recording medium. The record code I at this time is V L C
Save in voIume(i).

ステップ4では記録媒体に全ての符号データが記録でき
たか否かを判断する。記録できた場合ステップ5に進む
。記録できなかった場合とは、記録媒体上には少なくと
も平均データfiAVの大きさの容量が空いているわけ
であるが、その容量を超えてしまった場合であり、例外
的な状態である。この場合ステップ15て現在までの記
録枚数と保証枚数とを比較する。保証枚数以上の記録が
なされていたら、この記録媒体上への記録は終りにする
。保証枚数以上の記録がなされていなかったら、ステッ
プ16で記録媒体上の空いた領域にFLCで記録する。
In step 4, it is determined whether all code data has been recorded on the recording medium. If recording is successful, proceed to step 5. The case where data cannot be recorded means that there is at least a free capacity on the recording medium of the size of the average data fiAV, but this is a case where the capacity has been exceeded, and is an exceptional situation. In this case, in step 15, the number of sheets recorded up to now is compared with the guaranteed number of sheets. If more recordings than the guaranteed number have been made, recording on this recording medium will end. If the guaranteed number of sheets or more has not been recorded, in step 16 recording is performed in an empty area on the recording medium using FLC.

そしてこの時の記録符号量をV L Cv o l u
 m e(i)に保存する。そしてステップ5に進む。
Then, the recorded code amount at this time is V L Cv o l u
Save in e(i). Then proceed to step 5.

ステップ5ではl、およびVLCsumを更新する。In step 5, l and VLCsum are updated.

即ちi=i+1、VLCsum=VLCsum +VL
Cvolume(i)とする。
That is, i=i+1, VLCsum=VLCsum +VL
Let it be Cvolume(i).

ステップ6では保証枚数の記録がなされたか否かを判断
する。保証枚数の記録がなされていれば(l≧i m 
a xならば)符号量の調整はいらないので、ステップ
1にもどりレリーズボタンが押されるのを待つ。保証枚
数の記録がなされていなければ(i<imaxならば)
ステップ7に進む。
In step 6, it is determined whether the guaranteed number of sheets has been recorded. If the guaranteed number of sheets is recorded (l≧i m
ax) Since there is no need to adjust the code amount, return to step 1 and wait for the release button to be pressed. If the guaranteed number of sheets is not recorded (if i<imax)
Proceed to step 7.

ステップ7においてはVLCsumが可変長符号のため
の割り当て容量AlocAreaを超えていないかどう
かを調べる。超えていなければステップ1にもどる。超
えていた場合、ステップ8に進む。
In step 7, it is checked whether VLCsum exceeds the allocated capacity AlocArea for variable length codes. If not, return to step 1. If it exceeds, proceed to step 8.

ステップ8〜12のループて画像lvOからiまでの画
像に対して符号量調整のための再符号化を行つ。
In a loop of steps 8 to 12, images lvO to i are re-encoded to adjust the amount of code.

ステップ9ては次式によって画像jに割り当てる符号量
を定めている。
In step 9, the amount of code to be allocated to image j is determined by the following equation.

FLcvolume (j) 式(3)は式(2)と同様にVLCvolume □に
比例した符号量を割り当てるようにしている。
FLcvolume (j) Equation (3), like Equation (2), allocates a code amount proportional to VLCvolume □.

(i−ivo士l)は符号量調整の行われていない画像
の枚数を表す。したがってAverageValueを
乗ftLlf (j−ivo+ 1)枚の画像に割り当
てられる総符号量を表すことになる。
(i-ivojil) represents the number of images for which code amount adjustment has not been performed. Therefore, ftLlf multiplied by AverageValue represents the total code amount allocated to (j-ivo+1) images.

ステップlOで画像jを画像メモリに復号する。In step IO, image j is decoded into the image memory.

ステップ11で媒体上の符号を消去して、画像メモリ上
の画像に対し、FLCを行い記録する。
In step 11, the code on the medium is erased, and the image on the image memory is subjected to FLC and recorded.

ステップ8〜12のループで(i−ivo+1)枚の再
符号化は終了したのでステップ14で変数IVo、VL
Csum、AIocAreaを更新する。そしてステッ
プlに戻る。
Since the re-encoding of (i-ivo+1) sheets has been completed in the loop of steps 8 to 12, in step 14 the variables IVo and VL are
Update Csum and AIocArea. Then return to step l.

〔他の実施例C 前記実施例では再符号化のときにV L Cv o l
 u m e(])の大きさに比例した符号量で符号量
を割り当てるようにしたが、必ずしもこれに限定される
わけてはない。例えばVLCvolume (i)の大
きさがAverageValue以下である画像につい
ては再符号化しないようにしてもよい。そのときはそれ
以外の画像のみを再符号化することで符号量を調整する
。別の例として、V L Cv o I u m e 
(i )がある符号量X以上の画像はその符号量はXで
あるとみなして比例配分するような方式も考えられる。
[Other Embodiment C In the above embodiment, V L Cv o l
Although the amount of code is allocated in proportion to the size of u m e (]), it is not necessarily limited to this. For example, an image in which the size of VLCvolume (i) is less than or equal to AverageValue may not be re-encoded. In that case, the code amount is adjusted by re-encoding only the other images. As another example, V L Cv o I u m e
(i) A method may also be considered in which an image having a code amount of X or more is regarded as having a code amount of X and is distributed proportionally.

この考えはある程度以上の複雑さを持った画像は圧縮し
てもあまり劣化が目立たないことを利用している。
This idea takes advantage of the fact that images with a certain degree of complexity do not suffer much noticeable deterioration even when compressed.

また、前記実施例では装置が自動的に再符号化のノーケ
ンスに入るようにしているが、ステップ7においてVL
Csum > AlocAreaであったときに、使用
者に警告を表示して、容量が足りないので符号量を調整
するか記録媒体を交換することを促し、使用者が符号量
の調整を指示したときにははじめてステップ8以降のノ
ーケンスに進むようにしてもよい。
Further, in the above embodiment, the apparatus automatically enters the re-encoding no-ken, but in step 7, the VL
When Csum > AlocArea, a warning is displayed to the user, prompting the user to adjust the code amount or replace the recording medium because the capacity is insufficient, and only when the user instructs to adjust the code amount. It is also possible to proceed to the No-ken after step 8.

また、前記実施例では可変長符号量がある一定の量にな
ったら符号量の調整を行うようにしたが、VLCによっ
て符号化された画像がある一定の枚数になったときに符
号量の調整を行うようにしてもよい。例えば5枚毎に5
枚単位の再符号化による符号量の調整を行うこともでき
る。
In addition, in the above embodiment, the code amount is adjusted when the variable length code amount reaches a certain fixed amount, but when the number of images encoded by VLC reaches a certain fixed number, the code amount is adjusted. You may also do this. For example, every 5 pieces, 5
It is also possible to adjust the code amount by re-encoding on a sheet-by-sheet basis.

また、上記いずれの場合においても自動的に符号量の調
整を行うようにする場合、速写中に符号量の調整を始め
ると速写が止まってしまうので、連写中には符号量の調
整は始めずに、速写が終了してから符号量の調整を行う
ようにしてもよい。
In addition, if you want to automatically adjust the code amount in any of the above cases, if you start adjusting the code amount during quick shooting, the quick shooting will stop, so you should not start adjusting the code amount during continuous shooting. Alternatively, the code amount may be adjusted after the quick copy is completed.

また、上述の実施例においては、可変長圧縮を行う第1
の圧縮手段と、固定長圧縮を行う第2の圧縮手段は回路
を共通として、量子化パラメータを固定する場合と試行
錯誤により固定長化すべく可変とする場合とに分け、制
御部7により所定のパラメータを設定することで、第1
、第2の圧縮手段の機能を持たせるようにしたが、各々
全く別々の回路構成としてもよい。
In addition, in the above embodiment, the first
The compression means and the second compression means that perform fixed-length compression share a common circuit, and are divided into cases where the quantization parameter is fixed and cases where it is variable to obtain a fixed length through trial and error. By setting the parameters, the first
, the function of the second compression means, but they may each have completely separate circuit configurations.

また、圧縮手段と伸長手段も全(別系統としてもよい。Moreover, the compression means and the expansion means may also be all (separate systems).

上述の方法で記録した後は例えば、圧縮符号を復号する
手段を有する画像再生装置によりモニタ上に表示したり
、複写装置により/為−ドコピーを行うようにすること
ができる。
After recording by the above-described method, it can be displayed on a monitor using an image reproducing device having means for decoding the compressed code, or can be copied by a copying device.

また、記録媒体は、磁気ディスク等の磁気記録方式を用
いるもの、光学ディスク等の光記録方式を用いるものや
、ICカード、ROMSRAM等の半導体メモリなど画
像データを記録てきるものであればよい。
Further, the recording medium may be one that uses a magnetic recording method such as a magnetic disk, one that uses an optical recording method such as an optical disk, or one that can record image data such as an IC card or a semiconductor memory such as a ROMSRAM.

また、圧縮のアルゴリズムは上述のJPEG方式に限ら
ず、例えば算術符号化、ランレングス符号化、ハフマン
符号化、MH,MR,MMRなどのファクシミリ符号化
方式等であってもよい。即ち、例えば、符号化の際に量
子化パラメータや、符号化パラメータを変更することに
より、固定長圧縮と可変長圧縮のいずれも可能となる符
号化方式であればよい。
Furthermore, the compression algorithm is not limited to the above-mentioned JPEG method, and may be, for example, arithmetic encoding, run-length encoding, Huffman encoding, or facsimile encoding methods such as MH, MR, and MMR. That is, any encoding method may be used as long as it enables both fixed-length compression and variable-length compression by changing the quantization parameter or encoding parameter during encoding, for example.

以上の説明から明らかなように、本発明の上記実施例に
よれば記録枚数を保証した上で画像に応じた符号量の割
当が出来るので、画像が著しく劣化することは無い。ま
た通常はVLCを行うためFLCに比べて速く圧縮する
ことが出来るため、カメラの速写モードにおいてより多
くの枚数が撮影できるという効果も生ずる。
As is clear from the above description, according to the embodiment of the present invention, it is possible to allocate the amount of code according to the image while guaranteeing the number of recording sheets, so that the image does not deteriorate significantly. Further, since VLC is normally used, it can be compressed faster than FLC, so there is also the effect that a larger number of images can be taken in the camera's quick-shooting mode.

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

本発明によれば、画像の劣化を抑えて、効率良く画像の
圧縮を行うことができる。
According to the present invention, image deterioration can be suppressed and images can be efficiently compressed.

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

第1図は本発明の一実施例の動作を示すフローチャート
、 第2図は同実施例のブロック図、 第3図はパラメータFと圧縮符号量の関係を示す図、 第4図は圧縮符号化復号化部5の構成を示す図である。 3・・・A/D変換器 4・・・画像メモリ 訃・・圧縮符号化復号化装置 第1図 (b)
Fig. 1 is a flowchart showing the operation of an embodiment of the present invention, Fig. 2 is a block diagram of the embodiment, Fig. 3 is a diagram showing the relationship between parameter F and compression code amount, and Fig. 4 is compression coding. 3 is a diagram showing the configuration of a decoding unit 5. FIG. 3...A/D converter 4...Image memory...Compression encoding/decoding device Fig. 1(b)

Claims (9)

【特許請求の範囲】[Claims] (1)可変長圧縮を行う第1の圧縮手段と、固定長圧縮
を行う第2の圧縮手段と、 前記第1又は第2の圧縮手段によって圧縮された画像信
号を伸長する伸長手段を備え、 一旦記録媒体上に前記第1の圧縮手段によって複数枚の
画像を記録したのち、記録された画像信号を前記伸長手
段によって復号して、再度前記第2の圧縮手段によって
固定長圧縮を行うことを特徴とする画像信号記録装置。
(1) comprising a first compression means that performs variable length compression, a second compression means that performs fixed length compression, and an expansion means that expands the image signal compressed by the first or second compression means; After a plurality of images are once recorded on the recording medium by the first compression means, the recorded image signals are decoded by the expansion means, and fixed length compression is again performed by the second compression means. Features of the image signal recording device.
(2)前記第2の圧縮手段により固定長圧縮を行う際に
、前記複数枚の画像の固定長圧縮による総符号容量があ
る一定の符号量になるように個々の、画像に符号量を割
り当てることを特徴とする請求項第1項記載の画像信号
記録装置。
(2) When performing fixed-length compression by the second compression means, a code amount is assigned to each image so that the total code capacity by fixed-length compression of the plurality of images becomes a certain code amount. The image signal recording device according to claim 1, characterized in that:
(3)前記第2の圧縮手段により固定長圧縮を行うとき
の個々の画像の符号割り当てを、前記可変長圧縮によっ
て圧縮されたときの符号量に比例させて配分することを
特徴とする請求項第1項記載の画像信号記録装置。
(3) A claim characterized in that codes for individual images when fixed-length compression is performed by the second compression means are distributed in proportion to the amount of codes when compressed by the variable-length compression. The image signal recording device according to item 1.
(4)前記可変長圧縮によって圧縮されたときの符号量
がある一定の符号量x以上の大きさに達している画像に
ついては、前記可変長圧縮によって圧縮されたときの符
号量はxであったと見なすことを特徴とする請求項第1
項記載の画像信号記録装置。
(4) For images whose code amount when compressed by the variable length compression has reached a certain code amount x or more, the code amount when compressed by the variable length compression is x. Claim 1 characterized in that it is regarded as
The image signal recording device described in 2.
(5)前記可変長圧縮によって圧縮されたときの符号量
がある一定の大きさに達していない画像については再度
固定長圧縮を行う対象としないことを特徴とする請求項
第1項記載の画像信号記録装置。
(5) An image according to claim 1, wherein an image whose code amount does not reach a certain size when compressed by the variable length compression is not subjected to fixed length compression again. Signal recording device.
(6)更に記録媒体上の可変長圧縮された符号の総量が
ある一定符号量に達したかどうかを検知する手段を備え
、達したときに自動的に可変長圧縮によって記録された
符号を復調して再度固定長圧縮を行い記録することを特
徴とする請求項第1項記載の画像信号記録装置。
(6) Furthermore, it is equipped with means for detecting whether the total amount of variable-length compressed codes on the recording medium has reached a certain certain code amount, and when it has reached a certain amount, automatically demodulates the codes recorded by variable-length compression. 2. The image signal recording apparatus according to claim 1, wherein the image signal recording apparatus performs fixed-length compression again.
(7)更に記録媒体上の可変長圧縮された画像の枚数が
ある一定枚数に達したかどうかを検知する手段を備え、
達したときに自動的に可変長圧縮によって記録された符
号を復号して再度固定長圧縮を行い記録することを特徴
とする請求項第1項記載の画像信号記録装置。
(7) further comprising means for detecting whether the number of variable-length compressed images on the recording medium reaches a certain number;
2. The image signal recording apparatus according to claim 1, wherein the image signal recording apparatus automatically decodes the code recorded by variable length compression and performs fixed length compression again when the code reaches the specified length.
(8)更に使用者が前記可変長圧縮符号から固定長圧縮
符号への変換を指示する手段を備え、使用者が前記の変
換を指示したら可変長圧縮によって記録された符号を復
号して再度固定長圧縮を行い記録することを特徴とする
請求項第1項記載の画像信号記録装置。
(8) Furthermore, a means is provided for the user to instruct conversion from the variable length compression code to a fixed length compression code, and when the user instructs the conversion, the code recorded by variable length compression is decoded and fixed again. 2. The image signal recording apparatus according to claim 1, wherein the image signal recording apparatus performs long compression.
(9)連写中には前記可変長圧縮符号から固定長圧縮符
号への変換をしないことを特徴とする請求項第1項記載
の画像信号記録装置。
(9) The image signal recording apparatus according to claim 1, wherein the variable length compression code is not converted to a fixed length compression code during continuous shooting.
JP2234986A 1990-09-04 1990-09-04 Image signal recording device Expired - Fee Related JP2941913B2 (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP2234986A JP2941913B2 (en) 1990-09-04 1990-09-04 Image signal recording device
DE69131809T DE69131809T2 (en) 1990-09-04 1991-08-30 Image processing method and device
EP99200315A EP0926883B1 (en) 1990-09-04 1991-08-30 Image processing method and apparatus
DE69133412T DE69133412T2 (en) 1990-09-04 1991-08-30 Method and device for image processing
US07/753,660 US5216518A (en) 1990-09-04 1991-08-30 Image processing method and apparatus for encoding variable-length data
EP91307986A EP0474444B1 (en) 1990-09-04 1991-08-30 Image processing method and apparatus
US08/021,103 US5384644A (en) 1990-09-04 1993-02-23 Image processing method and apparatus for encoding variable-length data
US08/339,664 US5745251A (en) 1990-09-04 1994-11-14 Image processing method and apparatus for encoding variable-length data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2234986A JP2941913B2 (en) 1990-09-04 1990-09-04 Image signal recording device

Publications (2)

Publication Number Publication Date
JPH04114564A true JPH04114564A (en) 1992-04-15
JP2941913B2 JP2941913B2 (en) 1999-08-30

Family

ID=16979361

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2234986A Expired - Fee Related JP2941913B2 (en) 1990-09-04 1990-09-04 Image signal recording device

Country Status (1)

Country Link
JP (1) JP2941913B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07104941A (en) * 1993-09-30 1995-04-21 Sony Corp Information providing, reproducing and recording device
JP2005536924A (en) * 2002-08-19 2005-12-02 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Video circuit
JP2006515722A (en) * 2002-10-10 2006-06-01 トムソン ライセンシング Display method without interruption of a television program having a hidden program segment
JP2008182723A (en) * 2008-02-14 2008-08-07 Sanyo Electric Co Ltd Recording apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07104941A (en) * 1993-09-30 1995-04-21 Sony Corp Information providing, reproducing and recording device
JP2005536924A (en) * 2002-08-19 2005-12-02 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Video circuit
US8537076B2 (en) 2002-08-19 2013-09-17 Entropic Communications, Inc. Video circuit
JP2006515722A (en) * 2002-10-10 2006-06-01 トムソン ライセンシング Display method without interruption of a television program having a hidden program segment
JP2008182723A (en) * 2008-02-14 2008-08-07 Sanyo Electric Co Ltd Recording apparatus

Also Published As

Publication number Publication date
JP2941913B2 (en) 1999-08-30

Similar Documents

Publication Publication Date Title
US5335016A (en) Image data compressing/coding apparatus
US5291282A (en) Image data coding apparatus and method capable of controlling amount of codes
US5384644A (en) Image processing method and apparatus for encoding variable-length data
JP3085465B2 (en) Image data encoding apparatus and encoding method
US7990434B2 (en) Digital camera for recording a still image while shooting a moving image
US5832129A (en) Image encoding method and apparatus
JPH04114564A (en) Picture signal recording device
JP2959831B2 (en) Image data encoding device
JP2952000B2 (en) Image data encoding apparatus and encoding method
JP3037961B2 (en) Electronic camera device and image data encoding device
JPH07312751A (en) Method and device for compressing and coding image data
JPH0537901A (en) Image recorder
EP0926883B1 (en) Image processing method and apparatus
JP3151244B2 (en) Image recording device
JPH09219807A (en) Digital still camera
JP2984342B2 (en) Image signal recording device
JP3038022B2 (en) Electronic camera device
US7120304B2 (en) Image data compressing apparatus
JP3192133B2 (en) Electronic camera device
JP3095788B2 (en) Electronic camera device
JPH03272289A (en) Electronic still camera
JPH04343579A (en) Image signal processor
JPH04220875A (en) Encoding device for picture data
JP3034923B2 (en) Image data recording and playback device
JPH06276476A (en) Electronic still camera device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080618

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090618

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090618

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100618

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees