KR20060067848A - Device and method for demultiplexing received transport stream in digital broadcasting receiver - Google Patents

Device and method for demultiplexing received transport stream in digital broadcasting receiver Download PDF

Info

Publication number
KR20060067848A
KR20060067848A KR1020050122479A KR20050122479A KR20060067848A KR 20060067848 A KR20060067848 A KR 20060067848A KR 1020050122479 A KR1020050122479 A KR 1020050122479A KR 20050122479 A KR20050122479 A KR 20050122479A KR 20060067848 A KR20060067848 A KR 20060067848A
Authority
KR
South Korea
Prior art keywords
data
packet
additional information
buffer
header
Prior art date
Application number
KR1020050122479A
Other languages
Korean (ko)
Other versions
KR100755434B1 (en
Inventor
서정욱
이종걸
박외진
Original Assignee
삼성전자주식회사
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 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to US11/302,353 priority Critical patent/US8199781B2/en
Priority to CN200580042848XA priority patent/CN101080925B/en
Priority to PCT/KR2005/004297 priority patent/WO2006065071A1/en
Priority to EP05819107A priority patent/EP1839439A4/en
Publication of KR20060067848A publication Critical patent/KR20060067848A/en
Application granted granted Critical
Publication of KR100755434B1 publication Critical patent/KR100755434B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4343Extraction or processing of packetized elementary streams [PES]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/455Demodulation-circuits

Abstract

패킷헤더 및 페이로드로 구성되는 패킷데이타를 처리하는 디지털 방송수신기의 역다중화 장치가, 입력되는 패킷 데이터를 버퍼링하는 버퍼와, 버퍼에 병렬 연결되는 복수의 처리부들로 구성되며, 처리부들은, 버퍼링된 패킷데이타의 패킷헤더를 검사하여 부가정보 포함 여부를 확인하며, 부가정보 포함 여부에 따른 제어신호를 발생하는 패킷헤더처리부와, 패킷헤더처리부에 제어에 의해 버퍼링된 페이로드 데이타에서 부가정보를 처리하는 부가정보처리부와, 패킷헤더처리부에 제어에 의해 버퍼링된 페이로드 데이타에서 PES 헤더를 처리하는 PES헤더처리부와, PES헤더처리부에 제어에 의해 버퍼링된 페이로드 데이터의 오디오 또는 비디오 데이터를 오디오 또는 비디오 이에스로 생성하여 각각 대응되는 복호기에 출력하는 데이터처리부로 구성된다.The demultiplexing apparatus of a digital broadcast receiver for processing packet data consisting of a packet header and a payload includes a buffer for buffering input packet data and a plurality of processing units connected in parallel to the buffer, and the processing units are buffered. The packet header of the packet data is checked to determine whether the additional information is included, and the packet header processing unit generates a control signal according to whether the additional information is included, and the packet header processing unit processes the additional information from the payload data buffered by the control. Audio or video data of the additional information processor, the PES header processor for processing the PES header from the payload data buffered by the control of the packet header processor, and the payload data buffered by the control of the PES header processor. It is composed of a data processing unit for generating the output to the corresponding decoder.

디지털방송수신기, 역다중화, 동기, 패킷 Digital Broadcast Receiver, Demultiplexing, Sync, Packet

Description

디지털 방송수신기의 역다중화장치 및 방법{DEVICE AND METHOD FOR DEMULTIPLEXING RECEIVED TRANSPORT STREAM IN DIGITAL BROADCASTING RECEIVER}DEVICE AND METHOD FOR DEMULTIPLEXING RECEIVED TRANSPORT STREAM IN DIGITAL BROADCASTING RECEIVER}

도 1은 디지털 방송송신기에서 송신신호를 다중화하는 개념을 설명하기 위한 도면1 is a view for explaining the concept of multiplexing a transmission signal in a digital broadcast transmitter;

도 2는 디지털 방송수신기에서 수신되는 신호를 역다중화하는 개념을 설명하기 위한 도면2 is a diagram illustrating a concept of demultiplexing a signal received by a digital broadcast receiver.

도 3은 종래의 디지털 방송수신기에서 역다중화기의 구성을 도시하는 도면3 is a diagram illustrating a configuration of a demultiplexer in a conventional digital broadcast receiver.

도 4는 도 3과 같은 역다중화기에서 동기신호를 검출하는 절차를 설명하는 흐름도4 is a flowchart illustrating a procedure of detecting a synchronization signal in the demultiplexer as shown in FIG.

도 5는 디지털 방송수신기의 구성을 도시하는 도면5 is a diagram illustrating a configuration of a digital broadcast receiver.

도 6은 도 5에서 멀티미디어처리부의 구성을 도시하는 도면6 is a diagram illustrating a configuration of a multimedia processing unit in FIG. 5.

도 7은 디지털 방송수신기의 멀티미디어처리부에서 본 발명의 실시예에 따른 역다중화기의 구성을 도시하는 도면7 is a diagram illustrating a configuration of a demultiplexer according to an embodiment of the present invention in a multimedia processing unit of a digital broadcast receiver.

도 8a - 도 8c는 수신되는 패킷의 구성을 도시하는 도면8A to 8C are diagrams showing the configuration of a received packet.

도 9a - 도 9c는 수신되는 패킷에 포함된 부가정보의 구성을 도시하는 도면9A to 9C are diagrams showing the configuration of additional information included in a received packet.

도 10a - 도 10d는 수신되는 패킷에 포함된 PES 정보의 구성을 도시하는 도면10A to 10D are diagrams showing the configuration of PES information included in a received packet.

도 11은 도 7에서 본 발명의 실시예에 따른 동기검색부의 구성을 도시하는 도면FIG. 11 is a diagram showing the configuration of a synchronization searching unit according to the embodiment of the present invention in FIG.

도 12는 도 11의 동기검색부에서 동기신호를 검색하는 절차를 도시하는 흐름도FIG. 12 is a flowchart illustrating a procedure of searching for a synchronization signal in the synchronization search unit of FIG.

도 13a - 도 13c는 도 7에서 본 발명의 실시예에 따른 입력버퍼의 구성을 도시하는 도면13A to 13C are views illustrating a configuration of an input buffer according to an embodiment of the present invention in FIG.

도 14a - 도 14b는 본 발명의 실시예에 따라 도 7의 패킷헤더처리부에서 패킷헤더를 처리하는 절차를 도시하는 흐름도14A and 14B are flowcharts illustrating a procedure of processing a packet header in the packet header processing unit of FIG. 7 according to an embodiment of the present invention.

도 15는 본 발명의 실시예에 따라 도 7의 부가정보처리부에서 부가정보를 처리하는 절차를 도시하는 흐름도15 is a flowchart illustrating a procedure of processing additional information in the additional information processing unit of FIG. 7 according to an embodiment of the present invention.

도 16은 본 발명의 실시예에 따라 도 7의 PES헤더처리부에서 PES헤더정보를 처리하는 절차를 도시하는 흐름도 16 is a flowchart illustrating a procedure of processing PES header information in the PES header processing unit of FIG. 7 according to an embodiment of the present invention.

도 17은 본 발명의 실시예에 따라 아이피 기반의 방송데이타를 수신하는 방송수신기의 구성을 도시하는 도면17 is a diagram illustrating a configuration of a broadcast receiver for receiving IP-based broadcast data according to an embodiment of the present invention.

도 18은 본 발명의 실시예에 따라 아이피 기반의 방송 패킷 데이터 스트림을 처리하는 멀티미디어 처리부의 구성을 도시하는 도면18 is a diagram illustrating a configuration of a multimedia processing unit which processes an IP-based broadcast packet data stream according to an embodiment of the present invention.

본 발명은 휴대단말기의 부가서비스 장치 및 방법에 관한 것으로, 특히 디지털 방송신호를 수신하여 처리할 수 있는 장치 및 방법에 관한 것이다.The present invention relates to an additional service apparatus and method of a mobile terminal, and more particularly, to an apparatus and method capable of receiving and processing a digital broadcast signal.

현재 디지털 방송에 대한 표준이 전세계적으로 활발하게 진행되고 있다. 디지털 방송의 경우 미국의 DMB(digital multimedial broadcasting) 방식과 유럽의 DVB(digital video broadcasting) 방식이 있다. 상기와 같은 디지털 방송수신기를 구비하는 휴대단말기는 디지털 방송 수신을 위한 튜너(tuner), 복조기(demoulator) 및 멀티미디어처리부 등을 구비한다. Currently, standards for digital broadcasting are actively in progress worldwide. In the case of digital broadcasting, there are digital multimedia broadcasting (DMB) in the United States and digital video broadcasting (DVB) in Europe. The portable terminal including the digital broadcast receiver includes a tuner, a demodulator, a multimedia processing unit, and the like for digital broadcast reception.

도 1은 상기 디지털 방송신기에서 TS신호를 다중화하는 동작을 설명하기 위한 도면이다.FIG. 1 is a diagram for explaining an operation of multiplexing a TS signal in the digital broadcasting receiver.

상기 도 3을 참조하면, 송신기의 비디오부호기111은 비디오 데이터를 부호화하여 비디오 ES(elementary stream)를 생성한다. 여기서 상기 비디오 ES는 MPEG-2, MPEG4 또는 H.264비디오 데이터가 될 수 있다. 또한 오디오부호기121은 오디오 데이터를 부호화하여 오디오 ES를 생성한다. 상기 오디오 ES는 MPEG1(mp1, mp2, mp3), AAC 또는 BSAC 오디오 데이터들이 될 수 있다.Referring to FIG. 3, the video encoder 111 of the transmitter generates video elementary stream (ES) by encoding video data. The video ES may be MPEG-2, MPEG4 or H.264 video data. The audio encoder 121 encodes audio data to generate an audio ES. The audio ES may be MPEG1 (mp1, mp2, mp3), AAC or BSAC audio data.

상기 비디오, 오디오 및 데이터를 다중화하기 위해서는 패킷화하는 과정이 필요하다. 따라서 비디오패킷조립부113은 상기 비디오 ES신호에 시간정보 및 부가정보, 그리고 패킷헤더를 추가하여 패킷화한 비디오 PES를 출력한다. 그리고 오디오패킷조립부313도 상기 오디오 ES에 상기와 같은 정보들을 추가하여 오디오 패킷으로 조립하여 오디오 PES신호를 출력한다. 또한 도시하지 않은 데이터패킷조립기도 이와 유사한 동작을 수행한다.In order to multiplex the video, audio and data, a packetization process is required. Accordingly, the video packet assembly unit 113 outputs the packetized video PES by adding time information, additional information, and a packet header to the video ES signal. The audio packet assembly unit 313 also adds the above information to the audio ES, assembles them into audio packets, and outputs an audio PES signal. In addition, a data packet assembly (not shown) performs a similar operation.

그러면 상기 다중화기130은 상기 비디오, 오디오 및 데이터 PES신호를 다중화하여 TS신호로 출력한다. 상기 다중화기130은 다수의 입력을 하나의 출력으로 다중화하는 기능을 수행하게 되며, 이때 입력은 상기한 바와 같이 비디오, 오디오 및 프로그램 및 서비스 관련 등에 대한 방송정보 데이터 패킷들이 될 수 있다.The multiplexer 130 multiplexes the video, audio, and data PES signals and outputs the TS signals. The multiplexer 130 performs a function of multiplexing a plurality of inputs into a single output. In this case, the inputs may be broadcast information data packets for video, audio, and program and service related information.

상기 도 1의 구성에서 패킷조립부113,123 및 다중화기130은 TS다중화부가 될 수 있다.In the configuration of FIG. 1, the packet assembly units 113 and 123 and the multiplexer 130 may be TS multiplexers.

상기와 같이 다중화된 TS신호를 수신하는 디지털 방송수신기의 역다중화부140은 도 2와 같은 구조를 가질 수 있다.The demultiplexer 140 of the digital broadcast receiver for receiving the multiplexed TS signal as described above may have a structure as shown in FIG. 2.

상기 도 2를 참조하면, 상기 TS신호를 수신하는 역다중화부140은 상기 TS신호의 헤더 정보를 분석하여 비디오, 오디오 및 데이터를 각각 분리하여 각각 대응되는 PES신호를 출력한다. 그러면 비디오패킷분해부151은 상기 역다중화부340에 분리되는 비디오 PES를 수신하게 되며, 수신되는 비디오 PES신호의 헤더를 분석하여 비디오 ES신호를 생성한 후 비디오부호기253에 출력한다. 또한 오디오패킷분해부161 및 오디오복호기163도 동일한 동작을 수행하게 된다. 이하의 설명에서는 상기 역다중화기는 상기 역다중화부140 및 패킷분해부151,161들을 포함하는 것으로 설명될 것이다.Referring to FIG. 2, the demultiplexer 140 receiving the TS signal analyzes header information of the TS signal, separates video, audio, and data, and outputs corresponding PES signals. Then, the video packet decomposition unit 151 receives the video PES separated by the demultiplexer 340, analyzes the header of the received video PES signal, generates a video ES signal, and outputs the video ES signal to the video encoder 253. In addition, the audio packet decomposition unit 161 and the audio decoder 163 perform the same operation. In the following description, the demultiplexer will be described as including the demultiplexer 140 and the packet breakers 151 and 161.

따라서 상기 디지털 방송수신기의 역다중화부는 상기 디지털 방송송신기의 다중화부의 역동작을 수행함을 알 수 있다. 도 3은 상기 역다중화부의 구성을 도시하는 도면이다.Accordingly, it can be seen that the demultiplexer of the digital broadcast receiver performs the reverse operation of the multiplexer of the digital broadcast transmitter. 3 is a diagram illustrating a configuration of the demultiplexer.

상기 도 3을 참조하면, 동기검색부211은 수신되는 TS신호의 패킷헤더의 동기 바이트를 검출하며, 상기 동기바이트 검출시 수신되는 TS신호를 입력버퍼221에 저장한다. 그러면 상기 입력버퍼421은 패킷크기의 데이터를 버퍼링하며, 패킷헤더처리부213은 상기 버퍼221에서 패킷헤더를 추출하여 처리하며, 상기 패킷헤더를 제외한 나머지 데이터를 버퍼223에 출력한다. 부가정보처리부215는 상기 버퍼223에서 부가정보를 추출하여 처리하며, 상기 부가정보를 제외한 나머지 데이터 를 버퍼225에 출력한다. PES헤더처리부217은 상기 버퍼225에서 PES헤더정보를 추출하여 처리하며, 상기 PES헤더를 제외한 나머지 정보를 버퍼227에 출력한다. 데이터처리부219는 상기 버퍼227에서 데이터들을 추출하여 비디오ES 또는 오디오 ES로 출력한다.Referring to FIG. 3, the sync search unit 211 detects sync bytes of the packet header of the received TS signal, and stores the received TS signal in the input buffer 221 when the sync byte is detected. Then, the input buffer 421 buffers the data of the packet size, and the packet header processing unit 213 extracts and processes the packet header from the buffer 221 and outputs the remaining data except for the packet header to the buffer 223. The additional information processor 215 extracts and processes additional information from the buffer 223, and outputs remaining data except for the additional information to the buffer 225. The PES header processing unit 217 extracts and processes PES header information from the buffer 225, and outputs remaining information except for the PES header to the buffer 227. The data processor 219 extracts data from the buffer 227 and outputs the data to the video ES or the audio ES.

상기 도 3과 같은 구성을 가지는 종래의 역다중화부140은 직렬 데이터 처리구조를 가진다. 즉, 동기검색부211에서 바이트 동기신호를 검출하면, 버퍼421에 이후의 데이터를 패킷크기로 입력버퍼421에 버퍼링시키며, 상기 패킷헤더처리부213은 상기 버퍼421에 1패킷의 데이터가 버퍼링된 후 구동되어 패킷헤더를 분석하게 된다. 상기한 바와 같이 종래의 역다중화부는 각 처리부 전단에 버퍼221-223을 구비하고, 전단에서 처리된 패킷 데이터를 수신하여 패킷을 처리하는 방법을 사용하게 된다. 따라서 직렬 구조의 역다중화 동작을 수행하게 되므로써, 입력되는 TS신호를 다중화할 때 지연이 발생된다.The conventional demultiplexer 140 having the configuration as shown in FIG. 3 has a serial data processing structure. That is, when the sync search unit 211 detects the byte sync signal, the buffer 421 buffers subsequent data in the packet size in the input buffer 421, and the packet header processor 213 drives after one packet of data is buffered in the buffer 421. The packet header is analyzed. As described above, the conventional demultiplexer includes buffers 221-223 at the front end of each processing unit, and uses a method of processing the packet by receiving the packet data processed at the front end. Therefore, since the demultiplexing operation of the serial structure is performed, a delay occurs when multiplexing the input TS signal.

또한 상기와 같은 직렬구조의 역다중화 구조는 불필요한 데이터 처리 동작을 수행할 수 있다. 이때 상기 입력되는 TS 신호를 구성하는 패킷들은 부가정보 및(또는) PES정보를 를 포함하지 않을 수 있다. 즉, 수신되는 TS신호를 구성하는 대부분의 패킷들은 순수 데이터들로 구성되는 패킷이 될 수 있다. 이런 경우 순수 데이터 들만으로 구성된 패킷임에도 불구하고 부가정보처리부215 및(또는) PES헤더 처리부217을 경유하게 되며, 이런 경우 불필요한 처리 동작을 수행하게 되어 시스템 부하의 증가 및 처리 속도의 저하를 가져오게 할 수 있다. 즉, 입력되는 패킷 데이터들을 살펴보면, 실제 데이터 패킷(Audio / Video Data (ES))이 PES 헤더 패킷(PES Header Packet)에 훨씬 많으며, 따라서 PES헤더처리부에서의 대부분의 처리는 데이터 처리부로의 전달 및 ES추출만의 작업이 이뤄진다. In addition, the demultiplex structure of the serial structure may perform unnecessary data processing operations. In this case, the packets constituting the input TS signal may not include additional information and / or PES information. That is, most packets constituting the received TS signal may be packets composed of pure data. In this case, although the packet is composed of pure data only, it passes through the additional information processing unit 215 and / or the PES header processing unit 217. In this case, unnecessary processing may be performed, resulting in an increase in system load and a decrease in processing speed. have. That is, when the packet data is input, the actual data packet (Audio / Video Data (ES)) is much more than the PES header packet (PES Header Packet), so most of the processing in the PES header processing unit is transferred to the data processing unit and Only ES extraction is done.

또한 상기 도 3과 같은 상기 역다중부210의 구조는 각 처리부들의 전단 및(또는) 후단에 버퍼223 - 227 들을 구비하는 구조를 가진다. 이때 상기 버퍼221-227은 패킷 크기 이상의 용량을 가지는 버퍼들이며, 따라서 버퍼 메모리가 커지게 된다. In addition, the structure of the demultiplexer 210 as shown in FIG. 3 has a structure including buffers 223 to 227 at the front and / or rear ends of the processing units. In this case, the buffers 221 to 227 are buffers having a capacity larger than the packet size, and thus the buffer memory becomes large.

도 4는 역다중화부에서 입력되는 TS신호(패킷스트림)의 동기를 검색하는 절차를 도시하는 흐름도이다.4 is a flowchart illustrating a procedure for searching for synchronization of a TS signal (packet stream) input from the demultiplexer.

상기 도 4를 참조하면, 상기 동기검색부211은 입력되는 TS신호의 각 바이트들을 검사하며, 상기 입력되는 바이트가 동기바이트(sync byte, "0X47")이면 261단계에서 이를 감지하고 267단계에서 이를 첫 바이트 재정렬하여 버퍼221에 전송하고 그렇지 않은 경우에는 263단계에서 각각 한바이트씩 상기 버퍼221의 정해진 바이트버퍼에 전송한다. 상기와 같이 입력되는 바이트 데이터를 전송한 후, 265단계에서는 상기 버퍼221의 다음 바이트 버퍼에 연결하여 그 다음 바이트가 입력되면 현재 버퍼의 다음 바이트 위치에 전달될 수 있도록 한다. 상기와 같은 동작은 종료시점까지 이를 반복 수행한다.Referring to FIG. 4, the sync search unit 211 checks each byte of an input TS signal. If the input byte is a sync byte (“0X47”), the sync search unit 211 detects it in step 261, and in step 267. The first byte is rearranged and transmitted to the buffer 221. If not, the byte is transferred to the predetermined byte buffer of the buffer 221 at step 263. After transmitting the input byte data as described above, in step 265, the next byte of the buffer 221 is connected, and when the next byte is input, it is transmitted to the next byte position of the current buffer. The above operation is repeated until the end point.

상기한 바와 같이 종래의 패킷 동기는 입력되는 바이트 데이터를 검색하여 동기바이트이면 상기 버퍼221의 버퍼 위치를 재정렬하는 동작을 반복하는 동작을 수행한다. 따라서 종래의 동기 검출 방법은 도 3과 같은 직렬구조의 역다중화부140에서 동기검색부211이 TS 신호의 매 패킷들에 대하여 동기신호를 검출하여야 한다. 즉, 동기검색부211은 TS신호의 매 패킷마다 동기신호를 검출하여야 한다. 즉, 동기검색부211은 패킷데이타의 동기신호를 검출하며, 상기 동기신호를 검출한 후 패킷데이타의 시작임을 감지하고 나머지 패킷데이타를 버퍼221에 인가한다. 그러나 일반적으로 TS신호는 패킷 스트림(packet stream)으로써, 일단 패킷데이타의 동기신호가 검출되면 연속되는 패킷데이타의 동기신호 위치를 알 수 있게 된다. 따라서 매 패킷마다 동기신호를 검출하지 않고도 패킷 데이터의 동기를 이룰 수 있음에도 불구하고 종래의 역다중화부140은 매 패킷마다 동기신호를 검출하는 동작을 반복 수행하게 된다.As described above, the conventional packet synchronization searches for input byte data and repeats the operation of rearranging the buffer position of the buffer 221 when the synchronization byte is a synchronization byte. Therefore, in the conventional synchronization detection method, the synchronization search unit 211 should detect the synchronization signal for every packet of the TS signal in the demultiplexer 140 having the serial structure as shown in FIG. That is, the synchronization searching unit 211 should detect the synchronization signal for every packet of the TS signal. That is, the synchronization searching unit 211 detects the synchronization signal of the packet data, and after detecting the synchronization signal, detects the beginning of the packet data and applies the remaining packet data to the buffer 221. However, in general, the TS signal is a packet stream, and once the synchronization signal of the packet data is detected, the position of the synchronization signal of the continuous packet data can be known. Therefore, although the packet data can be synchronized without detecting the synchronization signal for every packet, the conventional demultiplexer 140 repeatedly performs the operation of detecting the synchronization signal for every packet.

따라서 본 발명의 목적은 디지털 방송 수신기에서 수신되는 데이터를 병렬 구조로 역다중화하여 각 디코더들에 분배할 수 있는 장치 및 방법을 제공함에 있다. Accordingly, an object of the present invention is to provide an apparatus and method for demultiplexing data received at a digital broadcast receiver into parallel structures and distributing the data to respective decoders.

본 발명의 다른 목적은 디지털 방송수신기에서 수신되는 데이터를 패킷크기로 버퍼링하며, 상기 버퍼링된 패킷데이타의 헤더를 분석한 후, 헤더정보에 따라 해당하는 처리부가 동작되어 상기 패킷데이타를 처리하여 역다중화할 수 있는 장치 및 방법을 제공함에 있다.Another object of the present invention is to buffer the data received from the digital broadcast receiver to a packet size, and after analyzing the header of the buffered packet data, a corresponding processing unit is operated according to the header information to process the packet data to demultiplex. It is to provide an apparatus and method that can be.

본 발명의 또 다른 목적은 디지털 방송수신기에서 수신되는 데이터를 패킷 크기로 버퍼링하며, 상기 버퍼링된 패킷데이타의 헤더정보에서 부가정보 포함 여부를 분석한 후 부가정보가 없는 경우 PES헤더처리부만 구동하여 수신된 데이터를 역다중화할 수 있는 장치 및 방법을 제공함에 있다.Another object of the present invention is to buffer the data received from the digital broadcast receiver to a packet size, and after analyzing whether the additional information is included in the header information of the buffered packet data, if there is no additional information, only the PES header processing unit receives it. Disclosed are an apparatus and a method capable of demultiplexing the generated data.

본 발명의 또 다른 목적은 디지털 방송수신기에서 수신되는 데이터를 패킷크기로 버퍼링하며, 상기 버퍼링된 패킷데이타에서 부가정보 포함여부를 분석한 후 부가정보가 포함되어있으면 부가정보처리부 구동되어 부가정보를 처리할 수 있는 장치 및 방법을 제공함에 있다.Another object of the present invention is to buffer the data received from the digital broadcast receiver to a packet size, and analyzes whether the additional information is included in the buffered packet data, and if the additional information is included, the additional information processor is driven to process the additional information. It is to provide an apparatus and method that can be.

본 발명의 또 다른 목적은 디지털 방송수신기에서 수신되는 직렬 데이터를 버퍼링하며, 패킷크기로 버퍼링되면 상기 버퍼링된 패킷데이타를 병렬 출력하여 처리부로 전달할 수 있는 장치 및 방법을 제공함에 있다.It is still another object of the present invention to provide an apparatus and method for buffering serial data received from a digital broadcast receiver and outputting the buffered packet data in parallel when the buffered packet size is transmitted to a processor.

본 발명의 또 다른 목적은 디지털 방송수신기에서 수신되는 패킷데이타의 동기신호를 확인하며, 비동기 상태이면 동기 위치를 확인한 후 차감값을 추출하여 상기 입력되는 데이터를 지연시키므로써 패킷 데이터의 동기를 맞출 수 있는 장치 및 방법을 제공함에 있다.Still another object of the present invention is to check the synchronization signal of the packet data received from the digital broadcast receiver, and if the asynchronous state, the synchronization of the packet data by delaying the input data by extracting the subtraction value after checking the synchronization position. The present invention provides an apparatus and method.

상기 목적을 달성하기 위한 본 발명의 실시예에 따른 패킷헤더 및 페이로드로 구성되는 패킷데이타를 처리하는 디지털 방송수신기의 역다중화 장치가, 입력되는 패킷 데이터를 버퍼링하는 버퍼와, 상기 버퍼에 병렬 연결되는 복수의 처리부들로 구성되며, 상기 처리부들은, 상기 버퍼링된 패킷데이타의 패킷헤더를 검사하여 부가정보 포함 여부를 확인하며, 상기 부가정보 포함 여부에 따른 제어신호를 발생하는 패킷헤더처리부와, 상기 패킷헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이타에서 부가정보를 처리하는 부가정보처리부와, 상기 패킷헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이타에서 PES 헤더를 처리하는 PES헤더처리부와, 상기 PES헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이터의 오디오 또는 비디오 데이터를 오디오 또는 비디오 이에스로 생성하여 각각 대응되는 복호기에 출력하는 데이터처리부로 구성된 것을 특징으로 한다.In order to achieve the above object, a demultiplexing apparatus of a digital broadcast receiver for processing packet data including a packet header and a payload according to an embodiment of the present invention includes a buffer for buffering input packet data, and a parallel connection to the buffer. And a plurality of processing units, wherein the processing units are configured to inspect a packet header of the buffered packet data to determine whether additional information is included and generate a control signal according to whether the additional information is included; An additional information processing unit for processing additional information from the buffered payload data under control of a packet header processing unit, a PES header processing unit for processing a PES header from the buffered payload data under control of the packet header processing unit; Audio or video data of the buffered payload data is controlled by a PES header processor. Generate the emitter to the audio or video to yieseu characterized by consisting of a data processing unit for outputting to the decoder corresponding to each.

그리고 상기 패킷헤더처리부는 상기 패킷헤더의 부가정보제어 파라미터를 분석하여 상기 페이로드 데이터가 부가정보를 포함하는지 판단하며, 상기 부가정보 포함시 상기 부가정보처리부가 상기 부가정보를 처리하도록 제어하며, 상기 부가정보가 포함되지 않았으면 상기 PES헤더처리부의 동작을 제어하는 것을 특징으로 한다.The packet header processing unit analyzes the additional information control parameter of the packet header to determine whether the payload data includes additional information, and controls the additional information processing unit to process the additional information when the additional information is included. If the additional information is not included, the operation of the PES header processing unit may be controlled.

그리고 상기 부가정보처리부는 상기 버퍼에서 버퍼링된 부가정보필드를 분석하여 부가정보의 길이를 분석하며, 상기 페이로드 데이터가 부가정보만으로 이루어진 경우 상기 부가정보를 처리하여 제어부에 전달하고, 상기 페이로드가 데이터가 다른 데이터를 포함하는 경우 상기 PES헤더처리부에 상기 버퍼에 버퍼링된 부가정보 외의 데이터 위치를 전달하며, 상기 부가정보를 처리하여 상기 제어부에 전달하는 것을 특징으로 한다.The additional information processor analyzes the length of the additional information by analyzing the additional information field buffered in the buffer. When the payload data includes only the additional information, the additional information processor processes the additional information and transmits the additional information to the controller. If the data includes other data, the data location other than the additional information buffered in the buffer is transmitted to the PES header processing unit, and the additional information is processed and transmitted to the controller.

그리고 상기 PES헤더처리부는 상기 버퍼에서 버퍼링된 페이로드에 PES헤더 포함 여부를 검사하며, PES헤더 포함시 PES헤더의 길이를 확인하여 처리한 후 제어 부에 전달하고, 상기 버퍼에 버퍼링된 PES 헤더 이외의 데이터 위치를 데이터처리부에 전달하는 것을 특징으로 한다.The PES header processor checks whether the payload buffered in the buffer includes the PES header, checks the length of the PES header when the PES header is included, processes the PES header, and transfers it to the control unit. It is characterized by passing the data position of the data processing unit.

그리고 상기 패킷헤더처리부는 패킷헤더의 PID를 분석하여 상기 버퍼링된 패킷의 식별하는 PID를 상기 데이터 처리부에 전달하며, 상기 데이터 처리부는 상기 버퍼에서 버퍼링된 오디오 또는 비디오 데이터를 오디오 또는 비디오 이에스 데이터로 생성하여 각각 대응되는 복호기에 전달하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.The packet header processor analyzes a PID of a packet header and transmits a PID for identifying the buffered packet to the data processor, and the data processor generates audio or video data buffered in the buffer as audio or video data. Demultiplexer of the digital broadcast receiver, characterized in that for transmitting to each corresponding decoder.

또한 상기 버퍼는 패킷데이타 크기를 가지는 제1 및 제2버퍼와, 상기 입력되는 패킷데이타를 제1버퍼에 저장하는 동안 상기 제2버퍼에 저장된 패킷데이타를 출력하고, 상기 입력되는 패킷데이타를 제2버퍼에 저장하는 동안 상기 제1버퍼에 저장된 패킷데이타를 출력하도록 제어하는 어드레스발생부로 구성된 것을 특징으로 한다. 그리고 또한 상기 버퍼는 상기 데이터 크기의 듀얼포트 메모리와, 상기 입력되는 패킷 데이터를 상기 메모리에 저장하는 제1어드레스발생부와, 상기 메모리에 저장된 패킷데이타를 출력하는 제2어드레스발생부로 구성된 것을 특징으로 한다.The buffer outputs first and second buffers having a packet data size, packet data stored in the second buffer while storing the input packet data in the first buffer, and stores the input packet data in a second buffer. And an address generator for controlling to output the packet data stored in the first buffer while storing in the buffer. The buffer may further include a dual port memory having the data size, a first address generator configured to store the input packet data in the memory, and a second address generator configured to output the packet data stored in the memory. do.

또한 상기 버퍼에 버퍼링된 패킷데이타에서 동기바이트의 버퍼링 위치를 검사하고, 상기 버퍼의 동기바이트 버퍼링 위치에서 벗어난 위치를 검사하여 차감값을 검출한 후, 상기 차감값에 따라 상기 패킷데이타의 바이트 데이터를 지연시켜 패킷 동기를 맞추는 동기검색부를 더 구비한다. 그리고 상기 동기검색부는 상기 버퍼에 저장되는 바이트 데이터가 동기바이트인가 검사하는 동기확인부와, 상기 동기확인부에서 동기바이트 검출시 상기 버퍼에 저장되는 동기바이트의 버퍼링 위치를 확인한 후, 상기 버퍼에서 설정된 동기바이트 버퍼링 위치에서 상기 저장된 동기바이트 바이트의 버퍼링 위치 까지의 차감값을 계산하는 차감값추출부와, 상기 계산된 차감값에 따라 상기 입력되는 패킷데이타를 지연하여 상기 버퍼에 버퍼링하는 지연부로 구성된 것을 특징으로 하며, 상기 버퍼에 설정된 동기바이트의 버퍼링 위치는 상기 버퍼의 첫 번째 바이트 버퍼링 위치임을 특징으로 한다.In addition, by checking the buffering position of the sync byte in the packet data buffered in the buffer, and detecting a subtraction value by examining a position out of the sync byte buffering position of the buffer, the byte data of the packet data is stored according to the subtraction value. A synchronization search unit for delaying packet synchronization is further provided. The sync search unit checks whether the byte data stored in the buffer is a sync byte, and checks the buffering position of the sync byte stored in the buffer when the sync check unit detects the sync byte. And a delay value extracting unit for calculating a subtraction value from the sync byte buffering position to the buffering position of the stored sync byte byte, and a delay unit for delaying the input packet data according to the calculated subtraction value and buffering the buffer data in the buffer. The buffering position of the sync byte set in the buffer may be a first byte buffering position of the buffer.

또한 상기 목적을 달성하기 위한 본 발명의 실시예에 따른 디지털 방송수신기를 구비하는 휴대단말기의 방송데이타 수신장치가, 설정된 방송채널의 신호를 수신하여 복조하여 패킷데이타 스트림을 출력하는 방송수신기와, 상기 패킷데이타스트림을 분석하여 복호된 비디오 및 오디오데이타를 발생하는 멀티미디어처리부와, 상기 복호된 비디오 데이터를 표시하는 표시부와, 상기 복호된 오디오 데이터를 재생하는 스피커로 구성되며, 상기 멀티미디어처리부가, 상기 패킷데이타 스트림을 버퍼링하는 버퍼와, 상기 버퍼에 병렬연결되는 처리부들로 구성되고, 상기 처리부들이 상기 버퍼링된 패킷데이타를 상기 각 처리부들이 병렬 처리하여 역다중화하는 역다중화기와, 상기 역다중화된 비디오 이에스 데이터를 복호하는 비디오복호기와, 상기 역다중화된 오디오 이에스 데이터를 복호하는 오디오복호기로 구성된 것을 특징으로 한다.In addition, the broadcast data receiving apparatus of the mobile terminal having a digital broadcast receiver according to an embodiment of the present invention for achieving the above object, a broadcast receiver for receiving and demodulating the signal of the set broadcast channel to output a packet data stream, And a multimedia processor for analyzing the packet data stream to generate decoded video and audio data, a display unit for displaying the decoded video data, and a speaker for reproducing the decoded audio data. A demultiplexer configured to buffer a data stream, and processing units connected in parallel to the buffer, wherein the processing units demultiplex the buffered packet data by parallel processing of the buffered packet data, and the demultiplexed video erase data. A video decoder that decodes the demultiplexer And an audio decoder for decoding the normalized audio data.

또한 상기 방송수신기가 설정된 주파수의 방송채널의 신호를 수신하여 복조하고, 상기 복조된 패킷스트림의 피아이디를 검사하여 설정된 방송채널의 패킷데이타를 필터링하여 아이피 데이터그램을 발생하며, 상기 멀티미디어처리부가, 상기 아이피 데이터그램의 IP정보를 디캡슐레이팅하여 상기 역다중화기에 출력하는 아이 피디캡슐레이터를 더 구비하는 것을 특징으로 한다.In addition, the broadcast receiver receives and demodulates a signal of a broadcast channel of a set frequency, examines the ID of the demodulated packet stream, filters packet data of the set broadcast channel, and generates an IP datagram. And an IP decapsulator which decapsulates IP information of the IP datagram and outputs the demultiplexer to the demultiplexer.

또한 상기 목적을 달성하기 위한 본 발명의 실시예에 따른 디지털 방송수신기에서 패킷헤더 및 페이로드로 구성된 패킷데이타를 역다중화하는 방법이, 입력되는 패킷 데이터를 버퍼링하는 과정과, 상기 버퍼링된 패킷헤더를 검사하여 상기 페이로드가 부가정보인가 확인하는 과정과, 상기 페이로드가 부가정보이면 상기 결정된 버퍼링된 부가정보를 처리하는 과정과, 상기 페이로드가 부가정보가 아니면 상기 페이로드를 검사하여 페이로드에 PES헤더의 포함 여부를 검사하며, 상기 PES헤더가 포함되었으면 상기 페이로드에 포함된 PES헤더의 크기를 검사하여 오디오/비디오데이타의 포함 여부를 확인하고, 상기 오디오/비디오 데이타 포함시 상기 오디오/비디오 데이타의 버퍼링 위치를 결정한 후 상기 PES헤더를 처리하는 과정과, 상기 PES헤더 처리한 후 또는 상기 페이로드에 PES헤더가 포함되지 않은 패킷데이타이면 상기 페이로드의 비디오/오디오데이타를 처리하여 비디오/오디오 이에스데이타를 생성한 후 각각 대응되는 복호기에 전달하는 과정으로 이루어짐을 특징으로 한다. In addition, a method for demultiplexing packet data consisting of a packet header and a payload in a digital broadcast receiver according to an embodiment of the present invention for achieving the above object, the process of buffering the input packet data, and the buffered packet header Checking whether the payload is additional information; if the payload is additional information; processing the determined buffered additional information; and if the payload is not additional information, inspecting the payload to payload. Check whether the PES header is included, and if the PES header is included, check the size of the PES header included in the payload to determine whether the audio / video data is included, and when the audio / video data is included, the audio / video Processing the PES header after determining a buffering position of data, and after processing the PES header Alternatively, if the payload does not include the PES header, the packet data is processed by generating video / audio data by processing the video / audio data of the payload and transmitting the same to the corresponding decoder.

그리고 상기 버퍼링된 패킷데이타에서 동기바이트의 버퍼링 위치를 검사하고, 상기 동기바이트 버퍼링 위치에서 벗어난 위치를 검사하여 차감값을 검출한 후, 상기 차감값에 따라 상기 패킷데이타의 바이트 데이터를 지연시켜 패킷 동기를 맞추는 동기검색과정을 더 구비하는 것을 특징으로 한다. 그리고 상기 동기검색 과정은 상기 버퍼에 저장되는 바이트 데이터가 동기바이트인가 검사하는 과정과, 상기 동기바이트 검출시 상기 버퍼에 저장되는 동기바이트의 버퍼링 위치를 확인한 후, 상기 버퍼에서 설정된 동기바이트 버퍼링 위치에서 상기 저장된 동기바이트 바이트의 버퍼링 위치 까지의 차감값을 계산하는 과정과, 상기 계산된 차감값에 따라 상기 입력되는 패킷데이타를 지연하여 버퍼링하는 과정으로 이루어짐을 특징으로 하며, 상기 버퍼에 설정된 동기바이트의 버퍼링 위치는 첫 번째 패키데이타를 버퍼링하는 버퍼의 첫 번째 바이트 위치임을 특징으로 한다.After checking the buffering position of the sync byte in the buffered packet data, detecting the offset value by examining the position out of the sync byte buffering position, and delaying the byte data of the packet data according to the subtraction value to synchronize the packet. It characterized in that it further comprises a synchronous search process to match. The sync search process includes checking whether the byte data stored in the buffer is a sync byte, checking a buffering position of the sync byte stored in the buffer when detecting the sync byte, and then checking the sync byte buffering position set in the buffer. Calculating a subtraction value to the buffering position of the stored sync byte byte, and delaying and buffering the input packet data according to the calculated subtraction value. The buffering position is characterized by being the first byte position of the buffer buffering the first package data.

또한 상기 패킷헤더를 처리하는 과정은 상기 패킷헤더의 PID를 분석하여 목표 PID인가 검사하며, 목표 PID인 경우에만 입력되는 패킷의 종류 식별 정보를 저장하는 과정과, 상기 패킷헤더의 부가정보제어 파라미터를 분석하여 상기 버퍼링된 패킷이 부가정보를 포함하면 상기 부가정보처리 과정의 동작을 명령하고 상기 부가정보처리과정에서 처리할 상기 부가정보의 버퍼링 위치 정보를 함께 전달하는 과정과, 상기 버퍼링된 패킷이 부가정보를 포함하지 않으면 상기 PES헤더처리 과정의 동작을 명령하고 상기 PES헤더처리 과정에서 처리할 PES헤더의 버퍼링 위치정보를 함께 전달하는 것을 특징으로 한다.The process of processing the packet header may include analyzing the PID of the packet header to check whether the target PID is a target PID, storing type identification information of a packet input only when the target header is a target PID, and additional information control parameters of the packet header. Analyzing and if the buffered packet includes additional information, instructing an operation of the additional information processing process and transferring buffering position information of the additional information to be processed in the additional information processing process; and adding the buffered packet If the information is not included, the operation of the PES header processing process is instructed, and the buffering position information of the PES header to be processed in the PES header processing process is characterized in that it is transmitted together.

또한 상기 부가정보처리 과정은 구동명령 수신시 상기 버퍼에서 버퍼링된 부가정보를 억세스하여 부가정보의 길이를 분석하는 과정과, 상기 분석과정에서 상기 패킷이 부가정보만으로 이루어진 경우 상기 부가정보를 처리하여 제어부에 전달하는 과정과, 상기 분석과정에서 상기 패킷이 PES헤더를 포함하는 경우 상기 PES헤더의 구동명령과 함께 상기 PES헤더의 버퍼링 위치정보를 함께 전달한 후 상기 부가정보를 처리하여 상기 제어부에 전달하는 과정으로 이루어짐을 특징으로 한다.The additional information processing step may include accessing the additional information buffered in the buffer and analyzing the length of the additional information upon receiving a driving command, and processing the additional information when the packet includes only the additional information. And transmitting the buffering position information of the PES header together with the driving command of the PES header when the packet includes the PES header in the analyzing process, and then transmitting the additional information to the controller. Characterized in that made.

또한 상기 PES헤더를 처리하는 과정은 상기 구동명령 수신시 상기 버퍼에서 버퍼링된 PES헤더를 억세스하여 PES헤더의 길이를 분석하는 과정과, 상기 분석과정에서 상기 버퍼링된 패킷이 PES헤더로만 이루어진 경우 상기 PES 헤더를 처리하여 제어부에 전달하는 과정과, 상기 분석과정에서 상기 버퍼링된 패킷이 실제데이타를 포함하는 경우 상기 데이터처리부의 구동명령과 함께 상기 실제데이타의 버퍼링 위치정보를 함께 전달한 후 상기 데이터처리 과정의 동작을 명령하고 상기 버퍼링된 실제데이타의 위치정보를 전달한 후 상기 PES헤더를 처리하여 상기 제어부에 전달하는 과정으로 이루어짐을 특징으로 한다.The processing of the PES header may include accessing the PES header buffered in the buffer to analyze the length of the PES header when the driving command is received, and in case the buffered packet consists of only the PES header in the analysis process. Processing the header and transmitting the header to the controller; and if the buffered packet includes the actual data in the analysis, the buffering position information of the actual data is transmitted together with the driving command of the data processor. It is characterized in that it comprises a step of processing the PES header after the command to the operation and transfer the location information of the buffered real data to the control unit.

또한 상기 데이터 처리과정은 상기 구동명령 수신시 상기 저장된 PID에 따라 패킷의 종류를 식별하는 과정과, 상기 상기 버퍼링된 실제 데이터를 억세스하며, 상기 식별된 PID에 따라 상기 실제 데이터를 비디오 또는 오디오 ES를 생성한 후, 각각 대응되는 복호기에 역다중화하는 과정으로 이루어짐을 특징으로 한다.The data processing may include identifying a type of a packet according to the stored PID when the driving command is received, accessing the buffered real data, and converting the real data into a video or audio ES according to the identified PID. After the generation, it is characterized by consisting of a process of demultiplexing each corresponding decoder.

또한 상기 목적을 달성하기 위한 본 발명의 실시예에 따른 디지털 방송수신기를 구비하는 휴대단말기의 방송데이타 처리 방법은 설정된 방송채널의 신호를 수신하여 복조하여 패킷데이타 스트림을 출력하는 방송데이타 수신과정과, 상기 패킷데이타스트림을 분석하여 복호된 비디오 및 오디오데이타를 발생하는 멀티미디어데이타 처리과정과, 상기 복호된 비디오 및 오디오 데이터를 재생하는 과정으로 이루어지며, 상기 멀티미디어 데이터를 처리하는 과정은 상기 패킷데이타 스트림을 버퍼링하며, 상기 버퍼링된 패킷데이타의 패킷헤더 및 페이로드를 검사하여 상기 패킷데이타를 병렬 처리하여 비디오 및 오디오 이에스데이타들로 역다중화하는 과정과, 상기 역다중화된 비디오 및 오디오 이에스 데이터를 각각 복호하는 과정으로 이루어짐을 특징으로 한다.In addition, the broadcast data processing method of a mobile terminal having a digital broadcast receiver according to an embodiment of the present invention for achieving the above object is a broadcast data receiving process of receiving and demodulating the signal of the set broadcast channel to output a packet data stream; The multimedia data processing process of generating the decoded video and audio data by analyzing the packet data stream, and the process of playing the decoded video and audio data, and the process of processing the multimedia data comprises the packet data stream Buffering and inspecting the packet header and payload of the buffered packet data to process the packet data in parallel to demultiplex the video and audio esdata, and to decode the demultiplexed video and audio es data respectively. It is a special process Gong.

그리고 상기 방송데이타 수신과정은 설정된 주파수의 방송채널의 신호를 수신하여 복조하고, 상기 복조된 패킷스트림의 피아이디를 검사하여 설정된 방송채널의 패킷데이타를 필터링하여 아이피 데이터그램을 발생하며, 상기 멀티미디어 데이터 처리과정은 상기 아이피 데이터그램의 아이피정보를 디캡슐레이팅하는 과정을 더 구비하며, 상기 아이피 디캡슐레이팅된 패킷 데이터 스트림을 역다중화함을 특징으로 한다.The broadcast data receiving process receives and demodulates a signal of a broadcast channel of a set frequency, examines the ID of the demodulated packet stream, filters packet data of a set broadcast channel, and generates an IP datagram. The process may further include decapsulating the IP information of the IP datagram, and demultiplexing the IP decapsulated packet data stream.

이하 본 발명의 바람직한 실시예들의 상세한 설명이 첨부된 도면들을 참조하여 설명될 것이다. 도면들 중 동일한 구성들은 가능한 한 어느 곳에서든지 동일한 부호들을 나타내고 있음을 유의하여야 한다.DETAILED DESCRIPTION A detailed description of preferred embodiments of the present invention will now be described with reference to the accompanying drawings. It should be noted that the same components in the figures represent the same numerals wherever possible.

하기 설명에서 디지털 방송수신기의 MPEG2-TS 데이터 구조 등과 같은 특정 상세들이 본 발명의 보다 전반적인 이해를 제공하기 위해 나타나 있다. 이들 특정 상세들 없이 또한 이들의 변형에 의해서도 본 발명이 용이하게 실시될 수 있다는 것은 이 기술분야에서 통상의 지식을 가진 자에게 자명할 것이다.In the following description, specific details such as the MPEG2-TS data structure of the digital broadcast receiver are shown to provide a more general understanding of the present invention. It will be apparent to one of ordinary skill in the art that the present invention may be readily practiced without these specific details and also by their modifications.

본 발명의 실시예는 디지털 방송 수신기에서 복호 동작을 수행하기 전에 디지털 방송 수신기에서 수신되는 패킷데이타들을 분석하여 각각 대응되는 복호기들에 분배하는 역다중화 장치 및 방법에 관한 것이다. 이때 상기 디지털 방송수신기에서 상기 역다중화장치는 실시간으로 데이터를 분석 및 분배하여야 하므로, 신속한 처리를 수행할 수 있어야 한다. 또한 역다중화 처리를 수행하는 중간 단계에서 버퍼 메모리를 최소화하는 것이 바람직하다. 본 발명의 실시예에서는 상기 역다중화장치의 각 처리부들을 병렬적으로 배열하므로써 처리시간을 단축하고 하드웨어로 칩 내부에 구성할 경우에 버퍼 사이즈를 줄여 실장면적을 최소화할 수 있다. 본 발명의 실시예에서는 입력되는 데이터를 패킷크기로 버퍼링하고, 각 처리부들이 상기 버퍼에 병렬적으로 연결되어 상기 버퍼링된 정보를 패킷 단위로 분석하여 입력된 패킷 데이터를 신속하게 역다중화하는 구성 및 방법을 제안한다. 또한 상기 패킷데이타의 동기를 구현할 때, 동기바이트를 매 바이트마다 검사하지 않고, 동기가 맞았는지 판단하여 동기가 맞춰진 경우에는 입력되는 TS를 그대로 전달하고 동기가 맞춰지지 않은 경우에 대해서만 동기 위치를 확인하여 동기를 맞추기 위한 차감값을 추출하고, 이에 따라 입력되는 TS 데이터를 지연시켜 동기를 이룰 수 있는 장치 및 방법을 제안한다. An embodiment of the present invention relates to a demultiplexing apparatus and method for analyzing and distributing packet data received at a digital broadcast receiver to corresponding decoders before performing a decoding operation at the digital broadcasting receiver. In this case, since the demultiplexer must analyze and distribute data in real time, the demultiplexer should be able to perform a rapid process. It is also desirable to minimize the buffer memory in the middle of performing the demultiplexing process. In the embodiment of the present invention, by arranging the processing units of the demultiplexer in parallel, the processing time can be shortened and the mounting area can be minimized by reducing the buffer size when the hardware is configured inside the chip. In an embodiment of the present invention, a configuration and method for buffering input data to a packet size, and each processor are connected to the buffer in parallel to analyze the buffered information in packet units to quickly demultiplex input data. Suggest. Also, when the synchronization of the packet data is implemented, the synchronization byte is not checked every byte, and it is determined whether the synchronization is correct, and if the synchronization is synchronized, the input TS is transmitted as it is and the synchronization position is checked only when the synchronization is not synchronized. A method and apparatus for extracting a subtraction value for synchronizing with each other and delaying the input TS data are thus achieved.

본 발명의 실시예에서는 상기 디지털 방송수신기에서 입력되는 TS신호가 MPEG2-TS신호라고 가정한다. 그러나 상기 TS 가 MPEG-4 의 시스템 표준을 따른 것이거나, 세부 데이터로 포함된 비디오 신호가 H.261 - H.264 혹은 MPEG-4 인 경우 및 오디오 신호가 MPEG-1 - MPEG-4 의 규약 중 하나인 경우와는 무관하게 동일한 방법으로 본 발명의 실시예에 따른 역다중화 구조를 적용할 수 있다.In the embodiment of the present invention, it is assumed that the TS signal input from the digital broadcast receiver is an MPEG2-TS signal. However, if the TS complies with the system standard of MPEG-4, or if the video signal included as detailed data is H.261-H.264 or MPEG-4, and the audio signal is in the MPEG-1-MPEG-4 protocol. Irrespective of one, the demultiplexing structure according to the embodiment of the present invention may be applied in the same manner.

이하 본 발명을 도면들을 참조하여 구체적으로 살펴본다.Hereinafter, the present invention will be described in detail with reference to the drawings.

도 5는 디지털 방송 수신기(Digital Broadcasting Receiver)구성을 도시하는 도면이다. 상기 도 1의 구성은 상기 디지털 방송 수신기의 RF튜너310, 복조기320 및 멀티미디어처리부 330을 구비하는 구성을 도시하고 있다.5 is a diagram illustrating a configuration of a digital broadcasting receiver. 1 illustrates a configuration including an RF tuner 310, a demodulator 320, and a multimedia processing unit 330 of the digital broadcast receiver.

상기 도 5를 참조하면, 디지털 방송의 신호는 VHF(very high frequency) 영역 및/또는 UHF(ultra high frequency) 영역의 신호 및/또는 L-Band가 될 수 있다. 이때 사용자가 방송채널을 선택하면, 상기 제어부300은 상기 RF튜너310에서 선택된 채널에 해당하는 제어데이타를 출력한다. 그리고 상기 RF튜너310은 상기 채널 데이터에 따른 RF주파수를 생성하여 혼합하므로써, 선택된 채널의 중간주파수신호를 발생한다. 상기와 같은 중간주파수신호는 복조기320에 인가된다. 그러면 상기 복조기320은 수신되는 신호를 디지털 데이터로 변환한 후, 설정된 방식의 복조 방식으로 복조하여 출력한다. 여기서 상기 복조기320에서 출력되는 신호는 MPEG-2 TS(transport stream)신호라고 가정하며, 이 신호는 멀티미디어처리부 330에 인가된다. 본 발명의 실시예에서는 상기 RF튜너310 및 복조기320을 방송수신기라 칭하기로 한다. 그러면 상기 멀티미디어처리부 330은 수신되는 MPEG-2 TS신호를 역다중화하여 각각 영상, 오디오 및 방송 정보로 분리한다. 그러면 상기 멀티미디어처리부330의 복호기들을 각각의 비디오, 오디오 및 방송정보를 복호한다. 그리고 상기 멀티미디어처리부 330에서 출력되는 영상신호는 상기 표시부350에 출력되어 표시되고 오디오신호는 스피커360에 인가되어 재생된다. 또한 상기 멀티미디어처리부330의 방송 정보는 제어부300에서 처리할 수도 있다. 이런 경우 상기 제어부300은 상기 방송정보를 수신하여 디코딩한 후, 메모리380에 저장하며, 이후 사용자가 채널정보 표시 요청시 상기 방송정보를 억세스하여 상기 표시부350에 표시한다. 여기서 상기 방송정보는 EPG(electronic program guide) 또는 ESG(electronic service guide)가 될 수 있다.Referring to FIG. 5, a digital broadcast signal may be a signal and / or L-Band in a very high frequency (VHF) region and / or an ultra high frequency (UHF) region. At this time, when the user selects a broadcast channel, the controller 300 outputs control data corresponding to the channel selected by the RF tuner 310. The RF tuner 310 generates an intermediate frequency signal of the selected channel by generating and mixing the RF frequencies according to the channel data. The intermediate frequency signal as described above is applied to the demodulator 320. Then, the demodulator 320 converts the received signal into digital data and demodulates the demodulated data according to the set demodulation method. In this case, it is assumed that the signal output from the demodulator 320 is an MPEG-2 transport stream (TS) signal, and the signal is applied to the multimedia processor 330. In the embodiment of the present invention, the RF tuner 310 and the demodulator 320 will be referred to as a broadcast receiver. The multimedia processor 330 then demultiplexes the received MPEG-2 TS signal into video, audio and broadcast information, respectively. Then, the decoders of the multimedia processor 330 decode the respective video, audio, and broadcast information. The video signal output from the multimedia processing unit 330 is output to the display unit 350 to be displayed, and the audio signal is applied to the speaker 360 to be reproduced. Also, the broadcast information of the multimedia processor 330 may be processed by the controller 300. In this case, the controller 300 receives and decodes the broadcast information and stores the same in the memory 380. Then, when a user requests to display channel information, the controller 300 accesses the broadcast information and displays it on the display 350. The broadcast information may be an electronic program guide (EPG) or an electronic service guide (ESG).

상기 디지털 방송 수신기에서 상기 멀티미디어처리부 330의 구성을 살펴본다. 여기서 상기 멀티미디어처리부330은 디지털 방송수신기의 종류에 따라 다르게 구성될 수 있다. 즉, DVB 방식의 디지털 방송의 경우, DVB_T 방식은 MPEG2 TS 구조의 데이터를 처리하며, DVB_H 방식은 IP 기반의 MPEG2 TS 구조의 데이터를 처리한다. 따라서 상기 DVB_H 방식의 디지털방송수신기인 경우에는 상기 방송수신기 및 멀티미디어처리부330이 IP 기반의 MPEG2 TS 데이터를 처리할 수 있는 구성을 가져야한다. 본 발명의 실시예에서는 먼저 상기 DVB_T 방식의 디지털 방송수신기의 구성을 살펴보고, 다음에 DVB_H 방식의 디지털 방송수신기의 구성을 살펴보기로 한다.The configuration of the multimedia processor 330 in the digital broadcast receiver will be described. The multimedia processor 330 may be configured differently according to the type of the digital broadcast receiver. That is, in the case of DVB digital broadcasting, DVB_T processes data of MPEG2 TS structure, and DVB_H processes IP-based MPEG2 TS structure. Therefore, in the case of the DVB_H digital broadcast receiver, the broadcast receiver and the multimedia processing unit 330 must have a configuration capable of processing IP-based MPEG2 TS data. In the embodiment of the present invention, first, the configuration of the DVB_T digital broadcast receiver will be described, and then the configuration of the DVB_H digital broadcast receiver will be described.

도 6은 상기 멀티미디어처리부 330의 구성을 도시하는 도면이다. 여기서 도 6은 DVB_T 방식의 디지털 방송수신기의 멀티미디어처리부330의 구성을 도시하는 도면이다.6 is a diagram illustrating a configuration of the multimedia processing unit 330. 6 is a diagram showing the configuration of the multimedia processing unit 330 of the DVB_T digital broadcast receiver.

상기 도 6을 참조하면, 역다중화기410은 상기 복조기320에서 출력되는 복조된 MPEG-2 TS 데이터를 수신하여 각각의 데이터를 오디오 및 비디오 데이터, 그리고 방송정보 데이터들로 분리하는 기능을 수행한다. 여기서 상기 방송정보 데이터는 디지탈 방송신호에 포함된 비디오 및 오디오 데이타를 제외한 데이터로써, 방송에서 서비스되는 채널들의 프로그램 데이터 등이 될 수 있다. 상기 방송정보 데이터는 상기 역다중화기410에서 분리된 후, 상기 제어부300에서 인가되어 처리된 후, 상기 메모리380에 저장될 수 있다. 그리고 사용자가 방송정보 표시 요구시, 상기 제어부300은 상기 메모리380에 저장된 방송정보 데이터를 억세스하여 상기 표시부 350에 표시할 수 있다. 이하의 설명에서는 상기 방송정보 데이터들에 대한 설명은 생략하기로 한다. 따라서 이하의 설명에서는 상기 방송신호를 영상 및 오디오신호로 한정하여 설명될 것이다. 이때 상기 제어부300은 상기 역다중화기410에서 선택할 방송의 정보, 즉 서비스(PID: product ID)를 선택하여 알려주며, 이에 따라 상기 역다중화기410은 상기 선택된 PID에 따라 상기 복조기320에서 출력되는 다양한 데이터들 중에서 목표가 되는 데이터를 선택하여 비디오 및 오디오로 분리하는 기능을 수행한다.Referring to FIG. 6, the demultiplexer 410 receives demodulated MPEG-2 TS data output from the demodulator 320 and separates each data into audio and video data and broadcast information data. The broadcast information data is data excluding video and audio data included in a digital broadcast signal and may be program data of channels serviced by a broadcast. The broadcast information data may be separated from the demultiplexer 410, applied to the controller 300, processed, and stored in the memory 380. When the user requests to display broadcast information, the controller 300 may access the broadcast information data stored in the memory 380 and display the same on the display 350. In the following description, the description of the broadcast information data will be omitted. Therefore, in the following description, the broadcast signal will be limited to the video and audio signals. In this case, the control unit 300 selects and informs the broadcast information to be selected in the demultiplexer 410, that is, a service (PID: product ID), and accordingly, the demultiplexer 410 is selected from various data output from the demodulator 320 according to the selected PID. It selects the target data and separates it into video and audio.

입력버퍼420은 일반적인 큐(queue, FIFO와 유사한 구조로 입력과 출력이 반대로 이루어지는 일종의 circular buffer가 될 수 있음)로써, 실시간으로 역다중화되는 데이터를 뒷단의 비디오복호기430 및 오디오복호기450에서 처리할 수 있는 데이터의 양 만큼 저장하는 기능을 수행한다. 여기서 상기 입력버퍼420은 비디오 및 오디오 데이터를 같이 저장하는 단일 구조로 구성될 수 있으며, 또한 비디오 및 오디오 데이터를 각각 구분하여 저장할 수 있는 구조로 구성될 수도 있다.The input buffer 420 is a general queue (a similar structure to a FIFO, which can be a kind of circular buffer in which the input and output are reversed), and the video decoder 430 and the audio decoder 450 at the back end can process demultiplexed data in real time. Save as much data as there is. The input buffer 420 may be configured as a single structure for storing video and audio data together, or may be configured as a structure for separately storing video and audio data.

비디오복호기430 및 오디오복호기450은 각각 상기 역다중화기410에서 분배되는 상기 영상데이타 및 오디오데이타의 복호화를 담당한다. The video decoder 430 and the audio decoder 450 are responsible for decoding the video data and the audio data distributed by the demultiplexer 410, respectively.

여기서 본 발명의 실시예에 따른 상기 역다중화기410은 상기한 바와 같이 입력되는 패킷데이타의 동기를 검출한 후, 입력되는 패킷데이타를 버퍼링하며, 패킷데이타의 버퍼링완료시 상기 패킷데이타를 병렬 출력한다. 그러면 본 발명의 실시예에 따라 병렬 배열된 각 처리부들은 상기 병렬출력되는 패킷데이터 의 정보들을 분석하여 각각 해당하는 정보들을 처리한다.The demultiplexer 410 according to an embodiment of the present invention detects the synchronization of the input packet data as described above, buffers the input packet data, and outputs the packet data in parallel when buffering of the packet data is completed. Then, each processing unit arranged in parallel according to the embodiment of the present invention analyzes the information of the parallel output packet data and processes the corresponding information.

도 7은 본 발명의 실시예에 따른 역다중화기410의 구성을 도시하는 도면이다.7 is a diagram illustrating a configuration of a demultiplexer 410 according to an embodiment of the present invention.

상기 도 7을 참조하면, 동기검색부511은 입력되는 TS신호의 각 패킷 데이터들에 포함된 동기신호를 검색하며, 상기 입력되는 패킷데이타를 버퍼513에 전달한다. 본 발명의 실시예에 따른 상기 동기검색부511은 차감값 지연 방식을 사용하여 동기를 맞춘다. 버퍼513은 상기 동기검색부511에서 출력되는 직렬 데이터들을 패킷 단위로 버퍼링한다. Referring to FIG. 7, the synchronization search unit 511 searches for a synchronization signal included in each packet data of an input TS signal, and transfers the input packet data to the buffer 513. The synchronization search unit 511 according to an embodiment of the present invention synchronizes using a subtraction delay method. The buffer 513 buffers serial data output from the synchronization searching unit 511 in packet units.

패킷헤더처리부515는 상기 버퍼513의 패킷 데이터에서 병렬 출력되는 패킷헤더를 검색하여 부가정보(adaptation information)의 포함여부를 검사한 후, 상기 부가정보가 포함되지 않은 경우에는 PES헤더처리부519만 구동하며, 상기 부가정보가 포함된 경우에는 부가정보처리부517을 구동한다. 상기 패킷헤더처리부515는 입력되는 패킷에서 패킷헤더를 분석하여 부가정보가 포함되어있으면 상기 패킷헤더를 제외한 패킷데이타를 상기 부가정보처리부517에 전달하며, 부가정보를 포함하지 않으면 상기 패킷헤더를 제외한 패킷데이타를 PES헤더처리부519에 전달한다.The packet header processing unit 515 searches the packet headers output in parallel in the packet data of the buffer 513 and checks whether the additional information is included. If the additional information is not included, the packet header processing unit 515 runs only the PES header processing unit 519. When the additional information is included, the additional information processing unit 517 is driven. The packet header processing unit 515 analyzes the packet header from the input packet and, if the additional information is included, transmits packet data excluding the packet header to the additional information processing unit 517. If the additional information is not included, the packet header processing unit excluding the packet header The data is transmitted to the PES header processing unit 519.

부가정보처리부517은 상기 패킷헤더처리부515의 제어하에 구동되며, 상기 패킷헤더처리부515에서 패킷데이타가 전달되면 상기 패킷데이타에 포함된 부가정보를 분석하여 처리하며, 부가정보를 제외한 나머지 패킷 데이터를 PES헤더처리부519에 전달한다.The additional information processing unit 517 is driven under the control of the packet header processing unit 515. When packet data is transmitted from the packet header processing unit 515, the additional information processing unit 517 analyzes and processes additional information included in the packet data, and PES the remaining packet data except for the additional information. The header is transferred to the header processing unit 519.

상기 PES헤더처리부517은 상기 패킷헤더처리부515 또는 상기 부가정보처리부517에서 전달되는 패킷데이타에 포함된 PES헤더를 추출하여 처리하며, 상기 PES 헤 더를 제외한 나머지 패킷 데이터를 데이타처리부521에 전달한다. 이때 상기 PES헤더처리부517은 상기 PES 헤더의 PID(여기서는 오디오 또는 비디오 데이터인지를 구분하기 위한 PID)를 검사하여 상기 패킷데이타가 오디오데이타인지 비디오데이타인지를 확인하여 상기 데이터처리부521에 알려준다. 상기 데이터처리부521은 상기 PES 헤더가 제거된 패킷데이타를 처리하며, 상기 구분된 비디오 또는 오디오데이타를 각각 해당하는 상기 비디오 복호기430 또는 오디오복호기450의 입력버퍼420에 전달한다.The PES header processing unit 517 extracts and processes the PES header included in the packet data transmitted from the packet header processing unit 515 or the additional information processing unit 517, and transfers the remaining packet data except for the PES header to the data processing unit 521. At this time, the PES header processing unit 517 checks the PID of the PES header (here, PID for discriminating whether audio or video data), checks whether the packet data is audio data or video data, and informs the data processor 521. The data processor 521 processes the packet data from which the PES header is removed, and transmits the divided video or audio data to an input buffer 420 of the video decoder 430 or the audio decoder 450, respectively.

상기한 바와 같이 상기 역다중화기410은 4개의 처리부515-521들을 구비하며, 각 처리부515-521들은 상기 버퍼513에 버퍼링된 패킷데이타들을 순차적으로 분석하여 상기 패킷데이타에 자신이 처리하여야 할 정보가 포함된 경우에만 상기 버퍼513에서 패킷데이타를 억세스하여 처리한다. 이때 상기 패킷데이타의 구조는 패킷헤더, 부가정보헤더 및(또는) PES헤더들을 포함할 수 있다. 따라서 상기 각 처리부515-521들은 상기 버퍼513에 버퍼링된 데이터를 분석하여 자신이 처리하여야 할 헤더가 포함된 경우에만 구동되어 처리하며, 이를 데이터 처리는 병렬적으로 수행될 수 있다. As described above, the demultiplexer 410 includes four processing units 515-521, and each processing unit 515-521 sequentially analyzes packet data buffered in the buffer 513 and includes information to be processed in the packet data. Only when the packet data is received, the packet data is accessed and processed in the buffer 513. In this case, the structure of the packet data may include a packet header, additional information header, and / or PES headers. Therefore, the processing units 515-521 are driven and processed only when the header 513 includes a header to be processed by analyzing the buffered data in the buffer 513, and the data processing may be performed in parallel.

상기 각 처리부515-521들의 동작을 설명하기 전에 상기 입력되는 MPEG2 TS신호의 구조에 대하여 살펴본다. 상기 MPEG2 TS신호는 상기한 바와 같은 패킷 스트림으로써, 상기 TS신호는 도 8a와 같이 비디오 패킷 및 오디오 패킷들로 구성되며, 이때 비디오 및 오디오 패킷들은 상기 디지털 방송 송신기에서 무작위로 다중화하여 전송된다. 이때 상기 도 8a의 비디오 및 오디오 패킷은 도 8b와 같이 패킷헤더 및 페이로드(payload)로 구성되며, 상기 패킷헤더 및 페이로드는 188바이트들로 구성된다. 즉, 1패킷 데이터는 188바이트로 구성된다. 이때 상기 패킷헤더는 도 8c와 같이 4바이트의 크기를 가지며, 상기 패킷 헤더의 각 파라미터들은 하기 <표 1>과 같은 기능을 가진다.Before explaining the operation of the processing units 515-521, the structure of the input MPEG2 TS signal will be described. The MPEG2 TS signal is a packet stream as described above, and the TS signal is composed of video packets and audio packets as shown in FIG. 8A. In this case, the video and audio packets are randomly multiplexed and transmitted by the digital broadcast transmitter. In this case, the video and audio packets of FIG. 8A are composed of a packet header and payload as shown in FIG. 8B, and the packet header and payload are composed of 188 bytes. That is, one packet data is composed of 188 bytes. At this time, the packet header has a size of 4 bytes as shown in FIG. 8C, and each parameter of the packet header has a function as shown in Table 1 below.

분류Classification 설명Explanation bitsbits sync byte sync byte 동기 바이트, 0X47 Sync byte, 0X47 88 transport error indicator transport error indicator 현재 패킷에 에러가 발생했을 경우 : 1 If an error occurs in the current packet: 1 1One payload start indicator payload start indicator 현재 패킷이 PES의 시작일 경우: 1 If the current packet is the beginning of a PES: 1 1One transport priority transport priority decoder에서 사용함 used by decoder 1One PID  PID 패킷의 종류를 구분하는 identifier Identifier that identifies the type of packet 1313 scrambling control scrambling control scrambling mode를 설정함 set scrambling mode 22 adaptation field control adaptation field control 01: 부가정보 없음/ 페이로드만 존재 10: 부가정보만 존재/ 페이로드 없음 11: 부가정보와 페이로드 모두 존재 00: 예비 01: no additional information / payload only 10: additional information only / no payload 11: both additional information and payload present 00: preliminary 22 continuity counter continuity counter 4 byte counter, 동일 PID에 대해 1증가 4 byte counter, 1 increase for same PID 44

즉, 패킷 데이터는 동기바이트로 시작하며, 이를 기준으로 하나의 패킷을 구분한다. 상기 동기검색부511은 상기 입력되는 패킷데이타를 검색하여 동기바이트가 검출될 때 까지 데이터의 입력을 지연하며, 상기 동기바이트가 검출되면 이후 입력되는 패킷 데이터를 상기 버퍼513에 버퍼링하도록 한다. 그러면 상기 버퍼513은 상기 입력되는 패킷데이타를 버퍼링한다. 이때 상기 버퍼513은 패킷 크기를 가지는 188바이트 버퍼 또는 상기 패킷 크기의 정수배를 가지는 크기(376바이트(2*188바이트), 564바이트*3*188바이트) ...)를 가지는 버퍼가 될 수 있다. 또한 상기 버퍼513의 첫 번째 - 4번째 바이트 위치에는 상기 <표 1>과 같은 4바이트의 패킷헤더들이 버퍼링된다.That is, packet data starts with a sync byte, and distinguishes one packet based on this. The sync search unit 511 detects the input packet data and delays data input until a sync byte is detected. When the sync byte is detected, the sync search unit 511 buffers the packet data to be input in the buffer 513. The buffer 513 then buffers the input packet data. In this case, the buffer 513 may be a 188-byte buffer having a packet size or a buffer having a size (376 bytes (2 * 188 bytes), 564 bytes * 3 * 188 bytes) ... having an integer multiple of the packet size. . In addition, four-byte packet headers as shown in Table 1 are buffered in the first to fourth byte positions of the buffer 513.

그러면 상기 패킷헤더처리부515는 상기 도 8c 및 상기 <표 1>과 같은 패킷헤더를 처리한다. 상기 패킷헤더처리부515는 사용자에 의해 설정된 방송채널의 PID(이하 설정 PID라 칭함)와 상기 패킷헤더의 PID를 비교하여 수신된 패킷의 처리 여부를 결정하며, 상기 설정 PID와 다른 패킷인 경우에는 상기 버퍼513에 버퍼링된 패킷을 처리하지 않도록 제어한다. 그리고 상기 버퍼513에 버퍼링된 패킷이 설정된 PID와 같은 값을 가지면, 상기 패킷헤더처리부515는 상기 패킷헤더를 분석하여 부가정보(adaptation field control)의 포함여부를 확인한다. 이때 상기 패킷헤더의 상기 부가정보제어(adaptation field control) 파라미터를 분석한 후, 상기 부가정보가 포함되지 않은 패킷(즉, PES헤더 및(또는) A/V 데이터로 이루어진 패킷)이면 상기 부가정보처리부517의 동작을 생략하고 상기 버퍼513에 저장된 패킷 데이터를 PES헤더처리부517에 전달되도록 제어한다. 상기와 같이 부가정보가 포함되지 않은 패킷인 경우, 상기 도 8c와 같은 구조를 가지는 페이로드 영역에는 상기 PES헤더 및(또는) A/V 데이타가 저장된다. 그러나 상기 패킷 데이터에 상기 부가정보가 포함되어 있으면 도 8c와 같은 패킷 데이터 구조를 가지며, 이때 상기 페이로드 영역에는 부가정보(또는 부가정보, 상기 PES헤더 및(또는) A/V 데이터)가 포함될 수 있다. 그러면 상기 패킷헤더처리부515는 상기 부가정보처리부517에 상기 버퍼513에 버퍼링된 페이로드 데이터를 처리하도록 제어한다. 이때 상기 부가정보처리부517에 전달되는 정보는 부가정보가 버퍼링된 상기 버퍼513의 위치정보로써, 패킷헤더 4바이트를 제외한 다음 바이트 위치에서 상기 부가정보의 마지막 데이터가 버퍼링된 마지막 바이트의 위치정보가 될 수 있다. Then, the packet header processing unit 515 processes the packet header shown in FIG. 8C and the <Table 1>. The packet header processing unit 515 compares a PID of a broadcast channel set forth by a user (hereinafter referred to as a set PID) and a PID of the packet header to determine whether to process a received packet. Control not to process packets buffered in buffer 513. If the packet buffered in the buffer 513 has the same value as the set PID, the packet header processing unit 515 analyzes the packet header to determine whether additional information (adaptation field control) is included. In this case, after analyzing the adaptation field control parameter of the packet header, the additional information processing unit if the packet does not include the additional information (that is, a packet composed of PES header and / or A / V data). The operation of 517 is omitted and the packet data stored in the buffer 513 is transferred to the PES header processor 517. When the packet does not include additional information as described above, the PES header and / or A / V data is stored in the payload region having the structure as shown in FIG. 8C. However, if the additional information is included in the packet data, the packet data structure is illustrated in FIG. 8C, and the additional information (or additional information, the PES header, and / or A / V data) may be included in the payload region. have. Then, the packet header processing unit 515 controls the additional information processing unit 517 to process payload data buffered in the buffer 513. At this time, the information transmitted to the additional information processor 517 is position information of the buffer 513 in which the additional information is buffered, and the last data of the additional information is the position information of the last byte buffered at the next byte position except 4 bytes of the packet header. Can be.

상기 부가정보처리부517은 상기 패킷헤더처리부515의 제어하에 동작된다. 상기 부가정보처리부517은 상기 도 8c의 페이로드 영역에 존재하는 부가정보 데이터를 처리하며, 상기 부가정보 데이터는 도 9a - 도 9c와 같은 구성을 갖는다. 상기 도 9a는 부가정보 헤더의 구조를 도시하는 도면으로, 상기 부가정보는 부가정보의 길이(adaptation field length), ES 우선순위(ES priority indicator) 등의 정보를 가지며, 부가정보 추가필드1(optional field 1)의 포함 여부를 표시하는 플래그(5 flags) 파라미터들을 가진다. 이때 상기 부가정보 추가필드1을 포함하는 경우 상기 도 9a와 같은 5플래그 영역의 해당하는 플래그(또는 플래그들)를 세트하며, 상기 세트된 플래그에 대응되는 부가정보들이 상기 도 9a의 부가정보 추가필드1(optional field 1)에 포함된다. 상기 추가필드1(optional field 1)에 포함되는 부가정보들은 하기 <표 2>와 같으며 , 그 구조는 도 9b와 같이 구성될 수 있다.The additional information processing unit 517 is operated under the control of the packet header processing unit 515. The additional information processing unit 517 processes additional information data existing in the payload area of FIG. 8C, and the additional information data has a configuration as shown in FIGS. 9A to 9C. FIG. 9A is a diagram illustrating a structure of an additional information header. The additional information has information such as an adaptation field length, an ES priority indicator, and the like. Has flag (5 flags) parameter indicating whether field 1) is included or not. In this case, when the additional information additional field 1 is included, corresponding flags (or flags) of the 5 flag areas as shown in FIG. 9A are set, and additional information corresponding to the set flag is additional information additional field of FIG. 9A. It is included in 1 (optional field 1). Additional information included in the optional field 1 is shown in Table 2 below, and its structure may be configured as shown in FIG. 9B.

5 flags5 flags optional field 1optional field 1 bitsbits 1XXXX1XXXX PCR PCR 42 bits 42 bits X1XXXX1XXX OPCR OPCR 42 bits 42 bits XX1XXXX1XX splice count down splice count down 8 bits 8 bits XXX1XXXX1X transport private data length transport private data transport private data length transport private data 8 bits 가변 8 bits variable XXXX1XXXX1 adaptation field extension length adaptation field extension length 8 bits 8 bits

상기 도 9b를 참조하면, 상기 부가정보 추가필드1에는 프로그램 시간 정보의 기준값 PCR(program clock reference)을 포함하여 기타 복호에 사용될 수 있는 부가정보들로 구성된다. 상기 <표 2>에는 상기 5플래그들 각각에 해당하는 부가정보 추가필드1의 데이터들을 나타내고 있으며, 여기서 상기 5플래그는 두 개 이상 또는 모두 세트될 수도 있다. 예를들면 상기 5플래그들이 "10100"로 세트되면, 상기 부가정보 추가필드1에는 PCR 및 splice count down 데이터들이 포함된다. Referring to FIG. 9B, the additional information additional field 1 includes additional information that can be used for other decoding, including a reference value PCR (program clock reference) of program time information. Table 2 shows the data of the additional information additional field 1 corresponding to each of the five flags, wherein two or more of the five flags may be set. For example, if the five flags are set to "10100", the additional information additional field 1 includes PCR and splice count down data.

또한 상기 도 9b와 같은 부가정보 추가필드1에는 부가정보 추가필드2(optional field 2)의 데이터들의 포함 여부를 표시한는 플래그(3flags)들을 가진다. 이때 상기 부가정보 추가필드2를 포함하는 경우 상기 도 9b의 3플래그들에서 해당하는 플래그를 세트하고 부가정보를 부가정보 추가필드2(optional field 2)에 포함시킨다. 상기 추가필드2(optional field 2)의 구조는 도 9c와 같은 구조를 가지며, 상기 추가필드2(optional field 2)에 포함되는 부가정보들은 하기 <표 3과>와 같다. 하기 <표 3>은 도 9b의 상기 3플래그들 각각에 해당하는 부가정보 추가필드2의 데이터들을 나타내고 있으며, 여기서 상기 3플래그는 두 개 이상 세트될 수도 있다. In addition, the additional information additional field 1 as shown in FIG. 9B has flags (flags) indicating whether data of the additional information additional field 2 (optional field 2) is included. In this case, when the additional information additional field 2 is included, a corresponding flag is set in the 3 flags of FIG. 9B and the additional information is included in the additional information additional field 2 (optional field 2). The additional field 2 has the structure shown in FIG. 9C, and additional information included in the optional field 2 is shown in Table 3 below. Table 3 below shows data of the additional information additional field 2 corresponding to each of the three flags of FIG. 9B, and two or more of the three flags may be set.

3 flags3 flags optional field 2 optional field 2 bitsbits 1XX1XX LTW_Valid flag LTW offset LTW_Valid flag LTW offset 1 bit 15 bits 1 bit 15 bits X1XX1X piecewise rate piecewise rate 22 bits 22 bits XX1XX1 splice type splice type 4 bits 4 bits

상기 도 9a - 도 9c는 상기 수신된 패킷 데이터를 복호하기 위한 부가정보들이며, 필요시에만 포함되는 정보들이다.9A to 9C are additional information for decoding the received packet data, and are included only when necessary.

두 번째로 상기 PES 헤더처리부519의 동작을 살펴본다. Secondly, the operation of the PES header processing unit 519 will be described.

상기 패킷헤더처리부515에 부가정보가 포함되지 않은 패킷으로 판정되거나 또는 상기 부가정보처리부517에서 부가정보를 처리한 후 남은 패킷들은 상기 패킷헤더처리부515 또는 부가정보처리부517의 제어에 의해 PES헤더처리부519 및(또는) 데이터처리부521에서 처리된다. 상기 PES헤더처리부519는 도 10a - 도 10d와 같은 PES 헤더 정보를 처리한다. 상기 도 10a는 PES 헤더 구조를 도시하는 도면으로, PES 스크램블링 제어(PES scrambling control), PES 우선순위(PES priority), 카피라이트(copy right), 오리지날/카피(original/copy), 7개의 플래그정보(7 flags), PES 길이(PES data length) 등으로 이루어지며, 필요시 PES 추가필드1(PES optional field 1)이 추가된다. 도 10b는 상기 추가필드1의 구조도로써, PTS(presentation time stamp: 표시시간정보)/DTS(decoding time stamp: 복호시간정보)가 포함된다. 상기 PTS는 상기 비디오복호기430 또는 오디오복호기450에서 복호된 데이터를 상기 표시부350에 표시하는 시간 정보로써, 상기 PTS의 시간에서 상기 복호기가 복호된 데이터를 표시부350에 출력하게 된다. 상기 DTS는 상기 비디오복호기430 또는 오디오복호기450이 복호를 시작하는 시간정보로써, 상기 복호기는 상기 입력되는 패킷 데이터를 상기 DTS 시간에 복호하기 시작한다. 하기 <표 4>는 도 10a와 같은 PES헤더의 7플래그들 및 이에 따른 PES 추가필드1의 데이터들을 나타내고 있다.Packets remaining after the additional information is determined by the packet header processing unit 515 or after the additional information processing unit 517 is processed are controlled by the packet header processing unit 515 or the additional information processing unit 517 under the control of the PES header processing unit 519. And / or the data processing unit 521. The PES header processing unit 519 processes the PES header information as shown in FIGS. 10A to 10D. 10A is a diagram illustrating a PES header structure, in which PES scrambling control, PES priority, PES priority, copy right, original / copy, and seven flag information are illustrated. (7 flags), PES length (PES data length), etc., and PES optional field 1 is added if necessary. FIG. 10B is a structural diagram of the additional field 1 and includes presentation time stamp (PTS) / decoding time stamp (DTS). The PTS is time information for displaying the data decoded by the video decoder 430 or the audio decoder 450 on the display unit 350, and outputs the data decoded by the decoder to the display unit 350 at the time of the PTS. The DTS is time information at which the video decoder 430 or the audio decoder 450 starts decoding, and the decoder starts to decode the input packet data at the DTS time. Table 4 below shows seven flags of the PES header and corresponding data of the PES additional field 1 as shown in FIG. 10A.

7 flags7 flags PES optional field 1 PES optional field 1 bitsbits 0XXXXXX 1XXXXXX0XXXXXX 1XXXXXX PTS DTS PTS DTS 33 bits 33 bits33 bits 33 bits X1XXXXXX1XXXXX ESCR ESCR 42 bits42 bits XX1XXXXXX1XXXX ES rate ES rate 22 bits22 bits XXX1XXXXXX1XXX DSM trick mode DSM trick mode 22 bits22 bits XXXX1XXXXXX1XX additional copy info additional copy info 8 bits 8 bits XXXXX1XXXXXX1X previous PES CRC previous PES CRC 16 bits16 bits XXXXXX1XXXXXX1 PES extension PES extension 가변길이Variable length

상기 PES 추가필드1(PES optional field 1)은 필요시 도 10b에 도시된 바와 같이 PES 확장정보(PES extension)를 더 가질 수 있다. 도 10c는 상기 PES 확장정보(PES extension)의 구성으로써, 5개의 플래그들 및 필요시 추가필드2(PES optional field 2)를 더 가질 수 있다. 도 10d는 상기 추가필드2의 구조를 도시하고 있으며, 이는 상기 도 10c와 같은 PES 확장정보의 5플래그들에 의해 결정된다. 도 10c의 5플래그들은 이어지는 PES 추가필드2의 내용을 결정하며, 이는 하기 <표 5>와 같다.The PES optional field 1 may further have PES extension information (PES extension) as shown in FIG. 10B if necessary. FIG. 10C illustrates the configuration of the PES extension, and may further include five flags and PES optional field 2 if necessary. FIG. 10D shows the structure of the additional field 2, which is determined by five flags of PES extension information as shown in FIG. 10C. The 5 flags of FIG. 10C determine the contents of the following PES additional field 2, which is shown in Table 5 below.

5 flags5 flags PES optional field 2PES optional field 2 bitsbits 1XXXX1XXXX PES private data PES private data 128 bits  128 bits X1XXXX1XXX pack header fieldpack header field 8 bits8 bits XX1XXXX1XX program packet seq. cntr.program packet seq. cntr. 8 bits8 bits XXX1XXXX1X PES extension field lengthPES extension field length 16 bits16 bits XXXX1XXXX1 PES extension field dataPES extension field data 7 bits7 bits

상기 PES헤더처리부517은 상기 도 10a - 도 10d와 같은 구성을 가지는 PES 헤더를 처리하며, 상기 PES 헤더를 제외한 A/V 데이터의 위치정보를 데이터처리부521에 전달한다. 이때 상기 데이터처리부521로 전달되는 A/V 데이터는 패킷데이타에 포함된 헤더정보들이 모두 제거된 순수 데이터(ES: elementary stream)들로써, 상기 데이터처리부521은 상기 전달되는 A/V 데이터들을 비디오 또는 오디오 ES신호로 분배하는 기능을 수행한다.The PES header processing unit 517 processes the PES header having the configuration as shown in FIGS. 10A to 10D, and transfers position information of A / V data except for the PES header to the data processing unit 521. In this case, the A / V data transmitted to the data processor 521 is pure data (ES) in which all header information included in the packet data is removed, and the data processor 521 transmits the transferred A / V data to video or audio. Function to distribute by ES signal.

상기한 바와 같이 본 발명의 실시예에 따른 상기 역다중화기410는 버퍼513이 입력되는 TS 신호들을 패킷크기로 병렬 버퍼링하여 출력하고, 각 처리부515-521들을 도 7과 같이 상기 버퍼513에 병렬적으로 배열되어 패킷의 정보들을 병렬 억세스하여 분석하므로써 역다중화 동작을 신속하게 처리할 수 있다. 또한 본 발명의 역다중화부410의 동기검색부211은 수신되는 패킷데이타의 동기를 검색할 때 매바이트 마다 검색하는 것이 아니라 동기바이트가 확인되는 시점에서 동기바이트의 지연값을 확인한 후, 확인된 지연값 만큼 버퍼513에 입력되는 데이터를 지연시키므로서 입력되는 패킷의 매 바이트를 검색하지 않아 동기검색을 단순화시킬 수 있다.As described above, the demultiplexer 410 according to the embodiment of the present invention buffers and outputs the TS signals inputted by the buffer 513 in a packet size, and outputs the respective processing units 515-521 to the buffer 513 in parallel as shown in FIG. 7. By arranging and analyzing the information of the packets in parallel, the demultiplexing operation can be processed quickly. In addition, the synchronization search unit 211 of the demultiplexer 410 of the present invention does not search every byte when searching for synchronization of received packet data, but checks the delay value of the sync byte at the time when the sync byte is confirmed, and then confirms the delay. By delaying the data input to the buffer 513 by the value, the synchronous search can be simplified by not searching every byte of the input packet.

상기 도 7과 같은 본 발명의 실시예에 따른 역다중화기410의 동작을 상기 도 8a - 도 10d의 패킷데이타들을 참조하여 상세히 설명한다.The operation of the demultiplexer 410 according to the embodiment of the present invention as shown in FIG. 7 will be described in detail with reference to the packet data of FIGS. 8A to 10D.

도 11은 본 발명의 실시예에 따른 역다중화기410의 동기검색부511의 구성을 도시하는 도면이다. MPEG 표준안에서 제시된 동기검색 방법은 상기 도 4에서 설명된 바와 같이 입력되는 패킷 데이터의 매 바이트들이 동기바이트(sync byte: 0X47)인가 검사하여야 한다. 본 발명의 실시예에서는 입력되는 TS신호를 패킷 크기로 상기 버퍼513에 저장하며, 상기 버퍼513에 저장되는 바이트 데이터들을 검사하고, 상기 바이트 데이터가 동기바이트이면 상기 동기검출부511은 상기 버퍼513의 동기바이트 위치에서 벗어난 위치 값을 검출하여 패킷 동기를 맞춘다. 즉, 상기 동기바이트가 확인되면, 상기 동기검색부511은 상기 버퍼513에 특정 위치(여기서는 첫 번째 바이트 위치라고 가정함)에서 확인된 동기바이트가 저장된 버퍼513의 위치값을 검출하고, 이로부터 상기 설정된 동기바이트 버퍼링 위치까지의 차감 값을 계산한 후, 상기 계산된 차감 값 만큼 입력되는 TS신호의 바이트들을 지연하여 동기를 이루는 방법을 사용한다.11 is a diagram showing the configuration of the synchronization searching unit 511 of the demultiplexer 410 according to the embodiment of the present invention. The sync search method proposed in the MPEG standard should check whether every byte of the packet data input as described in FIG. 4 is a sync byte (0X47). According to an exemplary embodiment of the present invention, an input TS signal is stored in the buffer 513 in a packet size, and the byte data stored in the buffer 513 is inspected. When the byte data is a sync byte, the sync detection unit 511 synchronizes the buffer 513. Packet synchronization is detected by detecting a position value out of the byte position. That is, when the sync byte is confirmed, the sync search unit 511 detects the position value of the buffer 513 in which the sync byte identified at a specific position (here, the first byte position) is stored in the buffer 513. After calculating the subtraction value up to the set synchronization byte buffering position, a method of synchronizing by delaying the bytes of the TS signal input by the calculated subtraction value is used.

상기 도 11을 참조하면, 입력되는 패킷데이타는 버퍼513에 저장된다. 여기서 상기 버퍼513은 패킷 데이터를 저장하는 버퍼로써 188바이트 크기를 가질 수 있으며, 입력되는 패킷의 바이트 데이터들을 입력되는 순서대로 저장한다. 이때 차감값추출부615는 상기 버퍼513에서 버퍼링되는 바이트 데이터의 위치 정보를 확인한다. 그리고 동기확인부613은 상기 버퍼513에 저장되는 바이트 데이터가 동기 바이트인가를 확인하며, 동기바이트를 확인하면 상기 차감값추출부615에 이를 알린다. 그러면 상기 차감값추출부615는 상기 동기확인부613에서 동기바이트를 확인하는 신호가 입력되면 현재 상기 버퍼513의 현재 바이트(여기서는 동기바이트가 됨) 버퍼링 위치를 확인한다. 이후 상기 차감값추출부615는 상기 동기바이트로 확인된 바이트 데이터가 저장된 상기 버퍼513의 위치에서 상기 버퍼513에 설정된 동기바이트 버퍼링 위치까지의 차감값을 계산한 후, 상기 계산된 차감값을 상기 지연부611에 출력한다. 그러면 상기 지연부611은 상기 입력되는 TS신호를 상기 계산된 차감값에 따라 지연하며, 상기 차감값 만큼 입력되는 TS신호를 지연한 후, 이후의 TS신호를 상기 버퍼513에 전달한다. 이때 상기 버퍼513은 상기 차감값추출부615에서 출력되는 차감값만큼 TS신호의 저장을 중단하며, 상기 차감값이 종료되면 그때부터 상기 지연부611에서 전달되는 TS신호를 버퍼링한다. 따라서 상기 동기검색부511은 상기 입력되는 TS신호를 정상적으로 상기 버퍼513에 전달하며, 이때 상기 전달되는 TS신호는 상기 패킷의 동기바이트에서부터 시작되는 데이터가 된다. Referring to FIG. 11, the input packet data is stored in the buffer 513. The buffer 513 is a buffer for storing packet data and may have a size of 188 bytes, and stores byte data of an input packet in the order of input. In this case, the subtraction value extractor 615 checks the position information of the byte data buffered in the buffer 513. The synchronization confirmation unit 613 confirms whether the byte data stored in the buffer 513 is a synchronization byte, and when the synchronization byte is confirmed, the synchronization confirmation unit 613 notifies the subtraction value extraction unit 615 of this. Then, the subtraction value extracting unit 615 checks the buffering position of the current byte (here, the sync byte) of the buffer 513 when a signal for identifying a sync byte is input from the sync check unit 613. Thereafter, the subtraction value extractor 615 calculates a subtraction value from the position of the buffer 513 in which the byte data identified as the synchronization byte is stored to the synchronization byte buffering position set in the buffer 513, and then delays the calculated subtraction value. Output to unit 611. Then, the delay unit 611 delays the input TS signal according to the calculated subtraction value, delays the TS signal input by the subtraction value, and then transfers the subsequent TS signal to the buffer 513. At this time, the buffer 513 stops storing the TS signal by the subtraction value output from the subtraction value extracting unit 615, and when the subtraction value ends, buffers the TS signal transmitted from the delay unit 611. Accordingly, the sync search unit 511 normally transfers the input TS signal to the buffer 513. At this time, the transmitted TS signal becomes data starting from the sync byte of the packet.

상기와 같이 일단 패킷의 동기가 이루어지면, 이후 입력되는 TS신호의 각 패킷들은 동기가 맞춰진 상태가 되며, 특별한 장애가 발생되지 않는 한 상기 동기 상태는 계속 유지된다. 그리고 상기 장애 상태등에 의해 상기 패킷 동기가 어긋나면 상기와 같은 동작을 재수행하면서 패킷 동기를 이루게 된다. 상기한 바와 같이 본 발명의 실시예에 따른 상기 동기검색부511은 입력되는 TS신호에서 각 패킷의 동기바이트 위치를 확인한 후 상기 동기바이트의 위치에 따른 차감값을 계산하고, 상기 계산된 차감값 만큼 입력되는 패킷데이타를 지연시켜 동기를 구현하는 방법을 사용하고 있다.Once the packet is synchronized as described above, each packet of the TS signal inputted thereafter is in a synchronized state, and the synchronized state is maintained unless a special obstacle occurs. If the packet synchronization is out of order due to the fault condition or the like, packet synchronization is achieved while performing the above operation again. As described above, the sync retrieval unit 511 checks the position of the sync byte of each packet in the input TS signal, calculates a subtraction value according to the position of the sync byte, and then calculates the subtraction value. A method of implementing synchronization by delaying input packet data is used.

도 12는 상기 동기검색부511의 동작 절차를 도시하는 흐름도이다.12 is a flowchart showing an operation procedure of the synchronization searching unit 511. FIG.

상기 도 12를 참조하면, 상기 TS신호는 패킷 스트림으로써 1패킷은 188바이트로 구성된다. 따라서 상기 TS신호는 순차적으로 상기 버퍼513에 입력되며 바이트 단위로 바이트 버스를 통해 입력된다. 따라서 631단계에서 TS신호가 입력되면 상기 동기검색부511은 입력된 바이트 데이터가 동기바이트 데이터인가 확인하며, 동기바이트 데이터가 아니면 641단계에서 상기 버퍼513에 저장한다. 이때 상기 버퍼513은 입력되는 바이트 데이터들을 순차적으로 저장하게 된다. 그리고 상기 동기바이트가 입력되면, 상기 동기검색부511은 633단계에서 이를 감지하고, 635단계에서 상기 동기바이트가 저장된 상기 버퍼513의 위치를 확인하며, 637단계에서 상기 확인된 위치와 미리 설정된 동기바이트의 위치를 비교하여 그 차감 위치값을 결정한 후, 639단계에서 상기 버퍼513에 저장되는 데이터의 입력을 지연시켜 패킷의 동기를 맞춘다. Referring to FIG. 12, the TS signal is a packet stream, and one packet consists of 188 bytes. Accordingly, the TS signal is sequentially input to the buffer 513 and is input through the byte bus in byte units. Accordingly, when the TS signal is input in step 631, the sync search unit 511 confirms whether the input byte data is sync byte data, and stores the same in the buffer 513 in step 641. In this case, the buffer 513 sequentially stores the input byte data. When the sync byte is input, the sync search unit 511 detects it in step 633, and checks the location of the buffer 513 in which the sync byte is stored in step 635, and in step 637, the checked position and the preset sync byte. After comparing the positions of the signals and determining the subtraction position values, in step 639, the data input stored in the buffer 513 is delayed to synchronize the packets.

예를들면 최초 패킷 데이터 입력시 패킷 동기를 이루지 않은 상태에서 입력될 수 있다. 그러면 상기 동기검색부511은 상기 입력되는 패킷의 바이트 데이터들을 그대로 상기 버퍼513에 저장한다. 그리고 상기 버퍼513에 저장되는 바이트 데이터가 동기 데이타인지를 확인한다. 이때 상기 동기바이트가 확인되면, 상기 동기바이트가 저장된 상기 버퍼513의 위치를 확인한다. 이후 상기 동기검색부511은 상기 패킷 동기를 위한 동기바이트의 차감값을 결정한다. 이때 상기 동기바이트의 설정위치가 상기 버퍼513의 첫 번째 바이트 위치라고 가정하고, 현재 동기바이트가 확인된 위치가 180번째 바이트 위치라면, 상기 차감값은 -8이 된다. 그러면 상기 동기검색부511은 상기 입력되는 패킷데이타를 8바이트 지연시켜 상기 버퍼513에 입력시키므로써 패킷 동기를 이루게되는 것이다. 이런 경우 상기 8바트는 유실되며, 이후 패킷 동기를 이루게 된다. 따라서 상기 동기검색부511은 패킷 동기가 틀린 경우 다음 패킷 주기에서 동기를 이룰 수 있게 된다. For example, the first packet data may be input without packet synchronization. Then, the synchronization retrieval unit 511 stores the byte data of the input packet in the buffer 513 as it is. It is then checked whether the byte data stored in the buffer 513 is synchronous data. At this time, if the sync byte is confirmed, the location of the buffer 513 in which the sync byte is stored is checked. Thereafter, the synchronization searching unit 511 determines a subtraction value of the synchronization byte for the packet synchronization. In this case, it is assumed that the setting position of the sync byte is the first byte position of the buffer 513. If the position at which the current sync byte is confirmed is the 180th byte position, the subtraction value is -8. Then, the synchronization retrieval unit 511 achieves packet synchronization by delaying the input packet data by 8 bytes to the buffer 513. In this case, the 8 baht is lost, and then packet synchronization is achieved. Therefore, the synchronization search unit 511 can achieve synchronization in the next packet period when the packet synchronization is incorrect.

상기와 같이 일단 패킷 동기가 맞춰지게 되면, 상기 패킷동기를 무선 링크 상의 이상이 발생되지 않는 한 계속 유지된다. 따라서 상기 동기검색부511은 상기 패킷 동기가 이루어진 상태에서는 상기 차감값을 0으로 유지하게 되며, 따라서 상기 동기검색부511은 입력되는 패킷 데이터를 버퍼513에 패킷 단위로 버퍼링할 수 있도록 제어한다. 따라서 본 발명의 실시예에 따른 동기검색부511은 입력되는 패킷의 매 바이트들에 대하여 동기바이트를 검색하는 방법이 아니라 패킷 구간에서 동기바이트의 차감값에 의해 동기화된 패킷의 첫 바이트의 동기만을 확인하여 패킷 동기를 이루게 됨을 알 수 있다. 이때 상기 패킷헤더처리부515가 패킷헤더 처리시 첫 번째 바이트가 동기바이트인가 확인하며, 상기 동기바이트가 아닌 경우 상기 동기검색부511에 동기가 틀어졌음을 알릴 수 있다. 그러면 상기 동기검색부511은 상기와 같은 동작을 수행하면서 입력되는 패킷의 동기를 맞출 수 있다.Once packet synchronization is established as above, the packet synchronization is maintained as long as no abnormality on the radio link occurs. Accordingly, the synchronization search unit 511 maintains the deduction value as 0 when the packet synchronization is performed. Therefore, the synchronization search unit 511 controls the buffer data to be buffered in the buffer 513 in units of packets. Therefore, the synchronization search unit 511 according to an embodiment of the present invention only checks the synchronization of the first byte of the packet synchronized by the subtraction value of the synchronization byte in the packet interval, not a method of searching for the synchronization byte for every byte of the input packet. It can be seen that the packet synchronization is achieved. At this time, the packet header processing unit 515 checks whether the first byte is a synchronization byte during packet header processing, and if not, the packet header processing unit 515 may notify the synchronization search unit 511 that the synchronization is out of sync. Then, the synchronization searching unit 511 may synchronize the input packet while performing the above operation.

도 13a - 도 13c는 본 발명의 실시예에 따른 상기 버퍼513의 구성을 도시하는 도면들이다. 여기서 상기 도 13a는 입력되는 TS신호를 패킷크기로 버퍼링하며, 버퍼링된 패킷 데이터를 병렬로 출력하는 구조이다. 이런 경우 상기 처리부515-521들은 버퍼513에서 병렬 출력되는 188바이트의 바이트들을 동시에 억세스할 수 있으며, 이때 상기 처리부515-521들은 각각 설정된 버퍼513의 버퍼링된 데이터를 동시에 억세스할 수 있다. 도 13b는 두 개의 버퍼675 및 677을 사용하여 버퍼513을 구현하는 예를 도시하고 있다. 상기 도 13b와 같이 상기 버퍼513을 구현하면, 상기 버퍼675에 입력되는 TS 패킷을 버퍼링할 때 처리부515-521들은 버퍼677에 버퍼링된 데이터를 억세스하여 처리하며, 이후 상기 입력되는 TS 패킷을 버퍼 677에 버퍼링할 때 상기 처리부515-521들은 버퍼 675에 버퍼링된 패킷을 억세스하여 처리하게 된다. 도 13c는 상기 버퍼513의 메모리를 듀얼포트메모리683(dual port memory)으로 구현한 예를 도시하고 있다. 이런 경우, 상기 메모리683은 각각 입력되는 TS 패킷을 버퍼링하는 동작과 상기 버퍼링된 패킷들을 처리부515-521들이 억세스하는 동작을 독립적으로 구현할 수 있다.13A to 13C are diagrams showing the configuration of the buffer 513 according to the embodiment of the present invention. 13A illustrates a structure in which an input TS signal is buffered to a packet size and outputs buffered packet data in parallel. In this case, the processing units 515-521 may simultaneously access 188 bytes of bytes output in parallel from the buffer 513. In this case, the processing units 515-521 may simultaneously access the buffered data of the set buffer 513. FIG. 13B shows an example of implementing buffer 513 using two buffers 675 and 677. FIG. When the buffer 513 is implemented as shown in FIG. 13B, the processor 515-521 accesses and processes the data buffered in the buffer 677 when buffering the TS packet input to the buffer 675, and then processes the input TS packet in the buffer 677. When buffering the data, the processor 515-521 accesses and processes the packet buffered in the buffer 675. FIG. 13C illustrates an example in which the memory of the buffer 513 is implemented as a dual port memory 683. In this case, the memory 683 may independently implement an operation of buffering input TS packets and an operation of accessing the buffered packets by the processing units 515-521.

먼저 상기 도 13a를 참조하면, 버퍼입력부651은 상기 입력되는 패킷데이타를 바이트단위로 버퍼661-66N에 분배하여 입력하는 동작을 수행한다. 상기 버퍼입력부651은 카운터 및 멀티플렉서로 구성할 수 있다. 이때 상기 버퍼입력부651의 카운터에서 출력되는 카운트 값은 상기 버퍼661-66N을 선택하는 데이터로 사용될 수 있으며, 멀티플렉서는 상기 카운트 값에 의해 상기 입력되는 패킷의 바이트 데이터들을 각각 대응되는 버퍼661-66N에 출력하는 기능을 수행할 수 있다. 이때 상기 버퍼661-66N은 188바이트의 1패킷 데이터를 버퍼링할 수 있는 수로 구비되어야 하며, 따라서 상기 N은 188이 될 수 있다. 따라서 상기 버퍼입력부651의 카운터는 188진 카운터가 될 수 있으며, 멀티플렉서는 상기 입력되는 패킷의 바이트 데이터들을 상기 188개의 상기 버퍼661-66N에 다중화할 수 있는 구성을 가질 수 있다. 또한 상기 버퍼입력부651의 카운트값은 상기 동기검색부511의 차감값추출부615에 동기바이트의 위치값으로 인가될 수 있으며, 상기 멀티플렉서에 입력되는 패킷데이타는 상기 동기확인부613의 입력으로 사용될 수 있다. 그리고 상기 입력지연기611에서 출력되는 신호는 상기 버퍼입력부651의 카운터의 카운트 리세트값으로 사용될 수 있다.First, referring to FIG. 13A, the buffer input unit 651 distributes the input packet data to the buffers 661-66N in byte units and performs input. The buffer input unit 651 may include a counter and a multiplexer. In this case, the count value output from the counter of the buffer input unit 651 may be used as data for selecting the buffers 661-66N, and the multiplexer stores byte data of the input packet to the corresponding buffers 661-66N by the count value. You can execute the function of printing. In this case, the buffers 661-66N should be provided as a number capable of buffering 1 packet of 188 bytes of data, and thus, N may be 188. Accordingly, the counter of the buffer input unit 651 may be a 188-degree counter, and the multiplexer may have a configuration capable of multiplexing byte data of the input packet into the 188 buffers 661-66N. The count value of the buffer input unit 651 may be applied to the subtraction value extractor 615 of the sync search unit 511 as a position value of a sync byte, and the packet data input to the multiplexer may be used as an input of the sync check unit 613. have. The signal output from the input delay unit 611 may be used as a count reset value of the counter of the buffer input unit 651.

상기한 바와 같이 버퍼입력부651은 입력되는 패킷의 바이트 데이터들을 다중화하여 각각 대응되는 버퍼661-66N에 입력하며, 상기 버퍼661-66N은 입력되는 바이트 데이터들을 일시 버퍼링한다. 그리고 버퍼출력부653은 상기 버퍼661-66N에서 버퍼링되고 있는 데이터를 병렬 버퍼링한다. 이후 상기 버퍼링된 데이터가 1패킷의 188바이트 데이터가 되면, 상기 버퍼출력부653은 상기 병렬 버퍼링하고 있는 1패킷의 데이터를 패킷버퍼655에 출력한다. 이때 상기 버퍼출력부653의 출력제어신호는 상기 버퍼입력부651의 카운터의 카운트 종료신호를 사용할 수 있다. 그러면 상기 패킷버퍼655는 상기 버퍼출력부653에서 출력되는 1패킷의 병렬 데이터를 버퍼링하며, 이때 상기 버퍼입력부651에 의해 상기 버퍼661-66N에는 다음 패킷의 바이트 데이터들이 버퍼링되기 시작한다. 따라서 상기 버퍼661-66N에 버퍼링되는 패킷과 상기 패킷버퍼655에 버퍼링되는 패킷은 1패킷의 차이가 발생될 수 있다. 그러면 각 처리부515-521들은 상기 버퍼661-66N에서 입력되는 패킷을 버퍼링하는 사이에 상기 패킷버퍼655에 버퍼링하고 있는 패킷 데이터를 처리할 수 있게 된다. 상기 도 13a와 같은 버퍼513을 사용하는 상기 처리부515-521은 각각 병렬 출력되는 1패킷의 버퍼링 데이터를 병렬로 억세스하여 동시에 처리할 수 있다.As described above, the buffer input unit 651 multiplexes the byte data of the input packet and inputs them to the corresponding buffers 661-66N, and the buffers 661-66N temporarily buffer the input byte data. The buffer output unit 653 then parallel buffers the data buffered in the buffers 661-66N. Then, when the buffered data becomes 188 byte data of one packet, the buffer output unit 653 outputs the data of one packet being buffered in parallel to the packet buffer 655. In this case, the output control signal of the buffer output unit 653 may use the count end signal of the counter of the buffer input unit 651. Then, the packet buffer 655 buffers one packet of parallel data output from the buffer output unit 653. At this time, the buffer input unit 651 starts to buffer byte data of the next packet in the buffer 661-66N. Accordingly, a difference between one packet may occur between the packet buffered in the buffers 661-66N and the packet buffered in the packet buffer 655. Then, the processing units 515-521 can process the packet data buffered in the packet buffer 655 while buffering the packets input from the buffers 661-66N. The processing units 515 to 521 using the buffer 513 as shown in FIG. 13A can simultaneously access the buffering data of one packet output in parallel and process them in parallel.

두 번째로 상기 도 13b를 참조하면, 버퍼메모리673은 두 개의 패킷들을 저장할 수 있으며, 이를 위하여 제1버퍼675 및 제2버퍼677로 구성할 수 있다. 이는 상기 입력되는 패킷을 제1버퍼675에 버퍼링하는 동안 상기 처리부515- 521은 상기 제2버퍼677에 버퍼링된 패킷을 억세스하여 처리하며, 이후 상기 입력되는 패킷을 상기 제2버퍼677에 버퍼링하는 동안 상기 처리부515-521은 상기 제1버퍼675에 버퍼링된 패킷을 억세스하여 처리한다. 이때 상기 제1버퍼675 및 제2버퍼677은 데이터 입력 및 데이터 출력을 각각 독립적으로 사용할 수 있도록 구성하며, 상기 데이터 입력라인은 상기 동기검색부511 측에 연결되고 상기 데이터 출력라인은 상기 처리부515-517 측에 연결되도록 구성한다. Secondly, referring to FIG. 13B, the buffer memory 673 may store two packets. For this purpose, the buffer memory 673 may be configured of a first buffer 675 and a second buffer 677. The processor 515-521 accesses and processes the packet buffered in the second buffer 677 while buffering the input packet in the first buffer 675, and then buffers the input packet in the second buffer 677. The processor 515-521 accesses and processes the packet buffered in the first buffer 675. In this case, the first buffer 675 and the second buffer 677 are configured to independently use data input and data output, and the data input line is connected to the synchronization search unit 511 and the data output line is the processor 515-. It is configured to be connected to the 517 side.

상기 버퍼675 및 677에 데이터를 버퍼링 또는 출력하기 위한 어드레스 및 제어신호를 발생하는 어드레스발생부671은 카운터로 구현할 수 있으며, 리드/라이트단자는 상기 카운터의 MSB 출력을 사용할 수 있다. 그리고 상기 어드레스발생부671의 카운트 클럭은 상기 입력되는 TS신호의 바이트 클럭을 사용한다. 따라서 상기 어드레스발생부671은 상기 동기검색부511에서 출력되는 바이트 데이터를 상기 버퍼메모리673에 저장하는 어드레스 신호를 발생하는 기능을 수행한다. 이때 상기 어드레스발생부671은 9비트의 출력을 가지며, 하위 8비트 라인들은 188진 카운터의 출력을 발생시키고 상위 9비트(MSB) 라인은 상기 버퍼675 및 677의 리드/라이트 제어신호로 사용한다. 이런 경우 상기 어드레스발생부671은 첫 번째 188진 카운터로 동작하는 동안 상기 MSB 라인은 로우 상태를 유지하고 두 번째 188진 카운터로 동작하는 동안 상기 MSB 라인은 하이 상태로 유지되도록 설계한다. 그러면 상기 TS신호에서 홀수번째 패킷들이 상기 제1버퍼675에 버퍼링되는 동안 상기 제2버퍼677에 버퍼링된 짝수번째 패킷들이 상기 처리부515-521들에 억세스되며, 짝수번째 패킷들이 상기 제2버퍼677에 버퍼링되는 동안 상기 제1버퍼675에 버퍼링된 짝수번째 패킷들이 상기 처리부515-521들에 억세스된다.The address generator 671 for generating an address and a control signal for buffering or outputting data to the buffers 675 and 677 may be implemented as a counter, and the read / write terminal may use the MSB output of the counter. The count clock of the address generator 671 uses the byte clock of the input TS signal. Therefore, the address generator 671 performs a function of generating an address signal for storing the byte data output from the sync search unit 511 in the buffer memory 673. In this case, the address generator 671 has an output of 9 bits, the lower 8 bit lines generate an output of a 188 binary counter, and the upper 9 bit (MSB) line is used as a read / write control signal of the buffers 675 and 677. In this case, the address generator 671 is designed such that the MSB line remains low while operating as the first 188 binary counter and the MSB line remains high while operating as the second 188 binary counter. Then, while odd numbered packets of the TS signal are buffered in the first buffer 675, even numbered packets buffered in the second buffer 677 are accessed to the processing unit 515-521, and even numbered packets are transmitted to the second buffer 677. During buffering, even-numbered packets buffered in the first buffer 675 are accessed by the processing units 515-521.

또한 상기 어드레스발생부671에서 출력되는 하위 8비트 라인은 상기 동기검색부611의 차감값추출부615에 연결된다. 그리고 상기 차감값추출부616의 출력을 상기 어드레스발생부671의 리세트신호로 입력한다. 그러면 상기 차감값발생부615는 상기 어드레스발생부671의 어드레스값을 입력하며, 상기 동기확인부613에서 동기바이트 입력을 확인하면 이때의 어드레스값은 상기 동기바이트가 상기 버퍼메모리673에 저장된 위치 정보를 의미한다. 그러면 상기 차감값 추출부616는 상기 동기바이트가 저장된 현재의 버퍼링 위치에서 상기 동기바이트가 버퍼링되어야할 위치값을 계산한 후, 상기 계산된 차감값 만큼 상기 지연부611 및 상기 어드레스발생부671의 동작을 중단시킨다. 그러면 상기 어드레스발생부671은 상기 버퍼메모리673의 어드레싱을 중단한다.The lower 8-bit line output from the address generator 671 is connected to the subtraction value extractor 615 of the sync search unit 611. The output of the subtraction value extractor 616 is input as a reset signal of the address generator 671. Then, the subtraction value generation unit 615 inputs the address value of the address generation unit 671. When the synchronization confirmation unit 613 confirms the input of the synchronization byte, the address value at this time is the location information stored in the buffer memory 673. it means. Subsequently, the subtraction value extractor 616 calculates a position value at which the sync byte is to be buffered at the current buffering position where the sync byte is stored, and then operates the delay unit 611 and the address generator 671 by the calculated subtraction value. Stop. The address generator 671 then stops addressing the buffer memory 673.

상기 도 13b와 같은 방식은 두 개의 패킷 크기를 가지는 버퍼메모리를 구비하며, 하나의 버퍼메모리가 입력되는 패킷을 버퍼링하는 동안 다른 버퍼메모리에 버퍼링된 패킷을 출력하여 처리부515-521들이 처리하도록 제어한다. 이때 상기 버퍼메모리의 라이트 및 리드 어드레싱 동작은 동일한 속도로 이루어지게 된다.13B includes a buffer memory having two packet sizes, and outputs a buffered packet to another buffer memory while one buffer memory buffers an input packet to control the processing unit 515-521 to process the same. . At this time, the write and read addressing operations of the buffer memory are performed at the same speed.

세 번째로 도 13c를 살펴보면, 버퍼메모리683은 듀얼포트메모리(dual port memory)가 될 수 있다. 상기 듀얼포트메모리를 버퍼메모리683으로 사용하는 경우, 상기 제1어드레스발생부681 및 제2어드레스발생부685는 각각 다른 속도를 가지는 어드레스들을 발생할 수 있다. 즉, 상기 제1어드레스발생부681은 상기 입력되는 바이트 데이터를 저장할 수 있는 속도의 어드레싱을 수행하며, 상기 제2어드레스발생부685는 상기 처리부515-521들에서 처리할 수 있는 속도의 어드레싱을 수행할 수 있다. 이때 상기 제2어드레스발생부685의 어드레싱 시작 시점은 상기 제1어드레스발생부681의 어드레스 시작시점과 일치시켜야 한다. 이는 상기 버퍼메모리683에 1패킷의 버퍼링시간에 맞춰 상기 버퍼링된 패킷의 출력시점도 맞춰야 하기 때문이다. 따라서 상기 제1어드레스발생부681 및 제2어드레스발생부685의 어드레싱을 위한 카운트 클럭은 다른 속도를 가지는 클럭을 사용할 수 있으며, 상기 제2어드레스발생부685의 카운트 리세트 동작은 상기 제1어드레스발생부681에 의해 수행되도록 구성한다. 또한 상기 제1어드레스발생부681과 상기 동기검색부511의 동작은 상기도 13b의 어드레스발생부671과 동일하게 구현하면된다.Thirdly, referring to FIG. 13C, the buffer memory 683 may be a dual port memory. When the dual port memory is used as the buffer memory 683, the first address generator 681 and the second address generator 685 may generate addresses having different speeds. That is, the first address generator 681 performs addressing at a speed capable of storing the input byte data, and the second address generator 685 performs addressing at a speed that can be processed by the processing units 515-521. can do. At this time, the addressing start time of the second address generating part 685 should match the address start time of the first address generating part 681. This is because the output time of the buffered packet must also be matched with the buffering time of one packet in the buffer memory 683. Accordingly, a clock having a different speed may be used as a count clock for addressing the first address generator 681 and the second address generator 685, and the count reset operation of the second address generator 685 may generate the first address. It is configured to be performed by section 681. The operations of the first address generator 681 and the synchronization search unit 511 may be implemented in the same manner as the address generator 671 of FIG. 13B.

상기와 같이 상기 버퍼513이 패킷 데이터를 병렬 버퍼링하고 있는 상태에서 각 처리부515-521들은 상기 버퍼링된 패킷 데이터에서 해당하는 헤더정보들을 분석하여 패킷 데이터를 분석하여 처리한 후, 오디오 ES 또는 비디오 ES를 추출하여 오디오 복호기450 또는 비디오 복호기430에 역다중화한다. 이때 상기 각 처리부515-521에서 처리되는 헤더정보들은 제어부300에 전달되어 디지털 방송 처리를 위한 제어정보로 사용된다.As described above, in the state where the buffer 513 is buffering the packet data in parallel, the processing units 515-521 analyze the packet data by analyzing corresponding header information in the buffered packet data, and then process the audio ES or the video ES. Extract and demultiplex the audio decoder 450 or the video decoder 430. At this time, the header information processed by each processing unit 515-521 is transmitted to the control unit 300 and used as control information for digital broadcast processing.

이를 위하여 본 발명의 실시예에서 패킷헤더처리부515는 상기 버퍼513에 버퍼링되는 패킷에서 패킷헤더를 분석하여 부가정보 포함 여부를 확인하며, 부가정보가 포함되지 않은 패킷이면 상기 PES헤더처리부519에 패킷처리 명령을 발생하며, 이때 PES헤더처리부519에서 처리하여야 할 버퍼513의 위치정보도 함께 전송한다. 즉, 상기 패킷헤더처리부515는 패킷헤더 4바이트를 제외한 상기 버퍼513의 5번째 - 188번째 바이트의 188바이트를 처리하라는 명령을 발생한다. 또한 상기 버퍼513에 버퍼링된 데이터가 부가정보만 포함된 패킷이면 상기 패킷헤더처리부515는 상기 부가정보처리부517에 패킷헤더 4바이트를 제외한 상기 버퍼513의 5번째 - 188번째 바이트의 188바이트를 처리하라는 명령을 발생한다. 또한 상기 버퍼513에 버퍼링된 데이터가 부가정보만 포함된 패킷이면 상기 패킷헤더처리부515는 상기 부가정보처리부517에 부가정보 및 PES 헤더를 포함하는 패킷임을 알리는 명령과 함께 부가정보처리부517에 부가정보를 처리하라는 명령을 발생한다. 이때 상기 패킷헤더처리부515는 상기 PES헤더처리부519에 PES헤더를 처리할 준비를 명령할 수도 있다. 그러면 상기 부가정보처리부517은 상기 패킷에 포함된 부가정보 및 PES헤더의 길이를 확인한 후, PES 헤더길이를 상기 패킷헤더처리부515 또는 PES헤더처리부519에 전달한다. 상기 PES헤더처리부519는 상기 패킷헤더처리부515 또는 부가정보처리부517에서 처리 명령을 수신하면, 전달되는 버퍼513의 위치에 버퍼링된 데이터를 PES헤더를 분석하며, 분석 결과에 따라 실제 데이터가 버퍼링된 위치 정보를 데이터처리부521에 전송하고, PES 헤더를 처리한다. 그리고 상기 데이터처리부521은 상기 제어부300에서 전송되는 PID 정보에 따라 상기 PES헤더처리부519에서 전달되는 위치의 버퍼링 데이터들을 오디오 또는 비디오 ES 데이터로 생성하여 각각 대응되는 비디오복호기430 또는 오디오복호기450에 역다중화하여 출력한다.To this end, in the embodiment of the present invention, the packet header processing unit 515 analyzes the packet header in the packet buffered in the buffer 513 and checks whether the additional information is included. If the packet does not include the additional information, the packet header processing unit 515 processes the packet to the PES header processing unit 519. In this case, the position information of the buffer 513 to be processed by the PES header processing unit 519 is also transmitted. That is, the packet header processing unit 515 generates a command to process 188 bytes of the 5th-188th bytes of the buffer 513 except 4 bytes of the packet header. In addition, if the data buffered in the buffer 513 is a packet including only additional information, the packet header processing unit 515 requests the additional information processing unit 517 to process 188 bytes of the fifth to 188th bytes of the buffer 513 excluding the packet header 4 bytes. Issue the command. If the data buffered in the buffer 513 is a packet including only additional information, the packet header processing unit 515 informs the additional information processing unit 517 of the additional information and the additional information to the additional information processing unit 517 together with a command for notifying that the packet includes the PES header. Issue a command to process. In this case, the packet header processing unit 515 may instruct the PES header processing unit 519 to prepare to process the PES header. Then, the additional information processor 517 checks the additional information included in the packet and the length of the PES header, and then transmits the PES header length to the packet header processor 515 or PES header processor 519. When the PES header processing unit 519 receives a processing command from the packet header processing unit 515 or the additional information processing unit 517, the PES header processing unit analyzes the PES header with the data buffered at the position of the buffer 513 to be delivered, and the actual data is buffered according to the analysis result. The information is transmitted to the data processing unit 521, and the PES header is processed. The data processor 521 generates the buffering data of the position transmitted from the PES header processor 519 as audio or video ES data according to the PID information transmitted from the controller 300, and demultiplexes the corresponding video decoder 430 or the audio decoder 450, respectively. To print.

또한 상기 패킷헤더, 부가정보헤더, PES 헤더들을 상기 제어부300이 분석하여 처리할 수도 있다. 즉, 상기 패킷의 헤더정보(패킷헤더, 부가정보 헤더, PES 헤더)들을 상기 제어부300이 분석한 후, 상기 헤더정보의 분석 결과에 따라 상기 처리부515-521들을 병렬 제어하면서 상기 버퍼513에 저장된 패킷 데이터들을 병렬 처리할 수도 있다.In addition, the control unit 300 may analyze and process the packet header, additional information header, and PES headers. That is, after the controller 300 analyzes the header information (packet header, additional information header, PES header) of the packet, the packet stored in the buffer 513 while controlling the processing units 515-521 in parallel according to the analysis result of the header information. You can also process the data in parallel.

먼저 상기 패킷헤더처리부515의 동작을 살펴본다. 도 14a 및 도 14b는 상기 패킷헤더처리부515에서 버퍼링된 패킷헤더를 분석하여 처리하는 절차를 도시하는 흐름도이다. 여기서 도 14a는 하나의 패킷에 부가정보와 PES헤더가 모두 포함된 경우 부가정보처리부517이 상기 PES헤더처리부519에 처리 명령을 전달하는 절차를 도시하고 있으며, 도 14b는 패킷헤더처리부515가 상기 PES헤더처리부519에 처리 명령을 전달하는 절차를 도시하고 있다.First, the operation of the packet header processing unit 515 will be described. 14A and 14B are flowcharts illustrating a procedure of analyzing and processing a packet header buffered by the packet header processing unit 515. 14A illustrates a procedure in which the additional information processing unit 517 transfers a processing instruction to the PES header processing unit 519 when both the additional information and the PES header are included in one packet, and FIG. 14B illustrates that the packet header processing unit 515 transmits the PES header. The procedure for transferring the processing instruction to the header processing unit 519 is shown.

상기 도 14a를 참조하면, 상기 패킷헤더는 도 8c에 도시된 바와 같이 4바이트로 구성되며, 상기 버퍼513의 첫 번째 - 4바이트 영역에 버퍼링된다. 그리고 상기 패킷헤더는 PID(product identifier)를 포함한다. 여기서 상기 PID는 뒤에 이어지는 패킷이 네트워크 정보 테이블(network information talble: 이하 NIT라 칭함), 서비스 정보 테이블(service information table0, 방송채널의 오디오 또는 비디오 정보를 식별하기 위한 정보로 사용된다. 여기서 상기 NIT는 디지털 방송국의 주파수 채널 정보 테이블이며, SIT는 주파수 채널에서 서비스되는 방송채널 테이블이다. 따라서 사용자가 임의의 디지털 방송채널을 선택하면, 상기 제어부300은 먼저 상기 NIT를 수신하여 선택된 방송채널이 사용하는 주파수 채널을 확인한 후, 상기 RF튜너310을 제어하여 상기 선택된 방송채널의 주파수로 RF채널을 고정시킨다. 또한 상기 디지털 방송에서는 하나의 주파수 채널에 다수의 방송채널들을 서비스하며, 통상적으로 하나의 주파수 채널을 5개의 방송국들이 사용하게 된다. 따라서 상기 상기 하나의 RF채널을 사용하는 다수의 방송국들의 오디오 및 비디오 ES들을 구분하기 위한 정보들이 상기 SIT에 포함되어 있으며, 제어부300은 상기 SIT를 참조하여 사용자가 원하는 방송채널의 오디오 및 비디오 PID를 결정하게 된다. 그리고 상기 역다중화부410은 상기 수신되는 패킷들의 PID를 검색하여 상기 결정된 PID인 경우에만 입력되는 패킷들을 역다중화하게 된다.Referring to FIG. 14A, the packet header is composed of 4 bytes as shown in FIG. 8C, and is buffered in the first-4 byte region of the buffer 513. The packet header includes a product identifier (PID). Here, the PID is used as information for identifying a subsequent packet in a network information table (hereinafter referred to as NIT), a service information table (service information table 0, and audio or video information of a broadcast channel). A frequency channel information table of a digital broadcasting station, and a SIT is a broadcasting channel table serviced in a frequency channel, so when the user selects an arbitrary digital broadcasting channel, the controller 300 first receives the NIT and uses the frequency of the selected broadcasting channel. After confirming the channel, the RF tuner 310 is fixed to fix the RF channel at the frequency of the selected broadcast channel, and in the digital broadcast, a plurality of broadcast channels are serviced in one frequency channel, and typically one frequency channel is provided. Five stations will be used. Information for distinguishing audio and video ESs of a plurality of broadcasting stations using RF channels is included in the SIT, and the controller 300 determines the audio and video PID of a broadcasting channel desired by a user with reference to the SIT. The demultiplexer 410 searches for the PIDs of the received packets and demultiplexes the inputted packets only in the case of the determined PID.

따라서 상기 패킷이 상기 버퍼513에 버퍼링되면, 상기 패킷헤더처리부515는 701단계에서 상기 버퍼링된 패킷헤더의 PID를 분석하여 NIT임을 식별하기 위한 PID로 판정되면, 703단계에서 이를 감지하고 705단계에서 상기 버퍼513에 버퍼링된 5번째 - 188번째 바이트의 패킷데이타를 상기 제어부300에 전달한다. 그러면 상기 제어부300은 상기 NIT를 분석한 후, 상기 RF튜너310을 제어하여 상기 사용자가 선택된 방송국의 주파수 채널로 고정시킨다. 이후 상기 SIT 식별용 PID가 수신되면, 상기 패킷헤더처리부515는 707단계에서 이를 감지하고 708단계에서 역시 상기 버퍼513에 버퍼링된 패킷들을 상기 제어부300에 전달한다. 이후 상기 제어부300에서 전달되는 선택된 방송국의 오디오 및 비디오 식별용 PID들을 수신하여 이를 목표 PID들로 결정한다. 이후 상기 패킷헤더처리부515는 상기 설정된 목표PID들을 분석하여 수신되는 방송국의 패킷들을 역다중화할 수 있도록 한다.Accordingly, when the packet is buffered in the buffer 513, the packet header processing unit 515 analyzes the PID of the buffered packet header in step 701 and determines that the packet is a PID for identifying that the packet is NIT. The packet data of the fifth to 188th bytes buffered in the buffer 513 is transmitted to the controller 300. Then, after analyzing the NIT, the controller 300 controls the RF tuner 310 to fix the frequency channel of the selected broadcasting station. When the PID for SIT identification is received, the packet header processing unit 515 detects this in step 707 and delivers the packets buffered in the buffer 513 to the control unit 300 in step 708. Subsequently, audio and video identification PIDs of the selected broadcasting station transmitted from the control unit 300 are received and determined as target PIDs. Thereafter, the packet header processing unit 515 analyzes the set target PIDs to demultiplex packets of a broadcast station.

상기한 바와 목표 PID가 결정되면, 상기 패킷헤더처리부515는 패킷이 입력되면 패킷헤더의 PID가 설정된 PID인가 검사한다. 이때 상기 버퍼링된 패킷의 PID가 설정된 PID가 아니면 상기 패킷헤더처리부515는 711단계에서 이를 감지하고 입력된 패킷의 역다중화 절차를 수행하지 않는다. 그러나 상기 입력된 패킷헤더에 포함된 PID가 설정된 PID이면 711단계에서 이를 감지하고 713단계에서 상기 패킷헤더를 분석한다. 상기 도 8c와 같은 패킷 헤더에는 패킷데이타를 식별하기 위한 PID 정보 및 부가정보 포함 여부를 나태내는 부가정보제어 파라미터들을 가지고 있으며, 또한 현재 패킷의 에러여부, PES의 시작여부, 우선순위, 스클램블링 모드 및 동일 PID에 대한 카운트 데이터들을 포함하고 있다. 그리고 상기 부가정보처리부517에서 처리할 부가정보의 여부를 표시하는 부가정보제어(adatation field control) 파라미터를 포함하고 있다. 상기 패킷헤더처리부515는 상기 패킷헤더에서 상기 부가정보제어 파라미터를 분석하여 상기 부가정보처리부517의 동작 여부를 결정한다. 상기 패킷헤더처리부515는 상기 도 8c 및 <표 1>과 같은 구조를 가지는 패킷헤더에서 부가정보제어 파라미터를 분석하여 부가정보가 포함된 패킷인가를 검사한다. As described above and when the target PID is determined, the packet header processing unit 515 checks whether the packet header PID is a set PID when a packet is input. If the PID of the buffered packet is not the set PID, the packet header processing unit 515 detects this in step 711 and does not perform the demultiplexing procedure of the input packet. However, if the PID included in the input packet header is a set PID, it is detected in step 711 and the packet header is analyzed in step 713. The packet header as shown in FIG. 8C has additional information control parameters indicating whether PID information and additional information are included for identifying packet data, and also whether an error of a current packet, a start of a PES, a priority, a scrambling Contains count data for the mode and the same PID. And an additional field control parameter indicating whether additional information to be processed by the additional information processor 517 is displayed. The packet header processing unit 515 analyzes the additional information control parameter in the packet header to determine whether to operate the additional information processing unit 517. The packet header processing unit 515 analyzes the additional information control parameter in the packet header having the structure shown in FIG. 8C and Table 1 and checks whether the packet includes the additional information.

상기 부가정보 파라미터는 상기 <표 1>에 나타낸 바와 같이 2비트로 이루어지며, "01"이면 입력된 패킷이 부가정보 없이 순수 페이로드만으로 이루어졌음을 나타내며, "10"이면 입력된 패킷이 부가정보로만 이루어졌음을 나타내고, "11"이면 부가정보 및 페이로드가 함께 포함되었음을 나타낸다. 따라서 상기 패킷헤더처리부515는 상기 부가정보제어 파라미터를 분석한 후, 부가정보가 포함되지 않은 패킷이면(adaptation field control: "01") 상기 패킷헤더처리부515는 715단계에서를 이를 감지하고 717단계에서 상기 PES헤더처리부519에 상기 패킷헤더 4바이트를 제외한 나머지 패킷(184바이트)를 처리하도록 명령한다. 이후 상기 패킷헤더처리부515는 719단계에서 상기 패킷헤더를 처리한 후 방송에 관련된 정보들은 상기 제어부300에 전송한다. 이런 경우 상기 부가정보처리부517은 동작되지 않는다. As shown in <Table 1>, the additional information parameter is composed of 2 bits. If "01" indicates that the input packet is composed of pure payload without additional information, and "10" indicates that the input packet is additional information only. "11" indicates that additional information and payload are included together. Accordingly, after the packet header processing unit 515 analyzes the additional information control parameter, if the packet does not include additional information (adaptation field control: " 01 "), the packet header processing unit 515 detects this in step 715 and in step 717. The PES header processing unit 519 is instructed to process the remaining packets (184 bytes) except the 4 packet headers. In step 719, the packet header processing unit 515 processes the packet header and transmits information related to broadcasting to the control unit 300. In this case, the additional information processing unit 517 does not operate.

또한 상기 입력된 패킷이 부가정보로만 이루어진 패킷이면(adaptation field control: "10") 상기 패킷헤더처리부515는 721단계에서 이를 감지하고 723단계에서 상기 부가정보처리부517에 상기 패킷헤더 4바이트를 제외한 나머지 패킷(184바이트)을 처리하도록 명령한다. 이후 상기 패킷헤더처리부515는 719단계에서 상기 패킷헤더를 처리한 후 방송에 관련된 정보들은 상기 제어부300에 전송한다. 이런 경우 상기 PES헤더처리부519 및 데이터처리부521은 동작되지 않는다. In addition, if the input packet is a packet including only additional information (adaptation field control: “10”), the packet header processing unit 515 detects it in step 721 and the remaining information except for the packet header 4 bytes in the additional information processor 517 in step 723. Instructs processing of packet (184 bytes). In step 719, the packet header processing unit 515 processes the packet header and transmits information related to broadcasting to the control unit 300. In this case, the PES header processor 519 and the data processor 521 are not operated.

그러나 상기 입력된 패킷이 부가정보 및 페이로드를 모두 포함하는 패킷이면(adaptation field control: "11") 상기 패킷헤더처리부515는 상기 721단계에서 이를 감지하고, 725단계에서 상기 부가정보처리부517에 동작명령를 발생한다. 그리고 상기 719단계로 진행하여 상기 패킷헤더를 처리한 후 그 결과를 상기 제어부300에 전달한다. 이때 상기 패킷헤더처리부515는 상기 725단계에서 상기 PES헤더처리부519에도 동작명령을 발생할 수 있다. 이런 경우, 상기 부가정보처리부517에는 동작명령과 함께 상기 버퍼513에서 버퍼링된 데이터를 억세스할 수 있는 위치정보를 함께 전달하며, 상기 PES헤더처리부519에는 동작명령만 발생할 수 있다. 그러면 상기 PES헤더처리부519는 상기 패버퍼513에 버퍼링된 PES헤더를 처리할 준비를 하며, PES헤더의 처리는 상기 부가정보처리부517에서 PES헤더의 시작위치 정보를 전달받은 후 시작할 수 있다. However, if the input packet is a packet including both additional information and payload (adaptation field control: “11”), the packet header processing unit 515 detects this in step 721 and operates in the additional information processing unit 517 in step 725. Issue a command. In step 719, the packet header is processed and the result is transmitted to the controller 300. In this case, the packet header processing unit 515 may generate an operation command to the PES header processing unit 519 in step 725. In this case, the additional information processor 517 may transmit an operation command together with location information for accessing the data buffered in the buffer 513, and only the operation command may be generated in the PES header processor 519. Then, the PES header processing unit 519 prepares to process the PES header buffered in the buffer 513, and the processing of the PES header may start after receiving the start position information of the PES header from the additional information processing unit 517.

상기와 같이 패킷헤더처리부515는 수신되는 패킷의 패킷헤더를 PID를 분석하여 NIT 및 SIT 패킷은 상기 제어부300으로 전달하며, 제어부300으로부터 설정된 방송국의 비디오 및 오디오 PID를 수신하여 수신할 패킷 PID를 설정한다. 이후 상기 버퍼링되는 패킷이 설정된 목표 PID이면 패킷헤더를 분석하여 부가정보 패킷이면 상기 부가정보처리부517의 구동을 명령하고, PES헤더 패킷이면 상기 PES헤더처리부519의 구동을 명령하며, 이때 상기 각 처리부517 및 519에 데이터를 억세스하여 처리할 버퍼의 위치정보를 함께 전달한다. 그리고 상기 버퍼링된 패킷이 부가정보 및 PES헤더를 모두 포함하는 경우에는 상기 부가정보처리부517에 구동을 명령하고 버퍼513에 버퍼링된 부가정보의 시작위치 정보를 함께 전달한다. 그리고 상기 부가정보처리부517은 상기 부가정보를 분석하여 상기 PES헤더처리부519에 상기 버퍼513의 PES 헤더 버퍼링 위치를 알려준다.As described above, the packet header processing unit 515 analyzes the PID of the packet header of the received packet, transfers the NIT and SIT packets to the controller 300, and sets the packet PID to receive and receive the video and audio PIDs of the broadcasting station set from the controller 300. do. Thereafter, if the buffered packet is a set target PID, the packet header is analyzed, and if the additional information packet is an instruction to drive the additional information processing unit 517, and if the PES header packet is commanded to drive the PES header processing unit 519, wherein each processing unit 517 And location information of a buffer to be processed by accessing the data. When the buffered packet includes both the additional information and the PES header, the additional information processing unit 517 is instructed to drive and the start position information of the buffered additional information is transmitted to the buffer 513. The additional information processor 517 analyzes the additional information and informs the PES header processor 519 of the PES header buffering position of the buffer 513.

그러나 상기 패킷이 부가정보 및 PES헤더를 모두 포함하는 경우, 상기 패킷헤더처리부515가 상기 PES헤더처리부519에 상기 PES헤더가 버퍼링된 위치정보를 전달할 수 있다. 도 14b는 상기 패킷헤더처리부515가 상기 PES헤더처리부519에 상기 버퍼513에 버퍼링된 PES헤더의 위치 정보를 전달하는 방법을 도시하는 흐름도이다.However, if the packet includes both the additional information and the PES header, the packet header processing unit 515 may deliver the location information buffered by the PES header to the PES header processing unit 519. 14B is a flowchart illustrating a method in which the packet header processing unit 515 delivers the position information of the PES header buffered in the buffer 513 to the PES header processing unit 519.

상기 도 14b를 참조하면, 상기 710단계의 동작은 상기 도 14a의 701-709단계의 동작과 동일한다. 그리고 상기 711단계-723의 동작도 상기 도 14a에서의 동작과 동일하게 수행된다. 이때 상기 부가정보제어 파라미터의 분석 결과 상기 버퍼링된 패킷이 부가정보 및 PES 헤더를 포함하는 경우, 상기 패킷헤더처리부515는 721단계에서 이를 감지하고 725단계에서 부가정보처리부517의 구동을 명령하여 부가정보의 길이(N바이트: N은 부가정보 헤더의 adaptation field length에 의해 확인 가능함) 계산을 요구하고, 733단계에서 상기 부가정보처리부517에서 전달되는 상기 부가정보의 길이를 수신하며, 735단계에서 상기 버퍼513에 버퍼링된 PES헤더의 버퍼링 위치를 결정한 후, 부가정보처리부517에 N바이트의 데이터 처리를 명령하고 PES헤더처리부519에 184-N바이트의 데이터 처리를 명령한다.Referring to FIG. 14B, the operation of step 710 is the same as the operation of steps 701-709 of FIG. 14A. The operations of steps 711 to 723 are also performed in the same manner as the operation of FIG. 14A. In this case, when the buffered packet includes the additional information and the PES header, the packet header processing unit 515 detects this in step 721 and instructs the driving of the additional information processing unit 517 in step 725. (N bytes: N can be confirmed by the adaptation field length of the additional information header), and in step 733, receives the length of the additional information transferred from the additional information processing unit 517. In step 735, the buffer is received. After determining the buffering position of the PES header buffered at 513, the sub information processor 517 is instructed to process N bytes of data, and the PES header processor 519 is instructed to process 184-N bytes of data.

상기한 바와 같이 패킷헤더처리부515는 패킷 데이터가 버퍼링되면, 패킷헤더를 분석하여 설정된 PID를 가지는 패킷이면, 상기 패킷헤더에 포함된 부가정보제어 파라미터를 분석하여 각각 대응되는 처리부들의 구동을 명령한다. 이때 먼저 상기 입력된 패킷이 순수 페이로드로만 구성된 경우 상기 패킷헤더처리부515는 PES헤더처리부519를 구동하여 상기 버퍼513에 버퍼링된 패킷을 처리하도록 명령한다. 이때 상기 부가정보처리부517은 구동되지 않으며, 이로인해 직렬구조를 가지는 역다중화부410에서 부가정보처리부517에 패킷을 버퍼링하는 시간 및 부가정보처리부517에서 처리하는 시간을 단축할 수 있다.As described above, when the packet data is buffered, the packet header processing unit 515 analyzes the packet header and analyzes an additional information control parameter included in the packet header to instruct driving of the corresponding processing units. At this time, if the input packet is composed only of pure payload, the packet header processor 515 drives the PES header processor 519 to process the buffered packet in the buffer 513. In this case, the additional information processing unit 517 is not driven, and thus, the demultiplexer 410 having a serial structure can shorten the time for buffering a packet to the additional information processing unit 517 and the processing time in the additional information processing unit 517.

두 번째로 상기 입력된 패킷이 부가정보로만 구성된 경우 상기 패킷헤더처리부515는 상기 부가정보처리부517을 구동하여 상기 버퍼513에 버퍼링된 패킷을 처리하도록 명령한다. 이때 상기 PES헤더처리부519 및 데이터처리부521은 구동되지 않으며, 이로인해 직렬구조를 가지는 역다중화부410에서 PES헤더처리부 및 데이타처리부521에 패킷을 버퍼링하는 시간 및 각 처리부들에서 처리하는 시간을 단축할 수 있다.Secondly, when the input packet includes only additional information, the packet header processing unit 515 instructs the additional information processing unit 517 to process the buffered packet in the buffer 513. In this case, the PES header processing unit 519 and the data processing unit 521 are not driven, and thus, the demultiplexer 410 having a serial structure can shorten the time for buffering the packet to the PES header processing unit and the data processing unit 521 and the processing time in each processing unit. Can be.

세 번째로 상기 입력된 패킷이 부가정보 및 페이로드를 모두 포함하고 있는 경우, 상기 패킷헤더처리부515는 상기 부가정보처리부517로부터 상기 패킷에 포함된 부가정보의 길이를 확인하여 부가정보 및 페이로드 크기를 결정한 후, 상기 부가정보처리부517 및 PES헤더처리부519들이 상기 버퍼513에 버퍼링된 패킷들 중 해당하는 부가정보 및 페이로드들을 처리하도록 명령한다. 본 발명의 실시예에서는 상기 부가정보 및 페이로드가 하나의 패킷에 모두 포함된 경우, 상기 패킷헤더처리부515가 상기 부가정보처리부517에 패킷에 포함된 부가정보의 길이를 확인한 후, 이에 따라 상기 패킷헤더처리부515가 각각 부가정보처리부517 및 PES헤더처리부519가 각각 처리할 패킷 데이터의 크기를 결정하여 주는 것으로 설명되고 있다. 그러나 상기와 같이 패킷에 부가정보 및 페이로드가 모두 포함된 경우, 상기 부가정보처리부517이 상기 부가정보 헤더에서 부가정보의 길이를 확인한 후, 상기 PES헤더처리부519에 상기 부가정보를 제외한 나머지 패킷데이타들을 처리하도록 명령하는 방법으로 구현할 수도 있다. Third, when the input packet includes both the additional information and the payload, the packet header processing unit 515 checks the length of the additional information included in the packet from the additional information processing unit 517 to determine the additional information and the payload size. After determining the, the additional information processing unit 517 and the PES header processing unit 519 instruct to process corresponding additional information and payloads among the packets buffered in the buffer 513. According to an embodiment of the present invention, when the additional information and the payload are included in one packet, the packet header processing unit 515 checks the length of the additional information included in the packet in the additional information processing unit 517, and accordingly, the packet It has been described that the header processing unit 515 determines the size of packet data to be processed by the additional information processing unit 517 and the PES header processing unit 519, respectively. However, when the packet includes both the additional information and the payload as described above, after the additional information processing unit 517 checks the length of the additional information in the additional information header, the remaining packet data except for the additional information in the PES header processing unit 519. You can also implement it by telling it to process them.

상기와 같이 입력된 패킷이 부가정보 및 페이로드를 모두 포함하는 경우, 상기 부가정보처리부517 및 PES헤더처리부519가 각각 설정된 크기의 패킷 데이터들을 동시에 처리할 수 있으며, 이로인해 이로인해 직렬구조를 가지는 역다중화부410에서 패킷을 버퍼링하는 시간 및 각 처리부들에서 직렬적으로 패킷을 처리하는 시간을 단축할 수 있다.When the input packet includes both the additional information and the payload, the additional information processing unit 517 and the PES header processing unit 519 may simultaneously process packet data having a set size, and thus have a serial structure. The demultiplexer 410 may shorten the time for buffering the packets and the time for processing the packets serially in the respective processing units.

상기 부가정보처리부517은 상기 패킷의 부가정보를 처리하며, 상기 패킷헤더처리부515의 명령에 의해 동작되며 상기 버퍼513의 패킷헤더 영역을 제외한 5번째 - 188번째 바이트 영역의 데이터 또는 이들 영역들 일부 영역의 데이터들을 입력하게 된다. 상기 부가정보처리부517은 상기 도 9a - 도 9c와 같은 부가정보 헤더의 세부 정보 유무를 판단하는 식별자(flag)를 확인하고, 이에따른 부가정보들을 분석하여 저장한다. 여기서 상기 저장되는 정보는 프로그램 시간 정보의 기준값 PCR(program clock reference) 등이 될 수 있다. 또한 상기 부가정보들은 제어부300 및(또는) 복호기430, 450 등에 연결되어 전달될 수도 있다. 도 15는 본 발명의 실시예에 따른 부가정보처리부517의 동작절차를 도시하는 흐름도이다.The additional information processing unit 517 processes the additional information of the packet and is operated by a command of the packet header processing unit 515 and includes data of the fifth to 188th byte areas except for the packet header area of the buffer 513 or some areas of these areas. The data of is inputted. The additional information processing unit 517 checks an identifier (flag) for determining the presence or absence of detailed information of the additional information header as shown in FIGS. 9A to 9C, and analyzes and stores additional information accordingly. The stored information may be a reference value PCR (program clock reference) of program time information. In addition, the additional information may be connected to the control unit 300 and / or the decoders 430 and 450 and transmitted. 15 is a flowchart illustrating the operation of the additional information processing unit 517 according to the embodiment of the present invention.

상기 도 15를 참조하면, 상기 부가정보처리부517은 741단계에서 상기 패킷헤더처리부515에서 전달되는 구동 명령 및 부가정보의 버퍼링 위치 정보들을 수신한다. 이때 상기 패킷헤더처리부515에서 부가정보 처리 명령을 전달하는 방법은 상기한 바와 같이 패킷헤더의 부가정보제어 파라미터에 의해 결정된다. 이때 상기 버퍼링된 패킷이 모두 부가정보인 경우 상기 패킷헤더처리부515는 상기 버퍼513의 모든 영역을 처리하도록 명령한다. 그러면 상기 부가정보처리부517은 상기 버퍼513에 버퍼링된 패킷을 모두 부가정보로 판단하여 상기 도 15와 같은 절차를 수행하면서 처리한다. Referring to FIG. 15, in step 741, the additional information processor 517 receives buffering position information of a driving command and additional information transmitted from the packet header processor 515. In this case, the method of transmitting the additional information processing command by the packet header processing unit 515 is determined by the additional information control parameter of the packet header as described above. In this case, when all of the buffered packets are additional information, the packet header processing unit 515 instructs to process all areas of the buffer 513. Then, the additional information processing unit 517 determines all of the packets buffered in the buffer 513 as additional information and processes the same as in FIG. 15.

두 번째로 상기 버퍼링된 패킷에 부가정보와 PES헤더 데이터가 모두 포함된 경우, 상기 패킷헤더처리부515는 상기 부가정보처리부517에 부가정보의 처리 명령과 함께 상기 부가정보가 저장된 상기 버퍼513의 첫 번째 위치 정보를 함께 전달한다. 그러면 상기 부가정보처리부517은 상기 버퍼링된 부가정보를 억세스하여 부가정보의 길이를 확인한 후, 상기 PES헤더정보가 저장된 버퍼513의 위치를 확인하여 이를 상기 PES헤더처리부519에 전달하는 동시에 구동명령을 발생한다. 또한 상기 부가정보처리부517은 상기 패킷헤더처리부515가 상기 부가정보 길이의 확인을 요구하면, 상기 부가정보처리부517로부터 도 9b와 같은 부가정보헤더의 부가정보길이(adaptation field length) 파라미터의 값을 상기 패킷헤더정보처리부515에 전달한다. 그러면 상기 패킷헤더처리부515는 상기 부가정보처리부517 및 PES헤더처리부519에 각각 부가정보 및 페이로드의 버퍼링 위치 정보를 각각 알려주고 동작을 명령한다. 이하의 설명에서는 상기 패킷에 부가정보 및 PES헤더 데이터가 모두 포함된 경우에는 상기 부가정보처리부517이 상기 PES헤더처리부519에 상기 PES헤더 데이터의 버퍼링 위치 및 동작명령를 전달하는 경우를 살펴본다.Secondly, when both the additional information and the PES header data are included in the buffered packet, the packet header processing unit 515 is the first of the buffer 513 in which the additional information is stored together with a processing instruction of the additional information in the additional information processing unit 517. Pass location information together. Then, the additional information processor 517 accesses the buffered additional information to check the length of the additional information, checks the position of the buffer 513 in which the PES header information is stored, transfers it to the PES header processor 519, and simultaneously generates a driving command. do. Further, when the packet header processing unit 515 requests confirmation of the additional information length, the additional information processing unit 517 reads the value of an adaptation field length parameter of the additional information header as shown in FIG. 9B from the additional information processing unit 517. The packet header information is sent to the packet header information processing unit 515. Then, the packet header processing unit 515 notifies the additional information processing unit 517 and the PES header processing unit 519 of the additional information and the buffering position information of the payload, respectively, and instructs an operation. In the following description, when the packet includes both the additional information and the PES header data, the additional information processor 517 transfers the buffering position and the operation command of the PES header data to the PES header processor 519.

따라서 상기 부가정보처리부517은 상기 패킷헤더처리부515로부터 부가정보 처리 명령을 수신하면, 전달되는 부가정보의 위치 정보에 따라 상기 버퍼링된 패킷이 부가정보만으로 구성된 패킷인지 아니면 상기 PES헤더 데이터를 포함하는 패킷인지 알 수 있다. 이때 상기 부가정보만으로 구성된 패킷이면 상기 부가정보처리부517은 743단계에서 이를 감지하고 751단계로 진행한다. 그러난 상기 패킷이 부가정보 및 PES헤더를 포함하는 패킷이면, 상기 부가정보처리부517은 745단계에서 상기 도 도 9a와 같은 부가정보 구조에서 버퍼513의 5번째 영역에 버퍼링된 부가정보길이(adaptation field length)를 분석하여 패킷에 포함되는 부가정보의 길이(여기서 상기 부가정보 길이를 N이라고 가정한다)를 확인한다. 그리고 상기 부가정보처리부517은 747단계에서 상기 버퍼513에 버퍼링된 PES헤더의 길이 및 위치 정보를 계산한다. 이때 상기 패킷은 188바이트로써, 패킷헤더를 제외하면 184 바이트가 된다. 따라서 버퍼513에 저장된 부가정보는 5번째 바이트 위치에서부터 N 바이트 까지이므로, 상기 PES헤더 데이타가 버퍼링된 버퍼513의 위치는 188-N바이트(M바이트) 위치에서 188번째 바이트 위치까지이다. 이후 상기 부가정보처리부517은 749단계에서 상기 PES헤더처리부519에 상기 구동 명령과 함께 상기 계산된 PES헤더 데이터의 버퍼링 위치 데이터를 전달한다.Therefore, when the additional information processing unit 517 receives the additional information processing command from the packet header processing unit 515, the buffered packet is a packet including only additional information or the packet including the PES header data according to the location information of the additional information. It can be seen. In this case, if the packet includes only the additional information, the additional information processing unit 517 detects it in step 743 and proceeds to step 751. If the packet includes the additional information and the PES header, the additional information processing unit 517 may buffer the additional information length buffered in the fifth region of the buffer 513 in the additional information structure shown in FIG. 9A in step 745. length is analyzed to determine the length of the additional information included in the packet (assuming that the length of the additional information is N). In step 747, the additional information processor 517 calculates length and position information of the PES header buffered in the buffer 513. In this case, the packet is 188 bytes, which is 184 bytes except for the packet header. Therefore, since the additional information stored in the buffer 513 is from the fifth byte position to N bytes, the position of the buffer 513 in which the PES header data is buffered is from the 188-N byte (M byte) position to the 188th byte position. In step 749, the additional information processor 517 delivers the calculated buffering position data of the PES header data together with the driving command to the PES header processor 519.

이후 상기 부가정보처리부517은 751단계에서 상기 도 9a와 같은 부가정보의 기본필드 데이터들을 처리한다. 이후 상기 부가정보처리부517은 753단계에서 도 9a와 같은 부가헤더 데이터의 플래그(5 flags)를 검사하여 부가정보 추가필드1(optional field 1) 추가된 부가정보들이 있는가 검사한다. 즉, 상기 부가정보처리부517은 도 9a와 같은 부가정보 헤더의 5플래그("5 flags")를 검사하여 상기 부가정보 추가필드1(optional field 1)의 포함 여부를 판단한다. 상기 5플래그("5 flags")는 상기 <표 2>과 같은 구조를 가지며, 상기 5플래그의 플래그들이 세트된 경우에는 상기 도 9a와 같은 부가정보추가필드1(optional field 1) 영역에 도 9b와 같은 부가정보 추가필드1(optional field 1) 데이터들이 존재한다. 그러면 상기 부가정보처리부517은 755단계에서 상기 도 9b와 같은 부가정보 추가필드1(optional field 1) 데이터들을 처리하며, 757단계에서 상기 도 9b의 3플래그("3 flags") 영역을 검사하여 부가정보 추가필드2(optional field 2)의 포함여부를 검사한다. 이때에도 상기 <표 3>과 같은 3플래그("3 flags")에 플래그 값이 존재하면, 상기 도 9b와 같은 부가정보 추가필드2(optional field 2) 영역에 도 9c와 같은 부가정보 추가필드2(optional field 2) 데이터들이 존재한다. 그러면 상기 부가정보처리부517은 759단계에서 상기 도 9c와 같은 부가정보 추가필드2(optional field 2) 데이터들을 처리한다. 그러나 상기 753단계 또는 757단계에서 각각 5플래그("5 flags") 또는 3플래그("3 flags")에 플래그 값이 존재하지 않으면 상기 부가정보처리부517은 부가정보의 추가필드가 없음을 확인하고 리턴한다.In step 751, the additional information processor 517 processes the basic field data of the additional information as shown in FIG. 9A. In step 753, the additional information processing unit 517 checks whether additional information additional field 1 has been added by checking flags of additional header data as shown in FIG. 9A. That is, the additional information processing unit 517 determines whether the additional information additional field 1 (optional field 1) is included by checking five flags (“5 flags”) of the additional information header as shown in FIG. 9A. The 5 flag ("5 flags") has a structure as shown in Table 2, and if the flags of the 5 flag is set, the additional flag (optional field 1) area of FIG. Additional information field 1 (optional field 1) such as the data exists. In step 755, the additional information processing unit 517 processes additional information additional field 1 data as shown in FIG. 9B. In step 757, the additional information processing unit 517 checks and adds a 3 flag region of FIG. 9B. Checks for the inclusion of optional field 2. In this case, if a flag value exists in the 3 flag ("3 flags") as shown in Table 3, the additional information additional field 2 as shown in FIG. 9C is displayed in the additional information additional field 2 area as shown in FIG. 9B. (optional field 2) Data exists. In step 759, the additional information processor 517 processes the additional information additional field 2 data shown in FIG. 9C. However, in step 753 or 757, if there is no flag value in 5 flags ("5 flags") or 3 flags ("3 flags"), the additional information processing unit 517 confirms that there are no additional fields of additional information and returns. do.

상기한 바와 같이, 부가정보처리부517은 도 9a와 같은 부가정보의 기본필드 데이터들을 처리하고, 추가필드1(optional field 1)에 추가된 부가정보가 존재하는지 확인하며, 이는 상기 도 9a의 "5플래그" 값을 읽어와서 판단하게 된다. 이때 상기 "5플래그"에 플래그 값이 존재하는 경우 상기 플래그 값들은 도 9a의 "부가정보 추가필드1"에 도 9b와 같이 존재하게되며, 상기 부가정보처리부517은 상기 도 9b와 같은 "부가정보 추가필드1"을 처리한다. 이후 상기 부가정보처리부517은 도 9b와 같은 부가정보에서 부가정보 추가필드2(optional field 2)가 존재하는지 확인하며, 이는 상기 도 9b의 "3플래그" 값을 읽어와서 판단하게 된다. 이때 상기 "3플래그"에 플래그 값이 존재하는 경우 상기 플래그 값들은 도 9b의 "부가정보추가필드2"에 도 9c와 같이 존재하게 되며, 상기 부가정보처리부517은 상기 도 9c와 같은 "부가정보추가필드2"를 처리한다. As described above, the additional information processing unit 517 processes the basic field data of the additional information as shown in FIG. 9A and checks whether there is additional information added to the optional field 1, which is " 5 " It is determined by reading the "flag" value. In this case, when a flag value exists in the "5 flag", the flag values are present in the "additional information addition field 1" of FIG. 9A as shown in FIG. 9B, and the additional information processing unit 517 is the "additional information as shown in FIG. 9B. Process additional field 1 ". Thereafter, the additional information processor 517 checks whether there is an additional information additional field 2 (optional field 2) in the additional information as shown in FIG. 9B, which is determined by reading the "3 flag" value of FIG. 9B. In this case, when the flag value exists in the "3 flag", the flag values are present in the "additional information addition field 2" of FIG. 9B as shown in FIG. 9C, and the additional information processing unit 517 is the "additional information as shown in FIG. 9C. Process additional field 2 ".

또한 상기 패킷이 PES 헤더 데이터이거나 또는 상기 패킷이 부가정보 및 PES헤더 데이타를 포함하는 경우, 상기 PES헤더처리부519가 동작된다. 이때 동작은 상기 패킷헤더처리부515 또는 부가정보처리부517의 제어하에 이루어지며, 상기 패킷헤더처리부515 또는 부가정보처리부517은 상기 버퍼513에 저장된 PES 헤더 데이터의 버퍼링 위치 정보들도 함께 전달한다. 이때 상기 패킷에 부가정보 및 페이로드 데이터가 함께 존재하는 경우, 상기 PES헤더처리부519는 상기 부가정보처리부517에서 부가정보를 모두 억세스한 후 PES 헤더데이타들을 억세스하게 된다. 이때 상기 패킷헤더처리부515 및 부가정보처리부519는 상기 패킷이 PES헤더로만 구성되어 있는지 아니면 상기 PES헤더 및 실제 데이터 ES로 구성되었는지 알 수 없다. 따라서 상기 패킷헤더처리부515 및 부가정보처리부517은 상기 버퍼링된 패킷을 일단 PES헤더로 간주하며, 상기 PES헤더처리부519는 상기 버퍼링된 PES 헤더 데이터를 분석하여 상기 PES헤더 길이를 확인한 후, 상기 PES 헤더 이외의 실제 데이터들의 길이 및 위치를 결정하며, 이 결정된 실제데이타 ES의 버퍼링 위치 데이터를 상기 데이터 처리부521에 전달하게 된다. 상기 PES헤더의 추가필드 데이타들은 비디오 데이터의 경우 1프레임에 한번씩 전송되며, 오디오 데이터들의 경우에는 설정된 프레임들에 한번씩 전송된다. 따라서 대부분의 패킷들은 PES헤더의 기본필드 데이터들 만을 포함하게 된다.In addition, when the packet is PES header data or the packet includes additional information and PES header data, the PES header processing unit 519 is operated. In this case, the operation is performed under the control of the packet header processing unit 515 or the additional information processing unit 517, and the packet header processing unit 515 or the additional information processing unit 517 also transfers buffering position information of the PES header data stored in the buffer 513. In this case, when the additional information and the payload data are present in the packet, the PES header processing unit 519 accesses the PES header data after all of the additional information is accessed by the additional information processing unit 517. In this case, the packet header processing unit 515 and the additional information processing unit 519 may not know whether the packet includes only the PES header or the PES header and the actual data ES. Accordingly, the packet header processing unit 515 and the additional information processing unit 517 regard the buffered packet as a PES header once, and the PES header processing unit 519 analyzes the buffered PES header data to confirm the PES header length, and then the PES header. The length and position of the other actual data are determined, and the buffering position data of the determined actual data ES is transmitted to the data processor 521. Additional field data of the PES header are transmitted once per frame in case of video data, and once in set frames in case of audio data. Therefore, most packets contain only basic field data of PES header.

도 16은 상기 PES헤더처리부519에서 PES헤더 데이터를 처리하는 절차를 도시하는 흐름도이다.16 is a flowchart illustrating a procedure of processing PES header data in the PES header processing unit 519. FIG.

상기 도 16을 참조하면, 상기 PES헤더처리부519는 771단계에서 상기 패킷헤더처리부515 또는 상기 부가정보처리부517에서 구동 명령과 함께 상기 PES헤더 데이터의 버퍼링 위치 정보를 수신한다. 상기 PES헤더처리부517은 상기 버퍼513에 버퍼링된 패킷에서 상기 패킷헤더 영역을 제외한 5번째 - 188번째 바이트 버퍼 영역의 데이터 또는 상기 패킷헤더처리부515에서 설정된 188-N번째 -188번째 바이트 영역의 데이터들을 분석한다. 이때 상기 PES헤더처리부519는 도 10a와 같은 구조를 가지는 PES헤더의 시작을 의미하는 "10"을 확인하고, PES데이타 길이(PES header data length)를 분석하여 상기 PES헤더 데이터의 길이를 분석한다. 상기 PES데이타 길이(PES header data length)는 상기 PES헤더 데이터의 버퍼링 시작위치에서 3번째 바이트 위치에서 확인할 수 있다. 이후 상기 PES헤더처리부519는 상기 전달된 PES헤더의 위치 값이 상기 확인된 PES 헤더 데이터의 길이 보다 크면 775단계에서 실제 데이터 ES가 존재함을 감지하고, 777단계에서 상기 PES헤더 데이터의 길이를 제외한 나머지 버퍼링 데이터들을 실제 데이터 ES로 판단하여 상기 데이터처리부521에 구동 명령과 함께 실제 데이터 ES의 버퍼링 위치 정보를 전달한다. 즉, 상기 PES 헤더 데이터는 실제 헤더데이타들 만으로 구성될 수 있으며, 또한 실제 데이터 ES들을 포함할 수 있다. 그리고 대분의 패킷들은 상기 실제 데이터 ES들을 포함하게 된다. 따라서 상기 PES헤더처리부519는 상기 버퍼513에 버퍼링된 패킷에서 PES헤더 데이터들을 제외한 나머지 실제 데이터 ES의 버퍼링 위치 정보를 데이터처리부521에 전달하여 데이터처리부521에서 처리할 수 있도록 한다.Referring to FIG. 16, in step 771, the PES header processing unit 519 receives buffering position information of the PES header data together with a driving command from the packet header processing unit 515 or the additional information processing unit 517. The PES header processing unit 517 stores data of the 5 th-188 th byte buffer area except the packet header area from the packets buffered in the buffer 513 or data of the 188-N th-188 th byte area set by the packet header processing unit 515. Analyze At this time, the PES header processing unit 519 identifies “10”, which means the start of the PES header having the structure as shown in FIG. 10A, and analyzes the length of the PES header data by analyzing PES header data length. The PES data length (PES header data length) can be found at the third byte position from the buffering start position of the PES header data. Then, if the position value of the delivered PES header is greater than the length of the checked PES header data, the PES header processor 519 detects that the actual data ES exists in step 775, and excludes the length of the PES header data in step 777. The remaining buffering data is determined as the actual data ES, and the buffering position information of the actual data ES is transmitted to the data processor 521 together with the driving command. That is, the PES header data may consist of only actual header data and may also include actual data ESs. And most packets will contain the actual data ESs. Accordingly, the PES header processor 519 transfers buffering position information of the actual data ES except for the PES header data from the packet buffered in the buffer 513 to the data processor 521 for processing by the data processor 521.

상기 775단계에서 상기 버퍼링된 패킷에 실제데이타 ES가 존재하지 않거나 또는 상기 777단계를 수행한 후, 상기 PES헤더처리부519은 상기 도 10a와 같은 PES 헤더의 기본필드 플래그들을 통해 PES정보를 분석 및 처리한다. 상기 PES헤더의 기본필드에는 방송정보들이 포함되어 있으며, 상기 처리된 방송정보들은 상기 제어부300에 전달된다. PES헤더의 기본필드 데이터들을 처리한 후, 상기 PES헤더처리부519는 781단계에서 상기 도 10a와 같은 기본필드의 플래그(7 flags)들을 검사하여 PES헤더의 추가필드1이 존재하는가 검사한다. 상기 7플래그들은 상기 <표 4>와 같은 기능을 가지며, 상기 7플래그들 중에 임의 플래그들이 세트되어 있으면, 상기 PES헤더처리부519는 781단계에서 상기 PES헤더의 추가필드1(PES optional field 1)이 존재함을 감지하고, 783단계에서 상기 도 10b와 같은 추가필드1(PES optional field 1)을 처리한 후, 그 결과를 상기 제어부300에 전달한다. 이후 상기 PES헤더처리부519는 785단계에서 상기 도 10c와 같은 PES 확장필드(PES extension)의 플래그(5 flags)들을 검사하여 PES 헤더의 추가필드2(PES optional field 2)가 존재하는가 검사한다. 이때 상기 <표 5>와 같은 5플래그들 중의 임의 플래그들이 세트되어 있으면, 상기 PES헤더처리부519는 785단계에서 상기 추가필드2(PES optional field 2)가 존재함을 감지하고 787단계에서 도 10d와 같은 PES헤더 추가필드2의 데이터를 처리한 후, 그 결과를 상기 제어부300에 전달한다. 그러나 상기 781단계 또는 785단계에서 PES헤더의 추가필드가 없는 것으로 판단되면, 상기 PES헤더처리부519는 상기 PES헤더 처리를 종료하고 리턴한다.After the actual data ES does not exist in the buffered packet in step 775 or after performing step 777, the PES header processing unit 519 analyzes and processes the PES information through the basic field flags of the PES header as shown in FIG. 10A. do. The basic field of the PES header includes broadcast information, and the processed broadcast information is transmitted to the controller 300. After processing the basic field data of the PES header, the PES header processing unit 519 checks the flags (7 flags) of the basic field as shown in FIG. 10A in step 781 to check whether the additional field 1 of the PES header exists. The seven flags have the function as shown in Table 4. If any flags are set among the seven flags, the PES header processing unit 519 determines that the additional field 1 of the PES header is set in step 781. In step 783, the controller detects the presence, processes the optional optional field 1 shown in FIG. 10B, and transmits the result to the controller 300. In step 785, the PES header processing unit 519 checks 5 flags of the PES extension field (PES extension) as shown in FIG. 10C to check whether an additional field 2 of the PES header exists. In this case, if any of the five flags as shown in Table 5 are set, the PES header processing unit 519 detects the presence of the PES optional field 2 in step 785 and the process shown in FIG. After processing the data of the same PES header additional field 2, the result is transmitted to the controller 300. However, if it is determined in step 781 or step 785 that there are no additional fields of the PES header, the PES header processing unit 519 terminates the PES header processing and returns.

상기한 바와 같이 PES헤더처리부519는 상기 도 16에 도시된 바와 같이, 먼저 상기 도 10a의 PES헤더 길이를 검사하여 상기 패킷에 포함된 PES헤더 길이 M을 확인한 후, 상기 패킷헤더처리부515에서 전달된 버퍼513의 184-N에서 상기 M 길이의 데이터를 PES 헤더로 결정한다. 그리고 상기 데이터처리부521에 상기 버퍼513의 184-N-M 길이의 데이터를 처리하도록 명령한다. 이때 상기 N은 부가정보의 길이로써, 상기 패킷이 PES헤더 및 실제데이터 ES만으로 구성된 경우에는 상기 부가정보 길이는 0이 된다. 상기 PES헤더처리부519는 상기 부가정보처리부517에서 부가정보를 처리하는 절차와 동일한 방법으로, 상기 도 10a와 같은 PES헤더의 기본필드를 처리하고, 상기 기본필드의 "7플래그" 영역을 검사하여 세트된 플래그가 존재하면 도 10b와 같은 PES헤더 추가필드1을 처리한다. 상기 PES 추가필드1은 PES헤더 확장필드(PES extension)을 구비하며, 상기 PES헤더 확장필드는 도 10c와 같은 구성을 가진다. 따라서 상기 PES헤더 추가필드1을 처리하는 상기 PES헤더처리부519는 도 10c의 "5플래그" 영역을 검사하여 세트된 플래그가 있으면 도 10d와 같은 PES헤더 추가필드2를 처리한다.As described above, the PES header processing unit 519 first checks the PES header length M included in the packet by checking the length of the PES header of FIG. 10A and then delivered from the packet header processing unit 515. The M length data is determined as a PES header in 184-N of the buffer 513. The data processor 521 is then instructed to process 184-N-M length data of the buffer 513. In this case, N is the length of the additional information. When the packet is composed of only the PES header and the actual data ES, the additional information length is zero. The PES header processing unit 519 processes the basic fields of the PES header as shown in FIG. 10A in the same manner as the additional information processing unit 517 processes the additional information, and checks and sets the "7 flag" area of the basic fields. If the present flag exists, the PES header additional field 1 as shown in FIG. 10B is processed. The PES additional field 1 includes a PES header extension field (PES extension), and the PES header extension field has a configuration as shown in FIG. 10C. Therefore, the PES header processing unit 519 processing the PES header additional field 1 checks the " 5 flag " area of FIG. 10C, and if there is a flag set, processes the PES header additional field 2 as shown in FIG. 10D.

상기와 같이 PES헤더처리부519가 상기 도 10a - 도 10d와 같은 PES헤더를 처리한다. 데이터처리부521은 상기 PES헤더처리부519에 의해 동작이 제어되며, 상기 제어부300으로부터 현재 입력되는 패킷이 비디오 또는 오디오 데이타인가를 확인한 후, 상기 버퍼513에 버퍼링된 데이터를 비디오 ES 또는 오디오 ES로 만들어 상기 비디오 복호기430 또는 오디오 복호기450에 전달한다. 즉, 상기 패킷이 버퍼513에 버퍼링되면, 패킷헤더처리부515는 상기 버퍼링된 패킷헤더의 PID를 분석하여 상기 제어부300에 입력된 패킷이 비디오인지 또는 오디오인지를 확인하여 상기 제어부300에 전달한다. 그러면 상기 제어부300은 상기 입력된 패킷을 식별할 수 있도록 상기 데이터처리부521에 비디오 또는 오디오 패킷임을 통보한다. 여기서는 상기 제어부300이 상기 데이터처리부521에 패킷 식별정보를 전달하는 것으로 설명하고 있지만, 상기 패킷헤더처리부515에서 상기 패킷헤더를 분석한 후, 데이터처리부521에 상기 패킷 식별정보를 전달할 수도 있다. 이때 상기 패킷헤더처리부515는 상기한 바와 같이 설정된 채널의 비디오 및 오디오 PID를 알고 있는 상태이며, 따라서 상기 패킷헤더에 포함된 PID를 분석하여 설정된 비디오 또는 오디오 PID를 포함하는 경우에는 이를 상기 데이터처리부521에 이를 알려줄 수 있다.As described above, the PES header processing unit 519 processes the PES header shown in FIGS. 10A to 10D. The operation of the data processor 521 is controlled by the PES header processor 519. After confirming whether a packet currently input from the controller 300 is video or audio data, the data processor 521 makes the data buffered in the buffer 513 into a video ES or an audio ES. The video decoder 430 or the audio decoder 450 passes. That is, when the packet is buffered in the buffer 513, the packet header processing unit 515 analyzes the PID of the buffered packet header, checks whether the packet input to the controller 300 is video or audio, and transmits the packet to the controller 300. Then, the controller 300 notifies the data processor 521 that it is a video or audio packet so that the input packet can be identified. Although the control unit 300 is described as transferring the packet identification information to the data processing unit 521, the packet header processing unit 515 may analyze the packet header and then transfer the packet identification information to the data processing unit 521. In this case, the packet header processing unit 515 is in a state of knowing the video and audio PID of the channel set as described above. Therefore, if the packet header processing unit 515 includes the video or audio PID set by analyzing the PID included in the packet header, the data processing unit 521 is determined. You can tell it.

이때 상기 도 10a와 같은 PES헤더의 기본필드는 매 패킷들에 포함되며, 추가필드를 포함하지 않는 경우, 상기 PES헤더의 기본필드는 3바이트로 이루어진다. 따라서 상기 패킷에 포함되는 실제데이타 ES는 최대 181바이트(패킷헤더 4바이트 및 PES헤더 3바이트를 제외한 나머지 바이트 데이터)가 될 수 있으며, 따라서 상기 데이터처리부521은 최대 상기 버퍼513의 8번째 -188번째 바이트 영역의 데이터를 입력할 수 있으며, 상기 PES헤더처리부519로부터 남아있는 실제 데이터(ES: elementary stream)를 확인하여 이를 비디오 또는 오디오 ES로 출력한다. 즉, 상기 데이터처리부521은 상기 처리부515-517들에서 처리하고 남은 패킷데이타(1패킷 데이터(188바이트) - 패킷헤더(4바이트) - 부가정보(N 바이트) - PES 헤더(M바이트))를 처리하며, 상기 패킷헤더에 포함된 PID 값에 따라 이를 비디오 또는 오디오 ES로 분리하여 파싱한다. 이때의 N 및 M은 각각 도 9a의 부가정보길이(adaptation field length) 및 도 10a의 PES 헤더 길이(PES header data length)에 따라 결정되며, 이때 상기 부가정보길이 및(또는) PES 헤더길이는 0(N=M=0, N=0, M=0)이 될 수도 있다. 또한 상기 부가정보길이 및(또는) PES 헤더길이가 0이 아닌 경우(N=M=0, N=0, M=0), 상기 데이터처리부521은 상기 부가정보처리부517 및(또는) PES헤더처리부519와 동시에 실제 데이터를 처리하므로, 패킷 데이터의 역다중화를 신속하게 수행할 수 있다.At this time, the basic field of the PES header as shown in FIG. 10A is included in every packet, and if the additional field is not included, the basic field of the PES header is 3 bytes. Therefore, the actual data ES included in the packet may be up to 181 bytes (byte data except for 4 bytes of packet headers and 3 bytes of PES headers), so that the data processor 521 is the 8th-188th of the buffer 513 at most. Data in the byte area can be input, and the PES header processor 519 checks the remaining elementary stream (ES) and outputs it to the video or audio ES. In other words, the data processing unit 521 processes the remaining packet data (one packet data (188 bytes)-packet header (4 bytes)-additional information (N bytes)-PES header (M bytes)) processed by the processing units 515-517. And parses it into a video or audio ES according to the PID value included in the packet header. In this case, N and M are determined according to the adaptation field length of FIG. 9A and the PES header data length of FIG. 10A, respectively, wherein the additional information length and / or the PES header length are 0. (N = M = 0, N = 0, M = 0). Further, when the additional information length and / or PES header length is not 0 (N = M = 0, N = 0, M = 0), the data processing unit 521 is the additional information processing unit 517 and / or PES header processing unit. Since real data is processed at the same time as 519, demultiplexing of packet data can be performed quickly.

일반적으로 상기 입력되는 TS신호의 패킷들은 상기 부가정보 및 PES헤더의 추가필드들을 포함하지 않는다. 즉, 상기 패킷데이타는 상기 부가정보 및(또는) PES 헤더를 필요한 경우에만 포함하게 된다. 따라서 상기 수신되는 패킷은 실제 데이터(ES)들이 주를 이루게 되며, 이런 경우 상기 패킷헤더처리부515, PES헤더처리부517 및 데이터처리부521만 동작하게되며, 상기 부가정보처리부517 은 동작하지 않게 된다. 또한 상기 PES헤더처리부517도 상기 PES헤더의 기본필드 데이터들만 처리하게 된다. 따라서 역다중화부410에서 수신되는 패킷을 복호기430 및 450에 역다중화할 때 신호하게 실제데이타(ES)들을 역다중화할 수 있다.In general, the packets of the input TS signal do not include additional fields of the side information and the PES header. That is, the packet data will include the additional information and / or PES header only when necessary. Accordingly, the received packet is mainly composed of actual data (ES). In this case, only the packet header processing unit 515, the PES header processing unit 517, and the data processing unit 521 operate, and the additional information processing unit 517 does not operate. Also, the PES header processing unit 517 processes only basic field data of the PES header. Therefore, when demultiplexing a packet received by the demultiplexer 410 to the decoders 430 and 450, the actual data ES may be demultiplexed to signal.

하기 <표 6>은 패킷데이타에 포함되는 PES헤더와 데이터 패킷의 구성 비를 나타내는 예를 나타내고 있다. 하기 <표 6>에 나타낸 바와 같이 PES헤더 패킷이나 부가정보 패킷은 상기 데이터 패킷에 비해 매우 적은 수의 패킷 수를 가진다. Table 6 below shows an example of a configuration ratio between the PES header and the data packet included in the packet data. As shown in Table 6 below, the PES header packet or the side information packet has a very small number of packets compared to the data packet.

총 패킷 수 Total packets 55,476 패킷 55,476 packets PIDPID 오디오 PIDAudio PID 0X0259   0X0259 비디오 PIDVideo PID 0X0258   0X0258 PES 패킷PES packet 총 PES 패킷 Total PES packets 104 패킷  104 packets 오디오 PESAudio PES 18 패킷   18 packets 비디오 PESVideo PES 86 패킷   86 packets

따라서 상기 패킷이 입력되면, 상기 버퍼513에 바이트 크기로 순차적으로 버퍼링되며, 또한 버퍼링하고 있는 이전 패킷들이 순차적으로 상기 처리부515-521들에 출력된다. 이때 상기 패킷헤더처리부515는 상기 패킷헤더 영역에서 출력되는 패킷헤더들을 분석하여 PID를 분석하고, 또한 상기 부가정보제어 파라미터를 분석하여 부가정보처리부517의 동작여부를 결정한다. 이때 상기 부가정보가 포함된 패킷이면, 상기 패킷헤더처리부515는 상기 부가정보처리부517의 동작을 명령하며 상기 버퍼515에 저장된 부가정보의 버퍼링 위치 데이터를 함께 전달한다. Therefore, when the packet is input, the buffer is sequentially buffered in the buffer size 513 and the previous packets being buffered are sequentially output to the processing units 515-521. In this case, the packet header processing unit 515 analyzes the packet headers output from the packet header area, analyzes the PID, and analyzes the additional information control parameter to determine whether the additional information processing unit 517 operates. In this case, if the packet includes the additional information, the packet header processing unit 515 commands the operation of the additional information processing unit 517 and transfers buffering position data of the additional information stored in the buffer 515 together.

그러면 상기 부가정보처리부517은 상기 부가정보가 출력되는 시점에서 상기 버퍼513의 출력을 입력하여 부가정보의 길이를 확인한다. 이때 부가정보만으로 구성된 패킷이면, 상기 부가정보처리부517은 상기 버퍼513에서 출력되는 부가정보 패킷을 처리한다. 그러나 상기 패킷이 PES헤더정보를 포함하는 패킷인 경우에는 상기 PES헤더처리부519의 동작을 명령하고 상기 버퍼513에 저장된 PES헤더 데이터의 위치 정보를 함께 전달한다. 그리고 상기 부가정보처리부517은 상기 버퍼513에서 순차적으로 출력되는 부가정보를 처리한다. Then, the additional information processor 517 checks the length of the additional information by inputting the output of the buffer 513 at the time when the additional information is output. In this case, if the packet includes only additional information, the additional information processing unit 517 processes the additional information packet output from the buffer 513. However, when the packet is a packet including the PES header information, the PES header processing unit 519 is instructed to transmit the position information of the PES header data stored in the buffer 513. The additional information processor 517 processes the additional information sequentially output from the buffer 513.

또한 상기 PES헤더처리부519는 상기 패킷헤더처리부515 또는 상기 부가정보처리부517에서 동작명령과 함께 상기 PES헤더 데이터가 버퍼링된 버퍼513의 위치 데이터를 전달받으면, 상기 버퍼513에서 PES헤더 데이터가 출력되는 시점에서 상기 버퍼513에서 출력되는 PES헤더를 입력하여 PES헤더의 길을 검사한다. 이때 상기 PES헤더만으로 이루어진 패킷이면 상기 PES헤더처리부519는 상기 버퍼513에서 순차적으로 출력되는 PES헤더 데이터들을 처리한다. 이때의 PES헤더데이타는 상기 <표 6>에 설명된 바와 같은 오디오 또는 비디오 PES헤더 데이터들이 될 수 있다. 그러나 상기 PES헤더 데이터와 함께 실제 데이터 ES가 포함된 패킷이면, 상기 PES헤더처리부519는 상기 버퍼513에서 PES헤더 데이터가 출력되는 시점에서 상기 버퍼513의 출력을 입력하여 PES헤더 길이를 분석한다. 그리고 상기 실제 데이터 ES의 길이를 분석한 후, 상기 데이터처리부521에 동작명령과 함께 상기 버퍼513에 저장된 실제 데이터 ES의 위치 데이터를 함께 전달한다. 그리고 상기 버퍼513에서 출력되는 상기 PES헤더의 기본필드 데이터들을 처리한다. When the PES header processing unit 519 receives the position data of the buffer 513 in which the PES header data is buffered together with an operation command from the packet header processing unit 515 or the additional information processing unit 517, the PES header processing unit 519 outputs the PES header data from the buffer 513. Inputs the PES header output from the buffer 513 to check the length of the PES header. In this case, if the packet includes only the PES header, the PES header processor 519 processes PES header data sequentially output from the buffer 513. In this case, the PES header data may be audio or video PES header data as described in Table 6 above. However, if the packet includes the actual data ES together with the PES header data, the PES header processing unit 519 analyzes the PES header length by inputting the output of the buffer 513 at the time point at which the PES header data is output from the buffer 513. After analyzing the length of the actual data ES, the data processor 521 transmits the position data of the actual data ES stored in the buffer 513 together with an operation command. The basic field data of the PES header output from the buffer 513 is processed.

상기 데이터처리부521은 상기 PES헤더처리부521에서 동작명령과 함께 상기 버퍼513에 저장된 실제데이타의 위치 데이터를 전달받으면, 상기 패킷헤더처리부515 또는 상기 제어부300에 전달받는 패킷 식별정보(오디오 PID 또는 비디오 PID)를 참조하여 상기 버퍼513에서 실제 데이터가 출력되는 시점에서 출력되는 데이터들을 상기 오디오 ES 또는 비디오 ES로 만들어 복호기 450 또는 430에 역다중화하여 출력한다. 이때 상기 데이터처리부521에서 출력되는 오디오 또는 비디오 ES는 상기 패킷데이타를 분해(depacket)한 실제 데이터가 된다.When the data processor 521 receives the position data of the actual data stored in the buffer 513 together with an operation command from the PES header processor 521, packet identification information (audio PID or video PID) transmitted to the packet header processor 515 or the controller 300. The data output at the time point at which the actual data is output from the buffer 513 is made into the audio ES or the video ES and demultiplexed to the decoder 450 or 430 and output. In this case, the audio or video ES output from the data processor 521 becomes actual data obtained by depacking the packet data.

상기한 바와 같이 본 발명의 실시예에 따른 역다중화 장치는 상기 입력되는 TS신호의 패킷들이 상기 부가정보 및(또는) PES헤더를 포함하는 경우, 상기 패킷 헤더정보에 따라 해당하는 처리부들이 동작된다. 즉, 예를들어 상기 입력된 패킷이 부가정보만으로 이루어진 경우, 상기 부가정보처리부517이 동작되어 입력된 패킷을 처리하며 PES헤더처리부519 및 데이터처리부521은 구동되지 않는다. 또한 상기 입력된 패킷이 PES 헤더 및 실제 데이터로 이루어진 경우, 상기 PES헤더처리부519가 PES헤더 포함여부를 검사하며, PES헤더만으로 구성된 패킷이면 상기 PES헤더처리부519만 동작하며, 상기 실제 데이타가 포함된 패킷이면 PES헤더처리부519 및 데이터처리부521이 함께 구동되어 각각 PES헤더 및 실제데이타(ES)를 처리한다. 또한 상기 입력된 패킷이 부가정보 및 PES헤더, 실제데이타로 이루어진 경우, 상기 부가정보처리부517 및(또는) PES헤더처리부519 및 데이터처리부521이 함께 구동되어 각각 부가정보 및(또는) PES헤더 및 실제데이타를 처리한다. 따라서 상기 패킷이 실제데이타(ES) 이외에 부가정보 및(또는) PES 헤더를 포함하는 경우, 각각 해당 데이터를 처리하는 처리부들이 병렬 구동되어 동시에 데이터를 처리하므로써, 역다중화를 신속하게 수행할 수 있다.As described above, in the demultiplexing apparatus according to the embodiment of the present invention, when packets of the input TS signal include the additional information and / or PES header, corresponding processing units are operated according to the packet header information. That is, for example, when the input packet includes only additional information, the additional information processing unit 517 is operated to process the input packet, and the PES header processing unit 519 and data processing unit 521 are not driven. In addition, when the input packet includes a PES header and actual data, the PES header processing unit 519 checks whether the PES header is included. If the packet is configured only with the PES header, only the PES header processing unit 519 operates, and the actual data is included. If it is a packet, the PES header processing unit 519 and the data processing unit 521 are driven together to process the PES header and the actual data (ES), respectively. In addition, when the input packet consists of additional information, PES header, and actual data, the additional information processing unit 517 and / or PES header processing unit 519 and data processing unit 521 are driven together to generate additional information and / or PES header and actual data, respectively. Process the data. Therefore, when the packet includes additional information and / or PES headers in addition to the actual data (ES), the processing units for processing the corresponding data are driven in parallel to process the data at the same time, thereby quickly performing demultiplexing.

따라서 직렬 구조를 가지는 역다중화부의 경우에는 패킷헤더처리부515, 부가정보처리부517, 패킷헤더처리부519 및 데이터처리부521의 순서로 패킷 데이터를 처리하므로, 처리할 정보(부가정보, PES 헤더, 데이터)가 없는 경우에도 모든 처리부들이 순차적으로 동작되어 불필요한 처리 시간을 소모하게 되지만, 본 발명의 실시예에서는 수신되는 패킷을 분석하여 패킷에 처리할 정보를 포함하는 경우에만 해당하는 처리부가 구동되어 데이터를 처리하므로, 데이터 처리 시간을 감축하여 역다중화 속도를 빠르게 구현할 수 있다.Therefore, in the case of the demultiplexer having a serial structure, the packet data is processed in the order of the packet header processing unit 515, the additional information processing unit 517, the packet header processing unit 519, and the data processing unit 521, so that the information to be processed (additional information, PES header, data) If not, all processing units are operated sequentially to consume unnecessary processing time. However, in the exemplary embodiment of the present invention, a processing unit is driven to process data only when the packet includes information to be processed by analyzing a received packet. As a result, the demultiplexing speed can be realized by reducing the data processing time.

두 번째로 직렬 구조를 가지는 역다중화부는 각 처리부들의 전단에 입력버퍼(또는 후단에 출력버퍼)를 가지게 되며, 상기 처리부에서 출력되는 데이터를 바이트 단위로 전송하므로써, 패킷을 전송하기 위하여 매우 빠른 클럭을 사용하여야 하며, 또한 다단의 버퍼들을 사용하므로써 데이터 전달에 많은 시간을 필요로하는 구조를 가지고 있다. 그러나 본건출원은 버퍼에서 패킷 크기의 데이터를 병렬 버퍼링하며, 데이터 처리시 해당하는 처리부들이 각각 상기 버퍼에서 각각 병렬 억세스하여 동시에 처리하므로 데이터를 전달하는 시간을 대폭 감축할 수 있으며, 이로인해 역다중화 속도를 크게 향상시킬 수 있다.Secondly, the demultiplexer having a serial structure has an input buffer (or an output buffer at the rear end) of each processing unit, and transmits the data output from the processing unit by byte unit, thereby making a very fast clock to transmit a packet. It also has a structure that requires a lot of time for data transfer by using multiple buffers. However, the present application parallelly buffers packet-sized data in the buffer, and when processing the data, the corresponding processing units respectively access the buffers in parallel and simultaneously process the data, thereby significantly reducing the time for transferring the data, thereby demultiplexing speed. Can greatly improve.

세 번째로 상기 동기검색시 입력되는 패킷의 모든 바이트를 검색하지 않고, 입력되는 패킷을 버퍼에 저장하면서 저장되는 바이트를 분석한 후 검출되는 동기바이트가 버퍼의 동기바이트 위치에 벗어난 경우에만 벗어난 위치의 차감값을 구하며, 상기 구해진 차감값 만큼 상기 입력되는 바이트 데이터를 지연시켜 동기를 구현한다. 따라서 동기 검색 방법을 단순화할 수 있다.Thirdly, instead of retrieving all the bytes of the input packet during the synchronous search, after analyzing the stored bytes while storing the input packet in the buffer, only when the detected sync byte is out of the sync byte position of the buffer, A synchronization value is obtained by delaying the input byte data by the obtained subtraction value. Therefore, the synchronous search method can be simplified.

두 번째로 상기 DVB_H 방식의 디지털 방송수신기와 같이 IP 기반의 방송데이타를 처리하는 구성을 살펴본다. 이때 상기 DVB_H 방식의 디지털 방송수신기의 구성은 도 5와 동일한 구성을 가진다. 이때 상기 DVB_H 방식의 디지털 방송수신기의 경우, 상기 방송수신기(RF튜너100 및 복조기120) 및 멀티미디어처리부330이 상기 DVB_T 방식의 디지털 방송송수신기와 다른 구성을 가진다. 이는 상기 DVB_H가 IP 기반의 방송신호를 처리하여야 하기 때문이다. Secondly, a configuration of processing broadcast data based on IP like the DVB_H digital broadcast receiver will be described. At this time, the configuration of the DVB_H digital broadcast receiver has the same configuration as that in FIG. In the case of the DVB_H digital broadcast receiver, the broadcast receivers (RF tuner 100 and demodulator 120) and the multimedia processing unit 330 have a different configuration from that of the DVB_T digital broadcast receiver. This is because the DVB_H has to process an IP-based broadcast signal.

도 17은 상기 DVB_H의 방송수신기(튜너310 및 복조기320)의 구성을 도시하는 도면이다.FIG. 17 shows the structure of the broadcast receivers (tuner 310 and demodulator 320) of the DVB_H.

상기 도 17을 참조하면, 상기 튜너310의 PLL815는 RISC827의 제어하에 방송채널의 물리주파수를 설정하기 위한 주파수를 발생하며, 믹서(mixer)813은 수신되는 방송신호와 상기 PLL815의 출력 주파수를 혼합하여 설정된 물리채널 주파수의 방송신호를 출력하며, 여파기817은 설정된 물리채널 주파수 대역의 신호를 여파 출력한다. 상기 복조기320의 A/D변환기821은 상기 튜너310의 출력신호를 디지털 데이터로 변환하며, OFDM 복조기823은 변조된 방송신호를 복조한다. 그리고 PID필터825는 상기 복조된 신호에서 설정된 방송채널의 PID를 가지는 신호를 필터링하며, 상기 PID필터825에서 출력되는 신호는 RISC827을 통해 버퍼829에 버퍼링된다. 이때 상기 RISC827은 디지털 방송수신기의 소비전력을 줄이기 위해 타임슬라이싱(time slicing)의 동작을 제어하며, 수신시 발생하는 에러를 보정하여 수신율을 향상시키기 위한 MPE-FEC 기능을 수행한다. 상기 버퍼829에서 버퍼링되는 데이터는 IP 데이터그램이다.Referring to FIG. 17, the PLL815 of the tuner 310 generates a frequency for setting a physical frequency of a broadcast channel under the control of RISC827, and a mixer 813 mixes the received broadcast signal with the output frequency of the PLL815. The broadcast signal of the set physical channel frequency is output, and the filter 817 filters and outputs the signal of the set physical channel frequency band. The A / D converter 821 of the demodulator 320 converts the output signal of the tuner 310 into digital data, and the OFDM demodulator 823 demodulates the modulated broadcast signal. The PID filter 825 filters the signal having the PID of the broadcast channel set in the demodulated signal, and the signal output from the PID filter 825 is buffered in the buffer 829 through the RISC827. At this time, the RISC827 controls the operation of time slicing to reduce power consumption of the digital broadcast receiver, and performs an MPE-FEC function to improve a reception rate by correcting an error generated during reception. The data buffered in the buffer 829 is an IP datagram.

상기 튜너310은 직접 변환(direct conversion) 방식의 튜너를 사용한다. 상기 튜너310은 설정된 방송채널의 주파수를 가지는 방송신호를 선택하여 I/Q신호로 변환하며, 복조기320은 상기 튜너310의 출력을 디지털 데이터로 변환한 후, OFDM 복조한다. 이때 상기 복조된 데이터는 MPEG2 TS 구조를 가지며, 여기서 설정된 방송채널의 PID를 가지는 데이터를 필터링한다. 이때 상기 PID 필터링된 데이터는 타임슬라이싱을 위한 시간 정보와 MPE-FEC 기능을 위한 패리티 바이트 테이블을 가진다. 상기 타임 슬라이싱은 디지털 방송수신기에서 하드웨어의 소비전력을 줄이기 위해 채택된 기법으로 원하는 방송에 해당하는 데이터가 수신될 때만 하드웨어가 동작되고, 원하는 데이터가 수신되지 않을 때에는 하드웨어를 오프시키는 기법으로, 따라서 상기 타임슬라이싱 기법을 사용하면 원하는 방송의 PID 데이터만을 출력하게 된다. 따라서 상기 PID 필터를 거쳐 원하는 PID에만 해당되는 데이터만을 수신하여 RISC827에서 MPEG2 TS 역다중화 과정을 수행하게 된다. 이때 상기 PID 필터링 과정에서 수행되는 MPEG2 TS 역다중화 과정은 같은 물리채널 주파수를 사용하는 여러 방송채널 중에서 사용자가 설정한 방송채널의 신호를 역다중화하는 동작을 수행하는 것으로, 상기 멀티미디어처리부330에서 수행되는 MPEG2 TS 역다중화와 다른 동작이다. 상기 MPEG2 TS 역다중화 과정을 수행하면, 상기 MPE 테이블과 패리티 정보로만 구성되어진 FEC 테이블을 구할 수 있다. 그리고 상기 MPE 테이블과 상기 FEC 테이블을 이용하여 MPE-FEC 기능을 수행하게 된다. The tuner 310 uses a direct conversion type tuner. The tuner 310 selects a broadcast signal having a set broadcast channel frequency and converts the broadcast signal into an I / Q signal. The demodulator 320 converts the output of the tuner 310 into digital data and demodulates the OFDM signal. In this case, the demodulated data has an MPEG2 TS structure and filters data having a PID of a broadcast channel set here. At this time, the PID filtered data has time information for time slicing and a parity byte table for MPE-FEC function. The time slicing is a technique adopted to reduce the power consumption of hardware in a digital broadcast receiver. The hardware is operated only when data corresponding to a desired broadcast is received, and the hardware is turned off when the desired data is not received. Using the time slicing technique, only PID data of a desired broadcast is output. Accordingly, only the data corresponding to the desired PID is received through the PID filter to perform the MPEG2 TS demultiplexing process in the RISC827. In this case, the MPEG2 TS demultiplexing process performed in the PID filtering process performs an operation of demultiplexing a signal of a broadcast channel set by a user among several broadcast channels using the same physical channel frequency, which is performed by the multimedia processing unit 330. This is different from MPEG2 TS demultiplexing. By performing the MPEG2 TS demultiplexing process, an FEC table consisting of only the MPE table and parity information can be obtained. The MPE table and the FEC table are used to perform an MPE-FEC function.

상기 방송수신기130은 341단계에서 튜너210의 물리채널주파수를 세팅한다. 즉, 상기 제어부110에서 방송채널의 주파수를 설정하기 위한 제어데이타를 수신하면, 상기 RISC327은 이를 감지하고, 상기 튜너310의 PLL315에 상기 물리채널 주파수를 세팅한다. 이후 상기 RISC327은 상기 OFDM 복조기223에 코딩 방식, 코딩율 및 가드 인터벌(guard interval) 등을 설정한다. 상기와 같이 물리주파수가 세팅되면, 상기 방송수신기130의 튜너310은 설정된 물리채널 주파수의 방송신호를 출력한다. The broadcast receiver 130 sets the physical channel frequency of the tuner 210 in step 341. That is, when the control unit 110 receives the control data for setting the frequency of the broadcast channel, the RISC327 detects this and sets the physical channel frequency in the PLL315 of the tuner 310. Thereafter, the RISC327 sets a coding scheme, a coding rate, a guard interval, and the like in the OFDM demodulator 223. When the physical frequency is set as described above, the tuner 310 of the broadcast receiver 130 outputs a broadcast signal of the set physical channel frequency.

그러면 상기 방송수신기130은 343단계에서 상기 튜너310의 출력을 디지털 데이터로 변환하고, 345단계에서 디지털 변환된 데이터를 OFDM(또는 COFDM) 복조하며, 347단계에서 상기 복조된 데이터 중에서 설정된 PID를 가지는 데이터를 필터링한다. 상기 PID 필터링 동작을 살펴보면, 상기 복조부323에서 출력되는 TS 스트림의 PID가 설정된 PID(사용자가 선택한 방송채널의 PID)와 일치하는가 검사한다. 이때 상기 PID가 일치하면, 상기 방송수신기130은 상기 입력된 TS 스트림의 PID를 분석한 후, 타임 슬라이싱 정보에 따라 튜너210 및 복조기220의 동작을 제어한다. 그러나 상기 PID가 일치하지 않으면, 상기 PID 필터링 과정을 종료하고 일치된 PID의 TS 스트림이 입력되기 전까지 대기한다.Then, the broadcast receiver 130 converts the output of the tuner 310 into digital data in step 343, OFDM (or COFDM) demodulates the digitally converted data in step 345, and data having a PID set among the demodulated data in step 347. To filter. Referring to the PID filtering operation, it is checked whether the PID of the TS stream output from the demodulator 323 matches the set PID (PID of a broadcast channel selected by the user). At this time, if the PID matches, the broadcast receiver 130 analyzes the PID of the input TS stream and controls the operations of the tuner 210 and the demodulator 220 according to the time slicing information. However, if the PID does not match, the PID filtering process ends and waits until the TS stream of the matched PID is input.

이후 상기 방송수신기130은 349단계에서 상기 PID 필터링된 데이터를 역다중화하며, 351단계에서 타임 슬라이싱 정보를 추출한 후, 상기 타임슬라이싱 정보를 상기 PID 필터325에 전달한다. 이후 상기 방송수신기130은 상기 수신된 데이터에서 MPE섹션/FEC섹션을 버퍼에 저장한 후, 357단계에서 버스트 데이터(burst data)를 모두 수신하였는가 검사한다. 이때 상기 방송수신기130은 상기 버스트 데이터를 수신하지 못한 경우 상기 343단계로 되돌아가 상기와 같은 동작을 반복 수행하며, 버스트 데이터를 모두 수신한 경우에는 359단계에서 상기 버퍼링된 데이타를 리드 솔로몬 복호(Reed-Solomon decoding)하며, 상기 멀티데이타처리부120에 인터럽트신호를 발생한다. 그리고 상기 방송수신기130은 상기 343단계로 되돌아가 설정된 PID의 다음 버스트 데이터의 수신을 대기한다.Thereafter, the broadcast receiver 130 demultiplexes the PID filtered data in step 349, extracts time slicing information in step 351, and then transfers the time slicing information to the PID filter 325. Thereafter, the broadcast receiver 130 stores the MPE section / FEC section in the buffer from the received data and checks whether all burst data have been received in step 357. If the burst receiver 130 does not receive the burst data, the broadcast receiver 130 returns to step 343 and repeats the above operation. When receiving the burst data, the broadcast receiver 130 reads the buffered data in step 359. Solomon decoding and generate an interrupt signal to the multi-data processing unit 120. The broadcast receiver 130 returns to step 343 and waits for reception of the next burst data of the set PID.

따라서 상기 RISC827에서 MPEG2 TS 역다중화와 MPE-FEC 과정을 수행하여 얻어진 최종 데이터인 IP 데이터그램을 상기 멀티데이타처리부130에 전달하여 방송을 재생하도록 한다.Therefore, the RISC827 delivers the IP datagram, which is the final data obtained by performing MPEG2 TS demultiplexing and MPE-FEC, to the multidata processor 130 to reproduce the broadcast.

그러면 상기 멀티미디어처리부330은 상기 복조기320에서 출력하는 IP 데이터그램을 수신하여 IP 정보를 디캡슐레이팅한 후 역다중화시켜 오디오 및 비디오 데이터를 처리하게 된다. 도 18은 멀티미디어처리부330의 구성을 도시하는 도면이다. Then, the multimedia processing unit 330 receives the IP datagram output from the demodulator 320, decapsulates the IP information, and demultiplexes the audio and video data. 18 is a diagram showing the configuration of the multimedia processing unit 330. FIG.

상기 도 18을 참조하면, IP 디캡슐레이터(IP decasulator)400은 상기 복조기320에서 출력되는 IP 데이터그램에서 IP 정보를 처리하여 서비스 데이터 패킷 스트림(service data packet stream) 및 ESG 데이터 패킷 스트림(ESG data packet stream)을 생성한다. 그리고 상기 서비스 데이터 패킷 스트림의 페이로드는 상기 역다중화기410에 전달하며, 상기 ESG 데이터 패킷 스트림은 상기 제어부300에 인가한다. 여기서 상기 역다중화기410에 인가되는 서비스 데이터 패킷 스트림의 페이로드는 A/V 패킷데이타 스트림으로 상기 역다중화기210 이후의 처리 동작은 상기 DVB_T의 처리 절차와 동일하게 수행된다. 즉, 서비스 데이터 패킷 스트림의 경우, 상기 IP정보를 디캡슐레이팅한 후, 상기 DVB_T와 동일한 구성 및 방법으로 오디오 및 비디오 패킷들을 처리하게 된다. Referring to FIG. 18, an IP decapulator 400 processes IP information from an IP datagram output from the demodulator 320 to process a service data packet stream and an ESG data packet stream. Create a packet stream. The payload of the service data packet stream is transmitted to the demultiplexer 410, and the ESG data packet stream is applied to the controller 300. Here, the payload of the service data packet stream applied to the demultiplexer 410 is an A / V packet data stream, and the processing after the demultiplexer 210 is performed in the same manner as the DVB_T processing procedure. That is, in the case of a service data packet stream, after decapsulating the IP information, audio and video packets are processed in the same configuration and method as the DVB_T.

상기와 구성을 가지는 디지털 방송수신기의 동작 절차를 살펴본다.An operation procedure of the digital broadcast receiver having the above configuration will be described.

먼저 상기 디지털방송의 수신 및 처리절차를 살펴보면, 상기 제어부300은 사용자에 의해 설정된 방송채널신호를 수신하기 위한 채널데이타를 상기 방송수신기에 출력한다. 이때 상기 채널데이타는 원하는 방송의 물리채널 주파수 정보 및 방송채널의 PID(PID: program ID) 등이 될 수 있다. 상기 방송수신기은 튜너310 및 복조기320으로 구성되며, 상기 튜너110은 상기 제어부300에 의해 설정된 채널 데이터에 의해 물리 채널을 세팅시켜 해당 주파수 채널로 송신되는 방송신호를 수신한다. 그리고 상기 방송수신기의 복조기320은 상기 튜너310에서 출력되는 방송신호를 복조하며, 상기 복조된 신호의 PID를 필터링하여 원하는 방송채널의 신호를 상기 멀티미디어처리부330에 인가한다. 이때 상기 멀티미디어처리부330에 전달되는 IP 데이터그램(IP datagram)으로 IP 정보가 포함된 방송 신호이다. 이때 상기 IP데이타그램은 하기 <표 7>과 같은 구조를 가지며, 여기서 서비스 데이터 패킷 스트림(service(A/V) data packet stream)은 하기 <표 8>과 같은 구조를 가지며, ESG 데이터 패킷 스트림은 <표 9>와 같은 구조를 가진다.First, the reception and processing procedure of the digital broadcast, the control unit 300 outputs the channel data for receiving the broadcast channel signal set by the user to the broadcast receiver. In this case, the channel data may be physical channel frequency information of a desired broadcast and PID (PID: program ID) of a broadcast channel. The broadcast receiver includes a tuner 310 and a demodulator 320. The tuner 110 receives a broadcast signal transmitted through a corresponding frequency channel by setting a physical channel according to channel data set by the controller 300. The demodulator 320 of the broadcast receiver demodulates the broadcast signal output from the tuner 310, filters the PID of the demodulated signal, and applies a signal of a desired broadcast channel to the multimedia processing unit 330. At this time, an IP datagram transmitted to the multimedia processor 330 is a broadcast signal including IP information. At this time, the IP datagram has a structure as shown in Table 7, where the service (A / V) data packet stream has a structure as shown in Table 8, and the ESG data packet stream It has a structure as shown in Table 9.

service 1service 1 service 2service 2 service 3service 3 data 1data 1 data2data2 ------------

IP headerIP header RTP headerRTP header payloadpayload IP headerIP header RTP headerRTP header payloadpayload ------------

IP headerIP header FLUTE headerFLUTE header payloadpayload IP headerIP header FLUTE headerFLUTE header payloadpayload ------------

상기 방송수신기에서 전송되는 상기 IP데이타그램은 상기 <표 8> 및 <표 9>와 같은 구조를 가질 수 있으며, 상기 IP 헤더는 하기 <표 10>과 같은 구조를 가질 수 있다. The IP datagram transmitted from the broadcast receiver may have structures as shown in Tables 8 and 9, and the IP header may have a structure as shown in Table 10 below.

versionversion IHLIHL type of servicetype of service total lengthtotal length identificationidentification flagsflags fragment offsetfragment offset time to livetime to live protocolprotocol header checksumheader checksum source addresssource address destination addressdestination address optionsoptions paddingpadding

상기 <표 10>에서 version(4비트)는 IP 포맷의 버전으로써, 현재는 IPv4(internet protocol version 4)가 사용되며 차세대 포맷으로 IPv6가 제안되어 그 사용이 확대되고 있는 추세이다. IHL(internet header length: 4비트)는 IP 헤더의 길이를 표시한다. 상기 IP 헤더의 길이는 상기 <표10>에 나타낸 바와 같이 20 바이트 크기(32비트 * 5열 = 160비트)로 구성되며, 마지막 열의 4바이트는 옵션 사항이다. type of service(8비트)는 전송되는 IP 데이터그램의 우선순위 등을 제어하기 위한 항목으로, QOS(quality of service) 기능을 수행한다. total length(16비트)는 전송되는 IP 데이터그램의 크기를 나타내는 항목으로 상기 IP헤더와 이어지는 실제 데이터(datagram)의 크기를 합친 크기를 표시한다. identification(16)비트는 전송하고자 하는 데이터그램에 단편화(fragmentation)이 발생된 경우, 단편화된 각 데이터그램들을 구분할 수 있는 일련번호이다. flags(3비트)는 데이터그램의 단편화에 대한 정보를 알려주기 위해서 사용된다. fragment offset(13비트)는 데이터그램에 대한 단편화가 발생된 경우 현재 데이터그램이 원래 데이터그램의 몇 번째 위치부터 단편화가 이루어졌는지 나타낸다. time to live(8비트)는 TTL이 불리며, 데이터그램이 살아있을 시간을 지정한다. header checksum(16비트)은 헤더의 오류를 체크하기 위한 정보이다. source address(32비트)는 데이터그램을 보내는 측(송신측)의 IP 주소이며, destination address(32비트)는 데이터그램을 받는 측(수신측)의 IP 주소이다. option(가변 크기)은 프로그램의 특성에 의해서 특정한 기능을 추가하기 위해 사용되며, 이 필드는 필수적인 것은 아니다. 데이터그램에 보안 기능을 추가하거나 QOS와 같은 기능, 또는 라우팅과 관련된 부가적인 여러 기능들을 추가하기 위해 사용될 수 있다. padding(가변크기)은 32비트 크기를 맞추기 위해 사용되며, 0으로 세팅된다.In Table 10, version (4 bits) is a version of the IP format, and currently, IPv4 (internet protocol version 4) is used, and IPv6 is proposed as a next-generation format, and its use is expanding. IHL (internet header length (4 bits)) indicates the length of the IP header. The length of the IP header is 20 bytes (32 bits * 5 columns = 160 bits) as shown in Table 10. The 4 bytes of the last column are optional. The type of service (8 bits) is an item for controlling the priority of the transmitted IP datagram and performs a quality of service (QOS) function. The total length (16 bits) is an item indicating the size of the IP datagram to be transmitted and indicates the combined size of the IP header followed by the actual datagram. The identification (16) bit is a serial number that can distinguish each fragmented datagram when fragmentation occurs in the datagram to be transmitted. flags (3 bits) are used to indicate information about fragmentation of the datagram. The fragment offset (13 bits) indicates when the fragmentation of the datagram occurs, from which position of the original datagram the current datagram is fragmented. time to live (8 bits) is called the TTL and specifies the time the datagram is alive. The header checksum (16 bits) is information for checking a header error. The source address (32 bits) is the IP address of the sending side (the sending side), and the destination address (32 bits) is the IP address of the receiving side (the receiving side). The option (variable size) is used to add specific functionality depending on the nature of the program. This field is not required. It can be used to add security to datagrams, to add features such as QOS, or to add additional functionality related to routing. padding is used to set the size to 32 bits and is set to zero.

상기한 바와 같이 상기 디지털방송신호가 DVB_H 방식의 신호이면, 상기 수신되는 방송신호는 IP 기반의 MPEG2 TS 구조를 가지는 데이터가 된다. 따라서 상기 DVB_H 방식의 방송신호를 수신하는 경우, 상기 멀티미디어처리부330은 상기 IP디캡슐레이터400을 통해 IP 정보를 제거하고, 역다중화기410을 통해 상기 수신되는 MPEG2 TS 구조에서 헤더정보를 분석하여 비디오 및 오디오 데이터를 역다중화 출력하여야 한다. As described above, if the digital broadcast signal is a DVB_H signal, the received broadcast signal is data having an IP-based MPEG2 TS structure. Therefore, when receiving the DVB_H type broadcast signal, the multimedia processing unit 330 removes the IP information through the IP decapsulator 400 and analyzes the header information in the received MPEG2 TS structure through the demultiplexer 410 for video and Audio data should be demultiplexed and output.

상기 방송수신기에서 출력되는 IP 데이터그램은 상기 <표 7>과 같은 형태로 입력되며, 상기 IP 데이터그램들의 각각은 상기 <표 8> 또는 <표 9>와 같은 구조를 가질 수 있다. 따라서 상기 <표 7>과 같은 구조의 IP 데이터그램이 입력되면, 상기 IP디캡슐레이터400은 상기 <표 10>과 같은 IP헤더를 분석하여 IP 버전 및 사용하는 프로토콜을 확인한다. 여기서 상기 IP 버전은 IP 버전 6과 IP 버전 4가 있을 수 있다. 이후 상기 IP디캡슐레이터210은 IP 버전 6이면 IP 버전6 헤더를 파싱(Parsing)하여 프로토콜을 검색하고, IP 버전 4이면 IP 버전 4 헤더를 파싱하여 프로토콜을 검색한다. 여기서 상기 프로토콜은 UDP 프로토콜 및 TCP/IP 프로토콜을 사용할 수 있다. 따라서 상기 IP디캡슐레이터400은 상기 프로토콜을 확인한 후, IP 헤더의 필드를 확인하여 페이로드 길이를 구한다. 이후 상기 IP디캡슐레이터400은 페이로드 데이터그램을 추출한 후, UDP 또는 TCP/IP 헤더를 제거하고, TS 스트림을 추출한다. The IP datagram output from the broadcast receiver may be input in a form as shown in Table 7, and each of the IP datagrams may have a structure as shown in Table 8 or Table 9. Therefore, when the IP datagram having the structure as shown in Table 7 is input, the IP decapsulator 400 analyzes the IP header as shown in Table 10 to confirm the IP version and the protocol to be used. Here, the IP version may include IP version 6 and IP version 4. Thereafter, the IP decapsulator 210 searches for a protocol by parsing an IP version 6 header when an IP version 6, and searches for a protocol by parsing an IP version 4 header when an IP version 4. Here, the protocol may use a UDP protocol and a TCP / IP protocol. Therefore, after checking the protocol, the IP decapsulator 400 checks the field of the IP header to obtain the payload length. The IP decapsulator 400 extracts the payload datagram, removes the UDP or TCP / IP header, and extracts the TS stream.

이때 상기 IP 데이터그램은 상기한 바와 같이 <표 8> 및 <표 9>와 같은 구조를 가질 수 있다. 여기서 상기 <표 8>과 같은 서비스 데이터 패킷 스트림은 비디오 및 오디오 데이터를 포함하는 패킷 스트림이 되며, <표 9>와 같은 ESG 데이터 패킷 스트림은 디지털 방송의 정보(EPG, 구매, 멀티미디어 데이터 등)를 포함하는 패킷 스트림이다. 본 발명의 실시예에서는 상기한 바와 같이 상기 ESG 데이터 패킷 스트림은 소프트웨어적으로 처리하는 것으로 가정한다. 따라서 상기 IP디캡슐레이터400은 상기 ESG 데이터 패킷 스트림의 경우에는 이를 제어부300에 전달한다. 또한 상기 <표 8>과 같은 서비스 데이터 패킷 스트림의 경우 RTP 헤더는 상기 제어부110에 전달하고, 상기 페이로드부분은 상기 역다중화기410에 전달한다. 이때 상기 역다중화기410에 전달되는 페이로드 정보는 MPEG2 TS 구조를 가지는 패킷 스트림이 될 수 있다.At this time, the IP datagram may have a structure as shown in Table 8 and Table 9 as described above. In this case, the service data packet stream as shown in Table 8 is a packet stream including video and audio data, and the ESG data packet stream as shown in Table 9 shows digital broadcast information (EPG, purchase, multimedia data, etc.). Packet stream to include. In the embodiment of the present invention, it is assumed that the ESG data packet stream is processed in software as described above. Accordingly, the IP decapsulator 400 delivers the ESG data packet stream to the controller 300. In addition, in the case of the service data packet stream as shown in Table 8, the RTP header is transmitted to the controller 110, and the payload portion is transmitted to the demultiplexer 410. In this case, the payload information delivered to the demultiplexer 410 may be a packet stream having an MPEG2 TS structure.

이때 상기 역다중화기410의 구조는 상기 도 7과 같은 병렬 구조를 가진다. 따라서 상기 DVB_H와 같이 IP 정보를 기반으로 하는 방송신호를 처리하는 디지털 방송수신기에서 수신되는 방송신호를 효과적으로 역다중화할 수 있다.At this time, the structure of the demultiplexer 410 has a parallel structure as shown in FIG. Therefore, it is possible to effectively demultiplex the broadcast signal received by the digital broadcast receiver processing the broadcast signal based on the IP information, such as DVB_H.

따라서 상기 DVB_H 방식과 같이 IP 기반의 방송신호를 처리하는 디지털 방송수신기의 경우에도 상기 TS 데이터를 병렬 역다중화 구조를 사용하므로써, 디지탈방송수신기는 수신되는 패킷을 분석하여 패킷에 처리할 정보를 포함하는 경우에만 해당하는 처리부가 구동되어 데이터를 처리할 수 있으며, 이로인해 상기 방송 데이터 처리 시간을 감축하여 역다중화 속도를 빠르게 구현할 수 있다.Therefore, even in a digital broadcast receiver that processes an IP-based broadcast signal like the DVB_H scheme, the digital broadcast receiver uses the parallel demultiplexing structure of the TS data, so that the digital broadcast receiver includes information to be processed in the packet by analyzing the received packet. Only in this case, a corresponding processing unit may be driven to process data, thereby reducing the broadcast data processing time, thereby speeding up the demultiplexing speed.

두 번째로 상기 DVB_H 방식의 디지털방송수신기에서 병렬 역다중화기를 사용하므로써, 버퍼에서 패킷 크기의 데이터를 병렬 버퍼링하며, 데이터 처리시 해당하는 처리부들이 각각 상기 버퍼에서 각각 병렬 억세스하여 동시에 처리하므로 데이터를 전달하는 시간을 대폭 감축할 수 있으며, 이로인해 역다중화 속도를 크게 향상시킬 수 있다.Secondly, by using the parallel demultiplexer in the DVB_H type digital broadcast receiver, the data of the packet size is parallel-buffered in the buffer, and the data are processed at the same time by the corresponding processing units in parallel. This can significantly reduce the time required to do so, which can greatly speed up demultiplexing.

세 번째로 상기 DVB_H 방식의 디지털방송수신기에서 상기 동기검색시 입력되는 패킷의 모든 바이트를 검색하지 않고, 입력되는 패킷을 버퍼에 저장하면서 저장되는 바이트를 분석한 후 검출되는 동기바이트가 버퍼의 동기바이트 위치에 벗어난 경우에만 벗어난 위치의 차감값을 구하며, 상기 구해진 차감값 만큼 상기 입력되는 바이트 데이터를 지연시켜 동기를 구현한다. 따라서 동기 검색 방법을 단순화할 수 있다.Thirdly, the DVB_H type digital broadcast receiver does not search all the bytes of the input packet during the synchronization search, but stores the input packet in the buffer and analyzes the stored byte. The subtraction value of the out of position is obtained only when out of position, and the input byte data is delayed by the obtained subtraction value to realize synchronization. Therefore, the synchronous search method can be simplified.

상술한 바와 같이 디지털 방송수신기에서 역다중화부를 병렬 처리하고 버퍼링된 패킷을 분석하여 패킷에 포함되는 정보들을 각각 대응되는 처리부들이 병렬 처리하므로써 역다중화 속도를 향상시킬 수 있으며, 각 처리부들이 하나의 버퍼에 저장된 패킷들을 억세스하여 처리하므로 버퍼의 구성을 간략화할 수 있는 동시에 데이터 전달시간을 대폭 감축할 수 있는 이점이 있다. 또한 역다중화시 입력되는 패킷을 일단 버퍼링한 후 버퍼링되는 데이터들 중에서 동기바이트를 확인하고 버퍼링되는 동기바이트의 위치로부터 원래 설정된 동기바이트 위치까지의 차감값을 결정하여 입력되는 데이터들을 지연하여 동기를 구하므로써 매바이트 마다 동기검출을 하지 않아도 되는 이점이 있다.As described above, in the digital broadcast receiver, the demultiplexer is processed in parallel, and the buffers are analyzed to process the information included in the packets in parallel by the corresponding processing units, thereby improving the demultiplexing speed. By accessing and processing the stored packets, the configuration of the buffer can be simplified and the data transfer time can be greatly reduced. Also, in case of demultiplexing, buffer the input packet once, check the sync byte among the buffered data, determine the subtraction value from the position of the buffered sync byte to the originally set sync byte position, and delay the input data to obtain sync. This has the advantage of not having to perform synchronous detection every byte.

Claims (32)

패킷헤더 및 페이로드로 구성되는 패킷데이타를 처리하는 디지털 방송수신기의 역다중화 장치에 있어서,In the demultiplexing apparatus of a digital broadcast receiver for processing packet data consisting of a packet header and a payload, 입력되는 패킷 데이터를 버퍼링하는 버퍼와,A buffer for buffering incoming packet data, 상기 버퍼에 병렬 연결되는 복수의 처리부들로 구성되며,It is composed of a plurality of processing units connected in parallel to the buffer, 상기 처리부들은, The processing unit, 상기 버퍼링된 패킷데이타의 패킷헤더를 검사하여 부가정보 포함 여부를 확인하며, 상기 부가정보 포함 여부에 따른 제어신호를 발생하는 패킷헤더처리부와,A packet header processing unit which checks the packet header of the buffered packet data to determine whether additional information is included and generates a control signal according to whether the additional information is included; 상기 패킷헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이타에서 부가정보를 처리하는 부가정보처리부와,An additional information processing unit for processing additional information in the buffered payload data under control of the packet header processing unit; 상기 패킷헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이타에서 PES 헤더를 처리하는 PES헤더처리부와,A PES header processing unit for processing a PES header in the buffered payload data by controlling the packet header processing unit; 상기 PES헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이터의 오디오 또는 비디오 데이터를 오디오 또는 비디오 이에스로 생성하여 각각 대응되는 복호기에 출력하는 데이터처리부로 구성된 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치. And a data processor for generating audio or video data of the buffered payload data into audio or video data and outputting the audio or video data to a decoder corresponding to the PES header processor. . 제1항에 있어서, 상기 패킷헤더처리부는 상기 패킷헤더의 부가정보제어 파라 미터를 분석하여 상기 페이로드 데이터가 부가정보를 포함하는지 판단하며, 상기 부가정보 포함시 상기 부가정보처리부가 상기 부가정보를 처리하도록 제어하며, 상기 부가정보가 포함되지 않았으면 상기 PES헤더처리부의 동작을 제어하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.The method of claim 1, wherein the packet header processing unit analyzes the additional information control parameter of the packet header to determine whether the payload data includes additional information, and when the additional information is included, the additional information processing unit is configured to display the additional information. And control the processing, and if the additional information is not included, controls the operation of the PES header processing unit. 제2항에 있어서, 상기 부가정보처리부는 상기 버퍼에서 버퍼링된 부가정보필드를 분석하여 부가정보의 길이를 분석하며, 상기 페이로드 데이터가 부가정보만으로 이루어진 경우 상기 부가정보를 처리하여 제어부에 전달하고, 상기 페이로드가 데이터가 다른 데이터를 포함하는 경우 상기 PES헤더처리부에 상기 버퍼에 버퍼링된 부가정보 외의 데이터 위치를 전달하며, 상기 부가정보를 처리하여 상기 제어부에 전달하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.The method of claim 2, wherein the additional information processor analyzes the length of the additional information by analyzing the additional information field buffered in the buffer, and if the payload data consists only of the additional information, processes the additional information and transmits the additional information to the controller. And when the payload includes data having different data, the PES header processing unit transmits a data position other than the additional information buffered in the buffer, processes the additional information, and delivers the additional information to the controller. Receiver demultiplexer. 제3항에 있어서, 상기 PES헤더처리부는 상기 버퍼에서 버퍼링된 페이로드에 PES헤더 포함 여부를 검사하며, PES헤더 포함시 PES헤더의 길이를 확인하여 처리한 후 제어부에 전달하고, 상기 버퍼에 버퍼링된 PES 헤더 이외의 데이터 위치를 데이터처리부에 전달하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.The PES header processing unit of claim 3, wherein the PES header processing unit checks whether a payload buffered in the buffer includes a PES header, checks the length of the PES header when the PES header is included, processes the PES header, and transfers the PES header to the controller, and buffers the buffer. And a data position other than the received PES header is transmitted to a data processing unit. 제4항에 있어서, 상기 패킷헤더처리부는 패킷헤더의 PID를 분석하여 상기 버퍼링된 패킷의 식별하는 PID를 상기 데이터 처리부에 전달하며,The method of claim 4, wherein the packet header processor analyzes a PID of a packet header and transmits a PID for identifying the buffered packet to the data processor. 상기 데이터 처리부는 상기 버퍼에서 버퍼링된 오디오 또는 비디오 데이터를 오디오 또는 비디오 이에스 데이터로 생성하여 각각 대응되는 복호기에 전달하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.And the data processor generates the audio or video data buffered in the buffer as audio or video data, and transmits the audio or video data to corresponding decoders. 제1항에 있어서, 상기 버퍼가,The method of claim 1, wherein the buffer, 패킷데이타 크기를 가지는 제1 및 제2버퍼와,First and second buffers having a packet data size, 상기 입력되는 패킷데이타를 제1버퍼에 저장하는 동안 상기 제2버퍼에 저장된 패킷데이타를 출력하고, 상기 입력되는 패킷데이타를 제2버퍼에 저장하는 동안 상기 제1버퍼에 저장된 패킷데이타를 출력하도록 제어하는 어드레스발생부로 구성된 것을 특징으로 하는 상기 디지털방송수신기의 역다중화 장치.Outputting packet data stored in the second buffer while storing the input packet data in the first buffer, and outputting packet data stored in the first buffer while storing the input packet data in the second buffer. Demultiplexing apparatus for the digital broadcast receiver, characterized in that the address generator is configured to. 제1항에 있어서, 상기 버퍼가,The method of claim 1, wherein the buffer, 상기 데이터 크기의 듀얼포트 메모리와,Dual port memory of the data size, 상기 입력되는 패킷 데이터를 상기 메모리에 저장하는 제1어드레스발생부와,A first address generator which stores the input packet data in the memory; 상기 메모리에 저장된 패킷데이타를 출력하는 제2어드레스발생부로 구성된 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.And a second address generator for outputting packet data stored in the memory. 제1항에 있어서, 상기 버퍼에 버퍼링된 패킷데이타에서 동기바이트의 버퍼링 위치를 검사하고, 상기 버퍼의 동기바이트 버퍼링 위치에서 벗어난 위치를 검사하여 차감값을 검출한 후, 상기 차감값에 따라 상기 패킷데이타의 바이트 데이터를 지연시켜 패킷 동기를 맞추는 동기검색부를 더 구비하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화 장치.The method according to claim 1, wherein the packet data buffered in the buffer is examined, and a position that is out of the sync byte buffering position of the buffer is detected to detect a subtraction value, and then the packet is determined according to the subtraction value. And a synchronization search unit for delaying byte data of the data to synchronize packet synchronization. 제8항에 있어서, 상기 동기검색부가,The method of claim 8, wherein the synchronous search unit, 상기 버퍼에 저장되는 바이트 데이터가 동기바이트인가 검사하는 동기확인부와,A synchronization checking unit for checking whether the byte data stored in the buffer is a synchronization byte; 상기 동기확인부에서 동기바이트 검출시 상기 버퍼에 저장되는 동기바이트의 버퍼링 위치를 확인한 후, 상기 버퍼에서 설정된 동기바이트 버퍼링 위치에서 상기 저장된 동기바이트 바이트의 버퍼링 위치 까지의 차감값을 계산하는 차감값추출부와,When the synchronization check unit detects a synchronization byte, the subtraction value extraction for checking a buffering position of the sync byte stored in the buffer and calculating a subtraction value from the sync byte buffering position set in the buffer to the buffering position of the stored sync byte byte Wealth, 상기 계산된 차감값에 따라 상기 입력되는 패킷데이타를 지연하여 상기 버퍼에 버퍼링하는 지연부로 구성된 것을 특징으로 하는 상기 디지털방송수신기의 역다중화 장치.And a delay unit configured to delay the input packet data according to the calculated subtraction value and to buffer the received packet data in the buffer. 제9항에 있어서, 상기 버퍼에 설정된 동기바이트의 버퍼링 위치는 상기 버퍼의 첫 번째 바이트 버퍼링 위치임을 특징으로 하는 상기 디지털방송수신기의 역다중화 장치.10. The apparatus of claim 9, wherein the buffering position of the sync byte set in the buffer is the first byte buffering position of the buffer. 디지털 방송수신기를 구비하는 휴대단말기의 방송데이타 수신장치에 있어서,In the broadcast data receiving apparatus of a mobile terminal having a digital broadcast receiver, 설정된 방송채널의 신호를 수신하여 복조하여 패킷데이타 스트림을 출력하는 방송수신기와,A broadcast receiver for receiving and demodulating a signal of a set broadcast channel and outputting a packet data stream; 상기 패킷데이타스트림을 분석하여 복호된 비디오 및 오디오데이타를 발생하는 멀티미디어처리부와,A multimedia processing unit for analyzing the packet data stream and generating decoded video and audio data; 상기 복호된 비디오 데이터를 표시하는 표시부와,A display unit for displaying the decoded video data; 상기 복호된 오디오 데이터를 재생하는 스피커로 구성되며,A speaker for reproducing the decoded audio data, 상기 멀티미디어처리부가,The multimedia processing unit, 상기 패킷데이타 스트림을 버퍼링하는 버퍼와, 상기 버퍼에 병렬연결되는 처리부들로 구성되고, 상기 처리부들이 상기 버퍼링된 패킷데이타를 상기 각 처리부들이 병렬 처리하여 역다중화하는 역다중화기와, A demultiplexer comprising a buffer for buffering the packet data stream, and processing units connected in parallel to the buffer, wherein the processing units demultiplex the buffered packet data by parallel processing of the respective processing units; 상기 역다중화된 비디오 이에스 데이터를 복호하는 비디오복호기와,A video decoder for decoding the demultiplexed video erase data; 상기 역다중화된 오디오 이에스 데이터를 복호하는 오디오복호기로 구성된 것을 특징으로 하는 휴대단말기의 디지털방송 수신장치.And an audio decoder for decoding the demultiplexed audio edge data. 제11항에 있어서, The method of claim 11, 상기 방송수신기가 설정된 주파수의 방송채널의 신호를 수신하여 복조하고, 상기 복조된 패킷스트림의 피아이디를 검사하여 설정된 방송채널의 패킷데이타를 필터링하여 아이피 데이터그램을 발생하며,The broadcast receiver receives and demodulates a signal of a broadcast channel of a set frequency, examines the ID of the demodulated packet stream, filters packet data of the set broadcast channel, and generates an IP datagram. 상기 멀티미디어처리부가,The multimedia processing unit, 상기 아이피 데이터그램의 IP정보를 디캡슐레이팅하여 상기 역다중화기에 출력하는 아이피디캡슐레이터를 더 구비하는 것을 특징으로 하는 휴대단말기의 디지털방송 수신장치. And an IP decapsulator for decapsulating IP information of the IP datagram and outputting the IP information to the demultiplexer. 제12항에 있어서, 상기 역다중화기가,The method of claim 12, wherein the demultiplexer, 입력되는 패킷 데이터를 버퍼링하는 버퍼와,A buffer for buffering incoming packet data, 상기 버퍼링된 패킷데이타의 패킷헤더를 검사하여 부가정보 포함 여부를 확인하며, 상기 부가정보 포함 여부에 따른 제어신호를 발생하는 패킷헤더처리부와,A packet header processing unit which checks the packet header of the buffered packet data to determine whether additional information is included and generates a control signal according to whether the additional information is included; 상기 패킷헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이타에서 부가정보를 처리하는 부가정보처리부와,An additional information processing unit for processing additional information in the buffered payload data under control of the packet header processing unit; 상기 패킷헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이타에서 PES 헤더를 처리하는 PES헤더처리부와,A PES header processing unit for processing a PES header in the buffered payload data by controlling the packet header processing unit; 상기 PES헤더처리부에 제어에 의해 상기 버퍼링된 페이로드 데이터의 오디오 또는 비디오 데이터를 오디오 또는 비디오 이에스로 생성하여 각각 대응되는 복호기에 출력하는 데이터처리부로 구성된 것을 특징으로 하는 상기 휴대단말기의 디지털방송 수신장치. And a data processing unit for generating audio or video data of the buffered payload data into audio or video data and outputting the audio or video data to a decoder corresponding to the PES header processing unit. . 제13항에 있어서, 상기 버퍼에 버퍼링된 패킷데이타에서 동기바이트의 버퍼링 위치를 검사하고, 상기 버퍼의 동기바이트 버퍼링 위치에서 벗어난 위치를 검사하여 차감값을 검출한 후, 상기 차감값에 따라 상기 패킷데이타의 바이트 데이터를 지연시켜 패킷 동기를 맞추는 동기검색부를 더 구비하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화 장치.15. The method of claim 13, wherein the packet data buffered in the buffer is examined to determine the buffering position of the sync byte, and a position outside the sync byte buffering position of the buffer is detected to detect a subtraction value, and then the packet according to the subtraction value. And a synchronization search unit for delaying byte data of the data to synchronize packet synchronization. 제14항에 있어서, 상기 동기검색부가,The method of claim 14, wherein the synchronous search unit, 상기 버퍼에 저장되는 바이트 데이터가 동기바이트인가 검사하는 동기확인부와,A synchronization checking unit for checking whether the byte data stored in the buffer is a synchronization byte; 상기 동기확인부에서 동기바이트 검출시 상기 버퍼에 저장되는 동기바이트의 버퍼링 위치를 확인한 후, 상기 버퍼에서 설정된 동기바이트 버퍼링 위치에서 상기 저장된 동기바이트 바이트의 버퍼링 위치 까지의 차감값을 계산하는 차감값추출부와,When the synchronization check unit detects a synchronization byte, the subtraction value extraction for checking a buffering position of the sync byte stored in the buffer and calculating a subtraction value from the sync byte buffering position set in the buffer to the buffering position of the stored sync byte byte Wealth, 상기 계산된 차감값에 따라 상기 입력되는 패킷데이타를 지연하여 상기 버퍼 에 버퍼링하는 지연부로 구성된 것을 특징으로 하는 상기 디지털방송수신기의 역다중화 장치.And a delay unit configured to delay the input packet data according to the calculated subtraction value and buffer the received packet data in the buffer. 제15항에 있어서, 상기 버퍼에 설정된 동기바이트의 버퍼링 위치는 상기 버퍼의 첫 번째 바이트 버퍼링 위치임을 특징으로 하는 상기 디지털방송수신기의 역다중화 장치.16. The apparatus of claim 15, wherein a buffering position of a sync byte set in the buffer is a first byte buffering position of the buffer. 제14항에 있어서, 상기 패킷헤더처리부는 상기 패킷헤더의 부가정보제어 파라미터를 분석하여 상기 페이로드 데이터가 부가정보를 포함하는지 판단하며, 상기 부가정보 포함시 상기 부가정보처리부가 상기 부가정보를 처리하도록 제어하며, 상기 부가정보가 포함되지 않았으면 상기 PES헤더처리부의 동작을 제어하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.15. The apparatus of claim 14, wherein the packet header processing unit analyzes the additional information control parameter of the packet header to determine whether the payload data includes additional information, and when the additional information is included, the additional information processing unit processes the additional information. And controlling the operation of the PES header processing unit if the additional information is not included in the digital broadcasting receiver. 제17항에 있어서, 상기 부가정보처리부는 상기 버퍼에서 버퍼링된 부가정보필드를 분석하여 부가정보의 길이를 분석하며, 상기 페이로드 데이터가 부가정보만으로 이루어진 경우 상기 부가정보를 처리하여 제어부에 전달하고, 상기 페이로드가 데이터가 다른 데이터를 포함하는 경우 상기 PES헤더처리부에 상기 버퍼에 버퍼 링된 부가정보 외의 데이터 위치를 전달하며, 상기 부가정보를 처리하여 상기 제어부에 전달하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.18. The method of claim 17, wherein the additional information processor analyzes the length of the additional information by analyzing the additional information field buffered in the buffer, and when the payload data includes only the additional information, processes the additional information and transmits the additional information to the controller. And when the payload includes data having different data, the PES header processing unit transmits a data position other than the additional information buffered in the buffer, processes the additional information, and delivers the additional information to the controller. Receiver demultiplexer. 제18항에 있어서, 상기 PES헤더처리부는 상기 버퍼에서 버퍼링된 페이로드에 PES헤더 포함 여부를 검사하며, PES헤더 포함시 PES헤더의 길이를 확인하여 처리한 후 제어부에 전달하고, 상기 버퍼에 버퍼링된 PES 헤더 이외의 데이터 위치를 데이터처리부에 전달하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.19. The method of claim 18, wherein the PES header processing unit checks whether the PES header is included in the payload buffered in the buffer, checks the length of the PES header when the PES header is included, processes the PES header, and transfers it to the controller, and buffers the buffer. And a data position other than the received PES header is transmitted to a data processing unit. 제19항에 있어서, 상기 패킷헤더처리부는 패킷헤더의 PID를 분석하여 상기 버퍼링된 패킷의 식별하는 PID를 상기 데이터 처리부에 전달하며,The method of claim 19, wherein the packet header processor analyzes a PID of a packet header and transmits a PID for identifying the buffered packet to the data processor. 상기 데이터 처리부는 상기 버퍼에서 버퍼링된 오디오 또는 비디오 데이터를 오디오 또는 비디오 이에스 데이터로 생성하여 각각 대응되는 복호기에 전달하는 것을 특징으로 하는 상기 디지털방송수신기의 역다중화장치.And the data processor generates the audio or video data buffered in the buffer as audio or video data, and transmits the audio or video data to corresponding decoders. 디지털 방송수신기에서 패킷헤더 및 페이로드로 구성된 패킷데이타를 역다중화하는 방법에 있어서,In the method of demultiplexing the packet data consisting of the packet header and the payload in the digital broadcast receiver, 입력되는 패킷 데이터를 버퍼링하는 과정과,Buffering the incoming packet data, 상기 버퍼링된 패킷헤더를 검사하여 상기 페이로드가 부가정보인가 확인하는 과정과,Checking whether the payload is additional information by inspecting the buffered packet header; 상기 페이로드가 부가정보이면 상기 결정된 버퍼링된 부가정보를 처리하는 과정과,Processing the determined buffered side information if the payload is side information; 상기 페이로드가 부가정보가 아니면 상기 페이로드를 검사하여 페이로드에 PES헤더의 포함 여부를 검사하며, 상기 PES헤더가 포함되었으면 상기 페이로드에 포함된 PES헤더의 크기를 검사하여 오디오/비디오데이타의 포함 여부를 확인하고, 상기 오디오/비디오 데이타 포함시 상기 오디오/비디오 데이타의 버퍼링 위치를 결정한 후 상기 PES헤더를 처리하는 과정과, If the payload is not additional information, the payload is examined to determine whether the payload includes a PES header. If the payload is included, the size of the PES header included in the payload is checked to determine whether audio / video data is included. Processing the PES header after determining whether to include and determining a buffering position of the audio / video data when the audio / video data is included; 상기 PES헤더 처리한 후 또는 상기 페이로드에 PES헤더가 포함되지 않은 패킷데이타이면 상기 페이로드의 비디오/오디오데이타를 처리하여 비디오/오디오 이에스데이타를 생성한 후 각각 대응되는 복호기에 전달하는 과정으로 이루어짐을 특징으로 하는 상기 디지털 방송수신기의 패킷 데이터 역다중화 방법.After the PES header processing or the packet data that does not include the PES header in the payload, the video / audio data of the payload is generated to generate video / audio esdata and transmitted to the corresponding decoders. Packet data demultiplexing method of the digital broadcast receiver characterized in that. 제21항에 있어서, 상기 버퍼링된 패킷데이타에서 동기바이트의 버퍼링 위치를 검사하고, 상기 동기바이트 버퍼링 위치에서 벗어난 위치를 검사하여 차감값을 검출한 후, 상기 차감값에 따라 상기 패킷데이타의 바이트 데이터를 지연시켜 패킷 동기를 맞추는 동기검색과정을 더 구비하는 것을 특징으로 하는 상기 디지털방송수신기의 패킷데이타 역다중화 방법.22. The method of claim 21, wherein a buffering position of the sync byte is examined in the buffered packet data, a position that is out of the sync byte buffering position is detected to detect a subtraction value, and then byte data of the packet data according to the subtraction value. And a synchronous retrieval process of matching packet synchronization by delaying the packet delay. 제22항에 있어서, 상기 동기검색 과정이,The method of claim 22, wherein the synchronous search process, 상기 버퍼에 저장되는 바이트 데이터가 동기바이트인가 검사하는 과정과,Checking whether byte data stored in the buffer is a sync byte; 상기 동기바이트 검출시 상기 버퍼에 저장되는 동기바이트의 버퍼링 위치를 확인한 후, 상기 버퍼에서 설정된 동기바이트 버퍼링 위치에서 상기 저장된 동기바이트 바이트의 버퍼링 위치 까지의 차감값을 계산하는 과정과,Checking a buffering position of the sync byte stored in the buffer when detecting the sync byte, and calculating a subtraction value from the sync byte buffering position set in the buffer to the buffering position of the stored sync byte byte; 상기 계산된 차감값에 따라 상기 입력되는 패킷데이타를 지연하여 버퍼링하는 과정으로 이루어짐을 특징으로 하는 상기 디지털 방송수신기의 패킷 데이터 역다중화 방법.And delaying and buffering the input packet data according to the calculated subtraction value. 제23항에 있어서, 상기 버퍼에 설정된 동기바이트의 버퍼링 위치는 첫 번째 패키데이타를 버퍼링하는 버퍼의 첫 번째 바이트 위치임을 특징으로 하는 상기 디지털 방송수신기의 패킷 데이터 역다중화 방법.24. The method of claim 23, wherein the buffering position of the sync byte set in the buffer is the first byte position of the buffer buffering the first packet data. 제22항에 있어서, 상기 패킷헤더를 처리하는 과정이, The method of claim 22, wherein the processing of the packet header, 상기 패킷헤더의 PID를 분석하여 목표 PID인가 검사하며, 목표 PID인 경우에만 입력되는 패킷의 종류 식별 정보를 저장하는 과정과,Analyzing the PID of the packet header and checking whether the target PID is a target PID, and storing the type identification information of the input packet only in the case of the target PID; 상기 패킷헤더의 부가정보제어 파라미터를 분석하여 상기 버퍼링된 패킷이 부가정보를 포함하면 상기 부가정보처리 과정의 동작을 명령하고 상기 부가정보처리과정에서 처리할 상기 부가정보의 버퍼링 위치 정보를 함께 전달하는 과정과,Analyzing the additional information control parameter of the packet header, if the buffered packet includes the additional information, instructs the operation of the additional information processing process and transmits buffering position information of the additional information to be processed in the additional information processing process. Process, 상기 버퍼링된 패킷이 부가정보를 포함하지 않으면 상기 PES헤더처리 과정의 동작을 명령하고 상기 PES헤더처리 과정에서 처리할 PES헤더의 버퍼링 위치정보를 함께 전달하는 것을 특징으로 하는 상기 디지털 방송수신기의 패킷 데이터 역다중화 방법.If the buffered packet does not include additional information, the packet data of the digital broadcast receiver is characterized by instructing an operation of the PES header processing process and transmitting buffering position information of the PES header to be processed in the PES header processing process. Demultiplex method. 제25항에 있어서, 부가정보를 처리하는 과정이,The method of claim 25, wherein the processing of the additional information, 구동명령 수신시 상기 버퍼에서 버퍼링된 부가정보를 억세스하여 부가정보의 길이를 분석하는 과정과,Analyzing the length of the additional information by accessing the additional information buffered in the buffer when a driving command is received; 상기 분석과정에서 상기 패킷이 부가정보만으로 이루어진 경우 상기 부가정보를 처리하여 제어부에 전달하는 과정과,Processing the additional information and transmitting the additional information to a controller when the packet includes only additional information in the analysis process; 상기 분석과정에서 상기 패킷이 PES헤더를 포함하는 경우 상기 PES헤더의 구동명령과 함께 상기 PES헤더의 버퍼링 위치정보를 함께 전달한 후 상기 부가정보를 처리하여 상기 제어부에 전달하는 과정으로 이루어짐을 특징으로 하는 상기 디지털 방송수신기의 패킷 데이터 역다중화 방법.When the packet includes a PES header in the analysis process, the buffering position information of the PES header is transmitted together with the driving command of the PES header, and then the additional information is processed and delivered to the controller. Packet data demultiplexing method of the digital broadcast receiver. 제26항에 있어서, 상기 PES헤더를 처리하는 과정이,The method of claim 26, wherein the processing of the PES header, 상기 구동명령 수신시 상기 버퍼에서 버퍼링된 PES헤더를 억세스하여 PES헤더의 길이를 분석하는 과정과,Analyzing the length of the PES header by accessing the PES header buffered in the buffer when the driving command is received; 상기 분석과정에서 상기 버퍼링된 패킷이 PES헤더로만 이루어진 경우 상기 PES 헤더를 처리하여 제어부에 전달하는 과정과,Processing the PES header and transmitting the buffered packet to a controller when the buffered packet includes only a PES header in the analysis process; 상기 분석과정에서 상기 버퍼링된 패킷이 실제데이타를 포함하는 경우 상기 데이터처리부의 구동명령과 함께 상기 실제데이타의 버퍼링 위치정보를 함께 전달한 후 상기 데이터처리 과정의 동작을 명령하고 상기 버퍼링된 실제데이타의 위치정보를 전달한 후 상기 PES헤더를 처리하여 상기 제어부에 전달하는 과정으로 이루어짐을 특징으로 하는 상기 방법.If the buffered packet includes the actual data in the analysis process, the buffering position information of the actual data is transmitted together with the driving command of the data processing unit, and then the operation of the data processing process is instructed, and the location of the buffered actual data. And processing the PES header and transmitting the information to the controller. 제27항에 있어서, 상기 데이터 처리과정이,The method of claim 27, wherein the data processing process, 상기 구동명령 수신시 상기 저장된 PID에 따라 패킷의 종류를 식별하는 과정과,Identifying a type of a packet according to the stored PID when the driving command is received; 상기 상기 버퍼링된 실제 데이터를 억세스하며, 상기 식별된 PID에 따라 상기 실제 데이터를 비디오 또는 오디오 ES를 생성한 후, 각각 대응되는 복호기에 역다중화하는 과정으로 이루어짐을 특징으로 하는 상기 방법.And accessing the buffered real data, generating the video or audio ES from the real data according to the identified PID, and then demultiplexing the corresponding decoder to the corresponding decoder. 디지털 방송수신기를 구비하는 휴대단말기의 방송데이타 처리 방법에 있어 서,In the broadcast data processing method of a mobile terminal having a digital broadcast receiver, 설정된 방송채널의 신호를 수신하여 복조하여 패킷데이타 스트림을 출력하는 방송데이타 수신과정과,A broadcast data reception process of receiving and demodulating a signal of a set broadcast channel and outputting a packet data stream; 상기 패킷데이타스트림을 분석하여 복호된 비디오 및 오디오데이타를 발생하는 멀티미디어데이타 처리과정과,A multimedia data processing process of analyzing the packet data stream and generating decoded video and audio data; 상기 복호된 비디오 및 오디오 데이터를 재생하는 과정으로 이루어지며, The process of playing the decoded video and audio data, 상기 멀티미디어 데이터를 처리하는 과정이,,The process of processing the multimedia data, 상기 패킷데이타 스트림을 버퍼링하며, 상기 버퍼링된 패킷데이타의 패킷헤더 및 페이로드를 검사하여 상기 패킷데이타를 병렬 처리하여 비디오 및 오디오 이에스데이타들로 역다중화하는 과정과, Buffering the packet data stream, inspecting a packet header and payload of the buffered packet data, and demultiplexing the packet data into video and audio esdata; 상기 역다중화된 비디오 및 오디오 이에스 데이터를 각각 복호하는 과정으로 이루어짐을 특징으로 하는 휴대단말기의 디지털방송 데이터 처리 방법.And decoding the demultiplexed video and audio edge data, respectively. 제28항에 있어서, The method of claim 28, 상기 방송데이타 수신과정이, The broadcast data receiving process, 설정된 주파수의 방송채널의 신호를 수신하여 복조하고, 상기 복조된 패킷스트림의 피아이디를 검사하여 설정된 방송채널의 패킷데이타를 필터링하여 아이피 데이터그램을 발생하며,Receives and demodulates a signal of a broadcast channel of a set frequency, examines the ID of the demodulated packet stream, filters packet data of the set broadcast channel, and generates an IP datagram. 상기 멀티미디어 데이터 처리과정이,The multimedia data processing process, 상기 아이피 데이터그램의 아이피정보를 디캡슐레이팅하는 과정을 더 구비하며, 상기 아이피 디캡슐레이팅된 패킷 데이터 스트림을 역다중화함을 특징으로 하는 휴대단말기의 디지털방송 데이터 처리 방법.And decapsulating the IP information of the IP datagram, and demultiplexing the IP decapsulated packet data stream. 제29항에 있어서, 상기 역다중화과정이,The method of claim 29, wherein the demultiplexing process, 입력되는 패킷 데이터를 버퍼링하는 과정과,Buffering the incoming packet data, 상기 버퍼링된 패킷헤더를 검사하여 상기 페이로드가 부가정보인가 확인하는 과정과,Checking whether the payload is additional information by inspecting the buffered packet header; 상기 페이로드가 부가정보이면 상기 결정된 버퍼링된 부가정보를 처리하는 과정과,Processing the determined buffered side information if the payload is side information; 상기 페이로드가 부가정보가 아니면 상기 페이로드를 검사하여 페이로드에 PES헤더의 포함 여부를 검사하며, 상기 PES헤더가 포함되었으면 상기 페이로드에 포함된 PES헤더의 크기를 검사하여 오디오/비디오데이타의 포함 여부를 확인하고, 상기 오디오/비디오 데이타 포함시 상기 오디오/비디오 데이타의 버퍼링 위치를 결정한 후 상기 PES헤더를 처리하는 과정과, If the payload is not additional information, the payload is examined to determine whether the payload includes a PES header. If the payload is included, the size of the PES header included in the payload is checked to determine whether audio / video data is included. Processing the PES header after determining whether to include and determining a buffering position of the audio / video data when the audio / video data is included; 상기 PES헤더 처리한 후 또는 상기 페이로드에 PES헤더가 포함되지 않은 패킷데이타이면 상기 페이로드의 비디오/오디오데이타를 처리하여 비디오/오디오 이에스데이타를 생성한 후 각각 대응되는 복호기에 전달하는 과정으로 이루어짐을 특징으로 하는 휴대단말기의 디지털방송 데이터 처리 방법.After the PES header processing or the packet data that does not include the PES header in the payload, the video / audio data of the payload is generated to generate video / audio esdata and transmitted to the corresponding decoders. Digital broadcasting data processing method of a mobile terminal, characterized in that. 제30항에 있어서, 상기 버퍼링된 패킷데이타에서 동기바이트의 버퍼링 위치를 검사하고, 상기 동기바이트 버퍼링 위치에서 벗어난 위치를 검사하여 차감값을 검출한 후, 상기 차감값에 따라 상기 패킷데이타의 바이트 데이터를 지연시켜 패킷 동기를 맞추는 동기검색과정을 더 구비하는 것을 특징으로 하는 상기 휴대단말기의 디지털방송 데이터 처리 방법.31. The method of claim 30, wherein after checking the buffering position of the sync byte in the buffered packet data, and detecting a subtraction value by checking a position out of the sync byte buffering position, the byte data of the packet data according to the subtraction value And a synchronous retrieval process of matching packet synchronization by delaying the delay time.
KR1020050122479A 2004-12-14 2005-12-13 Device and method for demultiplexing received transport stream in digital broadcasting receiver KR100755434B1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US11/302,353 US8199781B2 (en) 2004-12-14 2005-12-13 Device and method for demultiplexing received transport stream in digital broadcasting receiver
CN200580042848XA CN101080925B (en) 2004-12-14 2005-12-14 Apparatus and method for demultiplexing in a digital broadcasting receiver
PCT/KR2005/004297 WO2006065071A1 (en) 2004-12-14 2005-12-14 Apparatus and method for demultiplexing in a digital broadcasting receiver
EP05819107A EP1839439A4 (en) 2004-12-14 2005-12-14 Apparatus and method for demultiplexing in a digital broadcasting receiver

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020040105877 2004-12-14
KR20040105877 2004-12-14

Publications (2)

Publication Number Publication Date
KR20060067848A true KR20060067848A (en) 2006-06-20
KR100755434B1 KR100755434B1 (en) 2007-09-04

Family

ID=37162321

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050122479A KR100755434B1 (en) 2004-12-14 2005-12-13 Device and method for demultiplexing received transport stream in digital broadcasting receiver

Country Status (2)

Country Link
KR (1) KR100755434B1 (en)
CN (1) CN101080925B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101272409B1 (en) * 2006-12-22 2013-06-07 삼성전자주식회사 Method and apparatus for generating frame in dvb-h
WO2022125123A1 (en) * 2020-12-10 2022-06-16 Intel Corporation Accelerating multi-node performance of machine learning workloads

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207460B (en) * 2007-12-14 2011-02-02 北京创毅视讯科技有限公司 Method and terminal for receiving data in broadcasting system
CN101309425B (en) * 2008-07-07 2010-06-09 中兴通讯股份有限公司 Deplexing method, apparatus and system
CN101646075B (en) * 2008-08-06 2011-07-13 中兴通讯股份有限公司 Device and method for adjusting code rate of multimedia code stream
KR101800426B1 (en) * 2015-01-09 2017-11-23 삼성전자주식회사 Transmitting apparatus and receiving apparatus and signal processing method thereof
MX2021008715A (en) 2015-01-09 2022-12-07 Samsung Electronics Co Ltd Transmitting apparatus and signal processing method thereof.
CN114143585A (en) * 2021-11-02 2022-03-04 深圳Tcl新技术有限公司 Data processing method and device, storage medium and terminal equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3234573B2 (en) * 1998-08-31 2001-12-04 松下電器産業株式会社 Packet filtering device
CN1110205C (en) * 1998-12-15 2003-05-28 国家科学技术委员会高技术研究发展中心 Digital signal source decoder of parallel decoding
JP2001339721A (en) * 2000-05-26 2001-12-07 Matsushita Electric Ind Co Ltd Circuit and device for processing motion video multiply encoding signal
JP3832263B2 (en) * 2001-03-12 2006-10-11 松下電器産業株式会社 Video data communication apparatus and video data communication system
EP1492286B1 (en) * 2002-03-29 2012-02-08 Fujitsu Limited Driver driving method; driver circuit; transmission method using driver,and control circuit
JP3808394B2 (en) * 2002-04-02 2006-08-09 松下電器産業株式会社 STREAM DATA PROCESSING DEVICE, STREAM DATA PROCESSING METHOD, PROGRAM, AND MEDIUM

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101272409B1 (en) * 2006-12-22 2013-06-07 삼성전자주식회사 Method and apparatus for generating frame in dvb-h
WO2022125123A1 (en) * 2020-12-10 2022-06-16 Intel Corporation Accelerating multi-node performance of machine learning workloads

Also Published As

Publication number Publication date
CN101080925B (en) 2010-08-18
CN101080925A (en) 2007-11-28
KR100755434B1 (en) 2007-09-04

Similar Documents

Publication Publication Date Title
US8199781B2 (en) Device and method for demultiplexing received transport stream in digital broadcasting receiver
KR100755434B1 (en) Device and method for demultiplexing received transport stream in digital broadcasting receiver
KR101340762B1 (en) Internet protocol packet re-transporting method for digital multimedia broadcasting service
EP1871024A1 (en) Method for arranging zapping streams in mpe-fec frame and receiver
JP6298305B2 (en) Broadcast signal IP transmission system and broadcast signal IP transmission method
EP1971053A1 (en) Broadcast content transmitter, broadcast content receiver, broadcast content transmitting method, and broadcast content receiving method and program
KR20150145687A (en) Scheme for packet compression in ip based broadcast network
WO2015050175A1 (en) Receiving device and receiving method
JP7397916B2 (en) Reception method and terminal
KR100703529B1 (en) Apparatus and method for receiving images of multiple channel in receiving digital multimedia broadcasting
US20090013369A1 (en) Device and Method for Initializing Decoder in Digital Broadcasting Receiver
US20090251616A1 (en) Apparatus and method for processing data in digital broadcasting receiver
KR100864715B1 (en) Digital broadcasting receiver and method for judging scramble channel thereof
US20160134908A1 (en) Broadcasting transmission/reception apparatus and broadcasting transmission/reception method
KR100698182B1 (en) Method and Apparatus for AV output in Digital broadcasting system
KR100822150B1 (en) Integration demultiplexing apparatus for digital multimedia broadcasting
KR20070078621A (en) Device and method for processing of muli-data in terminal having digital broadcasting receiver
KR20080058991A (en) Method for playing digital multimedia broadcating in portable terminal and apparatus thereof
EP1793515A2 (en) Digital broadcast transmission/reception apparatus for rapid channel change
WO2021171687A1 (en) Video signal processing device, video signal processing method, program, and signal processing circuit
KR101304888B1 (en) Device and method for scanning channel of digital broadcasting receiver with multi-frequency channel
KR101262949B1 (en) Device and method for scanning channel of digital broadcasting receiver
EP2202976A1 (en) Digital broadcast receiving apparatus and signal processing method
KR20100118822A (en) Iptv terminal system
JP2000278230A (en) Digital signal multiplexer and digital signal receiver

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120730

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20130730

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20140730

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20150730

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20160728

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20170728

Year of fee payment: 11