Image display method and device, equipment and storage medium

By processing SDR video data to generate target images that meet HDR standards, the problem of insufficient color and brightness dynamic range of SDR display devices is solved, and efficient utilization of hardware resources and improved user experience are achieved.

CN120825565APending Publication Date: 2025-10-21BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410455257.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2025-10-21

AI Technical Summary

Technical Problem

Existing SDR display devices cannot meet HDR standards in terms of color and brightness dynamic range, resulting in wasted hardware resources and poor user experience.

Method used

In response to acquiring SDR video data, a preset color lookup table LUT is used to process the image to be displayed, thereby generating a target image that meets the HDR standard and displaying it on an electronic device.

Benefits of technology

It improves the hardware utilization of SDR display devices, avoids resource waste, and improves video display effects and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120825565A_ABST
    Figure CN120825565A_ABST
Patent Text Reader

Abstract

The invention relates to an image display method and device, equipment and a storage medium, and the method comprises the steps: responding to the obtained SDR video data to be played at present, and extracting a to-be-displayed SDR image from the SDR video data; in response to the extracted SDR image to be displayed, processing the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, the preset color lookup table LUT corresponding to the current screen brightness of the electronic device, and the target image meeting the HDR standard; and displaying the target image based on the electronic equipment. According to the method and the device, the utilization rate of screen hardware of the electronic equipment can be improved, waste of hardware resources is avoided, the video display effect can be improved, and then the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of display technology, and in particular to an image display method, apparatus, device, and storage medium. Background Art

[0002] Image display technology aims to make images appear as close as possible to what people see in nature. HDR (High-Dynamic Range) images have higher brightness, deeper bit depth, and a wider color gamut, but they must be displayed on HDR display devices.

[0003] Although the research on HDR display devices has gradually entered the right track in recent years, most display devices on the market are still SDR (Standard-Dynamic Range) display devices. The dynamic range of color and brightness of SDR display devices is far smaller than that of HDR display devices.

[0004] With the development of terminal technology, the display capabilities of some SDR display devices (hereinafter referred to as high-standard SDR display devices) have improved. Their screens exceed SDR standards in terms of brightness and color, but they are not yet standard HDR devices. However, the current common display content is still SDR standard, which leads to insufficient utilization of the hardware of high-standard SDR display devices, resulting in a waste of hardware resources, limiting the display quality of SDR content, and affecting the user experience. Summary of the Invention

[0005] To overcome the problems existing in the related art, the embodiments of the present disclosure provide an image display method, apparatus, device and storage medium to solve the defects in the related art.

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an image display method, the method comprising:

[0007] In response to acquiring the SDR video data currently to be played, extracting the SDR image to be displayed from the SDR video data;

[0008] In response to extracting the SDR image to be displayed, processing the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to a current screen brightness of the electronic device, and the target image complies with the HDR standard;

[0009] The target image is displayed based on the electronic device.

[0010] In some embodiments, the method further includes determining the preset color lookup table LUT based on the following manner:

[0011] Determining a preset screen brightness range to which the current screen brightness belongs;

[0012] The preset color lookup table LUT is determined based on a pre-stored correspondence between the preset screen brightness range and the preset color lookup table LUT.

[0013] In some embodiments, the method further includes storing the corresponding relationship based on the following manner:

[0014] Processing input values ​​of each data point in the initial color lookup table LUT based on a predefined target instruction file and a specified screen brightness to obtain output values ​​of each data point, wherein the target instruction file includes standard information for instructing rendering of a standard dynamic SDR image to an HDR range, and the specified screen brightness includes a screen brightness specified within the preset screen brightness range;

[0015] Combining the input value and the output value of each data point to obtain the preset color lookup table;

[0016] The corresponding relationship between the preset screen brightness range and the preset color lookup table LUT is stored.

[0017] In some embodiments, the target indication file includes gain image metadata, and a functional relationship between a pixel value of the HDR image, a pixel value of the SDR image, and a preset brightness enhancement multiple;

[0018] The processing of the input value of each data point in the initial color lookup table LUT based on the predefined target instruction file and the specified screen brightness to obtain the output value of each data point includes:

[0019] Determining the linear brightness of the SDR image and the linear brightness of the HDR image based on the grayscale of the SDR image and the grayscale of the HDR image respectively;

[0020] generating a gain map for the SDR image based on the gain map metadata, the linear luminance of the SDR image, and the linear luminance of the HDR image;

[0021] Determining a pixel value of an HDR image based on the gain map, the pixel value of the SDR image, a preset brightness enhancement factor, and the functional relationship;

[0022] An output value of each data point is determined based on a pixel value of the HDR image.

[0023] In some embodiments, before determining the pixel value of the HDR image based on the gain map, the pixel value of the SDR image, the preset brightness enhancement factor, and the functional relationship, the method further includes:

[0024] Determining a preset playback brightness range to which the original playback brightness of the SDR video data belongs;

[0025] The preset brightness enhancement multiple is determined based on the preset playback brightness range.

[0026] In some embodiments, the method further comprises:

[0027] Determining screen brightness adjustment information of the electronic device based on the original playback brightness of the SDR video data;

[0028] In response to the completion of adjusting the current screen brightness of the electronic device based on the screen brightness adjustment information, the operation of displaying the target image based on the electronic device is performed.

[0029] In some embodiments, the method further comprises:

[0030] In response to receiving a screenshot instruction while displaying the target image, acquiring the SDR image to be displayed;

[0031] generating a gain map for the SDR image to be displayed based on a predefined target indication file, the target indication file including standard information for instructing rendering of a standard dynamic SDR image into an HDR range, the target indication file including gain map metadata, and a functional relationship between pixel values ​​of the HDR image, pixel values ​​of the SDR image, and a preset brightness enhancement factor, the gain map being used to store brightness difference data for rendering each pixel point in the SDR image to be displayed into the HDR range;

[0032] The target indication file, the gain map, and the SDR image to be displayed are saved as screenshots.

[0033] In some embodiments, the method further comprises:

[0034] In response to receiving a display instruction for the screenshot, restoring the target image based on the target indication file, the gain map, and the SDR image to be displayed;

[0035] The target image is displayed.

[0036] According to a second aspect of an embodiment of the present disclosure, there is provided an image display device, the device comprising:

[0037] a video image extraction module, configured to extract an SDR image to be displayed from the SDR video data in response to obtaining the SDR video data to be played;

[0038] a target image acquisition module, configured to, in response to extracting the SDR image to be displayed, process the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to the current screen brightness of the electronic device, and the target image complies with the HDR standard;

[0039] A target image display module is configured to display the target image based on the electronic device.

[0040] In some embodiments, the apparatus further comprises a lookup table determination module;

[0041] The lookup table determination module includes:

[0042] a brightness range determining unit, configured to determine a preset screen brightness range to which the current screen brightness belongs;

[0043] A lookup table determining unit is configured to determine the preset color lookup table LUT based on a pre-stored correspondence between the preset screen brightness range and the preset color lookup table LUT.

[0044] In some embodiments, the apparatus further comprises a relationship storage module;

[0045] The relationship storage module includes:

[0046] an output value acquisition unit, configured to process an input value of each data point in the initial color lookup table LUT based on a predefined target instruction file and a specified screen brightness to obtain an output value of each data point, wherein the target instruction file includes standard information for instructing rendering of a standard dynamic SDR image to an HDR range, and the specified screen brightness includes a screen brightness specified within the preset screen brightness range;

[0047] A lookup table generating unit, configured to combine the input value and the output value of each data point to obtain the preset color lookup table;

[0048] The relationship storage unit is used to store the corresponding relationship between the preset screen brightness range and the preset color lookup table LUT.

[0049] In some embodiments, the target indication file includes gain image metadata, and a functional relationship between a pixel value of the HDR image, a pixel value of the SDR image, and a preset brightness enhancement multiple;

[0050] The output value acquisition unit is further configured to:

[0051] Determining the linear brightness of the SDR image and the linear brightness of the HDR image based on the grayscale of the SDR image and the grayscale of the HDR image respectively;

[0052] generating a gain map for the SDR image based on the gain map metadata, the linear luminance of the SDR image, and the linear luminance of the HDR image;

[0053] Determining a pixel value of an HDR image based on the gain map, the pixel value of the SDR image, a preset brightness enhancement factor, and the functional relationship;

[0054] An output value of each data point is determined based on a pixel value of the HDR image.

[0055] In some embodiments, the output value obtaining unit is further configured to:

[0056] Determining a preset playback brightness range to which the original playback brightness of the SDR video data belongs;

[0057] The preset brightness enhancement multiple is determined based on the preset playback brightness range.

[0058] In some embodiments, the apparatus further comprises:

[0059] a screen brightness determination module, configured to determine screen brightness adjustment information of the electronic device based on the original playback brightness of the SDR video data;

[0060] The target image display module is further configured to execute the operation of displaying the target image based on the electronic device in response to completing the adjustment of the current screen brightness of the electronic device based on the screen brightness adjustment information.

[0061] In some embodiments, the device further includes a screenshot saving module;

[0062] The screenshot saving module includes:

[0063] an image acquisition unit, configured to acquire the SDR image to be displayed in response to receiving a screenshot instruction when the target image is displayed;

[0064] a gain map generating unit, configured to generate a gain map for the SDR image to be displayed based on a predefined target indication file, wherein the target indication file includes standard information for instructing rendering of a standard dynamic SDR image into an HDR range, the target indication file includes gain map metadata, and a functional relationship between pixel values ​​of the HDR image, pixel values ​​of the SDR image, and a preset brightness enhancement factor, the gain map being configured to store brightness difference data for rendering each pixel point in the SDR image to be displayed into the HDR range;

[0065] A screenshot saving unit is used to save the target indication file, the gain map and the SDR image to be displayed as a screenshot.

[0066] In some embodiments, the device further comprises a screenshot display module;

[0067] The screenshot display module includes:

[0068] an image restoration unit, configured to, in response to receiving a display instruction for the screenshot, restore the target image based on the target indication file, the gain map, and the SDR image to be displayed;

[0069] A screenshot display unit is used to display the target image.

[0070] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, the device comprising:

[0071] a processor and a memory for storing a computer program;

[0072] The processor is configured to, when executing the computer program, implement:

[0073] In response to acquiring the SDR video data currently to be played, extracting the SDR image to be displayed from the SDR video data;

[0074] In response to extracting the SDR image to be displayed, processing the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to a current screen brightness of the electronic device, and the target image complies with the HDR standard;

[0075] The target image is displayed based on the electronic device.

[0076] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the following is achieved:

[0077] In response to acquiring the SDR video data currently to be played, extracting the SDR image to be displayed from the SDR video data;

[0078] In response to extracting the SDR image to be displayed, processing the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to a current screen brightness of the electronic device, and the target image complies with the HDR standard;

[0079] The target image is displayed based on the electronic device.

[0080] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0081] The present disclosure extracts an SDR image to be displayed from the SDR video data in response to obtaining the SDR video data to be played currently, and processes the SDR image to be displayed based on a preset color lookup table LUT in response to the extracted SDR image to be displayed to obtain a target image, wherein the preset color lookup table LUT corresponds to the current screen brightness of the electronic device, and the target image complies with the HDR standard, and then the target image is displayed based on the electronic device. Since the target image that complies with the HDR standard is obtained by utilizing the SDR image to be displayed in the SDR video to be played currently and the current screen brightness, the display of the target image can have an HDR display effect, thereby improving the utilization rate of the screen hardware of the electronic device, avoiding waste of hardware resources, and improving the display effect of the video, thereby improving the user experience.

[0082] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0084] Figure 1A is a flowchart of an image display method according to an exemplary embodiment of the present disclosure;

[0085] Figure 1B is a schematic diagram of a common SDR video picture according to an exemplary embodiment of the related art;

[0086] Figure 1C is a schematic diagram of an HDR video picture according to an exemplary embodiment of the present disclosure;

[0087] Figure 2 is a flowchart showing how to determine the preset color lookup table LUT according to an exemplary embodiment of the present disclosure;

[0088] Figure 3 is a flowchart showing how to store the corresponding relationship according to an exemplary embodiment of the present disclosure;

[0089] Figure 4A is a flow chart showing how to determine the output value of each data point according to an exemplary embodiment of the present disclosure;

[0090] Figure 4B is a schematic diagram of a common SDR video picture according to an exemplary embodiment of the related art;

[0091] Figure 4C2 is a schematic diagram showing a video image with an SDR initial playback brightness below 300 nit according to an exemplary embodiment of the present disclosure;

[0092] Figure 4D 1 is a schematic diagram of a video screen with an SDR initial playback brightness ranging from 300 to 500 nits according to an exemplary embodiment of the present disclosure;

[0093] Figure 4E 1 is a schematic diagram of a video screen with an SDR initial playback brightness ranging from 500 to 1000 nit according to an exemplary embodiment of the present disclosure;

[0094] Figure 5 is a flowchart showing how to save a screenshot when displaying the target image according to an exemplary embodiment of the present disclosure;

[0095] Figure 6 is a block diagram of an image display device according to an exemplary embodiment of the present disclosure;

[0096] Figure 7 is a block diagram showing another image display device according to an exemplary embodiment of the present disclosure;

[0097] Figure 8 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0098] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0099] Figure 1A This is a flow chart of an image display method according to an exemplary embodiment; the method of this embodiment can be executed by an image display device, which can be configured in an electronic device, such as a server, a workstation, a personal computer, a mobile terminal (such as a mobile phone, a tablet computer, etc.), a wearable device (such as glasses, a watch, etc.), etc. Figure 1A As shown, the method includes the following steps S101-S103:

[0100] In step S101 , in response to obtaining SDR video data to be currently played, an SDR image to be displayed is extracted from the SDR video data.

[0101] In this embodiment, when the electronic device obtains the SDR video data to be played, it can extract the SDR image to be displayed from the SDR video data.

[0102] For example, after the electronic device obtains the SDR video data to be played, the SDR video data can be converted into a multi-frame video image, and then the SDR image to be displayed can be obtained from the multi-frame video image. For example, the i-th (1≤i≤F, F is the total number of frames contained in the SDR video data) frame in the multi-frame video image can be defined as the SDR image to be displayed.

[0103] In step S102 , in response to extracting the SDR image to be displayed, the SDR image to be displayed is processed based on a preset color lookup table LUT to obtain a target image.

[0104] In this embodiment, after the SDR image to be displayed is extracted from the SDR video data, the SDR image to be displayed can be processed based on a preset color lookup table LUT to obtain a target image.

[0105] The above-mentioned preset color lookup table LUT corresponds to the current screen brightness of the electronic device. That is, in this embodiment, the corresponding preset color lookup table LUT can be determined according to the different screen brightness of the electronic device. The specific determination method can be referred to in the following Figure 2 The embodiment shown in FIG. 1 and the method for determining the preset color lookup table LUT can be referred to as follows: Figure 3 The illustrated embodiment will not be described in detail here.

[0106] The target image complies with the HDR standard, including that the brightness of the target image complies with the HDR brightness standard.

[0107] In step S103, the target image is displayed based on the electronic device.

[0108] In this embodiment, after the SDR image to be displayed is processed based on a preset color lookup table LUT to obtain a target image, the target image can be displayed based on the electronic device.

[0109] Furthermore, in order to match the screen brightness of the electronic device with the currently playing content, thereby ensuring the video playback effect, before the target image is displayed on the electronic device, the screen brightness adjustment information of the electronic device can be determined based on the original playback brightness of the SDR video data, and then in response to completing the adjustment of the current screen brightness of the electronic device based on the screen brightness adjustment information, the operation of displaying the target image on the electronic device is performed.

[0110] For example, based on the pre-constructed correspondence between the original playback brightness of the SDR video and the screen brightness adjustment information, the screen brightness adjustment information of the electronic device can be determined, and then the current screen brightness of the electronic device can be adjusted based on the screen brightness adjustment information. On this basis, the target image can be displayed based on the adjusted electronic device.

[0111] In some embodiments, the correspondence between the original playback brightness and the screen brightness adjustment information may include a correspondence between the playback brightness range to which the original playback brightness belongs and the screen brightness adjustment information. For example, if the original playback brightness of an SDR video is 200 nits and the maximum screen brightness of an electronic device is 1000 nits, the correspondence may be as shown in Table 1 below:

[0112] Table 1

[0113]

[0114]

[0115] Figure 1B is a schematic diagram of a common SDR video picture according to an exemplary embodiment of the related art; Figure 1C Schematic diagram of HDR video screen according to an exemplary embodiment of the present disclosure. For example, when an electronic device plays ordinary SDR video data, if the image display method in the related art is used, the image displayed on the screen will be Figure 1B If the image display method of this embodiment is used, each frame of the image to be displayed extracted from the SDR video data is processed based on the preset LUT to obtain the target image, and then the target image is displayed, the image can be displayed on the screen. Figure 1C High dynamic range video footage is shown. Figure 1B and Figure 1C It can be seen that the latter has a significant increase in brightness in areas such as roofs and clouds, presenting a high dynamic range effect, which is similar to the effect of HDR images.

[0116] As can be seen from the above description, the method of this embodiment extracts the SDR image to be displayed from the SDR video data in response to obtaining the SDR video data to be played, and in response to the extracted SDR image to be displayed, processes the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to the current screen brightness of the electronic device, and the target image meets the HDR standard, and then the target image is displayed based on the electronic device. Since the target image that meets the HDR standard is obtained by utilizing the SDR image to be displayed in the SDR video to be played and the current screen brightness, the display of the target image can have an HDR display effect, which can improve the utilization rate of the screen hardware of the electronic device, avoid waste of hardware resources, and improve the display effect of the video, thereby improving the user experience.

[0117] Figure 2 This is a flowchart showing how to determine the preset color lookup table LUT according to an exemplary embodiment of the present disclosure. Based on the above embodiment, this embodiment takes how to determine the preset color lookup table LUT as an example for exemplary description.

[0118] like Figure 2 As shown, the image display method of this embodiment may further include determining the preset color lookup table LUT based on the following steps S201-S202:

[0119] In step S201, the preset screen brightness range to which the current screen brightness belongs is determined.

[0120] In this embodiment, before processing the SDR image to be displayed based on the preset color lookup table LUT, in order to determine the preset color lookup table LUT, the preset screen brightness range to which the current screen brightness belongs can be first determined.

[0121] For example, assuming the screen brightness of an electronic device can be divided into the following three ranges: 0-300 nits, 300-500 nits, and 500-1000 nits. After detecting the current screen brightness of the electronic device, the preset screen brightness range to which the current screen brightness belongs can be determined. For example, assuming the current screen brightness is 400 nits, it can be determined that the preset screen brightness range to which it belongs is 300-500 nits.

[0122] In step S202, the preset color lookup table LUT is determined based on a pre-stored correspondence between the preset screen brightness range and the preset color lookup table LUT.

[0123] In this embodiment, after determining the preset screen brightness range to which the current screen brightness belongs, the preset color lookup table LUT may be determined based on a pre-stored correspondence between the preset screen brightness range and the preset color lookup table LUT.

[0124] For example, the correspondence between the pre-stored preset screen brightness range and the preset color lookup table LUT is shown in Table 2 below:

[0125] Table 2

[0126]

[0127] On this basis, when it is determined that the current screen brightness of the electronic device belongs to a preset screen brightness range of 300 to 500 nit, the corresponding preset color lookup table LUT can be found as the "second LUT" based on Table 2 above.

[0128] The storage method of the above corresponding relationship can be found in the following Figure 3 The illustrated embodiment will not be described in detail here.

[0129] As can be seen from the above description, this embodiment determines the preset screen brightness range to which the current screen brightness belongs, and determines the preset color lookup table LUT based on the pre-stored correspondence between the preset screen brightness range and the preset color lookup table LUT. This can accurately determine the LUT that matches the current screen brightness, and can subsequently process the SDR image to be displayed based on the LUT to obtain the target image and display the target image based on the electronic device. This can improve the utilization rate of the screen hardware of the electronic device, avoid waste of hardware resources, and improve the display effect of the video, thereby improving the user experience.

[0130] Figure 3 This is a flowchart showing how to store the correspondence according to an exemplary embodiment of the present disclosure; based on the above embodiment, this embodiment uses an example of how to store the correspondence between the preset screen brightness range and the preset color lookup table LUT as an example to illustrate.

[0131] like Figure 3 As shown, the image display method of this embodiment may further include storing the corresponding relationship based on the following steps S301-S303:

[0132] In step S301 , the input value of each data point in the initial color lookup table LUT is processed based on a predefined target instruction file and a specified screen brightness to obtain an output value of each data point.

[0133] In this embodiment, when the correspondence between the above-mentioned preset screen brightness range and the preset color lookup table LUT is stored, the input value of each data point in the initial color lookup table LUT can be processed based on the predefined target indication file and the specified screen brightness to obtain the output value of each data point.

[0134] Among them, the above-mentioned target indication file may include standard information for instructing the rendering of the standard dynamic SDR image to the HDR range. In some embodiments, the target indication file can be set by a predefined standard HDR video. In this embodiment, the definition content of the standard HDR video may include at least one of the following: color gamut, brightness, and gamma correction method. As an example, the standard HDR video can be defined as follows: the color gamut is the same as the screen color gamut of the electronic device, the brightness is 4000nit, and the gamma correction can be a PQ (Perceptual Quantizer) curve or an HLG (Hybrid Log-Gamma) curve.

[0135] On this basis, based on the above definition of standard HDR video, a corresponding target indication file can be generated. For example, the generated target indication file can be a functional relationship between the gain metadata and the functional relationship between the pixel value of the HDR image and the pixel value of the SDR image and the preset brightness enhancement multiple. In other words, based on the pixel value of the SDR image, the preset brightness enhancement multiple and the functional relationship, the pixel value of the corresponding HDR image can be calculated. Among them, the method for determining the output value of each of the above data points can be referred to as follows Figure 4A The illustrated embodiment will not be described in detail here.

[0136] The above-mentioned specified screen brightness may include a screen brightness specified within the preset screen brightness range. As an example, when the preset screen brightness ranges are 0-300 nit, 300-500 nit, and 500-1000 nit, the corresponding specified screen brightness may be 200 nit, 400 nit, and 800 nit, respectively.

[0137] The initial lookup table LUT may include a color lookup table LUT initially set in the display module of the electronic device, such as a standard 3DLUT in the related art, which is not limited in this embodiment.

[0138] In step S302, the input value and the output value of each data point are combined to obtain the preset color lookup table.

[0139] In this embodiment, after the output value of each data point is obtained, the input value and the output value of each data point may be combined to obtain the preset color lookup table.

[0140] For example, the aforementioned initial color lookup table (LUT) may include 17*17*17 input values ​​of RGB data points and their corresponding output values ​​of the RGB data points. The data in the nth row (n=1, 2, ..., 17) of the initial LUT is "r1 r2 r3 c1 c2 c3." It can be seen that the first three data points "r1 r2 r3" are the input values ​​of the RGB data points, and the last three data points "c1 c2 c3" are the output values ​​of the RGB data points. Therefore, this embodiment can calculate the input values ​​of the nth row of data based on a predefined target instruction file and a specified screen brightness (e.g., 200 nit, 400 nit, or 800 nit, etc.) to obtain the corresponding output values. For example, the output value corresponding to the input value "r1 r2 r3" is calculated to be "c1 c2 c3." Based on this, the input values ​​"r1 r2 r3" can be combined with "c1 c2 c3" to obtain "r1 r2 r3 c1 c2 c3," thereby obtaining the preset color lookup table.

[0141] In step S303, the correspondence between the preset screen brightness range and the preset color lookup table LUT is stored.

[0142] In this embodiment, after the input value and the output value of each data point are combined to obtain the preset color lookup table, the corresponding relationship between the preset screen brightness range and the preset color lookup table LUT can be stored.

[0143] For example, after the preset color lookup tables LUT are determined as the first LUT, the second LUT and the third LUT based on the specified screen brightness of 200nit, 400nit and 800nit respectively, the correspondence between the preset screen brightness ranges of 200nit, 400nit and 800nit and the corresponding preset color lookup tables LUT can be constructed (as shown in Table 2 above), and each correspondence can be stored.

[0144] As can be seen from the above description, this embodiment processes the input value of each data point in the initial color lookup table LUT based on a predefined target indication file and a specified screen brightness to obtain the output value of each data point, and combines the input value and output value of each data point to obtain the preset color lookup table, and then stores the correspondence between the preset screen brightness range and the preset color lookup table LUT. This can generate a preset color lookup table corresponding to the specified screen brightness, and construct a correspondence between the preset brightness range where the specified screen brightness is located and the corresponding preset color lookup table LUT, thereby laying the foundation for subsequently determining the LUT corresponding to the current screen brightness based on the correspondence, and processing the SDR image to be displayed based on the determined LUT. This can improve the utilization rate of the screen hardware of the electronic device, improve the display effect of the video, and thus improve the user experience.

[0145] Figure 4A This is a flowchart showing how to determine the output value of each data point according to an exemplary embodiment of the present disclosure; based on the above embodiment, this embodiment uses how to determine the output value of each data point as an example to illustrate.

[0146] In this embodiment, the target indication file may include gain map metadata (Gain Map Metadata), and a functional relationship between the pixel value of the HDR image, the pixel value of the SDR image, and a preset brightness enhancement multiple.

[0147] like Figure 4A As shown, the processing of the input value of each data point in the initial color lookup table LUT based on the predefined target instruction file and the specified screen brightness in the above step S301 to obtain the output value of each data point may include the following steps S401-S404:

[0148] In step S401, the linear brightness of the SDR image and the linear brightness of the HDR image are determined based on the grayscale of the SDR image and the grayscale of the HDR image respectively;

[0149] In step S402, a gain map of the SDR image is generated based on the gain map metadata, the linear brightness of the SDR image, and the linear brightness of the HDR image.

[0150] In step S403, the pixel value of the HDR image is determined based on the gain map, the pixel value of the SDR image, the preset brightness enhancement factor, and the functional relationship;

[0151] In step S404, the output value of each data point is determined based on the pixel value of the HDR image.

[0152] In some embodiments, before executing the above-mentioned step S403 of determining the pixel value of the HDR image based on the gain map, the pixel value of the SDR image, the preset brightness enhancement multiple and the functional relationship, it is also possible to first determine the preset playback brightness range to which the original playback brightness of the SDR video data belongs, and then determine the preset brightness enhancement multiple based on the preset playback brightness range, so as to accurately calculate the preset brightness enhancement multiple that matches the original playback brightness of the SDR video data, thereby improving the efficiency of subsequent LUT generation.

[0153] For example, the above-mentioned gain metadata may be shown in Table 3 below:

[0154] Table 3

[0155]

[0156]

[0157] The above-mentioned gain metadata complies with the XMP (Extensible Metadata Platform) standard, which can be used to define a method for encoding metadata into an image container. It is worth noting that "hdrgm" is the prefix of the XMP namespace of the gain metadata XMP extension.

[0158] Furthermore, the functional relationship between the pixel value of the HDR image, the pixel value of the SDR image, and the preset brightness enhancement factor can be based on the following equations (4-1) to (4-8):

[0159] HDR(x,y)=(SDR(x,y)+offset_sdr)*exp2(log_boost(x,y)*weight_factor)

[0160] -offset_hdr;(4-1)

[0161] In the above formula (4-1):

[0162] HDR(x,y) represents the pixel values ​​of the three-channel linear HDR image; SDR(x,y) represents the pixel values ​​of the three-channel linear SDR image; offset_sdr is the same as "hdrgm:OffsetSDR" in Table 3; offset_hdr is the same as "hdrgm:OffsetHDR" in Table 3; exp2(x) represents the exponential with base 2. log_boost(x,y) = gain_map_min*(1.0-log_recovery(x,y))+gain_map_max*

[0163] (log_recovery(x,y));(4-2)

[0164] In the above formula (4-2): gain_map_min is "hdrgm:GainMapMin" in Table 3; gain_map_max is "hdrgm:GainMapMax" in Table 3.

[0165] weight_factor=clamp(unclamped_weight_factor,0.0,1.0); (4-3)

[0166] In the above formula (4-3): clamp(x,a,b) means limiting x to the range [a,b].

[0167] unclamped_weight_factor=(log2(max_display_boost)-hdr_capacity_min)

[0168] / (hdr_capacity_max-hdr_capacity_min); (4-4)

[0169] In the above formula (4-4):

[0170] hdr_capacity_min is "hdrgm:HDRCapacityMin" in Table 3; log2(x) represents the logarithm with base 2; hdr_capacity_max is "hdrgm:HDRCapacityMax" in Table 3; max_display_boost represents "maximum display boost", which means the maximum available boost supported by the display at a given point in time. This value can change over time depending on device settings and other factors, such as ambient light conditions or the number of bright pixels on the screen. For example, if this value is 4.0, the screen can display pixels that are up to four times brighter than SDR white. This value can usually be set to greater than or equal to 1.0, indicating that the screen can display HDR white that is at least as bright as SDR white.

[0171] log_recovery(x,y)=(log2(pixel_gain(x,y)-map_min_log2) /

[0172] (map_max_log2-map_min_log2); (4-5)

[0173] pixel_gain(x,y)=(Yhdr(x,y)+offset_hdr) / (Ysdr(x,y)+offset_sdr);

[0174] (4-6)

[0175] map_min_log2=log2(min_content_boost); (4-7)

[0176] map_max_log2=log2(max_content_boost); (4-8)

[0177] In the above formulas (4-5) to (4-8):

[0178] Pixel_gain(x,y) represents the pixel value in the gainmap; Yhdr(x,y) represents the linear brightness of the HDR image; Ysdr(x,y) represents the linear brightness of the SDR image; min_content_boost represents "minimum content boost", based on which the brightness of the image displayed on the display of the electronic device can be limited to the minimum improvement relative to the brightness of the ordinary SDR presentation. For example, if the value is 0.5, then for any given pixel, the linear brightness of the displayed HDR presentation is at least 0.5 times the linear brightness of the SDR presentation. In this embodiment, the value can be set to be less than or equal to 1.0; max_content_boost represents "maximum content boost", based on which the brightness of the image displayed on the display of the electronic device can be limited to the maximum improvement relative to the brightness of the ordinary SDR presentation. For example, if the value is 4, then for any given pixel, the linear brightness of the displayed HDR presentation is at most 4 times the linear brightness of the SDR presentation. In this embodiment, the value can be set to be greater than 1.0.

[0179] It is worth noting that the above formulas (4-1) to (4-8) are explained using a single-channel gain map as an example. If a multi-channel gain map is required, the formula related to the single-channel attribute can be extended to each color channel. Furthermore, the conversion relationship between SDR (x, y) and Ysdr (x, y) and HDR (x, y) and Yhdr (x, y) can refer to the conversion relationship between grayscale and brightness of SDR images and HDR images in the relevant technology (such as the gamma formula of grayscale corresponding to brightness, etc.), which will not be described in detail in this embodiment.

[0180] For example, assuming the expected HDR brightness is 4000 nits, the maximum screen brightness of the electronic device is 1000 nits, and the original playback brightness of the HDR video is 200 nits, that is, the preset brightness enhancement factor is 5 times, then the corresponding brightness Ysdr(x,y) and Yhdr(x,y) can be determined based on the grayscale of the SDR image and the grayscale of the HDR image, respectively. Among them, the expected brightness of 4000 nits and the original playback brightness of 200 nits correspond to the maximum values ​​of Yhdr(x,y) and Ysdr(x,y) respectively (that is, the brightness when the grayscale is 255).

[0181] Then, Yhdr(x,y), Ysdr(x,y), offset_hdr and offset_sdr can be substituted into the above formula (4-6) to obtain the pixel value pixel_gain(x,y) in the gain map Gainmap.

[0182] Then, map_min_log2 and map_max_log2 are calculated according to equations (4-7) and (4-8), respectively, where min_content_boost = 1 and max_content_boost = 4000 / 200 = 20.

[0183] Based on this, log_recovery(x,y) can be calculated based on equation (4-5). Furthermore, log_boost(x,y) can be calculated based on equation (4-2). Where gain_map_min = 0, gain_map_max = log2(4000 / 200) = log2(20) = 4.322.

[0184] On the other hand, weight_factor can be calculated based on equations (4-4) to (4-3): wherein max_display_boost = 1000 / 200 = 5, hdr_capacity_min = 0, and hdr_capacity_max = log2(4000 / 200) = log2(20) = 4.322.

[0185] On this basis, the pixel values ​​SDR(x,y), log_boost(x,y), and weight_factor of the SDR image can be substituted into equation (4-1) to obtain the corresponding pixel values ​​HDR(x,y) of the HDR image, which are used as the output values ​​of each data point in the LUT to be generated. On this basis, the input and output values ​​of each data point can be combined to obtain the corresponding color lookup table LUT.

[0186] Similarly, when the maximum screen brightness of the electronic device is 500nit and 250nit respectively, the corresponding HDR(x,y) can also be calculated based on the above process, but max_display_boost needs to be modified accordingly, that is, in the case of 500nit, it is modified to "max_display_boost=500 / 200=2.5", and in the case of 250nit, it is modified to "max_display_boost=250 / 200=1.25", which can then be combined with the input value SDR(x,y) to form LUT2 and LUT3.

[0187] In other embodiments, in order to improve the generation efficiency of the LUT and ensure the use effect of the LUT, this embodiment can make the SDR initial playback brightness within a similar range share the same preset brightness enhancement multiple to generate the same LUT. (That is, if a new LUT is calculated based on each different SDR initial playback brightness, the generation efficiency of the LUT will be low, and the SDR initial playback brightness within a similar range shares the same preset brightness enhancement multiple to generate the same LUT, which can also achieve a better image conversion effect.) For example, when the SDR initial playback brightness is within the three preset playback brightness ranges of 0-300nit, 300-500nit, and 500-1000nit, it can correspond to 5 times, 2.5 times, and 1.25 times the preset brightness enhancement multiples, respectively (that is, the range of 0-300nit is based on 200nit, 300-500nit is based on 400nit, and 500-1000nit is based on 800nit, and then based on 1000 divided by the reference brightness in the corresponding range, the corresponding enhancement multiple can be obtained).

[0188] For example, Figure 4B is a schematic diagram of a common SDR video picture according to an exemplary embodiment of the related art; Figure 4C 2 is a schematic diagram showing a video image with an SDR initial playback brightness below 300 nit according to an exemplary embodiment of the present disclosure; Figure 4D 1 is a schematic diagram of a video screen with an SDR initial playback brightness ranging from 300 to 500 nits according to an exemplary embodiment of the present disclosure; Figure 4E FIG. 1 is a schematic diagram of a video screen with an SDR initial playback brightness in the range of 500 to 1000 nit according to an exemplary embodiment of the present disclosure. Figures 4B to 4E It can be seen that when an electronic device plays ordinary SDR video data, if the image display method in the related art is used, what will be displayed on the screen will be Figure 4B If the image display method of this embodiment is used, a suitable preset LUT can be selected based on the range of the initial brightness of the SDR image, and then each frame of the image to be displayed extracted from the SDR video data is processed based on the selected preset LUT to obtain a target image, and then the target image is displayed, so that it can be displayed on the screen. Figure 4C 、 Figure 4D or Figure 4E High dynamic range video footage is shown. Figure 4B and Figure 4C 、 Figure 4D or Figure 4EIt can be seen that the processed target image has a significant brightness improvement in areas such as the water surface, fence, and lights, presenting a high dynamic range effect, which is similar to the effect of HDR images.

[0189] It's worth noting that when the brightness of SDR video playback is below 200 nits, it can be played back with a 5x brightening HDR effect, meaning the same LUT can be used for image conversion. However, when the brightness of SDR video playback exceeds 200 nits, the 5x brightening effect will exceed the maximum brightness of the screen hardware, resulting in content above 200 nits not being able to scale with increasing screen brightness. To address this issue, you can also modify the hdrgm:GainMapMax parameter in Table 3. As an example, hdrgm:GainMapMax can be modified to 2.232 (i.e., log2(1000 / 200)=log2(5)) when the brightness is below 300nit, and to 1.232 (i.e., log2(1000 / 400)=log2(2.5)) when the brightness is in the range of 300-500nit, and to 0.232 (i.e., log2(1000 / 800)=log2(1.25)) when the brightness is in the range of 500-1000nit. In this way, after the brightness is increased to the limit of the screen hardware, the display effect can be optimized by modifying the display content.

[0190] As can be seen from the above description, this embodiment determines the linear brightness of the SDR image and the linear brightness of the HDR image based on the grayscale of the SDR image and the grayscale of the HDR image respectively, and generates a gain map of the SDR image based on the gain map metadata, the linear brightness of the SDR image and the linear brightness of the HDR image, and determines the pixel value of the HDR image based on the gain map, the pixel value of the SDR image, the preset brightness enhancement multiple and the functional relationship, and then determines the output value of each data point based on the pixel value of the HDR image. It is possible to subsequently combine the input value and output value of each data point to obtain the preset color lookup table, and by determining the preset playback brightness range to which the original playback brightness of the SDR video data belongs, and determining the preset brightness enhancement multiple based on the preset playback brightness range, the generation efficiency of the LUT can be improved and the use effect of the LUT can be ensured.

[0191] Figure 5 This is a flowchart showing how to save a screenshot when displaying the target image according to an exemplary embodiment of the present disclosure. Based on the above embodiment, this embodiment uses an example of how to save a screenshot when displaying the target image to illustrate.

[0192] It is worth noting that the operation of processing the SDR image to be displayed based on the preset color lookup table LUT in the above step S102 can be performed by the post-processing module of the video playback program APP. The processing effect of this part is usually not retained in the screenshot effect (that is, in accordance with Figure 1A In the process of playing SDR video in the embodiment shown, if you take a screenshot according to the screenshot method in the related art, you will still get a normal SDR image, and you will not get an image with HDR effect. That is, the video screenshot seen by the user will be different from the display effect of the target image, which will affect the user experience. In order to solve this problem, the present disclosure proposes this Figure 5 In the embodiment shown, a screenshot having the same display effect as the target image is saved when the target image is displayed.

[0193] like Figure 5 As shown, the image display method of this embodiment may further include saving a screenshot when displaying the target image based on the following steps S501-S503:

[0194] In step S501, in response to receiving a screenshot instruction when displaying the target image, the SDR image to be displayed is acquired.

[0195] In this embodiment, the electronic device may obtain the SDR image to be displayed in response to receiving a screenshot instruction when displaying the target image.

[0196] In step S502, a gain map of the SDR image to be displayed is generated based on a predefined target instruction file.

[0197] The target indication file may include standard information for instructing the rendering of a standard dynamic SDR image into an HDR range. For example, the target indication file may include gain map metadata, as well as a functional relationship between pixel values ​​of the HDR image, pixel values ​​of the SDR image, and a preset brightness enhancement factor. The gain map is used to store brightness difference data for rendering each pixel in the SDR image to be displayed into the HDR range.

[0198] The method for generating the above gain graph can refer to the above Figure 4A The method for generating the gain map in the illustrated embodiment will not be described in detail here.

[0199] In step S503, the target indication file, the gain map, and the SDR image to be displayed are saved as screenshots.

[0200] Furthermore, after saving the above screenshot, the electronic device may also, in response to receiving a display instruction for the screenshot, restore the target image based on the target indication file, the gain map and the SDR image to be displayed, and display the target image. The method of restoring the target image based on the target indication file, the gain map and the SDR image to be displayed can be referred to above. Figure 4A The calculation method of HDR(x,y) in the illustrated embodiment will not be described in detail here.

[0201] It is worth noting that the screenshots saved above can be files in Ultra HDR Image format, so the HDR display effect of the target image can be retained.

[0202] For example, the Ultra HDR Image can be composed of two JPEG files, where the first JPEG can be called the primary image, which can be an ordinary 8-bit image that stores the SDR image data (i.e., the SDR image to be displayed). The second JPEG is the gain map (GainMap) mentioned above, which stores data sufficient to render the SDR image data into the high dynamic range of HDR, or can be understood as the brightness difference at each pixel of the SDR image and the rendered HDR image.

[0203] Therefore, if the electronic device supports the Ultra HDR Image format, the target indication file (which may comply with the XMP specification and be in RDF / XML format) can be used to combine the main image and the gain map to render a high dynamic range image on the screen of the electronic device. The specific rendering method can be found in the explanation and description of the Ultra HDR Image format in the relevant art, and this embodiment does not limit this.

[0204] As can be seen from the above description, this embodiment obtains the SDR image to be displayed in response to receiving a screenshot instruction when displaying the target image, and generates a gain map of the SDR image to be displayed based on a predefined target indication file, and then saves the target indication file, the gain map and the SDR image to be displayed as a screenshot. This can achieve saving the screenshot when displaying the target image, and then can achieve subsequent response to receiving a display instruction for the screenshot, restoring the target image based on the target indication file, the gain map and the SDR image to be displayed, and displaying the target image, which can improve the display effect of the video screenshot, allowing the user to see the video screenshot with the same display effect as the target image, thereby improving the user experience.

[0205] Figure 6This is a block diagram of an image display device according to an exemplary embodiment of the present disclosure; the device of this embodiment can be configured in an electronic device such as a mobile phone, tablet computer, smart glasses, smart watch, etc. Figure 6 As shown, the apparatus may include: a video image extraction module 110, a target image acquisition module 120, and a target image display module 130, wherein:

[0206] The video image extraction module 110 is configured to extract an SDR image to be displayed from the SDR video data in response to obtaining the SDR video data to be played;

[0207] a target image acquisition module 120 for processing the SDR image to be displayed based on a preset color lookup table LUT in response to extracting the SDR image to be displayed to obtain a target image, wherein the preset color lookup table LUT corresponds to the current screen brightness of the electronic device, and the target image complies with the HDR standard;

[0208] The target image display module 130 is configured to display the target image based on the electronic device.

[0209] As can be seen from the above description, the device of this embodiment extracts the SDR image to be displayed from the SDR video data in response to obtaining the SDR video data to be played, and in response to the extraction of the SDR image to be displayed, processes the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to the current screen brightness of the electronic device, and the target image meets the HDR standard, and then the target image is displayed based on the electronic device. Since the target image that meets the HDR standard is obtained by utilizing the SDR image to be displayed in the SDR video to be played and the current screen brightness, the display of the target image can have an HDR display effect, which can improve the utilization rate of the screen hardware of the electronic device, avoid waste of hardware resources, and improve the display effect of the video, thereby improving the user experience.

[0210] Figure 7 This is a block diagram of another image display device according to an exemplary embodiment of the present disclosure; the device of this embodiment can be configured in an electronic device such as a mobile phone, a tablet computer, smart glasses, a smart watch, etc. Among them, the video image extraction module 210, the target image acquisition module 220 and the target image display module 230 are the same as the aforementioned Figure 6 The functions of the video image extraction module 110 , the target image acquisition module 120 , and the target image display module 130 in the illustrated embodiment are the same and are not described in detail herein.

[0211] In some embodiments, the apparatus may further include a lookup table determination module 240;

[0212] The lookup table determination module 240 may include:

[0213] a brightness range determining unit 241, configured to determine a preset screen brightness range to which the current screen brightness belongs;

[0214] The lookup table determining unit 242 is configured to determine the preset color lookup table LUT based on a pre-stored correspondence between the preset screen brightness range and the preset color lookup table LUT.

[0215] In some embodiments, the above apparatus may further include a relationship storage module 250;

[0216] The relationship storage module 250 may include:

[0217] an output value acquiring unit 251 for processing input values ​​of respective data points in the initial color lookup table LUT based on a predefined target instruction file and a specified screen brightness to obtain output values ​​of the respective data points, wherein the target instruction file includes standard information for instructing rendering of a standard dynamic SDR image into an HDR range, and the specified screen brightness includes a screen brightness specified within the preset screen brightness range;

[0218] A lookup table generating unit 252 is configured to combine the input value and the output value of each data point to obtain the preset color lookup table;

[0219] The relationship storage unit 253 is used to store the corresponding relationship between the preset screen brightness range and the preset color lookup table LUT.

[0220] In some embodiments, the target indication file includes gain metadata, and a functional relationship between the pixel value of the HDR image, the pixel value of the SDR image, and a preset brightness enhancement multiple;

[0221] The output value acquisition unit 251 is further configured to:

[0222] Determining the linear brightness of the SDR image and the linear brightness of the HDR image based on the grayscale of the SDR image and the grayscale of the HDR image respectively;

[0223] generating a gain map for the SDR image based on the gain map metadata, the linear luminance of the SDR image, and the linear luminance of the HDR image;

[0224] Determining a pixel value of an HDR image based on the gain map, the pixel value of the SDR image, a preset brightness enhancement factor, and the functional relationship;

[0225] An output value of each data point is determined based on a pixel value of the HDR image.

[0226] In some embodiments, the output value obtaining unit 251 is further configured to:

[0227] Determining a preset playback brightness range to which the original playback brightness of the SDR video data belongs;

[0228] The preset brightness enhancement multiple is determined based on the preset playback brightness range.

[0229] In some embodiments, the above apparatus may further include:

[0230] a screen brightness determination module 260, configured to determine screen brightness adjustment information of the electronic device based on the original playback brightness of the SDR video data;

[0231] Furthermore, the target image display module 230 is further configured to execute the operation of displaying the target image based on the electronic device in response to completing the adjustment of the current screen brightness of the electronic device based on the screen brightness adjustment information.

[0232] In some embodiments, the above apparatus may further include a screenshot saving module 270;

[0233] The screenshot saving module 270 includes:

[0234] An image acquisition unit 271 is configured to acquire the SDR image to be displayed in response to receiving a screenshot instruction when the target image is displayed;

[0235] a gain map generating unit 272 for generating a gain map for the SDR image to be displayed based on a predefined target indication file, wherein the target indication file includes standard information for instructing rendering of a standard dynamic SDR image into an HDR range, the target indication file includes gain map metadata, and a functional relationship between pixel values ​​of the HDR image, pixel values ​​of the SDR image, and a preset brightness enhancement factor, the gain map being used to store brightness difference data for rendering each pixel point in the SDR image to be displayed into the HDR range;

[0236] The screenshot saving unit 273 is used to save the target indication file, the gain map and the SDR image to be displayed as a screenshot.

[0237] In some embodiments, the above apparatus may further include a screenshot display module 280;

[0238] The screenshot display module 280 may include:

[0239] An image restoration unit 281 is configured to, in response to receiving a display instruction for the screenshot, restore the target image based on the target indication file, the gain map, and the SDR image to be displayed;

[0240] The screenshot display unit 282 is used to display the target image.

[0241] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0242] Figure 8 9 is a block diagram of an electronic device according to an exemplary embodiment. For example, device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0243] Reference Figure 8 , device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0244] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the image display method described above. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.

[0245] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0246] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 900.

[0247] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display panel and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0248] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), which is configured to receive external audio signals when the device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0249] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0250] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display panel and keypad of the device 900. The sensor assembly 914 can also detect changes in the position of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and temperature changes of the device 900. The sensor assembly 914 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0251] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0252] In an exemplary embodiment, the device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described image display method.

[0253] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions. The instructions can be executed by the processor 920 of the device 900 to perform the above-mentioned image display method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0254] In an exemplary embodiment, a computer program product including instructions is also provided. The instructions can be executed by the processor 920 of the device 900 to implement the above-mentioned image display method.

[0255] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0256] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An image display method, characterized in that: The method comprises: In response to acquiring the SDR video data currently to be played, extracting the SDR image to be displayed from the SDR video data; In response to extracting the SDR image to be displayed, processing the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to a current screen brightness of the electronic device, and the target image complies with the HDR standard; The target image is displayed based on the electronic device.

2. The method according to claim 1, characterized in that The method further includes determining the preset color lookup table LUT based on the following manner: Determining a preset screen brightness range to which the current screen brightness belongs; The preset color lookup table LUT is determined based on a pre-stored correspondence between the preset screen brightness range and the preset color lookup table LUT.

3. The method according to claim 2, characterized in that The method further includes storing the corresponding relationship based on the following manner: Processing input values ​​of each data point in the initial color lookup table LUT based on a predefined target instruction file and a specified screen brightness to obtain output values ​​of each data point, wherein the target instruction file includes standard information for instructing rendering of a standard dynamic SDR image to an HDR range, and the specified screen brightness includes a screen brightness specified within the preset screen brightness range; Combining the input value and the output value of each data point to obtain the preset color lookup table; The corresponding relationship between the preset screen brightness range and the preset color lookup table LUT is stored.

4. The method according to claim 3, characterized in that The target indication file includes gain image metadata, and a functional relationship between the pixel value of the HDR image, the pixel value of the SDR image, and a preset brightness enhancement multiple; The processing of the input value of each data point in the initial color lookup table LUT based on the predefined target instruction file and the specified screen brightness to obtain the output value of each data point includes: Determining the linear brightness of the SDR image and the linear brightness of the HDR image based on the grayscale of the SDR image and the grayscale of the HDR image respectively; generating a gain map for the SDR image based on the gain map metadata, the linear luminance of the SDR image, and the linear luminance of the HDR image; Determining a pixel value of an HDR image based on the gain map, the pixel value of the SDR image, a preset brightness enhancement factor, and the functional relationship; An output value of each data point is determined based on a pixel value of the HDR image.

5. The method according to claim 4, characterized in that Before determining the pixel value of the HDR image based on the gain map, the pixel value of the SDR image, the preset brightness enhancement factor, and the functional relationship, the method further includes: Determining a preset playback brightness range to which the original playback brightness of the SDR video data belongs; The preset brightness enhancement multiple is determined based on the preset playback brightness range.

6. The method according to claim 1, characterized in that The method further comprises: Determining screen brightness adjustment information of the electronic device based on the original playback brightness of the SDR video data; In response to the completion of adjusting the current screen brightness of the electronic device based on the screen brightness adjustment information, the operation of displaying the target image based on the electronic device is performed.

7. The method according to claim 1, characterized in that The method further comprises: In response to receiving a screenshot instruction while displaying the target image, acquiring the SDR image to be displayed; generating a gain map for the SDR image to be displayed based on a predefined target indication file, the target indication file including standard information for instructing rendering of a standard dynamic SDR image into an HDR range, the target indication file including gain map metadata, and a functional relationship between pixel values ​​of the HDR image, pixel values ​​of the SDR image, and a preset brightness enhancement factor, the gain map being used to store brightness difference data for rendering each pixel point in the SDR image to be displayed into the HDR range; The target indication file, the gain map, and the SDR image to be displayed are saved as screenshots.

8. The method according to claim 7, characterized in that The method further comprises: In response to receiving a display instruction for the screenshot, restoring the target image based on the target indication file, the gain map, and the SDR image to be displayed; The target image is displayed.

9. An image display device, characterized in that: The device comprises: a video image extraction module, configured to extract an SDR image to be displayed from the SDR video data in response to obtaining the SDR video data to be played; a target image acquisition module, configured to, in response to extracting the SDR image to be displayed, process the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to the current screen brightness of the electronic device, and the target image complies with the HDR standard; A target image display module is configured to display the target image based on the electronic device.

10. The device according to claim 9, characterized in that The apparatus further comprises a lookup table determination module; The lookup table determination module includes: a brightness range determining unit, configured to determine a preset screen brightness range to which the current screen brightness belongs; A lookup table determining unit is configured to determine the preset color lookup table LUT based on a pre-stored correspondence between the preset screen brightness range and the preset color lookup table LUT.

11. The device according to claim 10, characterized in that The device also includes a relationship storage module; The relationship storage module includes: an output value acquisition unit, configured to process an input value of each data point in the initial color lookup table LUT based on a predefined target instruction file and a specified screen brightness to obtain an output value of each data point, wherein the target instruction file includes standard information for instructing rendering of a standard dynamic SDR image to an HDR range, and the specified screen brightness includes a screen brightness specified within the preset screen brightness range; A lookup table generating unit, configured to combine the input value and the output value of each data point to obtain the preset color lookup table; The relationship storage unit is used to store the corresponding relationship between the preset screen brightness range and the preset color lookup table LUT.

12. The device according to claim 11, characterized in that The target indication file includes gain image metadata, and a functional relationship between the pixel value of the HDR image, the pixel value of the SDR image, and a preset brightness enhancement multiple; The output value acquisition unit is further configured to: Determining the linear brightness of the SDR image and the linear brightness of the HDR image based on the grayscale of the SDR image and the grayscale of the HDR image respectively; generating a gain map for the SDR image based on the gain map metadata, the linear luminance of the SDR image, and the linear luminance of the HDR image; Determining a pixel value of an HDR image based on the gain map, the pixel value of the SDR image, a preset brightness enhancement factor, and the functional relationship; An output value of each data point is determined based on a pixel value of the HDR image.

13. The device according to claim 12, characterized in that The output value acquisition unit is further configured to: Determining a preset playback brightness range to which the original playback brightness of the SDR video data belongs; The preset brightness enhancement multiple is determined based on the preset playback brightness range.

14. The device according to claim 9, characterized in that The device further comprises: a screen brightness determination module, configured to determine screen brightness adjustment information of the electronic device based on the original playback brightness of the SDR video data; The target image display module is further configured to execute the operation of displaying the target image based on the electronic device in response to completing the adjustment of the current screen brightness of the electronic device based on the screen brightness adjustment information.

15. The device according to claim 9, characterized in that The device also includes a screenshot saving module; The screenshot saving module includes: an image acquisition unit, configured to acquire the SDR image to be displayed in response to receiving a screenshot instruction when the target image is displayed; a gain map generating unit, configured to generate a gain map for the SDR image to be displayed based on a predefined target indication file, wherein the target indication file includes standard information for instructing rendering of a standard dynamic SDR image into an HDR range, the target indication file includes gain map metadata, and a functional relationship between pixel values ​​of the HDR image, pixel values ​​of the SDR image, and a preset brightness enhancement factor, the gain map being configured to store brightness difference data for rendering each pixel point in the SDR image to be displayed into the HDR range; A screenshot saving unit is used to save the target indication file, the gain map and the SDR image to be displayed as a screenshot.

16. The device according to claim 15, characterized in that The device also includes a screenshot display module; The screenshot display module includes: an image restoration unit, configured to, in response to receiving a display instruction for the screenshot, restore the target image based on the target indication file, the gain map, and the SDR image to be displayed; A screenshot display unit is used to display the target image.

17. An electronic device, characterized in that: The device comprises: a processor and a memory for storing a computer program; The processor is configured to, when executing the computer program, implement: In response to acquiring the SDR video data currently to be played, extracting the SDR image to be displayed from the SDR video data; In response to extracting the SDR image to be displayed, processing the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to a current screen brightness of the electronic device, and the target image complies with the HDR standard; The target image is displayed based on the electronic device.

18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the following is achieved: In response to acquiring the SDR video data currently to be played, extracting the SDR image to be displayed from the SDR video data; In response to extracting the SDR image to be displayed, processing the SDR image to be displayed based on a preset color lookup table LUT to obtain a target image, wherein the preset color lookup table LUT corresponds to a current screen brightness of the electronic device, and the target image complies with the HDR standard; The target image is displayed based on the electronic device.