CN112351264B - Display precision adjusting method, device, terminal equipment and storage medium - Google Patents

Display precision adjusting method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112351264B
CN112351264B CN202011221335.8A CN202011221335A CN112351264B CN 112351264 B CN112351264 B CN 112351264B CN 202011221335 A CN202011221335 A CN 202011221335A CN 112351264 B CN112351264 B CN 112351264B
Authority
CN
China
Prior art keywords
video
brightness
decoding
range
full
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011221335.8A
Other languages
Chinese (zh)
Other versions
CN112351264A (en
Inventor
王振亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202011221335.8A priority Critical patent/CN112351264B/en
Publication of CN112351264A publication Critical patent/CN112351264A/en
Application granted granted Critical
Publication of CN112351264B publication Critical patent/CN112351264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/77Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a display precision adjusting method, a device, a terminal device and a storage medium, wherein the method comprises the following steps: receiving video data sent by a user terminal, and determining corresponding video metadata based on the video data, wherein the video metadata comprises video brightness codes and full-range identifications; if the full-range identification is matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding; and decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal. Therefore, if the full-range identification is matched with the preset identification, namely, the brightness decoding is determined to be full-range decoding, the video brightness encoding is performed according to the full-range decoding no matter how much the maximum brightness is in the video data, the full-range video brightness value is obtained, and the display precision of the video data is improved.

Description

Display precision adjusting method, device, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of video processing technologies, and in particular, to a display precision adjustment method, a device, a terminal device, and a storage medium.
Background
With the widespread use of HDR (High-Dynamic Range) display devices, the HDR technology has become a developing hotspot, with the HDR technology currently most widely used being the HDR10 technology.
Bit (Bit depth) in the HDR technology represents the degree of refinement of color gradation, and for dynamic range, the HDR10 standard defines that the Bit depth must be above 10Bit, i.e. at least 1024-order luminances are supported, HDR10 is an absolute luminance standard, and the luminance value ranges from 0Nit (Nit) to 10000Nit. For a 10Bit depth, electro-optic conversion is performed according to PQ-EOTF (Electro-optic conversion function), i.e. mapped code value 1023 corresponds to 10000Nit luminance, mapped code value 921 corresponds to 4000Nit luminance, and mapped code value 768 corresponds to 1000Nit luminance.
In actual video production, the video creator adds static metadata to the video, the static metadata identifying the maximum brightness supported by the video, and the display device decodes the static metadata and performs corresponding tone mapping according to the maximum brightness. However, at the time of video production, there are few slice sources supporting 10000Nit of maximum luminance, 1000Nit being the most common slice source supporting luminance. Therefore, for a Bit depth of 10Bit, the brightness represented by the data segment of the mapping code values 768 to 1023 is 1000Nit, so that when playing video of the HDR10 standard, the display precision of the full range of Bit depth is not reached, the precision is about 75% of the full range for a source with a maximum brightness of 1000Nit, and the precision is about 90% of the full range for a source with a maximum brightness of 4000Nit, so that the video Bit depth utilization is low, thereby resulting in low video display precision.
Disclosure of Invention
The main purpose of the application is to provide a display precision adjusting method, a device, a terminal device and a storage medium, aiming at improving the display precision of video.
In order to achieve the above object, an embodiment of the present application provides a display accuracy adjustment method, including:
receiving video data sent by a user terminal, and determining corresponding video metadata based on the video data, wherein the video metadata comprises video brightness codes and full-range identifications;
if the full-range identification is determined to be matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding;
and decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal.
Optionally, the step of decoding each video luminance code based on the full-range decoding to obtain a video luminance value corresponding to each video luminance code includes:
and obtaining a decoding mapping table corresponding to the full-range decoding, and inquiring video brightness values corresponding to the video brightness codes in the decoding mapping table.
Optionally, the step of tone mapping each video luminance value according to the luminance peak value corresponding to the display terminal includes:
determining a brightness curve corresponding to the brightness peak value, and determining a inflection point brightness value corresponding to an inflection point in the brightness curve;
detecting whether a target brightness value exists in each video brightness value, wherein the target brightness value is larger than the inflection point brightness value;
if the existence of the target brightness value in each video brightness value is detected, mapping the target brightness value to a preset range through a preset algorithm, wherein the preset range is a brightness interval between the inflection point brightness value and the brightness peak value.
Optionally, after the step of detecting whether the target luminance value exists in each video luminance value, the method further includes:
and if the fact that the target brightness value does not exist in each video brightness value is detected, displaying video content of each frame rate in the video data with the corresponding video brightness value.
Optionally, the step of receiving video data sent by the user terminal and determining corresponding video metadata based on the video data includes:
and receiving video data sent by the user terminal, and analyzing a static metadata base in the video data to obtain a plurality of video metadata corresponding to the video data.
Optionally, before the step of receiving the video data sent by the user terminal and determining the corresponding video metadata based on the video data, the method further includes:
acquiring bit depth corresponding to a high dynamic range HDR in a display terminal, and determining corresponding full-range decoding based on the bit depth;
determining brightness decoding corresponding to each brightness value in the display terminal based on the brightness peak value and the full-range decoding in the display terminal;
and establishing a corresponding decoding mapping table for each brightness value and the corresponding brightness decoding, and storing the decoding mapping table in a database.
Optionally, after the step of receiving the video data sent by the user terminal and determining the corresponding video metadata based on the video data, the method further includes:
if the full-range identification is not matched with the preset identification, normalizing the video data, and displaying the normalized video data.
To achieve the above object, an embodiment of the present application provides a display accuracy adjustment device, including:
the determining module is used for receiving video data sent by the user terminal and determining corresponding video metadata based on the video data, wherein the video metadata comprise video brightness codes and full-range identifications;
the conversion module is used for converting the brightness decoding corresponding to the display terminal into full-range decoding if the full-range identification is determined to be matched with the preset identification;
the decoding module is used for decoding each video brightness code based on the full-range decoding to obtain a video brightness value corresponding to each video brightness code;
and the mapping module is used for tone mapping the video brightness values according to the brightness peak value corresponding to the display terminal.
To achieve the above object, embodiments of the present application provide a terminal device including a memory, a processor, and a display accuracy adjustment program stored on the memory and running on the processor, which when executed by the processor, implements the steps of the display accuracy adjustment method described above.
To achieve the above object, embodiments of the present application provide a computer-readable storage medium having stored thereon a display accuracy adjustment program which, when executed by a processor, implements the steps of the display accuracy adjustment method described above.
According to the display precision adjusting method, the device, the terminal equipment and the storage medium, video data sent by the user terminal are received, corresponding video metadata are determined based on the video data, wherein the video metadata comprise video brightness codes and full-range identifications; if the full-range identification is matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding; and decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal. Therefore, in the tone mapping process, if the full-range identifier is determined to be matched with the preset identifier, that is, the brightness decoding is determined to be full-range decoding, and the video brightness encoding is performed according to the full-range decoding no matter what the maximum brightness is in the video data, so that the full-range video brightness value is obtained, that is, the bit depth can be fully utilized only in the standard range, so that the color in the video data is more fine and hierarchical, and the display precision of the video data is improved.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device of a hardware running environment according to an embodiment of the present application;
FIG. 2 is a flow chart of a first embodiment of a method for adjusting accuracy of the present application;
FIG. 3 is a flowchart showing a second embodiment of the accuracy adjustment method of the present application;
FIG. 4 is a flowchart of a third embodiment of a method for adjusting accuracy of a display device according to the present application;
fig. 5 is a schematic diagram of functional modules of the display accuracy adjusting device of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The main solutions of the embodiments of the present application are: receiving video data sent by a user terminal, and determining corresponding video metadata based on the video data, wherein the video metadata comprises video brightness codes and full-range identifications; if the full-range identification is matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding; and decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal. Therefore, in the tone mapping process, if the full-range identifier is determined to be matched with the preset identifier, that is, the brightness decoding is determined to be full-range decoding, and the video brightness encoding is performed according to the full-range decoding no matter what the maximum brightness is in the video data, so that the full-range video brightness value is obtained, that is, the bit depth can be fully utilized only in the standard range, so that the color in the video data is more fine and hierarchical, and the display precision of the video data is improved.
Specifically, referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device of a hardware running environment according to an embodiment of the present application.
The terminal equipment of the embodiment of the application can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and also can be a fixed terminal equipment with a data processing function, a display terminal or a server and the like.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU (Central Processing Unit ), a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. The communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a keyboard (board), and the user interface 1003 may optionally further include a standard wired interface (e.g., USB (Universal Serial Bus, universal serial bus) interface), a wireless interface (e.g., bluetooth interface). The network interface 1004 may include a standard wired interface, a Wireless interface such as a WI-FI (Wireless-Fidelity) interface. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above. Optionally, the terminal device may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like.
It will be appreciated by those skilled in the art that the terminal device structure shown in fig. 1 is not limiting of the terminal device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operation device, a network communication module, a user interface module, and a display accuracy adjustment program may be included in a memory 1005 as one type of computer storage medium. The operating device is a program for managing and controlling hardware and software resources of the terminal device, and supports the operation of a display precision adjusting program and other software or programs.
In the terminal device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting a user terminal and communicating data with the user terminal; the processor 1001 may be configured to call a display accuracy adjustment program stored in the memory 1005, and perform the following operations:
receiving video data sent by a user terminal, and determining corresponding video metadata based on the video data, wherein the video metadata comprises video brightness codes and full-range identifications;
if the full-range identification is determined to be matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding;
and decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal.
Further, the processor 1001 may call the display accuracy adjustment program stored in the memory 1005, and also perform the following operations:
and obtaining a decoding mapping table corresponding to the full-range decoding, and inquiring video brightness values corresponding to the video brightness codes in the decoding mapping table.
Further, the processor 1001 may call the display accuracy adjustment program stored in the memory 1005, and also perform the following operations:
determining a brightness curve corresponding to the brightness peak value, and determining a inflection point brightness value corresponding to an inflection point in the brightness curve;
detecting whether a target brightness value exists in each video brightness value, wherein the target brightness value is larger than the inflection point brightness value;
if the existence of the target brightness value in each video brightness value is detected, mapping the target brightness value to a preset range through a preset algorithm, wherein the preset range is a brightness interval between the inflection point brightness value and the brightness peak value.
Further, the processor 1001 may call the display accuracy adjustment program stored in the memory 1005, and also perform the following operations:
and if the fact that the target brightness value does not exist in each video brightness value is detected, displaying video content of each frame rate in the video data with the corresponding video brightness value.
Further, the processor 1001 may call the display accuracy adjustment program stored in the memory 1005, and also perform the following operations:
and receiving video data sent by the user terminal, and analyzing a static metadata base in the video data to obtain a plurality of video metadata corresponding to the video data.
Further, the processor 1001 may call the display accuracy adjustment program stored in the memory 1005, and also perform the following operations:
acquiring bit depth corresponding to a high dynamic range HDR in a display terminal, and determining corresponding full-range decoding based on the bit depth;
determining brightness decoding corresponding to each brightness value in the display terminal based on the brightness peak value and the full-range decoding in the display terminal;
and establishing a corresponding decoding mapping table for each brightness value and the corresponding brightness decoding, and storing the decoding mapping table in a database.
Further, the processor 1001 may call the display accuracy adjustment program stored in the memory 1005, and also perform the following operations:
if the full-range identification is not matched with the preset identification, normalizing the video data, and displaying the normalized video data.
According to the embodiment of the application, the video data sent by the user terminal is received, and the corresponding video metadata are determined based on the video data, wherein the video metadata comprise video brightness codes and full-range identifications; if the full-range identification is matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding; and decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal. Therefore, in the tone mapping process, if the full-range identifier is determined to be matched with the preset identifier, that is, the brightness decoding is determined to be full-range decoding, and the video brightness encoding is performed according to the full-range decoding no matter what the maximum brightness is in the video data, so that the full-range video brightness value is obtained, that is, the bit depth can be fully utilized only in the standard range, so that the color in the video data is more fine and hierarchical, and the display precision of the video data is improved.
Based on the above-described terminal device architecture, but not limited to the above-described architecture, the embodiments of the present application provide embodiments of a display accuracy adjustment method, and it should be noted that although a logic sequence is shown in the flowchart, under certain data, the steps shown or described may be completed in a different order from that shown or described herein.
The execution subject of the method in this embodiment of the present application may be a display precision adjusting device or a display terminal, and in this embodiment of the present application, the display terminal is taken as an execution subject to be exemplified.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a precision adjusting method according to the present application. The display precision adjusting method comprises the following steps:
step S40, receiving video data sent by a user terminal, and determining corresponding video metadata based on the video data, wherein the video metadata comprises video brightness codes and full-range identifications;
the video data of the present embodiment is created based on HDR10 (High-Dynamic Range image). Before the display terminal receives video data sent by the user terminal, the user collects the video data, inserts video metadata such as a mother band, white point chromaticity, minimum luminance and maximum luminance for displaying RGB (three primary colors) chromaticity coordinates, video luminance coding, maximum frame average light level, maximum content light level, full-range Bit Depth coding Full-Depth-Support and the like into the video data through an HDR10 technical standard, completes HDR10 video data, and sends the HDR10 video data to the display terminal through the user terminal. The HDR10 is 10 bits (bit depth), i.e. 10 th power of 2, and can represent 1024-order video luminance, the video luminance is encoded to 0 to 1023, and the video luminance value is 0Nit to 10000Nit.
After receiving the HDR10 video data sent by the user terminal, the display terminal analyzes the HDR10 video data to obtain each video metadata in the HDR10 video data.
Note that, the HDR10 video data may be transmitted from the user terminal through a network, or the HDR10 video data may be stored in the display terminal by a hard disk after the user has completed making, which is not limited in this embodiment.
Further, the step S40 includes:
step S401, receiving video data sent by the user terminal, and analyzing a static metadata base in the video data to obtain a plurality of video metadata corresponding to the video data.
Specifically, after receiving video data sent by a user terminal, a display terminal analyzes a static metadata base carried in the video data to obtain each static metadata in the video data, wherein each static metadata is a plurality of video metadata corresponding to the video data.
Step S50, if the full-range identification is determined to be matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding;
after analyzing and obtaining each piece of video metadata, the display terminal detects whether a full-range identifier carried by the full-range bit depth code is matched with a preset identifier in the display value terminal, if the display terminal detects that the full-range identifier is matched with the preset identifier, the display terminal determines that the HDR10 video data supports the full-range bit depth code and converts video decoding in the display terminal into full-range decoding, wherein the full-range identifier is carried by the full-range bit depth code and is used for judging whether the HDR10 supports the identifier of the full-range bit depth code. Full range decoding, i.e., 1024-level video luminance decoding, can parse video data whose luminance codes are 0 to 1023.
The full-range identifier and the preset identifier can be Chinese or English, and the preset identifier is yes or true and correspondingly supports full-range bit depth coding.
In this embodiment, for example, the full-range identifier and the preset identifier are in english form, the preset identifier corresponds to "true", the full-range identifier is "true", and if the display terminal determines that the full-range identifier matches with the preset identifier, it is determined that the HDR10 video data supports full-range bit depth encoding.
And step S70, decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal.
The display terminal decodes each video brightness code in the video data through full-range decoding, performs Electro-optic conversion according to PQ EOTF (Electro-optical-Optical Transfer Function, electro-optic conversion function), namely converts the video brightness code into a corresponding video brightness value to obtain a video brightness value corresponding to each video brightness code, then determines an inflection point brightness value corresponding to a display in the display terminal according to the peak brightness of the display terminal, and performs tone mapping on each video brightness value according to the magnitude relation between the inflection point brightness value and the video brightness value.
In this embodiment, for example, the video data is HDR10 video data, i.e. the full range bit depth encoding is 0 to 1023, and if the video data does not support the full range bit depth encoding, the luminance peak of the display terminal is 1000Nit, the video luminance values of 768 to 1023 in the video data are all 1000Nit, and only 75% of the full range bit depth encoding is used. If the luminance peak value of the display terminal is 4000Nit, the video luminance values of the video luminance codes 921 to 1023 in the video data are 4000Nit, and only 90% of the full-range bit depth codes are used. If the video data supports full-range bit depth coding, the video brightness codes 0 to 1023 in the video data all have corresponding video brightness values.
Further, the step S50 further includes:
step S60, if it is determined that the full-range identifier does not match the preset identifier, normalizing the video data, and displaying the normalized video data.
Specifically, when the display terminal detects that the full-range identifier is matched with the preset identifier, it is determined that the HDR10 video data does not support full-range bit depth encoding, the HDR10 video data is directly subjected to normalization processing, and the normalized HDR10 video data is displayed.
The embodiment realizes that the corresponding video metadata is determined based on the video data by receiving the video data sent by the user terminal, wherein the video metadata comprises video brightness codes and full-range identifications; if the full-range identification is matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding; and decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal. Therefore, in the tone mapping process, if the full-range identifier is determined to be matched with the preset identifier, that is, the brightness decoding is determined to be full-range decoding, and the video brightness encoding is performed according to the full-range decoding no matter what the maximum brightness is in the video data, so as to obtain the full-range video brightness value, that is, the bit depth can be fully utilized only in the standard range, so that the color in the video data is more fine and hierarchical, and the display precision of the video data is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the accuracy adjustment method according to the present application. The step S40 further includes:
step S10, acquiring bit depth corresponding to a high dynamic range HDR in a display terminal, and determining corresponding full-range decoding based on the bit depth;
step S20, determining the brightness decoding corresponding to each brightness value in the display terminal based on the brightness peak value and the full-range decoding in the display terminal;
step S30, establishing a corresponding decoding mapping table for each brightness value and the corresponding brightness decoding, and storing the decoding mapping table in a database.
Specifically, before receiving video data sent by a user terminal, a display terminal obtains bit depth corresponding to a high dynamic range HDR in the display terminal, determines full range decoding corresponding to the display terminal according to the bit depth, then the display terminal randomly obtains a plurality of brightness values in the display terminal, converts each brightness value and a brightness peak value according to proportion to obtain corresponding conversion values, determines brightness decoding corresponding to each conversion value in full range decoding through a PQ algorithm, namely determines brightness decoding corresponding to each brightness value in full range decoding, then the display terminal maps each brightness value with the corresponding brightness decoding, establishes a corresponding decoding mapping table, and stores the decoding mapping table in a database.
In the embodiment, the bit depth corresponding to the high dynamic range HDR in the display terminal is obtained, and the corresponding full-range decoding is determined based on the bit depth; determining brightness decoding corresponding to each brightness value in the display terminal based on the brightness peak value and the full-range decoding in the display terminal; and establishing a corresponding decoding mapping table for each brightness value and the corresponding brightness decoding, and storing the decoding mapping table in a database. In the embodiment, before receiving video data sent by a user terminal, a corresponding decoding mapping table is established for each brightness value in the display terminal, and when the brightness codes in the video data are decoded later, the decoding mapping table is directly called, and the calling is not required to be established in the decoding process, so that the decoding efficiency of the brightness codes in the video data is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a precision adjusting method according to the present application. The step S70 includes:
step S701, obtaining a decoding mapping table corresponding to the full-range decoding, and querying video brightness values corresponding to the video brightness codes in the decoding mapping table;
step S702, determining a brightness curve corresponding to the brightness peak value, and determining a inflection point brightness value corresponding to an inflection point in the brightness curve;
step S703, detecting whether a target luminance value exists in each video luminance value, wherein the target luminance value is greater than the inflection point luminance value;
step S704, if it is detected that the target luminance value exists in each video luminance value, mapping the target luminance value to a preset range through a preset algorithm, where the preset range is a luminance interval between the inflection point luminance value and the luminance peak value.
Specifically, the display terminal obtains a decoding mapping table corresponding to full-range decoding in the database, queries brightness values corresponding to each video brightness code in the decoding mapping table through a PQ EOTF electro-optical conversion function to obtain the video brightness values corresponding to each video brightness code, and then determines a brightness curve corresponding to a display in the display terminal according to a brightness peak value, wherein the brightness curve corresponding to the brightness peak value is determined by a technician through a preset algorithm and a preset formula. Then, the display terminal calculates inflection point brightness values corresponding to the brightness curves through algorithm assumption, then, the display terminal detects whether target brightness values larger than the inflection point brightness values exist in all video brightness values, if the display terminal detects that the target brightness values exist in all video brightness values, the display terminal maps the target brightness values to brightness intervals between the inflection point brightness values and brightness peaks through a preset algorithm, wherein the preset algorithm is equivalent to a compression algorithm. The present embodiment explains the compression algorithm by way of example, for example, the maximum luminance in the video data is 4000Nit, the luminance peak value is 3500Nit, the corresponding inflection point luminance value is 3000Nit, the display terminal displays the portion of the video data with the video luminance value less than or equal to 3000Nit according to the video luminance value thereof, and the portion of the video data with the video luminance value greater than 3000Nit, that is, 3000Nit to 4000Nit is mapped to the luminance interval of 3000Nit to 3500Nit
Further, the step S703 further includes:
step S705, if it is detected that the target luminance value does not exist in the video luminance values, displaying the video content of each frame rate in the video data with the corresponding video luminance value.
Specifically, if the display terminal detects that the target brightness value does not exist in each video brightness value, the video data is normalized, and video content of the corresponding frame rate of each video brightness value in the video data is displayed through each video brightness value.
In the embodiment, a decoding mapping table corresponding to full-range decoding is obtained, and video brightness values corresponding to each video brightness code are inquired in the decoding mapping table; determining a brightness curve corresponding to the brightness peak value, and determining a corresponding inflection point brightness value at an inflection point in the brightness curve; detecting whether a target brightness value exists in each video brightness value, wherein the target brightness value is larger than the inflection point brightness value; if the target brightness value exists in each video brightness value, mapping the target brightness value to a preset range through a preset algorithm, wherein the preset range is a brightness interval between the inflection point brightness value and the brightness peak value. In the tone mapping process, no matter what the maximum brightness is in the video data, the bit depth can be fully utilized within the standard range, so that the color in the video data is more fine and hierarchical, and the display precision of the video data is improved.
The application also provides a display precision adjusting device. Referring to fig. 5, fig. 5 is a schematic diagram of functional blocks of the display accuracy adjusting device of the present application. The display accuracy adjustment device includes:
a determining module 10, configured to receive video data sent by a user terminal, and determine corresponding video metadata based on the video data, where the video metadata includes video brightness coding and full-range identification;
the conversion module 20 is configured to convert the luminance decoding corresponding to the display terminal into full-range decoding if the full-range identifier is determined to match with the preset identifier;
the decoding module 30 is configured to decode each of the video luminance codes based on the full-range decoding, so as to obtain a video luminance value corresponding to each of the video luminance codes;
and the mapping module 40 is configured to tone-map each video brightness value according to the brightness peak value corresponding to the display terminal.
The function implementation of each module in the display precision adjusting device corresponds to each step in the embodiment of the display precision adjusting method, and the function and implementation process of each module are not described here again.
The present application also provides a computer-readable storage medium having stored thereon a display accuracy adjustment program which, when executed by a processor, implements the steps of the display accuracy adjustment method according to any one of the above embodiments.
The specific embodiments of the computer readable storage medium are substantially the same as the embodiments of the display accuracy adjustment method described above, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above embodiment method may be implemented by means of software plus necessary general hardware platform, or of course by means of hardware, but the former is a preferred embodiment under many data. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of software goods stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device to perform the method described in the embodiments of the present application.

Claims (9)

1. The display precision adjusting method is characterized by comprising the following steps of:
receiving video data sent by a user terminal, and determining corresponding video metadata based on the video data, wherein the video metadata comprises video brightness codes and full-range identifications;
if the full-range identification is determined to be matched with the preset identification, converting the brightness decoding corresponding to the display terminal into full-range decoding;
decoding each video brightness code based on the full-range decoding to obtain video brightness values corresponding to each video brightness code, and tone mapping each video brightness value according to a brightness peak value corresponding to the display terminal;
the step of tone mapping each video brightness value according to the brightness peak value corresponding to the display terminal comprises the following steps:
determining a brightness curve corresponding to the brightness peak value, and determining a inflection point brightness value corresponding to an inflection point in the brightness curve;
detecting whether a target brightness value exists in each video brightness value, wherein the target brightness value is larger than the inflection point brightness value;
if the existence of the target brightness value in each video brightness value is detected, mapping the target brightness value to a preset range through a preset algorithm, wherein the preset range is a brightness interval between the inflection point brightness value and the brightness peak value.
2. The display accuracy adjustment method according to claim 1, wherein the step of decoding each of the video luminance codes based on the full-range decoding to obtain a video luminance value corresponding to each of the video luminance codes includes:
and obtaining a decoding mapping table corresponding to the full-range decoding, and inquiring video brightness values corresponding to the video brightness codes in the decoding mapping table.
3. The display accuracy adjustment method according to claim 1, wherein the step of detecting whether or not a target luminance value exists in each of the video luminance values further comprises:
and if the fact that the target brightness value does not exist in each video brightness value is detected, displaying video content of each frame rate in the video data with the corresponding video brightness value.
4. The display accuracy adjustment method according to claim 1, wherein the step of receiving video data transmitted from the user terminal and determining corresponding video metadata based on the video data comprises:
and receiving video data sent by the user terminal, and analyzing a static metadata base in the video data to obtain a plurality of video metadata corresponding to the video data.
5. The display accuracy adjustment method according to claim 1, wherein the step of receiving video data transmitted from the user terminal and determining corresponding video metadata based on the video data further comprises, before:
acquiring bit depth corresponding to a high dynamic range HDR in a display terminal, and determining corresponding full-range decoding based on the bit depth;
determining brightness decoding corresponding to each brightness value in the display terminal based on the brightness peak value and the full-range decoding in the display terminal;
and establishing a corresponding decoding mapping table for each brightness value and the corresponding brightness decoding, and storing the decoding mapping table in a database.
6. The display accuracy adjustment method according to any one of claims 1 to 5, wherein the step of receiving video data transmitted from the user terminal and determining corresponding video metadata based on the video data further comprises, after:
if the full-range identification is not matched with the preset identification, normalizing the video data, and displaying the normalized video data.
7. A display accuracy adjustment device, characterized in that the display accuracy adjustment device comprises:
the determining module is used for receiving video data sent by the user terminal and determining corresponding video metadata based on the video data, wherein the video metadata comprise video brightness codes and full-range identifications;
the conversion module is used for converting the brightness decoding corresponding to the display terminal into full-range decoding if the full-range identification is determined to be matched with the preset identification;
the decoding module is used for decoding each video brightness code based on the full-range decoding to obtain a video brightness value corresponding to each video brightness code;
the mapping module is used for tone mapping the video brightness values according to the brightness peak value corresponding to the display terminal;
the mapping module is further configured to determine a luminance curve corresponding to the luminance peak value, and determine a inflection point luminance value corresponding to an inflection point in the luminance curve; detecting whether a target brightness value exists in each video brightness value, wherein the target brightness value is larger than the inflection point brightness value; if the existence of the target brightness value in each video brightness value is detected, mapping the target brightness value to a preset range through a preset algorithm, wherein the preset range is a brightness interval between the inflection point brightness value and the brightness peak value.
8. A terminal device comprising a memory, a processor and a display accuracy adjustment program stored on the memory and running on the processor, which when executed by the processor, implements the steps of the display accuracy adjustment method according to any one of claims 1 to 6.
9. A computer-readable storage medium, wherein a display accuracy adjustment program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the display accuracy adjustment method according to any one of claims 1 to 6.
CN202011221335.8A 2020-11-04 2020-11-04 Display precision adjusting method, device, terminal equipment and storage medium Active CN112351264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011221335.8A CN112351264B (en) 2020-11-04 2020-11-04 Display precision adjusting method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011221335.8A CN112351264B (en) 2020-11-04 2020-11-04 Display precision adjusting method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112351264A CN112351264A (en) 2021-02-09
CN112351264B true CN112351264B (en) 2023-05-23

Family

ID=74428746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011221335.8A Active CN112351264B (en) 2020-11-04 2020-11-04 Display precision adjusting method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112351264B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106165403A (en) * 2014-06-26 2016-11-23 松下知识产权经营株式会社 Data output device, data output method and data creation method
CN106233706A (en) * 2014-02-25 2016-12-14 苹果公司 For providing the apparatus and method of the back compatible of the video with standard dynamic range and HDR
CN107005720A (en) * 2014-08-08 2017-08-01 皇家飞利浦有限公司 Method and apparatus for encoding HDR image
WO2020086421A1 (en) * 2018-10-25 2020-04-30 Interdigital Vc Holdings, Inc. Video encoding and decoding using block-based in-loop reshaping

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006295377A (en) * 2005-04-07 2006-10-26 Mitsubishi Electric Corp Video display device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106233706A (en) * 2014-02-25 2016-12-14 苹果公司 For providing the apparatus and method of the back compatible of the video with standard dynamic range and HDR
CN106165403A (en) * 2014-06-26 2016-11-23 松下知识产权经营株式会社 Data output device, data output method and data creation method
CN107005720A (en) * 2014-08-08 2017-08-01 皇家飞利浦有限公司 Method and apparatus for encoding HDR image
WO2020086421A1 (en) * 2018-10-25 2020-04-30 Interdigital Vc Holdings, Inc. Video encoding and decoding using block-based in-loop reshaping

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
High-quality brightness enhancement functions for real-time reverse tone mapping;Rafael Pacheco Kovaleski等;《The Visual Computer》;20091231;全文 *
基于生成对抗网络的高动态范围逆色调映射算法研究;宁士钰;《中国优秀硕士学位论文全文数据库(电子期刊)》;20200615;全文 *

Also Published As

Publication number Publication date
CN112351264A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US9361537B2 (en) Techniques to reduce color artifacts in a digital image
US20160119973A1 (en) Method and device for providing ssid in wlan
CN110324831B (en) Distribution network method and device, electronic equipment, terminal and storage medium
US11380284B2 (en) Color space mapping method, equipment, computer readable storage medium, and device
CN106569984B (en) Method, device and system for automatically generating and transmitting color word stock
US9854256B2 (en) Apparatus and method of processing images in an electronic device
US20180268785A1 (en) Method of processing images and apparatus
CN112351264B (en) Display precision adjusting method, device, terminal equipment and storage medium
CN113424548A (en) Electronic device and method for playing high dynamic range video
US11017254B2 (en) Image data retrieving method and image data retrieving device
CN107465961B (en) Peak brightness improving method, storage medium and smart television
US20190050963A1 (en) Transmission method of display data, apparatus and mobile device
US20230342579A1 (en) Two-dimensional code generation method and related device
US10706489B2 (en) Image processing device, image processing method, and program for generating water marks
CN1310561A (en) Character display technique
CN107562315B (en) Application icon adjusting method and system based on intelligent terminal
CN107708183B (en) Decoding algorithm determination method, device, terminal and storage medium
CN114724522A (en) Method and device for adjusting backlight brightness of display device, display device and medium
US8090362B2 (en) Mobile electronic device and method for displaying characters on a bluetooth device
CN110708350B (en) Video pushing method, server and computer readable storage medium
CN114567813A (en) Image quality improving method and device, playing equipment and computer readable storage medium
CN109712216B (en) Chart rendering method and device, readable storage medium and electronic equipment
JP2013250314A (en) Image processor, display device, information processor and image processing method
CN109391855B (en) Method for determining display brightness value and set top box
JP6078038B2 (en) Image processing apparatus, image processing method, and program

Legal Events

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