CN110362151B - Image inter-frame frequency conversion method capable of self-adaptive adjustment and storage device - Google Patents
Image inter-frame frequency conversion method capable of self-adaptive adjustment and storage device Download PDFInfo
- Publication number
- CN110362151B CN110362151B CN201910484400.7A CN201910484400A CN110362151B CN 110362151 B CN110362151 B CN 110362151B CN 201910484400 A CN201910484400 A CN 201910484400A CN 110362151 B CN110362151 B CN 110362151B
- Authority
- CN
- China
- Prior art keywords
- frequency conversion
- operation time
- time reserved
- interrupt
- reserved
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/08—Clock generators with changeable or programmable clock frequency
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Television Systems (AREA)
Abstract
The invention relates to the technical field of frequency conversion, in particular to an image inter-frame frequency conversion method capable of being adaptively adjusted and a storage device. The image interframe frequency conversion method capable of being adaptively adjusted comprises the following steps: step 1: setting a trigger interrupt to an image processing unit; step 2: starting frequency conversion, judging whether a condition of starting triggering interruption is met, if so, judging whether the operation time reserved for frequency conversion is enough, if so, freezing an operation system and entering frequency conversion; and step 3: and after the frequency conversion is finished, shortening the operation time reserved for the frequency conversion, and repeating the step 1 and the step 2 until the shortest time capable of meeting the frequency conversion operation is obtained during the next frequency conversion. By the method, an accurate frequency conversion time point which is suitable for the current screen resolution can be automatically obtained, and the time for freezing the system is reduced to the maximum extent.
Description
Technical Field
The invention relates to the technical field of frequency conversion, in particular to an image inter-frame frequency conversion method capable of being adaptively adjusted and a storage device.
Background
The existing DDR frequency conversion window is selected to carry out frequency conversion in a blanking period displayed on a screen. When the DDR is converted, the operating system is frozen to prevent any form of DDR access, so any application of the system cannot continue to execute in the blanking period, and the overall operation efficiency of the system is reduced.
Disclosure of Invention
Therefore, an image inter-frame frequency conversion method capable of being adjusted in a self-adaptive mode is needed to be provided, and the problem that the operating system is frozen in the whole blanking period and the operating efficiency of the system is reduced when DDR frequency conversion is carried out is solved. The specific technical scheme is as follows:
an image inter-frame frequency conversion method capable of self-adaptive adjustment comprises the following steps: step 1: setting a trigger interrupt to an image processing unit; step 2: starting frequency conversion, judging whether a condition of starting triggering interruption is met, if so, judging whether the operation time reserved for frequency conversion is enough, if so, freezing an operation system and entering frequency conversion; and step 3: and after the frequency conversion is finished, shortening the operation time reserved for the frequency conversion, and repeating the step 1 and the step 2 until the shortest time capable of meeting the frequency conversion operation is obtained during the next frequency conversion.
Further, the trigger interrupt is a line number of data output to the screen.
Further, the step 2 further comprises the steps of: and if the operation time reserved for frequency conversion is not enough, not carrying out frequency conversion, prolonging the operation time reserved for frequency conversion, and waiting for next frequency conversion.
Further, the operation time reserved for shortening the frequency conversion is as follows: increasing the line number of the sending interrupt; the operation time reserved for the frequency conversion is prolonged as follows: the line number of the outgoing interrupt is reduced.
In order to solve the technical problem, the storage device is further provided, and the specific technical scheme is as follows:
a storage device having stored therein a set of instructions for performing: step 1: setting a trigger interrupt to an image processing unit; step 2: starting frequency conversion, judging whether a condition of starting triggering interruption is met, if so, judging whether the operation time reserved for frequency conversion is enough, if so, freezing an operation system and entering frequency conversion; and step 3: and after the frequency conversion is finished, shortening the operation time reserved for the frequency conversion, and repeating the step 1 and the step 2 until the shortest time capable of meeting the frequency conversion operation is obtained during the next frequency conversion.
Further, the set of instructions is further for performing: the trigger interrupt is a line number of data output to the screen.
Further, the set of instructions is further for performing: the step 2 further comprises the steps of: and if the operation time reserved for frequency conversion is not enough, not carrying out frequency conversion, prolonging the operation time reserved for frequency conversion, and waiting for next frequency conversion.
Further, the set of instructions is further for performing: the operation time reserved for shortening the frequency conversion is as follows: increasing the line number of the sending interrupt; the operation time reserved for the frequency conversion is prolonged as follows: the line number of the outgoing interrupt is reduced.
The invention has the beneficial effects that: by setting triggering interruption, when frequency conversion is started, if the condition of starting triggering interruption is met, judging whether the operation time reserved for frequency conversion is enough, if the operation time reserved for frequency conversion is enough, freezing an operation system, entering frequency conversion, after the frequency conversion is finished, shortening the operation time reserved for frequency conversion, and repeating the steps until the shortest time capable of meeting the frequency conversion operation is obtained. By the method, a short time which can meet the frequency conversion operation is searched, the frequency conversion time of the freezing operation system is shortened, and the operation efficiency of the operation system is improved.
Drawings
FIG. 1 is a flowchart illustrating a method for adaptively adjusting inter-frame frequency conversion of an image according to an embodiment;
FIG. 2 is a diagram illustrating an interrupt sent when setting 900 lines according to an embodiment;
FIG. 3 is a diagram illustrating sending an interrupt when adjusted to line 980 according to an embodiment;
fig. 4 is a block diagram of a storage device according to an embodiment.
Description of reference numerals:
400. a storage device.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1 to fig. 3, in the present embodiment, an adaptive image interframe frequency conversion method can be applied to a storage device, including but not limited to: personal computers, general purpose computers, special purpose computers, network devices, embedded devices, programmable devices, intelligent mobile terminals, etc. In the present embodiment, the specific embodiments are as follows:
step S101: a trigger interrupt is set to the image processing unit.
Step S102: and starting frequency conversion.
Step S103: is the condition for initiating a trigger interrupt reached?
If the condition for starting triggering interruption is reached, executing step S104: is the operating time reserved for frequency conversion sufficient?
If the operation time reserved for the frequency conversion is enough, executing step S105: freezing the operating system and entering frequency conversion.
Step S106: and after the frequency conversion is finished, shortening the operation time reserved for the frequency conversion, and repeating the steps S101 to S105 until the shortest time capable of meeting the frequency conversion operation is obtained in the next frequency conversion.
The steps can specifically adopt the following modes:
in this embodiment, the trigger interrupt is a line number of data output to the screen. As shown in fig. 2, in the present embodiment, the sending-out interruption may be set to 900 lines on a 1080P screen. The conversion preparation period left for the DDR is 180 rows of refresh time.
When the interruption of 900 lines is triggered, the DDR immediately estimates whether 180 lines meet the frequency conversion operation time, and if the 180 lines meet the frequency conversion operation time, the operating system starts to be frozen and enters a frequency conversion process.
As shown in fig. 3, when the time of 180 lines is enough for frequency conversion, the image processing unit knows that the frequency conversion is completed, and then further compresses the time reserved for DDR frequency conversion, in this embodiment, the operation time reserved for frequency conversion is: the line number of the send-out interrupt is increased (and the time for sending out the line number interrupt is increased later), for example, when 980 lines, the interrupt is sent out again. The steps are repeated until the shortest time for meeting the frequency conversion operation is obtained.
Further, if the operation time reserved for frequency conversion is not enough, the frequency conversion is not performed, the operation time reserved for frequency conversion is prolonged, and the next frequency conversion is waited. In this embodiment, the operation time reserved for the extension of the frequency conversion is: the line number of the outgoing interrupt is reduced.
Sending out the interrupt in 980 lines, finding that the reserved frequency conversion operation time is not enough, then not performing frequency conversion on the DDR, and waiting for the next frequency conversion. At this time, if the image processing unit finds that there is no frequency conversion, it knows that the currently reserved period is too short, and increases the period, and if it can be reset to send out an interrupt at line 940.
Therefore, a mode of successive approximation is adopted, and finally, an accurate frequency conversion time point which is suitable for the resolution of the current screen can be automatically obtained, so that the time for freezing the system is reduced to the maximum extent. It should be noted that the minimum time in this embodiment is not a unique value, but the time value for freezing the system can be reduced to the maximum within a predetermined range, for example, when the interrupt is set in any row among the rows 985 and 990, the reserved time can be calculated as the minimum time for the frequency conversion operation.
By setting triggering interruption, when frequency conversion is started, if the condition of starting triggering interruption is met, judging whether the operation time reserved for frequency conversion is enough, if the operation time reserved for frequency conversion is enough, freezing an operation system, entering frequency conversion, after the frequency conversion is finished, shortening the operation time reserved for frequency conversion, and repeating the steps until the shortest time capable of meeting the frequency conversion operation is obtained. By the method, a short time which can meet the frequency conversion operation is searched, the frequency conversion time of the freezing operation system is shortened, and the operation efficiency of the operation system is improved.
Referring to fig. 4, in the present embodiment, a memory device 400 is implemented as follows:
a storage device 400 having stored therein a set of instructions for performing: step 1: setting a trigger interrupt to an image processing unit; step 2: starting frequency conversion, judging whether a condition of starting triggering interruption is met, if so, judging whether the operation time reserved for frequency conversion is enough, if so, freezing an operation system and entering frequency conversion; and step 3: and after the frequency conversion is finished, shortening the operation time reserved for the frequency conversion, and repeating the step 1 and the step 2 until the shortest time capable of meeting the frequency conversion operation is obtained during the next frequency conversion.
Further, the set of instructions is further for performing: the trigger interrupt is a line number of data output to the screen.
Further, the set of instructions is further for performing: the step 2 further comprises the steps of: and if the operation time reserved for frequency conversion is not enough, not carrying out frequency conversion, prolonging the operation time reserved for frequency conversion, and waiting for next frequency conversion.
Further, the set of instructions is further for performing: the operation time reserved for shortening the frequency conversion is as follows: increasing the line number of the sending interrupt; the operation time reserved for the frequency conversion is prolonged as follows: the line number of the outgoing interrupt is reduced.
The following method can be specifically adopted: as shown in fig. 2, in the present embodiment, the sending-out interruption may be set to 900 lines on a 1080P screen. The conversion preparation period left for the DDR is 180 rows of refresh time.
When the interruption of 900 lines is triggered, the DDR immediately estimates whether 180 lines meet the frequency conversion operation time, and if the 180 lines meet the frequency conversion operation time, the operating system starts to be frozen and enters a frequency conversion process.
As shown in fig. 3, when the time of 180 lines is enough for frequency conversion, the image processing unit knows that the frequency conversion is completed, and then further compresses the time reserved for DDR frequency conversion, in this embodiment, the operation time reserved for frequency conversion is: the line number of the send-out interrupt is increased (and the time for sending out the line number interrupt is increased later), for example, when 980 lines, the interrupt is sent out again. The steps are repeated until the shortest time for meeting the frequency conversion operation is obtained.
And if the sending is interrupted in the 980 line, and the reserved frequency conversion operation time is found to be insufficient, the DDR does not carry out frequency conversion, and the frequency conversion is carried out again for the next time. At this time, if the image processing unit finds that there is no frequency conversion, it knows that the currently reserved period is too short, and increases the period, and if it can be reset to send out an interrupt at line 940.
Therefore, a mode of successive approximation is adopted, and finally, an accurate frequency conversion time point which is suitable for the resolution of the current screen can be automatically obtained, so that the time for freezing the system is reduced to the maximum extent.
By executing the set of instructions stored on the storage device 400: and setting trigger interruption, judging whether the operation time reserved for frequency conversion is enough or not if the condition of starting the trigger interruption is met when the frequency conversion is started, freezing the operation system and entering the frequency conversion if the operation time reserved for the frequency conversion is enough, shortening the operation time reserved for the frequency conversion after the frequency conversion is finished, and repeating the steps until the shortest time capable of meeting the frequency conversion operation is obtained when the frequency conversion is next time. By the method, a short time which can meet the frequency conversion operation is searched, the frequency conversion time of the freezing operation system is shortened, and the operation efficiency of the operation system is improved.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.
Claims (8)
1. An image interframe frequency conversion method capable of being adaptively adjusted is characterized by comprising the following steps:
step 1: setting a trigger interrupt to an image processing unit;
step 2: starting frequency conversion, judging whether a condition of starting triggering interruption is met, if so, judging whether the operation time reserved for frequency conversion is enough, if so, freezing an operation system and entering frequency conversion;
and step 3: and after the frequency conversion is finished, shortening the operation time reserved for the frequency conversion, and repeating the step 1 and the step 2 until the shortest time capable of meeting the frequency conversion operation is obtained during the next frequency conversion.
2. The adaptive adjustable image interframe frequency conversion method according to claim 1,
the trigger interrupt is a line number of data output to the screen.
3. The adaptive adjustable image interframe frequency conversion method according to claim 1, wherein said step 2 further comprises the steps of:
and if the operation time reserved for frequency conversion is not enough, not carrying out frequency conversion, prolonging the operation time reserved for frequency conversion, and waiting for next frequency conversion.
4. The adaptive adjustable image interframe frequency conversion method according to claim 2,
the operation time reserved for shortening the frequency conversion is as follows: increasing the line number of the sending interrupt;
the operation time reserved for frequency conversion is prolonged as follows: the line number of the outgoing interrupt is reduced.
5. A storage device having a set of instructions stored therein, the set of instructions being operable to perform:
step 1: setting a trigger interrupt to an image processing unit;
step 2: starting frequency conversion, judging whether a condition of starting triggering interruption is met, if so, judging whether the operation time reserved for frequency conversion is enough, if so, freezing an operation system and entering frequency conversion;
and step 3: and after the frequency conversion is finished, shortening the operation time reserved for the frequency conversion, and repeating the step 1 and the step 2 until the shortest time capable of meeting the frequency conversion operation is obtained during the next frequency conversion.
6. The storage device of claim 5, wherein the set of instructions is further configured to perform:
the trigger interrupt is a line number of data output to the screen.
7. The storage device of claim 5, wherein the set of instructions is further configured to perform: the step 2 further comprises the steps of:
and if the operation time reserved for frequency conversion is not enough, not carrying out frequency conversion, prolonging the operation time reserved for frequency conversion, and waiting for next frequency conversion.
8. The storage device of claim 6, wherein the set of instructions is further configured to perform:
the operation time reserved for shortening the frequency conversion is as follows: increasing the line number of the sending interrupt;
the operation time reserved for frequency conversion is prolonged as follows: the line number of the outgoing interrupt is reduced.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910484400.7A CN110362151B (en) | 2019-06-05 | 2019-06-05 | Image inter-frame frequency conversion method capable of self-adaptive adjustment and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910484400.7A CN110362151B (en) | 2019-06-05 | 2019-06-05 | Image inter-frame frequency conversion method capable of self-adaptive adjustment and storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110362151A CN110362151A (en) | 2019-10-22 |
CN110362151B true CN110362151B (en) | 2020-11-06 |
Family
ID=68215746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910484400.7A Active CN110362151B (en) | 2019-06-05 | 2019-06-05 | Image inter-frame frequency conversion method capable of self-adaptive adjustment and storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110362151B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112181877B (en) * | 2020-10-28 | 2022-06-21 | 瑞芯微电子股份有限公司 | Display frequency conversion method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103761152A (en) * | 2013-12-31 | 2014-04-30 | 福州瑞芯微电子有限公司 | Method for preventing display anomaly during DDR (double data rate) frequency conversion |
CN104850516A (en) * | 2015-05-25 | 2015-08-19 | 福州瑞芯微电子有限公司 | DDR frequency conversion design method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200522721A (en) * | 2003-08-28 | 2005-07-01 | Samsung Electronics Co Ltd | Signal processing device and method, and display device including singal processing device |
-
2019
- 2019-06-05 CN CN201910484400.7A patent/CN110362151B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103761152A (en) * | 2013-12-31 | 2014-04-30 | 福州瑞芯微电子有限公司 | Method for preventing display anomaly during DDR (double data rate) frequency conversion |
CN104850516A (en) * | 2015-05-25 | 2015-08-19 | 福州瑞芯微电子有限公司 | DDR frequency conversion design method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110362151A (en) | 2019-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6372215B2 (en) | Wireless transmission device, wireless reception device, wireless transmission program, wireless reception program, and wireless communication system | |
US8897191B2 (en) | Updating method and apparatus of sleep mode operation | |
US11246168B2 (en) | Method for random access and terminal device | |
US10728855B2 (en) | System coordinated WLAN scanning | |
CN109495875B (en) | SIM card selection method and device, electronic equipment and storage medium | |
CN110362151B (en) | Image inter-frame frequency conversion method capable of self-adaptive adjustment and storage device | |
JP5798340B2 (en) | Base station and control method thereof | |
US8855693B2 (en) | Method and apparatus for controlling wireless devices | |
CN111314966A (en) | Wireless data transmission method and device, storage medium, AP and STA | |
CN109068359B (en) | Network switching method, device, terminal equipment and storage medium | |
CN111343703B (en) | Transmission power control method, device, mobile terminal and storage medium | |
CN111343729B (en) | Wireless data transmission method and device, storage medium and station | |
CN114125739A (en) | Network switching method and device, electronic equipment and storage medium | |
US9204206B2 (en) | Method and apparatus for transmitting signaling | |
EP1739995A1 (en) | Centralised WLAN scanning system | |
US20230283319A1 (en) | Method and system for controlling ranging period of multi-ranging session of uwb communication | |
CN109561194B (en) | POS machine dialing method and device | |
CN114928868B (en) | Communication method, device, terminal and network equipment | |
CN112616167B (en) | Switching method and device | |
CN101313531B (en) | System, apparatus and method for speak-right determination | |
CN117528687A (en) | Network roaming method and device, electronic equipment and readable storage medium | |
CN114556872A (en) | Wireless communication method, wireless communication apparatus, electronic device, and storage medium | |
KR20240016413A (en) | Method, device, terminal and medium for generating handover success report (SHR) | |
JP5840369B2 (en) | Base station and control method thereof | |
US20110090919A1 (en) | Access device and method for initiating v5.2 interface connection thereof |
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 | ||
CB02 | Change of applicant information |
Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China Applicant after: Ruixin Microelectronics Co., Ltd Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China Applicant before: Fuzhou Rockchips Electronics Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |