CN109949819A - Save the method, apparatus and electronic equipment of the program and data space of audio processing - Google Patents
Save the method, apparatus and electronic equipment of the program and data space of audio processing Download PDFInfo
- Publication number
- CN109949819A CN109949819A CN201910195782.1A CN201910195782A CN109949819A CN 109949819 A CN109949819 A CN 109949819A CN 201910195782 A CN201910195782 A CN 201910195782A CN 109949819 A CN109949819 A CN 109949819A
- Authority
- CN
- China
- Prior art keywords
- audio
- data
- program
- audio processing
- space
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 6
- 238000007599 discharging Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 5
- 238000004364 calculation method Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 238000005111 flow chemistry technique Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Stored Programmes (AREA)
Abstract
The present invention is suitable for field of audio processing, provides method, apparatus, electronic equipment and the computer readable storage medium of a kind of program and data space for saving audio processing, the described method comprises the following steps: S1, obtaining audio data;S2, audio format is obtained according to audio data, parsing is carried out according to the audio format and obtains the corresponding decoding table of the audio data;S3, the corresponding decoding table of the audio data is only loaded to memory progress audio processing.The present invention pass through determine audio data specifically corresponding decoding table so as to only loading the corresponding decoding table of audio data in decoding process to memory, it is occupied so as to reduce memory source, and the present invention can also be multiplexed initialization space, to reduce storage consumption.
Description
Technical field
The invention belongs to field of audio processing, more particularly to save the method for the program and data space of audio processing, dress
It sets and electronic equipment.
Background technique
Audio processing process it is inadequate often to will appear internal resource, or caching is not enough since resources of chip is limited, thus
Lead to the function or reduced performance of audio processing.And in the prior art, it will usually by the corresponding decoding table of audio data
It all is loaded onto memory, causes useless decoding table also to occupy memory source, results in the waste of resource, and audio data exists
Initialization memory space can not lead to the waste of memory space by other resource occupation after initialization.
Summary of the invention
The present invention provides method, apparatus, electronic equipment and the meters of a kind of program and data space for saving audio processing
Calculation machine readable storage medium storing program for executing, it is intended to which resources of chip is limited in the prior art for solution, the inadequate technical problem of internal resource.
For this purpose, the present invention provides a kind of methods of program and data space for saving audio processing, comprising the following steps:
S1, audio data is obtained;
S2, audio format is obtained according to audio data, parsing is carried out according to the audio format and obtains the audio data
Corresponding decoding table;
S3, the corresponding decoding table of the audio data is only loaded to memory progress audio processing.
Preferably, between the step S1 and step S2, further includes: initialize the audio data.
As it is further preferred that being multiplexed initialization space when carrying out audio processing.
As it is further preferred that before the step S3, further includes: release initializes what the audio data occupied
Space.
Other side according to the invention, the present invention provides a kind of program and data spaces for saving audio processing
Device, comprising:
Data acquisition module, for obtaining audio data;
Decoding table obtains module, for obtaining audio format according to audio data, is parsed according to the audio format
Obtain the corresponding decoding table of the audio data;
Data loading module carries out audio processing to memory for only loading the corresponding decoding table of the audio data.
Preferably, the device of the program and data space for saving audio processing further includes initialization module, for just
The beginningization audio data.
As it is further preferred that the device of the program and data space for saving audio processing further includes multiplexing mould
Block, for the multiplexing initialization space when carrying out audio processing.
As it is further preferred that the device of the program and data space for saving audio processing further includes Free up Memory
Device initializes described audio data the space occupied for discharging.
It is another aspect of this invention to provide that a kind of electronic equipment, including memory and processor, the processor is for holding
The method of the row program and data space for saving audio processing.
It is another aspect of this invention to provide that a kind of computer readable storage medium, the computer readable storage medium is deposited
Computer program is contained, the computer program realizes that the program for saving audio processing and data are empty when being executed by processor
Between method the step of.
Method, apparatus, electronic equipment and the meter of a kind of program and data space for saving audio processing provided by the invention
Calculation machine readable storage medium storing program for executing, by determine audio data specifically corresponding decoding table so as to only loading sound in decoding process
Frequency is occupied according to corresponding decoding table to memory so as to reduce memory source, and the present invention can also be to initialization space
It is multiplexed, to reduce storage consumption.
Detailed description of the invention
Fig. 1 is a kind of process of the method for program and data space for saving audio processing provided in an embodiment of the present invention
Figure;
Fig. 2 is a kind of structure of the device of program and data space for saving audio processing provided in an embodiment of the present invention
Figure.
Wherein, 1- data acquisition module;2- decoding table obtains module;3- data loading module;4- initialization module;5- is multiple
Use module.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.In addition, technical characteristic involved in each embodiment of invention described below is only
Not constituting a conflict with each other can be combined with each other.
In the embodiment of the present invention one, as shown in Figure 1, the present invention provides a kind of program sum numbers for saving audio processing
According to the method in space, comprising the following steps:
S1, audio data is obtained;
S2, audio format is obtained according to audio data, parsing is carried out according to the audio format and obtains the audio data
Corresponding decoding table;
S3, the corresponding decoding table of the audio data is only loaded to memory progress audio processing.
Between the step S1 and step S2, further includes: initialize the audio data.
In a specific embodiment of the present invention, initialization space can be multiplexed when carrying out audio processing.
It in a specific embodiment of the present invention, can also include: that release initializes the audio before the step S3
Data the space occupied.I.e. in the present invention, when handling audio data, directly initialization memory space can be answered
It writes, can also first discharge the initialization space, then carry out audio data processing.
In a specific embodiment of the present invention, by taking WMA is decoded as an example.Audio data is obtained first, is obtained according to audio data
Obtaining audio format is WMA, and a complete WMA decoding needs 6 huffman tables, and the title of these tables is " Huffman- respectively
RLC-16 ", " Huffman-RLC-44Q " and " Huffman-RLC-44O " divide 3 groups, and every song only chooses one group of table, often
Group has 2 tables, can be used for solving monophonic per a wherein table, L channel, right channel, merges sound channel, another table is used for guards escorting prisoners
Divide sound channel.During initialization, parsing can be carried out according to audio format and obtains the corresponding decoding table of the audio data, i.e.,
It can determine that the corresponding decoding table of the audio data is Huffman-RLC-16, Huffman-RLC-44Q, Huffman-RLC-
44O which, so as to only load this table to memory, other tables do not need to load, and can save always disappear in this way
The memory and resources of chip of consumption.
The code of initialization also occupies certain memory simultaneously, after initialization, due in decoding process, needing to export
Decoded result or decoded audio PCM data, the occupied sky of initial code before these data can be directly used
Between, total code consumption can be saved.
In the embodiment of the present invention two, as shown in Fig. 2, the present invention provides a kind of program sum numbers for saving audio processing
According to the device in space, comprising:
Data acquisition module 1, for obtaining audio data;
Decoding table obtains module 2, for obtaining audio format according to audio data, is parsed according to the audio format
Obtain the corresponding decoding table of the audio data;
Data loading module 3 carries out audio processing to memory for only loading the corresponding decoding table of the audio data.
The device of the program and data space for saving audio processing further includes initialization module 4, for initializing
State audio data.
The device of the program and data space for saving audio processing further includes Multiplexing module 5, for carrying out audio
Multiplexing initialization space when processing.
The device of the program and data space for saving audio processing can also include Free up Memory device, for discharging
Initialize described audio data the space occupied.
Wherein, the output end of the data acquisition module 1 connects the input terminal of the initialization module 4, the initialization
First output end of module 4 connects the input terminal that the decoding table obtains module 2, and the decoding table obtains the output end of module 2
The input terminal of the data loading module 3 is connected, the output end of the data loading module 3 connects the of the Multiplexing module 5
One input terminal, the second output terminal of the initialization module 4 connect the second input terminal of the Multiplexing module 5.
It is described the present invention provides a kind of electronic equipment, including memory and processor in the embodiment of the present invention three
The method that processor is used to execute the program and data space for saving audio processing.
In the embodiment of the present invention four, the present invention provides a kind of computer readable storage medium, the computer can
It reads storage medium and is stored with computer program, the computer program realizes the saving audio processing when being executed by processor
The step of method of program and data space.
Because audio processing generally requires certain initialization and model selection and parameter configuration, then execute again main
Flow processing, therefore, the present invention are mainly to utilize the characteristic of audio processing, some resources are multiplexed, to reach saving audio processing
Total resources occupy.The occupied space of the code wherein initialized can release, as the processing of subsequent main flow
Caching.In addition, decoding for WMA, have 3 huffman tables it can be selected that primary 3 tables of load, will unusual occupied space, but
If determining which the table of song selection is after initialization, then only needing to load this huffman table, then can save
It saves and loads other dead codes.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (10)
1. a kind of method for the program and data space for saving audio processing, which is characterized in that including
S1, audio data is obtained;
S2, audio format is obtained according to audio data, it is corresponding to carry out the parsing acquisition audio data according to the audio format
Decoding table;
S3, the corresponding decoding table of the audio data is only loaded to memory progress audio processing.
2. saving the method for the program and data space of audio processing as described in claim 1, which is characterized in that in the step
Between rapid S1 and step S2, further includes: initialize the audio data.
3. saving the method for the program and data space of audio processing as claimed in claim 2, which is characterized in that carrying out sound
Multiplexing initialization space when frequency is handled.
4. saving the method for the program and data space of audio processing as claimed in claim 2, which is characterized in that in the step
Before rapid S3, further includes: release initializes described audio data the space occupied.
5. a kind of device for the program and data space for saving audio processing characterized by comprising
Data acquisition module, for obtaining audio data;
Decoding table obtains module, for obtaining audio format according to audio data, carries out parsing acquisition according to the audio format
The corresponding decoding table of the audio data;
Data loading module carries out audio processing to memory for only loading the corresponding decoding table of the audio data.
6. saving the device of the program and data space of audio processing as claimed in claim 5, which is characterized in that further include just
Beginningization module, for initializing the audio data.
7. saving the device of the program and data space of audio processing as claimed in claim 6, which is characterized in that further include multiple
With module, space is initialized for being multiplexed when carrying out audio processing.
8. saving the device of the program and data space of audio processing as claimed in claim 6, which is characterized in that further include releasing
Room device is put, initializes described audio data the space occupied for discharging.
9. a kind of electronic equipment, which is characterized in that including memory and processor, the processor is for executing such as claim
The method of the program and data space of saving audio processing described in 1-4 any one.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the computer program realizes the journey according to any one of claims 1-4 for saving audio processing when being executed by processor
The step of sequence and the method for data space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910195782.1A CN109949819B (en) | 2019-03-14 | 2019-03-14 | Method and device for saving program and data space of audio processing and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910195782.1A CN109949819B (en) | 2019-03-14 | 2019-03-14 | Method and device for saving program and data space of audio processing and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109949819A true CN109949819A (en) | 2019-06-28 |
CN109949819B CN109949819B (en) | 2022-03-25 |
Family
ID=67008887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910195782.1A Active CN109949819B (en) | 2019-03-14 | 2019-03-14 | Method and device for saving program and data space of audio processing and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109949819B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111489721A (en) * | 2020-03-23 | 2020-08-04 | 天津大学 | Signal frame matrixing music information recording method |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5559831A (en) * | 1991-12-23 | 1996-09-24 | Intel Corporation | Circuitry for decoding huffman codes |
CN1472959A (en) * | 2002-07-30 | 2004-02-04 | 华为技术有限公司 | Device and method for realizing conversion between various VF flow formats |
CN1475993A (en) * | 2002-08-14 | 2004-02-18 | 乐金电子(惠州)有限公司 | Audio frequency data reappear device and method |
CN1720716A (en) * | 2002-12-04 | 2006-01-11 | 皇家飞利浦电子股份有限公司 | Method and apparatus for selecting particular decoder based on bitstream format detection |
CN101339789A (en) * | 2008-08-13 | 2009-01-07 | 中兴通讯股份有限公司 | Implementing method of multimedia engine |
CN101640793A (en) * | 2008-08-01 | 2010-02-03 | 深圳市朗驰欣创科技有限公司 | Method, system and decoder for decoding audio and video data |
CN101719911A (en) * | 2009-11-24 | 2010-06-02 | 中兴通讯股份有限公司 | Method, device and system capable of transmitting multimedia data by Bluetooth and playing in real time |
CN101741391A (en) * | 2008-11-19 | 2010-06-16 | 中国科学院微电子研究所 | Method for optimizing memory space during MP3 audio decoding by fixed-point DSP |
CN101819807A (en) * | 2010-05-13 | 2010-09-01 | 中兴通讯股份有限公司 | Method for realizing quick response in multimedia file control process and play device |
CN102136270A (en) * | 2010-12-27 | 2011-07-27 | 华为软件技术有限公司 | Audio frequency decoding method and device |
CN102754432A (en) * | 2010-05-26 | 2012-10-24 | 联发科技(新加坡)私人有限公司 | Method for outputting audio data having specific audio format to audio output device and associated circuit and multimedia player |
CN103345928A (en) * | 2013-05-20 | 2013-10-09 | 广州番禺巨大汽车音响设备有限公司 | Sound equipment supporting multiple services-based method and system for audio processing |
CN107203340A (en) * | 2017-05-15 | 2017-09-26 | 建荣半导体(深圳)有限公司 | Method for spacial multiplex, multiplexer and its bluetooth equipment |
-
2019
- 2019-03-14 CN CN201910195782.1A patent/CN109949819B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5559831A (en) * | 1991-12-23 | 1996-09-24 | Intel Corporation | Circuitry for decoding huffman codes |
CN1472959A (en) * | 2002-07-30 | 2004-02-04 | 华为技术有限公司 | Device and method for realizing conversion between various VF flow formats |
CN1475993A (en) * | 2002-08-14 | 2004-02-18 | 乐金电子(惠州)有限公司 | Audio frequency data reappear device and method |
CN1720716A (en) * | 2002-12-04 | 2006-01-11 | 皇家飞利浦电子股份有限公司 | Method and apparatus for selecting particular decoder based on bitstream format detection |
CN101640793A (en) * | 2008-08-01 | 2010-02-03 | 深圳市朗驰欣创科技有限公司 | Method, system and decoder for decoding audio and video data |
CN101339789A (en) * | 2008-08-13 | 2009-01-07 | 中兴通讯股份有限公司 | Implementing method of multimedia engine |
CN101741391A (en) * | 2008-11-19 | 2010-06-16 | 中国科学院微电子研究所 | Method for optimizing memory space during MP3 audio decoding by fixed-point DSP |
CN101719911A (en) * | 2009-11-24 | 2010-06-02 | 中兴通讯股份有限公司 | Method, device and system capable of transmitting multimedia data by Bluetooth and playing in real time |
CN101819807A (en) * | 2010-05-13 | 2010-09-01 | 中兴通讯股份有限公司 | Method for realizing quick response in multimedia file control process and play device |
CN102754432A (en) * | 2010-05-26 | 2012-10-24 | 联发科技(新加坡)私人有限公司 | Method for outputting audio data having specific audio format to audio output device and associated circuit and multimedia player |
CN102136270A (en) * | 2010-12-27 | 2011-07-27 | 华为软件技术有限公司 | Audio frequency decoding method and device |
CN103345928A (en) * | 2013-05-20 | 2013-10-09 | 广州番禺巨大汽车音响设备有限公司 | Sound equipment supporting multiple services-based method and system for audio processing |
CN107203340A (en) * | 2017-05-15 | 2017-09-26 | 建荣半导体(深圳)有限公司 | Method for spacial multiplex, multiplexer and its bluetooth equipment |
Non-Patent Citations (2)
Title |
---|
任雁鹏,王志君,梁利平: "MP3音频解码在内存空间中的优化", 《计算机工程》 * |
符运河: "《硕士学问论文》", 30 June 2015, 哈尔滨工业大学 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111489721A (en) * | 2020-03-23 | 2020-08-04 | 天津大学 | Signal frame matrixing music information recording method |
Also Published As
Publication number | Publication date |
---|---|
CN109949819B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103810020B (en) | Virtual machine elastic telescopic method and device | |
KR101134195B1 (en) | System and method for memory allocation in embedded or wireless communication systems | |
CN109656627A (en) | Starting method, activation system and the relevant apparatus of hard disk in a kind of BIOS | |
US20060149915A1 (en) | Memory management technique | |
CN108399175B (en) | Data storage and query method and device | |
CN110191156B (en) | Data processing method and device based on block chain | |
CN110175081A (en) | A kind of optimization system and its method played for Android audio | |
CN106933927B (en) | Data table connection method and device | |
CN109949819A (en) | Save the method, apparatus and electronic equipment of the program and data space of audio processing | |
CN106254270A (en) | A kind of queue management method and device | |
CN105550220B (en) | A kind of method and device of the access of heterogeneous system | |
CN109213745B (en) | Distributed file storage method, device, processor and storage medium | |
CN112860412B (en) | Service data processing method and device, electronic equipment and storage medium | |
CN106231051A (en) | The method of testing of a kind of video decoding and relevant device | |
CN111309269B (en) | Method, system and equipment for dropping compressed data and readable storage medium | |
CN110008382B (en) | Method, system and equipment for determining TopN data | |
CN109857382A (en) | A kind of SoC chip software-defined radio Decoupling design method | |
CN111258955B (en) | File reading method and system, storage medium and computer equipment | |
CN110875934B (en) | Service grouping method and device based on multi-tenant service | |
CN113703967A (en) | Data processing method, data processing apparatus, storage medium, and electronic apparatus | |
CN106250222A (en) | Method and device for managing application program and electronic equipment | |
JP6097660B2 (en) | Input data aggregation processing apparatus, system and method | |
CN113010514A (en) | Hot loading method and device | |
CN106921609A (en) | Calling playback control method and device | |
CN112506813A (en) | Memory management method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220424 Address after: Rooms 1306-1309, 13 / F, 19 science Avenue West, Hong Kong Science Park, Shatin, New Territories, China Patentee after: BUILDWIN INTERNATIONAL (ZHUHAI) LTD. Address before: 1302, yuemeite building, 1 Gaoxin South 7th Road, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000 Patentee before: Jianrong semiconductor (Shenzhen) Co.,Ltd. Patentee before: Jianrong integrated circuit technology (Zhuhai) Co., Ltd |
|
TR01 | Transfer of patent right |