Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "part", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no peculiar meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, an embodiment of the present invention provides a picture display method, including:
step S110, detecting an included angle between a first screen and a second screen of the terminal, wherein the first screen and the second screen are foldable.
The technical scheme of the embodiment is suitable for the intelligent terminal which is simultaneously provided with two symmetrical screens, requires that the sizes and the resolutions of the two display screens are the same, and can be in the form of a left screen, a right screen or an upper screen and a lower screen. The main structure of the double-screen is a turning folding mode, and the turning folding screen can be in a left screen form and a right screen form, and also can be in an upper screen form and a lower screen form, which are respectively shown in the following figures 2 and 3.
In the present embodiment, a left-right double screen is taken as an example for explanation. If it is that upper and lower double-screen intelligent terminal is suitable for equally: firstly, judging a double-screen unfolding included angle theta, and determining whether the double screens are in an unfolding state; when 0 ° < θ ═ 180 °, it is considered as a double-screen spread state, and the picture library is a display mode according to the technical solution of the present embodiment. When theta is 0 deg. or 180 deg. < theta < 360 deg., it is considered as a dual-screen folded or non-viewing state, and the picture library is a traditional intelligent terminal implementation.
And step S120, when the size of the included angle meets the preset condition, displaying the picture selected by the user through the first screen and the second screen, wherein the first screen and the second screen respectively display different parts of the picture.
In this embodiment, the current picture is displayed on the large screen spliced by the two screens by using a switching button or a gesture operation.
As shown in fig. 4, an embodiment of the present invention provides a picture display method, including:
step S410, calculating a first included angle between the first screen and the gravity direction and a second included angle between the second screen and the gravity direction, and calculating the included angle according to the first included angle and the second included angle.
In this embodiment, the double-screen spread state is determined by calculating an angle between a vertical line (normal) of the left and right screen display surfaces and a direction of gravity, and obtaining a double-screen spread angle θ, as shown in fig. 5, specifically, θ ═ 90 ° - α) + (90 ° - β) ═ 180 ° - (α + β).
In step S420, when the size of the included angle meets the preset condition, a first picture is displayed through the first screen, and a second picture is displayed through the second screen.
In the present embodiment, step S102 is considered as a two-screen spread state when 0 ° < θ < — 180 °. The photo gallery default displays the dual screen mode as shown in FIG. 6. In the dual-screen mode, the best viewing mode is when the spread angle θ is 180 °. Under the double-screen mode of the picture library, the left screen and the right screen respectively display one large picture and display 2 large pictures at a time, so that the viewing content is increased, and the comparison and viewing of two adjacent pictures are facilitated. For example, when the current left screen picture and the current right screen picture correspond to the picture database with the sequence number of x, x +1, and the picture display area on any screen (left screen or right screen) is detected to have sliding operation, for example, if the picture display area on the left screen or the right screen slides rightwards, 2 pictures are stepped leftwards, and the picture x-2 and the picture x-1 are displayed; and when detecting that the picture display area of any screen (left screen or right screen) has left sliding operation, stepping 2 pictures to the right, and displaying pictures x +2 and x + 3. Under the double-screen mode, the left screen and the right screen have independent picture operation functions of deleting, sharing and the like, and the current screen picture file can be deleted or shared respectively.
And step S430, selecting a picture from the first screen or the second screen according to the operation of the user, displaying the picture in an enlarged mode through the first screen and the second screen, setting the picture displayed vertically on the first screen or the second screen to be displayed transversely on the first screen and the second screen, calculating the resolution of the transverse display of the picture, and displaying the picture on the first screen and the second screen according to the resolution.
In this embodiment, in the dual-screen mode, the current screen picture is switched and displayed on the large screen spliced by the dual screens by using a switching button or a gesture of double-click, double-finger zoom-in, and the like, which is defined as the large-screen mode.
Taking a common screen resolution of 1080P as an example, when the left and right screen included angle θ is 180 °, a picture corresponding to a mainstream 13.0MP pixel is displayed:
1) picture 4:3 landscape mode, normal display on 1080P screen, best display calculated as, according to display ratio 1080/y-4/3: 1080*810.
When the mode is switched to the large screen mode, the display proportion is calculated as follows: 2x 1080/y 4/3, the calculated optimal display resolution is 2160 x 1620, and it can be seen that in the 4:3 standard size picture, the display resolution reaches 2x 2y in the large screen mode, i.e. the horizontal direction and the vertical direction are increased by one time. As shown in fig. 7.
2) Picture 3: 4 portrait mode, normal display on 1080P screen, according to the display ratio 1080/y-3/4, the best display is calculated as: 1080*1440.
When the mode is switched to the large screen mode, the display proportion is calculated as follows: x/1920 is 3/4, the best display is calculated as: 1440*1920. That is, x is 3y/4, while x is 9y/16 in the normal mode, the display resolution is significantly increased in the large screen mode. As shown in fig. 8.
Therefore, under the large-screen mode, the characteristic of double-screen unfolding is fully utilized, the display area can be enlarged under the condition of no scale loss, and pictures can be displayed on a larger picture. The picture details are convenient to look over, and the experience of looking over is promoted.
When the angle is 0 degrees < theta <180 degrees, the characteristics of the curved screen can be simulated, and the incompletely unfolded state of the double screens is simulated into the curved screen to display pictures in a large picture. The display technology adopts a curved screen display method, which is not described in detail herein. And under the large screen mode, the gesture operations such as the reduction of the two fingers and the like are detected by using a switching button or a picture display area on any display screen, and the mode is switched back to the double screen mode.
A specific example of the technical solution of the present embodiment is as follows:
for the camera module, when the double-screen expansion state is judged, the default mode is the double-screen mode, for example, the screen 1 is a normal shooting preview, and the screen 2 is a shooting preview and the like.
When the double-click or double-finger amplification operation is detected in the preview area of the screen 1, the photographing preview interface is switched to a large screen mode. The shooting preview is switched to the large screen spliced by the double screens for displaying. The preview area is bigger under the large screen mode, can restore the scene of shooing better, promotes the experience of shooing.
Under the large screen mode, when the preview area detects the double-finger zoom-out operation, the shooting preview interface is switched back to the double-screen mode, and the use of different shooting scenes is met.
As shown in fig. 9, an embodiment of the present invention provides a picture display method, including:
step S910, calculate a first included angle between the first screen and the gravity direction, and a second included angle between the second screen and the gravity direction, and calculate the included angle according to the first included angle and the second included angle.
Step S920, when the size of the included angle meets the preset condition, displaying the first picture and the third picture through the first screen, and displaying the second picture and the fourth picture through the second screen.
In step S930, a picture is selected from the first screen or the second screen according to the user' S operation, and the picture is displayed in an enlarged manner through the first screen and the second screen.
A specific example of the technical solution of the present embodiment is as follows:
and displaying the picture by splicing pictures in the picture library. The sizes of the jigsaw pictures are different due to different templates, numbers and the like selected by users. In the current common checking mode of the intelligent terminal picture library and the double-screen mode related by the invention, the picture mosaic pictures are often displayed in a reduced size, and the checking experience is not good.
Under the double-screen mode, when the amplification operation of the picture display area of any screen is detected, the mode is switched to the large-screen mode, and the jigsaw pictures can be displayed on the large screen spliced by the double screens according to the optimal display proportion. The display area is increased, and the checking experience of the jigsaw picture is improved.
Under the large screen mode, when the picture display area detects the double-finger zoom-out operation, the picture display is switched back to the double-screen mode, and different viewing scenes are met.
The current jigsaw template is limited by screen display, and the number of the jigsaw in the general template is small, or the jigsaw content in each area is small when the number of the jigsaw is large.
Furthermore, a large-screen jigsaw puzzle mode can be designed for the symmetrical double-screen terminal. The following description will take a symmetric dual screen of left and right screens as an example. As shown in fig. 10.
Under the large screen mode, the number of the jigsaw pieces can be increased by at least 2 times under the condition of not reducing the display content of the jigsaw, and the jigsaw templates are enriched.
Under the large screen mode, the display area of the selected jigsaw picture is enlarged under the condition of not increasing the number of the jigsaw pieces. If the picture is a 2-picture jigsaw, the effect of splicing the left picture and the right picture in a ratio of 1:1 can be realized, or the jigsaw can be realized in other modes. Compared with the single-screen intelligent terminal, the display content of the jigsaw area is slightly smaller, and the improvement is great.
Meanwhile, the picture mosaic is just optimally displayed on a large screen spliced by two screens in a large screen mode, so that the display area is increased, and the viewing experience of the picture mosaic is improved.
As shown in fig. 11, a terminal having a foldable first screen 1110 and a second screen 1120 is provided in one embodiment of the present invention; the terminal also includes a processor 1130, memory 1140 and a communication bus 1150;
a communication bus 1150 is used for interfacing communications between the processor 1130 and the memory 1140;
processor 1130 is configured to execute the picture display program stored in memory 1140 to perform the following steps:
an included angle between a first screen and a second screen of the terminal is detected, and the first screen and the second screen are foldable.
The technical scheme of the embodiment is suitable for the intelligent terminal which is simultaneously provided with two symmetrical screens, requires that the sizes and the resolutions of the two display screens are the same, and can be in the form of a left screen, a right screen or an upper screen and a lower screen. The main structure of the double-screen is a turning folding mode, and the turning folding screen can be in a left screen form and a right screen form, and also can be in an upper screen form and a lower screen form, which are respectively shown in the following figures 2 and 3.
In the present embodiment, a left-right double screen is taken as an example for explanation. If it is that upper and lower double-screen intelligent terminal is suitable for equally: firstly, judging a double-screen unfolding included angle theta, and determining whether the double screens are in an unfolding state; when 0 ° < θ ═ 180 °, it is considered as a double-screen spread state, and the picture library is a display mode according to the technical solution of the present embodiment. When theta is 0 deg. or 180 deg. < theta < 360 deg., it is considered as a dual-screen folded or non-viewing state, and the picture library is a traditional intelligent terminal implementation.
And when the size of the included angle meets the preset condition, displaying the picture selected by the user through the first screen and the second screen, wherein the first screen and the second screen respectively display different parts of the picture.
In this embodiment, the current picture is displayed on the large screen spliced by the two screens by using a switching button or a gesture operation.
As shown in fig. 11, a terminal having a foldable first screen 1110 and a second screen 1120 is provided in one embodiment of the present invention; the terminal also includes a processor 1130, memory 1140 and a communication bus 1150;
a communication bus 1150 is used for interfacing communications between the processor 1130 and the memory 1140;
processor 1130 is configured to execute the picture display program stored in memory 1140 to perform the following steps:
and calculating a first included angle between the first screen and the gravity direction and a second included angle between the second screen and the gravity direction, and calculating the included angle according to the first included angle and the second included angle.
In this embodiment, the double-screen spread state is determined by calculating an angle between a vertical line (normal) of the left and right screen display surfaces and a direction of gravity, and obtaining a double-screen spread angle θ, as shown in fig. 5, specifically, θ ═ 90 ° - α) + (90 ° - β) ═ 180 ° - (α + β).
And when the size of the included angle meets the preset condition, displaying the first picture through the first screen, and displaying the second picture through the second screen.
In the present embodiment, step S102 is considered as a two-screen spread state when 0 ° < θ < — 180 °. The photo gallery default displays the dual screen mode as shown in FIG. 6. In the dual-screen mode, the best viewing mode is when the spread angle θ is 180 °. Under the double-screen mode of the picture library, the left screen and the right screen respectively display one large picture and display 2 large pictures at a time, so that the viewing content is increased, and the comparison and viewing of two adjacent pictures are facilitated. For example, when the current left screen picture and the current right screen picture correspond to the picture database with the sequence number of x, x +1, and the picture display area on any screen (left screen or right screen) is detected to have sliding operation, for example, if the picture display area on the left screen or the right screen slides rightwards, 2 pictures are stepped leftwards, and the picture x-2 and the picture x-1 are displayed; and when detecting that the picture display area of any screen (left screen or right screen) has left sliding operation, stepping 2 pictures to the right, and displaying pictures x +2 and x + 3. Under the double-screen mode, the left screen and the right screen have independent picture operation functions of deleting, sharing and the like, and the current screen picture file can be deleted or shared respectively.
According to the operation of a user, pictures are selected from the first screen or the second screen, the pictures are displayed in an enlarged mode through the first screen and the second screen, the pictures displayed on the first screen or the second screen in a vertical mode are set to be displayed on the first screen and the second screen in a horizontal mode, the resolution of the horizontal display of the pictures is calculated, and the pictures are displayed on the first screen and the second screen according to the resolution.
In this embodiment, in the dual-screen mode, the current screen picture is switched and displayed on the large screen spliced by the dual screens by using a switching button or a gesture of double-click, double-finger zoom-in, and the like, which is defined as the large-screen mode.
Taking a common screen resolution of 1080P as an example, when the left and right screen included angle θ is 180 °, a picture corresponding to a mainstream 13.0MP pixel is displayed:
1) picture 4:3 landscape mode, normal display on 1080P screen, best display calculated as, according to display ratio 1080/y-4/3: 1080*810.
When the mode is switched to the large screen mode, the display proportion is calculated as follows: 2x 1080/y 4/3, the calculated optimal display resolution is 2160 x 1620, and it can be seen that in the 4:3 standard size picture, the display resolution reaches 2x 2y in the large screen mode, i.e. the horizontal direction and the vertical direction are increased by one time. As shown in fig. 7.
2) Picture 3: 4 portrait mode, normal display on 1080P screen, according to the display ratio 1080/y-3/4, the best display is calculated as: 1080*1440.
When the mode is switched to the large screen mode, the display proportion is calculated as follows: x/1920 is 3/4, the best display is calculated as: 1440*1920. That is, x is 3y/4, while x is 9y/16 in the normal mode, the display resolution is significantly increased in the large screen mode. As shown in fig. 8.
Therefore, under the large-screen mode, the characteristic of double-screen unfolding is fully utilized, the display area can be enlarged under the condition of no scale loss, and pictures can be displayed on a larger picture. The picture details are convenient to look over, and the experience of looking over is promoted.
When the angle is 0 degrees < theta <180 degrees, the characteristics of the curved screen can be simulated, and the incompletely unfolded state of the double screens is simulated into the curved screen to display pictures in a large picture. The display technology adopts a curved screen display method, which is not described in detail herein. And under the large screen mode, the gesture operations such as the reduction of the two fingers and the like are detected by using a switching button or a picture display area on any display screen, and the mode is switched back to the double screen mode.
A specific example of the technical solution of the present embodiment is as follows:
and displaying the panoramic picture of the picture library. The shooting cut-off point of the panoramic picture is not fixed, and the sizes of the shot pictures are different. In the current common viewing mode of the intelligent terminal picture library and the double-screen mode related by the invention, panoramic pictures are displayed in a shrinking mode frequently, and the viewing experience is not good.
When the double-screen mode is switched to the large-screen mode, the panoramic picture can be displayed on the large screen spliced by the double screens according to the optimal display proportion. The viewing experience of the panoramic picture is improved.
As shown in fig. 11, a terminal having a foldable first screen 1110 and a second screen 1120 is provided in one embodiment of the present invention; the terminal also includes a processor 1130, memory 1140 and a communication bus 1150;
a communication bus 1150 is used for interfacing communications between the processor 1130 and the memory 1140;
processor 1130 is configured to execute the picture display program stored in memory 1140 to perform the following steps:
and calculating a first included angle between the first screen and the gravity direction and a second included angle between the second screen and the gravity direction, and calculating the included angle according to the first included angle and the second included angle.
And when the size of the included angle meets the preset condition, displaying the first picture and the third picture through the first screen, and displaying the second picture and the fourth picture through the second screen.
And selecting a picture from the first screen or the second screen according to the operation of the user, and displaying the picture in an enlarged mode through the first screen and the second screen.
A specific example of the technical solution of the present embodiment is as follows:
and displaying the picture by splicing pictures in the picture library. The sizes of the jigsaw pictures are different due to different templates, numbers and the like selected by users. In the current common checking mode of the intelligent terminal picture library and the double-screen mode related by the invention, the picture mosaic pictures are often displayed in a reduced size, and the checking experience is not good.
Under the double-screen mode, when the amplification operation of the picture display area of any screen is detected, the mode is switched to the large-screen mode, and the jigsaw pictures can be displayed on the large screen spliced by the double screens according to the optimal display proportion. The display area is increased, and the checking experience of the jigsaw picture is improved.
Under the large screen mode, when the picture display area detects the double-finger zoom-out operation, the picture display is switched back to the double-screen mode, and different viewing scenes are met.
The current jigsaw template is limited by screen display, and the number of the jigsaw in the general template is small, or the jigsaw content in each area is small when the number of the jigsaw is large.
Furthermore, a large-screen jigsaw puzzle mode can be designed for the symmetrical double-screen terminal. The following description will take a symmetric dual screen of left and right screens as an example. As shown in fig. 10.
Under the large screen mode, the number of the jigsaw pieces can be increased by at least 2 times under the condition of not reducing the display content of the jigsaw, and the jigsaw templates are enriched.
Under the large screen mode, the display area of the selected jigsaw picture is enlarged under the condition of not increasing the number of the jigsaw pieces. If the picture is a 2-picture jigsaw, the effect of splicing the left picture and the right picture in a ratio of 1:1 can be realized, or the jigsaw can be realized in other modes. Compared with the single-screen intelligent terminal, the display content of the jigsaw area is slightly smaller, and the improvement is great.
Meanwhile, the picture mosaic is just optimally displayed on a large screen spliced by two screens in a large screen mode, so that the display area is increased, and the viewing experience of the picture mosaic is improved.
In one embodiment of the present invention, a computer-readable storage medium stores one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
an included angle between a first screen and a second screen of the terminal is detected, and the first screen and the second screen are foldable.
The technical scheme of the embodiment is suitable for the intelligent terminal which is simultaneously provided with two symmetrical screens, requires that the sizes and the resolutions of the two display screens are the same, and can be in the form of a left screen, a right screen or an upper screen and a lower screen. The main structure of the double-screen is a turning folding mode, and the turning folding screen can be in a left screen form and a right screen form, and also can be in an upper screen form and a lower screen form, which are respectively shown in the following figures 2 and 3.
In the present embodiment, a left-right double screen is taken as an example for explanation. If it is that upper and lower double-screen intelligent terminal is suitable for equally: firstly, judging a double-screen unfolding included angle theta, and determining whether the double screens are in an unfolding state; when 0 ° < θ ═ 180 °, it is considered as a double-screen spread state, and the picture library is a display mode according to the technical solution of the present embodiment. When theta is 0 deg. or 180 deg. < theta < 360 deg., it is considered as a dual-screen folded or non-viewing state, and the picture library is a traditional intelligent terminal implementation.
And when the size of the included angle meets the preset condition, displaying the picture selected by the user through the first screen and the second screen, wherein the first screen and the second screen respectively display different parts of the picture.
In this embodiment, the current picture is displayed on the large screen spliced by the two screens by using a switching button or a gesture operation.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.