Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3092299B2 - Decoding device for run-length 1 / n compressed floating code - Google Patents
[go: Go Back, main page]

JP3092299B2 - Decoding device for run-length 1 / n compressed floating code - Google Patents

Decoding device for run-length 1 / n compressed floating code

Info

Publication number
JP3092299B2
JP3092299B2 JP04079485A JP7948592A JP3092299B2 JP 3092299 B2 JP3092299 B2 JP 3092299B2 JP 04079485 A JP04079485 A JP 04079485A JP 7948592 A JP7948592 A JP 7948592A JP 3092299 B2 JP3092299 B2 JP 3092299B2
Authority
JP
Japan
Prior art keywords
data
compressed
length
run
code
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.)
Expired - Fee Related
Application number
JP04079485A
Other languages
Japanese (ja)
Other versions
JPH05284039A (en
Inventor
直樹 江島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP04079485A priority Critical patent/JP3092299B2/en
Publication of JPH05284039A publication Critical patent/JPH05284039A/en
Application granted granted Critical
Publication of JP3092299B2 publication Critical patent/JP3092299B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はイメージデータの高品質
な記録伝送に用いる復号装置であって、特に広い入力範
囲に渡って瞬時S/N比特性が良好なランレングス1/
n圧縮フローティング符号の復号装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding apparatus used for high-quality recording and transmission of image data, and particularly to a run-length 1/2 signal having a good instantaneous S / N ratio characteristic over a wide input range.
The present invention relates to a decoding device for n-compressed floating codes.

【0002】[0002]

【従来の技術】従来の衛星PCM放送やデジタル・オー
ディオ・テープレコーダ(以下、DATと略す)におい
ては、圧縮による品質劣化を抑えながらハードウェア量
とのトレードオフを考慮した結果、比較的軽い圧縮率を
採用している。これらの例としては折れ線符号があり、
DATにおいては12ビットの13折れ線符号が用いら
れている。詳細な技術規格は日本電子機械工業会発行の
「EIAJ CP−2305 DAT Cassett
e System Part1: Dimension
and Characteristics」に示され
ている。
2. Description of the Related Art In conventional satellite PCM broadcasting and digital audio tape recorders (hereinafter abbreviated as DATs), relatively light compression is obtained as a result of taking into account a trade-off with the amount of hardware while suppressing quality deterioration due to compression. The rate is adopted. Examples of these are the line symbols,
In the DAT, a 12-bit 13-line code is used. The detailed technical standard is “EIAJ CP-2305 DAT Cassette” issued by the Japan Electronics Machinery Association.
e System Part1: Dimension
and Characteristics ".

【0003】図19(b)はDATに使用されている1
3折れ線符号(12ビット)の変換方法を説明する図で
あり、正の範囲を示す。図中の枠内において()内の数
字は10進数、それ以外の数字は2進数である。2進数
の最上位ビット(以下、MSBという)は極性ビットP
であり、正の範囲では「0」、負の範囲では「1」であ
る。図中の「ABCDEFGH」は「0000000
0」から「11111111」までの値であり、「*」
は任意の2進数である。また、L0は元データの極性ビ
ットを除いた上位で「0」が連続する連続データQ0の
ランレングスである。以上のような符号方法について、
以下その手順について説明する。
[0003] FIG. 19 (b) shows the 1
It is a figure explaining the conversion method of a three-fold line code (12 bits), and shows a positive range. In the frame in the figure, the numbers in parentheses are decimal numbers, and the other numbers are binary numbers. The most significant bit (MSB) of the binary number is a polarity bit P
And is “0” in the positive range and “1” in the negative range. “ABCDEFGH” in the figure is “00000000”
"0" to "11111111", and "*"
Is any binary number. L0 is the run length of the continuous data Q0 in which “0” continues in the upper order excluding the polarity bit of the original data. For the above encoding method,
The procedure will be described below.

【0004】図19(b)は符号化と復号化の変換を具
体的に示す図である。先ず、13折れ線符号(12ビッ
ト)の符号化の方法および装置について説明する。16
ビットの領域を正の範囲で7分割し、それぞれの領域に
応じてシフト量を操作する。同図より明らかな通り、領
域分割はMSB側から見て初めに「1」のある位置によ
り行える。言い換えると、極性ビットを除いた「0」の
連続データのランレングスL0で決定できる。ランレン
グスL0を「0」から「7以上」までの8通りとし、L
0の補数をレンジデータとして指数表現する。例えば、
元データが「1216(10進)」すなわち「0000
010011000000(2進)」の場合、連続デー
タQ0のランレングスL0は「4」となる。レンジデー
タQ2は「100」を反転した「011」である。ま
た、「ABCDEFGH」は「00110000」であ
る。従って、出力データは「00110011000
0」となる。図19(a)は上記の概念を図式化して示
した図である。出力データは極性ビットPと、領域を表
すレンジデータQ2と、シフトした仮数データD2とを
合成して12ビットにする。レンジデータQ2は固定語
長であり、3ビットである。元データが2’S(トゥー
ズ)コンプリメンタリである場合には、負の範囲はP以
下のビットを全てビット反転させることにより、正の範
囲と全く同様の符号化ができる。このように、負の範囲
でビット反転させた符号を折り返し2進符号と呼ぶ。以
下の説明は特に断らない限り、折り返し2進符号を用い
ることにするが、2’Sコンプリメンタリとの変換は相
互に可能である。
FIG. 19 (b) is a diagram specifically showing conversion between encoding and decoding. First, a description will be given of a method and apparatus for encoding a 13-line segment code (12 bits). 16
The bit area is divided into seven in the positive range, and the shift amount is operated according to each area. As can be seen from the figure, the area division can be performed at a position where "1" is initially located when viewed from the MSB side. In other words, it can be determined by the run length L0 of the continuous data of “0” excluding the polarity bit. The run length L0 is set to 8 types from “0” to “7 or more”, and L
The complement of 0 is expressed as exponent as range data. For example,
The original data is “1216 (decimal)”, that is, “0000”
00100110000 (binary) ", the run length L0 of the continuous data Q0 is" 4 ". The range data Q2 is “011” obtained by inverting “100”. “ABCDEFGH” is “00110000”. Therefore, the output data is “00110011000
0 ". FIG. 19A is a diagram schematically illustrating the above concept. The output data is composed of the polarity bit P, the range data Q2 representing the area, and the shifted mantissa data D2 to form 12 bits. Range data Q2 has a fixed word length and is 3 bits. In the case where the original data is 2'S (toe's) complementary, encoding can be performed in exactly the same manner as in the positive range by inverting all bits below the P in the negative range. In this manner, a code obtained by inverting bits in a negative range is called a folded binary code. In the following description, a folded binary code will be used unless otherwise specified, but conversion with 2'S complementary is mutually possible.

【0005】次に、13折れ線符号(12ビット)の復
号化の方法および装置について説明する。
Next, a method and an apparatus for decoding a 13-fold line code (12 bits) will be described.

【0006】復号化は、折れ線符号のレンジデータQ2
の位置が既知であるので、極性ビットP以降の3ビット
をみて、指数部すなわちレンジを再生する。仮数データ
D2の位置も既知であるので、レンジデータQ2によっ
て直線符号(16ビット)のランレングスL0を復元
し、反転ビットT0と、その後に仮数データD2を付け
る。元データの符号長W0に満たない時は、固定値を充
てる。このような手順に従って、復号化の処理を行う。
[0006] Decoding is performed by using line data range data Q2.
Is known, the exponent, that is, the range is reproduced by looking at the three bits after the polarity bit P. Since the position of the mantissa data D2 is also known, the run length L0 of the linear code (16 bits) is restored using the range data Q2, and the inversion bit T0 and the mantissa data D2 are added thereafter. If it is less than the code length W0 of the original data, a fixed value is used. The decoding process is performed according to such a procedure.

【0007】以上説明した符号化および復号化を行う
と、情報の丸めにより表現精度が変わる。情報の丸めは
シフト操作により発生する。ランレングスL0が「6」
と「7以上」では同じとするので、シフトは7種類とな
る。よって、正と負で合わせて14種類となるが、中心
の領域では正と負で同じシフト操作をするので、全領域
の入出力特性は13種類の折れ線で表すことができる。
[0007] When the encoding and decoding described above are performed, the expression precision changes due to rounding of information. The rounding of information occurs by a shift operation. Run length L0 is "6"
And “7 or more” are the same, so there are seven types of shifts. Therefore, although there are 14 types of positive and negative, the same shift operation is performed for positive and negative in the center area, so that the input / output characteristics of the entire area can be represented by 13 types of polygonal lines.

【0008】図19(b)のそれぞれの領域において、
表現精度すなわち分解能はランレングスL0によって変
化する。ランレングスL0が「0」ないし「6」の時、
分解能は語長換算のビット数で10ビットないし16ビ
ットである。
[0008] In each area of FIG.
The expression accuracy, that is, the resolution, changes depending on the run length L0. When the run length L0 is “0” to “6”,
The resolution is 10 bits to 16 bits in terms of word length conversion bits.

【0009】以上説明した内容を(表1)にまとめて示
す。
The contents described above are summarized in (Table 1).

【0010】[0010]

【表1】 [Table 1]

【0011】図20は従来の折れ線符号を用いた符号装
置の圧縮符号を復号装置で復号して伸長した復元符号の
特性図である。同図の横軸に入力レベル、縦軸に瞬時S
/N比を示す。ただし、瞬時S/N比は矩形波のS/N
比向上分の約2dBを、簡単のため省略している。同図
において、Z1は13折れ線符号(12ビット)の特性
を示すものである。Z1について説明する。入力レベル
0dBは符号で表現できる最大の正弦波の振幅を基準に
する。直線符号の「P11111111111111
1」がこれに相当する。入力レベル0dBないし−6d
Bの範囲では直線符号で「P1***・・・」となり、
(表1)よりランレングスL0が「0」であるので分解
能は10ビットである。10ビットデータの量子化ノイ
ズは1ビット当り−6dBとして−60dBになる。従
って、入力レベル0dBないし−6dBの瞬時S/N比
は60dBないし54dBとなる。
FIG. 20 is a characteristic diagram of a restored code obtained by decoding a compressed code of a conventional encoding device using a broken line code by a decoding device and expanding the decoded code. In the figure, the horizontal axis represents the input level, and the vertical axis represents the instantaneous S.
/ N ratio. However, the instantaneous S / N ratio is the S / N of the square wave.
About 2 dB of the ratio improvement is omitted for simplicity. In the figure, Z1 indicates the characteristics of the 13-line code (12 bits). Z1 will be described. The input level 0 dB is based on the maximum sine wave amplitude that can be represented by a code. The linear code “P11111111111111
"1" corresponds to this. Input level 0dB to -6d
In the range of B, it becomes “P1 ***...
According to Table 1, since the run length L0 is "0", the resolution is 10 bits. The quantization noise of 10-bit data is -60 dB, assuming -6 dB per bit. Accordingly, the instantaneous S / N ratio at the input level of 0 dB to -6 dB is 60 dB to 54 dB.

【0012】次に、入力レベル−6dBないし−12d
Bの範囲では直線符号で「P01***・・・」とな
り、(表1)よりランレングスL0が「1」であるので
分解能は11ビットである。11ビットデータの量子化
ノイズは−66dBになる。従って、瞬時S/N比は6
0dBないし54dBとなる。以下同様に、−96dB
までの領域で瞬時S/N比を求め、特性曲線にしたのが
Z1である。ここで、入力レベル−36dB以下では直
線符号(16ビット)の特性曲線と同じになる。
Next, an input level of -6 dB to -12 d
In the range of B, the linear code is “P01 ***...”, And since the run length L0 is “1” from (Table 1), the resolution is 11 bits. The quantization noise of 11-bit data is -66 dB. Therefore, the instantaneous S / N ratio is 6
It becomes 0 dB to 54 dB. Hereinafter, similarly, -96 dB
The instantaneous S / N ratio is obtained in the region up to and a characteristic curve is Z1. Here, when the input level is −36 dB or less, the characteristic curve is the same as the characteristic curve of the linear code (16 bits).

【0013】[0013]

【発明が解決しようとする課題】しかしながら上記した
従来の装置では、瞬時S/N比が最良でも60dBしか
なく、さらに微小な入力レベルでは直線符号(16ビッ
ト)と同様に瞬時S/N比が低下する。過大入力に対す
るマージン(ヘッドルーム)確保が要求される業務用の
デジタル記録再生装置では、平均入力レベルを低く設定
して記録するので、実質的に利用できるダイナミックレ
ンジが狭くなること、および、入力レベルのかなりの範
囲で瞬時S/N比が不十分となるので、増幅・減衰を繰
り返す編集では劣化が増大するといった問題を有してい
る。前述の通り、この問題は直線符号(16ビット)で
あっても同様である。
However, in the above-mentioned conventional apparatus, the instantaneous S / N ratio is only 60 dB at best, and the instantaneous S / N ratio is smaller at a very small input level as with the linear code (16 bits). descend. In a digital recording / reproducing apparatus for business use which requires a margin (headroom) for an excessive input, recording is performed with the average input level set low, so that the usable dynamic range is substantially narrowed and the input level is reduced. Since the instantaneous signal-to-noise ratio becomes insufficient in a considerable range, there is a problem that deterioration is increased in editing in which amplification and attenuation are repeated. As described above, this problem is the same even with a linear code (16 bits).

【0014】好ましくは、聴覚検知限界約48dB以上
の瞬時S/N比特性を入力レベル0ないし−96dBの
広い範囲において満たすことが要求される。
[0014] Preferably, it is required that the instantaneous signal-to-noise ratio characteristic exceeding the auditory detection limit of about 48 dB or more be satisfied in a wide range of input levels from 0 to -96 dB.

【0015】そのための改良方法として、従来の13折
れ線符号(12ビット)を16ビットに拡張する方法が
容易に考えられる。(表2)は直線符号(20ビット)
から折れ線符号(16ビット)に変換する方法について
示すものである。(表2)において、仮数データD2の
語長が12になるので、全体に分解能が4ビット増加す
る。
As an improved method for this purpose, a method of extending the conventional 13-line code (12 bits) to 16 bits can be easily considered. (Table 2) is a linear code (20 bits)
This shows a method of converting from to a broken line code (16 bits). In Table 2, since the word length of the mantissa data D2 is 12, the resolution is increased by 4 bits as a whole.

【0016】[0016]

【表2】 [Table 2]

【0017】(表2)に示す折れ線符号(16ビット)
を用いて圧縮符号を復号して伸長する復元符号の特性図
は図20中のZ2のようになる。この改良された方法に
よる装置では瞬時S/N比が全領域で24dBだけ向上
するが、入力レベル−72dBないし−96dBの範囲
では瞬時S/N比が48dB以下であり不十分である。
従って、この信号を増幅器で増幅すれば、その量子化ノ
イズが聴覚検知されるという問題をなお有している。
A broken line code (16 bits) shown in Table 2
The characteristic diagram of the decompressed code that decodes and decompresses the compressed code by using is as shown by Z2 in FIG. In the device according to this improved method, the instantaneous S / N ratio is improved by 24 dB in all regions, but the instantaneous S / N ratio is insufficient at input levels in the range of -72 dB to -96 dB, which is less than 48 dB.
Therefore, if this signal is amplified by an amplifier, the quantization noise still has a problem that the auditory sense is detected.

【0018】本発明は上記従来の問題点を解決するもの
で、入力レベル0ないし−96dBの広い範囲におい
て、瞬時S/N比の聴覚検知限界である約48dB以上
を確保することを大目的とする。なお、その他の目的は
正負の極性に対応し、指数部レンジに寄生するオフセッ
トの偏りを防止し、圧縮剰余データの復号処理を具体化
し、パイプライン処理により高速に連続処理を実現する
装置を提供することである。
The present invention has been made to solve the above-mentioned conventional problems, and has as its main object to secure an instantaneous S / N ratio of about 48 dB or more, which is a hearing detection limit, in a wide range from 0 to -96 dB. I do. The other purpose is to provide a device that supports positive and negative polarities, prevents offset bias that is parasitic in the exponent range, embodies the decoding of compressed residual data, and realizes high-speed continuous processing by pipeline processing. It is to be.

【0019】[0019]

【課題を解決するための手段】この目的を達成するため
に本発明のランレングス1/n圧縮フローティング符号装
置は、上位で所定論理のビットが連続する圧縮連続デー
タQ1、前記圧縮連続データQ1の連続性をブレークす
る反転ビットT1、ランレングスを圧縮する時に生じる
剰余F1を表す圧縮剰余データC1および仮数データD
1によって構成する圧縮データを入力する入力部と、圧
縮剰余データC1を格納するC1メモリと、Q1のラン
レングスをn倍に伸長し、C1メモリの値に応じた長さ
の連続データを付加し、Q0の連続性をブレークする反
転ビットT0を付加し、引き続き仮数データD1を付加
する伸長手段と、伸長手段から連続データQ0,反転ビ
ットT0および仮数データD0を読み出して伸長データ
を出力する出力部とを備えている。
In order to achieve this object, a run-length 1 / n compressed floating encoder according to the present invention comprises: a compressed continuous data Q1 in which bits of a predetermined logic are consecutively arranged in a high order; Inverted bit T1 for breaking continuity, compressed remainder data C1 representing remainder F1 generated when compressing run length, and mantissa data D
1, an input unit for inputting the compressed data constituted by 1, a C1 memory for storing the compressed remainder data C1, and a run length of Q1 expanded by n times, and continuous data having a length corresponding to the value of the C1 memory is added. , Q0 by adding an inverted bit T0 for breaking the continuity, and subsequently adding mantissa data D1, and an output unit for reading out the continuous data Q0, the inverted bit T0 and the mantissa data D0 from the expanding means and outputting the expanded data. And

【0020】ただし、連続データQ0のランレングスを
L0、圧縮連続データQ1のランレングスをL1、圧縮
剰余データC1から求める剰余をF1、nを2以上の整
数とするとき、 L0=L1*n+F1 D0=D1 とする。
However, when the run length of the continuous data Q0 is L0, the run length of the compressed continuous data Q1 is L1, the remainder obtained from the compressed remainder data C1 is F1, and n is an integer of 2 or more, L0 = L1 * n + F1 D0 = D1.

【0021】また、他の目的のため、極性ビットを格納
するMSBラッチと、入力分配のための入力手段と、奇
遇データを多重する出力手段と、圧縮データの下位に固
定データを付加する伸長手段、あるいは圧縮剰余データ
C1の値によりランレングスを追加する伸長手段を備え
るものである。
For another purpose, an MSB latch for storing a polarity bit, an input means for input distribution, an output means for multiplexing odd data, and an expansion means for adding fixed data to a lower part of compressed data. Or a decompression means for adding a run length according to the value of the compression remainder data C1.

【0022】[0022]

【作用】本発明は上記した装置により、ランレングスを
約1/nに圧縮したランレングス1/n圧縮フローティ
ング符号を入力部へ入力する。入力部は取り込んだ圧縮
データをC1メモリおよび伸長手段へ供給する。C1メ
モリは抽出した圧縮剰余データC1を記憶保持し伸長手
段へこのデータを供給する。伸長手段は取り込んだ圧縮
データをn倍に伸長し、C1メモリから入力された圧縮
剰余データに基づいてランレングスをさらに延長した後
に反転ビットを付加し、さらに仮数部を付加したデータ
を出力部へ供給する。出力部は伸長手段からのデータす
なわち伸長により復元された元データを外部に出力す
る。
According to the present invention, a run-length 1 / n-compressed floating code obtained by compressing a run-length to about 1 / n is input to an input unit by the above-described apparatus. The input section supplies the captured compressed data to the C1 memory and the decompression means. The C1 memory stores and retains the extracted compressed remainder data C1 and supplies this data to the decompression means. Decompression means decompresses the fetched compressed data by n times, further extends the run length based on the compressed remainder data input from the C1 memory, adds an inversion bit, and further outputs the data to which the mantissa has been added to the output section. Supply. The output unit outputs the data from the expansion means, that is, the original data restored by the expansion, to the outside.

【0023】圧縮データであるランレングス1/n圧縮
フローティング符号は圧縮連続データと反転ビットと圧
縮剰余データとで指数部すなわちレンジを構成する。指
数部すなわちレンジは元データのランレングスに応じて
次のように変化する。すなわち、元データのランレング
スが小さい時は指数部すなわちレンジを少ないビット数
で表し、ランレングスが大きくなるとビット数をさらに
割り当てて指数部すなわちレンジを表す。また、符号全
体の語長を所定の長さとするので、仮数部へ割り当てる
ビット数はランレングスに応じて変化する。これらの作
用により、出力部から出力する圧縮符号の有する表現空
間が拡張され、また表現精度を最大にできる。このよう
な圧縮データを復元できるものである。
The run length 1 / n compressed floating code, which is compressed data, forms an exponent part, that is, a range, with the compressed continuous data, the inverted bit, and the compressed remainder data. The exponent, that is, the range, changes as follows according to the run length of the original data. That is, when the run length of the original data is small, the exponent part, that is, the range is represented by a small number of bits, and when the run length becomes large, the bit number is further allocated to represent the exponent part, that is, the range. Further, since the word length of the entire code is set to a predetermined length, the number of bits allocated to the mantissa part changes according to the run length. By these operations, the expression space of the compression code output from the output unit is expanded, and the expression accuracy can be maximized. Such compressed data can be restored.

【0024】また、MSBラッチにより入力データの絶
対値をとって折り返し2進符号化することで正負の極性
に対応し、伸長後の下位データに生じるブランクに固定
値”100・・・”あるいは”011・・・”を充当す
るので指数部レンジに寄生するオフセットの偏りを防止
し、C1メモリの出力データを用いて圧縮剰余データに
応じたランレングスの追加伸長を行い、入力分配および
出力手段の多重化セレクタによるパイプライン処理によ
り高速連続処理ができるようになる。
Also, the absolute value of the input data is taken by the MSB latch and the binary code is folded back to correspond to the positive and negative polarities, and the fixed value "100..." Or " 011..., Is applied, thereby preventing the offset bias that is parasitic in the exponent part range, performing additional expansion of the run length according to the compression remainder data using the output data of the C1 memory, and performing input distribution and output means output. High-speed continuous processing can be performed by pipeline processing by the multiplexing selector.

【0025】[0025]

【実施例】以下、本発明の一実施例について、図面を参
照しながら説明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0026】図1は本発明の第1の実施例におけるラン
レングス1/2圧縮フローティング符号の復号装置の構
成を示す概略ブロック図である。図面とともに動作を説
明する。
FIG. 1 is a schematic block diagram showing the configuration of a decoding apparatus for a run-length 1/2 compressed floating code according to a first embodiment of the present invention. The operation will be described with reference to the drawings.

【0027】2’Sコンプリメントで表現されるMSB
ファーストのシリアルデータCMPDATが入力部10
01へ入力される。入力部1001で2’Sコンプリメ
ントから折り返し2進符号へ変換する。折り返し2進符
号へ変換するのは以降の処理が簡単になるためである。
入力部1001において、極性ビットであるMSBをM
SBメモリ1002に格納しておき、格納されたMSB
でMSB以下のビットを反転して変換する。これによ
り、入力データの絶対値をとった折り返し2進符号化と
することで正負の極性ともに同じ伸長復号処理とするこ
とができ、ハードを簡単にすることができる。折り返し
2進符号は伸長手段1003へ供給するとともに、C1
メモリ1004へも供給する。伸長手段1003はシフ
トイネーブル機能付きのシフトレジスタで構成し、入力
データを順次内部へ格納するが、圧縮剰余データC1の
部分だけはシフト入力をマスクし、以降の仮数データを
前詰めにして格納する。伸長手段1003は次のタイミ
ングで、出力部1005に格納したデータを出力する。
この時、ランレングスの部分については出力シフトのイ
ネーブルを1つおきにすることにより、ランレングスを
実質的に2倍に伸長して出力する。出力部1005はM
SBメモリ1002のデータと伸長手段1003のデー
タを多重した2’Sコンプリメントの出力データを外部
へ出力する。タイミング生成部1006は各部にそれぞ
れ所要のタイミング信号を供給する。
MSB represented by 2'S complement
First serial data CMPDAT is input unit 10
01 is input. The input unit 1001 converts the 2'S complement into a folded binary code. The conversion to the folded binary code is because the subsequent processing is simplified.
In the input unit 1001, the MSB which is the polarity bit is set to M
MSB stored in SB memory 1002 and stored
Inverts and converts bits below the MSB. Thus, the decompressed binary encoding using the absolute value of the input data enables the same decompression decoding processing for both positive and negative polarities, thereby simplifying the hardware. The folded binary code is supplied to decompression means 1003, and C1
It is also supplied to the memory 1004. The decompression means 1003 is constituted by a shift register with a shift enable function and sequentially stores input data inside. However, only the compressed remainder data C1 is masked for shift input, and the subsequent mantissa data is stored left-justified. . The decompression unit 1003 outputs the data stored in the output unit 1005 at the next timing.
At this time, for the run length portion, the output shift is substantially doubled by setting the output shift enable to every other output and output. The output unit 1005 is M
The 2'S complement output data obtained by multiplexing the data of the SB memory 1002 and the data of the decompression means 1003 is output to the outside. The timing generation unit 1006 supplies a required timing signal to each unit.

【0028】図2は第1の実施例における概略の動作タ
イミング図である。入力データの形式は前記したように
2’Sコンプリメントで表現されるMSBファーストの
シリアルデータである。この16ビットデータを前詰め
にして入力する。SFCKはビットクロックの2倍、サ
ンプリング周波数の64倍の周波数のクロックである。
すなわち、SFCKの2周期で1ビットを入力する。他
の方法としてはSFCKの1周期で1ビットを入力して
前詰めとし、後ろをゼロデータで埋めてもよい。Lチャ
ンネルとRチャンネルを多重しているのでLチャンネル
だけでは32クロック分の時間が割り当てられる。LR
CKはLチャンネルとRチャンネルを識別するクロック
である。
FIG. 2 is a schematic operation timing chart in the first embodiment. The format of the input data is MSB-first serial data represented by the 2'S complement as described above. The 16-bit data is input with the MSB justified. SFCK is a clock having a frequency twice the bit clock and 64 times the sampling frequency.
That is, one bit is input in two cycles of SFCK. As another method, one bit may be input in one cycle of SFCK and the data may be left-justified, and the rear may be filled with zero data. Since the L channel and the R channel are multiplexed, a time equivalent to 32 clocks is allocated only with the L channel. LR
CK is a clock for identifying the L channel and the R channel.

【0029】このような入力データのLチャンネル分を
次のRチャンネルの入力タイミングで出力する。伸長し
てビット数を28にした出力データはSFCKの1周期
で1ビットを出力する。後ろの4ビットはゼロデータで
埋められる。
The L channels of such input data are output at the next R channel input timing. The output data that has been expanded to 28 bits outputs one bit in one cycle of SFCK. The last four bits are filled with zero data.

【0030】Rチャンネルのデータも同時に伸長するた
めに、図1の復号装置1008を2つ配置して並列処理
する。
In order to simultaneously expand the data of the R channel, two decoding devices 1008 shown in FIG. 1 are arranged and processed in parallel.

【0031】図3はLチャンネルとRチャンネルを伸長
する復号装置のブロック図である。図3において、復号
装置1008Aと復号装置1008Bは同じ装置であ
り、LRCKの表と裏でそれぞれ動作するよう入力18
02Bの前にインバータ1090を入れる。出力データ
1804Aと出力データ1804Bはマルチプレクサ1
091で多重して多重出力データ1904を出力データ
DADTとして出力する。このようにして、入力分配お
よび出力手段の多重化セレクタによるパイプライン処理
により高速連続処理ができるようになる。
FIG. 3 is a block diagram of a decoding device for expanding the L channel and the R channel. In FIG. 3, the decoding device 1008A and the decoding device 1008B are the same device, and the input device
Inverter 1090 is inserted before 02B. The output data 1804A and the output data 1804B are
The multiplexed output data 1904 is output as output data DADT. In this way, high-speed continuous processing can be performed by pipeline processing by the multiplexing selector of the input distribution and output means.

【0032】図4は伸長手段1003の具体回路図であ
る。伸長手段は14個のシフトレジスタで構成される。
シフトレジスタ1301ないし1314は非同期リセッ
ト付き同期イネーブル型シフトレジスタである。これら
を順次シリアルに接続し、共通のクロックSFCKと、
共通のイネーブル信号DSFENと、共通の非同期ロー
ド信号NLO1Tを供給する。同図において、入力デー
タDSIDTはイネーブル信号DSFENが論理「H」
のときクロックSFCKの立ち上がりでシフトレジスタ
1301にラッチされ、同時に内部データは順次右側へ
シフトする。非同期ロード信号NLO1Tを供給する
と、ダイレクトにデータ”000・・・0”が内部にロ
ードされクリアされる。
FIG. 4 is a specific circuit diagram of the expansion means 1003. The expansion means is composed of 14 shift registers.
The shift registers 1301 to 1314 are synchronous enable type shift registers with asynchronous reset. These are serially connected in sequence, and a common clock SFCK and
It supplies a common enable signal DSFEN and a common asynchronous load signal NLO1T. In the figure, the input data DSIDT is the logic "H" when the enable signal DSFEN is logic "H".
At this time, the data is latched by the shift register 1301 at the rise of the clock SFCK, and at the same time, the internal data is sequentially shifted to the right. When the asynchronous load signal NLO1T is supplied, data "000... 0" is directly loaded and cleared.

【0033】図5はシフトレジスタ1301ないし13
14の内部回路図である。基本回路であるので動作説明
は省略する。
FIG. 5 shows shift registers 1301 through 130.
14 is an internal circuit diagram of FIG. The description of the operation is omitted because it is a basic circuit.

【0034】図6はMSBメモリ1002の具体回路図
である。入力データCMPDATを端子1201から入
力し、セレクタ1021とD型フリップフロップ(以
下、DFFという)1022で構成する同期イネーブル
付きDFFでMSBをラッチする。MSBファーストの
データであるのでLチャンネルの最初のビットスロット
で論理「L」になるNLO1Tでイネーブルにする。ラ
ッチしたデータDLMSBは次のLチャンネルデータが
くるまで保持される。
FIG. 6 is a specific circuit diagram of the MSB memory 1002. Input data CMPDAT is input from a terminal 1201, and the MSB is latched by a DFF with synchronization enable composed of a selector 1021 and a D-type flip-flop (hereinafter, referred to as DFF) 1022. Since the data is MSB first data, it is enabled by NLO1T which becomes logic "L" in the first bit slot of the L channel. The latched data DLMSB is held until the next L channel data comes.

【0035】図7はC1メモリ1004の具体回路図で
ある。セレクタ1042とDFF1043からなる同期
イネーブル付きDFFの入力データとしてDSIDTを
供給する。イネーブルデータはLDAT0DDを供給す
る。ただし、イネーブルデータが論理「L」の時データ
ラッチし、論理「H」のときデータを保持する。したが
って、LDAT0DDが論理「H」になるとその時のD
SIDTすなわちC1データの値をラッチして以降これ
を保持する。この保持したデータをDLC1として出力
する。
FIG. 7 is a specific circuit diagram of the C1 memory 1004. DSIDT is supplied as input data of a DFF with synchronization enable composed of a selector 1042 and a DFF 1043. The enable data provides LDAT0DD. However, when the enable data is logic "L", the data is latched, and when the enable data is logic "H", the data is held. Therefore, when LDAT0DD becomes logic “H”, the current DAT0DD becomes “H”.
SIDT, that is, the value of the C1 data is latched and thereafter held. The held data is output as DLC1.

【0036】図8はタイミング生成部1006の具体回
路図である。内部の動作を簡単に説明し、出力の信号に
ついて特に説明する。1041はJK型フリップフロッ
プ(以下、JKFFという)である。折り返し2進符号
にした入力データDSIDTのMSBを除いたデータを
入力端子Kへ供給し、最初に現れる論理「H」で出力端
子Qを論理「H」に保持する。また、L26Tとオアを
とっているのでLチャンネルの第26ビット以降のタイ
ミングでは必ず出力端子Qが論理「H」に保持される。
この出力端子QのデータをLDAT1とする。LDAT
1DはLDAT1をSFCKで1クロック遅延したも
の、LDAT1DDはLDAT1をSFCKで2クロッ
ク遅延したもの、LDAT1DDDはLDAT1をSF
CKで3クロック遅延したものである。なお、JKFF
1041はLチャンネルの初期にNLO1Tで初期化さ
れる。
FIG. 8 is a specific circuit diagram of the timing generator 1006. The internal operation will be briefly described, and the output signal will be particularly described. Reference numeral 1041 denotes a JK flip-flop (hereinafter, referred to as JKFF). The data excluding the MSB of the input data DSIDT converted into the folded binary code is supplied to the input terminal K, and the output terminal Q is held at the logic “H” by the logic “H” that appears first. Also, since the output is ORed with L26T, the output terminal Q is always held at the logic "H" at the timing of the 26th bit and subsequent bits of the L channel.
The data at the output terminal Q is referred to as LDAT1. LDAT
1D is LDAT1 delayed by one clock by SFCK, LDAT1DD is LDAT1 delayed by two clocks by SFCK, and LDAT1DDD is SFAT of LDAT1.
This is delayed by three clocks by CK. In addition, JKFF
1041 is initialized with NLO1T at the beginning of the L channel.

【0037】DSR13から2倍に伸長したランレング
スの直後にある反転ビットT1またはR24Tを検出し
てRSRT1を論理「H」に保持する。このRSRT1
をSFCKで遅延させRSRT1D,RSRT1DDを
生成する。
The inverted bit T1 or R24T immediately after the run length that is doubled from the DSR 13 is detected, and RSRT1 is held at logic "H". This RSRT1
Is delayed by SFCK to generate RSRT1D and RSRT1DD.

【0038】BITAD0はNL01Tで初期化しSF
CKでカウントアップする6ビットカウンタのLSBで
ある。したがって、ビットスロットの番号の奇遇を表
す。また、6ビットカウンタの値をデコーダでデコード
してLチャンネルの第26番目のスロットを示すL26
TおよびRチャンネルの第24番目のスロットを示すR
24Tをそれぞれ出力する。
BITAD0 is initialized with NL01T and SF
This is the LSB of a 6-bit counter that counts up with CK. Therefore, it represents an odd number of bit slots. Also, the value of the 6-bit counter is decoded by a decoder, and L26 indicating the 26th slot of the L channel is displayed.
R indicating the 24th slot of the T and R channels
24T are output.

【0039】DSFENは伸長手段1003のシフトイ
ネーブルを制御するのに使う。DSIDTのシフトイン
と伸長データのシフトアウトでは動作が異なるのでそれ
ぞれタイミング信号を切り換えている。
DSFEN is used to control the shift enable of the expansion means 1003. Since the operation is different between shift-in of DSIDT and shift-out of decompressed data, the timing signals are switched respectively.

【0040】DSIDTのシフトイン時には、NLO1
Tが論理「H」で、DLC1MSKが論理「L」で、B
ITAD0が論理「H」ならDSFENは論理「H」を
出力する。
At the time of shift-in of DSIDT, NLO1
T is logic "H", DLC1MSK is logic "L", B
If ITAD0 is logic "H", DSFEN outputs logic "H".

【0041】伸長データのシフトアウト時には、C1メ
モリの格納データDLC1の論理によってさらに伸長す
るために、DLC1の論理が論理「H」のときRSRT
1とオア演算をして、DSFENは論理「H」を出力す
る。また、DLC1の論理が論理「L」のときRSRT
1Dをオア演算して、DSFENは論理「H」を出力す
る。
When the expanded data is shifted out, the data is further expanded by the logic of the stored data DLC1 in the C1 memory.
By performing an OR operation with 1, DSFEN outputs a logical "H". When the logic of DLC1 is logic “L”, RSRT
By ORing 1D, DSFEN outputs logic "H".

【0042】図9(a),(b)はそれぞれ入力部10
01,出力部1005の具体回路図である。詳細な説明
は省略するが、出力部1005でDFFを1段介して出
力しているのは、セレクタ出力にハザードを生じるので
これを整形するのと、伸長手段1003の出力タイミン
グを調整して最終出力とするためである。また、同図の
JKFFは圧縮データのLSB側に付加する固定デー
タ”1000・・・”を生成するものである。
FIGS. 9A and 9B show the input unit 10 respectively.
01 is a specific circuit diagram of the output unit 1005. Although a detailed description is omitted, the reason why the output unit 1005 outputs the DFF through one stage is that a hazard is generated in the selector output, so that this is corrected and the output timing of the decompression means 1003 is adjusted to adjust the output timing. This is for output. Also, the JKFF in the figure generates fixed data “1000...” To be added to the LSB side of the compressed data.

【0043】以上説明した第1の実施例について、次に
タイミングチャートとともに動作を説明する。図10な
いし図13は伸長手段1003の入出力データおよびタ
イミング生成部1006のタイミング処理を説明する図
である。入力データのランレングスとC1に応じてそれ
ぞれ、図10はランレングスL1が0でC1=1の場
合、図11はランレングスL1が10でC1=1の場
合、図12はランレングスL1が10でC1=0の場
合、図13はランレングスL1が13でC1=1の場合
のタイミングチャートである。入力データDSIDTは
折り返し2進符号であり、極性ビットを除けばランレン
グスL1の部分はデータ”0”が連なる。入力データを
シフトレジスタ1301ないしシフトレジスタ1314
に順次シフト入力する。DSR1ないしDSR14はシ
フトレジスタ301ないしシフトレジスタ314の内部
出力データである。伸長手段1003への入力過程では
初期化パルスNLO1Tで初期化した後、ランレングス
に応じてタイミング生成部1006で生成するLDAT
1を基にシフト動作を制御する。反転ビットT1と残り
部分のデータD1をシフト入力する。シフト動作を直接
制御するのはDSFENである。
The operation of the first embodiment described above will now be described with reference to a timing chart. 10 to 13 are diagrams for explaining input / output data of the decompression unit 1003 and timing processing of the timing generation unit 1006. FIG. 10 shows the case where the run length L1 is 0 and C1 = 1, FIG. 11 shows the case where the run length L1 is 10 and C1 = 1, and FIG. 12 shows the case where the run length L1 is 10 according to the run length and C1 of the input data. FIG. 13 is a timing chart when the run length L1 is 13 and C1 = 1. The input data DSIDT is a folded binary code, and data "0" continues in the run length L1 except for the polarity bit. Shifts input data from shift registers 1301 to 1314
Are sequentially shifted. DSR1 to DSR14 are internal output data of the shift registers 301 to 314. In the process of inputting to the expansion means 1003, after the initialization with the initialization pulse NLO1T, the LDAT generated by the timing generation unit 1006 according to the run length
The shift operation is controlled based on “1”. The inverted bit T1 and the remaining data D1 are shifted and input. It is DSFEN that directly controls the shift operation.

【0044】例えば図12において入力データは、MS
B以下、10個の”0”、反転ビットT1の”1”、圧
縮剰余データC1、残り部分のデータD1”AB・・”
である。このようなデータが入力された時、タイミング
生成部1006は、MSBを除くため3以上の奇数スロ
ット毎にDSFENを論理「H」にする。この結果、伸
長手段1003は3以上の奇数スロット毎にシフト入力
され、10個の”0”と反転ビットT1が内部メモリに
格納される。その後、タイミング生成部1006は反転
ビットT1の位置でSFCKに同期してLDAT1を論
理「H」とする。タイミング生成部1006は、圧縮剰
余データC1のタイミングではDSFENを論理「L」
として、伸長手段1003のシフト入力を禁止する。こ
れにより、伸長手段1003は、圧縮剰余データC1を
スキップし、圧縮剰余データC1以降の仮数データD1
を引き続き内部へシフト入力する。こうして全体で14
ビットを格納する。なお、C1メモリ1004はLDA
T1DないしLDAT1DDDを用いて圧縮剰余データ
C1のデータを内部へ格納する。このようにして圧縮デ
ータを格納する。
For example, in FIG. 12, the input data is MS
B and below, ten “0”, inverted bit T1 “1”, compression remainder data C1, remaining data D1 “AB...”
It is. When such data is input, the timing generation unit 1006 sets DSFEN to logic “H” for every three or more odd-numbered slots to remove the MSB. As a result, the decompression means 1003 is shifted and input for every three or more odd-numbered slots, and ten "0" s and inverted bits T1 are stored in the internal memory. Thereafter, the timing generation unit 1006 sets LDAT1 to logic "H" in synchronization with SFCK at the position of the inverted bit T1. The timing generation unit 1006 sets DSFEN to logic “L” at the timing of the compression remainder data C1.
The shift input of the expansion unit 1003 is prohibited. As a result, the decompression means 1003 skips the compression remainder data C1, and outputs the mantissa data D1 after the compression remainder data C1.
Is continuously shifted inward. Thus, a total of 14
Stores bits. Note that the C1 memory 1004 is an LDA
The data of the compressed remainder data C1 is stored internally using T1D to LDAT1DDD. Thus, the compressed data is stored.

【0045】次に、格納した圧縮データをRチャンネル
のデータタイミングにおいて伸長して取り出す過程につ
いて説明する。
Next, the process of expanding and extracting the stored compressed data at the data timing of the R channel will be described.

【0046】図12において、LRCKの立ち上がり時
には伸長手段1003にMSBデータと圧縮剰余データ
C1を除く圧縮データが用意されている。圧縮データの
取り出しを間欠的にして、出力データタイミングに合わ
せることで、出力のランレングスを伸長する。そのため
に、ランレングスL1に相当するデータ区間では、シフ
トイネーブルDSFENを1つおきに論理「H」にす
る。また、圧縮剰余データC1の値によって、さらに1
スロット分伸長する。これらのタイミング制御はタイミ
ング生成部1006のDSFENにより行う。RSRT
1はDSR13またはR24TのいずれかによってSF
CKに同期して論理「H」にセットされる。すなわちタ
イミング生成部1006は、DSR13のT1=”1”
が検出されるかまたはRチャンネルの第24番目のスロ
ットであるR24Tの固定のタイミングでRSRT1を
論理「H」にする。C1メモリ1004の出力C1が”
0”であればRSRT1を遅延したRSRT1Dとを用
いてDSFENをマスクし、その間だけDSFENを強
制的に論理「L」にする。図12の場合、C1=0であ
るのでこれに該当し、したがって出力のランレングスが
さらに1スロット分伸長する。
In FIG. 12, when the LRCK rises, the decompression means 1003 prepares the compressed data excluding the MSB data and the compression remainder data C1. The run length of the output is extended by intermittently extracting the compressed data and matching the output data timing. Therefore, in a data section corresponding to the run length L1, every other shift enable DSFEN is set to logic "H". Further, depending on the value of the compression remainder data C1, 1
Extends by the slot. These timing controls are performed by the DSFEN of the timing generation unit 1006. RSRT
1 is SF by either DSR13 or R24T
Set to logic "H" in synchronization with CK. That is, the timing generation unit 1006 sets the T1 of the DSR 13 to “1”.
Is detected, or at the fixed timing of R24T, which is the 24th slot of the R channel, RSRT1 is set to logic “H”. The output C1 of the C1 memory 1004 is "
If "0", DSFEN is masked using RSRT1D, which is a delay of RSRT1, and DSFEN is forced to logic "L" only during that time. In the case of FIG. 12, C1 = 0, which corresponds to this, so that the output run length is further extended by one slot.

【0047】以降は、残り部分のデータD1すなわちA
BCを順次出力する。その後のブランク部には固定デー
タ”1000・・・”が入力部1001から充当され、
全体長を28ビットにまで伸長する。さらに、4ビット
分の”0”を付加して32ビットとし出力部1005で
1クロック遅延して出力端1804から出力信号DAD
ATとして出力する。このように、伸長後の下位データ
に生じるブランクに固定値”1000・・・”を充当す
るので、ある指数部レンジの表現空間の中心に最も近い
データとなり、したがって寄生するオフセットの偏りを
防止し、滑らかなレンジ遷移ができるようになり、実質
的に歪率を改善できる。なお、固定値は”0111・・
・”であっても全く同等である。
Thereafter, the remaining data D1, ie, A
BC are sequentially output. The fixed data “1000...” Is applied to the blank part from the input part 1001.
The entire length is extended to 28 bits. Further, "0" for 4 bits is added to make 32 bits, and the output unit 1005 delays the output signal DAD by one clock at the output terminal 1804.
Output as AT. Since the fixed value “1000...” Is applied to the blank generated in the lower data after expansion, the data becomes the data closest to the center of the expression space of a certain exponent part range, and therefore, the bias of the parasitic offset is prevented. Thus, a smooth range transition can be performed, and the distortion factor can be substantially improved. The fixed value is "0111 ...
・ "Is exactly the same.

【0048】次に、図13はランレングスL1が13の
場合であるが、図12と動作が異なるのは、以下の点で
ある。ランレングスの大きい場合にこれを打ち切るため
固定のタイミングでLDAT1を論理「H」にする。そ
のため、タイミング生成部1006でL26Tを生成し
LDAT1に反映させる。したがって、反転ビットT1
の有無にかかわらず、L26TのタイミングでLDAT
1を論理「H」にする。また、RSRT1をR24Tの
タイミングで強制的に論理「H」にして圧縮剰余データ
C1によりDSFENをマスクするタイミングを作る。
図10および図11はランレングスが0および10の場
合であるが、動作としては以上の説明と同じになるの
で、省略する。ただし、C1=1であるのでランレング
スL1を2倍に伸長するのみであり、C1による追加伸
長は行わない。
Next, FIG. 13 shows a case where the run length L1 is 13, but the operation is different from that of FIG. 12 in the following points. When the run length is large, LDAT1 is set to logic "H" at a fixed timing in order to terminate the run length. Therefore, L26T is generated by the timing generation unit 1006 and reflected on LDAT1. Therefore, the inverted bit T1
LDAT at L26T timing, regardless of presence or absence of
1 is set to logic "H". Further, RSRT1 is forcibly set to logic "H" at the timing of R24T, and a timing for masking DSFEN with the compressed remainder data C1 is created.
FIGS. 10 and 11 show the case where the run lengths are 0 and 10, however, the operation is the same as that described above, and a description thereof will be omitted. However, since C1 = 1, only the run length L1 is extended by a factor of two, and no additional extension by C1 is performed.

【0049】このようにして得られる圧縮データについ
て、その符号構成のいくつかの例とその符号の持つ特性
について説明する。
With respect to the compressed data obtained in this way, some examples of the code configuration and the characteristics of the code will be described.

【0050】図14(a)は本発明の実施例に使用する
ランレングス1/2圧縮フローティング符号の構成を示
す概念図であり、図14(b)は直線符号(30ビッ
ト)をランレングス1/2圧縮フローティング符号(1
6ビット)に圧縮する符号変換を説明するための図であ
る。図中、従来例と同様部分には同一記号を付与してい
る。
FIG. 14A is a conceptual diagram showing the configuration of a run-length 1/2 compressed floating code used in the embodiment of the present invention, and FIG. 14B is a diagram showing a linear code (30 bits) converted to a run-length 1 code. / 2 compressed floating code (1
FIG. 9 is a diagram for explaining code conversion for compressing data to 6 bits. In the figure, the same symbols are given to the same parts as in the conventional example.

【0051】以下、図に従って、まず圧縮(符号化)の
手順について説明する。圧縮連続データQ1は連続デー
タQ0のランレングスL0を2で除算して整数化したラ
ンレングスL1の長さを有する連続データである。すな
わち、 L1=int(L0/2) である。また、整数除算の剰余項を圧縮剰余F1とする
と、 F1=L0 mod 2 である。
The procedure of compression (encoding) will be described first with reference to the drawings. The compressed continuous data Q1 is continuous data having a length of the run length L1 obtained by dividing the run length L0 of the continuous data Q0 by 2 and converting it into an integer. That is, L1 = int (L0 / 2). If the remainder term of the integer division is a compression remainder F1, then F1 = L0 mod 2.

【0052】反転ビットT1は圧縮連続データQ1のラ
ンをブレークする反転ビットである。圧縮剰余データC
1は圧縮剰余F1を補数表現したものである。また、仮
数データD1はデータD0の上位の部分データである。
ランレングス1/2圧縮フローティング符号は、極性ビ
ットP,圧縮連続データQ1,反転ビットT1,圧縮剰
余データC1,仮数データD1の順に配置する。
The inversion bit T1 is an inversion bit for breaking the run of the compressed continuous data Q1. Compressed remainder data C
1 is a complement representation of the compression remainder F1. Further, the mantissa data D1 is upper partial data of the data D0.
The run-length 1/2 compressed floating code is arranged in the following order: polarity bit P, compressed continuous data Q1, inverted bit T1, compressed remainder data C1, and mantissa data D1.

【0053】以下、図14(b)に基づいてランレング
スL0が「0」ないし「28」の場合について説明す
る。
Hereinafter, a case where the run length L0 is "0" to "28" will be described with reference to FIG.

【0054】L0=0の時、L1,F1は、 L1=int(0/2)=0 F1=0 mod 2 =0 である。When L0 = 0, L1 and F1 are as follows: L1 = int (0/2) = 0 F1 = 0 mod 2 = 0.

【0055】ランレングスL1が「0」であるので圧縮
連続データQ1は無い。圧縮剰余データC1は「1」で
ある。データD0は30ビットで、その内の上位13ビ
ット「ABCDEFGHIJKLM」が仮数データD1
である。ランレングス1/2圧縮フローティング符号は
極性ビットP,反転ビットT1,圧縮剰余データC1お
よび仮数データD1をこの順に配置して、「P11AB
CDEFGHIJKLM」である。
Since the run length L1 is "0", there is no compressed continuous data Q1. The compression remainder data C1 is “1”. The data D0 is 30 bits, and the upper 13 bits “ABCDEFGHIJKLM” are mantissa data D1.
It is. In the run-length 1/2 compressed floating code, the polarity bit P, the inverted bit T1, the compression remainder data C1, and the mantissa data D1 are arranged in this order, and "P11AB
CDEFGHHIJKLM ".

【0056】同様にして以下を求める。 L0=1の時、 L1=int(1/2)=0 F1=1 mod 2 =1 より、圧縮連続データQ1は無く、圧縮剰余データC1
は「0」である。データD0の上位13ビット「ABC
DEFGHIJKLM」が仮数データD1である。ラン
レングス1/2圧縮フローティング符号は「P10AB
CDEFGHIJKLM」である。
Similarly, the following is obtained. When L0 = 1, L1 = int (1/2) = 0 F1 = 1 mod 2 = 1, there is no compressed continuous data Q1, and there is no compressed residual data C1.
Is “0”. The upper 13 bits of data D0 “ABC
"DEFGHIJKLM" is the mantissa data D1. The run-length 1/2 compression floating code is "P10AB
CDEFGHHIJKLM ".

【0057】L0=2の時、 L1=int(2/2)=1 F1=2 mod 2 =0 より、連続データQ1は「0」であり、圧縮剰余データ
C1は「1」である。データD0の上位12ビット「A
BCDEFGHIJKL」が仮数データD1である。ラ
ンレングス1/2圧縮フローティング符号は「P011
ABCDEFGHIJKL」である。
When L0 = 2, since L1 = int (2/2) = 1 F1 = 2 mod 2 = 0, the continuous data Q1 is "0" and the compression remainder data C1 is "1". The upper 12 bits “A” of data D0
"BCDEFGHIJKL" is the mantissa data D1. The run length 1/2 compression floating code is “P011
ABCDEFGHIJKL ".

【0058】L0=3の時、 L1=int(3/2)=1 F1=3 mod 2 =1 より、連続データQ1は「0」であり、圧縮剰余データ
C1は「0」である。データD0の上位12ビット「A
BCDEFGHIJKL」が仮数データD1である。ラ
ンレングス1/2圧縮フローティング符号は「P010
ABCDEFGHIJKL」である。
When L0 = 3, since L1 = int (3/2) = 1 F1 = 3 mod 2 = 1, the continuous data Q1 is "0" and the compression remainder data C1 is "0". The upper 12 bits “A” of data D0
"BCDEFGHIJKL" is the mantissa data D1. The run-length 1/2 compression floating code is "P010
ABCDEFGHIJKL ".

【0059】また、 L0=20の時、 L1=int(20/2)=10 F1=20 mod 2 =0 より、連続データQ1は「0000000000」であ
り、圧縮剰余データC1は「1」である。データD0の
上位3ビット「ABC」が仮数データD1である。従っ
て、ランレングス1/2圧縮フローティング符号は「P
000000000011ABC」である。
When L0 = 20, continuous data Q1 is "000000000000" and compressed remainder data C1 is "1" from L1 = int (20/2) = 10 F1 = 20 mod 2 = 0. . The upper three bits “ABC” of the data D0 are the mantissa data D1. Therefore, the run length 1/2 compression floating code is "P
00000000000011ABC ”.

【0060】さらに、 L0=28の時、 L1=int(28/2)=14 F1=28 mod 2 =0 より、連続データQ1は「0000000000000
0」であり、圧縮剰余データC1は「1」である。デー
タD0はなく、仮数データD1もない。従って、ランレ
ングス1/2圧縮フローティング符号は「P00000
0000000001」である。
Further, when L0 = 28, L1 = int (28/2) = 14 F1 = 28 mod 2 = 0, and the continuous data Q1 is "0000000000000"
0 ", and the compressed remainder data C1 is" 1 ". There is no data D0 and no mantissa data D1. Therefore, the run length 1/2 compression floating code is "P00000
000000001 ”.

【0061】このようにして、直線符号(30ビット)
をランレングス1/2圧縮フローティング符号(16ビ
ット)に圧縮する。
In this way, the linear code (30 bits)
To a run-length 1/2 compressed floating code (16 bits).

【0062】次に、伸長(復号化)の手順について説明
する。復号化の手順は、圧縮データから極性ビットPを
除き、圧縮連続データQ1と反転ビットT1からランレ
ングスL1を得る。また、反転ビットT1の直後にある
圧縮剰余データC1(1ビット)と仮数データD1を得
る。圧縮剰余データC1を反転した圧縮剰余F1を得
る。
Next, the procedure of decompression (decoding) will be described. In the decoding procedure, the run length L1 is obtained from the compressed continuous data Q1 and the inverted bit T1 by removing the polarity bit P from the compressed data. Further, the compression remainder data C1 (1 bit) and the mantissa data D1 immediately after the inversion bit T1 are obtained. A compression remainder F1 obtained by inverting the compression remainder data C1 is obtained.

【0063】これらより、元データの連続データQ0の
ランレングスL0は、 L0=2*L1+F1 から求める。
From these, the run length L0 of the continuous data Q0 of the original data is obtained from L0 = 2 * L1 + F1.

【0064】連続データQ0はランレングスL0の長さ
の「0」を連ねて復元する。連続データQ0の後に反転
ビットT0を付け、その後に仮数データD1を付加す
る。極性ビットPを先頭に付けて元データとするが、こ
の符号長がW0に満たない時は仮数データD1の下位に
固定値を充てて符号長をW0にする。この手順に従っ
て、復号化の処理を行う。
The continuous data Q0 is restored by connecting the length "0" of the run length L0. The inversion bit T0 is added after the continuous data Q0, and the mantissa data D1 is added after that. The polarity bit P is added to the head to be the original data. If the code length is less than W0, a fixed value is applied to the lower part of the mantissa data D1 to make the code length W0. The decoding process is performed according to this procedure.

【0065】以下に、図14(b)を参照しながらラン
レングスL1のいくつかの場合について具体的に説明す
る。
Hereinafter, some cases of the run length L1 will be specifically described with reference to FIG.

【0066】L1=0かつF1=0の時、 L0=2*0+0=0 であるから、連続データQ0は無い。仮数データD1は
13ビットで「ABCDEFGHIJKLM」である。
このとき、元データは、極性ビットP,反転ビットT0
および仮数データD1をならべて、「P1ABCDEF
GHIJKLM***************」とな
る。なお、「***・・・」は固定値「011・・・」
を充てるものとする。
When L1 = 0 and F1 = 0, since L0 = 2 * 0 + 0 = 0, there is no continuous data Q0. The mantissa data D1 is 13 bits and is “ABCDEFGHIJKLM”.
At this time, the original data includes a polarity bit P and an inverted bit T0.
And the mantissa data D1 to form “P1ABCDEF
GHIJKLM ************ ". Note that "*** ..." is a fixed value "011 ..."
Shall be allocated.

【0067】以下同様に、L1=10かつF1=0の
時、 L0=2*10+0=20 であるから、連続データQ0は「0000000000
0000000000」、また仮数データD1は「AB
C」である。このとき、元データは、極性ビットP,連
続データQ0,反転ビットT0および仮数データD1を
ならべて、「P000000000000000000
001ABC*****」となる。
Similarly, when L1 = 10 and F1 = 0, since L0 = 2 * 10 + 0 = 20, the continuous data Q0 is "00000000000000".
00000000 ”and the mantissa data D1 is“ AB
C ". At this time, the original data is composed of the polarity bit P, the continuous data Q0, the inverted bit T0, and the mantissa data D1, and is referred to as “P000000000000000000”.
001ABC ****** ".

【0068】このようにして、ランレングス1/2圧縮
フローティング符号(16ビット)から直線符号(30
ビット)を復号化して伸長する。
In this manner, the run length 1/2 compressed floating code (16 bits) is converted to the linear code (30 bits).
Bit) is decoded and decompressed.

【0069】以上と同様にして、全ての場合についてま
とめた結果を(表3)に示す。
The results summarized for all cases in the same manner as described above are shown in (Table 3).

【0070】[0070]

【表3】 [Table 3]

【0071】(表3)において、直線符号(28ビッ
ト)は折り返し2進符号であり、フローティング符号は
折り返し型のランレングス1/2圧縮フローティング符
号である。ランレングスL0、ランレングスL1および
分解能の欄は10進数である。
In Table 3, the linear code (28 bits) is a folded binary code, and the floating code is a folded run-length 1/2 compressed floating code. The columns of run length L0, run length L1, and resolution are decimal numbers.

【0072】圧縮符号を復号して伸長した復元符号の表
現精度すなわち分解能は、直線符号における直線符号の
丸め精度で決定され、ランレングスL0によって変化す
る。(表3)より、最高28ビットないし15ビットの
精度が得られる。
The expression accuracy, ie, the resolution, of the restored code obtained by decoding and expanding the compressed code is determined by the rounding accuracy of the linear code in the linear code, and varies depending on the run length L0. From Table 3, a precision of up to 28 to 15 bits can be obtained.

【0073】ここで、直線符号を入力として、ランレン
グス1/2圧縮フローティング符号を用いて圧縮符号化
し、この符号を復号して伸長した復元符号を出力する場
合の瞬時S/N比について説明する。ただし、簡単のた
め瞬時S/N比は矩形波のS/N比向上分(約2dB)
を省略する。入力レベルは符号で表現できる最大の正弦
波の振幅を基準(0dB)にする。直線符号の「P11
11・・・」がこれに相当する。
Here, the instantaneous S / N ratio in the case where a linear code is input and compression-encoded using a run-length 1/2 compression floating code, and this code is decoded and a decompressed code is output will be described. . However, for simplicity, the instantaneous S / N ratio is the improvement of the S / N ratio of the rectangular wave (about 2 dB).
Is omitted. The input level is based on the amplitude of the maximum sine wave that can be represented by a code (0 dB). The linear code "P11
11 ... "corresponds to this.

【0074】入力レベル0dBないし−6dBの範囲
は、直線符号で「P1ABC・・・」であり、(表3)
より分解能は15ビットである。15ビットデータの量
子化ノイズは1ビット当り−6dBとして−90dBに
なる。従って、入力レベル0dBないし−6dBの領域
で瞬時S/N比は90dBないし84dBとなる。
The range of the input level from 0 dB to -6 dB is "P1ABC..." By a linear code, as shown in Table 3.
More resolution is 15 bits. The quantization noise of the 15-bit data is -90 dB as -6 dB per bit. Therefore, the instantaneous S / N ratio becomes 90 dB to 84 dB in the range of the input level from 0 dB to -6 dB.

【0075】入力レベル−6dBないし−18dBの範
囲では直線符号で「P01ABC・・・」または「P0
01ABC・・・」となり、(表3)より分解能は16
ビットである。16ビットデータの量子化ノイズは−9
6dBであるので、瞬時S/N比は90dBないし78
dBとなる。
In the input level range of -6 dB to -18 dB, "P01ABC ..." or "P0
01ABC ... "and the resolution is 16 from (Table 3).
Is a bit. The quantization noise of 16-bit data is -9
6 dB, the instantaneous S / N ratio is 90 dB to 78
dB.

【0076】入力レベル−18dBないし−30dBの
範囲では直線符号で「P0001ABC・・・」または
「P00001ABC・・・」となり、(表3)より分
解能は17ビットである。17ビットデータの量子化ノ
イズは−102dBであるので、瞬時S/N比は84d
Bないし72dBとなる。
In the input level range of −18 dB to −30 dB, the code is “P0001ABC...” Or “P00001ABC...”, And the resolution is 17 bits according to (Table 3). Since the quantization noise of 17-bit data is -102 dB, the instantaneous S / N ratio is 84 dB.
B to 72 dB.

【0077】以下同様に、−180dBまでの入力レベ
ル領域で瞬時S/N比を求める。図16はランレングス
1/2圧縮フローティング符号を用いた圧縮符号を復号
して伸長した復元符号の瞬時S/N比特性図である。同
図の横軸に入力レベル、縦軸に瞬時S/N比を示す。同
図の特性曲線X1は(表3)に示すランレングス1/2
圧縮フローティング符号の瞬時S/N比を表すものであ
る。図より特性曲線X1は、入力レベル0dBないし−
96dBの範囲で瞬時S/N比の聴覚検知限界48dB
をほぼ上回っていると言える。
Similarly, an instantaneous S / N ratio is obtained in an input level region up to -180 dB. FIG. 16 is an instantaneous S / N ratio characteristic diagram of a restored code obtained by decoding and expanding a compressed code using a run-length 1/2 compressed floating code. The horizontal axis of the figure shows the input level, and the vertical axis shows the instantaneous S / N ratio. The characteristic curve X1 shown in the figure is a run length 1/2 shown in (Table 3).
It shows the instantaneous S / N ratio of the compressed floating code. As shown in the figure, the characteristic curve X1 has an input level of 0 dB to-
Hearing detection limit of instantaneous S / N ratio in the range of 96 dB 48 dB
Is almost exceeded.

【0078】従来の直線符号(16ビット)に比べ、入
力レベル−96dBのところで約42dBもの瞬時S/
N比改善が達成される。瞬時S/N比の改善は入力レベ
ル−18dBから−180dBの広範囲にわたり作用す
る。入力レベル0dBから−6dBの範囲で瞬時S/N
比が劣化するが、高々6dBの劣化であり、なお90d
Bないし84dBの瞬時S/N比を有する。この領域は
マージンとして留保し、通常は殆ど使用しない範囲であ
るので、全く問題とならない。
As compared with the conventional linear code (16 bits), the instantaneous S /
N-ratio improvement is achieved. The improvement of the instantaneous S / N ratio works over a wide range of input levels from -18 dB to -180 dB. Instantaneous S / N in the range of input level 0 dB to -6 dB
Although the ratio deteriorates, the deterioration is at most 6 dB and still 90 d
It has an instantaneous S / N ratio of B to 84 dB. Since this area is reserved as a margin and is usually in a range that is hardly used, there is no problem at all.

【0079】また、図20の特性曲線Z2に示す折れ線
符号(16ビット)との比較においても、入力レベル0
dBから−12dBの範囲で6dBの改善があり、しか
も−96dBでは18dBの改善が得られる。
In comparison with the broken line code (16 bits) shown in the characteristic curve Z2 of FIG.
There is an improvement of 6 dB in the range from dB to -12 dB, and an improvement of 18 dB is obtained at -96 dB.

【0080】このように微小レベルの信号を増幅して
も、入力レベル−96dBまでの広い範囲にわたって量
子化ノイズを聴覚検知限より小さくすることができる。
従って、十分にヘッドルームを確保して録音レベルを設
定でき、後の編集で任意に増幅できる。また、微小レベ
ルの信号に発生する固有スペクトルの量子化ノイズの問
題を改善するために、白色雑音(ディザ)を付加してノ
イズスペクトルを分散させるなどの処理を無くすことが
できる。
As described above, even if a signal of a very small level is amplified, the quantization noise can be made smaller than the hearing detection limit over a wide range up to the input level of -96 dB.
Therefore, the recording level can be set while securing sufficient headroom, and it can be arbitrarily amplified in later editing. Further, in order to improve the problem of the quantization noise of the eigen spectrum generated in a signal of a minute level, it is possible to eliminate processing such as adding white noise (dither) to disperse the noise spectrum.

【0081】現在の技術では入力レベル0dBから−1
80dBもの広範囲な信号を増幅したり、AD変換器で
デジタル化することは困難であるが、高温超伝導を利用
する機能素子や回路技術の将来の発展により、本発明の
効果が最大限に発揮できるようになる。なお、(表3)
においてランレングス1/2圧縮フローティング符号の
増加特性を考察する。実施例では圧縮剰余データC1を
圧縮剰余F1の補数としたことにより、レンジの境界で
は上位のレンジの数値の方が下位のレンジよりも必ず大
きい。従って、この符号は単調増加特性を有する。仮に
圧縮データを直線符号(16ビット)と誤って再生する
ことがあっても、単調増加特性であればレベルの逆転や
ジャンプを起こさないので有利である。この作用は、圧
縮剰余データC1を圧縮剰余F1の補数としたことによ
るが、必ずしも補数とする必要は無く他の表現であって
もよい。
In the current technology, the input level is 0 dB to -1.
Although it is difficult to amplify a wide range of signals of 80 dB or to digitize them with an AD converter, the effects of the present invention will be maximized due to the future development of functional elements and circuit technology that utilize high-temperature superconductivity. become able to. (Table 3)
Let us consider the increase characteristic of the run length 1/2 compression floating code. In the embodiment, since the compression remainder data C1 is a complement of the compression remainder F1, the numerical value of the upper range is always larger than the lower range at the boundary of the range. Therefore, this code has a monotonically increasing characteristic. Even if the compressed data is erroneously reproduced as a linear code (16 bits), a monotonically increasing characteristic is advantageous because level inversion and jump do not occur. This action is based on the fact that the compression remainder data C1 is the complement of the compression remainder F1, but it need not always be the complement and may be another expression.

【0082】前述したように、現在の技術では入力レベ
ル0dBから−180dBもの広範囲な信号を増幅した
り、AD変換器でデジタル化することは困難である。そ
こで、直線符号を30ビット用意することができない場
合、第1の実施例のように直線符号の短縮を行っても良
い。(表4)は直線符号(28ビット)をランレングス
1/2圧縮フローティング符号(16ビット)に圧縮伸
長する符号復号装置について表すものである。
As described above, it is difficult with the current technology to amplify a signal in a wide range from an input level of 0 dB to -180 dB or to digitize the signal with an AD converter. Therefore, when it is not possible to prepare a 30-bit linear code, the linear code may be shortened as in the first embodiment. Table 4 shows a code decoder for compressing and expanding a linear code (28 bits) into a run-length 1/2 compressed floating code (16 bits).

【0083】[0083]

【表4】 [Table 4]

【0084】この場合、ランレングスL0を最大26で
打ち切る。ランレングスL0=26の時、反転ビットT
0を省略し、残り部分のデータをD0とする。符号化は
同様にするが、圧縮剰余データC1を省略してその代わ
りに仮数データD1すなわちD0を配置する。ランレン
グスL0の打ち切りによって、瞬時S/N比特性は図1
6における特性曲線X2となる。入力レベル−162d
Bから0dBの範囲では同図のX1と同一である。
In this case, the run length L0 is cut off at a maximum of 26. When the run length L0 = 26, the inverted bit T
O is omitted, and the remaining data is set to D0. The encoding is the same, except that the compression remainder data C1 is omitted and the mantissa data D1, that is, D0 is arranged instead. Due to the termination of the run length L0, the instantaneous S / N ratio characteristics are changed as shown in FIG.
6 is the characteristic curve X2. Input level -162d
The range from B to 0 dB is the same as X1 in FIG.

【0085】また、全く同様に、直線符号を24ビット
に短縮を行っても良い。(表5)は直線符号(24ビッ
ト)をランレングス1/2圧縮フローティング符号(1
6ビット)に圧縮伸長する符号復号方法について表すも
のである。
Further, in a similar manner, the linear code may be shortened to 24 bits. Table 5 shows a linear code (24 bits) converted to a run-length 1/2 compressed floating code (1 bit).
(6 bits).

【0086】[0086]

【表5】 [Table 5]

【0087】この場合、ランレングスL0を最大「1
8」で打ち切る。ランレングスL0=18の時、反転ビ
ットT0を省略し、残り部分のデータをD0とする。符
号化は同様にするが、ランレングスL1は最大値が
「9」であることが判っているので、反転ビットT1は
何であっても良い。さらに、圧縮剰余データC1を省略
してその代わりに仮数データD1すなわちD0を配置す
る。ランレングスL0の打ち切りによって、瞬時S/N
比特性は図16における特性曲線X3となる。入力レベ
ル−114dBから0dBの範囲では同図のX1と同一
である。以上述べた特性曲線X1,X2,X3の何れで
あっても、入力レベル0dBから−96dBまでの範囲
で瞬時S/N比の聴覚検知限界をほぼクリアできる。
In this case, the run length L0 is set to a maximum of “1”.
8 ”. When the run length L0 = 18, the inverted bit T0 is omitted, and the remaining data is set to D0. The encoding is the same, but the run length L1 is known to have a maximum value of "9", so the inverted bit T1 may be anything. Further, the compression remainder data C1 is omitted, and instead, mantissa data D1, that is, D0 is arranged. The instantaneous S / N is obtained by terminating the run length L0.
The specific characteristic is a characteristic curve X3 in FIG. The input level is the same as X1 in the figure in the range of −114 dB to 0 dB. With any of the characteristic curves X1, X2, and X3 described above, the hearing detection limit of the instantaneous S / N ratio can be almost cleared in the range of the input level from 0 dB to -96 dB.

【0088】次に、本発明の第2の実施例について、図
面を参照しながら説明する。図15(a)は本発明の第
2の実施例におけるランレングス1/4圧縮フローティ
ング符号の構成を示す概念図であり、図15(b)は変
換処理を説明するための具体例を表す図である。図中、
従来例と同様部分には同一記号を付与している。
Next, a second embodiment of the present invention will be described with reference to the drawings. FIG. 15A is a conceptual diagram showing a configuration of a run-length 1/4 compressed floating code according to the second embodiment of the present invention, and FIG. 15B is a diagram showing a specific example for explaining a conversion process. It is. In the figure,
The same symbols are given to the same parts as in the conventional example.

【0089】以下、図に従って、まず圧縮(符号化)の
手順について説明する。第2の実施例は直線符号(32
ビット)をランレングス1/4圧縮フローティング符号
(16ビット)に圧縮伸長する復号装置である。
The procedure of compression (encoding) will be described first with reference to the drawings. The second embodiment uses a linear code (32
Bit) into a run-length 1/4 compressed floating code (16 bits).

【0090】圧縮連続データQ1は連続データQ0のラ
ンレングスL0を「4」で除算して整数化したランレン
グスL1の長さを有する連続データである。
The compressed continuous data Q1 is continuous data having a length of the run length L1 obtained by dividing the run length L0 of the continuous data Q0 by "4" and converting it into an integer.

【0091】L1=int(L0/4) また、整数除算の剰余項を圧縮剰余F1とすると、 F1=L0 mod 4 である。L1 = int (L0 / 4) If the remainder term of the integer division is a compression remainder F1, then F1 = L0 mod 4

【0092】反転ビットT1は圧縮連続データQ1のラ
ンレングスをブレークする反転ビットである。圧縮剰余
データC1は圧縮剰余F1を補数表現するものである。
また、仮数データD1はデータD0の上位側の部分デー
タである。ランレングス1/4圧縮フローティング符号
は、極性ビットP,圧縮連続データQ1,反転ビットT
1,圧縮剰余データC1,仮数データD1の順に配置す
る。
The inversion bit T1 is an inversion bit for breaking the run length of the compressed continuous data Q1. The compression remainder data C1 is a complement representation of the compression remainder F1.
The mantissa data D1 is the partial data on the upper side of the data D0. The run-length 1/4 compressed floating code includes a polarity bit P, compressed continuous data Q1, and an inverted bit T.
1, compressed remainder data C1, and mantissa data D1.

【0093】以下、図15(b)に基づいてランレング
スL0が「0」ないし「28」の場合について説明す
る。
Hereinafter, a case where the run length L0 is "0" to "28" will be described with reference to FIG.

【0094】L0=0の時、 L1=int(0/4)=0 F1=0 mod 4 =0 より、ランレングスL1が「0」であるので、圧縮連続
データQ1は無い。圧縮剰余データC1は「11」であ
る。データD0は30ビットで、その内の上位12ビッ
ト「ABCDEFGHIJKL」が仮数データD1であ
る。ランレングス1/4圧縮フローティング符号は極性
ビットP,反転ビットT1,圧縮剰余データC1および
仮数データD1をこの順に配置して、「P111ABC
DEFGHIJKL」である。
When L0 = 0, since L1 = int (0/4) = 0 F1 = 0 mod 4 = 0, the run length L1 is "0", and there is no compressed continuous data Q1. The compression remainder data C1 is “11”. The data D0 is 30 bits, of which the upper 12 bits “ABCDEFGHIJKL” are the mantissa data D1. The run-length 1/4 compressed floating code is obtained by arranging the polarity bit P, the inverted bit T1, the compression remainder data C1, and the mantissa data D1 in this order, and setting "P111 ABC
DEFGHIJKL ".

【0095】以下同様に、L0=1の時、 L1=int(1/4)=0 F1=1 mod 4 =1 より、圧縮連続データQ1は無く、圧縮剰余データC1
は「10」である。データD0の上位12ビット「AB
CDEFGHIJKL」が仮数データD1である。ラン
レングス1/4圧縮フローティング符号は「P110A
BCDEFGHIJKL」である。
Similarly, when L0 = 1, since L1 = int (1/4) = 0 F1 = 1 mod 4 = 1, there is no compressed continuous data Q1, and there is no compressed residual data C1.
Is “10”. The upper 12 bits “AB” of data D0
"CDEFGHIJKL" is the mantissa data D1. Run-length 1/4 compression floating code is "P110A
BCDEFGHIJKL ".

【0096】L0=3の時、 L1=int(3/4)=0 F1=3 mod 4 =3 より、連続データQ1は「0」であり、圧縮剰余データ
C1は「00」である。データD0の上位12ビット
「ABCDEFGHIJKL」が仮数データD1であ
る。ランレングス1/4圧縮フローティング符号は「P
100ABCDEFGHIJKL」である。
When L0 = 3, since L1 = int (3/4) = 0 F1 = 3 mod 4 = 3, the continuous data Q1 is "0" and the compression remainder data C1 is "00". The upper 12 bits “ABCDEFGHIJKL” of the data D0 are the mantissa data D1. The run-length 1/4 compression floating code is "P
100ABCDEFGHIJKL ".

【0097】また、L0=20の時、 L1=int(20/4)=5 F1=20 mod 4 =0 より、連続データQ1は「00000」であり、圧縮剰
余データC1は「11」である。データD0の上位7ビ
ット「ABCDEFG」が仮数データD1である。従っ
て、ランレングス1/4圧縮フローティング符号は「P
00000111ABCDEFG」である。
When L0 = 20, L1 = int (20/4) = 5 F1 = 20 mod 4 = 0, the continuous data Q1 is "00000", and the compressed remainder data C1 is "11". . The upper 7 bits “ABCDEFG” of the data D0 are the mantissa data D1. Therefore, the run-length 1/4 compression floating code is "P
00000111ABCDEFG ".

【0098】さらに、L0=23の時、 L1=int(23/4)=5 F1=23 mod 4 =3 より、連続データQ1は「00000」であり、圧縮剰
余データC1は「00」である。データD0の上位7ビ
ット「ABCDEFG」が仮数データD1である。従っ
て、ランレングス1/4圧縮フローティング符号は「P
00000100ABCDEFG」である。
When L0 = 23, L1 = int (23/4) = 5 F1 = 23 mod 4 = 3, so that the continuous data Q1 is "00000" and the compressed remainder data C1 is "00". . The upper 7 bits “ABCDEFG” of the data D0 are the mantissa data D1. Therefore, the run-length 1/4 compression floating code is "P
00000100ABCDEFG ”.

【0099】このようにして、直線符号(32ビット)
をランレングス1/4圧縮フローティング符号(16ビ
ット)に圧縮する。
Thus, the linear code (32 bits)
To a run-length 1/4 compressed floating code (16 bits).

【0100】次に、伸長(復号化)の手順について説明
する。復号化の手順は、圧縮データから極性ビットPを
除き、圧縮連続データQ1と反転ビットT1からランレ
ングスL1を得る。また、反転ビットT1の直後にある
圧縮剰余データC1(2ビット)と仮数データD1を得
る。圧縮剰余データC1を反転した圧縮剰余F1を得
る。
Next, the procedure of decompression (decoding) will be described. In the decoding procedure, the run length L1 is obtained from the compressed continuous data Q1 and the inverted bit T1 by removing the polarity bit P from the compressed data. Further, the compression remainder data C1 (2 bits) and the mantissa data D1 immediately after the inverted bit T1 are obtained. A compression remainder F1 obtained by inverting the compression remainder data C1 is obtained.

【0101】これらより、元データの連続データQ0の
ランレングスL0は、 L0=4*L1+F1 から求める。連続データQ0はランレングスL0の長さ
の「0」を連ねて復元する。連続データQ0の後に反転
ビットT0を付け、その後に仮数データD1を付加す
る。極性ビットPを先頭に付けて元データとするが、こ
の符号長がW0に満たない時は仮数データD1の下位に
固定値を充てて符号長をW0にする。この手順に従っ
て、復号化の処理を行う。
From these, the run length L0 of the continuous data Q0 of the original data is obtained from L0 = 4 * L1 + F1. The continuous data Q0 is restored by connecting the length "0" of the run length L0. The inversion bit T0 is added after the continuous data Q0, and the mantissa data D1 is added after that. The polarity bit P is added to the head to be the original data. If the code length is less than W0, a fixed value is applied to the lower part of the mantissa data D1 to make the code length W0. The decoding process is performed according to this procedure.

【0102】復号装置は以下の点を除いて第1の実施例
と同様である。相違点はシフト入力時に圧縮剰余データ
C1が2ビットであるので、その間はDSFENを論理
「L」にしてシフト入力を禁止すること、C1メモリ1
004を2ビット分有すること、また、伸長出力の時
に、伸長出力1003のシフトレジスタを制御するDS
FENを4クロックに1度論理「H」にすることでラン
レングスL1を4倍に伸長することと、4通り存在する
圧縮剰余データC1の値に応じて出力ランレングスの延
長を0,1,2および3の4通り制御する点である。こ
れらを満たすようにタイミング生成部1006の回路を
変更する。具体回路は第1の実施例から容易に導けるの
で説明を省略する。
The decoding apparatus is the same as the first embodiment except for the following points. The difference is that the compressed remainder data C1 is 2 bits at the time of shift input, and during that time, DSFEN is set to logic "L" to inhibit shift input.
004 for 2 bits, and a DS for controlling the shift register of the expanded output 1003 at the time of expanded output.
The run length L1 is expanded by a factor of four by setting FEN to logic "H" once every four clocks, and the output run length is extended to 0, 1, or 4 in accordance with the values of the four types of compressed remainder data C1. This is the point of control in four ways of 2 and 3. The circuit of the timing generator 1006 is changed so as to satisfy these. Since the specific circuit can be easily derived from the first embodiment, the description is omitted.

【0103】以下に、図15(b)を参照しながらラン
レングスL1のいくつかの場合について具体的に説明す
る。
Hereinafter, some cases of the run length L1 will be specifically described with reference to FIG.

【0104】L1=0かつF1=0の時、 L0=4*0+0=0 であるから、連続データQ0は無い。仮数データD1は
12ビットで「ABCDEFGHIJKL」である。こ
のとき、元データは、極性ビットP,反転ビットT0お
よび仮数データD1をならべて、「P1ABCDEFG
HIJKL***************」となる。
なお、「***・・・」は固定値「1000・・・」を
充てるものとする。
When L1 = 0 and F1 = 0, since L0 = 4 * 0 + 0 = 0, there is no continuous data Q0. The mantissa data D1 is 12 bits and is "ABCDEFGHIJKL". At this time, as the original data, the polarity bit P, the inverted bit T0, and the mantissa data D1 are arranged, and “P1ABCDEFG
HIJKL ******** ".
Note that “***...” Satisfies the fixed value “1000.

【0105】以下同様に、L1=5かつF1=0の時、 L0=4*5+0=20 であるから、連続データQ0は「0000000000
0000000000」、また仮数データD1は「AB
CDEFG」である。このとき、元データは、極性ビッ
トP,連続データQ0,反転ビットT0および仮数デー
タD1をならべて、「P00000000000000
0000001ABCDEFG***」となる。
Similarly, when L1 = 5 and F1 = 0, since L0 = 4 * 5 + 0 = 20, the continuous data Q0 is "00000000000000".
00000000 ”and the mantissa data D1 is“ AB
CDEFG ”. At this time, the original data is composed of the polarity bit P, the continuous data Q0, the inverted bit T0, and the mantissa data D1, and is referred to as “P00000000000000”.
0000001ABCDEFG *** ".

【0106】このようにして、ランレングス1/4圧縮
フローティング符号(16ビット)から直線符号(32
ビット)を復号化して伸長する。
In this way, the run length 1/4 compressed floating code (16 bits) is converted to the linear code (32 bits).
Bit) is decoded and decompressed.

【0107】以上と同様にして、全ての場合についてま
とめた結果を(表6)に示す。
The results summarized for all cases in the same manner as described above are shown in (Table 6).

【0108】[0108]

【表6】 [Table 6]

【0109】(表6)より、本実施例によれば最高32
ビットないし14ビットの精度が得られる。
From Table 6, it can be seen that according to the present embodiment, a maximum of 32
Bit to 14 bit precision is obtained.

【0110】ここで、直線符号を入力として、ランレン
グス1/4圧縮フローティング符号を用いて圧縮符号化
し、この符号を復号して伸長した復元符号を出力する場
合の瞬時S/N比について説明する。
Here, the instantaneous S / N ratio in the case where a linear code is input, compression-encoded using a run-length 1/4 compressed floating code, and this code is decoded and a decompressed code is output is described. .

【0111】入力レベル0dBないし−6dBの範囲
は、直線符号で「P1ABC・・・」であり、(表6)
より分解能は14ビットである。14ビットデータの量
子化ノイズは1ビット当り−6dBとして−84dBに
なる。従って、入力レベル0dBないし−6dBの領域
で、瞬時S/N比は84dBないし78dBとなる。
The range of input levels from 0 dB to -6 dB is "P1ABC..." By a linear code, as shown in Table 6.
More resolution is 14 bits. The quantization noise of 14-bit data is -84 dB, assuming -6 dB per bit. Therefore, the instantaneous S / N ratio becomes 84 dB to 78 dB in the range of the input level from 0 dB to -6 dB.

【0112】入力レベル−6dBないし−12dBの範
囲では直線符号で「P01ABC・・・」であり、(表
6)より分解能は15ビットである。15ビットデータ
の量子化ノイズは−90dBであるので、瞬時S/N比
は84dBないし78dBとなる。
In the input level range of -6 dB to -12 dB, the linear code is "P01ABC ...", and the resolution is 15 bits according to (Table 6). Since the quantization noise of the 15-bit data is -90 dB, the instantaneous S / N ratio is 84 dB to 78 dB.

【0113】入力レベル−12dBないし−18dBの
範囲では直線符号で「P001ABC・・・」であり、
(表6)より分解能は16ビットである。16ビットデ
ータの量子化ノイズは−96dBであるので、瞬時S/
N比は84dBないし78dBとなる。
In the input level range of -12 dB to -18 dB, a linear code is "P001ABC ..."
According to Table 6, the resolution is 16 bits. Since the quantization noise of 16-bit data is -96 dB, the instantaneous S /
The N ratio is 84 dB to 78 dB.

【0114】入力レベル−18dBないし−30dBの
範囲では直線符号で「P0001ABC・・・」または
「P00001ABC・・・」となり、(表6)より分
解能は17ビットである。17ビットデータの量子化ノ
イズは−102dBであるので、瞬時S/N比は84d
Bないし72dBとなる。
In the input level range from -18 dB to -30 dB, the code is "P0001ABC..." Or "P00001ABC...", And the resolution is 17 bits according to (Table 6). Since the quantization noise of 17-bit data is -102 dB, the instantaneous S / N ratio is 84 dB.
B to 72 dB.

【0115】以下同様に、−180dBまでの入力レベ
ル領域で瞬時S/N比を求める。図17はランレングス
1/4圧縮フローティング符号を用いた圧縮符号を復号
して伸長した復元符号の瞬時S/N比特性図である。同
図の横軸に入力レベル、縦軸に瞬時S/N比を示す。同
図の特性曲線Y1は(表6)に示すランレングス1/4
圧縮フローティング符号の瞬時S/N比を表すものであ
る。図より明らかに特性曲線Y1は、入力レベル0dB
ないし−96dBの範囲で瞬時S/N比の聴覚検知限界
48dBを上回っている。
Similarly, an instantaneous S / N ratio is obtained in an input level region up to -180 dB. FIG. 17 is an instantaneous S / N ratio characteristic diagram of a restored code obtained by decoding and expanding a compressed code using a run-length 1/4 compressed floating code. The horizontal axis of the figure shows the input level, and the vertical axis shows the instantaneous S / N ratio. The characteristic curve Y1 in the figure is a run length 1/4 shown in (Table 6).
It shows the instantaneous S / N ratio of the compressed floating code. The characteristic curve Y1 clearly shows that the input level is 0 dB.
In the range of from -96 dB, the instantaneous S / N ratio exceeds the auditory detection limit of 48 dB.

【0116】従来の直線符号(16ビット)に比べ入力
レベル−96dBのところで約60dBもの瞬時S/N
比改善が達成される。瞬時S/N比の改善は入力レベル
−18dBから−196dBの広範囲にわたり作用す
る。入力レベル0dBから−12dBの範囲で瞬時S/
N比が劣化するが、高々12dBの劣化であり、なお、
84dBないし78dBの瞬時S/N比を有する。この
領域はマージンとして通常はあまり使用しない範囲であ
るので、全く問題とならない。
Compared with the conventional linear code (16 bits), the instantaneous S / N of about 60 dB at the input level of -96 dB
A ratio improvement is achieved. The improvement of the instantaneous signal-to-noise ratio works over a wide range of input levels from -18 dB to -196 dB. Instantaneous S / in the range of input level 0 dB to -12 dB
Although the N ratio deteriorates, the deterioration is at most 12 dB.
It has an instantaneous S / N ratio of 84 dB to 78 dB. Since this area is a range that is not usually used much as a margin, there is no problem at all.

【0117】また、図20の特性曲線Z2に示す折れ線
符号(16ビット)との比較においても、入力レベル−
54dBから−196dBの範囲で改善があり、−96
dBでは36dBの改善が得られる。
In comparison with the broken line code (16 bits) shown in the characteristic curve Z2 of FIG.
There is an improvement in the range from 54 dB to -196 dB, and -96
In dB, an improvement of 36 dB is obtained.

【0118】このように第2の実施例によれば、第1の
実施例よりもさらに微小な入力レベル−144dBの信
号を増幅しても、量子化ノイズを聴覚検知することが全
く無くなる。従って、十分にヘッドルームを確保して録
音レベルを設定でき、後の編集で任意に増幅できる。
As described above, according to the second embodiment, even if a signal having an input level of -144 dB smaller than that of the first embodiment is amplified, the auditory detection of quantization noise is completely eliminated. Therefore, the recording level can be set while securing sufficient headroom, and it can be arbitrarily amplified in later editing.

【0119】(表7)は直線符号(29ビット)をラン
レングス1/4圧縮フローティング符号(16ビット)
に圧縮伸長する符号復号方法について表すものである。
Table 7 shows a linear code (29 bits) converted to a run-length 1/4 compressed floating code (16 bits).
This shows a code decoding method for compressing and expanding the data.

【0120】[0120]

【表7】 [Table 7]

【0121】この場合ランレングスL0を最大「20」
で打ち切る。ランレングスL0=20の時、反転ビット
T0を省略し、残り部分のデータをD0とする。符号化
は同様にするが、ランレングスL1は最大値が「5」で
あることが判っているので、反転ビットT1を省略す
る。また、圧縮剰余データC1は何であっても良い。ラ
ンレングスL0の打ち切りによって、瞬時S/N比特性
は図17における特性曲線Y2となる。入力レベル−1
26dBから0dBの範囲では同図のY1と同一であ
る。
In this case, the run length L0 is set to a maximum of “20”.
Terminate with When the run length L0 = 20, the inversion bit T0 is omitted, and the remaining data is set to D0. The encoding is the same, but the run-length L1 is known to have a maximum value of "5", so the inversion bit T1 is omitted. Further, the compression remainder data C1 may be anything. Due to the termination of the run length L0, the instantaneous S / N ratio characteristic becomes the characteristic curve Y2 in FIG. Input level -1
The range from 26 dB to 0 dB is the same as Y1 in FIG.

【0122】また、全く同様に、直線符号を26ビット
に短縮を行っても良い。(表8)は直線符号(26ビッ
ト)をランレングス1/4圧縮フローティング符号(1
6ビット)に圧縮伸長する符号復号方法について表すも
のである。
Further, the linear code may be shortened to 26 bits. Table 8 shows a linear code (26 bits) converted to a run length 1/4 compressed floating code (1 bit).
(6 bits).

【0123】[0123]

【表8】 [Table 8]

【0124】この場合、ランレングスL0を最大「1
6」で打ち切る。ランレングスL0=16の時、反転ビ
ットT0を省略し、残り部分のデータをD0とする。符
号化は同様にするが、ランレングスL1は最大値が
「4」であることが判っているので、反転ビットT1を
省略する。さらに、圧縮剰余データC1は何であっても
良い。ランレングスL0の打ち切りによって、瞬時S/
N比特性は図17における特性曲線Y3となる。入力レ
ベル−102dBから0dBの範囲では同図のY1と同
一である。以上述べた特性曲線Y1,Y2,Y3の何れ
であっても、入力レベル0dBから−96dBまでの範
囲で瞬時S/N比の聴覚検知限界を完全にクリアでき
る。
In this case, the run length L0 is set to a maximum of “1”.
6 ”. When the run length L0 = 16, the inverted bit T0 is omitted, and the remaining data is set to D0. The encoding is the same, but since the maximum value of the run length L1 is known to be "4", the inversion bit T1 is omitted. Further, the compression remainder data C1 may be anything. The run-off of the run length L0 results in an instantaneous S /
The N ratio characteristic is a characteristic curve Y3 in FIG. The input level is the same as Y1 in the range from -102 dB to 0 dB. With any of the characteristic curves Y1, Y2, and Y3 described above, the auditory detection limit of the instantaneous S / N ratio can be completely cleared within the input level range of 0 dB to -96 dB.

【0125】次に、本発明の第3の実施例について説明
する。第3の実施例は直線符号(24ビット)をランレ
ングス1/4圧縮フローティング符号(8ビット)に圧
縮伸長する符号方法である。すなわち、第2の実施例の
符号のビット数を変更したものである。従って、圧縮
(符号化)および伸長(復号化)の手順および復号装置
の構成については第2の実施例と同様であるので説明を
略す。
Next, a third embodiment of the present invention will be described. The third embodiment is a coding method for compressing and expanding a linear code (24 bits) into a run length 1/4 compressed floating code (8 bits). That is, the number of bits of the code of the second embodiment is changed. Therefore, the procedure of compression (encoding) and decompression (decoding) and the configuration of the decoding device are the same as those in the second embodiment, and a description thereof will be omitted.

【0126】全ての指数部すなわちレンジの場合につい
てまとめた結果を(表9)に示す。
Table 9 summarizes the results for all exponents, that is, ranges.

【0127】[0127]

【表9】 [Table 9]

【0128】(表9)より、本実施例によれば最高24
ビットないし6ビットの精度が得られる。
From Table 9, it can be seen that according to the present embodiment, a maximum of 24
Bit to 6 bit precision is obtained.

【0129】図18は第3の実施例のランレングス1/
4圧縮フローティング符号を用いた圧縮符号を復号して
伸長した復元符号の瞬時S/N比特性図である。同図の
横軸に入力レベル、縦軸に瞬時S/N比を示す。同図の
特性曲線V1は(表9)に示すランレングス1/4圧縮
フローティング符号の瞬時S/N比を表すものである。
図より明らかに特性曲線Y1は直線符号(8ビット)に
比較してはるかに広大な入力レベル範囲で略フラットな
瞬時S/N比の特性を示している。このままでは瞬時S
/N比の聴覚検知限界48dBに満たないけれども、差
分符号などと組み合わせることによって、広大な入力レ
ベル範囲と高分解能を活かすことができる。イメージデ
ータのサンプル間相関性を利用する冗長圧縮などに活用
できる。
FIG. 18 shows the run length 1/3 of the third embodiment.
FIG. 4 is an instantaneous S / N ratio characteristic diagram of a restored code obtained by decoding and expanding a compressed code using a 4-compressed floating code. The horizontal axis of the figure shows the input level, and the vertical axis shows the instantaneous S / N ratio. The characteristic curve V1 in the figure represents the instantaneous S / N ratio of the run length 1/4 compressed floating code shown in (Table 9).
As is clear from the figure, the characteristic curve Y1 shows a substantially flat characteristic of the instantaneous S / N ratio in a much wider input level range than the linear code (8 bits). In this state, the instant S
Although it is less than the auditory detection limit of 48 dB of the / N ratio, a wide input level range and high resolution can be utilized by combining with a difference code or the like. It can be used for redundancy compression using the correlation between samples of image data.

【0130】なお、以上説明した第1ないし第3の実施
例では、直線符号は折り返し2進符号としたが、2’S
コンプリメンタリ符号やオフセットバイナリ符号など他
の直線符号であっても、相互に変換するかまたは所定の
論理値を変更するだけで、全く同様に適用できる。ま
た、nは「2」と「4」の場合だけについて説明した
が、nは「2以上」の整数であれば何でもよい。この場
合、nの値に応じて圧縮剰余の場合の数が変わるので、
圧縮剰余データの語長を変更し、シフトイネーブルの制
御を変えればよいことは言うまでもない。また、実施例
ではシフトレジスタを用いた回路構成としたが、同様の
データ変換を行う、DSP(デジタルシグナルプロセッ
サー)のハードウェアおよびソフトウェアで構成しても
よい。
In the first to third embodiments described above, the linear code is a folded binary code.
Other linear codes, such as complementary codes and offset binary codes, can be applied in exactly the same way simply by converting each other or changing a predetermined logical value. Also, the case where n is only “2” and “4” has been described, but n may be any integer as long as it is “2 or more”. In this case, since the number in the case of the compression remainder changes according to the value of n,
It goes without saying that the word length of the compression remainder data may be changed and the shift enable control may be changed. In the embodiment, the circuit configuration uses the shift register. However, the circuit configuration may be configured by hardware and software of a DSP (Digital Signal Processor) that performs similar data conversion.

【0131】[0131]

【発明の効果】以上のように本発明は、伝送されたラン
レングス1/n圧縮フローティング符号を受信し、これ
を復号する装置である。ランレングス1/n圧縮フロー
ティング符号は圧縮連続データと反転ビットと圧縮剰余
データとで指数部すなわちレンジを構成するので、元デ
ータのランレングスに応じて指数部すなわちレンジが変
化している。元データのランレングスが小さい時は指数
部すなわちレンジを少ないビット数で表し、ランレング
スが大きくなるとビット数をさらに割り当てて指数部す
なわちレンジを多くのビット数で表す。符号全体の語長
を固定長とするので、仮数部のビット数はランレングス
に応じて変化する。これらの作用により、出力部から出
力する圧縮符号の有するレンジ表現空間が拡張され、同
時に表現精度を改善できる。本発明は、圧縮データを入
力する入力部と、圧縮剰余データC1を格納するC1メ
モリと、Q1のランレングスをn倍に伸長し、C1メモ
リの値に応じた長さの連続データと、Q0の連続性をブ
レークする反転ビットT0と、仮数データD1を付加す
る伸長手段と、伸長手段から連続データQ0,反転ビッ
トT0および仮数データD0を読み出して伸長データを
出力する出力部とを備え、極性ビットを格納するMSB
ラッチと、入力分配のための入力手段と、奇遇データを
多重する出力手段と、圧縮データの下位に固定データを
付加する伸長手段、あるいは圧縮剰余データC1の値に
よりランレングスを追加する伸長手段を備える。
As described above, the present invention is an apparatus for receiving and decoding a transmitted run-length 1 / n compressed floating code. Since the run-length 1 / n compressed floating code forms an exponent part, that is, a range, with the compressed continuous data, the inverted bit, and the compressed remainder data, the exponent part, that is, the range, changes according to the run length of the original data. When the run length of the original data is small, the exponent part, that is, the range, is represented by a small number of bits. When the run length is large, the bit number is further allocated, and the exponent part, that is, the range, is represented by a large number of bits. Since the word length of the entire code is fixed, the number of bits of the mantissa changes according to the run length. By these actions, the range expression space of the compression code output from the output unit is expanded, and at the same time, the expression accuracy can be improved. The present invention provides an input section for inputting compressed data, a C1 memory for storing compressed remainder data C1, a run length of Q1 expanded by n times, and continuous data having a length corresponding to the value of the C1 memory; Bit T0 for breaking the continuity of data, decompression means for adding mantissa data D1, and an output unit for reading out continuous data Q0, inversion bit T0 and mantissa data D0 from the decompression means and outputting decompressed data, MSB to store bit
Latch, input means for input distribution, output means for multiplexing odd data, decompression means for adding fixed data to the lower part of compressed data, or decompression means for adding run length according to the value of compression residual data C1. Prepare.

【0132】これにより、入力部は取り込んだ圧縮デー
タをC1メモリおよび伸長手段へ供給し、C1メモリは
抽出した圧縮剰余データC1を記憶保持し伸長手段へこ
のデータを供給し、伸長手段は取り込んだ圧縮データを
n倍に伸長してC1メモリから入力された圧縮剰余デー
タに基づきランレングスをさらに延長し、反転ビットを
付加し、さらに仮数部を付加したデータを出力部へ供給
し、出力部は伸長により復元された元データを外部に取
り出す。復号した元データは、精度と入力レベル範囲の
両方を所定の特性以上に保つので、特に業務編集用のデ
ジタル記録再生装置などに本発明を適用すると、増幅減
衰を伴うミキシングやダビングを繰り返しても、量子化
ノイズが聴覚検知されることが無くなり、入力レベル0
ないし−96dBの広い範囲において、瞬時S/N比の
聴覚検知限界である約48dB以上を確保する復号装置
を提供できる。
Thus, the input section supplies the received compressed data to the C1 memory and the decompression means. The C1 memory stores and retains the extracted compressed remainder data C1, supplies this data to the decompression means, and the decompression means receives the data. The compressed data is expanded by n times, the run length is further extended based on the compressed remainder data input from the C1 memory, the inverted bit is added, and the data to which the mantissa is added is supplied to the output unit. The original data restored by decompression is taken out. Since the decoded original data keeps both the accuracy and the input level range at or above the predetermined characteristics, especially when the present invention is applied to a digital recording / reproducing apparatus for business editing, mixing and dubbing with amplification and attenuation are repeated. , No quantization noise is detected by the auditory sense, and the input level 0
In addition, it is possible to provide a decoding device that secures the auditory detection limit of the instantaneous S / N ratio of about 48 dB or more in a wide range from -96 dB.

【0133】また、MSBラッチにより入力データの絶
対値をとって折り返し2進符号化することで正負の極性
に対応しハードを簡単にすることができる。
Further, by taking the absolute value of the input data using the MSB latch and performing return binary coding, it is possible to cope with positive and negative polarities and simplify the hardware.

【0134】伸長後の下位データに生じるブランクに固
定値”100・・・”あるいは”011・・・”を充当
することで、指数部レンジに寄生するオフセットの偏り
を防止し、歪率を改善できる。
By applying a fixed value “100...” Or “011...” To the blanks generated in the lower data after expansion, offset bias that is parasitic in the exponent range is prevented, and the distortion rate is improved. it can.

【0135】また、入力分配および出力手段の多重化セ
レクタによるパイプライン処理により高速連続処理がで
きるようになる。
In addition, high-speed continuous processing can be performed by pipeline processing by the multiplexing selector of the input distribution and output means.

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

【図1】本発明の第1の実施例におけるランレングス1
/2圧縮フローティング符号の復号装置の構成を示す概
略ブロック図
FIG. 1 shows a run length 1 according to a first embodiment of the present invention.
Schematic block diagram showing the configuration of a decoding device for a 1/2 compressed floating code

【図2】同第1の実施例における概略の動作タイミング
FIG. 2 is a schematic operation timing chart in the first embodiment.

【図3】LチャンネルとRチャンネルを伸長する復号装
置のブロック図
FIG. 3 is a block diagram of a decoding device that expands an L channel and an R channel.

【図4】図1における伸長手段1003の具体回路図FIG. 4 is a specific circuit diagram of the expansion means 1003 in FIG.

【図5】図4におけるシフトレジスタ1301ないし3
14の内部回路図
FIG. 5 shows shift registers 1301 to 1303 in FIG.
14 internal circuit diagram

【図6】図1におけるMSBメモリ1002の具体回路
FIG. 6 is a specific circuit diagram of the MSB memory 1002 in FIG.

【図7】図1におけるC1メモリ1004の具体回路図FIG. 7 is a specific circuit diagram of a C1 memory 1004 in FIG. 1;

【図8】図1におけるタイミング生成部1006の具体
回路図
8 is a specific circuit diagram of a timing generation unit 1006 in FIG.

【図9】(a)は図1における入力部1001の具体回
路図 (b)は図1における出力部1005の具体回路図
9A is a specific circuit diagram of an input unit 1001 in FIG. 1. FIG. 9B is a specific circuit diagram of an output unit 1005 in FIG.

【図10】図1における伸長手段1003の入出力デー
タおよびタイミング生成部1006のタイミング処理を
説明する波形図
10 is a waveform chart for explaining input / output data of a decompression unit 1003 and timing processing of a timing generation unit 1006 in FIG.

【図11】図1における伸長手段1003の入出力デー
タおよびタイミング生成部1006のタイミング処理を
説明する波形図
11 is a waveform chart for explaining input / output data of the decompression means 1003 and timing processing of the timing generation unit 1006 in FIG.

【図12】図1における伸長手段1003の入出力デー
タおよびタイミング生成部1006のタイミング処理を
説明する波形図
FIG. 12 is a waveform chart for explaining input / output data of a decompression unit 1003 and timing processing of a timing generation unit 1006 in FIG.

【図13】図1における伸長手段1003の入出力デー
タおよびタイミング生成部1006のタイミング処理を
説明する波形図
FIG. 13 is a waveform chart for explaining input / output data of a decompression unit 1003 and timing processing of a timing generation unit 1006 in FIG.

【図14】(a)は本発明の第1の実施例におけるラン
レングス1/2圧縮フローティング符号の構成を示す概
念図 (b)は同じく変換処理を説明するための説明図
14A is a conceptual diagram showing a configuration of a run-length 1/2 compressed floating code according to the first embodiment of the present invention; FIG. 14B is an explanatory diagram for explaining the conversion processing in the same manner;

【図15】(a)は本発明の第2の実施例におけるラン
レングス1/4圧縮フローティング符号の構成を示す概
念図 (b)は同じく変換処理を説明するための具体例を表す
説明図
FIG. 15A is a conceptual diagram showing the configuration of a run-length 1/4 compressed floating code according to the second embodiment of the present invention. FIG. 15B is an explanatory diagram showing a specific example for explaining the conversion process.

【図16】本発明の第1の実施例におけるランレングス
1/2圧縮フローティング符号を用いた圧縮符号を復号
して伸長した復元符号の瞬時S/N比特性図
FIG. 16 is an instantaneous S / N ratio characteristic diagram of a restored code obtained by decoding and expanding a compressed code using a run-length 1/2 compressed floating code according to the first embodiment of the present invention.

【図17】本発明の第2の実施例におけるランレングス
1/4圧縮フローティング符号を用いた圧縮符号を復号
して伸長した復元符号の瞬時S/N比特性図
FIG. 17 is an instantaneous S / N ratio characteristic diagram of a restored code obtained by decoding and expanding a compressed code using a run-length 1/4 compressed floating code according to the second embodiment of the present invention.

【図18】本発明の第3の実施例におけるランレングス
1/4圧縮フローティング符号を用いた圧縮符号を復号
して伸長した復元符号の瞬時S/N比特性図
FIG. 18 is an instantaneous S / N ratio characteristic diagram of a restored code obtained by decoding and expanding a compressed code using a run-length 1/4 compressed floating code in the third embodiment of the present invention.

【図19】(a)は従来の13折れ線符号(12ビッ
ト)の構成を示す概念図 (b)は同じく変換方法を説明するための具体例を表す
説明図
19A is a conceptual diagram showing a configuration of a conventional 13-line code (12 bits), and FIG. 19B is an explanatory diagram showing a specific example for explaining a conversion method in the same manner.

【図20】従来の折れ線符号を用いた圧縮符号を復号し
て伸長した復元符号の特性図
FIG. 20 is a characteristic diagram of a restored code obtained by decoding and expanding a conventional compressed code using a broken line code.

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

1001 入力部 1002 MSBメモリ 1003 伸長手段 1004 C1メモリ 1005 出力部 1006 タイミング生成部 P 極性ビット Q0 連続データ Q1 圧縮連続データ Q2 レンジデータ L0 連続データQ0のランレングス L1 圧縮連続データQ1のランレングス L2 レンジデータQ2のランレングス T0,T1 反転ビット D0 残り部分のデータ D1,D2 仮数データ W0 元データの符号長 W1,W2 圧縮データの符号長 1001 input unit 1002 MSB memory 1003 decompression means 1004 C1 memory 1005 output unit 1006 timing generation unit P polarity bit Q0 continuous data Q1 compressed continuous data Q2 range data L0 run length of continuous data Q0 L1 run length of compressed continuous data Q1 L2 range data Run length of Q2 T0, T1 Inversion bit D0 Data of remaining part D1, D2 Mantissa data W0 Code length of original data W1, W2 Code length of compressed data

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03M 7/24 H03M 7/50 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) H03M 7/24 H03M 7/50

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 上位で所定論理のビットが連続する圧縮
連続データQ1、前記圧縮連続データQ1の連続性をブ
レークする反転ビットT1、ランレングスを圧縮する時
に生じる剰余F1を表す圧縮剰余データC1および仮数
データD1によって構成する圧縮データを入力する入力
部と、 前記圧縮剰余データC1を格納するC1メモリと、 前記Q1のランレングスをn倍に伸長し、前記C1メモ
リの値に応じた長さの連続データを付加し、Q0の連続
性をブレークする反転ビットT0を付加し、引き続き前
記仮数データD1を付加する伸長手段と、 前記伸長手段から連続データQ0,反転ビットT0およ
び仮数データD0を読み出して伸長データを出力する出
力部とを備えることを特徴とするランレングス1/n圧
縮フローティング符号の復号装置。ただし、前記連続デ
ータQ0のランレングスをL0、前記圧縮連続データQ
1のランレングスをL1、圧縮剰余データC1から求め
る剰余をF1、nを2以上の整数とするとき、 L0=L1*n+F1 D0=D1 とする。
1. A compressed continuous data Q1 in which bits of a predetermined logic continue at a high order, an inverted bit T1 for breaking the continuity of the compressed continuous data Q1, a compressed residual data C1 representing a residual F1 generated when compressing a run length, and An input unit for inputting compressed data constituted by mantissa data D1, a C1 memory for storing the compressed remainder data C1, a run length of Q1 expanded by n times, and a length corresponding to the value of the C1 memory Decompression means for adding continuous data, adding an inverted bit T0 for breaking the continuity of Q0, and subsequently adding the mantissa data D1, and reading the continuous data Q0, inverted bit T0 and mantissa data D0 from the decompression means Decoding a run-length 1 / n compressed floating code, comprising: an output unit for outputting decompressed data. apparatus. However, the run length of the continuous data Q0 is L0,
When the run length of 1 is L1 and the remainder obtained from the compressed remainder data C1 is F1, and n is an integer of 2 or more, L0 = L1 * n + F1 D0 = D1.
【請求項2】 極性ビットP、この極性ビットPを除い
て上位で所定論理のビットが連続する圧縮連続データQ
1、前記圧縮連続データQ1の連続性をブレークする反
転ビットT1、ランレングスを圧縮する時に生じる剰余
F1を表す圧縮剰余データC1および仮数データD1に
よって構成する圧縮データを入力する入力部と、 前記極性ビットPを格納するMSBメモリと、 前記圧縮剰余データC1を格納するC1メモリと、 前記Q1のランレングスをn倍に伸長し、前記C1メモ
リの値に応じた長さの連続データを付加し、Q0の連続
性をブレークする反転ビットT0を付加し、引き続き前
記仮数データD1を付加する伸長手段と、 前記MSBメモリから極性ビットPを読み出し、前記伸
長手段から連続データQ0,反転ビットT0および仮数
データD0を読み出して伸長データを出力する出力部と
を備えることを特徴とするランレングス1/n圧縮フロ
ーティング符号の復号装置。ただし、前記連続データQ
0のランレングスをL0、前記圧縮連続データQ1のラ
ンレングスをL1、圧縮剰余データC1から求める剰余
をF1、nを2以上の整数とするとき、 L0=L1*n+F1 D0=D1 とする。
2. Compressed continuous data Q having a polarity bit P, and bits of a predetermined logic continuing at a higher order except for the polarity bit P.
1. an inverting bit T1 for breaking the continuity of the compressed continuous data Q1, an input section for inputting compressed data constituted by compressed remainder data C1 and mantissa data D1 representing a remainder F1 generated when compressing a run length; An MSB memory for storing the bit P, a C1 memory for storing the compressed remainder data C1, a run length of the Q1 is expanded by n times, and continuous data having a length corresponding to the value of the C1 memory is added; Expansion means for adding an inverted bit T0 for breaking the continuity of Q0 and subsequently adding the mantissa data D1; read polarity bit P from the MSB memory; and output continuous data Q0, inverted bit T0 and mantissa data from the expansion means. An output unit for reading out D0 and outputting decompressed data. A decoding device for compressed floating codes. However, the continuous data Q
When the run length of 0 is L0, the run length of the compressed continuous data Q1 is L1, the remainder obtained from the compressed remainder data C1 is F1, and n is an integer of 2 or more, L0 = L1 * n + F1 D0 = D1.
【請求項3】 伸長手段は、復号した直線符号を所定の
符号長W0になるようにデータD0の下位に固定値「1
00・・・」または「011・・・」または「000・
・・」または「111・・・」を追加するか、または下
位のビットを削除する請求項1または2に記載のランレ
ングス1/n圧縮フローティング符号の復号装置。
3. The decompression means adds a fixed value “1” to the lower part of the data D0 so that the decoded linear code has a predetermined code length W0.
00 ... "or" 011 ... "or" 000.
3. The decoding device for run-length 1 / n compressed floating codes according to claim 1 or 2, wherein ".." or "111..." Is added or lower bits are deleted.
【請求項4】 伸長手段は、シフトイネーブル機能付き
のシフトレジスタで構成し、圧縮剰余データC1の部分
だけはシフト入力をマスクして仮数データを前詰めにし
て順次内部へ格納し、ランレングスの部分については出
力シフトのイネーブルをn回に1回とすることにより、
出力ランレングスを実質的にn倍に伸長して出力するこ
とを特徴とする請求項1または2に記載のランレングス
1/n圧縮フローティング符号の復号装置。
4. The decompression means is constituted by a shift register with a shift enable function, masks the shift input only for the compressed remainder data C1, shifts the mantissa data to the left, and sequentially stores them inside. By enabling the output shift once every n times for the part,
3. The decoding apparatus for a run-length 1 / n compressed floating code according to claim 1, wherein the output run-length is expanded and output substantially n times.
【請求項5】 伸長手段は、シフトイネーブル機能付き
のシフトレジスタで構成し、圧縮剰余データC1の部分
だけはシフト入力をマスクして仮数データを前詰めにし
て順次内部へ格納し、ランレングスの部分については出
力シフトのイネーブルをn回に1回とすることにより、
出力ランレングスを実質的にn倍に伸長するとともに、
C1メモリに格納した圧縮剰余データC1の値に応じ
て、異なる長さのランレングスをさらに追加伸長して出
力することを特徴とする請求項1または2に記載のラン
レングス1/n圧縮フローティング符号の復号装置。
5. The decompression means is constituted by a shift register with a shift enable function, and only the portion of the compression remainder data C1 is masked by the shift input, the mantissa data is left-justified, and stored sequentially inside. By enabling the output shift once every n times for the part,
While extending the output run length substantially n times,
3. The run-length 1 / n compressed floating code according to claim 1, wherein run lengths having different lengths are further expanded and expanded according to the value of the compressed remainder data C1 stored in the C1 memory. Decoding device.
【請求項6】 奇数番目の入力データの入力処理と伸長
処理を交互に行う復号装置Aと偶数番目の入力データの
入力処理と伸長処理を交互に行う復号装置Bと、前記復
号装置Aの出力データと前記復号装置Bの出力データと
を多重するセレクタを設け、前記セレクタから連続した
奇遇の出力データを出力するようにした請求項1または
2に記載のランレングス1/n圧縮フローティング符号
の復号装置。
6. A decoding device A for alternately performing input processing and decompression processing for odd-numbered input data, a decoding apparatus B for performing input processing and decompression processing for even-numbered input data alternately, and an output of the decoding apparatus A. 3. The decoding of the run-length 1 / n compressed floating code according to claim 1, wherein a selector for multiplexing data and output data of said decoding device B is provided, and continuous odd output data is output from said selector. apparatus.
JP04079485A 1992-04-01 1992-04-01 Decoding device for run-length 1 / n compressed floating code Expired - Fee Related JP3092299B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04079485A JP3092299B2 (en) 1992-04-01 1992-04-01 Decoding device for run-length 1 / n compressed floating code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04079485A JP3092299B2 (en) 1992-04-01 1992-04-01 Decoding device for run-length 1 / n compressed floating code

Publications (2)

Publication Number Publication Date
JPH05284039A JPH05284039A (en) 1993-10-29
JP3092299B2 true JP3092299B2 (en) 2000-09-25

Family

ID=13691203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04079485A Expired - Fee Related JP3092299B2 (en) 1992-04-01 1992-04-01 Decoding device for run-length 1 / n compressed floating code

Country Status (1)

Country Link
JP (1) JP3092299B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7586424B2 (en) * 2006-06-05 2009-09-08 Donald Martin Monro Data coding using an exponent and a residual

Also Published As

Publication number Publication date
JPH05284039A (en) 1993-10-29

Similar Documents

Publication Publication Date Title
US5162795A (en) Coding and decoding apparatus of variable length data
US6079041A (en) Digital modulation circuit and digital demodulation circuit
US4760378A (en) Method and apparatus for converting a run length limited code
US4413289A (en) Digital recording and playback method and apparatus
JPH09162744A (en) Digital modulator, method thereof, and recording medium
USRE44013E1 (en) Digital sum variation computation method and system
EP0557130B1 (en) Data conversion method and recording/reproducing apparatus using the same
JP3092299B2 (en) Decoding device for run-length 1 / n compressed floating code
JPH05183445A (en) Run length 1 / n compression floating encoder
US5325240A (en) Data compression and expansion apparatus for audio recorders
JP2794719B2 (en) Code conversion device
JP2785822B2 (en) High-efficiency encoding device and decoding device for television signal
JPH07101849B2 (en) Run length 1 / n compression floating code method and decoding method thereof
JPH1011898A (en) Digital sound recorder
KR0120040Y1 (en) Serial digital audio mixer different sampling frequency
JP2002533975A (en) Apparatus for encoding n-bit source words into corresponding m-bit channel words and decoding m-bit channel words into corresponding n-bit source words
JP3134500B2 (en) Encoding method, encoding device, and decoding device
JPS62123834A (en) Coding transmission system
JPH0229255B2 (en) SHINGODENSOHOSHIKI
KR100188082B1 (en) Interpolation circuit for compact disc players with low interpolation error
KR20030005315A (en) Method and apparatus for compression, method and apparatus for decompression, compression/decompression system, recored medium
JPS63204822A (en) code conversion device
JPS6043744A (en) Division circuit
JPH05235776A (en) Information conversion system and recording and reproducing device
JPS6319920A (en) Audio encoding method

Legal Events

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

Free format text: PAYMENT UNTIL: 20070728

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080728

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090728

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees