[0033] In the preferred embodiment 2, the status information includes the light intensity of the environment where the terminal is located.
[0034] In a preferred embodiment, the light intensity of the environment where the terminal is located is determined according to the acquired data; the frame rate of the video recording of the terminal is adjusted according to the light intensity of the environment where the terminal is located.
[0035] In this embodiment, a video frame rate adjustment device is also provided, and the device is used to implement the above method. What has been described in the above method will not be repeated here, and the names of the modules in the device should not be understood below. In order to limit this module, for example, the adjustment module is used to adjust the frame rate of the terminal recording according to the status information, which can also be expressed as "a method used to adjust the frame rate of the terminal recording according to the status information. Module", the functions of the modules described below can be implemented by the processor. figure 2 is a structural block diagram of a video recording frame rate adjustment device according to an embodiment of the present invention, such as figure 2 As shown, the apparatus includes: an acquisition module 22 , a determination module 24 and an adjustment module 26 .
[0036]Preferably, the acquisition module 22 is used to acquire data collected by sensors of the terminal; the determination module 24 is used to determine state information according to the data, wherein the state information is used to adjust the video recording frame rate of the terminal; the adjustment module 26 is used to The status information adjusts the frame rate of the terminal recording.
[0037] Preferably, the determining module 24 is used for determining the motion state of the terminal according to the data; the adjusting module 26 is used for adjusting the frame rate of the video recording of the terminal according to the motion state of the terminal.
[0038] Preferably, the adjustment module 26 is configured to adjust the frame rate of the terminal video recording according to the speed or acceleration of the terminal; when the terminal is in a relatively static state, set a lower video recording frame rate; when the terminal is in a relative motion state, Set a higher video frame rate.
[0039] image 3 is a preferred structural block diagram of the device for adjusting the frame rate of video recording according to the embodiment of the present invention, such as image 3 As shown, the adjustment module 26 further includes: a determination unit 32 and an adjustment unit 34 .
[0040] Preferably, the adjustment module 26 includes: a determination unit 32 for determining a range in which the speed or acceleration of the terminal falls, wherein the speed or acceleration of the terminal is divided into multiple ranges in advance, and a frame rate of video recording is set for each range ; The adjustment unit 34 is used to adjust the frame rate of the terminal video recording according to the frame rate of the video recording corresponding to the falling range.
[0041] Preferably, the determining module 24 is used to determine the light intensity of the environment where the terminal is located according to the acquired data; the adjusting module 26 is used to adjust the frame rate of the terminal video recording according to the light intensity of the environment where the terminal is located.
[0042] In the following, the dynamic adjustment of the frame rate in a video recording application scenario is used as an example for description in conjunction with a preferred embodiment.
[0043] In this preferred embodiment, in order to reduce the power consumption of a single functional sub-module of the mobile terminal device, the algorithm for dynamically adjusting the frame rate through the feature data collected by the sensor device and the strategy for automatically triggering the sensor device to collect feature data. In this preferred embodiment, a method of dynamically adjusting and reducing power consumption during video recording is proposed by using feature data collected by a sensor device, instead of dynamically adjusting the I-frame/B-frame/P-frame of an image to achieve frame reduction by using the characteristics of the image picture The main differences between the two methods are as follows: First, the power consumption required to use the sensor device is relatively low, and generally speaking, the mobile terminal device turns on the sensor function by default, and the image screen needs to use additional codecs Second, the CPU load of the processor in the method in this preferred embodiment is relatively low, and the dynamic adjustment of the image involves software codec algorithms, resulting in a significant increase in the CPU load, which directly affects the mobile The overall power consumption of the terminal device.
[0044] In this preferred embodiment, the algorithm for dynamically adjusting the frame rate is performed through the feature data collected by the sensor device. When the video recording function is used, the frame rate is dynamically adjusted through the feature data collected by the sensor device. When the mobile terminal device is in a relatively static state, the sensor The feature data collected by the device is in a relatively static range and a lower video frame rate is set; when the mobile terminal device is in a relative motion state, the feature data collected by the sensor device is in a relative motion range and a higher video frame rate is set Frame rate, by adopting an algorithm that dynamically adjusts the frame rate to reduce power consumption.
[0045] The following description will be given by taking a mobile terminal device as an example.
[0046] I. Build a subsystem that dynamically adjusts the frame rate
[0047] In order to cooperate with the construction of the subsystem that dynamically adjusts the frame rate, the hardware solution that can be adopted by the mobile terminal device is: the application processing chip can use Qualcomm's Snapdragon APQ8064 quad-core processor, the main frequency is 1.5GHz, with 2GB RAM+16GB ROM memory Combination, has a very smooth running speed; equipped with 13 million pixel high-definition camera, support LED fill light, can easily support 1080P video recording, etc.; equipped with light sensor, proximity sensor, acceleration sensor, orientation sensor and magnetic sensor and other rich sensor part. The software solution that can be adopted by the mobile terminal device is based on the software platform developed on the basic version of Android 4.1 (Jelly Bean) provided by Qualcomm. It should be noted that these configurations are only a preferred example, and are not limited thereto.
[0048] II. Dynamic adjustment frame rate algorithm
[0049] The algorithm that dynamically adjusts the frame rate through the feature data collected by the sensor device. When using the video recording function, the frame rate is dynamically adjusted by the characteristic data collected by the sensor device. When the mobile terminal device is in a relatively static state, the characteristic data collected by the sensor device is in a relatively static range and a lower video frame rate is set; When the mobile terminal device is in a relative motion state, the feature data collected by the sensor device is within the range of relative motion and a higher video frame rate is set. It is assumed that the feature data collected by the sensor device is divided into four levels: level 1 is set as a relatively static range, and the corresponding lowest frame rate of video recording is 24fps; level 2 is set as a range with relatively weak motion, which corresponds to The video frame rate is 30fps; the level 3 is set to the range of medium relative motion, and the corresponding video frame rate is 45fps; the level 4 is set to the range of strong relative motion, and the corresponding video frame rate is 60fps.
[0050] Figure 4 is the flow chart of video frame rate adjustment according to the preferred embodiment of the present invention, such as Figure 4 As shown in the figure, the process includes: when the mobile device terminal turns on the camera module, the default recording frame rate is adopted, and it is assumed that the recording frame rate of level 1 is set (that is, 24fps), and the current recording frame rate of the system is the default recording frame rate. , After collecting the motion feature data through the sensor device, use the frame rate level corresponding to the currently collected motion feature data level and the video frame rate set by the current system to perform a smooth frame rate adjustment algorithm to determine the frame rate to be set by the system. Increase or decrease the video frame rate of the system accordingly, and update the video frame rate configured by the system at the same time.
[0051] III. Feature data collection strategy for automatically triggering sensors
[0052] The recording module of the mobile terminal device is configured with a function menu for automatically triggering the sensor's characteristic data collection, allowing the user to choose to enable or disable the function of automatically triggering the sensor's characteristic data collection. Generally speaking, the default configuration of the mobile terminal device is to enable automatic trigger sensor feature data collection. In order to meet the needs of different users' usage scenarios, users can also choose to enable or disable the feature data collection function of automatically triggering the sensor. If the user turns on the feature data collection of the automatic trigger sensor, when the recording module is turned on, the feature data collection function of the sensor device is automatically triggered; when the recording mode is exited (or the camera mode is entered), the feature data collection function of the sensor device is automatically turned off; If the user turns off the automatic frame rate adjustment function, the sensor device will not be triggered to collect characteristic data.
[0053] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, and they can be centralized on a single computing device or distributed in a network composed of multiple computing devices Alternatively, they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or they can be integrated into The multiple modules or steps are fabricated into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.