JP2005026955A - Section filter circuit, transport stream processing apparatus, and digital broadcast reception system - Google Patents
Section filter circuit, transport stream processing apparatus, and digital broadcast reception system Download PDFInfo
- Publication number
- JP2005026955A JP2005026955A JP2003189438A JP2003189438A JP2005026955A JP 2005026955 A JP2005026955 A JP 2005026955A JP 2003189438 A JP2003189438 A JP 2003189438A JP 2003189438 A JP2003189438 A JP 2003189438A JP 2005026955 A JP2005026955 A JP 2005026955A
- Authority
- JP
- Japan
- Prior art keywords
- section
- mask pattern
- pattern
- circuit
- matching
- 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
- Time-Division Multiplex Systems (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
この発明は、トランスポートストリームを受信する装置に関し、さらにトランスポートストリームより所望のセクションを取得する回路を備える装置に関する。
【0002】
【従来の技術】
デジタル放送では映像・音声・静止画・文字データ・音楽データ・番組表などのさまざまな情報がトランスポートストリームパケット形式で伝送される。デジタル放送受信機には、受信したトランスポートストリームパケットのペイロード内のデータ形式がセクション形式のときに必要なセクションデータの抽出を行うセクションフィルタ回路が設けられている。従来のセクションフィルタ回路について、特許文献1を例にして説明する。ただし、特許文献1ではパターンマッチフィルタと書かれているが、セクションフィルタと同じ動作を行うと考えてよい。また、特許文献1のマスクフォーマッチングはマスクパターンに該当する。
【0003】
〈従来のセクションフィルタ回路の動作〉
パターンマッチフィルタ24(特許文献1の図2)は、DEMUX5(特許文献1の図2)内にあり、入力されたトランスポートストリームのセクション(特許文献1の図3(c))に対し、必要なデータであるか不要データであるか判断するブロックである。パターンマッチフィルタの動作概要は、CPU8で設定されたマッチングパターン8バイト(特許文献1の図3(d))と、マッチングパターンが有効か無効かをビット単位で指定されているマスクフォーマッチング8バイト(特許文献1の図3(e))を使用し、有効なビットに関してマッチングパターンとセクション(特許文献1の図3(c))を比較し、全て一致したら必要なデータと判断するものである。
【0004】
【特許文献1】特開2000−32426号公報(図2、図3)
【0005】
【発明が解決しようとする課題】
従来技術では、マスクパターンはマッチングパターンと同じビット長で設定されていたので、マスクパターンを記憶する領域はマッチングパターンを記憶するため領域と同一の容量が必要であった。また、一部だけが異なる複数のパターンを設定する場合、複数のパターンを個別に設定する必要があった。このため、必要な数のマッチングパターンおよびマスクパターンを記憶する領域を確保するためには多くの領域が必要であった。
【0006】
この発明の目的は、マスクパターンを記憶するために必要な容量を削減することができるセクションフィルタ回路を提供することである。
【0007】
【課題を解決するための手段】
ビットマスクは、ビット単位で見るとある程度連続したビットの連続となるので、従来はビット単位で有効か無効か設定していたマスクパターンに関して、ビット位置とビット長の形式で設定する。これによりマスク領域の削減を行うことができる。
【0008】
ただし、ビットマスクに比べ、ビット位置とビット長を設定する形式とすると、マスク設定の個数が限られるため、従来のビット単位で有効か無効か設定する領域とビット位置とビット長を設定する領域を混在させる。これにより最適なマスクパターン領域を決めることができる。
【0009】
また、複数のパターンに関して、一部だけ異なり、異なった部分が他のパターンでは無効であった場合、複数パターンを個別に設定するのではなく、共通なパターン部分と異なるパターン部分に分け、パターンは1種類のパターンとマスク領域に設定し、異なる部分に対してOR演算を指定できる演算種別領域を設ける。これにより設定エントリ数を削減(マッチングパターンとマスクパターンの設定領域を削減)することができる。
【0010】
また、演算種別領域の設定に関して、OR演算だけではなく”(” ”)”の演算の優先順位も設定できるようにすることにより、設定エントリ数を削減(マッチングパターンとマスクパターンの設定領域の削減)することができ、かつ、演算の優先度も考慮した比較を行うことができる。
【0011】
この発明の1つの局面に従うと、セクションフィルタ回路は、マッチングパターン記憶回路と、マスクパターン記憶回路と、マスクパターン変換回路と、比較回路とを備える。マッチングパターン記憶回路は、所定のビット配列を有するマッチングパターンを格納する。マスクパターン記憶回路は、所定のビット配列に符号化された符号化マスクパターンを格納する。マスクパターン変換回路は、マスクパターン記憶回路に格納された符号化マスクパターンをマスクパターンに変換する。比較回路は、マスクパターン変換回路で変換されたマスクデータが示す区間において、トランスポートストリームより抽出されたセクションがマッチングパターン記憶回路に格納されたマッチングパターンと一致するか否かの判断をビット単位で行う。マスクパターンは、マッチングパターンと同じビット長を有する。マスクパターンは、比較回路が判断を行うべき有効区間と比較回路が判断を行うべきではない無効区間とをビット単位で示す。符号化マスクパターンは、マスクパターンの中で有効区間が存在するビット位置を示す。
【0012】
上記セクションフィルタ回路では、符号化マスクパターンは、マスクパターンの中で有効区間(比較回路で判断を行うべき区間)が存在するビット位置を示す。例えば、64bitのマスクパターンの中で先頭から18〜28ビット目の区間に有効区間が存在すると示す場合に、符号化マスクパターンは、有効区間の開始位置を「010010」(=18)としかつその有効区間のビット長を「001010」(=10)として「010010001010」と示す12bitのビット配列を有する。マスクパターン作成回路は、12bitの符号化マスクパターンより64bitのマスクパターンを作成する。次に、比較回路は、マスクパターンが示す有効区間において、トランスポートストリームより抽出されたセクション(例えば64bit)がマッチングパターン記憶回路に格納されたマッチングパターン(例えば64bit)と一致するか否かをビット単位で判断する。これにより、マスクパターンを格納(記憶)するための領域を削減することができる。
【0013】
好ましくは、上記マスクパターン記憶回路は、さらに上記マスクパターンを格納する。上記比較回路は、上記マスクパターン変換回路で変換されたマスクパターンおよびマッチングパターン記憶回路に格納されたマスクパターンのうちいずれか1つが示す区間において、トランスポートストリームより抽出されたセクションがマッチングパターン記憶回路に格納されたマッチングパターンと一致するか否かの判断をビット単位で行う。
【0014】
上述のセクションフィルタ回路において、例えば、マスクパターンの有効区間と無効区間とが交互に存在する場合などでは、符号化マスクパターンのビット長がその符号化マスクパターンをマスクパターン変換回路で変換した後のマスクパターンのビット長よりも長くなる場合がある。
【0015】
上記セクションフィルタ回路では、マスクパターン記憶回路に符号化マスクパターンと変換されていないマスクパターンとを格納する。つまり、上述のような場合には、符号化されていないマスクパターンをマスクパターン記憶回路に格納する。これにより、上述の場合において符号化マスクパターンのみをマスクパターン記憶回路に格納する場合よりも、マスクパターンを格納するための領域を削減することができる。
【0016】
好ましくは、トランスポートストリーム処理装置は、パケット取得回路と、セクションデータ取得回路と、上記セクションフィルタ回路と、データバッファとを備える。パケット取得回路は、トランスポートストリームより所望のセクションを含むパケットを取得する。セクション取得回路は、パケット取得回路で取得されたパケットよりセクションを取得する。上記セクションフィルタ回路は、セクション取得回路で取得されたセクションがマッチングパターンと一致するか否かの判断を行う。データバッファは、セクションフィルタ回路で一致すると判断されたセクションを蓄積する。
【0017】
好ましくは、デジタル放送受信装置は、フラッシュメモリと、CPUと、受信部と、上記トランスポートストリーム処理装置と、メモリとを備える。フラッシュメモリは、特定のプログラムを格納する。CPUは、フラッシュメモリに格納されたプログラムに従って上記マッチングパターンおよび上記マスクパターンを作成する。受信部は、トランスポートストリームを受信する。上記トランスポートストリーム処理装置は、上記マッチングパターンと一致すると判断されたセクションを蓄積する。メモリは、前記トランスポートストリーム処理装置で蓄積されたセクションを記録する。特定のプログラムは、CPUに上記マッチングパターンおよび上記符号化マスクパターンを作成させるプログラムである。上記マッチングパターン記憶回路は、CPUで作成されたマッチングパターンを格納する。上記マスクパターン記憶回路は、CPUで作成された符号化マスクパターンを格納する。
【0018】
この発明のもう1つの局面に従うと、セクションフィルタ回路は、マッチングパターン記憶回路と、マスクパターン記憶回路と、比較回路とを備える。マッチングパターン記憶回路は、所定のビット配列を有するマッチングパターンを格納するを格納する。マスクパターン記憶回路は、マッチングパターンと同じビット長を有するマスクパターンを格納する。比較回路は、マスクパターン記憶回路に格納されたマスクパターンが示す区間において、トランスポートストリームより抽出されたセクションとマッチングパターン記憶回路に格納されたマッチングパターンとの比較をビット単位で行い、比較の結果得られたデータ(比較結果データ)のうち演算種別情報が示す区間に対して演算種別情報が示す演算を行うことにより前記マッチングパターンと前記セクションデータとが一致するか否かの判断を行う。マスクパターンは、比較回路が判断を行うべき有効区間と比較回路が判断を行うべきではない無効区間とをビット単位で示す。演算種別情報は、比較結果データの中で演算の対象となる上記有効区間と上記有効区間に対して行う演算の内容とを示す。
【0019】
上記セクションフィルタ回路では、比較回路によって得られる比較結果データのうち演算種別情報が示す有効区間に対して演算を行う。例えば、3つの有効区間のうち少なくとも1つの有効区間において上記セクションが上記マッチングパターンと一致していればセクションがマッチングパターンと一致すると判断するという演算が考えられる。この場合、比較回路は3つのマスクパターンを用いて比較を行ったことになる。これにより、演算種別情報を用いることにより1つのマスクパターンから複数のマスクパターンを作成することができ、マスクパターンを記憶するために必要な領域を削減することができる。
【0020】
好ましくは、トランスポートストリーム処理装置は、パケット取得回路と、セクションデータ取得回路と、上記セクションフィルタ回路と、データバッファとを備える。パケット取得回路は、トランスポートストリームより所望のセクションを含むパケットを取得する。セクション取得回路は、パケット取得回路で取得されたパケットよりセクションを取得する。上記セクションフィルタ回路は、セクション取得回路で取得されたセクションがマッチングパターンと一致するか否かの判断を行う。データバッファは、セクションフィルタ回路で一致すると判断されたセクションを蓄積する。
【0021】
好ましくは、デジタル放送受信装置は、フラッシュメモリと、CPUと、受信部と、上記トランスポートストリーム処理装置と、メモリとを備える。フラッシュメモリは、特定のプログラムを格納する。CPUは、フラッシュメモリに格納されたプログラムに従って上記マッチングパターンおよび上記マスクパターンを作成する。受信部は、トランスポートストリームを受信する。上記トランスポートストリーム処理装置は、上記マッチングパターンと一致すると判断されたセクションを蓄積する。メモリは、前記トランスポートストリーム処理装置で蓄積されたセクションを記録する。特定のプログラムは、CPUに上記マッチングパターン,上記符号化マスクパターン,および上記演算種別情報を作成させるプログラムである。上記マッチングパターン記憶回路は、CPUで作成されたマッチングパターンを格納する。上記マスクパターン記憶回路は、CPUで作成された符号化マスクパターンを格納する。上記比較回路は、マスクパターン記憶回路に格納されたマスクパターンが示す区間において、トランスポートストリームより抽出されたセクションとマッチングパターン記憶回路に格納されたマッチングパターンとの比較をビット単位で行い、比較の結果得られたデータ(比較結果データ)のうちCPUで作成された演算種別情報が示す区間に対して前記演算種別情報が示す演算を行うことによりマッチングパターンとセクションデータとが一致するか否かの判断を行う。
【0022】
【発明の実施の形態】
以下、この発明の実施の形態を図面を参照して詳しく説明する。なお、図中同一または相当部分には同一の符号を付しその説明は繰り返さない。
【0023】
(第1の実施形態)
この発明の第1の実施形態によるデジタル放送受信装置の全体構成を図1に示す。
【0024】
〈デジタル放送受信装置の全体構成〉
デジタル放送受信装置は、チューナ101と、復調部102と、バックエンド部103と、フラッシュメモリ104と、主メモリ105とを備える。バックエンド部103は、TSデコーダ106と、音声デコーダ107と、映像デコーダ108と、CPU109と、モデム110と、インターフェイス(I2C,バスI/F)とを含む。チューナ101は、デジタル放送信号を受信する。復調部102は、チューナ101で受信された信号をトランスポートストリーム形式のデジタル信号に変換する。TSデコーダ106は、復調部102で得られたトランスポートストリーム形式のデジタル信号の中から音声データ,映像データ,および所望のシステム情報(個人情報,番組表など)を抽出する。音声デコーダ107は、TSデコーダ106で抽出された音声データをデコードする。映像デコーダ108は、TSデコーダ106で抽出された映像データをデコードする。フラッシュメモリ104は、CPU109を動作させるためのプログラムを格納する。主メモリ105は、TSデコーダ106より出力されたシステム情報を記録する。CPU109は、フラッシュメモリ104に記録されたプログラムによって装置全体を制御する。モデム110は、電話回線を介して有料放送などを視聴した時の課金料金情報などを放送局などに送信する。また、各装置は、図1に示すように、インターフェイス(I2C,バスI/F)によって繋がっている。
【0025】
〈TSデコーダ106の内部構成〉
次に、TSデコーダ106の内部構成を図2に示す。TSデコーダ106は、同期検出回路201と、PIDフィルタ回路202と、セクション検出回路203と、セクションフィルタ回路204と、データバッファ205とを含む。同期検出回路201は、復調部102(図1参照)で得られたトランスポートストリームのパケットの先頭に含まれる同期バイトを検出してパケットを取得する。PIDフィルタ回路202は、同期検出回路201で取得されたパケットのパケットヘッダに含まれるPIDを参照して所望のパケットを取得する。セクション検出回路203は、PIDフィルタ回路202で取得されたパケットのペイロード部からセクションを検出する。セクションフィルタ回路204は、セクション検出回路203で検出されたセクションが所望のセクションであるか否かを判断する。データバッファ205は、セクションフィルタ回路204で所望のセクションであると判断されたセクションを蓄積する。データバッファ205にある一定量のセクションが蓄積されると、蓄積したセクションを主メモリ105(図1参照)へ出力する。
【0026】
〈セクションフィルタ回路204の内部構成〉
次に、セクションフィルタ回路204の内部構成を図3に示す。セクションフィルタ回路204は、セクションバッファ301と、マッチングパターンRAM302と、比較回路303と、マスクforマッチングRAM304と、レングスデコーダ305と、マスク回路306と、一致検出回路307と、制御回路308とを含む。セクションバッファ301は、セクション検出回路203(図2参照)で検出されたセクションのうちセクションヘッダを蓄積する。マッチングパターンRAM302は、マッチングパターンを格納する。比較回路303は、セクションバッファ301に蓄積されたセクションヘッダとマッチングパターンRAM302に格納されたマッチングパターンとを用いてEOR演算(排他的論理和演算)をビット単位で行う。マスクforマッチングRAM304は、マスクパターンの基となるデータ(符号化マスクパターン)を格納する。レングスデコーダ305は、マスクforマッチングRAM304に格納された符号化マスクパターンをマスクパターンに変換する。マスク回路306は、比較回路303によるEOR演算で得られたデータ(EOR演算データ)とレングスデコーダ305で変換されたマスクパターンとを用いてAND演算(論理積演算)をビット単位で行う。一致検出回路307は、マスク回路306によるAND演算で得られたデータ(AND演算データ)のビット値が全て「0」であるか否かを調べる。データバッファ205(図2参照)は、一致検出回路307においてAND演算データのビット値が全て「0」であると判断されたセクションヘッダを含むセクションデータを保存する。制御回路308は、マッチングパターンRAM302,マスクforマッチングRAM304,および一致検出回路307を制御する。
【0027】
次に、復調部102(図2参照)より出力されるトランスポートストリーム(セクション形式のデータを含むトランスポートストリーム)の構成について図4を参照しつつ説明する。
【0028】
〈トランスポートストリームの説明〉
まず、トランスポートストリームのビット配列例を図4(1)に示す。トランスポートストリームは、複数のトランスポートストリームパケット(TSパケット)より構成される。TSパケットには、ヘッダ(4Byte)とペイロード(184Byte)とが存在する。ヘッダには、同期バイト(8bit),PID(13bit)などが存在する。ペイロードには、セクションが格納される。セクションの格納形式には、複数のセクションが1つのペイロードに格納される場合と、複数のペイロードにわたって格納される場合とが存在する。
【0029】
次に、セクションのビット配列例を図4(2)に示す。セクションには、代表的なデータ種別として、table id(8bit)、section length(12bit)、transport stream id (16bit)、version number(5bit)、section number(8bit)、last section number(8bit)、data byteなどが存在する。また、table idからlast section numberまでの区間(8Byte=64bit)はセクションヘッダである。
【0030】
以上が、セクション形式を含むトランスポートストリームの構成の説明である。
【0031】
次に、以上のように構成された第1の実施形態におけるデジタル放送受信装置の動作について説明する。
【0032】
〈第1の実施形態におけるデジタル放送受信装置の動作〉
第1の実施形態におけるデジタル放送受信装置の動作には、マッチングパターンRAM302にマッチングパターンが格納されかつマスクforマッチングRAM304にマスクパターンが格納されるまでの処理(比較パターン書き込み処理)と、デジタル放送を受信してからTSデコーダ106によって所望のシステム情報を主メモリ105に記録するまでの処理(セクション格納処理)とがある。
【0033】
まず、第1の実施形態による比較パターン書き込み処理について図5を参照しつつ説明する。
【0034】
〈第1の実施形態による比較パターン書き込み処理〉
〔ステップST101〕
まず、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、マッチングパターンとマスクパターンとを作成する。
【0035】
ここで、マッチングパターンおよびマスクパターンについて図6を参照しつつ説明する。
【0036】
〈マッチングパターンおよびマスクパターンの説明〉
まず、マッチングパターンのビット配列例を図6(a)に示す。マッチングパターンは、セクションヘッダとEOR演算を行うときに用いられる。マッチングパターンのビット長は、セクションヘッダと同じビット長(本実施形態では64bit)である。図中においてビット配列の理解を容易にするために、ビット値(2進数)を16進数の値へ変換してブロック(ブロック1つ当たり8bitを示す)に格納した型で表記する。つまり、本来「0」または「1」が64個並ぶデータを、二桁の値が1つ格納されたブロックを8つ用いて表記する。例えば、ブロックの値が「23」ならば、「00100011」を示す。後述するマスクパターン,符号化マスクパターン,および演算種別情報も同様な表記方法を用いて説明する。ただし、符号化マスクパターンの説明においてブロック1つ当たり6bitを示し、演算種別情報の説明においてブロック1つ当たり5bitを示す。
【0037】
次に、マスクパターンのビット配列例を図6(b)に示す。マスクパターンは、セクションヘッダとマッチングパターンとを用いたEOR演算によって得られるデータ(EOR演算データ)のうち、所望のセクションヘッダであるか否かの判断する際に必要とならない区間(無効区間)を削除して所望のセクションヘッダであるか否かを判断する際に必要となる区間(有効区間)を抽出するために用いられる。つまり、マスクパターンにおいて、ビット値が「1」の区間は有効区間を示しかつビット値が「0」を示す区間は無効区間を示す。マスクパターンのビット長は、マッチングパターンと同じビット長(本実施形態では64bit)である。
【0038】
また、マッチングパターンとマスクパターンとは、通常、一対一で対応している。マッチングパターン1つとマスクパターン1つとを1組で1つの比較パターンとして扱う。
【0039】
以上が、マッチングパターンおよびマスクパターンの説明である。
【0040】
〔ステップST102〕
次に、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、作成したマスクパターンのビット配列を解析する。つまり、ビット値が「0」のビットとビット値が「1」のビットとの並びを調べる。
【0041】
〔ステップST103〕
次に、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、解析したマスクパターンにおいて、ビット値が「1」を示す有効区間が始まるビット位置(開始位置)と開始位置から区間の最後までのビット長(長さ)を求める。
【0042】
〔ステップST104〕
次に、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、ステップST103で求めた有効区間の開始位置および長さを用いて符号化マスクパターンを作成する。
【0043】
ここで、符号化マスクパターンについて図6を参照しつつ説明する。
【0044】
〈符号化マスクパターンの説明〉
マスクパターンのビット配列例を図6(c)に示す。符号化マスクパターンは、図6(b)に示したマスクパターンにおいてビットの値が「1」を示す有効区間が始まるビット位置(開始位置)とその開始位置から有効区間の最後までのビット長(長さ)とを6bit単位で示す。例えば、0〜7ビット目の区間のビット値が「1」の場合には有効区間の開始位置は「00」となり開始位置から有効区間の最後までの長さは「08」となる。符号化マスクパターンは、6bit単位で区切られており、「開始位置(6bit)」,「長さ(6bit)」の順に並んでいる。つまり、開始位置1つと長さ1つの1組(合計12bit)によって、ビット値が「1」を示す有効区間を表記している。0〜7ビット目が有効区間の場合、符号化マスクパターンの実際のビット配列は「000000001000」となる。
【0045】
以上が、符号化マスクパターンの説明である。
【0046】
つまり、CPU109は、ステップST103で求めた有効区間の開始位置および長さを用いて、有効区間1つを12bit(開始位置を6bit,長さを6bit)単位で表記した符号化マスクパターンを作成する。
【0047】
〔ステップST105〕
次に、CPU109は、マッチングパターンをマッチングパターンRAM302に書き込む。また、CPU109は、符号化マスクパターンをマスクforマッチングRAM304に書き込む。
【0048】
以上のようにして、マッチングパターンがマッチングパターンRAM302に格納されかつ符号化マスクデータがマスクforマッチングRAM304に格納される。
【0049】
次に、第1の実施形態によるセクション格納処理について説明する。特に、セクションフィルタ回路における処理は、図7を参照しつつ説明する。
【0050】
〈第1の実施形態によるセクション格納処理〉
まず、チューナ101(図1)を介して受信された放送信号は復調部102に入力される。
【0051】
次に、復調部102(図1)は、入力された放送信号をトランスポートストリーム形式のデジタル信号に変換し、TSデコーダ106に含まれる同期検出回路201(図2)に出力する。
【0052】
次に、同期検出回路201(図2)は、復調部102によって得られたトランスポートストリームのパケットの先頭に含まれる同期バイトを検出することによって、TSパケットを取得する。(図4(1)参照)
次に、PIDフィルタ回路202(図2)は、同期検出回路201(図2)で検出されたパケットのヘッダに含まれるPID(図4(1)参照)を識別する。識別の結果所望のパケットであれば、そのパケットのペイロードをセクション検出回路203(図2)に出力する。また、PIDフィルタ回路202は、音声データを格納したパケットであると識別した場合にはそのパケットのペイロードを音声デコーダ107(図1)に出力し、映像データを格納したパケットであると識別した場合にはそのパケットのペイロードを映像デコーダ108(図1)に出力する。
【0053】
次に、セクション検出回路203(図2)は、PIDフィルタ回路202から出力されたペイロードよりセクション(図4(2)参照)を取得し、取得したセクションをデータバッファ205(図2)とセクションフィルタ回路204に含まれるセクションバッファ301(図3)とに出力する。
【0054】
次に、セクションバッファ301(図3)は、セクション検出回路203より入力されたセクションのうちセクションヘッダ(図4(2)参照)を蓄積する。
【0055】
次に、比較回路303(図3)は、セクションバッファ301に蓄積されたセクションヘッダとマッチングパターンRAM302(図3)に格納されたマッチングパターンとを用いてEOR演算(排他的論理和演算)をビット単位で行う(図7参照)。つまり、各ビットにおいて、セクションヘッダのビット値とマッチングパターンのビット値とが一致する場合には「0」、不一致の場合には「1」とする。
【0056】
次に、レングスレコーダ305(図3)は、マスクforマッチングRAM304(図3)に格納された符号化マスクパターンをマスクパターンに変換する(図7参照)。つまり、図7のように、有効区間の開始位置と長さを示す符号化マスクパターン(36bit)を、マスクパターン(64bit)に変換する。
【0057】
次に、マスク回路306(図3)は、比較回路303によるEOR演算で得られたデータ(EOR演算データ)とレングスレコーダ305で変換されたマスクパターンとを用いてAND演算(論理積演算)をビット単位で行う(図7参照)。つまり、各ビットにおいて、EOR演算データのビット値が「1」でかつマスクパターンのビット値が「1」である場合には「1」、それ以外の場合には「0」とする。
【0058】
次に、一致検出回路307(図3)は、マスク回路306によるAND演算で得られたデータ(AND演算データ)の全てのビット値が「0」であるか否かを調べる。全てのビット値が「0」のとき、このセクションヘッダは所望のセクションヘッダであると判断される。
【0059】
次に、データバッファ205(図2参照)は、一致検出回路307(図3)によってAND演算データの全てのビット値が「0」であるときに、セクション検出回路203(図2参照)で取得されたセクションを保存する。つまり、一致検出回路307で全てのビット値が「0」を示すセクションヘッダを含むセクションを保存する。次に、データバッファ205(図2参照)は、セクションをある一定量保存した後、主メモリ105(図1)に出力する。
【0060】
次に、主メモリ105(図1)は、データバッファ205より入力されるセクションを記録する。
【0061】
以上のようにして、主メモリ105に所望のシステム情報が記録される。
【0062】
なお、制御回路308(図3)によってマッチングパターンRAM302,マスクforマッチングRAM304,および一致検出回路307が制御され、セクションヘッダ1つに対して全ての比較パターンとの比較が行われる。つまり、1つのセクションヘッダに対して比較回路303から一致検出回路307までの処理(比較処理)を1つの比較パターン(マッチングパターン1つとマスクパターン1つとの組)を用いて行った後、別の比較パターン1つを用いて比較処理を再度行う。このようにして、セクションヘッダ1つと全ての比較パターンとに対して行われる。
【0063】
〈第1の実施形態による効果〉
以上のように、マスクforマッチングRAM304は、マスクパターン(64bit)よりもビット長が短い符号化マスクパターン(36bit)を格納する。これにより、例えば図7のように、マスクパターンを格納するために64bitの記憶領域が必要であったが符号化マスクパターンを用いれば36bitの記憶領域でマスクパターンを格納することができ、記憶領域を削減することができる。
【0064】
なお、マッチングパターンRAM302に格納されているマッチングパターンおよびマスクforマッチングRAM304に格納されている符号化マスクパターンは、CPU109によって新たに書き込むことも可能である。つまり、CPU109は、ユーザなどの指示に従って、処理の途中にマッチングパターンおよびマスクパターンを書き換えることも可能である。
【0065】
なお、モデム110は、バックエンド部103の外部に設置してもかまわない。
【0066】
(第2の実施形態)
上述のように、符号化マスクパターンによってマスクパターンを有効区間の開始位置と長さとで表記する方法は、ビット値が「1」の区間が連続している場合には有効であるが、ビット値が「0」、「1」が短い間隔で混在する場合(例えば、「0」と「1」とが1ビットごとに交互に存在する場合など)には64bitを超えてしまう可能性がある。
【0067】
この発明の第2の実施形態によるデジタル放送受信装置は、第1の実施形態によるものと全体構成,TSデコーダ106の内部構成,およびセクションフィルタ回路204の内部構成は同じである。第2の実施形態では、セクションフィルタ回路204に含まれるマスクforマッチングRAM304は、符号化マスクパターンに加えて符号化されていないマスクパターンをさらに格納する。
【0068】
通常、マッチングパターンRAM302は複数個のマッチングパターンを格納し、マスクforパターンRAM304は複数個のマスクパターンを格納する。つまり、所望のセクションを判断するときには、複数個の比較パターン(マッチングパターンとマスクパターンとの組)が用いられる。また、トランスポート1つ当たり比較パターン32組程度設定することができる。
【0069】
以下に、第2の実施形態によるデジタル放送受信装置の動作について説明する。
【0070】
〈第2の実施形態によるデジタル放送受信装置の動作〉
第2の実施形態によるデジタル放送受信装置の動作は、第1の実施形態によるものと比較すると、比較パターン書き込み処理とセクション格納処理でのマスク回路306における処理とが異なる。よって、以下に、この2つの処理について説明する。
【0071】
まず、第2の実施形態によるデジタル放送受信装置において、比較パターン書き込み処理について図8を参照しつつ説明する。
【0072】
〈第2の実施形態による比較パターン書き込み処理〉
〔ステップST101〜104〕
まず、第1の実施形態と同様に、CPU109は、マッチングパターンおよびマスクパターンを作成する。
【0073】
〔ステップST201〕
次に、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、符号化マスクパターンのビット長を調べる。符号化マスクパターンビット長が変換前のマスクパターンのビット長よりも短い場合にはステップST105ヘ進み、そうでない場合にはステップST203へ進む。
【0074】
〔ステップST105〕
次に、第1の実施形態と同様に、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、マッチングパターンをマッチングパターンRAM302に書き込む。また、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、符号化マスクパターンをマスクforマッチングRAM304に書き込む。
【0075】
〔ステップST202〕
一方、ステップST201で符号化マスクパターンのビット長が変換前のマスクパターンのビット長よりも長い場合、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、マッチングパターンをマッチングパターンRAM302に書き込む。また、CPU109は、フラッシュメモリ104に格納されたプログラムに従い、変換していないマスクパターンをマスクforマッチングRAM304に書き込む。
【0076】
このようにしてマスクforマッチングRAM304に格納されたマスクパターンの一例を図9に示す。この例では、マスクforマッチングRAM304には、符号化マスクパターンが16エントリ格納されかつ符号化されていないマスクパターンが16エントリ格納されている。つまり、この場合、マスクforマッチングRAM304に格納されている32エントリのうち16エントリ分が符号化による記憶領域の削減があまり見込めないマスクパターンである。
【0077】
以上が、第2の実施形態における比較パターン書込み処理についての説明である。
【0078】
次に、第2の実施形態によるマスク回路306における処理について説明する。
【0079】
〈第2の実施形態によるマスク回路306における処理〉
マスク回路306は、比較回路303によるEOR演算で得られたデータ(EOR演算データ)とレングスレコーダ305で変換されたマスクパターンとを用いてAND演算(論理積演算)をビット単位で行う。または、マスク回路306は、比較回路303によるEOR演算で得られたデータ(EOR演算データ)とマスクforマッチングRAM304に格納されているマスクパターンとを用いてAND演算(論理積演算)をビット単位で行う。つまり、比較回路303は、レングスデコーダ305で変換されたマスクパターンとマスクforマッチングRAM304に格納されているマスクパターンとを用いる。次に、AND演算によって得られたデータを一致検出回路307に出力する。
【0080】
〈第2の実施形態による効果〉
以上のように、符号化マスクパターンに変換しても記録領域の削減があまり見込めない場合には、符号化されていないマスクパターンによって表記する。このようにして、符号化マスクパターンと符号化されていないマスクパターンとを混在させることにより、符号化マスクパターンのみを用いる場合と比較すると、マスクforマッチングRAM304の記憶領域を有効に使用することができる。
【0081】
なお、符号化マスクマスクパターンのエントリ数と変換されていないマスクパターンのエントリ数との比率は、放送事業者やターゲット機種に応じて最適化することができる。
【0082】
(第3の実施形態)
比較パターンの中にはよく似たパターンを構成するものが存在する。例えば、図12に示すマッチングパターンa301,a302およびマスクパターンb301,b302のような場合がある。従来では、このようなよく似たパターンのものでも、マッチングパターンRAM302およびマスクforマッチングRAM304に1エントリ(比較パターン1組)として1つ1つ設定していた。
【0083】
この発明の第3の実施形態によるデジタル放送受信装置は、第1の実施形態によるものと比較すると、全体構成(図1参照)およびTSデコーダ106の内部構成(図2参照)は同じであるがセクションフィルタ回路204の内部構成(図3参照)が異なる。第3の実施形態では、図3の代わりに図10に示すセクションフィルタ回路214を備える。図10に示したセクションフィルタ回路214回路は、レングスデコーダ305に代えて演算種別デコーダ401を含む。マスクforマッチングRAM304は、符号化マスクパターンに加えて演算種別情報をさらに格納する。演算種別デコーダ401は、マスクforマッチングRAM304に格納されたマスクパターンを基としてマスクforマッチングRAM304に格納された演算種別情報を用いて別のマスクパターンを作成する。演算種別情報はOR演算を行う位置を示す(演算種別情報についての説明は後述する)。
【0084】
以下に、第3の実施形態によるデジタル放送受信装置の動作について説明する。
【0085】
〈第3の実施形態によるデジタル放送受信装置の動作〉
第3の実施形態によるデジタル放送受信装置の動作は、第1の実施形態によるものと比較すると、比較パターン書き込み処理とセクション格納処理でのセクションフィルタ回路214(図10参照)における処理とが異なる。よって、以下に、この2つの処理について説明する。なお、第1および第2の実施形態においてはデータバッファに蓄積されるセクションヘッダのビット長は64bitとしていたが、第3の実施形態の実施形態においては96bitとする。また、マッチングパターンおよびマスクパターンも同様に96bitとする。
【0086】
まず、第3に実施形態による比較パターン書き込み処理について図11および図12を参照しつつ説明する。
【0087】
〈第3の実施形態による比較パターン書き込み処理〉
第3の実施形態による比較パターン書き込み処理では、マッチングパターンおよびマスクパターンに加えて、演算種別情報をさらに書き込む。
【0088】
〔ステップST301〕
まず、CPU109は、フラッシュメモリ104の格納されたプログラムに従い、マッチングパターンおよびマスクパターンを作成する。このとき、各パターンは少なくとも2つ以上作成される。例えば、図12に示すようなマッチングパターンa301,a302およびマスクパターンb301,b302が作成される。
【0089】
〔ステップST302〕
次に、CPU109は、フラッシュメモリ104の格納されたプログラムに従い、マッチングパターンのビット配列およびマスクパターンのビット配列を解析する。つまり、ビット値が「0」のビットとビット値が「1」のビットとの並びを調べる。
【0090】
〔ステップST303〕
次に、CPU109は、フラッシュメモリ104の格納されたプログラムに従い、各パターンのビット配列に注目して共通なパターンを示す区間と異なるパターンを示す区間とをバイト単位で判断する。図12の場合は、マッチングパターンa301およびマスクパターンb301は有効区間A,B,C,Gを有し、一方、マッチングパターンa302およびマスクパターンb302は有効区間A,B,C,Hを有する。この場合、有効区間A,B,Cは両方に存在するが、有効区間G,Hは一方にしか存在しない。よって、図12のように、共通のパターンを示す区間は有効区間が両方に存在する区間と無効区間とであり、異なるパターンを示す区間は有効区間が一方にのみ存在する区間である。つまり、共通のパターンを示す区間は1〜9バイト目の区間および11〜12バイト目の区間であり、異なるパターンを示す区間は9〜10,10〜11バイト目の区間である。
【0091】
〔ステップST304〕
次に、CPU109は、フラッシュメモリ104の格納されたプログラムに従い、異なるパターンを示す区間(有効区間の位置が異なる区間)において、各パターンが示す有効区間の位置を解析する。図12の場合は、マスクパターンb301において9〜10バイト目の区間が有効区間Gでありかつ10〜11バイト目の区間が無効区間であるが、マスクパターンb302において9〜10バイト目の区間が無効区間でありかつ10〜11バイト目の区間が有効区間Hである。
【0092】
〔ステップST305〕
次に、CPU109は、フラッシュメモリ104の格納されたプログラムに従い、異なるパターンを示す区間において全ての有効区間を包括した包括マッチングパターンおよび包括マスクパターンを作成する。つまり、包括マッチングパターンおよび包括マスクパターンに対して、共通するパターンを示す区間には全てのパターンのいずれか1つパターンが示すビット値を設定し、異なるパターンを示す区間には全パターンのうち少なくとも1つのパターンに含まれる有効区間が示すビット値を設定する。図12の場合、包括マッチングパターンa3001および包括マスクパターンb3001は、有効区間A,B,C,G,Hを含む。
【0093】
〔ステップST306〕
次に、CPU109は、フラッシュメモリ104の格納されたプログラムに従い、ステップST303での判断の結果を用いて演算種別情報を作成する。
【0094】
ここで、演算種別情報について説明する。
【0095】
〈演算種別情報の説明〉
演算種別情報は、OR演算を行うバイト位置を示す。OR演算とは、演算種別情報に示されたバイト位置の前後1バイトの区間(演算種別情報が示すバイト位置を中心とした2バイトの区間)において前方の1バイトの区間および後方の1バイトのうち1つを選択する処理を指す。図12の場合、演算種別情報c3001は、有効区間Gおよび有効区間Hのうち1つを選択する処理を指す。また、図12の場合、ブロック1つ(ブロック1つ当たり5bitである)につきOR演算を行うバイト位置を示す値が1つ格納される。
【0096】
〔ステップST307〕
次に、CPU109は、フラッシュメモリ104の格納されたプログラムに従い、マッチングパターンをマッチングパターンRAM302に書き込む。また、CPU109は、符号化マスクパターンおよび演算種別情報をマスクforマッチングRAM304に書き込む。
【0097】
以上が、第3の実施形態における比較パターン書き込み処理の説明である。
【0098】
次に、第3の実施形態によるセクションフィルタ回路214における処理について説明する。
【0099】
〈第3の実施形態によるセクションフィルタ回路214における処理〉
第3の実施形態によるセクションフィルタ回路214における処理は、第1の実施形態のものと比較すると、マスク回路306による処理が異なる。マスク回路306は、演算種別デコーダ401より出力されたマスクパターンを用いて、上述のようにAND演算を行う。よって、以下に、演算種別デコーダ401における処理について図13および図14を参照しつつ説明する。
【0100】
〈演算種別デコーダ401における処理〉
〔ステップST311〕
まず、演算種別デコーダ401に、マスクforマッチングRAM304に格納された包括マスクパターンが入力される。例えば、図14に示すような包括マスクパターンb3001が入力される。
【0101】
〔ステップST312〕
次に、演算種別デコーダ401は、マスクforマッチングRAM304に格納された演算種別情報を取得する。例えば、図14に示すような演算種別情報c3001を取得する。
【0102】
〔ステップST313〕
次に、演算種別デコーダ401は、取得した演算種別情報を解析する。つまり、演算種別情報に格納されているOR演算とその演算を行うバイト位置とを調べる。図14の場合、演算種別情報c3001は、10バイト目に演算を行うことが示されているので、演算を行う区間を9〜11バイト目の区間と示す。また、演算種別情報c3001は、10バイト目の前後1バイトにおいてOR演算することを示す。
【0103】
〔ステップST314〕
次に、演算種別デコーダ401は、演算種別情報の解析により得られた演算に従って、包括マスクパターンの中から有効区間を選択する。図14の場合、演算種別情報c3001を解析した結果を用いて、9〜10バイト目の有効区間Gを選択する場合と10〜11バイト目の有効区間Hを選択する場合とがある。
【0104】
〔ステップST315〕
次に、演算種別デコーダ401は、包括マスクパターンのうちステップST314で選択された有効区間以外の演算区間に対してビット値を全て「0」に設定したマスクパターンを作成する。このように、演算に従って、包括マスクパターンを基として元のマスクパターンを復元する。復元されたマスクパターンは、包括マッチングパターンにそれぞれ対応している。図14の場合、ステップST314における処理で、有効区間Gを選択する場合と有効区間Hを選択する場合との2つの選択方法が得られている。これに従って、包括マスクパターンb3001のうち10〜11バイト目の区間のビット値を「0」に設定したマスクパターンb301と、包括マスクパターンb3001に対して9〜10バイト目の区間のビット値を「0」に設定したマスクパターンb302とを作成する。また、作成されたマスクパターンb301,b302は包括マッチングパターンa3001と対応しており、包括マッチングパターンa3001とマスクパターンb301とで1つの比較パターンを構成し、包括マッチングパターンa3001とマスクパターンb302とで1つの比較パターンを構成する。
【0105】
〔ステップST316〕
次に、演算種別デコーダ401は、復元したマスクパターンをマスク回路306に出力する。図14の場合、マスクパターンb301,b302がマスク回路306に出力される
このようにして、包括マスクパターンb3001を基にしてマスクパターンb301,b302が復元される。
【0106】
以上が、第3の実施形態によるセクションフィルタ回路214における処理の説明である。
【0107】
〈第3の実施形態による効果〉
以上のように、演算種別デコーダ401は、マスクforマッチングRAM304に格納された演算種別情報を用いて元のマスクパターンを復元する。これにより、マッチングパターンおよびマスクパターンを作成してそのままマッチングパターンRAM302およびマスクforマッチングRAM304に格納する場合と比較すると、マッチングパターンおよびマスクパターンを記憶するために必要な領域を削減することができる。
【0108】
(第4の実施形態)
この発明の第4の実施形態によるデジタル放送受信装置の全体構成は、第3の実施形態によるデジタル放送受信装置(図1,2,10参照)と同じであるが、演算種別情報が異なる。よって、以下に、第4の実施形態における演算種別情報について説明する。
【0109】
〈第4の実施形態における演算種別情報の説明〉
第4の実施形態における演算種別情報は、OR演算の位置,AND演算の位置,および演算を行う区間(演算区間)を示す。
【0110】
OR演算は、演算種別情報に示されたバイト位置の前後において前方に存在する区間および後方に存在する区間のうち1つを選択する処理を指す。
【0111】
AND演算は、演算種別情報に示されたバイト位置の前後において前方に存在する区間および後方に存在する区間を同時に2つ選択する処理を指す。AND演算はOR演算よりも優先して行われる。
【0112】
演算区間は、”(”および”)”で示される。つまり、演算種別情報によって”(”が示すバイト位置から”)”が示すバイト位置までの区間を指す。演算区間内の演算は演算区間外の演算よりも優先して行われる。
【0113】
また、演算種別情報は、ブロック1つ(ブロック1つ5bit)に演算の値を1つ格納する。なお、演算の種類を区別するために、OR演算を行うバイト位置を示す値は上位ビットが「0」で示されており、演算区間の始点位置”(”または演算区間の終端”)”を設定するバイト位置を示す値は上位ビットが「1」で示されている。さらに、演算を行う区間において演算種別情報に格納された値が示していないバイト位置はAND演算を行う位置である。また、演算区間と演算区間との間にAND演算を行う場合は、演算区間を示す値を2つのブロックに重複して格納する(図17に示す演算種別情報c4011を参照)。
【0114】
また、演算区間が設定されていない区間においては、演算区間は演算種別情報が示す最も先頭のバイト位置よりも1バイト前のバイト位置から演算種別情報が示す最も後方のバイト位置よりも1バイト後ろのビット位置までの区間である。例えば、図15の場合、演算種別情報c4001が示す最も先頭のバイト位置は「09」つまり9バイト目であるから、演算を行う区間の始めの位置は8バイト目である。また、演算種別情報c4001が示す最も後方のバイト位置は「0B」つまり11バイト目であるから、演算を行う区間の終わりの位置は12バイト目である。
【0115】
以上が、第4の実施形態における演算種別情報の説明である。
【0116】
次に、第4の実施形態によるデジタル放送受信装置の動作について説明する。
【0117】
〈第4の実施形態によるデジタル放送受信装置の動作の説明〉
第4の実施形態によるデジタル放送受信装置の動作は、第3の実施形態によるものと同じであるが、作成される演算種別情報が異なる。よって、以下に、演算種別情報に関係する処理(比較パターン書き込み処理と演算種別デコーダ401における処理)について説明する。
【0118】
まず、第4の実施形態による比較パターン書き込み処理について図11および図15を参照しつつ説明する。
【0119】
〈第4の実施形態による比較パターン書き込み処理〉
〔ステップST301,302〕
まず、第3の実施形態と同様の処理が行われ、図15のようなマッチングパターンa401,a402,a403およびマスクパターンb401,b402,b403が作成されてビット配列が解析される。
【0120】
〔ステップST303〕
次に、第3の実施形態と同様の処理が行われ、共通のパターンを示す区間と異なるパターンを示す区間とが判断される。図15の場合、共通のパターンを示す区間は1〜8バイト目の区間であり、異なるパターンを示す区間は8〜12バイト目の区間である。
【0121】
〔ステップST304〕
次に、第3の実施形態と同様の処理が行われ、異なるパターンを示す区間(各パターンに存在する有効区間の位置が異なる区間)において、各パターンが示す有効区間の位置が解析される。図15の場合、マスクパターンb401において8〜9バイト目の区間は有効区間Gでありかつ9〜12バイト目の区間は無効区間であり、マスクパターンb402において9〜11バイト目の区間は有効区間でありかつ8〜9,11〜12バイト目の区間は無効区間であり、マスクパターンb403において11〜12バイト目の区間は有効区間でありかつ8〜11バイト目の区間は無効区間である。
【0122】
〔ステップST305〕
次に、第3の実施形態と同様の処理が行われ、図15に示すような包括マッチングパターンa4001および包括マスクパターンb4001が作成される。
【0123】
〔ステップST306〕
次に、第3の実施形態と同様の処理が行われ、演算種別情報が作成される。図15の場合、異なるパターンを示す区間において、有効区間Gのみが存在する場合と、有効区間H,Iのみが存在する場合と、有効範囲Jのみが存在する場合とがある。よって、(有効区間G)or(有効区間H,I)or(有効区間J)と示される演算を演算種別情報c4001に格納しなければならない。つまりAND演算を行うバイト位置を10バイト目と示し、OR演算を行うバイト位置を9バイト目(有効区間GとHとの間)および11バイト目(有効区間IとJとの間)と示す情報が必要となる。そこで、図15に示すように、演算種別情報c4001の各ブロックに「09」,「0B」を格納する。
【0124】
〔ステップST307〕
次に、第3の実施形態と同様の処理が行われ、作成された包括マッチングパターンはマッチングパターンRAM302に書き込まれ、包括マスクパターンおよび演算種別情報はマスクforマッチングRAM304に書き込まれる。図15の場合、包括マッチングパターンa4001はマッチングパターンRAM302に書き込まれ、包括マスクパターンb4001および演算種別情報c4001はマスクforマッチングRAM304に書き込まれる。
【0125】
以上が、比較パターン書き込み処理の説明である。
【0126】
次に、第4の実施形態による演算種別デコーダ401における処理について図13および図16を参照しつつ説明する。
【0127】
〈演算種別デコーダ401の動作〉
〔ステップST311,312〕
まず、第3の実施形態と同様に、図16に示すような包括マスクパターンb4001および演算種別情報c4001が入力される。
【0128】
〔ステップST313〕
次に、第3の実施形態と同様に、演算種別情報が解析される。ここでは、演算区間と演算の内容とが調べられる。図16の場合、演算種別情報c4001は、9バイト目と11バイト目とに演算を行うことが示されている。よって、演算区間は8〜12バイト目の区間である。また、演算種別情報c4001は、9,11バイト目においてOR演算を行いかつ10バイト目においてAND演算を行うことを示す。
【0129】
〔ステップST314〕
次に、第3の実施形態と同様に、包括マスクパターンのうち演算区間に存在する有効区間が選択される。図16の場合、演算種別情報c4001を解析した結果を用いて、8〜9バイト目の有効区間Gを選択する場合と、9〜11バイト目の有効区間H,Iを選択する場合と、11〜12バイト目の有効区間Jを選択する場合とがある。
【0130】
〔ステップST315〕
次に、第3の実施形態と同様に、包括マスクパターンのうちステップST314で選択された有効区間以外の演算区間に対してビット位置を全て「0」に設定したマスクパターンを作成する。図16の場合、ステップST314における処理で、有効区間Gを選択する場合と有効区間H,Iを選択する場合と有効区間Jを選択する場合との3つの選択方法が得られている。これに従って、包括マスクパターンb4001の演算区間おいて8〜9バイト目に対して有効区間Gが示すビット値を設定しかつ10〜11バイト目の区間のビット値を「0」に設定したマスクパターンb401と、包括マスクパターンb3001の演算区間おいて9〜11バイト目の区間に対して有効区間H,Iが示すビット値を設定しかつ8〜9,11〜12バイト目の区間のビット値を「0」に設定した設定したマスクパターンb402と、包括マスクパターンb4001の演算区間おいて11〜12バイト目に対して有効区間Jが示すビット値を設定しかつ8〜11バイト目の区間のビット値を「0」に設定したマスクパターンb403とを作成する。
【0131】
〔ステップST316〕
次に、第3の実施形態と同様に、復元したマスクパターンがマスク回路306に出力される。図16の場合、マスクパターンb401,b402,b403がマスク回路306に出力される。
【0132】
以上が、第4の実施形態によるセクションフィルタ回路214における処理である。
【0133】
また、上述の処理のもう1つの一例として、図17および図18を参照しつつ説明する。なお、ここではデータの変化についてのみ説明するので、デジタル放送受信装置による動作の説明は省略する。
【0134】
まず、第4の実施形態による比較パターン書き込み処理に伴うデータの変化について図17を参照しつつ説明する。
【0135】
〈第4の実施形態による比較パターン書き込み処理〉
まず、マッチングパターンa411,a412,a413,a414およびマスクパターンb411,b412,b413,b414が作成される。
【0136】
次に、異なるパターンを示す区間は8〜12バイト目の区間である。マスクパターンb411において8〜9,10〜11バイト目が有効区間G,Iであり、マスクパターンb412において8〜9,11〜12バイト目が有効区間G,Jであり、マスクパターンb413において9〜11バイト目が有効区間H,Iであり、マスクパターンb414において9〜10,11〜12バイト目が有効区間H,Jである。
【0137】
次に、有効区間G,H,I,Jを全て含む包括パターンa4011および包括マスクパターンb4011が作成される。
【0138】
また、有効区間G,Hに注目するといずれのマスクパターンにおいてもどちらか一方(有効区間GまたはH)が含まれている。有効区間I,Jに注目しても同様にどちらか一方(有効区間IまたはJ)が含まれる。つまり、8〜10バイト目の区間に有効区間GまたはHのいずれか1つが含まれかつ10〜12バイト目の区間に有効区間IまたはJのいずれか1つが含まれるという演算を演算種別情報c4011に格納しなければならない。そこで、演算種別情報c4011に、8バイト目が演算区間の始点であることを示すために「88」を設定し、9バイト目がOR演算を行うバイト位置であることを示すために「09」を設定し、10バイト目が演算区間の終端であることを示すために「8A」を設定しする。さらに、10バイト目がもう1つの演算区間の始点であることを示すために「8A」を設定し、11バイト目がOR演算を行うバイト位置であることを示すために「0B」を設定し、12バイト目が演算区間の終端であることを示すために「8C」を設定する。
【0139】
次に、作成した包括マッチングパターンa4011をマッチングパターンRAM302に格納し、作成した包括マスクパターンb4011および演算種別情報c4011をマスクforマッチングRAM304に格納する。
【0140】
以上が、比較パターン書き込み処理に伴うデータの変化についての説明である。
【0141】
次に、演算種別デコーダ401における処理に伴うデータの変化について図18を参照しつつ説明する。
【0142】
〈第4の実施形態による演算種別デコーダ401における処理〉
まず、包括マスクパターンb4011と演算種別情報c4011とが演算種別デコーダ401に入力される。
【0143】
次に、演算種別情報c4011が解析されて、演算区間と演算の内容とが調べられる。演算種別情報c4011は、「88」,「8A」,「8A」,「8C」を格納しているので、演算区間は、8〜10バイト目の区間と10〜12バイト目の区間とである。また、演算種別情報c4011は、「09」,「0B」を格納しているので、9バイト目にOR演算が行われかつ11バイト目にOR演算が行われる。
【0144】
次に、包括マスクパターンb4011のうち演算区間に存在する有効区間が選択される。演算種別情報c4011を解析した結果に従うと、有効区間G,Iを選択する場合と、有効区間G,Jを選択する場合と、有効区間H,Iを選択する場合と、有効区間H,Jを選択する場合とがある。
【0145】
次に、上述の選択方法に従って、包括マスクパターンb4011のうち区間G,I以外の演算区間(8〜12バイト目の区間)のビット値を全て「0」に設定したマスクパターンb411と、包括マスクパターンのうち区間G,J以外の演算区間のビット値を全て「0」に設定したマスクパターンb412と、包括マスクパターンのうち区間H,I以外の演算区間のビット値を全て「0」に設定したマスクパターンb413と、包括マスクパターンのうち区間H,J以外の演算区間のビット値を全て「0」に設定したマスクパターンb414とを作成する。
【0146】
次に、作成したマスクパターンb411,b412,b413,b414がマスク回路306に出力される。
【0147】
以上が、演算種別デコーダ401における処理に伴うデータの変化についての説明である。
【0148】
次に、上述の処理のさらにもう1つの一例として、図19を参照しつつ説明する。なお、ここでは比較パターン書き込み処理に伴うデータの変化についてのみ図19を参照しつつ説明するので、デジタル放送受信装置による動作の説明は省略する。
【0149】
〈比較パターン書き込み処理〉
まず、マッチングパターンa421,a422,a423,a424およびマスクパターンb421,b422,b423,b424が作成される。
【0150】
次に、異なるパターンを示す区間は8〜12バイト目の区間である。マスクパターンb421において8〜9バイト目が有効区間Gであり、マスクパターンb422において9〜10バイト目が有効区間Hであり、マスクパターンb423において10〜11バイト目が有効区間Iであり、マスクパターンb424において11〜12バイト目が有効区間Jである。
【0151】
次に、図19に示すような、有効区間G,H,I,Jを全て含む包括マッチングパターンa4021および包括マスクパターンb4021が作成される。
【0152】
次に、演算種別情報が作成される。異なるパターンを示す区間において、有効区間Gのみが存在する場合と、有効区間Hのみが存在する場合と、有効区間Iのみが存在する場合と、有効区間Jのみが存在する場合とがある。よって、(有効区間G)or(有効区間H)or(有効区間I)or(有効区間J)と示される演算を演算種別情報に格納しなければならない。つまり、OR演算を行うバイト位置を9,10,11バイト目(有効区間GとHとIとJの間)と示す情報が必要となる。そこで、図19に示すように、演算種別情報c4021の各ブロックに「09」,「0A」,「0B」を格納する。
【0153】
次に、作成した包括マッチングパターンa4021をマッチングRAM302に格納し、作成した包括マスクパターンb4021および演算種別情報c4021をマスクforマッチングRAM304に格納する。
【0154】
以上が、比較パターン書き込み処理に伴うデータの変化についての説明である。
【0155】
〈第4の実施形態による効果〉
以上のように、演算種別情報にはOR演算,AND演算,および演算の優先順序が示されている。演算種別デコーダ401は、これらの演算および優先順序を用いることによって第3の実施形態より多くの演算を示すことができる。よって、演算デコーダにおいて第3の実施形態よりも多種のマスクパターンを復元することができる。これにより、必要数のマスクパターンを全て記憶する場合と比較するとマスクパターンを記憶するための容量を削減することができかつ、演算種別情報にOR演算のみが格納される場合よりも多種のマスクパターンを復元することができる。
【0156】
【発明の効果】
この発明によるセクションフィルタ回路では、符号化マスクパターンは、マスクパターンの中で有効区間(比較回路で判断を行うべき区間)が存在するビット位置を示す。例えば、64bitのマスクパターンの中で先頭から18〜28ビット目の区間に有効区間が存在すると示す場合に、符号化マスクパターンは、有効区間の開始位置を「010010」(=18)としかつその有効区間のビット長を「001010」(=10)として「010010001010」と示す12bitのビット配列を有する。マスクパターン作成回路は、12bitの符号化マスクパターンより64bitのマスクパターンを作成する。次に、比較回路は、マスクパターンが示す有効区間において、トランスポートストリームより抽出されたセクション(例えば64bit)がマッチングパターン記憶回路に格納されたマッチングパターン(例えば64bit)と一致するか否かをビット単位で判断する。これにより、マスクパターンを格納(記憶)するための領域を削減することができる。
【0157】
この発明によるもう1つのセクションフィルタ回路では、比較回路によって得られる比較結果データのうち演算種別情報が示す有効区間に対して演算を行う。例えば、3つの有効区間のうち少なくとも1つの有効区間においてセクションがマッチングパターンと一致していればセクションがマッチングパターンと一致すると判断するという演算が考えられる。この場合、比較回路は3つのマスクパターンを用いて比較を行ったことになる。これにより、演算種別情報を用いることにより1つのマスクパターンから複数のマスクパターンを作成することができ、マスクパターンを記憶するために必要な領域を削減することができる。
【図面の簡単な説明】
【図1】この発明の第1の実施形態によるデジタル放送受信装置の全体構成を示すブロック図である。
【図2】図1に示したTSデコーダの内部構成を示すブロック図である。
【図3】図2に示したセクションフィルタ回路の内部構成を示すブロック図である。
【図4】セクション形式のデータを含むトランスポートストリームの一例を示した図である。
【図5】図1に示したデジタル放送受信装置による比較パターン書き込み処理を示すフローチャートである。
【図6】マッチングパターン,マスクパターン,および符号化マスクパターンの一例を示す図である。
【図7】図1に示したデジタル放送受信装置によるセクション格納処理に伴うデータの変化の一例を示す図である。
【図8】この発明の第2の実施形態によるデジタル放送受信装置における比較パターン書き込み処理を示すフローチャートである。
【図9】第2の実施形態におけるマスクforマッチングRAMに格納されたマスクパターンおよび符号化マスクパターンの一例を示す図である。
【図10】この発明の第3の実施形態によるセクションフィルタ回路の内部構成を示すブロック図である。
【図11】この発明の第3の実施形態によるデジタル放送受信装置における比較パターン書き込み処理を示すフローチャートである。
【図12】図11に示した比較パターン書き込み処理に伴うデータの変化の一例を示す図である。
【図13】この発明の第3の実施形態による演算種別デコーダにおける処理を示すフローチャートである。
【図14】図13に示した演算種別デコーダにおける処理に伴うデータの変化の一例を示す図である。
【図15】この発明の第4の実施形態によるデジタル放送受信装置における比較パターン書き込み処理に伴うデータの変化の一例を示す図である。
【図16】この発明の第4の実施形態による演算種別デコーダにおける処理に伴うデータの変化の一例を示す図である。
【図17】この発明の第4の実施形態によるデジタル放送受信装置における比較パターン書き込み処理に伴うデータの変化の一例を示す図である。
【図18】この発明の第4の実施形態による演算種別デコーダにおける処理に伴うデータの変化のもう1つの例を示す図である。
【図19】この発明の第4の実施形態によるデジタル放送受信装置における比較パターン書き込み処理に伴うデータの変化のさらにもう1つの例を示す図である。
【符号の説明】
101 チューナ
102 復調部
103 バックエンド部
104 フラッシュメモリ
105 主メモリ
106 TSデコーダ
107 音声デコーダ
108 映像デコーダ
109 CPU
110 モデム
201 同期検出回路
202 PIDフィルタ
203 セクション検出回路
204,214 セクションフィルタ回路
205 データバッファ
301 セクションバッファ
302 マッチングパターンRAM
303 比較回路
304 マスクforマッチングRAM
305 レングスデコーダ
306 マスク回路
307 一致検出回路
308 制御回路
401 演算種別デコーダ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an apparatus for receiving a transport stream, and more particularly to an apparatus including a circuit for obtaining a desired section from a transport stream.
[0002]
[Prior art]
In digital broadcasting, various information such as video, audio, still images, character data, music data, and program guides are transmitted in the transport stream packet format. The digital broadcast receiver is provided with a section filter circuit for extracting necessary section data when the data format in the payload of the received transport stream packet is a section format. A conventional section filter circuit will be described using
[0003]
<Operation of conventional section filter circuit>
The pattern match filter 24 (FIG. 2 of Patent Document 1) is in DEMUX 5 (FIG. 2 of Patent Document 1), and is necessary for the section of the input transport stream (FIG. 3 (c) of Patent Document 1). It is a block for determining whether the data is unnecessary data or unnecessary data. The operation outline of the pattern matching filter is as follows: the
[0004]
[Patent Document 1] Japanese Unexamined Patent Publication No. 2000-32426 (FIGS. 2 and 3)
[0005]
[Problems to be solved by the invention]
In the prior art, since the mask pattern is set with the same bit length as the matching pattern, the area for storing the mask pattern needs the same capacity as the area for storing the matching pattern. Further, when setting a plurality of patterns that differ only in part, it is necessary to set the plurality of patterns individually. For this reason, a large number of areas are necessary to secure an area for storing a necessary number of matching patterns and mask patterns.
[0006]
An object of the present invention is to provide a section filter circuit capable of reducing a capacity required for storing a mask pattern.
[0007]
[Means for Solving the Problems]
Since the bit mask is a continuous bit to a certain extent when viewed in bit units, a mask pattern that has been set as valid or invalid in bit units is set in the form of bit position and bit length. As a result, the mask area can be reduced.
[0008]
However, compared to the bit mask, if the bit position and bit length are set, the number of mask settings is limited. Therefore, the area for setting valid / invalid in conventional bit units and the area for setting the bit position and bit length. Mix. Thereby, an optimal mask pattern region can be determined.
[0009]
In addition, if a part of the multiple patterns is different and different parts are invalid in the other patterns, the multiple patterns are not set individually, but are divided into common pattern parts and different pattern parts. One kind of pattern and mask area are set, and an operation type area that can specify an OR operation for different parts is provided. As a result, the number of setting entries can be reduced (the setting area for the matching pattern and the mask pattern can be reduced).
[0010]
In addition, regarding the setting of the operation type area, not only the OR operation but also the priority of “(“ ”)” operation can be set, thereby reducing the number of setting entries (reducing the setting area of matching pattern and mask pattern) And a comparison that takes into account the priority of the calculation.
[0011]
According to one aspect of the present invention, the section filter circuit includes a matching pattern storage circuit, a mask pattern storage circuit, a mask pattern conversion circuit, and a comparison circuit. The matching pattern storage circuit stores a matching pattern having a predetermined bit arrangement. The mask pattern storage circuit stores an encoded mask pattern encoded in a predetermined bit array. The mask pattern conversion circuit converts the encoded mask pattern stored in the mask pattern storage circuit into a mask pattern. The comparison circuit determines, in bit units, whether or not the section extracted from the transport stream matches the matching pattern stored in the matching pattern storage circuit in the section indicated by the mask data converted by the mask pattern conversion circuit. Do. The mask pattern has the same bit length as the matching pattern. The mask pattern indicates, in bit units, valid sections that should be determined by the comparison circuit and invalid sections that should not be determined by the comparison circuit. The encoded mask pattern indicates a bit position where a valid section exists in the mask pattern.
[0012]
In the section filter circuit described above, the encoded mask pattern indicates a bit position in which an effective interval (interval to be determined by the comparison circuit) exists in the mask pattern. For example, in a 64-bit mask pattern, when it is indicated that a valid section exists in the
[0013]
Preferably, the mask pattern storage circuit further stores the mask pattern. In the section indicated by any one of the mask pattern converted by the mask pattern conversion circuit and the mask pattern stored in the matching pattern storage circuit, the section extracted from the transport stream is a matching pattern storage circuit. Whether or not it matches the matching pattern stored in is determined in bit units.
[0014]
In the section filter circuit described above, for example, when the valid section and invalid section of the mask pattern exist alternately, the bit length of the encoded mask pattern is the value after the encoded mask pattern is converted by the mask pattern conversion circuit. It may be longer than the bit length of the mask pattern.
[0015]
In the section filter circuit, the mask pattern storage circuit stores the encoded mask pattern and the unconverted mask pattern. That is, in the above-described case, an unencoded mask pattern is stored in the mask pattern storage circuit. Thereby, the area | region for storing a mask pattern can be reduced rather than the case where only an encoding mask pattern is stored in a mask pattern memory | storage circuit in the above-mentioned case.
[0016]
Preferably, the transport stream processing device includes a packet acquisition circuit, a section data acquisition circuit, the section filter circuit, and a data buffer. The packet acquisition circuit acquires a packet including a desired section from the transport stream. The section acquisition circuit acquires a section from the packet acquired by the packet acquisition circuit. The section filter circuit determines whether or not the section acquired by the section acquisition circuit matches the matching pattern. The data buffer stores sections determined to be matched by the section filter circuit.
[0017]
Preferably, the digital broadcast receiving apparatus includes a flash memory, a CPU, a receiving unit, the transport stream processing apparatus, and a memory. The flash memory stores a specific program. The CPU creates the matching pattern and the mask pattern in accordance with a program stored in the flash memory. The receiving unit receives a transport stream. The transport stream processing apparatus stores sections determined to match the matching pattern. The memory records a section accumulated by the transport stream processing device. The specific program is a program that causes the CPU to create the matching pattern and the coding mask pattern. The matching pattern storage circuit stores a matching pattern created by the CPU. The mask pattern storage circuit stores an encoded mask pattern created by the CPU.
[0018]
According to another aspect of the present invention, the section filter circuit includes a matching pattern storage circuit, a mask pattern storage circuit, and a comparison circuit. The matching pattern storage circuit stores a matching pattern having a predetermined bit arrangement. The mask pattern storage circuit stores a mask pattern having the same bit length as the matching pattern. The comparison circuit compares the section extracted from the transport stream with the matching pattern stored in the matching pattern storage circuit bit by bit in the section indicated by the mask pattern stored in the mask pattern storage circuit, and compares the result. It is determined whether or not the matching pattern matches the section data by performing an operation indicated by the operation type information on an interval indicated by the operation type information in the obtained data (comparison result data). The mask pattern indicates, in bit units, valid sections that should be determined by the comparison circuit and invalid sections that should not be determined by the comparison circuit. The calculation type information indicates the effective interval to be calculated in the comparison result data and the content of the calculation performed on the effective interval.
[0019]
The section filter circuit performs an operation on an effective section indicated by the operation type information in the comparison result data obtained by the comparison circuit. For example, an operation may be considered in which if the section matches the matching pattern in at least one of the three effective sections, the section is determined to match the matching pattern. In this case, the comparison circuit performs comparison using three mask patterns. Accordingly, a plurality of mask patterns can be created from one mask pattern by using the operation type information, and an area necessary for storing the mask pattern can be reduced.
[0020]
Preferably, the transport stream processing device includes a packet acquisition circuit, a section data acquisition circuit, the section filter circuit, and a data buffer. The packet acquisition circuit acquires a packet including a desired section from the transport stream. The section acquisition circuit acquires a section from the packet acquired by the packet acquisition circuit. The section filter circuit determines whether or not the section acquired by the section acquisition circuit matches the matching pattern. The data buffer stores sections determined to be matched by the section filter circuit.
[0021]
Preferably, the digital broadcast receiving apparatus includes a flash memory, a CPU, a receiving unit, the transport stream processing apparatus, and a memory. The flash memory stores a specific program. The CPU creates the matching pattern and the mask pattern in accordance with a program stored in the flash memory. The receiving unit receives a transport stream. The transport stream processing apparatus stores sections determined to match the matching pattern. The memory records a section accumulated by the transport stream processing device. The specific program is a program that causes the CPU to create the matching pattern, the coding mask pattern, and the calculation type information. The matching pattern storage circuit stores a matching pattern created by the CPU. The mask pattern storage circuit stores an encoded mask pattern created by the CPU. The comparison circuit compares the section extracted from the transport stream with the matching pattern stored in the matching pattern storage circuit bit by bit in the section indicated by the mask pattern stored in the mask pattern storage circuit, Whether the matching pattern matches the section data by performing the calculation indicated by the calculation type information on the section indicated by the calculation type information created by the CPU in the data (comparison result data) obtained as a result. Make a decision.
[0022]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals, and description thereof will not be repeated.
[0023]
(First embodiment)
FIG. 1 shows the overall configuration of a digital broadcast receiving apparatus according to the first embodiment of the present invention.
[0024]
<Overall configuration of digital broadcast receiver>
The digital broadcast receiving apparatus includes a
[0025]
<Internal configuration of
Next, the internal configuration of the
[0026]
<Internal Configuration of
Next, the internal configuration of the
[0027]
Next, the configuration of the transport stream (transport stream including section format data) output from the demodulation unit 102 (see FIG. 2) will be described with reference to FIG.
[0028]
<Description of transport stream>
First, an example of the bit arrangement of the transport stream is shown in FIG. The transport stream is composed of a plurality of transport stream packets (TS packets). A TS packet has a header (4 bytes) and a payload (184 bytes). The header includes a synchronization byte (8 bits), PID (13 bits), and the like. A section is stored in the payload. The section storage format includes a case where a plurality of sections are stored in one payload and a case where the sections are stored across a plurality of payloads.
[0029]
Next, an example of the bit arrangement of sections is shown in FIG. In the section, as typical data types, table id (8 bits), section length (12 bits), transport stream id (16 bits), version number (5 bits), section number (8 bits), last section number (8 bits), Byte etc. exist. In addition, a section (8 bytes = 64 bits) from table id to last section number is a section header.
[0030]
The above is the description of the structure of the transport stream including the section format.
[0031]
Next, the operation of the digital broadcast receiving apparatus according to the first embodiment configured as described above will be described.
[0032]
<Operation of Digital Broadcasting Reception Device in First Embodiment>
The operation of the digital broadcast receiving apparatus in the first embodiment includes processing until the matching pattern is stored in the
[0033]
First, the comparison pattern writing process according to the first embodiment will be described with reference to FIG.
[0034]
<Comparison Pattern Writing Process According to First Embodiment>
[Step ST101]
First, the
[0035]
Here, the matching pattern and the mask pattern will be described with reference to FIG.
[0036]
<Description of matching pattern and mask pattern>
First, an example of the bit arrangement of the matching pattern is shown in FIG. The matching pattern is used when performing EOR operation with the section header. The bit length of the matching pattern is the same as the section header (64 bits in this embodiment). In the figure, in order to facilitate understanding of the bit arrangement, a bit value (binary number) is converted into a hexadecimal value and expressed in a form stored in a block (indicating 8 bits per block). In other words, data in which 64 “0” s or “1” s are originally arranged is represented using 8 blocks each storing one 2-digit value. For example, if the value of the block is “23”, “00100011” is indicated. A mask pattern, an encoded mask pattern, and operation type information, which will be described later, will also be described using a similar notation method. However, 6 bits per block are shown in the description of the encoding mask pattern, and 5 bits per block are shown in the description of the operation type information.
[0037]
Next, FIG. 6B shows an example of the bit arrangement of the mask pattern. The mask pattern is a section (invalid section) that is not required when determining whether or not it is a desired section header among data obtained by EOR calculation using the section header and the matching pattern (EOR calculation data). It is used to extract a section (effective section) necessary for determining whether or not the section header is deleted. That is, in the mask pattern, a section having a bit value “1” indicates a valid section, and a section having a bit value “0” indicates an invalid section. The bit length of the mask pattern is the same as the matching pattern (64 bits in this embodiment).
[0038]
Further, the matching pattern and the mask pattern usually correspond one to one. One matching pattern and one mask pattern are treated as one comparison pattern.
[0039]
The above is the description of the matching pattern and the mask pattern.
[0040]
[Step ST102]
Next, the
[0041]
[Step ST103]
Next, according to the program stored in the
[0042]
[Step ST104]
Next, the
[0043]
Here, the encoding mask pattern will be described with reference to FIG.
[0044]
<Description of coding mask pattern>
An example of the bit arrangement of the mask pattern is shown in FIG. The encoded mask pattern includes a bit position (start position) where a valid section having a bit value of “1” in the mask pattern shown in FIG. 6B starts and a bit length (from the start position to the end of the valid section) Length) in units of 6 bits. For example, when the bit value of the 0th to 7th bit sections is “1”, the start position of the valid section is “00”, and the length from the start position to the end of the valid section is “08”. The encoding mask pattern is divided in units of 6 bits, and is arranged in the order of “start position (6 bits)” and “length (6 bits)”. That is, an effective section in which the bit value indicates “1” is described by one set of one start position and one length (total 12 bits). When the 0th to 7th bits are the valid section, the actual bit arrangement of the coding mask pattern is “000000001000”.
[0045]
The above is the description of the encoding mask pattern.
[0046]
That is, the
[0047]
[Step ST105]
Next, the
[0048]
As described above, the matching pattern is stored in the
[0049]
Next, the section storing process according to the first embodiment will be described. In particular, processing in the section filter circuit will be described with reference to FIG.
[0050]
<Section Storage Processing According to First Embodiment>
First, a broadcast signal received via the tuner 101 (FIG. 1) is input to the
[0051]
Next, the demodulator 102 (FIG. 1) converts the input broadcast signal into a digital signal in the transport stream format, and outputs the digital signal to the synchronization detection circuit 201 (FIG. 2) included in the
[0052]
Next, the synchronization detection circuit 201 (FIG. 2) acquires a TS packet by detecting a synchronization byte included at the beginning of the packet of the transport stream obtained by the
Next, the PID filter circuit 202 (FIG. 2) identifies the PID (see FIG. 4 (1)) included in the header of the packet detected by the synchronization detection circuit 201 (FIG. 2). If the packet is a desired packet as a result of identification, the payload of the packet is output to the section detection circuit 203 (FIG. 2). When the
[0053]
Next, the section detection circuit 203 (FIG. 2) acquires a section (see FIG. 4 (2)) from the payload output from the
[0054]
Next, the section buffer 301 (FIG. 3) stores a section header (see FIG. 4 (2)) among the sections input from the
[0055]
Next, the comparison circuit 303 (FIG. 3) performs an EOR operation (exclusive OR operation) using the section header stored in the
[0056]
Next, the length recorder 305 (FIG. 3) converts the encoded mask pattern stored in the mask for matching RAM 304 (FIG. 3) into a mask pattern (see FIG. 7). That is, as shown in FIG. 7, an encoded mask pattern (36 bits) indicating the start position and length of the effective section is converted into a mask pattern (64 bits).
[0057]
Next, the mask circuit 306 (FIG. 3) performs an AND operation (logical product operation) using the data (EOR operation data) obtained by the EOR operation by the
[0058]
Next, the coincidence detection circuit 307 (FIG. 3) checks whether or not all the bit values of the data (AND operation data) obtained by the AND operation by the
[0059]
Next, the data buffer 205 (see FIG. 2) is obtained by the section detection circuit 203 (see FIG. 2) when all the bit values of the AND operation data are “0” by the coincidence detection circuit 307 (FIG. 3). Saved sections. That is, the
[0060]
Next, the main memory 105 (FIG. 1) records the section input from the
[0061]
As described above, desired system information is recorded in the
[0062]
The control circuit 308 (FIG. 3) controls the
[0063]
<Effects of First Embodiment>
As described above, the mask for matching
[0064]
Note that the matching pattern stored in the
[0065]
The
[0066]
(Second Embodiment)
As described above, the method in which the mask pattern is expressed by the start position and the length of the effective section by the encoded mask pattern is effective when the sections having the bit value “1” are continuous, but the bit value When “0” and “1” are mixed at short intervals (for example, when “0” and “1” are alternately present for each bit), there is a possibility of exceeding 64 bits.
[0067]
The digital broadcast receiving apparatus according to the second embodiment of the present invention has the same overall configuration, the internal configuration of the
[0068]
Normally, the
[0069]
The operation of the digital broadcast receiving apparatus according to the second embodiment will be described below.
[0070]
<Operation of Digital Broadcasting Reception Device According to Second Embodiment>
The operation of the digital broadcast receiving apparatus according to the second embodiment differs from the process according to the first embodiment in the process of the
[0071]
First, the comparison pattern writing process in the digital broadcast receiving apparatus according to the second embodiment will be described with reference to FIG.
[0072]
<Comparison Pattern Writing Process According to Second Embodiment>
[Steps ST101 to 104]
First, as in the first embodiment, the
[0073]
[Step ST201]
Next, the
[0074]
[Step ST105]
Next, as in the first embodiment, the
[0075]
[Step ST202]
On the other hand, when the bit length of the encoded mask pattern is longer than the bit length of the mask pattern before conversion in step ST201, the
[0076]
An example of the mask pattern thus stored in the mask for matching
[0077]
The above is the description of the comparison pattern writing process in the second embodiment.
[0078]
Next, processing in the
[0079]
<Processing in
The
[0080]
<Effects of Second Embodiment>
As described above, if it is not possible to reduce the recording area even after conversion to the coded mask pattern, the mask pattern is not coded. In this way, by mixing the encoded mask pattern and the non-encoded mask pattern, it is possible to effectively use the storage area of the mask for matching
[0081]
Note that the ratio between the number of entries in the encoded mask mask pattern and the number of entries in the mask pattern that has not been converted can be optimized according to the broadcaster and the target model.
[0082]
(Third embodiment)
Some comparison patterns constitute similar patterns. For example, there are cases such as matching patterns a301 and a302 and mask patterns b301 and b302 shown in FIG. Conventionally, even those having such a similar pattern are set one by one (one set of comparison patterns) in the
[0083]
The digital broadcast receiving apparatus according to the third embodiment of the present invention has the same overall configuration (see FIG. 1) and TS decoder 106 (see FIG. 2) as compared with the first embodiment. The internal configuration (see FIG. 3) of the
[0084]
The operation of the digital broadcast receiving apparatus according to the third embodiment will be described below.
[0085]
<Operation of Digital Broadcasting Receiver according to Third Embodiment>
The operation of the digital broadcast receiving apparatus according to the third embodiment differs from that according to the first embodiment in the processing in the section filter circuit 214 (see FIG. 10) in the comparison pattern writing process and the section storing process. Therefore, these two processes will be described below. In the first and second embodiments, the bit length of the section header stored in the data buffer is 64 bits, but in the third embodiment, it is 96 bits. Similarly, the matching pattern and the mask pattern are 96 bits.
[0086]
First, a comparison pattern writing process according to the third embodiment will be described with reference to FIGS. 11 and 12.
[0087]
<Comparison Pattern Writing Process According to Third Embodiment>
In the comparison pattern writing process according to the third embodiment, calculation type information is further written in addition to the matching pattern and the mask pattern.
[0088]
[Step ST301]
First, the
[0089]
[Step ST302]
Next, the
[0090]
[Step ST303]
Next, according to the program stored in the
[0091]
[Step ST304]
Next, according to the program stored in the
[0092]
[Step ST305]
Next, in accordance with the program stored in the
[0093]
[Step ST306]
Next, the
[0094]
Here, the calculation type information will be described.
[0095]
<Explanation of calculation type information>
The operation type information indicates the byte position where the OR operation is performed. The OR operation is a 1-byte section before and after the 1-byte section before and after the byte position indicated in the operation type information (2-byte section centered on the byte position indicated by the operation type information). It refers to the process of selecting one of them. In the case of FIG. 12, the calculation type information c3001 indicates a process of selecting one of the valid section G and the valid section H. In the case of FIG. 12, one value indicating the byte position where the OR operation is performed is stored for one block (5 bits per block).
[0096]
[Step ST307]
Next, the
[0097]
The above is the description of the comparison pattern writing process in the third embodiment.
[0098]
Next, processing in the section filter circuit 214 according to the third embodiment will be described.
[0099]
<Processing in Section Filter Circuit 214 According to Third Embodiment>
The processing in the section filter circuit 214 according to the third embodiment is different from that according to the first embodiment in the processing by the
[0100]
<Processing in
[Step ST311]
First, the comprehensive mask pattern stored in the mask for matching
[0101]
[Step ST312]
Next, the
[0102]
[Step ST313]
Next, the
[0103]
[Step ST314]
Next, the
[0104]
[Step ST315]
Next, the
[0105]
[Step ST316]
Next, the
In this way, the mask patterns b301 and b302 are restored based on the comprehensive mask pattern b3001.
[0106]
The above is the description of the processing in the section filter circuit 214 according to the third embodiment.
[0107]
<Effects of Third Embodiment>
As described above, the
[0108]
(Fourth embodiment)
The overall configuration of the digital broadcast receiver according to the fourth embodiment of the present invention is the same as that of the digital broadcast receiver according to the third embodiment (see FIGS. 1, 2 and 10), but the operation type information is different. Therefore, the calculation type information in the fourth embodiment will be described below.
[0109]
<Description of Calculation Type Information in Fourth Embodiment>
The operation type information in the fourth embodiment indicates an OR operation position, an AND operation position, and a section (calculation section) in which the operation is performed.
[0110]
The OR operation indicates a process of selecting one of a section existing ahead and a section existing rearward before and after the byte position indicated in the operation type information.
[0111]
The AND operation refers to a process of simultaneously selecting two sections existing ahead and behind the byte positions indicated in the operation type information. The AND operation is performed with priority over the OR operation.
[0112]
The calculation interval is indicated by “(” and “)”. That is, it refers to a section from the byte position indicated by “(” to the byte position indicated by “)” by the calculation type information. Calculations within the calculation interval are performed with priority over calculations outside the calculation interval.
[0113]
Further, the calculation type information stores one calculation value in one block (one block of 5 bits). In order to distinguish the type of operation, the value indicating the byte position where the OR operation is performed is indicated by the high-order bit “0”, and the start position “(” or the end of the operation section ”)” of the operation section is indicated. The value indicating the byte position to be set is indicated by “1” in the upper bits. Furthermore, the byte position that is not indicated by the value stored in the calculation type information in the interval in which the calculation is performed is the position where the AND calculation is performed. In addition, when an AND operation is performed between calculation intervals, a value indicating the calculation interval is stored in duplicate in two blocks (see calculation type information c4011 shown in FIG. 17).
[0114]
In a section in which no calculation section is set, the calculation section is one byte after the byte position one byte before the first byte position indicated by the calculation type information and the last byte position indicated by the calculation type information. This is the interval up to the bit position. For example, in the case of FIG. 15, since the first byte position indicated by the calculation type information c4001 is “09”, that is, the ninth byte, the start position of the section in which the calculation is performed is the eighth byte. Further, since the rearmost byte position indicated by the operation type information c4001 is “0B”, that is, the 11th byte, the end position of the section in which the operation is performed is the 12th byte.
[0115]
The above is the description of the calculation type information in the fourth embodiment.
[0116]
Next, the operation of the digital broadcast receiver according to the fourth embodiment will be described.
[0117]
<Description of Operation of Digital Broadcasting Reception Device according to Fourth Embodiment>
The operation of the digital broadcast receiving apparatus according to the fourth embodiment is the same as that according to the third embodiment, but the created operation type information is different. Therefore, processing related to the operation type information (comparison pattern writing processing and operation in the operation type decoder 401) will be described below.
[0118]
First, a comparison pattern writing process according to the fourth embodiment will be described with reference to FIGS. 11 and 15.
[0119]
<Comparison Pattern Writing Process According to Fourth Embodiment>
[Steps ST301 and 302]
First, processing similar to that of the third embodiment is performed, and matching patterns a401, a402, and a403 and mask patterns b401, b402, and b403 as shown in FIG. 15 are created and the bit arrangement is analyzed.
[0120]
[Step ST303]
Next, processing similar to that of the third embodiment is performed, and a section showing a common pattern and a section showing a different pattern are determined. In the case of FIG. 15, the section showing the common pattern is the 1st to 8th byte section, and the section showing the different pattern is the 8th to 12th byte section.
[0121]
[Step ST304]
Next, the same processing as in the third embodiment is performed, and the position of the effective section indicated by each pattern is analyzed in the section indicating a different pattern (the section where the position of the effective section existing in each pattern is different). In the case of FIG. 15, the 8th to 9th byte sections in the mask pattern b401 are valid sections G and the 9th to 12th byte sections are invalid sections, and the 9th to 11th byte sections in the mask pattern b402 are valid sections. The 8th to 9th and 11th to 12th byte sections are invalid sections, the 11th to 12th byte sections in the mask pattern b403 are valid sections, and the 8th to 11th byte sections are invalid sections.
[0122]
[Step ST305]
Next, processing similar to that of the third embodiment is performed, and a comprehensive matching pattern a4001 and a comprehensive mask pattern b4001 as shown in FIG. 15 are created.
[0123]
[Step ST306]
Next, processing similar to that of the third embodiment is performed to create calculation type information. In the case of FIG. 15, there are a case where only the effective section G exists in a section showing a different pattern, a case where only the effective sections H and I exist, and a case where only the effective range J exists. Therefore, the operation indicated as (effective section G) or (effective section H, I) or (effective section J) must be stored in the operation type information c4001. In other words, the byte position where the AND operation is performed is indicated as the 10th byte, and the byte position where the OR operation is performed is indicated as the 9th byte (between the valid intervals G and H) and the 11th byte (between the valid intervals I and J). Information is needed. Therefore, as shown in FIG. 15, “09” and “0B” are stored in each block of the operation type information c4001.
[0124]
[Step ST307]
Next, the same processing as in the third embodiment is performed, and the created comprehensive matching pattern is written in the
[0125]
The above is the description of the comparison pattern writing process.
[0126]
Next, processing in the
[0127]
<Operation of
[Steps ST311, 312]
First, as in the third embodiment, a comprehensive mask pattern b4001 and calculation type information c4001 as shown in FIG. 16 are input.
[0128]
[Step ST313]
Next, the calculation type information is analyzed as in the third embodiment. Here, the calculation interval and the content of the calculation are examined. In the case of FIG. 16, the operation type information c4001 indicates that the operation is performed on the ninth byte and the eleventh byte. Therefore, the calculation interval is the 8th to 12th byte interval. The operation type information c4001 indicates that an OR operation is performed at the 9th and 11th bytes and an AND operation is performed at the 10th byte.
[0129]
[Step ST314]
Next, as in the third embodiment, an effective section existing in the calculation section is selected from the comprehensive mask pattern. In the case of FIG. 16, using the result of analyzing the calculation type information c4001, when selecting the valid section G of the 8th to 9th bytes, when selecting the valid sections H and I of the 9th to 11th bytes, In some cases, the valid section J of the ˜12th byte is selected.
[0130]
[Step ST315]
Next, as in the third embodiment, a mask pattern in which all bit positions are set to “0” is created for the calculation section other than the valid section selected in step ST314 in the comprehensive mask pattern. In the case of FIG. 16, in the process in step ST314, three selection methods are obtained, that is, the case where the valid section G is selected, the case where the valid sections H and I are selected, and the case where the valid section J is selected. Accordingly, the mask pattern in which the bit value indicated by the valid section G is set for the 8th to 9th bytes in the calculation section of the comprehensive mask pattern b4001, and the bit value in the 10th to 11th bytes is set to “0”. b401 and the bit values indicated by the valid sections H and I are set for the 9th to 11th byte sections in the calculation section of the comprehensive mask pattern b3001, and the bit values of the 8th to 9th and 11th to 12th byte sections are set. The bit value indicated by the effective section J is set for the 11th to 12th bytes in the calculation section of the set mask pattern b402 set to “0” and the comprehensive mask pattern b4001, and the bits in the 8th to 11th bytes A mask pattern b403 having a value set to “0” is created.
[0131]
[Step ST316]
Next, the restored mask pattern is output to the
[0132]
The above is the processing in the section filter circuit 214 according to the fourth embodiment.
[0133]
Further, another example of the above-described processing will be described with reference to FIGS. 17 and 18. Here, only the data change will be described, and the description of the operation by the digital broadcast receiving apparatus will be omitted.
[0134]
First, data change associated with the comparison pattern writing process according to the fourth embodiment will be described with reference to FIG.
[0135]
<Comparison Pattern Writing Process According to Fourth Embodiment>
First, matching patterns a411, a412, a413, a414 and mask patterns b411, b412, b413, b414 are created.
[0136]
Next, a section showing a different pattern is a section of the 8th to 12th bytes. In the mask pattern b411, the 8th to 9th and 10th to 11th bytes are the valid sections G and I, the 8th to 9th and 11th to 12th bytes in the mask pattern b412 are the valid sections G and J, and the 9th to 9th in the mask pattern b413. The 11th byte is the valid sections H and I, and the 9th to 10th and 11th to 12th bytes are the valid sections H and J in the mask pattern b414.
[0137]
Next, a comprehensive pattern a 4011 and a comprehensive mask pattern b 4011 including all the valid sections G, H, I, and J are created.
[0138]
When attention is paid to the effective sections G and H, either mask pattern (effective section G or H) is included in any mask pattern. If attention is paid to the valid sections I and J, either one (the valid section I or J) is similarly included. In other words, the calculation type information c4011 is calculated such that any one of the valid sections G or H is included in the section of the 8th to 10th bytes, and any one of the effective sections I or J is included in the section of the 10th to 12th bytes. Must be stored in Therefore, “88” is set in the operation type information c4011, in order to indicate that the eighth byte is the start point of the operation section, and “09” in order to indicate that the ninth byte is the byte position where the OR operation is performed. And “8A” is set to indicate that the 10th byte is the end of the computation interval. Furthermore, “8A” is set to indicate that the 10th byte is the start point of another calculation section, and “0B” is set to indicate that the 11th byte is a byte position where an OR operation is performed. , “8C” is set to indicate that the 12th byte is the end of the computation interval.
[0139]
Next, the created comprehensive matching pattern a 4011 is stored in the
[0140]
The above is the description of the data change accompanying the comparison pattern writing process.
[0141]
Next, changes in data accompanying processing in the
[0142]
<Processing in
First, the comprehensive mask pattern b 4011 and the operation type information c 4011 are input to the
[0143]
Next, the calculation type information c4011 is analyzed, and the calculation interval and the content of the calculation are examined. Since the operation type information c4011 stores “88”, “8A”, “8A”, and “8C”, the operation sections are the 8th to 10th byte sections and the 10th to 12th byte sections. . Since the operation type information c4011 stores “09” and “0B”, an OR operation is performed on the 9th byte and an OR operation is performed on the 11th byte.
[0144]
Next, an effective section existing in the calculation section is selected from the comprehensive mask pattern b4011. According to the result of analyzing the calculation type information c4011, when the valid sections G and I are selected, the valid sections G and J are selected, the valid sections H and I are selected, and the valid sections H and J are selected. May be selected.
[0145]
Next, in accordance with the selection method described above, the mask pattern b411 in which all bit values of the calculation sections (
[0146]
Next, the created mask patterns b411, b412, b413, b414 are output to the
[0147]
This completes the description of the data change accompanying the processing in the
[0148]
Next, another example of the above-described processing will be described with reference to FIG. Here, only the data change associated with the comparison pattern writing process will be described with reference to FIG. 19, and the description of the operation by the digital broadcast receiving apparatus will be omitted.
[0149]
<Comparison pattern writing process>
First, matching patterns a421, a422, a423, a424 and mask patterns b421, b422, b423, b424 are created.
[0150]
Next, a section showing a different pattern is a section of the 8th to 12th bytes. In the mask pattern b421, the 8th to 9th bytes are the valid section G, in the mask pattern b422, the 9th to 10th bytes are the valid section H, and in the mask pattern b423, the 10th to 11th bytes are the valid section I. In b424, the 11th to 12th bytes are the valid section J.
[0151]
Next, a comprehensive matching pattern a 4021 and a comprehensive mask pattern b 4021 including all the valid sections G, H, I, and J are created as shown in FIG.
[0152]
Next, calculation type information is created. In sections showing different patterns, there are cases where only the valid section G exists, only the valid section H exists, only the valid section I exists, and only the valid section J exists. Therefore, an operation indicated as (effective section G) or (effective section H) or (effective section I) or (effective section J) must be stored in the operation type information. In other words, information indicating the byte position for performing the OR operation as the ninth, tenth, and eleventh bytes (between the valid intervals G, H, I, and J) is required. Therefore, as shown in FIG. 19, “09”, “0A”, and “0B” are stored in each block of the operation type information c4021.
[0153]
Next, the created comprehensive matching pattern a 4021 is stored in the matching
[0154]
The above is the description about the data change accompanying the comparison pattern writing process.
[0155]
<Effects of Fourth Embodiment>
As described above, the operation type information indicates the OR operation, the AND operation, and the priority order of the operations. The
[0156]
【The invention's effect】
In the section filter circuit according to the present invention, the encoded mask pattern indicates a bit position where an effective section (section to be judged by the comparison circuit) exists in the mask pattern. For example, in a 64-bit mask pattern, when it is indicated that a valid section exists in the
[0157]
In another section filter circuit according to the present invention, an operation is performed on the valid section indicated by the operation type information in the comparison result data obtained by the comparison circuit. For example, an operation may be considered in which if a section matches the matching pattern in at least one of the three effective sections, the section is determined to match the matching pattern. In this case, the comparison circuit performs comparison using three mask patterns. Accordingly, a plurality of mask patterns can be created from one mask pattern by using the operation type information, and an area necessary for storing the mask pattern can be reduced.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an overall configuration of a digital broadcast receiving apparatus according to a first embodiment of the present invention.
2 is a block diagram showing an internal configuration of the TS decoder shown in FIG. 1. FIG.
3 is a block diagram showing an internal configuration of a section filter circuit shown in FIG. 2. FIG.
FIG. 4 is a diagram illustrating an example of a transport stream including section format data.
FIG. 5 is a flowchart showing comparison pattern writing processing by the digital broadcast receiving apparatus shown in FIG. 1;
FIG. 6 is a diagram illustrating an example of a matching pattern, a mask pattern, and an encoded mask pattern.
7 is a diagram illustrating an example of data change associated with section storage processing by the digital broadcast receiving apparatus illustrated in FIG. 1;
FIG. 8 is a flowchart showing a comparison pattern writing process in the digital broadcast receiving apparatus according to the second embodiment of the present invention.
FIG. 9 is a diagram illustrating an example of a mask pattern and an encoded mask pattern stored in a mask for matching RAM according to the second embodiment.
FIG. 10 is a block diagram showing an internal configuration of a section filter circuit according to a third embodiment of the present invention.
FIG. 11 is a flowchart showing a comparison pattern writing process in the digital broadcast receiving apparatus according to the third embodiment of the present invention.
12 is a diagram showing an example of data change associated with the comparison pattern writing process shown in FIG.
FIG. 13 is a flowchart showing a process in an operation type decoder according to a third embodiment of the present invention.
14 is a diagram showing an example of a change in data accompanying processing in the operation type decoder shown in FIG.
FIG. 15 is a diagram showing an example of data change associated with a comparison pattern writing process in the digital broadcast receiving apparatus according to the fourth embodiment of the present invention;
FIG. 16 is a diagram showing an example of a change in data accompanying a process in an operation type decoder according to the fourth embodiment of the present invention.
FIG. 17 is a diagram showing an example of data change associated with a comparison pattern writing process in the digital broadcast receiving apparatus according to the fourth embodiment of the present invention;
FIG. 18 is a diagram showing another example of data change accompanying processing in the arithmetic type decoder according to the fourth embodiment of the present invention;
FIG. 19 is a diagram showing still another example of a change in data associated with a comparison pattern writing process in the digital broadcast receiving apparatus according to the fourth embodiment of the present invention.
[Explanation of symbols]
101 tuner
102 Demodulator
103 Backend section
104 flash memory
105 Main memory
106 TS decoder
107 audio decoder
108 Video decoder
109 CPU
110 Modem
201 Synchronization detection circuit
202 PID filter
203 section detection circuit
204, 214 Section filter circuit
205 Data buffer
301 Section buffer
302 Matching pattern RAM
303 Comparison circuit
304 Mask for matching RAM
305 length decoder
306 Mask circuit
307 Match detection circuit
308 Control circuit
401 Operation type decoder
Claims (7)
所定のビット配列に符号化された符号化マスクパターンを格納するマスクパターン記憶回路と、
前記マスクパターン記憶回路に格納された符号化マスクパターンをマスクパターンに変換するマスクパターン変換回路と、
前記マスクパターン変換回路で変換されたマスクパターンが示す有効区間において、トランスポートストリームより抽出されたセクションが前記マッチングパターン記憶回路に格納されたマッチングパターンと一致するか否かの判断をビット単位で行う比較回路とを備え、
前記マスクパターンは、
前記マッチングパターンと同じビット長を有し、
前記比較回路が判断を行うべき有効区間と前記比較回路が判断を行うべきではない無効区間とをビット単位で示し、
前記符号化マスクパターンは、
前記マスクパターンの中で前記有効区間が存在するビット位置を示す
ことを特徴とするセクションフィルタ回路。A matching pattern storage circuit for storing a matching pattern having a predetermined bit arrangement;
A mask pattern storage circuit for storing an encoded mask pattern encoded in a predetermined bit array;
A mask pattern conversion circuit for converting an encoded mask pattern stored in the mask pattern storage circuit into a mask pattern;
In a valid section indicated by the mask pattern converted by the mask pattern conversion circuit, a determination is made on a bit basis as to whether or not the section extracted from the transport stream matches the matching pattern stored in the matching pattern storage circuit. A comparison circuit,
The mask pattern is
Having the same bit length as the matching pattern;
The valid section in which the comparison circuit should make a judgment and the invalid section in which the comparison circuit should not make a judgment are shown in bit units,
The encoding mask pattern is
A section filter circuit characterized by indicating a bit position where the valid section exists in the mask pattern.
前記マスクパターン記憶回路はさらに、前記マスクパターンを格納し、
前記比較回路は、
前記マスクパターン変換回路で変換されたマスクパターンおよび前記マスクパターン記憶回路に格納されたマスクパターンのうちいずれか1つが示す有効区間において、トランスポートストリームより抽出されたセクションが前記マッチングパターン記憶回路に格納されたマッチングパターンと一致するか否かの判断をビット単位で行う
ことを特徴とするセクションフィルタ回路。In claim 1,
The mask pattern storage circuit further stores the mask pattern,
The comparison circuit is
A section extracted from the transport stream is stored in the matching pattern storage circuit in an effective section indicated by one of the mask pattern converted by the mask pattern conversion circuit and the mask pattern stored in the mask pattern storage circuit. A section filter circuit characterized in that a determination is made on a bit-by-bit basis as to whether or not the matching pattern matches.
トランスポートストリームより所望のセクションを含むパケットを取得するパケット取得回路と、
前記パケット取得回路で取得されたパケットより前記セクションを取得して前記セクションフィルタ回路に出力するセクション取得回路と
前記セクションフィルタ回路でマッチングパターンと一致すると判断された前記セクションを蓄積するデータバッファとを備える
ことを特徴とするトランスポートストリーム処理装置。A transport stream processing apparatus comprising the section filter circuit according to claim 1,
A packet acquisition circuit for acquiring a packet including a desired section from the transport stream;
A section acquisition circuit for acquiring the section from the packet acquired by the packet acquisition circuit and outputting the section to the section filter circuit; and a data buffer for storing the section determined to match a matching pattern by the section filter circuit. A transport stream processing apparatus.
特定のプログラムを格納する第1のメモリと、
前記第1のメモリに格納されたプログラムに従って、前記マッチングパターンおよび前記符号化マスクパターンを作成するCPUとを備え、
前記特定のプログラムは、
前記CPUに前記マッチングパターンおよび前記符号化マスクパターンを作成させるプログラムであり、
前記マッチングパターン記憶回路は、
前記CPUで作成されたマッチングパターンを格納し、
前記マスクパターン記憶回路は、
前記CPUで作成された符号化マスクパターンを格納し、
前記デジタル放送受信装置は、さらに
トランスポートストリームを受信して前記トランスポートストリーム処理装置に出力する受信部と、
前記トランスポートストリーム処理装置で蓄積されたセクションデータを記録する第2のメモリとを備える
ことを特徴とするデジタル放送受信装置。A digital broadcast receiving device comprising the transport stream processing device according to claim 3,
A first memory for storing a specific program;
A CPU for creating the matching pattern and the coding mask pattern according to a program stored in the first memory,
The specific program is:
A program for causing the CPU to create the matching pattern and the coding mask pattern;
The matching pattern storage circuit includes:
Storing the matching pattern created by the CPU;
The mask pattern storage circuit includes:
Storing an encoding mask pattern created by the CPU;
The digital broadcast receiving device further receives a transport stream and outputs the transport stream to the transport stream processing device;
A digital broadcast receiving apparatus, comprising: a second memory for recording section data stored in the transport stream processing apparatus.
前記マスクパターンと同じビット長を有するマスクパターンを格納するマスクパターン記憶回路と、
前記マスクパターン記憶回路に格納されたマスクパターンが示す有効区間において、トランスポートストリームより抽出されたセクションと前記マッチングパターン記憶回路に格納されたマッチングパターンとの比較をビット単位で行い、前記比較の結果得られたデータ(比較結果データ)のうち演算種別情報が示す区間に対して前記演算種別情報が示す演算を行うことにより前記セクションと前記マッチングパターンとが一致するか否かの判断を行う比較回路を備え、
前記マスクパターンは、
前記比較回路が判断を行うべき有効区間と前記比較回路が判断を行うべきではない無効区間とをビット単位で示し、
前記演算種別情報は、
前記比較結果データの中で演算の対象となる有効区間とその有効区間に対して行う演算の内容とを示す
ことを特徴とするセクションフィルタ回路。A matching pattern storage circuit for storing a matching pattern having a predetermined bit arrangement;
A mask pattern storage circuit for storing a mask pattern having the same bit length as the mask pattern;
In the effective section indicated by the mask pattern stored in the mask pattern storage circuit, the section extracted from the transport stream and the matching pattern stored in the matching pattern storage circuit are compared bit by bit, and the result of the comparison A comparison circuit that determines whether or not the section matches the matching pattern by performing the calculation indicated by the calculation type information on the section indicated by the calculation type information in the obtained data (comparison result data). With
The mask pattern is
The valid section in which the comparison circuit should make a judgment and the invalid section in which the comparison circuit should not make a judgment are shown in bit units,
The calculation type information is
A section filter circuit characterized by showing an effective section to be calculated in the comparison result data and a content of calculation performed on the effective section.
トランスポートストリームより所望のセクションデータを含むパケットを取得するパケット取得回路と、
前記パケット取得回路で取得されたパケットより前記セクションデータを取得して前記セクションフィルタ回路に出力するセクション取得回路と、
前記セクションフィルタ回路で一致すると判断されたセクションを蓄えるデータバッファとを備える
ことを特徴とするトランスポートストリーム処理装置。A transport stream processing apparatus comprising the section filter circuit according to claim 5,
A packet acquisition circuit for acquiring a packet including desired section data from the transport stream;
A section acquisition circuit that acquires the section data from the packet acquired by the packet acquisition circuit and outputs the section data to the section filter circuit;
A transport stream processing apparatus comprising: a data buffer for storing sections determined to be matched by the section filter circuit.
特定のプログラムを格納する第1のメモリと、
前記第1のメモリに格納されたプログラムに従って、前記マッチングパターン,前記符号化マスクパターン,および前記演算種別情報を作成するCPUとを備え、
前記特定のプログラムは、
前記CPUに前記マッチングパターン,前記符号化マスクパターン,および前記演算種別情報を作成させるプログラムであり、
前記マッチングパターン記憶回路は、
前記CPUで作成されたマッチングパターンを格納し、
前記マスクパターン記憶回路は、
前記CPUで作成された符号化マスクパターンを格納し、
前記比較回路は、
前記マスクパターン記憶回路に格納されたマスクパターンが示す区間において、トランスポートストリームより抽出されたセクションと前記マッチングパターン記憶回路に格納されたマッチングパターンとの比較をビット単位で行い、前記比較の結果得られたデータ(比較結果データ)のうち前記CPUで作成された演算種別情報が示す区間に対して前記演算種別情報が示す演算を行うことにより前記マッチングパターンと前記セクションデータとが一致するか否かの判断を行い、
前記デジタル放送受信装置は、さらに
トランスポートストリームを受信して前記トランスポートストリーム処理装置に出力する受信部と、
前記トランスポートストリーム処理装置で蓄積されたセクションデータを記録する第2のメモリとを備える
ことを特徴とするデジタル放送受信装置。A digital broadcast receiver comprising the transport stream processing device according to claim 6,
A first memory for storing a specific program;
A CPU for creating the matching pattern, the coding mask pattern, and the calculation type information according to a program stored in the first memory;
The specific program is:
A program for causing the CPU to create the matching pattern, the coding mask pattern, and the operation type information;
The matching pattern storage circuit includes:
Storing the matching pattern created by the CPU;
The mask pattern storage circuit includes:
Storing an encoding mask pattern created by the CPU;
The comparison circuit is
In a section indicated by the mask pattern stored in the mask pattern storage circuit, the section extracted from the transport stream and the matching pattern stored in the matching pattern storage circuit are compared bit by bit, and the result of the comparison is obtained. Whether or not the matching pattern and the section data match by performing the calculation indicated by the calculation type information on the section indicated by the calculation type information created by the CPU in the obtained data (comparison result data) Judgment
The digital broadcast receiving device further receives a transport stream and outputs the transport stream to the transport stream processing device;
A digital broadcast receiving apparatus, comprising: a second memory for recording section data stored in the transport stream processing apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003189438A JP2005026955A (en) | 2003-07-01 | 2003-07-01 | Section filter circuit, transport stream processing apparatus, and digital broadcast reception system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003189438A JP2005026955A (en) | 2003-07-01 | 2003-07-01 | Section filter circuit, transport stream processing apparatus, and digital broadcast reception system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005026955A true JP2005026955A (en) | 2005-01-27 |
Family
ID=34187651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003189438A Pending JP2005026955A (en) | 2003-07-01 | 2003-07-01 | Section filter circuit, transport stream processing apparatus, and digital broadcast reception system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005026955A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007013454A (en) * | 2005-06-29 | 2007-01-18 | Toshiba Corp | Receiving device and receiving method |
JP2007243595A (en) * | 2006-03-08 | 2007-09-20 | Fuji Xerox Co Ltd | Network control apparatus and control method |
JP2008153869A (en) * | 2006-12-15 | 2008-07-03 | Toshiba Corp | Filtering device and digital broadcast receiving device |
KR101290072B1 (en) | 2012-05-24 | 2013-07-26 | 주식회사 텔레칩스 | Section filter of linked-list type for transport stream parsing for low power set-top boxes |
-
2003
- 2003-07-01 JP JP2003189438A patent/JP2005026955A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007013454A (en) * | 2005-06-29 | 2007-01-18 | Toshiba Corp | Receiving device and receiving method |
US7953159B2 (en) | 2005-06-29 | 2011-05-31 | Kabushiki Kaisha Toshiba | Receiving apparatus and receiving method |
JP2007243595A (en) * | 2006-03-08 | 2007-09-20 | Fuji Xerox Co Ltd | Network control apparatus and control method |
US7843953B2 (en) | 2006-03-08 | 2010-11-30 | Fuji Xerox Co., Ltd. | Network control device and control method |
JP2008153869A (en) * | 2006-12-15 | 2008-07-03 | Toshiba Corp | Filtering device and digital broadcast receiving device |
KR101290072B1 (en) | 2012-05-24 | 2013-07-26 | 주식회사 텔레칩스 | Section filter of linked-list type for transport stream parsing for low power set-top boxes |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3464264B2 (en) | Data packet transmission / reception method | |
US6438692B2 (en) | Copy protection apparatus and information recording medium used in this copy protection apparatus | |
US6898297B2 (en) | Digital watermark embedding method, digital watermark extracting method, recording medium, image recording device, and image replaying device | |
JP4320951B2 (en) | Recording apparatus and recording / reproducing apparatus | |
US20060273937A1 (en) | Data encoding apparatus, data encoding method, and recording medium recorded with program | |
JP4349533B2 (en) | Flexible multiplexed signal transmission system | |
CN107749990A (en) | A kind of video copyright protecting method and device based on digital watermarking | |
US6252907B1 (en) | Demultiplexer and transport decorder employing the same | |
JP2005026955A (en) | Section filter circuit, transport stream processing apparatus, and digital broadcast reception system | |
JP2003518354A (en) | Transmission of first and second digital information signals via a transmission medium | |
KR20010051423A (en) | Information processing device, it's method and recording media | |
CN106155840A (en) | The method and apparatus used when restructuring fragment jpeg image | |
JP2001086452A (en) | System and method for printing out still picture and information providing medium | |
JP5022954B2 (en) | Filter device and digital broadcast receiving device | |
JP3197408B2 (en) | Additional bit processing device for marker identification | |
JP3809719B2 (en) | Digital video signal processing apparatus and method, digital video signal reproduction apparatus, decoding apparatus and method, and reproduction apparatus and method | |
EP0823707A2 (en) | Disk apparatus having signal processing unit | |
KR100698149B1 (en) | Method and Apparatus for Section data filtering | |
KR100632532B1 (en) | Audio frame recognition method | |
JP2003198378A (en) | Decoding apparatus and method therefor, record medium, and program | |
US6788711B1 (en) | Demultiplexer | |
JPH07321668A (en) | High efficiency data transmission storage device | |
JPH1185550A (en) | Data transmitting method and data recording/ reproducing device | |
JP3978699B2 (en) | Separation apparatus and method, and reception apparatus and method | |
JPH0993574A (en) | Method and device for detecting specific code |