JPH06303147A - Method and device for calculating quantization level - Google Patents

Method and device for calculating quantization level

Info

Publication number
JPH06303147A
JPH06303147A JP9026793A JP9026793A JPH06303147A JP H06303147 A JPH06303147 A JP H06303147A JP 9026793 A JP9026793 A JP 9026793A JP 9026793 A JP9026793 A JP 9026793A JP H06303147 A JPH06303147 A JP H06303147A
Authority
JP
Japan
Prior art keywords
quantization
code
circuit
data
quantization level
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
JP9026793A
Other languages
Japanese (ja)
Other versions
JP3186324B2 (en
Inventor
Shinji Matsunaka
真二 松中
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP9026793A priority Critical patent/JP3186324B2/en
Publication of JPH06303147A publication Critical patent/JPH06303147A/en
Application granted granted Critical
Publication of JP3186324B2 publication Critical patent/JP3186324B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE:To improve the arithmetic operation speed with simple circuit configuration on a small circuit scale by forming the quantization circuit with a barrel shifter, an address circuit or only the barrel shifter. CONSTITUTION:The quantization circuit 80 is constituted of a barrel shifter 64 and an adder circuit 81 by giving a same quantization coefficient to plural quantization levels for a bit, that is, a fixed level. Thus, periodicity is provided to the quantization coefficient with respect to plural quantization levels corresponding to a bit of the quantization level to provide a same quantization coefficient. Thus, even when the quantization level requires 7-bits, a table to provided an output of a multiplier circuit and the quantization coefficient in the quantization circuit of a binary search circuit corresponding to at least from the 7-th bit to the 4-th bit is not required. Thus, the circuit scale is made small and the circuit packaging area is reduced, the arithmetic operation speed is improved and the design efficiency is drastically improved.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えばディジタルVT
Rや高能率符号化装置等の量子化装置に適用して好適な
量子化レベル算出方法及び装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to, for example, a digital VT.
The present invention relates to a quantization level calculation method and device suitable for application to a quantization device such as R or a high efficiency coding device.

【0002】[0002]

【従来の技術】図5はディジタルVTRの記録系の構成
を示し、この図5に示すディジタルVTRの再生系にお
いては、入力端子1に供給される記録すべきディジタル
映像信号はフィールドシャッフリング回路2でシャッフ
リングされ、このフィールドシャッフリングされたディ
ジタル映像信号はDCT(離散コサイン変換)回路3で
直流成分から高次交流成分の係数データに変換され、こ
の係数データは量子化回路4で量子化、つまり、所定の
量子化係数で割算され、その結果得れらた量子化データ
はエンコーダ5で符号化され、この符号化データは外符
号回路6で外符号が付加され、更に内符号回路7で内符
号が付加され積符号の形式にされ、このデータに同期/
ID付加回路8で同期信号及びID(識別)データが付
加された後、増幅回路9を介して記録ヘッド10に供給
され、この記録ヘッド10によって磁気テープに傾斜ト
ラックを形成する如く記録される。
2. Description of the Related Art FIG. 5 shows the structure of a recording system of a digital VTR. In the reproducing system of the digital VTR shown in FIG. 5, a digital video signal to be supplied to an input terminal 1 is recorded by a field shuffling circuit 2. The shuffled and field-shuffled digital video signal is converted from DC component into high order AC component coefficient data by a DCT (discrete cosine transform) circuit 3, and this coefficient data is quantized by a quantization circuit 4, that is, a predetermined value. The quantized data obtained as a result is encoded by the encoder 5, the outer code circuit 6 adds an outer code, and the inner code circuit 7 further adds an inner code. Is added to form the product code and synchronized with this data /
After the synchronizing signal and the ID (identification) data are added by the ID adding circuit 8, they are supplied to the recording head 10 through the amplifier circuit 9 and recorded by the recording head 10 so as to form inclined tracks on the magnetic tape.

【0003】図6は図5に示したディジタルVTRの記
録系で記録されたデータを再生するための再生系の構成
を示し、この図6に示すディジタルVTRの再生系にお
いては、磁気テープ11に記録されている記録信号が再
生ヘッド12で再生され、再生された信号が増幅回路1
3を介してイコライザ14に供給され、このイコライザ
14において波形等化された後に8/10変換回路15
で変換され、この後同期再生回路16で同期信号が再生
される。
FIG. 6 shows the structure of a reproducing system for reproducing the data recorded in the recording system of the digital VTR shown in FIG. 5. In the reproducing system of the digital VTR shown in FIG. The recorded signal recorded is reproduced by the reproducing head 12, and the reproduced signal is amplified by the amplifier circuit 1.
3 is supplied to the equalizer 14 and is subjected to waveform equalization in the equalizer 14 and then the 8/10 conversion circuit 15
Is converted by the synchronous reproduction circuit 16 and then the synchronous reproduction circuit 16 reproduces the synchronous signal.

【0004】この同期再生回路16から出力された信号
が内符号エラー訂正回路17においてエラー訂正され、
この内符号エラー訂正回路17からデータとエラーフラ
グが出力される。このデータ及びエラーフラグは外符号
エラー訂正回路18に供給されて更に外符号によるエラ
ー訂正処理が施された後にデコーダ19に供給され、こ
のデコーダ19において復号化される。そしてこの後逆
量子化回路20で逆量子化された後にIDCT(逆離散
コサイン変換)回路21に供給され、このIDCT回路
21によって逆離散コサイン変換される。
The signal output from the synchronous reproduction circuit 16 is error-corrected in the inner code error correction circuit 17,
The inner code error correction circuit 17 outputs data and an error flag. The data and the error flag are supplied to the outer code error correction circuit 18, further subjected to error correction processing by the outer code, and then supplied to the decoder 19 where they are decoded. After that, after being inversely quantized by the inverse quantization circuit 20, it is supplied to an IDCT (inverse discrete cosine transform) circuit 21 and is inversely discrete cosine transformed by this IDCT circuit 21.

【0005】このIDCT21の出力はフィールドデ・
シャッフリング回路22に供給され、元のデータの配列
になされ、更に、エラー修整回路23において、エラー
フラグに基いて修整のできないデータについては前のラ
インのデータで補間され出力端子24を介して図示しな
いディジタルVTRの他の回路に供給される。
The output of this IDCT 21 is a field
The data supplied to the shuffling circuit 22 is arranged into the original data array, and further, in the error correction circuit 23, data that cannot be corrected based on the error flag is interpolated with the data of the previous line and not shown via the output terminal 24. It is supplied to other circuits of the digital VTR.

【0006】ここで、図5に示した記録系の量子化回路
4の内部構成について説明する。ディジタルVTRはデ
ータ量がアナログVTRのデータ量よりはるかに多い。
そこで、従来ではデータを圧縮して記録することが考え
られ、図5の例においては、DCT回路4で離散コサイ
ン変換を行うことによってディジタル映像データを直流
成分から高次交流成分までの係数データにし、更にこれ
を量子化回路4において後述する量子化レベルに基いて
量子化し、エンコーダ5で符号化することによってデー
タを圧縮している。
Now, the internal structure of the quantizing circuit 4 of the recording system shown in FIG. 5 will be described. The data amount of the digital VTR is much larger than that of the analog VTR.
Therefore, it is conceivable to compress and record the data in the related art, and in the example of FIG. 5, the DCT circuit 4 performs the discrete cosine transform to convert the digital video data into the coefficient data from the DC component to the high-order AC component. Further, the quantization circuit 4 quantizes the data based on a quantization level described later, and the encoder 5 encodes the data to compress the data.

【0007】図5に示した量子化回路4はバッファリン
グ回路で構成される。このバッファリング回路の構成を
図7に示す。
The quantizing circuit 4 shown in FIG. 5 is composed of a buffering circuit. The structure of this buffering circuit is shown in FIG.

【0008】即ち、この図7に示すように、バッファリ
ング回路はサンプリング周波数(27MHz)でサンプ
リングされたコンポーネントビデオ信号(Y:輝度信
号、C:クロマ信号)を等長化単位で量子化するために
符号量予測から量子化レベルを補正する7つのバイナリ
サーチ回路38、39、40、41、42、43及び4
4と、例えばダビング時の歪に基いて量子化レベルを決
定するバックサーチ回路46と、量子化を行う量子化回
路47と、交流の係数と、直流の係数の並べ変えを行う
AC/DCシャッフリング回路52とで構成される。
That is, as shown in FIG. 7, the buffering circuit quantizes the component video signal (Y: luminance signal, C: chroma signal) sampled at the sampling frequency (27 MHz) in equal length units. 7 binary search circuits 38, 39, 40, 41, 42, 43 and 4 for correcting the quantization level from the code amount prediction
4, a back search circuit 46 that determines a quantization level based on distortion during dubbing, a quantization circuit 47 that performs quantization, and an AC / DC shuffling that rearranges AC coefficients and DC coefficients. And a circuit 52.

【0009】バイナリサーチ回路38〜44には夫々入
力端子D1〜D7を介して図示しないVTRのシステム
コントローラからの直流制限値データが供給されると共
に、夫々入力端子T1〜T7を介して図示しないVTR
のシステムコントローラからのテスト用の信号が供給さ
れる。
The binary search circuits 38 to 44 are supplied with the DC limit value data from the system controller of the VTR (not shown) via the input terminals D1 to D7, respectively, and the VTR (not shown) via the input terminals T1 to T7, respectively.
A test signal is supplied from the system controller.

【0010】入力端子36及び37を介してバイナリサ
ーチ回路38に図9に示すようなDCT回路3による1
6ビット(4×4)の入力データ(ビデオデータ)及び
同期信号が夫々供給される。図9に示すように、入力デ
ータはIDデータID1、IDデータID2、ヘッドデ
ータHd1、ヘッドデータHd2、ビデオデータ(輝度
信号Y1、・・・・色差信号B−Y5、輝度信号Y1
1、・・・・輝度信号Y20、色差信号R−Y6、色差
信号B−Y6、・・・・色差信号B−Y)で構成され
る。
The binary search circuit 38 is connected to the DCT circuit 3 as shown in FIG. 9 via the input terminals 36 and 37.
6-bit (4 × 4) input data (video data) and a sync signal are supplied respectively. As shown in FIG. 9, the input data includes ID data ID1, ID data ID2, head data Hd1, head data Hd2, video data (luminance signal Y1, ..., Color difference signal B-Y5, luminance signal Y1).
1, ..., Luminance signal Y20, color difference signal R-Y6, color difference signal B-Y6 ,.

【0011】IDデータID1及びID2は同期信号か
ら数えて2クロック、ヘッドデータHd1及びHd2は
次の2クロックに対応し、その後640クロックがDC
T変換されたビデオデータに対応する。そしてIDデー
タID1及びID2、ヘッドデータHd1及びH2の後
にDCTブロック単位後とに40ブロックが続く。
ID data ID1 and ID2 correspond to two clocks counted from the synchronizing signal, head data Hd1 and Hd2 correspond to the next two clocks, and 640 clocks thereafter are DC.
This corresponds to T-converted video data. Then, 40 blocks follow after the DCT block unit after the ID data ID1 and ID2 and the head data Hd1 and H2.

【0012】この図9に示す入力データはバイナリサー
チ回路38〜44を通じてバックサーチ回路46に供給
される。バックサーチ回路46には入力端子T8及び4
5を介して図示しないVTRのシステムコントローラか
らのテスト信号及びバックサーチオン/オフ信号が供給
される。つまりこのバックサーチ回路46は最終段のバ
イナリサーチ回路44からのビデオデータとバックサー
チオン/オフ信号とに基いてダビング時の歪を検出し、
この歪に基いて量子化レベルを補正する。
The input data shown in FIG. 9 is supplied to the back search circuit 46 through the binary search circuits 38-44. The back search circuit 46 has input terminals T8 and T4.
A test signal and a back search ON / OFF signal from a system controller of a VTR (not shown) are supplied via 5. That is, the back search circuit 46 detects distortion during dubbing based on the video data from the final stage binary search circuit 44 and the back search ON / OFF signal,
The quantization level is corrected based on this distortion.

【0013】量子化回路47には入力端子D9及びT9
を夫々介して直流制限値データ及びテスト信号が供給さ
れる。この量子化回路47はバックサーチ回路46から
の量子化レベルに基いて、ビデオデータを量子化すると
共に、出力端子48、49及び50を介して最大量子化
レベルデータ、中間量子化レベルデータ、最小量子化レ
ベルデータを図示しないVTRのシステムコントローラ
に供給する。
The quantizer circuit 47 has input terminals D9 and T9.
DC limit value data and a test signal are supplied through the respective terminals. The quantizing circuit 47 quantizes the video data based on the quantizing level from the back search circuit 46, and outputs the maximum quantizing level data, the intermediate quantizing level data, the minimum quantizing level data through the output terminals 48, 49 and 50. The quantization level data is supplied to the system controller of the VTR (not shown).

【0014】この量子化回路47の出力は図10に示す
ようになる。この図10に示すように、量子化回路47
の出力は図9に示した入力データとデータ配列は変わら
ないが、量子化後なので、DCT変換されたビデオデー
タ13ビットにEOB(エンド・オブ・フラグ)が付加
される。
The output of the quantizing circuit 47 is as shown in FIG. As shown in FIG. 10, the quantization circuit 47
The output has the same data array as the input data shown in FIG. 9, but since it is after quantization, EOB (End of Flag) is added to 13 bits of the DCT-converted video data.

【0015】そして、この図10に示す量子化データは
AC/DCシャッフリング回路52に供給される。この
AC/DCシャッフリング回路52には入力端子51を
介して映像信号(例えばNTSC方式とPAL方式)の
区別を行うための525/625セレクト信号が供給さ
れる。そしてこのAC/DCシャッフリング回路52は
量子化回路47からの量子化データを交流と直流とで並
べ変える。
The quantized data shown in FIG. 10 is supplied to the AC / DC shuffling circuit 52. The AC / DC shuffling circuit 52 is supplied with a 525/625 select signal for distinguishing a video signal (for example, NTSC system and PAL system) via an input terminal 51. The AC / DC shuffling circuit 52 rearranges the quantized data from the quantizing circuit 47 into alternating current and direct current.

【0016】図11にこのAC/DCシャッフリング回
路52の出力データを示す。この図11に示すように、
出力データは直流と交流がはっきりと分かれた配列とな
り、等長化単位が2シンクとなる。
FIG. 11 shows output data of the AC / DC shuffling circuit 52. As shown in FIG.
The output data is an array in which direct current and alternating current are clearly separated, and the equalization unit is 2 sinks.

【0017】次に、上述したバイナリサーチ回路38〜
44の内部構成について図8を参照して説明する。
Next, the above-mentioned binary search circuit 38-
The internal configuration of 44 will be described with reference to FIG.

【0018】図において、55及び59は図7で説明し
たバイナリサーチ回路38〜44の各入力端子を示し、
入力端子55にはビデオデータ、入力端子59には同期
信号が夫々供給される。
In the figure, reference numerals 55 and 59 denote input terminals of the binary search circuits 38 to 44 described with reference to FIG.
Video data is supplied to the input terminal 55, and a synchronization signal is supplied to the input terminal 59.

【0019】入力端子55を介して供給されるビデオデ
ータはFIFO(ファースト・イン・ファースト・アウ
ト)メモリ56に供給されて記憶されると共に、乗算回
路63及びバレルシフタ64からなる量子化回路62に
供給される。
The video data supplied via the input terminal 55 is supplied to a FIFO (first in first out) memory 56 and stored therein, and also supplied to a quantizing circuit 62 comprising a multiplication circuit 63 and a barrel shifter 64. To be done.

【0020】また、入力端子59を介して供給される同
期信号はタイミング発生及びテーブル回路60に供給さ
れる。タイミング発生及びテーブル回路60は同期信号
が供給されると、量子化回路62の乗算回路63にテー
ブルから読み出した量子化係数を供給し、バレルシフタ
64に交流シフトデータを供給し、加算回路69に直流
の符号長データを供給し、ゲート回路72にタイミング
信号を供給する。
Further, the synchronizing signal supplied through the input terminal 59 is supplied to the timing generating and table circuit 60. When the synchronization signal is supplied, the timing generation and table circuit 60 supplies the quantization coefficient read from the table to the multiplication circuit 63 of the quantization circuit 62, supplies the AC shift data to the barrel shifter 64, and supplies the DC to the addition circuit 69. The code length data is supplied, and the timing signal is supplied to the gate circuit 72.

【0021】量子化回路62の乗算回路63は入力端子
55を介して供給されるビデオデータとタイミング発生
及びテーブル回路60からの量子化係数を乗算し、その
乗算出力をバレルシフタ64に供給する。バレルシフタ
64は乗算回路63からの乗算結果をタイミング発生及
びテーブル回路60からの交流シフトデータに基いてシ
フトし、シフトしたデータを可変長符号化回路65に供
給する。
The multiplication circuit 63 of the quantization circuit 62 multiplies the video data supplied through the input terminal 55 by the quantization coefficient from the timing generation / table circuit 60, and supplies the multiplication output to the barrel shifter 64. The barrel shifter 64 shifts the multiplication result from the multiplication circuit 63 based on the timing generation and the AC shift data from the table circuit 60, and supplies the shifted data to the variable length coding circuit 65.

【0022】可変長符号化回路65はカテゴリ変換を行
うカテゴリ変換回路66と、符号長を変換する符号長変
換回路68と、カテゴリ変換回路66からの出力に基い
て可変長符号を出力するテーブル67で構成される。
The variable length coding circuit 65 includes a category conversion circuit 66 for performing a category conversion, a code length conversion circuit 68 for converting a code length, and a table 67 for outputting a variable length code based on the output from the category conversion circuit 66. Composed of.

【0023】ここでカテゴリ変換について図14を参照
して説明する。図14において、左側にカテゴリ、右側
に実量子化係数を示す。即ち、この図14に示すよう
に、カテゴリ変換回路66は量子化回路はテーブル67
の内容を示し、カテゴリ変換回路66は内部に持つテー
ブルによって量子化回路62からの量子化データをカテ
ゴリデータに変換する。実量子化係数とは量子化回路6
2から供給される量子化データを示し、この図14に示
すように、実量子化係数の値に基いてカテゴリデータ出
力する。
The category conversion will be described with reference to FIG. In FIG. 14, categories are shown on the left side and actual quantization coefficients are shown on the right side. That is, as shown in FIG. 14, the category conversion circuit 66 is the quantization circuit table 67.
The category conversion circuit 66 converts the quantized data from the quantization circuit 62 into category data according to the internal table. What is the actual quantization coefficient? Quantization circuit 6
The quantized data supplied from No. 2 is shown. As shown in FIG. 14, category data is output based on the value of the actual quantized coefficient.

【0024】このカテゴリ変換回路66の出力データ、
即ち、カテゴリデータはテーブル67及び符号長変換回
路68に夫々供給される。テーブル67からはカテゴリ
変換回路66からのカテゴリデータに応じた可変長符号
データが出力される。符号長変換回路68においては、
カテゴリ変換回路68からのカテゴリデータとテーブル
67からの可変長符号に基いて可変長符号の符号長を求
め、求めた符号長データを加算回路69に供給する。
The output data of this category conversion circuit 66,
That is, the category data is supplied to the table 67 and the code length conversion circuit 68, respectively. From the table 67, variable length code data corresponding to the category data from the category conversion circuit 66 is output. In the code length conversion circuit 68,
The code length of the variable length code is obtained based on the category data from the category conversion circuit 68 and the variable length code from the table 67, and the obtained code length data is supplied to the addition circuit 69.

【0025】ここで、図12及び図13を参照して可変
長符号の符号長の算出方法について説明する。
Here, a method of calculating the code length of the variable length code will be described with reference to FIGS. 12 and 13.

【0026】図12AはEOBを採用しないDCTブロ
ックのビデオデータの符号長の算出方法を示し、実線の
矢印のすぐ下に示す数値は、交流成分から直流成分まで
のデータであり、更に、その下に示す数値は符号長であ
る。
FIG. 12A shows a method of calculating the code length of the video data of the DCT block which does not adopt EOB. The numerical values shown immediately below the solid line arrow are the data from the AC component to the DC component, and further below it. The numerical value shown in is the code length.

【0027】夫々ペアにしている数値は現在値と、前の
値であり、この値に基いて可変長符号と符号長を求め
る。可変長符号と符号長は図14に示すようなテーブル
で求められる。この図12Aに示す方法では“0”とい
う値もデータと見なされるので、符号長は長くなる。
The numerical values paired with each other are the current value and the previous value, and the variable length code and the code length are obtained based on these values. The variable length code and the code length are obtained from the table shown in FIG. In the method shown in FIG. 12A, the value "0" is also regarded as data, so the code length becomes long.

【0028】図12BはEOBを採用したDCTブロッ
クのビデオデータの符号長の算出方法を示し、この図1
2Bに示すように、“0”が連続した後に“0”以外の
データがあった場合、これをEOBと見なされるので、
“0”はデータと見なされない。従って、この方法では
符号長が短くなる。何れにしても、図12Aに示す方法
と図12Bに示す方法の何れかの方法を用いて符号長を
求める。
FIG. 12B shows a method of calculating the code length of the video data of the DCT block adopting EOB.
As shown in 2B, if there is data other than "0" after "0" continues, this is regarded as EOB.
"0" is not considered as data. Therefore, in this method, the code length becomes short. In any case, the code length is obtained by using either the method shown in FIG. 12A or the method shown in FIG. 12B.

【0029】このようにして符号長変換回路68で求め
られた等長化単位の符号長データは加算回路69に供給
され、この加算回路69においてタイミング発生及びテ
ーブル回路60からの等長化単位の直流の係数の符号長
データと加算される。この加算出力はコンパレータ70
に供給され、コンパレータ70において目標値発生回路
71からの目標値(ビットレート)と比較される。この
コンパレータ70は加算回路69からの加算出力が目標
値より大きければ“1”、小さければ“0”となる比較
結果を出力する。
The code length data in the equal length unit obtained by the code length conversion circuit 68 in this manner is supplied to the adder circuit 69, and the timing circuit is generated in the adder circuit 69 and the equal length unit from the table circuit 60 is changed. It is added with the code length data of the DC coefficient. This addition output is the comparator 70
And is compared with the target value (bit rate) from the target value generation circuit 71 in the comparator 70. The comparator 70 outputs a comparison result which is "1" when the addition output from the addition circuit 69 is larger than the target value and "0" when it is smaller.

【0030】この比較結果はゲート回路72に供給され
る。ゲート回路72にはタイミング発生及びテーブル回
路60からのタイミング信号が供給される。ゲート回路
72はタイミング発生及びテーブル回路60からのタイ
ミング信号及びコンパレータ70からの比較結果に基い
て量子化係数を出力する。この量子化係数はセレクタ5
7に供給される。セレクタ57においては、FIFO5
6から読み出されたビデオデータを出力端子58を介し
て図5に示したエンコーダ5に供給する。
The comparison result is supplied to the gate circuit 72. Timing signals from the timing generation and table circuit 60 are supplied to the gate circuit 72. The gate circuit 72 outputs the quantized coefficient based on the timing generation and the timing signal from the table circuit 60 and the comparison result from the comparator 70. This quantized coefficient is the selector 5
7 is supplied. In the selector 57, the FIFO5
The video data read from 6 is supplied to the encoder 5 shown in FIG. 5 via the output terminal 58.

【0031】ここで、図7に示した量子化回路4の量子
化レベル算出系、即ち、バイナリサーチ回路38〜44
による量子化レベルの算出方法について説明する。
Here, the quantization level calculation system of the quantization circuit 4 shown in FIG. 7, that is, the binary search circuits 38 to 44.
A method of calculating the quantization level according to will be described.

【0032】この量子化レベルの算出方法は一般にバイ
ナリサーチ法等と呼ばれている方法である。例えば量子
化レベルが7ビットで、最上位ビットを決める場合は、
量子化レベルを最大“127”〜最小“0”の中間“6
3”のレベルとし、このレベル“63”で仮の量子化を
行い、このときの等長化単位(640クロック分)の符
号長の総和が目標のビットレートより大きければ最上位
ビットは“1”、小さければ“0”とする。
The method of calculating the quantization level is a method generally called a binary search method or the like. For example, if the quantization level is 7 bits and you decide the most significant bit,
Quantization level is maximum "127" -minimum "0" intermediate "6"
If the sum of the code lengths of equal length units (640 clocks) at this time is larger than the target bit rate, the most significant bit is "1". ", And if smaller, set to" 0 ".

【0033】次の6ビット目は最上位ビットが“1”な
ら量子化レベル“127”〜“63”の中間“95”の
レベルで仮の量子化を行い、“0”なら量子化レベル
“63”〜“0”の中間“31”のレベルで量子化を行
う。そして等長化単位(640クロック分)の符号長の
総和が目標のビットレートより大きければ6ビット目は
“1”、小さければ“0”とする。以下同様にして最下
位ビットまでを確定する。
For the next 6th bit, if the most significant bit is "1", provisional quantization is performed at the intermediate "95" level between the quantization levels "127" to "63", and if "0", the quantization level is "0". Quantization is performed at the intermediate "31" level between 63 "and" 0 ". Then, if the sum of the code lengths of the equal length unit (640 clocks) is larger than the target bit rate, the sixth bit is set to "1", and if it is smaller than "0". In the same manner, the least significant bit is fixed.

【0034】このようにして例えば量子化レベルが7ビ
ットの場合には図7に示したように、バイナリサーチ回
路38〜44を合計7個設け、順次、ビデオデータを入
力するようにすれば全量子化レベルを確定することがで
きる。
In this way, for example, when the quantization level is 7 bits, a total of 7 binary search circuits 38 to 44 are provided as shown in FIG. 7 so that video data can be input sequentially. The quantization level can be determined.

【0035】このバイナリサーチ回路38〜44で確定
した量子化レベルは上述したようにバックサーチ回路4
6において例えばダビング時の歪等に基いて補正された
後に量子化回路47に供給され、実際にDCT係数の量
子化レベルとして使用される。
The quantization level determined by the binary search circuits 38 to 44 is the back search circuit 4 as described above.
After being corrected based on, for example, the distortion at the time of dubbing in 6, the signal is supplied to the quantization circuit 47 and is actually used as the quantization level of the DCT coefficient.

【0036】[0036]

【発明が解決しようとする課題】ところで、上述したよ
うに、図8に示したような構成のバイナリサーチ回路を
図7に示したように量子化レベルのビット数と同じだけ
設けると回路構成が非常に大きくなり、特に、図8に示
した量子化回路62の乗算回路63を量子化レベルのビ
ット数と同じだけ設けることは、純粋なロジック回路で
は乗算回路は非常に大きな実装面積を占めるという不都
合があった。
By the way, as described above, when the binary search circuit having the configuration as shown in FIG. 8 is provided in the same number as the number of bits of the quantization level as shown in FIG. 7, the circuit configuration becomes It becomes very large, and in particular, providing the multiplication circuit 63 of the quantization circuit 62 shown in FIG. 8 in the same number as the number of bits of the quantization level means that the multiplication circuit occupies a very large mounting area in a pure logic circuit. There was an inconvenience.

【0037】また、図8に示した可変長符号回路65の
符号長変換回路68においては、EOBを用いる方法と
用いない方法の何れかの方法で符号長を得るようにして
いるだけなので、効率的な符号化変換のための符号量予
測を行うことができないという不都合があった。
Further, in the code length conversion circuit 68 of the variable length coding circuit 65 shown in FIG. 8, the code length is simply obtained by either the method using EOB or the method not using EOB. There is an inconvenience that it is not possible to predict the amount of codes for the general coding conversion.

【0038】本発明はかかる点に鑑みてなされたもの
で、回路構成を簡略化し、回路規模をできるだけ小さく
することができると共に、効率的な符号化変換のための
符号量予測を行うことのできる量子化レベル算出方法及
び装置を提案しようとするものである。
The present invention has been made in view of the above points. The circuit configuration can be simplified, the circuit scale can be made as small as possible, and the code amount prediction for efficient coding conversion can be performed. An attempt is made to propose a quantization level calculation method and apparatus.

【0039】[0039]

【課題を解決するための手段】本発明量子化レベル算出
方法は、nビットの量子化レベルの値に夫々対応して量
子化係数を設定すると共に、設定する際に量子化係数に
周期を持たせ、等長化単位のディジタルデータをnビッ
トの量子化レベルが示す最も最適な量子化係数で量子化
するために、ディジタルデータに対して所定の量子化レ
ベルで仮の量子化を行い、その量子化データのビットレ
ートに応じてnビットの量子化レベルのnビット目を決
定し、nビットの量子化レベルの(n−m)ビットの値
を決定するときに、その(n−m)ビットよりも上位の
{n−(m−1)}〜nビットの値に基いた所定の量子
化レベルで量子化を行い、得られた量子化データのビッ
トレートを目標とするビットレートと比較し、その比較
結果に基いて(n−m)ビットの値を決定し、最終的に
nビットの量子化レベルを得るようにしたものである。
According to the quantization level calculation method of the present invention, the quantization coefficient is set corresponding to each value of the n-bit quantization level, and the quantization coefficient has a cycle when set. In order to quantize the digital data of the equal length unit with the most optimal quantization coefficient indicated by the quantization level of n bits, the digital data is tentatively quantized at a predetermined quantization level, When the n-th bit of the n-bit quantization level is determined according to the bit rate of the quantized data and the (n-m) -bit value of the n-bit quantization level is determined, the (n-m) Quantization is performed at a predetermined quantization level based on the value of {n- (m-1)} to n bits higher than the bit, and the bit rate of the obtained quantized data is compared with the target bit rate. Based on the comparison result (n m) determining the value of the bit, and finally is obtained so as to obtain a quantization level of n bits.

【0040】更に上述において本発明量子化レベル算出
方法は、(n−m)ビットよりも上位の{n−(m−
1)}ビット〜nビットの値に基いて使用される所定の
複数の量子化レベルによって選択される量子化係数を同
一となるようにしたものである。
Further, in the above-described quantization level calculation method of the present invention, the higher order {n- (m-
1)} to n-bit values are used so that the quantization coefficients selected by a plurality of predetermined quantization levels used are the same.

【0041】更に上述において本発明量子化レベル算出
方法は、(n−m)ビットの値を決定するときには、等
長化単位のディジタルデータをシフトし、このシフトし
て得られた値と、等長化単位のディジタルデータを加算
して量子化データを得るようにしたものである。
Further, in the above-described quantization level calculating method of the present invention, when the value of (n−m) bits is determined, the digital data of the equal length unit is shifted, and the value obtained by the shift is equal to The quantized data is obtained by adding the digital data of the lengthening unit.

【0042】更に上述において本発明量子化レベル算出
方法は、(n−m)ビットの値を決定するときには、等
長化単位のディジタルデータをシフトして量子化データ
を得るようにしたものである。
Further, in the above-described quantization level calculating method of the present invention, when the value of (nm) bits is determined, the digital data of the equal length unit is shifted to obtain the quantization data. .

【0043】また本発明量子化レベル算出装置は、等長
化単位の入力ディジタルデータと量子化係数を乗算し、
シフトして等長化単位の入力ディジタルデータを量子化
する量子化手段62と、この量子化手段62からの量子
化データの符号長を変換する符号長変換手段65と、こ
の符号長変換手段65の出力データと目標値とを比較す
る比較手段69、70、71と、この比較手段69、7
0、71の比較結果に基いて量子化レベルのビットを決
定する制御手段57、90、72とからなる量子化レベ
ル算出手段を量子化レベルのビット数に対応して複数設
け、複数の量子化レベル算出手段を用いて量子化レベル
の全ビットを算出して量子化レベルを得るようにした量
子化レベル算出装置において、複数の量子化レベル算出
手段の内任意の数の量子化レベル算出装置の量子化手段
62においては、等長化単位の入力ディジタルデータに
所定の量子化係数を乗算しシフトして量子化データを得
るようにし、残りの量子化レベル算出装置の量子化手段
80或いは82においては等長化単位の入力ディジタル
データをシフトしたものと、この入力ディジタルデータ
を加算して量子化データを得るか、或いは入力ディジタ
ルデータに対してシフトのみ行って量子化データを得る
ようにしたものである。
Further, the quantization level calculating device of the present invention multiplies the input digital data of the equal length unit by the quantization coefficient,
Quantizing means 62 for shifting and quantizing the input digital data of the equal length unit, code length converting means 65 for converting the code length of the quantized data from the quantizing means 62, and this code length converting means 65. Comparing means 69, 70, 71 for comparing the output data of the above with the target value, and the comparing means 69, 7
A plurality of quantization level calculation means including control means 57, 90, and 72 for determining the quantization level bits based on the comparison result of 0 and 71 are provided corresponding to the number of quantization level bits, and a plurality of quantization levels are obtained. A quantization level calculation device for calculating all bits of a quantization level by using the level calculation means to obtain a quantization level, in which any number of quantization level calculation devices among a plurality of quantization level calculation means In the quantizing means 62, the input digital data of the equal length unit is multiplied by a predetermined quantizing coefficient and shifted to obtain the quantized data, and in the quantizing means 80 or 82 of the remaining quantizing level calculating device. Is a shifted version of the input digital data of the equal length unit and this input digital data is added to obtain quantized data, or Performed only shift it is obtained so as to obtain quantized data.

【0044】また本発明量子化レベル算出装置は、等長
化単位の入力ディジタルデータを量子化する量子化手段
62、80または82と、この量子化手段62、80ま
たは82からの量子化データの符号長を変換する符号長
変換手段65と、この符号長変換手段65からの出力と
目標値とを比較する比較手段69、70、71と、この
比較手段69、70、71の比較結果に基いて量子化レ
ベルのビットを決定する制御手段57、90、72とを
有する量子化レベル算出装置において、符号長変換手段
65に等長過単位でブロック毎にブロックの終わりを示
す符号を検出し、この符号を付加するか否かを判断する
機能を持たせたものである。
The quantizing level calculating apparatus of the present invention further comprises a quantizing means 62, 80 or 82 for quantizing the input digital data in equal length units, and the quantizing data from the quantizing means 62, 80 or 82. A code length conversion means 65 for converting the code length, comparison means 69, 70, 71 for comparing the output from the code length conversion means 65 with a target value, and a comparison result of the comparison means 69, 70, 71. In the quantization level calculation device having the control means 57, 90, 72 for determining the bit of the quantization level, the code length conversion means 65 detects the code indicating the end of the block for each block in the equal length excess unit. It has a function of determining whether or not to add this code.

【0045】更に上述において本発明量子化レベル算出
装置は、符号長変換手段65を、量子化手段62、80
または82からの量子化データのカテゴリを変換するカ
テゴリ変換手段66と、このカテゴリ変換手段66の出
力に基いて可変長符号を出力する可変長符号出力手段6
7と、カテゴリ変換手段66からの出力のブロックの終
わりを示すブロック終了符号を検出するブロック終了符
号検出手段92と、このブロック終了符号検出手段92
からの検出出力に基いてブロック終了符号を出力するブ
ロック終了符号出力手段93と、このブロック終了符号
出力手段93からのブロック終了符号の値を変換するブ
ロック終了符号値変換手段94と、カテゴリ変換手段6
6からの出力及び可変長符号出力手段67からの可変長
符号を加算する第1の加算手段96と、この第1の加算
手段96の出力と比較手段95の出力を加算する第2の
加算手段98と、ブロック終了符号値変換手段94から
の出力及び第2の加算手段98からの出力を比較する比
較手段95とで構成したものである。
Further, in the above-described quantization level calculating device of the present invention, the code length converting means 65 is replaced by the quantizing means 62, 80.
Alternatively, category conversion means 66 for converting the category of the quantized data from 82 and variable length code output means 6 for outputting a variable length code based on the output of this category conversion means 66.
7, block end code detecting means 92 for detecting a block end code indicating the end of the block output from the category converting means 66, and this block end code detecting means 92.
Block end code output means 93 for outputting a block end code based on the detection output from, block end code value conversion means 94 for converting the value of the block end code from this block end code output means 93, and category conversion means. 6
6 and the variable length code output from the variable length code output means 67, and a second adding means 96 for adding the output of the first adding means 96 and the output of the comparing means 95. 98 and a comparison means 95 for comparing the output from the block end code value conversion means 94 and the output from the second addition means 98.

【0046】[0046]

【作用】上述せる本発明の方法によれば、nビットの量
子化レベルの値に夫々対応して量子化係数を設定すると
共に、設定する際に量子化係数に周期を持たせ、等長化
単位のディジタルデータをnビットの量子化レベルが示
す最も最適な量子化係数で量子化するために、ディジタ
ルデータに対して所定の量子化レベルで仮の量子化を行
い、その量子化データのビットレートに応じてnビット
の量子化レベルのnビット目を決定し、nビットの量子
化レベルの(n−m)ビットの値を決定するときに、そ
の(n−m)ビットよりも上位の{n−(m−1)}〜
nビットの値に基いた所定の量子化レベルで量子化を行
い、得られた量子化データのビットレートを目標とする
ビットレートと比較し、その比較結果に基いて(n−
m)ビットの値を決定し、最終的にnビットの量子化レ
ベルを得る。
According to the method of the present invention described above, the quantized coefficient is set corresponding to each value of the quantized level of n bits, and when the quantized coefficient is set, the quantized coefficient has a period so that the equal length is obtained. In order to quantize the digital data of the unit with the most optimal quantization coefficient indicated by the n-bit quantization level, the digital data is tentatively quantized at a predetermined quantization level, and the bit of the quantized data is quantized. When the n-th bit of the n-bit quantization level is determined according to the rate and the value of the (n−m) -bit of the n-bit quantization level is determined, the value higher than that (n−m) bit is determined. {N- (m-1)} ~
Quantization is performed at a predetermined quantization level based on the value of n bits, the bit rate of the obtained quantized data is compared with the target bit rate, and (n−
m) Determine the value of the bits and finally get the quantization level of n bits.

【0047】更に上述において本発明の方法によれば、
(n−m)ビットよりも上位の{n−(m−1)}ビッ
ト〜nビットの値に基いて使用される所定の複数の量子
化レベルによって選択される量子化係数を同一となるよ
うにする。
Further in the above, according to the method of the present invention,
The same quantization coefficient is selected according to a predetermined plurality of quantization levels used based on the values of {n- (m-1)} bits to n bits higher than (n−m) bits. To

【0048】更に上述において本発明の方法によれば、
(n−m)ビットの値を決定するときには、等長化単位
のディジタルデータをシフトし、このシフトして得られ
た値と、等長化単位のディジタルデータを加算して量子
化データを得る。
Further in the above, according to the method of the present invention,
When the value of (n−m) bits is determined, the digital data in the equal length unit is shifted, and the value obtained by the shift is added to the digital data in the equal length unit to obtain the quantized data. .

【0049】更に上述において本発明の方法によれば、
(n−m)ビットの値を決定するときには、等長化単位
のディジタルデータをシフトして量子化データを得る。
Further in the above, according to the method of the present invention,
When the value of (n−m) bits is determined, the digital data of the equal length unit is shifted to obtain the quantized data.

【0050】また本発明の構成によれば、複数の量子化
レベル算出手段の内任意の数の量子化レベル算出装置の
量子化手段62においては、等長化単位の入力ディジタ
ルデータに所定の量子化係数を乗算しシフトして量子化
データを得るようにし、残りの量子化レベル算出装置の
量子化手段80或いは82においては等長化単位の入力
ディジタルデータをシフトしたものと、この入力ディジ
タルデータを加算して量子化データを得るか、或いは入
力ディジタルデータに対してシフトのみ行って量子化デ
ータを得る。
Further, according to the configuration of the present invention, in the quantizing means 62 of the quantizing level calculating device of any number of the plural quantizing level calculating means, the predetermined quantizer is applied to the input digital data of the equal length unit. Quantization data is obtained by multiplying and shifting the quantized coefficient, and in the remaining quantizing means 80 or 82 of the quantizing level calculating device, the input digital data of the equal length unit is shifted and the input digital data Is added to obtain the quantized data, or only the input digital data is shifted to obtain the quantized data.

【0051】また本発明の構成によれば、符号長変換手
段65において等長化単位でブロック毎にブロックの終
わりを示す符号を検出し、この符号を付加するか否かを
判断するようにする。
Further, according to the configuration of the present invention, the code length conversion means 65 detects the code indicating the end of the block for each block in the equal length unit and determines whether or not to add this code. .

【0052】更に上述において本発明の構成によれば、
量子化手段62、80または82からの量子化データの
カテゴリをカテゴリ変換手段66で変換し、このカテゴ
リ変換手段66の出力に基いて可変長符号出力手段67
で可変長符号を出力し、カテゴリ変換手段66からの出
力のブロックの終わりを示すブロック終了符号をブロッ
ク終了符号検出手段92で検出し、このブロック終了符
号検出手段92からの検出出力に基いてブロック終了符
号をブロック終了符号出力手段93で出力し、このブロ
ック終了符号出力手段93からのブロック終了符号の値
をブロック終了符号値変換手段94で変換し、カテゴリ
変換手段66からの出力及び可変長符号出力手段67か
らの可変長符号を第1の加算手段96で加算し、この第
1の加算手段96の出力と比較手段95の出力を第2の
加算手段98で加算し、ブロック終了符号値変換手段9
2からの出力及び第2の加算手段98からの出力を比較
手段95で比較する。
Further, according to the configuration of the present invention described above,
The category of the quantized data from the quantizing means 62, 80 or 82 is converted by the category converting means 66, and based on the output of this category converting means 66, the variable length code output means 67.
Variable end code is output by the block end code detecting means 92, and the block end code detecting means 92 detects the block end code indicating the end of the block output from the category converting means 66. The end code is output by the block end code output means 93, the value of the block end code from the block end code output means 93 is converted by the block end code value conversion means 94, and the output from the category conversion means 66 and the variable length code. The variable length code from the output means 67 is added by the first adding means 96, the output of the first adding means 96 and the output of the comparing means 95 are added by the second adding means 98, and the block end code value conversion is performed. Means 9
The output from 2 and the output from the second adding means 98 are compared by the comparing means 95.

【0053】[0053]

【実施例】以下に、図1を参照して本発明量子化レベル
算出方法及び装置の一実施例について詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the quantization level calculating method and apparatus of the present invention will be described in detail below with reference to FIG.

【0054】この図1において、図8と対応する部分に
は同一符号を付し、その詳細説明を省略する。
In FIG. 1, parts corresponding to those in FIG. 8 are designated by the same reference numerals, and detailed description thereof will be omitted.

【0055】図において、80は量子化回路で、本例に
おいてはこの量子化回路80を図に示すようにバレルシ
フタ64及び加算回路81で構成する。また、90はタ
イミング発生回路で、図8に示したタイミング発生及び
テーブル回路60とは異なり、量子化係数を出力するた
めのテーブルを用いないようにする。
In the figure, reference numeral 80 is a quantizing circuit, and in this example, the quantizing circuit 80 is composed of a barrel shifter 64 and an adding circuit 81 as shown in the drawing. Further, 90 is a timing generation circuit, which is different from the timing generation and table circuit 60 shown in FIG. 8 and does not use a table for outputting a quantized coefficient.

【0056】ここで、図8に示した量子化回路62の構
成要素が乗算回路63及びバレルシフタ64であったの
に対し、本例において量子化回路62の構成をバレルシ
フタ64と加算回路81とできたことの理由について図
3を参照して説明する。
Here, while the components of the quantizing circuit 62 shown in FIG. 8 are the multiplying circuit 63 and the barrel shifter 64, the quantizing circuit 62 in this example can be constituted by the barrel shifter 64 and the adding circuit 81. The reason for this will be described with reference to FIG.

【0057】図3に量子化レベルがnビットの場合、n
ビット目〜1ビット目までの量子化レベルを示す。この
図3から分かるように、nが7だった場合、図3におけ
るnビット目(7ビット目)では、上述したように量子
化レベルが“63”と1つであるが、6ビット目(n−
1ビット目)以降は量子化レベルが前の値、即ち、7ビ
ット目の値に応じて2つ選択されるようになっている。
In FIG. 3, when the quantization level is n bits, n
The quantization level from the 1st bit to the 1st bit is shown. As can be seen from FIG. 3, when n is 7, the nth bit (7th bit) in FIG. 3 has one quantization level of “63” as described above, but the sixth bit ( n-
After the first bit), two quantization levels are selected according to the previous value, that is, the value of the seventh bit.

【0058】つまり、全ビット数を7ビットとした場
合、最上位ビットが“1”または“0”に確定すると、
次の6ビット目は7ビット目の値に応じた量子化レベル
で量子化し、その量子化データと上述した目標値とを比
較した結果に基いて決定し、次の5ビット目は7及び6
ビット目の値に応じた量子化レベルで量子化し、その量
子化データと上述した目標値とを比較した結果に基いて
決定し、・・・・以下同様に当該ビットの前の全ビット
の値い基いた量子化レベルで量子化し、その結果を目標
値と比較した結果に基いて当該ビットの値を決定する。
That is, when the total number of bits is 7 bits and the most significant bit is fixed to "1" or "0",
The next 6th bit is quantized with a quantization level according to the value of the 7th bit, and is determined based on the result of comparison between the quantized data and the above-mentioned target value. The next 5th bit is 7 and 6
Quantize at the quantization level according to the value of the bit number, and decide based on the result of comparing the quantized data with the above-mentioned target value, ... The value of the bit is determined on the basis of the result of comparing the result with the target value and quantization.

【0059】本例において、量子化レベルは入力された
DCT係数を量子化するための量子化係数を選択するた
めのインデックスデータと定義する。つまり、図3に示
した量子化レベルに夫々対応した量子化係数が選択され
ることになる。
In this example, the quantization level is defined as index data for selecting the quantization coefficient for quantizing the input DCT coefficient. That is, the quantization coefficient corresponding to each of the quantization levels shown in FIG. 3 is selected.

【0060】そして本例においては、例えば16の量子
化係数を用意し、量子化レベルに対応して周期性を持た
せるようにする。例えば量子化レベルを7ビットとした
場合、図3おいては、例えば7ビット目は量子化レベル
が1つ、6ビット目は量子化レベルが2つ、5ビット目
は量子化レベルが4つ、4ビット目は量子化レベルが8
つとなっているので、6ビット目から4ビット目の各量
子化レベルに対し、夫々同じ量子化係数が出力されるよ
うにする。例えば6ビット目には量子化レベルが2つあ
るが、この2つの量子化レベルに同じ量子化係数を割り
当てるようにする。
In this example, for example, 16 quantized coefficients are prepared so as to have periodicity corresponding to the quantized level. For example, when the quantization level is 7 bits, in FIG. 3, for example, the 7th bit has one quantization level, the 6th bit has 2 quantization levels, and the 5th bit has 4 quantization levels. 4th bit has a quantization level of 8
Therefore, the same quantization coefficient is output for each of the quantization levels of the 6th bit to the 4th bit. For example, the 6th bit has two quantization levels, but the same quantization coefficient is assigned to these two quantization levels.

【0061】このようにすると、例えば図8に示した乗
算回路63においてはタイミング発生及びテーブル回路
60からの量子化係数を固定値とすることができるの
で、量子化係数のテーブルを持つ必要がなくなる。
In this way, for example, in the multiplication circuit 63 shown in FIG. 8, the quantized coefficient from the timing generation and table circuit 60 can be set to a fixed value, so that it is not necessary to have a table of quantized coefficients. .

【0062】更に、乗算回路63において、固定値であ
る量子化係数をビデオデータ(DCT係数データ)に掛
けるということは、乗算回路63が必要なくなるという
ことになる。例えば“2”に“3”を掛ける場合、
“3”を固定値とすれば、“2”は2進数で“10”、
掛けた結果は2進数で“110”となる。従ってこれは
“2”(“10”)をシフトして“100”とし、これ
に元の“2”(“10”)を加算すれば乗算結果と同じ
“6”(“110”)を得ることができる。
Furthermore, in the multiplication circuit 63, multiplying the quantized coefficient which is a fixed value by the video data (DCT coefficient data) means that the multiplication circuit 63 is not necessary. For example, when multiplying “2” by “3”,
If "3" is a fixed value, "2" is a binary number "10",
The result of multiplication is “110” in binary. Therefore, this shifts "2"("10") to "100", and if the original "2"("10") is added to this, the same "6"("110") as the multiplication result is obtained. be able to.

【0063】つまり、ビデオデータに掛ける値が2のべ
き乗以外の場合においては、掛ける値を固定とすれば単
にビデオデータをシフトし、シフトしたビデオデータと
シフトする前のビデオデータを加算すれば良い。
That is, when the value to be multiplied to the video data is other than a power of 2, if the value to be multiplied is fixed, the video data is simply shifted and the shifted video data and the video data before the shift are added. .

【0064】従って、上述したように、あるビットにお
ける複数の量子化レベルに対して同じ量子化係数を与え
るように、つまり、固定値にしておけば、図1に示すよ
うに、バレルシフタ64及び加算回路81で量子化回路
80を構成することができる。
Therefore, as described above, if the same quantization coefficient is given to a plurality of quantization levels in a certain bit, that is, if it is set to a fixed value, as shown in FIG. 1, the barrel shifter 64 and the addition are performed. The circuit 81 can form the quantization circuit 80.

【0065】即ち、この例においては、図7に示したバ
イナリサーチ回路38〜44の内、少なくともバイナリ
サーチ回路38〜41の量子化回路の構成を図1に示す
ような乗算回路のない簡素な構成とできる。
That is, in this example, of the binary search circuits 38 to 44 shown in FIG. 7, at least the quantization circuit of the binary search circuits 38 to 41 has a simple configuration without the multiplication circuit as shown in FIG. Can be configured.

【0066】このように、本例においては、量子化レベ
ルのあるビットに対応する複数の量子化レベルに対し、
量子化係数に周期性を持たせることによって同一の量子
化係数を与えるようにしたので、量子化レベルが7ビッ
トの場合においては、少なくとも7ビット目から4ビッ
ト目までに対応するバイナリサーチ回路の量子化回路で
乗算回路と量子化係数を出力するためのテーブルが不要
となり、これによって回路規模を大幅に小さくできると
共に、回路の実装面積を小さくでき、設計効率が大幅に
向上させることができ、しかも演算速度を向上させるこ
とができる。
As described above, in this example, for a plurality of quantization levels corresponding to a bit having a quantization level,
Since the same quantized coefficient is given by giving periodicity to the quantized coefficient, when the quantization level is 7 bits, the binary search circuit corresponding to at least the 7th bit to the 4th bit The quantization circuit eliminates the need for a multiplication circuit and a table for outputting the quantization coefficient, which can significantly reduce the circuit scale, reduce the circuit mounting area, and significantly improve the design efficiency. Moreover, the calculation speed can be improved.

【0067】尚、上述の例において、乗数を固定にし、
シフト量を変えることによって割る数を変えることもで
きる。例を示すと、例えば“2”に“5”を掛ける場
合、“5”を固定値とすれば、“2”は2進数で“1
0”、掛けた結果は2進数で“1010”となる。従っ
てこれは“2”(“10”)を2ビット分シフトして
“1000”とし、これに元の“2”(“10”)を加
算すれば乗算結果と同じ“10”(“1010”)を得
ることができる。
In the above example, the multiplier is fixed and
The number of divisions can be changed by changing the shift amount. For example, when multiplying "2" by "5", if "5" is a fixed value, "2" is a binary number "1".
The result of multiplication by 0 "is binary number" 1010 ". Therefore, this shifts" 2 "(" 10 ") by 2 bits to" 1000 ", and the original" 2 "(" 10 " ) Is added, the same “10” (“1010”) as the multiplication result can be obtained.

【0068】図2は本例量子化レベル算出装置の他の例
を示す構成図であり、以下、図2を参照して本例量子化
レベル算出装置の他の例について説明する。
FIG. 2 is a block diagram showing another example of the quantization level calculating device of the present example, and another example of the quantization level calculating device of the present example will be described below with reference to FIG.

【0069】この図2において、図1と対応する部分に
は同一符号を付し、その詳細説明を省略する。
In FIG. 2, parts corresponding to those in FIG. 1 are designated by the same reference numerals, and detailed description thereof will be omitted.

【0070】図において、82は量子化回路で、この図
に示すように、この例においては、図1に示した加算回
路81を不要とした構成としている。つまりこの例にお
いては、量子化レベルが2のべき乗になる場合の構成を
示している。量子化レベルが2のべき乗の場合には、バ
レルシフタ64でのシフト量を変えるだけでよいので、
図1に示した加算回路81は必要なくなる。
In the figure, numeral 82 is a quantizing circuit, and as shown in this figure, in this example, the adding circuit 81 shown in FIG. 1 is not necessary. That is, this example shows a configuration in which the quantization level is a power of 2. When the quantization level is a power of 2, it is only necessary to change the shift amount in the barrel shifter 64.
The adder circuit 81 shown in FIG. 1 is unnecessary.

【0071】例えば“2”に“4”を掛ける場合、
“4”を固定値とした場合、“2”は2進数で“1
0”、掛けた結果は2進数で“100”となる。従って
これは“2”(“10”)をシフトして“1000”と
するだけで、乗算結果と同じ“8”(“1000”)を
得ることができる。
For example, when multiplying "2" by "4",
When "4" is a fixed value, "2" is a binary number "1"
The result of multiplication by 0 "is binary" 100 ". Therefore, this is the same as the multiplication result" 8 "(" 1000 ") only by shifting" 2 "(" 10 ") to" 1000 ". ) Can be obtained.

【0072】このように、この例においては、量子化レ
ベルが2のべき乗の場合に、量子化回路82の構成をバ
レルシフタ64のみとしたので、図1に示した回路構成
よりも更に簡単となり、これによって更に回路の実装面
積を小さくでき、設計効率が大幅に向上させることがで
き、しかも演算速度を大幅に向上させることができる。
As described above, in this example, when the quantization level is a power of 2, only the barrel shifter 64 is used as the structure of the quantizing circuit 82. Therefore, the circuit structure becomes simpler than that shown in FIG. As a result, the circuit mounting area can be further reduced, the design efficiency can be greatly improved, and the operation speed can be greatly improved.

【0073】尚、上述の例において、乗数を固定にし、
シフト量を変えることによって割る数を変えることもで
きる。例を示すと、例えば“2”に“8”を掛ける場
合、“8”を固定値とすれば、“2”は2進数で“1
0”、掛けた結果は2進数で“10000”となる。従
ってこれは“2”(“10”)を3ビット分シフトして
“10000”とするだけで乗算結果と同じ“16”
(“10000”)を得ることができる。
In the above example, the multiplier is fixed and
The number of divisions can be changed by changing the shift amount. For example, when multiplying "2" by "8", if "8" is a fixed value, "2" is a binary number "1".
The result of multiplication by 0 "is" 10000 "in binary. Therefore, this is the same as the multiplication result" 16 "only by shifting" 2 "(" 10 ") by 3 bits to" 10000 ".
(“10000”) can be obtained.

【0074】次に、図4を参照して図1に示した符号長
変換回路68の内部構成について説明する。本例におい
ては、この符号長変換回路68において、EOBを検出
した時点で符号長を比較し、効率的な方の符号長を出力
するようにする。
Next, the internal configuration of the code length conversion circuit 68 shown in FIG. 1 will be described with reference to FIG. In this example, the code length conversion circuit 68 compares the code lengths at the time when the EOB is detected, and outputs the more efficient code length.

【0075】図12及び図13を参照して説明したよう
に符号量予測においては、EOBを用いる方法と用いな
い方法がある。本例においては、ディジタルデータの符
号量予測や量子化を行う際、等長化単位でDCTブロッ
ク毎にEOBを検出してEOBを付加するか否かを検出
し、効率的な符号化変換を行うようにする。
As described with reference to FIGS. 12 and 13, in the code amount prediction, there are a method using EOB and a method not using EOB. In this example, when predicting or quantizing the code amount of digital data, EOB is detected for each DCT block in units of equal length, and whether or not EOB is added is detected, and efficient coding conversion is performed. Try to do it.

【0076】図4において、91は図1に示したカテゴ
リ変換回路66からのカテゴリデータが供給される入力
端子で、この入力端子91を介してカテゴリ変換回路6
6からのカテゴリデータが加算回路96及びEOB検出
回路92に夫々供給される。
In FIG. 4, reference numeral 91 is an input terminal to which the category data from the category conversion circuit 66 shown in FIG. 1 is supplied, and the category conversion circuit 6 is supplied via this input terminal 91.
The category data from 6 is supplied to the adder circuit 96 and the EOB detection circuit 92, respectively.

【0077】EOB検出回路92はカテゴリ変換回路6
6からのカテゴリデータからEOBを検出し、検出結果
をテーブル93に供給する。テーブル93はEOB検出
回路92からの検出結果に基いた値を値変換回路94に
供給する。値変換回路94はEOBを示すデータが供給
されるまでは、例えば値“1FF”のデータをコンパレ
ータ95に供給し続ける。
The EOB detection circuit 92 is the category conversion circuit 6
EOB is detected from the category data from 6 and the detection result is supplied to the table 93. The table 93 supplies a value based on the detection result from the EOB detection circuit 92 to the value conversion circuit 94. The value conversion circuit 94 continues to supply the data of the value “1FF” to the comparator 95 until the data indicating the EOB is supplied.

【0078】一方、加算回路96には図1に示したテー
ブル67からの符号長データが供給され、この符号長デ
ータが図1に示したカテゴリ変換回路66からのカテゴ
リデータと加算され、その加算結果が加算回路(累算回
路)98に供給され、コンパレータ95の出力と加算さ
れ、これによって符号長が累算される。この加算回路9
8の出力はコンパレータ95に供給される。コンパレー
タ95は値変換回路94からの値と加算回路98からの
値を比較し、その値の小さい方を出力端子99を介して
図1に示した加算回路69に供給すると共に、加算回路
98にフィードバックする。
On the other hand, the code length data from the table 67 shown in FIG. 1 is supplied to the adder circuit 96, and this code length data is added to the category data from the category conversion circuit 66 shown in FIG. The result is supplied to the adder circuit (accumulator circuit) 98 and added to the output of the comparator 95, whereby the code length is accumulated. This adder circuit 9
The output of 8 is supplied to the comparator 95. The comparator 95 compares the value from the value conversion circuit 94 with the value from the addition circuit 98, and supplies the smaller value to the addition circuit 69 shown in FIG. provide feedback.

【0079】つまり、この回路においては、EOBが検
出されるまでは加算回路98からの加算出力、即ち、カ
テゴリ変換回路66からのカテゴリデータとテーブル6
7からの符号長データの累算値を符号長データとして出
力するようにし、EOBが検出された場合は、値変換回
路94からの符号長データと、加算回路98からの符号
長データを比較し、小さい方を出力するようにしてい
る。そしてこの後、ブロックの終わりまで符号長の計算
を行う。従って、この例においては、EOBを用いる方
法と用いない方法の両方を用いると共に、これら両方の
方法によって得られた符号長を比較し、その結果短いも
のを常に選択するようにしているので、効率的な符号化
変換のための符号量を予測を行うことができる。
That is, in this circuit, until the EOB is detected, the addition output from the addition circuit 98, that is, the category data from the category conversion circuit 66 and the table 6 are obtained.
The accumulated value of the code length data from 7 is output as the code length data, and when EOB is detected, the code length data from the value conversion circuit 94 is compared with the code length data from the addition circuit 98. , The smaller one is output. After that, the code length is calculated until the end of the block. Therefore, in this example, both the method using EOB and the method not using EOB are used, the code lengths obtained by both methods are compared, and as a result, the shorter one is always selected. It is possible to predict the amount of code for a dynamic coding conversion.

【0080】このように、本例においては、EOBを用
いる方法と用いない方法の両方を用いると共に、これら
両方の方法によって得られた符号長を比較し、その結果
短いものを常に選択するようにしているので、効率的な
符号化変換のための符号量を予測を行うことができる。
As described above, in this example, both the method using EOB and the method not using EOB are used, and the code lengths obtained by both methods are compared, and as a result, the shorter one is always selected. Therefore, the code amount for efficient coding conversion can be predicted.

【0081】尚、上述の実施例は本発明の一例であり、
本発明の要旨を逸脱しない範囲でその他様々な構成が取
り得ることは勿論である。
The above embodiment is an example of the present invention.
It goes without saying that various other configurations can be adopted without departing from the scope of the present invention.

【0082】[0082]

【発明の効果】上述せる本発明によれば、nビットの量
子化レベルの値に夫々対応して量子化係数を設定すると
共に、設定する際に量子化係数に周期を持たせ、等長化
単位のディジタルデータをnビットの量子化レベルが示
す最も最適な量子化係数で量子化するために、ディジタ
ルデータに対して所定の量子化レベルで仮の量子化を行
い、その量子化データのビットレートに応じてnビット
の量子化レベルのnビット目を決定し、nビットの量子
化レベルの(n−m)ビットの値を決定するときに、そ
の(n−m)ビットよりも上位の{n−(m−1)}〜
nビットの値に基いた所定の量子化レベルで量子化を行
い、得られた量子化データのビットレートを目標とする
ビットレートと比較し、その比較結果に基いて(n−
m)ビットの値を決定し、最終的にnビットの量子化レ
ベルを得るようにしたので、回路構成を簡略化し、回路
規模をできるだけ小さくすることができる。
According to the present invention described above, the quantized coefficient is set corresponding to each value of the quantized level of n bits, and when the quantized coefficient is set, the quantized coefficient has a period to be equalized. In order to quantize the digital data of the unit with the most optimal quantization coefficient indicated by the n-bit quantization level, the digital data is tentatively quantized at a predetermined quantization level, and the bit of the quantized data is quantized. When the n-th bit of the n-bit quantization level is determined according to the rate and the value of the (n−m) -bit of the n-bit quantization level is determined, the value higher than that (n−m) bit is determined. {N- (m-1)} ~
Quantization is performed at a predetermined quantization level based on the value of n bits, the bit rate of the obtained quantized data is compared with the target bit rate, and (n−
Since the value of m) bits is determined and the quantization level of n bits is finally obtained, the circuit configuration can be simplified and the circuit scale can be minimized.

【0083】更に上述において本発明によれば、(n−
m)ビットよりも上位の{n−(m−1)}ビット〜n
ビットの値に基いて使用される所定の複数の量子化レベ
ルによって選択される量子化係数を同一となるようにし
たので、上述の効果に加え、量子化係数出力のためのテ
ーブルが不要となり、これによって回路構成を簡単に
し、演算速度を向上させることができる。
Further in the above, according to the present invention, (n-
{n- (m-1)} bits higher than m) bits to n
Since the quantized coefficients selected by the predetermined plurality of quantized levels used based on the value of the bit are made to be the same, in addition to the above effect, the table for outputting the quantized coefficient is unnecessary, As a result, the circuit configuration can be simplified and the calculation speed can be improved.

【0084】更に上述において本発明によれば、(n−
m)ビットの値を決定するときには、等長化単位のディ
ジタルデータをシフトし、このシフトして得られた値
と、等長化単位のディジタルデータを加算して量子化デ
ータを得るようにしたので、上述の効果に加え、回路構
成を複雑、且つ、演算速度を遅くさせる乗算回路を使用
しなくても済むようにすることができる。
Further in the above, according to the present invention, (n-
When determining the value of m) bits, the digital data of the equal length unit is shifted, and the value obtained by the shift is added to the digital data of the equal length unit to obtain the quantized data. Therefore, in addition to the effects described above, it is possible to make the circuit configuration complicated and to dispense with the use of a multiplication circuit that slows the operation speed.

【0085】更に上述において本発明によれば、(n−
m)ビットの値を決定するときには、等長化単位のディ
ジタルデータをシフトして量子化データを得るようにし
たので、上述の効果に加え、回路構成を複雑、且つ、演
算速度を遅くさせる乗算回路を使用しなくても済むと共
に、加算回路も使用しなくても済むようにすることがで
き、これによって回路構成を簡単にすることができ、演
算速度を大幅に向上させることができる。
Further in the above, according to the present invention, (n-
m) When deciding the value of bit, since the digital data of the equal length unit is shifted to obtain the quantized data, in addition to the above-mentioned effect, the multiplication of the circuit configuration is complicated and the operation speed is slowed down. It is possible not to use a circuit and also to use an adder circuit, thereby simplifying the circuit configuration and greatly improving the operation speed.

【0086】また上述せる本発明によれば、複数の量子
化レベル算出手段の内任意の数の量子化レベル算出装置
の量子化手段においては、等長化単位の入力ディジタル
データに所定の量子化係数を乗算しシフトして量子化デ
ータを得るようにし、残りの量子化レベル算出装置の量
子化手段においては等長化単位の入力ディジタルデータ
をシフトしたものと、この入力ディジタルデータを加算
して量子化データを得るか、或いは入力ディジタルデー
タに対してシフトのみ行って量子化データを得るように
したので、上述の効果に加え、更に回路構成を簡略化
し、回路規模をできるだけ小さくすることができる。
Further, according to the present invention described above, in the quantizing means of the quantizing level calculating device of an arbitrary number among the plural quantizing level calculating means, the predetermined quantizing is performed on the input digital data of the equal length unit. The coefficient is multiplied and shifted to obtain quantized data, and in the remaining quantizing means of the quantizing level calculating device, the input digital data of the equal length unit is shifted and this input digital data is added. Since the quantized data is obtained or only the input digital data is shifted to obtain the quantized data, the circuit configuration can be further simplified and the circuit scale can be made as small as possible in addition to the above effects. .

【0087】また上述せる本発明によれば、符号長変換
手段において等長化単位でブロック毎にブロックの終わ
りを示す符号を検出し、この符号を付加するか否かを判
断するようにしたので、効率的な符号化変換のための符
号量予測を行うことができる。
Further, according to the present invention described above, the code length conversion means detects the code indicating the end of the block for each block in the equal length unit and determines whether or not to add this code. Thus, it is possible to perform code amount prediction for efficient coding conversion.

【0088】更に上述において本発明によれば、量子化
手段からの量子化データのカテゴリをカテゴリ変換手段
で変換し、このカテゴリ変換手段の出力に基いて可変長
符号出力手段で可変長符号を出力し、カテゴリ変換手段
66からの出力のブロックの終わりを示すブロック終了
符号をブロック終了符号検出手段で検出し、このブロッ
ク終了符号検出手段からの検出出力に基いてブロック終
了符号をブロック終了符号出力手段で出力し、このブロ
ック終了符号出力手段からのブロック終了符号の値をブ
ロック終了符号値変換手段で変換し、カテゴリ変換手段
からの出力及び可変長符号出力手段からの可変長符号を
第1の加算手段で加算し、この第1の加算手段の出力と
比較手段の出力を第2の加算手段で加算し、ブロック終
了符号値変換手段からの出力及び第2の加算手段からの
出力を比較手段で比較するようにしたので、上述の効果
に加え、効率的な符号化変換のための符号量予測を確実
に行うことができる。
Further, according to the present invention described above, the category of the quantized data from the quantizing means is converted by the category converting means, and the variable length code outputting means outputs the variable length code based on the output of the category converting means. Then, the block end code indicating the end of the block output from the category conversion means 66 is detected by the block end code detecting means, and the block end code is output based on the detection output from the block end code detecting means. The block end code value from the block end code output means is converted by the block end code value conversion means, and the output from the category conversion means and the variable length code from the variable length code output means are added to the first addition. Means for adding, the output of the first adding means and the output of the comparing means are added by the second adding means, and the block end code value converting means Since the output from the output and a second adding means et be compared with comparison means, in addition to the effects described above, the code amount prediction for efficient encoding transformation can be reliably performed.

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

【図1】本発明量子化レベル算出方法及び装置の一実施
例を示す構成図である。
FIG. 1 is a block diagram showing an embodiment of a quantization level calculation method and apparatus of the present invention.

【図2】本発明量子化レベル算出方法及び装置の他の例
を示す構成図である。
FIG. 2 is a configuration diagram showing another example of the quantization level calculation method and device of the present invention.

【図3】本発明量子化レベル算出方法及び装置の一実施
例の説明に供する量子化レベルの例を示す説明図であ
る。
FIG. 3 is an explanatory diagram showing an example of a quantization level used for describing an embodiment of a quantization level calculation method and apparatus of the present invention.

【図4】本発明量子化レベル算出方法及び装置の一実施
例の要部を示す構成図である。
FIG. 4 is a configuration diagram showing a main part of an embodiment of a quantization level calculation method and apparatus of the present invention.

【図5】ディジタルVTRの記録系の例を示す構成図で
ある。
FIG. 5 is a configuration diagram showing an example of a recording system of a digital VTR.

【図6】ディジタルVTRの再生系の例を示す構成図で
ある。
FIG. 6 is a block diagram showing an example of a reproduction system of a digital VTR.

【図7】従来の量子化装置の要部を示す構成図である。FIG. 7 is a configuration diagram showing a main part of a conventional quantization device.

【図8】従来の量子化装置の要部を示す量子化レベル算
出装置の構成図である。
FIG. 8 is a configuration diagram of a quantization level calculation device showing a main part of a conventional quantization device.

【図9】従来の量子化レベル算出装置の説明に供するデ
ータフォーマットを示す説明図である。
FIG. 9 is an explanatory diagram showing a data format used for explaining a conventional quantization level calculation device.

【図10】従来の量子化レベル算出装置の説明に供する
データフォーマットを示す説明図である。
FIG. 10 is an explanatory diagram showing a data format used for explaining a conventional quantization level calculation device.

【図11】従来の量子化レベル算出装置の説明に供する
データフォーマットを示す説明図である。
FIG. 11 is an explanatory diagram showing a data format used for explaining a conventional quantization level calculation device.

【図12】従来の量子化レベル算出装置の説明に供する
EOB(エンド・オブ・ブロック)とコード長の関係を
示す説明図である。
FIG. 12 is an explanatory diagram showing a relationship between EOB (End of Block) and code length, which is used for explaining a conventional quantization level calculation device.

【図13】従来の量子化レベル算出装置の説明に供する
可変長符号テーブルの例を示す説明図である。
FIG. 13 is an explanatory diagram showing an example of a variable length code table used for explaining a conventional quantization level calculation device.

【図14】従来の量子化レベル算出装置の説明に供する
カテゴリ変換用のテーブルを示す説明図である。
FIG. 14 is an explanatory diagram showing a category conversion table for explaining a conventional quantization level calculation device.

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

56 FIFO(ファースト・イン・ファースト・アウ
ト) 57 セレクタ 62、80、82 量子化回路 64 バレルシフタ 65 可変長符号変換回路 66 カテゴリ変換回路 67、93 テーブル 68 符号長変換回路 69、81、96、98 加算回路 70 コンパレータ 71 目標値発生回路 72 ゲート回路 90 タイミング発生回路 92 EOB検出回路 93 テーブル 94 値変換回路 95 コンパレータ
56 FIFO (first in first out) 57 selector 62, 80, 82 quantization circuit 64 barrel shifter 65 variable length code conversion circuit 66 category conversion circuit 67, 93 table 68 code length conversion circuit 69, 81, 96, 98 addition Circuit 70 Comparator 71 Target value generation circuit 72 Gate circuit 90 Timing generation circuit 92 EOB detection circuit 93 Table 94 Value conversion circuit 95 Comparator

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 nビットの量子化レベルの値に夫々対応
して量子化係数を設定すると共に、設定する際に量子化
係数に周期を持たせ、 等長化単位のディジタルデータをnビットの量子化レベ
ルが示す最も最適な量子化係数で量子化するために、 上記ディジタルデータに対して所定の量子化レベルで仮
の量子化を行い、その量子化データのビットレートに応
じてnビットの量子化レベルのnビット目を決定し、上
記nビットの量子化レベルの(n−m)ビットの値を決
定するときに、その(n−m)ビットよりも上位の{n
−(m−1)}〜nビットの値に基いた所定の量子化レ
ベルで量子化を行い、得られた量子化データのビットレ
ートを目標とするビットレートと比較し、その比較結果
に基いて上記(n−m)ビットの値を決定し、最終的に
nビットの量子化レベルを得るようにしたことを特徴と
する量子化レベルの算出方法。
1. A quantizing coefficient is set corresponding to each value of a quantizing level of n bits, and when the quantizing coefficient is set, a cycle is given to the quantizing coefficient, and digital data of equal length unit is converted into n bits. In order to perform quantization with the most optimal quantization coefficient indicated by the quantization level, the digital data is tentatively quantized at a predetermined quantization level, and n bits of the quantized data are quantized. When the nth bit of the quantization level is determined and the value of the (n−m) bit of the n-bit quantization level is determined, {n higher than the (n−m) bit is determined.
-(M-1)}-quantization is performed at a predetermined quantization level based on the value of n bits, the bit rate of the obtained quantized data is compared with a target bit rate, and the result of the comparison is used. Then, the value of (n−m) bits is determined, and finally the quantization level of n bits is obtained.
【請求項2】 上記(n−m)ビットよりも上位の{n
−(m−1)}ビット〜nビットの値に基いて使用され
る所定の複数の量子化レベルによって選択される量子化
係数を同一となるようにしたことを特徴とする請求項1
記載の量子化レベルの算出方法。
2. The upper {n that is higher than the (n−m) bits.
The quantization coefficient selected by a predetermined plurality of quantization levels used based on the value of-(m-1)} to n bits is made the same.
Calculation method of the described quantization level.
【請求項3】 上記(n−m)ビットの値を決定すると
きに、上記量子化係数が2のべき乗でない場合、上記等
長化単位のディジタルデータをシフトし、このシフトし
て得られた値と、上記等長化単位のディジタルデータを
加算して量子化データを得るようにしたことを特徴とす
る請求項1記載の量子化レベルの算出方法。
3. When determining the value of the (n−m) bits, if the quantization coefficient is not a power of 2, the digital data of the equal length unit is shifted, and the shift is obtained. 2. The method of calculating a quantization level according to claim 1, wherein the value and the digital data of the equal length unit are added to obtain the quantized data.
【請求項4】 上記(n−m)ビットの値を決定すると
きに、上記量子化係数が2のべき乗である場合、上記等
長化単位のディジタルデータをシフトして量子化データ
を得るようにしたことを特徴とする請求項1記載の量子
化レベルの算出方法。
4. When determining the value of the (n−m) -bit, if the quantization coefficient is a power of 2, shift the digital data of the equal length unit to obtain the quantized data. The method for calculating a quantization level according to claim 1, wherein:
【請求項5】 等長化単位の入力ディジタルデータと量
子化係数を乗算し、シフトして上記等長化単位の入力デ
ィジタルデータを量子化する量子化手段と、この量子化
手段からの量子化データの符号長を変換する符号長変換
手段と、この符号長変換手段の出力データと目標値とを
比較する比較手段と、この比較手段の比較結果に基いて
量子化レベルのビットを決定する制御手段とからなる量
子化レベル算出手段を量子化レベルのビット数に対応し
て複数設け、 上記複数の量子化レベル算出手段を用いて量子化レベル
の全ビットを算出するようにした量子化レベル算出装置
において、 上記複数の量子化レベル算出手段の内任意の数の量子化
レベル算出手段の量子化手段においては、上記等長化単
位の入力ディジタルデータに所定の量子化係数を乗算し
シフトして量子化データを得るようにし、 残りの量子化レベル算出装置の量子化手段においては上
記等長化単位の入力ディジタルデータをシフトしたもの
と、この入力ディジタルデータを加算して量子化データ
を得るか、或いは入力ディジタルデータに対してシフト
のみ行って量子化データを得るようにしたことを特徴と
する量子化レベル算出装置。
5. Quantization means for multiplying the input digital data of the equal length unit by a quantization coefficient and shifting to quantize the input digital data of the equal length unit, and quantization by the quantization means. A code length converting means for converting the code length of data, a comparing means for comparing the output data of the code length converting means with a target value, and a control for deciding the bit of the quantization level based on the comparison result of the comparing means. Quantization level calculation means comprising a plurality of quantization level calculation means corresponding to the number of bits of the quantization level, and calculating all bits of the quantization level using the plurality of quantization level calculation means In the apparatus, in the quantizing means of the arbitrary number of quantizing level calculating means among the plural quantizing level calculating means, a predetermined quantizing coefficient is applied to the input digital data of the equal length unit. Quantization data is obtained by performing arithmetic shifts, and in the remaining quantizing means of the quantizing level calculating device, the input digital data of the equal length unit is shifted and this input digital data is added to quantize. 2. A quantization level calculating device, characterized in that it obtains quantized data or only shifts input digital data to obtain quantized data.
【請求項6】 等長化単位の入力ディジタルデータを量
子化する量子化手段と、 この量子化手段からの量子化データの符号長を変換する
符号長変換手段と、 この符号長変換手段からの出力と目標値とを比較する比
較手段と、 この比較手段の比較結果に基いて量子化レベルのビット
を決定する制御手段とを有する量子化レベル算出装置に
おいて、 上記符号長変換手段に等長過単位でブロック毎にブロッ
クの終わりを示す符号を検出し、この符号を付加するか
否かを判断する機能を持たせたことを特徴とする量子化
レベル算出装置。
6. A quantizing means for quantizing input digital data in equal length units, a code length converting means for converting the code length of the quantized data from the quantizing means, and a code length converting means for converting the code length. In a quantization level calculation device having a comparison means for comparing an output and a target value, and a control means for determining a bit of a quantization level based on a comparison result of the comparison means, the code length conversion means has an equal length excess. A quantization level calculation device having a function of detecting a code indicating the end of a block for each block in units and determining whether or not to add this code.
【請求項7】 上記符号長変換手段を、 上記量子化手段からの量子化データのカテゴリを変換す
るカテゴリ変換手段と、 このカテゴリ変換手段の出力に基いて可変長符号を出力
する可変長符号出力手段と、 上記カテゴリ変換手段からの出力のブロックの終わりを
示すブロック終了符号を検出するブロック終了符号検出
手段と、 このブロック終了符号検出手段からの検出出力に基いて
ブロック終了符号を出力するブロック終了符号出力手段
と、 このブロック終了符号出力手段からのブロック終了符号
の値を変換するブロック終了符号値変換手段と、 上記カテゴリ変換手段からの出力及び上位可変長符号出
力手段からの可変長符号を加算する第1の加算手段と、 この第1の加算手段の出力と比較手段の出力を加算する
第2の加算手段と、 上記ブロック終了符号値変換手段からの出力及び上記第
2の加算手段からの出力を比較する比較手段とで構成し
たことを特徴とする請求項6記載の量子化レベル算出装
置。
7. The code length conversion means is a category conversion means for converting the category of the quantized data from the quantization means, and a variable length code output for outputting a variable length code based on the output of the category conversion means. Means, a block end code detection means for detecting a block end code indicating the end of the block of the output from the category conversion means, and a block end code for outputting a block end code based on the detection output from the block end code detection means. A code output means, a block end code value conversion means for converting the value of the block end code from the block end code output means, an output from the category conversion means and a variable length code from the upper variable length code output means are added. And a second adding means for adding the output of the first adding means and the output of the comparing means, Output and quantization level calculating apparatus according to claim 6, characterized in that is constituted by a comparator means for comparing the output from said second adder means from the lock end code value conversion means.
JP9026793A 1993-04-16 1993-04-16 Quantization level calculation method and apparatus Expired - Fee Related JP3186324B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9026793A JP3186324B2 (en) 1993-04-16 1993-04-16 Quantization level calculation method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9026793A JP3186324B2 (en) 1993-04-16 1993-04-16 Quantization level calculation method and apparatus

Publications (2)

Publication Number Publication Date
JPH06303147A true JPH06303147A (en) 1994-10-28
JP3186324B2 JP3186324B2 (en) 2001-07-11

Family

ID=13993737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9026793A Expired - Fee Related JP3186324B2 (en) 1993-04-16 1993-04-16 Quantization level calculation method and apparatus

Country Status (1)

Country Link
JP (1) JP3186324B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100823252B1 (en) * 2002-11-07 2008-04-21 삼성전자주식회사 OFDM based Timing Synchronization apparatus and method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100443148C (en) * 2001-10-04 2008-12-17 东丽株式会社 Hollow fiber film and method for prodn thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100823252B1 (en) * 2002-11-07 2008-04-21 삼성전자주식회사 OFDM based Timing Synchronization apparatus and method

Also Published As

Publication number Publication date
JP3186324B2 (en) 2001-07-11

Similar Documents

Publication Publication Date Title
JP2870515B2 (en) Variable length coding device
JP3348741B2 (en) Digital signal decoding apparatus and method
JPH04234282A (en) Data compression using feed-forward quantizing inference device
US6282364B1 (en) Video signal recording apparatus and video signal regenerating apparatus
KR100272120B1 (en) Quantization control circuit
US7148822B2 (en) Decoder and decoding method
US5384665A (en) Data dividing apparatus
JP3561962B2 (en) Quantization control device and method
JP3186324B2 (en) Quantization level calculation method and apparatus
JPH0564491B2 (en)
US7190884B2 (en) Signal recording apparatus and method, signal reproducing apparatus and method, medium, and information assembly
JPH0651778A (en) Waveform generating device
JP3991348B2 (en) Encoding apparatus and method, decoding apparatus and method, and recording medium
JP3158648B2 (en) Digital special effect generator
US6704356B1 (en) Processing of block units, generated from a digital video signal, using block number information and color field information
JP3674714B2 (en) Compressed data reproduction method and compressed data reproduction apparatus
JP2785823B2 (en) High-efficiency television signal encoding apparatus and method, and decoding apparatus and method
JP3139242B2 (en) Video signal processing device
JP3929507B2 (en) Digital special effect generating apparatus and digital special effect generating method
JP2690216B2 (en) Variable length decoder
KR0184405B1 (en) Coding method and apparatus
JPH07327200A (en) Decoder
JPH0898134A (en) Data recording and reproducing device
KR20030005315A (en) Method and apparatus for compression, method and apparatus for decompression, compression/decompression system, recored medium
KR100472435B1 (en) Digital video recorder with TLV function

Legal Events

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

Free format text: PAYMENT UNTIL: 20090511

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees