CN102541560A - Implementation method for speed change software and device - Google Patents

Implementation method for speed change software and device Download PDF

Info

Publication number
CN102541560A
CN102541560A CN2011104526953A CN201110452695A CN102541560A CN 102541560 A CN102541560 A CN 102541560A CN 2011104526953 A CN2011104526953 A CN 2011104526953A CN 201110452695 A CN201110452695 A CN 201110452695A CN 102541560 A CN102541560 A CN 102541560A
Authority
CN
China
Prior art keywords
speed change
function
time
frame
video
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
Application number
CN2011104526953A
Other languages
Chinese (zh)
Other versions
CN102541560B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Qizhi Software Beijing Co Ltd
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 Qizhi Software Beijing Co Ltd filed Critical Qizhi Software Beijing Co Ltd
Priority to CN201110452695.3A priority Critical patent/CN102541560B/en
Priority to CN201510017700.6A priority patent/CN104636138B/en
Publication of CN102541560A publication Critical patent/CN102541560A/en
Application granted granted Critical
Publication of CN102541560B publication Critical patent/CN102541560B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an implementation method for speed change software and a device. The implementation method for the speed change software includes determining a time function used in a current process of software to be in speed change; computing time difference between originally set playing time of a current audio frame and/or video frame and originally set playing time of a next audio frame and/or video frame by the aid of the time function in the current process; adjusting the time difference according to inputted speed change parameters; and adopting actual playing start time of the current audio frame and/or video frame as a start point, and playing the next audio frame and/or video frame when the adjusted time difference is elapsed. By the aid of the implementation method for the speed change software and the device, the speed change software realizes a speed change function more safely, and an effect of relieving burden on a system is realized.

Description

Speed change software implementation method and device
Technical field
The application relates to software technology field, particularly relates to a kind of speed change method of software realization and device.
Background technology
Speed change software, as the term suggests be the software of realizing speed changing function, through speed change software, the speed that people can want with oneself is carried out speed change to software, enjoys personalized experience.For example, realize the speed change software of recreation speed changing function.The recreation speed changing function is a recreation subsidiary function that is built in the recreation plug-in unit, and can realize increases user's game-play enjoyment to the game rate quickening of flash recreation or the effect that slows down.As, in recreation, when the user hides enemy's bullet, use speed change recreation speed changing function that game rate is slowed down, thereby avoid bullet.
Traditional speed change software is the technology of injecting through process when realizing speed change, kidnaps target process, changes the process speed of inner all times then by force.Do like this, easily by the antivirus software interception, also cause the collapse of software easily on the one hand; On the other hand, can all carry out speed change, as the process when the WORD document of front opening is also kidnapped to present all processes; The WORD document is carried out speed change; But these speed changes are unnecessary, might cause unforeseen system problem, also cause unnecessary burden to system.
Therefore, need the urgent technical matters that solves of those skilled in the art to be exactly at present: how when realizing the software speed change, by the antivirus software interception or cause software crash, and can alleviate the unnecessary system burden that causes when having speed change software speed change now.
Summary of the invention
The application's technical matters to be solved provides a kind of speed change software implementation method and device, and, when realizing speed change, be prone to by the antivirus software interception or cause software crash with the speed change software that solves prior art, and the problem that causes the unnecessary burden of system.
In order to address the above problem, the application discloses a kind of speed change software implementation method, comprising: confirm to treat the function of time that the current process of speed change software is used; In said current process, the said function of time of use confirming calculates mistiming of former setting reproduction time of former setting reproduction time and the next audio frame and/or the frame of video of current audio frame and/or frame of video; According to the speed change parameter of input, the said mistiming is adjusted; Actual broadcast start time with said current audio frame and/or frame of video is a starting point, through after the time of adjusted said mistiming, plays said next audio frame and/or frame of video.
Preferably, before the actual broadcast start time with said current audio frame and/or frame of video is the step of starting point, also comprise: use the said function of time of confirming, obtain the actual broadcast start time of said current audio frame and/or frame of video.
Preferably, the step of the function of time that uses of the said current process of confirming to treat speed change software comprises: the function of time that obtains a plurality of acquisition times; According to the error of said a plurality of function of time acquisition times, confirm that the minimum function of time of error is the said function of time of treating the current process use of speed change software.
Preferably, before the step of the said function of time that obtains a plurality of acquisition times, also comprise: the error of system function timeGettime function acquisition time is set, makes said timeGettime function become the minimum function of time of said error.
Preferably; After the step of the said error that system function timeGettime function acquisition time is set; Also comprise: in said timeGettime function, reset the functional value that the said timeGettime function of expression carried out modification, make said timeGettime function continue to carry out.
Preferably, in the speed change parameter according to input, before the step that the said mistiming is adjusted, also comprise: the reference speed change parameter that the reception server end sends is as the speed change parameter of said input; Perhaps, receive said that said server end sends, according to the said speed change parameter of selecting said input with reference to the speed change parameter with reference to the speed change parameter; Wherein, saidly by said server end a plurality of said speed change softwares are added up acquisition to the actual speed change parameter that it reports with reference to the speed change parameter.
Preferably, said speed change software is the said plug-in unit of treating speed change software.
In order to address the above problem, disclosed herein as well is a kind of speed change software implement device, comprising: determination module is used to confirm to treat the function of time that the current process of speed change software is used; Computing module is used in said current process, and the said function of time of use confirming calculates mistiming of former setting reproduction time of former setting reproduction time and the next audio frame and/or the frame of video of current audio frame and/or frame of video; Adjusting module is used for the speed change parameter according to input, and the said mistiming is adjusted; Speed-variable module, the actual broadcast start time that is used for said current audio frame and/or frame of video is a starting point, through after the time of adjusted said mistiming, plays said next audio frame and/or frame of video.
Preferably; Speed change software implement device also comprises: acquisition module; Be used for before said speed-variable module is starting point with the actual broadcast start time of said current audio frame and/or frame of video; Use the said function of time of confirming, obtain the actual broadcast start time of said current audio frame and/or frame of video.
Preferably, said determination module is used to obtain the function of time of a plurality of acquisition times; According to the error of said a plurality of function of time acquisition times, confirm that the minimum function of time of error is the said function of time of treating the current process use of speed change software.
Preferably; Speed change software implement device also comprises: first is provided with module; Be used for before said determination module obtains the function of time of a plurality of acquisition times; The error of system function timeGettime function acquisition time is set, makes said timeGettime function become the minimum function of time of said error.
Preferably; Speed change software implement device also comprises: second is provided with module; Be used for after said first is provided with the error that module is provided with system function timeGettime function acquisition time; In said timeGettime function, reset the functional value that the said timeGettime function of expression carried out modification, make said timeGettime function continue to carry out.
Preferably; Speed change software implement device also comprises: the speed change referrer module; Be used in the speed change parameter of said adjusting module according to input, before the said mistiming was adjusted, the reference speed change parameter that the reception server end sends was as the speed change parameter of said input; Perhaps, receive said that said server end sends, select said input speed change parameter with reference to the speed change parameter according to said with reference to the speed change parameter; Wherein, saidly by said server end a plurality of said speed change softwares are added up acquisition to the actual speed change parameter that it reports with reference to the speed change parameter.
Preferably, the speed change software of said speed change software implement device realization is the said plug-in unit of treating speed change software.
Compared with prior art, the application has the following advantages:
The function of time of the application through confirming that current process is used; Then in current process; Speed change parameter according to input; Use this function of time that the original reproduction time difference of former and later two audio/video frames is adjusted, make back one audio/video frame on the basis of the actual broadcast start time of last audio/video frame, to play with the speed speed change of expectation.With the slow down broadcasting speed of audio/video of certain speed, then pass through the adjustment to original reproduction time difference like the indication of, speed change parameter, the mistiming has just increased, and the broadcast of back one audio/video frame will be postponed, thereby reaches slack-off purpose.Mistiming is adjusted in current process because be; This adjustment is only operated the thread in the current process, and does not relate to other process, and is therefore safer; Can not be considered to virus or wooden horse, thereby can or not cause software crash by the antivirus software interception; In addition, because of adjustment only relates to current process, also be that system only needs current process is operated, need not to operate other irrelevant process, thereby alleviated the unnecessary burden of system.It is thus clear that through the application, the speed change software that has solved prior art is when realizing speed change; Be prone to tackled or cause software crash by antivirus software; And the problem that causes the unnecessary burden of system, reached and improved the security that speed change software is realized speed changing function, the effect of mitigation system burden.
Description of drawings
Fig. 1 is the flow chart of steps according to a kind of speed change software implementation method of the application embodiment one;
Fig. 2 is the flow chart of steps according to a kind of speed change software implementation method of the application embodiment two;
Fig. 3 is the flow chart of steps according to a kind of speed change software implementation method of the application embodiment three;
Fig. 4 is the structured flowchart according to a kind of speed change software implement device of the application embodiment four.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can be more obviously understandable, the application is done further detailed explanation below in conjunction with accompanying drawing and embodiment.
Embodiment one
With reference to Fig. 1, show flow chart of steps according to a kind of speed change software implementation method of the application embodiment one.
The speed change software implementation method of present embodiment may further comprise the steps:
Step S102: confirm to treat the function of time that the current process of speed change software is used.
Wherein, the original function of time of system is used to realize the function of acquisition time.Through the function of time that the current process of confirming to treat speed change software is used, make the reproduction time adjustment of audio frame and/or frame of video only in this process, carry out, and do not relate to the time of other process.
Step S104: in the current process of treating speed change software, the function of time of use confirming calculates mistiming of former setting reproduction time of former setting reproduction time and the next audio frame and/or the frame of video of current audio frame and/or frame of video.
In the present embodiment; Use through the current process of treating speed change software; The modification of the function body of the function of time that system is original and expansion make mistiming of the former setting reproduction time of its former setting reproduction time that can calculate current audio frame and/or frame of video and next audio frame and/or frame of video, and according to the speed change parameter of input; This mistiming is adjusted, to realize the speed changing function in the current process.
Wherein, the former setting reproduction time audio frame representing to set in original program or the software and/or the reproduction time of frame of video.As, setting in the original program, current audio frame and/or the frame of video 1s behind program start plays, and behind the 2s of interval, also promptly the 3s behind program start plays next audio frame and/or frame of video.
Step S106: in the current process of treating speed change software,, this mistiming is adjusted according to the speed change parameter of input.
Wherein, the speed change parameter can be the speed change parameter of artificial input, as in game process, and user's artificial selection speed change speed, then this speed change speed will be used as the speed change parameter and be used to the mistiming is adjusted; The speed change parameter also can be a preset parameters; As in audio frequency and video are play; If the user selects to broadcast slowly or broadcast soon; Then system can play according to preestablishing current audio frame and/or the frame of video 1s behind program start, and behind the 2s of interval, also promptly the speed of broadcasting slowly or broadcast soon of playing next audio frame and/or frame of video of the 3s behind program start is play audio frequency and video and adjusted.Preferably, the speed change parameter of input can also be to select the speed change parameter imported according to the reference speed change parameter of server end feedback.Wherein, Server end feedback is to be by server end the actual speed change parameter that all users that collect import when reality is used speed change software to be added up acquisition with reference to the speed change parameter, such as, server end statistics collection to a plurality of actual speed change parameter in the highest speed change parameter of frequency of utilization; Perhaps; The highest speed change parameter of parameter value in the actual speed change parameter feeds back to user's (promptly treating speed change software) then, by the user according to this feedack; The speed change parameter of decision input; The user can directly carry out speed change with the reference speed change parameter of server end feedback as the speed change parameter of input, also can be according to selecting other speed change parameter to import with reference to the speed change parameter, as selecting the higher value of the speed change parameter higher than reference value etc.
Step S108: in the current process of treating speed change software, be starting point,, play next audio frame and/or frame of video through after the time of adjusted mistiming with the actual broadcast start time of current audio frame and/or frame of video.
Because the time interval (being the mistiming) to the broadcast set in the original program is adjusted, the actual broadcast start time of then current audio frame and/or frame of video possibly be different from the reproduction time of former setting.Therefore, need be starting point with the actual time that begins to play of current audio frame and/or frame of video, start at current audio frame and/or frame of video and next audio frame and/or the adjusted reproduction time of frame of video interval, carry out audio frame and/or presentation of video frames.As; 3 times of slow play audio frames and/or frame of video with former broadcasting speed; Then as setting among the step S104; Current audio frame and/or the frame of video 1s behind program start plays, and former interval 2s is adjusted into 2 (s) * 3=6 (s), and also promptly the 7s behind program start plays next audio frame and/or frame of video.
Need to prove that generally speaking, the conduct of speed change software treats that the card format of speed change software realizes, but is not limited thereto, other any appropriate format also can be realized like independent form of software.Speed change software is as treating the plug-in unit of speed change software, make speed change software with treat that speed change software becomes as a whole, thereby reduced software realization cost, improved user's experience, make that also the use of speed change software is more convenient and safe.
Pass through present embodiment; Confirm the function of time that current process is used earlier; In current process,, use this function of time that the original reproduction time difference of former and later two audio/video frames is adjusted then according to the speed change parameter of input; Make back one audio/video frame on the basis of the actual broadcast start time of last audio/video frame, to play with the speed speed change of expectation.Mistiming is adjusted in current process because be; This adjustment is only operated the thread in the current process, and does not relate to other process, and is therefore safer; Can not be considered to virus or wooden horse, thereby can or not cause software crash by the antivirus software interception; In addition, because of adjustment only relates to current process, also be that system only needs current process is operated, need not to operate other irrelevant process, thereby alleviated the unnecessary burden of system.It is thus clear that through present embodiment, the speed change software that has solved prior art is when realizing speed change; Be prone to tackled or cause software crash by antivirus software; And the problem that causes the unnecessary burden of system, reached and improved the security that speed change software is realized speed changing function, the effect of mitigation system burden.
Embodiment two
With reference to Fig. 2, show flow chart of steps according to a kind of speed change software implementation method of the application embodiment two.
The speed change software implementation method of present embodiment may further comprise the steps:
Step S202: the error of the timeGettime function acquisition time of system is set, makes the minimum function of time of error in its function that becomes all acquisition times.
Wherein, the timeGettime function is a system function, is used for acquisition time.In this step,, make the timeGettime function become the minimum function of time of error in the function of all acquisition times through the error of timeGettime function acquisition time is set.
Relate to the program that audio frequency and video are play,, when initialization, can judge the precision of the function of time of acquisition time, use from choosing the high function of precision between a plurality of functions of time like the flash program.To this situation; Present embodiment is before the flash initialization; The time precision (revise it through system function and obtain the error of system time) of timeGettime is set; Such as being set to error is 1ms, can judge that timeGettime meets its requirement to time precision during the flash initialization so, thereby guarantee the use of function.Selection is made amendment to the timeGettime function; Be because flash is when choosing the high function of precision and use between a plurality of functions of time; Can at first judge the timeGettime function judge whether it meets the requirement of flash to time precision, the timeGettime function is made amendment makes it meet the requirement of flash; Select speed thereby accelerated the function of time, improved executing efficiency.
Certainly, also can revise function At All Other Times, reduce the error of its acquisition time, it is met the requirements.
Step S204: in the timeGettime function, reset the functional value that expression timeGettime function carried out modification, make the timeGettime function continue to carry out.
The purpose of resetting the functional value that expression timeGettime function carried out revising is to reach to skip the effect of quickening inspection.Relate to the program that audio frequency and video are play,, before the allocating time function, can check, judge whether it was modified the function of time like the flash program.If be modified, then program can think that this function of time is plug-in, no longer carries out thereby skip this function of time, then carries out next function.The principle of quickening inspection is when the allocating time function; Program can be before calling; Check first value (being the numerical value at function first address place) of this function, if this is worth " 09 " for the sexadecimal form, its meaning in compilation is jmp; Explain that then this function made modification, no longer call this function.In the present embodiment, revise, " 09 " is displaced to next address, skip the effect of quickening inspection thereby reach through compilation.Certainly, when concrete the realization, those skilled in the art also can select other suitable mode according to actual conditions, amended timeGettime function is skipped quickened inspection, realize the execution of amended timeGettime function.
Step S206: the function of time that obtains a plurality of acquisition times.
Wherein, comprise the timeGettime function of revising in a plurality of functions of time.
Step S208:, confirm that the minimum function of time of error is the function of time of treating the current process use of speed change software according to the error of a plurality of function of time acquisition times.
Can know that by abovementioned steps in the present embodiment, the timeGettime function is the minimum function of error.Therefore, in this step, confirm that the timeGettime function is the function of time of treating the current process use of speed change software.The error of acquisition time is more little, and the time of broadcast is just accurate more, and speed changing function is just accurate more, thereby promotes the experience that the user uses speed changing function.
Step S210: in the current process of treating speed change software, the minimum function of time of the error of use confirming calculates mistiming of former setting reproduction time of former setting reproduction time and the next audio frame and/or the frame of video of current audio frame and/or frame of video.
In the present embodiment, the former setting reproduction time of setting current audio frame and/or frame of video is the 3s behind the program start, and the former setting reproduction time of its next audio frame and/or frame of video is the 5s behind the program start, and the mistiming of the two is 2s.
Step S212: in the current process of treating speed change software,, the mistiming of calculating is adjusted according to the speed change parameter of input.
In the present embodiment, the speed change parameter of setting input is the slow down broadcasts of audio frame and/or frame of video of 3 times of speed of former speed, the 2s*3=6s of the mistiming of then adjusted current audio frame and/or frame of video and next audio frame and/or frame of video.
Step S214: in the current process of treating speed change software, use the minimum function of time of confirming of error to obtain the actual broadcast start time of current audio frame and/or frame of video.
Need to prove that this step also can be carried out before step S210.
Step S216: in the current process of treating speed change software, be starting point,, play next audio frame and/or frame of video through after the time of adjusted mistiming with the actual broadcast start time of current audio frame and/or frame of video.
In this step, the actual broadcast start time of current audio frame and/or frame of video is obtained through step S214.Suppose that the actual broadcast start time of current audio frame and/or frame of video is the 7s behind the program start, then pass through the mistiming of 6s after, the time of realize playing next audio frame and/or frame of video is the 13s behind the program start.
The speed change software that present embodiment has not only solved prior art is prone to by the antivirus software interception or causes software crash when realizing speed change, and the problem that causes the unnecessary burden of system; And; Through in current process; Use amended timeGettime function to confirm the actual broadcast start time of current audio frame and/or frame of video; Make the broadcast of audio frame and/or frame of video more accurate, promoted the accuracy of speed changing function, improved the experience that the user uses speed changing function.
Embodiment three
With reference to Fig. 3, show flow chart of steps according to a kind of speed change software implementation method of the application embodiment three.
Present embodiment is an example with the recreation speed changing function, and the application's speed change software implementation method is done with explanation.The recreation speed changing function is a recreation subsidiary function that is built in the recreation plug-in unit.Can realize the game rate of flash recreation is accelerated or the effect that slows down, increase user's game-play enjoyment.Flash draws through the time dynamically, through obtaining twice the time, in the counting period, realizes the calculating of flash frame reproduction time.Present embodiment reaches the purpose of speed change through making amendment at in-process function to acquisition time.Such as, with the time second time of obtaining elongated, the mistiming just increases, flash draws the time of next frame and also can postpone, thereby reaches slack-off purpose.Because be, and only the thread of flash is operated in this process, therefore safer than common method.
The speed change software implementation method of present embodiment may further comprise the steps:
Step S302: start recreation speed change plug-in card program.
Step S304: the function of time that loads the current process acquisition time.
In this step, can therefrom obtain the corresponding function of time, confirm that from these functions of time the function of time that current process is used loads through the dynamic link library (winmm.dll) of Load System.
Speed change software in the present embodiment is to be optimized to flash, learns through research: the precision of flash meeting judgement time function when initialization, use from choosing the high function of precision between a plurality of functions; To this situation; Present embodiment was revised through system function before the flash initialization, realized the setting of the time precision of timeGettime function; Can judge during the flash initialization that the timeGettime function meets its requirement, thereby confirm to use the timeGettime function.
In addition, flash can be before calling when the allocating time function, first value of inspection function, if this value is 09, the meaning in compilation is jmp, explains that then this function made modification, no longer calls this function.Present embodiment is revised through compilation, and with first value of timeGettime function, promptly " 09 " (sexadecimal) is displaced to next address, skips the effect of quickening inspection thereby reach.
Step S306: the former function of time that will load replaces with the self-defining function of time, preserves the acquiescence result simultaneously.
The self-defining function of time is promptly expanded the function body of the former function of time and is revised; Make the mistiming of the former setting reproduction time of its former setting reproduction time and next audio frame and/or frame of video with the current audio frame of calculating and/or frame of video; According to the speed change parameter of input, the function of time that the said mistiming is adjusted.
The value that the acquiescence result who preserves returns for this former function of time.
Step S308: the self-defining function of time is called in recreation, obtains the audio frame next to be play and/or the former setting reproduction time of frame of video.
In this process; The self-defining function of time can find the function body part of the unmodified former function of time; Send request to this function body, obtain the value of the former setting reproduction time of audio frame next to be play and/or frame of video then, and then store the result who returns.
Step S310: the self-defining function of time is done comparison according to the result who returned last time and this result, draws difference.
Promptly; The self-defining function of time is according to the audio frame of request acquisition last time and/or the former setting reproduction time of frame of video; The audio frame that obtains with this request and/or the former setting reproduction time of frame of video are the result of comparison, obtain the mistiming of the former setting reproduction time of two audio frames and/or frame of video.
Step S312: the self-defining function of time is made amendment to difference according to multiplying power.
That is, according to the speed change parameter of input, the value of adjustment mistiming.
The self-defining function of time obtains the return results of the function of this request earlier; Make comparisons with the return results of last time then; The difference that obtains is made an amendment (just multiply by 2 such as 2 times of speed) according to the multiplying power of speed change again, and the value that obtains is added to the result who returned last time, is exactly final result; Net result can be preserved by the self-defining function of time, is used for calculating next time.
Step S314: the recreation of the result's output that will handle.
That is,, speed change is carried out in the broadcast of flash according to the value of adjusted mistiming.
Through present embodiment, realized special-purpose flash recreation speed changing function that (1) is built-in, because of this function only in this in-process realization, compare traditional speed change software specialty more, safety, virus-free wooden horse risk; (2) because of being the modification to the function of time of process inside use, therefore can ideally support flash all versions at present, recreation has better optimize to experience and technological specific aim to flash to compare traditional speed change software; (3) more stable on the technological architecture, can not influence any program beyond the current recreation; (4) use is simpler, and is convenient, effectively.
Embodiment four
With reference to Fig. 4, show structured flowchart according to a kind of speed change software implement device of the application embodiment four.
The speed change software implement device of present embodiment comprises: determination module 402 is used to confirm to treat the function of time that the current process of speed change software is used; Computing module 404 is used in current process, and the function of time of use confirming calculates mistiming of former setting reproduction time of former setting reproduction time and the next audio frame and/or the frame of video of current audio frame and/or frame of video; Adjusting module 406 is used for the speed change parameter according to input, and the mistiming is adjusted; Speed-variable module 408, the actual broadcast start time that is used for current audio frame and/or frame of video is a starting point, through after the time of adjusted mistiming, plays next audio frame and/or frame of video.
Preferably; The speed change software implement device of present embodiment also comprises: acquisition module 410; Be used for before speed-variable module 408 is starting point with the actual broadcast start time of current audio frame and/or frame of video; Use the function of time of confirming, obtain the actual broadcast start time of current audio frame and/or frame of video.
Preferably, determination module 402 is used to obtain the function of time of a plurality of acquisition times; According to the error of a plurality of function of time acquisition times, confirm that the minimum function of time of error is the function of time of treating the current process use of speed change software.
Preferably; The speed change software implement device of present embodiment also comprises: first is provided with module 412; Be used for before determination module 402 obtains the function of time of a plurality of acquisition times; The error of system function timeGettime function acquisition time is set, makes the timeGettime function become the minimum function of time of error.
Preferably; The speed change software implement device of present embodiment also comprises: second is provided with module 414; Be used for after first is provided with the error that module 412 is provided with system function timeGettime function acquisition time; In the timeGettime function, reset the functional value that expression timeGettime function carried out modification, make the timeGettime function continue to carry out.
Preferably; The speed change software implement device of present embodiment also comprises: speed change referrer module 416; Be used in the speed change parameter of adjusting module 406 according to input, before the mistiming was adjusted, the reference speed change parameter that the reception server end sends was as the speed change parameter of input; Perhaps, the reference speed change parameter that the reception server end sends is according to the speed change parameter of selecting said input with reference to the speed change parameter; Wherein, by server end a plurality of speed change softwares are added up acquisition to the actual speed change parameter that it reports with reference to the speed change parameter.
Preferably, the speed change software of speed change software implement device realization is the said plug-in unit of treating speed change software.
The speed change software implement device of present embodiment is used for realizing the corresponding speed change software implementation method of aforementioned a plurality of method embodiment, and has the beneficial effect of corresponding speed change software implementation method, repeats no more at this.
Need to prove that the application's speed change software implement scheme is particularly useful for realizing the speed changing function of Games Software, the broadcast of FLASH frame in the Games Software is adjusted.Scheme through the application; The speed change software that has solved prior art is prone to by the antivirus software interception or causes software crash when realizing speed change, and the problem that causes the unnecessary burden of system; Reached and improved the security that speed change software is realized speed changing function, the effect of mitigation system burden.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment, because it is similar basically with method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than a kind of speed change software implementation method and device that the application provided have been carried out detailed introduction; Used concrete example among this paper the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.

Claims (14)

1. a speed change software implementation method is characterized in that, comprising:
Confirm to treat the function of time that the current process of speed change software is used;
In said current process, the said function of time of use confirming calculates mistiming of former setting reproduction time of former setting reproduction time and the next audio frame and/or the frame of video of current audio frame and/or frame of video;
According to the speed change parameter of input, the said mistiming is adjusted;
Actual broadcast start time with said current audio frame and/or frame of video is a starting point, through after the time of adjusted said mistiming, plays said next audio frame and/or frame of video.
2. method according to claim 1 is characterized in that, before the actual broadcast start time with said current audio frame and/or frame of video is the step of starting point, also comprises:
Use the said function of time of confirming, obtain the actual broadcast start time of said current audio frame and/or frame of video.
3. method according to claim 2 is characterized in that, the step of the function of time that the said current process of confirming to treat speed change software is used comprises:
Obtain the function of time of a plurality of acquisition times;
According to the error of said a plurality of function of time acquisition times, confirm that the minimum function of time of error is the said function of time of treating the current process use of speed change software.
4. method according to claim 3 is characterized in that, before the step of the said function of time that obtains a plurality of acquisition times, also comprises:
The error of system function timeGettime function acquisition time is set, makes said timeGettime function become the minimum function of time of said error.
5. method according to claim 4 is characterized in that, after the step of the said error that system function timeGettime function acquisition time is set, also comprises:
In said timeGettime function, reset the functional value that the said timeGettime function of expression carried out modification, make said timeGettime function continue to carry out.
6. method according to claim 1 is characterized in that, in the speed change parameter according to input, before the step that the said mistiming is adjusted, also comprises:
The reference speed change parameter that the reception server end sends is as the speed change parameter of said input; Perhaps, receive said that said server end sends, according to the said speed change parameter of selecting said input with reference to the speed change parameter with reference to the speed change parameter;
Wherein, saidly by said server end a plurality of said speed change softwares are added up acquisition to the actual speed change parameter that it reports with reference to the speed change parameter.
7. according to each described method of claim 1 to 6, it is characterized in that said speed change software is the said plug-in unit of treating speed change software.
8. a speed change software implement device is characterized in that, comprising:
Determination module is used to confirm to treat the function of time that the current process of speed change software is used;
Computing module is used in said current process, and the said function of time of use confirming calculates mistiming of former setting reproduction time of former setting reproduction time and the next audio frame and/or the frame of video of current audio frame and/or frame of video;
Adjusting module is used for the speed change parameter according to input, and the said mistiming is adjusted;
Speed-variable module, the actual broadcast start time that is used for said current audio frame and/or frame of video is a starting point, through after the time of adjusted said mistiming, plays said next audio frame and/or frame of video.
9. device according to claim 8 is characterized in that, also comprises:
Acquisition module is used for before said speed-variable module is starting point with the actual broadcast start time of said current audio frame and/or frame of video, using the said function of time of confirming, obtains the actual broadcast start time of said current audio frame and/or frame of video.
10. device according to claim 9 is characterized in that,
Said determination module is used to obtain the function of time of a plurality of acquisition times; According to the error of said a plurality of function of time acquisition times, confirm that the minimum function of time of error is the said function of time of treating the current process use of speed change software.
11. device according to claim 10 is characterized in that, also comprises:
First is provided with module, is used for before said determination module obtains the function of time of a plurality of acquisition times, and the error of system function timeGettime function acquisition time is set, and makes said timeGettime function become the minimum function of time of said error.
12. device according to claim 11 is characterized in that, also comprises:
Second is provided with module; Be used for after said first is provided with the error that module is provided with system function timeGettime function acquisition time; In said timeGettime function; Reset the functional value that the said timeGettime function of expression carried out modification, make said timeGettime function continue to carry out.
13. device according to claim 8 is characterized in that, also comprises:
The speed change referrer module is used in the speed change parameter of said adjusting module according to input, and before the said mistiming was adjusted, the reference speed change parameter that the reception server end sends was as the speed change parameter of said input; Perhaps, receive said that said server end sends, select said input speed change parameter with reference to the speed change parameter according to said with reference to the speed change parameter; Wherein, saidly by said server end a plurality of said speed change softwares are added up acquisition to the actual speed change parameter that it reports with reference to the speed change parameter.
14. to 13 each described devices, it is characterized in that according to Claim 8 the speed change software that said speed change software implement device is realized is the said plug-in unit of treating speed change software.
CN201110452695.3A 2011-12-29 2011-12-29 Implementation method for speed change software and device Active CN102541560B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110452695.3A CN102541560B (en) 2011-12-29 2011-12-29 Implementation method for speed change software and device
CN201510017700.6A CN104636138B (en) 2011-12-29 2011-12-29 Implementation method for speed change software and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110452695.3A CN102541560B (en) 2011-12-29 2011-12-29 Implementation method for speed change software and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201510017700.6A Division CN104636138B (en) 2011-12-29 2011-12-29 Implementation method for speed change software and device

Publications (2)

Publication Number Publication Date
CN102541560A true CN102541560A (en) 2012-07-04
CN102541560B CN102541560B (en) 2015-02-11

Family

ID=46348533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110452695.3A Active CN102541560B (en) 2011-12-29 2011-12-29 Implementation method for speed change software and device

Country Status (1)

Country Link
CN (1) CN102541560B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239089A (en) * 2014-06-26 2014-12-24 北京奇虎科技有限公司 Game speed change implementing method and game speed change implementing device
CN105279335A (en) * 2015-10-30 2016-01-27 南京河海南自水电自动化有限公司 Simulation method of variable speed simulator based on time scaling of operating system
CN105808336A (en) * 2016-03-08 2016-07-27 广州爱九游信息技术有限公司 Computing device, apparatus and method for operating application
CN107247611A (en) * 2017-07-06 2017-10-13 广州威道网络科技有限公司 A kind of acceleration method and system of web game
CN112416473A (en) * 2020-11-19 2021-02-26 广州橙行智动汽车科技有限公司 Time migration method and device
CN114339444A (en) * 2021-12-10 2022-04-12 北京达佳互联信息技术有限公司 Method, device and equipment for adjusting playing time of video frame and storage medium
CN114627876A (en) * 2022-05-09 2022-06-14 杭州海康威视数字技术股份有限公司 Intelligent voice recognition security defense method and device based on audio dynamic adjustment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1396742A (en) * 2002-08-02 2003-02-12 清华大学 Speed-variable playing method based on stream medium technique for player
CN101262291A (en) * 2008-04-30 2008-09-10 中兴通讯股份有限公司 A method and device for realizing speed-varying playing media
CN101770795A (en) * 2009-01-05 2010-07-07 联想(北京)有限公司 Computing device and video playing control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1396742A (en) * 2002-08-02 2003-02-12 清华大学 Speed-variable playing method based on stream medium technique for player
CN101262291A (en) * 2008-04-30 2008-09-10 中兴通讯股份有限公司 A method and device for realizing speed-varying playing media
CN101770795A (en) * 2009-01-05 2010-07-07 联想(北京)有限公司 Computing device and video playing control method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239089A (en) * 2014-06-26 2014-12-24 北京奇虎科技有限公司 Game speed change implementing method and game speed change implementing device
CN104239089B (en) * 2014-06-26 2017-12-19 北京奇虎科技有限公司 A kind of method and device for realizing game speed change
CN105279335A (en) * 2015-10-30 2016-01-27 南京河海南自水电自动化有限公司 Simulation method of variable speed simulator based on time scaling of operating system
CN105279335B (en) * 2015-10-30 2018-08-21 南京河海南自水电自动化有限公司 A kind of emulation mode of the speed change emulator based on operating system time-scaling
CN105808336A (en) * 2016-03-08 2016-07-27 广州爱九游信息技术有限公司 Computing device, apparatus and method for operating application
CN107247611A (en) * 2017-07-06 2017-10-13 广州威道网络科技有限公司 A kind of acceleration method and system of web game
CN112416473A (en) * 2020-11-19 2021-02-26 广州橙行智动汽车科技有限公司 Time migration method and device
CN114339444A (en) * 2021-12-10 2022-04-12 北京达佳互联信息技术有限公司 Method, device and equipment for adjusting playing time of video frame and storage medium
CN114627876A (en) * 2022-05-09 2022-06-14 杭州海康威视数字技术股份有限公司 Intelligent voice recognition security defense method and device based on audio dynamic adjustment

Also Published As

Publication number Publication date
CN102541560B (en) 2015-02-11

Similar Documents

Publication Publication Date Title
CN102541560A (en) Implementation method for speed change software and device
JP5735696B1 (en) GAME PROGRAM AND INFORMATION PROCESSING DEVICE
US20210038986A1 (en) Recording medium storing game program, game processing method, and information processing apparatus
JP5745682B1 (en) Information processing apparatus and game program
CN103517154A (en) Method for preloading video files and system thereof
JP2016137199A (en) Information processor and game program
CN109587576A (en) Exchange method and device, the storage medium and electronic device of terminal
JP6639102B2 (en) Information processing device and game program
CN112569599A (en) Control method and device for virtual object in virtual scene and electronic equipment
CN113613031A (en) Live broadcast method and device, electronic equipment and computer storage medium
CN104636138A (en) Speed change software implementation method and device
JP5841289B1 (en) Information processing apparatus and game program
CN109343880B (en) RN packet updating method and device and readable storage medium
CN116570928A (en) Information processing method, device and server based on NFT
CN109550243B (en) Game character control method and device, storage medium and electronic device
US20200246707A1 (en) Program and system
CN112965598A (en) Interaction method, device, system, electronic equipment and storage medium
JP2016140756A (en) Information processor and game program
CN110727442B (en) Data storage optimization method and system for embedded platform
JP2016087417A (en) Game program and information processing unit
CN113886208B (en) Data processing method, device, equipment and storage medium
JP2019103949A (en) Game program and information processing device
CN110141865B (en) Game parameter modification method and device, electronic equipment and storage medium
JP5769845B1 (en) GAME PROGRAM AND INFORMATION PROCESSING DEVICE
CN115586829B (en) Haptic vibration control method, haptic vibration control device, electronic apparatus, and storage medium

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151022

Address after: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Qizhi software (Beijing) Co.,Ltd.

Address before: The 4 layer 100016 unit of Beijing city Chaoyang District Jiuxianqiao Road No. 14 Building C

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20220719

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right