[go: up one dir, main page]

JP3496714B2 - Multiplexing device and multiplexing method - Google Patents

Multiplexing device and multiplexing method

Info

Publication number
JP3496714B2
JP3496714B2 JP28836199A JP28836199A JP3496714B2 JP 3496714 B2 JP3496714 B2 JP 3496714B2 JP 28836199 A JP28836199 A JP 28836199A JP 28836199 A JP28836199 A JP 28836199A JP 3496714 B2 JP3496714 B2 JP 3496714B2
Authority
JP
Japan
Prior art keywords
code
multiplexing
storage means
type
stored
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
JP28836199A
Other languages
Japanese (ja)
Other versions
JP2001111513A (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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP28836199A priority Critical patent/JP3496714B2/en
Publication of JP2001111513A publication Critical patent/JP2001111513A/en
Application granted granted Critical
Publication of JP3496714B2 publication Critical patent/JP3496714B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、可変ビットレート
の動画像符号又は固定ビットレートにもかかわらず各フ
レームのビット数割り当てが異なるような動画像符号
と、可変ビットレートの音声符号又は固定ビットレート
の音声符号とを同期して再生できるように、フレーム単
位に多重化して記憶媒体に記録する動画像音声多重化装
置に関し、特に、アプリケーションが動画像符号や音声
符号の内容を調べることなく固定サイズのメモリを使用
して、動画像符号と音声符号とを多重化できる動画像音
声多重化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture code having a variable bit rate or a fixed bit rate, in which the allocation of the number of bits of each frame is different, and a voice code having a variable bit rate or a fixed bit. The present invention relates to a video / audio multiplexer that multiplexes in frame units and records it in a storage medium so that it can be played back in synchronization with a voice code of a rate. The present invention relates to a moving picture voice multiplexing apparatus capable of multiplexing a moving picture code and a voice code by using a memory of a size.

【0002】[0002]

【従来の技術】通常では、画像をデジタル化してCD−RO
M やハードディスクなどの記録媒体に記録する場合、そ
のデータ量は膨大なものとなるため、データは圧縮符号
化される。圧縮符号化方法としては、画像の空間周波数
が低周波に集中する性質を利用して圧縮を行うDCT
(Discrete cosine Transformation:二次元離散コサイ
ン変換)をベースとした符号化方式が多数使用されてい
る。この圧縮符号化方法は、JPEG(Joint Photograp
hic Experts Group :カラー静止画像圧縮の国際標準)
や、MPEG1(Moving Pictures Experts Group 1 :
動画像圧縮の国際標準) 、又はMPEG2などの国際標
準に採用されている。
2. Description of the Related Art Normally, an image is digitized into a CD-RO.
When recording on a recording medium such as an M or a hard disk, the amount of data is enormous, so the data is compressed and encoded. As a compression encoding method, a DCT that performs compression by utilizing the property that the spatial frequency of an image is concentrated in a low frequency
Many encoding methods based on (Discrete cosine Transformation) are used. This compression encoding method is based on JPEG (Joint Photograp
hic Experts Group: International standard for color still image compression)
And MPEG1 (Moving Pictures Experts Group 1:
It has been adopted as an international standard for moving image compression) or an international standard such as MPEG2.

【0003】以下に、MPEGの場合について、従来の
多重化動作を説明する。ビデオ符号とオーディオ符号と
を多重化するシステム符号化制御装置51の構成を図1
7に示す。このシステム符号化制御装置51は、オーデ
ィオ符号をパック化するオーディオパック生成部52
と、ビデオ符号をパック化するビデオパック生成部53
とから構成される。
The conventional multiplexing operation in the case of MPEG will be described below. FIG. 1 shows the configuration of a system coding control device 51 that multiplexes a video code and an audio code.
7 shows. The system coding control device 51 includes an audio pack generation unit 52 that packs audio codes.
And a video pack generation unit 53 that packs the video code.
Composed of and.

【0004】上記のように構成したシステム符号化制御
装置51において、オーディオパック生成部52は、オ
ーディオ符号ファイル54からパケット分のオーディオ
符号を切り出して、この切り出したオーディオ符号にパ
ケットヘッダ及びパックヘッダを付加し、オーディオパ
ックを生成する。また、ビデオパック生成部53は、ビ
デオ符号ファイル55からパケット分のビデオ符号を切
り出して、この切り出したビデオ符号にパケットヘッダ
及びパックヘッダを付加し、ビデオパックを生成する。
そして、これらのパックをフレーム毎に格納してシステ
ム符号を生成する。
In the system coding control device 51 configured as described above, the audio pack generation unit 52 cuts out audio codes for packets from the audio code file 54, and adds a packet header and a pack header to the cut out audio codes. Add and generate an audio pack. Further, the video pack generation unit 53 cuts out a video code for packets from the video code file 55, adds a packet header and a pack header to the cut out video code, and generates a video pack.
Then, these packs are stored for each frame to generate a system code.

【0005】上記の技術において、通常、ビデオ符号と
オーディオ符号とを多重化する時には、デコーダ側で動
画と音声とを同期して再生できるように、同じ時間に再
生すべきビデオ符号とオーディオ符号とを交互に配置す
る。
In the above technique, when the video code and the audio code are multiplexed, usually, the video code and the audio code to be reproduced at the same time so that the moving picture and the audio can be reproduced in synchronization on the decoder side. Are arranged alternately.

【0006】[0006]

【発明が解決しようとする課題】ところで、ビデオ符号
とオーディオ符号とを多重化する際、両符号とも固定ビ
ットレートで圧縮符号化されている場合は、各符号のビ
ットレートの比率から比較的容易に処理することができ
る。例えば、150000bps で符号化されたビデオ符号と24
000bpsで符号化されたオーディオ符号とを多重化する場
合は、ビデオ符号のビットレートはオーディオ符号の6.
25(150000/24000)倍となる。このため、ビデオ符号の
パケットとオーディオ符号のパケットとの長さを同じに
して、6個から7個のビデオパケットの後に1個のオー
ディオパケットを挿入すればよい。
By the way, when a video code and an audio code are multiplexed, if both codes are compression-encoded at a fixed bit rate, the bit rate of each code is relatively easy. Can be processed. For example, a video code encoded at 150000 bps and 24
When multiplexing with an audio code encoded at 000 bps, the bit rate of the video code is 6.
25 times (150000/24000) times. Therefore, the length of the video code packet and the length of the audio code packet may be the same, and one audio packet may be inserted after six to seven video packets.

【0007】しかし、固定ビットレートでも通常は、I
PBピクチャ毎にビット数の割り当てが異なる。このた
め、フレーム単位で正確に同期を取ってビデオ符号とオ
ーディオ符号とを多重化することは困難であった。特
に、ビデオ符号の画質を均一に保つために可変ビットレ
ートで圧縮した場合は、両符号の情報量の比率が一定で
はないため、多重化がさらに困難であった。また、オー
ディオ符号も途中でビットレートを変える場合もあるた
め、両符号の情報量の比率が一定ではなくなり、やはり
多重化が困難であった。
However, even at a constant bit rate, I usually
The allocation of the number of bits is different for each PB picture. Therefore, it is difficult to accurately synchronize the frame and the video code and the audio code for multiplexing. In particular, when the video code is compressed at a variable bit rate in order to keep the image quality uniform, the multiplexing is more difficult because the ratio of the information amount of both codes is not constant. In addition, since the bit rate of the audio code may change in the middle of the process, the ratio of the information amount of both codes is not constant, and thus the multiplexing is difficult.

【0008】このような問題点を解決するための技術と
して、可変ビットレートの場合、動画像音声の多重化を
実現する方法としては、特開平6−343158号、特
開平10−199140、特開平10−199141
号、特開平10−234010号、特開平10−320
914号に記載の技術がある。特開平6−343158
号の技術は、ビデオ符号とオーディオ符号とをそれぞれ
のバッファに格納し、バッファの蓄積量に応じて多重化
回路への符号化コードの転送/待機を制御する。このた
め、コードデータの発生量が可変であっても、バッファ
のオーバーフロー及びアンダーフローを抑制できる。ま
た、多重化回路への入力データを一定の時間間隔で切り
替えることで、一定時間毎に両符号を多重化していた。
As a technique for solving such a problem, in the case of a variable bit rate, as a method for realizing multiplexing of moving image / sound, Japanese Patent Laid-Open Nos. 6-343158, 10-199140 and 10-199140, 10-199141
No. 10, JP-A-10-234010, JP-A-10-320
There is a technique described in No. 914. JP-A-6-343158
The technique of No. stores the video code and the audio code in the respective buffers, and controls the transfer / waiting of the coded code to the multiplexing circuit according to the storage amount of the buffer. Therefore, even if the generation amount of code data is variable, overflow and underflow of the buffer can be suppressed. Further, by switching the input data to the multiplexing circuit at constant time intervals, both codes are multiplexed at constant time intervals.

【0009】特開平10−199140の技術は、オー
ディオエンコーダ又はビデオエンコーダの後段に各エン
コーダの処理時間の差異を吸収する遅延回路と、タイミ
ングデータを出力する計時回路とを設ける。そして、こ
れらの回路により、ほぼ同時刻の符号を情報量が各符号
のビットレート比にほぼ等しくなるように多重化してい
た。
In the technique of Japanese Patent Laid-Open No. 10-199140, a delay circuit that absorbs a difference in processing time of each encoder and a timing circuit that outputs timing data are provided in the subsequent stage of an audio encoder or a video encoder. Then, by these circuits, the codes at substantially the same time are multiplexed so that the information amount becomes substantially equal to the bit rate ratio of each code.

【0010】特開平10−199141号の技術は、オ
ーディオエンコーダとバッファメモリとの間に遅延回路
を設けて、各符号エンコーダの記憶されるデータ総量を
監視する。そして、監視されているデータ総量が所定量
に達する毎に、各データを読み出すコントローラにより
多重化している。このようにして、ほぼ同時刻の符号を
情報量がビットレート比にほぼ等しくなるように多重化
していた。
In the technique disclosed in Japanese Patent Laid-Open No. 10-199141, a delay circuit is provided between the audio encoder and the buffer memory to monitor the total amount of data stored in each code encoder. Then, each time the total amount of monitored data reaches a predetermined amount, the data is multiplexed by the controller that reads each data. In this way, the codes at approximately the same time are multiplexed so that the information amount becomes approximately equal to the bit rate ratio.

【0011】特開平10−234010号の技術は、ビ
デオ符号とオーディオ符号とをそれぞれのバッファに蓄
えて、その蓄積量の和を所定の基準値と比較する。そし
て、蓄積量が基準値と等しくなったとき、各データをパ
ケット化して多重化していた。特開平10−32091
4号の技術は、ビデオフレームの再生時刻及び/又は復
号時刻を指示するタイムスタンプとオーディオフレーム
の再生時刻及び/又は復号時刻を指示するタイムスタン
プとを比較する。次に、タイムスタンプの比較により、
両フレームが同時刻性を有するように多重化していた。
The technique disclosed in Japanese Patent Laid-Open No. 10-234010 stores a video code and an audio code in respective buffers and compares the sum of the stored amounts with a predetermined reference value. Then, when the accumulated amount became equal to the reference value, each data was packetized and multiplexed. JP-A-10-32091
The technique of No. 4 compares a time stamp indicating a reproduction time and / or a decoding time of a video frame with a time stamp indicating a reproduction time and / or a decoding time of an audio frame. Then, by comparing the time stamps,
Both frames were multiplexed so as to have the same time property.

【0012】しかし、上記のいずれの技術も、動画像と
音声とを多重化する機能を持たないアプリケーションに
ついては考慮されておらず、そのようなアプリケーショ
ンでは多重化機能を制御することは出来なかった。ま
た、上記のいずれの技術でも、ほぼ同時刻のビデオ符号
とオーディオ符号とをメモリに蓄積する必要があるが、
メモリを節約することは考慮されていなかった。このた
め、必要なメモリが増えるという問題点があった。
However, none of the above techniques considers an application that does not have a function of multiplexing a moving image and audio, and such an application cannot control the multiplexing function. . Further, in any of the above techniques, it is necessary to store the video code and the audio code at substantially the same time in the memory,
Saving memory was not considered. Therefore, there is a problem that the required memory increases.

【0013】従って、本発明が解決しようとする第1の
課題は、多重化装置の多重化手段に多重化機能を集約す
ることによって、多重化機能を持たないアプリケーショ
ンであっても容易に多重化出来る技術を提供することで
ある。第2の課題は、固定サイズのバッファを使用して
容易に動画像符号と音声符号とを多重化できる技術を提
供することである。
Therefore, the first problem to be solved by the present invention is to easily multiplex even an application having no multiplex function by integrating the multiplex function in the multiplex means of the multiplex device. It is to provide the technology that can be done. A second problem is to provide a technique capable of easily multiplexing a moving image code and a voice code by using a fixed size buffer.

【0014】第3の課題は、多重化装置が必要とするバ
ッファサイズを節約できる技術を提供することである。
A third object is to provide a technique capable of saving the buffer size required by the multiplexer.

【0015】[0015]

【課題を解決する為の手段】上記の課題は、二種類以上
の符号を多重化する多重化装置であって、符号の種類ご
とに設けられた複数の記憶手段と、前記複数の記憶手段
から種類ごとに符号を読み出して多重化し、一つの種類
の符号が不足した場合、この不足している種類の符号を
対応する前記記憶手段に格納させ、不足していた符号が
前記記憶手段に格納されると、格納された符号を読み出
して多重化を継続する多重化手段とを有することを特徴
とする多重化装置によって達成される。
The above-mentioned problem is a multiplexing device for multiplexing two or more types of codes, which comprises a plurality of storage means provided for each type of code and a plurality of storage means. When codes of each type are read out and multiplexed, and when one type of code is insufficient, the missing type of code is stored in the corresponding storage means, and the missing code is stored in the storage means. Then, it is achieved by a multiplexing device having a multiplexing means for reading the stored code and continuing the multiplexing.

【0016】また、上記の課題は、二種類以上の符号を
多重化する多重化装置であって、符号の種類ごとに設け
られ、所定の順番で各種類の符号が格納される複数の記
憶手段と、前記複数の記憶手段から種類ごとに符号を読
み出して多重化し、一つの種類の符号が不足した場合、
前記所定の順番をかえて不足している種類の符号を対応
する前記記憶手段に格納させ、不足していた符号が前記
記憶手段に格納されると、格納された符号を読み出して
多重化を継続する多重化手段とを有することを特徴とす
る多重化装置によって達成される。
Further, the above problem is a multiplexing device for multiplexing two or more types of codes, and a plurality of storage means are provided for each type of code and store each type of code in a predetermined order. And, when the codes are read from the plurality of storage means for each type and multiplexed, and when one type of code is insufficient,
When the code of the missing type is stored in the corresponding storage means by changing the predetermined order and the missing code is stored in the storage means, the stored code is read and the multiplexing is continued. It is achieved by a multiplexing device comprising:

【0017】尚、上記多重化装置は、さらに、多重化さ
れる符号を一時的に格納する第2の記憶手段を有し、上
記多重化手段は、一つの種類の符号が不足した場合、多
重化されていない他の種類の符号を前記記憶手段から読
み出して前記第2の記憶手段に格納し、前記不足してい
た種類の符号の多重化が終了すると、前記第2の記憶手
段に格納されている符号を読み出して符号を多重化する
手段をさらに有することが好ましい。
The multiplexing device further has a second storage means for temporarily storing the code to be multiplexed, and the multiplexing means is capable of multiplexing when one type of code is insufficient. Another type of code that has not been encoded is read from the storage means and stored in the second storage means, and when the multiplexing of the insufficient type of code is completed, it is stored in the second storage means. It is preferable to further have means for reading the code that is present and multiplexing the code.

【0018】また、上記多重化装置は、さらに、多重化
される符号が格納されているファイルより符号を読み出
して前記記憶手段に格納し、前記多重化手段から指示を
受けると指示された種類の符号を読み出して前記記憶手
段に格納する読出し手段を有することが好ましい。さら
に、上記読出し手段は、多重化される符号をファイルよ
り所定の順番で読み出すように構成され、前記多重化手
段から指示を受けた場合には前記所定の順番を変更して
指示された種類の符号を読み出すように構成されている
ことが好ましい。
Further, the multiplexing device further reads the code from the file in which the code to be multiplexed is stored, stores it in the storage means, and receives the instruction from the multiplexing means. It is preferable to have a reading means for reading the code and storing it in the storage means. Further, the reading means is configured to read the codes to be multiplexed from the file in a predetermined order, and when receiving an instruction from the multiplexing means, the predetermined order is changed to change the specified type. It is preferably configured to read the code.

【0019】また、上記多重化装置は、さらに、多重化
される符号の情報に基づいて、前記記憶手段又は/及び
前記第2の記憶手段の記憶サイズを計算し、前記記憶手
段又は/及び前記第2の記憶手段を確保する手段をさら
に有することが好ましい。また、上記多重化手段は、符
号を前記第2の記憶手段に格納する際、格納する符号量
が前記第2の記憶手段の記憶サイズよりも所定以下の場
合には、前記読出し手段に順番を変更する指示をださな
いように構成することも可能である。
Further, the multiplexing device further calculates the storage size of the storage means and / or the second storage means based on the information of the code to be multiplexed, and the storage means and / or the storage size of the second storage means. It is preferable to further have means for securing the second storage means. Further, when storing the code in the second storage means, the multiplexing means, when the code amount to be stored is less than a predetermined storage size of the second storage means, orders the read means. It is also possible to configure so as not to issue an instruction to change.

【0020】また、上記多重化手段は、一つの種類の符
号が不足した場合、多重化されていない符号が格納され
ている前記記憶手段を上書き格納をさせないように構成
しても、多重化を継続させることが可能である。また、
上記の課題は、二種類以上の符号を多重化する多重化方
法であって、符号の種類ごとに記憶領域を設定するステ
ップと、前記記憶領域から符号を読み出して多重化し、
一つの種類の符号が不足した場合、不足した種類の符号
を対応する記憶領域に格納させるステップと、不足して
いた符号が前記記憶領域に格納されると、不足していた
符号を読み出して多重化を継続するステップとを有する
ことを特徴とする多重化方法によって達成される。
Further, when the one type of code is insufficient, the multiplexing means is configured so as not to overwrite the storage means in which the unmultiplexed code is stored, but to perform the multiplexing. It is possible to continue. Also,
The above-mentioned problem is a multiplexing method for multiplexing two or more types of codes, a step of setting a storage area for each type of code, and reading and multiplexing the codes from the storage area,
When one type of code is insufficient, a step of storing the insufficient type of code in the corresponding storage area; and when the insufficient code is stored in the storage area, the insufficient code is read and multiplexed. And a step of continuing the multiplexing.

【0021】また、上記の課題は、二種類以上の符号を
多重化する多重化装置であって、符号の種類ごとに設け
られた複数の第1の記憶手段と、多重化される符号が一
時的に格納される第2の記憶手段と、前記複数の第1の
記憶手段から種類ごとに符号を読み出して多重化し、一
つの種類の符号が不足した場合、多重化されていない他
の種類の符号を前記第1の記憶手段から読み出して前記
第2の記憶手段に格納し、前記不足している種類の符号
を対応する第1の記憶手段に格納させ、前記第1の記憶
手段に格納させた符号を読み出して多重化後、前記第2
の記憶手段に格納した符号を読み出して多重化する多重
化手段とを有することを特徴とする多重化装置によって
達成される。
Further, the above-mentioned problem is a multiplexing device for multiplexing two or more types of codes, wherein a plurality of first storage means provided for each type of code and a code to be multiplexed are temporarily stored. Code stored in the first storage means and the plurality of first storage means are read out for multiplexing, and the codes are multiplexed for each type. If one type of code is insufficient, another type of code that is not multiplexed is used. A code is read from the first storage means and stored in the second storage means, and the code of the missing type is stored in the corresponding first storage means and stored in the first storage means. The second code is read out and multiplexed,
And a multiplexing unit for reading and multiplexing the code stored in the storage unit of the above.

【0022】また、上記の課題は、二種類以上の符号を
多重化する多重化装置であって、符号の種類ごとに設け
られた複数の記憶手段と、通知された種類の符号を所定
のファイルより読み出し、通知された種類に対応する記
憶手段に格納する読出し手段と、前記複数の記憶手段か
ら種類ごとに符号を読み出して多重化し、一つの種類の
符号が不足した場合、この不足している符号の種類を前
記読出し手段に通知し、前記通知により前記読出し手段
が通知された種類の符号を対応する記憶手段に格納後、
格納された符号を読み出して多重化する多重化手段とを
有することを特徴とする多重化装置によっても達成され
る。
Further, the above-mentioned problem is a multiplexing device for multiplexing two or more types of codes, and a plurality of storage means provided for each type of code and a code of the notified type in a predetermined file. If there is a shortage of one type of code, the reading means for reading and storing in the storage means corresponding to the notified type and the code for each type are read out from the plurality of storage means and multiplexed, and this is insufficient. After notifying the reading means of the type of code and storing the code of the type notified by the reading means in the corresponding storage means by the notification,
It is also achieved by a multiplexing device characterized by comprising a multiplexing means for reading and multiplexing the stored code.

【0023】また、上記の課題は、二種類以上の符号を
多重化する多重化装置であって、符号の種類ごとに設け
られた複数の第1の記憶手段と、多重化される符号が一
時的に格納される第2の記憶手段と、通知された種類の
符号を所定のファイルより読み出し、通知された種類に
対応する第1の記憶手段に格納する読出し手段と、前記
複数の第1の記憶手段から種類ごとに符号を読み出して
多重化し、一つの種類の符号が不足した場合、前記第1
の記憶手段から多重化されていない他の種類の符号を読
み出して前記第2の記憶手段に格納し、前記不足してい
る符号の種類を前記読出し手段に通知し、前記通知によ
り前記読出し手段が通知された種類に対応する第1の記
憶手段に符号を格納後に前記第1の記憶手段に格納され
た符号を読み出して多重化し、この多重化後に前記第2
の記憶手段に格納した符号を読み出して多重化する多重
化手段とを有することを特徴とする多重化装置によって
も達成される。
Further, the above-mentioned problem is a multiplexing device for multiplexing two or more types of codes, wherein a plurality of first storage means provided for each type of code and a code to be multiplexed are temporarily stored. Second storage means that is stored temporarily, a reading means that reads a code of the notified type from a predetermined file, and stores the code in the first storage means corresponding to the notified type, and the plurality of first storage means. When the codes for each type are read out from the storage means and multiplexed and one type of code is insufficient, the first
Other types of codes that are not multiplexed are read from the storage means of the above, stored in the second storage means, the types of the insufficient codes are notified to the reading means, and the reading means causes the reading means to After storing the code in the first storage means corresponding to the notified type, the code stored in the first storage means is read out and multiplexed, and after this multiplexing, the second code is stored.
And a multiplexing means for reading and multiplexing the code stored in the storage means.

【0024】[0024]

【発明の実施態様】第一の実施の形態を以下に説明す
る。尚、本発明においては、多重化する符号として、ビ
デオ符号とオーディオ符号とを用いた場合を説明する。
本発明の第一の実施の形態について、図1〜図16を用
いて説明する。ここで、使用する図について簡単に説明
する。
BEST MODE FOR CARRYING OUT THE INVENTION A first embodiment will be described below. In the present invention, a case where a video code and an audio code are used as a code to be multiplexed will be described.
A first embodiment of the present invention will be described with reference to FIGS. Here, the drawings used will be briefly described.

【0025】本発明による多重化装置の構成を図1に示
す。また、本発明の用途であるMPEGに関して、図2
〜図6にそれぞれ示す。MPEGビデオに準拠した符号
フォーマットの構成を図2に、MPEGオーディオに準
拠した符号フォーマットの構成を図3に示す。そして、
これらを多重化した際の多重化符号に関して、MPEG
システムに準拠したビデオ符号とオーディオ符号との多
重化フォーマットの構成を図4に示す。さらに、MPE
G方式の動画像圧縮に用いられる動画像圧縮手段の構成
を図5に、音声圧縮手段の構成を図6にそれぞれ示す。
本発明の多重化動作の一連の流れをシーケンスチャート
ととして、図7及び図8に示す。両符号の多重化を実際
に行うシステム符号化制御部の動作フローチャートを図
9〜図11に示す。符号の格納手段(システムバッフ
ァ)を用いたビデオ符号の格納例を図12に、オーディ
オ符号の格納例を図13にそれぞれ示す。多重化処理に
よる両符号の一連の格納例を、図14から図16に示
す。一回目の多重化の際にビデオ符号が不足する場合の
動作を図14に、二回目の多重化により、オーディオ符
号が不足する場合の動作を図15にそれぞれ示す。さら
に、三回目の多重化により、ビデオ符号が足らなくなる
場合の動作を図16に示す。
The structure of the multiplexer according to the present invention is shown in FIG. Also, regarding MPEG which is an application of the present invention, FIG.
~ Respectively shown in FIG. FIG. 2 shows the structure of a code format compliant with MPEG video, and FIG. 3 shows the structure of a code format compliant with MPEG audio. And
Regarding the multiplexing code when these are multiplexed, MPEG
FIG. 4 shows the structure of a multiplexing format of a video code and an audio code that conforms to the system. Furthermore, MPE
FIG. 5 shows the configuration of the moving image compression means used for G-type moving image compression, and FIG. 6 shows the configuration of the audio compression means.
A series of flow of the multiplexing operation of the present invention is shown in FIGS. 7 and 8 as a sequence chart. 9 to 11 are operation flowcharts of the system encoding control unit that actually multiplexes both codes. FIG. 12 shows an example of storing a video code using the code storing means (system buffer), and FIG. 13 shows an example of storing an audio code. 14 to 16 show a series of storage examples of both codes by the multiplexing process. FIG. 14 shows the operation when the video code is insufficient in the first multiplexing, and FIG. 15 shows the operation when the audio code is insufficient in the second multiplexing. Further, FIG. 16 shows an operation in the case where the video code becomes insufficient due to the third multiplexing.

【0026】先ず、本発明の多重化装置の構成を図1に
示し、以下に説明する。図1中、1は多重化装置であ
る。この多重化装置1 は、システム符号化制御部2と、
オーディオパック生成部3と、ビデオパック生成部4
と、インターフェース制御部5と、オーディオバッファ
6と、ビデオバッファ7と、システムバッファ8と、テ
ンポラルバッファ9とから構成される。
First, the structure of the multiplexer of the present invention is shown in FIG. 1 and will be described below. In FIG. 1, reference numeral 1 is a multiplexing device. The multiplexing device 1 includes a system encoding control unit 2 and
Audio pack generation unit 3 and video pack generation unit 4
, An interface control unit 5, an audio buffer 6, a video buffer 7, a system buffer 8 and a temporal buffer 9.

【0027】多重化装置1は、ビデオ符号とオーディオ
符号とを同期して多重化するものである。システム符号
化制御部2は、オーディオ符号をパック化してオーディ
オパックを生成するオーディオパック生成部3と、ビデ
オ符号をパック化してビデオパックを生成するビデオパ
ック生成部4とを有する。そして、システム符号化制御
部2は、生成したオーディオパック又はビデオパック
を、1 フレーム単位で同期させて後述するシステムバッ
ファ8に格納することにより、オーディオ符号とビデオ
符号とを多重化するものである。
The multiplexer 1 synchronizes a video code and an audio code and multiplexes them. The system coding control unit 2 includes an audio pack generation unit 3 that packs audio codes to generate an audio pack, and a video pack generation unit 4 that packs video codes to generate a video pack. Then, the system encoding control unit 2 multiplexes the audio code and the video code by storing the generated audio pack or video pack in a system buffer 8 which will be described later in synchronization with one frame unit. .

【0028】インターフェース制御部5は、システム符
号化制御部2からの符号のビットレート等の情報に基づ
いて、オーディオバッファ6と、ビデオバッファ7と、
システムバッファ8と、テンポラルバッファ9とのサイ
ズをそれぞれ計算して各バッファを確保するものであ
る。尚、オーディオバッファ6は、多重化されるオーデ
ィオ符号が格納されるものである。ビデオバッファ7
は、多重化されるビデオ符号が格納されるものである。
システムバッファ8は、多重化符号であるシステム符号
が格納されるものである。テンポラルバッファ9は、多
重化の際に多重化する符号の量が1フレーム以下となっ
て不足するため多重化が継続できなくなった場合、この
不足している符号とは異なる種類の余っている符号を、
一時的に格納するものである。また、インターフェース
制御部5は、システム符号化制御部2と後述するアプリ
ケーション10との間の通知の仲介も行うものである。
The interface control unit 5 has an audio buffer 6, a video buffer 7, and an audio buffer 6 on the basis of information such as the bit rate of the code from the system encoding control unit 2.
The sizes of the system buffer 8 and the temporal buffer 9 are respectively calculated to secure each buffer. The audio buffer 6 stores audio codes to be multiplexed. Video buffer 7
Is for storing the video code to be multiplexed.
The system buffer 8 stores a system code which is a multiplexing code. In the temporal buffer 9, when the number of codes to be multiplexed at the time of multiplexing becomes insufficient due to one frame or less and the multiplexing cannot be continued, an extra code of a different type from the insufficient code To
It is to be stored temporarily. The interface control unit 5 also mediates notification between the system encoding control unit 2 and an application 10 described later.

【0029】上記の如く構成された多重化装置1の外部
にはアプリケーション10と、ビデオ符号ファイル11
と、オーディオ符号ファイル12と、システム符号ファ
イル13とが設けられている。アプリケーション10
は、システム符号化制御部2から通知を受けて、ビデオ
符号及びオーディオ符号を、それぞれビデオ符号ファイ
ル11及びオーディオ符号ファイル12から読み出すも
のである。ここで、ビデオ符号ファイル11は、ビデオ
符号の符号列が格納されたファイルである。また、オー
ディオ符号ファイル12は、オーディオ符号の符号列が
格納されたファイルである。
An application 10 and a video code file 11 are provided outside the multiplexer 1 configured as described above.
, An audio code file 12 and a system code file 13 are provided. Application 10
Receives the notification from the system encoding control unit 2 and reads the video code and the audio code from the video code file 11 and the audio code file 12, respectively. Here, the video code file 11 is a file in which code strings of video codes are stored. The audio code file 12 is a file in which a code string of audio codes is stored.

【0030】システム符号ファイル13は、システム符
号化制御部2により形成されたシステム符号の符号列が
格納されるファイルである。次に、MPEG(Moving Pi
cture Experts Group)圧縮方式について、図2〜図6を
参照して以下に説明する。図2において、ビデオデータ
は、1個以上のビデオシーケンスから構成され、ビデオ
シーケンスエンドコードで終了する。ここで、ビデオシ
ーケンスは、ビデオシーケンスヘッダと1個以上のGO
P(Group Of Picture)とから構成される。このとき、
GOPは1個以上のピクチャから構成され、1つのピク
チャが1枚の画像を示している。また、ピクチャの先頭
には、ピクチャ種別等の情報を含んだピクチャヘッダが
置かれる。
The system code file 13 is a file in which a code string of the system code formed by the system coding control unit 2 is stored. Next, MPEG (Moving Pi)
The cture Experts Group) compression method will be described below with reference to FIGS. In FIG. 2, the video data consists of one or more video sequences and ends with a video sequence end code. Here, the video sequence includes a video sequence header and one or more GOs.
P (Group Of Picture). At this time,
A GOP is composed of one or more pictures, and one picture represents one image. A picture header containing information such as the picture type is placed at the beginning of the picture.

【0031】ピクチャには、フレーム内符号のみから構
成されるIピクチャと、前方向のみのフレーム間符号か
ら構成されるPピクチャと、前後の双方向のフレーム間
符号から構成されるBピクチャとの3種類がある。これ
ら各種のピクチャは、任意の領域に分割された複数のス
ライスから構成される。この複数のスライスは、左から
右へ、または上から下への順序で並んだ複数のマクロブ
ロックから構成される。ここで、マクロブロックには、
大別して、フレーム内符号であるイントラブロックと、
前方向又は双方向のフレーム間符号であるインターブロ
ックとの2種類がある。前述したIピクチャは、イント
ラブロックのみで構成されるが、Pピクチャ及びBピク
チャは、インターブロックのみでなく、イントラブロッ
クも含む場合がある。そして、マクロブロックは、16
×16ドットのブロックをさらに8×8ドットのブロッ
クに分割した輝度成分(Y1,Y2,Y3,Y4)と、
輝度成分に一致する領域の8×8ドットのブロックの色
差成分(Cb,Cr)との6個のブロックから構成され
る。このとき、マクロブロックにおいて、8×8ドット
のブロックが符号化の最小単位となる。
The picture includes an I picture composed only of intra-frame codes, a P picture composed of inter-frame codes only in the forward direction, and a B picture composed of bidirectional inter-frame codes before and after. There are three types. These various pictures are composed of a plurality of slices divided into arbitrary areas. The plurality of slices are composed of a plurality of macroblocks arranged in order from left to right or from top to bottom. Here, in the macro block,
Broadly speaking, an intra block, which is an intraframe code,
There are two types, interblocks which are forward or bidirectional interframe codes. The above-mentioned I picture is composed of only intra blocks, but P pictures and B pictures may include not only inter blocks but also intra blocks. And the macroblock is 16
Luminance components (Y1, Y2, Y3, Y4) obtained by further dividing a block of × 16 dots into blocks of 8 × 8 dots;
It is composed of 6 blocks including the color difference components (Cb, Cr) of the 8 × 8 dot block in the area that matches the luminance component. At this time, in the macroblock, a block of 8 × 8 dots is the minimum unit of encoding.

【0032】続いて、オーディオデータに関して説明す
る。図3において、オーディオシーケンスは1個以上の
AAU(Audio Access Unit :オーディオ復号単位) か
ら構成される。1個のAAUは、同期ワード、ビットレ
ート、サンプリング周波数等の情報を含むAAUヘッダ
と、圧縮されたオーディオ符号とから構成される。オー
ディオデータにおいて、1個のAAUが符号化の最小単
位となる。通常、音声符号は、固定ビットレートだが、
AAU単位でビットレートを変えることもできる。その
場合は、AAUヘッダのビットレートの値も変わる。
Next, the audio data will be described. In FIG. 3, an audio sequence is composed of one or more AAUs (Audio Access Units). One AAU is composed of an AAU header containing information such as a sync word, a bit rate, a sampling frequency, and a compressed audio code. In audio data, one AAU is the minimum unit for encoding. Speech code is usually a fixed bit rate,
The bit rate can be changed in units of AAU. In that case, the bit rate value of the AAU header also changes.

【0033】次に、MPEGシステムに準拠したビデオ
符号とオーディオ符号との多重化フォーマットについて
説明する。図4において、ビデオ符号とオーディオ符号
とは多重化されて、1個のシステムストリームを構成す
る。このシステムストリームは、複数のパックから構成
され、このパックはパックヘッダと1個以上のパケット
とから構成される。各パケットにはビデオパケットとオ
ーディオパケットとがある。ビデオパケットはパケット
ヘッダとビデオ符号列とから構成される。このビデオパ
ケット内のビデオ符号列のみを取り出して連続すると、
一連のビデオシーケンスが構成される。また、オーディ
オパケットはパケットヘッダとオーディオ符号列とから
構成される。このオーディオパケット内のオーディオ符
号列のみを取り出して連続すると、一連のオーディオシ
ーケンスが構成される。
Next, a multiplexing format of a video code and an audio code based on the MPEG system will be described. In FIG. 4, the video code and the audio code are multiplexed to form one system stream. This system stream is composed of a plurality of packs, and this pack is composed of a pack header and one or more packets. Each packet has a video packet and an audio packet. A video packet is composed of a packet header and a video code string. If you take out only the video code string in this video packet and continue,
A series of video sequences is constructed. The audio packet is composed of a packet header and an audio code string. When only the audio code string in this audio packet is extracted and continued, a series of audio sequences is formed.

【0034】続いて、両符号を圧縮する圧縮手段につい
て、それぞれ説明する。先ず、MPEGの画像圧縮手段
30の構成を図5に示す。図5において、画像圧縮手段
30は、原画像をMPEGで圧縮可能な信号形式(Y,
Cr,Cb形式)に変換する信号変換部31と、前/後
フレームと現フレームとの画像の動きをブロック(MP
EGでは16画素×16画素)の領域毎に検索する動き
検索部32と、ブロックの画像を空間周波数に変換する
周波数変換部33と、量子化を行う量子化部34と、可
変長符号化を行う可変長符号化部35と、ブロック単位
で画像の動きを補償して新たな参照フレームを生成する
動き補償部36と、周波数変換から元に戻す逆周波数変
換部37と、量子化から元に戻す逆量子化を行う逆量子
化部38とから構成されている。
Next, the compression means for compressing both codes will be described respectively. First, the structure of the MPEG image compression means 30 is shown in FIG. In FIG. 5, the image compression means 30 is a signal format (Y,
A signal conversion unit 31 for converting to a Cr, Cb format, and a block (MP
In the EG, a motion search unit 32 that searches for each region of 16 pixels × 16 pixels), a frequency conversion unit 33 that converts a block image into a spatial frequency, a quantization unit 34 that performs quantization, and a variable length encoding The variable-length coding unit 35 that performs the motion compensation, the motion compensation unit 36 that compensates the motion of the image on a block-by-block basis to generate a new reference frame, the inverse frequency conversion unit 37 that returns from the frequency conversion to the original, and the quantization based on the original It comprises an inverse quantizer 38 for performing inverse quantization.

【0035】上記の構成を持つ画像圧縮手段30は、原
画像を信号変換部31によりY,Cr,Cbデータに変
換して、各ピクチャ種別に応じた圧縮を行う。Iピクチ
ャの場合、Y,Cr,Cbデータをブロックに分割し、
各ブロック毎に周波数変換部33により空間周波数に変
換する。そして、変換したデータを量子化部34により
量子化し、可変長符号化部35により可変長符号化して
圧縮符号を出力する。また、量子化したブロックを逆量
子化部38により逆量子化する。そして、そのブロック
を逆周波数変換部37により逆周波数変換して参照フレ
ームを作成する。
The image compression means 30 having the above configuration converts the original image into Y, Cr, Cb data by the signal conversion section 31 and performs compression according to each picture type. In the case of I picture, Y, Cr, Cb data is divided into blocks,
The frequency conversion unit 33 converts each block into a spatial frequency. Then, the converted data is quantized by the quantizer 34, variable-length coded by the variable-length coding unit 35, and the compressed code is output. Further, the quantized block is inversely quantized by the inverse quantization unit 38. Then, the block is inverse-frequency-converted by the inverse-frequency converter 37 to create a reference frame.

【0036】Pピクチャの場合、Y,Cr,Cbデータ
をブロックに分割し、各ブロック毎に動き検索部32に
より参照フレームとして格納されている前フレームのブ
ロックの中で相関が最も高いブロックを求める。このと
き、ブロックに分割されたY,Cr,Cbデータと相関
が最も高い前フレームのブロックとの差分を、周波数変
換部33により空間周波数に変換する。そして、この変
換した差分を量子化部34により量子化し、可変長符号
化部35により可変長符号化して圧縮符号を出力する。
また、量子化したブロックを逆量子化部38により逆量
子化し、逆周波数変換部37により逆周波数変換して動
き補償部36により動き補償したブロックと加算して参
照フレームを作成する。
In the case of a P picture, Y, Cr, Cb data is divided into blocks, and the block having the highest correlation among the blocks of the previous frame stored as the reference frame by the motion search unit 32 is obtained for each block. . At this time, the frequency converter 33 converts the difference between the Y, Cr, Cb data divided into blocks and the block of the previous frame having the highest correlation into a spatial frequency. Then, the converted difference is quantized by the quantizer 34, variable-length coded by the variable-length coding unit 35, and the compressed code is output.
Further, the quantized block is inversely quantized by the inverse quantization unit 38, the inverse frequency conversion unit 37 performs inverse frequency conversion, and the motion compensation unit 36 adds the motion-compensated block to create a reference frame.

【0037】Bピクチャの場合、Y,Cr,Cbデータ
をブロックに分割して各ブロック毎に動き検索部32に
より参照フレームとして格納されている前/後フレーム
のブロックの中から相関が最も高いブロックを求める。
ブロックに分割したY,Cr,Cbデータと、相関が最
も高い前/後フレームのブロックとの差分を周波数変換
部33により空間周波数に変換する。引き続き、変換し
た差分を量子化部34により量子化し、可変長符号化部
35により可変長符号化して圧縮符号を出力する。Bピ
クチャの場合は、参照フレームは作成する必要がない。
In the case of a B picture, the Y, Cr, Cb data is divided into blocks, and the block having the highest correlation among the blocks of the previous and subsequent frames stored as the reference frame by the motion search unit 32 for each block. Ask for.
The frequency conversion unit 33 converts the difference between the Y, Cr, Cb data divided into blocks and the block of the front / rear frame having the highest correlation into a spatial frequency. Subsequently, the converted difference is quantized by the quantizer 34, variable-length coded by the variable-length coding unit 35, and the compressed code is output. In the case of a B picture, it is not necessary to create a reference frame.

【0038】次に、MPEGに準拠した音声圧縮手段4
0の構成を図6に示す。図6において、音声圧縮手段4
0は、原音から1AUU分の原音データを切り出す原音
切り出し部41と、1AAU単位で周波数帯域写像処理
を行う32の周波数帯域写像部42と、線形量子化及び
符号化を行う量子化符号化部43と、符号化されたデー
タに付加情報を加えて1AAU分の圧縮データを作成す
るフレーム形成部44と、心理聴覚処理を行う心理聴覚
部45とで構成されている。
Next, the MPEG-compliant voice compression means 4
The configuration of 0 is shown in FIG. In FIG. 6, the voice compression means 4
Reference numeral 0 denotes an original sound cutout unit 41 that cuts out original sound data of 1 AUU from an original sound, 32 frequency band mapping units 42 that perform a frequency band mapping process in units of 1 AAU, and a quantization coding unit 43 that performs linear quantization and coding. And a frame forming unit 44 that adds compressed data to the encoded data to create compressed data for 1 AAU, and a psychoacoustic unit 45 that performs a psychoacoustic process.

【0039】上記の構成を持つ音声圧縮手段40は、原
音を原音切り出し部41により1AAU分(MPEGオ
ーディオレイヤ2の場合は1152サンプル)切り出し
て、AAU単位で圧縮する。そして、32の周波数帯域
写像部42は、入力信号をサブバンド分析フィルタによ
り32帯域のサブバンド信号に分解し、各サブバンド信
号に対してスケール・ファクタを計算してダイナミック
レンジをそろえる。引き続き、心理聴覚部45は、入力
信号を高速フーリエ変換し、その結果から心理聴覚のマ
スキングを計算して各サブバンドに対するビット割り当
てを計算する。
The audio compression means 40 having the above-mentioned structure cuts out the original sound by 1 AAU (1152 samples in the case of the MPEG audio layer 2) by the original sound cutting section 41 and compresses it in AAU units. Then, the 32 frequency band mapping unit 42 decomposes the input signal into 32 band sub-band signals by the sub-band analysis filter, calculates the scale factor for each sub-band signal, and aligns the dynamic range. Subsequently, the psycho-acoustic unit 45 performs fast Fourier transform on the input signal, calculates psycho-acoustic masking from the result, and calculates bit allocation for each sub-band.

【0040】また、量子化符号化部43は、決定したビ
ット割り当てに従い、量子化、符号化を行う。さらに、
フレーム形成部44は、量子化、符号化したサブバンド
信号にヘッダや補助情報を追加し、ビットストリームに
整形して圧縮符号として出力する。次に、多重化装置1
とアプリケーション10との動作を、図7及び図8のシ
ーケンスチャートを参照して説明する。尚、本説明では
符号の多重化の順番として、ビデオ符号を先に、それか
らオーディオ符号という順番で多重化を行う例を説明す
るが、この順番に限定されるものではなく、オーディオ
符号、ビデオ符号の順番で多重化しても良い。
The quantization coding unit 43 also performs quantization and coding according to the determined bit allocation. further,
The frame forming unit 44 adds a header and auxiliary information to the quantized and encoded subband signal, shapes the bitstream, and outputs the bitstream as a compression code. Next, the multiplexer 1
The operation of the application 10 and the application 10 will be described with reference to the sequence charts of FIGS. 7 and 8. In the present description, as an order of multiplexing codes, an example in which video codes are first multiplexed in the order of audio codes will be described, but the invention is not limited to this order, and audio codes and video codes are not limited thereto. May be multiplexed in the order of.

【0041】先ず、具体的な動作を説明する前に、多重
化装置1のシステム符号化制御部2からインターフェー
ス制御部5を介し、アプリケーション10へ送信される
多重化処理の正常終了及びエラーの通知について説明す
る。本発明による多重化処理は、テンポラルバッファ9
に格納された符号と、この符号とは異なる種類の符号が
格納されたオーディオバッファ6又はビデオバッファ7
に格納された符号とを交互にフレーム単位で多重化する
ものである。このような多重化において、テンポラルバ
ッファ9だけでなく、オーディオバッファ6又はビデオ
バッファ7に格納されている符号が全て多重化された場
合、システム符号化制御部2は、インターフェース制御
部5を介してアプリケーション10(インターフェース
制御部5を用いない場合は直接アプリケーション10)
に多重化処理の正常終了を通知する。但し、システム符
号化制御部2が第1回目の符号の取り出しを行った場
合、この取り出した符号がテンポラルバッファ9に格納
されたときのみ、例外として正常終了の通知は送信され
る。
First, before explaining the specific operation, the normalization of the multiplexing process and the error notification transmitted from the system coding controller 2 of the multiplexer 1 to the application 10 via the interface controller 5 are notified. Will be described. The multiplexing process according to the present invention is performed by the temporal buffer 9
And the audio buffer 6 or the video buffer 7 in which a code different from this code is stored.
The code stored in the above is alternately multiplexed in frame units. In such multiplexing, when all the codes stored in the audio buffer 6 or the video buffer 7 as well as the temporal buffer 9 are multiplexed, the system encoding control unit 2 causes the interface control unit 5 to execute Application 10 (direct application 10 when the interface control unit 5 is not used)
Notify that the multiplexing process has completed normally. However, when the system coding control unit 2 takes out the code for the first time, only when the taken-out code is stored in the temporal buffer 9, the notification of the normal end is transmitted as an exception.

【0042】次に、エラーの通知について説明する。上
述したように、多重化される両符号はシステム符号化制
御部2により、交互にシステムバッファ8に格納され
る。しかし、多重化が進むと、各種バッファに格納され
ている符号量がなくなり、これ以上多重化を継続するこ
とができない場合が出てくる。そこで、このような場
合、システム符号化制御部2は、不足している種類の符
号を追加するように求める通知をインターフェース制御
部5を介し、アプリケーション10(インターフェース
制御部5を用いない場合は直接アプリケーション10)
に送信する。この通知がエラーの通知である。
Next, the error notification will be described. As described above, both codes to be multiplexed are alternately stored in the system buffer 8 by the system coding control unit 2. However, as the multiplexing progresses, the code amount stored in various buffers runs out, and it may not be possible to continue the multiplexing any more. Therefore, in such a case, the system encoding control unit 2 sends a notification requesting to add a code of the missing type via the interface control unit 5 to the application 10 (directly when the interface control unit 5 is not used. Application 10)
Send to. This notification is an error notification.

【0043】続いて、多重化処理の動作を説明する。先
ず、実際の多重化処理を開始する際に一回目の呼び出し
が行われて、多重化処理の正常終了の通知が送信される
までの動作を示す。外部のアプリケーション10が、多
重化する符号を格納したビデオ符号ファイル11及びオ
ーディオ符号ファイル12の情報(例えばアドレス及び
ファイル名)をインターフェース制御部5に通知する
(S1)。両符号ファイルの情報を受けたインターフェ
ース制御部5は、ビデオ符号ファイル11の情報をシス
テム符号化制御部2に通知する(S2)。ビデオ符号フ
ァイル11の情報を通知されたシステム符号化制御部2
は、ビデオ符号のサイズやビットレート等の情報をビデ
オ符号ファイル11から読み込み、それらの情報をイン
ターフェース制御部5に知らせる(S3)。
Next, the operation of the multiplexing process will be described. First, the operation until the first call is made at the start of the actual multiplexing process and the notification of the normal termination of the multiplexing process is transmitted will be shown. The external application 10 notifies the interface control unit 5 of information (for example, an address and a file name) of the video code file 11 and the audio code file 12 storing the code to be multiplexed (S1). The interface control unit 5, which has received the information of both code files, notifies the system coding control unit 2 of the information of the video code file 11 (S2). System coding control unit 2 notified of information of video code file 11
Reads the information such as the size and bit rate of the video code from the video code file 11 and informs the interface controller 5 of the information (S3).

【0044】そして、インターフェース制御部5は、オ
ーディオ符号ファイル12の情報(例えばアドレス及び
ファイル名)をシステム符号化制御部2に知らせる(S
4)。オーディオ符号ファイル12の情報を通知された
システム符号化制御部2は、オーディオ符号のチャンネ
ル数やビットレート等の情報をオーディオ符号ファイル
12から読み込み、それらの情報をインターフェース制
御部5に知らせる(S5)。
Then, the interface control section 5 informs the system encoding control section 2 of information (for example, address and file name) of the audio code file 12 (S).
4). The system encoding control unit 2, which has been notified of the information of the audio code file 12, reads the information such as the number of channels and the bit rate of the audio code from the audio code file 12 and informs the interface control unit 5 of the information (S5). .

【0045】また、インターフェース制御部5は、通知
された両符号のビットレート等の情報に基づいて、各符
号を格納するバッファのサイズを計算する。計算される
バッファは、オーディオ符号を格納するオーディオバッ
ファ6と、ビデオ符号を格納するビデオバッファ7と、
両符号が多重化されたシステム符号が格納されるシステ
ムバッファ8とである。
Further, the interface control unit 5 calculates the size of the buffer for storing each code, based on the notified information such as the bit rate of both codes. The calculated buffer includes an audio buffer 6 storing an audio code, a video buffer 7 storing a video code,
The system buffer 8 stores a system code in which both codes are multiplexed.

【0046】以下に、オーディオバッファ6とビデオバ
ッファ7とシステムバッファ8とのサイズを計算する式
(1)〜(3)を示す。 オーディオバッファのサイズ:(Ar ×T)/8 (バイト) (1) ビデオバッファのサイズ :(Vr ×T)/8 (バイト) (2) システムバッファのサイズ :((Vr+Ar)×α×T )/8 (バイト) (3) 式中、Arはオーディオ符号のビットレート(ビット/
秒)を示し、AAU 単位で符号のビットレートが変わる場
合、符号の先頭のAAU のビットレートを示す。Vrはビ
デオ符号のビットレート(ビット/秒)を示し、符号が
可変ビットレートの場合、15Mbps 未満の任意の値、
例えば6Mbps とする。αはシステム符号のヘッダ部分
を考慮した補正値を示し、例えば1パック=1パケット
として、パケットサイズが2048バイトであり、その中の
ヘッダサイズが34バイトの場合、2048/(2048-34)=1.1
7 となる。Tは確保したい情報量の時間(秒)を示す。
The formulas (1) to (3) for calculating the sizes of the audio buffer 6, the video buffer 7, and the system buffer 8 are shown below. Audio buffer size: (Ar x T) / 8 (bytes) (1) Video buffer size: (Vr x T) / 8 (bytes) (2) System buffer size: ((Vr + Ar) x α x T) / 8 (byte) (3) In the formula, Ar is the bit rate (bit / bit) of the audio code.
Second) and indicates the bit rate of the AAU at the beginning of the code when the code bit rate changes in AAU units. Vr represents the bit rate (bits / second) of the video code, and if the code has a variable bit rate, any value less than 15 Mbps,
For example, 6 Mbps. α indicates a correction value in consideration of the header part of the system code. For example, if 1 pack = 1 packet and the packet size is 2048 bytes, and the header size is 34 bytes, then 2048 / (2048-34) = 1.1
7 T indicates the time (second) of the information amount to be secured.

【0047】以上の式を具体的に計算すると、例えばT
=0.1, Ar=224000,Vr=6000000,α=1.17 の場合、以
下のサイズになる。 オーディオバッファのサイズ:(224000 ×0.1)/8=2800 (バイト) ビデオバッファのサイズ :(6000000×0.1)/8=75000(バイト) システムバッファのサイズ : {(6000000+224000)×1.17×0.1 }/8=91026(バイト) このようにして、インターフェース制御部5は、この計
算結果に基づいて、オーディオバッファ6とビデオバッ
ファ7とシステムバッファ8とを確保する。そして、イ
ンターフェース制御部5は、これらのバッファのアドレ
スとサイズとをアプリケーション10に通知する(S
7)。
When the above equation is specifically calculated, for example, T
= 0.1, Ar = 224000, Vr = 6000000, α = 1.17, the size is as follows. Audio buffer size: (224000 x 0.1) / 8 = 2800 (bytes) Video buffer size: (6000000 x 0.1) / 8 = 75000 (bytes) System buffer size: {(6000000 + 224000) x 1.17 x 0.1} / 8 = 91026 (bytes) In this way, the interface control unit 5 secures the audio buffer 6, the video buffer 7, and the system buffer 8 based on the calculation result. Then, the interface control unit 5 notifies the application 10 of the addresses and sizes of these buffers (S
7).

【0048】さらに、インターフェース制御部5は、計
算したオーディオバッファ6のサイズ及びビデオバッフ
ァ7のサイズのうち、大きいサイズと同じサイズを持つ
テンポラルバッファ9を確保する。以下に、このテンポ
ラルバッファ9のサイズの計算式を式(4)に示す。テ
ンポラルバッファのサイズ: (Max(Vr,Ar)×T)/8(バイト)(4) ここで、式(4)のMax( a, b)は、aとbの値の
うち大きい方の値を示している。式(4)を計算する
と、テンポラリバッファのサイズ:(6000000×0.1)/8=7
5000(バイト)となる。
Further, the interface control unit 5 secures the temporal buffer 9 having the same size as the larger size of the calculated sizes of the audio buffer 6 and the video buffer 7. The formula for calculating the size of the temporal buffer 9 is shown below in formula (4). Temporal buffer size: (Max (Vr, Ar) × T) / 8 (bytes) (4) Here, Max (a, b) in Expression (4) is the larger value of a and b. Is shown. Calculating formula (4), the size of temporary buffer: (6000000 × 0.1) / 8 = 7
It will be 5000 (bytes).

【0049】上述のようにして、インターフェース制御
部5は、テンポラルバッファ9を確保し、そのアドレス
とサイズをシステム符号化制御部2に知らせる(S
6)。オーディオバッファ6とビデオバッファ7とシス
テムバッファ8とのアドレス及びサイズの通知を受けた
アプリケーション10は、ビデオ符号ファイル11から
ビデオバッファ7のサイズ分の符号を読み出して、ビデ
オバッファ7に格納してビデオバッファ7をインターフ
ェース制御部5に渡す。例えば、ビデオバッファ7の制
御権を渡すことである(S8)。ビデオバッファ7を受
けたインターフェース制御部5は、このビデオバッファ
7をシステム符号化制御部2に渡す(S9)。ビデオバ
ッファ7を受けたシステム符号化制御部2は、ビデオバ
ッファ7からビデオ符号を読み出し、ビデオ符号をテン
ポラルバッファ9にコピーする。そして、システム符号
化制御部2は、ビデオ符号をコピー後に、多重化処理の
正常終了の通知をインターフェース制御部5に送信する
(S10)。通知を受けたインターフェース制御部5
は、アプリケーション10にこの正常終了の通知を送信
する(S11)。
As described above, the interface control section 5 secures the temporal buffer 9 and informs the system encoding control section 2 of its address and size (S
6). The application 10, which has received the notification of the addresses and sizes of the audio buffer 6, the video buffer 7, and the system buffer 8, reads the code corresponding to the size of the video buffer 7 from the video code file 11 and stores it in the video buffer 7 to store the video. The buffer 7 is passed to the interface controller 5. For example, the control right of the video buffer 7 is passed (S8). The interface control unit 5, which has received the video buffer 7, transfers the video buffer 7 to the system encoding control unit 2 (S9). Upon receiving the video buffer 7, the system coding control unit 2 reads the video code from the video buffer 7 and copies the video code to the temporal buffer 9. Then, the system coding control unit 2 transmits a notification of the normal end of the multiplexing process to the interface control unit 5 after copying the video code (S10). Interface controller 5 that received the notification
Sends this notification of normal termination to the application 10 (S11).

【0050】正常終了の通知を受けたアプリケーション
10は、オーディオ符号ファイル12からオーディオバ
ッファ6のサイズ分の符号を読み出してオーディオバッ
ファ6に格納する。オーディオ符号を格納したアプリケ
ーション10は、オーディオバッファ6をインターフェ
ース制御部5に渡す(S12)。オーディオバッファ6
を受けたインターフェース制御部5は、このオーディオ
バッファ6をシステム符号化制御部2に渡す(S1
3)。
The application 10 which has been notified of the normal end reads the code of the size of the audio buffer 6 from the audio code file 12 and stores it in the audio buffer 6. The application 10 storing the audio code passes the audio buffer 6 to the interface control unit 5 (S12). Audio buffer 6
The interface control unit 5 that received the data passes this audio buffer 6 to the system encoding control unit 2 (S1).
3).

【0051】オーディオバッファ6を受けたシステム符
号化制御部2は、テンポラルバッファ9に格納されたビ
デオ符号を読み出す。そして、システム符号化制御部2
は読み出したビデオ符号をビデオパック生成部4にパッ
ク化させ、そのパック化を繰り返して1フレーム分の符
号量となるまでシステムバッファ8に格納する。ビデオ
パックの格納後、システム符号化制御部2は、オーディ
オバッファ6からオーディオ符号を読み出し、オーディ
オパック生成部3にパック化させる。そして、システム
符号化制御部2は、このオーディオパックを1フレーム
分の符号量となるまでシステムバッファ8に格納する。
The system encoding control unit 2, which has received the audio buffer 6, reads the video code stored in the temporal buffer 9. Then, the system encoding control unit 2
Packs the read video code in the video pack generation unit 4, and repeats the packing, and stores it in the system buffer 8 until the code amount for one frame is reached. After storing the video pack, the system coding control unit 2 reads the audio code from the audio buffer 6 and causes the audio pack generation unit 3 to pack the audio code. Then, the system encoding control unit 2 stores this audio pack in the system buffer 8 until the code amount for one frame is reached.

【0052】上述したように、システム符号化制御部2
は交互に両符号の多重化を進めるため、この多重化処理
が進むと、何れかの符号が1フレーム未満の符号量とな
り、多重化が継続できなくなる。両符号が固定ビットレ
ートであるような場合は、同じフレーム数だけの符号を
各バッファから取り出して多重化しているので、最初に
取り出す符号であるビデオ符号の方が先に1フレーム未
満の符号量となる。このため、システム符号化制御部2
は未だ多重化していない余ったオーディオ符号をオーデ
ィオバッファ6から読み出してテンポラルバッファ9に
格納する。オーディオ符号のテンポラルバッファ9への
格納直後に、システム符号化制御部2はビデオ符号不足
のエラーをインターフェース制御部5に送信する(S1
4)。ビデオ符号不足のエラーを受けたインターフェー
ス制御部5は、このエラーの通知をアプリケーション1
0に送信する(S15)。
As described above, the system coding control unit 2
In this case, since both codes are alternately multiplexed, when this multiplexing process progresses, one of the codes has a code amount of less than one frame, and the multiplexing cannot be continued. If both codes have a fixed bit rate, the same number of frames are extracted from each buffer and multiplexed, so the video code that is the first code to be extracted has a code amount of less than one frame first. Becomes Therefore, the system encoding control unit 2
Reads out the remaining audio code that has not been multiplexed yet from the audio buffer 6 and stores it in the temporal buffer 9. Immediately after the audio code is stored in the temporal buffer 9, the system coding control unit 2 transmits an error of insufficient video code to the interface control unit 5 (S1).
4). The interface control unit 5, which has received the video code shortage error, notifies the application 1 of this error.
0 (S15).

【0053】ビデオ符号不足のエラーを受けたアプリケ
ーション10は、システムバッファ8に格納されたシス
テム符号を読出し、システム符号ファイル13に書き込
む。そして、アプリケーション10は、ビデオ符号ファ
イル11からビデオバッファ7のサイズ分のビデオ符号
を読み出し、ビデオバッファ7に格納する。さらに、ア
プリケーション10はビデオバッファ7をインターフェ
ース制御部5に渡す(S16)。ビデオバッファ7を受
けたインターフェース制御部5は、このビデオバッファ
7をシステム符号化制御部2に渡す(S17)。
The application 10 which has received the video code shortage error reads the system code stored in the system buffer 8 and writes it in the system code file 13. Then, the application 10 reads the video code of the size of the video buffer 7 from the video code file 11 and stores it in the video buffer 7. Further, the application 10 passes the video buffer 7 to the interface control unit 5 (S16). The interface control unit 5, which has received the video buffer 7, transfers the video buffer 7 to the system encoding control unit 2 (S17).

【0054】ビデオバッファ7を受けたシステム符号化
制御部2は、そこに格納されているビデオ符号を読み出
す。ここで、前回(S14)の多重化では、ビデオ符号
が1フレームの途中で多重化が終了したので、この続き
を継続するため、システム符号化制御部2は、このフレ
ームの残りのビデオ符号をシステムバッファ8に格納す
る。そして、システム符号化制御部2は、オーディオ符
号をテンポラルバッファ9から読み出し、パック化して
システムバッファ8に格納する。
The system coding control unit 2 which has received the video buffer 7 reads out the video code stored therein. Here, in the previous multiplexing (S14), since the video code has been multiplexed in the middle of one frame, the continuation is continued, and therefore the system encoding control unit 2 sets the remaining video code of this frame. Stored in the system buffer 8. Then, the system encoding control unit 2 reads the audio code from the temporal buffer 9, packs it, and stores it in the system buffer 8.

【0055】ここで、テンポラルバッファ9に格納され
たオーディオ符号が1フレーム分未満とすると、システ
ム符号化制御部2は多重化を継続できなくなる。そこ
で、システム符号化制御部2は、1フレーム分未満のオ
ーディオ符号をシステムバッファ8に格納し、未だ多重
化していない余ったビデオ符号をビデオバッファ7から
読み出してテンポラルバッファ9に格納する。この余っ
たビデオ符号のテンポラルバッファ9への格納後、シス
テム符号化制御部2はオーディオ符号不足のエラーをイ
ンターフェース制御部5に送信する(S18)。オーデ
ィオ符号不足のエラーを受けたインターフェース制御部
5は、このエラーをアプリケーション10に送信する
(S19)。
If the audio code stored in the temporal buffer 9 is less than one frame, the system coding control unit 2 cannot continue the multiplexing. Therefore, the system encoding control unit 2 stores the audio code of less than one frame in the system buffer 8, reads the excess video code that has not been multiplexed yet from the video buffer 7, and stores it in the temporal buffer 9. After storing the surplus video code in the temporal buffer 9, the system coding control unit 2 transmits an audio code shortage error to the interface control unit 5 (S18). The interface controller 5, which has received the audio code shortage error, transmits this error to the application 10 (S19).

【0056】オーディオ符号不足のエラーを受けたアプ
リケーション10は、システムバッファ8に格納された
システム符号をシステム符号ファイル13に書き込む。
また、アプリケーション10は、オーディオ符号ファイ
ル12からオーディオバッファ6のサイズ分のオーディ
オ符号を読み出し、オーディオバッファ6に格納する。
さらに、アプリケーション10はオーディオバッファ6
をインターフェース制御部5に渡す(S20)。オーデ
ィオバッファ6を受けたインターフェース制御部5は、
オーディオバッファ6をシステム符号化制御部2に渡す
(S21)。
The application 10 receiving the audio code shortage error writes the system code stored in the system buffer 8 to the system code file 13.
Further, the application 10 reads the audio code of the size of the audio buffer 6 from the audio code file 12 and stores it in the audio buffer 6.
Furthermore, the application 10 uses the audio buffer 6
Is passed to the interface control unit 5 (S20). The interface control unit 5, which has received the audio buffer 6,
The audio buffer 6 is passed to the system encoding control unit 2 (S21).

【0057】オーディオバッファ6を受けたシステム符
号化制御部2は、オーディオバッファ6からオーディオ
符号を読み出す。ここで、前回(S18)の多重化にお
いて、オーディオ符号の1フレームの途中で多重化が終
了したので、システム符号化制御部2は、このフレーム
の残りのオーディオ符号をシステムバッファ8に格納す
る。そして、システム符号化制御部2は、ビデオ符号を
テンポラルバッファ9から読み出し、パック化してシス
テムバッファ8に格納する。
The system encoding control unit 2 which has received the audio buffer 6 reads the audio code from the audio buffer 6. Here, in the previous multiplexing (S18), since the multiplexing is completed in the middle of one frame of the audio code, the system encoding control unit 2 stores the remaining audio code of this frame in the system buffer 8. Then, the system coding control unit 2 reads the video code from the temporal buffer 9, packs it, and stores it in the system buffer 8.

【0058】今回の多重化のような場合、テンポラルバ
ッファ9に格納されたビデオ符号の方が、オーディオバ
ッファ6のサイズ分の新たな符号が格納されているオー
ディオ符号より先に1フレーム未満となる。このため、
システム符号化制御部2は、1フレーム分未満のビデオ
符号をシステムバッファ8に格納する。そして、システ
ム符号化制御部2は、多重化されずにオーディオバッフ
ァ6に残っているオーディオ符号を取り出して、テンポ
ラルバッファ9に格納する。このようなオーディオ符号
のテンポラルバッファ9への格納後、システム符号化制
御部2はビデオ符号不足のエラーをインターフェース制
御部5に送信する(S22)。エラーを受けたインター
フェース制御部5は、ビデオ符号の不足のエラーをアプ
リケーション10に送信する(S23)。
In the case of the present multiplexing, the video code stored in the temporal buffer 9 becomes less than one frame before the audio code in which a new code of the size of the audio buffer 6 is stored. . For this reason,
The system encoding control unit 2 stores the video code of less than one frame in the system buffer 8. Then, the system encoding control unit 2 extracts the audio code remaining in the audio buffer 6 without being multiplexed and stores it in the temporal buffer 9. After storing such an audio code in the temporal buffer 9, the system coding control unit 2 sends an error of insufficient video code to the interface control unit 5 (S22). The interface control unit 5, which has received the error, transmits an error of insufficient video code to the application 10 (S23).

【0059】以上の動作を多重化処理の終了まで繰り返
す。次に、多重化装置1のシステム符号化制御部2の動
作について、図9〜図11を参照にして説明する。先
ず、システム符号化制御部2は、インターフェース制御
部5から呼び出しが有ると、1回目の呼び出しか否かを
判断する(S100)。
The above operation is repeated until the end of the multiplexing process. Next, the operation of the system coding control unit 2 of the multiplexing device 1 will be described with reference to FIGS. First, when there is a call from the interface control unit 5, the system encoding control unit 2 determines whether or not it is the first call (S100).

【0060】1回目の呼び出しである場合、システム符
号化制御部2は、格納された符号がビデオ符号か否かを
確認する(S119)。システム符号化制御部2は、ビ
デオ符号である場合にはビデオ符号をテンポラルバッフ
ァ9に格納し(S120)、一方、ビデオ符号でない場
合にはオーディオ符号をテンポラルバッファ9に格納し
(S121)、符号をテンポラルバッファ9に格納後に
正常終了の通知をインターフェース制御部5に通知する
(S122)。
If it is the first call, the system coding control unit 2 confirms whether or not the stored code is a video code (S119). The system coding control unit 2 stores the video code in the temporal buffer 9 if it is a video code (S120), and stores the audio code in the temporal buffer 9 if it is not a video code (S121). After being stored in the temporal buffer 9, the interface controller 5 is notified of the normal end (S122).

【0061】1回目の呼び出しではない場合(S10
0)、システム符号化制御部2は、テンポラルバッファ
9又はオーディオバッファ6に格納されているオーディ
オ符号を取り出しにいく(S101)。オーディオ符号
が有る場合(S102)、システム符号化制御部2は1
パケット分のオーディオ符号を取り出せるか否かを確認
する(S103)。1パケット分のオーディオ符号を取
り出せた場合、パケットヘッダと取り出した1パケット
分のオーディオ符号とをシステムバッファ8に格納する
(S104)。尚、1パケット分のオーディオ符号を取
り出せない場合、S101に戻る。システム符号化制御
部2は、格納した符号が1フレーム分以上か否かを確認
する(S105)。尚、1フレーム分のオーディオ符号
が格納できない場合、S101に戻る。1フレーム分以
上格納した場合(S105)、システム符号化制御部2
はビデオ符号を格納するため、テンポラルバッファ9又
はビデオバッファ7からビデオ符号を取り出しにいく
(S106)。
If it is not the first call (S10
0), the system encoding control unit 2 takes out the audio code stored in the temporal buffer 9 or the audio buffer 6 (S101). If there is an audio code (S102), the system coding control unit 2 sets 1
It is confirmed whether the audio code for the packet can be taken out (S103). When the audio code for one packet can be extracted, the packet header and the extracted audio code for one packet are stored in the system buffer 8 (S104). If the audio code for one packet cannot be extracted, the process returns to S101. The system encoding control unit 2 confirms whether the stored code is one frame or more (S105). If the audio code for one frame cannot be stored, the process returns to S101. When one frame or more is stored (S105), the system coding control unit 2
Stores the video code, the video code is taken out from the temporal buffer 9 or the video buffer 7 (S106).

【0062】ビデオ符号が有る場合(S107)、シス
テム符号化制御部2は1パケット分のビデオ符号を取り
出せるか否かを確認する(S108)。尚、1パケット
分のビデオ符号を取り出せない場合、S106に戻る。
1パケット分のビデオ符号を取り出せた場合、パケット
ヘッダと取り出した1パケット分のビデオ符号とをシス
テムバッファ8に格納する(S109)。そして、シス
テム符号化制御部2は、ビデオ符号の次フレームのピク
チャヘッダをシステムバッファ8に格納したか、又は次
のビデオ符号がピクチャヘッダから始まるか否かを確認
する(S110)。ビデオ符号の次フレームのピクチャ
ヘッダをシステムバッファ8に格納し、又は次のビデオ
符号がピクチャヘッダからの始まりを確認した場合は、
システム符号化制御部2はビデオ符号を1フレーム分シ
ステムバッファ8に格納したので、S101に戻る。ビ
デオ符号の次フレームのピクチャヘッダをシステムバッ
ファ8に格納できず、かつ次のビデオ符号がピクチャヘ
ッダからの始まりを確認できなかった場合は、システム
符号化制御部2はS106に戻る。
When there is a video code (S107), the system coding control unit 2 confirms whether or not the video code for one packet can be taken out (S108). If the video code for one packet cannot be extracted, the process returns to S106.
When the video code for one packet can be extracted, the packet header and the extracted video code for one packet are stored in the system buffer 8 (S109). Then, the system encoding control unit 2 confirms whether the picture header of the next frame of the video code is stored in the system buffer 8 or whether the next video code starts from the picture header (S110). If the picture header of the next frame of the video code is stored in the system buffer 8, or if the next video code confirms the start from the picture header,
Since the system coding control unit 2 has stored one frame of the video code in the system buffer 8, the process returns to S101. If the picture header of the next frame of the video code cannot be stored in the system buffer 8 and the start of the next video code from the picture header cannot be confirmed, the system coding control unit 2 returns to S106.

【0063】一方、S102の判断において、オーディ
オ符号が無い場合、システム符号化制御部2はビデオバ
ッファ7にビデオ符号が残っているか否かを確認する
(S111)。ビデオ符号が残っている場合(S11
1)、システム符号化制御部2は残っているビデオ符号
をテンポラルバッファ9に格納する(S113)。さら
に、システム符号化制御部2は、インターフェース制御
部5にオーディオ符号不足のエラーを送信する(S11
4)。
On the other hand, if there is no audio code in the judgment of S102, the system coding control unit 2 confirms whether or not the video code remains in the video buffer 7 (S111). When the video code remains (S11
1), the system encoding control unit 2 stores the remaining video code in the temporal buffer 9 (S113). Furthermore, the system coding control unit 2 transmits an error of audio code shortage to the interface control unit 5 (S11).
4).

【0064】ビデオ符号が無い場合(S111)、シス
テム符号化制御部2はインターフェース制御部5に正常
終了の通知を送信する(S112)。また、S107に
おいてビデオ符号が無い場合、オーディオバッファ6に
おけるオーディオ符号の有無を確認する(S115)。
オーディオ符号が残っている場合、システム符号化制御
部2は残っているオーディオ符号をテンポラルバッファ
9に格納する(S117)。さらに、システム符号化制
御部2は、インターフェース制御部5にビデオ符号不足
のエラーを送信する(S118)。
When there is no video code (S111), the system coding control unit 2 sends a notification of normal termination to the interface control unit 5 (S112). If there is no video code in S107, the presence / absence of an audio code in the audio buffer 6 is confirmed (S115).
If the audio code remains, the system encoding control unit 2 stores the remaining audio code in the temporal buffer 9 (S117). Further, the system encoding control unit 2 transmits an error of insufficient video code to the interface control unit 5 (S118).

【0065】オーディオ符号が残っていない場合、シス
テム符号化制御部2は、インターフェース制御部5に正
常終了の通知を送信する(S116)。このようにシス
テム符号化制御部2において多重化の制御を集約してい
るため、アプリケーションが直接多重化処理に関与する
必要がない。システムバッファを用いたビデオ符号及び
オーディオ符号の格納例を、図12及び図13にそれぞ
れ示す。
If no audio code remains, the system coding control section 2 sends a normal termination notification to the interface control section 5 (S116). Since the system encoding control unit 2 centralizes the multiplexing control in this way, the application does not need to be directly involved in the multiplexing process. Storage examples of the video code and the audio code using the system buffer are shown in FIGS. 12 and 13, respectively.

【0066】図12はシステムバッファを用いたビデオ
符号の格納例である。図12の例では、1パック=1パ
ケットでパケットサイズを固定としている。ビデオ符号
はフレーム単位でピクチャヘッダが挿入されるため、ピ
クチャヘッダの直前の符号まで格納した時に、1フレー
ムの終了とみなす。しかし、パケットサイズが固定なの
で、図12(A)のようにビデオ符号のフレームの先頭
を示すピクチャヘッダが、常にフレームの先頭パケット
の先頭に格納されるとは限らない。この場合には、図1
2(B)及び図12(C)のようにピクチャヘッダを挟
んで前フレームの符号と次フレームの符号とを一緒に配
置してもよい。
FIG. 12 shows an example of storing a video code using a system buffer. In the example of FIG. 12, the packet size is fixed at 1 pack = 1 packet. Since the picture header is inserted in the video code on a frame-by-frame basis, when the code immediately before the picture header is stored, it is regarded as the end of one frame. However, since the packet size is fixed, the picture header indicating the beginning of the frame of the video code as shown in FIG. 12A is not always stored at the beginning of the beginning packet of the frame. In this case,
2B and 12C, the code of the previous frame and the code of the next frame may be arranged together with the picture header interposed.

【0067】図13は、システムバッファを用いたオー
ディオ符号の格納例である。図13の例では、1パック
=1パケットでパケットサイズを固定としている。オー
ディオ符号は、フレーム単位でヘッダが挿入されない
が、AAU 単位ではビットレートが固定されているため、
1フレーム分の時間を計算して、1フレーム分の符号を
格納した時に、1フレームの終了と見なす。しかし、パ
ケットサイズが固定なので、図13(A)のようにオー
ディオ符号において、1フレーム分の符号の先頭が常に
パケットの先頭に格納されるとは限らない。この場合に
は、図13(B)及び図13(C)のように1フレーム
分の符号の先頭を前フレームの符号と共に配置してもよ
い。
FIG. 13 shows an example of storing an audio code using a system buffer. In the example of FIG. 13, the packet size is fixed at 1 pack = 1 packet. The audio code does not have a header inserted in frame units, but the bit rate is fixed in AAU units.
When the time for one frame is calculated and the code for one frame is stored, it is regarded as the end of one frame. However, since the packet size is fixed, the head of the code for one frame is not always stored at the head of the packet in the audio code as shown in FIG. In this case, the head of the code for one frame may be arranged together with the code of the previous frame as shown in FIGS. 13 (B) and 13 (C).

【0068】尚、図12及び図13の例では、1パック
=1パケットとなっているが、1フレーム分の連続して
配置された複数のパケットをまとめて1パックとしても
よい。また、両パケットのサイズを固定にしているが、
次のフレームの符号が格納されないように、1フレーム
の最後の符号を格納するパケットのサイズを変更しても
よい。
In the example of FIGS. 12 and 13, one pack = 1 packet, but a plurality of packets arranged continuously for one frame may be collectively put into one pack. Also, the size of both packets is fixed,
The size of the packet storing the last code of one frame may be changed so that the code of the next frame is not stored.

【0069】ここで、各バッファに格納された両符号の
動作を、図14〜図16を参照して以下に説明する。先
ず、システム符号化制御部2が3フレーム目の途中まで
のビデオ符号と3フレーム目の途中までのオーディオ符
号とを多重化して、ビデオ符号が足らなくなる場合の動
作を、図14に一回目の多重化の例として示す。図14
に示すように、システム符号化制御部2は、1フレーム
目のビデオ符号に始まり、その後に1フレーム目のオー
ディオ符号をパック化して、ビデオ符号とオーディオ符
号とを交互に2フレーム目までパック化する。そして、
システム符号化制御部2は、3フレーム目の途中のビデ
オ符号をシステムバッファ8に格納する。しかし、この
3フレーム目のビデオ符号は、その符号量が1フレーム
未満なので、システム符号化制御部2は多重化処理を継
続できない。このため、システム符号化制御部2は、多
重化されずに余った3フレーム目の途中までのオーディ
オ符号をテンポラルバッファ9に格納する。そして、シ
ステム符号化制御部2は、ビデオ符号不足のエラーをイ
ンターフェース制御部5を介して、アプリケーション1
0に通知する。
The operation of both codes stored in each buffer will be described below with reference to FIGS. 14 to 16. First, FIG. 14 shows the operation when the system coding control unit 2 multiplexes the video code up to the middle of the third frame and the audio code up to the middle of the third frame and runs out of video codes. This is shown as an example of multiplexing. 14
As shown in, the system encoding control unit 2 packs the audio code of the first frame starting with the video code of the first frame, and then packs the video code and the audio code alternately up to the second frame. To do. And
The system encoding control unit 2 stores the video code in the middle of the third frame in the system buffer 8. However, since the code amount of the video code of the third frame is less than one frame, the system coding control unit 2 cannot continue the multiplexing process. Therefore, the system coding control unit 2 stores the audio code up to the middle of the third frame, which is left without being multiplexed, in the temporal buffer 9. Then, the system coding control unit 2 sends an error of video code shortage to the application 1 via the interface control unit 5.
Notify 0.

【0070】次に、一回目の多重化後、システム符号化
制御部2が、3フレーム目の途中から4フレーム目の途
中までのビデオ符号と、前回余った3フレーム目の途中
までのオーディオ符号とを多重化して、オーディオ符号
が足らなくなる場合の動作を図15に示す。図15に示
すように、システム符号化制御部2は、一回目の多重化
から継続して、3フレーム目の途中からのビデオ符号を
ビデオバッファ7から読み出す。そして、システム符号
化制御部2は読み出したビデオ符号を3フレーム目の最
後までパック化して、システムバッファ8に格納する。
続いて、システム符号化制御部2はテンポラルバッファ
9に格納されている3フレーム目の途中までのオーディ
オ符号をシステムバッファ8に格納する。しかし、この
3フレーム目のオーディオ符号は、その符号量が1フレ
ーム未満なので、システム符号化制御部2は多重化処理
を継続できない。そのため、システム符号化制御部2
は、ビデオバッファ7に余っている4フレーム目の途中
までのビデオ符号をテンポラルバッファ9に格納する。
そして、システム符号化制御部2はオーディオ符号不足
のエラーをインターフェース制御部5を介して、アプリ
ケーション10に通知する。
Next, after the first multiplexing, the system coding control unit 2 causes the video code from the middle of the third frame to the middle of the fourth frame and the audio code up to the middle of the remaining third frame last time. FIG. 15 shows an operation in the case where the audio codes become insufficient by multiplexing and. As shown in FIG. 15, the system coding control unit 2 reads out the video code from the middle of the third frame from the video buffer 7 continuously from the first multiplexing. Then, the system coding control unit 2 packs the read video code to the end of the third frame and stores it in the system buffer 8.
Subsequently, the system encoding control unit 2 stores in the system buffer 8 the audio code up to the middle of the third frame stored in the temporal buffer 9. However, since the code amount of the audio code of the third frame is less than one frame, the system coding control unit 2 cannot continue the multiplexing process. Therefore, the system encoding control unit 2
Stores the video code up to the middle of the fourth frame remaining in the video buffer 7 in the temporal buffer 9.
Then, the system coding control unit 2 notifies the application 10 of an audio code shortage error via the interface control unit 5.

【0071】さらに、二回目の多重化後、システム符号
化制御部2が、3フレーム目の途中から5フレーム目の
途中までのオーディオ符号と、前回余った4フレーム目
の途中までのビデオ符号とを多重化して、ビデオ符号が
足らなくなる場合の動作を、図16に示している。図1
6に示すように、システム符号化制御部2は、二回目の
多重化から継続して、3フレーム目の途中からのオーデ
ィオ符号を3フレーム目の最後までパック化して、シス
テムバッファ8に格納する。それから、システム符号化
制御部2は、テンポラルバッファに格納されている4フ
レーム目の途中までのビデオ符号をシステムバッファ8
に格納する。しかし、この4フレーム目のビデオ符号
は、その符号量が1フレーム未満なので、システム符号
化制御部2は多重化処理を継続できない。そのため、シ
ステム符号化制御部2は、多重化されずに余った4フレ
ーム目から5フレーム目の途中までのオーディオ符号を
テンポラルバッファ9に格納する。そして、システム符
号化制御部2はこのオーディオ符号を格納後、ビデオ符
号不足のエラーをインターフェース制御部5を介して、
アプリケーション10に通知する。
Further, after the second multiplexing, the system coding control unit 2 outputs the audio code from the middle of the third frame to the middle of the fifth frame and the video code up to the middle of the remaining fourth frame last time. FIG. 16 shows the operation in the case where the video codes are not enough due to the multiplexing of. Figure 1
As shown in FIG. 6, the system encoding control unit 2 packs the audio code from the middle of the third frame to the end of the third frame and stores it in the system buffer 8 continuously from the second multiplexing. . Then, the system encoding control unit 2 outputs the video code up to the middle of the fourth frame stored in the temporal buffer to the system buffer 8
To store. However, since the code amount of the video code of the fourth frame is less than one frame, the system coding control unit 2 cannot continue the multiplexing process. Therefore, the system encoding control unit 2 stores in the temporal buffer 9 the audio codes from the fourth frame to the middle of the fifth frame that are left without being multiplexed. Then, the system encoding control unit 2 stores this audio code, and then reports an error of insufficient video code via the interface control unit 5.
Notify the application 10.

【0072】以上で、第一の実施の形態についての説明
を終わる。尚、第一の実施の形態では、多重化の際に余
ったビデオ符号又はオーディオ符号をテンポラルバッフ
ァ9に格納した際、システム符号化制御部2はビデオ符
号又はオーディオ符号が不足しているというエラーを通
知する構成としたが、システム符号化制御部2がテンポ
ラルバッファ9に格納した符号のサイズがテンポラルバ
ッファ9の一部、例えば半分以下の場合は、エラーの通
知ではなく、多重化処理の正常終了の通知を送信しても
よい。この場合は、システム符号化制御部2は、テンポ
ラルバッファ9に格納されたビデオ符号又はオーディオ
符号を多重化した後、ビデオバッファ7又はオーディオ
バッファ6に格納された符号を多重化する。
This is the end of the description of the first embodiment. In the first embodiment, when the video code or audio code that is left over during multiplexing is stored in the temporal buffer 9, the system coding control unit 2 generates an error that the video code or audio code is insufficient. However, when the size of the code stored in the temporal buffer 9 by the system encoding control unit 2 is a part of the temporal buffer 9, for example, half or less, it is not an error notification but the normalization of the multiplexing process. A notification of termination may be sent. In this case, the system coding control unit 2 multiplexes the video code or the audio code stored in the temporal buffer 9, and then multiplexes the code stored in the video buffer 7 or the audio buffer 6.

【0073】次に、第二の実施の形態を説明する。尚、
第二の実施の形態における多重化装置14の構成につい
て、第一の実施の形態と同様なものについては説明を省
略し、異なるものについてのみ説明する。第一の実施の
形態と異なっている点は、(1)テンポラルバッファ9
を使用せず、システム符号化制御部2が、余った符号が
格納されているバッファの上書きを禁止させ、(2)上
書きを禁止したバッファに格納されている多重化してい
ない符号を識別するように構成している点である。
Next, a second embodiment will be described. still,
Regarding the configuration of the multiplexing device 14 in the second embodiment, description of the same components as those in the first embodiment will be omitted, and only different components will be described. The difference from the first embodiment is that (1) the temporal buffer 9
The system encoding control unit 2 prohibits overwriting of the buffer in which the excess code is stored, and (2) identifies the non-multiplexed code stored in the buffer in which overwriting is prohibited without using It is the point that is configured.

【0074】バッファの上書きを禁止させる構成とし
て、システム符号化制御部2は、アプリケーション10
にエラーの通知をすると共に、余った符号を格納してい
るバッファの上書きを禁止する通知も行う。この通知に
より、アプリケーション10はエラーで通知されたバッ
ファにのみ符号を格納し、上書きを禁止されたバッファ
には符号を格納(上書き)しないようにする。
In order to prevent the buffer from being overwritten, the system encoding control unit 2 uses the application 10
In addition to notifying the error to, the notification that prohibits overwriting of the buffer storing the excess code is also performed. By this notification, the application 10 stores the code only in the buffer notified by the error, and does not store (overwrite) the code in the buffer in which overwriting is prohibited.

【0075】多重化していない符号を識別する構成とし
て、システム符号化制御部2が多重化した符号と多重化
していない符号との境界のアドレスを記憶し、多重化の
際に記憶したアドレスを基に多重化していない符号を読
み出す構成が考えられる。また、別の構成として、多重
化した符号の領域をヌルデータで埋める方法も考えられ
る。
As a configuration for identifying a code that has not been multiplexed, the system coding control unit 2 stores the address of the boundary between the code that has been multiplexed and the code that has not been multiplexed, and the address stored at the time of multiplexing is used as the basis. A configuration is conceivable in which a code that is not multiplexed in the above is read. As another configuration, a method of filling the area of the multiplexed code with null data can be considered.

【0076】次に、多重化装置14とアプリケーション
10との動作について説明する。上記のように余った符
号が格納されているバッファを上書き禁止するために
は、第一の実施の形態において、図8のS14のように
多重化した際、システム符号化制御部2はビデオ符号不
足のエラーの通知と共に、余った符号を格納しているオ
ーディオバッファ6を上書き禁止とする通知をインター
フェース制御部5を介し、アプリケーション10に送信
する。また、システム符号化制御部2は、既に多重化し
た符号とそうでない符号との境界のバッファのアドレス
を記憶する。
Next, the operation of the multiplexer 14 and the application 10 will be described. In order to prohibit overwriting the buffer in which the excess code is stored as described above, in the first embodiment, when multiplexing as in S14 of FIG. A notification indicating that the audio buffer 6 storing the excess code is prohibited from being overwritten is transmitted to the application 10 via the interface control unit 5 together with the notification of the insufficient error. The system coding control unit 2 also stores the address of the buffer at the boundary between the code that has already been multiplexed and the code that has not been multiplexed.

【0077】通知を受けたアプリケーション10は、エ
ラーにより指示されたビデオ符号のみを読み出し、上書
きが禁止されていないビデオバッファ7に格納する。そ
して、アプリケーション10は、ビデオバッファ7をイ
ンターフェース制御部5を介してシステム符号化制御部
2に渡す。多重化を継続するために、システム符号化制
御部2は、新しく格納されたビデオバッファ7からビデ
オ符号を読み出して多重化する。ビデオ符号を多重化
後、システム符号化制御部2は、記憶したバッファのア
ドレスに基づいて、前回余ったオーディオ符号をオーデ
ィオバッファ6から読み出して多重化する。
Upon receiving the notification, the application 10 reads only the video code instructed by the error and stores it in the video buffer 7 in which overwriting is not prohibited. Then, the application 10 passes the video buffer 7 to the system encoding control unit 2 via the interface control unit 5. In order to continue the multiplexing, the system coding controller 2 reads the video code from the newly stored video buffer 7 and multiplexes it. After the video code is multiplexed, the system coding control unit 2 reads the remaining audio code from the audio buffer 6 and multiplexes it based on the stored buffer address.

【0078】このようにして多重化を継続する。以上
で、第二の実施の形態についての説明を終わる。尚、上
述した第一及び第二の実施の形態においては、予め圧縮
した符号を、システム符号化制御部2が、外部のアプリ
ケーション10に通知することにより、必要な符号を追
加して多重化している。しかし、図5に示した画像圧縮
手段30と図6に示した音声圧縮手段40とを、アプリ
ケーション10又はインターフェース制御部5が操作す
ることにより、各圧縮手段が多重化処理の途中で圧縮さ
れていない符号を圧縮する。そして、各圧縮手段により
符号を圧縮させながら、アプリケーション10又はイン
ターフェース制御部5は、既に圧縮された符号を各圧縮
手段から受け取り、システム符号化制御部2により多重
化してもよい。
In this way, the multiplexing is continued. This is the end of the description of the second embodiment. In the first and second embodiments described above, the system encoding control unit 2 notifies the external application 10 of the code that has been compressed in advance to add and multiplex the necessary code. There is. However, when the application 10 or the interface control unit 5 operates the image compression unit 30 shown in FIG. 5 and the audio compression unit 40 shown in FIG. 6, each compression unit is compressed during the multiplexing process. Compress no code. Then, while compressing the code by each compression means, the application 10 or the interface control section 5 may receive the already compressed code from each compression means and multiplex it by the system encoding control section 2.

【0079】[0079]

【発明の効果】以上説明したように、本発明によれば、
符号の読み書きとメモリの確保と多重化とを階層化した
ので、アプリケーション自体は多重化機能を持つ必要が
ない。このため、アプリケーション自体は、ビデオ符号
やオーディオ符号のビットレートや符号サイズ等の具体
的な情報を知る必要が無い。従って、アプリケーション
はシステム符号化制御部からのエラーに従い、次に渡す
符号の種類だけを考慮すれば多重化を継続することがで
きる。
As described above, according to the present invention,
Since the reading and writing of codes, the securing of memory, and the multiplexing are layered, the application itself does not need to have the multiplexing function. Therefore, the application itself does not need to know specific information such as the bit rate or code size of the video code or audio code. Therefore, according to the error from the system encoding control unit, the application can continue the multiplexing by considering only the type of the code to be passed next.

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

【図1】図1は本発明に係わる本実施形態の多重化装置
の構成を示す図である。
FIG. 1 is a diagram showing a configuration of a multiplexing device according to an embodiment of the present invention.

【図2】図2は本発明に係わる本実施形態のMPEGビ
デオに準拠した符号フォーマットの構成を示す図であ
る。
FIG. 2 is a diagram showing a configuration of a code format based on MPEG video of the present embodiment according to the present invention.

【図3】図3は本発明に係わる本実施形態のMPEGオ
ーディオに準拠した符号フォーマットの構成を示す図で
ある。
FIG. 3 is a diagram showing a configuration of a code format based on MPEG audio according to the present embodiment of the present invention.

【図4】図4は本発明に係わる本実施形態のMPEGシ
ステムに準拠したビデオ符号とオーディオ符号との多重
化フォーマットの構成を示す図である。
FIG. 4 is a diagram showing a configuration of a multiplexing format of a video code and an audio code based on the MPEG system of the present embodiment according to the present invention.

【図5】図5は本発明に係わる本実施形態のMPEG方
式の画像圧縮に用いられる画像圧縮手段の構成を示す図
である。
FIG. 5 is a diagram showing a configuration of an image compression unit used for image compression of the MPEG system of the present embodiment according to the present invention.

【図6】図6は本発明に係わる本実施形態の音声圧縮手
段の構成を示す図である。
FIG. 6 is a diagram showing a configuration of a voice compression unit of the present embodiment according to the present invention.

【図7】図7は本発明に係わる本実施形態の多重化動作
の一連の流れを示すシーケンスチャートである。
FIG. 7 is a sequence chart showing a series of flow of a multiplexing operation of this embodiment according to the present invention.

【図8】図8は本発明に係わる本実施形態の多重化動作
の一連の流れを示すシーケンスチャートである。
FIG. 8 is a sequence chart showing a series of flow of a multiplexing operation according to the present embodiment of the present invention.

【図9】図9は本発明に係わる本実施形態の多重化を実
際に行うシステム符号化制御部の動作を示すフローチャ
ートである。
FIG. 9 is a flowchart showing the operation of the system coding control unit that actually performs the multiplexing of this embodiment according to the present invention.

【図10】図10は本発明に係わる本実施形態の多重化
を実際に行うシステム符号化制御部の動作を示すフロー
チャートである。
FIG. 10 is a flowchart showing the operation of the system coding control unit for actually performing the multiplexing of this embodiment according to the present invention.

【図11】図11は本発明に係わる本実施形態の多重化
を実際に行うシステム符号化制御部の動作を示すフロー
チャートである。
FIG. 11 is a flowchart showing the operation of the system coding control unit that actually performs the multiplexing of this embodiment according to the present invention.

【図12】図12は本発明に係わる本実施形態のシステ
ムバッファを用いたビデオ符号の格納例を示す図であ
る。
FIG. 12 is a diagram showing a storage example of a video code using the system buffer of the present embodiment according to the present invention.

【図13】図13は本発明に係わる本実施形態のシステ
ムバッファを用いたオーディオ符号の格納例を示す図で
ある。
FIG. 13 is a diagram showing an example of storing an audio code using the system buffer of the present embodiment according to the present invention.

【図14】図14は本発明に係わる本実施形態の一回目
の多重化によりビデオ符号が不足する場合の動作を示す
図である。
FIG. 14 is a diagram showing an operation in the case where a video code is insufficient due to the first multiplexing according to the present embodiment of the present invention.

【図15】図15は本発明に係わる本実施形態の二回目
の多重化によりオーディオ符号が不足する場合の動作を
示す図である。
FIG. 15 is a diagram showing an operation when an audio code is insufficient due to the second multiplexing of the present embodiment according to the present invention.

【図16】図16は本発明に係わる本実施形態の三回目
の多重化によりビデオ符号が足らなくなる場合の動作を
示す図である。
FIG. 16 is a diagram showing an operation in the case where the video code becomes insufficient due to the third multiplexing according to the present embodiment of the present invention.

【図17】図17は従来の実施形態のビデオ符号とオー
ディオ符号とを多重化するシステム符号化制御装置の構
成を示す図である。
FIG. 17 is a diagram showing a configuration of a system coding control device for multiplexing a video code and an audio code according to a conventional embodiment.

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

1 多重化装置 2 システム符号化制御部 3 オーディオパック生成部 4 ビデオパック生成部 5 インターフェース制御部 6 オーディオバッファ 7 ビデオバッファ 8 システムバッファ 9 テンポラルバッファ 10 アプリケーション 11 ビデオ符号ファイル 12 オーディオ符号ファイル 13 システム符号ファイル 1 Multiplexer 2 System coding control unit 3 Audio pack generator 4 Video pack generator 5 Interface control section 6 audio buffer 7 video buffer 8 system buffer 9 Temporal buffer 10 applications 11 video code files 12 audio code files 13 System code file

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI H04N 7/24 H04N 7/13 Z (56)参考文献 特開 平6−343158(JP,A) 特開 平8−97795(JP,A) 特開 平9−139720(JP,A) 特開 平10−199140(JP,A) 特開 平10−199141(JP,A) 特開 平10−234010(JP,A) 特開 平10−320914(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04J 3/04 G11B 20/10 301 H04L 12/56 H04N 5/92 H04N 7/24 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 identification code FI H04N 7/24 H04N 7/13 Z (56) Reference JP-A-6-343158 (JP, A) JP-A-8-97795 ( JP, A) JP 9-139720 (JP, A) JP 10-199140 (JP, A) JP 10-199141 (JP, A) JP 10-234010 (JP, A) JP Flat 10-320914 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) H04J 3/04 G11B 20/10 301 H04L 12/56 H04N 5/92 H04N 7/24

Claims (12)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 二種類以上の符号を多重化する多重化装
置であって、 符号の種類ごとに設けられた複数の記憶手段と、 前記複数の記憶手段から種類ごとに符号を読み出して多
重化し、一つの種類の符号が不足した場合、この不足し
ている種類の符号を対応する前記記憶手段に格納させ、
不足していた符号が前記記憶手段に格納されると、格納
された符号を読み出して多重化を継続する多重化手段と
を有することを特徴とする多重化装置。
1. A multiplexing device for multiplexing two or more types of codes, comprising: a plurality of storage means provided for each type of code; and reading and multiplexing the codes for each type from the plurality of storage means. , When one type of code is insufficient, the missing type of code is stored in the corresponding storage means,
A multiplexing device comprising: a multiplexing unit that reads out the stored code and continues multiplexing when the insufficient code is stored in the storage unit.
【請求項2】 二種類以上の符号を多重化する多重化装
置であって、 符号の種類ごとに設けられ、所定の順番で各種類の符号
が格納される複数の記憶手段と、 前記複数の記憶手段から種類ごとに符号を読み出して多
重化し、一つの種類の符号が不足した場合、前記所定の
順番をかえて不足している種類の符号を対応する前記記
憶手段に格納させ、不足していた符号が前記記憶手段に
格納されると、格納された符号を読み出して多重化を継
続する多重化手段とを有することを特徴とする多重化装
置。
2. A multiplexing device for multiplexing two or more types of codes, comprising a plurality of storage means provided for each type of code and storing codes of each type in a predetermined order; When the codes are read from the storage means for each kind and multiplexed, and when one kind of codes is insufficient, the predetermined order is changed to store the missing kinds of codes in the corresponding storage means, and the shortage is caused. Multiplexing means for reading the stored code and continuing the multiplexing when the stored code is stored in the storage means.
【請求項3】 多重化される符号が一時的に格納される
第2の記憶手段を有し、 前記多重化手段は、一つの種類の符号が不足した場合、
多重化されていない他の種類の符号を前記記憶手段から
読み出して前記第2の記憶手段に格納し、前記不足して
いた種類の符号の多重化が終了すると、前記第2の記憶
手段に格納されている符号を読み出して符号を多重化す
る手段を更に有することを特徴とする請求項1又は請求
項2に記載の多重化装置。
3. A second storage means for temporarily storing the code to be multiplexed, wherein the multiplexing means is provided when one type of code is insufficient.
Another type of code that is not multiplexed is read from the storage means and stored in the second storage means, and stored in the second storage means when multiplexing of the insufficient type of code is completed. The multiplexing device according to claim 1 or 2, further comprising means for reading out the stored code and multiplexing the code.
【請求項4】 多重化される符号が格納されているファ
イルより符号を読み出して前記記憶手段に格納し、前記
多重化手段から指示を受けると指示された種類の符号を
読み出して前記記憶手段に格納する読出し手段を更に有
することを特徴とする請求項1から請求項3のいずれか
に記載の多重化装置。
4. A code is read from a file in which codes to be multiplexed are stored and stored in the storage means, and when a command is received from the multiplexing means, a code of the type specified is read and stored in the storage means. 4. The multiplexing device according to claim 1, further comprising read means for storing the data.
【請求項5】 前記読出し手段は、多重化される符号を
ファイルより所定の順番で読み出すように構成され、前
記多重化手段から指示を受けた場合には前記所定の順番
を変更して指示された種類の符号を読み出すように構成
されていることを特徴とする請求項4に記載の多重化装
置。
5. The reading means is configured to read the codes to be multiplexed from a file in a predetermined order, and when receiving an instruction from the multiplexing means, the predetermined order is changed and instructed. The multiplexing device according to claim 4, wherein the multiplexing device is configured to read different types of codes.
【請求項6】 多重化される符号の情報に基づいて、前
記記憶手段又は/及び前記第2の記憶手段の記憶サイズ
を計算し、前記記憶手段又は/及び前記第2の記憶手段
を確保する手段を更に有することを特徴とする請求項1
から請求項5のいずれかに記載の多重化装置。
6. A storage size of the storage means or / and the second storage means is calculated based on information of codes to be multiplexed, and the storage means or / and the second storage means is secured. 2. The method according to claim 1, further comprising means.
6. The multiplexing device according to claim 5.
【請求項7】 前記多重化手段は、符号を前記第2の記
憶手段に格納する際、格納する符号量が前記第2の記憶
手段の記憶サイズよりも所定以下の場合には、前記読出
し手段に順番を変更する指示をださないように構成され
ていることを特徴とする請求項4に記載の多重化装置。
7. The reading means when the code is stored in the second storage means when the code amount to be stored is a predetermined value or less than the storage size of the second storage means. The multiplexing device according to claim 4, wherein the multiplexing device is configured not to issue an instruction to change the order.
【請求項8】 前記多重化手段は、一つの種類の符号が
不足した場合、多重化されていない符号が格納されてい
る前記記憶手段を上書き格納をさせないように構成され
ていることを特徴とする請求項1から請求項7のいずれ
かに記載の多重化装置。
8. The multiplexing means is configured such that, when one type of code is insufficient, the storage means that stores a code that is not multiplexed is not overwritten. The multiplexing device according to any one of claims 1 to 7.
【請求項9】 二種類以上の符号を多重化する多重化方
法であって、 符号の種類ごとに記憶領域を設定するステップと、 前記記憶領域から符号を読み出して多重化し、一つの種
類の符号が不足した場合、不足した種類の符号を対応す
る記憶領域に格納させるステップと、 不足していた符号が前記記憶領域に格納されると、不足
していた符号を読み出して多重化を継続するステップと
を有することを特徴とする多重化方法。
9. A multiplexing method for multiplexing two or more types of codes, the method comprising: setting a storage area for each type of code; reading a code from the storage area and multiplexing; When the shortage of codes is stored in the corresponding storage area, when the shortage of codes is stored in the corresponding storage area, the step of reading the shortage of codes and continuing the multiplexing And a multiplexing method comprising:
【請求項10】 二種類以上の符号を多重化する多重化
装置であって、 符号の種類ごとに設けられた複数の第1の記憶手段と、 多重化される符号が一時的に格納される第2の記憶手段
と、 前記複数の第1の記憶手段から種類ごとに符号を読み出
して多重化し、一つの種類の符号が不足した場合、多重
化されていない他の種類の符号を前記第1の記憶手段か
ら読み出して前記第2の記憶手段に格納し、前記不足し
ている種類の符号を対応する第1の記憶手段に格納さ
せ、前記第1の記憶手段に格納させた符号を読み出して
多重化後、前記第2の記憶手段に格納した符号を読み出
して多重化する多重化手段とを有することを特徴とする
多重化装置。
10. A multiplexing device for multiplexing two or more types of codes, wherein a plurality of first storage means provided for each type of code and a code to be multiplexed are temporarily stored. Codes are read from the second storage means and the plurality of first storage means for each type and multiplexed, and when one type of code is insufficient, another type of code that is not multiplexed is used as the first type. Read out from the storage means and store in the second storage means, store the missing type code in the corresponding first storage means, and read the code stored in the first storage means. And a multiplexing unit for reading and multiplexing the code stored in the second storage unit after the multiplexing.
【請求項11】 二種類以上の符号を多重化する多重化
装置であって、 符号の種類ごとに設けられた複数の記憶手段と、 通知された種類の符号を所定のファイルより読み出し、
通知された種類に対応する記憶手段に格納する読出し手
段と、 前記複数の記憶手段から種類ごとに符号を読み出して多
重化し、一つの種類の符号が不足した場合、この不足し
ている符号の種類を前記読出し手段に通知し、前記通知
により前記読出し手段が通知された種類の符号を対応す
る記憶手段に格納後、格納された符号を読み出して多重
化する多重化手段とを有することを特徴とする多重化装
置。
11. A multiplexing device for multiplexing two or more types of codes, comprising: a plurality of storage means provided for each type of code; and reading out the code of the notified type from a predetermined file,
A read means for storing in the storage means corresponding to the notified type, and a code for each type is read from the plurality of storage means and multiplexed, and when one type of code is insufficient, the type of the insufficient code To the reading means, store the code of the type notified by the reading means by the notification in the corresponding storage means, and then read the stored code and multiplex it. Multiplexer.
【請求項12】 二種類以上の符号を多重化する多重化
装置であって、 符号の種類ごとに設けられた複数の第1の記憶手段と、 多重化される符号が一時的に格納される第2の記憶手段
と、 通知された種類の符号を所定のファイルより読み出し、
通知された種類に対応する第1の記憶手段に格納する読
出し手段と、 前記複数の第1の記憶手段から種類ごとに符号を読み出
して多重化し、一つの種類の符号が不足した場合、前記
第1の記憶手段から多重化されていない他の種類の符号
を読み出して前記第2の記憶手段に格納し、前記不足し
ている符号の種類を前記読出し手段に通知し、前記通知
により前記読出し手段が通知された種類に対応する第1
の記憶手段に符号を格納後に前記第1の記憶手段に格納
された符号を読み出して多重化し、この多重化後に前記
第2の記憶手段に格納した符号を読み出して多重化する
多重化手段とを有することを特徴とする多重化装置。
12. A multiplexing device for multiplexing two or more types of codes, wherein a plurality of first storage means provided for each type of code and a code to be multiplexed are temporarily stored. Second storage means, reading the code of the notified type from a predetermined file,
Read means for storing in the first storage means corresponding to the notified type; and code for each type is read out from the plurality of first storage means and multiplexed, and when one type of code is insufficient, Another type of code that is not multiplexed is read from one storage unit and stored in the second storage unit, the type of the missing code is notified to the reading unit, and the reading unit is notified by the notification. The first corresponding to the notified type
Storing the code in the storage means, reading the code stored in the first storage means for multiplexing, and reading the code stored in the second storage means for multiplexing and multiplexing the multiplexed code. A multiplexing device having.
JP28836199A 1999-10-08 1999-10-08 Multiplexing device and multiplexing method Expired - Fee Related JP3496714B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28836199A JP3496714B2 (en) 1999-10-08 1999-10-08 Multiplexing device and multiplexing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28836199A JP3496714B2 (en) 1999-10-08 1999-10-08 Multiplexing device and multiplexing method

Publications (2)

Publication Number Publication Date
JP2001111513A JP2001111513A (en) 2001-04-20
JP3496714B2 true JP3496714B2 (en) 2004-02-16

Family

ID=17729217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28836199A Expired - Fee Related JP3496714B2 (en) 1999-10-08 1999-10-08 Multiplexing device and multiplexing method

Country Status (1)

Country Link
JP (1) JP3496714B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012169767A (en) * 2011-02-10 2012-09-06 Jvc Kenwood Corp Recording apparatus, reproduction apparatus, recording method, and reproduction method

Also Published As

Publication number Publication date
JP2001111513A (en) 2001-04-20

Similar Documents

Publication Publication Date Title
JP3364281B2 (en) Time-division video and audio signal synchronization
US8244108B2 (en) After-recording apparatus
US8131135B2 (en) MPEG picture data recording apparatus, MPEG picture data recording method, MPEG picture data recording medium, MPEG picture data generating apparatus, MPEG picture data reproducing apparatus, and MPEG picture data reproducing method
CN101035302B (en) Apparatus for reproduction of information
JPH0787444A (en) Method for recording compression coded data
JP3578069B2 (en) Long-term image / sound compression apparatus and method
JP3496714B2 (en) Multiplexing device and multiplexing method
JP3748234B2 (en) MPEG data recording method
JP2004140630A (en) Image compression method and apparatus for performing frame thinning processing
JP3671842B2 (en) Code compression / data conversion apparatus and code compression / data conversion method
JP3709835B2 (en) Code amount conversion method and apparatus
JP2005072995A (en) Rate converter
JP3748243B2 (en) MPEG data recording device
JP4148200B2 (en) MPEG image data recording apparatus and MPEG image data recording method
JP3748242B2 (en) MPEG data recording method
JP3748240B2 (en) MPEG data recording method
JP3748241B2 (en) MPEG data recording method
JP3748245B2 (en) MPEG data recording device
JP3748244B2 (en) MPEG data recording device
JP4192861B2 (en) MPEG image data recording apparatus and MPEG image data recording method
JP2007325304A (en) Mpeg data recording and reproducing method
JP2004297829A (en) Mpeg data reproduction equipment
JP2008005520A (en) Mpeg data recording and reproducing method
JP2003111036A (en) Video and audio compression method, video and audio compression apparatus, and supervisory video recording apparatus
JP2007336574A (en) Mpeg data recording and reproducing apparatus

Legal Events

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

Free format text: PAYMENT UNTIL: 20071128

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081128

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081128

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091128

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091128

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101128

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

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

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 8

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121128

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121128

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121128

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121128

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20131128

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees