CN109189517A - A kind of method and mobile terminal of display switching - Google Patents
A kind of method and mobile terminal of display switching Download PDFInfo
- Publication number
- CN109189517A CN109189517A CN201810835167.8A CN201810835167A CN109189517A CN 109189517 A CN109189517 A CN 109189517A CN 201810835167 A CN201810835167 A CN 201810835167A CN 109189517 A CN109189517 A CN 109189517A
- Authority
- CN
- China
- Prior art keywords
- display
- grayscale
- display content
- gray scale
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The embodiment of the invention provides the methods and mobile terminal of a kind of display switching, the described method includes: when mobile terminal is in the first display state, determine the display content of target area missing, wherein, the first display state is full screen display state, and the target area is the region of the abnormity screen missing;Judge whether the display content includes effective information;If including the mobile terminal is switched to the second display state, wherein the second display state is the state that the display content of the missing is normally shown.The problem of can be realized whether the display content lacked according to the target area of screen includes effective information, automatically switch to the first display or the second display state, avoiding display content missing, promotes the usage experience of user.
Description
Technical field
The present embodiments relate to technical field of mobile terminals, and the method and movement more particularly to a kind of display switching are eventually
End.
Background technique
Now with the fast development of mobile terminal, requirement of the people to screen accounting is also higher and higher.It is accounted for improve screen
Than, occur special-shaped screen in the market, such as: U-shaped screen.But abnormity screen improve shield accounting while also bring along display it is incomplete
The problem of, such as: game or chat window are partially in the text of specific region or picture and can not show completely, cause to show
The problem of showing missing.
To solve the above-mentioned problems, the prior art be substantially mobile terminal manufacturer be directed in advance different application program or
Person's scene is adapted to, that is, which application program has been set in advance or scene needs full frame or non-full screen display.However, removing
When showing in the state that the application state of mobile terminal manufacturer adaptation is outer, the problem of display content lacks is still remained.
Summary of the invention
The embodiment of the present invention provides the method and mobile terminal of a kind of display switching, to solve special-shaped screen display in the prior art
The problem of causing content to lack when showing.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of methods of display switching, comprising: be in first in mobile terminal
When display state, the display content of target area missing is determined, wherein the first display state is described in full screen display state
Target area is the region of the abnormity screen missing;Judge whether the display content includes effective information;If including, by institute
It states mobile terminal and switches to the second display state, wherein the second display state is that the display content of the missing is normally shown
The state shown.
Second aspect, the embodiment of the invention provides a kind of mobile terminal, the mobile terminal includes: the first determining mould
Block, for determining the display content of target area missing, wherein described first when mobile terminal is in the first display state
Display state is the region that target area described in full screen display state is the abnormity screen missing;Judgment module, for judging
State whether display content includes effective information;Switching module, if the mobile terminal is switched to the second display for including
State, wherein the second display state is the state that the display content of the missing is normally shown.
The third aspect the embodiment of the invention also provides a kind of mobile terminal, including processor, memory and is stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor
The step of realizing the method for the display switching.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
Computer program is stored on storage media, and the method for the display switching is realized when the computer program is executed by processor
Step.
In embodiments of the present invention, by determining target when mobile terminal is in the first of full screen display and shows state
The display content of region missing judges show whether content includes effective information;If including mobile terminal is switched to display
The second display state that content is normally shown, wherein the second display state is the state that the display content of missing is normally shown, energy
Whether enough display contents for realizing that the target area according to screen lacks include effective information, automatically switch to the first display or
Second display state, avoids the problem of display content lacks, promotes the usage experience of user.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the method for display switching of the embodiment of the present invention one;
Fig. 2 is one of the mobile terminal schematic diagram of abnormity screen of the embodiment of the present invention;
Fig. 3 is the two of the mobile terminal schematic diagram of abnormity screen of the embodiment of the present invention;
Fig. 4 is the lack part schematic diagram of abnormity screen of the embodiment of the present invention;
Fig. 5 is a kind of step flow chart of the method for display switching of the embodiment of the present invention two;
Fig. 6 is a kind of step flow chart of the method for display switching of the embodiment of the present invention three;
Fig. 7 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention four;
Fig. 8 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention four;
Fig. 9 is a kind of hardware structural diagram of mobile terminal of the embodiment of the present invention five.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the method for display switching of the embodiment of the present invention one is shown.
It is provided in an embodiment of the present invention display switching method the following steps are included:
The present embodiment is applied to include the special-shaped mobile terminal shielded.
Step 101: when mobile terminal is in the first display state, determining the display content of target area missing.
Wherein, the first display state is full screen display state, and target area is the region of abnormity screen missing.
It as shown in FIG. 2 and 3, is the mobile terminal schematic diagram of abnormity screen, when mobile terminal is in the first display state
When, the region of abnormity screen missing is determined, as shown in figure 4, for the region of abnormity screen missing.
Step 102: judging show whether content includes effective information.
As shown in Fig. 2, the display content for target area missing includes effective information, Fig. 3 is the aobvious of target area missing
Show that content does not include effective information.
Step 103: if including, mobile terminal being switched into the second display state.
Wherein, the second display state is the state that the display content lacked is normally shown.
If the display content of target area missing includes effective information, the second display shape is switched to from the first display state
State, the first display state are that the display content of target area missing includes the state of effective information, and the second display state is target
The display content of region missing does not include the state of effective information.
In embodiments of the present invention, by determining target when mobile terminal is in the first of full screen display and shows state
The display content of region missing judges show whether content includes effective information;If including mobile terminal is switched to display
The second display state that content is normally shown, wherein the second display state is the state that the display content of missing is normally shown, energy
Whether enough display contents for realizing that the target area according to screen lacks include effective information, automatically switch to the first display or
Second display state, avoids the problem of display content lacks, promotes the usage experience of user.
Embodiment two
Referring to Fig. 5, a kind of step flow chart of the method for display switching of the embodiment of the present invention two is shown.
It is provided in an embodiment of the present invention display switching method the following steps are included:
Step 201: when mobile terminal is in the first display state, determining the display content of target area missing.
Wherein, the first display state is full screen display state, and target area is the region of abnormity screen missing.
Step 202: determining the grayscale value of the red sub-pixel of each pixel in display content.
The display content of target area missing includes multiple pixels, and each pixel includes a red sub-pixel, is determined each
The grayscale value of red sub-pixel in a pixel.
Step 203: the grayscale value of each red sub-pixel being sorted from small to large and generates the first grayscale array.
Step 204: the first grayscale array being subjected to difference calculating, obtains first object grayscale value.
Such as: the first grayscale array is R [R1,R2,R3,R4], then by R1With R4It makes the difference, by R1With R4The first difference and the
One preset value compares, by R2With R3It makes the difference, by R2With R3The second difference compared with the first preset value, when the first difference and second
When difference is all larger than the first preset value, then first object grayscale value is 2, is less than when the first difference or the second difference are one of any
Or when being equal to the first preset value, then first object grayscale value is 1.
Step 205: if first object grayscale value is less than or equal to the first preset gray scale value, it is determined that in display content
The grayscale value of the green sub-pixels of each pixel.
It should be noted that those skilled in the art can according to the actual situation be configured the first preset gray scale value,
It can be set to 10,15 and 20, the embodiment of the present invention is not specifically limited the first preset gray scale value.
If first object grayscale value be greater than the first preset gray scale value, it is determined that target area missing display content include
Imitate information.
When first object grayscale value is less than or equal to the first preset gray scale value, then need to further determine that target area
Whether the display content of missing includes effective information.
It include multiple pixels in the display content of target area missing, each pixel also includes a green sub-pixels, really
The grayscale value of fixed each pixel Green sub-pixel.
Step 206: the grayscale value of each green sub-pixels is reached into sequence the second grayscale array of generation from small.
Step 207: the second grayscale array being subjected to difference calculating, obtains the second target gray scale value.
Such as: the second grayscale array is G [G1,G2,G3,G4], then by G1With G4It makes the difference, by G1With G4The first difference and the
Two preset values compare, by G2With G3It makes the difference, by G2With G3The second difference compared with the second preset value, when the first difference and second
When difference is all larger than the second preset value, then the second target gray scale value is 2, is less than when the first difference or the second difference are one of any
Or when being equal to the second preset value, then the second target gray scale value is 1.
Step 208: if the second target gray scale value is less than or equal to the second preset gray scale value, it is determined that in display content
The grayscale value of the blue subpixels of each pixel.
It should be noted that those skilled in the art can according to the actual situation be configured the second preset gray scale value,
It can be set to 3,6 and 9, the embodiment of the present invention is not specifically limited the second preset gray scale value.
If the second target gray scale value is greater than the second preset gray scale value, it is determined that display content includes effective information.
When the second target gray scale value is less than or equal to the second preset gray scale value, then need further to determine in display
Whether hold includes effective information.
It include multiple pixels in the display content of target area missing, each pixel also includes a blue subpixels, really
The grayscale value of blue subpixels in fixed each pixel.
Step 209: the grayscale value of each blue subpixels being sorted from large to small and generates third grayscale array.
Step 210: third grayscale array being subjected to difference clearing, obtains third target gray scale value.
The calculation method is consistent with the calculation method of the first grayscale array and the second grayscale array, repeats no more to this.
Step 211: if third target gray scale value is greater than third preset gray scale value, it is determined that display content includes effectively to believe
Breath.
Step 212: mobile terminal is switched into the second display state.
Wherein, the second display state is the state that the display content lacked is normally shown.
If showing, content includes effective information, the shape that the display content for switching to missing from full frame state is normally shown
State.
In embodiments of the present invention, by determining target when mobile terminal is in the first of full screen display and shows state
The display content of region missing is sentenced by the grayscale value of the red sub-pixel of each pixel, green sub-pixels in display content
Whether disconnected display content includes effective information, when first object grayscale value is unsatisfactory for condition, then passes through the second target gray scale value
Judge show whether content includes effective information, when the second target gray scale value, then display is determined by third target gray scale value
Whether content includes effective information, if including effective information in display content, the first display state is switched to the second display
State, can be realized whether the display content lacked according to the target area of screen includes effective information, automatically switch to first
Display or the second display state, avoid the problem of display content lacks, promote the usage experience of user.
Embodiment three
Referring to Fig. 6, a kind of step flow chart of the method for display switching of the embodiment of the present invention three is shown.
The method of display switching provided in an embodiment of the present invention realizes the switching of screen for dynamic menu.It says in detail below
It is bright:
It is provided in an embodiment of the present invention display switching method the following steps are included:
Step 301: when mobile terminal is in the first display state, determining the display content of target area missing.
Wherein, the first display state is full screen display state, and target area is the region of abnormity screen missing.
Step 302: obtaining the picture frame of the first preset quantity.
Obtain preset time period in the first preset quantity picture frame, wherein preset time period can be set to 2s, 3s,
4s etc., the embodiment of the present invention is not specifically limited preset time.First preset quantity can be set to 10,20,30
Deng the embodiment of the present invention is not specifically limited the first preset quantity.
Step 303: determine the red sub-pixel that the pixel in content is shown in each picture frame, green sub-pixels and
The grayscale value of blue subpixels.
Step 304: according to the pixel of target area and red sub-pixel, green sub-pixels and the blue of each pixel
Whether the grayscale value of sub-pixel judges each picture frame in display content comprising effective information.
The red pigment sub-pixel of each pixel, green in the display content that target area lacks in each picture frame are obtained respectively
The grayscale value of sub-pixel and blue subpixels.And according to judge in embodiment two show content whether include effective information meter
Calculation method, whether the display content for calculating each picture frame includes effective information.
Step 305: if so, determining that display content includes the frame number of effective information.
Step 306: judging whether frame number is more than or equal to the second preset quantity.
Such as: 100 picture frames are obtained, calculates in the target area for there are 90 picture frames and shows effective information, then
90 are compared with the second preset quantity, when being more than or equal to the second preset quantity, it is determined that within a preset period of time
Target area shows effective information, when less than the second preset quantity, it is determined that target area is not shown within a preset period of time
There is effective information.
It should be noted that those skilled in the art can according to the actual situation be configured the second preset quantity, the
Two preset quantities can be set to 70,80,90 etc., and the embodiment of the present invention is not specifically limited the second preset quantity.
Step 307: if so, determining that display content includes effective information.
Step 308: mobile terminal is switched into the second display state.
Wherein, the second display state is the state that the display content lacked is normally shown.
If showing, content includes effective information, switches to the second display state, the first display shape from the first display state
State is to show that content includes the state of effective information, and the second display state is to show that content does not include the state of effective information.
In embodiments of the present invention, when mobile terminal is in the first display state of full screen display, target area is determined
The display content of missing, for each picture frame, is determined in picture frame in display by obtaining the picture frame of the first preset quantity
The grayscale value of the red sub-pixel of pixel in appearance, green sub-pixels and blue subpixels judges to show whether content wraps
Containing effective information, to be switched over to screen display state, if the quantity of the picture frame comprising effective information is more than or equal to
Second preset quantity, it is determined that display content includes effective information, and the first display state is switched to the second display state, energy
Whether enough display contents for realizing that the target area according to screen lacks include effective information, automatically switch to the first display or
Second display state, avoids the problem of display content lacks, promotes the usage experience of user.
Example IV
Referring to Fig. 7, a kind of structural block diagram of mobile terminal of the embodiment of the present invention four is shown.
Mobile terminal provided in an embodiment of the present invention includes: the first determining module 401, for being in first in mobile terminal
When display state, the display content of target area missing is determined, wherein the first display state is described in full screen display state
Target area is the region of the abnormity screen missing;Judgment module 402, for judging whether the display content includes effectively believing
Breath;Switching module 403, if the mobile terminal is switched to the second display state for including, wherein described second is aobvious
Show that state is the state that the display content of the missing is normally shown.
First determining module determines the display content of target area missing, when whether judgment module judges the display content
Including effective information, then the mobile terminal is switched to the second display state by switching module, and the first display state is full frame aobvious
Show that state, the second display state are the state that the display content of missing is normally shown.
In embodiments of the present invention, by determining target when mobile terminal is in the first of full screen display and shows state
The display content of region missing judges show whether content includes effective information;If including mobile terminal is switched to display
The second display state that content is normally shown, wherein the second display state is the state that the display content of missing is normally shown, energy
Whether enough display contents for realizing that the target area according to screen lacks include effective information, automatically switch to the first display or
Second display state, avoids the problem of display content lacks, promotes the usage experience of user.
Embodiment five
Referring to Fig. 8, a kind of structural block diagram of mobile terminal of the embodiment of the present invention five is shown.
Mobile terminal provided in an embodiment of the present invention includes: the first determining module 501, for being in first in mobile terminal
When display state, the display content of target area missing is determined, wherein the first display state is described in full screen display state
Target area is the region of the abnormity screen missing;Judgment module 502, for judging whether the display content includes effectively believing
Breath;Switching module 503, if the mobile terminal is switched to the second display state for including, wherein described second is aobvious
Show that state is the state that the display content of the missing is normally shown.
Preferably, the judgment module 502 includes: the first determining submodule 5021, for determining in the display content
The grayscale value of the red sub-pixel of each pixel;Generate submodule 5022, for by the grayscale value of each red sub-pixel from
It is small to generate the first grayscale array to big sequence;Computational submodule 5023, for the first grayscale array to be carried out difference calculating,
Obtain first object grayscale value;Second determines submodule 5024, if being greater than the first default ash for the first object grayscale value
Rank value, it is determined that the display content includes effective information.
Preferably, the mobile terminal further include: the second determining module 504, being used for will in the computational submodule 5023
The first grayscale array carries out difference calculating, after obtaining first object grayscale value, if the first object grayscale value is less than
Or when being equal to the first preset gray scale value, it is determined that the grayscale of the green sub-pixels of each pixel in the display content
Value;First generation module 505, for the grayscale value of each green sub-pixels to be reached sequence the second gray number of generation from small
Group;First computing module 506 obtains the second target gray scale value for the second grayscale array to be carried out difference calculating;Third
Determining module 507, if be greater than the second preset gray scale value for the second target gray scale value, it is determined that in the display
Holding includes effective information.
Preferably, the mobile terminal further include: the 4th determining module 508, being used for will in first computing module 506
The first grayscale array carries out difference calculating, after obtaining first object grayscale value, if the second target gray scale value is less than
Or when being equal to the second preset gray scale value, it is determined that the grayscale of the blue subpixels of each pixel in the display content
Value;Second generation module 509 generates third gray number for sorting from large to small the grayscale value of each blue subpixels
Group;Second computing module 510 obtains third target gray scale value for the third grayscale array to be carried out difference clearing;5th
Determining module 511, if be greater than the third preset gray scale value for the third target gray scale value, it is determined that in the display
Holding includes effective information.
Preferably, the judgment module 502 includes: acquisition submodule 5025, for obtaining the image of the first preset quantity
Frame;Third determines submodule 5026, for determine shown in each described image frame the pixel in content red sub-pixel,
The grayscale value of green sub-pixels and blue subpixels;First judging submodule 5027, for the picture according to the target area
The grayscale value of the red sub-pixel of vegetarian refreshments and each pixel, green sub-pixels and blue subpixels judges each described
Whether picture frame includes effective information in the display content;4th determines submodule 5028, if for first judgement
The judging result of submodule is yes, it is determined that display content includes the frame number of effective information;Second judgment submodule 5029, is used for
Judge whether the frame number is more than or equal to the second preset quantity;5th determines submodule 50210, if sentencing for described second
The judging result of disconnected submodule is yes, it is determined that the display content includes effective information.
Mobile terminal provided in an embodiment of the present invention can be realized mobile whole in the embodiment of the method for Fig. 1, Fig. 4 and Fig. 5
The each process realized is held, to avoid repeating, which is not described herein again.
In embodiments of the present invention, by determining target when mobile terminal is in the first of full screen display and shows state
The display content of region missing is sentenced by the grayscale value of the red sub-pixel of each pixel, green sub-pixels in display content
Whether disconnected display content includes effective information, when first object grayscale value is unsatisfactory for condition, then passes through the second target gray scale value
Judge show whether content includes effective information, when the second target gray scale value, then display is determined by third target gray scale value
Whether content includes effective information, if including effective information in display content, the first display state is switched to the second display
State, can be realized whether the display content lacked according to the target area of screen includes effective information, automatically switch to first
Display or the second display state, avoid the problem of display content lacks, promote the usage experience of user.
Embodiment six
Referring to a kind of hardware structural diagram of Fig. 9 mobile terminal of each embodiment to realize the present invention.
The mobile terminal 600 includes but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, defeated
Enter unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor
The components such as 610 and power supply 611.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 9 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or
Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 610, for mobile terminal be in first display state when, determine target area missing display in
Hold, wherein the first display state is the region that target area described in full screen display state is the abnormity screen missing;Judgement
Whether the display content includes effective information;If including the mobile terminal is switched to the second display state, wherein
The second display state is the state that the display content of the missing is normally shown.
In embodiments of the present invention, by determining target when mobile terminal is in the first of full screen display and shows state
The display content of region missing judges show whether content includes effective information;If including mobile terminal is switched to display
The second display state that content is normally shown, wherein the second display state is the state that the display content of missing is normally shown, energy
Whether enough display contents for realizing that the target area according to screen lacks include effective information, automatically switch to the first display or
Second display state, avoids the problem of display content lacks, promotes the usage experience of user.
It should be understood that the embodiment of the present invention in, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 610 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal provides wireless broadband internet by network module 602 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 603 can be received by radio frequency unit 601 or network module 602 or in memory 609
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 600 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 603 includes loudspeaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor
(Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 606.Through graphics processor 6041, treated that picture frame can be deposited
Storage is sent in memory 609 (or other storage mediums) or via radio frequency unit 601 or network module 602.Mike
Wind 6042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 601 is converted in the case where telephone calling model.
Mobile terminal 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 6061, and proximity sensor can close when mobile terminal 600 is moved in one's ear
Display panel 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can wrap
Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 6061.
User input unit 607 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 607 include touch panel 6071 and
Other input equipments 6072.Touch panel 6071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 6071 or in touch panel 6071
Neighbouring operation).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, receiving area
It manages the order that device 610 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 6071.In addition to touch panel 6071, user input unit 607 can also include other input equipments
6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it
On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touching
The type for touching event provides corresponding visual output on display panel 6061.Although in Fig. 9, touch panel 6071 and display
Panel 6061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 6071 and display panel 6061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place is without limitation.
Interface unit 608 is the interface that external device (ED) is connect with mobile terminal 600.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 600 or can be used in 600 He of mobile terminal
Data are transmitted between external device (ED).
Memory 609 can be used for storing software program and various data.Memory 609 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 609 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 610 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 609, and calls and is stored in storage
Data in device 609 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Mobile terminal 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply 611
Can be logically contiguous by power-supply management system and processor 610, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 600 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 610, and memory 609 is stored in
On memory 609 and the computer program that can run on the processor 610, the computer program are executed by processor 610
Each process of the embodiment of the method for the above-mentioned display switching of Shi Shixian, and identical technical effect can be reached, to avoid repeating, this
In repeat no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of the embodiment of the method for above-mentioned display switching when being executed by processor, and
Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as
Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (12)
1. a kind of method of display switching, applied to the mobile terminal for including abnormity screen, which is characterized in that the described method includes:
When mobile terminal is in the first display state, the display content of target area missing is determined, wherein first display
State is full screen display state, and the target area is the region of the abnormity screen missing;
Judge whether the display content includes effective information;
If including the mobile terminal is switched to the second display state, wherein the second display state is the missing
The state that normally shows of display content.
2. the method according to claim 1, wherein described judge whether the display content includes effective information
The step of, comprising:
Determine the grayscale value of the red sub-pixel of each pixel in the display content;
The grayscale value of each red sub-pixel is sorted from small to large and generates the first grayscale array;
The first grayscale array is subjected to difference calculating, obtains first object grayscale value;
If the first object grayscale value is greater than the first preset gray scale value, it is determined that the display content includes effective information.
3. according to the method described in claim 2, it is characterized in that, the first grayscale array is carried out difference meter described
After the step of calculating, obtaining first object grayscale value, the method also includes:
If the first object grayscale value is less than or equal to the first preset gray scale value, it is determined that in the display content
The grayscale value of the green sub-pixels of each pixel;
The grayscale value of each green sub-pixels is reached into sequence the second grayscale array of generation from small;
The second grayscale array is subjected to difference calculating, obtains the second target gray scale value;
If the second target gray scale value is greater than the second preset gray scale value, it is determined that the display content includes effective information.
4. the second grayscale array is subjected to difference calculating described according to the method described in claim 3, its feature exists,
After the step of obtaining the second target gray scale value, the method also includes:
If the second target gray scale value is less than or equal to the second preset gray scale value, it is determined that in the display content
The grayscale value of the blue subpixels of each pixel;
The grayscale value of each blue subpixels is sorted from large to small and generates third grayscale array;
The third grayscale array is subjected to difference clearing, obtains third target gray scale value;
If the third target gray scale value is greater than third preset gray scale value, it is determined that the display content includes effective information.
5. the method according to claim 1, wherein described judge whether the display content includes effective information
The step of, comprising:
Obtain the picture frame of the first preset quantity;
Determine the red sub-pixel that the pixel in content is shown in each described image frame, green sub-pixels and the sub- picture of blue
The grayscale value of element;
According to the pixel of the target area and red sub-pixel, green sub-pixels and the sub- picture of blue of each pixel
Whether the grayscale value of element judges each described image frame in the display content comprising effective information;
If so, determining that display content includes the frame number of effective information;
Judge whether the frame number is more than or equal to the second preset quantity;
If so, determining that the display content includes effective information.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
First determining module, for determining the display content of target area missing when mobile terminal is in the first display state,
Wherein, the first display state is the region that target area described in full screen display state is the abnormity screen missing;
Judgment module, for judging whether the display content includes effective information;
Switching module, if the mobile terminal is switched to the second display state for including, wherein second display
State is the state that the display content of the missing is normally shown.
7. mobile terminal according to claim 6, which is characterized in that the judgment module includes:
First determines submodule, for determining the grayscale value of the red sub-pixel of each pixel in the display content;
Submodule is generated, generates the first grayscale array for the grayscale value of each red sub-pixel to sort from small to large;
Computational submodule obtains first object grayscale value for the first grayscale array to be carried out difference calculating;
Second determines submodule, if being greater than the first preset gray scale value for the first object grayscale value, it is determined that the display
Content includes effective information.
8. mobile terminal according to claim 7, which is characterized in that the mobile terminal further include:
Second determining module obtains first for the first grayscale array to be carried out difference calculating in the computational submodule
After target gray scale value, if the first object grayscale value is less than or equal to the first preset gray scale value, it is determined that institute
State the grayscale value of the green sub-pixels of each pixel in display content;
First generation module, for the grayscale value of each green sub-pixels to be reached sequence the second grayscale array of generation from small;
First computing module obtains the second target gray scale value for the second grayscale array to be carried out difference calculating;
Third determining module, if be greater than the second preset gray scale value for the second target gray scale value, it is determined that described
Show that content includes effective information.
9. mobile terminal according to claim 8, feature exist, the mobile terminal further include:
4th determining module, for first computing module will the second grayscale array progress difference calculating, obtain the
After two target gray scale values, if the second target gray scale value is less than or equal to the second preset gray scale value, it is determined that
The grayscale value of the blue subpixels of each pixel in the display content;
Second generation module generates third grayscale array for sorting from large to small the grayscale value of each blue subpixels;
Second computing module obtains third target gray scale value for the third grayscale array to be carried out difference clearing;
5th determining module, if be greater than the third preset gray scale value for the third target gray scale value, it is determined that described
Show that content includes effective information.
10. mobile terminal according to claim 6, which is characterized in that the judgment module includes:
Acquisition submodule, for obtaining the picture frame of the first preset quantity;
Third determines submodule, for determining the red sub-pixel, green for showing the pixel in content in each described image frame
The grayscale value of sub-pixels and blue subpixels;
First judging submodule, the red sub-pixel, green for pixel and each pixel according to the target area
Whether the grayscale value of sub-pixels and blue subpixels judges each described image frame in the display content comprising effective
Information;
4th determines submodule, if the judging result for first judging submodule is yes, it is determined that shows that content includes
The frame number of effective information;
Second judgment submodule, for judging whether the frame number is more than or equal to the second preset quantity;
5th determines submodule, if the judging result for the second judgment submodule is yes, it is determined that the display content
Include effective information.
11. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in display switching method the step of.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence realizes the method for the display switching as described in any one of claims 1 to 5 when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810835167.8A CN109189517B (en) | 2018-07-26 | 2018-07-26 | Display switching method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810835167.8A CN109189517B (en) | 2018-07-26 | 2018-07-26 | Display switching method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109189517A true CN109189517A (en) | 2019-01-11 |
CN109189517B CN109189517B (en) | 2021-08-27 |
Family
ID=64937651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810835167.8A Active CN109189517B (en) | 2018-07-26 | 2018-07-26 | Display switching method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189517B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459227A (en) * | 2020-03-31 | 2020-07-28 | 联想(北京)有限公司 | Electronic device and display control method thereof |
CN112184685A (en) * | 2020-10-09 | 2021-01-05 | 合肥芯颖科技有限公司 | Image data determination method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150363173A1 (en) * | 2014-06-13 | 2015-12-17 | Canon Kabushiki Kaisha | Apparatus, method, and non-transitory computer-readable storage medium |
US20160351168A1 (en) * | 2014-02-18 | 2016-12-01 | Zte Corporation | Split-Screen Processing Method and Device, and Computer Storage Medium |
CN107562316A (en) * | 2017-08-29 | 2018-01-09 | 广东欧珀移动通信有限公司 | Method for showing interface, device and terminal |
CN107943404A (en) * | 2017-11-14 | 2018-04-20 | 优酷网络技术(北京)有限公司 | Method for showing interface and device |
CN107943551A (en) * | 2017-11-14 | 2018-04-20 | 维沃移动通信有限公司 | A kind of screen display method and mobile terminal |
CN108153503A (en) * | 2017-12-20 | 2018-06-12 | 广东欧珀移动通信有限公司 | Display control method and related product |
CN108182043A (en) * | 2018-01-19 | 2018-06-19 | 维沃移动通信有限公司 | A kind of method for information display and mobile terminal |
-
2018
- 2018-07-26 CN CN201810835167.8A patent/CN109189517B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160351168A1 (en) * | 2014-02-18 | 2016-12-01 | Zte Corporation | Split-Screen Processing Method and Device, and Computer Storage Medium |
US20150363173A1 (en) * | 2014-06-13 | 2015-12-17 | Canon Kabushiki Kaisha | Apparatus, method, and non-transitory computer-readable storage medium |
CN107562316A (en) * | 2017-08-29 | 2018-01-09 | 广东欧珀移动通信有限公司 | Method for showing interface, device and terminal |
CN107943404A (en) * | 2017-11-14 | 2018-04-20 | 优酷网络技术(北京)有限公司 | Method for showing interface and device |
CN107943551A (en) * | 2017-11-14 | 2018-04-20 | 维沃移动通信有限公司 | A kind of screen display method and mobile terminal |
CN108153503A (en) * | 2017-12-20 | 2018-06-12 | 广东欧珀移动通信有限公司 | Display control method and related product |
CN108182043A (en) * | 2018-01-19 | 2018-06-19 | 维沃移动通信有限公司 | A kind of method for information display and mobile terminal |
Non-Patent Citations (1)
Title |
---|
王兴田: "基于灰阶图像的数据嵌入方法的研究", 《中国优秀博士学位论文全文数据库信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459227A (en) * | 2020-03-31 | 2020-07-28 | 联想(北京)有限公司 | Electronic device and display control method thereof |
CN112184685A (en) * | 2020-10-09 | 2021-01-05 | 合肥芯颖科技有限公司 | Image data determination method and device |
CN112184685B (en) * | 2020-10-09 | 2022-11-18 | 合肥芯颖科技有限公司 | Image data determination method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109189517B (en) | 2021-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255378A (en) | A kind of display control method and mobile terminal | |
CN108427876A (en) | A kind of fingerprint identification method and mobile terminal | |
CN109151180A (en) | A kind of object identifying method and mobile terminal | |
CN108491123A (en) | A kind of adjusting application program image target method and mobile terminal | |
CN108492246A (en) | A kind of image processing method, device and mobile terminal | |
CN108227996A (en) | A kind of display control method and mobile terminal | |
CN108494665A (en) | One population message display method and mobile terminal | |
CN109409244A (en) | A kind of object puts the output method and mobile terminal of scheme | |
CN109743503A (en) | Reminding method and terminal | |
CN110018805A (en) | A kind of display control method and mobile terminal | |
CN109033913A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN108063861A (en) | The method, apparatus and mobile terminal that a kind of state is reminded | |
CN110096203A (en) | A kind of screenshot method and mobile terminal | |
CN110138963A (en) | A kind of message treatment method and mobile terminal | |
CN109976844A (en) | A kind of message display method and mobile terminal | |
CN110138967A (en) | A kind of method of controlling operation thereof and terminal of terminal | |
CN109474747A (en) | A kind of information cuing method and mobile terminal | |
CN109831582A (en) | Non- response events processing method and terminal | |
CN109729301A (en) | A kind of message inspection method and device | |
CN108363914A (en) | Unlocked by fingerprint control method and device | |
CN109033912A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN109286720A (en) | A kind of the main screen selection method and device of multi-screen mobile terminal | |
CN108419283A (en) | A kind of method and mobile terminal of WIFI hot spot scanning | |
CN109189517A (en) | A kind of method and mobile terminal of display switching | |
CN108718360A (en) | A kind of charging method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |