JP3679606B2 - Encoding apparatus and method, and computer-readable recording medium on which an encoding program is recorded - Google Patents

Encoding apparatus and method, and computer-readable recording medium on which an encoding program is recorded Download PDF

Info

Publication number
JP3679606B2
JP3679606B2 JP9919798A JP9919798A JP3679606B2 JP 3679606 B2 JP3679606 B2 JP 3679606B2 JP 9919798 A JP9919798 A JP 9919798A JP 9919798 A JP9919798 A JP 9919798A JP 3679606 B2 JP3679606 B2 JP 3679606B2
Authority
JP
Japan
Prior art keywords
length
data
variable
information
packetizing
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 - Fee Related
Application number
JP9919798A
Other languages
Japanese (ja)
Other versions
JPH114260A (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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP9919798A priority Critical patent/JP3679606B2/en
Publication of JPH114260A publication Critical patent/JPH114260A/en
Application granted granted Critical
Publication of JP3679606B2 publication Critical patent/JP3679606B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、画像データを可変長符号化し、伝送路に応じて伝送符号化する装置に関するもので、具体的には可変長符号化データと伝送同期情報の多重化処理に関するものである。
【0002】
【従来の技術】
最近MPEG(Moving Picture Experts Group)2規格(ISO/IEC(International Organization for Standardization/International Electrotechnical Commission)13818-1〜3)に準拠するデジタル処理システムが映像伝送システムの標準となりつつある。
【0003】
図4は、ISO/IEC13818-1〜3に従う一般的なデジタル伝送装置の送信側の構成を示すブロック図である。
【0004】
図4において、401はデジタル映像データをISO/IEC 13818-2に従うように圧縮する映像符号器であり、402はデジタル音声信号をISO/IEC 13818-3に従うように圧縮する音声符号器であり、403は映像符号器の出力である映像エレメンタリストリームをISO/IEC 13818-1のPES(Packetized Elementary Stream)に従ってパケット化するパケッタイザであり、404は音声符号器の出力である映像エレメンタリストリームをISO/IEC 13818-1のPESに従うようにパケット化するパケッタイザである。
【0005】
405はパケッタイザの出力である映像PES及び音声PESをISO/IEC 13818-1のTS(Transport Stream)に従ってそれぞれのPESをトランスポートストリームパケットにパケット化して多重するTS(Transport Stream)多重器である。
【0006】
以下、上述のように構成されたデジタル伝送装置の伝送動作を説明する。
【0007】
映像データ及び音声データは夫々映像符号器401、音声符号器402に夫々入力される。映像符号器401では、ISO/IEC 13818-2に従うように、空間的、時間的に相関性の高い情報を検査し冗長度の低いデータへ変換することにより情報量の圧縮を行う。
【0008】
また、音声符号器402ではISO/IEC 13818-3に従うように時間的に相関性の高い情報を検査し冗長度の低いデータへ変換することにより情報量の圧縮を行う。これら圧縮されたデータ列の中で単独で伸張可能な単位をアクセスユニット(AU)と呼び、映像AU及び音声AUのデータ列を夫々映像エレメンタリストリーム(映像ES)、音声エレメンタリストリーム(音声ES)と呼ぶ。
【0009】
映像ES、音声ESは夫々パケッタイザ403、404に入力され、一般的にはアクセスユニットを基準とする単位で、そのESの属性をあらわすストリームIDや復号側における復号時間や表示時間を示すタイムスタンプ情報などと共に可変長なパケットにパケット化(PES)される。
【0010】
TS多重器405は映像PES、音声PESを受け取り、トランスポートストリーム(TS)に変換し出力する。
【0011】
図5は、TS多重器405の詳細な構成を示すブロック図である。
【0012】
図5において、映像PES、音声PESを夫々各バッファに蓄積し、データを伝送する単位にパケット化する。このパケットをトランスポートストリームパケット(TSパケット)と呼ぶ。TSパケットはISO/IEC 13818-1では188バイトのサイズであり、復号側でTSパケットの復元のために必要なシンクバイトや、TSパケットのIDを示すPID(Packet Identification)等を含むパケットヘッダと、復号側の受信時刻を規定する基準時刻を表わすPCR(Program Clock Reference)などの伝送するにあたって必要な付属情報をアダプテーションフィールドに記述し、その他の空き領域(ペイロード)に映像PESまたは音声PESを格納する。その一方で、PIDの定義など、TSの総合的な付属情報をPSI(Program Specific Information)として生成し、バッファに記憶させておき、あらかじめ定義されているPIDをもつTSパケットにパケット化する。
【0013】
なお、PCRについては100ms周期以内でTSとして出力しなければならないので一般的に映像PES及び音声PESを伝送するパケットとは別に、PCRのためのPIDをPSIにて定義し、そのPIDを含むパケットヘッダとアダプテーションフィールドのみから構成されるTSパケットとしてパケット化する。
【0014】
そして各TSパケットを適当なタイミングで各バッファからTSパケット単位で読み出しTSとして出力する。
【0015】
【発明が解決しようとする課題】
上述の如きデジタル伝送装置におけるデータの多重方法では、伝送路上に送出されるデータ量に制約が大きく、伝送路を有効に利用できず、常に無駄なスタッフィングデータを多重しなければならない。
【0016】
例えば、図6示す映像PESをTSパケットに変換する際、最後のTSパケットにアダプテーションフィールドを挿入し、無駄なスタッフィングバイト(パケット・データ長を一定にするためのダミーのデータバイト)を多重しなければならない。
【0017】
また、図7に示すようなPCRの伝送ため独立のTSパケットを伝送する場合もそのTSパケット内にスタッフィング処理が必要となる。更に、図8に示すようにPCRの伝送を映像データ伝送用のTSパケット内に挿入した場合でも、PCRの伝送サイクルの規定によって、スタッフィング量が更に増加してしまうことが起こりえる。
【0018】
上述したような背景から本願発明は、従来のデータの多重方法における上述の問題を解消し、伝送路を有効に利用でき、更に伝送誤り強い符号化装置及び方法並びに伝送プログラムを記録した記録媒体を提供することを目的とする。
【0019】
【課題を解決するための手段】
本発明にかかる符号化装置/方法は、可変長符号化された第1の情報データを入力し、前記第1の情報データを複数のデータ列で可変長パケット化し、前記第1の情報データに関連する伝送同期情報を生成し、前記可変長パケット化された第1の情報データに前記生成された伝送同期情報とを複数の固定長のパケットに多重し、前記伝送同期情報を多重化した経過時間を計数し、前記可変長パケット化された情報列のパケット長を検出し、前記計数結果と前記検出結果とに応じて、前記固定長のパケットへの多重化処理を制御することを特徴とする。
【0020】
また、本発明にかかる符号化装置/方法は、可変長符号化された第1の情報データを入力し、前記第1の情報データを複数のデータ列で可変長パケット化し、前記第1の情報データに関連する伝送同期情報を生成し、前記可変長パケット化された第1の情報データに前記生成された伝送同期情報とを複数の固定長のパケットに多重し、前記可変長パケット化された情報列のパケット長を検出し、前記検出結果に応じて、前記固定長のパケットへの多重化処理を制御することを特徴とする。
【0021】
また、本発明にかかる符号化プログラムが記録されたコンピュータ可読記録媒体は、可変長符号化された第1の情報データを入力する入力工程のコードと、前記第1の情報データを複数のデータ列で可変長パケット化する第1のパケット化工程のコードと、前記第1の情報データに関連する伝送同期情報を生成する生成工程のコードと、前記第1のパケット化工程によって可変長パケット化された第1の情報データに前記生成工程によって生成された伝送同期情報とを複数の固定長のパケットに多重する第2のパケット化工程のコードと、前記伝送同期情報を多重化した経過時間を計数する計数工程のコードと、前記第1のパケット化工程によって可変長パケット化された情報列のパケット長を検出する検出工程のコードと、前記計数工程と前記検出工程との結果に応じて、前記第2のパケット化工程の多重化処理を制御する制御工程のコードとを有することを特徴とする。
【0022】
また、本発明にかかる符号化プログラムが記録されたコンピュータ可読記録媒体は、可変長符号化された第1の情報データを入力する入力工程のコードと、前記第1の情報データを複数のデータ列で可変長パケット化する第1のパケット化工程のコードと、前記第1の情報データに関連する伝送同期情報を生成する生成工程のコードと、前記第1のパケット化工程によって可変長パケット化された第1の情報データに前記生成工程によって生成された伝送同期情報とを複数の固定長のパケットに多重する第2のパケット化工程のコードと、前記第1のパケット化工程によって可変長パケット化された情報列のパケット長を検出する検出工程のコードと、前記検出工程の結果に応じて、前記第2のパケット化工程の多重化処理を制御する制御工程のコードとを有することを特徴とする。
【0023】
【発明の実施の形態】
本実施例ではITU-T(International Telecommunication Union-Telecommunication Standardization Sector:国際電気通信連合―電気通信標準化部門)勧告H.222.0:ISO/IEC 13818-2で符号化された映像データをITU-T勧告H.222.0:ISO/IEC 13818-1によってシステム符号化される場合を例として説明する。
【0024】
図1は、本願発明の一実施例としての符号化装置の構成を示すブロック図である。
【0025】
図1において、カメラ部100によって撮像された映像データはMPEG符号化器101によってITU-T勧告H.222.0:ISO/IEC 13818-2に準拠した符号化が行われる。
【0026】
MPEG符号化器101によって符号化された映像データは映像エレメンタリーストリームとしてパケッタイザ102へ出力される。
【0027】
入力された映像エレメンタリーストリームは102のパケッタイザでITU-T勧告H.222.0:ISO/IEC 13818-1で示されるパケッタイズエレメンタリーストリームに変換される。
【0028】
ここでパケット化される情報長は伝送路のデータ誤りを考慮し、例えばITU-T勧告H.222.0:ISO/IEC 13818-2で示される1スライス毎にパケット化される。
【0029】
パケッタイザ102で1スライス毎にパケット化された可変長のパケッタイズドエレメンタリーストリームパケット長検出器103及び多重化バッファ104に供給される。
【0030】
パケット長検出器103ではITU-T勧告H.222.0:ISO/IEC 13818-1で符号化されたパケッタイズドエレメンタリーストリーム中のPES_packet_lengthを検出し、パケッタイズドエレメンタリーストリーム長(PES_packet_length+6byte(PESヘッダ))を記憶する。
【0031】
PCRカウンタ105はITU-T勧告H.222.0:ISO/IEC 13818-1で示されるシステム同期のためのprogram_clock_reference_baseおよびprogram_clock_reference_extensionを生成するためのカウンタである。PCRカウンタ105で生成されたprogram_clock_reference_baseおよびprogram_clock_reference_extensionは多重化バッファ106に供給される。
【0032】
PCRタイマ107は多重化されたprogram_clock_reference_baseおよびprogram_clock_reference_extensionの周期をカウントするタイマである。
【0033】
多重判定器108ではパケット長検出器103及びPCRタイマ107からの情報を受け、多重化バッファ104、106の出力制御とPCRタイマ107へ多重結果をフィードバックしている。
【0034】
TSフォーマッタ109では多重化バッファ104、106の出力データをITU-T勧告H.222.0:ISO/IEC 13818-1で示されるトランスポートストリームパケットに変換され、出力端子110から出力される。
【0035】
ここで、MPEG符号化器101の詳細を説明する。
【0036】
図2はMPEG符号化器101の構成を示すブロック図である。
【0037】
図2に示したように、MPEG符号化器101はブロック化回路201,DCT回路203,量子化(Q)回路204,可変長符号化(VLC)回路205,動き補償回路215,動きベクトル検出回路216,レ−ト制御回路207,局部復号回路212,出力バッファ206等から概略構成されている。
【0038】
図2において、入力された画像データはA/D変換回路200によりデジタル信号に変換される。A/D変換回路200によってデジタル信号に変換された画像データはブロック化回路201にて前述の8画素×8画素のブロックとされ、スイッチ202を介してDCT回路203に伝送される。
【0039】
スイッチ202は、入力画像データがイントラフレーム(Iフレーム)かそれ以外のフレーム(P(前方予測符号化)フレーム又はB(双方向予測符号化)フレーム)であるかで切り換えられるものであり、イントラフレームの場合にはa接点に接続され、それ以外の場合にはb接点に接続される。
【0040】
イントラフレームの場合にはDCT回路203にてDCTされて空間領域のデータから周波数領域のデータに変換され、これによって得られたDCT係数は量子化回路204にて量子化される。そして、可変長符号化回路205にて可変長符号化された後、一旦バッファ206に記憶される。
【0041】
一方、イントラフレーム以外の場合には、スイッチ202は接点bに接続されて先に説明した動き補償が行われる。即ち、213,214は局部復号器212を構成する逆量子化回路,逆DCT回路であり、量子化回路204にて量子化されたデ−タはこの局部復号回路212にて元の画像に戻される。
【0042】
また、209は減算器,210はイントラフレーム以外の場合のみ閉成されるスイッチ,211は加算器である。
【0043】
局部復号回路212によって復号された画像データは、動きベクトル検出回路216にて検出された動きベクトルを参照して所定のフレーム(先行フレーム,後行フレーム又はこれらの補間フレーム)における対応マクロブロックを出力する。
【0044】
この動き補償回路215の出力は減算器209にて入力画像データと減算処理されて差分値が得られ、この差分値は前述のDCT回路203,量子化回路204及び可変長符号化回路205にて符号化されてバッファ206に記憶される。
【0045】
なお、動きベクトル検出回路216は、これから符号化するフレームデータと所定の参照フレームデータとの比較を行って動きベクトルを得るものであり、この検出回路216の検出出力は動き補償回路215に供給され、動き補償回路215が出力すべきマクロブロックを指定する。
【0046】
また、レート制御回路207はバッファ206における符号化データの占有量に基づいて量子化回路204における量子化ステップを切り換えることによって符号量制御を行う。また、レート制御回路207の出力は逆量子化回路213にも供給されており、その出力データに基づいて逆量子化回路213は、逆量子化ステップを制御している。
【0047】
最後に付加回路208にて各種ヘッダ(例えば、I,P,Bフレームを識別するためのフラグ)を符号化データに付加してMPEG方式に対応したMPEGデータとして送出する。
【0048】
次に、多重化判定器108の動作を図3を用いて説明する。
【0049】
図3は、多重化判定器108の動作を示すフローチャートである。
【0050】
まず、ステップS301では多重判定器108からPCRタイマ107をリセットする。PCRタイマ107はリセット後、リアルタイムに動作する。
【0051】
次に、ステップS302ではパケット長検出器103によってパケッタイズドエレメンタリーストリーム長(PES長)を検出(PES長に使用されているバイト数を検出)を検出してステップS303に進む。
【0052】
PES長は、パケッタイズドエレメンタリーストリーム中のPES_packet_lengthを検出し、その検出結果にPESヘッダに使用される6byteを加算して求める。
【0053】
ステップS303では、ITU-T勧告H.222.0:ISO/IEC 13818-1で示されるトランスポートストリームパケットのペイロード部にあたる184バイトと前記検出されたPES長を比較し、184バイト以上であればステップS304へ進み、それ以外はステップS311へ進む。
【0054】
ステップS304ではPCRタイマ107の値を読み込み、ここではITU-T勧告H.222.0:ISO/IEC 13818-1で規定されているPCRフィールドの伝送サイクルの上限値である100msから1トランスポートストリームパケット分の188バイトを伝送する時刻を引いた値を超えていないかを判定する。つまり、ステップS304では、PCRが100ms周期以内でTSとして出力されなければならないことを保証するために行われている。
【0055】
ステップS304で、タイマ107の値が100msから1トランスポートストリームパケット分の188バイトを伝送する時刻を引いた値を超えない場合はステップS305へ、超えてしまう場合はステップS307へ進む。
【0056】
ステップS305では多重化バッファ104からトランスポートストリームパケットのペイロード分に相当する184バイト(映像PES)を出力する。
【0057】
次に、ステップS306へ進み、ステップS305によって出力されたバイト数(184バイト)をそれ以前のPES長のバイト数から減算し、残りのPES長を検出し、ステップS303へ戻る。
【0058】
ステップS307では多重化バッファ106からPCR値を出力する。PCR値を出力後、ステップS308でPCRタイマ107をリセットし、ステップS309へ進む。
【0059】
ステップS309でトランスポートストリームパケットのペイロード分の184バイトからPCRフィールド分のバイト数を除いたバイト数を多重化バッファ104から出力する。そしてステップS310へ進み、ステップS310では多重化バッファ104から出力された前記バイト数分を、それ以前のPES長のバイト数から減算して、残りのPES長を検出し、ステップS303へ戻る。
【0060】
次に、ステップS303においてPES長が184バイトに満たない場合はステップS311へ進む。
【0061】
ステップS311ではPES長が(184―PCRフィールド分のバイト数)以下であるか判定する。PES長が(184―PCRフィールド分のバイト数)以下の場合はステップS312へ進み、それ以外はステップS315へ進む。
【0062】
ステップS312では多重化バッファ106からPCR値を出力し、ステップS313でPCRタイマ107をリセットする。次に、ステップS314へ進み、ここでは、184―(PES長+PCR)バイトのstuffing byteを挿入する。
【0063】
ステップS315で残りの全ての映像PESを多重化バッファ104から出力する。そして、ステップS302に戻り、次のPES長を検出する。
【0064】
ステップS316ではPCRタイマ107の値を読み込み、ここではITU-T勧告H.222.0:ISO/IEC 13818-1で規定されているPCRフィールドの伝送サイクルの上限値である100msから1トランスポートストリームパケット分の188バイトを伝送する時刻を引いた値を超えていないかを判定する。超えない場合はステップS320へ、超えてしまう場合はステップS317へ進む。
【0065】
ステップS317で多重化バッファ106からPCR値を出力する。PCR値を出力後、ステップS318でPCRタイマ107をリセットする。次にステップS319でトランスポートストリームパケットのペイロード分の184バイトからPCRフィールド分のバイト数を除いたバイト数を多重化バッファ104から出力する。そしてステップS320へ進み、ステップS320では多重化バッファ104から出力された前記バイト数分を、それ以前のPES長のバイト数から減算して、残りのPES長を検出し、ステップS303へ戻る。
【0066】
ステップS321では、184バイトから現在のPES長のバイト数を減算した分のスタッフィングバイトを挿入し、ステップS322で残りの映像PESを多重化バッファ104から出力する。そしてステップS302に戻り、次のパケッタイズドエレメンタリーストリームの処理へ進む。
【0067】
前述した各ステップを実行することにより、各可変長映像パケッタイズドエレメンタリーストリームを固定長のトランスポートストリームパケットに多重する際、PCRを映像用のトランスポートストリームパケットに一定周期毎に挿入するのではなく、PCR挿入可能な端数が映像データに生じた場合に、規定の挿入サイクルに達していなくてもPCRが挿入され、多重化時の無駄となるスタッフィングが削除される。
【0068】
<本発明の他の実施形態>
本発明は複数の機器(たとえばホストコンピュータ、インタフェース機器、リーダ、プリンタ等)から構成されるシステムに適用しても一つの機器(たとえば複写機、ファクシミリ装置)からなる装置に適用してもよい。
【0069】
また前述した実施形態の機能を実現する様に各種のデバイスを動作させる様に該各種デバイスと接続された装置あるいはシステム内のコンピュータに、前記実施形態機能を実現するためのソフトウエアのプログラムコードを供給し、そのシステムあるいは装置のコンピュータ(CPUあるいはMPU)を格納されたプログラムに従って前記各種デバイスを動作させることによって実施したものも本願発明の範疇に含まれる。
【0070】
また、この場合、前記ソフトウエアのプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコード自体、及びそのプログラムコードをコンピュータに供給するための手段、例えばかかるプログラムコードを格納した記憶媒体は本発明を構成する。
【0071】
かかるプログラムコードを格納する記憶媒体としては例えばフロッピーディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM等を用いることが出来る。
【0072】
またコンピュータが供給されたプログラムコードを実行することにより、前述の実施形態の機能が実現されるだけではなく、そのプログラムコードがコンピュータにおいて稼働しているOS(オペレーティングシステム)、あるいは他のアプリケーションソフト等と共同して前述の実施形態の機能が実現される場合にもかかるプログラムコードは本願発明の実施形態に含まれることは言うまでもない。更に供給されたプログラムコードが、コンピュータの機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに格納された後そのプログラムコードの指示に基づいてその機能拡張ボードや機能格納ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も本願発明に含まれることは言うまでもない。
【0073】
【発明の効果】
以上説明したように本発明によれば、可変長の符号化データの発生量に応じて伝送同期情報を多重するため伝送路上に無駄な情報を送出することを最小限に抑えることができる。
【0074】
また、伝送同期情報の多重周期も可変となっており、伝送誤りに対しても強いという効果がある。更に、多重プログラム数が増加すればその効果は増大する。
【図面の簡単な説明】
【図1】本願発明の一実施例としての画像符号化装置の構成を示すブロック図である。
【図2】 MPEG符号化器101の構成を示すブロック図である。
【図3】多重化判定器108の動作を示すフローチャートである。
【図4】 ISO/IEC 13818-1〜3に従う一般的なデジタル伝送装置の送信側の構成を示すブロック図である。
【図5】図1におけるTS多重器305の詳細な構成を示すブロック図である。
【図6】 PES/TS変換フォーマットを説明するための図である。
【図7】 PCRを含むPES/TS変換フォーマットを説明するための図である。
【図8】 PCRを含むPES/TS変換フォーマットを説明するための図である。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an apparatus that performs variable-length coding on image data and performs transmission coding according to a transmission path, and specifically relates to a multiplexing process of variable-length coded data and transmission synchronization information.
[0002]
[Prior art]
Recently, digital processing systems compliant with MPEG (Moving Picture Experts Group) 2 standards (ISO / IEC (International Organization for Standardization / International Electrotechnical Commission) 13818-1 to 3) are becoming the standard for video transmission systems.
[0003]
FIG. 4 is a block diagram showing a configuration of a transmission side of a general digital transmission apparatus according to ISO / IEC13818-1 to 3.
[0004]
In FIG. 4, 401 is a video encoder that compresses digital video data to comply with ISO / IEC 13818-2, 402 is an audio encoder that compresses digital audio signals to comply with ISO / IEC 13818-3, 403 is a packetizer that packetizes the video elementary stream, which is the output of the video encoder, according to PES (Packetized Elementary Stream) of ISO / IEC 13818-1, and 404 is the ISO / IEC 13818-1 packet elementary stream, which is the output of the audio encoder. / Packetizer that packetizes to comply with PES of IEC 13818-1.
[0005]
Reference numeral 405 denotes a TS (Transport Stream) multiplexer that packetizes and multiplexes the video PES and audio PES output from the packetizer into transport stream packets according to ISO / IEC 13818-1 TS (Transport Stream).
[0006]
Hereinafter, the transmission operation of the digital transmission apparatus configured as described above will be described.
[0007]
Video data and audio data are input to the video encoder 401 and the audio encoder 402, respectively. In accordance with ISO / IEC 13818-2, the video encoder 401 inspects information with high spatial and temporal correlation and converts the information into data with low redundancy to compress the amount of information.
[0008]
Also, the speech encoder 402 compresses the amount of information by examining highly correlated information in accordance with ISO / IEC 13818-3 and converting it into data with low redundancy. Of these compressed data strings, a unit that can be expanded independently is called an access unit (AU), and the data strings of video AU and audio AU are respectively referred to as video elementary stream (video ES) and audio elementary stream (audio ES). ).
[0009]
Video ES and audio ES are input to the packetizers 403 and 404, respectively, and are generally a unit based on the access unit, a stream ID representing the attribute of the ES, and time stamp information indicating a decoding time and a display time on the decoding side. Etc. and packetized (PES) into variable length packets.
[0010]
The TS multiplexer 405 receives the video PES and the audio PES, converts them into a transport stream (TS), and outputs them.
[0011]
FIG. 5 is a block diagram showing a detailed configuration of the TS multiplexer 405.
[0012]
In FIG. 5, video PES and audio PES are stored in respective buffers and packetized in units of data transmission. This packet is called a transport stream packet (TS packet). The TS packet has a size of 188 bytes according to ISO / IEC 13818-1, and includes a packet header including a sync byte necessary for decoding the TS packet on the decoding side and a PID (Packet Identification) indicating the ID of the TS packet. Attached information necessary for transmission such as PCR (Program Clock Reference) indicating the reference time that defines the reception time on the decoding side is described in the adaptation field, and video PES or audio PES is stored in other free space (payload) To do. On the other hand, comprehensive TS attached information such as PID definition is generated as PSI (Program Specific Information), stored in a buffer, and packetized into TS packets having a predefined PID.
[0013]
Since PCR must be output as a TS within a period of 100 ms, generally, a PID for PCR is defined in PSI separately from a packet for transmitting video PES and audio PES, and a packet including the PID. It is packetized as a TS packet composed only of a header and an adaptation field.
[0014]
Each TS packet is read from each buffer in TS packet units at an appropriate timing and output as a TS.
[0015]
[Problems to be solved by the invention]
In the data multiplexing method in the digital transmission apparatus as described above, the amount of data transmitted on the transmission path is greatly limited, the transmission path cannot be used effectively, and wasteful stuffing data must always be multiplexed.
[0016]
For example, when converting the video PES shown in FIG. 6 into a TS packet, an adaptation field is inserted into the last TS packet, and useless stuffing bytes (dummy data bytes for making the packet data length constant) must be multiplexed. I must.
[0017]
In addition, when an independent TS packet is transmitted for PCR transmission as shown in FIG. 7, stuffing processing is required in the TS packet. Further, even when the PCR transmission is inserted into the video data transmission TS packet as shown in FIG. 8, the stuffing amount may further increase due to the definition of the PCR transmission cycle.
[0018]
In view of the above-mentioned background, the present invention solves the above-mentioned problems in the conventional data multiplexing method, enables an effective use of the transmission path, and further provides a coding apparatus and method with strong transmission errors, and a recording medium on which a transmission program is recorded. The purpose is to provide.
[0019]
[Means for Solving the Problems]
The encoding apparatus / method according to the present invention inputs variable-length-encoded first information data, converts the first information data into variable-length packets with a plurality of data strings, and converts the first information data into the first information data. Process of generating related transmission synchronization information, multiplexing the generated transmission synchronization information into the variable-length packetized first information data into a plurality of fixed-length packets, and multiplexing the transmission synchronization information Counting time, detecting a packet length of the information string converted into a variable length packet, and controlling multiplexing processing to the fixed length packet according to the counting result and the detection result, To do.
[0020]
The encoding apparatus / method according to the present invention inputs first information data that is variable-length encoded, converts the first information data into a variable-length packet with a plurality of data strings, and outputs the first information data. Transmission synchronization information related to data is generated, and the generated transmission synchronization information is multiplexed into a plurality of fixed-length packets in the variable-length packetized first information data. The packet length of the information sequence is detected, and the multiplexing process to the fixed-length packet is controlled according to the detection result.
[0021]
In addition, a computer-readable recording medium on which an encoding program according to the present invention is recorded includes an input process code for inputting variable-length encoded first information data, and the first information data as a plurality of data strings. The first packetizing step code for variable length packetization, the generation step code for generating transmission synchronization information related to the first information data, and the variable length packetized by the first packetizing step. The second packetizing step code that multiplexes the transmission synchronization information generated by the generation step with the first information data into a plurality of fixed-length packets, and the elapsed time when the transmission synchronization information is multiplexed are counted. A code for a counting step, a code for a detecting step for detecting a packet length of the information string variable-length packetized by the first packetizing step, and the counting step According to the result of the serial detection process, and having a code of a control step of controlling the multiplexing process of the second packetization process.
[0022]
In addition, a computer-readable recording medium on which an encoding program according to the present invention is recorded includes an input process code for inputting variable-length encoded first information data, and the first information data as a plurality of data strings. The first packetizing step code for variable length packetization, the generation step code for generating transmission synchronization information related to the first information data, and the variable length packetized by the first packetizing step. The second packetizing step code for multiplexing the first information data and the transmission synchronization information generated by the generating step into a plurality of fixed length packets, and variable length packetization by the first packetizing step A control process for controlling the multiplexing process of the second packetization process in accordance with the code of the detection process for detecting the packet length of the information string and the result of the detection process And having a code.
[0023]
DETAILED DESCRIPTION OF THE INVENTION
In this embodiment, ITU-T (International Telecommunication Union-Telecommunication Standardization Sector) recommendation H.222.0: Video data encoded in ISO / IEC 13818-2 is ITU-T recommendation H. .222.0: A case where system encoding is performed according to ISO / IEC 13818-1 will be described as an example.
[0024]
FIG. 1 is a block diagram showing the configuration of an encoding apparatus as an embodiment of the present invention.
[0025]
In FIG. 1, video data captured by the camera unit 100 is encoded by an MPEG encoder 101 based on ITU-T recommendation H.222.0: ISO / IEC 13818-2.
[0026]
The video data encoded by the MPEG encoder 101 is output to the packetizer 102 as a video elementary stream.
[0027]
The input video elementary stream is converted into a packetized elementary stream represented by ITU-T recommendation H.222.0: ISO / IEC 13818-1 by the 102 packetizer.
[0028]
Here, the packetized information length is packetized for each slice shown in, for example, ITU-T recommendation H.222.0: ISO / IEC 13818-2 in consideration of data errors in the transmission path.
[0029]
The packetizer 102 supplies the packetized elementary stream packet length detector 103 and the multiplexing buffer 104 of variable length packetized for each slice.
[0030]
The packet length detector 103 detects the PES_packet_length in the packetized elementary stream encoded by ITU-T recommendation H.222.0: ISO / IEC 13818-1, and the packetized elementary stream length (PES_packet_length + 6 bytes (PES header) )) Is memorized.
[0031]
The PCR counter 105 is a counter for generating program_clock_reference_base and program_clock_reference_extension for system synchronization shown in ITU-T recommendation H.222.0: ISO / IEC 13818-1. The program_clock_reference_base and program_clock_reference_extension generated by the PCR counter 105 are supplied to the multiplexing buffer 106.
[0032]
The PCR timer 107 is a timer that counts the periods of multiplexed program_clock_reference_base and program_clock_reference_extension.
[0033]
The multiplex determination unit 108 receives information from the packet length detector 103 and the PCR timer 107 and feeds back the multiplex result to the output control of the multiplexing buffers 104 and 106 and the PCR timer 107.
[0034]
In the TS formatter 109, the output data of the multiplexing buffers 104 and 106 are converted into transport stream packets represented by ITU-T recommendation H.222.0: ISO / IEC 13818-1, and output from the output terminal 110.
[0035]
Here, details of the MPEG encoder 101 will be described.
[0036]
FIG. 2 is a block diagram showing the configuration of the MPEG encoder 101.
[0037]
As shown in FIG. 2, the MPEG encoder 101 includes a blocking circuit 201, a DCT circuit 203, a quantization (Q) circuit 204, a variable length coding (VLC) circuit 205, a motion compensation circuit 215, and a motion vector detection circuit. 216, a rate control circuit 207, a local decoding circuit 212, an output buffer 206, and the like.
[0038]
In FIG. 2, input image data is converted into a digital signal by an A / D conversion circuit 200. The image data converted into a digital signal by the A / D conversion circuit 200 is converted into the aforementioned block of 8 pixels × 8 pixels by the blocking circuit 201 and transmitted to the DCT circuit 203 via the switch 202.
[0039]
The switch 202 is switched depending on whether the input image data is an intra frame (I frame) or another frame (P (forward prediction encoding) frame or B (bidirectional prediction encoding) frame). In the case of a frame, it is connected to the a contact, and in other cases, it is connected to the b contact.
[0040]
In the case of an intra frame, DCT is performed by the DCT circuit 203 and converted from the data in the spatial domain to the data in the frequency domain, and the DCT coefficient obtained thereby is quantized by the quantization circuit 204. Then, after the variable length encoding circuit 205 performs variable length encoding, it is temporarily stored in the buffer 206.
[0041]
On the other hand, in the case of other than the intra frame, the switch 202 is connected to the contact b and the motion compensation described above is performed. That is, reference numerals 213 and 214 denote an inverse quantization circuit and an inverse DCT circuit constituting the local decoder 212. The data quantized by the quantization circuit 204 is returned to the original image by the local decoding circuit 212. It is.
[0042]
Reference numeral 209 denotes a subtracter, 210 denotes a switch that is closed only in a case other than an intra frame, and 211 denotes an adder.
[0043]
The image data decoded by the local decoding circuit 212 outputs a corresponding macroblock in a predetermined frame (preceding frame, succeeding frame or interpolation frame thereof) with reference to the motion vector detected by the motion vector detecting circuit 216. To do.
[0044]
The output of the motion compensation circuit 215 is subtracted from the input image data by the subtractor 209 to obtain a difference value. The difference value is obtained by the DCT circuit 203, the quantization circuit 204 and the variable length coding circuit 205 described above. It is encoded and stored in the buffer 206.
[0045]
The motion vector detection circuit 216 compares the frame data to be encoded with predetermined reference frame data to obtain a motion vector, and the detection output of the detection circuit 216 is supplied to the motion compensation circuit 215. The macro block to be output by the motion compensation circuit 215 is designated.
[0046]
Further, the rate control circuit 207 performs code amount control by switching the quantization step in the quantization circuit 204 based on the occupation amount of the encoded data in the buffer 206. The output of the rate control circuit 207 is also supplied to the inverse quantization circuit 213, and the inverse quantization circuit 213 controls the inverse quantization step based on the output data.
[0047]
Finally, various headers (for example, flags for identifying I, P, and B frames) are added to the encoded data by the addition circuit 208, and transmitted as MPEG data corresponding to the MPEG system.
[0048]
Next, the operation of the multiplexing determination unit 108 will be described with reference to FIG.
[0049]
FIG. 3 is a flowchart showing the operation of the multiplexing determination unit 108.
[0050]
First, in step S301, the PCR timer 107 is reset from the multiple determination unit 108. The PCR timer 107 operates in real time after being reset.
[0051]
Next, in step S302, the packet length detector 103 detects the packetized elementary stream length (PES length) (detects the number of bytes used in the PES length), and the process proceeds to step S303.
[0052]
The PES length is obtained by detecting PES_packet_length in the packetized elementary stream and adding 6 bytes used for the PES header to the detection result.
[0053]
In step S303, 184 bytes corresponding to the payload portion of the transport stream packet shown in ITU-T recommendation H.222.0: ISO / IEC 13818-1 are compared with the detected PES length. Otherwise, the process proceeds to step S311.
[0054]
In step S304, the value of the PCR timer 107 is read, and here, from the 100 ms which is the upper limit value of the PCR field transmission cycle defined in ITU-T recommendation H.222.0: ISO / IEC 13818-1, one transport stream packet worth. It is determined whether or not the value obtained by subtracting the time for transmitting 188 bytes is exceeded. That is, in step S304, it is performed to ensure that the PCR must be output as a TS within a period of 100 ms.
[0055]
In step S304, if the value of the timer 107 does not exceed the value obtained by subtracting the time to transmit 188 bytes for one transport stream packet from 100 ms, the process proceeds to step S305, and if it exceeds, the process proceeds to step S307.
[0056]
In step S305, 184 bytes (video PES) corresponding to the payload of the transport stream packet are output from the multiplexing buffer 104.
[0057]
Next, the process proceeds to step S306, the number of bytes output in step S305 (184 bytes) is subtracted from the previous number of bytes of the PES length, the remaining PES length is detected, and the process returns to step S303.
[0058]
In step S307, the PCR value is output from the multiplexing buffer 106. After outputting the PCR value, the PCR timer 107 is reset in step S308, and the process proceeds to step S309.
[0059]
In step S309, the multiplexing buffer 104 outputs the number of bytes obtained by subtracting the number of bytes for the PCR field from the 184 bytes for the payload of the transport stream packet. In step S310, the number of bytes output from the multiplexing buffer 104 is subtracted from the previous number of bytes of the PES length to detect the remaining PES length, and the process returns to step S303.
[0060]
Next, when the PES length is less than 184 bytes in step S303, the process proceeds to step S311.
[0061]
In step S311, it is determined whether the PES length is equal to or shorter than (184-number of bytes for PCR field). If the PES length is equal to or shorter than (184-number of bytes for the PCR field), the process proceeds to step S312. Otherwise, the process proceeds to step S315.
[0062]
In step S312, the PCR value is output from the multiplexing buffer 106, and in step S313, the PCR timer 107 is reset. Next, the process proceeds to step S314, where a stuffing byte of 184− (PES length + PCR) bytes is inserted.
[0063]
In step S315, all the remaining video PESs are output from the multiplexing buffer 104. Then, the process returns to step S302, and the next PES length is detected.
[0064]
In step S316, the value of the PCR timer 107 is read. Here, one transport stream packet worth from 100 ms, which is the upper limit value of the PCR field transmission cycle defined in ITU-T recommendation H.222.0: ISO / IEC 13818-1. It is determined whether or not the value obtained by subtracting the time for transmitting 188 bytes is exceeded. If not, the process proceeds to step S320. If exceeding, the process proceeds to step S317.
[0065]
In step S317, the PCR value is output from the multiplexing buffer 106. After outputting the PCR value, the PCR timer 107 is reset in step S318. In step S319, the multiplexing buffer 104 outputs the number of bytes obtained by removing the number of bytes corresponding to the PCR field from the 184 bytes corresponding to the payload of the transport stream packet. In step S320, the number of bytes output from the multiplexing buffer 104 is subtracted from the previous number of bytes of the PES length to detect the remaining PES length, and the process returns to step S303.
[0066]
In step S321, stuffing bytes corresponding to the number of bytes of the current PES length subtracted from 184 bytes are inserted, and the remaining video PES is output from the multiplexing buffer 104 in step S322. Then, the process returns to step S302, and proceeds to the processing of the next packetized elementary stream.
[0067]
By executing each step described above, when each variable-length video packetized elementary stream is multiplexed into a fixed-length transport stream packet, PCR is inserted into the video transport stream packet at regular intervals. Instead, when a fraction in which PCR can be inserted occurs in the video data, the PCR is inserted even if the prescribed insertion cycle has not been reached, and stuffing that is wasted during multiplexing is deleted.
[0068]
<Other Embodiments of the Present Invention>
The present invention may be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.) or an apparatus composed of a single device (for example, a copying machine, a facsimile machine).
[0069]
In addition, a program code of software for realizing the functions of the embodiment is provided to an apparatus or a computer in the system connected to the various devices so as to operate the various devices so as to realize the functions of the above-described embodiments. What is implemented by operating the various devices in accordance with a program stored in the computer (CPU or MPU) of the system or apparatus supplied is also included in the scope of the present invention.
[0070]
In this case, the software program code itself realizes the functions of the above-described embodiments, and the program code itself and means for supplying the program code to the computer, for example, the program code are stored. This storage medium constitutes the present invention.
[0071]
As a storage medium for storing the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
[0072]
Further, by executing the program code supplied by the computer, not only the functions of the above-described embodiments are realized, but also the OS (operating system) in which the program code is running on the computer, or other application software, etc. Needless to say, the program code is also included in the embodiment of the present invention even when the functions of the above-described embodiment are realized in cooperation with the embodiment. Further, after the supplied program code is stored in the memory provided in the function expansion board of the computer or the function expansion unit connected to the computer, the CPU provided in the function expansion board or function storage unit based on the instruction of the program code However, it is needless to say that the present invention also includes a case where the function of the above-described embodiment is realized by performing part or all of the actual processing.
[0073]
【The invention's effect】
As described above, according to the present invention, transmission synchronization information is multiplexed in accordance with the amount of variable-length encoded data generated, so that it is possible to minimize sending unnecessary information on the transmission path.
[0074]
In addition, the multiplexing period of the transmission synchronization information is variable, which is effective against transmission errors. Furthermore, the effect increases as the number of multiplexed programs increases.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an image encoding apparatus as an embodiment of the present invention.
2 is a block diagram showing a configuration of an MPEG encoder 101. FIG.
FIG. 3 is a flowchart showing the operation of the multiplexing determination unit 108;
FIG. 4 is a block diagram showing a configuration of a transmission side of a general digital transmission apparatus according to ISO / IEC 13818-1 to 3.
5 is a block diagram showing a detailed configuration of a TS multiplexer 305 in FIG. 1. FIG.
FIG. 6 is a diagram for explaining a PES / TS conversion format;
FIG. 7 is a diagram for explaining a PES / TS conversion format including PCR.
FIG. 8 is a diagram for explaining a PES / TS conversion format including PCR.

Claims (15)

可変長符号化された第1の情報データを入力する入力手段と、
前記第1の情報データを複数のデータ列で可変長パケット化する第1のパケット化手段と、
前記第1の情報データに関連する伝送同期情報を生成する生成手段と、
前記第1のパケット化手段によって可変長パケット化された第1の情報データに前記生成手段によって生成された伝送同期情報とを複数の固定長のパケットに多重する第2のパケット化手段と、
前記伝送同期情報を多重化した経過時間を計数する計数手段と、
前記第1のパケット化手段によって可変長パケット化された情報列のパケット長を検出する検出手段と、
前記計数手段と前記検出手段との出力に応じて、前記第2のパケット化手段の多重化処理を制御する制御手段とを有することを特徴とする符号化装置。
Input means for inputting variable length encoded first information data;
First packetization means for variable-length packetizing the first information data with a plurality of data strings;
Generating means for generating transmission synchronization information related to the first information data;
Second packeting means for multiplexing the first information data variable-length packetized by the first packetizing means and the transmission synchronization information generated by the generating means into a plurality of fixed-length packets;
Counting means for counting an elapsed time in which the transmission synchronization information is multiplexed;
Detecting means for detecting a packet length of the information string that is variable-length packetized by the first packetizing means;
An encoding apparatus comprising: control means for controlling multiplexing processing of the second packetizing means in accordance with outputs from the counting means and the detecting means.
請求項1において、前記制御手段は前記計数手段が所定の値を超えた時に、前記伝送同期情報を優先的に多重するように制御することを特徴とする符号化装置。  2. An encoding apparatus according to claim 1, wherein said control means controls to preferentially multiplex said transmission synchronization information when said counting means exceeds a predetermined value. 請求項1又は2において、前記第1のパケット化手段によって可変長パケット化された第1のパケットデータを前記固定長のパケットに多重する際、前記第1のパケットデータが第1のデータ数より少なく、且つ第2のデータ数以上の時に前記伝送同期情報を前記第1のパケットデータと同一の前記固定長のパケットに多重することを特徴とする符号化装置。  3. The first packet data according to claim 1, wherein when the first packet data variable-length packetized by the first packetization means is multiplexed with the fixed-length packet, the first packet data is more than the first data number. An encoding apparatus, wherein the transmission synchronization information is multiplexed into the fixed-length packet that is the same as the first packet data when the number is less than the second data number. 請求項1乃至3において、前記第1の情報データは画像データであり、前記画像データはMPEG方式に準拠した符号化がされていることを特徴とする符号化装置。  4. The encoding apparatus according to claim 1, wherein the first information data is image data, and the image data is encoded according to an MPEG system. 請求項4において、前記入力手段は被写体像を撮像する撮像手段を含むことを特徴とする符号化装置。  5. The encoding apparatus according to claim 4, wherein the input unit includes an imaging unit that captures a subject image. 請求項1乃至5において、前記制御手段は前記検出手段の出力に応じてスタッフィングのためのダミーデータを多重させることを特徴とする符号化装置。  6. The encoding apparatus according to claim 1, wherein the control unit multiplexes dummy data for stuffing in accordance with an output of the detection unit. 請求項6において、前記制御手段は前記計数手段の出力に応じてスタッフィングのためのダミーデータを多重させることを特徴とする符号化装置。  7. An encoding apparatus according to claim 6, wherein said control means multiplexes dummy data for stuffing according to the output of said counting means. 可変長符号化された第1の情報データを入力する入力手段と、
前記第1の情報データを複数のデータ列で可変長パケット化する第1のパケット化手段と、
前記第1の情報データに関連する伝送同期情報を生成する生成手段と、
前記第1のパケット化手段によって可変長パケット化された第1の情報データに前記生成手段によって生成された伝送同期情報とを複数の固定長のパケットに多重する第2のパケット化手段と、
前記第1のパケット化手段によって可変長パケット化された情報列のパケット長を検出する検出手段と、
前記検出手段の出力に応じて、前記第2のパケット化手段の多重化処理を制御する制御手段とを有することを特徴とする符号化装置。
Input means for inputting variable length encoded first information data;
First packetization means for variable-length packetizing the first information data with a plurality of data strings;
Generating means for generating transmission synchronization information related to the first information data;
Second packeting means for multiplexing the first information data variable-length packetized by the first packetizing means and the transmission synchronization information generated by the generating means into a plurality of fixed-length packets;
Detecting means for detecting a packet length of the information string that is variable-length packetized by the first packetizing means;
And a control unit that controls a multiplexing process of the second packetization unit in accordance with an output of the detection unit.
請求項8において、前記第1の情報データは画像データであり、前記画像データはMPEG方式に準拠した符号化がされていることを特徴とする符号化装置。  9. The encoding apparatus according to claim 8, wherein the first information data is image data, and the image data is encoded according to an MPEG system. 請求項9において、前記入力手段は被写体像を撮像する撮像手段を含むことを特徴とする符号化装置。  10. The encoding apparatus according to claim 9, wherein the input unit includes an imaging unit that captures a subject image. 請求項10において、前記制御手段は前記検出手段の出力に応じてスタッフィングのためのダミーデータを多重させることを特徴とする符号化装置。  11. An encoding apparatus according to claim 10, wherein said control means multiplexes dummy data for stuffing according to the output of said detection means. 可変長符号化された第1の情報データを入力する入力ステップと、
前記第1の情報データを複数のデータ列で可変長パケット化する第1のパケット化ステップと、
前記第1の情報データに関連する伝送同期情報を生成する生成ステップと、
前記第1のパケット化ステップによって可変長パケット化された第1の情報データに前記生成ステップによって生成された伝送同期情報とを複数の固定長のパケットに多重する第2のパケット化ステップと、
前記伝送同期情報を多重化した経過時間を計数する計数ステップと、
前記第1のパケット化ステップによって可変長パケット化された情報列のパケット長を検出する検出ステップと、
前記計数ステップと前記検出ステップとの結果に応じて、前記第2のパケット化ステップの多重化処理を制御する制御ステップとを有することを特徴とする符号化方法。
An input step of inputting variable length encoded first information data;
A first packetizing step of variable-length packetizing the first information data with a plurality of data strings;
Generating a transmission synchronization information related to the first information data;
A second packetization step for multiplexing the first information data variable-length packetized by the first packetization step and the transmission synchronization information generated by the generation step into a plurality of fixed-length packets;
A counting step of counting an elapsed time in which the transmission synchronization information is multiplexed;
A detection step of detecting a packet length of the information sequence variable-length packetized by the first packetization step;
An encoding method comprising: a control step for controlling a multiplexing process of the second packetization step according to a result of the counting step and the detection step.
可変長符号化された第1の情報データを入力する入力ステップと、
前記第1の情報データを複数のデータ列で可変長パケット化する第1のパケット化ステップと、
前記第1の情報データに関連する伝送同期情報を生成する生成ステップと、
前記第1のパケット化ステップによって可変長パケット化された第1の情報データに前記生成ステップによって生成された伝送同期情報とを複数の固定長のパケットに多重する第2のパケット化ステップと、
前記第1のパケット化ステップによって可変長パケット化された情報列のパケット長を検出する検出ステップと、
前記検出ステップの結果に応じて、前記第2のパケット化ステップの多重化処理を制御する制御ステップとを有することを特徴とする符号化方法。
An input step of inputting variable length encoded first information data;
A first packetizing step of variable-length packetizing the first information data with a plurality of data strings;
Generating a transmission synchronization information related to the first information data;
A second packetization step for multiplexing the first information data variable-length packetized by the first packetization step and the transmission synchronization information generated by the generation step into a plurality of fixed-length packets;
A detection step of detecting a packet length of the information sequence variable-length packetized by the first packetization step;
And a control step for controlling a multiplexing process of the second packetization step according to a result of the detection step.
符号化プログラムが記録されたコンピュータ可読記録媒体であって、
可変長符号化された第1の情報データを入力する入力工程のコードと、
前記第1の情報データを複数のデータ列で可変長パケット化する第1のパケット化工程のコードと、
前記第1の情報データに関連する伝送同期情報を生成する生成工程のコードと、
前記第1のパケット化工程によって可変長パケット化された第1の情報データに前記生成工程によって生成された伝送同期情報とを複数の固定長のパケットに多重する第2のパケット化工程のコードと、
前記伝送同期情報を多重化した経過時間を計数する計数工程のコードと、
前記第1のパケット化工程によって可変長パケット化された情報列のパケット長を検出する検出工程のコードと、
前記計数工程と前記検出工程との結果に応じて、前記第2のパケット化工程の多重化処理を制御する制御工程のコードとを有することを特徴とする符号化プログラムが記録されたコンピュータ可読記録媒体。
A computer-readable recording medium on which an encoding program is recorded,
A code of an input process for inputting the variable length encoded first information data;
A code of a first packetization step for variable-length packetizing the first information data with a plurality of data strings;
A generation process code for generating transmission synchronization information related to the first information data;
A second packetizing step code for multiplexing the first information data variable-length packetized by the first packetizing step and the transmission synchronization information generated by the generating step into a plurality of fixed-length packets; ,
A counting step code for counting the elapsed time of multiplexing the transmission synchronization information;
A detection step code for detecting a packet length of the information string that has been variable-length packetized by the first packetization step;
A computer-readable recording on which an encoding program is recorded, comprising: a control step code for controlling a multiplexing process of the second packetizing step in accordance with the result of the counting step and the detecting step Medium.
符号化プログラムが記録されたコンピュータ可読記録媒体であって、
可変長符号化された第1の情報データを入力する入力工程のコードと、
前記第1の情報データを複数のデータ列で可変長パケット化する第1のパケット化工程のコードと、
前記第1の情報データに関連する伝送同期情報を生成する生成工程のコードと、
前記第1のパケット化工程によって可変長パケット化された第1の情報データに前記生成工程によって生成された伝送同期情報とを複数の固定長のパケットに多重する第2のパケット化工程のコードと、
前記第1のパケット化工程によって可変長パケット化された情報列のパケット長を検出する検出工程のコードと、
前記検出工程の結果に応じて、前記第2のパケット化工程の多重化処理を制御する制御工程のコードとを有することを特徴とする符号化プログラムが記録されたコンピュータ可読記録媒体。
A computer-readable recording medium on which an encoding program is recorded,
A code of an input process for inputting the variable length encoded first information data;
A code of a first packetization step for variable-length packetizing the first information data with a plurality of data strings;
A generation process code for generating transmission synchronization information related to the first information data;
A second packetizing step code for multiplexing the first information data variable-length packetized by the first packetizing step and the transmission synchronization information generated by the generating step into a plurality of fixed-length packets; ,
A detection step code for detecting a packet length of the information string that has been variable-length packetized by the first packetization step;
A computer-readable recording medium on which an encoding program is recorded, comprising: a control step code for controlling multiplexing processing of the second packetizing step in accordance with a result of the detection step.
JP9919798A 1997-04-18 1998-04-10 Encoding apparatus and method, and computer-readable recording medium on which an encoding program is recorded Expired - Fee Related JP3679606B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9919798A JP3679606B2 (en) 1997-04-18 1998-04-10 Encoding apparatus and method, and computer-readable recording medium on which an encoding program is recorded

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP10175797 1997-04-18
JP9-101757 1997-04-18
JP9919798A JP3679606B2 (en) 1997-04-18 1998-04-10 Encoding apparatus and method, and computer-readable recording medium on which an encoding program is recorded

Publications (2)

Publication Number Publication Date
JPH114260A JPH114260A (en) 1999-01-06
JP3679606B2 true JP3679606B2 (en) 2005-08-03

Family

ID=26440351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9919798A Expired - Fee Related JP3679606B2 (en) 1997-04-18 1998-04-10 Encoding apparatus and method, and computer-readable recording medium on which an encoding program is recorded

Country Status (1)

Country Link
JP (1) JP3679606B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8780957B2 (en) 2005-01-14 2014-07-15 Qualcomm Incorporated Optimal weights for MMSE space-time equalizer of multicode CDMA system
KR20070117660A (en) 2005-03-10 2007-12-12 콸콤 인코포레이티드 Content adaptive multimedia processing
US8879635B2 (en) 2005-09-27 2014-11-04 Qualcomm Incorporated Methods and device for data alignment with time domain boundary
US8948260B2 (en) 2005-10-17 2015-02-03 Qualcomm Incorporated Adaptive GOP structure in video streaming
US8654848B2 (en) 2005-10-17 2014-02-18 Qualcomm Incorporated Method and apparatus for shot detection in video streaming
US9131164B2 (en) 2006-04-04 2015-09-08 Qualcomm Incorporated Preprocessor method and apparatus
JP4814864B2 (en) * 2007-11-26 2011-11-16 日本放送協会 Packet multiplexing apparatus and packet multiplexing program
JP5973746B2 (en) * 2012-02-24 2016-08-23 日本放送協会 Transmitting apparatus and receiving apparatus

Also Published As

Publication number Publication date
JPH114260A (en) 1999-01-06

Similar Documents

Publication Publication Date Title
KR100420740B1 (en) Encoding device, encoding method, decoding device, decoding method, coding system and coding method
US6654421B2 (en) Apparatus, method and computer program product for transcoding a coded multiplexed sound and moving picture sequence
US7424203B2 (en) Data reproduction transmission apparatus and data reproduction transmission method
US8160134B2 (en) Encoding system and method, decoding system and method, multiplexing apparatus and method, and display system and method
JP4232209B2 (en) Compressed image data editing apparatus and compressed image data editing method
US6333950B1 (en) Encoding apparatus and method and computer readable recording medium in which encoding program has been recorded
JPH10257502A (en) Hierarchical image encoding method, hierarchical image multiplexing method, hierarchical image decoding method and device therefor
WO2000076222A1 (en) Flow control, latency control and bitrate conversions in a timing correction and frame synchronization apparatus
KR100203262B1 (en) Interface device of video decoder for syncronization of picture
JP2001285861A (en) Device for encoding picture signal
US7391773B2 (en) Data processing apparatus and method and computer readable storage medium
JP3679606B2 (en) Encoding apparatus and method, and computer-readable recording medium on which an encoding program is recorded
JP2894958B2 (en) Image decoding method and apparatus
US7269839B2 (en) Data distribution apparatus and method, and data distribution system
US6950443B1 (en) Encoding apparatus, encoding method, and recording medium storing encoding processing program
US6356311B1 (en) Video signal transmission apparatus
JPH1155660A (en) Improvement of correction of digital bit stream or with respect to correction of digital bit stream
JP3792770B2 (en) Recording / playback device
JPH08191434A (en) Moving picture/audio coding data multiplexing method and moving picture/audio coding data multiplexer
KR0173735B1 (en) Mpeg transfort stream management apparatus and method of vod system
JP4009072B2 (en) Encoded data multiplex transmission apparatus and method
JP2000270018A (en) Multiplexing device, encoding device, information processing system, multiplexing method, and storage medium
JPH09270994A (en) Stream control system
KR0180174B1 (en) Mpeg 2 pat depacketizer
JP2002290363A (en) Data multiplex transmission method and its device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041102

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041210

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050510

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050513

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090520

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110520

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120520

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120520

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130520

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140520

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees