The disclosure generally relates to video playing technologies, and particularly to a video playing system and method for an electronic apparatus.
Many electronic apparatus, such as cellular phones, consume a lot of electrical power while playing video. A battery level indicator is used to represent a remaining electrical power of the electronic apparatus. The battery level value of the electronic apparatus may decrease quickly when the electronic apparatus is playing video. However, a performance of video playing is somehow comprised when the electronic apparatus is run at a low battery level condition.
Therefore, it is desirable to provide a means which can overcome the above-mentioned problems.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts have been exaggerated to better illustrate details and features of the present disclosure.
Reference will be made to the drawings to describe various embodiments.
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable median include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The video playing system 10 can be a subsystem of the operating system. The video playing system 10 also can be a system independent from the operating system, stored in the storage device 16 or embedded in a firmware. The electronic device 1 may be, but is not limited to, a smart phone, a tablet computer, a notebook, an electronic book, or a portable game machine.
The video playing system 10 includes a video playing module 100, a setup module 102, a battery detecting module 103, a backlight adjusting module 104, a program managing module 105, a video splitting module 106, a video analyzing module 107, and a comparing module 108. These modules 100-107 of the video playing system 10 are directly or indirectly connected with each other to exchange data or control signals.
The setup module 102 is used to preset a number of working values of the video playing system 10. The working value may be, but is not limited to, a predetermined time interval to detect a battery level value of the electronic apparatus, a predetermined threshold battery level value, a predetermined time duration of a video segment, and a number of predetermined correspondences between the battery level value of the electronic apparatus 1 and the backlight brightness of the display 12. In this embodiment, the predetermined correspondences between the battery level value of the electronic apparatus 1 and the backlight brightness of the display 12 may be, but is not limited to, the backlight brightness of the display 12 is eighty percent of a maximum backlight brightness of the display 12 when the battery level value of the electronic apparatus 1 is more than about sixty percent of the maximum battery level value of the electronic apparatus 1 and not more than about eighty percent of the maximum battery level value of the electronic apparatus 1, the backlight brightness of the display 12 is sixty percent of the maximum backlight brightness of the display 12 when the battery level value of the electronic apparatus 1 is more than about fifty percent of the maximum backlight brightness of the display 12 and not more than about sixty percent of the maximum backlight brightness of the display 12, and the backlight brightness of the display 12 is fifty percent of the maximum backlight brightness of the display 12 when the battery level value of the electronic apparatus 1 is not more than fifty percent of the maximum backlight brightness of the display 12.
The video playing module 100 plays the video stored in the storage device 16.
The battery detecting module 103 reads the battery level value of the electronic apparatus 1 from the battery 14 in the predetermined time interval. The battery detecting module 103 transmits the battery level value of the electronic apparatus 1 to the backlight adjusting module 10. The battery detecting module 103 correspondingly transmits a low power signal the program managing module 105 and the video splitting module 106 when the battery level value of the electronic apparatus 1 is less than the predetermined threshold battery level value. In this embodiment, the predetermined threshold battery level value is fifty percent of a maximum battery level value of the electronic apparatus 1.
The program managing module 105 reminds a user to shut down a number of background programs irrelevant to playing the video when the program managing module 105 receives the low power signal from the battery detecting module 103. In detail, the program managing module 105 displays a pop-up window to show a list of the background programs irrelevant to playing the video. The user can select to shut down the background programs on the list.
The backlight adjusting module 104 adjusts a backlight brightness of the display 12 according to the battery level value of the electronic apparatus 1 and the predetermined correspondences between the battery level value of the electronic apparatus 1 and the backlight brightness of the display 12.
The video splitting module 106 splits the part of the video that has not been played into a number of video segments when it receives the low power signal from the battery detecting module 103. Each of the video segments has the same predetermined time duration. For example, if a frame rate of the video is twenty-four frames per second, the predetermined time duration can be set as one twenty-fourth second.
The video analyzing module 107 executes an image analysis to each of the video segments to acquire image backgrounds and facial features of the video segments. The video analyzing module 107 employs a number of graphics algorithms to statistically analyze colors and gray scales of a number of pixels constituting the images of each video segment in order to acquire the image background and facial features of the video segments. The graphic algorithms may be, but are not limited to, an edge filtering algorithm, a Hough transform algorithm, and a face recognition algorithm.
The comparing module 108 compares the image backgrounds and facial features of each two adjacent video segments from a first video segment to a last video segment of the rest of the video that has not been played. The comparing module 108 assigns a skip tag to a latter video segment of the two adjacent video segments when the image backgrounds and facial features of these two adjacent video segments are the same as each other. The video playing module 100 skips the video segments with the skip tag when plays the rest part of the video that has not been played.
Referring to
At block 01, a number of working values of the video playing system 10 are preset via the setup module 102. The working value may be, but is not limited to, a predetermined time interval to detect the battery level value of the electronic apparatus, a predetermined threshold battery level value, a predetermined time duration of a video segment, and a number of predetermined correspondences between the battery level value of the electronic apparatus 1 and the backlight brightness of the display 12.
In this embodiment, the predetermined correspondence between the battery level value of the electronic apparatus 1 and the backlight brightness of the display 12 may be, but are not limited to, the backlight brightness of the display 12 is eighty percent of a maximum backlight brightness of the display 12 when the battery level value of the electronic apparatus 1 is more than about sixty percent of the maximum battery level value of the electronic apparatus 1 and not more than about eighty percent of the maximum battery level value of the electronic apparatus 1, the backlight brightness of the display 12 is sixty percent of the maximum backlight brightness of the display 12 when the battery level value of the electronic apparatus 1 is more than about fifty percent of the maximum backlight brightness of the display 12 and not more than about sixty percent of the maximum backlight brightness of the display 12, and the backlight brightness of the display 12 is fifty percent of the maximum backlight brightness of the display 12 when the battery level value of the electronic apparatus 1 is not more than fifty percent of the maximum backlight brightness of the display 12.
At block 02, the battery detecting module 103 reads the battery level value of the electronic apparatus 1 from the battery 14 in the predetermined time interval. The battery detecting module 103 transmits the battery level value of the electronic apparatus 1 to the backlight adjusting module 10.
At block 03, the backlight adjusting module 104 adjusts a backlight brightness of the display 12 according to the battery level value of the electronic apparatus 1 and the predetermined correspondences between the battery level value of the electronic apparatus 1 and the backlight brightness of the display 12.
At block 04, the battery detecting module 103 correspondingly transmits a low power signal to the program managing module 105 and the video splitting module 106 when the battery level value of the electronic apparatus 1 is less than the predetermined threshold battery level value.
At block 05, the program managing module 105 reminds the user to shut down the background programs irrelevant to playing the video when the program managing module 105 receives the low power signal from the battery detecting module 103.
In detail, a pop-up window is displayed to show a list of the background programs irrelevant to playing the video. The user can select to shut down the background programs on the list.
At block 06, the video splitting module 106 splits the part of the video that has not been played into a number of video segments when it receives the low power signal from the battery detecting module 103. Each of the video segments has the same predetermined time duration. For example, if a frame rate of the video is twenty-four frames per second, the predetermined time duration can be set as one twenty-fourth second.
At block 07, the video analyzing module 107 analyzes each of the video segments to acquire image backgrounds and facial features of the video segments.
In detail, the video analyzing module 107 employs a number of graphics algorithms to statistically analyze colors and gray scales of a number of pixels constituting the images of each video segment in order to acquire the image background and facial features of the video segments. The graphic algorithms may be, but are not limited to, an edge filtering algorithm, a Hough transform algorithm, and a face recognition algorithm.
At block 08, the comparing module 108 compares the image backgrounds and facial features of each two adjacent video segments start from a first video segment of the rest of the video that has not been played. The comparing module 108 assigns a skip tag to a latter video segment of the two adjacent video segments when the image backgrounds and facial features of these two adjacent video segments are the same with each other.
At block 09, the video playing module 100 skips the video segments with the skip tag when plays the rest of the video that has not been played.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being preferred or exemplary embodiments of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201310540282.X | Nov 2013 | CN | national |