TWI269578B - Data stream filtering module and method - Google Patents

Data stream filtering module and method Download PDF

Info

Publication number
TWI269578B
TWI269578B TW94125329A TW94125329A TWI269578B TW I269578 B TWI269578 B TW I269578B TW 94125329 A TW94125329 A TW 94125329A TW 94125329 A TW94125329 A TW 94125329A TW I269578 B TWI269578 B TW I269578B
Authority
TW
Taiwan
Prior art keywords
filtering
component
module
header
output
Prior art date
Application number
TW94125329A
Other languages
Chinese (zh)
Other versions
TW200705977A (en
Inventor
Sean Teng
Jen-Ya Chou
Original Assignee
Magima Digital Information Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Magima Digital Information Co filed Critical Magima Digital Information Co
Priority to TW94125329A priority Critical patent/TWI269578B/en
Application granted granted Critical
Publication of TWI269578B publication Critical patent/TWI269578B/en
Publication of TW200705977A publication Critical patent/TW200705977A/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A data stream filtering module including a first data filtering module, an output record module, and a status store module is described. The data stream is transmitted by packets. A section to be filtered may be allocated in more than one packet. The output record module records the output status of each piece of data. The status record module stores the filtering result of each piece of data. The first data filtering module attaches a piece of marking bits to each piece of data to identify whether the piece of data has passed the filtering and thus to save the storing space.

Description

1269578 九、發明說明: 【發明所屬之技術領域】 本發明係有關於一種數據流過濾裝置及其方法,尤其 係涉及一種數位電視信號處理裝置中解多工模組内的數據 流過濾裝置及其方法。 【先前技術】 數位電視廣播(Digital Video Broadcasting)系統以傳 送流(Transport Stream)進行資料傳輸,其中傳送流是由 多路節目合成的單個數據流。數位電視接收裝置把由多路 節目合成的傳送流進行解多工和解碼,最終輸出選定之一 路節目的音頻與視頻等内容。傳送流係以封包之形式進行 傳送,這些封包稱爲傳送流封包。傳送流封包由標頭 (Header) 4個位元組(Byte)及酬載(Payload) 184個位 元組構成,其中,標頭攜帶了封包身份(Packet Identity ) 等信息,而酬載則攜帶著元素流封包(Packetized Elementary Stream )或節目特殊資訊(Program Specific Information )等内容。元素流封包亦由標頭及酬載組成, 其酬載中攜帶著視頻、音頻以及字幕等節目的具體内容。 完整的節目特殊資訊為一張表(Table),其被分割成多個組 成部分(Section )進行傳送,每一組成部分由標頭14個位 元組及酬載組成,其酬載中攜帶著節目的詳細資訊,如節 目表、網路資訊等。解多工模組(DEMUX)自傳送流找出 當前選定節目所需之元素流封包、節目特殊資訊等内容, 並分配至對應緩衝區,這需對各類數據進行過濾。有關數 Ϊ269578 位電視廣播傳輸標準請參ISO/IEC 13818-1。 5月參第1圖’為解多工模組(DEMUX) 10之功能組成 ,數據處理流程。如第1圖所示,解多工模組包括同步模 ▲ (SYNC) 11、封包身份過滤模組(PF) 12、適配字段解 析模組(AF) 13、解擾模組(DES) 14、數據過濾模組(df) 15及分配模組(DIS) 16。傳送流首先進入同步模組u, 同步模組11檢查其是否為188個位元組的傳送流封包,是 則送入封包身份過濾模組12,否則將其丟棄·,封包身份過 濾模、、且12根據系統的封包身份表(piD table )選擇一路 選定節目所需的封包並將其送入適配字段解析模組13 ;適 配子#又解析模組13解析傳送流封包之pCR信息,並將其 送入解擾杈組14;解擾模組14對數據進行解擾;數據過濾 模組15對素流封包及節目特殊資訊等進行過渡;分配模 、、且16把過濾凡的數據分配到不同的緩衝區(fifo )丨7中。 現對已有技術中數據過濾模組15對數據流之過濾進行 描述。因元素流封包結構簡單,且其需被過濾之標頭不會 跨越傳送流封包(纟DVB標準規定),故對元素流封包之 過濾也相應較爲簡單。例如,對元素流封包標頭4個位元 組進行過滤,判斷是否為所需元素流封包即可。對於節目 特殊資訊而言’系統需要對每個組成部分標頭…固位元组 進行過濾,以較哪些為需要的組成部分。因dvb標準並 未規定節目特殊資訊組成部分標頭之14個位元組在傳送流 封包中出現的位置,故-個組成部分之標頭很可能分佈於 兩個傳达流封包’且該兩個傳送流封包之間可 其他性質的傳送流封包。 ^夕 1269578 對郎目特殊資訊《士、 yg,, _ 、β、、成邛为的過濾只有在收全其標頭1 4 個位7°組後才能得出結果。然而,由於一個组成:二 ==佈於兩個不連續的傳送流封包中,此就二: == 以部分之標頭。現有的處理方法係將: 個位二\°卩分標碩暫存,等收全該組成部分標頭的14 個^組之後再過濾。—路選定的節目需要處理大於16項 =專於32項封包身份(匕加idemity )的傳送流封包, 以封包身份大多為攜帶節目特殊資訊之傳送流封包所佔 用,,考慮到邊界情況,就需要增設容量爲MW位元組的 -用以存放未收全的組成部分標頭,但如此就增加 了晶片面積。 【發明内容】 口因此本發明的目的就是在提供一種數據流過濾模組, 、利用較小的儲存空間來處理傳送流价以% TS)之節目特殊資訊。 本發明的另一目的是在提供一種數據流過濾模組,可 以更有效率地處理傳送流之節目特殊資訊。 本發明的又一目的是在提供一種數據流過濾模組,可 以縮小晶片的面積。 根據本發明之上述目的,提出一種數據流過濾模組, 供過慮傳送流(transport stream,TS)之節目特殊資訊之組成 部分(section),該數據流過濾模組包含··一狀態儲存模組, 接收並儲存紐成部分(section)過濾狀態資訊;一封包身份 表’ 5己錄組成部分(section)之輸出狀況;以及一節目特殊資 1269578 矾過濾模組’接收組成部分(secti〇n)2標頭並產生該過濾狀 態資訊’該過滤狀態資訊紀錄該標頭是否通過過濾,並在 組成部分尾部添加標誌性字段,該標誌性字段標示組成部 分(section)是否通過過渡。 本發明至少具有下列優點,其中每一實施例可以具有 一個或多個優點。本發明的數據流過濾模組可以利用較小 的儲存空間來處理傳送流(tranSp〇rt stream,Τ§)之節目特殊 資訊。本發明的數據流過濾模組可以更有效率地處理傳送 流之節目特殊資訊。本發明的數據流過濾模組可以縮小晶 片的面積。 【實施方式】 請參第2圖,本發明的數據流過濾模組(DF) 150包 括節目特殊資訊過濾模組(PSI) 151、元素流封包過濾模 φ 組(PES) 152、狀態儲存模組(Config Table) I53以及緩 衝區(FIFO) 154。如前所述,傳送流封包進入數據流過濾 模組150之前,經過封包身份過濾模組12〇根據封包身份 表(PID TABLE) 130進行封包身份過濾,選中一路節目所 需之傳送流封包方能進入數據過濾模組15〇。其中,節目特 , 殊資訊過濾模組151過濾節目特殊資訊之組成部分;元素 流封包過濾模組152過濾元素流封包。 元素流封包過濾模組152對元素流封包標頭進行過 渡’判斷是否為所需之元素流封包,若是則通過緩衝區154 8 ⑧ 1269578 輸出該7G素流封包,否則丟棄該元素流封包。如前所述, ISO/IEC 13818·1規個元素流封包之標頭只能存在於一 個傳送流封包中’故元素流封包之過濾比較簡單。1269578 IX. The invention relates to a data stream filtering device and a method thereof, and more particularly to a data stream filtering device in a demultiplexing module of a digital television signal processing device and method. [Prior Art] A digital video broadcasting system transmits data by a transport stream, which is a single data stream synthesized by a plurality of programs. The digital television receiving device demultiplexes and decodes the transport stream synthesized by the plurality of programs, and finally outputs the audio and video contents of the selected one of the programs. The transport stream is transmitted in the form of a packet, which is called a transport stream packet. The transport stream packet is composed of a header (Byte) of 4 bits (Byte) and a payload (Payload) of 184 bytes, wherein the header carries information such as Packet Identity and the payload carries Content such as Packetized Elementary Stream or Program Specific Information. The element stream packet is also composed of a header and a payload, and the payload carries the specific content of the program such as video, audio and subtitles. The complete program special information is a table, which is divided into multiple parts for transmission. Each component consists of 14 bytes and payloads of the header, and is carried in the payload. Detailed information about the program, such as program schedules, online information, etc. The multiplexed module (DEMUX) finds the element stream packet, program special information, etc. required for the currently selected program from the transport stream, and allocates it to the corresponding buffer, which needs to filter various types of data. Please refer to ISO/IEC 13818-1 for the number 269578 TV broadcast transmission standard. In May, reference to Figure 1 is the functional component of the multiplexed module (DEMUX) 10 and the data processing flow. As shown in Figure 1, the multiplexed module includes a synchronous mode ▲ (SYNC) 11, a packet identity filter module (PF) 12, an adaptation field analysis module (AF) 13, and a descrambling module (DES) 14 , data filtering module (df) 15 and distribution module (DIS) 16. The transport stream first enters the synchronization module u, and the synchronization module 11 checks whether it is a transport stream packet of 188 bytes, and then sends it to the packet identity filter module 12, otherwise discards it, and blocks the identity filter module, And 12 selects a packet required for the selected program according to the system's packet identifier table (piD table) and sends it to the adaptation field parsing module 13; the parser # and parsing module 13 parses the pCR information of the transport stream packet. And sending it to the descrambling group 14; the descrambling module 14 descrambles the data; the data filtering module 15 transitions the prime stream packet and the program special information; and allocates the mode, and 16 filters the data. Assigned to a different buffer (fifo) 丨7. The filtering of the data stream is now described by the data filtering module 15 in the prior art. Because the element stream packet structure is simple, and the header to be filtered does not cross the transport stream packet (as specified by the DVB standard), the filtering of the element stream packet is relatively simple. For example, the element stream packet header 4 bytes are filtered to determine whether it is a desired element stream packet. For program special information, the system needs to filter each component header...the retention tuple to be more of the required components. Since the dvb standard does not specify the position of the 14 bytes of the program specific information component header in the transport stream packet, the header of the component is likely to be distributed in the two transport stream packets' and the two Transport stream packets of other nature between transport stream packets. ^夕1269578 For Langmu's special information, the filter of 士, yg,, _, β, 邛, 邛, 邛, 邛, 邛, 邛, 邛, 邛, 邛, 邛, 邛, 邛 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 However, since one component: two == is placed in two non-contiguous transport stream packets, this is two: == with the partial header. The existing processing method will be: a bit of two \ ° 卩 硕 硕 暂 暂 暂 暂 暂 暂 , , , , 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 - The selected program of the road needs to process more than 16 items = transport stream packets dedicated to 32 packets of identity (additionality), and the packet identity is mostly occupied by the transport stream packet carrying the special information of the program, considering the boundary condition, It is necessary to add a capacity of MW bytes to store the uncompleted component headers, but this increases the wafer area. SUMMARY OF THE INVENTION Therefore, the object of the present invention is to provide a data stream filtering module that utilizes a small storage space to process program specific information of a delivery stream price of % TS). Another object of the present invention is to provide a data stream filtering module that can process program specific information of a transport stream more efficiently. It is yet another object of the present invention to provide a data stream filtering module that reduces the area of the wafer. According to the above object of the present invention, a data stream filtering module is provided for considering a component of a program special information of a transport stream (TS), wherein the data stream filtering module includes a state storage module. Receiving and storing the section filtering status information; a packet identity table's output status of the 5 sections; and a program special fund 1269578 矾 filter module 'receiving component' (secti〇n) 2 header and generate the filtering status information 'The filtering status information records whether the header passes the filtering, and adds an iconic field at the end of the component, the flag field indicates whether the section passes the transition. The present invention has at least the following advantages, each of which may have one or more advantages. The data stream filtering module of the present invention can process program specific information of the transport stream (tranSp〇rt stream, Τ§) by using a small storage space. The data stream filtering module of the present invention can process program specific information of the transport stream more efficiently. The data stream filtering module of the present invention can reduce the area of the wafer. [Embodiment] Referring to FIG. 2, the data stream filtering module (DF) 150 of the present invention includes a program special information filtering module (PSI) 151, an element stream packet filtering mode φ group (PES) 152, and a state storage module. (Config Table) I53 and buffer (FIFO) 154. As described above, before the transport stream packet enters the data stream filter module 150, the packet identity filter module 12 filters the packet identity according to the packet identifier table (PID TABLE) 130, and selects the transport stream packet required for the program. Can enter the data filtering module 15〇. The program special information filtering module 151 filters the components of the program special information; the element stream packet filtering module 152 filters the element stream packets. The element stream packet filtering module 152 performs a transition to the element stream packet header to determine whether it is the required element stream packet. If yes, the 7G stream packet is output through the buffer 154 8 8 1269578, otherwise the element stream packet is discarded. As mentioned earlier, the header of the ISO/IEC 13818·1 element stream packet can only exist in one transport stream packet. Therefore, the filtering of the element stream packet is relatively simple.

狀態儲存模組153用以儲存節目特殊資訊各組成部分 之過濾狀態,其係一張Νχ(η+2)位元的表,由Ν個表項組 成母個表項爲η+2位元。其中,Ν爲需要處理之封包身 份之數目;每一表項之η+2位元中,η位元係由軟體填寫的 封包身份索引(PID 一 Index),表明被過濾之攜帶節目特殊 資訊之傳送流封包之封包身份在封包身份表13〇中的位 置;另外2個位元中,一個係該表項之致能位元(Enabie), 軟體可通過置“Γ來打開該表項(有效),置“〇”來關閉 該表項(無效),從而可實現軟體控制過濾;另一位元係該 表項之錯誤位(Eiror),表明已收到組成部分之標頭是否通 過過濾,若未通過,則置“Γ ,通過則保持“〇” 。當收 全一個組成部分標頭14個位元組時,若錯誤位爲“〇” , 同時致能位元為“Γ ,就認爲該組成部分通過過濾。節目 特殊資訊過濾模組151對節目特殊資訊各組成部分標頭14 個位元組進行過濾,判斷是否爲所需之組成部分。對每一 組成部分之過濾而言,只要其標頭14個位元組中1個位元 組未通過過濾,該組成部分就應被丟棄。只有當組成部分 標頭14個位元組全部通過過濾,該組成部分方能為系統所 用。因此,在過濾過程中,前述狀態儲存模組153之錯誤 位只能以“Γ覆蓋“0” ,不能以“〇,,覆蓋“丨”,並且 於每個組成部分標頭第一位元組過濾前重置對應表項,以 保證前一組成部分之過濾結果不至影響當前組成部分之過 9 ⑧ 1269578 ?慮結果。 m 一個節目特殊資訊之組成部分之標頭可能分佈在兩個 傳送流封包中,且該兩傳送流封包被多個其他傳送流封包 間隔,在某些情況下,完成一個組成部分標頭之過:需= 收全該組成部分標頭之14個位元組。本發明利用狀態^存 模組153記錄各組成部分標頭之過濾資訊,從而無需儲存 整個標頭14個位元組,詳見後述。例如,當ν=32,打: 位凡(2的5次冪等於32,對應封包身份表中32個項), 本發明狀態儲存模組僅需要32χ (5+2)位元的儲存空間, 相同清况下’現有技術之數據流過瀘模組則需要Mm (位元組)χ8(每位元組8位元)位元的儲存空間 ^明實現節目特殊資訊過瀘只需要現有技術十六分之一 容量的儲存裝置’這可大幅節省晶片面積。 _在節目特殊資訊流封包的過濾、中可能出現以下幾種 ⑴-個節目特殊f訊組成部分之標頭分佈於一個傳 二?=二並且該標頭通過過濾。節目特殊資訊過濾模 對應㈣/心給狀態儲存模組153,狀態儲存模組153 組成:;分=:==::持τ。該節目_訊 出時,節目特硖次 輸出,當該組成部分被完全輸 ^ 負汛過濾模組將在其尾部添加標誌性字 又,疣明該組成部分通過過濟 否被輪屮叙、、尥,愿。母一傳送流封包之負載是 部分之 机過濾模組被記錄於封包身份表。若該組成 身:表之^部分分佈於其他傳送流封包,系統將根據封包 之輪出記錄輸出被其他傳送流封包攜帶之該組成部 1269578 、最終,系統根據狀態儲存模組153對應之錯誤 位在該組成部分尾部添加標誌性字段。 、 一個節目特殊資訊組成部分之標頭分佈於一個傳 送流封包中,1 ▲ w 仁未通過過濾。節目特殊資訊過濾模組151 二Κ ^到狀痛、儲存模組153,狀態儲存模組153把對應 身份以丨之項之錯誤位置“1”,該節目特殊資訊流 二=成部t被*棄’同時該被丟棄之資訊被儲存於封包 ^中。若該組成部分之酬載分佈在其他傳送流封包 系摘根據封包身份表之輸出記錄以及狀態儲存模組 153對應之錯誤位將其丟棄。 C 3 1 、关、、☆、 個節目特殊資訊組成部分之標頭分佈於兩個傳 封包,位於前一傳送流封包之標頭位元組通過過濾。 /目特殊貝矾流封包過濾模組15丨把該過濾結果送至狀態 ^模組153 ’狀態儲存模组153對應之錯誤位保持 、。該部分標頭通過緩衝區154輸出,輸出資訊自動記 ^於,包身份表。因分佈於前一傳送流封包之組成部分之 二分已經被輸出,無論分佈於後面傳送流封包之該組 ^分其餘之標頭位元組是否通過過濾,數據流過渡模組 P將根據封包身份表之輸出記錄把分佈於後續傳送流封包 =該組成部分之其他部分(包括標頭與酬載)冑出。若該 、且成°卩分剩餘之標頭位元組亦通過過濾,節目特殊資訊過 =模組15i把該資訊送至狀態儲存模組153,狀態儲存模組 對應之錯誤位仍然保持“〇”。最後,冑目特殊資訊過 ‘二組151在該組成部分尾部添加表明其通過過濾之標誌 14字奴。若分佈於後一傳送流封包該組成部分之其餘標頭 ⑧ 1269578 位元組未通過過濾,狀態儲存模組153對應之錯誤位將被 置“1” ,節目特殊資訊過濾模組151將在該組成部分尾部 添加未通過過濾之標誌性字段,軟體在處理該組成部分時 會將其丢棄。 (4) 一個節目特殊資訊組成部分之標頭分佈於兩個傳 送流封包,分佈於前一傳送流封包之標頭位元組未通過過 濾。節目特殊資訊過濾模組151把該資訊送至狀態儲存模 組153 ’狀態儲存模組153把對應之錯誤位置‘‘ 1 ”,該組 成部分當前部分被直接丟棄,該丟棄資訊被記錄於封包身 份表中。系統根據狀態儲存模組之錯誤位以及封包身份表 提供之輸出記錄將該組成部分後續之内容直接丟棄。 以下舉一實例說明本發明數據流過濾模組之工作。假 設存在4個攜帶節目特殊資訊之傳送流封包:TS1、TS2、 TS3及TS4,依次被送入數據流過濾模組進行過濾,其中, TS1與TS3具有相同之封包身份,TS2與TS4具有另一封 匕身伤TS1與TS3攜帶了 一個節目特殊資訊組成部分a 枯頭之不同口p分’分別係第卜1〇位元組與第U_14位元組; TS2與TS4攜帶了另一 係第1 - 8位元組與第9 一組成部分B標頭之不同部分,分別 9-14位元組。如下表所示: TS1 (PID一Index=l ) TS2 (PID—Index=2 )The state storage module 153 is configured to store the filtering state of each component of the program special information, which is a table of Νχ(η+2) bits, and the parent entries are η+2 bits. Where Ν is the number of packet identities that need to be processed; among the η+2 bits of each entry, the η bit is a packet identity index (PID-Index) filled in by the software, indicating that the filtered special information carrying the program is The location of the packet identifier of the transport stream packet in the packet identity table 13〇; one of the other two bits is an enabling bit of the entry (Enabie), and the software can open the entry by setting “Γ” (valid) ), set "〇" to close the entry (invalid), so that software control filtering can be implemented; another bit is the error bit (Eiror) of the entry, indicating whether the header of the received component has passed the filtering. If it does not pass, set "Γ" and pass it to keep "〇". When a total of 14 headers of a component header is received, if the error bit is "〇" and the enable bit is "Γ", the component is considered to be filtered. The program special information filtering module 151 is for the program. The special information is divided into 14 bytes of each component header to determine whether it is the required component. For each component filtering, as long as one of the 14 bytes of its header is not By filtering, the component should be discarded. Only when the 14 headers of the component header are all filtered, the component can be used by the system. Therefore, in the filtering process, the state storage module 153 is wrong. The bit can only be overwritten with “Γ” and cannot be “〇”, “覆盖”, and the corresponding entry is reset before the first byte of each component header is filtered to ensure the previous component. The filtering result does not affect the current component. The header of the component of a program special information may be distributed in two transport stream packets, and the two transport stream packets are transmitted by multiple others. The flow packet interval, in some cases, completes a component header: needs = to receive the 14 bytes of the component header. The present invention uses the state storage module 153 to record the component headers. Filtering information, so there is no need to store the entire header 14 bytes, as described later. For example, when ν=32, hit: bit (2 is equal to 32, corresponding to 32 entries in the packet identification table), The state storage module of the present invention only needs 32 χ (5+2) bits of storage space, and the same state of the art data flow through the 泸 module requires Mm (bytes) χ 8 (8 bits per octet) (meta) storage space of the bit ^ Ming to achieve program special information only requires one-sixteenth of the capacity of the existing storage device 'This can save a lot of wafer area. _ In the special information stream packet filtering, the following may appear The headers of several (1)-program special f-signal components are distributed in one pass two== two and the header is filtered. The program special information filter mode corresponds to (4)/heart state storage module 153, state storage module 153 Composition:; points =:==:: holding τ. The program _ news The program is specially output. When the component is completely converted, the filter module will add a symbolic word at the end of the filter module, indicating whether the component is reincarnation, or not. The load of a transport stream packet is recorded in the packet identity table. If the component body: part of the table is distributed in other transport stream packets, the system will be packetized by other transport streams according to the rounded record output of the packet. Carrying the component 1269578, finally, the system adds an iconic field to the tail of the component according to the error bit corresponding to the state storage module 153. The header of a program special information component is distributed in a transport stream packet, 1 ▲ w Ren does not pass the filtering. The program special information filtering module 151 2 Κ ^ to the pain, the storage module 153, the state storage module 153 to the corresponding identity of the item of the wrong position "1", the program special information flow two = The part t is discarded * and the discarded information is stored in the packet ^. If the payload of the component is distributed in other transport stream packets, it is discarded according to the output record of the packet identity table and the error bit corresponding to the state storage module 153. The headers of the C 3 1 , OFF, ☆, and program special information components are distributed in two packets, and the header bits of the previous transport stream packet are filtered. The /By special stream packet filtering module 15 sends the filtering result to the state ^ module 153 'the state storage module 153 corresponding to the error bit holding. The part header is output through the buffer 154, and the output information is automatically recorded in the packet identification table. Since the binary portion distributed in the component of the previous transport stream packet has been output, regardless of whether the remaining header headers distributed in the subsequent transport stream packet pass the filtering, the data stream transition module P will be based on the packet identity. The output records of the table are distributed over subsequent transport stream packets = other parts of the component (including headers and payloads). If the remaining header bytes are also filtered, the program special information is passed: the module 15i sends the information to the state storage module 153, and the error bit corresponding to the state storage module remains "〇" ". Finally, the special information over the ‘two groups 151 added at the end of the component indicates that it passed the filter sign 14 word slave. If the remaining headers 8 1269578 bytes of the component of the latter transport stream packet are not filtered, the error bit corresponding to the state storage module 153 will be set to "1", and the program special information filtering module 151 will be The component tail adds an iconic field that is not filtered, and the software discards it when it is processed. (4) The header of a program specific information component is distributed in two transport stream packets, and the header bytes distributed in the previous transport stream packet are not filtered. The program special information filtering module 151 sends the information to the state storage module 153. The state storage module 153 sets the corresponding error location ''1', the current part of the component is directly discarded, and the discarded information is recorded in the packet identity. In the table, the system discards the subsequent content of the component according to the error bit of the state storage module and the output record provided by the packet identity table. The following example illustrates the operation of the data stream filtering module of the present invention. The transmission stream packets of the program special information: TS1, TS2, TS3 and TS4 are sequentially sent to the data stream filtering module for filtering, wherein TS1 and TS3 have the same packet identity, and TS2 and TS4 have another body injury TS1. And TS3 carries a program special information component a. The different mouth p points ' are the first 1st byte and the first U_14 byte respectively; TS2 and TS4 carry the other 1st to 8th byte Different parts from the header of the ninth component B, 9-14 bytes respectively, as shown in the following table: TS1 (PID-Index=l) TS2 (PID-Index=2)

組成部分A標頭之 1 -10位凡組Component A header 1 -10 digits

組成部分B標頭之 1-8位組1-8 group of component B header

(D 12 1269578 TS3 (PID_Index=l ) TS標頭與適 配字段 組成部分A標頭之 11 -14位元組 TS標頭與適 配字段 組成部分B標頭之 9-14位元組(D 12 1269578 TS3 (PID_Index=l ) TS header and matching field Component 11 header 11 - 14 bytes TS header and matching field Component 9 header 9-14 bytes

TS4 (PID_Index=2) 過濾時,假設TS1、TS4所攜帶之組成部分標頭之位元 組通過過濾,TS2、TS3所攜帶之組成部分標頭之位元組未 通過過濾。過濾前,狀態儲存模組153之對應表項狀態如 下: 狀態儲存模組表項〇When TS4 (PID_Index=2) is filtered, it is assumed that the byte of the component header carried by TS1 and TS4 is filtered, and the byte of the component header carried by TS2 and TS3 is not filtered. Before filtering, the status of the corresponding entry of the state storage module 153 is as follows: Status storage module entry 〇

Enable Error PID Index 狀態儲存模組表項1 1 0 PID_Index= 1 1 0 PID—Index = 2 TS1過濾後,Config Table對應表項狀態如下:Enable Error PID Index Status Storage Module Entry 1 1 0 PID_Index= 1 1 0 PID—Index = 2 After TS1 filtering, the status of the Config Table entry is as follows:

Enable Error PID Index 1 0 PID—Index= 1 1 0 PID—Index = 2 狀態儲存模組表項〇 狀態儲存模組表項1 TS2過濾後,Config Table對應表項狀態如下:Enable Error PID Index 1 0 PID—Index= 1 1 0 PID—Index = 2 Status Storage Module Table Item 〇 Status Storage Module Entry 1 After TS2 filtering, the status of the Config Table entry is as follows:

Enable Error PID Index 狀態儲存模組表項〇 狀態儲存模組表項1 1 0 PID—Index = 1 1 1 PID—Index= 2 TS3過濾後,Config Table對應表項狀態如下: ⑧ 1269578Enable Error PID Index Status Storage Module Table Item 〇 Status Storage Module Entry 1 1 0 PID—Index = 1 1 1 PID—Index= 2 After TS3 filtering, the status of the Config Table entry is as follows: 8 1269578

Enable Error PID—Index 狀態儲存模組表項0 1 1 PID Index = 1 狀態儲存模組表項1 1 1 PID Index=2 TS4過濾後,c〇nfig Table對應表項狀態如下: Enable Error PID Index 狀態储存模組表項〇 1 1 PID 一 Index = 1 狀態儲存模組表項1 1 1 PID 一 Index = 2Enable Error PID—Index Status Storage Module Entry 0 1 1 PID Index = 1 Status Storage Module Entry 1 1 1 PID Index=2 After TS4 filtering, the status of the corresponding items in the c〇nfig Table is as follows: Enable Error PID Index Status Storage module table entry 1 1 1 PID - Index = 1 Status storage module entry 1 1 1 PID - Index = 2

_ ^因系統不為節目特殊資訊組成部分標頭設置專用儲存 卫間又目TS1所冑帶之組成部分標頭位元組通過過滤, 且由於TS1係攜帶該組成部分A之第—個傳送流封包,故 其將被輸出。θ 了82所攜帶之組成部分標頭未通過過滤, 且由於TS2係攜帶該組成部分Β之第—個傳送流封包,故 其將被直接*棄。TS3所攜帶之組成部分Α之標頭位元組 雖未通過過濾,但由於TS1已經被送出,故Ts3亦將被送 出系統將在組成部分A之尾部添加標諸性字段,指明該 組成部分A未通過過濾。TS4_通過過攄,但因顶未 通過過遽且被丢棄,故TS4也將被直接丢棄。 、〔可*本&明可根據封包身份表之輪出記錄以及 =儲存模組153之錯誤位判斷應將#前節目特殊資訊組 =分輸出或丟棄,完成過濾後並在其尾部添加表明是否 时段,後續處理中,軟體根據該標該性 子奴決定是否處理該部分數據。 資訊組成部分標頭位元組過 本發明數據流過濾模組150 第3圖爲本發明節目特殊 慮方法之流程圖。步驟3 Μ, 1269578 2節目特殊資訊過濾模組151對組成部分(secti〇n)之當前 邛刀進仃過濾,·步驟3〇2,節目特殊資訊過濾模組151把所 述過濾結果儲存至狀態儲存模組153 ;步驟3〇3,根據封包 身份表130之記錄判斷該組成部分(secti〇n)是否有輸出記 錄,有則跳至步驟305,輸出該組成部分(secti〇n)之當前 4刀,無則跳至步驟304,根據狀態儲存模組153 之記錄判 斷該組成部分(section)是否通過過濾,是則跳至步驟 ,輸出輸出該組成部分(secti〇n)之當前部分,否則跳 至步驟306,丟棄該組成部分(secti〇n)之當前部分,步驟 307’儲存輸出記錄。 本發明至少具有下列優點,其中每一實施例可以具有 一個或多個優點。本發明的數據流過濾模組可以利用較小 的儲存空間來處理傳送流(transp0rt stream,TS)之節目特殊 資訊。本發明的數據流過濾模組可以更有效率地處理傳送 流之節目特殊資訊。本發明的數據流過濾模組可以縮小晶 片的面積。 雖然本發明已以一較佳實施例揭露如上,然其並非用 以限定本發明,任何熟習此技藝者,在不脫離本發明之精 神和範圍内,當可作各種之更動與潤飾,因此本發明之保 護範圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 為讓本發明之上述和其他目的、特徵、優點與實施例 能更明顯易懂,所附圖式之詳細說明如下: ⑧ 15 1269578 第1圖繪示現有解多工模組之功能模組組成之結構圖; 第2圖繪示本發明數據流過濾模組之功能模組組成之 結構圖;以及 第3圖繪示本發明節目特殊資訊過濾模組過濾節目特 殊資訊組成部分標頭位元組之流程圖。 【主要元件符號說明】 10 :解多工模組 12 ··封包身份過濾模組 14 :解擾模組 16 :分配模組 120 :封包身份過濾模組 150 :數據流過濾模組 152 ··元素流封包過濾模組 154 :緩衝區 11 :同步模組 13 :適配字段解析模組 15 :數據流模組 17 :緩衝區 130 :封包身份表 151 :節目特殊資訊過濾模組 153 :狀態儲存模組 16_ ^Because the system does not set the special storage part of the program special information part header, the component header group carried by the TS1 is filtered, and since the TS1 carries the first transmission stream of the component A The packet will be output. The component header carried by θ 82 does not pass the filtering, and since the TS2 carries the first transport stream packet of the component ,, it will be directly discarded*. Although the header byte of the component carried by TS3 has not passed the filtering, since TS1 has been sent, Ts3 will also be sent out and the system will add a standard field at the end of component A to indicate the component A. Did not pass the filter. TS4_ passes through, but since the top has not passed and is discarded, TS4 will also be discarded directly. [Can be * this & clearly according to the rounding record of the packet identity table and the error bit of the storage module 153 judged that the #前Program special information group = sub-output or discard, after filtering and adding at the end of the indication Whether or not the time period, in the subsequent processing, the software determines whether to process the part of the data according to the target. The information component header bit group is over. The data stream filtering module 150 of the present invention is a flow chart of the program special consideration method of the present invention. Step 3 Μ, 1269578 2 The program special information filtering module 151 filters the current part of the component (secti〇n), step 3〇2, and the program special information filtering module 151 stores the filtering result to the state. The storage module 153, step 3〇3, determines whether the component (secti〇n) has an output record according to the record of the packet identity table 130, and then jumps to step 305 to output the current part of the component (secti〇n). Knife, if no, jump to step 304, judge whether the component section passes the filtering according to the record of the state storage module 153, if yes, skip to the step, output and output the current part of the component part (secti〇n), otherwise jump To step 306, the current portion of the component (secti〇n) is discarded, and step 307' stores the output record. The present invention has at least the following advantages, each of which may have one or more advantages. The data stream filtering module of the present invention can process program specific information of a transport stream (transp0rt stream, TS) by using a small storage space. The data stream filtering module of the present invention can process program specific information of the transport stream more efficiently. The data stream filtering module of the present invention can reduce the area of the wafer. Although the present invention has been described above in terms of a preferred embodiment, it is not intended to limit the invention, and it is obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS In order to make the above and other objects, features, advantages and embodiments of the present invention more obvious and obvious, the detailed description of the drawings is as follows: 8 15 1269578 Figure 1 shows the existing solution multi-mode The structural diagram of the functional modules of the group; the second diagram shows the structural diagram of the functional modules of the data stream filtering module of the present invention; and the third diagram shows the special information of the filtering program of the program special information filtering module of the present invention. Flow chart for partial header bytes. [Main component symbol description] 10: Demultiplexing module 12 · · Packet identity filtering module 14 : Desmuting module 16 : Distribution module 120 : Packet identity filtering module 150 : Data stream filtering module 152 · · Element Stream packet filtering module 154: buffer 11: synchronization module 13: adaptation field parsing module 15: data stream module 17: buffer 130: packet identity table 151: program special information filtering module 153: state storage module Group 16

Claims (1)

1269578 十、申請專利範圍: 1. 一種數據流過濾模組,供過濾傳送流(transport stream,TS)之節目特殊資訊之組成部分(section),該數據流 過濾模組包含: 一狀態儲存模組,接收並儲存組成部分(section)過濾狀 態資訊; 一封包身份表,記錄組成部分(section)之輸出狀況;以 及 一節目特殊資訊過濾模組,接收組成部分(section)之標 頭並產生該過濾狀態資訊,該過濾狀態資訊紀錄該標頭是 否通過過濾,並在組成部分尾部添加標誌性字段,該標誌 性字段標示組成部分(section)是否通過過濾。 2. 如申請專利範圍第1項所述之數據流過濾模組,其 中該狀態儲存模組係一表(table)。 3. 如申請專利範圍第2項所述之數據流過濾模組,其 中該表供紀錄N*(n+2)位元,其中N為需要處理之封包身 分(PID)之數量(number),η為供填寫之封包身分索引 (PID—index),該2個位元分別為一致能位元(enable)以及一 錯誤位元(error),該致能位元(enable)紀錄該表(table)是否 有效,該錯誤位元(error)紀錄已收到之該標頭之一部分是否 通過過濾。 1269578 4·種數據流過滤方法,供過濾傳送流(transport Stream,TS)之節目特殊資訊之組成部分(section),該數據流 過濾方法包含: 過濾當則組成部分(secti〇n)之當前部分並將過濾結果 儲存; 日根據該組成部分(secti〇n)之輸出狀況及過濾結果判 斷疋否把該組成部分(secti〇n)之該當前部分輸出:1269578 X. Patent application scope: 1. A data stream filtering module for filtering a component of a program special information of a transport stream (TS), the data stream filtering module comprising: a state storage module Receiving and storing a section filtering status information; a packet identity table recording the output status of the section; and a program special information filtering module receiving the header of the section and generating the filtering Status information, the filtering status information records whether the header passes the filtering, and adds an iconic field at the end of the component, the flag field indicating whether the section is filtered. 2. The data flow filtering module of claim 1, wherein the state storage module is a table. 3. The data flow filtering module described in claim 2, wherein the table is for recording N*(n+2) bits, where N is the number of packets (PID) to be processed. η is a packet identity index (PID_index) for filling, the two bits are a consistent energy bit (enable) and an error bit (error), and the enabling bit (enable) records the table (table) Whether it is valid, the error bit records whether a part of the header has been received or not. 1269578 4. A data stream filtering method for filtering a component of a program specific information of a transport stream (TS), the data stream filtering method comprising: filtering a current part of a component (secti〇n) And storing the filtered result; determining whether to output the current part of the component (secti〇n) according to the output condition of the component (secti〇n) and the filtering result: 若該組成部分(section)有輸出記錄,則把該當前部 輸出; 記錄,且過濾結果為通 若該組成部分(section)無輸出 過,則把該當前部分輸出; 若5亥組成部分(section)無輸 通過’則把該當前部分丟棄; 出記錄 ,且過濾結果為不 健存輪出記錄;以及 該標誌·If the component has an output record, the current portion is output; the record is filtered, and if the component is not output, the current portion is output; if the 5H component (section) If there is no loss, then the current part is discarded; the record is recorded, and the result of the filtering is a non-sense record; and the flag is 性& t邊組成部分(SeCtί〇η)尾部添加標誌性字段 予段標示該級成部分是否通過過渡。 ⑧ 18The signature field is added to the tail of the sex & t edge component (SeCtί〇η). The segment indicates whether the segmentation part passes the transition. 8 18
TW94125329A 2005-07-26 2005-07-26 Data stream filtering module and method TWI269578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW94125329A TWI269578B (en) 2005-07-26 2005-07-26 Data stream filtering module and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW94125329A TWI269578B (en) 2005-07-26 2005-07-26 Data stream filtering module and method

Publications (2)

Publication Number Publication Date
TWI269578B true TWI269578B (en) 2006-12-21
TW200705977A TW200705977A (en) 2007-02-01

Family

ID=38291600

Family Applications (1)

Application Number Title Priority Date Filing Date
TW94125329A TWI269578B (en) 2005-07-26 2005-07-26 Data stream filtering module and method

Country Status (1)

Country Link
TW (1) TWI269578B (en)

Also Published As

Publication number Publication date
TW200705977A (en) 2007-02-01

Similar Documents

Publication Publication Date Title
CN1085008C (en) Decoder for compressed and multiplexed video and audio data
US6654423B2 (en) PID/section filter in digital television system
US8745674B2 (en) Apparatus for receiving broadcast signal
TW501373B (en) Non real-time delivery of MPEG-2 programs via an MPEG-2 transport stream
US7706379B2 (en) TS transmission system, transmitting apparatus, receiving apparatus, and TS transmission method
WO2019233155A1 (en) General data stream packaging method, and de-packaging method and apparatus
US7969972B2 (en) System for receiving packet stream
US20030012223A1 (en) System and method for processing bandwidth allocation messages
US6577813B1 (en) Transmitting system and transmitting apparatus
TWI269578B (en) Data stream filtering module and method
US20070177595A1 (en) DTV decoding system and de-multiplexing method thereof
US20110096775A1 (en) System and method for multiplexing and streaming contents
EP2472826B1 (en) Method for receiving notification message and apparatus thereof
CN100425036C (en) Data stream filtering module and method, demultiplexing module, and digital television receiving apparatus
US20070147785A1 (en) Method of detecting information break position of multiplexed stream, sound digital broadcast recording apparatus, and recording control method
JPH10322671A (en) Separating device of packet multiplexed image sound signal
US8125987B2 (en) System and method for demultiplexing different stream types in a programmable transport demultiplexer
KR100991122B1 (en) Method and device for transferring data packets
JP2004312629A (en) System for receiving digital broadcasting
KR101141644B1 (en) Apparatus and Method of PSI converting
JP4708324B2 (en) Program transmission control apparatus, program transmission control method, program transmission control program, and recording medium recording the program
JPH10243394A (en) Mpeg data processing circuit
US8146121B2 (en) Systems and methods for processing program content and information in a video broadcast
CN111726680A (en) Method and equipment for realizing EIT table multiplexing
JP2005260410A (en) Packet data processor

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees