IP Library Granted Patent US 12,470,832
Granted Patent B2
US 12,470,832 · App. 17/971,086 · Granted Nov 11, 2025

High dynamic range HDR video processing method, encoding device, and decoding device

Inventors: Hu Chen (Munich, DE); Elena Alexandrovna Alshina (Munich, DE); Weiwei Xu (Shenzhen, CN); Quanhe Yu (Shenzhen, CN); Yichuan Wang (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
H04N23/741G06T5/92G06V10/60H04N9/64H04N19/154G06T2207/20208
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,470,832
App. No.
17/971,086
Granted
Nov 11, 2025
Kind
B2
Abstract

This application provides a high dynamic range HDR video processing method, an encoding device, and a decoding device. The method includes: obtaining dynamic metadata of an N th HDR video frame according to a dynamic metadata generation algorithm; calculating a tone-mapping (tone-mapping) curve parameter of the N th HDR video frame based on the dynamic metadata of the N th HDR video frame; generating a tone-mapping curve based on the curve parameter; determining, according to a quality assessment algorithm, distortion D′ caused by the tone-mapping curve; comparing D′ and D T , to determine a mode used by the N th HDR video frame, where the mode is an automatic mode or a director mode, and D T is a threshold value; and determining metadata of the N th HDR video frame based on the determined mode used by the N th HDR video frame.

Claims (165)

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 N th HDR video frame according to a dynamic metadata generation algorithm, wherein N is greater than 0;

calculating a tone-mapping curve parameter of the N th HDR video frame based on the dynamic metadata of the N th HDR video frame;

generating a tone-mapping curve based on the curve parameter, wherein the tone-mapping curve is the formula (1):

L

=

F

(

L

)

=

a

(

p

L

n

(

p

-

1

)

L

n

+

1

)

m

+

b

,

(

1

)

wherein

curve parameters a and p are based on the dynamic metadata of the N th 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 D T , wherein D T is a threshold value; and

generating metadata of the N th HDR video frame based on the comparing, wherein:

when D′ is not greater than D T the metadata comprises first curve parameters configured to enable a decoder to generate a tone-mapping curve, and the metadata of the N th HDR video frame comprises the dynamic metadata of the N th HDR video frame, and

when D′ is greater than D T 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 N th HDR video frame comprises the dynamic metadata of the N th HDR video frame and P[N], wherein P[N] is a curve parameter P used when D′ is greater than D T .

2 . The method according to claim 1 , wherein the comparing D′ and D T comprises:

determining that the N th HDR video frame will use a director mode when D′ is greater than D T , wherein D T is a distortion of the N th HDR video frame in the director mode; or

determining that the N th HDR video frame will use an automatic mode when D′ is less than or equal to D T .

3 . The method according to claim 2 , wherein the method further comprises:

obtaining an offset deltaC [N] of the tone-mapping curve parameter of the N th HDR video frame based on metadata of frames in an M-frame window, the tone-mapping curve parameter, and D′, wherein M is greater than 0 and a lower boundary of the M-frame window is an N-M th frame, and an upper boundary of the M-frame window is the N th frame.

4 . The method according to claim 3 , wherein the generating metadata of the N th HDR video frame comprises:

generating the metadata of the N th HDR video frame based on the mode to be used for the N th HDR video frame, the dynamic metadata generation algorithm, and the offset deltaC [N] of the tone-mapping curve parameter.

5 . The method according to claim 1 , wherein after the obtaining the dynamic metadata of the N th HDR video frame, the method further comprises:

performing display adaptation based on one or more preset configuration parameters; wherein the preset configuration parameters comprise one or more of the following:

1000-nit, 500-nit, and a standard dynamic range (SDR).

6 . The method according to claim 1 , wherein the metadata of the N th HDR video frame comprises a flag bit, and the flag bit indicates that the mode to be used for the N th HDR video frame is the director mode, or the flag bit indicates that the mode to be used for the N th HDR video frame is the automatic mode.

7 . An encoding device, comprising:

at least one processor; and

at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor to cause the at least one processor to:

obtain dynamic metadata of an N th HDR video frame according to a dynamic metadata generation algorithm, and N is greater than 0; and

calculate a tone-mapping curve parameter of the N th HDR video frame based on the dynamic metadata of the N th HDR video frame;

generate a tone-mapping curve based on the curve parameter, wherein the tone-mapping curve is the formula (1):

L

=

F

(

L

)

=

a

(

p

L

n

(

p

-

1

)

L

n

+

1

)

m

+

b

,

(

1

)

wherein

curve parameters a and p are based on the dynamic metadata of the N th HDR video frame, curve parameters b, n, and m are preset values, Lis input luminance, and L′ is output luminance;

determine, according to a quality assessment algorithm, distortion D′ caused by the tone-mapping curve;

compare D′ and D T , wherein Dr is a threshold value; and

generate metadata of the N th HDR video frame based on the comparing, wherein:

when D′ is not greater than D T the metadata comprises first curve parameters configured to enable a decoder to generate a tone-mapping curve, and the metadata of the N th HDR video frame comprises the dynamic metadata of the N th HDR video frame, and

when D′ is greater than D T 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 N th HDR video frame comprises the dynamic metadata of the N th HDR video frame and P[N], wherein P[N] is a curve parameter P used when D′ is greater than D T .

8 . The encoding device according to claim 7 , wherein execution by the at least one processor further causes the at least one processor to:

determine that the N th HDR video frame will use a director mode when D′ is greater than D T , wherein D T is a distortion of the N th HDR video frame in the director mode; or

determine that the N th HDR video frame will use an automatic mode when D′ is less than or equal to D T .

9 . The encoding device according to claim 8 , wherein execution by the at least one processor further causes the at least one processor to:

obtain an offset deltaC [N] of the tone-mapping curve parameter of the N th HDR video frame based on metadata of frames in an M-frame window, the tone-mapping curve parameter, and D′, wherein M is greater than 0 and a lower boundary of the M-frame window is an N-M th frame, and a upper boundary of the M-frame window is the N th frame.

10 . The encoding device according to claim 8 , wherein execution by the at least one processor further causes the at least one processor to:

generate the metadata of the N th HDR video frame based on the mode to be used for the N th HDR video frame, the dynamic metadata generation algorithm, and the offset deltaC [N] of the tone-mapping curve parameter.

11 . The encoding device according to claim 7 , wherein after the obtaining the dynamic metadata of the N th HDR video frame, the encoding device is further configured to perform display adaptation base on any one or more of the following preset configuration parameters:

1000-nit, 500-nit, and a standard dynamic range (SDR).

12 . The encoding device according to claim 7 , wherein the metadata of the N th HDR video frame comprises a flag bit, and the flag bit indicates that the mode to be used for the N th HDR video frame is the director mode, or the flag bit indicates that the mode to be used for the N th HDR video frame is the automatic mode.

13 . A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, cause an encoding device to:

obtain dynamic metadata of an N th HDR video frame according to a dynamic metadata generation algorithm, and N is greater than 0; and

calculate a tone-mapping curve parameter of the N th HDR video frame based on the dynamic metadata of the N th HDR video frame;

generate a tone-mapping curve based on the curve parameter, wherein the tone-mapping curve is the formula (1):

L

=

F

(

L

)

=

a

×

(

p

×

L

n

(

p

-

1

)

×

L

n

+

1

)

m

+

b

,

(

1

)

wherein

curve parameters a and p are based on the dynamic metadata of the N th HDR video frame, curve parameters b, n, and m are preset values, Lis input luminance, and L′ is output luminance;

determine, according to a quality assessment algorithm, distortion D′ caused by the tone-mapping curve;

compare D′ and D T , wherein Dr is a threshold value; and

generate metadata of the N th HDR video frame based on the comparing, wherein:

when D′ is not greater than D T the metadata comprises first curve parameters configured to enable a decoder to generate a tone-mapping curve, and the metadata of the N th HDR video frame comprises the dynamic metadata of the N th HDR video frame, and

when D′ is greater than D T 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 N th HDR video frame comprises the dynamic metadata of the N th HDR video frame and P[N], wherein PIN is a curve parameter P used when D′ is greater than D T .

14 . The non-transitory computer readable medium according to claim 13 , wherein when the computer program is executed the processor is further configured to:

determine that the N th HDR video frame will use a director mode when D′ is greater than D T , wherein D T is a distortion of the N th HDR video frame in the director mode; or

determine that the N th HDR video frame will use an automatic mode when D′ is less than or equal to D T .

15 . The non-transitory computer readable medium according to claim 13 , wherein when the computer program is executed the processor is further configured to:

obtain an offset deltaC [N] of the tone-mapping curve parameter of the N th HDR video frame based on metadata of frames in an M-frame window, the tone-mapping curve parameter, and D′, wherein M is greater than 0 and a lower boundary of the M-frame window is an N-M th frame, and a upper boundary of the M-frame window is the N th frame.

16 . The non-transitory computer readable medium according to claim 13 , wherein when the computer program is executed the processor is further configured to:

generate the metadata of the N th HDR video frame based on the mode to be used for the N th HDR video frame, the dynamic metadata generation algorithm, and the offset deltaC [N] of the tone-mapping curve parameter.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 10, 2023
From: CHEN, HU; ALSHINA, ELENA ALEXANDROVNA; XU, WEIWEI; YU, QUANHE; WANG, YICHUAN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 063607/0701 →
Priority Claims (1)
CN 202010390234.7 · May 8, 2020 · national
Continuity (2)
Continuation PCTCN2021083333 · Mar 26, 2021
Related Publication 20230049334A1 · Feb 16, 2023
References Cited (33)
US 10609395B2 · Kerofsky et al. · 2020 [cited by applicant]
US 20140169669A1 · Yeh et al. · 2014 [cited by applicant]
US 20170256039A1 · Hsu et al. · 2017 [cited by applicant]
US 20170353704A1 · Su et al. · 2017 [cited by applicant]
US 20180007356A1 · Kadu et al. · 2018 [cited by applicant]
US 20180152686A1 · Wozniak et al. · 2018 [cited by applicant]
US 20180261184A1 · Ninan · 2018 [cited by examiner]
US 20190043233A1 · Kim · 2019 [cited by examiner]
US 20190172187A1 · Knibbeler et al. · 2019 [cited by applicant]
US 20200014897A1 · Kim · 2020 [cited by examiner]
US 20200134792A1 · Mandal · 2020 [cited by examiner]
US 20200286213A1 · Unger · 2020 [cited by examiner]
CN 103250182A · 2013 [cited by applicant]
CN 106937121A · 2017 [cited by applicant]
CN 109891901A · 2019 [cited by applicant]
CN 110050464A · 2019 [cited by applicant]
CN 110545413A · 2019 [cited by applicant]
CN 110708545A · 2020 [cited by applicant]
CN 110910347A · 2020 [cited by applicant]
CN 111033557A · 2020 [cited by applicant]
WO 2008004439A1 · 2008 [cited by applicant]
WO 2017035661A1 · 2017 [cited by applicant]
WO WO2018035879A1 · 2018 [cited by examiner]
WO 2020061172A1 · 2020 [cited by applicant]
Eilertsen et al. “Real-time noise-aware tone mapping.” ACM Transactions on Graphics (TOG) 34.6 (2015): 1-15. (Year: 2015). [cited by examiner]
ETSI TS 103 433-2 V1.2.1 (Mar. 2020), High-Performance Single Layer High Dynamic Range (HDR) System for use in Consumer Electronics devices; Part 2: Enhancements for Perceptual Quantization (PQ) transfer function based … [cited by applicant]
Tunc Ozan Ayd n et al, Dynamic Range Independent Image Quality Assessment, ACM Transactions on Graphics, vol. 27, No. 3, Article 69, Publication date: Aug. 2008, 10 pages. [cited by applicant]
Rafal Mantiuk et al, Display Adaptive Tone Mapping, ACM Transactions on Graphics, vol. 27, No. 3, Article 68, Publication date: Aug. 2008, 10 pages, XP055365416. [cited by applicant]
Manish Narwaria et al, HDR-VDP-2.2: A calibrated method for objective quality predictionof high dynamic range and standard images, Jan. 2015, Journal of Electronic Imaging 24(1):010501, 10 pages. [cited by applicant]
SMPTE ST 2094-10:2016, SMPTE Standard, Dynamic Metadata for Color Volume Transform-Application #1, May 18, 2016, 15 pages. [cited by applicant]
SMPTE ST 2094-20:2016, SMPTE Standard, Dynamic Metadata for Color Volume Transform Application #2, Jul. 6, 2016, 23 pages. [cited by applicant]
SMPTE ST 2094-30:2016, SMPTE Standard, Dynamic Metadata for Color Volume Transform Application #3, Jul. 6, 2016, 15 pages. [cited by applicant]
SMPTE ST 2094-40:2016, SMPTE Standard, Dynamic Metadata for Color Volume Transform Application #4, Aug. 24, 2016, 26 pages. [cited by applicant]