JP2807456B2 - Image information recording medium and method of manufacturing the same - Google Patents

Image information recording medium and method of manufacturing the same

Info

Publication number
JP2807456B2
JP2807456B2 JP9199881A JP19988197A JP2807456B2 JP 2807456 B2 JP2807456 B2 JP 2807456B2 JP 9199881 A JP9199881 A JP 9199881A JP 19988197 A JP19988197 A JP 19988197A JP 2807456 B2 JP2807456 B2 JP 2807456B2
Authority
JP
Japan
Prior art keywords
sub
data
picture
information
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.)
Expired - Lifetime
Application number
JP9199881A
Other languages
Japanese (ja)
Other versions
JPH1070705A (en
Inventor
哲也 北村
妙 青木
俊明 白砂
英紀 三村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 filed Critical Toshiba Corp
Priority to JP9199881A priority Critical patent/JP2807456B2/en
Publication of JPH1070705A publication Critical patent/JPH1070705A/en
Application granted granted Critical
Publication of JP2807456B2 publication Critical patent/JP2807456B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、主映像とともに
同時再生される副映像などの画像情報を記録する媒体お
よびその製造方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a medium for recording image information such as sub-pictures reproduced simultaneously with a main picture, and a method of manufacturing the same.

【0002】[0002]

【従来の技術】映画の字幕やテレビ音量の設定値として
表示されるイメージなど、主映像にスーパーインポーズ
される副映像は、大きく分けて、キャラクタコード方式
およびビットマップデータ方式の2つの方式で実現され
ている。
2. Description of the Related Art Sub-pictures superimposed on a main picture, such as an image displayed as a subtitle of a movie or a set value of a television volume, are roughly classified into two types, a character code system and a bit map data system. Has been realized.

【0003】[0003]

【発明が解決しようとする課題】キャラクタコード方式
とは、予め登録・用意された文字あるいは模様などのキ
ャラクタをキャラクタジェネレータのキャラクタ記録領
域に保持しておき、キャラクタに割り当てられたコード
をキャラクタジェネレータに与えて所望のキャラクタを
表示させるものである。
The character code system means that characters such as characters or patterns registered and prepared in advance are stored in a character recording area of a character generator, and a code assigned to the character is stored in the character generator. To display the desired character.

【0004】この方式では、キャラクタジェネレータな
どの専用ハードウエアが必要となるが、コードを与えて
キャラクタを表示させるので、キャラクタのビットマッ
プデータをそのまま表示系に送って副映像を表示する場
合よりも、表示系に送るべきデータの量は少なくて済
む。しかし、予め登録・用意されたキャラクタしか表示
することができないため、この方式による副映像の表示
用途は限られたものになる。
In this method, special hardware such as a character generator is required. However, since a character is displayed by giving a code, the bit map data of the character is sent to the display system as it is to display a sub-picture. However, the amount of data to be sent to the display system can be small. However, since only characters registered and prepared in advance can be displayed, the use of displaying sub-pictures by this method is limited.

【0005】一方、ビットマップデータ方式の場合は、
副映像のビットマップデータをそのまま表示系に送るの
で、副映像をコードから生成するような専用ハードウエ
アは必要としない。また、表示できる副映像の形に制限
がないので、副映像の表示用途が広がる。
On the other hand, in the case of the bitmap data system,
Since the bitmap data of the sub-picture is sent to the display system as it is, special hardware for generating the sub-picture from the code is not required. Further, since there is no limitation on the form of the sub-picture that can be displayed, the use of displaying the sub-picture is expanded.

【0006】しかし、この方式では、副映像の色データ
と、副映像を主映像にスーパーインポーズするときに必
要な副映像輪郭の色データと、主映像と副映像のスーパ
ーインポーズ混合比率データとを、1画素毎に持たねば
ならず、表示系に送るべきデータの量は膨大なものにな
ってしまう。
However, in this method, the color data of the sub-picture, the color data of the sub-picture contour necessary for superimposing the sub-picture on the main picture, and the superimposition mixing ratio data of the main picture and the sub-picture are used. Must be provided for each pixel, and the amount of data to be sent to the display system is enormous.

【0007】さらに、一般的にいって、ビットマップデ
ータ方式では、副映像の大きさに拘わらず表示画面(以
下フレームを呼ぶ)全ての画素に関するデータが表示系
へ送られるため、表示空間的に無駄なデータが多い(図
50参照)。
Further, generally speaking, in the bitmap data system, data relating to all pixels of a display screen (hereinafter referred to as a frame) is sent to the display system regardless of the size of the sub-picture, so There is much useless data (see FIG. 50).

【0008】また、キャラクタコード方式・ビットマッ
プデータ方式のどちらの方式でも、表示している副映像
の形に変化が生じなくても、基本的には、表示フレーム
周期毎に副映像データを与え続けなければならず、表示
時間的に無駄なデータが多くなる(図51参照)。
In either of the character code system and the bit map data system, even if the form of the displayed sub-picture does not change, basically, the sub-picture data is supplied every display frame period. This has to be continued, and more data is wasted in display time (see FIG. 51).

【0009】この発明は、上述したような課題を解決す
るためになされたもので、その第1の目的は、副映像デ
ータの表示空間的な無駄および表示時間的な無駄を大幅
に削減でき、そのうえ副映像表現の自由性に優れ、幅広
い副映像利用用途を確保できる画像情報の記録媒体を提
供することである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and a first object of the present invention is to greatly reduce display space waste and display time waste of sub-picture data. In addition, it is an object of the present invention to provide a recording medium for image information which is excellent in freedom of sub-picture expression and can secure a wide range of uses for sub-pictures.

【0010】この発明の第2の目的は、副映像データの
表示空間的な無駄および表示時間的な無駄を大幅に削減
でき、そのうえ副映像表現の自由性に優れ、幅広い副映
像利用用途を確保できる画像情報記録媒体の製造方法を
提供することである。
A second object of the present invention is to greatly reduce the display space waste and display time waste of sub-picture data, and furthermore, have excellent freedom of sub-picture expression and secure a wide range of uses for sub-pictures. It is an object of the present invention to provide a method for manufacturing an image information recording medium that can be used.

【0011】[0011]

【課題を解決するための手段】上記第1の目的を達成す
るために、この発明では、主映像とともに同時再生可能
な副映像を所定のパック単位でパケット化して記録する
ための記録トラックを持つ画像情報記録媒体(図1のO
D)において、前記副映像をパケット化したデータパケ
ット(図29の副映像パケットデータまたは図3のSP
packi〜j)が、基準時刻を用いて表現した前記副映像
データパケットの再生開始時刻(PTS)を含むパケッ
トヘッダ情報(3;PH)と、副映像の表示内容を構成
するものであって所定の方法(図5の圧縮規則)で圧縮
された画素データを含む副映像情報(32;PXD)
と、この副映像情報を用いて前記副映像を表示するため
の制御手順を示す1以上の表示制御シーケンス情報(3
3;DCSQT)と、この表示制御シーケンス情報(D
CSQT)の表示開始時刻を示すものでありかつこの表
示制御シーケンス情報(DCSQT)に含まれるもので
あって、前記パケットヘッダ情報(PH)に含まれる前
記再生開始時刻(PTS)が更新されてからの相対時間
で記録されているタイムスタンプ(図33のSPDCT
S)と、前記副映像情報のサイズ(図4のSPDSZ)
および前記表示制御シーケンス情報の記録位置(図4の
SPDCSQTA)を含む副映像ヘッダ情報(図4また
は図29の31;SPUH)とを具備するように構成さ
れ; 前記副映像ヘッダ情報(SPUH)、前記副映像情報
(PXD)および前記表示制御シーケンス情報(DCS
QT)によって副映像データユニット(図3の30)が
構成され; 1以上の前記副映像データパケット(図3のSPpacki
〜j)が、前記副映像データユニット(30)と対応す
る配列(図3)で、前記記録トラック(図1)に記録さ
れている。
In order to achieve the first object, the present invention has a recording track for recording a sub-picture which can be reproduced simultaneously with a main picture in packet units of a predetermined pack. Image information recording medium (O in FIG. 1)
D), a sub-picture packetized data packet (sub-picture packet data of FIG. 29 or SP of FIG. 3)
packi to j) constitute packet header information (3; PH) including a reproduction start time (PTS) of the sub-picture data packet expressed using a reference time, and display contents of the sub-picture. (32; PXD) including pixel data compressed by the method (compression rule in FIG. 5)
And one or more pieces of display control sequence information (3) indicating a control procedure for displaying the sub-picture using the sub-picture information.
3; DCSQT) and this display control sequence information (D
CSQT), and indicates the display start time (PSQ) included in the display control sequence information (DCSQT) and included in the packet header information (PH). Time stamp (SPDCT in FIG. 33)
S) and the size of the sub-picture information (SPDSZ in FIG. 4)
And sub-picture header information (31 in FIG. 4 or FIG. 29; SPUH) including a recording position (SPDCSQTA in FIG. 4) of the display control sequence information; the sub-picture header information (SPUH); The sub-picture information (PXD) and the display control sequence information (DCS
QT) constitutes a sub-picture data unit (30 in FIG. 3); one or more sub-picture data packets (SPpacki in FIG. 3)
To j) are recorded on the recording track (FIG. 1) in an array (FIG. 3) corresponding to the sub-picture data unit (30).

【0012】前記表示制御シーケンス情報(図32のD
CSQT/図33のDCSQ/図34のSPDCCM
D)は、少なくとも、副映像の表示開始時刻(STAD
SP)および表示終了時刻(STPDSP)と、表示す
べき前記副映像データの記録位置(SETDSPXA)
と、この記録位置に記録された副映像データに対する表
示制御情報群(SETCOLOR、SETCONTR、
CHGCOLCON等)を含むことができる。
The display control sequence information (D in FIG. 32)
CSQT / DCSQ of FIG. 33 / SPDCCM of FIG.
D) is at least the display start time (STAD
SP), display end time (STPDSP), and recording position of the sub-picture data to be displayed (SETDSPXA)
And display control information groups (SETCOLOR, SETCONTR,
CHGCOLCON).

【0013】[0013]

【0014】また、上記第1の目的を達成するために、
主映像とともに同時再生可能な副映像を所定のパック単
位(2048バイト単位)でパケット化して記録した記
録トラックを持つものであって、光ヘッド(図24の7
06)を持つ再生装置により前記副映像のパケットの情
報が前記パック単位で再生可能な光ディスク(図1また
は図24のOD)において、前記副映像をパケット化し
たデータパケット(図29の副映像パケットデータまた
は図3のSPpacki〜j)が、基準時刻を用いて表現し
た前記副映像データパケットの再生開始時刻(PTS)
を含むパケットヘッダ情報(3;PH)と、副映像の表
示内容を構成するものであって所定の方法(図5の圧縮
規則)で圧縮された画素データを含む副映像情報(3
2;PXD)と、この副映像情報を用いて前記副映像を
表示するための制御手順を示す1以上の表示制御シーケ
ンス情報(33;DCSQT)と、この表示制御シーケ
ンス情報(DCSQT)の表示開始時刻を示すものであ
りかつこの表示制御シーケンス情報(DCSQT)に含
まれるものであって、前記パケットヘッダ情報(PH)
に含まれる前記再生開始時刻(PTS)が更新されてか
らの相対時間で記録されているタイムスタンプ(図33
のSPDCTS)と、前記副映像情報のサイズ(図4の
SPDSZ)および前記表示制御シーケンス情報の記録
位置(図4のSPDCSQTA)を含む副映像ヘッダ情
報(図4または図29の31;SPUH)とを具備する
ように構成され; 前記副映像ヘッダ情報(SPUH)、前記副映像データ
(PXD)および前記表示制御シーケンス情報(DCS
QT)によって副映像データユニット(図3の30)が
構成され; 1以上の前記副映像データパケット(図3のSPpacki
〜j)が、前記副映像データユニット(30)と対応す
るような配列(図3)で前記記録トラック(図1)に記
録され; 前記再生装置が前記副映像を再生する際に、前記1以上
の副映像データパケットの配列(図3のSPpacki〜
j)が、前記光ヘッド(706)により連続して再生で
きるように、前記記録トラック(図1)に記録されてい
る。
Further, in order to achieve the first object,
An optical head (7 in FIG. 24) has a recording track in which a sub-image that can be reproduced simultaneously with the main image is packetized and recorded in predetermined pack units (2048-byte units).
06) on an optical disc (OD in FIG. 1 or FIG. 24) in which the information of the packet of the sub-picture can be reproduced in the pack unit by the reproducing device having the sub-picture packet (the sub-picture packet in FIG. 29). The data or SPpacki to j in FIG. 3 is a reproduction start time (PTS) of the sub-picture data packet expressed using a reference time.
And sub-picture information (3; PH), which constitutes the display content of the sub-picture, and includes pixel data compressed by a predetermined method (compression rule in FIG. 5).
PXD), one or more display control sequence information (33; DCSQT) indicating a control procedure for displaying the sub-picture using the sub-picture information, and display start of the display control sequence information (DCSQT). It indicates time and is included in the display control sequence information (DCSQT), and includes the packet header information (PH).
The time stamp recorded as a relative time since the reproduction start time (PTS) included in the
SPDCTS) and sub-picture header information (31 in FIG. 4 or FIG. 29; SPUH) including the size of the sub-picture information (SPDSZ in FIG. 4) and the recording position of the display control sequence information (SPDCSQTA in FIG. 4). The sub-picture header information (SPUH), the sub-picture data (PXD), and the display control sequence information (DCS).
QT) constitutes a sub-picture data unit (30 in FIG. 3); one or more sub-picture data packets (SPpacki in FIG. 3)
To j) are recorded on the recording track (FIG. 1) in an array (FIG. 3) corresponding to the sub-picture data unit (30); when the playback apparatus plays back the sub-picture, The arrangement of the above sub-picture data packets (SPpacki to
j) is recorded on the recording track (FIG. 1) so that it can be continuously reproduced by the optical head (706).

【0015】上記第2の目的を達成するために、この発
明では、主映像とともに再生可能な副映像が所定のパッ
ク単位(2048バイト)でパケット化されて記録され
る記録トラック(図1)を持つ画像情報記録媒体(O
D)の製造方法が、 (イ)前記副映像のパケット(図3のSPpacki〜j)
の再生開始時刻を表現した第1のタイムスタンプ(PT
S)を含むパケットヘッダ情報(図3のPH;図29の
3)と、前記副映像を構成するものであって所定の方法
で圧縮された画素データ(PXD)を含む副映像情報
(図29の32)と、この副映像情報を用いた前記副映
像の表示を制御するための1以上の表示制御シーケンス
(図32のDCSQ0〜DCSQn)を含む表示制御シ
ーケンス情報(図29の33;DCSQT)と、前記副
映像のサイズ(図4のSPDSZ)および前記表示制御
シーケンス情報(DCSQT)の記録位置(図4のSP
DCSQTA)を含む副映像ヘッダ情報(図4の31;
SPUH)と、前記表示制御シーケンス(DCSQ)の
情報の表示開始時刻を示すものであって、前記第1のタ
イムスタンプ(PTS)が更新されてからの相対時間で
記録されている第2のタイムスタンプ(図33のSPD
CTS)とを用いて、前記副映像のパケットをエンコー
ドするエンコード工程(図10の200)と; (ロ)前記エンコード工程でエンコードされた前記副映
像のパケット情報が書き込まれた媒体マスタ(図10の
204)を作成するマスタ作成工程(図10の202、
204)と; (ハ)前記マスタ作成工程で作成された媒体マスタ(2
04)を用いて、前記エンコード工程でエンコードされ
た情報を、1以上の前記画像情報記録媒体(OD)に記
録する媒体生産工程(図10の206)とを具備してい
る。
In order to achieve the second object, according to the present invention, a recording track (FIG. 1) in which a sub-picture which can be reproduced together with a main picture is packetized and recorded in a predetermined pack unit (2048 bytes). Image information recording medium (O
The manufacturing method of D) is as follows: (a) the packet of the sub-picture (SPpacki to j in FIG. 3)
Of the first time stamp (PT
S), and sub-picture information (FIG. 29; FIG. 29; FIG. 29; FIG. 29) which constitutes the sub-picture and includes pixel data (PXD) compressed by a predetermined method. 32) and display control sequence information (33 in FIG. 29; DCSQT) including one or more display control sequences (DCSQ0 to DCSQn in FIG. 32) for controlling the display of the sub-video using the sub-video information. And the recording position of the size of the sub-picture (SPDSZ in FIG. 4) and the display control sequence information (DCSQT) (SPDS in FIG. 4).
Sub-picture header information including DCSQTA) (31 in FIG. 4;
SPUH) and a second time recorded as a relative time after the first time stamp (PTS) is updated, indicating a display start time of information of the display control sequence (DCSQ). Stamp (SPD in FIG. 33)
(B) CTS) to encode a packet of the sub-picture (200 in FIG. 10); and (b) a medium master in which packet information of the sub-picture encoded in the encoding step is written (FIG. 10). (Step 204 in FIG. 10)
(C) the media master (2) created in the master creation step.
04), a medium production step (206 in FIG. 10) of recording the information encoded in the encoding step on one or more image information recording media (OD).

【0016】ここで、前記副映像ヘッダ情報(図3の3
1;SPUH)、前記圧縮された画素データ(図3の3
2;PXD)および前記表示制御シーケンス情報(図3
の33;DCSQT)によって副映像データユニット
(図3の30)を構成し;1以上の前記副映像パケット
(図3のSPpacki〜j)を、前記副映像データユニッ
ト(30)と対応するような配列で前記記録トラックに
記録することができる。
Here, the sub-picture header information (3 in FIG. 3)
1; SPUH), the compressed pixel data (3 in FIG. 3).
2; PXD) and the display control sequence information (FIG. 3)
33; DCSQT) constitutes a sub-picture data unit (30 in FIG. 3); and converts one or more of the sub-picture packets (SPpacki to j in FIG. 3) to correspond to the sub-picture data unit (30). The information can be recorded on the recording tracks in an array.

【0017】この発明においては、媒体(光ディスク)
に記録された1以上の表示制御シーケンス情報(DCS
QT)を利用することで副映像データの表示空間的な無
駄および表示時間的な無駄を大幅に削減できるととも
に、ビットマップデータ方式並の副映像表現自由性を得
ることができ、幅広い副映像の用途を確保することがで
きる。
In the present invention, a medium (optical disk)
At least one display control sequence information (DCS
By using (QT), it is possible to significantly reduce the display space waste and display time waste of the sub-picture data, and to obtain the sub-picture expression freedom equivalent to that of the bitmap data system, and to realize a wide range of sub-pictures. Uses can be secured.

【0018】すなわち、この発明では、副映像データ中
で表示に使用すべき範囲を設定する使用範囲設定情報
(SETDSPXA)を設け、その使用範囲以外のデー
タを表示しないようにすることで、1フレーム分全ての
データを表示系に送る場合に生じてしまうデータ量の表
示空間的な無駄を大幅に削減することができる。
That is, according to the present invention, use range setting information (SETDSPXA) for setting a range to be used for display in sub-picture data is provided, and data other than the use range is not displayed, so that one frame can be displayed. It is possible to greatly reduce the display space waste of the data amount that occurs when all the data is sent to the display system.

【0019】また、この発明においては、副映像データ
のパターン画素、ふちどり、背景などの、画素種別毎の
色設定情報(SETCOLOR)および混合比設定情報
(SETCONTR)を設け、副映像表示データとして
副映像イメージの形状情報だけを持たせることで、画素
毎に色情報および混合比情報を持たせる従来方式と比
べ、同程度の副映像形状表現性を、より少ないデータ量
で保証できる。
Further, according to the present invention, color setting information (SETCOLOR) and mixture ratio setting information (SETCONTR) for each pixel type such as pattern pixels, frames, and background of sub-picture data are provided, and sub-picture display data is provided. By providing only the shape information of the video image, the same level of sub-video shape expression can be guaranteed with a smaller amount of data as compared with the conventional method in which color information and mixture ratio information are provided for each pixel.

【0020】さらにこの発明では、副映像データの画素
種別毎の色の変化、および主映像に対する副映像データ
の画素種別毎の混合比の変化を、画素単位で設定する色
/混合比変化設定情報(CHGCOLCON)を設けた
ので、副映像の動的な表示を、従来のビットマップデー
タ方式と同等の精度で、しかもビットマップデータ方式
よりも少ないデータ量で、実現できる。
Further, according to the present invention, color / mixing ratio change setting information for setting a change in color for each pixel type of sub-picture data and a change in mixing ratio for each pixel type of sub-picture data with respect to the main picture in pixel units. Since (CHGCOLCON) is provided, dynamic display of sub-pictures can be realized with the same accuracy as the conventional bitmap data system and with a smaller data amount than the bitmap data system.

【0021】なお、副映像は1画素毎に色情報が変化す
るものは希であり、色/混合比変化設定情報自体のデー
タ量が過度なものとなる心配はない。
It is to be noted that it is rare for the sub-picture to change the color information for each pixel, and there is no fear that the data amount of the color / mixing ratio change setting information itself becomes excessive.

【0022】さらにこの発明では、副映像イメージの色
が変化したとしても、その形状が変化しない限り、同じ
副映像データを用いて複数フレームの表示時間に跨って
副映像を表示できる。したがって、色・形が変化するし
ないに拘わらずフレーム周期で副映像データを表示系に
与え続けなければならない従来方式に比べ、副映像デー
タの表示時間的な無駄を大幅に削減することができる。
Further, according to the present invention, even if the color of the sub-picture image changes, the sub-picture can be displayed over the display time of a plurality of frames using the same sub-picture data as long as the shape does not change. Therefore, waste of display time of the sub-picture data can be greatly reduced as compared with the conventional method in which the sub-picture data must be continuously provided to the display system at the frame period regardless of the color / shape not changing.

【0023】[0023]

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

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

【0025】図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.

【0026】この光ディスクODは、たとえば片面約5
Gバイトの記憶量量をもつ両面貼合せディスクであり、
ディスク内周側のリードインエリアからディスク外周側
のリードアウトエリアまでの間に多数の記録トラックが
配置されている。各トラックは多数の論理セクタで構成
されており、それぞれのセクタに各種情報(適宜圧縮さ
れたデジタルデータ)が格納されている。
This optical disk OD is, 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.

【0027】図2は、図1の光ディスクODに記録され
る映像(ビデオ)用ファイルのデータ構造を例示してい
る。
FIG. 2 shows an example of the data structure of a video file recorded on the optical disk OD of FIG.

【0028】図2に示すように、この映像用ファイル
は、ファイル管理情報1および映像用データ2を含んで
いる。映像用データ2は、ビデオデータブロック、オー
ディオデータブロック、副映像データブロック、そして
これらのデータ再生を制御するために必要な情報(DS
I;Disk Search Information)を記録したDSIブロ
ックから構成されている。各ブロックは、たとえばデー
タの種類毎に一定のデータサイズのパケットに、それぞ
れ分割される。ビデオデータブロック、オーディオデー
タブロックおよび副映像データブロックは、これらブロ
ック群の直前に配置されたDSIを基に、それぞれ同期
をとって再生される。
As shown in FIG. 2, this video file includes file management information 1 and video data 2. The video data 2 includes a video data block, an audio data block, a sub-picture data block, and information (DS) required for controlling the data reproduction.
I: Disk Search Information). Each block is divided into packets of a fixed data size for each type of data, for example. The video data block, the audio data block and the sub-picture data block are reproduced in synchronization with each other based on the DSI arranged immediately before these block groups.

【0029】すなわち、図1の複数論理セクタの集合体
の中に、ディスクODで使用されるシステムデータを格
納するシステムエリアと、ボリューム管理情報エリアと
複数ファイルエリアが、形成される。
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.

【0030】上記複数のファイルエリアのうち、たとえ
ばファイル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.

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

【0032】図3の上部に示すように、ビデオデータに
含まれる副映像情報の1パックはたとえば2048バイ
ト(2kB)で構成される。この副映像情報の1パック
は、先頭のパックのヘッダのあとに、1以上の副映像パ
ケットを含んでいる。第1の副映像パケットは、そのパ
ケットのヘッダのあとに、ランレングス圧縮された副映
像データ(SP DATA1)を含んでいる。同様に、
第2の副映像パケットは、そのパケットのヘッダのあと
に、ランレングス圧縮された副映像データ(SP DA
TA2)を含んでいる。
As shown in the upper part of FIG. 3, one pack of sub-picture information included in video data is composed of, for example, 2048 bytes (2 kB). 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 DA) after the header of the packet.
TA2).

【0033】このような複数の副映像データ(SP D
ATA1、SP DATA2、…)をランレングス圧縮
の1ユニット(1単位)分集めたもの、すなわち副映像
データユニット30に、副映像ユニットヘッダ31が付
与される。この副映像ユニットヘッダ31のあとに、1
ユニット分の映像データ(たとえば2次元表示画面の1
水平ライン分のデータ)をランレングス圧縮した画素デ
ータ32、および各副映像パックの表示制御シーケンス
情報を含むテーブル33が続く。
Such a plurality of 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 performing run-length compression on horizontal line data) and a table 33 including display control sequence information of each sub-picture pack follow.

【0034】換言すると、1ユニット分のランレングス
圧縮データ30は、1以上の副映像パケットの副映像デ
ータ部分(SP DATA1、SP DATA2、…)
の集まりで形成されている。この副映像データユニット
30は、副映像表示用の各種パラメータが記録されてい
る副映像ユニットヘッダSPUH31と、ランレングス
符号からなる表示データ(圧縮された画素データ)PX
D32と、表示制御シーケンステーブルDCSQT33
とで構成されている。
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 SPUH31 in which various parameters for sub-picture display are recorded, and display data (compressed pixel data) PX composed of a run-length code.
D32 and a display control sequence table DCSQT33
It is composed of

【0035】図4は、図3で例示した1ユニット分のラ
ンレングス圧縮データ30のうち、副映像ユニットヘッ
ダ31の内容の一部を例示している(SPUH31の他
部については図31参照)。ここでは、主映像(たとえ
ば映画の映像本体)とともに記録・伝送(通信)される
副映像(たとえば主映像の映画のシーンに対応した字
幕)のデータに関して、説明を行なう。
FIG. 4 illustrates a part of the contents of the sub-picture unit header 31 in the run-length compressed data 30 for one unit illustrated in FIG. 3 (see FIG. 31 for the other part of the SPUH 31). . 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).

【0036】図4に示すように、副映像ユニットヘッダ
SPUH31には、副映像の画素データ(表示データ)
32の開始アドレスSPDDADRと、画素データ32
の終了アドレスSPEDADRと、画素データ32のT
V画面上での表示サイズすなわち表示開始位置および表
示範囲(幅と高さ)SPDSZと、副映像データパケッ
ト内の表示制御シーケンステーブル33の記録開始位置
SPDCSQTAとが、記録されている。
As shown in FIG. 4, the sub-picture unit header SPUH31 includes sub-picture pixel data (display data).
32 start address SPDDDR and the pixel data 32
End address SPEDAD of the pixel data 32 and T
The display size on the V screen, that is, the display start position and the display range (width and height) SPDSZ, and the recording start position SPDCSQTA of the display control sequence table 33 in the sub-picture data packet are recorded.

【0037】なお、場合によっては、SPUH31に、
システムから指定された背景色SPCHIと、システム
から指定された副映像色SPCINFOと、システムか
ら指定された強調色のパレット色番号SPADJINF
Oと、副映像画素データ32の修飾情報SPMODと、
主映像(MP)に対する副映像(SP)の混合比SPC
ONTと、副映像の開始タイミング(主映像のフレーム
番号に対応)SPDSTと、各ラインおきのデコードデ
ータの開始アドレスSPLine1〜SPlineNと
が、記録されていてもよい。
In some cases, the SPUH 31
The background color SPCHI specified by the system, the sub-picture color SPCINFO specified by the system, and the palette color number SPADJINF of the emphasized color specified by the system.
O, the modification information SPMOD of the sub-picture pixel data 32,
Mixing ratio SPC of sub-picture (SP) to main picture (MP)
The ONT, the start timing of the sub-video (corresponding to the frame number of the main video) SPDST, and the start addresses SPLine1 to SPLineN of the decoded data for each line may be recorded.

【0038】なお、各ラインおきのデコードデータの開
始アドレスSPLine1〜SPlineNは、この発
明の好ましい実施形態では、SPUH31に含ませるの
ではなく、複数の副映像フィールド毎に設けられる。
In the preferred embodiment of the present invention, the start addresses SPLine1 to SPLineN of the decode data for each line are not included in the SPUH 31, but are provided for each of a plurality of sub-picture fields.

【0039】もう少し具体的にいうと、副映像ユニット
ヘッダSPUH31には、図4に示すように、以下の内
容を持つ種々なパラメータ(SPDDADRなど)が記
録されている: (1)このヘッダに続く表示データ(副映像の画素デー
タ)の開始アドレス情報(SPDDADR:ヘッダの先
頭からの相対アドレス)と; (2)この表示データの終了アドレス情報(SPEDA
DR:ヘッダの先頭からの相対アドレス)と; (3)この表示データのモニタ画面上における表示開始
位置および表示範囲(幅および高さ)を示す情報(SP
DSZ)と; (4)パケット内の表示制御シーケンステーブル33の
記録開始位置情報(副映像の表示制御シーケンステーブ
ル開始アドレスSPDCSQTA)。
More specifically, in the sub-picture unit header SPUH31, as shown in FIG. 4, various parameters (such as SPDDADR) having the following contents are recorded: (1) Following this header Start address information (SPDDDR: relative address from the head of the header) of display data (pixel data of sub-picture); and (2) end address information of this display data (SPEDA).
(3) information (SP) indicating a display start position and a display range (width and height) of the display data on the monitor screen;
(4) recording start position information (display control sequence table start address SPDCSQTA of sub-picture) of the display control sequence table 33 in the packet.

【0040】また、種々考えられるこの発明の実施形態
の1つにおいて、副映像ユニットヘッダSPUH31
が、以下のものを含む場合もあり得る: (5)システムにより指定された背景色(ストーリィ情
報テーブルまたは表示制御シーケンステーブルで設定し
た16色カラーパレットの番号)を示す情報(SPCH
I)と; (6)システムにより指定された副映像色(ストーリィ
情報テーブルまたは表示制御シーケンステーブルで設定
した16色カラーパレットの番号)を示す情報(SPC
INFO)と; (7)システムにより指定された副映像強調色(ストー
リィ情報テーブルまたは表示制御シーケンステーブルで
設定したカラーパレットの番号)を示す情報(SPAJ
DNFO)と; (8)システムにより指定され、ノンインターレースの
フィールドモードかインターレースのフレームモードか
等を示す副映像画像モード情報(SPMOD)と(圧縮
対象の画素データが種々なビット数で構成されるとき
は、画素データが何ビット構成であるかをこのモード情
報の内容で特定できる。); (9)システムにより指定された副映像と主映像の混合
比を示す情報(SPCONT)と; (10)副映像の表示開始タイミングを、主映像のフレ
ーム番号(たとえばMPEGのIピクチャフレーム番
号)により示す情報(SPDST)と; (11)副映像の1ライン目〜Nライン目の符号化デー
タの開始アドレス(副映像ユニットヘッダの先頭からの
相対アドレス)を示す情報(SPlin1〜SPlin
N)。
In one of various possible embodiments of the present invention, the sub-picture unit header SPUH31
May include the following: (5) Information (SPCH) indicating the background color specified by the system (the number of the 16-color pallet set in the story information table or the display control sequence table)
(I) and (6) information (SPC) indicating the sub-picture color specified by the system (the number of 16-color pallets set in the story information table or the display control sequence table)
(INFO) and (7) information (SPAJ) indicating the sub-picture emphasis color (color palette number set in the story information table or the display control sequence table) specified by the system.
(8) sub-picture image mode information (SPMOD) designated by the system and indicating non-interlaced field mode or interlaced frame mode, etc. (pixel data to be compressed is composed of various bit numbers) At this time, the number of bits of the pixel data can be specified by the content of the mode information.); (9) information (SPCONT) indicating the mixture ratio of the sub-image and the main image specified by the system; (10) ) Information (SPDST) indicating the display start timing of the sub-picture by the frame number of the main picture (for example, MPEG I-picture frame number); and (11) the start of the encoded data of the first to Nth lines of the sub-picture. Information (SPlin1 to SPlin) indicating an address (relative address from the head of the sub-picture unit header)
N).

【0041】なお、上記副映像と主映像の混合比を示す
情報SPCONTは、たとえば、(システム設定値)/
16または(システム設定値)/255により副映像の
混合比を表し、(16ー設定値)/16または(255
ー設定値)/255により主映像の混合比を表すように
なっている。
The information SPCONT indicating the mixing ratio of the sub-picture and the main picture is, for example, (system set value) /
16 or (system set value) / 255 indicates the mixing ratio of the sub-picture, and (16-set value) / 16 or (255)
−set value) / 255 indicates the mixture ratio of the main video.

【0042】この副映像ユニットヘッダ31(または各
副映像フィールド)には、各ラインおきのデコードデー
タの開始アドレス(SPLine1〜SPlineN)
が存在する。このため、デコード開始ラインの指定をデ
コーダ側のマイクロコンピュータ(MPUまたはCP
U)などからの指示で変えることにより、表示画面にお
ける副映像のみのスクロールを実現することができる。
(このスクロールについては、図21を参照して後述す
る。) ところで、この発明の実施の形態によっては、副映像ユ
ニットヘッダ31には、副映像がNTSC方式のTVフ
ィールド/フレームにどのように対応するかを示すフィ
ールド/フレームモード(SPMOD)を記録すること
ができるようになっている。
In the sub-picture unit header 31 (or each sub-picture field), the start address (SPLine1-SPLineN) of the decode data for each line is provided.
Exists. For this reason, the designation of the decoding start line is performed by the microcomputer (MPU or CP) on the decoder side.
U) or the like, it is possible to realize scrolling of only the sub-picture on the display screen.
(This scroll will be described later with reference to FIG. 21.) By the way, depending on the embodiment of the present invention, how the sub-picture corresponds to the TV field / frame of the NTSC system is included in the sub-picture unit header 31. A field / frame mode (SPMOD) indicating whether to perform the recording can be recorded.

【0043】通常、このフィールド/フレームモード記
録部(SPMOD)にはビット”0”が書き込まれてい
る。このような副映像データユニット30を受信したデ
コーダ側では、このビット”0”によりフレームモード
(ノンインターレースモード)であることが判定され、
受信した符号データはライン毎にデコードされる。する
と、図8の左下に例示するようなデコードしたままの画
像がデコーダから出力され、これがモニタまたはテレビ
ジョン(TV)のような表示画面に表示される。
Normally, bit "0" is written in this field / frame mode recording section (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).

【0044】一方、フィールド/フレームモード記録部
(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.

【0045】図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 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.

【0046】図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

【0047】ランレングス圧縮規則1〜6またはランレ
ングス圧縮規則11〜15のどれが使用されるかは、副
映像ユニットヘッダ31内のパラメータSPMOD(図
4の下部の表の中央付近参照)の内容(ビット幅フラグ
など)によって決めることができる。たとえば、パラメ
ータSPMODのビット幅フラグが”1”の場合はラン
レングス圧縮対象の画素データが2ビットデータであ
り、図5の規則1〜6が使用される。一方、パラメータ
SPMODのビット幅フラグが”0”の場合はランレン
グス圧縮対象の画素データが1ビットデータであり、図
6の規則11〜15が使用される。
Whether the run length compression rules 1 to 6 or the run length compression rules 11 to 15 are used is determined by the content 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.

【0048】今、画素データが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 and 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.

【0049】図5は、図4で例示した副映像画素データ
(ランレングスデータ)32部分が複数ビット(ここで
は2ビット)の画素データで構成される場合において、
この発明の一実施の形態に係るエンコード方法で採用さ
れるランレングス圧縮規則1〜6を説明するものであ
る。
FIG. 5 shows a case where the sub-picture pixel data (run-length data) 32 shown 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.

【0050】また、図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;

【0051】図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).

【0052】たとえば、図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).

【0053】この場合、図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.

【0054】換言すれば、規則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.

【0055】図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.

【0056】たとえば、図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).

【0057】この場合、図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.

【0058】換言すれば、規則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.

【0059】図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.

【0060】たとえば、図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).

【0061】この場合、図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 continuation number "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 *.

【0062】換言すれば、規則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.

【0063】図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.

【0064】たとえば、図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).

【0065】この場合、図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 *.

【0066】換言すれば、規則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.

【0067】図5の5列目に示す規則5では、エンコー
ドデータ単位の切換点からラインの終わりまで同一画素
が続く場合に、16ビットデータでエンコードのデータ
1単位を構成する。この場合、最初の14ビットで規則
5に基づくことを示す符号化ヘッダを表し、続く2ビッ
トで画素データを表す。
According to rule 5 shown in the fifth column of 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.

【0068】たとえば、図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.

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

【0070】換言すれば、規則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.

【0071】図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).

【0072】たとえば、図9の下部に示される圧縮後の
映像データPXDのデータ単位CU01*〜CU05*
の合計ビット長は、必ず4ビットの整数倍にはなってい
るが、必ずしも8ビットの整数倍になっているとは限ら
ない。
For example, 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.

【0073】たとえばデータ単位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.

【0074】なお、2ビット画素データは、必ずしも4
種類の画素色を表示するものに限定されない。たとえ
ば、画素データ(00)bで副映像の背景画素を表し、
画素データ(01)bで副映像のパターン画素を表し、
画素データ(10)bで副映像の第1強調画素を表し、
画素データ(11)bで副映像の第2強調画素を表わす
ようにしても良い。
Note that 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.

【0075】画素データの構成ビット数がもっと多けれ
ば、より他種類の副映像画素を指定できる。たとえば画
素データが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.

【0076】図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.

【0077】図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.

【0078】図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.

【0079】図6の3列目に示す規則13では、同一画
素が16〜127個続く場合、12ビットデータでエン
コードのデータ1単位を構成する。この場合、最初の4
ビットで規則13に基づくことを示す符号化ヘッダ(た
とえば0000)を表し、続く7ビットで継続画素数を
表し、その後の1ビットで画素データを表す。
According to rule 13 shown in the third column of FIG. 6, if 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.

【0080】図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.

【0081】図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).

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

【0083】図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.

【0084】図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, the source image 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.

【0085】文字「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.

【0086】このエンコーダは、図5で説明した規則1
〜規則6に基づくランレングス圧縮を実行するソフトウ
エアが動作するマイクロコンピュータ(MPUまたはC
PU)で構成できる。このエンコーダソフトウエアにつ
いては、図13および図14のフローチャートを参照し
て後述する。
This encoder uses the rule 1 described with reference to 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.

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

【0088】図7の例では、ソース画像の画素色が3つ
の場合を想定しているので、エンコード処理対象の映像
データ(文字パターン「A」および「B」の順次ビット
列)は、背景画素色「・」を2ビット画素データ(0
0)bで表し、文字画素色「#」を2ビット画素データ
(01)bで表し、強調画素色「o」を2ビット画素デ
ータ(10)bで表している。この画素データ(00、
01など)のビット数(=2)は、画素幅と呼ぶことも
ある。
In the example of FIG. 7, it is assumed that the source image has three pixel colors. Therefore, the video data to be encoded (the sequential bit strings of the character patterns "A" and "B") have the background pixel color. "." 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.

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

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

【0091】すなわち、図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 to (· * 3), and one subsequent “o” is converted to (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).

【0092】その結果、図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.

【0093】以下同様に、図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.

【0094】ここで、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 in 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.

【0095】1ライン目の次のデータは、「o」が1個
なのでやはり規則1が適用される。その結果、1ライン
目の次の[o」すなわち(o*1)は、「1」を表す2
ビット(01)と強調画素色「o」を表す(10)とを
組み合わせた(0110)にエンコードされる。
The next data on the first line has only one "o", so 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”.

【0096】さらに次のデータは、「#」が1個なので
やはり規則1が適用される。その結果、1ライン目の次
の[#」すなわち(#*1)は、「1」を表す2ビット
(01)と文字画素色「#」を表す(01)とを組み合
わせた(0101)にエンコードされる。(この#に関
する部分は、図7の中部および下部では破線で囲って図
示してある。) 以下同様に、(o*1)は(0110)にエンコードさ
れ、(・*3)は(1100)にエンコードされ、(o
*1)は(0110)にエンコードされる。
Further, since the next data has 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 encoded as (0110), and (• * 3) is encoded as (1100). Encoded as (o
* 1) is encoded into (0110).

【0097】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)とを組み合わせた(011
0)にエンコードされる。
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 shown surrounded by a broken line.) Since the data after the first line has one "o", Rule 1 is applied. As a result, this [o], that is, (o * 1) is a combination of two bits (01) representing “1” and (10) representing the emphasized pixel color “o” (011).
0).

【0098】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).

【0099】以上のようにして、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.

【0100】以下同様にして、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).

【0101】なお、上記規則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.

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

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

【0104】図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.

【0105】図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.

【0106】レーザカッティングマシン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.

【0107】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).

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

【0109】頒布されたディスク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.

【0110】一方、エンコーダ200から変調器/送信
器210に送られた圧縮情報は、所定の規格に沿って変
調され、送信される。たとえば、エンコーダ200から
の圧縮映像情報は、対応する音声情報とともに衛星放送
(212)される。あるいは、エンコーダ200からの
圧縮映像情報は、対応する音声情報とともにケーブル伝
送(212)される。
On the other hand, the compressed information sent from encoder 200 to 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.

【0111】放送あるいはケーブル伝送された圧縮映像
/音声情報は、ユーザあるいは加入者の受信器/復調器
400で受信される。この受信器/復調器400は、エ
ンコーダ200でエンコードされたデータを元の情報に
復元するデコーダ101を備えている。デコーダ101
でデコードされた情報は、たとえばユーザのモニタTV
に送られ、映像化される。こうして、エンドユーザは放
送あるいはケーブル伝送された圧縮映像情報から、元の
映像情報を観賞することができるようになる。
The compressed video / audio information broadcast or transmitted by cable is received by a receiver / demodulator 400 of a user or a 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.

【0112】図11は、この発明に基づく画像デコード
(ランレングス伸張)を実行するデコーダハードウエア
の一実施形態(ノンインターレース仕様)を示すブロッ
ク図である。ランレングス圧縮された副映像データSP
D(図3のデータ32相当)をデコードするデコーダ1
01(図10参照)は、図11のように構成することが
できる。
FIG. 11 is a block diagram showing an embodiment (non-interlace 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.

【0113】以下、図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.

【0114】図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.

【0115】なお、図53〜図57の説明で言及される
が、デコーダ101のMPU112には、システムタイ
マ120およびバッファ121が接続されている。
As will be described with reference to FIGS. 53 to 57, a system timer 120 and a buffer 121 are connected to the MPU 112 of the decoder 101.

【0116】上記説明を別の言い方で再度説明すると、
次のようになる。すなわち、図11に示すように、ラン
レングス圧縮された副映像データSPDは、データI/
O102を介して、デコーダ101内部のバスに送り込
まれる。バスに送り込まれたデータSPDは、メモリ制
御部105を介してメモリ108へ送られ、そこに記憶
される。また、デコーダ101の内部バスは、符号デー
タ切分部103と、継続コード長検知部106と、マイ
クロコンピュータ(MPUまたはCPU)112とに接
続されている。
The above explanation 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.

【0117】メモリ108から読み出された副映像デー
タの副映像ユニットヘッダ31は、マイクロコンピュー
タ112により読み取られる。マイクロコンピュータ1
12は、読み出したヘッダ31から、図4に示す各種パ
ラメータに基づいて、アドレス制御部109にデコード
開始アドレス(SPDDADR)を設定し、表示有効許
可部110に副映像の表示開始位置と表示幅と表示高と
の情報(SPDSZ)を設定し、符号データ切分部10
3に副映像の表示幅(ライン上のドット数)を設定す
る。設定された各種情報は各部(109、110、10
3)の内部レジスタに保存される。それ以後、レジスタ
に保存された各種情報は、マイクロコンピュータ112
によりアクセスできるようになる。
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 (SPDSZ) with the display height is set, and the code data separating unit 10 is set.
3 is set to the display width (the number of dots on a line) of the sub-picture. The set various information is stored in each section (109, 110, 10
It is stored in the internal register of 3). After that, various information stored in the register is transferred to the microcomputer 112.
Will be accessible.

【0118】アドレス制御部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.

【0119】ランレングス圧縮された副映像データ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.

【0120】すなわち、継続コード長検知部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.

【0121】符号データ切分部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).

【0122】1ライン分のデコードが終了した時点でバ
イトアラインされていない(つまり1ライン分のデータ
ビット長が8の倍数でない)場合は、符号データ切分部
103は、そのライン上の末尾4ビットデータをエンコ
ード時に付加されたダミーデータであるとみなして、切
り捨てる。
If the byte is not aligned at the time when the 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.

【0123】ラン長設定部107は、前記継続画素数
(ラン情報)と画素ドットクロック(DOTCLK)と
水平/垂直同期信号(H−SYNC/V−SYNC)と
に基づいて、画素色出力部104に、画素データを出力
させるための信号(PERIOD SIGNAL)を与
える。すると、画素色出力部104は、画素データ出力
信号(PERIOD SIGNAL)がアクティブであ
る間(つまり同じ画素色を出力する期間中)、符号デー
タ切分部103からの画素データを、デコードされた表
示データとして出力する。
The run length setting section 107 outputs the pixel color output section 104 based on the number of continuous pixels (run information), the pixel dot clock (DOTCLK), and the 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.

【0124】その際、マイクロコンピュータ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.).

【0125】すなわち、図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 in the insufficient pixel color setting unit 111 accordingly. It has become.

【0126】この画素色出力部104へは、図示しない
モニタ画面上のどの位置にデコードされた副映像を表示
させるかを決定する表示許可(Display Enable)信号
が、副映像画像の水平/垂直同期信号に同期して、表示
有効許可部(Display Activator)110から与えられ
る。また、マイクロコンピュータ112からの色情報指
示に基づいて、許可部110から出力部104へ、色切
換信号が送られる。
A display enable signal (Display Enable) for determining at which position on the monitor screen the decoded sub-picture is to be displayed is supplied to the pixel color output unit 104 in synchronization with 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.

【0127】アドレス制御部109は、マイクロコンピ
ュータ112による処理設定後、メモリ制御部105、
継続コード長検知部106、符号データ切分部103お
よびラン長設定部107に対して、アドレスデータおよ
び各種タイミング信号を送出する。
After setting the processing by the microcomputer 112, the address control unit 109
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.

【0128】データ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.

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

【0130】マイクロコンピュータ112によりデコー
ドスタートアドレスが設定されると、アドレス制御部1
09は、メモリ制御部105に対応するアドレスデータ
を送るとともに、継続コード長検知部106に読込開始
信号を送る。
When the microcomputer 112 sets the 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.

【0131】継続コード長検知部106は、送られてき
た読込開始信号に応答してメモリ制御部105にリード
信号を送って符号化データ(圧縮された副映像データ3
2)を読み込む。そして、この検知部106において、
読み込んだデータのうち上位2ビット全てが「0」かど
うかがチェックされる。
The continuation code length detection unit 106 sends a read signal to the memory control unit 105 in response to the read start signal sent, 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".

【0132】それらが「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).

【0133】それら(上位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).

【0134】それら(上位4ビット)が「0」であれ
ば、さらに続く2ビット(上位6ビット)がチェックさ
れる。それらが「0」でない場合は、圧縮単位のブロッ
ク長が12ビットであると判定される(図5の規則3参
照)。
If those (upper 4 bits) are "0", the following 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).

【0135】それら(上位6ビット)が「0」であれ
ば、さらに続く8ビット(上位14ビット)がチェック
される。それらが「0」でない場合は、圧縮単位のブロ
ック長が16ビットであると判定される(図5の規則4
参照)。
If those (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).

【0136】それら(上位14ビット)が「0」であれ
ば、圧縮単位のブロック長が16ビットであるととも
に、ラインエンドまで同じ画素データが連続していると
判定される(図5の規則5参照)。
If these (upper 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).

【0137】また、ラインエンドまで読み込んだ画素デ
ータのビット数が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).

【0138】符号データ切分部103は、継続コード長
検知部106による上記判定結果に基づいて、メモリ1
08から副映像データ32の1ブロック分(1圧縮単
位)を取り出す。そして、切分部103において、取り
出された1ブロック分データが、継続画素数と画素デー
タ(画素の色情報など)に切り分けられる。切り分けら
れた継続画素数のデータ(RUN INFO.)はラン
長設定部107に送られ、切り分けられた画素データ
(SEPARATED DATA)は画素色出力部10
4に送られる。
[0138] The code data separating unit 103 determines whether the memory 1
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

【0139】一方、表示有効許可部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.

【0140】ラン長設定部107には、継続コード長検
知部106から出力されるものであって現在のブロック
データがラインエンドまで連続するかどうかを示す信号
と、符号データ切分部103からの継続画素データ(R
UN INFO.)とが送られる。ラン長設定部107
は、検知部106からの信号および切分部103からの
データに基づいて、デコード中のブロックが受け持つ画
素ドット数を決定し、このドット数に対応する期間中、
画素色出力部104へ表示許可信号(出力イネーブル信
号)を出力するように構成されている。
The run length setting section 107 outputs a signal which is output from the continuous code length detecting section 106 and indicates whether or not the current block data continues to the line end, and a signal from the code data separating section 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.

【0141】画素色出力部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.

【0142】また、継続コード長検知部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.

【0143】ラン長設定部107は、検知部106から
上記信号を受け取ると、水平同期信号H−SYNCが非
アクティブになるまで符号化データの色情報がイネーブ
ル状態を保持し続けるように、画素色出力部104へ出
力イネーブル信号(期間信号)を出力する。
When the run length setting section 107 receives the above signal from the detection section 106, the run length setting section 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.

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

【0145】図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).

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

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

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

【0149】図11のデコーダ101は、図8の上部で
示すような圧縮データを図8の左下部に示すようなノン
インターレース表示データにデコードする場合に用いる
ことができる。
The decoder 101 shown in FIG. 11 can be used to decode 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.

【0150】これに対し、図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) which scans 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.

【0151】また、インターレース表示と同等の画像表
示量をノンインターレース表示する場合は、別のインダ
ブラ(たとえば、図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 connected to line # 1) H-SY
NC unit).

【0152】図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.

【0153】図12の構成において、マイクロコンピュ
ータ112は、副映像の水平/垂直同期信号に基づい
て、インターレース表示の奇数フィールドと偶数フィー
ルドの発生タイミングを検知している。
In the configuration shown in 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 signal of the sub-picture.

【0154】奇数フィールドを検知すると、マイクロコ
ンピュータ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.

【0155】偶数フィールドに移ったことを検知する
と、マイクロコンピュータ112は選択信号生成部11
8に「現在偶数フィールドである」ことを示すモード信
号を与える。すると、選択信号生成部118からセレク
タ115へ、ラインメモリ114に格納されたを選択さ
せる信号が出力される。すると、偶数フィールドのライ
ン#10〜#18の画素データ(図8の右下部参照)
が、ラインメモリ114からセレクタ115を介して、
ビデオ出力として外部へ送出される。
When the microcomputer 112 detects that it has moved to the even-numbered 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.

【0156】こうして、奇数フィールドのライン#1〜
#9の副映像画像(図8の例では文字「A」)と、偶数
フィールドのライン#10〜#18の副映像画像(図8
の文字「A」)とが合成されて、インターレース表示が
実現される。
Thus, the odd-numbered field lines # 1- # 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.

【0157】ところで、図4に示した副映像データの副
映像ユニットヘッダ31には、TV画面のフレーム表示
モード/フィールド表示モードを示すパラメータビット
(SPMOD)が設けられている。
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.

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

【0159】図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.

【0160】図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.

【0161】以上のようにして、現在のデコードデータ
とラインメモリ114内のデコードデータとがH−SY
NC毎に切り換え出力されると、TV画面上には、元の
画像(デコードされたデータ)の2倍の密度(水平走査
線が2倍)を持つ映像が、インターレースモードで表示
される。
As described above, the current decode data and the decode data in the 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.

【0162】このような構成の副映像デコーダ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 then performing decoding processing, 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.

【0163】たとえば図5の規則1〜規則6にしたがっ
てエンコードされた画素データをデコードするにあた
り、副映像デコーダ101は、ビットカウンタと比較的
小容量のデータバッファ(ラインメモリ114など)を
備えておればよい。換言すれば、副映像デコーダ101
の回路構成は比較的単純なものとすることができ、この
エンコーダを含む装置全体を小型化できることになる。
For decoding pixel data encoded according to, for example, rules 1 to 6 in FIG. 5, sub-picture decoder 101 is provided with 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.

【0164】すなわち、この発明エンコーダは、従来の
MH符号化方法のようにデコーダ内に大掛かりなコード
表を必要とせず、また算術符号化方法のようにエンコー
ド時にデータを二度読みする必要もなくなる。さらに、
この発明のデコーダは、掛算器のよな比較的複雑なハー
ドウエアを必要とせず、カウンタおよび小容量バッファ
などの簡単な回路の追加で具現できる。
That is, the encoder according to the present invention does not require a large code table in the decoder unlike the conventional MH encoding method, and eliminates the need to read data twice during encoding unlike the arithmetic encoding 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.

【0165】この発明によれば、多種類の画素データ
(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.

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

【0167】図5のランレングス圧縮規則1〜6に基づ
く一連のエンコード処理は、図10に示すエンコーダ2
00内部のマイクロコンピュータにより、ソフトウエア
処理として、実行される。エンコーダ200によるエン
コード全体の処理は図13のフローにしたがって行うこ
とができ、副映像データ中の画素データのランレングス
圧縮は図14のフローにしたがって行うことができる。
(ここでは、図3の表示制御シーケンステーブルDCS
QT33のエンコードについては触れない。DCSQT
33部分のエンコードについては、図53を参照して後
述する。)この場合、エンコーダ200内部のコンピュ
ータは、まず、キー入力などによって画像データのライ
ン数とドット数が指定されると(ステップST80
1)、副映像データのヘッダ領域を用意し、ラインカウ
ント数を「0」に初期化する(ステップST802)。
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.
(Here, the display control sequence table DCS in FIG. 3 is used.
The encoding of QT33 will not be described. DCSQT
The encoding of the 33 portion will be described later with reference to FIG. 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).

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

【0169】続いて、エンコーダ200の内部コンピュ
ータは、次の画素パターンの画素データ(2ビット)を
取得し、1つ前に入力された保存中の画素データと比較
する(ステップST804)。
Then, 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).

【0170】この比較の結果、画素データが等しくない
場合は(ステップST805のノー)、エンコード変換
処理1が行われ(ステップST806)、現在の画素デ
ータが保存される(ステップST807)。そして画素
カウント数が+1インクリメントされ、これに対応して
ドットカウント数も+1インクリメントされる(ステッ
プST808)。
As a result of this 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).

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

【0172】画素カウント数およびドットカウント数の
インクリメント(ステップ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.

【0173】ステップST810のエンコード変換処理
2が済むと、エンコーダ200内部のコンピュータは、
エンコード後のビット列が8ビットの整数倍(バイトア
ラインされた状態)であるかどうかチェックする(ステ
ップST811A)。バイトアラインされていなければ
(ステップST811Aノー)、エンコード後のビット
列の末尾に4ビットのダミーデータ(0000)が追加
される(ステップST811B)。このダミー追加処理
後、あるいはエンコード後のビット列がバイトアライン
されていれば(ステップST811Aイエス)、エンコ
ーダ内コンピュータのラインカウンタ(マイクロコンピ
ュータ内部の汎用レジスタなど)が+1インクリメント
される(ステップST812)。
When the encoding 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).

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

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

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

【0177】図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.

【0178】これらの規則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.

【0179】エンコーダ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).

【0180】図15は、この発明の一実施の形態に係る
画像デコード(ランレングス伸張)を実行するものであ
って、たとえば図11あるいは図12マイクロコンピュ
ータ112により実行されるソフトウエアを説明するフ
ローチャートである。(ここでは、図3の表示制御シー
ケンステーブルDCSQT33のデコードについては触
れない。DCSQT33部分のデコードについては、図
54〜図57を参照して後述する。) また、図16は、図15のソフトウエアで使用されるデ
コードステップ(ST1005)の内容の一例を説明す
るフローチャートである。
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. (Decoding of the display control sequence table DCSQT33 in FIG. 3 will not be described here. Decoding of the DCSQT33 portion will be described later with reference to FIGS. 54 to 57.) FIG. 16 shows the software in FIG. 11 is a flowchart illustrating an example of the content of a decoding step (ST1005) used in.

【0181】すなわち、マイクロコンピュータ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).

【0182】マイクロコンピュータ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 dots. Then, the number of dots is subtracted from the number of dots to calculate the number of continuous pixels (step ST1004).

【0183】こうして継続画素数が算出されると、マイ
クロコンピュータ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).

【0184】ステップ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).

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

【0186】次に、デコードしたデータがバイトアライ
ンされておれば(ステップST1008Aイエス)、ダ
ミーデータ分を取り除く(ステップST1008B)。
そしてラインカウント数を+1インクリメントし(ステ
ップST1009)、最終ラインに到達するまで(ステ
ップST1010ノー)、ステップST1002〜ステ
ップST1009の処理を反復する。最終ラインに到達
すれば(ステップST1010イエス)、デコードは終
了する。
Next, if the decoded data is byte-aligned (YES in step ST1008A), 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.

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

【0188】この処理では、初めから2ビットを取得し
ては、そのビットが「0」か否かを判定する織りを繰り
返す(ステップST1101〜ステップST110
9)。これにより、図5のランレングス圧縮規則1〜6
に対応した継続画素数、つまりラン連続数が決定される
(ステップST1110〜ステップST1113)。
In this process, after two bits are acquired from the beginning, weaving for determining whether or not 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).

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

【0190】画素データ(画素の色情報)が決まると、
インデックスパラメータ「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.

【0191】このように、この副映像データのデコード
方法によれば、副映像データのデコード処理が、数ビッ
トの判定処理とデータブロックの切り分け処理とデータ
ビットの計数処理だけという、簡単な処理で済む。この
ため、従来の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.

【0192】なお、上記実施の形態では、データデコー
ド時に最大16ビットのビットデータを読み取れば、同
じ画素の1単位分の符号ビット長を決定できるものとし
たが、この符号ビット長はこれに限定されない。たとえ
ばこの符号ビット長は32ビットでも64ビットでもよ
い。ただしビット長が増えれば、その分容量の大きなデ
ータバッファが必要になる。
In the above embodiment, the code bit length for one unit of the same pixel can be determined by reading bit data of up to 16 bits 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.

【0193】また、上記実施の形態では画素データ(画
素の色情報)を、たとえば16色のカラーパレットから
選択された3色の色情報としたが、これ以外に、色の3
原色(赤成分R、緑成分G、青成分B;または輝度信号
成分Y、クロマ赤信号成分Cr、クロマ青信号成分Cb
など)それぞれの振幅情報を、2ビットの画素データで
表現することもできる。つまり、画素データは特定種類
の色情報に限定されることはない。
In the above embodiment, the pixel data (pixel color information) 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.

【0194】図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 header by software, but in FIG. 17, the operation of cutting out the header is performed by hardware inside the decoder 101.

【0195】すなわち、図17に示すように、ランレン
グス圧縮された副映像データSPDは、データI/O1
02を介して、デコーダ101内部のバスに送り込まれ
る。バスに送り込まれたデータSPDは、メモリ制御部
105を介してメモリ108へ送られ、そこに記憶され
る。また、デコーダ101の内部バスは、符号データ切
分部103と、継続コード長検知部106と、マイクロ
コンピュータ(MPUまたはCPU)112に繋がった
ヘッダ切出部113とに接続されている。
That is, as shown in FIG. 17, run-length-compressed sub-picture data SPD is 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.

【0196】メモリ108から読み出された副映像デー
タの副映像ユニットヘッダ31は、ヘッダ切出部113
により読み取られる。切出部113は、読み出したヘッ
ダ31から、図4に示す各種パラメータに基づいて、ア
ドレス制御部109にデコード開始アドレス(SPDD
ADR)を設定し、表示有効許可部110に副映像の表
示開始位置と表示幅と表示高との情報(SPDSZ)を
設定し、符号データ切分部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), information on the display start position, display width, and display height of the sub-image (SPDSZ) is set in the display validity permitting unit 110, and the display width of the sub-image (on the line) is set in the code data separating unit 103. Number of dots). The set various information is stored in an internal register of each unit (109, 110, 103). After that, various information stored in the register
It can be accessed by the microcomputer 112.

【0197】アドレス制御部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.

【0198】ランレングス圧縮された副映像データ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.

【0199】以下、図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.

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

【0201】デコードを開始する場合、図17のデコー
ダ101内部の各ブロックは初期化(レジスタのクリ
ア、カウンタのリセットなど)される。その後、副映像
ユニットヘッダ31が読み取られ、その内容(図4の各
種パラメータ)がヘッダ切分部113の内部レジスタに
セットされる(ステップST1200)。
When decoding is started, each block in the decoder 101 shown 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).

【0202】ヘッダ切分部113のレジスタにヘッダ3
1の各種パラメータがセットされると、ヘッダ31の読
み取りが終了したステータスが、マイクロコンピュータ
112に通知される(ステップST1201)。
Header 3 is stored in the register of the header separation 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).

【0203】マイクロコンピュータ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).

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

【0205】アドレス制御部109は、デコードアドレ
スをメモリ制御部105に送る。すると、デコードしよ
うとするデータ(圧縮された副映像データSPD)が、
メモリ制御部105を介して、メモリ108から符号化
データ切分部103および継続コード長検知部106
に、読み出される。その際、読み出されたデータは、バ
イト単位で、切分部103および検知部106それぞれ
の内部レジスタにセットされる(ステップST120
4)。
The address control section 109 sends the decode address to the memory control section 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).

【0206】継続コード長検知部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.

【0207】継続コード長検知部106は、検知した符
号化ヘッダの値にしたがって、図5の規則1〜5のいず
れかの規則に対応した切分情報SEP.INFO.を生
成する(ステップST1206)。
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).

【0208】たとえば、メモリ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.

【0209】符号化データ切分部103は、継続コード
長検知部106からの切分情報SEP.INFO.の内
容にしたがって、継続画素数(PIXCNT;ラン情
報)をラン長設定部107にセットするとともに、継続
画素数データのあとに続く2ビット画素データ(画素色
データ;副映像データパケットから切り分けられたデー
タ)を、画素色出力部104にセットする。このとき、
切分部103の内部では、画素カウンタ(図示せず)の
現カウント値NOWPIXが、継続画素数PIXCNT
の分だけインクリメントされる(ステップST120
7)。
[0209] 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).

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

【0211】先行ステップ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).

【0212】このステップにおいて、画素カウンタ値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.

【0213】ラン長設定部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).

【0214】画素色出力部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).

【0215】こうして出力された副映像表示データは、
後に、図示しない回路部分において適宜主映像の画像に
合成され、図示しない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).

【0216】ステップST1211の画素データ出力処
理後、デコードデータが終了していなければ、図18の
ステップST1204に戻る(ステップST1212ノ
ー)。デコードデータが終了しているかどうかは、ヘッ
ダ切分部113によりセットされた副映像表示データの
終了アドレス(SPEDADR)までのデータが符号化
データ切分部103において処理され終わったかどうか
で判定できる。
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). Whether the decoded data has been completed can be determined based 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.

【0217】データのデコードが終了したならば(ステ
ップ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 valid permission 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.

【0218】表示許可信号がアクティブであれば、デー
タデコードが終了しているにも拘わらずまだ表示期間中
であると判定される(ステップ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).

【0219】このとき、画素色出力部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.

【0220】表示許可信号が非アクティブであれば、デ
コードされた副映像の表示期間が終了したと判定される
(ステップST1213ノー)。すると、表示有効許可
部110は、1フレーム分の副映像デコードが終了した
ことを示すエンドステータスを、マイクロコンピュータ
112に転送する(ステップST1216)。こうし
て、1画面(1フレーム)分の副映像デコード処理が終
了する。
[0220] 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.

【0221】図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.

【0222】まず、継続コード長検知部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 detection unit 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).

【0223】ステップ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.

【0224】ステータスカウンタ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).

【0225】すなわち、ステータスカウンタ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.

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

【0227】まず、図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).

【0228】ラインカウンタLINCNTの内容(初め
はゼロ)は、マイクロコンピュータ112(図11)ま
たはヘッダ切分部113(図17)に転送される(ステ
ップST1403)。マイクロコンピュータ112また
はヘッダ切分部113は、受け取ったステータスが1フ
レーム(1画面)の終了ステータス(ステップST12
06)であるかどうかチェックする(ステップST14
04)。
The contents of line counter LINCNT (initially zero) are transferred to microcomputer 112 (FIG. 11) or header separating 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).

【0229】受け取ったステータスが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).

【0230】インクリメントされたラインカウンタLI
NCNTの内容がラインの終わりに達していなければ
(ステップST1407ノー)、図15〜図16のデコ
ード処理、あるいは図18〜図19のデコード処理が再
開され(ステップST1408)、ステップST140
3に戻る。このデコードの反復ループ(ステップST1
403〜ステップST1408)が反復されることによ
り、ランレングス圧縮された副映像がデコードされなが
らスクロールされるようになる。
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.

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

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

【0233】図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.

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

【0235】オンエアされた圧縮デジタル信号、あるい
はケーブル送信された圧縮デジタル信号は、受信者ある
いはケーブル加入者の受信器/復調器400により、受
信される。この受信器400は、たとえば図11あるい
は図17に示すような構成のデコーダ101を備えてい
る。受信器400のデコーダ101は、受信し復調した
圧縮デジタル信号をデコードして、エンコードされる前
の原副映像データを含む画像情報を出力する。
[0235] The compressed digital signal on air or 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.

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

【0237】図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).

【0238】図示しないホストコンピュータで管理する
自己情報#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.

【0239】同様に、別の自己情報#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.

【0240】いま、あるユーザ#1がコンピュータ50
01を操作し、インターネットなどの回線600を介し
て別のユーザ#Nのコンピュータ500Nと通信を行な
う場合を想定してみる。この場合、ユーザ#1およびユ
ーザ#Nは双方ともエンコーダおよびデコーダが組み込
まれたモデムカード5031および503Nを持ってい
るので、この発明により効率よく圧縮された画像データ
を短時間で交換できる。
Now, a certain user # 1 is assigned to the 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.

【0241】図24は、この発明に基づきエンコードさ
れた画像情報(図3のSPUH+PXD+DCSQT)
を光ディスクODに記録し、記録された情報(SPUH
+PXD+DCSQT)をこの発明に基づきデコードす
る記録再生装置の概要を示している。
FIG. 24 shows image information encoded according to the present invention (SPUH + PXD + DCSQT in FIG. 3).
Is recorded on the optical disc OD, and the recorded information (SPUH
+ PXD + DCSQT) according to the present invention.

【0242】図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).

【0243】エンコーダ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.

【0244】ディスク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 necessary. 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.

【0245】このデータ処理部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.

【0246】図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.

【0247】図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.

【0248】図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.

【0249】つまり、この発明に基づくエンコーダまた
はデコーダは、必要な周辺回路とともに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 into various devices to implement the present invention.

【0250】なお、図9に例示したような圧縮後のデー
タ(PXD)のビット列が乗るデータラインは、通常は
TV表示画面の水平走査線の1本分の画像情報を含むよ
うに構成される。しかし、このデータラインは、TV画
面の水平走査線の複数本分の画像情報を含むように構成
すること、あるいはTV画面の1画面分の水平走査線全
て(つまり1フレーム分)の画像情報を含むように構成
することもできる。
It should be noted that the data line on which the bit string of the compressed data (PXD) as shown 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.

【0251】この発明の圧縮規則に基づくデータエンコ
ードの対象は、明細書説明で用いた副映像データ(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.

【0252】ここで、図2または図3に示される副映像
データは、図52に示すように複数チャネルで構成され
ている。副映像データブロックは、これら複数チャネル
の中から任意に選択されたチャネルの、複数副映像デー
タパケットで構成される。ここでの副映像は、文字ある
いは図形などの情報を持ち、ビデオデータやオーディオ
データと同時に再生処理されて、ビデオデータの再生画
面上にスーパーインポーズ表示される。
Here, the sub-picture data shown in FIG. 2 or FIG. 3 is composed of a plurality of channels as shown in FIG. The sub-picture data block is composed of a plurality of sub-picture data packets of a channel arbitrarily selected from the plurality of channels. The sub-picture has information such as characters or figures, is reproduced at the same time as video data and audio data, and is superimposed and displayed on a video data reproduction screen.

【0253】図29は、副映像パケットのデータ構造を
示す。図29に示すように、副映像のパケットデータ
は、パケットヘッダ3と、副映像ヘッダ31と、副映像
データ32と、表示制御シーケンステーブル33とで構
成されている。
FIG. 29 shows the data structure of a sub-picture packet. As shown in FIG. 29, the sub-picture packet data includes a packet header 3, a sub-picture header 31, sub-picture data 32, and a display control sequence table 33.

【0254】パケットヘッダ3には、再生システムがそ
の副映像データブロックの表示制御を開始すべき時刻が
プレゼンテーションタイムスタンプ(PTS;Presenta
tionTime Stamp)として記録されている。ただし、この
PTSは、図28に示すように、各副映像データブロッ
ク(Y,W)内の先頭の副映像データパケットのヘッダ
3にだけ記録されるようになっている。
The packet header 3 contains a presentation time stamp (PTS; Presenter Time) at which the playback system should start display control of the sub-picture data block.
tionTime Stamp). However, as shown in FIG. 28, this PTS is recorded only in the header 3 of the first sub-picture data packet in each sub-picture data block (Y, W).

【0255】図30は、1以上の副映像パケットで構成
される副映像ユニット(図3の30参照)の直列配列状
態(n、n+1)と、そのうちの1ユニット(n+1)
のパケットヘッダに記述されたタイムスタンプPTS
と、このPTSに対応したユニット(n+1)の表示制
御の状態(それ以前の副映像の表示クリアと、これから
表示する副映像の表示制御シーケンスの指定)とを、例
示している。
FIG. 30 shows a serial arrangement state (n, n + 1) of sub-picture units (see 30 in FIG. 3) composed of one or more sub-picture packets, and one unit (n + 1) of them.
Time stamp PTS described in the packet header of
And a display control state of the unit (n + 1) corresponding to the PTS (clearing the display of the previous sub-picture and specifying the display control sequence of the sub-picture to be displayed).

【0256】副映像ヘッダ31には、副映像データパケ
ットのサイズ(2バイトのSPCSZ)と、パケット内
の表示制御シーケンステーブル33の記録開始位置(2
バイトのSPDCSQTA)とが記録されている。
In the sub-picture header 31, the size of the sub-picture data packet (SPCSZ of 2 bytes) and the recording start position (2
Byte SPDCSQTA).

【0257】表示制御シーケンステーブル33には、映
像データの表示開始時刻/表示終了時刻を示す副映像表
示制御タイムスタンプ(SPDCTS;Sub-Picture Di
splay Control Time Stamp)と、表示すべき副映像デー
タ(PXD)32の記録位置(SPNDCSQA;Sub-
Picture Next Display Control Sequence Address)
と、副映像データの表示制御コマンド(COMMAN
D)とを1グループとする表示制御シーケンス情報(D
CSQT;Display Control Sequence Table)が、1以
上記録される。
The display control sequence table 33 includes a sub-video display control time stamp (SPDCTS; Sub-Picture Dig) indicating the display start time / display end time of the video data.
splay Control Time Stamp) and the recording position of the sub-picture data (PXD) 32 to be displayed (SPNDSQSQA; Sub-
Picture Next Display Control Sequence Address)
And a sub-picture data display control command (COMMAN
D) and display control sequence information (D
One or more CSQT (Display Control Sequence Table) are recorded.

【0258】ここで、パケットヘッダ3内のタイムスタ
ンプPTSは、たとえばファイル(図2)先頭の再生開
始時刻のような、ファイル全体の再生を通じて基準とな
る時刻(SCR;System Clock Reference)からの相対
時間で規定されている。一方、表示制御シーケンステー
ブル33内の各タイムスタンプSPDCTSは、上記P
TSからの相対時間で規定される。
Here, the time stamp PTS in the packet header 3 is relative to a reference time (SCR; System Clock Reference) throughout reproduction of the entire file, such as the reproduction start time at the beginning of the file (FIG. 2). Specified in time. On the other hand, each time stamp SPDCTS in the display control sequence table 33 is
It is defined by the relative time from the TS.

【0259】次に、再生システムにおける副映像データ
パケットのタイムスタンプPTS処理について説明す
る。ここでは、再生システム内の副映像プロセサ(たと
えば図11のMPU112およびその周辺回路)におい
て、このPTS処理が実行されるものとする。
Next, the time stamp PTS processing of the sub-picture data packet in the reproducing system will be described. Here, it is assumed that the PTS processing is executed in the sub-picture processor (for example, the MPU 112 in FIG. 11 and its peripheral circuits) in the playback system.

【0260】図52は、副映像データをデコードする場
合において、副映像データブロックのバッファリング状
態が、タイムスタンプPTSのある副映像チャネルによ
ってどのように変化するかを説明するための図である。
FIG. 52 is a view for explaining how the buffering state of the sub-picture data block changes depending on the sub-picture channel having the time stamp PTS when decoding the sub-picture data.

【0261】(1)副映像プロセサ(図11、図17そ
の他)は、外部(光ディスクあるいは放送局など)から
送られてくる副映像データパケットの中から、予め選択
されたチャネルの副映像データパケットをデコードし、
そのパケット内にPTSがあるかどうかを調べる。
(1) The sub-picture processor (FIGS. 11 and 17 and others) selects a sub-picture data packet of a preselected channel from sub-picture data packets sent from the outside (such as an optical disk or a broadcasting station). And decode
It checks whether there is a PTS in the packet.

【0262】たとえば図52のチャネル*4fに示すよ
うにPTSが存在する場合は、そのPTSがパケットヘ
ッダ3から切り離される。その後、たとえば図28に示
すように副映像データの頭にPTSが付けられ、PTS
ヘッダ付きの副映像データが副映像バッファ(たとえば
図11のバッファ121)にバッファリング(格納)さ
れる。
For example, when a PTS exists as shown by the channel * 4f in FIG. 52, the PTS is separated from the packet header 3. Thereafter, for example, as shown in FIG.
The sub-picture data with the header is buffered (stored) in a sub-picture buffer (for example, buffer 121 in FIG. 11).

【0263】なお、図52のグラフは、PTS付きチャ
ネル*4fの副映像データパケットがバッファリングさ
れるにつれて、副映像バッファ121へのバッファリン
グ量が累積して行く様子を例示している。
Note that the graph of FIG. 52 illustrates a state in which the buffering amount in the sub-picture buffer 121 is accumulated as the sub-picture data packets of the channel * 4f with PTS are buffered.

【0264】(2)システムリセット後、副映像プロセ
サは、PTSを含んだ最初のパケットを受け取った直後
の垂直ブランキング期間中(ある表示画面フレーム/フ
ィールドから次の表示画面フレーム/フィールドへの切
り換わり期間中)にこのPTSを取り込み、取り込んだ
PTSを基準タイムカウンタSTCのカウント値と比較
する。この基準タイムカウンタSTCは、たとえばファ
イル先頭の再生開始時刻などファイル全体の再生を通じ
て基準となる時刻SCRからの経過時間を計る、副映像
プロセサ内のカウンタ(例えば図11のタイマ120の
一部)で構成される。
(2) After the system reset, the sub-picture processor performs switching between one display screen frame / field to the next display screen frame / field during the vertical blanking period immediately after receiving the first packet including the PTS. This PTS is fetched during the switching period, and the fetched PTS is compared with the count value of the reference time counter STC. The reference time counter STC is a counter (for example, a part of the timer 120 in FIG. 11) in the sub-picture processor that measures an elapsed time from a reference time SCR through reproduction of the entire file such as a reproduction start time at the beginning of the file. Be composed.

【0265】(3)上記PTSとSTCとの比較の結
果、STCがPTSより大きい場合には、その副映像デ
ータは直ちに表示処理される。一方、STCがPTSよ
り小さい場合には何の処理も行われない。この比較は、
次の垂直ブランキング期間中に、再度実行される。
(3) As a result of the comparison between the PTS and the STC, if the STC is larger than the PTS, the sub-picture data is immediately displayed. On the other hand, if the STC is smaller than the PTS, no processing is performed. This comparison is
It is executed again during the next vertical blanking period.

【0266】(4)副映像データの処理に入ると、同じ
垂直ブランキング期間中に、その副映像データパケット
内の表示制御シーケンステーブル33に記録されている
最初の副映像表示制御タイムスタンプSPDCTSが、
副映像プロセサ内のサブ基準タイムカウンタ(サブST
C)のカウント値と比較される。このサブSTCは、副
映像データブロックの再生開始時刻からの経過時間を計
る、副映像プロセサ内のサブ基準タイムカウンタ(例え
ば図11のタイマ120の他部)で構成される。したが
って、このサブSTCは、次の(後続の)副映像データ
ブロックに表示が切り替わる度に、全ビットが”0”に
クリアされ、その後再びインクリメント(タイムカウン
ト)を開始する。
(4) When the processing of the sub-picture data is started, during the same vertical blanking period, the first sub-picture display control time stamp SPDCTS recorded in the display control sequence table 33 in the sub-picture data packet is set. ,
The sub reference time counter (sub ST) in the sub video processor
It is compared with the count value of C). The sub STC is configured by a sub reference time counter (for example, the other part of the timer 120 in FIG. 11) in the sub video processor that measures the elapsed time from the reproduction start time of the sub video data block. Therefore, every time the display is switched to the next (subsequent) sub-picture data block, the sub STC clears all the bits to "0" and then starts incrementing (time counting) again.

【0267】(5)サブSTCと副映像表示制御タイム
スタンプSPDCTSとの比較の結果、サブSTCがS
PDCTSよりも大きい場合は、表示制御シーケンステ
ーブル33の先頭の表示制御シーケンスの制御データ
(DCSQT;たとえば図29のDCSQT0)が直ち
に実行され、副映像の表示処理が開始される。
(5) As a result of the comparison between the sub STC and the sub-picture display control time stamp SPDCTS,
If it is larger than PDCTS, the control data (DCSQT; for example, DCSQT0 in FIG. 29) of the first display control sequence in the display control sequence table 33 is immediately executed, and the display processing of the sub-picture is started.

【0268】(6)一旦表示処理が開始されると、垂直
ブランキング期間毎に、現在表示している副映像データ
ブロックの次の副映像データブロックの先頭パケットに
付加されているPTSが読み込まれ、この読み込まれた
PTSと基準タイムカウンタSTCのカウント値とが比
較される。
(6) Once the display process is started, the PTS added to the first packet of the sub-picture data block next to the currently displayed sub-picture data block is read every vertical blanking period. The read PTS is compared with the count value of the reference time counter STC.

【0269】この比較の結果、STCがPTSよりも大
きければ、図29のチャネルポインタが次の副映像デー
タブロックのPTSのアドレス値に設定され、処理すべ
き副映像データブロックが次のものに切り替えられる。
たとえば、図28を例にとると、上記チャネルポインタ
の設定変更により、副映像データブロックYから次の副
映像データブロックWに切り替わる。この時点で、副映
像データブロックYのデータはもう必要ないので、副映
像バッファ(たとえば図11ではメモリ108)にはデ
ータブロックYの大きさの空き領域が生じる。このた
め、新たに副映像データパケットをこの空き領域に転送
することができる。
As a result of this comparison, if the STC is larger than the PTS, the channel pointer in FIG. 29 is set to the address value of the PTS of the next sub-picture data block, and the sub-picture data block to be processed is switched to the next one. Can be
For example, in FIG. 28, the sub-picture data block Y is switched to the next sub-picture data block W by changing the setting of the channel pointer. At this point, since the data of the sub-picture data block Y is no longer needed, a free area of the size of the data block Y is generated in the sub-picture buffer (for example, the memory 108 in FIG. 11). Therefore, a new sub-picture data packet can be newly transferred to this empty area.

【0270】これによって、副映像データブロック(た
とえば図28のブロックW)のサイズおよびその切り換
わり時刻(ブロックYからブロックWへの切り換わり時
刻)から、副映像データパケットのバッファリング状態
(図52参照)を、(ブロックWの)副映像データのエ
ンコード時点で、事前に一意的に規定することができる
ようになる。したがって、映像・音声・副映像のパケッ
トをシリアル転送したときに、それぞれのデコーダ部の
バッファ(副映像デコーダの場合は図11その他のメモ
リ108)においてオーバーフローあるいはアンダーフ
ローが生じないようなビットストリームの生成が可能に
なる。
Thus, from the size of the sub-picture data block (for example, block W in FIG. 28) and its switching time (the switching time from block Y to block W), the buffering state of the sub-picture data packet (FIG. 52) ) Can be uniquely specified in advance at the time of encoding the sub-picture data (of the block W). Therefore, when the video / audio / sub-video packets are serially transferred, the bit stream of each of the decoder sections (in the case of the sub-video decoder, the other memory 108 in FIG. 11) does not cause overflow or underflow. Generation becomes possible.

【0271】また、上記PTSとSTCとの比較の結
果、STCがPTSよりも大きくない場合は副映像デー
タブロックの切り替えは行われず、表示制御シーケンス
テーブルポインタ(図29のDCSQTポインタ)が次
の表示制御シーケンステーブルDCSQTのアドレス値
に設定される。そして、現在の副映像データパケット内
の次のDCSQTの副映像表示制御タイムスタンプSP
DCTSとサブSTCとが比較される。この比較結果を
基に、次のDCSQTを実行するかどうかが判定され
る。この動作については、後に詳述する。
As a result of the comparison between the PTS and the STC, if the STC is not larger than the PTS, the sub-picture data block is not switched, and the display control sequence table pointer (DCSQT pointer in FIG. 29) changes to the next display. It is set to the address value of the control sequence table DCSQT. Then, the sub-video display control time stamp SP of the next DCSQT in the current sub-video data packet
DCTS and sub STC are compared. Based on the comparison result, it is determined whether or not to execute the next DCSQT. This operation will be described later in detail.

【0272】なお、副映像データパケット内の最後のD
CSQTは、次の表示制御シーケンステーブルDCSQ
Tとして自分自身を指し示しているので、前記(5)の
DCSQT処理は基本的には変わらない。
Note that the last D in the sub-picture data packet is
CSQT is the next display control sequence table DCSQ
Since T indicates itself, the DCSQT processing of (5) is basically unchanged.

【0273】(7)通常再生では、前記(4)、
(5)、(6)の処理が繰り返される。
(7) In normal reproduction, the above (4),
The processes of (5) and (6) are repeated.

【0274】なお、前記(6)の処理において、次の副
映像データブロックのPTSを読み込む際にそのPTS
を指し示すチャネルポインタ(図29参照)の値は、現
在の副映像データブロック内のパケットサイズ(SPC
SZ)を用いることで、求めるられる。
In the process (6), when reading the PTS of the next sub-picture data block, the PTS
The value of the channel pointer (see FIG. 29) pointing to the packet size (SPC
SZ).

【0275】同様に、表示制御シーケンステーブル33
内で次のDCSQTの副映像表示制御タイムスタンプS
PDCTSを指し示すDCSQTポインタの値は、この
テーブル33内に記述されているDCSQTのサイズ情
報(次の副映像表示制御シーケンスのアドレスSPND
CSQTA)を用いて求められる。
Similarly, the display control sequence table 33
Within the next DCSQT sub-video display control time stamp S
The value of the DCSQT pointer indicating the PDCTS is the size information of the DCSQT described in this table 33 (address SPND of the next sub-picture display control sequence).
CSQTA).

【0276】次に、副映像ヘッダ31、副映像データ3
2、および表示制御シーケンステーブル33それぞれの
詳細について説明する。
Next, the sub-picture header 31, sub-picture data 3
2 and the display control sequence table 33 will be described in detail.

【0277】図31は、副映像ユニットヘッダ(SPU
H)31の構造を示す。副映像ユニットヘッダSPUH
は、副映像データパケットのサイズ(SPDSZ)およ
びパケット内の表示制御シーケンステーブル33の記録
開始位置情報(副映像の表示制御シーケンステーブル開
始アドレスSPDCSQTA;DCSQの相対アドレス
ポインタ)を含んでいる。
FIG. 31 shows a sub-picture unit header (SPU
H) shows the structure of 31. Sub-picture unit header SPUH
Contains the size (SPDSZ) of the sub-picture data packet and the recording start position information of the display control sequence table 33 in the packet (sub-picture display control sequence table start address SPDCSQTA; relative address pointer of DCSQ).

【0278】なお、アドレスSPDCSQTAで指し示
される副映像表示制御シーケンステーブルSPDCSQ
Tの内容は、図32に示すように、複数の表示制御シー
ケンスDCSQ1〜DCSQnで構成されている。
The sub-picture display control sequence table SPDCSQ indicated by the address SPDCSQTA
As shown in FIG. 32, the contents of T are composed of a plurality of display control sequences DCSQ1 to DCSQn.

【0279】また、各表示制御シーケンスDCSQ(1
〜n)は、図33に示すように、副映像の表示制御開始
時間を示す副映像表示制御タイムスタンプSPDCTS
と、次の表示制御シーケンスの位置を示すアドレスSP
NDCSQAと、1以上の副映像表示制御コマンドSP
DCCMDとを含んでいる。
Each display control sequence DCSQ (1
To n), as shown in FIG. 33, a sub-picture display control time stamp SPDCTS indicating a sub-picture display control start time.
And an address SP indicating the position of the next display control sequence
NDSQA and one or more sub-picture display control commands SP
DCCMD.

【0280】副映像データ32は、個々の副映像データ
パケットと1対1で対応するデータ領域(PXDエリ
ア)の集まりで構成されている。
The sub-picture data 32 is composed of a group of data areas (PXD areas) corresponding one-to-one with individual sub-picture data packets.

【0281】ここで、副映像データブロックが切り替わ
るまでは、同じデータ領域中の任意のアドレスの副映像
画素データPXDを読み出せるるようになっている。こ
れにより、1つの副映像表示イメージに固定されない、
任意の副映像表示(たとえば副映像のスクロール表示)
が可能となる。この任意のアドレスは、副映像データ
(画素データPXD)の表示開始アドレスを設定するコ
マンド(図34のコマンドテーブル中のSETDSPX
A)により設定される。
Here, until the sub-picture data block is switched, the sub-picture pixel data PXD at an arbitrary address in the same data area can be read. Thereby, it is not fixed to one sub-picture display image,
Arbitrary sub-picture display (for example, sub-picture scroll display)
Becomes possible. This arbitrary address is a command (SETDSPX in the command table of FIG. 34) for setting the display start address of the sub-picture data (pixel data PXD).
A).

【0282】図43は、図34に例示されたコマンドセ
ットのうち、副映像画素データの表示開始アドレスをセ
ットするコマンドSETDSPXAのビット構成を示
す。以下、このコマンドの構成の意義について説明す
る。
FIG. 43 shows the bit configuration of the command SETDSPXA for setting the display start address of the sub-picture pixel data in the command set exemplified in FIG. Hereinafter, the significance of the configuration of this command will be described.

【0283】副映像データ32に含まれる副映像ライン
のラインデータサイズが異なる場合、直前のラインデー
タをデコードした後でしか次のラインの先頭アドレスを
判別することはできない。したがって、従来のようにラ
イン番号順に画像データが並べられていると、インター
レースモード時に1ライン分スキップしながら副映像画
素データ(PXD)をバッファ(メモリ108)から読
み出すことが、非常に困難になる。
When the line data size of the sub-picture lines included in the sub-picture data 32 is different, the head address of the next line can be determined only after decoding the previous line data. Therefore, if the image data is arranged in line number order as in the related art, it is very difficult to read the sub-picture pixel data (PXD) from the buffer (memory 108) while skipping one line in the interlace mode. .

【0284】そこで、図58に示すように、個々の副映
像データパケットに対応するデータ領域毎に、副映像デ
ータ32をトップフィールド用領域61とボトムフィー
ルド用領域62とに分けて記録するようにしている。そ
して、インターレースモード時はトップフィールドおよ
びボトムフィールドの2つの先頭アドレスを設定できる
ようにするために、コマンドSETDSPXAに、トッ
プフィールド用開始アドレス領域63とボトムフィール
ド用開始アドレス領域64とを設けている。
Therefore, as shown in FIG. 58, the sub-picture data 32 is divided into a top field area 61 and a bottom field area 62 for each data area corresponding to each sub-picture data packet. ing. In the interlace mode, a command SETDSPXA is provided with a top field start address area 63 and a bottom field start address area 64 in order to set two start addresses of a top field and a bottom field.

【0285】なお、ノンインターレースモードの場合
は、1フィールド分の副映像データだけを記録してお
き、トップフィールド用開始アドレス領域63およびボ
トムフィールド用開始アドレス領域64の2領域に同じ
アドレスを記録しておけばよい。
In the case of the non-interlace mode, only one field of sub-picture data is recorded, and the same address is recorded in the two fields of the top field start address area 63 and the bottom field start address area 64. It should be left.

【0286】図59は、表示制御シーケンステーブル3
3の具体例を示す。前述したように、表示制御シーケン
ステーブル33内の1つの表示制御シーケンス情報(D
CSQT)には、副映像表示制御タイムスタンプ(SP
DCTS)および副映像データ記録位置(SPNDCS
QA)の後に、複数の表示制御コマンド(COMMAN
D3、COMMAND4など)とそのコマンドにより設
定される各種パラメータデータが配置されている。そし
て、表示制御の終了を示す終了コマンド(エンドコー
ド)が最後に付加されている。
FIG. 59 shows a display control sequence table 3
3 shows a specific example. As described above, one piece of display control sequence information (D
CSQT) includes a sub-picture display control time stamp (SP
DCTS) and sub video data recording position (SPNDCS)
QA) and a plurality of display control commands (COMMAN
D3, COMMAND4, etc.) and various parameter data set by the command are arranged. Then, an end command (end code) indicating the end of the display control is added at the end.

【0287】次に、表示制御シーケンステーブル33の
処理手順を説明する。
Next, a processing procedure of the display control sequence table 33 will be described.

【0288】(1)まず、表示制御シーケンステーブル
33の最初のDCSQT(図29ではDCSQT0)に
記録されているタイムスタンプ(SPDCTS)が、副
映像プロセサのサブSTC(たとえば図11のタイマ1
20の一機能)と比較される。
(1) First, the time stamp (SPDCTS) recorded in the first DCSQT (DCSQT0 in FIG. 29) of the display control sequence table 33 matches the sub STC of the sub-picture processor (for example, the timer 1 in FIG. 11).
20 functions).

【0289】(2)比較の結果、サブSTCがタイムス
タンプSPDCTSよりも大きい場合には、表示制御シ
ーケンステーブル33内の全ての表示制御コマンドCO
MMANDが、表示制御終了コマンドCMDEND(図
34)が現れるまで実行される。
(2) As a result of the comparison, if the sub STC is larger than the time stamp SPDCTS, all display control commands CO in the display control sequence table 33
MMAND is executed until the display control end command CMDEND (FIG. 34) appears.

【0290】(3)表示制御が開始されたあとは、一定
時間毎(たとえば垂直ブランキング期間毎)に、次の表
示制御シーケンステーブルDCSQTに記録されている
副映像表示制御タイムスタンプSPDCTSとサブST
Cとを比較することにより、次のDCSQTに更新する
か(つまり図29のDCSQTポインタを次のDCSQ
Tに移すか)どうかが、判定される。
(3) After the display control is started, the sub-video display control time stamp SPDCTS and the sub ST recorded in the next display control sequence table DCSQT are taken at fixed time intervals (for example, every vertical blanking period).
C to determine whether to update to the next DCSQT (ie, change the DCSQT pointer in FIG. 29 to the next DCSQT).
T) is determined.

【0291】ここで、表示制御シーケンステーブル33
内のタイムスタンプSPDCTSは、PTSが更新され
てから(つまり副映像データブロックが更新されてか
ら)の相対時間で記録されているので、副映像データパ
ケットのPTSが変わってもSPDCTSを書き替える
必要はない。したがって、同じ副映像データ32を複数
の異なる時刻で表示する場合でも全く同じ表示制御シー
ケンステーブルDCSQTを用いることができる。すな
わち、表示制御シーケンステーブルDCSQTをリロケ
ータブルとすることができる。
Here, the display control sequence table 33
Since the time stamp SPDCTS is recorded at a relative time after the PTS is updated (that is, after the sub-picture data block is updated), it is necessary to rewrite the SPDCTS even if the PTS of the sub-picture data packet changes. There is no. Therefore, the same display control sequence table DCSQT can be used even when the same sub-video data 32 is displayed at a plurality of different times. That is, the display control sequence table DCSQT can be made relocatable.

【0292】次に、副映像の表示制御コマンドの詳細に
ついて説明する。図34は、副映像表示制御コマンドS
PDCCMDの一覧を示す。主な副映像表示制御コマン
ドとしては、次のようなものがある。
Next, details of the sub-picture display control command will be described. FIG. 34 shows a sub-picture display control command S
3 shows a list of PDCCMDs. The main sub-video display control commands include the following.

【0293】(1)副映像画素データの表示開始タイミ
ングをセットするコマンドSTADSP 図37は、このコマンドSTADSPの構成を示す。こ
れは、副映像データ32の表示開始制御を実行するコマ
ンドである。すなわち、あるDCSQTからこのコマン
ドSTADSPを含むDCSQTに切り替わったとき
に、副映像データ32の表示が、このコマンドを含むD
CSQTのタイムスタンプSPDCTSで示された時刻
から開始されることになる。
(1) Command STADSP for Setting Display Start Timing of Sub-picture Pixel Data FIG. 37 shows the configuration of this command STADSP. This is a command for executing the display start control of the sub-picture data 32. That is, when switching from a certain DCSQT to a DCSQT including this command STADSP, the display of the sub-picture data 32 is changed to a DSQ including this command.
It starts from the time indicated by the time stamp SPDCTS of CSQT.

【0294】副映像プロセサ(たとえば図11のMPU
112)は、このコマンドをデコードすると、(このコ
マンドをアクセスした時点ではこのコマンドが属するD
CSQTのSPDCTSで示された時刻はすぎているの
で)直ちに、副映像プロセサ内部の表示制御系のイネー
ブルビットを、アクティブ状態にする。
A sub-picture processor (for example, MPU in FIG. 11)
112) decodes this command, and (when this command is accessed, the D to which this command belongs)
Immediately, the enable bit of the display control system in the sub-picture processor is activated (because the time indicated by SPDCTS of CSQT has passed).

【0295】(2)副映像画素データの表示終了タイミ
ングをセットするコマンドSTPDSP 図38は、このコマンドSTPDSPの構成を示す。こ
れは、副映像データ32の表示終了制御を実行するため
のコマンドである。副映像プロセサは、このコマンドを
デコードすると、(このコマンドをアクセスした時点で
はこのコマンドが属するDCSQTのSPDCTSで示
された時刻はすぎているので)直ちに、副映像プロセサ
内部の表示制御系のイネーブルビットを、アクティブ状
態にする。
(2) Command STPDSP for Setting Display End Timing of Sub-Video Pixel Data FIG. 38 shows the structure of this command STPDSP. This is a command for executing the display end control of the sub-picture data 32. When the sub-picture processor decodes this command, immediately after the command is accessed (since the time indicated by the SPDCTS of the DCSQT to which this command belongs has passed), the enable bit of the display control system inside the sub-picture processor is immediately transmitted. To the active state.

【0296】(3)副映像画素データのカラーコードを
セットするコマンドSETCOLOR 図39は、このコマンドSETCOLORの構成を示
す。これは、副映像画素データの色コードを設定するた
めのコマンドである。このコマンドによって、副映像
は、文字あるいは模様などのパターン画素と、パターン
画素のふちどり等の強調画素と、副映像が表示される範
囲領域でパターン画素および強調画素以外の領域の画素
である背景画素とに分けて、色情報を設定することがで
きる。
(3) Command SETCOLOR for Setting Color Code of Sub-Pixel Pixel Data FIG. 39 shows the structure of this command SETCOLOR. This is a command for setting the color code of the sub-picture pixel data. By this command, the sub-picture is composed of a pattern pixel such as a character or a pattern, an emphasized pixel such as a trimming of the pattern pixel, and a background pixel which is a pixel in a region other than the pattern pixel and the emphasized pixel in a region where the sub-image is displayed. And color information can be set.

【0297】副映像プロセサは、図40に示すように、
このコマンドSETCOLORによって色コードを設定
できる色レジスタ1210を内蔵している。レジスタ1
210は、一旦色コードが設定されると、同じコマンド
で再設定がなされるまで、この色コードデータを保持す
る。副映像データ32で示される画素種別(たとえば図
5の2ビット画素データにより特定される種別)に従っ
た色データが色レジスタ1210から選択(SEL0)
される。
As shown in FIG. 40, the sub-picture processor
A color register 1210 for setting a color code by the command SETCOLOR is provided. Register 1
Once the color code is set, the 210 holds the color code data until the color code is reset by the same command. Color data according to the pixel type (for example, the type specified by the 2-bit pixel data in FIG. 5) indicated by the sub-video data 32 is selected from the color register 1210 (SEL0).
Is done.

【0298】副映像プロセサはまた、副映像画素データ
の色変化およびコントラスト変化を設定するコマンド
(CHGCOLCON)によって設定される変化色デー
タレジスタ1220を備えている。このレジスタ122
0から選択(SEL0)されたデータ出力がアクティブ
である場合は、レジスタ1210からの選択出力よりも
レジスタ1220からの選択出力の方が優先して選択
(SEL1)され、その選択結果が色データとして出力
される。
The sub-picture processor also has a changing color data register 1220 set by a command (CHGCOLCON) for setting a color change and a contrast change of sub-picture pixel data. This register 122
When the data output selected from 0 (SEL0) is active, the selected output from the register 1220 is preferentially selected over the selected output from the register 1210 (SEL1), and the selection result is used as color data. Is output.

【0299】(4)主映像に対する副映像画素データの
コントラストをセットするコマンドSETCONTR 図41は、このコマンドSETCONTRの構成を示
す。これは、コマンドSETCOLORと同様、図40
で例示した4種類の画素に対して色コードデータの代わ
りにコントラストデータを設定するためのコマンドであ
る。
(4) Command SETCONTR for Setting Contrast of Sub-Pixel Pixel Data for Main Video FIG. 41 shows the configuration of this command SETCONTR. This is similar to the command SETCOLOR.
Is a command for setting contrast data instead of color code data for the four types of pixels exemplified in FIG.

【0300】(5)主映像上における副映像画素データ
の表示エリアをセットするコマンドSETDAREA 図42は、このコマンドSETDAREAの構成を示
す。これは、副映像画素データ32を表示する位置を指
定するためのコマンドである。
(5) Command SETDAREA for Setting Display Area of Sub-Video Pixel Data on Main Video FIG. 42 shows the configuration of this command SETDAREA. This is a command for specifying a position at which the sub-picture pixel data 32 is displayed.

【0301】(6)副映像画素データの表示開始アドレ
スをセットするコマンドSETDSPXA 図43は、このコマンドSETDSPXAの構成を示
す。これは、副映像画素データ32の表示開始アドレス
を設定するためのコマンドである。
(6) Command SETDSPXA for Setting Display Start Address of Sub-Video Pixel Data FIG. 43 shows the configuration of this command SETDSPXA. This is a command for setting the display start address of the sub-picture pixel data 32.

【0302】(7)副映像画素データのカラーコードお
よび主映像に対する副映像画素データのコントラストの
切換をセットするコマンドCHGCOLCON 図44は、このコマンドCHGCOLCONの構成を示
す。これは、副映像画素データ32の色コードおよび主
映像に対する副映像画素データ32のコントラストを表
示中に変更するためのコマンドである。
(7) Command CHGCOLCON for Setting Color Code of Sub-picture Pixel Data and Switching of Contrast of Sub-picture Pixel Data to Main Picture FIG. 44 shows the configuration of this command CHGCOLCON. This is a command for changing the color code of the sub-picture pixel data 32 and the contrast of the sub-picture pixel data 32 with respect to the main picture during display.

【0303】このコマンドCHGCOLCONは、図4
4に示すように、画素制御データのサイズ(拡張フィー
ルドサイズ)および画素制御データ(PCD)を含んで
いる。
This command CHGCOLCON is executed in accordance with FIG.
As shown in FIG. 4, it includes the size of pixel control data (extended field size) and pixel control data (PCD).

【0304】なお、図34のコマンドテーブルは、上述
したコマンドの他に、副映像画素データの表示開始タイ
ミングを強制的にセットするコマンドFSTADSPと
(図36参照)、および副映像の表示制御を終了するコ
マンドCMDEND(図45参照)を含んでいる。
The command table shown in FIG. 34 includes, in addition to the above-mentioned commands, a command FSTADSP for forcibly setting the display start timing of the sub-picture pixel data (see FIG. 36), and ending the sub-picture display control. Command CMDEND (see FIG. 45).

【0305】図35、図46および図47は、画素制御
データPCDの構成を説明する図である。図35に示す
ように、画素制御データPCDは、ライン制御情報LC
INF、画素制御情報PCINF、および画素制御デー
タの終了を示す終了コードで、構成されている。
FIG. 35, FIG. 46 and FIG. 47 are diagrams illustrating the configuration of pixel control data PCD. As shown in FIG. 35, the pixel control data PCD includes the line control information LC
INF, pixel control information PCINF, and an end code indicating the end of the pixel control data.

【0306】ここで、ライン制御情報LCINFは、図
46に示すように、変更(変化)開始ライン番号、変更
数(変化点数)、変更(変化)終了ライン番号(または
継続ライン数)で構成されている。つまり、輪郭補正
色、副映像色、主映像に対する副映像のコントラスト制
御を、表示フレーム上のどのラインから開始し、それら
のライン上で何回、輪郭補正色、副映像色、コントラス
トが変更され(または変化し)、さらにそれらに共通し
た変更(変化)がどのラインまで続くかが、ライン制御
情報LCINFにより示される。
Here, as shown in FIG. 46, the line control information LCINF includes a change (change) start line number, a change number (change point number), and a change (change) end line number (or continuation line number). ing. In other words, the contour control color, sub-picture color, and contrast control of the sub-picture with respect to the main picture are started from which line on the display frame, and the contour correction color, the sub-picture color, and the contrast are changed many times on those lines. The line control information LCINF indicates up to which line the change (or change) and the change (change) common to them continue.

【0307】また、画素制御情報PCINFは、ライン
制御情報LCINFによって示されるライン上におい
て、輪郭補正色、副映像色、およびコントラストを変更
(変化)させる画素位置と、変更(変化)後の輪郭補正
色、副映像色、およびコントラストなどの変更(変化)
内容とを、示している。
The pixel control information PCINF includes a pixel position at which the contour correction color, the sub-picture color, and the contrast are changed (changed) on the line indicated by the line control information LCINF, and the contour correction after the change (change). Changes (changes) in color, sub-picture color, contrast, etc.
And the contents.

【0308】このライン制御情報LCINFおよび画素
制御情報PCINFからなる画素制御データPCDは、
副映像表示フレームに対して必要数設定される。
The pixel control data PCD including the line control information LCINF and the pixel control information PCINF is
The required number is set for the sub-picture display frame.

【0309】たとえば図48に示すような副映像表示フ
レームのイメージに対して設定される画素表示データP
CDは、図49に示すようになる。
For example, pixel display data P set for an image of a sub-picture display frame as shown in FIG.
The CD is as shown in FIG.

【0310】すなわち、この具体例において、変更(変
化)が始まっているラインは「ライン4」であるので、
変更(変化)開始ライン番号は「4」となり、画素が変
更(変化)している位置は「位置A」、「位置B」、
「位置C」の3カ所にあるので、画素変更数(画素変化
点数)は「3」となり、この画素の共通変化状態が「ラ
イン11」まで続くので、継続ライン数は「7」とな
る。
That is, in this specific example, the line where the change (change) has started is “line 4”.
The change (change) start line number is “4”, and the positions where the pixels are changed (changed) are “position A”, “position B”,
Since there are three positions at “position C”, the number of pixel changes (the number of pixel change points) is “3”, and the common change state of this pixel continues up to “line 11”, so the number of continuous lines is “7”.

【0311】また、「ライン12」は画素変化状態がそ
れまでと異なるものであり、次の「ライン13」は画素
変化がないため、変化開始ライン番号を「12」とし、
変化点数を「2」とし、継続ライン数を「1」とする別
のライン制御情報LCINFが、設定される。
[0311] Also, "line 12" has a pixel change state different from that before, and since the next "line 13" has no pixel change, the change start line number is set to "12".
Another line control information LCINF that sets the number of change points to “2” and the number of continuous lines to “1” is set.

【0312】さらに、「ライン14」は4箇所の画素変
化を含み、次の「ライン15」は画素変化がないため、
変化開始ライン番号を「14」とし、変化点数を「4」
とし、継続ライン数を「1」とする別のライン制御情報
LCINFが設定される。そして、最後に終了コードが
設定される。
Further, "line 14" includes four pixel changes, and the next "line 15" has no pixel change.
Change start line number is "14" and change point number is "4"
And another line control information LCINF for setting the number of continuous lines to “1” is set. Finally, an end code is set.

【0313】次に、上記ライン制御情報LCINFおよ
び画素制御情報PCINFを用いた表示制御の手順につ
いて説明する。
Next, a procedure of display control using the line control information LCINF and the pixel control information PCINF will be described.

【0314】(1)副映像の表示制御は、表示制御シー
ケンステーブル33(図29のDCSQT1〜DCSQ
TN)に含まれる制御コマンド(COMMAND1〜)
を、副映像表示フィールド毎に繰り返し実行すること
で、なされる。この制御コマンドの内容は、図34の副
映像表示制御コマンドSPDCCMDのテーブルで示さ
れている。
(1) The display control of the sub-picture is performed by the display control sequence table 33 (DCSQT1-DCSQ shown in FIG. 29).
TN) (COMMAND1)
Is repeatedly performed for each sub-picture display field. The contents of this control command are shown in the table of the sub-picture display control command SPDCCMD in FIG.

【0315】どの表示制御シーケンス(DCSQT1〜
DCSQTN)のコマンド(図34の各種コマンド)が
実行されるかは、図29のDCSQTポインタにより決
められる。
Which display control sequence (DCSQT1 to DCSQT1)
Whether the DCSQTN) command (the various commands in FIG. 34) is executed is determined by the DCSQT pointer in FIG.

【0316】(2)図34に示される各表示制御コマン
ド(STADSP,STPDSP,SETCOLOR,
SETCONTR,SETDAREA,SETDSPX
A,CHGCOLCONなど)により設定された各種パ
ラメータは、同じコマンドにより書き換えられない限
り、副映像情報のデコード中、副映像プロセサ(たとえ
ば図11のMPU112)の内部レジスタに保持され
る。しかし、この内部レジスタに保持された各種パラメ
ータは、副映像データブロックが切り換わる(たとえば
図28のブロックYからブロックWへの切換時)と、一
部のパラメータ(LCINF,PCINF)を除き、全
てクリアされる。
(2) Each display control command (STADSP, STPDSP, SETCOLOR,
SETCONTR, SETDAREA, SETDSPX
A, CHGCOLON, etc.) are held in an internal register of the sub-picture processor (for example, the MPU 112 in FIG. 11) during decoding of the sub-picture information unless rewritten by the same command. However, the various parameters held in the internal register are all except for some parameters (LCINF, PCINF) when the sub-picture data block is switched (for example, when switching from block Y to block W in FIG. 28). Cleared.

【0317】なお、図35の画素制御データPCDのパ
ラメータ(LCINF,PCINF)は、図34のコマ
ンドCHGCOLCONが再実行されるまで、MPU1
12の内部レジスタに保持されるようになっている。
Note that the parameters (LCINF, PCINF) of the pixel control data PCD in FIG. 35 remain unchanged until the command CHGCOLCON in FIG. 34 is executed again.
Twelve internal registers are held.

【0318】(3)ハイライトモードになると、システ
ムMPU112によって設定されたパラメータLCIN
FおよびPCINFによって表示制御が行われ、副映像
チャネルデータのLCINFおよびPCINFは一切無
視される。設定されたこれらのパラメータは、ハイライ
トモード中に再びシステムMPU112によって再設定
されるか、ノーマルモードになって副映像データ中のL
CINFおよびPCINFが再設定されるまでは、MP
U内部で保持され、それらのパラメータによる副映像表
示が継続される。
(3) In the highlight mode, the parameter LCIN set by the system MPU 112
Display control is performed by F and PCINF, and LCINF and PCINF of the sub-picture channel data are completely ignored. These set parameters are reset by the system MPU 112 again during the highlight mode, or are set to the normal mode and the L
Until CINF and PCINF are reset, MP
U, and the sub-picture display based on those parameters is continued.

【0319】(4)表示領域は、水平方向・垂直方向と
もに、開始と終了で指定された番号のラインおよびドッ
トで設定される。したがって、1ラインだけを表示する
場合は、表示開始ラインと表示終了ラインの番号は同じ
となる。また、表示させないばあいには、表示終了コマ
ンドで表示を停止させる。
(4) The display area is set by lines and dots of numbers designated by the start and end in both the horizontal and vertical directions. Therefore, when only one line is displayed, the numbers of the display start line and the display end line are the same. If not, the display is stopped by a display end command.

【0320】図53は、図3に示すような副映像ユニッ
ト30を生成する方法の一例を説明するフローチャート
である。
FIG. 53 is a flowchart for explaining an example of a method for generating the sub-picture unit 30 as shown in FIG.

【0321】副映像として、たとえばビデオ(主映像)
の台詞に対応した字幕および/またはイメージが使用さ
れる場合、この台詞字幕/イメージがビットマップデー
タ化される(ステップST10)。このビットマップデ
ータを作成するときには、字幕部分をビデオの画面のど
の位置のどの領域に表示するかを、決定しなければなら
ない。そのために、表示制御コマンドSETDAREA
(図34参照)のパラメータが決定される(ステップS
T12)。
As a sub-picture, for example, a video (main picture)
When the caption and / or image corresponding to the dialogue is used, the dialogue caption / image is converted into bitmap data (step ST10). When creating this bitmap data, it is necessary to determine in which position and on which region of the video screen the subtitle portion is to be displayed. Therefore, the display control command SETDAREA
(See FIG. 34) are determined (step S
T12).

【0322】副映像の表示位置(空間的パラメータ)が
決定されると、副映像を構成する画素データPXDのエ
ンコードに移る(主映像全体をエンコードするわけでは
ない;このPXDエンコードの詳細は、図5〜図14を
参照して別の箇所で説明されている)。その際、字幕
(副映像)の色、字幕領域の背景色、字幕色・背景色の
ビデオ主映像に対する混合比が決定される。そのため
に、表示制御コマンドSETCOLORおよびSETC
ONTR(図34参照)のパラメータが決定される(ス
テップST14)。
When the display position (spatial parameter) of the sub-picture is determined, the process shifts to the encoding of the pixel data PXD constituting the sub-picture (the whole main picture is not encoded; the details of this PXD encoding are shown in FIG. 5 to 14 are described elsewhere). At this time, the color of the caption (sub-picture), the background color of the caption area, and the mixing ratio of the caption color / background color to the video main picture are determined. Therefore, the display control commands SETCOLOR and SETC
The parameters of the ONTR (see FIG. 34) are determined (step ST14).

【0323】次に、作成したビットマップデータをビデ
オの台詞に合わせて表示すべきタイミングが決定され
る。このタイミング決定は副映像タイムスタンプPTS
により行なわれる。その際、タイムスタンプPTSの最
大限度時刻と、表示制御コマンドSTADSP、STP
DSPおよびCHGCOLCON(図34参照)の各パ
ラメータ(時間的パラメータ)が決定される(ステップ
ST16)。
Next, the timing at which the created bitmap data is to be displayed in accordance with the dialogue of the video is determined. This timing is determined by the sub-picture time stamp PTS.
It is performed by At this time, the maximum time of the time stamp PTS and the display control commands STADSP, STP
Each parameter (temporal parameter) of the DSP and CHGCOLCON (see FIG. 34) is determined (step ST16).

【0324】ここで、副映像タイムスタンプPTSは、
MPEG2システムレイヤのターゲットデコーダバッフ
ァの消費モデルから、最終的に決定される。ここでは、
字幕の表示を開始する時刻が、副映像タイムスタンプP
TSの最大限度時刻として決められる。
Here, the sub-picture time stamp PTS is
It is finally determined from the consumption model of the target decoder buffer of the MPEG2 system layer. here,
The time at which the display of subtitles is started is the sub-picture time stamp P
It is determined as the maximum time of the TS.

【0325】表示制御コマンドSTADSPおよびST
PDSPは、副映像タイムスタンプPTSからの相対時
刻として記録される。そのため、PTSが決まるまでは
コマンドSTADSPおよびSTPDSPを決定するこ
とはできない。そこで、この実施形態では、絶対時刻を
決めておき、PTSの絶対時間が決まってから、その相
対値を決定するようにしている。
Display control commands STADSP and ST
The PDSP is recorded as a relative time from the sub-picture time stamp PTS. Therefore, the commands STADSP and STPDSP cannot be determined until the PTS is determined. Therefore, in this embodiment, the absolute time is determined, and the relative value is determined after the absolute time of the PTS is determined.

【0326】また、作成した字幕に対して、空間的・時
間的に表示色や表示領域を変化させたい場合には、その
変化に基づいたコマンドCHGCOLCONのパラメー
タが決定される。
When it is desired to change the display color or display area spatially and temporally with respect to the created caption, the parameters of the command CHGCOLCON are determined based on the change.

【0327】副映像の表示位置(空間的パラメータ)お
よび表示タイミング(時間的パラメータ)が(仮に)決
定されると、副映像表示制御シーケンステーブルDCS
QTの内容(DCSQ)が作成される(ステップST1
8)。具体的には、表示制御シーケンステーブルDCS
Qの表示制御開始時間SPDCTS(図33参照)の値
は、表示制御コマンドSTADSP(表示開始タイミン
グ)の発効時刻および表示制御コマンドSTPDSP
(表示終了タイミング)の発効時刻に準拠して、決定さ
れる。
When the display position (spatial parameter) and display timing (temporal parameter) of the sub-picture are determined (tentatively), the sub-picture display control sequence table DCS
QT contents (DCSQ) are created (step ST1)
8). Specifically, the display control sequence table DCS
The value of the display control start time SPDCTS (see FIG. 33) of Q is determined by the effective time of the display control command STADSP (display start timing) and the display control command STPDSP.
(Display end timing) is determined based on the effective time.

【0328】作成された画素データPXD32および表
示制御シーケンステーブルDCSQT33を合わせる
と、副映像データユニット30(図3参照)のサイズを
決定することができる。そこで、そのサイズを元に副映
像ユニットヘッダSPUH31のパラメータSPDSZ
(副映像サイズ;図31参照)およびSPDCSQTA
(表示制御シーケンステーブルの開始アドレス;図31
参照)を決めて、副映像ユニットヘッダSPUH31を
作成する。その後、SPUH31とPXD32とDCS
QT33とを結合することにより、1つの字幕に対する
副映像ユニットが作成される(ステップST20)。
By combining the created pixel data PXD 32 and display control sequence table DCSQT 33, the size of the sub-picture data unit 30 (see FIG. 3) can be determined. Therefore, based on the size, the parameter SPDSZ of the sub-picture unit header SPUH31 is used.
(Sub-picture size; see FIG. 31) and SPDCSQTA
(Start address of display control sequence table; FIG. 31)
) Is determined, and the sub-picture unit header SPUH31 is created. Then, SPUH31, PXD32 and DCS
By combining with QT33, a sub-picture unit for one subtitle is created (step ST20).

【0329】作成された副映像ユニット30のサイズが
所定値(2048バイトあるいは2kバイト)を超える
場合は(ステップST22イエス)、2kバイト単位で
複数パケットに分割される(ステップST24)。この
場合、タイムスタンプPTSは、副映像ユニット30の
先頭になるパケットにのみ記録される(ステップST2
6)。
If the size of the created sub-picture unit 30 exceeds a predetermined value (2048 bytes or 2 kbytes) (YES in step ST22), it is divided into a plurality of packets in units of 2k bytes (step ST24). In this case, the time stamp PTS is recorded only in the packet at the head of the sub-picture unit 30 (step ST2).
6).

【0330】作成された副映像ユニット30のサイズが
所定値(2kバイト)以内である場合は(ステップST
22ノー)、1つだけパケットが生成され(ステップS
T23)、タイムスタンプPTSはそのパケットの頭に
記録される(ステップST26)。
If the size of the created sub-picture unit 30 is within a predetermined value (2 kbytes) (step ST
22 No) Only one packet is generated (step S
T23), the time stamp PTS is recorded at the beginning of the packet (step ST26).

【0331】こうして出来上がった1以上のパケットは
パック化され、ビデオその他のパックと合わされて、1
本のデータストリームが出来上がる(ステップST2
8)。このとき、各パックのならび順は、MPEG2シ
ステムレイヤのターゲットデコーダバッファの消費モデ
ルから、そのシーケンス記録コードSRCと副映像タイ
ムスタンプPTSとを基に決定される。ここで初めてP
TSが確定し、これにより図33の各パラメータ(SP
DCTS等)が最終的に決定されることになる。
[0331] One or more packets thus completed are packed and combined with a video or other pack to form one packet.
A book data stream is completed (step ST2).
8). At this time, the order of the packs is determined from the consumption model of the target decoder buffer in the MPEG2 system layer based on the sequence recording code SRC and the sub-picture time stamp PTS. P for the first time here
TS is determined, and as a result, each parameter (SP
DCTS, etc.) will be finally determined.

【0332】図54は、図53の処理手順にしたがって
生成された副映像データストリームのパック分解および
デコードを並列処理する手順の一例を説明するフローチ
ャートである。
FIG. 54 is a flowchart for explaining an example of a procedure for performing parallel processing of pack decomposition and decoding of the sub-picture data stream generated according to the processing procedure of FIG.

【0333】まず、デコードシステムは、転送されてく
るストリームのIDを読み取って、選択された副映像パ
ック(データストリームから分離されたもの)だけを副
映像デコーダ(たとえば図11または図17の副映像デ
コーダ101)に転送する(ステップST40)。
[0333] First, the decoding system reads the ID of the stream to be transferred, and stores only the selected sub-picture pack (separated from the data stream) into the sub-picture decoder (for example, the sub-picture pack shown in FIG. 11 or FIG. 17). (Step ST40).

【0334】最初のパック転送が行われると、インデッ
クスパラメータ”i”が「1」にセットされ(ステップ
ST42)、1番目の副映像パックの分解処理(ステッ
プST44;図55を参照して後述する)が実行され
る。
When the first pack transfer is performed, the index parameter "i" is set to "1" (step ST42), and the first sub-picture pack is decomposed (step ST44; described later with reference to FIG. 55). ) Is executed.

【0335】分解されたパック(図9下部に示すような
圧縮された副映像データPXDを含む)は、副映像バッ
ファ(図11または図17ではメモリ108)に一時格
納され(ステップST46)、インデックスパラメー
タ”i”が1つインクリメントされる(ステップST5
0)。
The decomposed pack (including the compressed sub-picture data PXD as shown in the lower part of FIG. 9) is temporarily stored in a sub-picture buffer (memory 108 in FIG. 11 or 17) (step ST46), and is indexed The parameter "i" is incremented by one (step ST5).
0).

【0336】インクリメントされたi番目のパックが存
在すれば、すなわちステップST44で分解処理したパ
ックが最終パックでなければ(ステップST52ノ
ー)、インクリメントされたi番目の副映像パックに対
する分解処理(ステップST44)が実行される。
If the incremented i-th pack is present, that is, if the pack decomposed in step ST44 is not the last pack (No in step ST52), the decomposing process for the incremented i-th sub-picture pack (step ST44) ) Is executed.

【0337】分解されたi番目の副映像パック(ここで
は2番目のパック)は、1番目に分解されたパックと同
様に副映像バッファ(メモリ108)に一時格納され
(ステップST46)、インデックスパラメータ”i”
がさらに1つインクリメントされる(ステップST5
0)。
The ith sub-picture pack (the second pack in this case) that has been decomposed is temporarily stored in the sub-picture buffer (memory 108) in the same manner as the first decomposed pack (step ST46), and the index parameter "I"
Is further incremented by one (step ST5).
0).

【0338】以上のようにして、インデックスパラメー
タ”i”をインクリメントしながら複数の副映像パック
が連続的に分解され(ステップST44)、副映像バッ
ファ(メモリ108)に格納される(ステップST4
6)。
As described above, a plurality of sub-picture packs are successively decomposed while incrementing the index parameter "i" (step ST44) and stored in the sub-picture buffer (memory 108) (step ST4).
6).

【0339】連続してインクリメントされたi番目のパ
ックが存在しなくなれば、すなわちステップST44で
分解処理したパックが最終パックであれば(ステップS
T52イエス)、デコードしようとするストリームの副
映像パック分解処理が終了する。
If the continuously incremented i-th pack does not exist, that is, if the pack decomposed in step ST44 is the last pack (step S44).
T52: Yes), the sub-picture pack decomposition processing of the stream to be decoded ends.

【0340】上記副映像パック分解処理(ステップST
44〜ST52)が連続的に実行されている最中に、こ
の副映像パック分解処理と独立・並行して、副映像バッ
ファ(メモリ108)に一時格納された副映像パックの
デコード処理が行われる。
The sub-picture pack disassembly processing (step ST
44 to ST52), the sub-picture pack temporarily stored in the sub-picture buffer (memory 108) is decoded independently and in parallel with the sub-picture pack disassembly processing. .

【0341】すなわち、インデックスパラメータ”j”
が「1」にセットされると(ステップST60)、1番
目の副映像パックを副映像バッファ(メモリ108)か
ら読み出す動作に入る(ステップST62)。この時点
で、まだメモリ108に1番目の副映像パックが格納さ
れていないならば(ステップST63ノー;ステップS
T46の処理がまだ行われていないとき)、読出対象の
パックデータがメモリ108に格納されるまで、デコー
ド処理は、パック読出動作の空ループ(ステップST6
2〜ST63)を実行している。
That is, the index parameter “j”
Is set to "1" (step ST60), an operation of reading the first sub-picture pack from the sub-picture buffer (memory 108) is started (step ST62). At this point, if the first sub-picture pack has not been stored in the memory 108 yet (No in step ST63; step S63).
Until the processing of T46 has not been performed yet, the decoding processing is performed in an empty loop of the pack reading operation (step ST6) until the pack data to be read is stored in the memory 108.
2 to ST63).

【0342】メモリ108に1番目の副映像パックが格
納されておれば(ステップST63イエス)、その副映
像パックが読み出され、デコード処理される(ステップ
ST64;デコード処理の具体例は図53〜図57を参
照して後述する)。
If the first sub-picture pack is stored in memory 108 (YES in step ST63), the sub-picture pack is read out and decoded (step ST64; a concrete example of the decoding process is shown in FIGS. It will be described later with reference to FIG. 57).

【0343】このデコード処理の結果(たとえば図9上
部に示すような圧縮前の副映像データPXDを含む)
は、デコード処理中に図11または図17副映像デコー
ダ101から表示系(図示せず)へ送られ、デコードデ
ータに対応する副映像の表示がなされる。
The result of this decoding process (including uncompressed sub-picture data PXD as shown in the upper part of FIG. 9, for example)
Is transmitted from the sub-picture decoder 101 of FIG. 11 or 17 to a display system (not shown) during the decoding process, and the sub-picture corresponding to the decoded data is displayed.

【0344】上記デコード処理において表示制御終了コ
マンド(図34のCMDEND)が実行されていなけれ
ば(ステップST66ノー)、インデックスパラメー
タ”j”が1つインクリメントされる(ステップST6
7)。
If the display control end command (CMDEND in FIG. 34) has not been executed in the decoding process (No in step ST66), the index parameter “j” is incremented by one (step ST6).
7).

【0345】インクリメントされたj番目のパック(こ
こでは2番目)がメモリ108に存在すれば、そのパッ
クがメモリ108から読み出され、デコードされる(ス
テップST64)。デコードされたj番目の副映像パッ
ク(ここでは2番目のパック)は、1番目にデコードさ
れたパックと同様に表示系に送られ、インデックスパラ
メータ”j”がさらに1つインクリメントされる(ステ
ップST67)。
If the incremented j-th pack (here, the second) is present in the memory 108, that pack is read from the memory 108 and decoded (step ST64). The decoded j-th sub-picture pack (here, the second pack) is sent to the display system in the same manner as the first decoded pack, and the index parameter “j” is further incremented by one (step ST67). ).

【0346】以上のようにして、インデックスパラメー
タ”j”をインクリメントしながら(ステップST6
7)、メモリ108に格納されている1以上の副映像パ
ックが連続的にデコードされ(ステップST64)、デ
コードされた副映像データ(PXD)に対応する副映像
の画像表示が実行される。
As described above, the index parameter "j" is incremented (step ST6).
7) One or more sub-picture packs stored in the memory 108 are continuously decoded (step ST64), and the image display of the sub-picture corresponding to the decoded sub-picture data (PXD) is executed.

【0347】上記デコード処理において表示制御終了コ
マンド(図34のCMDEND)が実行されれば(ステ
ップST66イエス)、副映像バッファ(メモリ10
8)内の副映像データのデコード処理が終了する。
If a display control end command (CMDEND in FIG. 34) is executed in the decoding process (YES in step ST66), the sub-picture buffer (memory 10
The decoding processing of the sub-video data in 8) is completed.

【0348】以上のデコード処理(ステップST62〜
ST64)は、終了コマンドCMDENDが実行されな
い限り(ステップST66ノー)反復される。この実施
の形態では、デコード処理は、終了コマンドCMDEN
Dの実行(ステップST66イエス)をもって終了する
ようになっている。
The above decoding process (steps ST62 to ST62)
ST64) is repeated unless the end command CMDEND is executed (No in step ST66). In this embodiment, the decoding process is performed by the end command CMDEN.
The process is terminated when D is executed (YES in step ST66).

【0349】図55は、図54のパック分解処理の一例
を説明するフローチャートである。副映像デコーダ10
1は、転送されてくるパックからパックヘッダ(図3参
照)を読み飛ばして、パケットを得る(ステップST4
42)。このパケットにタイムスタンプPTSがないと
きは(ステップST444ノー)、パケットヘッダ(P
H)を削除して、副映像ユニットデータ(PXD)だけ
を、副映像デコーダのバッファ(たとえば121)に格
納する(ステップST446)。
FIG. 55 is a flowchart for explaining an example of the pack disassembling process of FIG. Sub-picture decoder 10
1 obtains a packet by skipping the pack header (see FIG. 3) from the transferred pack (step ST4).
42). If there is no time stamp PTS in this packet (No in step ST444), the packet header (P
H) is deleted, and only the sub-picture unit data (PXD) is stored in the buffer (for example, 121) of the sub-picture decoder (step ST446).

【0350】上記パケットにタイムスタンプPTSがあ
るときは(ステップST444イエス)、パケットヘッ
ダ(PH)からPTSだけが抜き取られ、抜き取られた
PTSが副映像ユニットデータ(30)に接続されて、
副映像デコーダ101のバッファ121に格納される
(ステップST448)。
When the packet has a time stamp PTS (step ST444 YES), only the PTS is extracted from the packet header (PH), and the extracted PTS is connected to the sub-picture unit data (30).
It is stored in buffer 121 of sub-picture decoder 101 (step ST448).

【0351】図56は、図54の副映像デコード処理の
一例を説明するフローチャートである。副映像デコーダ
101は、システムタイマ120の時刻SCRとバッフ
ァ121に格納されたタイムスタンプPTSとを比較す
る(ステップST640)。それらが一致すれば(ステ
ップST642イエス)、その副映像ユニット(30)
のデコード処理が開始される。このデコード処理のう
ち、たとえば図9の下部に示す圧縮データPXDを図9
の上部に示す非圧縮データPXDに戻す処理について
は、図15、図16その他を参照して説明済みである。
FIG. 56 is a flow chart for explaining an example of the sub-picture decoding process of FIG. Sub-picture decoder 101 compares time SCR of system timer 120 with time stamp PTS stored in buffer 121 (step ST640). If they match (YES in step ST642), the sub-picture unit (30)
Is started. In this decoding processing, for example, the compressed data PXD shown in the lower part of FIG.
Has been described with reference to FIGS. 15, 16 and the like.

【0352】このデコード処理において、表示制御シー
ケンスDCSQの各コマンドが実行される。すなわち、
コマンドSETDAREAにより副映像の表示位置およ
び表示領域が設定され、コマンドSETCOLORによ
り副映像の表示色が設定され、コマンドSETCONT
Rによりビデオ主映像に対する副映像のコントラストが
設定される(ステップST644)。
In the decoding process, each command of the display control sequence DCSQ is executed. That is,
The display position and the display area of the sub-picture are set by the command SETDAREA, the display color of the sub-picture is set by the command SETCOLOR, and the command SETCONT is set.
The contrast of the sub-picture with respect to the video main picture is set by R (step ST644).

【0353】そして、表示開始タイミングコマンドST
ADSPを実行してから別の表示制御シーケンスDCS
Qで表示終了タイミングコマンドSTPDSPが実行さ
れるまで、切換コマンドCHGCOLCONに準拠した
表示制御を行いつつ、ランレングス圧縮されている画素
データPXD(32)のデコードが行われる(ステップ
ST646)。
Then, the display start timing command ST
After executing ADSP, another display control sequence DCS
Until the display end timing command STPDSP is executed in Q, the run-length-compressed pixel data PXD (32) is decoded while performing display control in accordance with the switching command CHGCOLCON (step ST646).

【0354】なお、上記処理ステップST644および
ST646は、システムタイマ120の時刻SCRとバ
ッファ121に格納されたタイムスタンプPTSとが一
致しないときは(ステップST642ノー)、スキップ
される。
If the time SCR of the system timer 120 and the time stamp PTS stored in the buffer 121 do not match (NO in step ST642), the above processing steps ST644 and ST646 are skipped.

【0355】図57は、図53の手順にしたがって生成
されたデータストリームをデコードする方法の一例を説
明するフローチャートである。図54の処理は、副映像
パックの分解と副映像デコードとが時間的に独立した並
列処理であったが、図57の処理は、副映像パックの分
解と副映像デコードとが時間的にリンクした並列処理で
ある。すなわち、図57では、副映像パックの分解処理
および副映像デコード処理が同じペースで同時進行する
場合を想定している。
FIG. 57 is a flowchart for explaining an example of a method for decoding a data stream generated according to the procedure shown in FIG. The processing of FIG. 54 is a parallel processing in which the decomposition of the sub-picture pack and the decoding of the sub-video are temporally independent, but the processing of FIG. Parallel processing. That is, in FIG. 57, it is assumed that the sub-picture pack disassembling process and the sub-picture decoding process simultaneously proceed at the same pace.

【0356】図57の処理において、デコードシステム
は、まず、転送されてくるストリームのIDを読み取っ
て、選択された副映像パック(データストリームから分
離されたもの)だけを副映像デコーダ(図11または図
17の副映像デコーダ101)に転送する(ステップS
T40)。
In the processing shown in FIG. 57, the decoding system first reads the ID of the stream to be transferred, and stores only the selected sub-picture pack (separated from the data stream) into the sub-picture decoder (FIG. 11 or FIG. 11). (Step S)
T40).

【0357】最初のパック転送が行われると、インデッ
クスパラメータ”i”が「1」にセットされ(ステップ
ST42)、1番目の副映像パックの分解処理(ステッ
プST44)が実行される。
When the first pack transfer is performed, the index parameter "i" is set to "1" (step ST42), and the first sub-picture pack is decomposed (step ST44).

【0358】分解されたパックは、副映像バッファ(メ
モリ108)に一時格納される(ステップST46)。
その後、インデックスパラメータ”j”にインデックス
パラメータ”i”がセットされ(ステップST48)、
インデックスパラメータ”i”が1つインクリメントさ
れる(ステップST50)。
[0358] The decomposed pack is temporarily stored in the sub-picture buffer (memory 108) (step ST46).
Thereafter, the index parameter “i” is set in the index parameter “j” (step ST48),
The index parameter “i” is incremented by one (step ST50).

【0359】インクリメントされたi番目のパックが存
在すれば、すなわちステップST44で分解処理したパ
ックが最終パックでなければ(ステップST52ノ
ー)、インクリメントされたi番目の副映像パックに対
する分解処理(ステップST44)が実行される。
If the incremented i-th pack exists, that is, if the pack decomposed in step ST44 is not the last pack (No in step ST52), the decomposing process for the incremented i-th sub-picture pack (step ST44) ) Is executed.

【0360】分解されたi番目の副映像パック(ここで
は2番目のパック)は、1番目に分解されたパックと同
様に副映像バッファ(メモリ108)に一時格納され
(ステップST46)、インデックスパラメータ”i”
がさらに1つインクリメントされる(ステップST5
0)。
The ith sub-picture pack (the second pack in this case) that has been decomposed is temporarily stored in the sub-picture buffer (memory 108) in the same manner as the first decomposed pack (step ST46), and the index parameter "I"
Is further incremented by one (step ST5).
0).

【0361】以上のようにして、インデックスパラメー
タ”i”をインクリメントしながら複数の副映像パック
が連続的に分解され(ステップST44)、副映像バッ
ファ(メモリ108)に格納される(ステップST4
6)。
As described above, a plurality of sub-picture packs are successively decomposed while incrementing the index parameter "i" (step ST44) and stored in the sub-picture buffer (memory 108) (step ST4).
6).

【0362】連続してインクリメントされたi番目のパ
ックが存在しなくなれば、すなわちステップST44で
分解処理したパックが最終パックであれば(ステップS
T52イエス)、デコードしようとするストリームの副
映像パック分解処理が終了する。
If the continuously incremented i-th pack does not exist, that is, if the pack decomposed in step ST44 is the last pack (step S44).
T52: Yes), the sub-picture pack decomposition processing of the stream to be decoded ends.

【0363】上記副映像パック分解処理(ステップST
44〜ST52)が連続的に実行されている最中に、こ
の副映像パック分解処理と並行して、副映像バッファ
(メモリ108)に一時格納された副映像パックのデコ
ード処理が行われる。
The sub-picture pack disassembly processing (step ST)
44 to ST52), the sub-picture packs temporarily stored in the sub-picture buffer (memory 108) are decoded in parallel with the sub-picture pack disassembly processing.

【0364】すなわち、インデックスパラメータ”j”
にインデックスパラメータ”i=1”がセットされると
(ステップST48)、j=1番目の副映像パックがメ
モリ108から読み出され(ステップST62)、j=
1番目の副映像パックのデコード処理が行われる(ステ
ップST64)。
That is, the index parameter “j”
Is set to the index parameter "i = 1" (step ST48), the j = 1st sub-picture pack is read from the memory 108 (step ST62), and j =
The decoding processing of the first sub-picture pack is performed (step ST64).

【0365】このj=1番目の副映像パックのデコード
処理(ステップST64)中に、ステップST50で1
つインクリメントされたi=2番目の副映像パックの分
解処理(ステップST44)が並列処理される。
During the decoding processing of this j = 1st sub-picture pack (step ST64), 1
The decomposition processing of the incremented i = 2nd sub-picture pack (step ST44) is performed in parallel.

【0366】以上のデコード処理(ステップST62〜
ST64)は、終了コマンドCMDENDが実行されな
い限り(ステップST66ノー)反復される。デコード
処理は、終了コマンドCMDENDの実行をもって終了
する(ステップST66イエス)。
The above decoding process (steps ST62 to ST62)
ST64) is repeated unless the end command CMDEND is executed (No in step ST66). The decoding process ends when the end command CMDEND is executed (Yes in step ST66).

【0367】[0367]

【発明の効果】以上説明したように、この発明によれ
ば、副映像データの表示空間的な無駄と表示時間的な無
駄とを大幅に削減できるとともに、ビットマップデータ
方式並の副映像表現の自由性を達成でき、幅広い副映像
の用途を確保することができる。
As described above, according to the present invention, waste of display space and waste of display time of sub-picture data can be greatly reduced, and the sub-picture expression equivalent to that of the bitmap data system can be obtained. Flexibility can be achieved and a wide range of sub-picture applications can be secured.

【0368】すなわち、この発明においては、副映像デ
ータ中の表示に使用すべき範囲を設定するための使用範
囲設定情報を設け、その使用範囲以外のデータを表示し
ないようにすることで、1フレーム分全てのデータを表
示系に送る場合に生じてしまうデータ量の表示空間的な
無駄を大幅に削減することができる。
That is, in the present invention, use range setting information for setting a range to be used for display in sub-picture data is provided, and data other than the use range is not displayed, so that one frame is displayed. It is possible to greatly reduce the display space waste of the data amount that occurs when all the data is sent to the display system.

【0369】また、この発明においては、副映像データ
のパターン画素、ふちどり、背景等、画素種別毎の色設
定情報および副映像の混合比設定情報を設け、副映像表
示データとして副映像イメージの形状情報だけを持たせ
ることで、画素毎に色情報および混合比情報を持たせる
従来方式と同程度の副映像形状表現性を、より少ないデ
ータ量で保証できる。
According to the present invention, color setting information for each pixel type such as pattern pixels, frames, backgrounds, and the like of sub-picture data and mixing ratio setting information for sub-pictures are provided. By providing only the information, it is possible to guarantee the same sub-image shape expression as the conventional method of providing the color information and the mixture ratio information for each pixel with a smaller data amount.

【0370】さらにこの発明においては、副映像データ
の画素種別毎の色、および主映像に対する副映像データ
の画素種別毎の混合比の変化を、画素単位で設定するた
めに色/混合比変化設定情報を設けたので、副映像の動
的な表示を、従来のビットマップデータ方式と同等の精
度で、しかもビットマップデータ方式よりも少ないデー
タ量で、実現できる。
Further, according to the present invention, the color / mixing ratio change setting is used to set the color of each sub-picture data for each pixel type and the change of the mixing ratio for each pixel type of the sub-picture data with respect to the main picture in pixel units. Since the information is provided, the dynamic display of the sub-picture can be realized with the same accuracy as that of the conventional bitmap data system and with a smaller data amount than the bitmap data system.

【0371】なお、副映像は1画素毎に色情報が変化す
るものは希であり、色/混合比変化設定情報自体のデー
タ量が過度なものになる心配はない。
It is rare that the color information of the sub-picture changes for each pixel, and there is no fear that the data amount of the color / mixture ratio change setting information itself becomes excessive.

【0372】さらに、この発明においては、副映像イメ
ージの色が変化したとしても、その形状が変化しない限
り、同じ副映像データを用いて複数フレーム時間に跨っ
て副映像を表示できる。したがって、色・形が変化する
しないに拘わらずフレーム周期で副映像データを表示系
に与え続けなければならない従来方式に比べて、副映像
データの表示時間的な無駄を大幅に削減することができ
る。
Furthermore, in the present invention, even if the color of the sub-picture image changes, the sub-picture can be displayed over a plurality of frame times using the same sub-picture data as long as the shape does not change. Accordingly, waste of display time of the sub-picture data can be greatly reduced as compared with the conventional method in which the sub-picture data must be continuously provided to the display system at the frame period regardless of the color / shape not changing. .

【図面の簡単な説明】[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で例示したデータ構造のうち、エンコード
(ランレングス圧縮、表示制御シーケンステーブルの付
加など)される副映像パックの論理構造を例示する図。
3 is a diagram exemplifying a logical structure of a sub-picture pack to be encoded (run-length compression, addition of a display control sequence table, etc.) 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 and the like) 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 decompression) according to the present invention.

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

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

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

【図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 and the like) based on the present invention.

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

【図19】この発明の他実施の形態に係る画像デコード
(ランレングス伸張部分)処理の後半を説明するフロー
チャート図。
FIG. 19 is a flowchart illustrating the latter half of the image decoding (run-length decompression portion) 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;

【図28】副映像データブロック内のタイムスタンプ
(PTS)の位置を説明する図。
FIG. 28 is a view for explaining the position of a time stamp (PTS) in a sub-picture data block.

【図29】副映像パケットのデータ構造を説明する図。FIG. 29 is a view for explaining the data structure of a sub-picture packet.

【図30】直列に並んだ副映像ユニットと、そのうちの
1ユニットのパケットヘッダに記述されたタイムスタン
プ(PTS)および表示制御シーケンス(DCSQ)と
の対応関係を例示する図。
FIG. 30 is a view exemplifying a correspondence relationship between serially arranged sub-picture units, and a time stamp (PTS) and a display control sequence (DCSQ) described in a packet header of one of the units.

【図31】図3または図4の副映像ユニットヘッダ(S
PUH)に含まれるパラメータのうち、副映像サイズお
よび表示制御シーケンステーブルの開始アドレス(DC
SQの相対アドレスポインタ)を説明する図。
FIG. 31 shows the sub-picture unit header (S
PUH), the sub-picture size and the start address (DC) of the display control sequence table
FIG. 3 is a diagram for explaining a relative address pointer (SQ).

【図32】副映像表示制御シーケンステーブル(SPD
CSQT)の構成を説明する図。
FIG. 32 shows a sub-picture display control sequence table (SPD)
FIG. 2 is a diagram illustrating a configuration of CSQT).

【図33】図32のテーブル(SPDCSQT)を構成
する各パラメータ(DCSQ)の中身を説明する図。
FIG. 33 is an exemplary view for explaining the contents of each parameter (DCSQ) constituting the table (SPDCSQT) in FIG. 32;

【図34】副映像の表示制御コマンド(SPDCCM
D)の内容を説明する図。
FIG. 34 shows a sub-picture display control command (SPDCCM).
The figure explaining the content of D).

【図35】画素制御データ(PCD)の内容を説明する
図。
FIG. 35 is a view for explaining the contents of pixel control data (PCD).

【図36】図34に例示されたコマンドセットのうち、
副映像の画素データの表示開始タイミングを強制的にセ
ットするコマンドFSTADSPのビット構成を説明す
る図。
FIG. 36 shows a command set exemplified in FIG. 34;
FIG. 7 is a diagram for explaining a bit configuration of a command FSTADSP for forcibly setting a display start timing of sub-picture pixel data.

【図37】図34に例示されたコマンドセットのうち、
副映像の画素データの表示開始タイミングをセットする
コマンドSTADSPのビット構成を説明する図。
FIG. 37 shows a command set illustrated in FIG. 34;
FIG. 4 is a diagram for explaining a bit configuration of a command STADSP for setting display start timing of sub-picture pixel data.

【図38】図34に例示されたコマンドセットのうち、
副映像の画素データの表示終了タイミングをセットする
コマンドSTPDSPのビット構成を説明する図。
FIG. 38 shows a command set illustrated in FIG. 34;
FIG. 7 is a diagram for explaining a bit configuration of a command STPDSP for setting display end timing of sub-pixel pixel data.

【図39】図34に例示されたコマンドセットのうち、
副映像の画素データのカラーコードをセットするコマン
ドSETCOLORのビット構成を説明する図。
FIG. 39 shows a command set illustrated in FIG. 34;
FIG. 9 is a diagram for explaining a bit configuration of a command SETCOLOR for setting a color code of pixel data of a sub-picture.

【図40】副映像データプロセサ(たとえば図11のデ
コーダ101)内部での色データの処理の一例を説明す
る図。
FIG. 40 is an exemplary view for explaining an example of color data processing inside a sub-picture data processor (eg, the decoder 101 in FIG. 11);

【図41】図34に例示されたコマンドセットのうち、
副映像と主映像との間のコントラストをセットするコマ
ンドSETCONTRのビット構成を説明する図。
FIG. 41 shows a command set exemplified in FIG. 34;
FIG. 4 is a diagram for explaining a bit configuration of a command SETCONTR for setting contrast between a sub-picture and a main picture.

【図42】図34に例示されたコマンドセットのうち、
副映像画素データの表示エリアをセットするコマンドS
ETDAREAのビット構成を説明する図。
FIG. 42 shows a command set exemplified in FIG. 34;
Command S for setting display area of sub-picture pixel data
FIG. 4 is a diagram illustrating a bit configuration of ETDAREA.

【図43】図34に例示されたコマンドセットのうち、
副映像画素データの表示開始アドレスをセットするコマ
ンドSETDSPXAのビット構成を説明する図。
FIG. 43 shows a command set illustrated in FIG. 34;
FIG. 7 is a diagram for explaining a bit configuration of a command SETDSPXA for setting a display start address of sub-picture pixel data.

【図44】図34に例示されたコマンドセットのうち、
副映像画素データのカラーおよびコントラストを切り換
えるコマンドCHGCOLCONのビット構成を説明す
る図。
FIG. 44 includes a command set illustrated in FIG.
FIG. 9 is a diagram for explaining a bit configuration of a command CHGCOLCON for switching color and contrast of sub-picture pixel data.

【図45】図34に例示されたコマンドセットのうち、
副映像の表示制御を終了するコマンドCMDENDのビ
ット構成を説明する図。
FIG. 45 shows a command set illustrated in FIG. 34;
FIG. 7 is a diagram for explaining a bit configuration of a command CMEND for ending display control of a sub-picture.

【図46】図35に例示された画素制御データ(PC
D)のパラメータのうち、画素ラインのライン制御情報
LCINFのビット構成を説明する図。
FIG. 46 shows the pixel control data (PC
FIG. 7 is a diagram for explaining a bit configuration of line control information LCINF of a pixel line among parameters of D).

【図47】図35に例示された画素制御データ(PC
D)のパラメータのうち、画素制御情報PCINFのビ
ット構成を説明する図。
FIG. 47 is a diagram showing the pixel control data (PC shown in FIG. 35);
FIG. 9 is a diagram for explaining a bit configuration of pixel control information PCINF among parameters of D).

【図48】副映像表示フレームの具体例を説明する図。FIG. 48 is an exemplary view for explaining a specific example of a sub-picture display frame;

【図49】副映像表示フレームが図48に示すようにな
っている場合に、図35の画素制御データ(PCD)の
各パラメータの内容がどのようになるかを具体的に説明
する図。
FIG. 49 is a view specifically explaining what the contents of each parameter of the pixel control data (PCD) of FIG. 35 are when the sub-image display frame is as shown in FIG. 48;

【図50】この発明を用いずに副映像をビットマップデ
ータ処理する場合の問題点を説明する図。
FIG. 50 is a view for explaining a problem in a case where sub-picture is subjected to bitmap data processing without using the present invention.

【図51】この発明を用いずに副映像を処理する場合の
問題点をさらに説明する図。
FIG. 51 is a diagram further describing a problem in processing a sub-picture without using the present invention.

【図52】この発明により副映像データをデコードする
場合において、副映像データブロックのバッファリング
状態が、タイムスタンプ(PTS)のある副映像チャネ
ルによってどのように変化するかを説明する図。
FIG. 52 is an exemplary view for explaining how a buffering state of a sub-picture data block changes depending on a sub-picture channel having a time stamp (PTS) when decoding sub-picture data according to the present invention;

【図53】表示制御シーケンス(DCSQ)の処理を中
心にした、この発明の副映像エンコード処理手順の一例
を説明するフローチャート図。
FIG. 53 is a flowchart for explaining an example of a sub-picture encoding processing procedure of the present invention, centering on processing of a display control sequence (DCSQ);

【図54】図53の処理手順でエンコードされた副映像
データストリームのパック分解およびデコードを並列処
理する手順の一例を説明するフローチャート図。
FIG. 54 is a flowchart for explaining an example of a procedure for performing parallel processing of pack decomposition and decoding of the sub-picture data stream encoded by the processing procedure of FIG. 53;

【図55】図54のパック分解処理の一例を説明するフ
ローチャート図。
FIG. 55 is a flowchart illustrating an example of the pack disassembly process of FIG. 54.

【図56】図54の副映像デコード処理の一例を説明す
るフローチャート図。
FIG. 56 is an exemplary flowchart for explaining an example of the sub-picture decoding process in FIG. 54;

【図57】図53の処理手順でエンコードされた副映像
データストリームのパック分解およびデコードを並列処
理する手順の他例を説明するフローチャート図。
FIG. 57 is an exemplary flowchart for explaining another example of the procedure of performing the pack decomposition and the decoding of the sub-picture data stream encoded in the processing procedure of FIG. 53 in parallel;

【図58】副映像の表示モードがインターレースモード
である場合の、副映像データ(PXD)の記録方法を説
明する図。
FIG. 58 is a view for explaining a method of recording sub-picture data (PXD) when the display mode of the sub-picture is an interlace mode.

【図59】図29に示すパケット内の表示制御シーケン
ステーブルの具体例を示す図。
FIG. 59 is a view showing a specific example of a display control sequence table in the packet shown in FIG. 29;

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

1…ファイル管理情報;2…映像用データ;PH…パケ
ットヘッダ;30…副映像ユニット;31…副映像ユニ
ットヘッダSPUH;32…副映像の画素データPX
D;33…表示制御シーケンステーブルDCSQT;1
01…デコーダ;102…データI/O;103…符号
化データ切分部;104…画素色出力部(FIFOタイ
プ);105…メモリ制御部;106…継続コード長検
知部;107…ラン長設定部;108…メモリ;109
…アドレス制御部;110…表示有効許可部;111…
不足画素色設定部;112…マイクロコンピュータ(M
PUまたはCPU);113…ヘッダ切分部;114…
ラインメモリ;115…セレクタ;118…セレクト信
号生成部;120…システムタイマ;121…バッファ
メモリ;1210…色レジスタ;1220…変化色レジ
スタ;200…エンコーダ;202…レーザカッティン
グ装置(レーザカッティング工程);204…光ディス
クマスタ(媒体マスタ/マスタ作成工程);206…2
枚貼合せ高密度光ディスク量産設備(媒体生産工程);
202〜206…記録装置;210…変調器/送信器;
212…放送部/ケーブル出力部;300…ディスクプ
レーヤ(再生装置);400…受信器/復調器(再生装
置);5001(500N)…パーソナルコンピュー
タ;5011(501N)…入出力機器類;5021
(502N)…外部記憶装置類;5031(503N)
…エンコーダ/デコーダおよびモデム;702…変調器
/レーザドライバ;704…光ヘッド(記録レーザ);
706…光ヘッド(読取レーザ/レーザピックアッ
プ);708…復調器/エラー訂正部;710…オーデ
ィオ/ビデオデータ処理部(副映像データのデコード処
理部を含む);OD…2枚貼合せ高密度光ディスク(記
録媒体)。
1 ... File management information; 2 ... Video data; PH ... Packet header; 30 ... Sub-picture unit; 31 ... Sub-picture unit header SPUH; 32 ... Sub-picture pixel data PX
D; 33... Display control sequence table DCSQT; 1
01: Decoder; 102: Data I / O; 103: Encoded data separation unit; 104: Pixel color output unit (FIFO type); 105: Memory control unit; 106: Continuous code length detection unit; 107: Run length setting Part; 108 ... memory; 109
... address control unit; 110 display effective permission unit; 111
Insufficient pixel color setting unit; 112 ... microcomputer (M
PU or CPU); 113: header separation portion; 114 ...
Line memory; 115 selector; 118 select signal generator; 120 system timer; 121 buffer memory; 1210 color register; 1220 changing color register; 200 encoder; 202 laser cutting device (laser cutting step); 204: optical disk master (medium master / master creation step); 206: 2
Mass production equipment for high density optical discs (media production process);
202 to 206: recording device; 210: modulator / transmitter;
212 broadcast / cable output unit; 300 disk player (reproducing device); 400 receiver / demodulator (reproducing device); 5001 (500N) personal computer; 5011 (501N) ... input / output devices;
(502N) ... external storage devices; 5031 (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; 710: audio / video data processing unit (including sub-video data decoding processing unit); OD: two bonded high-density optical disks (recoding media).

フロントページの続き (72)発明者 三村 英紀 神奈川県川崎市幸区柳町70番地 株式会 社東芝柳町工場内 (56)参考文献 特開 平1−256060(JP,A) (58)調査した分野(Int.Cl.6,DB名) H04N 5/91 - 5/956 G11B 20/12 G11B 27/00 G06F 3/06Continuation of the front page (72) Inventor Hideki Mimura 70, Yanagicho, Saiwai-ku, Kawasaki-shi, Kanagawa Pref. Int.Cl. 6 , DB name) H04N 5/91-5/956 G11B 20/12 G11B 27/00 G06F 3/06

Claims (16)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】主映像とともに再生可能な副映像が所定の
パック単位でパケット化されて記録される記録トラック
を持つ画像情報記録媒体の製造方法において、 (イ)前記副映像のパケットの再生開始時刻を表現した
第1のタイムスタンプを含むパケットヘッダ情報と、 前記副映像を構成するものであって所定の方法で圧縮さ
れた画素データを含む副映像情報と、 前記副映像情報を用いた前記副映像の表示を制御するた
めの、1以上の表示制御シーケンスを含む表示制御シー
ケンス情報と、 前記副映像のサイズおよび前記表示制御シーケンス情報
の記録位置を含む副映像ヘッダ情報と、前記表示制御シーケンスの情報の表示開始時刻を示すも
のであって、前記第1のタイムスタンプが更新されてか
らの相対時間で記録されている第2のタイムスタンプと
を用いて、 前記副映像のパケットをエンコードするエンコード工程
と; (ロ)前記エンコード工程でエンコードされた前記副映
像のパケット情報が書き込まれた媒体マスタを作成する
マスタ作成工程と; (ハ)前記マスタ作成工程で作成された媒体マスタを用
いて、前記エンコード工程でエンコードされた情報を、
1以上の前記画像情報記録媒体に記録する媒体生産工程
と; を具備したことを特徴とする画像情報記録媒体の製造方
法。
1. A method of manufacturing an image information recording medium having a recording track on which a sub-picture reproducible together with a main picture is packetized and recorded in a predetermined pack unit. Expressed time
Packet header information including a first time stamp, sub-picture information that constitutes the sub-picture and includes pixel data compressed by a predetermined method, and display of the sub-picture using the sub-picture information Display control sequence information including one or more display control sequences, sub-picture header information including a size of the sub-picture and a recording position of the display control sequence information, and display of information of the display control sequence. Also indicates the start time
Whether the first timestamp has been updated
An encoding step of encoding the packet of the sub-picture using the second time stamp recorded at the relative time ; and (b) packet information of the sub-picture encoded in the encoding step is written. (C) using the medium master created in the master creation step to encode the information encoded in the encoding step,
A medium producing step of recording on one or more image information recording media; and a method of manufacturing an image information recording medium.
【請求項2】 前記副映像ヘッダ情報、前記圧縮された
画素データおよび前記表示制御シーケンス情報によって
副映像データユニットが構成され; 1以上の前記副映像パケットが、前記副映像データユニ
ットと対応するような配列で、前記記録トラックに記録
されることを特徴とする請求項1に記載の製造方法。
2. A sub-picture data unit is constituted by the sub-picture header information, the compressed pixel data and the display control sequence information. One or more of the sub-picture packets correspond to the sub-picture data unit. 2. The manufacturing method according to claim 1, wherein the data is recorded on the recording track in a proper arrangement.
【請求項3】 前記副映像データユニットと対応するよ
うに配列された前記1以上の副映像パケットのうち、先
頭の副映像パケットのパケットヘッダ情報にだけ、前記
タイムスタンプが記録されることを特徴とする請求項1
または請求項2に記載の製造方法。
3. The time stamp is recorded only in the packet header information of the first sub-picture packet among the one or more sub-picture packets arranged corresponding to the sub-picture data unit. Claim 1
Or the manufacturing method according to claim 2.
【請求項4】 複数ビット数で定義される画素データが
複数集まって形成される情報集合体のうち、同一画素デ
ータが連続するデータブロックを1圧縮単位として圧縮
した前記副映像の情報が記録される画像情報記録媒体を
製造するものにおいて、前記エンコード工程における前
記副映像画素データの圧縮方法が、 前記1圧縮単位のデータブロックにおける同一画素デー
タ連続数に対応した符号化ヘッダと、この同一画素デー
タ連続数を示す継続画素数データと、前記1圧縮単位の
データブロックにおける同一画素データ自体を示す複数
ビット構成のデータとによって構成された圧縮単位デー
タブロックの情報をエンコードする工程をさらに備え、
前記1圧縮単位のデータブロックにおける同一画素デー
タ連続数のデータ長が3以下の場合は前記符号化ヘッダ
にビットが割り当てられておらず、前記1圧縮単位のデ
ータブロックにおける同一画素データ連続数のデータ長
が4以上で所定数以下の場合は前記符号化ヘッダに2ビ
ット以上所定ビット以下が割り当てられていることを特
徴とする請求項1ないし請求項3のいずれか1項に記載
の製造方法
4. Pixel data defined by a plurality of bits
The same pixel data in the information set
Data blocks with consecutive data are compressed as one compression unit.
The image information recording medium on which the information of the
In the manufacture, before the encoding step
The compression method of the sub-picture pixel data is the same as that of the same
Header corresponding to the number of consecutive data
Pixel number data indicating the number of consecutive pixels,
Plurality indicating the same pixel data itself in the data block
Compression unit data composed of bit configuration data
Further comprising a step of encoding the information of the tab block,
The same pixel data in the data block of one compression unit
If the data length of the data consecutive number is 3 or less, the encoded header
No bits are assigned to the
Data length of the same number of consecutive pixel data in the data block
If the number is 4 or more and a predetermined number or less, two bits are added to the encoded header.
It is noted that more than
The method according to any one of claims 1 to 3, wherein
Manufacturing method .
【請求項5】 前記エンコード工程が、MPEG規格に
基づき動画を圧縮する工程を含むことを特徴とする請求
項1ないし請求項4のいずれか1項に記載の製造方法。
5. The method according to claim 1, wherein the encoding step includes a step of compressing a moving image based on the MPEG standard.
【請求項6】 前記マスタ作成工程が、前記エンコード
工程でエンコードされた情報をレーザカッティングする
工程を含むことを特徴とする請求項1ないし請求項5の
いずれか1項に記載の製造方法。
6. The manufacturing method according to claim 1, wherein the master creating step includes a step of laser cutting information encoded in the encoding step.
【請求項7】 前記画像情報記録媒体が、実質厚が0.
6mmの基板を貼合せた規格上の厚みが1.2mmの光
ディスクで構成され、この貼合せ基板の少なくとも一方
に、前記媒体マスタに記録された情報が転写されること
を特徴とする請求項1ないし請求項6のいずれか1項に
記載の製造方法。
7. The image information recording medium according to claim 1, wherein said image information recording medium has a substantial thickness of 0.3.
2. The information recorded on the medium master is transferred to at least one of the bonded substrates by using an optical disk having a standard thickness of 1.2 mm on which a 6 mm substrate is bonded. 7. The method according to claim 6.
【請求項8】 前記画像情報記録媒体が、実質厚が0.
6mmの基板を貼合せた規格上の厚みが1.2mmの光
ディスクで構成され、この貼合せ基板の少なくとも一方
に、前記媒体マスタに記録された情報が転写されている
ことを特徴とする請求項1ないし請求項6のいずれか1
項に記載の製造方法で作成された光ディスク。
8. The image information recording medium according to claim 1, wherein said image information recording medium has a substantial thickness of 0.5.
The information recorded on the medium master is transferred to at least one of the bonded substrates, wherein the optical disk has a standard thickness of 1.2 mm and is bonded to a 6 mm substrate. Any one of claims 1 to 6
An optical disc produced by the production method described in the paragraph.
【請求項9】主映像とともに同時再生可能な副映像を所
定のパック単位でパケット化して記録するための記録ト
ラックを持つ画像情報記録媒体において、 前記副映像をパケット化したデータパケットが、 基準時刻を用いて表現した前記副映像データパケットの
再生開始時刻を含むパケットヘッダ情報と、前記 副映像の表示内容を構成するものであって所定の方
法で圧縮された画素データを含む副映像情報と、前記 副映像情報を用いて前記副映像を表示するための制
御手順を示す1以上の表示制御シーケンス情報と、前記表示制御シーケンス情報の表示開始時刻を示すもの
でありかつこの表示制御シーケンス情報に含まれるもの
であって、前記パケットヘッダ情報に含まれる前記再生
開始時刻が更新されてからの相対時間で記録されている
タイムスタンプと 、 前記副映像情報のサイズおよび前記表示制御シーケンス
情報の記録位置を含む副映像ヘッダ情報とを具備するよ
うに構成され; 前記副映像ヘッダ情報と、前記副映像情報と、前記表示
制御シーケンス情報とによって副映像データユニットが
構成され; 1以上の前記副映像データパケットが、前記副映像デー
タユニットと対応する配列で、前記記録トラックに記録
されていることを特徴とする画像情報記録媒体。
9. An image information recording medium having a recording track for recording a sub-picture which can be simultaneously reproduced together with a main picture in a predetermined pack unit for recording, wherein the data packet obtained by packetizing the sub-picture is a reference time a packet header information including the playback start time of the sub-picture data packet representation using, towards the predetermined be those constituting the display contents of the sub-picture
And sub-picture information including pixel data compressed by law, and one or more display control sequence information showing a control procedure for displaying the sub-picture using said sub-picture information, the display start of the display control sequence information Indicating time
And included in the display control sequence information
Wherein the reproduction is included in the packet header information.
The start time is recorded relative to the time since the update
A time stamp; and a sub-picture header information including a size of the sub-picture information and a recording position of the display control sequence information. The sub-picture header information, the sub-picture information, and the display control An image information recording medium, wherein one or more sub-video data packets are recorded on the recording track in an arrangement corresponding to the sub-video data unit; .
【請求項10】 前記パケットヘッダ情報内の前記再生
時刻が、前記1以上の副映像データパケットの配列の先
頭パケットに対してのみ記録されていることを特徴とす
る請求項9に記載の画像情報記録媒体。
10. The image information according to claim 9, wherein the reproduction time in the packet header information is recorded only for the first packet in the array of the one or more sub-video data packets. recoding media.
【請求項11】 前記表示制御シーケンス情報が、少な
くとも、副映像の表示開始時刻および表示終了時刻と、
表示すべき前記副映像情報の記録位置と、この記録位置
に記録された副映像情報に対する表示制御情報群を含む
ことを特徴とする請求項9または請求項10に記載の画
像情報記録媒体。
11. The display control sequence information includes at least a display start time and a display end time of a sub-picture,
And recording the position of the sub picture information to be displayed, the image information recording medium according to claim 9 or claim 10, characterized in that it comprises a display control information group for the sub-picture information recorded in the recording position.
【請求項12】 複数ビット数で定義される画素データ
が複数集まって形成される情報集合体のうち、同一画素
データが連続するデータブロックを1圧縮単位として圧
縮した前記副映像情報が記録されるものにおいて、 前記副映像画素データの圧縮が、前記1圧縮単位のデー
タブロックにおける同一画素データ連続数に対応した符
号化ヘッダと、この同一画素データ連続数を示す継続画
素数データと、前記1圧縮単位のデータブロックにおけ
る同一画素データ自体を示す複数ビット構成のデータと
によって構成された圧縮単位データブロックの情報をエ
ンコードすることによってなされており、 前記1圧縮単位のデータブロックにおける同一画素デー
タ連続数のデータ長が3以下の場合は前記符号化ヘッダ
にビットが割り当てられておらず、前記1圧縮単位のデ
ータブロックにおける同一画素データ連続数のデータ長
が4以上で所定数以下の場合は前記符号化ヘッダに2ビ
ット以上所定ビット以下が割り当てられていることを特
徴とする請求項9ないし請求項11のいずれか1項に記
載の画像情報記録媒体
12.Pixel data defined by multiple bits
Is the same pixel in the information aggregate formed by
Compression is performed on a data block with continuous data as one compression unit.
Wherein the compressed sub-picture information is recorded, The compression of the sub-picture pixel data is performed by the data of the one compression unit.
Code corresponding to the number of consecutive same pixel data in
Encoding header and a continuous image
In the prime data and the data block of one compression unit,
Data of multiple bits indicating the same pixel data itself
Information of the compression unit data block composed of
Is done by encoding The same pixel data in the data block of one compression unit
If the data length of the data consecutive number is 3 or less, the encoded header
No bits are assigned to the
Data length of the same number of consecutive pixel data in the data block
If the number is 4 or more and a predetermined number or less, two bits are added to the encoded header.
It is noted that more than
The method according to any one of claims 9 to 11, wherein
Image information recording medium .
【請求項13】主映像とともに同時再生可能な副映像を
所定のパック単位でパケット化して記録した記録トラッ
クを持つものであって、光ヘッドを持つ再生装置により
前記副映像のパケットの情報が前記パック単位で再生可
能な光ディスクにおいて、 前記副映像をパケット化したデータパケットが、 基準時刻を用いて表現した前記副映像データパケットの
再生開始時刻を含むパケットヘッダ情報と、前記 副映像の表示内容を構成するものであって所定の方
法で圧縮された画素データを含む副映像情報と、前記 副映像情報を用いて前記副映像を表示するための制
御手順を示す1以上の表示制御シーケンス情報と、前記表示制御シーケンス情報の表示開始時刻を示すもの
でありかつこの表示 制御シーケンス情報に含まれるもの
であって、前記パケットヘッダ情報に含まれる前記再生
開始時刻が更新されてからの相対時間で記録されている
タイムスタンプと 、 前記副映像情報のサイズおよび前記表示制御シーケンス
情報の記録位置を含む副映像ヘッダ情報とを具備するよ
うに構成され; 前記副映像ヘッダ情報と、前記副映像情報と、前記表示
制御シーケンス情報とによって副映像データユニットが
構成され; 1以上の前記副映像データパケットが、前記副映像デー
タユニットと対応する配列で、前記記録トラックに記録
され; 前記再生装置が前記副映像を再生する際に、前記1以上
の副映像データパケットの配列が、前記光ヘッドにより
連続して再生できるように、前記記録トラックに記録さ
れていることを特徴とする光ディスク。
13. A recording apparatus which has a recording track in which a sub-picture which can be simultaneously reproduced together with a main picture is packetized and recorded in a predetermined pack unit, wherein information of the sub-picture packet is reproduced by a reproducing apparatus having an optical head. in reproducing optical disks in pack units, said data packet the sub picture was packetization, packet header information including the playback start time of the sub-picture data packet expressed using a reference time, the display contents of the sub-picture Constituent and prescribed
And sub-picture information including pixel data compressed by law, and one or more display control sequence information showing a control procedure for displaying the sub-picture using said sub-picture information, the display start of the display control sequence information Indicating time
And included in the display control sequence information
Wherein the reproduction is included in the packet header information.
The start time is recorded relative to the time since the update
A time stamp; and a sub-picture header information including a size of the sub-picture information and a recording position of the display control sequence information. The sub-picture header information, the sub-picture information, and the display control A sub-picture data unit is configured by the sequence information; one or more sub-picture data packets are recorded on the recording track in an array corresponding to the sub-picture data unit; and the playback device plays back the sub-picture. An optical disc, wherein the array of the one or more sub-picture data packets is recorded on the recording track so that it can be continuously reproduced by the optical head.
【請求項14】 前記光ヘッドが、前記副映像データパ
ケットに記録された副映像の再生開始以前に前記再生時
刻の読み取りを行えるように、前記パケットヘッダ情報
内の前記再生時刻が、前記1以上の副映像データパケッ
トの配列の先頭パケットに対して記録されていることを
特徴とする請求項13に記載の光ディスク。
14. The reproduction time in the packet header information, wherein the optical head can read the reproduction time before the reproduction of the sub-picture recorded in the sub-picture data packet is started. 14. The optical disc according to claim 13 , wherein the optical disc is recorded with respect to the first packet of the array of the sub-picture data packets.
【請求項15】 前記表示制御シーケンス情報が、少な
くとも、副映像の表示開始時刻および表示終了時刻と、
表示すべき前記副映像情報の記録位置と、この記録位置
に記録された副映像情報に対する表示制御情報群を含む
ことを特徴とする請求項13または請求項14に記載の
光ディスク。
15. The display control sequence information includes at least a display start time and a display end time of a sub-picture,
And recording the position of the sub picture information to be displayed, an optical disk according to claim 13 or claim 14, characterized in that it comprises a display control information group for the sub-picture information recorded in the recording position.
【請求項16】 複数ビット数で定義される画素データ
が複数集まって形成される情報集合体のうち、同一画素
データが連続するデータブロックを1圧縮単位として圧
縮した前記副映像情報が記録されるものにおいて、 前記副映像画素データの圧縮が、前記1圧縮単位のデー
タブロックにおける同一画素データ連続数に対応した符
号化ヘッダと、この同一画素データ連続数を示す継続画
素数データと、前記1圧縮単位のデータブロックにおけ
る同一画素デー タ自体を示す複数ビット構成のデータと
によって構成された圧縮単位データブロックの情報をエ
ンコードすることによってなされており、 前記1圧縮単位のデータブロックにおける同一画素デー
タ連続数のデータ長が3以下の場合は前記符号化ヘッダ
にビットが割り当てられておらず、前記1圧縮単位のデ
ータブロックにおける同一画素データ連続数のデータ長
が4以上で所定数以下の場合は前記符号化ヘッダに2ビ
ット以上所定ビット以下が割り当てられていることを特
徴とする請求項13ないし請求項15のいずれか1項に
記載の光ディスク
16.Pixel data defined by multiple bits
Is the same pixel in the information aggregate formed by
Compression is performed on a data block with continuous data as one compression unit.
Wherein the compressed sub-picture information is recorded, The compression of the sub-picture pixel data is performed by the data of the one compression unit.
Code corresponding to the number of consecutive same pixel data in
Encoding header and a continuous image
In the prime data and the data block of one compression unit,
Same pixel data Data consisting of multiple bits indicating the data itself
Information of the compression unit data block composed of
Is done by encoding The same pixel data in the data block of one compression unit
If the data length of the data consecutive number is 3 or less, the encoded header
No bits are assigned to the
Data length of the same number of consecutive pixel data in the data block
If the number is 4 or more and a predetermined number or less, two bits are added to the encoded header.
It is noted that more than
In any one of claims 13 to 15,
Optical disk described .
JP9199881A 1995-02-03 1997-07-25 Image information recording medium and method of manufacturing the same Expired - Lifetime JP2807456B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9199881A JP2807456B2 (en) 1995-02-03 1997-07-25 Image information recording medium and method of manufacturing the same

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP1630495 1995-02-03
JP7-16304 1995-02-03
JP9199881A JP2807456B2 (en) 1995-02-03 1997-07-25 Image information recording medium and method of manufacturing the same

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP1888596A Division JP2712099B2 (en) 1995-02-03 1996-02-05 Image information encoding / decoding system

Publications (2)

Publication Number Publication Date
JPH1070705A JPH1070705A (en) 1998-03-10
JP2807456B2 true JP2807456B2 (en) 1998-10-08

Family

ID=26352618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9199881A Expired - Lifetime JP2807456B2 (en) 1995-02-03 1997-07-25 Image information recording medium and method of manufacturing the same

Country Status (1)

Country Link
JP (1) JP2807456B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4599740B2 (en) * 2000-04-21 2010-12-15 ソニー株式会社 Information processing apparatus and method, recording medium, program, and recording medium
JP2004164292A (en) * 2002-11-13 2004-06-10 Fujitsu Ltd Mail receiving method, its device, program and recording medium
JP2007251519A (en) 2006-03-15 2007-09-27 Fujitsu Ltd Video data storage device and video data storage method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2735560B2 (en) * 1988-04-04 1998-04-02 パイオニア株式会社 Image information reproduction processing device

Also Published As

Publication number Publication date
JPH1070705A (en) 1998-03-10

Similar Documents

Publication Publication Date Title
KR100253729B1 (en) Data recording method and recording medium
JP2712099B2 (en) Image information encoding / decoding system
JP2977513B2 (en) Image information encoding / decoding system
JP2807456B2 (en) Image information recording medium and method of manufacturing the same
JP2829266B2 (en) Image information encoding / decoding system
JP2829294B2 (en) Image information recording medium and method of manufacturing the same
JP3680071B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3887398B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3679851B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
KR100215620B1 (en) System for transmitting and receiving video information
JPH1098721A (en) Encoding and decoding system for image information
JP3680070B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3680075B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3680069B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3680077B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3887400B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3680078B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3680074B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3680072B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3680073B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP3680076B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP4316665B2 (en) Image information encoding method, reproducing method, and reproducing apparatus
JP2006287957A (en) Encoding method, reproduction method, and reproduction apparatus of image information
JP2004266869A (en) Playback apparatus and playback method
JP2006304321A (en) Encoding method, reproducing method and reproducing apparatus of image information

Legal Events

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

Free format text: PAYMENT UNTIL: 20080724

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090724

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090724

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100724

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110724

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20120724

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20130724

Year of fee payment: 15

EXPY Cancellation because of completion of term