CN100538853C - The method and the device of the Input Data Buffer of control MP3 decoding device - Google Patents

The method and the device of the Input Data Buffer of control MP3 decoding device Download PDF

Info

Publication number
CN100538853C
CN100538853C CNB2006100818557A CN200610081855A CN100538853C CN 100538853 C CN100538853 C CN 100538853C CN B2006100818557 A CNB2006100818557 A CN B2006100818557A CN 200610081855 A CN200610081855 A CN 200610081855A CN 100538853 C CN100538853 C CN 100538853C
Authority
CN
China
Prior art keywords
memory cell
storer
general data
audio frame
data piece
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006100818557A
Other languages
Chinese (zh)
Other versions
CN101075458A (en
Inventor
何升峰
谢瑞庭
赵维民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Quanta Computer Inc
Original Assignee
Quanta Computer Inc
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 Quanta Computer Inc filed Critical Quanta Computer Inc
Priority to CNB2006100818557A priority Critical patent/CN100538853C/en
Publication of CN101075458A publication Critical patent/CN101075458A/en
Application granted granted Critical
Publication of CN100538853C publication Critical patent/CN100538853C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a kind of method of diode-capacitor storage.This storer comprises M memory cell and in order to temporarily to store at least one audio frame in the audio bit stream.This audio bit stream comprises N audio frame, and i audio frame wherein comprises size and equal S iOne i general data piece of individual memory cell.(L in this storer (i-1)) individual memory cell is in order to store last memory cell of this (i-1) general data piece.This method is at first judged S after receiving this i general data piece iWhether greater than an i reference value, then according to this judged result and M, S i, L (i-1), by selecting i group memory cell in this M memory cell in order to store this i general data piece.

Description

The method and the device of the Input Data Buffer of control MP3 decoding device
Technical field
The present invention is about a kind of method and device of control data impact damper, and especially in regard to the method and the device of the Input Data Buffer of management MP3 decoding device.
Background technology
MP3 (MPEG Layer III) sound signal standard is a kind of audio format that is widely used at present.See also Fig. 1.Fig. 1 is the content synoptic diagram of a standard MP3 audio frame (audio frame) 10.The master data that has comprised audio frame 10 in the header block (header) 12, for example kind of MPEG, bug check sign indicating number, sampling frequency and bit rate; Record then is the relevant information that needs reference will be with audio frame 10 decoding time the, for example re-quantization (re-quantization) information and Hofmann decoding (Huffman decoding) information in the side message block (side information) 14.General data piece (main data) the 16th is used for storing real voice data.In addition, the user can be voluntarily in supplementary data piece (ancillarydata) 18 the relevant information of record and audio frame 10, for example singer and song title.
Though the size of each audio frame 10 is fixed, the size of each general data piece 16 is also fixed, and the length of each audio frame 10 pairing voice data but may not be identical; The length of possible some voice data can be greater than 16 maximum constraints that can hold of general data piece, and also the length of some voice data of possibility is less than 16 maximum constraints that can hold of general data piece.In order to promote whole storage efficiency, the user can adopt the mechanism of position storage (bit reservoir) when producing audio frame 10, make each audio frame 10 pairing voice data optionally be stored in the general data piece 16 of other audio frames 10.
After adopting the position memory mechanism, because a certain audio frame 10 pairing voice datas may not necessarily be stored in the general data piece 16 of this audio frame 10 itself, also must further comprise an initial index (being denoted as main_data_begin usually) in the side message block 14, be used to refer to the reference position of these audio frame 10 pairing voice data actual storage.
See also Fig. 2.Fig. 2 represents an audio frame example that adopts the position memory mechanism, and has comprised four continuous audio frames: first audio frame 21, second audio frame 22, the 3rd audio frame 23, the 4th audio frame 24.Each audio frame is each self-contained head and a side message block A and a general data piece B (the supplementary data piece is not shown among the figure) all.As shown in Figure 2, because the length of first audio frame, 21 pairing voice datas is less than the capacity of general data piece 21B, the general data piece 21B of some is in order to deposit second audio frame, 22 pairing voice datas.Same, the general data piece 22B of second audio frame 22 has stored the part of the 3rd audio frame 23 pairing voice datas and the 4th audio frame 24 pairing voice datas simultaneously.
See also Fig. 3.Fig. 3 represents the structural drawing of a MP3 decoding device 30.MP3 decoding device 30 comprises an audio frame analyzer 31, a side information buffer 32, a general data impact damper 33 and an audio frame demoder 34.After MP3 decoding device 30 receives an audio frame, audio frame analyzer 31 be responsible for searching these audio frames beginning, calculate the length of this audio frame, and send side information in this audio frame and general data to side information buffer 32 and general data impact damper 33 respectively.Then, this audio frame is decoded according to the data in side information buffer 32 and the general data impact damper 33 by audio frame demoder 34 again.
Under the situation that adopts the position memory mechanism, just might be stored whole or in part in other previous audio frames at the decoded pairing voice data of that audio frame.When running into such situation, existing MP3 decoding device is later to read audio frame before once more mostly, to obtain the pairing voice data of this audio frame; Yet this improper mode that reads is quite wasted the processing time.Also there is some prior art must turn one's head to read once more the number of times of previous audio frame, significantly increases the capacity of general data impact damper 33, in general data impact damper 33, deposit whole or a large amount of audio frames simultaneously in order to reduce; The shortcoming of this mode is to expend a large amount of storage spaces.
Summary of the invention
For addressing the above problem, the invention provides a kind of method and device of general data impact damper of management one audio decoder.An audio bit stream (audiobit stream) decoding of this audio decoder in order to will include N audio frame.This general data impact damper is one to include the storer of M memory cell, and in order to temporarily to store at least one audio frame in this audio bit stream.I audio frame in this N audio frame comprises an i general data piece, and the size of this i general data piece is equal to S iThe size of individual memory cell, wherein S iBe a positive integer smaller or equal to M, i is the integer index of a scope between 1 to N, and N and M are all positive integer.Suppose the L in known this storer (i-1)Individual memory cell is in order to store last memory cell of this (i-1) general data piece.
A preferred embodiment according to the present invention is the method for this storer of management.This method at first receives this i general data piece in this i audio frame, and judges that whether Si is greater than an i reference value.Then, this method is according to this judged result and M, S i, L (i-1),, again this i general data piece is stored in this i group memory cell by selecting i group memory cell in this M memory cell in order to store this i general data piece.
Another preferred embodiment according to the present invention is the device of this storer of management.This device comprises a receiver module, a judge module, is selected a module and a memory module.This receiver module is in order to receive this i general data piece in this i audio frame.This judge module is connected to this receiver module and in order to judge S iWhether greater than an i reference value.This selects module according to M, S i, L (i-1)And the judged result of this judge module, by selecting i group memory cell in this M memory cell in order to store this i general data piece.This memory module then is in order to this i general data piece is stored in this i group memory cell.
Can further be understood by following detailed description and accompanying drawing about the advantages and spirit of the present invention.
Description of drawings
Fig. 1 is the content synoptic diagram of a standard MP3 audio frame.
Fig. 2 represents that one adopts the audio frame example of position memory mechanism.
Fig. 3 represents the structural drawing of a MP3 decoding device.
Fig. 4 (A), (B), (C) are the example of the general data piece of storing audio frame in storer according to the present invention.
Fig. 5 represents the process flow diagram according to the management method of first preferred embodiment of the present invention.
Fig. 6 represents to be incorporated into the calcspar of MP3 decoding device 30 according to the management devices 60 of second preferred embodiment of the present invention.
The main element symbol description
10: audio frame 12: header block
14: side message block 16: the general data piece
18: the supplementary data piece
22: the second frames of 21: the first audio frames
24: the four audio frames of 23: the three audio frames
21A, 22A, 23A, 24A: head and side information
21B, 22B, 23B, 24B: general data piece
30:MP3 demoder 31: audio frame analyzer
32: side information buffer 33: the general data impact damper
34: audio frame demoder 40: storer
42: the direction S51-S55 of storage data: steps flow chart
60: management devices 60A: receiver module
60B: judge module 60C: select module
60D: memory module 62: general data impact damper
Embodiment
A fundamental purpose of the present invention is to provide a kind of method and device of managing the Input Data Buffer of MP3 decoding device.The method according to this invention and device utilize a circulating storer, and (circular inputbuffer, notion CIB) is managed the general data impact damper of MP3 decoding device.
Suppose that this MP3 decoding device will be in order to will include the audio bit stream decoding of N audio frame.This general data impact damper is one to include the storer of M memory cell, and in order to temporarily to store at least one audio frame in this audio bit stream.I audio frame in this N audio frame comprises an i general data piece, and the size of this i general data piece is equal to S iThe size of individual memory cell, wherein S iBe a positive integer smaller or equal to M, i is the integer index of a scope between 1 to N, and N and M are all positive integer.In addition, the L in known this storer (i-1)Individual memory cell is in order to store last memory cell of this (i-1) general data piece.
Fig. 4 is the example of the general data piece of storing audio frame in storer according to the present invention.Storer 40 deposits data in each memory cell in regular turn along the direction shown in the arrow 42 when the storage data.Shown in Fig. 4 (A), before this i general data piece was stored to storer 40, (i-1) general data piece of this (i-1) individual audio frame was stored in the (L of storer 40 (i-2)+ 1) individual to L (i-1)In the individual memory cell.Described in background of invention, under the situation that adopts the position memory mechanism, this i audio frame is corresponding to an i voice data, and this i voice data may not be stored in this i general data piece of this i audio frame fully.Therefore, except comprising this (i-1) individual audio frame pairing (i-1) voice data itself, also comprise the part of this i pairing i voice data of audio frame simultaneously in this (i-1) general data piece.
(i-1) initial index (beginning index) B among Fig. 4 (A) (i-1)In order to represent the relativeness between this (i-1) voice data and this (i-1) general data piece.In this example, B (i-1)Equal zero, represent that the reference position of this (i-1) voice data is identical with the reference position of this (i-1) general data piece.
When this MP3 decoding device began to deposit pairing this i general data piece of this i audio frame in storer 40, the method according to this invention and device judged that at first whether the size (being Si) of this i general data piece is greater than an i reference value.This i reference value equals L (i-1)And poor between the M, just the end position of this (i-1) general data piece is to the distance of the tail end of storer 40.If S iLess than this i reference value, the memory cell of the end position of representing this (i-1) general data piece in the middle of the tail end of storer 40 is enough to store this i general data piece.Under these circumstances, the method according to this invention and device can continue this i general data piece after this (i-1) general data piece, just this i general data piece are deposited in (the L in the storer 40 (i-1)+ 1) individual to (L (i-1)+ S i) individual memory cell.
Fig. 4 (B) represents S iSituation greater than this i reference value.If S iGreater than this i reference value, the memory cell of the end position of representing this (i-1) general data piece in the middle of the tail end of storer 40 be not enough to store this i general data piece.Under these circumstances, the method according to this invention and device can be cut into two parts (i general data piece I shown in Fig. 4 (B) and i general data piece II) with this i general data piece, and these two parts are stored in (L in this storer respectively (i-1)+ 1) individual to M memory cell and the 1st to (S iM+L (i-1)) individual memory cell.Similarly, this i general data piece has comprised (i+1) voice data of this i pairing i voice data of audio frame itself and (i+1) individual audio frame correspondence simultaneously.
Shown in Fig. 4 (B), some is arranged in this (i-1) general data piece this i voice data, and another part is arranged in this i general data piece I.When extracting this i voice data in this MP3 decoding device requires by storer 40, the method according to this invention and device can be according to the initial index B of i iAnd L (i-1)Find out the reference position of this i voice data in storer 40.
Because that part that this i voice data is arranged in this (i-1) general data piece still is stored in storer 40, and because storer 40 according to the present invention is a circulating storer (CIB), after the reference position of finding out this i voice data, this MP3 decoding device can be by extracting this i voice data in proper order in the storer 40, need not must again this (i-1) general data piece be deposited in storer 40 as some prior art and could extract and be stored in that part that this i voice data is arranged in this (i-1) general data piece.In theory, before beginning to extract this i voice data, rest on the end position of this (i-1) voice data in the storer 40 in order to the index (pointer) of once extracting the ending of data before the mark, therefore, this MP3 decoding device can be directly begins to extract this i voice data by the end position of this (i-1) voice data.On the other hand, another advantage of the present invention is that the size of storer 40 only need be enough to hold the possible maximal value of a voice data in this audio bit stream; Compared to some prior art, the present invention can significantly reduce the cost of storer.
After depositing this i general data piece in, each general data piece of follow-up audio frame can be deposited in the storer 40 in regular turn.Fig. 4 (C) expression deposits the storer 40 behind (i+1) general data piece in.Shown in Fig. 4 (C), if it is also successfully decoded to determine that this i voice data has been extracted by this MP3 decoding device, this (i+1) general data piece can be written (over-write) in the memory cell of this (i-1) general data piece of previous storage.
Fig. 5 represents the process flow diagram according to the management method of first preferred embodiment of the present invention.This method is execution in step S51 at first, receives this i general data piece in this i audio frame.Step S52 judges that whether Si is greater than an i reference value.If the judged result of step S52 is for being, this method is execution in step S53 then, selects (L (i-1)+ 1) individual to M memory cell and the 1st to (S iM+L (i-1)) individual memory cell is as in order to store the i group memory cell of this i general data piece.If the judged result of step S52 is that this method is not execution in step S54, selects (the L in this storer (i-1)+ 1) individual to (L (i-1)+ S i) individual memory cell is as in order to store the i group memory cell of this i general data piece.Step S55 is stored to this i general data piece in this i group memory cell.
Second preferred embodiment according to the present invention is the management devices 60 in order to diode-capacitor storage.Fig. 6 represents this management devices 60 is incorporated into the calcspar of the MP3 decoding device 30 of Fig. 3.In addition, according to the present invention, the general data impact damper 62 among Fig. 6 is one to comprise the storer of M memory cell.Management devices 60 comprises a receiver module 60A, a judge module 60B, one and selects a module 60C and a memory module 60D.Receiver module 60A is in order to receive this i general data piece in this i the audio frame that is sent by audio frame analyzer 31.Judge module 60B is connected to receiver module 60A and in order to judge S iWhether greater than an i reference value.Select module 60C according to M, S i, L (i-1)And the judged result of judge module 60B, by selecting i group memory cell in this M memory cell in order to store this i general data piece.Memory module 60D is in order to be stored to this i general data piece by in this i group memory cell of selecting module 60C to select.Side information buffer 32 also is linked to management devices 60, with the initial index B of this i that provides side message block to be comprised i
In practical application, management devices 60 can further comprise one and seek module.When extracting this i voice data in audio frame demoder 34 requires by general data impact damper 62, this seeks module according to the initial index B of this i iAnd L (i-1)Find out the initial position of this i voice data in general data impact damper 62.
By the above detailed description of preferred embodiments, hope can be known description feature of the present invention and spirit more, and is not to come category of the present invention is limited with above-mentioned disclosed preferred embodiment.On the contrary, its objective is that hope can contain in the category of claim of being arranged in of various changes and tool equivalence institute of the present invention desire application.

Claims (18)

1, the method of the storer in a kind of management one device, this device is in order to decode an audio bit stream, this audio bit stream comprises N audio frame, this storer comprises M memory cell and in order to temporarily to store at least one audio frame in this audio bit stream, N and M are all positive integer, i audio frame in this N audio frame comprises an i general data piece, the size of this i general data piece is equal to the size of Si memory cell, Si is a positive integer smaller or equal to M, i is the integer index of a scope between 1 to N, the individual memory cell of L (i-1) in this storer is last memory cell that is used to store this (i-1) general data piece, and this method comprises the following step:
(a) receive this i general data piece in this i audio frame;
(b) judge that whether Si is greater than an i reference value;
(c) according to the judged result of M, Si, L (i-1) and step (b), organize memory cell in order to store this i general data piece by selection one i in this M memory cell; And
(d) this i general data piece is stored in this i group memory cell.
2. the method for claim 1, wherein this i reference value equals poor between L (i-1) and the M.
3. method as claimed in claim 2, if wherein the judged result of step (b) is not for, then this i group memory cell (L (i-1)+1) that comprise in this storer is individual to (the individual memory cell of L (i-1)+Si).
4. method as claimed in claim 2, if wherein the judged result of step (b) is for being, then this i group memory cell comprise (L (i-1)+1) in this storer individual to M memory cell and the 1st to (Si-M+L (i-1)) individual memory cell.
5. the method for claim 1, wherein this i audio frame be corresponding to an i voice data, and this i general data piece optionally comprises at least a collection of voice data of this i voice data to this N voice data.
6. method as claimed in claim 5, wherein the initial index Bi of an i corresponding to this i voice data provides in advance, and in order to represent the relativeness between this i voice data and this i general data piece.
7. method as claimed in claim 6, this method further comprises the following step:
(e) when this matching requirements extracts this i voice data in by this storer, find out the initial position of this i voice data in this storer according to initial index Bi of this i and L (i-1).
8. method as claimed in claim 7, wherein this reference position of this i voice data is (the individual memory cell of L (i-1)+Bi) in this storer.
9. the method for claim 1, wherein this device is a MP3 decoding device.
10, the device of the storer in a kind of management one audio decoder, this audio decoder is in order to decode an audio bit stream, this audio bit stream comprises N audio frame, this storer comprises M memory cell and in order to temporarily to store at least one audio frame in this audio bit stream, N and M are all positive integer, i audio frame in this N audio frame comprises an i general data piece, the size of this i general data piece is equal to the size of Si memory cell, Si is a positive integer smaller or equal to M, i is the integer index of a scope between 1 to N, the individual memory cell of L (i-1) in this storer is last memory cell that is used to store this (i-1) general data piece, and this device comprises:
One receiver module, this receiver module is in order to receive this i general data piece in this i audio frame;
One judge module, this judge module are connected to this receiver module and in order to judge that whether Si is greater than an i reference value;
One selects module, and this selects the judged result of module according to M, Si, L (i-1) and this judge module, by selecting i group memory cell in order to store this i general data piece in this M memory cell; And
One memory module, this memory module is in order to be stored to this i general data piece in this i group memory cell.
11. device as claimed in claim 10, wherein this i reference value equals poor between L (i-1) and the M.
12. device as claimed in claim 11, if wherein the judged result of this judge module is not for, then this i group memory cell (L (i-1)+1) that comprise in this storer is individual to (the individual memory cell of L (i-1)+Si).
13. device as claimed in claim 11, if wherein the judged result of this judge module is for being, then this first group of memory cell comprise (L (i-1)+1) in this storer individual to M memory cell and the 1st to (Si-M+L (i-1)) individual memory cell.
14. device as claimed in claim 10, wherein this i audio frame be corresponding to an i voice data, and this i general data piece optionally comprises at least a collection of voice data of this i voice data to this N voice data.
15. device as claimed in claim 14, wherein the initial index of an i (beginning index) Bi corresponding to this i voice data provides in advance, and in order to represent the relativeness between this i voice data and this i general data piece.
16. device as claimed in claim 15, this device further comprises:
One seeks module, and when extracting this i voice data in a user requires by this storer, this searching module is found out the initial position of this i voice data in this storer according to initial index Bi of this i and L (i-1).
17. device as claimed in claim 16, wherein this reference position of this i voice data is (the individual memory cell of L (i-1)+Bi) in this storer.
18. device as claimed in claim 10, wherein this audio decoder is a MP3 decoding device.
CNB2006100818557A 2006-05-17 2006-05-17 The method and the device of the Input Data Buffer of control MP3 decoding device Expired - Fee Related CN100538853C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100818557A CN100538853C (en) 2006-05-17 2006-05-17 The method and the device of the Input Data Buffer of control MP3 decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100818557A CN100538853C (en) 2006-05-17 2006-05-17 The method and the device of the Input Data Buffer of control MP3 decoding device

Publications (2)

Publication Number Publication Date
CN101075458A CN101075458A (en) 2007-11-21
CN100538853C true CN100538853C (en) 2009-09-09

Family

ID=38976441

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100818557A Expired - Fee Related CN100538853C (en) 2006-05-17 2006-05-17 The method and the device of the Input Data Buffer of control MP3 decoding device

Country Status (1)

Country Link
CN (1) CN100538853C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768834B (en) * 2012-03-21 2018-06-26 新奥特(北京)视频技术有限公司 A kind of realization decoded method of audio frame

Also Published As

Publication number Publication date
CN101075458A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
CN106297844B (en) The universal container of audio data
CN1643605B (en) Data recording method, data recording device, data recording medium, data reproduction method, and data reproduction device
CN102053998A (en) Method and system device for retrieving songs based on voice modes
KR20080023299A (en) Device specific content indexing for optimized device operation
CN104270605B (en) A kind of processing method and processing device of video monitoring data
CN109284252B (en) Lightweight file system management method in communication equipment
CN100501738C (en) Searching method, system and apparatus for playing media file
CN112650448B (en) FPGA-based large-data-volume storage file management method
CN101963977A (en) A search method and mobile terminal without urban search
CN104657127B (en) System and method for automatically embedding operation collection element
CN100472526C (en) Method for storing, fetching and indexing data
CN101751465A (en) Method and system for determining similar word with input string
CN108305622A (en) A kind of audio summary texts creation method and its creating device based on speech recognition
CN101551820A (en) Generation method and apparatus for index database of points of interest attribute
CN100550166C (en) Information-recording apparatus and method and information reproduction device and method
CN100538853C (en) The method and the device of the Input Data Buffer of control MP3 decoding device
CN102222077A (en) Storage method and device for audio data
CN102054027A (en) Storing and searching method of mobile terminal file, system and mobile terminal
JP2013528823A5 (en)
CN102047338A (en) Optimizing seek functionality in media content
CN1848939B (en) Information management system, information management apparatus and information management method
CN102169684B (en) A MIDI file structure and a generating apparatus for Gongche notation
US20040054668A1 (en) Dynamic image content search information managing apparatus
CN102023854A (en) Template-based semantic variable extraction method
CN103186583B (en) A kind of information record based on mobile terminal and search method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090909

Termination date: 20160517