CN110377391B - Picture display method and device, mobile terminal and storage medium - Google Patents

Picture display method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110377391B
CN110377391B CN201910647095.9A CN201910647095A CN110377391B CN 110377391 B CN110377391 B CN 110377391B CN 201910647095 A CN201910647095 A CN 201910647095A CN 110377391 B CN110377391 B CN 110377391B
Authority
CN
China
Prior art keywords
color gamut
gamut space
picture
space
user interface
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.)
Active
Application number
CN201910647095.9A
Other languages
Chinese (zh)
Other versions
CN110377391A (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 CN201910647095.9A priority Critical patent/CN110377391B/en
Publication of CN110377391A publication Critical patent/CN110377391A/en
Priority to PCT/CN2020/099107 priority patent/WO2021008348A1/en
Application granted granted Critical
Publication of CN110377391B publication Critical patent/CN110377391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a picture display method, a picture display device, a mobile terminal and a storage medium, wherein the display method comprises the following steps: when it is detected that a currently running application program loads a picture, acquiring a color gamut space of the picture as a first color gamut space and acquiring a color gamut space of a user interface of the application program as a second color gamut space; if the first color gamut space is different from the second color gamut space, acquiring a third color gamut space of a display screen of the mobile terminal; if the second color gamut space is the same as the third color gamut space, adjusting the color gamut space of the picture to be the second color gamut space or the third color gamut space; and displaying the adjusted picture. The method can enable the color gamut spaces of the picture, the user interface and the display screen to be consistent when the picture is displayed in the interface of the application program, and improves the display effect of the picture and the user interface.

Description

Picture display method and device, mobile terminal and storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a picture display method and apparatus, a mobile terminal, and a storage medium.
Background
Mobile terminals, such as mobile phones, tablet computers, etc., have become one of the most common consumer electronic products in people's daily life. With the rapid development of the technology level, the functions and applications of the mobile terminal are more and more available, for example, the mobile terminal can display images such as pictures and videos. However, the display effect of the current mobile terminal is poor when the picture is displayed in the interface of the application program, which affects the user experience.
Disclosure of Invention
In view of the foregoing problems, the present application provides a method and an apparatus for displaying an image, a mobile terminal, and a storage medium to solve the foregoing problems.
In a first aspect, an embodiment of the present application provides a picture display method, which is applied to a mobile terminal, and the method includes: when it is detected that a currently running application program loads a picture, acquiring a color gamut space of the picture as a first color gamut space and acquiring a color gamut space of a user interface of the application program as a second color gamut space; if the first color gamut space is different from the second color gamut space, acquiring a third color gamut space of a display screen of the mobile terminal; if the second color gamut space is the same as the third color gamut space, adjusting the color gamut space of the picture to be the second color gamut space or the third color gamut space; and displaying the adjusted picture.
In a second aspect, an embodiment of the present application provides an image display device, which is applied to a mobile terminal, and the image display device includes: the system comprises a first color gamut acquisition module, a second color gamut acquisition module, a color gamut adjustment module and a display execution module, wherein the first color gamut acquisition module is used for acquiring a color gamut space of a picture as a first color gamut space and a color gamut space of a user interface of an application as a second color gamut space when detecting that the currently running application loads the picture; the second color gamut acquisition module is used for acquiring the color gamut space of the display screen of the mobile terminal as a third color gamut space if the first color gamut space is different from the second color gamut space; the color gamut adjusting module is used for adjusting the color gamut space of the picture into the second color gamut space or the third color gamut space if the second color gamut space is the same as the third color gamut space; and the display execution module is used for displaying the adjusted picture.
In a third aspect, an embodiment of the present application provides a mobile terminal, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the picture display method provided in the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the image display method provided in the first aspect.
The scheme that this application provided, when detecting the application of current operation and loading the picture, the colour gamut space of obtaining the picture is as first colour gamut space, and the colour gamut space of application's user interface is as second colour gamut space, if first colour gamut space is different with second colour gamut space, obtain the third colour gamut space of mobile terminal's display screen, if second colour gamut space is the same with third colour gamut space, with the colour gamut space adjustment of picture for second colour gamut space or third colour gamut space, show the picture after the adjustment at last. Therefore, when the picture is displayed in the interface of the application program, the consistency of the picture, the user interface and the color gamut space of the display screen is ensured, and the display effect of the picture and the user interface is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic application environment applicable to the picture display method provided in the embodiment of the present application.
Fig. 2 shows a flow chart of a picture display method according to an embodiment of the application.
FIG. 3 illustrates an interface diagram provided in accordance with an embodiment of the present application.
Fig. 4 shows a flow chart of a picture display method according to another embodiment of the present application.
Fig. 5 shows a flow chart of a picture display method according to a further embodiment of the present application.
Fig. 6 shows a block diagram of a picture display device according to an embodiment of the present application.
Fig. 7 is a block diagram of a color gamut adjusting module in a picture display device according to an embodiment of the present application.
FIG. 8 shows another block diagram of a picture display device according to an embodiment of the present application.
Fig. 9 is a block diagram of a mobile terminal for executing a picture display method according to an embodiment of the present application.
Fig. 10 is a storage unit for storing or carrying program codes for implementing a picture display method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the improvement of the hardware performance of the mobile terminal, more mobile terminals can support the display of pictures with higher definition in the user interface of the application program. However, the inventor finds in research that factors affecting the picture display effect include, in addition to the information of the picture itself, the degree of matching between the picture information and the user interface and display screen of the application program.
Take the color gamut space as an example. A color gamut, i.e. a color gamut space, is a method of encoding a color and also refers to the sum of colors that a technical system is capable of producing. In computer graphics processing, a color gamut is some complete subset of colors. The color gamut space may include an sRGB color gamut, an Adobe RGB color gamut, or a DCI-P3 color gamut. Among them, sRGB is one of the earliest color gamut standards and is supported by W3C, exif, intel, pantone, corel and many other industry vendors from the industry. The Adobe RGB gamut mainly improves the display on the cyan-green system and therefore presumably covers 50% of the cie 1931XYZ color space. DCI-P3 is a color gamut applied to digital cinema, which is a color gamut standard dominated by human visual experience and matches as much as possible all the color gamuts that can be exhibited in a movie scene. It is also not the broadest standard in color gamut (bt.2020 is the most recent standard at present), but has a broader red/green family range above the rec.709 standard.
The inventor finds that, when the color gamut space of the picture is not consistent with the color gamut space of the display screen, directly displaying the picture with the inconsistent color gamut space on the display screen may cause a display effect that the picture cannot be originally acquired when the picture is displayed, and in addition, when the picture is displayed in a user interface of an application program (for example, a user views a picture sent by an opposite party in a chat application), directly displaying the picture with the inconsistent color gamut space on the user interface when the color gamut space of the picture is not consistent with the color gamut space of the user interface of the application program, may cause a display effect that a region where the picture is located on a display region is not consistent with a region where the user interface is located, and may affect the display effect. For example, when a picture with a wider color gamut space is displayed on a user interface with a narrower color gamut space, the user may see the picture area more gorgeous, but the image area is less gorgeous for the interfaces except the picture area in the whole user interface. When a picture with a narrower color gamut space is displayed on a user interface with a wider color gamut space, a user can see that the interface except for the picture area in the whole user interface is more gorgeous, and the image area is less gorgeous than the interface except for the picture area. As another example, when a picture corresponding to a wider color gamut space is displayed on a display screen corresponding to a narrower color gamut space, the displayed picture may become more oversaturated.
Therefore, in order to improve the above problem, the inventor proposes a picture display method, a device, a mobile terminal and a storage medium provided by the present application, so that when a picture is displayed in a user interface of an application program, it is ensured that a color gamut space of the picture, a color gamut space of a display screen and a color gamut space of the user interface of the application program are consistent, thereby improving a display effect.
An application environment suitable for the image display method provided by the embodiment of the present application is described below.
As shown in fig. 1, in the embodiment of the present application, a color gamut conversion process of a picture in an interface (e.g., activity) is performed in a Canvas (Canvas), and the picture to be subjected to the color gamut conversion is first subjected to a processing of a graphics processing function library (Skia) to obtain a corresponding bitmap, and then subjected to the color gamut conversion based on the bitmap. In the process of color gamut conversion, color gamut conversion is performed based on a hardware accelerated graphics (HWUI) or a graphics processing function library (Skia), and then the color gamut conversion is processed by an OpenGL ES (graphics library), a layer module (Surface), a layer transfer module (Surface flipper), a hardware layer mixer (HWC) and a Multimedia Display Processor (MDP), and finally displayed on a display screen.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a picture display method according to an embodiment of the present application. The picture display method is used for ensuring that the color gamut space of the picture is consistent with the color gamut space of the display screen and the user interface when the picture is displayed in the user interface of the application program, so that the display effect is improved. In a specific embodiment, the picture display method is applied to the picture display apparatus 400 shown in fig. 6 and the mobile terminal 100 (fig. 9) configured with the picture display apparatus 400. The following will describe a specific process of this embodiment by taking a mobile terminal as an example, and it is understood that the mobile terminal applied in this embodiment may be an electronic device provided with a display screen, such as a smart phone, a tablet computer, and a wearable electronic device, and is not limited herein. As will be described in detail with respect to the flow shown in fig. 2, the image display method may specifically include the following steps:
step S110: when it is detected that a currently running application program loads a picture, acquiring a color gamut space of the picture as a first color gamut space and acquiring a color gamut space of a user interface of the application program as a second color gamut space.
In the embodiment of the application, an application program which can display pictures on a user interface when running can be installed in the mobile terminal. After the pictures are loaded during running, the application programs can display the pictures on the user interface through operations such as rendering and the like. In some embodiments, such an application may also be a photo editing type application, such as a beauty application or the like; such applications may be picture viewing type applications, such as a picture library application or the like; such applications may also be chat applications; such an application may also be a browser or the like. Of course, the application program that may present the pictures at its user interface at runtime may be particularly non-limiting.
In some embodiments, when the application program capable of displaying the picture runs, the local picture or the network picture may be loaded according to the selection of the user, the network picture received by the application program may also be loaded, and the picture carried by the application program may also be loaded. For example, as shown in fig. 3, when the application is a picture editing application, a user may select a picture to be edited in a user interface of the application, so that after the application loads a picture A2, the loaded picture A2 is rendered and displayed on the user interface A1. For another example, when the application is a chat-type application, the application may receive a picture sent by another user from the server, and the application may load the received picture before displaying the picture. Of course, the pictures loaded by a specific application program may not be limiting.
As one way, the mobile terminal may detect whether a loading request for a picture is received by a currently running application to determine whether the application is loading the picture. The picture loading request is used for loading the picture from a local or server by the application program. When the picture loading request is to load a picture from the server, the picture loading request may include a character string for identifying a display format of the picture requested to be loaded, where the character string may be a character string for marking the picture, such as png, image, jpg, and the like. As another way, when the currently running application calls the interface for loading the picture, it may be determined that the running application loads the picture. Of course, the specific manner of detecting that the currently running application program loads the picture may not be limited.
In some embodiments, when detecting that a currently running application loads a picture, the mobile terminal may obtain a color gamut space of the picture and a color gamut space of a user interface of the application to determine whether the color gamut space of the picture is the same as the color gamut space of the user interface.
The mobile terminal may obtain the color gamut space of the picture in various ways. As one way, the mobile terminal may acquire a file for describing a color gamut space of a picture, such as an ICC file (color gamut description file). Alternatively, EXIF (Exchangeable Image File) information of a loaded picture, which is a format specifically set for digital photographs, may be read out, and a color gamut space of the picture may be read out from the EXIF information. Such a format can be used to record attribute information of digital photographs, such as the brand and model of a camera, the photographing time of a photograph, the size of an aperture set at the time of photographing, shutter speed, ISO, and the like, and color gamut space, and the like. As another way, the color gamut space of the picture can be analyzed directly based on the color values of the pixel points of the picture. As still another mode, the EXIF information is generated together with an image information accompanying file. In this file is stored information that the picture will subsequently be modified for re-editing, e.g. the gamut space or saturation of the picture, etc. And then carrying out hash operation on the acquired picture information to obtain a globally unique identifier, and inserting the identifier into the image information accompanying file. And the image information accompanying file is synchronized to the cloud end, so that when the acquired picture is displayed on other mobile terminals, even if the picture is edited again and the information in the EXIF information is not the information when the picture is initially acquired (for example, color gamut space changes due to color editing), other mobile terminals can acquire the image information accompanying file through the cloud end to find the information when the picture is initially acquired (for example, color gamut space), so that the display effect when the picture is acquired can be better recovered.
The way in which the color gamut of the user interface is obtained by the mobile terminal may also be various. As one way, an installation package (APK) of the application may include therein a configuration file, such as an ICC file (color gamut description file), for describing a color gamut space of the user interface. As another mode, the mobile terminal may also analyze color values of pixel points of the user interface when the application program runs in the past, so as to analyze and store the color gamut space of the picture, and acquire the color gamut space of the user interface according to the stored information when the subsequent application program runs and the color gamut space of the user interface needs to be acquired.
Of course, the manner in which the mobile terminal specifically acquires the color gamut space of the picture and the color gamut space of the user interface may not be limited.
When the mobile terminal acquires the color gamut space of the picture and the color gamut space of the user interface, the acquired color gamut space of the picture can be used as a first color gamut space; the color gamut space of the obtained picture may be used as the second color gamut space.
Step S120: and if the first color gamut space is different from the second color gamut space, acquiring a third color gamut space of the display screen of the mobile terminal.
In this embodiment, the obtained first color gamut space and the second color gamut space may be compared to determine whether the first color gamut space and the second color gamut space are the same. As one way, when the color gamuts of both are acquired through the ICC file, it is possible to compare whether the parameters in the ICC file are the same to determine whether the first color gamut space and the second color gamut space are the same. Alternatively, when the first color gamut space and the second color gamut space are obtained, names of the first color gamut space and the second color gamut space, such as SRGB, adobe RGB, and the like, may be obtained, and whether the names are the same may be directly compared to determine whether the names are the same. Of course, the specific manner of determining whether the first color gamut space and the second color gamut space are the same may not be limited.
Further, when it is determined that the first color gamut space is different from the second color gamut space, the mobile terminal may obtain a third color gamut space of the display screen. As one way, a file may be configured in the system of the mobile terminal for storing the current color gamut space of the display screen, for example, an ICC file may be configured in the system of the mobile terminal. Therefore, the mobile terminal can acquire the color gamut space of the display screen by reading the file, and use the acquired color gamut space of the display screen as a third color gamut space. Of course, the manner of obtaining the color gamut space of the display screen may not be limiting.
In some embodiments, when it is determined that the first color gamut space is the same as the second color gamut space, the mobile terminal may not perform color gamut space conversion on the picture, the user interface, or the display screen, and then directly display the picture.
Of course, in some embodiments, when it is determined that the first color gamut space is the same as the second color gamut space, the color gamut space of the display screen may also be obtained as a third color gamut space, and whether the third color gamut space is the same as the first color gamut space or the second color gamut space is compared. As one way, if the third color gamut space is not the same as the first color gamut space or the second color gamut space, the color gamut space of the display screen may be converted into the first color gamut space or the second color gamut space so that the color gamut spaces of the picture, the user interface, and the display screen are the same. As another way, if the third color gamut space is different from the first color gamut space or the second color gamut space, the color gamut space of the picture and the user interface may also be converted into the third color gamut space, so that the color gamut spaces of the picture, the user interface, and the display screen are the same.
Step S130: and if the second color gamut space is the same as the third color gamut space, adjusting the color gamut space of the picture to be the second color gamut space or the third color gamut space.
In an embodiment of the present application, the second gamut space and the third gamut space may be compared to determine whether the first gamut space and the second gamut space are the same. The mobile terminal may also determine whether the first color gamut space is the same as the second color gamut space by obtaining a configuration file or a name, etc. obtained when the color gamut space of the user interface and the display screen is obtained.
Further, if the second color gamut space is the same as the third color gamut space, the color gamut space of the picture may be adjusted to the second color gamut space or the third color gamut space. It can be understood that, when the mobile terminal runs the application and displays the user interface, the user interface may be displayed in the same color gamut space as the display screen, and if the color gamut space of the current display screen is the same as the display space of the user interface, the color gamut space of the picture only needs to be adjusted to be the same as the color gamut space of the user interface and the user interface, so that the color gamut space of the picture, the user interface, and the display screen is the same. Therefore, the mobile terminal does not need to adjust the color gamut space of the display screen and the user interface, and the processing efficiency of the mobile terminal is improved.
In some embodiments, before adjusting the color gamut space of the picture to the second color gamut space or the third color gamut space, it may also be determined whether the color gamut adjustment condition is currently satisfied. The color gamut adjustment condition may include a condition indicating whether the resource of the mobile terminal allows color gamut adjustment, for example, when the remaining power of the mobile terminal is low, performing color gamut adjustment may increase power consumption, and therefore when the remaining power exceeds the set power, the color gamut space of the picture is allowed to be adjusted to the second color gamut space or the third color gamut space. The color gamut adjusting condition may also include whether a function for characterizing color gamut adjustment is turned on, the function for color gamut adjustment may be turned on or off by a configuration interface in the mobile terminal, and the function may be global to the mobile terminal or may be only specific to a single application. Of course, the specific color gamut adjustment conditions may not be limiting.
In some embodiments, if the second color gamut space is different from the third color gamut space, the color gamut spaces of any two of the picture, the user interface, and the display screen may be adjusted to be the same as the color gamut spaces of the rest, so that the color gamut spaces of the three are the same. As one way, both the color gamut space of the picture and the color gamut space of the user interface may be adjusted to the third color gamut space. As another way, both the color gamut space of the user interface and the color gamut space of the display screen may be adjusted to the first color gamut space. As another way, both the color gamut space of the picture and the color gamut space of the display screen may be adjusted to the second color gamut space.
Step S140: and displaying the adjusted picture.
According to the picture display method provided by the embodiment of the application, when the picture is loaded by the application program, whether the color gamut space of the picture is the same as that of the user interface or not is judged, and when the color gamut space of the user interface is different from that of the display screen, whether the color gamut space of the user interface is consistent with that of the display screen or not is determined, and when the color gamut space of the user interface is the same as that of the display screen, the color gamut space of the picture, the color gamut space of the user interface and the color gamut space of the display screen are adjusted to be the color gamut space of the user interface or the color gamut space of the display screen.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a picture display method according to another embodiment of the present application. The method is applied to the mobile terminal, and will be described in detail with respect to the flow shown in fig. 4, where the image display method may specifically include the following steps:
step S210: when it is detected that a currently running application program loads a picture, acquiring a color gamut space of the picture as a first color gamut space and acquiring a color gamut space of a user interface of the application program as a second color gamut space.
Step S220: and if the first color gamut space is different from the second color gamut space, acquiring a third color gamut space of the display screen of the mobile terminal.
In the embodiment of the present application, the contents of step S210 and step S220 may refer to the contents of the foregoing embodiments, and are not described herein again.
Step S230: and if the second color gamut space is the same as the third color gamut space, comparing the color gamut range of the first color gamut space with the color gamut range of the second color gamut space.
In the embodiment of the present application, when it is determined that the second gamut space is the same as the third gamut space, the gamut range of the first gamut space may be compared with the gamut range of the second gamut space. It can be understood that, when the gamut range of the gamut space of the user interface is greater than the gamut range of the gamut space of the picture, if the gamut space of the picture is adjusted to be the higher second gamut space and the higher third gamut space, the load of the mobile terminal may be increased, that is, the occupancy rate of the central processor, the graphics processor, and the like may be increased, and the power consumption of the mobile terminal may also be increased, so that the gamut range of the gamut space of the user interface may be compared with the gamut range of the gamut space of the picture, that is, the gamut range of the first gamut space may be compared with the gamut range of the second gamut space, to determine whether to subsequently adjust the gamut space of the picture to be the higher second gamut space or the higher third gamut space. The sum of colors that can be expressed by different color gamut spaces is different, and the color rendering range is also different, that is, the color gamut range is different.
Of course, since the color gamut space of the user interface is the same as the color gamut space of the display screen, the mobile terminal may also compare the color gamut space of the picture with the color gamut space of the display screen, that is, compare the first color gamut space with the third color gamut space.
Step S240: and if the color gamut range of the second color gamut space is larger than the color gamut range of the first color gamut space, acquiring the current residual resource parameter of the terminal, wherein the residual resource parameter comprises at least one of the residual electric quantity of the terminal, the residual resource of a central processing unit and the residual resource of a graphic processor.
In this embodiment of the application, if the comparison result is that the color gamut range of the second color gamut space is larger than the color gamut range of the first color gamut space, the burden of the mobile terminal may be increased if the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space. Therefore, the current remaining resource parameters of the mobile terminal can be obtained to determine how to adjust the color gamut space of the picture to the second color gamut space or the third color gamut space with a higher color gamut range.
In some embodiments, the current remaining resource parameter of the mobile terminal may include a remaining resource of the central processing unit, a remaining resource of the graphics processing unit, a remaining power, and the like, and the specific remaining resource parameter may not be limited. The mobile terminal may obtain one or more of these parameters in order to determine how to adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.
The mobile terminal can detect the use condition of the central processing unit to obtain the residual resources of the central processing unit. For example, when the operating system of the mobile terminal is an Android system, the service condition and the process time of the system can be obtained through a ProcessStats class in the Android system. The specific implementation principle is that files in a/proc directory are read, when the system runs, the kernel updates the files in the/proc directory, the running condition of the PID is written into the corresponding files, and the residual resources of the central processing unit can be obtained according to the running condition. The remaining resource of the central processing unit may be a remaining utilization rate, a remaining usage space, and the like of the central processing unit, which is not limited herein.
The mobile terminal can also detect the use condition of the graphics processor, thereby obtaining the residual resources of the graphics processor. For example, when the operating system of the mobile terminal is an android system, the usage of the graphics processor may be obtained through an adb command, for example, the usage of the graphics processor may be obtained through adb shell cat/sys/class/kgsl/kgsl-3d0/gpubusy, so as to obtain the remaining resources of the graphics processor. The remaining resources of the graphics processor may be, but are not limited to, a remaining usage rate, a remaining usage space, and the like of the graphics processor.
Of course, the above manner of obtaining the remaining resources of the central processing unit and the graphics processor is only an example, and the specific manner may not be limited in the embodiment of the present application.
The mobile terminal can acquire the residual electric quantity of the mobile terminal through a description file for describing the battery state, a monitoring window for monitoring the battery state and the like in the system. For example, when the system of the mobile terminal is an android system, the battery event from the bottom layer can be monitored through a health model, and battery data information is transmitted upwards to the battery service of the Framework layer to calculate the battery power related information, so that the mobile terminal can obtain the remaining power of the battery from the battery service. Of course, the specific manner of acquiring the remaining power may not be limited. The remaining capacity may be a remaining capacity value, a percentage of the remaining capacity to the total capacity, and the like, and is not limited herein.
Step S250: and judging whether the residual resource parameter is larger than a first specified threshold value.
In this embodiment of the present application, the first specified thresholds corresponding to different types of remaining resource parameters may be different. The remaining resources of the central processing unit may correspond to a designated threshold 1, the remaining resources of the graphics processing unit may correspond to a designated threshold 2, and the remaining power may correspond to a designated threshold 3. The designated threshold 1, the designated threshold 2, and the designated threshold 3 may be determined according to the attribute parameters of the central processing unit, the graphic processing unit, and the battery, for example, when the maximum operating frequency of the central processing unit is relatively high, the designated threshold 1 may be 30%, and the specific first designated threshold may not be limited.
When the remaining resource parameters acquired by the mobile terminal include multiple types of remaining resource parameters, the remaining resource parameters may be respectively compared with the specified threshold corresponding to the types of the remaining resource parameters to determine whether the remaining resource parameters are greater than a first specified threshold, when the remaining resource parameters of each type are greater than the first specified threshold corresponding to the type of the remaining resource parameters, the remaining resource parameters of the mobile terminal may be determined to be greater than the first specified threshold, and when the remaining resource parameters of at least one type are not greater than the first specified threshold corresponding to the type of the remaining resource parameters, the remaining resource parameters of the mobile terminal are determined to be not greater than the specified threshold. Of course, the specific determination manner may not be limited, for example, it may also be determined that the remaining resource parameter of the mobile terminal is greater than the first specified threshold when the remaining resource parameter of any type is greater than the first specified threshold corresponding to the type.
Step S260: and if the residual resource parameter is larger than a first specified threshold value, adjusting the color gamut space of the picture to be the second color gamut space or the third color gamut space.
In this embodiment of the application, when it is determined that the remaining resource parameter is greater than the specified threshold, it indicates that the remaining resource of the mobile terminal allows the color gamut space of the picture to be adjusted to the second color gamut space or the third color gamut space with a higher color gamut range. It can be understood that, when the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space with a higher color gamut range, the load of the mobile terminal may be increased, that is, the occupancy rate of the central processing unit, the graphics processing unit, and the like is increased, and the power consumption of the mobile terminal may also be increased, so that when the remaining resource parameter is higher, the color gamut space of the picture may be adjusted to the second color gamut space or the third color gamut space with a higher color gamut range.
Step S261: and if the residual resource parameter is less than or equal to the first specified threshold, acquiring the proportion of the display area of the picture in the user interface.
In the embodiment of the present application, when it is determined that the remaining resource parameter is less than or equal to the specified threshold, it indicates that if the color gamut space of the picture is currently adjusted to the second color gamut space or the third color gamut space with a higher color gamut range, a jam and an insufficient power of the mobile terminal may be caused. In this case, it may be considered whether the occupation ratio of the display area of the picture to the user interface is high, and if the occupation ratio is high, it indicates that the display area of the picture is large, and the mobile terminal may not adjust the color gamut space of the picture to the second color gamut space or the third color gamut space with a large color gamut range in order to avoid the stuttering and the power shortage of the mobile terminal. Therefore, the mobile terminal can acquire the occupation ratio of the display area of the picture to the user interface.
In some embodiments, the application program is preset with a display position and a display area of the picture on the user interface. Therefore, the corresponding display area of the picture on the user interface can be acquired according to the preset of the application program. For example, a preview area of a picture is preset on a user interface of a picture viewing application program, and the preview area is a display area corresponding to the picture on the user interface.
Further, the area of the display region corresponding to the picture on the user interface and the area of the user interface can be obtained, and then the ratio of the area of the display region corresponding to the picture to the area of the user interface is calculated, so that the occupation ratio of the display region of the picture to the user interface is obtained.
Step S270: and judging whether the ratio is larger than a specified ratio.
In the embodiment of the application, the mobile terminal is preset and stores the specified proportion, and the specified proportion is used as a judgment basis for the proportion of the display area of the picture occupying the user interface. It can be understood that, when the occupation ratio of the display area of the picture to the user interface is greater than the specified ratio, it indicates that the corresponding display area of the picture on the user interface is larger, so as not to affect the work of the mobile terminal, the color gamut space of the picture may not be adjusted to the color gamut space with the larger color gamut range, but the color gamut space of the user interface and the color gamut space of the display screen may be adjusted to the first color gamut space with the lower color gamut range, thereby ensuring the color gamut spaces of the picture, the user interface and the display screen to be consistent, and ensuring the original color information of the picture to be completely expressed; when the occupation ratio of the display area of the picture to the user interface is smaller than or equal to the designated ratio, the corresponding display area of the picture on the user interface is smaller, the color gamut range of the picture is adjusted to the color gamut space with the higher color gamut range, and the work of the mobile terminal is probably not influenced, so that the color gamut range of the picture can be adjusted to the second color gamut space or the third color gamut space, the consistency of the color gamut spaces of the picture, the user interface and the display screen is ensured, and the original color information of the user interface can be completely expressed. In one aspect, the predetermined ratio may be 1/2, 2/3, etc., and is not limited herein.
Step S280: and if the ratio is larger than a specified ratio, adjusting the color gamut space of the display screen and the color gamut space of the user interface to the first color gamut space.
Step S281: and if the ratio is less than or equal to the specified ratio, adjusting the color gamut space of the picture to be the second color gamut space or the third color gamut space.
In some embodiments, after step S230, if the gamut range of the first gamut space is greater than the gamut range of the second gamut space and the remaining resource parameter is greater than a second specified threshold, the mobile terminal may adjust the gamut space of the display screen and the gamut space of the user interface to the first gamut space, where the second specified threshold is greater than the first specified threshold, for example, 50% of the first specified threshold is 30%. It can be understood that if the remaining resource parameter of the mobile terminal is greater than the second specified threshold, the remaining resource of the mobile terminal is more, so that the color gamut space of the display screen and the color gamut space of the user interface can be simultaneously adjusted to the first color gamut space with a higher color gamut range, without affecting the normal operation of the mobile terminal.
Step S290: and when the color gamut space of the picture is not adjusted, displaying the picture, and when the color gamut space of the picture is adjusted, displaying the adjusted picture.
In the embodiment of the present application, in the above process, the color gamut space of the picture may be adjusted; it may also be that the color gamut space of the picture is not adjusted, that is, the color gamut spaces of the user interface and the display screen are adjusted, so that the color gamut space of the picture is consistent with the color gamut spaces of the user interface and the display screen. Therefore, when the color gamut space of the picture is adjusted, the picture with the adjusted color gamut space is displayed, and when the color gamut space of the picture is not adjusted, the picture loaded by the application program can be displayed.
According to the picture display method provided by the embodiment of the application, when the picture is loaded by the application program, whether the color gamut space of the picture is the same as that of the user interface is judged, and when the color gamut space of the user interface is different from that of the display screen, whether the color gamut space of the user interface is the same as that of the display screen is judged, whether the color gamut range of the color gamut space of the picture is larger than that of the color gamut space of the user interface is judged, under the condition of two different judgment results, the color gamut space of the picture is adjusted according to the residual resource parameters of the mobile terminal, or the color gamut spaces of the user interface and the display screen are adjusted, so that the normal operation and the use condition of the mobile terminal are ensured, when the picture is displayed in the user interface of the application program, the color gamut space of the picture is consistent with the color gamut spaces of the user interface and the display screen, the difference in the display effect is avoided, the user visual experience is influenced, and the display effect and the user visual experience are improved.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a picture display method according to another embodiment of the present application. The method is applied to the mobile terminal, and as will be described in detail below with respect to the flow shown in fig. 5, the image display method may specifically include the following steps:
step S310: when detecting that a currently running application program loads a picture, acquiring a color gamut space of the picture as a first color gamut space and acquiring a color gamut space of a user interface of the application program as a second color gamut space
Step S320: and if the first color gamut space is different from the second color gamut space, acquiring a third color gamut space of the display screen of the mobile terminal.
In the embodiment of the present application, step S310 and step S320 may refer to the contents of the foregoing embodiments, and are not described herein again.
Step S330: and if the second color domain space is the same as the third color domain space, judging whether the number of the pictures loaded by the application program is multiple.
In this embodiment of the application, before the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space, the mobile terminal may further obtain the number of pictures loaded by the application program. It can be understood that when the application program loads the pictures, it may load a plurality of pictures at the same time, that is, a plurality of pictures need to be displayed on the user interface.
Further, the mobile terminal may determine whether the number of the pictures loaded by the application program is multiple, so as to determine whether to adjust the color gamut space of the pictures to the second color gamut space or the third color gamut space. When the number of the pictures loaded by the application program is multiple, if the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space for each picture by the mobile terminal, the task processed by the mobile terminal is more.
Step S340: if not, the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space.
In the embodiment of the application, when the number of the pictures loaded by the application program is not multiple, the color gamut space of the pictures is adjusted to the second color gamut space or the third color gamut space, so that the normal work of the mobile terminal is prevented from being influenced by too many processing tasks of the mobile terminal.
Step S350: and if the number of the color gamut spaces is multiple, displaying prompt contents, wherein the prompt contents are used for prompting whether the color gamut space of the picture is adjusted to be the second color gamut space or the third color gamut space.
In this embodiment of the application, when the number of the pictures loaded by the application is multiple, before the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space, a prompt content may be further displayed to prompt a user whether to adjust the color gamut space of the picture to the second color gamut space or the third color gamut space. It can be understood that when the number of the pictures loaded by the application is more than one, the processing task of the mobile terminal may be too much and the operation may not be smooth, so that the user may be prompted to decide whether to adjust the color gamut space of the pictures to the second color gamut space or the third color gamut space. The prompt content may be implemented in the form of a pop-up window, and is not limited herein.
Step S360: when a determination instruction is received, the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space.
In some embodiments, after the hint content is displayed, an instruction input by the user may be waited, and when a determination instruction is detected, it indicates that the user needs to adjust the color gamut space of the picture to the second color gamut space or the third color gamut space. And when the determination instruction is not detected, the color gamut space of the picture is not adjusted to the second color gamut space or the third color gamut space. Wherein, whether the determination instruction is received or not can be determined according to the detected operation on the prompt content in the user interface. For example, when the pop-up prompt is performed, controls of "yes" and "no" may be displayed, and when an operation on the control of "yes" is detected, it is determined that the determination instruction is received. In addition, when the pop-up window prompt is performed, countdown can be performed, when the user does not perform the confirmation operation within the target duration after the pop-up window prompt, the pop-up window prompt is cancelled, and the color gamut space of the picture is not adjusted to the second color gamut space or the third color gamut space.
Step S370: and displaying the adjusted picture.
The picture display method provided by the embodiment of the application judges whether the color gamut space of the picture is the same as that of the user interface when the picture is loaded by the application, determines whether the color gamut space of the user interface is the same as that of the display screen when the picture is loaded by the application, determines the number of the loaded pictures when the color gamut space of the user interface is the same as that of the display screen, adjusts the color gamut space of the picture into the second color gamut space or the third color gamut space when the loaded picture is not multiple pictures, avoids influencing the normal work of the mobile terminal, ensures that the color gamut space of the picture is the same as that of the user interface of the application and the color gamut space of the display screen when the picture is displayed in the user interface of the application, avoids the difference in display effect, ensures that the picture can present original color information, and improves the display effect and the visual experience of a user.
Referring to fig. 6, fig. 6 is a block diagram illustrating a picture display apparatus 400 according to an embodiment of the present disclosure. The picture display apparatus 400 is applied to the mobile terminal. As will be explained below with respect to the block diagram shown in fig. 6, the picture display apparatus 400 includes: a first gamut obtaining module 410, a second gamut obtaining module 420, a gamut adjusting module 430 and a display executing module 440. The first color gamut obtaining module 410 is configured to, when it is detected that a currently running application loads a picture, obtain a color gamut space of the picture as a first color gamut space, and obtain a color gamut space of a user interface of the application as a second color gamut space; the second color gamut acquiring module 420 is configured to acquire a color gamut space of a display screen of the mobile terminal as a third color gamut space if the first color gamut space is different from the second color gamut space; the color gamut adjusting module 430 is configured to adjust the color gamut space of the picture to be the second color gamut space or the third color gamut space if the second color gamut space is the same as the third color gamut space; the display execution module 440 is configured to display the adjusted picture.
In some embodiments, referring to fig. 7, the color gamut adjusting module 430 may include: a gamut range determining unit 431, a resource parameter obtaining unit 432, and a first gamut adjusting unit 433. The color gamut range determining unit 431 is configured to compare the color gamut range of the first color gamut space with the color gamut range of the second color gamut space if the second color gamut space is the same as the third color gamut space; the resource parameter obtaining unit 431 is configured to obtain a current residual resource parameter of the terminal if the color gamut range of the second color gamut space is greater than the color gamut range of the first color gamut space, where the residual resource parameter includes at least one of a residual power of the terminal, a residual resource of a central processing unit, and a residual resource of a graphics processor; the first gamut adjusting unit 433 is configured to adjust the gamut space of the picture to the second gamut space or the third gamut space if the remaining resource parameter is greater than a first specified threshold.
In some embodiments, referring to fig. 7, the color gamut adjusting module 430 may further include: a ratio obtaining unit 434 and a second color gamut adjusting unit 435. The proportion obtaining unit 434 is configured to obtain a proportion of a display area of the picture in the user interface if the remaining resource parameter is less than or equal to the first specified threshold; the second gamut adjusting unit 435 is configured to adjust the gamut space of the display screen and the gamut space of the user interface to the first gamut space if the ratio is greater than a specified ratio.
In some embodiments, the first adjusting unit 433 is further configured to adjust the color gamut space of the picture to the second color gamut space or the third color gamut space if the duty ratio is less than or equal to the specified ratio.
In some embodiments, referring to fig. 7, the color gamut adjusting module 430 may further include: a third adjusting unit 436. The third adjusting unit is configured to adjust the color gamut space of the display screen and the color gamut space of the user interface to the first color gamut space if the color gamut range of the first color gamut space is greater than the color gamut range of the second color gamut space and the remaining resource parameter is greater than a second specified threshold, where the second specified threshold is greater than the first specified threshold.
In some embodiments, the color gamut adjustment module 430 may also be configured to: and if the second color gamut space is different from the third color gamut space, adjusting the color gamut space of the picture and the color gamut space of the user interface into the third color gamut space.
In some embodiments, referring to fig. 8, the picture display apparatus 400 may further include: a quantity determination module 450. The number determining unit 450 is configured to determine whether the number of pictures loaded by the application is multiple before the color gamut space of the pictures is adjusted to the second color gamut space or the third color gamut space. If the number of the pictures loaded by the application program is not multiple, the color gamut adjusting module 430 performs the color gamut space adjustment of the pictures to the second color gamut space or the third color gamut space.
In some embodiments, referring to fig. 8, the picture display apparatus 400 may further include: a content prompt module 460. The content prompt module 460 is configured to display prompt content if the number of the pictures loaded by the application program is multiple, where the prompt content is used to prompt whether to adjust the color gamut space of the picture to the second color gamut space or the third color gamut space. The color gamut adjusting module 430 is further configured to adjust the color gamut space of the picture to the second color gamut space or the third color gamut space when receiving the determination instruction.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In several embodiments provided in the present application, the coupling of the modules to each other may be electrical, mechanical or other forms of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules 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.
To sum up, the scheme that this application provided when detecting the application of current operation and loading the picture, the colour gamut space of obtaining the picture is as first colour gamut space to and the colour gamut space of application's user interface is as second colour gamut space, if first colour gamut space is different with second colour gamut space, obtain the third colour gamut space of mobile terminal's display screen, if second colour gamut space is the same with third colour gamut space, with the colour gamut space adjustment of picture to second colour gamut space or third colour gamut space, show the picture after the adjustment at last. Therefore, when the picture is displayed in the interface of the application program, the consistency of the picture, the user interface and the color gamut space of the display screen is ensured, and the display effect of the picture and the user interface is improved.
Referring to fig. 9, a block diagram of a mobile terminal according to an embodiment of the present disclosure is shown. The mobile terminal 100 may be a smart phone, a tablet computer, an electronic book, or other mobile terminal capable of running an application. The mobile terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a display 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores. The processor 110 interfaces with various components throughout the mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The Display 130 is used for displaying information input by a user, information provided to the user, and various graphic user interfaces of the mobile terminal 100, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the Display 130 may be a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), which is not limited herein.
Referring to fig. 10, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A picture display method is applied to a mobile terminal, and comprises the following steps:
when it is detected that a currently running application program loads a picture, acquiring a color gamut space of the picture as a first color gamut space and acquiring a color gamut space of a user interface of the application program as a second color gamut space;
if the first color gamut space is different from the second color gamut space, acquiring a third color gamut space of the display screen of the mobile terminal, wherein the color gamut ranges of different color gamut spaces are different;
if the second color gamut space is the same as the third color gamut space, comparing the color gamut range of the first color gamut space with the color gamut range of the second color gamut space;
if the color gamut range of the second color gamut space is larger than the color gamut range of the first color gamut space, obtaining the current residual resource parameter of the terminal, wherein the residual resource parameter comprises at least one of the residual electric quantity of the terminal, the residual resource of a central processing unit and the residual resource of a graphic processor;
if the residual resource parameter is larger than a first specified threshold value, judging whether the number of the pictures loaded by the application program is multiple;
if not, adjusting the color gamut space of the picture to be the second color gamut space or the third color gamut space;
displaying the adjusted picture;
if the color gamut range of the first color gamut space is larger than the color gamut range of the second color gamut space and the residual resource parameter is larger than a second specified threshold, the color gamut space of the display screen and the color gamut space of the user interface are adjusted to be the first color gamut space, wherein the second specified threshold is larger than the first specified threshold.
2. The method according to claim 1, wherein after the obtaining of the current remaining resource parameters of the terminal, the method further comprises:
if the residual resource parameter is less than or equal to the first designated threshold, acquiring the proportion of the display area of the picture in the user interface;
and if the ratio is larger than a specified ratio, adjusting the color gamut space of the display screen and the color gamut space of the user interface to the first color gamut space.
3. The method of claim 2, further comprising:
and if the ratio is less than or equal to the specified ratio, adjusting the color gamut space of the picture to be the second color gamut space or the third color gamut space.
4. The method of claim 1, further comprising:
and if the second color gamut space is different from the third color gamut space, adjusting the color gamut space of the picture and the color gamut space of the user interface into the third color gamut space.
5. The method of claim 1, further comprising:
if the number of the color gamut spaces is multiple, displaying prompt content, wherein the prompt content is used for prompting whether the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space;
when a determination instruction is received, the color gamut space of the picture is adjusted to the second color gamut space or the third color gamut space.
6. A picture display device, applied to a mobile terminal, the device comprising: a first color gamut obtaining module, a second color gamut obtaining module, a quantity judging module, a color gamut adjusting module and a display executing module, wherein,
the first color gamut acquisition module is used for acquiring a color gamut space of the picture as a first color gamut space and a color gamut space of a user interface of the application program as a second color gamut space when the current running application program is detected to load the picture;
the second color gamut acquisition module is used for acquiring a color gamut space of a display screen of the mobile terminal as a third color gamut space if the first color gamut space is different from the second color gamut space, wherein the color gamut ranges of different color gamut spaces are different;
the color gamut adjusting module is used for comparing the color gamut range of the first color gamut space with the color gamut range of the second color gamut space if the second color gamut space is the same as the third color gamut space; if the color gamut range of the second color gamut space is larger than the color gamut range of the first color gamut space, obtaining the current residual resource parameter of the terminal, wherein the residual resource parameter comprises at least one of the residual electric quantity of the terminal, the residual resource of a central processing unit and the residual resource of a graphic processor;
the quantity judging module is used for judging whether the quantity of the pictures loaded by the application program is more than a first specified threshold value or not if the residual resource parameter is larger than the first specified threshold value;
the color gamut adjusting module is further configured to adjust the color gamut space of the picture to the second color gamut space or the third color gamut space if there are not a plurality of color gamut adjusting modules;
the display execution module is used for displaying the adjusted picture;
the color gamut adjusting module is further configured to adjust the color gamut space of the display screen and the color gamut space of the user interface to the first color gamut space if the color gamut range of the first color gamut space is greater than the color gamut range of the second color gamut space and the remaining resource parameter is greater than a second specified threshold, where the second specified threshold is greater than the first specified threshold.
7. A mobile terminal, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-5.
8. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 5.
CN201910647095.9A 2019-07-17 2019-07-17 Picture display method and device, mobile terminal and storage medium Active CN110377391B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910647095.9A CN110377391B (en) 2019-07-17 2019-07-17 Picture display method and device, mobile terminal and storage medium
PCT/CN2020/099107 WO2021008348A1 (en) 2019-07-17 2020-06-30 Image display method and device, mobile terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910647095.9A CN110377391B (en) 2019-07-17 2019-07-17 Picture display method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110377391A CN110377391A (en) 2019-10-25
CN110377391B true CN110377391B (en) 2022-10-28

Family

ID=68253756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910647095.9A Active CN110377391B (en) 2019-07-17 2019-07-17 Picture display method and device, mobile terminal and storage medium

Country Status (2)

Country Link
CN (1) CN110377391B (en)
WO (1) WO2021008348A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377391B (en) * 2019-07-17 2022-10-28 Oppo广东移动通信有限公司 Picture display method and device, mobile terminal and storage medium
CN111294649B (en) * 2020-05-13 2021-02-26 腾讯科技(深圳)有限公司 Content display method and device based on screen combination, electronic equipment and storage medium
CN113810675B (en) * 2020-06-12 2024-03-12 北京小米移动软件有限公司 Image processing method, device, equipment and storage medium
CN112817675A (en) * 2021-01-22 2021-05-18 北京小米移动软件有限公司 Interface display processing method and device, electronic equipment and storage medium
CN112947876B (en) * 2021-01-28 2022-08-26 维沃移动通信有限公司 Display control method, display control device, electronic device, and medium
EP4315311A1 (en) * 2021-05-03 2024-02-07 Dynascan Technology Corp. Methods for compensating colors based on luminance adjustment parameters and the related display devices
US11699405B2 (en) 2021-05-03 2023-07-11 Dynascan Technology Corp. Methods for compensating colors based on virtual chromaticity coordinate points and the related display devices

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080029410A (en) * 2006-09-29 2008-04-03 삼성전자주식회사 Display system and image processing method thereof
KR102158844B1 (en) * 2014-01-03 2020-09-22 삼성전자주식회사 Apparatus and method for processing image, and computer-readable recording medium
CN105141806B (en) * 2015-07-28 2019-03-01 小米科技有限责任公司 The display methods and device of image file
CN105118026A (en) * 2015-07-28 2015-12-02 小米科技有限责任公司 Color gamut mode switching method and device
CN105261326A (en) * 2015-10-09 2016-01-20 惠州Tcl移动通信有限公司 Display device for adjusting display color gamut and method for adjusting display color gamut
CN109729405B (en) * 2018-11-27 2021-11-16 Oppo广东移动通信有限公司 Video processing method and device, electronic equipment and storage medium
CN110377391B (en) * 2019-07-17 2022-10-28 Oppo广东移动通信有限公司 Picture display method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
WO2021008348A1 (en) 2021-01-21
CN110377391A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN110377391B (en) Picture display method and device, mobile terminal and storage medium
US11412153B2 (en) Model-based method for capturing images, terminal, and storage medium
US11810529B2 (en) Screen color gamut control method, electronic device and storage medium
CN110012217B (en) Method and device for determining acquisition resolution and electronic equipment
US9665247B2 (en) Method and device for applying a new skin to a display environment
CN105279006B (en) Screen capture method and terminal based on Android system
CN112416346B (en) Interface color scheme generation method, device, equipment and storage medium
CN111491102A (en) Detection method and system for photographing scene, mobile terminal and storage medium
US20220139296A1 (en) Image information processing method, electronic device and storage medium
CN110413360A (en) Image display method, device, mobile terminal and storage medium
CN110377773B (en) Picture processing method and device, mobile terminal and storage medium
CN102214107A (en) Method and device for changing Flash skin and color in client program
CN111736941B (en) Picture processing method and device
CN113038141A (en) Video frame processing method and electronic equipment
CN110362188B (en) Picture processing method and device, mobile terminal and storage medium
CN110365962B (en) Color gamut conversion processing method and device and electronic equipment
CN110378973B (en) Image information processing method and device and electronic equipment
CN114416089A (en) Page display method and device, mobile terminal and storage medium
CN110377258B (en) Image rendering method and device, electronic equipment and storage medium
CN110378974B (en) Picture processing method and device, mobile terminal and storage medium
CN110278479B (en) Picture display method and television
JP2023530609A (en) INTERFACE DISPLAY METHOD, APPARATUS AND COMPUTER-READABLE STORAGE MEDIUM
CN108881999B (en) Screen capture processing method and system
CN113368495A (en) Game image quality improving method
CN111026893A (en) Intelligent terminal, image processing method and computer-readable storage medium

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