JPH1196680A - Circuit and method for synchronous control - Google Patents

Circuit and method for synchronous control

Info

Publication number
JPH1196680A
JPH1196680A JP9253000A JP25300097A JPH1196680A JP H1196680 A JPH1196680 A JP H1196680A JP 9253000 A JP9253000 A JP 9253000A JP 25300097 A JP25300097 A JP 25300097A JP H1196680 A JPH1196680 A JP H1196680A
Authority
JP
Japan
Prior art keywords
data
compressed
decoding
audio
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9253000A
Other languages
Japanese (ja)
Inventor
Toru Oguchi
徹 小口
Toshiyuki Oba
敏幸 大庭
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP9253000A priority Critical patent/JPH1196680A/en
Publication of JPH1196680A publication Critical patent/JPH1196680A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a synchronous control circuit capable of always correcting synchronism shift between decoded data caused by asynchronously reading and decoding a plurality of compressed data from a buffer memory. SOLUTION: This synchronous control circuit is provided with an audio buffer 30 for storing demultiplexed audio data, a buffer control section 50 for controlling the reading timing or the like of the audio buffer 30, an interruption control section 60 for detecting the deviation of the remaining storage amount of the audio buffer 30 from a range where a video reproducing output is synchronized with an audio reproducing output and informing a CPU 10 of it, and a sampling clock correction section 70 for correcting the decoding sampling clock of the audio data based on the control of the CPU 10.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ビデオデータ及び
オーディオデータが符号化圧縮されてマルチプレックス
されたデータをデマルチプレクス(分離)し、ビデオデ
ータ及びオーディオデータを復号して、ビデオデータ及
びオーディオデータを同期再生する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for demultiplexing (multiplexing) multiplexed data obtained by encoding and compressing video data and audio data, decoding video data and audio data, and decoding video data and audio data. The present invention relates to a technique for synchronously reproducing data.

【0002】[0002]

【従来の技術】従来より、可変長圧縮されたビデオデー
タ(以下、圧縮ビデオデータ)と、固定長圧縮されたオ
ーディオデータ(以下、圧縮オーディオデータ)とを含
む多重化データをデータ復号手段を用いて復号、再生す
るデータ再生システムが知られている(特開平6−76
471等参照)。このようなデータ再生システムにおい
ては、圧縮前のビデオデータとオーディオデータとが相
互に関連した情報である場合、例えば同一場所を収録し
て得たビデオデータとオーディオデータである場合、こ
れらのデータに基づいて復号、再生されるデータを同期
させる必要がある。このため、従来、圧縮ビデオデータ
と圧縮オーディオデータの復号に要する処理時間の差な
どを補償して同期をとるために、データ復号手段で復号
されたデータの一方、例えばオーディオデータをバッフ
ァメモリに蓄積しておき、このバッファメモリから読み
出すタイミングを、ビデオデータの復号に要する処理時
間に併せて調整することが行われている。
2. Description of the Related Art Hitherto, multiplexed data including variable length compressed video data (hereinafter, compressed video data) and fixed length compressed audio data (hereinafter, compressed audio data) has been used by using data decoding means. A data reproducing system for decoding and reproducing data is known (Japanese Patent Laid-Open No. 6-76).
471 etc.). In such a data reproduction system, when video data and audio data before compression are mutually related information, for example, when video data and audio data obtained by recording the same location, It is necessary to synchronize data to be decoded and reproduced based on the data. For this reason, conventionally, in order to compensate for a difference in processing time required for decoding compressed video data and compressed audio data, and to synchronize, one of the data decoded by the data decoding means, for example, audio data is stored in a buffer memory. In addition, the timing of reading from the buffer memory is adjusted according to the processing time required for decoding video data.

【0003】[0003]

【発明が解決しようとする課題】上述のような従来のデ
ータ間の同期手法では、圧縮ビデオデータや圧縮オーデ
ィオデータの復号に要する処理時間が固定的である場合
は有効な手法となり得る。また、一定の範囲内ならば、
復号後の一方のデータを他方のデータに同期させて出力
するように調整することも可能である。しかし、圧縮ビ
デオデータや圧縮オーディオデータの復号に要する時
間、すなわち復号速度は、データの種類、あるいはデー
タ量によって変化し、また、圧縮レートも必ずしも一定
とは限らない。そのため、従来の同期手法では、オーデ
ィオデータをバッファメモリから読み出すタイミングを
調整してもビデオデータと正しく同期させることができ
なくなる場合があった。このような問題は、ビデオデー
タとオーディオデータとの関係のみならず、n(nは
1,2,・・・)種の圧縮データをバッファメモリに一
時的に蓄積しておき、各圧縮データを該当するバッファ
メモリから読み出して非同期で復号し、n種の復号デー
タを同期出力するデータ復号手段を具備したシステムに
於いて共通に生じる。
The above-described conventional data synchronization method can be an effective method when the processing time required for decoding compressed video data and compressed audio data is fixed. Also, if within a certain range,
It is also possible to make an adjustment so that one data after decoding is output in synchronization with the other data. However, the time required for decoding the compressed video data and compressed audio data, that is, the decoding speed varies depending on the type of data or the amount of data, and the compression rate is not always constant. Therefore, in the conventional synchronization method, it may not be possible to correctly synchronize with the video data even if the timing of reading the audio data from the buffer memory is adjusted. Such a problem is caused not only by the relationship between the video data and the audio data, but also by temporarily storing n (n is 1, 2,...) Kinds of compressed data in a buffer memory and storing each compressed data. This occurs commonly in systems provided with data decoding means for reading out from the corresponding buffer memory, asynchronously decoding the data, and synchronously outputting n types of decoded data.

【0004】そこで、本発明は、バッファメモリから非
同期で読み出して復号することに起因する復号データ間
の同期ずれを常に正しく補正することができる、同期制
御回路を提供することを課題とする。本発明の他の課題
は、圧縮ビデオデータと圧縮オーディオデータとを同期
して復号するための改良された同期制御方法を提供する
ことにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a synchronization control circuit that can always correctly correct a synchronization shift between decoded data due to asynchronous reading and decoding from a buffer memory. Another object of the present invention is to provide an improved synchronization control method for synchronously decoding compressed video data and compressed audio data.

【0005】[0005]

【課題を解決するための手段】上記課題を解決する本発
明の同期制御回路は、n(nは1,2,・・・)種の圧
縮データをバッファメモリに一時的に蓄積するととも
に、各圧縮データを該当するバッファメモリから読み出
して非同期で復号し、n種の復号データを同期出力する
データ復号手段を具備したシステムに於いて適用される
回路であって、前記n種の圧縮データの各々の蓄積残量
を監視し、いずれかの圧縮データの蓄積残量が所定の同
期可能範囲を逸脱する場合に、当該圧縮データに基づく
前記データ復号手段の復号速度を動的に変更させて前記
蓄積残量が前記同期可能範囲に向かうように制御する制
御手段を具備することを特徴とする。
A synchronization control circuit according to the present invention for solving the above-mentioned problems is to temporarily store n (n is 1, 2,...) Kinds of compressed data in a buffer memory, A circuit applied in a system having data decoding means for reading out compressed data from a corresponding buffer memory and asynchronously decoding the same, and synchronously outputting n kinds of decoded data, wherein each of the n kinds of compressed data is Monitoring the remaining storage amount of any of the compressed data, and when the storage remaining amount of any of the compressed data deviates from a predetermined synchronizable range, dynamically changes the decoding speed of the data decoding means based on the compressed data to thereby store the compressed data. It is characterized by comprising control means for controlling the remaining amount to go to the synchronizable range.

【0006】前記n種の圧縮データが、圧縮ビデオデー
タと圧縮オーディオデータとを含むとき、前記制御手段
は、前記圧縮ビデオデータ及び圧縮オーディオデータの
復号データを前記データ復号手段から同期出力させるよ
うに構成される。
When the n types of compressed data include compressed video data and compressed audio data, the control means causes the decoded data of the compressed video data and the compressed audio data to be synchronously output from the data decoding means. Be composed.

【0007】なお、前記制御手段は、好ましくは、所定
の割込手段を通じて前記データ復号手段の復号速度を変
化させるように構成する。この割込手段は、例えば、前
記バッファメモリへの書き込み回数及び読み出し回数を
圧縮データ毎に計数する計数手段と、この計数手段によ
る計数結果に基づいて圧縮データ毎の前記蓄積残量を算
出する蓄積量演算手段と、前記同期可能範囲の上限値及
び下限値を記憶するためのレジスタと、個々の圧縮デー
タの蓄積残量が前記レジスタ内の上限値または下限値に
達したときに、前記データ復号手段へ処理の割り込みを
行うための割込信号を当該蓄積残量の状態を表す信号と
共に出力する出力回路と、を含んで構成される。
Preferably, the control means is configured to change a decoding speed of the data decoding means through a predetermined interrupt means. The interrupting means includes, for example, a counting means for counting the number of times of writing and reading to and from the buffer memory for each compressed data, and an accumulation means for calculating the remaining amount of storage for each compressed data based on the counting result by the counting means. An amount calculating means, a register for storing an upper limit value and a lower limit value of the synchronizable range, and when the remaining amount of the individual compressed data reaches the upper limit value or the lower limit value in the register, the data decoding is performed. And an output circuit for outputting an interrupt signal for interrupting processing to the means together with a signal indicating the state of the remaining storage amount.

【0008】また、上記他の課題を解決する同期制御方
法は、圧縮されてマルチプレクスされた多重化データを
デマルチプレクスして圧縮ビデオデータと圧縮オーディ
オデータとに分離し、それぞれ所定のバッファメモリに
一時的に蓄積した後に読み出して復号するシステムに於
いて、前記圧縮オーディオデータの蓄積残量を監視し、
この蓄積残量が所定の量よりも多い場合はオーディオデ
ータの復号速度を速め、前記蓄積残量が所定の量よりも
少ない場合はオーディオデータの復号速度を遅めて、復
号後のビデオデータとオーディオデータの出力タイミン
グを同期させることを特徴とする。
A synchronous control method for solving the above-mentioned other problem is to demultiplex the compressed and multiplexed multiplexed data into decompressed video data and compressed audio data, each of which has a predetermined buffer memory. In a system for temporarily reading and decoding after temporarily storing the compressed audio data, the remaining storage amount of the compressed audio data is monitored,
When the remaining storage amount is larger than a predetermined amount, the decoding speed of the audio data is increased. When the storage remaining amount is smaller than the predetermined amount, the decoding speed of the audio data is reduced, and the decoded video data and The output timing of audio data is synchronized.

【0009】[0009]

【発明の実施の形態】以下、図面を参照して、本発明の
実施の形態を詳細に説明する。図1は、本発明の同期制
御回路が適用される圧縮多重化データ復号化再生システ
ムの構成例をブロック図で示したものである。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of a compression-multiplexed data decoding / reproduction system to which a synchronization control circuit according to the present invention is applied.

【0010】この圧縮多重化データ復号化再生システム
において、圧縮ビデオデータ及び圧縮オーディオデータ
がマルチプレクスされた多重化データは、デマルチプレ
クサ20に入力される。デマルチプレクサ20は、多重
化データを圧縮ビデオデータ及び圧縮オーディオデータ
に分離し、それぞれビデオバッファ40及びオーディオ
バッファ30に蓄積する。ビデオバッファ40に蓄積さ
れた圧縮ビデオデータはビデオデコーダ90で再生さ
れ、ビデオ再生データとして外部出力される。また、オ
ーディオバッファ30に蓄積された圧縮オーディオデー
タは、オーディオデコーダ80で再生され、オーディオ
再生データとして外部出力される。
In this compression multiplexed data decoding / reproducing system, the multiplexed data obtained by multiplexing the compressed video data and the compressed audio data is input to a demultiplexer 20. The demultiplexer 20 separates the multiplexed data into compressed video data and compressed audio data, and stores them in the video buffer 40 and the audio buffer 30, respectively. The compressed video data stored in the video buffer 40 is reproduced by the video decoder 90, and is externally output as video reproduction data. The compressed audio data stored in the audio buffer 30 is reproduced by the audio decoder 80, and is externally output as audio reproduction data.

【0011】なお、ビデオデコーダ90及びオーディオ
デコーダ80は、CPU10から直接、あるいはサンプ
リングクロック補正部70を通じて供給されるサンプリ
ングクロックによって処理タイミングが規制されてお
り、また、デマルチプレクサ20、ビデオバッファ40
及びオーディオバッファ30は、それぞれバッファ制御
部50により制御されるようになっている。バッファ制
御部50は、CPU10によって制御され、且つ割込制
御部70に対して所定の割り込みを指示できるようにな
っている。つまり、本発明の同期制御回路、特に制御手
段は、CPU10、バッファ制御部50、割込制御部6
0、サンプリングクロック補正部70によって構成され
る。この制御手段による制御の内容は、下記のとおりで
ある。
The processing timing of the video decoder 90 and the audio decoder 80 is regulated by a sampling clock supplied directly from the CPU 10 or through a sampling clock correction unit 70. The demultiplexer 20 and the video buffer 40
The audio buffer 30 is controlled by the buffer control unit 50. The buffer control unit 50 is controlled by the CPU 10 and can instruct a predetermined interrupt to the interrupt control unit 70. That is, the synchronous control circuit of the present invention, in particular, the control means includes the CPU 10, the buffer control unit 50, the interrupt control unit 6
0, constituted by a sampling clock correction unit 70. The contents of control by this control means are as follows.

【0012】ビデオデコーダ90及びオーディオデコー
ダ80からのデータ転送要求がバッファ制御部50に送
られると、バッファ制御部50は、ビデオバッファ40
からビデオデコーダ90に、オーディオバッファ30か
らオーディオデコーダ80に、それぞれのデータを転送
させる。ビデオデコーダ90は、転送された符号化ビデ
オデータを復号及びD/A変換し、ビデオ再生データを
出力する。オーディオデコーダ80は、転送された符号
化オーディオデータを復号及びD/A変換し、オーディ
オ再生データを出力する。
When data transfer requests from the video decoder 90 and the audio decoder 80 are sent to the buffer control unit 50, the buffer control unit 50
To the video decoder 90, and from the audio buffer 30 to the audio decoder 80. The video decoder 90 decodes and D / A converts the transferred encoded video data and outputs video reproduction data. The audio decoder 80 decodes and D / A converts the transferred encoded audio data, and outputs audio reproduction data.

【0013】バッファ制御部50は、オーディオバッフ
ァ30における蓄積残量を常時監視しており、その蓄積
残量がビデオ再生データとオーディオ再生データとが同
期する上限値に達したことを検出すると、割込制御部6
0を介してCPU10に対して割り込みを行う。CPU
10は、その割り込みをオーディオデータの復号の「遅
れ」であるとみなし、割込処理としてサンプリングクロ
ック補正部70を制御し、サンプリングクロック速度を
速めることによってオーディオデータの復号化レートを
適正化する。
The buffer controller 50 constantly monitors the remaining capacity of the audio buffer 30. When it detects that the remaining capacity of the audio buffer 30 has reached the upper limit for synchronizing the video reproduction data and the audio reproduction data, the buffer control unit 50 executes the splitting. Control unit 6
An interrupt is issued to the CPU 10 via the "0". CPU
The control unit 10 regards the interruption as a “delay” in decoding the audio data, controls the sampling clock correction unit 70 as interrupt processing, and optimizes the decoding rate of the audio data by increasing the sampling clock speed.

【0014】一方、逆に、オーディオバッファ30の蓄
積残量がビデオ再生データとオーディオ再生データとが
同期する下限値に達したことを検出されたときも、バッ
ファ制御部50は、割込制御部60を介してCPU10
に対して割り込みをかける。CPU10は、その割り込
みをオーディオデータの復号の「進み」であるとみな
し、割り込み処理としてサンプリングクロック補正部7
0を制御し、サンプリングクロック速度を遅くすること
によってオーディオデータの復号化レートを適正化す
る。上限値及び下限値については後述する。
On the other hand, when it is detected that the storage remaining amount of the audio buffer 30 has reached the lower limit for synchronizing the video reproduction data and the audio reproduction data, the buffer control unit 50 also controls the interruption control unit. CPU 10 via 60
Interrupts The CPU 10 regards the interruption as “advance” of the decoding of the audio data, and executes the sampling clock correction unit 7 as interruption processing.
0 is controlled, and the decoding rate of audio data is optimized by reducing the sampling clock speed. The upper limit and the lower limit will be described later.

【0015】図2は、バッファ制御部50の構成例を示
したものである。上記のように、デマルチプレクサ20
からビデオバッファ40へのビデオデータの書き込み、
及びビデオバッファ40からビデオデコーダ90へのビ
デオデータの読み出しは、ビデオデコーダ90からのデ
ータ転送要求に従って行われる。デマルチプレクサ20
からビデオデータをビデオバッファ40に転送する前
に、CPU10は、ビデオバッファ40に十分な空き容
量があることを確認し、タイミングコントローラ51を
介してライトアドレスカウンタ52に書き込みアドレス
の初期値を設定した後、アドレスセレクタ54で書き込
みアドレスを選択する。ビデオデータの書き込み(転
送)は、タイミングコントローラ51の制御によりデマ
ルチプレクサ20へのデータ転送要求によって行われ
る。
FIG. 2 shows an example of the configuration of the buffer control unit 50. As described above, the demultiplexer 20
Write video data to the video buffer 40 from
Reading of video data from the video buffer 40 to the video decoder 90 is performed according to a data transfer request from the video decoder 90. Demultiplexer 20
Before transferring the video data to the video buffer 40, the CPU 10 confirms that the video buffer 40 has a sufficient free space, and sets the initial value of the write address in the write address counter 52 via the timing controller 51. Thereafter, the write address is selected by the address selector 54. The writing (transfer) of the video data is performed by a data transfer request to the demultiplexer 20 under the control of the timing controller 51.

【0016】ビデオバッファ40からのビデオデータの
読み出しは、CPU10がタイミングコントローラ51
を介してリードアドレスカウンタ53に読み出しアドレ
スの初期値を設定し、アドレスセレクタ54でリードア
ドレスを選択した後、タイミングコントローラ51の制
御により行われる。デマルチプレクサ20からオーディ
オバッファ30へのオーディオデータの書き込み及びオ
ーディオバッファ30からオーディオデコーダ80への
オーディオデータの読み出しについてもビデオバッファ
の場合と同様な手順で行われる。
The CPU 10 reads the video data from the video buffer 40 by the timing controller 51.
After setting the initial value of the read address in the read address counter 53 via the address selector and selecting the read address by the address selector 54, the read address is controlled by the timing controller 51. The writing of audio data from the demultiplexer 20 to the audio buffer 30 and the reading of audio data from the audio buffer 30 to the audio decoder 80 are performed in the same manner as in the case of the video buffer.

【0017】図3は、割込制御部60の構成例を示した
ものである。以下、図4も参照しながら、この割込制御
部60の動作を説明する。図4において、ビデオ再生出
力とオーディオ再生出力とが同期しているためには、オ
ーディオバッファ30内の蓄積残量がある上限値(図4
のU点)と下限値(図4のL点)の間である一定の適切
な範囲内に収まっている必要がある。すなわち、オーデ
ィオバッファ30に必要以上に多くのデータが溜まって
いるということは、オーディオデータの復号が遅れてい
ることを意味し、逆にオーディオバッファ30のデータ
量が少なすぎる場合は、オーディオデータの復号が進み
すぎていることを意味するからである。この上限値及び
下限値は、それぞれビデオバッファ40からビデオデコ
ーダ90へのデータ転送速度、オーディオバッファ30
からオーディオデコーダ80へのデータ転送速度、ビデ
オデコーダ90のサンプリングクロック速度、オーディ
オデコーダ80のサンプリングクロック速度によって適
切に決定される。決定した上限値は、図3の上限値レジ
スタ64に、下限値は、図3の下限値レジスタ65にそ
れぞれ予め設定しておく。
FIG. 3 shows an example of the configuration of the interrupt control unit 60. Hereinafter, the operation of the interrupt control unit 60 will be described with reference to FIG. In FIG. 4, in order for the video reproduction output and the audio reproduction output to be synchronized, an upper limit value (see FIG.
(Point U in FIG. 4) and a lower limit (point L in FIG. 4). That is, the fact that more data is stored in the audio buffer 30 than necessary means that the decoding of the audio data is delayed, and conversely, if the data amount of the audio buffer 30 is too small, This means that decoding has progressed too much. The upper limit value and the lower limit value correspond to the data transfer speed from the video buffer 40 to the video decoder 90 and the audio buffer 30 respectively.
It is appropriately determined according to the data transfer speed from the video decoder 90 to the audio decoder 80, the sampling clock speed of the video decoder 90, and the sampling clock speed of the audio decoder 80. The determined upper limit is set in advance in the upper limit register 64 of FIG. 3, and the lower limit is set in advance in the lower limit register 65 of FIG.

【0018】図3に戻り、割込制御部60は、バッファ
制御部50からオーディオバッファ30に出力されるリ
ード信号及びライト信号をリードパルスカウンタ61及
びライトパルスカウンタ62でそれぞれカウントする。
オーディオバッファ30内の蓄積残量は、ライトパルス
カウンタ62の値からリードパルスカウンタ61を引く
ことによって求められ、これはデータ蓄積量演算部63
により計算される。
Referring back to FIG. 3, the interrupt controller 60 counts the read signal and the write signal output from the buffer controller 50 to the audio buffer 30 by the read pulse counter 61 and the write pulse counter 62, respectively.
The remaining storage amount in the audio buffer 30 is obtained by subtracting the read pulse counter 61 from the value of the write pulse counter 62.
Is calculated by

【0019】データ蓄積量演算部63で求められたオー
ディオバッファ30内の蓄積残量は、上限値レジスタ6
4内に予め設定された上限値と比較器66において常時
比較され、データ蓄積量が上記上限値を超えている場
合、割り込みステータスレジスタ69にデータ蓄積量が
上限値を越えたことを示すビットをセットすると同時
に、OR回路68を介してCPU10に対して割り込み
を要求する。また、データ蓄積量は、比較器67におい
て下限値レジスタ65に予め設定された下限値と常時比
較され、データ蓄積量が下限値を下回っている場合はデ
ータ蓄積量が下限値を下回ったことを示すビットをセッ
トすると同時にOR回路68を介してCPU10に対し
て割り込みを要求する。
The storage remaining amount in the audio buffer 30 obtained by the data storage amount calculating section 63 is equal to the upper limit value register 6
4 is constantly compared with the upper limit value set in advance in the comparator 66. If the data accumulation amount exceeds the upper limit value, a bit indicating that the data accumulation amount exceeds the upper limit value is set in the interrupt status register 69. At the same time as setting, an interrupt is requested to the CPU 10 via the OR circuit 68. Further, the data accumulation amount is constantly compared with the lower limit value preset in the lower limit value register 65 by the comparator 67. At the same time as setting the indicated bit, an interrupt is requested to the CPU 10 via the OR circuit 68.

【0020】CPU10は、割込制御部60からの割り
込み要求を受けると、割込制御部60の割り込みステー
タスレジスタ69をチェックし、オーディオデータバッ
ファの蓄積データが上限に達したのか、または下限に達
したのかを判定する。
When receiving an interrupt request from the interrupt control unit 60, the CPU 10 checks the interrupt status register 69 of the interrupt control unit 60 and determines whether the data stored in the audio data buffer has reached the upper limit or has reached the lower limit. It is determined whether it has been done.

【0021】図5は、サンプリングクロック補正部70
の具体的な構成例を示すブロック図である。データ蓄積
量が上限に達している場合、CPU10は、オーディオ
データの復号処理が遅れていると判断し、復号化レート
を速めるため、オーディオデコーダ80のサンプリング
クロック速度を上げるようにD/Aコンバータ71に適
切な値を設定する。一方、蓄積データ量が下限に達して
いる場合は、CPU10はオーディオデータの復号処理
が進んでいると判断し、復号化レートをおとすため、オ
ーディオデコーダ80のサンプリングクロック速度を下
げるようにD/Aコンバータ71に適切な値を設定す
る。
FIG. 5 shows a sampling clock correction unit 70.
FIG. 3 is a block diagram showing a specific example of the configuration. If the data storage amount has reached the upper limit, the CPU 10 determines that the decoding process of the audio data is delayed, and increases the sampling clock speed of the audio decoder 80 to increase the decoding rate in order to increase the decoding rate. Set an appropriate value for. On the other hand, if the accumulated data amount has reached the lower limit, the CPU 10 determines that the audio data decoding process is in progress, and reduces the sampling clock speed of the audio decoder 80 to reduce the decoding rate in order to reduce the decoding rate. An appropriate value is set in converter 71.

【0022】CPU10によって設定された適切な値
は、D/Aコンバータ71によってアナログ量に変換さ
れ、電圧制御水晶発振器(VCXO,72)に入力され
る。D/Aコンバータ71からの入力を受け取ったVC
XO72は、入力信号に対応した周波数のサンプリング
クロックをオーディオデコーダ80に対して供給する。
An appropriate value set by the CPU 10 is converted into an analog quantity by a D / A converter 71 and input to a voltage-controlled crystal oscillator (VCXO, 72). VC receiving input from D / A converter 71
The XO 72 supplies a sampling clock having a frequency corresponding to the input signal to the audio decoder 80.

【0023】このように、本実施形態の同期制御回路
は、圧縮符号化され多重化されたオーディオデータ及び
ビデオデータを復号化し再生するシステムにおいて、ビ
デオデータを復号処理するためのサンプリングクロック
とオーディオデータを復号処理するためのサンプリング
クロックとにずれがある場合、あるいはビデオデータを
復号処理するためのサンプリングクロックとオーディオ
データを復号処理するためのサンプリングクロックとが
非同期である場合に生ずるビデオ再生出力とオーディオ
再生出力の同期ずれを補正することが可能であることが
理解される。
As described above, the synchronization control circuit according to the present embodiment provides a sampling clock and audio data for decoding video data in a system for decoding and reproducing compressed and multiplexed audio data and video data. Video reproduction output and audio generated when there is a deviation from the sampling clock for decoding video, or when the sampling clock for decoding video data and the sampling clock for decoding audio data are asynchronous. It is understood that it is possible to correct the synchronization deviation of the reproduction output.

【0024】なお、本発明を一つの実施形態に基づき説
明したが、本発明はこの実施形態に限定されるものでは
なく、名称の異同に拘わらず、類似の回路・手段により
同様の目的を達成できるものであれば本発明の範囲に含
まれることは言うまでもない。例えば、上記実施形態で
はバッファ制御部50及び割込制御部60は、ハードウ
ェアとして表現されているが、これらをCPU10内の
ソフトウェアとして同様の機能を実現することが可能で
ある。
Although the present invention has been described with reference to one embodiment, the present invention is not limited to this embodiment, and achieves the same object by similar circuits / means regardless of the difference in name. Needless to say, if possible, they are included in the scope of the present invention. For example, in the above embodiment, the buffer control unit 50 and the interrupt control unit 60 are represented as hardware, but these can be implemented as software in the CPU 10 to realize similar functions.

【0025】また、本実施形態では、オーディオデコー
ダのサンプリングクロックの速度を制御してビデオ・オ
ーディオ再生出力の同期を実現しているが、ビデオデコ
ーダのサンプリングクロックの速度を制御してもよい。
この場合はビデオバッファ内の蓄積データ量によってサ
ンプリングクロックの速度を変化させればよいことは、
当業者に自明である。さらに、オーディオデコーダのサ
ンプリングクロックの速度及びビデオデコーダのサンプ
リングクロックの速度の両方を変化させることも可能で
ある。
Further, in this embodiment, the speed of the sampling clock of the audio decoder is controlled to realize the synchronization of the video / audio reproduction output. However, the speed of the sampling clock of the video decoder may be controlled.
In this case, what is necessary is to change the speed of the sampling clock according to the amount of data stored in the video buffer.
It is obvious to a person skilled in the art. Further, it is also possible to change both the speed of the sampling clock of the audio decoder and the speed of the sampling clock of the video decoder.

【0026】[0026]

【発明の効果】以上の説明から明らかなように、本発明
によれば、バッファメモリから複数の圧縮データを非同
期で読み出して復号することに起因する復号データ間の
同期ずれを常に正しく補正することができるという、特
有の効果がある。
As is apparent from the above description, according to the present invention, it is possible to always correctly correct a synchronization shift between decoded data caused by asynchronously reading and decoding a plurality of compressed data from a buffer memory. There is a unique effect that can be done.

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

【図1】本発明の一実施形態の圧縮多重化データ復号化
再生システムの一例のブロック図である。
FIG. 1 is a block diagram of an example of a compression-multiplexed data decoding / reproduction system according to an embodiment of the present invention.

【図2】本発明に好適なバッファ制御部の一例のブロッ
ク図である。
FIG. 2 is a block diagram of an example of a buffer control unit suitable for the present invention.

【図3】本発明に好適な割込制御部の一例のブロック図
である。
FIG. 3 is a block diagram illustrating an example of an interrupt control unit suitable for the present invention;

【図4】本発明に従ったオーディオバッファ内のデータ
蓄積量を示した図である。
FIG. 4 is a diagram showing a data storage amount in an audio buffer according to the present invention.

【図5】本発明に好適なサンプリングクロック補正部の
一例のブロック図である。
FIG. 5 is a block diagram of an example of a sampling clock correction unit suitable for the present invention.

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

10 CPU 20 デマルチプレクサ 30 オーディオバッファ 40 ビデオバッファ 50 バッファ制御部 60 割込制御部 70 サンプリングクロック補正部 80 オーディオデコーダ 90 ビデオデコーダ Reference Signs List 10 CPU 20 Demultiplexer 30 Audio buffer 40 Video buffer 50 Buffer control unit 60 Interrupt control unit 70 Sampling clock correction unit 80 Audio decoder 90 Video decoder

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 n(nは1,2,・・・)種の圧縮デー
タをバッファメモリに一時的に蓄積するとともに、各圧
縮データを該当するバッファメモリから読み出して非同
期で復号し、n種の復号データを同期出力するデータ復
号手段を具備したシステムに於いて使用される回路であ
って、 前記n種の圧縮データの各々の蓄積残量を監視し、いず
れかの圧縮データの蓄積残量が所定の同期可能範囲を逸
脱する場合に、当該圧縮データに基づく前記データ復号
手段の復号速度を動的に変更させて前記蓄積残量が前記
同期可能範囲に向かうように制御する制御手段を具備す
ることを特徴とする同期制御回路。
1. While temporarily storing n (n is 1, 2,...) Kinds of compressed data in a buffer memory, reading out each compressed data from a corresponding buffer memory and asynchronously decoding the compressed data, A circuit used in a system having data decoding means for synchronously outputting the decoded data of the n types of compressed data, wherein the remaining amount of each of the n types of compressed data is monitored and the remaining amount of any of the compressed data is monitored. A control means for dynamically changing a decoding speed of the data decoding means based on the compressed data and controlling the remaining amount of storage toward the synchronizable range when the value deviates from a predetermined synchronizable range. A synchronization control circuit.
【請求項2】 前記n種の圧縮データが、圧縮ビデオデ
ータと圧縮オーディオデータとを含むとき、前記制御手
段は、少なくとも前記圧縮ビデオデータ及び圧縮オーデ
ィオデータの復号データを前記データ復号手段から同期
出力させることを特徴とする請求項1記載の同期制御回
路。
2. When the n types of compressed data include compressed video data and compressed audio data, the control means synchronously outputs at least decoded data of the compressed video data and compressed audio data from the data decoding means. 2. The synchronization control circuit according to claim 1, wherein
【請求項3】 前記制御手段は、所定の割込手段を通じ
て前記データ復号手段の復号速度を変化させるように構
成されていることを特徴とする請求項1または2記載の
同期制御回路。
3. The synchronization control circuit according to claim 1, wherein said control means is configured to change a decoding speed of said data decoding means through a predetermined interrupt means.
【請求項4】 前記割込手段は、 前記バッファメモリへの書き込み回数及び読み出し回数
を圧縮データ毎に計数する計数手段と、 この計数手段による計数結果に基づいて圧縮データ毎の
前記蓄積残量を算出する蓄積量演算手段と、 前記同期可能範囲の上限値及び下限値を記憶するための
レジスタと、 個々の圧縮データの蓄積残量が前記レジスタ内の上限値
または下限値に達したときに、前記データ復号手段へ処
理の割り込みを行うための割込信号を当該蓄積残量の状
態を表す信号と共に出力する出力回路と、を含んで構成
されることを特徴とする請求項3記載の同期制御回路。
4. The counting means for counting the number of times of writing and reading of data into and from the buffer memory for each compressed data, and the storage remaining amount for each piece of compressed data based on the result of counting by the counting means. A storage amount calculating means for calculating, a register for storing an upper limit value and a lower limit value of the synchronizable range, and a storage remaining amount of each compressed data reaches an upper limit value or a lower limit value in the register. 4. The synchronization control according to claim 3, further comprising: an output circuit that outputs an interrupt signal for interrupting processing to the data decoding unit together with a signal indicating the state of the remaining storage amount. circuit.
【請求項5】 圧縮されてマルチプレクスされた多重化
データをデマルチプレクスして圧縮ビデオデータと圧縮
オーディオデータとに分離し、それぞれ所定のバッファ
メモリに一時的に蓄積した後に読み出して復号するシス
テムに於いて、前記圧縮オーディオデータの蓄積残量を
監視し、この蓄積残量が所定の量よりも多い場合はオー
ディオデータの復号速度を速め、前記蓄積残量が所定の
量よりも少ない場合はオーディオデータの復号速度を遅
めて、復号後のビデオデータとオーディオデータの出力
タイミングを同期させることを特徴とする同期制御方
法。
5. A system for demultiplexing compressed and multiplexed multiplexed data to separate it into compressed video data and compressed audio data, temporarily storing them in predetermined buffer memories, and then reading and decoding them. Monitoring the remaining storage amount of the compressed audio data, if the remaining storage amount is larger than a predetermined amount, increase the decoding speed of the audio data; if the remaining storage amount is smaller than the predetermined amount, A synchronization control method characterized in that the decoding speed of audio data is slowed to synchronize the output timings of decoded video data and audio data.
JP9253000A 1997-09-18 1997-09-18 Circuit and method for synchronous control Pending JPH1196680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9253000A JPH1196680A (en) 1997-09-18 1997-09-18 Circuit and method for synchronous control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9253000A JPH1196680A (en) 1997-09-18 1997-09-18 Circuit and method for synchronous control

Publications (1)

Publication Number Publication Date
JPH1196680A true JPH1196680A (en) 1999-04-09

Family

ID=17245102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9253000A Pending JPH1196680A (en) 1997-09-18 1997-09-18 Circuit and method for synchronous control

Country Status (1)

Country Link
JP (1) JPH1196680A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100452859C (en) * 2004-06-01 2009-01-14 扬智科技股份有限公司 Method for quick image and sound synchronous adjustment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100452859C (en) * 2004-06-01 2009-01-14 扬智科技股份有限公司 Method for quick image and sound synchronous adjustment

Similar Documents

Publication Publication Date Title
US5959684A (en) Method and apparatus for audio-video synchronizing
US5596420A (en) Auto latency correction method and apparatus for MPEG playback system
JP3698376B2 (en) Synchronous playback device
US5521922A (en) Data demultiplexer
JP3106987B2 (en) Audio / video synchronous playback device
US5537148A (en) Video and audio data demultiplexer having controlled synchronizing signal
US7812886B2 (en) AV synchronization system
EP0618728A2 (en) Synchronization of audio/video information
JPH09205618A (en) Dynamic image sound expansion reproduction device and dynamic image sound synchronization controller
JP3644995B2 (en) Time stamp value calculation method in coded transmission system
US6718119B1 (en) Video/audio decoding apparatus and method
US6243032B1 (en) Decode apparatus that can accommodate dynamic change in sample data attribute during decoding process
KR100384553B1 (en) Data multiplexer with a single external memory
GB2275852A (en) Signal synchroniser with resynchronise control
JPH08251543A (en) Reproduction system for picture and audio information
JPH1196680A (en) Circuit and method for synchronous control
KR100207687B1 (en) Decoder for use in mpeg system and audio/video synchronization method
JPH0898160A (en) Data multiplexing device
JP2003274216A (en) Data synchronizer
JPH10308936A (en) Video distribution system data distribution method and medium
JP2005292375A (en) Audio-reproducing device and clock-frequency control method
TW454421B (en) Decoding system
JP2907118B2 (en) Data transfer circuit
JP2000022649A (en) Resampling system
JP2000174735A (en) Synchronism device/method