JPH1098685A - Image information recording medium and its manufacture - Google Patents

Image information recording medium and its manufacture

Info

Publication number
JPH1098685A
JPH1098685A JP9209335A JP20933597A JPH1098685A JP H1098685 A JPH1098685 A JP H1098685A JP 9209335 A JP9209335 A JP 9209335A JP 20933597 A JP20933597 A JP 20933597A JP H1098685 A JPH1098685 A JP H1098685A
Authority
JP
Japan
Prior art keywords
data
bits
bit
unit
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9209335A
Other languages
Japanese (ja)
Other versions
JP2829294B2 (en
Inventor
Shinichi Kikuchi
伸一 菊地
Hidenori Mimura
英紀 三村
Kazuhiko Taira
和彦 平良
Tetsuya Kitamura
哲也 北村
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.)
Toshiba Corp
Toshiba AVE Co Ltd
Original Assignee
Toshiba Corp
Toshiba AVE 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 Toshiba Corp, Toshiba AVE Co Ltd filed Critical Toshiba Corp
Priority to JP20933597A priority Critical patent/JP2829294B2/en
Publication of JPH1098685A publication Critical patent/JPH1098685A/en
Application granted granted Critical
Publication of JP2829294B2 publication Critical patent/JP2829294B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Color Television Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform comparatively easy decode processing by fetching data by every bit, adapting constitution of bit data to plural compression rules and decoding the data by a small unit. SOLUTION: A second compressed data unit CU02 of picture data PXD before compression contains five pieces of two-bit pixel data d2, d3, d4, d5, d6=(0101010101)b. In this example, five pieces of same two-bit pixel data (01)b continue. In this case, d2 to d6=(00010101)b in which an encoding header (00)b, four-bit expression (0101)b of number of continuation 'five' and contents (01)b of the pixel data is combined are the data unit CU02* of video data PXD after compression. In this case, when four to 15 pieces of the same pixel data continue, by the rule to define eight bit as one unit, the initial two bit as 00, following four bit as the number of continuous pixels and the following two bit as the pixel data, (0101010101)b of the data unit CU02 is compressed to (00010101)b of the CU02* by two bit.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、たとえばデジタ
ル記録されたキャプションあるいはシンプルなアニメー
ションなどの画像データを圧縮・符号化して記録する記
録媒体およびその製造方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a recording medium for compressing and encoding digitally recorded image data such as captions or simple animations, and a method of manufacturing the same.

【0002】[0002]

【従来の技術】たとえばキャプションなどの画像データ
を圧縮して記録あるいは通信する方法として、従来から
以下の方法が知られている。
2. Description of the Related Art For example, the following methods are conventionally known as methods for compressing and recording or communicating image data such as captions.

【0003】第1の方法は、テキストデータを一字おき
に分け、その文字に対応する文字コードをデータ記録ま
たはデータ通信する、文字コード変換法である。現在、
文字コードとしては、日本語などに用いられる2バイト
コードと、英語などに用いられる1バイトコードが多用
されている。日本語コードとしてはJISコードおよび
シフトJISコードなどが用いられ、英語コードとして
はASCIIコードなどが用いられている。
[0003] A first method is a character code conversion method in which text data is divided every other character, and a character code corresponding to the character is recorded or communicated. Current,
As character codes, two-byte codes used in Japanese and the like and one-byte codes used in English and the like are frequently used. JIS codes and shift JIS codes are used as Japanese codes, and ASCII codes and the like are used as English codes.

【0004】しかし、この第1の方法では、画像再生装
置側に各文字コードに対応した文字フォントROMを設
けておく必要があり、その文字フォントROMが対応し
ない文字コードは再生できないという不便さがある。こ
のため、画像再生装置を複数の言語に対応させるために
は、各言語毎に文字フォントROMが必要となる。
[0004] However, in the first method, it is necessary to provide a character font ROM corresponding to each character code on the image reproducing apparatus side, and the inconvenience that character codes that do not correspond to the character font ROM cannot be reproduced cannot be reproduced. is there. For this reason, in order for the image reproducing apparatus to support a plurality of languages, a character font ROM is required for each language.

【0005】第2の方法は、テキストデータを画像デー
タ(image data)として読み取り、それを符号化するこ
とにより全体のデータ量を圧縮する方法である。この符
号化方法の代表例として、ランレングス圧縮方法(run-
length compression method)がある。
The second method is a method of reading text data as image data and compressing the data to compress the entire data amount. As a typical example of this encoding method, a run-length compression method (run-
length compression method).

【0006】このランレングス圧縮方法は、テキストデ
ータを1ライン毎に走査して得た画素データ(pixel da
ta)の中で、同じデータが連続している場合に、その連
続画素の長さをランレングス符号に変換し、符号変換し
たものを記録または送信するものである。
In this run-length compression method, pixel data (pixel da) obtained by scanning text data line by line is used.
In ta), when the same data is continuous, the length of the continuous pixel is converted to a run-length code, and the code-converted data is recorded or transmitted.

【0007】たとえば「aaaabbbbbbbccc
ccdd」のような画素データラインが得られた場合を
考えてみる。ランレングス圧縮法では、これが、「a
4、b7、c5、d2」のように、画素情報(a、b、
c、d)と、この画素情報の数を示す継続画素数(4、
7、5、2)とからなるデータ(ランレングス圧縮符
号)に、変換される。
For example, "aaaabbbbbbbcccc"
Consider the case where a pixel data line such as "ccdd" is obtained. In the run length compression method, this is "a
4, b7, c5, d2 ", the pixel information (a, b,
c, d) and the number of continuous pixels (4,
7, 5 and 2) (run-length compression code).

【0008】このランレングス圧縮符号をさらに2値化
符号(binary code)に変換する方法として、モディフ
ァイドハフマン符号化方法(Modified Huffman Coding
s)、および算術符号化方法(Arithmetic Codings)が
知られている。
[0008] As a method of further converting this run-length compression code into a binary code, a Modified Huffman Coding method (Modified Huffman Coding method) is used.
s), and arithmetic coding methods (Arithmetic Codings).

【0009】[0009]

【発明が解決しようとする課題】まず、ファクシミリで
標準的に採用されている「モディファイドハフマン符号
(以下MH符号と略記する)」について簡単に説明す
る。ただし、MH符号が適用されるのは、画像情報の中
身、つまり画素自身の色が、白・黒の2色の場合であ
る。
First, "Modified Huffman code (hereinafter abbreviated as MH code)" which is standardly used in facsimile will be briefly described. However, the MH code is applied when the content of the image information, that is, the color of the pixel itself is two colors of white and black.

【0010】MH符号というのは、統計学的にみて出現
頻度の高いデータ(よく使用されるデータ)にビット数
の少ない(簡単な)2値ビットコードを割り付け、出現
頻度の低いデータ(滅多に使用されないデータ)にビッ
ト数の多い(複雑な)2値ビットコードを割り付けるこ
とにより、そのデータファイル全体でデータ量が小さく
なるように設計されたアルゴリズムを採用している。
The MH code is obtained by allocating a binary bit code having a small number of bits (simple) to data having a high frequency of appearance (frequently used data) statistically, and data having a low frequency of occurrence (rarely). An algorithm designed to reduce the amount of data in the entire data file by allocating a binary bit code having a large number of bits (complex) to unused data) is adopted.

【0011】このMH符号化方法では、符号化しようと
するデータの種類が多いとコード表自体が大きくなる。
また、符号化しようとするデータ数に対応した数の複雑
なコード表が、エンコーダおよびデコーダの双方で必要
となる。
In this MH encoding method, if there are many types of data to be encoded, the code table itself becomes large.
Also, a number of complicated code tables corresponding to the number of data to be encoded is required in both the encoder and the decoder.

【0012】このため、多種の言語を扱うマルチリンガ
ルシステムにおけるMH符号化は、エンコーダおよびデ
コーダの双方で大きなコストアップを伴う。
For this reason, MH coding in a multilingual system that handles various languages involves a large increase in cost for both the encoder and the decoder.

【0013】次に、算術符号化方法について、概略説明
を行なう。
Next, the arithmetic coding method will be briefly described.

【0014】算術符号化の場合、まず、データが読み込
まれ、各データの出現頻度が調べられる。次に、その出
現頻度の高い順にビット数の少ないコードを割り付ける
ことにより、コード表が作成される。こうして作成され
たコード表が、データとして記録(または送信)され
る。その後、このコード表に基づいて、データのコード
化が行われる。
In the case of arithmetic coding, first, data is read, and the appearance frequency of each data is checked. Next, a code table is created by allocating codes having a small number of bits in the order of appearance frequency. The code table thus created is recorded (or transmitted) as data. Thereafter, the data is coded based on the code table.

【0015】算術符号化法では、コード表を記録または
送信しなければならないが、記録または送信しようとす
るファイルの内容に最適なコード表でデータを作成でき
る利点がある。また、算術符号化法では、MH符号化法
のように、エンコーダおよびデコーダの双方に複雑なコ
ード表を持つ必要はない。
In the arithmetic coding method, a code table must be recorded or transmitted, but there is an advantage that data can be created with a code table that is optimal for the contents of a file to be recorded or transmitted. Also, in the arithmetic coding method, unlike the MH coding method, it is not necessary to have a complicated code table in both the encoder and the decoder.

【0016】しかし、算術符号化法では、データをエン
コードする際にコード表を作成するために、データの2
度読みを行わなければならず、またデコード処理も複雑
化する。
However, in the arithmetic coding method, when encoding a data, a code table is created.
Reading must be performed, and the decoding process is complicated.

【0017】また、上記2例以外の画像符号化方法とし
て、米国特許(USP)第4、811、113号公報に
開示された方法がある。この方法では、ランレングス符
号の前に、符号データ長のビット数を示すフラグビット
を設け、そのフラグビットを整数倍した値を符号データ
長としてエンコードおよびデコードしている。
As an image coding method other than the above two examples, there is a method disclosed in US Pat. No. 4,811,113. In this method, a flag bit indicating the number of bits of the code data length is provided before the run-length code, and a value obtained by multiplying the flag bit by an integer is encoded and decoded as the code data length.

【0018】この方法の場合、フラグビットからデータ
長を導き出すので、MH符号化法のように大掛かりなコ
ード表は必要としないが、符号データ長を導き出すため
のハードウエアにより、デコーダ内部の回路構成が複雑
化しやすい。
In this method, since the data length is derived from the flag bits, a large code table is not required unlike the MH coding method. However, the hardware for deriving the code data length requires a circuit configuration inside the decoder. Is easily complicated.

【0019】また、この方法は、MH符号化法と同様に
2色(白・黒)のエンコード/デコードはできるが、そ
れ以上の多色画像の圧縮には、そのままでは対応できな
い。
Although this method can encode / decode two colors (white and black) as in the MH encoding method, it cannot directly cope with a multi-color image beyond that.

【0020】この発明の第1の目的は、MH符号化法の
弱点(大掛かりなコード表が必要)、算術符号化法の弱
点(データの2度読みが必要)、およびフラグビット付
ランレングス符号化法(USP4、811、113参
照)の弱点(多色画像の圧縮に非対応)を実用レベルで
解消できる画像情報のエンコード方法に基づき情報記録
された、記録媒体の製造方法を提供することである。
A first object of the present invention is to provide a weak point of the MH coding method (requires a large code table), a weak point of the arithmetic coding method (necessary to read data twice), and a run-length code with a flag bit. The present invention provides a method for manufacturing a recording medium on which information is recorded based on an image information encoding method capable of resolving a weak point (not compatible with multicolor image compression) of a conversion method (see US Pat. Nos. 4,811 and 113) at a practical level. is there.

【0021】この発明の第2の目的は、上記記録媒体を
提供することである。
A second object of the present invention is to provide the recording medium.

【0022】[0022]

【課題を解決するための手段】上記第1の目的を達成す
るために、この発明の製造方法は、複数ビット数で定義
される画素データが複数集まって形成される情報集合体
のうち同一画素データが連続するデータブロックを1圧
縮単位として圧縮した情報が記録される画像情報記録媒
体を製造するものにおいて、 (イ) 前記1圧縮単位のデータブロックにおける同一
画素データ連続数に対応した符号化ヘッダと、この同一
画素データ連続数を示す継続画素数データと、前記1圧
縮単位のデータブロックにおける同一画素データ自体を
示す複数ビット構成のデータとによって構成された圧縮
単位データブロックの情報をエンコードするエンコード
工程(図10の200)と; (ロ)前記エンコード工程でエンコードされた情報が書
き込まれた媒体マスタを作成するマスタ作成工程(図1
0の202、204)と; (ハ)前記マスタ作成工程で作成された媒体マスタを用
いて、前記エンコード工程でエンコードされた情報を、
1以上の前記画像情報記録媒体に記録する媒体生産工程
(図10の206)とを具備している。
In order to achieve the first object, according to the present invention, there is provided a method of manufacturing a semiconductor device comprising the same pixel in an information aggregate formed by collecting a plurality of pixel data defined by a plurality of bits. A method of manufacturing an image information recording medium on which information obtained by compressing a data block in which data is continuous as one compression unit is recorded, wherein: (a) an encoding header corresponding to the number of consecutive same pixel data in the data block of one compression unit; And encoding for encoding information of a compression unit data block composed of continuous pixel number data indicating the number of continuous same pixel data and data of a plurality of bits indicating the same pixel data itself in the data block of one compression unit. (200 in FIG. 10); and (b) a medium on which the information encoded in the encoding step is written. Master generation step of generating a static (Fig. 1
(C) the information encoded in the encoding step using the medium master created in the master creating step;
A medium production step (206 in FIG. 10) for recording on one or more image information recording media.

【0023】上記第2の目的を達成するために、この発
明の記録媒体は、複数ビット数で定義される画素データ
が複数集まって形成される情報集合体のうち、同一画素
データが連続するデータブロックを1圧縮単位として圧
縮した情報を、所定のパック単位(2048バイト)で
パケット化してデータパケット(図3の副映像パケッ
ト)として記録する記録トラックを持つ画像情報記録媒
体(図1のOD)において、前記1圧縮単位のデータブ
ロック(図9のたとえばCU02*)を、このデータブ
ロック(CU02*)における同一画素データ連続数に
対応した符号化ヘッダ(先頭2ビットの00)と、この
同一画素データ連続数を示す継続画素数データ(後続4
ビットの0101)と、前記1圧縮単位のデータブロッ
クにおける同一画素データ自体を示す複数ビット構成の
データ(末尾2ビットの01)とによって構成し;1以
上の前記データブロック(図9のたとえばCU01*〜
CU05*)を含んで所定の圧縮後データ(図9下段の
PXD;図3の32)を構成し;前記圧縮後データ(P
XD;32)に所定のヘッダ(SPUH;31)を付け
て圧縮データの1ユニット(SPU;30)を構成し;
1以上の前記データパケット(図3の副映像データ1、
2、…)を、前記圧縮データの1ユニット(SPU;3
0)と対応する配列(図3下段)で、前記記録トラック
(図1)に記録している。
In order to attain the second object, the recording medium of the present invention is a data storage device comprising a plurality of pieces of pixel data defined by a plurality of bits. An image information recording medium (OD in FIG. 1) having a recording track in which information obtained by compressing a block as one compression unit is packetized in a predetermined pack unit (2048 bytes) and recorded as a data packet (sub-picture packet in FIG. 3). In the above, the data block of one compression unit (for example, CU02 * in FIG. 9) is divided into an encoded header (the first two bits, 00) corresponding to the same number of consecutive pixel data in this data block (CU02 *). Continuing pixel number data indicating the data continuation number (following 4
Bit 0101) and a plurality of bits of data (the last 2 bits 01) indicating the same pixel data itself in the data block of one compression unit; one or more of the data blocks (for example, CU01 * in FIG. 9). ~
CU05 *) to form predetermined compressed data (PXD in the lower part of FIG. 9; 32 in FIG. 3);
XD; 32) with a predetermined header (SPUH; 31) to constitute one unit of compressed data (SPU; 30);
One or more of the data packets (sub-picture data 1 in FIG. 3,
2,...) To one unit of the compressed data (SPU; 3).
0) (see the lower part of FIG. 3) on the recording track (FIG. 1).

【0024】また、上記第2の目的を達成するために、
この発明の記録媒体の具体的実施形態である光ディスク
は、複数ビット数で定義される画素データが複数集まっ
て形成される情報集合体のうち、同一画素データが連続
するデータブロックを1圧縮単位として圧縮した情報
を、所定のパック単位(2048バイト)でパケット化
してデータパケット(図3の副映像パケット)として記
録する記録トラックを持つものであって、光ヘッド(図
24の706)を持つ再生装置により前記圧縮情報が前
記パック単位で再生可能な光ディスク(図1または図2
4のOD)において、前記1圧縮単位のデータブロック
(図9のたとえばCU02*)を、このデータブロック
(CU02*)における同一画素データ連続数に対応し
た符号化ヘッダ(先頭2ビットの00)と、この同一画
素データ連続数を示す継続画素数データ(後続4ビット
の0101)と、前記1圧縮単位のデータブロックにお
ける同一画素データ自体を示す複数ビット構成のデータ
(末尾2ビットの01)とによって構成し;1以上の前
記データブロック(図9のたとえばCU01*〜CU0
5*)を含んで、所定の圧縮後データ(図9下段のPX
D;図3の32)を構成し;前記圧縮後データ(PX
D;32)に所定のヘッダ(SPUH;31)を付け
て、圧縮データの1ユニット(SPU;30)を構成
し;1以上の前記データパケット(図3の副映像データ
1、2、…)を、前記圧縮データの1ユニット(SP
U;30)と対応する配列(図3下段)で、前記記録ト
ラック(図1)に記録し;前記再生装置が前記圧縮情報
を再生する際に、1以上の前記データパケットの配列
(図3の副映像データ1、2、…)が前記光ヘッド(7
06)により連続して再生できるように、これらのデー
タパケット(図3の副映像データ1、2、…)を前記記
録トラック(図1)に記録している。
In order to achieve the second object,
An optical disc, which is a specific embodiment of the recording medium of the present invention, uses a data block in which the same pixel data continues as one compression unit in an information aggregate formed by collecting a plurality of pixel data defined by a plurality of bits. The compressed information has a recording track for packetizing in a predetermined pack unit (2048 bytes) and recording it as a data packet (sub-picture packet in FIG. 3), and has a reproducing head having an optical head (706 in FIG. 24). An optical disk (FIG. 1 or FIG. 2) capable of reproducing the compressed information in units of the packs by a device.
4 OD), the data block of one compression unit (for example, CU02 * in FIG. 9) is combined with an encoded header (00 of the first two bits) corresponding to the same number of consecutive pixel data in this data block (CU02 *). The continuous pixel number data (the succeeding 4 bits 0101) indicating the continuous number of the same pixel data and the multi-bit data (the last 2 bits 01) indicating the same pixel data itself in the data block of one compression unit. Comprising one or more of the data blocks (for example, CU01 * to CU0 in FIG. 9).
5 *) and predetermined compressed data (PX in the lower part of FIG. 9).
D; 32) in FIG. 3; the compressed data (PX
D; 32) with a predetermined header (SPUH; 31) to form one unit of compressed data (SPU; 30); one or more data packets (sub-picture data 1, 2,... In FIG. 3). To one unit of the compressed data (SP
U; 30) and recorded on the recording track (FIG. 1) in an array corresponding to FIG. 3; when the playback device plays back the compressed information, an array of one or more data packets (FIG. 3). Are the sub-picture data 1, 2,...
06), these data packets (sub-picture data 1, 2,... In FIG. 3) are recorded on the recording track (FIG. 1) so that they can be continuously reproduced.

【0025】この発明では、以下に示す規則1〜6のう
ち、少なくとも規則2〜4に基づき、3種類以上の画素
データを圧縮している。以下、個々の画素ドットを示す
画素データが2ビットで構成されている場合を例にとっ
て説明する。
In the present invention, three or more types of pixel data are compressed based on at least rules 2 to 4 among rules 1 to 6 shown below. Hereinafter, a case will be described as an example where pixel data indicating each pixel dot is composed of 2 bits.

【0026】<規則1>同一画素データが1〜3個続く
場合:4ビットを1単位として、最初の2ビットで継続
画素数を表し、続く2ビットを画素データ(画像圧縮デ
ータPXD)とする。
<Rule 1> When 1 to 3 pieces of the same pixel data continue: With 4 bits as one unit, the first 2 bits represent the number of continuous pixels, and the next 2 bits are used as pixel data (compressed image data PXD). .

【0027】<例> 同一連続画素(たとえば11)が1つなら、PXD=0
1・11 同一連続画素(たとえば10)が2つなら、PXD=1
0・10 同一連続画素(たとえば00)が3つなら、PXD=1
1・00 <規則2>同一画素データが4〜15個続く場合:8ビ
ット(バイト)を1単位として、最初の2ビットを「0
0」とし、続く4ビットで継続画素数を表し、続く2ビ
ットを画素データとする。
<Example> If there is one identical continuous pixel (for example, 11), PXD = 0
1.11 If there are two identical continuous pixels (for example, 10), PXD = 1
0 · 10 If there are three identical continuous pixels (for example, 00), PXD = 1
1.00 <Rule 2> When 4 to 15 pieces of the same pixel data continue: 8 bits (bytes) are defined as one unit, and the first 2 bits are set to “0”.
0 ", the subsequent 4 bits represent the number of continuous pixels, and the following 2 bits are used as pixel data.

【0028】<例>同一連続画素(たとえば01)が5
つなら、PXD=00・0101・01 <規則3>同一画素データが16〜63個続く場合:1
2ビットを1単位として、最初の4ビットを「000
0」とし、続く6ビットで継続画素数を表し、続く2ビ
ットを画素データとする。
<Example> The number of the same continuous pixels (for example, 01) is 5
PXD = 00.0101.01 <Rule 3> When 16 to 63 pieces of the same pixel data continue: 1
With 2 bits as one unit, the first 4 bits are “000”.
0 ", the following 6 bits indicate the number of continuous pixels, and the next 2 bits are pixel data.

【0029】<例> 同一連続画素(たとえば10)が16個なら、PXD=
0000・010000・10 同一連続画素(たとえば11)が46個なら、PXD=
0000・101110・11 <規則4>同一画素データが64〜255個続く場合:
16ビットを1単位として、最初の6ビットを「000
000」とし、続く8ビットで継続画素数を表し、続く
2ビットを画素データとする。
<Example> If there are 16 identical continuous pixels (for example, 10), PXD =
0000.010000.10 If there are 46 identical continuous pixels (for example, 11), PXD =
0000.101110.11 <Rule 4> When 64 to 255 pieces of the same pixel data continue:
The first 6 bits are “000” with 16 bits as one unit.
000 ", the subsequent 8 bits represent the number of continuous pixels, and the following 2 bits are used as pixel data.

【0030】<例>同一連続画素(たとえば01)が2
55個なら、PXD=000000・11111111
・01 <規則5>(ランレングス符号化しようとする画素デー
タ列の)ラインの終わりまで同一画素データが続く場
合:16ビットを1単位として、最初の14ビットを
「00000000000000」とし、続く2ビット
を画素データとする。
<Example> The number of the same continuous pixels (for example, 01) is 2
If 55, PXD = 000000 111111111
01 <Rule 5> When the same pixel data continues to the end of the line (of the pixel data string to be run-length encoded): 16 bits as one unit, the first 14 bits are “00000000000000”, and the following 2 bits Is pixel data.

【0031】<例> 同一連続画素(たとえば00)がラインの終わりまで続
くなら、PXD=00000000000000・00 同一連続画素(たとえば11)がラインの終わりまで続
くなら、PXD=00000000000000・11 <規則6>1ライン終了時に、バイトアラインされてい
ないときは、4ビットのダミーデータ「0000」を
(1ライン分の圧縮データの末尾に)挿入する。
<Example> If the same continuous pixel (for example, 00) continues to the end of the line, PXD = 000000000000000000. If the same continuous pixel (for example, 11) continues to the end of the line, PXD = 0000000000000011. <Rule 6> At the end of one line, if the byte is not aligned, 4-bit dummy data “0000” is inserted (at the end of the compressed data for one line).

【0032】<例> [0/1データ列が8の整数倍ー4ビット]・0000 この発明のデコード方法では、上記エンコード規則の逆
操作をすることで、エンコード前の原データを復元して
いる。
<Example> [0/1 data string is an integral multiple of 8 minus 4 bits] • 0000 In the decoding method of the present invention, the original data before encoding is restored by performing the inverse operation of the above encoding rule. I have.

【0033】[0033]

【発明の実施の形態】以下、図面を参照して、この発明
の一実施の形態に係るエンコード方法およびデコード方
法を説明する。なお、重複説明を避けるために、複数の
図面に渡り機能上共通する部分には共通の参照符号が用
いられている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An encoding method and a decoding method according to an embodiment of the present invention will be described below with reference to the drawings. In order to avoid redundant description, common reference numerals are used for functionally common parts in a plurality of drawings.

【0034】図1〜図27は、この発明の一実施の形態
に係る画像情報のエンコード/デコードシステムを説明
するための図である。
FIGS. 1 to 27 are diagrams for explaining an image information encoding / decoding system according to an embodiment of the present invention.

【0035】図1は、この発明を適用できる情報保持媒
体の一例としての光ディスクODの記録データ構造を略
示している。
FIG. 1 schematically shows a recording data structure of an optical disk OD as an example of an information storage medium to which the present invention can be applied.

【0036】この光ディスクODは、たとえば片面約5
Gバイトの記憶量量をもつ両面貼合せディスクであり、
ディスク内周側のリードインエリアからディスク外周側
のリードアウトエリアまでの間に多数の記録トラックが
配置されている。各トラックは多数の論理セクタで構成
されており、それぞれのセクタに各種情報(適宜圧縮さ
れたデジタルデータ)が格納されている。
This optical disk OD has, for example, about 5
It is a double-sided laminated disk with a storage capacity of G bytes,
A number of recording tracks are arranged between a lead-in area on the inner circumference side of the disc and a lead-out area on the outer circumference side of the disc. Each track is composed of a large number of logical sectors, and various information (appropriately compressed digital data) is stored in each sector.

【0037】図2は、図1の光ディスクに記録されるデ
ータの論理構造を例示している。すなわち、図1の複数
論理セクタの集合体の中に、ディスクODで使用される
システムデータを格納するシステムエリアと、ボリュー
ム管理情報エリアと複数ファイルエリアが、形成され
る。
FIG. 2 shows an example of the logical structure of data recorded on the optical disk of FIG. That is, a system area for storing system data used in the disk OD, a volume management information area, and a plurality of file areas are formed in the aggregate of a plurality of logical sectors in FIG.

【0038】上記複数のファイルエリアのうち、たとえ
ばファイル1は、主映像情報(図中のVIDEO)、主
映像に対して補助的な内容を持つ副映像情報(図中のS
UB−PICTURE)、音声情報(図中のAUDI
O)、再生情報(図中のPLAYBACK INF
O.)等を含んでいる。
Of the plurality of file areas, for example, file 1 includes main video information (VIDEO in the drawing) and sub-video information (S in the drawing) having auxiliary contents for the main video.
UB-PICTURE), audio information (AUDI in the figure)
O), playback information (PLAYBACK INF in the figure)
O. ) Etc. are included.

【0039】図3は、図2で例示したデータ構造のう
ち、エンコード(ランレングス圧縮)された副映像情報
のパックの論理構造を例示している。
FIG. 3 illustrates the logical structure of a pack of encoded (run-length compressed) sub-picture information in the data structure illustrated in FIG.

【0040】図3の上部に示すように、ビデオデータに
含まれる副映像情報の1パックはたとえば2048バイ
トで構成される。この副映像情報の1パックは、先頭の
パックのヘッダのあとに、1以上の副映像パケットを含
んでいる。第1の副映像パケットは、そのパケットのヘ
ッダのあとに、ランレングス圧縮された副映像データ
(SP DATA1)を含んでいる。同様に、第2の副
映像パケットは、そのパケットのヘッダのあとに、ラン
レングス圧縮された副映像データ(SP DATA2)
を含んでいる。
As shown in the upper part of FIG. 3, one pack of the sub-picture information included in the video data is composed of, for example, 2048 bytes. One pack of the sub-picture information includes one or more sub-picture packets after the header of the first pack. The first sub-picture packet includes run-length compressed sub-picture data (SP DATA1) after the header of the packet. Similarly, the second sub-picture packet has run-length compressed sub-picture data (SP DATA2) after the header of the packet.
Contains.

【0041】このような複数の副映像データ(SP D
ATA1、SP DATA2、…)をランレングス圧縮
の1ユニット(1単位)分集めたもの、すなわち副映像
データユニット30に、副映像ユニットヘッダ31が付
与される。この副映像ユニットヘッダ31のあとに、1
ユニット分の映像データ(たとえば2次元表示画面の1
水平ライン分のデータ)をランレングス圧縮した画素デ
ータ32が続く。
A plurality of such sub-picture data (SP D
ATA1, SP DATA2,...) Are collected for one unit (one unit) of run-length compression, that is, the sub-picture data unit 30 is provided with a sub-picture unit header 31. After the sub-picture unit header 31, 1
Video data for a unit (for example, 1
Pixel data 32 obtained by run-length-compressing horizontal line data) follows.

【0042】換言すると、1ユニット分のランレングス
圧縮データ30は、1以上の副映像パケットの副映像デ
ータ部分(SP DATA1、SP DATA2、…)
の集まりで形成されている。この副映像データユニット
30は、副映像表示用の各種パラメータが記録されてい
る副映像ユニットヘッダ31と、ランレングス符号から
なる表示データ(圧縮された画素データ)32とで構成
されている。
In other words, the run-length compressed data 30 for one unit is composed of one or more sub-picture data sub-picture data portions (SP DATA1, SP DATA2,...).
Is formed by a collection of The sub-picture data unit 30 includes a sub-picture unit header 31 in which various parameters for sub-picture display are recorded, and display data (compressed pixel data) 32 composed of a run-length code.

【0043】図4は、図3で例示した1ユニット分のラ
ンレングス圧縮データ30のうち、副映像ユニットヘッ
ダ31の内容を例示している。ここでは、主映像(たと
えば映画の映像本体)とともに記録・伝送(通信)され
る副映像(たとえば主映像の映画のシーンに対応した字
幕)のデータに関して、説明を行なう。
FIG. 4 illustrates the contents of the sub-picture unit header 31 in the run-length compressed data 30 for one unit illustrated in FIG. Here, a description will be given of data of a sub-video (for example, subtitles corresponding to a movie scene of the main video) recorded and transmitted (communicated) together with a main video (for example, a video main body of a movie).

【0044】図4に示すように、副映像ユニットヘッダ
31には、副映像の画素データ(表示データ)32の開
始アドレスSPDDADRと、画素データ32の終了ア
ドレスSPEDADRと、画素データ32のTV画面上
での表示開始位置および表示範囲(幅と高さ)SPDS
IZEと、システムから指定された背景色SPCHI
と、システムから指定された副映像色SPCINFO
と、システムから指定された強調色のパレット色番号S
PADJINFOと、副映像画素データ32の修飾情報
SPMODと、主映像(MP)に対する副映像(SP)
の混合比SPCONTと、副映像の開始タイミング(主
映像のフレーム番号に対応)SPDSTと、各ラインお
きのデコードデータの開始アドレスSPLine1〜S
PlineNとが、記録されている。
As shown in FIG. 4, the sub-picture unit header 31 includes a start address SPDADDR of pixel data (display data) 32 of the sub-picture, an end address SPEDADR of the pixel data 32, and a picture data of the pixel data 32 on the TV screen. Display start position and display range (width and height) SPDS
SIZE and background color SPCHI specified by the system
And the sub-picture color SPCINFO specified by the system
And the palette color number S of the highlight color specified by the system
PADJINFO, decoration information SPMOD of sub-picture pixel data 32, and sub-picture (SP) for main picture (MP)
, The start timing of the sub-picture (corresponding to the frame number of the main picture) SPDST, and the start address SPLine1-S of the decode data for each line
Line N is recorded.

【0045】もう少し具体的にいうと、副映像ユニット
ヘッダ31には、図4の下部に示すように、以下の内容
を持つ種々なパラメータ(SPDDADRなど)が記録
されている: (1)このヘッダに続く表示データ(副映像の画素デー
タ)の開始アドレス情報(SPDDADR:ヘッダの先
頭からの相対アドレス)と; (2)この表示データの終了アドレス情報(SPEDA
DR:ヘッダの先頭からの相対アドレス)と; (3)この表示データのモニタ画面上における表示開始
位置および表示範囲(幅および高さ)を示す情報(SP
DSIZE)と; (4)システムにより指定された背景色(ストーリィ情
報テーブルまたは表示制御シーケンステーブルで設定し
た16色カラーパレットの番号)を示す情報(SPCH
I)と; (5)システムにより指定された副映像色(ストーリィ
情報テーブルまたは表示制御シーケンステーブルで設定
した16色カラーパレットの番号)を示す情報(SPC
INFO)と; (6)システムにより指定された副映像強調色(ストー
リィ情報テーブルまたは表示制御シーケンステーブルで
設定したカラーパレットの番号)を示す情報(SPAJ
DNFO)と; (7)システムにより指定され、ノンインターレースの
フィールドモードかインターレースのフレームモードか
等を示す副映像画像モード情報(SPMOD)と(圧縮
対象の画素データが種々なビット数で構成されるとき
は、画素データが何ビット構成であるかをこのモード情
報の内容で特定できる。); (8)システムにより指定された副映像と主映像の混合
比を示す情報(SPCONT)と; (9)副映像の表示開始タイミングを、主映像のフレー
ム番号(たとえばMPEGのIピクチャフレーム番号)
により示す情報(SPDST)と; (10)副映像の1ライン目の符号化データの開始アド
レス(副映像ユニットヘッダの先頭からの相対アドレ
ス)を示す情報(SPlin1)と; (11)副映像のNライン目の符号化データの開始アド
レス(副映像ユニットヘッダの先頭からの相対アドレ
ス)を示す情報(SPlinN)。
More specifically, as shown in the lower part of FIG. 4, various parameters (such as SPDDADR) having the following contents are recorded in the sub-picture unit header 31: (1) This header (2) start address information (SPDADDR: relative address from the head of the header) of display data (pixel data of sub-picture) following this; and (2) end address information (SPEDA) of this display data.
(3) information (SP) indicating a display start position and a display range (width and height) of the display data on the monitor screen;
(4) information (SPCH) indicating the background color (16-color color palette number set in the story information table or display control sequence table) specified by the system.
(5) Information (SPC) indicating the sub-picture color specified by the system (16-color color palette number set in the story information table or display control sequence table)
(INFO) and; (6) information (SPAJ) indicating the sub-picture emphasized color (color palette number set in the story information table or the display control sequence table) specified by the system.
(7) sub-picture image mode information (SPMOD) designated by the system and indicating non-interlaced field mode or interlaced frame mode, etc .; and (compression target pixel data is composed of various bit numbers) In this case, the number of bits of the pixel data can be specified by the content of the mode information.); (8) Information (SPCONT) indicating the mixture ratio of the sub-picture and the main picture specified by the system; (9) ) The display start timing of the sub-picture is determined by the frame number of the main picture (for example, the I-picture frame number of MPEG)
(10) Information (SPlin1) indicating the start address (relative address from the head of the sub-picture unit header) of the encoded data of the first line of the sub-picture; Information (SPlinN) indicating the start address of the encoded data on the Nth line (relative address from the head of the sub-picture unit header).

【0046】なお、上記副映像と主映像の混合比を示す
情報SPCONTは、(システム設定値)/255によ
り副映像の混合比を表し、(255ー設定値)/255
により主映像の混合比を表すようになっている。
The information SPCONT indicating the mixture ratio of the sub-picture and the main picture represents the mixture ratio of the sub-picture by (system set value) / 255, and (255-set value) / 255.
Indicates the mixture ratio of the main image.

【0047】この副映像ユニットヘッダ31には、各ラ
インおきのデコードデータの開始アドレス(SPLin
e1〜SPlineN)が存在する。このため、デコー
ド開始ラインの指定をデコーダ側のマイクロコンピュー
タ(MPUまたはCPU)などからの指示で変えること
により、表示画面における副映像のみのスクロールを実
現することができる。(このスクロールについては、図
21を参照して後述する。)ところで、副映像ユニット
ヘッダ31には、副映像がNTSC方式のTVフィール
ド/フレームにどのように対応するかを示すフィールド
/フレームモード(SPMOD)を記録することができ
るようになっている。
In the sub-picture unit header 31, the start address (SPLin) of the decode data for each line
e1 to SPlineN). Therefore, by changing the designation of the decoding start line according to an instruction from a microcomputer (MPU or CPU) on the decoder side, scrolling of only the sub-picture on the display screen can be realized. (This scroll will be described later with reference to FIG. 21.) By the way, the sub-picture unit header 31 has a field / frame mode (showing how the sub-picture corresponds to a TV field / frame of the NTSC system). SPMOD) can be recorded.

【0048】通常、このフィールド/フレームモード記
録部(SPMOD)にはビット”0”が書き込まれてい
る。このような副映像データユニット30を受信したデ
コーダ側では、このビット”0”によりフレームモード
(ノンインターレースモード)であることが判定され、
受信した符号データはライン毎にデコードされる。する
と、図8の左下に例示するようなデコードしたままの画
像がデコーダから出力され、これがモニタまたはテレビ
ジョン(TV)のような表示画面に表示される。
Normally, bit "0" is written in this field / frame mode recording unit (SPMOD). On the decoder side receiving such a sub-picture data unit 30, the bit "0" determines that the mode is the frame mode (non-interlace mode).
The received code data is decoded line by line. Then, a decoded image as illustrated in the lower left of FIG. 8 is output from the decoder, and is displayed on a display screen such as a monitor or a television (TV).

【0049】一方、フィールド/フレームモード記録部
(SPMOD)にビット”1”が書き込まれている場合
は、デコーダ側はフィールドモード(インターレースモ
ード)であると判定する。この場合は、符号データがラ
イン毎にデコードされたあと、図8の右下に例示するよ
うに、同じデータが2ライン分連続出力される。する
と、TVのインターレースモードに対応した画面が得ら
れる。これにより、フレームモード(ノンインターレー
スモード)よりも画質は荒くなるが、フレームモードと
同じデータ量でその2倍の量の画像を表示できるように
なる。
On the other hand, if bit "1" is written in the field / frame mode recording unit (SPMOD), the decoder determines that the mode is the field mode (interlace mode). In this case, after the code data is decoded line by line, the same data is continuously output for two lines as illustrated in the lower right of FIG. Then, a screen corresponding to the TV interlace mode is obtained. As a result, although the image quality is lower than that in the frame mode (non-interlace mode), an image having twice the amount of the same data amount as the frame mode can be displayed.

【0050】図3または図4に示す副映像の画素データ
(ランレングスデータ)32は、図5または図6に示す
ランレングス圧縮規則1〜6またはランレングス圧縮規
則11〜15のいずれの規則が適用されるかによって、
その1単位のデータ長(可変長)が決まる。そして、決
まったデータ長でエンコード(ランレングス圧縮)およ
びデコード(ランレングス伸張)が行われる。
The pixel data (run-length data) 32 of the sub-picture shown in FIG. 3 or FIG. 4 satisfies any one of the run-length compression rules 1 to 6 or the run-length compression rules 11 to 15 shown in FIG. Depending on what is applied
The data length (variable length) of one unit is determined. Then, encoding (run-length compression) and decoding (run-length decompression) are performed with the determined data length.

【0051】図5の規則1〜6は圧縮対象の画素データ
が複数ビット構成(ここでは2ビット)である場合に使
用され、図6の規則11〜15は圧縮対象の画素データ
が1ビット構成である場合に使用される。
Rules 1 to 6 in FIG. 5 are used when the pixel data to be compressed has a plurality of bits (here, 2 bits), and rules 11 to 15 in FIG. Used if

【0052】ランレングス圧縮規則1〜6またはランレ
ングス圧縮規則11〜15のどれが使用されるかは、副
映像ユニットヘッダ31内のパラメータSPMOD(図
4の下部の表の中央付近参照)の内容(ビット幅フラグ
など)によって決めることができる。たとえば、パラメ
ータSPMODのビット幅フラグが”1”の場合はラン
レングス圧縮対象の画素データが2ビットデータであ
り、図5の規則1〜6が使用される。一方、パラメータ
SPMODのビット幅フラグが”0”の場合はランレン
グス圧縮対象の画素データが1ビットデータであり、図
6の規則11〜15が使用される。
Which of the run-length compression rules 1 to 6 or the run-length compression rules 11 to 15 is used is determined by the contents of the parameter SPMOD in the sub-picture unit header 31 (see the vicinity of the center of the lower table in FIG. 4). (Such as a bit width flag). For example, when the bit width flag of the parameter SPMOD is “1”, the pixel data to be run-length compressed is 2-bit data, and rules 1 to 6 in FIG. 5 are used. On the other hand, when the bit width flag of the parameter SPMOD is “0”, the pixel data to be run-length compressed is 1-bit data, and the rules 11 to 15 in FIG. 6 are used.

【0053】今、画素データが1、2、3または4ビッ
ト構成を取り得る場合において、これらのビット構成値
に対応して4種類の圧縮規則群A、B、C、Dが用意さ
れていると仮定する。この場合、パラメータSPMOD
を2ビットフラグとし、フラグ”00”で規則群Aを使
用する1ビット画素データを特定し、フラグ”01”で
規則群Bを使用する2ビット画素データを特定し、フラ
グ”10”で規則群Cを使用する3ビット画素データを
特定し、フラグ”11”で規則群Dを使用する4ビット
画素データを特定することができる。ここで、圧縮規則
群Aには図6の規則11〜15を利用でき、圧縮規則B
には図5の規則1〜6を利用できる。圧縮規則群Cおよ
びDは、図5の符号化ヘッダ、継続画素数、および画素
データの構成ビット値および規則数を適宜変更すること
で、得られる。
Now, when the pixel data can have a 1, 2, 3 or 4 bit configuration, four types of compression rule groups A, B, C, D are prepared corresponding to these bit configuration values. Assume that In this case, the parameter SPMOD
Is a 2-bit flag, the flag “00” specifies 1-bit pixel data using rule group A, the flag “01” specifies 2-bit pixel data using rule group B, and the flag “10” specifies rule data. The 3-bit pixel data using the group C can be specified, and the 4-bit pixel data using the rule group D can be specified by the flag “11”. Here, for the compression rule group A, the rules 11 to 15 in FIG.
Can use rules 1 to 6 in FIG. The compression rule groups C and D are obtained by appropriately changing the encoding header, the number of continuous pixels, the configuration bit value of pixel data, and the number of rules in FIG.

【0054】図5は、図4で例示した副映像画素データ
(ランレングスデータ)32部分が複数ビット(ここで
は2ビット)の画素データで構成される場合において、
この発明の一実施の形態に係るエンコード方法で採用さ
れるランレングス圧縮規則1〜6を説明するものであ
る。
FIG. 5 shows a case where the sub-picture pixel data (run-length data) 32 illustrated in FIG. 4 is composed of a plurality of bits (here, 2 bits) of pixel data.
4 is a diagram for explaining run length compression rules 1 to 6 employed in the encoding method according to one embodiment of the present invention.

【0055】また、図9は、図4で例示した副映像画素
データ(ランレングスデータ)32部分が2ビットの画
素データで構成される場合において、上記圧縮規則1〜
6を具体的に説明するための図である。
FIG. 9 shows a case where the sub-picture pixel data (run-length data) 32 illustrated in FIG. 4 is composed of 2-bit pixel data.
FIG. 6 is a diagram for specifically explaining No. 6;

【0056】図5の1列目に示す規則1では、同一画素
が1〜3個続く場合、4ビットデータでエンコード(ラ
ンレングス圧縮)のデータ1単位を構成する。この場
合、最初の2ビットで継続画素数を表し、続く2ビット
で画素データ(画素の色情報など)を表す。
According to rule 1 shown in the first column of FIG. 5, when one to three identical pixels continue, one unit of encoded (run-length compressed) data is constituted by 4-bit data. In this case, the first two bits represent the number of continuous pixels, and the following two bits represent pixel data (such as pixel color information).

【0057】たとえば、図9の上部に示される圧縮前の
映像データPXDの最初の圧縮データ単位CU01は、
2個の2ビット画素データd0、d1=(0000)b
を含んでいる(bはバイナリであることを指す)。この
例では、同一の2ビット画素データ(00)bが2個連
続(継続)している。
For example, the first compressed data unit CU01 of the video data PXD before compression shown in the upper part of FIG.
Two 2-bit pixel data d0, d1 = (0000) b
(B indicates binary). In this example, two identical 2-bit pixel data (00) b are continuous (continuous).

【0058】この場合、図9の下部に示すように、継続
数「2」の2ビット表示(10)bと画素データの内容
(00)bとを繋げたd0、d1=(1000)bが、
圧縮後の映像データPXDのデータ単位CU01*とな
る。
In this case, as shown in the lower part of FIG. 9, d0 and d1 = (1000) b which connect the 2-bit display (10) b of the continuation number "2" and the content (00) b of the pixel data are obtained. ,
It becomes the data unit CU01 * of the video data PXD after compression.

【0059】換言すれば、規則1によってデータ単位C
U01の(0000)bがデータ単位CU01*の(1
000)bに変換される。この例では実質的なビット長
の圧縮は得られていないが、たとえば同一画素(00)
bが3個連続するCU01=(000000)bなら
ば、圧縮後はCU01*=(1100)bとなって、2
ビットの圧縮効果が得られる。
In other words, according to rule 1, the data unit C
(0000) b of U01 is (1) of data unit CU01 *.
000) b. In this example, no substantial bit length compression is obtained, but for example, the same pixel (00)
If b is three consecutive CU01 = (000000) b, CU01 * = (1100) b after compression, and 2
A bit compression effect is obtained.

【0060】図5の2列目に示す規則2では、同一画素
が4〜15個続く場合、8ビットデータでエンコードの
データ1単位を構成する。この場合、最初の2ビットで
規則2に基づくことを示す符号化ヘッダを表し、続く4
ビットで継続画素数を表し、その後の2ビットで画素デ
ータを表す。
According to rule 2 shown in the second column of FIG. 5, when 4 to 15 identical pixels continue, one unit of encoded data is constituted by 8-bit data. In this case, the first two bits represent a coded header indicating that it is based on rule 2, and the following 4
The bit represents the number of continuous pixels, and the subsequent two bits represent pixel data.

【0061】たとえば、図9の上部に示される圧縮前の
映像データPXDの2番目の圧縮データ単位CU02
は、5個の2ビット画素データd2、d3、d4、d
5、d6=(0101010101)bを含んでいる。
この例では、同一の2ビット画素データ(01)bが5
個連続(継続)している。
For example, the second compressed data unit CU02 of the video data PXD before compression shown in the upper part of FIG.
Are five 2-bit pixel data d2, d3, d4, d
5, d6 = (0101010101) b.
In this example, the same 2-bit pixel data (01) b is 5
It is continuous (continuous).

【0062】この場合、図9の下部に示すように、符号
化ヘッダ(00)bと、継続数「5」の4ビット表示
(0101)bと画素データの内容(01)bとを繋げ
たd2〜d6=(00010101)bが、圧縮後の映
像データPXDのデータ単位CU02*となる。
In this case, as shown in the lower part of FIG. 9, the encoded header (00) b, the 4-bit display (0101) b of the continuation number "5", and the content (01) b of the pixel data are connected. d2 to d6 = (00010101) b are the data units CU02 * of the compressed video data PXD.

【0063】換言すれば、規則2によってデータ単位C
U02の(0101010101)b(10ビット長)
がデータ単位CU02*の(00010101)b(8
ビット長)に変換される。この例では実質的なビット長
圧縮分は10ビットから8ビットへの2ビットしかない
が、継続数がたとえば15(CU02の01が15個連
続するので30ビット長)の場合は、これが8ビットの
圧縮データ(CU02*=00111101)となり、
30ビットに対して22ビットの圧縮効果が得られる。
つまり、規則2に基づくビット圧縮効果は、規則1のも
のよりも大きい。しかし、解像度の高い微細な画像のラ
ンレングス圧縮に対応するためには、規則1も必要とな
る。
In other words, according to rule 2, the data unit C
(0101010101) b of U02 (10-bit length)
Is (00010101) b (8) of the data unit CU02 *.
(Bit length). In this example, the effective bit length compression amount is only 2 bits from 10 bits to 8 bits. However, when the continuation number is, for example, 15 (30 bits long since 15 CU02 01s are continuous), this is 8 bits. Of compressed data (CU02 * = 00111101)
A compression effect of 22 bits can be obtained for 30 bits.
That is, the bit compression effect based on Rule 2 is greater than that of Rule 1. However, rule 1 is also required to support run-length compression of a fine image with high resolution.

【0064】図5の3列目に示す規則3では、同一画素
が16〜63個続く場合、12ビットデータでエンコー
ドのデータ1単位を構成する。この場合、最初の4ビッ
トで規則3に基づくことを示す符号化ヘッダを表し、続
く6ビットで継続画素数を表し、その後の2ビットで画
素データを表す。
According to rule 3 shown in the third column of FIG. 5, when 16 to 63 identical pixels continue, one unit of encoded data is constituted by 12-bit data. In this case, the first 4 bits represent an encoding header indicating that the rule is based on Rule 3, the following 6 bits represent the number of continuous pixels, and the subsequent 2 bits represent pixel data.

【0065】たとえば、図9の上部に示される圧縮前の
映像データPXDの3番目の圧縮データ単位CU03
は、16個の2ビット画素データd7〜d22=(10
1010………1010)bを含んでいる。この例で
は、同一の2ビット画素データ(10)bが16個連続
(継続)している。
For example, the third compressed data unit CU03 of the video data PXD before compression shown in the upper part of FIG.
Are 16 2-bit pixel data d7 to d22 = (10
1010... 1010) b. In this example, 16 pieces of the same 2-bit pixel data (10) b are continuous (continuous).

【0066】この場合、図9の下部に示すように、符号
化ヘッダ(0000)bと、継続数「16」の6ビット
表示(010000)bと画素データの内容(10)b
とを繋げたd7〜d22=(00000100001
0)bが、圧縮後の映像データPXDのデータ単位CU
03*となる。
In this case, as shown in the lower part of FIG. 9, the encoded header (0000) b, the 6-bit display (010000) b of the number of continuations "16", and the content of the pixel data (10) b
And d7 to d22 = (000000100001)
0) b is the data unit CU of the compressed video data PXD
03 *.

【0067】換言すれば、規則3によってデータ単位C
U03の(101010………1010)b(32ビッ
ト長)がデータ単位CU03*の(000001000
010)b(12ビット長)に変換される。この例では
実質的なビット長圧縮分は32ビットから12ビットへ
の20ビットであるが、継続数がたとえば63(CU0
3の10が63個連続するので126ビット長)の場合
は、これが12ビットの圧縮データ(CU03*=00
0011111110)となり、126ビットに対して
114ビットの圧縮効果が得られる。つまり、規則3に
基づくビット圧縮効果は、規則2のものよりも大きい。
In other words, according to rule 3, the data unit C
(101010... 1010) b (32-bit length) of U03 is (000000001000) of the data unit CU03 *.
010) b (12-bit length). In this example, the substantial bit length compression amount is 20 bits from 32 bits to 12 bits, but the continuation number is, for example, 63 (CU0
In the case of 63 consecutive 10s of 3 and a length of 126 bits, this is 12-bit compressed data (CU03 * = 00).
0011111110), and a compression effect of 114 bits can be obtained for 126 bits. That is, the bit compression effect based on Rule 3 is greater than that of Rule 2.

【0068】図5の4列目に示す規則4では、同一画素
が64〜255個続く場合、16ビットデータでエンコ
ードのデータ1単位を構成する。この場合、最初の6ビ
ットで規則4に基づくことを示す符号化ヘッダを表し、
続く8ビットで継続画素数を表し、その後の2ビットで
画素データを表す。
According to rule 4 shown in the fourth column of FIG. 5, when 64 to 255 identical pixels continue, one unit of encoded data is constituted by 16-bit data. In this case, the first 6 bits represent a coded header indicating that it is based on rule 4,
The subsequent 8 bits represent the number of continuous pixels, and the subsequent 2 bits represent pixel data.

【0069】たとえば、図9の上部に示される圧縮前の
映像データPXDの4番目の圧縮データ単位CU04
は、69個の2ビット画素データd23〜d91=(1
11111………1111)bを含んでいる。この例で
は、同一の2ビット画素データ(11)bが69個連続
(継続)している。
For example, the fourth compressed data unit CU04 of the video data PXD before compression shown in the upper part of FIG.
Are 69 2-bit pixel data d23 to d91 = (1
11111... 1111) b. In this example, 69 pieces of the same 2-bit pixel data (11) b are continuous (continuous).

【0070】この場合、図9の下部に示すように、符号
化ヘッダ(000000)bと、継続数「69」の8ビ
ット表示(00100101)bと画素データの内容
(11)bとを繋げたd23〜d91=(000000
0010010111)bが、圧縮後の映像データPX
Dのデータ単位CU04*となる。
In this case, as shown in the lower part of FIG. 9, the encoded header (000000) b, the 8-bit display (00100101) b of the continuation number “69”, and the content (11) b of the pixel data are connected. d23 to d91 = (000000)
0010010111) b is the compressed video data PX
D data unit CU04 *.

【0071】換言すれば、規則4によってデータ単位C
U04の(111111………1111)b(138ビ
ット長)がデータ単位CU04*の(00000000
10010111)b(16ビット長)に変換される。
この例では実質的なビット長圧縮分は138ビットから
16ビットへの122ビットであるが、継続数がたとえ
ば255(CU01の11が255個連続するので51
0ビット長)の場合は、これが16ビットの圧縮データ
(CU04*=0000001111111111)と
なり、510ビットに対して494ビットの圧縮効果が
得られる。つまり、規則4に基づくビット圧縮効果は、
規則3のものよりも大きい。
In other words, according to rule 4, the data unit C
(111111... 1111) b (138-bit length) of U04 is (00000000) of data unit CU04 *.
10010111) converted to b (16-bit length).
In this example, the substantial bit length compression amount is 122 bits from 138 bits to 16 bits, but the continuation number is, for example, 255 (because 11 of CU01 continue 255, 51
In the case of (0-bit length), this becomes 16-bit compressed data (CU04 * = 000001111111111), and a 494-bit compression effect is obtained for 510 bits. That is, the bit compression effect based on Rule 4 is
Larger than that of Rule 3.

【0072】図5の5列目に示す規則5では、エンコー
ドデータ単位の切換点からラインの終わりまで同一画素
が続く場合に、16ビットデータでエンコードのデータ
1単位を構成する。この場合、最初の14ビットで規則
5に基づくことを示す符号化ヘッダを表し、続く2ビッ
トで画素データを表す。
According to rule 5 shown in the fifth column in FIG. 5, when the same pixel continues from the switching point of the encoded data unit to the end of the line, one unit of encoded data is constituted by 16-bit data. In this case, the first 14 bits represent an encoded header indicating that the data is based on rule 5, and the following 2 bits represent pixel data.

【0073】たとえば、図9の上部に示される圧縮前の
映像データPXDの5番目の圧縮データ単位CU05
は、1個以上の2ビット画素データd92〜dn=(0
00000………0000)bを含んでいる。この例で
は、同一の2ビット画素データ(00)bが有限個連続
(継続)しているが、規則5では継続画素数が1以上い
くつでも良い。
For example, the fifth compressed data unit CU05 of the video data PXD before compression shown in the upper part of FIG.
Is one or more 2-bit pixel data d92 to dn = (0
00000... 0000) b. In this example, the same two-bit pixel data (00) b is continuous (continuous) in a finite number. However, in rule 5, the number of continuous pixels may be one or more.

【0074】この場合、図9の下部に示すように、符号
化ヘッダ(00000000000000)bと、画素
データの内容(00)bとを繋げたd92〜dn=(0
000000000000000)bが、圧縮後の映像
データPXDのデータ単位CU05*となる。
In this case, as shown in the lower part of FIG. 9, d92 to dn = (0) connecting the encoded header (00000000000000) b and the content (00) b of the pixel data.
000000000000000000) b is the data unit CU05 * of the compressed video data PXD.

【0075】換言すれば、規則5によってデータ単位C
U05の(000000………0000)b(不特定ビ
ット長)がデータ単位CU05*の(00000000
00000000)b(16ビット長)に変換される。
規則5では、ラインエンドまでの同一画素継続数が16
ビット長以上あれば、圧縮効果が得られる。
In other words, according to rule 5, the data unit C
(00000000 ... 0000) b (unspecified bit length) of U05 is (00000000) of data unit CU05 *.
00000000) b (16 bits long).
In rule 5, the same pixel continuation number up to the line end is 16
With a bit length or more, a compression effect can be obtained.

【0076】図5の6列目に示す規則6では、エンコー
ド対象データが並んだ画素ラインが1ライン終了した時
点で、1ライン分の圧縮データPXDの長さが8ビット
の整数倍でない(すなわちバイトアラインでない)場合
に、4ビットのダミーデータを追加して、1ライン分の
圧縮データPXDがバイト単位になるように(すなわち
バイトアラインされるように)している。
According to rule 6 shown in the sixth column of FIG. 5, when one pixel line in which data to be encoded is arranged ends, the length of one line of compressed data PXD is not an integral multiple of 8 bits (ie, When the data is not byte-aligned, 4-bit dummy data is added so that the compressed data PXD for one line is in units of bytes (that is, byte-aligned).

【0077】たとえば、図9の下部に示される圧縮後の
映像データPXDのデータ単位CU01*〜CU05*
の合計ビット長は、必ず4ビットの整数倍にはなってい
るが、必ずしも8ビットの整数倍になっているとは限ら
ない。
For example, the data units CU01 * to CU05 * of the compressed video data PXD shown in the lower part of FIG.
Is always an integral multiple of 4 bits, but is not necessarily an integral multiple of 8 bits.

【0078】たとえばデータ単位CU01*〜CU05
*の合計ビット長が1020ビットでありバイトアライ
ンとするために4ビット不足しているなら、図9の下部
に示すように、4ビットのダミーデータCU06*=
(0000)bを1020ビットの末尾に付加して、バ
イトアラインされた1024ビットのデータ単位CU0
1*〜CU06*を出力する。
For example, data units CU01 * to CU05
If the total bit length of * is 1020 bits and 4 bits are insufficient for byte alignment, as shown in the lower part of FIG. 9, 4-bit dummy data CU06 * =
(0000) b is added to the end of the 1,020 bits to generate a byte-aligned 1024-bit data unit CU0.
1 * to CU06 * are output.

【0079】なお、2ビット画素データは、必ずしも4
種類の画素色を表示するものに限定されない。たとえ
ば、画素データ(00)bで副映像の背景画素を表し、
画素データ(01)bで副映像のパターン画素を表し、
画素データ(10)bで副映像の第1強調画素を表し、
画素データ(11)bで副映像の第2強調画素を表わす
ようにしても良い。
Note that the 2-bit pixel data is not necessarily 4 bits.
The present invention is not limited to the display of the types of pixel colors. For example, pixel data (00) b represents a background pixel of a sub-picture,
The pixel data (01) b represents a sub-picture pattern pixel,
The pixel data (10) b represents the first emphasized pixel of the sub-picture,
The pixel data (11) b may represent the second emphasized pixel of the sub-picture.

【0080】画素データの構成ビット数がもっと多けれ
ば、より他種類の副映像画素を指定できる。たとえば画
素データが3ビットの(000)b〜(111)bで構
成されているときは、ランレングスエンコード/デコー
ドされる副映像データにおいて、最大8種類の画素色+
画素種類(強調効果)を指定できるようになる。
If the number of bits constituting the pixel data is larger, another type of sub-picture pixel can be specified. For example, when the pixel data is composed of 3-bit (000) b to (111) b, the maximum of eight types of pixel colors +
Pixel type (emphasis effect) can be specified.

【0081】図6は、図4で例示した副映像画素データ
(ランレングスデータ)32部分が1ビットの画素デー
タで構成される場合において、この発明の他実施の形態
に係るエンコード方法で採用されるランレングス圧縮規
則11〜15を説明するものである。
FIG. 6 shows a case where the sub-picture pixel data (run-length data) 32 illustrated in FIG. 4 is composed of 1-bit pixel data, which is employed in the encoding method according to another embodiment of the present invention. This is a description of run-length compression rules 11 to 15 shown in FIG.

【0082】図6の1列目に示す規則11では、同一画
素が1〜7個続く場合、4ビットデータでエンコード
(ランレングス圧縮)のデータ1単位を構成する。この
場合、最初の3ビットで継続画素数を表し、続く1ビッ
トで画素データ(画素種類の情報など)を表す。たとえ
ば1ビット画素データが”0”なら副映像の背景画素を
示し、それが”1”なら副映像のパターン画素を示す。
According to rule 11 shown in the first column of FIG. 6, when one to seven identical pixels continue, one unit of encoded (run-length compressed) data is constituted by 4-bit data. In this case, the first three bits indicate the number of continuous pixels, and the next one bit indicates pixel data (eg, information on pixel type). For example, if the 1-bit pixel data is "0", it indicates a background pixel of the sub-picture, and if it is "1", it indicates a pattern pixel of the sub-picture.

【0083】図6の2列目に示す規則12では、同一画
素が8〜15個続く場合、8ビットデータでエンコード
のデータ1単位を構成する。この場合、最初の3ビット
で規則12に基づくことを示す符号化ヘッダ(たとえば
000)を表し、続く4ビットで継続画素数を表し、そ
の後の1ビットで画素データを表す。
According to rule 12 shown in the second column of FIG. 6, when 8 to 15 identical pixels continue, one unit of encoded data is constituted by 8-bit data. In this case, the first three bits represent an encoding header (for example, 000) indicating that the rule is based on rule 12, the following four bits represent the number of continuous pixels, and the subsequent one bit represents pixel data.

【0084】図6の3列目に示す規則13では、同一画
素が16〜127個続く場合、12ビットデータでエン
コードのデータ1単位を構成する。この場合、最初の4
ビットで規則13に基づくことを示す符号化ヘッダ(た
とえば0000)を表し、続く7ビットで継続画素数を
表し、その後の1ビットで画素データを表す。
According to rule 13 shown in the third column of FIG. 6, when 16 to 127 identical pixels continue, one unit of encoded data is constituted by 12-bit data. In this case, the first 4
A bit indicates an encoding header (for example, 0000) indicating that the rule is based on rule 13, the next 7 bits indicate the number of continuous pixels, and the subsequent 1 bit indicates pixel data.

【0085】図6の4列目に示す規則14では、エンコ
ードデータ単位の切換点からラインの終わりまで同一画
素が続く場合に、8ビットデータでエンコードのデータ
1単位を構成する。この場合、最初の7ビットで規則1
4に基づくことを示す符号化ヘッダ(たとえば0000
000)を表し、続く1ビットで画素データを表す。
According to rule 14 shown in the fourth column of FIG. 6, when the same pixel continues from the switching point of the encoded data unit to the end of the line, one unit of encoded data is constituted by 8-bit data. In this case, the first seven bits are used for rule 1
4 (for example, 0000)
000), and the following 1 bit represents pixel data.

【0086】図6の5列目に示す規則15では、エンコ
ード対象データが並んだ画素ラインが1ライン終了した
時点で、1ライン分の圧縮データPXDの長さが8ビッ
トの整数倍でない(すなわちバイトアラインでない)場
合に、4ビットのダミーデータを追加して、1ライン分
の圧縮データPXDがバイト単位になるように(すなわ
ちバイトアラインされるように)している。
According to rule 15 shown in the fifth column of FIG. 6, when one pixel line in which data to be encoded is arranged ends, the length of one line of compressed data PXD is not an integral multiple of 8 bits (ie, When the data is not byte-aligned, 4-bit dummy data is added so that the compressed data PXD for one line is in units of bytes (that is, byte-aligned).

【0087】次に、図7を参照して画像符号化方法(ラ
ンレングス圧縮符号化を用いたエンコード方法)を具体
的に説明する。
Next, an image encoding method (an encoding method using run-length compression encoding) will be specifically described with reference to FIG.

【0088】図7は、図4で例示した副映像画素データ
(ランレングスデータ)32を構成する画素データが、
たとえば第1〜第9ラインで構成され、各ライン上に2
ビット構成の画素(最大4種類の内容を持つ)が並んで
おり、各ライン上の2ビット画素により文字パターン
「A」および「B」が表現されている場合を示してい
る。この場合において、各ラインの画素データが、どの
ようにエンコード(ランレングス圧縮)されるかを具体
的に説明する。
FIG. 7 shows that the pixel data constituting the sub-picture pixel data (run-length data) 32 illustrated in FIG.
For example, it is composed of first to ninth lines, and 2
Pixels having a bit configuration (having a maximum of four types of contents) are arranged, and character patterns "A" and "B" are represented by 2-bit pixels on each line. In this case, how the pixel data of each line is encoded (run-length compressed) will be specifically described.

【0089】図7の上部に例示するように、ソースとな
る画像は、3種類(最大4種類)の画素データで構成さ
れている。すなわち、2ビット画像データ(00)bで
副映像の背景の画素色が示され、2ビット画像データ
(01)bで副映像内の文字「A」および「B」の画素
色が示され、2ビット画像データ(10)bで副映像文
字「A」および「B」に対する強調画素色が示されてい
る。
As exemplified in the upper part of FIG. 7, an image serving as a source is composed of three types (up to four types) of pixel data. That is, the 2-bit image data (00) b indicates the pixel color of the background of the sub-picture, and the 2-bit image data (01) b indicates the pixel colors of characters "A" and "B" in the sub-picture. The emphasized pixel colors for the sub-picture characters "A" and "B" are indicated by the 2-bit image data (10) b.

【0090】文字「A」および「B」を含む原画像がス
キャナなどにより走査されると、これらの文字パターン
は、走査ライン毎に左から右へ向かって、1画素単位で
読み取られる。こうして読み取られた映像データは、こ
の発明に基づくランレングス圧縮を行なうエンコーダ
(後述する図10の実施形態では200)に入力され
る。
When an original image including the characters "A" and "B" is scanned by a scanner or the like, these character patterns are read in units of one pixel from left to right for each scanning line. The video data thus read is input to an encoder (200 in the embodiment of FIG. 10 described later) that performs run-length compression based on the present invention.

【0091】このエンコーダは、図5で説明した規則1
〜規則6に基づくランレングス圧縮を実行するソフトウ
エアが動作するマイクロコンピュータ(MPUまたはC
PU)で構成できる。このエンコーダソフトウエアにつ
いては、図13および図14のフローチャートを参照し
て後述する。
This encoder uses the rule 1 described in FIG.
-A microcomputer (MPU or C) that runs software that executes run-length compression based on Rule 6.
PU). This encoder software will be described later with reference to the flowcharts of FIGS.

【0092】以下、1画素単位で読み取られた文字パタ
ーン「A」および「B」の順次(sequential)ビット列
をランレングス圧縮するエンコード処理について、説明
する。
The encoding process for run-length compressing the sequential bit string of the character patterns "A" and "B" read in units of one pixel will be described below.

【0093】図7の例では、ソース画像の画素色が3つ
の場合を想定しているので、エンコード処理対象の映像
データ(文字パターン「A」および「B」の順次ビット
列)は、背景画素色「・」を2ビット画素データ(0
0)bで表し、文字画素色「#」を2ビット画素データ
(01)bで表し、強調画素色「o」を2ビット画素デ
ータ(10)bで表している。この画素データ(00、
01など)のビット数(=2)は、画素幅と呼ぶことも
ある。
In the example shown in FIG. 7, since it is assumed that the source image has three pixel colors, the video data to be encoded (sequential bit strings of character patterns "A" and "B") are the background pixel colors. "." Is replaced with 2-bit pixel data (0
0) b, the character pixel color “#” is represented by 2-bit pixel data (01) b, and the emphasized pixel color “o” is represented by 2-bit pixel data (10) b. This pixel data (00,
The bit number (= 2) such as 01 is sometimes called a pixel width.

【0094】なお、単純化のために、図7の例では、エ
ンコード処理対象映像データ(副映像データ)の表示幅
を16画素とし、走査ライン数(表示の高さ)は9ライ
ンとしている。
For the sake of simplicity, in the example of FIG. 7, the display width of the video data (sub-video data) to be encoded is 16 pixels, and the number of scanning lines (display height) is 9 lines.

【0095】まず、スキャナから得られた画素データ
(副映像データ)は、マイクロコンピュータにより、一
旦、圧縮前のランレングス値に変換される。
First, pixel data (sub-picture data) obtained from the scanner is temporarily converted by a microcomputer into a run length value before compression.

【0096】すなわち、図7の上部の1ライン目を例に
取れば、3個の連像「・・・」は(・*3)に変換さ
れ、その後の1個の「o」は(o*1)に変換され、そ
の後の1個の「#」は(#*1)に変換され、その後の
1個の「o」は(o*1)に変換され、その後の3連像
「・・・」は(・*3)に変換され、その後の1個の
「o」は(o*1)に変換され、その後の4連像「##
##」は(#*4)に変換され、その後の1個の「o」
は(o*1)に変換され、最後の1個の「・」は(・*
1)に変換される。
That is, taking the first line at the top of FIG. 7 as an example, three continuous images “...” Are converted into (· * 3), and one subsequent “o” is converted into (o). * 1), one subsequent "#" is converted to (# * 1), one subsequent "o" is converted to (o * 1), and the subsequent triple image "." .. "is converted to (. * 3), the subsequent one" o "is converted to (o * 1), and the subsequent quadruple image"##
"##" is converted to (# * 4), followed by one "o"
Is converted to (o * 1), and the last "."
Is converted to 1).

【0097】その結果、図7の中部に示すように、1ラ
イン目の圧縮前ランレングスデータは、「・*3/o*
1/#*1/o*1/・*3/o*1/#*4/o*1
/・*1」のようになる。このデータは、文字画素色な
どの画像情報と、その連続数を示す継続画素数との組み
合わせにより、構成されている。
As a result, as shown in the middle part of FIG. 7, the pre-compression run-length data of the first line is “· * 3 / o *
1 / # * 1 / o * 1 / · * 3 / o * 1 / # * 4 / o * 1
/.*1 ". This data is composed of a combination of image information such as a character pixel color and the number of continuous pixels indicating the number of continuations.

【0098】以下同様に、図7上部の2ライン〜9ライ
ン目の画素データ列は、図7中部の2ライン〜9ライン
目に示すような圧縮前ランレングスデータ列になる。
Similarly, the pixel data strings on the second to ninth lines in the upper part of FIG. 7 become run-length data strings before compression as shown in the second to ninth lines in the middle part of FIG.

【0099】ここで、1ライン目のデータに注目する
と、ラインのスタートから背景画素色「・」が3個続い
ているので、図5の圧縮規則1が適用される。その結
果、1ライン目の最初の「・・・」すなわち(・*3)
は、「3」を表す2ビット(11)と背景画素色「・」
を表す(00)とを組み合わせた(1100)にエンコ
ードされる。
Here, paying attention to the data of the first line, since three background pixel colors “•” continue from the start of the line, the compression rule 1 of FIG. 5 is applied. As a result, the first "..." of the first line, that is, (· * 3)
Is 2 bits (11) representing “3” and the background pixel color “•”
Is encoded into (1100) obtained by combining (00) with.

【0100】1ライン目の次のデータは、「o」が1個
なのでやはり規則1が適用される。その結果、1ライン
目の次の[o」すなわち(o*1)は、「1」を表す2
ビット(01)と強調画素色「o」を表す(10)とを
組み合わせた(0110)にエンコードされる。
Since the next data on the first line has one "o", the rule 1 is also applied. As a result, [o] next to the first line, that is, (o * 1) is 2 representing “1”.
It is encoded to (0110) which is a combination of bit (01) and (10) representing the emphasized pixel color “o”.

【0101】さらに次のデータは、「#」が1個なので
やはり規則1が適用される。その結果、1ライン目の次
の[#」すなわち(#*1)は、「1」を表す2ビット
(01)と文字画素色「#」を表す(01)とを組み合
わせた(0101)にエンコードされる。(この#に関
する部分は、図7の中部および下部では破線で囲って図
示してある。)以下同様に、(o*1)は(0110)
にエンコードされ、(・*3)は(1100)にエンコ
ードされ、(o*1)は(0110)にエンコードされ
る。
Since the next data has only one "#", the rule 1 is also applied. As a result, the next [#] on the first line, that is, (# * 1) is (0101) obtained by combining two bits (01) representing "1" and (01) representing the character pixel color "#". Encoded. (The portion related to # is surrounded by broken lines in the middle and lower parts of FIG. 7.) Similarly, (o * 1) is (0110)
, (* 3) is encoded to (1100), and (o * 1) is encoded to (0110).

【0102】1ライン目のその後のデータは、「#」が
4個なので、図5の圧縮規則2が適用される。その結
果、1ライン目のこの[#」すなわち(#*4)は、規
則2が適用されたことを示す2ビットヘッダ(00)
と、継続画素数「4」を表す4ビット(0100)と、
文字画素色「#」を表す(01)とを組み合わせた(0
0010001)にエンコードされる。(この#に関す
る部分は、破線で囲って図示してある。)1ライン目の
さらにその後のデータは、「o」が1個なので規則1が
適用される。その結果、この[o」すなわち(o*1)
は、「1」を表す2ビット(01)と強調画素色「o」
を表す(10)とを組み合わせた(0110)にエンコ
ードされる。
Since the data following the first line has four "#" s, the compression rule 2 shown in FIG. 5 is applied. As a result, this [#] on the first line, that is, (# * 4) is a 2-bit header (00) indicating that rule 2 has been applied.
And 4 bits (0100) representing the number of continuous pixels “4”;
A combination of (01) representing the character pixel color “#” (0
0010001). (The portion related to # is surrounded by a broken line.) Since the data subsequent to the first line has one "o", Rule 1 is applied. As a result, this [o], that is, (o * 1)
Represents two bits (01) representing “1” and an emphasized pixel color “o”
Is encoded to (0110) which is a combination of (10) and

【0103】1ライン目最後のデータは、「・」が1個
なので規則1が適用される。その結果、この[・」すな
わち(・*1)は、「1」を表す2ビット(01)と背
景画素色「・」を表す(00)とを組み合わせた(01
00)にエンコードされる。
Since the last data on the first line has one ".", Rule 1 is applied. As a result, this [•], that is, (• * 1) is a combination of two bits (01) representing “1” and (00) representing the background pixel color “•” (01).
00).

【0104】以上のようにして、1ライン目の圧縮前ラ
ンレングスデータ「・*3/o*1/#*1/o*1/
・*3/o*1/#*4/o*1/・*1」は、(11
00)(0110)(0101)(0110)(110
0)(0110)(00010001)(0110)
(0100)のようにランレングス圧縮され、1ライン
目のエンコードが終了する。
As described above, the run-length data before compression for the first line ". * 3 / o * 1 / # * 1 / o * 1 /
* 3 / o * 1 / # * 4 / o * 1 /.* 1 "is (11
00) (0110) (0101) (0110) (110
0) (0110) (00010001) (0110)
Run-length compression is performed as in (0100), and encoding of the first line is completed.

【0105】以下同様にして、8ライン目までエンコー
ドが進行する。9ライン目では、1ライン全てが同一の
背景画素色「・」で占められている。この場合は、図5
の圧縮規則5が適用される。その結果、9ライン目の圧
縮前ランレングスデータ「・*16」は、同一の背景画
素色「・」がラインエンドまで続いていることを示す1
4ビットのヘッダ(00000000000000)
と、背景画素色「・」を示す2ビット画素データ(0
0)とを組み合わせた、16ビットの(0000000
000000000)にエンコードされる。
In the same manner, encoding proceeds up to the eighth line. In the ninth line, one line is occupied by the same background pixel color “•”. In this case, FIG.
Compression rule 5 is applied. As a result, the pre-compression run-length data “• * 16” on the ninth line indicates that the same background pixel color “•” continues to the line end 1
4-bit header (000000000000000)
And 2-bit pixel data (0
0) and 16-bit (00000000)
0000000000).

【0106】なお、上記規則5に基づくエンコードは、
圧縮対象データがラインの途中から始まりラインエンド
まで続いている場合にも適用される。
The encoding based on the rule 5 is as follows.
It is also applied when the data to be compressed starts from the middle of the line and continues to the end of the line.

【0107】図10は、この発明に基づきエンコードさ
れた画像情報を持つ高密度光ディスクの、量産からユー
ザサイドにおける再生までの流れを説明するとともに;
この発明に基づきエンコードされた画像情報の、放送/
ケーブル配信からユーザ/加入者における受信/再生ま
での流れを説明するブロック図である。
FIG. 10 explains the flow from mass production to reproduction on the user side of a high-density optical disk having image information encoded according to the present invention;
Broadcast / encoding of image information encoded according to the present invention
It is a block diagram explaining the flow from cable distribution to reception / reproduction in a user / subscriber.

【0108】たとえば図7の中部に示すような圧縮前ラ
ンレングスデータが図10のエンコーダ200に入力さ
れると、エンコーダ200は、たとえば図5の圧縮規則
1〜6に基づくソフトウエア処理により、入力されたデ
ータがランレングス圧縮(エンコード)される。
For example, when the pre-compression run-length data as shown in the middle part of FIG. 7 is input to the encoder 200 of FIG. 10, the encoder 200 performs the input by software processing based on the compression rules 1 to 6 of FIG. The resulting data is run-length compressed (encoded).

【0109】図1に示すような光ディスクODに図2に
示すような論理構成のデータが記録される場合は、図1
0のエンコーダ200によるランレングス圧縮処理(エ
ンコード処理)は、図3の副映像データに対して実施さ
れる。
When data having a logical configuration as shown in FIG. 2 is recorded on the optical disc OD as shown in FIG.
The run-length compression processing (encoding processing) by the 0 encoder 200 is performed on the sub-picture data of FIG.

【0110】図10のエンコーダ200には、上記光デ
ィスクODを完成させるに必要な種々なデータも入力さ
れる。これらのデータは、たとえばMPEG(Mortion
Picture Expert Group)の規格に基づき圧縮され、圧縮
後のデジタルデータがレーザカッティングマシン202
または変調器/送信器210に送られる。
Various data necessary for completing the optical disc OD are also input to the encoder 200 shown in FIG. These data are, for example, MPEG (Mortion
The compressed digital data is compressed according to the standards of the Picture Expert Group and the laser cutting machine 202
Or sent to the modulator / transmitter 210.

【0111】レーザカッティングマシン202におい
て、図示しないマザーディスクにエンコーダ200から
のMPEG圧縮データがカッティングされて、光ディス
クマスタ204が製造される。
In the laser cutting machine 202, MPEG compressed data from the encoder 200 is cut on a mother disk (not shown), and an optical disk master 204 is manufactured.

【0112】2枚貼合せ高密度光ディスク量産設備20
6では、このマスタ204を雛形にして、たとえば厚さ
0.6ミリのポリカーボネート基板上のレーザ光反射膜
に、マスタの情報が転写される。それぞれ別のマスタ情
報が転写された大量2枚のポリカーボネート基板は、張
り合わされて、厚さ1.2ミリの両面光ディスク(ある
いは片面読み取り形両面ディスク)となる。
Mass production facility 20 for two-layer high-density optical disc
In step 6, the master 204 is used as a template to transfer the master information to a laser light reflecting film on a polycarbonate substrate having a thickness of 0.6 mm, for example. A large amount of two polycarbonate substrates onto which different pieces of master information have been transferred are bonded together to form a 1.2 mm thick double-sided optical disk (or single-sided reading double-sided disk).

【0113】設備206で量産された貼合せ高密度光デ
ィスクODは各種市場に頒布され、ユーザの手元に届
く。
The bonded high-density optical disk OD mass-produced in the facility 206 is distributed to various markets and reaches the user.

【0114】頒布されたディスクODは、ユーザの再生
装置300で再生される。この装置300は、エンコー
ダ200でエンコードされたデータを元の情報に復元す
るデコーダ101を備えている。デコーダ101でデコ
ードされた情報は、たとえばユーザのモニタTVに送ら
れ、映像化される。こうして、エンドユーザは大量頒布
されたディスクODから、元の映像情報を観賞すること
ができるようになる。
The distributed disk OD is reproduced by the reproduction device 300 of the user. The device 300 includes a decoder 101 for restoring data encoded by the encoder 200 to original information. The information decoded by the decoder 101 is sent to, for example, a user's monitor TV and is visualized. Thus, the end user can enjoy the original video information from the mass-distributed disc OD.

【0115】一方、エンコーダ200から変調器/送信
器210に送られた圧縮情報は、所定の規格に沿って変
調され、送信される。たとえば、エンコーダ200から
の圧縮映像情報は、対応する音声情報とともに衛星放送
(212)される。あるいは、エンコーダ200からの
圧縮映像情報は、対応する音声情報とともにケーブル伝
送(212)される。
On the other hand, the compressed information sent from the encoder 200 to the modulator / transmitter 210 is modulated according to a predetermined standard and transmitted. For example, the compressed video information from the encoder 200 is satellite broadcast (212) together with the corresponding audio information. Alternatively, the compressed video information from the encoder 200 is transmitted by cable (212) together with the corresponding audio information.

【0116】放送あるいはケーブル伝送された圧縮映像
/音声情報は、ユーザあるいは加入者の受信器/復調器
400で受信される。この受信器/復調器400は、エ
ンコーダ200でエンコードされたデータを元の情報に
復元するデコーダ101を備えている。デコーダ101
でデコードされた情報は、たとえばユーザのモニタTV
に送られ、映像化される。こうして、エンドユーザは放
送あるいはケーブル伝送された圧縮映像情報から、元の
映像情報を観賞することができるようになる。
The compressed video / audio information broadcast or transmitted by cable is received by the receiver / demodulator 400 of the user or subscriber. The receiver / demodulator 400 includes a decoder 101 for restoring data encoded by the encoder 200 to original information. Decoder 101
Is decoded, for example, by the user's monitor TV.
To be visualized. Thus, the end user can enjoy the original video information from the compressed video information broadcast or transmitted by cable.

【0117】図11は、この発明に基づく画像デコード
(ランレングス伸張)を実行するデコーダハードウエア
の一実施形態(ノンインターレース仕様)を示すブロッ
ク図である。ランレングス圧縮された副映像データSP
D(図3のデータ32相当)をデコードするデコーダ1
01(図10参照)は、図11のように構成することが
できる。
FIG. 11 is a block diagram showing an embodiment (non-interlaced specification) of decoder hardware for executing image decoding (run-length expansion) based on the present invention. Run-length compressed sub-picture data SP
Decoder 1 for decoding D (corresponding to data 32 in FIG. 3)
01 (see FIG. 10) can be configured as shown in FIG.

【0118】以下、図11を参照しながら、図4に示す
ようなフォーマットのランレングス圧縮された画素デー
タを含む信号をランレングス伸張する副映像データデコ
ーダについて、説明する。
Hereinafter, a sub-picture data decoder for extending the length of a signal including the run-length-compressed pixel data in the format shown in FIG. 4 will be described with reference to FIG.

【0119】図11に示すように、この副映像デコーダ
101は、副映像データSPDが入力されるデータI/
O102と;副映像データSPDを保存するメモリ10
8と;このメモリ108の読み書き動作を制御するメモ
リ制御部105と;メモリ108から読み出された符号
データ(ランレングス圧縮された画素データ)のラン情
報から1単位(1ブロック)の継続コード長(符号化ヘ
ッダ)を検知し、その継続コード長の切り分け情報を出
力する継続コード長検知部106と;この継続コード長
検知部106からの情報にしたがって1ブロック分の符
号データを取り出す符号データ切分部103と;この符
号データ切分部103から出力されるものであって1圧
縮単位のラン情報を示す信号と、継続コード長検知部1
06から出力されるものであってデータビットの「0」
が1ブロック分の符号データの先頭から幾つ連続してい
るかという「0」ビット連続数を示す信号(期間信号)
とを受け取り、これらの信号から1ブロックの継続画素
数を計算するラン長設定部107と;符号データ切分部
103からの画素色情報とラン長設定部107から出力
された期間信号とを受け取り、その期間だけ色情報を出
力する画素色出力部104(Fast-in/Fast-outタイプ)
と;メモリ108から読み出された副映像データSPD
中のヘッダデータ(図4参照)を読み込み、読み込んだ
データに基づき各種処理設定および制御を行なうマイク
ロコンピュータ112と;メモリ108の読み書きアド
レスを制御するアドレス制御部109と;ラン情報が存
在しないラインに対する色情報がマイクロコンピュータ
112により設定される不足画素色設定部111と;T
V画面などに副映像を表示するときの表示エリアを決定
する表示有効許可部110などで、構成されている。
As shown in FIG. 11, sub-picture decoder 101 receives data I / O to which sub-picture data SPD is input.
O102; memory 10 for storing sub-picture data SPD
8, a memory control unit 105 for controlling the read / write operation of the memory 108; and a continuous code length of one unit (one block) from the run information of the code data (run-length compressed pixel data) read from the memory 108. (Encoded header), and a continuation code length detection unit 106 for outputting the continuation code length separation information; and a code data cutout for extracting one block of code data according to the information from the continuation code length detection unit 106. A dividing unit 103; a signal output from the code data dividing unit 103 and indicating run information of one compression unit;
06 and the data bit "0"
Indicates the number of consecutive "0" bits (period signal) from the beginning of the code data for one block from the beginning.
And a run length setting unit 107 that calculates the number of continuous pixels in one block from these signals; and receives the pixel color information from the code data separation unit 103 and the period signal output from the run length setting unit 107. , Pixel color output unit 104 that outputs color information only during that period (Fast-in / Fast-out type)
; The sub-picture data SPD read from the memory 108
The microcomputer 112 reads the header data therein (see FIG. 4) and performs various processing settings and controls based on the read data; an address control unit 109 that controls a read / write address of the memory 108; An insufficient pixel color setting unit 111 in which color information is set by the microcomputer 112;
It comprises a display validity permitting section 110 for determining a display area when a sub-picture is displayed on a V screen or the like.

【0120】上記説明を別の言い方で再度説明すると、
次のようになる。すなわち、図11に示すように、ラン
レングス圧縮された副映像データSPDは、データI/
O102を介して、デコーダ101内部のバスに送り込
まれる。バスに送り込まれたデータSPDは、メモリ制
御部105を介してメモリ108へ送られ、そこに記憶
される。また、デコーダ101の内部バスは、符号デー
タ切分部103と、継続コード長検知部106と、マイ
クロコンピュータ(MPUまたはCPU)112とに接
続されている。
The above description will be described again in another way.
It looks like this: That is, as shown in FIG. 11, the run-length compressed sub-picture data SPD is
Via O102, it is sent to the bus inside the decoder 101. The data SPD sent to the bus is sent to the memory 108 via the memory control unit 105, where it is stored. The internal bus of the decoder 101 is connected to the code data separating unit 103, the continuous code length detecting unit 106, and the microcomputer (MPU or CPU) 112.

【0121】メモリ108から読み出された副映像デー
タの副映像ユニットヘッダ31は、マイクロコンピュー
タ112により読み取られる。マイクロコンピュータ1
12は、読み出したヘッダ31から、図4に示す各種パ
ラメータに基づいて、アドレス制御部109にデコード
開始アドレス(SPDDADR)を設定し、表示有効許
可部110に副映像の表示開始位置と表示幅と表示高と
の情報(SPDSIZE)を設定し、符号データ切分部
103に副映像の表示幅(ライン上のドット数)を設定
する。設定された各種情報は各部(109、110、1
03)の内部レジスタに保存される。それ以後、レジス
タに保存された各種情報は、マイクロコンピュータ11
2によりアクセスできるようになる。
The sub-picture unit header 31 of the sub-picture data read from the memory 108 is read by the microcomputer 112. Microcomputer 1
12 sets the decoding start address (SPDDDR) in the address control unit 109 from the read header 31 based on the various parameters shown in FIG. The information (SPDSIZE) with the display height is set, and the display width (the number of dots on a line) of the sub-picture is set in the code data separating unit 103. The set various information is stored in each section (109, 110, 1).
03) is stored in the internal register. After that, the various information stored in the register is transferred to the microcomputer 11
2 allows access.

【0122】アドレス制御部109は、レジスタに設定
されたデコード開始アドレス(SPDDADR)に基づ
き、メモリ制御部105を介しメモリ108にアクセス
して、デコードしようとする副映像データの読み出しを
開始する。こうしてメモリ108から読み出された副映
像データは、符号データ切出部103および継続コード
長検知部106に与えられる。
The address control unit 109 accesses the memory 108 via the memory control unit 105 based on the decoding start address (SPDDDR) set in the register, and starts reading sub-picture data to be decoded. The sub-picture data thus read from the memory 108 is supplied to the code data cutout unit 103 and the continuous code length detection unit 106.

【0123】ランレングス圧縮された副映像データSP
Dの符号化ヘッダ(図5の規則2〜5では2〜14ビッ
ト)は継続コード長検知部106により検出され、デー
タSPD内における同一画素データの継続画素数が継続
コード長検知部106からの信号を基にラン長設定部1
07により検出される。
Run-length compressed sub-picture data SP
The coded header of D (2 to 14 bits in rules 2 to 5 in FIG. 5) is detected by the continuation code length detection unit 106, and the number of continuation pixels of the same pixel data in the data SPD is determined by the continuation code length detection unit 106. Run length setting unit 1 based on signal
07.

【0124】すなわち、継続コード長検知部106は、
メモリ108から読み込んだデータの”0”ビットの数
を数えて、符号化ヘッダ(図5参照)を検知する。この
検知部106は、検知した符号化ヘッダの値にしたがっ
て、符号データ切分部103に切り分け情報SEP.I
NFO.を与える。
That is, the continuation code length detection unit 106
By counting the number of "0" bits of the data read from the memory 108, the encoded header (see FIG. 5) is detected. The detecting unit 106 supplies the code data separating unit 103 with the information SEP. I
NFO. give.

【0125】符号データ切分部103は、与えられた切
り分け情報SEP.INFO.にしたがって、継続画素
数(ラン情報)をラン長設定部107に設定するととも
に、画素データ(SEPARATED DATA;ここ
では画素色)をFIFOタイプの画素色出力部104に
設定する。その際、符号データ切分部103は、副映像
データの画素数をカウントし、画素数カウント値と副映
像の表示幅(1ラインの画素数)とを比較している。
The code data separating section 103 receives the provided separating information SEP. INFO. , The number of continuous pixels (run information) is set in the run length setting unit 107, and the pixel data (SEPARATED DATA; here, the pixel color) is set in the FIFO type pixel color output unit 104. At this time, the code data separating unit 103 counts the number of pixels of the sub-picture data, and compares the pixel count value with the display width of the sub-picture (the number of pixels in one line).

【0126】1ライン分のデコードが終了した時点でバ
イトアラインされていない(つまり1ライン分のデータ
ビット長が8の倍数でない)場合は、符号データ切分部
103は、そのライン上の末尾4ビットデータをエンコ
ード時に付加されたダミーデータであるとみなして、切
り捨てる。
If byte-alignment is not performed when decoding of one line is completed (that is, the data bit length of one line is not a multiple of 8), the code data separating unit 103 outputs the last 4 bits on the line. Bit data is regarded as dummy data added at the time of encoding, and is discarded.

【0127】ラン長設定部107は、前記継続画素数
(ラン情報)と画素ドットクロック(DOTCLK)と
水平/垂直同期信号(H−SYNC/V−SYNC)と
に基づいて、画素色出力部104に、画素データを出力
させるための信号(PERIOD SIGNAL)を与
える。すると、画素色出力部104は、画素データ出力
信号(PERIOD SIGNAL)がアクティブであ
る間(つまり同じ画素色を出力する期間中)、符号デー
タ切分部103からの画素データを、デコードされた表
示データとして出力する。
The run-length setting unit 107 outputs a pixel color output unit 104 based on the number of continuous pixels (run information), a pixel dot clock (DOTCLK), and a horizontal / vertical synchronization signal (H-SYNC / V-SYNC). Is supplied with a signal (PERIOD SIGNAL) for outputting pixel data. Then, while the pixel data output signal (PERIOD SIGNAL) is active (that is, during the period of outputting the same pixel color), the pixel color output unit 104 decodes the pixel data from the code data separation unit 103 into a decoded display. Output as data.

【0128】その際、マイクロコンピュータ112から
の指示によりデコード開始ラインが変更されている場合
には、ラン情報のないラインが存在することがある。そ
の場合には、不足画素色設定部111が、予め設定され
た不足の画素色のデータ(COLOR INFO.)を
画素色出力部104に与える。すると、ラン情報のない
ラインデータが符号データ切分部103に与えられてい
る間、画素色出力部104は、不足画素色設定部111
からの不足画素色データ(COLOR INFO.)を
出力する。
At this time, if the decoding start line has been changed by an instruction from the microcomputer 112, there may be a line without run information. In this case, the missing pixel color setting unit 111 supplies the preset missing pixel color data (COLOR INFO.) To the pixel color output unit 104. Then, while the line data without the run information is given to the code data separating unit 103, the pixel color output unit 104 outputs the insufficient pixel color setting unit 111.
And outputs the missing pixel color data (COLOR INFO.).

【0129】すなわち、図11のデコーダ101の場
合、入力された副映像データSPD中に画像データがな
いと、マイクロコンピュータ112はその分不足する画
素色情報を不足画素色設定部111に設定するようにな
っている。
That is, in the case of the decoder 101 in FIG. 11, if there is no image data in the input sub-picture data SPD, the microcomputer 112 sets the insufficient pixel color information to the insufficient pixel color setting section 111. It has become.

【0130】この画素色出力部104へは、図示しない
モニタ画面上のどの位置にデコードされた副映像を表示
させるかを決定する表示許可(Display Enable)信号
が、副映像画像の水平/垂直同期信号に同期して、表示
有効許可部(Display Activator)110から与えられ
る。また、マイクロコンピュータ112からの色情報指
示に基づいて、許可部110から出力部104へ、色切
換信号が送られる。
A display enable signal (Display Enable) for determining which position on the monitor screen (not shown) the decoded sub-picture is to be displayed is supplied to the pixel color output unit 104 in the horizontal / vertical synchronization of the sub-picture image. Synchronized with the signal, it is provided from a display activation permitting section (Display Activator) 110. Further, based on a color information instruction from the microcomputer 112, a color switching signal is sent from the permission unit 110 to the output unit 104.

【0131】アドレス制御部109は、マイクロコンピ
ュータ112による処理設定後、メモリ制御部105、
継続コード長検知部106、符号データ切分部103お
よびラン長設定部107に対して、アドレスデータおよ
び各種タイミング信号を送出する。
The address control unit 109 sets the processing by the microcomputer 112,
Address data and various timing signals are transmitted to the continuation code length detection unit 106, the code data separation unit 103, and the run length setting unit 107.

【0132】データI/O部102を介して副映像デー
タSPDのパックが取り込まれ、それがメモリ108に
格納される際、このデータSPDのパックヘッダの内容
(デコード開始アドレス、デコード終了アドレス、表示
開始位置、表示幅、表示高さなど)がマイクロコンピュ
ータ112により読み取られる。マイクロコンピュータ
112は、読み取った内容に基づいて、表示有効許可部
110に、デコード開始アドレス、デコード終了アドレ
ス、表示開始位置、表示幅、表示高さなどを設定する。
このとき、圧縮された画素データが何ビット構成である
か(ここでは画素データ2ビットとしている)は、図4
の副映像ユニットヘッダ31の内容で決定できるように
構成できる。
When a pack of sub-picture data SPD is fetched via data I / O section 102 and stored in memory 108, the contents of the pack header (decoding start address, decoding end address, display The microcomputer 112 reads the start position, display width, display height, and the like. The microcomputer 112 sets a decode start address, a decode end address, a display start position, a display width, a display height, and the like in the display validity permitting unit 110 based on the read content.
At this time, the number of bits of the compressed pixel data (here, the pixel data is 2 bits) is determined as shown in FIG.
Can be determined by the content of the sub-picture unit header 31.

【0133】以下、圧縮された画素データが2ビット構
成(使用規則は図5の規則1〜6)の場合について、図
11のデコーダ101の動作を説明する。
The operation of the decoder 101 shown in FIG. 11 will be described below in the case where the compressed pixel data has a 2-bit configuration (use rules are rules 1 to 6 in FIG. 5).

【0134】マイクロコンピュータ112によりデコー
ドスタートアドレスが設定されると、アドレス制御部1
09は、メモリ制御部105に対応するアドレスデータ
を送るとともに、継続コード長検知部106に読込開始
信号を送る。
When the microcomputer 112 sets a decode start address, the address control unit 1
09 sends the address data corresponding to the memory control unit 105 and sends a read start signal to the continuous code length detection unit 106.

【0135】継続コード長検知部106は、送られてき
た読込開始信号に応答してメモリ制御部105にリード
信号を送って符号化データ(圧縮された副映像データ3
2)を読み込む。そして、この検知部106において、
読み込んだデータのうち上位2ビット全てが「0」かど
うかがチェックされる。
The continuation code length detecting section 106 sends a read signal to the memory control section 105 in response to the read start signal sent thereto, and sends encoded data (compressed sub-picture data 3).
Read 2). Then, in this detection unit 106,
It is checked whether all the upper two bits of the read data are "0".

【0136】それらが「0」でない場合は、圧縮単位の
ブロック長が4ビットであると判定される(図5の規則
1参照)。
If they are not "0", it is determined that the block length of the compression unit is 4 bits (see rule 1 in FIG. 5).

【0137】それら(上位2ビット)が「0」であれ
ば、さらに続く2ビット(上位4ビット)がチェックさ
れる。それらが「0」でない場合は、圧縮単位のブロッ
ク長が8ビットであると判定される(図5の規則2参
照)。
If those (upper 2 bits) are “0”, the subsequent 2 bits (upper 4 bits) are checked. If they are not “0”, it is determined that the block length of the compression unit is 8 bits (see rule 2 in FIG. 5).

【0138】それら(上位4ビット)が「0」であれ
ば、さらに続く2ビット(上位6ビット)がチェックさ
れる。それらが「0」でない場合は、圧縮単位のブロッ
ク長が12ビットであると判定される(図5の規則3参
照)。
If these (upper 4 bits) are "0", the next 2 bits (upper 6 bits) are checked. If they are not “0”, it is determined that the block length of the compression unit is 12 bits (see rule 3 in FIG. 5).

【0139】それら(上位6ビット)が「0」であれ
ば、さらに続く8ビット(上位14ビット)がチェック
される。それらが「0」でない場合は、圧縮単位のブロ
ック長が16ビットであると判定される(図5の規則4
参照)。
If these (upper 6 bits) are “0”, the subsequent 8 bits (upper 14 bits) are checked. If they are not “0”, it is determined that the block length of the compression unit is 16 bits (Rule 4 in FIG. 5).
reference).

【0140】それら(上位14ビット)が「0」であれ
ば、圧縮単位のブロック長が16ビットであるととも
に、ラインエンドまで同じ画素データが連続していると
判定される(図5の規則5参照)。
If these (higher 14 bits) are "0", it is determined that the block length of the compression unit is 16 bits and the same pixel data continues until the line end (rule 5 in FIG. 5). reference).

【0141】また、ラインエンドまで読み込んだ画素デ
ータのビット数が8の整数倍であればそのままとし、8
の整数倍でなければ、バイトアラインを実現するため
に、読み込んだデータの末尾に4ビットのダミーデータ
が必要であると判定される(図5の規則6参照)。
If the number of bits of the pixel data read up to the line end is an integral multiple of eight, the pixel data is left unchanged.
If it is not an integral multiple of, it is determined that 4-bit dummy data is necessary at the end of the read data to realize byte alignment (see rule 6 in FIG. 5).

【0142】符号データ切分部103は、継続コード長
検知部106による上記判定結果に基づいて、メモリ1
08から副映像データ32の1ブロック分(1圧縮単
位)を取り出す。そして、切分部103において、取り
出された1ブロック分データが、継続画素数と画素デー
タ(画素の色情報など)に切り分けられる。切り分けら
れた継続画素数のデータ(RUN INFO.)はラン
長設定部107に送られ、切り分けられた画素データ
(SEPARATED DATA)は画素色出力部10
4に送られる。
The code data separating section 103 stores the data in the memory 1 based on the result of the determination by the continuous code length detecting section 106.
08, one block (one compression unit) of the sub-picture data 32 is extracted. Then, in the separation unit 103, the extracted data for one block is separated into the number of continuous pixels and pixel data (such as pixel color information). The data of the number of continuous pixels (RUN INFO.) Thus divided is sent to the run length setting unit 107, and the divided pixel data (SEPARATED DATA) is outputted to the pixel color output unit 10.
4

【0143】一方、表示有効許可部110は、マイクロ
コンピュータ112から受け取った表示開始位置情報、
表示幅情報および表示高情報にしたがい、装置外部から
供給される画素ドットクロック(PIXELーDOT
CLK)、水平同期信号(H−SYNC)および垂直同
期信号(V−SYNC)に同期して、副映像表示期間を
指定する表示許可信号(イネーブル信号)を生成する。
この表示許可信号は、ラン長設定部107に出力され
る。
On the other hand, the display validity permitting section 110 receives the display start position information received from the microcomputer 112,
A pixel dot clock (PIXEL-DOT) supplied from outside the device according to the display width information and the display height information.
CLK), a horizontal synchronizing signal (H-SYNC), and a vertical synchronizing signal (V-SYNC) to generate a display permission signal (enable signal) for designating a sub-video display period.
This display permission signal is output to run length setting section 107.

【0144】ラン長設定部107には、継続コード長検
知部106から出力されるものであって現在のブロック
データがラインエンドまで連続するかどうかを示す信号
と、符号データ切分部103からの継続画素データ(R
UN INFO.)とが送られる。ラン長設定部107
は、検知部106からの信号および切分部103からの
データに基づいて、デコード中のブロックが受け持つ画
素ドット数を決定し、このドット数に対応する期間中、
画素色出力部104へ表示許可信号(出力イネーブル信
号)を出力するように構成されている。
The run length setting unit 107 outputs a signal from the continuation code length detection unit 106 indicating whether the current block data continues to the line end, and a signal from the code data separation unit 103. Continuation pixel data (R
UN INFO. ) Is sent. Run length setting unit 107
Determines the number of pixel dots covered by the block being decoded based on the signal from the detection unit 106 and the data from the separation unit 103, and during a period corresponding to this number of dots,
It is configured to output a display permission signal (output enable signal) to the pixel color output unit 104.

【0145】画素色出力部104は、ラン長設定部10
7からの期間信号受信中イネーブルとなり、その期間
中、符号データ切分部103から受け取った画素色情報
を、画素ドットクロック(PIXELーDOT CL
K)に同期して、デコードされた表示データとして、図
示しない表示装置などへ送出する。すなわち、デコード
中ブロックの画素パターン連続ドット数分の同じ表示デ
ータが、画素色出力部104から出力される。
The pixel color output unit 104 includes the run length setting unit 10
7 during the signal reception period, and during that period, the pixel color information received from the code data separation unit 103 is transmitted to the pixel dot clock (PIXEL-DOT CL).
In synchronization with K), the data is transmitted to a display device (not shown) as decoded display data. That is, the same display data as the number of continuous dots of the pixel pattern of the block being decoded is output from the pixel color output unit 104.

【0146】また、継続コード長検知部106は、符号
化データがラインエンドまで同じ画素色データであると
判定すると、符号データ切分部103へ継続コード長1
6ビット用の信号を出力し、ラン長設定部107にはラ
インエンドまで同じ画素色データであることを示す信号
を出力する。
When the continuation code length detection unit 106 determines that the encoded data is the same pixel color data until the line end, the continuation code length detection unit 106 sends the continuation code length 1 to the code data separation unit 103.
A signal for 6 bits is output, and a signal indicating that the pixel color data is the same until the line end is output to the run length setting unit 107.

【0147】ラン長設定部107は、検知部106から
上記信号を受け取ると、水平同期信号H−SYNCが非
アクティブになるまで符号化データの色情報がイネーブ
ル状態を保持し続けるように、画素色出力部104へ出
力イネーブル信号(期間信号)を出力する。
When the run length setting unit 107 receives the signal from the detection unit 106, the run length setting unit 107 sets the pixel color so that the color information of the encoded data keeps the enable state until the horizontal synchronization signal H-SYNC becomes inactive. An output enable signal (period signal) is output to the output unit 104.

【0148】なお、マイクロコンピュータ112が副映
像の表示内容をスクロールさせるためにデコード開始ラ
インを変更した場合は、予め設定していた表示領域内に
デコード使用とするデータラインが存在しない(つまり
デコードラインが不足する)可能性がある。
When the microcomputer 112 changes the decoding start line in order to scroll the display contents of the sub-picture, the data line to be used for decoding does not exist in the preset display area (that is, the decoding line). May be insufficient).

【0149】図11のデコーダ101は、このような場
合に対処するために、不足したラインを埋める画素色デ
ータを予め用意している。そして、実際にライン不足が
検知されると、不足画素色データの表示モードに切り換
えられる。具体的にいえば、データエンド信号がアドレ
ス制御部109から表示有効許可部110に与えられる
と、許可部110は画素色出力部104に色切換信号
(COLOR SW SIGNAL)を送る。画素色出
力部104は、この切換信号に応答して、符号データか
らの画素色データのデコード出力を、不足画素色設定部
110からの色情報(COLOR INFO.)のデコ
ード出力に切り換える。この切換状態は、不足ラインの
表示期間中(DISPLAY ENABLE=アクティ
ブ)、維持される。
In order to cope with such a case, the decoder 101 in FIG. 11 prepares pixel color data for filling the missing lines in advance. Then, when a line shortage is actually detected, the display mode is switched to the display mode of the insufficient pixel color data. Specifically, when a data end signal is given from the address control unit 109 to the display validity permission unit 110, the permission unit 110 sends a color switching signal (COL SW SIGNAL) to the pixel color output unit 104. In response to the switching signal, the pixel color output unit 104 switches the decoded output of the pixel color data from the code data to the decoded output of the color information (COLOR INFO.) From the insufficient pixel color setting unit 110. This switching state is maintained during the display period of the insufficient line (DISPLAY ENABLE = active).

【0150】なお、上記ライン不足が生じた場合、不足
画素色データを用いる代わりに、その間、デコード処理
動作を中止することもできる。
When the line shortage occurs, instead of using the insufficient pixel color data, the decoding operation can be stopped during that time.

【0151】具体的には、例えばデータエンド信号がア
ドレス制御部109から表示有効許可部110へ入力さ
れたときに、許可部110から画素色出力部104へ表
示中止を指定する色切換信号を出力すればよい。する
と、画素色出力部104は、この表示中止指定色切換信
号がアクティブの期間中、副映像の表示を中止するよう
になる。
More specifically, for example, when a data end signal is input from the address control section 109 to the display validity permitting section 110, the permitting section 110 outputs to the pixel color output section 104 a color switching signal for designating display suspension. do it. Then, the pixel color output unit 104 stops displaying the sub-picture while the display stop designation color switching signal is active.

【0152】図8は、図7の例でエンコードされた画素
データ(副映像データ)のうち、文字パターン「A」が
どのようにデコードされるかを、2例(ノンインターレ
ース表示およびインターレース表示)説明するものであ
る。
FIG. 8 shows two examples (non-interlaced display and interlaced display) of how the character pattern "A" is decoded from the pixel data (sub-picture data) encoded in the example of FIG. It is for explanation.

【0153】図11のデコーダ101は、図8の上部で
示すような圧縮データを図8の左下部に示すようなノン
インターレース表示データにデコードする場合に用いる
ことができる。
The decoder 101 shown in FIG. 11 can be used when decoding compressed data as shown in the upper part of FIG. 8 into non-interlaced display data as shown in the lower left part of FIG.

【0154】これに対し、図8の上部で示すような圧縮
データを図8の右下部に示すようなインターレース表示
データにデコードする場合は、同一画素ラインを二度ス
キャンするラインダブラ(たとえば、奇数フィールドの
ライン#1と同じ内容のライン#10を、偶数フィール
ドにおいて再スキャンする;V−SYNC単位の切換)
が必要になる。
On the other hand, when decoding compressed data as shown in the upper part of FIG. 8 into interlaced display data as shown in the lower right part of FIG. 8, a line doubler (for example, an odd field) for scanning the same pixel line twice is used. Line # 10 having the same content as line # 1 of the above is re-scanned in the even field; switching in V-SYNC units)
Is required.

【0155】また、インターレース表示と同等の画像表
示量をノンインターレース表示する場合は、別のインダ
ブラ(たとえば、図8右下部のライン#1と同じ内容を
持つライン#10をライン#1に連続させる;H−SY
NC単位の切換)が必要になる。
When non-interlaced display is performed at the same image display amount as interlaced display, another indubbler (for example, line # 10 having the same content as line # 1 at the lower right of FIG. 8 is continued to line # 1) H-SY
NC unit).

【0156】図12は、上記ラインダブラの機能を持つ
デコーダハードウエアの実施形態(インターレース仕
様)を説明するブロック図である。図10のデコーダ1
01は、図12の構成のデコーダで構成することもでき
る。
FIG. 12 is a block diagram for explaining an embodiment (interlace specification) of decoder hardware having the function of the line doubler. Decoder 1 of FIG.
01 can also be configured by the decoder having the configuration of FIG.

【0157】図12の構成において、マイクロコンピュ
ータ112は、副映像の水平/垂直同期信号に基づい
て、インターレース表示の奇数フィールドと偶数フィー
ルドの発生タイミングを検知している。
In the configuration of FIG. 12, the microcomputer 112 detects the generation timing of the odd field and the even field of the interlaced display based on the horizontal / vertical synchronization signals of the sub-picture.

【0158】奇数フィールドを検知すると、マイクロコ
ンピュータ112は選択信号生成部118に「現在奇数
フィールドである」ことを示すモード信号を与える。す
ると、選択信号生成部118からセレクタ115へ、デ
コーダ101からのデコードデータを選択させる信号が
出力される。すると、奇数フィールドのライン#1〜#
9の画素データ(図8の右下部参照)が、デコーダ10
1からセレクタ115を介して、ビデオ出力として外部
へ送出される。このとき、これら奇数フィールドのライ
ン#1〜#9の画素データは、一旦、ラインメモリ11
4に格納される。
When the odd field is detected, the microcomputer 112 supplies the selection signal generator 118 with a mode signal indicating "currently an odd field". Then, a signal for selecting the decoded data from the decoder 101 is output from the selection signal generation unit 118 to the selector 115. Then, lines # 1 to # of the odd field
9 (see the lower right part of FIG. 8)
1 is transmitted to the outside as a video output through the selector 115. At this time, the pixel data of the lines # 1 to # 9 of the odd field are temporarily stored in the line memory 11.
4 is stored.

【0159】偶数フィールドに移ったことを検知する
と、マイクロコンピュータ112は選択信号生成部11
8に「現在偶数フィールドである」ことを示すモード信
号を与える。すると、選択信号生成部118からセレク
タ115へ、ラインメモリ114に格納されたを選択さ
せる信号が出力される。すると、偶数フィールドのライ
ン#10〜#18の画素データ(図8の右下部参照)
が、ラインメモリ114からセレクタ115を介して、
ビデオ出力として外部へ送出される。
When the microcomputer 112 detects that it has moved to the even field, the microcomputer 112
8 is supplied with a mode signal indicating "currently an even field". Then, a signal for selecting the data stored in the line memory 114 is output from the selection signal generation unit 118 to the selector 115. Then, the pixel data of the lines # 10 to # 18 of the even field (see the lower right part of FIG. 8)
From the line memory 114 via the selector 115,
It is sent out as a video output.

【0160】こうして、奇数フィールドのライン#1〜
#9の副映像画像(図8の例では文字「A」)と、偶数
フィールドのライン#10〜#18の副映像画像(図8
の文字「A」)とが合成されて、インターレース表示が
実現される。
Thus, the odd-numbered field lines # 1 to # 1
The # 9 sub-picture image (character "A" in the example of FIG. 8) and the sub-picture images of lines # 10 to # 18 of the even-numbered field (FIG.
And the character "A") is synthesized to realize an interlaced display.

【0161】ところで、図4に示した副映像データの副
映像ユニットヘッダ31には、TV画面のフレーム表示
モード/フィールド表示モードを示すパラメータビット
(SPMOD)が設けられている。
By the way, the sub-picture unit header 31 of the sub-picture data shown in FIG. 4 is provided with parameter bits (SPMOD) indicating the frame display mode / field display mode of the TV screen.

【0162】インターレース表示と同等の画像表示量を
ノンインターレース表示する場合は、たとえば以下のよ
うになる。
When non-interlaced display is performed with the same image display amount as interlaced display, for example, the following is performed.

【0163】図12のマイクロコンピュータ112は、
副映像ユニットヘッダ31を読み込んだとき、上記パラ
メータSPMODの設定値(アクティブ=「1」;非ア
クティブ=「0」)から、インターレースモード(アク
ティブ「1」)であるかノンインターレースモードであ
るか(非アクティブ「0」)を判断できる。
The microcomputer 112 shown in FIG.
When the sub-picture unit header 31 is read, from the set value of the parameter SPMOD (active = “1”; inactive = “0”), it is determined whether the mode is the interlace mode (active “1”) or the non-interlace mode ( Inactivity "0") can be determined.

【0164】図12の構成において、パラメータSPM
ODがアクティブ=「1」であると、マイクロコンピュ
ータ112はインターレースモードであることを検知
し、インターレースモードを示すモード信号を選択信号
生成部118に送る。このモード信号を受けた生成部1
18は、水平同期信号H−SYNCの発生毎に、切換信
号をセレクタ115に与える。すると、セレクタ115
は、副映像デコーダ101からの現在フィールドのデコ
ード出力(DECODED DATA)と、ラインメモ
リ114に一時記憶された現在フィールドのデコード出
力とを、水平同期信号H−SYNCの発生毎に交互に切
り換えて、ビデオ出力を外部TVなどに送出する。
In the configuration shown in FIG.
If OD is active = “1”, the microcomputer 112 detects the interlace mode and sends a mode signal indicating the interlace mode to the selection signal generation unit 118. Generation unit 1 receiving this mode signal
Reference numeral 18 gives a switching signal to the selector 115 every time the horizontal synchronization signal H-SYNC is generated. Then, the selector 115
Switches between the decoded output of the current field (DECODED DATA) from the sub-picture decoder 101 and the decoded output of the current field temporarily stored in the line memory 114 every time the horizontal synchronization signal H-SYNC is generated. The video output is sent to an external TV or the like.

【0165】以上のようにして、現在のデコードデータ
とラインメモリ114内のデコードデータとがH−SY
NC毎に切り換え出力されると、TV画面上には、元の
画像(デコードされたデータ)の2倍の密度(水平走査
線が2倍)を持つ映像が、インターレースモードで表示
される。
As described above, the current decode data and the decode data in line memory 114 are H-SY
When the output is switched for each NC, a video having twice the density (twice the horizontal scanning lines) of the original image (decoded data) is displayed on the TV screen in the interlace mode.

【0166】このような構成の副映像デコーダ101で
は、データが1ライン分読み込まれてからデコード処理
されるのではなく、順次入力されるビットデータが、デ
コードデータ単位ブロックの初めから1ビットづつカウ
ントされつつ2〜16ビット読み込まれ、デコード処理
される。この場合、デコードデータ1単位のビット長
(4ビット、8ビット、12ビット、16ビットなど)
はデコード直前に検知される。そして、検知されたデー
タ長単位で、圧縮された画素データが、たとえば3種類
の画素(図7の例では「・」、「o」、「#」)に、リ
アルタイムで復元(再生)されて行く。
In the sub-picture decoder 101 having such a configuration, instead of reading data for one line and decoding the data, the sequentially input bit data is counted one bit at a time from the beginning of the decoded data unit block. 2 to 16 bits are read and decoded. In this case, the bit length of one unit of decoded data (4 bits, 8 bits, 12 bits, 16 bits, etc.)
Is detected immediately before decoding. Then, in units of the detected data length, the compressed pixel data is restored (reproduced) in real time to, for example, three types of pixels (“•”, “o”, “#” in the example of FIG. 7). go.

【0167】たとえば図5の規則1〜規則6にしたがっ
てエンコードされた画素データをデコードするにあた
り、副映像デコーダ101は、ビットカウンタと比較的
小容量のデータバッファ(ラインメモリ114など)を
備えておればよい。換言すれば、副映像デコーダ101
の回路構成は比較的単純なものとすることができ、この
エンコーダを含む装置全体を小型化できることになる。
For example, when decoding pixel data encoded in accordance with rules 1 to 6 in FIG. 5, sub-picture decoder 101 has a bit counter and a relatively small-capacity data buffer (such as line memory 114). I just need. In other words, the sub-picture decoder 101
Can be made relatively simple, and the whole device including this encoder can be downsized.

【0168】すなわち、この発明エンコーダは、従来の
MH符号化方法のようにデコーダ内に大掛かりなコード
表を必要とせず、また算術符号化方法のようにエンコー
ド時にデータを二度読みする必要もなくなる。さらに、
この発明のデコーダは、掛算器のよな比較的複雑なハー
ドウエアを必要とせず、カウンタおよび小容量バッファ
などの簡単な回路の追加で具現できる。
That is, the encoder of the present invention does not require a large code table in the decoder unlike the conventional MH coding method, and does not need to read data twice at the time of encoding unlike the arithmetic coding method. . further,
The decoder of the present invention does not require relatively complicated hardware such as a multiplier, and can be implemented by adding simple circuits such as a counter and a small-capacity buffer.

【0169】この発明によれば、多種類の画素データ
(2ビット構成では最大4種類)のランレングス圧縮/
エンコードおよびそのランレングス伸張/デコードを、
比較的簡単な構成で実現できるようになる。
According to the present invention, run-length compression / compression of various types of pixel data (up to four types in a 2-bit configuration) is performed.
Encoding and its run-length decompression / decoding,
This can be realized with a relatively simple configuration.

【0170】図13は、この発明の一実施の形態に係る
画像エンコード(ランレングス圧縮)を実行するもので
あって、たとえば図10のエンコーダ(200)により
実行されるソフトウエアを説明するフローチャートであ
る。
FIG. 13 is a flowchart for executing image encoding (run-length compression) according to an embodiment of the present invention, and for explaining software executed by, for example, the encoder (200) in FIG. is there.

【0171】図5のランレングス圧縮規則1〜6に基づ
く一連のエンコード処理は、図10に示すエンコーダ2
00内部のマイクロコンピュータにより、ソフトウエア
処理として、実行される。エンコーダ200によるエン
コード全体の処理は図13のフローにしたがって行うこ
とができ、副映像データ中の画素データのランレングス
圧縮は図14のフローにしたがって行うことができる。
A series of encoding processes based on the run-length compression rules 1 to 6 in FIG.
It is executed as a software process by a microcomputer in the 00. The entire encoding process by the encoder 200 can be performed according to the flow of FIG. 13, and the run-length compression of the pixel data in the sub-picture data can be performed according to the flow of FIG.

【0172】この場合、エンコーダ200内部のコンピ
ュータは、まず、キー入力などによって画像データのラ
イン数とドット数が指定されると(ステップST80
1)、副映像データのヘッダ領域を用意し、ラインカウ
ント数を「0」に初期化する(ステップST802)。
In this case, the computer inside encoder 200 first specifies the number of lines and the number of dots of image data by key input or the like (step ST80).
1), a header area for sub-picture data is prepared, and the line count is initialized to "0" (step ST802).

【0173】そして画素パターンが1画素づつ順次入力
されると、エンコーダ200内部のコンピュータは、最
初の1画素分の画素データ(ここでは2ビット)を取得
して、その画素データを保存し、画素カウントを「1」
に設定するとともに、ドットカウント数を「1」に設定
する(ステップST803)。
When the pixel patterns are sequentially input one pixel at a time, the computer inside the encoder 200 acquires the pixel data (here, 2 bits) for the first pixel, saves the pixel data, and saves the pixel data. Count "1"
And the dot count is set to "1" (step ST803).

【0174】続いて、エンコーダ200の内部コンピュ
ータは、次の画素パターンの画素データ(2ビット)を
取得し、1つ前に入力された保存中の画素データと比較
する(ステップST804)。
Subsequently, the internal computer of encoder 200 acquires the pixel data (2 bits) of the next pixel pattern, and compares it with the previously stored pixel data that was input immediately before (step ST804).

【0175】この比較の結果、画素データが等しくない
場合は(ステップST805のノー)、エンコード変換
処理1が行われ(ステップST806)、現在の画素デ
ータが保存される(ステップST807)。そして画素
カウント数が+1インクリメントされ、これに対応して
ドットカウント数も+1インクリメントされる(ステッ
プST808)。
As a result of the comparison, if the pixel data are not equal (No in step ST805), encoding conversion processing 1 is performed (step ST806), and the current pixel data is stored (step ST807). Then, the pixel count is incremented by +1 and the dot count is also incremented by +1 (step ST808).

【0176】なお、ステップST804での比較の結
果、画素データが等しい場合は(ステップST805イ
エス)、ステップST806のエンコード変換処理1は
スキップされステップST808に移る。
When the pixel data is equal as a result of the comparison in step ST804 (YES in step ST805), the encoding conversion process 1 in step ST806 is skipped and the process proceeds to step ST808.

【0177】画素カウント数およびドットカウント数の
インクリメント(ステップST808)の後、エンコー
ダ200の内部コンピュータは、現在エンコード中の画
素ラインが終端であるかどうかチェックする(ステップ
ST809)。ラインエンドであれば(ステップST8
09イエス)、エンコード変換処理2が行われる(ステ
ップST810)。ラインエンドでなければ(ステップ
ST809ノー)、ステップST804に戻り、ステッ
プST804〜ステップST808の処理が反復され
る。
After incrementing the pixel count and the dot count (step ST808), the internal computer of encoder 200 checks whether or not the pixel line currently being encoded is at the end (step ST809). If it is a line end (step ST8)
09, Yes), the encoding conversion process 2 is performed (step ST810). If it is not the line end (NO in step ST809), the process returns to step ST804, and the processes in steps ST804 to ST808 are repeated.

【0178】ステップST810のエンコード変換処理
2が済むと、エンコーダ200内部のコンピュータは、
エンコード後のビット列が8ビットの整数倍(バイトア
ラインされた状態)であるかどうかチェックする(ステ
ップST811A)。バイトアラインされていなければ
(ステップST811Aノー)、エンコード後のビット
列の末尾に4ビットのダミーデータ(0000)が追加
される(ステップST811B)。このダミー追加処理
後、あるいはエンコード後のビット列がバイトアライン
されていれば(ステップST811Aイエス)、エンコ
ーダ内コンピュータのラインカウンタ(マイクロコンピ
ュータ内部の汎用レジスタなど)が+1インクリメント
される(ステップST812)。
When the encode conversion process 2 in step ST810 is completed, the computer inside the encoder 200
It is checked whether or not the encoded bit string is an integral multiple of 8 bits (in a byte-aligned state) (step ST811A). If it is not byte-aligned (NO in step ST811A), 4-bit dummy data (0000) is added to the end of the encoded bit string (step ST811B). If the bit string after the dummy addition processing or the encoded bit string is byte-aligned (Yes in step ST811A), the line counter of the computer in the encoder (such as a general-purpose register in the microcomputer) is incremented by +1 (step ST812).

【0179】ラインカウンタのインクリメント後、最終
ラインに到達していなければ(ステップST813ノ
ー)、ステップST803に戻り、ステップST803
〜ステップST812の処理が反復される。
If the last line has not been reached after the line counter has been incremented (NO in step ST813), the flow returns to step ST803, and step ST803 is executed.
To Step ST812 are repeated.

【0180】ラインカウンタのインクリメント後、最終
ラインに到達しておれば(ステップST813イエ
ス)、エンコード処理(ここでは2ビット画素データの
ビット列のランレングス圧縮)が終了する。
If the last line has been reached after the increment of the line counter (YES in step ST813), the encoding process (run-length compression of the bit string of 2-bit pixel data in this case) ends.

【0181】図14は、図13のエンコード変換処理1
の内容の一例を説明するフローチャートである。
FIG. 14 shows the encoding conversion processing 1 of FIG.
6 is a flowchart for explaining an example of the content of the above.

【0182】図13のエンコード変換処理1(ステップ
ST806)では、エンコード対象画素データが2ビッ
ト幅であることを想定しているので、図5のランレング
ス圧縮規則1〜6が適用される。
In the encoding conversion process 1 (step ST806) of FIG. 13, since it is assumed that the pixel data to be encoded has a 2-bit width, the run-length compression rules 1 to 6 of FIG. 5 are applied.

【0183】これらの規則1〜6に対応して、画素カウ
ント数が0(ステップST901)であるか、画素カウ
ント数が1〜3(ステップST902)であるか、画素
カウント数が4〜15(ステップST903)である
か、画素カウント数が16〜63(ステップST90
4)であるか、画素カウント数が64〜255(ステッ
プST905)であるか、画素カウント値がラインエン
ド(ステップST906)を示しているか、画素カウン
ト数が256以上であるか(ステップST907)の判
断が、コンピュータソフトウエアにより行われる。
According to these rules 1 to 6, whether the pixel count is 0 (step ST901), the pixel count is 1 to 3 (step ST902), or the pixel count is 4 to 15 (step ST902). Step ST903) or the pixel count number is 16 to 63 (step ST90).
4), whether the pixel count is 64 to 255 (step ST905), whether the pixel count indicates line end (step ST906), or whether the pixel count is 256 or more (step ST907). The determination is made by computer software.

【0184】エンコーダ200の内部コンピュータは、
上記判断結果に基づいて、ランフィールドのビット数
(同一種類の画素データの1単位長)を決定し(ステッ
プST908〜ステップST913)、副映像ユニット
ヘッダ31の後に、このランフィールドビット数分の領
域を確保する。こうして確保されたランフィールドに継
続画素数が出力され、画素フィールドに画素データが出
力され、エンコーダ200内部の記憶装置(図示せず)
に記録される(ステップST914)。
The internal computer of the encoder 200
Based on the above determination result, the number of bits of the run field (one unit length of the same type of pixel data) is determined (steps ST908 to ST913), and after the sub-picture unit header 31, the area corresponding to the number of runfield bits is determined. To secure. The number of continuous pixels is output to the run field secured in this way, the pixel data is output to the pixel field, and a storage device (not shown) inside the encoder 200
(Step ST914).

【0185】図15は、この発明の一実施の形態に係る
画像デコード(ランレングス伸張)を実行するものであ
って、たとえば図11あるいは図12マイクロコンピュ
ータ112により実行されるソフトウエアを説明するフ
ローチャートである。
FIG. 15 is a flowchart for executing image decoding (run-length decompression) according to an embodiment of the present invention. For example, FIG. 11 or FIG. 12 is a flowchart for explaining software executed by the microcomputer 112. It is.

【0186】また、図16は、図15のソフトウエアで
使用されるデコードステップ(ST1005)の内容の
一例を説明するフローチャートである。
FIG. 16 is a flowchart for explaining an example of the contents of the decoding step (ST1005) used in the software shown in FIG.

【0187】すなわち、マイクロコンピュータ112
は、ランレングス圧縮された副映像データ(画素データ
は2ビット構成)の初めのヘッダ31部分を読み込ん
で、その内容(図4参照)を解析する。そして、解析さ
れたヘッダの内容に基づいて、デコードされるがそうデ
ータのライン数およびドット数が指定される。これらラ
イン数およびドット数が指定されると(ステップST1
001)、ラインカウント数およびドットカウント数が
「0」に初期化される(ステップST1002〜ステッ
プST1003)。
That is, the microcomputer 112
Reads the first header 31 of the run-length-compressed sub-picture data (pixel data is composed of 2 bits) and analyzes the contents (see FIG. 4). Then, the number of lines and the number of dots of the data to be decoded are designated based on the analyzed contents of the header. When the number of lines and the number of dots are designated (step ST1)
001), the line count number and the dot count number are initialized to “0” (steps ST1002 to ST1003).

【0188】マイクロコンピュータ112は、副映像ユ
ニットヘッダ31の後に続くデータビット列を順次取り
込んで行き、ドット数およびドットカウント数を計数す
る。そしてドット数からドットカウント数を引き算し
て、継続画素数を算出する(ステップST1004)。
The microcomputer 112 sequentially takes in the data bit string following the sub-picture unit header 31 and counts the number of dots and the number of dot counts. Then, the number of dots is subtracted from the number of dots to calculate the number of continuous pixels (step ST1004).

【0189】こうして継続画素数が算出されると、マイ
クロコンピュータ112は、この継続画素数の値に応じ
てデコード処理を実行する(ステップST1005)。
When the number of continuous pixels is calculated in this manner, microcomputer 112 executes a decoding process according to the value of the number of continuous pixels (step ST1005).

【0190】ステップST1005のデコード処理後、
マイクロコンピュータ112はドットカウント数と継続
画素数とを加算し、これを新たなドットカウント数とす
る(ステップST1006)。
After the decoding processing in step ST1005,
The microcomputer 112 adds the dot count number and the continuous pixel number, and sets this as a new dot count number (step ST1006).

【0191】そして、マイクロコンピュータ112はデ
ータを順次とりこんではステップST1005のデコー
ド処理を実行し、累積したドットカウント数が初めに設
定したライン終了数(ラインエンドの位置)と一致した
とき、1ライン分のデータについてのデコード処理を終
了する(ステップST1007イエス)。
Then, the microcomputer 112 sequentially fetches the data and executes the decoding process in step ST1005. The decoding process for the data is ended (Yes in step ST1007).

【0192】次に、デコードしたデータがバイトアライ
ンされておれば(ステップST1008Aイエス)、ダ
ミーデータ分を取り除く(ステップST1008B)。
そしてラインカウント数を+1インクリメントし(ステ
ップST1009)、最終ラインに到達するまで(ステ
ップST1010ノー)、ステップST1002〜ステ
ップST1009の処理を反復する。最終ラインに到達
すれば(ステップST1010イエス)、デコードは終
了する。
Next, if the decoded data is byte-aligned (YES in step ST1008A), the dummy data is removed (step ST1008B).
Then, the line count number is incremented by +1 (step ST1009), and the processing of steps ST1002 to ST1009 is repeated until the last line is reached (No in step ST1010). If the last line has been reached (step ST1010: YES), decoding ends.

【0193】図15のデコード処理ステップST100
5の処理内容は、たとえば図16に示すようになってい
る。
Decoding processing step ST100 in FIG.
The processing content of No. 5 is, for example, as shown in FIG.

【0194】この処理では、初めから2ビットを取得し
ては、そのビットが「0」か否かを判定する織りを繰り
返す(ステップST1101〜ステップST110
9)。これにより、図5のランレングス圧縮規則1〜6
に対応した継続画素数、つまりラン連続数が決定される
(ステップST1110〜ステップST1113)。
In this process, after two bits are obtained from the beginning, weaving for determining whether the bit is "0" is repeated (steps ST1101 to ST110).
9). Thereby, the run length compression rules 1 to 6 in FIG.
Are determined (step ST1110 to step ST1113).

【0195】そしてラン連続数が決定された後、そのあ
とに続けて読み込んだ2ビットが画素パターン(画素デ
ータ;画素の色情報)とされる(ステップST111
4)。
After the number of consecutive runs is determined, two bits subsequently read are used as a pixel pattern (pixel data; pixel color information) (step ST111).
4).

【0196】画素データ(画素の色情報)が決まると、
インデックスパラメータ「i」を0とし(ステップST
1115)、パラメータ「i」がラン連続数と一致する
まで(ステップST1116)、2ビット画素パターン
を出力しては(ステップST1117)、パラメータ
「i」を+1インクリメントし(ステップST111
8)、同じ画素データの1単位分の出力を終えて、デコ
ード処理を終了する。
When pixel data (pixel color information) is determined,
The index parameter “i” is set to 0 (step ST
1115) Until the parameter “i” matches the continuous run number (step ST1116), the 2-bit pixel pattern is output (step ST1117), and the parameter “i” is incremented by +1 (step ST111).
8) After the output of one unit of the same pixel data is completed, the decoding process ends.

【0197】このように、この副映像データのデコード
方法によれば、副映像データのデコード処理が、数ビッ
トの判定処理とデータブロックの切り分け処理とデータ
ビットの計数処理だけという、簡単な処理で済む。この
ため、従来のMH符号化方法などで使用される大掛かり
なコード表は必要なくなり、エンコードされたビットデ
ータを元の画素情報にデコードする処理・構成が簡単に
なる。
As described above, according to the decoding method of the sub-picture data, the decoding processing of the sub-picture data is a simple process of only a judgment process of several bits, a process of separating data blocks, and a process of counting data bits. I'm done. For this reason, a large code table used in the conventional MH encoding method or the like is not required, and the processing and configuration for decoding the encoded bit data into the original pixel information is simplified.

【0198】なお、上記実施の形態では、データデコー
ド時に最大16ビットのビットデータを読み取れば、同
じ画素の1単位分の符号ビット長を決定できるものとし
たが、この符号ビット長はこれに限定されない。たとえ
ばこの符号ビット長は32ビットでも64ビットでもよ
い。ただしビット長が増えれば、その分容量の大きなデ
ータバッファが必要になる。
In the above embodiment, the code bit length for one unit of the same pixel can be determined by reading up to 16 bits of bit data at the time of data decoding. However, the code bit length is not limited to this. Not done. For example, the code bit length may be 32 bits or 64 bits. However, as the bit length increases, a data buffer having a larger capacity is required.

【0199】また、上記実施の形態では画素データ(画
素の色情報)を、たとえば16色のカラーパレットから
選択された3色の色情報としたが、これ以外に、色の3
原色(赤成分R、緑成分G、青成分B;または輝度信号
成分Y、クロマ赤信号成分Cr、クロマ青信号成分Cb
など)それぞれの振幅情報を、2ビットの画素データで
表現することもできる。つまり、画素データは特定種類
の色情報に限定されることはない。
In the above embodiment, the pixel data (color information of the pixel) is, for example, color information of three colors selected from a color palette of 16 colors.
Primary colors (red component R, green component G, blue component B; or luminance signal component Y, chroma red signal component Cr, chroma blue signal component Cb
Etc.) Each amplitude information can be represented by 2-bit pixel data. That is, the pixel data is not limited to a specific type of color information.

【0200】図17は、図11の変形例を示す。図11
ではマイクロコンピュータ112が符号化ヘッダを切り
出す操作をソフトウエア的に行っているが、図17で
は、符号化ヘッダの切り出し操作を、デコーダ101の
内部でハードウエア的に行っている。
FIG. 17 shows a modification of FIG. FIG.
In FIG. 17, the microcomputer 112 performs the operation of cutting out the encoded header by software, but in FIG. 17, the operation of cutting out the encoded header is performed by hardware inside the decoder 101.

【0201】すなわち、図17に示すように、ランレン
グス圧縮された副映像データSPDは、データI/O1
02を介して、デコーダ101内部のバスに送り込まれ
る。バスに送り込まれたデータSPDは、メモリ制御部
105を介してメモリ108へ送られ、そこに記憶され
る。また、デコーダ101の内部バスは、符号データ切
分部103と、継続コード長検知部106と、マイクロ
コンピュータ(MPUまたはCPU)112に繋がった
ヘッダ切出部113とに接続されている。
That is, as shown in FIG. 17, the run-length-compressed sub-picture data SPD is the data I / O1
02 is sent to the bus inside the decoder 101. The data SPD sent to the bus is sent to the memory 108 via the memory control unit 105, where it is stored. The internal bus of the decoder 101 is connected to the code data separating unit 103, the continuous code length detecting unit 106, and the header extracting unit 113 connected to the microcomputer (MPU or CPU) 112.

【0202】メモリ108から読み出された副映像デー
タの副映像ユニットヘッダ31は、ヘッダ切出部113
により読み取られる。切出部113は、読み出したヘッ
ダ31から、図4に示す各種パラメータに基づいて、ア
ドレス制御部109にデコード開始アドレス(SPDD
ADR)を設定し、表示有効許可部110に副映像の表
示開始位置と表示幅と表示高との情報(SPDSIZ
E)を設定し、符号データ切分部103に副映像の表示
幅(ライン上のドット数)を設定する。設定された各種
情報は各部(109、110、103)の内部レジスタ
に保存される。それ以後、レジスタに保存された各種情
報は、マイクロコンピュータ112によりアクセスでき
るようになる。
The sub-picture unit header 31 of the sub-picture data read from the memory 108
Is read by The cutout unit 113 sends the decoding start address (SPDD) to the address control unit 109 based on the various parameters shown in FIG.
ADR) is set, and information (SPDSIZ) of the display start position, the display width, and the display height of the sub-image is set in the display valid
E) is set, and the display width (the number of dots on a line) of the sub-picture is set in the code data separating unit 103. The set various information is stored in an internal register of each unit (109, 110, 103). Thereafter, the various information stored in the register can be accessed by the microcomputer 112.

【0203】アドレス制御部109は、レジスタに設定
されたデコード開始アドレス(SPDDADR)に基づ
き、メモリ制御部105を介しメモリ108にアクセス
して、デコードしようとする副映像データの読み出しを
開始する。こうしてメモリ108から読み出された副映
像データは、符号データ切出部103および継続コード
長検知部106に与えられる。
The address control unit 109 accesses the memory 108 via the memory control unit 105 based on the decode start address (SPDDDR) set in the register, and starts reading sub-picture data to be decoded. The sub-picture data thus read from the memory 108 is supplied to the code data cutout unit 103 and the continuous code length detection unit 106.

【0204】ランレングス圧縮された副映像データSP
Dの符号化ヘッダ(図5の規則2〜5では2〜14ビッ
ト)は継続コード長検知部106により検出され、デー
タSPD内における同一画素データの継続画素数が継続
コード長検知部106からの信号を基にラン長設定部1
07により検出される。
[0204] Run-length compressed sub-picture data SP
The coded header of D (2 to 14 bits in rules 2 to 5 in FIG. 5) is detected by the continuation code length detection unit 106, and the number of continuation pixels of the same pixel data in the data SPD is determined by the continuation code length detection unit 106. Run length setting unit 1 based on signal
07.

【0205】以下、図17〜図21を参照しながら、図
15および図16を用いて説明したデコード方法とは別
のデコード方法を説明する。
Hereinafter, a decoding method different from the decoding method described with reference to FIGS. 15 and 16 will be described with reference to FIGS.

【0206】図18は、この発明の他実施の形態に係る
画像デコード(ランレングス伸張)処理の前半を説明す
るフローチャートである。
FIG. 18 is a flowchart for explaining the first half of the image decoding (run-length decompression) process according to another embodiment of the present invention.

【0207】デコードを開始する場合、図17のデコー
ダ101内部の各ブロックは初期化(レジスタのクリ
ア、カウンタのリセットなど)される。その後、副映像
ユニットヘッダ31が読み取られ、その内容(図4の各
種パラメータ)がヘッダ切分部113の内部レジスタに
セットされる(ステップST1200)。
When decoding is started, each block in the decoder 101 in FIG. 17 is initialized (clearing a register, resetting a counter, etc.). Thereafter, the sub-picture unit header 31 is read, and its contents (various parameters in FIG. 4) are set in the internal register of the header separation unit 113 (step ST1200).

【0208】ヘッダ切分部113のレジスタにヘッダ3
1の各種パラメータがセットされると、ヘッダ31の読
み取りが終了したステータスが、マイクロコンピュータ
112に通知される(ステップST1201)。
The header 3 is stored in the register of the header separating unit 113.
When the various parameters 1 are set, the microcomputer 112 is notified of the status in which the reading of the header 31 has been completed (step ST1201).

【0209】マイクロコンピュータ112は、ヘッダ読
取終了ステータスを受けると、デコード開始ライン(た
とえば図4のSPLine1)を指定し、その開始ライ
ンをヘッダ切分部113に通知する(ステップST12
02)。
Upon receiving the header reading end status, the microcomputer 112 specifies a decoding start line (for example, SPLine1 in FIG. 4) and notifies the header separation unit 113 of the start line (step ST12).
02).

【0210】ヘッダ切分部113は、指定されたデコー
ド開始ラインの通知を受けると、自分のレジスタにセッ
トされているヘッダ31の各種パラメータに基づいて、
指定されたデコード開始ラインのアドレス(図4のSP
DDADR)およびデコード終了アドレス(図4のSP
EDADR;開始ラインアドレスから相対的に1ライン
分シフトしたアドレス)がアドレス制御部109にセッ
トされ、デコードされた副映像の表示開始位置と表示幅
と表示高と(図4のSPDSIZE)が表示有効許可部
110にセットされ、表示幅の値(LNEPIX;図4
では図示されていないがSPDSIZEに含まれている
1ライン分の画素数)が符号データ切分部103にセッ
トされる(ステップST1203)。
Upon receiving the notification of the designated decoding start line, the header separating section 113 performs, based on various parameters of the header 31 set in its own register,
The address of the designated decode start line (SP in FIG. 4)
DDADD) and decoding end address (SP in FIG. 4)
EDADR; an address relatively shifted by one line from the start line address) is set in the address control unit 109, and the display start position, display width and display height of the decoded sub-picture and SPDSIZE in FIG. 4 is set in the permission unit 110 and the value of the display width (LNEPIX; FIG.
Although not shown, the number of pixels for one line included in SPDSIZE) is set in the code data separating unit 103 (step ST1203).

【0211】アドレス制御部109は、デコードアドレ
スをメモリ制御部105に送る。すると、デコードしよ
うとするデータ(圧縮された副映像データSPD)が、
メモリ制御部105を介して、メモリ108から符号化
データ切分部103および継続コード長検知部106
に、読み出される。その際、読み出されたデータは、バ
イト単位で、切分部103および検知部106それぞれ
の内部レジスタにセットされる(ステップST120
4)。
[0211] The address control unit 109 sends the decode address to the memory control unit 105. Then, the data to be decoded (compressed sub-picture data SPD)
The encoded data separation unit 103 and the continuation code length detection unit 106 are transferred from the memory 108 via the memory control unit 105.
Is read out. At this time, the read data is set in the internal register of each of the dividing unit 103 and the detecting unit 106 in byte units (step ST120).
4).

【0212】継続コード長検知部106は、メモリ10
8から読み出されてきたデータの”0”ビットの数をカ
ウントし、そのカウント値から、図5の規則1〜5のい
ずれかに該当する符号化ヘッダを検知する(ステップS
T1205)。この符号化ヘッダ検知の詳細は、図20
を参照して後述する。
The continuation code length detection unit 106
8, the number of “0” bits of the data read out is counted, and from the count value, an encoded header corresponding to one of rules 1 to 5 in FIG. 5 is detected (step S).
T1205). Details of this encoding header detection are shown in FIG.
It will be described later with reference to FIG.

【0213】継続コード長検知部106は、検知した符
号化ヘッダの値にしたがって、図5の規則1〜5のいず
れかの規則に対応した切分情報SEP.INFO.を生
成する(ステップST1206)。
[0213] The continuation code length detection unit 106 determines the segment information SEP.5 corresponding to any one of the rules 1 to 5 in FIG. 5 according to the value of the detected coded header. INFO. Is generated (step ST1206).

【0214】たとえば、メモリ108から読み出されて
きたデータの”0”ビットのカウント値がゼロなら規則
1を示す切分情報SEP.INFO.が生成され、この
カウント値が2なら規則2を示す切分情報SEP.IN
FO.が生成され、このカウント値が4なら規則3を示
す切分情報SEP.INFO.が生成され、このカウン
ト値が6なら規則4を示す切分情報SEP.INFO.
が生成され、このカウント値が14なら規則5を示す切
分情報SEP.INFO.が生成される。こうして生成
された切分情報SEP.INFO.は、符号化データ切
分部103に転送される。
For example, if the count value of the “0” bit of the data read from the memory 108 is zero, the segment information SEP. INFO. Is generated, and if the count value is 2, the segment information SEP. IN
FO. Is generated, and if the count value is 4, the segment information SEP. INFO. Is generated, and if the count value is 6, the segment information SEP. INFO.
Is generated, and if the count value is 14, the segment information SEP. INFO. Is generated. The segment information SEP. INFO. Is transferred to the encoded data separation unit 103.

【0215】符号化データ切分部103は、継続コード
長検知部106からの切分情報SEP.INFO.の内
容にしたがって、継続画素数(PIXCNT;ラン情
報)をラン長設定部107にセットするとともに、継続
画素数データのあとに続く2ビット画素データ(画素色
データ;副映像データパケットから切り分けられたデー
タ)を、画素色出力部104にセットする。このとき、
切分部103の内部では、画素カウンタ(図示せず)の
現カウント値NOWPIXが、継続画素数PIXCNT
の分だけインクリメントされる(ステップST120
7)。
[0215] The coded data separation unit 103 receives the separation information SEP. INFO. Is set in the run length setting unit 107 according to the content of (2), and the 2-bit pixel data (pixel color data; sub-picture data packet) following the continuous pixel number data is set. Data) is set in the pixel color output unit 104. At this time,
Inside the dividing unit 103, the current count value NOWPIX of the pixel counter (not shown) is equal to the continuous pixel number PIXCNT.
(Step ST120).
7).

【0216】図19は、この発明の他実施の形態に係る
画像デコード(ランレングス伸張)処理の後半(図18
のノードA以降)を説明するフローチャートである。
FIG. 19 shows the second half (FIG. 18) of the image decoding (run-length decompression) process according to another embodiment of the present invention.
9 is a flowchart for explaining the operation after the node A).

【0217】先行ステップST1203において、符号
化データ切分部103には、ヘッダ切分部113から、
副映像の表示幅に対応した1ライン分の画素データ数
(ドット数)LNEPIXが通知されている。符号化デ
ータ切分部103では、その内部画素カウンタの値NO
WPIXが通知された1ライン分画素データ数LNEP
IXを超えているかどうか、チェックされる(ステップ
ST1208)。
In the preceding step ST1203, the encoded data separating section 103 receives the
The number of pixel data (number of dots) LNEPIX for one line corresponding to the display width of the sub-picture is notified. In the encoded data separation unit 103, the value NO of the internal pixel counter
Number of pixel data LNEP for one line notified of WPIX
It is checked whether IX has been exceeded (step ST1208).

【0218】このステップにおいて、画素カウンタ値N
OWPIXが1ライン分画素データ数LNEPIX以上
になっているときは(ステップST1208ノー)、1
バイト分のデータがセットされていた切分部103の内
部レジスタがクリアされ、画素カウンタ値NOWPIX
がゼロになる(ステップST1209)。このとき、バ
イトアラインされている場合には、4ビットのデータが
切り捨てられることになる。画素カウンタ値NOWPI
Xが1ライン分画素データ数LNEPIXよりも小さい
ときは(ステップST1208イエス)、切分部103
の内部レジスタはクリアされずそのままとなる。
In this step, the pixel counter value N
When OWPIX is equal to or greater than the pixel data number LNEPIX for one line (No in step ST1208), 1
The internal register of the separating unit 103 in which the data for the byte has been set is cleared, and the pixel counter value NOWPIX is cleared.
Becomes zero (step ST1209). At this time, if the data is byte-aligned, 4-bit data is truncated. Pixel counter value NOWPI
When X is smaller than the number of pixel data LNEPIX for one line (YES in step ST1208), the dividing unit 103
Is not cleared and remains as it is.

【0219】ラン長設定部107は、先行ステップST
1207でセットされた継続画素数PIXCNT(ラン
情報)と、画素ドットの転送レートを決めるドットクロ
ックDOTCLKと、副映像を主映像の表示画面に同期
させる水平および垂直同期信号H−SYNCおよびVー
SYNCとから、画素色出力部104にセットされた画
素データを必要な期間出力させるための表示期間信号
(PERIOD SIGNAL)を生成する。生成され
た表示期間信号は、画素色出力部104に与えられる
(ステップST1210)。
The run length setting section 107 sets the preceding step ST
The number of continuous pixels PIXCNT (run information) set in 1207, the dot clock DOTCLK for determining the transfer rate of the pixel dots, the horizontal and vertical synchronization signals H-SYNC and V-SYNC for synchronizing the sub-picture with the main picture display screen Thus, a display period signal (PERIOD SIGNAL) for outputting the pixel data set in the pixel color output unit 104 for a required period is generated. The generated display period signal is provided to pixel color output section 104 (step ST1210).

【0220】画素色出力部104は、ラン長設定部10
7から表示期間信号が与えられている間、先行ステップ
ST1207においてセットされた切分データ(たとえ
ば画素色を示す画素データ)を、デコードされた副映像
の表示データとして出力する(ステップST121
1)。
The pixel color output unit 104 is provided with the run length setting unit 10
7, while the display period signal is being given, the segment data (eg, pixel data indicating the pixel color) set in the preceding step ST1207 is output as decoded sub-video display data (step ST121).
1).

【0221】こうして出力された副映像表示データは、
後に、図示しない回路部分において適宜主映像の画像に
合成され、図示しないTVモニタにおいて表示されるこ
とになる。
The sub-picture display data thus output is:
Later, the image is combined with the main video image appropriately in a circuit portion (not shown) and displayed on a TV monitor (not shown).

【0222】ステップST1211の画素データ出力処
理後、デコードデータが終了していなければ、図18の
ステップST1204に戻る(ステップST1212ノ
ー)。
After the pixel data output process in step ST1211, if the decoded data is not completed, the process returns to step ST1204 in FIG. 18 (No in step ST1212).

【0223】デコードデータが終了しているかどうか
は、ヘッダ切分部113によりセットされた副映像表示
データの終了アドレス(SPEDADR)までのデータ
が符号化データ切分部103において処理され終わった
かどうかで判定できる。
Whether the decoded data has been completed depends on whether or not the data up to the end address (SPEDAD) of the sub-picture display data set by the header separating unit 113 has been processed in the encoded data separating unit 103. Can be determined.

【0224】データのデコードが終了したならば(ステ
ップST1212イエス)、表示有効許可部110から
の表示許可信号(DISPLAY ENABLE)がア
クティブかどうかチェックされる。表示有効許可部11
0は、アドレス制御部109からデータ終了信号(DA
TA END SIGNAL)が送られてくるまでは、
アクティブ状態(たとえばハイレベル)の表示許可信号
を発生している。
When data decoding is completed (step ST1212: YES), it is checked whether or not the display permission signal (DISPLAY ENABLE) from display validity permitting section 110 is active. Display validity permitting unit 11
0 is a data end signal (DA
Until TA END SIGNAL is sent,
An active (for example, high level) display permission signal is generated.

【0225】表示許可信号がアクティブであれば、デー
タデコードが終了しているにも拘わらずまだ表示期間中
であると判定される(ステップST1213イエス)。
この場合は、表示有効許可部110はラン長設定部10
7および画素色出力部104へ色切換信号を送る(ステ
ップST1214)。
If the display permission signal is active, it is determined that the display period is still in spite of the completion of the data decoding (YES in step ST1213).
In this case, the display validity permitting unit 110 sets the run length setting unit 10
7 and a color switching signal to the pixel color output unit 104 (step ST1214).

【0226】このとき、画素色出力部104は不足画素
色設定部111から不足画素色データを受け取ってい
る。表示有効許可部110から色切換信号を受信した画
素色出力部104は、出力する画素色データを、不足画
素色設定部111からの不足画素色データに切り換える
(ステップST1215)。すると、表示許可信号がア
クティブの間(ステップST1213〜ステップST1
215のループ)、デコードデータが存在しない副映像
の表示期間中は、不足画素色設定部111が提供する不
足画素色で、副映像の表示エリアが埋められる。
At this time, the pixel color output unit 104 has received the missing pixel color data from the missing pixel color setting unit 111. The pixel color output unit 104 that has received the color switching signal from the display validity permitting unit 110 switches the output pixel color data to the insufficient pixel color data from the insufficient pixel color setting unit 111 (step ST1215). Then, while the display permission signal is active (step ST1213 to step ST1)
(Loop 215), during the display period of the sub-picture where there is no decoded data, the display area of the sub-picture is filled with the missing pixel color provided by the missing pixel color setting unit 111.

【0227】表示許可信号が非アクティブであれば、デ
コードされた副映像の表示期間が終了したと判定される
(ステップST1213ノー)。すると、表示有効許可
部110は、1フレーム分の副映像デコードが終了した
ことを示すエンドステータスを、マイクロコンピュータ
112に転送する(ステップST1216)。こうし
て、1画面(1フレーム)分の副映像デコード処理が終
了する。
If the display permission signal is inactive, it is determined that the display period of the decoded sub-picture has ended (No in step ST1213). Then, display validity permitting section 110 transfers an end status indicating that the decoding of one frame of sub-picture has been completed to microcomputer 112 (step ST1216). Thus, the sub-picture decoding process for one screen (one frame) is completed.

【0228】図20は、図18の符号化ヘッダ検出ステ
ップ(ST1205)の内容の一例を説明するフローチ
ャートである。この符号化ヘッダ検出処理は、図17
(または図11)の継続コード長検知部106により、
実行される。
FIG. 20 is a flowchart for explaining an example of the contents of the coded header detection step (ST1205) of FIG. This coded header detection process is performed as shown in FIG.
(Or FIG. 11) by the continuation code length detection unit 106
Be executed.

【0229】まず、継続コード長検知部106が初期化
され、その内部のステータスカウンタ(STSCNT)
がゼロにセットされる(ステップST1301)。その
後、メモリ108からバイト単位で検知部106に読み
込まれているデータの後続2ビット分の内容がチェック
される。この2ビットの内容が”00”であれば(ステ
ップST1302イエス)、カウンタSTSCNTが1
つインクリメントされる(ステップST1303)。チ
ェックした2ビットが、検知部106に読み込まれてい
る1バイトの終わりに達していなければ(ステップST
1304ノー)、さらに後続2ビット分の内容がチェッ
クされる。この2ビットの内容が”00”であれば(ス
テップST1302イエス)、カウンタSTSCNTが
さらに1つインクリメントされる(ステップST130
3)。
First, the continuation code length detector 106 is initialized, and its internal status counter (STSCNT)
Is set to zero (step ST1301). Thereafter, the contents of the following two bits of the data read from the memory 108 to the detection unit 106 in byte units are checked. If the contents of these two bits are "00" (step ST1302: YES), the counter STSCNT is set to 1
Is incremented by one (step ST1303). If the checked two bits do not reach the end of one byte read by the detection unit 106 (step ST
1304 No), the contents of the subsequent two bits are checked. If the contents of these two bits are "00" (step ST1302: YES), the counter STSCNT is further incremented by one (step ST130).
3).

【0230】ステップST1302〜ステップST13
04のループが反復された結果、ステップST1302
でチェックした後続2ビットが検知部106に読み込ま
れている1バイトの終わりに達していたときは(ステッ
プST1304イエス)、図5の符号化ヘッダが6ビッ
トより大であることになる。この場合は、メモリ108
から検知部106に次のデータバイトが読み込まれ(ス
テップST1305)、ステータスカウンタSTSCN
Tが”4”にセットされる(ステップST1307)。
このとき同時に、符号化データ切分部103にも、同じ
データが1バイト読み込まれる。
Steps ST1302 to ST13
As a result of the loop 04 being repeated, step ST1302
If the subsequent two bits checked in step have reached the end of one byte read by the detection unit 106 (YES in step ST1304), the encoded header in FIG. 5 is larger than 6 bits. In this case, the memory 108
, The next data byte is read by the detection unit 106 (step ST1305), and the status counter STSCN is read.
T is set to "4" (step ST1307).
At this time, one byte of the same data is read into the encoded data separation unit 103 at the same time.

【0231】ステータスカウンタSTSCNTが”4”
にセットされたあと、あるいは先行ステップST130
2においてチェックされた2ビット分の内容が”00”
でなければ(ステップST1302ノー)、ステータス
カウンタSTSCNTの内容が確定し、その内容が図5
の符号化ヘッダの内容として出力される(ステップST
1307)。
When the status counter STSCNT is "4"
, Or in the preceding step ST130
The contents of the two bits checked in 2 are “00”
If not (NO in step ST1302), the contents of the status counter STSCNT are determined, and the contents are
Is output as the contents of the coded header (step ST
1307).

【0232】すなわち、ステータスカウンタSTSCN
T=”0”であれば図5の規則1を示す符号化ヘッダが
検出され、ステータスカウンタSTSCNT=”1”で
あれば図5の規則2を示す符号化ヘッダが検出され、ス
テータスカウンタSTSCNT=”2”であれば図5の
規則3を示す符号化ヘッダが検出され、ステータスカウ
ンタSTSCNT=”3”であれば図5の規則4を示す
符号化ヘッダが検出され、ステータスカウンタSTSC
NT=”4”であれば図5の規則5(ラインの終わりま
で同一画素データが連続する場合)を示す符号化ヘッダ
が検出される。
That is, the status counter STSCN
If T = "0", an encoded header indicating rule 1 in FIG. 5 is detected, and if the status counter STSCNT = "1", an encoded header indicating rule 2 in FIG. 5 is detected, and the status counter STSCNT = If "2", an encoded header indicating rule 3 in FIG. 5 is detected, and if the status counter STSCNT = "3", an encoded header indicating rule 4 in FIG. 5 is detected, and the status counter STSC
If NT = “4”, an encoded header indicating rule 5 in FIG. 5 (when the same pixel data continues until the end of the line) is detected.

【0233】図21は、デコードされた画像がスクロー
ルされる場合において、この発明の画像デコード処理が
どのようになされるかを説明するフローチャートであ
る。
FIG. 21 is a flowchart for explaining how the image decoding process of the present invention is performed when the decoded image is scrolled.

【0234】まず、図11または図17のデコーダ10
1内部の各ブロックが初期化され、図示しないラインカ
ウンタLINCNTがゼロクリアされる(ステップST
1401)。次に、マイクロコンピュータ112(図1
1)またはヘッダ切分部113(図17)は、図18の
ステップST1201で送出されたヘッダ読取終了ステ
ータスを受け取る(ステップST1402)。
First, the decoder 10 shown in FIG.
1 are initialized, and a line counter LINCNT (not shown) is cleared to zero (step ST).
1401). Next, the microcomputer 112 (FIG. 1)
1) or the header separation unit 113 (FIG. 17) receives the header reading end status transmitted in step ST1201 of FIG. 18 (step ST1402).

【0235】ラインカウンタLINCNTの内容(初め
はゼロ)は、マイクロコンピュータ112(図11)ま
たはヘッダ切分部113(図17)に転送される(ステ
ップST1403)。マイクロコンピュータ112また
はヘッダ切分部113は、受け取ったステータスが1フ
レーム(1画面)の終了ステータス(ステップST12
06)であるかどうかチェックする(ステップST14
04)。
The contents (initially zero) of line counter LINCNT are transferred to microcomputer 112 (FIG. 11) or header separation section 113 (FIG. 17) (step ST1403). The microcomputer 112 or the header separating unit 113 determines that the received status is the end status of one frame (one screen) (step ST12).
06) (step ST14).
04).

【0236】受け取ったステータスが1フレームの終了
ステータスでなければ(ステップST1405ノー)、
この終了ステータスが来るまで待機する。受け取ったス
テータスが1フレームの終了ステータスであれば(ステ
ップST1405イエス)、ラインカウンタLINCN
Tが1つインクリメントされる(ステップST140
6)。
If the received status is not the end status of one frame (NO in step ST1405),
Wait for this exit status. If the received status is the end status of one frame (YES in step ST1405), the line counter LINCN
T is incremented by one (step ST140)
6).

【0237】インクリメントされたラインカウンタLI
NCNTの内容がラインの終わりに達していなければ
(ステップST1407ノー)、図15〜図16のデコ
ード処理、あるいは図18〜図19のデコード処理が再
開され(ステップST1408)、ステップST140
3に戻る。このデコードの反復ループ(ステップST1
403〜ステップST1408)が反復されることによ
り、ランレングス圧縮された副映像がデコードされなが
らスクロールされるようになる。
The incremented line counter LI
If the content of the NCNT has not reached the end of the line (NO in step ST1407), the decoding processing in FIGS. 15 to 16 or the decoding processing in FIGS. 18 to 19 is restarted (step ST1408), and step ST140 is performed.
Return to 3. This decoding iteration loop (step ST1)
By repeating steps 403 to ST1408), the run-length compressed sub-picture is scrolled while being decoded.

【0238】一方、インクリメントされたラインカウン
タLINCNTの内容がラインの終わりに達していると
きは(ステップST1407イエス)、スクロールを伴
う副映像データのデコード処理は終了する。
On the other hand, when the incremented content of line counter LINCNT has reached the end of the line (YES in step ST1407), the decoding process of the sub-picture data with scrolling ends.

【0239】図22は、この発明に基づくエンコードお
よびデコードが実行される光ディスク記録再生装置の概
要を説明するブロック図である。
FIG. 22 is a block diagram illustrating an outline of an optical disk recording / reproducing apparatus in which encoding and decoding are performed according to the present invention.

【0240】図22において、光ディスクプレーヤ30
0は、基本的には従来の光ディスク再生装置(コンパク
トディスクプレーヤあるいはレーザディスクプレーヤ)
と同様な構成を持つ。ただし、この光ディスクプレーヤ
300は、挿入された光ディスクOD(この発明に基づ
きランレングス圧縮された副映像データを含む画像情報
が記録されたもの)から、ランレングス圧縮された画像
情報をデコードする前のデジタル信号(エンコードされ
たままのデジタル信号)を出力できるようになってい
る。このエンコードされたままのデジタル信号は圧縮さ
れているので、必要な伝送帯域幅は非圧縮データを伝送
する場合に比べて少なくて良い。
In FIG. 22, the optical disk player 30
0 is basically a conventional optical disk reproducing device (compact disk player or laser disk player)
It has the same configuration as. However, the optical disc player 300 is configured to decode the run-length-compressed image information from the inserted optical disc OD (recording image information including sub-video data that has been run-length compressed according to the present invention). A digital signal (a digital signal as encoded) can be output. Since this encoded digital signal is compressed, the required transmission bandwidth may be smaller than in the case of transmitting uncompressed data.

【0241】光ディスクプレーヤ300からの圧縮デジ
タル信号は変調器/送信器210を介してオンエアさ
れ、または通信ケーブルに送出される。
[0241] The compressed digital signal from the optical disk player 300 is sent on-air via the modulator / transmitter 210 or sent out to a communication cable.

【0242】オンエアされた圧縮デジタル信号、あるい
はケーブル送信された圧縮デジタル信号は、受信者ある
いはケーブル加入者の受信器/復調器400により、受
信される。この受信器400は、たとえば図11あるい
は図17に示すような構成のデコーダ101を備えてい
る。受信器400のデコーダ101は、受信し復調した
圧縮デジタル信号をデコードして、エンコードされる前
の原副映像データを含む画像情報を出力する。
The compressed digital signal that has been aired or the compressed digital signal that has been transmitted by cable is received by the receiver / demodulator 400 of the receiver or cable subscriber. The receiver 400 includes the decoder 101 having a configuration as shown in FIG. 11 or FIG. The decoder 101 of the receiver 400 decodes the received and demodulated compressed digital signal, and outputs image information including original sub-video data before being encoded.

【0243】図22の構成において、送受信の伝送系が
およそ5Mビット/秒以上の平均ビットレートを持つも
のであれば、高品位なマルチメディア映像・音声情報の
放送ができる。
In the configuration shown in FIG. 22, if the transmission / reception transmission system has an average bit rate of about 5 Mbit / s or more, high-quality multimedia video / audio information can be broadcast.

【0244】図23は、この発明に基づきエンコードさ
れた画像情報が、通信ネットワーク(インターネットな
ど)を介して、任意の2コンピュータユーザ間で送受さ
れる場合を説明するブロック図である。
FIG. 23 is a block diagram illustrating a case where image information encoded according to the present invention is transmitted and received between any two computer users via a communication network (such as the Internet).

【0245】図示しないホストコンピュータで管理する
自己情報#1を持つユーザ#1はパーソナルコンピュー
タ5001を所有しており、このパーソナルコンピュー
タ5001には、種々な入出力機器5011および種々
な外部記憶装置5021が接続されている。また、この
パーソナルコンピュータ5001の内部スロット(図示
せず)には、この発明に基づくエンコーダおよびデコー
ダが組み込まれ、通信に必要な機能を持つモデムカード
5031が装着されている。
User # 1 having self-information # 1 managed by a host computer (not shown) owns personal computer 5001, and this personal computer 5001 has various input / output devices 5011 and various external storage devices 5021. It is connected. An encoder and a decoder according to the present invention are incorporated in an internal slot (not shown) of the personal computer 5001, and a modem card 5031 having a function required for communication is mounted.

【0246】同様に、別の自己情報#Nを持つユーザ#
Nはパーソナルコンピュータ500Nを所有しており、
このパーソナルコンピュータ500Nには、種々な入出
力機器501Nおよび種々な外部記憶装置502Nが接
続されている。また、このパーソナルコンピュータ50
0Nの内部スロット(図示せず)には、この発明に基づ
くエンコーダおよびデコーダが組み込まれ、通信に必要
な機能を持つモデムカード503Nが装着されている。
Similarly, user # having another self information #N
N owns a personal computer 500N,
Various input / output devices 501N and various external storage devices 502N are connected to the personal computer 500N. In addition, the personal computer 50
An encoder and a decoder according to the present invention are incorporated in an internal slot (not shown) of 0N, and a modem card 503N having a function required for communication is mounted.

【0247】いま、あるユーザ#1がコンピュータ50
01を操作し、インターネットなどの回線600を介し
て別のユーザ#Nのコンピュータ500Nと通信を行な
う場合を想定してみる。この場合、ユーザ#1およびユ
ーザ#Nは双方ともエンコーダおよびデコーダが組み込
まれたモデムカード5031および503Nを持ってい
るので、この発明により効率よく圧縮された画像データ
を短時間で交換できる。
Now, a certain user # 1 has a computer 50
It is assumed that the user operates No. 01 to communicate with the computer 500N of another user #N via the line 600 such as the Internet. In this case, since both user # 1 and user #N have modem cards 5031 and 503N in which an encoder and a decoder are incorporated, the present invention can efficiently exchange compressed image data in a short time.

【0248】図24は、この発明に基づきエンコードさ
れた画像情報を光ディスクODに記録し、記録された情
報をこの発明に基づきデコードする記録再生装置の概要
を示している。
FIG. 24 shows an outline of a recording and reproducing apparatus for recording image information encoded according to the present invention on an optical disk OD and decoding the recorded information according to the present invention.

【0249】図24のエンコーダ200は、図10のエ
ンコーダ200と同様なエンコード処理(図13〜図1
4に対応する処理)を、ソフトウエアあるいはハードウ
エア(ファームウエアあるいはワイアードロジック回路
を含む)で実行するように構成されている。
The encoder 200 shown in FIG. 24 performs the same encoding processing as the encoder 200 shown in FIG.
4) is executed by software or hardware (including firmware or a wired logic circuit).

【0250】エンコーダ200でエンコードされた副映
像データその他を含む記録信号は、変調器/レーザドラ
イバ702において、たとえば(2、7)RLL変調さ
れる。変調された記録信号は、レーザドライバ702か
ら光ヘッド704の高出力レーザダイオードに送られ
る。この光ヘッド704からの記録用レーザにより、記
録信号に対応したパターンが、光磁気記録ディスクまた
は相変化光ディスクODに、書き込まれる。
The recording signal including the sub-picture data and the like encoded by the encoder 200 is subjected to, for example, (2, 7) RLL modulation in the modulator / laser driver 702. The modulated recording signal is sent from the laser driver 702 to the high-power laser diode of the optical head 704. By the recording laser from the optical head 704, a pattern corresponding to the recording signal is written on the magneto-optical recording disk or the phase-change optical disk OD.

【0251】ディスクODに書き込まれた情報は、光ヘ
ッド706のレーザピックアップにより読み取られ、復
調器/エラー訂正部708において復調され、かつ必要
に応じてエラー訂正処理を受ける。復調されエラー訂正
された信号は、音声/映像用データ処理部710におい
て種々なデータ処理を受けて、記録前の情報が再生され
る。
The information written on the disk OD is read by the laser pickup of the optical head 706, demodulated by the demodulator / error correction unit 708, and subjected to error correction processing as needed. The demodulated and error-corrected signal undergoes various data processing in the audio / video data processing unit 710, and the information before recording is reproduced.

【0252】このデータ処理部710は、図11のデコ
ーダ101に対応するデコード処理部を含んでいる。こ
のデコード処理部により、図15〜図16に対応するデ
コード処理(圧縮された副映像データの伸張)が実行さ
れる。
The data processing section 710 includes a decoding processing section corresponding to the decoder 101 in FIG. The decoding unit (decompression of the compressed sub-picture data) corresponding to FIGS. 15 and 16 is executed by the decoding processing unit.

【0253】図25は、この発明に基づくエンコーダが
その周辺回路とともにIC化された状態を例示してい
る。
FIG. 25 exemplifies a state in which an encoder according to the present invention is integrated into an IC together with its peripheral circuits.

【0254】図26は、この発明に基づくデコーダがそ
の周辺回路とともにIC化された状態を例示している。
FIG. 26 exemplifies a state in which the decoder according to the present invention is integrated into an IC together with its peripheral circuits.

【0255】図27は、この発明に基づくエンコーダお
よびデコーダがその周辺回路とともにIC化された状態
を例示している。
FIG. 27 exemplifies a state in which an encoder and a decoder according to the present invention are integrated with their peripheral circuits in an IC.

【0256】つまり、この発明に基づくエンコーダまた
はデコーダは、必要な周辺回路とともにIC化でき、こ
のICは種々な機器に組み込まれてこの発明を実施する
ことができるようになる。
That is, the encoder or decoder according to the present invention can be integrated with necessary peripheral circuits into an IC, and this IC can be incorporated in various devices to implement the present invention.

【0257】なお、図9に例示したような圧縮後のデー
タ(PXD)のビット列が乗るデータラインは、通常は
TV表示画面の水平走査線の1本分の画像情報を含むよ
うに構成される。しかし、このデータラインは、TV画
面の水平走査線の複数本分の画像情報を含むように構成
すること、あるいはTV画面の1画面分の水平走査線全
て(つまり1フレーム分)の画像情報を含むように構成
することもできる。
The data line on which the bit string of the compressed data (PXD) as illustrated in FIG. 9 is normally configured to include image information for one horizontal scanning line of the TV display screen. . However, this data line may be configured to include image information for a plurality of horizontal scanning lines on the TV screen, or may be configured to include image information for all horizontal scanning lines for one TV screen (that is, one frame). It can also be configured to include.

【0258】この発明の圧縮規則に基づくデータエンコ
ードの対象は、明細書説明で用いた副映像データ(3〜
4色の色情報)に限定されない。副映像データを構成す
る画素データ部分を多ビット化し、ここに種々な情報を
詰め込んでもよい。たとえば、画素データを画素1ドッ
トあたり8ビット構成とすると、副映像だけで256色
のカラー映像を(主映像の他に)伝送できる。
The object of data encoding based on the compression rule of the present invention is the sub-picture data (3 to 3) used in the description.
(Color information of four colors). The pixel data portion constituting the sub-picture data may be multi-bit, and various information may be packed therein. For example, if the pixel data is composed of 8 bits per pixel, 256 color images (in addition to the main image) can be transmitted using only the sub image.

【0259】[0259]

【発明の効果】以上説明したように、この発明によれ
ば、1ライン分のデータを読み込んでからデコード処理
するのではなく、ビット毎にデータを取り込む毎にその
ビットデータの構成を複数の圧縮規則に適合させて、小
さな単位でデータをデコードして行く。このため、この
発明によれば、MH符号化法のようにデコーダ内に大掛
かりな符号表を持つ必要がなくなる。また、算術符号化
法のようにエンコード時にデータを2度読みする必要が
ない。さらに、デコーダ側はビットデータを計数する簡
単なカウンタがあればよく、デコードに際し算術符号化
法のような掛算器を必要としない。したがって、この発
明によれば、デコード処理も比較的簡単になる。
As described above, according to the present invention, instead of reading data for one line and then performing decoding processing, each time data is taken in bit by bit, the structure of the bit data is compressed by a plurality of compression methods. Data is decoded in small units according to the rules. Therefore, according to the present invention, it is not necessary to have a large code table in the decoder unlike the MH coding method. Further, it is not necessary to read the data twice at the time of encoding unlike the arithmetic coding method. Furthermore, the decoder only needs to have a simple counter for counting bit data, and does not require a multiplier such as an arithmetic coding method for decoding. Therefore, according to the present invention, the decoding process is relatively simple.

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

【図1】この発明を適用できる情報保持媒体の一例とし
ての光ディスクの記録データ構造を略示する図。
FIG. 1 is a diagram schematically showing a recording data structure of an optical disc as an example of an information storage medium to which the present invention can be applied.

【図2】図1の光ディスクに記録されるデータの論理構
造を例示する図。
FIG. 2 is a view exemplifying a logical structure of data recorded on the optical disc of FIG. 1;

【図3】図2で例示したデータ構造のうち、エンコード
(ランレングス圧縮)される副映像パックの論理構造を
例示する図。
FIG. 3 is a diagram illustrating a logical structure of a sub-picture pack to be encoded (run-length compressed) in the data structure illustrated in FIG. 2;

【図4】図3で例示した副映像パックのうち、この発明
の一実施の形態に係るエンコード方法が適用される副映
像データ部分の内容を例示する図。
4 is a diagram exemplifying the contents of a sub-picture data portion of the sub-picture pack exemplified in FIG. 3, to which an encoding method according to an embodiment of the present invention is applied;

【図5】図4で例示した副映像データ部分を構成する画
素データが複数ビット(ここでは2ビット)で構成され
る場合において、この発明の一実施の形態に係るエンコ
ード方法で採用される圧縮規則1〜6を説明する図。
FIG. 5 is a diagram illustrating a compression method employed in an encoding method according to an embodiment of the present invention when pixel data constituting a sub-picture data portion illustrated in FIG. 4 is composed of a plurality of bits (here, 2 bits); The figure explaining rules 1-6.

【図6】図4で例示した副映像データ部分を構成する画
素データが1ビットで構成される場合において、この発
明の他実施の形態に係るエンコード方法で採用される圧
縮規則11〜15を説明する図。
FIG. 6 illustrates compression rules 11 to 15 employed in an encoding method according to another embodiment of the present invention when pixel data forming a sub-picture data portion illustrated in FIG. 4 is formed of one bit. Figure to do.

【図7】図4で例示した副映像データ部分を構成する画
素データが、たとえば第1〜第9ラインで構成され、各
ライン上に2ビット構成の画素(最大4種類)が並んで
おり、各ライン上の2ビット画素により文字パターン
「A」および「B」が表現されている場合において、各
ラインの画素データが、どのようにエンコード(ランレ
ングス圧縮)されるかを具体的に説明する図。
FIG. 7 is a diagram showing an example in which pixel data constituting the sub-picture data portion illustrated in FIG. 4 is composed of, for example, first to ninth lines, and a 2-bit pixel (up to four types) is arranged on each line; When character patterns “A” and “B” are represented by 2-bit pixels on each line, how the pixel data of each line is encoded (run-length compressed) will be specifically described. FIG.

【図8】図7の例でエンコードされた画素データ(副映
像データ)のうち、文字パターン「A」がどのようにデ
コードされるかを、2例(ノンインターレース表示およ
びインターレース表示)説明する図。
FIG. 8 is a view for explaining two examples (non-interlaced display and interlaced display) of how the character pattern “A” is decoded from the pixel data (sub-picture data) encoded in the example of FIG. 7; .

【図9】図4で例示した副映像データ部分を構成する画
素データが2ビットで構成される場合において、この発
明の一実施の形態に係るエンコード方法で採用される圧
縮規則1〜6を具体的に説明する図。
FIG. 9 specifically shows compression rules 1 to 6 used in the encoding method according to the embodiment of the present invention when the pixel data forming the sub-picture data portion illustrated in FIG. 4 is composed of 2 bits. FIG.

【図10】この発明に基づきエンコードされた画像情報
を持つ高密度光ディスクの、量産からユーザサイドにお
ける再生までの流れを説明するとともに;この発明に基
づきエンコードされた画像情報の、放送/ケーブル配信
からユーザ/加入者における受信/再生までの流れを説
明するブロック図。
FIG. 10 explains the flow from mass production to reproduction on the user side of a high-density optical disk having image information encoded according to the present invention; from broadcasting / cable distribution of image information encoded according to the present invention; FIG. 3 is a block diagram illustrating a flow up to reception / reproduction by a user / subscriber.

【図11】この発明に基づく画像デコード(ランレング
ス伸張)を実行するデコーダハードウエアの一実施形態
(ノンインターレース仕様)を説明するブロック図。
FIG. 11 is a block diagram illustrating an embodiment (non-interlaced specification) of decoder hardware that executes image decoding (run-length expansion) based on the present invention.

【図12】この発明に基づく画像デコード(ランレング
ス伸張)を実行するデコーダハードウエアの他実施形態
(インターレース仕様)を説明するブロック図。
FIG. 12 is a block diagram illustrating another embodiment (interlace specification) of decoder hardware that executes image decoding (run-length expansion) based on the present invention.

【図13】この発明の一実施の形態に係る画像エンコー
ド(ランレングス圧縮)を実行するものであって、たと
えば図10のエンコーダ(200)により実行されるソ
フトウエアを説明するフローチャート図。
FIG. 13 is a flowchart illustrating software that executes image encoding (run-length compression) according to the embodiment of the present invention and is executed by, for example, the encoder (200) in FIG. 10;

【図14】図13のソフトウエアで使用されるエンコー
ドステップ1(ST806)の内容の一例を説明するフ
ローチャート図。
FIG. 14 is a flowchart illustrating an example of the contents of an encoding step 1 (ST806) used in the software of FIG. 13;

【図15】この発明の一実施の形態に係る画像デコード
(ランレングス伸張)を実行するものであって、たとえ
ば図11あるいは図12のMPU(112)により実行
されるソフトウエアを説明するフローチャート図。
FIG. 15 is a flowchart for explaining software executed by the MPU (112) of FIG. 11 or 12 for executing image decoding (run-length decompression) according to an embodiment of the present invention; .

【図16】図15のソフトウエアで使用されるデコード
ステップ(ST1005)の内容の一例を説明するフロ
ーチャート図。
16 is a flowchart illustrating an example of the contents of a decoding step (ST1005) used in the software of FIG.

【図17】この発明に基づく画像デコード(ランレング
ス伸張)を実行するデコーダハードウエアの他実施形態
を説明するブロック図。
FIG. 17 is a block diagram illustrating another embodiment of decoder hardware that executes image decoding (run-length expansion) based on the present invention.

【図18】この発明の他実施の形態に係る画像デコード
(ランレングス伸張)処理の前半を説明するフローチャ
ート図。
FIG. 18 is a flowchart illustrating the first half of an image decoding (run-length decompression) process according to another embodiment of the present invention.

【図19】この発明の他実施の形態に係る画像デコード
(ランレングス伸張)処理の後半を説明するフローチャ
ート図。
FIG. 19 is a flowchart for explaining the latter half of the image decoding (run-length extension) process according to another embodiment of the present invention.

【図20】図18の符号化ヘッダ検出ステップ(ST1
205)の内容の一例を説明するフローチャート図。
FIG. 20 shows an encoded header detection step (ST1) in FIG.
FIG. 205 is a flowchart for explaining an example of the contents of 205).

【図21】デコードされた画像がスクロールされる場合
において、この発明の画像デコード処理がどのようにな
されるかを説明するフローチャート図。
FIG. 21 is a flowchart for explaining how the image decoding process of the present invention is performed when the decoded image is scrolled.

【図22】この発明に基づきエンコードされた画像情報
を持つ高密度光ディスクから再生された圧縮データがそ
のまま放送またはケーブル配信され、放送またはケーブ
ル配信された圧縮データがユーザまたは加入者側でデコ
ードされる場合を説明するブロック図。
FIG. 22 is a diagram illustrating a compressed data reproduced from a high-density optical disk having image information encoded according to the present invention, which is broadcast or cable-distributed, and the broadcast or cable-distributed compressed data is decoded by a user or a subscriber; FIG. 4 is a block diagram illustrating a case.

【図23】この発明に基づきエンコードされた画像情報
が、通信ネットワーク(インターネットなど)を介し
て、任意の2コンピュータユーザ間で送受される場合を
説明するブロック図。
FIG. 23 is a block diagram illustrating a case where image information encoded according to the present invention is transmitted and received between any two computer users via a communication network (such as the Internet).

【図24】この発明に基づくエンコードおよびデコード
が実行される光ディスク記録再生装置の概要を説明する
ブロック図。
FIG. 24 is a block diagram illustrating an outline of an optical disc recording / reproducing apparatus on which encoding and decoding are performed according to the present invention.

【図25】この発明に基づくエンコーダがIC化された
状態を例示する図。
FIG. 25 is a diagram exemplifying a state where the encoder based on the present invention is formed into an IC.

【図26】この発明に基づくデコーダがIC化された状
態を例示する図。
FIG. 26 is a diagram exemplifying a state where the decoder based on the present invention is formed into an IC.

【図27】この発明に基づくエンコーダおよびデコーダ
がIC化された状態を例示する図。
FIG. 27 is a diagram illustrating a state where an encoder and a decoder according to the present invention are integrated into an IC;

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

30…圧縮された副映像データユニット(SPU);3
1…副映像ユニットヘッダ(SPUH);32…圧縮さ
れた副映像画素データ(PXD);101…デコーダ;
102…データI/O;103…符号化データ切分部;
104…画素色出力部(FIFOタイプ);105…メ
モリ制御部;106…継続コード長検知部;107…ラ
ン長設定部;108…メモリ;109…アドレス制御
部;110…表示有効許可部;111…不足画素色設定
部;112…マイクロコンピュータ(MPUまたはCP
U);113…ヘッダ切分部;114…ラインメモリ;
115…セレクタ;118…セレクト信号生成部;20
0…エンコーダ;202…レーザカッティング装置;2
04…光ディスクマスタ;206…2枚貼合せ高密度光
ディスク量産設備;202〜206…記録装置;210
…変調器/送信器;212…放送部/ケーブル出力部;
300…ディスクプレーヤ(再生装置);400…受信
器/復調器(再生装置);5001(500N)…パー
ソナルコンピュータ;5011(501N)…入出力機
器類;5021(502N)…外部記憶装置類;503
1(503N)…エンコーダ/デコーダおよびモデム;
702…変調器/レーザドライバ;704…光ヘッド
(記録レーザ);706…光ヘッド(読取レーザ/レー
ザピックアップ);708…復調器/エラー訂正部;7
10…オーディオ/ビデオデータ処理部(副映像データ
のデコード処理部を含む);OD…2枚貼合せ高密度光
ディスク(記録媒体)。
30 ... Compressed sub-picture data unit (SPU); 3
1 ... sub-picture unit header (SPUH); 32 ... compressed sub-picture pixel data (PXD); 101 ... decoder;
102: data I / O; 103: coded data separation part;
104: Pixel color output unit (FIFO type); 105: Memory control unit; 106: Continuous code length detection unit; 107: Run length setting unit; 108: Memory; 109: Address control unit; ... Insufficient pixel color setting unit; 112... Microcomputer (MPU or CP)
U); 113: header segment; 114: line memory;
115 selector; 118 select signal generator; 20
0: encoder; 202: laser cutting device; 2
04: optical disk master; 206: mass production equipment for two-layer high-density optical disk; 202 to 206: recording device; 210
... modulator / transmitter; 212 ... broadcast unit / cable output unit;
300: disk player (reproducing device); 400: receiver / demodulator (reproducing device); 5001 (500N): personal computer; 5011 (501N): input / output devices; 5021 (502N): external storage devices;
1 (503N) ... encoder / decoder and modem;
702: modulator / laser driver; 704: optical head (recording laser); 706: optical head (reading laser / laser pickup); 708: demodulator / error correction unit;
10: audio / video data processing unit (including decoding processing unit for sub-picture data); OD: two-layer bonded high-density optical disk (recording medium).

フロントページの続き (51)Int.Cl.6 識別記号 FI H04N 9/808 H04N 9/80 B 11/04 (72)発明者 平良 和彦 東京都港区新橋3丁目3番9号 東芝エ ー・ブイ・イー株式会社内 (72)発明者 北村 哲也 神奈川県川崎市幸区柳町70番地 株式会社 東芝柳町工場内Continued on the front page (51) Int.Cl. 6 Identification symbol FI H04N 9/808 H04N 9/80 B 11/04 (72) Inventor Kazuhiko Taira 3-3-9 Shimbashi, Minato-ku, Tokyo TOSHIBA A-V・ Inside E Co., Ltd. (72) Inventor Tetsuya Kitamura 70, Yanagicho, Saiwai-ku, Kawasaki-shi, Kanagawa Pref.

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】 複数ビット数で定義される画素データが
複数集まって形成される情報集合体のうち、同一画素デ
ータが連続するデータブロックを1圧縮単位として圧縮
した情報が記録される画像情報記録媒体を製造するもの
において、 (イ) 前記1圧縮単位のデータブロックにおける同一
画素データ連続数に対応した符号化ヘッダと、この同一
画素データ連続数を示す継続画素数データと、前記1圧
縮単位のデータブロックにおける同一画素データ自体を
示す複数ビット構成のデータとによって構成された圧縮
単位データブロックの情報をエンコードするエンコード
工程と; (ロ)前記エンコード工程でエンコードされた情報が書
き込まれた媒体マスタを作成するマスタ作成工程と; (ハ)前記マスタ作成工程で作成された媒体マスタを用
いて、前記エンコード工程でエンコードされた情報を、
1以上の前記画像情報記録媒体に記録する媒体生産工程
と;を具備したことを特徴とする画像情報記録媒体の製
造方法。
1. An image information recording apparatus which records information obtained by compressing a data block in which the same pixel data continues as one compression unit in an information aggregate formed by collecting a plurality of pixel data defined by a plurality of bits. (B) an encoding header corresponding to the number of continuous same pixel data in the data block of one compression unit, continuous pixel number data indicating the same number of continuous pixel data; An encoding step of encoding information of a compression unit data block constituted by data of a plurality of bits indicating the same pixel data itself in the data block; and (b) a medium master on which the information encoded in the encoding step is written. (C) using the media master created in the master creation step. Te, the information encoded in the encoding step,
A method for producing a medium for recording on at least one image information recording medium.
【請求項2】 前記1圧縮単位のデータブロックにおけ
る同一画素データ連続数のデータ長が3以下の場合は前
記符号化ヘッダにビットが割り当てられておらず、前記
1圧縮単位のデータブロックにおける同一画素データ連
続数のデータ長が4以上で所定数以下の場合は前記符号
化ヘッダに2ビット以上所定ビット以下が割り当てられ
ていることを特徴とする請求項1に記載の製造方法。
2. If the data length of the same pixel data continuation number in the data block of one compression unit is 3 or less, no bit is assigned to the encoding header, and the same pixel in the data block of one compression unit is used. 2. The method according to claim 1, wherein when the data length of the continuous data number is 4 or more and a predetermined number or less, 2 bits or more and a predetermined bit or less are assigned to the encoded header. 3.
【請求項3】 前記情報集合体が有限ビット長のデータ
ライン上に配列されており、前記1圧縮単位のデータブ
ロックにおける同一画素データが前記データラインのラ
インエンドまで連続している場合に、同一画素データが
前記ラインエンドまで続いていることを示す特定ビット
数で前記符号化ヘッダが構成されることを特徴とする請
求項1に記載の製造方法。
3. When the information aggregate is arranged on a data line having a finite bit length, and the same pixel data in the data block of one compression unit continues to the line end of the data line, The method according to claim 1, wherein the encoded header is configured with a specific number of bits indicating that pixel data continues to the line end.
【請求項4】 前記情報集合体が有限ビット長のデータ
ライン上に配列されており、前記1圧縮単位のデータブ
ロックにおける同一画素データが前記データラインのラ
インエンドまで連続している場合に、同一画素データが
前記ラインエンドまで続いていることを示す特定ビット
数で前記符号化ヘッダが構成され;前記1圧縮単位のデ
ータブロックにおける同一画素データが前記データライ
ンのラインエンドまで連続していない場合において、前
記1圧縮単位のデータブロックにおける同一画素データ
連続数のデータ長が3以下の場合は前記符号化ヘッダに
ビットが割り当てられず、前記1圧縮単位のデータブロ
ックにおける同一画素データ連続数のデータ長が4以上
で所定数以下の場合は前記符号化ヘッダに2ビット以上
所定ビット以下が割り当てられていることを特徴とする
請求項1に記載の製造方法。
4. When the information aggregate is arranged on a data line having a finite bit length, and the same pixel data in the data block of one compression unit continues up to the line end of the data line, The encoded header is configured with a specific number of bits indicating that the pixel data continues to the line end; when the same pixel data in the data block of one compression unit is not continuous to the line end of the data line, If the data length of the same pixel data continuation number in the data block of one compression unit is 3 or less, no bit is allocated to the encoded header, and the data length of the same pixel data continuation number in the data block of one compression unit is Is greater than or equal to 4 and less than or equal to a predetermined number, two or more and less than or equal to a predetermined number of bits are assigned to the encoded header. The method according to claim 1, wherein the method is applied.
【請求項5】 前記情報集合体が有限ビット長のデータ
ライン上に配列されている場合において、このデータラ
イン上の全データに対する圧縮単位データブロックの生
成が終了した時点で前記圧縮単位データブロック全体の
ビット長が8ビットの整数倍でない場合に、この全体ビ
ット長が8ビットの整数倍となるようなダミービットデ
ータが追加されていることを特徴とする請求項1に記載
の製造方法。
5. When the information aggregate is arranged on a data line having a finite bit length, when the generation of a compression unit data block for all data on the data line is completed, the entire compression unit data block is generated. 2. The manufacturing method according to claim 1, wherein, if the bit length is not an integral multiple of 8 bits, dummy bit data whose total bit length is an integral multiple of 8 bits is added.
【請求項6】 前記1圧縮単位のデータブロックにおけ
る同一画素データ連続数のデータ長が3以下の場合は前
記符号化ヘッダにビットが割り当てられず、前記1圧縮
単位のデータブロックにおける同一画素データ連続数の
データ長が4以上で所定数以下の場合は前記符号化ヘッ
ダに2ビット以上所定ビット以下が割り当てられてお
り、 前記情報集合体が有限ビット長のデータライン上に配列
されている場合において、このデータライン上の全デー
タに対する圧縮単位データブロックの生成が終了した時
点で前記圧縮単位データブロック全体のビット長が8ビ
ットの整数倍でない場合に、この全体ビット長が8ビッ
トの整数倍となるようなダミービットデータが追加され
ていることを特徴とする請求項1に記載の製造方法。
6. If the data length of the same pixel data continuation number in the data block of one compression unit is 3 or less, no bit is assigned to the encoding header, and the same pixel data continuation in the data block of one compression unit is not performed. When the data length of the number is 4 or more and a predetermined number or less, two bits or more and a predetermined bit or less are assigned to the encoded header, and when the information aggregate is arranged on a data line having a finite bit length, If the bit length of the entire compression unit data block is not an integral multiple of 8 bits when the generation of the compression unit data block for all data on this data line is completed, the total bit length is set to an integral multiple of 8 bits. 2. The method according to claim 1, wherein dummy bit data is added.
【請求項7】 前記情報集合体が有限ビット長のデータ
ライン上に配列されており、前記1圧縮単位のデータブ
ロックにおける同一画素データが前記データラインのラ
インエンドまで連続している場合に、同一画素データが
前記ラインエンドまで続いていることを示す特定ビット
数で前記符号化ヘッダが構成され;前記情報集合体が有
限ビット長のデータライン上に配列されている場合にお
いて、このデータライン上の全データに対する圧縮単位
データブロックの生成が終了した時点で前記圧縮単位デ
ータブロック全体のビット長が8ビットの整数倍でない
場合に、この全体ビット長が8ビットの整数倍となるよ
うなダミービットデータが追加されていることを特徴と
する請求項1に記載の製造方法。
7. When the information aggregate is arranged on a data line having a finite bit length, and the same pixel data in the data block of one compression unit continues up to the line end of the data line, The encoding header is configured with a specific number of bits indicating that the pixel data continues to the line end; when the information aggregate is arranged on a data line having a finite bit length, If the bit length of the entire compressed unit data block is not an integral multiple of 8 bits when the generation of the compressed unit data block for all data is completed, dummy bit data whose integral bit length is an integral multiple of 8 bits. The method according to claim 1, wherein is added.
【請求項8】 前記情報集合体が有限ビット長のデータ
ライン上に配列されており、前記1圧縮単位のデータブ
ロックにおける同一画素データが前記データラインのラ
インエンドまで連続している場合に、同一画素データが
前記ラインエンドまで続いていることを示す特定ビット
数で前記符号化ヘッダが構成され;前記情報集合体が有
限ビット長のデータライン上に配列されている場合にお
いて、このデータライン上の全データに対する圧縮単位
データブロックの生成が終了した時点で前記圧縮単位デ
ータブロック全体のビット長が8ビットの整数倍でない
場合に、この全体ビット長が8ビットの整数倍となるよ
うなダミービットデータが追加されていることを特徴と
する請求項2に記載の製造方法。
8. When the information aggregate is arranged on a data line having a finite bit length, and the same pixel data in the data block of one compression unit continues up to the line end of the data line, The encoding header is configured with a specific number of bits indicating that the pixel data continues to the line end; when the information aggregate is arranged on a data line having a finite bit length, If the bit length of the entire compressed unit data block is not an integral multiple of 8 bits when the generation of the compressed unit data block for all data is completed, dummy bit data whose integral bit length is an integral multiple of 8 bits. 3. The method according to claim 2, further comprising:
【請求項9】 前記エンコード工程が、MPEG規格に
基づき動画を圧縮する工程を含み、このMPEG規格に
基づき圧縮された動画が前記媒体マスタに書き込まれる
ことを特徴とする請求項1ないし請求項8のいずれか1
項に記載の製造方法。
9. The method according to claim 1, wherein the encoding step includes a step of compressing a moving image based on the MPEG standard, and the moving image compressed based on the MPEG standard is written to the medium master. Any one of
The production method according to the paragraph.
【請求項10】 前記画像情報記録媒体が、実質厚が
0.6mmの基板を貼合せた規格上の厚みが1.2mm
の光ディスクで構成され、この貼合せ基板の少なくとも
一方に、前記媒体マスタに記録された情報が転写されて
いることを特徴とする請求項1ないし請求項9のいずれ
か1項に記載の製造方法で作成された光ディスク。
10. The image information recording medium has a standard thickness of 1.2 mm obtained by laminating a substrate having a substantial thickness of 0.6 mm.
The method according to any one of claims 1 to 9, wherein information recorded on the medium master is transferred to at least one of the bonded substrates. Optical disc created with.
【請求項11】 複数ビット数で定義される画素データ
が複数集まって形成される情報集合体のうち、同一画素
データが連続するデータブロックを1圧縮単位として圧
縮した情報を、所定のパック単位でパケット化してデー
タパケットとして記録する記録トラックを持つ画像情報
記録媒体において、 前記1圧縮単位のデータブロックを、このデータブロッ
クにおける同一画素データ連続数に対応した符号化ヘッ
ダと、この同一画素データ連続数を示す継続画素数デー
タと、前記1圧縮単位のデータブロックにおける同一画
素データ自体を示す複数ビット構成のデータとによって
構成し;1以上の前記データブロックを含んで所定の圧
縮後データを構成し;前記圧縮後データに所定のヘッダ
を付けて圧縮データの1ユニットを構成し;1以上の前
記データパケットが、前記圧縮データの1ユニットと対
応する配列で、前記記録トラックに記録されていること
を特徴とする情報記録媒体。
11. An information aggregate formed by gathering a plurality of pixel data defined by a plurality of bits, and information obtained by compressing a data block in which the same pixel data is continuous as one compression unit in a predetermined pack unit. An image information recording medium having a recording track which is packetized and recorded as a data packet, comprising: a data block of one compression unit; an encoding header corresponding to the number of consecutive same pixel data in the data block; And data of a plurality of bits indicating the same pixel data itself in the data block of the one compression unit; and forming predetermined compressed data including one or more of the data blocks; A predetermined header is added to the compressed data to constitute one unit of the compressed data; Serial data packet, the corresponding sequences as one unit of the compressed data, the record information recording medium characterized in that it is recorded in the track.
【請求項12】 前記1圧縮単位のデータブロックにお
ける同一画素データ連続数のデータ長が3以下の場合は
前記符号化ヘッダにビットが割り当てられておらず、前
記1圧縮単位のデータブロックにおける同一画素データ
連続数のデータ長が4以上で所定数以下の場合は前記符
号化ヘッダに2ビット以上所定ビット以下が割り当てら
れていることを特徴とする請求項11に記載の情報記録
媒体。
12. When the data length of the same pixel data continuation number in the data block of one compression unit is 3 or less, no bit is assigned to the encoded header, and the same pixel in the data block of one compression unit is used. 12. The information recording medium according to claim 11, wherein when the data length of the continuous data number is 4 or more and a predetermined number or less, 2 bits or more and a predetermined bit or less are assigned to the encoded header.
【請求項13】 前記情報集合体が有限ビット長のデー
タライン上に配列されており、前記1圧縮単位のデータ
ブロックにおける同一画素データが前記データラインの
ラインエンドまで連続している場合に、同一画素データ
が前記ラインエンドまで続いていることを示す特定ビッ
ト数で前記符号化ヘッダが構成されることを特徴とする
請求項11または請求項12に記載の情報記録媒体。
13. When the information aggregate is arranged on a data line having a finite bit length and the same pixel data in the data block of one compression unit continues to the line end of the data line, 13. The information recording medium according to claim 11, wherein the encoded header is configured with a specific number of bits indicating that pixel data continues to the line end.
【請求項14】 前記情報集合体が有限ビット長のデー
タライン上に配列されている場合において、このデータ
ライン上の全データに対する圧縮単位データブロックの
生成が終了した時点で前記圧縮単位データブロック全体
のビット長が8ビットの整数倍でない場合に、この全体
ビット長が8ビットの整数倍となるようなダミービット
データが追加されることを特徴とする請求項11ないし
請求項13のいずれか1項に記載の情報記録媒体。
14. When the information aggregate is arranged on a data line having a finite bit length, when the generation of a compression unit data block for all data on this data line is completed, the entire compression unit data block is generated. 14. If the bit length is not an integral multiple of 8 bits, dummy bit data whose total bit length is an integral multiple of 8 bits is added. The information recording medium described in the section.
【請求項15】 前記情報記録媒体が、実質厚が0.6
mmの基板を貼合せた規格上の厚みが1.2mmの光デ
ィスクで構成され、この貼合せ基板のいずれか一方また
は双方に、少なくとも前記圧縮データの1ユニットが転
写されていることを特徴とする請求項11ないし請求項
14のいずれか1項に記載の情報記録媒体。
15. The information recording medium has a substantial thickness of 0.6.
An optical disc having a standard thickness of 1.2 mm, which is obtained by laminating substrates having a thickness of 1.2 mm, is characterized in that at least one unit of the compressed data is transferred to one or both of the laminated substrates. An information recording medium according to any one of claims 11 to 14.
【請求項16】 複数ビット数で定義される画素データ
が複数集まって形成される情報集合体のうち、同一画素
データが連続するデータブロックを1圧縮単位として圧
縮した情報を、所定のパック単位でパケット化してデー
タパケットとして記録する記録トラックを持つものであ
って、光ヘッドを持つ再生装置により前記圧縮情報が前
記パック単位で再生可能な光ディスクにおいて、 前記1圧縮単位のデータブロックが、このデータブロッ
クにおける同一画素データ連続数に対応した符号化ヘッ
ダと、この同一画素データ連続数を示す継続画素数デー
タと、前記1圧縮単位のデータブロックにおける同一画
素データ自体を示す複数ビット構成のデータとによって
構成され;1以上の前記データブロックを含んで、所定
の圧縮後データが構成され;前記圧縮後データに所定の
ヘッダを付けて、圧縮データの1ユニットが構成され;
1以上の前記データパケットが、前記圧縮データの1ユ
ニットと対応する配列で、前記記録トラックに記録さ
れ;前記再生装置が前記圧縮情報を再生する際に、1以
上の前記データパケットの配列が、前記光ヘッドにより
連続して再生できるように、前記記録トラックに記録さ
れていることを特徴とする光ディスク。
16. An information set formed by gathering a plurality of pixel data defined by a plurality of bits, and information obtained by compressing a data block in which the same pixel data is continuous as one compression unit, in a predetermined pack unit. An optical disk having a recording track for packetizing and recording as a data packet, wherein the compressed information can be reproduced in the pack unit by a reproducing apparatus having an optical head, wherein the data block in one compression unit is the data block. , A coded header corresponding to the number of consecutive identical pixel data, continuous pixel number data indicating the consecutive number of identical pixel data, and data of a plurality of bits indicating the same pixel data itself in the data block of one compression unit. A predetermined compressed data including one or more of the data blocks. ; With a predetermined header to the post-compression data, one unit of the compressed data is configured;
One or more of the data packets are recorded on the recording track in an array corresponding to one unit of the compressed data; when the playback device plays back the compressed information, the array of one or more of the data packets is: An optical disc recorded on the recording track so that it can be continuously reproduced by the optical head.
【請求項17】 前記1圧縮単位のデータブロックにお
ける同一画素データ連続数のデータ長が3以下の場合は
前記符号化ヘッダにビットが割り当てられておらず、前
記1圧縮単位のデータブロックにおける同一画素データ
連続数のデータ長が4以上で所定数以下の場合は前記符
号化ヘッダに2ビット以上所定ビット以下が割り当てら
れていることを特徴とする請求項16に記載の光ディス
ク。
17. If the data length of the same pixel data continuation number in the data block of one compression unit is 3 or less, no bit is assigned to the encoded header, and the same pixel in the data block of one compression unit is used. 17. The optical disk according to claim 16, wherein when the data length of the continuous data number is 4 or more and a predetermined number or less, 2 bits or more and a predetermined bit or less are assigned to the encoded header.
【請求項18】 前記情報集合体が有限ビット長のデー
タライン上に配列されており、前記1圧縮単位のデータ
ブロックにおける同一画素データが前記データラインの
ラインエンドまで連続している場合に、同一画素データ
が前記ラインエンドまで続いていることを示す特定ビッ
ト数で前記符号化ヘッダが構成されることを特徴とする
請求項16または請求項17に記載の光ディスク。
18. The information aggregate is arranged on a data line having a finite bit length, and when the same pixel data in the data block of one compression unit continues up to the line end of the data line, the same 18. The optical disc according to claim 16, wherein the encoded header is configured with a specific number of bits indicating that pixel data continues to the line end.
【請求項19】 前記情報集合体が有限ビット長のデー
タライン上に配列されている場合において、このデータ
ライン上の全データに対する圧縮単位データブロックの
生成が終了した時点で前記圧縮単位データブロック全体
のビット長が8ビットの整数倍でない場合に、この全体
ビット長が8ビットの整数倍となるようなダミービット
データが追加されることを特徴とする請求項16ないし
請求項18のいずれか1項に記載の光ディスク。
19. When the information aggregate is arranged on a data line having a finite bit length, when the generation of a compression unit data block for all data on this data line is completed, the entire compression unit data block is 19. The dummy bit data whose total bit length is an integral multiple of 8 bits is added when the bit length of the data is not an integral multiple of 8 bits. An optical disk according to the item.
【請求項20】 前記情報記録媒体が、実質厚が0.6
mmの基板を貼合せた規格上の厚みが1.2mmの光デ
ィスクで構成され、この貼合せ基板のいずれか一方また
は双方に、少なくとも前記圧縮データの1ユニットが転
写されていることを特徴とする請求項16ないし請求項
19のいずれか1項に記載の光ディスク。
20. The information recording medium having a substantial thickness of 0.6
An optical disc having a standard thickness of 1.2 mm, which is obtained by laminating substrates having a thickness of 1.2 mm, is characterized in that at least one unit of the compressed data is transferred to one or both of the laminated substrates. An optical disc according to any one of claims 16 to 19.
JP20933597A 1994-12-28 1997-08-04 Image information recording medium and method of manufacturing the same Expired - Lifetime JP2829294B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20933597A JP2829294B2 (en) 1994-12-28 1997-08-04 Image information recording medium and method of manufacturing the same

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6-327460 1994-12-28
JP32746094 1994-12-28
JP20933597A JP2829294B2 (en) 1994-12-28 1997-08-04 Image information recording medium and method of manufacturing the same

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP34244395A Division JP2829266B2 (en) 1994-12-28 1995-12-28 Image information encoding / decoding system

Publications (2)

Publication Number Publication Date
JPH1098685A true JPH1098685A (en) 1998-04-14
JP2829294B2 JP2829294B2 (en) 1998-11-25

Family

ID=26517388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20933597A Expired - Lifetime JP2829294B2 (en) 1994-12-28 1997-08-04 Image information recording medium and method of manufacturing the same

Country Status (1)

Country Link
JP (1) JP2829294B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100781833B1 (en) 2006-03-29 2007-12-03 주식회사 팬택 Method for compressing color data

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06314092A (en) * 1993-04-28 1994-11-08 Toshiba Corp Recording and reproducing device for character image

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06314092A (en) * 1993-04-28 1994-11-08 Toshiba Corp Recording and reproducing device for character image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100781833B1 (en) 2006-03-29 2007-12-03 주식회사 팬택 Method for compressing color data

Also Published As

Publication number Publication date
JP2829294B2 (en) 1998-11-25

Similar Documents

Publication Publication Date Title
EP0806868B1 (en) Recording medium and method for manufacturing the recording medium
US6021226A (en) Image information encoding/decoding system
JP2712099B2 (en) Image information encoding / decoding system
JP2829266B2 (en) Image information encoding / decoding system
JP2977513B2 (en) Image information encoding / decoding system
JP2829294B2 (en) Image information recording medium and method of manufacturing the same
JP3660416B2 (en) Image data encoding / decoding system
JP2807456B2 (en) Image information recording medium and method of manufacturing the same
JPH1098721A (en) Encoding and decoding system for image information
US6009202A (en) Image information encoding/decoding system
JP3679851B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
KR100215620B1 (en) System for transmitting and receiving video information
JP3887400B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP2004343786A (en) Encoding method, reproducing method, and reproducing apparatus, of image information
JP2004343785A (en) Encoding method, reproducing method, and reproducing apparatus, of image information
JP2004266869A (en) Playback apparatus and playback method
JP2004320803A (en) Method for encoding image information, method and apparatus for reproduction thereof
JP2004320801A (en) Method for encoding image information, method and apparatus for reproduction thereof
JP2004320802A (en) Method for encoding image information, method and apparatus for reproduction thereof
JP2004328779A (en) Encoding method, decoding method and decoding device of image information
JP2004328781A (en) Encoding method, decoding method and decoding device of image information
JP2004328782A (en) Encoding method, decoding method and decoding device of image information
JP2004328780A (en) Encoding method, decoding method and decoding device of image information
JP2004297825A (en) Image information encoding method, reproducing method and reproducing apparatus

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070918

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080918

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080918

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090918

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090918

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100918

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110918

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110918

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120918

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120918

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130918

Year of fee payment: 15

EXPY Cancellation because of completion of term