CN1851817A - Automatic regulating method of Mips number operated during decoder decoding process - Google Patents
Automatic regulating method of Mips number operated during decoder decoding process Download PDFInfo
- Publication number
- CN1851817A CN1851817A CN 200610035548 CN200610035548A CN1851817A CN 1851817 A CN1851817 A CN 1851817A CN 200610035548 CN200610035548 CN 200610035548 CN 200610035548 A CN200610035548 A CN 200610035548A CN 1851817 A CN1851817 A CN 1851817A
- Authority
- CN
- China
- Prior art keywords
- mips
- speed
- impact damper
- mips number
- current operation
- 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
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
This invention discloses an automatic regulation method for Mips numbers operating on the process of decoding by a decoder, which selects two adjacent buffers up and down in the same size, in which, one is used in storing decoding data, the other plays data, either of which has a pointer for comparing the filling speed of the storing data and the voidance speed of playing data to judge the current operating Mips numbers then referencing the stipulated Mips numbers in its specification to regulate the Mip numbers operating at the present, which can regulate the Mips numbers operating in the decoding process automatically.
Description
Technical field
The present invention relates to the Automatic adjustment method of the Mips number that moves in a kind of algorithm decoder decode procedure.
Background technology
At present in various embedded products, ability normal play after the file of different-format often needs corresponding algorithm to decode, yet the file of each form has different bit rates, sampling rate, decoding complex degree, so the operand to the required decoding algorithm of file of different-format is different, promptly decoding speed is different, and Mips (million instructions per second) number is also different.If adopting fixing minimum Mips number decodes, in the decode procedure that needs the bigger formatted file of operand, can cause some bit rate files can not normal play, phenomenons such as sound, image is discontinuous appear, if adopting fixed max Mips number decodes, in the decode procedure that needs the less formatted file of operand, power supply waste in the time of can causing some bit rate files to play, fallen the serviceable life of low battery greatly, moreover maximum Mips number also needs a large amount of file aptitude tests to come out, and not necessarily accurate.
Summary of the invention
In order to overcome present technical deficiency, the object of the present invention is to provide the Automatic adjustment method of the Mips number that moves in a kind of algorithm decoder decode procedure, can regulate the Mips number of demoder operation automatically according to the operand of different audio format file decoding algorithms.
Purpose of the present invention can realize by following technical measures: select two impact dampers that size is identical and neighbouring in the demoder for use, one of them impact damper is used to deposit decoded data, another impact damper is used for played data, described two impact dampers each have a pointer, in playing process, compare the filling speed of store data impact damper and the speed of moving empty of played data, according to result relatively, the Mips that judges current operation counts situation, then count situation according to the Mips that judges again, with the Mips number stipulated in the demoder instructions is reference, regulates the Mips number of current operation.
The present invention judges that according to the result of speed relatively the process of Mips number is: if the speed that the played data impact damper is moved empty is less than or equal to 1/2~4/5 times of speed that the store data impact damper fills, then the Mips number of current operation is too high;
If the speed that the played data impact damper is moved empty had not both met 1/2~4/5 times that is less than or equal to speed that the store data impact damper fills, also be not more than the speed that the store data impact damper is filled, then the Mips number of current operation is suitable;
If the speed that the speed that the played data impact damper is moved empty is filled greater than the store data impact damper, then the Mips number of current operation is low excessively.
The length velocity relation of two impact dampers of the present invention is to judge according to these two buffer lengths and pointer position thereof.
The present invention counts situation according to the Mips that judges, the process of regulating the Mips number is: when the Mips number of current operation is too high; Whether the Mips number that contrasts current operation reaches the minimum Mips number of stipulating in the demoder instructions, if reach, just keeps the Mips number of current operation constant, otherwise the reduction of on the Mips of current operation base plinth, stipulating in according to the demoder instructions;
When the Mips number of current operation suits, then keep the Mips number of current operation suitable constant;
The Mips number of current operation is crossed when hanging down, whether the Mips number that contrasts current operation reaches the highest Mips number of the specifications of IC, if reach, just keep the Mips number of the current operation of contrast constant, otherwise the raising of on the Mips base plinth of the current operation of contrast, stipulating in according to the demoder instructions.
The Mips number of current operation of the present invention is that the required Mips of algorithm decoder operation counts minimum value.
The present invention presses following treatment step in playing process:
A). the Mips number of the required operation of algorithm decoder is set as minimum value, demoder is moved;
B). the speed that speed that comparison played data impact damper is moved empty and store data impact damper are filled judges whether current Mips number needs to regulate;
C) if. satisfy speed that the played data impact damper moves empty and be less than or equal to 3/4 times of speed that the store data impact damper fills, represent that current Mips number is too high, check then whether current Mips number reaches the minimum Mips number of stipulating in the demoder instructions, if reach, just keep original Mips number constant, carry out f) step; Otherwise after the reduction one-level of on current Mips base plinth, stipulating in according to the demoder instructions; Carry out f) step;
D) if. neither satisfy speed that the played data impact damper moves empty and be less than or equal to 3/4 times of speed that the store data impact damper fills, do not satisfy the speed that speed that played data buffer moves empty is filled greater than store data buffer yet, expression Mips can satisfy, then keep current Mips number constant, carry out f) step;
E) if. satisfy the speed that speed that the played data impact damper moves empty is filled greater than the store data impact damper, expression Mips number is low excessively, check then whether current Mips number reaches the highest Mips number of stipulating in the demoder instructions, if reach, just keep current Mips number constant, otherwise the raising one-level of on current Mips base plinth, stipulating in according to the demoder instructions;
F). be recycled to b) step.
The present invention can be according to the operand of decoding algorithm in the different audio format file playing process, automatically regulate the Mips number that moves in the decode procedure, reach a required appropriate value of the different audio format files of correspondence, like this can all bit rate files of normal play, avoided occurring in the decode procedure of the bigger formatted file of operand phenomenons such as sound, image is discontinuous; In the decode procedure to the less formatted file of operand, power supply is wasted when avoiding causing some bit rate files to play, and reaches the power consumption of effective controls playing device, can save power supply for the portable product user, improves battery life.
Description of drawings
Fig. 1 is the FB(flow block) of specific embodiments of the invention.
Embodiment
Such as the mp3 player, PMP, often there is size identical in the demoder of embedded products such as PDA, two neighbouring impact damper buffer, the data that algorithm decoder obtains need leave among one of them impact damper buffer, in interrupting, data playback needs another impact damper buffer broadcast, two impact damper buffer each have a pointer, two buffer switch up and down mutually in playing process, judge the relation of its speed according to these two impact damper buffer length and pointer position thereof.
Because the length of two impact damper buffer is the same, velocity ratio is the distance ratio of the starting point of pointer position and impact damper buffer, so the ratio according to two distances decides speed, for example, the speed moved empty of played data impact damper buffer is 576 with the distance of the starting point of its pointer and this buffer just; The speed that store data impact damper buffer fills is 432 with the distance of the starting point of its pointer and this buffer just; 432/576=3/4 so shows that then speed that played data impact damper buffer moves empty equals 3/4 of speed that store data impact damper buffer fills, and all the other are similar.
In the decoding of mp3 music format in playing process, successively by following step process:
1). the Mips of the required operation of mp3 algorithm decoder is counted 12Mips be set as minimum value the mp3 demoder is moved;
2). the speed that speed that comparison played data impact damper buffer moves empty and store data impact damper buffer fill judges whether current Mips number needs to regulate;
3) if. satisfy speed that played data impact damper buffer moves empty and be less than or equal to 3/4 of speed that store data impact damper buffer fills, represent that current Mips number is too high, check then whether current Mips number reaches the minimum Mips number in the mp3 demoder instructions, if reach, just keep original Mips number constant, carry out the 6th) step; Otherwise on current Mips base plinth according to mp3 demoder instructions in the reduction one-level of every grade of step-length 3mips, the Mips number of current operation is adjusted to 9mips; Carry out the 6th) step;
4) if. neither satisfy speed that played data impact damper buffer moves empty and be less than or equal to 3/4 of speed that store data impact damper buffer fills, do not satisfy the speed that speed that played data buffer moves empty is filled greater than store data buffer yet, expression Mips can satisfy, then keep current Mips number constant, carry out the 6th) step;
5) if. satisfy the speed that speed that played data impact damper buffer moves empty is filled greater than store data impact damper buffer, expression Mips number is low excessively, check then whether current Mips number reaches the highest Mips number in the mp3 demoder instructions, if reach, just keep current Mips number constant, otherwise on current Mips base plinth according to mp3 demoder instructions in the raising one-level of every grade of step-length 3mips, the Mips number of current operation is adjusted to 15mips; Carry out the 6th) step;
6). be recycled to the 2nd) step.
The velocity ratio that speed that data buffer buffer moves empty in the foregoing description and store data impact damper buffer fill can according to circumstances be selected between 1/2~4/5.Said method also can be used for audio file formats such as WMA, OGG, AAC, ASF, can determine the value and the amplitude of accommodation of corresponding comparison in force with reference to regulation Mips number in the different-format demoder instructions.
Claims (6)
1, the Automatic adjustment method of the Mips number that moves in a kind of decoder decode process, it is characterized in that: select two impact dampers that size is identical and neighbouring in the demoder for use, one of them impact damper is used to deposit decoded data, another impact damper is used for played data, described two impact dampers each have a pointer, in playing process, compare the filling speed of store data impact damper and the speed of moving empty of played data, according to result relatively, the Mips that judges current operation counts situation, then count situation according to the Mips that judges again, with the Mips number stipulated in the demoder instructions is reference, regulates the Mips number of current operation.
2, the control method of the Mips number that moves in the algorithm decoder decode procedure according to claim 1, it is characterized in that: according to the result who compares speed, the process of judging the Mips number is: if the speed that the played data impact damper is moved empty is less than or equal to 1/2~4/5 times of speed that the store data impact damper fills, then the Mips number of current operation is too high;
If the speed that the played data impact damper is moved empty had not both met 1/2~4/5 times that is less than or equal to speed that the store data impact damper fills, also be not more than the speed that the store data impact damper is filled, then the Mips number of current operation is suitable;
If the speed that the speed that the played data impact damper is moved empty is filled greater than the store data impact damper, then the Mips number of current operation is low excessively.
3, the control method of the Mips number that moves in the algorithm decoder decode procedure according to claim 1 and 2 is characterized in that: the length velocity relation of described two impact dampers is to judge according to these two buffer lengths and pointer position thereof.
4, the control method of the Mips number that moves in the algorithm decoder decode procedure according to claim 1 is characterized in that: count situation according to the Mips that judges, the process of regulating the Mips number is: when the Mips number of current operation is too high; Whether the Mips number that contrasts current operation reaches the minimum Mips number of stipulating in the demoder instructions, if reach, just keeps the Mips number of current operation constant, otherwise the reduction of on the Mips of current operation base plinth, stipulating in according to the demoder instructions;
When the Mips number of current operation suits, then keep the Mips number of current operation suitable constant;
The Mips number of current operation is crossed when hanging down, whether the Mips number that contrasts current operation reaches the highest Mips number of the specifications of IC, if reach, just keep the Mips number of the current operation of contrast constant, otherwise the raising of on the Mips base plinth of the current operation of contrast, stipulating in according to the demoder instructions.
5, according to the control method of the Mips number that moves in claim 1, the 2 or 4 described algorithm decoder decode procedures, it is characterized in that: the Mips number of described current operation is that the required Mips of algorithm decoder operation counts minimum value.
6, the control method of the Mips number that moves in the algorithm decoder decode procedure according to claim 1 is characterized in that: in playing process, press following treatment step:
A). the Mips number of the required operation of algorithm decoder is set as minimum value, demoder is moved;
B). the speed that speed that comparison played data impact damper is moved empty and store data impact damper are filled judges whether current Mips number needs to regulate;
C) if. satisfy speed that the played data impact damper moves empty and be less than or equal to 3/4 times of speed that the store data impact damper fills, represent that current Mips number is too high, check then whether current Mips number reaches the minimum Mips number of stipulating in the demoder instructions, if reach, just keep original Mips number constant, carry out f) step; Otherwise after the reduction one-level of on current Mips base plinth, stipulating in according to the demoder instructions; Carry out f) step;
D) if. neither satisfy speed that the played data impact damper moves empty and be less than or equal to 3/4 times of speed that the store data impact damper fills, do not satisfy the speed that speed that played data buffer moves empty is filled greater than store data buffer yet, expression Mips can satisfy, then keep current Mips number constant, carry out f) step;
E) if. satisfy the speed that speed that the played data impact damper moves empty is filled greater than the store data impact damper, expression Mips number is low excessively, check then whether current Mips number reaches the highest Mips number of stipulating in the demoder instructions, if reach, just keep current Mips number constant, otherwise the raising one-level of on current Mips base plinth, stipulating in according to the demoder instructions;
F). be recycled to b) step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100355485A CN100437801C (en) | 2006-05-22 | 2006-05-22 | Automatic regulating method of Mips number operated during decoder decoding process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100355485A CN100437801C (en) | 2006-05-22 | 2006-05-22 | Automatic regulating method of Mips number operated during decoder decoding process |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1851817A true CN1851817A (en) | 2006-10-25 |
CN100437801C CN100437801C (en) | 2008-11-26 |
Family
ID=37133295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100355485A Expired - Fee Related CN100437801C (en) | 2006-05-22 | 2006-05-22 | Automatic regulating method of Mips number operated during decoder decoding process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100437801C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791890A (en) * | 2014-12-23 | 2016-07-20 | Tcl集团股份有限公司 | Soft decoding method and device for player |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1090859C (en) * | 1998-07-31 | 2002-09-11 | 国家科学技术委员会高技术研究发展中心 | Buffer withs imultaneous asynchronous read and write |
JP2003204361A (en) * | 2002-01-08 | 2003-07-18 | Matsushita Electric Ind Co Ltd | Decoder and encoder |
CN1310498C (en) * | 2004-07-30 | 2007-04-11 | 联合信源数字音视频技术(北京)有限公司 | Digital video-audio decoder |
-
2006
- 2006-05-22 CN CNB2006100355485A patent/CN100437801C/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105791890A (en) * | 2014-12-23 | 2016-07-20 | Tcl集团股份有限公司 | Soft decoding method and device for player |
Also Published As
Publication number | Publication date |
---|---|
CN100437801C (en) | 2008-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8051310B2 (en) | Method for reducing power consumption of processor | |
JP2009501482A (en) | Method of dynamically adjusting the operating frequency and available power of a processor core of a handheld multimedia device using historical load characteristics | |
JP2008537393A5 (en) | ||
JP2005223765A5 (en) | ||
EP1610211A3 (en) | Storage controller with high speed external interface to remote buffering | |
WO2008045795A1 (en) | System and method for dynamic audio buffer management | |
EP1643347A3 (en) | Information processing apparatus and cooling method | |
EP1780723A3 (en) | Reproducing apparatus, correlated information notifying method, and correlated information notifying program | |
JP2004126595A5 (en) | ||
CN103442307B (en) | The method and apparatus for playing video stream media | |
TW200518437A (en) | Motor controller | |
CN1594882A (en) | Air compressor and control method therefor | |
EP1944752A3 (en) | Tone processing apparatus and method | |
JP4481304B2 (en) | Storage device for storing different data formats | |
CN1851817A (en) | Automatic regulating method of Mips number operated during decoder decoding process | |
CN1675686A (en) | Trick mode audio playback | |
CN100339906C (en) | Method and apparatus for controlling audio-frequency flow buffering | |
EP1930875A3 (en) | Musical sound generating vehicular apparatus, musical sound generating method and program | |
EP1477671A3 (en) | Control apparatus for variable displacement compressor | |
EP2403265A3 (en) | Encoding device and method, decoding device and method, editing device and method, recoding medium, and program | |
CN1991812A (en) | Method for controlling data transmission and related device | |
CN1315126C (en) | Device and method for controlling step motor of optical disc driving system | |
WO2004057455A3 (en) | Power saving method for portable streaming devices | |
JP6078729B2 (en) | Audio processing device | |
CN1282070C (en) | Electronic apparatus that allows speaker volume control based on surrounding sound volume and method of speaker volume control |
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 | ||
C56 | Change in the name or address of the patentee | ||
CP02 | Change in the address of a patent holder |
Address after: 519085 hi tech Zone, Guangdong, Zhuhai science and Technology Innovation Coast Road, No. four, No. 1 Patentee after: Juli Integrated Circuit Design Co., Ltd. Address before: 519085, No. 1, Da Ha Road, Tang Wan Town, Guangdong, Zhuhai, -15-A101 Patentee before: Juli Integrated Circuit Design Co., Ltd. |
|
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081126 Termination date: 20130522 |