JPH09322161A - Decode device - Google Patents

Decode device

Info

Publication number
JPH09322161A
JPH09322161A JP13704896A JP13704896A JPH09322161A JP H09322161 A JPH09322161 A JP H09322161A JP 13704896 A JP13704896 A JP 13704896A JP 13704896 A JP13704896 A JP 13704896A JP H09322161 A JPH09322161 A JP H09322161A
Authority
JP
Japan
Prior art keywords
video
audio
decoding
stream
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP13704896A
Other languages
Japanese (ja)
Inventor
Masato Hasegawa
政人 長谷川
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.)
EKUSHINGU KK
Brother Industries Ltd
Xing Inc
Original Assignee
EKUSHINGU KK
Brother Industries Ltd
Xing Inc
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 EKUSHINGU KK, Brother Industries Ltd, Xing Inc filed Critical EKUSHINGU KK
Priority to JP13704896A priority Critical patent/JPH09322161A/en
Publication of JPH09322161A publication Critical patent/JPH09322161A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To reduce disturbance at the time of program switching of video data and audio data by judging the switching of a channel based on a detected program number. SOLUTION: The program number uniquely added for each channel is detected out of a transport stream inputted from a DEMUX device 3 as a demultiplexer and when the switching of the channel is judged based on the detected program number, decode processing for demulti-plexing data into video data and audio data at a system decoder 20 is stopped. At the same time, buffers 20a and 20b for video and audio PES construction as work buffers used for that decode processing are cleared and after the preparation on the side of an A/V decoder 30 is completed, decode processing is restarted based on the transport stream of a new program number.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えばMPEG規
格によって圧縮符号化されたオーディオ情報やビデオ情
報をデコードするデコード装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding device for decoding audio information or video information compression-coded according to the MPEG standard, for example.

【0002】[0002]

【従来の技術】従来より、高速伝送の実現等の理由でM
PEG(Moving Picture Image Coding Experts
Group )等の情報圧縮用符号化規格に基づいて情報圧
縮された情報(ビデオ情報やオーディオ情報等)を送信
し、デコード装置でデコードして使用することが考えら
れている。
2. Description of the Related Art Conventionally, M has been used for reasons such as realization of high-speed transmission.
PEG (Moving Picture Image Coding Experts)
It has been considered that information (information such as video information or audio information) compressed according to an information compression coding standard such as Group) is transmitted, and is decoded by a decoding device for use.

【0003】そして、このデコード装置でデコードする
オーディオ情報あるいはビデオ情報のプログラムは1種
類であるため、デコード装置でデコードするプログラム
のプログラム番号を設定してデコードしていた。つま
り、デコード装置ではシステムデコード部が次のような
処理を通常行っている。 トランスポートストリームのプログラムマップテーブ
ル中のプログラム番号と、プログラムを構成するビデオ
あるいはオーディオなどの個別ストリームが伝送されて
いるトランスポート・パケットのPIDのリストや付属
情報を取得する。 取得したプログラム番号とデコード装置で設定されて
いるプログラム番号とマッチしていた場合は、プログラ
ムを構成するビデオやオーディオのPIDのリストを記
憶する。 PIDの記憶時点以降に入力されるビデオやオーディ
オのトランスポートパケットのPIDと記憶しているP
IDがマッチしている場合は、そのビデオや、オーディ
オのデータをオーディオ/ビデオデコード部へ伝送しデ
コードを行う。マッチしなければそのトランスポートパ
ケットを破棄する。
Since there is only one type of audio information or video information program decoded by this decoding device, the decoding device has set the program number of the program to be decoded. That is, in the decoding device, the system decoding unit normally performs the following processing. The program number in the program map table of the transport stream, the PID list of the transport packet in which an individual stream such as video or audio constituting the program is transmitted, and ancillary information are acquired. If the acquired program number and the program number set in the decoding device match, a list of video and audio PIDs forming the program is stored. PID of PID of video or audio transport packet input after PID is stored
If the IDs match, the video or audio data is transmitted to the audio / video decoding unit for decoding. If it does not match, the transport packet is discarded.

【0004】また、デコード装置へデータを供給する高
速伝送路上には、トランスポートストリームを周波数多
重化し、数チャンネルのトランスポートストリームを乗
せることができる。そして、この周波数多重化されたス
トリームのチャンネルを切り替えることによって、シス
テムデコード部にてプログラム番号のチェックをせずに
オーディオ/ビデオデコード部にオーディオとビデオの
データを送り込めば、デコードしているプログラムを自
動的に切り替えることができることとなる。
On the high-speed transmission line for supplying data to the decoding device, the transport stream can be frequency-multiplexed and the transport stream of several channels can be placed. Then, by switching the channels of this frequency-multiplexed stream, if the audio and video data are sent to the audio / video decoding section without checking the program number in the system decoding section, the program being decoded Can be switched automatically.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、プログ
ラム番号のチェックをせずにオーディオ/ビデオデコー
ド部にオーディオとビデオのデータを送り込んだ場合
は、オーディオ/ビデオデコード部にてデコードした場
合、データエラーが発生して、映像や音の乱れが生じる
可能性がある。これは、複数のトランスポートパケット
によって1つのPESパケットが構築され、さらに複数
のPESパケットによって1つの映像フレームが完成さ
れる形式であることが多いため、プログラム番号のチェ
ックをしないと、例えば1つの映像フレームの途中であ
っても別のプログラムによるビデオ情報に強制的に切り
替わってしまうこと等に起因する。
However, if the audio / video data is sent to the audio / video decoding section without checking the program number, a data error will occur when the audio / video decoding section decodes the data. Occurrence may cause disturbance of video and sound. This is a format in which one PES packet is constructed by a plurality of transport packets, and one video frame is completed by a plurality of PES packets. Therefore, if the program number is not checked, for example, one This is because the video information is forcibly switched to another program even in the middle of a video frame.

【0006】本発明は、上述した問題点を解決するため
になされたものであり、多重化されたストリームから複
合化するストリームを選択してデコード装置に入力した
場合に、その切り替えタイミングをデコード装置で認識
して、ビデオデータとオーディオデータのプログラム切
り替え時の乱れを少なくすることを目的とする。
The present invention has been made to solve the above-mentioned problems, and when a stream to be composited is selected from a multiplexed stream and input to a decoding apparatus, the switching timing of the switching timing is decoded. The purpose is to reduce the disturbance when switching programs between video data and audio data.

【0007】[0007]

【課題を解決するための手段及び発明の効果】この目的
を達成するためになされた本発明のデコード装置は、圧
縮符号化されたビデオ又はオーディオの少なくとも一方
の情報を含むストリームがディジタル信号多重化により
複数のチャンネルに対応して多重化された多重化ストリ
ームを入力し、その中から指定された1チャンネルのト
ランスポートストリームに分離して出力する分離装置に
接続されており、該分離装置より入力したトランスポー
トストリームに基づき、圧縮符号化された前記データを
復号するデコード手段を備えているデコード装置におい
て、前記分離装置より入力したトランスポートストリー
ム中より、チャンネル毎にユニークに付けられているプ
ログラム番号を検出し、検出したプログラム番号に基づ
いてチャンネルが切り替わったことを判断する判断手段
と、該判断手段によってチャンネルの切り替わりを判断
した場合には、前記デコード手段によるデコード処理を
停止させ、当該デコード処理に使用しているワークバッ
ファをクリアしてから、新しいプログラム番号のトラン
スポートストリームに基づく前記デコード手段によるデ
コード処理を再開させるデコードタイミング制御手段と
を備えることを特徴とする。
Means for Solving the Problems and Effect of the Invention The decoding device of the present invention made to achieve this object is a digital signal multiplexing stream in which at least one of compression-encoded video or audio information is contained. Is connected to a demultiplexing device that inputs a multiplexed stream corresponding to a plurality of channels, demultiplexes into a specified 1-channel transport stream, and outputs the demultiplexed stream. In a decoding device having a decoding means for decoding the compressed and encoded data based on the transport stream, the program number uniquely assigned to each channel from the transport stream input from the separation device. Detected and the channel is detected based on the detected program number. If the determination means determines that the channel has been changed, and if the determination means determines that the channel is switched, the decoding processing by the decoding means is stopped and the work buffer used for the decoding processing is cleared. A decoding timing control means for restarting the decoding processing by the decoding means based on the transport stream of the new program number.

【0008】本デコード装置によれば、判断手段が、分
離装置より入力したトランスポートストリーム中より、
チャンネル毎にユニークに付けられているプログラム番
号を検出し、検出したプログラム番号に基づいてチャン
ネルが切り替わったことを判断することができ、判断手
段によってチャンネルの切り替わりを判断した場合に
は、デコードタイミング制御手段が次のような制御を実
行する、すなわち、デコード手段によるデコード処理を
停止させ、当該デコード処理に使用しているワークバッ
ファをクリアしてから、新しいプログラム番号のトラン
スポートストリームに基づくデコード手段によるデコー
ド処理を再開させるのである。
According to the present decoding device, the judging means determines from the transport stream input from the separating device that
The program number uniquely assigned to each channel can be detected, and it can be determined that the channel has been switched based on the detected program number. If the determination unit determines the channel switching, the decoding timing control Means performs the following control, that is, the decoding processing by the decoding means is stopped, the work buffer used for the decoding processing is cleared, and then the decoding means based on the transport stream of the new program number is used. The decoding process is restarted.

【0009】本デコード装置は分離装置に接続されるこ
とを前提としており、その分離装置では、圧縮符号化さ
れたビデオ又はオーディオの少なくとも一方の情報を含
むストリームが例えば時分割同期多重化などのディジタ
ル信号多重化により複数のチャンネルに対応して多重化
された多重化ストリームを入力し、その中から指定され
た1チャンネルのトランスポートストリームに分離して
デコード装置に出力してくる。
The decoding device is premised on being connected to a separation device, in which a stream containing at least one of video and audio information which has been compression-encoded is digital, for example, time division synchronous multiplexing. A multiplexed stream multiplexed corresponding to a plurality of channels by signal multiplexing is input, and a transport stream of a designated one channel is separated from the multiplexed stream and output to a decoding device.

【0010】そのため、解決課題として上述したよう
に、分離装置から入力されたトランスポートストリーム
について、そのプログラム番号(チャンネル)のチェッ
クをせずにオーディオ/ビデオデコード部にオーディオ
とビデオのデータを送り込んでしまうと、オーディオ/
ビデオデコード部にてデコードした場合、プログラム番
号が変わるため映像フレームの途中で強制的に別のプロ
グラムによるビデオ情報に切り替わってしまうこと等に
起因してデータエラーが発生し、映像や音の乱れが生じ
る可能性がある。
Therefore, as described above as a problem to be solved, as to the transport stream input from the separation device, the audio / video data is sent to the audio / video decoding unit without checking the program number (channel). If it ends up, audio /
When the video decoding unit decodes, the program number changes, so a data error occurs due to the video information being forcibly switched to another program in the middle of the video frame, and the video or sound is disturbed. Can occur.

【0011】これに対して、本発明の場合は、プログラ
ム番号を検出することによりチャンネルが切り替わった
ことを判断した場合には、デコード手段によるデコード
処理を停止させ、そのデコード処理に使用しているワー
クバッファをクリアしてから、新しいプログラム番号の
トランスポートストリームに基づくデコード手段による
デコード処理を再開させるため、プログラム切替時(チ
ャンネル切替時)の乱れを少なくすることができる。
On the other hand, in the case of the present invention, when it is determined that the channel has been switched by detecting the program number, the decoding processing by the decoding means is stopped and used for the decoding processing. Since the decoding process by the decoding means based on the transport stream of the new program number is restarted after clearing the work buffer, the disturbance at the time of program switching (at the time of channel switching) can be reduced.

【0012】なお、上述したように、ビデオ又はオーデ
ィオの少なくとも一方の情報を含むストリームについて
復号化する場合に有効であるが、ビデオ情報及びオーデ
ィオ情報が多重化されたビデオ・オーディオ多重化トラ
ンスポートストリームとして分離装置から入力される場
合も多い。その場合には、請求項2に示すように構成す
ることが考えられる。つまり、デコード手段は、ビデオ
・オーディオ多重化トランスポートストリームをビデオ
ストリームとオーディオストリームとに分離するシステ
ムデコード手段と、該システムデコード手段によって分
離されたビデオストリームをデコードするビデオデコー
ド手段と、同じく分離されたオーディオストリームをデ
コードするオーディオデコード手段とを備えるように
し、デコードタイミング制御手段は、判断手段によって
チャンネルの切り替わりを判断した場合には、システ
ム、ビデオ及びオーディオの各デコード手段による処理
を停止させ、当該処理に使用しているビデオ及びオーデ
ィオのワークバッファをクリアしてから、新しいプログ
ラム番号のトランスポートストリームに基づくシステ
ム、ビデオ及びオーディオの各デコード手段による処理
を再開させるのである。
As described above, it is effective when decoding a stream containing at least one of video and audio information, but a video / audio multiplexed transport stream in which video information and audio information are multiplexed. Is often input from the separation device as. In that case, it can be considered to configure as described in claim 2. That is, the decoding means includes a system decoding means for separating the video / audio multiplexed transport stream into a video stream and an audio stream, and a video decoding means for decoding the video stream separated by the system decoding means. Audio decoding means for decoding the audio stream, the decoding timing control means stops the processing by the decoding means for the system, video and audio when the switching means judges the channel switching, and After clearing the video and audio work buffers used for processing, the system, video and audio decoding means based on the transport stream with the new program number are used. That than is to restart the process.

【0013】このようなデコード装置は、多くのデータ
通信に適用することができるが、例えばビデオとオーデ
ィオがセットになっているものとしては、CATVシス
テム等において考えられているいわゆるビデオ・オン・
デマンド(VOD)や、あるいはカラオケサービス等が
ある。カラオケサービスの場合、オーディオだけでもカ
ラオケ伴奏とはなるが、現在はカラオケ曲に応じた背景
画を表示することがもはや常識となりつつあるので、ビ
デオとオーディオがセットになったものとして捉えるこ
とができる。
Such a decoding device can be applied to many types of data communication. For example, as a device in which video and audio are combined, a so-called video-on-system considered in a CATV system or the like is used.
There is a demand (VOD) or karaoke service. In the case of a karaoke service, audio alone can be a karaoke accompaniment, but it is now becoming common sense to display a background image corresponding to the karaoke song, so video and audio can be regarded as a set. .

【0014】[0014]

【発明の実施の形態】以下、本発明の実施形態を図面を
参照して説明する。図1は、本発明のデコード装置の一
実施形態としてのMPEGデコーダ1の概略構成を示す
ブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of an MPEG decoder 1 as an embodiment of a decoding device of the present invention.

【0015】本実施形態のMPEGデコーダ1は、分離
装置としてのDEMUX装置(デマルチプレクサ:demu
ltiplexer )3に接続されており、DEMUX装置3か
ら出力されるトランスポートストリームを入力する。D
EMUX装置3は、圧縮符号化されたビデオ又はオーデ
ィオの少なくとも一方の情報を含むストリームが例えば
時分割同期多重化などのディジタル信号多重化により複
数のチャンネルに対応して多重化された多重化ストリー
ムを入力し、キー入力装置5からのチャンネル切替指示
に従って指定された1チャンネルのトランスポートスト
リームに分離して、MPEGデコーダ1に出力するので
ある。
The MPEG decoder 1 of the present embodiment is a DEMUX device (demultiplexer: demux) as a separating device.
ltiplexer) 3 and inputs the transport stream output from the DEMUX device 3. D
The EMUX device 3 produces a multiplexed stream in which a stream containing at least one of video and audio information that has been compression-encoded is multiplexed corresponding to a plurality of channels by digital signal multiplexing such as time division synchronous multiplexing. It is input, separated into a transport stream of one channel designated according to a channel switching instruction from the key input device 5, and output to the MPEG decoder 1.

【0016】MPEGデコーダ1は、上述したDEMU
X装置3からのトランスポートストリームを、外部入力
I/F10にて受信し、その受信したトランスポートス
トリームを、システムデコード手段としてのシステムデ
コーダ20にてビデオPESパケットとオーディオPE
Sパケットとに分別する。システムデコーダ20には、
システムデコーダ20の処理用プログラムが格納されて
いるROM21と、システムデコーダ20のワーク用の
RAM22とが接続されている。
The MPEG decoder 1 is the above-mentioned DEMU.
The transport stream from the X device 3 is received by the external input I / F 10, and the received transport stream is video PES packet and audio PE by the system decoder 20 as a system decoding means.
It is classified into S packets. The system decoder 20 has
A ROM 21 in which a processing program of the system decoder 20 is stored and a work RAM 22 of the system decoder 20 are connected.

【0017】また、システムデコーダ20はビデオPE
S構築用バッファ20aとオーディオPES構築用バッ
ファ20bとを備えており、それら両バッファ20a,
20bにおいて構築したビデオPESパケット及びオー
ディオPESパケットは、ビデオ・チャネル及びオーデ
ィオ・チャネルを介してオーディオ/ビデオデコーダ
(以下A/Vデコーダと略記する。)30に入力され
る。A/Vデコーダ30は、入力したビデオPESパケ
ット及びオーディオPESパケットをそれぞれをMPE
Gデコードする「ビデオデコード手段」及び「オーディ
オデコード手段」に相当する。A/Vデコーダ30に
は、A/Vデコーダ30のワーク用のRAM35と、A
/Vデコーダ30を制御し、「判断手段」及び「デコー
ドタイミング制御手段」に相当する制御手段としてのC
PU40が接続されている。
The system decoder 20 is a video PE.
The S construction buffer 20a and the audio PES construction buffer 20b are provided.
The video PES packet and audio PES packet constructed in 20b are input to an audio / video decoder (hereinafter abbreviated as A / V decoder) 30 via a video channel and an audio channel. The A / V decoder 30 MPEs the input video PES packet and audio PES packet respectively.
It corresponds to “video decoding means” and “audio decoding means” for G decoding. The A / V decoder 30 includes a work RAM 35 for the A / V decoder 30 and an A / V decoder 30.
C as the control means for controlling the / V decoder 30 and corresponding to the "determination means" and the "decode timing control means".
The PU 40 is connected.

【0018】CPU40には、CPU40のプログラム
が格納されているROM41と、CPU40のワーク用
のRAM42とが接続されていると共に、前記システム
デコーダ20との間で情報通知のやり取りが可能とされ
ている。また、A/Vデコーダ30のデジタル・ビデオ
出力から出力されたデジタル・ビデオデータはビデオD
Aコンバータ50に入力され、そのビデオDAコンバー
タ50においてテレビの映像信号であるNTSC信号に
変換されて外部出力される。一方、A/Vデコーダ30
のデジタル・オーディオ出力から出力されたデジタル・
オーディオデータはオーディオDAコンバータ55に入
力され、そのオーディオDAコンバータ55においてア
ナログオーディオ信号に変換されて外部出力される。
The CPU 40 is connected to a ROM 41 storing a program of the CPU 40 and a work RAM 42 of the CPU 40, and is capable of exchanging information notifications with the system decoder 20. . The digital video data output from the digital video output of the A / V decoder 30 is a video D.
It is input to the A converter 50, converted into an NTSC signal which is a video signal of the television in the video DA converter 50, and is externally output. On the other hand, the A / V decoder 30
Digital audio output from the digital audio output
The audio data is input to the audio D / A converter 55, and is converted into an analog audio signal by the audio D / A converter 55 and output to the outside.

【0019】前記A/Vデコーダ30は、システムデコ
ーダ20でビデオPESパケットとオーディオPESパ
ケットとに分別されたそれぞれのパケットを、オーディ
オ・チャネルとビデオ・チャネルからそれぞれ入力す
る。A/Vデコーダ30の内部は、図2に示すように前
処理部31と後処理部32の2つの処理ブロックに分か
れている。そして、前処理部31がオーディオとビデオ
のそれぞれのパケットのヘッダ部とデータ部とを分け
て、それぞれをヘッダ・バッファとチャネル・バッファ
に入力していく。
The A / V decoder 30 inputs the respective packets separated into the video PES packet and the audio PES packet by the system decoder 20 from the audio channel and the video channel, respectively. The inside of the A / V decoder 30 is divided into two processing blocks of a pre-processing unit 31 and a post-processing unit 32 as shown in FIG. Then, the preprocessing unit 31 separates the header part and the data part of each of the audio and video packets and inputs them into the header buffer and the channel buffer.

【0020】これらヘッダ・バッファとチャネル・バッ
ファは、A/Vデコーダ30のワーク用のRAM35に
設けられており、図2に示すように、ビデオPESヘッ
ダ・バッファ36と、オーディオPESヘッダ・バッフ
ァ37と、ビデオチャネル・バッファ38と、オーディ
オチャネル・バッファ39の4つがある。
The header buffer and the channel buffer are provided in the work RAM 35 of the A / V decoder 30, and as shown in FIG. 2, a video PES header buffer 36 and an audio PES header buffer 37. , A video channel buffer 38 and an audio channel buffer 39.

【0021】一方、A/Vデコーダ30の後処理部32
は、実際に前処理部31が組み立てたビデオ及びオーデ
ィオの両チャネル・バッファ38,39内のデータをM
PEGエンコードして、デジタル・ビデオ出力、デジタ
ル・オーディオ出力のそれぞれからデジタル・ビデオデ
ータとデジタル・オーディオデータとを出力する。
On the other hand, the post-processing section 32 of the A / V decoder 30
Converts the data in both the video and audio channel buffers 38 and 39 actually assembled by the preprocessing unit 31 into M
PEG encoding is performed, and digital video data and digital audio data are output from each of the digital video output and the digital audio output.

【0022】以上は、MPEGデコーダ1のハード構成
を説明したが、次に、MPEGデコーダ1がDEMUX
装置3から入力してデコードする対象であるトランスポ
ートストリームについて説明する。図3はトランスポー
トストリームのデータ構造を階層的に示したものであ
り、トランスポートストリームは188バイトの固定長
トランスポート・パケットによって多重化されたストリ
ームである。このトランスポート・パケットは通常PE
Sパケットよりも短く、PESパケットを分割してトラ
ンスポート・パケットとしているもので、4バイトのヘ
ッダ部と実行データ部としての184バイトのペイロー
ドから構成されている。なお、ヘッダ部のフラグによっ
ては、ヘッダ部とペイロードとの間に、PCR(Progr
am Clock Reference)情報等が格納されているアダプ
テーションフィールド部が挿入されることがあるが、こ
こでは考えないこととする。
The hardware configuration of the MPEG decoder 1 has been described above. Next, the MPEG decoder 1 will be the DEMUX.
The transport stream that is input from the device 3 and that is to be decoded will be described. FIG. 3 shows the data structure of the transport stream in a hierarchical manner. The transport stream is a stream multiplexed by fixed-length transport packets of 188 bytes. This transport packet is usually PE
It is shorter than the S packet, and the PES packet is divided into transport packets, which are composed of a 4-byte header part and a 184-byte payload as an execution data part. Depending on the flag of the header part, PCR (Progrr) may be inserted between the header part and the payload.
Although an adaptation field part storing am Clock Reference) information and the like may be inserted, it is not considered here.

【0023】まず、トランスポート・パケットのヘッダ
部は、8ビットの同期バイト、それぞれ1ビットの誤り
表示、ユニット開始表示及びトランスポート・パケット
・プライオリティ、パケットを識別するための13ビッ
トのPID(Packet Identification )、2ビットの
スクランブル制御、2ビットのアダプテーション・フィ
ールド制御、4ビットの巡回カウンタから構成されてい
る。
First, the header portion of the transport packet includes an 8-bit synchronization byte, a 1-bit error indication, a unit start indication and a transport packet priority, and a 13-bit PID (Packet) for identifying the packet. Identification), 2-bit scramble control, 2-bit adaptation field control, and 4-bit cyclic counter.

【0024】このヘッダ中のPIDはペイロードにある
データの識別情報であり、システムデコーダ20(図1
参照)は、このPIDを見ることでペイロードがどのよ
うなデータであるかを判断することができる。しかし、
PIDに基づいてペイロードの情報をリンクするための
情報(例えばPID=133のときはビデオ、PID=
134のときはオーディオであるというようなリンクす
る情報)というのは、プログラムマップテーブルを参照
しなければ得られない。このプログラムマップテーブル
も所定のPIDのトランスポート・パケットのペイロー
ドに格納されている。そして、このプログラム・マップ
・テーブルの「所定のPID」は、PID=0のときの
トランスポートパケットのペイロードにあるプログラム
・アソシエイション・テーブルに格納されており、この
中で各プログラム番号に対応付けされている。
The PID in this header is the identification information of the data in the payload, and is the system decoder 20 (see FIG. 1).
) Can determine what data the payload is by looking at the PID. But,
Information for linking payload information based on the PID (for example, video when PID = 133, PID =
(Link information such as audio at 134) cannot be obtained without referring to the program map table. This program map table is also stored in the payload of a transport packet having a predetermined PID. The "predetermined PID" of the program map table is stored in the program association table in the payload of the transport packet when PID = 0, and is associated with each program number in the table. Have been.

【0025】続いて、プログラム・アソシエイション・
テーブルが格納されている場合のペイロードについて説
明する。この場合のペイロードは、8ビットのポインタ
フィールドと96ビット(12バイト)のプログラム・
アソシエイション・テーブルと171バイトのスタッフ
ィング・バイトとから構成されている。
Next, program association
The payload when the table is stored will be described. The payload in this case consists of an 8-bit pointer field and a 96-bit (12-byte) program
It consists of an association table and 171 bytes of stuffing bytes.

【0026】プログラム・アソシエイション・テーブル
には、8ビットのテーブルIDと12ビットのセクショ
ン長と32ビットのプログラム番号情報が格納されてお
り、プログラム番号情報は、16ビットのプログラム番
号と3ビットの予備と13ビットのプログラムマップP
IDとから構成されている。これによって、プログラム
番号とそれに対応するプログラムマップのPIDが判
る。なお、トランスポートストリームの規格によると、
プログラム番号とプログラムマップPIDの組み合せは
数通り格納されていても良いことになるが、本実施形態
においては1種類のプログラム番号を格納するものとす
る。
The program association table stores a table ID of 8 bits, a section length of 12 bits, and program number information of 32 bits. The program number information includes a 16-bit program number and a 3-bit program number. Spare and 13-bit program map P
ID. Thus, the program number and the PID of the corresponding program map can be determined. According to the transport stream standard,
Although several combinations of the program number and the program map PID may be stored, one type of program number is stored in the present embodiment.

【0027】さらに、プログラム・マップ・テーブルが
格納されている場合のペイロードについて説明する。こ
の場合のペイロードは、8ビットのポインタフィールド
とMバイトのスタッフィング・バイトと所定バイト
[(184−1−M)バイト]のプログラム・マップ・
テーブルとから構成されている。
Further, the payload when the program map table is stored will be described. In this case, the payload is an 8-bit pointer field, a M byte stuffing byte, and a program map file of a predetermined byte [(184-1-M) byte].
It consists of a table and.

【0028】プログラム・マップ・テーブルには、8ビ
ットのテーブルIDと12ビットのセクション長と所定
ビットの複数のプログラム情報が格納されており、1つ
のプログラム情報は、8ビットのストリームタイプと、
3ビットの予備と、13ビットのエレメンタリPID
と、3ビットの予備と、Nビットのエレメンタリストリ
ーム(ES)情報とから構成されている。
The program map table stores a table ID of 8 bits, a section length of 12 bits, and a plurality of program information of predetermined bits. One program information is an 8-bit stream type,
3 bit spare and 13 bit elementary PID
It is composed of 3 bits of spare and N bits of elementary stream (ES) information.

【0029】なお、図4(a)は、本実施形態における
上述の8ビットのテーブルIDの値とテーブル内容の対
応関係を示す説明図である。この場合には、テーブルI
Dが「0X00」であればプログラム・アソシエイショ
ン・テーブルであり、テーブルIDが「0X01」であ
ればコンディション・アクセス・テーブルであり、テー
ブルIDが「0X02」であればプログラム・マップ・
テーブルである。
FIG. 4A is an explanatory diagram showing the correspondence between the values of the above 8-bit table ID and the table contents in this embodiment. In this case, Table I
If D is "0X00", it is a program association table, if table ID is "0X01", it is a condition access table, and if table ID is "0X02", it is a program map table.
It is a table.

【0030】また、図4(b)は、上述したプログラム
・マップ・テーブル中のプログラム情報における8ビッ
トの値とストリームタイプの内容との対応関係を示す説
明図である。本実施形態では、「0X01」の場合にM
PEG1ビデオのストリームであり、「0X02」の場
合にMPEG2ビデオのストリームである。また、「0
X03」の場合にMPEG1オーディオのストリームで
あり、「0X04」の場合にMPEG2オーディオのス
トリームである。なお、「0X05」の場合はプライベ
ートデータのストリームとされている。
FIG. 4B is an explanatory diagram showing the correspondence between the 8-bit value in the program information in the program map table and the contents of the stream type. In the present embodiment, if “0X01”, M
It is a PEG1 video stream, and is an MPEG2 video stream in the case of “0X02”. In addition, "0
In the case of “X03”, it is an MPEG1 audio stream, and in the case of “0X04”, it is an MPEG2 audio stream. In the case of “0X05”, it is a private data stream.

【0031】次に、本実施形態のMPEGデコーダ1の
動作について説明する。まず、外部入力I/F10を介
して受信したトランスポートストリームに対するシステ
ムデコーダ20での処理について図5のフローチャート
を参照して説明する。
Next, the operation of the MPEG decoder 1 of this embodiment will be described. First, the processing in the system decoder 20 for the transport stream received via the external input I / F 10 will be described with reference to the flowchart in FIG.

【0032】S10でトランスポートパケットを受信
し、続くS20では、その受信したトランスポートパケ
ットのヘッダ部のPIDがプログラム・アソシエイショ
ン・テーブルに対応するものであるかどうかを判断す
る。そうであれば(S20:YES)、S100へ移行
し、プログラム・アソシエイション・テーブル(図3参
照)中のプログラム番号情報として設定されているプロ
グラム番号が変更であるかどうかを判断する。
In S10, the transport packet is received, and in the subsequent S20, it is determined whether or not the PID in the header of the received transport packet corresponds to the program association table. If so (S20: YES), the procedure will be shifted to S100, and it will be determined whether or not the program number set as the program number information in the program association table (see FIG. 3) is changed.

【0033】S100で肯定判断、すなわちプログラム
番号が変更である場合は、S110にてプログラム番号
情報(図3参照)中のプログラム番号、S120では同
じくプログラム番号情報中のプログラムマップPIDを
それぞれRAM22の所定エリアへ記憶する。
If the determination in S100 is affirmative, that is, if the program number is changed, the program number in the program number information (see FIG. 3) is determined in S110, and the program map PID in the program number information is determined in S120 in a predetermined manner in the RAM 22. Store in the area.

【0034】そして、続くS130でシステムデコーダ
20中のビデオPES構築用バッファ20a及びオーデ
ィオPES構築用バッファ20b(図1参照)をクリア
してから、S140にてCPU40へプログラム番号切
替通知を送る。その後は、CPU40からA/Vデコー
ダ30がスタンバイOKである旨が送られてくるのを待
っており、送られてくれば(S150:YES)、S1
0へ戻る。
Then, in step S130, the video PES construction buffer 20a and the audio PES construction buffer 20b (see FIG. 1) in the system decoder 20 are cleared, and then the program number switching notice is sent to the CPU 40 in step S140. After that, the CPU 40 waits for the A / V decoder 30 to be in the standby OK state. If it is transmitted (S150: YES), S1
Return to 0.

【0035】上述したS120においてプログラムマッ
プPIDを記憶したので、次はその記憶されているプロ
グラムマップPIDと一致するトランスポートパケット
が来るのを待つ(S30)。大抵は、プログラム・アソ
シエイション・テーブルが格納されていたトランスポー
トパケットの次のパケットが、該当するプログラム・マ
ップ・テーブルの格納されたトランスポートパケットと
なる。
Since the program map PID has been stored in S120, the next wait is for a transport packet that matches the stored program map PID (S30). In most cases, the packet next to the transport packet in which the program association table was stored becomes the transport packet in which the corresponding program map table was stored.

【0036】プログラム・マップ・テーブルのPIDを
持つトランスポートパケットであると(S30:YE
S)、S40へ移行して、そのプログラム・マップ・テ
ーブル中の複数のプログラム情報(図3参照)をRAM
22の所定エリアに記憶する。その後S10へ戻る。こ
のプログラム情報には、上述したようにストリームタイ
プやエレメンタリPID等が格納されているため、これ
によって、今後自己がシステムデコードすべきビデオP
ESのPIDやオーディオPESのPIDを得ることが
できるのである。
If the transport packet has the PID of the program map table (S30: YE
S) and S40, and a plurality of program information (see FIG. 3) in the program map table is stored in the RAM.
It is stored in a predetermined area 22. Then, the process returns to S10. Since the program type stores the stream type, the elementary PID, and the like as described above, this allows the video P to be system decoded by itself in the future.
The PID of ES and the PID of audio PES can be obtained.

【0037】システムデコーダ20としては、これ以降
に受信したトランスポートパケットのPIDを見て、ビ
デオ用のトランスポートパケットであるか(S50)、
オーディオ用のトランスポートパケットであるか(S6
0)を判断し、それぞれ該当する場合には、S70に移
行して、ビデオPESパケットあるいはオーディオPE
Sパケットの構築処理を実行する。
The system decoder 20 looks at the PIDs of the transport packets received thereafter and determines whether the transport packets are for video (S50).
Is it a transport packet for audio (S6
0) is judged, and if they correspond to each other, the process proceeds to S70, and the video PES packet or audio PE is
The S packet construction process is executed.

【0038】ビデオPESパケットあるいはオーディオ
PESパケットはそれぞれ複数のトランスポートパケッ
トによって構築されるため、それぞれビデオPES構築
用バッファ20aあるいはオーディオPES構築用バッ
ファ20b(図1参照)内に構築されることとなる。S
80ではその構築が完了したかどうかを判断し、構築が
完了していなければS10へ戻り、次のトランスポート
パケットを受信するが、構築が完了してれば、ビデオP
ESパケットあるいはオーディオPESパケットをA/
Vデコーダ30へ送出する処理を実行する。
Since each of the video PES packet or the audio PES packet is constructed by a plurality of transport packets, it is constructed in the video PES construction buffer 20a or the audio PES construction buffer 20b (see FIG. 1). . S
At 80, it is judged whether or not the construction is completed. If the construction is not completed, the procedure returns to S10 to receive the next transport packet, but if the construction is completed, the video P
A / ES packet or audio PES packet
The process of sending to the V decoder 30 is executed.

【0039】このように、システムデコーダ20では、
「プログラム・アソシエイション・テーブルからプロ
グラム番号情報を得る→プログラム番号情報からプロ
グラム・マップ・テーブルのPIDを得る→プログラ
ム・マップ・テーブルのプログラム情報からストリーム
タイプのPIDを得る」というようなリンク情報を得
て、それに基づいて、上述したシステムデコード処理を
実施するのである。
As described above, in the system decoder 20,
Link information such as "obtain program number information from program association table-> obtain PID of program map table from program number information-> obtain stream type PID from program information of program map table" After that, the system decoding process described above is performed based on the obtained result.

【0040】なお、本実施形態においては、プログラム
番号に対応したストリームタイプ毎のPIDがユニーク
に付けられている。これは、ストリームタイプ毎のPI
Dをユニークに付けておかないと、プログラム番号が変
わったことを認識するまでにタイムラグが発生して、そ
の間にプログラム番号は違うが同じPIDのストリーム
をA/Vデコードしかねないため、それを防止するため
である。例えば、プログラム番号1のプログラム・マッ
プ・テーブルにおいては、ビデオPIDを133、オー
ディオ1PIDを134、オーディオ2PIDを135
とし、一方プログラム番号2のプログラム・マップ・テ
ーブルにおいては、ビデオPIDを233、オーディオ
1PIDを234、オーディオ2PIDを235として
ストリームタイプのPIDだけで区別できるように設定
するのである。
In the present embodiment, the PID for each stream type corresponding to the program number is uniquely assigned. This is the PI for each stream type
If D is not added uniquely, there will be a time lag before recognizing that the program number has changed, and during that time the stream with the same PID but with a different program number may be A / V decoded. This is to prevent it. For example, in the program map table of program number 1, the video PID is 133, the audio 1 PID is 134, and the audio 2 PID is 135.
On the other hand, in the program map table of program number 2, the video PID is set to 233, the audio 1 PID is set to 234, and the audio 2 PID is set to 235 so that they can be distinguished only by the stream type PID.

【0041】以上はシステムデコーダ20での処理であ
ったが、次に、A/Vデコーダ30がシステムデコーダ
20からのビデオPES及びオーディオPESを入力し
てMPEGデコードする際の処理について説明する。A
/Vデコーダ30の前処理部31(図2参照)は、ビデ
オあるいはオーディオのPESパケットを認識した時点
で、PESヘッダ部を、図2に示すビデオPESヘッダ
・バッファ36あるいはオーディオPESヘッダ・バッ
ファ37に書き込む。そして、上記PESヘッダ部をビ
デオPESヘッダ・バッファ36あるいはオーディオP
ESヘッダ・バッファ37に書き込むと同時に、CPU
40に対してオーディオPESReady割り込みを発
生させる。このCPU40で実行される割り込み処理を
簡単に説明すると、ビデオあるいはオーディオのチャネ
ル・バッファ・書き込みポインタとヘッダ・バッファ書
き込みポインタとをA/Vデコーダ30から取得し、ヘ
ッダ・バッファ書き込みポインタを基にビデオあるいは
オーディオのPESヘッダ部を読み込む。
The above is the processing by the system decoder 20. Next, the processing when the A / V decoder 30 inputs the video PES and audio PES from the system decoder 20 and performs MPEG decoding will be described. A
When recognizing a video or audio PES packet, the preprocessing unit 31 (see FIG. 2) of the / V decoder 30 converts the PES header into a video PES header buffer 36 or an audio PES header buffer 37 shown in FIG. Write to. Then, the PES header part is stored in the video PES header buffer 36 or the audio PES header.
At the same time as writing to the ES header buffer 37, the CPU
An audio PESReady interrupt is generated for 40. The interrupt processing executed by the CPU 40 will be briefly described. A video or audio channel buffer write pointer and a header buffer write pointer are obtained from the A / V decoder 30, and the video or audio channel buffer write pointer is obtained based on the header buffer write pointer. Alternatively, the audio PES header is read.

【0042】そして、PESヘッダ部中にタイムスタン
プがあれば、タイムスタンプを取得して、ビデオあるい
はオーディオのタイムスタンプ・テーブルにタイムスタ
ンプと先に取得したチャネル・バッファ書き込みポイン
タをセットする。これにより、タイムスタンプテーブル
が作成される。そして、オーディオとビデオの両タイム
スタンプ・テーブルは、CPU40のワーク用のRAM
42に格納されるのである。
If there is a time stamp in the PES header, the time stamp is acquired, and the time stamp and the previously acquired channel buffer write pointer are set in the video or audio time stamp table. As a result, the time stamp table is created. The audio and video time stamp tables are stored in the work RAM of the CPU 40.
It is stored in 42.

【0043】一方、このようなCPU40の処理とは別
個に、A/Vデコーダ30の後処理部32は、実際に前
処理部31が組み立てたビデオあるいはオーディオのチ
ャネル・バッファ38,39内のデータをMPEGエン
コードして、デジタル・ビデオ出力からデジタル・ビデ
オデータをビデオDAコンバータ50へ、あるいはデジ
タル・オーディオ出力からデジタル・オーディオデータ
をオーディオDAコンバータ55へ出力する。
On the other hand, separately from the processing of the CPU 40, the post-processing unit 32 of the A / V decoder 30 actually stores the data in the video or audio channel buffers 38 and 39 assembled by the pre-processing unit 31. Is MPEG encoded to output digital video data from the digital video output to the video DA converter 50 or digital audio data from the digital audio output to the audio DA converter 55.

【0044】まず、ビデオに関して図7のフローチャー
トを参照して説明すると、最初のステップS310にお
いてビデオチャネル・バッファ38をチェックし、その
バッファ38内のビデオデータが所定の1ピクチュア分
のサイズを超えているかどうかを判断する。1ピクチュ
ア分のサイズまで貯った場合には(S320:YE
S)、S330にてビデオデコードを開始し、ビデオブ
ラック画面(となっていた場合にはその画面)による表
示を解除する。これによって、デコードされたビデオデ
ータがビデオDAコンバータ50へ出力される。
First, referring to the flowchart of FIG. 7, regarding the video, the video channel buffer 38 is checked in the first step S310, and the video data in the buffer 38 exceeds the size of a predetermined one picture. Determine whether or not If you have stored up to the size of one picture (S320: YE
In S) and S330, video decoding is started, and the display on the video black screen (if it is displayed) is canceled. As a result, the decoded video data is output to the video DA converter 50.

【0045】まず、オーディオに関して図8のフローチ
ャートを参照して説明すると、最初のステップS410
においてオーディオチャネル・バッファ39をチェック
し、そのバッファ39内のオーディオデータが所定の1
フレーム分のサイズを超えているかどうかを判断する。
1フレーム分のサイズまで貯った場合には(S420:
YES)、S430にてオーディオデコードを開始し、
オーディオミュート状態(となっていた場合にはその状
態)を解除する。これによって、デコードされたオーデ
ィオデータがオーディオDAコンバータ55へ出力され
る。
First, the audio will be described with reference to the flowchart of FIG. 8. First step S410
In the audio channel buffer 39, the audio data in the buffer 39
Determine if it exceeds the size of the frame.
When the size of one frame is stored (S420:
YES), start audio decoding in S430,
Cancel the audio mute state (if it was, that state). As a result, the decoded audio data is output to the audio DA converter 55.

【0046】これが、A/Vデコードに関する基本的な
処理であるが、次に、本発明の特徴でもあるプログラム
切替に関してCPU40で実行される処理について、図
6のフローチャートを参照して説明する。図6の最初の
ステップS210では、システムデコーダ20からのプ
ログラム切替通知があるかどうかを判断する。これは、
上述した図5のS140にて通知されるものである。C
PU40がこの通知に基づいてS210の判断を行な
う。
This is the basic processing relating to A / V decoding. Next, the processing executed by the CPU 40 for program switching, which is a feature of the present invention, will be described with reference to the flowchart of FIG. In the first step S210 of FIG. 6, it is determined whether or not there is a program switch notification from the system decoder 20. this is,
This is notified in S140 of FIG. 5 described above. C
The PU 40 makes the determination in S210 based on this notification.

【0047】プログラム切替通知があった場合には(S
210:YES)、S220にて、A/Vデコーダ30
に対して、オーディオ及びビデオに関するデコード処理
をストップするよう指示を出すと共に、S230でオー
ディオのミュート指令、S240でビデオブラック画面
表示指令を出す。これにより、プログラム切替通知があ
ると、その時点よりA/Vデコーダ30からはオーディ
オデータやビデオデータがビデオDAコンバータ50や
オーディオDAコンバータ55に出力されなくなると共
に、それ以降にシステムデコーダ20から入力されたビ
デオPESあるいはオーディオPESは新規にはデコー
ドされなくなる。
If there is a program switch notification (S
210: YES), in S220, the A / V decoder 30
A command is issued to stop the decoding process for audio and video, an audio mute command is issued in S230, and a video black screen display command is issued in S240. As a result, when there is a program switching notification, audio data and video data are no longer output from the A / V decoder 30 to the video DA converter 50 and the audio DA converter 55 from that point, and are subsequently input from the system decoder 20. The video PES or audio PES will not be newly decoded.

【0048】そして、続くS250で、RAM35内の
ビデオ及びオーディオの両チャネル・バッファ38,3
9(図2参照)をクリアした後、S260にて、A/V
デコーダ30がスタンバイOK状態であることをシステ
ムデコーダ20に通知する。この通知によって、図5の
S150にて肯定判断となる。
Then, in the following S250, both the video and audio channel buffers 38 and 3 in the RAM 35.
After clearing 9 (see FIG. 2), in S260, A / V
The system decoder 20 is notified that the decoder 30 is in the standby OK state. With this notification, an affirmative determination is made in S150 of FIG.

【0049】このように、本実施形態のMPEGデコー
ダ1によれば、DEMUX装置3から入力したトランス
ポートストリーム中より、チャンネル毎にユニークに付
けられているプログラム番号を検出し、検出したプログ
ラム番号に基づいてチャンネルが切り替わったことを判
断することができる。そして、図5にて説明したよう
に、チャンネルの切り替わり(プログラム番号の変更)
を判断した場合には(S100:YES)、システムデ
コーダ20においてビデオとオーディオに分離するデコ
ード処理を停止させると共に、当該デコード処理に使用
しているワークバッファであるビデオ及びオーディオP
ES構築用バッファ20a,20bをクリアし、A/V
デコーダ30側の準備が完了してから、新しいプログラ
ム番号のトランスポートストリームに基づくデコード処
理を再開させる。
As described above, according to the MPEG decoder 1 of this embodiment, the program number uniquely assigned to each channel is detected from the transport stream input from the DEMUX device 3, and the detected program number is set to the detected program number. Based on this, it can be determined that the channel has been switched. Then, as described with reference to FIG. 5, channel switching (change of program number)
If it is determined (S100: YES), the system decoder 20 stops the decoding process for separating video and audio, and the video and audio P that are the work buffers used for the decoding process.
Clear ES construction buffers 20a and 20b, and A / V
After the preparation on the decoder 30 side is completed, the decoding process based on the transport stream having the new program number is restarted.

【0050】また、図6にて説明したように、システム
デコーダ20からのプログラム切替通知があるとCPU
40がA/Vデコーダ30に対して、オーディオ及びビ
デオに関するデコード処理をストップさせると共に、オ
ーディオをミュートさせ、ビデオブラック画面での表示
をさせる。これにより、プログラム切替通知があると、
その時点よりA/Vデコーダ30からはオーディオデー
タやビデオデータが出力されなくなると共に、それ以降
にシステムデコーダ20から入力されたビデオPESあ
るいはオーディオPESは新規にはデコードされなくな
る。
Further, as described with reference to FIG. 6, when there is a program switch notification from the system decoder 20, the CPU
40 causes the A / V decoder 30 to stop the decoding processing relating to audio and video, mutes the audio, and causes the video black screen to display. As a result, when there is a program switch notification,
At that time, audio data and video data are not output from the A / V decoder 30, and the video PES or audio PES input from the system decoder 20 thereafter is not newly decoded.

【0051】そして、RAM35内のビデオ及びオーデ
ィオの両チャネル・バッファ38,39(図2参照)を
クリアしてから、A/Vデコーダ30がスタンバイOK
状態であることをシステムデコーダ20に通知するた
め、新規のプログラム番号に対応するPESパケットか
ら順番にデコードすることができる。
After clearing both the video and audio channel buffers 38 and 39 (see FIG. 2) in the RAM 35, the A / V decoder 30 is ready for standby.
Since the system decoder 20 is notified of the state, the PES packet corresponding to the new program number can be sequentially decoded.

【0052】これにより、DEMUX装置から入力され
たトランスポートストリームについて、そのプログラム
番号(チャンネル)のチェックをせずにA/Vデコーダ
30にオーディオとビデオのデータを送り込んでしまう
と、デコードした場合にプログラム番号が変わるため映
像フレームの途中で強制的に別のプログラムによるビデ
オ情報に切り替わってしまうこと等に起因してデータエ
ラーが発生し、映像や音の乱れが生じる可能性がある
が、本実施形態のMPEGデコーダ1ではこれを防止す
ることができる。つまり、本実施形態の場合は、チャン
ネルが切り替わった場合には、システムデコーダ20及
びA/Vデコーダ30におけるデコード処理を停止さ
せ、そのデコード処理に使用しているワークバッファ
(ビデオPES構築用バッファ20a,オーディオPE
S構築用バッファ20b,ビデオチャネル・バッファ3
8,オーディオチャネル・バッファ39)をクリアして
から、新しいプログラム番号のトランスポートストリー
ムに基づくデコード処理を再開させるため、プログラム
切替時(チャンネル切替時)の乱れを少なくすることが
できるのである。
As a result, if the transport stream input from the DEMUX device is sent to the A / V decoder 30 without checking the program number (channel), the audio and video data will be decoded. Since the program number changes, forcibly switching to the video information by another program in the middle of the video frame may cause a data error, which may cause distortion of the image or sound. This can be prevented in the MPEG decoder 1 of the form. That is, in the case of the present embodiment, when the channel is switched, the decoding processing in the system decoder 20 and the A / V decoder 30 is stopped, and the work buffer (video PES construction buffer 20a used in the decoding processing is stopped. , Audio PE
S construction buffer 20b, video channel buffer 3
8. Since the audio channel buffer 39) is cleared and then the decoding process based on the transport stream of the new program number is restarted, the disturbance at the time of program switching (at the time of channel switching) can be reduced.

【0053】以上本発明はこのような実施形態に何等限
定されるものではなく、本発明の要旨を逸脱しない範囲
において種々なる態様で実施し得る。例えば、上記実施
形態においては、ビデオストリームとオーディオストリ
ームとが多重化されたストリームとして入力され、それ
をシステムデコーダ20において分離した後、それぞれ
のストリームについてデコードする場合について説明し
たが、ビデオ又はオーディオの少なくとも一方のストリ
ームについてデコードする場合でも同様に有効である。
The present invention is not limited to such an embodiment as described above, and can be carried out in various modes without departing from the scope of the present invention. For example, in the above-described embodiment, a case has been described in which a video stream and an audio stream are input as multiplexed streams, separated from each other in the system decoder 20, and then decoded for each stream. This is similarly effective when decoding at least one stream.

【0054】なお、このようなデコード装置は、多くの
データ通信に適用することができるが、例えばビデオと
オーディオがセットになっているものとしては、CAT
Vシステム等において考えられているいわゆるビデオ・
オン・デマンド(VOD)やカラオケサービス等があ
る。カラオケサービスの場合、オーディオだけでもカラ
オケ伴奏とはなるが、現在はカラオケ曲に応じた背景画
を表示することがもはや常識となりつつあるので、ビデ
オとオーディオがセットになったものとして捉えること
ができる。
Although such a decoding device can be applied to many types of data communication, for example, if a set of video and audio is a CAT,
What is called video /
There are on demand (VOD) and karaoke services. In the case of a karaoke service, audio alone can be a karaoke accompaniment, but it is now becoming common sense to display a background image corresponding to the karaoke song, so video and audio can be regarded as a set. .

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

【図1】 実施形態のデコード装置の概略構成を示すブ
ロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a decoding device according to an embodiment.

【図2】 のA/Vデコーダのワーク用のRAMに設け
られたバッファの構成を示す説明図である。
2 is an explanatory diagram showing a configuration of a buffer provided in a work RAM of the A / V decoder of FIG.

【図3】 トランスポートストリームのデータ構造を階
層的に示した説明図である。
FIG. 3 is an explanatory diagram hierarchically showing a data structure of a transport stream.

【図4】 (a)はテーブルIDの値とテーブル内容の
対応関係を示す説明図であり、(b)は、プログラム・
マップ・テーブル中のプログラム情報におけるストリー
ムタイプの設定値と内容との対応関係を示す説明図であ
る。
FIG. 4A is an explanatory diagram showing a correspondence relationship between table ID values and table contents, and FIG.
FIG. 9 is an explanatory diagram showing a correspondence between set values and contents of stream types in program information in a map table.

【図5】 システムデコーダでの処理を示すフローチャ
ートである。
FIG. 5 is a flowchart showing processing in a system decoder.

【図6】 プログラム切替に関してCPUで実行される
処理を示すフローチャートである。
FIG. 6 is a flowchart showing processing executed by a CPU regarding program switching.

【図7】 ビデオPESのデコードに関してCPUにて
実行される処理を示すフローチャートである。
FIG. 7 is a flowchart showing processing executed by a CPU regarding decoding of video PES.

【図8】 オーディオPESのデコードに関してCPU
にて実行される処理を示すフローチャートである。
FIG. 8: CPU for audio PES decoding
5 is a flowchart showing a process executed in.

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

1…MPEGデコーダ 3…DEMUX装
置 5…キー入力装置 10…外部入力I/
F 20…システムデコーダ 20a…ビデオPES構築用バッファ 20b…オーディオPES構築用バッファ 21…ROM 22…RAM 30…A/Vデコーダ 31…前処理部 32…後処理部 35…RAM 36…ビデオPESヘッダ・バッファ 37…オーディオPESヘッダ・バッファ 38…ビデオチャネル・バッファ 39…オーディオチャネル・バッファ 40…CPU 41…ROM 42…R
AM 50…ビデオDAコンバータ 55…オーディオ
DAコンバータ
1 ... MPEG decoder 3 ... DEMUX device 5 ... Key input device 10 ... External input I /
F 20 ... System decoder 20a ... Video PES construction buffer 20b ... Audio PES construction buffer 21 ... ROM 22 ... RAM 30 ... A / V decoder 31 ... Pre-processing unit 32 ... Post-processing unit 35 ... RAM 36 ... Video PES header Buffer 37 ... Audio PES header buffer 38 ... Video channel buffer 39 ... Audio channel buffer 40 ... CPU 41 ... ROM 42 ... R
AM 50 ... Video DA converter 55 ... Audio DA converter

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 圧縮符号化されたビデオ又はオーディオ
の少なくとも一方の情報を含むストリームがディジタル
信号多重化により複数のチャンネルに対応して多重化さ
れた多重化ストリームを入力し、その中から指定された
1チャンネルのトランスポートストリームに分離して出
力する分離装置に接続されており、 該分離装置より入力したトランスポートストリームに基
づき、圧縮符号化された前記データを復号するデコード
手段を備えているデコード装置において、 前記分離装置より入力したトランスポートストリーム中
より、チャンネル毎にユニークに付けられているプログ
ラム番号を検出し、検出したプログラム番号に基づいて
チャンネルが切り替わったことを判断する判断手段と、 該判断手段によってチャンネルの切り替わりを判断した
場合には、前記デコード手段によるデコード処理を停止
させ、当該デコード処理に使用しているワークバッファ
をクリアしてから、新しいプログラム番号のトランスポ
ートストリームに基づく前記デコード手段によるデコー
ド処理を再開させるデコードタイミング制御手段とを備
えることを特徴とするデコード装置。
1. A multiplexed stream in which a stream containing compression-encoded information of at least one of video and audio is multiplexed corresponding to a plurality of channels by digital signal multiplexing is input, and is designated from among the multiplexed streams. And a decoding device that is connected to a separation device that separates and outputs a 1-channel transport stream, and that includes decoding means that decodes the compressed and encoded data based on the transport stream input from the separation device. In the device, a determination unit that detects a program number uniquely assigned to each channel from the transport stream input from the separation device and determines that the channel has been switched based on the detected program number, Judgment means determines channel switching In this case, the decoding processing by the decoding means is stopped, the work buffer used for the decoding processing is cleared, and then the decoding processing by the decoding means based on the transport stream of the new program number is restarted. A decoding device comprising: timing control means.
【請求項2】 前記分離装置からは、圧縮符号化された
ビデオ情報及びオーディオ情報が多重化されたビデオ・
オーディオ多重化トランスポートストリームが入力され
るように構成されると共に、 前記デコード手段は、前記ビデオ・オーディオ多重化ト
ランスポートストリームをビデオストリームとオーディ
オストリームとに分離するシステムデコード手段と、該
システムデコード手段によって分離されたビデオストリ
ームをデコードするビデオデコード手段と、前記システ
ムデコード手段によって分離されたオーディオストリー
ムをデコードするオーディオデコード手段とを備える請
求項1に記載のデコード装置において、 前記デコードタイミング制御手段は、前記判断手段によ
ってチャンネルの切り替えを判断した場合には、前記シ
ステム、ビデオ及びオーディオの各デコード手段による
処理を停止させ、当該処理に使用しているビデオ及びオ
ーディオのワークバッファをクリアしてから、新しいプ
ログラム番号のトランスポートストリームに基づく前記
システム、ビデオ及びオーディオの各デコード手段によ
る処理を再開させるよう構成されていることを特徴とす
るデコード装置。
2. A video signal obtained by multiplexing compression-encoded video information and audio information from the separation device.
An audio multiplexed transport stream is input, and the decoding means separates the video / audio multiplexed transport stream into a video stream and an audio stream, and the system decoding means. The decoding apparatus according to claim 1, further comprising: a video decoding unit that decodes the video stream separated by the above, and an audio decoding unit that decodes the audio stream separated by the system decoding unit. When the decision means decides to switch the channel, the processing by each of the system, video, and audio decoding means is stopped, and the video and audio used for the processing are stopped. Clears the work buffer of the I o, the system based on the transport stream new program number, the decoding apparatus characterized by being configured so as to restart the process by the decoding means of video and audio.
JP13704896A 1996-05-30 1996-05-30 Decode device Pending JPH09322161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13704896A JPH09322161A (en) 1996-05-30 1996-05-30 Decode device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13704896A JPH09322161A (en) 1996-05-30 1996-05-30 Decode device

Publications (1)

Publication Number Publication Date
JPH09322161A true JPH09322161A (en) 1997-12-12

Family

ID=15189663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13704896A Pending JPH09322161A (en) 1996-05-30 1996-05-30 Decode device

Country Status (1)

Country Link
JP (1) JPH09322161A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000003541A1 (en) * 1998-07-13 2000-01-20 Sony Corporation Data multiplexer, program distribution system, program transmission system, toll broadcast system, program transmission method, limited receiving system, and data receiver
US6970564B1 (en) 1998-07-13 2005-11-29 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7023992B1 (en) 1997-06-11 2006-04-04 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
WO2006040917A1 (en) * 2004-10-12 2006-04-20 Sony Corporation Data structure, information processing device, information processing method, transmission device, transmission method, multiplexing device, multiplexing method, and program
US7113523B1 (en) 1997-06-11 2006-09-26 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
KR100631500B1 (en) * 2000-02-14 2006-10-09 엘지전자 주식회사 Channel switching apparatus in digital tv
JP2007333787A (en) * 2006-06-12 2007-12-27 Mitsubishi Electric Corp Speech speed conversion apparatus
JP2008178112A (en) * 2001-03-29 2008-07-31 Matsushita Electric Ind Co Ltd Av data recording/reproducing apparatus and method and disc on which data is recorded by the av data recording/reproducing apparatus or method
US8982943B2 (en) 2003-06-30 2015-03-17 Panasonic Intellectual Property Management Co., Ltd. Data processing device and data processing method

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7085381B2 (en) 1997-06-11 2006-08-01 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7082197B2 (en) 1997-06-11 2006-07-25 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7023992B1 (en) 1997-06-11 2006-04-04 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7769053B2 (en) 1997-06-11 2010-08-03 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7113523B1 (en) 1997-06-11 2006-09-26 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7072471B2 (en) 1997-06-11 2006-07-04 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7072472B2 (en) 1997-06-11 2006-07-04 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
WO2000003541A1 (en) * 1998-07-13 2000-01-20 Sony Corporation Data multiplexer, program distribution system, program transmission system, toll broadcast system, program transmission method, limited receiving system, and data receiver
US6970564B1 (en) 1998-07-13 2005-11-29 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
KR100631500B1 (en) * 2000-02-14 2006-10-09 엘지전자 주식회사 Channel switching apparatus in digital tv
JP2008178112A (en) * 2001-03-29 2008-07-31 Matsushita Electric Ind Co Ltd Av data recording/reproducing apparatus and method and disc on which data is recorded by the av data recording/reproducing apparatus or method
US8982943B2 (en) 2003-06-30 2015-03-17 Panasonic Intellectual Property Management Co., Ltd. Data processing device and data processing method
JP2006197542A (en) * 2004-10-12 2006-07-27 Sony Corp Multiplexing device, multiplexing method, and program
WO2006040917A1 (en) * 2004-10-12 2006-04-20 Sony Corporation Data structure, information processing device, information processing method, transmission device, transmission method, multiplexing device, multiplexing method, and program
US7782846B2 (en) 2004-10-12 2010-08-24 Sony Corporation Data structure, information processing device, information processing method, transmission device, transmission method, multiplexing device, multiplexing method, and program
JP2007333787A (en) * 2006-06-12 2007-12-27 Mitsubishi Electric Corp Speech speed conversion apparatus

Similar Documents

Publication Publication Date Title
JP3309069B2 (en) Device for receiving multi-coded video and audio data
US5483287A (en) Method for forming transport cells for conveying compressed video data
EP0782332B1 (en) Digital signal processing
JP4261508B2 (en) Video decoding device
JPH08140056A (en) Recording and reproducing device
JPH0998430A (en) Dynamic image data storage system and dynamic image data decoding system
JP4372031B2 (en) Signal processing apparatus and signal processing method
JP4812171B2 (en) Data receiving method and data receiving apparatus
KR19990057100A (en) MPEG decoder and decoding control method
JPH09322161A (en) Decode device
US7346055B2 (en) Method and system for co-relating transport packets on different channels using a unique packet identifier
US6584069B1 (en) Packet filtering apparatus that applies a plurality of filtering conditions including different comparison criteria to a single packet
JPH09186968A (en) Digital signal recording and reproducing device and digital signal reproducing method
US6490371B1 (en) Apparatus and method for restructuring and decoding digital image data having plural formats
US7668270B2 (en) Method and system for programmable filtering offset
JP4731343B2 (en) Decoding device
KR100587284B1 (en) Method for PSI filtering
JPH1098681A (en) Decoder
JPH09247686A (en) Decoding circuit for multiplex video signal
US7388871B2 (en) Method and system for changing message filter coefficients dynamically
JPH09186942A (en) Digital signal processor and method
JP4067468B2 (en) Digital broadcast receiver
JPH09298748A (en) Method and device sending private data in mpeg bit stream in place of stuffing bit
JP2001111610A (en) Receiver for information data transmission system
JPH09307865A (en) Compressed image audio decoder

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060117

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060523