HDR vivid video display method, device, equipment and storage medium
Patent Information
- Application Number
- CN202611047925.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-10-16
AI Technical Summary
然而,现有技术存在多方面缺陷
[0015]In this application, the target HDR Vivid video to be displayed is first acquired, and first metadata and second metadata of the target HDR Vivid video are acquired. The first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor. The second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing. Then, the peak brightness of the target display device is acquired. If it is determined based on the second metadata that the target HDR Vivid video is allowed to skip tone mapping processing, the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result. Finally, the target HDR Vivid video is processed based on the processing method, and the processed HDR Vivid video is displayed through the target display device. The processing methods include tone mapping processing and skipping tone mapping processing. In this way, by using the maximum brightness of the displayed content and the maximum brightness of the main monitor in the first metadata as the comparison benchmark for pass-through determination, this application avoids the physical mismatch problem caused by using the highest brightness of the reference target monitor as the comparison object, making the pass-through determination more reasonable and accurate. At the same time, by controlling the pass-through permission through the second metadata, unnecessary tone mapping calculations are effectively reduced, the processing power consumption of the terminal device is reduced, and feasible and accurate brightness pass-through determination of HDR Vivid video is achieved, thereby completely restoring the original color grading intention of the content creator.
Smart Images

Figure CN122933873A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video processing technology, and in particular to an HDR Vivid video display method, apparatus, device, and storage medium. Background Technology
[0002] High Dynamic Range (HDR) video technology expands the range of brightness and color, providing a more realistic visual experience closer to human vision. HDR Vivid, a Chinese-developed HDR standard, defines dynamic metadata syntax and terminal tone mapping algorithms. The encoding end generates dynamic metadata frame-by-frame or scene-by-scene, and the decoding end performs tone mapping on the HDR video based on this metadata to achieve adaptive brightness and color for terminals with different display capabilities. When the peak brightness capability of the terminal display device is sufficient, in order to fully reproduce the original color grading intent of the content creator, the decoding end should allow pass-through, skipping tone mapping processing and displaying directly.
[0003] Existing technologies compare the highest brightness of a reference target display in frame-by-frame or scene-by-scene dynamic metadata with the peak brightness of the terminal display device. When the terminal's peak brightness is not lower than the highest brightness of the reference target display and pass-through is allowed, tone mapping is skipped. However, existing technologies have several drawbacks. First, when the highest brightness of the reference display is inconsistent across frames or scenes within the same video content, even if all pass-through indicators are valid, the decoder may repeatedly switch between pass-through mode and tone mapping mode, causing brightness discontinuities between frames or scenes, deviating from the creator's overall color grading intent. Second, existing solutions directly use dynamic reference brightness as the pass-through criterion, failing to distinguish between the overall brightness upper bound of the content and the frame-by-frame, scene-by-scene dynamic adaptation target, resulting in unreasonable granularity of pass-through decisions. Furthermore, HDR Vivid static metadata contains program-level invariant parameters such as the maximum brightness of the main monitor, but existing solutions do not fully utilize this information to establish a stable program-level pass-through determination mechanism. In addition, the maximum brightness of the reference target display is, in standard semantics, the peak value of the target display device adapted by the tone mapping curve. It belongs to the mapping target parameter, rather than the actual peak brightness of the image itself. Comparing it with the terminal peak brightness to determine whether to pass through is not physically consistent.
[0004] In conclusion, how to achieve feasible and accurate brightness pass-through determination for HDR Vivid videos is a technical problem that urgently needs to be solved. Summary of the Invention
[0005] In view of this, the purpose of this invention is to provide an HDR Vivid video display method, apparatus, device, and storage medium, capable of achieving feasible and accurate brightness pass-through determination for HDR Vivid videos. The specific solution is as follows: Firstly, this application provides a method for displaying HDR Vivid video, including: Obtain the target HDR Vivid video to be displayed, and obtain the first metadata and the second metadata of the target HDR Vivid video; the first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor, and the second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing; The peak brightness of the target display device is obtained. If it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result. The target HDR Vivid video is processed based on the processing method, and the processed HDR Vivid video is displayed through the target display device; the processing method includes tone mapping processing and skipping tone mapping processing.
[0006] Optionally, both the first metadata and the second metadata include static metadata and dynamic metadata; The first metadata includes the first maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor in the static metadata, and the second maximum brightness of the display content corresponding to each processing unit of the target HDR Vivid video in the dynamic metadata; The second metadata includes a first preset identifier field corresponding to the target HDR Vivid video in the static metadata and a second preset identifier field corresponding to each processing unit of the target HDR Vivid video in the dynamic metadata; the preset identifier field is used to indicate whether skipping tone mapping processing is allowed.
[0007] Optionally, if it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, then comparing the peak brightness with the first metadata and determining the processing method of the target HDR Vivid video based on the comparison result includes: If the first preset identifier field indicates that the target HDR Vivid video allows skipping tone mapping processing, then the peak brightness is compared with the maximum brightness of the first display content and the maximum brightness of the main monitor, respectively. If the peak brightness is greater than or equal to the maximum brightness of the first displayed content, and / or the peak brightness is greater than or equal to the maximum brightness of the main monitor, then the processing method for the target HDR Vivid video is determined to be skipping tone mapping processing; If the peak brightness is less than the maximum brightness of the first displayed content and the peak brightness is less than the maximum brightness of the main monitor, then the processing method for the target HDR Vivid video is determined to be tone mapping processing.
[0008] Optionally, if it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, then comparing the peak brightness with the first metadata and determining the processing method of the target HDR Vivid video based on the comparison result includes: For any of the processing units of the target HDR Vivid video, if the second preset identifier field corresponding to the processing unit indicates that tone mapping processing is allowed to be skipped, then the peak brightness is compared with the maximum brightness of the second display content corresponding to the processing unit. If the peak brightness is greater than or equal to the maximum brightness of the second displayed content, then the processing method corresponding to the processing unit is determined to be skip tone mapping processing; If the peak brightness is less than the maximum brightness of the second displayed content, then the processing method corresponding to the processing unit is determined to be tone mapping processing.
[0009] Optionally, the HDR Vivid video display method further includes: The peak brightness is compared with the maximum brightness of the first displayed content and the maximum brightness of the main monitor, respectively; If the peak brightness is less than the maximum brightness of the first displayed content and the peak brightness is less than the maximum brightness of the main monitor, then the processing method of the target HDR Vivid video is determined to be tone mapping processing; If the peak brightness is greater than or equal to the maximum brightness of the first display content, and / or the peak brightness is greater than or equal to the maximum brightness of the main monitor, then the processing method corresponding to each processing unit of the target HDR Vivid video is determined based on each of the second preset identifier fields.
[0010] Optionally, determining the processing method corresponding to each processing unit of the target HDR Vivid video based on each of the second preset identifier fields includes: For any of the processing units, if the second preset identifier field corresponding to the processing unit indicates that skipping tone mapping processing is prohibited, then the processing method corresponding to the processing unit is determined to be tone mapping processing. If the second preset identifier field corresponding to the processing unit indicates that tone mapping processing is allowed to be skipped, then the processing mode corresponding to the processing unit is determined to be skipping tone mapping processing.
[0011] Optionally, the HDR Vivid video display method further includes: If any two adjacent processing units of the target HDR Vivid video have different processing methods, then obtain the output pixels of the two adjacent processing units after processing. The output pixels corresponding to two adjacent processing units are weighted and fused to determine the processed HDR Vivid video based on the fused data.
[0012] Secondly, this application provides an HDR Vivid video display device, comprising: The video acquisition module is used to acquire a target HDR Vivid video to be displayed, and to acquire first metadata and second metadata of the target HDR Vivid video; the first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor, and the second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing; The comparison result determination module is used to obtain the peak brightness of the target display device. If it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result. A video processing module is used to process the target HDR Vivid video based on the processing method, and to display the processed HDR Vivid video through the target display device; the processing method includes tone mapping processing and skipping tone mapping processing.
[0013] Thirdly, this application provides an electronic device, comprising: Memory, used to store computer programs; A processor for executing the computer program to implement the aforementioned HDR Vivid video display method.
[0014] Fourthly, this application provides a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned HDR Vivid video display method.
[0015] In this application, the target HDR Vivid video to be displayed is first acquired, and first metadata and second metadata of the target HDR Vivid video are acquired. The first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor. The second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing. Then, the peak brightness of the target display device is acquired. If it is determined based on the second metadata that the target HDR Vivid video is allowed to skip tone mapping processing, the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result. Finally, the target HDR Vivid video is processed based on the processing method, and the processed HDR Vivid video is displayed through the target display device. The processing methods include tone mapping processing and skipping tone mapping processing. In this way, by using the maximum brightness of the displayed content and the maximum brightness of the main monitor in the first metadata as the comparison benchmark for pass-through determination, this application avoids the physical mismatch problem caused by using the highest brightness of the reference target monitor as the comparison object, making the pass-through determination more reasonable and accurate. At the same time, by controlling the pass-through permission through the second metadata, unnecessary tone mapping calculations are effectively reduced, the processing power consumption of the terminal device is reduced, and feasible and accurate brightness pass-through determination of HDR Vivid video is achieved, thereby completely restoring the original color grading intention of the content creator. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0017] Figure 1 A flowchart of an HDR Vivid video display method provided in this application; Figure 2 A schematic diagram of an HDR Vivid video display device provided in this application; Figure 3 This application provides a structural diagram of an electronic device. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] High dynamic range (HDR) video technology expands the brightness and color gamut to provide a more realistic visual experience closer to human vision. HDR Vivid, a Chinese-developed HDR standard, defines dynamic metadata syntax and terminal tone mapping algorithms. The encoding end generates dynamic metadata frame-by-frame or scene-by-scene, and the decoding end performs tone mapping on the HDR video based on this metadata to achieve adaptive brightness and color for terminals with different display capabilities. When the peak brightness capability of the terminal display device is sufficient, in order to fully reproduce the content creator's original color grading intent, the decoding end should allow pass-through, skipping tone mapping processing and displaying directly.
[0020] Existing technologies compare the highest brightness of a reference target display in frame-by-frame or scene-by-scene dynamic metadata with the peak brightness of the terminal display device. When the terminal's peak brightness is not lower than the highest brightness of the reference target display and pass-through is allowed, tone mapping is skipped. However, existing technologies have several drawbacks. First, when the highest brightness of the reference display is inconsistent across frames or scenes within the same video content, even if all pass-through indicators are valid, the decoder may repeatedly switch between pass-through mode and tone mapping mode, causing brightness discontinuities between frames or scenes, deviating from the creator's overall color grading intent. Second, existing solutions directly use dynamic reference brightness as the pass-through criterion, failing to distinguish between the overall brightness upper bound of the content and the frame-by-frame, scene-by-scene dynamic adaptation target, resulting in unreasonable granularity of pass-through decisions. Furthermore, HDR Vivid static metadata contains program-level invariant parameters such as the maximum brightness of the main monitor, but existing solutions do not fully utilize this information to establish a stable program-level pass-through determination mechanism. Furthermore, the maximum brightness of the reference target display, in standard semantics, is the peak value of the target display device adapted by the tone mapping curve. It belongs to the mapping target parameter, rather than the actual peak brightness of the image itself. Comparing it with the terminal peak brightness to determine whether to pass through is physically mismatched. To address this, this application provides an HDR Vivid video display solution that enables feasible and accurate brightness pass-through determination for HDR Vivid videos.
[0021] See Figure 1 As shown in the figure, an embodiment of the present invention discloses an HDR Vivid video display method, which may include: Step S11: Obtain the target HDR Vivid video to be displayed, and obtain the first metadata and the second metadata of the target HDR Vivid video; the first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor, and the second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing.
[0022] In this embodiment, the target HDR Vivid video to be displayed is first obtained, and the first metadata and second metadata of the target HDR Vivid video are obtained.
[0023] It should be noted that both the first metadata and the second metadata include static metadata and dynamic metadata; the first metadata includes the maximum brightness of the first display content and the maximum brightness of the main monitor corresponding to the target HDR Vivid video in the static metadata, and the maximum brightness of the second display content corresponding to each processing unit of the target HDR Vivid video in the dynamic metadata; the second metadata includes the first preset identifier field corresponding to the target HDR Vivid video in the static metadata and the second preset identifier field corresponding to each processing unit of the target HDR Vivid video in the dynamic metadata; the preset identifier field is used to indicate whether skipping tone mapping processing is allowed.
[0024] Specifically, static metadata includes: max_display_mastering_luminance: Maximum brightness of the main monitor; max_content_light_level: Maximum brightness of the displayed content (maximum brightness of the first displayed content); static_passthrough_flag: The first preset flag field, i.e., the static passthrough flag; a value of 0 indicates that program-level passthrough is prohibited; a value of 1 indicates that program-level passthrough is allowed when the terminal has sufficient capabilities; the bit width is 1 bit.
[0025] Dynamic metadata includes: maximum_maxrgb_pq: Maximum brightness of the displayed content (second maximum brightness of the displayed content); passthrough_mode_flag: The second preset flag field, i.e., the dynamic passthrough flag; a field value of 0 indicates that the processing unit prohibits passthrough; a field value of 1 indicates that the processing unit allows passthrough; the bit width is 1 bit.
[0026] More specifically, max_display_mastering_luminance, max_content_light_level, and maximum_maxrgb_pq belong to the first metadata; static_passthrough_flag and passthrough_mode_flag belong to the second metadata.
[0027] Step S12: Obtain the peak brightness of the target display device. If it is determined based on the second metadata that the target HDR Vivid video is allowed to skip tone mapping processing, then compare the peak brightness with the first metadata and determine the processing method of the target HDR Vivid video based on the comparison result.
[0028] In this embodiment, the peak brightness of the target display device is obtained, and a feasible brightness pass-through scheme is described in detail.
[0029] In one specific implementation, the processing method for the target HDR Vivid video is determined using the maximum brightness of the main monitor, the maximum brightness of the first displayed content, and a static pass-through identifier in the static metadata. This is suitable for scenarios where a uniform processing mode is desired for the entire HDR Vivid content to maximize brightness continuity and the creator's overall intent. The specific process may include: if the first preset identifier field indicates that the target HDR Vivid video allows skipping tone mapping processing, then the peak brightness is compared with the maximum brightness of the first displayed content and the maximum brightness of the main monitor, respectively; if the peak brightness is greater than or equal to the maximum brightness of the first displayed content, and / or the peak brightness is greater than or equal to the maximum brightness of the main monitor, then the processing method for the target HDR Vivid video is determined to be skipping tone mapping processing; if the peak brightness is less than the maximum brightness of the first displayed content and less than the maximum brightness of the main monitor, then the processing method for the target HDR Vivid video is determined to be tone mapping processing.
[0030] Specifically, if the static pass-through flag is 1, and the peak brightness of the terminal display device is greater than or equal to the maximum brightness of the main monitor or the peak brightness of the terminal display device is greater than or equal to the maximum brightness of the first displayed content, then the entire target HDR Vivid video segment is passed through uniformly, skipping tone mapping and outputting directly; otherwise, tone mapping processing is uniformly performed on the entire target HDR Vivid video segment. This allows for program-level one-time decision-making, avoiding frame-by-frame switching; the processing method remains unchanged due to dynamic metadata changes, and the risk of skipping is minimized.
[0031] In another specific implementation, the processing method for the target HDR Vivid video is determined using the maximum brightness of the main monitor and the maximum brightness of the first displayed content in the static metadata, and the dynamic pass-through identifier in the dynamic metadata. This is suitable when the terminal display capability is sufficient, but the creator wants to declare pass-through or tone mapping processing intentions for different scenes or image blocks separately. The specific process may include: firstly, comparing the peak brightness with the maximum brightness of the first displayed content and the maximum brightness of the main monitor respectively; if the peak brightness is less than the maximum brightness of the first displayed content and less than the maximum brightness of the main monitor, then the processing method for the target HDR Vivid video is determined to be tone mapping processing; if the peak brightness is greater than or equal to the maximum brightness of the first displayed content, and / or, the peak brightness is greater than or equal to the maximum brightness of the main monitor, then the processing method corresponding to each processing unit of the target HDR Vivid video is determined based on each of the second preset identifier fields.
[0032] Furthermore, the above-mentioned processing method for determining the processing unit corresponding to each processing unit of the target HDR Vivid video based on each second preset identifier field may specifically include: for any processing unit, if the second preset identifier field corresponding to the processing unit indicates that skipping tone mapping processing is prohibited, then the processing method corresponding to the processing unit is determined to be tone mapping processing; if the second preset identifier field corresponding to the processing unit indicates that skipping tone mapping processing is allowed, then the processing method corresponding to the processing unit is determined to be skipping tone mapping processing.
[0033] Specifically, the process begins with a program-level capability assessment: if the peak brightness of the terminal display device is less than the maximum brightness of the main monitor and less than the maximum brightness of the first displayed content, then tone mapping is performed on the entire target HDR Vivid video segment; if the peak brightness of the terminal display device is greater than or equal to the maximum brightness of the main monitor or the peak brightness of the terminal display device is greater than or equal to the maximum brightness of the first displayed content, then segmented processing continues. For each processing unit (scene / frame / image block) of the target HDR Vivid video, the dynamic pass-through identifier in the dynamic metadata is read. If the dynamic pass-through identifier == 1, the processing unit skips tone mapping and outputs directly; if the dynamic pass-through identifier == 0, tone mapping is performed on the processing unit. In this way, even when the display capability is sufficient but the pass-through identifier differs for each processing unit, segmented processing can be performed according to the dynamic pass-through identifier, without forcibly unifying pass-through and without changing the creator's processing intentions for different processing units.
[0034] In the third specific implementation, the processing method for the target HDR Vivid video is determined using the maximum brightness of the second display content and the dynamic pass-through identifier in the dynamic metadata; this is suitable for scenarios where pass-through determination needs to be based primarily on dynamic metadata. The specific process may include: for any processing unit of the target HDR Vivid video, if the second preset identifier field corresponding to the processing unit indicates that tone mapping processing can be skipped, then the peak brightness is compared with the maximum brightness of the second display content corresponding to the processing unit; if the peak brightness is greater than or equal to the maximum brightness of the second display content, then the processing method corresponding to the processing unit is determined to be skipping tone mapping processing; if the peak brightness is less than the maximum brightness of the second display content, then the processing method corresponding to the processing unit is determined to be tone mapping processing.
[0035] Specifically, for each processing unit, the maximum brightness of the second display content and the dynamic pass-through flag are read from the dynamic metadata. Then, for each processing unit, if the dynamic pass-through flag is 1 and the peak brightness of the terminal display device is greater than or equal to the maximum brightness of the second display content, the processing unit skips tone mapping and outputs directly; otherwise, tone mapping is performed.
[0036] It should be noted that in this embodiment, brightness comparison can be achieved through two methods: PQ domain comparison and physical brightness (nits) comparison.
[0037] Step S13: Process the target HDR Vivid video based on the processing method, and display the processed HDR Vivid video through the target display device; the processing method includes tone mapping processing and skipping tone mapping processing.
[0038] It should be noted that when creators / platforms declare their intent to perform pass-through or tone mapping processing for different scenes or image blocks using dynamic pass-through identifiers, if the processing paths for adjacent regions or adjacent time points are different, the pass-through output and tone mapping output are prone to spatial or temporal discontinuities at the boundaries.
[0039] Therefore, in this embodiment, when the processing method changes in the spatial or temporal domain, boundary fusion processing is used to suppress brightness and color jumps. The specific process may include: if the processing methods corresponding to any two adjacent processing units of the target HDR Vivid video are different, then the output pixels of the two adjacent processing units after processing are obtained; weighted fusion processing is performed on the output pixels corresponding to the two adjacent processing units to determine the processed HDR Vivid video based on the fused data.
[0040] Specifically, when adjacent processing units have different processing paths, smoothing processing needs to be performed through spatial and / or temporal transition boundaries. When the metadata granularity is block-level dynamic metadata, block-level boundary weighted fusion is performed. In the boundary region between image blocks that skip tone mapping and image blocks that perform tone mapping, the output pixels are weighted and fused, and the fusion weight can gradually change with spatial location.
[0041] In one specific implementation, let the distance in the boundary normal direction be d (d=0 is the boundary), and the transition width be W pixels: α(d) = clamp(d / W, 0, 1); P_out(x,y)=α(d)·P_pass(x,y)+(1-α(d))·P_tm(x,y); Where α(d) is the spatial fusion weight coefficient, P_pass(x,y) is the output pixel at (x,y) after skipping tone mapping, P_tm(x,y) is the output pixel at (x,y) after performing tone mapping, and P_out(x,y) is the final output pixel value at (x,y).
[0042] The above process can fuse Y / U / V or R / G / B separately, and can be performed in the PQ domain or the linear optical domain.
[0043] When the metadata granularity is frame-level dynamic metadata, frame-level cross-frame gradient fusion is performed. At the moment of switching between video frames that skip tone mapping and video frames that perform tone mapping, the cross-frame output is subjected to temporal gradient fusion, and the fusion coefficient can gradually change over time.
[0044] In one specific implementation, suppose the switching occurs in frame t0, and the number of transition frames is N: β(k) = (Nk) / N; k = 0, 1, ..., N-1 / / Linear gradient P_out(t0+k)=β(k)·P_pass(t0+k)+(1-β(k))·P_tm(t0+k); Where β(k) is the temporal fusion weight coefficient, P_pass(t0+k) is the output pixel after skipping tone mapping in frame t0+k, P_tm(t0+k) is the output pixel after tone mapping in frame t0+k, and P_out(t0+k) is the final output pixel value in frame t0+k.
[0045] Finally, the processed HDR Vivid video is displayed on the target display device.
[0046] As can be seen from the above, in this embodiment, the target HDR Vivid video to be displayed is first acquired, and the first metadata and second metadata of the target HDR Vivid video are acquired. The first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor. The second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing. Then, the peak brightness of the target display device is acquired. If it is determined based on the second metadata that the target HDR Vivid video is allowed to skip tone mapping processing, the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result. Finally, the target HDR Vivid video is processed based on the processing method, and the processed HDR Vivid video is displayed through the target display device. The processing methods include tone mapping processing and skipping tone mapping processing. In this way, by using the maximum brightness of the displayed content and the maximum brightness of the main monitor in the first metadata as the comparison benchmark for pass-through determination, this embodiment avoids the physical mismatch problem caused by using the highest brightness of the reference target display as the comparison object, making the pass-through determination more reasonable and accurate. At the same time, by controlling the pass-through permission through the second metadata, unnecessary tone mapping calculations are effectively reduced, the processing power consumption of the terminal device is reduced, and feasible and accurate brightness pass-through determination of HDRVivid video is achieved, thereby completely restoring the original color grading intention of the content creator.
[0047] Accordingly, see Figure 2 As shown in the illustration, this application also provides an HDR Vivid video display device, which may include: The video acquisition module 11 is used to acquire a target HDR Vivid video to be displayed, and to acquire first metadata and second metadata of the target HDR Vivid video; the first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor, and the second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing; The comparison result determination module 12 is used to obtain the peak brightness of the target display device. If it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result. The video processing module 13 is used to process the target HDR Vivid video based on the processing method, and to display the processed HDR Vivid video through the target display device; the processing method includes tone mapping processing and skipping tone mapping processing.
[0048] In some specific implementations, both the first metadata and the second metadata include static metadata and dynamic metadata; The first metadata includes the first maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor in the static metadata, and the second maximum brightness of the display content corresponding to each processing unit of the target HDR Vivid video in the dynamic metadata; The second metadata includes a first preset identifier field corresponding to the target HDR Vivid video in the static metadata and a second preset identifier field corresponding to each processing unit of the target HDR Vivid video in the dynamic metadata; the preset identifier field is used to indicate whether skipping tone mapping processing is allowed.
[0049] In some specific embodiments, the comparison result determination module 12 may include: The first brightness comparison unit is used to compare the peak brightness with the maximum brightness of the first display content and the maximum brightness of the main monitor respectively if the first preset identification field indicates that the target HDR Vivid video allows skipping tone mapping processing; The first tone mapping skip unit is configured to determine that the processing method for the target HDR Vivid video is to skip tone mapping processing if the peak brightness is greater than or equal to the maximum brightness of the first display content, and / or the peak brightness is greater than or equal to the maximum brightness of the main monitor. The first tone mapping unit is configured to determine that the processing method of the target HDR Vivid video is tone mapping processing if the peak brightness is less than the maximum brightness of the first display content and the peak brightness is less than the maximum brightness of the main monitor.
[0050] In some specific embodiments, the comparison result determination module 12 may include: The second brightness comparison unit is used to compare the peak brightness with the maximum brightness of the second display content corresponding to the processing unit for any of the processing units of the target HDR Vivid video if the second preset identifier field corresponding to the processing unit indicates that tone mapping processing is allowed to be skipped. The second tone mapping skip unit is used to determine that the processing mode corresponding to the processing unit is skip tone mapping processing if the peak brightness is greater than or equal to the maximum brightness of the second display content. The second tone mapping unit is used to determine that the processing method corresponding to the processing unit is tone mapping processing if the peak brightness is less than the maximum brightness of the second display content.
[0051] In some specific embodiments, the HDR Vivid video display device may further include: A brightness comparison module is used to compare the peak brightness with the maximum brightness of the first displayed content and the maximum brightness of the main monitor, respectively. A tone mapping module is used to determine that the processing method of the target HDR Vivid video is tone mapping processing if the peak brightness is less than the maximum brightness of the first display content and the peak brightness is less than the maximum brightness of the main monitor. The processing method determination module is used to determine the processing method corresponding to each processing unit of the target HDR Vivid video based on each of the second preset identifier fields if the peak brightness is greater than or equal to the maximum brightness of the first display content, and / or the peak brightness is greater than or equal to the maximum brightness of the main monitor.
[0052] In some specific embodiments, the processing method determination module may include: The third tone mapping unit is used to determine that the processing method corresponding to any of the processing units is tone mapping processing if the second preset identifier field corresponding to the processing unit indicates that skipping tone mapping processing is prohibited. If the second preset identifier field corresponding to the processing unit indicates that tone mapping processing is allowed to be skipped, then the processing mode corresponding to the processing unit is determined to be skipping tone mapping processing.
[0053] In some specific embodiments, the HDR Vivid video display device may further include: The output pixel acquisition module is used to acquire the output pixels after processing by two adjacent processing units if the processing methods corresponding to any two adjacent processing units of the target HDR Vivid video are different. The weighted fusion module is used to perform weighted fusion processing on the output pixels corresponding to two adjacent processing units, so as to determine the processed HDR Vivid video based on the fused data.
[0054] Furthermore, embodiments of this application also disclose an electronic device, Figure 3This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the HDR Vivid video display method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be a computer.
[0055] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0056] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0057] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the HDR Vivid video display method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.
[0058] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned HDR Vivid video display method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0059] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0060] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0061] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0062] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0063] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for displaying HDR Vivid video, characterized in that, include: Obtain the target HDR Vivid video to be displayed, and obtain the first metadata and second metadata of the target HDR Vivid video; The first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor; the second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing. The peak brightness of the target display device is obtained. If it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result. The target HDR Vivid video is processed based on the processing method, and the processed HDR Vivid video is displayed through the target display device; the processing method includes tone mapping processing and skipping tone mapping processing.
2. The HDR Vivid video display method according to claim 1, characterized in that, Both the first and second metadata include static metadata and dynamic metadata; The first metadata includes the first maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor in the static metadata, and the second maximum brightness of the display content corresponding to each processing unit of the target HDR Vivid video in the dynamic metadata; The second metadata includes a first preset identifier field corresponding to the target HDR Vivid video in the static metadata and a second preset identifier field corresponding to each processing unit of the target HDR Vivid video in the dynamic metadata; the preset identifier field is used to indicate whether skipping tone mapping processing is allowed.
3. The HDR Vivid video display method according to claim 2, characterized in that, If it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, then the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result, including: If the first preset identifier field indicates that the target HDR Vivid video allows skipping tone mapping processing, then the peak brightness is compared with the maximum brightness of the first display content and the maximum brightness of the main monitor, respectively. If the peak brightness is greater than or equal to the maximum brightness of the first displayed content, and / or the peak brightness is greater than or equal to the maximum brightness of the main monitor, then the processing method for the target HDR Vivid video is determined to be skipping tone mapping processing; If the peak brightness is less than the maximum brightness of the first displayed content and the peak brightness is less than the maximum brightness of the main monitor, then the processing method for the target HDR Vivid video is determined to be tone mapping processing.
4. The HDR Vivid video display method according to claim 2, characterized in that, If it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, then the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result, including: For any of the processing units of the target HDR Vivid video, if the second preset identifier field corresponding to the processing unit indicates that tone mapping processing is allowed to be skipped, then the peak brightness is compared with the maximum brightness of the second display content corresponding to the processing unit. If the peak brightness is greater than or equal to the maximum brightness of the second displayed content, then the processing method corresponding to the processing unit is determined to be skip tone mapping processing; If the peak brightness is less than the maximum brightness of the second displayed content, then the processing method corresponding to the processing unit is determined to be tone mapping processing.
5. The HDR Vivid video display method according to claim 2, characterized in that, Also includes: The peak brightness is compared with the maximum brightness of the first displayed content and the maximum brightness of the main monitor, respectively; If the peak brightness is less than the maximum brightness of the first displayed content and the peak brightness is less than the maximum brightness of the main monitor, then the processing method of the target HDR Vivid video is determined to be tone mapping processing; If the peak brightness is greater than or equal to the maximum brightness of the first display content, and / or the peak brightness is greater than or equal to the maximum brightness of the main monitor, then the processing method corresponding to each processing unit of the target HDR Vivid video is determined based on each of the second preset identifier fields.
6. The HDR Vivid video display method according to claim 5, characterized in that, The process of determining the processing method corresponding to each processing unit of the target HDR Vivid video based on each of the second preset identifier fields includes: For any of the processing units, if the second preset identifier field corresponding to the processing unit indicates that skipping tone mapping processing is prohibited, then the processing method corresponding to the processing unit is determined to be tone mapping processing. If the second preset identifier field corresponding to the processing unit indicates that tone mapping processing is allowed to be skipped, then the processing mode corresponding to the processing unit is determined to be skipping tone mapping processing.
7. The HDR Vivid video display method according to claim 4 or 6, characterized in that, Also includes: If any two adjacent processing units of the target HDR Vivid video have different processing methods, then obtain the output pixels of the two adjacent processing units after processing. The output pixels corresponding to two adjacent processing units are weighted and fused to determine the processed HDR Vivid video based on the fused data.
8. An HDR Vivid video display device, characterized in that, include: The video acquisition module is used to acquire a target HDR Vivid video to be displayed, and to acquire first metadata and second metadata of the target HDR Vivid video; the first metadata includes the maximum brightness of the display content corresponding to the target HDR Vivid video and the maximum brightness of the main monitor, and the second metadata is used to indicate whether the target HDR Vivid video is allowed to skip tone mapping processing; The comparison result determination module is used to obtain the peak brightness of the target display device. If it is determined based on the second metadata that the target HDR Vivid video allows skipping tone mapping processing, the peak brightness is compared with the first metadata, and the processing method of the target HDR Vivid video is determined based on the comparison result. A video processing module is used to process the target HDR Vivid video based on the processing method, and to display the processed HDR Vivid video through the target display device; the processing method includes tone mapping processing and skipping tone mapping processing.
9. An electronic device, characterized in that, The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the HDR Vivid video display method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Used to store a computer program, which, when executed by a processor, implements the HDR Vivid video display method as described in any one of claims 1 to 7.