Optimization of chain reshaping functions

Chained reshaping functions optimize video signals for diverse display devices, addressing the challenge of adapting HDR and EDR content across different display capabilities, ensuring high fidelity and efficient rendering.

JP7543577B2Active Publication Date: 2024-09-02DOLBY LABORATORIES LICENSING CORP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023575544
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-06-08
Filing Date
2022-06-01
Publication Date
2024-09-02
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

Existing video coding technologies struggle to efficiently adapt high dynamic range (HDR) and extended dynamic range (EDR) content for a wide variety of display devices with different capabilities, leading to suboptimal visual quality and compatibility issues.

Method used

The implementation of chained reshaping functions in a pipeline that optimize the conversion of video signals across different dynamic ranges, color spaces, and display capabilities, using constrained or unconstrained optimization algorithms to generate multiple target color grades, and incorporating metadata for efficient decoding and rendering on diverse devices.

Benefits of technology

This approach ensures high fidelity and efficient adaptation of HDR and EDR content across various display devices, maintaining visual quality and compatibility while minimizing computational costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007543577000033
    Figure 0007543577000033
  • Figure 0007543577000038
    Figure 0007543577000038
  • Figure 0007543577000037
    Figure 0007543577000037
Patent Text Reader

Abstract

An input image to a pipeline of Chained Reshaping functions is received. A reference image is generated from the input image. The input image and the reference image are used to determine operation parameters of Chained Reshaping functions in the pipeline of Chained Reshaping functions. A reshaped image generated from one or more Chained Reshaping functions is encoded into a video signal along with image metadata. The image metadata includes some or all of the operation parameters that specify the Chained Reshaping functions. A receiver of the video signal is adapted to use the image metadata and the reshaped image to generate a reconstructed image.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] FIELD OF THE DISCLOSURE The present disclosure relates generally to image processing operations. More specifically, embodiments of the present invention relate to video codecs. [Background technology]

[0002] As used herein, the term "dynamic range (DR)" may relate to the ability of the human visual system (HVS) to perceive a range of intensities (e.g., luminance, luma) in an image, e.g., from darkest blacks to brightest whites (highlights). In this scene, DR relates to "scene-referred" intensity. DR may also relate to the ability of a display device to properly or approximately render an intensity range of a particular width. In this scene, DR relates to "display-referred" intensity. At any point in the description herein, unless it is explicitly specified that a particular scene has a particular importance, it should be presumed that the terms may be used in either scene, e.g., synonymously.

[0003] As used herein, the term "high dynamic range (HDR)" refers to a DR width that spans 14-15 times or more the magnitude of the human visual system (HVS). In fact, the DR where humans can simultaneously perceive a wide range in the intensity range may be omitted in some way in relation to HDR. As used herein, the terms "enhanced dynamic range (EDR)" or "visual dynamic range (VDR)" refer individually or synonymously to the DR perceivable in a scene or image by the human visual system (HVS), including eye movements, allowing any light adaptation to change across the scene or image. As used herein, EDR may refer to a DR that spans 5-6 orders of magnitude. Although perhaps somewhat narrower than the actual scene referred to as HDR, EDR nevertheless represents a wide DR width and may also be referred to as HDR.

[0004] In practice, an image includes one or more color component (N) channels (e.g., luma Y and chroma Cb and Cr) of a color space, where each color component is represented with n bits of precision per pixel (e.g., n=8). Images with n≦8 (e.g., color 24-bit JPEG images) using non-linear luminance coding (e.g., gamma encoding) are considered to be standard dynamic range images, while images with n>8 may be considered to be extended dynamic range images.

[0005] A reference electro-optical transfer function (EOTF) for a given display characterizes the relationship between the color values ​​of the input video signal (e.g., luminance represented by a codeword of the codeword representing the image, etc.) and the output screen color values ​​produced by the display (e.g., screen luminance represented by a display drive value of the display drive values ​​used to render the image, etc.). For example, ITU Rec. ITU-RBT1886, “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 a reference EOTF for flat panel displays. Given a video stream, information about its EOTF may be embedded in the bitstream as (image) metadata. The term “metadata” as used herein relates to any auxiliary information transmitted as part of the encoded bitstream to assist a decoder to render a decoded image. Such metadata may include, but is not limited to, color space or gamut information, reference display parameters, and auxiliary signal parameters, as described herein.

[0006] The term "PQ" as used herein stands for perceptual luminance amplitude quantization. The human visual system (HVS) responds to increasing light levels in a highly nonlinear manner. A human's ability to see a stimulus is affected by the luminance of the stimulus, the size of the stimulus, the spatial frequencies that make up the stimulus, and the luminance level to which the eye is adapted at a particular moment to see the stimulus. In some embodiments, a perceptual quantization function maps linear input gray levels to output gray levels that better match the contrast sensitivity threshold in the human visual system. Exemplary PQ mapping functions are described in SMPTE ST2084:2014 "High Dynamic Range EOTF of Mastering Reference Displays" (hereinafter "SMPTE"), which is incorporated herein by reference in its entirety, and which, given a fixed stimulus size, for each luminance level (e.g., stimulus level, etc.), the minimum visible contrast step at that luminance level is selected (according to the HVS model) according to the adaptation level to which the luminance level is most sensitive and the spatial frequency to which it is most sensitive.

[0007] 200~1000cd / m 2Displays supporting 100 nits or less of luminance represent lower dynamic range (LDR), also called standard dynamic range (SDR) in contrast to EDR (or HDR). EDR content may be displayed on EDR displays supporting a higher dynamic range (e.g., 1000 nits to 5000 nits or more). Such displays may be defined using an alternative EOTF that supports higher luminance capabilities (e.g., 0 to 10000 nits). Example EOTFs (e.g., HDR, Hybrid Log Gamma, or HLG, etc.) are defined in SMPTE 2084 and Rec. ITU-R BT.2100, “Image parameter values ​​for high dynamic range television for use in production and international programme exchange,” (06 / 2017). See also ITU Rec. ITU-R BT.2020-2, “Parameter values ​​for ultra-high definition television systems for production and international programme exchange,” (October 2015), which is incorporated by reference in its entirety, relating to the Rec.2020 or BT.2020 color space. As recognized by the inventors herein, improved techniques for coding high quality video content data for rendering on a wide variety of display devices are desired.

[0008] The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Thus, 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, problems identified with one or more of the approaches should not be assumed to have been recognized in any prior art under this section, unless otherwise indicated. WO2018 / 005705A1 discloses a method for reconstructing a high dynamic range video signal. A decoder receives parameters in an input bitstream to generate a prediction function. The prediction function is used to generate a first set of nodes for a first prediction lookup table, each node being characterized by an input node value and an output node value. Then, the output node values ​​of one or more of the first set of nodes are modified to generate a second set of nodes for a second prediction lookup table, and the second lookup table is used to generate an output predicted value. A low-complexity method is presented for modifying the output node value of a current node in the first set of nodes based on the calculation of a modified gradient between the current node and the nodes surrounding the current node. WO2017 / 015564A1 discloses a method for encoding digital video data that applies adaptive pre-processing to data representing high dynamic range (HDR) and / or wide color gamut (WCG) image data before encoding and applies complementary post-processing to the data after decoding to enable at least partial reproduction of the HDR and / or wide color gamut (WCG) data. An exemplary method applies one or more color space transformations and perceptual transfer functions to the data before quantization. An exemplary method applies an inverse perceptual transfer function and an inverse color space transformation after decoding to recover the HDR and / or WCG data. The transfer functions are adaptive such that different transfer functions can be applied to video datasets comprising different frame groups, frames, or processing windows within a single frame. Information about the dataset and the applied transfer functions are passed as metadata from the encoder to the decoder. WO2012 / 125802A1 discloses a method of transforming image data for display on a target display. A sigmoidal transfer function provides a free parameter that controls minimum tonal contrast. The transfer function can be dynamically adjusted to adapt to changing ambient lighting conditions. The transformation can be selected to automatically adapt the image data for display on the target display in a manner that substantially preserves the creative intent embodied in the image data. The image data can be video data. Minoo, K. at al.: "Description of the reshaper parameters derivation process in ETM reference software", Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 23rd Meeting: San Diego, USA, 19-26 February 2016, document JCTVC-W0031, date saved: 11 January 2016, XP030117798 discloses a reshaping process in an HEVC processing pipeline that analyzes an input HDR signal, generates an SDR-compatible reshaped video signal, and generates reshaping parameters for reconstructing the HDR signal from the reshaped video signal. Francois, E. et al: "HDR CE2-related: some experiments on ETM with dual grading input", Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 23rd Meeting: San Diego, USA, 19-26 February 2016, document JCTVC-W0089, date saved: 15 February 2016, XP030117867, describes a dual grading HDR distribution scenario, where both SDR and HDR versions are given as input to an HDR distribution system, from which an SDR-compatible version is generated. Summary of the Invention

[0009] The invention is defined in the independent claims. The dependent claims relate to optional features of some embodiments of the invention. [Brief description of the drawings]

[0010] Embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the accompanying drawings, in which like reference symbols represent similar elements and in which: [Figure 1] 1 illustrates an example image processing pipeline for performing chain reshaping optimization.

[0011] [Figure 2A] 1 illustrates an example pipeline of a chain reshaping function. [Figure 2B] 1 illustrates an example pipeline of a chain reshaping function. [Figure 2C] 1 illustrates an example pipeline of a chain reshaping function. [Figure 2D] 1 illustrates an example pipeline of a chain reshaping function.

[0012] [Figure 3A] 3 illustrates an example distortion of a reshaped video signal. [Figure 3B] 3 illustrates an example distortion of a reshaped video signal. [Figure 3C] 3 illustrates an example distortion of a reshaped video signal. [Figure 3D] 3 illustrates an example distortion of a reshaped video signal. [Figure 3E] 3 illustrates an example distortion of a reshaped video signal. [Figure 3F] 3 illustrates an example distortion of a reshaped video signal.

[0013] [Figure 4A] 1 shows an exemplary process flow. [Figure 4B] 1 shows an exemplary process flow.

[0014] [Diagram 5] FIG. 1 illustrates a simplified block diagram of an exemplary hardware platform on which the computers or computing devices described herein may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Throughout the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. It will be apparent, however, that the present invention may be practiced without some of these specific details. In other instances, well-known structures and devices are not described in exhaustive detail in order to avoid obscuring, obscuring, or obscuring the present disclosure.

[0016] <Summary> This specification describes techniques for chained reshaping optimization (CRO). A chain of reshaping functions can be concatenated into a pipeline. Each reshaping function in the chain of reshaping functions has a reference color grade (or reference video signal) and approximates and generates a target (or reshaped) color grade that is the same as or close to the reference color grade. A chain of reshaping functions can be used to generate multiple target (or reshaped) color grades. As used herein, different color grades of the same video content may be different combinations of some or all of the dynamic range, color space or gamut, spatial resolution, image refresh rate, chroma sampling format, image container, etc. A particular color grade may represent video data as transmitted in a video signal with a particular combination of some or all of the dynamic range, color space or gamut, spatial resolution, image refresh rate, chroma sampling format, image container, etc.

[0017] A constrained or unconstrained optimization solution / algorithm can be implemented or executed to find an optimized reshaping function that constitutes a chain of reshaping functions. The optimization solution / algorithm can be implemented as an iterative solution / algorithm in the formulation of a constrained or unconstrained problem.

[0018] For purposes of illustration only, color grades produced by video codecs that correspond to or implement exemplary (e.g., bitstream, video coding, Dolby, third-party proprietary, standards-based, etc.) profiles associated with HDR10 backwards-compatible video coding, SDR backwards-compatible video coding, HLG backwards-compatible video coding, etc., are used in some discussions herein as non-limiting implementation examples to illustrate some or all of these techniques. It should be noted that in various embodiments, these and other profiles can be used as the input video signal, as any or all of the reference video signal or color grade, and as any or all of the target or reshaped video signal or color grade.

[0019] Exemplary (e.g., bitstream, video coding, Dolby, third-party proprietary, standards-based, etc.) profiles that may be supported or implemented by a video codec as described herein can be found in SMPTE ST2094, “Dynamic Metadata for Color Volume Transform (DMCVT),” (2016), the entire contents of which are incorporated herein by reference as if fully set forth herein. Profiles as described herein may include, but are not limited to, any of the following: profiles supported by 10-bit codecs, such as the 10-bit HEVC (Main10) profile, profiles supported by 8-bit codecs, such as the 8-bit AVC (Main) profile, profiles supported by video codecs that implement perceptual quantization, profiles supported by video codecs that implement SDR video coding, such as Profile8.2 for Rec. 709 SDR video, Profile32.2 for SDR Mobile video, profiles supported by video codecs that implement Hybrid Log Gamma or HLG video coding, such as for mobile video and DVB broadcast video. These (e.g., bitstream, video coding, Dolby, third-party proprietary, standards-based, etc.) profiles can be used to support different user devices, different video codecs, different dynamic ranges, different color spaces, different domains in which image codewords are expressed, etc.

[0020] The chain reshaping function optimization techniques as described herein can be used to provide static and dynamic mappings between various color classes. Static mappings are generated in advance and selected for application at run-time (e.g., based at least in part on the actual codeword distribution or other characteristics of the input image, etc.), while dynamic mappings are generated and applied on the fly at run-time. By way of example and not limitation, some or all of these techniques can be implemented or applied to provide static mappings between different target (or reshaped) color classes supported by chained reshaping functions in a pipeline, for example, by concatenating reshaping functions (e.g., ordered, chained, sequential, directed, etc.) in a chain of reshaping functions and applying the concatenated reshaping functions to the (e.g., target, reshaped, etc.) color classes decoded from the video signal. For example, color classes corresponding to different profiles (e.g., Dolby Vision Profiles supported by Dolby Vision video coding solutions commercially available from Dolby Laboratories, Inc., California, etc.) can be converted via static mappings.

[0021] In a first example, a first (e.g., bitstream, video coding, Dolby, third-party proprietary, standards-based, etc.) profile (e.g., Dolby Vision Profile 8.4, etc.) supported by an HLG backward-compatible codec can now be converted via static mapping to a (e.g., bitstream, video coding, Dolby, third-party proprietary, standards-based, etc.) profile (e.g., Dolby Vision Profile 8.2 / 9.2 / 32.2, etc.) supported by an SDR backward-compatible codec in widely deployed user equipment. More specifically, given a (e.g., first profile, Dolby Vision Profile 8.4, etc.) video signal or (input) image in the HLG (Hybrid Log Gamma) base layer of the video signal as input, a first reshaping function can be constructed or used to convert the HLG input image to an SDR image. Then, a second, different reshaping function can be constructed or used to further convert the SDR image to a PQ image. For example, this PQ image may be the same or equivalent to an output 1000 nit PQ image by directly reshaping the input image in the first profile or BT.2100 color space.

[0022] In a second example, a second (e.g., bitstream, video coding, Dolby, third-party proprietary, standards-based, etc.) profile (e.g., Dolby Vision Profile 8.1, etc.) supported by an HDR10 backward-compatible codec can now be converted via static mapping to a (e.g., bitstream, video coding, Dolby, third-party proprietary, standards-based, etc.) profile (e.g., Dolby Vision Profile 8.4, etc.) supported by an HLG backward-compatible codec. More specifically, given a (e.g., second profile, Dolby Vision Profile 8.1, etc.) video signal or (input) image in a 1000 nit PQ base layer of a video signal as input, a first reshaping function can be constructed or used to convert the input 1000 nit PQ image to a 1000 nit HLG (base layer) image. A second, different reshaping function can then be constructed or used to further convert the 1000 nit HLG (base layer) image to a 4000 nit PQ image. For example, this 4000 nits PQ image may be the same or equivalent to the output 4000 nits PQ image by directly reshaping the input image in the second profile.

[0023] It should be noted that in various embodiments, these and other chains of reshaping functions (including but not limited to longer chains of reshaping functions) may be optimized and constructed or used to generate multiple target (or reshaped) color classes.

[0024] In some operational scenarios, iterative (optimization) algorithms can be used to support reversibility of the forward and reverse (reshaping) paths. For example, the output color class (or output video signal) generated from the reverse reshaping can be optimized to be close to the input color class (or input video signal) of the forward reshaping. Thus, the output video signal can be eventually reverted to the (original) input video signal (or original input domain).

[0025] In some operating scenarios, the output color grade (or output or reshaped video signal) generated (e.g., at the end, etc.) from the chain of reshaping functions may not be in the same domain or may not be the same or close to the input color grade (or input video signal) input to the chain of reshaping functions. These techniques support adjustment of the output color grade (e.g., final, optimized, iteratively optimized, etc.). Additionally, optionally or alternatively, these techniques can be implemented to ensure a relatively high level of fidelity in each intermediate (target) color grade generated by some or all of the chain of reshaping functions by minimizing deviations or differences between the intermediate color grade (e.g., SDR color grade, etc.) and the (original) reference color grade (e.g., reference SDR color grade, etc.). Additionally, optionally or alternatively, some or all of these techniques can be implemented in a wide range of video distribution and display applications, including but not limited to those that support single-layer backward compatible (SLBC) codecs.

[0026] The embodiments described herein relate to encoding of video images in conjunction with chained reshaping optimization. An input image of an input video signal to a pipeline of chained reshaping functions is received, the pipeline of chained reshaping functions including a chain of reshaping functions. From the input image of the input video signal, two or more reference images are generated for two or more reference color classes, each reference image of the two or more reference images corresponding to a respective reference color class of the two or more reference color classes. The input image and the two or more reference images are used to determine two or more sets of operation parameters for the two or more chained reshaping functions in the pipeline of chained reshaping functions, each set of operation parameters specifying a respective chained reshaping function in the two or more chained reshaping functions, each chained reshaping function in the two or more chained reshaping functions being used to generate a respective reshaped image in the two or more reshaped images in the two or more reshaping color classes. A selected reshaped image in a selected reshaping color class among the two or more reshaping images in the two or more reshaping color classes is encoded into the video signal together with image metadata, the image metadata including one or more sets of operation parameters for one or more Chained Reshaping functions among the two or more Chained Reshaping functions, and a receiver of the video signal is adapted to use the image metadata and the selected reshaped image to generate a reconstructed image of a reshaping color class other than the selected reshaping color class.

[0027] The embodiments described herein relate to decoding a video image in conjunction with Chained Reshaping optimization. A reshaped image in a reshaping color order is decoded from a video signal together with image metadata, the image metadata including one or more sets of operation parameters each specifying one or more Chained Reshaping functions in a pipeline of Chained Reshaping functions. At least one of the one or more Chained Reshaping functions is applied to the reshaped image decoded from the video signal to generate a second reshaped image in a second reshaping color order. A display image generated from the second reshape image is rendered on a display device.

[0028] <Example Image Processing Pipeline> FIG. 1 illustrates an exemplary process of a video distribution pipeline (100) showing various stages from video capture to displaying video content. A sequence of video frames (102) are captured or generated using an image generation block (105). The video frames (102) may be digitally captured (e.g., by a digital camera, etc.) or computationally generated (e.g., using computer animation, etc.) to provide video data (107). Additionally, optionally, or alternatively, the video frames (102) may be captured on film by a film camera. The film is converted to a digital format to provide the video data (107). In a production stage (110), the video data (107) is edited to provide a video production stream (112).

[0029] The video data of the production stream (112) is then provided to a processor for post-production editing (115). Post-production editing (115) may include adjusting or modifying the color or brightness of certain areas of the image (e.g., automatically, manually, partially automatically and partially manually, etc.) to improve image quality or achieve a particular look according to the video producer's creative intent. This is sometimes referred to as "color timing" or "color grading." Other editing (e.g., scene selection, ordering, manual and / or automatic scene cut information generation, image cropping, addition of computer-generated visual special effects, etc.) may be performed in the post-production editing (115) to produce the original input video signal through content mapping and / or color grading, to a pipeline of chained reshaping functions, etc.

[0030] The original input video signal is used by an upstream device (e.g., an encoder, transcoder, production studio system, content aggregation and / or distribution server, streaming server, etc.) or post-production block (115) and / or a coding block (120) therein to generate one, two or more reference color classes of the image, and to generate a Chain Reshaping function that is used to generate one, two or more reshaped color classes that are each the same as or closely approximate the one, two or more reference color classes (e.g., by minimizing a prediction error, a closed-form solution to an unconstrained or constrained optimization problem, etc.).

[0031] The reference color classes and / or reshaped color classes may include different sets or sequences of corresponding reference images depicting the same scene or semantic content, but may differ in one or more of the following: different dynamic range levels, different color spaces, different EOTFs, different color space types, etc. For example, these reference color classes and / or reshaped color classes may include images with different video codecs and / or different image processing capabilities and / or user-perceivable visual qualities optimized for different user devices, such as iOS devices, Android devices, tablet computers, laptop computers, desktop computers, televisions with different display capabilities, etc. In some operating scenarios, the reshaped color classes that closely approximate the reference color classes may be transmitted, decoded, or reconstructed more efficiently (e.g., with less computational cost, in less time, etc.) by a receiving device of a video signal that includes some or all of the computational parameters of some or all of the Chain reshaping functions and the color classes encoded in the video signal. An exemplary reshaping operation is described in U.S. Patent No. 10,080,026 to GM entitled "Signal reshaping approximation," the entire contents of which are incorporated herein by reference as if fully set forth herein.

[0032] In some operating scenarios, the coding block (120) receives an original input video signal (e.g., an input color grade, an HLGRec.2020 video signal, etc.) generated from the post-production block (115). One, two, or more reference color grades can be generated from the original input video signal using content mapping and / or color grading / timing tools. Each of the input video signal and the reference color grades represent the same visual scene or set of semantic content. The reference color grades can be derived from the original input video signal via content mapping and / or color grading performed by manual, automatic, or a combination of manual and automatic image processing operations.

[0033] For illustrative purposes only, an original input video signal is received by the coding block (120), for example from a post-production block (115), and represents an input color gamut of the HDR image 117. A reference image in a standard color gamut that is approximated by the reshaped color gamut may be content-mapped (e.g., using an appropriate profile in a video coding tool, such as a Dolby Vision coding tool available from Dolby Laboratories, Inc., San Francisco, California, etc.) from the HDR image (117) in the original input video signal. In some embodiments, during post-production editing 115, the HDR image 117 is viewed by a colorist performing post-production editing on the HDR image 117 on an HDR reference display 125 that supports high dynamic range.

[0034] The coding block (120) may implement some or all of the chained optimization operations as described herein to generate multiple sets of operation parameters for the chained reshaping functions in the pipeline used to map images in the input video signal to reshaped images of intermediate and / or final reshaped color classes. In some operating scenarios, a selected (e.g., a single, etc.) reshaped color class selected from the intermediate and final reshaped color classes (e.g., an SDR color class, an SDR color class for a mobile device, an SDR color class for an SDR television, etc.) may be compressed / encoded by the coding block (120) into the encoded bitstream (122). Some or all of the multiple sets of operation parameters for the chained reshaping functions (e.g., an inverse reshaping function, an inverse reshaping function, etc.) may be included or encoded in the same encoded bitstream as part of the image metadata.

[0035] Coding block 120 may include audio and video encoders, such as those defined by ATSC, DVB, DVD, Blu-Ray, and other distribution formats, to generate encoded bitstream 122.

[0036] In some operational scenarios, the encoded bitstream 122 may represent a video signal (e.g., an 8-bit SDR video signal, a 10-bit SDR video signal, etc.) that is backward compatible with a wide variety of SDR display devices (e.g., SDR displays, etc.). In a non-limiting example, the video signal encoded with the reshaped SDR image may be a single-layer backward-compatible video signal, where a "single-layer backward-compatible video signal" may represent a video signal that carries an SDR image that is specifically optimized or color-graded for a single signal layer SDR display. An example of a single-layer video coding operation is described in U.S. Patent Application Publication No. 2019 / 0110054, "Encoding and decoding reversible production-quality single-layer video signals," by GM, the entire contents of which are incorporated herein by reference as if fully set forth herein.

[0037] Multiple sets of operation parameters for the Chained Reshaping function can be decoded and used in a prediction operation by a receiver of the video signal or encoded bitstream to generate a reconstructed image of one color class from a decoded image of another color class. Using a prediction operation (e.g., an inverse reshaping operation, an inverse tone mapping operation, etc.) with multiple sets of operation parameters for the Chained Reshaping function, one or more different video quality levels can be generated for the reconstructed image as generated by the (upstream) coding block (120). These different video quality levels can each correspond to one or more different color classes, such as intermediate and / or final reshaped color classes at the encoder side.

[0038] In some operating scenarios, the decoded image represents an SDR image that has been forward reshaped by an upstream video encoder (e.g., using a coding block (120) or the like) from the color-graded HDR image (117) to approximate a reference SDR color cast. The reconstructed image is generated from the decoded image using a reshaping function specified in multiple sets of operation parameters in the image metadata transmitted in the encoded bitstream (122) and represents an image that approximates other intermediate and / or final reference color casts than the reference SDR color cast.

[0039] Additionally, optionally, or alternatively, the encoded bitstream (122) may be encoded with additional image metadata, including, but not limited to, display management (DM) metadata that a downstream decoder can use to perform display management operations on the decoded images or the backward reshaped images to generate display images optimized for rendering on a target display, which may or may not have the same display capabilities as a reference display for which the intermediate and / or final reference color projections provide relatively high visual quality.

[0040] The encoded bitstream 122 is then distributed downstream to a receiver, such as a mobile device, a handset, a tablet computer, a decoding and playback device, a media source device, a media streaming client device, a television set (e.g., a smart TV, etc.), a set-top box, a movie theater, etc. At the receiver (or downstream device), the encoded bitstream (122) is decoded by a decoding block (130) to produce a decoded image 182, which may be the same as the image (e.g., a forward reshaped SDR image, etc.) that was encoded into the bitstream by the coding block (120), subject to quantization errors introduced by the compression performed by the coding block (120) and the decompression performed by the decoding block (130).

[0041] In an operational scenario in which the receiver operates with (or is connected to or operatively linked to) a target display 140 that supports rendering of a decoded image (182), the decoding block (130) decodes an image (182) from the coding bitstream (122) (e.g., a single layer thereof) and uses the decoded image (182) (e.g., a forward reshaped SDR image) directly or indirectly for rendering on the target display (140).

[0042] In some operational scenarios, the target display (140) has similar characteristics to the SDR reference display (125), and the decoded image (182) is a forward reshaped SDR image that can be directly viewed on the target display (140).

[0043] In some embodiments, the receiver operates with (or is connected or operatively linked to) a target display having different display capabilities than the reference display for which the decoded image (182) was optimized. Some or all of the sets of operation parameters of the Chain Reshaping function in the image metadata (or composer metadata) can be used to compose or reconstruct an image from the decoded image (182) optimized for the target display.

[0044] For example, the receiver may operate with an HDR target display 140-1 that supports a higher dynamic range (e.g., 100 nits, 200 nits, 300 nits, 500 nits, 1,000 nits, 4,000 nits, 10,000 nits, or more) than the decoded image (182). The receiver can extract image metadata from the encoded bitstream 122 (e.g., a metadata container therein) and use multiple sets of computation parameters in the image metadata (or composer metadata) to compose or reconstruct image 132-1 from the decoded image (182), such as a forward reshaped SDR image.

[0045] In some operational scenarios, the reconstructed image (132-1) represents a reconstructed image (e.g., HDR, EDR, an image optimized for a 1000 nits display, an image optimized for a 4000 nits display, etc.) optimized for viewing on a display that is the same as or compatible with the target display operating in conjunction with the receiver. The receiver may use the reconstructed image (132-1) directly for rendering on the target display.

[0046] In some operational scenarios, the reconstructed image (132-1) represents a reconstructed image optimized for viewing on a display (e.g., a reference, etc.) that is not the same as the target display (140-1) operating in conjunction with the receiver. A display management block (e.g., 135-1, etc.), which may be in the receiver, the target display (140-1), or another device, further adjusts the reconstructed image (132-1) to the characteristics of the target display (140-1) by generating a display mapped signal (137-1) that matches the characteristics of the target display (140-1). The display image or the adjusted reconstructed image may be rendered on the target display (140-1).

[0047] <Pipeline of chained reshaping functions> 2A shows an example pipeline of Chained Reshaping functions, which can be generated or constructed using optimization methods or procedures as described herein.

[0048] Let the (original) input video signal (or input image therein) to the pipeline of Chained Reshaping functions be s <0> The i-th pixel of the input signal (or the input image) is represented as s <0>,i and the three channels of the input color space (or input domain), (s y <0>,i , s C0 <0>,i , s C1 <0>,i)

[0049] A pipeline of chained reshaping functions contains K reshaping functions concatenated together, where K is an integer greater than 1. The kth reshaping function in the pipeline of chained reshaping functions is R k () and r <k+1> For example, each of the input video signals may have or be assigned a corresponding reference video signal (or a corresponding reference image therein) denoted as k=0,...,K-1.

[0050] The kth reshaping function R k () reference signal (or reference image therein) r <k+1> The i-th pixel of (r y <k+1>,i ,r C0 <k+1>,i ,r C1 <k+1>,i ) The kth reshaping function R k () and the kth reshaping function R k The output or reshaped video signal (or the output or reshaped image therein) from () is denoted by s <k>< / k> and s <k+1> where k=0, ..., K-1. The kth reshaping function R k () is the input signal (or an input image therein) s <k>< / k> The output signal (or the output image) <k+1> can be applied to reshape the

number

[0051] In many operational scenarios, the final output or reshaped video signal (or the final output image therein) from a pipeline of chained reshaping functions is not equal to the initial or original input video signal (or the initial or original input image therein), as follows:

number

[0052] For the kth reshaping function, its output signal s <k+1> is expressed as follows: <k+1> as close as possible to (e.g. subject to a minimization / optimization procedure depending on error thresholds / measurements etc.).

number

[0053] As a result, the construction / generation of the optimized reshaping function for an entire pipeline of chained reshaping functions can be formulated as a linear combination (solution to) of the individual optimization problems of the individual reshaping functions as follows:

number

[0054] Although end-to-end optimization can be relatively difficult or computationally intensive to solve, more efficient methods such as sequential optimization can be used to tackle this problem.

[0055] FIG. 2B shows an example of a (concrete) pipeline of chained reshaping functions that can be used to implement the conversion from Dolby Vision Profile 8.4 to Dolby Vision Profile 8.2, as described above.

[0056] As shown in FIG. 2B, a first or original video signal s is fed into a pipeline of Chain Reshaping functions. <0> is the input HLG (e.g., R.2020) signal. The first reshaping function R0 in the pipeline of chained reshaping functions receives the reference signal r <1>and has or is assigned a reference signal r <1> can be derived or converted from the input HLG signal using the HLG-SDR API (Application Programming Interface) or a commercially available toolkit.

[0057] Output or reshaped video signal <1> is the first reshaping function R0 in the pipeline of chained reshaping functions, which is <0> In other words, the first or original input video signal s can be generated based on the first reshaping function R0. <0> As shown in FIG. 2B, the output or reshaped video signal s <1> may be a reshaped SDR signal. The reshaped SDR signal is a signal <1> may be the same as or closely approximate to

[0058] Reshaped SDR signal (s <1> ) can be used as an input video signal to the second reshaping function R1. The second reference signal r <2> may be a reference PQ signal. The reference PQ signal may be derived or converted from the first or original input video signal (or the input HLG video signal) using a video codec such as an HLG backward compatible codec, or using another video codec implementing a related video coding standard such as the BT.2100 standard or a profile defined therein.

[0059] Output or reshaped video signal <2> is a second reshaping function R1 in the pipeline of chained reshaping functions, which feeds the reshaped video signal s <1> In other words, the reshaped video signal s is generated based on the first reshaping function R1. <1>The output or reshaped video signal (s <2> ) may be a PQ signal. The PQ signal is a second reference signal r <2> Or it may be the same as or a close approximation to the reference PQ signal.

[0060] As shown, the first reshaping function:

number

number

[0061] <Sequential / Chained Optimization> A variety of predictors can be used to construct or generate chain reshaping functions as described herein, for example, using a sequential optimization process. These predictors can be advanced predictors such as Tensor Product B-Spline (TPB) predictors or non-TPB predictors.

[0062] In some operational scenarios, the optimization problem for constructing the reshaping functions in the entire pipeline of chained reshaping functions can be decomposed into two optimization problems: one for configuring the reshaping function / mapping used for the luma channel (sometimes referred to as the luma reshaping function), and another for configuring the reshaping function / mapping for the chroma channels (sometimes referred to as the chroma reshaping function). For example, the reshaping functions in the pipeline of reshaping functions can include a luma reshaping function / mapping (reshaping an input codeword or an input luma codeword in the luma channel to an output codeword or an output luma codeword in the luma channel) and a chroma reshaping function / mapping (reshaping an input codeword or an input luma and chroma codeword in the luma and chroma channels to an output codeword or an output chroma codeword in the chroma channel).

[0063] In some operational scenarios, in solving the luma channel optimization problem, the CDF matching technique may be used to configure or generate the chroma and / or luma shaping function / mapping (e.g., a multi-piece polynomial, a one-dimensional lookup table or 1D LUT, a portion of a three-dimensional lookup table or 3D LUT, etc.). Additionally, optionally, or alternatively, the chroma and / or luma shaping function / mapping may be configured or generated using a cross-color channel predictor, such as a multiple color channel multiple regression (MMR) prediction-based technique. Additionally, optionally, or alternatively, the chroma and / or luma shaping function / mapping may be configured or generated using a cross-color channel predictor, such as a tensor product B-spline (TPB) prediction-based technique that uses B-Spline functions as basis functions.

[0064] Exemplary cumulative density function (CDF) matching operations are described in PCT Application No. PCT / US2017 / 50980, filed Sep. 11, 2017; U.S. Provisional Patent Application No. 62 / 404,307, filed Oct. 5, 2016 (published Apr. 5, 2018 as U.S. Patent Application Publication No. 2018 / 0098094), which are incorporated by reference in their entirety herein. An example of an MMR-based operation is described in U.S. Patent No. 8,811,490, the entire contents of which are incorporated by reference herein as if fully set forth herein. Examples of calculations based on TPB are described in U.S. Provisional Application No. 62 / 908,770 (Attorney Docket No. 60175-0417), filed October 1, 2019, entitled "TENSOR-PRODUCT B-SPLINE PREDICTOR," which is incorporated by reference in its entirety as if fully set forth herein.

[0065] In a first example, an MMR-based chroma mapping function / mapping (or MMR predictor) for the kth reshaping function in a pipeline of chained reshaping functions can be constructed or generated as follows:

[0066] The MMR expansion format for the i-th pixel of the input video signal (or input image therein) is given as follows:

number

[0067] The MMR expansion forms of all P pixels can be collected into an input vector as follows:

number

[0068] An observation (or reference / target) chroma signal or vector can be formed based on the chroma codeword of the reference / target video signal (or reference / target image therein) as follows: where ch is either the c0 or Cb channel, or the c1 or Cr channel.

number

[0069] The MMR coefficient is m ch <k>< / k> which can be used to predict the output or reshaped chroma codeword of the output or reshaped video signal (or the output or reshaped image therein) using the following matrix format:

number

[0070] MMR coefficient m ch <k>< / k> can be optimized by solving the optimization problem formulated as follows:

number

[0071] For example, the optimized MMR coefficients may be found or generated by a least squares solution of the optimization problem in equation (9) as follows:

number

[0072] In some operational scenarios, each reshaping function, e.g., luma and chroma reshaping functions / mappings thereof, in a pipeline of chained reshaping functions can be generated or constructed sequentially, starting from k=0 to K-1. For example, the chroma reshaping functions / mappings in each reshaping function in a pipeline of chained reshaping functions can be generated or constructed sequentially, starting from k=0 to K-1, using an exemplary optimization procedure such as that shown in Table 1 below. [Table 1] [Table 1]

[0073] In a second example, a TPB-based chroma mapping function / mapping (or TPB predictor) for the kth reshaping function in a pipeline of chained reshaping functions can be constructed or generated as follows:

[0074] For the ch color channel, the following matrix can be constructed:

number

[0075] The optimized TPB calculation parameters for the TPB-based chroma-shaping function / mapping are m ch,opt <k>< / k> and can be constructed, generated or obtained, for example, by a least-squares solution of a (global) TPB optimization problem formulated using an equation similar to equation (8) above, as follows:

number

[0076] <Optimization of chain reshaping function> Various optimization algorithms / methods can be used to improve the performance of the reshaping functions in the pipeline of chained reshaping functions (e.g., improving the accuracy of the reconstructed video signal, minimizing prediction errors, supporting a variety of video codecs, etc.). In various operational scenarios, these optimization algorithms / methods may or may not use constraints.

[0077] In some operational scenarios, an iterative algorithm / method, sometimes referred to as a Backward Error Subtraction for signal Adjustment (BESA) algorithm / method, can be used to improve the performance of the reshaping functions in a pipeline of chained reshaping functions. Examples of the BESA algorithm / method are described in U.S. Provisional Patent Application No. 63 / 013,063, “Reshaping functions for HDR imaging with continuity and reversibility constraints,” GM. Su, filed April 21, 2020, and U.S. Provisional Patent Application No. 63 / 013,807, “Iterative optimization of reshaping functions in single-layer HDR image codec,” GM. Su, H. Kadu, filed April 22, 2020, the contents of which are hereby incorporated by reference in their entireties as if fully set forth herein.

[0078] The iterative algorithm / method may be performed for T iterations, where T represents an integer greater than 1 (e.g., pre-set, configured, dynamically determined, budgeted, etc.). At each of the T iterations (e.g., iteration t, where t=0, ..., T-1), an optimization may first be performed forward to obtain or generate reshaping function coefficients that define or specify the reshaping functions in a pipeline of chained reshaping functions, and then a modification of the reference signal may be performed backward. The goal of the iterative algorithm / method is to optimize the reference signal r at each iteration t such that an end-to-end error (e.g., difference between a predicted final reshaped video signal and a final reference video signal, etc.) is minimized. (t) <k>< / k> The aim is to change

[0079] In a non-limiting implementation example, the iterative algorithm / method may be implemented or performed with two for loops. In the outer for loop, the iteration number (t) is increased or incremented by one until T iterations are reached, where t=0, ..., T-1. In the inner for loop, the first reshaping function R0 to the last reshaping function R1 are incremented by one until T iterations are reached, where t=0, ..., T-1. K-1 Forward optimization can be performed up to

[0080] At the end of each iteration of the inner for loop, the second-to-last reference signal is subtracted from the first reference signal, r (t) <1> In some operating scenarios, the backward reference signal correction can be performed up to the last reference signal r (t) <k>< / k> is fixed and the aforementioned backward reference signal correction is not applied in order to maintain the fidelity of the output (or final reference signal) from the pipeline of chained reshaping functions and to avoid oscillations (and thus no convergence or relatively slow convergence) caused by changing the final error or final cost function (value) at each iteration.

[0081] More specifically, in the forward optimization, at iteration t (e.g., each, etc.), each reshaping function (e.g., the kth reshaping function, etc.) is (1) s is the first or original input video signal (or the first or original input image therein) when k=0, and is the updated input video signal (or the updated input image therein) output from the (immediately preceding) reshaping function (e.g., the (k-1)th reshaping function, etc.) when k≠0. (t) <k>< / k> , and (2) r, which is the updated reference video signal (or the updated reference image therein) from the backward reference signal correction performed at the end of the (immediately preceding) previous iteration. (t) <K+1> Based on the optimization of the reshaping function coefficients {m (t),ch,opt <k>< / k>}, and the predicted signal s (t) <K+1> These operations can be performed sequentially for all reshaping functions in the pipeline of chained reshaping functions from k=0 to K−1.

[0082] At the end of each iteration (t), backward reference signal correction can be performed for each k by computing the prediction error for each color channel as follows:

number

number

[0083] These operations can be performed in turn for all reference video signals from k=K−1 to 1 (except the last reference video signal).

[0084] In some operational scenarios, the function f() can be used to determine how to modify the reference video signal (or a reference image therein). This function can be used to back-propagate relatively large errors to the reference video signal. For each pixel (or the i-th pixel), the function f() can be specified or defined as follows:

number

[0085] In some operational scenarios, an adaptive scaling factor can be used in the function f() as follows: where as the iteration index t increases, the scaling factor decreases as follows:

number

[0086] An example of an iterative optimization procedure is shown in Table 2 below. [Table 2] [Table 2]

[0087] <Optimal selection of iterations> Figure 3A shows an example of distortion of a first reshaped SDR video signal (or a reshaped SDR image therein) output from a first reshaping function R0 at each iteration of an iterative optimization algorithm / method used to build reshaping functions in a pipeline of chained reshaping functions as shown in Figure 2B. Figure 3B shows an example of distortion of a reshaped HDR video signal (or a reshaped HDR image therein) output from a second reshaping function R1 at each iteration of an iterative optimization algorithm / method.

[0088] As shown in Figure 3B, the distortion of the reshaped HDR video signal output from the second reshaping function gradually decreases as the number of iterations increases until it saturates below a certain level. In contrast, as shown in Figure 3A, the distortion of the reshaped SDR video signal output from the first reshaping function continues to increase without saturating below a certain level as the number of iterations increases.

[0089] In order to improve the fidelity of the intermediate reshaped video signal, the reshaping coefficients can be obtained before the iteration count reaches the final round (or T iterations) or can be used to define a specific reshaping function in a pipeline of chained reshaping functions. In other words, instead of completing the iterative optimization algorithm / method shown in Table 2 until the final round (or T iterations), the reshaping coefficients can be obtained after iteration t opt We can obtain the reshaping coefficients at t opt <Tである。

[0090] In the first example, we use an objective method to find the optimal number of iterations t opt Using the convergence curves showing the distortion over the iterations as shown in Figures 3A and 3B, a particular iteration index (or optimal number of iterations t) that has the best tradeoff between the distortion of the first reshaped video signal output from the first reshaping function R0 and the distortion of the second reshaped video signal output from the second reshaping function R1 can be selected or retrieved. opt) can be identified, selected, or retrieved. For example, the R1 distortion as shown in FIG. 3B begins to saturate at a particular iteration number, such as iteration #8, which is the knee point on the R1 convergence curve. This knee point can be identified or found where the R1 convergence curve has the largest first derivative change in absolute value (or has the largest second derivative in absolute value or magnitude). As shown in FIG. 3A, the R0 distortion as shown in FIG. 3A also has a relatively small distortion at a particular iteration number (or iteration 8 in this example) on the R0 convergence curve.

[0091] In the second example, a subjective method is used to find the optimal number of iterations t opt For example, each set of reshaping coefficients generated or obtained at each iteration can be applied to a batch of test images to generate reshaped images that can be reviewed by a user (or human) to help subjectively determine the optimal tradeoff between different reshaped video signals. Some of these operations may be performed manually and other parts of these operations may be performed automatically.

[0092] <Inverse gradient based algorithm> As part of the backward reference signal modification, in some operating scenarios, an inverse gradient may be calculated for (e.g., each, etc.) reshaping function in a pipeline of chained reshaping functions, for example, by providing a (e.g., relatively small, etc.) input difference of the input video signal (or an input image therein) to the reshaping function and measuring the resulting output difference in the reshaped video signal (or an output image therein) output by the reshaping function. The ratio between the input difference and the output difference may be defined or used as the inverse gradient of the reshaping function.

[0093] For example, for each pixel, the pixel value of the input image for each channel (s (t)y <k> ,i < / k> , s (t)C0 <k> ,i < / k> , s (t)C1 <k> ,i < / k> ) we can add the input difference Δ

number

[0094] A reshaping function may be applied to pixels of the input image to generate an output difference of a reshaped video signal output from the reshaping function.

[0095] Delta added pixel value (s' (t)y <k> ,i < / k> , s' (t)C0 <k> ,i < / k> , s' (t)C1 <k> ,i < / k> ) the MMR expansion form for the i-th pixel of the input image can be given as:

number

[0096] The MMR expansions of all pixels can be collected into a matrix as follows:

number

[0097] The output difference of the reshaping video signal (or the reshaped image therein) can be expressed or calculated as follows:

number

[0098] The inverse gradient for each pixel can be calculated as follows:

number

[0099] Inverse gradient g (t),ch <k+1>,iis the calculated error e between the reshaped video signal (or a reshaped image therein) and its reference video signal (or a reference image therein) as follows: (t),ch <k+1> , as part of the backward reference signal modification to generate an updated reference video signal for the next iteration.

number

[0100] A similar encoding procedure / method / flow as shown in Table 2 can be used to generate or build the reshaping functions in the pipeline of chained reshaping functions, albeit with different reference video signals updated with the above equations.

[0101] <Constrained Optimization> As shown in Figure 3A, unconstrained optimization on the intermediate reshaped video signal, or optimizing the intermediate reshaped video signal without constraints or limitations, may result in divergence of distortion. Constraints may be implemented in the reshaping function optimization process as described herein to improve or ensure the fidelity of the intermediate reshaped video signal generated from the pipeline of chained reshaping functions constructed by the reshaping function optimization process.

[0102] In some operating scenarios, the reshaping function optimization as described herein may be implemented or performed with hard constraints, sometimes referred to as hard-constrained optimization.

[0103] For example, the level of error correction of an intermediate reshaped video signal generated in a pipeline of chain reshaping functions can be constrained or controlled by setting limits / bounds on the modification to the reference video signal that the intermediate reshaped video approximates or targets, as follows:

number

[0104] Using an encoding procedure / method / flow similar to that shown in Table 2, one can generate or construct a reshaping function in the pipeline of chained reshaping functions in equation (22) above, but with limited modifications to the reference video signal (to approximate or target with the intermediate reshaped video signal).

[0105] It has been found that changes to saturated colors are more noticeable than changes to neutral colors, and therefore changes to saturated colors in the intermediate reshaped video signal may be avoided, limited, restricted or otherwise attenuated.

[0106] Signal modifications affecting these saturated colors can be made to a relatively small or narrow extent or degree, while signal modifications affecting unsaturated colors, such as neutral colors, can be made to a relatively large or broad extent or degree.

[0107] In some operating scenarios, the reshaping function optimization as described herein may be implemented or performed using a saturation constrained weighting algorithm or method.

[0108] For example, the weighting coefficient of each pixel can be set for the reshaping function optimization process (overall). <k>< / k> The saturation (value) of each pixel of (or the final reference image therein) is calculated as follows and can be kept unchanged throughout the reshaping function optimization process:

number

[0109] The saturation (value) of a pixel shown in equation (23) above can be converted into or used to construct a weighting coefficient for the pixel (or the corresponding pixel of the intermediate reshaped video signal) via a nonlinear decrease function or functional form as follows:

number

[0110] The pixel weighting coefficients can be used to modify the reference video signal that the intermediate reshaped video signal approximates. Using these weighting coefficients, the less saturated a pixel is, the more modification is applied to the pixel value of the pixel. In other words, highly saturated pixels can have a relatively small amount of modification, thereby helping to ensure relatively high fidelity of both saturated and neutral color pixels in the intermediate reshaped video signal.

[0111] The reference signal modification function can be defined with weighting coefficients as follows:

number

[0112] Using an encoding procedure / method / flow similar to that shown in Table 2, in equation (25) above, but with saturation weighted modifications to the reference video signal (to approximate or target with the intermediate reshaped video signal), a reshaping function in a pipeline of chained reshaping functions can be generated or constructed.

[0113] Figure 3C shows an example of distortion of a first reshaped SDR video signal (or a reshaped SDR image therein) output from a first reshaping function R0 at each iteration of an iterative saturation weighted optimization algorithm / method used to build reshaping functions in a pipeline of chained reshaping functions as shown in Figure 2B. Figure 3D shows an example of distortion of a reshaped HDR video signal (or a reshaped HDR image therein) output from a second reshaping function R1 at each iteration of an iterative saturation weighted optimization algorithm / method used to build reshaping functions in a pipeline of chained reshaping functions as shown in Figure 2B.

[0114] As shown in FIG. 3D, the distortion of the reshaped HDR video signal output from the second reshaping function gradually decreases as the number of iterations increases until it saturates below a certain level. As shown in FIG. 3C, the distortion of the reshaped SDR video signal output from the first reshaping function continues to increase as the number of iterations increases, peaks around iteration #15, and then starts to decrease to around the saturation point. Thus, the distortion of the reshaped HDR and SDR video signals of both HDR and SDR reshaping functions converge. Furthermore, the distortion in the constrained (e.g., saturation weight constraint, etc.) optimization as shown in FIG. 3C and FIG. 3B does not increase significantly or significantly compared to the distortion in the unconstrained optimization as shown in FIG. 3A and FIG. 3B.

[0115] <Optimization incorporating prior knowledge> In some operating scenarios, the reshaping function optimization as described herein may incorporate prior knowledge regarding the different color classes (or reshaped video signals) that are generated from a pipeline of chained reshaping functions. Accordingly, prior knowledge-incorporating (or constraint-based) algorithms / methods may be implemented to incorporate such prior knowledge for the purpose of generating or constructing reshaping functions in a pipeline of chained reshaping functions.

[0116] For example, a data range of codeword values ​​that will actually be used in encoding or representing the input content that represents a proper subset of the full data range of codeword values ​​in the input color space or domain used to encode or represent the input content is available as a priori information or knowledge, and this a priori knowledge of the data range is implemented as a constraint in the reshaping function optimization, as described herein, and is used to facilitate the conversion of the input content from a color space or domain to an intermediate or final content in another color space or domain.

[0117] By way of example, but not limitation, one or more (additional) reshaping functions can be implemented in the pipeline of chained reshaping functions to take into account transformations / constraints based on prior knowledge of the data range. These (additional) reshaping functions can be fixed without optimizing the reshaping function parameters, or can be configured using only a relatively small (e.g., 1, 2, etc.) subset of all reshaping function parameters to be optimized. Similarly, the output data range is also known as prior knowledge, and can be used to implement constraints / transformations at or near the end of the pipeline of chained reshaping functions using fixed reshaping functions, or using reshaping functions with only a configurable subset of reshaping parameters.

[0118] 2C shows a pipeline incorporating exemplary prior knowledge of Chained Reshaping functions. A subset of these Chained Reshaping functions can be generated or constructed using optimization methods or procedures with constraints or transformations as described herein.

[0119] As shown in FIG. 2C, the (original) input video signal (or the input image therein) s <0> is represented / encoded in the input color space (or input domain) and provided as input to a pipeline of chained reshaping functions. The pipeline of chained reshaping functions contains K reshaping functions concatenated together, where K is an integer greater than 1. These K reshaping functions are then fed into two fixed reshaping functions R0() and R K-1 () for each fixed reshaping function R0() and R K-1 () may have no reshaping function parameters that are optimized, or may have a relatively small subset of reshaping function parameters that are optimized. These K reshaping functions also include a subset of the chain reshaping functions, such as R1() and R2(), that are optimized or constructed by reshaping function optimization as described herein.

[0120] FIG. 2D shows an example of a (particular) a priori knowledge embedded pipeline of a chained reshaping function that may be used to implement the conversion from an HLG backward-compatible codec to an SDR backward-compatible codec, as described above.

[0121] As shown in Figure 2D, prior knowledge regarding the data range or maximum color represented in the input content, such as an input video signal (or an image therein) captured by a cell phone camera in an applicable use case, may be incorporated into the reshaping function optimization. Based on the prior knowledge, it may be known that the data range or maximum color of an image in an existing cell phone camera captured input content is the P3 color space or domain, and at the same time, it may be known that the input video signal containing the image is stored in an HLG R.2020 image data container (or HLG R.2020 color space or domain) that has a much larger data range or maximum color than the P3 color space or domain actually used in the captured / stored image. SMPTE EG432-1:2010, "Digital Source Processing-Color Processing for D-Cinema" (November 10, 2010) and SMPTE RP431-2:2011, "D-Cinema Quality-Reference Projector and Environment" (April 6, 2011), which are incorporated by reference in their entireties, describe examples of the P3 color space.

[0122] Optimized reshaping function parameter values ​​define or specify reshaping functions within a pipeline of chained reshaping functions and may be generated or constructed using constraints or prior knowledge within the input content to improve the performance of the reshaping functions throughout the pipeline of chained reshaping functions (e.g., improved fidelity of the reshaped signal, reduced prediction error, etc.).

[0123] For example, as shown in FIG. 2D, data range or maximum color constraints in the input content can be implemented via a fixed reshaping function, such as a first reshaping function R0, which implements a conversion of the input content (nominal) in the HLG R.2020 color space (or domain) to the P3 color space (or domain).

[0124] An SDR reference video signal (or an SDR image) can be derived or converted from an input HLG R.2020 signal using an HLG-to-SDR API or toolkit.

[0125] A second reshaping function R1 in the pipeline of chained reshaping functions receives two inputs, namely (1) an SDR reference video signal (or an SDR image therein) and (2) a reshaped HLG P3 video signal (or a reshaped HLG P3 image therein), and attempts to approximate the SDR reference video signal (or an SDR image therein) by reshaping the reshaped HLG P3 video signal (or a reshaped HLG P3 image therein) via a predictive model represented by the second reshaping function R1 into a reshaped SDR video signal (or a reshaped SDR image therein), represented as SDR in FIG. 2D.

[0126] An intermediate PQ signal in the R.2020 color space (or domain) can be derived or converted from an input HLG R.2020 video signal using a video codec such as an HLG backward compatible codec, or using other video codecs implementing a related video coding standard such as the BT.2100 standard or a profile defined therein.

[0127] The intermediate PQ signal in the R.2020 color space (or domain) can then be reshaped into a reference PQ video signal represented in the P3 color space (or domain) by a fixed reshaping function, such as a first reshaping function R0, which implements a conversion of the input content (nominal) in the HLG R.2020 color space (or domain) to the P3 color space (or domain).

[0128] The third reshaping function R2 in the pipeline of chained reshaping functions receives two inputs, namely (1) a reference PQ video signal represented in a P3 color space (or domain) and (2) a reshaped SDR video signal (or a reshaped SDR image therein) output from the second reshaping function R1, and attempts to approximate the reference PQ video signal (or a reference PQ image therein) by reshaping the reshaped SDR video signal (or a reshaped SDR image therein) into a reconstructed or reshaped PQ video signal (represented as PQ in FIG. 2D) or a P3 color space or domain (reconstructed or reshaped PQ image therein) via a predictive model represented by the third reshaping function R2.

[0129] As shown, the reshaped SDR video signal output from the second reshaping function R1 may be encoded / represented as base layer image data within the video signal. Reshaping function parameters specifying the third reshaping function R2 may be included as part of the image metadata included in the video signal and used by a receiving device of the video signal to reconstruct or reshape the SDR video signal represented by the base layer image data of the video signal into a reconstructed or reshaped PQ video signal having a reconstructed PQ image.

[0130] In some operating scenarios, the expected final output video signal may be a reconstructed or reshaped PQ R.2020 video signal. The reconstructed PQ video signal generated from the third reshaping function R2 can be further transformed by a fixed reshaping function or a conversion from the P3 color space or domain to the R.2020 color space or domain. Additionally, optionally, or alternatively, a fixed reshaping function or conversion from a three-color space or domain to the R.2020 color space or domain can be combined or encapsulated as part of an overall conversion (e.g., an LMS conversion or transformation, etc.) from the P3 color space or domain to another color space or domain such as the LMS color space or domain. The combination or encapsulation of the fixed reshaping function or conversion from the P3 color space or domain to the R.2020 color space or domain into the overall conversion can signal from an upstream encoding device to a downstream receiving-side decoding device, for example, via image metadata or display management (DM) metadata included therein.

[0131] Let the index of the first (non-fixed) reshaping function to be optimized be k s where k s > 0, and let the index of the last (non-fixed) reshaping function to be optimized be k e where k e < K - 1. Regardless of the presence or absence of the above-described constraints, an example of a reshaping function optimization procedure incorporating prior knowledge is shown in Table 3 below. [Table 3]

Table 3

[0132] FIG. 3E shows an example of the distortion (or convergence curve) of the second reshaping function R1 in FIG. 2D that generates a reshaped SDR video signal. FIG. 3F shows an example of the distortion (or convergence curve) of the third reshaping function R2 in FIG. 2D that generates a reshaped PQ (or HDR) video signal.

[0133] <Example Process Flow> 4A illustrates an exemplary process flow according to an embodiment. In some embodiments, one or more computing devices or components (e.g., an encoding device / module, a transcoding device / module, a decoding device / module, an inverse tone mapping device / module, a tone mapping device / module, a media device / module, an inverse mapping generation and application system, etc.) may perform this process flow. In block 402, an image processing system receives an input image of an input video signal to a pipeline of chained reshaping functions. The pipeline of chained reshaping functions includes a chain of reshaping functions.

[0134] In block 404, the image processing system generates two or more reference images for the two or more reference color classes from the input video signal, each reference image of the two or more reference images corresponding to a respective reference color class of the two or more reference color classes.

[0135] In block 406, the image processing system uses the input image and the two or more reference images to determine two or more sets of operation parameters for two or more Chained Reshaping functions in the pipeline of Chained Reshaping functions, each set of operation parameters specifying a respective Chained Reshaping function in the two or more Chained Reshaping functions, each Chained Reshaping function in the two or more Chained Reshaping functions being used to generate a respective reshaped image in the two or more reshaped images in the two or more reshaping color classes.

[0136] In block 408, the image processing system encodes a selected reshaped image in the selected reshaping color order of the two or more reshaping images in the two or more reshaping color orders into the video signal together with image metadata, the image metadata including one or more sets of operation parameters for one or more Chained Reshaping Functions of the two or more Chained Reshaping Functions, and a receiver of the video signal is adapted to use the image metadata and the selected reshaped image to generate a reconstructed image in a reshaping color order other than the selected reshaping color order.

[0137] In an embodiment, the video signal represents a single-layer backwards compatible signal.

[0138] In an embodiment, the input video signal corresponds to a first video coding profile, and the two or more reshaped color classes correspond to one or more second video coding profiles, each second video coding profile being different from the first video coding profile.

[0139] In an embodiment, the two or more second video coding profiles include at least one video coding profile supported by one or more of the following: an iOS device, an Android device, a tablet computer, a laptop computer, a desktop computer, a user device having different display capabilities, etc.

[0140] In an embodiment, the input image, the two or more reference images, and the two or more reshaped images include at least one of the following: an 8-bit image, a 10-bit image, a 12-bit image, a hybrid log-gamma (HLG) image, a perceptual quantization (PQ) image, a high dynamic range (HDR) image, a standard dynamic range (SDR) image, an extended dynamic range (EDR) image, an image represented in the Rec. 2020 color space, an image represented in the Rec. 2100 color space, or an image represented in the P3 color space, etc.

[0141] In an embodiment, a set of operational parameters specifying each Chained Reshaping function is determined by minimizing a prediction error between a reshaped image generated by each Chained Reshaping function and a corresponding reference image in two or more reference images.

[0142] In an embodiment, the two or more sets of operation parameters specifying the two or more Chained Reshaping functions are determined by a total number of iterations by minimizing a prediction error between each of the two or more reshaped images generated by the two or more Chained Reshaping functions and a corresponding reference image in the two or more reference images; The total number of iterations is selected from one of a fixed number of iterations, a number of iterations corresponding to a knee-point in the distortion represented by the prediction error, or a number of iterations selected based at least in part on user input.

[0143] In an embodiment, the total number of iterations includes a first iteration in which a subset of prediction errors in the prediction errors is generated, and the subset of prediction errors in the first prediction errors is used to modify two or more reference images used in a second iteration after the first iteration.

[0144] In an embodiment, codewords in two or more reference images are modified by one of an inverse gradient calculated from a subset of the prediction errors, a hard constraint used to limit modifications to the codewords, a soft constraint used to limit modifications to relatively saturated codewords among the codewords, etc.

[0145] In an embodiment, the pipeline of chain reshaping functions includes a fixed reshaping function that is determined based at least in part on a priori knowledge of at least one of the input video signal and the two or more reference color classes.

[0146] In an embodiment, the two or more reshaping color classes generated by the pipeline of chained reshaping functions include a final reshaping color class that approximates a final reference color class in two or more reference color classes, where the final reference color class differs from the input video signal in at least one of bit depth, dynamic range, color space, spatial resolution, domain, or video coding profile, etc.

[0147] 4B illustrates an exemplary process flow according to an embodiment. In some embodiments, one or more computing devices or components (e.g., an encoding device / module, a transcoding device / module, a decoding device / module, an inverse tone mapping device / module, a tone mapping device / module, a media device / module, an inverse mapping generation and application system, etc.) may perform this process flow. In block 452, the image processing system decodes a reshaped image in the reshaping color class from the video signal along with image metadata. The image metadata includes one or more sets of operation parameters that each specify one or more chained reshaping functions in a pipeline of chained reshaping functions.

[0148] At block 454, the image processing system applies at least one of the one or more Chain reshaping functions to the reshaped image decoded from the video signal to generate a second reshaped image in a second reshaping color order.

[0149] In block 456, the image processing system renders on the display device a display image generated from the second reshaped image.

[0150] In an embodiment, the one or more sets of computational parameters specify one or more of a plurality of polynomials, a one-dimensional lookup table (1DLUT), a three-dimensional lookup table (3DLUT), a cross-color channel predictor, a multi-color channel multiple regression (MMR) predictor, a predictor having a B-spline function as a basis function, or a tensor product B-spline (TPB) predictor, etc.

[0151] In one embodiment, a computing device, such as a display device, a mobile device, a set-top box, a multimedia device, etc., is configured to perform any of the aforementioned methods. In one embodiment, an apparatus includes a processor and is configured to perform any of the aforementioned methods. In one embodiment, a non-transitory computer-readable storage medium stores software instructions that, when executed by one or more processors, result in the performance of any of the aforementioned methods.

[0152] In one embodiment, a computing device includes one or more processors and one or more storage media storing a set of instructions that, when executed by the one or more processors, cause the performance of any of the methods described above.

[0153] Although separate embodiments have been described herein, any combination of the embodiments and / or sub-embodiments discussed herein may be combined to form further embodiments.

[0154] Exemplary Computer System Implementation Embodiments of the invention may be implemented by a computer system, a system configured in electronic circuits and components, an integrated circuit (IC) device such as a microcontroller, a field programmable gate array (FPGA) or other configurable or programmable logic device (PLD), a discrete time or digital signal processor (DSP), an application specific IC (ASIC), and / or an apparatus including one or more of such systems, devices, or components. The computer and / or IC may execute, control, or perform instructions related to adaptive perceptual quantization of images having extended dynamic range as described herein. The computer and / or IC may calculate any of the various parameters or values ​​related to the adaptive perceptual quantization process described herein. Image and video embodiments may be implemented in hardware, software, firmware, and various combinations thereof.

[0155] A particular implementation of the present invention includes a computer processor executing software instructions that cause the processor to perform the method of the present invention. For example, one or more processors in a display, an encoder, a set-top box, a transcoder, etc. may perform the method related to adaptive perceptual quantization of HDR images described above by executing software instructions in a program memory accessible to the processor. An embodiment of the present invention b may be provided in the form of a program product. The program product may include any non-transitory medium that carries a set of computer-readable signals that include instructions that, when executed by a data processor, cause the data processor to perform the method of the embodiment of the present invention. A program product according to an embodiment of the present invention may be in any of a variety of forms. The program product may include a physical medium, such as, for example, a magnetic data storage medium including a floppy disk, a hard disk drive, an optical data storage medium including a CD-ROM, a DVD, an electronic data storage medium including a ROM, a flash RAM, etc. The computer-readable signals on the program product may be optically compressed or encrypted.

[0156] Although components (e.g., software modules, processors, components, devices, circuits, etc.) have been referred to above, unless otherwise indicated, references to those components (including references to "means") should be interpreted to include equivalents of those components, any components that perform the functions of the described components (e.g., are functionally equivalent), and components that are not structurally equivalent to the disclosed structures that perform the functions in the illustrated exemplary embodiments of the present invention.

[0157] According to one embodiment, the communications described herein are implemented by one or more special purpose computing devices. The special purpose computing devices may be hard-wired to perform the techniques, or may include digital electronic devices such as one or more application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) permanently programmed to perform the techniques, or may include one or more general purpose hardware processors programmed to perform the techniques according to program instructions in firmware, memory, other storage, or a combination thereof. Such special purpose computing devices may combine custom hard-wired logic, ASICs, or FPGAs with custom programming to accomplish the techniques. The special purpose computing devices may be desktop computer systems, portable computer systems, handheld devices, network devices, or any other devices incorporating hard-wired and / or program logic to implement the techniques.

[0158] For example, Figure 5 is a block diagram illustrating a computer system 500 upon which one embodiment of the present invention may be implemented. Computer system 500 includes a bus 502 or other communication mechanism for communicating information, and a hardware processor 504 coupled to bus 502 for processing information. Hardware processor 504 may be, for example, a general-purpose microprocessor.

[0159] Computer system 500 also includes a main memory 506, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 502 for storing information and instructions to be executed by processor 504. Main memory 506 may also be used for storing time variables or other intermediate information during execution of instructions to be executed by processor 504. Such instructions, when stored in a non-transitory storage medium accessible by processor 504, make computer system 500 a special-purpose machine customized to perform the operations specified in the instructions.

[0160] Computer system 500 further includes a read only memory (ROM) 508 or other static storage device, coupled to bus 502, for storing static information and instructions for processor 504. A storage device 510, such as a magnetic disk or optical disk, is provided and coupled to bus 502 for storing information and instructions.

[0161] Computer system 500 may be coupled via bus 502 to a display 512, such as a liquid crystal display, for displaying information to a computer user. An input device 514, including alphanumeric and other keys, is coupled to bus 502 for communicating information and command selections to processor 504. Another type of user input device is a cursor control 516, such as a mouse, trackball, or cursor direction keys, for communicating directional information and command selections to processor 504 and for controlling cursor movement on display 512. This input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), allowing the device to specify a position in a plane.

[0162] Computer system 500 may implement the techniques described herein using customized hardwired logic, one or more ASICs or FPGAs, firmware and / or program logic that couple with the computer system to make or program computer system 500 into a special purpose machine. According to one embodiment, the techniques described herein are performed by computer system 500 in response to processor 504 executing one or more sequences of one or more instructions contained in main memory 506. Such instructions may be read into main memory 506 from another storage medium, such as storage device 510. Execution of the sequences of instructions contained in main memory 506 causes processor 504 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions.

[0163] The term "storage media" as used herein refers to any non-transitory medium that stores data and / or instructions that cause a machine to operate in a specific manner. Such storage media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical or magnetic disks, such as storage device 510. Volatile media include dynamic memory, such as main memory 506. Common forms of storage media include, for example, floppy disks, flexible disks, hard disks, solid state drives, magnetic tape, or any other magnetic data storage medium, CD-ROMs, any other optical data storage medium, any physical medium with a pattern of holes, RAM, PROM, EPROM, FLASH-EPROM, NVRAM, any other memory chip or cartridge.

[0164] Storage media is distinct from, but may be used in conjunction with, transmission media, which is involved in transferring information between storage media. For example, transmission media include coaxial cables, copper wire and fiber optics, including the wires that comprise bus 502. Transmission media can also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.

[0165] Various types of media may be involved in carrying one or more sequences of one or more instructions to the processor 504 for execution. For example, the instructions may initially be carried on a magnetic disk or solid state drive of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to the computer system 500 can receive the data on the telephone line and use an infrared transmitter to convert the data to an infrared signal. An infrared detector can receive the data carried in the infrared signal and appropriate circuitry can place the data on the bus 502. The bus 502 carries the data to the main memory 506, from which the processor 504 reads and executes the instructions. The instructions received by the main memory 506 may optionally be stored on storage device 510 either before or after execution by the processor 504.

[0166] Computer system 500 also includes a communication interface 518 coupled to bus 502. The communication interface 518 provides a two-way data communication coupling to a network link 520 that is connected to a local network 522. For example, the communication interface 518 may be an integrated services digital network (ISDN) card, cable modem, satellite modem, or a modem that provides a data communication connection to a corresponding type of telephone line. As another example, the communication interface 518 may be a local area network (LAN) card that provides a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation, the communication interface 518 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.

[0167] The network link 520 typically provides data communication through one or more networks to other data devices. For example, the network link 520 may provide a connection through a local network 522 to a host computer 524 or to data equipment operated by an ISP (Internet Service Provider) 526. The ISP 526 also provides data communication services through the world wide packet data communication network now commonly referred to as the "Internet" 528. The local network 522 and the Internet 528 use both electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link 520 and through the communication interface 518 that carry the digital data to and from the computer system 500 are exemplary forms of transmission media.

[0168] Computer system 500 can send messages and receive data, including program code, through the network(s), network link 520 and communication interface 518. In the Internet, for example, a server 530 may transmit a requested code for a suitable program through Internet 528, ISP 526, local network 522 and communication interface 518.

[0169] The received code may be executed by processor 504 as it is received, and / or stored in storage device 510, or other non-volatile storage for later execution.

[0170] <Equivalents, Extensions, Alternatives and Miscellaneous> In the foregoing specification, embodiments of the invention have been described with reference to numerous specific details that may vary from implementation to implementation. Accordingly, the sole and exclusive indication of the embodiments of the invention, and what the applicant intends to be the claimed embodiments of the invention, is set forth in the claims as issued in the particular form herein, including any subsequent amendments. Any definitions expressly set forth herein for terms contained in such claims shall control the meaning of such terms used in the claims. Thus, any limitations, elements, features, advantages, or attributes not expressly set forth in the claims should not limit the scope of the claims in any manner. The specification and drawings should therefore be considered in an illustrative, rather than restrictive, sense.

Claims

1. 1. A method comprising: receiving an input image of an input video signal as an input to a pipeline of chained reshaping functions, the pipeline of chained reshaping functions comprising a chain of reshaping functions; generating two or more reference images for two or more standard color classes from an input image of the input video signal, each reference image among the two or more reference images corresponding to a respective standard color class among the two or more standard color classes, the two or more standard color classes being different from each other and from a color class of the input image; using the input image and the two or more reference images to determine two or more sets of operation parameters for the two or more Chained Reshaping Functions in the pipeline of Chained Reshaping Functions, each set of operation parameters specifying a respective Chained Reshaping Function among the two or more Chained Reshaping Functions such that each Chained Reshaping Function among the two or more Chained Reshaping Functions generates a respective reshaped image among two or more reshaped images in two or more reshaping color classes, each of the two or more reshaping color classes being the same as or approximating a corresponding one of the two or more reference color classes; encoding a selected reshaped image in a first reshaping color order of the two or more reshaping images in the two or more reshaping color orders into a video signal together with image metadata, the first reshaping color order corresponding to a first chained reshaping function generating the selected reshaped image in the first reshaping color order, the image metadata including one or more sets of operation parameters for a second or subsequent chained reshaping function of the two or more chained reshaping functions, the second or subsequent chained reshaping functions following the first reshaping function in the chain of reshaping functions, the second or subsequent chained reshaping functions generating a reconstructed image in a second reshaping color order, a receiver of the video signal being adapted to generate the reconstructed image in the second reshaping color order using the image metadata and the selected reshaped image; The method includes:

2. The method of claim 1 , wherein the video signal represents a single-layer backwards compatible signal.

3. the input video signal corresponds to a first video coding profile; The method of claim 1 , wherein the two or more reshaping color classes correspond to one or more second video coding profiles, each second video coding profile being different from the first video coding profile.

4. 4. The method of claim 3, wherein the two or more second video coding profiles include at least one video coding profile supported by one or more of the following: an iOS device, an Android device, a tablet computer, a laptop computer, a desktop computer, or a user device having different display capabilities.

5. 2. The method of claim 1 , wherein the input image, the two or more reference images, and the two or more reshaped images comprise at least one of the following: an 8-bit image, a 10-bit image, a 12-bit image, a Hybrid Log-Gamma (HLG) image, a Perceptual Quantization (PQ) image, a High Dynamic Range (HDR) image, a Standard Dynamic Range (SDR) image, an Extended Dynamic Range (EDR) image, an image represented in a Rec. 2020 color space, an image represented in a Rec. 2100 color space, or an image represented in a P3 color space.

6. 2. The method of claim 1 , wherein the set of operational parameters specifying each of the Chained Reshaping functions is determined by minimizing a prediction error between a reshaped image produced by each of the Chained Reshaping functions and a corresponding reference image in the two or more reference images.

7. the two or more sets of operation parameters each specifying the two or more Chained reshaping functions are determined by a total number of iterations by minimizing a prediction error between each of the two or more reshaped images generated by the two or more Chained reshaping functions respectively and a corresponding reference image in the two or more reference images; 2. The method of claim 1, wherein the total number of iterations is selected from one of a fixed number of iterations, a number of iterations corresponding to a knee-point in the distortion represented by the prediction error, or a number of iterations selected based at least in part on user input.

8. the total number of iterations includes a first iteration in which a subset of prediction errors in the prediction errors is generated; The method of claim 7 , wherein the subset of prediction errors in the prediction errors is used to modify the two or more reference images used in a second iteration after the first iteration.

9. 9. The method of claim 8, wherein codewords in the two or more reference images are modified by one of an inverse gradient calculated from the subset of prediction errors, a hard constraint used to limit modifications to the codewords, or a soft constraint used to limit modifications to relatively saturated codewords among the codewords.

10. 2. The method of claim 1, wherein the pipeline of chain reshaping functions includes a fixed reshaping function determined at least in part based on a priori knowledge regarding at least one of the input video signal and the two or more reference color classes.

11. the two or more reshaping color classes generated by the pipeline of chained reshaping functions include a final reshaping color class that approximates a final reference color class in the two or more reference color classes; The method of claim 1 , wherein the final reference color class differs from the input video signal in at least one of the following: bit depth, dynamic range, color space, spatial resolution, domain, or video coding profile.

12. 1. A method comprising: decoding a reshaped image in a first reshaping color order from a video signal together with image metadata, the image metadata including two or more sets of operation parameters, each set of operation parameters specifying a respective chained reshaping function in two or more chained reshaping functions to generate a respective reshaped image in two or more reshaping images in two or more second reshaping color orders, the two or more second reshaping color orders being different from each other and from the first reshaping color order; determining a second reshaping color order among the two or more second reshaping color orders, the second reshaping color order matching a capability of the display device to render the reshaped image on the display device in the second reshaping color order; applying at least one of the two or more Chain reshaping functions to the reshape image decoded from the video signal to generate a second reshape image in the second reshaping color order; rendering on the display device a display image generated from the second reshaped image; The method includes:

13. 13. The method of claim 12, wherein the one or more sets of computation parameters specify one or more of a plurality of polynomials, a one-dimensional lookup table (1DLUT), a three-dimensional lookup table (3DLUT), a cross-color channel predictor, a multi-color channel multiple regression (MMR) predictor, a predictor having a B-spline function as a basis function, or a tensor product B-spline (TPB) predictor.

14. An apparatus including a processor and configured to perform any one of the methods according to claims 1 to 13.

15. A non-transitory computer readable storage medium storing computer executable instructions for carrying out, by one or more processors, a method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Block-based content-adaptive reshaping for high dynamic range images

    US20170221189A1

  • Signal reshaping and coding for HDR and wide color gamut signals

    US20180167637A1

  • Inverse reshaping for high dynamic range video coding

    US20180278967A1

  • Signal reshaping and coding for HDR and wide color gamut signals

    WO2017011636A1

  • Signal reshaping for high dynamic range signals

    WO2017024042A2