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
JPH07101849B2 - Run length 1 / n compression floating code method and decoding method thereof - Google Patents
[go: Go Back, main page]

JPH07101849B2 - Run length 1 / n compression floating code method and decoding method thereof - Google Patents

Run length 1 / n compression floating code method and decoding method thereof

Info

Publication number
JPH07101849B2
JPH07101849B2 JP3050987A JP5098791A JPH07101849B2 JP H07101849 B2 JPH07101849 B2 JP H07101849B2 JP 3050987 A JP3050987 A JP 3050987A JP 5098791 A JP5098791 A JP 5098791A JP H07101849 B2 JPH07101849 B2 JP H07101849B2
Authority
JP
Japan
Prior art keywords
data
run length
compressed
code
compression
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
JP3050987A
Other languages
Japanese (ja)
Other versions
JPH04286421A (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 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)

Description

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

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

【従来の技術】従来の衛星PCM放送やデジタル・オー
ディオ・テープレコーダ(以下、DATと略す)におい
ては、圧縮による品質劣化を抑えながらハードウェア量
とのトレードオフも考慮し、比較的軽い圧縮率を採用し
ている。これらの例としては折れ線符号があり、DAT
においては12ビットの13折れ線符号が用いられてい
る。詳細な技術規格は日本電子機械工業会発行の「EI
AJ CP−2305DAT Cassette Sy
stem Part1: Dimensionand
Characteristics」に示されている。図
6(b)はDATに使用されている13折れ線符号(1
2ビット)の変換方法を説明する図であり、正の範囲を
示す。図中の枠内において()内の数字は10進数、そ
れ以外の数字は2進数である。2進数の最上位ビット
(以下、MSBという)は極性ビットPであり、正の範
囲では「0」、負の範囲では「1」である。図中の「A
BCDEFGH」は「00000000」から「111
11111」までの値であり、「*」は任意の2進数で
ある。また、L0は元データの極性ビットを除いた上位
で「0」が連続する連続データQ0のランレングスであ
る。以上のような符号方法について、以下その手順につ
いて説明する。図6(b)は符号化と復号化の変換を具
体的に示す図である。先ず、13折れ線符号(12ビッ
ト)の符号化の方法について説明する。16ビットの領
域を正の範囲で7分割し、それぞれの領域に応じてシフ
ト量を操作する。同図より明らかな通り、領域分割はM
SB側から見て初めに「1」のある位置により行える。
言い換えると、極性ビットを除いた「0」の連続データ
のランレングスL0で決定できる。ランレングスL0を
「0」から「7以上」までの8通りとし、L0の補数を
レンジデータとして指数表現する。例えば、元データが
「1216(10進)」すなわち「000001001
1000000(2進)」の場合、連続データQ0のラ
ンレングスL0は「4」となる。レンジデータQ2は
「100」を反転した「011」である。また、「AB
CDEFGH」は「00110000」である。従っ
て、出力データは「001100110000」とな
る。図6(a)は上記の概念を図式化して示した図であ
る。出力データは極性ビットPと、領域を表すレンジデ
ータQ2と、シフトした仮数データD2とを合成して1
2ビットにする。レンジデータQ2は固定語長であり、
3ビットである。元データが2S(トゥーズ)コンプリ
メンタリである場合には、負の範囲はP以下のビットを
全てビット反転させることにより、正の範囲と全く同様
の符号化ができる。このように、負の範囲でビット反転
させた符号を折り返し2進符号と呼ぶ。以下の説明は特
に断らない限り、折り返し2進符号を用いることにする
が、2Sコンプリメンタリとの変換は相互に可能であ
る。次に、13折れ線符号(12ビット)の復号化の方
法について説明する。復号化は、折れ線符号のレンジデ
ータQ2の位置が既知であるので、極性ビットPの以降
3ビットをみて、指数部すなわちレンジを再生する。仮
数データD2の位置も既知であるので、レンジデータQ
2によって直線符号(16ビット)のランレングスL0
を復元し、反転ビットT0と、その後に仮数データD2
を付ける。元データの符号長W0に満たない時は、固定
値を充てる。このような手順に従って、復号化の処理を
行う。以上説明した符号化および復号化を行うと、情報
の丸めにより表現精度が変更される。情報の丸めはシフ
ト操作により発生する。ランレングスL0が「6」と
「7以上」では同じとするので、シフトは7種類とな
る。よって、正と負で14種類となるが、中心の領域で
は正と負で同じシフト操作をするので、全領域の入出力
特性は13種類の折れ線で表すことができる。図6
(b)のそれぞれの領域において、表現精度すなわち分
解能はランレングスL0によって変化する。ランレング
スL0が「0」ないし「6」の時、分解能は語長換算の
ビット数で10ビットないし16ビットである。以上説
明した内容を(表1)にまとめて示す。
2. Description of the Related Art In conventional satellite PCM broadcasting and digital audio tape recorders (hereinafter abbreviated as DAT), a comparatively light compression ratio is taken into consideration in consideration of a trade-off with the amount of hardware while suppressing quality deterioration due to compression. Has been adopted. An example of these is the line code, DAT
In, a 12-bit 13-line code is used. For detailed technical standards, refer to "EI
AJ CP-2305 DAT Cassette Sy
system Part1: Dimension and
Characteristics ". FIG. 6B shows a 13-line code (1
It is a figure explaining the conversion method of 2 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 of the binary number (hereinafter referred to as MSB) is the polarity bit P, which is "0" in the positive range and "1" in the negative range. "A in the figure
BCDEFGH ”is from“ 00000000 ”to“ 111
The value is up to 11111 ", and" * "is an arbitrary binary number. Further, L0 is the run length of continuous data Q0 in which “0” continues, excluding the polarity bit of the original data. The procedure of the above coding method will be described below. FIG. 6B is a diagram specifically showing conversion between encoding and decoding. First, a method for encoding 13 polygonal line codes (12 bits) will be described. The 16-bit area is divided into seven in the positive range, and the shift amount is manipulated according to each area. As is clear from the figure, the area division is M
It can be performed at a position where "1" is first seen from the SB 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 exponentially as range data. For example, the original data is "1216 (decimal)", that is, "000001001".
In the case of "1000000 (binary)", the run length L0 of the continuous data Q0 is "4". The range data Q2 is “011” which is the inverse of “100”. Also, "AB
"CDEFGH" is "00110000". Therefore, the output data is "001100110000". FIG. 6A is a diagram schematically showing the above concept. The output data is 1 by combining the polarity bit P, the range data Q2 representing the area, and the shifted mantissa data D2.
Set to 2 bits. Range data Q2 has a fixed word length,
It is 3 bits. When the original data is 2S (toes) complementary, the negative range can be encoded in exactly the same way as the positive range by inverting all the bits of P or less. The code in which the bit is inverted in the 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 the 2S complementary is mutually possible. Next, a method of decoding 13 polygonal line codes (12 bits) will be described. In decoding, since the position of the range data Q2 of the polygonal line code is known, the exponent part, that is, the range is reproduced by looking at the 3 bits after the polarity bit P. Since the position of the mantissa data D2 is also known, the range data Q
Run length L0 of linear code (16 bits) by 2
Of the inversion bit T0 and the mantissa data D2
Attach. When the code length W0 of the original data is less than, a fixed value is used. Decoding processing is performed according to such a procedure. When the encoding and decoding described above are performed, the precision of expression is changed by rounding the information. Rounding of information occurs due to shift operations. Since the run length L0 is the same for "6" and "7 or more", there are seven types of shifts. Therefore, there are 14 types of positive and negative, but the same shift operation is performed in the central region with positive and negative, so the input / output characteristics of the entire region can be represented by 13 types of broken lines. Figure 6
In each region of (b), the expression precision, that is, the resolution, changes depending on the run length L0. When the run length L0 is "0" to "6", the resolution is 10 to 16 bits in terms of the number of bits converted into word length. The contents described 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 decompression code obtained by decoding and decompressing a compression code using a polygonal line code. The horizontal axis of the figure shows the input level, and the vertical axis shows the instantaneous S / N ratio. However, as for the instantaneous S / N ratio, about 2 dB for improving the S / N ratio of the rectangular wave is omitted for simplicity. In the figure, Z1 indicates the characteristic of 13 polygonal line code (12 bits). Z1 will be described.
The input level of 0 dB is based on the maximum amplitude of a sine wave that can be represented by a code. The straight line code "P1111111111
"11111" corresponds to this. In the input level range of 0 dB to -6 dB, the straight line code is "P1 *** ...".
Since the run length L0 is “0” from (Table 1), the resolution is 10 bits. The quantization noise of 10-bit data is -60 dB, with -6 dB per bit. Therefore, the instantaneous S / N ratio of the input level 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 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 60 dB to 54 dB. Similarly, the instantaneous S / N in the area up to -96 dB
Z1 is the characteristic curve obtained by obtaining the ratio. 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ビット増加する。
However, in the above-mentioned conventional method, the instantaneous S / N ratio is only 60 dB at the best, and the instantaneous S / N ratio is the same as the linear code (16 bits) at a finer input level. descend. In a commercial digital recording / reproducing apparatus that requires a margin (headroom) for excessive input, the average input level is set low and recording is performed, so that the dynamic range that is practically used is narrowed, and Since the instantaneous S / N ratio becomes insufficient in a considerable range, there is a problem in that deterioration is increased in editing in which amplification and attenuation are repeated.
As described above, this problem also applies to linear codes (16 bits). Preferably, the hearing detection limit is about 48 dB
The above-mentioned instantaneous S / N ratio characteristic is input level 0 to -96d
A wide range of B is required to be satisfied. As an improved method therefor, it is possible to easily consider a method of extending the conventional 13-line code (12 bits) to 16 bits.
(Table 2) shows straight line code (20 bits) to broken line code (1
6 bit) is shown.
Since the word length of the mantissa data D2 in Table 2 is 12, the resolution is increased by 4 bits as a whole.

【表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 decompression code that decodes and expands the compression code using the polygonal line code (16 bits) shown in (Table 2) is Z in FIG.
It becomes like 2. With this improved method, the instantaneous S / N ratio is improved by 24 dB over the entire range, but the input level is -72.
The instantaneous S / N ratio is 48d in the range of dB to -96dB.
It is B or less, which is insufficient. Therefore, if this signal is amplified by an amplifier, there is a problem that the quantization noise is auditorily detected. The present invention solves the above-mentioned problems of the prior art, and is about 48d which is the hearing detection limit of the instantaneous S / N ratio in a wide range of input level 0 to -96dB.
The purpose is to secure B or higher.

【課題を解決するための手段】この目的を達成するため
に本発明のランレングス1/n圧縮フローティング符号方
法は、元データとなる直線符号すなわち、上位で所定論
理のビットが連続する連続データQ0と、前記連続デー
タQ0の連続性をブレークする反転ビットT0と、前記
反転ビットT0以降の下位データD0とで構成される直
線符号を、符号化して圧縮データすなわち、前記連続デ
ータQ0のランレングスを圧縮して得られる圧縮連続デ
ータQ1と、前記圧縮連続データQ1の連続性をブレー
クする反転ビットT1と、前記ランレングスを圧縮する
時に生じる剰余F1を表す圧縮剰余データC1と、前記
下位データD0を丸めて得るようにした仮数データD1
とで構成する圧縮データに変換するようにしている。た
だし、前記連続データQ0のランレングスをL0、前記
圧縮連続データQ1のランレングスをL1、nを2以上
の整数とするとき、 L1=int(L0/n) F1=L0 mod n とする。
In order to achieve this object, a run length 1 / n compression floating code method of the present invention uses a linear code as the original data, that is, continuous data Q0 in which bits of a predetermined logic are continuous in the higher order. And a linear code composed of an inversion bit T0 that breaks the continuity of the continuous data Q0 and a lower data D0 after the inversion bit T0 is encoded to obtain compressed data, that is, a run length of the continuous data Q0. The compressed continuous data Q1 obtained by compression, the inversion bit T1 that breaks the continuity of the compressed continuous data Q1, the compressed residual data C1 representing the residual F1 generated when compressing the run length, and the lower data D0. Mantissa data D1 rounded and obtained
It is converted into compressed data composed of and. 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に圧縮する。圧縮したランレン
グスを有する圧縮連続データと反転ビットと圧縮剰余デ
ータとで指数部すなわちレンジを特定するものである。
指数部すなわちレンジは元データのランレングスに応じ
て自己拡張する作用を有する。すなわち、ランレングス
が小さい時は少ないビット数で指数部すなわちレンジを
特定し、ランレングスが大きくなると指数部すなわちレ
ンジを細分化していき、多くのビット数で指数部すなわ
ちレンジを特定する。また、符号全体の語長が有限で所
定の値とする場合、仮数部へ割り当てるビット数がラン
レングスに応じて変更される。これらの作用により、圧
縮符号の表現する空間が拡張され、また表現精度を最大
とすることができる。
According to the present invention, the run length L0 of the original data is compressed to about 1 / n by the above method. The exponent part, that is, the range is specified by the compressed continuous data having the compressed run length, the inversion bit, and the compression remainder data.
The exponent part or range has a 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 with a small number of bits, and when the run length is large, the exponent part or range is subdivided, and the exponent part or range is specified with a large number of bits. When the word length of the entire code is finite and has a predetermined value, the number of bits assigned to the mantissa is changed according to the run length. By these actions, the space represented 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は連続データQ
0のランレングス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をこの順に配置して、「P11ABC
DEFGHIJKLM」である。同様にして以下を求め
る。 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」である。さらに、 L0=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)に示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1A is a conceptual diagram showing the configuration of a run length 1/2 compression floating code in the first embodiment of the present invention, and FIG. 1B is a diagram showing a concrete example for explaining the conversion processing. Is. In the figure, the same parts as those in the conventional example are given the same symbols. The procedure of compression (encoding) will be described below with reference to the drawings. First
In the embodiment of the present invention, a straight code (30 bits) is used as the run length 1 /
This is a coding method that compresses and expands into a 2-compression floating code (16 bits). The compressed continuous data Q1 is the continuous data Q
It is continuous data having the length of the run length L1 obtained by dividing the run length L0 of 0 by 2 to obtain an integer. That is, L1 = int (L0 / 2). If the remainder term of the 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 residue data C1 is a complement representation of the compression residue F1. In addition, the mantissa data D1 is higher-order partial data of the data D0. The run length 1/2 compression floating code is arranged in the order of the polarity bit P, the compressed continuous data Q1, the inversion bit T1, the compression remainder data C1, and the mantissa data D1. Below, Figure 1
Based on (b), the run length L0 is "0" or "2".
The case of "8" will be described. When L0 = 0, L1 and F1 are: 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 compression residue data C1 is “1”. The data D0 is 30 bits, and the upper 13 bits "ABCDEFGHIJKLM" of the data D0 is the mantissa data D1. In the run length 1/2 compression floating code, the polarity bit P, the inversion bit T1, the compression remainder data C1 and the mantissa data D1 are arranged in this order, and “P11ABC
DEFGHHIJKLM ". Similarly, the following is obtained. When L0 = 1, L1 = int (1/2) = 0 F1 = 1 mod 2 = 1 Therefore, there is no compressed continuous data Q1 and compressed remainder data C1
Is "0". Upper 13 bits of data D0 "ABC
"DEFGHIJKLM" is the mantissa data D1. Run length 1/2 compression 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 compression remainder data C1 is “1”. Upper 12 bits of data D0 "A
BCDEFGHIJKL ”is the mantissa data D1. Run length 1/2 compression floating code is "P011
ABCDEFGHIJKL ". When L0 = 3, L1 = int (3/2) = 1 F1 = 3 mod 2 = 1 Therefore, the continuous data Q1 is “0” and the compression remainder data C1 is “0”. Upper 12 bits of data D0 "A
BCDEFGHIJKL ”is the mantissa data D1. Run length 1/2 compression floating code is "P010
ABCDEFGHIJKL ". Further, when L0 = 20, L1 = int (20/2) = 10 F1 = 20 mod 2 = 0 Therefore, the continuous data Q1 is “0000000000” and the compression residue data C1 is “1”. The upper 3 bits “ABC” of the data D0 are the mantissa data D1. Therefore, the run length 1/2 compression floating code is "P
000000000011 ABC ". Further, when L0 = 28, L1 = int (28/2) = 14 F1 = 28 mod 2 = 0 Therefore, the continuous data Q1 is “0000000000000000.
The compression 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.
0000000001 ". In this way, the linear code (30 bits) is compressed into the run length 1/2 compression floating code (16 bits). Next, a decompression (decoding) procedure will be described. 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 inversion bit T1. Further, the compression residue data C1 (1 bit) and the mantissa data D1 immediately after the inversion bit T1 are obtained. A compression residue F1 is obtained by inverting the compression residue data C1. From these, the run length L0 of the continuous data Q0 of the original data is obtained from L0 = 2 * L1 + F1. The continuous data Q0 is restored by connecting "0" having the length of the run length L0. An inversion bit T0 is added after the continuous data Q0, and then mantissa data D1 is added. The polarity bit P is added to the head to form the original data. When this code length is less than W0, a fixed value is assigned to the lower order of the mantissa data D1 to set the code length to W0. Decoding processing is performed according to this procedure. Hereinafter, some cases of the run length L1 will be specifically described with reference to FIG. 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 is the polarity bit P and the inversion bit T0.
And mantissa data D1 are arranged, and “P1ABCDEF
GHIJKLM ******************** ”. "*** ..." is a fixed value "011 ..."
Shall be satisfied. Similarly, L1 = 10 and F1
When L = 0, L0 = 2 * 10 + 0 = 20, so the continuous data Q0 is “0000000000.
0000000000 "and mantissa data D1 is" AB
C ". At this time, the original data is obtained by arranging the polarity bit P, the continuous data Q0, the inversion bit T0, and the mantissa data D1 into “P000000000000000000”.
001ABC ******* ”. In this way, the linear code (30 bits) is decoded and expanded from the run length 1/2 compressed floating code (16 bits). In the same manner as above, the results summarized in 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の範囲では直線符号で「P
0001ABC・・・」または「P00001ABC・
・・」となり、(表3)より分解能は17ビットであ
る。17ビットデータの量子化ノイズは−102dBで
あるので、瞬時S/N比は84dBないし72dBとな
る。以下同様に、−180dBまでの入力レベル領域で
瞬時S/N比を求める。図3はランレングス1/2圧縮
フローティング符号を用いた圧縮符号を復号して伸長し
た復元符号の瞬時S/N比特性図である。同図の横軸に
入力レベル、縦軸に瞬時S/N比を示す。同図の特性曲
線X1は(表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の劣化であり、なお
90dBないし84dBの瞬時S/N比を有する。この
領域はマージンとして留保し、通常は殆ど使用しない範
囲であるので、全く問題とならない。また、図7の特性
曲線Z2に示す折れ線符号(16ビット)との比較にお
いても、入力レベル0dBから−12dBの範囲で6d
Bの改善があり、しかも−96dBでは18dBの改善
が得られる。このように第1の実施例によれば、微小レ
ベルの信号を増幅しても、入力レベル−96dBまでの
広い範囲にわたって量子化ノイズを聴覚検知限より小さ
くすることができる。従って、十分にヘッドルームを確
保して録音レベルを設定でき、後の編集で任意に増幅で
きる。また、微小レベルの信号に発生する固有スペクト
ルの量子化ノイズの問題を改善するために、白色雑音
(ディザ)を付加してノイズスペクトルを分散させるな
どの処理を無くすことができる。現在の技術では入力レ
ベル0dBから−180dBもの広範囲な信号を増幅し
たり、AD変換器でデジタル化することは困難である
が、高温超伝導を利用する機能素子や回路技術の将来の
発展により、本発明の効果が最大限に発揮できるように
なる。なお、(表3)においてランレングス1/2圧縮
フローティング符号の増加特性を考察する。第1の実施
例では圧縮剰余データC1を圧縮剰余F1の補数とした
ことにより、レンジの境界では上位のレンジの数値の方
が下位のレンジよりも必ず大きい。従って、第1の実施
例のランレングス1/2圧縮フローティング符号は単調
増加特性を有する。仮に圧縮データを直線符号(16ビ
ット)と誤って再生することがあっても、単調増加特性
であればレベルの逆転やジャンプを起こさないので有利
である。この作用は、圧縮剰余データC1を圧縮剰余F
1の補数としたことによるが、必ずしも補数とする必要
は無く他の表現であってもよい。前述したように、現在
の技術では入力レベル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 compression floating code. Run length L0, run length L1 and resolution column is 1
It is a decimal number. The expression accuracy, that is, the resolution of the decompressed code obtained by decoding and decompressing the compressed code is determined by the rounding accuracy of the linear code in the linear code, and changes depending on the run length L0. From (Table 3), according to the first embodiment, a precision of up to 30 bits to 15 bits can be obtained. Here, the instantaneous S / N ratio in the case where a linear code is input, compression coding is performed using a run length 1/2 compression floating code, and this code is decoded and decompressed to output a decompressed code will be described. However, for simplification, the instantaneous S / N ratio omits the S / N ratio improvement (about 2 dB) of the rectangular wave. The input level is based on the maximum sine wave amplitude that can be represented by a sign (0 dB)
To The straight line code “P1111 ...” Corresponds to this. The range of the input level from 0 dB to -6 dB is "P1ABC ..." With a linear code, and the resolution is 15 bits from (Table 3). The quantization noise of 15-bit data is -90 dB, where -6 dB per bit. Therefore, the instantaneous S in the area of the input level 0 dB to -6 dB
The / 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 the resolution is 16 bits from (Table 3). Since the quantization noise of 16-bit data is -96 dB, the instantaneous S / N ratio is 90 dB to 78 dB. In the input level range of -18 dB to -30 dB, the linear code "P
0001ABC ... "or" P00001ABC.
··· ”, and the resolution is 17 bits from (Table 3). Since the quantization noise of 17-bit data is -102 dB, the instantaneous S / N ratio is 84 dB to 72 dB. Similarly, the instantaneous S / N ratio is obtained in the input level region 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 compression 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 in the figure 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 is substantially above the hearing detection limit of 48 dB of the instantaneous S / N ratio in the input level range of 0 dB to -96 dB. Compared to the conventional linear code (16 bits), an instantaneous S / N ratio improvement of about 42 dB is achieved at an input level of -96 dB. The improvement of the instantaneous S / N ratio works over a wide range from the input level of -18 dB to -180 dB. The instantaneous S / N ratio deteriorates in the input level range of 0 dB to -6 dB, but the deterioration is 6 dB at most, and the instantaneous S / N ratio is still 90 dB to 84 dB. This area is reserved as a margin and is a range that is rarely used normally, so there is no problem at all. Further, also in comparison with the polygonal line code (16 bits) shown in the characteristic curve Z2 of FIG. 7, 6d in the input level range of 0 dB to -12 dB.
There is an improvement of B, and an improvement of 18 dB is obtained at -96 dB. As described above, according to the first embodiment, the quantization noise can be made smaller than the auditory sense limit over a wide range up to the input level -96 dB even if the signal of the minute level is amplified. Therefore, the headroom can be sufficiently secured and the recording level can be set, and it can be amplified arbitrarily in the later editing. Further, in order to improve the problem of the quantization noise of the unique spectrum that occurs in a signal of a minute level, it is possible to eliminate the processing such as adding white noise (dither) to disperse the noise spectrum. With current technology, it is difficult to amplify a wide range of signals from input level 0 dB to -180 dB, or to digitize it with an AD converter, but due to future development of functional elements and circuit technology utilizing high temperature superconductivity, The effect of the present invention can be maximized. In addition, in Table 3, the increase characteristic of the run length 1/2 compression floating code is considered. In the first embodiment, since the compression residue data C1 is the complement of the compression residue F1, the numerical value of the upper range is always larger than the lower range at the boundary of the range. Therefore, the run length 1/2 compressed floating code of the first embodiment has a monotonically increasing characteristic. Even if the compressed data is erroneously reproduced as a linear code (16 bits), the level inversion or jump does not occur with the monotonically increasing characteristic, which is advantageous. This action converts the compression residue data C1 into the compression residue F.
Although it is based on the one's complement, it is not always necessary to use the complement and other expressions may be used. As described above, it is difficult with the current technology to amplify a wide range of signals from an input level of 0 dB to −180 dB or to digitize it with an AD converter. Therefore, when it is not possible to prepare 30 bits of the linear code, the linear code may be shortened. Table 4 shows a code decoding method for compressing and expanding a linear code (28 bits) into a run length 1/2 compression 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 cut off at a maximum of 26. When the run length L0 = 26, the inversion bit T0 is omitted,
The remaining data is D0. The encoding is the same, but the compression remainder data C1 is omitted and mantissa data D1, that is, D0 is arranged instead. Due to the termination of the run length L0, the instantaneous S / N ratio characteristic becomes the characteristic curve X2 in FIG. Input level-162dB to 0dB
The range is the same as X1 in the figure. Further, in the same manner, the linear code may be shortened to 24 bits. Table 5 shows a code decoding method for compressing and expanding a linear code (24 bits) into a run length 1/2 compression floating code (16 bits).

【表5】 この場合、ランレングスL0を最大「18」で打ち切
る。ランレングスL0=18の時、反転ビットT0を省
略し、残り部分のデータをD0とする。符号化は同様に
するが、ランレングスL1は最大値が「9」であること
が判っているので、反転ビットT1は何であっても良
い。さらに、圧縮剰余データC1を省略してその代わり
に仮数データD1すなわちD0を配置する。ランレング
スL0の打ち切りによって、瞬時S/N比特性は図3に
おける特性曲線X3となる。入力レベル−114dBか
ら0dBの範囲では同図の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、反転ビットT
1、圧縮剰余データ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圧縮フローティング符号は「P
100ABCDEFGHIJKL」である。 また、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の直後にある圧縮剰余データ
C1(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 "18". When the run length L0 = 18, the inversion bit T0 is omitted and the remaining data is D0. Although the encoding is the same, it is known that the maximum value of the run length L1 is "9", so that the inversion bit T1 may be any value. Further, the compression remainder data C1 is omitted and mantissa data D1, that is, D0 is arranged in its place. Due to the termination of the run length L0, the instantaneous S / N ratio characteristic becomes the 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 0 dB to -96 dB. Next, the second aspect of the present invention
Embodiments will be described with reference to the drawings. Figure 2
(A) is a run length 1 in the second embodiment of the present invention.
It is a conceptual diagram which shows the structure of a / 4 compression floating code | symbol, and FIG.2 (b) is a figure showing the specific example for demonstrating conversion processing. In the figure, the same parts as those in the conventional example are given the same symbols. The procedure of compression (encoding) will be described below with reference to the drawings. In the second embodiment, the linear code (32
(Bit) to a run length 1/4 compression floating code (16 bits). The compressed continuous data Q1 is continuous data having a length of the run length L1 which is an integer obtained by dividing the run length L0 of the continuous data Q0 by "4". L1 = int (L0 / 4) When the remainder term of integer division is the compression remainder F1, 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 residue data C1 is the complement of the compression residue F1. The mantissa data D1 is partial data on the upper side of the data D0. The run length 1/4 compression floating code has a polarity bit P, compressed continuous data Q1, and inversion bit T.
1, the compression remainder data C1, and the mantissa data D1 are arranged in this order. Hereinafter, the case where the run length L0 is "0" to "28" will be described with reference to FIG. 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 compression residue data C1 is “11”. The data D0 is 30 bits, and the upper 12 bits "ABCDEFGHIJKL" of the data D0 is the mantissa data D1. In the run length 1/4 compression floating code, the polarity bit P, the inversion bit T1, the compression remainder data C1 and the mantissa data D1 are arranged in this order, and “P111ABC
DEFGHHIJKL ". Similarly, when L0 = 1, L1 = int (1/4) = 0 F1 = 1 mod 4 = 1 Therefore, there is no compressed continuous data Q1 and compressed remainder data C1
Is "10". Upper 12 bits of data D0 "AB
"CDEFGHIJKL" is the mantissa data D1. Run length 1/4 compression floating code is "P110A
BCDEFGHIJKL ”. When L0 = 3, L1 = int (3/4) = 0 F1 = 3 mod 4 = 3 Therefore, the continuous data Q1 is “0” and the compression remainder data C1 is “00”. The upper 12 bits "ABCDEFGHIJKL" of the data D0 is the mantissa data D1. Run length 1/4 compression floating code is "P
100ABCDEFGHIJKL ". Further, when L0 = 20, L1 = int (20/4) = 5 F1 = 20 mod 4 = 0 Therefore, the continuous data Q1 is “00000” and the compression remainder data C1 is “11”. The upper 7 bits “ABCDEFG” of the data D0 is the mantissa data D1. Therefore, the run length 1/4 compression floating code is "P
00000111ABCDEFG ". Furthermore, when L0 = 23, L1 = int (23/4) = 5 F1 = 23 mod 4 = 3 Therefore, the continuous data Q1 is “00000” and the compression remainder data C1 is “00”. The upper 7 bits “ABCDEFG” of the data D0 is the mantissa data D1. Therefore, the run length 1/4 compression floating code is "P
00000100ABCDEFG ". In this way, the linear code (32 bits) is compressed into the run length 1/4 compression floating code (16 bits). Next, a decompression (decoding) procedure will be described. 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 inversion bit T1. Further, the compression remainder data C1 (2 bits) and the mantissa data D1 immediately after the inversion bit T1 are obtained. A compression residue F1 is obtained by inverting the compression residue data C1. 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 "0" having the length of the run length L0. An inversion bit T0 is added after the continuous data Q0, and then mantissa data D1 is added. The polarity bit P is added to the head to form the original data. When this code length is less than W0, a fixed value is assigned to the lower order of the mantissa data D1 to set the code length to W0. Decoding processing is performed according to this procedure. Hereinafter, some cases of the run length L1 will be specifically described with reference to FIG. When L1 = 0 and F1 = 0, L0 = 4 * 0 + 0 = 0, so there is no continuous data Q0. The mantissa data D1 is 12 bits and is "ABCDEFGHIJKL". At this time, the original data is obtained by arranging the polarity bit P, the inversion bit T0, and the mantissa data D1 into “P1ABCDEFG”
HIJKL ************** ”.
Note that "*** ..." is a fixed value of "1000 ...". Similarly, when L1 = 5 and F1 = 0, since L0 = 4 * 5 + 0 = 20, the continuous data Q0 is “0000000000”.
0000000000 "and mantissa data D1 is" AB
CDEFG ". At this time, the original data is obtained by arranging the polarity bit P, the continuous data Q0, the inversion bit T0, and the mantissa data D1 into “P0000000000000000”.
0000001ABCDEFG *** ”. In this way, the linear code (32 bits) is decoded and expanded from the run length 1/4 compression floating code (16 bits). In the same manner as above, the results summarized in 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ビット)に比べ入力レベル−
96dBのところで約60dBもの瞬時S/N比改善が
達成される。瞬時S/N比の改善は入力レベル−18d
Bから−196dBの広範囲にわたり作用する。入力レ
ベル0dBから−12dBの範囲で瞬時S/N比が劣化
するが、高々12dBの劣化であり、なお84dBない
し78dBの瞬時S/N比を有する。この領域はマージ
ンとして通常はあまり使用しない範囲であるので、全く
問題とならない。また、図7の特性曲線Z2に示す折れ
線符号(16ビット)との比較においても、入力レベル
−54dBから−196dBの範囲で改善があり、−9
6dBでは36dBの改善が得られる。このように第2
の実施例によれば、第1の実施例よりもさらに微小な入
力レベル−144dBの信号を増幅しても、量子化ノイ
ズを聴覚検知することが全く無くなる。従って、十分に
ヘッドルームを確保して録音レベルを設定でき、後の編
集で任意に増幅できる。 (表7)は直線符号(29ビット)をランレングス1/
4圧縮フローティング符号(16ビット)に圧縮伸長す
る符号復号方法について表すものである。
[Table 6] From Table 6, according to the present embodiment, the accuracy of up to 32 bits to 14 bits can be obtained. Here, the instantaneous S / N ratio in the case where a linear code is input, compression coding is performed using a run length 1/4 compression floating code, and this code is decoded and expanded to output a decompressed code will be described.
The range of the input level from 0 dB to -6 dB is "P1ABC ..." With a straight line code, and the resolution is 1 from (Table 6).
It is 4 bits. Quantization noise of 14-bit data is 1
It becomes -84 dB as -6 dB per bit. Therefore,
Instantaneous S / N in the input level range of 0 dB to -6 dB
The ratio is 84 dB to 78 dB. Input level-6d
In the range of B to -12 dB, the straight line code indicates "P01AB
C ... ”, and the resolution is 15 bits from (Table 6). 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 -12 dB to -18 dB, the linear code is "P001ABC ..." (Table 6).
More resolution is 16 bits. Since the quantization noise of 16-bit data is -96 dB, the instantaneous S / N ratio is 8
It becomes 4 dB to 78 dB. In the input level range of -18 dB to -30 dB, the linear code "P0001AB
C ... "or" P00001ABC ... ", and the resolution is 17 bits from (Table 6). Since the quantization noise of 17-bit data is -102 dB, the instantaneous S / N ratio is 84 dB to 72 dB. Similarly, the instantaneous S / N ratio is obtained in the input level region up to -180 dB. FIG. 4 is an instantaneous S / N ratio characteristic diagram of a restoration code obtained by decoding and expanding a compression code using a run length 1/4 compression floating code. Input level on the horizontal axis of the figure,
The vertical axis shows the instantaneous S / N ratio. The characteristic curve Y1 in the figure represents the instantaneous S / N ratio of the run length 1/4 compression floating code shown in (Table 6). The characteristic curve Y1 clearly exceeds the hearing detection limit of 48 dB of the instantaneous S / N ratio in the input level range of 0 dB to -96 dB. Input level compared to conventional linear code (16 bits)
At 96 dB, an instantaneous S / N ratio improvement of about 60 dB is achieved. The improvement of the instantaneous S / N ratio is the input level -18d.
It acts over a wide range from B to -196 dB. Although the instantaneous S / N ratio deteriorates in the input level range of 0 dB to -12 dB, it deteriorates at most 12 dB, and still has the instantaneous S / N ratio of 84 dB to 78 dB. Since this area is a range that is not often used as a margin, there is no problem at all. Also, in comparison with the polygonal line code (16 bits) shown in the characteristic curve Z2 of FIG. 7, there is an improvement in the input level range of −54 dB to −196 dB, and −9 dB.
At 6 dB, an improvement of 36 dB is obtained. Second like this
According to this embodiment, even if a signal having an input level of -144 dB, which is much smaller than that in the first embodiment, is amplified, the auditory detection of quantization noise is completely eliminated. Therefore, the headroom can be sufficiently secured and the recording level can be set, and the recording level can be arbitrarily amplified in the later editing. (Table 7) shows run length 1/29 with linear code (29 bits).
This figure shows a code decoding method for compressing and expanding a 4-compressed floating code (16 bits).

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

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

【表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] From Table 9, according to the present embodiment, a precision of up to 24 bits to 6 bits can be obtained. FIG. 5 is an instantaneous S / N ratio characteristic diagram of a decompressed code obtained by decoding and expanding the compressed code using the run length 1/4 compressed floating code of the third embodiment. 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 compression floating code shown in (Table 9). The characteristic curve Y1 clearly shows a characteristic of a substantially flat instantaneous S / N ratio in a much wider input level range as compared with the linear code (8 bits). Although it is less than the hearing detection limit of 48 dB of the instantaneous S / N ratio as it is, it is possible to make use of a vast input level range and high resolution by combining with a differential code. It can be used for redundant compression that uses 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 a 2'S complementary code and an offset binary code are also converted to each other. Alternatively, it can be applied in exactly the same manner only by changing a predetermined logical value. Also, n has been described only in the case of “2” and “4”, but n may be any integer of “2 or more”. In this case, since the number of cases of the compression residue varies depending on the value of n, it goes without saying that the word length of the compression residue data may be changed.

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

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

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

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

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

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

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

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

【図7】従来の折れ線符号を用いた圧縮符号を復号して
伸長した復元符号の特性図
FIG. 7 is a characteristic diagram of a restoration code obtained by decoding and expanding a compression 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 Continuous data Q0 run length L1 Compressed continuous data Q1 run length L2 Range data Q2 run length T0, T1 Inverted bit D0 Remaining part data D1, D2 Mantissa data W0 Code length of original data W1, W2 Code length of compressed data

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 元データとなる直線符号すなわち、上位
で所定論理のビットが連続する連続データQ0と、前記
連続データQ0の連続性をブレークする反転ビットT0
と、前記反転ビットT0以降の下位データD0とで構成
される直線符号を符号化して、圧縮データすなわち、前
記連続データQ0のランレングスを圧縮して得られる圧
縮連続データQ1と、前記圧縮連続データQ1の連続性
をブレークする反転ビットT1と、前記ランレングスを
圧縮する時に生じる剰余F1を表す圧縮剰余データC1
と、前記下位データD0を丸めて得るようにした仮数デ
ータD1とで構成する圧縮データに変換するランレング
ス1/n圧縮フローティング符号方法。ただし、前記連
続データQ0のランレングスをL0、前記圧縮連続デー
タQ1のランレングスをL1、nを2以上の整数とする
とき、 L1=int(L0/n) F1=L0 mod n とする。
1. A straight line code as original data, that is, continuous data Q0 in which bits of a predetermined logic are continuous in the upper order, and an inversion bit T0 that breaks the continuity of the continuous data Q0.
And a low-order data D0 after the inversion bit T0 are encoded to encode compressed data, that is, compressed continuous data Q1 obtained by compressing the run length of the continuous data Q0, and the compressed continuous data. Inversion bit T1 that breaks the continuity of Q1 and compressed residue data C1 that represents the residue F1 that occurs when the run length is compressed.
And a run length 1 / n compression floating coding method for converting the lower data D0 into compressed data composed of mantissa data D1 obtained by rounding. 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, compression remainder data C1, and mantissa data D1.
An n-compression floating code method.
【請求項3】 元データとなる直線符号すなわち、極性
ビットPと、この極性ビットPを除いて上位で所定論理
のビットが連続する連続データQ0と、前記連続データ
Q0の連続性をブレークする反転ビットT0と、前記反
転ビットT0以降の下位データD0とで構成される直線
符号を、符号化して、圧縮データすなわち、極性ビット
Pと、前記連続データQ0のランレングスを圧縮して得
られる圧縮連続データQ1と、前記圧縮連続データQ1
の連続性をブレークする反転ビット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 as the original data, that is, a polarity bit P, continuous data Q0 in which bits of a predetermined logic are continuous except the polarity bit P, and inversion that breaks the continuity of the continuous data Q0. A straight line code composed of a bit T0 and lower data D0 after the inversion bit T0 is encoded to obtain compressed data, that is, a compression bit, that is, a polarity bit P and a continuous length obtained by compressing the run length of the continuous data Q0. Data Q1 and the compressed continuous data Q1
To a compressed data composed of an inversion bit T1 that breaks the continuity of C, compressed residual data C1 representing a residual F1 generated when the run length is compressed, and mantissa data D1 obtained by rounding the lower data D0. A run length 1 / n compressed floating code method for converting. 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 compression floating code method according to claim 1, wherein the compression residue data C1 is a complement of the compression residue F1.
【請求項5】 圧縮データは所定の符号長W1となるよ
うにデータD1の下位ビットを削除する請求項1または
3記載のランレングス1/n圧縮フローティング符号方
法。
5. The run length 1 / n compression floating coding method according to claim 1, wherein the 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圧縮
フローティング符号方法。
6. The method according to claim 1, wherein L1 and F1 are L1 = int (Lmin / n) F1 = Lmin mod n, where Lmin is a smaller one of the predetermined limit length LS and the run length L0. Run length 1 / n compression floating code method.
【請求項7】 圧縮データは上位から、極性ビットP、
圧縮連続データQ1、反転ビットT1、圧縮剰余データ
C1、仮数データD1の順に配置する請求項3記載のラ
ンレングス1/n圧縮フローティング符号方法。
7. The compressed data are, from the upper order, a polarity bit P,
4. The run length 1 / n compression floating coding method according to claim 3, wherein the compressed continuous data Q1, the inverted bit T1, the compression 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圧縮
フローティング符号方法。
8. When the smaller of the predetermined limit length LS and the run length L0 is Lmin, L1 and F1 are L1 = int (Lmin / n) F1 = Lmin mod n, and the run length L0 is 7. The run length 1 / n compression floating code method according to claim 6, wherein when the length is larger than the limit length LS, the inversion bit T0 and the inversion bit T1 are omitted and left justified.
【請求項9】 所定の制限長LSとランレングスL0の
小さい方をLminとするとき、L1およびF1は、 L1=int(Lmin/n) F1=Lmin mod n であって、ランレングスL0が前記制限長LSより大な
るときは反転ビットT0および反転ビットT1を省略し
て前詰めとし、圧縮剰余F1を表す圧縮剰余データC1
を所定の固定値にする請求項6記載のランレングス1/
n圧縮フローティング符号方法。
9. When the smaller of the predetermined limit length LS and the run length L0 is Lmin, L1 and F1 are L1 = int (Lmin / n) F1 = Lmin mod n, and the run length L0 is When it is larger than the limit length LS, the inversion bit T0 and the inversion bit T1 are omitted and left-justified, and the compression remainder data C1 representing the compression remainder F1
Is set to a predetermined fixed value.
An 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 upper bits of a predetermined logic are continuous, and an inversion bit T1 that breaks the continuity of the compressed continuous data Q1.
And the compressed residual data C1 representing the residual F1 generated when the run length is compressed, and the compressed data composed of the mantissa data D1 are decoded, and the linear code serving as the original data, that is, the bits of a predetermined logical value at the higher order are continuous. 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 converted to a linear code composed of
Decoding method of compressed floating code. 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 compression remainder data C1 is F1, and n is an integer of 2 or more, L0 = L1 * n + F1 D0 = Let it be 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 とする。
11. Compressed data, ie polarity bit P
A compressed continuous data Q1 in which bits of a predetermined logic are continuous at a higher level excluding the polarity bit P, and the compressed continuous data Q.
An inversion bit T1 that breaks the continuity of 1s, compressed remainder data C1 that represents a remainder F1 generated when compressing run lengths, and mantissa data D1.
A straight line code that is decoded and becomes original data, that is, a polarity bit P, continuous data Q0 in which bits of a predetermined logic are continuous in a higher order except the polarity bit P, and the continuous data Q
A decoding method of a run length 1 / n compression floating code for converting into a linear code composed of an inversion bit T0 that breaks the continuity of 0s and lower data D0 after the inversion 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 compression remainder data C1 is F1, and n is an integer of 2 or more, L0 = L1 * n + F1 D0 = Let it be D1.
【請求項12】 復号した直線符号は所定の符号長W0
になるようにデータD0の下位に固定値「100・・
・」または「011・・・」または「000・・・」ま
たは「111・・・」を追加するか、または下位のビッ
トを削除する請求項10または11記載のランレングス
1/n圧縮フローティング符号の復号方法。
12. The decoded linear code has a predetermined code length W0.
Fixed value "100 ...
. "Or" 011 ... "or" 000 ... "or" 111 ... ", or deletes the lower bits. The run length 1 / n compression floating code according to claim 10 or 11. Decryption method.
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 JPH04286421A (en) 1992-10-12
JPH07101849B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1653627B1 (en) * 2003-07-29 2009-09-30 Panasonic Corporation Audio signal band expansion apparatus and method

Also Published As

Publication number Publication date
JPH04286421A (en) 1992-10-12

Similar Documents

Publication Publication Date Title
US5329475A (en) Data round-off device for rounding-off m-bit digital data into (m-n) bit digital data
CN1208513A (en) Data compression/expansion using Rice encoder/decoder
JP3339335B2 (en) Compression encoding / decoding method
JPH02156789A (en) Picture signal compression coding device and expansion reproducing device
JP2994265B2 (en) Encoding and decoding apparatus for RLL code data
JP2000059227A (en) Encoding / decoding device and encoding / decoding method
US5739783A (en) Data recording apparatus
JP3462066B2 (en) ADPCM compression device, ADPCM decompression device, and ADPCM compression / decompression device
JPH07101849B2 (en) Run length 1 / n compression floating code method and decoding method thereof
JPH07153195A (en) Digital recording device
JP3092299B2 (en) Decoding device for run-length 1 / n compressed floating code
JPH0795691B2 (en) Run length 1 / n compression floating encoder
JPH0846526A (en) Digital signal encoding method, apparatus, decoding apparatus, and encoding / decoding method
JPH061903B2 (en) Signal transmission device
JP3282450B2 (en) Code decoding device
JP3334437B2 (en) Encoding method, encoding device, recording medium, and decoding device
JPH0535612B2 (en)
US4855741A (en) Logarithmic digital level display device
JPH061904B2 (en) Signal transmission device
JP3521487B2 (en) Signal processing device
JPH0642631B2 (en) Signal transmission device
JPH1011898A (en) Digital sound recorder
JPH0482419A (en) audio signal encoding device
JPS63126322A (en) Encoder
JP2700333B2 (en) 7/8 NRZI code conversion method

Legal Events

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