JPH06105297A - Encoder - Google Patents

Encoder

Info

Publication number
JPH06105297A
JPH06105297A JP25099592A JP25099592A JPH06105297A JP H06105297 A JPH06105297 A JP H06105297A JP 25099592 A JP25099592 A JP 25099592A JP 25099592 A JP25099592 A JP 25099592A JP H06105297 A JPH06105297 A JP H06105297A
Authority
JP
Japan
Prior art keywords
value
zero
code length
quantized value
block
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
JP25099592A
Other languages
Japanese (ja)
Other versions
JP3024386B2 (en
Inventor
Taichi Gyotoku
太一 行徳
Tatsuro Shigesato
達郎 重里
Masaru Nakahama
勝 中濱
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP25099592A priority Critical patent/JP3024386B2/en
Publication of JPH06105297A publication Critical patent/JPH06105297A/en
Application granted granted Critical
Publication of JP3024386B2 publication Critical patent/JP3024386B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To reduce a circuit scale by limiting the input value of a code length calculator which calculates a code length after encoding within a prescribed range. CONSTITUTION:Whether a quantized value inputted from an input terminal 1 is '0' or not is judged by a zero detector 2. When the quantized value is 0, the zero detector 2 outputs '1', and when the quantized value is not 0, the zero detector 2 outputs '0', and the zero detector 2 controls a zero run counter 3 and a cumulative adder 7. The zero run counter 3 counts the number of clocks while the zero detector 2 outputs '1', and the quantized value and the count value are rounded by limiters 4 and 5. Then, the code length is calculated by a code length calculator 6 by using the outputs of the limiters 4 and 5. The calculated code length is computed by the cumulative adder 7 synchronously with the clock when the output of the zero detector 2 is '0'. After the cumulative addition of one DCT block is ended, the cumulative added result is stored in a register 8. A cumulative adder 9 operates the cumulative addition processing to the output value of the register 8.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像情報や音声情報を
可変長符号化を行う符号化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding device for variable length coding image information and audio information.

【0002】[0002]

【従来の技術】近年、画像信号のデジタル化にともなっ
て高能率符号化技術が重要になってきている。高能率符
号化の有効な手段として、直交変換符号化が代表的であ
り、最近よく使用され始めている。直交変換とは入力さ
れる時系列信号を直交する成分(たとえば周波数成分)
に変換するもので、フーリエ変換、離散コサイン変換
(以下DCTという)、アダマール変換等が有名であ
る。特にDCTは画像情報に適した直交変換として注目
されている。
2. Description of the Related Art In recent years, with the digitization of image signals, high efficiency coding technology has become important. Orthogonal transform coding is typical as an effective means of high-efficiency coding, and has recently started to be widely used. Orthogonal transformation is a component that orthogonalizes the input time-series signal (eg, frequency component)
Fourier transform, discrete cosine transform (hereinafter referred to as DCT), Hadamard transform and the like are well known. In particular, DCT is drawing attention as an orthogonal transform suitable for image information.

【0003】この符号化装置としては、たとえば図2の
ブロック図に示すものがある。図において、10は小ブ
ロック化部、11は大ブロック化部、12は直交変換
器、13はデータ量見積部、14は量子化器決定部、1
5はデータバッファ、16は量子化部、17は可変長符
号化器、18は伝送部である。
An example of this encoding device is shown in the block diagram of FIG. In the figure, 10 is a small block conversion unit, 11 is a large block conversion unit, 12 is an orthogonal transformer, 13 is a data amount estimation unit, 14 is a quantizer determination unit, 1
5 is a data buffer, 16 is a quantizer, 17 is a variable length encoder, and 18 is a transmitter.

【0004】小ブロック化部10は入力された画像信号
を水平8画素・垂直8画素の合計64画素の二次元ブロ
ックの小ブロック(この小ブロックが以降の信号処理の
最小単位となる)に分割する。各小ブロックは大ブロッ
ク化部11で30個の小ブロックの集合毎に1つの大ブ
ロックにまとめられる。図3は大ブロック化部の構成図
で、19は輝度(Y)信号入力部、20は色差信号R−
Y(CR)入力部、21は色差信号B−Y(CB)入力
部、22はフレームメモリ、23はアドレスコントロー
ラである。輝度(Y)信号入力部19、色差信号R−Y
(CR)入力部20、色差信号B−Y(CB)入力部21
より入力される小ブロック毎の標本値はフレームメモリ
22に一度蓄積され、アドレスコントローラ23に従っ
て30個の小ブロックからなる大ブロック毎に直交変換
器12に出力される。
The small block forming unit 10 divides the input image signal into small blocks of a two-dimensional block having a total of 64 pixels of horizontal 8 pixels and vertical 8 pixels (this small block is the minimum unit for the subsequent signal processing). To do. The small blocks are grouped into one large block by the large block converting unit 11 for each set of 30 small blocks. FIG. 3 is a block diagram of a large-blocking section, in which 19 is a luminance (Y) signal input section and 20 is a color difference signal R-.
Y (C R) input unit, 21 color difference signal B-Y (C B) input unit, 22 frame memory, 23 an address controller. Luminance (Y) signal input unit 19, color difference signal RY
(C R ) input unit 20, color difference signal BY (C B ) input unit 21
The input sample value for each small block is once stored in the frame memory 22, and is output to the orthogonal transformer 12 for each large block consisting of 30 small blocks according to the address controller 23.

【0005】ここで図4の斜線で示されるブロックが小
ブロックを示しており、画面上のさまざまな位置のこの
小ブロックをシャフリングするように30個集めて一つ
の大ブロックを構成する。このようにシャフリングする
ことによって画面上の情報量が分散されるため、各大ブ
ロックに含まれる情報量は大体等しくなる。したがって
画面上で場所によって情報量に偏りがある場合にも、効
率よく圧縮できるようになっている。
Here, the shaded blocks in FIG. 4 indicate small blocks, and 30 small blocks at various positions on the screen are shuffled together to form one large block. Since the amount of information on the screen is dispersed by such shuffling, the amount of information included in each large block becomes approximately equal. Therefore, even if the amount of information is biased depending on the location on the screen, the information can be efficiently compressed.

【0006】直交変換器12は、入力される小ブロック
化された標本値をその単位毎にディスクリート・コサイ
ン変換(DCT)によって二次元の直交変換を行う。直
交変換器12では、まず小ブロックの水平方向にDCT
され、次に水平方向にDCTされた直交成分は、直交変
換器12に内蔵された水平垂直並べ換え部(図示せず)
で垂直方向に並べ換えられた後、垂直方向にDCTされ
る。このような二次元直交変換し、周波数の低い成分か
ら順に並べたものが図5である。図5では左上を水平垂
直ともに、もっとも低い周波数成分に対応し、右側ほど
水平方向に高い周波数を表す直交成分を、左側ほど水平
方向に低い周波数を表す直交成分が配置されている。図
5の番号は上記のように配置された直交成分の出力番号
を示している。したがって、このように二次元DCTさ
れた小ブロック(以下DCTブロックという)毎の直交
成分は、水平方向、垂直方向ともに低域を表す直交成分
から順番にバッファ15およびデータ量見積部13に大
ブロック単位で入力される。
The orthogonal transformer 12 performs a two-dimensional orthogonal transformation on the input small-block sample value by discrete cosine transform (DCT) for each unit. In the orthogonal transformer 12, first, DCT is performed in the horizontal direction of the small block.
The orthogonal component that has been subjected to DCT in the horizontal direction next is a horizontal / vertical rearrangement unit (not shown) built in the orthogonal transformer 12.
After being rearranged in the vertical direction, DCT is performed in the vertical direction. FIG. 5 shows such two-dimensional orthogonal transformations, which are arranged in order from the lowest frequency component. In FIG. 5, the upper left corresponds to the lowest frequency component both in the horizontal and vertical directions, the orthogonal component indicating the higher frequency in the horizontal direction is arranged on the right side, and the orthogonal component indicating the lower frequency in the horizontal direction is arranged on the left side. The numbers in FIG. 5 indicate the output numbers of the orthogonal components arranged as described above. Therefore, the orthogonal components of each of the small blocks (hereinafter referred to as DCT blocks) subjected to the two-dimensional DCT in this manner are sequentially supplied to the buffer 15 and the data amount estimation unit 13 in the large blocks in the horizontal and vertical directions from the orthogonal component representing the low frequency band. Entered in units.

【0007】データ見積部13では、そこであらかじめ
準備された16個の量子化器に対する小ブロック単位で
の可変長符号化後のデータ量が計算され、その結果にも
とづいて、量子化器決定部14で、すべての小ブロック
のデータ量の合計が伝送可能な総データ量を越えないよ
うに、小ブロック毎の量子化器が決定される。同時にバ
ッファ15に入力された直交成分は量子化器が決定され
るまで遅延させられる。バッファ15から出力される直
交成分は、量子化部16で量子化器決定部14によって
決定(選択)される量子化器を用いて量子化される。
The data estimating unit 13 calculates the amount of data after variable length coding in small block units for the 16 quantizers prepared in advance, and based on the result, the quantizer determining unit 14 Then, the quantizer for each small block is determined so that the total amount of data of all small blocks does not exceed the total amount of data that can be transmitted. At the same time, the orthogonal components input to the buffer 15 are delayed until the quantizer is determined. The quadrature component output from the buffer 15 is quantized by the quantizer 16 using the quantizer determined (selected) by the quantizer determination unit 14.

【0008】ところで、一般に人間の視覚は低域成分の
歪に敏感で、高域成分の歪には鈍感であるため、高域成
分ほど量子化幅の大きな量子化を行うことによって、視
覚上劣化を小さくしながら圧縮率を改善することができ
る。このため、16種類の量子化器からなる量子化部1
6では、図6に示すように(8×8)DCTブロックの
直交成分をDC成分(斜線の部分)を除いて四つの帯域
(図中の番号は各帯域の番号を示す)に分割し、16の
量子化器におけるこの帯域と量子化とに一定の関係を持
たせている。その帯域と量子化の関係を表1に示す。
By the way, since human vision is generally sensitive to distortion of low-frequency components and is insensitive to distortion of high-frequency components, visual deterioration is caused by performing quantization with a larger quantization width for higher-frequency components. It is possible to improve the compression ratio while reducing Therefore, the quantizer 1 including 16 kinds of quantizers
In FIG. 6, the orthogonal component of the (8 × 8) DCT block is divided into four bands (the numbers in the figure indicate the numbers of the respective bands) except for the DC component (hatched portion), as shown in FIG. There is a fixed relationship between this band and the quantization in the 16 quantizers. Table 1 shows the relationship between the band and the quantization.

【0009】[0009]

【表1】 [Table 1]

【0010】表1において、縦方向が量子化器No(量
子化No)を、横方向が四つの帯域を示している。すな
わち、それぞれの量子化器は図6に示す四つの帯域に対
する量子化の組み合わせで構成されることを示してい
る。また、表中の分数は量子化器と帯域に対する量子化
で実行される乗算の乗数を示している。
In Table 1, the vertical direction indicates a quantizer No (quantization No) and the horizontal direction indicates four bands. That is, each quantizer is configured by a combination of quantizations for the four bands shown in FIG. In addition, the fractions in the table indicate multipliers of multiplications performed by the quantizer and the quantization for the band.

【0011】次に、量子化部16で量子化されたデータ
は可変長符号化器17で可変長符号化された後、伝送部
18を介して出力される。
Next, the data quantized by the quantizer 16 is variable-length coded by the variable-length encoder 17 and then output via the transmitter 18.

【0012】図7は大ブロック化されたDCTブロック
の伝送順番を示している。各DCTブロックは図に示す
DCTNo順、すなわち、 Y→Y→CR→Y→Y→CB→Y→Y→CR→Y→Y→CB
→ … 順に伝送される。ここで、Yは輝度信号のDCTブロッ
ク、CRはR−Y信号のDCTブロック、CBはB−Y信
号のDCTブロックである。
FIG. 7 shows the transmission order of the large block DCT blocks. Each DCT block DCTNo order shown, i.e., Y → Y → C R → Y → Y → C B → Y → Y → C R → Y → Y → C B
→… Transmitted in order. Here, Y is DCT block of the luminance signal, the C R DCT block of R-Y signal, the C B is a DCT block of B-Y signal.

【0013】また、大ブロックは再生時のエラー修整
(大きなエラーが発生すると次に示すブロック毎に、エ
ラーのあったブロックが前のブロックデータに置き替え
る)のことを考慮にいれて、伝送部18で図のように二
つのブロック(第1ブロックを前半15DCTブロッ
ク、第2ブロックを後半15DCTブロックという)に
分けて伝送される。
Further, in consideration of the error correction at the time of reproduction of a large block (when a large error occurs, the block having an error is replaced with the previous block data for each block shown below), the transmission unit is considered. In 18 as shown in the figure, the data is divided into two blocks (the first block is called the first half 15DCT block and the second block is called the second half 15DCT block) and transmitted.

【0014】[0014]

【発明が解決しようする課題】上記のように構成された
符号化装置においてデータ量見積りは、以下のように行
っている。
In the encoding device configured as described above, the data amount is estimated as follows.

【0015】図8にデータ量見積り部の計算回路のブロ
ック図を示す。また、この符号化装置で用いる可変長符
号化は、ゼロの値を持つ量子化値に対して、その量子化
値以後の連続するゼロ(ゼロラン)の量子化値の数(ゼ
ロランレングス)と、それに続く量子化値の2種類のデ
ータをまとめて、一つの符号語に符号化する方法であ
る。このように、連続するゼロの長さとゼロでない量子
化値をまとめて一つの符号語に符号化することによっ
て、ゼロの生起確率が高い直交成分の量子化値を効率よ
く符号化することができる。
FIG. 8 shows a block diagram of the calculation circuit of the data amount estimation unit. In addition, the variable length coding used in this coding apparatus is such that, for a quantized value having a value of zero, the number of consecutive quantized values of zero (zero run) after the quantized value (zero run length) and , And the following two types of quantized data are combined and encoded into one codeword. In this way, by encoding the length of consecutive zeros and the non-zero quantized value together into one codeword, it is possible to efficiently code the quantized value of the orthogonal component having a high occurrence probability of zero. .

【0016】図8において24は、表1に示す16種類
の量子化器で量子化された量子化値が入力される入力端
子、25は量子化値が0ならば‘1’を出力し、その信
号をもとに後述するゼロランカウンタ26および累積加
算器28を制御するゼロ検出器、26はゼロ検出器25
の出力が‘1’の期間クロックを数え、‘0’ならばリ
セットするゼロランカウンタである。つまり連続するゼ
ロの量子化値の数をカウントしていることを意味する。
27は符号化後の符号長を算出する符号長算出器、28
はゼロ検出器25の出力が‘0’ならば演算を行うよう
に構成され、DCTブロック単位の符号長を累積演算す
る累積加算器、29は累積加算器28の出力であるDC
Tブロック単位の符号長の合計を記憶するレジスタ、3
0は、DCTブロック単位の符号長の合計であるレジス
タ29の出力値を累積加算をする累積加算器である。
In FIG. 8, reference numeral 24 denotes an input terminal to which the quantized values quantized by the 16 kinds of quantizers shown in Table 1 are input, and 25 outputs "1" if the quantized value is 0, A zero detector for controlling a zero run counter 26 and a cumulative adder 28, which will be described later, based on the signal, 26 is a zero detector 25.
Is a zero-run counter that counts clocks for a period of "1" when it is output and resets it when it is "0". That is, it means that the number of consecutive quantized values of zero is counted.
27 is a code length calculator for calculating the code length after encoding, 28
Is a cumulative adder configured to perform calculation if the output of the zero detector 25 is '0', and 29 is a DC output of the cumulative adder 28.
A register that stores the total code length in T blocks, 3
0 is a cumulative adder for cumulatively adding the output value of the register 29, which is the sum of the code lengths in DCT block units.

【0017】このデータ量見積り部の計算回路の動作を
説明するためのタイミングを図9に示す。同図におい
て、(a)はシステムのクロック、(b)はDCTブロ
ック単位の最初の量子化値を示すスタート信号、(c)
は入力端子24から入力される量子化値、(d)はゼロ
検出器25の出力、(e)はゼロランカウンタ26の出
力、(f)は符号長算出器27の出力、(g)は累積加
算器28の演算結果である。一例として、下記のような
量子化値が入力端子24から順に、 10→0→0→16→3→0→9→ … と入力された場合について考える。ここで、符号化は、
ゼロランとそれに続く量子化値を(i,j)で表現する
(ただし、i:ゼロランレングス、j:量子化値)と、
この(i,j)単位で行われる。上記の場合、下のよう
な順で符号化が行われる。
FIG. 9 shows the timing for explaining the operation of the calculation circuit of the data amount estimation unit. In the figure, (a) is the system clock, (b) is a start signal indicating the first quantized value in DCT block units, (c)
Is the quantized value input from the input terminal 24, (d) is the output of the zero detector 25, (e) is the output of the zero run counter 26, (f) is the output of the code length calculator 27, and (g) is This is the calculation result of the cumulative adder 28. As an example, consider a case where the following quantized values are sequentially input from the input terminal 24 as 10 → 0 → 0 → 16 → 3 → 0 → 9 → .... Here, the encoding is
Zero run and the quantized value following it are represented by (i, j) (where i: zero run length, j: quantized value),
This is performed in units of (i, j). In the above case, encoding is performed in the following order.

【0018】 (0,10)→(2,16)→(0,3)→(1,9)
→ … 以下に図8および図9を用いて動作を説明する。
(0,10) → (2,16) → (0,3) → (1,9)
→ ... The operation will be described below with reference to FIGS. 8 and 9.

【0019】小ブロックの先頭フラグ発生装置(図示せ
ず)からスタート信号が出力され、スタート信号‘1’
のときクロックと同期して小ブロック単位の最初の量子
化値10が入力端子24から入力されると同時に、ゼロ
ランカウンタ26、および累積加算記28をクロックと
同期して0にリセットする。このときの時刻をt0とす
る。符号長算出器27には、表2にしたがって符号長を
算出する。
A start signal is output from a start flag generator (not shown) of the small block, and the start signal is "1".
At the same time, the first quantized value 10 in small block units is input from the input terminal 24 in synchronization with the clock, and at the same time, the zero-run counter 26 and the cumulative addition 28 are reset to 0 in synchronization with the clock. The time at this time is t 0 . The code length calculator 27 calculates the code length according to Table 2.

【0020】[0020]

【表2】 [Table 2]

【0021】表2は、ゼロランレングスとそれに続く量
子化値に対応する符号語の符号長を示すテーブルであ
る。縦軸にゼロランカウンタ26からの出力値、横軸に
入力端子24から入力される量子化値を示し、その交点
が符号語の符号長を示す。この場合、ゼロランカウンタ
26からの出力値が0で、入力端子24から量子化値が
10であるため(0,10)、符号語の符号長は8が出
力される。次のクロックの立ち上がり時刻t1でゼロ検
出器25の出力が‘0’であるため、累積加算器28で
(0+8=8)演算される。また、同時刻に入力端子2
4から次の量子化値0が入力される。この場合量子化値
が0であるためゼロ検出器25は‘1’を出力する。ま
た、符号長算出器27には、(0、0)が入力され、そ
れに対応する符号長を出力するが、この場合はまだ、本
来の符号でない(ここで用いる可変長符号化は、ゼロラ
ンレングスとそれに続く量子化値をまとめて一つの符号
語に符号化を行なう)。したがって、符号長算出器27
の出力値(図中の‘×’は不定を示す)は不定である。
次のクロックの立ち上がり時刻t2ではゼロ検出器25
の出力が‘1’であるため、ゼロランカウンタ26を1
に動作されるが、累積加算器28は演算されず、時刻t
1の状態を保持される。次に、時刻t3になると量子化値
16が入力される。ゼロ検出器25は、この時刻ではま
だ‘1’を出力しているため、ゼロランカウンタ26は
2にカウントアップされが、累積加算器28はまだt1
の状態を保持している。時刻t3,t4間に符号長算出器
27には、(2,16)が入力され、符号長21が算出
され、時刻t4で累積加算器28は、29に更新され
る。同様に、時刻t5で、累積加算器28は34と更新
して行く。
Table 2 is a table showing the code length of the codeword corresponding to the zero run length and the quantized value that follows it. The vertical axis represents the output value from the zero-run counter 26, the horizontal axis represents the quantized value input from the input terminal 24, and the intersection thereof represents the code length of the code word. In this case, since the output value from the zero run counter 26 is 0 and the quantized value is 10 from the input terminal 24 (0, 10), the code length of the code word is 8. Since the output of the zero detector 25 is “0” at the rising time t 1 of the next clock, the cumulative adder 28 calculates (0 + 8 = 8). At the same time, input terminal 2
The next quantized value 0 is input from 4. In this case, since the quantized value is 0, the zero detector 25 outputs "1". Further, (0, 0) is input to the code length calculator 27 and the code length corresponding to it is output, but in this case, it is not the original code (variable length coding used here is zero run). Encode length and subsequent quantized values into a single codeword). Therefore, the code length calculator 27
The output value of "(x" in the figure indicates indefinite) is indefinite.
At the rising time t 2 of the next clock, the zero detector 25
Output is '1', the zero run counter 26 is set to 1
However, the cumulative adder 28 is not operated and the time t
The state of 1 is retained. Next, at time t 3 , the quantized value 16 is input. Since the zero detector 25 still outputs "1" at this time, the zero run counter 26 is counted up to 2, but the cumulative adder 28 is still t 1.
Holds the state of. (2, 16) is input to the code length calculator 27 between times t 3 and t 4 , the code length 21 is calculated, and the cumulative adder 28 is updated to 29 at time t 4 . Similarly, at time t 5 , the cumulative adder 28 updates to 34.

【0022】上記に説明したタイミングで動作した回路
は、DCTブロックの量子化値の符号語の符号長の合計
をレジスタ29に記憶する。また、次のDCTブロック
の量子化値が入力端子24から入力される時刻t64に、
累積加算器30はレジスタ29の出力値と累積加算をす
る。このような動作を30DCTブロック繰り返し、3
0DCTブロックを一つのブロックとした大ブロックの
符号長の合計を求める。
The circuit operated at the timing described above stores the total code length of the code words of the quantized value of the DCT block in the register 29. Further, at time t 64 when the quantized value of the next DCT block is input from the input terminal 24,
The cumulative adder 30 performs cumulative addition with the output value of the register 29. Such operation is repeated for 30 DCT blocks, 3
The sum of the code lengths of the large blocks with the 0DCT block as one block is calculated.

【0023】したがって、上記で説明したようにゼロラ
ンレングスとそれに続く量子化値をまとめて一つの符号
語に符号化を行い、それに対応する符号長の算出が可能
で、かつデータ量の見積りができる。
Therefore, as described above, the zero run length and the subsequent quantized value are collectively encoded into one codeword, and the code length corresponding to the codeword can be calculated, and the data amount can be estimated. it can.

【0024】ところで、この符号化装置では、量子化部
16で量子化されて量子化値の値は、最大で255であ
り、また小ブロック化部10によって入力信号は、水平
8画素、垂直8画素からなるため、連続する量子化値0
の数は最大で63である(図5の1は、直流成分で、残
りは交流成分である。交流成分のみ量子化部16で量子
化される)。
By the way, in this encoding device, the maximum value of the quantized value after being quantized by the quantizer 16 is 255, and the input signal by the small blocker 10 is 8 pixels horizontally and 8 pixels vertically. Since it consists of pixels, the continuous quantization value 0
Is 63 at maximum (1 in FIG. 5 is a DC component, and the rest are AC components. Only the AC component is quantized by the quantization unit 16).

【0025】したがって、この符号長算出器27は2入
力信号として、量子化値(8bit)とゼロランカウンタ
(6bit)が入力される。また、この符号化装置では、
それぞれの量子化器でデータ量見積りを行なうため符号
長算出器27が16個必要となる。しかし、IC化を行
なう際に、上記の装置ではデータ量見積り部の計算回路
の規模部が大きくなり、回路削減が必要とされる。
Therefore, the quantized value (8 bits) and the zero run counter (6 bits) are input to the code length calculator 27 as two input signals. Also, in this encoding device,
16 code length calculators 27 are required to estimate the data amount in each quantizer. However, when integrated into an IC, the scale of the calculation circuit of the data amount estimation unit in the above device becomes large, and it is necessary to reduce the circuit.

【0026】本発明は、上記かかる従来の解決するもの
で、データ量見積り部の計算回路における回路規模を小
さくする符号化装置を提供する。
The present invention is to solve the above-mentioned conventional problems, and provides an encoding apparatus for reducing the circuit scale in the calculation circuit of the data amount estimation unit.

【0027】[0027]

【課題を解決するための手段】入力信号の標本値を集め
てm×nの画素毎にブロック化するブロック化手段と前
記ブロック化されたブロック毎に直交変換する直交変換
手段と、前記直交変換手段で得られる直交成分に対して
可変長符号化を行なう、もしくは前記直交成分を量子化
後に前記量子化値に対して可変長符号化を行う可変長符
号化手段を備えた符号化装置において、前記直交成分の
値もしくは、前記量子化値を所定範囲に制限するリミッ
タ手段と、前記リミッタ手段の出力によって前記可変長
符号化手段で得られる可変長符号語に対応する符号長を
算出する符号長算出手段とを備えたことを特徴とする符
号化装置。
Blocking means for collecting sampled values of an input signal into blocks for each of m × n pixels, orthogonal transforming means for orthogonally transforming each of the blocked blocks, and the orthogonal transforming. In an encoding device provided with a variable length encoding means for performing variable length encoding on the orthogonal component obtained by the means, or for performing variable length encoding on the quantized value after quantizing the orthogonal component, A limiter means for limiting the value of the orthogonal component or the quantized value to a predetermined range, and a code length for calculating a code length corresponding to a variable length code word obtained by the variable length coding means by the output of the limiter means. An encoding device comprising: a calculating unit.

【0028】[0028]

【作用】本発明は、上記した構成により、可変長符号化
後の符号語に対応する符号長の算出は直交成分、もしく
は、前記直交成分の量子化値を所定範囲に制限するリミ
ッタを設け、その出力値に用いて符号長を算出する。
According to the present invention, with the above configuration, the calculation of the code length corresponding to the code word after the variable length coding is provided with the orthogonal component or the limiter for limiting the quantized value of the orthogonal component to a predetermined range, The code length is calculated using the output value.

【0029】[0029]

【実施例】図1は本発明の一実施例における符号化装置
のデータ量見積り部のブロック図である。本実施例にお
いて、このデータ量見積り部以外は上記した従来の装置
と構成がほぼ同じであるので、同一機能のブロックに同
一符号を付している。
1 is a block diagram of a data amount estimating unit of an encoding apparatus according to an embodiment of the present invention. In the present embodiment, the configuration is almost the same as that of the above-described conventional device except for the data amount estimating unit, and therefore, the blocks having the same functions are designated by the same reference numerals.

【0030】図1において、1は、表1に示す16種類
の量子化器で量子化された量子化値が入力される入力端
子、2は量子化値が0であるならば‘1’を出力し、そ
の信号をもとに後述するゼロランカウンタ3および累積
加算器7を制御するゼロ検出器、3はゼロ検出器2の出
力が‘1’の期間クロックを数え、‘0’ならばリセッ
トするゼロランカウンタ、4は量子化値を所定範囲に制
限するリミッタ、5はカウント値を所定範囲に制限する
リミッタ、6は符号化後の符号長を算出する符号長算出
器、7はゼロ検出器2の出力が‘0’ならば演算を行
い、DCTブロック単位の符号長を演算する累積加算
器、8は累積加算器7の出力であるDCTブロック単位
の符号長を記憶するレジスタ、9はDCTブロック単位
の符号長の合計であるレジスタ8の出力値を累積加算を
する累積加算器である。
In FIG. 1, 1 is an input terminal to which the quantized values quantized by the 16 kinds of quantizers shown in Table 1 are input, and 2 is 1 if the quantized value is 0. The zero detector, which outputs the signal and controls the zero-run counter 3 and the cumulative adder 7 which will be described later based on the signal, counts the period clock when the output of the zero detector 2 is "1", and if it is "0". Zero-run counter for resetting, 4 is a limiter for limiting the quantized value within a predetermined range, 5 is a limiter for limiting the count value within a predetermined range, 6 is a code length calculator for calculating the code length after encoding, and 7 is zero. If the output of the detector 2 is "0", calculation is performed to calculate the code length of the DCT block unit, 8 is a register that stores the code length of the DCT block unit that is the output of the cumulative adder 7, 9 Is the total code length of DCT block unit The output value is the cumulative adder for cumulative addition.

【0031】ところで、表2に示した符号語の符号長を
示したテーブルをよく見ると、量子化値が20以上にな
ると、符号語の符号長はゼロランカウンタの出力値のみ
に依存し、ゼロランカウンタの出力値が15以上では、
量子化値のみに依存していることがわかる。したがっ
て、量子化値が20以上であるとその量子化値を20と
し、またゼロランカウンタの出力値が15以上であると
ゼロランカウンタの出力値を15に丸めても、符号長の
算出には問題がないことがわかる。つまり、量子化値ま
たはゼロランカウンタを所定範囲に制限することが可能
である。したがって、表2は表3のように変更できる。
By the way, looking closely at the table showing the code lengths of the code words shown in Table 2, when the quantization value becomes 20 or more, the code lengths of the code words depend only on the output value of the zero run counter, If the output value of the zero run counter is 15 or more,
It can be seen that it depends only on the quantized value. Therefore, if the quantized value is 20 or more, the quantized value is set to 20, and if the output value of the zero run counter is 15 or more, even if the output value of the zero run counter is rounded to 15, the code length can be calculated. Turns out to be fine. That is, it is possible to limit the quantized value or the zero run counter to a predetermined range. Therefore, Table 2 can be changed to Table 3.

【0032】[0032]

【表3】 [Table 3]

【0033】つまり、図1に示すように、リミッタ4で
量子化値が20以上であると20に丸め、またリミッタ
5でゼロランカウンタ3の出力値が15以上(ゼロラン
レングスが15以上)であると15に丸めると、符号長
算出器6に入力する信号は量子化値5bitとゼロランカ
ウンタの出力値4bitになる。つまり、従来の量子化値
8bitとゼロランカウンタの出力値6bitの入力による符
号長算出器27とを比較すると、約100ゲート近く削
減可能である(この符号化装置では、16×約100ゲ
ート)。
That is, as shown in FIG. 1, if the quantized value of the limiter 4 is 20 or more, it is rounded to 20, and the output value of the zero run counter 3 is 15 or more (zero run length is 15 or more) by the limiter 5. If rounded to 15, the signal input to the code length calculator 6 has a quantized value of 5 bits and a zero run counter output value of 4 bits. In other words, when comparing the conventional quantized value of 8 bits and the code length calculator 27 with the input of the output value of the zero run counter of 6 bits, it is possible to reduce the number by about 100 gates (16 × about 100 gates in this encoding device). .

【0034】したがって、数種類の量子化器から出力さ
れる量子化値をそれぞれ同時に符号長を算出する場合、
符号化装置におけるデータ量見積り部の計算回路の回路
が従来の回路に比べ小さくすることが可能となる。
Therefore, when the code lengths of the quantized values output from several kinds of quantizers are simultaneously calculated,
The circuit of the calculation circuit of the data amount estimation unit in the encoding device can be made smaller than the conventional circuit.

【0035】ところで、符号長算出器6は、ROMまた
は、ロジックで実現することが可能である。
By the way, the code length calculator 6 can be realized by a ROM or a logic.

【0036】なお、本実施例では、ゼロランレングスと
それに続く量子化値の二次元で、量子化値およびゼロラ
ンレングスを、20以上では20に、15以上では15
にそれぞれ丸めたが、この丸めた値が変わった場合にお
いても本発明を適用でき、有効であることは言うまでも
ない。また、本実施例では、ゼロランレングスとそれに
続く量子化値の二次元として取り扱ったが、一次元とし
て取り扱ったとしても本発明の適用が可能で、有効的な
ことは言うまでもない。また、量子化器によって量子化
した値を入力端子1から入力したが、量子化せず、ダイ
レクトに直交成分の値が入力端子1から入力されても本
発明の適用が可能で、有効的なことは言うまでもない。
In the present embodiment, the quantized value and the zero run length are two-dimensionally the zero run length and the subsequent quantized value.
However, it is needless to say that the present invention is applicable and effective even when the rounded value is changed. Further, in the present embodiment, the zero run length and the quantized value following the zero run length are handled as two dimensions, but it is needless to say that the present invention is applicable and effective even if handled as one dimension. Although the value quantized by the quantizer is input from the input terminal 1, the present invention can be applied and is effective even if the value of the orthogonal component is directly input from the input terminal 1 without being quantized. Needless to say.

【0037】[0037]

【発明の効果】本発明を用いることにより、符号長見積
り部の回路規模が従来に比べて小さくすることができ、
その効果は大なるものがある。
By using the present invention, the circuit scale of the code length estimating unit can be made smaller than the conventional one,
The effect is great.

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

【図1】本発明の一実施例における符号化装置のデータ
量見積り部のブロック図
FIG. 1 is a block diagram of a data amount estimation unit of an encoding device according to an embodiment of the present invention.

【図2】従来の符号化装置全体を説明するためのブロッ
ク図
FIG. 2 is a block diagram for explaining an entire conventional encoding device.

【図3】従来の大ブロック化部分の構成図FIG. 3 is a block diagram of a conventional large block portion.

【図4】従来の画像信号の1フレームとDCTブロック
の関係を示す模式図
FIG. 4 is a schematic diagram showing a relationship between one frame of a conventional image signal and a DCT block.

【図5】従来の小ブロック化部の直交成分の出力番号を
示す模式図
FIG. 5 is a schematic diagram showing output numbers of orthogonal components of a conventional small block forming unit.

【図6】従来のDCTされた成分の量子化と帯域の関係
を示す模式図
FIG. 6 is a schematic diagram showing the relationship between the quantization of a conventional DCT component and the band.

【図7】従来の各DCTブロックの並べ方を示す説明図FIG. 7 is an explanatory diagram showing how to arrange each DCT block in the related art.

【図8】従来のデータ量見積り部のブロック図FIG. 8 is a block diagram of a conventional data amount estimation unit.

【図9】従来のデータ量見積り部の回路の動作タイミン
グを示す図
FIG. 9 is a diagram showing the operation timing of the circuit of the conventional data amount estimation unit.

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

1 入力端子 2 ゼロ検出器 3 ゼロランカウンタ 4 リミッタ 5 リミッタ 6 符号長算出器 7 累積加算器 8 レジスタ 9 累積加算器 10 小ブロック化部 11 大ブロック化部 12 直交変換器 13 データ量見積り部 14 量子化器決定部 15 データバッファ 16 量子化部 17 可変長符号化器 18 伝送部 19 輝度信号入力部 20 色差信号R−Y入力部 21 色差信号B−Y入力部 22 フレームメモリ 23 アドレスコントローラ 24 入力端子 25 ゼロ検出器 26 ゼロランカウンタ 27 符号長算出器 28 累積加算器 29 レジスタ 30 累積加算器 1 Input Terminal 2 Zero Detector 3 Zero Run Counter 4 Limiter 5 Limiter 6 Code Length Calculator 7 Cumulative Adder 8 Register 9 Cumulative Adder 10 Small Blocking Part 11 Large Blocking Part 12 Orthogonal Transformer 13 Data Quantity Estimating Part 14 Quantizer determination unit 15 Data buffer 16 Quantization unit 17 Variable length encoder 18 Transmission unit 19 Luminance signal input unit 20 Color difference signal RY input unit 21 Color difference signal BY input unit 22 Frame memory 23 Address controller 24 Input Terminal 25 Zero detector 26 Zero run counter 27 Code length calculator 28 Cumulative adder 29 Register 30 Cumulative adder

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】入力信号の標本値を集めてm×nの画素毎
にブロック化するブロック化手段と前記ブロック化され
たブロック毎に直交変換する直交変換手段と、前記直交
変換手段で得られる直交成分に対して可変長符号化を行
なう、もしくは前記直交成分を量子化後に前記量子化値
に対して可変長符号化を行う可変長符号化手段を備えた
符号化装置において、前記直交成分の値もしくは、前記
量子化値を所定範囲に制限するリミッタ手段と、前記リ
ミッタ手段の出力によって前記可変長符号化手段で得ら
れる可変長符号語に対応する符号長を算出する符号長算
出手段とを備えたことを特徴とする符号化装置。
1. A block forming means for collecting sampled values of an input signal and forming a block for each of m × n pixels, an orthogonal transforming means for orthogonally transforming each of the blocked blocks, and an orthogonal transforming means. In a coding device including variable length coding means for performing variable length coding on an orthogonal component, or for quantizing the orthogonal component and then performing variable length coding on the quantized value, A value, or limiter means for limiting the quantized value to a predetermined range, and code length calculation means for calculating the code length corresponding to the variable length code word obtained by the variable length coding means by the output of the limiter means. An encoding device provided with.
【請求項2】直交成分もしくは量子化後の値におけるゼ
ロランレングスの値と前記ゼロランに続く値をそれぞれ
所定範囲に制限する制限手段を備えたことを特徴とする
請求項1記載の符号化装置。
2. An encoding apparatus according to claim 1, further comprising a limiting means for limiting a value of a zero run length in a quadrature component or a value after quantization and a value following the zero run to a predetermined range. .
JP25099592A 1992-09-21 1992-09-21 Encoding device Expired - Fee Related JP3024386B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25099592A JP3024386B2 (en) 1992-09-21 1992-09-21 Encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25099592A JP3024386B2 (en) 1992-09-21 1992-09-21 Encoding device

Publications (2)

Publication Number Publication Date
JPH06105297A true JPH06105297A (en) 1994-04-15
JP3024386B2 JP3024386B2 (en) 2000-03-21

Family

ID=17216093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25099592A Expired - Fee Related JP3024386B2 (en) 1992-09-21 1992-09-21 Encoding device

Country Status (1)

Country Link
JP (1) JP3024386B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000027130A1 (en) * 1998-11-04 2000-05-11 Mitsubishi Denki Kabushiki Kaisha Image decoder and image encoder
JP2005268907A (en) * 2004-03-16 2005-09-29 Shikino Hightech:Kk Apparatus and method for processing image data

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113994533B (en) 2019-06-10 2023-09-26 3M创新有限公司 Adapter for battery compartment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0437221A (en) * 1990-05-31 1992-02-07 Matsushita Electric Ind Co Ltd Encoder

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0437221A (en) * 1990-05-31 1992-02-07 Matsushita Electric Ind Co Ltd Encoder

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000027130A1 (en) * 1998-11-04 2000-05-11 Mitsubishi Denki Kabushiki Kaisha Image decoder and image encoder
US6385343B1 (en) 1998-11-04 2002-05-07 Mitsubishi Denki Kabushiki Kaisha Image decoding device and image encoding device
KR100384090B1 (en) * 1998-11-04 2003-05-16 미쓰비시덴키 가부시키가이샤 Image decoder and image encoder
JP2005268907A (en) * 2004-03-16 2005-09-29 Shikino Hightech:Kk Apparatus and method for processing image data

Also Published As

Publication number Publication date
JP3024386B2 (en) 2000-03-21

Similar Documents

Publication Publication Date Title
JP2549013B2 (en) Data compression device
US4922273A (en) Compression method of halftone image data
US7729423B2 (en) Fixed bit rate, intraframe compression and decompression of video
JPH0491587A (en) Orthogonal transformation encoder
JPH02305182A (en) Picture signal compressing and encoding device
JPH06105297A (en) Encoder
JPH07121120B2 (en) Data compression device
JPH1066077A (en) Code amount control method for image data and its device
JP2523953B2 (en) Encoder
EP1629675B1 (en) Fixed bit rate, intraframe compression and decompression of video
JP2735001B2 (en) Image coding device
JPH03252284A (en) Data compressor
JP3143487B2 (en) Image processing device
JPH0879762A (en) Image coder and decoder
JPH03192878A (en) Picture data compressor
JP2000333175A (en) Image coder
JP3191950B2 (en) Image coding device
JP3016805B2 (en) Image data compression method
JPH04356886A (en) Image data compressor
JPH04208775A (en) Bit distribution encoding system
JPH06338802A (en) Re-compression device
JPH0487467A (en) Coding system
JPS63109661A (en) Picture data compressing method
JP2843397B2 (en) Compressed data amount control method
JP3044877B2 (en) Encoding device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080121

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090121

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100121

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110121

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120121

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees