JPH04286421A - Run length 1/n compression floating coding method and its decoding method - Google Patents

Run length 1/n compression floating coding method and its decoding method

Info

Publication number
JPH04286421A
JPH04286421A JP3050987A JP5098791A JPH04286421A JP H04286421 A JPH04286421 A JP H04286421A JP 3050987 A JP3050987 A JP 3050987A JP 5098791 A JP5098791 A JP 5098791A JP H04286421 A JPH04286421 A JP H04286421A
Authority
JP
Japan
Prior art keywords
data
compressed
run length
code
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3050987A
Other languages
Japanese (ja)
Other versions
JPH07101849B2 (en
Inventor
Naoki Ejima
直樹 江島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3050987A priority Critical patent/JPH07101849B2/en
Publication of JPH04286421A publication Critical patent/JPH04286421A/en
Publication of JPH07101849B2 publication Critical patent/JPH07101849B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】[Detailed description of the invention]

【産業上の利用分野】本発明はイメージデータの高品質
な記録伝送に用いる符号圧縮方法であって、特に広い入
力範囲に渡って瞬時S/N比特性が良好なランレングス
1/n圧縮フローティング符号方法及びその復号方法に
関する。
[Industrial Application Field] The present invention relates to a code compression method used for high-quality recording and transmission of image data, and in particular a run-length 1/n compression floating method with good instantaneous S/N ratio characteristics over a wide input range. It relates to a coding method and its decoding method.

【従来の技術】従来の衛星PCM放送やデジタル・オー
ディオ・テープレコーダ(以下、DATと略す)におい
ては、圧縮による品質劣化を抑えながらハードウェア量
とのトレードオフも考慮し、比較的軽い圧縮率を採用し
ている。これらの例としては折れ線符号があり、DAT
においては12ビットの13折れ線符号が用いられてい
る。詳細な技術規格は日本電子機械工業会発行の「EI
AJ  CP−2305DAT  Cassette 
 System  Part1:  Dimensio
nand  Characteristics」に示さ
れている。図6(b)はDATに使用されている13折
れ線符号(12ビット)の変換方法を説明する図であり
、正の範囲を示す。図中の枠内において()内の数字は
10進数、それ以外の数字は2進数である。2進数の最
上位ビット(以下、MSBという)は極性ビットPであ
り、正の範囲では「0」、負の範囲では「1」である。 図中の「ABCDEFGH」は「00000000」か
ら「11111111」までの値であり、「*」は任意
の2進数である。また、L0は元データの極性ビットを
除いた上位で「0」が連続する連続データQ0のランレ
ングスである。以上のような符号方法について、以下そ
の手順について説明する。図6(b)は符号化と復号化
の変換を具体的に示す図である。先ず、13折れ線符号
(12ビット)の符号化の方法について説明する。16
ビットの領域を正の範囲で7分割し、それぞれの領域に
応じてシフト量を操作する。同図より明らかな通り、領
域分割はMSB側から見て初めに「1」のある位置によ
り行える。 言い換えると、極性ビットを除いた「0」の連続データ
のランレングスL0で決定できる。ランレングスL0を
「0」から「7以上」までの8通りとし、L0の補数を
レンジデータとして指数表現する。例えば、元データが
「1216(10進)」すなわち「000001001
1000000(2進)」の場合、連続データQ0のラ
ンレングスL0は「4」となる。レンジデータQ2は「
100」を反転した「011」である。また、「ABC
DEFGH」は「00110000」である。従って、
出力データは「001100110000」となる。図
6(a)は上記の概念を図式化して示した図である。出
力データは極性ビットPと、領域を表すレンジデータQ
2と、シフトした仮数データD2とを合成して12ビッ
トにする。レンジデータQ2は固定語長であり、3ビッ
トである。元データが2S(トゥーズ)コンプリメンタ
リである場合には、負の範囲はP以下のビットを全てビ
ット反転させることにより、正の範囲と全く同様の符号
化ができる。このように、負の範囲でビット反転させた
符号を折り返し2進符号と呼ぶ。以下の説明は特に断ら
ない限り、折り返し2進符号を用いることにするが、2
Sコンプリメンタリとの変換は相互に可能である。次に
、13折れ線符号(12ビット)の復号化の方法につい
て説明する。復号化は、折れ線符号のレンジデータQ2
の位置が既知であるので、極性ビットPの以降3ビット
をみて、指数部すなわちレンジを再生する。仮数データ
D2の位置も既知であるので、レンジデータQ2によっ
て直線符号(16ビット)のランレングスL0を復元し
、反転ビットT0と、その後に仮数データD2を付ける
。元データの符号長W0に満たない時は、固定値を充て
る。このような手順に従って、復号化の処理を行う。以
上説明した符号化および復号化を行うと、情報の丸めに
より表現精度が変更される。情報の丸めはシフト操作に
より発生する。ランレングスL0が「6」と「7以上」
では同じとするので、シフトは7種類となる。よって、
正と負で14種類となるが、中心の領域では正と負で同
じシフト操作をするので、全領域の入出力特性は13種
類の折れ線で表すことができる。図6(b)のそれぞれ
の領域において、表現精度すなわち分解能はランレング
スL0によって変化する。ランレングスL0が「0」な
いし「6」の時、分解能は語長換算のビット数で10ビ
ットないし16ビットである。以上説明した内容を(表
1)にまとめて示す。
[Prior Art] Conventional satellite PCM broadcasting and digital audio tape recorders (hereinafter abbreviated as DAT) have a relatively light compression rate, taking into consideration the trade-off with the amount of hardware while suppressing quality deterioration due to compression. is adopted. Examples of these are line codes, DAT
In this case, a 12-bit 13-line code is used. Detailed technical standards are “EI” published by Japan Electronics Industries Association.
AJ CP-2305DAT Cassette
System Part1: Dimensio
and Characteristics”. FIG. 6(b) is a diagram illustrating a method of converting a 13-line code (12 bits) used in DAT, and shows a positive range. In the frame in the figure, numbers in parentheses are decimal numbers, and other numbers are binary numbers. The most significant bit (hereinafter referred to as MSB) of the binary number is the polarity bit P, which is "0" in the positive range and "1" in the negative range. "ABCDEFGH" in the figure is a value from "00000000" to "11111111", and "*" is an arbitrary binary number. Further, L0 is the run length of continuous data Q0 in which "0" continues in the upper part excluding the polarity bit of the original data. The procedure for the encoding method described above will be explained below. FIG. 6(b) is a diagram specifically showing conversion between encoding and decoding. First, a method of encoding a 13-line code (12 bits) will be explained. 16
The bit area is divided into seven areas within a positive range, and the shift amount is manipulated according to each area. As is clear from the figure, region division can be performed by starting from the position of "1" when viewed from the MSB side. In other words, it can be determined by the run length L0 of continuous data of "0" excluding the polarity bit. There are eight run lengths L0 from "0" to "7 or more", and the complement of L0 is expressed as an index as range data. For example, if the original data is "1216 (decimal)" or "000001001"
1000000 (binary)", the run length L0 of the continuous data Q0 is "4". The range data Q2 is “
It is "011" which is the inversion of "100". Also, “ABC
DEFGH” is “00110000”. Therefore,
The output data becomes "001100110000". FIG. 6(a) is a diagram schematically showing the above concept. The output data is a polarity bit P and range data Q representing the area.
2 and the shifted mantissa data D2 are combined into 12 bits. Range data Q2 has a fixed word length of 3 bits. If the original data is 2S (tooth) complementary, the negative range can be encoded in exactly the same way as the positive range by inverting all bits below P. A code whose bits are inverted in the negative range in this way is called a folded binary code. In the following explanation, unless otherwise specified, folded binary codes will be used.
Conversion with S complementary is mutually possible. Next, a method of decoding a 13-line code (12 bits) will be explained. Decoding uses polygonal code range data Q2
Since the position of the polarity bit P is known, the exponent part, 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 inverted bit T0 and the mantissa data D2 are added after it. When the code length of the original data is less than W0, a fixed value is used. Decryption processing is performed according to such a procedure. When the encoding and decoding described above are performed, the precision of representation is changed due to rounding of information. Rounding of information occurs due to shift operations. Run length L0 is “6” and “7 or more”
Since they are the same, there are seven types of shifts. Therefore,
There are 14 types for positive and negative, but since the same shift operation is performed for positive and negative in the central area, the input/output characteristics of the entire area can be represented by 13 types of polygonal lines. In each region of FIG. 6(b), the representation 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 word length conversion. The contents explained above are summarized in (Table 1).

【表1】 図7は折れ線符号を用いた圧縮符号を復号して伸長した
復元符号の特性図である。同図の横軸に入力レベル、縦
軸に瞬時S/N比を示す。ただし、瞬時S/N比は矩形
波のS/N比向上分の約2dBを、簡単のため省略して
いる。同図においてZ1は13折れ線符号(12ビット
)の特性を示すものである。Z1について説明する。 入力レベル0dBは符号で表現できる最大の正弦波の振
幅を基準にする。直線符号の「P1111111111
11111」がこれに相当する。入力レベル0dBない
し−6dBの範囲では直線符号で「P1***・・・」
となり、(表1)よりランレングスL0が「0」である
ので分解能は10ビットである。10ビットデータの量
子化ノイズは1ビット当り−6dBとして−60dBに
なる。従って、入力レベル0dBないし−6dBの瞬時
S/N比は60dBないし54dBとなる。次に、入力
レベル−6dBないし−12dBの範囲では直線符号で
「P01***・・・」となり、(表1)よりランレン
グスL0が「1」であるので分解能は11ビットである
。11ビットデータの量子化ノイズは−66dBになる
。従って、瞬時S/N比は60dBないし54dBとな
る。以下同様に、−96dBまでの領域で瞬時S/N比
を求め、特性曲線にしたのがZ1である。ここで、入力
レベル−36dB以下では直線符号(16ビット)の特
性曲線と同じになる。
[Table 1] FIG. 7 is a characteristic diagram of a restored code obtained by decoding and expanding a compressed code using a polygonal line code. In the figure, the horizontal axis shows the input level, and the vertical axis shows the instantaneous S/N ratio. However, for the sake of simplicity, the instantaneous S/N ratio is omitted for the sake of simplicity, which is about 2 dB, which is the S/N ratio improvement of the rectangular wave. In the figure, Z1 indicates the characteristics of a 13-line code (12 bits). Z1 will be explained. The input level of 0 dB is based on the maximum amplitude of a sine wave that can be represented by a code. Linear code “P1111111111
11111" corresponds to this. In the input level range of 0dB to -6dB, the linear code is "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. Therefore, the instantaneous S/N ratio for an input level of 0 dB to -6 dB is 60 dB to 54 dB. Next, in the input level range of -6 dB to -12 dB, the linear code becomes "P01***...", and as shown in Table 1, since the run length L0 is "1", the resolution is 11 bits. The quantization noise for 11-bit data is -66 dB. Therefore, the instantaneous S/N ratio is between 60 dB and 54 dB. In the same manner, the instantaneous S/N ratio was obtained in the region up to -96 dB, and the characteristic curve was obtained as Z1. Here, at an input level of -36 dB or less, the characteristic curve is the same as that of a linear code (16 bits).

【発明が解決しようとする課題】しかしながら上記の従
来の方法では、瞬時S/N比が最良でも60dBしかな
く、さらに微小な入力レベルでは直線符号(16ビット
)と同様に瞬時S/N比が低下する。過大入力に対する
マージン(ヘッドルーム)確保が要求される業務用のデ
ジタル記録再生装置では、平均入力レベルを低く設定し
て記録するので実質的に利用するダイナミックレンジが
狭くなること、および、入力レベルのかなりの範囲で瞬
時S/N比が不十分となるので、増幅・減衰を繰り返す
編集では劣化が増大するといった問題を有している。 前述の通り、この問題は直線符号(16ビット)であっ
ても同様である。好ましくは、聴覚検知限界約48dB
以上の瞬時S/N比特性を入力レベル0ないし−96d
Bの広い範囲において満たすことが要求される。そのた
めの改良方法として、従来の13折れ線符号(12ビッ
ト)を16ビットに拡張する方法が容易に考えられる。 (表2)は直線符号(20ビット)から折れ線符号(1
6ビット)に変換する方法について示すものである。 (表2)において仮数データD2の語長が12になるの
で、全体に分解能が4ビット増加する。
[Problems to be Solved by the Invention] However, with the above conventional method, the instantaneous S/N ratio is only 60 dB at best, and at even smaller input levels, the instantaneous S/N ratio is as low as with linear codes (16 bits). descend. Professional digital recording and reproducing equipment, which requires a margin (headroom) against excessive input, records with a low average input level, which effectively narrows the dynamic range that can be used, and Since the instantaneous S/N ratio becomes insufficient over a considerable range, there is a problem in that editing in which amplification and attenuation are repeated increases deterioration. As mentioned above, this problem is the same even with linear codes (16 bits). Preferably, the hearing detection limit is about 48 dB.
Input level 0 to -96d
B is required to be satisfied over a wide range. As an improvement method for this purpose, a method of expanding the conventional 13-line code (12 bits) to 16 bits can be easily considered. (Table 2) ranges from linear code (20 bits) to polygonal code (1
6 bits). In Table 2, the word length of the mantissa data D2 becomes 12, so the overall resolution increases by 4 bits.

【表2】 (表2)に示す折れ線符号(16ビット)を用いて圧縮
符号を復号して伸長する復元符号の特性図は図7中のZ
2のようになる。この改良された方法では瞬時S/N比
が全領域で24dBだけ向上するが、入力レベル−72
dBないし−96dBの範囲では瞬時S/N比が48d
B以下であり不十分である。従って、この信号を増幅器
で増幅すれば、その量子化ノイズが聴覚検知されるとい
う問題を有している。本発明は上記従来の問題点を解決
するもので、入力レベル0ないし−96dBの広い範囲
において、瞬時S/N比の聴覚検知限界である約48d
B以上を確保することを目的とする。
[Table 2] The characteristic diagram of the restoration code that decodes and expands the compressed code using the polyline code (16 bits) shown in (Table 2) is Z in FIG.
It will be like 2. This improved method improves the instantaneous S/N ratio by 24 dB over the entire range, but at an input level of -72 dB.
In the range from dB to -96dB, the instantaneous S/N ratio is 48d.
It is below B and is insufficient. Therefore, if this signal is amplified by an amplifier, there is a problem in that the quantization noise is audibly detected. The present invention solves the above-mentioned conventional problems, and has an instantaneous S/N ratio of approximately 48 dB, which is the auditory detection limit in a wide range of input levels from 0 to -96 dB.
The aim is to secure a grade of B or higher.

【課題を解決するための手段】この目的を達成するため
に本発明のランレングス1/n圧縮フローティング符号
方法は、元データとなる直線符号すなわち、上位で所定
論理のビットが連続する連続データQ0と、前記連続デ
ータQ0の連続性をブレークする反転ビットT0と、前
記反転ビットT0以降の下位データD0とで構成される
直線符号を、符号化して圧縮データすなわち、前記連続
データQ0のランレングスを圧縮して得られる圧縮連続
データQ1と、前記圧縮連続データQ1の連続性をブレ
ークする反転ビットT1と、前記ランレングスを圧縮す
る時に生じる剰余F1を表す圧縮剰余データC1と、前
記下位データD0を丸めて得るようにした仮数データD
1とで構成する圧縮データに変換するようにしている。 ただし、前記連続データQ0のランレングスをL0、前
記圧縮連続データQ1のランレングスをL1、nを2以
上の整数とするとき、 L1=int(L0/n) F1=L0  mod  n とする。
[Means for Solving the Problems] In order to achieve this object, the run length 1/n compression floating code method of the present invention uses a straight line code as the original data, that is, continuous data Q0 in which bits of a predetermined logic are consecutive in the upper part. A linear code consisting of an inverted bit T0 that breaks the continuity of the continuous data Q0, and lower data D0 after the inverted bit T0 is encoded to obtain compressed data, that is, a run length of the continuous data Q0. Compressed continuous data Q1 obtained by compression, an inversion bit T1 that breaks the continuity of the compressed continuous data Q1, compressed residual data C1 representing the remainder F1 generated when compressing the run length, and the lower order data D0. Mantissa data D obtained by rounding
The data is converted into compressed data consisting of 1 and 1. However, when the run length of the continuous data Q0 is L0, the run length of the compressed continuous data Q1 is L1, and n is an integer of 2 or more, L1=int(L0/n) F1=L0 mod n.

【作用】本発明は上記した方法により、元データのラン
レングスL0を約1/nに圧縮する。圧縮したランレン
グスを有する圧縮連続データと反転ビットと圧縮剰余デ
ータとで指数部すなわちレンジを特定するものである。 指数部すなわちレンジは元データのランレングスに応じ
て自己拡張する作用を有する。すなわち、ランレングス
が小さい時は少ないビット数で指数部すなわちレンジを
特定し、ランレングスが大きくなると指数部すなわちレ
ンジを細分化していき、多くのビット数で指数部すなわ
ちレンジを特定する。また、符号全体の語長が有限で所
定の値とする場合、仮数部へ割り当てるビット数がラン
レングスに応じて変更される。これらの作用により、圧
縮符号の表現する空間が拡張され、また表現精度を最大
とすることができる。
[Operation] The present invention compresses the run length L0 of the original data to approximately 1/n by the method described above. The exponent part, that is, the range, is specified using compressed continuous data having a compressed run length, inverted bits, and compressed residual data. The exponent part, ie, the range, has the function of self-expanding according to the run length of the original data. That is, when the run length is small, the exponent part or range is specified using a small number of bits, and when the run length becomes large, the exponent part or range is subdivided, and the exponent part or range is specified using a large number of bits. Further, when the word length of the entire code is finite and set to a predetermined value, the number of bits allocated to the mantissa part is changed according to the run length. Through these effects, the space expressed by the compression code is expanded, and the expression precision can be maximized.

【実施例】以下、本発明の一実施例について、図面を参
照しながら説明する。図1(a)は本発明の第1の実施
例におけるランレングス1/2圧縮フローティング符号
の構成を示す概念図であり、図1(b)は変換処理を説
明するための具体例を表す図である。図中、従来例と同
様部分には同一記号を付与している。以下、図に従って
、まず圧縮(符号化)の手順について説明する。第1の
実施例は直線符号(30ビット)をランレングス1/2
圧縮フローティング符号(16ビット)に圧縮伸長する
符号方法である。圧縮連続データQ1は連続データQ0
のランレングスL0を2で除算して整数化したランレン
グスL1の長さを有する連続データである。すなわち、 L1=int(L0/2) である。また、整数除算の剰余項を圧縮剰余F1とする
と、 F1=L0  mod  2 である。反転ビットT1は圧縮連続データQ1のランを
ブレークする反転ビットである。圧縮剰余データC1は
圧縮剰余F1を補数表現したものである。また、仮数デ
ータD1はデータD0の上位の部分データである。ラン
レングス1/2圧縮フローティング符号は、極性ビット
P、圧縮連続データQ1、反転ビットT1、圧縮剰余デ
ータC1、仮数データD1の順に配置する。以下、図1
(b)に基づいてランレングスL0が「0」ないし「2
8」の場合について説明する。 L0=0の時、L1,F1は、 L1=int(0/2)=0 F1=0  mod  2  =0 である。ランレングスL1が「0」であるので圧縮連続
データQ1は無い。圧縮剰余データC1は「1」である
。データD0は30ビットで、その内の上位13ビット
「ABCDEFGHIJKLM」が仮数データD1であ
る。ランレングス1/2圧縮フローティング符号は極性
ビットP、反転ビットT1、圧縮剰余データC1および
仮数データD1をこの順に配置して、「P11ABCD
EFGHIJKLM」である。同様にして以下を求める
。 L0=1の時、 L1=int(1/2)=0 F1=1  mod  2  =1 より、圧縮連続データQ1は無く、圧縮剰余データC1
は「0」である。データD0の上位13ビット「ABC
DEFGHIJKLM」が仮数データD1である。ラン
レングス1/2圧縮フローティング符号は「P10AB
CDEFGHIJKLM」である。 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」である。 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」である。また、L0=20
の時、 L1=int(20/2)=10 F1=20  mod  2  =0 より、連続データQ1は「0000000000」であ
り、圧縮剰余データC1は「1」である。データD0の
上位3ビット「ABC」が仮数データD1である。従っ
て、ランレングス1/2圧縮フローティング符号は「P
000000000011ABC」である。さらに、L
0=28の時、 L1=int(28/2)=14 F1=28  mod  2  =0 より、連続データQ1は「0000000000000
0」であり、圧縮剰余データC1は「1」である。デー
タD0はなく、仮数データD1もない。従って、ランレ
ングス1/2圧縮フローティング符号は「P00000
0000000001」である。このようにして、直線
符号(30ビット)をランレングス1/2圧縮フローテ
ィング符号(16ビット)に圧縮する。次に、伸長(復
号化)の手順について説明する。復号化の手順は、圧縮
データから極性ビットPを除き、圧縮連続データQ1と
反転ビットT1からランレングスL1を得る。また、反
転ビットT1の直後にある圧縮剰余データC1(1ビッ
ト)と仮数データD1を得る。圧縮剰余データC1を反
転した圧縮剰余F1を得る。これらより、元データの連
続データQ0のランレングスL0は、 L0=2*L1+F1 から求める。連続データQ0はランレングスL0の長さ
の「0」を連ねて復元する。連続データQ0の後に反転
ビットT0を付け、その後に仮数データD1を付加する
。極性ビットPを先頭に付けて元データとするが、この
符号長がW0に満たない時は仮数データD1の下位に固
定値を充てて符号長をW0にする。この手順に従って、
復号化の処理を行う。以下に、図1(b)を参照しなが
らランレングスL1のいくつかの場合について具体的に
説明する。 L1=0かつF1=0の時、 L0=2*0+0=0 であるから、連続データQ0は無い。仮数データD1は
13ビットで「ABCDEFGHIJKLM」である。 このとき、元データは、極性ビットP、反転ビットT0
および仮数データD1をならべて、「P1ABCDEF
GHIJKLM***************」とな
る。なお、「***・・・」は固定値「011・・・」
を充てるものとする。以下同様に、L1=10かつF1
=0の時、 L0=2*10+0=20 であるから、連続データQ0は「0000000000
0000000000」、また仮数データD1は「AB
C」である。このとき、元データは、極性ビットP、連
続データQ0、反転ビットT0および仮数データD1を
ならべて、「P000000000000000000
001ABC*****」となる。このようにして、ラ
ンレングス1/2圧縮フローティング符号(16ビット
)から直線符号(30ビット)を復号化して伸長する。 以上と同様にして、全ての場合についてまとめた結果を
(表3)に示す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1(a) is a conceptual diagram showing the structure of a run-length 1/2 compression floating code in the first embodiment of the present invention, and FIG. 1(b) is a diagram showing a specific example for explaining the conversion process. It is. In the figure, parts similar to those of the conventional example are given the same symbols. Hereinafter, the compression (encoding) procedure will be described first with reference to the figures. The first embodiment uses a straight line code (30 bits) with a run length of 1/2.
This is a coding method that compresses and expands into a compressed floating code (16 bits). Compressed continuous data Q1 is continuous data Q0
This is continuous data having a run length L1, which is obtained by dividing the run length L0 by 2 and converting it into an integer. That is, L1=int(L0/2). Further, if the remainder term of integer division is the compression remainder F1, then F1=L0 mod 2 . The inversion bit T1 is an inversion bit that breaks the run of the compressed continuous data Q1. The compression remainder data C1 is the 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, inversion bit T1, compressed remainder data C1, and mantissa data D1. Below, Figure 1
Based on (b), the run length L0 is “0” to “2”.
8" will be explained. When L0=0, L1 and F1 are as follows: L1=int(0/2)=0 F1=0 mod 2 =0. Since the run length L1 is "0", there is no compressed continuous data Q1. The compressed residual data C1 is "1". Data D0 has 30 bits, of which the upper 13 bits "ABCDEFGHIJKLM" are mantissa data D1. A run-length 1/2 compressed floating code is created by arranging the polarity bit P, inversion bit T1, compressed remainder data C1, and mantissa data D1 in this order.
EFGHIJKLM”. Similarly, find the following. When L0 = 1, L1 = int (1/2) = 0 F1 = 1 mod 2 = 1, so there is no compressed continuous data Q1, and 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 compressed floating code is “P10AB
CDEFGHIJKLM”. When L0=2, L1=int(2/2)=1 F1=2 mod 2 =0 Therefore, the continuous data Q1 is "0" and the compressed residual data C1 is "1". The upper 12 bits of data D0 “A
"BCDEFGHIJKL" is the mantissa data D1. The run length 1/2 compressed floating code is “P011
ABCDEFGHIJKL”. When L0=3, since L1=int(3/2)=1 F1=3 mod 2 =1, the continuous data Q1 is "0" and the compressed residual data C1 is "0". The upper 12 bits of data D0 “A
"BCDEFGHIJKL" is the mantissa data D1. The run length 1/2 compressed floating code is “P010
ABCDEFGHIJKL”. Also, L0=20
When L1=int(20/2)=10 F1=20 mod 2 =0, the continuous data Q1 is "0000000000" and the compressed residual data C1 is "1". The upper three bits "ABC" of data D0 are mantissa data D1. Therefore, the run-length 1/2 compressed floating code is “P
000000000011ABC”. Furthermore, L
When 0=28, L1=int(28/2)=14 F1=28 mod 2 =0, so continuous data Q1 is “0000000000000
0", and the compressed residual data C1 is "1". There is no data D0 and no mantissa data D1. Therefore, the run length 1/2 compressed floating code is “P00000
0000000001”. In this way, a straight line code (30 bits) is compressed into a run length 1/2 compressed floating code (16 bits). Next, the decompression (decoding) procedure will be explained. In the decoding procedure, the polarity bit P is removed from the compressed data, and the run length L1 is obtained from the compressed continuous data Q1 and the inverted bit T1. Furthermore, compressed remainder data C1 (1 bit) and mantissa data D1 immediately after the inversion bit T1 are obtained. A compression remainder F1 is obtained by inverting the compression remainder data C1. From these, the run length L0 of the continuous data Q0 of the original data is obtained from L0=2*L1+F1. Continuous data Q0 is restored by concatenating "0"s having a length of run length L0. An inverted bit T0 is added after continuous data Q0, and mantissa data D1 is added after that. A polarity bit P is added to the beginning to form the original data, but if this code length is less than W0, a fixed value is assigned to the lower part of the mantissa data D1 to make the code length W0. Follow these steps:
Performs decryption processing. Below, some cases of the run length L1 will be specifically explained with reference to FIG. 1(b). When L1=0 and F1=0, since L0=2*0+0=0, there is no continuous data Q0. The mantissa data D1 has 13 bits and is "ABCDEFGHIJKLM". At this time, the original data has a polarity bit P, an inversion bit T0
and mantissa data D1, "P1ABCDEF
GHIJKLM***************". In addition, "***..." is a fixed value "011..."
shall be allocated. Similarly, L1=10 and F1
When =0, L0=2*10+0=20, so the continuous data Q0 is "0000000000"
0000000000”, and the mantissa data D1 is “AB
C”. At this time, the original data is ``P000000000000000000'' by arranging the polarity bit P, continuous data Q0, inverted bit T0, and mantissa data D1.
001ABC*****”. In this way, a linear code (30 bits) is decoded and expanded from a run-length 1/2 compressed floating code (16 bits). In the same manner as above, the results summarized for all cases are shown in (Table 3).

【表3】 (表3)において、直線符号(30ビット)は折り返し
2進符号であり、フローティング符号は折り返し型のラ
ンレングス1/2圧縮フローティング符号である。ラン
レングスL0、ランレングスL1および分解能の欄は1
0進数である。圧縮符号を復号して伸長した復元符号の
表現精度すなわち分解能は、直線符号における直線符号
の丸め精度で決定され、ランレングスL0によって変化
する。(表3)より、第1の実施例によれば最高30ビ
ットないし15ビットの精度が得られる。ここで、直線
符号を入力として、ランレングス1/2圧縮フローティ
ング符号を用いて圧縮符号化し、この符号を復号して伸
長した復元符号を出力する場合の瞬時S/N比について
説明する。ただし、簡単のため瞬時S/N比は矩形波の
S/N比向上分(約2dB)を省略する。入力レベルは
符号で表現できる最大の正弦波の振幅を基準(0dB)
にする。直線符号の「P1111・・・」がこれに相当
する。入力レベル0dBないし−6dBの範囲は、直線
符号で「P1ABC・・・」であり、(表3)より分解
能は15ビットである。15ビットデータの量子化ノイ
ズは1ビット当り−6dBとして−90dBになる。従
って、入力レベル0dBないし−6dBの領域で瞬時S
/N比は90dBないし84dBとなる。入力レベル−
6dBないし−18dBの範囲では直線符号で「P01
ABC・・・」または「P001ABC・・・」となり
、(表3)より分解能は16ビットである。16ビット
データの量子化ノイズは−96dBであるので、瞬時S
/N比は90dBないし78dBとなる。入力レベル−
18dBないし−30dBの範囲では直線符号で「P0
001ABC・・・」または「P00001ABC・・
・」となり、(表3)より分解能は17ビットである。 17ビットデータの量子化ノイズは−102dBである
ので、瞬時S/N比は84dBないし72dBとなる。 以下同様に、−180dBまでの入力レベル領域で瞬時
S/N比を求める。図3はランレングス1/2圧縮フロ
ーティング符号を用いた圧縮符号を復号して伸長した復
元符号の瞬時S/N比特性図である。同図の横軸に入力
レベル、縦軸に瞬時S/N比を示す。同図の特性曲線X
1は(表3)に示すランレングス1/2圧縮フローティ
ング符号の瞬時S/N比を表すものである。図より特性
曲線X1は、入力レベル0dBないし−96dBの範囲
で瞬時S/N比の聴覚検知限界48dBをほぼ上回って
いると言える。従来の直線符号(16ビット)に比べ、
入力レベル−96dBのところで約42dBもの瞬時S
/N比改善が達成される。瞬時S/N比の改善は入力レ
ベル−18dBから−180dBの広範囲にわたり作用
する。入力レベル0dBから−6dBの範囲で瞬時S/
N比が劣化するが、高々6dBの劣化であり、なお90
dBないし84dBの瞬時S/N比を有する。この領域
はマージンとして留保し、通常は殆ど使用しない範囲で
あるので、全く問題とならない。また、図7の特性曲線
Z2に示す折れ線符号(16ビット)との比較において
も、入力レベル0dBから−12dBの範囲で6dBの
改善があり、しかも−96dBでは18dBの改善が得
られる。このように第1の実施例によれば、微小レベル
の信号を増幅しても、入力レベル−96dBまでの広い
範囲にわたって量子化ノイズを聴覚検知限より小さくす
ることができる。従って、十分にヘッドルームを確保し
て録音レベルを設定でき、後の編集で任意に増幅できる
。また、微小レベルの信号に発生する固有スペクトルの
量子化ノイズの問題を改善するために、白色雑音(ディ
ザ)を付加してノイズスペクトルを分散させるなどの処
理を無くすことができる。現在の技術では入力レベル0
dBから−180dBもの広範囲な信号を増幅したり、
AD変換器でデジタル化することは困難であるが、高温
超伝導を利用する機能素子や回路技術の将来の発展によ
り、本発明の効果が最大限に発揮できるようになる。な
お、(表3)においてランレングス1/2圧縮フローテ
ィング符号の増加特性を考察する。第1の実施例では圧
縮剰余データC1を圧縮剰余F1の補数としたことによ
り、レンジの境界では上位のレンジの数値の方が下位の
レンジよりも必ず大きい。従って、第1の実施例のラン
レングス1/2圧縮フローティング符号は単調増加特性
を有する。仮に圧縮データを直線符号(16ビット)と
誤って再生することがあっても、単調増加特性であれば
レベルの逆転やジャンプを起こさないので有利である。 この作用は、圧縮剰余データC1を圧縮剰余F1の補数
としたことによるが、必ずしも補数とする必要は無く他
の表現であってもよい。前述したように、現在の技術で
は入力レベル0dBから−180dBもの広範囲な信号
を増幅したり、AD変換器でデジタル化することは困難
である。そこで、直線符号を30ビット用意することが
できない場合、直線符号の短縮を行っても良い。(表4
)は直線符号(28ビット)をランレングス1/2圧縮
フローティング符号(16ビット)に圧縮伸長する符号
復号方法について表すものである。
Table 3 In Table 3, the linear code (30 bits) is a folded binary code, and the floating code is a folded run length 1/2 compressed floating code. Run length L0, run length L1 and resolution columns are 1
It is a 0-base number. The expression accuracy, that is, the resolution of the restored code obtained by decoding and expanding the compressed code is determined by the rounding accuracy of the linear code, and changes depending on the run length L0. As shown in Table 3, according to the first embodiment, a maximum accuracy of 30 bits to 15 bits can be obtained. Here, a description will be given of the instantaneous S/N ratio when a linear code is input, compressed and encoded using a run-length 1/2 compression floating code, and this code is decoded to output a decompressed restored code. However, for simplicity, the instantaneous S/N ratio omits the S/N ratio improvement (approximately 2 dB) of the rectangular wave. The input level is based on the maximum amplitude of the sine wave that can be represented by a sign (0 dB)
Make it. The straight line code "P1111..." corresponds to this. The range of the input level from 0 dB to -6 dB is represented by "P1ABC..." in linear code, and the resolution is 15 bits from (Table 3). The quantization noise of 15-bit data is -90 dB, assuming -6 dB per bit. Therefore, in the input level range of 0dB to -6dB, instantaneous S
/N ratio is 90 dB to 84 dB. Input level -
In the range of 6 dB to -18 dB, the linear code “P01
ABC..." or "P001ABC...", and from (Table 3), the resolution is 16 bits. Since the quantization noise of 16-bit data is -96 dB, the instantaneous S
/N ratio is 90dB to 78dB. Input level -
In the range of 18 dB to -30 dB, the linear sign “P0
001ABC..." or "P00001ABC...
.'' According to (Table 3), the resolution is 17 bits. Since the quantization noise of 17-bit data is -102 dB, the instantaneous S/N ratio is 84 dB to 72 dB. Similarly, instantaneous S/N ratios are obtained in the input level range up to -180 dB. FIG. 3 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. In the figure, the horizontal axis shows the input level, and the vertical axis shows the instantaneous S/N ratio. Characteristic curve X in the same figure
1 represents the instantaneous S/N ratio of the run length 1/2 compressed floating code shown in (Table 3). From the figure, it can be said that the characteristic curve X1 almost exceeds the auditory detection limit of 48 dB for the instantaneous S/N ratio in the input level range of 0 dB to -96 dB. Compared to the conventional linear code (16 bits),
Instantaneous S of about 42 dB at input level -96 dB
/N ratio improvement is achieved. The instantaneous S/N ratio improvement works over a wide range of input levels from -18 dB to -180 dB. Instantaneous S/ in the range of input level 0dB to -6dB
The N ratio deteriorates, but the deterioration is at most 6 dB, and it is still 90 dB.
It has an instantaneous S/N ratio of dB to 84 dB. This area is reserved as a margin and is usually rarely used, so it poses no problem at all. Also, in comparison with the polygonal code (16 bits) shown in the characteristic curve Z2 of FIG. 7, there is an improvement of 6 dB in the input level range of 0 dB to -12 dB, and an improvement of 18 dB at -96 dB. As described above, according to the first embodiment, even if a minute level signal is amplified, the quantization noise can be made smaller than the auditory detection limit over a wide range up to the input level of -96 dB. Therefore, the recording level can be set with sufficient headroom, and the recording level can be amplified arbitrarily in later editing. Further, in order to improve the problem of quantization noise of the characteristic spectrum that occurs in a minute level signal, it is possible to eliminate processing such as adding white noise (dither) to disperse the noise spectrum. Input level 0 with current technology
Amplify a wide range of signals from dB to -180dB,
Although it is difficult to digitize with an AD converter, the effects of the present invention will be maximized with the future development of functional elements and circuit technology that utilize high-temperature superconductivity. In addition, in (Table 3), the increase characteristics of the run length 1/2 compression floating code will be considered. In the first embodiment, by using the compressed remainder data C1 as the complement of the compressed remainder F1, the numerical value in the upper range is always larger than the lower range at the boundary of the ranges. Therefore, the run length 1/2 compressed floating code of the first embodiment has a monotonically increasing characteristic. Even if compressed data is mistakenly reproduced as a linear code (16 bits), the monotonically increasing characteristic is advantageous because it will not cause level reversals or jumps. This effect is due to the compression remainder data C1 being the complement of the compression remainder F1, but it is not necessarily necessary to use the complement and other expressions may be used. As mentioned above, with the current technology, it is difficult to amplify a signal with a wide range of input levels from 0 dB to -180 dB or to digitize it with an AD converter. Therefore, if a 30-bit linear code cannot be prepared, the linear code may be shortened. (Table 4
) represents a code decoding method for compressing and expanding a linear code (28 bits) into a run length 1/2 compressed floating code (16 bits).

【表4】 この場合、ランレングスL0を最大26で打ち切る。ラ
ンレングスL0=26の時、反転ビットT0を省略し、
残り部分のデータをD0とする。符号化は同様にするが
、圧縮剰余データC1を省略してその代わりに仮数デー
タD1すなわちD0を配置する。ランレングスL0の打
ち切りによって、瞬時S/N比特性は図3における特性
曲線X2となる。入力レベル−162dBから0dBの
範囲では同図のX1と同一である。また、全く同様に、
直線符号を24ビットに短縮を行っても良い。(表5)
は直線符号(24ビット)をランレングス1/2圧縮フ
ローティング符号(16ビット)に圧縮伸長する符号復
号方法について表すものである。
[Table 4] In this case, the run length L0 is truncated at a maximum of 26. When run length L0=26, inversion bit T0 is omitted,
Let the remaining data be D0. Encoding is performed in the same manner, but the compressed remainder data C1 is omitted and mantissa data D1, that is, D0 is placed in its place. By truncating the run length L0, the instantaneous S/N ratio characteristic becomes a characteristic curve X2 in FIG. 3. The input level range from -162 dB to 0 dB is the same as X1 in the figure. Also, in exactly the same way,
The linear code may be shortened to 24 bits. (Table 5)
represents a code decoding method for compressing and expanding a straight line code (24 bits) into a run length 1/2 compressed floating code (16 bits).

【表5】 この場合、ランレングスL0を最大「18」で打ち切る
。ランレングスL0=18の時、反転ビットT0を省略
し、残り部分のデータをD0とする。符号化は同様にす
るが、ランレングスL1は最大値が「9」であることが
判っているので、反転ビットT1は何であっても良い。 さらに、圧縮剰余データC1を省略してその代わりに仮
数データD1すなわちD0を配置する。ランレングスL
0の打ち切りによって、瞬時S/N比特性は図3におけ
る特性曲線X3となる。入力レベル−114dBから0
dBの範囲では同図のX1と同一である。以上述べた特
性曲線X1,X2,X3の何れであっても、入力レベル
0dBから−96dBまでの範囲で瞬時S/N比の聴覚
検知限界をほぼクリアできる。次に、本発明の第2の実
施例について、図面を参照しながら説明する。図2(a
)は本発明の第2の実施例におけるランレングス1/4
圧縮フローティング符号の構成を示す概念図であり、図
2(b)は変換処理を説明するための具体例を表す図で
ある。図中、従来例と同様部分には同一記号を付与して
いる。以下、図に従って、まず圧縮(符号化)の手順に
ついて説明する。第2の実施例は直線符号(32ビット
)をランレングス1/4圧縮フローティング符号(16
ビット)に圧縮伸長する符号方法である。圧縮連続デー
タQ1は連続データQ0のランレングスL0を「4」で
除算して整数化したランレングスL1の長さを有する連
続データである。 L1=int(L0/4) また、整数除算の剰余項を圧縮剰余F1とすると、F1
=L0  mod  4 である。反転ビットT1は圧縮連続データQ1のランレ
ングスをブレークする反転ビットである。圧縮剰余デー
タC1は圧縮剰余F1を補数表現するものである。また
、仮数データD1はデータD0の上位側の部分データで
ある。ランレングス1/4圧縮フローティング符号は、
極性ビットP、圧縮連続データQ1、反転ビットT1、
圧縮剰余データC1、仮数データD1の順に配置する。 以下、図2(b)に基づいてランレングスL0が「0」
ないし「28」の場合について説明する。 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」である。 以下同様に、L0=1の時、 L1=int(1/4)=0 F1=1  mod  4  =1 より、圧縮連続データQ1は無く、圧縮剰余データC1
は「10」である。データD0の上位12ビット「AB
CDEFGHIJKL」が仮数データD1である。ラン
レングス1/4圧縮フローティング符号は「P110A
BCDEFGHIJKL」である。 L0=3の時、 L1=int(3/4)=0 F1=3  mod  4  =3 より、連続データQ1は「0」であり、圧縮剰余データ
C1は「00」である。データD0の上位12ビット「
ABCDEFGHIJKL」が仮数データD1である。 ランレングス1/4圧縮フローティング符号は「P10
0ABCDEFGHIJKL」である。 また、L0=20の時、 L1=int(20/4)=5 F1=20  mod  4  =0 より、連続データQ1は「00000」であり、圧縮剰
余データC1は「11」である。データD0の上位7ビ
ット「ABCDEFG」が仮数データD1である。従っ
て、ランレングス1/4圧縮フローティング符号は「P
00000111ABCDEFG」である。 さらに、L0=23の時、 L1=int(23/4)=5 F1=23  mod  4  =3 より、連続データQ1は「00000」であり、圧縮剰
余データC1は「00」である。データD0の上位7ビ
ット「ABCDEFG」が仮数データD1である。従っ
て、ランレングス1/4圧縮フローティング符号は「P
00000100ABCDEFG」である。このように
して、直線符号(32ビット)をランレングス1/4圧
縮フローティング符号(16ビット)に圧縮する。次に
、伸長(復号化)の手順について説明する。復号化の手
順は、圧縮データから極性ビットPを除き、圧縮連続デ
ータQ1と反転ビットT1からランレングスL1を得る
。また、反転ビットT1の直後にある圧縮剰余データC
1(2ビット)と仮数データD1を得る。圧縮剰余デー
タC1を反転した圧縮剰余F1を得る。これらより、元
データの連続データQ0のランレングスL0は、L0=
4*L1+F1 から求める。連続データQ0はランレングスL0の長さ
の「0」を連ねて復元する。連続データQ0の後に反転
ビットT0を付け、その後に仮数データD1を付加する
。極性ビットPを先頭に付けて元データとするが、この
符号長がW0に満たない時は仮数データD1の下位に固
定値を充てて符号長をW0にする。この手順に従って、
復号化の処理を行う。以下に、図2(b)を参照しなが
らランレングスL1のいくつかの場合について具体的に
説明する。 L1=0かつF1=0の時、 L0=4*0+0=0 であるから、連続データQ0は無い。仮数データD1は
12ビットで「ABCDEFGHIJKL」である。こ
のとき、元データは、極性ビットP、反転ビットT0お
よび仮数データD1をならべて、「P1ABCDEFG
HIJKL***************」となる。 なお、「***・・・」は固定値「1000・・・」を
充てるものとする。 以下同様に、L1=5かつF1=0の時、L0=4*5
+0=20 であるから、連続データQ0は「0000000000
0000000000」、また仮数データD1は「AB
CDEFG」である。このとき、元データは、極性ビッ
トP、連続データQ0、反転ビットT0および仮数デー
タD1をならべて、「P00000000000000
0000001ABCDEFG***」となる。このよ
うにして、ランレングス1/4圧縮フローティング符号
(16ビット)から直線符号(32ビット)を復号化し
て伸長する。以上と同様にして、全ての場合についてま
とめた結果を(表6)に示す。
[Table 5] In this case, the run length L0 is cut off at the maximum of "18". When the run length L0=18, the inversion bit T0 is omitted and the remaining data is set as D0. The encoding is done in the same way, but since it is known that the maximum value of the run length L1 is "9", the inversion bit T1 can be anything. Further, the compressed remainder data C1 is omitted and mantissa data D1, that is, D0 is arranged in its place. Run length L
By truncating at 0, the instantaneous S/N ratio characteristic becomes a characteristic curve X3 in FIG. Input level -114dB to 0
In the dB range, it is the same as X1 in the same figure. Any of the characteristic curves X1, X2, and X3 described above can almost clear the auditory detection limit of the instantaneous S/N ratio within the input level range of 0 dB to -96 dB. Next, a second embodiment of the present invention will be described with reference to the drawings. Figure 2 (a
) is the run length 1/4 in the second embodiment of the present invention
It is a conceptual diagram showing the structure of a compressed floating code, and FIG. 2(b) is a diagram showing a specific example for explaining the conversion process. In the figure, parts similar to those of the conventional example are given the same symbols. Hereinafter, the compression (encoding) procedure will be described first with reference to the figures. The second embodiment converts a linear code (32 bits) into a run length 1/4 compressed floating code (16 bits).
This is a coding method that compresses and expands the data into bits. The compressed continuous data Q1 is continuous data having a length of a run length L1 obtained by dividing the run length L0 of the continuous data Q0 by "4" and converting it into an integer. L1=int(L0/4) Also, if the remainder term of integer division is the compression remainder F1, then F1
= L0 mod 4. The inversion bit T1 is an inversion bit that breaks the run length of the compressed continuous data Q1. The compression remainder data C1 is a complement representation of the compression remainder F1. Further, the mantissa data D1 is partial data on the upper side of the data D0. The run length 1/4 compressed floating code is
Polarity bit P, compressed continuous data Q1, inversion bit T1,
The compressed remainder data C1 and the mantissa data D1 are arranged in this order. Hereinafter, the run length L0 is "0" based on FIG. 2(b).
The case of "28" to "28" will be explained. When L0=0, L1=int(0/4)=0 F1=0 mod 4 =0 Since the run length L1 is "0", there is no compressed continuous data Q1. The compressed residual data C1 is "11". Data D0 has 30 bits, of which the upper 12 bits "ABCDEFGHIJKL" are mantissa data D1. A run-length 1/4 compressed floating code has a polarity bit P, an inversion bit T1, a compressed remainder data C1, and a mantissa data D1 arranged in this order.
DEFGHIJKL”. Similarly, when L0 = 1, L1 = int (1/4) = 0 F1 = 1 mod 4 = 1, so there is no compressed continuous data Q1, and compressed residual data C1
is "10". The upper 12 bits of data D0 “AB
"CDEFGHIJKL" is the mantissa data D1. The run length 1/4 compressed floating code is “P110A
BCDEFGHIJKL”. When L0=3, since L1=int(3/4)=0 F1=3 mod 4 =3, the continuous data Q1 is "0" and the compressed residual data C1 is "00". The upper 12 bits of data D0
ABCDEFGHIJKL” is the mantissa data D1. The run length 1/4 compressed floating code is “P10
0ABCDEFGHIJKL”. Furthermore, when L0=20, L1=int(20/4)=5 F1=20 mod 4 =0, so the continuous data Q1 is "00000" and the compressed residual data C1 is "11". The upper 7 bits "ABCDEFG" of data D0 are mantissa data D1. Therefore, the run-length 1/4 compressed floating code is “P
00000111ABCDEFG”. Furthermore, when L0=23, since L1=int(23/4)=5 F1=23 mod 4 =3, the continuous data Q1 is "00000" and the compressed residual data C1 is "00". The upper 7 bits "ABCDEFG" of data D0 are mantissa data D1. Therefore, the run-length 1/4 compressed floating code is “P
00000100ABCDEFG”. In this way, a straight line code (32 bits) is compressed into a run length 1/4 compressed floating code (16 bits). Next, the decompression (decoding) procedure will be explained. In the decoding procedure, the polarity bit P is removed from the compressed data, and the run length L1 is obtained from the compressed continuous data Q1 and the inverted bit T1. Also, the compressed residual data C immediately after the inversion bit T1
1 (2 bits) and mantissa data D1 are obtained. A compression remainder F1 is obtained by inverting the compression remainder data C1. From these, the run length L0 of continuous data Q0 of the original data is L0=
Calculate from 4*L1+F1. Continuous data Q0 is restored by concatenating "0"s having a length of run length L0. An inverted bit T0 is added after continuous data Q0, and mantissa data D1 is added after that. A polarity bit P is added to the beginning to form the original data, but if this code length is less than W0, a fixed value is assigned to the lower part of the mantissa data D1 to make the code length W0. Follow these steps:
Performs decryption processing. Below, some cases of the run length L1 will be specifically explained with reference to FIG. 2(b). 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, the original data is "P1ABCDEFG" by arranging the polarity bit P, inversion bit T0, and mantissa data D1.
HIJKL***************". It is assumed that "***..." is assigned a fixed value "1000...". Similarly, when L1=5 and F1=0, L0=4*5
+0=20, so the continuous data Q0 is “0000000000
0000000000”, and the mantissa data D1 is “AB
CDEFG”. At this time, the original data is ``P00000000000000'' by arranging the polarity bit P, continuous data Q0, inverted bit T0, and mantissa data D1.
0000001ABCDEFG****”. In this way, a linear code (32 bits) is decoded and expanded from a run-length 1/4 compressed floating code (16 bits). In the same manner as above, the results summarized for all cases are shown in (Table 6).

【表6】 (表6)より、本実施例によれば最高32ビットないし
14ビットの精度が得られる。ここで、直線符号を入力
として、ランレングス1/4圧縮フローティング符号を
用いて圧縮符号化し、この符号を復号して伸長した復元
符号を出力する場合の瞬時S/N比について説明する。 入力レベル0dBないし−6dBの範囲は、直線符号で
「P1ABC・・・」であり、(表6)より分解能は1
4ビットである。14ビットデータの量子化ノイズは1
ビット当り−6dBとして−84dBになる。従って、
入力レベル0dBないし−6dBの領域で、瞬時S/N
比は84dBないし78dBとなる。入力レベル−6d
Bないし−12dBの範囲では直線符号で「P01AB
C・・・」であり、(表6)より分解能は15ビットで
ある。15ビットデータの量子化ノイズは−90dBで
あるので、瞬時S/N比は84dBないし78dBとな
る。入力レベル−12dBないし−18dBの範囲では
直線符号で「P001ABC・・・」であり、(表6)
より分解能は16ビットである。16ビットデータの量
子化ノイズは−96dBであるので、瞬時S/N比は8
4dBないし78dBとなる。入力レベル−18dBな
いし−30dBの範囲では直線符号で「P0001AB
C・・・」または「P00001ABC・・・」となり
、(表6)より分解能は17ビットである。17ビット
データの量子化ノイズは−102dBであるので、瞬時
S/N比は84dBないし72dBとなる。以下同様に
、−180dBまでの入力レベル領域で瞬時S/N比を
求める。図4はランレングス1/4圧縮フローティング
符号を用いた圧縮符号を復号して伸長した復元符号の瞬
時S/N比特性図である。同図の横軸に入力レベル、縦
軸に瞬時S/N比を示す。同図の特性曲線Y1は(表6
)に示すランレングス1/4圧縮フローティング符号の
瞬時S/N比を表すものである。図より明らかに特性曲
線Y1は、入力レベル0dBないし−96dBの範囲で
瞬時S/N比の聴覚検知限界48dBを上回っている。 従来の直線符号(16ビット)に比べ入力レベル−96
dBのところで約60dBもの瞬時S/N比改善が達成
される。瞬時S/N比の改善は入力レベル−18dBか
ら−196dBの広範囲にわたり作用する。入力レベル
0dBから−12dBの範囲で瞬時S/N比が劣化する
が、高々12dBの劣化であり、なお84dBないし7
8dBの瞬時S/N比を有する。この領域はマージンと
して通常はあまり使用しない範囲であるので、全く問題
とならない。また、図7の特性曲線Z2に示す折れ線符
号(16ビット)との比較においても、入力レベル−5
4dBから−196dBの範囲で改善があり、−96d
Bでは36dBの改善が得られる。このように第2の実
施例によれば、第1の実施例よりもさらに微小な入力レ
ベル−144dBの信号を増幅しても、量子化ノイズを
聴覚検知することが全く無くなる。従って、十分にヘッ
ドルームを確保して録音レベルを設定でき、後の編集で
任意に増幅できる。 (表7)は直線符号(29ビット)をランレングス1/
4圧縮フローティング符号(16ビット)に圧縮伸長す
る符号復号方法について表すものである。
[Table 6] According to Table 6, according to this embodiment, a maximum precision of 32 bits to 14 bits can be obtained. Here, a description will be given of the instantaneous S/N ratio when a linear code is input, compressed and encoded using a run-length 1/4 compression floating code, and this code is decoded to output a decompressed restored code. The input level range from 0 dB to -6 dB is represented by the linear code "P1ABC...", and from (Table 6) the resolution is 1.
It is 4 bits. The quantization noise of 14-bit data is 1
Assuming -6 dB per bit, it becomes -84 dB. Therefore,
Instantaneous S/N in input level range 0dB to -6dB
The ratio will be 84dB to 78dB. Input level -6d
In the range from B to -12 dB, the linear code “P01AB
C...'', and from (Table 6), the resolution is 15 bits. Since the quantization noise of 15-bit data is -90 dB, the instantaneous S/N ratio is 84 dB to 78 dB. In the input level range of -12dB to -18dB, the linear code is "P001ABC..." (Table 6)
The resolution is 16 bits. Since the quantization noise of 16-bit data is -96 dB, the instantaneous S/N ratio is 8.
It becomes 4dB to 78dB. In the input level range of -18 dB to -30 dB, the linear code “P0001AB
C..." or "P00001ABC...", and from (Table 6), the resolution is 17 bits. Since the quantization noise of 17-bit data is -102 dB, the instantaneous S/N ratio is 84 dB to 72 dB. Similarly, instantaneous S/N ratios are obtained in the input level range up to -180 dB. FIG. 4 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 compression floating code. In the figure, the horizontal axis shows the input level, and the vertical axis shows the instantaneous S/N ratio. The characteristic curve Y1 in the same figure is (Table 6
) represents the instantaneous S/N ratio of the run-length 1/4 compressed floating code. It is clear from the figure that the characteristic curve Y1 exceeds the auditory detection limit of 48 dB for the instantaneous S/N ratio in the input level range of 0 dB to -96 dB. Input level -96 compared to conventional linear code (16 bits)
An instantaneous S/N ratio improvement of about 60 dB in dB is achieved. The instantaneous S/N ratio improvement works over a wide range of input levels from -18 dB to -196 dB. The instantaneous S/N ratio deteriorates in the input level range of 0 dB to -12 dB, but the deterioration is 12 dB at most, and still 84 dB to 7 dB.
It has an instantaneous S/N ratio of 8 dB. Since this area is not normally used as a margin, it poses no problem at all. Also, in comparison with the polygonal code (16 bits) shown in the characteristic curve Z2 in FIG.
The improvement ranged from 4 dB to -196 dB, with -96 d
In B, an improvement of 36 dB is obtained. As described above, according to the second embodiment, even if a signal with an input level of −144 dB, which is even smaller than that in the first embodiment, is amplified, the quantization noise is not audibly detected at all. Therefore, the recording level can be set with sufficient headroom, and the recording level can be amplified arbitrarily in later editing. (Table 7) is a straight line code (29 bits) with a run length of 1/
This is a code decoding method for compressing and expanding a 4-compression floating code (16 bits).

【表7】 この場合ランレングスL0を最大「20」で打ち切る。 ランレングスL0=20の時、反転ビットT0を省略し
、残り部分のデータをD0とする。符号化は同様にする
が、ランレングスL1は最大値が「5」であることが判
っているので、反転ビットT1を省略する。また、圧縮
剰余データC1は何であっても良い。ランレングスL0
の打ち切りによって、瞬時S/N比特性は図4における
特性曲線Y2となる。入力レベル−126dBから0d
Bの範囲では同図のY1と同一である。また、全く同様
に、直線符号を26ビットに短縮を行っても良い。 (表8)は直線符号(26ビット)をランレングス1/
4圧縮フローティング符号(16ビット)に圧縮伸長す
る符号復号方法について表すものである。
[Table 7] In this case, the run length L0 is cut off at the maximum of "20". When the run length L0=20, the inversion bit T0 is omitted and the remaining data is set as D0. Encoding is done in the same way, but since it is known that the maximum value of run length L1 is "5", the inversion bit T1 is omitted. Furthermore, the compressed residual data C1 may be of any type. Run length L0
By terminating , the instantaneous S/N ratio characteristic becomes a characteristic curve Y2 in FIG. 4 . Input level -126dB to 0d
The range B is the same as Y1 in the same figure. Furthermore, in exactly the same way, the linear code may be shortened to 26 bits. (Table 8) is a linear code (26 bits) with a run length of 1/
This is a code decoding method for compressing and expanding a 4-compression floating code (16 bits).

【表8】 この場合、ランレングスL0を最大「16」で打ち切る
。ランレングスL0=16の時、反転ビットT0を省略
し、残り部分のデータをD0とする。符号化は同様にす
るが、ランレングスL1は最大値が4であることが判っ
ているので、反転ビットT1を省略する。さらに、圧縮
剰余データC1は何であっても良い。ランレングスL0
の打ち切りによって、瞬時S/N比特性は図4における
特性曲線Y3となる。入力レベル−102dBから0d
Bの範囲では同図のY1と同一である。以上述べた特性
曲線Y1,Y2,Y3の何れであっても、入力レベル0
dBから−96dBまでの範囲で瞬時S/N比の聴覚検
知限界を完全にクリアできる。次に、本発明の第3の実
施例について説明する。第3の実施例は直線符号(24
ビット)をランレングス1/4圧縮フローティング符号
(8ビット)に圧縮伸長する符号方法である。すなわち
、第2の実施例の符号のビット数を変更したものである
。従って、圧縮(符号化)および伸長(復号化)の手順
については第2の実施例と同様であるので説明を略す。 全ての指数部すなわちレンジの場合についてまとめた結
果を(表9)に示す。
[Table 8] In this case, the run length L0 is cut off at the maximum of "16". When the run length L0=16, the inversion bit T0 is omitted and the remaining data is set as D0. Encoding is done in the same way, but since it is known that the maximum value of run length L1 is 4, the inversion bit T1 is omitted. Furthermore, the compressed residual data C1 may be of any type. Run length L0
By terminating , the instantaneous S/N ratio characteristic becomes a characteristic curve Y3 in FIG. 4 . Input level -102dB to 0d
The range B is the same as Y1 in the same figure. No matter which of the characteristic curves Y1, Y2, and Y3 mentioned above, the input level is 0.
It can completely clear the auditory detection limit of instantaneous S/N ratio in the range from dB to -96 dB. Next, a third embodiment of the present invention will be described. The third example is a linear code (24
This is a coding method that compresses and expands a run-length 1/4 compression floating code (8 bits). That is, the number of bits of the code of the second embodiment is changed. Therefore, the compression (encoding) and decompression (decoding) procedures are the same as in the second embodiment, so their explanation will be omitted. Table 9 shows the results summarized for all exponent parts, that is, range cases.

【表9】 (表9)より、本実施例によれば最高24ビットないし
6ビットの精度が得られる。図5は第3の実施例のラン
レングス1/4圧縮フローティング符号を用いた圧縮符
号を復号して伸長した復元符号の瞬時S/N比特性図で
ある。同図の横軸に入力レベル、縦軸に瞬時S/N比を
示す。同図の特性曲線V1は(表9)に示すランレング
ス1/4圧縮フローティング符号の瞬時S/N比を表す
ものである。図より明らかに特性曲線Y1は直線符号(
8ビット)に比較してはるかに広大な入力レベル範囲で
略フラットな瞬時S/N比の特性を示している。このま
までは瞬時S/N比の聴覚検知限界48dBに満たない
けれども、差分符号などと組み合わせることによって、
広大な入力レベル範囲と高分解能を活かすことができる
。イメージデータのサンプル間相関性を利用する冗長圧
縮などに活用できる。なお、以上説明した第1ないし第
3の実施例では、直線符号は折り返し2進符号としたが
、2’Sコンプリメンタリ符号やオフセットバイナリ符
号など他の直線符号であっても、相互に変換するかまた
は所定の論理値を変更するだけで、全く同様に適用でき
る。また、nは「2」と「4」の場合だけについて説明
したが、nは「2以上」の整数であれば何でもよい。こ
の場合、nの値に応じて圧縮剰余の場合の数が変わるの
で、圧縮剰余データの語長を変更すればよいことは言う
までもない。
[Table 9] According to Table 9, according to this embodiment, a maximum precision of 24 bits to 6 bits can be obtained. FIG. 5 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 third embodiment. In the figure, the horizontal axis 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 compression floating code shown in Table 9. It is clear from the figure that the characteristic curve Y1 has a linear sign (
8-bit), it exhibits a substantially flat instantaneous S/N ratio characteristic over a much wider input level range. Although this is still below the instantaneous S/N ratio auditory detection limit of 48 dB, by combining it with differential codes, etc.
You can take advantage of the wide input level range and high resolution. It can be used for redundant compression that utilizes the correlation between samples of image data. In the first to third embodiments described above, the linear code is a folded binary code, but other linear codes such as 2'S complementary code or offset binary code can also be converted into each other. Alternatively, it can be applied in exactly the same way by simply changing a predetermined logical value. Further, although only the cases where n is "2" and "4" have been described, n may be any integer that is "2 or more". In this case, since the number of compression remainder cases changes depending on the value of n, it goes without saying that the word length of the compression remainder data may be changed.

【発明の効果】以上のように本発明は、元データの上位
ランレングスを約1/nに圧縮して得られる圧縮連続デ
ータと反転ビットとランレングスを圧縮する時派生する
剰余データとで指数部すなわちレンジを構成するもので
ある。指数部すなわちレンジの語長は元データのランレ
ングスに応じて変化する。この作用により、ランレング
スが小さい時は指数部すなわちレンジを小さい語長で構
成し、仮数部の語長を大きくするので表現精度を最大限
とすることができる。また、ランレングスが大きい時は
指数部すなわちレンジを大きい語長で構成するので、指
数部すなわちレンジの種類を細分化して表現して入力レ
ベルの範囲を広くでき、圧縮符号の表現する空間が拡張
される。これにより、精度と入力レベル範囲の両方を所
定の特性以上に保つので、特に業務編集用のデジタル記
録再生装置などに適用すると、増幅減衰を伴うミキシン
グやダビングを繰り返しても、量子化ノイズが聴覚検知
されることが無くなり、入力レベル0ないし−96dB
の広い範囲において、瞬時S/N比の聴覚検知限界であ
る約48dB以上を確保することができる。
Effects of the Invention As described above, the present invention uses compressed continuous data obtained by compressing the upper run length of the original data to about 1/n, inversion bits, and residual data derived when compressing the run length. It constitutes a section or a range. The exponent part, that is, the word length of the range changes depending on the run length of the original data. Due to this effect, when the run length is small, the exponent part, that is, the range, is made up of a small word length, and the word length of the mantissa part is made large, so that expression accuracy can be maximized. In addition, when the run length is large, the exponent part, or range, is constructed with a large word length, so the type of the exponent part, or range, can be expressed subdivided and the input level range can be widened, expanding the space expressed by the compression code. be done. This maintains both accuracy and input level range above specified characteristics, so when applied to digital recording and playback equipment for business editing in particular, quantization noise remains audible even after repeated mixing or dubbing that involves amplification and attenuation. No longer detected, input level 0 to -96dB
It is possible to secure an instantaneous S/N ratio of approximately 48 dB or more, which is the auditory detection limit, over a wide range of .

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

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

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

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

【図4】本発
明の第2の実施例におけるランレングス1/4圧縮フロ
ーティング符号を用いた圧縮符号を復号して伸長した復
元符号の瞬時S/N比特性図
FIG. 4 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 second embodiment of the present invention.

【図5】本発明の第3の実
施例におけるランレングス1/4圧縮フローティング符
号を用いた圧縮符号を復号して伸長した復元符号の瞬時
S/N比特性図
FIG. 5 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.

【図6】(a)従来の13折れ線符号(
12ビット)の構成を示す概念図 (b)は同じく変換方法を説明するための具体例を表す
説明図
[Figure 6] (a) Conventional 13-line code (
Conceptual diagram (b) showing the configuration of 12 bits) is also an explanatory diagram showing a specific example to explain the conversion method.

【図7】従来の折れ線符号を用いた圧縮符号を復号して
伸長した復元符号の特性図
[Figure 7] Characteristic diagram of a restored code obtained by decoding and expanding a compressed code using a conventional polygonal line code

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

P    極性ビット Q0  連続データ Q1  圧縮連続データ Q2  レンジデータ L0  連続データQ0のランレングスL1  圧縮連
続データQ1のランレングスL2  レンジデータQ2
のランレングスT0,T1  反転ビット D0  残り部分のデータ D1,D2  仮数データ W0  元データの符号長 W1,W2  圧縮データの符号長
P Polarity bit Q0 Continuous data Q1 Compressed continuous data Q2 Range data L0 Run length L1 of continuous data Q0 Run length L2 of compressed continuous data Q1 Range data Q2
Run length T0, T1 Inverted bit D0 Remaining data D1, D2 Mantissa data W0 Code length of original data W1, W2 Code length of compressed data

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】  元データとなる直線符号すなわち、上
位で所定論理のビットが連続する連続データQ0と、前
記連続データQ0の連続性をブレークする反転ビットT
0と、前記反転ビットT0以降の下位データD0とで構
成される直線符号を符号化して、圧縮データすなわち、
前記連続データQ0のランレングスを圧縮して得られる
圧縮連続データQ1と、前記圧縮連続データQ1の連続
性をブレークする反転ビットT1と、前記ランレングス
を圧縮する時に生じる剰余F1を表す圧縮剰余データC
1と、前記下位データD0を丸めて得るようにした仮数
データD1とで構成する圧縮データに変換するランレン
グス1/n圧縮フローティング符号方法。ただし、前記
連続データQ0のランレングスをL0、前記圧縮連続デ
ータQ1のランレングスをL1、nを2以上の整数とす
るとき、 L1=int(L0/n) F1=L0  mod  n とする。
1. A linear code serving as the original data, that is, continuous data Q0 in which bits of a predetermined logic are continuous in the upper part, and an inverted bit T that breaks the continuity of the continuous data Q0.
0 and lower-order data D0 after the inverted bit T0 is encoded to produce compressed data, that is,
Compressed continuous data Q1 obtained by compressing the run length of the continuous data Q0, an inversion bit T1 that breaks the continuity of the compressed continuous data Q1, and compressed residual data representing a remainder F1 generated when compressing the run length. C
1 and mantissa data D1 obtained by rounding the lower order data D0. However, when the run length of the continuous data Q0 is L0, the run length of the compressed continuous data Q1 is L1, and n is an integer of 2 or more, L1=int(L0/n) F1=L0 mod n.
【請求項2】  圧縮データは上位から、圧縮連続デー
タQ1、反転ビットT1、圧縮剰余データC1、仮数デ
ータD1の順に配置する請求項1記載のランレングス1
/n圧縮フローティング符号方法。
2. The run length 1 according to claim 1, wherein the compressed data is arranged in the order of compressed continuous data Q1, inverted bit T1, compressed remainder data C1, and mantissa data D1 from the highest order.
/n compression floating code method.
【請求項3】  元データとなる直線符号すなわち、極
性ビットPと、この極性ビットPを除いて上位で所定論
理のビットが連続する連続データQ0と、前記連続デー
タQ0の連続性をブレークする反転ビットT0と、前記
反転ビットT0以降の下位データD0とで構成される直
線符号を、符号化して、圧縮データすなわち、極性ビッ
トPと、前記連続データQ0のランレングスを圧縮して
得られる圧縮連続データQ1と、前記圧縮連続データQ
1の連続性をブレークする反転ビットT1と、前記ラン
レングスを圧縮する時に生じる剰余F1を表す圧縮剰余
データC1と、前記下位データD0を丸めて得るように
した仮数データD1とで構成する圧縮データに変換する
ランレングス1/n圧縮フローティング符号方法。ただ
し、前記連続データQ0のランレングスをL0、前記圧
縮連続データQ1のランレングスをL1、nを2以上の
整数とするとき、 L1=int(L0/n) F1=L0  mod  n とする。
3. A linear code serving as the original data, that is, a polarity bit P, continuous data Q0 in which upper bits of a predetermined logic are consecutive except for this polarity bit P, and an inversion that breaks the continuity of the continuous data Q0. A compressed sequence obtained by encoding a linear code consisting of bit T0 and lower data D0 after the inverted bit T0 and compressing compressed data, that is, polarity bit P and the run length of the continuous data Q0. data Q1 and the compressed continuous data Q
Compressed data consisting of an inversion bit T1 that breaks the continuity of 1, compressed remainder data C1 representing a remainder F1 generated when compressing the run length, and mantissa data D1 obtained by rounding the lower order data D0. A run-length 1/n compressed floating code method that converts to . However, when the run length of the continuous data Q0 is L0, the run length of the compressed continuous data Q1 is L1, and n is an integer of 2 or more, L1=int(L0/n) F1=L0 mod n.
【請求項4】  圧縮剰余データC1は圧縮剰余F1の
補数とする請求項1または3記載のランレングス1/n
圧縮フローティング符号方法。
4. The run length 1/n according to claim 1 or 3, wherein the compression remainder data C1 is a complement of the compression remainder F1.
Compressed floating code method.
【請求項5】  圧縮データは所定の符号長W1となる
ようにデータD1の下位ビットを削除する請求項1また
は3記載のランレングス1/n圧縮フローティング符号
方法。
5. The run length 1/n compression floating coding method according to claim 1, wherein lower bits of the data D1 are deleted so that the compressed data has a predetermined code length W1.
【請求項6】  所定の制限長LSとランレングスL0
の小さい方をLminとするとき、L1およびF1は、
L1=int(Lmin/n) F1=Lmin  mod  n である請求項1または3記載のランレングス1/n圧縮
フローティング符号方法。
[Claim 6] Predetermined limit length LS and run length L0
When the smaller of is Lmin, L1 and F1 are
4. The run length 1/n compression floating code method according to claim 1 or 3, wherein L1=int(Lmin/n) F1=Lmin mod n.
【請求項7】  圧縮データは上位から、極性ビットP
、圧縮連続データQ1、反転ビットT1、圧縮剰余デー
タC1、仮数データD1の順に配置する請求項3記載の
ランレングス1/n圧縮フローティング符号方法。
[Claim 7] The compressed data includes the polarity bit P from the upper
4. The run length 1/n compression floating code method according to claim 3, wherein the compressed continuous data Q1, the inverted bit T1, the compressed remainder data C1, and the mantissa data D1 are arranged in this order.
【請求項8】  所定の制限長LSとランレングスL0
の小さい方をLminとするとき、L1およびF1は、
L1=int(Lmin/n) F1=Lmin  mod  n であって、ランレングスL0が前記制限長LSより大な
るときは反転ビットT0および反転ビットT1を省略し
て前詰めとする請求項6記載のランレングス1/n圧縮
フローティング符号方法。
[Claim 8] Predetermined limit length LS and run length L0
When the smaller of is Lmin, L1 and F1 are
7. The method according to claim 6, wherein L1=int(Lmin/n) F1=Lmin mod n, and when the run length L0 is larger than the limit length LS, the inversion bit T0 and the inversion bit T1 are omitted to perform front-justification. Run length 1/n compression floating code method.
【請求項9】  所定の制限長LSとランレングスL0
の小さい方をLminとするとき、L1およびF1は、
L1=int(Lmin/n) F1=Lmin  mod  n であって、ランレングスL0が前記制限長LSより大な
るときは反転ビットT0および反転ビットT1を省略し
て前詰めとし、圧縮剰余F1を表す圧縮剰余データC1
を所定の固定値にする請求項6記載のランレングス1/
n圧縮フローティング符号方法。
[Claim 9] Predetermined limit length LS and run length L0
When the smaller of is Lmin, L1 and F1 are
L1=int(Lmin/n) F1=Lmin mod n When the run length L0 is larger than the limit length LS, the inversion bit T0 and the inversion bit T1 are omitted and left-justified to represent the compression remainder F1. Compressed residual data C1
The run length 1/ of claim 6 is set to a predetermined fixed value.
n compression floating code method.
【請求項10】  圧縮データすなわち、上位で所定論
理のビットが連続する圧縮連続データQ1と、前記圧縮
連続データQ1の連続性をブレークする反転ビットT1
と、ランレングスを圧縮する時に生じる剰余F1を表す
圧縮剰余データC1と、仮数データD1とで構成する圧
縮データを復号化して、元データとなる直線符号すなわ
ち、上位で所定論理のビットが連続する連続データQ0
と、前記連続データQ0の連続性をブレークする反転ビ
ットT0と、前記反転ビットT0以降の下位データD0
とで構成される直線符号に変換するランレングス1/n
圧縮フローティング符号の復号方法。ただし、前記連続
データQ0のランレングスをL0、前記圧縮連続データ
Q1のランレングスをL1、圧縮剰余データC1から求
める剰余をF1、nを2以上の整数とするとき、L0=
L1*n+F1 D0=D1 とする。
10. Compressed data, that is, compressed continuous data Q1 in which bits of a predetermined logic are continuous in the upper part, and an inverted bit T1 that breaks the continuity of the compressed continuous data Q1.
The compressed data consisting of the compressed remainder data C1 representing the remainder F1 generated when compressing the run length and the mantissa data D1 is decoded to form a linear code that becomes the original data, that is, bits of a predetermined logic are consecutive in the upper part. Continuous data Q0
, an inversion bit T0 that breaks the continuity of the continuous data Q0, and lower data D0 after the inversion bit T0.
Run length 1/n to be converted to a linear code consisting of
A method for decoding compressed floating codes. 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 residual data C1 is F1, and n is an integer of 2 or more, L0=
Let L1*n+F1 D0=D1.
【請求項11】  圧縮データすなわち、極性ビットP
と、この極性ビットPを除く上位で所定論理のビットが
連続する圧縮連続データQ1と、前記圧縮連続データQ
1の連続性をブレークする反転ビットT1と、ランレン
グスを圧縮する時に生じる剰余F1を表す圧縮剰余デー
タC1と、仮数データD1とで構成する圧縮データを、
復号化して、元データとなる直線符号すなわち、極性ビ
ットPと、この極性ビットPを除いて上位で所定論理の
ビットが連続する連続データQ0と、前記連続データQ
0の連続性をブレークする反転ビットT0と、前記反転
ビットT0以降の下位データD0とで構成される直線符
号に変換するランレングス1/n圧縮フローティング符
号の復号方法。ただし、前記連続データQ0のランレン
グスをL0、前記圧縮連続データQ1のランレングスを
L1、圧縮剰余データC1から求める剰余をF1、nを
2以上の整数とするとき、 L0=L1*n+F1 D0=D1 とする。
Claim 11: Compressed data, that is, polarity bit P
, compressed continuous data Q1 in which upper bits of a predetermined logic are consecutive except for this polarity bit P, and the compressed continuous data Q
Compressed data is composed of an inversion bit T1 that breaks the continuity of 1, compressed remainder data C1 representing a remainder F1 generated when compressing the run length, and mantissa data D1.
A linear code that is decoded and becomes the original data, that is, a polarity bit P, continuous data Q0 in which upper bits of a predetermined logic are continuous except for this polarity bit P, and the continuous data Q
A method for decoding a run-length 1/n compressed floating code that converts it into a linear code composed of an inverted bit T0 that breaks the continuity of 0s and lower-order data D0 after the inverted bit T0. 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 residual data C1 is F1, and n is an integer of 2 or more, L0=L1*n+F1 D0= Let it be D1.
【請求項12】  復号した直線符号は所定の符号長W
0になるようにデータD0の下位に固定値「100・・
・」または「011・・・」または「000・・・」ま
たは「111・・・」を追加するか、または下位のビッ
トを削除する請求項10または11記載のランレングス
1/n圧縮フローティング符号の復号方法。
[Claim 12] The decoded linear code has a predetermined code length W.
A fixed value ``100...'' is added to the lower part of data D0 so that
12. The run length 1/n compression floating code according to claim 10 or 11, wherein the run length 1/n compressed floating code adds ``. How to decrypt.
JP3050987A 1991-03-15 1991-03-15 Run length 1 / n compression floating code method and decoding method thereof Expired - Fee Related JPH07101849B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3050987A JPH07101849B2 (en) 1991-03-15 1991-03-15 Run length 1 / n compression floating code method and decoding method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3050987A JPH07101849B2 (en) 1991-03-15 1991-03-15 Run length 1 / n compression floating code method and decoding method thereof

Publications (2)

Publication Number Publication Date
JPH04286421A true JPH04286421A (en) 1992-10-12
JPH07101849B2 JPH07101849B2 (en) 1995-11-01

Family

ID=12874152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3050987A Expired - Fee Related JPH07101849B2 (en) 1991-03-15 1991-03-15 Run length 1 / n compression floating code method and decoding method thereof

Country Status (1)

Country Link
JP (1) JPH07101849B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010020356A (en) * 2003-07-29 2010-01-28 Panasonic Corp Apparatus for extending band of audio signal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010020356A (en) * 2003-07-29 2010-01-28 Panasonic Corp Apparatus for extending band of audio signal

Also Published As

Publication number Publication date
JPH07101849B2 (en) 1995-11-01

Similar Documents

Publication Publication Date Title
CA1192309A (en) Method and apparatus for encoding and decoding a binary digital information signal
AU600137B2 (en) Apparatus for digital signal
JPH02156789A (en) Picture signal compression coding device and expansion reproducing device
JP2994265B2 (en) Encoding and decoding apparatus for RLL code data
US4583074A (en) Expansion circuit for digital signals
JPH1079675A (en) Signal modulation method by multi-stage RLL coding
JP3127655B2 (en) Modulator and demodulator
JPH07101849B2 (en) Run length 1 / n compression floating code method and decoding method thereof
JP3092299B2 (en) Decoding device for run-length 1 / n compressed floating code
JPH07153195A (en) Digital recording device
JPH0795691B2 (en) Run length 1 / n compression floating encoder
JP4095440B2 (en) Apparatus and method for encoding information, apparatus and method for decoding the encoded information, modulation signal, and recording medium manufacturing method
JP3521487B2 (en) Signal processing device
JPH1011898A (en) Digital sound recorder
US4855741A (en) Logarithmic digital level display device
JPS63126322A (en) Encoder
JP3334437B2 (en) Encoding method, encoding device, recording medium, and decoding device
JPH0536213A (en) Code conversion system
JPH0348774Y2 (en)
GB2304260A (en) Apparatus for encoding and decoding for run length limited code data using two stages
JPH06165112A (en) Recording and reporducing device
JPH04239272A (en) Compression and expansion equipment
JPS594345A (en) Correcting device of data transmission system
JP2700333B2 (en) 7/8 NRZI code conversion method
JPH0535612B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees