JPH0630392A - Picture coding device - Google Patents

Picture coding device

Info

Publication number
JPH0630392A
JPH0630392A JP4180229A JP18022992A JPH0630392A JP H0630392 A JPH0630392 A JP H0630392A JP 4180229 A JP4180229 A JP 4180229A JP 18022992 A JP18022992 A JP 18022992A JP H0630392 A JPH0630392 A JP H0630392A
Authority
JP
Japan
Prior art keywords
code amount
coding
encoding
characteristic
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.)
Pending
Application number
JP4180229A
Other languages
Japanese (ja)
Inventor
Minoru Sasaki
佐々木  実
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP4180229A priority Critical patent/JPH0630392A/en
Publication of JPH0630392A publication Critical patent/JPH0630392A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To provide the picture coding device in which optimum coding for an entire picture is attained. CONSTITUTION:A luminance signal and a color difference signal are inputted to a field memory 11 or 12. A block division.circuit 14 applies block processing to an inputted signal and outputs the result to a DCT circuit 15. A control circuit 13 controls an address of the field memory 11 or 12 to allow the block division circuit 14 to output prescribed block data in a pattern. The DCT circuit 15 applies DCT processing to picture data inputted and outputs the result to a quantization circuit 16, in which a DC term and an AC term are quantized. A zigzag scan circuit 17 reads a quantization output in the order of zigzag scanning and inputs the result to a coding circuit 18. The coding circuit 18 uses a Huffman table 19 for the DC term to apply Huffman coding and to output the result.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、テレビ電話、画像伝
送装置、電子スチルカメラなどの静止画あるいは動画の
圧縮符号化方式に係わる画像符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding device relating to a compression encoding system for still images or moving images such as videophones, image transmission devices, electronic still cameras and the like.

【0002】[0002]

【従来の技術】近年、テレビ電話および電子スチルカメ
ラなどの普及にともない、画像のディジタル処理、特に
画像データを圧縮するための高能率符号化技術の進歩が
著しい。
2. Description of the Related Art In recent years, with the widespread use of videophones and electronic still cameras, there has been remarkable progress in digital processing of images, particularly in high-efficiency coding techniques for compressing image data.

【0003】画像を圧縮符号化した場合には、一般的に
細かい絵柄に対しては符号量が増大し、単調な絵柄では
符号量が減少する傾向がある。このため画像毎に伝送符
号量が変化し、一定速度の伝送路では実時間の動画を伝
送できなかったり、記録媒体の容量が不足し、画像が欠
けたりするという不都合がある。
When an image is compression-coded, generally, the code amount tends to increase for a fine pattern, and the code amount tends to decrease for a monotonous pattern. For this reason, the transmission code amount changes for each image, so that real-time moving images cannot be transmitted on a transmission path having a constant speed, or the capacity of a recording medium is insufficient, resulting in a lack of images.

【0004】そこで、出力部にバッファメモリを有し
て、絵柄に拘らず画像の符号を一定にしたものもある。
図9に、このような従来の画像符号化装置のブロック図
を示す。
Therefore, there is also one in which a buffer memory is provided in the output section so that the code of the image is constant regardless of the pattern.
FIG. 9 shows a block diagram of such a conventional image coding apparatus.

【0005】フレームメモリ1から読みだされた画像デ
ータは、DCT(離散コサイン変換)回路2に入力す
る。DCT回路2にてDCT処理されたDCT係数は、
量子化回路3に入力する。量子化回路3において量子化
された後、可変調符号化回路4にて、たとえばハフマン
符号化する。可変長符号化回路4からのハフマン符号
は、バッファメモリ5を介して出力する。量子化回路3
は、バッファメモリ5の使用状態により、量子化特性が
変化して出力レートを一定制御する。
The image data read from the frame memory 1 is input to a DCT (discrete cosine transform) circuit 2. The DCT coefficient DCT processed by the DCT circuit 2 is
Input to the quantization circuit 3. After being quantized in the quantizing circuit 3, the tunable coding circuit 4 performs Huffman coding, for example. The Huffman code from the variable length coding circuit 4 is output via the buffer memory 5. Quantization circuit 3
Changes the quantization characteristic according to the usage state of the buffer memory 5 and controls the output rate constant.

【0006】しかしながら、上記した従来の画像符号化
装置では、バッファメモリの使用状態に応じて、逐次符
号化特性を変化させていることから、画面全体を調整す
ることができない。たとえば、画面の上半分は単調な絵
柄で、下半分は細かい絵柄の画像データが入力された場
合には、画面の上半分の画像データの符号化にビット数
を使い過ぎるため、下半分の画像データの符号化には十
分なビット数を割り当てることができず、画質が劣化し
てしまうという問題があった。
However, in the above-mentioned conventional image coding apparatus, the entire screen cannot be adjusted because the coding characteristics are successively changed according to the usage state of the buffer memory. For example, if image data with a monotonous pattern in the upper half of the screen and fine patterns in the lower half is input, the number of bits used for encoding the image data in the upper half of the screen is too large, so the image in the lower half is used. There is a problem that a sufficient number of bits cannot be assigned for data encoding, resulting in deterioration of image quality.

【0007】[0007]

【発明が解決しようとする課題】上記したように、従来
の画像符号化装置においては、出力バッファの使用量に
応じて逐次符号化特性を変化させて出力レートを一定と
しており、画面全体に渡って最適な符号化を行うことが
できず、画質が劣化してしまうという欠点があった。
As described above, in the conventional image coding apparatus, the output rate is made constant by successively changing the coding characteristics according to the usage amount of the output buffer, and the output rate is constant over the entire screen. However, there is a drawback that the image quality is deteriorated because the optimum encoding cannot be performed.

【0008】そこで、この発明は、上記欠点を除去し、
直前の画面で用いた符号化特性に応じた符号量をあらか
じめ求めることにより、符号化特性を決定し、画面全体
の最適な符号化を可能とする事ができる画像符号化装置
を提供することを目的とする。
Therefore, the present invention eliminates the above drawbacks,
(EN) It is possible to provide an image coding apparatus that can determine the coding characteristic by previously obtaining the code amount according to the coding characteristic used in the immediately preceding screen and enable the optimum coding of the entire screen. To aim.

【0009】[0009]

【課題を解決するための手段】上記目標を達成するた
め、この発明では、ディジタル画像信号を、符号化手段
を用いて所定の符号化特性により符号化を行い、符号量
の推定時には、前記ディジタル画像信号の一部を、前記
符号化手段に与えて、画像を分割し、符号量の推定時に
は、前記符号化手段によって得られた符号量の直前に符
号化を行った画像符号化特性を含む複数回の符号化によ
って得られた各符号化出力の符号量を推定すると共に、
推定した符号量と目標とする符号量とから最適符号化特
性を決定するようにしたものである。
In order to achieve the above-mentioned object, according to the present invention, a digital image signal is coded by a coding means with a predetermined coding characteristic, and when the code amount is estimated, the digital image signal is recorded. A part of the image signal is given to the encoding means to divide the image, and at the time of estimating the code amount, it includes an image encoding characteristic obtained by performing encoding immediately before the code amount obtained by the encoding means. While estimating the code amount of each encoded output obtained by multiple times of encoding,
The optimum coding characteristic is determined from the estimated code amount and the target code amount.

【0010】[0010]

【作用】このように構成された符号化特性決定手段は、
本来の符号化に先立ち、符号化した直前の符号化特性で
符号化を行うことにより、符号化に要する時間を短くす
ることができる。これにより、画面全体に最適な符号化
を行うことができる。
The coding characteristic determining means configured as described above is
By performing the encoding with the encoding characteristic immediately before the encoding, which is necessary before the original encoding, the time required for the encoding can be shortened. This makes it possible to perform optimum encoding on the entire screen.

【0011】[0011]

【実施例】以下、この発明の実施例について図面を参照
しながら、詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0012】図1はこの発明の一実施例を示すブロック
図である。輝度信号および色差信号は、フィールドメモ
リ11、またはフィールドメモリ12に入力する。フィ
ールドメモリ11、またはフィールドメモリ12は制御
回路13により書き込み、および読み出しを制御する。
次にフィールドメモリ11、またはフィールドメモリ1
2からの信号は、ブロック分割回路14に入る。
FIG. 1 is a block diagram showing an embodiment of the present invention. The luminance signal and the color difference signal are input to the field memory 11 or the field memory 12. The field memory 11 or the field memory 12 is controlled by the control circuit 13 for writing and reading.
Next, the field memory 11 or the field memory 1
The signal from 2 enters the block division circuit 14.

【0013】図2はブロック分割回路14からの画像デ
ータの出力を説明する図である。ブロック分割回路14
では入力した信号を、たとえば図2に示すように水平8
画素と垂直8画素の計64画素単位でブロック化してD
CT回路15に出力する。制御回路13はフィールドメ
モリ11または12のアドレスを制御することにより、
画面内の所定のブロックデータをブロック分割回路14
から出力する。
FIG. 2 is a diagram for explaining the output of image data from the block division circuit 14. Block division circuit 14
Then, the input signal is input horizontally 8 as shown in FIG.
Pixels and 8 vertical pixels are divided into blocks in units of 64 pixels and D
Output to the CT circuit 15. The control circuit 13 controls the address of the field memory 11 or 12 to
Predetermined block data in the screen is divided into block dividing circuits 14
Output from.

【0014】これにより、たとえば各行のブロック(以
下、ブロックラインと呼ぶ)のうち水平方向に4ブロッ
クおき、垂直方向に4ブロックラインおきのブロックデ
ータをブロック分割回路14から順次出力させることが
できる。DCT回路15は入力された画像データをDC
T処理し、周波数成分に変換して1ブロック毎に64個
の係数を出力する。
Thus, for example, block data of every four blocks in each row (hereinafter referred to as a block line) in the horizontal direction and every four block lines in the vertical direction can be sequentially output from the block division circuit 14. The DCT circuit 15 converts the input image data into DC
T processing is performed, the frequency components are converted, and 64 coefficients are output for each block.

【0015】図3はDCT回路15からの出力のDCT
係数を説明するための図である。DCT係数は水平、お
よび垂直方向の低域成分から高域成分に順次配列する。
図3において0の部分は直流項を示し、その値は全画素
の平均値となっている。他の部分は交流項である。
FIG. 3 shows the DCT of the output from the DCT circuit 15.
It is a figure for explaining a coefficient. The DCT coefficients are sequentially arranged from the low-frequency component in the horizontal and vertical directions to the high-frequency component.
In FIG. 3, the portion of 0 indicates a DC term, and the value is an average value of all pixels. The other part is the AC term.

【0016】DCT回路15からのDCT係数は量子化
回路16に入力する。量子化回路16において直流項、
および交流項について量子化を行う。その結果の量子化
出力はジグザグスキャン回路17に入力する。
The DCT coefficient from the DCT circuit 15 is input to the quantization circuit 16. In the quantization circuit 16, the DC term,
And quantizing the AC term. The resulting quantized output is input to the zigzag scan circuit 17.

【0017】ジグザグスキャン回路17において量子化
出力を、図3における0、1、3、……のジグザグスキ
ャン順に読みだして符号化回路18に入力する。符号化
回路18においては、直流項についてはハフマンテーブ
ル19を用いてハフマン符号化する。交流項に対しては
量子化出力の0が連続する数(0ラン)とその直後のD
CT係数のビット数との組み合わせを作成する。ハフマ
ンテーブル19を用いて、この組み合わせに対してハフ
マン符号化を行って出力する。
The quantized output in the zigzag scan circuit 17 is read in the zigzag scan order of 0, 1, 3, ... In FIG. In the encoding circuit 18, the DC term is Huffman-encoded using the Huffman table 19. For the AC term, the number of consecutive 0s in the quantized output (0 run) and D immediately after that.
Create a combination with the number of bits of the CT coefficient. The Huffman table 19 is used to perform Huffman coding on this combination and output it.

【0018】図4はハフマン符号の一例を示している。
たとえば、量子化出力として0が2個連続したあとに1
が入力すると、符号化回路18は、図4に示す1101
1というハフマンコードを出力する。
FIG. 4 shows an example of the Huffman code.
For example, after two consecutive 0s as quantized output,
Is input, the encoding circuit 18 outputs 1101 shown in FIG.
The Huffman code of 1 is output.

【0019】前述したように、1ブロックの符号長およ
び1画面の符号長は、ハフマン符号化によって変化す
る。一方符号長は量子化によっても変化する。量子化回
路16は乗算器22からの量子化値に基づいて量子化を
行っており、たとえば量子化値を大きくすると、量子化
出力として0が出現する確率が高くなり、符号長(総ビ
ット数)は短くなる。
As described above, the code length of one block and the code length of one screen are changed by Huffman coding. On the other hand, the code length also changes with quantization. The quantizing circuit 16 quantizes based on the quantized value from the multiplier 22. For example, when the quantized value is increased, the probability that 0 appears as a quantized output increases, and the code length (total number of bits) is increased. ) Becomes shorter.

【0020】一般的な画像においては、量子化値を大き
くすると急激に符号長が減少する。乗算器22は、基本
量子化テーブル24に格納されている基本量子化値にα
計算回路21、または外部から入力された量子化テーブ
ルスケールファクタαを乗算することにより、量子化回
路16に与える量子化値を変化させるようになってい
る。しかし量子化値を変化させると総ビット数は確定し
ないことになる。
In a general image, the code length sharply decreases as the quantization value increases. The multiplier 22 adds α to the basic quantization value stored in the basic quantization table 24.
The quantized value given to the quantized circuit 16 is changed by multiplying the quantized table scale factor α inputted from the calculation circuit 21 or the outside. However, if the quantized value is changed, the total number of bits will not be fixed.

【0021】この実施例においては、符号化に先ち、そ
れまで使用していた量子化テーブルスケールファクタα
で所定のブロックデータに対し符号化を行い、そのとき
の符号量を求め、この値により実際に符号化するときの
量子化値を求めている。
In this embodiment, prior to encoding, the quantization table scale factor α used until then is used.
In, the predetermined block data is encoded, the code amount at that time is obtained, and the quantized value for the actual encoding is obtained from this value.

【0022】符号化前に乗算器22に与えられるスケー
ルファクタαは、切換回路23によりそれまで使用して
いた値αp 、あるいは外部より与えられたα1〜nであ
る。符号量累積回路20は、求められた符号量から実際
に符号化するときのスケールファクタαt を計算する。
The scale factor α given to the multiplier 22 before encoding is the value α p used up to that point by the switching circuit 23, or α1 to n given from the outside. The code amount accumulating circuit 20 calculates a scale factor αt for actual encoding from the obtained code amount.

【0023】目標とする符号化出力の総ビット数をNT
とし、αp で所定のブロックデータに対して符号化を行
い、そのときの符号量により推定した符号化出力の総ビ
ット数をNP とし、許容誤差をεビットとし、NPが
The total number of bits of the target encoded output is NT
, The predetermined block data is encoded with α p, the total number of bits of the encoded output estimated by the code amount at that time is NP, the allowable error is ε bit, and NP is

【0024】[0024]

【数1】 の関係ならばα1 <αP となるスケールファクタα1 で
再度、所定のブロックデータに対し符号化を行い、その
ときの符号量より推定した符号化出力の総ビット数をN
1 とし、(1)式によりαT を求める。
[Equation 1] , The predetermined block data is encoded again with a scale factor α1 such that α1 <αP, and the total number of bits of the encoded output estimated from the code amount at that time is N.
Set to 1, and obtain αT from equation (1).

【0025】[0025]

【数2】 ならばα2 >αP となるスケールファクタα2 で所定の
ブロックデータに対し符号化を行い、そのときの符号量
より推定した符号化出力の総ビット数をN2 としαT を
次の(2)式により求める。
[Equation 2] If so, the predetermined block data is encoded with a scale factor α2 such that α2> αP, and the total number of bits of the encoded output estimated from the code amount at that time is set to N2, and αT is calculated by the following equation (2). .

【0026】[0026]

【数3】 このようにして符号量累積回路20は、スケールファク
タαT を算出する。
[Equation 3] In this way, the code amount accumulating circuit 20 calculates the scale factor αT.

【0027】図5はスケールファクタαT を求める符号
量推定時(プリスキャン)に符号化するブロックデータ
を、図6は量子化値を、図7は動作シーケンスをそれぞ
れ説明するためのものである。
FIG. 5 is for explaining the block data to be encoded at the time of estimating the code amount (prescan) for obtaining the scale factor α T, FIG. 6 is for explaining the quantized value, and FIG. 7 is for explaining the operation sequence.

【0028】入力された輝度および色差信号は、一画面
毎にフィールドメモリ11および12に交互に入力され
記録させる。第Nフィールドの信号がフィールドメモリ
11に書き込まれた後、入力信号のブランキング時間を
利用して、図5の斜線部に示すように、水平、垂直共に
1/4ブロックのデータがフィールドメモリ11より読
み出され(第1プリスキャン)、ブロック分割回路14
によりブロック単位にDCT係数をジグザグスキャン回
路17に与える。
The input luminance and color difference signals are alternately input and recorded in the field memories 11 and 12 for each screen. After the signal of the Nth field is written in the field memory 11, the blanking time of the input signal is used to output data of 1/4 block in both the horizontal and vertical directions in the field memory 11 as shown by the hatched portion in FIG. Read out (first prescan), and the block division circuit 14
The DCT coefficient is given to the zigzag scan circuit 17 in block units.

【0029】ジグザグスキャン回路17は、DCT係数
を低域成分から高域成分の順に量子化回路16に与え
る。量子化回路16は、スケールファクタαに基づく量
子化を行う。切換回路23は、まず直前の符号化で使用
していたスケールファクタαPを乗算器22に与える。
乗算器22は、基本量子化テーブル24とαP を乗算す
ることにより、量子化値を作成し量子化回路16に与え
る。基本量子化テーブル24は、たとえば図6に示すよ
うに、各量子化値は図3に示す量子化出力の各周波数成
分に対応している。
The zigzag scan circuit 17 gives the DCT coefficient to the quantization circuit 16 in order from the low frequency component to the high frequency component. The quantization circuit 16 performs quantization based on the scale factor α. The switching circuit 23 first supplies the multiplier 22 with the scale factor αP used in the immediately preceding encoding.
The multiplier 22 multiplies the basic quantization table 24 and α P to create a quantized value and supplies it to the quantization circuit 16. In the basic quantization table 24, for example, as shown in FIG. 6, each quantized value corresponds to each frequency component of the quantized output shown in FIG.

【0030】量子化回路16で量子化されたデータは符
号化回路18でハフマン符号化後、符号量累積回路20
で符号量を求める。この符号量を16倍して全ブロック
の符号量を推定する。自然画像においては、画像間の相
関が高く、この実施例のように部分画像を使用して符号
量を推定した場合の符号量と、全体の1/16ブロック
を符号化した場合の符号量を16倍して得た符号量と
は、ブロックのサンプリング位置にもよるが、10%以
内の誤差に収まっている。こうして求めた符号量NP と
目標とする符号量NT が一定値εに対して
The data quantized by the quantizing circuit 16 is Huffman coded by the coding circuit 18, and then the code amount accumulating circuit 20.
Calculate the code amount with. This code amount is multiplied by 16 to estimate the code amount of all blocks. In a natural image, the correlation between the images is high, and the code amount when the code amount is estimated by using the partial images as in this embodiment and the code amount when the entire 1/16 block is encoded are The code amount obtained by multiplying 16 times is within an error of 10% although it depends on the sampling position of the block. The code amount NP thus obtained and the target code amount NT are constant values ε.

【0031】[0031]

【数4】 ならばスケールファクタをαP とする。プリスキャン終
了後フィールドメモリ11から再度第Nフレームの画像
信号を全て読みだし、量子化、および符号化する。ま
た、
[Equation 4] If so, the scale factor is αP. After the prescan is completed, all the image signals of the Nth frame are read again from the field memory 11 and are quantized and encoded. Also,

【0032】[0032]

【数5】 ならば再度水平、垂直共に1/4ブロックのデータがフ
ィールドメモリ11より読み出され(第2プリスキャ
ン)、スケールファクタをα1 として量子化回路16で
量子化され、符号化回路18でハフマン符号化後、符号
量累積回路20で符号量を求める。
[Equation 5] In that case, the horizontal and vertical 1/4 block data is read again from the field memory 11 (second prescan), quantized by the quantization circuit 16 with the scale factor α1, and Huffman coded by the coding circuit 18. After that, the code amount accumulating circuit 20 obtains the code amount.

【0033】この符号量を16倍して全ブロックの符号
量を推定する。こうして求めた符号量N1 とし、式
(1)により符号化時のスケールファクタαT を求め、
フィールドメモリ11から再度第Nフィールドの画像信
号をすべて読みだし、量子化、符号化する。
This code amount is multiplied by 16 to estimate the code amount of all blocks. With the code amount N1 thus obtained, the scale factor αT at the time of encoding is obtained by the equation (1),
All the image signals of the Nth field are read again from the field memory 11 and are quantized and encoded.

【0034】[0034]

【数6】 の場合も同様である。[Equation 6] The same is true for.

【0035】一方、第N+1フィールドの期間フィール
ドメモリ12に第N+1フィールドの入力信号を書き込
み、第N+1フィールドの画像信号に対するスケールフ
ァクタを求める。このときは第Nフィールドで使用した
スケールファクタが最初に用いられる。スケールファク
タαT が求められた後、第N+1フィールドの画像信号
の符号化が第N+2フィールド期間に行われる。この実
施例では第2プリスキャン時にはスケールファクタをα
1 、あるいはα2 としたが、より精度の高いスケールフ
ァクタを推定するためには、
On the other hand, the input signal of the (N + 1) th field is written in the field memory 12 of the (N + 1) th field to obtain the scale factor for the image signal of the (N + 1) th field. In this case, the scale factor used in the Nth field is used first. After the scale factor α T is obtained, the image signal of the (N + 1) th field is encoded in the (N + 2) th field period. In this embodiment, the scale factor is α during the second prescan.
Although it was set to 1 or α2, in order to estimate a more accurate scale factor,

【0036】[0036]

【数7】 のように第1プリスキャン時の推定符号量に応じて第2
プリスキャン時のスケールファクタを変えて行う。
[Equation 7] As shown in FIG.
Change the scale factor during prescan.

【0037】ここで、輝度信号の1フィールドの有効画
素数を768×240画素とし、フィールドメモリの書
き込み、読み出しクロックを4fsc(fsc:NTS
C信号のサブキャリア周波数=3.5795…M H
z)とすると、フィールドメモリからの読み出し時間は
約12.9msとなる。
Here, the number of effective pixels in one field of the luminance signal is 768 × 240 pixels, and the writing / reading clock of the field memory is 4 fsc (fsc: NTS).
C signal subcarrier frequency = 3.5795 ... MH
z), the read time from the field memory is about 12.9 ms.

【0038】一方、1フィールド期間は約16.6ms
であるので、3.7msは符号量の推定のために利用で
きる。1/16の画像をフィールドメモリから読み出す
のに約0.8ms必要であるため、符号量の推定のため
のプリスキャンは最大4回まで可能である。前述の例で
は、全フィールドと同一の場合は1回、異なる場合は2
回のプリスキャンを行い、符号化時のスケールファクタ
を決定してした。最大4回までのプリスキャンが可能な
場合は、たとえば図8に示すような条件の時、次の
(3)式で符号化時のスケールファクタを決定する。
On the other hand, one field period is about 16.6 ms.
Therefore, 3.7 ms can be used for estimating the code amount. Since it takes about 0.8 ms to read a 1/16 image from the field memory, the prescan for estimating the code amount can be performed up to 4 times. In the above example, once if all fields are the same, 2 if they are different.
The pre-scan was performed once to determine the scale factor for encoding. When the pre-scan can be performed up to four times, under the conditions shown in FIG. 8, for example, the scale factor at the time of encoding is determined by the following equation (3).

【0039】[0039]

【数8】 [Equation 8]

【0040】このようにして求めたスケールファクタを
使うことにより、更に正確な符号量の制御が可能であ
る。さらにプリスキャンの回数を固定としても良いが、
たとえば、目標符号量との許容誤差をδと定め、δが
By using the scale factor thus obtained, it is possible to control the code amount more accurately. Furthermore, the number of prescans may be fixed,
For example, the allowable error from the target code amount is defined as δ, and δ is

【0041】[0041]

【数9】 となったらプリスキャンを止め、スケールファクタを算
出しても良い。
[Equation 9] If, the prescan may be stopped and the scale factor may be calculated.

【0042】またこれまでの説明では、フィールドメモ
リを使用したシステムであったが、これに替わり、フレ
ームメモリを使用し、インターレース化されたフィール
ド信号をフレーム化した後、フレーム符号化する場合で
も同様である。
In the above description, the system uses the field memory, but instead of this, the same applies to the case where the frame memory is used and the interlaced field signal is framed and then frame-encoded. Is.

【0043】このように、この実施例においては、符号
量の推定時において全画面の1/16のブロックデータ
を読み出すだけのためで、ブランキング期間でスケール
ファクタを求めることができ、動画の符号化が可能であ
る。
As described above, in this embodiment, since only 1/16 block data of the entire screen is read at the time of estimating the code amount, the scale factor can be obtained in the blanking period, and the code of the moving image can be obtained. Is possible.

【0044】[0044]

【発明の効果】以上説明したように、この発明によれ
ば、画像信号の符号化に先立ち、全画面の一部のみのブ
ロックを使って符号量の推定を行っており、入力信号の
ブランキング時間に量子化特性が決定できるため、動画
を実時間で、高画質で符号化することができる。
As described above, according to the present invention, the code amount is estimated by using only a part of the block of the entire screen before the image signal is encoded, and the blanking of the input signal is performed. Since the quantization characteristic can be determined in time, the moving image can be encoded in real time with high image quality.

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

【図1】この発明の一実施例の画像符号化装置のブロッ
ク図である。
FIG. 1 is a block diagram of an image coding apparatus according to an embodiment of the present invention.

【図2】入力画像の画素配列の一例を説明する図であ
る。
FIG. 2 is a diagram illustrating an example of a pixel array of an input image.

【図3】直行変換後の各係数の位置を説明する図であ
る。
FIG. 3 is a diagram for explaining the position of each coefficient after orthogonal transform.

【図4】ハフマン符号の一例を示す図である。FIG. 4 is a diagram showing an example of a Huffman code.

【図5】符号量推定のために使用するブロックの取り方
を説明する図である。
FIG. 5 is a diagram for explaining how to take blocks used for code amount estimation.

【図6】基本量子化テーブルの一例を示す図である。FIG. 6 is a diagram showing an example of a basic quantization table.

【図7】符号化動作シーケンスを説明するための図であ
る。
FIG. 7 is a diagram for explaining an encoding operation sequence.

【図8】プリスキャンと推定符号量の関係を説明する図
である。
FIG. 8 is a diagram illustrating the relationship between prescan and estimated code amount.

【図9】従来の画像符号化装置の一例を示す図である。FIG. 9 is a diagram showing an example of a conventional image encoding device.

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

11、12…フィールドメモリ、13…制御回路、14
…ブロック分割回路、15…DCT回路、16…量子化
回路、17…ジグザグスキャン回路、18…符号化回
路、19…ハフマンテーブル、20…符号量累積回路、
21…α計算回路、24…基本量子化テーブル。
11, 12 ... Field memory, 13 ... Control circuit, 14
... Block division circuit, 15 ... DCT circuit, 16 ... Quantization circuit, 17 ... Zigzag scan circuit, 18 ... Encoding circuit, 19 ... Huffman table, 20 ... Code amount accumulating circuit,
21 ... α calculation circuit, 24 ... Basic quantization table.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ディジタル画像信号を所定の符号化特性
で符号化する符号化手段と、 符号量の推定時に、前記ディジタル画像信号の一部を、
前記符号化手段に与え、画像を分割する手段と、 符号量の推定時に、前記符号化手段によって得られた符
号量の直前に符号化を行った画像符号化特性を含む複数
回の符号化によって得られた各符号化出力の符号量を推
定すると共に、推定した符号量と目標とする符号量とか
ら最適符号化特性を決定する手段とを具備したことを特
徴とする画像符号化装置。
1. A coding means for coding a digital image signal with a predetermined coding characteristic, and a part of the digital image signal when estimating the code amount,
Means for dividing the image, which is given to the encoding means, and a plurality of times of encoding including an image encoding characteristic in which the encoding is performed immediately before the encoding amount obtained by the encoding means at the time of estimating the encoding amount. An image coding apparatus, comprising: a means for estimating a code amount of each of the obtained coded outputs, and for determining an optimum coding characteristic from the estimated code amount and a target code amount.
【請求項2】 ディジタル画像信号を複数の画素毎にブ
ロック化して得たブロックデータを、直交変換して変換
係数を求める手段と、 前記手段により求めた変換係数を入力し、所定の量子化
特性により量子化して出力する量子化手段と、 前記量子化手段により前記変換係数を可変長符号化する
第1の符号化手段と、 符号量推定時に、前記ブロックデータの一部について変
換係数を求めて前記量子化手段に与え、画像を分割する
手段と、 可変長符号化出力の符号量から総符号量を推定し、推定
した符号量と目標とする符号量から前記量子化特性を変
更して所定回の符号化を行う第2の符号化手段と、 前記第2の符号化手段によって得られた符号量の直前に
符号化を行った画像符号化特性を含む所定回の符号化に
よって得られた各符号化出力の符号量から総符号量を推
定し、推定した符号量と目標とする符号量とから最適符
号化特性を決定する手段とを具備したことを特徴とする
画像符号化装置。
2. A unit for obtaining a transform coefficient by orthogonally transforming block data obtained by dividing a digital image signal into blocks for each of a plurality of pixels, and a transform coefficient obtained by the unit, which is input, and a predetermined quantization characteristic. Quantizing means for quantizing and outputting by the quantizing means, first coding means for variable-length coding the transform coefficient by the quantizing means, and obtaining a transform coefficient for a part of the block data at the time of code amount estimation. Means for dividing the image given to the quantizing means, estimating the total code amount from the code amount of the variable-length coded output, and changing the quantization characteristic from the estimated code amount and the target code amount to obtain a predetermined value. A second encoding means for performing the encoding once, and a predetermined number of encodings including the image encoding characteristic of the encoding amount immediately before the code amount obtained by the second encoding means. For each encoded output It estimates the total code amount from issue amount, the image encoding device characterized by comprising a means for determining the optimal coding properties from the estimated code amount and the target to code amount.
【請求項3】 ディジタル画像信号を複数の画素毎にブ
ロック化して得たブロックデータを、直交変換して変換
係数を求める手段と、 前記手段により求めた変換係数を入力し、所定の量子化
特性により量子化して出力する量子化手段と、 前記量子化手段により前記変換係数を可変長符号化する
符号化手段と、 前記符号化手段によって得られた符号量の直前に符号化
を行った画像の符号化特性により、前記ブロックデータ
の一部について得られた可変長符号化出力の符号量から
総符号量を推定する符号量推定手段と、 前記符号量推定手段により推定した符号量と目標とする
符号量との差が許容値以内であれば、直前に符号化を行
った画像の符号化特性を最適符号化特性として決定する
手段とを具備したことを特徴とする画像符号化装置。
3. A unit for obtaining a transform coefficient by orthogonally transforming block data obtained by dividing a digital image signal into a plurality of pixels into blocks, and a transform coefficient obtained by the unit is inputted and a predetermined quantization characteristic is inputted. Quantizing means for quantizing and outputting by the quantizing means, coding means for variable-length coding the transform coefficient by the quantizing means, and an image coded immediately before the code amount obtained by the coding means. A code amount estimating means for estimating a total code amount from a code amount of a variable length coded output obtained for a part of the block data according to the encoding characteristic, and a code amount estimated by the code amount estimating means and a target. An image coding apparatus, comprising: means for determining the coding characteristic of an image coded immediately before as the optimum coding characteristic if the difference from the code amount is within an allowable value.
【請求項4】 ディジタル画像信号を複数の画素毎にブ
ロック化して得たブロックデータを、直交変換して変換
係数を求める手段と、 前記手段により求めた変換係数を入力し、所定の量子化
特性により量子化して出力する量子化手段と、 前記量子化手段により前記変換係数を可変長符号化する
符号化手段と、 前記符号化手段によって得られた符号量の直前に符号化
を行った画像の符号化特性により、前記ブロックデータ
の一部について得られた可変長符号化出力の符号量から
総符号量を推定する符号量推定手段と、 前記符号量推定手段により推定した符号量と目標とする
符号量との差が許容値以上であれば、再度符号化特性を
変更する手段と、 前記符号量推定手段により総符号量を推定し、前記直前
に符号化を行った画像の符号化特性と符号化特性を変更
したときの符号化特性とから最適符号化特性を決定する
手段とを具備したことを特徴とする画像符号化装置。
4. A unit for obtaining a transform coefficient by orthogonally transforming block data obtained by dividing a digital image signal into blocks for each of a plurality of pixels, and a transform coefficient obtained by the unit is input and a predetermined quantization characteristic is input. Quantizing means for quantizing and outputting by the quantizing means, coding means for variable-length coding the transform coefficient by the quantizing means, and an image coded immediately before the code amount obtained by the coding means. A code amount estimating means for estimating a total code amount from a code amount of a variable length coded output obtained for a part of the block data according to the encoding characteristic, and a code amount estimated by the code amount estimating means and a target. If the difference from the code amount is equal to or more than the allowable value, a unit for changing the encoding characteristic again, the total code amount estimated by the code amount estimating unit, and the encoding characteristic of the image encoded immediately before Mark Image encoding apparatus characterized by comprising a means for determining the optimal coding property from the encoded characteristic when changing the properties.
【請求項5】 ディジタル画像信号を複数の画素毎にブ
ロック化して得たブロックデータを、直交変換して変換
係数を求める手段と、 前記手段により求めた変換係数を入力し、所定の量子化
特性により量子化して出力する量子化手段と、 前記量子化手段により前記変換係数を可変長符号化する
符号化手段と、 符号量推定時に、前記符号化手段によって得られた符号
量の直前に符号化を行った画像符号化特性で前記ブロッ
クデータの一部について得られた可変長符号化出力の符
号量から総符号量を推定する手段と、 前記手段により推定した符号量と目標とする符号量との
差により、符号化特性の変更量を変更する手段と、 前記ブロックデータのうちの一部のブロックデータにつ
いて、再度可変長符号化したときの可変長符号化出力の
符号を求めて総符号量を推定する手段と、 前記直前に符号化を行った画像の符号化特性と符号化特
性を変更したときの符号化特性とから最適符号化特性を
決定する手段とを具備したことを特徴とする画像符号化
装置。
5. A unit for obtaining a transform coefficient by orthogonally transforming block data obtained by dividing a digital image signal into a plurality of pixels into blocks, and a transform coefficient obtained by the unit is input and a predetermined quantization characteristic is input. Quantizing means for quantizing and outputting by the quantizing means, coding means for variable-length coding the transform coefficient by the quantizing means, and coding immediately before the code quantity obtained by the coding means at the time of code quantity estimation Means for estimating the total code amount from the code amount of the variable-length coded output obtained for a part of the block data by the image coding characteristic, and the code amount estimated by the means and the target code amount. Means for changing the amount of change in the coding characteristic, and a code of the variable-length coded output when the variable-length coding is performed again for a part of the block data of the block data. Means for estimating the total code amount, and means for determining the optimum coding characteristic from the coding characteristic of the image coded immediately before and the coding characteristic when the coding characteristic is changed. An image encoding device characterized by the above.
JP4180229A 1992-07-08 1992-07-08 Picture coding device Pending JPH0630392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4180229A JPH0630392A (en) 1992-07-08 1992-07-08 Picture coding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4180229A JPH0630392A (en) 1992-07-08 1992-07-08 Picture coding device

Publications (1)

Publication Number Publication Date
JPH0630392A true JPH0630392A (en) 1994-02-04

Family

ID=16079639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4180229A Pending JPH0630392A (en) 1992-07-08 1992-07-08 Picture coding device

Country Status (1)

Country Link
JP (1) JPH0630392A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4885272A (en) * 1988-05-06 1989-12-05 Eastman Kodak Company Thiadiazolyl-azo-pyrazole yellow dye-donor element for thermal dye transfer
US8538174B2 (en) 2004-04-22 2013-09-17 Sony Corporation Image processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4885272A (en) * 1988-05-06 1989-12-05 Eastman Kodak Company Thiadiazolyl-azo-pyrazole yellow dye-donor element for thermal dye transfer
US8538174B2 (en) 2004-04-22 2013-09-17 Sony Corporation Image processing device

Similar Documents

Publication Publication Date Title
US5517583A (en) Image encoding method and apparatus
US5530478A (en) Image data compressing apparatus
JP2891772B2 (en) Digital image coding method using random scanning of image frames
JP2881886B2 (en) Video signal encoding method and apparatus therefor
US5592302A (en) Coding method for coding pixel blocks and apparatus therefor
US6584232B2 (en) Image encoding apparatus, image encoding method, and recording medium in which image encoding program is recorded
JP2921358B2 (en) Image coding device
JPH0563994A (en) Image data compressing encoder and method therefor
US5937100A (en) Two-pass image processing method and apparatus using virtual estimation for compressed file size
US7903734B2 (en) Moving image decoding apparatus, moving image decoding method, image decoding method, and image decoding apparatus
US5793898A (en) Data compressing system
JPH0832037B2 (en) Image data compression device
JPH0418857A (en) Picture data compression system
JP2793402B2 (en) Image coding device
JPH04229382A (en) Method and device for resolution conversion of digital image data
JPH0630392A (en) Picture coding device
JPH0556273A (en) Image coder
JP3128336B2 (en) Video encoding device
JPH0752951B2 (en) Image data compression processing method and apparatus
JPH0898175A (en) Picture encoding device
JPH0435268A (en) Picture code quantity prediction system and picture coding system
JPH0575867A (en) Image data coder
JPH07115668A (en) Device and method for compressing image
JPH05167858A (en) Image data compressing/encoding device
JPH0448873A (en) Picture data recording system