This application claims the priority benefit of China application serial no. 201210022676.1, filed on Jan. 20, 2012. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
1. Field of the Invention
The invention relates to an apparatus for data processing and a method therefor, and more particularly to an apparatus for audio data processing and a method therefor.
2. Description of Related Art
Development of science and technologies leads to the increasing demand for quality of multimedia. Accordingly, the digital audio broadcasting (DAB) standard, a digital technology standard for broadcasting audio streams, has been developed. In comparison with the conventional analog broadcasts, e.g., the analog FM radio, the DAB broadcasts are characterized by high fidelity as well as resistance to noise and co-channel interference. Further, a DAB ensemble is able to include multiple channels within one single bandwidth. Recently, new standards (e.g., the digital audio broadcasting plus (DAB+) standard) that resolve issues existing in the old standard have been widely adopted over various countries.
According to the DAB+ standard, the audio data is encoded and compressed in compliance with high efficiency advanced audio coding (HE-AAC), so as to ameliorate the reception quality and improve the quality of the broadcast audio data. As a matter of fact, normal audio decoders (e.g., an audio decoder installed in a digital television chip or a digital audio player) capable of decoding advanced audio coding (AAC) encoded streams/packets can decode the HE-AAC encoded frames/streams as long as the available data parameters are sufficient. Nevertheless, according to the DAB+ standard, the HE-AAC encoded audio data is transported in form of an audio super frame (ASF) format, and the data parameters required for decoding data streams are stored in the header of the ASF. Thereby, the audio data cannot be directly decoded and broadcast even through the audio decoder capable of decoding the AAC encoded streams/packets is applied.
The invention is directed to an apparatus for audio data processing and a method therefor. Specifically, an audio decoder may acquire the frame information required for data decoding from the unidentifiable header, so as to perform a decoding process.
In the invention, an apparatus for audio data processing and a method therefor are provided. The apparatus includes a processing unit and an audio decoder. The processing unit receives an audio data stream, and the audio data stream includes a first frame header that complies with a communication protocol and an audio data encoded in an audio compression format. The processing unit parses the audio data stream to split the first frame header and the audio data, generates at least one frame information according to the first frame header, and acquires a second frame header according to the frame information. Here, the second frame header complies with an international audio and video coding standard. The audio decoder is coupled to the processing unit, receives the second frame header and the audio data from the processing unit, and decompresses the audio data according to the second frame header.
In the invention, a method for audio data processing includes following steps. An audio data stream is received. Here, the audio data stream includes a first frame header that complies with a communication protocol and an audio data encoded in an audio compression format. The audio data stream is parsed to split the first frame header and the audio data, and at least one frame information is acquired according to the first frame header. A second frame header is generated according to the frame information. Here, the second frame header complies with an international audio and video coding standard. The audio data is decompressed according to the second frame header.
Based on the above, the invention provides an apparatus for audio data processing and a method therefor. Specifically, frame information required for decoding data may be retrieved from a frame header that complies with a communication protocol, and the frame information is then converted into a format that can be recognized by the audio decoder, such that the audio decoder is able to perform the decoding process according to the frame information and broadcast the decoded data.
Other features and advantages of the invention will be further understood from the further technological features disclosed by the embodiments of the invention wherein there are shown and described embodiments of this invention, simply by way of illustration of modes best suited to carry out the invention.
The accompanying drawings are included to provide further understanding, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments and, together with the description, serve to explain the principles of the disclosure.
The processing unit 110 parses the audio data stream AS to split the first frame header and the audio data AD. According to the first frame header, the processing unit 110 generates at least one frame information which includes information indispensible for decoding the HE-AAC audio data. For instance, such information may include parameters in connection with the stored audio data and the transport audio data. The processing unit 110 thereby acquires a second frame header FH2 according to said frame information.
The second frame header FH2 complies with an international audio and video coding standard. For instance, corresponding to the HE-AAC encoded audio data AD, the second frame header FH2 complies with a moving picture experts group-2 (MPEG-2) standard or a moving picture experts group-4 (MPEG-4) standard. Information required for decoding data streams is stored in the second frame header FH2 in compliance with the aforesaid international audio and video coding standard. For instance, a transport data and a storage data required for data decoding are respectively stored in the second frame header FH2 in an audio data transport stream (ADTS) format and an audio data interchange format (ADIF).
It should be mentioned that the HE-AAC format is defined in the MPEG-4 standard. Hence, even through the second frame header FH2 may be processed by the processing unit 110 to comply with the MPEG-2 standard and can then be successfully decoded by an end audio decoder (e.g., the audio decoder 120) that is capable of decoding AAC encoded frames, in the present embodiment, it is preferable to process the second frame header FH2 to comply with the MPEG-4 format with use of the processing unit 110. This embodiment should not be construed as a limitation to the invention. Note that the frame header should be in a format that can be recognized by a terminal audio decoder (e.g., the audio decoder 120).
As shown in
In the present embodiment, the audio decoder 120 is able to decode the AAC encoded audio data. Since the HE-AAC format is characterized by backward compatibility, the audio decoder 120 capable of decoding the AAC encoded audio data can also decode the HE-AAC encoded audio data (e.g., the audio data AD). What is more, the audio decoder 120 is not only capable of decoding the AAC encoded audio data but also able to identify the format complying with the MPEG-2 standard or the MPEG-4 standard. Accordingly, when the audio decoder 120 decodes the audio data AD, the audio decoder 120 can retrieve information required for decoding data from the second frame header FH2, decodes the audio data AD according to the retrieved information, and acquires and broadcasts the decompressed audio data DAS. Here, the retrieved information is, for instance, the transport data stored in the ADTS format or the storage data in ADIF.
To sum up, the invention provides an apparatus and a method for audio data processing. When the audio decoder is capable of decoding an encoded audio data, e.g., an AAC encoded data or an HE-AAC encoded data, the processing unit can first retrieve the information required for decoding data from the header of the audio data stream in an unidentifiable format and convert the same into a format that can be recognized by the audio decoder, such that the audio decoder can retrieve the information required for decoding data from the identifiable frame header and decode the data. Here, the unidentifiable format may be an ASF format in compliance with the DAB+ standard, and the format which can be recognized by the audio decoder may be a header format complying with the MPEG-2 standard or the MPEG-4 standard.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the disclosed embodiments without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
201210022676.1 | Jan 2012 | CN | national |