CN110673812A - Display method and device of terminal equipment, terminal equipment and storage medium - Google Patents

Display method and device of terminal equipment, terminal equipment and storage medium Download PDF

Info

Publication number
CN110673812A
CN110673812A CN201910933894.2A CN201910933894A CN110673812A CN 110673812 A CN110673812 A CN 110673812A CN 201910933894 A CN201910933894 A CN 201910933894A CN 110673812 A CN110673812 A CN 110673812A
Authority
CN
China
Prior art keywords
gray scale
target
pixels
value
row
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
Application number
CN201910933894.2A
Other languages
Chinese (zh)
Other versions
CN110673812B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910933894.2A priority Critical patent/CN110673812B/en
Publication of CN110673812A publication Critical patent/CN110673812A/en
Application granted granted Critical
Publication of CN110673812B publication Critical patent/CN110673812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The application provides a display method and device of a terminal device, the terminal device and a storage medium, wherein the method comprises the following steps: when the foldable screen is in a folded state, acquiring a pixel gray scale of a display image of a target area; determining a pixel gray scale range of a transition region according to the pixel gray scale of the display image, wherein the transition region is arranged between the target region and a black screen region; and determining the target gray scale corresponding to each row of pixels in the transition region according to the pixel gray scale range and the trend from high to low, and controlling to lighten the transition region according to the target gray scale corresponding to each row of pixels. Therefore, the lighting of the transition area is realized, the difference of element loss between the display unit in the screen folding transition area and the display unit in other areas is reduced, and the phenomenon of residual shadow caused by large element loss difference in full-screen display is avoided.

Description

Display method and device of terminal equipment, terminal equipment and storage medium
Technical Field
The present application relates to the field of terminal device technologies, and in particular, to a display method and apparatus for a terminal device, and a storage medium.
Background
With the progress of the manufacturing technology of the terminal device, a terminal device with a foldable screen appears, for example, in the related art, the display screen of the terminal device may be displayed in a full screen as shown in fig. 1, or may be displayed only in a part of the screen in a folded state as shown in fig. 2.
In the related art, since the display unit of the screen causes a loss to the display element of the display unit when displaying, the loss causes the luminance to gradually decrease as the operation time of the display unit increases. As shown in fig. 2, for the foldable screen, when the foldable screen is in the folding working state, a part of the screen is displayed (called a local display area), and another part of the screen is not displayed (called a non-display area).
Disclosure of Invention
The application provides a display method and device of a terminal device, the terminal device and a storage medium, and aims to solve the technical problem that in the prior art, due to the fact that working time lengths of display units of foldable screens are different, element loss is different, and therefore a residual shadow phenomenon exists during full-screen display.
An embodiment of an aspect of the present application provides a display method of a terminal device, where the terminal device has a foldable screen, and the method includes the following steps:
when the foldable screen is in a folded state, acquiring a pixel gray scale of a display image of a target area;
determining a pixel gray scale range of a transition region according to the pixel gray scale of the display image, wherein the transition region is arranged between the target region and a black screen region;
and determining the target gray scale corresponding to each row of pixels in the transition region according to the pixel gray scale range and the trend from high to low, and controlling to lighten the transition region according to the target gray scale corresponding to each row of pixels.
An embodiment of a second aspect of the present application provides a display device of a terminal device, where the terminal device has a foldable screen, and the device includes:
the acquisition module is used for acquiring the pixel gray scale of a display image of the target area when the foldable screen is in a folded state;
the determining module is used for determining a pixel gray scale range of a transition region according to the pixel gray scale of the display image, wherein the transition region is arranged between the target region and the black screen region;
and the control module is used for determining the target gray scale corresponding to each row of pixels in the transition region according to the pixel gray scale range and the trend from high to low, and controlling and lightening the transition region according to the target gray scale corresponding to each row of pixels.
An embodiment of a third aspect of the present application provides a terminal device, including: the display method comprises the foldable screen, a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the display method of the terminal device according to the embodiment of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the display method of the terminal device according to the first aspect of the present application.
The display method and device of the terminal equipment, the terminal equipment and the storage medium at least have the following beneficial technical effects:
when a foldable screen of the terminal equipment is in a folded state, acquiring a pixel gray scale of a display image of a target area, determining a pixel gray scale range of a transition area according to the pixel gray scale of the display image, wherein the transition area is arranged between the target area and a black screen area, determining a target gray scale corresponding to each row of pixels in the transition area according to the pixel gray scale range and a trend from high to low, and controlling to lighten the transition area according to the target gray scale corresponding to each row of pixels. Therefore, by setting the transition area, determining the pixel gray scale range of the transition area according to the pixel gray scale of the image displayed in the target area, and then controlling to light the transition area according to the pixel gray scale range, the transition area is also lightened when the foldable screen is displayed in a half-screen mode, so that the difference of element loss between the display unit in the transition area and the display unit in other areas is reduced, and the phenomenon of ghost shadow caused by large element loss difference during full-screen display is avoided.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a diagram illustrating a folded screen state in the prior art;
FIG. 2 is a schematic diagram of another prior art folded screen configuration;
fig. 3 is a schematic flowchart of a display method of a terminal device according to an embodiment of the present application;
FIG. 4 is a diagram illustrating an example of a foldable screen according to an embodiment of the present application in a split mode;
fig. 5(a) is an application scenario diagram of a display method of a terminal device according to an embodiment of the present application;
fig. 5(b) is an application scenario diagram of another display method of a terminal device according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a display method of a terminal device according to another embodiment of the present application;
fig. 7 is a schematic flowchart of a display method of a terminal device according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a display device of a terminal device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a display device of a terminal device according to another embodiment of the present application; and
fig. 10 is a schematic structural diagram of a display device of a terminal device according to yet another embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A display method and apparatus of a terminal device, and a storage medium according to embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 3 is a flowchart illustrating a display method of a terminal device according to an embodiment of the present application, where the terminal device has a foldable screen, and the method may be executed by the display apparatus of the terminal device according to the embodiment of the present application, or may be executed by the terminal device, and when executed by the terminal device, is specifically executed by a processor in the terminal device. The embodiments of the present application will be explained below by taking as an example the execution of the method of the present application by a display device (hereinafter simply referred to as an image display device) of a terminal apparatus.
As shown in fig. 3, the display method of the terminal device includes the following steps:
step 101, when the foldable screen is in a folded state, acquiring a pixel gray scale of a display image of a target area.
In the present embodiment, an area where an image is displayed in the folded state is referred to as a target area, and an area where an image is not displayed and is not lit is referred to as a black screen area.
In this embodiment, when the image display device detects that the foldable screen is in the folded state, the pixel gray scale of the display image in the target area is obtained.
It can be understood that the color of each pixel in the image is composed of three pigments, namely red, green and blue, the light source behind each pigment can display different brightness levels, the gray scale represents the gradation level with different brightness from the darkest to the brightest, and the more the gradation level, the more the picture effect can be presented. Taking 8-bit panel as an example, 256 luminance levels (0-255) can be expressed, which is called 256 gray levels. Each pixel on the screen is combined by red, green and blue with different brightness levels to finally form different color points. That is, the color change (i.e., pixel value) of each pixel on the screen is actually caused by the gray scale change of the three red, green and blue pigments constituting the pixel.
Thus, as an example, when the foldable screen is in the folded state, the pixel value of each pixel point in the target area display image may be obtained as the pixel gray scale in the target area display image.
And 102, determining a pixel gray scale range of a transition region according to the pixel gray scale of the display image, wherein the transition region is arranged between the target region and the black screen region.
In this embodiment, the foldable screen may be divided into three parts, i.e., an upper half screen, a lower half screen, and a transition region, as shown in fig. 4, the transition region is disposed between the upper half screen and the lower half screen. When the foldable screen is in a folded state, if the upper half screen displays an image, the upper half screen is a target area, and the lower half screen is a black screen area.
In this embodiment, after the pixel gray scale of the display image in the target region is obtained, the pixel gray scale range of the transition region may be determined according to the obtained pixel gray scale.
As an example, after the pixel gray scale of each pixel in the display image is obtained, the gray scale peak value of the display image may be further obtained, the gray scale average value of each row of pixels in the display image is obtained according to the pixel gray scale of each pixel, the gray scale peak value, the gray scale average value of each row of pixels, and the display line number of the display image are calculated according to a preset algorithm, the gray scale maximum value of the transition region is obtained, and the pixel gray scale range of the transition region is determined according to the gray scale maximum value.
The preset algorithm may be preset, for example, the preset algorithm may be a preset formula:
Figure BDA0002221000910000041
wherein L represents the maximum gray level of the transition region, LFRepresenting the peak value of gray scale, n being the number of display lines of the display image, liRepresenting the gray scale average value of the ith row of pixels, alpha and beta being preset weight values, 0<α<1,0<β<1, and α + β ═ 1.
Furthermore, after the maximum gray level value of the transition region is determined, the pixel gray level range of the transition region can be determined according to the maximum gray level value (the maximum gray level value to the preset lower limit value). The preset lower limit may be preset, for example, the preset lower limit may be 0, 2, 5, 20, and the like.
As an example, after the pixel gray scale of each pixel in the display image is obtained, a pixel gray scale mean value of all pixels may be calculated, the pixel gray scale mean value is used as the maximum gray scale value of the transition region, and the pixel gray scale range of the past region is determined according to the maximum gray scale value (the maximum gray scale value to the preset lower limit value). The preset lower limit may be preset, for example, the preset lower limit may be 0, 2, 5, 20, and the like.
As an example, after the pixel gray scale of each pixel in the display image is obtained, the maximum gray scale value and the minimum gray scale value may be screened from all the pixel gray scales, and the pixel gray scale range of the transition region may be determined according to the maximum gray scale value and the minimum gray scale value (the maximum gray scale value to the minimum gray scale value).
And 103, determining target gray scales corresponding to pixels in each row in the transition region according to the pixel gray scale range and the trend from high to low, and controlling to light the transition region according to the target gray scales corresponding to the pixels in each row.
In this embodiment, after the pixel gray scale range of the transition region is determined, the target gray scale corresponding to each row of pixels in the transition region may be further determined according to the pixel gray scale range and the trend from high to low, and the transition region is controlled to be lit according to the target gray scale corresponding to each row of pixels.
In the embodiment of the present application, the target gray scales corresponding to the pixels in each row in the transition region are changed in a gradually decreasing trend, but not limited to that the target gray scale of the pixel in each row is decreased relative to the target gray scale of the pixel in the previous row, and may also be attenuated once every two or more rows.
Scene one: the number of pixel rows in the transition region is known (assuming p rows)
As an example, the target gray level of each row of pixels in the transition region can be determined according to the trend from high to low according to the preset gray level attenuation step and the pixel gray level range. Specifically, assume a pixel gray scale range of lmax~lminGray level attenuation step of lsIf the target gray scale of the first row of pixels in the transition region is lmaxThe target gray scale of the second row of pixels is lmax-lsThe target gray scale of the third row of pixels is lmax-2ls…, and so on until the target gray level for the last row of pixels in the transition region is determined. Wherein, ifmax–lminGreater than (p-1) lsThen the target gray scale of the last row of pixels in the transition region is (p-1) ls(ii) a If lmax–lminIs less than or equal to (p-1) lsThen when l ismax–i*lsIs less than or equal to lminWhen starting from the (i +1) th row of pixels to the last row of pixels in the transition region, the corresponding target gray scales are all lmin
As an example, the target gray scale of each row of pixels in the transition region can be determined according to the trend from high to low according to the preset gray scale attenuation step, the attenuation pixel interval row number and the pixel gray scale range. Specifically, assume a pixel gray scale range of lmax~lminGray level attenuation step of lsIf the number of rows of the attenuated pixels is 2, i.e. the target gray levels of every two rows of pixels are the same, the target gray levels corresponding to the first row of pixels and the second row of pixels in the transition region are lmaxThe target gray scale corresponding to the third row of pixels and the fourth row of pixels is lmax-lsThe target gray scale corresponding to the fifth row of pixels and the sixth row of pixels is lmax-2ls…, and so on until the last row of pixels in the transition region is determinedThe corresponding target gray scale. The determination method of the target gray scale corresponding to the last row of pixels is similar to that in the previous example, except that each row of pixels in the previous example is attenuated, and each two rows of pixels in the present example are attenuated once.
Scene two: the number of pixel rows in the transition region is unknown
As an example, after the pixel gray scale range of the transition region is determined, the target gray scale corresponding to each row of pixels may be determined according to the pixel gray scale range and a preset gray scale attenuation step from the first row of the transition region according to a trend from high to low. Specifically, the pixel gray scale range is lmax~lminGray level attenuation step of lsThen the target gray scale of the first row of pixels is lmaxThe target gray scale of the second row of pixels is lmax-lsThe target gray scale of the third row of pixels is lmax-2ls…, and so on, up to lmax–i*lsIs less than or equal to lminThen, the target gray scale corresponding to the (i +1) th row of pixels is determined to be lminSo that the (i +1) rows of pixels behind the target area constitute the transition area. That is, when the number of pixel lines in the transition region is unknown, the range of the transition region is also unknown, and when the gray level attenuation step is constant, the larger the pixel gray level range is, the larger the transition region is.
Of course, when the number of pixel rows in the transition region is unknown, the target gray level may be changed every two or more rows of pixels, for example, the target gray levels of the first and second rows of pixels are lmaxThe target gray levels of the third row of pixels and the fourth row of pixels are lmax-lsAnd so on. In this case, when the gray scale range of the pixel and the gray scale attenuation step are fixed, the larger the number of rows of the attenuation pixel interval, the larger the transition region, for example, the transition region determined by changing the target gray scale every three rows is larger than the transition region determined by changing the target gray scale every two rows.
The first row of pixels in the transition region refers to pixels in the transition region that are adjacent to the target region for displaying the image, and the last row of pixels in the transition region is adjacent to the black screen region. That is to say, in the embodiment of the present application, the target gray scales corresponding to the pixels in each row in the transition region gradually decrease from the target region to the black screen region. For example, as shown in fig. 5(a), for a foldable screen folded up and down, the upper half of the foldable screen is a target area, and the lower half of the foldable screen is a black area, so that the target gray levels corresponding to pixels in each row in the transition area gradually decrease from top to bottom; for another example, as shown in fig. 5(b), for a foldable screen folded left and right, the left half screen of the foldable screen is a black screen area, and the right half screen is a target area, and the target gray levels corresponding to the pixels in each row in the transition area gradually decrease from right to left.
In this embodiment, the target gray scales corresponding to the pixels in each row in the transition region are determined, and the transition region can be controlled to be lighted up according to the target gray scales corresponding to the pixels in each row, so that the pixels in each row in the transition region also participate in the display work in the folded state, and the problem of afterimages is avoided.
According to the display method of the terminal device, when the foldable screen of the terminal device is in a folded state, the pixel gray scale of the image displayed in the target area is obtained, the pixel gray scale range of the transition area is determined according to the pixel gray scale of the image displayed, wherein the transition area is arranged between the target area and the black screen area, the target gray scale corresponding to each row of pixels in the transition area is determined according to the pixel gray scale range and the trend from high to low, and the transition area is controlled to be lightened according to the target gray scale corresponding to each row of pixels. Therefore, by setting the transition area, determining the pixel gray scale range of the transition area according to the pixel gray scale of the image displayed in the target area, and then controlling to light the transition area according to the pixel gray scale range, the transition area is also lightened when the foldable screen is displayed in a half-screen mode, so that the difference of element loss between the display unit in the transition area and the display unit in other areas is reduced, and the phenomenon of ghost shadow caused by large element loss difference during full-screen display is avoided.
In a possible implementation manner of the embodiment of the application, after the transition region is controlled to be lit according to the target gray scales corresponding to the pixels in each row in the transition region, the target gray scales of the pixels in each row in the transition region can be adjusted, so that the pixels in each row are prevented from displaying a single target gray scale all the time. Specifically, as shown in fig. 6, on the basis of the embodiment shown in fig. 3, after step 103, the display method of the terminal device may further include the following steps:
and 104, monitoring the lighting time of the transition region, and when a preset gray scale exchange period is reached, sequentially reducing the target gray scale corresponding to the target row pixels needing to be adjusted in the transition region according to a preset gray scale adjustment value.
The gray scale exchange period can be preset, for example, set to 30 seconds; the gray scale adjustment value may also be preset, such as 20, 35, etc.
In this embodiment, after the transition region is lit, timing is started, the lighting duration of the transition region is monitored, and when the gray scale exchange period is reached, the target gray scale corresponding to the target row pixel to be adjusted in the transition region is reduced by the gray scale adjustment value. The target line pixels to be adjusted may be preset or randomly selected.
As an example, assuming that the target row pixels are the 6 th row pixels and the following rows of pixels in the transition region, the original target gray scale is kept unchanged for the first row to the fifth row pixels in the transition region, and the target gray scale of each row is reduced by the gray scale adjustment value from the 6 th row pixels.
As an example, the target gray scale of each row of pixels in the transition region may be controlled to decrease the gray scale adjustment value. Specifically, when the preset gray scale adjustment period is reached for the first time, the target gray scale of each row of pixels is controlled to reduce the gray scale adjustment value, and when the preset gray scale adjustment period is reached for the second time, the target gray scale of each row of pixels is controlled again to reduce the gray scale adjustment value.
Therefore, the brightness of the pixels on each row, even the lighting time, can be averaged, so as to reduce the occurrence probability of the afterimage to the maximum extent.
According to the display method of the terminal device, by monitoring the lighting time of the transition region, when the preset gray scale exchange period is reached, the target gray scales corresponding to the target row pixels needing to be adjusted in the transition region are sequentially reduced according to the preset gray scale adjustment value, and the ghost phenomenon is further reduced.
Since the gray scale change of the dark area is obvious for human eyes, in the embodiment of the application, the attenuation degree of each row of pixels in the transition area can be adjusted according to the brightness degree. As shown in fig. 7, on the basis of the embodiment shown in fig. 3, step 103 may include the following steps:
step 201, obtaining a maximum gray scale value according to the gray scale range of the pixel, and determining whether the maximum gray scale value is greater than a preset gray scale threshold value.
The gray level threshold may be preset, for example, set to 128.
In this embodiment, the upper limit value of the pixel gray scale range can be obtained as the maximum gray scale value. For example, if the gray scale range of the pixel is 253 to 32, the maximum value of the acquired gray scale is 253.
Step 202, if the maximum gray scale value is greater than or equal to the gray scale threshold value, a first gray scale region between the maximum gray scale value and the gray scale threshold value and a second gray scale region between the gray scale threshold value and zero are obtained.
In this embodiment, after obtaining the maximum gray scale value according to the gray scale range of the pixel, the maximum gray scale value is compared with the gray scale threshold value, and whether the maximum gray scale value is greater than or equal to the gray scale threshold value is determined, if yes, the range between the maximum gray scale value and the gray scale threshold value is determined as the first gray scale region, and the range between the gray scale threshold value and 0 is determined as the second gray scale region.
For example, if the pixel gray scale range is 253-32 and the gray scale threshold is 128, the first gray scale region is 253-128 and the second gray scale region is 128-0.
Of course, the range between the gray level threshold and the lower limit of the pixel gray level range may also be determined as the second gray level region, for example, the second gray level region is 128 to 32. The embodiment of the present application merely determines the range between the grayscale threshold and 0 as the second grayscale region, and does not limit the present application.
Step 203, determining a target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset first jump gray scale corresponding to the first gray scale region and a second jump gray scale corresponding to the second gray scale region, wherein the second jump gray scale is smaller than the first jump gray scale.
In this embodiment, the first transition gray scale and the second transition gray scale may be preset, for example, the first transition gray scale is set to 30, and the second transition gray scale is set to 15, so that the transition range in a dark color region sensitive to human eyes is smaller, thereby adapting to the human eyes.
As an example, assuming that the first gray scale region is 253 to 128, the second gray scale region is 128 to 0, the first transition gray scale is 30, and the second transition gray scale is 15, the target gray scale corresponding to the first row of pixels in the transition region is 253, the target gray scale corresponding to the second row of pixels is 223, the target gray scale corresponding to the third row of pixels is 193, the target gray scale corresponding to the fourth row of pixels is 163, the target gray scale corresponding to the fifth row of pixels is 133, the target gray scale corresponding to the seventh row of pixels is 103, since 103 is in the second gray scale region, the target gray scale changes by the second transition gray scale from the eighth row of pixels, that is, the target gray scale corresponding to the eighth row of pixels is 88, the target gray scale corresponding to the ninth row of pixels is 73, and so on until the target gray scale decays to 0.
In step 204, if the maximum gray scale value is smaller than the gray scale threshold value, a third gray scale region between the maximum gray scale value and a preset gray scale critical value is obtained.
The gray scale threshold value may be preset, for example, may be set to 0, 3, 10, etc.
In this embodiment, when the maximum gray scale value is smaller than the gray scale threshold value, the range between the maximum gray scale value and the gray scale critical value is determined as the third gray scale region.
For example, if the maximum gray level is 110, the threshold gray level is 128, and the threshold gray level is 0, the third gray level area is determined to be 110-0.
Step 205, determining a target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset third jump gray scale corresponding to the third gray scale region.
The third jump gray scale may be preset, for example, set to 15, 10, etc.
In this embodiment, when the target gray scale corresponding to each row of pixels in the transition region is determined according to the third jump gray scale corresponding to the third gray scale region, the target gray scale of each row of pixels may jump, or jump once every preset number of pixel rows, which is not limited in this application.
Taking the target gray scale of each row of pixels as an example, assuming that the third gray scale region is 110-0 and the third jump gray scale is 10, the target gray scale of the first row of pixels in the transition region is 110, the target gray scale of the second row of pixels is 100, the target gray scale of the third row of pixels is 90, and so on until the target gray scale is attenuated to 0.
It should be noted that, when the number of pixel rows in the transition region is known, the attenuation starts from the first row of pixels until the attenuation reaches the last row, and if the target gray scale has been attenuated to 0 when the last row of the transition region is not reached, the target gray scales of the pixels in the remaining rows are all 0; when the number of pixel rows in the transition region is unknown, the attenuation starts from the first row of pixels until the end of the attenuation to 0, the middle pixel row constituting the transition region.
The display method of the terminal device in this embodiment includes obtaining a maximum gray scale value according to a gray scale range of a pixel, determining whether the maximum gray scale value is greater than a preset gray scale threshold value, obtaining a first gray scale region between the maximum gray scale value and the gray scale threshold value and a second gray scale region between the gray scale threshold value and zero when the maximum gray scale value is greater than or equal to the gray scale threshold value, determining a target gray scale corresponding to each row of pixels in a transition region from high to low according to a preset first jump gray scale corresponding to the first gray scale region and a second jump gray scale corresponding to the second gray scale region, wherein the second jump gray scale is smaller than the first jump gray scale, obtaining a third gray scale region between the maximum gray scale value and a preset gray scale threshold value when the maximum gray scale value is smaller than the gray scale threshold value, determining a target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset third jump gray scale corresponding to the third gray scale region, therefore, the jump in different degrees is carried out according to different pixel gray scale areas, the jump in a dark area in a smaller degree is carried out, the aim that the lightening of the transition area is suitable for the visual sense of human eyes is achieved, and the user experience is improved.
In order to implement the above embodiments, the present application further provides a device of a terminal device.
Fig. 8 is a schematic structural diagram of a display device of a terminal device according to an embodiment of the present application, where the terminal device has a foldable screen, and as shown in fig. 8, the display device of the terminal device includes: an acquisition module 10, a determination module 20 and a control module 30.
The acquiring module 10 is configured to acquire a pixel gray scale of a display image in a target area when the foldable screen is in a folded state.
The determining module 20 is configured to determine a pixel gray scale range of a transition region according to a pixel gray scale of a display image, where the transition region is disposed between the target region and the black screen region.
In a possible implementation manner of the embodiment of the present application, the determining module 20 is specifically configured to: acquiring a gray scale peak value of a display image and a gray scale average value of each row of pixels of the display image; calculating the gray scale peak value, the gray scale average value of each row of pixels and the display row number of the display image according to a preset algorithm to obtain the maximum gray scale value of the transition region; and determining the pixel gray scale range of the transition region according to the maximum gray scale value.
And the control module 30 is configured to determine a target gray scale corresponding to each row of pixels in the transition region according to the pixel gray scale range and a trend from high to low, and control to light the transition region according to the target gray scale corresponding to each row of pixels.
In a possible implementation manner of the embodiment of the present application, as shown in fig. 9, on the basis of that shown in fig. 8, the image display device with a folded screen further includes:
and the gray scale conversion module 40 is configured to monitor a lighting time of the transition region, and when a preset gray scale exchange period is reached, sequentially reduce a target gray scale corresponding to a target row pixel to be adjusted in the transition region according to a preset gray scale adjustment value.
In a possible implementation manner of the embodiment of the present application, as shown in fig. 10, on the basis of that shown in fig. 8, the control module 30 includes:
the determining unit 301 is configured to obtain a maximum gray scale value according to the gray scale range of the pixel, and determine whether the maximum gray scale value is greater than a preset gray scale threshold value.
The obtaining unit 302 is configured to obtain a first gray scale region between the maximum gray scale value and the gray scale threshold value and a second gray scale region between the gray scale threshold value and zero if it is known that the maximum gray scale value is greater than or equal to the gray scale threshold value.
The determining unit 303 is configured to determine a target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset first jump gray scale corresponding to the first gray scale region and a second jump gray scale corresponding to the second gray scale region, where the second jump gray scale is smaller than the first jump gray scale.
Further, the obtaining unit 302 is further configured to obtain a third gray scale region between the maximum gray scale value and the preset gray scale critical value if it is known that the maximum gray scale value is smaller than the gray scale threshold value. The determining unit 303 is further configured to determine a target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset third jump gray scale corresponding to the third gray scale region.
It should be noted that the foregoing explanation of the display method of the terminal device is also applicable to the display apparatus of the terminal device in the embodiment of the present application, and the implementation principle is similar, and is not repeated herein.
The display device of the terminal device in the embodiment of the application, when the foldable screen of the terminal device is in a folded state, obtains the pixel gray scale of the display image of the target area, and determines the pixel gray scale range of the transition area according to the pixel gray scale of the display image, wherein the transition area is arranged between the target area and the black screen area, determines the target gray scale corresponding to each row of pixels in the transition area according to the pixel gray scale range and the trend from high to low, and controls to light the transition area according to the target gray scale corresponding to each row of pixels. Therefore, by setting the transition area, determining the pixel gray scale range of the transition area according to the pixel gray scale of the image displayed in the target area, and then controlling to light the transition area according to the pixel gray scale range, the transition area is also lightened when the foldable screen is displayed in a half-screen mode, so that the difference of element loss between the display unit in the transition area and the display unit in other areas is reduced, and the phenomenon of ghost shadow caused by large element loss difference during full-screen display is avoided.
In order to implement the foregoing embodiment, the present application further provides a terminal device, including: the display method of the terminal device comprises the foldable screen, a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein when the processor executes the computer program, the display method of the terminal device is realized.
In order to implement the above embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the display method of the terminal device as described in the foregoing embodiments.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A display method of a terminal device having a foldable screen, the method comprising the steps of:
when the foldable screen is in a folded state, acquiring a pixel gray scale of a display image of a target area;
determining a pixel gray scale range of a transition region according to the pixel gray scale of the display image, wherein the transition region is arranged between the target region and a black screen region;
and determining the target gray scale corresponding to each row of pixels in the transition region according to the pixel gray scale range and the trend from high to low, and controlling to lighten the transition region according to the target gray scale corresponding to each row of pixels.
2. The method of claim 1, wherein determining the pixel gray scale range for the transition region from the pixel gray scale of the display image comprises:
acquiring a gray scale peak value of the display image and a gray scale average value of each row of pixels of the display image;
calculating the gray scale peak value, the gray scale average value of each row of pixels and the display line number of the display image according to a preset algorithm to obtain the maximum gray scale value of the transition region;
and determining the pixel gray scale range of the transition region according to the maximum gray scale value.
3. The method of claim 1, wherein the determining the target gray level for each row of pixels in the transition region according to the pixel gray level range according to a trend from high to low comprises:
acquiring a maximum gray scale value according to the pixel gray scale range, and judging whether the maximum gray scale value is larger than a preset gray scale threshold value;
if the maximum gray scale value is larger than or equal to the gray scale threshold value, acquiring a first gray scale region between the maximum gray scale value and the gray scale threshold value and a second gray scale region between the gray scale threshold value and zero;
and determining a target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset first jump gray scale corresponding to the first gray scale region and a preset second jump gray scale corresponding to the second gray scale region, wherein the second jump gray scale is smaller than the first jump gray scale.
4. The method of claim 3, wherein after said determining whether said maximum grayscale value is greater than a preset grayscale threshold, further comprising:
if the fact that the maximum gray scale value is smaller than the gray scale threshold value is obtained, a third gray scale area between the maximum gray scale value and a preset gray scale critical value is obtained;
and determining the target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset third jump gray scale corresponding to the third gray scale region.
5. The method of claim 1, further comprising, after said controlling the lighting of the transition region according to the target gray scale level corresponding to each row of pixels,:
and monitoring the lighting time of the transition region, and when a preset gray scale exchange period is reached, sequentially reducing the target gray scale corresponding to the target row pixels needing to be adjusted in the transition region according to a preset gray scale adjustment value.
6. A display apparatus of a terminal device, the terminal device having a foldable screen, the apparatus comprising:
the acquisition module is used for acquiring the pixel gray scale of a display image of a target area when the foldable screen is in a folded state;
the determining module is used for determining a pixel gray scale range of a transition region according to the pixel gray scale of the display image, wherein the transition region is arranged between the target region and the black screen region;
and the control module is used for determining the target gray scale corresponding to each row of pixels in the transition region according to the pixel gray scale range and the trend from high to low, and controlling and lightening the transition region according to the target gray scale corresponding to each row of pixels.
7. The apparatus of claim 6, wherein the control module comprises:
the judging unit is used for acquiring a maximum gray scale value according to the pixel gray scale range and judging whether the maximum gray scale value is larger than a preset gray scale threshold value or not;
the acquisition unit is used for acquiring a first gray scale area between the maximum gray scale value and the gray scale threshold value and a second gray scale area between the gray scale threshold value and zero if the maximum gray scale value is larger than or equal to the gray scale threshold value;
and the determining unit is used for determining a target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset first jump gray scale corresponding to the first gray scale region and a preset second jump gray scale corresponding to the second gray scale region, wherein the second jump gray scale is smaller than the first jump gray scale.
8. The apparatus of claim 7, wherein the obtaining unit is further configured to:
if the fact that the maximum gray scale value is smaller than the gray scale threshold value is obtained, a third gray scale area between the maximum gray scale value and a preset gray scale critical value is obtained;
the determining unit is further configured to:
and determining the target gray scale corresponding to each row of pixels in the transition region from high to low according to a preset third jump gray scale corresponding to the third gray scale region.
9. A terminal device, comprising: foldable screen, memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements a display method of a terminal device according to any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing a display method of a terminal device according to any one of claims 1 to 5.
CN201910933894.2A 2019-09-29 2019-09-29 Display method and device of terminal equipment, terminal equipment and storage medium Active CN110673812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910933894.2A CN110673812B (en) 2019-09-29 2019-09-29 Display method and device of terminal equipment, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910933894.2A CN110673812B (en) 2019-09-29 2019-09-29 Display method and device of terminal equipment, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110673812A true CN110673812A (en) 2020-01-10
CN110673812B CN110673812B (en) 2023-02-24

Family

ID=69080227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910933894.2A Active CN110673812B (en) 2019-09-29 2019-09-29 Display method and device of terminal equipment, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110673812B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258527A (en) * 2020-01-14 2020-06-09 北京欧铼德微电子技术有限公司 Display adjustment method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017084038A1 (en) * 2015-11-18 2017-05-26 华为技术有限公司 Image display method and apparatus, electronic device and storage medium
TW201804457A (en) * 2016-06-29 2018-02-01 半導體能源研究所股份有限公司 Electronic device, operation method of the electronic device, and moving vehicle
CN109801605A (en) * 2019-02-27 2019-05-24 维沃移动通信有限公司 Screen brightness regulation method, electronic equipment, mobile terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017084038A1 (en) * 2015-11-18 2017-05-26 华为技术有限公司 Image display method and apparatus, electronic device and storage medium
TW201804457A (en) * 2016-06-29 2018-02-01 半導體能源研究所股份有限公司 Electronic device, operation method of the electronic device, and moving vehicle
CN109801605A (en) * 2019-02-27 2019-05-24 维沃移动通信有限公司 Screen brightness regulation method, electronic equipment, mobile terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑喜凤等: "一种基于区域最大值的LED显示屏亮度特征数据提取方法", 《液晶与显示》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258527A (en) * 2020-01-14 2020-06-09 北京欧铼德微电子技术有限公司 Display adjustment method, device, equipment and storage medium
CN111258527B (en) * 2020-01-14 2024-03-12 北京欧铼德微电子技术有限公司 Display adjustment method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110673812B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
CN109658877B (en) Display device, driving method thereof and electronic equipment
JP4979776B2 (en) Image display device and image display method
US9093033B2 (en) Image display device and image display method
US20040257318A1 (en) Image display apparatus
EP3262629B1 (en) Image display apparatus and method for controlling same
WO2018086388A1 (en) Image processing device and method, and a liquid crystal display device
EP2189971A1 (en) Display control apparatus and display control method
JP2002536677A (en) Method and apparatus using display device and display condition information
CN112150972B (en) Image compensation method and device and display device
EP2351011A1 (en) Tonescale compression for electroluminescent display
TWI573126B (en) Image adjusting method capable of executing optimal adjustment according to envorimental variation and related display
JP2005321664A (en) Image display apparatus
CN110223658B (en) Display brightness control method, device and equipment and display device
JP2001175212A (en) Display sticking preventing device
CN110784701B (en) Display apparatus and image processing method thereof
US11289037B2 (en) Image processing device, display device, and image processing method
JP4982510B2 (en) Video display device
CN110673812B (en) Display method and device of terminal equipment, terminal equipment and storage medium
CN109814827B (en) Display control method and device of equipment, electronic equipment and storage medium
CN108847201B (en) Brightness processing method and device, computer equipment and readable storage medium
US8743162B2 (en) Evaluating temporal response of a display
CN110618799B (en) Display method and device based on folding screen
KR100758981B1 (en) Back-light unit having a plurality of luminous element and control method thereof
CN111986629B (en) Method and device for improving liquid crystal display panel fault phenomenon and display panel
JP4578137B2 (en) Image display device

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