Picture brightness adjustment method and related product

By updating image metadata with ambient light and screen backlight brightness values, adaptive brightness adjustment is achieved, solving the problem of poor image display under different ambient light conditions and improving the user experience.

CN122201200APending Publication Date: 2026-06-12XIAOHONGSHU TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XIAOHONGSHU TECH CO LTD
Filing Date
2026-03-18
Publication Date
2026-06-12

Smart Images

  • Figure CN122201200A_ABST
    Figure CN122201200A_ABST
Patent Text Reader

Abstract

The application relates to a picture brightness adjustment method and related products. The picture brightness adjustment method comprises the following steps: acquiring first metadata of a target picture, wherein the first metadata is used for indicating that the target picture is displayed according to original brightness of the target picture; acquiring a target ambient light brightness value and / or a target screen backlight brightness value; updating the first metadata according to the target ambient light brightness value and / or the target screen backlight brightness value to obtain second metadata, wherein the second metadata is used for indicating that the target picture is displayed according to adaptive brightness, and the adaptive brightness matches the target ambient light brightness value and / or the target screen backlight brightness value. By using the above picture brightness adjustment method, the picture can be displayed at the brightness that is adapted to the environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image display, and in particular to a method for adjusting image brightness and related products. Background Technology

[0002] In the field of image display, the brightness of an image directly affects its display quality, and consequently, the user's viewing experience. Traditional image display methods typically render images at their original brightness. However, when the original brightness is too high or too low, the display quality may be poor. Similarly, the display quality may also be poor in environments that are too dark or too bright. Therefore, it is necessary to propose an image brightness adjustment method that adapts to the environment, allowing images to be displayed at a brightness level suitable for the surrounding environment. Summary of the Invention

[0003] Therefore, it is necessary to address the aforementioned technical problems by providing an image brightness adjustment method and related products that can adapt to the environment, enabling images to be displayed with brightness levels suitable for the environment. These related products include image brightness adjustment devices, computer equipment, computer-readable storage media, and computer program products.

[0004] Firstly, this application provides a method for adjusting image brightness, the method comprising: Obtain first metadata of the target image, wherein the first metadata is used to instruct the target image to be displayed according to its original brightness; Obtain the target ambient light brightness value and / or the target screen backlight brightness value; The first metadata is updated based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata. The second metadata is used to indicate that the target image is displayed according to adaptive brightness, which is matched with the target ambient light brightness value and / or the target screen backlight brightness value.

[0005] Using the image brightness adjustment method provided in the first aspect, firstly, the first metadata of the target image is obtained, along with the target ambient light brightness value and / or the target screen backlight brightness value. The first metadata is used to instruct the target image to be displayed at its original brightness. That is, the first metadata indicates the brightness of the target image when it is displayed. Ambient light brightness and screen backlight brightness are two context parameters used to indicate the environment in which the target image is displayed. The target ambient light brightness value and the target screen backlight brightness value are the values ​​of these two context parameters. Based on the target ambient light brightness value and / or the target screen backlight brightness value, the first metadata is updated to obtain second metadata. As can be seen from the function of the first metadata, the second metadata also indicates the brightness of the target image when it is displayed. Since the second metadata is determined based on the target ambient light brightness value and / or the target screen backlight brightness value, it can instruct the target image to be displayed at an adaptive brightness that matches the target ambient light brightness value and / or the target screen backlight brightness value. Since the target ambient light brightness value and the target screen backlight brightness value are the values ​​of two context parameters used to indicate the environment in which the target image is displayed, the second metadata can instruct the target image to be displayed at a brightness adapted to the environment. Based on this, by obtaining the second metadata through this image brightness adjustment method, it is possible to achieve adaptive adjustment of the brightness of the target image during display, and to enable the target image to be displayed with a brightness that adapts to the environment.

[0006] In one embodiment, updating the first metadata based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata includes: Based on the brightness information and preset rules contained in the first metadata, the brightness configuration information of the target image is determined. The brightness configuration information includes ambient light mapping information and screen backlight mapping information. The ambient light mapping information describes the mapping relationship between a preset ambient light brightness value and a first adjustment ratio. When the original brightness is adjusted to display the target image using the first adjustment ratio, the brightness of the target image at that time matches the preset ambient light brightness value. The screen backlight mapping information describes the mapping relationship between a preset screen backlight brightness value and a second adjustment ratio. When the original brightness is adjusted to display the target image using the second adjustment ratio, the brightness of the target image at that time matches the preset screen backlight brightness value. The brightness information is used to determine the original brightness. Based on the ambient light mapping information, an environmental adjustment ratio that has a mapping relationship with the target ambient light brightness value is determined; Based on the screen backlight mapping information, determine the screen adjustment ratio that has a mapping relationship with the target screen backlight brightness value; Based on the environment adjustment ratio and the screen adjustment ratio, the first metadata is updated to obtain the second metadata.

[0007] In one embodiment, the preset rules include level determination rules and information configuration rules; determining the brightness configuration information of the target image based on the brightness information contained in the first metadata and the preset rules includes: The brightness level of the target image is determined based on the brightness information contained in the first metadata and the level determination rule; The brightness configuration information of the target image is determined based on the brightness level and the information configuration rules.

[0008] In one embodiment, the first metadata includes at least two target parameters, the values ​​of which are used to determine the brightness value of a pixel in the target image and to determine an upper limit for the brightness value; determining the brightness level of the target image based on the brightness information included in the first metadata and the level determination rule includes: The brightness level of the target image is determined based on the relationship between the values ​​of the at least two target parameters and preset thresholds.

[0009] In one embodiment, updating the first metadata based on the environment adjustment ratio and the screen adjustment ratio to obtain the second metadata includes: The target adjustment ratio is determined by weighting the environment adjustment ratio and the screen adjustment ratio. The first metadata is updated according to the target adjustment ratio to obtain the second metadata.

[0010] In one embodiment, the first metadata includes at least two brightness parameters, wherein a first value of the at least two brightness parameters is used to indicate that the target image is displayed according to the original brightness; updating the first metadata according to the target adjustment ratio to obtain the second metadata includes: Calculate the product of the target adjustment ratio and the first values ​​of the at least two brightness parameters to obtain the second values ​​of the at least two brightness parameters; From the second value of each of the at least two brightness parameters and the preset limit value, a target value of each brightness parameter is determined to obtain the second metadata; the preset limit value corresponds one-to-one with the brightness parameter.

[0011] In one embodiment, obtaining the first metadata of the target image includes: Receive image display instructions; In response to the image display instruction, the first metadata of the target image is obtained; Wherein, the target ambient light brightness value and / or the target screen backlight brightness value are the brightness values ​​at the moment the image display command is received.

[0012] In one embodiment, the target image is a high dynamic range (HDR) image, and the method further includes: Obtain the standard dynamic range (SDR) image data and gain image data obtained after encoding the target image; The SDR image data is decoded to obtain the SDR decoded data of the target image; The gain image data is decoded to obtain the gain decoded data of the target image; The second metadata indicates that the SDR decoding data is enhanced by the gain decoding data to obtain the HDR image with the adaptive brightness.

[0013] In one embodiment, the method further includes: The target image is displayed based on the second metadata, the SDR decoding data, and the gain decoding data.

[0014] Secondly, this application also provides an image brightness adjustment device, the device comprising: The first module is used to acquire first metadata of the target image, the first metadata being used to instruct the target image to be displayed according to its original brightness; and to acquire the target ambient light brightness value and / or the target screen backlight brightness value. The second module is used to update the first metadata based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata. The second metadata is used to indicate that the target image is displayed according to adaptive brightness, which is matched with the target ambient light brightness value and / or the target screen backlight brightness value.

[0015] Thirdly, this application also provides a computer device, including: a memory and a processor, wherein the memory stores computer program instructions; when the computer program instructions are executed by the processor, the processor causes the processor to perform the method as described in the first aspect or any embodiment of the first aspect.

[0016] Fourthly, this application also provides a computer-readable storage medium storing computer program instructions; when the computer program instructions are executed on one or more processors, they perform the methods described in the first aspect or any embodiment of the first aspect.

[0017] Fifthly, this application also provides a computer program product comprising computer program instructions; when the computer program instructions are executed on a computer, the computer causes the computer to perform the method as described in the first aspect or any embodiment of the first aspect.

[0018] It is understood that the image brightness adjustment device provided in the second aspect, the computer device provided in the third aspect, the computer-readable storage medium provided in the fourth aspect, and the computer program product provided in the fifth aspect can be used to execute the image brightness adjustment method shown in the first aspect or any embodiment of the first aspect of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description

[0019] To clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be described below.

[0020] Figure 1 This is one of the flowcharts illustrating the image brightness adjustment method provided in the embodiments of this application; Figure 2 This is a second schematic flowchart illustrating the image brightness adjustment method provided in an embodiment of this application. Figure 3 This is a schematic diagram of the image brightness adjustment device provided in the embodiments of this application; Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0021] To facilitate understanding of the embodiments of this application, a more comprehensive description of the embodiments of this application will be provided below with reference to the accompanying drawings. The drawings illustrate preferred embodiments of the embodiments of this application. However, the embodiments of this application can be implemented in many different forms and are not limited to the embodiments described herein. These embodiments are provided to make the disclosure of the embodiments of this application more thorough and comprehensive.

[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of this application pertain.

[0023] The terms “first,” “second,” etc., used in this document are used to distinguish different objects, not to describe a specific order. It should also be understood that the term “including / contains” means the presence of the stated features, wholes, steps, operations, parts, or combinations thereof, but does not exclude the possibility of the presence of one or more other features, wholes, steps, operations, parts, or combinations thereof.

[0024] Before introducing the image brightness adjustment method provided in the embodiments of this application, the following terms involved in the embodiments will be explained.

[0025] High Dynamic Range (HDR) is a technique used to achieve a wider dynamic range of exposure than ordinary digital imaging techniques, meaning a greater difference between light and dark areas. This technique significantly improves image quality and visual effects, enhancing the realism and three-dimensionality of images. HDR images are capable of recording and displaying a wider range of brightness, from the deepest shadows to the most glaring highlights. HDR images can simultaneously preserve rich details in both bright and dark areas of a scene, making the recorded image closer to what the human eye sees in person. Based on these characteristics, HDR and HDR images are widely used in various fields such as computer vision, computer graphics, digital photography, and film and television production.

[0026] Metadata. The metadata mentioned in this application embodiment refers to HDR metadata, which is structured data defining the brightness characteristics, color attributes, and rendering parameters of HDR images, used to guide the correct reproduction of the extended brightness range and color of HDR images. In this application embodiment, the focus is on adjusting the brightness of the target image during display, and only the function of the metadata in indicating the brightness of the target image during display is discussed.

[0027] Ambient light intensity. Ambient light intensity refers to the brightness of surrounding light perceived by the human eye or sensors in a specific scene or environment. It is not the brightness emitted by the light source itself, but rather the overall illumination level formed in space after the light emitted by the light source is reflected and scattered by the environment. In short, ambient light intensity indicates "how bright the scene is." Ambient light intensity is a key contextual parameter indicating the environment, directly affecting the behavior of devices and the results of algorithms. Ambient light intensity is usually expressed in lux or nits, such as an ambient light intensity value of 1000 nits. Alternatively, ambient light intensity values ​​can also be represented as a scale value normalized to the range [0,1]. Specifically, this scale value is obtained by dividing the brightness value sensed by the sensor by the maximum brightness value that the sensor can sense.

[0028] Screen backlight brightness. Screen backlight brightness refers to the luminous flux intensity emitted by the device's screen backlight module. It can be understood as the display brightness of the device's screen in a specific scene or environment. Screen backlight brightness is also a key contextual parameter indicating the environment. In this embodiment, the screen backlight brightness value can be represented by a quantization level from 0 to 255. Alternatively, the screen backlight brightness value can also be represented as a proportional value normalized to the range [0, 1]. Specifically, the actual quantization level is divided by the maximum quantization level of 255 to obtain a proportional value.

[0029] Given the widespread use of HDR and HDR images, the image brightness adjustment method provided in this application is specifically designed for HDR images. This image brightness adjustment method adaptively updates metadata to adjust the brightness of the target image during display, allowing the target image to be displayed in a way that adapts to the ambient brightness. Optionally, the executing entity of this image brightness adjustment method is a computer device capable of displaying the target image. Figure 1 As shown in the figure, this application embodiment provides a method for adjusting image brightness. The image brightness adjustment method includes the following steps S101 to S103.

[0030] S101, Obtain the first metadata of the target image. The first metadata is used to instruct the target image to be displayed according to its original brightness.

[0031] The first metadata element is HDR metadata, used to guide the correct reproduction of the extended brightness range of HDR images and to instruct the target image to be displayed according to its original brightness. The original brightness refers to the initial brightness of the target image, such as the brightness of the original image when the target image was captured. To adjust the brightness of the target image during display, the first metadata element of the target image is first obtained.

[0032] In one embodiment, step S101 above, obtaining the first metadata of the target image, includes the following steps S201 to S202.

[0033] S201, Receive image display command.

[0034] S202, in response to the image display instruction, obtain the first metadata of the target image.

[0035] The image display instruction is a command to instruct the display of a target image. Specifically, the computer device receives the image display instruction and, in response, obtains the first metadata of the target image to adjust the brightness of the target image during display. Optionally, the image display instruction is sent by the user through controls or entry points displayed on the screen of the touch-screen computer device. Optionally, the image display instruction is sent by other devices in a preset communication format.

[0036] In one embodiment, the above step of obtaining the first metadata of the target image includes the following steps: The encoded data of the target image is processed to obtain the first metadata of the target image.

[0037] Encoded data refers to the data obtained by encoding the target image. Encoded data includes at least primary metadata and the image data of the target image. The encoded data of the target image is processed, such as through separation and extraction, to obtain the primary metadata.

[0038] S102, acquire the target ambient light brightness value and / or the target screen backlight brightness value.

[0039] Ambient light brightness and screen backlight brightness are two context parameters used to indicate the environment in which the target image is displayed. To adjust the brightness of the target image so that it adapts to the ambient light, the value of at least one of these two context parameters is first obtained. That is, the target ambient light brightness value and / or the target screen backlight brightness value are obtained. It should be noted that in this image brightness adjustment method, either the target ambient light brightness value or the target screen backlight brightness value can be obtained to adjust the image brightness based on the value of one of the obtained context parameters, or both the target ambient light brightness value and the target screen backlight brightness value can be obtained to adjust the image brightness based on the values ​​of both obtained context parameters.

[0040] The execution order of steps S102 and S101 is not important. For example, step S102 can be executed before step S101 or simultaneously with step S101.

[0041] In one embodiment, when an image display instruction is received, the target ambient light brightness value and / or the target screen backlight brightness value are the brightness values ​​at the time the image display instruction is received.

[0042] Upon receiving an image display command, the brightness of the target image is adjusted in response to the command, so that the target image is displayed with a brightness that adapts to the environment. The target ambient light brightness value and / or the target screen backlight brightness value are set to the brightness value at the time the image display command is received, and the brightness adapted to the environment is then the brightness adapted to the environment at the time the image display command is received.

[0043] In this embodiment, by obtaining the brightness value at the current moment when the image display command is received, and adjusting the brightness of the target image based on the current brightness value, it is beneficial to ensure that the target image is displayed in a way that adapts to the ambient brightness at the current moment. This adaptive brightness enhances the user experience for those who trigger the image display command to view the target image.

[0044] S103, update the first metadata based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata. The second metadata is used to instruct the target image to be displayed according to adaptive brightness, which matches the target ambient light brightness value and / or the target screen backlight brightness value.

[0045] Based on the function of the first metadata, it is clear that the second metadata is also used to indicate the brightness of the target image during display. Since the second metadata is determined based on the target ambient light brightness value and / or the target screen backlight brightness value, it can instruct the target image to be displayed with adaptive brightness matching the target ambient light brightness value and / or the target screen backlight brightness value. Because the target ambient light brightness value and the target screen backlight brightness value are two contextual parameters used to indicate the environment in which the target image is displayed, the second metadata can instruct the target image to be displayed with brightness adapted to the environment. Therefore, by obtaining the second metadata through this image brightness adjustment method, adaptive adjustment of the target image's brightness during display can be achieved, enabling the target image to be displayed with brightness adapted to the environment.

[0046] The image brightness adjustment method in this embodiment adapts the brightness of the displayed target image to environmental requirements, ensuring that the target image is displayed at a reasonable brightness in different scenarios and thus enhancing the user's viewing experience. For example, when a user touches the target image display entry on a computer screen in the dark, the computer executes this image brightness adjustment method and displays the target image at a slightly dimmer brightness to suit the environment. This avoids excessively bright and glaring displays that could negatively impact the user's image viewing experience.

[0047] In one embodiment, step S103 above, which updates the first metadata based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata, includes the following steps S301 to S304.

[0048] S301, based on the brightness information and preset rules contained in the first metadata, determine the brightness configuration information of the target image. The brightness configuration information includes ambient light mapping information and screen backlight mapping information. The ambient light mapping information describes the mapping relationship between a preset ambient light brightness value and a first adjustment ratio. When the original brightness is adjusted to display the target image using the first adjustment ratio, the brightness of the displayed target image matches the preset ambient light brightness value. The screen backlight mapping information describes the mapping relationship between a preset screen backlight brightness value and a second adjustment ratio. When the original brightness is adjusted to display the target image using the second adjustment ratio, the brightness of the displayed target image matches the preset screen backlight brightness value. The brightness information is used to determine the original brightness.

[0049] This embodiment uses adjusting image brightness based on two context parameters: target ambient light brightness and target screen backlight brightness. Specifically, in updating the first metadata to adjust the display brightness of the target image, the adjustment method is first determined based on the original brightness of the target image. Based on this, the brightness configuration information of the target image is determined according to the brightness information and preset rules contained in the first metadata. The brightness information is used to determine the original brightness, and the brightness configuration information is associated with the brightness information. The brightness configuration information provides information on how to adaptively adjust based on the original brightness, and is the optimal mapping configuration information with preset ambient light brightness and preset screen backlight brightness as independent variables. Specifically, the brightness configuration information includes ambient light mapping information and screen backlight mapping information. The ambient light mapping information describes the mapping relationship between the preset ambient light brightness value and a first adjustment ratio. When the original brightness is adjusted to display the target image using a first adjustment ratio, the brightness of the displayed target image matches a preset ambient light brightness value; the first adjustment ratio and the preset ambient light brightness value are a pair of values ​​with a mapping relationship. In other words, when the ambient light brightness value is the preset ambient light brightness value, in order to display the target image with brightness adapted to the environment and ensure display effect, the original brightness should be adjusted by a first adjustment ratio to determine the brightness of the target image during display. Screen backlight mapping information describes the mapping relationship between the preset screen backlight brightness value and the second adjustment ratio. When the original brightness is adjusted by a second adjustment ratio to display the target image, the brightness of the target image during display matches a preset screen backlight brightness value; the second adjustment ratio and the preset screen backlight brightness value are a pair of values ​​with a mapping relationship. In other words, when the screen backlight brightness value is the preset screen backlight brightness value, in order to display the target image with brightness adapted to the environment and ensure display effect, the original brightness should be adjusted by a second adjustment ratio to determine the brightness of the target image during display. It should be understood that the above implementation of adjusting the original brightness by an adjustment ratio is to adjust the first metadata by an adjustment ratio. For example, the ambient light mapping information and the screen backlight mapping information are presented in the form of curves or functions, respectively. This embodiment does not limit the presentation format of the above two pieces of information. For example, the preset ambient light brightness value can be expressed as a numerical value in lux or nits, or as a proportional value; the preset screen backlight brightness value can be expressed as a quantified level, or as a proportional value. For a more detailed discussion, please refer to the preceding descriptions of ambient light brightness and screen backlight brightness. This embodiment does not limit the way brightness values ​​are represented.

[0050] For example, brightness configuration information can be determined based on historical experience or experimental data. For instance, when the ambient light brightness value is a proportional value of 0.2, the image's metadata is adjusted by a scaling factor of 0.35 to determine the image's display brightness. This display brightness provides better display performance in an environment with an ambient light brightness value of 0.2. Based on this experimental result, (0.2, 0.35) can be used as a data point. Furthermore, an ambient light brightness curve or ambient light brightness function can be determined based on multiple data points.

[0051] In one embodiment, the preset rules include level determination rules and information configuration rules. Step S301 above, which determines the brightness configuration information of the target image based on the brightness information contained in the first metadata and the preset rules, includes the following steps S401 to S402.

[0052] S401, determine the brightness level of the target image based on the brightness information and level determination rules contained in the first metadata.

[0053] Specifically, the brightness level of the target image is determined based on the brightness information used to determine the original brightness and the level determination rules. For example, the brightness indicated by the brightness information is directly proportional to the brightness level; the higher the brightness, the higher the brightness level, and the lower the brightness, the lower the brightness level.

[0054] In one embodiment, the first metadata includes at least two target parameters. The values ​​of the target parameters are used to determine the brightness value of a pixel in the target image and to determine the upper limit of the brightness value. Step S401 above, determining the brightness level of the target image based on the brightness information and level determination rules contained in the first metadata, includes the following steps: The brightness level of the target image is determined based on the relationship between the values ​​of at least two target parameters and preset thresholds.

[0055] The parameter information and purpose of each parameter contained in the first metadata can be referenced from the parameter information and purpose typically contained in HDR metadata. The relevant definitions of HDR metadata can be found in the Google ISO-21496 standard. This embodiment does not describe each parameter in detail, but only those parameters closely related to this image brightness adjustment method. Specifically, the first metadata contains at least two brightness parameters, which are key parameters for determining the brightness values ​​of the pixels in the target image. That is, they are key parameters for determining the brightness of the target image when it is displayed. The target image is an HDR image, and the brightness values ​​of the pixels in the HDR image are determined by enhancing the brightness values ​​of the pixels in the Standard Dynamic Range (SDR) map using the pixel gain values ​​provided by the gain map. The process of determining the brightness values ​​of the pixels in the HDR image involves at least the following two brightness parameters: GainMapMin, GainMapMax, HDRCapacityMin, and HDRCapacityMax. In this context, GainMapMin and GainMapMax represent the minimum and maximum gain factors that the gain map can represent, i.e., the minimum and maximum amplification factors that the gain map can amplify. Ignoring other influencing factors, a larger GainMapMax indicates a greater potential for brightness enhancement provided by the gain map, and a higher upper limit for the brightness values ​​of pixels in an HDR image. HDRCapacityMin and HDRCapacityMax represent the minimum and maximum brightness factors of a display device's HDR capability, defining the minimum and maximum additional dynamic range that the display device can display relative to an SDR baseline. The maximum additional dynamic range that the display device can display, defined by HDRCapacityMax, is one of the limiting factors for the upper limit of the brightness values ​​of pixels in an HDR image. Based on HDRCapacityMin, HDRCapacityMax, and the max display boost value defined by different display devices, a global weight factor applicable to all pixels can be calculated. Based on Gamma, the brightness values ​​of the pixels in the gain map, GainMapMin, and GainMapMax, the corresponding gain value (log boost) for each pixel in the gain map can be determined. Furthermore, based on the luminance values ​​of each pixel in the SDR image, OffsetSDR, OffsetHDR, log boost, and weight factor, the luminance values ​​of each pixel in the HDR image can be determined. Among these, Gamma, OffsetSDR, and OffsetHDR are parameters also included in the first set of metadata. Gamma is the gamma correction value used for the conversion between linear and non-linear luminance.OffsetSDR and OffsetHDR are the fine-tuning offsets of the brightness values ​​for SDR and HDR images, respectively.

[0056] In this embodiment, the at least two target parameters are used to determine the brightness values ​​of pixels in the target image, and also to determine the upper limit of the brightness values. Therefore, the at least two target parameters include at least GainMapMax and HDRCapacityMax. The larger the value of the target parameter, the higher the upper limit of the allowed brightness value of the pixel, and the brighter the overall brightness of the target image. The preset threshold is a standard used to determine the brightness level of an image. By reading the values ​​of the at least two target parameters and the preset threshold from the first metadata, the brightness level of the target image can be determined based on the relationship between the values ​​of the at least two target parameters and the preset threshold. For example, the brightness levels are divided into level one and level two. Level one indicates that the image brightness is normal or slightly dark, and level two indicates that the image brightness is slightly bright. If the values ​​of at least two target parameters are both less than the preset threshold, that is, the values ​​used to determine the upper limit of the brightness value are less than the preset threshold, it indicates that the upper limit of the allowed brightness value is normal or slightly low, and the overall brightness of the target image is normal or slightly dark. In this case, the brightness level of the target image can be determined to be level one. If at least one of the values ​​of at least two target parameters is greater than a preset threshold, meaning the value used to determine the upper limit of the brightness value is greater than the preset threshold, it indicates that the allowed upper limit of the brightness value is too high, and the overall brightness of the target image is too bright. In this case, the brightness level of the target image can be determined as level two. For example, the preset threshold is determined based on historical experience or experimental data. For instance, the preset threshold value is 10. When either the GainMapMax or HDRCapacityMax parameter is greater than 10, it indicates that the target image is a relatively bright image. The method in this embodiment can determine the brightness level of the target image relatively accurately.

[0057] S402, determine the brightness configuration information of the target image based on the brightness level and information configuration rules.

[0058] The information configuration rules are used to assign corresponding brightness configuration information to each brightness level. After determining the brightness level based on the brightness information and preset level determination rules, the brightness configuration information of the target image can be determined according to the preset information configuration rules. The brightness configuration information provides information on how to adapt to the environment based on the original brightness, where the original brightness belongs to the brightness level corresponding to the brightness configuration information.

[0059] S302, Based on ambient light mapping information, determine the environmental adjustment ratio that has a mapping relationship with the target ambient light brightness value.

[0060] S303, based on screen backlight mapping information, determines the screen adjustment ratio that has a mapping relationship with the target screen backlight brightness value.

[0061] As discussed earlier regarding ambient light mapping and screen backlight mapping information, to achieve optimal brightness for displaying the target image and ensure display quality, the original brightness can be adjusted using a ratio that maps to the ambient light brightness value to determine the target image's display brightness. Alternatively, the original brightness can be adjusted using a ratio that maps to the screen backlight brightness value to determine the target image's display brightness. Therefore, to adjust the target image's display brightness to adapt to the environment, the ambient light mapping and screen backlight mapping information are used to determine the environmental adjustment ratio that maps to the target ambient light brightness value, as well as the screen adjustment ratio that maps to the target screen backlight brightness value. Specifically, the target ambient light brightness value and the ambient light mapping information are interpolated (determine the screen ratio) to determine the environmental adjustment ratio. The screen adjustment ratio is determined in the same way.

[0062] S304 updates the first metadata based on the environment adjustment ratio and screen adjustment ratio to obtain the second metadata.

[0063] Understandably, the target screen backlight brightness value or target ambient light brightness value is a numerical value used to indicate the environment in which the target image is displayed. Therefore, by adjusting the original brightness according to the adaptive environment adjustment ratio or screen adjustment ratio, the brightness of the target image displayed is determined to be a brightness adapted to the environment, resulting in better display effects.

[0064] Ambient light mapping information and screen backlight mapping information are mapping information determined under the influence of only one context parameter. When the context parameter used to indicate the environment is ambient light brightness, the original brightness is adjusted based on a first adjustment ratio to determine the display brightness adapted to the environment. When the context parameter used to indicate the environment is screen backlight brightness, the original brightness is adjusted based on a second adjustment ratio to determine the display brightness adapted to the environment. In the application scenario of this embodiment, ambient light brightness and screen backlight brightness jointly affect the display effect of the target image and the user's consumption experience of the target image. Therefore, this method comprehensively considers the influence of the two context parameters and adjusts the original data according to the ambient adjustment ratio and the screen adjustment ratio to determine the display brightness adapted to the environment. As can be seen from the previous introduction about the first metadata and the second metadata, adjusting the original brightness is achieved by adjusting the first metadata, and the display brightness adapted to the environment is achieved by calculating the second metadata. Therefore, by updating the first metadata according to the ambient adjustment ratio and the screen adjustment ratio to obtain the second metadata, the adaptive adjustment of the display brightness of the target image can be achieved, enabling the target image to be displayed with brightness adapted to the environment.

[0065] In one embodiment, step S304 above, which updates the first metadata according to the environment adjustment ratio and the screen adjustment ratio to obtain the second metadata, includes the following steps S501 to S502.

[0066] S501 performs a weighted calculation on the ambient adjustment ratio and the screen adjustment ratio to determine the target adjustment ratio.

[0067] S502, update the first metadata according to the target adjustment ratio to obtain the second metadata.

[0068] Specifically, a first weighting coefficient for the environment adjustment ratio and a second weighting coefficient for the screen adjustment ratio are preset. These two weighted coefficients are then weighted to determine the target adjustment ratio. The first metadata is then updated according to the target adjustment ratio to obtain the second metadata. The sum of the first and second weighting coefficients is 1.

[0069] For example, the target image can be displayed at a brightness lower than its original brightness, depending on scene requirements. For instance, the scene where the target image is displayed is always nighttime. The weighting coefficient corresponding to the minimum of the ambient adjustment ratio and the screen adjustment ratio can be preset to 1, and the weighting coefficient corresponding to the maximum of the two can be preset to 0. After the computer device determines the ambient adjustment ratio and the screen adjustment ratio, it determines the relationship between the two adjustment ratios. Then, based on preset information, it determines the weighting coefficients corresponding to each adjustment ratio for weighted calculation to determine the target adjustment ratio. Understandably, the target adjustment ratio determined at this point is the minimum of the ambient adjustment ratio and the screen adjustment ratio. Adjusting the original brightness with a smaller adjustment ratio allows the target image to be displayed at a lower brightness to adapt to scene requirements. For example, the scene where the target image is displayed is always a bright scene. The weighting coefficient corresponding to the maximum of the ambient adjustment ratio and the screen adjustment ratio can be preset to 1, and the weighting coefficient corresponding to the minimum of the two can be preset to 0. Understandably, the target adjustment ratio determined at this point is the maximum of the ambient adjustment ratio and the screen adjustment ratio. Adjusting the original brightness with a larger adjustment ratio allows the target image to be displayed at a higher brightness to adapt to scene requirements.

[0070] In one embodiment, the first metadata includes at least two brightness parameters, and the first values ​​of the at least two brightness parameters are used to indicate that the target image is displayed according to the original brightness. Step S502 above, updating the first metadata according to the target adjustment ratio to obtain the second metadata, includes the following steps S601 to S602.

[0071] S601, calculate the product between the target adjustment ratio and the first values ​​of at least two brightness parameters to obtain the second values ​​of at least two brightness parameters.

[0072] S602, based on the second values ​​of at least two brightness parameters, obtain the second metadata.

[0073] The discussion regarding at least two brightness parameters can be found in the preceding embodiments and will not be repeated here. The at least two brightness parameters contained in the first metadata serve as key parameters for determining the brightness of the target image during display. Updating the first metadata to obtain the second metadata involves updating the values ​​of the at least two brightness parameters to achieve adaptive adjustment of the target image's display brightness. The first values ​​of the at least two brightness parameters in the first metadata are used to determine that the target image is displayed at its original brightness. The second values ​​of the at least two brightness parameters are obtained by calculating the product of the target adjustment ratio and the first values ​​of the at least two brightness parameters, thus obtaining the second metadata. This allows for adjustment of the original brightness, enabling the target image to be displayed with a brightness appropriate to the environment.

[0074] In one embodiment, step S602 above, which obtains second metadata based on second values ​​of at least two brightness parameters, includes the following steps: From the second values ​​of each of the at least two brightness parameters and the preset limit values, the target values ​​of each brightness parameter are determined to obtain the second metadata. The preset limit values ​​correspond one-to-one with the brightness parameters.

[0075] Considering factors such as scene requirements and device performance, the minimum and / or maximum brightness of images can be limited. This restricts the range of values ​​for key parameters determining image brightness. Preset limit values ​​for each brightness parameter are used to determine its value range, ensuring that the brightness of displayed images falls within the range limited by scene requirements and device performance.

[0076] Specifically, if the second value of the brightness parameter falls within the range defined by the preset limit values, then the second value is used as the target value of the brightness parameter. If the second value of the brightness parameter does not fall within the range defined by the preset limit values, then the preset limit value is used as the target value of the brightness parameter. For example, if the preset limit values ​​include a preset maximum value and a preset minimum value, and the second value is less than the preset minimum value, then the preset minimum value is used as the target value. If the second value is greater than the preset maximum value, then the preset maximum value is used as the target value. Here, the preset limit values ​​and brightness parameters correspond one-to-one, thereby determining the target value of each brightness parameter and obtaining the second data. For example, according to the standard, each preset limit value is set to the preset minimum value of 1. This ensures that the brightness of the displayed image conforms to the standard specifications.

[0077] In this embodiment, while considering displaying the target image at an ambient brightness, various factors such as scene requirements and device performance are also taken into account. While adaptively determining the second metadata based on the environment to ensure the target image is displayed at an adaptive brightness, the second metadata is also determined according to display specifications to ensure the target image is displayed at a brightness that is both ambient-adaptive and conforms to the specifications.

[0078] like Figure 2 As shown, in one embodiment, the target image is a high dynamic range (HDR) image, and the image brightness adjustment method includes the following steps S701 to S706. Steps S701, S705, and S706 correspond one-to-one with steps S101 to S103 in the aforementioned embodiments. For a detailed discussion of steps S701, S705, and S706 in this embodiment, please refer to the detailed discussion of steps S101 to S103 in the aforementioned embodiments; further details will not be repeated in this embodiment.

[0079] S701, Obtain the first metadata of the target image. The first metadata is used to instruct the target image to be displayed according to its original brightness.

[0080] S702, acquire the standard dynamic range (SDR) image data and gain image data obtained after encoding the target image.

[0081] For example, step S701, obtaining the first metadata of the target image, and step S702, obtaining the SDR image data and gain image data obtained after encoding the target image, include the following steps: Obtain the encoded data of the target image after encoding; The encoded data of the target image is processed to obtain the first metadata, SDR image data, and gain image data of the target image. This processing includes at least separation and extraction.

[0082] S703 decodes the SDR image data to obtain the SDR decoded data of the target image. The SDR decoded data is the SDR image data corresponding to the HDR image.

[0083] S704 decodes the gain image data to obtain the gain decoded data of the target image. The gain decoded data is the gain map data corresponding to the HDR image.

[0084] S705, acquire the target ambient light brightness value and / or the target screen backlight brightness value.

[0085] S706, based on the target ambient light brightness value and / or the target screen backlight brightness value, update the first metadata to obtain the second metadata. The second metadata is used to instruct the target image to be displayed with adaptive brightness, which matches the target ambient light brightness value and / or the target screen backlight brightness value. The second metadata instructs the SDR decoding data to be enhanced with gain decoding data to obtain an HDR image with adaptive brightness.

[0086] In this method, the brightness values ​​of pixels in the HDR image are determined by enhancing the brightness values ​​of pixels in the SDR image using the pixel gain values ​​provided by the gain map. Second metadata is obtained based on this image brightness adjustment method. This second metadata indicates how to enhance the SDR image using the gain map to obtain an HDR image with adaptive brightness that adapts to the environment.

[0087] Steps S703 to S704 need to be executed only after step S702, but are not limited to being executed before step S705 or step S706. For example, steps S703 to S704 can also be executed after step S706, or simultaneously with step S706. Step S705 needs to be executed only before step S706, but is not limited to being executed after steps S701 to S702. For example, step S705 can also be executed before step S701, or simultaneously with step S701.

[0088] In one embodiment, after updating the first metadata based on the target ambient light brightness value and the target screen backlight brightness value in step S706 above to obtain the second metadata, the image brightness adjustment method further includes the following steps: The target image is displayed based on the second metadata, SDR decoding data, and gain decoding data.

[0089] Specifically, the computer device renders and displays the target image based on the instructions of the second metadata, the data of the SDR map, and the data of the gain map. The target image is then displayed with adaptive brightness. For example, based on at least two brightness parameters contained in the second metadata: GainMapMin, GainMapMax, HDRCapacityMin, and HDRCapacityMax, and other included parameters: Gamma, OffsetSDR, and OffsetHDR, as well as the data of the SDR map and the data of the gain map, the brightness values ​​of the pixels of the target image are determined and the target image is displayed. The specific implementation process of this example can be referred to the discussion in the foregoing embodiments, and a more detailed implementation process can be referred to the discussion in the ISO-21496 standard. It will not be repeated here.

[0090] For example, a computer device implements this image brightness adjustment method by running an application. The following is an example of a feasible implementation. First, the application obtains the encoded data of the target image after encoding, the target ambient light brightness value, and the target screen backlight brightness value. The encoded data of the target image is separated and extracted to obtain the first metadata of the target image, SDR image data, and gain image data. The application calls a decoder to decode the SDR image data and gain image data respectively, obtaining SDR decoded data and gain decoded data. The specific implementation process for obtaining the target ambient light brightness value is as follows: The light sensor service is obtained by calling the sensor manager interface provided by the operating system; an ambient light brightness change listener is registered with the light sensor service to listen for ambient light brightness change events; when the ambient light brightness value of the environment in which the computer device is located changes, the latest ambient light brightness value pushed by the operating system is received based on the listener; the target ambient light brightness value is updated according to the latest ambient light brightness value. The target screen backlight brightness value is obtained by calling the operating system interface. The application obtains the latest target ambient light brightness value and the latest target screen backlight brightness value when obtaining the encoded data. Secondly, the application updates the first metadata based on the target ambient light brightness value and the target screen backlight brightness value to obtain the second metadata. Thirdly, the application sends the second metadata, SDR decoding data, and gain decoding data to the operating system to request rendering and display of the target image. The target image is then displayed with an adaptive brightness that matches the target ambient light brightness value and the target screen backlight brightness value.

[0091] like Figure 3 As shown in the illustration, this application embodiment also provides an image brightness adjustment device 100. The image brightness adjustment device 100 includes a first module 101 and a second module 102. The first module 101 is used to acquire first metadata of a target image, which is used to instruct the target image to be displayed at its original brightness; and to acquire a target ambient light brightness value and / or a target screen backlight brightness value. The second module 102 is used to update the first metadata based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain second metadata, which is used to instruct the target image to be displayed at an adaptive brightness, where the adaptive brightness matches the target ambient light brightness value and / or the target screen backlight brightness value.

[0092] In one embodiment, the second module 102 is further configured to: determine the brightness configuration information of the target image based on the brightness information and preset rules contained in the first metadata; the brightness configuration information includes ambient light mapping information and screen backlight mapping information; the ambient light mapping information describes the mapping relationship between a preset ambient light brightness value and a first adjustment ratio, wherein when the original brightness is adjusted to display the target image using the first adjustment ratio, the brightness of the target image at the time of display matches the preset ambient light brightness value; the screen backlight mapping information describes the mapping relationship between a preset screen backlight brightness value and a second adjustment ratio, wherein when the original brightness is adjusted to display the target image using the second adjustment ratio, the brightness of the target image at the time of display matches the preset screen backlight brightness value, and the brightness information is used to determine the original brightness; determine the ambient adjustment ratio that has a mapping relationship with the target ambient light brightness value based on the ambient light mapping information; determine the screen adjustment ratio that has a mapping relationship with the target screen backlight brightness value based on the screen backlight mapping information; and update the first metadata according to the ambient adjustment ratio and the screen adjustment ratio to obtain the second metadata.

[0093] In one embodiment, the preset rules include level determination rules and information configuration rules. The second module 102 is further configured to determine the brightness level of the target image based on the brightness information contained in the first metadata and the level determination rules; and to determine the brightness configuration information of the target image based on the brightness level and the information configuration rules.

[0094] In one embodiment, the first metadata includes at least two target parameters, the values ​​of which are used to determine the brightness values ​​of pixels in the target image and to determine an upper limit for the brightness values. The second module 102 is further configured to determine the brightness level of the target image based on the relationship between the values ​​of the at least two target parameters and preset thresholds.

[0095] In one embodiment, the second module 102 is further configured to perform a weighted calculation on the environment adjustment ratio and the screen adjustment ratio to determine the target adjustment ratio; and update the first metadata according to the target adjustment ratio to obtain the second metadata.

[0096] In one embodiment, the first metadata includes at least two brightness parameters, and the first values ​​of the at least two brightness parameters are used to indicate that the target image is displayed according to the original brightness. The second module 102 is further used to calculate the product between the target adjustment ratio and the first values ​​of the at least two brightness parameters to obtain the second values ​​of the at least two brightness parameters; determine the target value of each brightness parameter from the second values ​​of each of the at least two brightness parameters and the preset limit value to obtain the second metadata; the preset limit value corresponds one-to-one with the brightness parameter.

[0097] In one embodiment, the first module 101 is further configured to receive an image display instruction and, in response to the image display instruction, acquire first metadata of the target image. The target ambient light brightness value and / or the target screen backlight brightness value are respectively the brightness values ​​at the moment the image display instruction is received.

[0098] In one embodiment, the target image is a high dynamic range (HDR) image. The first module 101 is further configured to acquire standard dynamic range (SDR) image data and gain image data obtained after encoding the target image. The image brightness adjustment device 100 also includes a third module configured to decode the SDR image data to obtain SDR decoded data of the target image; and to decode the gain image data to obtain gain decoded data of the target image. The second metadata indicates that the SDR decoded data is enhanced by the gain decoded data to obtain an HDR image with adaptive brightness.

[0099] In one embodiment, the image brightness adjustment device 100 further includes a fourth module for displaying the target image based on the second metadata, SDR decoding data, and gain decoding data.

[0100] For explanations of the terms, please refer to the relevant descriptions in the aforementioned embodiments of the image brightness adjustment method, which will not be elaborated here.

[0101] It should be noted that the specific execution process of the aforementioned image brightness adjustment device 100 can be found in [reference needed]. Figures 1 to 2 The specific details of the embodiments shown are not elaborated here.

[0102] like Figure 4As shown in the illustration, this application also provides a computer device 200. Exemplarily, the computer device 200 may include a processor 201, a communication interface 202, a communication bus 203, and a memory 204. Specifically, the computer device 200 may include: The system includes at least one processor 201, such as a CPU, at least one communication interface 202, a memory 204, and at least one communication bus 203. The communication bus 203 is used to enable communication between these components. The communication interface 202 may optionally include a standard wired interface, a wireless interface (such as a Wi-Fi interface or a Bluetooth interface), etc. The memory 204 may be high-speed RAM or non-volatile memory, such as at least one disk drive. Optionally, the memory 204 may also be at least one storage device located remotely from the aforementioned processor 201. Figure 4 As shown, the memory 204, which serves as a computer storage medium, may include an operating system and program instructions.

[0103] For example, processor 201 can be used to implement the above. Figure 3 The steps or methods executed by the first module 101 and the second module 102 in the process.

[0104] Understandably, the above method is merely an example, and the above can also be executed by the processor 201 and other modules in the aforementioned computer device 200. Figure 3 The steps or methods executed by the first module 101 and the second module 102 in this document are not limited in this document.

[0105] exist Figure 4 In the computer device 200 shown, the processor 201 can be used to load computer program instructions stored in the memory 204 and specifically perform the following operations: Obtain the first metadata of the target image, which is used to instruct the target image to be displayed according to its original brightness. Obtain the target ambient light brightness value and / or the target screen backlight brightness value; The first metadata is updated based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata. The second metadata is used to indicate that the target image is displayed according to the adaptive brightness, which is matched with the target ambient light brightness value and / or the target screen backlight brightness value.

[0106] For explanations of the terms, please refer to the relevant descriptions in the aforementioned embodiments of the image brightness adjustment method, which will not be elaborated here.

[0107] It should be noted that the specific execution process can be found in [link to relevant documentation]. Figures 1 to 2The specific details of the embodiments shown are not elaborated here.

[0108] This application also provides a computer-readable storage medium that can store multiple computer program instructions. These computer program instructions are adapted to be loaded and executed by a processor as described above. Figures 1 to 2 The illustrated image brightness adjustment method embodiment shows the method steps. For a detailed execution process, please refer to [link / reference]. Figures 1 to 2 The specific details of the image brightness adjustment method embodiment shown are not repeated here.

[0109] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", or "after...", or "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is detected" can be interpreted as meaning "if determining...", or "in response to determining...", or "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".

[0110] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer program instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer program instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0111] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0112] The technical features of the above embodiments can be arbitrarily combined. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, they should be considered to be within the scope of this specification.

[0113] The embodiments described above are merely examples of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these modifications and improvements all fall within the protection scope of this application.

Claims

1. A method for adjusting image brightness, characterized in that, The method includes: Obtain first metadata of the target image, wherein the first metadata is used to instruct the target image to be displayed according to its original brightness; Obtain the target ambient light brightness value and / or the target screen backlight brightness value; The first metadata is updated based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata. The second metadata is used to indicate that the target image is displayed according to adaptive brightness, which is matched with the target ambient light brightness value and / or the target screen backlight brightness value.

2. The method according to claim 1, characterized in that, The step of updating the first metadata based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata includes: Based on the brightness information and preset rules contained in the first metadata, the brightness configuration information of the target image is determined. The brightness configuration information includes ambient light mapping information and screen backlight mapping information. The ambient light mapping information describes the mapping relationship between a preset ambient light brightness value and a first adjustment ratio. When the original brightness is adjusted to display the target image using the first adjustment ratio, the brightness of the target image at that time matches the preset ambient light brightness value. The screen backlight mapping information describes the mapping relationship between a preset screen backlight brightness value and a second adjustment ratio. When the original brightness is adjusted to display the target image using the second adjustment ratio, the brightness of the target image at that time matches the preset screen backlight brightness value. The brightness information is used to determine the original brightness. Based on the ambient light mapping information, an environmental adjustment ratio that has a mapping relationship with the target ambient light brightness value is determined; Based on the screen backlight mapping information, determine the screen adjustment ratio that has a mapping relationship with the target screen backlight brightness value; Based on the environment adjustment ratio and the screen adjustment ratio, the first metadata is updated to obtain the second metadata.

3. The method according to claim 2, characterized in that, The preset rules include level determination rules and information configuration rules; determining the brightness configuration information of the target image based on the brightness information contained in the first metadata and the preset rules includes: The brightness level of the target image is determined based on the brightness information contained in the first metadata and the level determination rule; The brightness configuration information of the target image is determined based on the brightness level and the information configuration rules.

4. The method according to claim 3, characterized in that, The first metadata contains at least two target parameters, the values ​​of which are used to determine the brightness value of a pixel in the target image and to determine the upper limit of the brightness value. Determining the brightness level of the target image based on the brightness information contained in the first metadata and the level determination rule includes: The brightness level of the target image is determined based on the relationship between the values ​​of the at least two target parameters and preset thresholds.

5. The method according to claim 2, characterized in that, The step of updating the first metadata based on the environment adjustment ratio and the screen adjustment ratio to obtain the second metadata includes: The target adjustment ratio is determined by weighting the environment adjustment ratio and the screen adjustment ratio. The first metadata is updated according to the target adjustment ratio to obtain the second metadata.

6. The method according to claim 5, characterized in that, The first metadata contains at least two brightness parameters, and the first value of the at least two brightness parameters is used to indicate that the target image is displayed according to the original brightness. The step of updating the first metadata according to the target adjustment ratio to obtain the second metadata includes: Calculate the product of the target adjustment ratio and the first values ​​of the at least two brightness parameters to obtain the second values ​​of the at least two brightness parameters; From the second value of each of the at least two brightness parameters and the preset limit value, a target value of each brightness parameter is determined to obtain the second metadata; the preset limit value corresponds one-to-one with the brightness parameter.

7. The method according to claim 1, characterized in that, The acquisition of the first metadata of the target image includes: Receive image display instructions; In response to the image display instruction, the first metadata of the target image is obtained; Wherein, the target ambient light brightness value and / or the target screen backlight brightness value are the brightness values ​​at the moment the image display command is received.

8. The method according to any one of claims 1 to 7, characterized in that, The target image is a high dynamic range (HDR) image, and the method further includes: Obtain the standard dynamic range (SDR) image data and gain image data obtained after encoding the target image; The SDR image data is decoded to obtain the SDR decoded data of the target image; The gain image data is decoded to obtain the gain decoded data of the target image; The second metadata indicates that the SDR decoding data is enhanced by the gain decoding data to obtain the HDR image with the adaptive brightness.

9. The method according to claim 8, characterized in that, The method further includes: The target image is displayed based on the second metadata, the SDR decoding data, and the gain decoding data.

10. A picture brightness adjustment device, characterized in that, The device includes: The first module is used to acquire first metadata of the target image, the first metadata being used to instruct the target image to be displayed according to its original brightness; and to acquire the target ambient light brightness value and / or the target screen backlight brightness value. The second module is used to update the first metadata based on the target ambient light brightness value and / or the target screen backlight brightness value to obtain the second metadata. The second metadata is used to indicate that the target image is displayed according to adaptive brightness, which is matched with the target ambient light brightness value and / or the target screen backlight brightness value.

11. A computer device, characterized in that, include: A memory and a processor, wherein the memory stores computer program instructions; when executed by the processor, the computer program instructions cause the processor to perform the method as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed on one or more processors, they perform the method as described in any one of claims 1 to 9.

13. A computer program product, characterized in that, The computer program product includes computer program instructions; when the computer program instructions are executed on a computer, the computer causes the computer to perform the method as described in any one of claims 1 to 9.