Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Referring to FIG. 1, it illustrates the method streams of length measuring method when video head frame provided by one embodiment of the present invention
Cheng Tu.Length measuring method may include steps of when video head frame:
Step 101, video web-pages to be measured are opened, record was the first moment at the time of opening video web-pages.
Specifically, terminal calls CreateThread system function to create first frame duration by main thread measures thread, when
After long measurement thread operation, terminal measures thread by duration and opens video web-pages to be measured, and record opens video web-pages
Moment was the first moment, and according to the browser program path and measurement recorded in the browser program path variable for participating in test
Video web-pages page address be parameter call CreateProcess system function create browser process example.
Step 102, the corresponding video interception of video in video web-pages is obtained, the picture that color value is different in video interception is counted
The quantity of element.
Optionally, terminal obtains the corresponding video interception of video in video web-pages every scheduled duration, counts video interception
The quantity of the different pixel of middle color value.Wherein, scheduled duration can be 0.5s, 1s, 2s, tool of the present embodiment to scheduled duration
Body duration does not do any restriction.
It step 103, is the at the time of recording quantity greater than pre-set color threshold value if quantity is greater than preset color threshold
Two moment.
Due to video head frame broadcasting before, the picture that video region show in video web-pages be usually blank screen, extensively
Announcement, LOGO of video website etc., therefore preset color threshold can be the number of the different pixel of color value in blank screen picture
Amount, the different quantity of pixel of color value in advertisement picture, in the LOGO picture of video website the different pixel of color value number
Amount etc..If in the video web-pages that terminal is got in the corresponding video interception of video, the quantity of the different pixel of color value
Greater than preset color threshold, illustrate that the picture that current video region is shown is not blank screen, advertisement, video website
LOGO, but video head frame, when terminal record current time (at the time of i.e. quantity is greater than pre-set color threshold value) is second at this time
It carves.
Specifically, duration measurement thread first calls GetWindowDC system function to obtain browser window DC handle, then adjust
Memory DC handle is created with CreateCompatibleDC, then calls CreateCompatibleBitmap creation video place
The memory bitmap in region simultaneously records the memory bitmap handle, secondly calls BitBlt by video region in browser window
Bitmap data copies in the Installed System Memory that memory bitmap handle is indicated, and finally calls GetDIBits system function by video
Then the bitmap data of region traverses the bitmap of video region from being copied in application program memory in Installed System Memory
The color value of each pixel in data, and the quantity of the different pixel of statistical color value, if the different pixel of color value
Quantity is less than or equal to preset color threshold, illustrates that video head frame does not play, if the quantity of the different pixel of color value is greater than
Preset color threshold illustrates that video head frame is played.
Step 104, the second moment was subtracted into for the first moment, obtains the first frame duration of video in video web-pages.
In the video web-pages to be measured obtained due to the second moment for terminal in the corresponding video interception of video, color value
At the time of the quantity of different pixels is greater than preset color threshold, the first moment was that terminal opens video web-pages to be measured,
Therefore, the second moment was subtracted into for the first moment, user can be obtained since opening video web-pages, to watching in the video web-pages
First frame video terminates duration used, i.e., the first frame duration of video in the video web-pages.
In conclusion length measuring method when video head frame provided in an embodiment of the present invention, opens video web-pages by record
At the time of be the first moment, obtain video web-pages in the corresponding video interception of video, count video interception in color value it is different
The quantity of pixel, record quantity were the second moment at the time of being greater than pre-set color threshold value, and the second moment was subtracted for the first moment, is obtained
The first frame duration of video into video web-pages, due to the different pixel of color value in the video pictures before the broadcasting of video head frame
Negligible amounts can effectively determine video by determining whether the quantity of the different pixel of color value is greater than pre-set color threshold value
Whether first frame plays;Therefore the method lacked in the prior art to video head frame in measurement video web-pages is solved, it can not be intuitive
The problem of determining the Video service quality of the video web-pages;Reach through measurement video head frame duration come the intuitive judgment video
The effect of the Video service quality of webpage.
Referring to FIG. 2, it illustrates the methods of length measuring method when the video head frame of another embodiment of the present invention offer
Flow chart.Length measuring method may include steps of when video head frame:
Step 201, web page address, the preset color threshold, video of video web-pages are obtained from preset configuration file
The display area of video in webpage.
Before the broadcasting of video head frame, usually not due to video region is shown in different video websites picture
Together, some video websites are shown blank screen, the LOGO for the video website that some video websites are shown, therefore, different views
The corresponding preset color threshold in frequency website may be different.Similarly, since the page layout of different video websites is different, i.e., not
The display area of video may be different in the video web-pages of same video website, therefore, the corresponding video of different video websites
The display area of video may be different in webpage.
In the present embodiment, different video websites is corresponding with different configuration files, includes the video network in configuration file
The web page address stood, preset color threshold, in video web-pages video display area.
Step 202, according to the web page address of video web-pages, video web-pages to be measured are opened, record opens video web-pages
At the time of be the first moment.
Step 203, it according to the display area of video in video web-pages, obtains the corresponding video of video in video web-pages and cuts
Figure counts the quantity for the pixel that color value is different in video interception.
Optionally, the display area of video is indicated by coordinates regional in the video web-pages for including in configuration file, the coordinate
Region is determined that coordinate origin is defaulted as the coordinate points in the upper left corner of the display screen of terminal by least three coordinate points.
In order to promote the efficiency that terminal counts the quantity for the pixel that color value is different in video interception, coordinates regional can be set
It is set to the partial region in the display area of video, for example coordinates regional is the display area middle 100x100 pixel of video
Region.
When video web-pages do not maximize display, the browser window where the video web-pages is moveable, due to pre-
Fixed coordinates regional is fixed, therefore the mobility of the browser window where video web-pages, may result in terminal not
It can be according to the display area of video in the video web-pages that scheduled coordinates regional is accurately determined.Optionally, terminal is being opened
After video web-pages to be measured, which is maximized, due to maximizing the display of video in the video web-pages after showing
The position that region is equivalent to the upper left corner of display screen is fixed, therefore terminal can be according to scheduled coordinates regional, accurately really
Make the display area of video in video web-pages.
Specifically, duration, which measures thread, calls window maximized system function by parameter of browser window handle, make clear
The window maximized display of device of looking at.
It step 204, is the at the time of recording quantity greater than pre-set color threshold value if quantity is greater than preset color threshold
Two moment.
Step 205, the second moment was subtracted into for the first moment, obtains the first frame duration of video in video web-pages.
It should be noted that it is similar with step 101 by step 202 in this present embodiment, step 204 is similar with step 103,
Step 205 is similar with step 104, therefore no longer repeats explanation to step 202, step 204 and step 205 in this implementation.
In conclusion length measuring method when video head frame provided in an embodiment of the present invention, opens video web-pages by record
At the time of be the first moment, obtain video web-pages in the corresponding video interception of video, count video interception in color value it is different
The quantity of pixel, record quantity were the second moment at the time of being greater than pre-set color threshold value, and the second moment was subtracted for the first moment, is obtained
The first frame duration of video into video web-pages, due to the different pixel of color value in the video pictures before the broadcasting of video head frame
Negligible amounts can effectively determine video by determining whether the quantity of the different pixel of color value is greater than pre-set color threshold value
Whether first frame plays;Therefore the method lacked in the prior art to video head frame in measurement video web-pages is solved, it can not be intuitive
The problem of determining the Video service quality of the video web-pages;Reach through measurement video head frame duration come the intuitive judgment video
The effect of the Video service quality of webpage.
In the present embodiment, terminal is by maximizing the video web-pages, to guarantee video in determined video web-pages
Display area accuracy.
Referring to FIG. 3, it illustrates the methods of length measuring method when the video head frame of further embodiment of the present invention offer
Flow chart.Length measuring method may include steps of when video head frame:
Step 301, obtained from preset configuration file video web-pages list to be measured, preset color threshold, to
The corresponding relationship of the display area of video in the web page address and video web-pages of the video web-pages of measurement.
Wherein, the web page address for there are multiple video web-pages to be measured is recorded in video web-pages list to be measured.
It should be noted that the web page address recorded in video web-pages list can be the same webpage of same video website
Address can be the different web pages address of same video website, can also be the different web pages address of different video website.Its
In, the web page address of each video web-pages to be measured respectively corresponds the display area of video in a video web-pages.
Step 302, the web page address recorded in video web-pages list to be measured is traversed, determines the webpage not being labeled
Address.
Wherein, the web page address not being labeled is the web page address that terminal does not carry out the measurement of video head frame duration, is labeled
Web page address be terminal carried out video head frame duration measurement web page address.
Step 303, first item web page address is obtained in never labeled web page address, first item web page address is determined
For the web page address of video web-pages.
Step 304, video web-pages to be measured are opened, record was the first moment at the time of opening video web-pages.
Step 305, according to pair of the display area of video in the web page address and video web-pages of video web-pages to be measured
It should be related to, determine the display area of video in the corresponding video web-pages of first item web page address.
In the web page address and video web-pages of video web-pages to be measured in the corresponding relationship of the display area of video, record
There is the corresponding relationship of each single item web page address and the display area of video in video web-pages in video web-pages list to be measured.Eventually
After first item web page address is determined as the web page address of video web-pages by end, it can be searched in corresponding relationship and determine the first item
The display area of video in the corresponding video web-pages of web page address.
Step 306, according to the display area of video in the video web-pages determined, it is corresponding to obtain video in video web-pages
Video interception counts the quantity for the pixel that color value is different in video interception.
It step 307, is the at the time of recording quantity greater than pre-set color threshold value if quantity is greater than preset color threshold
Two moment.
Step 308, the second moment was subtracted into for the first moment, obtains the first frame duration of video in video web-pages.
Step 309, the web page address of the video web-pages is marked in video web-pages list to be measured.
After terminal obtains the first frame duration of video in video web-pages, then label should in video web-pages list to be measured
The web page address of video web-pages shows that the video web-pages have been measured.
Since record has the web page address of multiple video web-pages to be measured in video web-pages list to be measured, terminal exists
The test of one of video web-pages is terminated (i.e. after step 309), step 302 will to be repeated to step 309, until to be measured
Video web-pages list in the not labeled web page address that records be sky.
It should be noted that it is similar with step 101 by step 304 in this present embodiment, step 306 is similar with step 203,
Step 307 is similar with step 103, step 308 is similar with step 104, thus in this implementation no longer to step 304, step 306 to
Step 308 repeats explanation.
In conclusion length measuring method when video head frame provided in an embodiment of the present invention, opens video web-pages by record
At the time of be the first moment, obtain video web-pages in the corresponding video interception of video, count video interception in color value it is different
The quantity of pixel, record quantity were the second moment at the time of being greater than pre-set color threshold value, and the second moment was subtracted for the first moment, is obtained
The first frame duration of video into video web-pages, due to the different pixel of color value in the video pictures before the broadcasting of video head frame
Negligible amounts can effectively determine video by determining whether the quantity of the different pixel of color value is greater than pre-set color threshold value
Whether first frame plays;Therefore the method lacked in the prior art to video head frame in measurement video web-pages is solved, it can not be intuitive
The problem of determining the Video service quality of the video web-pages;Reach through measurement video head frame duration come the intuitive judgment video
The effect of the Video service quality of webpage.
In the present embodiment, configuration file further includes video web-pages list to be measured, and terminal can sequentially measure multiple videos
The first frame duration of video in webpage.
In order to avoid when terminal open multiple windows when, the window that can not be appropriately determined where video web-pages to be measured,
Configuration file further includes the process identification (PID) of preset browser, and terminal opens video web-pages to be measured, and records opening video
For after the first moment at the time of webpage, by successively by the corresponding process identification (PID) of the window opened and preset browser into
Journey mark is compared, and determines the window where video web-pages to be measured.In a kind of mode in the cards, in step
202 and step 304 after, can also carry out following step A1 to step A2.
Step A1 successively detects the corresponding process identification (PID) of the window opened, and determines whether the process identification (PID) is preset
The process identification (PID) of browser.
After step 202 and step 304, duration measures thread with the browser process example created in step 101
Handle is that parameter calls WaitForSingleObject that browser process example is waited to terminate, and time-out time is arranged.If in head
Newly created browser process is closed due to user is manual or other before frame duration measurement has not been completed,
WaitForSingleObject then returns to WAIT_OBJECT_0, and prompt terminal terminates the measurement of video head frame duration;Otherwise WAIT_
OBJECT_0 waits time-out, executes step A1.
Duration, which measures thread, to be enumerated system as parameter calling system function EnumWindows to enumerate call back function and has opened
All top-level windows, and called in enumerating call back function by parameter of the window handle that is currently enumerated
GetWindowThreadProcessId, to obtain process identification (PID) belonging to the window handle being currently enumerated, by the process
Mark is compared with the process identification (PID) of preset browser.
Step A2, if detecting, corresponding process identification (PID) is the window of the process identification (PID) of preset browser, and determining should
Window is the window where video web-pages to be measured.
The mistake that the process identification (PID) is compared by terminal using duration measurement thread with the process identification (PID) of preset browser
Cheng Zhong returns to TRUE if unequal, continues to enumerate next window handle;FALSE is returned to if equal, end was enumerated
Journey, and recording the window handle being currently enumerated is the window handle where video web-pages to be measured.
Optionally, since parent window and child window share a process identification (PID), and child window may be hiding not for eventually
End needs the window measured, therefore compares the process identification (PID) and the process identification (PID) of preset browser in duration measurement thread
Compared with during, if it is equal continue to call GetWindowLong continue to determine whether the window handle that is enumerated meets it is pre-
Fixed condition (for example window handle is to show that state, window handle have title bar, the parent window of window handle is NULL),
TRUE is returned if being unsatisfactory for predetermined condition, continues to enumerate next window handle, FALSE is returned if meeting predetermined condition,
Terminate enumeration process, and the window handle that then record is currently enumerated is the window handle where video web-pages to be measured.
The desktop background of terminal is not usually solid color, may when terminal is when video web-pages to be measured are not switched on
The operation for having executed screenshot statistical pixel, the picture for causing terminal to be truncated to are the desktop of the terminal, and the color value counted on is not
The quantity of same pixel is the quantity of the different pixel of the color value of desktop.Once in this way, the pixel that the color value of desktop is different
Quantity be greater than preset color threshold, terminal can then determine that video head frame is played, cause the measurement of video head frame duration wrong
Accidentally.
In a kind of mode in the cards, before step 101, step 201 and step 301, following step is executed
B1。
Step B1 deletes the icon shown on desktop, and/or, the background color of desktop is adjusted to solid color.
After step 104 and step 205, following step B2 is executed.
Step B2 restores the icon being deleted on desktop, and/or, the background color of desktop is reverted to and is adjusted to list
Color before one color.
In a kind of mode in the cards, after step 308, terminal is by the web page address of video web-pages to be measured
It is stored in tables of data with first frame duration as one group of corresponding relationship, and the video recorded in video web-pages list to be measured
After file all measures, the tables of data is exported, so that technical staff analyzes the data in tables of data, and implements phase
It should handle.
Optionally, terminal is deposited using the web page address of video web-pages to be measured and first frame duration as one group of corresponding relationship
After entering in tables of data, the first frame duration in corresponding relationships all in tables of data is calculated, obtains first frame duration maximum value, head
Frame duration minimum value and first frame duration average value.
It is following that the details of description not detailed in Installation practice can be referred to above-mentioned for apparatus of the present invention embodiment
One-to-one embodiment of the method.
Fig. 4 A is please referred to, Fig. 4 A is the structure side of the video head frame duration measuring device provided in one embodiment of the invention
Block diagram.The device includes: the first logging modle 401, statistical module 402, the second logging modle 403 and computing module 404.
First logging modle 401, is used to open video web-pages to be measured, and record is first at the time of opening video web-pages
Moment;
Statistical module 402 counts color value in video interception for obtaining the corresponding video interception of video in video web-pages
The quantity of different pixels;
Second logging modle 403 records quantity greater than pre-set color threshold if being greater than preset color threshold for quantity
It was the second moment at the time of value;
Computing module 404 obtains the first frame duration of video in video web-pages for the second moment to be subtracted for the first moment.
Fig. 4 B is please referred to, Fig. 4 B is the structure of the video head frame duration measuring device provided in another embodiment of the present invention
Block diagram.In one possible implementation, device further include: first obtains module 405.
First obtains module 405, for being obtained before opening video web-pages to be measured from preset configuration file
The web page address of video web-pages, preset color threshold, in video web-pages video display area;
First logging modle 401, is also used to the web page address according to video web-pages, opens video web-pages to be measured;
The statistical module 402 is also used to the display area according to video in video web-pages, obtains video pair in video web-pages
The video interception answered.
In a kind of mode in the cards, the statistical module 402, comprising: the first determination unit 402a and first is obtained
Unit 402b.
First determination unit 402a, according to scheduled coordinates regional, determines view for maximizing video web-pages to be measured
The display area of video in frequency webpage;
First acquisition unit 402b obtains video in video web-pages for the display area according to video in video web-pages
Corresponding video interception.
In a kind of mode in the cards, the device further include: second obtains module 406,407 and of the first determining module
Second determining module 408.
Second obtains module 406, for being obtained before opening video web-pages to be measured from preset configuration file
Video web-pages list to be measured, preset color threshold, video web-pages to be measured web page address and video web-pages in regard
The corresponding relationship of the display area of frequency;
First determining module 407 is determined not for traversing the web page address recorded in video web-pages list to be measured
Labeled web page address;
Second determining module 408, for obtaining first item web page address in never labeled web page address, by first item
Web page address is determined as the web page address of video web-pages;
Statistical module 402, further includes: the second determination unit 402c and second acquisition unit 402d.
Second determination unit 402c, for video in the web page address and video web-pages according to video web-pages to be measured
The corresponding relationship of display area determines the display area of video in the corresponding video web-pages of first item web page address;
Second acquisition unit 402d obtains video network for the display area according to video in the video web-pages determined
The corresponding video interception of video in page;
The device further include: mark module 409.
Mark module 409, after the first frame duration of video in obtaining video web-pages, in video web-pages to be measured
The web page address of video web-pages is marked in list.
In a kind of mode in the cards, configuration file further includes the process identification (PID) of preset browser, and the device is also
It include: the first determination module 410 and the second determination module 411.
First determination module 410, for after the first moment, successively being detected at the time of record opens video web-pages
The corresponding process identification (PID) of the window of opening, determinating processes identify whether as the process identification (PID) of preset browser;
Second determination module 411, if for detecting that corresponding process identification (PID) is the process identification (PID) of preset browser
Window then determines that window is the window where video web-pages to be measured.
In conclusion video head frame duration measuring device provided in an embodiment of the present invention, opens video web-pages by record
At the time of be the first moment, obtain video web-pages in the corresponding video interception of video, count video interception in color value it is different
The quantity of pixel, record quantity were the second moment at the time of being greater than pre-set color threshold value, and the second moment was subtracted for the first moment, is obtained
The first frame duration of video into video web-pages, due to the different pixel of color value in the video pictures before the broadcasting of video head frame
Negligible amounts can effectively determine video by determining whether the quantity of the different pixel of color value is greater than pre-set color threshold value
Whether first frame plays;Therefore the method lacked in the prior art to video head frame in measurement video web-pages is solved, it can not be intuitive
The problem of determining the Video service quality of the video web-pages;Reach through measurement video head frame duration come the intuitive judgment video
The effect of the Video service quality of webpage.
In the present embodiment, terminal is by maximizing the video web-pages, to guarantee video in the video web-pages determined
The accuracy of display area.
In the present embodiment, configuration file further includes video web-pages list to be measured, and terminal can sequentially measure multiple videos
The first frame duration of video in webpage.
It should be understood that the video head frame duration measuring device provided in above-described embodiment is carrying out colour changing to control
When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function
With being completed by different functional modules, i.e., the internal structure of terminal is divided into different functional modules, to complete above description
All or part of function.In addition, video head frame duration measuring device provided by the above embodiment and video head frame duration are surveyed
Amount embodiment of the method belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Shown in Figure 5, it illustrates the structural block diagrams of the terminal provided in section Example of the present invention.The terminal
500 for implementing length measuring method when video head frame provided by the above embodiment.Terminal 500 in the present invention may include one
Or multiple following component parts: the processor of various processes and method is completed for executing computer program instructions, for believing
Breath and storage program instruction random access memory (RAM) and read-only memory (ROM), for storing data with the storage of information
Device, I/O equipment, interface, antenna etc..Specifically:
Terminal 500 may include RF (Radio Frequency, radio frequency) circuit 510, memory 520, input unit 530,
Display unit 540, sensor 550, voicefrequency circuit 560, WiFi (wireless fidelity, Wireless Fidelity) module 570, place
Manage the components such as device 580, power supply 582, camera 590.It will be understood by those skilled in the art that terminal structure shown in Fig. 5 is simultaneously
The not restriction of structure paired terminal may include perhaps combining certain components or different than illustrating more or fewer components
Component layout.
It is specifically introduced below with reference to each component parts of the Fig. 5 to terminal 500:
RF circuit 510 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 580;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet
Including but be not limited to antenna, at least one amplifier, transceiver, coupler, LNA, (Low NoiseAmplifier, low noise are put
Big device), duplexer etc..In addition, RF circuit 510 can also be communicated with network and other equipment by wireless communication.It is described wireless
Any communication standard or agreement, including but not limited to GSM (Global System ofMobile can be used in communication
Communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet without
Line service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code
Division MultipleAccess, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), electronics
Mail, SMS (ShortMessaging Service, short message service) etc..
Memory 520 can be used for storing software program and module, and processor 580 is stored in memory 520 by operation
Software program and module, thereby executing the various function application and data processing of terminal 500.Memory 520 can be main
Including storing program area and storage data area, wherein storing program area can answer needed for storage program area, at least one function
With program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to terminal 500
Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 520 may include high-speed random access memory,
It can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states are deposited
Memory device.
Input unit 530 can be used for receiving the number or character information of input, and generate the user setting with terminal 500
And the related key signals input of function control.Specifically, input unit 530 may include touch panel 531 and other inputs
Equipment 532.Touch panel 531, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes
With the operation of any suitable object or attachment such as finger, stylus on touch panel 531 or near touch panel 531), and
Corresponding attachment device is driven according to preset formula.Optionally, touch panel 531 may include touch detecting apparatus and touching
Touch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter
Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into
Contact coordinate, then give processor 580, and order that processor 580 is sent can be received and executed.Furthermore, it is possible to using
The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 531.It is defeated in addition to touch panel 531
Entering unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to physics
One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 540 can be used for showing information input by user or the information and terminal 500 that are supplied to user
Various menus.Display unit 540 may include display panel 541, optionally, can use LCD (Liquid Crystal
Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come
Configure display panel 541.Further, touch panel 531 can cover display panel 541, when touch panel 531 is detected at it
On or near touch operation after, send processor 580 to determine the type of touch event, be followed by subsequent processing device 580 according to touching
The type for touching event provides corresponding visual output on display panel 541.Although in Fig. 5, touch panel 531 and display surface
Plate 541 is the input and input function for realizing terminal 500 as two independent components, but in certain embodiments, it can
That terminal 500 is realized so that touch panel 531 and display panel 541 is integrated outputs and inputs function.
Terminal 500 may also include at least one sensor 550, such as gyro sensor, magnetic induction sensor, light sensing
Device, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and proximity sensor,
In, ambient light sensor can adjust the brightness of display panel 541 according to the light and shade of ambient light, and proximity sensor can be in terminal
500 when being moved in one's ear, closes display panel 541 and/or backlight.As a kind of motion sensor, acceleration transducer can
The size for detecting (generally three axis) acceleration in all directions, can detect that size and the direction of gravity, can be used for when static
The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of identification terminal posture, Vibration identification correlation function
(such as pedometer, percussion) etc.;Barometer, hygrometer, thermometer, infrared sensor for can also configure as terminal 500 etc.
Other sensors, details are not described herein.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and terminal 500.Audio
Electric signal after the audio data received conversion can be transferred to loudspeaker 561, be converted to sound by loudspeaker 561 by circuit 560
Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, after being received by voicefrequency circuit 560
Audio data is converted to, then by after the processing of audio data output processor 580, such as another end is sent to through RF circuit 510
End, or audio data is exported to memory 520 to be further processed.
WiFi belongs to short range wireless transmission technology, and terminal 500 can help user's transceiver electronics by WiFi module 570
Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown
WiFi module 570, but it is understood that, and it is not belonging to must be configured into for terminal 500, it can according to need completely
Do not change in the range of disclosed essence and omits.
Processor 580 is the control centre of terminal 500, utilizes each portion of various interfaces and the entire terminal of connection
Point, by running or execute the software program and/or module that are stored in memory 520, and calls and be stored in memory 520
Interior data execute the various functions and processing data of terminal 500, to carry out integral monitoring to terminal.Optionally, processor
580 may include one or more processing units;Preferably, processor 580 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 580.
Terminal 500 further includes the power supply 582 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 582 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.
Camera 590 is generally by groups such as camera lens, imaging sensor, interface, digital signal processor, CPU, display screens
At.Wherein, camera lens is fixed on the top of imaging sensor, can change focusing by manually adjusting camera lens;Imaging sensor
It is equivalent to " film " of traditional camera, is the heart of camera collection image;Interface is used for camera using winding displacement, plate to plate
Connector, spring connection type are connect with terminal mainboard, and the image of acquisition is sent to the memory 520;Digital signal
Processor is handled by image of the mathematical operation to acquisition, the analog image of acquisition is converted to digital picture and by connecing
Mouth is sent to memory 520.
Although being not shown, terminal 500 can also be including bluetooth module etc., and details are not described herein.
Terminal 500 in addition to include one or more processor 580, further include have memory and one or more
Program, one or more program are stored in memory, and are configured to be executed by one or more processor.On
One or more program is stated with following function:
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.