Method and apparatus for obtaining parameters of a mapping curve - Patents.com

The method and apparatus for obtaining mapping curve parameters address the issue of inconsistent tone adjustment across scenes and brightness levels by using adjustment coefficients and brightness parameters, ensuring accurate and flexible tone mapping for improved image quality.

JP7533848B2Active Publication Date: 2024-08-14HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022565662
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-04-30
Filing Date
2021-04-21
Publication Date
2024-08-14
Estimated Expiration
2041-04-21

AI Technical Summary

Technical Problem

Existing dynamic range mapping methods, such as static and dynamic mapping, fail to accurately adjust tone levels across different scenes and brightness levels, leading to loss of image details in certain lighting conditions.

Method used

A method and apparatus for obtaining parameters of a mapping curve that adjusts tone levels based on display device capabilities, using adjustment coefficients and brightness parameters to create a customized mapping curve for improved flexibility and accuracy.

Benefits of technology

Enhances tone adjustment flexibility and improves presentation effects by accurately accounting for display device capabilities, preventing loss of image details across varying brightness levels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007533848000122
    Figure 0007533848000122
  • Figure 0007533848000115
    Figure 0007533848000115
  • Figure 0007533848000119
    Figure 0007533848000119
Patent Text Reader

Abstract

A method and apparatus for obtaining parameters of a mapping curve are provided. The method includes steps of: obtaining (1001) a parameter set of a first mapping curve and a first maximum target system display luminance; obtaining (1002) a display luminance parameter set, where the display luminance parameter set includes a maximum display luminance and / or a minimum display luminance of a display device; obtaining (1003) a set of adjustment coefficients, where the set of adjustment coefficients includes one or more adjustment coefficients corresponding to one or more parameters in the parameter set of the first mapping curve; and adjusting (1004) one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a parameter set of a second mapping curve, where the parameter set of the second mapping curve includes the one or more adjusted parameters. According to the method, more accurate tone adjustment can be performed on display devices with different luminances, which greatly improves flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 202010366684.2, entitled "Method and Apparatus for Obtaining Parameters of Mapping Curve," filed with the China National Intellectual Property Office on Thursday, April 30, 2020, and incorporated herein by reference in its entirety.

[0002] The present application relates to the field of image processing, and in particular to a method and apparatus for obtaining parameters of a mapping curve. [Background technology]

[0003] Dynamic range is used in many fields to indicate the ratio of the maximum to the minimum value of a variable. In digital images, dynamic range indicates the ratio of the maximum grayscale value to the minimum grayscale value in the displayable range of an image. For the same scene in the real world, the real-world dynamic range is usually 10 -3 candela / m 2 (cd / m 2 ) to 10 6 cd / m 2 , which is referred to as high dynamic range (HDR). Currently, most color digital images have a dynamic image range of 0 to 255, which is referred to as low dynamic range (LDR).

[0004] Since there is a difference between the illuminance range of the display device and the dynamic range in the real world, the dynamic range in the real world needs to be mapped to the illuminance range of the display device, which is called dynamic range mapping. Dynamic range mapping can be applied to the adaptation between the HDR signal from the front end and the HDR display device in the back end. For example, the front end is 4000 cd / m 2The back-end HDR display device collects lighting signals at 500cd / m 2 It has an HDR display capability of 4000cd / m 2 Lighting signal of 500cd / m 2 Mapping the dynamic range to a display device of 100 cd / m is a high-to-low tone mapping (TM) process. Dynamic range mapping can also be applied to adapt between an SDR signal from the front end and an HDR display device at the back end. For example, the front end may have a resolution of 100 cd / m 2 The lighting signal is collected at , and the HDR display capability of the backend HDR display device is 2000cd / m 2 and 100 cd / m 2 Lighting signal of 2000cd / m 2 Mapping to a display device is a low-to-high TM process.

[0005] Currently, there are two dynamic range mapping methods: static mapping and dynamic mapping. In the static mapping method, a single data is used to perform the entire TM process based on the same video content or the same hard disk content. In other words, there is usually the same mapping curve for different scenes. This method has the advantage that an image needs to hold less data and the processing procedure is simple, but has the disadvantage that information may be lost in some scenes because the same mapping curve is used for TM in all scenes. For example, when the mapping curve focuses on protecting the bright area, some details may be lost or even invisible in some extremely dark scenes. As a result, the image display effect is affected. According to the dynamic mapping method, the mapping curve is dynamically adjusted for each scene or frame of the content based on the specific area. This method has the advantage that differentiated processing can be implemented for different scenes or frames, but has the disadvantage that an image needs to hold a large amount of data because related scene information needs to be held in each frame or scene. Summary of the Invention

[0006] The embodiments of the present application provide a method and apparatus for obtaining parameters of a mapping curve to achieve high flexibility by performing more accurate tone adjustment on display devices with different luminance.

[0007] According to a first aspect, an embodiment of the present application provides a method for obtaining parameters of a mapping curve, the method including: obtaining a parameter set of a first mapping curve and a first maximum target system display luminance, the parameter set of the first mapping curve corresponding to a first maximum target system display luminance, the parameter set of the first mapping curve including one or more parameters related to the mapping curve; obtaining a display luminance parameter set, the display luminance parameter set including a maximum display luminance and / or a minimum display luminance of a display device; obtaining an adjustment coefficient set, the adjustment coefficient set including one or more adjustment coefficients, the one or more adjustment coefficients corresponding to one or more parameters in the parameter set of the first mapping curve; and adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the adjustment coefficient set to obtain a parameter set of a second mapping curve, the parameter set of the second mapping curve including the one or more adjusted parameters.

[0008] In this application, one or more parameters related to the mapping curve are adjusted. In the adjustment process, the display capability of the backend is taken into account, so that more accurate tone adjustment can be performed on display devices with different brightness. This greatly improves flexibility, and also realizes good presentation effect when the curve parameters are set appropriately.

[0009] In a possible implementation, adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the adjustment coefficient set to obtain a parameter set of the second mapping curve includes: P a =P b +k×P Δ (1) Calculating an adjusted first parameter according to formula (1), where the first parameter is any parameter in the parameter set of the first mapping curve, and the adjusted first parameter belongs to the parameter set of the second mapping curve. Including, P a represents the adjusted first parameter, and P b represents the first parameter, P Δ represents an adjustment coefficient corresponding to the first parameter,

number

number

[0010] One or more parameters related to the mapping curve are adjusted according to the adjustment coefficient. In the adjustment process, the display capability of the backend is taken into account, so that more accurate tone adjustment can be performed on display devices with different brightness. This greatly improves the flexibility, and also realizes good presentation effect when the curve parameters are set appropriately.

[0011] In a possible implementation, before the step of adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a parameter set of the second mapping curve, the method further includes the steps of obtaining one or more of a maximum luminance, a minimum luminance, an average value, and a variation range of the content to be displayed, and obtaining an intermediate value of the first parameter based on one or more of the maximum display luminance, the minimum display luminance, the maximum luminance, the minimum luminance, the average value, and the variation range, where the first parameter is any parameter in the parameter set of the first mapping curve. The step of adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a parameter set of the second mapping curve includes the steps of: P a =(1-w)×P b +w×P m (2) Calculating an adjusted first parameter according to formula (2), where the adjusted first parameter belongs to a parameter set of a second mapping curve; a represents the adjusted first parameter, and P b represents the first parameter,

number

number

[0012] One or more parameters related to the mapping curve are obtained in a weighted manner by using multiple parameters. In the adjustment process, the display capability of the backend is taken into account, so that more accurate tone adjustment can be performed on display devices with different brightness. This greatly improves the flexibility, and also realizes good presentation effect when the curve parameters are set appropriately.

[0013] In a possible implementation, after the step of calculating the adjusted first parameter according to the formula, the method further includes a step of obtaining a first mapping curve based on the adjusted first parameter and parameters in the parameter set of the first mapping curve other than the first parameter, and a step of continuing to adjust the first parameter if the luminance of the content to be displayed obtained by performing tone mapping based on the first mapping curve is higher than the original luminance of the content to be displayed, or a step of analyzing the adjusted first parameter according to a preset rule, and a step of continuing to adjust the first parameter if the adjusted first parameter complies with the preset rule.

[0014] The parameters related to the mapping curve are fine-tuned one by one to improve the accuracy of the parameters of the mapping curve.

[0015] In a possible implementation, the step of adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a parameter set of the second mapping curve, when the parameter set of the first mapping curve includes a scaling factor,

number

[0016] In a possible implementation, the step of adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a parameter set of the second mapping curve, when the parameter set of the first mapping curve includes a scaling factor,

number

[0017] In a possible implementation, the step of adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a parameter set of the second mapping curve, when the parameter set of the first mapping curve includes a scaling factor,

number

[0018] In a possible implementation, the step of adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a parameter set of the second mapping curve, when the parameter set of the first mapping curve includes a scaling factor,

number

[0019] In a possible implementation, the step of obtaining a parameter set of the first mapping curve and a first maximum target system display luminance includes a step of obtaining a parameter set of the first mapping curve and a first maximum target system display luminance from dynamic metadata of the content to be displayed, or a step of obtaining a parameter set of the first mapping curve from dynamic metadata and a step of obtaining a first maximum target system display luminance corresponding to the parameter set of the first mapping curve based on a specific correspondence.

[0020] In a possible implementation, obtaining the set of adjustment coefficients includes obtaining the set of adjustment coefficients from dynamic metadata of the content to be displayed, or obtaining the set of adjustment coefficients based on pre-defined values.

[0021] In a possible implementation, obtaining the set of adjustment factors includes directly reading one or more adjustment factors, or obtaining an adjustment mode and obtaining one or more adjustment factors corresponding to the adjustment mode.

[0022] In a possible implementation, the step of obtaining a display luminance parameter set includes a step of obtaining a display luminance parameter set based on device information, or a step of obtaining a display luminance parameter set based on pre-set information.

[0023] In a possible implementation, after the step of adjusting one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the adjustment coefficient set to obtain a parameter set of the second mapping curve, the method further includes a step of obtaining a mapping curve based on the one or more adjusted parameters in the parameter set of the second mapping curve.

[0024] According to a second aspect, an embodiment of the present application provides an apparatus for processing content to be displayed. The apparatus includes an acquisition module and a processing module. The acquisition module is configured to: acquire a parameter set of a first mapping curve and a first maximum target system display luminance, the parameter set of the first mapping curve corresponding to a first maximum target system display luminance, the parameter set of the first mapping curve including one or more parameters related to the mapping curve; acquire a display luminance parameter set, the display luminance parameter set including a maximum display luminance and / or a minimum display luminance of a display device; and acquire an adjustment coefficient set, the adjustment coefficient set including one or more adjustment coefficients, the one or more adjustment coefficients corresponding to one or more parameters in the parameter set of the first mapping curve. The processing module is configured to adjust one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the adjustment coefficient set to acquire a parameter set of a second mapping curve, the parameter set of the second mapping curve including the one or more adjusted parameters.

[0025] In a possible implementation, the processing module specifically comprises: Pa = Pb + k × PΔ (1) Calculating an adjusted first parameter according to Equation (1), where the first parameter is any parameter in the parameter set of the first mapping curve, and the adjusted first parameter belongs to the parameter set of the second mapping curve; a represents the adjusted first parameter, and P b represents the first parameter, P Δ represents an adjustment coefficient corresponding to the first parameter,

number

number

[0026] In a possible implementation, the acquisition module is further configured to: acquire one or more of a maximum luminance, a minimum luminance, an average value, and a variation range of the content to be displayed; and acquire an intermediate value of a first parameter based on one or more of a maximum display luminance, a minimum display luminance, a maximum luminance, a minimum luminance, an average value, and a variation range, where the first parameter is any parameter in the parameter set of the first mapping curve. P a =(1-w)×P b +w×P m (2) Calculating an adjusted first parameter according to Equation (2), where the adjusted first parameter belongs to a parameter set of a second mapping curve; a represents the adjusted first parameter, and P b represents the first parameter,

number

number

[0027] In a possible implementation, the processing module is further configured to obtain a first mapping curve based on the adjusted first parameter and parameters in the parameter set of the first mapping curve other than the first parameter, and continue adjusting the first parameter when the luminance of the content to be displayed obtained by performing tone mapping based on the first mapping curve is higher than the original luminance of the content to be displayed, or to analyze the adjusted first parameter according to a predetermined rule, and continue adjusting the first parameter when the adjusted first parameter complies with the predetermined rule.

[0028] In a possible implementation, the processing module specifically performs the following steps when the parameter set of the first mapping curve includes a scaling factor:

number

[0029] In a possible implementation, the processing module specifically performs the following steps when the parameter set of the first mapping curve includes a scaling factor:

number

[0030] In a possible implementation, the processing module specifically performs the following steps when the parameter set of the first mapping curve includes a scaling factor:

number

[0031] In a possible implementation, the processing module specifically performs the following steps when the parameter set of the first mapping curve includes a scaling factor:

number

[0032] In a possible implementation, the acquisition module is specifically configured to acquire a parameter set of a first mapping curve and a first maximum target system display luminance from dynamic metadata of the content to be displayed, or to acquire a parameter set of the first mapping curve from the dynamic metadata and acquire a first maximum target system display luminance corresponding to the parameter set of the first mapping curve based on a specific correspondence.

[0033] In a possible implementation, the acquisition module is specifically configured to acquire the set of adjustment coefficients from dynamic metadata of the content to be displayed, or to acquire the set of adjustment coefficients based on pre-defined values.

[0034] In a possible implementation, the acquisition module is specifically configured to directly read one or more adjustment factors or to acquire an adjustment mode and to acquire one or more adjustment factors corresponding to the adjustment mode.

[0035] In a possible implementation, the acquisition module is specifically configured to acquire a display brightness parameter set based on device information, or to acquire a display brightness parameter set based on pre-set information.

[0036] In a possible implementation, the obtaining module is further configured to obtain the mapping curve based on one or more adjusted parameters in the parameter set of the second mapping curve.

[0037] According to a third aspect, an embodiment of the present application provides a terminal device including one or more processors and a memory, the memory configured to store one or more programs, the one or more programs being enabled by the one or more processors to perform the method according to any one of the first aspects.

[0038] According to a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing program code, the program code including instructions used to perform some or all of the steps of any of the methods of the first aspect.

[0039] According to a fifth aspect, an embodiment of the present application provides a computer program product which, when run on a computer, enables the computer to perform some or all of the steps of any of the methods in the first aspect.

[0040] It should be understood that the technical solutions in the second to fifth aspects of the present application are consistent with the technical solutions in the first aspect of the present application, and the beneficial effects achieved in the aspects and corresponding possible implementations are similar, and the details will not be described again. [Brief description of the drawings]

[0041] In order to describe the technical solutions and background in the embodiments of the present application more clearly, the following briefly describes the accompanying drawings used in the embodiments or background of the present application.

[0042] [Figure 1] FIG. 1 is a diagram of an example of dynamic range mapping for image processing in the real world.

[0043] [Diagram 2] FIG. 2 is a schematic diagram of an example of a curve of a PQ optical-to-electrical transfer function.

[0044] [Diagram 3] FIG. 2 is a schematic diagram of an example of a curve of an HLG optical-to-electrical transfer function.

[0045] [Figure 4] FIG. 2 is a schematic diagram of an example of a curve of an SLF optical-to-electrical transfer function.

[0046] [Diagram 5] FIG. 2 is a schematic diagram of an example of an S-shaped curve.

[0047] [Figure 6] FIG. 2 is a schematic diagram of an example of a Bezier curve.

[0048] [Figure 7] FIG. 2 is a schematic diagram of an example of an S-shaped curve.

[0049] [Figure 8] FIG. 1 is a schematic block diagram of an example of a video processing system applicable to an embodiment of the present application.

[0050] [Figure 9] 9 is a schematic diagram of an example of the structure of a terminal device 900. FIG.

[0051] [Figure 10] 4 is a flow chart of an embodiment of a method for obtaining parameters of a mapping curve according to the present application;

[0052] [Figure 11] FIG. 11 is a structural block diagram of a video processing device 1100 configured to implement an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0053] Hereinafter, the embodiments of the present application will be described with reference to the accompanying drawings of the embodiments of the present application. In the following description, reference is made to the accompanying drawings, which form a part of the present disclosure and which show, by way of illustration, certain aspects of the embodiments of the present application or in which the embodiments of the present application may be used. It should be understood that the embodiments of the present application may be used in other ways and may include structural or logical changes not depicted in the accompanying drawings. Therefore, the following detailed description should not be taken in a limiting sense, and the scope of the present application is defined by the appended claims. For example, it should be understood that the present disclosure relating to a described method may also apply to a corresponding device or system for performing the method, and vice versa. For example, when one or more specific method steps are described, the corresponding device may include one or more units, such as functional units for performing one or more of the described method steps (e.g., one unit performs one or more steps, or multiple units perform each of one or more of the multiple steps), even if such one or more units are not explicitly described or shown in the accompanying drawings. In addition, for example, when a particular apparatus is described based on one or more units, such as functional units, a corresponding method may include a step for implementing the functionality of the one or more units (e.g., a step for implementing the functionality of the one or more units, or multiple steps, each for implementing the functionality of the one or more units in multiple units), even if such step or steps are not explicitly described or shown in the accompanying drawings. Furthermore, it should be understood that features of various exemplary embodiments and / or aspects described herein may be combined with each other, unless expressly stated otherwise.

[0054] The terms used in the embodiments of the present application are only used to describe certain embodiments of the present application, but are not intended to limit the present application. In the following, some related concepts in the embodiments of the present application will be briefly described first.

[0055] 1. Dynamic range

[0056] Dynamic range is used in many fields to indicate the ratio of the maximum to the minimum variable value. In digital images, dynamic range indicates the ratio of the maximum to the minimum grayscale value in the displayable range of the image.

[0057] In nature, the luminance of a night scene under a starry sky is approximately 0.001 cd / m 2 , and the brightness of the sun itself is at most 10 9 cd / m 2 and the dynamic range is 10 9 / 0.001=10 12 cd / m 2 However, in the real world of nature, the luminance of the sun and the luminance of the starlight are not captured at the same time. Therefore, in the same scene in the real world, the dynamic range in the real world is usually 10 -3 cd / m 2 From 10 6 cd / m 2 and is called high dynamic range (HDR). In most color digital images, the grayscale of red (R), green (G), and blue (B) channels is stored by using one byte each. That is, the range of grayscale of R, G, and B channels is 0-255. 0-255 is the dynamic range of the image and is called low dynamic range (LDR).

[0058] 2. Optical-electro transfer function (OETF)

[0059] The imaging process of a digital camera actually maps the high dynamic range of the real world to the low dynamic range of a digital image. Figure 1 is an example of the dynamic range mapping of imaging process in the real world. As shown in Figure 1, in the real world, in addition to the luminance of starlight and the luminance of the sun, 2 Moonlight brightness, 100cd / m 2 Indoor lighting brightness, 500cd / m 2 Outdoor brightness in cloudy weather of 2000cd / m 2 In the real world, the luminance of 100 cd / m2 outdoors in sunny weather is also included. 2 to 2000 cd / m 2 1cd / m2 with a luminance range of up to 10 ... 2 from 200 cd / m 2 There is a mapping relationship between the luminance range up to .

[0060] Because the luminance corresponding to the storage mode of the display device cannot reach the high luminance in the real world, an optical-electro transfer function (OETF) is needed to express the luminance in the real world as the luminance corresponding to the storage mode of the display device. For example, if the luminance in the real world is 10000 cd / m 2 If the display device stores luminance information by using 10 bits, the maximum value that can be stored in this storage mode is 1023. Therefore, 10000 cd / m 2 can be represented as 1023.

[0061] The previous display device was the cathode ray tube (CRT) display, and the optical-electrical transfer function of the CRT display is the Gamma function, which is defined in ITU-R Recommendation BT.1886.

number

[0062] The illuminance range of display devices is continually increasing with the upgrade of display devices. The illuminance of existing HDR displays is 600cd / m 2 while the illuminance of high-end HDR displays is only 2000cd / m 2 Therefore, an improved optical-electrical transfer function is needed to accommodate the upgrade of display devices. Currently, the common optical-electrical transfer functions include three types: perception quantization (PQ) optical-electrical transfer function, hybrid log-gamma (HLG) optical-electrical transfer function, and scene luminance fidelity (SLF) optical-electrical transfer function.

[0063] (1) Different from the traditional gamma function, a PQ optical-electrical transfer function is proposed based on the contrast perception model of human eyes under different luminance. The PQ optical-electrical transfer function represents the conversion relationship from the linear signal value of the pixel of the image frame to the nonlinear signal value in the PQ domain. Figure 2 is a schematic diagram of an example of the curve of the PQ optical-electrical transfer function. The PQ optical-electrical transfer function can be expressed as the following equation:

number

[0064] The parameters corresponding to R, G, and B in the above formula are:

number

number

number

number

number

number

[0065] (2) The HLG optical-electrical transfer function is obtained by improving the traditional gamma curve. The HLG optical-electrical transfer function uses the traditional gamma curve in the low segment and supplements the logarithmic curve in the high segment. The HLG optical-electrical transfer function represents the conversion relationship from the linear signal value of the pixel of the image frame to the nonlinear signal value in the HLG domain. FIG. 3 is a schematic diagram of an example of the curve of the HLG optical-electrical transfer function. The HLG optical-electrical transfer function can be expressed as the following equation:

number

[0066] L represents the linear signal value of a pixel in an image frame, with the value range of L being [0,12], L' represents the nonlinear signal value in the HLG domain, with the value range of L' being [0,1], and a, b, and c are all HLG optical-to-electrical transfer coefficients, where a=0.17883277, b=0.28466892, and c=0.55991073.

[0067] (3) The SLF optical-electrical transfer function is obtained based on the luminance distribution in the HDR scenario, assuming that the optical characteristics of the human eye are satisfied. The SLF optical-electrical transfer function represents the conversion relationship from the linear signal value of the pixel of the image frame to the nonlinear signal value in the SLF domain. FIG. 4 is a schematic diagram of an example of the curve of the SLF optical-electrical transfer function. The SLF optical-electrical transfer function may be expressed as the following equation:

number

[0068] The parameters corresponding to R, G, and B in the above formula are:

number

[0069] 3. Dynamic Range Mapping

[0070] Dynamic range mapping can be applied to adapt between the HDR signal from the front end and the HDR display device at the back end. For example, the front end may have a dynamic range of 4000 cd / m 2 The back-end HDR display device collects lighting signals at 500cd / m 2 It has an HDR display capability of 4000cd / m 2 Lighting signal of 500cd / m 2Mapping the dynamic range to a display device of 100 cd / m is a high-to-low tone mapping (TM) process. Dynamic range mapping can also be applied to adapt between an SDR signal from the front end and an HDR display device at the back end. For example, the front end may have a resolution of 100 cd / m 2 The lighting signal is collected at , and the HDR display capability of the backend HDR display device is 2000cd / m 2 and 100 cd / m 2 Lighting signal of 2000cd / m 2 Mapping to a display device is a low-to-high TM process.

[0071] Currently, there are two dynamic range mapping methods: static mapping and dynamic mapping. In the static mapping method, a single data is used to perform the entire TM process based on the same video content or the same hard disk content. That is, there is usually the same mapping curve for different scenes. This method has the advantage that the video needs to hold less data and the processing procedure is simple, but has the disadvantage that information may be lost in some scenes because the same mapping curve is used for TM in all scenes. For example, when the mapping curve focuses on protecting the bright area, some details may be lost or even invisible in some extremely dark scenes. As a result, the video display effect is affected. According to the dynamic mapping method, the mapping curve is dynamically adjusted for each scene or frame of the content based on the specific area. This method has the advantage that differentiated processing can be implemented for different scenes or frames, but has the disadvantage that the video needs to hold a large amount of data because the related scene information needs to be held in each frame or scene.

[0072] 4.TM technology

[0073] (1) TM processing based on S-shaped curve

[0074] FIG. 5 is a schematic diagram of an example of an S-shaped curve.

[0075] (2) TM processing based on Bezier curves

[0076] FIG. 6 is a schematic diagram of an example of a Bezier curve.

[0077] (3) TM processing based on the S-shaped curve perceived by the human eye

[0078] 7 is a schematic diagram of an example of an S-shaped curve. The optical-to-electrical transfer function corresponding to the S-shaped curve can be expressed as:

number

[0079] Each of L and L' is a normalized electrical or optical signal, where both L and L' have values ​​in the range of [0,1], a has values ​​in the range of [0,1], b has values ​​in the range of [0,1], and p, n, and m have values ​​in the range of [0,N], where N is a rational number greater than 0.1, and k 1 , k 2 , and k 3 are all rational numbers.

[0080] 5. Dynamic Metadata

[0081] The front end (video acquisition and / or production) includes parameters related to the mapping curve in the dynamic metadata sent to the back end (video display).

[0082] (1) S-shaped curve

[0083] The definition of dynamic metadata related to the S-curve proposed in ST2094-10 includes not only video statistics such as maximum luminance value (maximum value of PQ-encoded maxRGB), minimum luminance value (minimum value of PQ-encoded maxRGB), and average luminance value (average value of PQ-encoded maxRGB), but also parameters related to the S-curve, such as tone mapping offset, tone mapping gain, and tone mapping gamma, to directly generate the S-curve.

[0084] However, the manner of generating such parameters is fixed, and as a result, the parameters included in the dynamic metadata cannot provide greater flexibility for curve generation.

[0085] (2) Bezier curve

[0086] The definition of dynamic metadata related to Bezier curves proposed in ST2094-40 includes histogram information (distribution of MaxRGB) and parameters related to Bezier curves (Bezier curve anchors) for directly generating Bezier curves.

[0087] In addition, the ST2094 series of standards includes a maximum (peak) targeted system display luminance (targeted_system_display_maximum_luminance, TSDAPL).

[0088] The above parameters correspond to TSDAPL when they are generated in the front end, but in the back end, the same curves are used for different display devices, so the best display effect cannot be achieved.

[0089] (3)S-shaped curve

[0090] The dynamic metadata may include video statistics such as maximum, minimum, and average luminance values, or may include parameters related to the S-curve such as p, m, a, b, n, K1, K2, and K3.

[0091] The following describes a system architecture applied to an embodiment of the present application. Figure 8 is a schematic block diagram of an example of a video processing system applied to an embodiment of the present application. As shown in Figure 8, the video processing system is divided into a front end and a back end. The front end includes a video acquisition and / or production module, and the back end includes a HDR display module and / or a SDR display module. The front end pre-processes the collected video data and transmits the pre-processed data to the back end. In addition, the front end holds dynamic metadata of the video data. The back end performs enhancement processing on image frames in the video based on the video data combined with the corresponding dynamic metadata to obtain images with excellent color, excellent brightness, excellent contrast, and the like, and displays the images.

[0092] In this application, the front-end and the back-end may be different physical devices independent of each other. For example, the front-end may be a device with a video capture function, e.g., a video camera, a camera, or an image drawing machine, and the back-end may be a device with a video playback function, e.g., a mobile phone, a tablet, a set-top box, or a television. In this case, a wireless connection or a wired connection may be established between the front-end and the back-end. The wireless connection may use technologies such as long term evolution (LTE), 5th generation (5G) mobile communication, and future mobile communication. The wireless connection may further include technologies such as wireless-fidelity (Wi-Fi), Bluetooth, and Near Field Communication (NFC). The wired connection may include an Ethernet connection, a local area network connection, and the like. This is not particularly limited. In the present application, the front-end functionality and the back-end functionality may further be integrated into the same physical device, for example, a mobile phone, a tablet, a set-top box, a television, or an image drawing machine with video capture capability. In the present application, a part of the front-end functionality and a part of the back-end functionality may alternatively be integrated into the same physical device, without any particular limitation.

[0093] The aforementioned devices integrating front-end functions and back-end functions may be deployed indoors or outdoors, handheld, or on land, including on a vehicle, on water (e.g., on a ship), or in the air (e.g., on an airplane, balloon, or satellite). The terminal device may be a mobile phone, a tablet computer (pad), a wearable device with wireless communication function (e.g., a smart watch), a position tracker with positioning function, a computer with wireless transmission / reception function, a virtual reality (VR) device, an augmented reality (AR) device, a wireless device in industrial control, a wireless device in self driving, a wireless device in remote medical, a wireless device in smart grid, a wireless device in transportation safety, a wireless device in smart city, a wireless device in smart home, or the like. This is not limited in the present application.

[0094] FIG. 9 is a schematic diagram of an example of the structure of a terminal device 900. As shown in FIG. 9, the terminal device 900 includes components such as an application processor 901, a microcontroller unit (MCU) 902, a memory 903, a modem 904, a radio frequency (RF) module 905, a wireless fidelity (Wi-Fi) module 906, a Bluetooth module 907, a sensor 908, an input / output (I / O) device 909, and a positioning module 910. These components may communicate with each other via one or more communication buses or signal cables. The communication bus or signal cable may be a CAN bus provided in the present application. Those skilled in the art may understand that the terminal device 900 may include more or fewer components than those shown in the figure, some components may be combined, and components may be arranged in different ways.

[0095] The components of the terminal device 900 are specifically described below with reference to FIG.

[0096] The application processor 901 is the control center of the terminal device 900 and is connected to the components of the terminal device 900 via various interfaces and buses. In some embodiments, the processor 901 may include one or more processing units.

[0097] The memory 903 stores computer programs such as the operating system 911 and applications 912 shown in FIG. 9. The application processor 901 is configured to execute the computer programs in the memory 903 and implement functions defined by the computer programs. For example, the application processor 901 executes the operating system 911 to implement various functions of the operating system on the terminal device 900. The memory 903 further stores data other than computer programs, for example data generated during the operation of the operating system 911 and the applications 912. The memory 903 is a non-volatile storage medium and generally includes an internal memory and an external memory. The internal memory includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, or the like. The external memory includes, but is not limited to, a flash memory, a hard disk, a compact disc, a universal serial bus (USB), a flash drive, or the like. The computer programs are usually stored in the external memory. Before executing a computer program, the processor loads the program from the external memory into the internal memory.

[0098] The memory 903 may be separate and connected via a bus to the application processor 901. Alternatively, the memory 903 and the application processor 901 may be integrated into a chip subsystem.

[0099] The MCU 902 is a co-processor configured to obtain and process data from the sensor 908. The MCU 902 has lower processing power and power consumption than the application processor 901, but has an "always on" feature and can continuously collect and process sensor data when the application processor 901 is in sleep mode to ensure normal operation of the sensor with extremely low power consumption. In one embodiment, the MCU 902 can be a sensor hub chip. The sensor 908 can include a light sensor and a motion sensor. Specifically, the light sensor can include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display 9091 based on the brightness of the ambient light. The proximity sensor can power off the display screen when the terminal device 900 is close to the ear. As a type of motion sensor, the accelerometer sensor can detect values ​​of acceleration in various directions (generally three axes) and can detect the value and direction of gravity when the accelerometer sensor is stationary. The sensors 908 may further include other sensors, such as a gyroscope, a barometer, a hygrometer, a thermometer, or an infrared sensor, which are not described in detail herein. The MCU 902 and the sensors 908 may be integrated on the same chip or may be separate components connected via a bus.

[0100] The modem 904 and the radio frequency module 905 constitute the communication subsystem of the terminal device 900 and are configured to implement the main functions of the standard protocol of wireless communication. The modem 904 is configured to perform encoding / decoding, signal modulation / demodulation, equalization, and the like. The radio frequency module 905 is configured to receive and transmit radio signals. The radio frequency module 905 includes, but is not limited to, an antenna, at least one amplifier, a coupler, a duplexer, and the like. The radio frequency module 905 cooperates with the modem 904 to implement the wireless communication function. The modem 904 may function as an independent chip or may be combined with other chips or circuits to form a system-level chip or integrated circuit. These chips or integrated circuits may be applied to all terminal devices that implement wireless communication functions, including mobile phones, computers, notebook computers, tablet computers, routers, wearable devices, vehicles, home appliances, and the like.

[0101] The terminal device 900 may further perform wireless communication by using a Wi-Fi module 906, a Bluetooth module 907, or the like. The Wi-Fi module 906 is configured to provide the terminal device 900 with network access conforming to Wi-Fi-related standard protocols. The terminal device 900 may access a Wi-Fi access point by using the Wi-Fi module 906 to access the Internet. In some other embodiments, the Wi-Fi module 906 may alternatively function as a Wi-Fi wireless access point and provide Wi-Fi network access to other terminal devices. The Bluetooth module 907 is configured to implement short-range communication between the terminal device 900 and other terminal devices (e.g., mobile phones or smart watches). The Wi-Fi module 906 in this embodiment of the present application may be an integrated circuit, a Wi-Fi chip, or the like. The Bluetooth module 907 may be an integrated circuit, a Bluetooth chip, or the like.

[0102] The positioning module 910 is configured to determine a geographical position of the terminal device 900. It can be understood that the positioning module 910 can be specifically a receiver of a positioning system, such as a global position system (GPS), a Beidou satellite navigation system, or a Russian GLONASS.

[0103] The Wi-Fi module 906, the Bluetooth module 907, and the positioning module 910 may be separate chips or integrated circuits, or may be integrated together. For example, in one embodiment, the Wi-Fi module 906, the Bluetooth module 907, and the positioning module 910 may be integrated on the same chip. In other embodiments, the Wi-Fi module 906, the Bluetooth module 907, the positioning module 910, and the MCU 902 may alternatively be integrated on the same chip.

[0104] The input / output devices 909 include, but are not limited to, a display 9091, a touch screen 9092, audio circuitry 9093, and the like.

[0105] The touch screen 9092 may collect touch events (e.g., operations performed by the user on or near the touch screen 9092 by using a finger or any suitable object, such as a stylus pen) of the user of the terminal device 900 on or near the touch screen 9092, and transmit the collected touch events to other components (e.g., the application processor 901). The operations performed by the user near the touch screen 9092 may be referred to as floating touch. Through floating touch, the user may select, move, or drag a target (e.g., an icon) without directly touching the touch screen 9092. In addition, the touch screen 9092 may be implemented by using multiple types, such as resistive, capacitive, infrared, and surface acoustic wave types.

[0106] The display (also referred to as a display screen) 9091 is configured to display information input by a user or information displayed by a user. The display 9091 may be configured in the form of, for example, a liquid crystal display or an organic light-emitting diode. The touch screen 9092 may cover the display 9091. After detecting a touch event, the touch screen 9092 transmits the touch event to the application processor 901 to determine the type of the touch event. The application processor 901 may then provide a corresponding visual output on the display 9091 based on the type of the touch event. In FIG. 9, the touch screen 9092 and the display 9091 function as two independent components to implement the input and output functions of the terminal device 900. However, in some embodiments, the touch screen 9092 and the display 9091 may be integrated to implement the input and output functions of the terminal device 900. In addition, the touch screen 9092 and the display 9091 may be disposed on the front side of the terminal device 900 in a full-panel format to implement a bezel-less structure.

[0107] The audio circuit 9093, the speaker 9094, and the microphone 9095 may provide an audio interface between the user and the terminal device 900. The audio circuit 9093 may transmit to the speaker 9094 an electrical signal into which the received audio data is converted. The speaker 9094 converts the electrical signal into a sound signal for output. In addition, the microphone 9095 converts the collected sound signal into an electrical signal, and the audio circuit 9093 receives the electrical signal and converts the electrical signal into audio data, and then transmits the audio data to, for example, another terminal device by using the modem 904 and the radio frequency module 905, or outputs the audio data to the memory 903 for further processing.

[0108] In addition, the terminal device 900 may further have a fingerprint recognition function. For example, the fingerprint collection component may be configured on the back side of the terminal device 900 (for example, under the rear camera), or the fingerprint collection component may be configured on the front side of the terminal device 900 (for example, under the touch screen 9092). In another example, the fingerprint collection component may be configured in the touch screen 9092 to implement the fingerprint recognition function. Specifically, the fingerprint collection component may be integrated with the touch screen 9092 to implement the fingerprint recognition function of the terminal device 900. In this case, the fingerprint collection component is configured in the touch screen 9092, and may be a part of the touch screen 9092, or may be configured in the touch screen 9092 in other ways. The main part of the fingerprint collection component in this embodiment of the present application is a fingerprint sensor. The fingerprint sensor may use any type of detection technology, including, but not limited to, optical detection technology, capacitive detection technology, piezoelectric detection technology, ultrasonic detection technology, or the like.

[0109] In addition, the operating system 911 held in the terminal device 900 may be iOS, Android, Microsoft, or other operating systems, which is not limited in this embodiment of the present application.

[0110] A terminal device 900 holding the Android operating system is used as an example. The terminal device 900 may be logically divided into a hardware layer, an operating system 911, and an application layer. The hardware layer includes hardware resources such as the above-mentioned application processor 901, MCU 902, memory 903, modem 904, Wi-Fi module 906, sensor 908, and positioning module 910. The application layer includes one or more applications, for example, application 912. The application 912 may be any type of application, for example, a social application, an e-commerce application, or a browser. The operating system 911 is a computer program that functions as a software middleware between the hardware layer and the application layer and manages and controls hardware and software resources.

[0111] In one embodiment, the operating system 911 includes a kernel, a hardware abstraction layer (HAL), libraries and runtime, and a framework. The kernel is configured to provide basic system components and services, such as power management, memory management, thread management, and hardware drivers. The hardware drivers include Wi-Fi drivers, sensor drivers, positioning module drivers, and the like. The hardware abstraction layer encapsulates kernel driver programs and provides an interface to the framework, hiding the underlying implementation details. The hardware abstraction layer runs in user space, and the kernel driver programs run in kernel space.

[0112] The libraries and runtimes, also referred to as runtime libraries, provide library files and execution environments required when an executable program runs. In one embodiment, the libraries and runtimes include Android runtime (ART), libraries, and scenario package runtimes. ART is a virtual machine or virtual machine instance that can convert the bytecode of an application into machine code. The libraries are program libraries that provide support to the executable program during operation, including a browser engine (such as webkit), a script execution engine (e.g., JavaScript engine), a graphics processing engine, and the like. The scenario package runtime is the operation environment of a scenario package, and mainly includes a page execution environment (page context) and a script execution environment (script context). The page execution environment calls corresponding libraries to parse page code in HTML, CSS, or other formats, and the script execution environment calls corresponding function libraries to parse and execute code or executable files implemented by a script language such as JavaScript.

[0113] The framework is configured to provide various basic common components and services such as window management and position management for application programs in the application layer. In one embodiment, the framework includes a geofence service, a policy service, a notification manager, and the like.

[0114] All of the functions of the components in the operating system 911 described above may be implemented by the application processor 901 by executing programs stored in the memory 903 .

[0115] A person skilled in the art will appreciate that the terminal device 900 may include fewer or more components than those shown in FIG. 9, and that the terminal device shown in FIG. 9 includes only components that are more relevant to the implementations disclosed herein.

[0116] The solution in the embodiment of the present application will be described in detail below.

[0117] FIG. 10 is a flow chart of an embodiment of a method for obtaining parameters of a mapping curve according to the present application. As shown in FIG. 10, the process 1000 may be applied to the video processing system shown in FIG. 8 or the terminal device shown in FIG. 9. The execution subject of the process 1000 includes a back-end in the terminal device or the video processing system. The process 1000 is described as a series of steps or operations. It should be understood that the steps or operations of the process 1000 may be performed in various orders and / or simultaneously, and are not limited to the execution order shown in FIG. 10. The method for obtaining parameters of a mapping curve according to the present application includes the following steps.

[0118] Step 1001: Obtain a first mapping curve parameter set and a first maximum target system display luminance.

[0119] In this application, the front end may be the front end in the video processing system shown in FIG. 8, and the back end may be the back end in the video processing system shown in FIG. 8. In this case, data from the front end may be transmitted to the back end by using a wireless network or a wired network. Alternatively, the front end and the back end may be integrated into a terminal device shown in FIG. 9. In this case, data of the front end may be transmitted to the back end by using an internal transmission path of the terminal device, for example, a Controller Area Network (CAN) bus. After receiving the data, the back end may store the data in a buffer for subsequent processing. The buffer may be, for example, an RGB gamut pixel buffer of the processed frame and / or a metadata buffer of the processed frame.

[0120] After acquiring the video, the front end may pre-process the video, for example, by using an optical-to-electrical transfer function to map the luminance in the real world to a luminance that matches the stored mode, adjust the brightness, chrominance, contrast, and the like of the video based on the acquired information, and encode the video to generate a bitstream. The front end sends the processed data to the back end.

[0121] The data from the front end may include video data (also referred to as data of the content to be displayed) and dynamic metadata. The video data may be data related to image frames in the video, e.g. pixel data. The dynamic metadata may include data related to the video data and data related to the mapping curve. The data related to the video data may include a first maximum target system display luminance (targeted_system_display_maximum_luminance) that can be stored, and a format and characteristics of the video data, such as a storable maximum luminance MaxSource, a storable minimum luminance MinSource, a storable average luminance AvgSource of the video in the memory, or a storable variation range. The principle of the storable variation range is similar to that of the variance or distribution confidence interval, and the variation range is used to describe the luminance aggregate range of the video signal. The data related to the mapping curve may include parameters related to the mapping curve, such as a scaling factor, an offset factor, and a bending shape factor. The parameter set of the first mapping curve includes one or more parameters in the data related to the mapping curve. For example, the data related to the S-shaped curve may include a, b, p, n, m, k. 1 , k 2 , and k 3 The parameter set of the first mapping curve may include all eight parameters or may include only some of the eight parameters, where each of the some of the parameters is a rational number.

[0122] Optionally, data related to the video data may alternatively be extracted directly from the video content without being transmitted based on dynamic metadata.

[0123] The parameter set of the first mapping curve corresponds to a first maximum target system display luminance, i.e., one or more parameters in the parameter set of the first mapping curve are generated by using the first maximum target system display luminance as a target or are related to the first maximum target system display luminance. The front end may include the parameter set of the first mapping curve and the first maximum target system display luminance in the dynamic metadata. Alternatively, only the parameter set of the first mapping curve may be held in the dynamic metadata, in which case the parameter set of the first mapping curve corresponds to a default maximum target system display luminance, and the front end and the back end have agreed in advance on the default maximum target system display luminance. In this way, after receiving the parameter set of the first mapping curve, the back end may know the first maximum target system display luminance by default, provided that the front end includes the dynamic metadata in the parameter set of the first mapping curve corresponding to the dynamic metadata. When the backend needs to adjust the peak target system display luminance based on the actual situation, one or more parameters in the parameter set of the first mapping curve can be adjusted based on the relationship between the actual luminance and the default peak target system display luminance to obtain a parameter set of a new mapping curve corresponding to the actual luminance.

[0124] It should be noted that the contents and data format included in the video data in the present application are not specifically limited. For example, in terms of the color space of the pixel data, the format of the video data may be YUV or RGB. In terms of the bit width of the data, the video data may include 8 bits, 10 bits, 12 bits, or the like. The contents included in the dynamic metadata are not specifically limited either. For example, the data related to the mapping curve may be parameters related to the aforementioned S-shaped curve, may be parameters related to the aforementioned Bezier curve, or may be parameters related to the S-shaped curve.

[0125] Step 1002: Obtain a display brightness parameter set.

[0126] In the present application, a display brightness parameter set may be obtained based on device information. The display brightness parameter set includes a maximum display brightness (MaxDisplay) and / or a minimum display brightness (MinDisplay) of a display device. The device information may be a device parameter written to the device before shipment, or may be information provided by a manufacturer. The device information indicates attributes and capabilities of the device.

[0127] Maximum display luminance refers to the maximum illuminance that can be presented by a device while displaying. Minimum display luminance refers to the minimum illuminance that can be presented by a device while displaying. Minimum display luminance is usually 0 cd / m 2 or 1cd / m 2 The minimum display luminance may alternatively be set to other values ​​based on the display capabilities of the device, which is not specifically limited in this application.

[0128] Step 1003: Obtain a set of adjustment coefficients.

[0129] The adjustment factor set includes information indicating that one or more parameters associated with the mapping curve need to be adjusted.

[0130] The adjustment coefficient set includes one or more adjustment coefficients, and the one or more adjustment coefficients correspond to one or more parameters in the parameter set of the first mapping curve. As mentioned above, the parameter set of the first mapping curve includes one or more parameters related to the mapping curve, and one adjustment coefficient in the adjustment coefficient set may correspond to one parameter in the parameter set of the first mapping curve, i.e., each parameter related to the mapping curve corresponds to one adjustment coefficient. In addition, one adjustment coefficient in the adjustment coefficient set may alternatively correspond to multiple parameters in the parameter set of the first mapping curve, i.e., each adjustment coefficient corresponds to multiple parameters related to the mapping curve. Alternatively, the adjustment coefficient set may not include an adjustment coefficient corresponding to one or more parameters in the parameter set of the first mapping curve, i.e., one or more parameters related to the mapping curve in the parameter set of the first mapping curve do not correspond to any adjustment coefficient in the adjustment coefficient set. In this case, it indicates that the parameter does not need to be adjusted. Alternatively, the parameter set of the first mapping curve may include parameters that do not correspond to any adjustment factor in the adjustment factor set, i.e., one or more adjustment factors do not correspond to any parameters in the parameter set of the first mapping curve, which indicates that the front end does not send the parameters to the back end at this stage, but needs to adjust the parameters. The back end may obtain the parameters by using other methods.

[0131] In this application, the device may obtain the adjustment coefficient set from the dynamic metadata. Before transmitting the bitstream, the front end may set a manner of adjusting one or more parameters related to the mapping curve, write the adjustment manner into the dynamic metadata, and send the dynamic metadata to the back end, or the device obtains the adjustment coefficient set based on a preset value. The preset value may correspond to one or more parameters related to the mapping curve, and may be an adjustment mode index. The device obtains the adjustment coefficients corresponding to the preset values ​​of one or more parameters related to the mapping curve based on the index.

[0132] Step 1004: Adjust one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and the adjustment coefficient set to obtain a parameter set of a second mapping curve.

[0133] The parameter set of the second mapping curve includes one or more adjusted parameters, and the one or more adjusted parameters correspond to one or more parameters in the parameter set of the first mapping curve and are obtained by adjusting one or more parameters in the parameter set of the first mapping curve. It should be noted that the parameters included in the parameter set of the second mapping curve may correspond one-to-one to the parameters included in the parameter set of the first mapping curve. That is, each parameter included in the parameter set of the first mapping curve is added to the parameter set of the second mapping curve after being adjusted. This is applicable to the case where the parameter set of the first mapping curve includes all parameters related to the mapping curve. The parameters included in the parameter set of the second mapping curve may alternatively be parameters not included in the parameter set of the first mapping curve. That is, each parameter included in the parameter set of the first mapping curve is added to the parameter set of the second mapping curve after being adjusted, and some other parameters are obtained by the device by using other methods, and then the some parameters are added to the parameter set of the second mapping curve after being adjusted or without being adjusted. This is applicable to the case where the parameter set of the first mapping curve includes some parameters related to the mapping curve, and the data included in the parameter set of the second mapping curve may alternatively be a set of adjusted parameters of the first mapping curve and unadjusted parameters of the first mapping curve.

[0134] In the following, the first parameter is used as an example to describe the method for obtaining the parameter set of the second mapping curve in this application, where the first parameter is any parameter in the parameter set of the first mapping curve.

[0135] Method 1: Calculate the adjusted first parameter according to formula (1). P a =P b +k×PΔ (1) Here, P a represents the adjusted first parameter, and P b represents the first parameter, P Δ represents an adjustment coefficient corresponding to the first parameter,

number

number

[0136] The value of MaxDisplay in this application is an absolute luminance value, for example, 100 cd / m 2 or 1000cd / m 2 and the value of MaxDisplay may be a normalized luminance value, the range of which is 0-1, and the value of MaxDisplay may be a luminance value in the PQ domain, e.g., 0-10000cd / m 2 It should be noted that in this application, M TPLThe value is the absolute luminance value, e.g., 100cd / m 2 or 1000cd / m 2 M may be TPL The values ​​of may be normalized luminance values, and M TPL The value range of is 0-1, and M TPL The value of is the luminance value in the PQ domain, e.g., 0-10000cd / m 2 In this application, the value of M may be an absolute luminance value, e.g., 100 cd / m 2 or 1000cd / m 2 and the value of M may be a normalized luminance value, the value of M may range from 0-1, and the value of M may be a luminance value in the PQ domain, e.g., 0-10000cd / m 2 This is also true for the following method, and the details will not be described again.

[0137] All or some of the parameters in the parameter set of the first mapping curve may be adjusted according to the above formula (1) to obtain adjusted parameters added to the parameter set of the second mapping curve.

[0138] Method 2: Calculate the adjusted first parameter according to equation (2). P a =(1-w)×P b +w×P m (2) Where: P a represents the adjusted first parameter, and P b represents the first parameter,

number

number

[0139] P m It should be noted that P may be obtained based on more or fewer parameters than the above-mentioned maximum display luminance, minimum display luminance, memorizable maximum luminance, memorizable minimum luminance, memorizable average value, and / or memorizable variation range. This is not specifically limited in this application. This is also true for the following method, and the details will not be described again. In this application, P m In order to obtain the above, we refer to the method of generating a mapping curve in the related art, which is not specifically limited in this application.

[0140] It should be noted that in method 2, the device may obtain another parameter set related to the mapping curve based on data related to the video data, such as the storable maximum luminance, minimum luminance, average luminance, and / or variation range of the video in the memory, the maximum display luminance of the device, the minimum display luminance of the device, and / or other parameters not directly related to the mapping curve. The parameters in the parameter set may correspond one-to-one to the parameters in the parameter set of the first mapping curve, or the parameter set may include parameters that do not exist in the parameter set of the first mapping curve. In this way, the device may obtain two parameter sets related to the mapping curve. One of the sets may come from the front end, and the other set may be obtained by the device through calculation based on the characteristics of the video data. Then, the two parameter sets are fused by using a weighting method to obtain a final parameter set. In this way, a more flexible brightness processing method may be used at different positions of the video by adjusting the weights of the two parameter sets to obtain a video that better meets the display performance of the device.

[0141] In addition, P m The method for calculating the parameter ( ) may be further applied to the parameter related to the mapping curve but not included in the parameter set of the first mapping curve. The manner in which the above-mentioned device obtains the parameter by using other methods is similar to this method.

[0142] In a possible implementation, the device may obtain a first mapping curve based on the adjusted first parameter and a parameter in the parameter set of the first mapping curve other than the first parameter, and may continue to adjust the first parameter when the luminance of the video obtained by performing tone mapping based on the first mapping curve is higher than the original luminance of the video, thereby ensuring that the mapping curve does not include a portion higher than the straight line satisfying x=y.

[0143] In a possible implementation, the adjusted first parameter is analyzed according to a preset rule, and if the adjusted first parameter meets the preset rule, the adjustment of the first parameter is continued. For example, a ×r a >Tp a Here, p a is the first parameter, r a is a scaling factor, and Tp a is a certain threshold, for example, 3.2363. In this case, p a is adjusted to an upper limit Tp, where Tp=Tp a / r a Alternatively, r a A predefined table (Ta, Tp) can be searched for Tp corresponding to p a If >Tp, then p a is adjusted to an upper limit value Tp. It should be noted that if the same value cannot be found by table lookup, the queried value may be determined based on the neighboring values ​​or the weighted average of the neighboring values, or in other manners. The above two inequalities indicate that the mapping curve obtained based on the current parameter set related to the mapping curve includes a part higher than the straight line satisfying x=y. Therefore, a dimension reduction process needs to be performed on the corresponding parameters. It should be noted that in addition to the above two methods, other methods may be used in the present application to ensure that the mapping curve does not include a part higher than the straight line satisfying x=y. This is not particularly limited.

[0144] In a possible implementation, when the parameter set of the first mapping curve includes a scaling factor, the adjusted scaling factor is calculated according to equation (3).

number

[0145] When the scaling factor is included in the acquisition of the mapping curve, the device may calculate the scaling factor based on the acquired one or more adjusted parameters in the parameter set of the second mapping curve and according to formula (3). In this way, the scaling factor is acquired based on the adjusted parameters, so that the finally generated mapping curve better meets the characteristics of the video. The scaling factor determines the degree of scaling of the linear signal value of the pixel of the image frame in the equation of the mapping curve. For example, in the following equation, a is the scaling factor.

number

[0146] In a possible implementation, when the parameter set of the first mapping curve includes a scaling factor, the adjusted scaling factor is calculated according to equation (4).

number

[0147] In a possible implementation, when the parameter set of the first mapping curve includes a scaling factor, the adjusted scaling factor is calculated according to equation (5).

number

[0148] In a possible implementation, when the parameter set of the first mapping curve includes a scaling factor, the adjusted scaling factor is calculated according to equation (6).

number

[0149] In a possible implementation, when the parameter set of the first mapping curve includes an offset coefficient, the adjusted offset coefficient is determined in the following manner: a =MinDisplay, where MinDisplay represents the minimum display luminance, or r a =G, where G represents a preset value and can be a rational number, e.g., 0 or 1.

[0150] When a scaling factor is included in the acquisition of the mapping curve, the device may calculate the scaling factor based on any one of the acquired one or more adjusted parameters in the parameter set of the second mapping curve and according to the above formula. In this way, the scaling factor is acquired based on the adjusted parameters, so that the finally generated mapping curve better meets the characteristics of the video.

[0151] Step 1005: Obtain a mapping curve based on the one or more adjusted parameters in the parameter set of the second mapping curve.

[0152] Based on one or more adjusted parameters, a whole mapping curve or a part of a tone mapping curve can be obtained. The calculation of the curve is to obtain a mapping from normalized HDR / SDR data to normalized display data, and inversely normalize the obtained mapping value to the data actually displayed on the device based on the maximum display luminance and the minimum display luminance of the device.

[0153] It should be noted that the aforementioned inverse normalization may be in a non-linear space or may be a normalization to 0-1 in a linear space. 2 may be 0.001-100000cd / m 2 The scope and process of the inverse normalization are not specifically limited in this application. In addition, obtaining the mapping curve includes not only performing tone-mapping, but also adjusting the mapped video to adjust saturation, color gamut conversion, noise reduction, sharpening, and / or the like of the mapped video before the mapped video is displayed. This is not specifically limited in this application.

[0154] In this application, one or more parameters related to the mapping curve are adjusted. In the adjustment process, the display capability of the backend is taken into account, so that more accurate tone adjustment can be performed on display devices with different brightness. This greatly improves flexibility, and also realizes good presentation effect when the curve parameters are set appropriately.

[0155] In the following, the solution of the embodiment of the method in FIG. 10 is further described by using some specific embodiments. [Embodiment 1]

[0156] For an S-curve, the dynamic metadata may include statistics of the video in memory, such as the maximum luminance that can be stored, the minimum luminance that can be stored, and the average luminance that can be stored, and may include parameters related to the S-curve, such as p, m, a, b, n, K1, K2, and K3.

[0157] 1: Obtain a first mapping curve parameter set and a first maximum target system display luminance.

[0158] Dynamic metadata is Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b}, the parameter set of the first mapping curve that satisfies the maximum target system display luminance (targeted_system_display_maximum_luminance) M TPL , and / or the format or characteristics of the video data, such as a storable maximum brightness MaxSource, a storable minimum brightness MinSource, a storable average brightness AvgSource, and / or a storable variation range of the video in the memory.

[0159] It should be noted that the contents and data format included in the video data in this application are not specifically limited. For example, in terms of the color space of the pixel data, the format of the video data may be YUV or RGB. In terms of the bit width of the data, the video data may include 8 bits, 10 bits, 12 bits, or the like.

[0160] 2: Get the backend display parameter set.

[0161] The display parameter set includes the backend maximum display luminance (MaxDisplay), minimum display luminance (MinDisplay), and / or maximum targeted system display luminance (targeted_system_display_maximum_luminance) T TPL The maximum display luminance, MaxDisplay, may be obtained based on device parameters or information about the manufacturer, and the minimum display luminance, MinDisplay, may be 0 cd / m 2 , 1cd / m 2 , or 0 cd / m 2 or 1cd / m 2 The minimum display luminance may be set to a PQ value corresponding to the minimum display luminance of the device. Alternatively, the minimum display luminance may be set to other values ​​based on the display performance of the device, which is not specifically limited in this application.

[0162] 3: Get the adjustment factor set.

[0163] Corresponding to the parameter set Mb of the first mapping curve described above, the adjustment coefficient set M Δ is {p Δ ,m Δ ,a Δ ,b Δ ,n Δ ,K1 Δ ,K2 Δ , and K3 Δ}. In general, the adjustment coefficient set may be obtained based on metadata or may be preset.

[0164] 4: Adjust one or more parameters in the parameter set of the first mapping curve based on the local maximum display luminance, the first maximum target system display luminance, and a set of adjustment coefficients to obtain a parameter set of a second mapping curve.

[0165] Ma={p a ,m a ,a a ,b a ,n a ,K1 a ,K2 a ,K3 a}, Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b One or more parameters in the parameter set of the first mapping curve that satisfies} are adjusted. The main steps are as follows:

[0166] A:Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b} is defined as the parameter set of the first mapping curve Q b (Q b is an arbitrary parameter in Mb). Δ The corresponding adjustment coefficient Q Δ If it contains, Q a =Q b +k×Q Δ otherwise, Q a =Q b It is.

number

number

[0167] B:b a =MinDisplay or b a Set =0.

[0168] C:a a is set by the following formula:

number

[0169] D: If the mapping curve obtained based on the current parameter set of the second mapping curve includes a portion higher than the straight line satisfying x=y, p a The main methods are as follows:

[0170] p a ×a a >Tp a It is considered that the mapping curve includes a portion higher than the straight line satisfying x=y when Tp a is a preset value, and Tp = Tp a / a a or a a A pre-set table (Ta, Tp) is searched for Tp corresponding to p a If >Tp, then p ais adjusted to an upper limit value Tp. It should be noted that if an identical value cannot be found by table lookup, the queried value may be determined based on a proximity value or a weighted average of the proximity values, or in other manners.

[0171] In this case, the scaling factor a a is calculated according to the following formula:

number

number

number

[0172] L=MaxSource and L1=MinSource.

[0173] a a The calculation of is also true for the following method, and the details will not be explained again.

[0174] 5: Obtain a mapping curve based on one or more adjusted parameters in the parameter set of the second mapping curve. The process of obtaining a mapping curve is essentially a process of obtaining a normalized optical or electrical signal based on the aforementioned parameter set.

[0175] For a function calculation related to one or more adjusted parameters in the parameter set of the second mapping curve obtained based on one or more adjusted parameters in the parameter set of the second mapping curve, the mapping curve may be obtained according to the following formula:

number

number

number

number

[0176] The parameters {p, m, a, b, n, K1, K2, and K3} in the formula are all derived from the parameter set of the second mapping curve. Each of L and L' is a normalized electrical or optical signal, L' is a rational number having a value range of 0.0-1.0, L is a rational number having a value range of 0.0-1.0, a value range of 0.0-1.0, b value range of 0.0-1.0, p, n, and m value range of 0.1-N, N is a rational number greater than 0.1, and K1, K2, and K3 are rational numbers. The calculation of L' is also true for the following method, and the details will not be described again.

[0177] It should be noted that all of the above four formulas can be used to obtain the mapping curve, but the differences lie in one or more adjusted parameters related to the mapping curve and in the parameter set of the second mapping curve. The mapping curve obtained according to the formulas may be the whole curve, or a segment or part of the segmented mapping curve. [Embodiment 2]

[0178] For an S-curve, the dynamic metadata may include statistics of the video in memory, such as the maximum luminance that can be stored, the minimum luminance that can be stored, the average luminance that can be stored, and the range of variation that can be stored, and may include parameters related to the S-curve, such as p, m, a, b, n, K1, K2, and K3.

[0179] 1: Obtain a first mapping curve parameter set and a first maximum target system display luminance.

[0180] 2: Get the backend display parameter set.

[0181] 3: Get the adjustment factor set.

[0182] The technical principles of Steps 1 to 3 in Embodiment 2 are similar to those of Steps 1 to 3 in Embodiment 1, respectively, and the details are not described again in this specification.

[0183] 4: Adjust one or more parameters in the parameter set of the first mapping curve based on the local maximum display luminance, the first maximum target system display luminance, and a set of adjustment coefficients to obtain a parameter set of a second mapping curve.

[0184] Ma={p a ,m a ,a a ,b a ,n a ,K1 a ,K2 a ,K3 a}, Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b One or more parameters in the parameter set of the first mapping curve that satisfies} are adjusted. The main steps are as follows:

[0185] A: Based on the following parameters in the metadata: maximum display luminance MaxDisplay, minimum display luminance MinDisplay, maximum luminance that can be stored MaxSource, minimum luminance that can be stored MinSource, average value that can be stored AvgSource, variation range that can be stored, and / or other parameters that are not directly related to the mapping curve, Mm={p m ,m m ,a m ,b m ,n m ,K1 m ,K2 m ,K3 m} and obtain another set of parameters related to the mapping curve, where one or more parameters in Mm are the parameters P m It can be used as.

[0186] B:Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b} is defined as the parameter set of the first mapping curve Q b (Q b is an arbitrary parameter in Mb). m Mm={p m ,m m ,a m ,b m ,n m ,K1 m ,K2 m ,K3 m}, Q a =(1-w)×Q b +w×Q m otherwise, Q a =Q b It is.

number

number

[0187] C:b a =MinDisplay or ba Set =0.

[0188] D: Scaling coefficient a a For the calculation formula, please refer to embodiment 1. The details will not be described again in this specification.

[0189] 5: Obtain a mapping curve based on one or more adjusted parameters in the parameter set of the second mapping curve.

[0190] The technical principle of step 5 in embodiment 2 is similar to that of step 5 in embodiment 1, and the details are not described again in this specification. [Embodiment 3]

[0191] For an S-curve, the dynamic metadata may include statistics of the video in memory, such as the maximum luminance that can be stored, the minimum luminance that can be stored, the average luminance that can be stored, and the range of variation that can be stored, and may include parameters related to the S-curve, such as p, m, a, b, n, K1, K2, and K3.

[0192] 1: Obtain a first mapping curve parameter set and a first maximum target system display luminance.

[0193] 2: Get the backend display parameter set.

[0194] 3: Get the adjustment factor set.

[0195] The technical principles of Steps 1 to 3 in Embodiment 3 are similar to those of Steps 1 to 3 in Embodiment 1, respectively, and the details are not described again in this specification.

[0196] 4: Adjust one or more parameters in the parameter set of the first mapping curve based on the local maximum display luminance, the first maximum target system display luminance, and a set of adjustment coefficients to obtain a parameter set of a second mapping curve.

[0197] Ma={p a ,m a ,a a ,b a ,n a ,K1 a ,K2 a ,K3 a}, Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b One or more parameters in the parameter set of the first mapping curve that satisfies} are adjusted. The main steps are as follows:

[0198] A: Based on the following parameters in the metadata: maximum display luminance MaxDisplay, minimum display luminance MinDisplay, maximum luminance that can be stored MaxSource, minimum luminance that can be stored MinSource, average value that can be stored AvgSource, variation range that can be stored, and / or other parameters that are not directly related to the mapping curve, Mm={p m ,m m ,a m ,b m ,n m ,K1 m ,K2 m ,K3 m} and obtain another set of parameters related to the mapping curve, where one or more parameters in Mm are the parameters P m It can be used as.

[0199] B:Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b} is defined as the parameter set of the first mapping curve Q b (Q bis an arbitrary parameter in Mb). m Mm={p m ,m m ,a m ,b m ,n m ,K1 m ,K2 m ,K3 m}, Q a =(1-w)×Q b +w×Q m otherwise, Q a =Q b It is.

number

number

[0200] C:b a =MinDisplay or b a Set =0.

[0201] D:a a is set by the following formula:

number

[0202] E: If the mapping curve obtained based on the current parameter set of the second mapping curve includes a portion higher than the straight line satisfying x=y, p aThe main methods are as follows:

[0203] p a ×a a >Tp a It is considered that the mapping curve includes a portion higher than the straight line satisfying x=y when Tp a is a preset value, and Tp = Tp a / a a or a a A pre-set table (Ta, Tp) is searched for Tp corresponding to p a If >Tp, then p a is adjusted to an upper limit value Tp. It should be noted that if an identical value cannot be found by table lookup, the queried value may be determined based on a proximity value or a weighted average of the proximity values, or in other manners.

[0204] Scaling factor a a For the calculation formula, please refer to embodiment 1. The details will not be described again in this specification.

[0205] 5: Obtain a mapping curve based on one or more adjusted parameters in the parameter set of the second mapping curve.

[0206] The technical principle of step 5 in embodiment 3 is similar to that of step 5 in embodiment 1, and the details are not described again in this specification. [Embodiment 4]

[0207] For an S-curve, the dynamic metadata may include statistics of the video in memory, such as the maximum luminance that can be stored, the minimum luminance that can be stored, and the average luminance that can be stored, and may include parameters related to the S-curve, such as p, m, a, b, n, K1, K2, and K3.

[0208] 1: Obtain a first mapping curve parameter set and a first maximum target system display luminance.

[0209] 2: Get the backend display parameter set.

[0210] 3: Get the adjustment factor set.

[0211] The technical principles of Steps 1 to 3 in Embodiment 4 are similar to those of Steps 1 to 3 in Embodiment 1, respectively, and the details are not described again in this specification.

[0212] 4: Adjust one or more parameters in the parameter set of the first mapping curve based on the local maximum display luminance, the first maximum target system display luminance, and a set of adjustment coefficients to obtain a parameter set of a second mapping curve.

[0213] Ma={p a ,m a ,a a ,b a ,n a ,K1 a ,K2 a ,K3 a}, Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b One or more parameters in the parameter set of the first mapping curve that satisfies} are adjusted. The main steps are as follows:

[0214] A:Mb={p b ,m b ,a b ,b b ,n b ,K1 b ,K2 b ,K3 b} is defined as the parameter set of the first mapping curve Q b (Q b is an arbitrary parameter in Mb). ΔThe corresponding adjustment coefficient Q Δ If it contains, Q a =Q b +k×Q Δ otherwise, Q a =Q b It is.

number

number

[0215] B:b a =MinDisplay or b a Set =0.

[0216] Scaling factor a a For the calculation formula, please refer to embodiment 1. The details will not be described again in this specification.

[0217] 5: Obtain a mapping curve based on one or more adjusted parameters in the parameter set of the second mapping curve.

[0218] The technical principle of step 5 in embodiment 4 is similar to that of step 5 in embodiment 1, and the details are not described again in this specification. [Embodiment 5]

[0219] This embodiment is used to describe a pre-operational stage of a process of obtaining a basic HDR curve (parameter) in any one of the first to fourth embodiments, and specifically includes the following stages:

[0220] 1: Obtain the base curve parameter Stone_mapping from the dynamic metadata (metadata) information.

[0221] m_p, m_a, m_m, m_n, m_b, K1, K2, and K3 are obtained based on the tone mapping identifier tone_mapping_mode and the base curve identifier base_flag in the metadata information, and non-existent parameters are set to the assigned value N_A.

[0222] 2: The maximum correction luminance value max_lum of the frame to be processed and the minimum luminance value min_lum of the frame to be processed are obtained from the metadata information.

[0223] The maximum correction luminance value max_lum of the frame to be processed is updated.

[0224] 3:P tone_mapping To obtain the base curve parameter S tone_mapping Update parameters that have unassigned values ​​in

[0225] A:When tone_mapping_mode is 0, the following base curve parameters are called to obtain the processing update parameters.

[0226] The inputs are the maximum display luminance MaxDisplay (value in the PQ domain) in the display luminance range of the display device, the minimum display luminance MinDisplay (value in the PQ domain) in the display luminance range of the display device, and metadata information. The output is the base curve parameters P tone_mapping It is.

[0227] (1) Set m_m, m_n, K1, K2, and K3 to preset values ​​of 2.4, 1, 1, 1, and 1, respectively. After the above parameters are preset, we obtain the following curves.

number

[0228] (2) Set m_b to MinDisplay.

[0229] (3) Calculate m_p based on average_maxrgb(avgL) in the metadata information.

number

[0230]

number

[0231] (4) Update m_p based on the maximum corrected luminance value max_lum.

number

[0232]

number

[0233] (5) Based on m_p, m_m, m_n, m_b, K1, K2, and K3, H(L)

number

number

[0234] MaxSource represents the maximum corrected luminance value max_lum (in the PQ domain) of the frame to be processed, and MinSource represents the minimum luminance value min_lum (in the PQ domain) of the frame to be processed.

[0235] B: When tone_mapping_mode is 1, if the maximum target system display luminance targeted_system_display_maximum_luminance is equal to MaxDisplay, set m_p, m_a, m_m, m_n, m_b, K1, K2, and K3 to m_p_0, m_a_0, m_m_0, m_n_0, m_b_0, K1_0, K2_0, and K3_0; otherwise, adjust the base curve parameters by using any one of the solutions from embodiment 1 to embodiment 4.

[0236] When entering the aforementioned branch B, i.e., when tone_mapping_mode is 1, it should be noted that the decision process of "when the maximum target system display luminance targeted_system_display_maximum_luminance is equal to MaxDisplay, set m_p, m_a, m_m, m_n, m_b, K1, K2, and K3 to m_p_0, m_a_0, m_m_0, m_n_0, m_b_0, K1_0, K2_0, and K3_0" is an optional stage, and the base curve parameters can be directly adjusted by using any one of the solutions from embodiment 1 to embodiment 4, and the output results are consistent. Performing the decision process of "if the maximum target system display luminance targeted_system_display_maximum_luminance is equal to MaxDisplay, then set m_p, m_a, m_m, m_n, m_b, K1, K2, and K3 to m_p_0, m_a_0, m_m_0, m_n_0, m_b_0, K1_0, K2_0, and K3_0" may reduce the complexity and calculation time in an actual hardware implementation process.

[0237] For example, the implementation of embodiment 1 may be as follows.

[0238] The inputs are the maximum display luminance MaxDisplay (value in the PQ domain) in the display luminance range of the display device, the minimum display luminance MinDisplay (value in the PQ domain) in the display luminance range of the display device, the RGB gamut pixel buffer f[Nframe][3] of the frame to be processed, and m_p_0, m_a_0, m_m_0, m_n_0, m_b_0, K1_0, K2_0, K3_0, targeted_system_display_maximum_luminance(M TPL ), and metadata information including base_param_Delta. The output is the base curve parameters P including m_p, m_a, m_m, m_n, m_b, K1, K2, and K3. tone_mapping It is.

[0239] (1) Set m_m, m_n, K1, K2, and K3 to m_m_0, m_n_0, K1_0, K2_0, and K3_0, respectively.

[0240] (2) Set m_b to MinDisplay.

[0241] (3) Set m_a as follows:

number

[0242] (4) Set m_p as follows:

number

[0243] (5) We obtain the following equation:

number

[0244] (6)Substitute L=MaxSource into the following formula to obtain m_a.

number

[0245] For example, the implementation of embodiment 2 may be as follows.

[0246] The inputs are the maximum display luminance MaxDisplay (value in the PQ domain) in the display luminance range of the display device, the minimum display luminance MinDisplay (value in the PQ domain) in the display luminance range of the display device, average_maxrgb in the metadata, the RGB gamut pixel buffer f[Nframe][3] of the frame to be processed, and m_p_0, m_m_0, m_n_0, m_a_0, m_b_0, K1_0, K2_0, K3_0, targeted_system_display_maximum_luminance(M TPL ), and metadata information including base_param_Delta. The output is the base curve parameters P including m_p, m_m, m_n, m_a, m_b, K1, K2, and K3. tone_mapping It is.

[0247] (1) Base curve parameters P1 including m_p_1, m_m_1, m_n_1, m_a_1, m_b_1, K1_1, K2_1, and K3_1 tone_mapping Generate.

[0248] (2) Calculate w according to the following formula:

number

[0249] (3) Calculate m_p, m_m, m_n, K1, K2, and K3 according to m_p=(1-w)×m_p_0+w×m_p_1, m_m=(1-w)×m_m_0+w×m_m_1, m_n=(1-w)×m_n_0+w×m_n_1, K1=(1-w)×K1_0+w×K1_1, K2=(1-w)×K2_0+w×K2_1, and K3=(1-w)×K3_0+w×K3_1.

[0250] (4) Set m_b to MinDisplay.

[0251] (5) We obtain the following equation:

number

[0252] (6)Substitute L=MaxSource into the following formula to obtain m_a.

number

[0253] Based on the same inventive idea as the above-mentioned method, an embodiment of the present application further provides a video processing device. Figure 11 is a structural block diagram of a video processing device 1100 configured to implement an embodiment of the present application. As shown in Figure 11, the video processing device 1100 includes an acquisition module 1101 and a processing module 1102. The acquisition module 1101 is configured to: acquire a parameter set of a first mapping curve and a first maximum target system display luminance, the parameter set of the first mapping curve corresponds to a first maximum target system display luminance, the parameter set of the first mapping curve includes one or more parameters related to the mapping curve; acquire a display luminance parameter set, the display luminance parameter set includes a maximum display luminance and / or a minimum display luminance of a display device; and acquire an adjustment coefficient set, the adjustment coefficient set includes one or more adjustment coefficients, the one or more adjustment coefficients correspond to one or more parameters in the parameter set of the first mapping curve. The processing module 1102 is configured to adjust one or more parameters in the parameter set of the first mapping curve based on the display luminance parameter set, the first maximum target system display luminance, and a set of adjustment coefficients to obtain a parameter set of a second mapping curve, wherein the parameter set of the second mapping curve includes the one or more adjusted parameters.

[0254] In a possible implementation, the processing module 1102 specifically: P a =P b +k×P Δ (1) and calculating an adjusted first parameter according to Equation (1), the first parameter being any parameter in the parameter set of the first mapping curve; a represents the adjusted first parameter, and P b represents the first parameter, P Δ represents an adjustment coefficient corresponding to the first parameter,

number

number

[0255] In a possible implementation, the acquisition module 1101 is further configured to acquire one or more of a storable maximum brightness, a storable minimum brightness, a storable average value, and a storable variation range, and acquire an intermediate value of a first parameter based on one or more of a maximum display brightness, a minimum display brightness, a storable maximum brightness, a storable minimum brightness, a storable average value, and a storable variation range, where the first parameter is any parameter in the parameter set of the first mapping curve. The processing module 1102 is specifically configured to: P a =(1-w)×P b +w×P m (2) and calculating an adjusted first parameter according to equation (2), arepresents the adjusted first parameter, and P b represents the first parameter,

number

number

[0256] In a possible implementation, the processing module 1102 is further configured to obtain a first mapping curve based on the adjusted first parameter and parameters in the parameter set of the first mapping curve other than the first parameter, and continue adjusting the first parameter if the luminance of the video obtained by performing tone mapping based on the first mapping curve is higher than the original luminance of the video, or analyze the adjusted first parameter according to a preset rule, and continue adjusting the first parameter if the adjusted first parameter complies with the preset rule.

[0257] In a possible implementation, the processing module 1102 specifically performs the following steps when the parameter set of the first mapping curve includes a scaling factor:

number

[0258] In a possible implementation, the processing module 1102 specifically performs the following steps when the parameter set of the first mapping curve includes a scaling factor:

number

[0259] In a possible implementation, the processing module 1102 specifically performs the following steps when the parameter set of the first mapping curve includes a scaling factor:

number

[0260] In a possible implementation, the processing module 1102 specifically performs the following steps when the parameter set of the first mapping curve includes a scaling factor:

number

[0261] In a possible implementation, the acquisition module 1101 is specifically configured to acquire a parameter set of a first mapping curve and a first maximum target system display luminance from dynamic metadata of a video, or to acquire a parameter set of a first mapping curve from the dynamic metadata and acquire a first maximum target system display luminance corresponding to the parameter set of the first mapping curve based on a specific correspondence.

[0262] In a possible implementation, the acquisition module 1101 is specifically configured to acquire the adjustment coefficient set from dynamic metadata of the video, or to acquire the adjustment coefficient set based on a preset value.

[0263] In a possible implementation, the acquisition module 1101 is specifically configured to directly read one or more adjustment factors, or to acquire an adjustment mode and acquire one or more adjustment factors corresponding to the adjustment mode.

[0264] In a possible implementation, the acquisition module 1101 is specifically configured to acquire a display brightness parameter set based on device information, or to acquire a display brightness parameter set based on pre-set information.

[0265] In a possible implementation, the obtaining module 1101 is further configured to obtain a mapping curve based on one or more adjusted parameters in the parameter set of the second mapping curve.

[0266] It should be further noted that the specific implementation process of the acquisition module 1101 and the processing module 1102 refers to the detailed description in the embodiment of Figure 10. For the sake of conciseness of the specification, the details will not be described again in this specification.

[0267] Those skilled in the art will appreciate that the functionality described in association with the various exemplary logic blocks, modules, and algorithm steps disclosed and described herein may be implemented by hardware, software, firmware, or a combination thereof. If implemented by software, the functionality described in association with the exemplary logic blocks, modules, and steps may be stored on or transmitted via a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium such as a data storage medium, and may include any communication medium that facilitates the transmission of a computer program from one place to another (e.g., according to a communication protocol). In this manner, a computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier. A data storage medium may be any available medium that one or more computers, or one or more processors, can access to obtain instructions, codes, and / or data structures for implementing the techniques described herein. A computer program product may include a computer-readable medium.

[0268] By way of example, and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that can store required program code in the form of instructions or data structures or that can be accessed by a computer. In addition, any connection is referred to as a computer-readable medium, as appropriate. For example, if instructions are transmitted from a website, server, or other remote source over coaxial cable, fiber optic, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio waves, or microwave, the coaxial cable, fiber optic, twisted pair, DSL, or wireless technologies such as infrared, radio waves, or microwave are included within the definition of media. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals, or other transitory media, and in fact refer to non-transitory tangible storage media. As used herein, disk and disc include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), and Blu-ray discs. Disks typically replicate data magnetically, while discs replicate data optically by using lasers. Combinations of the above are also included within the scope of computer readable media.

[0269] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or equivalent integrated circuits or discrete logic circuits. Thus, the term "processor" as used herein may refer to the foregoing structures, or any other structures applicable to implementing the techniques described herein. In addition, in some aspects, the functionality described in connection with the exemplary logic blocks, modules, and stages described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a combined codec. In addition, the techniques may be fully implemented in one or more circuits or logic elements.

[0270] The techniques of the present application may be implemented in a variety of apparatuses or devices, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described herein to highlight functional aspects of devices configured to perform the disclosed techniques, but need not necessarily be realized by different hardware units. Indeed, as discussed above, the various units may be combined into encoder and decoder hardware units in combination with appropriate software and / or firmware, or may be provided by interoperable hardware units (including one or more processors as discussed above).

[0271] In the above embodiments, the description of each embodiment has a respective focus. For parts not described in detail in one embodiment, please refer to the related descriptions in other embodiments.

[0272] The above description is merely an exemplary specific implementation of the present application, and is not intended to limit the protection scope of the present application. Any variations or replacements that are easily conceived by those skilled in the art within the technical scope disclosed in this application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. [Other possible items] [Item 1] 1. A method for obtaining parameters of a mapping curve, comprising the steps of: obtaining a first mapping curve parameter set and a first maximum target system display luminance, the first mapping curve parameter set corresponding to the first maximum target system display luminance, the first mapping curve parameter set including one or more parameters associated with a mapping curve; obtaining a display luminance parameter set, the display luminance parameter set including a maximum display luminance and / or a minimum display luminance of a display device; obtaining a set of adjustment coefficients, the set of adjustment coefficients including one or more adjustment coefficients corresponding to the one or more parameters in a parameter set of the first mapping curve; adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, wherein the second mapping curve parameter set includes one or more adjusted parameters; A method comprising: [Item 2] adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, comprising: P a =P b +k×P Δ (1) calculating an adjusted first parameter according to formula (1), wherein the first parameter is any parameter in a parameter set of the first mapping curve, and the adjusted first parameter belongs to a parameter set of the second mapping curve; having P a represents the adjusted first parameter, P b represents the first parameter, P Δ represents an adjustment coefficient corresponding to the first parameter,

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

Claims

1. 1. A method for obtaining parameters of a mapping curve, comprising the steps of: obtaining a first mapping curve parameter set and a first maximum target system display luminance, the first mapping curve parameter set corresponding to the first maximum target system display luminance, the first mapping curve parameter set including one or more parameters associated with a mapping curve; obtaining a display luminance parameter set, the display luminance parameter set including a maximum display luminance and / or a minimum display luminance of a display device; obtaining a set of adjustment coefficients, the set of adjustment coefficients including one or more adjustment coefficients corresponding to the one or more parameters in a parameter set of the first mapping curve; adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the second mapping curve parameter set including one or more adjusted parameters; Equipped with adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the step of: P a =P b +k×P Δ (1) calculating an adjusted first parameter according to equation (1), the first parameter being any parameter in a parameter set of the first mapping curve, and the adjusted first parameter belonging to a parameter set of the second mapping curve; having P a represents the adjusted first parameter, P b represents the first parameter, P Δ represents an adjustment factor corresponding to the first parameter, [0010] or [0025] and MaxDisplay>M TPL When a=1, or MaxDisplay≦M TPL When a=-1, MaxDisplay represents the maximum display luminance, and M TPL represents the first maximum target system display luminance, N represents an adjustment control parameter, and M represents a preset luminance value.

2. Prior to the step of adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the method further comprises: obtaining one or more of a maximum luminance, a minimum luminance, an average value, and a variation range of a content to be displayed; and obtaining an intermediate value of a first parameter based on one or more of the maximum display luminance, the minimum display luminance, the maximum luminance, the minimum luminance, the average value, and the variation range, the first parameter being any parameter in a parameter set of the first mapping curve. Further equipped with adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the step of: P a =(1-w)×P b +w×P m (2) calculating an adjusted first parameter according to equation (2), the adjusted first parameter belonging to a parameter set of the second mapping curve; having P a represents the adjusted first parameter, P b represents the first parameter, [0030] or [0045] And P Δ represents an adjustment coefficient corresponding to the first parameter, MaxDisplay represents the maximum display brightness, M TPL represents the first maximum target system display luminance, N represents an adjustment control parameter, M represents a preset luminance value, P m represents the intermediate value of the first parameter, The method of claim 1.

3. 1. A method for obtaining parameters of a mapping curve, comprising the steps of: obtaining a first mapping curve parameter set and a first maximum target system display luminance, the first mapping curve parameter set corresponding to the first maximum target system display luminance, the first mapping curve parameter set including one or more parameters associated with a mapping curve; obtaining a display luminance parameter set, the display luminance parameter set including a maximum display luminance and / or a minimum display luminance of a display device; obtaining a set of adjustment coefficients, the set of adjustment coefficients including one or more adjustment coefficients corresponding to the one or more parameters in a parameter set of the first mapping curve; adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the second mapping curve parameter set including one or more adjusted parameters; Equipped with Prior to the step of adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the method further comprises: obtaining one or more of a maximum luminance, a minimum luminance, an average value, and a variation range of a content to be displayed; and obtaining an intermediate value of a first parameter based on one or more of the maximum display luminance, the minimum display luminance, the maximum luminance, the minimum luminance, the average value, and the variation range, the first parameter being any parameter in a parameter set of the first mapping curve. Further equipped with adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the step of: P a =(1-w)×P b +w×P m (2) calculating an adjusted first parameter according to equation (2), the adjusted first parameter belonging to a parameter set of the second mapping curve; having P a represents the adjusted first parameter, P b represents the first parameter, [0030] or [0045] And P Δ represents an adjustment coefficient corresponding to the first parameter, MaxDisplay represents the maximum display brightness, M TPL represents the first maximum target system display luminance, N represents an adjustment control parameter, M represents a preset luminance value, P m represents the intermediate value of the first parameter.

4. After the step of calculating an adjusted first parameter according to a formula, the method further comprises: obtaining a first mapping curve based on the adjusted first parameter and a parameter in the parameter set of the first mapping curve other than the first parameter, and continuing to adjust the first parameter when a luminance of the content to be displayed obtained by performing tone mapping based on the first mapping curve is higher than an original luminance of the content to be displayed; or analyzing the adjusted first parameter according to a preset rule; and continuing to adjust the first parameter if the adjusted first parameter complies with the preset rule. The method of claim 2 or 3, further comprising:

5. adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the step of: When the parameter set of the first mapping curve includes a scaling factor, [0050] Calculating the adjusted scaling factor according to equation (3). having r a represents the adjusted scaling factor, P1 a , P2 a , ... denote parameters in the parameter set of the second mapping curve, MaxSource denotes the maximum luminance of the content to be displayed in memory, and f(MaxSource, P1 a , P2 a , ...) represents a function calculation relating the maximum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve, and MaxDisplay represents the maximum display luminance; 5. The method according to any one of claims 2 to 4.

6. adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the step of: When the parameter set of the first mapping curve includes a scaling factor, [006] Calculating the adjusted scaling factor according to equation (4). having r a represents the adjusted scaling factor, P1 a , P2 a , ... represent parameters in the parameter set of the second mapping curve, MaxSource represents the maximum luminance of the content to be displayed in memory, MinSource represents the minimum luminance of the content to be displayed in memory, and f(MaxSource, P1 a , P2 a f(MinSource, P1, ...) represents a function calculation relating the maximum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve; a , P2 a , ...) represents a function calculation relating the minimum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve, where MaxDisplay represents the maximum display luminance and MinDisplay represents the minimum display luminance; 5. The method according to any one of claims 2 to 4.

7. adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the step of: When the parameter set of the first mapping curve includes a scaling factor, [0070] Calculating the adjusted scaling factor according to equation (5). having r a represents the adjusted scaling factor, P1 a , P2 a , ... denote parameters in the parameter set of the second mapping curve, MaxSource denotes the maximum luminance of the content to be displayed in memory, and f(MaxSource, P1 a , P2 a , ...) represents a function calculation relating the maximum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve, where MaxDisplay represents the maximum display luminance and MinDisplay represents the minimum display luminance; 5. The method according to any one of claims 2 to 4.

8. adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the step of: When the parameter set of the first mapping curve includes a scaling factor, [0080] Calculating the adjusted scaling factor according to equation (6) having r a represents the adjusted scaling factor, P1 a , P2 a , ... represent parameters in the parameter set of the second mapping curve, MaxSource represents the maximum luminance of the content to be displayed in memory, MinSource represents the minimum luminance of the content to be displayed in memory, and f(MaxSource, P1 a , P2 a f(MinSource, P1, ...) represents a function calculation relating the maximum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve; a , P2 a , ...) represents a function calculation relating the minimum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve, and MaxDisplay represents the maximum display luminance.

5. The method according to any one of claims 2 to 4.

9. The step of obtaining a first mapping curve parameter set and a first maximum target system display luminance comprises: obtaining the first mapping curve parameter set and the first maximum target system display luminance from dynamic metadata of the content to be displayed; or obtaining a parameter set of the first mapping curve from dynamic metadata; and obtaining the first maximum target system display luminance corresponding to the parameter set of the first mapping curve based on a specific correspondence.

9. The method according to claim 2, wherein the

10. The step of obtaining a set of adjustment coefficients comprises: deriving the set of adjustment factors from the dynamic metadata of the content to be displayed; or Obtaining the set of adjustment factors based on a preset value.

10. The method of claim 9, having the following structure:

11. The step of obtaining a set of adjustment coefficients comprises: directly reading one or more adjustment factors; or Obtaining an adjustment mode and obtaining one or more adjustment factors corresponding to the adjustment mode.

11. The method of claim 10, comprising:

12. The step of obtaining a display luminance parameter set includes: obtaining the display brightness parameter set based on device information; or obtaining the display luminance parameter set based on preset information; 12. The method according to claim 1 , comprising:

13. After adjusting the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, the method further comprises: obtaining the mapping curve based on the one or more adjusted parameters in the parameter set of the second mapping curve. The method of claim 1 , further comprising:

14. an acquiring module configured to: acquire a first mapping curve parameter set and a first maximum target system display luminance, the first mapping curve parameter set corresponding to the first maximum target system display luminance, the first mapping curve parameter set including one or more parameters related to a mapping curve; acquire a display luminance parameter set including a maximum display luminance and / or a minimum display luminance of a display device; and acquire an adjustment coefficient set, the adjustment coefficient set including one or more adjustment coefficients, the one or more adjustment coefficients corresponding to the one or more parameters in the first mapping curve parameter set; a processing module configured to adjust the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, wherein the second mapping curve parameter set includes one or more adjusted parameters; Equipped with Specifically, the processing module includes: P a =P b +k×P Δ (1) Calculating an adjusted first parameter according to Equation (1), where the first parameter is any parameter in a parameter set of the first mapping curve, and the adjusted first parameter belongs to a parameter set of the second mapping curve; P a represents the adjusted first parameter, P b represents the first parameter, P Δ represents an adjustment factor corresponding to the first parameter, [0090] or [0010] and MaxDisplay>M TPL When a=1, or MaxDisplay≦M TPL When a=-1, MaxDisplay represents the maximum display luminance, and M TPL represents the first maximum target system display luminance, N represents an adjustment control parameter, and M represents a preset luminance value.

15. The obtaining module is further configured to obtain one or more of a maximum luminance, a minimum luminance, an average value, and a variation range of a content to be displayed; and obtain an intermediate value of a first parameter based on one or more of the maximum display luminance, the minimum display luminance, the maximum luminance, the minimum luminance, the average value, and the variation range, where the first parameter is any parameter in a parameter set of the first mapping curve; Specifically, the processing module includes: P a =(1-w)×P b +w×P m (2) Calculating an adjusted first parameter according to Equation (2), the adjusted first parameter belonging to a parameter set of the second mapping curve; P a represents the adjusted first parameter, P b represents the first parameter, ##EQU00011## or ##EQU00012## And P Δ represents an adjustment coefficient corresponding to the first parameter, MaxDisplay represents the maximum display brightness, M TPL represents the first maximum target system display luminance, N represents an adjustment control parameter, M represents a preset luminance value, P m represents the intermediate value of the first parameter, 15. A video processing device according to claim 14.

16. an acquiring module configured to: acquire a first mapping curve parameter set and a first maximum target system display luminance, the first mapping curve parameter set corresponding to the first maximum target system display luminance, the first mapping curve parameter set including one or more parameters related to a mapping curve; acquire a display luminance parameter set including a maximum display luminance and / or a minimum display luminance of a display device; and acquire an adjustment coefficient set, the adjustment coefficient set including one or more adjustment coefficients, the one or more adjustment coefficients corresponding to the one or more parameters in the first mapping curve parameter set; a processing module configured to adjust the one or more parameters in the first mapping curve parameter set based on the display luminance parameter set, the first maximum target system display luminance, and the set of adjustment coefficients to obtain a second mapping curve parameter set, wherein the second mapping curve parameter set includes one or more adjusted parameters; Equipped with The obtaining module is further configured to obtain one or more of a maximum luminance, a minimum luminance, an average value, and a variation range of a content to be displayed; and obtain an intermediate value of a first parameter based on one or more of the maximum display luminance, the minimum display luminance, the maximum luminance, the minimum luminance, the average value, and the variation range, where the first parameter is any parameter in a parameter set of the first mapping curve; Specifically, the processing module includes: P a =(1-w)×P b +w×P m (2) Calculating an adjusted first parameter according to Equation (2), the adjusted first parameter belonging to a parameter set of the second mapping curve; P a represents the adjusted first parameter, P b represents the first parameter, ##EQU00011## or ##EQU00012## And P Δ represents an adjustment coefficient corresponding to the first parameter, MaxDisplay represents the maximum display brightness, M TPL represents the first maximum target system display luminance, N represents an adjustment control parameter, M represents a preset luminance value, P m represents the intermediate value of the first parameter.

17. The processing module includes: Obtaining a first mapping curve based on the adjusted first parameter and a parameter in the parameter set of the first mapping curve other than the first parameter, and continuing to adjust the first parameter when a luminance of the content to be displayed obtained by performing tone mapping based on the first mapping curve is higher than an original luminance of the content to be displayed; or Analyzing the adjusted first parameter according to a preset rule, and continuing to adjust the first parameter if the adjusted first parameter complies with the preset rule.

17. A video processing device according to claim 15 or 16, further configured to:

18. Specifically, the processing module includes: When the parameter set of the first mapping curve includes a scaling factor, ##EQU00013## and configured to calculate an adjusted scaling factor according to equation (3); r a represents the adjusted scaling factor, P1 a , P2 a , ... denote parameters in the parameter set of the second mapping curve, MaxSource denotes the maximum luminance of the content to be displayed in memory, and f(MaxSource, P1 a , P2 a , ...) represents a function calculation relating the maximum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve, and MaxDisplay represents the maximum display luminance; Video processing device according to any one of claims 15 to 17.

19. Specifically, the processing module includes: When the parameter set of the first mapping curve includes a scaling factor, ##EQU14## and configured to calculate an adjusted scaling factor according to equation (4); r a represents the adjusted scaling factor, P1 a , P2 a , ... represent parameters in the parameter set of the second mapping curve, MaxSource represents the maximum luminance of the content to be displayed in memory, MinSource represents the minimum luminance of the content to be displayed in memory, and f(MaxSource, P1 a , P2 a f(MinSource, P1, ...) represents a function calculation relating the maximum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve; a , P2 a , ...) represents a function calculation relating the minimum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve, where MaxDisplay represents the maximum display luminance and MinDisplay represents the minimum display luminance; Video processing device according to any one of claims 15 to 17.

20. Specifically, the processing module includes: When the parameter set of the first mapping curve includes a scaling factor, ##EQU00015## and configured to calculate an adjusted scaling factor according to equation (5); r a represents the adjusted scaling factor, P1 a , P2 a , ... denote parameters in the parameter set of the second mapping curve, MaxSource denotes the maximum luminance of the content to be displayed in memory, and f(MaxSource, P1 a , P2 a , ...) represents a function calculation relating the maximum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve, where MaxDisplay represents the maximum display luminance and MinDisplay represents the minimum display luminance; Video processing device according to any one of claims 15 to 17.

21. Specifically, the processing module includes: When the parameter set of the first mapping curve includes a scaling factor, ##EQU00016## and configured to calculate an adjusted scaling factor according to equation (6); r a represents the adjusted scaling factor, P1 a , P2 a , ... represent parameters in the parameter set of the second mapping curve, MaxSource represents the maximum luminance of the content to be displayed in memory, MinSource represents the minimum luminance of the content to be displayed in memory, and f(MaxSource, P1 a , P2 a f(MinSource, P1, ...) represents a function calculation relating the maximum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve; a , P2 a , ...) represents a function calculation relating the minimum luminance of the content to be displayed in the memory and one or more adjusted parameters in the parameter set of the second mapping curve, and MaxDisplay represents the maximum display luminance. Video processing device according to any one of claims 15 to 17.

22. The acquisition module specifically includes: obtaining the first mapping curve parameter set and the first maximum target system display luminance from dynamic metadata of the content to be displayed; or Obtaining a parameter set of the first mapping curve from dynamic metadata; and obtaining the first maximum target system display luminance corresponding to the parameter set of the first mapping curve based on a specific correspondence.

22. A video processing device according to any one of claims 15 to 21, configured to:

23. The acquisition module specifically includes: deriving the set of adjustment factors from the dynamic metadata of the content to be displayed; or Obtaining the set of adjustment factors based on a preset value.

23. The video processing device of claim 22, configured to:

24. The acquisition module specifically includes: directly reading one or more adjustment factors; or Obtaining an adjustment mode and obtaining one or more adjustment factors corresponding to the adjustment mode.

24. The video processing device of claim 23, configured to:

25. The acquisition module specifically includes: Obtaining the display brightness parameter set based on device information; or Obtaining the display luminance parameter set based on preset information.

25. A video processing device according to any one of claims 14 to 24, configured to:

26. The acquisition module includes: obtaining the mapping curve based on the one or more adjusted parameters in the parameter set of the second mapping curve.

26. A video processing device according to any one of claims 14 to 25, further configured to:

27. one or more processors; a memory configured to store one or more programs; Equipped with The one or more programs, when executed by the one or more processors, enable the one or more processors to perform the method according to any one of claims 1 to 13. Terminal device.

28. A computer program product causing a computer to carry out the method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Image processing system and image processing method

    JP2016058848A

  • Display device, display method, and computer program

    JP2017184249A