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
JPH0795691B2 - Run length 1 / n compression floating encoder - Google Patents
[go: Go Back, main page]

JPH0795691B2 - Run length 1 / n compression floating encoder - Google Patents

Run length 1 / n compression floating encoder

Info

Publication number
JPH0795691B2
JPH0795691B2 JP3346116A JP34611691A JPH0795691B2 JP H0795691 B2 JPH0795691 B2 JP H0795691B2 JP 3346116 A JP3346116 A JP 3346116A JP 34611691 A JP34611691 A JP 34611691A JP H0795691 B2 JPH0795691 B2 JP H0795691B2
Authority
JP
Japan
Prior art keywords
data
compression
run length
compressed
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3346116A
Other languages
Japanese (ja)
Other versions
JPH05183445A (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 JP3346116A priority Critical patent/JPH0795691B2/en
Publication of JPH05183445A publication Critical patent/JPH05183445A/en
Publication of JPH0795691B2 publication Critical patent/JPH0795691B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はイメージデータの高品質
な記録伝送に用いる符号圧縮装置であって、特に広い入
力範囲に渡って瞬時S/N比特性が良好なランレングス
1/n圧縮フローティング符号装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code compression device 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 device.

【0002】[0002]

【従来の技術】従来の衛星PCM放送やデジタル・オー
ディオ・テープレコーダ(以下、DATと略す)におい
ては、圧縮による品質劣化を抑えながらハードウェア量
とのトレードオフを考慮し、比較的軽い圧縮率を採用し
ている。これらの例としては折れ線符号があり、DAT
においては12ビットの13折れ線符号が用いられてい
る。詳細な技術規格は日本電子機械工業会発行の「EI
AJ CP−2305DAT Cassette Sy
stem Part1: Dimensionand
Characteristics」に示されている。
2. Description of the Related Art In conventional satellite PCM broadcasting and digital audio tape recorders (hereinafter abbreviated as DAT), a comparatively light compression rate 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 ".

【0003】図19(b)はDATに使用されている1
3折れ線符号(12ビット)の変換方法を説明する図で
あり、正の範囲を示す。図中の枠内において()内の数
字は10進数、それ以外の数字は2進数である。2進数
の最上位ビット(以下、MSBという)は極性ビットP
であり、正の範囲では「0」、負の範囲では「1」であ
る。図中の「ABCDEFGH」は「0000000
0」から「11111111」までの値であり、「*」
は任意の2進数である。また、L0は元データの極性ビ
ットを除いた上位で「0」が連続する連続データQ0の
ランレングスである。
FIG. 19 (b) is a block diagram of 1 used in DAT.
It is a figure explaining the conversion method of 3 polygonal line code (12 bits), and shows a positive range. In the frame in the figure, the numbers in parentheses are decimal numbers, and the other numbers are binary numbers. The most significant bit of the binary number (hereinafter referred to as MSB) is the polarity bit P
And is "0" in the positive range and "1" in the negative range. "ABCDEFGH" in the figure is "0000000".
It is a value from "0" to "11111111", 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.

【0004】以上のような符号方法について、以下その
手順について説明する。図19(b)は符号化と復号化
の変換を具体的に示す図である。
With respect to the above coding method, the procedure will be described below. FIG. 19B is a diagram specifically showing conversion between encoding and decoding.

【0005】先ず、13折れ線符号(12ビット)の符
号化の方法および装置について説明する。16ビットの
領域を正の範囲で7分割し、それぞれの領域に応じてシ
フト量を操作する。同図より明らかな通り、領域分割は
MSB側から見て初めに「1」のある位置により行え
る。言い換えると、極性ビットを除いた「0」の連続デ
ータのランレングスL0で決定できる。ランレングスL
0を「0」から「7以上」までの8通りとし、L0の補
数をレンジデータとして指数表現する。例えば、元デー
タが「1216(10進)」すなわち「0000010
011000000(2進)」の場合、連続データQ0
のランレングスL0は「4」となる。レンジデータQ2
は「100」を反転した「011」である。また、「A
BCDEFGH」は「00110000」である。従っ
て、出力データは「001100110000」とな
る。図19(a)は上記の概念を図式化して示した図で
ある。出力データは極性ビットPと、領域を表すレンジ
データQ2と、シフトした仮数データD2とを合成して
12ビットにする。レンジデータQ2は固定語長であ
り、3ビットである。元データが2’S(トゥーズ)コ
ンプリメンタリである場合には、負の範囲はP以下のビ
ットを全てビット反転させることにより、正の範囲と全
く同様の符号化ができる。このように、負の範囲でビッ
ト反転させた符号を折り返し2進符号と呼ぶ。以下の説
明は特に断らない限り、折り返し2進符号を用いること
にするが、2’Sコンプリメンタリとの変換は相互に可
能である。
First, a method and apparatus 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 can be performed at a position where "1" is initially present 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. Run length L
There are 8 types of 0 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, “0000010”.
01000000 (binary) ", continuous data Q0
The run length L0 is “4”. Range data Q2
Is “011” which is the inverse of “100”. Also, "A
"BCDEFGH" is "00110000". Therefore, the output data is "001100110000". FIG. 19A is a diagram schematically showing the above concept. The output data is made up of 12 bits by synthesizing the polarity bit P, the range data Q2 representing the area, and the shifted mantissa data D2. Range data Q2 has a fixed word length of 3 bits. When the original data is 2'S (Tooth) 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 2'S complementary is mutually possible.

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

【0007】復号化は、折れ線符号のレンジデータQ2
の位置が既知であるので、極性ビットPの以降3ビット
をみて、指数部すなわちレンジを再生する。仮数データ
D2の位置も既知であるので、レンジデータQ2によっ
て直線符号(16ビット)のランレングスL0を復元
し、反転ビットT0と、その後に仮数データD2を付け
る。元データの符号長W0に満たない時は、固定値を充
てる。このような手順に従って、復号化の処理を行う。
For decoding, the range data Q2 of the polygonal line code is used.
Since the position of 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 run length L0 of the linear code (16 bits) is restored by the range data Q2, and the inversion bit T0 and the mantissa data D2 are added after that. 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.

【0008】以上説明した符号化および復号化を行う
と、情報の丸めにより表現精度が変更される。情報の丸
めはシフト操作により発生する。ランレングスL0が
「6」と「7以上」では同じとするので、シフトは7種
類となる。よって、正と負で14種類となるが、中心の
領域では正と負で同じシフト操作をするので、全領域の
入出力特性は13種類の折れ線で表すことができる。
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.

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

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

【0011】[0011]

【表1】 [Table 1]

【0012】図20は従来の折れ線符号を用いた符号装
置の圧縮符号を復号装置で復号して伸長した復元符号の
特性図である。同図の横軸に入力レベル、縦軸に瞬時S
/N比を示す。ただし、瞬時S/N比は矩形波のS/N
比向上分の約2dBを、簡単のため省略している。同図
において、Z1は13折れ線符号(12ビット)の特性
を示すものである。Z1について説明する。入力レベル
0dBは符号で表現できる最大の正弦波の振幅を基準に
する。直線符号の「P11111111111111
1」がこれに相当する。入力レベル0dBないし−6d
Bの範囲では直線符号で「P1***・・・」となり、
(表1)よりランレングスL0が「0」であるので分解
能は10ビットである。10ビットデータの量子化ノイ
ズは1ビット当り−6dBとして−60dBになる。従
って、入力レベル0dBないし−6dBの瞬時S/N比
は60dBないし54dBとなる。
FIG. 20 is a characteristic diagram of a decompressed code obtained by decoding and decompressing a compression code of a conventional coding device using a polygonal line code with a decoding device. In the figure, the horizontal axis is the input level and the vertical axis is the instantaneous S.
/ N ratio is shown. However, the instantaneous S / N ratio is the square wave S / N.
About 2 dB of the ratio improvement is omitted for simplicity. In the figure, Z1 shows 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 "P11111111111111
1 ”corresponds to this. Input level 0dB to -6d
In the range of B, the linear code is "P1 *** ...",
From Table 1, the run length L0 is "0", so 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.

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

【0014】[0014]

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

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

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

【0017】[0017]

【表2】 [Table 2]

【0018】(表2)に示す折れ線符号(16ビット)
を用いて圧縮符号を復号して伸長する復元符号の特性図
は図20中のZ2のようになる。この改良された方法に
よる装置では瞬時S/N比が全領域で24dBだけ向上
するが、入力レベル−72dBないし−96dBの範囲
では瞬時S/N比が48dB以下であり不十分である。
従って、この信号を増幅器で増幅すれば、その量子化ノ
イズが聴覚検知されるという問題を有している。
Line code (16 bits) shown in (Table 2)
The characteristic diagram of the decompression code that decodes and decompresses the compression code using is as shown by Z2 in FIG. In the device according to this improved method, the instantaneous S / N ratio is improved by 24 dB in the entire region, but in the input level range of -72 dB to -96 dB, the instantaneous S / N ratio is 48 dB 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.

【0019】本発明は上記従来の問題点を解決するもの
で、入力レベル0ないし−96dBの広い範囲におい
て、瞬時S/N比の聴覚検知限界である約48dB以上
を確保することを目的とする。
The present invention solves the above-mentioned conventional problems, and an object thereof is to secure a hearing detection limit of about 48 dB or more of an instantaneous S / N ratio in a wide range of input level 0 to -96 dB. .

【0020】[0020]

【課題を解決するための手段】この目的を達成するため
に本発明のランレングス1/n圧縮フローティング符号装
置は、上位で所定論理のビットが連続する連続データQ
0とQ0の連続性をブレークする反転ビットT0および
T0以降の下位データD0で構成される直線符号を入力
する入力部と、Q0のランレングスを1/nに圧縮した
Q1を格納するとともにQ1の連続性をブレークする反
転ビットT1とD0を丸めた仮数データD1を格納する
圧縮手段と、Q0のランレングスを1/nに圧縮する時
に生じる剰余F1を表す圧縮剰余データC1を記憶する
C1メモリと、圧縮手段から圧縮連続データQ1および
反転ビットT1を読み出し、C1メモリから圧縮剰余デ
ータC1を読み出し、圧縮手段から仮数データD1を読
み出して圧縮データを出力する出力部とを備えている。
In order to achieve this object, a run-length 1 / n compression floating encoder according to the present invention has a continuous data Q in which bits of a predetermined logic are consecutive in a high order.
An input unit for inputting a linear code composed of inverted bits T0 and lower data D0 after T0 that breaks the continuity of 0 and Q0, and stores Q1 in which the run length of Q0 is compressed to 1 / n and Compression means for storing inversion bit T1 that breaks continuity and mantissa data D1 obtained by rounding D0, and C1 memory for storing compression residue data C1 representing residue F1 generated when the run length of Q0 is compressed to 1 / n An output unit for reading the compressed continuous data Q1 and the inversion bit T1 from the compression means, the compression remainder data C1 from the C1 memory, the mantissa data D1 from the compression means, and outputting the compressed data.

【0021】ただし、連続データQ0のランレングスを
L0、圧縮連続データQ1のランレングスをL1、nを
2以上の整数とするとき、 L1=int(L0/n) F1=L0 mod n とする。
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.

【0022】[0022]

【作用】本発明は上記した装置により、入力部から取り
込んだ元データの冗長なランレングスL0を約1/nに
圧縮して圧縮手段に格納する。同時にC1メモリは圧縮
時に生じる剰余F1を表す圧縮剰余データC1を記憶す
る。出力部は圧縮手段から圧縮したデータを、そして圧
縮剰余データC1メモリから圧縮剰余データC1を読み
出して圧縮データを出力する。
According to the present invention, the redundant run length L0 of the original data fetched from the input section is compressed to about 1 / n and stored in the compression means by the above-mentioned device. At the same time, the C1 memory stores the compression residue data C1 representing the residue F1 generated during compression. The output unit reads the data compressed by the compression means and the compression residue data C1 from the compression residue data C1 memory and outputs the compressed data.

【0023】圧縮データは圧縮連続データと反転ビット
と圧縮剰余データとで指数部すなわちレンジを構成す
る。指数部すなわちレンジは元データのランレングスに
応じて変化する。すなわち、元データのランレングスが
小さい時は指数部すなわちレンジを少ないビット数で特
定し、ランレングスが大きくなるとビット数をさらに割
り当てて指数部すなわちレンジを特定する。また、符号
全体の語長が有限で所定の値とする場合、仮数部へ割り
当てるビット数がランレングスに応じて変更される。こ
れらの作用により、出力部から出力する圧縮符号の表現
する空間が拡張され、また表現精度を最大にできる。
In the compressed data, the exponential part, that is, the range is constituted by the compressed continuous data, the inversion bit and the compressed remainder data. The exponent part or range changes according to the run length of the original data. That is, when the run length of the original data is small, the exponent part or range is specified with a small number of bits, and when the run length is large, the bit number is further allocated to specify the exponent part or range. 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 expressed by the compression code output from the output unit is expanded, and the expression accuracy can be maximized.

【0024】[0024]

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

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

【0026】2’Sコンプリメントで表現されるMSB
ファーストのシリアルデータが入力部1へ入力される。
入力部1で2’Sコンプリメントから折り返し2進符号
へ変換する。折り返し2進符号へ変換するのは以降の処
理が簡単になるためである。入力部1において、極性ビ
ットであるMSBをMSBメモリ2に格納しておき、格
納されたMSBでMSB以下のビットを反転して変換す
る。折り返し2進符号は圧縮手段3へ供給するととも
に、C1メモリ4へも供給する。圧縮手段3はシフトイ
ネーブル機能付きのシフトレジスタで構成する。すなわ
ち、入力データのうちランレングスの部分についてはシ
フトのイネーブルを1つおきにすることにより、ランレ
ングスを2/nに圧縮して圧縮手段3の内部へ格納す
る。C1メモリ4は圧縮手段3で1つおきに間引く際の
剰余をタイミング生成部6のカウンタ値をデコードする
ことにより得てメモリに格納する。これらのデータを出
力部5で多重化した後、逆変換した2’Sコンプリメン
トの出力データとして出力する。タイミング生成部6は
各部にそれぞれのタイミング信号を供給する。
MSB represented by 2'S complement
First serial data is input to the input unit 1.
The input unit 1 converts the 2'S complement into a folded binary code. The conversion to the folded binary code is because the subsequent processing is simplified. In the input unit 1, the MSB which is a polarity bit is stored in the MSB memory 2, and the bits below the MSB are inverted and converted by the stored MSB. The folded binary code is supplied to the compression means 3 and also to the C1 memory 4. The compression means 3 is composed of a shift register having a shift enable function. That is, with respect to the run length portion of the input data, the run length is compressed to 2 / n and stored in the compression means 3 by setting the shift enable to every other shift. The C1 memory 4 obtains the surplus when thinning out every other by the compression means 3 by decoding the counter value of the timing generation unit 6 and stores it in the memory. These data are multiplexed by the output unit 5 and then output as output data of the inversely converted 2'S complement. The timing generation unit 6 supplies each timing signal to each unit.

【0027】図2は第1の実施例における概略の動作タ
イミング図である。入力データの形式は前記したように
2’Sコンプリメントで表現されるMSBファーストの
シリアルデータであり、28ビットデータを前詰めにし
て入力される。SFCKはそのビットクロックでありサ
ンプリング周波数の64倍のクロックであり、Lチャン
ネルとRチャンネルを多重しているのでLチャンネルだ
けでは32クロック分の時間が割り当てられる。LRC
KはLチャンネルとRチャンネルを識別するクロックで
ある。後ろの4ビットはゼロデータで埋められる。この
ような入力データのLチャンネル分を次のRチャンネル
の入力タイミングで出力する。圧縮してビット数を16
にした出力データはSFCKの2周期で1ビットを出力
する。他の方法としてはSFCKの1周期で1ビットを
出力し入力データと同様に前詰めとしてもよい。Rチャ
ンネルのデータを圧縮するには図1の符号装置8を2つ
配置して並列処理する。図3はLチャンネルとRチャン
ネルを圧縮する符号装置のブロック図である。図3にお
いて、符号装置8Aと符号装置8Bは同じ装置であり、
LRCKの表と裏でそれぞれ動作するよう入力802B
の前にインバータ90を入れる。出力データ804Aと
出力データ804Bはマルチプレクサ91で多重して多
重出力データ904を出力データCMPDとして出力す
る。
FIG. 2 is a schematic operation timing chart in the first embodiment. The format of the input data is MSB first serial data represented by the 2'S complement as described above, and 28-bit data is input justified. SFCK is the bit clock and a clock 64 times the sampling frequency. Since the L channel and the R channel are multiplexed, the time for 32 clocks is allocated only to the L channel. LRC
K is a clock for identifying the L channel and the R channel. The last 4 bits are filled with zero data. The L channel portion of such input data is output at the input timing of the next R channel. Compressed to 16 bits
The output data set to 1 outputs 1 bit in two cycles of SFCK. As another method, one bit may be output in one cycle of SFCK and left-justified as in the case of the input data. In order to compress the R channel data, two encoders 8 in FIG. 1 are arranged and processed in parallel. FIG. 3 is a block diagram of an encoder for compressing the L channel and the R channel. In FIG. 3, the encoding device 8A and the encoding device 8B are the same device,
Input 802B to operate on the front and back of LRCK respectively
Insert the inverter 90 in front of. The output data 804A and the output data 804B are multiplexed by the multiplexer 91 and the multiplexed output data 904 is output as the output data CMPD.

【0028】以下さらに詳細に説明する。図4は圧縮手
段3の具体回路図である。圧縮手段は2種類14個のシ
フトレジスタで構成される。シフトレジスタ301は非
同期セット付き同期イネーブル型シフトレジスタであ
り、シフトレジスタ302ないし314は非同期リセッ
ト付き同期イネーブル型シフトレジスタである。これら
を順次シリアルに接続し、共通のクロックSFCKと、
共通のイネーブル信号SFENと、共通の非同期ロード
信号NL0Tを供給する。同図において、入力データS
IDTはイネーブル信号SFENが論理「H」の時クロ
ックSFCKの立ち上がりでシフトレジスタ301にラ
ッチされ、同時に内部データは順次右側へシフトする。
非同期ロード信号NL0Tを供給すると、ダイレクトに
データ”100・・・0”が内部にロードされる。図5
(a)および図5(b)はそれぞれシフトレジスタ30
1,シフトレジスタ302ないし314の内部回路図で
ある。基本回路であるので動作説明は省略する。
Further details will be described below. FIG. 4 is a specific circuit diagram of the compression means 3. The compression means is composed of 14 shift registers of two types. The shift register 301 is a synchronous enable type shift register with an asynchronous set, and the shift registers 302 to 314 are synchronous enable type shift registers with an asynchronous reset. These are serially connected in series, and the common clock SFCK and
The common enable signal SFEN and the common asynchronous load signal NL0T are supplied. In the figure, input data S
When the enable signal SFEN is logic "H", the IDT is latched in the shift register 301 at the rising edge of the clock SFCK, and at the same time, the internal data is sequentially shifted to the right.
When the asynchronous load signal NL0T is supplied, the data “100 ... 0” is directly loaded internally. Figure 5
5A and 5B respectively show the shift register 30.
1 is an internal circuit diagram of shift registers 302 to 314. FIG. Since it is a basic circuit, its explanation is omitted.

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

【0030】図7はC1メモリ4の具体回路図である。
41はJK型フリップフロップ(以下、JKFFとい
う)である。折り返し2進符号にした入力データSID
TのMSBを除いたデータを入力端子Kへ供給し、最初
に現れる論理「H」で出力端子Qを論理「H」に保持す
る。また、L27TとオアをとっているのでLチャンネ
ルの第27ビット以降のタイミングでは必ず出力端子Q
が論理「H」に保持される。この出力端子Qのデータを
LDAT0とする。セレクタ42とDFF43からなる
同期イネーブル付きDFFの入力データとしてBITA
D0を供給する。BITAD0はLチャンネルのビット
スロットの番号をアドレスデータとするもののLSBで
ある。したがって、ビットスロットの番号の奇遇を表
す。イネーブルデータはLDAT0を供給する。ただ
し、イネーブルデータが論理「L」の時データラッチ
し、論理「H」のときデータを保持する。したがって、
LDAT0が論理「H」になるとその時のBITAD0
すなわちビットスロットの番号の奇遇をラッチして以降
これを保持する。この保持したデータをLC1として出
力する。なお、JKFF41はLチャンネルの初期にN
L0Tで初期化される。
FIG. 7 is a specific circuit diagram of the C1 memory 4.
Reference numeral 41 is a JK type flip-flop (hereinafter referred to as JKFF). Input data SID converted to binary code
Data excluding the MSB of T is supplied to the input terminal K, and the output terminal Q is held at the logic "H" at the logic "H" that appears first. Also, since it is ORed with L27T, the output terminal Q is always used at the timing after the 27th bit of the L channel.
Are held at logic "H". The data at the output terminal Q is LDAT0. BITA is used as input data of the DFF with synchronization enable, which is composed of the selector 42 and the DFF 43.
Supply D0. BITAD0 is the LSB whose address data is the bit slot number of the L channel. Therefore, it represents the oddness of the bit slot number. Enable data supplies LDAT0. However, when the enable data is logic "L", the data is latched, and when the enable data is logic "H", the data is held. Therefore,
BITAD0 at that time when LDAT0 becomes logic "H"
That is, the odd number of the bit slot number is latched and held thereafter. The held data is output as LC1. Note that JKFF41 has N channels at the beginning of the L channel.
Initialized at L0T.

【0031】図8はタイミング生成部6の具体回路図で
ある。内部の動作説明については省略し、出力の信号に
ついて説明する。
FIG. 8 is a specific circuit diagram of the timing generator 6. The description of the internal operation will be omitted, and the output signal will be described.

【0032】LSRENDはLチャンネルの初期に論理
「L」にし、LチャンネルのESR14の論理「H」で
論理「H」を保持する。すなわち、圧縮手段3にロード
した”10000・・・0”のデータが順次シフトして
シフトレジスタ301の”1”がESR14に到達した
らLSRENDが論理「H」を保持する。
LSREND is set to the logic "L" at the beginning of the L channel, and the logic "H" is held by the logic "H" of the ESR 14 of the L channel. That is, when the "10000 ... 0" data loaded in the compression means 3 is sequentially shifted and the "1" of the shift register 301 reaches the ESR 14, LSREND holds the logic "H".

【0033】SFENは圧縮手段3のシフトイネーブル
を制御するのに使うので、SIDTのシフトインと圧縮
データのシフトアウトで切り換えている。
Since SFEN is used to control the shift enable of the compression means 3, switching is performed by shift-in of SIDT and shift-out of compressed data.

【0034】SIDTのシフトイン時には、NL0Tが
論理「H」で、LSRENDが論理で、LDAT0が論
理「H」なら論理「H」を出力する。また、NL0Tが
論理「H」で、LSRENDが論理「L」で、LDAT
0が論理「L」ならBITAD0が論理「L」の時に論
理「H」を出力する。
When SIDT is shifted in, if NL0T is logic "H", LSREND is logic, and LDAT0 is logic "H", logic "H" is output. Further, NL0T is logic “H”, LSREND is logic “L”, and LDAT is
If 0 is a logic "L", a logic "H" is output when BITAD0 is a logic "L".

【0035】圧縮データのシフトアウト時には、ESR
14から圧縮されたランレングスの直後にある反転ビッ
トT0を検出してRSRT0を論理「H」に保持する。
このRSRT0をSFCKで遅延させRSRT0D,R
SRT0DD,RSRT0RDDDを生成する。これら
より圧縮データを出力する時に圧縮剰余データC1の位
置でシフトイネーブルをマスクするLC1MSKおよび
出力部5で圧縮剰余データC1を選択するための切り換
え信号LC1Tをそれぞれ生成する。これらを用いてS
FENはBITAD0が論理「H」,LC1MSKが論
理「L」の時に論理「H」を出力する。
When the compressed data is shifted out, ESR is performed.
The inverted bit T0 immediately after the compressed run length from 14 is detected and RSRT0 is held at logic "H".
This RSRT0 is delayed by SFCK and RSRT0D, R
SRT0DD and RSRT0RDDD are generated. From these, when outputting compressed data, LC1MSK for masking shift enable at the position of the compression residue data C1 and the switching signal LC1T for selecting the compression residue data C1 at the output unit 5 are respectively generated. S using these
FEN outputs logic "H" when BITAD0 is logic "H" and LC1MSK is logic "L".

【0036】LC1Tは前述した通り、出力部5で圧縮
剰余データC1を選択するための切り換え信号である。
As described above, LC1T is a switching signal for selecting the compression remainder data C1 at the output section 5.

【0037】LMSBTは同じく出力部5でMSBデー
タを選択するための切り換え信号である。
Similarly, LMSBT is a switching signal for selecting the MSB data at the output section 5.

【0038】図9(a)および(b)はそれぞれ入力部
1および出力部5の具体回路図である。詳細な説明は省
略するが、出力部5でDFFを2段介して出力している
のは、セレクタ出力にハザードを生じるのでこれを整形
するのと、圧縮手段3の出力タイミングを調整するため
である。
FIGS. 9A and 9B are concrete circuit diagrams of the input section 1 and the output section 5, respectively. Although detailed description is omitted, the reason why the output section 5 outputs the DFF through two stages is to shape the selector output because it causes a hazard, and to adjust the output timing of the compression means 3. is there.

【0039】以上説明した第1の実施例について、次に
タイミングチャートとともに動作を説明する。図10な
いし図13は圧縮手段3の入出力データおよびタイミン
グ生成部6のタイミング処理を説明する図である。入力
データのランレングスに応じてそれぞれ、図10はラン
レングスが0の場合、図11はランレングスが1の場
合、図12はランレングスが20の場合、図13はラン
レングスが26の場合のタイミングチャートである。入
力データSIDTは折り返し2進符号であり、極性ビッ
トを除けばランレングスL0の部分はデータ”0”が連
なる。入力データをシフトレジスタ301ないしシフト
レジスタ314に順次シフト入力する。ESR1ないし
ESR14はシフトレジスタ301ないしシフトレジス
タ314の内部出力データである。圧縮手段3への入力
過程では初期化パルスNL0Tで初期化した後、ランレ
ングスに応じてタイミング生成部6で生成するLDAT
0を基にシフト動作を制御する。反転ビットT0と残り
部分のデータD0をシフト入力し、全部で14ビットの
データを取り込んだらタイミング生成部6でLSREN
Dを立て、これを基にシフト入力を止める。シフト動作
を直接制御するのはSFENである。
The operation of the first embodiment described above will be described with reference to the timing chart. 10 to 13 are diagrams for explaining the input / output data of the compression means 3 and the timing processing of the timing generation unit 6. FIG. 10 shows a case where the run length is 0, FIG. 11 shows a case where the run length is 1, FIG. 12 shows a case where the run length is 20, and FIG. 13 shows a case where the run length is 26 according to the run length of the input data. It is a timing chart. The input data SIDT is a folded binary code, and data "0" is continuous in the run length L0 portion except for the polarity bit. Input data is sequentially shift-input to the shift registers 301 to 314. ESR1 to ESR14 are internal output data of the shift registers 301 to 314. In the input process to the compression means 3, after initialization with the initialization pulse NL0T, the LDAT generated by the timing generator 6 according to the run length.
The shift operation is controlled based on 0. When the inverted bit T0 and the remaining data D0 are shift-inputted and a total of 14 bits of data are fetched, the timing generation unit 6 outputs LSREN.
Set D and stop shift input based on this. SFEN directly controls the shift operation.

【0040】例えば図12において入力データは、MS
B、20個の”0”、反転ビットT0の”1”、残り部
分のデータD0”ABC・・・”である。ランレングス
20の”0”の間はLDAT0が論理「L」であるの
で、0を除く偶数毎にSFENを論理「H」にしてシフ
トイネーブルにする。図12において、ランレングス2
0の”0”の間はLDAT0が論理「L」であるので、
0を除く偶数毎にSFENを論理「H」にしてシフトイ
ネーブルにする。したがって、ランレングスは1つおき
に間引かれて10になってシフト入力される。その後、
反転ビットT0以降はSFENを論理「H」にして連続
してシフトイネーブルにする。反転ビットT0と残り部
分のデータD0すなわち”1ABC”がシフト入力さ
れ、全体で14ビットをシフト入力するとLSREND
を立て、SFENを論理「L」にしてシフト動作をとめ
る。
For example, in FIG. 12, the input data is MS
B, 20 "0" s, "1" of the inversion bit T0, and the remaining data D0 "ABC ...". Since LDAT0 is logic "L" during "0" of the run length 20, SFEN is set to logic "H" for every even number except 0, and shift enable is performed. In FIG. 12, run length 2
Since LDAT0 is logic "L" while "0" of 0,
For every even number except 0, SFEN is set to logic "H" to enable shift. Therefore, every other run length is thinned out to 10 and shift input. afterwards,
After the inversion bit T0, SFEN is set to logic "H" to continuously enable shift. When the inverted bit T0 and the remaining data D0, that is, "1ABC", are shift-input, and 14 bits are shift-input as a whole, LSREND is input.
And SFEN is set to logic "L" to stop the shift operation.

【0041】なお、圧縮剰余データC1は、C1メモリ
4において、LDAT0の立ち上がりタイミングで、B
ITAD0をラッチして得られる。LDAT0の立ち上
がりタイミングにおいて、ビットスロットの奇遇を表す
BITAD0はMSBの1とランレングスの20で21
となるため”1”である。すなわち、ランレングス20
を2で除算した剰余”0”の補数”1”がC1メモリ4
にラッチして格納される。
The compressed remainder data C1 is stored in the C1 memory 4 at the rising timing of LDAT0 as B
It is obtained by latching ITAD0. At the rising timing of LDAT0, BITAD0, which indicates the oddness of the bit slot, is 1 for the MSB and 20 for the run length of 21.
Therefore, it is “1”. That is, run length 20
Is a C1 memory 4 that is the complement “1” of the remainder “0”
It is latched and stored in.

【0042】このようにして圧縮データを生成する。次
に、Lチャンネルの入力データの圧縮データをRチャン
ネルの入力データタイミングに取り出す過程について説
明する。
In this way, compressed data is generated. Next, a process of extracting the compressed data of the L channel input data at the R channel input data timing will be described.

【0043】図12において、LRCKの立ち上がり時
には圧縮手段3にMSBデータと圧縮剰余データC1を
除く圧縮データが用意されている。圧縮データの取り出
しは出力データタイミングに合わせるため、SFCKの
2倍周期で行う。そのため、シフトイネーブルSFEN
を1つおきに論理「H」にする。ランレングスL1は1
0であるので10個の”0”をシフト出力した後、反転
ビットT0”1”を出力すると、タイミング生成部6の
RSRT0が論理「H」となる。RSRT0を遅延した
RSRT0D,RSRT0DD,RSRT0DDDから
生成したLC1MSKでSFENをマスクしてその間だ
け論理「L」にする。したがって、反転ビットT0はそ
の間伸びる。これは圧縮剰余データC1を出力するスロ
ットを作るためである。以降は、残り部分のデータD
0”ABC”を順次出力する。このようにして圧縮デー
タを取り出す。
In FIG. 12, when the LRCK rises, the compression means 3 is prepared with the compressed data excluding the MSB data and the compression remainder data C1. The extraction of the compressed data is performed at twice the cycle of SFCK in order to match the output data timing. Therefore, the shift enable SFEN
Every other to logic "H". Run length L1 is 1
Since it is 0, when 10 "0" s are shifted and output, and then the inverted bit T0 "1" is output, RSRT0 of the timing generation unit 6 becomes logic "H". SFEN is masked by LC1MSK generated from RSRT0D, RSRT0DD, and RSRT0DDD, which are delayed RSRT0, and the logic is set to "L" only during that period. Therefore, the inversion bit T0 extends during that time. This is to create a slot for outputting the compressed remainder data C1. After that, the remaining data D
0 "ABC" is sequentially output. In this way, the compressed data is extracted.

【0044】次に、図13はランレングスが26の場合
であるが、図12と動作が異なるのは、以下の点であ
る。ランレングスの大きい場合にこれを打ち切るため固
定のタイミングでLDAT0を論理「H」にする。その
ため、タイミング生成部6でL27Tを生成しLDAT
0に反映させる。したがって、反転ビットT0の有無に
かかわらず、L27TのタイミングでLDAT0を論理
「H」にする。また、RSRT0をR24Tのタイミン
グで強制的に論理「H」にして圧縮剰余データC1を出
力するスロットを作る。図10および図11はランレン
グスが0および1の場合であるが、動作としては以上の
説明と同じになるので、省略する。
Next, FIG. 13 shows the case where the run length is 26, but the operation differs from FIG. 12 in the following points. When the run length is large, the LDAT0 is set to the logic "H" at a fixed timing in order to stop the run length. Therefore, the timing generation unit 6 generates L27T to generate LDAT.
Reflect to 0. Therefore, LDAT0 is set to logic "H" at the timing of L27T regardless of the presence or absence of the inversion bit T0. Further, RSRT0 is forcibly set to logic "H" at the timing of R24T to create a slot for outputting the compressed remainder data C1. 10 and 11 show the case where the run lengths are 0 and 1, however, the operation is the same as that described above, and will be omitted.

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

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

【0047】以下、図に従って、まず圧縮(符号化)の
手順について説明する。圧縮連続データQ1は連続デー
タQ0のランレングスL0を2で除算して整数化したラ
ンレングスL1の長さを有する連続データである。すな
わち、 L1=int(L0/2) である。また、整数除算の剰余項を圧縮剰余F1とする
と、 F1=L0 mod 2 である。
The procedure of compression (encoding) will be described below with reference to the drawings. 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 2. That is, L1 = int (L0 / 2). If the remainder term of the integer division is the compression remainder F1, then F1 = L0 mod 2.

【0048】反転ビットT1は圧縮連続データQ1のラ
ンをブレークする反転ビットである。圧縮剰余データC
1は圧縮剰余F1を補数表現したものである。また、仮
数データD1はデータD0の上位の部分データである。
ランレングス1/2圧縮フローティング符号は、極性ビ
ットP、圧縮連続データQ1、反転ビットT1、圧縮剰
余データC1、仮数データD1の順に配置する。
The inversion bit T1 is an inversion bit that breaks the run of the compressed continuous data Q1. Compressed residue data C
1 is the complement 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.

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

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

【0051】ランレングスL1が「0」であるので圧縮
連続データQ1は無い。圧縮剰余データC1は「1」で
ある。データD0は30ビットで、その内の上位13ビ
ット「ABCDEFGHIJKLM」が仮数データD1
である。ランレングス1/2圧縮フローティング符号は
極性ビットP、反転ビットT1、圧縮剰余データC1お
よび仮数データD1をこの順に配置して、「P11AB
CDEFGHIJKLM」である。
Since the run length L1 is "0", there is no compressed continuous data Q1. The compression residue data C1 is “1”. The data D0 is 30 bits, of which the upper 13 bits "ABCDEFGHIJKLM" is the mantissa data D1.
Is. 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 “P11AB
CDEFGHIJKLM ".

【0052】同様にして以下を求める。L0=1の時、 L1=int(1/2)=0 F1=1 mod 2 =1 より、圧縮連続データQ1は無く、圧縮剰余データC1
は「0」である。データD0の上位13ビット「ABC
DEFGHIJKLM」が仮数データD1である。ラン
レングス1/2圧縮フローティング符号は「P10AB
CDEFGHIJKLM」である。
Similarly, the following is obtained. When L0 = 1, L1 = int (1/2) = 0 F1 = 1 mod 2 = 1 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 ".

【0053】L0=2の時、 L1=int(2/2)=1 F1=2 mod 2 =0 より、連続データQ1は「0」であり、圧縮剰余データ
C1は「1」である。データD0の上位12ビット「A
BCDEFGHIJKL」が仮数データD1である。ラ
ンレングス1/2圧縮フローティング符号は「P011
ABCDEFGHIJKL」である。
When L0 = 2, 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 ".

【0054】L0=3の時、 L1=int(3/2)=1 F1=3 mod 2 =1 より、連続データQ1は「0」であり、圧縮剰余データ
C1は「0」である。データD0の上位12ビット「A
BCDEFGHIJKL」が仮数データD1である。ラ
ンレングス1/2圧縮フローティング符号は「P010
ABCDEFGHIJKL」である。
When L0 = 3, 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 ".

【0055】また、L0=20の時、 L1=int(20/2)=10 F1=20 mod 2 =0 より、連続データQ1は「0000000000」であ
り、圧縮剰余データC1は「1」である。データD0の
上位3ビット「ABC」が仮数データD1である。従っ
て、ランレングス1/2圧縮フローティング符号は「P
000000000011ABC」である。
Further, when L0 = 20, L1 = int (20/2) = 10 F1 = 20 mod 2 = 0 Therefore, the continuous data Q1 is "0000000000" and the compression remainder 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 ".

【0056】さらに、L0=28の時、 L1=int(28/2)=14 F1=28 mod 2 =0 より、連続データQ1は「0000000000000
0」であり、圧縮剰余データC1は「1」である。デー
タD0はなく、仮数データD1もない。従って、ランレ
ングス1/2圧縮フローティング符号は「P00000
0000000001」である。
Further, when L0 = 28, L1 = int (28/2) = 14 F1 = 28 mod 2 = 0 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 ".

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

【0058】次に、伸長(復号化)の手順について説明
する。復号化の手順は、圧縮データから極性ビットPを
除き、圧縮連続データQ1と反転ビットT1からランレ
ングスL1を得る。また、反転ビットT1の直後にある
圧縮剰余データC1(1ビット)と仮数データD1を得
る。圧縮剰余データC1を反転した圧縮剰余F1を得
る。
Next, the 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.

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

【0060】連続データQ0はランレングスL0の長さ
の「0」を連ねて復元する。連続データQ0の後に反転
ビットT0を付け、その後に仮数データD1を付加す
る。極性ビットPを先頭に付けて元データとするが、こ
の符号長がW0に満たない時は仮数データD1の下位に
固定値を充てて符号長をW0にする。この手順に従っ
て、復号化の処理を行う。
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.

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

【0062】L1=0かつF1=0の時、 L0=2*0+0=0 であるから、連続データQ0は無い。仮数データD1は
13ビットで「ABCDEFGHIJKLM」である。
このとき、元データは、極性ビットP、反転ビットT0
および仮数データD1をならべて、「P1ABCDEF
GHIJKLM***************」とな
る。なお、「***・・・」は固定値「011・・・」
を充てるものとする。
When L1 = 0 and F1 = 0, since L0 = 2 * 0 + 0 = 0, there is no continuous data Q0. The mantissa data D1 is 13 bits and is "ABCDEFGHIJKLM".
At this time, the original data 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.

【0063】以下同様に、L1=10かつF1=0の
時、 L0=2*10+0=20 であるから、連続データQ0は「0000000000
0000000000」、また仮数データD1は「AB
C」である。このとき、元データは、極性ビットP、連
続データQ0、反転ビットT0および仮数データD1を
ならべて、「P000000000000000000
001ABC*****」となる。
Similarly, when L1 = 10 and F1 = 0, L0 = 2 * 10 + 0 = 20. Therefore, 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 ******* ”.

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

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

【0066】[0066]

【表3】 [Table 3]

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

【0068】圧縮符号を復号して伸長した復元符号の表
現精度すなわち分解能は、直線符号における直線符号の
丸め精度で決定され、ランレングスL0によって変化す
る。(表3)より、最高28ビットないし15ビットの
精度が得られる。
The expression accuracy of the decompressed code obtained by decoding the compressed code and decompressed, that is, the resolution 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, a maximum accuracy of 28 to 15 bits can be obtained.

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

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

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

【0072】入力レベル−18dBないし−30dBの
範囲では直線符号で「P0001ABC・・・」または
「P00001ABC・・・」となり、(表3)より分
解能は17ビットである。17ビットデータの量子化ノ
イズは−102dBであるので、瞬時S/N比は84d
Bないし72dBとなる。
In the input level range of -18 dB to -30 dB, the linear code is "P0001ABC ..." 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 84d.
B to 72 dB.

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

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

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

【0076】このように微小レベルの信号を増幅して
も、入力レベル−96dBまでの広い範囲にわたって量
子化ノイズを聴覚検知限より小さくすることができる。
従って、十分にヘッドルームを確保して録音レベルを設
定でき、後の編集で任意に増幅できる。また、微小レベ
ルの信号に発生する固有スペクトルの量子化ノイズの問
題を改善するために、白色雑音(ディザ)を付加してノ
イズスペクトルを分散させるなどの処理を無くすことが
できる。
Even if a signal of a minute level is thus amplified, the quantization noise can be made smaller than the auditory sense limit over a wide range up to the input level of -96 dB.
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. 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.

【0077】現在の技術では入力レベル0dBから−1
80dBもの広範囲な信号を増幅したり、AD変換器で
デジタル化することは困難であるが、高温超伝導を利用
する機能素子や回路技術の将来の発展により、本発明の
効果が最大限に発揮できるようになる。
In the present technology, the input level is 0 dB to -1.
Although it is difficult to amplify a wide range signal of 80 dB or digitize it with an AD converter, the effects of the present invention will be maximized due to future development of functional elements and circuit technology utilizing high temperature superconductivity. become able to.

【0078】なお、(表3)においてランレングス1/
2圧縮フローティング符号の増加特性を考察する。実施
例では圧縮剰余データC1を圧縮剰余F1の補数とした
ことにより、レンジの境界では上位のレンジの数値の方
が下位のレンジよりも必ず大きい。従って、この符号は
単調増加特性を有する。仮に圧縮データを直線符号(1
6ビット)と誤って再生することがあっても、単調増加
特性であればレベルの逆転やジャンプを起こさないので
有利である。この作用は、圧縮剰余データC1を圧縮剰
余F1の補数としたことによるが、必ずしも補数とする
必要は無く他の表現であってもよい。
In Table 3, the run length 1 /
Consider the increasing properties of a two-compression floating code. In the embodiment, since the compression remainder data C1 is the complement of the compression remainder F1, the numerical value of the upper range is always larger than the lower range at the boundary of the range. Therefore, this code has a monotonically increasing characteristic. If the compressed data is a linear code (1
Even if data is erroneously reproduced as 6 bits), the level inversion or jump does not occur with the monotonically increasing characteristic, which is advantageous. This action is based on the fact that the compression residue data C1 is the complement of the compression residue F1, but it is not necessarily required to be the complement and other expressions may be used.

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

【0080】[0080]

【表4】 [Table 4]

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

【0082】また、全く同様に、直線符号を24ビット
に短縮を行っても良い。(表5)は直線符号(24ビッ
ト)をランレングス1/2圧縮フローティング符号(1
6ビット)に圧縮伸長する符号復号方法について表すも
のである。
In the same manner, the linear code may be shortened to 24 bits. (Table 5) shows that the linear code (24 bits) is converted into the run length 1/2 compression floating code (1
6 shows a code decoding method of compressing and expanding to 6 bits).

【0083】[0083]

【表5】 [Table 5]

【0084】この場合、ランレングスL0を最大「1
8」で打ち切る。ランレングスL0=18の時、反転ビ
ットT0を省略し、残り部分のデータをD0とする。符
号化は同様にするが、ランレングスL1は最大値が
「9」であることが判っているので、反転ビットT1は
何であっても良い。さらに、圧縮剰余データC1を省略
してその代わりに仮数データD1すなわちD0を配置す
る。ランレングスL0の打ち切りによって、瞬時S/N
比特性は図16における特性曲線X3となる。入力レベ
ル−114dBから0dBの範囲では同図のX1と同一
である。以上述べた特性曲線X1,X2,X3の何れで
あっても、入力レベル0dBから−96dBまでの範囲
で瞬時S/N比の聴覚検知限界をほぼクリアできる。
In this case, the maximum run length L0 is "1".
Cut off at 8 ”. 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. Instantaneous S / N due to termination of run length L0
The characteristic characteristic is 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.

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

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

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

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

【0089】反転ビットT1は圧縮連続データQ1のラ
ンレングスをブレークする反転ビットである。圧縮剰余
データC1は圧縮剰余F1を補数表現するものである。
また、仮数データD1はデータD0の上位側の部分デー
タである。ランレングス1/4圧縮フローティング符号
は、極性ビットP、圧縮連続データQ1、反転ビットT
1、圧縮剰余データC1、仮数データD1の順に配置す
る。
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.

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

【0091】L0=0の時、 L1=int(0/4)=0 F1=0 mod 4 =0 より、ランレングスL1が「0」であるので、圧縮連続
データQ1は無い。圧縮剰余データC1は「11」であ
る。データD0は30ビットで、その内の上位12ビッ
ト「ABCDEFGHIJKL」が仮数データD1であ
る。ランレングス1/4圧縮フローティング符号は極性
ビットP、反転ビットT1、圧縮剰余データC1および
仮数データD1をこの順に配置して、「P111ABC
DEFGHIJKL」である。
When L0 = 0, 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 ".

【0092】以下同様に、L0=1の時、 L1=int(1/4)=0 F1=1 mod 4 =1 より、圧縮連続データQ1は無く、圧縮剰余データC1
は「10」である。データD0の上位12ビット「AB
CDEFGHIJKL」が仮数データD1である。ラン
レングス1/4圧縮フローティング符号は「P110A
BCDEFGHIJKL」である。
Similarly, when L0 = 1, L1 = int (1/4) = 0 F1 = 1 mod 4 = 1 Therefore, there is no compressed continuous data Q1 and compressed residual 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 ”.

【0093】L0=3の時、 L1=int(3/4)=0 F1=3 mod 4 =3 より、連続データQ1は「0」であり、圧縮剰余データ
C1は「00」である。データD0の上位12ビット
「ABCDEFGHIJKL」が仮数データD1であ
る。ランレングス1/4圧縮フローティング符号は「P
100ABCDEFGHIJKL」である。
When L0 = 3, 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 ".

【0094】また、L0=20の時、 L1=int(20/4)=5 F1=20 mod 4 =0 より、連続データQ1は「00000」であり、圧縮剰
余データC1は「11」である。データD0の上位7ビ
ット「ABCDEFG」が仮数データD1である。従っ
て、ランレングス1/4圧縮フローティング符号は「P
00000111ABCDEFG」である。
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 ".

【0095】さらに、L0=23の時、 L1=int(23/4)=5 F1=23 mod 4 =3 より、連続データQ1は「00000」であり、圧縮剰
余データC1は「00」である。データD0の上位7ビ
ット「ABCDEFG」が仮数データD1である。従っ
て、ランレングス1/4圧縮フローティング符号は「P
00000100ABCDEFG」である。
Further, 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 ".

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

【0097】次に、伸長(復号化)の手順について説明
する。復号化の手順は、圧縮データから極性ビットPを
除き、圧縮連続データQ1と反転ビットT1からランレ
ングスL1を得る。また、反転ビットT1の直後にある
圧縮剰余データC1(2ビット)と仮数データD1を得
る。圧縮剰余データC1を反転した圧縮剰余F1を得
る。
Next, the procedure of decompression (decoding) 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.

【0098】これらより、元データの連続データQ0の
ランレングスL0は、 L0=4*L1+F1 から求める。連続データQ0はランレングスL0の長さ
の「0」を連ねて復元する。連続データQ0の後に反転
ビットT0を付け、その後に仮数データD1を付加す
る。極性ビットPを先頭に付けて元データとするが、こ
の符号長がW0に満たない時は仮数データD1の下位に
固定値を充てて符号長をW0にする。この手順に従っ
て、復号化の処理を行う。
From these, the run length L0 of the continuous data Q0 of the original data is obtained from L0 = 4 * L1 + F1. The continuous data Q0 is restored by connecting "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.

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

【0100】L1=0かつF1=0の時、 L0=4*0+0=0 であるから、連続データQ0は無い。仮数データD1は
12ビットで「ABCDEFGHIJKL」である。こ
のとき、元データは、極性ビットP、反転ビットT0お
よび仮数データD1をならべて、「P1ABCDEFG
HIJKL***************」となる。
なお、「***・・・」は固定値「1000・・・」を
充てるものとする。
When L1 = 0 and F1 = 0, since L0 = 4 * 0 + 0 = 0, there is no continuous data Q0. The mantissa data D1 is 12 bits and is "ABCDEFGHIJKL". At this time, 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 ...".

【0101】以下同様に、L1=5かつF1=0の時、 L0=4*5+0=20 であるから、連続データQ0は「0000000000
0000000000」、また仮数データD1は「AB
CDEFG」である。このとき、元データは、極性ビッ
トP、連続データQ0、反転ビットT0および仮数デー
タD1をならべて、「P00000000000000
0000001ABCDEFG***」となる。
Similarly, when L1 = 5 and F1 = 0, L0 = 4 * 5 + 0 = 20, so 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 *** ”.

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

【0103】以上と同様にして、全ての場合についてま
とめた結果を(表6)に示す。
Similar to the above, the results summarized in all cases are shown in (Table 6).

【0104】[0104]

【表6】 [Table 6]

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

【0106】ここで、直線符号を入力として、ランレン
グス1/4圧縮フローティング符号を用いて圧縮符号化
し、この符号を復号して伸長した復元符号を出力する場
合の瞬時S/N比について説明する。
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 a decompressed code is output is described. .

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

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

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

【0110】入力レベル−18dBないし−30dBの
範囲では直線符号で「P0001ABC・・・」または
「P00001ABC・・・」となり、(表6)より分
解能は17ビットである。17ビットデータの量子化ノ
イズは−102dBであるので、瞬時S/N比は84d
Bないし72dBとなる。
In the input level range of -18 dB to -30 dB, the linear code is "P0001ABC ..." 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 84d.
B to 72 dB.

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

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

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

【0114】このように第2の実施例によれば、第1の
実施例よりもさらに微小な入力レベル−144dBの信
号を増幅しても、量子化ノイズを聴覚検知することが全
く無くなる。従って、十分にヘッドルームを確保して録
音レベルを設定でき、後の編集で任意に増幅できる。
As described above, according to the second 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 quantization noise is not detected by hearing. 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.

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

【0116】[0116]

【表7】 [Table 7]

【0117】この場合ランレングスL0を最大「20」
で打ち切る。ランレングスL0=20の時、反転ビット
T0を省略し、残り部分のデータをD0とする。符号化
は同様にするが、ランレングスL1は最大値が「5」で
あることが判っているので、反転ビットT1を省略す
る。また、圧縮剰余データC1は何であっても良い。ラ
ンレングスL0の打ち切りによって、瞬時S/N比特性
は図17における特性曲線Y2となる。入力レベル−1
26dBから0dBの範囲では同図のY1と同一であ
る。
In this case, the maximum run length L0 is "20".
Abort with. 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. Due to the termination of the run length L0, the instantaneous S / N ratio characteristic becomes the characteristic curve Y2 in FIG. Input level-1
In the range of 26 dB to 0 dB, it is the same as Y1 in the figure.

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

【0119】[0119]

【表8】 [Table 8]

【0120】この場合、ランレングスL0を最大「1
6」で打ち切る。ランレングスL0=16の時、反転ビ
ットT0を省略し、残り部分のデータをD0とする。符
号化は同様にするが、ランレングスL1は最大値が4で
あることが判っているので、反転ビットT1を省略す
る。さらに、圧縮剰余データC1は何であっても良い。
ランレングスL0の打ち切りによって、瞬時S/N比特
性は図17における特性曲線Y3となる。入力レベル−
102dBから0dBの範囲では同図のY1と同一であ
る。以上述べた特性曲線Y1,Y2,Y3の何れであっ
ても、入力レベル0dBから−96dBまでの範囲で瞬
時S/N比の聴覚検知限界を完全にクリアできる。
In this case, the maximum run length L0 is "1".
Cut off at 6 ”. 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.
Due to the termination of the run length L0, the instantaneous S / N ratio characteristic becomes the characteristic curve Y3 in FIG. Input level-
In the range of 102 dB to 0 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.

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

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

【0123】[0123]

【表9】 [Table 9]

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

【0125】図18は第3の実施例のランレングス1/
4圧縮フローティング符号を用いた圧縮符号を復号して
伸長した復元符号の瞬時S/N比特性図である。同図の
横軸に入力レベル、縦軸に瞬時S/N比を示す。同図の
特性曲線V1は(表9)に示すランレングス1/4圧縮
フローティング符号の瞬時S/N比を表すものである。
図より明らかに特性曲線Y1は直線符号(8ビット)に
比較してはるかに広大な入力レベル範囲で略フラットな
瞬時S/N比の特性を示している。このままでは瞬時S
/N比の聴覚検知限界48dBに満たないけれども、差
分符号などと組み合わせることによって、広大な入力レ
ベル範囲と高分解能を活かすことができる。イメージデ
ータのサンプル間相関性を利用する冗長圧縮などに活用
できる。
FIG. 18 shows the run length 1 / third of the third embodiment.
It is an instantaneous S / N ratio characteristic figure of the decompression | restoration code which decoded and expanded the compression code which used the 4-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 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). If this is the case S
Although it is less than the hearing detection limit of 48 dB for the / N ratio, 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.

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

【0127】[0127]

【発明の効果】以上のように本発明は、元データの上位
ランレングスを約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 generates the codes that make up the part 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. It is not detected, and the auditory detection limit of the instantaneous S / N ratio of about 48 dB or more can be secured in a wide range of the input level 0 to -96 dB.

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

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

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

【図3】LチャンネルとRチャンネルを圧縮する符号装
置のブロック図
FIG. 3 is a block diagram of an encoding device that compresses an L channel and an R channel.

【図4】図1における圧縮手段3の具体回路図FIG. 4 is a specific circuit diagram of compression means 3 in FIG.

【図5】(a)は図4におけるシフトレジスタ301の
内部回路図 (b)は図4におけるシフトレジスタ302ないし31
4の内部回路図
5A is an internal circuit diagram of the shift register 301 in FIG. 4, and FIG. 5B is a shift register 302 to 31 in FIG.
Internal circuit diagram of 4

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

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

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

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

【図10】図1における圧縮手段3の入出力データおよ
びタイミング生成部6のタイミング処理を説明する波形
10 is a waveform diagram illustrating input / output data of the compression unit 3 and timing processing of the timing generation unit 6 in FIG.

【図11】図1における圧縮手段3の入出力データおよ
びタイミング生成部6のタイミング処理を説明する波形
11 is a waveform diagram illustrating input / output data of the compression unit 3 and timing processing of the timing generation unit 6 in FIG.

【図12】図1における圧縮手段3の入出力データおよ
びタイミング生成部6のタイミング処理を説明する波形
FIG. 12 is a waveform diagram illustrating input / output data of the compression unit 3 and timing processing of the timing generation unit 6 in FIG.

【図13】図1における圧縮手段3の入出力データおよ
びタイミング生成部6のタイミング処理を説明する波形
13 is a waveform diagram illustrating input / output data of the compression unit 3 and timing processing of the timing generation unit 6 in FIG.

【図14】(a)は本発明の第1の実施例におけるラン
レングス1/2圧縮フローティング符号の構成を示す概
念図 (b)は同じく変換処理を説明するための説明図
FIG. 14A 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. 14B is an explanatory diagram for explaining the same conversion process.

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

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

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

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

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

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

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

1 入力部 2 MSBメモリ 3 圧縮手段 4 C1メモリ 5 出力部 6 タイミング生成部 P 極性ビット Q0 連続データ Q1 圧縮連続データ Q2 レンジデータ L0 連続データQ0のランレングス L1 圧縮連続データQ1のランレングス L2 レンジデータQ2のランレングス T0,T1 反転ビット D0 残り部分のデータ D1,D2 仮数データ W0 元データの符号長 W1,W2 圧縮データの符号長 1 Input Unit 2 MSB Memory 3 Compressing Means 4 C1 Memory 5 Output Unit 6 Timing Generation Unit 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 Run length of Q2 T0, T1 Inversion bit D0 Remaining part data D1, D2 Mantissa data W0 Code length of original data W1, W2 Code length of compressed data

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/419 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location H04N 1/419

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 上位で所定論理のビットが連続する連続
データQ0とQ0の連続性をブレークする反転ビットT
0およびT0以降の下位データD0で構成される直線符
号を入力する入力部と、 前記Q0のランレングスを1/nに圧縮したQ1を格納
するとともに、Q1の連続性をブレークする反転ビット
T1と前記D0を丸めた仮数データD1を格納する圧縮
手段と、 前記Q0のランレングスを1/nに圧縮する時に生じる
剰余F1を表す圧縮剰余データC1を記憶するC1メモ
リと、 前記圧縮手段から圧縮連続データQ1および前記反転ビ
ットT1を読み出し、前記C1メモリから前記圧縮剰余
データC1を読み出し、前記圧縮手段から前記仮数デー
タD1を読み出して圧縮データを出力する出力部とを備
えることを特徴とするランレングス1/n圧縮フローテ
ィング符号装置。ただし、前記連続データQ0のランレ
ングスをL0、前記圧縮連続データQ1のランレングス
をL1、nを2以上の整数とするとき、 L1=int(L0/n) F1=L0 mod n とする。
1. An inversion bit T which breaks the continuity of continuous data Q0 and Q0 in which bits of a predetermined logic are continuous in the upper order.
An input unit for inputting a straight line code composed of 0 and lower data D0 after T0; and an inversion bit T1 for storing Q1 in which the run length of Q0 is compressed to 1 / n and for breaking the continuity of Q1. A compression unit that stores the mantissa data D1 obtained by rounding the D0, a C1 memory that stores compression residue data C1 that represents a residue F1 that occurs when the run length of the Q0 is compressed to 1 / n, An output unit for reading the data Q1 and the inversion bit T1, reading the compression remainder data C1 from the C1 memory, reading the mantissa data D1 from the compression means, and outputting compressed data. 1 / n compression floating encoder. 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】 出力部は上位から、圧縮連続データQ
1、反転ビットT1、圧縮剰余データC1、仮数データ
D1の順に配置して圧縮データを出力する請求項1に記
載のランレングス1/n圧縮フローティング符号方法。
2. The output unit outputs compressed continuous data Q from the top.
2. The run length 1 / n compression floating coding method according to claim 1, wherein the compressed data is output by arranging 1, inverted bit T1, compressed remainder data C1, and mantissa data D1 in this order.
【請求項3】 極性ビットPとPを除く上位で所定論理
のビットが連続する連続データQ0とQ0の連続性をブ
レークする反転ビットT0およびT0以降の下位データ
D0で構成される直線符号を入力する入力部と、 前記Q0のランレングスを1/nに圧縮したQ1を格納
するとともに、Q1の連続性をブレークする反転ビット
T1と前記D0を丸めた仮数データD1を格納する圧縮
手段と、 1/nに圧縮する時に生じる剰余F1を表す圧縮剰余デ
ータC1を記憶するC1メモリと、 前記極性ビットPを記憶するMSBメモリと、 前記MSBメモリから前記極性ビットPを読み出し、前
記圧縮手段から前記圧縮連続データQ1および前記反転
ビットT1を読み出し、さらに前記C1メモリから前記
圧縮剰余データC1を読み出し、前記圧縮手段から前記
仮数データD1を読み出して圧縮データを出力する出力
部とを備えることを特徴とするランレングス1/n圧縮
フローティング符号装置。ただし、前記連続データQ0
のランレングスをL0、前記圧縮連続データQ1のラン
レングスをL1、nを2以上の整数とするとき、 L1=int(L0/n) F1=L0 mod n とする。
3. A linear code composed of polarity bits P and inversion bits T0 that breaks the continuity of continuous data Q0 in which bits of a predetermined logic are continuous except for P and P0 and lower data D0 after T0 are input. An input unit for storing Q1 in which the run length of Q0 is compressed to 1 / n, and storing inversion bit T1 for breaking the continuity of Q1 and mantissa data D1 obtained by rounding D0; Cn memory that stores compressed residue data C1 that represents a residue F1 that occurs when compressed to / n, an MSB memory that stores the polarity bit P, the polarity bit P is read from the MSB memory, and the compression unit performs the compression. The continuous data Q1 and the inversion bit T1 are read, the compression remainder data C1 is read from the C1 memory, and the compressed data is compressed. Run length 1 / n compression floating coding apparatus characterized by comprising an output section for outputting the compressed data by reading the mantissa data D1 from the stage. However, the continuous data Q0
Where L0 is the run length, L1 is the run length of the compressed continuous data Q1, and n is an integer of 2 or more, L1 = int (L0 / n) F1 = L0 mod n.
【請求項4】 C1メモリに格納する圧縮剰余データC
1は圧縮剰余F1の補数である請求項1または3に記載
のランレングス1/n圧縮フローティング符号装置。
4. Compressed residue data C stored in C1 memory
4. The run length 1 / n compression floating coding device according to claim 1, wherein 1 is a complement of the compression residue F1.
【請求項5】 出力部は圧縮データが所定の符号長W1
となるようにデータD1の下位ビットを削除する請求項
1または3に記載のランレングス1/n圧縮フローティ
ング符号装置。
5. The output unit outputs compressed data having a predetermined code length W1.
The run length 1 / n compression floating encoder according to claim 1 or 3, wherein the lower bits of the data D1 are deleted so that
【請求項6】 圧縮手段およびC1メモリは、所定の制
限長LSとランレングスL0の小さい方をLminとす
るとき、L1およびF1が、 L1=int(Lmin/n) F1=Lmin mod n となるようにした請求項1または3に記載のランレング
ス1/n圧縮フローティング符号装置。
6. The compressing means and the C1 memory are such that when the smaller one 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 The run length 1 / n compression floating encoder according to claim 1 or 3.
【請求項7】 出力部は上位から、極性ビットP、圧縮
連続データQ1、反転ビットT1、圧縮剰余データC
1、仮数データD1の順に配置して圧縮データを出力す
る請求項3に記載のランレングス1/n圧縮フローティ
ング符号方法。
7. The output unit from the higher order is a polarity bit P, a compression continuous data Q1, an inversion bit T1, and a compression remainder data C.
4. The run length 1 / n compression floating coding method according to claim 3, wherein the compressed data is output by arranging the mantissa data D1 in this order.
【請求項8】 圧縮手段およびC1メモリは、所定の制
限長LSとランレングスL0の小さい方をLminとす
るとき、L1およびF1が、 L1=int(Lmin/n) F1=Lmin mod n であり、かつ、ランレングスL0が前記制限長LSより
大なるときは反転ビットT0および反転ビットT1を省
略した請求項6に記載のランレングス1/n圧縮フロー
ティング符号装置。
8. The compression means and the C1 memory are such that 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. The run length 1 / n compression floating encoder according to claim 6, wherein the inversion bit T0 and the inversion bit T1 are omitted when the run length L0 is larger than the limit length LS.
【請求項9】 圧縮手段およびC1メモリは、所定の制
限長LSとランレングスL0の小さい方をLminとす
るとき、L1およびF1が、 L1=int(Lmin/n) F1=Lmin mod n であり、かつ、ランレングスL0が前記制限長LSより
大なるときは反転ビットT0および反転ビットT1を省
略し、圧縮剰余F1を表す圧縮剰余データC1を所定値
にした請求項6に記載のランレングス1/n圧縮フロー
ティング符号装置。
9. The compression means and the C1 memory are such that 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. 7. The run length 1 according to claim 6, wherein when the run length L0 is larger than the limit length LS, the inversion bit T0 and the inversion bit T1 are omitted and the compression remainder data C1 representing the compression remainder F1 is set to a predetermined value. / N compression floating encoder.
JP3346116A 1991-12-27 1991-12-27 Run length 1 / n compression floating encoder Expired - Fee Related JPH0795691B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3346116A JPH0795691B2 (en) 1991-12-27 1991-12-27 Run length 1 / n compression floating encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3346116A JPH0795691B2 (en) 1991-12-27 1991-12-27 Run length 1 / n compression floating encoder

Publications (2)

Publication Number Publication Date
JPH05183445A JPH05183445A (en) 1993-07-23
JPH0795691B2 true JPH0795691B2 (en) 1995-10-11

Family

ID=18381250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3346116A Expired - Fee Related JPH0795691B2 (en) 1991-12-27 1991-12-27 Run length 1 / n compression floating encoder

Country Status (1)

Country Link
JP (1) JPH0795691B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2575697A (en) * 1996-04-16 1997-11-07 Dome Inc. Encoder, decoder, encoding method and decoding method
CN107395211B (en) * 2017-09-12 2020-12-01 苏州浪潮智能科技有限公司 A data processing method and device based on convolutional neural network model

Also Published As

Publication number Publication date
JPH05183445A (en) 1993-07-23

Similar Documents

Publication Publication Date Title
US5162795A (en) Coding and decoding apparatus of variable length data
JPH0793724B2 (en) High efficiency coding apparatus and coding method for television signal
US5313203A (en) Coding apparatus and method for coding information symbol strings by assigning fixed length codes thereto
KR920009642B1 (en) Data compression circuit
US4583074A (en) Expansion circuit for digital signals
JPH0795691B2 (en) Run length 1 / n compression floating encoder
JP3092299B2 (en) Decoding device for run-length 1 / n compressed floating code
JP2775857B2 (en) Digital signal band compression circuit
JPH07101849B2 (en) Run length 1 / n compression floating code method and decoding method thereof
JP3460037B2 (en) Digital recording device
JP2002271207A (en) Data conversion device, data compression device and data extension device
JP2785822B2 (en) High-efficiency encoding device and decoding device for television signal
US5325240A (en) Data compression and expansion apparatus for audio recorders
JP3334437B2 (en) Encoding method, encoding device, recording medium, and decoding device
JP3282450B2 (en) Code decoding device
JP3336823B2 (en) Sound signal processing device
JP2785823B2 (en) High-efficiency television signal encoding apparatus and method, and decoding apparatus and method
JP2794719B2 (en) Code conversion device
JPH0348774Y2 (en)
KR0157548B1 (en) Memory control signal generating apparatus
JP3092331B2 (en) Signal processing device
JP2573746B2 (en) Data compression device
KR950004755B1 (en) Receiving Error Reduction Method of PCM Decoder
JPH04239272A (en) Compression and expansion equipment
JPH0482419A (en) audio signal encoding device

Legal Events

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