【0001】
【発明の属する技術分野】
本発明は、2チャンネル以上で構成される音声データを圧縮した音声ストリームを復号する音声再生装置に関するものであり、特にDVDプレーヤ、ディジタル放送のチューナ等の機器において、音声ストリームを復号する際のエラー耐性の向上を図る音声再生装置に関するものである。
【0002】
【従来の技術】
近年のマルチメディア技術の進展により、ディジタル化された映像、音声やデータといった複数のメディアを統合的に扱ったDVDプレーヤやディジタルTV放送用チューナ等に代表される応用機器が普及し始めている。
【0003】
以下、従来のDVDプレーヤ、ディジタルTV放送用チューナにおいて、2チャンネル以上で構成される音声データを圧縮した音声ストリームを復号する音声再生装置について図3及び図4を用いて説明する。
【0004】
図3は従来の音声再生装置の構成を示すブロック図である。
図3において、101は2チャンネル以上の音声データが符号化されている入力ストリーム、102は入力ストリーム101をオーディオフレームごとにすべてのチャンネルにおいてストリーム構成にエラーが存在するか否かを解析する解析手段、103は解析手段102により、当該フレームのいずれかのチャンネルにエラーが存在する場合にすべてのチャンネルに適応させる例外処理手段104と当該フレームのすべてのチャンネルにエラーが存在しない場合に復号する復号手段105とを制御する制御手段、104は当該フレームの全チャンネルをミュート処理あるいは前フレームの繰り返し処理を行う例外処理手段、105は当該フレームの全チャンネルを復号する復号手段、106は制御手段103により、選択された例外処理手段104または復号手段105から出力される音声データを蓄える出力バッファである。
【0005】
図4は従来技術において、入力ストリームにエラーが存在する場合の出力バッファの状態を示す図である。
【0006】
従来のDVDプレーヤやディジタルTV放送用チューナでは、入力ストリーム101のいずれかのチャンネルにエラーが存在する場合は、解析手段102によって、当該フレームにはエラーが含まれていると判断され、制御手段103によって、例外処理手段104で例外処理が適用され、全チャンネルがミュート処理あるいは、繰り返し出力処理を行っている(例えば、非特許文献1参照)。
【0007】
このため、例えば図4において、入力ストリーム101のLチャンネルにのみエラーが含まれているフレームの場合でも、当該フレームは、例外処理手段104によって全チャンネルがミュート処理あるいは、前フレームの繰り返し処理を行うため、出力音声データの音切れやノイズとなる可能性がある。
【0008】
【非特許文献1】
国際規格、ISO/IEC 11172−3, “Coding of Moving Picture and Associated Audio for Digital Storage Media at up to about 1.5Mb/s −Part 3: Audio”, Aug.1993.
【0009】
【発明が解決しようとする課題】
以上のように、2チャンネル以上の音声データが符号化されているストリームにおいて、1チャンネルでもエラーが含まれている場合には、他のチャンネルにおいてエラーが含まれていなくても、全チャンネルにおいて例外処理を適用することにより、音切れやノイズの原因となっていた。
【0010】
本発明は上記問題点を解決するためになされたものであり、2チャンネル以上の音声データが符号化されているストリームにおいて、エラーが含まれているチャンネルのみ例外処理を適用し、エラーが含まれていないチャンネルには復号処理を適用することにより、音切れやノイズを防ぐ音声再生装置を提供することを目的とする。
【0011】
【課題を解決するための手段】
上記目的を達成するために本発明は、オーディオフレームごとに、あるチャンネルにおいてストリーム構成にエラーが存在するか否かを解析する解析手段と、当該フレームにおいてエラーの存在するチャンネルに適応させる例外処理手段と、当該フレームにおいてエラーの存在しないチャンネルを復号する復号手段と、解析手段により例外処理手段と復号手段を制御する制御手段と、例外処理手段または復号手段より出力される音声データを蓄える出力バッファを備えたことを特徴とする。
【0012】
また、あるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ、音声データをミュート処理することを特徴とする。
【0013】
また、あるオーディオフレームのあるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ同一チャンネルの1オーディオフレーム前の音声データを繰り返し出力することを特徴とする。
【0014】
また、あるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ、他のチャンネルの復号手段により出力される音声データを出力することを特徴とする。
【0015】
【発明の実施の形態】
以下、図面を用いて本発明の実施の形態について説明する。本発明は、エラーが含まれているチャンネルのみ例外処理を適用し、エラーが含まれていないチャンネルには復号処理を適用することにより、音切れやノイズの発生を防ぐものである。
【0016】
(実施の形態1)
図1は本発明の実施の形態1に係る音声再生装置の構成を示すブロック図である。
【0017】
図1において、1は2チャンネル以上の音声データが符号化されている入力ストリームであり、ここでは、2チャンネルの場合を示しているが3チャンネル以上のストリームの場合も同様である。
【0018】
2及び7は入力ストリーム1をオーディオフレームごとにそれぞれのチャンネルにおいてストリーム構成にエラーが存在するか否かを解析する解析手段、3及び8はそれぞれ解析手段2及び7により、当該フレームにおいてエラーの存在するチャンネルに例外処理を適応させる例外処理手段4及び9と当該フレームにおいてエラーの存在しないチャンネルを復号する復号手段5及び10とを制御する制御手段、4及び9は当該フレームのエラーの存在するチャンネルのみをミュート処理あるいは前フレームの繰り返し処理を行う例外処理手段、5及び10は当該フレームのエラーの存在しないチャンネルのみを復号する復号手段、6は制御手段3及び8により、選択された例外処理手段4及び9、または復号手段5及び10から出力される音声データを蓄える出力バッファである。
【0019】
図2は本実施の形態において、入力ストリームにエラーが存在する場合の出力バッファの状態を示す図である。以下、本実施の形態1の動作を説明する。
【0020】
まず、入力ストリーム1のあるチャンネルにエラーが存在する場合、解析手段2及び7によって、当該フレームのあるチャンネルにはエラーが含まれていると判断され、制御手段3及び8によって、エラーの存在するチャンネルのみに例外処理手段4及び9で例外処理が適用され、エラーの存在しないチャンネルには復号処理手段5及び10で復号処理が適用される。
【0021】
例えば図2において、入力ストリーム1のLチャンネルにのみエラーが含まれているフレームの場合、当該フレームは、例外処理手段4によってLチャンネルのみに例外処理を行い、エラーの存在しないRチャンネルは復号手段10によって音声データが復号される。
【0022】
このため、従来のようにエラーが存在しないチャンネルに対しても例外処理手段を適用してしまうことが無く、エラーの存在しないチャンネルに関しては、復号手段により音声データを復号することが可能となる。
【0023】
(実施の形態2)
次に、図1、図2を用いて本発明の実施の形態2による音声再生装置について説明する。本実施の形態の特徴は、入力ストリーム1のあるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ、音声データをミュート処理する例外処理手段4,9を備えたことである。
【0024】
この構成によって、本実施の形態では、エラーが存在するチャンネルはミュート処理されるためノイズの発生を防ぎ、エラーが存在しないチャンネルに関しては、復号手段5,10により音声データを復号することが可能となる。
【0025】
(実施の形態3)
次に、図1,図2を用いて本発明の実施の形態2による音声再生装置について説明する。本実施の形態の特徴は、入力ストリーム1のあるオーディオフレームのあるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ、同一チャンネルの1オーディオフレーム前の音声データを繰り返し出力する例外処理手段4,9を備えたことである。
【0026】
この構成によって、本実施の形態では、エラーが存在するチャンネルは同一フレームの前フレームの音声データが繰り返し出力されるため、音切れ及びノイズの発生を防ぎ、エラーが存在しないチャンネルに関しては、復号手段5,10により音声データを復号することが可能となる。
【0027】
(実施の形態4)
次に、図1,図2を用いて本発明の実施の形態4による音声再生装置について説明する。本実施の形態の特徴は、入力ストリーム1のあるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ、他のチャンネルの復号手段により出力される音声データを出力する例外処理手段4及び9を備えたことである。
【0028】
この構成によって、本実施の形態では、エラーが存在するチャンネルは他のチャンネルの復号手段5,10により出力される音声データが出力されるため、音切れ及びノイズの発生を防ぎ、エラーが存在しないチャンネルに関しては、復号手段5,10により音声データを復号することが可能となる。
【0029】
【発明の効果】
以上のように本発明によれば、2チャンネル以上の音声データが符号化されているストリームにおいて、1チャンネルでもエラーが含まれている場合には、他のチャンネルにおいてエラーが含まれていなくても、全チャンネルにおいて例外処理を適用されることによる従来発生していた音切れやノイズを防ぎ、エラーが含まれているチャンネルのみ例外処理を適用し、エラーが含まれていない復号可能なチャンネルには復号処理を適用することにより、音切れやノイズ発生を防ぐことを可能とする。
【0030】
また、あるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ、音声データをミュート処理することにより、2チャンネル以上の音声データが符号化されているストリームにおいて、1チャンネルでもエラーが含まれている場合には、他のチャンネルにおいてエラーが含まれていなくても、全チャンネルにおいて例外処理を適用されることによる従来発生していた音切れやノイズを防ぎ、エラーが含まれているチャンネルのみ例外処理であるミュート処理を適用し、エラーが含まれていない復号可能なチャンネルには復号処理を適用することにより、ノイズ発生を防ぐことを可能とする。
【0031】
また、あるオーディオフレームのあるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ、同一チャンネルの1オーディオフレーム前の音声データを繰り返し出力することにより、2チャンネル以上の音声データが符号化されているストリームにおいて、1チャンネルでもエラーが含まれている場合には、他のチャンネルにおいてエラーが含まれていなくても、全チャンネルにおいて例外処理を適用されることによる従来発生していた音切れやノイズを防ぎ、エラーが含まれているチャンネルのみ例外処理である同一チャンネルの前のフレームの音声データを繰り返し出力する処理を適用し、エラーが含まれていない復号可能なチャンネルには復号処理を適用することにより、音切れやノイズ発生を防ぐことを可能とする。
【0032】
また、あるチャンネルにおいてストリーム構成にエラーが存在する場合に、そのチャンネルに対してのみ、他のチャンネルの復号手段により出力される音声データを出力することにより、2チャンネル以上の音声データが符号化されているストリームにおいて、1チャンネルでもエラーが含まれている場合には、他のチャンネルにおいてエラーが含まれていなくても、全チャンネルにおいて例外処理を適用されることによる従来発生していた音切れやノイズを防ぎ、エラーが含まれているチャンネルのみ例外処理である他のチャンネルの音声データを出力する処理を適用し、エラーが含まれていない復号可能なチャンネルには復号処理を適用することにより、音切れやノイズ発生を防ぐことを可能とする。
【図面の簡単な説明】
【図1】本発明の実施の形態による音声再生装置の構成を示すブロック図
【図2】本実施の形態による入力ストリームにエラーが存在する場合の出力バッファの状態を示す図
【図3】従来の音声再生装置の構成を示すブロック図
【図4】従来の入力ストリームにエラーが存在する場合の出力バッファの状態を示す図
【符号の説明】
1 入力ストリーム
2,7 解析手段
3,8 制御手段
4,9 例外処理手段
5,10 復号手段
6 出力バッファ[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an audio reproducing apparatus for decoding an audio stream obtained by compressing audio data composed of two or more channels, and particularly to an error in decoding an audio stream in a device such as a DVD player or a digital broadcast tuner. The present invention relates to a sound reproducing device for improving the resistance.
[0002]
[Prior art]
With the advance of multimedia technology in recent years, application devices such as a DVD player and a digital TV broadcast tuner that integrally handle a plurality of media such as digitized video, audio, and data have begun to spread.
[0003]
Hereinafter, a conventional DVD player and digital TV broadcast tuner will be described with reference to FIG. 3 and FIG.
[0004]
FIG. 3 is a block diagram showing a configuration of a conventional audio reproducing device.
In FIG. 3, reference numeral 101 denotes an input stream in which audio data of two or more channels is encoded, and 102 denotes an analyzing means for analyzing the input stream 101 for every audio frame to determine whether there is an error in the stream configuration in all channels. , 103 are exception processing means 104 adapted to be applied to all channels when an error exists in any channel of the frame by the analysis means 102 and decoding means for decoding when no error exists in all channels of the frame by the analysis means 102 Control means for controlling 105; exception processing means for performing mute processing on all channels of the frame or repetition processing of the previous frame; decoding means for decoding all channels of the frame; 105; control means 103; Selected exception handler An output buffer for storing the audio data output from the 104 or decoding section 105.
[0005]
FIG. 4 is a diagram showing a state of an output buffer when an error exists in an input stream in the related art.
[0006]
In a conventional DVD player or digital TV broadcast tuner, if an error exists in any channel of the input stream 101, the analyzing unit 102 determines that the frame contains the error, and the control unit 103 Accordingly, exception processing is applied by the exception processing means 104, and mute processing or repetitive output processing is performed for all channels (for example, see Non-Patent Document 1).
[0007]
Therefore, for example, in FIG. 4, even in the case of a frame in which an error is included only in the L channel of the input stream 101, the exception processing unit 104 performs muting on all channels or repeats the previous frame. Therefore, there is a possibility that the sound of the output audio data will be cut off or noise.
[0008]
[Non-patent document 1]
International standard, ISO / IEC 11172-3, "Coding of Moving Picture and Associated Audio for Digital Storage Media at up to about 1.5Mb / s-Part3: Audi. 1993.
[0009]
[Problems to be solved by the invention]
As described above, if an error is included in even one channel in a stream in which audio data of two or more channels is encoded, even if no error is included in another channel, an exception occurs in all channels. By applying the processing, the sound was cut off or noise was caused.
[0010]
The present invention has been made to solve the above problem, and in a stream in which audio data of two or more channels is encoded, exception processing is applied only to a channel that includes an error, and an error is included. It is an object of the present invention to provide a sound reproducing device that prevents sound cutoff and noise by applying decoding processing to a channel that is not used.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides, for each audio frame, analysis means for analyzing whether or not an error exists in a stream configuration in a certain channel, and exception processing means for adapting to a channel in which an error exists in the frame. A decoding unit for decoding a channel having no error in the frame; a control unit for controlling the exception processing unit and the decoding unit by the analysis unit; and an output buffer for storing audio data output from the exception processing unit or the decoding unit. It is characterized by having.
[0012]
Further, when an error exists in the stream configuration in a certain channel, the audio data is muted only for that channel.
[0013]
Further, when an error is present in the stream configuration in a certain channel of a certain audio frame, the audio data of the same channel one audio frame before is repeatedly output only to that channel.
[0014]
Further, when an error exists in a stream configuration in a certain channel, audio data output by decoding means of another channel is output only to that channel.
[0015]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. According to the present invention, the exception processing is applied only to a channel including an error, and the decoding processing is applied to a channel not including an error, thereby preventing the occurrence of sound interruption and noise.
[0016]
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of an audio reproducing device according to Embodiment 1 of the present invention.
[0017]
In FIG. 1, reference numeral 1 denotes an input stream in which audio data of two or more channels is encoded. Here, the case of two channels is shown, but the same applies to a stream of three or more channels.
[0018]
Analysis means 2 and 7 analyze the input stream 1 for each audio frame in each channel to determine whether or not there is an error in the stream configuration. Reference numerals 3 and 8 denote the presence of an error in the frame by the analysis means 2 and 7, respectively. Control means for controlling exception processing means 4 and 9 for adapting the exception processing to the channel to be decoded and decoding means 5 and 10 for decoding a channel having no error in the frame; Exception processing means for mute processing only or repetition processing of the previous frame, decoding means 5 and 10 for decoding only error-free channels of the frame, and 6 for exception processing means selected by the control means 3 and 8 Sounds output from 4 and 9 or decoding means 5 and 10 Data, which is the output buffer for storing.
[0019]
FIG. 2 is a diagram showing a state of an output buffer when an error exists in an input stream in the present embodiment. Hereinafter, the operation of the first embodiment will be described.
[0020]
First, when an error exists in a certain channel of the input stream 1, the analyzing means 2 and 7 determine that an error exists in a certain channel of the frame, and the control means 3 and 8 determine that the error exists. Exception processing is applied to only channels by the exception processing means 4 and 9, and decoding processing is applied by the decoding processing means 5 and 10 to channels having no error.
[0021]
For example, in FIG. 2, in the case of a frame in which an error is included only in the L channel of the input stream 1, the exception processing unit 4 performs exception processing only on the L channel, and the R channel in which no error exists is a decoding unit. 10 decodes the audio data.
[0022]
Therefore, unlike the conventional case, the exception processing means is not applied to a channel having no error, and audio data can be decoded by the decoding means for a channel having no error.
[0023]
(Embodiment 2)
Next, an audio reproducing apparatus according to a second embodiment of the present invention will be described with reference to FIGS. A feature of the present embodiment is that when an error exists in a stream configuration in a certain channel of the input stream 1, exception processing means 4 and 9 for muting audio data only for that channel are provided. .
[0024]
With this configuration, in the present embodiment, the occurrence of noise can be prevented because a channel having an error is muted, and audio data can be decoded by the decoding means 5 and 10 for a channel having no error. Become.
[0025]
(Embodiment 3)
Next, an audio reproducing apparatus according to a second embodiment of the present invention will be described with reference to FIGS. The feature of the present embodiment is that, when an error exists in the stream configuration in a certain channel of a certain audio frame of the input stream 1, the audio data one audio frame before the same channel is repeatedly output only to that channel. Exception handling means 4 and 9 are provided.
[0026]
With this configuration, in the present embodiment, since the audio data of the previous frame of the same frame is repeatedly output for the channel where an error exists, the occurrence of sound interruption and noise is prevented, and the decoding means is used for the channel where no error exists. The audio data can be decoded by the steps 5 and 10.
[0027]
(Embodiment 4)
Next, an audio reproducing apparatus according to a fourth embodiment of the present invention will be described with reference to FIGS. A feature of the present embodiment is that, when an error exists in a stream configuration in a certain channel of an input stream 1, exception processing means for outputting audio data output by decoding means of another channel only to that channel 4 and 9 were provided.
[0028]
With this configuration, in the present embodiment, the audio data output from the decoding means 5 and 10 of the other channels is output to the channel in which an error exists, so that the occurrence of sound interruption and noise is prevented, and no error exists. As for the channel, the audio data can be decoded by the decoding means 5 and 10.
[0029]
【The invention's effect】
As described above, according to the present invention, in a stream in which audio data of two or more channels is encoded, even if an error is included in even one channel, even if no error is included in other channels. , To prevent skipping and noise caused by applying exception processing to all channels, apply exception processing only to channels that contain errors, and apply decoding to channels that do not contain errors. By applying the decoding process, it is possible to prevent sound interruption and noise generation.
[0030]
Further, when an error exists in the stream configuration of a certain channel, the audio data is muted only for that channel, so that in a stream in which audio data of two or more channels is encoded, even if only one channel has an error, Is included, even if the error is not included in other channels, it prevents the sound skipping and noise that occurred conventionally due to the exception processing being applied to all channels, and the error is included. By applying a mute process, which is an exception process, to only those channels and applying a decode process to a decodable channel containing no error, it is possible to prevent noise from occurring.
[0031]
When an error exists in the stream configuration of a certain channel of a certain audio frame, the audio data of one or more audio frames of the same channel is repeatedly output only to that channel, so that the audio data of two or more channels is output. Conventionally, when an error is included in even one channel in an encoded stream, exception processing is applied to all channels even if no error is included in another channel. Applying the process of repeatedly outputting the audio data of the previous frame of the same channel, which is an exceptional process only for channels containing errors, to prevent sound breaks and noises, and decodes to decodable channels that do not contain errors By applying the processing, the sound cutoff and noise generation Gukoto to allow.
[0032]
Further, when an error exists in the stream configuration in a certain channel, audio data output by the decoding means of another channel is output only to that channel, whereby audio data of two or more channels is encoded. If a stream contains an error even in one channel, even if the other channel does not contain an error, the exceptional sound breakage caused by applying the exception processing to all the channels, By applying a process that prevents noise and outputs audio data of other channels that are exceptional processes only for channels that contain errors, and applies a decoding process to decodable channels that do not contain errors, This makes it possible to prevent sound interruption and noise generation.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an audio reproducing apparatus according to an embodiment of the present invention. FIG. 2 is a diagram illustrating a state of an output buffer when an error exists in an input stream according to the present embodiment. FIG. 4 is a block diagram showing the configuration of a conventional audio playback device. FIG. 4 is a diagram showing the state of an output buffer when an error exists in a conventional input stream.
DESCRIPTION OF SYMBOLS 1 Input stream 2, 7 Analysis means 3, 8 Control means 4, 9 Exception processing means 5, 10 Decoding means 6 Output buffer