Display method and device, electronic equipment, storage medium and program product

By obtaining and adjusting the brightness mapping relationship between cover frames and video frames in dynamic photos, the problem of brightness jump in dynamic photos under HDR display technology is solved, and the display effect is improved.

CN120050532APending Publication Date: 2025-05-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510197835.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

When using high dynamic range (HDR) display technology, switching from the cover photo to the video screen will produce a significant brightness jump, resulting in poor display effect when the electronic device plays dynamic photos.

Method used

By obtaining the brightness mapping relationship between the cover frame and the video frame in a dynamic photo, adjust the display brightness of the video frame to make it consistent with the brightness of the cover frame. The brightness mapping relationship includes the HDR and SDR display brightness mapping relationship.

Benefits of technology

Reduces the brightness jump when switching from cover photo to video screen, and improves the display effect of electronic devices on dynamic photos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050532A_ABST
    Figure CN120050532A_ABST
Patent Text Reader

Abstract

The invention discloses a display method and device, electronic equipment, a storage medium and a program product, and belongs to the technical field of electronic equipment. The method comprises the steps that a first dynamic image and first information are acquired, the first dynamic image comprises a cover frame and a first video, the first information represents the brightness mapping relation between the cover frame and a first video frame, and the first video frame is a video frame in the first video, and the shooting time interval between the first video frame and the cover frame is smaller than or equal to a first threshold value; adjusting the display brightness of at least one video frame in the first video based on the first information; wherein the brightness mapping relation comprises an HDR display brightness mapping relation and an SDR display brightness mapping relation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of electronic devices, and particularly relates to a display method, apparatus, electronic device, storage medium, and program product. Background Art

[0002] With the continuous development and innovation of digital imaging technology, a new file format called dynamic photo has emerged. A dynamic photo is a photo with a file format that encapsulates a cover photo and a video clip. In daily life and work, users often have the need to take and play dynamic photos.

[0003] Currently, when taking a dynamic photo, an electronic device captures a photo at a certain moment and video frames for a few seconds before and after the capture, and uses the photo as the cover photo of the dynamic photo. When playing a dynamic photo, the electronic device plays the cover photo and the video frames.

[0004] However, when a dynamic photo captured by an electronic device is displayed using High-Dynamic Range (HDR), during the process of the electronic device's screen displaying the dynamic photo, when switching from the cover photo to the video frames, an obvious brightness jump will occur. Thus, the display effect of the dynamic photo by the electronic device is poor. Summary of the Invention

[0005] The objective of the embodiments of this application is to provide a display method, apparatus, electronic device, storage medium, and program product, which can improve the display effect of dynamic photos by an electronic device.

[0006] In a first aspect, the embodiments of this application provide a display method, which includes: obtaining a first dynamic image and first information, where the first dynamic image includes a cover frame and a first video, and the first information represents the brightness mapping relationship between the cover frame and the first video frames, and the first video frames are video frames in the first video whose time interval from the capture time of the cover frame is less than or equal to a first threshold; adjusting the display brightness of at least one video frame in the first video based on the first information; where the brightness mapping relationship includes a High-Dynamic Range (HDR) display brightness mapping relationship and a Standard Dynamic Range (SDR) display brightness mapping relationship.

[0007] In a second aspect, an embodiment of the present application provides a display device, which includes an acquisition module and a processing module. The acquisition module is configured to acquire a first dynamic image and first information. The first dynamic image includes a cover frame and a first video. The first information represents a brightness mapping relationship between the cover frame and the first video frames. The first video frames are video frames in the first video whose shooting time interval from the cover frame is less than or equal to a first threshold. The processing module is configured to adjust the display brightness of at least one video frame in the first video based on the first information acquired by the acquisition module. Wherein, the brightness mapping relationship includes an HDR display brightness mapping relationship and an SDR display brightness mapping relationship.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, a first dynamic image and first information are acquired. The first dynamic image includes a cover frame and a first video. The first information represents a brightness mapping relationship between the cover frame and the first video frames. The first video frames are video frames in the first video whose shooting time interval from the cover frame is less than or equal to a first threshold. Based on the first information, the display brightness of at least one video frame in the first video is adjusted. Wherein, the brightness mapping relationship includes an HDR display brightness mapping relationship and an SDR display brightness mapping relationship. In this solution, since the first electronic device can adjust the display brightness of each video frame in the first video based on the brightness mapping relationship between the cover frame and the first video frames in the first video whose shooting time interval from the cover frame is less than or equal to the first threshold when playing the first dynamic image, the display brightness of each video frame in the first video is made consistent with the display brightness of the cover frame, thereby reducing the brightness jump when switching from the cover photo to the video screen. In this way, the display effect of the electronic device on dynamic photos is improved. Description of the Drawings

[0013] Figure 1 is one of the flowcharts of the display method provided by an embodiment of the present application;

[0014] Figure 2 is the second flowchart of the display method provided by an embodiment of the present application;

[0015] Figure 3 is the third flowchart of the display method provided by an embodiment of the present application;

[0016] Figure 4 is the fourth flowchart of the display method provided by an embodiment of the present application;

[0017] Figure 5 is the fifth flowchart of the display method provided by an embodiment of the present application;

[0018] Figure 6 is the sixth flowchart of the display method provided by an embodiment of the present application;

[0019] Figure 7 is the structural schematic diagram of the display device provided by an embodiment of the present application;

[0020] Figure 8 is the structural schematic diagram of the electronic device provided by an embodiment of the present application;

[0021] Figure 9 is the hardware structural schematic diagram of the electronic device provided by an embodiment of the present application. Detailed Embodiments

[0022] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, rather than all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0023] The terms "first", "second", etc. in the description and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order different from those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.

[0024] The terms "at least one (item)", "at least one of", etc. in this application refer to any one, any two or a combination of two or more of the objects it contains. For example, at least one (item) of a, b, and c can represent: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0025] The following will combine the accompanying drawings to detail the display method, device, electronic device, storage medium, and program product provided by the embodiments of this application through specific embodiments and their application scenarios.

[0026] The display method provided by the embodiments of this application can be applied to scenarios where the display brightness of the cover frame in the first dynamic image and the video frames of the first video is consistent. For example, when a mobile phone takes a dynamic photo (also known as Live Photo), this dynamic photo encapsulates a cover photo and a video. When playing this dynamic photo, it is required that the display brightness of the cover photo and the video screen is consistent.

[0027] Currently, in the case of using HDR display for dynamic photos captured by an electronic device, since the electronic device will use its built-in sensors and image processing algorithms to optimize the cover photo when taking the cover photo to ensure the best image quality of the cover photo. The video frame captured is directly taken from the camera preview screen, and the capture speed is relatively fast. Affected by the quality of the preview screen and the capture speed, the image quality of the video frame is relatively low. In addition, the use of HDR technology will expand the display brightness range of the dynamic photo, so that when the electronic device's screen switches from the cover photo to the video frame during the display of the dynamic photo, there will be an obvious brightness jump.

[0028] The display method provided by the embodiment of the present application obtains a first dynamic image and first information. The first dynamic image includes a cover frame and a first video. The first information represents the luminance mapping relationship between the cover frame and the first video frames. The first video frames are the video frames in the first video whose shooting time interval from the cover frame is less than or equal to a first threshold. Based on the first information, the display luminance of at least one video frame in the first video is adjusted. Among them, the luminance mapping relationship includes an HDR display luminance mapping relationship and an SDR display luminance mapping relationship. In this solution, since the first electronic device can adjust the display luminance of each video frame in the first video based on the luminance mapping relationship between the cover frame and the first video frames in the first video whose shooting time interval from the cover frame is less than or equal to the first threshold when playing the first dynamic image, the display luminance of each video frame in the first video is made consistent with the display luminance of the cover frame, thereby reducing the luminance jump when switching from the cover photo to the video picture. In this way, the display effect of the dynamic photo on the electronic device is improved.

[0029] The display method provided by the embodiment of the present application may have a display device as the execution subject. Exemplarily, the display device may be an electronic device or a component in the electronic device, such as an integrated circuit or a chip, which can be specifically determined according to actual usage requirements and is not limited in the embodiment of the present application. Hereinafter, taking the display device as an electronic device and the electronic device executing the display method as an example, the display method provided by the embodiment of the present application will be described exemplarily.

[0030] Figure 1 The flowchart of a display method provided by the embodiment of the present application is shown. As Figure 1 shown, the display method provided by the embodiment of the present application may include the following steps 201 and 202.

[0031] Step 201: The first electronic device obtains a first dynamic image and first information.

[0032] In the embodiment of the present application, the above-mentioned first dynamic image includes a cover frame and a first video.

[0033] In the embodiment of the present application, the above-mentioned first information represents the luminance mapping relationship between the above-mentioned cover frame and the first video frames.

[0034] In the embodiment of the present application, the above-mentioned first video frames are the video frames in the above-mentioned first video whose shooting time interval from the above-mentioned cover frame is less than or equal to a first threshold.

[0035] It should be noted that the above-mentioned first dynamic image is a new photo format that combines a static image and a video. The above-mentioned cover frame is the static part of the first dynamic image. The cover frame is a most representative moment selected from the first dynamic image as a preview or cover of the first dynamic image. The cover frame can be the image frame corresponding to the shooting moment, such as the image frame shot at the moment when the shooting button is clicked, or it can be the first frame of the first dynamic image, or it can also be the image frame with the best shooting effect in the first dynamic image. In the above-mentioned first dynamic image, the above-mentioned first video records the dynamic pictures and sounds in a short period of time before and after the shooting moment.

[0036] It can be understood that the above-mentioned shooting effects can include but are not limited to at least one of the following: light, composition, color, clarity, human actions, human expressions, etc.

[0037] Exemplarily, taking the first electronic device as a mobile phone and the user shooting fireworks as an example, assume that the user selects the dynamic photo shooting mode in the camera application of the mobile phone and clicks the shooting button at the moment when the fireworks bloom most completely and have the richest colors in the sky. Then the cover frame in the finally shot dynamic photo can be the image frame with the most complete fireworks bloom and the richest colors, and the first video can be the video frame recorded in a few seconds before and after the shooting moment, such as the video frame of the fireworks rising, blooming, and dissipating.

[0038] In the embodiments of the present application, the brightness mapping relationship between the above-mentioned cover frame and the first video frame refers to the brightness mapping rule followed when adjusting the display brightness of the first video frame to be consistent with the display brightness of the cover frame. Using this brightness mapping relationship can minimize the visual difference in brightness between the cover frame and the first video frame, thereby maintaining the consistency in brightness of the video or image sequence.

[0039] In the embodiments of the present application, the above-mentioned brightness mapping relationship can include the HDR display brightness mapping relationship and the SDR display brightness mapping relationship.

[0040] It should be noted that the above HDR display brightness refers to the brightness of the image presented based on HDR technology. HDR technology can provide a wider brightness range and higher color details, making the image closer to the real world seen by the human eye. HDR display devices can present a higher peak brightness than SDR devices. The brightness range of HDR display devices is between 0 and 1000 nits or higher. This wide brightness range enables HDR images to better display the details of highlights and shadows, enhancing contrast and color saturation. The above SDR display brightness refers to the brightness of the image presented based on SDR technology. SDR technology is a relatively traditional display technology used to describe the brightness range of display devices. SDR technology can provide a more real and vivid image display effect to enable users to obtain a better visual experience. The brightness range of SDR display devices is usually between 0 and 100 nits. Within this brightness range, SDR display devices can accurately display the details and colors of the image.

[0041] It can be understood that the smaller the time interval between the shooting time of the above first video frame and the shooting time of the above cover frame, the higher the similarity between the content of the first video frame and the content of the cover frame, and the better the effect of adjusting the display brightness of each video frame in the above first video based on the brightness mapping relationship between the first video frame and the cover frame.

[0042] Optionally, in the embodiment of the present application, the above first threshold may be 0.05 seconds.

[0043] Optionally, in the embodiment of the present application, in combination Figure 1 , such as Figure 2 shown, the above step 201 may be specifically implemented by the following step 201a.

[0044] Step 201a: The first electronic device obtains a first dynamic image and first information from the second electronic device.

[0045] Optionally, in the embodiment of the present application, a connection relationship may be established between the above first electronic device and the above second electronic device.

[0046] Optionally, in the embodiment of the present application, the establishment of the connection between the above first electronic device and the above second electronic device may include but is not limited to any one of the following: Bluetooth connection, wireless network connection, Universal Serial Bus (USB) connection, etc. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present application does not limit this.

[0047] Exemplarily, taking the case where a first electronic device obtains a first dynamic image and first information from a second electronic device through a certain application as an example, in this case, both the first electronic device and the second electronic device are connected to the network, and data transmission is carried out relying on the Internet, that is, the transmission of the first dynamic image and the first information is carried out relying on the Internet.

[0048] It can be understood that the above-mentioned first dynamic image can be the first dynamic image received by the first electronic device from the second electronic device. While receiving the first dynamic image from the second electronic device, the first electronic device can also receive first information related to the first dynamic image, and the first information encapsulates information corresponding to the brightness mapping relationship between the cover frame and the first video frame of the first dynamic image.

[0049] It should be noted that the specific implementation manner for the second electronic device to obtain the first information corresponding to the first dynamic image inside the second electronic device can be referred to the description of the following embodiments and will not be elaborated here.

[0050] In the embodiments of the present application, the first electronic device can obtain a first dynamic image and first information from the second electronic device. When playing the first dynamic image, the first electronic device can, based on the first information, adjust the display brightness of at least one video frame in the first video of the first dynamic image, so that the display brightness of each video frame in the first video is consistent with the display brightness of the cover frame, thereby reducing the brightness jump when switching from the cover photo to the video screen. In this way, the display effect of the dynamic photo from other electronic devices on the electronic device is improved.

[0051] Optionally, in the embodiments of the present application, in combination with Figure 1 , as Figure 3 shown, the above step 201 can be specifically implemented through the following steps 201b to 201d.

[0052] Step 201b: The first electronic device captures a first dynamic image.

[0053] Optionally, in the embodiments of the present application, the above-mentioned first electronic device can capture a first dynamic image through an image acquisition module.

[0054] Optionally, in the embodiments of the present application, the above-mentioned image acquisition module can include but is not limited to any one of the following: an infrared sensor, a lidar, a camera, etc. Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.

[0055] Step 201c: The first electronic device obtains the first brightness distribution information and the second brightness distribution information of the first dynamic image.

[0056] In the embodiments of the present application, the above first brightness distribution information characterizes the display brightness distribution of the above cover frame.

[0057] In the embodiments of the present application, the above second brightness distribution information characterizes the display brightness distribution of the above first video frame.

[0058] It can be understood that the above display brightness distribution refers to the brightness values and their distribution states of each part or pixel point in the cover frame or the first video frame.

[0059] In the embodiments of the present application, the above display brightness distribution includes HDR display brightness distribution and SDR display brightness distribution.

[0060] It can be understood that the above first brightness distribution information can characterize the HDR display brightness distribution and SDR display brightness distribution of the above cover frame. The above second brightness distribution information can characterize the HDR display brightness distribution and SDR display brightness distribution of the first video frame in the above first video.

[0061] Optionally, in the embodiments of the present application, the above cover frame includes an SDR image and a gain image. The “first electronic device obtains the first brightness distribution information of the first dynamic image” in the above step 201c can be specifically implemented by the following steps 201c1 and 201c2.

[0062] Step 201c1: The first electronic device performs an inverse transformation on the SDR image to obtain an SDR display brightness distribution.

[0063] Step 201c2: The first electronic device performs a synthesis process on the SDR image and the gain image to obtain an HDR display brightness distribution.

[0064] Exemplarily, if the cover frame includes an SDR image and a gain image, where the SDR image is an image with a standard dynamic range and the gain image stores the brightness and exposure data of the original picture, the first electronic device can perform an inverse Gamma transformation on the SDR image to obtain the SDR display brightness distribution 01_SDR of the cover frame. The first electronic device can also perform a synthesis process on the SDR image and the gain image to obtain the HDR display brightness distribution 01_HDR.

[0065] It can be understood that the Gamma inverse transformation is usually used to linearize an image, that is, to convert a non-linear image signal after Gamma correction back to a linear signal. Gamma correction is a non-linear mapping used to adjust the brightness distribution of an image. It is usually used to simulate the brightness perception characteristics of the human eye and to compensate for the non-linear characteristics of a display device. For an image after Gamma correction, the relationship between its brightness signal and the true radiance in the scene is no longer linear. The Gamma inverse transformation is the inverse process of Gamma correction and is used to convert an image signal after Gamma correction back to a linear signal. In image processing, linear signals are easier to process and analyze subsequently. In addition, a gain map can map the brightness range of SDR to the brightness range of HDR, thereby achieving dynamic adjustment of brightness. Therefore, by synthesizing and processing an SDR image and a gain image, an HDR display brightness distribution can be obtained.

[0066] Optionally, in the embodiments of the present application, the above cover frame includes an HDR image. The "first electronic device obtains first brightness distribution information of a first dynamic image" in step 201c can be specifically implemented by the following steps 201c3 and 201c4.

[0067] Step 201c3: The first electronic device performs image conversion on the HDR image to obtain an SDR display brightness distribution.

[0068] Step 201c4: The first electronic device performs electro-optical signal conversion on the HDR image to obtain an HDR display brightness distribution.

[0069] Exemplarily, if the cover frame includes an HDR image, the first electronic device can perform standard HDR2SDR image conversion on the HDR image to obtain an SDR display brightness distribution 01_SDR. The first electronic device can also perform electro-optical signal conversion on the HDR image to obtain an HDR display brightness distribution 01_HDR.

[0070] It can be understood that HDR2SDR conversion refers to the process of converting HDR images or videos into SDR images or videos. This process involves a series of technical processing to ensure that HDR content can be correctly and displayed with high quality on SDR devices. The specific steps of HDR2SDR conversion can include: Color gamut conversion: Since HDR content uses a wider color gamut while SDR content uses a narrower color gamut, it is necessary to convert the color gamut of HDR content to the color gamut supported by SDR content. Tone mapping: Tone mapping is a key step in HDR2SDR conversion. It involves compressing the high brightness range of HDR content into the brightness range that SDR content can represent, while trying to maintain the accuracy of colors and details. This process needs to consider the visual perception characteristics of the human eye to ensure that the converted SDR content is visually close to the original HDR content. Quantization and encoding: After converting HDR content into SDR content, quantization processing is also required to convert continuous brightness values into discrete brightness levels to adapt to the display capabilities of SDR devices. Finally, the converted SDR content is encoded for playback on standard display devices. In addition, the first electronic device converts the HDR image into an electro-optical signal, which means using the Electrical-Optical Transfer Function (EOTF) to convert the HDR image. EOTF is one of the key parameters in the HDR image display process, which determines the brightness and contrast of the image. It defines how the brightness values of the HDR image are converted into the light output values on the display.

[0071] It should be noted that the specific implementation method of "the first electronic device obtains the second brightness distribution information of the first dynamic image" in step 201c above, that is, obtaining the HDR display brightness distribution and SDR display brightness distribution of the first video frame in the first video, can refer to the description of related technologies and will not be elaborated here.

[0072] Step 201d, the first electronic device determines the first information based on the first brightness distribution information and the second brightness distribution information.

[0073] Optionally, in the embodiments of the present application, in combination with Figure 3 , as Figure 4 shown, step 201d above can be specifically implemented through the following step 201d1 and step 201d2.

[0074] Step 201d1, the first electronic device converts the first brightness distribution information into a first brightness cumulative distribution histogram and converts the second brightness distribution information into a second brightness cumulative distribution histogram.

[0075] Optionally, in the embodiments of the present application, the first electronic device may first statistically calculate a first luminance distribution histogram according to the first luminance distribution information, and then convert the first luminance distribution histogram into a first luminance cumulative distribution histogram.

[0076] Optionally, in the embodiments of the present application, the first electronic device may first statistically calculate a second luminance distribution histogram according to the second luminance distribution information, and then convert the second luminance distribution histogram into a second luminance cumulative distribution histogram.

[0077] Exemplarily, taking the first luminance distribution information as 01_SDR and 01_HDR, and the second luminance distribution information as 02_SDR and 02_HDR as an example, 01_SDR represents the SDR display luminance distribution of the cover frame, 01_HDR represents the HDR display luminance distribution of the cover frame, 02_SDR represents the SDR display luminance distribution of the first video frame, 02_HDR represents the HDR display luminance distribution of the first video frame. The first electronic device statistically calculates the luminance distribution histograms H1_SDR, H1_HDR, H2_SDR, and H2_HDR corresponding to 01_SDR, 01_HDR, 02_SDR, and 02_HDR respectively. The abscissa of the luminance distribution histogram is the light signal nit value, and the ordinate is the number of pixels. The first electronic device then converts the luminance distribution histograms H1_SDR, H1_HDR, H2_SDR, and H2_HDR into luminance cumulative distribution histograms CDF1_SDR, CDF1_HDR, CDF2_SDR, and CDF2_HDR respectively. The abscissa of the luminance cumulative distribution histogram is the light signal nit value, and the ordinate is the cumulative pixel distribution number.

[0078] Step 201d2: The first electronic device determines the first information based on the luminance values in the first luminance cumulative distribution histogram and the luminance values in the second luminance cumulative distribution histogram.

[0079] It should be noted that the abscissa of the luminance cumulative distribution histogram is the light signal nit value, and the ordinate is the cumulative pixel distribution number, that is, the sum of the number of pixels whose luminance values in the image fall within a certain nit range. The electronic device may convert the ordinate into a percentile based on the cumulative pixel distribution number to more intuitively represent the relative frequency of the luminance distribution.

[0080] In the embodiments of the present application, the first electronic device may determine the first information based on the luminance values in the first luminance cumulative distribution histogram and the luminance values in the second luminance cumulative distribution histogram corresponding to the same percentile.

[0081] Exemplarily, the first electronic device can respectively obtain the light signal nit value of the horizontal coordinate corresponding to CDF1_SDR and CDF2_SDR at the same percentile to determine the SDR brightness mapping relationship {N1_SDR(i), N2_SDR(i)} between the cover frame and the first video frame, wherein N1_SDR(i) is the light signal nit value of the horizontal coordinate corresponding to the i-th percentile in the SDR display brightness cumulative distribution histogram CDF1_SDR of the cover frame, and N2_SDR(i) is the light signal nit value of the horizontal coordinate corresponding to the i-th percentile in the SDR display brightness cumulative distribution histogram CDF2_SDR of the first video frame. The nit value of the light signal; and the nit value of the light signal of the horizontal axis corresponding to CDF1_HDR and CDF2_HDR at the same percentile, so as to determine the HDR brightness mapping relationship {N1_HDR(i), N2_HDR(i)} between the cover frame and the first video frame, wherein N1_HDR(i) is the nit value of the light signal of the horizontal axis corresponding to the i-th percentile in the HDR display brightness cumulative distribution histogram CDF1_HDR of the cover frame, and N2_HDR(i) is the nit value of the light signal of the horizontal axis corresponding to the i-th percentile in the HDR display brightness cumulative distribution histogram CDF2_HDR of the first video frame.

[0082] It should be noted that the first electronic device may also use other forms to represent the brightness mapping relationship between the cover frame and the first video frame, for example: function expression N1_HDR(i)=aN2_HDR(i)+b. The specific form may be determined according to the use requirements, and the present application embodiment does not limit this.

[0083] Optionally, in an embodiment of the present application, the first electronic device may respectively smooth the SDR brightness mapping relationship {N1_SDR(i), N2_SDR(i)} between the cover frame and the first video frame, and the HDR brightness mapping relationship {N1_HDR(i), N2_HDR(i)} between the cover frame and the first video frame, and store the smoothed SDR brightness mapping relationship and HDR brightness mapping relationship, that is, the first information, as metadata information in the first file.

[0084] It is understandable that smoothing is a technique for reducing noise and irregularities in data or images, which is mainly achieved through blurring, and its purpose is to reduce noise in data or images while retaining their overall trends and features as much as possible. In the embodiment of the present application, by smoothing the brightness mapping relationship, the brightness mapping relationship becomes smoother or continuous, which is conducive to improving the accuracy of subsequent adjustment of the display brightness of the video frame.

[0085] Step 202: The first electronic device adjusts the display brightness of at least one video frame in the first video based on the first information.

[0086] In the embodiments of the present application, the above at least one video frame may be all the video frames in the first video, or may also be some of the video frames in the first video.

[0087] Optionally, in the embodiments of the present application, the above partial video frames may be the video frames played by the first electronic device, or may be the video frames in the first video whose difference in display brightness from the cover frame is greater than or equal to a second threshold.

[0088] Optionally, in the embodiments of the present application, in combination Figure 1 , as Figure 5 shown, step 202 may be specifically implemented by the following step 202a and step 202b.

[0089] Step 202a: The first electronic device determines a first target display brightness value based on the first information and the HDR display brightness value of the second video frame.

[0090] In the embodiments of the present application, the second video frame is any one of the above at least one video frame.

[0091] Optionally, in the embodiments of the present application, the first electronic device may read the first information, obtain the HDR display brightness value of the second video frame, and determine the first target display brightness value based on the first information and the HDR display brightness value of the second video frame, that is, the target display brightness value of the second video frame.

[0092] Exemplarily, the first electronic device may read the SDR brightness mapping relationships {N1_SDR(i), N2_SDR(i)} between the cover frame and the first video frame and the HDR brightness mapping relationships {N1_HDR(i), N2_HDR(i)} between the cover frame and the first video frame from the first file.

[0093] In the embodiments of the present application, after the first electronic device determines the brightness mapping relationship between the cover frame and the first video frame, that is, the first information, the first electronic device may determine, based on the HDR display brightness value of any video frame in the first video, that is, the second video frame, a first target display brightness value that matches the HDR display brightness value in the brightness mapping relationship, for adjusting the final display brightness of the second video frame on the device.

[0094] Step 202b: The first electronic device adjusts the display brightness of the second video frame based on the first target display brightness value.

[0095] In the embodiments of the present application, after the first electronic device determines the first target display brightness value of the second video frame, the first electronic device may adjust the display brightness of the second video frame according to the first target display brightness value, that is, display the second video frame on the screen of the first electronic device corresponding to the first target display brightness value.

[0096] It should be noted that, taking the adjustment of one video frame (i.e., the second video frame above) in at least one video frame as an example, the specific solution for the first electronic device to adjust the display brightness of at least one video frame in step 202 above is described. For the adjustment of the display brightness of other video frames in the at least one video frame, the specific solution is the same as that of the above-mentioned second video frame, that is, the adjustment of the display brightness can also be achieved by executing the above-mentioned steps 202a and 202b.

[0097] The embodiment of the present application provides a display method. Since when the first electronic device plays the first dynamic image, it can adjust the display brightness of each video frame in the first video based on the brightness mapping relationship between the cover frame and the first video frames whose shooting time intervals with the cover frame are less than or equal to the first threshold, so that the display brightness of each video frame in the first video is consistent with the display brightness of the cover frame, thereby reducing the brightness jump when switching from the cover photo to the video screen. In this way, the display effect of the dynamic photo on the electronic device is improved.

[0098] Optionally, in the embodiment of the present application, in combination with Figure 1 , as Figure 6 shown, before step 202, the display method provided by the embodiment of the present application may further include the following steps 301 to 303.

[0099] Step 301: The first electronic device calculates an interpolation coefficient based on the HDR margin of the first electronic device.

[0100] In the embodiment of the present application, the above HDR margin is the ratio of the current screen brightness of the first electronic device to the screen reference white brightness, indicating the ability of the screen of the first electronic device to additionally increase brightness and contrast when displaying HDR content. This HDR margin depends on the hardware characteristics of the screen, the current display settings of the first electronic device, and the content being displayed.

[0101] It can be understood that the first electronic device can measure or estimate the HDR margin currently displayed on the screen through its display system or a dedicated sensor. When obtaining the HDR margin, various factors need to be considered, such as the maximum brightness of the screen of the first electronic device, the average brightness currently displayed, the brightness distribution of the content, etc.

[0102] In the embodiment of the present application, based on the obtained HDR margin, the first electronic device can calculate an interpolation coefficient, which is used to adjust the display brightness of the above cover frame to ensure that while maintaining the image quality, the HDR capability of the screen is fully utilized.

[0103] Exemplarily, in the embodiments of the present application, after the first electronic device obtains the HDR headroom, the interpolation coefficient can be calculated using the following formula (1):

[0104] w = min(log 2 (headroom) / (log 2 (N1_HDR(end) / N1_SDR(end))), 1.0); (1)

[0105] Wherein, w represents the interpolation coefficient, headroom represents the HDR headroom, N1_HDR(end) represents the light signal nit value corresponding to the maximum percentile in the luminance cumulative distribution histogram corresponding to the HDR display luminance distribution of the cover frame, and N1_SDR(end) represents the light signal nit value corresponding to the maximum percentile in the luminance cumulative distribution histogram corresponding to the SDR display luminance distribution of the cover frame.

[0106] Step 302: The first electronic device determines the second target display luminance of the cover frame based on the interpolation coefficient.

[0107] Optionally, in the embodiments of the present application, the first electronic device can calculate the final display luminance of the cover frame on the screen of the electronic device after considering the influence of the HDR headroom based on the interpolation coefficient.

[0108] Exemplarily, in the embodiments of the present application, the electronic device can calculate the final display luminance of the cover frame using the following formula (2):

[0109] N1_O(i) = N1_HDR(i) × w + N1_SDR(i) × (1 - w); (2)

[0110] Wherein, N1_O(i) represents the final display luminance of the cover frame, that is, the second target display luminance of the cover frame, N1_HDR(i) represents the light signal nit value corresponding to the i-th percentile in the luminance cumulative distribution histogram corresponding to the HDR display luminance distribution of the cover frame, and N1_SDR(i) represents the light signal nit value corresponding to the i-th percentile in the luminance cumulative distribution histogram corresponding to the SDR display luminance distribution of the cover frame.

[0111] Step 303: The first electronic device updates the first information based on the second target display luminance.

[0112] Optionally, in the embodiments of the present application, the first electronic device can replace N1_HDR(i) in the HDR luminance mapping relationship {N1_HDR(i), N2_HDR(i)} with the calculated second target display luminance N1_O(i) to obtain the updated luminance mapping relationship, that is, update the first information.

[0113] Optionally, in the embodiments of the present application, the first electronic device may also use the calculated second target display brightnesses N1_O(i) and N2_O(i) to generate a new brightness mapping relationship {N1_O(i), N2_O(i)}, where N2_O(i) is equal to N2_HDR(i), and update this brightness mapping relationship to the first information to implement the update of the first information.

[0114] Optionally, in the embodiments of the present application, after the first electronic device updates the first information, the first electronic device may use the following formula (3) to calculate the final display brightness of any video frame E2 in the first video:

[0115] N2 = interp1(N2_O, N1_O, E2_EOTF); (3)

[0116] Wherein, N2 represents the final display brightness of the video frame E2, that is, the above-mentioned first target display brightness value, N2_O is consistent with N2_HDR(i), N1_O represents the final display brightness of the cover frame, and E2_EOTF represents the brightness value obtained after performing EOTF on the video frame E2.

[0117] It should be noted that the interp1 function is a one-dimensional interpolation function in MATLAB, which is used to perform interpolation calculations between given data points. In this specific expression, it is used to adjust or transform another set of data, that is, the brightness value of E2_EOTF, according to a set of known input-output relationships, that is, the relationship between N2_O and N1_O. The following is an explanation of each part of formula (3):

[0118] interp1: A one-dimensional linear interpolation function in MATLAB. Its basic usage is interp1(X, Y, Xq), where X and Y are the abscissa and ordinate of known data points, Xq is the point for which interpolation calculation is required, and the function returns the interpolation result corresponding to Xq.

[0119] N2_O: Represents a set of known brightness values or output values corresponding to the input value N1_O. In the above embodiments, N2_O and N1_O constitute a brightness mapping relationship {N1_O(i), N2_O(i)}, that is, given a value of N1_O, the electronic device can determine the corresponding value of N2_O according to this brightness mapping relationship.

[0120] N1_O: Represents another set of known input values corresponding to N2_O.

[0121] E2_EOTF: It represents the data set for which brightness conversion or adjustment is required. These data are the brightness values of the video frames in the first video to be played, and need to be adjusted according to the relationship between N2_O and N1_O. EOTF is the electro-optical transfer function, which is usually used to describe the conversion process from a digital video signal to display brightness. E2_EOTF represents the brightness value obtained after subjecting video frame E2 to a certain EOTF process.

[0122] It can be understood that the expression interp1(N2_O, N1_O, E2_EOTF) represents interpolating each brightness value in E2_EOTF according to the mapping relationship between N2_O and N1_O to obtain the converted brightness value, that is, the final display brightness value of video frame E2 of the first video on the screen of the electronic device, which is also the above-mentioned first target display brightness value. Thus, the first electronic device can adjust the display brightness of video frame E2 based on this first target display brightness value. This process can be understood as, for each brightness value in E2_EOTE, finding the closest value in N2_O, and then based on the brightness mapping relationship, finding the corresponding value in N1_O according to this closest value, and this corresponding value is the converted brightness value, that is, the final display brightness value of video frame E2 of the first video on the screen of the electronic device.

[0123] It should be noted that when the first electronic device executes the above steps 301 to 303, the first information in the above step 202 is the updated first information, that is, the updated first information obtained through steps 301 to 303.

[0124] In the embodiments of the present application, the first electronic device can link the display of the cover frame and the video frame in the HDR dynamic image, and consider the HDR margin of the first electronic device, that is, take into account the real-time display ability of the first electronic device and the industry standard of the HDR dynamic image, which can greatly improve the consistency of the brightness of the cover frame and the video frame during playback. At the same time, it is possible to generate metadata based on the result by statistical means without changing the content of the cover frame and the video frame themselves at the shooting end, that is, the first information representing the brightness mapping relationship between the cover frame and the video frame. The system complexity is low, the algorithm is lightweight, it is easy to implement, and the first electronic device can generate a brightness mapping curve according to the metadata, similar to the current dynamic HDR video method, with simple implementation and low overhead.

[0125] It should be noted that the above various method embodiments, or various possible implementation manners in each method embodiment, can be executed independently, or any two or more of them can be combined with each other, which can be specifically determined according to actual usage requirements. Some embodiments of the present application do not limit this.

[0126] The display method provided by the embodiments of the present application may have a display device as the execution subject. In the embodiments of the present application, taking the display device as an example to execute the display method, the display device provided by the embodiments of the present application is described.

[0127] Figure 7 Fig. shows a possible structural schematic diagram of a display device involved in some embodiments of the present application. As Figure 7 shown, the display device 20 may include: an acquisition module 21 and a processing module 22. The acquisition module 21 is configured to acquire a first dynamic image and first information. The first dynamic image includes a cover frame and a first video. The first information represents the brightness mapping relationship between the cover frame and the first video frame. The first video frame is a video frame in the first video whose shooting time interval from the cover frame is less than or equal to a first threshold. The processing module 22 is configured to adjust the display brightness of at least one video frame in the first video based on the first information acquired by the acquisition module 21. Among them, the brightness mapping relationship includes an HDR display brightness mapping relationship and an SDR display brightness mapping relationship.

[0128] In a possible implementation manner, the above-mentioned acquisition module 21 is specifically configured to acquire the above-mentioned first dynamic image and the above-mentioned first information from a second electronic device.

[0129] In a possible implementation manner, the above-mentioned acquisition module 21 is specifically configured to capture the above-mentioned first dynamic image; and acquire first brightness distribution information and second brightness distribution information of the first dynamic image. The first brightness distribution information represents the display brightness distribution of the cover frame, and the second brightness distribution information represents the display brightness distribution of the first video frame. And determine the above-mentioned first information based on the first brightness distribution information and the second brightness distribution information. Among them, the display brightness distribution includes an HDR display brightness distribution and an SDR display brightness distribution.

[0130] In a possible implementation manner, the above-mentioned acquisition module 21 is specifically configured to convert the above-mentioned first brightness distribution information into a first brightness cumulative distribution histogram, and convert the above-mentioned second brightness distribution information into a second brightness cumulative distribution histogram. And determine the above-mentioned first information based on the brightness values in the first brightness cumulative distribution histogram and the brightness values in the second brightness cumulative distribution histogram.

[0131] In a possible implementation manner, the above-mentioned cover frame includes an SDR image and a gain image. The above-mentioned acquisition module 21 is specifically configured to perform an inverse transformation on the SDR image to obtain an SDR display brightness distribution. And perform a synthesis process on the SDR image and the gain image to obtain an HDR display brightness distribution.

[0132] In a possible implementation, the above-mentioned cover frame includes an HDR image. The obtaining module 21 is specifically configured to perform image conversion on the HDR image to obtain an SDR display brightness distribution; and perform electro-optical signal conversion on the HDR image to obtain an HDR display brightness distribution.

[0133] In a possible implementation, the above-mentioned processing module 22 is specifically configured to determine a first target display brightness value based on the above-mentioned first information and the HDR display brightness value of the second video frame; and adjust the display brightness of the second video frame based on the first target display brightness value; wherein the second video frame is any one of the at least one video frame.

[0134] In a possible implementation, the above-mentioned processing module 22 is further configured to calculate an interpolation coefficient based on the HDR margin of the display device 20 before adjusting the display brightness of at least one video frame in the first video based on the above-mentioned first information; and determine a second target display brightness of the above-mentioned cover frame based on the interpolation coefficient; and update the above-mentioned first information based on the second target display brightness.

[0135] The embodiment of the present application provides a display device. Since when the display device plays the first dynamic image, it can adjust the display brightness of each video frame in the first video based on the brightness mapping relationship between the cover frame and the first video frame in the first video whose shooting time interval from the cover frame is less than or equal to the first threshold, so that the display brightness of each video frame in the first video is consistent with the display brightness of the cover frame, thereby reducing the brightness jump when switching from the cover photo to the video picture. In this way, the display effect of the dynamic photo on the display device is improved.

[0136] The display device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., or may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0137] The display device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0138] The display device provided by the embodiments of the present application can implement each process implemented by each of the above-mentioned display methods. To avoid repetition, it will not be elaborated here.

[0139] Optionally, as Figure 8 shown, the embodiments of the present application further provide an electronic device 800, including a processor 801 and a memory 802. A program or instruction that can run on the processor 801 is stored on the memory 802. When the program or instruction is executed by the processor 801, it implements each step of each of the above-mentioned image display method embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0140] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0141] Figure 9 A schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.

[0142] The electronic device 100 includes, but is not limited to, components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc.

[0143] Those skilled in the art can understand that the electronic device 100 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0144] Wherein, the above-mentioned processor 110 is used to obtain a first dynamic image and a first piece of information. The first dynamic image includes a cover frame and a first video. The first piece of information characterizes the luminance mapping relationship between the cover frame and the first video frame. The first video frame is a video frame in the first video whose shooting time interval from the cover frame is less than or equal to a first threshold. The processor 110 is further used to adjust the display luminance of at least one video frame in the first video based on the first piece of information; wherein, the luminance mapping relationship includes an HDR display luminance mapping relationship and an SDR display luminance mapping relationship.

[0145] Optionally, the above-mentioned radio frequency unit 101 is used to obtain the above-mentioned first dynamic image and the above-mentioned first piece of information from a second electronic device.

[0146] Optionally, the above-mentioned processor 110 is specifically used to shoot to obtain the above-mentioned first dynamic image; and obtain first luminance distribution information and second luminance distribution information of the first dynamic image. The first luminance distribution information characterizes the display luminance distribution of the cover frame, and the second luminance distribution information characterizes the display luminance distribution of the first video frame; and determine the above-mentioned first piece of information based on the first luminance distribution information and the second luminance distribution information; wherein, the display luminance distribution includes an HDR display luminance distribution and an SDR display luminance distribution.

[0147] Optionally, the above-mentioned processor 110 is specifically used to convert the above-mentioned first luminance distribution information into a first luminance cumulative distribution histogram, and convert the above-mentioned second luminance distribution information into a second luminance cumulative distribution histogram; and determine the above-mentioned first piece of information based on the luminance values in the first luminance cumulative distribution histogram and the luminance values in the second luminance cumulative distribution histogram.

[0148] Optionally, the above-mentioned cover frame includes an SDR image and a gain image. The above-mentioned processor 110 is specifically configured to perform an inverse transformation on the SDR image to obtain an SDR display brightness distribution; and perform a synthesis process on the SDR image and the gain image to obtain an HDR display brightness distribution.

[0149] Optionally, the above-mentioned cover frame includes an HDR image. The above-mentioned processor 110 is specifically configured to perform an image conversion on the HDR image to obtain an SDR display brightness distribution; and perform an electro-optical signal conversion on the HDR image to obtain an HDR display brightness distribution.

[0150] Optionally, the above-mentioned processor 110 is specifically configured to determine a first target display brightness value based on the above-mentioned first information and the HDR display brightness value of the second video frame; and adjust the display brightness of the second video frame based on the first target display brightness value; wherein the second video frame e is any one of the above-mentioned at least one video frame.

[0151] Optionally, before adjusting the display brightness of at least one video frame in the above-mentioned first video based on the above-mentioned first information, the above-mentioned processor 110 is further configured to calculate an interpolation coefficient based on the HDR margin of the electronic device 100; and determine a second target display brightness of the above-mentioned cover frame based on the interpolation coefficient; and update the above-mentioned first information based on the second target display brightness.

[0152] The embodiment of the present application provides an electronic device. Since when the electronic device plays the first dynamic image, it can adjust the display brightness of each video frame in the first video based on the brightness mapping relationship between the cover frame and the first video frame in the first video whose shooting time interval from the cover frame is less than or equal to the first threshold, so that the display brightness of each video frame in the first video is consistent with the display brightness of the cover frame, thereby reducing the brightness jump when switching from the cover photo to the video picture. In this way, the display effect of the dynamic photo of the electronic device is improved.

[0153] The electronic device provided by the embodiment of the present application can implement each process implemented by the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here. The beneficial effects of various implementation manners in this embodiment can specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiment. To avoid repetition, it will not be elaborated here.

[0154] It should be understood that in the embodiments of the present application, the input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes the image data of static pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. The other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.

[0155] The memory 109 can be used to store software programs and various data. The memory 109 mainly includes a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 109 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.

[0156] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor may not be integrated into the processor 110 either.

[0157] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above-mentioned display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0158] Among them, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk, or optical disc, etc.

[0159] The embodiment of the present application further provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a program or instruction to implement each process of the above-mentioned display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0160] It should be understood that the chip mentioned in the embodiment of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0161] The embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above-mentioned display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0162] It should be noted that in this document, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, article or device comprising such element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0163] From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to enable a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.

[0164] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Those of ordinary skill in the art, under the inspiration of the present application and without departing from the spirit and scope protected by the claims of the present application, can still make many forms, all of which fall within the protection scope of the present application.

Claims

1. A display method, characterized in that: Applicable to a first electronic device, comprising: Acquire a first dynamic image and first information, where the first dynamic image includes a cover frame and a first video, the first information represents a brightness mapping relationship between the cover frame and the first video frame, and the first video frame is a video frame in the first video whose shooting time interval with the cover frame is less than or equal to a first threshold; Based on the first information, adjusting the display brightness of at least one video frame in the first video; The brightness mapping relationship includes a high dynamic range HDR display brightness mapping relationship and a standard dynamic range SDR display brightness mapping relationship.

2. The method according to claim 1, characterized in that The obtaining of the first dynamic image and the first information includes: The first dynamic image and the first information are acquired from a second electronic device.

3. The method according to claim 1, characterized in that The obtaining of the first dynamic image and the first information includes: capturing and obtaining the first dynamic image; Acquire first brightness distribution information and second brightness distribution information of the first dynamic image, wherein the first brightness distribution information represents the display brightness distribution of the cover frame, and the second brightness distribution information represents the display brightness distribution of the first video frame; determining the first information based on the first brightness distribution information and the second brightness distribution information; The display brightness distribution includes HDR display brightness distribution and SDR display brightness distribution.

4. The method according to claim 3, characterized in that The determining the first information based on the first brightness distribution information and the second brightness distribution information includes: Converting the first brightness distribution information into a first brightness cumulative distribution histogram, and converting the second brightness distribution information into a second brightness cumulative distribution histogram; The first information is determined based on the brightness values ​​in the first brightness cumulative distribution histogram and the brightness values ​​in the second brightness cumulative distribution histogram.

5. The method according to claim 3, characterized in that: The cover frame includes an SDR image and a gain image; The acquiring first brightness distribution information of the first dynamic image includes: Performing an inverse transformation on the SDR image to obtain an SDR display brightness distribution; The SDR image and the gain image are synthesized to obtain an HDR display brightness distribution.

6. The method according to claim 3, characterized in that The cover frame includes an HDR image; The acquiring first brightness distribution information of the first dynamic image includes: Performing image conversion on the HDR image to obtain SDR display brightness distribution; The HDR image is subjected to electro-optical signal conversion to obtain HDR display brightness distribution.

7. The method according to claim 1, characterized in that The adjusting, based on the first information, the display brightness of at least one video frame in the first video includes: Determine a first target display brightness value based on the first information and the HDR display brightness value of the second video frame; Based on the first target display brightness value, adjusting the display brightness of the second video frame; The second video frame is any one of the at least one video frame.

8. The method according to claim 1, characterized in that Before adjusting the display brightness of at least one video frame in the first video based on the first information, the method further includes: calculating an interpolation coefficient based on an HDR margin of the first electronic device; Based on the interpolation coefficient, determining a second target display brightness of the cover frame; The first information is updated based on the second target display brightness.

9. A display device, characterized in that: include: Acquisition module and processing module; The acquisition module is used to acquire a first dynamic image and first information, wherein the first dynamic image includes a cover frame and a first video, the first information represents a brightness mapping relationship between the cover frame and the first video frame, and the first video frame is a video frame in the first video whose shooting time interval with the cover frame is less than or equal to a first threshold; The processing module is used to adjust the display brightness of at least one video frame in the first video based on the first information acquired by the acquisition module; Among them, the brightness mapping relationship includes an HDR display brightness mapping relationship and an SDR display brightness mapping relationship.

10. The device according to claim 9, characterized in that The acquisition module is specifically used to acquire the first dynamic image and the first information from the second electronic device.

11. The device according to claim 9, characterized in that The acquisition module is specifically used to capture and obtain the first dynamic image; and Acquire first brightness distribution information and second brightness distribution information of the first dynamic image, wherein the first brightness distribution information represents the display brightness distribution of the cover frame, and the second brightness distribution information represents the display brightness distribution of the first video frame; as well as, determining the first information based on the first brightness distribution information and the second brightness distribution information; The display brightness distribution includes HDR display brightness distribution and SDR display brightness distribution.

12. The device according to claim 11, characterized in that The acquisition module is specifically used to convert the first brightness distribution information into a first brightness cumulative distribution histogram, and convert the second brightness distribution information into a second brightness cumulative distribution histogram; and, The first information is determined based on the brightness values ​​in the first brightness cumulative distribution histogram and the brightness values ​​in the second brightness cumulative distribution histogram.

13. The device according to claim 11, characterized in that The cover frame includes an SDR image and a gain image; The acquisition module is specifically used to perform inverse transformation on the SDR image to obtain SDR display brightness distribution; and The SDR image and the gain image are synthesized to obtain an HDR display brightness distribution.

14. The device according to claim 11, characterized in that The cover frame includes an HDR image; The acquisition module is specifically used to perform image conversion on the HDR image to obtain SDR display brightness distribution; and The HDR image is subjected to electro-optical signal conversion to obtain HDR display brightness distribution.

15. The device according to claim 9, characterized in that The processing module is specifically configured to determine a first target display brightness value based on the first information and the HDR display brightness value of the second video frame; and Based on the first target display brightness value, adjusting the display brightness of the second video frame; The second video frame is any one of the at least one video frame.

16. The device according to claim 9, characterized in that The processing module is further configured to calculate an interpolation coefficient based on an HDR margin of the display device before adjusting the display brightness of at least one video frame in the first video based on the first information; as well as, determining a second target display brightness of the cover frame based on the interpolation coefficient; and The first information is updated based on the second target display brightness.

17. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the display method according to any one of claims 1 to 8 are implemented.

18. A computer-readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the display method according to any one of claims 1 to 8 are implemented.

19. A computer program product, characterized in that The program product is stored in a storage medium, and the program product is executed by at least one processor to implement the display method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Display method and apparatus, and electronic device, storage medium and program product

    WO2026175354A1