Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
REAL-TIME RESHAPING OF SINGLE-LAYER BACKWARDS-COMPATIBLE CODEC
Document Type and Number:
WIPO Patent Application WO/2018/044803
Kind Code:
A1
Abstract:
Real-time forward reshaping, comprising selecting a statistical sliding window that indexes with the current frame, having also, a look-back frame and a look-ahead frame, determining whether they are part of the current scene, determining a noise parameter, a luma transfer function and a luma forward reshaping function based on the luma transfer function and the noise parameter within the current scene, selecting a central tendency sliding window of the current frame and the look-back frame within the current scene, and determining a central tendency luma forward reshaping function. The chroma reshaping comprises analyzing statistics for the extended dynamic range (EDR) weights and EDR upper bounds, mapping these to standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function, determining a chroma content-dependent polynomial and a central tendency chroma forward reshaping polynomial and generating chroma MMR coefficients.

Inventors:
SONG, Qing (337 S. Mary Avenue, Sunnyvale, California, 94086, US)
KADU, Harshad (Inc.1275 Market Stree, San Francisco California, 94103, US)
CHEN, Qian (795 Beaver Creek Way, San Jose, California, 95133, US)
SU, Guan-Ming (Inc.1275 Market Stree, San Francisco California, 94103, US)
Application Number:
US2017/048925
Publication Date:
March 08, 2018
Filing Date:
August 28, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
DOLBY LABORATORIES LICENSING CORPORATION (1275 Market Street, San Francisco, California, 94103, US)
International Classes:
H04N19/136; H04N19/142; H04N19/179; H04N19/87; H04N19/98
Domestic Patent References:
WO2007047758A12007-04-26
Foreign References:
US20160005153A12016-01-07
US8811490B22014-08-19
US20170221189A12017-08-03
US201662338638P2016-05-19
US20170033056W2017-05-17
Other References:
LU TAORAN ET AL: "Implication of high dynamic range and wide color gamut content distribution", OPTOMECHATRONIC MICRO/NANO DEVICES AND COMPONENTS III : 8 - 10 OCTOBER 2007, LAUSANNE, SWITZERLAND; [PROCEEDINGS OF SPIE , ISSN 0277-786X], SPIE, BELLINGHAM, WASH, vol. 9599, 22 September 2015 (2015-09-22), pages 95990B - 95990B, XP060060853, ISBN: 978-1-62841-730-2, DOI: 10.1117/12.2188572
LU TAORAN ET AL: "Compression Efficiency Improvement over HEVC Main 10 Profile for HDR and WCG Content", 2016 DATA COMPRESSION CONFERENCE (DCC), IEEE, 30 March 2016 (2016-03-30), pages 279 - 288, XP033027710, DOI: 10.1109/DCC.2016.99
MINOO (ARRIS) K ET AL: "Description of the reshaper parameters derivation process in ETM reference software", 23. JCT-VC MEETING; 19-2-2016 - 26-2-2016; SAN DIEGO; (JOINT COLLABORATIVE TEAM ON VIDEO CODING OF ISO/IEC JTC1/SC29/WG11 AND ITU-T SG.16 ); URL: HTTP://WFTP3.ITU.INT/AV-ARCH/JCTVC-SITE/,, no. JCTVC-W0031, 11 January 2016 (2016-01-11), XP030117798
"Reference electro-optical transfer function for flat panel displays used in HDTV studio production", ITU REC. ITU-R BT, vol. 1886, March 2011 (2011-03-01)
"High Dynamic Range EOTF of Mastering Reference Displays", SMPTE ST 2084, 2014
Attorney, Agent or Firm:
ANDERSEN, Robert L. et al. (Dolby Laboratories, Inc.Intellectual Property Group,1275 Market Stree, San Francisco California, 94103, US)
Download PDF:
Claims:
CLAIMS

1. A method of real-time forward reshaping, comprising:

selecting a statistical sliding window having a current frame, at least one look-back frame and at least one look-ahead frame, wherein the statistical sliding window indexes with the current frame;

determining statistics of the current frame, the at least one look-back frame and at least one look-ahead frame within the statistical sliding window; including the at least one look-back frame in a current scene if the determined

statistics of the at least one look-back frame and the current frame are within a predetermined threshold;

excluding the at least one look-back frame from the current scene if the determined statistics of the at least one look-back frame and the current frame are greater than the predetermined threshold or if the at least one look-back frame is not within the statistical sliding window;

including the at least one look-ahead frame in the current scene if the determined statistics of the at least one look-ahead frame and the current frame are within the predetermined threshold;

excluding the at least one look-ahead frame from the current scene if the determined statistics of the at least one look-ahead frame and the current frame are greater than the predetermined threshold or if the at least one look-ahead frame is not within the statistical sliding window;

determining at least one noise parameter based on the determined statistics of the current frame, the at least one look-back frame and the at least one look-ahead frame of those frames within the current scene;

determining at least one luma transfer function based on the determined statistics of the current frame, the at least one look-back frame and the at least one look- ahead frame of those frames within the current scene;

determining at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene;

selecting a central tendency sliding window of the current frame and the at least one look-back frame if the at least one look-back frame is within the current scene; and determining a central tendency luma forward reshaping function based on the at least one luma forward reshaping function of the central tendency sliding window.

2. The method of claim 1 wherein the forward reshaping comprises mapping from an

extended dynamic range, EDR, to a standard dynamic range, SDR.

3. The method of claim 1 or 2 wherein determining the at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene comprises re-allocating a bit depth among input codewords of the at least one luma transfer function based on the at least one noise parameter.

4. The method of any one of claims 1 to 3 wherein the determined statistics include a

maximum level of maximal values within the statistical sliding window, a minimum level of minimal values within the statistical sliding window, and a mean level of average values within the statistical sliding window.

5. The method of any one of claims 1 to 4 wherein the at least one noise parameter is

determined based on an average of block-based standard deviations within the statistical sliding window.

6. The method of any one of claims 1 to 5 wherein the at least one luma transfer function is constructed using dynamic tone mapping, DTM, based on the determined statistics.

7. The method of claim 6, wherein the at least one luma transfer function is further

constructed based on a given slope, a given offset, and a given power.

8. The method of any one of claims 1 to 7 wherein the central tendency luma reshaping function is determined by averaging over luma forward reshaping functions for the current frame and the at least one look-back frame of the central tendency sliding window.

9. The method of any one of claims 1 to 8 further comprising: analyzing statistics for at least one of extended dynamic range, EDR, weights and

EDR upper bounds of the current frame, the at least one look-back frame and at least one look- ahead frame within the statistical sliding window;

mapping the at least one of EDR weights and the EDR upper bounds to respective standard dynamic range, SDR, weights and SDR upper bounds based on the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial based on the

respective SDR weights and SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

10. The method of claim 9 wherein the generation of the set of chroma multivariate multiple regression (MMR) coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and SDR weights;

obtaining a central tendency chroma reshaping function;

determining a forward reshaping look-up-table (LUT) based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

11. The method of any preceding claim further comprising:

analyzing statistics for EDR upper bounds of the current frame, the at least one lookback frame and at least one look-ahead frame within the statistical sliding window;

mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial of the statistical

sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the SDR upper bounds.

12. The method of claim 11 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and a predefined forward coefficient LUT; and

determining the MMR coefficients based on the SDR upper bounds and a predefined backward coefficient LUT.

13. The method of any preceding claim further comprising:

analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame, the at least one look-back frame and at least one look-ahead frame within the statistical sliding window;

mapping the EDR upper bounds to a respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial based on the SDR upper bounds; determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

14. The method of claim 13 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining a forward reshaping function based on the SDR upper bounds; obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

15. The method of any one of claims 1 to 8 further comprising:

analyzing statistics for at least one of extended dynamic range (EDR) weights and EDR upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the at least one of extended dynamic range (EDR) weights and the EDR upper bounds to respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function; determining at least one chroma content-dependent polynomial based on the

respective SDR weights and SDR upper bounds; determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

16. The method of claim 15 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and SDR weights;

obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

17. The method of any one of claims 1 to 8 further comprising:

analyzing statistics for EDR upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial of the statistical

sliding window; and generating a set of chroma multivariate multiple regression coefficients based SDR upper bounds.

18. The method of claim 17 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and a predefined forward coefficient LUT; and

determining the MMR coefficients based on the SDR upper bounds and a predefined backward coefficient LUT.

19. The method of any one of claims 1 to 8 further comprising:

analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the EDR upper bounds to respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial based on the SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

20. The method of claim 19 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists; determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining a forward reshaping function based on the SDR upper bounds; obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

21. A method of real-time forward reshaping, comprising:

selecting a statistical sliding window having a current frame and at least one lookback frame, wherein the statistical sliding window indexes with the current frame;

determining statistics of the current frame and the at least one look-back frame within the statistical sliding window;

including the at least one look-back frame in a current scene if the determined

statistics of the at least one look-back frame and the current frame are within a predetermined threshold;

excluding the at least one look-back frame from the current scene if the determined statistics of the at least one look-back frame and the current frame are greater than the predetermined threshold or if the at least one look-back frame is not within the statistical sliding window;

determining at least one noise parameter based on the determined statistics of the current frame and the at least one look-back frame of those frames within the current scene; determining at least one luma transfer function based on the determined statistics of the current frame and the at least one look-back frame of those frames within the current scene;

determining at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene;

selecting a central tendency sliding window of the current frame and the at least one look-back frame if the at least one look-back frame is within the current scene; and

determining a central tendency luma forward reshaping function based on central tendencies of the at least one luma forward reshaping function within the scene.

22. The method of claim 21 wherein the forward reshaping comprises mapping from an

extended dynamic range, EDR, to a standard dynamic range, SDR.

23. The method of claim 21 or 22 wherein determining the at least one luma forward

reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene comprises re-allocating a bit depth among input codewords of the at least one luma transfer function based on the at least one noise parameter.

24. The method of any one of claims 21 to 23 wherein the determined statistics include a maximum level of maximal values within the statistical sliding window, a minimum level of minimal values within the statistical sliding window, and a mean level of average values within the statistical sliding window.

25. The method of any one of claims 21 to 24 wherein the at least one noise parameter is determined based on an average of block-based standard deviations within the statistical sliding window.

26. The method of any one of claims 21 to 25 wherein the at least one luma transfer function is constructed using dynamic tone mapping, DTM, based on the determined statistics.

27. The method of claim 26, wherein the at least one luma transfer function is further constructed based on a given slope, a given offset, and a given power.

28. The method of any one of claims 21 to 27 wherein the central tendency luma reshaping function is determined by averaging over luma forward reshaping functions for the current frame and the at least one look-back frame of the central tendency sliding window.

29. The method of any one of claims 21 to 28 further comprising:

analyzing statistics for at least one of extended dynamic range (EDR) weights and

EDR upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the at least one of extended dynamic range (EDR) weights and the EDR upper bounds to a respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function; determining at least one chroma content-dependent polynomial based on the

respective SDR weights and SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

30. The method of claim 29 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and SDR weights;

obtaining a central tendency chroma reshaping function; determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

31. The method of any one of claims 21 to 30 further comprising:

analyzing statistics for EDR upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial of the statistical

sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the at least one chroma content-dependent polynomial and the SDR upper bounds.

32. The method of claim 31 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and a predefined forward coefficient LUT; and

determining the MMR coefficients based on the SDR upper bounds and a predefined backward coefficient LUT.

33. The method of any one of claims 21 to 32 further comprising: analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the EDR upper bounds to respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial based on the SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window based on the respective SDR upper bounds; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

34. The method of claim 33 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining a forward reshaping function based on the SDR upper bounds; obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

35. The method of any one of claims 21 to 28 further comprising: analyzing statistics for at least one of extended dynamic range (EDR) weights and

EDR upper bounds of the current frame, the at least one look-back frame and at least one look- ahead frame within the statistical sliding window;

mapping the at least one of extended dynamic range (EDR) weights and the EDR upper bounds to respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function; determining at least one chroma content-dependent polynomial based on the

respective SDR weights and SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

36. The method of claim 35 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and SDR weights;

obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

37. The method of any one of claims 21 to 28 further comprising:

analyzing statistics for EDR upper bounds of the current frame, the at least one lookback frame and at least one look-ahead frame within the statistical sliding window;

mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial of the statistical

sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the SDR upper bounds.

38. The method of claim 37 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and a predefined forward coefficient LUT; and

determining the MMR coefficients based on the SDR upper bounds and a predefined backward coefficient LUT.

39. The method of any one of claims 21 to 28 further comprising:

analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame, the at least one look-back frame and at least one look-ahead frame within the statistical sliding window;

mapping the EDR upper bounds to respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function;

determining at least one chroma content-dependent polynomial based on the SDR upper bounds; determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

40. The method of claim 39 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining a forward reshaping function based on the SDR upper bounds; obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

Description:
REAL-TIME RESHAPING OF SINGLE-LAYER BACKWARDS-COMPATIBLE

CODEC

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority to U.S. Provisional Patent Application No.

62/381,233, filed on August 30, 2016, and European Patent Application No. 16186392.3 filed on August 30, 2016, the disclosures all of which are incorporated herein by reference in their entirety.

TECHNOLOGY

[0002] The present invention relates generally to encoding and decoding images. More particularly, an embodiment of the present invention relates to real-time single layer reshaping of backwards compatible encoding and decoding of images.

BACKGROUND

[0003] As used herein, the term 'dynamic range' (DR) may relate to a capability of the human visual system (HVS) to perceive a range of intensity (e.g., luminance, luma) in an image, e.g., from darkest blacks (darks) to brightest whites (highlights). In this sense, DR relates to a 'scene -referred' intensity. DR may also relate to the ability of a display device to adequately or approximately render an intensity range of a particular breadth. In this sense, DR relates to a 'display-referred' intensity. Unless a particular sense is explicitly specified to have particular significance at any point in the description herein, it should be inferred that the term may be used in either sense, e.g. interchangeably.

[0004] As used herein, the term high dynamic range (HDR) relates to a DR breadth that spans the some 14-15 or more orders of magnitude of the human visual system (HVS). In practice, the DR over which a human may simultaneously perceive an extensive breadth in intensity range may be somewhat truncated, in relation to HDR. As used herein, the terms enhanced dynamic range (EDR) or visual dynamic range (VDR) may individually or interchangeably relate to the DR that is perceivable within a scene or image by a human visual system (HVS) that includes eye movements, allowing for some light adaptation changes across the scene or image. As used herein, EDR may relate to a DR that spans 5 to 6 orders of magnitude. Thus while perhaps somewhat narrower in relation to true scene referred HDR, EDR represents a wide DR breadth and may also be referred to as HDR.

[0005] In practice, images comprise one or more color components (e.g., luma Y and chroma Cb and Cr) wherein color components are represented by a precision of n-bits per pixel (e.g., n=S). Using linear luminance coding, images where n < 8 (e.g., color 24-bit JPEG images) are considered images of standard dynamic range, while images where n > 8 may be considered images of enhanced dynamic range. EDR and HDR images may also be stored and distributed using high-precision (e.g., 16-bit) floating-point formats, such as the

OpenEXR file format developed by Industrial Light and Magic.

[0006] A reference electro-optical transfer function (EOTF) for a given display characterizes the relationship between color values (e.g., luminance) of an input video signal to output screen color values (e.g., screen luminance) produced by the display. For example, ITU Rec. ITU-R BT. 1886, "Reference electro-optical transfer function for flat panel displays used in HDTV studio production," (March 2011), which is incorporated herein by reference in its entirety, defines the reference EOTF for flat panel displays based on measured characteristics of the Cathode Ray Tube (CRT). Given a video stream, information about its EOTF is typically embedded in the bit stream as metadata. As used herein, the term

"metadata" relates to any auxiliary information that is transmitted as part of the coded bitstream and assists a decoder to render a decoded image. Such metadata may include, but are not limited to, color space or gamut information, reference display parameters, and auxiliary signal parameters, as those described herein.

[0007] Most consumer desktop displays currently support luminance of 200 to 300 cd/m 2 or nits. Most consumer HDTVs range from 300 to 500 nits with new models reaching 1000 nits (cd/m 2 ). Such displays thus typify a lower dynamic range (LDR), also referred to as a standard dynamic range (SDR), in relation to HDR or EDR. As the availability of HDR content grows due to advances in capture equipment (e.g., cameras) and HDR displays (e.g., the PRM-4200 professional reference monitor from Dolby Laboratories), HDR content may be color graded and displayed on HDR displays that support higher dynamic ranges (e.g., from 1,000 nits to 5,000 nits or more). Such displays may be defined using alternative EOTFs that support high luminance capability (e.g., 0 to 10,000 nits). An example of such an EOTF is defined in SMPTE ST 2084:2014 "High Dynamic Range EOTF of Mastering Reference Displays," which is incorporated herein by reference in its entirety. As appreciated by the inventors here, improved techniques for encoding and decoding reversible production-quality single-layer video signals that may be used to support a wide variety of display devices are needed.

[0008] As used herein, the term "forward reshaping" denotes the process of mapping (or quantizing) an HDR image from its original bit depth to an image of a lower or the same bit depth to allow compressing the image using existing coding standards or devices. In a receiver, after decompressing the reshaped signal, the receiver may apply an inverse reshaping function to restore the signal to its original high dynamic range. As appreciated by the inventors here, improved techniques for image reshaping of high dynamic range images are needed.

[0009] A forward reshaping look-up table (LUT) is a table in which the mapping or quantizing of the forward reshaping has been stored.

[00010] As used herein, the term backwards compatible denotes hardware and/or software that are designed to function with SDR, SDR with Dolby metadata and HDR

interchangeably. If the compressed video bit stream is present, then SDR may be viewed. If SDR and Dolby metadata are contained within the compressed video stream then the video may be viewed in SDR or in HDR. The underlying bit stream may be encoded by any codec, such as AVC, HEVC, VP9, or any future codec.

[00011] The term real-time may refer to real-time architectures and/or real-time implementations. Real-time architectures are those in which the data for processing is made available at the time of processing, e.g. there is little to no dependency on data that will not be available at the current time instance, so that data dependency delays are minimized. Realtime implementations are those in which processing may be performed within a fixed time interval, e.g. the average processing time may be performed within a certain number of frames, e.g. optimized algorithms capable of quickly realizing a result. In this way a real-time architecture provides data that is temporally near the time of processing and real-time implementations utilize this temporally near data in algorithms that may be performed within a certain number of frames, i.e. processed quickly. The instant disclosure pertains to both aspects, it is understood that achieving an optimized real-time result may be optimally realized with a real-time implementation working in conjunction with a real-time

architecture.

[00012] The term single layer denotes a compressed video bit stream. Two different bitstreams may be delivered, the first stream is a compressed video bitstream, such as AVC, HEVC, which contains the compressed pixels information, and is SDR. The bitstreams may be decoded by any legacy device. A second stream has Dolby metadata, which contains a backward reshaping function. With the first stream, video may be watched in SDR. If both the first stream and the second stream are present, the video may be watched in HDR. The first stream, the compressed video bitstream, does not contain the Dolby metadata. [00013] The term central tendency as used herein is a measure used to describe at least one of the average, mean, median, mode, center of distribution, smallest absolute deviation, dispersion, range, variance, standard deviation with kurtosis and the like, e.g. it is a measure of where the middle of the dataset lies. The term linear non-linear combination may be used in referring to the central tendency measure.

[00014] The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, issues identified with respect to one or more approaches should not assume to have been recognized in any prior art on the basis of this section, unless otherwise indicated.

BRIEF DESCRIPTION OF THE DRAWINGS

[00015] An embodiment of the present invention is illustrated by way of example, and not in way by limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:

[00016] FIG. 1 depicts an example overview in accordance with an embodiment of the disclosure;

[00017] FIG. 2 depict example real-time reshaper in accordance with an embodiment of the disclosure;

[00018] FIGs. 3A and 3B depict example luma reshapings in accordance with an embodiment of the disclosure;

[00019] FIG. 4 depicts an example of statistical sliding window and central tendency sliding windows in accordance with an embodiment of the disclosure;

[00020] FIG. 5 depicts an example chroma reshaping in accordance with an embodiment of the disclosure;

[00021] FIG. 6 depicts a first example chroma reshaping system in accordance with an embodiment of the disclosure;

[00022] FIG. 7 depicts a second example chroma reshaping system in accordance with an embodiment of the disclosure;

[00023] FIG. 8 depicts an example content dependent polynomial in accordance with an embodiment of the disclosure;

[00024] FIG. 9 depicts a shader control in accordance with an embodiment of the disclosure; and [00025] FIG. 10 depicts a third example chroma reshaping system in accordance with an embodiment of the disclosure.

DESCRIPTION OF EXAMPLE EMBODIMENTS

[00026] Encoding and decoding reversible production-quality single-layer video signals are described herein. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are not described in exhaustive detail, in order to avoid unnecessarily occluding, obscuring, or obfuscating the present invention.

[00027] In a first aspect of the disclosure, a method of real-time forward reshaping, comprising, selecting a statistical sliding window having a current frame, at least one lookback frame and at least one look-ahead frame, wherein the statistical sliding window indexes with the current frame. The forward reshaping may include inversible mapping from higher dynamic range (e.g., EDR) to a lower dynamic range (e.g., SDR) or the same dynamic range. Within the first aspect the method further comprises determining statistics of the current frame, the at least one look-back frame and at least one look-ahead frame within the statistical sliding window, including the at least one look-back frame in a current scene if the determined statistics of the at least one look-back frame and the current frame are within a predetermined threshold, excluding the at least one look-back frame from the current scene if the determined statistics of the at least one look-back frame and the current frame are greater than the predetermined threshold or if the at least one look-back frame is not within the statistical sliding window, including the at least one look-ahead frame in the current scene if the determined statistics of the at least one look-ahead frame and the current frame are within the predetermined threshold and excluding the at least one look-ahead frame from the current scene if the determined statistics of the at least one look-ahead frame and the current frame are greater than the predetermined threshold or if the at least one look-ahead frame is not within the statistical sliding window. The first aspect additionally comprises determining at least one noise parameter based on the determined statistics of the current frame, the at least one look-back frame and the at least one look-ahead frame of those frames within the current scene, determining at least one luma transfer function based on the determined statistics of the current frame, the at least one look-back frame and the at least one look-ahead frame of those frames within the current scene, determining at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene, selecting a central tendency sliding window of the current frame and the at least one look-back frame if the at least one look-back frame is within the current scene and determining a central tendency luma forward reshaping function based on the at least one luma forward reshaping function. The predetermined threshold for the statistics may be a percentage, a deviation, an absolute difference or the like. The determined statistics may include a maximum level of maximal values (e.g., pixel values, luma values) within the (frames of the) statistical sliding window, a minimum level of minimal values (e.g., pixel values, luma values) within the statistical sliding window, and a mean level of average values (e.g., pixel values, luma values) within the statistical sliding window. The at least one noise parameter may be determined based on an average of block-based standard deviations within the statistical sliding window. For example, the at least one noise parameter may be determined based on a standard deviation for each of a plurality of bins of pixel values (e.g., luma) in the current frame, the at least one look-back frame and the at least one look-ahead frame of those frames within the current scene, e.g., by taking an average over the frames. The at least one luma transfer function may be constructed using dynamic tone mapping (DTM) based on the determined statistics. The at least one luma transfer function may be further constructed based on a given slope, a given offset, and a given power for DTM.

Determining the at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene may comprise re-allocating a bit depth (in the SDR domain) among input codewords of the luma transfer function based on the at least one noise parameter. The central tendency luma reshaping function may be determined by averaging over luma forward reshaping functions for the current frame and the at least one look-back frame of the central tendency sliding window.

[00028] The statistical sliding window indexes when the current frame indexes. The basic setting for this statistical sliding window is to have A look-ahead frames and L look-back frames. If frames inside this statistical sliding window are not in the same scene as the current frame, they will be excluded. With respect to the look-ahead frames, if there are frames in a future scene, e.g. not within the current scene, those are excluded. With respect to the lookback frames, if there are frames in a previous scene, e.g. not part of the current scene, those are also excluded. In other words, in this statistical sliding window approach the frames are considered as being in the current scene if they are within the same scene as current frame inside current statistical sliding window. [00029] The luma transfer function may include dynamic tone mapping (DTM), color volume transformations, mapping of perceptual quantization signals to gamma and the like.

[00030] In a second aspect of the disclosure, a method of real-time forward reshaping, comprising, analyzing statistics for at least one of extended dynamic range (EDR) weights and EDR upper bounds of the current frame, the at least one look-back frame (if any) and optionally the at least one look-ahead frame (if any) within the statistical sliding window, mapping the at least one of extended dynamic range (EDR) weights and the EDR upper bounds to a respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function, determining at least one chroma content-dependent polynomial (e.g., a chroma frame solution comprising at least one chroma content-dependent polynomial), determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window and generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

[00031] In a third aspect of the disclosure, a method of real-time forward reshaping, comprising, selecting a statistical sliding window having a current frame and at least one look-back frame, wherein the statistical sliding window indexes with the current frame.

Within the third aspect the method further comprises determining statistics of the current frame and the at least one look-back frame within the statistical sliding window, including the at least one look-back frame in a current scene if the determined statistics of the at least one look-back frame and the current frame are within a predetermined threshold and excluding the at least one look-back frame from the current scene if the determined statistics of the at least one look-back frame and the current frame are greater than the predetermined threshold or if the at least one look-back frame is not within the statistical sliding window. The third aspect additionally comprises determining at least one noise parameter based on the determined statistics of the current frame and the at least one look-back frame of those frames within the current scene, determining at least one luma transfer function based on the determined statistics of the current frame and the at least one look-back frame of those frames within the current scene, determining at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene, selecting a central tendency sliding window of the current frame and the at least one look-back frame if the at least one look-back frame is within the current scene and determining a central tendency luma forward reshaping function based on the at least one luma forward reshaping of the central tendency sliding window. [00032] In a fourth aspect of the disclosure, a method of real-time forward reshaping, comprising, analyzing statistics for EDR upper bounds of the current frame, the at least one look-back frame (if any) within the statistical sliding window, and optionally the at least one look-ahead frame (if any) mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function, determining a chroma content-dependent polynomial of the statistical sliding window and generating a set of chroma multivariate multiple regression coefficients based on the chroma content-dependent polynomial.

[00033] In a fifth aspect of the disclosure, a method of real-time forward reshaping, comprising, analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame, the at least one look-back frame (if any) and optionally at least one look-ahead frame (if any) within the statistical sliding window, mapping the EDR upper bounds to a respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function, determining at least one chroma content-dependent polynomial (e.g., a chroma frame solution comprising at least one chroma content-dependent polynomial) based on the SDR upper bounds, determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window and generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

[00034] In a sixth aspect of the disclosure, an apparatus that forward reshapes in real-time, comprising, a statistical sliding window generator that selects a sliding window of a current frame, at least one look-back frame and at least one look-ahead frame, a statistical assessor coupled to the statistical sliding window generator that determines statistics for the current frame, the at least one look-back frame and the at least one look-ahead frame of the statistical sliding window, a scene cut detection monitor coupled to the statistical sliding window generator that determines based on an output of the statistical assessor of the current frame a current scene, and determines whether the at least one look-back frame is part of the current scene and whether the at least one look-ahead frame is part of the current scene, In a fifth aspect of the disclosure a luma transfer function mapper coupled to the scene cut detection monitor that determines a luma transfer function mapping curve based on the determined statistics for the at least one current frame, the at least one look-back frame if within the current scene and the at least one look-ahead frame if within the current scene, a noise detector coupled to the scene cut detection monitor that determines a noise parameter based on the determined statistics of the current frame, the at least one look-back frame if within the current scene and the at least one look-ahead frame if within the current scene, a luma forward reshaper coupled to the luma transfer function mapper and the noise detector that determines at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene, a central tendency sliding window generator that selects a central tendency sliding window of the current frame and the at least one look-back frame if part of the current scene and the at least one look-back frame if part of the current scene and a central tendency luma forward reshaper coupled to the luma forward reshaper that determines a central tendency luma forward reshaping function based on the at least one luma forward reshaping function of the central tendency sliding window. This aspect may also comprise a backward reshaper that inverts the luma forward reshaping function.

[00035] In a seventh aspect of the disclosure, an extended dynamic range analyzer that analyzes statistics for at least one of EDR weights and EDR upper bounds of the current frame, the at least one look-back frame (if any) and optionally the at least one look-ahead frame (if any) within the statistical sliding window and a bridge mapper coupled to the extended dynamic range analyzer that maps the at least one of EDR weights and the EDR upper bounds to a respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function. The sixth aspect of the disclosure also comprises a chroma frame solver coupled to the bridge mapper that determines at least one chroma content-dependent polynomial (e.g., a chroma frame solution comprising at least one chroma content-dependent polynomial), a chroma polynomial linear non-linear combiner coupled to the chroma frame solver that determines a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window and a chroma reshaper coupled to the chroma polynomial linear non-linear combiner and configured to receive the reshaped luma to determine a reshaped chroma and a chroma multivariate multiple regression (MMR) determiner coupled to the chroma polynomial linear non-linear combiner that generates a set of chroma MMR coefficients based on the central tendency chroma forward reshaping polynomial.

[00036] In an eighth aspect of the disclosure, an apparatus that forward reshapes in realtime, comprising, a statistical sliding window generator that selects a sliding window of a current frame and at least one look-back frame, a statistical assessor coupled to the statistical sliding window generator that determines statistics for the current frame and the at least one look-back frame of the statistical sliding window, a scene cut detection monitor coupled to the statistical sliding window generator that determines based on an output of the statistical assessor of the current frame a current scene, and determines whether the at least one lookback frame is part of the current scene, a luma transfer function mapper coupled to the scene cut detection monitor that determines a luma transfer function mapping curve based on the determined statistics for the at least one current frame and the at least one look-back frame if within the current scene, a noise detector coupled to the scene cut detection monitor that determines a noise parameter based on the determined statistics of the current frame and the at least one look-back frame if within the current scene, a luma forward reshaper coupled to the luma transfer function mapper and the noise detector that determines at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene, a central tendency sliding window generator that selects a central tendency sliding window of the current frame and the at least one lookback frame if part of the current scene and the at least one look-back frame if part of the current scene and a central tendency luma forward reshaper coupled to the luma forward reshaper that determines a central tendency luma forward reshaping function based on the at least one luma forward reshaping function of the central tendency sliding window.

[00037] In an ninth aspect of the disclosure, an extended dynamic range analyzer that analyzes statistics of an EDR upper bound within the statistical sliding window of the current frame, the at least one look-back frame (if any) and the at least one look-back frame (if any) within the statistical sliding window, a bridge mapper coupled to the extended dynamic range analyzer that maps the EDR upper bound to an SDR upper bound based on the central tendency luma forward reshaping function, a chroma frame solver coupled to the bridge mapper that determines at least one chroma content-dependent polynomial (e.g., a chroma frame solution comprising at least one chroma content-dependent polynomial), a chroma reshaper coupled to the chroma frame solver and configured to receive the reshaped luma to determine a reshaped chroma and a chroma multivariate multiple regression (MMR) determiner coupled to the bridge mapper that generates a set of chroma MMR coefficients.

[00038] As used herein, the term MMR refers to a multiple-color channel, multiple regression, predictor, first discussed in U.S. Patent 8,811,490, by G-M. Su et al., which is incorporated herein by reference, wherein in an image with multiple color components, a pixel of one color component may be predicted using a linear and/or non-linear combination of pixel values from the multiple color components.

Introduction [00039] Conventional architectures for real-time single layer backwards compatible (SLBC) codecs typically generate a reference standard dynamic range (SDR) through a live content mapping unit and use approximation to generate the SDR which also makes the SDR reversible. An approximation is performed to ascertain an extended dynamic range (EDR) data set. This approach may be computationally intensive and result in delays. The direct generation of a reversible SDR may be most optimally achieved by utilizing data temporally close to the current frame and utilizing a technique in which the average processing time is within a specific number of frames.

[00040] FIG. 1 depicts a real-time reshaper in SLBC 100 that may receive a 12+ bit camera image in a frame buffer 110 that may be a ring buffer memory or the like. The realtime reshaper 114 may utilize user, e.g. shader, preference input 112 such as lift, gain gamma (LGG) or slope offset power (SOP). The real-time reshaper 114 may reshape the input signal into a 10-bit domain according to neighboring frames' statistics, store the 10 bit reshaped frame in a buffer 116 , that may be a ring buffer memory or the like, and output the 10 bit video to an encoder 118 to output a bit stream 120. The real-time reshaper 114 may output metadata 122. The forward and backward reshaping functions may be determined in realtime.

[00041] The reshaped frames may be stored in a 10-bit reshaped frame buffer that may be a ring buffer memory or the like, which a video encoder (e.g. high efficiency video coding (HEVC)) may fetch and encode. The metadata reference picture unit (RPU) signal may be output from the real-time reshaper. It may be possible to add a muxing module if the bit stream and metadata are to be muxed. It is understood by those in the art that the number of incoming and outgoing bits may be arbitrarily set.

[00042] Among the challenges for the real-time reshaper may be highly dynamic scene and user adjustments. Originally, single-layer backward compatible codecs were constructed as scene -based to facilitate the video compression and for temporal consistency for motion compensation. To perform the real-time reshaping, a new architecture and algorithm are proposed in this disclosure.

[00043] FIG. 2 depicts an overall reshaping flow 200. In this example flow a luma video frame is input 210 and a forward reshaping of the luma is determined 212 utilizing statistical and central tendency sliding windows which will be discussed in detail below. In parallel to the luma video frame input, a chroma video frame is input 214. A luma forward reshaping function is utilized to determine the chroma forward reshaping function 216. Utilizing the luma reshaping function and the chroma reshaping function a standard dynamic range (SDR) output 218 is realized.

[00044] Luma backward reshaping is an inverse function of the luma forward reshaping function 220. Chroma backward reshaping utilizes chroma multivariate multiple regression (MMR) coefficients 222 based on the chroma forward reshaping function. The forward reshaped SDR luma, the reshaped SDR chroma and the chroma MMR components are utilized to determine the backward reshaped EDR chroma.

[00045] Individual frames have a set of statistics associated with that frame. As time moves forward from a look-back frame to a look-ahead frame, if the frame statistics change a scene boundary is detected. The statistics for the frames are compared and scene transitions are determined. Frames with similar statistical characteristics are grouped into a scene. In this context frames having similar statistical characteristics may be assessed by having those statistical characteristics differ by less than a predetermined threshold. If the statistical characteristics are greater than the predetermined threshold, the frames may be considered non-similar and may belong to different scenes.

[00046] A frame based statistical sliding window, FIGS. 3 A and 3B, is utilized which indexes when a current frame indexes. The basic setting for this statistical sliding window is to have A look- ahead frames and L look-back frames. If frames inside this statistical sliding window are not in the same scene as the current frame, these frames will be excluded. With respect to the look-ahead frames, if there are frames in a future scene, e.g. not in the current scene, those are excluded. With respect to the look-back frames, if there are frames in a previous scenes, e.g. not in the current scene, those are also excluded. In other words, in this statistical sliding window approach the frames are in the current scene if they are within the same scene as the current frame inside the current statistical sliding window.

[00047] The statistical sliding window is constrained in the look-back direction by the scene start and a maximum look-back buffer size, the statistical sliding window is constrained in the look-ahead direction by the scene end and the maximum look-ahead delay. In this example the buffer extends backward from the current frame j, back to look-back frame j-L and extends ahead from the current frame j to look- ahead frame j+A. The statistical sliding window is bounded in the look-back direction by the scene boundary and the maximum lookback buffer size and in the look-ahead direction by the scene boundary and the maximum look-ahead delay.

[00048] A central tendency sliding window will also be utilized and will also index when the current frame indexes. The basic setting for this statistical sliding window is to have j-L look-back frames extending to the current frame j. With respect to the look-back frames, if there are frames in previous scenes, e.g. not in the current scene, those frames will be excluded. The central tendency sliding window is also bounded in the look-back direction by the scene boundary and the maximum look-back buffer size.

[00049] FIGS. 3 A and 3B depict the statistical sliding windows 314 and the central tendency sliding window 316. Both windows slide with respect to a current frame j 320. The maximum look-back buffer size 310 extends L look-back frames to the past and the maximum look-ahead delay 326 extends A look-ahead frames to the future. Statistical sliding window 314 is used for the luma transfer function, noise detector and computation of EDR upper bounds and weights. Frames which are statistically similar, e.g. having statistical differences within a predetermined threshold of the current frame are considered to be within a current scene of the current frame and are included. Those frames which have statistics which are dissimilar to the current frame, e.g. having statistical differences greater than a predetermined threshold are excluded. The scene starts at 318, the current frame is 320, the incoming frame is 322 and the scene end is 324.

[00050] Generally, the statistical sliding window 314 is bounded in the look-back direction by the maximum look-back buffer size 310 and the scene start 318 and is bounded in the look-ahead direction by the scene end 324 and the maximum look-ahead delay 326.

[00051] Generally, the central tendency sliding window 316 is bounded in the look-back direction by the maximum look-back buffer size 310 and the scene start 318 and in the look- ahead direction by the current frame 320.

[00052] FIG. 3A depicts an example in which the maximum look-back buffer size 310 allows the buffer to begin in a previous scene in the look-back direction. In this example, the central tendency sliding window 316 and the statistical sliding window 314 are bounded in the look-back direction by the scene start 318. The central tendency sliding window 316 is bounded in the look-ahead direction by the current frame 320. The statistical sliding window 314 is bounded in the look-ahead direction by the maximum look-ahead delay 326.

[00053] FIG. 3B depicts an example in which the scene start 318 extends beyond the maximum look-back buffer size 310 in the look-back direction, so in this example the central tendency sliding window 316 and the statistical sliding window 314 are bound in the lookback direction by the maximum look-back buffer size 310. In this example the central tendency sliding window will be bounded in the look-ahead direction by the current frame 320. The statistical sliding window 314 will be bound in the look-ahead direction by the scene end 324. [00054] The solution for the luma reshaping is utilized for a chroma reshaping. The chroma reshaping is derived in part based on the derived luma reshaping function and the original extended dynamic range (EDR) data. To provide temporal stability, components are handled via two level processing, frame statistics level and central tendency sliding window level.

[00055] With respect to backward reshaping, the luma backward reshaping function is derived based on the inverse of the luma forward reshaping function. A set of chroma multivariate multi-regression (MMR) components are determined. The operation of the chroma MMR takes three channel input (Y, Cb, Cr) and a reference chroma channel (for example, Cb), then performs optimization to find a set of chroma MMR coefficients which minimize the difference between the predicted chroma (generated by MMR prediction) and the reference chroma. The forward reshaped SDR luma, the reshaped SDR chroma and the chroma MMR components are utilized to determine the backward reshaped EDR chroma.

Luma Reshaping

[00056] FIG. 4 depicts an example architecture an embodiment of which may be based on in a frame statistics level and a central tendency sliding window level. The frame statistics level has a statistical sliding window (look back + current frame + look ahead) with reset at scene boundaries. The central tendency sliding window level has a central tendency sliding window (look back + current frame). The embodiment may comprise several modules and buffers to store data for the sliding window implementations. In some implementations, the statistical sliding window may only include the current frame and at least one look-back frame, with reset at scene boundaries.

[00057] An input luma of a video frame 410 is received and stored in memory 436 to be utilized later in the process.

[00058] Within the frame statistics level, a frame-based scene feature module 412, receives input luma, determines frame statistics with respect to scene features and stores that portion of the statistics in a scene cut buffer 420C. A scene cut detection module, performed by a scene cut detector module, 416 reviews the frame statistics between the current frame and the look-back frame and if the statistics are similar includes the look-back frame in the current scene; if the statistics are dissimilar, the look-back frame is excluded from the current scene. The scene cut detector module 416 also reviews the frame statistics between the current frame and the look-ahead frame and if the statistics are similar, includes the look- ahead frame in the current scene and if the statistics are dissimilar the look-ahead frame is excluded from the current scene.

[00059] Within the frame statistics level, a frame based luma transfer statistics module, performed by a statistical assessor, 418 receives input luma of a video frame, and determines statistics associated with luma transfer functions. The statistics associated with the luma transfer functions are stored in the luma transfer statistics buffer 420B. The luma transfer function mapper 422 receives the data from the luma transfer statistics buffer 420B that is within the statistical sliding window and utilizes the data from those frames which are included in the current scene and excludes the data from those frames that are not within the current scene as determined by the scene change detector 416 to determine a luma transfer function. The luma transfer function may comprise dynamic tone mapping (DTM), color volume transformations, mapping of perceptual quantization signals to gamma and the like. The user preference adjustment parameters for luma, such as lift, gain and gamma (LGG) or slope, offset and power (SOP), may also be taken in this module to modify the luma transfer function. The statistical sliding window is bounded in the look-back direction by the scene boundary and the maximum look-back buffer size and is bounded in the look-ahead direction by the scene boundary and the maximum look-ahead delay.

[00060] Within the frame statistics level, a frame-based block-based standard deviation module 424 receives input luma of the video frame and determines a frame -based block- based standard deviation (BLK-STD) 424, which measures noise. The BLKSTD buffer 420A is used to store the minimal bit depth for luminance ranges. The real-time block based standard deviation (RT BLKSTD) module, performed by a noise detector, 428 receives the data from the BLKSTD buffer 420A which is within the statistical sliding window and utilizes the data from those frames which are included in the current scene and excludes the data from those frames that are not included within the current scene as determined by the scene change detector 416 to determine the RT BLKSTD.

[00061] Within the frame statistics level, a luma forward reshaping look-up table (LUT) module is performed by a luma forward reshaper, 430 that is utilized to generate a luma forward reshaping LUT or function based on the luma transfer function from the luma transfer function mapper 422 and the real-time block based standard deviation (RT BLKSTD) from the noise detector 428.

[00062] Within the frame statistics level, buffers include a BLKSTD buffer 420A, a luma transfer statistics buffer 420B and a scene cut buffer 420C. The scene change detector 416 determines whether a scene cut is detected from the data collected by it from the scene cut buffer 420C. This scene cut detection will determine in part the location of the statistical sliding window for the luma transfer function module 422 and the RT BLKSTD module 428. The scene detector determines in part the location and size of the statistics sliding window. In the luma transfer function module 422, there are two inputs from the luma transfer statistics buffer 420B and the scene change detector 416. In the RT BLKSTD module 428, input come from the BLKSTD buffer 420A and the scene change detector 416.

[00063] The statistical sliding window is determined by the scene cut locations, the maximum look-back buffer size and the maximum look-ahead delay. After determining the location of the statistical sliding window for the luma transfer function module 422, the luma transfer function is determined for the scene. After determining the location of the statistical sliding window for the RT BLKSTD module 428, the BLK-STD is determined for the scene. The luma forward reshaping module 430 receives input from the luma transfer function module 422 and the RT BLKSTD module 428.

[00064] Within the central tendency sliding window level, a central tendency sliding window 432 stores the output from the luma forward reshaping look-up table 430.

[00065] A central tendency luma forward reshaping look-up table (LUT) module, performed by a central tendency luma forward reshaper, 434 measures a central tendency of the luma forward reshaping functions of the current and the look-back frames utilizing the data from those frames which are included in the current scene and excluding the data from those frames that are not included within the current scene. The central tendency luma forward reshaping look-up table (LUT) module 434 receives data from the central tendency sliding window 432.

[00066] The luma forward reshaping module 438 receives the input luma video frames stored in memory 436 and receives the central tendency luma forward reshaping LUT from module 434, yielding the forward look-up table for luma forward reshaping 438.

[00067] Within the central tendency sliding window level, a luma backward reshaping module 440 determines the inverse curve of the forward reshaping function to yield the luma backward reshaping approximation that may be output to a reference picture unit (RPU) 446.

Frame Based Luma Forward Reshaping LUT

[00068] A frame based statistical sliding window solution utilizes frame statistics from a statistical sliding window. The statistical sliding window indexes when the current frame indexes. The basic setting for this statistical sliding window is to have A look- ahead frames and L look-back frames. If frames within the statistical sliding window are in the current scene of the current frame, they will be included. If frames within the statistical sliding window are not in the current scene of the current frame, they will be excluded. This process of inclusion and exclusion applies to both look-back and look-ahead frames. In other words, in this statistical sliding window approach the frames are considered as being in the current scene if they are within the same scene as the current frame inside the current statistical sliding window.

[00069] The frame based statistical sliding window solution will provide a luma forward reshaping LUT, and utilizing the luma forward reshaping LUT solution a central tendency sliding window solution will be found.

Real-Time Block-Based Standard Deviation

[00070] As used herein the term block based standard deviation (BLKSTD) is defined in US Provisional Patent Application No. 62/334,099 filed on May 10, 2016, entitled "Block- Based Content- Adaptive Reshaping for High Dynamic Range Images," published also as U.S. Patent Application Publication US 2017/0221189, the disclosure of which is incorporated herein by reference in its entirety.

[00071] Denote the pixel of the input image as I (p) with normalized value [0,1] (or alternatively, [0, 1)). The minimal, maximal, and average value in this frame are denoted as V L , V H , and V M j .

v L = m { I . (p) } (1) v H j = max{ I j (p) } (2) v M = mean { I j (p) } . (3)

[00072] The input image /.(p) is divided into a number of non-overlapping blocks, of size ax u. Denote the set of pixels within the block as θ . The mean value of the pixels in the k th block is given as:

[00073] Then the block-based standard deviation std- , for the k block of size uxu is determined;

[00074] std j k may be considered as the associated standard deviation for the pixels inside the block of the frame. That is, pixels inside the block of the frame have associated standard deviation stdj,k. At this stage, the standard deviation map H j (p) for pixels of frame j may be determined. For pixel p in frame j, H (p) would yield the value of the associated standard deviation of that pixel. To construct the lower bound (bit depth lower bound), some pixels in H.(p) may be discounted. The following pixels may not be included:

• The parts corresponding to the letterbox may not be considered, since those pixels have constant /. p) (e.g., all those pixels relate to black pixels). Constant portions will have zero standard deviation and high bit depth. Using those pixels to determine the bit depth lower bound would bias the final bit depth.

• The pixels at the right and bottom end of the frame where their corresponding block has size smaller than 16 x l6 may be excluded.

[00075] Denote the pixel index set of valid pixels as Qj. Let i be an index inside Qj.

Therefore, the set of valid standard deviation measurements is denoted as; j (i), i≡Cl j . (6)

[00076] For frame j, the noise measurement for the bin may be denoted as b j m , and may be obtained by the following procedure.

[00077] In a first stage, the input image pixel intensities may be partitioned into M bins with equal interval W (e.g., W = 65536/ ) to cover the whole dynamic range. Then, the average standard deviation in bins may be found as follows.

[00078] For the m^ bin (where m = 0, 1, -l), pixels in the original image of frame j, m m + 1

are identified , which have the pixel values in the range [ ]. For

M M

individual bins, the average standard deviation, b j m , for the pixels inside the bin is found.

Denote this average value as bj, m , yielding: ψ, , = {ί ΐ - < / ; ( <— } (7)

M J M

b m = mean {H j ^ l i e ^ t j (8) Thus, M bins of data as { b j m } may be found.

[00079] The luma forward reshaping LUT may be constructed in a similar fashion as has just been described for the BLK-STD with the parameters obtained within the statistical sliding window.

[00080] The minimal noise level of frame j-L (look-back frames) to frame j+A (look-ahead frames) for luminance bins m are determined, based on the L+A+l frames' statistics. If the frames at the beginning of the scene do not have complete L frames then available frames within the scene will be utilized. The starting frame index of this statistical sliding window as K = max(j— L, F S ) where Fs is the frame number of the start of scene (e.g., F s = 0), and the look-ahead frame index is denoted as j = min{ j + A,F E ] where FE is the frame number of the end of the scene. In other words, K and J are controlled by the scene cut boundary. The average noise measurement over the sliding window (noise parameter for the sliding window) is:

j - K + 1 f=K

[00081] The minimum level of the minimal values, average of the average values (mean level), and maximum level of maximal values within the statistical sliding window are derived:

v^ =min{v t l = ^...J} (10) where v L f is the minimum value for a frame/, and v j) is the minimum of the minimum values,

v<p = max{ v HJ \ f = K,... } (11) where v H f is the maximum value for a frame/, and vj ( } is the maximum of the maximum values,

where v M f is the mean value for a frame/ and v] is the mean of the mean values. Bit Depth Lower Bound within Sliding Window

TThhee nnooiissee lleevveell ((nnooiissee ppaarraammeetteerr)) I can then be converted to a required bit depth for the current frame, for example via where /( ) may be an empirical function.

The required bit depth may be normalized by the EDR and SDR bit depths B j and B T to obtain a normalized amount of requ for example via

After obtaining the normalized amount of required codewords for each bin, this can be extended from the M bins to all codewords in the EDR domain, for example via

That is, for each codeword (pixel value) i in the EDR domain, the normalized amount of required codewords (in the SDR domain) can be given by the normalized amount of required codewords for the bin containing that codeword in the EDR domain.

{d^} is the lower bound on the number of required codewords. Any transfer curve

(quantization curve) should satisfy this lower bound to avoid generating contouring artifacts.

[00082] A luma transfer function may be constructed for M bins using dynamic tone mapping (DTM) curve DTM {ν , v ( } , v[ D , 1 · (/?), S . , O . , . ) with user (shader) preference input slope Sj, offset Oj and power Pj. In general, the luma transfer function may depend on the minimum level of the minimal values, the mean level of the average values, and the maximum level of the maximal values. The luma transfer function, may also be converted through PQ to gamma function (ETF). For frame j, the luma transfer function may be based on:

[00083] In order to be backward compatible in the SDR domain, the mapped range may be constrained to the SMPTE range. Let T mil and T malxl be the minimum and maximum values respectively, i.e.,

T = T (v ) (14) and

ra ) = r u W ) (15)

[00084] If a frame is pure black, the minimum and maximum values in the LUT may be

16 235 the same. The values in the LUT may be directly clipped to SMPTE range [ , ]

256 256

T U) = clip3(T U) ,— ,—) where clip3(x, L, H) = min( max(x, L), H ) ( 16)

256 256

[00085] If T^ is different from , the luma forward reshaping LUT range [ T^ , ] may be linearly scaled to the SMPTE range [ min , max ], where

16 (17)

SMPTE.mm

256 and

S SMPTE, max mln ' max J

[00086] The constants in equation (18) are defined by the SMPTE standard. The linear scaling is applied to elements in the luma forward reshaping LUT:

u ) _ u ) (19)

T ( j) _ * SMPTE ,™* ^ SMPTE , min T U) i J)

jO ' ) _ jO ' ) ^ min A SMPTE , min

max mm

[00087] Output T U ) values are clipped to SMPTE range, [ , ] .

256 256

Determining a Targeted Mapping Range

[00088] Based on and , the extreme values may be found after finding the luma transfer function: s^ =1 J \v^) (20)

[00089] Define the normalized available luma transfer function codeword range as: where Βτ is the SDR bit depth, This is the codeword budget that may be used in the forward reshaping process.

Targeted Bit Depth per Bin

[00090] The differential value between T u i) and T^O ' -l) is found as the bit depth in input codeword.

Select Largest Value per Bin

[00091] For individual input codewords, there are two different bit depths: (1) d- j) from noise measurement; and (2) from the luma transfer function. Two sets are constructed depending on which value is larger:

CP ^ t^ xf? ) (2 )

Φ ω ={^, (,, ≤4 0) }

[00092] For input codeword , if the luma transfer function bit depth j ) is no larger than the , (i.e. i e Φ <;) ) it implies there is a chance to observe banding artifact, which is not sought. Therefore, is used in this input codeword:

¾ ω =d,. ', for ϊ≡Φ υ) . (25 )

Determine Extra Allocated Codeword

[00093] The extra allocated codewords may be determined as: Deduction of Extra Allocated Codeword

[00094] These extra codewords are to be deducted from set Ω ) . A simple way is to equally reduce a fixed number of codewords, τ-τ— :

4 y Ι Ω ϋ) I

F U) (27) ' I Ω 0) I

[00095] Note that it is possible that < d t ) after this deduction. This situation is to be avoided, by determining extra allocated codewords also for these pixels.

Smooth the Curve

[00096] A simple moving average filter may be used covering two bin widths, namely,

2W. One example is shown below:

w

Λ where

k=-w (28)

1

a , —

2W + 1

Construct frame-level Forward Reshaping LUT

[00097] Let c L , c H denote the minimum and maximum luminance values in the SDR domain. A forward reshaping LUT may be built based on the smoothed curve via cumulative summation with the offset from the targeted lower luminance in the SDR domain, i.e. CL- Denote this LUT at frame j as FLUT j . This FLUT j is monotonically non-decreasing.

Central Tendency Level Luma Reshaping LUT

[00098] If the frame statistics level LUT, ( FLUT j ), is applied to reshape EDR frames, flickering issues may result in the temporal domain. The maximum level of the maximal EDR value and minimum level of the minimal EDR value in the statistical sliding window, ν ί} and v H ( ' } may be different from v L (i+l) and v H (i+l) , which yields different frame statistics level LUT for frame j and frame j ' +i, resulting in a potential flickering issue.

[00099] One solution is to take average of the maximal and minimal EDR values in the statistical sliding window:

1 i (29)

(30) v U) =-

[000100] Then plug them in the luma transfer function, e.g. DTM algorithm. This approach results in information clipped which impacts on the reversibility. It is quite possible that v L ( ) is greater than v L , and/or v H ( ' } is less than v H , and then the FLUT j will clip the information of v L · and v H · out. The information cannot be recovered in the backward reshaping.

[000101] In order to preserve information, we stick to the min, max and average values in the statistical sliding window as defined in (10) - (12):

v j) =min{ v Lf \f = K,...,j} (3D

I

K + l 1 f f=K

[000102] In order to reduce flickering, averaging is applied to the FLUT j of the current and the look-back frames:

FLUT U) (v) = FLUT f (v) for all v. (32)

[000103] FL r f (V) is the frame statistics level LUT of frame/, and FLUT 0) (v) is the central tendency luma forward reshaping function. In order to reduce delays, look-ahead frames are not utilized for reshaping averaging.

[000104] The reshaped signal may be generated via the FLUT: s ^FLU^iv") (33) where vj ; is the original EDR luma of pixel i in frame j, and s j y t is the forward reshaped SDR luma.

Luma Modulated Chroma Forward Reshaping in a First System

[000105] FIG. 5 depicts an overview of chroma reshaping 500. In the first example the luma modulated reshaping function 510 in conjunction with the original extended dynamic range (EDR) data 512 is used to determine a reshaped standard dynamic range (SDR) output

514.

[000106] FIG. 6 depicts a first example of chroma forward reshaping 600 for Cb channel. Cr channel can be performed in a similar way. In this example an input luma video frame 410 is input, a central tendency luma forward reshaping LUT 434 is determined as indicated previously and the luma undergoes reshaping 438 to yield a reshaped luma 610.

[000107] At the frame statistics level, an input chroma video frame 614 is input. Two tracks will be followed, determining an EDR upper bound 616 and EDR weights 628, performed by the extended dynamic range analyzer, performing analysis of the current frame, the at least one look-ahead frame (if any) and the at least one look-back frame (if any) within the statistical sliding window.

[000108] In the EDR upper bound track, the EDR upper bounds are determined 616 and collected in an EDR upper bound buffer 618B and the upper bounds are averaged 620; note that central tendency characteristics other than averaging may be utilized. Utilizing the central tendency luma forward reshaping LUT 434 and the averaged EDR upper bounds, a mapping is performed from EDR to SDR 622 and SDR upper bounds are determined 624.

[000109] In the EDR weights track, the EDR weights are determined 628 and stored in the EDR weights buffer 618A, the EDR weights are averaged 632, e.g. a central tendency is found, and utilizing the central tendency luma forward reshaping LUT and the averaged EDR weights, a mapping is performed from EDR to SDR 634 and the SDR weights are determined 636. The EDR to SDR mapping function of 622 and 634 are performed by the bridge mapper. The averaging of the EDR weights 632 is just one example of any number of central tendency measures that may be found.

[000110] The SDR weights 636 and the SDR upper bounds 624 are utilized to determine a chroma forward reshaping scale polynomial 626, performed by the chroma frame solver.

[000111] At the central tendency sliding window level, the chroma forward reshaping polynomial 626 is input from the frame statistics level into a central tendency sliding window 638 in which the central tendency of the forward reshaping polynomial curves 640 is found, termed the chroma polynomial linear non-linear combiner. The central tendency forward reshaping polynomial curves are fit to a central tendency curve 646 from which chroma MMR coefficients are determined, performed by the chroma MMR determiner, 648 and output to a reference picture unit (rpu) 224.

[000112] The central tendency (e.g. linear/non-linear combined) forward reshaping polynomial curves 640 along with the reshaped luma 610 and the input chroma video frame 614 are utilized to determine chroma forward shaping, termed the chroma reshaper, 642 resulting in a reshaped chroma 644 which along with the reshaped luma 612 results in an SDR data output 218.

[000113] FIG. 7 depicts a second example of chroma forward reshaping 700 for Cb channel. Cr channel can be performed in a similar way. FIG. 7 is a modified version of the method of FIG. 6 in which only the EDR upper bound is statistically analyzed. In this example an input luma video frame 410 is input, a central tendency luma forward reshaping LUT 434 is determined as indicated previously and the luma undergoes reshaping 438 to yield a reshaped luma 610.

[000114] At the frame statistics level, an input chroma video frame 614 is input. In this example only the EDR upper bound 616 is statistically analyzed by the extended dynamic range analyzer, performing analysis of the current frame, the at least one look-ahead frame (if any) and the at least one look-back frame (if any) within the statistical sliding window.

[000115] The EDR upper bounds are determined 616 and collected in an EDR upper bound buffer 618B and the upper bounds are averaged 620; note that central tendency characteristics other than averaging may be utilized. Utilizing the central tendency luma forward reshaping LUT 434 and the averaged EDR upper bounds, a mapping is performed from EDR to SDR 622 and SDR upper bounds are determined 624. The SDR upper bounds 624 are utilized to determine a chroma forward reshaping scale polynomial 626, performed by the chroma frame solver.

[000116] At the central tendency sliding window level, the chroma forward reshaping polynomial 626 is input from the frame statistics level into a central tendency sliding window 638 in which the central tendency of the forward reshaping polynomial curves 640 is found, termed the chroma polynomial linear non-linear combiner. The central tendency forward reshaping polynomial curves are fit to a central tendency curve 646 from which chroma MMR coefficients are determined, performed by the chroma MMR determiner, 648 and output to a reference picture unit (rpu) 224. [000117] The central tendency (e.g. linear/non-linear combined) forward reshaping polynomial curves 640 along with the reshaped luma 610 and the input chroma video frame 614 are utilized to determine chroma forward shaping, termed the chroma reshaper, 642 resulting in a reshaped chroma 644 which along with the reshaped luma 612 results in an SDR data output 218.

[000118] The forward reshaped SDR chroma (channel Cb) of pixel i in frame j is s" t and the original EDR chroma (channel Cb) of pixel i in frame j is v" ( . A luminance modulated chroma forward reshaping may be performed based on the reshaped SDR luma H :

- 0.5) + 0.5 . (34)

[000119] where s" t is the forward reshaped SDR chroma (channel Cb) of pixel i in frame j, and v" ( is the original EDR chroma (channel Cb) of pixel i in frame j. In the following, channel Cb may be used as an example to explain chroma forward and backward reshaping. Channel Cr may be processed in the same way.

[000120] The luma modulated scale function of frame j, / . (£ ) , may take the form of a polynomial function of H with K F order:

[000121] where { Oj k } are the polynomial coefficients and K F =2 (2 nd -order polynomial).

The reference polynomial coefficients { 0^. k } may also be determined. A reference polynomial may be a luminance dependent chroma scale factor, 2 order polynomial trained from a training dataset.

Content-adaptive Reversible Reshaping Function

[000122] The reshaped SDR may be utilized to derive the maximal scale factor to maintain the EDR reversibility. To determine the reshaped SDR, the luma forward reshaping function may be utilized. The maximal scale factors may be filtered and smoothed along time domain for use in real-time determinations.

[000123] FIG. 8 depicts a content dependent polynomial 800. In the event that the chroma overflows or underflows, it may be clipped to the reshaped domain. In this event a maximal scale factor (upper bound) is located for luminance ranges 812. A new polynomial would be determined by minimizing the weighted distance between the reference 814 and new polynomial 816, such that the new polynomial is bounded by zero and the upper bound. The weighting factor would be the number of pixels in bins 810.

Maximal Scale Factor in EDR Domain

[000124] The luma may be divided into M E ranges and the EDR luma histograms collected:

[000125]

original EDR chroma of pixel i in frame j is .. .

[000126] The maximal chroma value in bins may be determined:

c Am =7- max({ k¾ -0.5 l \ ie V j ) (37) where the empirical value of η is 0.85 for full range output and η is 0.95 for SMPTE range output.

[000127] The upper bound of chroma scale factor of bins (EDR upper bound) may be determined q j m = Γηΐη{0.5/^. m ,¾- max } for full range and q j m = min {0.4375/ c m , g max } for

SMPTE range, where the empirical value of <™ x is 10. The EDR upper bound of frames in the statistical sliding window may be collected, and average the EDR upper bounds derived:

Where q f m is the EDR upper bound for frames within the statistical sliding window.

Maximal Scale Factor in SDR Domain

[000128] The EDR upper bound may be mapped to SDR by using the luma FLUT of frame j (current frame). The x-axis from EDR luma may be changed to the reshaped SDR luma. M E

2m + 1

is uniformly sampled in the EDR domain between [0 1] : x , where m = 0, 1,

m 2M E

M E -1. The sampled points x m may be mapped from the EDR domain to the SDR domain which has Ms bins: x m = FLUT ^ (x m ) _ (39)

[000129] Note that M E is larger than Ms, namely, the higher-precision of bins is mapped to lower precision of bins.

[000130] Then for n = 0, 1, Ms-1, the indexes X m in the n bin may be: far n = 0, 1, ..., Ms-1. (40)

[000131] Note that several X m may be in the same bin, and some bins may be empty. The SDR upper bound may be found by taking the minimum of EDR upper bounds:

= min {^ j) l ik e Φ,, } for n = 0, 1, M s -1. (41)

[000132] The empty bins in series {q n {j) } may be interpolated according to the neighboring conditions, if the left and right neighbors are available for one empty bin, a bi-linear interpolation may be applied based on the nearest left and right neighbors, if only left or only right neighbor are available for an empty bin, such as at the end of series of {q n (j) } , the value of the closest non-empty bin may be copied and {q n {j) } may be the SDR upper bound of frame j.

Frame Statistics Level Generation of Forward Reshaping Polynomial

[000133] Similar to luma determination, the chroma reshaping function may be generated in two different levels.

[000134] Ms samples may be obtained from the reference polynomial curve:

2M S

(43) r„ = f n) = Pr* X nt &Γ Π = 0, 1 , M S -1.

k=0

[000135] Three points may be determined;

Point A: O 0 > r o) (44)

Point B: (x T , q^ j) ) where Γ - arg min(¾ 0) -r ) and Point C: (¾.,¾ ) where = arg mmiq ' ) ·

n

[000136] The frame-based polynomial coefficients may be determined. If Point B is above or on the reference polynomial curve, i.e., min( ¾ y) - r ) > 0 , where q n (j) is the SDR upper bound and the reference polynomial for this frame: ) is utilized.

[000137] Otherwise, the forward reshaping 2 nd -order polynomial may be found by solving a distance optimization problem. The polynomial may intersect Point A and Point B, and have the shortest weighted distance from the reference curve. The weights may be determined by the number of pixels in bins. An average weight of frames in the statistical sliding window may be determined and the weights in EDR domain obtained and mapped to the SDR domain.

[000138] For frames in the statistical sliding window, the number of pixels in bins in the EDR image may be determined for histogram Ψ . m : where m = 0, 1, ME-1- (45)

[000139] where Ψ . m is defined as (36). The EDR weights may be averaged over the statistical sliding window:

1 7 (46) ^ = - r „ ^/ ,m for m = 0, l, ..., ME-1.

j - K + 1 1 f=K

[000140] The EDR domain ma be mapped to the SDR domain: for n = 0, 1, Ms-1. (47)

[000141] The EDR weights may be mapped to the SDR domain:

∑ w k (j) for n = 0, 1, ..., M s -1. (48) ke<l>„

[000142] Empty bins may be interpolated, excluding end bins, if there are empty bins on both ends, they are not interpolated. The empty bins may be interpolated between the nonempty bins and {v^ } the weights taken for optimization. After interpolation, the non-empty bins may be derived based on: = {n I w n (j) > 0} . This would exclude the empty bins on both ends. [000143] After the weights are obtained, the polynomial coefficients may be optimized by:

M S -I (49) a j2 = argmin( w^- 1 r n - /,(*„) I 2 )

aj n=0 where ^ (X " } = + S J* ' * » + ^ ' ( " f

~ _ ~ 2 ~

_ r 0 ~ X 0^j,l ~ X 0 &j,2 (51)

f j (x n )≤q n (j) for ns Cl j (5 ) . ( n ) > £ for all n, where £ > 0.

[000144] If a search fails, a l st -order polynomial may be utilized. The coefficients may be found by solving the optimization problem (the polynomial goes through Point C, and has the shortest weighted distance from the reference curve):

Ms_1 ~ (53) ] x =argmin(^ w n (j) - 1 r n - ,·(*„) I 2 ) where

S t n=0 ^jfi = c ~ j\ ' X C

a Jt2 = 0 (55) f j (x n )≤q^ for ne £L j (56) . (x n )>£ for all n, where £≥ 0.

[000145] The new polynomial may also be obtained by the unweighted distance from the reference curve. In this case, we may not collect the EDR weights. The polynomial coefficients may be obtained by: :

(57) j 2 = argmin(∑ I r„ - ,(*„) I 2 )

aj n=0 where ^ (X " } = + S J* ' * » + ^ ' ( " f ~ 2 ~

C 0^j,\ ~ X 0 &j (59)

£ < f. (x n )≤ ¾-° for all n, where £≥ 0. ( 60 )

[000146] If a search fails, a l st -order polynomial may be utilized. The coefficients may be found by solving the optimization problem (the polynomial goes through Point C, and has the shortest unweighted distance from the reference curve):

(61) ] x = arg min(∑ \ r n - f j (x n ) \ 2 ) where

n=0

(62)

¾,o Qc ^ ,i ' x c

j 2 = 0 (63)

£ < (Χ η )≤ ^ for all n, where £≥ 0 . ( 64 )

Central Tendency Sliding Window Level Generation of Forward Reshaping Polynomial

[000147] The polynomial curves of the current and the look-back frames may be averaged and fit a new polynomial to the averaged curve.

[000148] If the frame-coefficients of the current and the look-back frames in the central tendency sliding window are the same as the reference coefficients then the final coefficients may be Otherwise, for current and look-back frames, Ms samples on the polynomial may be obtained: yj,n = fj ( X n ) = jfl + ■ X n + ,2 " (*„ )' for Ά = 0, 1, M S -1. ( 65 )

[000149] The samples may be averaged for the polynomial:

[000150] A 2-order polynomial to {y ( } may be fit, having coefficients { <¾ ) } . The fitting smooths the chroma forward reshaping scale factors. [000151] Note that the determination may be reduced by averaging the coefficients in the central tendency sliding window directly, as long as {x n } are the same for all the frames. { y j n } may be rewritten in the form y . = Xfi . , where

{ y n { j) } may be rewritten as

U)

,0 " ) yi (68)

j - K + = X ( ~ δ

f=K j - K + -∑ Χδ /

1 f=K j - K + 1 f=K

y%-

a

A polynomial is fit to { so that y° = Χα° , where a svU)

y n ( ) }

U)

The optimization problem may be formulated as min Xa u) - y u)

(69)

The least squares solution of α is:

[000152] This indicates that averaging the polynomial coefficients is equivalent to averaging the polynomial curves and fitting a new polynomial to the average. The process may be simplified by the following averaging procedure: a! ) - 1

j - K + 7∑«/,o

1 f=K

1 j 1

ί f = k r

[000153] The derived polynomial as the chroma scaling factor may be directly applied. Since there are finite possibilities of luma value, the possible luma values may be used from the polynomial to build a ID look-up table (LUT). The LUT may be determined as follows:

P? = f U) ( =∑ */ )* for I = 0, 1, ..., L-l (72) where t, 21 + 1 and L may be 1024, or 2048, etc. depending on the precision. Note that L is

2L

a multiple of (2*M S ).

[000154] Scale factors may be applied to the forward reshaping:

s u .. = 7 ω . ( ν » -0.5) + 0.5, (73) where

/ = flooHv L) , i.e., lt < v » < li±i . 74)

Or simply by taking the MSB of v j y t , which is the original EDR luma of pixel i in frame j.

[000155] FIG. 9 depicts shader control 900 which allows the polynomial to be moved upward or downward as long as it satisfies the upper and lower bounds. The upper bound is shown as 914 having a polynomial 910 intersecting it, a decreased saturation 912 may be input to pull the polynomial slightly below the upper bound 914. The upper bound 920 may also allow an increased saturation of the polynomial 922 in addition to the decreased saturation 918 of the original polynomial 916.

Backward Reshaping Function

[000156] Three order chroma MMR with 2 inputs are utilized for backward reshaping: ν β " = m j 0 + m l (¾ ) + m j 2 f + m j 3 (¾ ) 3

+ m jA ) + m j 5 (s } u i f + m j 6 ) 3 (75) + m jt7 (s fi s ) + m . j8 ( S]i - s ) + m ] 9 ( S]i S )

[000157] where v", is the backward reshaped EDR chroma (channel Cb) of pixel i in frame j. The chroma MMR coefficients ni = [m j 0 m j X · · · m j 9 ] are sought and will be stored and sent to the rpu.

[000158] With respect to backward reshaping function, at system initiation, the chroma MMR coefficients may be deduced for the reference forward reshaping polynomial. If there is no upper bound violation (i.e., if there is no violation of the SDR upper bounds by the reference forward reshaping polynomial), the reference polynomial coefficients may be used for forward reshaping, and the chroma reference MMR coefficients used for backward reshaping.

[000159] The coefficients yield the scale factors: f r (x„ =∑a r , k ix„ k for n = 0, 1, ..., M S -1 and x n =^—. (76) £ 2M S

[000160] An inverse scale factor of luma bins may be determined

z n = l/ f r (x n ) for n = 0, 1, M s -1. (77)

[000161] A curve fitting on the samples {z may be performed to get polynomial of order

s n ) (78)

[000162] Chroma MMR coefficients m r by m r = Αβ Γ may be determined, where

β Γ = [1 β τ 0 β τ λ · · · β Γ k and A is the conversion matrix as specified in U.S.

Provisional Application Ser. No. 62/338,638, "Chroma Reshaping for High Dynamic Range Images," by Q. Song et al., filed on May 19, 2016, (to be referred to as the '638 Application), filed also as PCT Application Ser. No. PCT/US2017/033056, filed on May 17, 2017, which is incorporated herein by reference.

[000163] With respect to frames, if the resulting forward reshaping polynomial is the same as the reference polynomial, m r may be utilized as the chroma MMR coefficients.

[000164] Otherwise, if the forward reshaping polynomial may be different from the reference polynomial, the content-dependent chroma MMR coefficients may be utilized. [000165] If we have obtained the EDR weights and SDR weights, the rightmost non-empty bin: d = max (ri) may be found.

[000166] The bin index may be clipped by d max : D = max ( d, d™ x ) , where d max is a constant. The empirical value of d max is 50 when Ms = 64.

[000167] Since D corresponds to the rightmost non-empty bin in the Ms bins, down sampling the forward reshaping ID LUT p ]) to Ms samples may be performed:

P d = Pi > where p d (j) is the down-sampled ID LUT, and where / = ^(2d + 1) ^ an( ^ ^ (79)

2 , and L may be a multiple of 2*M S

[000168] Thus, the samples may be similar to the original samples, i.e., x d ~ x n for d = n,

L(2d + \)

+ 1

2d + \ 1

where Xj = - s +

2L 2M S 2L

[000169] The inverse scale factors may be determined: , for d = 0, 1, ... , D and ρ is the down-sampled ID LUT. (80)

[000170] A curve fitting may be performed on the samples \ ζ to get polynomial of order

The optimization problem may be formulated as

The least squares solution is β ) = (Χ^,-, Χ Ω ) ' X^ (J) z ) = C D(J) z ) , where

C D(J) = (X^ (J) X D(J) ) 'X p(il (83)

[000171] Note that χ and C D „, depend on D u) . C D „, may be predetermined for D u) = 50, 64 at system initialization (i.e. 15 tables with (K B +l)*64 dimension). Then for frames, C U) is multiplied with z ) to obtain β ) . Chroma MMR coefficients m ) by m ) = Αβ ) may be derived, where: β (7) = [1 y§ 0 ) ? ! ) · · · , where A is the conversion matrix. (84)

Such that conversion of the inverse scale factor, z ) , to the final chroma MMR coefficients, m ) , may be expressed as matrix conversion. The first part of equation (77) states that the MMR coefficients m ) may be obtained by multiplying the central tendency reshaping function by a fixed conversion matrix Αβ 0) , where β 0) are the polynomial coefficients. The second part of equation (77) states that a simplification may be made in determining the MMR coefficients m ) in which inverse scale factor sample values z ) may be multiplied by two conversion matrices AC „, .

In a case where the EDR weights or SDR weights have not been determined, D may be set to Ms, and the MMR coefficients may be determined utilizing a procedure that is similar to the one described above.

Luma Modulated Chroma Forward Reshaping in a Second Device

[000172] FIG. 10 depicts a second example of chroma forward reshaping 1000 for Cb channel for a second device such as a mobile device. Cr channel can be performed in a similar way. In this example an input luma video frame 410 is input, a central tendency luma forward reshaping LUT 434 is determined as indicated previously and the luma undergoes reshaping 438 to yield a reshaped luma 610.

[000173] An input chroma video frame 614 is input. The EDR upper bounds, is performed by the extended dynamic range analyzer on the current frame, the at least one look-ahead frame (if any) and the at least one look-back frame (if any) within the statistical sliding window. The EDR upper bounds are determined 616 and collected in an EDR upper bound buffer 618B, the upper bounds are averaged 620 in this example, any process to determine a central trend may be utilized. Utilizing the central tendency luma forward reshaping LUT 434 and the averaged upper bounds from module 620 a mapping is performed from EDR to SDR, performed by the bridge mapper, 622 and SDR upper bounds are determined 624.

[000174] A chroma forward reshaping polynomial is determined from the forward reshaping scale polynomial LUT, performed by the chroma frame solver, 1010 utilizing the SDR upper bound output. Utilizing the chroma Cb forward reshaping polynomial output the chroma undergoes forward reshaping, performed by the chroma reshaper, 1012, resulting in a reshaped chroma 1014. The reshaped chroma output 1014 is combined with the reshaped luma output 612 to yield data in the SDR domain 218. Additionally the data from the SDR upper bound 624 may be used to obtain chroma MMR coefficients performed by the chroma MMR determiner, 1016 from that the backward LUT that may be sent to the RPU 224.

[000175] The polynomial coefficients may be obtained from a predetermined forward reshaping coefficient LUT to reduce complexity. The forward reshaping coefficient LUT may comprise coefficients at locations of Point B. An example of the construction of the forward coefficient LUT may be found specified in the '638 Application. The index corresponding to the obtained Point B: («*, T) may be found. The polynomial coefficients may be:

¾ ) = a(n*,T, k) , where «(·,·,·) is the LUT. (86)

[000176] A ID scale factor LUT may be built using the polynomial coefficients for frame j:

(72)

/* Λ =∑¾ Λ■ ('/)* for 1 = 0, 1, L-l

k=0

[000177] where t, · Scale factors may be applied to the forward reshaping: s u = ? / ω · (ν" - 0.5) + 0.5 , (73) where l = flooriv . L) ^., ^ < v i < ^ , W or simply by taking the MSB of v y n , which is the original EDR luma of pixel i in frame j.

Backward Reshaping

[000178] With respect to backward reshaping, the chroma MMR coefficients may be found from the backward LUT. The backward LUT includes the chroma MMR coefficients of locations of Point B. The index may correspond to the obtained Point B: («*, T) . The chroma MMR coefficients may be r(n*, T, k) for k, where ?(·,·,·) is the backward reshaping LUT. An example of the construction of the backward reshaping coefficient LUT may be found in the '638 Application.

Saturation Control

[000179] After the polynomial coefficients of forward reshaping are obtained through the procedure described above, the shader may adjust the saturation manually. The shader may modify the constant coefficient fl^ until the polynomial curve touches the upper bound or lower bound. The upper bound {¾^}is defined in the above sections. The lower bound is set to δ , where δ > 0.

[000180] The procedure may be explained in the following:

χ=0^ } +δ, δ may be any value (positive or negative or zero).

[000181] Scale factors may be obtained:

4 n /) · (x n †, where the polynomial coefficients are ( 88 ) k (f) = CC{n*,T,k) and where «(·,·,·) is the LUT.

[000182] If <¾ ) for n e Ω . and q n (j) > σ for n = 0, 1, D, ¾ ) is replaced by χ .

[000183] The chroma MMR coefficients may be resolved using the new polynomial coefficients. In one example δ was set to 0.2 to insure an adequate backward reshaped EDR.

[000184] If q^ does not satisfy the conditions above, then fl^ remains unchanged. The shader may have a slider to control the saturation.

Equivalents, Extensions, Alternatives and Miscellaneous

[000185] In the foregoing specification, embodiments of the invention have been described with reference to numerous specific details that may vary from implementation to implementation. Thus, the sole and exclusive indicator of what is the invention, and is intended by the applicants to be the invention, is the set of claims that issue from this application, in the specific form in which such claims issue, including any subsequent correction. Any definitions expressly set forth herein for terms contained in such claims shall govern the meaning of such terms as used in the claims. Hence, no limitation, element, property, feature, advantage or attribute that is not expressly recited in a claim should limit the scope of such claim in any way. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. [000186] Various aspects of the present invention may be appreciated from the following enumerated example embodiments (EEEs).

EEE 1. A method of real-time forward reshaping, comprising:

selecting a statistical sliding window having a current frame, at least one look-back frame and at least one look-ahead frame, wherein the statistical sliding window indexes with the current frame;

determining statistics of the current frame, the at least one look-back frame and at least one look-ahead frame within the statistical sliding window; including the at least one look-back frame in a current scene if the determined

statistics of the at least one look-back frame and the current frame are within a predetermined threshold;

excluding the at least one look-back frame from the current scene if the determined statistics of the at least one look-back frame and the current frame are greater than the predetermined threshold or if the at least one look-back frame is not within the statistical sliding window;

including the at least one look-ahead frame in the current scene if the determined statistics of the at least one look-ahead frame and the current frame are within the predetermined threshold;

excluding the at least one look-ahead frame from the current scene if the determined statistics of the at least one look-ahead frame and the current frame are greater than the predetermined threshold or if the at least one look-ahead frame is not within the statistical sliding window;

determining at least one noise parameter based on the determined statistics of the current frame, the at least one look-back frame and the at least one look-ahead frame of those frames within the current scene;

determining at least one luma transfer function based on the determined statistics of the current frame, the at least one look-back frame and the at least one look- ahead frame of those frames within the current scene;

determining at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene; selecting a central tendency sliding window of the current frame and the at least one look-back frame if the at least one look-back frame is within the current scene; and

determining a central tendency luma forward reshaping function based on the at least one luma forward reshaping function of the central tendency sliding window.

EEE 2. The method of EEE 1 further comprising:

analyzing statistics for at least one of extended dynamic range (EDR) weights and

EDR upper bounds of the current frame, the at least one look-back frame and at least one look- ahead frame within the statistical sliding window;

mapping the at least one of extended dynamic range (EDR) weights and the EDR

upper bounds to a respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function; determining a chroma frame solution comprising at least one chroma content- dependent polynomial;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

EEE 3. The method of EEE 2 wherein the generation of the set of chroma multivariate

multiple regression (MMR) coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and SDR weights;

obtaining a central tendency chroma reshaping function;

determining a forward reshaping look-up-table (LUT) based on the central tendency chroma reshaping function; determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

EEE 4. The method of EEE 1 further comprising:

analyzing statistics for EDR upper bounds of the current frame, the at least one lookback frame and at least one look-ahead frame within the statistical sliding window;

mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function;

determining a chroma frame solution comprising at least one chroma content- dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the SDR upper bounds.

EEE 5. The method of EEE 4 wherein the generation of the set of chroma multivariate

multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and a predefined forward coefficient LUT; and determining the MMR coefficients based on the SDR upper bounds and a predefined backward coefficient LUT.

EEE 6. The method of EEE 1 further comprising: analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame, the at least one look-back frame and at least one look-ahead frame within the statistical sliding window;

mapping the EDR upper bounds to a respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function;

determining a chroma frame solution comprising at least one chroma content- dependent polynomial based on the SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

EEE 7. The method of EEE 6 wherein the generation of the set of chroma multivariate

multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining a forward reshaping function based on the SDR upper bounds; obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

EEE 8. The method of EEE 1 further comprising: analyzing statistics for at least one of extended dynamic range (EDR) weights and EDR upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the at least one of extended dynamic range (EDR) weights and the EDR upper bounds to a respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function; determining a chroma frame solution comprising at least one chroma content- dependent polynomial;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

EEE 9. The method of EEE 8 wherein the generation of the set of chroma multivariate

multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and SDR weights;

obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

EEE 10. The method of EEE 1 further comprising: analyzing statistics for EDR upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function;

determining a chroma frame solution comprising at least one chroma content- dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the SDR upper bounds.

EEE 11. The method of EEE 10 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and a predefined forward coefficient LUT; and

determining the MMR coefficients based on the SDR upper bounds and a predefined backward coefficient LUT.

EEE 12. The method of EEE 1 further comprising:

analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the EDR upper bounds to a respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function;

determining a chroma frame solution comprising at least one chroma content- dependent polynomial based on the SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

EEE 13. The method of EEE 12 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining a forward reshaping function based on the SDR upper bounds; obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

EEE 14. A method of real-time forward reshaping, comprising:

selecting a statistical sliding window having a current frame and at least one lookback frame, wherein the statistical sliding window indexes with the current frame;

determining statistics of the current frame and the at least one look-back frame within the statistical sliding window;

including the at least one look-back frame in a current scene if the determined

statistics of the at least one look-back frame and the current frame are within a predetermined threshold;

excluding the at least one look-back frame from the current scene if the determined statistics of the at least one look-back frame and the current frame are greater than the predetermined threshold or if the at least one look-back frame is not within the statistical sliding window;

determining at least one noise parameter based on the determined statistics of the current frame and the at least one look-back frame of those frames within the current scene;

determining at least one luma transfer function based on the determined statistics of the current frame and the at least one look-back frame of those frames within the current scene;

determining at least one luma forward reshaping function based on the at least one luma transfer function and the at least one noise parameter within the current scene;

selecting a central tendency sliding window of the current frame and the at least one look-back frame if the at least one look-back frame is within the current scene; and

determining a central tendency luma forward reshaping function based on central tendencies of the at least one luma forward reshaping function within the scene.

EEE 15. The method of EEE 14 further comprising:

analyzing statistics for at least one of extended dynamic range (EDR) weights and EDR upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the at least one of extended dynamic range (EDR) weights and the EDR

upper bounds to a respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function; determining a chroma frame solution comprising at least one chroma content- dependent polynomial;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial. EEE 16. The method of EEE 15 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and SDR weights;

obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

EEE 17. The method of EEE 14 further comprising:

analyzing statistics for EDR upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function;

determining a chroma frame solution comprising at least one chroma content- dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the SDR upper bounds.

EEE 18. The method of EEE 17 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists; determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and a predefined forward coefficient LUT; and

determining the MMR coefficients based on the SDR upper bounds and a predefined backward coefficient LUT.

EEE 19. The method of EEE 14 further comprising:

analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame and the at least one look-back frame within the statistical sliding window;

mapping the EDR upper bounds to a respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function;

determining a chroma frame solution comprising at least one chroma content- dependent polynomial based on the SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

EEE 20. The method of EEE 19 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining a forward reshaping function based on the SDR upper bounds; obtaining a central tendency chroma reshaping function; determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

EEE 21. The method of EEE 14 further comprising:

analyzing statistics for at least one of extended dynamic range (EDR) weights and

EDR upper bounds of the current frame, the at least one look-back frame and at least one look- ahead frame within the statistical sliding window;

mapping the at least one of extended dynamic range (EDR) weights and the EDR upper bounds to a respective standard dynamic range (SDR) weights and SDR upper bounds based on the central tendency luma forward reshaping function; determining a chroma frame solution comprising at least one chroma content- dependent polynomial;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

EEE 22. The method of EEE 21 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and SDR weights; obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.

EEE 23. The method of EEE 14 further comprising:

analyzing statistics for EDR upper bounds of the current frame, the at least one lookback frame and at least one look-ahead frame within the statistical sliding window;

mapping the EDR upper bounds to SDR upper bounds based on a central tendency of the EDR upper bounds and the central tendency luma forward reshaping function;

determining a chroma frame solution comprising at least one chroma content- dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the SDR upper bounds.

EEE 24. The method of EEE 23 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining the forward reshaping function based on the SDR upper bounds and a predefined forward coefficient LUT; and determining the MMR coefficients based on the SDR upper bounds and a predefined backward coefficient LUT. EEE 25. The method of EEE 14 further comprising:

analyzing statistics for extended dynamic range (EDR) upper bounds of the current frame, the at least one look-back frame and at least one look-ahead frame within the statistical sliding window;

mapping the EDR upper bounds to a respective standard dynamic range (SDR) upper bounds based on the central tendency luma forward reshaping function;

determining a chroma frame solution comprising at least one chroma content- dependent polynomial based on the SDR upper bounds;

determining a central tendency chroma forward reshaping polynomial based on the at least one chroma content-dependent polynomial of the statistical sliding window; and

generating a set of chroma multivariate multiple regression coefficients based on the central tendency chroma forward reshaping polynomial.

EEE 26. The method of EEE 25 wherein the generation of the set of chroma multivariate multiple regression coefficients comprises:

if no upper bound violation exists;

determining a forward reshaping function utilizing a default reference

polynomial; and

determining a set of default MMR coefficients corresponding to the forward reshaping function for backward reshaping;

if an upper bound violation exists;

determining a forward reshaping function based on the SDR upper bounds; obtaining a central tendency chroma reshaping function;

determining a forward reshaping LUT based on the central tendency chroma reshaping function;

determining inverse scale factors from the forward reshaping LUT;

determining an inverse polynomial based on the inverse scale factors;

multiplying coefficients of the inverse polynomial by a fixed conversion

matrix; and

determining the MMR coefficients based on the multiplication for backward reshaping.