[go: up one dir, main page]

CN110413360A - Image display method, device, mobile terminal and storage medium - Google Patents

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

Info

Publication number
CN110413360A
CN110413360A CN201910647110.XA CN201910647110A CN110413360A CN 110413360 A CN110413360 A CN 110413360A CN 201910647110 A CN201910647110 A CN 201910647110A CN 110413360 A CN110413360 A CN 110413360A
Authority
CN
China
Prior art keywords
color gamut
gamut space
picture
user interface
space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910647110.XA
Other languages
Chinese (zh)
Inventor
胡杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910647110.XA priority Critical patent/CN110413360A/en
Publication of CN110413360A publication Critical patent/CN110413360A/en
Pending legal-status Critical Current

Links

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
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/32Image data format

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)

Abstract

本申请公开了一种图片显示方法、装置、移动终端及存储介质,该图片显示方法包括:在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间;判断所述第一色域空间与所述第二色域空间是否相同;如果不相同,将所述图片的色域空间与所述用户界面的色域空间调整为一致;在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。本方法可以在应用程序的界面中展示图片时,使图片与用户界面的色域空间一致,提升图片与用户界面的显示效果。

The present application discloses a method, device, mobile terminal and storage medium for displaying an image. The method for displaying an image includes: when detecting that a currently running application loads an image, obtaining the color gamut space of the image as a first color gamut space and the color gamut space of the user interface of the application as a second color gamut space; determining whether the first color gamut space is the same as the second color gamut space; if they are not the same, adjusting the color gamut space of the image to be consistent with the color gamut space of the user interface; after adjusting the color gamut space of the image to be consistent with the color gamut space of the user interface, displaying the image. This method can make the color gamut space of the image and the user interface consistent when displaying the image in the interface of the application, thereby improving the display effect of the image and the user interface.

Description

图片显示方法、装置、移动终端及存储介质Image display method, device, mobile terminal and storage medium

技术领域technical field

本申请涉及移动终端技术领域,更具体地,涉及一种图片显示方法、装置、移动终端及存储介质。The present application relates to the technical field of mobile terminals, and more particularly, to a picture display method, device, mobile terminal and storage medium.

背景技术Background technique

移动终端,例如手机、平板电脑等,已经成为人们日常生活中最常用的消费型电子产品之一。随着科技水平的迅速发展,移动终端可实现的功能和应用越来越多,例如,移动终端可以显示图片以及视频等图像。但是,目前的移动终端在应用程序的界面中展示图片时显示效果不佳,影响了用户体验。Mobile terminals, such as mobile phones, tablet computers, etc., have become one of the most commonly used consumer electronic products in people's daily life. With the rapid development of science and technology, more and more functions and applications can be implemented by a mobile terminal. For example, a mobile terminal can display images such as pictures and videos. However, when the current mobile terminal displays pictures in the interface of the application program, the display effect is not good, which affects the user experience.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本申请提出了一种图片显示方法、装置、移动终端及存储介质,以改善上述问题。In view of the above problems, the present application proposes a picture display method, device, mobile terminal and storage medium to improve the above problems.

第一方面,本申请实施例提供了一种图片显示方法,所述方法包括:在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间;判断所述第一色域空间与所述第二色域空间是否相同;如果不相同,将所述图片的色域空间与所述用户界面的色域空间调整为一致;在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。In a first aspect, an embodiment of the present application provides a picture display method, 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; The color gamut space of the user interface of the application program is used as the second color gamut space; it is judged whether the first color gamut space and the second color gamut space are the same; The color gamut space of the user interface is adjusted to be consistent; after the color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface, the picture is displayed.

第二方面,本申请实施例提供了一种图片显示装置,所述装置包括:色域获取模块、色域判断模块、色域调整模块以及显示执行模块,其中,所述色域获取模块用于在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间;所述色域判断模块用于判断所述第一色域空间与所述第二色域空间是否相同;所述色域调整模块用于如果不相同,将所述图片的色域空间与所述用户界面的色域空间调整为一致;在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。In a second aspect, an embodiment of the present application provides a picture display device, the device includes: a color gamut acquisition module, a color gamut judgment module, a color gamut adjustment module, and a display execution module, wherein the color gamut acquisition module is used for When it is detected that the currently running application program loads the picture, the color gamut space of the picture is obtained as the first color gamut space and the color gamut space of the user interface of the application program is obtained as the second color gamut space; The gamut judgment module is used to judge whether the first color gamut space and the second color gamut space are the same; the color gamut adjustment module is used to compare the color gamut space of the picture with that of the user interface if they are different The color gamut space is adjusted to be consistent; after the color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface, the picture is displayed.

第三方面,本申请实施例提供了一种移动终端,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的图片显示方法。In a third aspect, embodiments of the present application provide a mobile terminal, including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and The one or more programs are configured to be executed by the one or more processors, and the one or more programs are configured to execute the picture display method provided by the above-mentioned first aspect.

第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的图片显示方法。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 can be invoked by a processor to execute the picture provided in the first aspect above Display method.

本申请提供的方案,在检测到当前运行的应用程序对图片进行加载时,获取图片的色域空间作为第一色域空间以及应用程序的用户界面的色域空间作为第二色域空间,判断第一色域空间与第二色域空间是否相同,如果不相同,将图片的色域空间与用户界面的色域空间调整为一致,然后再将图片进行显示。因此,在应用程序的界面中展示图片时时,保证了图片与用户界面的色域空间一致,从而提升图片与用户界面的显示效果。In the solution provided by this application, when it is detected that the currently running application program loads the picture, the color gamut space of the picture is obtained as the first color gamut space and the color gamut space of the user interface of the application program is used as the second color gamut space, and the judgment is made. Whether the first color gamut space and the second color gamut space are the same, if not, adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface, and then display the picture. Therefore, when displaying a picture in the interface of the application program, it is ensured that the color gamut space of the picture and the user interface is consistent, thereby improving the display effect of the picture and the user interface.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了适用于本申请实施例提供的图片显示方法的应用环境示意图。FIG. 1 shows a schematic diagram of an application environment suitable for the picture display method provided by the embodiment of the present application.

图2示出了根据本申请一个实施例的图片显示方法流程图。FIG. 2 shows a flowchart of a method for displaying pictures according to an embodiment of the present application.

图3示出了根据本申请一个实施例提供的一种界面示意图。Fig. 3 shows a schematic diagram of an interface provided according to an embodiment of the present application.

图4示出了根据本申请另一个实施例的图片显示方法流程图。FIG. 4 shows a flowchart of a picture display method according to another embodiment of the present application.

图5示出了根据本申又一个实施例的图片显示方法流程图。FIG. 5 shows a flowchart of a picture display method according to yet another embodiment of the present application.

图6示出了根据本申再一个实施例的图片显示方法流程图。FIG. 6 shows a flowchart of a picture display method according to still another embodiment of the present application.

图7示出了根据本申请一个实施例的图片显示装置的一种框图。FIG. 7 shows a block diagram of a picture display apparatus according to an embodiment of the present application.

图8示出了根据本申请一个实施例的图片显示装置中色域调整模块的一种框图。FIG. 8 shows a block diagram of a color gamut adjustment module in a picture display device according to an embodiment of the present application.

图9示出了根据本申请一个实施例的图片显示装置中色域调整模块的另一种框图。FIG. 9 shows another block diagram of a color gamut adjustment module in a picture display device according to an embodiment of the present application.

图10示出了根据本申请一个实施例的图片显示装置中色域调整模块的另一种框图。FIG. 10 shows another block diagram of a color gamut adjustment module in a picture display device according to an embodiment of the present application.

图11是本申请实施例的用于执行根据本申请实施例的图片显示方法的移动终端的框图。FIG. 11 is a block diagram of a mobile terminal for executing a picture display method according to an embodiment of the present application according to an embodiment of the present application.

图12是本申请实施例的用于保存或者携带实现根据本申请实施例的图片显示方法的程序代码的存储单元。FIG. 12 is a storage unit for storing or carrying a program code for implementing a picture display method according to an embodiment of the present application according to an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with 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 higher-definition pictures in the user interface of the application program. However, the inventor found in the research that the factors affecting the display effect of the picture are not only the information of the picture itself, but also the degree of matching between the picture information and the user interface of the application program.

以色域空间为例。色域即色域空间,是对一种颜色进行编码的方法,也指一个技术系统能够产生的颜色的总和。在计算机图形处理中,色域是颜色的某个完全的子集。色域空间可以包括有sRGB色域、Adobe RGB色域或者DCI-P3色域。其中,sRGB是最早期的色域标准之一,并得到了来自业界的W3C、Exif、Intel、Pantone、Corel以及其它许多业界厂商的支持。Adobe RGB色域主要就是提高了在青绿色系上的显示,因此大概可以覆盖50%CIE 1931XYZ色彩空间。DCI-P3是一种应用于数字影院的色域,它是一种以人类视觉体验为主导的色域标准,尽可能匹配电影场景中能展现的全部色域。它也不是色域最广的标准(目前最新的标准为BT.2020),但是在Rec.709标准之上,拥有更广阔的红色/绿色系范围。Take the color gamut space as an example. Color gamut, or color gamut space, is a method of encoding a color, and also refers to the sum of colors that a technical system can produce. In computer graphics, a color gamut is some complete subset of colors. The color gamut space can include sRGB color gamut, Adobe RGB color gamut or DCI-P3 color gamut. Among them, sRGB is one of the earliest color gamut standards, and has been supported by W3C, Exif, Intel, Pantone, Corel and many other industry manufacturers from the industry. The Adobe RGB color gamut is mainly to improve the display on the cyan color system, so it can cover about 50% of the CIE 1931XYZ color space. DCI-P3 is a color gamut used in digital cinema. It is a color gamut standard dominated by human visual experience, which matches as much as possible the full color gamut that can be displayed in movie scenes. It is also not the widest color gamut standard (currently the latest standard is BT.2020), but it has a wider red/green color range on top of the Rec.709 standard.

而发明人发现,在应用程序的用户界面中展示图片(例如用户在聊天应用中查看对方发送的图片)时,图片的色域空间与应用程序的用户界面的色域空间不一致时,直接在该用户界面上显示色域空间不一致的图片,会导致显示区域上的图片所在区域与用户界面所在区域的显示效果不协调,而影响了显示效果。例如,当对应的色域空间更广的图片显示在对应的色域空间更窄的用户界面上时,用户会看到图片区域更加艳丽,而对于整个用户界面中除图片区域以外的界面而言,则其艳丽程度不如图片区域。当对应的色域空间更窄的图片显示在对应的色域空间更广的用户界面上时,用户会看到整个用户界面中除图片区域以外的界面较为艳丽,而对于图片区域而言,则其艳丽程度不如除图片区域以外的界面。However, the inventor found that when a picture is displayed in the user interface of an application (for example, a user views a picture sent by the other party in a chat application), when the color gamut of the picture is inconsistent with the color gamut of the user interface of the application, the Displaying pictures with inconsistent color gamut spaces on the user interface will cause the display effect of the area where the image is located on the display area to be inconsistent with the display effect of the area where the user interface is located, thereby affecting the display effect. For example, when the corresponding picture with wider color gamut space is displayed on the corresponding user interface with narrower color gamut space, the user will see that the picture area is more colorful, while for the interface other than the picture area in the entire user interface , it is not as bright as the picture area. When the corresponding picture with a narrower color gamut space is displayed on the corresponding user interface with a wider color gamut space, the user will see that the interface other than the picture area in the entire user interface is more gorgeous, while for the picture area, the It's not as gorgeous as the interface other than the picture area.

因此,为了改善上述问题,发明人提出了本申请提供的图片显示方法、装置、移动终端及存储介质,可以使得在应用程序的用户界面中展示图片时,保证图片的色域空间与应用程序的用户界面的色域空间一致,从而提升显示效果。Therefore, in order to improve the above problems, the inventor proposes a picture display method, device, mobile terminal and storage medium provided by the present application, which can ensure that the color gamut space of the picture and the application program's color gamut space are guaranteed when the picture is displayed in the user interface of the application program. The color gamut space of the user interface is consistent, which improves the display effect.

下面先对适用于本申请实施例提供的图片显示方法的应用环境进行介绍。The following first introduces an application environment applicable to the picture display method provided by the embodiment of the present application.

如图1所示,在本申请实施例中在画布(Canvas)中进行界面(例如activity)中的图片的色域转换处理,要进行色域转换的图片会先经过图形处理函数库(Skia)的处理得到对应的位图,然后基于位图进行色域转换。在色域转换过程中会先基于硬件加速绘图模块(HWUI)或者图形处理函数库(Skia)进行色域转换,然后经过OpenGL ES(一种图形库)、图层模块(Surface)、图层传递模块(Surface Flinger)、硬件图层混合器(HWC)以及多媒体显示处理器(MDP)的处理,进而最终显示到屏幕上。As shown in FIG. 1 , in the embodiment of the present application, the color gamut conversion processing of the picture in the interface (such as activity) is performed in the canvas (Canvas), and the picture to be subjected to the color gamut conversion will first go through the graphics processing function library (Skia) The corresponding bitmap is obtained by processing, and then color gamut conversion is performed based on the bitmap. In the color gamut conversion process, the color gamut conversion will be performed based on the hardware accelerated drawing module (HWUI) or the graphics processing function library (Skia), and then passed through OpenGL ES (a graphics library), layer module (Surface), layer transfer Module (Surface Flinger), Hardware Layer Mixer (HWC) and Multimedia Display Processor (MDP) processing, and then finally displayed on the screen.

请参阅图2,图2示出了本申请一个实施例提供的图片显示方法的流程示意图。所示图片显示方法用于通过在应用程序的用户界面中展示图片时,保证图片的色域空间与应用程序的用户界面的色域空间一致,从而提升显示效果。在具体的实施例中,所述图片显示方法应用于如图7所示的图片显示装置400以及配置有所述图片显示装置400的移动终端100(图11)。下面将以移动终端为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的移动终端可以为智能手机、平板电脑、穿戴式电子设备等设置有显示屏的电子设备,在此不做限定。下面将针对图2所示的流程进行详细的阐述,该图片显示方法具体可以包括以下步骤:Please refer to FIG. 2. FIG. 2 shows a schematic flowchart of a picture display method provided by an embodiment of the present application. The picture display method shown is used to ensure that the color gamut space of the picture is consistent with the color gamut space of the user interface of the application program when displaying the picture in the user interface of the application program, thereby improving the display effect. In a specific embodiment, the picture display method is applied to the picture display device 400 shown in FIG. 7 and the mobile terminal 100 ( FIG. 11 ) equipped with the picture display device 400 . The following will take a mobile terminal as an example to describe the specific process of this embodiment. Of course, it can be 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, a wearable electronic device, etc. , which is not limited here. The flow shown in FIG. 2 will be described in detail below, and the picture display method may specifically include the following steps:

步骤S110:在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间。Step S110: When it is detected that the currently running application program loads the picture, acquire the color gamut space of the picture as the first color gamut space and the color gamut space of the user interface of the application program as the second color gamut space.

在本申请实施例中,移动终端中可以安装在运行时可在其用户界面展示图片的应用程序。其中,此类应用程序可以在运行时对图片进行加载后,通过渲染等操作将图片显示于用户界面。在一些实施方式中,此类应用程序也可以是图片编辑类应用程序,例如美图应用等;此类应用程序可以是图片查看类应用程序,例如图片库应用等;此类应用程序也可以是聊天应用程序;此类应用程序也可以是浏览器等。当然,具体在运行时可在其用户界面展示图片的应用程序可以不作为限定。In this embodiment of the present application, an application program that can display pictures on its user interface during runtime may be installed in the mobile terminal. Among them, such an application can display the image on the user interface through rendering and other operations after loading the image at runtime. In some embodiments, such an application may also be a picture editing application, such as a Meitu application, etc.; such an application may be a picture viewing application, such as a picture library application, etc.; such an application may also be Chat applications; such applications can also be browsers, etc. Of course, the specific application program that can display pictures on its user interface during running may not be limited.

在一些实施方式中,可展示图片的应用程序在运行时,可以根据用户的选择而加载本地图片或者网络图片,也可以加载应用程序接收的网络图片,还可以加载应用程序携带的图片。例如,如图3所示,当应用程序为图片编辑类应用程序时,用户可以通过在应用程序的用户界面中选择需要编辑的图片,而实现应用程序在加载图片A2后,将加载的图片A2经过渲染后在用户界面A1进行显示。又例如,当应用程序为聊天类应用程序时,应用程序可以从服务器接收其他用户发送的图片,应用程序在将接收的图片进行显示前加载该图片。当然,具体应用程序加载的图片可以不作为限定。In some embodiments, when an application program capable of displaying pictures is running, it can load a local picture or a network picture according to a user's selection, a network picture received by the application program, or a picture carried by the application program. For example, as shown in Figure 3, when the application is a picture editing application, the user can select the picture to be edited in the user interface of the application, so that the application will load the picture A2 after loading the picture A2. After rendering, it is displayed on the user interface A1. For another example, when the application is a chat application, the application may receive pictures sent by other users from the server, and the application loads the received pictures before displaying the received pictures. Of course, pictures loaded by specific applications may not be limited.

作为一种方式,移动终端可以检测当前运行的应用程序是否接收到对图片的加载请求,以确定是否应用程序是否在对图片进行加载。其中,图片加载请求用于应用程序从本地或者服务器加载图片。当图片加载请求为从服务器加载图片时,图片加载请求中可以包括对请求加载的图片的显示格式进行标识的字符串,该字符串可以为png、image、jpg等标志图片的字符串等。作为另一种方式,当前运行的应用程序在调用用于加载图片的接口时,则可以确定运行的应用程序对图片进行加载。当然,具体检测当前运行的应用程序对图片进行加载的方式可以不作为限定。As a way, the mobile terminal can detect whether the currently running application receives a request to load a picture, so as to determine whether the application is loading the picture. Among them, the image loading request is used for the application to load the image from the local or the server. When the image loading request is to load an image from a server, the image loading request may include a character string identifying the display format of the image requested to be loaded, and the character string may be png, image, jpg and other character strings identifying the image. As another way, when the currently running application calls the interface for loading a picture, it can be determined that the running application loads the picture. Of course, the method of specifically detecting that the currently running application program loads the picture may not be limited.

在一些实施方式中,移动终端在检测到当前运行的应用程序对图片进行加载时,可以获取图片的色域空间以及应用程序的用户界面的色域空间,以在应用程序在将图片显示于用户界面之前,确定图片的色域空间与用户界面的色域空间是否相同。In some embodiments, when the mobile terminal detects that the currently running application program loads the picture, the mobile terminal may acquire the color gamut space of the picture and the color gamut space of the user interface of the application program, so as to display the picture to the user when the application program displays the picture to the user. Before the interface, determine whether the color gamut space of the picture is the same as the color gamut space of the user interface.

其中,移动终端可以有多种方式来获取图片的色域空间。作为一种方式,移动终端可以获取用于描述图片的色域空间的文件,例如ICC文件(色域描述文件)。作为另一种方式,可以读取加载的图片的EXIF(Exchangeable Image File)信息,从EXIF信息中读取出图片的色域空间,其中,EXIF信息是一种专门为数字照片设定的格式。这样的格式能够用来记录数字照片的属性信息,如相机的品牌及型号、相片的拍摄时间、拍摄时所设置的光圈大小、快门速度、ISO等信息以及色域空间等。作为又一种方式,可以直接基于图片的像素点的颜色值来分析出图片的色域空间。作为再一种方式,EXIF信息在生成的同时,还生成一个图像信息伴随文件。在该文件中存储图片后续会因为再次编辑而被修改的信息,例如,图片的色域空间或者饱和度等。然后将所采集的图片的信息做哈希运算以得到一个全局唯一的标识符,将该标识符插入到该图像信息伴随文件中。并件该图像信息伴随文件同步到云端,那么当在其他移动终端上展示前述采集的图片时,即使该图片已经被再次编辑而造成EXIF信息中的信息已经不是最初被采集时的信息时(例如,因为颜色被编辑而造成色域空间变化),其他的移动终端可以通过云端来获取到图像信息伴随文件来查找到图片最初被采集时的信息(例如,色域空间),以便可以更好的恢复图片被采集时的显示效果。The mobile terminal may acquire the color gamut space of the picture in various ways. As one way, the mobile terminal may acquire a file for describing the color gamut space of a picture, such as an ICC file (color gamut description file). As another method, the EXIF (Exchangeable Image File) information of the loaded picture can be read, and the color gamut space of the picture can be read from the EXIF information, wherein the EXIF information is a format specially set for digital photos. This format can be used to record the attribute information of digital photos, such as the brand and model of the camera, the shooting time of the photo, the aperture set when shooting, shutter speed, ISO and other information and color gamut space. As another method, the color gamut space of the picture can be analyzed directly based on the color values of the pixels of the picture. As a further way, when the EXIF information is generated, an image information accompanying file is also generated. In this file, the information that the picture will be modified later by editing again is stored in this file, for example, the color gamut space or saturation of the picture, etc. The information of the collected picture is then hashed to obtain a globally unique identifier, which is inserted into the image information accompanying file. When the image information is synchronized to the cloud along with the file, when the previously collected picture is displayed on other mobile terminals, even if the picture has been edited again and the information in the EXIF information is no longer the information when it was originally collected (for example, , because the color is edited and the color gamut space changes), other mobile terminals can obtain the image information accompanying file through the cloud to find the information (for example, the color gamut space) when the picture was originally captured, so that it can better Restore the display effect when the image was captured.

移动终端获取用户界面的色域的方式也可以为多种。作为一种方式,应用程序的安装包(AndroidPackage,APK)中可以包括用于描述用户界面的色域空间的文件,例如ICC文件(色域描述文件)。作为另一种方式,移动终端也可以在应用程序在以往运行时,对用户界面的像素点的颜色值进行分析,从而分析出图片的色域空间并存储,在后续应用程序运行时,需要获取用户界面的色域空间时,根据存储的信息获取。There may also be various ways for the mobile terminal to acquire the color gamut of the user interface. As a way, the installation package (Android Package, APK) of the application may include a file for describing the color gamut space of the user interface, such as an ICC file (color gamut description file). As another way, the mobile terminal can also analyze the color value of the pixel points of the user interface when the application program is running in the past, so as to analyze the color gamut space of the picture and store it. When the subsequent application program is running, it needs to obtain When the color gamut space of the user interface is obtained, it is obtained according to the stored information.

当然,移动终端具体获取图片的色域空间以及用户界面的色域空间的方式可以不作为限定。Of course, the specific manner in which the mobile terminal obtains 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 the first color gamut space; the acquired color gamut space of the picture can be used as the second color gamut space .

步骤S120:判断所述第一色域空间与所述第二色域空间是否相同。Step S120: Determine whether the first color gamut space and the second color gamut space are the same.

在本申请实施例中,可以比较获取到的第一色域空间与第二色域空间,以确定第一色域空间与第二色域空间是否相同。作为一种方式,在通过ICC文件获取两者的色域时,可以比较ICC文件中的参数是否相同,以确定第一色域空间与第二色域空间是否相同。作为另一种方式,获取到第一色域空间以及第二色域空间时,可以获取到第一色域空间以及第二色域空间的名称,例如SRGB、Adobe RGB等,可以直接比较名称是否相同,以确定两者是否相同。当然,具体判断第一色域空间与第二色域空间是否相同的方式可以不作为限定。In this embodiment of the present application, the acquired 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 a way, when the color gamuts of the two are obtained through the ICC file, it can be compared 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. As another method, when the first color gamut space and the second color gamut space are obtained, the names of the first color gamut space and the second color gamut space can be obtained, such as SRGB, Adobe RGB, etc., and it is possible to directly compare whether the names are same to determine if the two are the same. Of course, the specific way of judging whether the first color gamut space and the second color gamut space are the same may not be limited.

步骤S130:如果不相同,将所述图片的色域空间与所述用户界面的色域空间调整为一致。Step S130: If they are not the same, adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

在判断出第一色域空间与第二色域空间不同时,移动终端可以将图片的色域空间与用户界面的色域空间调整为一致。When it is determined that the first color gamut space is different from the second color gamut space, the mobile terminal may adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

作为一种方式,将图片的色域空间与用户界面的色域空间调整为一致,可以包括:将所述用户界面的色域空间调整为所述第一色域空间;或者将所述图片的色域空间调整为所述第二色域空间。其中,当图片的色域空间与用户界面的色域空间不一致时,保留其中一个的色域空间不变,从而使得用户界面或者图片能显示出其原本的显示效果,并且使两者的色域空间一致,避免显示效果上的差异,而影响用户视觉体验。As a method, adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface may include: adjusting the color gamut space of the user interface to the first color gamut space; or adjusting the color gamut space of the picture to the first color gamut space; The color gamut space is adjusted to the second color gamut space. Among them, when the color gamut space of the picture is inconsistent with the color gamut space of the user interface, the color gamut space of one of them is kept unchanged, so that the user interface or the picture can display its original display effect, and the color gamut of both can be displayed. The space is consistent to avoid differences in display effects and affect the user's visual experience.

作为另一种方式,也可以同时将图片的色域空间与用户界面的色域空间调整至色域范围更大的目标色域空间。当然,该目标色域空间的色域范围不超过显示屏的最大色域范围。As another method, the color gamut space of the picture and the color gamut space of the user interface can also be adjusted to a target color gamut space with a larger color gamut range. Of course, the color gamut range of the target color gamut space does not exceed the maximum color gamut range of the display screen.

当然,具体将图片的色域空间与用户界面的色域空间调整为一致的方式可以不作为限定。例如,也可以同时将图片的色域空间与用户界面的色域空间调整至色域范围更低的目标色域空间。Of course, the specific way of adjusting the color gamut space of the picture and the color gamut space of the user interface is not limited. For example, the color gamut space of the image and the color gamut space of the user interface can also be adjusted to the target color gamut space with a lower color gamut range.

在一些实施方式中,在将图片的色域空间与用户界面的色域空间调整为一致之前,还可以确定当前是否满足色域调整条件。其中,色域调整条件可以包括表征移动终端的资源是否允许色域调整的条件,例如,移动移动终端的剩余电量较低时,进行色域调整会增加功耗,因此在剩余电量超过设定电量时,才允许将图片的色域空间与用户界面的色域空间调整为一致。色域调整条件也可以包括表征进行色域调整的功能是否开启,色域调整的功能可以由移动终端中配置界面进行开启或者关闭,该功能可以针对移动终端全局,也可以仅针对单个应用程序。色域调整条件还可以包括表征是否有必要将图片的色域空间与用户界面的色域空间调整为一致的条件,例如,当第一色域空间的色域范围与第二色域空间的色域范围的差别较小时,则没必要将图片的色域空间与用户界面的色域空间调整为一致,而第一色域空间的色域范围与第二色域空间的色域范围的差别较大时,则有必要将图片的色域空间与用户界面的色域空间调整为一致。In some embodiments, before adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface, 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 the color gamut adjustment. For example, when the remaining power of the mobile terminal is low, performing color gamut adjustment will increase power consumption, so when the remaining power exceeds the set power is only allowed to adjust the color gamut space of the image to be consistent with the color gamut space of the user interface. The color gamut adjustment condition may also include whether the color gamut adjustment function is enabled. The color gamut adjustment function can be enabled or disabled through the configuration interface in the mobile terminal. This function can be applied globally to the mobile terminal or only for a single application. The color gamut adjustment conditions may also include conditions that indicate whether it is necessary to adjust the color gamut space of the picture and the color gamut space of the user interface to be consistent. When the difference in the gamut range is small, it is not necessary to adjust the color gamut space of the picture and the color gamut space of the user interface to be consistent, and the difference between the color gamut range of the first color gamut space and the color gamut range of the second color gamut space is relatively small. When it is large, it is necessary to adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

步骤S140:如果相同,则不执行将所述图片的色域空间与所述用户界面的色域空间调整为一致。Step S140: If they are the same, do not adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

移动终端在判断出第一色域空间与第二色域空间相同时,则可以不将图片的色域空间与用户界面的色域空间调整为一致,后续将图片直接进行显示。When the mobile terminal determines that the first color gamut space is the same as the second color gamut space, it may not adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface, and then directly display the picture.

步骤S150:在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。Step S150: After adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface, display the picture.

在本申请实施例中,在将图片的色域空间与所述用户界面的色域空间调整为一致之后,则可以将图片进行显示。在上述过程中,如果进行了将图片的色域空间与用户界面的色域空间调整为一致的步骤,则可能是对图片的色域空间进行了调整;也可能是未对图片的色域空间进行调整,即调整了用户界面的色域空间,以使图片的色域空间与用户界面的色域空间一致。因此,在对图片的色域空间进行了调整时,则将调整色域空间后的图片进行显示,而未对图片的色域空间进行调整时,则可以将加载的图片进行显示。另外,如果执行了步骤S140的情况下,则直接是将未进行色域空间的调整的图片进行显示,也就是将加载的图片进行显示。In the embodiment of the present application, after the color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface, the picture can be displayed. In the above process, if the step of adjusting the color gamut space of the picture and the color gamut space of the user interface is consistent, it may be that the color gamut space of the picture has been adjusted; it may also be that the color gamut space of the picture has not been adjusted. Adjustment means adjusting the color gamut space of the user interface, so that the color gamut space of the picture is consistent with the color gamut space of the user interface. Therefore, when the color gamut space of the picture is adjusted, the picture after adjusting the color gamut space is displayed, and when the color gamut space of the picture is not adjusted, the loaded picture can be displayed. In addition, if step S140 is executed, the picture without the adjustment of the color gamut space is directly displayed, that is, the loaded picture is displayed.

本申请实施例提供的图片显示方法,通过在应用程序加载图片时,判断图片的色域空间与用户界面的色域空间是否相同,并在两者不同时,将两者的色域空间调整为一致,可以使得在应用程序的用户界面中展示图片时,保证图片的色域空间与应用程序的用户界面的色域空间一致,避免显示效果上的差异而影响用户视觉体验,提升显示效果以及用户的视觉体验。The image display method provided by the embodiments of the present application determines whether the color gamut space of the image is the same as the color gamut space of the user interface when the application loads the image, and when the two are different, adjusts the color gamut space of the two to Consistent, you can make sure that the color gamut space of the image is consistent with the color gamut space of the user interface of the application program when displaying the picture in the user interface of the application program, so as to avoid the difference in the display effect and affect the user's visual experience, and improve the display effect and the user's visual experience. visual experience.

请参阅图4,图4示出了本申请另一个实施例提供的图片显示方法的流程示意图。该方法应用于上述移动终端,下面将针对图4所示的流程进行详细的阐述,所述图片显示方法具体可以包括以下步骤:Referring to FIG. 4 , FIG. 4 shows a schematic flowchart of a picture display method provided by another embodiment of the present application. The method is applied to the above-mentioned mobile terminal, and the flow shown in FIG. 4 will be described in detail below. The picture display method may specifically include the following steps:

步骤S200:在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间。Step S200: When it is detected that the currently running application program loads the picture, acquire the color gamut space of the picture as the first color gamut space and the color gamut space of the user interface of the application program as the second color gamut space.

步骤S210:判断所述第一色域空间与所述第二色域空间是否相同。Step S210: Determine whether the first color gamut space and the second color gamut space are the same.

步骤S220:如果相同,则不执行将所述图片的色域空间与所述用户界面的色域空间调整为一致。Step S220: If they are the same, do not adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

在本申请实施例中,步骤S200-步骤S220可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, for steps S200 to S220, reference may be made to the content of the foregoing embodiments, and details are not described herein again.

步骤S230:如果不相同,获取移动终端当前的剩余资源参数,其中,所述剩余资源参数包括所述移动移动终端的剩余电量、中央处理器的剩余资源及图形处理器的剩余资源中的至少一种。Step S230: If they are not the same, obtain the current remaining resource parameters of the mobile terminal, wherein the remaining resource parameters include at least one of the remaining power of the mobile mobile terminal, the remaining resources of the central processing unit, and the remaining resources of the graphics processor kind.

在本申请实施例中,移动终端在判断出图片的色域空间与用户界面的色域空间相同时,可以获取移动终端当前的剩余资源参数,以确定如何将图片的色域空间与用户界面的色域空间调整为一致。其中,将图片的色域空间与用户界面的色域空间调整为一致,可以是将图片的色域空间调整为第二色域空间,或者将用户界面的色域空间调整为第一色域空间。In the embodiment of the present application, when the mobile terminal determines that the color gamut space of the picture is the same as the color gamut space of the user interface, the mobile terminal can obtain the current remaining resource parameters of the mobile terminal to determine how to match the color gamut space of the picture with the color gamut space of the user interface. The color gamut space is adjusted to be consistent. The color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface, which may be adjusting the color gamut space of the picture to the second color gamut space, or adjusting the color gamut space of the user interface to the first color gamut space .

在一些实施方式中,移动终端当前的剩余资源参数可以包括中央处理器的剩余资源、图形处理器的剩余资源以及剩余电量等,具体剩余资源参数可以不作为限定。移动终端可以获取这些参数中的一种或者多种参数,以便确定如何将图片的色域空间与用户界面的色域空间调整为一致。In some embodiments, the current remaining resource parameters of the mobile terminal may include the remaining resources of the central processing unit, the remaining resources of the graphics processor, and the remaining power, etc., and the specific remaining resource parameters may not be limited. The mobile terminal may acquire 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.

其中,移动终端可以检测中央处理器的使用情况,以获得中央处理器的剩余资源。例如,移动终端的操作系统为Android系统时,可以通过Android系统中的ProcessStats类,获取系统的使用情况及进程时间。其具体实现原理是读取/proc目录下的文件,系统运行时,内核会去更新/proc目录下的文件,将PID的运行情况写入相应的文件中,根据上述运行情况即可获取到中央处理器的剩余资源。中央处理器的剩余资源可以为中央处理器的剩余使用率、剩余使用空间等,在此不作限定。Wherein, the mobile terminal can detect the usage of the central processing unit to obtain the remaining resources of the central processing unit. For example, when the operating system of the mobile terminal is the Android system, the usage status and process time of the system can be obtained through the ProcessStats class in the Android system. The specific implementation principle is to read the files in the /proc directory. When the system is running, the kernel will update the files in the /proc directory, and write the operation status of the PID into the corresponding file. The remaining resources of the processor. The remaining resources of the central processing unit may be the remaining usage rate of the central processing unit, the remaining usage space, etc., which are not limited herein.

移动终端也可以检测图形处理器的使用情况,从而得到图形处理器的剩余资源。例如,移动终端的操作系统为安卓系统时,可以通过adb命令获取图形处理器的使用情况,例如通过adb shell cat/sys/class/kgsl/kgsl-3d0/gpubusy获取图形处理器的使用情况,以得到图形处理器的剩余资源。图形处理器的剩余资源可以为图形处理器的剩余使用率、剩余使用空间等,在此不作限定。The mobile terminal can also detect the usage of the graphics processor, so as to obtain the remaining resources of the graphics processor. For example, when the operating system of the mobile terminal is Android, the usage of the graphics processor can be obtained through the adb command, for example, the usage of the graphics processor can be obtained through adb shell cat/sys/class/kgsl/kgsl-3d0/gpubusy to Get the remaining resources of the graphics processor. The remaining resources of the graphics processor may be the remaining usage rate of the graphics processor, the remaining usage space, etc., which are not limited herein.

当然,以上获取中央处理器、图形处理器的剩余资源的方式仅为举例,具体方式在本申请实施例中可以不作为限定。Of course, the above methods for obtaining the remaining resources of the central processing unit and the graphics processor are only examples, and the specific methods may not be limited in the embodiments of the present application.

移动终端可以通过系统中的用于描述电池状态的描述文件、监听电池状态的监听窗口等,获取移动终端的剩余电量。例如,移动终端的系统为安卓系统时,可以通过Healthd模型下监听来自底层的电池事件,向上传递电池数据信息给Framework层的BatteryService用来计算电池电量相关信息,从而移动终端可以从BatteryService获取电池的剩余电量。当然,具体获取剩余电量的方式可以不作为限定。剩余电量可以为剩余电量值、剩余电量占总电量的百分比等,在此不作限定。The mobile terminal can obtain the remaining power of the mobile terminal through a description file for describing the battery state, a monitoring window for monitoring the battery state, etc. in the system. For example, when the system of the mobile terminal is the Android system, the battery events from the bottom layer can be monitored through the Healthd model, and the battery data information can be passed up to the BatteryService of the Framework layer to calculate the battery power-related information, so that the mobile terminal can obtain the battery information from the BatteryService. remaining battery. Of course, the specific way of obtaining the remaining power may not be limited. The remaining power can be the value of the remaining power, the percentage of the remaining power to the total power, etc., which is not limited here.

步骤S240:判断所述剩余资源参数是否大于指定阈值。Step S240: Determine whether the remaining resource parameter is greater than a specified threshold.

在本申请实施例中,不同类型的剩余资源参数对应的指定阈值可以不同。其中,中央处理器的剩余资源可以对应第一指定阈值,图形处理器的剩余资源可以对应第二指定阈值,剩余电量可以对应第三指定阈值。其中,第一指定阈值、第二指定阈值以及第三指定阈值可以分别根据中央处理器、图形处理器以及电池的属性参数决定,例如,当中央处理器的最大工作频率较大时,则第一指定阈值可以为30%,具体的指定阈值可以不作为限定。In this embodiment of the present application, the specified thresholds corresponding to different types of remaining resource parameters may be different. The remaining resources of the central processing unit may correspond to the first specified threshold, the remaining resources of the graphics processor may correspond to the second specified threshold, and the remaining power may correspond to the third specified threshold. The first specified threshold, the second specified threshold and the third specified threshold can be determined according to the attribute parameters of the central processing unit, the graphics processing unit and the battery respectively. For example, when the maximum operating frequency of the central processing unit is high, the first specified threshold The specified threshold may be 30%, and the specific specified threshold may not be regarded as a limitation.

在移动终端获取的剩余资源参数中包括多种类型的剩余资源参数时,则可以分别将剩余资源参数与其类型对应的指定阈值进行比较,以确定是否大于指定阈值,当每个类型的剩余资源参数均大于其类型对应的指定阈值时,则可以确定移动终端的剩余资源参数大于指定阈值,当其中至少一个类型的剩余资源参数不大于其类型对应的指定阈值时,则确定移动终端的剩余资源参数不大于指定阈值。当然,具体判断方式可以不作为限定,例如,也还可以是任意类型的剩余资源参数大于其类型对应的指定阈值时,确定移动终端的剩余资源参数大于指定阈值。When the remaining resource parameters obtained by the mobile terminal include multiple types of remaining resource parameters, the remaining resource parameters can be compared with the specified thresholds corresponding to their types to determine whether they are greater than the specified thresholds. When the remaining resource parameters of each type are When the remaining resource parameters of at least one type are not greater than the specified threshold corresponding to its type, it can be determined that the remaining resource parameter of the mobile terminal is greater than the specified threshold, and when the remaining resource parameter of at least one type is not greater than the specified threshold corresponding to its type, then the remaining resource parameter of the mobile terminal is determined. not greater than the specified threshold. Of course, the specific judgment method may not be limited. For example, when the remaining resource parameter of any type is greater than the specified threshold corresponding to its type, it is determined that the remaining resource parameter of the mobile terminal is greater than the specified threshold.

步骤S250:在所述剩余资源参数大于指定阈值时,比较所述第一色域空间的色域范围与所述第二色域空间的色域范围。Step S250: When the remaining resource parameter is greater than a specified threshold, compare the color gamut range of the first color gamut space and the color gamut range of the second color gamut space.

在本申请实施例中,在判断出剩余资源参数大于指定阈值时,则表示移动终端的剩余资源允许将图片和用户界面中的其中一个的色域空间,调整为两者中色域范围较高的色域空间。可以理解的,将图片和用户界面中的其中一个的色域空间,调整为两者中色域范围较高的色域空间时,会增加移动终端的负担,也就是引起中央处理器、图形处理器等的占用率增加,移动终端的功耗也会增加,因此可以在剩余资源参数较高时,才将图片和用户界面中的其中一个的色域空间,调整为两者中色域范围较高的色域空间。其中,不同色域空间其能表达的颜色的总和不同,呈色范围也就不同,即色域范围不同。In the embodiment of the present application, when it is determined that the remaining resource parameter is greater than the specified threshold, it means that the remaining resources of the mobile terminal allow the color gamut of one of the picture and the user interface to be adjusted to the higher color gamut of the two. color gamut space. It can be understood that when the color gamut space of one of the picture and the user interface is adjusted to the color gamut space with a higher color gamut range among the two, it will increase the burden of the mobile terminal, that is, cause the central processing unit and graphics processing. The occupancy rate of the device, etc. increases, and the power consumption of the mobile terminal will also increase. Therefore, when the remaining resource parameters are relatively high, the color gamut of one of the picture and the user interface can be adjusted to the color gamut range of the two. High color gamut space. Among them, the sum of the colors that can be expressed in different color gamut spaces is different, and the color range is also different, that is, the color gamut range is different.

进一步的,在剩余资源参数大于指定阈值时,可以比较第一色域空间的色域范围与第二色域空间的色域范围,也就是比较当前图片的色域空间的色域范围与当前用户界面的色域空间的色域范围,以便从第一色域空间与第二色域空间中获取色域范围较高的色域空间。Further, when the remaining resource parameter is greater than the specified threshold, the color gamut range of the first color gamut space and the color gamut range of the second color gamut space can be compared, that is, the color gamut range of the color gamut space of the current picture and the current user can be compared. The color gamut range of the color gamut space of the interface, so that a color gamut space with a higher color gamut range can be obtained from the first color gamut space and the second color gamut space.

步骤S260:如果所述第一色域空间的色域范围大于所述第二色域空间的色域范围,将所述用户界面的色域空间调整为所述第一色域空间。Step S260: If the color gamut range of the first color gamut space is greater than the color gamut range of the second color gamut space, adjust the color gamut space of the user interface to the first color gamut space.

在本申请实施例中,在比较出第一色域空间的色域范围大于第二色域空间的色域范围时,则表示当前图片的色域空间的色域范围大于当前用户界面的色域空间的色域范围,因此可以将用户界面的色域空间调整为第一色域空间,从而在图片在用户界面上显示时,图片原本的颜色信息可以在色域范围较广的色域空间完整表达,并且由于两者的色域空间一致,使图片与用户界面在显示效果上不存在差异,提升显示效果。In the embodiment of the present application, when it is compared that the color gamut range of the first color gamut space is greater than the color gamut range of the second color gamut space, it means that the color gamut range of the color gamut space of the current picture is greater than the color gamut range of the current user interface. The color gamut range of the space, so the color gamut space of the user interface can be adjusted to the first color gamut space, so that when the picture is displayed on the user interface, the original color information of the picture can be completed in the color gamut space with a wide color gamut. And because the color gamut space of the two is the same, there is no difference in the display effect between the picture and the user interface, and the display effect is improved.

步骤S261:如果所述第二色域空间的色域范围大于所述第一色域空间的色域范围,将所述用户界面的色域空间调整为所述第一色域空间。Step S261: If the color gamut range of the second color gamut space is larger than the color gamut range of the first color gamut space, adjust the color gamut space of the user interface to the first color gamut space.

在本申请实施例中,在比较出第二色域空间的色域范围大于第一色域空间的色域范围时,则表示当前用界面的色域空间的色域范围大于当前图片的色域空间的色域范围,因此可以将图片的色域空间调整为第二色域空间,从而在图片在用户界面上显示时,用户界面原本的颜色信息可以在色域范围较广的色域空间完整表达,并且由于两者的色域空间一致,使图片与用户界面在显示效果上不存在差异,提升显示效果。In the embodiment of the present application, when it is compared that the color gamut range of the second color gamut space is greater than the color gamut range of the first color gamut space, it means that the color gamut range of the color gamut space of the current interface is greater than the color gamut range of the current picture The color gamut range of the space, so the color gamut space of the picture can be adjusted to the second color gamut space, so that when the picture is displayed on the user interface, the original color information of the user interface can be completed in the color gamut space with a wide color gamut. And because the color gamut space of the two is the same, there is no difference in the display effect between the picture and the user interface, and the display effect is improved.

步骤S270:在所述剩余资源参数小于或者等于所述指定阈值时,比较所述第一色域空间的色域范围与所述第二色域空间的色域范围。Step S270: When the remaining resource parameter is less than or equal to the specified threshold, compare the color gamut range of the first color gamut space and the color gamut range of the second color gamut space.

在判断出剩余资源参数小于或者等于指定阈值时,则表示移动终端的剩余资源不允许将图片和用户界面中的其中一个的色域空间,调整为两者中色域范围较高的色域空间,因此需要将图片或者用户界面的色域空间调整为两者中色域范围较低的色域空间,以保证两者的色域空间一致。When it is judged that the remaining resource parameter is less than or equal to the specified threshold, it means that the remaining resources of the mobile terminal do not allow the color gamut space of one of the picture and the user interface to be adjusted to the color gamut space with a higher color gamut range among the two. , so it is necessary to adjust the color gamut space of the picture or user interface to the color gamut space with the lower color gamut range of the two to ensure that the color gamut space of the two is consistent.

进一步的,在剩余资源参数小于或者等于指定阈值时,可以比较第一色域空间的色域范围与第二色域空间的色域范围,也就是比较当前图片的色域空间的色域范围与当前用户界面的色域空间的色域范围,以便从第一色域空间与第二色域空间中获取色域范围较低的色域空间。Further, when the remaining resource parameter is less than or equal to the specified threshold, the color gamut range of the first color gamut space and the color gamut range of the second color gamut space can be compared, that is, the color gamut range of the color gamut space of the current picture and The color gamut range of the color gamut space of the current user interface, so that a color gamut space with a lower color gamut range is obtained from the first color gamut space and the second color gamut space.

步骤S280:如果所述第一色域空间的色域范围大于所述第二色域空间的色域范围,将所述图片的色域空间调整为所述第二色域空间。Step S280: If the color gamut range of the first color gamut space is larger than the color gamut range of the second color gamut space, adjust the color gamut space of the picture to the second color gamut space.

在比较出第一色域空间的色域范围大于第二色域空间的色域范围时,则表示当前用户界面的色域空间的色域范围低于当前图片的色域空间的色域范围,因此可以将图片的色域空间调整为第二色域空间,从而在不增加用户终端的负担的情况下,图片在用户界面上显示时,用户界面原本的颜色信息可以完整表达,并且由于两者的色域空间一致,使图片与用户界面在显示效果上不存在差异,提升显示效果。When it is compared that the color gamut range of the first color gamut space is greater than the color gamut range of the second color gamut space, it means that the color gamut range of the color gamut space of the current user interface is lower than the color gamut range of the color gamut space of the current picture, Therefore, the color gamut space of the picture can be adjusted to the second color gamut space, so that the original color information of the user interface can be completely expressed when the picture is displayed on the user interface without increasing the burden on the user terminal. The color gamut space is consistent, so that there is no difference in the display effect between the picture and the user interface, and the display effect is improved.

步骤S281:如果所述第二色域空间的色域范围大于所述第一色域空间的色域范围,将所述用户界面的色域空间调整为所述第一色域空间。Step S281: If the color gamut range of the second color gamut space is larger than the color gamut range of the first color gamut space, adjust the color gamut space of the user interface to the first color gamut space.

在比较出第二色域空间的色域范围大于第一色域空间的色域范围时,则表示当前图片的色域空间的色域范围低于当前用户界面的色域空间的色域范围,因此可以将用户界面的色域空间调整为第一色域空间,从而不增加用户终端的负担的情况下,图片在用户界面上显示时,图片原本的颜色信息可以表达,并且由于两者的色域空间一致,使图片与用户界面在显示效果上不存在差异,提升显示效果。When it is compared that the color gamut range of the second color gamut space is greater than the color gamut range of the first color gamut space, it means that the color gamut range of the color gamut space of the current picture is lower than the color gamut range of the color gamut space of the current user interface, Therefore, the color gamut space of the user interface can be adjusted to the first color gamut space, so that when the picture is displayed on the user interface, the original color information of the picture can be expressed without increasing the burden on the user terminal. The domain space is consistent, so that there is no difference in the display effect between the picture and the user interface, and the display effect is improved.

步骤S290:在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。Step S290: After adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface, display the picture.

本申请实施例提供的图片显示方法,通过在应用程序加载图片时,判断图片的色域空间与用户界面的色域空间是否相同,并在两者不同时,判断用户终端的剩余资源参数是否大于指定阈值,分别在两种不同判断结果的情况下,根据色域空间的维度对图片或者用户界面的色域空间进行调整,保证移动终端能正常运行和使用,使得在应用程序的用户界面中展示图片时,保证图片的色域空间与应用程序的用户界面的色域空间一致,避免显示效果上的差异而影响用户视觉体验,提升显示效果以及用户的视觉体验。The image display method provided by the embodiment of the present application determines whether the color gamut space of the image is the same as the color gamut space of the user interface when the application loads the image, and when the two are different, determines whether the remaining resource parameters of the user terminal are larger than Specify the threshold value, and adjust the color gamut space of the picture or the user interface according to the dimension of the color gamut space in the case of two different judgment results, so as to ensure the normal operation and use of the mobile terminal, so that it can be displayed in the user interface of the application program. When taking pictures, ensure that the color gamut space of the picture is consistent with the color gamut space of the user interface of the application program, so as to avoid the difference in the display effect and affect the user's visual experience, and improve the display effect and the user's visual experience.

参阅图5,图5示出了本申请又一个实施例提供的图片显示方法的流程示意图。该方法应用于上述移动终端,下面将针对图5所示的流程进行详细的阐述,所述图片显示方法具体可以包括以下步骤:Referring to FIG. 5, FIG. 5 shows a schematic flowchart of a picture display method provided by another embodiment of the present application. This method is applied to the above-mentioned mobile terminal, and the flow shown in FIG. 5 will be described in detail below. The picture display method may specifically include the following steps:

步骤S310:在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间。Step S310: When it is detected that the currently running application program loads the picture, acquire the color gamut space of the picture as the first color gamut space and the color gamut space of the user interface of the application program as the second color gamut space.

步骤S320:判断所述第一色域空间与所述第二色域空间是否相同。Step S320: Determine whether the first color gamut space and the second color gamut space are the same.

步骤S330:如果相同,则不执行将所述图片的色域空间与所述用户界面的色域空间调整为一致。Step S330: If they are the same, do not adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

在本申请实施例中,步骤S310-步骤S330可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, for steps S310 to S330, reference may be made to the contents of the foregoing embodiments, and details are not described herein again.

步骤S340:如果不相同,获取所述图片的显示区域占所述用户界面的占比。Step S340: If they are not the same, obtain the proportion of the display area of the picture in the user interface.

在本申请实施例中,移动终端在判断出图片的色域空间与用户界面的色域空间相同时,可以获取图片的显示区域占用户界面的占比。其中,将图片的色域空间与用户界面的色域空间调整为一致,可以是将图片的色域空间调整为第二色域空间,或者将用户界面的色域空间调整为第一色域空间。In the embodiment of the present application, when the mobile terminal determines that 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 proportion of the display area of the picture in the user interface. The color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface, which may be adjusting the color gamut space of the picture to the second color gamut space, or adjusting the color gamut space of the user interface to the first color gamut space .

在一些实施方式中,应用程序中预先设定有图片在用户界面上对应的显示位置以及显示区域。因此,可以根据应用程序的预先设定,获取该图片在用户界面上对应的显示区域。例如,图片查看类应用程序的用户界面上预先设定有图片的预览区域,该预览区域即图片在用户界面上对应的显示区域。In some implementation manners, the display position and display area corresponding to the picture on the user interface are preset in the application. Therefore, the display area corresponding to the picture on the user interface can be obtained according to the preset settings of the application. For example, a preview area of a picture is preset on a user interface of a picture viewing application, and the preview area is a display area corresponding to the picture on the user interface.

进一步的,可以获取图片在用户界面上对应的显示区域的面积,以及用户界面的面积,然后计算图片对应的显示区域的面积与用户界面的面积的比值,从而得到图片的显示区域占用户界面的占比。Further, the area of the display area 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 area corresponding to the picture to the area of the user interface can be calculated, so as to obtain that the display area of the picture occupies the user interface. proportion.

步骤S350:判断所述占比是否大于指定比例。Step S350: Determine whether the ratio is greater than a specified ratio.

在本申请实施例中,移动终端预先设置并存储有指定比例,该指定比例用于作为图片的显示区域占用户界面的占比的大小的判断依据,因此,移动终端在获取图片的显示区域占用户界面的占比后,可以将该占比和指定比例进行比较,以判断图片的显示区域占用户界面的占比是否大于指定比例。可以理解的,当图片的显示区域占用户界面的占比大于指定比例,表示该图片在用户界面上对应的显示区域较大,可以认为用户的注意力会更加集中于图片上,因此可以保证图片原本的颜色信息能完整表达;当图片的显示区域占用户界面的占比小于或者等于指定比例,表示该图片在用户界面上对应的显示区域较小,用户更多看到的内容是用户界面,因此可以保证用户界面原本的颜色信息能完整表达。作为一种方式,该预设占比可以为1/2、2/3等,在此不做限定。In the embodiment of the present application, the mobile terminal presets and stores a specified ratio, and the specified ratio is used as a basis for judging the proportion of the display area of the picture in the user interface. After the proportion of the user interface is obtained, the proportion can be compared with the specified proportion to determine whether the proportion of the display area of the picture in the user interface is greater than the specified proportion. It is understandable that when the proportion of the display area of the picture in the user interface is larger than the specified proportion, it means that the corresponding display area of the picture on the user interface is larger, and it can be considered that the user's attention will be more focused on the picture, so the picture can be guaranteed. The original color information can be fully expressed; when the proportion of the display area of the image in the user interface is less than or equal to the specified proportion, it means that the corresponding display area of the image on the user interface is smaller, and the user sees more of the user interface. Therefore, the original color information of the user interface can be fully expressed. In one way, the preset proportion may be 1/2, 2/3, etc., which is not limited herein.

步骤S360:在所述占比大于指定比例时,将所述用户界面的色域空间调整为所述第一色域空间。Step S360: When the proportion is greater than a specified proportion, adjust the color gamut space of the user interface to the first color gamut space.

在一些实施方式中,在判断出图片的显示区域占用户界面的占比大于指定比例时,则可以保证图片原本的颜色信息能完整表达,因此将用户界面的色域空间调整为第一色域空间,使得图片的色域空间与用户界面的色域空间相同。In some embodiments, when it is determined that the proportion of the display area of the picture in the user interface is greater than a specified proportion, it can be ensured that the original color information of the picture can be fully expressed, so the color gamut of the user interface is adjusted to the first color gamut space, so that the color gamut space of the picture is the same as the color gamut space of the user interface.

步骤S370:在所述占比小于或者等于所述指定比例时,将所述图片的色域空间调整为所述第二色域空间。Step S370: When the ratio is less than or equal to the specified ratio, adjust the color gamut space of the picture to the second color gamut space.

在一些实施方式中,在判断出图片的显示区域占用户界面的占比小于或等于指定比例时,则可以保证用户界面原本的颜色信息能完整表达,因此将图片的色域空间调整为第二色域空间,使得图片的色域空间与用户界面的色域空间相同。In some embodiments, when it is determined that the proportion of the display area of the picture in the user interface is less than or equal to a specified proportion, it can be ensured that the original color information of the user interface can be fully expressed, so the color gamut of the picture is adjusted to the second Color gamut space, so that the color gamut space of the picture is the same as the color gamut space of the user interface.

步骤S380:在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。Step S380: After adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface, display the picture.

本申请实施例提供的图片显示方法,通过在应用程序加载图片时,判断图片的色域空间与用户界面的色域空间是否相同,并在两者不同时,根据图片的显示区域占用户界面的比例大小,确定将图片的色域空间进行调整或者将用户界面的色域空间进行调整,使图片的色域空间与用户界面的色域空间一致,可以使得在应用程序的用户界面中展示图片时,保证图片的色域空间与应用程序的用户界面的色域空间一致,并且保证显示的大部分内容能呈现原本的颜色信息,避免显示效果上的差异而影响用户视觉体验,提升显示效果以及用户的视觉体验。The image display method provided by the embodiment of the present application determines whether the color gamut space of the image is the same as the color gamut space of the user interface when the application loads the image, and when the two are different, according to the display area of the image occupying the user interface Proportion size, determine to adjust the color gamut space of the picture or adjust the color gamut space of the user interface, so that the color gamut space of the picture is consistent with the color gamut space of the user interface, so that when the picture is displayed in the user interface of the application program , to ensure that the color gamut space of the picture is consistent with the color gamut space of the user interface of the application, and to ensure that most of the displayed content can present the original color information, so as to avoid the difference in display effect affecting the user's visual experience, and to improve the display effect and user experience. visual experience.

参阅图6,图6示出了本申请再一个实施例提供的图片显示方法的流程示意图。该方法应用于上述移动终端,下面将针对图6所示的流程进行详细的阐述,所述图片显示方法具体可以包括以下步骤:Referring to FIG. 6, FIG. 6 shows a schematic flowchart of a picture display method provided by still another embodiment of the present application. This method is applied to the above-mentioned mobile terminal, and the flow shown in FIG. 6 will be described in detail below. The picture display method may specifically include the following steps:

步骤S400:在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间。Step S400: When it is detected that the currently running application program loads the picture, acquire the color gamut space of the picture as the first color gamut space and the color gamut space of the user interface of the application program as the second color gamut space.

步骤S410:判断所述第一色域空间与所述第二色域空间是否相同。Step S410: Determine whether the first color gamut space and the second color gamut space are the same.

步骤S420:如果相同,则不执行将所述图片的色域空间与所述用户界面的色域空间调整为一致。Step S420: If they are the same, do not adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

在本申请实施例中,步骤S400-步骤S420可以参阅前述实施例的内容,在此不再赘述。In this embodiment of the present application, for steps S400 to S420, reference may be made to the contents of the foregoing embodiments, and details are not described herein again.

步骤S430:如果不相同,判断所述应用程序加载的图片的数量是否为多个。Step S430: If they are not the same, determine whether the number of pictures loaded by the application program is multiple.

作为一种方式,将图片的色域空间与用户界面的色域空间调整为一致可以包括:将用户界面的色域空间调整为第一色域空间。As one way, adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface may include: adjusting the color gamut space of the user interface to the first color gamut space.

在本申请实施例中,移动终端在判断出图片的色域空间与用户界面的色域空间相同时,可以获取应用程序加载的图片的数量。可以理解的,应用程序在加载图片时,可以能是同时加载多个图片,也就是说,有多个图片需要于用户界面上进行显示。In this embodiment of the present application, when the mobile terminal determines that the color gamut space of the picture is the same as the color gamut space of the user interface, the mobile terminal may acquire the number of pictures loaded by the application program. It is understandable that when an application loads an image, it may load multiple images at the same time, that is, there are multiple images that need to be displayed on the user interface.

进一步的,移动终端可以判断应用程序加载的图片的数量是否为多个,以确定是否将用户界面的色域空间调整为第一色域空间。其中,应用程序加载的图片的数量为多个时,如果移动终端针对每个图片,将用户界面的色域空间调整为第一色域空间,则会导致移动终端处理的任务较多。Further, the mobile terminal can determine whether the number of pictures loaded by the application program is multiple, so as to determine whether to adjust the color gamut space of the user interface to the first color gamut space. When the number of pictures loaded by the application program is multiple, if the mobile terminal adjusts the color gamut space of the user interface to the first color gamut space for each picture, the mobile terminal will have to process many tasks.

步骤S440:如果为多个,判断多个图片的色域空间是否相同。Step S440: If there are multiple images, determine whether the color gamut spaces of the multiple images are the same.

在本申请实施例中,当应用程序加载的图片的数量为多个时,由于移动终端针对每个图片,将用户界面的色域空间调整为第一色域空间,会导致移动终端处理的任务较多,而可能影响移动终端的正常使用。因此,可以判断多个图片的色域空间是否相同,即多个图片的色域空间是否为同一色域空间。可以理解的,当多个图片的色域空间相同时,则移动终端只需要进行一次将用户界面的色域空间调整为第一色域空间,而不会移动终端带来负担。当多个图片的色域空间不同时,则不需要进行将用户界面的色域空间调整为第一色域空间,以减少移动终端的负担。In the embodiment of the present application, when the number of pictures loaded by the application program is multiple, since the mobile terminal adjusts the color gamut space of the user interface to the first color gamut space for each picture, the task of processing the mobile terminal will be caused. more, which may affect the normal use of the mobile terminal. Therefore, it can be determined whether the color gamut spaces of multiple pictures are the same, that is, whether the color gamut spaces of multiple pictures are the same color gamut space. It can be understood that when the color gamut spaces of multiple pictures are the same, the mobile terminal only needs to adjust the color gamut space of the user interface to the first color gamut space once, without bringing a burden to the mobile terminal. When the color gamut spaces of multiple pictures are different, it is not necessary to adjust the color gamut space of the user interface to the first color gamut space, so as to reduce the burden on the mobile terminal.

步骤S450:如果所述多个图片的色域空间相同,将所述用户界面的色域空间调整为所述第一色域空间。Step S450: If the color gamut spaces of the multiple pictures are the same, adjust the color gamut space of the user interface to the first color gamut space.

步骤S460:如果所述多个图片的色域空间不相同,则不执行将所述用户界面的色域空间调整为所述第一色域空间。Step S460: If the color gamut spaces of the plurality of pictures are different, do not adjust the color gamut space of the user interface to the first color gamut space.

步骤S470:如果不为多个,显示提示内容,所述提示内容用于提示是否将所述图片的色域空间与所述用户界面的色域空间调整为一致。Step S470: If there are not more than one, display prompt content, where the prompt content is used to prompt whether to adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

在本申请实施例中,当应用程序加载图片的数量不为多个,即应用程序加载的图片为单个图片时,在将图片的色域空间与用户界面的色域空间调整为一致之前,还可以显示提示内容,以提示用户是否将图片的色域空间与用户界面的色域空间调整为一致,即是否将用户界面的色域空间调整为第一色域空间。可以理解的,应用程序加载图片的数量为单个时,可能本次应用程序显示图片仅是显示一张图片,而如果将用户界面的色域空间进行调整为第一色域空间,则后续需要将用户界面的色域空间调整回第二色域空间,而使整个过程较为繁琐,仅为了查看单张图片而将用户界面的色域空间进行调整,可能对于一些用户而言不必要,因此可以提示用户,由用户决定是否将用户界面的色域空间调整为第一色域空间。其中,提示内容可以以弹窗等形式实现,在此不作为限定。In the embodiment of the present application, when the number of pictures loaded by the application program is not multiple, that is, when the picture loaded by the application program is a single picture, before the color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface, the The prompt content may be displayed to prompt the user whether to adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface, that is, whether to adjust the color gamut space of the user interface to the first color gamut space. It is understandable that when the number of images loaded by an application is a single image, it is possible that the image displayed by the application is only one image. If the color gamut space of the user interface is adjusted to the first color gamut space, the subsequent The color gamut space of the user interface is adjusted back to the second color gamut space, which makes the whole process more complicated. Adjusting the color gamut space of the user interface just to view a single picture may not be necessary for some users, so you can prompt User, the user decides whether to adjust the color gamut space of the user interface to the first color gamut space. The prompt content may be implemented in the form of a pop-up window, etc., which is not limited here.

步骤S480:在接收到确定指令时,将所述图片的色域空间与所述用户界面的色域空间调整为一致。Step S480: When receiving the determination instruction, adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface.

在一些实施方式中,在显示提示内容后,可以等待用户输入的指令,当检测到确定指令时,则表示用户需要将图片的色域空间与用户界面的色域空间调整为一致,也就是将用户界面的色域空间调整为第一色域空间。而未检测到确定指令时,则不执行将用户界面的色域空间调整为第一色域空间。其中,可以根据检测到对用户界面中提示内容的操作,确定是否接收到确定指令。例如,在弹窗提示时,可以显示“是”和“否”的控件,当检测到对“是”的控件的操作,则确定接收到确定指令。另外,进行弹窗提示时,还可以对是否对用户界面进行色域调整,进行倒计时,当弹窗提示后目标时长内,用户未进行确认操作,则取消弹窗提示,并且不执行将用户界面的色域空间调整为第一色域空间。In some embodiments, after displaying the prompt content, you can wait for an instruction input by the user. When a confirmation instruction is detected, it means that the user needs to adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface, that is, set the The color gamut space of the user interface is adjusted to the first color gamut space. However, when the determination instruction is not detected, the adjustment of the color gamut space of the user interface to the first color gamut space is not performed. Wherein, it may be determined whether a determination instruction is received according to the detected operation on the prompt content in the user interface. For example, when prompted by the pop-up window, "Yes" and "No" controls may be displayed, and when an operation on the "Yes" control is detected, it is determined that a determination instruction is received. In addition, when the pop-up window prompts, you can also adjust the color gamut of the user interface and count down. When the user fails to confirm the operation within the target time after the pop-up window prompt, the pop-up window prompt is canceled, and the user interface is not executed. The color gamut space is adjusted to the first color gamut space.

步骤S490:在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。Step S490: After adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface, display the picture.

本申请实施例提供的图片显示方法,通过在应用程序加载图片时,判断图片的色域空间与用户界面的色域空间是否相同,并在两者不同时,确定加载的图片的数量,当加载的图片为多个图片时,多个图片的色域空间相同才进行将用户界面的色域空间调整为与图片的色域空间一致,减少移动终端的负载量和功耗,可以使得在应用程序的用户界面中展示图片时,保证图片的色域空间与应用程序的用户界面的色域空间一致,并且保证显示的大部分内容能呈现原本的颜色信息,避免显示效果上的差异而影响用户视觉体验,提升显示效果以及用户的视觉体验。The image display method provided by the embodiment of the present application determines whether the color gamut space of the image is the same as the color gamut space of the user interface when the application program loads the image, and when the two are different, determines the number of loaded images, and when the image is loaded When there are multiple pictures, the color gamut space of the multiple pictures is the same. Adjust the color gamut space of the user interface to be consistent with the color gamut space of the picture, reduce the load and power consumption of the mobile terminal, and make the application program When displaying pictures in the user interface of the application, ensure that the color gamut space of the picture is consistent with the color gamut space of the user interface of the application, and ensure that most of the displayed content can present the original color information, so as to avoid the difference in display effect and affect the user's vision. experience, improve the display effect and the user's visual experience.

请参阅图7,图7示出了本申请实施例提供的图片显示装置400的模块框图。该图片显示装置400应用于上述移动终端。下面将针对图7所示的框图进行阐述,所述图片显示装置400包括:色域获取模块410、色域判断模块420、色域调整模块430以及显示执行模块440。其中,所述色域获取模块410用于在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间;所述色域判断模块420用于判断所述第一色域空间与所述第二色域空间是否相同;所述色域调整模块430用于如果不相同,将所述图片的色域空间与所述用户界面的色域空间调整为一致;所述显示执行模块440用于在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。Referring to FIG. 7 , FIG. 7 shows a module block diagram of a picture display apparatus 400 provided by an embodiment of the present application. The picture display apparatus 400 is applied to the above-mentioned mobile terminal. The block diagram shown in FIG. 7 will be described below. The picture display device 400 includes: a color gamut acquisition module 410 , a color gamut judgment module 420 , a color gamut adjustment module 430 , and a display execution module 440 . Wherein, the color gamut acquisition module 410 is configured to acquire the color gamut space of the picture as the first color gamut space and the color gamut of the user interface of the application program when detecting that the currently running application program loads the picture space as the second color gamut space; the color gamut judgment module 420 is used to judge whether the first color gamut space and the second color gamut space are the same; the color gamut adjustment module 430 is used to The color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface; the display execution module 440 is configured to adjust the color gamut space of the picture and the color gamut space of the user interface to be consistent with the color gamut space of the user interface. to display the picture.

在一些实施方式中,色域调整模块430可以具体用于:将所述用户界面的色域空间调整为所述第一色域空间;或者将所述图片的色域空间调整为所述第二色域空间。In some embodiments, the color gamut adjustment module 430 may be specifically configured to: adjust the color gamut space of the user interface to the first color gamut space; or adjust the color gamut space of the picture to the second color gamut space gamut space.

作为一种方式,请参见图8,色域调整模块430可以包括:资源参数获取单元431、第一调整单元432以及第二调整单元433。其中,资源参数获取单元431用于获取移动终端当前的剩余资源参数,其中,所述剩余资源参数包括所述移动终端的剩余电量、中央处理器的剩余资源及图形处理器的剩余资源中的至少一种;第一调整单元432用于在所述剩余资源参数大于指定阈值时,如果所述第一色域空间的色域范围大于所述第二色域空间的色域范围,将所述用户界面的色域空间调整为所述第一色域空间;第二调整单元433用于如果所述第二色域空间的色域范围大于所述第一色域空间的色域范围,将所述图片的色域空间调整为所述第二色域空间。As an example, referring to FIG. 8 , the color gamut adjustment module 430 may include: a resource parameter acquisition unit 431 , a first adjustment unit 432 and a second adjustment unit 433 . The resource parameter obtaining unit 431 is configured to obtain the current remaining resource parameters of the mobile terminal, wherein the remaining resource parameters include at least one of the remaining power of the mobile terminal, the remaining resources of the central processing unit, and the remaining resources of the graphics processor. One; the first adjustment unit 432 is configured to, when the remaining resource parameter is greater than a specified threshold, if the color gamut range of the first color gamut space is greater than the color gamut range of the second color gamut space, the user The color gamut space of the interface is adjusted to the first color gamut space; the second adjustment unit 433 is configured to adjust the color gamut range of the second color gamut space to the The color gamut space of the picture is adjusted to the second color gamut space.

进一步的,请参见图8,色域调整模块430还可以包括:第三调整单元434以及第四调整单元435。其中,第三调整单元434用于在所述剩余资源参数小于或者等于所述指定阈值时,如果所述第一色域空间的色域范围大于所述第二色域空间的色域范围,将所述图片的色域空间调整为所述第二色域空间;第四调整单元435用于如果所述第二色域空间的色域范围大于所述第一色域空间的色域范围,将所述用户界面的色域空间调整为所述第一色域空间。Further, referring to FIG. 8 , the color gamut adjustment module 430 may further include: a third adjustment unit 434 and a fourth adjustment unit 435 . Wherein, the third adjustment unit 434 is configured to, when the remaining resource parameter is less than or equal to the specified threshold, if the color gamut range of the first color gamut space is greater than the color gamut range of the second color gamut space, adjust the The color gamut space of the picture is adjusted to the second color gamut space; the fourth adjustment unit 435 is configured to adjust the color gamut range of the second color gamut space to be larger than the color gamut range of the first color gamut space. The color gamut space of the user interface is adjusted to the first color gamut space.

作为另一种方式,请参见图9,色域调整模块430可以包括:比例获取单元436、第五调整单元437以及第六调整单元438。其中,比例获取单元436用于获取所述图片的显示区域占所述用户界面的占比;第五调整单元437用于在所述占比大于指定比例时,将所述用户界面的色域空间调整为所述第一色域空间;第六调整单元438用于在所述占比小于或者等于所述指定比例时,将所述图片的色域空间调整为所述第二色域空间。As another way, referring to FIG. 9 , the color gamut adjustment module 430 may include: a scale acquisition unit 436 , a fifth adjustment unit 437 and a sixth adjustment unit 438 . The ratio obtaining unit 436 is configured to obtain the proportion of the display area of the picture in the user interface; the fifth adjustment unit 437 is configured to adjust the color gamut space of the user interface when the proportion is greater than the specified proportion. is adjusted to the first color gamut space; the sixth adjustment unit 438 is configured to adjust the color gamut space of the picture to the second color gamut space when the ratio is less than or equal to the specified ratio.

在一些实施方式中,请参见图10,该图片显示装置400还可以包括:数量判断模块450。数量判断模块450在将所述图片的色域空间与所述用户界面的色域空间调整为一致之前,判断所述应用程序加载的图片的数量是否为多个;色域判断模块420还可以用于如果所述应用程序加载的图片的数量为多个,判断多个图片的色域空间是否相同;色域调整模块440用于如果所述多个图片的色域空间相同,将所述图片的色域空间与所述用户界面的色域空间调整为一致。In some embodiments, referring to FIG. 10 , the picture display apparatus 400 may further include: a quantity determination module 450 . Before adjusting the color gamut space of the picture and the color gamut space of the user interface, the quantity judgment module 450 judges whether the number of pictures loaded by the application program is multiple; the color gamut judgment module 420 can also use If the number of pictures loaded by the application program is multiple, determine whether the color gamut spaces of the multiple pictures are the same; the color gamut adjustment module 440 is used to adjust the color gamut spaces of the pictures to The color gamut space is adjusted to be consistent with the color gamut space of the user interface.

在一些实施方式中,请参见图10,该图片显示装置400还可以包括:提示模块460。提示模块460用于如果所述应用程序加载的图片的数量不为多个,显示提示内容,所述提示内容用于提示是否将所述图片的色域空间与所述用户界面的色域空间调整为一致。色域调整模块430还可以用于在接收到确定指令时,将所述图片的色域空间与所述用户界面的色域空间调整为一致。In some embodiments, referring to FIG. 10 , the picture display apparatus 400 may further include: a prompt module 460 . The prompt module 460 is configured to display prompt content if the number of pictures loaded by the application program is not multiple, and the prompt content is used to prompt whether to adjust the color gamut space of the picture and the color gamut space of the user interface to be consistent. The color gamut adjustment module 430 may also be configured to adjust the color gamut space of the picture and the color gamut space of the user interface to be consistent with the color gamut space of the user interface when the determination instruction is received.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

综上所述,本申请提供的方案,在检测到当前运行的应用程序对图片进行加载时,获取图片的色域空间作为第一色域空间以及应用程序的用户界面的色域空间作为第二色域空间,判断第一色域空间与第二色域空间是否相同,如果不相同,将图片的色域空间与用户界面的色域空间调整为一致,然后将图片进行显示。因此,在应用程序的界面中展示图片时时,保证了图片与用户界面的色域空间一致,从而提升图片与用户界面的显示效果。To sum up, in the solution provided by the present application, when it is detected that the currently running application program loads the picture, the color gamut space of the picture is obtained as the first color gamut space and the color gamut space of the user interface of the application program is used as the second color gamut space. Color gamut space, determine whether the first color gamut space and the second color gamut space are the same, if not, adjust the color gamut space of the picture and the color gamut space of the user interface to be consistent, and then display the picture. Therefore, when displaying a picture in the interface of the application program, it is ensured that the color gamut space of the picture and the user interface is consistent, thereby improving the display effect of the picture and the user interface.

请参考图11,其示出了本申请实施例提供的一种移动终端的结构框图。该移动终端100可以是智能手机、平板电脑、电子书等能够运行应用程序的移动终端。本申请中的移动终端100可以包括一个或多个如下部件:处理器110、存储器120、显示屏130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 11 , which shows a structural block diagram of a mobile terminal provided by an embodiment of the present application. The mobile terminal 100 may be a mobile terminal capable of running an application program, such as a smart phone, a tablet computer, an electronic book, or the like. 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 screen 130, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and accessed by Configured to be executed by one or more processors 110, the one or more programs are configured to execute the methods described in the foregoing method embodiments.

处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个移动终端100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行移动终端100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts in the entire mobile terminal 100, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 120, and calling the data stored in the memory 120. Various functions of the mobile terminal 100 and processing data. Optionally, the processor 110 may employ at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). implemented in hardware. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may also not be integrated into the processor 110, and is implemented by a communication chip alone.

存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. 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 playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data created by the terminal 100 during use (such as phone book, audio and video data, chat record data) and the like.

显示屏130用于显示由用户输入的信息、提供给用户的信息以及所述移动终端100的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,该显示屏130可以为液晶显示器(Liquid Crystal Display,LCD),也可以为有机发光二极管(Organic Light-Emitting Diode,OLED),在此不做限定。The display screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the mobile terminal 100, which may be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the display screen 130 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED), which is not limited herein.

请参考图12,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 12 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 800 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. Computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. 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, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1.一种图片显示方法,其特征在于,所述方法包括:1. a picture display method, is characterized in that, described method comprises: 在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间;When it is detected that the currently running application program loads the picture, obtain the color gamut space of the picture as the first color gamut space and the color gamut space of the user interface of the application program as the second color gamut space; 判断所述第一色域空间与所述第二色域空间是否相同;Determine whether the first color gamut space and the second color gamut space are the same; 如果不相同,将所述图片的色域空间与所述用户界面的色域空间调整为一致;If they are not the same, adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface; 在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。After the color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface, the picture is displayed. 2.根据权利要求1所述的方法,其特征在于,所述将所述图片的色域空间与所述用户界面的色域空间调整为一致,包括:2. The method according to claim 1, wherein the adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface comprises: 将所述用户界面的色域空间调整为所述第一色域空间;或者Adjusting the color gamut space of the user interface to the first color gamut space; or 将所述图片的色域空间调整为所述第二色域空间。The color gamut space of the picture is adjusted to the second color gamut space. 3.根据权利要求2所述的方法,其特征在于,所述将所述图片的色域空间与所述用户界面的色域空间调整为一致,包括:3. The method according to claim 2, wherein the adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface comprises: 获取终端当前的剩余资源参数,其中,所述剩余资源参数包括所述移动终端的剩余电量、中央处理器的剩余资源及图形处理器的剩余资源中的至少一种;obtaining the current remaining resource parameters of the terminal, wherein the remaining resource parameters include at least one of the remaining power of the mobile terminal, the remaining resources of the central processing unit, and the remaining resources of the graphics processor; 在所述剩余资源参数大于指定阈值时,如果所述第一色域空间的色域范围大于所述第二色域空间的色域范围,将所述用户界面的色域空间调整为所述第一色域空间;When the remaining resource parameter is greater than the specified threshold, if the color gamut range of the first color gamut space is greater than the color gamut range of the second color gamut space, adjust the color gamut space of the user interface to the first color gamut space. One 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, the color gamut space of the picture is adjusted to the second color gamut space. 4.根据权利要求3所述的方法,其特征在于,所述将所述图片的色域空间与所述用户界面的色域空间调整为一致,还包括:4. The method according to claim 3, wherein the adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface, further comprising: 在所述剩余资源参数小于或者等于所述指定阈值时,如果所述第一色域空间的色域范围大于所述第二色域空间的色域范围,将所述图片的色域空间调整为所述第二色域空间;When the remaining resource parameter is less than or equal to the specified threshold, if the color gamut range of the first color gamut space is larger than the color gamut range of the second color gamut space, the color gamut space of the picture is adjusted to the second color gamut space; 如果所述第二色域空间的色域范围大于所述第一色域空间的色域范围,将所述用户界面的色域空间调整为所述第一色域空间。If the color gamut range of the second color gamut space is greater than the color gamut range of the first color gamut space, the color gamut space of the user interface is adjusted to the first color gamut space. 5.根据权利要求2所述的方法,其特征在于,所述将所述图片的色域空间与所述用户界面的色域空间调整为一致,包括:5. The method according to claim 2, wherein the adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface comprises: 获取所述图片的显示区域占所述用户界面的占比;Obtain the proportion of the display area of the picture in the user interface; 在所述占比指定比例时,将所述用户界面的色域空间调整为所述第一色域空间;When the proportion is specified, adjusting the color gamut space of the user interface to the first color gamut space; 在所述占比小于或者等于所述指定比例时,将所述图片的色域空间调整为所述第二色域空间。When the ratio is less than or equal to the specified ratio, the color gamut space of the picture is adjusted to the second color gamut space. 6.根据权利要求1-5任一项所述的方法,其特征在于,所述将所述图片的色域空间与所述用户界面的色域空间调整为一致,包括:6. The method according to any one of claims 1-5, wherein the adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface comprises: 将所述用户界面的色域空间调整为所述第一色域空间;adjusting the color gamut space of the user interface to the first color gamut space; 在将所述图片的色域空间与所述用户界面的色域空间调整为一致之前,所述方法还包括:Before adjusting the color gamut space of the picture to be consistent with the color gamut space of the user interface, the method further includes: 判断所述应用程序加载的图片的数量是否为多个;Determine whether the number of pictures loaded by the application program is multiple; 如果为多个,判断多个图片的色域空间是否相同;If there are more than one, determine whether the color gamut space of multiple images is the same; 如果所述多个图片的色域空间相同,执行所述将所述图片的色域空间与所述用户界面的色域空间调整为一致的步骤。If the color gamut spaces of the plurality of pictures are the same, the step of adjusting the color gamut spaces of the pictures and the color gamut spaces of the user interface to be consistent is performed. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, wherein the method further comprises: 如果不为多个,显示提示内容,所述提示内容用于提示是否将所述图片的色域空间与所述用户界面的色域空间调整为一致;If there are not more than one, display prompt content, and the prompt content is used to prompt whether to adjust the color gamut space of the picture to be consistent with the color gamut space of the user interface; 在接收到确定指令时,将所述图片的色域空间与所述用户界面的色域空间调整为一致。When the determination instruction is received, the color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface. 8.一种图片显示装置,其特征在于,所述装置包括:色域获取模块、色域判断模块、色域调整模块以及显示执行模块,其中,8. A picture display device, characterized in that the device comprises: a color gamut acquisition module, a color gamut judgment module, a color gamut adjustment module, and a display execution module, wherein, 所述色域获取模块用于在检测到当前运行的应用程序对图片进行加载时,获取所述图片的色域空间作为第一色域空间以及所述应用程序的用户界面的色域空间作为第二色域空间;The color gamut acquisition module is used to acquire the color gamut space of the picture as the first color gamut space and the color gamut space of the user interface of the application program as the first color gamut space when detecting that the currently running application program loads the picture. two-gamut space; 所述色域判断模块用于判断所述第一色域空间与所述第二色域空间是否相同;The color gamut judgment module is used for judging whether the first color gamut space and the second color gamut space are the same; 所述色域调整模块用于如果不相同,将所述图片的色域空间与所述用户界面的色域空间调整为一致;The color gamut adjustment module is used to adjust the color gamut space of the picture and the color gamut space of the user interface to be consistent if they are different; 所述显示执行模块用于在将所述图片的色域空间与所述用户界面的色域空间调整为一致之后,将所述图片进行显示。The display execution module is configured to display the picture after the color gamut space of the picture is adjusted to be consistent with the color gamut space of the user interface. 9.一种移动终端,其特征在于,包括:9. A mobile terminal, comprising: 一个或多个处理器;one or more processors; 存储器;memory; 一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-7任一项所述的方法。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 are configured to perform such as The method of any one of claims 1-7. 10.一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-7任一项所述的方法。10. A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute any one of claims 1-7 Methods.
CN201910647110.XA 2019-07-17 2019-07-17 Image display method, device, mobile terminal and storage medium Pending CN110413360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910647110.XA CN110413360A (en) 2019-07-17 2019-07-17 Image display method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910647110.XA CN110413360A (en) 2019-07-17 2019-07-17 Image display method, device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110413360A true CN110413360A (en) 2019-11-05

Family

ID=68361808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910647110.XA Pending CN110413360A (en) 2019-07-17 2019-07-17 Image display method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110413360A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021008345A1 (en) * 2019-07-17 2021-01-21 Oppo广东移动通信有限公司 Image information processing method and apparatus, electronic device and storage medium
CN114979598A (en) * 2022-06-01 2022-08-30 青岛海信激光显示股份有限公司 Laser projection display method, three-color laser projection equipment and readable storage medium
WO2023232084A1 (en) * 2022-06-01 2023-12-07 青岛海信激光显示股份有限公司 Projection device, display method therefor, and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103871391A (en) * 2012-12-15 2014-06-18 联想(北京)有限公司 Color display method and equipment
CN104657482A (en) * 2015-02-26 2015-05-27 深圳市中兴移动通信有限公司 Method for displaying application interface and terminal
CN105141806A (en) * 2015-07-28 2015-12-09 小米科技有限责任公司 Image file display method and image file display device
US20160205368A1 (en) * 2015-01-09 2016-07-14 Vixs Systems, Inc. Dynamic range converter with reconfigurable architecture and methods for use therewith
CN106201535A (en) * 2016-07-14 2016-12-07 广州神马移动信息科技有限公司 The method and apparatus that toolbar background color converts along with the domain color of picture
CN106782302A (en) * 2016-12-20 2017-05-31 上海天马有机发光显示技术有限公司 A kind of colour gamut method of adjustment and display device
CN108574835A (en) * 2017-03-10 2018-09-25 上海顺久电子科技有限公司 The method and device of image color in a kind of calibration equipment screen
WO2018190786A1 (en) * 2017-04-10 2018-10-18 Hewlett-Packard Development Company, L.P. Dynamically gamut adjustable displays
CN109005311A (en) * 2017-06-06 2018-12-14 精工爱普生株式会社 The adjusting method of configuration file adjusts program, regulating device and regulating system
CN109729405A (en) * 2018-11-27 2019-05-07 Oppo广东移动通信有限公司 Video processing method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103871391A (en) * 2012-12-15 2014-06-18 联想(北京)有限公司 Color display method and equipment
US20160205368A1 (en) * 2015-01-09 2016-07-14 Vixs Systems, Inc. Dynamic range converter with reconfigurable architecture and methods for use therewith
CN104657482A (en) * 2015-02-26 2015-05-27 深圳市中兴移动通信有限公司 Method for displaying application interface and terminal
CN105141806A (en) * 2015-07-28 2015-12-09 小米科技有限责任公司 Image file display method and image file display device
CN106201535A (en) * 2016-07-14 2016-12-07 广州神马移动信息科技有限公司 The method and apparatus that toolbar background color converts along with the domain color of picture
CN106782302A (en) * 2016-12-20 2017-05-31 上海天马有机发光显示技术有限公司 A kind of colour gamut method of adjustment and display device
CN108574835A (en) * 2017-03-10 2018-09-25 上海顺久电子科技有限公司 The method and device of image color in a kind of calibration equipment screen
WO2018190786A1 (en) * 2017-04-10 2018-10-18 Hewlett-Packard Development Company, L.P. Dynamically gamut adjustable displays
CN109005311A (en) * 2017-06-06 2018-12-14 精工爱普生株式会社 The adjusting method of configuration file adjusts program, regulating device and regulating system
CN109729405A (en) * 2018-11-27 2019-05-07 Oppo广东移动通信有限公司 Video processing method and device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021008345A1 (en) * 2019-07-17 2021-01-21 Oppo广东移动通信有限公司 Image information processing method and apparatus, electronic device and storage medium
EP4002823B1 (en) * 2019-07-17 2023-07-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Image information processing method, apparatus, and storage medium for display gamut adaptation to a display interface
CN114979598A (en) * 2022-06-01 2022-08-30 青岛海信激光显示股份有限公司 Laser projection display method, three-color laser projection equipment and readable storage medium
WO2023232084A1 (en) * 2022-06-01 2023-12-07 青岛海信激光显示股份有限公司 Projection device, display method therefor, and storage medium
CN114979598B (en) * 2022-06-01 2024-04-02 青岛海信激光显示股份有限公司 Laser projection display method, three-color laser projection apparatus, and readable storage medium

Similar Documents

Publication Publication Date Title
WO2021008348A1 (en) Image display method and device, mobile terminal, and storage medium
CN102984151B (en) Method and the server of image data are provided to computing terminal
CN109951627B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107809593B (en) Shoot method, apparatus, terminal and the storage medium of image
CN107770618B (en) Image processing method, device and storage medium
US11810529B2 (en) Screen color gamut control method, electronic device and storage medium
US9665247B2 (en) Method and device for applying a new skin to a display environment
CN112714352B (en) Screen recording method and device, computing equipment and readable storage medium
WO2014187043A1 (en) Application display processing method and apparatus
CN102932671A (en) Method and server for supplying picture to computing terminal
CN104572922A (en) Image processing method and device based on mobile equipment
CN110413360A (en) Image display method, device, mobile terminal and storage medium
CN107809591A (en) Method, apparatus, terminal and the storage medium of shooting image
CN106844580A (en) A kind of generation method of thumbnail, device and mobile terminal
WO2021008345A1 (en) Image information processing method and apparatus, electronic device and storage medium
TWI717317B (en) Method and device for taking screenshot of display image of display device
CN107729099A (en) Background method of adjustment and its system
CN107454344A (en) A shooting parameter setting method, user terminal and related media products
WO2015110060A1 (en) Filter realization method and apparatus of camera application
CN110377773B (en) Image processing method, device, mobile terminal and storage medium
CN108111763B (en) Image processing method, image processing device, storage medium and electronic equipment
CN102214107A (en) Method and device for changing Flash skin and color in client program
CN106911937A (en) The collocation method and system of a kind of live middle present banner background colour
CN110362188B (en) Picture processing method and device, mobile terminal and storage medium
CN110515834B (en) Interface testing method, device, mobile terminal and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191105

RJ01 Rejection of invention patent application after publication