JP2007282001A - Decoding device, decoding method, information reproducing device, and electronic equipment - Google Patents
Decoding device, decoding method, information reproducing device, and electronic equipment Download PDFInfo
- Publication number
- JP2007282001A JP2007282001A JP2006107294A JP2006107294A JP2007282001A JP 2007282001 A JP2007282001 A JP 2007282001A JP 2006107294 A JP2006107294 A JP 2006107294A JP 2006107294 A JP2006107294 A JP 2006107294A JP 2007282001 A JP2007282001 A JP 2007282001A
- Authority
- JP
- Japan
- Prior art keywords
- packet
- error
- data
- audio
- decoding
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
本発明は、デコード装置、デコード方法、情報再生装置及び電子機器に関する。 The present invention relates to a decoding device, a decoding method, an information reproducing device, and an electronic apparatus.
地上アナログ放送に替わって登場する地上デジタル放送では、画像及び音声の高品質化に加えて種々の新サービスの提供に期待が寄せられている。地上デジタル放送の導入によって新たに提供されるサービスの1つに、携帯端末向けサービスとして、いわゆる「1セグメント放送」がある。「1セグメント放送」では、QPSK(Quadrature Phase Shift Keying)変調方式で変調されたデジタル変調波をOFDM(Orthogonal Frequency Division Multiplexing)変調方式で多重化することで、携帯端末の移動時でも安定した放送受信が可能となる。 In terrestrial digital broadcasting that appears in place of analog terrestrial broadcasting, there are expectations for the provision of various new services in addition to improving the quality of images and audio. One of the services newly provided by the introduction of terrestrial digital broadcasting is so-called “one-segment broadcasting” as a service for mobile terminals. In “1-segment broadcasting”, digital modulated waves modulated by the QPSK (Quadrature Phase Shift Keying) modulation method are multiplexed by the OFDM (Orthogonal Frequency Division Multiplexing) modulation method, so that stable broadcast reception is possible even when the mobile terminal is moving. Is possible.
このような携帯端末の一例として、携帯電話機がある。携帯電話機に「1セグメント放送」の受信機能を付加する場合、圧縮処理後の映像データ及び音声データが多重化されたトランスポートストリームの分離処理や分離処理後のデータのデコード処理を行う。このとき、映像データのデコード処理を行う処理部と音声データのデコード処理を行う処理部との間で通信を行って、デコード処理後の映像データ及び音声データを、同期をとりながら再生する。 An example of such a mobile terminal is a mobile phone. When a reception function of “1-segment broadcasting” is added to a cellular phone, a separation process of a transport stream in which video data and audio data after compression processing are multiplexed and data decoding processing after the separation processing are performed. At this time, communication is performed between the processing unit that performs the decoding process of the video data and the processing unit that performs the decoding process of the audio data, and the video data and audio data after the decoding process are reproduced in synchronization.
このようなデジタル放送を再生する技術として、例えば特許文献1には、受信不能をユーザに通知するために、トランスポートストリームからパケットを分離するトランスポートストリームDMUXの前段に誤り訂正部を設け、該誤り訂正部において検出されたエラーの頻度から受信レベルの変化を求める技術が開示されている。これにより、降雨等により受信レベルが悪化したことを認識しやすくなる。
As a technique for reproducing such a digital broadcast, for example, in
また特許文献2には、パケット識別子毎にフィルタリングを行うデジタル放送受信装置が開示されている。より具体的には、通過させるパケットのパケット識別子又は通過させないパケットのパケット識別子をレジスタに格納するようにすることでフィルタリングの際に参照するレジスタ数を削減するフィルタリング回路を含むデジタル放送受信装置が開示されている。
ところで、「1セグメント放送」をはじめとする「地上デジタル放送」では、放送信号が電波信号として送信されるため、常に正常な受信信号が得られるとは限らない。そこで、データの再生装置の低コスト化や処理負荷の軽減を考慮する際に、受信信号から生成されるストリームデータのエラー検出処理をどのように扱うかが重要になっている。この際、ストリームデータのエラーが検出されたとしても、エラーが発生したパケットを特定できれば、該パケットに応じた最適なエラー処理を行うことができる。 By the way, in “terrestrial digital broadcasting” including “1-segment broadcasting”, a broadcast signal is transmitted as a radio wave signal, and thus a normal reception signal is not always obtained. Therefore, it is important how to handle error detection processing of stream data generated from a received signal when considering cost reduction of a data reproducing apparatus and reduction of processing load. At this time, even if an error in the stream data is detected, if the packet in which the error has occurred can be identified, the optimum error processing corresponding to the packet can be performed.
しかしながら、特許文献1に開示された技術では、トランスポートストリームDMUXの前段でエラー検出が行われるため、トランスポートストリームを分離したパケット単位でエラーを検出することができない。そのため、ストリームデータのエラーが検出されたとしても、エラーが発生したパケットを特定できないという問題がある。
However, in the technique disclosed in
また特許文献2に開示された技術では、パケット識別子単位でフィルタリングを行うため、どのパケットでエラーが発生したかを特定することができないという問題がある。
Further, the technique disclosed in
本発明は、以上のような技術的課題に鑑みてなされたものであり、その目的とするところは、パケット単位でエラーを検出することで、エラー検出処理のための制御及び構成の簡素化を図るデコード装置、デコード方法、情報再生装置及び電子機器を提供することにある。 The present invention has been made in view of the technical problems as described above, and an object of the present invention is to detect errors on a packet basis, thereby simplifying control and configuration for error detection processing. A decoding device, a decoding method, an information reproducing device, and an electronic device are provided.
上記課題を解決するために本発明は、
パケットデータが多重化されたストリームデータに対してデコード処理を行うためのデコード装置であって、
前記ストリームデータから分離された固定長のパケットデータのエラーを検出し、エラーの有無を示すエラー情報を該パケットデータに付加するエラー処理部と、
前記パケットデータのデコード処理を行うためのデコーダとを含み、
前記パケットデータを可変長のセクションや可変長のパケットに変換することなく、前記エラー情報に基づいて、前記デコード処理又は前記パケットデータの廃棄を行うデコード装置に関係する。
In order to solve the above problems, the present invention
A decoding device for performing decoding processing on stream data in which packet data is multiplexed,
An error processing unit that detects an error in fixed-length packet data separated from the stream data and adds error information indicating the presence or absence of the error to the packet data;
A decoder for decoding the packet data,
The present invention relates to a decoding apparatus that performs the decoding process or discards the packet data based on the error information without converting the packet data into a variable-length section or a variable-length packet.
本発明によれば、ストリームデータから分離された固定長のパケットデータのエラー情報を該パケットデータに付加するようにして、パケットデータ単位でエラーの有無を判別できるようにしたので、エラーの発生したパケットデータを容易に特定することができるようになる。その結果、パケットデータを無駄に廃棄することがなくなる。更に、可変長のセクションやパケットに変換する必要がなくなるので、エラー処理の処理負荷を大幅に削減でき、エラー検出処理のための制御及び構成を簡素化できる。 According to the present invention, the error information of the fixed-length packet data separated from the stream data is added to the packet data so that the presence / absence of the error can be determined in packet data units. Packet data can be easily specified. As a result, packet data is not discarded wastefully. In addition, since it is not necessary to convert to a variable-length section or packet, the processing load for error processing can be greatly reduced, and the control and configuration for error detection processing can be simplified.
また本発明に係るデコード装置では、
前記エラー情報と前記パケットデータとが格納されるバッファを含み、
前記デコーダが、前記バッファから前記エラー情報及び前記パケットデータを読み出すと共に、該エラー情報に基づいてデコード処理又はパケットデータの廃棄を行うか決定することができる。
In the decoding device according to the present invention,
A buffer for storing the error information and the packet data;
The decoder can read out the error information and the packet data from the buffer and determine whether to perform a decoding process or discard the packet data based on the error information.
本発明によれば、バッファから読み出したパケットデータと該パケットデータに付加されるエラー情報を参照するだけで良いので、次々に到来するストリームデータのエラー検出処理の負荷を軽減して、処理の遅延を最小限に抑えることができるようになる。 According to the present invention, it is only necessary to refer to the packet data read from the buffer and the error information added to the packet data. Can be minimized.
また本発明に係るデコード装置では、
パケットデータを前記バッファに書き込むのに先立って、直前のパケットデータに付加されるエラー情報を前記バッファに書き込むことができる。
In the decoding device according to the present invention,
Prior to writing packet data to the buffer, error information added to the previous packet data can be written to the buffer.
本実施形態によれば、固定長のパケットデータのサイズ不足を容易に検出できるようになり、処理の遅延なく、次々と到来するストリームデータに対するエラー情報の付加処理を継続できる。 According to the present embodiment, it becomes possible to easily detect an insufficient size of fixed-length packet data, and it is possible to continue the process of adding error information to stream data that arrives one after another without any processing delay.
また本発明に係るデコード装置では、
前記エラー処理部が、
前記パケットデータを前記バッファに書き込むための書き込み要求中に該バッファへの別の書き込み要求が発生したことを示すエラー情報を前記パケットデータに付加することができる。
In the decoding device according to the present invention,
The error processing unit
Error information indicating that another write request to the buffer has occurred during a write request for writing the packet data to the buffer can be added to the packet data.
本発明によれば、パケットデータをバッファに書き込むための書き込み要求中に該バッファへの別の書き込み要求が発生したパケットデータか否かを示すことができる。これにより、バッファに格納されるパケットデータの内容が不完全な場合にまで敢えてパケットデータを解析する必要はなく、次に到来するパケットデータを待つ方が、正常なデコード処理を行うことができる可能性が高くなり、制御の簡素を図ることができる。 According to the present invention, it is possible to indicate whether or not the packet data is a request for another write to the buffer during the write request for writing the packet data to the buffer. Thus, it is not necessary to analyze the packet data until the packet data stored in the buffer is incomplete, and it is possible to perform normal decoding processing by waiting for the next incoming packet data. And the control can be simplified.
また本発明に係るデコード装置では、
前記エラー情報は、
該エラー情報が付加されるパケットデータに先立って読み出されるように前記バッファの記憶領域に格納されてもよい。
In the decoding device according to the present invention,
The error information is
The error information may be stored in the storage area of the buffer so as to be read prior to packet data to which the error information is added.
本発明によれば、エラー情報を読み出してエラーの有無を判別してからパケットデータをバッファから読み出すことができるようになるので、バッファに格納されたパケットデータのエラー検出処理を簡素化できる。 According to the present invention, the packet data can be read from the buffer after the error information is read and the presence or absence of the error is determined, so that the error detection processing of the packet data stored in the buffer can be simplified.
また本発明に係るデコード装置では、
前記パケットデータが、TS(Transport Stream)パケットであり、
前記TSパケットを可変長のセクションやPES(Packetized Elementary Stream)パケットに変換することなく、前記エラー情報に基づいて、前記デコード処理又は前記TSパケットの廃棄を行うことができる。
In the decoding device according to the present invention,
The packet data is a TS (Transport Stream) packet,
The decoding process or the discarding of the TS packet can be performed based on the error information without converting the TS packet into a variable-length section or a PES (Packetized Elementary Stream) packet.
また本発明に係るデコード装置では、
前記エラー処理部が、
PMT(Program Map Table)のデータ構造におけるtable_id、section_syntax_indicator、current_next_indicator、section_numberのうち少なくとも1つのエラーを検出し、エラーの有無を示すエラー情報を該パケットデータに付加することができる。
In the decoding device according to the present invention,
The error processing unit
At least one error can be detected from table_id, section_syntax_indicator, current_next_indicator, and section_number in the data structure of a PMT (Program Map Table), and error information indicating the presence or absence of an error can be added to the packet data.
本発明によれば、可変長のセクションやパケットに変換することなく、PMTのエラー検出処理を行うことができ、処理負荷を大幅に削減でき、エラー検出処理のための制御及び構成を簡素化できる。 According to the present invention, PMT error detection processing can be performed without converting into variable-length sections or packets, the processing load can be greatly reduced, and control and configuration for error detection processing can be simplified. .
また本発明に係るデコード装置では、
前記エラー処理部が、
PAT(Program Association Table)又はNIT(Network Information Table)のエラーを検出し、エラーの有無を示すエラー情報を前記パケットデータに付加することができる。
In the decoding device according to the present invention,
The error processing unit
An error in PAT (Program Association Table) or NIT (Network Information Table) can be detected, and error information indicating the presence or absence of an error can be added to the packet data.
また本発明に係るデコード装置では、
前記エラー情報に基づいて、PMT、PAT又はNITのエラーが検出されたパケットデータは廃棄されてもよい。
In the decoding device according to the present invention,
Based on the error information, packet data in which a PMT, PAT, or NIT error is detected may be discarded.
上記のいずれかの発明によれば、可変長のセクションやパケットに変換することなく、PMT、PAT又はNITのエラー検出処理を行うことができ、処理負荷を大幅に削減でき、エラー検出処理のための制御及び構成を簡素化できる。 According to any one of the above-described inventions, PMT, PAT, or NIT error detection processing can be performed without conversion into variable-length sections or packets, and the processing load can be greatly reduced. The control and configuration can be simplified.
また本発明は、
パケットデータが多重化されたストリームデータに対してデコード処理を行うためのデコード方法であって、
前記ストリームデータから分離された固定長のパケットデータのエラーを検出し、
エラーの有無を示すエラー情報を該パケットデータに付加し、
前記パケットデータを可変長のセクションや可変長のパケットに変換することなく、前記エラー情報に基づいて、前記パケットデータのデコード処理を行うか、前記パケットデータの廃棄を行うかを決定し、
前記エラー情報に基づいて前記パケットデータのデコード処理を行うことが決定されたとき、該デコード処理を行うデコード方法に関係する。
The present invention also provides
A decoding method for performing decoding processing on stream data in which packet data is multiplexed,
Detecting an error in fixed-length packet data separated from the stream data;
Add error information indicating the presence or absence of errors to the packet data,
Without converting the packet data into variable-length sections or variable-length packets, based on the error information, determine whether to decode the packet data or discard the packet data,
The present invention relates to a decoding method for performing the decoding process when it is determined to perform the decoding process of the packet data based on the error information.
また本発明は、
映像データ及び音声データの少なくとも1つを再生するための情報再生装置であって、
映像データを生成するための第1のTS(Transport Stream)パケット、音声データを生成するための第2のTSパケット、前記第1及び第2のTSパケット以外の第3のTSパケットを、トランスポートストリームから抽出する分離処理部と、
前記第1のTSパケットが格納される第1の記憶領域と、前記第2のTSパケットが格納される第2の記憶領域と、前記第3のTSパケットが格納される第3の記憶領域とを有するメモリと、
前記第1の記憶領域から読み出された前記第1のTSパケットに基づいて前記映像データを生成する映像デコード処理を行う映像デコーダと、
前記第2の記憶領域から読み出された前記第2のTSパケットに基づいて前記音声データを生成する音声デコード処理を行う音声デコーダとを含み、
前記分離処理部が、
前記第1〜第3のTSパケットの各TSパケットのエラーを検出し、エラーの有無を示すエラー情報を各TSパケットに付加し、
各TSパケットを可変長のセクションやPES(Packetized Elementary Stream)パケットに変換することなく、前記エラー情報に基づいて、前記映像デコード処理、前記音声デコード処理又はTSパケットの廃棄を行う情報再生装置に関係する。
The present invention also provides
An information reproducing apparatus for reproducing at least one of video data and audio data,
Transport a first TS (Transport Stream) packet for generating video data, a second TS packet for generating audio data, and a third TS packet other than the first and second TS packets. A separation processing unit for extracting from the stream;
A first storage area for storing the first TS packet; a second storage area for storing the second TS packet; and a third storage area for storing the third TS packet; A memory having
A video decoder for performing video decoding processing for generating the video data based on the first TS packet read from the first storage area;
An audio decoder that performs audio decoding processing for generating the audio data based on the second TS packet read from the second storage area;
The separation processing unit is
Detecting an error in each TS packet of the first to third TS packets, adding error information indicating the presence or absence of an error to each TS packet;
Related to an information reproducing apparatus that performs the video decoding process, the audio decoding process, or the discarding of the TS packet based on the error information without converting each TS packet into a variable-length section or a PES (Packetized Elementary Stream) packet To do.
本発明によれば、TSから分離された固定長のTSパケットのエラー情報を該TSパケットに付加するようにして、パケット単位でエラーの有無を判別できるようにしたので、エラーの発生したTSパケットを容易に特定することができるようになる。その結果、TSパケットを無駄に廃棄することがなくなる。更に、可変長のセクションやパケットに変換する必要がなくなるので、エラー処理の処理負荷を大幅に削減でき、エラー検出処理のための制御及び構成を簡素化できる。 According to the present invention, error information of a fixed-length TS packet separated from a TS is added to the TS packet so that the presence or absence of an error can be determined on a packet basis. Can be easily identified. As a result, TS packets are not wasted. In addition, since it is not necessary to convert to a variable-length section or packet, the processing load for error processing can be greatly reduced, and the control and configuration for error detection processing can be simplified.
また本発明に係る情報再生装置では、
前記映像デコーダが、前記第1の記憶領域から前記第1のTSパケットを、前記音声デコーダとは独立して読み出し、該第1のTSパケットに基づいて前記映像デコード処理を行うと共に、
前記音声デコーダが、前記第2の記憶領域から前記第2のTSパケットを、前記映像デコーダとは独立して読み出し、該第2のTSパケットに基づいて前記音声デコード処理を行うことができる。
In the information reproducing apparatus according to the present invention,
The video decoder reads the first TS packet from the first storage area independently of the audio decoder, performs the video decoding process based on the first TS packet,
The audio decoder can read the second TS packet from the second storage area independently of the video decoder, and perform the audio decoding process based on the second TS packet.
本発明によれば、上記の効果に加えて、処理能力の低い処理回路を用いて低消費電力で、処理負荷の重いデコード処理を実現する情報再生装置を提供できる。 According to the present invention, in addition to the above effects, it is possible to provide an information reproducing apparatus that realizes decoding processing with low power consumption and heavy processing load using a processing circuit with low processing capability.
また本発明に係る情報再生装置では、
前記映像データ及び音声データのうち前記映像データのみを再生するときは、前記音声デコーダの動作を停止させ、
前記映像データ及び音声データのうち前記音声データのみを再生するときは、前記デコード装置の動作を停止させることができる。
In the information reproducing apparatus according to the present invention,
When reproducing only the video data of the video data and audio data, stop the operation of the audio decoder,
When only the audio data of the video data and audio data is reproduced, the operation of the decoding device can be stopped.
本発明によれば、情報再生装置のより一層の低消費電力化を実現できる。 According to the present invention, further reduction in power consumption of the information reproducing apparatus can be realized.
また本発明は、
上記のいずれか記載の情報再生装置と、
前記情報再生装置に対し、前記映像デコード処理及び前記音声デコード処理の少なくとも1つの処理開始を指示するホストとを含む電子機器に関係する。
The present invention also provides
Any one of the information reproducing devices described above;
The present invention relates to an electronic apparatus including a host that instructs the information reproduction apparatus to start at least one of the video decoding process and the audio decoding process.
また本発明は、
チューナと、
前記チューナからのトランスポートストリームが供給される上記のいずれか記載の情報再生装置と、
前記情報再生装置に対し、前記映像デコード処理及び前記音声デコード処理の少なくとも1つの処理開始を指示するホストとを含む電子機器に関係する。
The present invention also provides
Tuner,
Any one of the above information reproducing apparatuses to which a transport stream from the tuner is supplied;
The present invention relates to an electronic apparatus including a host that instructs the information reproduction apparatus to start at least one of the video decoding process and the audio decoding process.
上記のいずれかの発明によれば、処理負荷の重い1セグメント放送の再生処理を低消費電力で実現できる電子機器を提供できる。 According to any one of the above-described inventions, it is possible to provide an electronic device that can realize the reproduction processing of one-segment broadcasting with heavy processing load with low power consumption.
以下、本発明の実施の形態について図面を用いて詳細に説明する。なお、以下に説明する実施の形態は、特許請求の範囲に記載された本発明の内容を不当に限定するものではない。また以下で説明される構成のすべてが本発明の必須構成要件であるとは限らない。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The embodiments described below do not unduly limit the contents of the present invention described in the claims. Also, not all of the configurations described below are essential constituent requirements of the present invention.
1. デコード装置
図1に、本実施形態におけるデコード装置の構成例のブロック図を示す。
1. Decoding Device FIG. 1 is a block diagram showing a configuration example of a decoding device according to this embodiment.
本実施形態におけるデコード装置10には、デジタルチューナ(広義にはチューナ)50からのトランスポートストリーム(Transport Stream:以下、TS)が入力される。このTSは、TSパケット(広義にはパケットデータ)が多重化されたストリームデータであり、例えばMPEG−2システム(ISO/IEC 13818-1)で規定されている。そして、デコード装置10は、このTSに対してデコード処理を行う。より具体的には、デコード装置10は、TSから抽出されるTSパケットに対してデコード処理を行う。デコード処理後のデータは、例えば図示しない表示部に転送されて画像として表示されたり、或いは図示しないスピーカに出力されて音声として出力されたりする。
A transport stream (hereinafter referred to as TS) from a digital tuner (tuner in a broad sense) 50 is input to the
デコード装置10は、分離処理部20と、デコーダ30と含むことができる。分離処理部20は、TSからTSパケットを分離する処理を行う。より具体的には、分離処理部20は、ホスト60の設定内容に基づき、TSからTSパケットを分離する処理を行う。デコーダ30は、分離処理部20によって分離されたTSパケットに対してデコード処理を行う。
The
このような分離処理部20は、エラー処理部22と、パケット分離部24とを含む。エラー処理部22は、TSから分離された固定長のTSパケット(広義にはパケットデータ)のエラーを検出し、該TSパケットのエラーの有無を示すエラー情報をTSパケットに付加する処理を行う。パケット分離部24は、TSからTSパケットを分離し、エラー処理部22からのエラー情報を付加したパケットを、デコード装置10が内蔵するバッファ40に格納する。即ち、バッファ40には、分離処理部20によってTSから分離されたTSパケットのみがバッファリングされるのではなく、TSパケットと該TSパケットのエラー情報とがバッファリングされる。なお、エラー情報をTSパケットに付加する処理は、エラー処理部22が行ってもよいし、パケット分離部24が行ってもよい。
Such a
そして、デコーダ30が、バッファ40からエラー情報及びTSパケットを読み出すと共に、該エラー情報に基づいてデコード処理又はTSパケットの廃棄を行うか決定することができる。例えばデコーダ30は、パケットの廃棄を決定したとき、その廃棄処理をホスト60に任せることができる。
Then, the
パケット分離部24は、TSから複数種類のTSパケットを分離し、分離したTSパケットを、バッファ40に予めTSパケットの種類毎に割り当てられた記憶領域に格納する。バッファ40には、番組情報としてのPMT(Program Map Table)を設定するためのTSパケット、ネットワーク情報としてのNIT(Network Information Table)を設定するためのTSパケット、文字/字幕情報を表示するためのTSパケット、BML(Broadcast Markup Language)を表示するためのTSパケット、PSI/SI(Program Specific Information/Service Information)を設定するためのTSパケット、画像を表示するための映像用TSパケット、音声を出力するための音声用TSパケットが、各記憶領域に格納される。
The
デコード装置10の外部に設けられたホスト60は、バッファ40から読み出したTSパケットに基づいて、PMT、NIT、文字/字幕情報、BML、PSI/SIを解析する。例えばホスト60は、PMTを解析して、映像用TSパケットや音声用TSパケットのパケット識別子(Packet Identifier:PID)を解析し、ホスト60は分離処理部20にPIDを通知する。これを受けた分離処理部20のパケット分離部24は、ホスト60によって設定されたPIDを参照して、デジタルチューナ50からのTSから、上述のように各TSパケットを分離する処理を行う。このとき、ホスト60は、バッファ40の各記憶領域に格納されたTSパケットに付加されたエラー情報を参照することで、所定のエラー処理を行うことができる。エラー処理としては、例えばTSパケットを廃棄したり、所与のエラーコンシールメント(Error Concealment)により、エラーの発生したTSパケットを修復し、修復後のTSパケットを用いてデコード処理を継続したりする。
The
デコーダ30は、バッファ40に格納された映像用TSパケット及び音声用TSパケットの少なくとも1つを読み出して、TSヘッダを解析してPES(Packet Elementary Stream)パケットを生成し、該PESパケットのPESヘッダを解析して、PESヘッダを削除後のES(Elementary Stream)データをバッファ40に書き戻す。このとき、デコーダ30は、バッファ40から読み出した映像用TSパケット又は音声用TSパケットに付加されたエラー情報を参照することで、所定のエラー処理を行うことができる。ここでもエラー処理としては、例えばTSパケットを廃棄したり、所与のエラーコンシールメント(Error Concealment)により、エラーの発生したTSパケットを修復し、修復後のTSパケットを用いてデコード処理を継続したりする。
The
デコーダ30は、バッファ40からESデータを読み出し、該ESデータに対してデコード処理を行う。
The
なお、図1において、デコード装置10の外部にホスト60及びデジタルチューナ50が設けられているが、ホスト60及びデジタルチューナ50の少なくとも1つをデコード装置10の内部に設けてもよい。或いは、図1において、分離処理部20、デコーダ30及びバッファ40の少なくとも1つを、デコード装置10の外部に設けてもよい。
In FIG. 1, the
以上のような構成を有する本実施形態によれば、TSパケット毎にエラーの発生を検出することができるので、可変長のセクションや可変長のパケットに変換することなくデコード処理を行うことができる。これにより、エラーの発生したTSパケットを特定することができ、エラー処理の結果、無駄にパケットを廃棄する事態を回避できるようになる。しかも、可変長のパケットに変換する必要がなくなるので、エラー処理の負荷を大幅に軽減でき、エラー処理の制御も簡素化できるようになる。 According to the present embodiment having the above-described configuration, it is possible to detect the occurrence of an error for each TS packet, so that decoding processing can be performed without conversion to a variable-length section or variable-length packet. . As a result, the TS packet in which an error has occurred can be specified, and a situation in which the packet is discarded wastefully as a result of error processing can be avoided. In addition, since it is not necessary to convert the packet into a variable-length packet, the error processing load can be greatly reduced, and the error processing control can be simplified.
図2に、本実施形態においてTSパケットに付加されるエラー情報の説明図を示す。 FIG. 2 is an explanatory diagram of error information added to the TS packet in the present embodiment.
分離処理部20のパケット分離部24は、デジタルチューナ50からのTSからTSパケットを分離する。パケット分離部24によって分離されるTSパケットは、188バイト長を有する固定長パケットである。エラー処理部22は、予め決められた種類のエラーの検出処理をTSパケットに対して行い、その検出処理結果を4バイト長のエラー情報として生成する。該エラー情報を受けたパケット分離部24は、4バイトのエラー情報をエラーの検出処理対象の188バイトのTSパケットに付加した192バイト長のパケットデータを、バッファ40に格納する処理を行う。
The
図3に、図2のエラー情報の詳細な説明図を示す。 FIG. 3 is a detailed explanatory diagram of the error information of FIG.
本実施形態におけるエラー情報は、4バイト(=32ビット)のうち予め決められたビットに、エラー検出処理結果としてエラーの有無を示すエラーステータスが設定される。図3においては、第29ビット〜第24ビット、第19ビット〜第16ビットにエラーステータスが設定される。 In the error information in the present embodiment, an error status indicating the presence / absence of an error is set as an error detection processing result in a predetermined bit of 4 bytes (= 32 bits). In FIG. 3, the error status is set in the 29th to 24th bits and the 19th to 16th bits.
図4に、図3のエラーステータスの内容の一例の説明図を示す。 FIG. 4 is an explanatory diagram showing an example of the contents of the error status shown in FIG.
エラー情報の第16ビットには、PMTのtable_idエラーの有無を示すエラーステータスが設定される。より具体的には、第16ビットには、TSパケットがPMTパケットの場合に、PMTパケットのデータ構造で規定されるtable_idが0x02(「0x」は16進数を示す)でないときに、table_idエラーが発生したと判断されて「1」が設定される。 In the 16th bit of the error information, an error status indicating whether or not there is a PMT table_id error is set. More specifically, in the 16th bit, when the TS packet is a PMT packet, when the table_id specified by the data structure of the PMT packet is not 0x02 ("0x" indicates a hexadecimal number), a table_id error is displayed. It is determined that it has occurred and “1” is set.
エラー情報の第17ビットには、PMTのsection_syntax_indicatorエラーの有無を示すエラーステータスが設定される。より具体的には、第17ビットには、TSパケットがPMTパケットの場合に、PMTパケットのデータ構造で規定されるsection_syntax_indicatorが0x01でないときに、section_syntax_indicatorエラーが発生したと判断されて「1」が設定される。 In the 17th bit of the error information, an error status indicating the presence / absence of a PMT section_syntax_indicator error is set. More specifically, in the 17th bit, when the TS packet is a PMT packet, if the section_syntax_indicator specified by the data structure of the PMT packet is not 0x01, it is determined that a section_syntax_indicator error has occurred and “1” is set. Is set.
エラー情報の第18ビットには、PMTのcurrent_next_indicatorエラーの有無を示すエラーステータスが設定される。より具体的には、第18ビットには、TSパケットがPMTパケットの場合に、PMTパケットのデータ構造で規定されるcurrent_next_indicatorが0x01でないときに、current_next_indicatorエラーが発生したと判断されて「1」が設定される。 In the 18th bit of the error information, an error status indicating the presence / absence of a PMT current_next_indicator error is set. More specifically, in the 18th bit, when the TS packet is a PMT packet, if the current_next_indicator specified by the data structure of the PMT packet is not 0x01, it is determined that a current_next_indicator error has occurred and “1” is set. Is set.
エラー情報の第19ビットには、PMTのsection_numberエラーの有無を示すエラーステータスが設定される。より具体的には、第19ビットには、TSパケットがPMTパケットの場合に、PMTパケットのデータ構造で規定されるsection_numberが0x00でないときに、section_numberエラーが発生したと判断されて「1」が設定される。 In the 19th bit of the error information, an error status indicating the presence / absence of a PMT section_number error is set. More specifically, in the 19th bit, when the TS packet is a PMT packet, if the section_number specified by the data structure of the PMT packet is not 0x00, it is determined that a section_number error has occurred and “1” is set. Is set.
エラー情報の第24ビットには、チューナエラーの有無を示すエラーステータスが設定される。より具体的には、第24ビットには、デジタルチューナ50からのRS(Read Solomon)符号エラーのときに、チューナエラーが発生したと判断されて「1」が設定される。RS符号エラーは、例えばRS符号による誤り訂正が不可能なときに発生する。
An error status indicating the presence or absence of a tuner error is set in the 24th bit of the error information. More specifically, in the 24th bit, when an RS (Read Solomon) code error from the
エラー情報の第25ビットには、同期バイト不一致エラーの有無を示すエラーステータスが設定される。より具体的には、第25ビットには、TSパケットの同期バイトが、予め決められた同期バイトと異なるときに、同期バイト不一致エラーが発生したと判断されて「1」が設定される。 In the 25th bit of the error information, an error status indicating the presence / absence of a synchronization byte mismatch error is set. More specifically, in the 25th bit, when the synchronization byte of the TS packet is different from the predetermined synchronization byte, it is determined that a synchronization byte mismatch error has occurred and “1” is set.
エラー情報の第26ビットには、巡回冗長検査(Cyclic Redundancy Check:以下、CRC)エラーの有無を示すエラーステータスが設定される。より具体的には、第26ビットには、TSパケットがPMTパケットの場合に、CRCエラーが検出されたときに、CRCエラーが発生したと判断されて「1」が設定される。 In the 26th bit of the error information, an error status indicating whether there is a cyclic redundancy check (CRC) error is set. More specifically, in the 26th bit, when a CRC error is detected when the TS packet is a PMT packet, it is determined that a CRC error has occurred and “1” is set.
エラー情報の第27ビットには、TSパケットサイズ不足の有無を示すエラーステータスが設定される。より具体的には、第27ビットには、TSパケットのサイズが188バイト未満のときに、TSパケットサイズ不足が発生したと判断されて「1」が設定される。 In the 27th bit of the error information, an error status indicating whether or not the TS packet size is insufficient is set. More specifically, in the 27th bit, when the TS packet size is less than 188 bytes, it is determined that the TS packet size is insufficient, and “1” is set.
エラー情報の第28ビットには、TSパケットサイズオーバの有無を示すエラーステータスが設定される。より具体的には、第28ビットには、TSパケットのサイズが189バイト以上のときに、TSパケットサイズオーバが発生したと判断されて「1」が設定される。 In the 28th bit of the error information, an error status indicating whether or not the TS packet size is over is set. More specifically, in the 28th bit, when the size of the TS packet is 189 bytes or more, it is determined that the TS packet size is over and “1” is set.
エラー情報の第29ビットには、分離処理部20(パケット分離部24)のバッファ40への書き込み要求中に、バッファ40に別の書き込み要求が発生したか否かを示すエラーステータスが設定される。即ち、エラー処理部22が、パケットデータをバッファ40に書き込むための書き込み要求中に該バッファ40への別の書き込み要求が発生したことを示すエラー情報をパケットデータに付加するということができる。分離処理部20(パケット分離部24)がTSパケット及びエラー情報をバッファ40に書き込みを行っている最中に、例えばデコーダ30がバッファ40に対して書き込み要求を行ったときに、「1」が設定される。これは、次々到来するTSを処理する場合に、各部の処理が追いつかずに、2つの書き込み要求を受けたバッファ40への書き込みデータが完全なものであることを保証できないことを示し、TSパケットのデコード処理を継続するか否かの判断は後段に任せるためにエラーステータスが「1」に設定される。
The 29th bit of the error information is set with an error status indicating whether another write request has occurred in the buffer 40 during a write request to the buffer 40 of the separation processing unit 20 (packet separation unit 24). . That is, it can be said that the
例えば第16ビット、第17ビット、第18ビット、及び第19ビットのうち少なくとも1つが「1」の場合、当該エラーステータスを含むエラー情報が付加されたTSパケットを廃棄することが望ましい。これは、PMTを解析するホスト60によって、分離処理部20で分離されるTSパケットが決定されるため、PMTの内容が不完全な場合にまで敢えてPMTを解析する必要はなく、TSパケットを廃棄して次に到来するPMTを待つ方が、正常なTSパケットで再生できる可能性が高くなり、制御の簡素を図ることができるからである。
For example, when at least one of the 16th bit, the 17th bit, the 18th bit, and the 19th bit is “1”, it is desirable to discard the TS packet to which the error information including the error status is added. This is because since the TS packet to be separated by the
なお、図4に示すすべてのエラーステータスを検出する必要はなく、PMTのデータ構造におけるtable_id、section_syntax_indicator、current_next_indicator、section_numberのうち少なくとも1つのエラーを検出し、エラーの有無を示すエラー情報を該パケットデータに付加してもよい。 Note that it is not necessary to detect all the error statuses shown in FIG. 4, but at least one error is detected from table_id, section_syntax_indicator, current_next_indicator, and section_number in the data structure of the PMT, and error information indicating the presence / absence of an error is indicated in the packet data May be added.
ところで、エラー処理部22において生成されるエラー情報は、該エラー情報が付加されるパケットデータに先立って読み出されるようにバッファ40の記憶領域に格納されることが望ましい。
Incidentally, the error information generated in the
図5に、本実施形態におけるエラー情報及びTSパケットのバッファ40の格納状況の説明図を示す。 FIG. 5 is an explanatory diagram of the storage status of the error information and TS packet buffer 40 in the present embodiment.
バッファ40にアドレス値が割り振られており、該アドレス値によってTSパケットが格納される各記憶領域が特定されるようになっている。ここで、例えばデコーダ30が、アドレス値の小さい記憶領域からアドレス値の大きい記憶領域まで順番にTSパケット及びエラー情報を読み出すものとする。
An address value is allocated to the buffer 40, and each storage area in which the TS packet is stored is specified by the address value. Here, for example, it is assumed that the
このとき本実施形態におけるエラー情報をアドレス値の小さい0番地の記憶領域に格納し、該エラー情報を付加するTSパケットをアドレス値の大きい1番地〜47番地の記憶領域に格納することが望ましい。このように、TSパケット毎に、該TSパケットの記憶領域よりもアドレス値の記憶領域にエラー情報を格納することで、例えばデコーダ30又はホスト60は、まずエラー情報を読み出してエラーの判別をすればよい。例えばTSパケットを廃棄することを決定した場合、その後のアドレス値の大きい記憶領域に格納されるTSパケットを読み出すことなく、次のTSパケットのエラー情報を読み出す処理を行えばよい。
At this time, it is desirable to store the error information in the present embodiment in the storage area of
図6に、本実施形態におけるエラー情報の付加のタイミングの一例を示す。 FIG. 6 shows an example of timing for adding error information in the present embodiment.
デジタルチューナ50からは204バイトの伝送TSP(Transport Stream Packet)がデコード装置10に入力される。伝送TSPは、188バイト長のTSパケットと16バイト長のRS符号のパリティビットとが多重化されたストリームデータである。
From the
例えば時刻TG1に、デコード装置10に伝送TSPが入力されたとき、エラー処理部22は、エラー検出処理を開始する。また、パケット分離部24も、ホスト60によって設定されたPIDに対応したTSパケットを分離する処理を開始し、時刻TG2以降、分離したTSパケットをバッファ40に格納する処理を行う。
For example, when a transmission TSP is input to the
そして、次の伝送TSが時刻TG10に入力されたとき、時刻TG1に開始したエラー検出処理結果であるエラー情報を、図5に示したように、TSパケットより読み出し順序が先になるようにバッファ40に格納する。即ち、時刻TG10で開始される分離処理の結果得られたパケットデータをバッファ40に書き込むのに先立って、直前のパケットデータに付加されるエラー情報をバッファ40に書き込む。こうすることで、図4に示すTSパケットサイズ不足を容易に検出し、且つ処理の遅延なく、次々と到来する伝送TSPに対するエラー情報の付加処理を継続できる。 Then, when the next transmission TS is input at time TG10, the error information, which is the error detection processing result started at time TG1, is buffered so that the reading order comes before the TS packet, as shown in FIG. 40. That is, prior to writing the packet data obtained as a result of the separation process started at time TG10 into the buffer 40, error information added to the immediately preceding packet data is written into the buffer 40. By doing so, it is possible to easily detect the TS packet size shortage shown in FIG. 4 and continue the error information addition processing for the successively transmitted TSPs without any processing delay.
これ以降、同様にTSパケット及びエラー情報の格納処理が行われる。このとき、図1に示すように、バッファ40には、PMTを設定するためのTSパケット、NITを設定するためのTSパケット、文字/字幕情報を表示するためのTSパケット、BMLを表示するためのTSパケット、PSI/SIを設定するためのTSパケット、映像用TSパケット、音声用TSパケットが、各記憶領域に格納される。 Thereafter, the TS packet and error information are similarly stored. At this time, as shown in FIG. 1, the buffer 40 displays a TS packet for setting the PMT, a TS packet for setting the NIT, a TS packet for displaying character / caption information, and BML. TS packets, TS packets for setting PSI / SI, video TS packets, and audio TS packets are stored in each storage area.
次に、このように検出されたエラー情報を参照するホスト60及びデコーダ30の処理例について説明する。
Next, processing examples of the
図7に、本実施形態におけるホスト60のエラー処理の一例のフロー図を示す。
FIG. 7 shows a flowchart of an example of error processing of the
ホスト60は、図示しないメモリに格納されたプログラムを読み出し、該プログラムに対応した処理を実行することで図7に示す処理を行うことができるようになっている。
The
まず、ホスト60は、バッファ40からPMTを設定するためのTSパケットを1パケット分読み出して、取得する(ステップS10)。このとき、ホスト60は、エラー情報及びTSパケットを読み出す。そして、図3及び図4に示すように、第16ビット〜第19ビット(或いは第26ビットも含めて)のいずれかのエラーステータスが「1」であるか否かを判別する(ステップS11)。
First, the
ステップS11において、上述のいずれのエラーステータスも「0」であることが判別されたとき(ステップS11:Y)、TSパケットのヘッダであるTSヘッダのパケットユニット開始表示(Packet Unit Start Indicator:以下、PUSI)が「1」であるか否かを判別する(ステップS12)。複数のペイロードを連結することでセクションが生成される場合に、PUSIが「1」のパケットのペイロードがそのセクションの先頭のパケットであることを示す。 When it is determined in step S11 that any of the above error statuses is “0” (step S11: Y), a packet unit start indicator (hereinafter referred to as a packet unit start indicator) of the TS header that is the header of the TS packet is described below. It is determined whether or not (PUSI) is “1” (step S12). When a section is generated by concatenating a plurality of payloads, it indicates that the payload of a packet whose PUSI is “1” is the head packet of the section.
ステップS12において、PUSIが「1」であることが検出されたとき(ステップS12:Y)、ホスト60はTSヘッダを削除する処理を行い(ステップS13)、ヘッダ削除後のデータを、図示しないメモリのセクションメモリエリア内に保存する(ステップS14)。
When it is detected in step S12 that the PUSI is “1” (step S12: Y), the
そして、1つのセクションを取得したと判別されたとき(ステップS15:Y)、一連の処理を終了する(エンド)。 When it is determined that one section has been acquired (step S15: Y), a series of processing ends (end).
ステップS11において上述のいずれかのエラーステータスが「1」であることが検出されたとき(ステップS11:N)、ステップS12においてPUSIが「0」であることが検出されたとき(ステップS12:N)、或いはステップS15において1つのセクションを取得していないと判別されたとき(ステップS15:N)、バッファ40のリードポインタを更新する処理を行い(ステップS16)、ステップS10に戻る。 When it is detected in step S11 that one of the error statuses described above is “1” (step S11: N), or when PUSI is detected as “0” in step S12 (step S12: N) ), Or when it is determined in step S15 that one section has not been acquired (step S15: N), a process of updating the read pointer of the buffer 40 is performed (step S16), and the process returns to step S10.
なお、図7では、ホスト60が、エラー情報及びTSパケットを同時に読み出すものとして説明したが、エラー情報を読み出してエラーが検出されなかったことを条件に、該エラー情報が付加されるTSパケットを読み出してもよい。ただ、図7のようにエラー情報及びTSパケットを同時に読み出した場合であっても、図5のようにエラー情報が格納されているため、リードポインタの更新処理が簡素化されるという効果が得られる。
In FIG. 7, the
以上のように、ホスト60は、セクションを取得すると、該セクションを解析した結果として、映像用TSパケットや音声用TSパケットのPIDを抽出し、該PIDを分離処理部20に設定する処理を行う。また、ホスト60は、図3及び図4に示すように、第16ビット〜第19ビット(或いは第26ビットも含めて)のいずれかのエラーステータスが「1」であることが検出されたとき、バッファ40のリードポインタを更新する。即ち、バッファ40に格納された当該TSパケットを廃棄する処理を行う。
As described above, when the
図8に、本実施形態におけるデコーダ30のエラー処理の一例のフロー図を示す。
FIG. 8 shows a flowchart of an example of error processing of the
デコーダ30は、図示しないメモリに格納されたプログラムを読み出し、該プログラムに対応した処理を実行することで図8に示す処理を行うことができるようになっている。
The
デコーダ30は、エラー情報に基づいてエラーの発生が検出された回数を示すエラーカウントを保持するようになっており、該エラーカウントを初期化する処理を行う(ステップS20)。次に、デコーダ30は、バッファ40からTSパケットを読み出す(ステップS21)。このとき、デコーダ30は、エラー情報及びTSパケットを読み出す。
The
そして、図4のエラーステータスのうち、第24ビット、第25ビット、第27ビット、第28ビット、第29ビットのいずれもが「0」であるか否かを判別する(ステップS22)。そして、エラーステータスのいずれもが「0」であることが検出されたとき(ステップS22:Y)、所与の映像デコード処理又は音声デコード処理を行い(ステップS23)、一連の処理を終了する(エンド)。 Then, it is determined whether or not all of the 24th bit, 25th bit, 27th bit, 28th bit, and 29th bit are “0” in the error status of FIG. 4 (step S22). When it is detected that both of the error statuses are “0” (step S22: Y), a given video decoding process or audio decoding process is performed (step S23), and a series of processes is terminated (step S23). End).
ステップS22において、上述のエラーステータスのいずれかが「1」であることが検出されたとき(ステップS22:N)、エラーカウントをインクリメントする(ステップS24)。インクリメント後のエラーカウントが所与の閾値以上であるか否かを判別し(ステップS25)、該エラーカウントが閾値以上であることが検出されたとき(ステップS26:Y)、デコーダ30はホスト60にエラーの発生をコマンドで通知し(ステップS26)、ステップS20に戻る。例えばエラーステータスの種類毎にエラーカウントをインクリメントすることで、コマンドを受けたホスト60は、発生したエラーに応じたエラー処理を行うことができる。例えばチューナエラーが頻発する場合は、その旨を表示したり、チューナを初期化したり、TSパケットを廃棄したりできる。
In step S22, when it is detected that any of the error statuses described above is “1” (step S22: N), the error count is incremented (step S24). It is determined whether or not the incremented error count is equal to or greater than a given threshold value (step S25). When it is detected that the error count is equal to or greater than the threshold value (step S26: Y), the
ステップS25において、インクリメント後のエラーカウントが所与の閾値以上ではないことが検出されたとき(ステップS25:N)、ステップS21に戻る。 In step S25, when it is detected that the incremented error count is not greater than or equal to the given threshold value (step S25: N), the process returns to step S21.
なお、図8では、デコーダ30が、エラー情報及びTSパケットを同時に読み出すものとして説明したが、エラー情報を読み出してエラーが検出されなかったことを条件に、該エラー情報が付加されるTSパケットを読み出してもよい。
In FIG. 8, the
以上のように、デコーダ30は、エラーが検出されたときデコード処理を行わず、エラーカウントが閾値以上になったときホスト60にエラー処理を任せることができる。従って、TSパケットを可変長のセクションや可変長のPES(Packetized Elementary Stream)パケットに変換することなく、エラーの発生を検出でき、デコード処理又はTSパケットの廃棄を行わせることが可能となる。
As described above, the
1.1 変形例
なお、本実施形態では、PMTのエラーを検出するものとして説明したが、これに限定されるものではなく、図9に示すようなパケットについてエラーを検出し、そのエラー情報をTSパケットに付加することができる。
1.1 Modification In this embodiment, the PMT error is described as being detected. However, the present invention is not limited to this. An error is detected for a packet as shown in FIG. It can be added to the TS packet.
ここでは、図9のパケットのうち、NITパケットのエラーを検出する場合について説明する。 Here, a case where an error of the NIT packet among the packets of FIG. 9 is detected will be described.
図10に、本実施形態におけるエラーステータスの他の例を示す。 FIG. 10 shows another example of the error status in this embodiment.
例えばエラー情報の所定のビットには、NITのtable_idエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがNITパケットの場合に、NITパケットのデータ構造で規定されるtable_idが0x40でないときに、table_idエラーが発生したと判断されて「1」が設定される。 For example, an error status indicating the presence / absence of a NIT table_id error is set in a predetermined bit of the error information. More specifically, when the TS packet is a NIT packet, if the table_id defined by the data structure of the NIT packet is not 0x40, it is determined that a table_id error has occurred and “1” is set.
また、エラー情報の所定のビットには、NITのsection_syntax_indicatorエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがNITパケットの場合に、NITパケットのデータ構造で規定されるsection_syntax_indicatorが0x01でないときに、section_syntax_indicatorエラーが発生したと判断されて「1」が設定される。 In addition, an error status indicating the presence / absence of a NIT section_syntax_indicator error is set in a predetermined bit of the error information. More specifically, when the TS packet is a NIT packet, if the section_syntax_indicator specified by the data structure of the NIT packet is not 0x01, it is determined that a section_syntax_indicator error has occurred and “1” is set.
或いはエラー情報の所定のビットには、NITのnetwork_idエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがNITパケットの場合に、NITパケットのデータ構造で規定されるnetwork_idがPATから得られたTS_idと同一値でないときに、network_idエラーが発生したと判断されて「1」が設定される。 Alternatively, an error status indicating the presence / absence of an NIT network_id error is set in a predetermined bit of the error information. More specifically, when the TS packet is a NIT packet, if the network_id defined by the data structure of the NIT packet is not the same value as the TS_id obtained from the PAT, it is determined that a network_id error has occurred and “1 Is set.
或いはまた、エラー情報の所定のビットには、NITのcurrent_next_indicatorエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがNITパケットの場合に、NITパケットのデータ構造で規定されるcurrent_next_indicatorが0x01でないときに、current_next_indicatorエラーが発生したと判断されて「1」が設定される。 Alternatively, an error status indicating the presence / absence of a NIT current_next_indicator error is set in a predetermined bit of the error information. More specifically, when the TS packet is a NIT packet, if the current_next_indicator defined by the data structure of the NIT packet is not 0x01, it is determined that a current_next_indicator error has occurred and “1” is set.
更には、エラー情報の所定のビットには、NITのsection_numberエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがNITパケットの場合に、NITパケットのデータ構造で規定されるsection_numberが、NITにおけるlast_section_number以下のときに、section_numberエラーが発生したと判断されて「1」が設定される。 Furthermore, an error status indicating the presence / absence of an NIT section_number error is set in a predetermined bit of the error information. More specifically, when the TS packet is a NIT packet, if the section_number specified in the data structure of the NIT packet is equal to or less than the last_section_number in the NIT, it is determined that a section_number error has occurred and “1” is set. The
図11に、本実施形態の変形例におけるホスト60のエラー処理の一例のフロー図を示す。
FIG. 11 shows a flowchart of an example of error processing of the
図11では、NITのエラー情報に基づくエラー処理の例を示している。 FIG. 11 shows an example of error processing based on NIT error information.
ホスト60は、図示しないメモリに格納されたプログラムを読み出し、該プログラムに対応した処理を実行することで図11に示す処理を行うことができるようになっている。
The
まず、ホスト60は、バッファ40からNITを設定するためのTSパケットを1パケット分読み出して、取得する(ステップS30)。このとき、ホスト60は、エラー情報及びTSパケットを読み出す。そして、図10に示すいずれかのエラーステータスが「1」であるか否かを判別する(ステップS31)。
First, the
ステップS31において、上述のいずれのエラーステータスも「0」であることが判別されたとき(ステップS31:Y)、TSパケットのヘッダであるTSヘッダのPUSIが「1」であるか否かを判別する(ステップS32)。 When it is determined in step S31 that any of the above error statuses is “0” (step S31: Y), it is determined whether or not the PUSI of the TS header that is the header of the TS packet is “1”. (Step S32).
ステップS32において、PUSIが「1」であることが検出されたとき(ステップS32:Y)、ホスト60はTSヘッダを削除する処理を行い(ステップS33)、ヘッダ削除後のデータを、図示しないメモリのセクションメモリエリア内に保存する(ステップS34)。
When it is detected in step S32 that the PUSI is “1” (step S32: Y), the
そして、1つのセクションを取得したと判別されたとき(ステップS35:Y)、一連の処理を終了する(エンド)。 When it is determined that one section has been acquired (step S35: Y), a series of processing ends (end).
ステップS31において上述のいずれかのエラーステータスが「1」であることが検出されたとき(ステップS31:N)、ステップS32においてPUSIが「0」であることが検出されたとき(ステップS32:N)、或いはステップS35において1つのセクションを取得していないと判別されたとき(ステップS35:N)、バッファ40のリードポインタを更新する処理を行い(ステップS36)、ステップS30に戻る。 When it is detected in step S31 that one of the error statuses described above is “1” (step S31: N), or when PUSI is detected as “0” in step S32 (step S32: N) ), Or when it is determined in step S35 that one section has not been acquired (step S35: N), a process of updating the read pointer of the buffer 40 is performed (step S36), and the process returns to step S30.
なお、図11では、ホスト60が、エラー情報及びTSパケットを同時に読み出すものとして説明したが、エラー情報を読み出してエラーが検出されなかったことを条件に、該エラー情報が付加されるTSパケットを読み出してもよい。ただ、図11のようにエラー情報及びTSパケットを同時に読み出した場合であっても、図5のようにエラー情報が格納されているため、リードポインタの更新処理が簡素化される効果が得られる。
In FIG. 11, the
以上のように、ホスト60は、セクションを取得すると、該セクションを解析した結果として、映像用TSパケットや音声用TSパケットのPIDを抽出し、該PIDを分離処理部20に設定する処理を行う。また、ホスト60は、図10に示すいずれかのエラーステータスが「1」であることが検出されたとき、バッファ40のリードポインタを更新する。即ち、バッファ40に格納された当該TSパケットを廃棄する処理を行う。
As described above, when the
本変形例において、デコーダ30のエラー処理は本実施形態と同様であるため、説明を省略する。
In this modification, the error processing of the
なお、本変形例におけるNITのエラー情報の付加を、本実施形態におけるPMTのエラー情報の付加に代えて、或いは加えてもよい。 Note that the addition of NIT error information in the present modification may be replaced with or added to the addition of PMT error information in the present embodiment.
図12に、本実施形態の他の変形例におけるエラーステータスの例を示す。 FIG. 12 shows an example of an error status in another modification of the present embodiment.
例えばエラー情報の所定のビットには、PATのtable_idエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがPATパケットの場合に、PATパケットのデータ構造で規定されるtable_idが0x00でないときに、table_idエラーが発生したと判断されて「1」が設定される。 For example, an error status indicating the presence / absence of a PAT table_id error is set in a predetermined bit of error information. More specifically, when the TS packet is a PAT packet and the table_id defined by the data structure of the PAT packet is not 0x00, it is determined that a table_id error has occurred and “1” is set.
また、エラー情報の所定のビットには、PATのsection_syntax_indicatorエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがPATパケットの場合に、PATパケットのデータ構造で規定されるsection_syntax_indicatorが0x01でないときに、section_syntax_indicatorエラーが発生したと判断されて「1」が設定される。 Also, an error status indicating whether or not there is a PAT section_syntax_indicator error is set in a predetermined bit of the error information. More specifically, when the TS packet is a PAT packet, if the section_syntax_indicator defined by the data structure of the PAT packet is not 0x01, it is determined that a section_syntax_indicator error has occurred and “1” is set.
或いは、エラー情報の所定のビットには、PATのcurrent_next_indicatorエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがPATパケットの場合に、PATパケットのデータ構造で規定されるcurrent_next_indicatorが0x01でないときに、current_next_indicatorエラーが発生したと判断されて「1」が設定される。 Alternatively, an error status indicating whether or not there is a PAT current_next_indicator error is set in a predetermined bit of the error information. More specifically, when the TS packet is a PAT packet, if the current_next_indicator specified by the data structure of the PAT packet is not 0x01, it is determined that a current_next_indicator error has occurred and “1” is set.
更には、エラー情報の所定のビットには、PATのsection_numberエラーの有無を示すエラーステータスが設定される。より具体的には、TSパケットがPATパケットの場合に、PATパケットのデータ構造で規定されるsection_numberが0x00ではないときに、section_numberエラーが発生したと判断されて「1」が設定される。 Furthermore, an error status indicating whether or not there is a PAT section_number error is set in a predetermined bit of the error information. More specifically, when the TS packet is a PAT packet and the section_number defined by the data structure of the PAT packet is not 0x00, it is determined that a section_number error has occurred and “1” is set.
ホスト60のエラー処理は、PATの場合もNITの場合も同様であるため、詳細な説明を省略する。また、デコーダ30のエラー処理もまた、図8と同様であるため、詳細な説明を省略する。
Since the error processing of the
以上のように、本変形例によれば、PAT又はNITのエラーを検出し、エラーの有無を示すエラー情報をパケットデータに付加することができる。なお、本変形例におけるNIT及びPATのエラー情報の付加を、本実施形態におけるPMTのエラー情報の付加に代えて、或いは加えて行ってもよい。そして、エラー情報に基づいて、PMT、PAT又はNITのエラーが検出されたパケットデータは廃棄されることが望ましい。 As described above, according to this modification, it is possible to detect a PAT or NIT error and add error information indicating the presence or absence of an error to packet data. The addition of NIT and PAT error information in this modification may be performed instead of or in addition to the addition of PMT error information in the present embodiment. Then, it is desirable to discard the packet data in which the PMT, PAT, or NIT error is detected based on the error information.
以上説明したように、本実施形態又はその変形例におけるデコード装置によれば、パケット単位にエラーを検出してバッファリングされるので、エラーの発生したパケットを特定でき、無駄なTSパケットの廃棄を行うことなくエラー検出処理のための制御及び構成の簡素化できる。 As described above, according to the decoding device in the present embodiment or its modification, errors are detected and buffered in units of packets, so that packets with errors can be identified and useless TS packets can be discarded. It is possible to simplify the control and configuration for error detection processing without performing it.
2. 情報再生装置
次に、本実施形態又はその変形例における上述のデコード装置が適用される情報再生装置について説明する。本実施形態における情報再生装置は、地上デジタル放送の再生を行うことができる。
2. Information Reproducing Device Next, an information reproducing device to which the above-described decoding device in the present embodiment or its modification is applied will be described. The information reproducing apparatus according to the present embodiment can reproduce digital terrestrial broadcasting.
2.1 1セグメント放送の概要
地上アナログ放送に代わって登場する地上デジタル放送では、画像及び音声の高品質化に加えて種々の新サービスの提供に期待が寄せられている。
2.1 Overview of 1-segment broadcasting In terrestrial digital broadcasting that appears in place of terrestrial analog broadcasting, there are high expectations for the provision of various new services in addition to improving the quality of images and audio.
図13に、地上デジタル放送のセグメントの概念の説明図を示す。 FIG. 13 is an explanatory diagram of the concept of digital terrestrial broadcast segments.
地上デジタル放送では、予め割り当てられた周波数帯域を14個のセグメントに分割し、そのうちの13個のセグメントSEG1〜SEG13を使って放送が行われる。残り1個のセグメントは、ガードバンドとして用いられる。そして、放送を行うための13個のセグメントのうちの1個のセグメントSEGmが、携帯端末向けの放送の周波数帯域に割り当てられる。 In digital terrestrial broadcasting, a pre-assigned frequency band is divided into 14 segments, and broadcasting is performed using 13 segments SEG1 to SEG13. The remaining one segment is used as a guard band. Then, one segment SEGm out of 13 segments for broadcasting is allocated to the frequency band of broadcasting for mobile terminals.
1セグメント放送では、それぞれが符号化(圧縮処理)された映像データ、音声データ、その他のデータ(制御データ)が多重化されたトランスポートストリーム(Transport Stream:TS)が伝送される。より具体的には、TSの各パケットにリードソロモン符号の誤り訂正用符号が付加された後、階層分割され、各階層において畳み込み符号化やキャリア変調が施される。そして、階層合成後に、周波数インターリーブ、時間インターリーブが行われ、受信側に必要なパイロット信号を付加してOFDMセグメントフレームが形成される。このOFDMセグメントフレームに対し、逆フーリエ変換演算が施されてOFDM信号として伝送される。 In one-segment broadcasting, a transport stream (Transport Stream: TS) in which video data, audio data, and other data (control data) encoded (compressed) are multiplexed is transmitted. More specifically, a Reed-Solomon error correction code is added to each packet of the TS, and then divided into layers, and convolutional coding and carrier modulation are performed in each layer. After layer synthesis, frequency interleaving and time interleaving are performed, and a pilot signal necessary for the receiving side is added to form an OFDM segment frame. The OFDM segment frame is subjected to inverse Fourier transform operation and transmitted as an OFDM signal.
図14に、TSの説明図を示す。 FIG. 14 is an explanatory diagram of TS.
TSは、図14に示すように複数のTSパケット列で構成されている。各TSパケットの長さは、188バイトに固定されている。各TSパケットは、4バイトのTSヘッダ(TS Header:TSH)と呼ばれるヘッダ情報が付加されており、TSパケットの識別子となるPID(Packet Identifier)を含む。1セグメント放送の番組は、PIDにより特定される。 The TS is composed of a plurality of TS packet sequences as shown in FIG. The length of each TS packet is fixed to 188 bytes. Each TS packet has header information called a 4-byte TS header (TS header) added thereto, and includes a PID (Packet Identifier) serving as an identifier of the TS packet. One segment broadcast program is specified by PID.
TSパケットは、アダプテーションフィールドを含み、映像データ、音声データ等の同期再生の基準となる時刻情報であるPCR(Program Clock Reference)やダミーデータが埋め込まれる。ペイロードは、PES(Packetized Elementary Stream)パケットやセクションを生成するためのデータを含む。 The TS packet includes an adaptation field, and is embedded with PCR (Program Clock Reference) and dummy data which are time information serving as a reference for synchronous reproduction of video data, audio data, and the like. The payload includes data for generating a PES (Packetized Elementary Stream) packet or section.
図15に、PESパケット及びセクションの説明図を示す。 FIG. 15 is an explanatory diagram of PES packets and sections.
PESパケット及びセクションのそれぞれは、1又は複数のTSパケットの各TSパケットのペイロードにより構成される。PESパケットは、PESヘッダとペイロードとを含み、該ペイロードには、映像データ、音声データ又は字幕データがES(Elementary Stream)データとして設定される。セクションには、PESパケットに設定される映像データ等の番組情報等が設定される。 Each of the PES packet and the section is configured by the payload of each TS packet of one or a plurality of TS packets. The PES packet includes a PES header and a payload, and video data, audio data, or caption data is set as ES (Elementary Stream) data in the payload. In the section, program information such as video data set in the PES packet is set.
従って、TSを受信すると、まずセクションに含まれる番組情報を解析し、放送される番組に対応するPIDを特定する必要がある。そして、該PIDに対応する映像データ、音声データをTSから抽出し、抽出後の映像データ、音声データを再生することになる。 Therefore, when a TS is received, first, it is necessary to analyze program information included in the section and specify a PID corresponding to the broadcast program. Then, video data and audio data corresponding to the PID are extracted from the TS, and the extracted video data and audio data are reproduced.
2.2 携帯端末
1セグメント放送の受信機能を有する携帯端末では、上記のようなパケットの解析等の処理が必要となる。即ち、このような携帯端末では、高い処理能力が要求される。そのため、携帯端末(広義には電子機器)としての従来の携帯電話機に、1セグメント放送の受信機能を付加する場合には、高い処理能力を有するプロセッサ等を更に追加する必要がある。
2.2 Mobile terminal A mobile terminal having a 1-segment broadcast reception function requires processing such as packet analysis as described above. That is, such a mobile terminal is required to have a high processing capacity. Therefore, when a one-segment broadcast receiving function is added to a conventional mobile phone as a mobile terminal (electronic device in a broad sense), it is necessary to further add a processor or the like having a high processing capability.
図16に、本実施形態の比較例におけるマルチメディア処理CPUを含む携帯電話機の構成例のブロック図を示す。 FIG. 16 shows a block diagram of a configuration example of a mobile phone including a multimedia processing CPU in a comparative example of the present embodiment.
この携帯電話機900では、アンテナ910を介して受信された受信信号を復調して電話用CPU920が着呼処理を行い、電話用CPU920が発呼処理を行った信号が変調されてアンテナ910を介して送信される。電話用CPU920は、メモリ922に格納されたプログラムを読み込んで着呼処理及び発呼処理を行うことができる。
In this
またアンテナ930を介して受信された受信信号から、チューナ940を介して希望信号が取り出されると、該希望信号をOFDM信号として上記と逆の手順でTSが生成される。マルチメディア処理CPU950は、生成されたTSからTSパケットを解析してPESパケット及びセクションを判別し、所望の番組のTSパケットから映像データ、音声データのデコード処理を行う。マルチメディア処理CPU950は、メモリ952に格納されたプログラムを読み込んで上記のパケットの解析処理やデコード処理を行うことができる。表示パネル960は、デコード処理後の映像データに基づいて表示出力を行い、スピーカ970は、デコード処理後の音声データに基づいて音声出力を行う。
When a desired signal is extracted from the received signal received via the
このようにマルチメディア処理CPU950として、非常に高い処理能力が必要となる。高い処理能力を有するプロセッサは、一般的に、動作周波数が高くなったり、回路規模が大きくなったりしてしまう。
In this way, the
ところで、1セグメント放送のビットレートを考慮すると、その帯域のほとんどが映像データや音声データの帯域となり、データ放送自体の帯域が狭くなると考えられる。従って、マルチメディア処理CPUで実現できる処理のうち、映像データや音声データの再生処理のみで済む場合もあるにもかかわらず、マルチメディア処理CPUを常に動作させる必要があり、消費電力の増大を招く。 By the way, considering the bit rate of 1-segment broadcasting, most of the bandwidth is considered to be the bandwidth for video data and audio data, and the bandwidth for data broadcasting itself is narrowed. Accordingly, among the processes that can be realized by the multimedia processing CPU, it is necessary to always operate the multimedia processing CPU even though only the reproduction processing of video data and audio data may be required, resulting in an increase in power consumption. .
そこで、本実施形態では、映像データのデコード処理を行う映像デコーダと音声データのデコード処理を行う音声デコーダとを独立して設け、それぞれ独立にデコード処理を行わせることで、それぞれの処理能力として低いものを採用できる。更に、映像デコーダ及び音声データの一方の動作を適宜停止させて柔軟に低消費電力化を図ることができる。 Therefore, in this embodiment, a video decoder that performs video data decoding processing and an audio decoder that performs audio data decoding processing are provided independently, and the decoding processing is performed independently, thereby reducing the processing capability of each. You can adopt things. Furthermore, it is possible to flexibly reduce power consumption by appropriately stopping one of the operations of the video decoder and the audio data.
更には、映像デコーダ及び音声デコーダを並列動作させることができるため、各デコーダの処理能力を低くて済み、より低消費電力化及び低コスト化を実現できる。 Furthermore, since the video decoder and the audio decoder can be operated in parallel, the processing capability of each decoder can be reduced, and lower power consumption and cost can be realized.
図17に、本実施形態における情報再生装置を含む携帯電話機の構成例のブロック図を示す。なお図17において、図16と同一部分には同一符号を付し、適宜説明を省略する。 FIG. 17 shows a block diagram of a configuration example of a mobile phone including the information reproducing apparatus in the present embodiment. In FIG. 17, the same parts as those in FIG. 16 are denoted by the same reference numerals, and description thereof will be omitted as appropriate.
携帯電話機100は、ホストCPU(広義にはホスト)110、RAM(Random Access Memory)120、ROM(Read Only Memory)130、表示ドライバ140、DAC(Digital-to-Analog Converter)150、画像処理IC(Integrated Circuit)(広義には情報再生装置)200を含むことができる。更に携帯電話機100は、アンテナ910、930、チューナ940、表示パネル960、スピーカ970を含む。
The
ホストCPU110は、図16の電話用CPU920の機能を有すると共に、画像処理IC200を制御する機能を有する。ホストCPU110は、RAM120又はROM130に格納されたプログラムを読み出し、図16の電話用CPU920の処理、画像処理IC200を制御する処理を行う。この際、ホストCPU110は、RAM120をワークエリアとして用いることができる。
The
画像処理IC200は、チューナ940からのTSから、映像データを生成するための映像用TSパケット(第1のTSパケット)、音声データを生成するための音声用TSパケット(第2のTSパケット)を抽出し、図示しない共有メモリにバッファリングする。そして画像処理IC200は、互いに独立して動作停止制御が可能な映像デコーダ及び音声デコーダ(図示せず)を含み、映像デコーダ及び音声デコーダが、それぞれ映像用TSパケット及び音声用TSパケットをデコードして映像データ及び音声データを生成する。映像データ及び音声データは、同期しながら、それぞれ表示ドライバ140及びDAC150に供給される。ホストCPU110は、このような画像処理IC200に対し、映像デコード処理及び音声デコード処理の処理開始を指示することができる。なおホストCPU110は、画像処理IC200に対し、映像デコード処理及び音声デコード処理の少なくとも1つの処理開始を指示するようにしてもよい。
The
表示ドライバ(広義には駆動回路)140は、映像データに基づいて表示パネル(広義には電気光学装置)960を駆動する。より具体的には、表示パネル960は、複数の走査線、複数のデータ線、各画素が各走査線及び各データ線により特定される複数の画素を有し、表示パネル960として液晶表示(Liquid Crystal Display)パネルを採用できる。表示ドライバ140は、複数の走査線を走査する走査ドライバの機能と、該映像データに基づいて複数のデータ線を駆動するデータドライバの機能とを有する。
A display driver (driving circuit in a broad sense) 140 drives a display panel (electro-optical device in a broad sense) 960 based on video data. More specifically, the
DAC150は、デジタル信号である音声データをアナログ信号に変換し、スピーカ970に供給する。スピーカ970は、DAC150からのアナログ信号に対応した音声出力を行う。
The
2.3 情報再生装置
図18に、本実施形態の情報再生装置としての図17の画像処理IC200の構成例のブロック図を示す。
2.3 Information Reproducing Device FIG. 18 is a block diagram showing a configuration example of the
画像処理IC200は、TS分離部(分離処理部)210と、メモリ(共有メモリ)220と、映像デコーダ230と、音声デコーダ240とを含む。また画像処理IC200は、更に、表示制御部250と、チューナI/F(Interface)260と、ホストI/F270と、ドライバI/F280と、オーディオI/F290とを含む。メモリ220は、図1のバッファ40の機能を有する。
The
TS分離部210は、映像データを生成するための映像用TSパケット(第1のTSパケット)、音声データを生成するための音声用TSパケット(第2のTSパケット)、映像用TSパケット及び音声用TSパケット以外のパケット(第3のTSパケット)を、TSから抽出する。TS分離部210は、TSから一旦抽出された第3のTSパケットを解析するホストCPU110の解析結果に基づいて、第1及び第2のTSパケットを抽出することができる。このTS分離部210は、図1の分離処理部20の機能を有する。即ち、TS分離部210が、第1〜第3のTSパケットの各TSパケットのエラーを検出し、エラーの有無を示すエラー情報を各TSパケットに付加し、各TSパケットを可変長のセクションやPES(Packetized Elementary Stream)パケットに変換することなく、エラー情報に基づいて、映像デコード処理、音声デコード処理又はTSパケットの廃棄を行うことができる。このTSパケットの廃棄は、画像処理IC200からホストCPU110に通知して行ってもよい。
The
映像デコーダ230は、メモリ220の記憶領域のうち映像用TSパケット専用に設けられた記憶領域から映像用TSパケットを読み出し、該映像用TSパケットに基づいて映像データを生成する映像デコード処理を行うと共に、映像データと音声データを同期して再生するための基準タイミングを生成する。
The
音声デコーダ240は、メモリ220の記憶領域のうち音声用TSパケット専用に設けられた記憶領域から音声用TSパケットを読み出し、該音声用TSパケットに基づいて音声データを生成する音声デコード処理を行う。
The
映像デコーダ230及び音声デコーダ240の少なくとも一方は、デコーダ30の機能を有する。
At least one of the
表示制御部250は、メモリ220から読み出された映像データにより表される画像の向きを回転させる回転処理や該画像のサイズを縮小又は拡大させるリサイズ処理を行う。回転処理後のデータやリサイズ処理後のデータは、ドライバI/F280に供給される。表示制御部250は、表示タイミングに合わせて、処理後のデータをドライバI/F280に転送する制御を行う。
The
チューナI/F260は、チューナ940とのインタフェース処理を行う。より具体的には、チューナI/F260は、チューナ940からのTSを受信する制御を行う。チューナI/F260は、TS分離部210に接続される。チューナI/F260に接続されるチューナ940が、図1のデジタルチューナ50に相当する。
The tuner I /
ホストI/F270は、ホストCPU110とのインタフェース処理を行う。より具体的には、ホストI/F270は、ホストCPU110との間のデータの送受信の制御を行う。ホストI/F270は、TS分離部210、メモリ220、表示制御部250、オーディオI/F290に接続される。ホストI/F270に接続されるホストCPU110が、図1のホスト60の機能を実現する。
The host I /
ドライバI/F280は、表示制御部250を介してメモリ220から所定の周期で映像データを読み出し、該映像データを表示ドライバ140に対して供給する。ドライバI/F280は、表示ドライバ140に対して映像データを送信するためのインタフェース処理を行う。
The driver I /
オーディオI/F290は、メモリ220から所定の周期で音声データを読み出し、該音声データをDAC150に対して供給する。オーディオI/F290は、DAC150に対して音声データを送信するためのインタフェース処理を行う。
The audio I /
このような画像処理IC200では、TS分離部210により、チューナ940からのTSからTSパケットが抽出される。TSパケットは、共有メモリとしてのメモリ220の予め割り当てられた記憶領域に格納される。そして、映像デコーダ230及び音声デコーダ240が、それぞれメモリ220に割り当てられた専用の記憶領域からTSパケットを読み出して、映像データ及び音声データを生成し、互いに同期した映像データ及び音声データを表示ドライバ140及びDAC150に対して供給することができる。
In such an
図19に、図18の画像処理IC200の動作説明図を示す。
FIG. 19 shows an operation explanatory diagram of the
図19において、図18と同一部分には同一符号を付し、適宜説明を省略する。 19, the same parts as those in FIG. 18 are denoted by the same reference numerals, and the description thereof will be omitted as appropriate.
メモリ220は、第1〜第8の記憶領域AR1〜AR8を有し、各記憶領域が予め割り当てられている。TS分離部210によって分離されたTSパケットと、該TSパケットについてTS分離部210で行われたエラー検出処理結果としてのエラー情報とが、各記憶領域に格納される。
The
第1の記憶領域AR1には、映像用TSパケット専用の記憶領域として、TS分離部210によって抽出された映像用TSパケット(第1のTSパケット)が格納される。第2の記憶領域AR2には、音声用TSパケット専用の記憶領域として、TS分離部210によって抽出された音声用TSパケット(第2のTSパケット)が格納される。第3の記憶領域AR3には、TS分離部210によって抽出されたTSパケットのうち映像用TSパケット及び音声用TSパケットを除くTSパケット(第3のTSパケット)が格納される。
The first storage area AR1 stores the video TS packet (first TS packet) extracted by the
第4の記憶領域AR4には、映像用ESデータ専用の記憶領域として、映像デコーダ230によって生成された映像用ESデータが格納される。第5の記憶領域AR5には、音声用ESデータ専用の記憶領域として、音声デコーダ240によって生成された音声用ESデータが格納される。
The fourth storage area AR4 stores the video ES data generated by the
第6の記憶領域AR6には、ホストCPU110によって生成されるTSが、TSRAWデータとして格納される。TSRAWデータは、チューナ940からのTSに替わってホストCPU110により設定される。そして、TS分離部210は、TSRAWデータとして設定されたTSから、映像用TSパケット、音声用TSパケット、その他のTSパケットが抽出されるようになっている。
In the sixth storage area AR6, a TS generated by the
第7の記憶領域AR7には、映像デコーダ230によるデコード処理後の映像データが格納される。第7の記憶領域AR7に格納された映像データは、表示制御部250によって読み出され、表示パネル960による映像出力に供される。第8の記憶領域AR8には、音声デコーダ240によるデコード処理後の音声データが格納される。第8の記憶領域AR8に格納された音声データは、スピーカ970による音声出力に供される。
In the seventh storage area AR7, video data after decoding by the
映像デコーダ230は、ヘッダ削除処理部232と、映像デコード処理部234とを含む。ヘッダ削除処理部232は、第1の記憶領域AR1から映像用TSパケットを読み出し、該映像用TSパケットのTSヘッダを解析してPESパケット(第1のPESパケット)を生成した後、そのPESヘッダを削除する処理を行ってそのペイロード部を映像用ESデータとしてメモリ220の第4の記憶領域AR4に格納する。そして、ヘッダ削除処理部232を含む映像デコーダ230が、表示タイミングに合わせて、表示制御部250に対して画像データの転送指示を行う。
The
映像デコード処理部234は、第4の記憶領域AR4から映像用ESデータを読み出し、H.264/AVC(Advanced Video Coding)の規格に従ったデコード処理(広義には映像デコード処理)を行って生成される映像データを第7の記憶領域AR7に書き込む。
The video
音声デコーダ240は、ヘッダ削除処理部242と、音声デコード処理部244とを含む。ヘッダ削除処理部242は、第2の記憶領域AR2から音声用TSパケットを読み出し、該音声用TSパケットのTSヘッダを解析してPESパケット(第2のPESパケット)を生成した後、そのPESヘッダを削除する処理を行ってそのペイロード部を音声用ESデータとしてメモリ220の第5の記憶領域AR5に格納する。音声デコード処理部244は、第5の記憶領域AR5から音声用ESデータを読み出し、MPEG−2AAC(Advanced Audio Coding)の規格に従ったデコード処理(広義には音声デコード処理)を行って生成される音声データを第8の記憶領域AR8に書き込む。
The
そして、映像デコーダ230が、第1の記憶領域AR1から映像用TSパケット(第1のTSパケット)を、音声デコーダ240とは独立して読み出し、該映像用TSパケットに基づいて上記の映像デコード処理を行う。また音声デコーダ240が、第2の記憶領域AR2から音声用TSパケット(第2のTSパケット)を、映像デコーダ230とは独立して読み出し、該音声用TSパケットに基づいて上記の音声デコード処理を行う。こうすることで、映像と音声とを同期させて出力させる場合には映像デコーダ230及び音声デコーダ240を動作させることができる一方、映像のみを出力させる場合には映像デコーダ230のみを動作させて音声デコーダ240の動作を停止させることができる。また音声のみを出力させる場合には音声デコーダ240のみを動作させて映像デコーダ230の動作を停止させることができる。
Then, the
ホストCPU110は、第3の記憶領域AR3に格納されたその他のTSパケット(第3のTSパケット)を読み出し、該TSパケットからセクションを生成する。そして該セクションに含まれる各種テーブル情報を解析する。ホストCPU110は、その解析結果をメモリ220の所定の記憶領域に設定すると共にTS分離部210に対し制御情報として指定する。それ以降、TS分離部210は、チューナ940からのTSを該制御情報に従ってTSパケットを抽出する。一方、ホストCPU110は、映像デコーダ230及び音声デコーダ240に対して、それぞれ別個に起動コマンドを発行することができる。映像デコーダ230及び音声デコーダ240は、それぞれ独立してメモリ220にアクセスしてホストCPU110の解析結果を読み出し、該解析結果に対応したデコード処理を行う。
The
2.3.1 再生動作
次に、本実施形態における情報再生装置としての画像処理IC200において、TSに多重化された映像データ又は音声データを再生する場合の動作について説明する。
2.3.1 Reproduction Operation Next, an operation in the case of reproducing video data or audio data multiplexed on a TS in the
図20に、ホストCPU110による再生処理の動作例のフロー図を示す。ホストCPU110は、RAM120又はROM130に格納されたプログラムを読み出し、該プログラムに対応した処理を実行することで図20に示す処理を行うことができるようになっている。
FIG. 20 shows a flowchart of an operation example of reproduction processing by the
まずホストCPU110は、放送受信開始処理を行う(ステップS100)。これによって、TSとして受信された複数の番組のうち所望の番組の映像データ又は音声データをTSから抽出することができる。そして、ホストCPU110は、画像処理IC200の映像デコーダ230及び音声デコーダ240の少なくとも1つを起動させる。
First, the
その後、ホストCPU110は、映像及び音声の再生を行う場合には映像デコーダ230及び音声デコーダ240によりデコード処理を行わせる。或いはホストCPU110は、映像のみの再生を行う場合には音声デコーダ240の動作を停止させて映像デコーダ230によりデコード処理を行わせる。或いはまた、ホストCPU110は、音声のみの再生を行う場合には映像デコーダ230の動作を停止させて音声デコーダ240によりデコード処理を行わせる(ステップS101)。
Thereafter, the
次に、ホストCPU110は、放送受信終了処理を行い(ステップS102)、一連の処理を終了する(エンド)。これによって、ホストCPU110は、画像処理IC200の各部の動作を停止させる。
Next, the
2.3.2 放送受信開始処理
続いて、図20に示す放送受信開始処理の処理例について説明する。ここでは、映像及び音声の再生を行う場合について説明する。
2.3.2 Broadcast Reception Start Process Next, a process example of the broadcast reception start process shown in FIG. 20 will be described. Here, a case where video and audio are reproduced will be described.
図21に、図20の放送受信開始処理の動作例のフロー図を示す。ホストCPU110は、RAM120又はROM130に格納されたプログラムを読み出し、該プログラムに対応した処理を実行することで図21に示す処理を行うことができるようになっている。
FIG. 21 shows a flowchart of an operation example of the broadcast reception start process of FIG. The
まずホストCPU110は、画像処理IC200の映像デコーダ230、音声デコーダ240を起動する(ステップS110)。その後、ホストCPU110は、チューナ940を初期化すると共に所与の動作情報を設定する(ステップS111)。そしてホストCPU110は、DAC150に対しても初期化を行って所与の動作情報を設定する(ステップS112)。
First, the
その後ホストCPU110は、TSの受信を監視する(ステップS113:N)。TSの受信が開始されると、画像処理IC200では、TS分離部210が、上述のようにTSから映像用TSパケット、音声用TSパケット及びそれ以外のTSパケットに分離し、分離されたTSパケットは、専用に設けられたメモリ220の記憶領域に格納される。例えば画像処理IC200のメモリ220における第3の記憶領域AR3にTSパケットが格納されたことを条件に発生する割り込み信号により、ホストCPU110はTSの受信を検出できる。或いはホストCPU110が、周期的にメモリ220の第3の記憶領域AR3をアクセスすることで、TSパケットの書き込みが行われた否かを判断して、TSの受信を判別できる。
Thereafter, the
このようにしてTSの受信が検出されたとき(ステップS113:Y)、ホストCPU110は、第3の記憶領域AR3に記憶されたTSパケットを読み出してセクションを生成する。そして、セクションに含まれるPSI(Program Specific Information:番組特定情報)/SI(Service Information:番組配列情報)を解析する(ステップS114)。このPSI/SIは、MPEG−2システム(ISO/IEC 13818-1)にて規定されている。
When reception of a TS is detected in this way (step S113: Y), the
PSI/SIは、NIT(Network Information Table:ネットワーク情報テーブル)やPMT(Program Map Table:番組対応テーブル)を含む。NITは、例えばどの放送局からのTSかを特定するためのネットワーク識別子、PMTを特定するためのサービス識別子、放送の種類を示すサービスタイプ識別子等を含む。PMTには、例えばTSにおいて多重化される映像用TSパケットのPIDと音声用TSパケットのPIDが設定される。 PSI / SI includes NIT (Network Information Table) and PMT (Program Map Table). The NIT includes, for example, a network identifier for specifying which broadcasting station the TS is from, a service identifier for specifying the PMT, a service type identifier indicating a broadcast type, and the like. In the PMT, for example, the PID of the video TS packet multiplexed in the TS and the PID of the audio TS packet are set.
従って、ホストCPU110は、PSI/SIからPMTを特定するためのサービス識別子を抽出し、該サービス識別子に基づき、受信したTSの映像用TSパケット及び音声用TSパケットのPIDを特定できる(ステップS115)。そして、携帯端末のユーザに選択させた番組に対応するPID、若しくは予め決められた番組に対応するPIDを、ホストCPU110が、映像デコーダ230及び音声デコーダ240に参照できるようにメモリ220の所定の記憶領域(例えば第3の記憶領域AR3)に設定し(ステップS116)、一連の処理を終了する(エンド)。
Therefore, the
こうすることで、映像デコーダ230及び音声デコーダ240は、メモリ220に設定されたPIDを参照しながら、映像用TSパケット及び音声用TSパケットに対してデコード処理を行うことができる。
In this way, the
なおホストCPU110は、例えばPMTを特定するためのサービス識別子に対応する情報を、画像処理IC200のTS分離部210に設定する。こうすることで、TS分離部210は、所定の時間間隔を置いて周期的に受信されるセクションを判別し、上記のサービス識別子に対応したPMTを解析し、該PMTにより特定される映像用TSパケット及び音声用TSパケットとそれ以外のTSパケットを抽出してメモリ220に格納していく。
The
図22に、図18及び図19の画像処理IC200の放送受信開始処理における動作説明図を示す。図22において、図18又は図19と同一部分には同一符号を付し、適宜説明を省略する。
FIG. 22 is an operation explanatory diagram of the broadcast reception start process of the
なお図22において、第7の記憶領域AR7を第4の記憶領域AR4と共用化し、第8の記憶領域AR8を第5の記憶領域AR5と共用化している。また、PSI/SI、NIT、PMTは、第3の記憶領域AR3内の所定の記憶領域に格納されるものとする。 In FIG. 22, the seventh storage area AR7 is shared with the fourth storage area AR4, and the eighth storage area AR8 is shared with the fifth storage area AR5. In addition, PSI / SI, NIT, and PMT are stored in a predetermined storage area in the third storage area AR3.
まずチューナ940からTSが入力される(SQ1)とTS分離部210は、PSI/SIが含まれるTSパケットをメモリ220に格納する(SQ2)。なお、TS分離部210は、エラー検出処理を行い、その結果をエラー情報として付加してTSパケットをメモリ220に格納する。このとき、TS分離部210は、該TSパケットのPSI/SI自体を抽出してメモリ220に格納することができる。更にTS分離部210は、PSI/SIからNITを抽出してメモリ220に格納することができる。
First, when TS is input from the tuner 940 (SQ1), the
ホストCPU110は、PSI/SI、NIT、PMTを読み出して(SQ3)、これらを解析し、デコード処理対象の番組に対応するPIDを特定する。そしてホストCPU110は、サービス識別子に対応する情報又はデコード処理対象の番組に対応するPIDを、TS分離部210に設定する(SQ4)。なおホストCPU110は、PIDを、メモリ220の所定の記憶領域にも設定し、映像デコーダ230及び音声デコーダ240のデコード処理の際に参照させる。ここで、ホストCPU110は、図7又は図11に示す処理を行って、エラー情報に基づいてTSパケットの廃棄を行うことができる。
The
TS分離部210は、設定されたPIDに基づいてTSから映像用TSパケット及び音声用TSパケットを抽出し、それぞれ第1及び第2の記憶領域AR1、AR2に書き込む(SQ5)。
The
その後、ホストCPU110によって起動された映像デコーダ230及び音声デコーダ240は、第1及び第2の記憶領域AR1、AR2から映像用TSパケット及び音声用TSパケットを順次読み出して(SQ6)、映像デコード処理及び音声デコード処理を行う。
Thereafter, the
このとき、次のシーケンスで、ホストCPU110、映像デコーダ230及び音声デコーダ240がコマンドデータを介した通信を行う。
At this time, in the next sequence, the
2.3.3 放送受信終了処理
次に、図20に示す放送受信終了処理の動作例について説明する。ここでは、映像及び音声の再生を行う場合について説明する。
2.3.3 Broadcast Reception End Process Next, an operation example of the broadcast reception end process shown in FIG. 20 will be described. Here, a case where video and audio are reproduced will be described.
図23に、図20の放送受信終了処理の処理例のフロー図を示す。ホストCPU110は、RAM120又はROM130に格納されたプログラムを読み出し、該プログラムに対応した処理を実行することで図23に示す処理を行うことができるようになっている。
FIG. 23 shows a flowchart of a processing example of the broadcast reception end processing of FIG. The
まずホストCPU110は、画像処理IC200の映像デコーダ230、音声デコーダ240を停止させる(ステップS120)。これは、ホストCPU110から画像処理IC200に対しコマンドを発行し、画像処理IC200が該制御コマンドのデコード結果を用いて映像デコーダ230、音声デコーダ240を停止させる。
First, the
その後、ホストCPU110は、同様にTS分離部210を停止させる(ステップS121)。そして、ホストCPU110は、チューナ940を停止させる(ステップS122)。
Thereafter, the
図24に、図18及び図19の画像処理IC200の放送受信終了処理における動作説明図を示す。図24において、図22と同一部分には同一符号を付し、適宜説明を省略する。
FIG. 24 is a diagram for explaining the operation in the broadcast reception end process of the
まずホストCPU110が、表示制御部250の動作を停止させる制御を行い、表示ドライバ140への映像データの供給を停止させる(SQ10)。次に、ホストCPU110が、映像デコーダ230及び音声デコーダ240の動作を停止させ(SQ11)、その後TS分離部210、チューナ940の順に動作を停止させていく(SQ12、SQ13)。
First, the
2.3.4 再生処理
2.3.4.1 映像データの再生処理
次に、映像データの再生処理を行う映像デコーダ230の動作例について説明する。
2.3.4 Reproduction Process 2.3.4.1 Reproduction Process of Video Data Next, an operation example of the
図25に、映像デコード処理時に行われる映像デコーダ230のメモリのアクセス動作例のフロー図を示す。この処理は、例えば図8のステップS23のデコード処理において行われる。
FIG. 25 is a flowchart showing an example of the memory access operation of the
まず、映像デコーダ230は、映像用TSバッファとして設けられた第1の記憶領域AR1がエンプティ状態か否かを判別する(ステップS140)。第1の記憶領域AR1から読み出されるべき映像用TSパケットがない場合、エンプティ状態となる。
First, the
ステップS140において映像用TSバッファである第1の記憶領域AR1がエンプティ状態でないと判別されたとき(ステップS140:N)、映像デコーダ230は、更に映像用ESバッファとして設けられた第4の記憶領域AR4がフル状態か否かを判別する(ステップS141)。これ以上映像用ESデータを第4の記憶領域AR4に格納できない場合、フル状態となる。
When it is determined in step S140 that the first storage area AR1 that is the video TS buffer is not empty (step S140: N), the
ステップS141において映像用ESバッファである第4の記憶領域AR4がフル状態でないと判別されたとき(ステップS141:N)、映像デコーダ230は、第1の記憶領域AR1から映像用TSパケットを読み出し、図21のステップS116においてホストCPU110により特定されたPID(指定PID)か否かを検出する(ステップS142)。
When it is determined in step S141 that the fourth storage area AR4 that is the video ES buffer is not full (step S141: N), the
ステップS142において、映像用TSパケットのPIDが指定PIDであると検出されたとき(ステップS142:Y)、映像デコーダ230は、TSヘッダ、PESヘッダの解析を行い(ステップS143)、映像用ESデータを映像用ESバッファとして設けられた第4の記憶領域AR4に格納する(ステップS144)。
When it is detected in step S142 that the PID of the video TS packet is the designated PID (step S142: Y), the
その後、映像デコーダ230は、映像用TSバッファである第1の記憶領域AR1の読み出しアドレスを特定するための読み出しポインタを更新し(ステップS145)、ステップS140に戻る(リターン)。
Thereafter, the
なお、ステップS142において映像用TSパケットのPIDが指定PIDではないと検出されたとき(ステップS142:N)、ステップS145に進む。また、ステップS140において映像用TSバッファである第1の記憶領域AR1がエンプティ状態であると判別されたとき(ステップS140:Y)、又はステップS141において映像用ESバッファである第4の記憶領域AR4がフル状態であると判別されたとき(ステップS141:Y)、ステップS140に戻る(リターン)。 When it is detected in step S142 that the PID of the video TS packet is not the designated PID (step S142: N), the process proceeds to step S145. When it is determined in step S140 that the first storage area AR1 that is the video TS buffer is in an empty state (step S140: Y), or in step S141, the fourth storage area AR4 that is the video ES buffer. Is determined to be full (step S141: Y), the process returns to step S140 (return).
こうして第4の記憶領域AR4に格納された映像用ESデータは、映像デコーダ230により、H.264/AVCの規格に従ったデコード処理が行われて、映像データとして第7の記憶領域AR7に書き込まれる。
The video ES data stored in the fourth storage area AR4 in this way is sent to the H.264 by the
図26に、図18及び図19の画像処理IC200の映像デコーダの動作説明図を示す。図26において、図22と同一部分には同一符号を付し、適宜説明を省略する。
FIG. 26 is a diagram for explaining the operation of the video decoder of the
なお図26において、第7の記憶領域AR7を第4の記憶領域AR4と共用化し、第8の記憶領域AR8を第5の記憶領域AR5と共用化している。また、PSI/SI、NIT、PMTは、第3の記憶領域AR3内の所定の記憶領域に格納されるものとする。 In FIG. 26, the seventh storage area AR7 is shared with the fourth storage area AR4, and the eighth storage area AR8 is shared with the fifth storage area AR5. In addition, PSI / SI, NIT, and PMT are stored in a predetermined storage area in the third storage area AR3.
まず図21に示すようにホストCPU110によりデコード処理対象の番組に対応するPIDがTS分離部210に設定される(SQ20)。チューナ940からTSが入力されたとき(SQ21)、TS分離部210は、チューナ940からのTSから映像用TSパケット、音声用TSパケット及びそれ以外のTSパケットをそれぞれ分離する(SQ22)。TS分離部210によって分離された映像用TSパケットは、TS分離部210で生成されたエラー情報と共に第1の記憶領域AR1に格納される。TS分離部210によって分離された音声用TSパケットは、TS分離部210で生成されたエラー情報と共に第2の記憶領域AR2に格納される。TS分離部210によって分離された映像用TSパケット及び音声用TSパケット以外のTSパケットは、TS分離部210で生成されたエラー情報と共にPSI/SIとして第3の記憶領域AR3に格納される。この際、TS分離部210は、PSI/SIの中のNIT、PMTを抽出して第3の記憶領域AR3に格納する。
First, as shown in FIG. 21, the
次にホストCPU110によって起動された映像デコーダ230は、第1の記憶領域AR1から映像用TSパケットを読み出す(SQ23)。このとき、映像デコーダ230は、上述のエラー情報を参照して、映像デコード処理を行うか、映像用TSパケットの廃棄を行うかを決定する。映像デコード処理を行うと決定したとき、映像デコーダ230は、映像用ESデータを生成し、該映像用ESデータを第4の記憶領域AR4に格納する(SQ24)。
Next, the
その後、映像デコーダ230は、第4の記憶領域AR4から映像用ESデータを読み出して(SQ25)、H.264/AVCの規格に従ったデコード処理を行う。図26では、デコード処理後の映像データが表示制御部250に直接供給されている(SQ26)が、例えばデコード処理後の映像データを、一旦、メモリ220の所定の記憶領域に書き戻し、その後、音声データの出力タイミングと同期を取りながら表示制御部250に供給することが望ましい。
After that, the
こうして表示制御部250に供給された映像データに基づいて、表示ドライバ140が表示パネルを駆動する(SQ27)。
Based on the video data thus supplied to the
2.3.4.2 音声データの再生処理
続いて、音声データの再生処理を行う音声デコーダ240の動作例について説明する。
2.3.4.2 Audio Data Reproduction Processing Next, an operation example of the
図27に、音声デコード処理時に行われる音声デコーダ240のメモリのアクセス動作例のフロー図を示す。この処理は、例えば図8のステップS23のデコード処理において行われる。
FIG. 27 shows a flowchart of an example of memory access operation of the
まず、音声デコーダ240は、ホストCPU110によって起動されると、例えばメモリ220の所定の記憶領域に格納されたプログラムを読み出し、該プログラムに対応した処理を実行することで図27に示す処理を行うことができるようになっている。即ち、音声デコーダ240はCPU(中央演算処理装置)を含み、画像処理IC200(情報再生装置)の初期化処理後に、画像処理IC200の外部から、CPUに音声デコード処理を実現するためのプログラムが読み込まれ、該CPUが音声デコード処理を実現することができる。
First, when activated by the
まず、音声デコーダ240は、音声用TSバッファとして設けられた第2の記憶領域AR2がエンプティ状態か否かを判別する(ステップS150)。第2の記憶領域AR2から読み出されるべき音声用TSパケットがない場合、エンプティ状態となる。
First, the
ステップS150において音声用TSバッファである第2の記憶領域AR2がエンプティ状態でないと判別されたとき(ステップS150:N)、音声デコーダ240は、更に音声用ESバッファとして設けられた第5の記憶領域AR5がフル状態か否かを判別する(ステップS151)。これ以上音声用ESデータを第5の記憶領域AR5に格納できない場合、フル状態となる。
When it is determined in step S150 that the second storage area AR2 that is the audio TS buffer is not empty (step S150: N), the
ステップS151において音声用ESバッファである第5の記憶領域AR5がフル状態でないと判別されたとき(ステップS151:N)、音声デコーダ240は、第2の記憶領域AR2から音声用TSパケットを読み出し、図21のステップS116においてホストCPU110により特定されたPID(指定PID)か否かを検出する(ステップS152)。
When it is determined in step S151 that the fifth storage area AR5, which is the audio ES buffer, is not full (step S151: N), the
ステップS152において、音声用TSパケットのPIDが指定PIDであると検出されたとき(ステップS152:Y)、音声デコーダ240は、TSヘッダ、PESヘッダの解析を行い(ステップS153)、音声用ESデータを音声用ESバッファとして設けられた第5の記憶領域AR5に格納する(ステップS154)。
When it is detected in step S152 that the PID of the audio TS packet is the designated PID (step S152: Y), the
その後、音声デコーダ240は、音声用TSバッファである第2の記憶領域AR2の読み出しアドレスを特定するための読み出しポインタを更新し(ステップS155)、ステップS150に戻る(リターン)。
After that, the
なお、ステップS152において、音声用TSパケットのPIDが指定PIDではないと検出されたとき(ステップS152:N)、ステップS155に進む。また、ステップS150において音声用TSバッファである第2の記憶領域AR2がエンプティ状態であると判別されたとき(ステップS150:Y)、又はステップS151において音声用ESバッファである第5の記憶領域AR5がフル状態であると判別されたとき(ステップS151:Y)、ステップS150に戻る(リターン)。 When it is detected in step S152 that the PID of the voice TS packet is not the designated PID (step S152: N), the process proceeds to step S155. When it is determined in step S150 that the second storage area AR2 that is the audio TS buffer is in an empty state (step S150: Y), or in step S151, the fifth storage area AR5 that is the audio ES buffer. Is determined to be full (step S151: Y), the process returns to step S150 (return).
こうして第5の記憶領域AR5に格納された音声用ESデータは、音声デコーダ240により、MPEG−2AACの規格に従ったデコード処理が行われて、音声データとして第8の記憶領域AR8に書き込まれる。
The audio ES data stored in the fifth storage area AR5 in this manner is decoded by the
図28に、図18及び図19の画像処理IC200の音声デコーダの動作説明図を示す。図28において、図22と同一部分には同一符号を付し、適宜説明を省略する。
FIG. 28 is an operation explanatory diagram of the audio decoder of the
なお図28において、第7の記憶領域AR7を第4の記憶領域AR4と共用化し、第8の記憶領域AR8を第5の記憶領域AR5と共用化している。また、PSI/SI、NIT、PMTは、第3の記憶領域AR3内の所定の記憶領域に格納されるものとする。 In FIG. 28, the seventh storage area AR7 is shared with the fourth storage area AR4, and the eighth storage area AR8 is shared with the fifth storage area AR5. In addition, PSI / SI, NIT, and PMT are stored in a predetermined storage area in the third storage area AR3.
まず図21に示すようにホストCPU110によりデコード処理対象の番組に対応するPIDがTS分離部210に設定される(SQ30)。チューナ940からTSが入力されたとき(SQ31)、TS分離部210は、チューナ940からのTSから映像用TSパケット、音声用TSパケット及びそれ以外のTSパケットをそれぞれ分離する(SQ32)。TS分離部210によって分離された映像用TSパケットは、TS分離部210で生成されたエラー情報と共に第1の記憶領域AR1に格納される。TS分離部210によって分離された音声用TSパケットは、TS分離部210で生成されたエラー情報と共に第2の記憶領域AR2に格納される。TS分離部210によって分離された映像用TSパケット及び音声用TSパケット以外のTSパケットは、TS分離部210で生成されたエラー情報と共にPSI/SIとして第3の記憶領域AR3に格納される。更にTS分離部210は、PSI/SIの中のNIT、PMTを抽出して第3の記憶領域AR3の所定の記憶領域に書き込むことができる。
First, as shown in FIG. 21, the
次にホストCPU110によって起動された音声デコーダ240は、第2の記憶領域AR2から音声用TSパケットを読み出す(SQ33)。このとき、音声デコーダ240は、上述のエラー情報を参照して、音声デコード処理を行うか、音声用TSパケットの廃棄を行うかを決定する。音声デコード処理を行うと決定したとき、音声デコーダ240は、音声用ESデータを生成し、該音声用ESデータを第5の記憶領域AR5に格納する(SQ34)。
Next, the
その後、音声デコーダ240は、第5の記憶領域AR5から音声用ESデータを読み出して(SQ35)、MPEG−2AACの規格に従ったデコード処理を行う。図28では、デコード処理後の音声データがDAC150に直接供給されている(SQ36)が、例えばデコード処理後の音声データを、一旦、メモリ220の所定の記憶領域に書き戻し、その後、映像データの出力タイミングと同期を取りながらDAC150に供給することが望ましい。
Thereafter, the
以上のような音声デコーダ240の動作は、映像デコーダ230の動作とは独立して行われる。
The operation of the
なお、本発明は上述した実施の形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形実施が可能である。なお上記の実施形態又はその変形例では、地上デジタル放送に適用可能な例について説明したが、本発明は地上デジタル放送に適用可能なものに限定されるものではない。 The present invention is not limited to the above-described embodiment, and various modifications can be made within the scope of the gist of the present invention. In the above embodiment or its modification, an example applicable to terrestrial digital broadcasting has been described. However, the present invention is not limited to one applicable to terrestrial digital broadcasting.
なお、本実施形態では、主にH.264/AVCに準拠したデコード処理に適用した場合について説明したが、これに限定されるものではなく、他の規格や、H.264/AVC規格を発展させた規格に準拠したデコード処理に適用できることは言うまでもない。 In the present embodiment, mainly H.264 is used. Although the case where the present invention is applied to decoding processing conforming to H.264 / AVC has been described, the present invention is not limited to this, and other standards, It goes without saying that the present invention can be applied to decoding processing based on a standard developed from the H.264 / AVC standard.
また、本発明のうち従属請求項に係る発明においては、従属先の請求項の構成要件の一部を省略する構成とすることもできる。また、本発明の1の独立請求項に係る発明の要部を、他の独立請求項に従属させることもできる。 In the invention according to the dependent claims of the present invention, a part of the constituent features of the dependent claims can be omitted. Moreover, the principal part of the invention according to one independent claim of the present invention can be made dependent on another independent claim.
10 デコード装置、 20 分離処理部、 22 エラー処理部、
24 パケット分離部、 30 デコーダ、 40 バッファ、
50 デジタルチューナ、 60 ホスト、 100 携帯電話機、
110 ホストCPU、 120 RAM、 130 ROM、
140 表示ドライバ、 150 DAC、 200 画像処理IC、
210 TS分離部、 230 映像デコーダ、 240 音声デコーダ、
250 表示制御部、 260 チューナI/F、 270 ホストI/F、
280 ドライバI/F、 290 オーディオI/F、 910、930 アンテナ、
940 チューナ、 960 表示パネル、 970 スピーカ
10 decoding device, 20 separation processing unit, 22 error processing unit,
24 packet separator, 30 decoder, 40 buffer,
50 digital tuners, 60 hosts, 100 mobile phones,
110 host CPU, 120 RAM, 130 ROM,
140 display driver, 150 DAC, 200 image processing IC,
210 TS separator, 230 video decoder, 240 audio decoder,
250 display control unit, 260 tuner I / F, 270 host I / F,
280 Driver I / F, 290 Audio I / F, 910, 930 Antenna,
940 tuner, 960 display panel, 970 speaker
Claims (15)
前記ストリームデータから分離された固定長のパケットデータのエラーを検出し、エラーの有無を示すエラー情報を該パケットデータに付加するエラー処理部と、
前記パケットデータのデコード処理を行うためのデコーダとを含み、
前記パケットデータを可変長のセクションや可変長のパケットに変換することなく、前記エラー情報に基づいて、前記デコード処理又は前記パケットデータの廃棄を行うことを特徴とするデコード装置。 A decoding device for performing decoding processing on stream data in which packet data is multiplexed,
An error processing unit that detects an error in fixed-length packet data separated from the stream data and adds error information indicating the presence or absence of the error to the packet data;
A decoder for decoding the packet data,
A decoding apparatus, wherein the decoding process or the packet data is discarded based on the error information without converting the packet data into a variable-length section or a variable-length packet.
前記エラー情報と前記パケットデータとが格納されるバッファを含み、
前記デコーダが、前記バッファから前記エラー情報及び前記パケットデータを読み出すと共に、該エラー情報に基づいてデコード処理又はパケットデータの廃棄を行うか決定することを特徴とするデコード装置。 In claim 1,
A buffer for storing the error information and the packet data;
The decoding apparatus, wherein the decoder reads out the error information and the packet data from the buffer, and determines whether to perform a decoding process or discard the packet data based on the error information.
パケットデータを前記バッファに書き込むのに先立って、直前のパケットデータに付加されるエラー情報を前記バッファに書き込むことを特徴とするデコード装置。 In claim 2,
Prior to writing packet data into the buffer, error information added to the immediately preceding packet data is written into the buffer.
前記エラー処理部が、
前記パケットデータを前記バッファに書き込むための書き込み要求中に該バッファへの別の書き込み要求が発生したことを示すエラー情報を前記パケットデータに付加することを特徴とするデコード装置。 In claim 2 or 3,
The error processing unit
A decoding device, wherein error information indicating that another write request to the buffer has occurred during a write request for writing the packet data to the buffer is added to the packet data.
前記エラー情報は、
該エラー情報が付加されるパケットデータに先立って読み出されるように前記バッファの記憶領域に格納されることを特徴とするデコード装置。 In any of claims 2 to 4,
The error information is
A decoding apparatus, wherein the error information is stored in a storage area of the buffer so as to be read prior to packet data to which the error information is added.
前記パケットデータが、TS(Transport Stream)パケットであり、
前記TSパケットを可変長のセクションやPES(Packetized Elementary Stream)パケットに変換することなく、前記エラー情報に基づいて、前記デコード処理又は前記TSパケットの廃棄を行うことを特徴とするデコード装置。 In any one of Claims 1 thru | or 5,
The packet data is a TS (Transport Stream) packet,
A decoding apparatus characterized by performing the decoding process or discarding the TS packet based on the error information without converting the TS packet into a variable-length section or a PES (Packetized Elementary Stream) packet.
前記エラー処理部が、
PMT(Program Map Table)のデータ構造におけるtable_id、section_syntax_indicator、current_next_indicator、section_numberのうち少なくとも1つのエラーを検出し、エラーの有無を示すエラー情報を該パケットデータに付加することを特徴とするデコード装置。 In claim 6,
The error processing unit
A decoding apparatus characterized by detecting at least one error among table_id, section_syntax_indicator, current_next_indicator, and section_number in a data structure of a PMT (Program Map Table), and adding error information indicating the presence / absence of an error to the packet data.
前記エラー処理部が、
PAT(Program Association Table)又はNIT(Network Information Table)のエラーを検出し、エラーの有無を示すエラー情報を前記パケットデータに付加することを特徴とするデコード装置。 In claim 6,
The error processing unit
A decoding apparatus, wherein an error in a PAT (Program Association Table) or NIT (Network Information Table) is detected, and error information indicating the presence or absence of an error is added to the packet data.
前記エラー情報に基づいて、PMT、PAT又はNITのエラーが検出されたパケットデータは廃棄されることを特徴とするデコード装置。 In claim 7 or 8,
A decoding apparatus characterized in that packet data in which a PMT, PAT, or NIT error is detected is discarded based on the error information.
前記ストリームデータから分離された固定長のパケットデータのエラーを検出し、
エラーの有無を示すエラー情報を該パケットデータに付加し、
前記パケットデータを可変長のセクションや可変長のパケットに変換することなく、前記エラー情報に基づいて、前記パケットデータのデコード処理を行うか、前記パケットデータの廃棄を行うかを決定し、
前記エラー情報に基づいて前記パケットデータのデコード処理を行うことが決定されたとき、該デコード処理を行うことを特徴とするデコード方法。 A decoding method for performing decoding processing on stream data in which packet data is multiplexed,
Detecting an error in fixed-length packet data separated from the stream data;
Add error information indicating the presence or absence of errors to the packet data,
Without converting the packet data into variable-length sections or variable-length packets, based on the error information, determine whether to decode the packet data or discard the packet data,
A decoding method comprising: performing decoding processing when it is determined to perform decoding processing of the packet data based on the error information.
映像データを生成するための第1のTS(Transport Stream)パケット、音声データを生成するための第2のTSパケット、前記第1及び第2のTSパケット以外の第3のTSパケットを、トランスポートストリームから抽出する分離処理部と、
前記第1のTSパケットが格納される第1の記憶領域と、前記第2のTSパケットが格納される第2の記憶領域と、前記第3のTSパケットが格納される第3の記憶領域とを有するメモリと、
前記第1の記憶領域から読み出された前記第1のTSパケットに基づいて前記映像データを生成する映像デコード処理を行う映像デコーダと、
前記第2の記憶領域から読み出された前記第2のTSパケットに基づいて前記音声データを生成する音声デコード処理を行う音声デコーダとを含み、
前記分離処理部が、
前記第1〜第3のTSパケットの各TSパケットのエラーを検出し、エラーの有無を示すエラー情報を各TSパケットに付加し、
各TSパケットを可変長のセクションやPES(Packetized Elementary Stream)パケットに変換することなく、前記エラー情報に基づいて、前記映像デコード処理、前記音声デコード処理又はTSパケットの廃棄を行うことを特徴とする情報再生装置。 An information reproducing apparatus for reproducing at least one of video data and audio data,
Transport a first TS (Transport Stream) packet for generating video data, a second TS packet for generating audio data, and a third TS packet other than the first and second TS packets. A separation processing unit for extracting from the stream;
A first storage area for storing the first TS packet; a second storage area for storing the second TS packet; and a third storage area for storing the third TS packet; A memory having
A video decoder for performing video decoding processing for generating the video data based on the first TS packet read from the first storage area;
An audio decoder that performs audio decoding processing for generating the audio data based on the second TS packet read from the second storage area;
The separation processing unit is
Detecting an error in each TS packet of the first to third TS packets, adding error information indicating the presence or absence of an error to each TS packet;
The video decoding process, the audio decoding process, or the discarding of the TS packet is performed based on the error information without converting each TS packet into a variable-length section or a PES (Packetized Elementary Stream) packet. Information playback device.
前記映像デコーダが、前記第1の記憶領域から前記第1のTSパケットを、前記音声デコーダとは独立して読み出し、該第1のTSパケットに基づいて前記映像デコード処理を行うと共に、
前記音声デコーダが、前記第2の記憶領域から前記第2のTSパケットを、前記映像デコーダとは独立して読み出し、該第2のTSパケットに基づいて前記音声デコード処理を行うことを特徴とする情報再生装置。 In claim 11,
The video decoder reads the first TS packet from the first storage area independently of the audio decoder, performs the video decoding process based on the first TS packet,
The audio decoder reads the second TS packet from the second storage area independently of the video decoder, and performs the audio decoding process based on the second TS packet. Information playback device.
前記映像データ及び音声データのうち前記映像データのみを再生するときは、前記音声デコーダの動作を停止させ、
前記映像データ及び音声データのうち前記音声データのみを再生するときは、前記デコード装置の動作を停止させることを特徴とする情報再生装置。 In claim 11 or 12,
When reproducing only the video data of the video data and audio data, stop the operation of the audio decoder,
An information reproducing apparatus characterized by stopping the operation of the decoding apparatus when reproducing only the audio data of the video data and audio data.
前記情報再生装置に対し、前記映像デコード処理及び前記音声デコード処理の少なくとも1つの処理開始を指示するホストとを含むことを特徴とする電子機器。 An information reproducing apparatus according to any one of claims 11 to 13,
An electronic apparatus comprising: a host that instructs the information reproduction apparatus to start at least one of the video decoding process and the audio decoding process.
前記チューナからのトランスポートストリームが供給される請求項11乃至13のいずれか記載の情報再生装置と、
前記情報再生装置に対し、前記映像デコード処理及び前記音声デコード処理の少なくとも1つの処理開始を指示するホストとを含むことを特徴とする電子機器。 Tuner,
The information reproducing apparatus according to claim 11, wherein a transport stream from the tuner is supplied;
An electronic apparatus comprising: a host that instructs the information reproduction apparatus to start at least one of the video decoding process and the audio decoding process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006107294A JP2007282001A (en) | 2006-04-10 | 2006-04-10 | Decoding device, decoding method, information reproducing device, and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006107294A JP2007282001A (en) | 2006-04-10 | 2006-04-10 | Decoding device, decoding method, information reproducing device, and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007282001A true JP2007282001A (en) | 2007-10-25 |
Family
ID=38682984
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006107294A Pending JP2007282001A (en) | 2006-04-10 | 2006-04-10 | Decoding device, decoding method, information reproducing device, and electronic equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007282001A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010037966A1 (en) * | 2008-10-02 | 2010-04-08 | Sagem Communications Sas | Method of managing the receipt of a command to change services in a digital television decoder |
JP2011236761A (en) * | 2010-05-07 | 2011-11-24 | Hitachi Automotive Systems Ltd | Control device for internal combustion engine |
WO2017061280A1 (en) * | 2015-10-08 | 2017-04-13 | ソニー株式会社 | Reception device and method |
-
2006
- 2006-04-10 JP JP2006107294A patent/JP2007282001A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010037966A1 (en) * | 2008-10-02 | 2010-04-08 | Sagem Communications Sas | Method of managing the receipt of a command to change services in a digital television decoder |
FR2936923A1 (en) * | 2008-10-02 | 2010-04-09 | Sagem Comm | METHOD FOR MANAGING THE RECEPTION OF A SERVICE CHANGE CONTROL IN A DIGITAL TELEVISION DECODER |
CN102210161A (en) * | 2008-10-02 | 2011-10-05 | 萨基姆通讯宽带公司 | Method of managing the receipt of a command to change services in a digital television decoder |
US9124844B2 (en) | 2008-10-02 | 2015-09-01 | Sagemcom Broadband Sas | Method of managing the receipt of a command to change services in a digital television decoder |
JP2011236761A (en) * | 2010-05-07 | 2011-11-24 | Hitachi Automotive Systems Ltd | Control device for internal combustion engine |
WO2017061280A1 (en) * | 2015-10-08 | 2017-04-13 | ソニー株式会社 | Reception device and method |
US10594437B2 (en) | 2015-10-08 | 2020-03-17 | Sony Corporation | Receiving apparatus and method therefor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2608355C1 (en) | Transport stream packets headers compression | |
JP6523249B2 (en) | Method and apparatus for compressing packet header | |
JP2008502186A (en) | Wireless mobile device | |
JP2008011404A (en) | Content processing apparatus and method | |
JP2005210729A (en) | Mpeg-2 decoding system and decoding method | |
JP2007089161A (en) | Multiplex cyclic redundancy check device and method for detection of section, and acquisition of reliability information in digital video broadcast system | |
JP2008283472A (en) | Stream reproducing device | |
WO2010116588A1 (en) | Digital television broadcasting reproduction device and reproduction method therefor | |
JP2008042497A (en) | Decoding device, information reproducing device, and electronic apparatus | |
KR20060113522A (en) | Device and method for initialing decoder in digital broadcasting receiver | |
JP2007282001A (en) | Decoding device, decoding method, information reproducing device, and electronic equipment | |
KR20070026556A (en) | Wireless mobile device | |
JP2008022330A (en) | Information reproducing apparatus and electronic equipment | |
JP5032179B2 (en) | Stream reproducing apparatus and media data decoding method | |
JP2007251543A (en) | Display control unit, control method thereof, information reproducing unit, and electronic equipment | |
JP2007166598A (en) | Information recording device and electronic instrument | |
JP2007166597A (en) | Information reproducing device and electronic instrument | |
JP2007304832A (en) | Memory access controller, memory access system, information reproduction device, and electronic apparatus | |
JP2007288566A (en) | Information recording and playing device and electronics equipment | |
JP2002325230A (en) | Data recorder, recording method, data reproducing device and method | |
JP2008022053A (en) | Decoding apparatus, information reproducing apparatus, and electronic equipment | |
KR20080111374A (en) | Method and apparatus for transporting mobile broadcasting service, and method and apparatus for receiving mobile broadcasting service | |
JP2008022054A (en) | Information reproducing apparatus and electronic equipment | |
JP2008022331A (en) | Display controller, information reproducing apparatus, and electronic equipment | |
CN116405103B (en) | Data transmission method and device based on channel bundling and storage medium |