KR20050076088A - Audio decoding system and audio format detecting method - Google Patents

Audio decoding system and audio format detecting method Download PDF

Info

Publication number
KR20050076088A
KR20050076088A KR1020040003890A KR20040003890A KR20050076088A KR 20050076088 A KR20050076088 A KR 20050076088A KR 1020040003890 A KR1020040003890 A KR 1020040003890A KR 20040003890 A KR20040003890 A KR 20040003890A KR 20050076088 A KR20050076088 A KR 20050076088A
Authority
KR
South Korea
Prior art keywords
audio data
spdif
sync
channel
input
Prior art date
Application number
KR1020040003890A
Other languages
Korean (ko)
Other versions
KR100531321B1 (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 KR10-2004-0003890A priority Critical patent/KR100531321B1/en
Publication of KR20050076088A publication Critical patent/KR20050076088A/en
Application granted granted Critical
Publication of KR100531321B1 publication Critical patent/KR100531321B1/en

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/008Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/1062Data buffering arrangements, e.g. recording or playback buffers
    • G11B2020/1075Data buffering arrangements, e.g. recording or playback buffers the usage of the buffer being restricted to a specific kind of data
    • G11B2020/10787Data buffering arrangements, e.g. recording or playback buffers the usage of the buffer being restricted to a specific kind of data parameters, e.g. for decoding or encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

본 발명은 오디오 디코더에서 자체적으로 SPDIF 입력 포맷이 PCM인지 비트스트림인지를 판별하는 장치 및 방법에 관한 것이다. 특히 오디오 디코더 내에서 자체적으로 입력되는 오디오 데이터가 PCM인지 비트스트림인지를 판별하고 판별 결과에 맞게 입력되는 오디오 데이터를 디코딩함으로써, 입력 오디오 데이터가 SPDIF PCM에서 SPDIF 비트스트림으로 전환되는 경우 발생할 수 있는 오디오 디코더의 오동작을 최소화할 수 있다. 또한, 상기 오디오 디코더에서 자체적으로 입력되는 오디오 데이터의 포맷 전환을 감지함으로써, CPU의 부담을 줄여 고가의 CPU 사용을 억제하고 이로 인해 오디오 디코딩 시스템의 가격을 절감시킬 수 있다. The present invention relates to an apparatus and method for determining whether an SPDIF input format is PCM or bitstream in an audio decoder. In particular, it is possible to determine whether the audio data input by itself in the audio decoder is a PCM or a bitstream and to decode the audio data according to the determination result, so that the audio data that may occur when the input audio data is converted from the SPDIF PCM to the SPDIF bitstream Malfunction of the decoder can be minimized. In addition, by detecting the format conversion of the audio data input by the audio decoder itself, it is possible to reduce the burden on the CPU to suppress expensive CPU usage, thereby reducing the price of the audio decoding system.

Description

오디오 디코딩 시스템 및 오디오 포맷 검출 방법{Audio decoding system and audio format detecting method}Audio decoding system and audio format detecting method

본 발명은 오디오 디코딩 시스템에 관한 것으로서, 특히 오디오 디코더에서 SPDIF 입력 포맷이 PCM인지 비트스트림인지를 판별하는 오디오 포맷 검출 방법에 관한 것이다.The present invention relates to an audio decoding system, and more particularly, to an audio format detection method for determining whether an SPDIF input format is a PCM or a bitstream in an audio decoder.

일반적으로 오디오 데이터는 실제 오디오 데이터, 샘플링 클럭, 좌-우측 클럭(audio data, sampling clock, left-right clock) 이렇게 세가지 핀을 사용하여 전송된다.In general, audio data is transmitted using three pins: real audio data, sampling clock, and left-right clock.

상기 SPDIF(Sony/Philips Digital Interface)는 IEC60958/61937의 통칭으로, SONY/PHILIPS에서 공동 개발한 오디오 데이터 전송 포맷이다. 즉, 소니사와 필립스사의 표준 제창 규격의 디지털 신호로써 주로 소비자에게 판매되는 제품간의 디지털 전송에 사용된다. The Sony / Philips Digital Interface (SPDIF) is a general name of IEC60958 / 61937 and is an audio data transmission format jointly developed by SONY / PHILIPS. In other words, it is a digital signal of Sony's and Philips' standard ad hoc standards and is mainly used for digital transmission between products sold to consumers.

그리고, 상기 SPDIF 포맷은 데이터 안에 샘플링 클럭과 좌-우측 클럭을 포함시키는 바이-페이즈 마크(bi-phase mark) 기법을 사용하여 이를 하나의 핀으로 전송한다. 따라서, 핀이 기존의 방식보다 훨씬 간단한 장점이 있다.In addition, the SPDIF format uses a bi-phase mark technique that includes a sampling clock and a left-right clock in data and transmits it to one pin. Therefore, the advantage of the pin is much simpler than the conventional method.

또한, I2S 신호는 동기식으로 전선의 길이가 길어질 경우 신호의 손실이 발생하기 쉽고 여러 개의 라인을 이용하기 때문에 취급하기 까다로운 신호인 반면, 상기 SPDIF 신호의 경우는 하나의 라인을 통해 데이터와 클럭을 모두 전송하기 때문에 전송 중 약간의 감쇄가 있어도 정확한 전달이 가능하다.In addition, the I 2 S signal is a difficult signal to handle because the loss of the signal is prone to occur when the length of the wire is synchronous, and the multiple lines are used. In the case of the SPDIF signal, the data and the clock are controlled through one line. Because they transmit all of them, accurate transmission is possible even with slight attenuation during transmission.

이런 SPDIF 신호는 사운드 카드를 비롯하여 CDP, MD, DDC(Digital Compact Cassette), DAT(Digital Audio Tape)와 DAC, A/V 앰프 등 다양하게 사용되고 있다. These SPDIF signals are widely used in sound cards, including CDP, MD, Digital Compact Cassette (DDC), Digital Audio Tape (DAT), DAC, and A / V amplifiers.

이러한 장점 때문에 SPDIF는 오디오 디코딩 시스템이라면 기본적으로 가지고 있는 스펙(spec)으로 자리잡을 정도로 널리 통용되기에 이르렀다.Because of these advantages, SPDIF has become so widely used that it has become the basic spec for audio decoding systems.

도 1은 일반적인 오디오 디코딩 시스템의 구성 블록도로서, 상용 SPDIF 수신부(101)는 외부에서 바이-페이즈 마킹된 SPDIF 데이터가 입력되면 이를 디코딩한 후 SPDIF 헤더 또는 채널 상태 데이터(channel status data) 내의 정보는 오디오 디코딩 제어부(102)로 출력한다. 또한 상기 SPDIF 수신부(101)는 바이-페이즈 마크된 SPDIF 데이터에서 좌-우측 클럭과 샘플링 클럭을 복원한 후 이를 디코딩된 SPDIF 데이터와 함께 오디오 디코더(103)로 출력한다. FIG. 1 is a block diagram illustrating a general audio decoding system. When a commercially available SPDIF receiver 101 decodes an external bi-phase marked SPDIF data, the information in the SPDIF header or channel status data is decoded. Output to the audio decoding control unit 102. In addition, the SPDIF receiver 101 restores the left-right clock and the sampling clock from the bi-phase marked SPDIF data and outputs the decoded SPDIF data to the audio decoder 103 together with the decoded SPDIF data.

상기 오디오 디코딩 제어부(102)는 현재 디코딩할 데이터에 대한 디코딩 정보를 상기 오디오 디코더(103)로 출력한다.The audio decoding control unit 102 outputs decoding information about data to be currently decoded to the audio decoder 103.

상기 오디오 디코더(103)는 상기 오디오 디코딩 제어부(102)의 디코딩 정보와 좌-우측 클럭, 및 샘플링 클럭을 이용하여 입력된 SPDIF 데이터를 디코딩한다. The audio decoder 103 decodes the input SPDIF data by using the decoding information of the audio decoding control unit 102, the left-right clock, and the sampling clock.

즉, 상기 오디오 디코딩 제어부(102)는 헤더나 채널 상태 데이터 내 정보로부터 외부에서 입력된 SPDIF 데이터 타입이 PCM인지 비트스트림인지, consumer 모드인지 professional 모드인지 등을 오디오 디코더(103)로 출력하고, 오디오 디코더(103)는 이 정보에 근거하여 SPDIF 데이터를 디코딩하는 것이다.That is, the audio decoding control unit 102 outputs, from the header or channel state data information, to the audio decoder 103 whether the externally input SPDIF data type is PCM, bitstream, consumer mode or professional mode, and the like. The decoder 103 decodes SPDIF data based on this information.

상기 오디오 디코딩 시스템으로 입력되는 SPDIF 데이터는 PCM 타입일 수도 있고, 비트스트림 타입일 수도 있으며 또한, 입력 도중에 PCM에서 비트스트림으로 전환되거나 비트스트림에서 PCM으로 전환될 수 있다.The SPDIF data input to the audio decoding system may be a PCM type, a bitstream type, or may be converted from a PCM to a bitstream or a bitstream to a PCM during input.

도 2a, 도 2b는 오디오 데이터 코딩이 AC3 엔코딩 알고리즘을 이용하였을 경우의 SPDIF의 좌/우측 채널의 오디오 비트스트림 프레임 포맷 구조를 각각 보이고 있다. 2A and 2B show audio bitstream frame format structures of left and right channels of SPDIF when audio data coding uses an AC3 encoding algorithm.

즉, SPDIF 입력이 오디오 비트스트림인 경우는 도 2a, 도 2b처럼 4바이트의 동기워드(syncword)가 1536 샘플마다 삽입된다. 동기 워드는 좌측 채널인 경우 도 2a와 같이 0000F872 값을 갖고, 우측 채널인 경우 도 2b와 같이 00004E1F 값을 갖는다. 이에 반해 SPDIF 입력이 PCM인 경우는 동기 워드 없이 계속 오디오 샘플만 들어온다.That is, when the SPDIF input is an audio bitstream, four bytes of syncwords are inserted every 1536 samples as shown in FIGS. 2A and 2B. In the left channel, the sync word has a value of 0000F872 as shown in FIG. 2A, and in the right channel, the sync word has a value of 00004E1F as shown in FIG. 2B. In contrast, if the SPDIF input is PCM, only audio samples will continue to come in without sync words.

다음은 입력되는 SPDIF 데이터가 PCM에서 비트스트림으로 전환되는 경우의 오디오 디코딩 과정을 살펴본다.The following describes the audio decoding process when the input SPDIF data is converted from the PCM to the bitstream.

즉, 상기 오디오 디코딩 제어부(102)는 입력된 SPDIF 데이터 타입이 PCM에서 비트스트림으로 바뀌면 바뀐 정보를 오디오 디코더(103)로 출력한다. That is, the audio decoding control unit 102 outputs the changed information to the audio decoder 103 when the input SPDIF data type is changed from PCM to bitstream.

상기 오디오 디코더(103)는 SPDIF 수신부(101)를 통해 입력된 데이터를 PCM으로 간주하여 디코딩하다가 오디오 디코딩 제어부(102)에서 상기 SPDIF 데이터가 비트스트림이라는 정보를 주게 되면 상기 SPDIF 데이터를 비트스트림으로 인식하고 그에 맞게 디코딩하게 된다. The audio decoder 103 decodes the data input through the SPDIF receiver 101 as a PCM, and recognizes the SPDIF data as a bitstream when the audio decoding controller 102 gives the information that the SPDIF data is a bitstream. And decode accordingly.

그런데, 상기 오디오 디코딩 제어부(102)가 이 정보를 상당한 지연(delay) 후에 오디오 디코더(103)로 출력하면, 그 지연 기간 동안 오디오 디코더(103)는 잘못된 정보 때문에 오동작을 할 수 밖에 없고, 이는 최종 오디오 출력단에서 에러를 유발시킨다. However, if the audio decoding control unit 102 outputs this information to the audio decoder 103 after a significant delay, during the delay period, the audio decoder 103 has no choice but to malfunction due to wrong information. Cause an error at the audio output.

즉, 입력 데이터가 PCM에서 비트스트림으로 전환이 되는 경우, 오디오 디코더(103)는 오디오 디코딩 제어부(102)에서 입력 데이터 포맷 전환 정보를 알려주기 전까지는 입력되는 데이터 타입을 PCM으로 간주하고 디코딩하게 된다. 그러므로 그 기간 동안은 잘못된 출력이 나갈 수 밖에 없으며 최악의 경우는 이 잘못된 출력이 스피커를 통해 소음으로 나갈 수도 있다.That is, when the input data is converted from the PCM to the bitstream, the audio decoder 103 regards the input data type as PCM and decodes the input data format until the audio decoding control unit 102 informs the input data format conversion information. . Therefore, the wrong output will go out during that period, and in the worst case, the wrong output may go through the speaker as noise.

이를 방지하려면 상기 오디오 디코딩 제어부(102)는 최대한 빨리 즉 실시간으로 입력 데이터 포맷 전환 정보를 업데이트하여 오디오 디코더에게 전달해야 한다. In order to prevent this, the audio decoding control unit 102 should update the input data format conversion information as soon as possible, in real time, and transmit the information to the audio decoder.

하지만 이는 시스템 상에서 오디오 디코딩 제어부(102) 즉, CPU의 부담(load)이 커짐을 의미하며 결국은 고가의 CPU의 사용해야 하는 단점이 있다.However, this means that the load of the audio decoding controller 102, that is, the CPU on the system becomes large, and eventually, there is a disadvantage that an expensive CPU must be used.

본 발명은 상기와 같은 문제점을 해결하기 위한 것으로서, 본 발명의 목적은 오디오 디코더에서 입력되는 데이터 포맷을 자체적으로 판별하도록 함으로써, 고가의 CPU를 사용하지 않고도 SPDIF 데이터 포맷이 변환될 때 발생할 수 있는 오동작을 방지하는 오디오 디코딩 시스템을 제공함에 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to determine a data format input from an audio decoder by itself, thereby causing a malfunction that may occur when the SPDIF data format is converted without using an expensive CPU. It is to provide an audio decoding system that prevents.

상기와 같은 목적을 달성하기 위한 본 발명에 따른 오디오 디코딩 시스템은, 입력되는 SPDIF 오디오 데이터로부터 좌-우측 클럭과 샘플링 클럭을 복원하고 이를 실제 SPDIF 오디오 데이터와 함께 출력하는 SPDIF 수신부; 상기 SPDIF 수신부에서 출력되는 실제 SPDIF 오디오 데이터로부터 오디오 데이터 포맷이 전환되는지를 판별하고, 판별 결과와 상기 좌-우측 클럭 그리고, 샘플링 클럭을 이용하여 실제 SPDIF 오디오 데이터를 디코딩하는 오디오 디코더를 포함하여 구성되는 것을 특징으로 한다.An audio decoding system according to the present invention for achieving the above object, SPDIF receiving unit for recovering the left-right clock and the sampling clock from the input SPDIF audio data and outputs it with the actual SPDIF audio data; And an audio decoder for determining whether the audio data format is switched from the actual SPDIF audio data output from the SPDIF receiving unit, and decoding the actual SPDIF audio data using the determination result, the left-right clock, and a sampling clock. It is characterized by.

상기 오디오 디코더는 입력되는 좌측 채널의 SPDIF 오디오 데이터를 저장하는 좌측 채널 데이터 버퍼와, 입력되는 좌측 채널의 SPDIF 오디오 데이터로부터 좌측 채널의 동기워드를 검출하는 좌측 채널 동기 검출부와, 입력되는 우측 채널의 SPDIF 오디오 데이터를 저장하는 우측 채널 데이터 버퍼와, 입력되는 우측 채널의 SPDIF 오디오 데이터로부터 우측 채널의 동기워드를 검출하는 우측 채널 동기 검출부와, 상기 좌-우측 채널 동기 검출부에서 각각 좌측 채널의 동기 워드와 우측 채널의 동기 워드가 동시에 검출되면 입력되는 SPDIF 오디오 데이터 포맷을 비트스트림으로 판별하는 비트스트림 판별부와, 상기 비트스트림 판별부의 판별 결과에 따라 상기 좌-우측 채널 데이터 버퍼에서 출력되는 좌-우측 채널 SPDIF 오디오 데이터를 디코딩하는 디코딩부를 포함하여 구성되는 것을 특징으로 한다.The audio decoder includes a left channel data buffer for storing SPDIF audio data of an input left channel, a left channel sync detection unit for detecting a left word sync word from SPDIF audio data of an input left channel, and an SPDIF of an input right channel A right channel data buffer for storing audio data, a right channel sync detector for detecting a right word sync word from SPDIF audio data of the right channel input, and a left and right channel sync word for the left channel sync detector A bitstream discriminating unit for discriminating an input SPDIF audio data format into a bitstream when a sync word of a channel is detected at the same time; Decoding section for decoding audio data And it is characterized in that configuration.

상기 좌측 채널 동기 검출부는 시리얼로 입력되는 좌측 채널의 SPDIF 오디오 데이터를 일시 저장하는 좌측 레지스터와, 상기 좌측 레지스터의 출력을 기 설정된 기간 동안 지연시키는 지연기와, 상기 좌측 레지스터의 출력으로부터 좌측 채널의 하위 동기바이트를 검출하는 동기바이트 확인부와, 상기 동기바이트 확인부에서 좌측 채널의 하위 동기바이트가 검출되면 상기 지연기의 출력이 제로인지를 확인하여 제로라고 판별되면 좌측 채널의 동기워드가 검출되었다고 판별하는 제로 확인부로 구성되는 것을 특징으로 한다.The left channel synchronization detector includes a left register for temporarily storing SPDIF audio data of a left channel which is serially input, a delay for delaying an output of the left register for a predetermined period, and a lower synchronization of the left channel from an output of the left register. A sync byte check unit for detecting a byte, and if a low sync byte of a left channel is detected by the sync byte check unit, it is checked whether the output of the delay unit is zero. It is characterized by consisting of a zero check unit.

상기 우측 채널 동기 검출부는 시리얼로 입력되는 우측 채널의 SPDIF 오디오 데이터를 일시 저장하는 우측 레지스터와, 상기 우측 레지스터의 출력을 기 설정된 기간 동안 지연시키는 지연기와, 상기 우측 레지스터의 출력으로부터 우측 채널의 하위 동기바이트를 검출하는 동기바이트 확인부와, 상기 동기바이트 확인부에서 우측 채널의 하위 동기바이트가 검출되면 상기 지연기의 출력이 제로인지를 확인하여 제로라고 판별되면 우측 채널의 동기워드가 검출되었다고 판별하는 제로 확인부로 구성되는 것을 특징으로 한다.The right channel synchronization detector includes a right register for temporarily storing SPDIF audio data of a right channel input serially, a delayer for delaying an output of the right register for a predetermined period, and a lower synchronization of the right channel from an output of the right register. A sync byte check unit for detecting a byte, and if the lower sync byte of the right channel is detected by the sync byte check unit, it is determined whether the output of the delay unit is zero. It is characterized by consisting of a zero check unit.

본 발명에 따른 오디오 디코더를 포함한 오디오 디코딩 시스템의 오디오 데이터 포맷 검출 방법에 있어서, 오디오 디코더는 In the audio data format detection method of an audio decoding system including an audio decoder according to the present invention, the audio decoder is

(a) 입력되는 좌측 채널의 SPDIF 오디오 데이터로부터 좌측 채널의 동기워드를 검출하는 단계;(a) detecting a sync word of a left channel from input SPDIF audio data of a left channel;

(b) 입력되는 우측 채널의 SPDIF 오디오 데이터로부터 우측 채널의 동기워드를 검출하는 단계;(b) detecting a sync word of a right channel from input SPDIF audio data of the right channel;

(c) 상기 (a), (b) 단계에서 좌-우측 채널의 동기워드가 동시에 검출되면 입력되는 SPDIF 오디오 데이터 포맷을 비트스트림으로 판별하는 단계; 그리고(c) determining the input SPDIF audio data format as a bitstream when the sync words of the left and right channels are simultaneously detected in steps (a) and (b); And

(d) 상기 단계에서 비트스트림으로 판별되면 입력되는 SPDIF 오디오 데이터를 비트스트림 포맷에 맞게 디코딩하는 단계를 포함하여 이루어지는 것을 특징으로 한다.and (d) decoding the input SPDIF audio data according to the bitstream format when it is determined as the bitstream in the step.

상기 (c) 단계는 상기 (a), (b) 단계에서 좌-우측 채널의 동기워드가 동시에 검출되면 한 오디오 프레임 구간 동안 기다린 후에 다시 상기 (a), (b) 단계에서 좌-우측 채널의 동기워드가 동시에 검출되는지를 판별하는 과정을 기 설정된 횟수만큼 반복 수행한 후 이때의 검출 결과들을 조합하여 최종적으로 입력되는 SPDIF 오디오 데이터 포맷이 비트스트림으로 전환되었는지 여부를 판별하는 것을 특징으로 한다.In step (c), if the sync word of the left-right channel is detected simultaneously in the steps (a) and (b), wait for one audio frame period and then again in the steps (a) and (b), The process of determining whether the synchronization word is detected simultaneously is repeated a predetermined number of times, and then the detection results are combined to determine whether the final input SPDIF audio data format is converted into a bitstream.

본 발명의 다른 목적, 특징 및 잇점들은 첨부한 도면을 참조한 실시예들의 상세한 설명을 통해 명백해질 것이다.Other objects, features and advantages of the present invention will become apparent from the following detailed description of embodiments taken in conjunction with the accompanying drawings.

이하, 첨부된 도면을 참조하여 본 발명의 실시예의 구성과 그 작용을 설명하며, 도면에 도시되고 또 이것에 의해서 설명되는 본 발명의 구성과 작용은 적어도 하나의 실시예로서 설명되는 것이며, 이것에 의해서 상기한 본 발명의 기술적 사상과 그 핵심 구성 및 작용이 제한되지는 않는다.Hereinafter, with reference to the accompanying drawings illustrating the configuration and operation of the embodiment of the present invention, the configuration and operation of the present invention shown in the drawings and described by it will be described as at least one embodiment, By the technical spirit of the present invention described above and its core configuration and operation is not limited.

도 3은 오디오 디코더(103) 내에 구비되는 오디오 데이터 포맷 검출부의 일 실시예를 보인 구성 블록도로서, 오디오 디코더로 입력되는 SPDIF 데이터는 AC-3 엔코딩 알고리즘을 통해 코딩되었다고 가정한다. 즉, 오디오 디코더는 AC-3 디코딩 알고리즘을 이용하여 입력되는 SPDIF 오디오 데이터를 디코딩함을 의미한다.FIG. 3 is a block diagram illustrating an embodiment of an audio data format detection unit included in the audio decoder 103. It is assumed that SPDIF data input to the audio decoder is coded through an AC-3 encoding algorithm. In other words, the audio decoder decodes the input SPDIF audio data using the AC-3 decoding algorithm.

도 3을 보면, 좌측 채널 동기 검출부(310), 좌측 채널 데이터 버퍼(320), 우측 채널 동기 검출부(330), 우측 채널 데이터 버퍼(340), 비트스트림 판별부(350), 및 디코딩부(360)로 구성된다.Referring to FIG. 3, the left channel sync detector 310, the left channel data buffer 320, the right channel sync detector 330, the right channel data buffer 340, the bitstream discriminator 350, and the decoder 360 are described. It is composed of

상기 좌측 채널 동기 검출부(310)는 시리얼로 입력되는 좌측 채널의 SPDIF 오디오 데이터를 좌측 채널 데이터 버퍼(320)에 저장함과 동시에 상기 입력 데이터로부터 좌측 채널의 동기 워드를 검출하고 그 결과를 비트스트림 판별부(350)로 출력한다. 상기 우측 채널 동기 검출부(330)는 시리얼로 입력되는 우측 채널의 SPDIF 오디오 데이터를 우측 채널 데이터 버퍼(340)에 저장함과 동시에 상기 입력 데이터로부터 우측 채널의 동기 워드를 검출하고 그 결과를 비트스트림 판별부(350)로 출력한다.The left channel sync detector 310 stores SPDIF audio data of a left channel serially input in the left channel data buffer 320 and simultaneously detects a sync word of the left channel from the input data and outputs the bitstream discriminator. Output to 350. The right channel sync detector 330 stores SPDIF audio data of a right channel input serially in the right channel data buffer 340, and simultaneously detects a sync word of the right channel from the input data and outputs the bitstream discriminator. Output to 350.

상기 좌측 채널 데이터 버퍼(320)는 좌측 채널의 SPDIF 오디오 데이터를 일시 저장한 후 디코딩부(360)로 출력하고, 상기 우측 채널 데이터 버퍼(340)는 우측 채널의 SPDIF 오디오 데이터를 일시 저장한 후 디코딩부(360)로 출력한다.The left channel data buffer 320 temporarily stores the SPDIF audio data of the left channel and outputs it to the decoding unit 360. The right channel data buffer 340 temporarily stores the SPDIF audio data of the right channel and then decodes it. Output to the unit 360.

상기 비트스트림 판별부(350)는 상기 좌-우측 채널 동기 검출부(310,330)의 출력으로부터 현재 입력된 오디오 데이터 포맷이 비트스트림인지를 판별한 후 그 판별 결과를 디코딩부(360)로 출력한다.The bitstream determination unit 350 determines whether the audio data format currently input is a bitstream from the outputs of the left-right channel synchronization detection units 310 and 330 and outputs the determination result to the decoding unit 360.

상기 디코딩부(360)는 SPDIF 수신부(101)에서 출력되는 좌-우측 클럭과 샘플링 클럭 그리고, 비트스트림 판별부(350)의 판별 결과를 이용하여 상기 좌-우측 채널 데이터 버퍼(320,340)에서 출력되는 실제 SPDIF 좌-우측 데이터를 AC3 디코딩 알고리즘으로 디코딩한다. The decoding unit 360 is output from the left-right channel data buffers 320 and 340 using the left-right clock and sampling clock output from the SPDIF receiving unit 101 and the result of the bitstream determination unit 350. Decode the actual SPDIF left-right data with the AC3 decoding algorithm.

이와 같이 구성된 본 발명에서 좌측 채널 동기 검출부(310)의 좌측 레지스터(311)는 시리얼로 입력되는 좌측 채널의 SPDIF 오디오 데이터를 저장한 후 지연기(312)와 동기바이트 확인부(313)로 출력한다. In the present invention configured as described above, the left register 311 of the left channel sync detector 310 stores SPDIF audio data of the left channel serially and outputs them to the delay unit 312 and the sync byte checker 313. .

상기 지연기(312)는 2바이트 동안 입력되는 데이터를 지연시키는 지연기로서, 지연된 데이터는 좌측 채널 데이터 버퍼(320)에 저장한다. 동시에 상기 지연된 데이터는 제로 확인부(314)로 출력된다.The delayer 312 is a delayer for delaying data input for two bytes, and the delayed data is stored in the left channel data buffer 320. At the same time, the delayed data is output to the zero confirmation unit 314.

상기 동기바이트 확인부(313)는 좌측 레지스터(311)의 출력 데이터로부터 좌측 하위 동기바이트 즉, F872를 검출하고, F872가 검출되면 이를 알리는 신호를 제로 확인부(314)로 출력한다.The sync byte checker 313 detects the left lower sync byte, that is, F872 from the output data of the left register 311, and outputs a signal to the zero checker 314 to indicate when F872 is detected.

상기 제로 확인부(314)는 상기 동기바이트 확인부(313)에서 F872가 검출되면 상기 지연기(312)의 출력이 0인지를 확인한다. The zero check unit 314 checks whether the output of the delay unit 312 is 0 when F872 is detected by the sync byte check unit 313.

즉, 좌측 채널의 동기워드는 0000F872이므로 상기 동기바이트 확인부(313)에서 F872가 검출되고, 이때 지연기(312)에서 0000가 출력되면 제로 확인부(314)는 좌측 동기워드 0000F872가 검출되었다고 판단하고 이에 해당하는 신호를 비트스트림 판별부(350)로 출력한다.That is, since the sync word of the left channel is 0000F872, F872 is detected by the sync byte checker 313, and if 0000 is output from the delay unit 312, the zero checker 314 determines that the left sync word 0000F872 is detected. The signal corresponding thereto is output to the bitstream determination unit 350.

이때, 상기 제로 확인부(314)는 동기바이트 검출부(313)에서 F872가 검출되었더라도 상기 제로 확인부(312)에서 0000가 출력되지 않으면 좌측 동기 워드가 아니라고 판정한다. At this time, even if F872 is detected by the sync byte detector 313, the zero check unit 314 determines that the left sync word is not the left sync word unless 0000 is output from the zero check unit 312.

마찬가지로, 우측 채널 동기 검출부(330)의 우측 레지스터(331)는 시리얼로 입력되는 우측 채널의 SPDIF 오디오 데이터를 저장한 후 지연기(332)와 동기바이트 확인부(333)로 출력한다. Similarly, the right register 331 of the right channel sync detector 330 stores SPDIF audio data of the right channel input serially and outputs the SPDIF audio data to the delay unit 332 and the sync byte checker 333.

상기 지연기(332)는 2바이트 동안 입력되는 데이터를 지연시키는 지연기로서, 지연된 데이터는 우측 채널 데이터 버퍼(340)에 저장한다. 동시에 상기 지연된 데이터는 제로 확인부(334)로 출력된다.The delayer 332 is a delayer for delaying data input for two bytes, and the delayed data is stored in the right channel data buffer 340. At the same time, the delayed data is output to the zero confirmation unit 334.

상기 동기바이트 확인부(333)는 우측 레지스터(331)의 출력 데이터로부터 우측 상위 동기바이트 즉, 4E1F를 검출하고, 4E1F가 검출되면 이를 알리는 신호를 제로 확인부(334)로 출력한다.The sync byte checker 333 detects the right upper sync byte, that is, 4E1F, from the output data of the right register 331, and outputs a signal indicating the signal to the zero checker 334 when 4E1F is detected.

상기 제로 확인부(334)는 상기 동기바이트 확인부(333)에서 4E1F가 검출되면 상기 지연기(332)의 출력이 0인지를 확인한다. The zero check unit 334 checks whether the output of the delay unit 332 is 0 when 4E1F is detected by the sync byte check unit 333.

즉, 우측 채널의 동기워드는 00004E1F이므로 상기 동기바이트 확인부(333)에서 4E1F가 검출되고, 이때 지연기(332)에서 0000가 출력되면 제로 확인부(334)는 우측 동기워드가 검출되었다고 판단하고 이에 해당하는 신호를 비트스트림 판별부(350)로 출력한다.That is, since the sync word of the right channel is 00004E1F, 4E1F is detected by the sync byte checker 333, and if 0000 is output from the delay unit 332, the zero check unit 334 determines that the right sync word is detected. The signal corresponding thereto is output to the bitstream determination unit 350.

이때에도, 상기 제로 확인부(334)는 동기바이트 검출부(333)에서 4E1F가 검출되었더라도 상기 제로 확인부(332)에서 0000가 출력되지 않으면 우측 동기 워드가 아니라고 판정한다. At this time, even if 4E1F is detected by the sync byte detector 333, the zero check unit 334 determines that the right sync word is not the right sync word if 0000 is not output.

상기 비트스트림 판별부(350)는 상기 좌측 채널 동기 검출부(310)에서 좌측채널 동기워드가 검출되고, 우측 채널 동기 검출부(330)에서 우측 채널 동기워드가 검출되면 현재 입력되는 오디오 데이터 포맷이 비트스트림이라고 판별한다. 상기 비트스트림 판별부(350)의 판별 결과는 디코딩부(360)로 출력된다.When the left channel sync word is detected by the left channel sync detector 310, and the right channel sync word is detected by the right channel sync detector 330, the bit stream determination unit 350 performs a bit stream. Is determined. The determination result of the bitstream determination unit 350 is output to the decoding unit 360.

이때, 상기 비트스트림 판별부(350)는 경고 비트(warning bit)를 이용하여 비트스트림 검출 유무를 상기 디코딩부(360)로 알릴수 있다. 예를 들어, 디코딩부(360)로 출력되는 경고 비트 값을 0으로 리셋시키고 있다가 상기 좌측 채널 동기 검출부(310)에서 좌측채널 동기워드가 검출되고, 우측 채널 동기 검출부(330)에서 우측 채널 동기워드가 검출되면 상기 경고 비트를 1로 셋트시킨다. 상기 디코딩부(360)에서는 경고 비트가 0에서 1로 바뀌면 오디오 데이터 포맷이 PCM에서 비트스트림으로 전환되었다고 판단하고 바로 비트스트림 포맷에 적합하게 입력되는 오디오 데이터를 디코딩한다. In this case, the bitstream determination unit 350 may notify the decoding unit 360 of the presence or absence of a bitstream detection using a warning bit. For example, while resetting the warning bit value output to the decoder 360 to 0, the left channel sync word is detected by the left channel sync detector 310, and the right channel sync is detected by the right channel sync detector 330. If a word is detected, the warning bit is set to one. When the warning bit is changed from 0 to 1, the decoding unit 360 determines that the audio data format has been converted from the PCM to the bitstream, and immediately decodes the audio data that is appropriately adapted to the bitstream format.

즉, 상기 디코딩부(360)는 SPDIF 수신부(101)에서 출력되는 좌-우측 클럭과 샘플링 클럭 그리고, 상기 비트스트림 판별부(350)의 경고 비트를 이용하여 상기 좌-우측 채널 데이터 버퍼(320,340)에서 출력되는 좌-우측 채널 오디오 데이터를 AC3 디코딩 알고리즘으로 디코딩한다.That is, the decoding unit 360 uses the left-right clock and sampling clock output from the SPDIF receiving unit 101 and the warning bits of the bitstream determination unit 350 to transmit the left-right channel data buffers 320 and 340. Decode the left-right channel audio data output by the AC3 decoding algorithm.

이때, 비트스트림 판별의 신뢰성을 높이기 위하여 상기 경고 비트는 복수개의 비트로 구성할 수도 있다. In this case, in order to increase the reliability of bitstream discrimination, the warning bit may be composed of a plurality of bits.

예를 들어, 경고 비트를 2비트로 구성하고 디코딩부(350)에서는 2비트의 경고 비트가 모두 1일때만 오디오 데이터 포맷이 비트스트림으로 변환되었다고 판단한다고 가정하자. 이때 상기 비트스트림 판별부(350)는 좌측 채널 동기 검출부(310)에서 좌측채널 동기워드가 검출되고, 우측 채널 동기 검출부(330)에서 우측 채널 동기워드가 검출되면 하위 경고 비트를 1로 셋트시킨다. 그리고 나서 한 프레임 기간 후에 다시 좌측 채널 동기 검출부(310)에서 좌측채널 동기워드가 검출되고, 우측 채널 동기 검출부(330)에서 우측 채널 동기워드가 검출되면 상위 경고 비트를 1로 셋트시킨다. 이는 상기 동기 워드는 한 프레임마다 규칙적으로 삽입되기 때문이다.For example, suppose that the warning bit is composed of 2 bits, and the decoding unit 350 determines that the audio data format has been converted into a bitstream only when the warning bits of both bits are 1. In this case, when the left channel sync word is detected by the left channel sync detector 310, and the right channel sync word is detected by the right channel sync detector 330, the bitstream determiner 350 sets the lower warning bit to 1. Then, after one frame period, when the left channel sync word is detected by the left channel sync detector 310 and the right channel sync word is detected by the right channel sync detector 330, the upper warning bit is set to one. This is because the sync word is inserted regularly every frame.

여기서, 상기 경고 비트의 수는 각각의 어플리케이션(application)에 맞게 사용하면 된다. 즉, 오디오 데이터 포맷 검출부의 구조가 간단할수록 입력 데이터 포맷의 전환을 빨리 감지할 수 있지만, 실제 오디오 데이터와 동기 워드가 우연히 같은 경우, 전환이 아닌 것을 전환으로 감지할 수 있는 확률이 높아진다. 따라서, 경고 비트의 수가 높아질수록 입력 오디오 데이터 포맷의 전환을 느리게 감지하지만, 검출 에러의 확률은 줄어든다.In this case, the number of warning bits may be used according to each application. That is, the simpler the structure of the audio data format detection unit is, the faster it is possible to detect a change in the input data format. However, when the actual audio data and the sync word are coincidentally, the probability of detecting a non-conversion as a switch increases. Thus, the higher the number of warning bits, the slower the detection of switching of the input audio data format, but the lower the probability of detection error.

도 4는 이러한 본 발명의 오디오 포맷 변환 검출 과정을 나타낸 흐름도로서, 경고 비트를 2비트로 한 예를 보이고 있다.4 is a flowchart illustrating an audio format conversion detection process of the present invention, and shows an example in which a warning bit is 2 bits.

먼저, 오디오 데이터의 디코딩 시스템에 따른 프레임 당 샘플 수만큼 대기 클럭을 설정한다(단계 401).First, the standby clock is set by the number of samples per frame according to the decoding system of the audio data (step 401).

여기서, AC-3의 경우, 도 2와 같이 하나의 오디오 프레임은 1536 샘플로 구성되므로 이때 설정되는 클럭은 1536이 된다. 즉 이 경우 상기 단계 301에서 설정되는 대기 클럭은 1536 클럭이 된다. 이는 동기워드가 도 2에서와 같이 한 프레임마다 규칙적으로 삽입되기 때문이다. 즉, 동기 워드가 검출되고 나서 한 프레임 후에 다시 동기워드가 검출되면 입력된 오디오 데이터 포맷은 비트스트림이라고 판정한다. In the case of AC-3, since one audio frame is composed of 1536 samples as shown in FIG. 2, the clock set at this time is 1536. In this case, the standby clock set in step 301 becomes 1536 clock. This is because the sync word is regularly inserted every frame as shown in FIG. That is, if the sync word is detected again one frame after the sync word is detected, it is determined that the input audio data format is a bitstream.

상기 단계 401에서 대기 클럭을 설정하고 나면 경고 비트(warning bit)를 리셋시키고(단계 402), 시리얼로 입력되는 SPDIF 오디오 데이터를 검색한다.After setting the standby clock in step 401, the warning bit is reset (step 402), and the SPDIF audio data inputted through the serial is searched.

즉, 좌측 채널 동기 검출부(310)에서 SPDIF 오디오 비트스트림 좌측 동기워드 0000F872가 검출되고(단계 403), 동시에 우측 채널 동기 검출부(330)에서 SPDIF 오디오 비트스트림 우측 동기워드 00004E1F가 검출되면(단계 404), 하위 경고 비트를 1로 설정하면서 상기 단계 401에서 설정한 대기 클럭 수만큼 기다린다(단계 405).That is, if the left channel sync detector 310 detects the SPDIF audio bitstream left sync word 0000F872 (step 403) and at the same time the right channel sync detector 330 detects the SPDIF audio bitstream right sync word 00004E1F (step 404). In step 405, the lower warning bit is set to 1 while waiting for the number of waiting clocks set in step 401.

그리고, 상기 대기 클럭 수가 지나면 다시 좌측 채널 동기 검출부(310)에서 SPDIF 오디오 비트스트림 좌측 동기워드 0000F872가 검출되고(단계 406), 동시에 우측 채널 동기 검출부(330)에서 SPDIF 오디오 비트스트림 우측 동기워드 00004E1F가 검출되는지를 확인한다(단계 407). 상기 단계에서 좌-우측 동기워드가 검출되었다고 판별되면 상위 경고 비트를 1로 설정한다(단계 408). After the waiting clock number has passed, the left channel sync detector 310 detects the SPDIF audio bitstream left sync word 0000F872 (step 406), and simultaneously the right channel sync detector 330 detects the SPDIF audio bitstream right sync word 00004E1F. Check if it is detected (step 407). If it is determined that the left-right sync word has been detected in this step, the upper warning bit is set to 1 (step 408).

상기 디코딩부(360)는 SPDIF 수신부(101)에서 출력되는 좌-우측 클럭과 샘플링 클럭을 이용하여 상기 좌-우측 채널 데이터 버퍼(320,340)에서 출력되는 좌-우측 채널 오디오 데이터를 AC3 디코딩 알고리즘으로 디코딩하다가 상기 비트스트림 판별부(350)에서 출력되는 경고 비트(1:0)가 모두 1이 되면 오디오 데이터 포맷이 비트스트림으로 전환되었다고 인식하고 그에 맞게 입력되는 오디오 데이터를 디코딩한다.The decoder 360 decodes the left-right channel audio data output from the left-right channel data buffers 320 and 340 using an AC3 decoding algorithm by using a left-right clock and a sampling clock output from the SPDIF receiver 101. When the warning bits (1: 0) output from the bitstream determination unit 350 are all 1s, the audio data format is converted into a bitstream and the audio data input is decoded accordingly.

즉, 경고 비트(1:0)가 모두 1이 되었다는 것은 한 번의 동기워드 입력 이후에 한 오디오 프레임 데이터가 입력되고 다시 동기 워드가 입력된 것이므로 이때는 입력되는 오디오 데이터 포맷이 PCM에서 비트스트림으로 전환되었다고 간주하는 것이다. In other words, when the warning bits (1: 0) are all 1s, one audio frame data is input after one sync word input, and the sync word is input again. In this case, the input audio data format is changed from PCM to bitstream. To consider.

이와 같이 오디오 디코딩 제어부에서 오디오 디코더로 오디오 데이터 포맷 전환 정보를 주기 전에 오디오 디코더 자체적으로 오디오 데이터 포맷의 전환을 감지하면 최악의 경우에도 두 개의 오디오 프레임 만큼의 오동작만을 감수하면 되며, 이로 인해서 오디오 디코더 출력단의 소음을 최소화 할 수 있다.In this case, if the audio decoder detects a change in the audio data format before the audio decoder converts the audio data format from the audio decoder to the audio decoder, the audio decoder output endures only a malfunction of two audio frames. Noise can be minimized.

이상에서와 같이 본 발명에 따른 오디오 디코딩 시스템 및 오디오 데이터 포맷 검출부에 의하면, 오디오 디코더 내에서 자체적으로 입력되는 오디오 데이터가 PCM인지 비트스트림인지를 판별하고 판별 결과에 맞게 입력되는 오디오 데이터를 디코딩함으로써, 입력 오디오 데이터가 SPDIF PCM에서 SPDIF 비트스트림으로 전환되는 경우 발생할 수 있는 오디오 디코더의 오동작을 최소화할 수 있다. As described above, according to the audio decoding system and the audio data format detecting unit according to the present invention, by determining whether the audio data inputted within the audio decoder itself is a PCM or a bitstream, and decoding the audio data input according to the determination result, The malfunction of the audio decoder that may occur when the input audio data is converted from the SPDIF PCM to the SPDIF bitstream can be minimized.

또한, 상기 오디오 디코더에서 자체적으로 입력되는 오디오 데이터의 포맷 전환을 감지함으로써, CPU의 부담을 줄여 고가의 CPU 사용을 억제하고 이로 인해 오디오 디코딩 시스템의 가격을 절감시킬 수 있다. In addition, by detecting the format conversion of the audio data input by the audio decoder itself, it is possible to reduce the burden on the CPU to suppress expensive CPU usage, thereby reducing the price of the audio decoding system.

이상 설명한 내용을 통해 당업자라면 본 발명의 기술 사상을 일탈하지 아니하는 범위에서 다양한 변경 및 수정이 가능함을 알 수 있을 것이다.Those skilled in the art will appreciate that various changes and modifications can be made without departing from the spirit of the present invention.

따라서, 본 발명의 기술적 범위는 실시예에 기재된 내용으로 한정되는 것이 아니라 특허 청구의 범위에 의하여 정해져야 한다. Therefore, the technical scope of the present invention should not be limited to the contents described in the embodiments, but should be defined by the claims.

도 1은 일반적인 오디오 디코딩 시스템의 구성 블록도1 is a block diagram of a general audio decoding system

도 2a, 도 2b는 AC3에 대한 좌-우측 오디오 데이터 프레임의 예를 보인 도면2A and 2B show examples of left-right audio data frames for AC3.

도 3은 본 발명에 따른 오디오 디코딩 시스템 중 오디오 디코더의 상세 블록도3 is a detailed block diagram of an audio decoder in an audio decoding system according to the present invention.

도 4는 본 발명에 따른 오디오 디코더에서 오디오 포맷 검출 방법의 일 예를 보인 흐름도4 is a flowchart illustrating an example of an audio format detection method in an audio decoder according to the present invention.

도면의 주요부분에 대한 부호의 설명Explanation of symbols for main parts of the drawings

310 : 좌측 채널 동기워드 검출부 311 : 좌측 레지스터310: left channel sync word detector 311: left register

312,332 : 지연기 313,333 : 동기바이트 확인부312,332: Delay 313,333: Synchronization byte check unit

314,334 : 제로 확인부 320 : 좌측 채널 데이터 버퍼314,334: zero check unit 320: left channel data buffer

330 : 우측 채널 동기워드 검출부330: right channel sync word detector

340 : 우측 채널 데이터 버퍼 350 : 비트스트림 판별부340: right channel data buffer 350: bitstream determination unit

360 : 디코딩부360: decoding unit

Claims (11)

SPDIF 오디오 데이터를 입력받아 디코딩하는 오디오 디코딩 시스템에 있어서, An audio decoding system for receiving and decoding SPDIF audio data, 입력되는 SPDIF 오디오 데이터로부터 좌-우측 클럭과 샘플링 클럭을 복원하고 이를 실제 SPDIF 오디오 데이터와 함께 출력하는 SPDIF 수신부;An SPDIF receiver for restoring the left-right clock and the sampling clock from the input SPDIF audio data and outputting the same along with the actual SPDIF audio data; 상기 SPDIF 수신부에서 출력되는 실제 SPDIF 오디오 데이터로부터 오디오 데이터 포맷이 전환되는지를 판별하고, 판별 결과와 상기 좌-우측 클럭 그리고, 샘플링 클럭을 이용하여 실제 SPDIF 오디오 데이터를 디코딩하는 오디오 디코더를 포함하여 구성되는 것을 특징으로 하는 오디오 디코딩 시스템.And an audio decoder for determining whether the audio data format is switched from the actual SPDIF audio data output from the SPDIF receiving unit, and decoding the actual SPDIF audio data by using the determination result, the left-right clock, and a sampling clock. Audio decoding system, characterized in that. 제 1 항에 있어서, 상기 오디오 디코더는The method of claim 1, wherein the audio decoder 입력되는 좌측 채널의 SPDIF 오디오 데이터를 저장하는 좌측 채널 데이터 버퍼와,A left channel data buffer for storing SPDIF audio data of an input left channel; 입력되는 좌측 채널의 SPDIF 오디오 데이터로부터 좌측 채널의 동기워드를 검출하는 좌측 채널 동기 검출부와,A left channel sync detector for detecting a sync word of the left channel from the input SPDIF audio data of the left channel; 입력되는 우측 채널의 SPDIF 오디오 데이터를 저장하는 우측 채널 데이터 버퍼와,A right channel data buffer for storing SPDIF audio data of an input right channel; 입력되는 우측 채널의 SPDIF 오디오 데이터로부터 우측 채널의 동기워드를 검출하는 우측 채널 동기 검출부와,A right channel sync detector for detecting a sync word of the right channel from the input SPDIF audio data of the right channel; 상기 좌-우측 채널 동기 검출부에서 각각 좌측 채널의 동기 워드와 우측 채널의 동기 워드가 동시에 검출되면 입력되는 SPDIF 오디오 데이터 포맷을 비트스트림으로 판별하는 비트스트림 판별부와,A bitstream discriminating unit for discriminating an input SPDIF audio data format as a bitstream when the left-right channel sync detecting unit detects a sync word of a left channel and a sync word of a right channel at the same time; 상기 비트스트림 판별부의 판별 결과에 따라 상기 좌-우측 채널 데이터 버퍼에서 출력되는 좌-우측 채널 SPDIF 오디오 데이터를 디코딩하는 디코딩부를 포함하여 구성되는 것을 특징으로 하는 오디오 디코딩 시스템.And a decoding unit for decoding the left-right channel SPDIF audio data output from the left-right channel data buffer according to a determination result of the bitstream determination unit. 제 2 항에 있어서, 상기 좌측 채널 동기 검출부는The method of claim 2, wherein the left channel sync detection unit 시리얼로 입력되는 좌측 채널의 SPDIF 오디오 데이터를 일시 저장하는 좌측 레지스터와,Left register for temporarily storing SPDIF audio data of the left channel inputted serially; 상기 좌측 레지스터의 출력을 기 설정된 기간 동안 지연시키는 지연기와,A delay unit for delaying an output of the left register for a preset period of time; 상기 좌측 레지스터의 출력으로부터 좌측 채널의 하위 동기바이트를 검출하는 동기바이트 확인부와,A synchronization byte confirmation unit for detecting a lower synchronization byte of the left channel from the output of the left register; 상기 동기바이트 확인부에서 좌측 채널의 하위 동기바이트가 검출되면 상기 지연기의 출력이 제로인지를 확인하여 제로라고 판별되면 좌측 채널의 동기워드가 검출되었다고 판별하는 제로 확인부로 구성되는 것을 특징으로 하는 오디오 디코딩 시스템.When the lower sync byte of the left channel is detected by the sync byte confirming unit, it is determined that the output of the delay unit is zero. Decoding system. 제 3 항에 있어서, The method of claim 3, wherein 상기 지연기의 지연 구간은 좌측 채널의 상위 동기바이트 크기만큼 설정되는 것을 특징으로 하는 오디오 디코딩 시스템.And a delay period of the delay unit is set by an upper sync byte size of a left channel. 제 3 항에 있어서, The method of claim 3, wherein 상기 좌측 채널의 동기워드는 AC3 엔코딩의 경우 0000F872의 패턴값을 갖는 것을 특징으로 하는 오디오 디코딩 시스템.The sync word of the left channel has a pattern value of 0000F872 for AC3 encoding. 제 2 항에 있어서, 상기 우측 채널 동기 검출부는The method of claim 2, wherein the right channel sync detection unit 시리얼로 입력되는 우측 채널의 SPDIF 오디오 데이터를 일시 저장하는 우측 레지스터와,A right register for temporarily storing SPDIF audio data of a right channel inputted serially; 상기 우측 레지스터의 출력을 기 설정된 기간 동안 지연시키는 지연기와,A delayer for delaying the output of the right register for a preset period of time; 상기 우측 레지스터의 출력으로부터 우측 채널의 하위 동기바이트를 검출하는 동기바이트 확인부와,A synchronization byte confirmation unit for detecting a lower synchronization byte of the right channel from the output of the right register; 상기 동기바이트 확인부에서 우측 채널의 하위 동기바이트가 검출되면 상기 지연기의 출력이 제로인지를 확인하여 제로라고 판별되면 우측 채널의 동기워드가 검출되었다고 판별하는 제로 확인부로 구성되는 것을 특징으로 하는 오디오 디코딩 시스템.When the lower sync byte of the right channel is detected by the sync byte confirming unit, it is determined that the output of the delay unit is zero. Decoding system. 제 6 항에 있어서, The method of claim 6, 상기 지연기의 지연 구간은 우측 채널의 상위 동기바이트 크기만큼 설정되는 것을 특징으로 하는 오디오 디코딩 시스템.And a delay period of the delay unit is set by an upper sync byte size of a right channel. 제 6 항에 있어서, The method of claim 6, 상기 우측 채널의 동기워드는 AC3 엔코딩의 경우 00004E1F의 패턴값을 갖는 것을 특징으로 하는 오디오 디코딩 시스템.The sync word of the right channel has a pattern value of 00004E1F for AC3 encoding. 제 2 항에 있어서, 상기 비트스트림 판별부는The method of claim 2, wherein the bitstream determination unit 상기 좌-우측 채널 동기 검출부에서 좌-우측 동기워드가 동시에 검출되면 입력되는 SPDIF 오디오 데이터 포맷을 비트스트림으로 판별하고 그 결과를 상기 디코딩부로 출력하는 것을 특징으로 하는 오디오 디코딩 시스템.And a left-right sync word detected by the left-right channel sync detector at the same time to determine the input SPDIF audio data format as a bitstream and output the result to the decoder. 좌-우측 클럭과 샘플링 클럭을 이용하여 SPDIF 오디오 데이터를 디코딩하는 오디오 디코더를 포함하는 오디오 디코딩 시스템의 오디오 데이터 포맷 검출 방법에 있어서,An audio data format detection method of an audio decoding system comprising an audio decoder for decoding SPDIF audio data using a left-right clock and a sampling clock. 상기 오디오 디코더는 The audio decoder is (a) 입력되는 좌측 채널의 SPDIF 오디오 데이터로부터 좌측 채널의 동기워드를 검출하는 단계;(a) detecting a sync word of a left channel from input SPDIF audio data of a left channel; (b) 입력되는 우측 채널의 SPDIF 오디오 데이터로부터 우측 채널의 동기워드를 검출하는 단계;(b) detecting a sync word of a right channel from input SPDIF audio data of the right channel; (c) 상기 (a), (b) 단계에서 좌-우측 채널의 동기워드가 동시에 검출되면 입력되는 SPDIF 오디오 데이터 포맷을 비트스트림으로 판별하는 단계; 그리고(c) determining the input SPDIF audio data format as a bitstream when the sync words of the left and right channels are simultaneously detected in steps (a) and (b); And (d) 상기 단계에서 비트스트림으로 판별되면 입력되는 SPDIF 오디오 데이터를 비트스트림 포맷에 맞게 디코딩하는 단계를 포함하여 이루어지는 것을 특징으로 하는 오디오 데이터 포맷 검출 방법.and (d) decoding the input SPDIF audio data according to the bitstream format when it is determined as the bitstream in the step. 제 10 항에 있어서, 상기 (c) 단계는The method of claim 10, wherein step (c) 상기 (a), (b) 단계에서 좌-우측 채널의 동기워드가 동시에 검출되면 한 오디오 프레임 구간 동안 기다린 후에 다시 상기 (a), (b) 단계에서 좌-우측 채널의 동기워드가 동시에 검출되는지를 판별하는 과정을 기 설정된 횟수만큼 반복 수행한 후 이때의 검출 결과들을 조합하여 최종적으로 입력되는 SPDIF 오디오 데이터 포맷이 비트스트림으로 전환되었는지 여부를 판별하는 것을 특징으로 하는 오디오 데이터 포맷 검출 방법.If the sync words of the left and right channels are detected simultaneously in the above steps (a) and (b), wait for one audio frame period and then again if the sync words of the left and right channels are detected simultaneously in the steps (a) and (b). And repeating the process of determining a predetermined number of times and combining the detection results at this time to determine whether the final input SPDIF audio data format has been converted to a bitstream.
KR10-2004-0003890A 2004-01-19 2004-01-19 Audio decoding system and audio format detecting method KR100531321B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2004-0003890A KR100531321B1 (en) 2004-01-19 2004-01-19 Audio decoding system and audio format detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2004-0003890A KR100531321B1 (en) 2004-01-19 2004-01-19 Audio decoding system and audio format detecting method

Publications (2)

Publication Number Publication Date
KR20050076088A true KR20050076088A (en) 2005-07-26
KR100531321B1 KR100531321B1 (en) 2005-11-28

Family

ID=37264066

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2004-0003890A KR100531321B1 (en) 2004-01-19 2004-01-19 Audio decoding system and audio format detecting method

Country Status (1)

Country Link
KR (1) KR100531321B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100826942B1 (en) * 2006-08-04 2008-05-02 엠텍비젼 주식회사 Method for performing bit conversion on digital audio data, decoding apparatus for performing the same, and method of reproducing digital audio data
US10284952B2 (en) 2016-02-16 2019-05-07 Samsung Electronics Co., Ltd. Audio processing apparatus and control method thereof
CN111837181A (en) * 2018-10-08 2020-10-27 杜比实验室特许公司 Converting audio signals captured in different formats to a reduced number of formats to simplify encoding and decoding operations

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100189535B1 (en) * 1996-07-15 1999-06-01 윤종용 Ac-3/pcm data select output circuit and method
KR100211752B1 (en) * 1996-08-29 1999-08-02 윤종용 Audio muting circuit of digital audio amplifier
KR20000051267A (en) * 1999-01-20 2000-08-16 김영환 Apparatus for audio decoding having auto-switching function of PCM or bit stream mode

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100826942B1 (en) * 2006-08-04 2008-05-02 엠텍비젼 주식회사 Method for performing bit conversion on digital audio data, decoding apparatus for performing the same, and method of reproducing digital audio data
US10284952B2 (en) 2016-02-16 2019-05-07 Samsung Electronics Co., Ltd. Audio processing apparatus and control method thereof
CN111837181A (en) * 2018-10-08 2020-10-27 杜比实验室特许公司 Converting audio signals captured in different formats to a reduced number of formats to simplify encoding and decoding operations

Also Published As

Publication number Publication date
KR100531321B1 (en) 2005-11-28

Similar Documents

Publication Publication Date Title
JP2863771B2 (en) Synchronous serial interface resynchronization method and circuit
JP4629977B2 (en) Method and apparatus for decoding a coded digital audio signal located in a frame containing a header
US7549000B2 (en) Apparatus and method for generating bitstream of S/PDIF data in HDMI
US7287176B2 (en) Apparatus, method and storage medium for carrying out deskew among multiple lanes for use in division transmission of large-capacity data
US20110103404A1 (en) System and method for transmitting audio data over serial link
EP1176753B1 (en) Method and system for sychronizing serial data
KR100531321B1 (en) Audio decoding system and audio format detecting method
US4974225A (en) Data receiver interface circuit
US10990348B2 (en) Detection method and detection device for audio signal
KR20100030574A (en) Video recording and playback apparatus
JPH1013238A (en) Decoder and decoding method therefor
US6993139B2 (en) Method of and apparatus for decoding audio data
US20120005562A1 (en) Encoded stream decoding device
KR100200048B1 (en) System and method for automatically separating and processing mpeg-2 transmission stream and mpeg-1 system stream
WO2024053708A1 (en) Transmission device, reception device, and transmission and reception system
JP2736820B2 (en) Data communication device interface circuit
JP2714624B2 (en) Data transmission equipment
KR20000051267A (en) Apparatus for audio decoding having auto-switching function of PCM or bit stream mode
JP2576526B2 (en) I / O signal monitoring circuit
KR100242309B1 (en) Apparatus for receiving mpeg data
JPH07170513A (en) Picture coding/decoding method
KR20130029643A (en) Apparatus and method for decoding manchester code
JP3494381B2 (en) Audio decoding method and decoder
JPH11145946A (en) Method for transmitting coded information frame and transmitter and receiver to be used for the same
JPH0486032A (en) Sound code

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee