JPH0686256A - Encoder - Google Patents

Encoder

Info

Publication number
JPH0686256A
JPH0686256A JP23557792A JP23557792A JPH0686256A JP H0686256 A JPH0686256 A JP H0686256A JP 23557792 A JP23557792 A JP 23557792A JP 23557792 A JP23557792 A JP 23557792A JP H0686256 A JPH0686256 A JP H0686256A
Authority
JP
Japan
Prior art keywords
data
memory
address
block
output
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
JP23557792A
Other languages
Japanese (ja)
Other versions
JP2897543B2 (en
Inventor
Masaru Nakahama
勝 中濱
Tatsuro Shigesato
達郎 重里
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 JP23557792A priority Critical patent/JP2897543B2/en
Publication of JPH0686256A publication Critical patent/JPH0686256A/en
Application granted granted Critical
Publication of JP2897543B2 publication Critical patent/JP2897543B2/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 obtain an encoder suited to an IC by reducing the circuitry of a data amount estimating part and a quantizer selecting part. CONSTITUTION:At the time of estimating data amounts, the lower 4 bits of a 9 bit address counter which performs an access to a DELTAq memory 131 are assigned also to an address which performs an access to a q memory 123, and one address counter 3 can perform an access to both the memories in parallel. And also, the address space of the data storage of the DELTAq memory is constituted into a list, the lower 4 bits corresponding to a quantization number selected at the time of estimating the data amounts of the 9 bit address counter are fixed at the time of selecting a quantizer, the most significant bit of the pertinent counter is inverted by each 1 CLOCK, the values of the next 4 bits corresponding to a DCT number i are updated by each 2 CLOCK, the difference data of each DCT number of the first and second blocks are alternatively read, and added to the maximum value which is not beyond a CD.

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 used for improving the efficiency of a digitized image signal.

【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. The orthogonal transform transforms an input time-series signal into orthogonal components (for example, frequency components), and is well known as Fourier transform, discrete cosine transform (hereinafter abbreviated as DCT), Hadamard transform, and the like. In particular, DCT is drawing attention as an orthogonal transform suitable for image information.

【0003】この符号化装置としては、特開平4−91
587号公報に記されている。この符号化装置の構成は
図6のブロック図で示される。同図の100は小ブロッ
ク化部、101は大ブロック化部、102は直交変換
器、103はデータ量見積部、104は量子化器決定
部、105はデータバッファ、106は量子化部、10
7は可変長符号化器、108は伝送部である。
An example of this encoding device is Japanese Patent Laid-Open No. 4-91.
No. 587. The configuration of this encoding device is shown in the block diagram of FIG. In the figure, 100 is a small block conversion unit, 101 is a large block conversion unit, 102 is an orthogonal transformer, 103 is a data amount estimation unit, 104 is a quantizer determination unit, 105 is a data buffer, 106 is a quantization unit, 10
Reference numeral 7 is a variable length encoder, and 108 is a transmission unit.

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

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

【0006】直交変換器102は、入力される小ブロッ
ク化された標本値をその単位毎にディスクリート・コサ
イン変換(DCT)によって2次元の直交変換を行う。
この直交変換器102では、まず小ブロックの水平方向
にDCTされ、次に水平方向にDCTされた直交成分
は、直交変換器102に内蔵された水平垂直並べ換え部
(不図示)で垂直方向に並べ換えられた後垂直方向にD
CTされる。このようにして2次元DCTされた小ブロ
ック(以下DCTブロックという)毎の直交成分は、水
平方向、垂直方向共に低域を表す直交成分から順番にバ
ッファ105及びデータ量見積部103にビデオセグメ
ント単位で入力される。
The orthogonal transformer 102 performs a two-dimensional orthogonal transformation on the input small-block sample value by discrete cosine transform (DCT) for each unit.
In this orthogonal transformer 102, the DCT of a small block in the horizontal direction is first performed, and then the orthogonal components subjected to the DCT in the horizontal direction are rearranged in the vertical direction by a horizontal / vertical rearrangement unit (not shown) built in the orthogonal transformer 102. Vertically after being cut
CT is done. The orthogonal components of each small block (hereinafter referred to as a DCT block) two-dimensionally DCTed in this manner are transmitted to the buffer 105 and the data amount estimation unit 103 in the video segment unit in order from the orthogonal component representing the low frequency in both the horizontal and vertical directions. Entered in.

【0007】データ見積部103では、そこで予め準備
された16個の量子化器に対するDCTブロック単位で
の可変長符号化後のデータ量が計算され、その結果に基
づいて量子化器決定部104で、すべてのDCTブロッ
クのデータ量の合計が伝送可能な総データ量を越えない
ようなDCTブロック毎の量子化器が決定される。同時
にバッファ105に入力された直交成分は量子化器が決
定されるまで遅延させられる。バッファ105から出力
される直交成分は量子化部106で量子化器決定部10
4によって決定(選択)される量子化器を用いて量子化
される。ところで、一般に人間の視覚は低域成分の歪に
敏感で、高域成分の歪には鈍感であるため、高域成分ほ
ど量子化幅の大きな量子化を行うことによって、視覚上
劣化を小さくしながら圧縮率を改善することが可能にな
る。このため、16種類の量子化器からなる量子化部1
06では、図9(a)に示すように(8×8)DCTブ
ロックの直交成分をDC成分(斜線の部分)を除いてA
C成分を4つの帯域(図中の番号は各帯域の番号を示
す)に分割し、16の量子化器におけるこの帯域と量子
化とに一定の関係を持たせている。その帯域と量子化の
関係を(表1)に示す。
The data estimation unit 103 calculates the amount of data after variable length coding in DCT block units for the 16 quantizers prepared in advance, and the quantizer determination unit 104 calculates the data amount based on the result. , The quantizer for each DCT block is determined so that the total data amount of all DCT blocks does not exceed the total transmittable data amount. At the same time, the orthogonal components input to the buffer 105 are delayed until the quantizer is determined. The orthogonal component output from the buffer 105 is quantized by the quantizer 106 in the quantizer determination unit 10
4 is quantized using the quantizer determined (selected) by 4. By the way, in general, human vision is sensitive to distortion of low-frequency components and is insensitive to distortion of high-frequency components.Therefore, by performing quantization with a larger quantization width for higher-frequency components, visual deterioration is reduced. However, it is possible to improve the compression rate. Therefore, the quantizer 1 including 16 kinds of quantizers
In 06, as shown in FIG. 9A, the orthogonal component of the (8 × 8) DCT block is A except for the DC component (hatched portion).
The C component is divided into four bands (the numbers in the figure indicate the numbers of each band), and the bands and quantization in the 16 quantizers have a fixed relationship. The relationship between the band and the quantization is shown in (Table 1).

【0008】[0008]

【表1】 [Table 1]

【0009】(表1)において、縦方向が量子化器のN
o(量子化No)を、横方向が4つの帯域を示してい
る。即ち、それぞれの量子化器は図9(a)に示す4つ
の帯域に対する量子化の組み合わせで構成されることを
示しており、表中の分数は量子化器と帯域に対する量子
化で実行される乗算の乗数を示している。また、DCT
後のこれらのAC成分は同図(b)に示す番号順にジグ
ザグに量子化がなされ、順に出力される。
In Table 1, the vertical direction is N of the quantizer.
o (quantization No.) indicates four bands in the horizontal direction. That is, each quantizer is shown to be configured by a combination of quantizations for the four bands shown in FIG. 9A, and the fractions in the table are executed by the quantizer and the quantizations for the bands. The multiplication factor is shown. Also, DCT
These subsequent AC components are quantized in zigzag in the order of numbers shown in FIG.

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

【0011】図10はビデオセグメント化された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フ゛ロックである)の順に伝送され
る。また、ビデオセグメントは再生時のエラー修整(大
きなエラーが発生すると次に示すブロック毎に、エラー
のあったブロックが前のブロックデータに置き変える)
のことを考慮にいれて同図に示すように2つのブロック
(第1ブロックを前半15DCTブロック、第2ブロッ
クを後半15DCTブロックという)に分けて伝送され
る。
FIG. 10 shows a video segmented DCT.
The transmission order of blocks is shown. Each DCT block DCTNo order words shown in FIG, Y → Y → C R → Y → Y → C B → Y → Y → C R → Y → Y → C B
.. (where Y is the DCT block of the luminance signal, C R is the DCT block of the RY signal, and C B is the DCT block of the BY signal). Also, the video segment has error correction during playback (when a large error occurs, the block in error is replaced with the previous block data for each block shown below).
In consideration of the above, 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.

【0012】またこのような符号化装置では、上記した
ように1ビデオセグメントの伝送可能なデータ量に制限
があり、そのデータ量は入力される画像に依存する。従
って、DCTによる圧縮に加え、更に直交成分データを
伝送可能なデータ量に量子化によって圧縮する必要があ
る。この時、伝送効率を可能な限り上げる必要があり、
このため(表1)で示した16種類の量子化を行なった
場合の1ビデオセグメントの可変長符号化後の総データ
量を各量子化器毎にすべて求め、その中から伝送可能な
データ量を与える量子化器のうち、最大のデータ量を与
える量子化器を選択する。この動作を行うのがデータ量
見積部103と量子化器選択部104である。この量子
化器の選択過程については、本発明者らがすでに提案し
ているところの特願平3−169922号、特願平3−
258916号に記されている。以下にこれらを基に従
来の符号化装置におけるデータ量見積およびそれに基づ
く量子化器の選択過程について述べる。
Further, in such an encoding device, the amount of data that can be transmitted in one video segment is limited as described above, and the amount of data depends on the input image. Therefore, in addition to the compression by the DCT, it is necessary to further compress the quadrature component data by quantization to a data amount that can be transmitted. At this time, it is necessary to increase the transmission efficiency as much as possible,
For this reason, when the 16 types of quantization shown in (Table 1) are performed, the total amount of data after variable length coding of one video segment is calculated for each quantizer, and the amount of data that can be transmitted Of the quantizers that give the maximum amount of data, the quantizer that gives the maximum amount of data is selected. The data amount estimation unit 103 and the quantizer selection unit 104 perform this operation. Regarding the process of selecting the quantizer, the present inventors have already proposed Japanese Patent Application Nos. 3-169922 and 3-169922.
258916. Based on these, the data amount estimation in the conventional encoder and the quantizer selection process based on it will be described below.

【0013】図12、図13、図15はデータ量見積部
103の詳細ブロック図であり、図14、図16はその
動作タイミング図である。
12, 13, and 15 are detailed block diagrams of the data amount estimating unit 103, and FIGS. 14 and 16 are operation timing charts thereof.

【0014】図12、図13、図15において、114
は入力データに対して、×1/16、×1/8、×1/
4、×1/2、×1の乗算を施す量子化器、115は
(表1)の16種類の量子化を実現するために量子化器
114の出力を組み合わせるためのセレクタ、116は
入力されるクロック(CLOCK)を基に図9に示した帯域
(エリア)を判別するエリアカウンタ、117−1から
117−16はセレクタの16組の出力がそれぞれに接
続され、量子化値を可変長符号に変換したときの1DC
Tブロック分のデータ量を符号長テーブルを基に累積加
算する累積加算器、118−1から118−16は累積
加算器117−1〜117−16で計算される1DCT
ブロック分のデータ量をラッチするレジスタ、119は
レジスタ118−1〜118−16の出力を切り替える
セレクタ、120はセレクタ119の出力をラッチする
レジスタ、121は1ビデオセグメント分のデータ量を
計算する加算器、122は加算器121の出力をラッチ
するレジスタ、123は加算器121で計算されレジス
タ8を介して出力される16種類の各量子化No.毎の
加算データ量を記憶するメモリ、124はqメモリ12
3(以下qメモリという)の出力をラッチするレジス
タ、125はqメモリ123をコントロールするために
読みだし/書き込み信号及びアドレス信号を発生するメ
モリコントローラ、126はメモリコントローラ125
から出力されるアドレスをシフトするアドレスシフタ、
127はメモリコントローラ125のアドレス出力とア
ドレスシフタ126の出力を切り替え、後で述べるR/
Wパルスァが'L'の期間は端子(ア)に'H'の期間は端子
(イ)に接続されるスイッチ(SW)、128はSW12
7の出力をラッチするレジスタ、129はアドレスシフ
ターの出力を記憶するアドレスメモリレジスタ、130
は端子205に入力されるデータの値から端子206に
入力されるデータの値を減算する減算器、131は減算
器130の結果を記憶するメモリ、132はΔqメモリ
131(以下Δqメモリという)のアドレスとデータの
読みだし/書き込みを制御するメモリコントローラ、1
33はΔqメモリ131の出力をラッチするレジスタで
ある。
114 in FIGS. 12, 13 and 15.
Is the input data × 1/16, × 1/8, × 1
A quantizer that performs multiplication of 4, × 1/2, and × 1, 115 is a selector for combining the outputs of the quantizer 114 to realize 16 kinds of quantization (Table 1), and 116 is input. The area counters 117-1 to 117-16 for discriminating the band (area) shown in FIG. 9 on the basis of the clock (CLOCK) are connected to the outputs of 16 sets of selectors, respectively. 1DC when converted to
Cumulative adders for cumulatively adding the data amount of T blocks based on the code length table, 118-1 to 118-16 are 1DCTs calculated by the cumulative adders 117-1 to 117-16.
A register for latching the data amount of the block, 119 is a selector for switching the output of the registers 118-1 to 118-16, 120 is a register for latching the output of the selector 119, and 121 is an adder for calculating the data amount of one video segment. , 122 is a register for latching the output of the adder 121, 123 is a memory for storing the amount of added data for each of the 16 types of quantization No. calculated by the adder 121 and output via the register 8, and 124 is q memory 12
A register for latching the output of 3 (hereinafter referred to as q memory), 125 is a memory controller for generating a read / write signal and an address signal for controlling the q memory 123, and 126 is a memory controller 125.
Address shifter that shifts the address output from
Reference numeral 127 switches the address output of the memory controller 125 and the output of the address shifter 126, and the R /
When the W pulser is'L ', it is at the terminal (a) and when it is'H', at the terminal
Switch (SW) connected to (a), 128 is SW12
7 is a register for latching the output of 7; 129 is an address memory register for storing the output of the address shifter;
Is a subtracter that subtracts the value of the data input to the terminal 206 from the value of the data input to the terminal 205, 131 is a memory that stores the result of the subtractor 130, and 132 is a Δq memory 131 (hereinafter referred to as Δq memory). Memory controller to control reading / writing of address and data, 1
Reference numeral 33 is a register for latching the output of the Δq memory 131.

【0015】図14、図16においてaは本システムの
クロック(CLOCK)、bはレジスタ118−1〜118
−16の出力である1DCTブロック分のデータ量N
j(i)、cはメモリコントローラ125から出力されるア
ドレス信号(以下アドレスァという)、dはこのアドレ
スァ(c)をアドレスシフタ126で2CLOCKシフト
(遅延)したアドレス信号(以下アドレスアという)、
eはCLOCKの倍の周期信号でqメモリ123の読みだし
(R)/書き込み(W)を制御するR/Wパルスァ、fはレジ
スタ120の出力、gはレジスタ128の出力でqメモ
リ123のR/Wアドレスを与えるメモリアドレス信
号、hはレジスタ124の出力信号、iは加算器121
の出力信号、jはレジスタ122の出力信号、kはqメ
モリ123のそれぞれのアドレスのライト信号(R/W
パルスァの立ち上がりエッジでqメモリ123に書き込
まれる)直後の内容の更新状態を示す、lは加算器12
1が所定値を越えたときに発生するキャリー信号(キャ
リー1)、mはアドレスメモリレジスタ129の出力信
号、nはメモリコントローラ132から出力されるアド
レス信号(以下アドレスィという)、oはセレクタ11
9の出力信号、pは減算器130の出力、qはメモリコ
ントローラ132から出力されΔqメモリ131の読み
だし/書き込みを制御するR/Wパルスア、rはΔqメ
モリ131のそれぞれのアドレスのライト信号(R/W
パルスアの立ち上がりエッジでΔqメモリ131に書き
込まれる)直後の内容の更新状態を示すものである。
In FIGS. 14 and 16, a is a clock (CLOCK) of this system, and b is registers 118-1 to 118.
Data amount N for 1 DCT block which is the output of −16
j (i) and c are address signals output from the memory controller 125 (hereinafter referred to as addressers), and d is an address signal obtained by shifting the addressers (c) by 2 CLOCK (delayed) by the address shifter 126 (hereinafter referred to as addressers). ,
e is a periodic signal that is twice as long as CLOCK, and is read from the q memory 123.
R / W pulser for controlling (R) / write (W), f is the output of the register 120, g is the output of the register 128, a memory address signal for giving the R / W address of the memory 123, and h is the output of the register 124. Signal, i is adder 121
Output signal of the register 122, j is an output signal of the register 122, k is a write signal (R / W) of each address of the q memory 123.
Immediately after being written to the q memory 123 at the rising edge of the pulser), the update state of the content immediately after is shown, and l is the adder 12
A carry signal (carry 1) generated when 1 exceeds a predetermined value, m is an output signal of the address memory register 129, n is an address signal output from the memory controller 132 (hereinafter referred to as address), and o is the selector 11
9 is an output signal of p, p is an output of the subtractor 130, q is an R / W pulse signal which is output from the memory controller 132 and controls reading / writing of the Δq memory 131, and r is a write signal of each address of the Δq memory 131 ( R / W
It shows the updated state of the contents immediately after being written in the Δq memory 131 at the rising edge of pulse A).

【0016】直交変換器102によってDCTされたデ
ータは1ビデオセグメント単位で図10で示したDCT
ブロックの順で量子化器114に入力される。量子化器
141では入力されるDCTブロックの各直交成分の内
AC成分を周知の技術で1/16、1/8、1/4、1
/2、1に量子化を行い、この5つの量子化値をセレク
タ115に出力する。セレクタ115は5種類の量子化
値と帯域を判別するエリアカウンタ116によって、
(表1)に示す16種類の量子化を実現する。即ち、エ
リアカウンタ116の出力が帯域1を示しているとき、
累積加算器117−1〜117−4に×1/8の乗算が
されたデータが、累積加算器117−5〜117−8に
×1/4の乗算がされたデータが、累積加算器117−
9〜117−12に×1/2の乗算がされたデータが、
累積加算器117−13〜117−16に×1の乗算が
されたデータがそれぞれ入力され、帯域2を示している
ときは、累積加算器117−1に×1/16の乗算がさ
れたデータが、累積加算器117−2〜117−5に×
1/8の乗算がされたデータが、累積加算器117−6
〜17−9に×1/4の乗算がされたデータが、累積加
算器117−10〜117−13に×1/2の乗算がさ
れたデータが、累積加算器117−14〜117−16
に×1の乗算がされたデータがそれぞれ入力される。帯
域3、4の場合もセレクタ115の同様な動作によっ
て、(表1)の量子化が実現される。ところで、エリア
カウンタ116はDCTブロックの先頭データ(1CLOC
K毎にデータが更新される)から、入力するCLOCK(a)の
数を数え、図9からわかるようにCLOCKの数が1〜5
(DC成分の位置は0番目のCLOCKとする)のときは帯
域1、6〜20のときは帯域2、21〜42のときは帯
域3、43〜63のときは帯域4を示す2ビットの信号
('00'=帯域1、'01'=帯域2、'10'=帯域3、'11'=帯域
4)を発生させ、この信号をセレクタ115に出力す
る。
The data DCTed by the orthogonal transformer 102 is the DCT shown in FIG. 10 in units of one video segment.
The signals are input to the quantizer 114 in the order of blocks. In the quantizer 141, the AC component of each orthogonal component of the input DCT block is converted into 1/16, 1/8, 1/4, 1 by a known technique.
/ 2, 1 is quantized, and the five quantized values are output to the selector 115. The selector 115 uses the area counter 116 for discriminating the five kinds of quantized values and the band.
16 types of quantization shown in (Table 1) are realized. That is, when the output of the area counter 116 indicates the band 1,
The data obtained by multiplying the cumulative adders 117-1 to 117-4 by x1 / 8 and the data obtained by multiplying the cumulative adders 117-5 to 117-8 by x1 / 4 are obtained by the cumulative adder 117. −
The data obtained by multiplying 9 to 117-12 by × 1/2 is
The data multiplied by x1 is input to each of the cumulative adders 117-13 to 117-16, and when band 2 is indicated, the data multiplied by x1 / 16 is added to the cumulative adder 117-1. To the cumulative adders 117-2 to 117-5
The data that has been multiplied by 1/8 is the cumulative adder 117-6.
To 17-9 are multiplied by x 1/4, and the cumulative adders 117-10 to 117-13 are multiplied by x 1/2, and cumulative adders 117-14 to 117-16.
The data multiplied by x1 is input to each. In the cases of bands 3 and 4, the quantization of (Table 1) is realized by the same operation of the selector 115. By the way, the area counter 116 displays the start data (1CLOC) of the DCT block.
The data is updated every K), the number of CLOCK (a) to be input is counted, and as shown in FIG.
2 bits indicating band 1 when the position of the DC component is the 0th CLOCK, band 2 when 6 to 20 and band 3 when 21 to 42, and band 4 when 43 to 63 A signal ('00' = Band 1, '01' = Band 2, '10' = Band 3, '11' = Band 4) is generated and this signal is output to the selector 115.

【0017】累積加算器117−1〜117−16は
(表1)の量子化No.に対応する1DCTブロックの
可変長符号化後のデータ量を計算するもので、まず入力
される量子化されたデータ(量子化値)列を不図示の符
号長テーブルを参照することにより周知の2次元ハフマ
ンによる可変長符号化したときのデータ量(符号長)に
変換する。次にそのデータ量次々に累積加算(当然のこ
とながら、DCTブロックが変わる毎にこの加算の初期
値は0にリセットされる)し、レジスタ118−1〜1
18−16に出力する。ここで、累積加算器118−1
〜118−16の順に量子化No.0〜15に対応して
いる。レジスタ118−1〜118−16は1DCTブ
ロック分のデータ量の加算が終了すると、その加算値の
ラッチを行い、次のDCTブロックの加算が終了するま
でその値を記憶しておく。ここでこのレジスタ118−
1〜118−16の出力をNj(i)で表す。jは量子化N
o.をiはDCTNo.を示す。例えばレジスタ118−
3のDCTNo.3に対応する出力は、このレジスタは
量子化No.2に対応するのでN2(3)となる。
The cumulative adders 117-1 to 117-16 are for calculating the amount of data after variable length coding of one DCT block corresponding to the quantization No. of (Table 1). The data (quantized value) sequence is converted into a data amount (code length) when variable length coding is performed by the well-known two-dimensional Huffman by referring to a code length table (not shown). Next, the amount of data is successively added (naturally, each time the DCT block changes, the initial value of this addition is reset to 0), and the registers 118-1 to 118-1 are added.
Output to 18-16. Here, the cumulative adder 118-1
Quantities Nos. 0 to 15 are corresponded in the order of 118 to 16-16. When the addition of the data amount for one DCT block is completed, the registers 118-1 to 118-16 latch the added value and store the value until the addition of the next DCT block is completed. This register 118-
The outputs from 1 to 118-16 are represented by N j (i). j is the quantized N
i represents DCT No. For example, register 118-
The output corresponding to DCT No. 3 of No. 3 is N 2 (3) because this register corresponds to quantization No. 2 .

【0018】次に各量子化No.における1ビデオセグ
メント分のデータ量の求め方について説明する。今、図
14に示すように時刻t0でi番目のDCTブロックの
データ量が計算されレジスタ群118−1〜118−1
6にラッチされると、メモリコントローラ125はセレ
クタコントロール信号(この信号は後述するアドレスァ
の信号と同一で出力されるタイミングが2CLOCK早いも
のである)を出力し、またアドレスァ(c)の値(16進
数で表現する)を時刻t2のタイミングで'0'に初期設
定する。セレクタ119はセレクタコントロール信号の
値をデコードしN0(i)を選択して、R/Wパルスァ(e)
の'H'の期間のCLOCKの立ち上がりエッジ(t=t2)のタ
イミングでレジスタ120に出力する。
Next, how to obtain the data amount for one video segment in each quantization No. will be described. Now, as shown in FIG. 14, at time t 0 , the data amount of the i-th DCT block is calculated and the register groups 118-1 to 118-1 are calculated.
When latched at 6, the memory controller 125 outputs a selector control signal (this signal is the same as the addresser signal described later and the output timing is 2 CLOCK earlier), and the value of the addresser (c) is output. (Expressed in hexadecimal) is initialized to '0' at the timing of time t 2 . The selector 119 decodes the value of the selector control signal, selects N 0 (i), and outputs the R / W pulser (e).
It is output to the register 120 at the timing of the rising edge (t = t 2 ) of CLOCK during the period of “H”.

【0019】一方、R/Wパルスァ(e)が'L'の期間、
端子(ア)が選択されるSW127を介してアドレスァの
値'0'がt=t3のCLOCKの立ち上がりエッジでレジスタ1
28にラッチされる(図14(g))。レジスタ128の
出力(g)はqメモリ123のアドレスであり、またこの
時R/Wパルスァ(e)は'H'(読み出しモード)である
ので、アドレス0の内容が読み出され、その値は次のCL
OCK(a)の立ち上がりエッジ(t=t4)でレジスタ124
にラッチされる(図14(h))。
On the other hand, when the R / W pulser (e) is'L ',
Register 1 is selected at the rising edge of CLOCK when the addresser value '0' is t = t 3 via SW127 whose terminal (a) is selected.
28 is latched (FIG. 14 (g)). The output (g) of the register 128 is the address of the q memory 123, and at this time, the R / W pulser (e) is in the “H” (reading mode), so that the content of the address 0 is read and its value is Next CL
Register 124 at the rising edge (t = t 4 ) of OCK (a)
Is latched to (FIG. 14 (h)).

【0020】この値は量子化No.0のi−1番目まで
のデータ量の合計即ち、
This value is the sum of the data amount up to the i-1th of quantization No. 0, that is,

【0021】[0021]

【数1】 [Equation 1]

【0022】である。このレジスタ124の出力(h)は
加算器121に入力される。加算器121では、レジス
タ120の出力(f)であるN0(i)に(数1)を加え、i
番目のDCTブロックまでのデータ量を計算する。この
計算結果はR/Wパルスァ(e)の'H'の期間のCLOCKの
立ち上がりエッジ(t=t6)のタイミングで図14(i)に
示すようにレジスタ122にラッチされる(図14
(j))。また、加算器121は上記の加算毎にその結果
と伝送可能な1ビデオセグメント分の総データ量(C
D)と比較を行い、加算結果がCDを越えておればキャ
リー信号(キャリー1)を発生させる。
It is The output (h) of the register 124 is input to the adder 121. In the adder 121, (Equation 1) is added to N 0 (i) which is the output (f) of the register 120 to obtain i
Calculate the amount of data up to the th DCT block. This calculation result is latched in the register 122 as shown in FIG. 14 (i) at the timing of the rising edge (t = t 6 ) of the CLOCK during the'H 'period of the R / W pulser (e) (see FIG. 14).
(j)). In addition, the adder 121 outputs the result of each addition and the total amount of data (C
D) is compared, and if the addition result exceeds CD, a carry signal (carry 1) is generated.

【0023】上記加算結果はレジスタ122を介してq
メモリ123に書き込まれるのであるがこの時の動作に
ついて次に説明する。アドレスシフタ126はメモリコ
ントローラ125の出力であるアドレスァ(c)が入力さ
れると、R/Wパルスァ(e)の'H'の期間のCLOCKの立
ち上がりエッジのタイミングで図14(d)に示すように
ラッチする。即ち、アドレスァ(c)を2CLOCKシフト
し、アドレスア(d)を出力する。従ってアドレス値'0'
はt4〜t6の期間アドレスシフタ126から出力され
る。このアドレス(d)はSW127の端子(イ)に送ら
れ、R/Wパルスァ(e)の'H'の期間選択されて、次の
CLOCK(a)の立ち上がりエッジでレジスタ128にラッ
チされる。このアドレスア(d)の値'0'は、時刻t6
タイミングでラッチされ(図14(g))、またこの時R
/Wパルスァ(e)が'L'のためqメモリ123は書き込
みモードとなり、qメモリ123のアドレス0にレジス
タ122の内容、即ちレジスタ122にラッチされてい
る量子化No.0のi番目のDCTブロックまでのデー
タ量の合計がR/Wパルスァ(e)の立ち上がりエッジの
タイミング(時刻t7)でqメモリ123に書き込ま
れ、量子化No.0に対するデータ量の合計値が更新さ
れる(図14(k))。またこの時、図14に示すように
アドレスメモリレジスタ15は加算器121の加算結果
によってキャリーlが発生('H'レベルの信号)しなけ
れば、アドレスシフタ12の出力(アドレスア(d))を
時刻t6のタイミングでラッチする。
The above addition result is output to q through the register 122.
Although written in the memory 123, the operation at this time will be described below. When the addresser (c) which is the output of the memory controller 125 is input to the address shifter 126, the timing of the rising edge of CLOCK during the'H 'period of the R / W pulser (e) is shown in FIG. To latch. That is, the addresser (c) is shifted by 2 CLOCK and the addresser (d) is output. Therefore, the address value is "0"
Is output from the address shifter 126 during the period of t 4 to t 6 . This address (d) is sent to the terminal (a) of SW127 and is selected during the "H" period of the R / W pulser (e),
It is latched in the register 128 at the rising edge of CLOCK (a). The value '0' this address A (d), is latched at time t 6 (Fig. 14 (g)), and when the R
Since / W pulser (e) is'L ', the q memory 123 is in the write mode, and the content of the register 122 is stored in the address 0 of the q memory 123, that is, the i-th DCT of the quantization No. 0 latched in the register 122. The total amount of data up to the block is written to the q memory 123 at the timing (time t 7 ) of the rising edge of the R / W pulser (e), and the total amount of data for the quantization No. 0 is updated (Fig. 14 (k)). At this time, as shown in FIG. 14, the address memory register 15 outputs the address shifter 12 (address adder (d)) unless the carry l is generated ('H' level signal) according to the addition result of the adder 121. Are latched at the timing of time t 6 .

【0024】メモリコントローラ125は、次の量子化
No.1に対応したデータ量を計算するために、アドレ
ス0の内容が読み出されレジスタ124にラッチされる
タイミング(時刻t4)で次のアドレス値'1'を出力す
る。以下上記したと同様のタイミングでレジスタ120
のN1(i)の出力(時刻t6)、qメモリ123からのデ
ータの読みだしとレジスタ124でのラッチ、加算器1
21での加算(t6〜t8)とレジスタ122でのラッチ
(時刻t8)、アドレス1の内容の更新(時刻t9)、ア
ドレスメモリレジスタ129の更新(時刻t8)が行わ
れる。以上の動作を、メモリコントローラ125の出力
アドレスァの値を図14(c)のように2CLOCK周期で更
新する毎に繰り返し、各量子化No.に対応するi番目
までのデータ量の合計を計算し、qメモリ123の内容
を更新していく。
The memory controller 125 calculates the amount of data corresponding to the next quantization No. 1 at the timing (time t 4 ) at which the content of the address 0 is read and latched in the register 124, and the next address is read. The value "1" is output. Hereinafter, at the same timing as described above, the register 120
N 1 (i) output (time t 6 ), reading of data from the q memory 123 and latching in the register 124, adder 1
21 is performed (t 6 to t 8 ), the register 122 is latched (time t 8 ), the contents of address 1 are updated (time t 9 ), and the address memory register 129 is updated (time t 8 ). The above operation is repeated every time the value of the output addresser of the memory controller 125 is updated in 2 CLOCK cycles as shown in FIG. 14C, and the total of the i-th data amount corresponding to each quantization No. is calculated. Then, the contents of the q memory 123 are updated.

【0025】同時に加算器121での加算結果がどの量
子化No.までCDを越えないかをキャリー信号l
(l)で監視する。即ち、上記したようにキャリーl
(l)が発生しなければ、アドレスメモリレジスタ12
9はアドレスシフタ126の出力アドレスア(d)をラッ
チして記憶し、加算結果がCDを越えキャリーl(l)
が発生するとそのときの量子化No.に対応するアドレ
スア(d)の値はラッチせず、前の値をホールドする。こ
のアドレスメモリレジスタ129のキャリー1(l)信号
が'L'の時入力信号を、'H'の時自分自身の出力をCLOC
K(a)の立ち上がりエッジのタイミングでラッチするよ
うに構成されている。ここでセレクタ119(レジスタ
120)の出力Nj(i)とアドレスァの値との対応を(表
2)に示す。
At the same time, the carry signal l indicates to which quantization No. the addition result of the adder 121 does not exceed CD.
Monitor with (l). That is, as described above, carry
If (l) does not occur, the address memory register 12
9 latches and stores the output address A (d) of the address shifter 126, and the addition result exceeds CD and carry l (l)
Occurs, the value of address A (d) corresponding to the quantization No. at that time is not latched, but the previous value is held. When the carry 1 (l) signal of the address memory register 129 is'L ', the input signal is output, and when it is'H', its own output is CLOC.
It is configured to latch at the timing of the rising edge of K (a). Here, the correspondence between the output N j (i) of the selector 119 (register 120) and the value of the addresser is shown in (Table 2).

【0026】[0026]

【表2】 [Table 2]

【0027】図14は、上記の動作によって各量子化化
No.に対応するi番目のDCTブロックまでのデータ
量の計算を行っているとき、量子化No.9以降の演算
にキャリー1(l)が発生したことを示しており、従って
アドレスメモリレジスタ129には、量子化No.8の
計算以降、このDCTブロックの計算が終わるまでは
値'8'がラッチされる。即ちこの値は、このDCTブロ
ックまでは、1つの量子化器(No.)で量子化する場
合、量子化No.8で量子化したときが伝送可能な最大
データ量であることを示している。
In FIG. 14, when the data amount up to the i-th DCT block corresponding to each quantization No. is calculated by the above operation, the carry 1 (l) is used for the operations after the quantization No. 9. ) Has occurred, the value "8" is latched in the address memory register 129 after the calculation of the quantization No. 8 until the calculation of this DCT block is completed. That is, this value indicates that up to this DCT block, when quantizing with one quantizer (No.), the maximum amount of data that can be transmitted is when quantizing with quantizer No. 8. .

【0028】(表3)は各量子化No.のDCTNo.が
更新されていく時のデータ量の変遷を示すもので、斜線
の部分がCDを越えた部分である。
Table 3 shows the transition of the data amount when the DCT No. of each quantization No. is being updated, and the shaded portion is the portion beyond CD.

【0029】[0029]

【表3】 [Table 3]

【0030】DCTNo.順に矢印Bの方向に進み、各
DCTブロック毎に矢印Aの方向に順にデータ量を更新
していく。アドレスメモリレジスタ129では、(表
3)の例において、DCTNo.25の量子化No.12
以降でCDを越えたので、この時点で、値'11'がラッ
チされ、同様にDCTNo.26では値'10'が、DC
TNo.27では値'9'と順に、その値がその時点のデ
ータ量によって変化し、最後のDCTNo.29の全て
の計算が終了した時点では値'8'がラッチされる。この
アドレスメモリレジスタ129の値は端子204を介し
て出力される。
The DCT No. is sequentially advanced in the direction of arrow B, and the data amount is sequentially updated in the direction of arrow A for each DCT block. In the address memory register 129, in the example of (Table 3), the quantization No. 12 of DCT No. 25 is used.
Since it exceeded the CD after that, the value '11' is latched at this point, and the value '10' is DC in DCT No. 26.
In TNo. 27, the value changes in order from the value "9", and the value changes depending on the amount of data at that time, and the value "8" is latched at the time when all the calculations of the last DCT No. 29 are completed. The value of the address memory register 129 is output via the terminal 204.

【0031】更にデータ量見積部103では上記した動
作と平行してDCTNo.毎に1つランクの異なる量子
化No.のデータ量の差(以下単に差分ともいう)即ち
[Nj(i)−Nj-1(i)]を求め記憶する動作を行う。この
データ量の差は各DCTNo.毎に15個の値が存在す
るため、(表4)に示す後述するΔqメモリ131のア
ドレス空間に順に詰めて格納される。
Further, in the data amount estimation unit 103, in parallel with the above operation, the difference in the data amount of the quantization No. having one rank different for each DCT No. (hereinafter also simply referred to as a difference), that is, [N j (i)- N j-1 (i)] is calculated and stored. Since there are 15 values for each DCT No. in the difference in the data amount, they are stored in the address space of the Δq memory 131 described later (Table 4) in order.

【0032】[0032]

【表4】 [Table 4]

【0033】例えば、DCTNo.6場合、[N1(6)−
0(6)]の値は05A番地に、[N2(6)−N1(6)]の値は0
5B番地というように順に格納され、最後の[N15(6)−
14(6)]の値が068番地に格納される。
For example, in the case of DCT No. 6, [N 1 (6)-
The value of N 0 (6)] is at address 05A, and the value of [N 2 (6) -N 1 (6)] is 0.
5B address is stored in order, and the last [N 15 (6)-
The value of N 14 (6)] is stored in address 068.

【0034】次に図15、図16を基に動作を説明す
る。ここで図16のタイミングDCTNo.6の場合を
示しており、図14においてi=6とすると図14と図
16の時刻時刻t0 〜 t30は一致する。端子203
(図12)に出力されたセレクタ119の出力(f)は
端子205を介して減算器130の一方の端子に入力さ
れ、端子202(図12)に出力されたレジスタ120
の出力は端子206を介して減算器130の他方の端子
に入力される。減算器130では端子205にN1(6)、
端子206にN0(6)が入力される時刻t4に[N1(6)−
0(6)]が計算され、時刻t6には[N2(6)−N1(6)]
が、時刻t8には[N3(6)−N2(6)]というように、端
子205、206の入力値が更新される2CLOCK毎に新
たな減算を行い(図16(p))、これらの値はメモリコ
ントローラ132の制御によって、Δqメモリ131に
順次書き込まれる。メモリコントローラ132は減算器
130の計算結果をΔqメモリ131に書き込むために
アドレス(図16、アドレスィ(n))と書き込みパルス
(図16(q))を発生させるもので、まずDCTNo.6
の先頭の値であるN1(6)−N0(6)をアドレス'05A'番地
に格納するために、時刻t4に値'05A'をΔqメモリ13
1に出力(図16(n))し、R/Wパルスア(q)の立
ち上がりエッジのタイミング(時刻t6)でqメモリ1
23に書き込む。従って、図16(r)に示すようにΔ
qメモリ131のアドレス'05A'番地の内容は時刻t6
更新される。次にメモリコントローラ132は次の減算
器130の出力N2(6)−N1(6)をΔqメモリ131に格
納すべく、時刻t6でアドレス値を'05B'に1つ更新し、
R/Wパルスア(q)の立ち上がりエッジのタイミング
(時刻t 8)でqメモリ123の'05B'番地に書き込む。
同様の動作を繰り返して図16に示すように減算器13
0の出力(p)を順次Δqメモリ131に書き込んでい
く。以上の動作を各DCTNo.毎に繰り返し、(表
4)に示したΔqメモリ131のアドレス空間に各DC
TNo.の差分が1ビデオセグメント分格納される。次
に、データ量見積部103で上記した1ビデオセグメン
ト分のデータ量の見積が終了すると、次に量子化器選択
部104で量子化器の決定がなされる。
Next, the operation will be described with reference to FIGS.
It Here, in the case of the timing DCT No. 6 in FIG.
14 and FIG. 14 when i = 6 in FIG.
16 time time t0 ~ T30Match. Terminal 203
The output (f) of the selector 119 output to (FIG. 12) is
Input to one terminal of subtractor 130 via terminal 205.
And the register 120 output to the terminal 202 (FIG. 12)
Output from the other terminal of the subtractor 130 via the terminal 206
Entered in. In the subtractor 130, N is connected to the terminal 205.1(6),
N at terminal 2060Time t when (6) is inputFourTo [N1(6)-
N0(6)] is calculated and time t6Is [N2(6) -N1(6)]
At time t8Is [N3(6) -N2(6)], such as
Input value of child 205, 206 is updated every 2 CLOCKs updated
Performs another subtraction (Fig. 16 (p)), and these values are
Under the control of the controller 132, the Δq memory 131
It is written sequentially. The memory controller 132 is a subtractor
To write the calculation result of 130 to the Δq memory 131
Address (Figure 16, Address (n)) and write pulse
(Fig. 16 (q)) is generated. First, DCT No. 6
The first value of N1(6) -N0(6) to address '05A'
To store at time tFourSet the value '05A' to Δq memory 13
1 (Fig. 16 (n)), and R / W pulse output (q) rises.
Timing of rising edge (time t6) Q memory 1
Write in 23. Therefore, as shown in FIG.
q The contents of the address '05A' of the memory 131 is the time t6To
Will be updated. The memory controller 132 then performs the next subtraction
Output N of the container 1302(6) -N1(6) is stored in the Δq memory 131.
Time t to pay6Update one address value to '05B' with
R / W pulse (q) rising edge timing
(Time t 8) Write in the address '05B' of the q memory 123.
By repeating the same operation, as shown in FIG.
The output (p) of 0 is sequentially written in the Δq memory 131.
Ku. The above operation is repeated for each DCT No.
Each DC in the address space of the Δq memory 131 shown in 4).
The difference of TNo. Is stored for one video segment. Next
In addition, one video segment described above in the data amount estimation unit 103
After estimating the amount of data for
The quantizer is determined by the unit 104.

【0035】量子化器の決定の動作は、伝送可能データ
量の範囲内で出来る限り多くのデータを伝送させるた
め、上記のデータ量見積のアドレスメモリレジスタ12
9で記憶された量子化No.q−1(この量子化器です
べてのDCTブロックを量子化したときCDを越えない
最大のデータ量となる)で全てのDCTブロックを量子
化した総データ量がCDを越えない(まだデータが伝送
可能な)場合、総データ量がよりCDに近づくように、
前半15DCTブロックと後半15DCTブロック交互
に、DCTNo.の小さい方から順に、量子化Noを1
つ上の値(以下1つ上のクラスという、q:q−1に比
べデータの丸め量が少ない)すなわち、量子化No.q
−1での総データ量にq−1に対応した各DCTNo.
の差分のデータ[Nq(i)−Nq-1(i)]を順次加算してい
き、CDを越える直前のDCTNo.求めるものであ
る。ここで差分のデータを加える事は1つ上のクラスの
量子化No.でそのDCTNo.を量子化したときのデー
タ量Nq(i)に相当する。この結果の1例を図11に示
す。同図において、第1ブロックはDCTNo.4ま
で、第2ブロックはDCTNo.18までが量子化No.
qに更新されたことを示し、CDを越えない最大のデー
タ量を伝送するために、量子化部106で量子化を行う
場合、第1ブロックはDCTNo.0からDCTNo.
4、第2ブロックはDCTNo.15からDCTNo.1
8までが量子化Noqの量子化器が、それ以降のDCT
ブロックについては量子化Noq−1の量子化器が選択
されることになる。ここでqとq−1の境目をスイッチ
ングポイント(SWP)と呼び、境目の直前のDCTN
o.で表す。また第2ブロックはDCTNo.15を0と
する。従って、同図の場合はSWPは第1ブロックが
4、第2ブロックが3となる。
In the quantizer decision operation, in order to transmit as much data as possible within the range of the transmittable data amount, the address memory register 12 for estimating the above data amount is used.
The total amount of data obtained by quantizing all DCT blocks with the quantization No. q-1 (the maximum amount of data that does not exceed CD when all the DCT blocks are quantized by this quantizer) stored in 9. If does not exceed the CD (data can still be transmitted), the total amount of data should be closer to the CD,
Alternately, the first 15DCT block and the latter 15DCT block are set to the quantization No. 1 in order from the smallest DCT No.
Next higher value (hereinafter, one higher class, the amount of data rounding is smaller than q: q-1), that is, quantization No. q
Each DCT No. corresponding to q-1 in the total data amount in -1.
Of the difference data [N q (i) -N q -1 (i)] will sequentially adding the one in which the immediately preceding DCTNo. Seek exceeding CD. Here, adding the difference data corresponds to the data amount N q (i) when the DCT No. is quantized by the quantization No. of the class above. An example of this result is shown in FIG. In the figure, the first block up to DCT No. 4 and the second block up to DCT No. 18 are quantization numbers.
When the quantization is performed by the quantizing unit 106 in order to transmit the maximum amount of data that does not exceed the CD, the first block indicates DCTNo. 0 to DCTNo.
4, the second block is DCT No. 15 to DCT No. 1
Up to 8 quantizers with quantized Noq, DCT after that
For the block, the quantizer of quantized Noq-1 will be selected. Here, the boundary between q and q-1 is called a switching point (SWP), and DCTN immediately before the boundary is
Expressed as o. In the second block, DCT No. 15 is set to 0. Therefore, in the case of the figure, the SWP has 4 for the first block and 3 for the second block.

【0036】図18、図19が量子化器選択部104の
詳細ブロック図で、図20がその動作タイミング図で、
また図17はメモリコントローラ132のうちΔqメモ
リ131のアドレスを生成する部分の詳細ブロック図で
ある。
18 and 19 are detailed block diagrams of the quantizer selection unit 104, and FIG. 20 is an operation timing chart thereof.
FIG. 17 is a detailed block diagram of a portion of the memory controller 132 that generates the address of the Δq memory 131.

【0037】図17、図18、図19において、135
はメモリ132の前半15DCTブロックの差分のデー
タが格納されているアドレスを更新するための加算器、
136はメモリ132の後半15DCTブロックの差分
のデータが格納されているアドレスを更新するための加
算器、134、137、139、143、145は信号
を選択するスイッチ(SW)、138、140はそれぞ
れSW137、139の出力をラッチするレジスタ、1
42はデータ量見積時、差分データを格納するためのア
ドレスを生成するためのカウンタ、144は加算器12
1での計算結課がキャリー1(l)を発生しない時、そ
の計算結果をラッチするレジスタ、146は、データ量
を加算する加算器、147は加算器146の加算結果を
ラッチし加算器146とともに累積加算器を構成するレ
ジスタ、148は主に図19に示ブロックから構成され
上記したデータ量見積で導出された(最終的なアドレス
メモリレジスタ129にラッチされた値)量子化No
(量子化器)から更にどのDCTNo.まで量子化No.
を1つ上のクラスに更新できるかを検出するSWP検出
器、149は第1ブロックのSWPを検出するカウン
タ、150は第2ブロックのSWPを検出するカウンタ
である。図20においてsは加算器135の出力、tは
レジスタ138の出力、uはレジスタ140の出力、v
はレジスタ133の出力、wはSW145の選択出力、
xは加算器146の出力、yは加算器146での計算結
果発生するキャリー2、zはカウンタ149の動作を制
御するコントロール信号、ロはカウンタ149の出力、
ハはカウンタ150の出力である。
In FIGS. 17, 18 and 19, 135
Is an adder for updating the address where the difference data of the first 15 DCT blocks of the memory 132 is stored,
Reference numeral 136 denotes an adder for updating the address in which the difference data of the latter half 15 DCT block of the memory 132 is stored, 134, 137, 139, 143, 145 denote switches (SW) for selecting signals, and 138, 140 respectively. Registers that latch the outputs of SW137 and 139, 1
42 is a counter for generating an address for storing difference data when estimating the data amount, and 144 is an adder 12
When the calculation result in 1 does not generate a carry 1 (l), a register for latching the calculation result, 146 for an adder for adding the data amount, 147 for latching the addition result of the adder 146 for adding 146 A register 148, which constitutes a cumulative adder, is mainly composed of blocks shown in FIG. 19 and is derived by the above-mentioned data amount estimation (final value latched in the address memory register 129) Quantization No.
(Quantizer) to any DCT No.
Is a SWP detector for detecting whether it can be updated to the class above by one, 149 is a counter for detecting the SWP of the first block, and 150 is a counter for detecting the SWP of the second block. 20, s is the output of the adder 135, t is the output of the register 138, u is the output of the register 140, and v
Is the output of the register 133, w is the selection output of the SW 145,
x is an output of the adder 146, y is a carry 2 generated as a result of calculation in the adder 146, z is a control signal for controlling the operation of the counter 149, and b is an output of the counter 149,
C is the output of the counter 150.

【0038】データ量見積の動作時、SW137は
(イ)側が選択され、レジスタ138には端子207を
介して図12、13のデータ量見積部で選択された量子
化器(この例では量子化No.8)での総データ量に順
次加算を行っていく対応する第1ブロックの差分データ
の格納された先頭アドレス値を示すアドレスメモリレジ
スタ129の出力がラッチされる。同様にSW139も
(イ)が選択され、レジスタ140には加算器136で
計算された第2ブロックの差分データの格納された先頭
アドレス値即ち、"アト゛レスレシ゛スタ129の出力" + "第2フ゛ロック
の差分テ゛ータの先頭アト゛レス("0E1")"の値がラッチされる。
During the operation of estimating the data amount, the SW 137 is selected on the (a) side and the quantizer (quantization in this example, selected by the data amount estimating unit of FIGS. 12 and 13 is selected for the register 138 via the terminal 207. The output of the address memory register 129 indicating the start address value in which the difference data of the corresponding first block, which sequentially adds to the total data amount in No. 8), is latched. Similarly, (a) is also selected for SW139, and the head address value of the difference data of the second block calculated by the adder 136 is stored in the register 140, that is, "output of address register 129" + "second block The value of the first address ("0E1") "of the difference data is latched.

【0039】以下、図20に示すようにデータ量見積で
量子化No.8が選択されたとして説明する。この場
合、量子化No.8に対応する差分データ[N9(i)−N8
(i)]はΔqメモリ131の次のアドレスに格納されて
いる。
In the following, description will be made assuming that quantization No. 8 is selected in the data amount estimation as shown in FIG. In this case, the difference data [N 9 (i) −N 8 ) corresponding to the quantization No. 8 is used.
(i)] is stored in the next address of the Δq memory 131.

【0040】DCT0 : 008、DCT1 : 017、DCT2 : 02
6、DCT3 : 035、DCT4 : 044 ・・・・・ DCT15 : 0E9、DCT16 : 0F7、DCT18 : 106、DCT19 : 11
5、DCT20 : 124 ・・・・・ そしてメモリコントロラー132は、このアドレスを交
互に出力するよう動作する。量子化器の選択動作を開始
する時刻t41でSW143は(イ)から(ア)に切り替
わりこの時刻以降、SW141の出力即ちレジスタ13
8の出力とレジスタ140の出力が交互に端子209を
介してΔqメモリ131に読みだしアドレスとして入力
される。SW141は、コントロール信号(z)によっ
てその接点が制御され、'L'の期間は(ア)が'H'の期
間は(イ)が選択される。またSW137およびSW1
39は時刻t41以降は(ア)が選択され、レジスタ13
8はコントロール信号(z)の'L'の期間のSW137
の出力をラッチし、レジスタ140は時刻t43以降コン
トロール信号(z)の'H'の期間のSW139の出力を
ラッチする。加算器135はSW134とともに、コン
トロール信号(z)が'L'の期間、レジスタ138の出
力と、'H'の期間、レジスタ139の出力と値'15'を
加算する。以上のことから図20に示すように、レジス
タ138は初期出力値'008'で、時刻t42から2CLOC
K毎に'017'、'026'、'035'、・・・・・ と値を更
新し、またレジスタ140は初期出力値'0E9'で、時
刻t43から2CLOCK毎に'0F7'、'106'、'11
5'、・・・・・ と値を更新する。従って端子209から読
みだしアドレスとして、時刻t41から1CLOCK毎に値'0
08'、'0E9'、'017'、'0F7'、'026'、'1
06'、・・・・・ がΔqメモリ131に出力される(図2
0(n))。
DCT0: 008, DCT1: 017, DCT2: 02
6, DCT3: 035, DCT4: 044 ... DCT15: 0E9, DCT16: 0F7, DCT18: 106, DCT19: 11
5, DCT20: 124 ..... And the memory controller 132 operates so as to alternately output this address. At time t 41 when the selecting operation of the quantizer is started, the SW 143 switches from (a) to (a), and after this time, the output of the SW 141, that is, the register 13
8 and the output of the register 140 are alternately input to the Δq memory 131 via the terminal 209 as a read address. The contact of the SW 141 is controlled by the control signal (z), and (a) is selected during the period of “L” and (a) during the period of “H”. Also SW137 and SW1
39, (a) is selected after time t 41 , and the register 13
8 is SW137 in the period of'L 'of the control signal (z)
And the register 140 latches the output of the SW 139 during the'H 'period of the control signal (z) after time t 43 . The adder 135, together with the SW134, adds the output of the register 138 and the output of the register 139 to the value “15” during the period when the control signal (z) is “L” and during the period “H”. From the above, as shown in FIG. 20, the register 138 has the initial output value '008', and 2CLOC from time t 42 .
The value is updated as' 017 ',' 026 ',' 035 ', ... for each K, and the register 140 has the initial output value' 0E9 ', and' 0F7 ',' every 2 CLOCKs from time t 43. 106 ', '11
5 ', ... Update the value. Therefore, as a read address from the terminal 209, a value of “0” is obtained every 1 CLOCK from time t 41.
08 ',' 0E9 ',' 017 ',' 0F7 ',' 026 ',' 1
06 ′, ... Are output to the Δq memory 131 (see FIG. 2).
0 (n)).

【0041】Δqメモリ131は入力されるアドレス値
の内容を出力し、次のCLOCK(a)の立ち上がりエッジでレ
ジスタ133にラッチする。時刻t42でレジスタ133
にラッチされたDCTNo.0の差分データが端子20
8を介して加算器146の一方の端子に入力される。ま
たこの時刻にはSW145は(イ)が選択されており、
加算器146の他方の端子にはレジスタ144の出力即
ちデータ量見積時に計算された量子化No.8ですべて
のDCTブロックが量子化された時の総データ量が入力
されており、これらの値の加算結果(x)が時刻t43
CLOCK(a)の立ち上がりエッジでレジスタ147にラッチ
される。SW145は時刻t43以降、次のビデオセグメ
ントまで(ア)が選択され、従って時刻t43では加算器
146はレジスタ147の出力とDCTNo.15の差
分データの加算を行い、この結果を時刻t44のCLOCK(a)
の立ち上がりエッジでレジスタ147にラッチする。次
に、時刻t44では、加算器146はレジスタ147の出
力とDCTNo.1の差分データの加算を行い、この結
果を時刻t44のCLOCK(a)の立ち上がりエッジでレジスタ
147にラッチする。時刻t45では、レジスタ147の
出力とDCTNo.16の差分データの加算、時刻t46
では、レジスタ147の出力とDCTNo.2の差分デ
ータの加算というように、1CLOCK毎にデータ量の累積
値に第1ブロック、第2ブロックのDCTNo.の差分
データを順次交互に更新し加算していく。と同時に加算
器146は加算結果を監視しCDを越えるとキャリー2
(y)を発生し、SWP検出器に出力する。図20はD
CTNo.19の差分データを加算したとき、CDを越
えキャリー2(y)が発生したことを示している。即
ち、第1ブロックのDCTNo.4、第2ブロックのD
CTNo.18までは、量子化器のクラスを1つ上(量
子化No.9)にしても、総データ量はCDを越えない
ことを示している。
The Δq memory 131 outputs the content of the input address value and latches it in the register 133 at the next rising edge of CLOCK (a). Register 133 at time t 42
The differential data of DCT No. 0 latched in
8 is input to one terminal of the adder 146. Also, at this time, the SW 145 is selected as (a),
To the other terminal of the adder 146, the output of the register 144, that is, the total data amount when all the DCT blocks are quantized by the quantization No. 8 calculated at the time of estimating the data amount, is input. Is the addition result (x) at time t 43
It is latched in the register 147 at the rising edge of CLOCK (a). After the time t 43, the SW 145 selects (a) until the next video segment. Therefore, at the time t 43 , the adder 146 adds the output of the register 147 and the difference data of the DCT No. 15 and outputs the result as the time t 44. CLOCK (a)
Latch in register 147 on the rising edge of Next, at time t 44, the adder 146 performs addition of the difference data output and DCTNo.1 register 147 is latched in the register 147 on the rising edge of CLOCK at time t 44 the results (a). At time t 45 , the output of the register 147 and the difference data of DCT No. 16 are added, and at time t 46
Then, like the output of the register 147 and the difference data of DCT No. 2, the difference data of the DCT No. of the first block and the second block are sequentially alternately updated and added to the cumulative value of the data amount every 1 CLOCK. Go. At the same time, the adder 146 monitors the addition result and carries 2 when the CD is exceeded.
(Y) is generated and output to the SWP detector. Figure 20 is D
When the difference data of CT No. 19 is added, it indicates that a carry 2 (y) occurred across the CD. That is, DCT No. 4 of the first block and D of the second block
Up to CT No. 18, even if the class of the quantizer is increased by one (quantization No. 9), the total data amount does not exceed the CD.

【0042】図19のように構成されるSWP検出器1
48では、カウンタ149はキャリー2(y)が発生す
るまでの第1ブロックのDCTNo.の更新状態を検出
するもので、時刻t43から動作し、端子211から入力
されるキャリー2信号(y)が'L'のときコントロール
信号(z)が'H'期間のCLOCK(a)をカウントする。また
カウンタ150はキャリー2(y)が発生するまでの第
2ブロックのDCTNo.の更新状態を検出するもの
で、時刻t44から動作し、キャリー2信号(y)が'L'
のときコントロール信号(z)が'L'期間のCLOCK(a)を
カウントし、値0がDCTNo.15、値1がDCTN
o.16 ・・・・・・に対応する。以上の動作の結果、図20
に示すように、DCTNo.19でキャリー2(y)が
発生すると、カウンタ149は値4で、同様にカウンタ
150は値3でカウント動作を停止し、端子212から
第1ブロックのSWP"4"、端子213から第2ブロッ
クのSWP"3"が出力され、量子化部106に送られ
る。量子化部106ではこのSWPと、データ量見積で
求めた量子化No.を基に量子化を行う。上記の例の場
合、第1ブロックはDCTNo.4までが、第2ブロッ
クではDCTNo.18までが量子化No.9で量子化さ
れ、それ以外のDCTNo.は量子化No.8で量子化さ
れる(図11において、q=9)。
SWP detector 1 constructed as shown in FIG.
At 48, the counter 149 detects the update state of the DCT No. of the first block until the carry 2 (y) is generated. The counter 149 operates from the time t 43 and carries the carry 2 signal (y) input from the terminal 211. Is "L", the control signal (z) counts CLOCK (a) during the "H" period. Further, the counter 150 detects the update state of the DCT No. of the second block until the carry 2 (y) is generated, and it operates from the time t 44 , and the carry 2 signal (y) is'L '.
At this time, the control signal (z) counts CLOCK (a) during the'L 'period, the value 0 is DCT No. 15, and the value 1 is DCTN.
Corresponding to o.16 .... As a result of the above operation, FIG.
When a carry 2 (y) occurs in DCT No. 19, the counter 149 stops counting at the value 4 and similarly the counter 150 stops at the value 3, as shown in FIG. , SWP “3” of the second block is output from the terminal 213 and sent to the quantization unit 106. The quantizer 106 quantizes based on this SWP and the quantized number obtained by the data amount estimation. In the above example, up to DCT No. 4 in the first block, up to DCT No. 18 in the second block are quantized with quantization No. 9, and other DCT Nos. Are quantized with quantization No. 8. (Q = 9 in FIG. 11).

【0043】ここで、第1ブロック、第2ブロックの最
初のDCTNo.の差分データを加算した時点で総デー
タ量がCDを越えるときはSWPの値を14にする規定
からこれらカウンタ149、150の初期値は14とな
っている。
Here, when the total data amount exceeds CD at the time when the first DCT No. difference data of the first block and the second block is added, the SWP value is set to 14 because of the provision of these counters 149 and 150. The initial value is 14.

【0044】[0044]

【発明が解決しようとする課題】しかしながら上記のよ
うな構成では、qメモリ123とΔqメモリ131のア
ドレスには相関関係が無く、またΔqメモリ131には
差分データがDCTNo.0から順につめて格納されて
いるため、アドレス制御に別々のメモリコントローラー
が要ること、量子化器選択時、Δqメモリ131から読
み出す際、その上記したようにそのアドレス値の発生が
複雑で、その実現のため加算器が2つ(135、13
6)とその周辺にセレクタ(SW)(137、139、
140)が要ること、更にSWPの検出に2つのカウン
タ(149、150)が要ること等から、IC化の際こ
の部分の回路実現には1000ゲート近くを要し、IC
の回路規模を大きくする1つの要因として問題であっ
た。
However, in the above configuration, there is no correlation between the addresses of the q memory 123 and the Δq memory 131, and the difference data is stored in the Δq memory 131 sequentially from DCT No. 0. Since a separate memory controller is required for address control, the generation of the address value is complicated as described above when reading from the Δq memory 131 when the quantizer is selected. There are two (135, 13
6) and its surroundings with selectors (SW) (137, 139,
140), and because two counters (149, 150) are needed for SWP detection, it requires about 1000 gates to implement the circuit in this IC.
Was a problem as one of the factors that increase the circuit scale of.

【0045】本発明は懸かる点に鑑み、データ量見積部
および量子化器選択部の回路規模を縮小し、IC化に適
した符号化装置を提供することを目的とする。
In view of the problems, it is an object of the present invention to reduce the circuit scale of the data amount estimating unit and the quantizer selecting unit and provide an encoding device suitable for IC implementation.

【0046】[0046]

【課題を解決するための手段】上記課題を解決するため
に本発明の符号化装置は、入力信号の標本値を集めてm
×nの画素毎に小ブロック化する小ブロック化手段と、
ブロックを所定数集めて大ブロック化する大ブロック化
手段と、大ブロックを少なくとも2つ以上のグループに
分けるグループ化手段と、小ブロック毎に直交変換する
直交変換手段と、直交変換手段で得られる直交成分に対
して複数種類の量子化器を備えた量子化手段と、大ブロ
ックのデータをそれぞれの量子化器で量子化したデータ
の符号化後のデータ量を計算するブロックデータ量計算
手段と、ブロックデータ量計算手段での計算結果を記憶
するデータ量メモリと、各小ブロック毎に量子化器間の
符号化後の符号量の差を求める差分データ算出手段、差
分データ算出手段での計算結果を記憶する差分データメ
モリとを具備し、差分データメモリのアドレスを示すビ
ット列をその特定のビット列がデータ量メモリのアドレ
スをも並列に指定するよう構成した符号化装置である。
In order to solve the above-mentioned problems, the coding apparatus of the present invention collects the sampled values of the input signal by m
Small block forming means for forming small blocks for each pixel of × n;
Large block forming means for collecting a predetermined number of blocks into large blocks, grouping means for dividing large blocks into at least two groups, orthogonal transforming means for orthogonal transforming each small block, and orthogonal transforming means. Quantizing means having a plurality of kinds of quantizers for orthogonal components, and block data amount calculating means for calculating the encoded data amount of data obtained by quantizing a large block of data with each quantizer, , A data amount memory for storing the calculation result in the block data amount calculating means, a difference data calculating means for obtaining the difference in the code amount after encoding between the quantizers for each small block, and a calculation in the difference data calculating means A differential data memory for storing the result is provided, and a bit string indicating the address of the differential data memory is specified in parallel with the specific bit string and the data amount memory address is also specified. It is so that configuration the encoder.

【0047】また、入力信号の標本値を集めてm×nの
画素毎に小ブロック化する小ブロック化手段と、ブロッ
クを所定数集めて大ブロック化する大ブロック化手段
と、大ブロックを少なくとも2つ以上のグループに分け
るグループ化手段と、小ブロック毎に直交変換する直交
変換手段と、直交変換手段で得られる直交成分に対して
複数種類の量子化器を備えた量子化手段と、大ブロック
のデータをそれぞれの量子化器で量子化したデータの符
号化後のデータ量を計算するブロックデータ量計算手段
と、ブロックデータ量計算手段での計算結果を記憶する
データ量メモリと、各小ブロック毎に量子化器間の符号
化後の符号量の差を求める差分データ算出手段、差分デ
ータ算出手段での計算結果を記憶する差分データメモリ
とを具備し、差分データメモリのアドレスを示すビット
列をその特定のビット列がグループの番号に、ビット列
の中の別の特定のビット列がグループ毎に含まれる小ブ
ロックの番号に対応するよう構成した符号化装置であ
る。
Further, at least the large block, at least the small block forming means for collecting the sampled values of the input signal and forming the small block for each m × n pixel, the large block forming means for collecting a predetermined number of blocks to make the large block. Grouping means for dividing into two or more groups, orthogonal transformation means for performing orthogonal transformation for each small block, quantization means provided with a plurality of types of quantizers for orthogonal components obtained by the orthogonal transformation means, and large A block data amount calculation means for calculating the data amount after encoding of the data obtained by quantizing the block data by each quantizer, a data amount memory for storing the calculation result by the block data amount calculation means, and each small The difference data calculation means for obtaining the difference in the code amount after encoding between the quantizers for each block, and the difference data memory for storing the calculation result by the difference data calculation means are provided. A bit string that indicates the address of the data memory to the number of the specific bit string group, an encoding device further particular bit sequence are configured to correspond to the number of small blocks included in each group in the bit string.

【0048】[0048]

【作用】本発明は、上記した構成により、データ量見積
動作時、差分データを記憶する差分データメモリをアク
セスするアドレスカウンタの出力ビット列の特定のビッ
ト列をデータ量メモリをアクセスするアドレスに割当、
1つのアドレスカウンタで双方のメモリを並列にアクセ
スする。また量子化器選択動作時、アドレスカウンタを
各グループの小ブロックの番号iに対応したビット列を
固定し、グループの番号に対応したビット列を変化さ
せ、各グループの小ブロックiに対応した差分データを
読みだした後、小ブロックの番号iに対応したビット列
の値をi+1に更新して固定し、再度グループの番号に
対応したビット列を変化させて、各グループの小ブロッ
クi+1に対応した差分データを読みだす。この動作を
繰り返して各グループの小ブロックに対応した差分デー
タを読みだしていく。
According to the present invention, according to the above configuration, a specific bit string of the output bit string of the address counter for accessing the differential data memory for storing the differential data is assigned to the address for accessing the data amount memory during the data amount estimating operation,
Both memories are accessed in parallel by one address counter. During the quantizer selection operation, the address counter fixes the bit string corresponding to the number i of the small blocks in each group, changes the bit string corresponding to the number of the group, and outputs the difference data corresponding to the small block i of each group. After reading, the value of the bit string corresponding to the small block number i is updated to i + 1 and fixed, and the bit string corresponding to the group number is changed again to obtain the difference data corresponding to the small block i + 1 of each group. Read out. This operation is repeated to read out the difference data corresponding to the small blocks in each group.

【0049】[0049]

【実施例】以下、本発明の一実施例について図面を用い
て説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0050】図1は本発明の一実施例における符号化装
置のデータ量見積部におけるqメモリ周辺のブロック
図、図2は同実施例におけるアドレス切り替え部の構成
を示すブロック図、図3は同実施例におけるΔqメモリ
のアドレス制御の動作タイミング図、図4は同実施例に
おけるSWP検出器のブロック図、図5はその動作タイ
ミング図である。これらの図において、従来例と同一機
能のブロックは同一番号を付して説明は省略する。図
1、図2、図4において、1はqメモリ123とΔqメ
モリ131を制御するメモリコントローラ、2はメモリ
コントローラ1のアドレス出力を必要なCLOCK数シフト
するアドレスシフタ、3は量子化器選択動作時Δqメモ
リ131のアドレスの最上位ビットの値を反転させる1
ビットカウンタ、4は同じく量子化器選択動作時Δqメ
モリ131のアドレス値の中位4ビット(bit4から
bit7)を出力するカウンタ、5、6、7はデータ量
見積時と量子化器選択時のアドレスを切り替えるSW、
8は量子化器選択動作終了時第1ブロックのSWPを出
力するレジスタ、9は同第2ブロックのSWPを出力す
るレジスタである。図3において、n'はSW5、6、
7を介して出力されるΔqメモリ131のアドレス信
号、(ニ)はカウンタ3の出力、(ホ)はカウンタ4の
出力、(ヘ)はレジスタ8の出力、(ト)はレジスタ9
の出力である。
FIG. 1 is a block diagram of the periphery of the q memory in the data amount estimation unit of the encoding device in one embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of the address switching unit in the embodiment, and FIG. 3 is the same. FIG. 4 is an operation timing chart of address control of the Δq memory in the embodiment, FIG. 4 is a block diagram of the SWP detector in the embodiment, and FIG. 5 is an operation timing chart thereof. In these figures, the blocks having the same functions as those in the conventional example are designated by the same reference numerals and the description thereof will be omitted. 1, 2, and 4, 1 is a memory controller that controls the q memory 123 and the Δq memory 131, 2 is an address shifter that shifts the address output of the memory controller 1 by the required CLOCK number, and 3 is a quantizer selection operation. Time Δq Invert the value of the most significant bit of the address of the memory 131 1
Similarly, the bit counters 4 are counters for outputting the middle 4 bits (bit 4 to bit 7) of the address value of the Δq memory 131 during the quantizer selection operation, and 5, 6, and 7 are counters for estimating the data amount and selecting the quantizer. SW to switch the address,
Reference numeral 8 is a register for outputting the SWP of the first block at the end of the quantizer selection operation, and 9 is a register for outputting the SWP of the second block. In FIG. 3, n'is SW5, 6,
7, the address signal of the Δq memory 131 output via 7, the output of the counter 3 (d), the output of the counter 4 (e), the output of the register 8 (f), the register 9 (g)
Is the output of.

【0051】また、本実施例では、Δqメモリ131に
格納する差分データのアドレス空間は従来装置と異なり
(表5)に示すように設定する。即ち、それぞれのDC
TNoの差分データを、アドレスの下位4ビットの値が
16進数の'0'から'E'までの空間に格納し、アドレス
の中位4ビットの値をそれぞれのDCTNo.に対応
(第2ブロックののDCTNo.も先頭のDCTNo.1
5を0とする)させ、更にアドレスの上位1ビットの値
で第1ブロックと第2ブロックを区別するようにその空
間を割り付けている。
Further, in the present embodiment, the address space of the differential data stored in the Δq memory 131 is set as shown in (Table 5) unlike the conventional device. That is, each DC
The difference data of the TNo is stored in the space where the lower 4 bits of the address are hexadecimal numbers "0" to "E", and the middle 4 bits of the address correspond to each DCT No. (second block). DCT No. is also the first DCT No. 1
5 is set to 0), and the space is allocated so that the first block and the second block are distinguished by the value of the upper 1 bit of the address.

【0052】[0052]

【表5】 [Table 5]

【0053】また(表5)にないアドレス例えば'00
F'にはメモリセル存在しない。(表6)にその詳細を
示す。(表6)に示すように差分データ[Nj+1(i)−N
j(i)]の値が格納されているΔqメモリ131のアドレ
スの下位4ビットはどのDCTNo.も全て同じ値jに
なる。また、(表6)からわかるようにアドレス下位4
ビットの値は、データ量見積時に選択される量子化N
o.に対応する。即ち、量子化器選択動作時、下位4ビ
ットの値がデータ量見積で選択された量子化No.に等
しいアドレスに格納された差分データを順次読み出せば
よいように構成されている。
Addresses not listed in (Table 5), for example, '00
There is no memory cell in F '. The details are shown in (Table 6). As shown in (Table 6), the difference data [N j + 1 (i) −N
The lower 4 bits of the address of the Δq memory 131 in which the value of j (i)] is stored have the same value j for all DCT numbers. Also, as can be seen from (Table 6), the lower four addresses
The value of the bit is the quantization N selected when estimating the data amount.
Corresponds to o. That is, in the quantizer selection operation, the difference data stored in the address whose lower 4 bits are equal to the quantization No. selected in the data amount estimation may be sequentially read.

【0054】[0054]

【表6】 [Table 6]

【0055】以上のように構成された実施例について、
図面を基に以下説明する。図1に示すように、メモリコ
ントローラ1内の不図示の9ビットのアドレスカウンタ
の出力はアドレスシフタ2を経由して端子11、12、
13を介して出力され、図2に示すアドレス切り替え部
の端子15、16、17を経てSW5、6、7の接点
(イ)に入力される。データ量見積の動作時は、これら
のSW5、6、7は(イ)側が選択されいるため、端子
18、19、20からこのアドレスカウンタの出力がΔ
qメモリ131のアドレスとして出力される。ここで、
9ビットのうち端子18からは上位1ビットが、端子1
9からは中位4ビットが、端子20からは下位4ビット
が出力される。またこのアドレスカウンタの出力の下位
4ビット(アドレスァ)およびアドレスシフタ2でシフ
トされた値(アドレスア)は、SW127およびレジス
タ128を経てqメモリ123のアドレス値(図14
(g))になる。メモリコントローラ1は上記したと同
様の時刻t2のタイミングでアドレスァを出力するよう
に内部の9ビットのアドレスカウンタ(以下9ビットカ
ウンタという)を動作させる。アドレスシフタ2はこの
9ビットカウンタの出力を2CLOCKシフトするもので、
この結果アドレスアは上記同様の時刻t4のタイミング
で出力される。また図3(従来の説明と同様DCTN
o.6の場合を示している)に示すように、上記同様の
時刻t4のタイミングでΔqメモリ131に先頭のアド
レスを与えることになる。ここで従来装置と異なること
は、アドレスィの下位4ビットの値が各DCTNo.と
も'0'から開始される点である(図3では'06'とな
る)。メモリコントローラ1の9ビットカウンタは、従
来装置のアドレスと同様以降2CLOCK毎に値を1つ更新
するので、以降はΔqメモリのアドレス(アドレスィ
(n'))の値が異なる以外は従来と全く同様の動作と
なる。9ビットカウンタはデータ量見積開始時即ちDC
TNo.0のデータ量の加算を開始する直前にに'00
0'にリセットされ、図14に示したようにDCTNo.
0の時刻t4から2CLOCK毎に値を1つ更新(カウント)
し、下位4ビットの値がqメモリ123の最後のアドレ
ス'F'になると動作を停止しその値を保持し、次のDC
TNo.の時刻t2からまたそのカウント動作を続けて、
qメモリ123のアドレスを再度'0'から繰り返すと共
に、Δqメモリ131のアドレスを次の新たな値に更新
していく。Δqメモリ131には下位4ビットの値が'
F'になるアドレスにはメモリセルがなく、データの書
き込みはない。また9ビットカウンタは'0EF'の次
は'0F0'ではなく'100'に値が飛ぶように周知の技
術で構成される。
Regarding the embodiment configured as described above,
It will be described below with reference to the drawings. As shown in FIG. 1, the output of a 9-bit address counter (not shown) in the memory controller 1 passes through the address shifter 2 and the terminals 11, 12,
It is output via 13 and is input to the contact (a) of SW 5, 6, and 7 via terminals 15, 16, and 17 of the address switching unit shown in FIG. During the operation of estimating the amount of data, since the SWs 5, 6, and 7 are selected on the side (a), the output of this address counter from the terminals 18, 19 and 20 is Δ.
It is output as the address of the q memory 131. here,
Of the 9 bits, the upper 1 bit from the terminal 18 is the terminal 1
The middle 4 bits are output from 9 and the lower 4 bits are output from the terminal 20. Further, the lower 4 bits (addresser) of the output of the address counter and the value (address A) shifted by the address shifter 2 pass through the SW 127 and the register 128, and the address value of the q memory 123 (FIG. 14).
(G)). The memory controller 1 operates an internal 9-bit address counter (hereinafter referred to as a 9-bit counter) so as to output the addresser at the same timing t 2 as described above. The address shifter 2 shifts the output of this 9-bit counter by 2 CLOCK,
As a result, the address A is output at the timing of time t 4 similar to the above. In addition, as shown in FIG.
6), the head address is given to the Δq memory 131 at the timing of time t 4 similar to the above. The difference from the conventional device is that the value of the lower 4 bits of the address starts from "0" for each DCT No. (it becomes "06 0 " in FIG. 3). Since the 9-bit counter of the memory controller 1 updates one value every 2 CLOCKs like the address of the conventional device, it is completely different from the conventional one except that the value of the address (address (n ')) of the Δq memory is different thereafter. The same operation is performed. 9-bit counter is DC at the start of data amount estimation
Immediately before starting the addition of the data amount of TNo.
It is reset to 0 ', and DCT No. as shown in FIG.
Update one value every 2 CLOCKs from time t 4 of 0 (count)
Then, when the value of the lower 4 bits reaches the last address'F 'of the q memory 123, the operation is stopped and the value is held, and the next DC
The counting operation is continued again from time t 2 of TNo.
The address of the q memory 123 is repeated from '0' again, and the address of the Δq memory 131 is updated to the next new value. The value of the lower 4 bits is stored in the Δq memory 131.
There is no memory cell at the address that becomes F ′, and no data is written. Further, the 9-bit counter is configured by a known technique so that the value jumps to "100" instead of "0F0" after "0EF".

【0056】次に本実施例における量子化選択時の動作
について説明する。量子化選択動作時、図2のアドレス
選択部のSW5、6、7は全て(ア)が選択される。S
W5の接点(ア)にはカウンタ3の出力が、SW6の接
点(ア)にはカウンタ4の出力が接続される。またSW
7の接点(ア)には端子14を介してアドレスメモリレ
ジスタ129の出力が接続される。従って、量子化選択
動作時、Δqメモリ131のアドレス下位4ビットは、
アドレスメモリレジスタ129の出力値即ち、データ量
見積動作時に選択された量子化No.の値に固定される
ことになる。以降従来例の説明と同様、その値が8であ
ったと仮定して説明する。量子化選択動作を開始する時
刻t80にカウンタ3は、図5に示すように'H'から'L'
になりその後1CLOCK毎に反転を繰り返す。また、カウ
ンタ3の出力(ニ)が'H'レベルの時にカウントを1つ
更新するカウンタ4は、この時刻に'0'にリセットされ
る。従って、時刻t80にΔqメモリ131はアドレスィ
(n')'008'番地がアクセスされ、対応するDCT
No.0の差分データ[N9(0)−N8(0)]が出力され、
時刻t81のCLOCK(a)の立ち上がりエッジでレジスタ13
3にラッチされる(図5(v))。次に時刻t81になる
と、カウンタ3の出力(ニ)は'L'レベルであるので、
Δqメモリ131はアドレスィ(n')'108'番地が
アクセスされ、対応するDCTNo.15の差分データ
[N9(15)−N8(15)]が出力され、時刻t82のCLOCK(a)
の立ち上がりエッジでレジスタ133にラッチされる。
と同時にカウンタ4の出力値(ホ)が1つ更新され、時
刻t82ではΔqメモリ131はアドレスィ(n')'01
8'番地がアクセスされ、対応するDCTNo.1の差分
データ[N9(1)−N8(1)]が出力され、時刻t83のCLOC
K(a)の立ち上がりエッジでレジスタ133にラッチされ
る。このようにして図5に示すように、レジスタ133
には時刻t81から1CLOCK毎に、Δqメモリ131か
ら、アドレスメモリレジスタ129の出力値に対応した
差分データ(この例では、(表6)の下線を引いた部
分)が第1ブロック、第2ブロック交互に出力され、ラ
ッチされる。
Next, the operation when quantization is selected in this embodiment will be described. At the time of the quantization selection operation, SW5, 6, and 7 of the address selection unit of FIG. S
The output of the counter 3 is connected to the contact (a) of W5, and the output of the counter 4 is connected to the contact (a) of SW6. Also SW
The output of the address memory register 129 is connected to the contact point (7) of 7 through the terminal 14. Therefore, during the quantization selection operation, the lower 4 bits of the address of the Δq memory 131 are
The output value of the address memory register 129, that is, the value of the quantization No. selected during the data amount estimation operation, is fixed. Hereinafter, similar to the description of the conventional example, description will be made assuming that the value is 8. At time t 80 when the quantization selection operation is started, the counter 3 changes from “H” to “L” as shown in FIG.
After that, the inversion is repeated every 1 CLOCK. Further, the counter 4, which updates the count by 1 when the output (d) of the counter 3 is at the “H” level, is reset to “0” at this time. Therefore, at time t 80 , the Δq memory 131 is accessed at the address (n ′) '008' and the corresponding DCT
The difference data [N 9 (0) -N 8 (0)] of No. 0 is output,
At the rising edge of CLOCK (a) at time t 81 , register 13
3 is latched (Fig. 5 (v)). Next, at time t 81 , since the output (d) of the counter 3 is at the “L” level,
Δq memory 131 address I (n ')' 108 'address is accessed, the differential data [N 9 (15) -N 8 (15)] of the corresponding DCTNo.15 is output, at time t 82 CLOCK (a )
Latched in register 133 on the rising edge of.
At the same time, the output value (e) of the counter 4 is updated by one, and at time t 82 , the Δq memory 131 has the address (n ′) ′ 01.
Address 8'is accessed, the corresponding difference data [N 9 (1) -N 8 (1)] of DCT No. 1 is output, and CLOC at time t 83 .
It is latched in the register 133 at the rising edge of K (a). In this way, as shown in FIG.
Every 1 CLOCK from time t 81, the difference data (in this example, the underlined portion of (Table 6)) corresponding to the output value of the address memory register 129 is output from the Δq memory 131 in the first block and the second block. The blocks are alternately output and latched.

【0057】このレジスタ133の出力値が図18に示
す端子208を介して加算器146の一方の端子に入力
され、従来例と同様データ量見積動作時にレジスタ14
4にラッチされた値に順次累積加算をしていき、その累
積値がCDを越した時点でキャリー2(y)を発生させ
る。
The output value of the register 133 is input to one terminal of the adder 146 via the terminal 208 shown in FIG. 18, and the register 14 is used in the data amount estimating operation as in the conventional example.
The value latched in 4 is sequentially cumulatively added, and when the cumulative value exceeds CD, a carry 2 (y) is generated.

【0058】このように、データ量見積で求めたCDを
越えない最大の、
In this way, the maximum value that does not exceed the CD obtained by the data amount estimation,

【0059】[0059]

【数2】 [Equation 2]

【0060】Δqメモリ131の下位4ビットの値がq
−1のアドレスに格納されている差分データ[Nq(i)−
q-1(i)]を順次加算することは、各DCTNo.のデ
ータ量を1つ上(q)のクラスの量子化No.のデータ
量Nq(i)に置き換えることであり、加算時キャリー2
(y)が発生しなければ、そのDCTNo.iの量子化
クラスを1つ上げても総データ量がCDを越えないこと
を意味する。
The value of the lower 4 bits of the Δq memory 131 is q.
Difference data [N q (i) − stored at the address −1
N q−1 (i)] is sequentially added to replace the data amount of each DCT No. with the data amount N q (i) of the quantization No. of the class (q) one higher. Carry 2
If (y) does not occur, it means that the total data amount does not exceed CD even if the quantization class of DCT No. i is increased by one.

【0061】次に本実施例におけるSWP検出器の動作
にて説明する。図4において、レジスタ8には端子21
を介してカウンタの3の出力(ニ)と端子22を介して
加算器146のキャリー2(y)と端子23を介してカ
ウンタ4の出力(ホ)が入力される。またレジスタ9に
は、同様にカウンタ3の出力(ニ)とキャリー2(y)
そしてレジスタ8の出力(ヘ)が入力される。レジスタ
8は時刻t82から動作を開始し、キャリー2(y)が'
L'レベルで、カウンタ3の出力(ニ)が'H'レベルの
時CLOCK(a)の立ち上がりエッジでカウンタ4の出力
(ホ)をラッチする。またレジスタ9は時刻t83から動
作を開始し、キャリー2(y)が'L'レベルで、カウン
タ3の出力(ニ)が'L'レベルの時CLOCK(a)の立ち上が
りエッジでレジタ8の出力(ヘ)をラッチする。今、図
5のようにキャリー2がDCTNo.19の差分データ
を加算した結果、発生したとする(時刻t90とt91
間)と、レジスタ8の出力は'0'、'1'、'2'、'
3'、'4'と変化し、キャリー2(y)が発生する直前
の値'4'がホールドされ、第1ブロックのSWPとして
端子24から量子化部106に出力される。またレジス
タ9は'0'、'1'、'2'、'3'と変化し、キャリー2
(y)が発生する直前の値'3'がホールドされ、第2ブ
ロックのSWPとして端子25から量子化部106に出
力される。量子化部106はこの情報を基に従来例と同
様各DCTブロックの量子化を行う。ここで、第1ブロ
ック、第2ブロックの最初のDCTNo.の差分データ
を加算した時点で総データ量がCDを越えるときはSW
Pの値を14にすることからこれらレジスタ8、9の初
期値は14となっている。
Next, the operation of the SWP detector in this embodiment will be described. In FIG. 4, the register 21 has a terminal 21.
The output (3) of the counter 4 is input via the terminal 22, the carry 2 (y) of the adder 146 via the terminal 22, and the output (e) of the counter 4 via the terminal 23. Similarly, the output of the counter 3 (d) and the carry 2 (y) are stored in the register 9.
Then, the output (f) of the register 8 is input. Register 8 starts operation at time t 82 , and carry 2 (y) becomes'
At the L level, when the output (d) of the counter 3 is at the “H” level, the output (e) of the counter 4 is latched at the rising edge of CLOCK (a). Further, the register 9 starts operating at time t 83, and when the carry 2 (y) is at the “L” level and the output (d) of the counter 3 is at the “L” level, the register 8 of the register 8 is output at the rising edge of CLOCK (a). Latch the output (f). Assuming that this occurs as a result of carry 2 adding the difference data of DCT No. 19 as shown in FIG. 5 (between times t 90 and t 91 ), the output of register 8 is “0”, “1”, '2', '
The value "4" immediately before the carry 2 (y) is generated is held, and is output from the terminal 24 to the quantizer 106 as the SWP of the first block. Also, the register 9 changes to "0", "1", "2", "3", and the carry 2
The value '3' immediately before the occurrence of (y) is held and output from the terminal 25 to the quantization unit 106 as the SWP of the second block. The quantizer 106 quantizes each DCT block based on this information as in the conventional example. Here, if the total data amount exceeds the CD at the time when the first DCT No. difference data of the first block and the second block is added, SW
Since the value of P is set to 14, the initial value of these registers 8 and 9 is 14.

【0062】以上のように本実施例によれば、Δqメモ
リ131のアドレス空間即ち各DCTNo.の差分デー
タの格納領域を上記した(表5)、(表6)のように設
定することにより、qメモリのアドレスにΔqメモリの
アドレスの1部を共通に使用することが可能となり、従
来装置に比べqメモリのメモリコントローラを削減する
事が出来る。
As described above, according to this embodiment, by setting the address space of the Δq memory 131, that is, the storage area of the differential data of each DCT No., as shown in (Table 5) and (Table 6) above, It is possible to commonly use a part of the address of the Δq memory for the address of the q memory, and it is possible to reduce the memory controller of the q memory as compared with the conventional device.

【0063】また、量子化器選択時のΔqメモリのアド
レスの発生回路は、主に1ビットと4ビットのカウンタ
のみで構成でき、従来装置のように2つの加算器やその
結果をラッチするレジスタ群が要らず、回路の大幅な削
減が出来る。
Further, the address generation circuit of the Δq memory when the quantizer is selected can be composed mainly of only 1-bit and 4-bit counters, and it has two adders and a register for latching the result as in the conventional device. A large number of circuits can be reduced without the need for groups.

【0064】さらに、SWP検出器に、従来装置のよう
に2つの4ビットカウンタでなく、2つの4ビットレジ
スタで構成でき、ァア同様に回路規模の削減が出来る。
Furthermore, the SWP detector can be configured with two 4-bit registers instead of the two 4-bit counters used in the conventional device, and the circuit scale can be reduced as in the case of the device.

【0065】等から、従来装置に比べ、データ量見積
部、量子化器選択部の回路規模が大幅な削減(80%程
度減)が可能となる。
From the above, the circuit scale of the data amount estimation unit and the quantizer selection unit can be significantly reduced (about 80% reduction) as compared with the conventional device.

【0066】[0066]

【発明の効果】以上説明したように、本発明を用いるこ
とにより、データ量見積部および量子化器選択部の回路
規模を従来装置に比べ大幅に縮小する事が出来、IC化
に適した符号化装置を提供できるので、その効果は大な
るものがある。
As described above, by using the present invention, the circuit scale of the data amount estimating unit and the quantizer selecting unit can be significantly reduced as compared with the conventional device, and a code suitable for IC integration can be obtained. The effect can be great because the apparatus can be provided.

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

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

【図2】同実施例におけるアドレス切り替え部の構成を
示すブロック図
FIG. 2 is a block diagram showing a configuration of an address switching unit in the same embodiment.

【図3】実施例におけるΔqメモリのアドレス制御の動
作タイミング図
FIG. 3 is an operation timing chart of address control of the Δq memory in the embodiment.

【図4】同実施例におけるSWP検出器のブロック図FIG. 4 is a block diagram of a SWP detector in the same embodiment.

【図5】同実施例におけるSWP検出の動作タイミング
FIG. 5 is an operation timing chart of SWP detection in the embodiment.

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

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

【図8】大ブロック化部の構成図FIG. 8 is a block diagram of a large block conversion unit.

【図9】DCTされた成分の帯域、及び直交変換器から
のデータの出力順を示す模式図
FIG. 9 is a schematic diagram showing a band of DCT components and an output order of data from an orthogonal transformer.

【図10】ビデオセグメント化されたDCTブロックの
伝送順番を示す図
FIG. 10 is a diagram showing the transmission order of DCT blocks that are video segmented.

【図11】各DCTブロックと量子化器No.の関係を
示す説明図
FIG. 11 is a block diagram of each DCT block and quantizer No. Explanatory diagram showing the relationship of

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

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

【図14】従来のデータ量見積部の動作タイミング図FIG. 14 is an operation timing chart of a conventional data amount estimation unit.

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

【図16】従来のデータ量見積部の動作タイミング図FIG. 16 is an operation timing chart of the conventional data amount estimation unit.

【図17】従来のΔqメモリのメモリコントローラの1
部示すブロック図
FIG. 17 is a memory controller 1 of a conventional Δq memory.
Block diagram

【図18】量子化器選択部のブロック図FIG. 18 is a block diagram of a quantizer selection unit.

【図19】従来のSWP検出器のブロック図FIG. 19 is a block diagram of a conventional SWP detector.

【図20】量子化器選択部の動作タイミング図FIG. 20 is an operation timing chart of the quantizer selection unit.

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

1 メモリコントローラ 2 アドレスシフタ 3 1ビットカウンタ 4 4ビットカウンタ 8 4ビットレジスタ 9 4ビットレジスタ 1 memory controller 2 address shifter 3 1-bit counter 4 4-bit counter 8 4-bit register 9 4-bit register

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力信号の標本値を集めてm×nの画素
毎に小ブロック化する小ブロック化手段と、前記小ブロ
ックを所定数集めて大ブロック化する大ブロック化手段
と、前記大ブロックを少なくとも2つ以上のグループに
分けるグループ化手段と、前記小ブロック毎に直交変換
する直交変換手段と、前記直交変換手段で得られる直交
成分に対して複数種類の量子化器を備えた量子化手段
と、前記大ブロックのデータをそれぞれの前記量子化器
で量子化したデータの符号化後のデータ量を計算するブ
ロックデータ量計算手段と、前記ブロックデータ量計算
手段での計算結果を記憶するデータ量メモリと、前記各
小ブロック毎に前記量子化器間の符号化後の符号量の差
を求める差分データ算出手段と、前記差分データ算出手
段での計算結果を記憶する差分データメモリとを具備
し、前記差分データメモリのアドレスを示すビット列を
その特定のビット列が前記データ量メモリのアドレスを
も並列に指定するよう構成したことを特徴とする符号化
装置。
1. A small block forming means for collecting sampled values of an input signal into small blocks for each of m × n pixels, a large block forming means for collecting a predetermined number of the small blocks to form a large block, and the large block. A grouping means for dividing a block into at least two or more groups, an orthogonal transformation means for orthogonally transforming each of the small blocks, and a quantum including a plurality of kinds of quantizers for the orthogonal components obtained by the orthogonal transformation means. Storage means, a block data amount calculation means for calculating a data amount after encoding of the data obtained by quantizing the large block data by each of the quantizers, and a calculation result in the block data amount calculation means. A data amount memory for storing, a difference data calculating unit for obtaining a difference in code amount between the quantizers after encoding for each of the small blocks, and a calculation result in the difference data calculating unit That includes a differential data memory, the encoding apparatus characterized by a bit string indicating the address of the differential data memory that particular bit sequence is configured to specify in parallel also an address of the data amount memory.
【請求項2】 入力信号の標本値を集めてm×nの画素
毎に小ブロック化する小ブロック化手段と、前記小ブロ
ックを所定数集めて大ブロック化する大ブロック化手段
と、前記大ブロックを少なくとも2つ以上のグループに
分けるグループ化手段と、前記小ブロック毎に直交変換
する直交変換手段と、前記直交変換手段で得られる直交
成分に対して複数種類の量子化器を備えた量子化手段
と、前記大ブロックのデータをそれぞれの前記量子化器
で量子化したデータの符号化後のデータ量を計算するブ
ロックデータ量計算手段と、前記ブロックデータ量計算
手段での計算結果を記憶するデータ量メモリと、前記各
小ブロック毎に前記量子化器間の符号化後の符号量の差
を求める差分データ算出手段と、前記差分データ算出手
段での計算結果を記憶する差分データメモリとを具備
し、前記差分データメモリのアドレスを示すビット列を
その特定のビット列が前記グループの番号に、前記ビッ
ト列の中の別の特定のビット列が前記グループ毎に含ま
れる小ブロックの番号に対応するよう構成したことを特
徴とする符号化装置。
2. A small block forming means for collecting sampled values of an input signal into small blocks for each m × n pixels, a large block forming means for collecting a predetermined number of the small blocks into a large block, and the large block. A grouping means for dividing a block into at least two or more groups, an orthogonal transformation means for orthogonally transforming each of the small blocks, and a quantum including a plurality of kinds of quantizers for the orthogonal components obtained by the orthogonal transformation means. Storage means, a block data amount calculation means for calculating a data amount after encoding of the data obtained by quantizing the large block data by each of the quantizers, and a calculation result in the block data amount calculation means. A data amount memory for storing, a difference data calculating unit for obtaining a difference in code amount between the quantizers after encoding for each of the small blocks, and a calculation result in the difference data calculating unit A differential data memory having a specific bit string indicating the address of the differential data memory, the specific bit string is the number of the group, and another specific bit string in the bit string is included in each of the groups. An encoding device configured to correspond to a number.
JP23557792A 1992-09-03 1992-09-03 Encoding device Expired - Fee Related JP2897543B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23557792A JP2897543B2 (en) 1992-09-03 1992-09-03 Encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23557792A JP2897543B2 (en) 1992-09-03 1992-09-03 Encoding device

Publications (2)

Publication Number Publication Date
JPH0686256A true JPH0686256A (en) 1994-03-25
JP2897543B2 JP2897543B2 (en) 1999-05-31

Family

ID=16988057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23557792A Expired - Fee Related JP2897543B2 (en) 1992-09-03 1992-09-03 Encoding device

Country Status (1)

Country Link
JP (1) JP2897543B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU770177B2 (en) * 1999-04-30 2004-02-12 Matsushita Electric Industrial Co., Ltd. Frame switcher and method of switching, digital camera and monitoring system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU770177B2 (en) * 1999-04-30 2004-02-12 Matsushita Electric Industrial Co., Ltd. Frame switcher and method of switching, digital camera and monitoring system

Also Published As

Publication number Publication date
JP2897543B2 (en) 1999-05-31

Similar Documents

Publication Publication Date Title
JP2531955B2 (en) One-dimensional cosine transform value calculation device, and image coding device and decoding device including the calculation device
US6222941B1 (en) Apparatus for compression using reversible embedded wavelets
US6798833B2 (en) Video frame compression/decompression hardware system
US7167592B2 (en) Method and apparatus for compression using reversible wavelet transforms and an embedded codestream
US6195465B1 (en) Method and apparatus for compression using reversible wavelet transforms and an embedded codestream
US6301392B1 (en) Efficient methodology to select the quantization threshold parameters in a DWT-based image compression scheme in order to score a predefined minimum number of images into a fixed size secondary storage
US7418142B2 (en) Method for compression using reversible embedded wavelets
JPH0818459A (en) High efficiency encoder and high efficiency decoder
JPS6012884A (en) Method and device for processing image signal
KR100944928B1 (en) Apparatus and method for encoding and computing a discrete cosine transform using a butterfly processor
JP4209631B2 (en) Encoding device, decoding device, and compression / decompression system
EP0535950A2 (en) Digital data transmitting apparatus and method
JP2897543B2 (en) Encoding device
JP3191342B2 (en) Encoding device
JP3432655B2 (en) Image coding device
JP2887843B2 (en) Image data restoration method and apparatus
JPH0936749A (en) Coding decoding device and coding method used for it
JP3281423B2 (en) Code amount control device at the time of image encoding
JP3142356B2 (en) Quantizer and image data quantizer
JP3044877B2 (en) Encoding device
JP2003333339A (en) Image encoding apparatus and image encoding method
JPH04297185A (en) Quantizing method for image compression
JP2929591B2 (en) Image coding device
JP2560987B2 (en) Image processing device
Fan et al. A cost effective solution for digital cardiac angiogram archiving using lossless image compression

Legal Events

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

Free format text: PAYMENT UNTIL: 20080312

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090312

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees