A brightness adjustment method, device, storage medium and terminal equipment
By obtaining the ambient light brightness value of the terminal device, calculating the brightness adjustment factor and adjusting the brightness mapping curve of the HDR video signal, the problem of poor playback of HDR video signals in high ambient light is solved, and the display effect of the video signal is improved.
Patent Information
- Application Number
- CN202011479594.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-12-15
AI Technical Summary
In the prior art, when playing HDR video signals, terminal devices generally have the problem of poor playback effects, especially when the ambient light is high, the optimal playback effect cannot be achieved.
By obtaining the ambient light brightness value of the video signal, determining the brightness adjustment factor, and adjusting the brightness mapping curve of the video signal to reduce the impact of ambient light on the video signal and improve the playback effect. Specific steps include: when the ambient light brightness value is greater than the preset threshold, calculate the brightness adjustment factor and adjust the brightness mapping curve; when the brightness value is less than or equal to the threshold, keep the original brightness mapping curve unchanged.
By dynamically adjusting the brightness mapping curve, the impact of ambient light on the video signal is reduced, and the playback effect of the video signal is improved, especially under high ambient light conditions.
Smart Images

Figure CN114640799B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a brightness adjustment method, device, storage medium and terminal equipment. Background Art
[0002] High Dynamic Range (HDR) is a popular technology in the video industry in recent years and is also the direction of future video industry development. Compared with traditional standard dynamic range (SDR) video signals, HDR video signals have a larger dynamic range and higher brightness, and are widely used in terminal devices (such as smart TVs and mobile terminals). However, terminal devices generally have poor playback effects when playing HDR video signals. Summary of the invention
[0003] The technical problem to be solved by the present application is to provide a brightness adjustment method, device, storage medium and terminal device in view of the deficiencies in the prior art.
[0004] In order to solve the above technical problems, a first aspect of an embodiment of the present application provides a brightness adjustment method, the method comprising:
[0005] Obtaining the ambient light brightness value corresponding to the video signal to be processed;
[0006] Based on the ambient light brightness value, adjusting the brightness mapping curve corresponding to the video signal to obtain an adjusted brightness mapping curve;
[0007] Based on the adjusted brightness mapping curve, the brightness of the video signal is adjusted.
[0008] The brightness adjustment method, wherein the video signal is an HDR10 video signal.
[0009] The brightness adjustment method, wherein the brightness mapping curve is used to reflect the mapping relationship between the initial brightness value corresponding to the video signal and the display brightness value corresponding to the video signal; and adjusting the brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain the adjusted brightness mapping curve specifically includes:
[0010] When the ambient light brightness value is greater than a preset ambient light brightness threshold, 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;
[0011] When the ambient light brightness value is less than or equal to a preset ambient light brightness threshold, the brightness mapping curve corresponding to the video signal is kept unchanged.
[0012] The brightness adjustment method, wherein when the ambient light brightness value is greater than a preset ambient light brightness threshold, determining the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value specifically includes:
[0013] When the ambient light brightness value is greater than a preset ambient light brightness threshold, obtaining a candidate ambient light brightness value once at a preset time interval until a preset number of candidate ambient light brightness values are obtained;
[0014] If each candidate ambient light brightness value among the preset number of candidate ambient light brightness values is greater than a preset ambient light brightness threshold, a brightness adjustment factor corresponding to the video signal is determined based on the ambient light brightness value.
[0015] The brightness adjustment method, wherein when the ambient light brightness value is greater than a preset ambient light brightness threshold, determining the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value specifically includes:
[0016] When the ambient light brightness value is greater than a preset ambient light brightness threshold, obtaining a candidate ambient light brightness value once at a preset time interval until a preset number of candidate ambient light brightness values are obtained;
[0017] If there is a candidate ambient light brightness value among the preset number of candidate ambient light brightness values that is less than or equal to the preset ambient light brightness threshold, the brightness mapping curve corresponding to the video signal is kept unchanged.
[0018] The brightness adjustment method, wherein the determination formula corresponding to the brightness adjustment factor is:
[0019] γ=1-0.08log10(Lamb / 5)
[0020] Among them, γ is the brightness adjustment factor, and Lamb is the ambient light brightness value.
[0021] The brightness adjustment method, wherein the brightness mapping curve corresponding to the video signal is adjusted based on the brightness adjustment factor to obtain the adjusted brightness mapping curve is specifically:
[0022] Based on the brightness adjustment factor, gamma compensation is performed on the brightness mapping curve to adjust the brightness mapping curve corresponding to the video signal.
[0023] A second aspect of an embodiment of the present application provides a brightness adjustment device, the adjustment device comprising:
[0024] An acquisition module, used to acquire the ambient light brightness value corresponding to the video signal to be processed;
[0025] A first adjustment module, configured to adjust a brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain an adjusted brightness mapping curve;
[0026] The second adjustment module is used to adjust the brightness of the video signal based on the adjusted brightness mapping curve.
[0027] A third aspect of an embodiment of the present application provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in any of the brightness adjustment methods described above.
[0028] A fourth aspect of the embodiments of the present application provides a terminal device, comprising: a processor, a memory, and a communication bus; the memory stores a computer-readable program that can be executed by the processor;
[0029] The communication bus realizes the connection and communication between the processor and the memory;
[0030] When the processor executes the computer-readable program, the steps in any of the above-mentioned brightness adjustment methods are implemented.
[0031] Beneficial effects: Compared with the prior art, the present application provides a brightness adjustment method, device, storage medium and terminal device, the method comprising obtaining the ambient light brightness value corresponding to the video signal to be processed; determining the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value; adjusting the brightness mapping curve corresponding to the video signal based on the brightness adjustment factor to obtain the adjusted brightness mapping curve. When the video signal is obtained, the present application determines the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value, thereby adjusting the brightness mapping curve corresponding to the video signal, which can reduce the influence of ambient light on the video signal, thereby improving the playback effect of the video signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without inventive work.
[0033] Figure 1 This is a flow chart of the brightness adjustment method provided in this application.
[0034] Figure 2 This is a schematic diagram of the process flow of the brightness adjustment method provided in this application.
[0035] Figure 3 This is a curve showing the corresponding relationship between the brightness adjustment factor and the ambient light brightness value of the brightness adjustment method provided in this application.
[0036] Figure 4 It is a brightness mapping curve after adjustment using the brightness adjustment method provided by this embodiment under different ambient light brightness values.
[0037] Figure 5 This is a structural principle diagram of the brightness adjustment device provided in this application.
[0038] Figure 6 This is a schematic diagram of the structure of the terminal device provided in this application. DETAILED DESCRIPTION
[0039] The present application provides a brightness adjustment method, device, storage medium and terminal device. In order to make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
[0040] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0041] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0042] In a specific implementation, the terminal device described in the embodiments of the present application includes, but is not limited to, other portable devices such as mobile phones with touch-sensitive surfaces (e.g., touch display screens and / or touch pads), laptop computers, or tablet computers. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch display screens and / or touch pads).
[0043] In the following discussion, a terminal device including 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, a mouse and / or a joystick.
[0044] The terminal device supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, video conferencing applications, disk burning applications, spreadsheet applications, game applications, telephone applications, video conferencing applications, email applications, instant messaging applications, exercise support applications, photo management applications, data camera applications, digital video camera applications, web browsing applications, digital music player applications and / or digital video playback applications, etc.
[0045] Various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch-sensitive surface. The first or multiple functions of the touch-sensitive surface and the corresponding information displayed on the terminal can be adjusted and / or changed between applications and / or within the corresponding application. In this way, the common physical framework of the terminal (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.
[0046] It should be understood that the sequence numbers and sizes of the steps in this embodiment do not mean the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0047] The inventor has found through research that High Dynamic Range (HDR) is a popular technology that has emerged in the video industry in recent years and is also the direction of future development of the video industry. Compared with the traditional standard dynamic range (SDR) video signal, the HDR video signal has a larger dynamic range and higher brightness. At present, the commonly used HDR standards are HDR10, HLG, Dolby vision, HDR10+, SL-HDR1, etc. Among them, the HDR10 standard based on PQ EOTF is the most widely used HDR standard on the market. When the HDR10 standard was formulated, the theater environment was mainly considered, and the reference viewing environment was stipulated to be 5Nit, that is, watching HDR10 movies in a dark room with an ambient light of 5Nit can feel the best effect. However, with the development of display technology, videos in HDR10 format are increasingly applied to smart TVs and mobile terminals. However, when users watch videos through smart TVs or mobile terminals, they are often in an environment with high ambient brightness (for example, greater than 5Nit, etc.), which makes it impossible for videos in HDR10 format played by smart TVs or mobile terminals to achieve the best playback effect.
[0048] In order to solve the above problem, in an embodiment of the present application, the ambient light brightness value corresponding to the video signal to be processed is obtained; based on the ambient light brightness value, the brightness adjustment factor corresponding to the video signal is determined; based on the brightness adjustment factor, the brightness mapping curve corresponding to the video signal is adjusted to obtain the adjusted brightness mapping curve. When the video signal is obtained, the present application determines the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value, thereby adjusting the brightness mapping curve corresponding to the video signal, which can reduce the influence of ambient light on the video signal, thereby improving the playback effect of the video signal.
[0049] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.
[0050] This embodiment provides a brightness adjustment method, such as Figure 1 and Figure 2 As shown, the method includes:
[0051] S10: Obtain an ambient light brightness value corresponding to the video signal to be processed.
[0052] Specifically, the video signal may be a video signal sent by an external signal source to a terminal device (e.g., a smart TV, etc.) configured with the brightness adjustment method, wherein the external signal source is used to send the processed video signal to the terminal device, and the terminal device is used 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, wherein the dynamic range refers to the ratio of the maximum brightness to the minimum brightness in the video signal. The HDR signal may be an HDR HLG signal, or an HDRPQ signal, etc. In a specific implementation of this embodiment, the video signal is an HDR10 video signal, wherein the HDR10 video signal is a video signal of the HDR10 standard based on the PQ EOTF. Based on this, in an implementation of this embodiment, obtaining the ambient light brightness value corresponding to the video signal to be processed specifically includes: when the video signal to be processed is obtained, obtaining the signal type corresponding to the video signal to be processed; when the signal type is an HDR10 video signal, obtaining the ambient light brightness value corresponding to the video signal.
[0053] The ambient light brightness value is the ambient light brightness value of the environment in which the terminal device for playing the video signal is located, wherein the environment in which the terminal device is located may be a dark light environment, a bright light environment, etc. The ambient light brightness value may be obtained when the terminal device receives the video signal, or may be obtained when the terminal device receives a control signal for triggering the acquisition of the ambient light brightness value, etc. In a specific implementation of this embodiment, the acquisition of the ambient light brightness value corresponding to the video signal to be processed may specifically be: after receiving the video signal to be processed, the ambient light brightness value of the environment in which the terminal device for playing the video signal is located is obtained to obtain the ambient light brightness value corresponding to the video signal. Among them, the terminal device for playing the video signal (denoted as terminal device a) may be a terminal device (denoted as terminal device b) configured with the brightness adjustment method provided in this embodiment, or may not be a terminal device configured with the brightness adjustment method provided in this embodiment, and when the terminal device a is not the terminal device b, the ambient light brightness value of the environment in which it is located is obtained through the terminal device a, and the terminal device b receives the ambient light brightness value sent by the terminal device a, so that the terminal device b obtains the ambient light brightness value.
[0054] An application scenario of this embodiment is: the terminal device configured with the brightness adjustment method provided by this embodiment is a terminal device for playing video signals, and the terminal device is configured with an ambient light sensor, which detects the ambient light brightness value of the environment in which the terminal device is located. Therefore, when the terminal device receives a video signal, the ambient light sensor is started and the ambient light brightness value of the environment in which 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.
[0055] S20. Based on the ambient light brightness value, adjust the brightness mapping curve corresponding to the video signal to obtain an adjusted brightness mapping curve.
[0056] Specifically, the brightness mapping curve is a characteristic curve used in the process of brightness mapping of a video signal (such as an HDR signal), which is used to reflect the corresponding relationship between the brightness value of the video signal for brightness mapping and the two end values after brightness mapping. In this embodiment, the brightness mapping curve is used to reflect the mapping relationship between the initial brightness value corresponding to the video signal and the display brightness value corresponding to the video signal, wherein the initial brightness value is the display brightness of the video content in the video signal, which is the horizontal coordinate of the brightness mapping curve; the display brightness value is the brightness value of the display brightness of the video content in the video signal after brightness mapping, which is the vertical coordinate of the brightness mapping curve. In addition, the brightness mapping refers to mapping the brightness of the source image to the brightness of the target system, wherein the source image refers to the video image frame in the HDR video signal, and the target system refers to the display system configured by the terminal device for displaying the video signal. The brightness mapping can adopt the existing brightness mapping method. For example, the brightness mapping method of the HDR video signal based on the RGB space is: using the brightness mapping formula C out =(L out / L in )*C in , where L out is the linear brightness after HDR signal brightness mapping, L in is the linear brightness before HDR signal brightness mapping, C in The linear signal color component R mapped to the HDR signal brightness in , G in or B in , C out It is the linear signal color component R after HDR signal brightness mapping out , G out or B out .
[0057] In an implementation 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. Therefore, before the brightness mapping curve corresponding to the video signal is adjusted based on the ambient light brightness value, it is necessary to determine the brightness mapping curve corresponding to the video signal, wherein the brightness mapping curve can be obtained when the video signal is obtained, or it can be obtained after the ambient light brightness value is obtained. In a specific implementation, the brightness mapping curve is obtained when the video signal is obtained, and accordingly, the acquisition of the ambient light brightness value corresponding to the video signal to be processed may specifically include: when the video signal is obtained, when the video signal to be processed is obtained, the signal type corresponding to the video signal to be processed is obtained; when the signal type is an HDR10 video signal, the video signal is parsed to obtain the video content corresponding to the video information, and based on the obtained video content and the maximum display brightness corresponding to the terminal device used to play the video signal, the brightness mapping curve corresponding to the video signal is determined, and the ambient light brightness value corresponding to the video signal is obtained.
[0058] In an implementation of this embodiment, adjusting the brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain the adjusted brightness mapping curve specifically includes:
[0059] When the ambient light brightness value is greater than a preset ambient light brightness threshold, 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;
[0060] When the ambient light brightness value is less than or equal to a preset ambient light brightness threshold, the brightness mapping curve corresponding to the video signal is kept unchanged.
[0061] Specifically, the preset ambient light brightness threshold can be pre-set and used as a basis for measuring whether the brightness mapping curve corresponding to the video signal needs to be adjusted, wherein when the ambient light brightness value is greater than the preset ambient light brightness threshold, it means that the environment in which the terminal device used to play the video signal is located does not meet the requirements of the video signal, and the brightness mapping curve needs to be adjusted based on the ambient light brightness value; conversely, when the ambient light brightness value is less than or equal to the preset ambient light brightness threshold, it means that the environment in which the terminal device used to play the video signal is located meets the requirements 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 of this embodiment, the preset ambient light brightness threshold can be 5nit, etc.
[0062] The brightness adjustment factor is determined based on the ambient light brightness value, and is used to adjust the brightness mapping curve. The brightness adjustment factor is used to adjust the output value of the brightness mapping curve. For example, if the brightness mapping curve is y=f(x), then the brightness adjustment factor is used to adjust y. In one implementation of this embodiment, the correspondence between the brightness adjustment factor and the value based on the ambient light brightness can be: γ=1-0.08log10(Lamb / 5), where γ is the brightness adjustment factor and Lamb is the ambient light brightness value. In other words, after obtaining the ambient light brightness value, the 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, the relationship curve between the brightness adjustment factor and the correspondence based on the ambient light brightness value can be as shown below. Figure 3 As shown, the brightness adjustment factor γ gradually decreases with the increase of the ambient light brightness Lamb, and the slope gradually becomes gentle, which is conducive to the final brightness curve conforming to the visual characteristics of the human eye.
[0063] In an implementation of this embodiment, the brightness mapping curve corresponding to the video signal is adjusted based on the brightness adjustment factor to obtain the adjusted brightness mapping curve:
[0064] Based on the brightness adjustment factor, gamma compensation is performed on the brightness mapping curve to adjust the brightness mapping curve corresponding to the video signal.
[0065] Specifically, the gamma adjustment is to adjust the brightness mapping curve by using gamma compensation, wherein the gamma adjustment can be expressed as output = (input) γ , where γ is the brightness adjustment factor. In this embodiment, the input is the normalized output value of the brightness mapping curve, the input value range is between 0-1, and the output is the value after gamma adjustment. In this way, by adjusting the brightness mapping curve through gamma compensation, the adjusted brightness can be consistent with the visual characteristics of the human eye, thereby improving the display effect of the video signal. For example, Figure 4 As shown in the figure, for the brightness mapping curve of HDR10 with a bit depth of 10 bits, the input range and output range are 0-1023, and gamma adjustment is used to brighten the brightness mapping curve, so that the brightness is more in line with the visual characteristics of the human eye, so that the viewing effect of HDR10 can also be close to consistent with the changes in ambient light.
[0066] In an implementation of this embodiment, when the ambient light brightness value is greater than a preset ambient light brightness threshold, determining the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value specifically includes:
[0067] When the ambient light brightness value is greater than a preset ambient light brightness threshold, obtaining a candidate ambient light brightness value once at a preset time interval until a preset number of candidate ambient light brightness values are obtained;
[0068] If each candidate ambient light brightness value of a preset number of candidate ambient light brightness values is greater than a preset ambient light brightness threshold, a brightness adjustment factor corresponding to the video signal is determined based on the ambient light brightness value.
[0069] If there is a candidate ambient light brightness value among the preset number of candidate ambient light brightness values that is less than or equal to the preset ambient light brightness threshold, the brightness mapping curve corresponding to the video signal is kept unchanged.
[0070] Specifically, the preset time may be pre-set to determine the interval between two adjacent acquisitions of ambient light brightness values. It is understandable that acquiring a candidate ambient light brightness value once at a preset interval means that after acquiring a candidate ambient light brightness value, the candidate ambient light brightness value is acquired again after a preset time interval, so that the interval between two adjacent candidate ambient light brightness values is the preset time. In a specific implementation of this embodiment, the preset time may be 1s, 0.5s, etc. In addition, in actual applications, the interval between the acquisition time corresponding to the candidate ambient light brightness value that is at the front in time order and the acquisition time corresponding to the ambient light brightness value is the preset time.
[0071] The preset number of candidate ambient light brightness values are all ambient light brightness of the environment in which the terminal device for playing the video signal is located, and the time interval between any two adjacent candidate ambient light brightness values in the preset number of candidate ambient light brightness values is the preset time. For example, the preset 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, and the candidate ambient light brightness value A, candidate ambient light brightness value B and candidate ambient light brightness value C are in the order of acquisition time, the candidate ambient light brightness value A is located before the candidate ambient light brightness value B, the candidate ambient light brightness value B is located before the candidate ambient light brightness value C, and the candidate ambient light brightness value A is adjacent to the candidate ambient light brightness value B, and the candidate ambient light brightness value B is adjacent to the candidate ambient light brightness value C, then the acquisition time corresponding to the candidate ambient light brightness value A and the acquisition time corresponding to the candidate ambient light brightness value B are separated by a preset time, and the acquisition time corresponding to the candidate ambient light brightness value B and the acquisition time corresponding to the candidate ambient light brightness value C are separated by a preset time. In a specific implementation of this embodiment, the preset number can be determined according to specific usage requirements, for example, 5 and 10.
[0072] For example: the preset time is 1s, and the preset number is 5. Then, after obtaining the ambient light brightness value, the candidate ambient light brightness value 1 is obtained at an interval of 1s. After obtaining the candidate ambient light brightness value A, the candidate ambient light brightness value 2 is obtained at an interval of 1s. After obtaining the candidate ambient light brightness value 2, the candidate ambient light brightness value 3 is obtained at an interval of 1s, and so on, until the candidate ambient light brightness value 5 is obtained, so as to obtain 5 candidate ambient light brightness values.
[0073] The preset number of candidate ambient light brightness values is used to determine whether the ambient light brightness value is a continuous brightness value of the environment in which 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 ambient light brightness value of the preset number of candidate ambient light brightness values is greater than the preset ambient light brightness threshold, it means that the ambient light brightness value is a continuous brightness value of the environment in which the terminal device for playing the video signal is located, and at this time, the brightness mapping curve corresponding to the video signal needs to be adjusted; if there is a candidate ambient light brightness value among the preset number of candidate ambient light brightness values that is less than or equal to the preset ambient light brightness threshold, it means that the ambient 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. In this way, the erroneous adjustment of the brightness mapping curve caused by interference can be avoided, thereby improving the accuracy of the adjustment of the brightness mapping curve, and further improving the playback effect of the video signal.
[0074] Of course, in practical applications, during the playback of a video signal, the brightness adjustment method provided in this embodiment can 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. Among them, when the brightness adjustment method provided in this embodiment is used to adjust the brightness mapping curve corresponding to the video signal during the playback of the video signal, the brightness mapping curve can be adjusted in real time by obtaining the ambient light brightness value at each preset time interval, or, at a fixed time when the video signal is played (for example, when the video information is played to one-half, etc.), the brightness adjustment method provided in this embodiment is started to adjust the brightness mapping curve corresponding to the video signal. In a specific implementation of this embodiment, after the video signal is acquired, the ambient light brightness value of the environment in which the terminal device playing the video signal is located is obtained at each preset time interval, and it is determined whether the ambient light brightness value is greater than the preset brightness threshold. If it is greater than the preset brightness threshold, the adjustment method provided in this embodiment is executed to adjust the brightness mapping curve.
[0075] S30: Adjust the brightness of the video signal based on the adjusted brightness mapping curve.
[0076] Specifically, the brightness mapping curve is used to map the brightness information carried by the video signal to the display brightness of the terminal device, and the terminal device displays the video signal based on the display brightness. Thus, adjusting the brightness of the video signal refers to adjusting the brightness of the video signal to a display brightness that can be used for display by the terminal device through the brightness mapping curve. In one implementation of this embodiment, before adjusting the brightness of the video signal based on the adjusted brightness mapping curve, the brightness mapping curve can be configured on the terminal device used to play the video signal, so that the terminal device used to play the video signal uses the adjusted brightness mapping curve as a basis for decoding and display, and decodes the video information to display the video content corresponding to the video signal.
[0077] In summary, this embodiment provides a brightness adjustment method, which includes obtaining the ambient light brightness value corresponding to the video signal to be processed; determining the 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 adjustment factor to obtain the adjusted brightness mapping curve. When the video signal is obtained, the application determines the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value, thereby adjusting the brightness mapping curve corresponding to the video signal, which can reduce the influence of ambient light on the video signal, thereby improving the playback effect of the video signal.
[0078] Based on the above brightness adjustment method, this embodiment provides a brightness adjustment device, such as Figure 5 As shown, the adjustment device comprises:
[0079] An acquisition module 100 is used to acquire an ambient light brightness value corresponding to a video signal to be processed;
[0080] A first adjustment module 200, configured to adjust a brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain an adjusted brightness mapping curve;
[0081] The second adjustment module 300 is configured to adjust the brightness of the video signal based on the adjusted brightness mapping curve.
[0082] In one implementation, the video signal is an HDR10 video signal.
[0083] In one implementation, the brightness mapping curve is used to reflect the mapping relationship between the initial brightness value corresponding to the video signal and the display brightness value corresponding to the video signal; the first adjustment module specifically includes:
[0084] A first adjustment unit, configured to determine a 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, and adjust a brightness mapping curve corresponding to the video signal based on the brightness adjustment factor to obtain an adjusted brightness mapping curve;
[0085] The second adjustment unit is used to keep the brightness mapping curve corresponding to the video signal unchanged when the ambient light brightness value is less than or equal to a preset ambient light brightness threshold.
[0086] In one implementation, the first adjusting unit is specifically configured to:
[0087] When the ambient light brightness value is greater than a preset ambient light brightness threshold, obtaining a candidate ambient light brightness value once at a preset time interval until a preset number of candidate ambient light brightness values are obtained;
[0088] If each candidate ambient light brightness value among the preset number of candidate ambient light brightness values is greater than a preset ambient light brightness threshold, a brightness adjustment factor corresponding to the video signal is determined based on the ambient light brightness value.
[0089] In one implementation, the first adjusting unit is specifically configured to:
[0090] When the ambient light brightness value is greater than a preset ambient light brightness threshold, obtaining a candidate ambient light brightness value once at a preset time interval until a preset number of candidate ambient light brightness values are obtained;
[0091] If there is a candidate ambient light brightness value among the preset number of candidate ambient light brightness values that is less than or equal to the preset ambient light brightness threshold, the brightness mapping curve corresponding to the video signal is kept unchanged.
[0092] In one implementation, the determination formula corresponding to the brightness adjustment factor is:
[0093] γ=1-0.08log10(Lamb / 5)
[0094] Among them, γ is the brightness adjustment factor, and Lamb is the ambient light brightness value.
[0095] In one implementation, the first adjusting unit is specifically configured to:
[0096] Based on the brightness adjustment factor, gamma compensation is performed on the brightness mapping curve to adjust the brightness mapping curve corresponding to the video signal.
[0097] Based on the above brightness adjustment method, this embodiment provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the brightness adjustment method as described in the above embodiment.
[0098] Based on the above brightness adjustment method, the present application also provides a terminal device, such as Figure 6 As shown, it includes at least one processor (processor) 20; display screen 21; and memory (memory) 22, and may also include a communications interface (Communications Interface) 23 and a bus 24. Among them, the processor 20, the display screen 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 preset user guide interface in the initial setting mode. The communication interface 23 can transmit information. The processor 20 can call the logic instructions in the memory 22 to execute the method in the above embodiment.
[0099] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0100] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.
[0101] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, 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 flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.
[0102] In addition, the specific process of loading and executing the multiple instruction processors in the above-mentioned storage medium and the terminal device has been described in detail in the above-mentioned method, and will not be described one by one here.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A brightness adjustment method, characterized in that: The method comprises: Obtaining the ambient light brightness value corresponding to the video signal to be processed; Based on the ambient light brightness value, adjusting the brightness mapping curve corresponding to the video signal to obtain an adjusted brightness mapping curve; Adjusting the brightness of the video signal based on the adjusted brightness mapping curve; The adjusting the brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain the adjusted brightness mapping curve specifically includes: When the ambient light brightness value is greater than a preset ambient light brightness threshold, obtaining a candidate ambient light brightness value once at a preset time interval until a preset number of candidate ambient light brightness values are obtained; If each candidate ambient light brightness value among the preset number of candidate ambient light brightness values is greater than a preset ambient light brightness threshold, determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value; The brightness mapping curve corresponding to the video signal is adjusted based on the brightness adjustment factor to obtain an adjusted brightness mapping curve.
2. The brightness adjustment method according to claim 1, characterized in that: The video signal is an HDR10 video signal.
3. The brightness adjustment method according to claim 1, characterized in that: The brightness mapping curve is used to reflect the mapping relationship between the initial brightness value corresponding to the video signal and the display brightness value corresponding to the video signal; the brightness mapping curve corresponding to the video signal is adjusted based on the ambient light brightness value to obtain the adjusted brightness mapping curve, which specifically includes: When the ambient light brightness value is less than or equal to a preset ambient light brightness threshold, the brightness mapping curve corresponding to the video signal is kept unchanged.
4. The brightness adjustment method according to claim 1, characterized in that: When the ambient light brightness value is greater than a preset ambient light brightness threshold, determining the brightness adjustment factor corresponding to the video signal based on the ambient light brightness value specifically includes: When the ambient light brightness value is greater than a preset ambient light brightness threshold, obtaining a candidate ambient light brightness value once at a preset time interval until a preset number of candidate ambient light brightness values are obtained; If there is a candidate ambient light brightness value among the preset number of candidate ambient light brightness values that is less than or equal to the preset ambient light brightness threshold, the brightness mapping curve corresponding to the video signal is kept unchanged.
5. The brightness adjustment method according to any one of claims 3 to 4, characterized in that: The determination formula corresponding to the brightness adjustment factor is: γ=1-0.08log10(Lamb / 5) Among them, γ is the brightness adjustment factor, and Lamb is the ambient light brightness value.
6. The brightness adjustment method according to any one of claims 3 to 4, characterized in that: The brightness mapping curve corresponding to the video signal is adjusted based on the brightness adjustment factor to obtain the adjusted brightness mapping curve: Based on the brightness adjustment factor, gamma compensation is performed on the brightness mapping curve to adjust the brightness mapping curve corresponding to the video signal.
7. A brightness adjustment device, characterized in that: The brightness adjustment device comprises: An acquisition module, used to acquire the ambient light brightness value corresponding to the video signal to be processed; A first adjustment module, configured to adjust a brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain an adjusted brightness mapping curve; A second adjustment module, configured to adjust the brightness of the video signal based on the adjusted brightness mapping curve; The adjusting the brightness mapping curve corresponding to the video signal based on the ambient light brightness value to obtain the adjusted brightness mapping curve specifically includes: When the ambient light brightness value is greater than a preset ambient light brightness threshold, obtaining a candidate ambient light brightness value once at a preset time interval until a preset number of candidate ambient light brightness values are obtained; If each candidate ambient light brightness value among the preset number of candidate ambient light brightness values is greater than a preset ambient light brightness threshold, determining a brightness adjustment factor corresponding to the video signal based on the ambient light brightness value; The brightness mapping curve corresponding to the video signal is adjusted based on the brightness adjustment factor to obtain an adjusted brightness mapping curve.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the brightness adjustment method according to any one of claims 1 to 6.
9. A terminal device, characterized in that: include: Processor, memory and communication bus; The memory stores a computer-readable program executable by the processor; The communication bus realizes the connection and communication between the processor and the memory; When the processor executes the computer-readable program, the steps in the brightness adjustment method according to any one of claims 1 to 6 are implemented.
