JPS60153241A - Encoding system - Google Patents

Encoding system

Info

Publication number
JPS60153241A
JPS60153241A JP918984A JP918984A JPS60153241A JP S60153241 A JPS60153241 A JP S60153241A JP 918984 A JP918984 A JP 918984A JP 918984 A JP918984 A JP 918984A JP S60153241 A JPS60153241 A JP S60153241A
Authority
JP
Japan
Prior art keywords
code
symbol
variable length
information
information source
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.)
Pending
Application number
JP918984A
Other languages
Japanese (ja)
Inventor
Yasuhiro Wake
和気 靖浩
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP918984A priority Critical patent/JPS60153241A/en
Publication of JPS60153241A publication Critical patent/JPS60153241A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE:To form one-block information by fixed bits by selecting either a variable length code or an one-bit code to form a code system, and adding a variable length code of one symbol's share to the border between the variable length code and the one- bit code to send the resulted code. CONSTITUTION:Input information is inputted to an various information source signal generator 10 and a two-kind information source signal generator 11, information source symbol ai, bj are outputted from the generators 10, 11 respectively, inputted to a variable length encoder 12 and an one-bit encoder 13, converted into a variable length code and an one-bit code respectively and these converted codes are sent to a switch 18. As to the output of the encoder 12, the number RB(i) of residual bits and the number RS(i) of residual samples are calculated by counters 14, 15 and compared with each other by a comparator 16. If the compared values do not satisfy RB(i)<RS(i), the switch 18 outputs the code of the encoder 12. When said unequal expression is satisfied, the switch 18 adds a variable length code for one symbol mark outputted from a redundant code calculator 17 to the border of the outputs of the encoders 12, 13 to send the added code. The variable length code and the one-bit code are respectively decoded by decoders 21, 22 and symbolized and the symbols are decoded by decoders 26, 27.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は固定長符号化/復号化装置を含む符号化方式に
関し、特に可変長符号と1ビット符号とを使用して成る
符号化方式に関する。
Detailed Description of the Invention (Field of Industrial Application) The present invention relates to an encoding system including a fixed-length encoding/decoding device, and particularly to an encoding system using a variable-length code and a 1-bit code. .

(従来技術) 従来から情報の品質を限定された情報量により確保する
ためには、入力情報に対して情報源記号の発生確率に応
じた符号長を有する可変長符号を使用して符号化する方
式が公知である。また、固定長符号化を行うためには、
可変長符号か、々・るいは1ピント符号かを選択して弁
牛する方式が提案されている。従来、この神の符号化装
置においてに、第1図に示すように符号系列発生の際、
多種類の情報を表すことのできる記号群Aと、二種類の
情報しか表し得ない記号群Bとによって入力情報に一対
一に対応する記号a1.bj’e発生し、情報源記号1
1L、に対しては可変長符号を情報源記号す、iK対し
ては1ビット符号を割商て、該当する符号全選択的に発
生するように構成していた、このような符号の選択は、
次のようにして行われる。まず、ブロフクの先頭入力情
報から順次、Aの記号群より発生された記号aiに対応
する可変長符号を発生してゆき、吃の符号長tiと記号
数とを累積カウントしてゆくことにより、そのブロック
内で残りのビットMI RB (i)と、残りのランプ
ル数RS (+)とを次の RB(1)=h、B(j−1) −t4、−・Il+F
c5(i)=R8(i−1)−1・・・(2)により計
算する。ここでi=1.2 、・・・Nであり、tlは
alに対応した符号長である。
(Prior art) Conventionally, in order to ensure the quality of information with a limited amount of information, input information is encoded using a variable length code having a code length that corresponds to the probability of occurrence of the information source symbol. The method is known. Also, in order to perform fixed length encoding,
A method has been proposed in which a variable length code, a 1-pinto code, or a variable length code is selected. Conventionally, in this divine encoding device, when generating a code sequence, as shown in Figure 1,
Symbols a1, . bj'e occurs, source symbol 1
For 1L, a variable-length code is used as the information source symbol, and for iK, a 1-bit code is divided, and the corresponding code is generated selectively.Selection of such codes is as follows. ,
This is done as follows. First, by sequentially generating variable length codes corresponding to the symbols ai generated from the symbol group of A from the first input information of the blog, and cumulatively counting the code length ti and the number of symbols, In that block, the remaining bits MI RB (i) and the remaining number of ripples RS (+) are converted to the next RB (1) = h, B (j-1) -t4, -・Il+F
Calculated using c5(i)=R8(i-1)-1 (2). Here, i=1.2, . . . N, and tl is the code length corresponding to al.

次に、 RB(1)〈R8(j)11・1113)が満足された
入力情報から後に到来した入力情報に対しては、Bの記
号群より発生した情報源記号bjに対応する1ビット符
号を発生することによって上記符号が選択される。一方
、得号側においても同様の操作を行うことにより、−意
的忙復号するととガ可能であった。
Next, for input information that arrives after the input information for which RB(1)<R8(j)11・1113) is satisfied, the 1-bit code corresponding to the information source symbol bj generated from the symbol group of B is The above code is selected by generating . On the other hand, by performing the same operation on the winning side, it was possible to perform arbitrary decoding.

ここで、上記第(1)式と第(2)式とにおいて、R8
(1)の初期値は、1ブロツクの入力情報数である。
Here, in the above equations (1) and (2), R8
The initial value of (1) is the number of input information for one block.

甘た、1ブロックの情報を固定長内で符号化するため、
RB(i)の初期値RB lO)け1ブロツクの情報に
割当てることができる総ピント紗から最大の符号長を差
引いた値に設定していた。
Unfortunately, in order to encode one block of information within a fixed length,
The initial value of RB(i) is set to the value obtained by subtracting the maximum code length from the total focus area that can be assigned to one block of information.

情報の品質を損ゎ々いためには、1ブロツク内に可変長
符号が可能々限り多く存在する方が有利である。しかし
、従来の技術によれば1ブロツクの入力情報を固定長内
に納めるために、残シビント数RB(i)の初期値とし
てあらかじめ1ブロツクの情報に割当てることのできる
総ピント数がら最大符号長を差引いておかなければなら
なかった。
In order to reduce the quality of information, it is advantageous to have as many variable length codes as possible within one block. However, according to the conventional technology, in order to fit one block of input information within a fixed length, the maximum code length is determined by the total number of focuses that can be assigned to one block of information in advance as the initial value of the remaining number of bits RB(i). had to be deducted.

特に、最大符号長が長くなるような場合にけ、RB (
1)の初期値が小さくなり、第(3)式を早く満足して
しまって、エプロンクの情報のすべてを符号化してもか
なりのピント数が余るという欠点があった。例えば、1
ブロツクについて1oサンプルで1ブロツクの総ピント
数ff140ピットとし、記号群Aに対応する可変長符
号の符号長を第2図に示すように定め、alから順にa
l。寸での情報源記号が発生した場合を考えると、RB
 (Hの初期値はRB(Q)=40−10=30 (ピ
ント)となる。このため、順次、RB(1)、R8(1
)を計算してゆくと、第3図に示すように第1サンプル
が ′ら第6サンプルまでが可変長符号化され、第7サ
ンブルから第10サンプルまでが1ビット符号化される
。この結果、1ブロツクに9ビツトの余りが生ずるとい
う欠点があった。
In particular, when the maximum code length becomes long, RB (
The initial value of 1) becomes small, the equation (3) is satisfied too quickly, and even if all of the apron information is encoded, a considerable number of focal points remain. For example, 1
For each block, the total number of focus points in one block is ff140 pits with 10 samples, and the code length of the variable length code corresponding to symbol group A is determined as shown in Fig. 2.
l. Considering the case where an information source symbol occurs in RB
(The initial value of H is RB(Q)=40-10=30 (focus). Therefore, RB(1), R8(1
), as shown in FIG. 3, samples from the first sample to the sixth sample are variable-length coded, and samples from the seventh sample to the tenth sample are 1-bit coded. As a result, there is a drawback that a remainder of 9 bits is generated in one block.

(発明の目的) 本発明の目的は、符号化装置側において、多種類の情報
を表わす多種記号a i(i二1.2,3゜・・・)よ
り成る記号群Aと、二種類の情報しか表し得ない二種記
号b j(、l =1 、2 )より成る記号群Bk使
用し、入力情報に対して一対一に対応する記号a4+b
lk記号群A、Bより抽出して情報源記号として発生し
、情報源記号a1に対して一対一に対応して可変長符号
を割当て、情報源記号b jに対して一対一に対応して
1ピント符号を割当て、情報源記Malに割当てられた
符号長を累積カウントすると共に、情報源記号a1の数
を累積カウントして両カウント値を比較し、比較によっ
て可変長符号か、あるいは、1ビット符号かを選択し、
符号系列中の可変長符号と1ピント符号との境界に1記
号分の可変長符号を付加してから一連の符号系列として
出力し、復号化装置側においては、上記符号に対応する
記号ai、Jを復号し、情報源記号aiに割当てられた
符号長を累積カウントし、さらに情報源記号alO数を
累積カウントして両カウント値を比較し、比較により記
号群Aか、あるいは記号群Bかを選択して一連の情報列
として出力することにより上記欠点全除去し、情報の品
質劣化の原因となる1ピット符号化されたサンプル数を
最小にJT(Iえ、1ブロツクの情報を固定ビット数で
形成し、一意的に復号可能な符号化を行うように構成し
た符号化方式全提供することにある。
(Object of the Invention) The object of the present invention is to create a symbol group A consisting of various symbols a i (i2 1.2, 3°...) representing various types of information, and two types of A symbol group Bk consisting of binary symbols b j (, l = 1, 2) that can only represent information is used, and symbols a4+b correspond one-to-one to the input information.
lk is extracted from the symbol groups A and B and generated as an information source symbol, and a variable length code is assigned in a one-to-one correspondence to the information source symbol a1, and a variable-length code is assigned in a one-to-one correspondence to the information source symbol bj. 1 pinto code is assigned, the code length assigned to the information source record Mal is cumulatively counted, and the number of information source symbols a1 is cumulatively counted and both count values are compared. Select bit code,
A variable length code for one symbol is added to the boundary between the variable length code and the 1-pinto code in the code sequence, and then output as a series of code sequences, and on the decoding device side, the symbols ai, corresponding to the above code, Decode J, cumulatively count the code length assigned to the information source symbol ai, cumulatively count the number of information source symbols alO, compare both count values, and determine whether it is symbol group A or symbol group B by comparison. By selecting and outputting as a series of information strings, all of the above drawbacks are removed, and the number of samples encoded with one pit, which causes information quality deterioration, is minimized. The object of the present invention is to provide an entire encoding system configured to perform uniquely decodable encoding.

(発明の原理と作用) 本発明の原理と作用は、一定長のブロックに区切られた
入力情報に対し、まず先頭の入力情報から順次、入力情
報へ一対一に対応する情報源記号ELiをAの記号群よ
り抽出して可変長符号化してゆき、この情報源記号al
に対応する符号長tiと記号数とを累積カウントしてゆ
くことにより、このブロック内で残りのビット数RB 
(1)と残りのサンプル数RS (i)とを前記の RB(i)=’RB(i−1) Ai”・−filR8
(g=R8(11)−1中・・(2)に基づいて計算し
てゆき、前記の RB(i) < R8(i) −・(3)を満足した時
点以後の入力情報に対しては、対応する二種記号bjを
記号群Bより抽出して出力するが、RB(i)の初期値
としては1ブロツクの情報に割当てることのできる総ビ
ット数から1を差引いた値に設定しておき、上記第(3
1式を満足した時点では、 ”i”””’(i−1) −R8(i−1)+1・・−
+41 により定められる符号長を有する1記号分の可変長符号
を出力した後7パ二種記号bj’e記号群Bより抽出し
、順次、一連の符号系列として出力する。
(Principle and operation of the invention) The principle and operation of the present invention is that for input information divided into blocks of a certain length, information source symbols ELi that correspond one-to-one to the input information are sequentially set to A, starting from the first input information. This information source symbol al
By cumulatively counting the code length ti and the number of symbols corresponding to , the remaining bit number RB in this block is calculated.
(1) and the remaining number of samples RS (i) as above, RB(i)='RB(i-1) Ai"・-filR8
(g = R8 (11) - 1...Calculated based on (2), and for input information after the time when the above RB (i) < R8 (i) - - (3) is satisfied. extracts the corresponding binary symbol bj from the symbol group B and outputs it, but the initial value of RB(i) is set to the value obtained by subtracting 1 from the total number of bits that can be allocated to one block of information. Then, follow the above (3)
When formula 1 is satisfied, "i"""'(i-1) -R8(i-1)+1...-
After outputting a variable length code for one symbol having a code length determined by +41, the variable length code is extracted from the 7-part binary symbol bj'e symbol group B and sequentially output as a series of code sequences.

ここで、R8(i)の初期値け1ブロツク内の総すンプ
ル敬である。また、復号側においても符号化装置と同様
にサンプルカウンタとピントカウンタとを設け、第(1
)式に基づいて残りピント数RB(1)を順次計算し、
第(2)式に基づいて残りサンプル数R8(i)を1l
it’i次計算してゆく。ここで、RB (gの初期値
は1ブロツクの情報に割当てることができる総ピント数
とし、R8(i)の初期値を1ブロツクの総サンプル数
に1を加えた値として設定しておく。
Here, the initial value of R8(i) is the total sample value within one block. Also, on the decoding side, similarly to the encoding device, a sample counter and a focus counter are provided, and the (1st
) The remaining focus number RB(1) is sequentially calculated based on the formula,
Based on equation (2), the remaining number of samples R8(i) is 1l.
It'i calculation is performed. Here, the initial value of RB(g is set as the total number of focuses that can be assigned to one block of information, and the initial value of R8(i) is set as the value obtained by adding 1 to the total number of samples of one block.

1ブロツクの先頭の符号から順に可変長符号と可変長復
号とを行ってゆくと、符号器側で付加された可変長符号
を受取った時点で RB (i)=RS (i) ・・・(5)が成立する
。したがって、第(5)式全満足した一つの記号につい
て復号操作を行わず、次の入力符号以降に対して1ビツ
トの二種記号bj’li:記号群Bより抽出して出力す
るととによって一意的に復号化することが可能と々る。
When variable-length codes and variable-length decoding are performed in order from the first code of one block, RB (i) = RS (i) ... ( 5) holds true. Therefore, without performing a decoding operation on one symbol that fully satisfies equation (5), for the next input symbol and subsequent symbols, a 1-bit binary symbol bj'li: extracted from the symbol group B and output is unique. It is possible to decrypt it automatically.

以上、本発明においては符号化の際に残りビット数RB
(i)の初期値としてけ1ブロツクに割当てることので
きる総ピット数から1を差引くだけでよいため、従来の
方式に比べて可変長符号化されるサンプル数が多くなり
、情報の劣化をおさえることができ、さらに固定長内で
符号化できるので、一意的に伽号化することが可能であ
る。例えば、従来の方式により示した上記実例と同一の
条件下、すなわぢ】ブロックあたり10″!7ンプルと
して、1ブロツクの情報に割当てることのできる総ビッ
ト数を40ピントとして、記号群Aに対応する可変長符
号長を第2図に示すように定め、alがら順にaloま
での情報源記号が発生した場合には、RB(H)の初期
値は RB(0)=40−1=39 (ピント)となる。順次
、RB(g 、 R5(i)を計算してゆくと第4図に
示すように第1+Iンプルから第8サンプルまでが可変
長符号化され、第9ヤンプルと第10サンプルとが1ビ
ット符号化される。この場合、第8ザンプルと第9ヤン
ブルとの間に単位符号長の可変長符号が付加される。
As described above, in the present invention, the number of remaining bits RB during encoding
As the initial value of (i) is only required by subtracting 1 from the total number of pits that can be allocated to one block, the number of samples to be variable-length coded increases compared to conventional methods, and information deterioration is suppressed. Furthermore, since it can be encoded within a fixed length, it is possible to uniquely encode it. For example, under the same conditions as in the example shown above using the conventional method, with 10''!7 samples per block and the total number of bits that can be allocated to one block of information being 40 bits, symbol group A is The corresponding variable length code length is determined as shown in Figure 2, and when information source symbols from al to alo are generated in order, the initial value of RB(H) is RB(0) = 40-1 = 39. (Focus).Sequentially calculating RB(g, R5(i), as shown in Figure 4, the 1st+I sample to the 8th sample are variable length encoded, and the 9th and 10th samples are variable length coded. Samples are 1-bit coded. In this case, a variable length code of unit code length is added between the eighth sample and the ninth mumble.

(発明の構成) 本発明による符号化方式は、一定のブロック長に区切ら
れた入力情報を一定ピット数で符号化するたぬの符号化
装置と、符号化された入力情報を復号化するための復号
化装置とから成るものである。
(Structure of the Invention) The encoding method according to the present invention includes a Tanu encoding device that encodes input information divided into a constant block length with a constant number of pits, and a device for decoding the encoded input information. It consists of a decoding device.

符号化装置は情報源記号発生手段と、可変長符号化手段
と、1ビット符号化手段と、第1のビットカウンタと、
第1のサンプルカウンタと、第1の比較手段と、第1の
切換え手段とから成る。
The encoding device includes an information source symbol generation means, a variable length encoding means, a 1-bit encoding means, a first bit counter,
It consists of a first sample counter, a first comparing means, and a first switching means.

情報源記号発生手段は、多種類の情報を表わす記号a 
i (1=1 + 2 + 3 + ” ” ’ )よ
り成る記号群Aと、二種類の情報しか表し得ない記号b
j(j=1.2)より成る記号群B−e使用し、入力情
報と一対一に対応する記号a i+ b jf記号群A
、Bより抽出して情報源記号として発生するためのもの
である。
The information source symbol generating means generates a symbol a representing various types of information.
A symbol group A consisting of i (1=1 + 2 + 3 + `` ''') and a symbol b that can only represent two types of information
Using symbol group B-e consisting of j (j=1.2), symbol a i+ b jf symbol group A corresponds one-to-one with input information
, B to generate it as an information source symbol.

可変長符号化手段は、情報源記号aiに対して一対一に
対応して可変長符号を割当てるためのものである。
The variable length encoding means is for allocating variable length codes to the information source symbols ai in one-to-one correspondence.

1ピット符号化手段は、情報源記号bjに対して一対一
に対応して1ビット符号を割当てるためのものである。
The 1-bit encoding means is for assigning a 1-bit code to the information source symbol bj in one-to-one correspondence.

第1のピントカウンタは、情報源記号alに割当てられ
た符号長を累積カウントするためのものである。
The first focus counter is for cumulatively counting the code length assigned to the information source symbol al.

第1のサンプルカウンタは、情報源記号a1の数全累積
カウントするためのものである。
The first sample counter is for cumulatively counting the total number of information source symbols a1.

第1の比較手段は、第1のピントカウンタの内容と第1
のサンプルカウンタの内容とを比較するだめのものであ
る。
The first comparison means compares the contents of the first focus counter with the contents of the first focus counter.
It is useless to compare the contents of the sample counter.

第1の切換手段NX第1の比較手段の出力に応じて可変
長符号か、あるいは1ビット符号かを選択し、得られた
符号系列中で可変長符号と1ビット符号との境界に1記
号分の可変長符号を付加して、−運の石号系列として出
力するためのものである。
The first switching means NX selects either a variable length code or a 1-bit code according to the output of the first comparison means, and one symbol is placed at the boundary between the variable-length code and the 1-bit code in the obtained code series. This is to add a variable length code for the number and output it as a -luck stone number sequence.

一方、復号化装置は符号化手段と、多種記号復号手段と
、二f4記号復号手段と、第2のピントカウンタと、第
2のサンプルカウンタと、第2の比較手段と、卯、2の
切換手段とを具備して構成したものである。
On the other hand, the decoding device includes an encoding means, a multi-symbol decoding means, a 2F4 symbol decoding means, a second focus counter, a second sample counter, a second comparison means, and a switch between two The device is configured to include means.

符号qvr号化手段は、一連の符号系列からそれぞれ多
種類の情報を表わす多種記号ai、ならびに二種類の情
報しか表し得かい二種記号bj″f:復号して出力する
ためのものである。
The code qvr encoding means is for decoding and outputting, from a series of code sequences, multiple symbols ai representing various types of information, and binary symbols bj″f representing only two types of information.

多種記号復号手段は、符号復号化手段の出力により多P
ft記号a1を情報源記号として復号してめるためのも
のである。
The multi-symbol decoding means uses the output of the code decoding means to
This is for decoding the ft symbol a1 as an information source symbol.

二種記号復号手段は、符号復号化手段の出力により二種
記号bjを情報源記号として復号してめるためのもので
ある。
The binary symbol decoding means is for decoding the binary symbol bj as an information source symbol using the output of the code decoding means.

第2のピントカウンタは、符号復号化手段から得られた
情報源記号aiに割当てられた符号長を累積カウントす
るためのものである。
The second focus counter is for cumulatively counting the code length assigned to the information source symbol ai obtained from the code decoding means.

第2のサンプルカウンタは、符号復号化手段から得られ
た情報源記号a1の数を累積カウントするためのもので
ある。
The second sample counter is for cumulatively counting the number of information source symbols a1 obtained from the code/decoding means.

第2の比較手段は、第2のピントカウンタの内容と第2
のサンプルカウンタの内容とを比較するためのものであ
る。
The second comparison means compares the contents of the second focus counter with the second
This is used to compare the contents of the sample counter.

第2の切換手段は、第2の比較手段の出力に応じて記号
群Aか、あるいは記号群Bかを選択して一連の情報列と
して出力するためのものである。
The second switching means is for selecting either the symbol group A or the symbol group B according to the output of the second comparison means and outputting the selected symbol group as a series of information strings.

(実施例) 次に、図面を参照して本発明の詳細な説明する。(Example) Next, the present invention will be described in detail with reference to the drawings.

第5図は、本発明による符号化装置の一実施例を示すブ
ロック図である。第5図において、9け符号化装置の情
報入力端子、1oは多種情報源記号発生器、11は二種
情報源記号発生器、、12は可変長符号器、16は1ビ
ット符号化器、14は残りビットを計算するための第1
のピントカウンタ、15は残りサンプル数を計算するた
めの第1のサンプルカウンタ、16は第1の比較器、1
7は冗長符号算出器、18は第1の切換器、19は符号
化装置の出力端子である。
FIG. 5 is a block diagram showing an embodiment of the encoding device according to the present invention. In FIG. 5, information input terminals of the 9-digit encoding device are shown; 1o is a multi-source symbol generator, 11 is a dual-source symbol generator, 12 is a variable length encoder, 16 is a 1-bit encoder, 14 is the first bit for calculating the remaining bits.
15 is a first sample counter for calculating the number of remaining samples, 16 is a first comparator, 1
7 is a redundant code calculator, 18 is a first switch, and 19 is an output terminal of the encoding device.

第5図において、情報入力端子9より入力された情報は
、多種情報源信号発生器10と二種情報源発生器11と
に入力され、情報源記号a 1.b jに変換される。
In FIG. 5, information inputted from the information input terminal 9 is inputted to a multi-type information source signal generator 10 and a two-type information source signal generator 11, and information source symbols a1. It is converted to b j.

その後、多種情報源信号発生器10から出力された情報
源記号aiは可変長符号化器12に、二種情報源発生器
11から出力された情報源記号bjけ1ピット符号化器
13にそれぞれ入力され、可変長符号と1ビット符号と
にそれぞれ変換されて第1の切換器18忙送出される。
Thereafter, the information source symbol ai outputted from the multi-type information source signal generator 10 is input to the variable length encoder 12, and the information source symbol bj outputted from the two-type information source generator 11 is input to the one-pit encoder 13. The signal is inputted, converted into a variable length code and a 1-bit code, and sent out to the first switch 18.

可変長符号化器12の出力は第1のピントカウンタ14
と第1のサンプルカウンタ15とに接続してあり、第1
のビットカウンタ14では第(1)式に基づいて残りビ
ット数RB (1)を計算し、第1のサンプルカウンタ
15では第(2)式に基づいて残りサンプル数RS (
i)を計算する。計算結果は、それぞれ第1の比較器に
入力される。第(3)式の不等式が満足されない場合に
は、冗長符号算出器17に影響を及ぼさず、第1の切換
器18は符号化装置の出力端子19と可変長符号化器1
2とを接続している。第1の比較器12により第(3)
式の不等式が満足された時点で、第1のビットカウンタ
14と第1のウンブルカウンタ15との出力値が冗長符
号算出器17に出力される。そこで、第(41式に基づ
いて算出された符号長を有する記号に相当する可変長符
号は、第1の切換器18を通して出力端子19に出力さ
れる。それ以降のヤンブルに対しては、第1の切換器1
8により出力端子19と1ビット符号化器13とを接続
しておく。第1の切換器18は、次のブロック開始時点
で、再び出力端子19と可変長符号化器12とを接続す
る。
The output of the variable length encoder 12 is sent to a first focus counter 14
and the first sample counter 15, and the first
The bit counter 14 calculates the number of remaining bits RB (1) based on equation (1), and the first sample counter 15 calculates the number of remaining samples RS (
i) Calculate. The calculation results are each input to a first comparator. If the inequality in equation (3) is not satisfied, the redundant code calculator 17 is not affected, and the first switch 18 is switched between the output terminal 19 of the encoding device and the variable length encoder 1.
2 is connected. (3) by the first comparator 12
When the inequality in the equation is satisfied, the output values of the first bit counter 14 and the first umble counter 15 are output to the redundant code calculator 17. Therefore, the variable length code corresponding to the symbol having the code length calculated based on the formula (41) is outputted to the output terminal 19 through the first switch 18. 1 switch 1
8 connects the output terminal 19 and the 1-bit encoder 13. The first switch 18 connects the output terminal 19 and the variable length encoder 12 again at the start of the next block.

第6図は、本発明による復号化装置の一実施例を示すブ
ロック図である。第6図において、20は復号化器の入
力端子、21は可変長符号復号器、22は1ビット符号
復号器、23は残りピント数を計算するための第2のビ
ットカウンタ、24け残りサンプル数を計算するための
第、2のサンプルカウンタ、25は第2の比較器、26
は多種記号復号器、27は二種記号復号器、28は第2
の切換器、29は復号化装置の出力端子である。
FIG. 6 is a block diagram showing an embodiment of a decoding device according to the present invention. In FIG. 6, 20 is an input terminal of the decoder, 21 is a variable length code decoder, 22 is a 1-bit code decoder, 23 is a second bit counter for calculating the number of remaining points, and 24 remaining samples. a second sample counter, 25 for calculating the number, a second comparator, 26
is a multi-symbol decoder, 27 is a two-symbol decoder, and 28 is a second symbol decoder.
switch 29 is the output terminal of the decoding device.

第6図において、復号化装置の入力端子2oがら入力さ
れた符号は、可変長符号復号器21と1ビット符号復号
器22とに入力される。可変長符号復号器21の出力で
ある情報源記号a1け多種記号復号器26に、1ピット
符号復号器22の出力である情報源記号bjは二種記号
復号器にそれぞれ入力され、一連の情報列として第2の
切換器28に出力される。可変長符号復号器21の出力
は第2のピントカウンタ26と第2のサンプルカウンタ
24とに接続され、第2のピントカウンタ23では第f
i1式に基づいて残りビット数RB (1)を計算し、
第2のサンプルカウンタ24では第(2)式に基づいて
残りサンプル数R8(gを計算する。残りビット数RB
(i)と残りサンプル数R8(i)とはそれぞれ第2の
比較器25に入力される。第(5)式會満足しない場合
には、第2の切換器28により出力端子29と多種記号
復号器26とを接続しておく。第2の比較器25におい
て@(5)式を満足した時点で、第2の切換器2Bによ
り出力端子29と二種記号復号器27とを接続させる。
In FIG. 6, a code input from the input terminal 2o of the decoding device is input to a variable length code decoder 21 and a 1-bit code decoder 22. The information source symbol a1, which is the output of the variable length code decoder 21, is input to the multi-species symbol decoder 26, and the information source symbol bj, which is the output of the one-pit code decoder 22, is input to the two-species symbol decoder, and a series of information output to the second switch 28 as a column. The output of the variable length code decoder 21 is connected to a second focus counter 26 and a second sample counter 24, and in the second focus counter 23, the f-th
Calculate the remaining bit number RB (1) based on the i1 formula,
The second sample counter 24 calculates the number of remaining samples R8 (g) based on equation (2). The number of remaining bits RB
(i) and the remaining sample number R8(i) are each input to the second comparator 25. If the formula (5) is not satisfied, the output terminal 29 and the multi-symbol decoder 26 are connected by the second switch 28. When the second comparator 25 satisfies the formula (5), the second switch 2B connects the output terminal 29 and the binary symbol decoder 27.

第2の切換器28は、次のブロック開始時点で再び多種
記号復号器26と出力端子29とを接続させる。
The second switch 28 connects the multi-symbol decoder 26 and the output terminal 29 again at the start of the next block.

第5図に示す第1のビットカウンタ14と、第6図に示
す第2のビットカウンタ23と、第5図に示す第1のサ
ンプルカウンタ15と、第6図に示す第2のサンプルカ
ウンタ24とは、それぞれのブロックの開始時に初期化
される。しかし、第5図に示す第1のビットカウンタ1
4の初期値は、1ブロツクの総ビット数から1を差引い
た値である。第6図における第2のピントカウンタ26
の初期値は、1ブロツクの総ビット数である。また、第
5図に示す第1のサンプルカウンタ15の初期値は1ブ
ロツクの総サンプル数であり、第6図に示す第2のサン
プルカウンタ24の初期値は1ブロツクの総サンプル数
に1を加えた値である。
The first bit counter 14 shown in FIG. 5, the second bit counter 23 shown in FIG. 6, the first sample counter 15 shown in FIG. 5, and the second sample counter 24 shown in FIG. is initialized at the beginning of each block. However, the first bit counter 1 shown in FIG.
The initial value of 4 is the value obtained by subtracting 1 from the total number of bits in one block. Second focus counter 26 in FIG.
The initial value of is the total number of bits in one block. The initial value of the first sample counter 15 shown in FIG. 5 is the total number of samples in one block, and the initial value of the second sample counter 24 shown in FIG. 6 is the total number of samples in one block plus 1. This is the added value.

(発明の効果) 以上説明したように本発明では、可変長符号か、あるい
け1ビット符号かを選択して符号系列を形成し、符号系
列中で可変長符号と1ビット符号との境界に1記号分の
可変長符号を付加して送出するように構成することによ
り、情報の品質劣化の原因となる1ピント符号化される
サンプル数を最小限に抑え、1ブロツクの情報を固定ビ
ット数で形成し、一意的に復号可能な符号化を行い、符
号化によってビット余りが生ずることがないという効果
がある。
(Effects of the Invention) As explained above, in the present invention, a code sequence is formed by selecting either a variable length code or a 1-bit code, and the boundary between the variable length code and the 1-bit code is By configuring the system to add and transmit one symbol's worth of variable-length code, the number of samples encoded in one pinpoint, which causes information quality deterioration, can be minimized, and one block of information can be encoded with a fixed number of bits. This has the advantage that it is formed with a uniquely decodable encoding, and that no bits are left over due to encoding.

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

第1図は、従来技術による符号化装置の一例會示すブロ
ック図である。 第2図は、情報源記号と符号長との対応例を示す対応図
である。 第3図は、従来技術の符号化方式によるピントカウンタ
の内容(RB(g)とランプルカウンタの内容(R8(
i))との対応を示す対応図である。 第4図は、本発明の符号化方式によるビット力 rtフ
ウンタの内容(RB(1))とサンプルカウンタの内容
(R8(i))とを示す対応図である。 第5図は、本発明による符号化装置の一実施例を示すブ
ロック図である。 第6図は、本発明による復号化装置の一実施例を示すブ
ロック図である。 1.10・・・多種情報源記号発生器 2.11・・・二種情報源記号発生器 3.12・・・可変長符号化器 4.13・・・1ピント符号化器 5.14.23拳Φ・ビットカウンタ 6.15.24−・・サンプルカウンタ7.16,25
・・・比較器 8.18.28・・・切換器 17・・・・・冗長符号算出器 21・・・拳・可変長符号復号器 22・−・Q・1ビット符号復号器 26・・・・・多種記号復号器 27・・・・・二種記号復号器 9.19,20,29・・・端 子 11図 Δ 才2図 第3図 才4図 25図 才6図
FIG. 1 is a block diagram showing an example of a conventional encoding device. FIG. 2 is a correspondence diagram showing an example of correspondence between information source symbols and code lengths. FIG. 3 shows the contents of the focus counter (RB(g)) and the contents of the ramp counter (R8(g)) according to the conventional encoding method.
It is a correspondence diagram showing correspondence with i)). FIG. 4 is a correspondence diagram showing the contents of the bit power rt counter (RB(1)) and the contents of the sample counter (R8(i)) according to the encoding method of the present invention. FIG. 5 is a block diagram showing an embodiment of the encoding device according to the present invention. FIG. 6 is a block diagram showing an embodiment of a decoding device according to the present invention. 1.10... Multi-source symbol generator 2.11... Dual-source symbol generator 3.12... Variable length encoder 4.13... 1-pinto encoder 5.14 .23 fist Φ・Bit counter 6.15.24-・Sample counter 7.16, 25
...Comparator 8,18,28...Switcher 17...Redundant code calculator 21...Fist/variable length code decoder 22...Q/1-bit code decoder 26... ...Multiple symbol decoder 27...Two symbol decoders 9, 19, 20, 29...Terminals 11 Fig. Δ Fig. 2 Fig. 3 Fig. 4 Fig. 25 Fig. Fig. 6

Claims (1)

【特許請求の範囲】 一定のブロック長に区切られた入力情報を一定ビットム
で符号化するだめの符号化装置と前記符号化された入力
情報を復号化するための復号化装置とから成る符号化方
式であって、前記符号化装置が多種類の情報を表わす多
種12号a i (’1 ”’ 1 +2.3.・・・
)より成る記号群Aと二種類の情報しか表し得たい二種
記号bj(j=1.2)より成る記号群Bとを使用し、
前記入力情報に対して一対一に対応する記号al、Jk
記号群A。 Bより抽出して情報源記号として発生するための情報源
記号発生手段と、前記情報源記号aiに対して一対一に
対応する可変長符号を割当てるための可変長符号化手段
と、前記情報源記号bjに対して一対一に対応する1ピ
ット符号を割当てるだめの1ピント符号化手段と、前記
情報源記号alに割当てられた符号長を累積カウントす
るだめの第1のピントカウンタと、前記情報源記号ai
O数を累積カウントするだめの第1のサンプルカウンタ
と、前記第1のピントカウンタの内容と前記第1のサン
プルカウンタの内容とを比較するだめの第1の比較手段
と、前記第1の比較手段の出力に応じて前記可変長符号
か、あるいは前記1ピット符号かを選択し、得られた符
号系列中で前記可変長符号と前記1ビット符号との境界
に1記号分の可変長符号を付加して一連の符号系列とし
て出力するための第1の切換手段とを具備し、且つ、前
記復号化装置が前記一連の符号系列からそれぞれ前記多
種類の情報を表わす多種記号ai1ならびに前記二種類
の情報しか表し得ない二種61号hjを復号して出力す
るための符号復号化手段と、前記符号復号化手段の出力
により前記多種記号ILlを前記情報源記号として復号
してめるための多種記号復号手段と、前記符号復号化手
段の出力により前記二種記号bjを前記情報源記号とし
て復号してめるための二種記号復号手段と、前記符号復
号化手段から得られ前記情報源記号aiに割当てられた
符号長を累積カウントするための第2のピントカウンタ
と、前記符号復号化手段から得られた前記情報源記号a
iO数を累積カウントするための第2のフンプルカウン
タと、前記第2のピントカウンタの内容と前記第2のサ
ンプルカウンタの内容とを比較するだめの第2の比較手
段と。 前記第2の比較手段の出力に応じて前記記号群Aか、あ
るいけ前記記号群Bかを選択して一連の情報列として出
力するための第2の切換手段とを具備して構成したもの
であることを特徴とする符号化方式。
[Claims] Encoding comprising an encoding device for encoding input information divided into a constant block length using constant bitms, and a decoding device for decoding the encoded input information. In the method, the encoding device encodes various types of 12 types a i ('1 ''' 1 +2.3...
) and a symbol group B consisting of binary symbols bj (j=1.2) that can represent only two types of information,
Symbols al and Jk that correspond one-to-one to the input information
Symbol group A. information source symbol generation means for extracting from B and generating it as an information source symbol, variable length encoding means for assigning a variable length code in one-to-one correspondence to the information source symbol ai, and the information source 1-focus encoding means for allocating a 1-pit code in one-to-one correspondence to the symbol bj; a first focus counter for cumulatively counting the code length allocated to the information source symbol al; and the information source symbol ai
a first sample counter for cumulatively counting the O number; a first comparing means for comparing the contents of the first focus counter and the first sample counter; and the first comparing means. The variable length code or the 1-bit code is selected according to the output of the means, and a variable length code for one symbol is placed at the boundary between the variable length code and the 1-bit code in the obtained code series. and a first switching means for adding and outputting as a series of code sequences, and the decoding device selects various symbols ai1 representing the various types of information and the two types from the series of code sequences, respectively. a code decoding means for decoding and outputting the second type 61 code hj which can only represent information of a multi-type symbol decoding means, a binary symbol decoding means for decoding the binary symbol bj as the information source symbol by the output of the code decoding means; a second focus counter for cumulatively counting the code length assigned to the symbol ai; and the information source symbol a obtained from the code decoding means.
a second hump counter for cumulatively counting the number of iO; and a second comparison means for comparing the contents of the second focus counter and the second sample counter. and second switching means for selecting either the symbol group A or the symbol group B according to the output of the second comparing means and outputting the selected symbol group as a series of information strings. An encoding method characterized by:
JP918984A 1984-01-20 1984-01-20 Encoding system Pending JPS60153241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP918984A JPS60153241A (en) 1984-01-20 1984-01-20 Encoding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP918984A JPS60153241A (en) 1984-01-20 1984-01-20 Encoding system

Publications (1)

Publication Number Publication Date
JPS60153241A true JPS60153241A (en) 1985-08-12

Family

ID=11713575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP918984A Pending JPS60153241A (en) 1984-01-20 1984-01-20 Encoding system

Country Status (1)

Country Link
JP (1) JPS60153241A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63246043A (en) * 1986-12-17 1988-10-13 ドイチエ・トムソン−ブラント・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング Transmission system
JPH0286232A (en) * 1988-09-21 1990-03-27 Matsushita Electric Ind Co Ltd Variable length coding system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63246043A (en) * 1986-12-17 1988-10-13 ドイチエ・トムソン−ブラント・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング Transmission system
JPH0286232A (en) * 1988-09-21 1990-03-27 Matsushita Electric Ind Co Ltd Variable length coding system

Similar Documents

Publication Publication Date Title
CA2359534A1 (en) Information additive group code generator and decoder for communication systems
US7827465B2 (en) Method for a general near optimal turbo code trellis termination
SU1172456A3 (en) Videotext system
JPS6126737B2 (en)
DK0745254T3 (en) Method of converting a series of information words of m bits into a modulated signal, method of generating a
KR840000125A (en) Continuous Frame Digital Multiplexer Increases Channel Capacity
WO2004023703A3 (en) Encoding and decoding of digital data using cues derivable at a decoder
WO2001076079A3 (en) Enhanced turbo product code decoder system
AU575280B2 (en) Method of transmitting information, encoding and decoding device
EP1098446A3 (en) Multiple coding method and apparatus, multiple decoding method and apparatus, and information transmission system
SE454734B (en) PROCEDURE AND DEVICE FOR TRANSMISSION AND RECEPTION AT VARIABLE LENGTH CODING
CA1236218A (en) Method and apparatus for digital huffman decoding
KR100635794B1 (en) Transmission system using a variable length encoder
JPS60153241A (en) Encoding system
DE69032076D1 (en) Device for data coding and forward error correction for a low offset DC voltage and a short run length
NO982773L (en) Transforming a sequence of m-bit information words into a modulated signal
US20030095547A1 (en) 2n-1 Shuffling network
US6101281A (en) Method for improving data encoding and decoding efficiency
RU2014110139A (en) ARBITRARY LENGTH POLAR CODES
RU2003125267A (en) METHOD FOR PROTECTING TRANSFER OF DATA FLOW WITHOUT LOSS AND A DEVICE FOR ITS IMPLEMENTATION
SU824464A1 (en) Information transmitting and receiving system using variable-length code
RU2510940C1 (en) Information transmission and reception system
SU1261125A1 (en) Device for telemetering and supervisory indication of conditions of regenerators of digital communication system
Esenogho et al. Improving the redundancy of the knuth balancing scheme for packet transmission systems
SU1758890A1 (en) Method of digital information validity check