| CPC H04N 23/741 (2023.01) [G06T 5/92 (2024.01); G06V 10/60 (2022.01); H04N 9/64 (2013.01); H04N 19/154 (2014.11); G06T 2207/20208 (2013.01)] | 16 Claims |

|
1. A high dynamic range (HDR) video processing method, wherein the method is applied by an encoding device and comprises:
obtaining dynamic metadata of an Nth HDR video frame according to a dynamic metadata generation algorithm, wherein N is greater than 0;
calculating a tone-mapping curve parameter of the Nth HDR video frame based on the dynamic metadata of the Nth HDR video frame;
generating a tone-mapping curve based on the curve parameter, wherein the tone-mapping curve is the formula (1):
![]() wherein
curve parameters a and p are based on the dynamic metadata of the Nth HDR video frame, curve parameters b, n, and m are preset values, L is input luminance, and L′ is output luminance;
determining, according to a quality assessment algorithm, distortion D′ caused by the tone-mapping curve;
comparing D′ and DT, wherein DT is a threshold value; and
generating metadata of the Nth HDR video frame based on the comparing, wherein:
when D′ is not greater than DT the metadata comprises first curve parameters configured to enable a decoder to generate a tone-mapping curve, and the metadata of the Nth HDR video frame comprises the dynamic metadata of the Nth HDR video frame, and
when D′ is greater than DT the metadata is configured to enable the decoder to calculate second curve parameters to similarly enable the decoder to generate a tone-mapping curve, and the metadata of the Nth HDR video frame comprises the dynamic metadata of the Nth HDR video frame and P[N], wherein P[N] is a curve parameter P used when D′ is greater than DT.
|