CN114640799A - Brightness adjusting method and device, storage medium and terminal equipment - Google Patents

Brightness adjusting method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN114640799A
CN114640799A CN202011479594.0A CN202011479594A CN114640799A CN 114640799 A CN114640799 A CN 114640799A CN 202011479594 A CN202011479594 A CN 202011479594A CN 114640799 A CN114640799 A CN 114640799A
Authority
CN
China
Prior art keywords
brightness
video signal
ambient light
light brightness
mapping curve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011479594.0A
Other languages
Chinese (zh)
Inventor
王振亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202011479594.0A priority Critical patent/CN114640799A/en
Publication of CN114640799A publication Critical patent/CN114640799A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a brightness adjusting method, a device, a storage medium and a terminal device, wherein the method comprises the steps of obtaining an ambient light brightness value corresponding to a video signal to be processed; determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value; and adjusting the brightness mapping curve corresponding to the video signal based on the brightness adjusting factor to obtain the adjusted brightness mapping curve. When the video signal is obtained, the brightness adjusting factor corresponding to the video signal is determined based on the ambient light brightness value, so that the brightness mapping curve corresponding to the video signal is adjusted, the influence of ambient light on the video signal can be reduced, and the playing effect of the video signal is improved.

Description

Brightness adjusting method and device, storage medium and terminal equipment
Technical Field
The present application relates to the field of display technologies, and in particular, to a brightness adjustment method and apparatus, a storage medium, and a terminal device.
Background
High Dynamic Range (HDR) is a popular technology in the video industry in recent years, and is also a direction for developing the video industry in the future. Compared with a conventional Standard Dynamic Range (SDR) video signal, the HDR video signal has a larger dynamic range and higher brightness, and is widely applied to terminal devices (e.g., smart televisions, mobile terminals, etc.). However, the terminal device generally has a problem of poor playing effect when playing the HDR video signal.
Disclosure of Invention
The technical problem to be solved by the present application is to provide a brightness adjusting method, apparatus, storage medium and terminal device for overcoming the shortcomings of the prior art.
In order to solve the above technical problem, a first aspect of the embodiments of the present application provides a brightness adjustment method, where the method includes:
acquiring an ambient light brightness value corresponding to a video signal to be processed;
based on the ambient light brightness value, adjusting a brightness mapping curve corresponding to the video signal to obtain an adjusted brightness mapping curve;
and adjusting the brightness of the video signal based on the adjusted brightness mapping curve.
The brightness adjustment method, wherein the video signal is an HDR10 video signal.
According to the brightness adjusting method, the brightness mapping curve is used for reflecting the mapping relation between the initial brightness value corresponding to the video signal and the display brightness value corresponding to the video signal; the adjusting the brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain an adjusted brightness mapping curve specifically includes:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value, and adjusting a brightness mapping curve corresponding to the video signal based on the brightness adjustment factor to obtain an adjusted brightness mapping curve;
and when the ambient light brightness value is smaller than or equal to a preset ambient light brightness threshold value, keeping a brightness mapping curve corresponding to the video signal unchanged.
The brightness adjusting method, wherein when the ambient light brightness value is greater than a preset ambient light brightness threshold, determining a brightness adjusting factor corresponding to the video signal based on the ambient light brightness value specifically includes:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, acquiring candidate ambient light brightness values once at preset time intervals until a preset number of candidate ambient light brightness values are acquired;
and if each candidate environment light brightness value in the preset number of candidate environment light brightness values is larger than a preset environment light brightness threshold value, determining a brightness adjusting factor corresponding to the video signal based on the environment light brightness value.
The brightness adjusting method, wherein when the ambient light brightness value is greater than a preset ambient light brightness threshold, determining a brightness adjusting factor corresponding to the video signal based on the ambient light brightness value specifically includes:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, acquiring candidate ambient light brightness values once at preset time intervals until a preset number of candidate ambient light brightness values are acquired;
if a candidate environment light brightness value in the preset number of candidate environment light brightness values is smaller than or equal to a preset environment light brightness threshold value, keeping a brightness mapping curve corresponding to the video signal unchanged.
The brightness adjusting method comprises the following steps that a determination formula corresponding to the brightness adjusting factor is as follows:
γ=1-0.08log10(Lamb/5)
wherein, gamma is a brightness adjusting factor, and Lamb is an ambient light brightness value.
In the brightness adjustment method, the adjusting a brightness mapping curve corresponding to the video signal based on the brightness adjustment factor to obtain an adjusted brightness mapping curve specifically includes:
and performing gamma compensation on the brightness mapping curve based on the brightness adjusting factor to adjust the brightness mapping curve corresponding to the video signal.
A second aspect of the embodiments of the present application provides a brightness adjusting apparatus, where the adjusting apparatus includes:
the acquisition module is used for acquiring an ambient light brightness value corresponding to a video signal to be processed;
the first adjusting module is used for adjusting a brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain an adjusted brightness mapping curve;
and the second adjusting module is used for adjusting the brightness of the video signal based on the adjusted brightness mapping curve.
A third aspect of embodiments of the present application provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps in the brightness adjustment method as described in any one of the above.
A fourth aspect of the embodiments of the present application provides a terminal device, including: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes the connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the brightness adjustment method as described in any of the above.
Has the advantages that: compared with the prior art, the application provides a brightness adjusting method, a device, a storage medium and a terminal device, wherein the method comprises the steps of obtaining an ambient light brightness value corresponding to a video signal to be processed; determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value; and adjusting the brightness mapping curve corresponding to the video signal based on the brightness adjusting factor to obtain the adjusted brightness mapping curve. When the video signal is obtained, the brightness adjusting factor corresponding to the video signal is determined based on the ambient light brightness value, so that the brightness mapping curve corresponding to the video signal is adjusted, the influence of ambient light on the video signal can be reduced, and the playing effect of the video signal is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings may be obtained according to the drawings without any inventive work.
Fig. 1 is a flowchart of a brightness adjustment method provided in the present application.
Fig. 2 is a schematic flow chart of a brightness adjustment method provided in the present application.
Fig. 3 is a corresponding relationship curve between the brightness adjustment factor and the ambient light brightness value in the brightness adjustment method provided by the present application.
Fig. 4 is a luminance mapping curve after adjustment by the luminance adjustment method provided in this embodiment under different ambient light luminance values.
Fig. 5 is a schematic structural diagram of a brightness adjusting device according to the present application.
Fig. 6 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
The present application provides a brightness adjustment method, a brightness adjustment device, a storage medium, and a terminal device, and in order to make the purpose, technical solution, and effect of the present application clearer and clearer, the present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptops, or tablet computers with touch sensitive surfaces (e.g., touch displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch-sensitive display screen and/or touchpad).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may also include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a video conferencing application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a data camera application, a digital video camera application, a web browsing application, a digital music player application, and/or a digital video playing application, etc.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. The first or more functions of the touch-sensitive surface and the corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical framework (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers and sizes of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process is determined by its function and inherent logic, and should not constitute any limitation on the implementation process of this embodiment.
The inventor finds that High Dynamic Range (HDR) is a popular technology appearing in the video industry in recent years and is a direction for developing the video industry in the future. Compared with the conventional Standard Dynamic Range (SDR) video signal, the HDR video signal has a larger dynamic range and higher brightness. Currently, commonly used HDR standards are HDR10, HLG, Dolby vision, HDR10+, SL-HDR1, and the like. Among them, the PQ EOTF-based HDR10 standard is the most widely used HDR standard in the market today. The HDR10 standard was formulated with a view to theatre environment, and a reference viewing environment of 5Nit was defined, i.e. the best effect was perceived when viewing a film of HDR10 in a dark room with ambient light of 5 Nit. However, as display technology develops, video in HDR10 format is increasingly applied to smart televisions and mobile terminals. However, when a user watches videos through a smart television or a mobile terminal, the user often stays in an environment with high ambient brightness (for example, greater than 5Nit, etc.), which makes the videos in the HDR10 format played by the smart television or the mobile terminal not achieve the best playing effect.
In order to solve the above problem, in the embodiment of the present application, an ambient light brightness value corresponding to a video signal to be processed is obtained; determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value; and adjusting the brightness mapping curve corresponding to the video signal based on the brightness adjusting factor to obtain the adjusted brightness mapping curve. When the video signal is obtained, the brightness adjusting factor corresponding to the video signal is determined based on the ambient light brightness value, so that the brightness mapping curve corresponding to the video signal is adjusted, the influence of ambient light on the video signal can be reduced, and the playing effect of the video signal is improved.
The following description of the embodiments is provided to further explain the present disclosure by way of example in connection with the appended drawings.
The present embodiment provides a brightness adjustment method, as shown in fig. 1 and 2, including:
and S10, acquiring the ambient light brightness value corresponding to the video signal to be processed.
Specifically, the video signal may be a video signal transmitted by an external signal source to a terminal device (for example, a smart television or the like) configured with the brightness adjustment method, where the external signal source is configured to transmit a processed video signal to the terminal device, and the terminal device is configured to process the video signal according to the brightness adjustment method provided in this embodiment. In this embodiment, the video signal may be a High Dynamic Range (HDR) signal, where the Dynamic Range refers to a ratio of maximum luminance to minimum luminance in the video signal. The HDR signal may be an HDR HLG signal, or an HDRPQ signal, etc. In a specific implementation manner of this embodiment, the video signal is an HDR10 video signal, where the HDR10 video signal is a video signal based on the HDR10 standard of PQ EOTF. Based on this, in an implementation manner of this embodiment, the acquiring the ambient light brightness value corresponding to the video signal to be processed specifically includes: when a video signal to be processed is obtained, obtaining a signal type corresponding to the video signal to be processed; when the signal type is an HDR10 video signal, acquiring an ambient light brightness value corresponding to the video signal.
The environment light brightness value is an environment light brightness value of an environment where the terminal device for playing the video signal is located, wherein the environment where the terminal device is located may be a dark light environment, a bright light environment, or the like. The ambient light brightness value may be obtained when the terminal device receives the video signal, or obtained when the terminal device receives a control signal for triggering obtaining of the ambient light brightness value, or the like. In a specific implementation manner of this embodiment, the obtaining of the ambient light brightness value corresponding to the video signal to be processed may specifically be that, after receiving the video signal to be processed, an ambient light brightness value of an environment where a terminal device for playing the video signal is located is obtained, so as to obtain an ambient light brightness value corresponding to the video signal. The terminal device (note, terminal device a) for playing the video signal may be a terminal device (note, terminal device b) configured with the brightness adjustment method provided by this embodiment, or may not be the terminal device configured with the brightness adjustment method provided by this embodiment, and when the terminal device a is not the terminal device b, the terminal device a acquires the ambient light brightness value of its own environment, and the terminal device b receives the ambient light brightness value sent by the terminal device a, so that the terminal device b acquires the ambient light brightness value.
An application scenario of this embodiment is as follows: the terminal device configured with the brightness adjustment method provided by this embodiment is a terminal device for playing a video signal, and the terminal device is configured with an ambient light sensor, and detects an ambient light brightness value at which the terminal device itself is located through the ambient light sensor. Therefore, when the terminal device receives the video signal, the ambient light sensor is started, and the ambient light brightness value of the environment where the terminal device is located is obtained through the ambient light sensor, so that the ambient light brightness value corresponding to the video signal is obtained.
And S20, based on the ambient light brightness value, adjusting the brightness mapping curve corresponding to the video signal to obtain an adjusted brightness mapping curve.
Specifically, the luminance mapping curve is a characteristic curve used in a process of luminance mapping a video signal (e.g., an HDR signal), and is used to reflect a correspondence between a luminance value of the video signal subjected to luminance mapping and two end values of the video signal subjected to luminance mapping. In thatIn this embodiment, the luminance mapping curve is used to reflect a mapping relationship between an initial luminance value corresponding to a video signal and a display luminance value corresponding to the video signal, where the initial luminance value is a display luminance of video content in the video signal and is an abscissa of the luminance mapping curve; the display brightness value is a brightness value of the display brightness of the video content in the video signal after brightness mapping and is a vertical coordinate of a brightness mapping curve. Further, the luminance mapping refers to mapping the luminance of a source image, which refers to a video image frame in an HDR video signal, to the luminance of a target system, which refers to a terminal device configured display system for displaying the video signal. The luminance mapping may adopt an existing luminance mapping manner, for example, in an HDR video signal luminance mapping method based on an RGB space, the method includes: using a luminance mapping formula Cout=(Lout/Lin)*CinWherein L isoutLinear luminance after luminance mapping for HDR signal, LinLinear luminance before luminance mapping for HDR signal, CinLinear signal color component R for luminance mapping of HDR signalsin、GinOr Bin,CoutIs a linear signal color component R after luminance mapping of the HDR signalout、GoutOr Bout
In an implementation manner of this embodiment, after the ambient light brightness value is obtained, the brightness mapping curve corresponding to the video signal is adjusted based on the ambient light brightness value, so that before the brightness mapping curve corresponding to the video signal is adjusted based on the ambient light brightness value, the brightness mapping curve corresponding to the video signal needs to be determined, where the brightness mapping curve may be obtained when the video signal is obtained, or may be obtained after the ambient light brightness value is obtained. In a specific implementation manner, the luminance mapping curve is obtained when a video signal is obtained, and correspondingly, the obtaining of the ambient light luminance value corresponding to the video signal to be processed may specifically include: when a video signal is acquired and a video signal to be processed is acquired, acquiring a signal type corresponding to the video signal to be processed; when the signal type is an HDR10 video signal, analyzing the video signal to obtain video content corresponding to the video information, determining a luminance mapping curve corresponding to the video signal based on the obtained video content and maximum display luminance corresponding to a terminal device used for playing the video signal, and obtaining an ambient light luminance value corresponding to the video signal.
In an implementation manner of this embodiment, the adjusting, based on the ambient light brightness value, a brightness mapping curve corresponding to the video signal to obtain an adjusted brightness mapping curve specifically includes:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value, and adjusting a brightness mapping curve corresponding to the video signal based on the brightness adjustment factor to obtain an adjusted brightness mapping curve;
and when the ambient light brightness value is smaller than or equal to a preset ambient light brightness threshold value, keeping a brightness mapping curve corresponding to the video signal unchanged.
Specifically, the preset ambient light brightness threshold may be preset and is used to measure a basis for determining whether a brightness mapping curve corresponding to the video signal needs to be adjusted, where when the ambient light brightness value is greater than the preset ambient light brightness threshold, it indicates that an environment where a terminal device for playing the video signal is located does not meet a requirement of the video signal, and the brightness mapping curve needs to be adjusted based on the ambient light brightness value; on the contrary, when the ambient light brightness value is less than or equal to the preset ambient light brightness threshold, it indicates that the environment where the terminal device for playing the video signal is located meets the requirement of the video signal, and the brightness mapping curve does not need to be adjusted based on the ambient light brightness value. In a specific implementation manner of this embodiment, the preset ambient light brightness threshold may be 5nit and the like.
The brightness adjustment factor is an adjustment factor determined based on the ambient light brightness value for adjusting the brightness mapping curve, and the brightness adjustment factor is used for adjusting the output value of the brightness mapping curve. For example, if the luminance mapping curve is y ═ f (x), then the luminance adjustment factor is used to adjust y. In an implementation manner of this embodiment, the correspondence between the brightness adjustment factor and the brightness value based on the ambient light may be: and gamma is 1-0.08log10(Lamb/5), wherein gamma is a brightness adjusting factor, and Lamb is an ambient light brightness value. In other words, after the ambient light brightness value is obtained, a brightness adjustment factor corresponding to the ambient light brightness value can be calculated based on the correspondence, so as to adjust the brightness mapping curve corresponding to the video signal based on the brightness adjustment factor. In addition, a relationship curve corresponding to the luminance adjustment factor and the luminance value based on the ambient light may be as shown in fig. 3, where the luminance adjustment factor γ gradually decreases with the increase of the ambient light brightness Lamb, and the gradient is gradually gentle, which is beneficial for the final luminance curve to conform to the visual characteristics of human eyes.
In an implementation manner of this embodiment, the adjusting a luminance mapping curve corresponding to the video signal based on the luminance adjustment factor to obtain an adjusted luminance mapping curve specifically includes:
and performing gamma compensation on the brightness mapping curve based on the brightness adjusting factor to adjust the brightness mapping curve corresponding to the video signal.
Specifically, the gamma adjustment is to adjust the brightness mapping curve by means of gamma compensation, wherein the gamma adjustment can be expressed as output (input)γWherein gamma is a brightness adjustment factor. In this embodiment, the input is a normalized output value of the luminance mapping curve, the input value ranges from 0 to 1, and the output is a value after gamma adjustment. Therefore, the brightness mapping curve is adjusted in a gamma compensation mode, so that the adjusted brightness accords with the visual characteristics of human eyes, and the display effect of the video signal is improved. For example, as shown in fig. 4, for a luminance mapping curve of HDR10 with a Bit depth of 10 bits, the input range and the output range are 0-1023, gamma adjustment is used to enhance the luminance mapping curve to make the luminance more consistent with the human visual characteristics, so as to make the luminance more consistent with the human visual characteristicsThe viewing effect of HDR10 can also be made to be more consistent with changes in ambient light.
In an implementation manner of this embodiment, when the ambient light brightness value is greater than a preset ambient light brightness threshold, the determining, based on the ambient light brightness value, a brightness adjustment factor corresponding to the video signal specifically includes:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, acquiring a candidate ambient light brightness value once every preset time until a preset number of candidate ambient light brightness values are acquired;
if each candidate environment light brightness value of the preset number of candidate environment light brightness values is larger than a preset environment light brightness threshold value, determining a brightness adjusting factor corresponding to the video signal based on the environment light brightness value.
If a candidate environment light brightness value in the preset number of candidate environment light brightness values is smaller than or equal to a preset environment light brightness threshold value, keeping a brightness mapping curve corresponding to the video signal unchanged.
Specifically, the preset time may be preset to determine an interval time between two adjacent times of acquiring the ambient light brightness value. It can be understood that, acquiring the candidate ambient light brightness value once every preset time interval means acquiring a selected candidate ambient light brightness value again after acquiring the candidate ambient light brightness value and every preset time interval, so that the time interval between two adjacent selected candidate ambient light brightness values is the preset time interval. In a specific implementation manner of this embodiment, the preset time may be 1s, 0.5s, and the like. In addition, in practical application, the interval time between the acquisition time corresponding to the candidate ambient light brightness value positioned at the top in time order and the acquisition time corresponding to the ambient light brightness value is a preset time.
The preset number of candidate environment light brightness values are all environment light brightness of an environment where the terminal device for playing the video signal is located, and a time interval between any two adjacent candidate environment light brightness values in the preset number of candidate environment light brightness values is preset time. For example, the predetermined number of candidate ambient light brightness values includes candidate ambient light brightness value a, candidate ambient light brightness value B, and candidate ambient light brightness value C, in chronological order, with candidate ambient light brightness value a preceding candidate ambient light brightness value B, candidate ambient light brightness value B preceding candidate ambient light brightness value C, and the candidate environment light brightness value a is adjacent to the candidate environment light brightness value B, and the candidate environment light brightness value B is adjacent to the candidate environment light brightness value C, so that a preset time interval exists between the acquisition time corresponding to the candidate environment light brightness value a and the acquisition time corresponding to the candidate environment light brightness value B, and a preset time interval exists between the acquisition time corresponding to the candidate environment light brightness value B and the acquisition time corresponding to the candidate environment light brightness value C. In a specific implementation of the present implementation, the preset number may be determined according to specific usage requirements, for example, 5 and 10, etc.
By way of example: the preset time is 1s, the preset number is 5, then after the environment light brightness value is obtained, the candidate environment light brightness value 1 is obtained at an interval of 1s, after the candidate environment light brightness value A is obtained, the candidate environment light brightness value 2 is obtained at an interval of 1s, after the candidate environment light brightness value 2 is obtained, the candidate environment light brightness value 3 is obtained at an interval of 1s, and the like is repeated until the candidate environment light brightness value 5 is obtained, so that 5 candidate environment light brightness values are obtained.
The preset number of candidate environment light brightness values are used for judging whether the environment light brightness value is a continuous brightness value of an environment where the terminal device for playing the video signal is located or an interference brightness value generated by an interference light source, wherein if each candidate environment light brightness value of the preset number of candidate environment light brightness values is greater than a preset environment light brightness threshold value, it is indicated that the environment light brightness value is the continuous brightness value of the environment where the terminal device for playing the video signal is located, and at this time, a brightness mapping curve corresponding to the video signal needs to be adjusted; if a candidate environment light brightness value in the preset number of candidate environment light brightness values is smaller than or equal to a preset environment light brightness threshold, it is indicated that the environment light brightness value is an interference brightness value generated by an interference light source, and at this time, the brightness mapping curve corresponding to the video signal does not need to be adjusted. Therefore, the misadjustment of the brightness mapping curve caused by interference can be avoided, the accuracy of the adjustment of the brightness mapping curve can be improved, and the playing effect of the video signal can be further improved.
Certainly, in practical applications, during the playing process of the video signal, the brightness adjusting method provided in this embodiment may also be used to adjust the brightness mapping curve corresponding to the video signal, so as to adjust the display brightness corresponding to the video signal. When the brightness adjustment method provided in this embodiment is used to adjust the brightness mapping curve corresponding to the video signal during the playing process of the video signal, the brightness mapping curve may be adjusted in real time by obtaining the brightness value of the ambient light at every preset time interval, or the brightness adjustment method provided in this embodiment is started at a fixed time (for example, when the video information is played to half or the like) during the playing of the video signal, so as to adjust the brightness mapping curve corresponding to the video signal. In a specific implementation manner of this embodiment, after the video signal is obtained, an ambient light brightness value of an environment where the terminal device for playing the video signal is located is determined at preset intervals, and whether the ambient light brightness value is greater than a preset brightness threshold is determined, and if the ambient light brightness value is greater than the preset brightness threshold, the adjusting method provided in this embodiment is executed to adjust the brightness mapping curve.
And S30, adjusting the brightness of the video signal based on the adjusted brightness mapping curve.
Specifically, the luminance mapping curve is used for mapping luminance information carried by the video signal to display luminance of the terminal device, and the terminal device displays the video signal based on the display luminance. Therefore, adjusting the brightness of the video signal refers to adjusting the brightness of the video signal to display brightness available for the terminal device to display through the brightness mapping curve. In an implementation manner of this embodiment, before adjusting the brightness of the video signal based on the adjusted brightness mapping curve, the brightness mapping curve may be configured in a terminal device for playing the video signal, so that the terminal device for playing the video signal uses the adjusted brightness mapping curve as a decoding display basis, and decodes the video information to display video content corresponding to the video signal.
In summary, the present embodiment provides a brightness adjustment method, where the method includes acquiring an ambient light brightness value corresponding to a video signal to be processed; determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value; and adjusting the brightness mapping curve corresponding to the video signal based on the brightness adjusting factor to obtain an adjusted brightness mapping curve. When the video signal is obtained, the brightness adjusting factor corresponding to the video signal is determined based on the ambient light brightness value, so that the brightness mapping curve corresponding to the video signal is adjusted, the influence of ambient light on the video signal can be reduced, and the playing effect of the video signal is improved.
Based on the brightness adjusting method, the present embodiment provides a brightness adjusting apparatus, as shown in fig. 5, where the adjusting apparatus includes:
an obtaining module 100, configured to obtain an ambient light brightness value corresponding to a video signal to be processed;
a first adjusting module 200, configured to adjust a luminance mapping curve corresponding to the video signal based on the ambient light luminance value, so as to obtain an adjusted luminance mapping curve;
a second adjusting module 300, configured to adjust the brightness of the video signal based on the adjusted brightness mapping curve.
In one implementation, the video signal is an HDR10 video signal.
In one implementation, the luminance mapping curve is used for reflecting a mapping relation between an initial luminance value corresponding to a video signal and a display luminance value corresponding to the video signal; the first adjusting module specifically comprises:
the first adjusting unit is used for determining a brightness adjusting factor corresponding to the video signal based on the ambient light brightness value when the ambient light brightness value is greater than a preset ambient light brightness threshold value, and adjusting a brightness mapping curve corresponding to the video signal based on the brightness adjusting factor to obtain an adjusted brightness mapping curve;
and the second adjusting unit is used for keeping the brightness mapping curve corresponding to the video signal unchanged when the ambient light brightness value is smaller than or equal to a preset ambient light brightness threshold value.
In one implementation, the first adjusting unit is specifically configured to:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, acquiring candidate ambient light brightness values once at preset time intervals until a preset number of candidate ambient light brightness values are acquired;
and if each candidate environment light brightness value in the preset number of candidate environment light brightness values is larger than a preset environment light brightness threshold value, determining a brightness adjusting factor corresponding to the video signal based on the environment light brightness value.
In one implementation, the first adjusting unit is specifically configured to:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, acquiring candidate ambient light brightness values once at preset time intervals until a preset number of candidate ambient light brightness values are acquired;
if a candidate environment light brightness value in the preset number of candidate environment light brightness values is smaller than or equal to a preset environment light brightness threshold value, keeping a brightness mapping curve corresponding to the video signal unchanged.
In one implementation, the determination formula corresponding to the brightness adjustment factor is as follows:
γ=1-0.08log10(Lamb/5)
wherein, gamma is a brightness adjusting factor, and Lamb is an ambient light brightness value.
In one implementation, the first adjusting unit is specifically configured to:
and performing gamma compensation on the brightness mapping curve based on the brightness adjusting factor to adjust the brightness mapping curve corresponding to the video signal.
Based on the brightness adjustment method described above, the present embodiment provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps in the brightness adjustment method described in the above embodiments.
Based on the brightness adjustment method, the present application further provides a terminal device, as shown in fig. 6, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method of adjusting brightness, the method comprising:
acquiring an ambient light brightness value corresponding to a video signal to be processed;
based on the ambient light brightness value, adjusting a brightness mapping curve corresponding to the video signal to obtain an adjusted brightness mapping curve;
and adjusting the brightness of the video signal based on the adjusted brightness mapping curve.
2. The luminance adjustment method as claimed in claim 1, wherein the video signal is an HDR10 video signal.
3. The method according to claim 1, wherein the luminance mapping curve is used for reflecting a mapping relationship between an initial luminance value corresponding to a video signal and a display luminance value corresponding to the video signal; the adjusting the brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain an adjusted brightness mapping curve specifically includes:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value, and adjusting a brightness mapping curve corresponding to the video signal based on the brightness adjustment factor to obtain an adjusted brightness mapping curve;
and when the ambient light brightness value is smaller than or equal to a preset ambient light brightness threshold value, keeping a brightness mapping curve corresponding to the video signal unchanged.
4. The method according to claim 3, wherein the determining the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value when the ambient light brightness value is greater than a preset ambient light brightness threshold specifically comprises:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, acquiring candidate ambient light brightness values once at preset time intervals until a preset number of candidate ambient light brightness values are acquired;
and if each candidate environment light brightness value in the preset number of candidate environment light brightness values is larger than a preset environment light brightness threshold value, determining a brightness adjusting factor corresponding to the video signal based on the environment light brightness value.
5. The method according to claim 3, wherein the determining the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value when the ambient light brightness value is greater than a preset ambient light brightness threshold value specifically comprises:
when the ambient light brightness value is larger than a preset ambient light brightness threshold value, acquiring candidate ambient light brightness values once at preset time intervals until a preset number of candidate ambient light brightness values are acquired;
if a candidate environment light brightness value in the preset number of candidate environment light brightness values is smaller than or equal to a preset environment light brightness threshold value, keeping a brightness mapping curve corresponding to the video signal unchanged.
6. The luminance adjustment method according to any one of claims 3 to 5, wherein the luminance adjustment factor corresponds to a determination formula:
γ=1-0.08log10(Lamb/5)
wherein, gamma is a brightness adjusting factor, and Lamb is an ambient light brightness value.
7. The method according to any one of claims 3 to 5, wherein the adjusting the luminance mapping curve corresponding to the video signal based on the luminance adjustment factor to obtain the adjusted luminance mapping curve specifically comprises:
and performing gamma compensation on the brightness mapping curve based on the brightness adjusting factor to adjust the brightness mapping curve corresponding to the video signal.
8. A luminance adjustment apparatus, characterized in that the adjustment apparatus comprises:
the acquisition module is used for acquiring an ambient light brightness value corresponding to a video signal to be processed;
the first adjusting module is used for adjusting a brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain an adjusted brightness mapping curve;
and the second adjusting module is used for adjusting the brightness of the video signal based on the adjusted brightness mapping curve.
9. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the brightness adjustment method according to any one of claims 1 to 7.
10. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the brightness adjustment method of any one of claims 1-7.
CN202011479594.0A 2020-12-15 2020-12-15 Brightness adjusting method and device, storage medium and terminal equipment Pending CN114640799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011479594.0A CN114640799A (en) 2020-12-15 2020-12-15 Brightness adjusting method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011479594.0A CN114640799A (en) 2020-12-15 2020-12-15 Brightness adjusting method and device, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN114640799A true CN114640799A (en) 2022-06-17

Family

ID=81945066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011479594.0A Pending CN114640799A (en) 2020-12-15 2020-12-15 Brightness adjusting method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN114640799A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690811A (en) * 2015-06-05 2018-02-13 苹果公司 It is presented and shows HDR content
US20180330695A1 (en) * 2017-05-12 2018-11-15 Apple Inc. Electronic Devices With Tone Mapping Engines
CN109951596A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Adjusting method, device, storage medium and the mobile terminal of screen intensity
CN109983530A (en) * 2016-12-22 2019-07-05 杜比实验室特许公司 Ambient light adaptive display management
CN110050292A (en) * 2016-12-12 2019-07-23 杜比实验室特许公司 The system and method that video for adjusting high dynamic range images handles curve

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690811A (en) * 2015-06-05 2018-02-13 苹果公司 It is presented and shows HDR content
CN110050292A (en) * 2016-12-12 2019-07-23 杜比实验室特许公司 The system and method that video for adjusting high dynamic range images handles curve
CN109983530A (en) * 2016-12-22 2019-07-05 杜比实验室特许公司 Ambient light adaptive display management
US20180330695A1 (en) * 2017-05-12 2018-11-15 Apple Inc. Electronic Devices With Tone Mapping Engines
CN109951596A (en) * 2017-12-20 2019-06-28 广东欧珀移动通信有限公司 Adjusting method, device, storage medium and the mobile terminal of screen intensity

Similar Documents

Publication Publication Date Title
KR101958870B1 (en) Display control method and apparatus for power saving
TWI610287B (en) Backlight modulation apparatus, computing device and system over external display interfaces to save power
US10978027B2 (en) Electronic display partial image frame update systems and methods
CN109298912B (en) Theme color adjusting method and device, storage medium and electronic equipment
CN108401078B (en) Backlight brightness adjusting method and device, mobile terminal and readable storage medium
US8350867B2 (en) Image quality configuration apparatus, system and method
CN112071267B (en) Brightness adjusting method, brightness adjusting device, terminal equipment and storage medium
WO2021135683A1 (en) Display terminal adjustment method and display terminal
KR102344334B1 (en) Display apparatus and method for processing image
WO2021223526A1 (en) Gamma debugging method and apparatus
JP5870145B2 (en) Color buffer compression
JP6903150B2 (en) Display device and its control method
JP2021526330A (en) Source-side tone mapping based on display native color gamut and brightness
CN110618852B (en) View processing method, view processing device and terminal equipment
CN113553024A (en) Volume configuration method of split screen window, storage medium and terminal equipment
WO2023077981A1 (en) Display parameter adjusting method and apparatus, storage medium, and display device
CN111603767A (en) Method, terminal and storage medium for adjusting resolution
US9495729B2 (en) Display method and electronic device
CN113625923A (en) Mouse processing method and device based on remote cloud desktop, storage medium and equipment
KR20150134998A (en) Electronic apparatus and ouput characteristic controlling method thereof
US20230298303A1 (en) Video processing method, electronic device, and storage medium
CN114640799A (en) Brightness adjusting method and device, storage medium and terminal equipment
US20230410706A1 (en) Method for image rendering, terminal device and non-transitory computer-readable storage medium
US20220084482A1 (en) Low-latency context switch systems and methods
CN112020186B (en) Indoor light adjusting method and device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination