CN108664228A - A kind of method for displaying image and mobile terminal - Google Patents

A kind of method for displaying image and mobile terminal Download PDF

Info

Publication number
CN108664228A
CN108664228A CN201710209279.8A CN201710209279A CN108664228A CN 108664228 A CN108664228 A CN 108664228A CN 201710209279 A CN201710209279 A CN 201710209279A CN 108664228 A CN108664228 A CN 108664228A
Authority
CN
China
Prior art keywords
mobile terminal
display mode
current
current display
image
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.)
Pending
Application number
CN201710209279.8A
Other languages
Chinese (zh)
Inventor
王煜辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhongxing Software Co Ltd
Original Assignee
Shanghai Zhongxing Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Zhongxing Software Co Ltd filed Critical Shanghai Zhongxing Software Co Ltd
Priority to CN201710209279.8A priority Critical patent/CN108664228A/en
Priority to PCT/CN2017/113253 priority patent/WO2018176876A1/en
Publication of CN108664228A publication Critical patent/CN108664228A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the invention discloses a kind of method for displaying image and mobile terminal, the method includes:When mobile terminal is shown predetermined image to be displayed under current display mode, judge whether the mobile terminal and the image to be displayed meet corresponding switching condition under the current display mode;When the mobile terminal and the image to be displayed meet corresponding switching condition under the current display mode, the mobile terminal is switched to the target display pattern from the current display mode;Wherein, the current display mode includes at least:Current resolution and current pixel density;The target display pattern includes at least:Target resolution and object pixel density;The image to be displayed is shown under the target display pattern.

Description

A kind of method for displaying image and mobile terminal
Technical field
The present invention relates to image display technology more particularly to a kind of method for displaying image and mobile terminal.
Background technology
With the development of mobile terminal, the size category of mobile terminal is more and more, and resolution ratio is also higher and higher, and user makes When watching video with mobile terminal, high-resolution can bring apparent and fine and smooth visual effect to user.Currently, most of The resolution ratio of mobile terminal is fixed, i.e., mobile terminal can only be by whole images to be displayed according to pre-set same point Resolution is shown.In this way, if the performance of mobile terminal is relatively low, the 3D rendering for needing processing complicated will certainly cause to move The operand of dynamic terminal is excessive, leads to that mobile terminal fever is serious, power consumption increases.So setting is differentiated in the terminal The adaptation function of rate is necessary so that the performance of the adaptive mobile terminal of resolution ratio of mobile terminal, so not The hardware spending and power consumption of mobile terminal only can be greatly saved, but also can significantly promote image to be displayed Fluency.
Existing partial movement terminal can support that the manual setting of resolution ratio, this method are by changing corresponding match at present File is set the resolution ratio for being suitable for mobile terminal is arranged.Specifically, user can input " wm in the order line of mobile terminal Size 720 × 1280 " or " am display-size 720 × 1280 ", you can set the resolution ratio of mobile terminal to 720×1280。
In addition, in order to ensure that mobile terminal can normally show image to be displayed, user is not only needed in the terminal Resolution ratio is set, and also needs to user and pixel density is correspondingly set in the terminal.Otherwise, if user reduces movement The resolution ratio of terminal, the pixel density without correspondingly reducing mobile terminal;Alternatively, user increases the resolution of mobile terminal Rate, the pixel density without correspondingly increasing mobile terminal, mobile terminal then can not normally show image to be displayed.For example, The element that image to be displayed is one 100 × 100 in mobile terminal, when the resolution ratio of mobile terminal is 1920 × 1080, this A element is 0.052 × 0.093 in the pixel density of mobile terminal;When the resolution ratio of mobile terminal is 1280 × 720, this Element is 0.078 × 0.139 in the pixel density of mobile terminal.
In the implementation of the present invention, inventor has found that at least there are the following problems in the prior art:
In the method for adjustment of existing resolution ratio, when mobile terminal is switched to target display pattern from current display mode When, user's manual setting target display pattern in the terminal is needed, i.e.,:Need user's manual setting point in the terminal Resolution and pixel density.However, when the image to be displayed in mobile terminal changes, since human eye is for mobile terminal The susceptibility of resolution ratio is relatively low, and therefore, user usually will not be adjusted the display pattern of mobile terminal manually, so not only The display effect of image to be displayed can be influenced, but also the power wastage of mobile terminal can be caused.
Invention content
To solve existing technical problem, an embodiment of the present invention is intended to provide a kind of method for displaying image and movement are whole End, can not only ensure the display effect of image to be displayed, but also can be to avoid the power wastage of mobile terminal.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
An embodiment of the present invention provides a kind of method for displaying image, the method includes:
When mobile terminal is shown predetermined image to be displayed under current display mode, the shifting is judged Whether dynamic terminal and the image to be displayed meet corresponding switching condition under the current display mode;
When the mobile terminal and the image to be displayed meet corresponding switching under the current display mode When condition, the mobile terminal is switched to the target display pattern from the current display mode;Wherein, described current aobvious Show that pattern includes at least:Current resolution and current pixel density;The target display pattern includes at least:Target resolution and Object pixel density;
The image to be displayed is shown under the target display pattern.
In the above-described embodiments, the judgement mobile terminal and the image to be displayed are in the current display mode Under whether meet corresponding switching condition, including:
Judge whether the mobile terminal meets the first switching condition under the current display mode;Wherein, described One switching condition includes at least:The corresponding battery condition of the mobile terminal and temperature condition;
When the mobile terminal meets first switching condition under the current display mode, wait showing described in judgement Whether diagram picture meets the second switching condition under the current display mode;Wherein, second switching condition includes at least: The corresponding frame per second condition of the image to be displayed.
In the above-described embodiments, described to judge whether the mobile terminal meets described under the current display mode One switching condition, including:
Judge whether the mobile terminal meets the battery condition under the current display mode;
When the mobile terminal meets the battery condition under the current display mode, the mobile terminal is judged Whether meet the temperature condition under the current display mode.
In the above-described embodiments, described the mobile terminal is switched to the target from the current display mode to show Pattern, including:
The mobile terminal is switched to the target resolution from the current resolution;
The mobile terminal is switched to the object pixel density from the current pixel density;Wherein, the target Resolution ratio is less than the current resolution;The object pixel density is less than the current pixel density.
In the above-described embodiments, judge whether mobile terminal and the image to be displayed meet corresponding cut described It changes before condition, the method further includes:
The corresponding configuration file of the target display pattern is obtained in the first memory space;
Alternatively, obtaining the corresponding configuration file of the target display pattern in the second memory space;Wherein, described first Memory space is the memory space of the mobile terminal;Second memory space is the memory space of cloud server.
The embodiment of the present invention additionally provides a kind of mobile terminal, and the mobile terminal includes:Judging unit, switch unit and Display unit;Wherein,
The judging unit carries out under current display mode predetermined image to be displayed for working as mobile terminal When display, it is corresponding to judge whether the mobile terminal and the image to be displayed meet under the current display mode Switching condition;
The switch unit is full under the current display mode for working as the mobile terminal and the image to be displayed When the corresponding switching condition of foot, the mobile terminal is switched to the target from the current display mode and shows mould Formula;Wherein, the current display mode includes at least:Current resolution and current pixel density;The target display pattern is extremely Include less:Target resolution and object pixel density;
The display unit, for showing the image to be displayed under the target display pattern.
In the above-described embodiments, the judging unit is specifically used for judging the mobile terminal in the current display mould Whether first switching condition is met under formula;Wherein, first switching condition includes at least:The corresponding electricity of the mobile terminal Condition and temperature condition;When the mobile terminal meets first switching condition under the current display mode, judge Whether the image to be displayed meets the second switching condition under the current display mode;Wherein, second switching condition It includes at least:The corresponding frame per second condition of the image to be displayed.
In the above-described embodiments, the judging unit is specifically used for judging the mobile terminal in the current display mould Whether the battery condition is met under formula;When the mobile terminal meets the battery condition under the current display mode When, judge whether the mobile terminal meets the temperature condition under the current display mode.
In the above-described embodiments, the switch unit, specifically for cutting the mobile terminal from the current resolution Change to the target resolution;The mobile terminal is switched to the object pixel density from the current pixel density;Its In, the target resolution is less than the current resolution;The object pixel density is less than the current pixel density.
In the above-described embodiments, the mobile terminal further includes:
Acquiring unit, for obtaining the corresponding configuration file of the target display pattern in the first memory space;Alternatively, The corresponding configuration file of the target display pattern is obtained in the second memory space;Wherein, first memory space is institute State the memory space of mobile terminal;Second memory space is the memory space of cloud server.
It can be seen that in the technical solution of the embodiment of the present invention, first judge mobile terminal under current display mode whether Meet pre-set switching condition, when mobile terminal meets switching condition under current display mode, by mobile terminal from Current display mode is switched to target display pattern, then by predetermined image to be displayed under the target display pattern It is shown.That is, in the technical solution of the embodiment of the present invention, cut when mobile terminal meets under current display mode When changing condition, can mobile terminal be automatically switched to target display pattern from current display mode.And in the prior art, When mobile terminal is switched to target display pattern from current display mode, user's manual setting target in the terminal is needed Display pattern.Therefore, compared to the prior art, the method for displaying image and mobile terminal that the embodiment of the present invention proposes, not only may be used To ensure the display effect of image to be displayed, but also can be to avoid the power wastage of mobile terminal;Also, the embodiment of the present invention Technical solution realize simple and convenient, convenient for universal, use scope is wider.
Description of the drawings
Fig. 1 is the implementation process schematic diagram of method for displaying image in the embodiment of the present invention;
Fig. 2 is to judge whether mobile terminal meets the implementation method flow signal of the first switching condition in the embodiment of the present invention Figure;
Fig. 3 is to judge whether image to be displayed meets the implementation method flow of the second switching condition and show in the embodiment of the present invention It is intended to;
Fig. 4 is the implementation method stream that mobile terminal determines the corresponding configuration file of target display pattern in the embodiment of the present invention Journey schematic diagram;
Fig. 5 is the first composed structure schematic diagram of mobile terminal in the embodiment of the present invention;
Fig. 6 is the second composed structure schematic diagram of mobile terminal in the embodiment of the present invention.
Specific implementation mode
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 describes.
In a specific embodiment of the present invention, Fig. 1 is the implementation process signal of method for displaying image in the embodiment of the present invention Figure.As shown in Figure 1, method for displaying image may comprise steps of:
Step 101, when mobile terminal is shown predetermined image to be displayed under current display mode, sentence Whether disconnected mobile terminal and image to be displayed meet pre-set switching condition under current display mode;When mobile terminal and When image to be displayed meets switching condition under current display mode, step 102 is executed;When mobile terminal and image to be displayed exist It is unsatisfactory for switching condition under current display mode, executes step 104.
In a specific embodiment of the present invention, when mobile terminal by predetermined image to be displayed in current display mode Under when being shown, it can be determined that whether mobile terminal and image to be displayed meet corresponding cut under current display mode Change condition.When mobile terminal and image to be displayed meet switching condition under current display mode, step 102 is executed;Work as shifting Dynamic terminal and image to be displayed are unsatisfactory for switching condition under current display mode, execute step 104.Specifically, in the present invention Specific embodiment in, can first judge whether mobile terminal meets the first switching condition under current display mode;Wherein, institute The first switching condition is stated to include at least:The corresponding battery condition of mobile terminal and temperature condition.When mobile terminal is shown currently Meet the first switching condition under pattern, can further judge whether image to be displayed meets second under current display mode and cut Change condition;Wherein, the second switching condition includes at least:The corresponding frame per second condition of image to be displayed.
Fig. 2 is to judge whether mobile terminal meets the implementation method flow signal of the first switching condition in the embodiment of the present invention Figure.As shown in Fig. 2, judge the method whether mobile terminal meets the first switching condition under current display mode may include with Lower step:
Step 201 judges whether mobile terminal meets battery condition under current display mode;If so, executing step 202;Otherwise, step 204 is executed.
In a specific embodiment of the present invention, image to be displayed is shown under current display mode when mobile terminal When, it can first judge whether mobile terminal meets battery condition under current display mode;When mobile terminal is in currently display mould When meeting battery condition under formula, step 202 is executed;When mobile terminal is unsatisfactory for battery condition under current display mode, hold Row step 204.Specifically, in a specific embodiment of the present invention, it can be determined that mobile terminal working as under current display mode Whether preceding electricity is more than pre-set power threshold;When current electric quantity of the mobile terminal under current display mode is more than electricity When threshold value, step 202 is executed;When current electric quantity of the mobile terminal under current display mode is less than or equal to power threshold When, execute step 204.
Step 202 judges whether mobile terminal meets temperature condition under current display mode;If so, executing step 203;Otherwise, step 204 is executed.
It in a specific embodiment of the present invention, can be with when mobile terminal meets battery condition under current display mode Further judge whether mobile terminal meets temperature condition under current display mode;When mobile terminal is under current display mode When meeting temperature condition, step 203 is executed;When mobile terminal is unsatisfactory for temperature condition under current display mode, step is executed Rapid 204.Specifically, in a specific embodiment of the present invention, it can be determined that current temperature of the mobile terminal under current display mode Whether degree is higher than pre-set temperature threshold;When Current Temperatures of the mobile terminal under current display mode are higher than temperature threshold When, execute step 203;When Current Temperatures of the mobile terminal under current display mode are below or equal to temperature threshold, hold Row step 204.
Step 203, judgement mobile terminal meet the first switching condition under current display mode.
In a specific embodiment of the present invention, when mobile terminal meets temperature condition under current display mode, i.e.,:When When Current Temperatures of the mobile terminal under current display mode are higher than temperature threshold, judgement mobile terminal is under current display mode Meet the first switching condition.
Step 204, judgement mobile terminal are unsatisfactory for the first switching condition under current display mode.
In a specific embodiment of the present invention, when mobile terminal is unsatisfactory for temperature condition under current display mode, i.e.,: When Current Temperatures of the mobile terminal under current display mode are below or equal to temperature threshold, judgement mobile terminal is current The first switching condition is unsatisfactory under display pattern.
According to above-mentioned analysis it is found that through the above steps 201~204, it can be determined that mobile terminal is shown currently Whether first switching condition is met under pattern;It, can be with when mobile terminal meets the first switching condition under current display mode Further judge whether image to be displayed meets the second switching condition;When mobile terminal is unsatisfactory for first under current display mode When switching condition, the flow for displaying of image to be displayed can be terminated.
Fig. 3 is to judge whether image to be displayed meets the implementation method flow of the second switching condition and show in the embodiment of the present invention It is intended to.As shown in figure 3, judging whether image to be displayed meets the method for the second switching condition under current display mode and can wrap Include following steps:
Step 301 judges whether image to be displayed is less than pre-set frame per second in the current frame rate of current display mode Threshold value;If so, executing step 302;Otherwise, step 303 is executed.
In a specific embodiment of the present invention, when mobile terminal meets the first switching condition under current display mode, It can further judge whether image to be displayed meets the second switching condition under current display mode;Wherein, the second switching item Part includes at least:The corresponding frame per second condition of image to be displayed.Specifically, in a specific embodiment of the present invention, it can be determined that wait for It shows whether the current frame rate of image is less than frame per second threshold value, when the current frame rate of image to be displayed is less than frame per second threshold value, executes Step 302;When the current frame rate of image to be displayed is more than or equal to frame per second threshold value, step 303 is executed.
Step 302, judgement image to be displayed meet the second switching condition under current display mode.
In a specific embodiment of the present invention, when the current frame rate of image to be displayed is less than frame per second threshold value, judge to wait showing Diagram picture meets the second switching condition under current display mode.
Step 303, judgement image to be displayed are unsatisfactory for the second switching condition under current display mode.
In a specific embodiment of the present invention, when the current frame rate of image to be displayed is more than or equal to frame per second threshold value, Judgement image to be displayed is unsatisfactory for the second switching condition under current display mode.
According to the description above it is found that through the above steps 301~303, it can be determined that image to be displayed is shown currently Show whether meet the second switching condition under pattern;When image to be displayed meets the second switching condition under current display mode, Mobile terminal can be switched to target display pattern from current display mode;When image to be displayed under current display mode not When meeting the second switching condition, image flow for displaying can be terminated.
Mobile terminal is switched to target display pattern by step 102 from current display mode.
In a specific embodiment of the present invention, meet under current display mode when mobile terminal and image to be displayed respectively When corresponding switching condition, mobile terminal can be switched to target display pattern from current display mode;Wherein, current display Pattern includes at least:Current resolution and current pixel density;Target display pattern includes at least:Target resolution and target picture Plain density.
Specifically, in a specific embodiment of the present invention, when mobile terminal and image to be displayed are under current display mode When meeting corresponding switching condition, mobile terminal can be switched to target resolution from current resolution;It will be mobile whole End is switched to object pixel density from current pixel density;Wherein, target resolution is less than current resolution;Object pixel density Less than current pixel density.
Preferably, in a specific embodiment of the present invention, judging whether mobile terminal and image to be displayed meet respectively Before corresponding switching condition, mobile terminal can also obtain the corresponding configuration text of target display pattern in the first memory space Part;Alternatively, obtaining the corresponding configuration file of target display pattern in the second memory space;Wherein, the first memory space is to move The memory space of dynamic terminal;Second memory space is the memory space of cloud server.Specifically, in the first memory space or The corresponding configuration file of target display pattern pre-saved in second memory space can be as described in Table 1:
Resolution ratio Pixel density Cpu load
Resolution ratio 1 Pixel density 1 Cpu load 1
Resolution ratio 2 Pixel density 2 Cpu load 2
Resolution, N Pixel density N Cpu load N
Table 1
As described in above-mentioned table 1, the target display pattern that is pre-saved in the first memory space or the second memory space May include in corresponding configuration file:Resolution ratio, pixel density and cpu load;Wherein, resolution ratio may include:Resolution ratio 1, resolution ratio 2 ..., resolution, N;Pixel density may include:Pixel density 1, pixel density 2 ..., pixel density N;CPU is negative Load may include:Cpu load 1, cpu load 2 ..., cpu load N;Wherein, N is the natural number more than or equal to 1.Preferably, In specific embodiments of the present invention, resolution ratio 1>Resolution ratio 2>…>Resolution, N;Pixel density 1>Pixel density 2>…>Pixel is close Spend N;Cpu load 1>Cpu load 2>…>Cpu load N.
Fig. 4 is the implementation method stream that mobile terminal determines the corresponding configuration file of target display pattern in the embodiment of the present invention Journey schematic diagram.As shown in figure 4, the method that mobile terminal determines the corresponding configuration file of target display pattern may include following step Suddenly:
Step 401, when mobile terminal is shown image to be displayed under m-th display pattern, judge it is mobile eventually Whether end and image to be displayed meet corresponding switching condition under m-th display pattern;If so, executing step 402;It is no Then, step 404 is executed.
In a specific embodiment of the present invention, image to be displayed is shown under m-th display pattern when mobile terminal When showing, it can be determined that whether mobile terminal and image to be displayed meet corresponding switching condition under m-th display pattern; Wherein, M is the natural number more than or equal to 1.
Specifically, in a specific embodiment of the present invention, it can be determined that whether mobile terminal is full under m-th display pattern Sufficient battery condition;When mobile terminal meets battery condition under m-th display pattern, it can further judge that mobile terminal exists Whether meet temperature condition under m-th display pattern;When mobile terminal meets temperature condition under m-th display pattern, also It can further judge whether image to be displayed meets frame per second condition under m-th display pattern.When mobile terminal and to be shown When image meets corresponding switching condition under m-th display pattern, step 402 is executed;When mobile terminal and to be shown When image is unsatisfactory for corresponding switching condition under m-th display pattern, step 404 is executed.
Mobile terminal is switched to the M+1 display pattern by step 402 from m-th display pattern.
In a specific embodiment of the present invention, meet under m-th display pattern when mobile terminal and image to be displayed each When self-corresponding switching condition, mobile terminal is switched to the M+1 display pattern from m-th display pattern.I.e.:When mobile whole End meets battery condition and temperature condition under m-th display pattern, and image to be displayed meets frame under m-th display pattern When rate condition, mobile terminal can be switched to the M+1 display pattern from m-th display pattern;Wherein, m-th shows mould Formula includes at least:Resolution ratio M and pixel density M;The M+1 display pattern includes at least:Resolution ratio M+1 and pixel density M+1.
Step 403 sets the M+1 display pattern to m-th display pattern, returns to step 401.
In a specific embodiment of the present invention, mobile terminal is being switched to the M+1 display mould from m-th display pattern After formula, the M+1 display pattern can be set to m-th display pattern, return to step 401.
Step 404 preserves the corresponding configuration file of m-th display pattern.
In a specific embodiment of the present invention, itself is unsatisfactory under m-th display pattern when mobile terminal corresponding to cut Condition is changed, or when image to be displayed is unsatisfactory for itself corresponding switching condition under m-th display pattern, mobile terminal can To preserve the corresponding configuration file of m-th display pattern, at this point, the corresponding configuration file of m-th display pattern is mesh Mark the corresponding configuration file of display pattern.
According to above-mentioned analysis it is found that through the above steps 401~404, mobile terminal can determine that target shows mould The corresponding configuration file of formula.Specifically, which can preserve in the terminal, can also be stored in cloud server In, therefore, mobile terminal can obtain the corresponding configuration file of target display pattern in the first memory space;Alternatively, mobile Terminal can also obtain the corresponding configuration file of the target display pattern in the second memory space.
Step 103 shows image to be displayed under target display pattern.
In a specific embodiment of the present invention, mobile terminal from current display mode be switched to target display pattern it Afterwards, mobile terminal can show image to be displayed under target display pattern.Specifically, mobile terminal can will wait showing Diagram picture is shown under target resolution and object pixel density.
Step 104, the flow for displaying for terminating image to be displayed.
In a specific embodiment of the present invention, when mobile terminal and image to be displayed are unsatisfactory for cutting under current display mode When changing condition, the flow for displaying of image to be displayed can be terminated.
During actual coding, modification resolution ratio can there are many methods, such as can directly be write in code generation Code executes " am display-size 720x1280 " instruction;The configuration file of Android system can also be changed, after restart into Row resolution ratio is changed.
In addition, the method for modification pixel density, can generally use the build.prop under code revision system subregions The correspondence of " ro.sif.lcd_density " field in file, pixel density and resolution ratio is:
Object pixel density=current pixel density/(current resolution/target resolution).
Such as:Equipment acquiescence resolution ratio be:1080p (1920x1080), pixel density are:480.If resolution Rate is modified to 720p (1280x720), then just calculating object pixel density=480/ (1080/720) according to the methods below =320.
The method for displaying image that the embodiment of the present invention proposes, first judges whether mobile terminal meets under current display mode Pre-set switching condition, when mobile terminal meets switching condition under current display mode, by mobile terminal from current Display pattern is switched to target display pattern, then carries out predetermined image to be displayed under the target display pattern Display.That is, in the technical solution of the embodiment of the present invention, when mobile terminal meets switching item under current display mode When part, can mobile terminal be automatically switched to target display pattern from current display mode.And in the prior art, work as shifting When dynamic terminal is switched to target display pattern from current display mode, needing user, manual setting target is shown in the terminal Pattern.Therefore, compared to the prior art, the method for displaying image that the embodiment of the present invention proposes, can not only ensure figure to be shown The display effect of picture, but also can be to avoid the power wastage of mobile terminal;Also, the technical solution of the embodiment of the present invention is realized Simple and convenient, convenient for universal, use scope is wider.
Fig. 5 is the first composed structure schematic diagram of mobile terminal in the embodiment of the present invention.As shown in figure 5, mobile terminal can To include:Judging unit 501, switch unit 502 and display unit 503;Wherein,
The judging unit 501 is used for predetermined image to be displayed when mobile terminal under current display mode When being shown, it is respectively right to judge whether the mobile terminal and the image to be displayed meet under the current display mode The switching condition answered;
The switch unit 502, for working as the mobile terminal and the image to be displayed in the current display mode Under when meeting corresponding switching condition, the mobile terminal is switched to the target from the current display mode and is shown Pattern;Wherein, the current display mode includes at least:Current resolution and current pixel density;The target display pattern It includes at least:Target resolution and object pixel density;
The display unit 503, for showing the image to be displayed under the target display pattern.
Further, the judging unit 501 is specifically used for judging the mobile terminal under the current display mode Whether first switching condition is met;Wherein, first switching condition includes at least:The corresponding battery condition of the mobile terminal And temperature condition;When the mobile terminal meets first switching condition under the current display mode, described in judgement Whether image to be displayed meets the second switching condition under the current display mode;Wherein, second switching condition is at least Including:The corresponding frame per second condition of the image to be displayed.
Further, the judging unit 501 is specifically used for judging the mobile terminal under the current display mode Whether the battery condition is met;When the mobile terminal meets the battery condition under the current display mode, sentence Whether the mobile terminal that breaks meets the temperature condition under the current display mode.
Further, the switch unit 502, specifically for the mobile terminal to be switched to from the current resolution The target resolution;The mobile terminal is switched to the object pixel density from the current pixel density;Wherein, institute It states target resolution and is less than the current resolution;The object pixel density is less than the current pixel density.
Fig. 6 is the second composed structure schematic diagram of mobile terminal in the embodiment of the present invention.As shown in fig. 6, described mobile whole End further includes:
Acquiring unit 504, for obtaining the corresponding configuration file of the target display pattern in the first memory space;Or Person obtains the corresponding configuration file of the target display pattern in the second memory space;Wherein, first memory space is The memory space of the mobile terminal;Second memory space is the memory space of cloud server.
In practical applications, the judging unit 501, switch unit 502, display unit 503 and acquiring unit 504 It can by central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or the scene in mobile terminal Program the realizations such as gate array (FPGA).
In addition, each unit in the present embodiment can physically exist alone, it can also two or more units In being integrated in one unit.The form that hardware had both may be used in above-mentioned integrated unit is realized, software function mould can also be used The form of block is realized.
If the integrated unit realizes that being not intended as independent product is sold in the form of software function module Or in use, can be stored in a mobile terminal read/write memory medium, based on this understanding, the technology of the present embodiment Substantially all or part of the part that contributes to existing technology or the technical solution can be with software in other words for scheme The form of product embodies, which is stored in a storage medium, including some instructions are making Obtain a mobile terminal device (can be individual mobile terminal, server or the network equipment etc.) or processor (processing Device) execute the present embodiment the method all or part of step.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, only Read memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disc Or the various media that can store program code such as CD.
Specifically, the corresponding program of mobile terminal instruction of a kind of image processing method in the present embodiment can be stored In CD, hard disk, on the storage mediums such as USB flash disk, when mobile terminal journey corresponding with a kind of method for displaying image in storage medium Sequence instruction is read or is performed by an electronic equipment, includes the following steps:
When mobile terminal is shown predetermined image to be displayed under current display mode, the shifting is judged Whether dynamic terminal and the image to be displayed meet corresponding switching condition under the current display mode;
When the mobile terminal and the image to be displayed meet corresponding switching under the current display mode When condition, the mobile terminal is switched to the target display pattern from the current display mode;Wherein, described current aobvious Show that pattern includes at least:Current resolution and current pixel density;The target display pattern includes at least:Target resolution and Object pixel density;
The image to be displayed is shown under the target display pattern.
The mobile terminal that the embodiment of the present invention proposes, first judges whether mobile terminal meets in advance under current display mode The switching condition of setting shows mobile terminal from current when mobile terminal meets switching condition under current display mode Then pattern switching shows predetermined image to be displayed to target display pattern under the target display pattern Show.That is, in the technical solution of the embodiment of the present invention, when mobile terminal meets switching condition under current display mode When, can mobile terminal be automatically switched to target display pattern from current display mode.And in the prior art, work as movement When terminal is switched to target display pattern from current display mode, needing user, manual setting target shows mould in the terminal Formula.Therefore, compared to the prior art, the mobile terminal that the embodiment of the present invention proposes can not only ensure the aobvious of image to be displayed Show effect, but also can be to avoid the power wastage of mobile terminal;Also, the technical solution of the embodiment of the present invention realizes simple side Just, it is convenient for popularizing, use scope is wider.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention can be used can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. a kind of method for displaying image, which is characterized in that the method includes:
When mobile terminal is shown predetermined image to be displayed under current display mode, judge described mobile whole Whether end and the image to be displayed meet corresponding switching condition under the current display mode;
When the mobile terminal and the image to be displayed meet corresponding switching condition under the current display mode When, the mobile terminal is switched to the target display pattern from the current display mode;Wherein, the current display mould Formula includes at least:Current resolution and current pixel density;The target display pattern includes at least:Target resolution and target Pixel density;
The image to be displayed is shown under the target display pattern.
2. according to the method described in claim 1, it is characterized in that, the judgement mobile terminal and the image to be displayed Whether meet corresponding switching condition under the current display mode, including:
Judge whether the mobile terminal meets the first switching condition under the current display mode;Wherein, it described first cuts The condition of changing includes at least:The corresponding battery condition of the mobile terminal and temperature condition;
When the mobile terminal meets first switching condition under the current display mode, the figure to be shown is judged As whether meeting the second switching condition under the current display mode;Wherein, second switching condition includes at least:It is described The corresponding frame per second condition of image to be displayed.
3. according to the method described in claim 2, it is characterized in that, described judge the mobile terminal in the current display mould Whether first switching condition is met under formula, including:
Judge whether the mobile terminal meets the battery condition under the current display mode;
When the mobile terminal meets the battery condition under the current display mode, judge the mobile terminal in institute It states and whether meets the temperature condition under current display mode.
4. according to the method described in claim 1, it is characterized in that, it is described by the mobile terminal from the current display mode It is switched to the target display pattern, including:
The mobile terminal is switched to the target resolution from the current resolution;
The mobile terminal is switched to the object pixel density from the current pixel density;Wherein, the target is differentiated Rate is less than the current resolution;The object pixel density is less than the current pixel density.
5. according to the method described in claim 1, it is characterized in that, being in the judgement mobile terminal and the image to be displayed It is no meet corresponding switching condition before, the method further includes:
The corresponding configuration file of the target display pattern is obtained in the first memory space;
Alternatively, obtaining the corresponding configuration file of the target display pattern in the second memory space;Wherein, first storage Space is the memory space of the mobile terminal;Second memory space is the memory space of cloud server.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:Judging unit, switch unit and display unit;Its In,
The judging unit shows under current display mode predetermined image to be displayed for working as mobile terminal When, judge whether the mobile terminal and the image to be displayed meet corresponding switching under the current display mode Condition;
The switch unit, for meeting under the current display mode respectively when the mobile terminal and the image to be displayed When self-corresponding switching condition, the mobile terminal is switched to the target display pattern from the current display mode;Its In, the current display mode includes at least:Current resolution and current pixel density;The target display pattern is at least wrapped It includes:Target resolution and object pixel density;
The display unit, for showing the image to be displayed under the target display pattern.
7. mobile terminal according to claim 6, which is characterized in that the judging unit is specifically used for judging the shifting Whether dynamic terminal meets the first switching condition under the current display mode;Wherein, first switching condition includes at least: The corresponding battery condition of the mobile terminal and temperature condition;When the mobile terminal meets institute under the current display mode When stating the first switching condition, judge whether the image to be displayed meets the second switching condition under the current display mode; Wherein, second switching condition includes at least:The corresponding frame per second condition of the image to be displayed.
8. mobile terminal according to claim 7, which is characterized in that the judging unit is specifically used for judging the shifting Whether dynamic terminal meets the battery condition under the current display mode;When the mobile terminal is in the current display mould When meeting the battery condition under formula, judge whether the mobile terminal meets the temperature strip under the current display mode Part.
9. mobile terminal according to claim 6, which is characterized in that the switch unit is specifically used for the movement Terminal is switched to the target resolution from the current resolution;The mobile terminal is switched from the current pixel density To the object pixel density;Wherein, the target resolution is less than the current resolution;The object pixel density is less than The current pixel density.
10. mobile terminal according to claim 6, which is characterized in that the mobile terminal further includes:
Acquiring unit, for obtaining the corresponding configuration file of the target display pattern in the first memory space;Alternatively, The corresponding configuration file of the target display pattern is obtained in two memory spaces;Wherein, first memory space is the shifting The memory space of dynamic terminal;Second memory space is the memory space of cloud server.
CN201710209279.8A 2017-03-31 2017-03-31 A kind of method for displaying image and mobile terminal Pending CN108664228A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710209279.8A CN108664228A (en) 2017-03-31 2017-03-31 A kind of method for displaying image and mobile terminal
PCT/CN2017/113253 WO2018176876A1 (en) 2017-03-31 2017-11-28 Image display method, mobile terminal, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209279.8A CN108664228A (en) 2017-03-31 2017-03-31 A kind of method for displaying image and mobile terminal

Publications (1)

Publication Number Publication Date
CN108664228A true CN108664228A (en) 2018-10-16

Family

ID=63674148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209279.8A Pending CN108664228A (en) 2017-03-31 2017-03-31 A kind of method for displaying image and mobile terminal

Country Status (2)

Country Link
CN (1) CN108664228A (en)
WO (1) WO2018176876A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981903A (en) * 2019-03-27 2019-07-05 联想(北京)有限公司 A kind of image processing method and electronic equipment
CN110704008A (en) * 2019-09-30 2020-01-17 联想(北京)有限公司 Data reading and writing method and device
CN111475079A (en) * 2020-03-30 2020-07-31 维沃移动通信有限公司 Object management method and electronic equipment
CN113098946A (en) * 2021-03-26 2021-07-09 西安万像电子科技有限公司 Cloud desktop scene identification method and device, storage medium and electronic device
WO2021259249A1 (en) * 2020-06-24 2021-12-30 深圳市万普拉斯科技有限公司 Data display processing method and apparatus, computer device and storage medium
CN114339066A (en) * 2020-09-30 2022-04-12 上海中兴软件有限责任公司 Image processing method, device, terminal and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090160841A1 (en) * 2003-09-30 2009-06-25 Fletcher Terry M Switching display update properties upon detecting a power management event
CN101719965A (en) * 2009-12-03 2010-06-02 北京中星微电子有限公司 Power saving method and device for mobile terminal
CN103559151A (en) * 2013-11-13 2014-02-05 上海斐讯数据通信技术有限公司 Method and device for switching screen resolution of mobile terminal
CN104021036A (en) * 2013-03-01 2014-09-03 联想(北京)有限公司 Electronic equipment and electronic equipment state switching method
CN106293579A (en) * 2016-07-27 2017-01-04 上海与德通讯技术有限公司 A kind of screen resolution changing method, device and intelligent terminal
CN106462325A (en) * 2014-05-27 2017-02-22 三星电子株式会社 Method of controlling display and electronic device for providing the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682744B (en) * 2012-06-06 2014-05-14 天津三星电子有限公司 Resolution switching control method for display terminal and display terminal
CN106325800A (en) * 2016-09-12 2017-01-11 上海摩软通讯技术有限公司 Method, system and mobile terminal for controlling screen resolution

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090160841A1 (en) * 2003-09-30 2009-06-25 Fletcher Terry M Switching display update properties upon detecting a power management event
CN101719965A (en) * 2009-12-03 2010-06-02 北京中星微电子有限公司 Power saving method and device for mobile terminal
CN104021036A (en) * 2013-03-01 2014-09-03 联想(北京)有限公司 Electronic equipment and electronic equipment state switching method
CN103559151A (en) * 2013-11-13 2014-02-05 上海斐讯数据通信技术有限公司 Method and device for switching screen resolution of mobile terminal
CN106462325A (en) * 2014-05-27 2017-02-22 三星电子株式会社 Method of controlling display and electronic device for providing the same
CN106293579A (en) * 2016-07-27 2017-01-04 上海与德通讯技术有限公司 A kind of screen resolution changing method, device and intelligent terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109981903A (en) * 2019-03-27 2019-07-05 联想(北京)有限公司 A kind of image processing method and electronic equipment
CN110704008A (en) * 2019-09-30 2020-01-17 联想(北京)有限公司 Data reading and writing method and device
CN111475079A (en) * 2020-03-30 2020-07-31 维沃移动通信有限公司 Object management method and electronic equipment
WO2021259249A1 (en) * 2020-06-24 2021-12-30 深圳市万普拉斯科技有限公司 Data display processing method and apparatus, computer device and storage medium
CN114339066A (en) * 2020-09-30 2022-04-12 上海中兴软件有限责任公司 Image processing method, device, terminal and medium
CN113098946A (en) * 2021-03-26 2021-07-09 西安万像电子科技有限公司 Cloud desktop scene identification method and device, storage medium and electronic device
CN113098946B (en) * 2021-03-26 2023-12-22 西安万像电子科技有限公司 Cloud desktop scene identification method and device, storage medium and electronic device

Also Published As

Publication number Publication date
WO2018176876A1 (en) 2018-10-04

Similar Documents

Publication Publication Date Title
CN108664228A (en) A kind of method for displaying image and mobile terminal
WO2017193576A1 (en) Video resolution adaptation method and apparatus, and virtual reality terminal
US10037070B2 (en) Image display method and display system
CN103544253B (en) A kind of realization method and system that picture is shown in a manner of waterfall stream
CN106502613B (en) A kind of method and device to Load Image
US10140685B2 (en) Display device, system and controlling method therefor
CN111816139B (en) Screen refresh rate switching method and electronic equipment
CN108984245B (en) Page switching method and system based on single-view controller
US20170161232A1 (en) Method and electronic device for configuring a video player in a web page
CN103593820A (en) Method for picture processing and terminal
CN106708478B (en) Scroll view display method and apparatus
CN104182141B (en) A kind of information processing method and electronic equipment
CN103260074A (en) Method, device and terminal of image displaying
CN103220348B (en) A kind of picture batch is uploaded and fidelity Zoom method and system
CN105807890A (en) Information display method and device and electronic equipment
CN105389386B (en) A kind of page processing method and device based on search result
CN116193159A (en) Image data adjustment method and device, electronic equipment and storage medium
CN113660516B (en) Video display method, device, equipment and medium
EP3255627A1 (en) Image display method and device
CN106293030B (en) A kind of information processing method and electronic equipment
CN109885227A (en) Content display method, display terminal and computer storage medium
CN104572609B (en) The subfield composition method and device of electronic document
CN112948034A (en) Interface display method and device and electronic equipment
CN106598595B (en) Method and device for replacing starting-up image of intelligent terminal
CN109684010A (en) Information display method and device and electronic equipment

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181016