JPH0553325B2 - - Google Patents

Info

Publication number
JPH0553325B2
JPH0553325B2 JP25853085A JP25853085A JPH0553325B2 JP H0553325 B2 JPH0553325 B2 JP H0553325B2 JP 25853085 A JP25853085 A JP 25853085A JP 25853085 A JP25853085 A JP 25853085A JP H0553325 B2 JPH0553325 B2 JP H0553325B2
Authority
JP
Japan
Prior art keywords
code
sample value
reference sample
data
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP25853085A
Other languages
Japanese (ja)
Other versions
JPS62120128A (en
Inventor
Hitoaki Owashi
Takashi Furuhata
Keizo Nishimura
Fujio Okamura
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP25853085A priority Critical patent/JPS62120128A/en
Publication of JPS62120128A publication Critical patent/JPS62120128A/en
Publication of JPH0553325B2 publication Critical patent/JPH0553325B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、伝送すべき情報信号を時間軸方向に
サンプリング量子化して、その1標本値当りの平
均ビツト数を低減して符号化する方法に係り、特
にビツト数を低減した符号の直流成分、低減成分
を抑圧するのに好適な符号変換方法に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a method of sampling and quantizing an information signal to be transmitted in the time axis direction, reducing the average number of bits per sample value, and encoding the signal. In particular, the present invention relates to a code conversion method suitable for suppressing DC components and reduced components of codes with a reduced number of bits.

〔発明の背景〕[Background of the invention]

画像信号をデイジタル信号に変換して伝送する
場合、その1標本値(以下これを画素と称する)
当りの量子化ビツト数は、直線量子化の場合で通
常7〜8ビツトが必要とされている。画像信号を
直線量子化した場合の伝送レートは、標準テレビ
方式の場合で100Mbit/sec程度が必要となり、
一部で提案されている高品位テレビ方式にいたつ
ては、上記標準テレビ方式の2倍以上の伝送レー
トが要求される。
When converting an image signal into a digital signal and transmitting it, one sample value (hereinafter referred to as a pixel)
The number of quantization bits per unit is usually 7 to 8 bits in the case of linear quantization. The transmission rate when linearly quantizing an image signal is approximately 100 Mbit/sec in the case of standard television system.
Some high-definition television systems that have been proposed require a transmission rate that is more than twice that of the standard television system.

この画像信号をデイジタル信号で磁気記録再生
する装置(以下これをデイジタルVTRと称する)
では、上述の様に伝送レートが著しく高いために
充分な録画時間が得られず、またデイジタル信号
処理回路の高速動作も要求され技術的にも困難が
伴う。このため、デイジタルVTRはいまだ家庭
用としてなど広く普及するに至つていない。
A device that magnetically records and reproduces this image signal as a digital signal (hereinafter referred to as a digital VTR)
However, as mentioned above, the transmission rate is extremely high, making it impossible to obtain sufficient recording time, and the high-speed operation of the digital signal processing circuit is also required, which is technically difficult. For this reason, digital VTRs have not yet become widely used for home use.

こうした問題を改善するために、いわゆる高能
率符号化の検討が従来より行われており、予測符
号化方式(DPCM)がよく知られている。予測
符号化方式については、吹抜敬彦著、“画像のデ
イジタル信号処理”日刊工業新聞社刊などで詳述
されている。
In order to improve these problems, so-called high-efficiency coding has been studied for some time, and the predictive coding method (DPCM) is well known. The predictive coding method is described in detail in "Digital Signal Processing of Images" by Takahiko Fukinuki, published by Nikkan Kogyo Shimbun, etc.

この予測符号化方式によれば、1画素当りのビ
ツト数を4〜5ビツト程度に低減可能で、前記し
た直線量子化方式に比べてビツト数を約1/2に低
減することが可能である。
According to this predictive encoding method, it is possible to reduce the number of bits per pixel to about 4 to 5 bits, and it is possible to reduce the number of bits to about 1/2 compared to the linear quantization method described above. .

しかし、この予測符号化方式には、上記文献に
も述べられているように、予測符号化により生ず
る量子化雑音が累積する問題や、伝送系で生ずる
符号誤りによりその影響が次々と伝搬するいわゆ
るエラー伝搬などの本質的な問題がある。これら
の問題により画質が著しく劣化し、特に高画質の
要求される機器,装置ではこの予測符号化方式の
実用化は困難であつた。
However, as mentioned in the above-mentioned literature, this predictive coding method has problems such as the accumulation of quantization noise caused by predictive coding, and the so-called so-called problem that the effects of code errors that occur in the transmission system propagate one after another. There are fundamental problems such as error propagation. These problems significantly degrade image quality, making it difficult to put this predictive coding method into practical use, especially in devices and devices that require high image quality.

さらに、デイジタル信号を変調することにより
伝送信号の直流成分、低域成分を抑圧し、伝送誤
り率を低減する方式について従来より検討されて
いる。その変調方式については、伊藤陽之助、西
村一敏“デイジタル磁気記録の変復調方式”,日
経エレクトロニクスpp.126〜164(1978年12月11
日)などに詳述されている。
Furthermore, methods have been conventionally studied for suppressing direct current components and low-frequency components of transmission signals by modulating digital signals to reduce transmission error rates. Regarding the modulation method, see Yonosuke Ito and Kazutoshi Nishimura, “Modulation and demodulation method for digital magnetic recording,” Nikkei Electronics pp. 126-164 (December 11, 1978).
(Japanese), etc.

しかし、一例としてデイジタルFM変調方式
は、直流成分を持たないという特徴があるが、そ
の伝送にはベースバンド帯域の2倍帯域を必要と
し、伝送帯域で換算すると記録時間が半減するな
ど各変調方式ともにその冗長度に応じて伝送帯域
が広く必要になり、長時間記録を困難にしてい
た。
However, for example, the digital FM modulation method has the characteristic that it does not have a DC component, but its transmission requires twice the baseband band, and when converted to the transmission band, the recording time is halved. Both require a wide transmission band depending on the degree of redundancy, making long-term recording difficult.

以上、高能率符号化、変調方式いずれの点から
も記録、及び伝送の高密度化が困難であつた。
As described above, it has been difficult to increase the density of recording and transmission in terms of both high-efficiency encoding and modulation methods.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、符号化に伴なう信号劣化を最
小限に抑えて1標本値当り平均ビツト数を低減す
るとともに、符号の直流成分、低域成分を抑圧で
き符号誤りを低減でき、実質伝送できる情報量を
大きくすることのできる符号変換方式とその装置
を提供することにある。
The purpose of the present invention is to minimize the signal deterioration associated with encoding and reduce the average number of bits per sample value, as well as to suppress the DC component and low-frequency component of the code, thereby reducing code errors. An object of the present invention is to provide a code conversion method and a device thereof that can increase the amount of information that can be transmitted.

〔発明の概要〕[Summary of the invention]

本発明は上記の目的を達成するために、伝送す
べき情報信号のN個(Nは2以上の整数)の標本
値のうち、基準となる少なくとも1つの標本値を
その量子化誤差が無視できる程度に充分な量子化
ビツト数nで符号化し、他の残りの標本値は上記
基準標本値に関連する差分に基づき上記値nより
小さな量子化ビツト数m(n>m)で符号化する
ことにより、その差分符号化に基づく量子化雑音
の累積が生じないようにし、符号誤りによるエラ
ー伝搬が長期間に渡らないようにして、1標本値
当りの平均ビツト数を低減する。
In order to achieve the above object, the present invention provides at least one reference sample value among N sample values (N is an integer of 2 or more) of an information signal to be transmitted, so that its quantization error can be ignored. The remaining sample values are encoded with a quantization bit number m (n>m) that is smaller than the above value n based on the difference related to the reference sample value. This prevents accumulation of quantization noise based on the differential encoding, prevents error propagation due to code errors over a long period of time, and reduces the average number of bits per sample value.

さらに、情報信号の相関性により上記差分量は
小さいことを利用する。即ち、量子化ビツト数m
の符号語のうち、CDS(一つの符号語の最初から
最後までの“1”と“0”の出現数の差)の絶対
値が小さい符号語を差分量の小さいレベルに対応
するように符号変換することにより、直流成分、
及び低域成分の少ない符号化を行なう。また、基
準となる標本値に対しては、基準標本値のレベル
の大きい順にnビツトの符号のCDSの大きい順
に対応させて符号変換し、nビツト毎に交互に符
号反転することにより、直流成分,低域成分を抑
圧する。
Furthermore, the fact that the difference amount is small due to the correlation of the information signals is utilized. That is, the number of quantization bits m
Among the codewords, codewords with a small absolute value of CDS (difference between the number of occurrences of "1" and "0" from the beginning to the end of one codeword) are coded so as to correspond to the level of the small difference amount. By converting the DC component,
and performs encoding with few low frequency components. In addition, for the reference sample value, code conversion is performed in descending order of the level of the reference sample value in order of increasing CDS of the n-bit code, and by alternately inverting the sign every n bits, the DC component is , suppresses low frequency components.

直流成分,低域成分の抑圧により伝送符号誤り
率を低減でき、伝送効果を高めることができる。
By suppressing the DC component and the low frequency component, the transmission code error rate can be reduced and the transmission effect can be enhanced.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を説明する。第1図は本
発明をVTRなどの磁気記録再生装置に適用した
場合の一実施例を示すブロツク図、第2図は本発
明に係わる符号器20の一実施例を示す図、第3
図はその動作説明用の波形図、第4図はその符号
特性の一実施例を示す図、第5図、第6図はその
符号変換特性の一実施例を示す図である。
Examples of the present invention will be described below. FIG. 1 is a block diagram showing an embodiment of the present invention applied to a magnetic recording/reproducing device such as a VTR, FIG. 2 is a diagram showing an embodiment of an encoder 20 according to the present invention, and FIG.
FIG. 4 is a waveform diagram for explaining its operation, FIG. 4 is a diagram showing an example of its code characteristics, and FIGS. 5 and 6 are diagrams showing an example of its code conversion characteristics.

第1図において、1は記録すべき画像信号Vの
入力端子、2は再生された画像信号V′の出力端
子、3は磁気ヘツド、4は磁気テープ、10は
A/D変換器、20は符号器、30はPCMプロ
セツサ、40はメモリ、60は記録増幅器、70
は再生等化器、90は復号器、100はD/A変
換器である。
In FIG. 1, 1 is an input terminal for an image signal V to be recorded, 2 is an output terminal for a reproduced image signal V', 3 is a magnetic head, 4 is a magnetic tape, 10 is an A/D converter, and 20 is an output terminal for a reproduced image signal V'. encoder, 30 is a PCM processor, 40 is a memory, 60 is a recording amplifier, 70
is a reproduction equalizer, 90 is a decoder, and 100 is a D/A converter.

端子1から入力された映像信号VはA/D変換
器10によりビツト数nで量子化されたデイジタ
ル信号aに変換される。このnビツトのデイジタ
ル信号aは、本発明に係る符号器20によつて、
後述するように適宜ビツト圧縮され、符号変換さ
れる。この符号器20の出力f(以下これをデー
タfと記す)は、PCMプロセツサ30を介して
メモリ40に逐次書込まれる。そして、メモリ4
0への書込み時に、データfの所定のビツト数か
らなるブロツクごとにそのアドレスを示すアドレ
ス符号と符号訂正のためいわゆるパリテイ符号が
追加され、メモリ40に書込まれる。
A video signal V input from a terminal 1 is converted by an A/D converter 10 into a digital signal a quantized with n bits. This n-bit digital signal a is processed by the encoder 20 according to the present invention.
As described later, the data is bit-compressed and code-converted as appropriate. The output f of the encoder 20 (hereinafter referred to as data f) is sequentially written into the memory 40 via the PCM processor 30. And memory 4
When writing to 0, an address code indicating the address and a so-called parity code for code correction are added to each block of data f consisting of a predetermined number of bits, and are written into the memory 40.

メモリ40への書込み終了後、引続いて読取ら
れたデータf及びアドレス符号、パリテイ符号は
PCMプロセツサ30にて並列データから直列デ
ータに変換されるとともにブロツクの頭出しのた
めの同期符号が、また必要に応じて符号誤り検出
のための誤り検出符号や、あるいはこれらデータ
列の前後に適宜調歩符号などが追加されて出力さ
れる。
After the writing to the memory 40 is completed, the data f, address code, and parity code that are subsequently read are as follows.
Parallel data is converted into serial data by the PCM processor 30, and synchronization codes are added to locate the beginning of blocks, and if necessary, error detection codes are added to detect code errors, or as appropriate before and after these data strings. Start/stop signs etc. are added and output.

このPCMプロセツサ30からの出力データ列
gは、記録増幅器40を介して磁気ヘツド3によ
り逐次磁気テープ4に記録される。
The output data string g from the PCM processor 30 is sequentially recorded on the magnetic tape 4 by the magnetic head 3 via the recording amplifier 40.

次に再生系において、磁気テープ4より磁気ヘ
ツド3により再生された信号は、再生等化器70
で適宜再生等化され記録データ列gと同様の信号
g′として出力される。このデータ列g′はPCMプ
ロセツサ30にて、そのブロツクごとに同期符号
に基づきデータの頭出しや、前記誤り検出符号に
基づき符号誤り検出などが行なわれて後、直列デ
ータから並列データに変換されてからメモリ40
に逐次書込まれる。
Next, in the reproduction system, the signal reproduced from the magnetic tape 4 by the magnetic head 3 is sent to a reproduction equalizer 70.
A signal similar to the recorded data string g, which is appropriately reproduced and equalized by
It is output as g′. This data string g' is subjected to data cueing based on the synchronization code for each block and code error detection based on the error detection code in the PCM processor 30, and then converted from serial data to parallel data. then memory 40
are written sequentially.

メモリ40に書込まれたデータは、PCMプロ
セツサ30により上記パリテイ符号に基づいて逐
次符号訂正されてから、冗長の符号は逐次除去さ
れ、上記符号器20からの出力データfと同様の
データa′が出力されて復号器90に供給される。
The data written in the memory 40 is sequentially code-corrected by the PCM processor 30 based on the parity code, and then redundant codes are sequentially removed, resulting in data a' similar to the output data f from the encoder 20. is output and supplied to the decoder 90.

復号器90にて復号されてnビツトのデイジタ
ル信号f′が出力され、このデイジタル信号f′は
D/A変換器100にてアナログ信号に変換され
て、元の画像信号V′が復元されて端子2に出力
される。
The decoder 90 decodes and outputs an n-bit digital signal f', which is converted into an analog signal by the D/A converter 100 to restore the original image signal V'. Output to terminal 2.

次に本発明に係る符号器20動作を第2図に示
す一実施例により第3図の波形図を用いて説明す
る。
Next, the operation of the encoder 20 according to the present invention will be explained using an embodiment shown in FIG. 2 and a waveform diagram in FIG. 3.

第2図において、201は上記A/D変換器1
0から出力されるnビツトのデイジタル信号aの
入力端子である。第3図1に示すように、A/D
変換器10で端子1から入力される画像信号Vが
サンプリング周期τごとに逐次サンプリングさ
れ、各標本値のレベルに応じてnビツトのデイジ
タル信号Ai(iは整数)に逐次変換されて出力さ
れる。
In FIG. 2, 201 is the A/D converter 1
This is an input terminal for an n-bit digital signal a output from 0. As shown in FIG. 3, A/D
The converter 10 sequentially samples the image signal V input from the terminal 1 at every sampling period τ, and converts it successively into an n-bit digital signal Ai (i is an integer) according to the level of each sample value and outputs it. .

ここで、上記量子化ビツト数nは、その量子化
誤差が無視できる程度の大きな値であり、画像信
号を取り扱う本実施例では、例えばn=8と定め
られる。
Here, the number n of quantization bits is such a large value that the quantization error can be ignored, and in this embodiment, which deals with image signals, n=8, for example.

本発明では、N個(Nは2以上の整数)の標本
値のうち、基準となる少なくとも1つの標本値を
その量子化誤差が無視できる程度に充分なビツト
数nで符号化し、他の残りの標本値は上記基準標
本値に関連する差分に基づき上記値nより小さな
ビツト数mで符号化することにより、1標本値当
りの平均ビツト数を低減する。
In the present invention, at least one reference sample value out of N sample values (N is an integer of 2 or more) is encoded with a sufficient number of bits n so that its quantization error can be ignored, and the remaining sample values are The sample value is encoded with the number of bits m smaller than the value n based on the difference related to the reference sample value, thereby reducing the average number of bits per sample value.

この第2図及び第3図はN=3とした場合の一
実施例を示すものである。即ち、第3図の1に示
すように(A3i−1,A3i,A3i+1)で代表
される3つの標本値のうち、○印で示す標本値
A3iは基準標本値としてnビツトで符号化する。
以下この基準データを同じ記号A3iとして表わ
す。他の残りの×印で示す2つの標本値A3i−
1,A3i+1については、上記基準標本値A3
との差分に応じた次式で与えられる2つの差分デ
ータB3i−1,B3i+1をビツト数m(<n)で
符号化する。
2 and 3 show an example in which N=3. That is, as shown in 1 in Figure 3, among the three sample values represented by (A 3 i-1, A 3 i, A 3 i+1), the sample value indicated by a circle
A 3 i is encoded with n bits as a reference sample value.
Hereinafter, this reference data will be expressed by the same symbol A 3 i. The remaining two sample values A 3 i− are indicated by cross marks.
1, A 3 i+1, the above reference sample value A 3 i
Two difference data B 3 i-1 and B 3 i+1 given by the following equation according to the difference between

B3i−1=A3i−A3i−1 B3i+1=A3i−A3i+1 …(1) 一例として、n=8、m=4とすれば、基準デ
ータはA3iは8ビツト、差分データB3i−1,
B3i+1は共に4ビツトで符号化され、従つて
1標本値当りの平均ビツト数は16/3=5.33ビツト となり、全ての標本値を8ビツトで符号化する従
来方式と比べて2/3にビツト圧縮することが可能
となる。
B 3 i-1=A 3 i-A 3 i-1 B 3 i+1=A 3 i-A 3 i+1 (1) As an example, if n=8 and m=4, the reference data is A 3 i is 8 bits, differential data B 3 i-1,
Both B 3 i+1 are encoded with 4 bits, so the average number of bits per sample value is 16/3 = 5.33 bits, which is 2/3 compared to the conventional method in which all sample values are encoded with 8 bits. It becomes possible to compress bits into

以上の原理に基づくビツト圧縮は次のようにし
て行なわれる。第2図において、端子201より
入力されるnビツトのデイジタル信号a(第3図
2のa)は、基準データ抜取り器230に供給さ
れる一方、遅延器210にてサンプリング周期τ
に相当する時間遅延され、その出力b(第3図2
のb)は減算回路240の一方に入力される。
Bit compression based on the above principle is performed as follows. In FIG. 2, an n-bit digital signal a (a in FIG. 3 2) inputted from a terminal 201 is supplied to a reference data sampler 230, while being passed through a delay device 210 with a sampling period τ
is delayed by a time corresponding to
(b) is input to one side of the subtraction circuit 240.

基準データ抜取り器230にて、上記信号aよ
り基準標本値(A3i)が抜取られ、かつ3τの期
間その基準標本値がホールドされて出力される。
この基準データ抜取り器230からの出力c(第
3図2のc)は、減算器240の他方に入力され
ると共にROM251に入力される。
The reference data extractor 230 extracts the reference sample value (A 3 i) from the signal a, holds the reference sample value for a period of 3τ, and outputs it.
The output c (c in FIG. 3) from the reference data extractor 230 is input to the other side of the subtracter 240 and also to the ROM 251.

以上の各出力a,b,cはいずれもnビツトの
信号である。減算器240にて上記出力cとbの
差分演算が行なわれて両者の差分に応じたnビツ
トの出力d(第3図2のd)が得られる。具体的
には、3つの標本値(A3i−1,A3i,A3i+
1)に対し、前記(1)式で示した2つの差分データ
B3i−1とB3i+1が減算器240より出力d
として順次出力される。この出力dは読取り専用
モモリROM250のアドレス信号として供給さ
れる。ROM250は減算器240からのnビツ
トの出力dをm(<n)ビツトに変換する機能を
有する。そいてROM250における変換後の符
号の直流成分,低域成分が抑圧されるように
ROM250には符号変換データが書込まれてい
る。
Each of the above outputs a, b, and c is an n-bit signal. A subtracter 240 performs a difference calculation between the outputs c and b, and an n-bit output d (d in FIG. 3) corresponding to the difference between the two is obtained. Specifically, three sample values (A 3 i−1, A 3 i, A 3 i+
1), the two difference data shown in equation (1) above
B 3 i−1 and B 3 i+1 are output d from the subtracter 240.
are output sequentially as . This output d is supplied as an address signal for the read-only memory ROM 250. The ROM 250 has a function of converting the n-bit output d from the subtracter 240 into m (<n) bits. Then, the DC component and low frequency component of the code after conversion in the ROM 250 are suppressed.
Code conversion data is written in the ROM 250.

n=8,m=4の場合についてROM250に
おける変換特性の一例を第4図に示す。
FIG. 4 shows an example of conversion characteristics in the ROM 250 in the case of n=8 and m=4.

ROM250には、第4図に示すa0,a1,…,
a7とb0,b1,…,b7に対応する全部で16(即ち4
ビツト相当)のデータが書込まれており、これら
データは減算器240からのn(=8)ビツトの
出力dに応じてアドレス指定されて読取られる。
更に具体的には、減算器240からの出力dの値
が正又は0(即ちA3i≧A3i−1あるいはA3
≧A3i+1)の時には記号aに対応するデータ
が読取られ、またdの値が負(即ちA3i<A3
−1あるいはA3i<A3i+1)の時には記号b
に対応するデータが読取られる。その一例とし
て、第4図に示すようにdの値(即ち差分データ
Biの値)が54の時はa5に対応するデータCiが
ROM250より出力される。
The ROM 250 contains a 0 , a 1 ,..., shown in FIG.
A total of 16 ( i.e. 4
(corresponding to bits) are written, and these data are addressed and read according to the n (=8) bit output d from the subtracter 240.
More specifically, if the value of the output d from the subtracter 240 is positive or 0 (i.e., A 3 i≧A 3 i−1 or A 3 i
≧A 3 i+1), the data corresponding to the symbol a is read, and the value of d is negative (i.e., A 3 i<A 3 i
−1 or A 3 i<A 3 i+1), the symbol b
The data corresponding to is read. As an example, the value of d (i.e., the difference data
When the value of Bi) is 54, the data Ci corresponding to a 5 is
Output from ROM250.

かくしてROM250にて、減算器240から
のn(=8)ビツトの出力dはm(=4)ビツトに
変換される。即ち、前記(1)式のnビツトのデータ
B3i−1はmビツトの符号C3i−1に、またn
ビツトのデータB3i+1はmビツトの符号C3
+1にそれぞれ変換され、その出力e(第3図2
のe)はデータセレクタ260の端子Y1に供給
される。
Thus, in the ROM 250, the n (=8) bit output d from the subtracter 240 is converted into m (=4) bits. That is, the n-bit data in equation (1) above
B 3 i-1 is the code of m bits C 3 i-1 and n
Bit data B 3 i+1 is m-bit code C 3 i
+1 respectively, and the output e (Fig. 3 2
e) is supplied to the terminal Y1 of the data selector 260.

ROM250から出力されるa0,a1,…,a7
b0,b1,…,b7の各レベルに割当てられる符号の
一実施例を第5図に示す。
a 0 , a 1 , ..., a 7 output from the ROM250
An example of codes assigned to each level of b 0 , b 1 , . . . , b 7 is shown in FIG.

m(=4)ビツトの符号は全部で2m(=16)個で
あるが、mビツトの符号語のCDSを求め、差分
データの絶対値の小さいものから順にCDSの絶
対値の小さいものに割当てる。m=4の場合につ
いて具体的に述べると、CDS=0となる符号語
は6個あり、それをa0,a1,a2,b0,b1,b2に割
当てる。次にCDS=+2となる符号語は4個有
り、それをa3,a4,a5,a6に、CDS=−2となる
4個の符号語b3,b4,b5,b6に、CDS=+4とな
る符号語をa7に、CDS=−4となる符号語をb7
割当てる。このようにして求めた符号の一例を第
5図に示す。なお、あるCDSの値に対し複数の
符号語が得られる場合には、同一CDS値内の符
号語の順は任意であり、第5図に示す符号変換に
限るものではない。
There are a total of 2 m (=16) m (= 4) bit codes, but the CDS of the m-bit code words is calculated, and the codes are arranged in order from the one with the smallest absolute value of the difference data to the one with the smallest absolute value of CDS. Assign. Specifically regarding the case where m=4, there are six code words with CDS=0, and they are assigned to a 0 , a 1 , a 2 , b 0 , b 1 , and b 2 . Next, there are 4 code words with CDS=+2, which are a 3 , a 4 , a 5 , a 6 , and 4 code words with CDS=-2, b 3 , b 4 , b 5 , b 6 , a code word with CDS=+4 is assigned to a 7 , and a code word with CDS=-4 is assigned to b 7 . An example of the code obtained in this way is shown in FIG. Note that when a plurality of code words are obtained for a certain CDS value, the order of the code words within the same CDS value is arbitrary and is not limited to the code conversion shown in FIG. 5.

一般に画像信号は時間軸方向に対し相関が強く
低域成分が大きいため、隣接する標本値の差信号
Biのレベルは小さい。従つて一般の画像信号に
本発明に係る第5図の符号変換を適用すれば、符
号CiのCDSの絶対値は小さくなり、符号の直流
成分、低域成分を抑圧することができる。
In general, image signals have strong correlation in the time axis direction and large low-frequency components, so the difference signal between adjacent sample values
The level of Bi is small. Therefore, if the code conversion shown in FIG. 5 according to the present invention is applied to a general image signal, the absolute value of the CDS of the code Ci becomes small, and the DC component and low frequency component of the code can be suppressed.

一方、基準データ抜取り器230からの出力c
はROM251のアドレス信号としてROM25
1に供給される。基準データA3iより成る信号
cはnビツトの信号であり、ROM251では基
準データA3iに対しnビツトの符号をCDSの大
きいものから順に配置する。第6図はn=8ビツ
トの場合の符号変換の一例を示す。
On the other hand, the output c from the reference data extractor 230
is the ROM251 address signal.
1. The signal c consisting of the reference data A 3 i is an n-bit signal, and the ROM 251 arranges n-bit codes for the reference data A 3 i in descending order of CDS. FIG. 6 shows an example of code conversion when n=8 bits.

一般の画像信号は時間軸方向に対し相関が大き
く低域区分が大きいため、信号cのレベル変化は
小さい。従つて、信号cの符号A3iをアドレス
信号としてROM251から読出した新たな符号
をA′3iとすると、ROM251から連続して出力
されるA′3i3とA′3i+3のCDSは一致する確立が
きわめて高く、異なつてもその差は小さい。
Since a general image signal has a large correlation in the time axis direction and a large low frequency division, the level change of the signal c is small. Therefore, if the new code read from the ROM 251 is A' 3 i using the code A 3 i of the signal c as an address signal, the CDS of A' 3 i3 and A' 3 i+3 successively output from the ROM 251 match. The probability of doing so is extremely high, and even if there are differences, the differences are small.

ROM251からの出力信号を符号反転回路2
52に入力し、一基準データ毎に(即ち、N(=
3)τ毎に)、“0”,“1”のレベルを反転する。
即ち、符号A′3iの“1”,“0”のレベルを反転
した符号を′3で表わすと、符号反転回路25
2に入力された符号列A3i−′3,A′3i,A3
+′3,A3i+′6,…は符号列A3i−′3,′3
i,A3i+′3,3+′6…として出力される。
以下符号反転回路252の出力データをD3iで
表わす。
Sign inversion circuit 2 converts the output signal from ROM251
52, and for each reference data (i.e., N(=
3) At every τ), the levels of “0” and “1” are inverted.
That is, if the sign obtained by inverting the "1" and "0" levels of the code A' 3 i is expressed as ' 3 , then the sign inverting circuit 25
2, the code string A 3 i−′3, A′ 3 i, A 3 i
+'3, A 3 i+'6, ... is a code string A 3 i-'3,' 3
i, A 3 i+'3, 3 +'6...
Hereinafter, the output data of the sign inversion circuit 252 will be expressed as D 3 i.

従つて、隣接するnビツト符号語2つのCDS
の合計を求めると互いに打消し合い、その合計は
0もしくは小さい値となる。即ち、A3i−′3と
A3iのCDSの和は0もしくは小さい値となる。
Therefore, the CDS of two adjacent n-bit codewords
When you calculate the sum of the two, they cancel each other out, and the sum becomes 0 or a small value. That is, A 3 i-'3 and
The sum of CDS of A 3 i becomes 0 or a small value.

以上のように、mビツトの差分信号から作られ
た符号のCDSは小さく、また、基準データに基
づくnビツトの符号は互いに隣接する基準データ
毎にCDSを打消し合うことにより、符号の直流
成分、低域成分を小さくすることができる。
As described above, the CDS of the code created from the m-bit difference signal is small, and the n-bit code based on the reference data cancels the CDS of each adjacent reference data, thereby reducing the DC component of the code. , it is possible to reduce the low frequency components.

このようにして得られた符号反転回路252の
出力はデータセレクタ260の端子Y2に供給さ
れる。
The output of the sign inversion circuit 252 obtained in this manner is supplied to the terminal Y 2 of the data selector 260.

データセレクタ260にて、ROM250から
の出力eと符号反転回路252からの出力が交互
に選択され、ROM250からの出力eよりmビ
ツトのデータC3i−1とC3i+1が選択出力さ
れ、また符号反転回路252からの出力よりnビ
ツトの基準データD3iが選択出力される。従つ
て、このデータセレクタ260からの出力f(第
3図2のf)は、(C3i−1,D3i,C3i+1)
の順で各データビツト数はそれぞれ(m,n,
m)に対応した符号として表現することができ
る。
The data selector 260 alternately selects the output e from the ROM 250 and the output from the sign inversion circuit 252, selects and outputs m-bit data C 3 i-1 and C 3 i+1 from the output e from the ROM 250, and From the output from the sign inversion circuit 252, n-bit reference data D 3 i is selectively output. Therefore, the output f (f in FIG. 3 2) from this data selector 260 is (C 3 i-1, D 3 i, C 3 i+1)
The number of data bits is (m, n,
It can be expressed as a code corresponding to m).

以下他の標本値も同様にして、3つの標本値毎
に逐次ビツト数(m,n,m)の符号としてビツ
ト圧縮されていく。
Thereafter, the other sample values are bit-compressed in the same manner as codes of the number of bits (m, n, m) for each three sample values.

かくして第2図に示した符号器にてビツト圧
縮、符号変換して得た出力fは端子202より、
前記第1図のPCMプロセツサ30を介してメモ
リ40に逐次書込まれる。
In this way, the output f obtained by bit compression and code conversion in the encoder shown in FIG.
The data is sequentially written into the memory 40 via the PCM processor 30 shown in FIG.

ここで、1ワードをnビツトとし、n=2×m
とすると、効率良くメモリ40に符号を書込むこ
とができる。
Here, one word is n bits, and n=2×m
Then, the code can be efficiently written into the memory 40.

即ち、メモリ40をワード単位で格納する構成
とし、nビツトデータD3iについてはそのまま
ワード単位で書込み、mビツトデータについては
最初のデータC3i−1を1ワードのうちの半分
(例えば上位mビツト)に書込み、これに引続き
次のデータC3i+1はそのワードの残りの半分
(例えば下位mビツト)に書込む。
That is, the memory 40 is configured to store in word units, n-bit data D 3 i is written as is in word units, and m-bit data is written with the first data C 3 i-1 as half of one word (for example, in the upper Subsequently, the next data C 3 i+1 is written to the remaining half of the word (eg, the lower m bits).

このようにすることにより、メモリ40には無
駄なスペースを生じさせることなく密に書込むこ
とができメモリ容量を低減できるばかりでなく、
記録及び再生のいずれにおいてもデータをすべて
一定のワード単位で処理することができることか
ら、PCMプロセツサ30での処理の煩雑化を防
止でき、回路規模を縮小できる効果が得られる。
By doing so, not only can data be written in the memory 40 densely without creating wasted space, but also the memory capacity can be reduced.
Since all data can be processed in fixed word units during both recording and reproduction, it is possible to prevent the processing in the PCM processor 30 from becoming complicated, and it is possible to achieve the effect of reducing the circuit scale.

このようにして、PCMプロセツサ30を介し
て順次ワード単位に読取られ、かつその読取られ
たnビツトの並列のデータは逐次ワード毎に直列
に変換されて出力される。その結果、第3図2の
gに示すように、上記のビツト数(m,n,m)
の符号データ(C3i−1,D3i,C3i+1)が
(C3i−1,C3i+1,D3i)の順序でビツト数
(m,m,n)の直列データgとしてPCMプロセ
ツサ30より出力される。この直列データ出力g
は記録増幅器60を介して磁気ヘツド3により磁
気テープ4に直接記録(いわゆるNRZ記録)さ
れる。
In this way, the data is sequentially read word by word through the PCM processor 30, and the read n-bit parallel data is successively converted word by word into serial data and output. As a result, as shown in Fig. 3 2g, the above bit number (m, n, m)
The code data (C 3 i-1, D 3 i, C 3 i+ 1) is serial data g of the number of bits (m, m, n) in the order of (C 3 i -1, C 3 i+1, D 3 i). It is output from the PCM processor 30 as This serial data output g
is directly recorded on the magnetic tape 4 by the magnetic head 3 via the recording amplifier 60 (so-called NRZ recording).

次に、本発明に係る復号器90の一実施例を第
7図に、その動作説明用の各部波形図を第8図に
示す。
Next, an embodiment of the decoder 90 according to the present invention is shown in FIG. 7, and a waveform diagram of each part for explaining its operation is shown in FIG. 8.

再生時には上記により記録されたデータは磁気
テープ4より磁気ヘツド3により再生されて、再
生等化器70で適宜等化されて、再生等化器70
からは上記の直列データ出力gと同様の(C3
−1,C3i+1,D3i)の順序でビツト数(m,
m,n)の直列データ出力g′(第8図のg′)が得
られる。
During reproduction, the data recorded as described above is reproduced from the magnetic tape 4 by the magnetic head 3, and is appropriately equalized by the reproduction equalizer 70.
From (C 3 i
-1, C 3 i+1, D 3 i) in the order of the number of bits (m,
A serial data output g'(g' in FIG. 8) of the data m, n) is obtained.

この直列データ出力g′は、PCMプロセツサ3
0を介してワード毎に並列データに変換されてか
ら逐次メモリ40に書込まれる。メモリ40に
(C3i−1,C3i+1,D3i)の順で書込まれた
データは、まずmビツトのデータC3i−1が、
続いてnビツトのデータD3iが、これに引続き
残りのmビツトのデータC3i+1が逐次読取ら
れる。従つて、PCMプロセツサ30からは、上
記符号器20からの出力fと同様の出力a′(第8
図のa′)が得られ、この出力a′は第7図に示す復
号器90の端子301に供給される。
This serial data output g' is
The data is converted word by word into parallel data via 0 and then sequentially written into the memory 40. The data written to the memory 40 in the order (C 3 i-1, C 3 i+1, D 3 i) is first m-bit data C 3 i-1,
Next, n-bit data D 3 i is read out, followed by the remaining m-bit data C 3 i+1. Therefore, the PCM processor 30 outputs an output a' (eighth
a') in the figure is obtained, and this output a' is supplied to the terminal 301 of the decoder 90 shown in FIG.

ここで前記(1)式より、元の標本値A3i−1と
A3i+1は次式により求めることができる。
Here, from equation (1) above, the original sample value A 3 i-1 and
A 3 i+1 can be determined by the following formula.

A3i−1=A3i−B3i−1 A3i+1=A3i−B3i+1 …(2) 復号器90は記録再生された上記データ(C3
i−1,D3i,C3i+1)からnビツトのデー
タB3i−1,B3i+1とA3iを得、上記(2)式に
基づく演算を行なうことによつて、元の標本値
(A3i−1,A3i,A3i+1)を復元させるも
のである。
A 3 i-1=A 3 i-B 3 i-1 A 3 i+1=A 3 i-B 3 i+1 (2) The decoder 90 receives the recorded and reproduced data (C 3
By obtaining n-bit data B 3 i-1, B 3 i+1 and A 3 i from (i-1, D 3 i, C 3 i+1) and performing calculations based on equation (2) above, the original This is to restore the sample values (A 3 i-1, A 3 i, A 3 i+1).

即ち、第7図において、端子301に供給され
るPCMプロセツサ30からの出力a′は基準デー
タ抜取り器330に入力される一方、遅延器31
0にてサンプリング周期τに相当する時間遅延さ
れ、その出力b′(第8図のb′)はROM350のm
ビツトのアドレス信号として供給される。
That is, in FIG. 7, the output a' from the PCM processor 30 supplied to the terminal 301 is input to the reference data extractor 330, while the output a'
0, the output b'(b' in Fig. 8) is delayed by a time corresponding to the sampling period τ, and the output b'(b' in Fig. 8) is
Provided as a bit address signal.

ROM350にて上記遅延器310から出力さ
れるmビツトのデータC3i−1,C3i+1は前
記第4図に示した特性に準じてnビツトのデータ
B3i−1,B3i+1にそれぞれ変換される。そ
の一例として、第4図に示すように遅延器310
からの出力データCiがa5に対応している場合に
は、54の値を有するデータBiがROM350より
出力される。
The m-bit data C 3 i-1 and C 3 i+1 outputted from the delay device 310 in the ROM 350 are n-bit data according to the characteristics shown in FIG.
They are converted into B 3 i-1 and B 3 i+1, respectively. As an example, as shown in FIG.
If the output data Ci corresponds to a5 , data Bi having a value of 54 is output from the ROM 350.

かくして、ROM350にてnビツトに変換さ
れた出力c′(第8図のc′)は減算器340の一方
に供給される。
Thus, the output c'(c' in FIG. 8) converted into n bits by the ROM 350 is supplied to one side of the subtracter 340.

基準データ抜取り器330にて、上記出力a′よ
りそれに含まれる基準データD3iがN(=3)τ
毎に抜取られ、符号反転回路331にて一基準デ
ータ毎(N(=3)τ毎)に交互に符号反転され
る。符号反転回路331の出力信号(A′3i,A3
i′+3…)はROM332のアドレス信号として
供給され、第6図に示した符号変換に基づき、元
の基準データ(A3i,A3i+3,…)を得、3τ
の期間その基準データをホールドして出力する。
このROM332の出力信号d′(第8図のd′)は減
算器340の他方に入力されると共にデータセレ
クタ360の端子Y2に供給される。
In the reference data extractor 330, the reference data D 3 i included in the above output a' is N(=3)τ
The reference data is extracted every time, and the sign is inverted by the sign inversion circuit 331 every one reference data (every N (=3) τ). The output signal of the sign inversion circuit 331 (A′ 3 i, A 3
i′+3...) is supplied as the address signal of the ROM 332, and based on the code conversion shown in FIG. 6, the original reference data (A 3 i, A 3 i+3,...) is obtained, and 3τ
The reference data is held and output for a period of .
The output signal d'(d' in FIG. 8) of the ROM 332 is input to the other side of the subtracter 340 and is also supplied to the terminal Y 2 of the data selector 360.

減算器340にて上記出力d′の基準データA3
iと上記出力c′の差分データB3i−1,B3i+
1との差分演算が行なわれ、前記(2)式で示した差
分データA3i−1,A3i+1が減算器340よ
り出力される。この出力e′(第8図のe′)はデー
タセレクタ360の端子Y1に供給される。
In the subtracter 340, the reference data A 3 of the above output d'
Difference data between i and the above output c′ B 3 i−1, B 3 i+
1 is performed, and the subtracter 340 outputs the difference data A 3 i-1, A 3 i+1 shown in equation (2) above. This output e'(e' in FIG. 8) is supplied to the terminal Y1 of the data selector 360.

データセレクタ360にて上記出力d′より基準
データA3iが、上記出力e′より差分データA3
−1,A3i+1がそれぞれ選択され、元の標本
値(A3i−1,A3i,A3i+1)に対応するデ
ータf′(第8図のf′)が復元されて端子302に出
力される。
The data selector 360 selects the reference data A 3 i from the output d' and the difference data A 3 i from the output e'.
-1 and A 3 i+1 are selected, and the data f'(f' in FIG. 8) corresponding to the original sample values (A 3 i-1, A 3 i, A 3 i+1) is restored and sent to the terminal 302. is output to.

第3図、第8図の波形図に示した本発明の実施
例では、符号データ(C3i−1,D3i,C3i+
1を(C3i−1,C3i+1,D3i)の順序で
PCMプロセツサ30より出力するようにした。
ここで、mビツトデータCiはCDSが小さく直流
成分,低域成分が少ない。一方、nビツトデータ
のD3iについては、A3i′−3と′3でCDSを打
消し合つて直流成分,低域成分を抑圧している。
そこで、以下のようにすればさらに直流成分,低
域成分を抑圧することができる。即ち、PCMプ
ロセツサ30での符号データ読出し順序を4ワー
ド周期で、(C3i−4,C3i−2,A′3i−3),
(′3,C3i−1,C3i+1)となるようにし、
nビツトデータを2つ連続して読み出す。これに
より、nビツトデータA′3i−3とA3i′が隣接し、
2ワード内でCDSが互いに打消し合い直流成分,
低域成分を著しく抑圧する効果が得られる。
In the embodiment of the present invention shown in the waveform diagrams of FIGS. 3 and 8, code data (C 3 i-1, D 3 i, C 3 i+
1 in the order of (C 3 i-1, C 3 i+1, D 3 i)
It is now possible to output from PCM processor 30.
Here, the m-bit data Ci has a small CDS and has few DC components and low frequency components. On the other hand, regarding D 3 i of n-bit data, A 3 i'-3 and ' 3 cancel out the CDS to suppress the DC component and the low frequency component.
Therefore, the DC component and the low frequency component can be further suppressed by the following procedure. That is, the code data reading order in the PCM processor 30 is set in a 4-word period (C 3 i-4, C 3 i-2, A' 3 i-3),
(′ 3 , C 3 i−1, C 3 i+1),
Read two pieces of n-bit data consecutively. As a result, n-bit data A' 3 i-3 and A 3 i' are adjacent to each other,
The CDS cancels each other within two words, creating a DC component,
The effect of significantly suppressing low frequency components can be obtained.

本発明の他の実施例を第9図に示す。第9図は
本発明に係わる符号器20の他の実施例を示すブ
ロツク図であり、第10図、第11図はその動作
説明用の各部波形図である。第12図は本発明に
係わる復号器90の他の実施例を示すブロツク図
であり、第13図はその各部波形図である。第9
図、第12図は一部第2図、第7図と共通であ
り、その共通部分には同一符号を付し、その詳細
説明は省略する。
Another embodiment of the invention is shown in FIG. FIG. 9 is a block diagram showing another embodiment of the encoder 20 according to the present invention, and FIGS. 10 and 11 are waveform diagrams of various parts for explaining its operation. FIG. 12 is a block diagram showing another embodiment of the decoder 90 according to the present invention, and FIG. 13 is a waveform diagram of each part thereof. 9th
Parts of FIG. 12 and FIG. 12 are common to FIG. 2 and FIG. 7, and the common parts are denoted by the same reference numerals and detailed explanation thereof will be omitted.

第9図において、端子201より第1図のA/
D変換器10から出力されるnビツトのデイジタ
ル信号aが入力され、以下信号b,c,dが第2
図と同様に得られる。第10図a〜dは各信号a
〜dの波形図である。
In FIG. 9, from the terminal 201 to A/ in FIG.
The n-bit digital signal a output from the D converter 10 is input, and the following signals b, c, and d are the second
Obtained similarly to the figure. Figures 10 a to d show each signal a.
It is a waveform diagram of ~d.

本実施例は基準データ抜取り回路230で抜取
つたnビツトの基準データA3iの先頭に1ビツ
トの冗長ビツトを付加し、n+1ビツトの符号を
NRZI変換(符号“0”ならば非反転、符号
“1”ならば反転する符号変換方式)し、基準デ
ータA3iの直前までのDSV値(過去から現在ま
での“1”レベルと“0”レベルのそれぞれの総
出現数の差)を求め以下のDSV値が0に近づく
ように付加した冗長ビツトを制御して、伝送符号
の直流成分,低域成分を抑圧するものである。以
下その詳細を説明する。
In this embodiment, one redundant bit is added to the beginning of the n-bit reference data A 3 i extracted by the reference data extraction circuit 230, and a sign of n+1 bits is added.
NRZI conversion (a code conversion method that does not invert if the code is "0" and inverts if the code is "1"), and converts the DSV value immediately before the reference data A 3 i (the "1" level from the past to the present and the "0" level). This method suppresses the DC component and low-frequency component of the transmission code by determining the difference in the total number of occurrences of each level and controlling the added redundant bits so that the following DSV values approach 0. The details will be explained below.

減算器240の出力はデータセレクタ420の
一方の入力端子X1と遅延時間τの遅延器を介し
て他方の入力端子X1に入力される。データセレ
クタ420では、端子X1,X2より入力された信
号を交互に選択することにより、信号d1(第10
図のd1)を出力する。信号d1はROM250に入
力され、第4図、第5図に示す特性に従い直流成
分,低域成分が抑圧されて信号e(第10図のe)
が出力され、信号eはデータセレクタ260の端
子Y1とDSVを計数するDSVカウンタ回路430
に入力される。
The output of the subtracter 240 is input to one input terminal X 1 of the data selector 420 and the other input terminal X 1 via a delay device having a delay time τ. The data selector 420 alternately selects the signals input from the terminals X 1 and X 2 to select the signal d 1 (10th
Output d 1 ) in the figure. The signal d 1 is input to the ROM 250, and the DC component and low frequency component are suppressed according to the characteristics shown in FIGS. 4 and 5, and the signal e (e in FIG. 10) is generated.
is output, and the signal e is connected to the terminal Y1 of the data selector 260 and the DSV counter circuit 430 that counts the DSV.
is input.

一方、基準データ抜取り回路230で抜取られ
た基準データA3iはNRZI変換回路440に入力
され、NRZI変換された後(NRZI変換された基
準データをE3iとする)冗長ビツト制御回路4
50に入力される。冗長ビツト制御回路450で
は、信号E3iの直前に1ビツトの冗長ビツトを
付加し以下のDSV値が0に近づくようにその符
号を制御する。なお、冗長ビツトはNRZI変換規
則に従つて付加するが、それについては第11図
を用いて説明する。
On the other hand, the reference data A 3 i extracted by the reference data extraction circuit 230 is input to the NRZI conversion circuit 440, and after NRZI conversion (NRZI converted reference data is designated as E 3 i), the redundant bit control circuit 4
50 is entered. The redundant bit control circuit 450 adds one redundant bit immediately before the signal E 3 i and controls its sign so that the following DSV values approach zero. Note that redundant bits are added according to the NRZI conversion rules, which will be explained using FIG.

第11図は、冗長ビツト制御回路450での冗
長ビツトの制御方法の説明図である。第11図の
1,2は基準標本値E3iの直前(信号C3i−2)
までのDSVが正の場合、3,4は負の場合につ
いて示している。また、1,3はE3iのCDSが
正の場合で、2,4は負の場合について示してい
る。各場合ともにE3iまでのDSVが0に近づく
ように冗長ビツトを制御している。即ち、1,4
の場合には冗長ビツトが“1”となりデータE3
iの符号が反転するように制御し、即ち3
出力されるように制御し、また2,3の場合には
冗長ビツトが“0”となるように制御し、E3
のまま出力されるように制御する。
FIG. 11 is an explanatory diagram of a redundant bit control method in the redundant bit control circuit 450. 1 and 2 in Fig. 11 are immediately before the reference sample value E 3 i (signal C 3 i-2)
3 and 4 are for negative cases. Further, 1 and 3 indicate the case where the CDS of E 3 i is positive, and 2 and 4 indicate the case where the CDS of E 3 i is negative. In each case, the redundant bits are controlled so that the DSV up to E 3 i approaches 0. That is, 1,4
In this case, the redundant bit becomes “1” and the data E 3
E 3 i
control so that it is output as is.

以上のように冗長ビツトを制御することによ
り、DSV値を0に近づけることができ、直流成
分,低域成分を抑圧する効果が得られる。
By controlling the redundant bits as described above, the DSV value can be brought close to 0, and the effect of suppressing DC components and low frequency components can be obtained.

また、冗長ビツトをいずれに選択してもデータ
E3iまでのDSV値が変化しない場合には、信号
C3i−2の最終ビツトと冗長ビツト間で符号反
転するように、冗長ビツトの符号を制御する。こ
のように制御することにより、符号の反転頻度を
高めることができ、再生時に必要となるタイミン
グ抽出情報を多く与えることができ、伝送誤りを
減少させる効果が得られる。
Also, no matter which redundant bit is selected, the data
If the DSV value up to E 3 i does not change, the signal
The sign of the redundant bit is controlled so that the sign is inverted between the last bit of C 3 i-2 and the redundant bit. By controlling in this manner, it is possible to increase the frequency of code inversion, provide a large amount of timing extraction information required during reproduction, and have the effect of reducing transmission errors.

以上のように動作する冗長ビツト制御回路45
0の出力をデータセレクタ260とDSVカウン
タ回路430に入力する。なお、以下では冗長ビ
ツトを付加した基準データをF3iとする。
The redundant bit control circuit 45 operates as described above.
The output of 0 is input to the data selector 260 and the DSV counter circuit 430. In the following, reference data to which redundant bits have been added will be referred to as F 3 i.

信号F3iはDSVカウンタ回路430に入力さ
れ、差分信号(C3i−3,C3i−2)に続いて
DSVのカウントが行なわれる。
The signal F 3 i is input to the DSV counter circuit 430, and following the difference signal (C 3 i-3, C 3 i-2)
A DSV count is performed.

データセレクタ260では、差分信号と基準デ
ータとを交互に選択し、信号f(第10図のf)
を得る。以下第1図、第2図に示す実施例と同様
に信号fはPCMプロセツサ30を介してメモリ
40に逐次書込まれ、その後第1図の実施例と同
様に、PCMプロセツサ30から直列データg(第
10図のg)が出力される。本実施例の場合に
は、n+1=2mとなるようにビツト数を設定す
れば、1ワードをn+1ビツトとして、ワード単
位に処理を行なうことができ、これについても第
1図、第2図に示す実施例と同様に、効率良くメ
モリを使用できる。
The data selector 260 alternately selects the difference signal and the reference data, and selects the signal f (f in FIG. 10).
get. Hereinafter, similarly to the embodiments shown in FIGS. 1 and 2, the signal f is sequentially written to the memory 40 via the PCM processor 30, and then, similarly to the embodiment shown in FIG. (g in Figure 10) is output. In the case of this embodiment, if the number of bits is set so that n+1=2m, one word can be treated as n+1 bits, and processing can be performed in units of words. Like the embodiment shown, memory can be used efficiently.

次に第9図の符号器に対応する復号器の実施例
を第12図に示す。第13図はその各部波形図で
ある。第12図は一部第7図と共通であり、その
共通部分には同一符号を付しその詳細説明は省略
する。第12図において、510はNRZI復調回
路、520は冗長ビツト除去回路である。
Next, FIG. 12 shows an embodiment of a decoder corresponding to the encoder of FIG. 9. FIG. 13 is a waveform diagram of each part. A part of FIG. 12 is common to FIG. 7, and the common parts are given the same reference numerals and detailed explanation thereof will be omitted. In FIG. 12, 510 is an NRZI demodulation circuit, and 520 is a redundant bit removal circuit.

第10図gに示す様に記録された信号は、第1
3図g′に示す様に再生される。信号g′はPCMプ
ロセツサ30を介してワード毎に並列データに変
換されてから、逐次メモリ40に書込まれる。メ
モリ40に(F3i,C3i−1,C3i+1)の順
に書込まれたデータは、(C3i−1,F3i,C3
+1)の順に読取られ(第13図のa′)第12図
の端子301から復号器に入力される。
The signal recorded as shown in Figure 10g is the first
It is reproduced as shown in Figure 3g'. The signal g' is converted word by word into parallel data via the PCM processor 30, and then sequentially written into the memory 40. The data written to the memory 40 in the order of (F 3 i, C 3 i-1, C 3 i+1) is (C 3 i-1, F 3 i, C 3 i
+1) (a' in FIG. 13) and input to the decoder from the terminal 301 in FIG. 12.

端子301より入力されたデータa′は基準デー
タ抜取り器330に入力されるとともに、遅延器
310に入力される。遅延器310に入力された
データa′は第7図の実施例と同様に、時間τ遅延
された後(第13図のb′)その出力はROM35
0に入力され、nビツトの差分データ(第13図
のc′)を得、減算器340に入力される。
Data a' inputted from the terminal 301 is inputted to the reference data extractor 330 and also inputted to the delayer 310. Similarly to the embodiment of FIG. 7, the data a' input to the delay device 310 is delayed by a time τ (b' of FIG. 13), and then its output is sent to the ROM 35.
0, n-bit difference data (c' in FIG. 13) is obtained, and is input to the subtracter 340.

一方、基準データ抜取り器330で抜取られた
基準データF3iはNRZI復調回路330に入力さ
れ、復調された後、基準データの先頭に付加され
た冗長ビツトを冗長ビツト除去回路520で除去
し(第13図のd′)、その出力データd′を減算回
路340とデータセレクタ360のY2端子に入
力する。
On the other hand, the reference data F 3 i extracted by the reference data extractor 330 is input to the NRZI demodulation circuit 330 and demodulated, and then the redundant bits added to the beginning of the reference data are removed by the redundant bit removal circuit 520 ( d' in FIG. 13, the output data d' is input to the subtraction circuit 340 and the Y 2 terminal of the data selector 360.

減算回路340では、第7図に示す実施例と同
様に(2)式に示す演算が行なわれ、元の標本値が復
元(第13図のe′)される。減算回路340の出
力データe′はデータセレクタ360の端子Y1に入
力され、以下第7図に示す実施例と同様に処理さ
れ、画像信号V′が復元される。
In the subtraction circuit 340, the operation shown in equation (2) is performed as in the embodiment shown in FIG. 7, and the original sample value is restored (e' in FIG. 13). The output data e' of the subtraction circuit 340 is input to the terminal Y1 of the data selector 360, and is processed in the same manner as in the embodiment shown in FIG. 7 to restore the image signal V'.

なお、第9図、第12図に示す実施例ではnビ
ツトの基準データの直流成分,低域成分の抑圧の
ためにNRZI変換を行ない、NRZI変換規則に従
つた冗長ビツトを付加する例について示した。し
かしnビツトの基準データをNRZI変換せずに直
流成分,低域成分を抑圧することもできる。
In the embodiments shown in FIGS. 9 and 12, NRZI conversion is performed to suppress DC components and low-frequency components of n-bit reference data, and redundant bits are added according to the NRZI conversion rules. Ta. However, it is also possible to suppress DC components and low frequency components without performing NRZI conversion on the n-bit reference data.

第9図で、基準データ抜取り器230の出力
A3iをNRZI変換回路440を介さずに冗長ビツ
ト制御回路450に入力する。冗長ビツトが
“1”ならば入力された基準データA3iの各符号
が反転された3が出力され、冗長ビツトが
“0”ならば反転されずA3iのまま出力されるこ
とを示す。冗長ビツトは第9図に示す実施例と同
様に基準データA3iの直前までのDSV値と基準
データA3iのCDS値をもとに制御され以下の
DSV値が0に近づくように制御される。以下第
9図の実施例と同様に処理することにより直流成
分,低域成分を抑圧することができる。
In FIG. 9, the output of the reference data extractor 230
A 3 i is input to the redundant bit control circuit 450 without going through the NRZI conversion circuit 440. If the redundant bit is "1", each sign of the input reference data A 3 i is inverted and 3 is output; if the redundant bit is "0", it is not inverted and is output as A 3 i. . The redundant bits are controlled based on the DSV value immediately before the reference data A 3 i and the CDS value of the reference data A 3 i, as in the embodiment shown in FIG.
The DSV value is controlled to approach 0. By performing the same processing as in the embodiment shown in FIG. 9, the direct current component and low frequency component can be suppressed.

上記に対応した復号器の動作を説明する。第1
2図で、基準データ抜き取り器330の出力を
NRZI復調回路510を介さずに冗長ビツト除去
回路520に入力する。冗長ビツト除去回路52
0では冗長ビツトの符号により入力された基準デ
ータの符号を反転し、さらに冗長ビツトを除去し
て復元された基準データを出力する。なお上記の
反転制御は符号器の動作に対応させ、上記符号器
の例に対応した復号器では冗長ビツト“1”で符
号反転、“0”で非反転制御を行なう。以下第1
2図に示す実施例と同様に処理することにより映
像信号V′が復元できる。
The operation of the decoder corresponding to the above will be explained. 1st
In Figure 2, the output of the reference data extractor 330 is
The signal is input to the redundant bit removal circuit 520 without going through the NRZI demodulation circuit 510. Redundant bit removal circuit 52
At 0, the sign of the input reference data is inverted based on the sign of the redundant bit, and the redundant bit is further removed to output restored reference data. The above inversion control is made to correspond to the operation of the encoder, and in a decoder corresponding to the example of the encoder described above, code inversion is performed when the redundant bit is "1", and non-inversion control is performed when the redundant bit is "0". Part 1 below
The video signal V' can be restored by performing the same processing as in the embodiment shown in FIG.

〔発明の効果〕〔Effect of the invention〕

以上述べたように本発明によれば、伝送すべき
情報信号の劣化を生じさせないで、あるいは生じ
てもその影響が少なく、また量子化雑音の累積や
符号誤りによるエラー伝搬を生ずることなく信号
の情報量を効率良く低減することができるととも
に、冗長ビツトを付加せずに、あるいは付加して
も最少にして伝送するデイジタル信号の直流成
分,低域成分を抑圧することができ、符号誤りを
低下させることができ、実質の伝送可能な情報量
を大きくとれるという効果がある。
As described above, according to the present invention, the information signal to be transmitted can be improved without causing deterioration of the information signal, or even if it occurs, the influence thereof is small, and without causing error propagation due to accumulation of quantization noise or code errors. In addition to efficiently reducing the amount of information, it is possible to suppress the DC and low-frequency components of the digital signal being transmitted without adding redundant bits, or with the minimum amount of redundant bits added, thereby reducing code errors. This has the effect of increasing the amount of information that can actually be transmitted.

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

第1図は本発明の一実施例を示すブロツク図、
第2図は本発明に係わる符号器の一実施例を示す
ブロツク図、第3図はその各部波形図、第4図は
その符号及び復号特性を示す図、第5図、第6図
は本発明に係わる符号変換特性の一実施例を示す
図、第7図は本発明に係わる復号器の一実施例を
示すブロツク図、第8図はその各部波形図、第9
図は本発明に係わる符号器の他の実施例を示すブ
ロツク図、第10図、第11図はその各部波形
図、第12図は本発明に係わる復号器の他の実施
例を示すブロツク図、第13図はその各部波形図
である。 20……符号器、90……復号器、210,3
10,410……遅延器、230,330……基
準データ抜取り器、240,340……減算器、
250,251,332,350……ROM、2
52,331……符号反転回路、260,36
0,420……データセレクタ、430……
DSVカウンタ回路、440……NRZI変換回路、
450……冗長ビツト制御回路、510……
NRZI復調回路、520……冗長ビツト除去回
路。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIG. 2 is a block diagram showing an embodiment of the encoder according to the present invention, FIG. 3 is a waveform diagram of each part thereof, FIG. 4 is a diagram showing its encoding and decoding characteristics, and FIGS. FIG. 7 is a block diagram showing an embodiment of the decoder according to the invention, FIG. 8 is a waveform diagram of each part thereof, and FIG.
The figure is a block diagram showing another embodiment of the encoder according to the present invention, FIGS. 10 and 11 are waveform diagrams of each part thereof, and FIG. 12 is a block diagram showing another embodiment of the decoder according to the present invention. , FIG. 13 is a waveform diagram of each part thereof. 20...Encoder, 90...Decoder, 210,3
10,410...Delay device, 230,330...Reference data extractor, 240,340...Subtractor,
250, 251, 332, 350...ROM, 2
52, 331... Sign inversion circuit, 260, 36
0,420...Data selector, 430...
DSV counter circuit, 440...NRZI conversion circuit,
450... Redundant bit control circuit, 510...
NRZI demodulation circuit, 520...redundant bit removal circuit.

Claims (1)

【特許請求の範囲】 1 情報信号のN個(Nは2以上の整数)の標本
値ごとにそのうちの少なくとも1つの標本値を基
準標本値としてビツト数n(nは2以上の整数)
で符号化し、残りの標本値を上記基準標本値との
差分に基づいてビツト数m(m<nの整数)で符
号化する符号変換方法において、 絶対値の大きな上記差分に対してはCDS(1つ
の符号の最初から最後までの“1”と“0”の出
現数の差)の絶対値の大きな上記mビツト符号を
割当て、絶対値の小さな上記差分に対しては
CDSの絶対値の小さな上記mビツト符号を割当
てて符号化することを特徴とする符号変換方法。 2 上記基準標本値に対しその大きさの順に上記
nビツトの符号をそのCDSの大きさの順に割当
てて符号変換し、該符号変換されたnビツトの基
準標本値を該基準標本値毎に交互に符号反転する
ことを特徴とする特許請求の範囲第1項記載の符
号変換方法。 3 上記符号化された基準標本値の前までの
DSV(過去から現在までの“1”レベルと“0”
レベルのそれぞれの総出現数の差)を求め、 上記符号化された基準標本値の前に少なくとも
1ビツトの冗長ビツトを付加し、 上記符号化された基準標本値のCDSを求め、 上記冗長ビツトの符号により上記符号化された
基準標本値の符号の反転の有無を制御し、 上記符号化された基準標本値の前までのDSV
と上記符号化された基準標本値のCDSにより以
降のDSVが0に近づくように上記冗長ビツトの
符号を制御することを特徴とする特許請求の範囲
第1項記載の符号変換方法。 4 上記符号化された基準標本値の前までの
DSVを求め、 上記符号化された基準標本値をNRZI変換し、 該基準標本値の前にNRZI変換規則に基づいて
少なくとも1ビツトの冗長ビツトを付加し、 上記NRZI変換された基準標本値のCDSを求
め、 上記DSVと上記NRZI変換された基準標本値の
CDSにより以降のDSVが0に近づくように上記
冗長ビツトの符号を制御することを特徴とする特
許請求の範囲第1項記載の符号変換方法。
[Claims] 1. For each of N sample values (N is an integer of 2 or more) of the information signal, at least one sample value among them is used as a reference sample value, and the number of bits is n (n is an integer of 2 or more).
In a code conversion method that encodes the remaining sample value with the number of bits m (m<n integer) based on the difference from the reference sample value, CDS ( Assign the above m-bit code with a large absolute value of the difference in the number of occurrences of "1" and "0" from the beginning to the end of one code, and for the above difference with a small absolute value,
A code conversion method characterized in that encoding is performed by assigning the above-mentioned m-bit code having a small absolute value of CDS. 2. Assign the n-bit codes to the reference sample values in the order of their CDS sizes and convert the codes, and then convert the code-converted n-bit reference sample values alternately for each reference sample value. 2. The code conversion method according to claim 1, wherein the code is inverted. 3 Before the encoded reference sample value above
DSV (“1” level and “0” from the past to the present)
add at least one redundant bit in front of the encoded reference sample value, calculate the CDS of the encoded reference sample value, Controls whether or not the sign of the coded reference sample value is reversed by the sign of the code, and the DSV up to the coded reference sample value before the coded reference sample value is
2. The code conversion method according to claim 1, wherein the sign of the redundant bit is controlled so that the subsequent DSV approaches 0 based on the CDS of the coded reference sample value. 4 Before the encoded reference sample value above
Determine the DSV, perform NRZI conversion on the encoded reference sample value, add at least one redundant bit in front of the reference sample value based on the NRZI conversion rule, and calculate the CDS of the NRZI-converted reference sample value. Find the above DSV and the above NRZI converted reference sample value.
2. The code conversion method according to claim 1, wherein the code of the redundant bit is controlled by CDS so that subsequent DSV approaches 0.
JP25853085A 1985-11-20 1985-11-20 Code converting method Granted JPS62120128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25853085A JPS62120128A (en) 1985-11-20 1985-11-20 Code converting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25853085A JPS62120128A (en) 1985-11-20 1985-11-20 Code converting method

Publications (2)

Publication Number Publication Date
JPS62120128A JPS62120128A (en) 1987-06-01
JPH0553325B2 true JPH0553325B2 (en) 1993-08-09

Family

ID=17321493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25853085A Granted JPS62120128A (en) 1985-11-20 1985-11-20 Code converting method

Country Status (1)

Country Link
JP (1) JPS62120128A (en)

Also Published As

Publication number Publication date
JPS62120128A (en) 1987-06-01

Similar Documents

Publication Publication Date Title
US4413289A (en) Digital recording and playback method and apparatus
JP3348741B2 (en) Digital signal decoding apparatus and method
JPH0793584B2 (en) Encoder
JP3794803B2 (en) Encoding / decoding method and apparatus for recording / reproducing high density data
JP2723969B2 (en) PCM data recording method, reproduction method and apparatus
JPS6294090A (en) Encoding device
US5440432A (en) Dubbing system for digital information
US5657013A (en) Data recording apparatus
JP3127655B2 (en) Modulator and demodulator
JPH05344494A (en) Fast feed reproduction system for mpeg dynamic image
JPH0553325B2 (en)
JPH0846526A (en) Coding method and coder decoder for digital signal and coding decoding method
JPS62252288A (en) Coding device
JPS60133573A (en) Recording and reproducing device of video signal
JPH11154873A (en) Encoding circuit, encoding method, digital signal transmission equipment, and digital magnetic recording device
JPS63126322A (en) Encoder
JPS6359293B2 (en)
JPS6359291B2 (en)
JPH073954B2 (en) Encoder
JP2700333B2 (en) 7/8 NRZI code conversion method
JPH0463081A (en) Predictive coding system
JPS6036663B2 (en) signal correction device
JP2563279B2 (en) Digital magnetic recording device
JPH07141798A (en) Method of copying digital data and video recorder
JPH0869670A (en) Digital signal transmission device and digital magnetic recording and reproducing device