Electronic device and video recording control method, device and storage medium thereof
By dynamically adjusting the processor frequency in the mobile terminal according to the recording scene, the problems of high power consumption of the entire machine and poor camera effect caused by the high power consumption of the image preprocessing chip are solved, and the balance between camera performance and power consumption is achieved.
Patent Information
- Application Number
- CN202011475970.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-14
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2040-12-14
AI Technical Summary
In image signal processing, existing mobile terminals have high power consumption in the whole machine due to the large processor power consumption in the image preprocessing chip, and reducing power consumption by reducing resolution and frame rate will affect the camera effect.
The processor frequency in the application processing chip and the image signal processing chip is set based on the current recording scene, and the frequency of at least one processor is adjusted using a first scheduling strategy to balance camera performance and power consumption.
It realizes the reduction of the overall power consumption while ensuring the camera effect, avoiding the camera performance degradation caused by reducing resolution and frame rate.
Smart Images

Figure CN114625526B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an electronic device and a video recording control method, device and storage medium thereof. Background Art
[0002] At present, mobile terminals include a main chip with image signal processing and an image pre-processing chip located in front of the main chip. The image signal is processed accordingly by the main chip and the image pre-processing chip. However, since the image pre-processing chip includes processors such as a central processing unit and a network processor and each processor has a large power consumption, especially the network processor has a very large power consumption, the power consumption of the entire machine is very large.
[0003] In the related technology, power consumption is reduced by using a small model network processor; or, the resolution and frame rate of the camera sensor are reduced to reduce the computing power of each processor in the image pre-processing chip to achieve the purpose of reducing power consumption, but these methods will affect the camera effect. Summary of the invention
[0004] Based on this, it is necessary to provide an electronic device and its video recording control method, device and storage medium that can both ensure the camera effect and reduce the power consumption of the whole device in order to solve the above technical problems.
[0005] A video recording control method for an electronic device, the electronic device comprising an application processing chip and an image signal processing chip, the method comprising:
[0006] Based on the current video recording scene, setting the frequency of each processor in the application processing chip and the image signal processing chip; and
[0007] The first scheduling strategy is adopted to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip.
[0008] A computer-readable storage medium stores a video recording control program of an electronic device. When the video recording control program of the electronic device is executed by a processor, the video recording control method of the electronic device is implemented.
[0009] An electronic device comprises a memory, a processor and a video recording control program of the electronic device which is stored in the memory and can be run on the processor. When the processor executes the video recording control program, the video recording control method of the electronic device is implemented.
[0010] A video recording control device for an electronic device, comprising:
[0011] A setting module, used to set the frequency of each processor in the application processing chip and the image signal processing chip based on the current recording scene; and
[0012] The adjustment module is used to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip by adopting a first scheduling strategy.
[0013] The above-mentioned electronic device and its recording control method, device and storage medium set the frequency of each processor in the application processing chip and the image signal processing chip based on the current recording scene, and adopt the first scheduling strategy to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip, thereby ensuring the recording effect and reducing the power consumption of the whole machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A diagram showing an application environment of a video recording control method for an electronic device in one embodiment;
[0015] Figure 2 is a flow chart of a method for controlling video recording of an electronic device in one embodiment;
[0016] Figure 3 is a flow chart of a method for controlling video recording of an electronic device in another embodiment;
[0017] Figure 4 is a flowchart of a method for controlling video recording of an electronic device in yet another embodiment;
[0018] Figure 5 A schematic diagram of the software architecture of a video recording control method of an electronic device in one embodiment;
[0019] Figure 6 is a schematic diagram of the software architecture of a video recording control method of an electronic device in another embodiment;
[0020] Figure 7 A diagram showing the relationship between energy consumption and capability of a central processing unit in one embodiment;
[0021] Figure 8 A capability curve diagram of a central processing unit before optimization in one embodiment;
[0022] Fig. 9 A capability curve diagram of a central processing unit before optimization in one embodiment;
[0023] Fig.10 FIG. 4 is a structural block diagram of a video recording control device of an electronic device in an embodiment. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0025] The video recording control method of the electronic device provided in the present application can be applied to Figure 1 In the electronic device shown. The electronic device includes an image signal processing chip and an application processing chip. Among them, the application processing chip is mainly used to process traditional image processing algorithms, such as bad pixel correction, time domain noise reduction, 3D noise reduction, white balance, automatic exposure, etc., and may specifically include an image signal processing (Image Signal Processing, ISP) module, a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a digital signal processor (Digital Signal Processing, DSP) and a double data rate synchronous dynamic random access memory (Double Data Rate, DDR), etc. The image signal processing module may include an image front end processor (Image Front End, IFE), an image processor (Image Processing Engine, IPE) and a Bayer processor (Bayer Processing Segment, BPS), etc.
[0026] Image signal processing chips are mainly used for differentiation algorithms, such as backlit photography in the RAW (unprocessed image) domain, high dynamic range (HDR) photography, preview, and video effect enhancement, etc. Specifically, they may include a pre-image signal processing (Pre Image Signal Processing, PreISP) module, a central processing unit, a double-rate synchronous dynamic random access memory, and a mobile industry processor interface (Mobile Industry Processor Interface, MIPI), etc. The pre-image signal processing module may include a front-end processor (Front End, FE), a network processor (Neural-network Processing Unit, NPU), and a back-end processor (Back End, BE), etc. Electronic devices may be mobile phones, tablet computers, smart cameras, and other devices with photo or video functions.
[0027] In one embodiment, Figure 2 As shown, a video recording control method of an electronic device is provided, and the method is applied to Figure 1 The electronic device shown in the figure is used as an example for explanation, and the following steps are included:
[0028] Step 202: Based on the current video recording scene, the frequency of each processor in the application processing chip and the image signal processing chip is set.
[0029] For example, usually electronic devices (such as mobile phones) are equipped with camera applications. When users use electronic devices to take photos or videos, they open the camera application and make relevant settings through the application settings interface of the camera application, such as setting the recording scene, whether to use time-lapse photography, whether to add filters, etc. The recording scenes include but are not limited to super night scene mode, polar night mode, portrait mode and general mode. After the user completes the settings through the camera application, the camera middleware obtains the recording scene.
[0030] In this application, different recording scenes, the processors in the application processing chip and the image signal processing chip correspond to different frequencies, and these frequencies are the frequencies corresponding to the balance between camera performance (effect) and power consumption, which can meet both camera performance requirements and power consumption requirements. In actual applications, the frequencies of the processors in the application processing chip and the image signal processing chip when the camera performance and power consumption reach the best balance point in different recording modes can be obtained in advance through calculation and testing, and then the frequencies of the processors in each recording scene and the corresponding application processing chip and image signal processing chip are stored in the camera middleware.
[0031] In one embodiment, the above-mentioned recording control method of the electronic device also includes: pre-determining the frequency of at least one processor in the application processing chip and the image signal processing chip according to the load of the recording scene; and querying the frequency of each processor in the corresponding application processing chip and the image signal processing chip according to the current recording scene.
[0032] In this application, the load of the recording scene refers to the resolution and frame rate output by the camera sensor, and different recording scenes correspond to different resolutions and frame rates. In practical applications, the resolution and frame rate output by the camera sensor corresponding to different recording scenes can be obtained first, and based on the resolution and frame rate output by the camera sensor, the frequencies of each processor in the application processing chip and the image signal processing chip when the camera performance and power consumption reach the best balance point under different recording scenes can be obtained through calculation and testing, and then the frequencies of each processor in each recording scene and the corresponding application processing chip and image signal processing chip are stored in the camera middleware.
[0033] After the camera middleware obtains the current recording scene, it can search and obtain the frequencies of each processor in the application processing chip and the image signal processing chip corresponding to the current recording scene, and set the frequencies of each processor in the application processing chip and the image signal processing chip according to the frequencies obtained by searching. For example, according to the frequencies obtained by searching, the frequencies of related processors in the image signal processing chip, such as the central processing unit, the network processor, and the double-rate synchronous dynamic random access memory, and the frequencies of related processors in the application processing chip, such as the central processing unit, the graphics processor, and the digital signal processor, are set through the nodes provided by the kernel, so that the frequencies of each processor in the image signal processing chip and the application processing chip match the current recording scene, so that both the camera performance requirements and the power consumption requirements can be met.
[0034] Step 204: Use a first scheduling strategy to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip.
[0035] In the present application, the first scheduling strategy is also called the lazy scheduling strategy, which specifically refers to the adjustment sensitivity of the frequency of each processor in the application processing chip and the image signal processing chip, which is reflected in the adjustment parameter as the frequency adjustment step. The adjustment step corresponding to the first scheduling strategy is a smaller value.
[0036] After the camera middleware completes the frequency setting of each processor in the application processing chip and the image signal processing chip based on the current recording scene, the first scheduling strategy is also used to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip. For example, each recording scene adopts the same first scheduling strategy, that is, the same adjustment step; or different recording scenes adopt different first scheduling strategies, that is, different adjustment step, wherein the higher the load of the recording scene, the larger the adjustment step, and the lower the load of the recording scene, the smaller the adjustment step.
[0037] In one embodiment, the frequency adjustment interval of at least one processor is [Freq*(1-10%), Freq*(1+10%)], where Freq is the processor frequency, which is obtained based on the current recording scene. It is understandable that since the recording scene has a relatively stable demand for camera performance, the minimum frequency of each of the above processors can be set to Freq*(1-10%) and the maximum frequency to Freq*(1+10%).
[0038] In the above embodiment, by setting the frequencies of each processor in the application processing chip and the image signal processing chip based on the current recording scene, and using the first scheduling strategy to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip, both the camera performance requirements and the power consumption requirements can be met, and the problem of camera performance being affected by reducing power consumption by using a small model image processor, or by reducing the resolution and frame rate of the camera sensor to reduce the calculation amount of each processor in the image signal processing chip to achieve the purpose of reducing power consumption is effectively solved. At the same time, setting different frequencies for different recording scenes and adjusting them using the first scheduling strategy can effectively avoid the problem of high power consumption or camera performance being affected due to the use of the same frequency for all recording scenes.
[0039] In one embodiment, reference Figure 3 As shown, the video recording control method of the electronic device also includes:
[0040] Step S302, determining whether a dynamic effect is superimposed on the current recording scene.
[0041] After the user selects a recording scene through the camera application, the user can also add corresponding dynamic effects to the recording scene through the camera application, where the dynamic effects include but are not limited to HDR effect, beauty processing effect, background blur processing effect, colorful effect, anti-shake effect and super image quality effect. After the user completes adding the recording scene and the corresponding dynamic effects through the camera application, the camera middleware will obtain the recording scene and the dynamic effects that need to be superimposed.
[0042] Step S304: If it is determined to superimpose a dynamic effect, the superimposed frequency is obtained according to the dynamic effect, and the superimposed frequency is increased to the set frequency of each processor in the application processing chip and the image signal processing chip, and the superimposed frequency of at least one processor in the application processing chip and the image signal processing chip is adjusted using a second scheduling strategy.
[0043] In this application, the second scheduling strategy is also called the sensitive scheduling strategy, which specifically refers to the adjustment sensitivity of the frequency of each processor in the application processing chip and the image signal processing chip, which is reflected in the adjustment parameter as the adjustment step of the frequency, and the adjustment step corresponding to the second scheduling strategy is a larger value. Among them, the adjustment sensitivity of the first scheduling strategy to the processor frequency is less than the adjustment sensitivity of the second scheduling strategy to the processor frequency.
[0044] Different recording scenes correspond to different dynamic effects, and different dynamic effects correspond to different superimposition frequencies, which can be obtained through calculation and testing. For example, the superimposition frequencies corresponding to the HDR effect, anti-shake effect, and super-quality effect in the super night scene mode can be obtained in advance through calculation and testing, and the superimposition frequencies corresponding to the anti-shake effect and super-quality effect in the polar night mode can be obtained through calculation and testing, and so on, until the superimposition frequencies corresponding to each dynamic effect in all recording scenes are obtained. Then, the recording scene, the dynamic effect corresponding to each recording scene, and the superimposition frequency corresponding to each dynamic effect are stored in the camera middleware.
[0045] After the camera middleware obtains the current recording scene and the dynamic effects that need to be superimposed, the frequencies of the relevant processors in the application processing chip and the image signal processing chip can be set according to the frequencies corresponding to the recording scene, and the frequencies of the relevant processors in the application processing chip and the image signal processing chip can be adjusted using the first scheduling strategy. Then, the corresponding superimposed frequency is obtained according to the dynamic effects that need to be superimposed, and the superimposed frequency is superimposed on the frequencies of the relevant processors in the application processing chip and the image signal processing chip, respectively, and the frequencies of the relevant processors in the application processing chip and the image signal processing chip are adjusted using the second scheduling strategy.
[0046] As a specific example, the recording scene, dynamic effect and corresponding scheduling strategy can be referred to as shown in Table 1:
[0047] Table 1
[0048]
[0049]
[0050] It should be noted that, for the preview scenario, since its frequency is floating, the frequency and scheduling strategy of each processor in the relevant preview scenario are consistent with the general mode.
[0051] In the above embodiment, the frequencies of the processors in the application processing chip and the image signal processing chip are set based on the current recording scene, and the frequency of at least one processor in the application processing chip and the image signal processing chip is adjusted by using the first scheduling strategy. At the same time, the superimposed frequency is obtained according to the dynamic effect to be superimposed, and the superimposed frequency is superimposed on the set frequencies of the processors in the application processing chip and the image signal processing chip, and the superimposed frequency of at least one processor in the application processing chip and the image signal processing chip is adjusted by using the second scheduling strategy, so as to meet the different requirements of the recording scene and the dynamic effects to be superimposed, and effectively solve the problem that it is difficult to evaluate the preset scene frequency required for each scene with a static scene because there are multiple dynamic effects and some dynamic effects have variable levels. The frequency setting can meet both the camera performance requirements and the power consumption requirements.
[0052] As a specific example, see Figure 4 As shown, the video recording control method of the electronic device includes:
[0053] Step S402, determining the recording scene.
[0054] After the user sets the video recording scene and dynamic effects through the camera application, the camera application initiates a switching operation of the video recording scene and dynamic effects.
[0055] Step S404: setting the frequency of the relevant processors in the application processing chip and the image signal processing chip to A, and adjusting the frequency A of the relevant processors by using the first scheduling strategy.
[0056] The camera middleware stores the frequency corresponding to the recording scene, the superimposed frequency corresponding to the dynamic effect, and the scheduling strategy information. When obtaining the recording scene, the camera middleware can search and obtain the frequency according to the recording scene, and set the frequency of the relevant processors in the application processing chip and the image signal processing chip through the node provided by the kernel according to the frequency. Assuming the frequency is A, the first scheduling strategy is used to adjust the frequency A of the relevant processor through the node provided by the kernel.
[0057] Step S406, determine whether a dynamic effect is set. If yes, execute step S410; otherwise, execute step S408.
[0058] After the user sets the dynamic effect, the camera middleware will determine that the dynamic effect needs to be superimposed, and step S410 will be executed at this time; when the user does not set the dynamic effect, the camera middleware will determine that the dynamic effect does not need to be superimposed, and step S408 will be executed at this time.
[0059] Step S408, recording scene usage.
[0060] Step S410: setting the frequencies of the relevant processors in the application processing chip and the image signal processing chip to A_dynamic, and adjusting the frequencies A_dynamic of the relevant processors by using the second scheduling strategy.
[0061] After the camera middleware determines that a dynamic effect needs to be superimposed, it searches for the superimposed frequency based on the dynamic effect, and superimposes the superimposed frequency on the relevant processor frequency through the node provided by the kernel, and the final processor frequency is A_dynamic. Then, the processor related to the dynamic effect is set to the second scheduling strategy, that is, the relevant processor frequency A_dynamic is adjusted through the node provided by the kernel using the second scheduling strategy.
[0062] Step S412, determine whether all dynamic effects are turned off. If yes, return to step S404; otherwise, return to step S410.
[0063] In short, reference Figure 5 As shown, the recording control method of the electronic device may include: after receiving the recording scene and dynamic effect set by the user, the camera application initiates the switching operation of the recording scene and the dynamic effect. The camera middleware stores the frequency information corresponding to the recording scene and the dynamic effect, and the scheduling strategy information. The camera middleware searches for the corresponding frequency according to the recording scene and the dynamic effect, and sets the corresponding frequency and adjustment strategy through the node provided by the kernel, wherein the kernel provides the node for setting the corresponding frequency and the scheduling strategy, for example, the kernel provides the node for the frequency and scheduling strategy of the central processing unit in the application processing chip, the node for the frequency and scheduling strategy of the graphics processing unit in the application processing chip, etc.
[0064] Specifically, refer to Figure 6 As shown, the recording control method of the electronic device may include: after receiving the recording scene and dynamic effect set by the user, the camera application initiates the switching operation of the recording scene and dynamic effect. After receiving the switching operation of the recording scene and dynamic effect, the camera server in the software layer passes it to the power consumption management layer of the hardware abstraction layer of the image signal processing chip in the camera hardware abstraction layer. The power consumption management layer stores the frequency and scheduling strategy information corresponding to the recording scene and dynamic effect. At the same time, the temperature sensor in the kernel driver provides the temperature information of the image signal processing chip and the whole machine to the power consumption management layer.
[0065] The hardware abstraction layer of the image signal processing chip searches for corresponding frequencies according to the recording scene and dynamic effects, including the frequencies corresponding to the recording scene and the superimposed frequencies corresponding to the dynamic effects, and passes the frequencies related to the image signal processing chip to the driver of the image signal processing chip. The driver of the image signal processing chip sets the relevant processors according to the received frequencies, such as setting the double-rate synchronous dynamic random access memory of the image signal processing chip and the central processing unit of the image signal processing chip. At the same time, the frequencies related to the application processing chip are passed to the server of the image signal processing chip. The server of the image signal processing chip passes the relevant frequencies to the power consumption management server, which notifies the power consumption hardware abstraction layer and sets the central processing unit and graphics processor of the application processing chip through the power consumption hardware abstraction layer.
[0066] In the above embodiment, based on the performance requirements of the recording scene and dynamic effects, the frequencies of the relevant processors in the application processing chip and the image signal processing chip are set, and the frequency is the best balance between camera performance and power consumption. In view of the inconsistent stability of the camera performance requirements for the recording scene and dynamic effects, the first and second scheduling strategies are set respectively, so as to reduce power consumption while ensuring the performance requirements of each recording scene.
[0067] In order to verify the validity of this application, refer to Figure 7-Figure 9 In this example, refer to Figure 7 As shown in the figure, the CPU adopts a three-cluster architecture consisting of small cores, large cores and super-large cores, including four small cores, three large cores and one super-large core. Among them, straight line 1 indicates that the large core can provide more performance than the super-large core under the same power consumption, and straight line 2 indicates that the small core can provide more performance than the large core under the same power consumption. This is also the reason for setting the first scheduling strategy in the video recording mode. Because if the small core switches to the large core due to some task conflicts, it will cause the CPU task migration consumption, and it will cause the task to run on the large core with worse energy efficiency, such as Figure 8 After adopting the solution provided by the present application, even if some task conflicts occur, task migration will not occur. Although the tasks of the small core will be heavier, the overall power consumption will be reduced, so that the energy efficiency is optimized, thereby ensuring the camera effect and reducing the power consumption of the whole machine.
[0068] It should be understood that although Figure 2-6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-6At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0069] In one embodiment, a computer-readable storage medium is provided, on which a video recording control program of an electronic device is stored. When the video recording control program of the electronic device is executed by a processor, the video recording control method of the electronic device is implemented.
[0070] In one embodiment, an electronic device is provided, including a memory, a processor, and a video recording control program of the electronic device stored in the memory and executable on the processor. When the processor executes the video recording control program, the video recording control method of the electronic device is implemented.
[0071] In one embodiment, reference Fig.10 As shown, a video recording control device for an electronic device is provided, comprising: a setting module 10 and an adjustment module 20.
[0072] Among them, the setting module 10 is used to set the frequency of each processor in the application processing chip and the image signal processing chip based on the current recording scene; the adjustment module 20 is used to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip using a first scheduling strategy.
[0073] In one embodiment, the setting module 10 is also used to: predetermine the frequency of at least one processor in the application processing chip and the image signal processing chip according to the load of the recording scene; and query the frequency of each processor in the corresponding application processing chip and the image signal processing chip according to the current recording scene.
[0074] In one embodiment, the adjustment module 20 is also used to: determine whether the current recording scene is superimposed with dynamic effects; if it is determined that the dynamic effects are superimposed, obtain the superimposed frequency according to the dynamic effects, and increase the superimposed frequency to the set frequency of each processor in the application processing chip and the image signal processing chip, and use the second scheduling strategy to adjust the superimposed frequency of at least one processor in the application processing chip and the image signal processing chip.
[0075] In one embodiment, the processor in the image signal processing chip includes: a central processing unit CPU, a network processor NPU and a double data rate synchronous dynamic random access memory DDR.
[0076] In one embodiment, the processor in the application processing chip includes: a central processing unit CPU, a graphics processing unit GPU and a digital signal processor DSP.
[0077] In one embodiment, the video recording scenes include super night scene mode, polar night mode, portrait mode and general mode.
[0078] In one embodiment, the dynamic effects include HDR effect, beauty processing effect, background blur processing effect, colorful effect, anti-shake effect and super image quality effect.
[0079] In one embodiment, the first scheduling policy has a lower adjustment sensitivity to the processor frequency than the second scheduling policy has to the processor frequency.
[0080] In one embodiment, the adjustment interval of the frequency of at least one processor is [Freq*(1-10%), Freq*(1+10%)], where Freq is the frequency of at least one processor.
[0081] The specific definition of the video recording control device of the electronic device can be found in the definition of the video recording control method of the electronic device above, which will not be repeated here. Each module in the video recording control device of the electronic device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0082] The above-mentioned electronic device and its recording control method, device and storage medium set the frequency of each processor in the application processing chip and the image signal processing chip based on the current recording scene, and adopt the first scheduling strategy to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip, thereby ensuring the recording effect and reducing the power consumption of the whole machine.
[0083] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0084] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0085] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for controlling video recording of an electronic device, wherein the electronic device comprises an application processing chip and an image signal processing chip, wherein the method include: Based on the current video recording scene, setting the frequency of each processor in the application processing chip and the image signal processing chip; Using a first scheduling strategy to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip; If it is determined that the current recording scene is superimposed with a dynamic effect, the superimposed frequency is obtained according to the dynamic effect, and the superimposed frequency is increased to the set frequency of each processor in the application processing chip and the image signal processing chip, and the second scheduling strategy is used to adjust the superimposed frequency of at least one processor in the application processing chip and the image signal processing chip, and the adjustment step size of the processor frequency by the first scheduling strategy is smaller than the adjustment step size of the processor frequency by the second scheduling strategy.
2. The method according to claim 1, It is characterized in that The method further comprises: predetermining the frequency of at least one processor in the application processing chip and the image signal processing chip according to the load of the recording scene; and The frequencies of the processors in the corresponding application processing chip and the image signal processing chip are queried according to the current video recording scene.
3. The method according to claim 1, It is characterized in that Also includes: Determine whether the current video recording scene is superimposed with a dynamic effect.
4. The method according to claim 1 or 2, It is characterized in that The processors in the image signal processing chip include: a central processing unit CPU, a network processor NPU and a double rate synchronous dynamic random access memory DDR.
5. The method according to claim 1 or 2, It is characterized in that The processors in the application processing chip include: a central processing unit CPU, a graphics processing unit GPU and a digital signal processor DSP.
6. The method according to claim 1 or 2, It is characterized in that The video recording scenes include super night scene mode, polar night mode, portrait mode and general mode.
7. The method according to claim 3, It is characterized in that The dynamic effects include HDR effect, beauty processing effect, background blur processing effect, colorful effect, anti-shake effect and super picture quality effect.
8. The method according to claim 1, It is characterized in that The adjustment interval of the frequency of the at least one processor is [Freq*(1-10%), Freq*(1+10%)], where Freq is the frequency of the at least one processor.
9. A computer-readable storage medium, It is characterized in that A video recording control program of an electronic device is stored thereon, and when the video recording control program of the electronic device is executed by a processor, a video recording control method of an electronic device as claimed in any one of claims 1 to 8 is implemented.
10. An electronic device, It is characterized in that The invention comprises a memory, a processor and a video recording control program of an electronic device which is stored in the memory and can be run on the processor. When the processor executes the video recording control program, the video recording control method of the electronic device according to any one of claims 1 to 8 is implemented.
11. A video recording control device for an electronic device, It is characterized in that include: A setting module, used to set the frequency of each processor in the application processing chip and the image signal processing chip based on the current recording scene; as well as An adjustment module is used to use a first scheduling strategy to adjust the frequency of at least one processor in the application processing chip and the image signal processing chip; if it is determined that the current recording scene is superimposed with a dynamic effect, obtain the superimposed frequency according to the dynamic effect, and increase the superimposed frequency to the set frequency of each processor in the application processing chip and the image signal processing chip, and use a second scheduling strategy to adjust the superimposed frequency of at least one processor in the application processing chip and the image signal processing chip, and the first scheduling strategy The adjustment step length of the processor frequency is smaller than the adjustment step length of the processor frequency by the second scheduling strategy.
Citation Information
Patent Citations
Processor frequency control method and electronic equipment
CN104346226A
Terminal control method, device, terminal device, and storage medium
CN109151966A