JPH01161930A - Correction method for adaptive bit assignment - Google Patents

Correction method for adaptive bit assignment

Info

Publication number
JPH01161930A
JPH01161930A JP32037687A JP32037687A JPH01161930A JP H01161930 A JPH01161930 A JP H01161930A JP 32037687 A JP32037687 A JP 32037687A JP 32037687 A JP32037687 A JP 32037687A JP H01161930 A JPH01161930 A JP H01161930A
Authority
JP
Japan
Prior art keywords
correction
bits
band
total number
corrected
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
JP32037687A
Other languages
Japanese (ja)
Other versions
JP2597613B2 (en
Inventor
Norimasa Kudo
工藤 憲昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP62320376A priority Critical patent/JP2597613B2/en
Publication of JPH01161930A publication Critical patent/JPH01161930A/en
Application granted granted Critical
Publication of JP2597613B2 publication Critical patent/JP2597613B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To attain high speed correction without increasing the hardware by applying correction to total bit number (bk) one by one bit each when the total bit number (bk) requiring the correction does not exceed a predetermined value and applying the correction of plural bits to the total bit number bk when the predetermined value is exceeded. CONSTITUTION:When the total bit number (bk) requiring the correction does not exceed a predetermined value, the correction of the total bk is applied one by one bit each and when the total bit number (bk) requiring the correction exceeds a predetermined value, the correction of the plural bits is applied to the bit bk. When the total bit number requiring the correction exceeds a predetermined value in this way, since the correction for plural bits is applied to the total bit bk in a batch at each band, the correction is attained at a high speed without incurring the increase in the hardware even with a large correction quantity.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は情報圧縮における適応ビットv1当の補正方法
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a correction method for adaptive bit v1 in information compression.

(従来の技術) 一般にデジタル伝送、記録等を行う場合、画像及び音声
等のアナログ信丹はデジタル化され、冗長度を排するた
め情報圧縮が行われ、伝送、記録等のためにコード化(
ωft)される。
(Prior art) Generally, when performing digital transmission, recording, etc., analog information such as images and audio is digitized, information is compressed to eliminate redundancy, and coded (
ωft).

第3図はこのm子化を図示したものである。横軸が入力
値を示し、縦軸が出力値を示し、各段階に付されている
数字はQ子化コードを示す。この例の場合4ビットにコ
ード化する場合を示しており、24個のコードが存する
。介入力値が0.34の場合コードは3で、復丹した出
力値は0.32となり、この場合のQ子化誤斧は0.0
2となる。このように量子化及び逆量子化を行うと一般
にQ子化J uが生じる。
FIG. 3 illustrates this m-childization. The horizontal axis shows the input value, the vertical axis shows the output value, and the number attached to each stage shows the Q childization code. This example shows the case of encoding into 4 bits, and there are 24 codes. If the intervention force value is 0.34, the code is 3, the restored output value is 0.32, and the Q child conversion error ax in this case is 0.0.
It becomes 2. When quantization and inverse quantization are performed in this way, Q-childization J u generally occurs.

従来からこのO子化誤差を最少にするためm子化ビット
数を入力信丹の電力に応じて変化させる方法が考えられ
ている。以下音声信丹の場合について例示する。
Conventionally, in order to minimize this O-column conversion error, a method has been considered in which the number of m-column bits is varied according to the power of the input signal. The case of voice Shintan will be exemplified below.

入ブノ信丹をX(n)、出力信BX(n)、入力七丹を
N点毎にフレームにして処理する場合の歪みDは と与えられる。
The distortion D in the case where the input signal BX(n), the output signal BX(n), and the input signal BX(n) are processed as frames every N points is given as follows.

次に音声の生成は構を表す音韻情報を用いて、冗長度を
除去した信号の直交変換を周波数帯域毎に分割して、Q
子化器へ入力しΦftを行う。ここで−度にr子化器に
入力するデータの個数をM個、周波数の分割帯域をL個
、各帯域に割当てるビット数をbk  (k=o、・・
・、[−1)どし、Bを→ノンプル当りの平均情報昂、
gkを音韻情報に基づく各帯域の電力とすると、歪D 
/j−R小にするためには ・・・(2) として適応ビット割当を行えばよい。
Next, speech generation uses phonological information representing the structure, and the orthogonal transform of the signal from which redundancy has been removed is divided into frequency bands, and Q
Input it to the child generator and perform Φft. Here, the number of data input to the r child generator per time is M, the number of frequency division bands is L, and the number of bits allocated to each band is bk (k=o,...
・, [-1) Doshi, B → Average information gain per nonpull,
If gk is the power of each band based on phonetic information, distortion D
/j-R can be made small by performing adaptive bit allocation as shown in (2).

(2)式によって計口された値は必ずしも正整数とは限
らず、丸めて行って整数化()る必要がある。また現実
的には極端なR11当ピッl−数の偏りを防ぐ目的でb
kの最小値及び最大値を制限し、bkの総ビット数を一
定値にするためbkに補正を行っていた。
The value calculated by equation (2) is not necessarily a positive integer, and must be rounded to an integer. In addition, in reality, for the purpose of preventing extreme bias in the number of R11 pins,
Corrections were made to bk in order to limit the minimum and maximum values of k and make the total number of bits of bk a constant value.

次にこのような適応ビット’fJ当及びその補正方法を
第4図から第6図に示すフローブヤ−1〜に従って説明
する。対4図は各帯域に割当てるピッ1〜数bkを算出
し、またその総ビット数をF、−1g1ザるルーチンで
ある。
Next, such adaptive bit 'fJ' and its correction method will be explained according to flowcharts 1 to 1 shown in FIGS. 4 to 6. The pair 4 diagram is a routine that calculates the number of bits BK to be allocated to each band, and calculates the total number of bits F, -1g1.

ステップ401及びステップ402にJjいて音韻情報
に基づく各帯域の電力qk8泪σ寸ろ。次に口出された
電力(Jkから を計わする(ステップ403)。次にステップ404に
おいてステップ405.406.407の処理をL回繰
り返す。ステップ405においては各帯域に割当てるビ
ット数bkを計口する。ステップ406においては口出
されたbkをあらかじめ設定された下限値B1及び上限
1fiB2内に入るように制限する。ステップ407に
おいては制限されたbkを四捨五入して整数化を行う。
In steps 401 and 402, the power of each band is determined based on the phonetic information. Next, the input power (starting from Jk) is calculated (step 403). Next, in step 404, the processes of steps 405, 406, and 407 are repeated L times. In step 405, the number of bits bk to be allocated to each band is calculated. In step 406, the spoken bk is limited to fall within a preset lower limit B1 and upper limit 1fiB2.In step 407, the limited bk is rounded off to an integer.

ステップ408から410までの処理は総ビット数の削
口を行うものである。ステップ408において総ビット
数を表す変数SUMlbに初期値Oを設定する。ステッ
プ409においてステップ410の処理をL[i]繰り
返し行わせる。そしてステップ409、ステップ410
の処理によって総ビット数SLIMIbが計粋される。
The processing from steps 408 to 410 is to reduce the total number of bits. In step 408, an initial value O is set to a variable SUMlb representing the total number of bits. In step 409, the process in step 410 is repeated L[i] times. and step 409, step 410
The total number of bits SLIMIb is calculated by the process.

ステップ411において、計拝された総ビット数suM
tbがあらかじめ設定された総ビット数1”BITに一
致するか否かが判断され、一致する場合には処理が終了
°りる。一致しない場合には、81拝された総ビット数
SUMIbが設定された総ピット数T B I Tを越
えるか否かが判断され(ステップ412>、SUMIb
 >TBITならば4ノブルーチンCOR8LIB (
ステップ413)によって処理が行われ、SUMIb 
<TB ITならばザブルーチンC0RADD (ステ
ップ414)によって処理が行われる。
In step 411, the total number of bits suM
It is determined whether or not tb matches the preset total bit number 1"BIT, and if they match, the process ends. If they do not match, the total bit number SUMIb set in 81 times is set. It is determined whether or not the total number of pits T B I T exceeds (step 412 >, SUMIb
>If TBIT, 4 knob routine COR8LIB (
The processing is performed by step 413), and SUMIb
If <TB IT, processing is performed by subroutine C0RADD (step 414).

第5図はりブルーチンCOR8UBの内容を示すフロー
ヂャートである。このザブルーチンは篩用された総ピッ
1〜数SUMIbが設定された総ピッ(・数T B I
 Tよりも大きいので所定の帯域に:9[当てられるビ
ット数を減らす補正を行う。
FIG. 5 is a flowchart showing the contents of blue routine COR8UB. This subroutine selects the total number of sifted 1 to number SUMIb set (・number T B I
Since it is larger than T, a correction is made to reduce the number of bits applied to the predetermined band:9.

づなわちステップ501において補正帛TDIFFを TD I F F=SLIM Ib −TB I Tに
よって計0する。そしてステップ501aからステップ
510までの処理をこの補正rl= 1’ D I F
Fがゼロになるまで繰り返す。ステップ501aにおい
ては変数MINIBに適当な正の最大値を代入する。ス
テップ502からステップ507は(bk−1bk)が
最小の帯域を見つ(ジるための処理である。すなわちス
ーフップ502によってステップ503からステップ5
07までの処理がL回繰り返される。整数化されたピッ
1−数lbkが下限(di F31に一致するかどうか
が判断され(ス−)−ツブ503)、一致しない揚台に
は Ten  = bk−1bk が4緯される(ステップ504)。次に変数Tc1+p
と変数MINlbの小さい方の値がMINlbに代入さ
れる(ステップ505)。変数MINlbが変数1en
+pと一致Jれば(ステップ506)変数MINkにk
が代入される(スフツブ507)。
That is, in step 501, the correction factor TDIFF is totaled to 0 by TDIF=SLIMIb-TBIT. Then, the processing from step 501a to step 510 is performed using this correction rl=1' D I F
Repeat until F becomes zero. In step 501a, an appropriate maximum positive value is assigned to the variable MINIB. Steps 502 to 507 are processes for finding the band with the minimum (bk - 1bk).
The processing up to 07 is repeated L times. It is determined whether the integerized pitch 1-number lbk matches the lower limit (di F31 (su-)-tub 503), and Ten = bk-1bk is added to the platform that does not match (step 504). ). Next, the variable Tc1+p
The smaller value of the variable MINlb and the variable MINlb is assigned to MINlb (step 505). Variable MINlb is variable 1en
If J matches +p (step 506), set k to variable MINk.
is substituted (step 507).

このMINkは(bk−1bk)が最小の帯域の番号を
表す。
This MINk represents the number of the minimum band (bk-1bk).

(bk−1bk)が最小の帯域が見つかるとその最小の
帯域に^1j当てられるピッI・数lbMINkから1
ビットが引かれ(ステップ508)、ついで補正fM−
rDIFFから1が引かれる(ステップ509)。そし
てステップ510において補正ω]川)IFFtfiU
口と一致するか否かが判断され、ゼロに一致するまでス
テップ501aからステップ509の処理が繰り返され
る。 。
When the band with the minimum (bk-1bk) is found, the pitch I/number lbMINk applied to the minimum band is 1
The bit is subtracted (step 508) and then the correction fM-
1 is subtracted from rDIFF (step 509). Then, in step 510, the correction ω]IFFtfiU
It is determined whether or not it matches the mouth, and the processes from step 501a to step 509 are repeated until it matches zero. .

第6図はサンブルーブンC0RADDの内容を示すフロ
ーヂャートである。このサブルーチンはt)出された総
ビット数SLIMIbが設定された総ビット数TBIT
より小さいので、所定の帯域に割当てられるビット数を
増やす補正を行う。
FIG. 6 is a flowchart showing the contents of Sunbruven C0RADD. This subroutine is t) The total number of bits issued SLIMIb is the total number of bits set TBIT
Therefore, a correction is made to increase the number of bits allocated to a predetermined band.

すなわちステップ601において補正mTDIFFを TOIFF=TBIT−8UMIb によって計暮する。、そしてステップ601aからステ
ップ610までの処理をこの補正mTD I FFがゼ
ロになるまで繰り返す。ステップ601aにおいては変
数MAXIbに適当な負の最小値を代入する。ステップ
602からステップ607は(t)k −1bk )が
最小の帯域を見つけるための処理である。すなわちステ
ップ602によってステップ603からステップ607
までの処理がL回繰り返される。整数化されたピッI−
数lbkか上限値B2に一致するかどうかが判断され(
ステップ603)、一致しない場合には TOIIEl= bk −1bk が計口される(ステップ604)。次に変数Tenpと
変数MAXIbの大さい方の値がMAXIbに代入され
る(ステップ605)。MAXIbが変数Te1jpと
一致すれば(ステップ606) 、変数MAXkにkが
代入される(ステップ607)。このMAXkG、t 
(bk −1bk )8大の帯域の番号を表す。
That is, in step 601, the correction mTDIFF is calculated by TOIFF=TBIT-8UMIb. , and repeats the processing from step 601a to step 610 until this corrected mTD I FF becomes zero. In step 601a, an appropriate negative minimum value is assigned to the variable MAXIb. Steps 602 to 607 are processes for finding the band with the minimum (t)k -1bk ). That is, step 602 causes step 603 to step 607
The processes up to this point are repeated L times. Integerized pi-
It is determined whether the number lbk matches the upper limit B2 (
Step 603), and if they do not match, TOIIEl=bk-1bk is calculated (step 604). Next, the larger value of the variable Tenp and the variable MAXIb is assigned to MAXIb (step 605). If MAXIb matches the variable Te1jp (step 606), k is assigned to the variable MAXk (step 607). This MAXkG,t
(bk - 1bk) represents the number of the 8 largest bands.

(bk−1bk)が最大の帯域が見つかるとその最大の
帯域に割当てられるビット数1bmaxkに1ビットが
加えられ(ステップ608)、ついで補正flTDIF
Fから1が引かれる(ステップ609)。そして610
において補正ωTDIFFがゼロと一致するか否かが判
断され、ゼロに一致するまでステップ601aからステ
ップ609の処理が繰り返される。
When the maximum band (bk-1bk) is found, 1 bit is added to the number of bits 1bmaxk allocated to the maximum band (step 608), and then the corrected flTDIF
1 is subtracted from F (step 609). and 610
In step 601a, it is determined whether the corrected ωTDIFF matches zero or not, and the processes from step 601a to step 609 are repeated until it matches zero.

(発明が解決しようとする問題点) このように従来の適応ビット割当の本発明はでは(bk
−1bk)が最小(最大)の帯域を見つけた後、この帯
域に割当てられるビット数1bから1ビットが引かれ(
もしくは1ビットが足され)、補正が行れており、1回
の処理で1ビットしか補正できず補正量が大きい場合に
は処理時間が長くなり一定「1間内に処理するために多
くのハードウェアが必要どなる問題点があった。
(Problems to be solved by the invention) In this way, the present invention of the conventional adaptive bit allocation
-1bk) is the minimum (maximum), then 1 bit is subtracted from the number of bits 1b allocated to this band (
If the amount of correction is large and only one bit can be corrected at one time, the processing time will be longer and a certain amount of processing will be required to process within one period. There was a problem with the need for hardware.

本発明はこのような問題点に2みてなされたものでその
目的とするところは、補正Qが大きくてもハードウェア
の刑加を招かず高速に補正が行える適応ビット割当の補
正方法を提供することにある。
The present invention has been made in view of these problems, and its purpose is to provide a correction method for adaptive bit allocation that allows correction to be made at high speed without requiring additional hardware, even when the correction Q is large. There is a particular thing.

〔発明の構成〕[Structure of the invention]

(問題点を解決するための1段) 前記目的を達成するために本発明は複数個のデータを1
個の周波数帯域に分W’Jするにあたり各帯域ににj当
てるビット数blt(k=o、・・・、L−1)を所定
の演惇方法で求めビット数bkの総数とあらかじめ定め
られた所定の総ビット数とが一致しない場合bkを所定
の方法で補正する補正方法において、補正が必要な全ビ
ット数があらかじめ定められた値を越えない場合bkに
1ビットづつ補正を行い、補正が必要な全ビット数があ
らかじめ定められた値を越える場合bkに複数ビットの
補正を行うことを特徴とする。
(First stage for solving the problem) In order to achieve the above object, the present invention combines multiple pieces of data into one
When dividing W'J into frequency bands, the number of bits blt (k = o, ..., L-1) to be allocated to each band is calculated using a predetermined algorithm and is determined in advance as the total number of bits bk. In the correction method of correcting bk using a predetermined method if the total number of bits that require correction does not match the predetermined total number of bits, if the total number of bits that require correction does not exceed a predetermined value, bk is corrected one bit at a time. If the total number of bits required for bk exceeds a predetermined value, a plurality of bits are corrected for bk.

(作用) 本発明では、補正が必要な全ビット数があらかじめ定め
られた値を越える場合には、各帯域においてbkに一度
に複数ビットの補正が行えるので、高速で補正を行うこ
とができ、またハードウェアの増加を眉くこともない。
(Function) In the present invention, when the total number of bits that require correction exceeds a predetermined value, multiple bits can be corrected at once for bk in each band, so correction can be performed at high speed. Also, there is no need to worry about the increase in hardware.

(実施例) 以下図面に基づいて本発明の一実施例を詳細に説明する
。本発明の一実施例に係る適応ビット割当の補正方法で
は、そのメインルーチンは第4図に示ずものと同様であ
りサブルーチンCOR8LIBとサブルーチンC0RA
DDの内容が従来と異なるので、これらサブルーチンに
ついて説明する。
(Example) An example of the present invention will be described in detail below based on the drawings. In the adaptive bit allocation correction method according to an embodiment of the present invention, the main routine is the same as the one not shown in FIG.
Since the contents of the DD are different from the conventional ones, these subroutines will be explained.

第1図はサブルーチンCOR8OBの内容を示すフロー
チャートである。ステップ101において補正が必要な
全ピット数TDIFFがTD I FF=SLJB l
b −TB ITにより計算される。ステップ102に
J>いてTOIFFが周波数の分割帯域数りよりも大き
い場合には、1度に複数ビットの補正が行われる。Jな
わち変数MINlbに正の最大値が設定され、補正可能
個数nの初期値としてゼロが与えられる(ステップ10
3)。
FIG. 1 is a flowchart showing the contents of subroutine COR8OB. The total number of pits TDIFF that requires correction in step 101 is TD I FF=SLJB l
b - Calculated by TB IT. In step 102, if J> and TOIFF is larger than the number of frequency division bands, multiple bits are corrected at once. J, that is, the variable MINlb, is set to a positive maximum value, and zero is given as the initial value of the correctable number n (step 10
3).

ステップ104からステップ107の処理はIbkが下
限181と一致しないときIbkの最小値を求めるとと
もに、補正可能個数nをり出する処理である。すなわち
ステップ104によってステップ105から107まで
の処理がL回繰り返して行われる。ステップ105にi
ljいτlbkが下限値B1と一致づるか否かが判断さ
れ、一致しない場合にはIbkとMINlbの小ざいほ
うの値がMINlbに代入される(スフツブ106)、
そして補正可能個数「1に1が加えられる(ステップ1
07)。
The processing from step 104 to step 107 is a process of finding the minimum value of Ibk when Ibk does not match the lower limit 181, and extracting the correctable number n. That is, in step 104, the processes from steps 105 to 107 are repeated L times. i in step 105
It is determined whether or not τlbk matches the lower limit value B1, and if they do not match, the smaller value of Ibk and MINlb is assigned to MINlb (step 106);
Then, 1 is added to the correctable number “1” (step 1
07).

次にステップ108において帯域当りの一度に補正可能
なビット数IXが IX=MIN lb −Bl によって求められ、ステップ109において一度に補正
可能な全ピット数TIXが TIX=IX−n として求められる。TIX>TDIFFならばステップ
116において I X=TD I F F/n が計算されステップ117において所定のトランケート
が実行され、その後ステップ109に戻る。
Next, in step 108, the number of bits IX that can be corrected at one time per band is determined by IX=MIN lb - Bl, and in step 109, the total number of pits that can be corrected at one time TIX is determined as TIX=IX-n. If TIX>TDIFF, IX=TDIFF/n is calculated in step 116, a predetermined truncation is performed in step 117, and then the process returns to step 109.

TIX≦TDIFFな’3 ハ、ステップ111がらス
テップ113によって各帯域において割当てられるビッ
ト数lbkから一度に補正可能なビット数IXが引かれ
る。づなわもステップ111によってステップ112.
113の処理がL回繰り返して行われる。Ibkが下限
値B1と一致しない場合(ステップ112MbkからI
Xが引かれる。(ステップ113)。このようにして各
帯域においてIbkから1ビット以上の補正可能なビッ
ト数1×が引かれる。
TIX≦TDIFF '3 c. From step 111 to step 113, the number of bits IX that can be corrected at one time is subtracted from the number of bits lbk allocated in each band. Zunawa also performs step 111 and step 112.
The process of 113 is repeated L times. If Ibk does not match the lower limit B1 (step 112Mbk to I
X is drawn. (Step 113). In this way, in each band, the number 1x of bits that can be corrected by one or more bits is subtracted from Ibk.

次にステップ114において補正が必要な全ピット数T
DIFFから一度に補正可能な全ピット数TIXが引か
れ、ステップ115においてTDIFFがゼロか否かが
判1すiされる。ゼロでない場合にはステップ102に
戻り、以上のり1作を繰り返ず。
Next, in step 114, the total number of pits T that needs to be corrected
The total number of pits TIX that can be corrected at once is subtracted from DIFF, and in step 115 it is determined whether TDIFF is zero. If it is not zero, the process returns to step 102 and the above steps are not repeated.

ステップ102においてTDIFFがLより小さい場合
には第1図(C)に示すルーチンに移行する。このルー
チンは一度に1ビットづつ補正するもので第5図に示す
処理と同様であるので重複した説明は逝ける。
If TDIFF is smaller than L in step 102, the routine moves to the routine shown in FIG. 1(C). This routine corrects one bit at a time and is similar to the process shown in FIG. 5, so a redundant explanation will be omitted.

第2図はサへルーチンCOR八〇 〇の内容を示すフロ
ーチャートである。ステップ201において補正が必要
な全ピット数TDIFFがTDIFF=TBIT−8L
IMIb により4のされる。ステップ202にJ3いてTDIF
Fが周波数の分割帯域数りよりも人さ゛い場合には、−
度に複数ビットの補正が行われる3、すなわち変数MA
XIbに負の最小値が設定され補正可能個数nの初期値
としてゼロが!〕えられる(ステップ203)。
FIG. 2 is a flowchart showing the contents of the service routine COR800. The total number of pits TDIFF that requires correction in step 201 is TDIFF=TBIT-8L
4 by IMIb. TDIF in J3 at step 202
If F is larger than the number of frequency subbands, -
3, where multiple bits are corrected at a time, that is, the variable MA
A negative minimum value is set for XIb, and zero is set as the initial value of the number n that can be corrected! ] is obtained (step 203).

ステップ204からステップ207の処理区、Ibkが
上限値B2と一致しないとelbkの最大値を求めると
ともに、補正可能個数nを口出する処理である。すなわ
ちステップ204によって、ステップ205から207
までの処理がL回繰り返して行われる。ステップ205
にd3いてIbk上限値B2と一致するか否かが判断さ
れ、一致しない場合にはIbkとMAXIbの大きい方
の値がMAXIbに代入される(ステップ206)。
In the process from step 204 to step 207, if Ibk does not match the upper limit B2, the maximum value of elbk is determined and the correctable number n is determined. That is, by step 204, steps 205 to 207
The processes up to this point are repeated L times. Step 205
At step d3, it is determined whether or not the Ibk upper limit value B2 matches, and if they do not match, the larger value of Ibk and MAXIb is substituted into MAXIb (step 206).

そして補正可能個数nに1が加えられる(ステップ20
7)。
Then, 1 is added to the correctable number n (step 20
7).

次にステップ208において帯域当りの一度に補正可能
なビット数IXが IX=82−MAX Ib によって求められステップ209において一度に補正可
能な仝ビット数TIXが TIX=IX−rl として求められる。TIX>TOIFFならばステップ
216にJ3いて IX=TD I F F/n が肘算されステップ217において所定のトランケート
処理が実行された後ステップ209に戻る。
Next, in step 208, the number of bits that can be corrected at one time per band IX is determined as IX=82-MAXIb, and in step 209, the number of bits that can be corrected at one time TIX is determined as TIX=IX-rl. If TIX>TOIFF, the process goes to step 216 to calculate IX=TD IFF/n, and after executing a predetermined truncation process in step 217, the process returns to step 209.

]Ix≦■D■FFからばステップ211からステップ
213によって、各帯域において割当てられるビット数
lbに一度に補正可能なビット数EXが加えられる。す
なわちステップ211によってステップ212,213
の処理がL回繰り返して行われる。Ibkが上限値B2
と一致しない場合(ステップ212)、IbkにIXが
加えられる(ステップ213)。このようにして各帯域
においてIbkに1ピツト以上の補正可能なビット数が
加えられる。次にステップ214において補正が必要な
全ビット数TDIFFから一度に補正可能な全ビット数
’I’ l Xが引かれステップ215においてTD[
FFがゼロか否かが判断される。ゼロでない場合にはス
テップ202に戻り以上の動作を繰り返す。
]Ix≦■D■FF, in steps 211 to 213, the number of bits EX that can be corrected at one time is added to the number of bits lb allocated in each band. That is, by step 211, steps 212 and 213
The process is repeated L times. Ibk is the upper limit B2
If they do not match (step 212), IX is added to Ibk (step 213). In this way, the number of bits that can be corrected by one or more pits is added to Ibk in each band. Next, in step 214, the total number of bits that can be corrected at once is subtracted from the total number of bits TDIFF that requires correction, and in step 215, TD
It is determined whether FF is zero. If it is not zero, the process returns to step 202 and the above operations are repeated.

ステップ202においてTDIFFがLより小さい場合
には第2図(C)に示ダルーチンに移行する。このルー
チンは一度に1ピツトづつ補正するもので第6図に示す
処理と同様であるので重複した説明は避ける。
If TDIFF is smaller than L in step 202, the routine moves to the routine shown in FIG. 2(C). This routine corrects one pit at a time and is similar to the process shown in FIG. 6, so a redundant explanation will be avoided.

かくして本実施例ではサブルーチンCOR5LIB及び
C0RADDにおいて、補正が必要な全ビット数TOI
FFが周波数の分割帯域数しよりも大きい場合には、各
帯域において割当てられるビットvllbkに対して、
1ピッ1−以上の補正が行われるので、迅速な補正処理
を行うことが可能となる。
Thus, in this embodiment, in the subroutines COR5LIB and C0RADD, the total number of bits TOI that needs to be corrected
When FF is larger than the number of frequency division bands, for the bits vllbk allocated in each band,
Since the correction is performed by 1 pip or more, it is possible to perform the correction process quickly.

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

以上詳細に説明したように本発明によれば、補正Qが大
きくてもハードウェアの贈加を招かず高速に補正を行う
ことができる。
As described above in detail, according to the present invention, even if the correction Q is large, the correction can be performed at high speed without requiring additional hardware.

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

第1図はサブルーチンCOR8UBの内容を示すフロー
チャート、第2図は4JブルーブンC0RADDの内容
を示すフローチャート、第3図はωftを示す説明図、
第4図はメインルーブンの内容を示す70−チャート、
第5図及び第6図は従来のサブルーチンCOR8UB及
びC0RADDの内容を示ずフローブ↑I−トである。 第1図(b) Mair  Routine 第4図(C1) 第4図(C) 第4図(d)
Fig. 1 is a flowchart showing the contents of subroutine COR8UB, Fig. 2 is a flowchart showing the contents of 4J bluebun C0RADD, Fig. 3 is an explanatory diagram showing ωft,
Figure 4 is a 70-chart showing the contents of the main loop,
FIGS. 5 and 6 do not show the contents of the conventional subroutines COR8UB and C0RADD, but are flowcharts ↑I-. Figure 1 (b) Mair Routine Figure 4 (C1) Figure 4 (C) Figure 4 (d)

Claims (1)

【特許請求の範囲】 複数個のデータをL個の周波数帯域に分割し、各帯域を
ベクトル量子化するにあたり各帯域に割当てるビット数
bk(k=0、…L−1)を所定の演算方法で求めビッ
ト数bkの総数とあらかじめ定められた所定の総ビット
数とが一致しない場合bkを所定の方法で補正する補正
方法において、補正が必要な全ビット数があらかじめ定
められた値を越えない場合bkに1ビットづつ補正を行
い、 補正が必要な全ビット数があらかじめ定められた値を越
える場合bkに複数ビットの補正を行うことを特徴とす
る適応ビット割当の補正方法。
[Claims] When dividing a plurality of data into L frequency bands and vector quantizing each band, the number of bits bk (k=0,...L-1) to be allocated to each band is calculated using a predetermined calculation method. In the case where the total number of bits bk calculated by and the predetermined total number of bits do not match, bk is corrected by a predetermined method. In the correction method, the total number of bits that need to be corrected does not exceed a predetermined value. A correction method for adaptive bit allocation, characterized in that if the total number of bits that require correction exceeds a predetermined value, then correction is performed on bk one bit at a time.
JP62320376A 1987-12-18 1987-12-18 Adaptive bit allocation correction method Expired - Lifetime JP2597613B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62320376A JP2597613B2 (en) 1987-12-18 1987-12-18 Adaptive bit allocation correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62320376A JP2597613B2 (en) 1987-12-18 1987-12-18 Adaptive bit allocation correction method

Publications (2)

Publication Number Publication Date
JPH01161930A true JPH01161930A (en) 1989-06-26
JP2597613B2 JP2597613B2 (en) 1997-04-09

Family

ID=18120782

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62320376A Expired - Lifetime JP2597613B2 (en) 1987-12-18 1987-12-18 Adaptive bit allocation correction method

Country Status (1)

Country Link
JP (1) JP2597613B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63285032A (en) * 1987-04-27 1988-11-22 フィリップス エレクトロニクス ネムローゼ フェンノートシャップ Digital system for encoding subband of digital audio signal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63285032A (en) * 1987-04-27 1988-11-22 フィリップス エレクトロニクス ネムローゼ フェンノートシャップ Digital system for encoding subband of digital audio signal

Also Published As

Publication number Publication date
JP2597613B2 (en) 1997-04-09

Similar Documents

Publication Publication Date Title
US5329475A (en) Data round-off device for rounding-off m-bit digital data into (m-n) bit digital data
US4870685A (en) Voice signal coding method
US6118900A (en) Image coding device and image decoding device for use with image disassembly
JPH0918346A (en) Method of data compression and expansion
EP0131005B1 (en) Digital decoder
JPH0346415A (en) Digital/analog conversion circuit
US6188337B1 (en) Low disparity coding method for digital data
JPH01161930A (en) Correction method for adaptive bit assignment
JP4259401B2 (en) Speech processing apparatus and speech coding method
JPH05346803A (en) Device for executing transfer function
JPH104557A (en) Unit, and method for image processing and storage medium storing the method
WO2019190621A1 (en) Delta sigma modulator systems and methods
JPH06125542A (en) High efficiency encoding system
JP2792742B2 (en) Bit allocation method in orthogonal transform coding
JPH02248162A (en) Picture data encoding system
JP2003299120A (en) Color image compressing method
JPH07249990A (en) Digital/analog signal converter
Hwang et al. Multistage storage-and entropy-constrained tree-structured vector quantization
JPH10247852A (en) Delta sigma a/d converter
JPH0816192A (en) Data compression device
JPS63187738A (en) Adaptive quantizer
JPH1131976A (en) Parallel-serial converting circuit and digital signal processing circuit
JPH05260310A (en) Inverse quantizing method and image data encoder and decoder
JPS5919359B2 (en) Pacor type speech synthesizer
JPS63109681A (en) Picture processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term