Adjustable tradeoff between quality and computational complexity in video codecs

By using the relationship between backward shaping mapping table and forward shaping mapping table in the video codec, combined with noise injection and color correction technology, the gap between quality and computational complexity is solved, and efficient reconstruction of HDR images is achieved. and optimization, improving the rendering quality and computing efficiency of images.

CN114556940BActive Publication Date: 2024-10-29DOLBY LABORATORIES LICENSING CORP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202080072525.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-16
Publication Date
2024-10-29
Estimated Expiration
2040-10-16

AI Technical Summary

Technical Problem

It is difficult to achieve an effective compromise between quality and computational complexity in video codecs with existing technologies, resulting in a large gap between high-fidelity and high-efficiency methods for reconstructed HDR image data, affecting the rendering quality and performance of the image. Calculate the cost.

Method used

By generating and encoding the backward shaping mapping table, and utilizing the relationship between the forward shaping mapping table and the backward shaping mapping table, an adjustable trade-off between the quality of the reconstructed HDR image on the decoder side and the computational cost on the encoder side is achieved. Including techniques such as noise injection, BLUT modification and color correction, optimizing the update and use of 3D mapping tables to mitigate the risk of banding artifacts.

Benefits of technology

It achieves flexibility under different resource budgets and visual quality goals, improves the color accuracy and rendering quality of reconstructed HDR images, and reduces computational complexity and resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114556940B_ABST
    Figure CN114556940B_ABST
Patent Text Reader

Abstract

The backward shaping mapping table is initially generated as the inverse of the forward shaping mapping table. The backward shaping mapping table is updated by replacing the luma codeword of the content map with the forward shaped luma codeword, which is generated by applying the luma forward map to the sampled luma codeword. The luma forward map is constructed from the forward shaping mapping table. The backward shaping mapping table and the luma forward map are used to generate a backward shaping map to create a reconstructed image from the forward shaped image. The forward shaped image is encoded in the video signal along with image metadata specifying the backward shaping map. A receiving device of the video signal applies the backward shaping map to the forward shaped image to create a reconstructed image of a second dynamic range.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. Provisional Patent Application No. 62 / 916,579, filed on October 17, 2019, and European Patent Application No. 19203773.7, filed on October 17, 2019, each of which is hereby incorporated by reference in its entirety. Technical Field

[0003] The present disclosure relates generally to images and more particularly to adjustable tradeoffs between quality and computational complexity in video codecs. Background Art

[0004] 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., brightness) in an image (e.g., from darkest black (dark) to brightest white (highlight)). In this sense, DR relates to intensities "referenced to a scene". DR may also relate to the ability of a display device to adequately or approximately render an intensity range of a particular width. In this sense, DR relates to intensities "referenced to a display". Unless a particular meaning is explicitly specified at any point in the description herein as having particular importance, it should be inferred that the term may be used in either sense (e.g., interchangeably).

[0005] As used herein, the term high dynamic range (HDR) refers to a DR width that spans approximately 14-15 or more orders of magnitude across the human visual system (HVS). In practice, the DR that humans can perceive simultaneously over a wide width of intensity range may be slightly truncated relative to HDR. As used herein, the terms enhanced dynamic range (EDR) or visual dynamic range (VDR) may refer, individually or interchangeably, to the DR that is perceptible within a scene or image by the human visual system (HVS) including eye movement, which allows for some light adaptation changes across the scene or image. As used herein, EDR may refer to a DR that spans 5 to 6 orders of magnitude. Therefore, while the HDR relative to a real reference scene may be slightly narrowed, EDR still represents a wide DR width and may also be referred to as HDR.

[0006] In practice, an image includes one or more color components (e.g., luminance Y and chrominance Cb and Cr) of a color space, where each color component is represented by a precision of n bits per pixel (e.g., n=8). Using nonlinear luminance encoding (e.g., gamma encoding), images where n≤8 (e.g., color 24-bit JPEG images) are considered as images of standard dynamic range, while images where n>8 can be considered as images of enhanced dynamic range.

[0007] A reference electro-optical transfer function (EOTF) for a given display characterizes the relationship between the color values ​​(e.g., brightness) of an input video signal and the output screen color values ​​(e.g., screen brightness) produced by the display. For example, ITU Rec. ITU-R BT.1886, "Reference electro-optical transfer function for flat panel displays used in HDTV studio production" (March 2011), which is incorporated herein by reference in its entirety, defines 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" herein refers to any auxiliary information that is transmitted as part of the encoded bitstream and assists a decoder in rendering 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.

[0008] The term "PQ" as used herein refers to the quantization of the perceived brightness amplitude. The human visual system responds to the increased light level in a very nonlinear manner. The ability of humans to see a stimulus is affected by the brightness of that stimulus, the size of the stimulus, the spatial frequencies that constitute the stimulus, and the brightness level to which the eye has adapted at the specific moment of viewing the stimulus. In some embodiments, the perceptual quantizer function maps a linear input grayscale level to an output grayscale level that better matches the contrast sensitivity threshold in the human visual system. An example PQ mapping function is described in SMPTE ST 2084:2014 "High Dynamic Range EOTF of Mastering Reference Displays" (hereinafter referred to as "SMPTE"), which is incorporated herein by reference in its entirety, wherein given a fixed stimulus size, for each brightness level (e.g., stimulus level, etc.), the minimum visible contrast step size at that brightness level is selected according to the most sensitive adaptation level and the most sensitive spatial frequency (according to the HVS model).

[0009] Supports 200 to 1,000 cd / m 2A display with a brightness of 1,000 nits or nits represents a lower dynamic range (LDR) relative to EDR (or HDR), also known as standard dynamic range (SDR). EDR content can be displayed on an EDR display that supports a higher dynamic range (e.g., from 1,000 nits to 5,000 nits or more). Such a display can be defined using an alternative EOTF that supports high brightness capabilities (e.g., 0 to 10,000 nits or more). Examples of such EOTFs are defined in SMPTE 2084 and Rec.ITU-R BT.2100, “Image parameter values ​​for high dynamic range televisionfor use in production and international programme exchange,” (06 / 2017). As the inventors herein appreciate, improved techniques for synthesizing video content data that can be used to support the display capabilities of a wide variety of SDR and HDR display devices are desired.

[0010] The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art simply because they are included in this section. Similarly, it should not be assumed that the problems identified with one or more approaches have been recognized in any prior art based on this section, unless otherwise indicated. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements, and in which:

[0012] Figure 1A depicts an example process for a video delivery pipeline; Figure 1B illustrates an example tradeoff between the quality of a reconstructed image and the computational complexity of generating a map to create the reconstructed image;

[0013] FIG. 2A to FIG. 2C An example codec is illustrated;

[0014] Figure 3A Example prediction errors are illustrated; Figure 3B illustrates example sets of image processing operations that generate different color grades; Figure 3C illustrates example color corrections that may be applied to different color grades; Figure 3D illustrates an example color correction performed in conjunction with a mapping table update operation; Figure 3Eillustrates an example backward shaping map generation with brightness update, alternate lookup table modification, and color correction;

[0015] FIG. 4A to FIG. 4C illustrates an example process flow; and

[0016] Figure 5 Illustrated is a simplified block diagram of an example hardware platform upon which a computer or computing device as described herein may be implemented.

[0017] Description of Example Embodiments

[0018] In the following description, for the purpose of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be apparent that the present disclosure can be practiced without these specific details. In other cases, well-known structures and devices are not described in detail in order to avoid unnecessarily obscuring, obscuring or confusing the present disclosure.

[0019] Overview

[0020] Relatively narrow dynamic range (e.g., relatively low bit depth, 8-bit, 10-bit, etc.) base layer (BL) image data may be encoded in an encoded bitstream together with image metadata for generating / reconstructing HDR image data from the BL image data. The BL image data and image metadata may be provided to a receiving decoding and playback device, which may directly render the decoded BL image data (e.g., SDR image data, etc.) on a relatively low dynamic range display (e.g., SDR display, etc.) or may reconstruct HDR image data from the decoded BL image data and image metadata and render the HDR image data on a relatively high dynamic range display (e.g., HDR display, etc.).

[0021] In an example (e.g., high-fidelity, etc.) method, the quality of the reconstructed HDR image data can be maximized at the expense of significantly increased computational cost and video delivery delay. In another example (e.g., high-efficiency, etc.) method, the computational cost of generating image metadata for reconstructing HDR image data can be minimized at the expense of significantly reducing the quality of the reconstructed HDR image data. There is a relatively large gap between high-fidelity and high-efficiency methods in terms of the quality of the reconstructed HDR image rendered on the decoder side and the computational cost (or efficiency) on the encoder side. Example high-fidelity and high-efficiency image metadata generation is described in PCT patent application No. PCT / US2019 / 031620 filed on May 9, 2019, the entire contents of which are hereby incorporated by reference as if fully set forth herein.

[0022] In order to better utilize the capabilities of various codecs and media processing systems and to better provide flexibility in timely support of various media consumption applications with maximum feasible quality, coding tools that achieve a trade-off between quality and computational complexity are provided under the techniques described herein to fill the relatively large gap between the high-fidelity and high-efficiency methods mentioned above. For example, these coding tools can be used to provide a trade-off between the quality of the reconstructed HDR image data achievable on the decoder side and the computational cost of generating image metadata to be used to generate the reconstructed HDR image on the encoder side.

[0023] Content providers and / or content consumers may select some or all of the encoding tools based on resource budgets (e.g., computational cost budgets, end-to-end or individual system latency budgets, end-to-end or individual delay budgets, etc.) and visual quality targets or objectives for the reconstructed HDR image data.

[0024] Some or all of these encoding tools may implement techniques for achieving color accuracy in both BL and reconstructed HDR image data. In addition, optionally or alternatively, some or all of these encoding tools may implement techniques for mitigating or reducing the risk of banding artifacts that may be prone to occur in some operating scenarios (e.g., in SDR image data, etc.). These techniques can be used to further improve banding reduction, such as the techniques described in U.S. Provisional Patent Application No. 62 / 885,921 filed on August 13, 2019, which is also published as WO / 2020 / 072651 for PCT / US2019 / 054299, the entire contents of which are hereby incorporated by reference as if fully set forth herein.

[0025] A forward mapping table (e.g., including mapping pairs that map HDR codewords to corresponding SDR codewords), such as a dynamic (e.g., image-dependent, image-specific, scene-dependent, scene-specific, etc.) three-dimensional mapping table (d3DMT), can be used to generate a forward shaping mapping (e.g., a forward shaping function / curve or set of polynomials, a forward lookup table or FLUT, forward shaping multivariate multivariate regression (MMR) coefficients, etc.) to forward shape the source HDR image into an SDR image (or BL image data).

[0026] A backward mapping table (e.g., comprising mapping pairs that map SDR codewords to corresponding HDR codewords), such as a backward d3DMT, can be used to generate a backward shaping mapping (e.g., a backward shaping function / curve or set of polynomials, a backward lookup table or BLUT, backward shaping MMR coefficients, etc.) to backward shape the SDR image into an HDR image (or reconstructed HDR image data) that approximates the source HDR image.

[0027] The forward shaped SDR image and image metadata specifying the backward shaping map can be encoded into the coded bitstream to enable the receiving decoding / playback device to render the SDR image directly or render a (backward shaped) HDR constructed from the SDR image and the backward shaping map.

[0028] The backward d3DMT can be constructed in a computationally efficient manner from the corresponding forward mapping table (forward d3DMT). In addition, optionally or alternatively, the backward d3DMT can be directly constructed using the source HDR image and the forward shaped SDR image (once the forward shaped SDR image is available) to improve the shaping mapping accuracy.

[0029] Prior to being used to generate a backward shaping map, a d3DMT as described herein may be updated in one of the following: an appropriate subset of channels or planes in a set of all channels or planes of a color space. In some operating scenarios, the d3DMT may be updated only in the luma channel / plane of the color space, thereby improving color accuracy in the BL and / or reconstructed HDR image data to some extent. In some operating scenarios, the d3DMT may be updated in (e.g., all, etc.) luma and chroma channels / planes, thereby improving color accuracy in the BL and / or reconstructed HDR image data to a relatively significant extent.

[0030] Therefore, the shaping mapping accuracy including but not limited to color accuracy and the corresponding computational cost can be made adjustable by updating only the luma channel / plane of the forward d3DMT, or by updating both the luma plane and the chroma plane of the forward d3DMT, or by directly constructing the backward d3DMT from the source HDR image and the forward shaped SDR image.

[0031] To mitigate banding artifacts, some or all of noise injection, BLUT modification, etc. may be performed. Example noise injection and / or BLUT modification are described in the aforementioned U.S. Provisional Patent Application No. 62 / 885,921.

[0032] It is observed that modifying / updating a luminance backshaping map such as a luminance BLUT may affect the color accuracy in the reconstructed HDR image to cause unintended changes in the color appearance in the reconstructed HDR image.

[0033] A color correction operation as described herein may be implemented or performed to correct the colors of pixels affected by a BLUT modification (e.g., for mitigating banding artifacts, etc.) such that the colors in a reconstructed HDR image (e.g., after mitigating banding artifacts, etc.) appear closer to those in the source HDR image than would otherwise be the case. Additionally, optionally or alternatively, a noise injection operation is improved such that the injected noise is more visually pleasing than would otherwise be the case.

[0034] Example embodiments described herein relate to generating and encoding a backward shaping map for image reconstruction. The backward shaping map is initially generated as an inverse of a forward shaping map. The forward shaping map is used to generate a forward shaping map to generate a forward shaped image of a first dynamic range from a source image of a second dynamic range. The first dynamic range is lower than the second dynamic range. The forward shaping map includes luma codewords of samples of the second dynamic range, chroma codewords of samples of the second dynamic range, luma codewords of content mapping of the first dynamic range corresponding to the luma codewords of samples of the second dynamic range, and chroma codewords of content mapping of the first dynamic range corresponding to the chroma codewords of samples of the second dynamic range. The backward shaping map is updated by replacing luma codewords of content mapping with luma codewords of forward shaping. The forward shaped luma codewords are generated by applying a luma forward map to the luma codewords of samples of the second dynamic range. The luma forward map is constructed from the forward shaping map. The back shaping map and the luminance forward map are used to generate a back shaping map for creating a reconstructed image of a second dynamic range from a forward shaped image of a first dynamic range. The forward shaped image is encoded in a video signal along with image metadata specifying the back shaping map. A receiving device of the video signal applies the back shaping map to the forward shaped image to create a reconstructed image of a second dynamic range.

[0035] Example embodiments described herein relate to decoding a backward shaping map for image reconstruction and rendering. A forward shaped image of a first dynamic range is decoded from a video signal. Image metadata including the backward shaping map is decoded from the video signal. The backward shaping map is generated by an upstream image processing device from a backward shaping map table and a luminance forward map. The backward shaping map table is initially generated by the upstream image processing device as an inverse of a forward shaping map table, which generates a luminance forward map. Luminance codewords of content maps in the backward shaping map table are updated using forward shaped luminance codewords. The forward shaped luminance codewords are generated by applying a luminance forward map to sampled source luminance codewords in a source image. The backward shaping map is applied to the forward shaped image to generate a reconstructed image. A display image is caused to be derived from the reconstructed image for rendering using a display device.

[0036] Example Video Delivery Processing Pipeline

[0037] Figure 1AAn example process of a video delivery pipeline (100) showing various stages from video capture to video content display is depicted. A sequence of video frames (102) is captured or generated using an image generation block (105). The video frames (102) may be captured digitally (e.g., by a digital camera) or generated by a computer (e.g., using computer animation) 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 video data (107). At a production stage (110), the video data (107) is edited to provide a video production stream (112).

[0038] 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 in specific areas of the image to enhance the image quality or achieve a specific look of the image in accordance with the creative intent of the video creator. This is sometimes referred to as "color adjustment" or "color grading". Other edits (e.g., scene selection and sequencing, manual and / or automatic scene editing information generation, image cropping, addition of computer-generated visual effects, etc.) may be performed at the post-production editing (115) to produce a published version of an HDR image (117-1) or an SDR (or relatively narrow dynamic range) image (117) (e.g., SDR, etc.). In some embodiments, during post-production editing (115), a colorist who is performing post-production editing operations on the HDR image (117-1) views the HDR image (117-1) on a reference HDR display that supports high dynamic range. Furthermore, optionally or alternatively, during post-production editing (115), a colorist who is performing post-production editing operations on the SDR image (117) views the SDR image (117) on a reference display (125) that supports a standard dynamic range (or a relatively narrow dynamic range). Furthermore, optionally or alternatively, the SDR image (117) may be content mapped from the HDR image (117-1).

[0039] In some embodiments, the encoding block (120) may implement some or all of a variety of adjustable tradeoffs between the quality of the decoder-side reconstructed HDR image data and the computational complexity of the encoder-side backward shaping mapping. The encoding block (120) receives an HDR image (117-1) from a post-production editor (115) and forward shapes the HDR image (117-1) into a (forward) shaped SDR image.

[0040] The shaped SDR image may be compressed / encoded by the encoding block (120) into an encoded bitstream (122), for example in a single layer. Example single layer video encoding operations are described in U.S. Patent Application No. 16 / 087,241, filed on March 22, 2017 and published as U.S. Patent Application Publication Serial No. 2019 / 0110054, the entire contents of which are hereby incorporated by reference as if fully set forth herein.

[0041] In some embodiments, the encoding block (120) may include audio and video encoders, such as those defined by ATSC, DVB, DVD, Blu-ray, and other delivery formats, to generate an encoded bitstream (122).

[0042] The shaped SDR image may be encoded into video data in a video signal (e.g., an 8-bit SDR video signal, a 10-bit SDR video signal, etc.) that is backward compatible with a variety of SDR display devices (e.g., an SDR display, etc.). In a non-limiting example, the video signal encoded with the shaped SDR image may be a single-layer backward-compatible video signal. Here, a "single-layer backward-compatible video signal" may refer to a video signal that carries an SDR image that is specifically optimized or color-graded for an SDR display in a single signal layer.

[0043] In some embodiments, the encoded bitstream (122) output by the encoding block (120) may represent an output 8-bit SDR video signal with image metadata, including but not limited to a backward shaping map generated by the encoding block (120). Under the techniques described herein, the backward shaping map (or synthesizer metadata) is generated based on a specific set of adjustable trade-off options between the quality of the HDR image data reconstructed at the decoder side and the computational complexity of the backward shaping map at the encoder side - these adjustable trade-off options are made or selected, for example, by a content provider and / or content consumer of an end-to-end single-layer backward-compatible encoding pipeline including the encoding block (120).

[0044] The downstream decoder may use the backward shaping map to perform backward shaping (e.g., inverse tone mapping, etc.) on the shaped SDR image to generate a backward shaped image that may be optimized for rendering on an HDR (e.g., reference, etc.) display. In some embodiments, the backward shaped image may be generated from the shaped SDR image (or a decoded version thereof) using one or more SDR to HDR conversion tools that implement inverse tone mapping based at least in part on the backward shaping map (or compositor metadata). As used herein, backward shaping refers to an image processing operation that converts a requantized image back to the original EOTF domain (e.g., gamma, PQ, hybrid log-gamma, or HLG, etc.) for further downstream processing (such as display management). An example backward shaping operation is described in U.S. Provisional Application Serial No. 62 / 136,402, filed on March 20, 2015 (also published as U.S. Patent Application Publication Serial No. 2018 / 0020224 on January 18, 2018), the entire contents of which are hereby incorporated by reference as if fully set forth herein.

[0045] Additionally, optionally or alternatively, the encoded bitstream (122) is encoded with additional image metadata encoding, including but not limited to display management (DM) metadata, which can be used by downstream decoders to perform display management operations on the backward-shaped images for the HDR reference display to generate display images optimized for rendering on other displays (such as non-reference HDR displays, etc.).

[0046] The encoded bitstream (122) is then delivered downstream to a receiver, such as a decoding and playback device, a media source device, a media streaming client device, a television (e.g., a smart TV, etc.), a set-top box, a movie theater, etc. In the receiver (or downstream device), the encoded bitstream (122) is decoded by a decoding block (130) to generate a decoded image 182, which may be identical to the shaped SDR image, subject to quantization errors generated in the compression performed by the encoding block (120) and the decompression performed by the decoding block (130).

[0047] In an operating scenario where the receiver operates with (or is attached to) a target display 140 that supports a standard dynamic range or a relatively narrow dynamic range comparable to or less than the standard dynamic range, the decoding block (130) may decode a shaped SDR image from the encoded bitstream (122) (e.g., a single layer thereof, etc.) and use the decoded shaped SDR image directly or indirectly for rendering on the target display (140). In embodiments where the target display (140) has similar characteristics to the SDR reference display (125), the shaped SDR image may be viewed directly on the target display (140).

[0048] In some embodiments, the receiver operates with (or is attached to) an HDR target display 140-1 that supports a high dynamic range (e.g., 400 nits, 1000 nits, 4000 nits, 10000 nits, or more, etc.), can extract compositor metadata from the encoded bitstream (122) (e.g., a metadata container therein, etc.), use the backward shaping metadata (compositor metadata) to synthesize a backward shaped image 132-1 from the shaped SDR image by backward shaping the shaped SDR image based on the backward shaping metadata (compositor metadata), and directly or indirectly use the backward shaped image (132-1) for rendering on the HDR target display (140-1).

[0049] The backward shaped image (132-1) may be optimized for viewing on an HDR (e.g., reference, etc.) display that is not identical to the HDR target display (140-1) but is comparable to the HDR target display (140-1) - for example, supporting a maximum or peak luminance value greater than that of the HDR target display (140-1). A display management block (e.g., 135-1, etc.) - which may be located in a receiver, in the HDR target display (140-1), or in a separate device - further adjusts the backward shaped image (132-1) to the characteristics of the HDR target display (140-1) by generating a display mapping signal (137-1) adapted to the characteristics of the HDR target display (140-1).

[0050] Video codecs and the quality-complexity tradeoff

[0051] Figure 1BAn example tradeoff between the quality of a decoder-side reconstructed HDR image and the computational complexity of the generation of an encoder-side backward shaping map is illustrated. An encoding block (e.g., a video encoder, a video transcoder, a media streaming system, a content providing system, etc.) as described herein may be configured (e.g., dynamically, statically, adaptively, scheduled, independently, etc.) with a specific set of tradeoff options selected by a content provider and / or content consumer operating with a video processing system including the encoding block.

[0052] like Figure 1B As shown in , example tradeoffs may include, but are not necessarily limited to, enabling or disabling (turning on or off) any of the following: (a) noise injection, (b) BLUT modification, (c) color correction, etc., and (d) selecting different options in updating (or building) d3DMT. In some operating scenarios, enabling BLUT modification and color correction can mitigate banding artifacts, improve color appearance, and therefore improve the overall quality of the reconstructed HDR image.

[0053] Example tradeoff options in updating (or building) d3DMT (e.g., selectable or adjustable in coding blocks, etc.) may include, but are not necessarily limited to, (1) no update to the forward d3DMT, (2) updating the luma channel / plane in the forward d3DMT, (3) updating the luma and chroma channels / planes in the forward d3DMT, (4) building a backward d3DMT based on the source HDR image and the forward shaped SDR image, etc. Figure 1B As shown in , these different options provide different color levels of the quality of the reconstructed HDR image on the decoder side and / or different computational complexity (or efficiency) of the generation of the backward shaping map on the encoder side.

[0054] Figure 2A and Figure 2B An example video codec in an end-to-end video delivery pipeline, such as a video encoder (e.g., Figure 1A The end-to-end video delivery pipeline described herein or devices therein may be implemented in software, hardware, a combination of software and hardware, etc., using one or more computing devices with more or fewer processing blocks than those shown herein. By way of illustration and not limitation, some or all of the processing flows and / or data flows are labeled with numbers or letters in parentheses. Figure 2A and Figure 2B As shown in , any, some, or all of these processing blocks may be optional, depending on the particular set of trade-off options (e.g., such as those selected or made by a content provider user, by a content consumer user, etc.) Figure 1B etc.) are used to configure video encoding in an end-to-end video delivery pipeline.

[0055] like Figure 2A and Figure 2B As shown in , a video encoder as described herein includes a "mapping information" block for generating HDR to SDR mapping information, a "forward shaping" block for generating a recoverable SDR image (or a forward shaped SDR image), and a "backward shaping" block for generating image metadata (denoted as "RPU" or "rpu") that may include a backward shaping mapping to be used by a receiving device to reconstruct an HDR image that looks as close as possible to an input or reference HDR image (e.g., backward shaping from a recoverable SDR, etc.).

[0056] exist Figure 2A In the video encoder, you can enable Figure 1B Some or all of the (a) noise injection, (b) BLUT modification, and (c) color correction shown in FIG. , and select Figure 1B Update d3DMT as shown in option (d)(2) or (d)(3). As mentioned earlier, Figure 1B Option (d)(2) of corresponds to updating (e.g., updating only, etc.) the luminance channel / plane in the forward d3DMT, while Figure 1B Option (d)(3) corresponds to updating the luma and chroma channels / planes in the forward d3DMT.

[0057] Figure 2A The "mapping information" block includes sampling (or decimating) HDR color samples from a reference HDR image, applying content mapping (CM; e.g., manipulation / operation performed based on artistic or grading intent, color grading operations, etc.) to these HDR color samples to generate corresponding SDR color samples, etc. Example sampling strategies for sampling HDR color samples from a source or reference HDR image may include, but are not necessarily limited to, any of the following: sampling every pixel of the reference HDR image, sampling a relatively small set (e.g., 1 / 2, 1 / 4, 1 / 8, 1 / 16, etc.) of the reference HDR image, sampling uniformly or non-uniformly across the spatial dimensions of the reference HDR image, sampling uniformly or non-uniformly across the luminance distribution of luminance codewords / values ​​in the reference HDR image, etc.

[0058] At the mapping information level, based at least in part on the sampling strategy, a 3D sampling grid (e.g., a rectilinear 3D grid, a sparse 3D grid, a 3D grid with uniform or non-uniform distribution / density of vertices, etc.) may be constructed. In various embodiments, sample points may or may not be selected based on the 3D sampling grid. In some embodiments, sample points may be selected based on a density distribution; for example, sample points may be selected based on whether the colors present in the picture are as indicated by the density distribution. CM may be used to generate (e.g., only generate, etc.) content mappings from HDR sample points to corresponding SDR sample points. The content mapping may include a set of content mappings at a relatively small number of sample points (e.g., 10,000 sample points, etc.), rather than content mappings from all HDR pixels (e.g., 2 million pixels or more for an image of 1920x1080 spatial resolution, etc.) to all corresponding SDR pixels, and is therefore much lighter than generating all content mappings for all pixels.

[0059] HDR (e.g., color, codeword, etc.) samples and corresponding SDR (e.g., color, codeword, etc.) samples are used to form mapping pairs, which are used as samples to construct or fill the forward d3DMT (e.g., multidimensional mapping table, histogram, etc.). Figure 2A The "mapping information" block may also include collecting text box information from the HDR image, including but not limited to whether there is a text box in the HDR image, and if so, the pixel value of the text box.

[0060] A video encoder may implement a High Efficiency Reduced Reference (HERR) codec architecture as described in PCT / US2019 / 031620 to reduce computational complexity. Mapping side information - rather than a reference SDR image including (e.g., all, substantially all, etc.) pixel values ​​of individual pixels - may be sent from a mapping information stage of a video encoder to subsequent processing stages, such as a forward shaping stage, a backward shaping stage, and the like. In a HERR encoding operation, a source (or reference) HDR image and the mapping side information associated with the source (or reference) HDR image are used by subsequent processing stages to construct a forward shaping function (e.g., FLUT, MMR coefficients, etc.), to generate a (forward) shaped SDR image by forward shaping the source HDR image based on the forward shaping function, to generate backward shaped image metadata to be used by a receiving device (or a receiving video decoder) to generate a reconstructed HDR image that closely approximates the source HDR image, to encode the shaped SDR image using the backward shaped image metadata in the SLBC video signal, and the like. In some operating scenarios, the mapped side information may include a reduced number of colors compared to those represented in the full reference SDR image.

[0061] In the High Fidelity Full Reference (HFFR) mode described in PCT / US2019 / 031620, a reference SDR image is generated by applying a content map (e.g., color map, etc.) to each pixel of the source HDR image for constructing a d3DMT for chroma forward shaping. In HFFR mode, the reference SDR image is not encoded into the SLBC video signal, but is used as an approximate reference for constructing a d3DMT for chroma forward shaping. Therefore, in HFFR mode, there are many encoding-related operations performed at each individual pixel level (e.g., for each of the millions of pixels in the image, etc.).

[0062] In contrast, in the HERR mode described in PCT / US2019 / 031620, d3DMT can be generated from mapping side information such as content mapping information (e.g., color mapping information, etc.) with a reduced number of points (e.g., 10,000, much less than millions, etc.) without the need to generate or operate with a full reference SDR image at each individual pixel level. As a result, a large amount of computation or encoding-related operations can be saved or avoided.

[0063] As in the full reference mode, in order to generate the mapping side information at the mapping information level in the reduced reference mode, the codewords in the source HDR image (denoted as frame t) can be divided into Q bins for each such color channel based on the minimum and maximum codeword values ​​in each channel. There are a total of Q×Q×Q 3D bins. The unnormalized minimum codeword value is denoted as And the unnormalized maximum codeword value is expressed as Where channel ch = {Y, C0, C1}. The range of interval j is given as follows:

[0064]

[0065] in and j∈{0,1,…,Q-1}, and where b EDR is the bit depth of HDR (or EDR).

[0066] 3D histogram of HDR pixel values ​​(or codeword values) (expressed as ) are collected, where each 3D bin in the 3D histogram is indexed by the bin Specify. Compute the channel-specific sum of the HDR pixel values ​​in each 3D interval separately (expressed as and ). For a 3D histogram with a non-zero number of pixels ) non-empty interval, the channel-specific average HDR pixel value (or codeword value) can be calculated for all color channels (expressed as ); The SDR pixel value of the mapping of the HDR pixel value represented in the non-empty interval can also be determined or calculated using the content mapping at the average HDR pixel value of all color channels. Kt-1} is represented by K t intervals, among which Indicates the mapped SDR pixel value and Used to collect mapping statistics (such as channel-specific average HDR pixel value and the mapped SDR pixel values and ) is shown in Table 1 below.

[0067] Table 1

[0068]

[0069]

[0070]

[0071] As can be seen in Table 1 above, unlike the full reference mode, the mapped SDR pixel values ​​in the reduced reference mode are obtained by applying a content mapping (e.g., color mapping, etc.) to the HDR pixel values ​​at the sampled points, rather than averaging the individual SDR pixel values ​​in the reference SDR image. Such a content mapping may be applied only to the 3D histogram representing the d3DMT. The non-zero interval of . The HDR and SDR codeword statistics including the samples 3D histogram of Represented by d3DMT, and histogram Together, they can be sent as mapping side information from the mapping information stage to the forward shaping stage and / or the backward shaping stage and used to construct forward and backward shaping functions in the forward shaping stage and the backward shaping stage.

[0072] Figure 2AThe "forward shaping" block includes using the forward d3DMT to construct a (e.g., 1D, etc.) luminance histogram of HDR luminance samples (e.g., luminance components of HDR samples, etc.) and SDR luminance samples (e.g., luminance components of corresponding SDR samples, etc.) obtained from the forward d3DMT, applying cumulative density function (CDF) matching to form or generate a forward lookup table (FLUT) for luminance channels / planes, etc. Example CDF matching operations are described in PCT Application No. PCT / US2017 / 50980, filed September 11, 2017; U.S. Provisional Application Serial No. 62 / 404,307, filed October 5, 2016 (also published as U.S. Patent Application Publication Serial No. 2018 / 0098094 on April 5, 2018), the entire contents of which are hereby incorporated by reference as if fully set forth herein.

[0073] In some embodiments, CDF matching may be employed to construct a forward shaping lookup table (FLUT). A 1D luminance histogram may be constructed using a d3DMT generated from the source HDR codeword values ​​and the SDR codeword values ​​at sampled points (e.g., a sampling grid in each of the HDR and SDR image frames, etc.), rather than from the source HDR image and the reference SDR image at each unsampled pixel level. Since the 3D histogram representing the d3DMT is already available in the mapping side information from the mapping information stage, the forward shaping stage may construct a 1D luminance histogram by summing all 3D bins in the 3D histogram whose luminance values ​​correspond to the same luminance bin in the 1D luminance histogram.

[0074] CDF matching can be performed by the CDF matching block to generate an interpolated FLUT based on the 1D brightness histogram. The interpolated FLUT can be smoothed to generate a smoothed FLUT. In addition, a backward shaping LUT (BLUT) can be constructed by the BLUT construction block 456 using a codeword mapping or curve (e.g., 8-segment second-order polynomial, etc.) represented in the smoothed FLUT.

[0075] Two example methods or processes for constructing 1D brightness histograms with different computational costs are shown in Tables 2 and 3 below. In the first method as shown in Table 2, the centroid of each interval is calculated. CDF matching is performed using the centroid. This requires relatively high cost calculations, but generates a map with relatively high accuracy. In the second method as shown in Table 3, each interval is represented by its midpoint, which can be easily determined with relatively low cost calculations. The following presents these two methods.

[0076] Table 2

[0077]

[0078]

[0079]

[0080]

[0081] Table 3

[0082]

[0083]

[0084]

[0085] In some operating scenarios, a block standard deviation (denoted as "BLKSTD") is calculated from the HDR image. The risk of banding artifacts is estimated from the BLKSTD (e.g., calculated from the HDR image) and the FLUT (e.g., constructed using CDF matching). Noise whose intensity depends on the brightness level of the HDR image and / or the risk of banding artifacts can be injected (in the "(a) Noise Injection" sub-block) into a dark part or sub-range of the HDR brightness channel / plane of the HDR image.

[0086] Example block standard deviation calculations and banding artifact risk estimation are described in US Pat. No. 10,032,262, the entire contents of which are hereby incorporated by reference as if fully set forth herein.

[0087] Additionally, optionally or alternatively, a text box handling operation may be performed to handle any text boxes that may be present in the reference HDR image to help ensure correct colors in the forward shaped SDR image and / or the reconstructed HDR image. An example text box handling operation is described in the aforementioned PCT Patent Application No. PCT / US2019 / 031620.

[0088] The BL luma channel / plane / component of the corresponding forward shaped SDR image may be generated by applying the FLUT to the dithered (or noise injected) HDR luma channel / plane of the HDR image.

[0089] The BL chroma channels / planes / components of the corresponding forward shaped SDR image can be generated by applying the forward MMR coefficients to the HDR chroma channels / planes of the HDR image. The forward MMR coefficients (representing the chroma forward shaping map) can be calculated from the forward d3DMT and text box information.

[0090] The d3DMT from the mapping information stage may be received by the unconstrained MMR matrix construction in the forward shaping stage. An unconstrained least squares problem may be formulated to solve the MMR coefficients to be used to forward shape the chroma codewords in the source HDR image (including any textbox source HDR chroma codewords, if applicable) into shaped chroma codewords in the shaped SDR image (including any textbox shaped SDR chroma codewords, if applicable).

[0091] From the d3DMT provided in the mapping side information, two vectors can be constructed using the SDR chrominance values ​​of the non-zero bins (or non-empty bins) of the 3D histogram representing the d3DMT as follows:

[0092]

[0093] Alternatively, a matrix can be constructed using the average HDR pixel values ​​in the non-zero interval as follows:

[0094]

[0095] in

[0096]

[0097] It contains all supported MMR items.

[0098] make

[0099]

[0100] The unconstrained MMR coefficients can be obtained in closed form by solving the unconstrained least squares problem using the unconstrained MMR matrix as follows:

[0101]

[0102] Figure 2A The "backward shaping" block includes constructing a backward lookup table (BLUT) for the luma channel / plane from the FLUT using a histogram-based method (such as the histogram-weighted BLUT construction method described in the aforementioned PCT Patent Application No. PCT / US2019 / 031620), performing BLUT modification (denoted as "(b)") to modify the bright portion or sub-range of the BLUT to mitigate or reduce the risk of banding artifacts in the reconstructed HDR image generated from backward shaping the forward-shaped SDR image.

[0103] Depend on Figure 2AThe FLUT and forward MMR coefficients generated by the "Forward Shaping" block are used to update (in the "(d) d3DMT Update" sub-block) the SDR codewords / samples (in luma and / or chroma channels / planes) of the backward d3DMT generated (e.g., as an inverse, etc.) from the forward d3DMT. The modified BLUT (as generated in the "(b) BLUT Modification" sub-block) is used in the "(c) Color Correction" sub-block to modify the HDR chroma codewords (e.g., values, samples, etc.) in the backward d3DMT to correct the colors, thereby improving the color appearance of the reconstructed HDR image. The backward shaping MMR coefficients can be calculated from the updated backward d3DMT and the text box information.

[0104] The d3DMT may be received by an unconstrained MMR matrix construction in the backward shaping stage. An unconstrained least squares problem may be formulated to solve the MMR coefficients to be used to backward shape the chroma codewords in the shaped SDR image (including any text box shaped SDR chroma codewords, if applicable) into reconstructed chroma codewords in the reconstructed HDR image (including any text box reconstructed HDR chroma codewords, if applicable).

[0105] From d3DMT, two vectors can be constructed using the average HDR chrominance values ​​of the non-zero bins (or non-empty bins) of the 3D histogram representing d3DMT as follows:

[0106]

[0107] Alternatively, a matrix can be constructed using non-zero interval SDR pixel values ​​as follows:

[0108]

[0109] in

[0110]

[0111] It contains all supported MMR items.

[0112] make

[0113]

[0114]

[0115] The unconstrained MMR coefficients can be obtained in closed form by solving the unconstrained least squares problem using the unconstrained MMR matrix as follows:

[0116]

[0117] The backward shaping map including (or specifying) the BLUT and backward shaping MMR coefficients may be output in the encoded bitstream as part of the image metadata (e.g., “rpu”, etc.) accompanying the shaped SDR image.

[0118] For the purpose of achieving a specific adjustable trade-off between the quality of the HDR image reconstructed at the decoder side and the computational cost (or efficiency) at the encoder side, such as Figure 1B Each of some or all of the tradeoffs shown in can be individually selected or made to configure the video encoder. A first tradeoff can be made to enable / disable noise injection: by retaining / removing Figure 2A A second compromise option can be made to enable / disable by retaining / removing Figure 2A A third compromise option can be made to enable / disable BLUT modification by retaining / removing Figure 2A To enable / disable color correction, you can use the processing sub-block (c) in . For d3DMT updates, you can make multiple trade-offs. For example, you can make a fourth trade-off option to enable / disable Figure 2A A fifth compromise option can be made to retain Figure 2A A sixth compromise option can be made to retain Figure 2A The data flow (3) and processing sub-block (d) in .

[0119] Figure 2B The seventh compromise option is illustrated in FIG. Under this option, the backward d3DMT used to generate the backward shaping map is obtained from Figure 2B The indication is composed of the forward shaped SDR image and the reference HDR image provided in the data stream of (4).

[0120] In summary, the adjustable tradeoff techniques described herein can be used to generate backward shaping maps and support end-to-end video delivery between video codecs. Various tradeoff options can be selected or made to configure the video encoder to achieve the quality of the optimal decoder-side reconstructed HDR image that meets the availability of encoder-side computing resources.

[0121] The availability of encoder-side and / or decoder-side computing resources can be used to select or make specific adjustable trade-off options (e.g., dynamically, statically, adaptively, etc.). Example computing resources as described herein may include, but are not limited to, CPU consumption, DSP processing power, memory size, cache, data storage repository, network resources, latency, delays in an end-to-end video delivery pipeline, etc.

[0122] Figure 2C An example video codec is illustrated, such as a video decoder (eg, Figure 1AThe decoding block (130), etc.), which can also be implemented using one or more computing processors in a downstream video decoder (e.g., a receiver, etc.).

[0123] In such Figure 2C In some operating scenarios shown in , a video signal encoded with a (forward) shaped SDR image in a single layer 144 and image metadata 152 (which includes but is not necessarily limited to a backward shaping map generated by an upstream video encoder) is provided as input to a video decoder.

[0124] Decompression block 154 (e.g., Figure 1A The decoded SDR image (182) may be a portion of a decoding block (130) of the encoding block (120), etc., to decompress / decode the compressed video data in the single layer (144) of the video signal into a decoded SDR image (182). The decoded SDR image (182) may be the same as the shaped SDR image, subject to quantization errors in the encoding block (120) and in the decompression block (154), which may have been optimized for an SDR display device. The decoded SDR image (182) may be output to an SDR display device in an output SDR video signal 156 (e.g., via an HDMI interface, via a video link, etc.) and rendered on the SDR display device.

[0125] In addition, the back shaping block 158 extracts a back shaping map from the input video signal, constructs an optimal back shaping function based on the extracted back shaping map in the image metadata (152), and performs a back shaping operation on the shaped SDR image based on the optimal back shaping function to generate a reconstructed HDR image (e.g., an image that approximates the HDR reference image). Figure 1A backward-shaped HDR image 132-1, etc.).

[0126] In some embodiments, the backward shaped HDR image represents a production quality or near production quality HDR image optimized for an HDR target / reference display device. The backward shaped HDR image can be output to an HDR display device in an output HDR video signal 160 (e.g., through an HDMI interface, through a video link, etc.) and rendered on the HDR display device. In some operations, DM may not be implemented in the receiver to reduce cost or latency.

[0127] Additionally, optionally or alternatively, in some operational scenarios, DM metadata may be transmitted to the receiver in the image metadata (152) and the shaped SDR image. Display management operations specific to the HDR display device may be performed on the back-shaped HDR image based at least in part on the DM metadata in the image metadata (152), for example to generate an HDR display image to be rendered on the HDR display device.

[0128] For the purpose of illustration, a single-layer codec architecture has been described. It should be noted that the techniques described herein can be used in addition to FIG. 2A to FIG. 2C In some embodiments, the present invention relates to a single-layer codec architecture other than those shown in . In addition, these techniques can be used in a multi-layer codec architecture, optionally or alternatively. Therefore, these and other variants of single-layer or multi-layer codec architectures can operate with some or all of the techniques described herein.

[0129] Update d3DMT for backward shaping

[0130] Many of the relatively large gaps between the high-fidelity and high-efficiency approaches described in the aforementioned PCT Patent Application No. PCT / US2019 / 031620 in terms of the quality of HDR images reconstructed at the decoder side and the computational cost (or efficiency) at the encoder side can be attributed to the methods used to calculate or generate backward shaping mappings (or functions) such as backward shaping MMR coefficients for backward shaping SDR images in chroma channels / planes.

[0131] On the one hand, efficient methods calculate the backward shaping MMR coefficients directly from the forward d3DMT, thereby introducing errors that significantly affect the quality of the HDR image reconstructed at the decoder side. This is because the forward d3DMT may be accurate enough for forward shaping, but may not be accurate enough for backward shaping.

[0132] Performing luma shaping in a single (luminance) channel / plane of the color space may be prone to errors in the shaped codewords / values ​​to some extent.MMR prediction for chroma shaping may generate further errors.

[0133] Figure 3A Example prediction errors of Y, Cb (denoted as C0 or C0) and Cr (denoted as C1 or C1) caused by forward shaping for each entry in the forward d3DMT are illustrated. These prediction errors represent the difference or deviation between the original codeword / value in the forward d3DMT and the codeword / value predicted by the FLUT / MMR. Luma prediction errors may be more prominent than chroma prediction errors. These prediction errors may be further propagated to backward shaping, resulting in relatively significant errors in the reconstructed HDR image.

[0134] On the other hand, high-fidelity methods construct new backward d3DMT from reference (or source) HDR and corresponding SDR images (e.g., forward-shaped SDR images, etc.), incurring significant computational cost and latency.

[0135] The FLUT for predicting the SDR codewords / values ​​in the luma channel / plane and the forward MMR coefficients for predicting the SDR codewords / values ​​in the chroma channels / planes are first solved / obtained. To correct or minimize the prediction error introduced by the forward shaping in the backward shaping mapping, the content-mapped SDR codewords / values ​​in the SDR entry of the forward d3DMT (which are in Figure 2A or Figure 2B The backward d3DMT corresponding to the forward d3DMT is generated by content mapping HDR codewords / values / samples in the "mapping information" block.

[0136] The mapping pairs in the forward d3DMT generated from the HDR samples (or source HDR values ​​in the Y, C0 and C1 channels / planes) of the t-th HDR reference image (or frame) and the corresponding SDR samples (or content-mapped SDR values) generated by content mapping the HDR samples are represented as follows:

[0137]

[0138] where K is the total number of entries or rows in the forward d3DMT; and Represents the source HDR values ​​in the Y, C0 and C1 channels / planes of the k-th entry in the mapping table respectively; and Represents the SDR values ​​of the content mapping in the Y, C0, and C1 channels / planes of the k-th entry in the forward d3DMT, respectively; k is an integer between 0 and (K–1).

[0139] The mapping pairs in the mapping table as described herein refer to HDR values. and The entries (e.g., on the left side of expression (1) above) are related to the SDR value and (eg, on the right side of expression (1) above, etc.). Under the techniques described herein, these values ​​in the mapping pair may be updated for the purpose of generating a relatively high quality backward shaping mapping.

[0140] FLUT t (·) denotes the forward FLUT (generated from the forward d3DMT) for predicting SDR codewords / values ​​from HDR codewords / values ​​in the luma channel / plane. Let and The forward MMR coefficients (generated from the forward d3DMT) for predicting the SDR codewords / values ​​from the HDR codewords / values ​​in the chrominance channels / planes C0 and C1 are represented as follows, respectively:

[0141]

[0142] Where M represents the total number of entries in the MMR-based forward shaping map.

[0143] A backward d3DMT including mapping pairs from SDR to HDR may be initially generated as the inverse of a forward d3DMT. For example, for the purpose of constructing the backward d3DMT initially as the inverse of the forward d3DMT, HDR values ​​mapped to SDR values ​​in the forward d3DMT may be used as corresponding HDR values ​​to which the SDR values ​​are mapped in the backward d3DMT.

[0144] An example process of replacing content-mapped SDR codewords / values ​​in the backward d3DMT with forward-shaped SDR codewords / values ​​predicted using FLUT in the luma channel / plane is shown in Table 4 below.

[0145] Table 4

[0146]

[0147] In some operating scenarios, after updating the SDR luma codewords / values ​​in the backward d3DMT that was originally generated as the inverse of the forward d3DMT, a modified backward d3DMT from HDR to SDR may be generated as follows:

[0148]

[0149] As mentioned previously, to construct this backward d3DMT, the HDR values ​​mapped to SDR values ​​in the forward d3DMT may be used as the corresponding HDR values ​​to which the SDR values ​​in the backward d3DMT are mapped.

[0150] An example process of replacing content-mapped SDR codewords / values ​​in the backward d3DMT with forward shaped SDR codewords / values ​​predicted using forward MMR coefficients in the chroma channels / planes is shown in Table 5 below.

[0151] Table 5

[0152]

[0153] In some operating scenarios, after updating the SDR chroma codewords / values ​​in the backward d3DMT that was originally generated as the inverse of the forward d3DMT, a modified backward d3DMT from SDR to HDR may be generated as follows:

[0154]

[0155] Furthermore, optionally or alternatively, after updating the SDR luma and chroma codewords / values ​​in the backward d3DMT, a modified backward d3DMT from SDR to HDR may be generated as follows:

[0156]

[0157] The backward MMR coefficients for predicting the reconstructed HDR codeword / value can be calculated from the modified backward d3DMT represented in expressions (3) to (5). Take the updated backward d3DMT in expression (5) as an example. The construction matrix is:

[0158]

[0159] in Contains all (M) items supported by the MMR prediction operation.

[0160] make

[0161]

[0162]

[0163]

[0164]

[0165]

[0166] The backward MMR coefficient for backward shaping can be calculated as follows:

[0167]

[0168]

[0169] In some operating scenarios, the prediction error in the backward shaping in the luma channel / plane is more significant than the prediction error in the backward shaping in the chroma channel / plane. In addition, generating and updating the SDR luma codeword or value in updating / modifying the backward d3DMT is computationally more efficient than generating and updating the SDR chroma codeword or value. In these operating scenarios, the processing indicated in Table 4 can be given a higher priority than the processing indicated in Table 5.

[0170] Figure 4A An example process flow for an adjustable tradeoff between the quality of HDR images reconstructed at the decoder side and the computational cost of updating or building d3DMT at the encoder side for generating a backward shaping map is illustrated. In some embodiments, a video encoder implemented using one or more computing devices may perform this process flow.

[0171] Block 402 includes determining whether computing resources (e.g., of a video encoder, of an encoding block, of one or more video codecs involved in delivering video data to a decoder / playback device, etc.) are available to support updating / building a forward d3DMT (or updating / building a corresponding backward d3DMT that was originally generated as its inverse).

[0172] Block 404 includes, in response to determining that computing resources are not available to support updating / building the forward d3DMT (or the backward d3DMT), avoiding making changes to the forward d3DMT, directly using the inverse of the forward d3DMT as the backward d3DMT to calculate the backward MMR coefficients. The first color level of the reconstructed HDR image can be generated by a video decoder that receives the forward shaped SDR image and the corresponding backward shaped map generated at least in part by the backward MMR coefficients.

[0173] To generate the first color level, Figure 3B As shown in , the video encoder first constructs a forward d3DMT from the HDR samples of each source (or input) HDR image and the corresponding SDR samples of the SDR image of the content map corresponding to the source HDR image. The video encoder then calculates a backward shaping map, which includes but is not limited to a chroma backward shaping function represented by backward shaping MMR coefficients derived from a backward d3DMT that is the inverse of the forward d3DMT (without any further updates to the forward or backward d3DMT).

[0174] As used herein, different color levels may be generated to depict the same visual semantic content. A color level may refer to a specific (eg, encoder-generated, etc.) version of a reconstructed HDR image that depicts the same visual semantic content.

[0175] Block 406 includes, in response to determining that computing resources are available to support updating / building the forward d3DMT (or backward d3DMT), determining a particular level of computing resources available.

[0176] In some operational scenarios, multiple computing resource level thresholds may be configured for a video encoder and may be used by the video encoder to compare to specific levels of available computing resources.

[0177] Block 408 includes determining a corresponding specific tradeoff option for updating / building d3DMT among a plurality of tradeoff options based on the specific level of available computing resources and a plurality of computing resource level thresholds.

[0178] For example, in response to determining that a particular level of available computing resources is above a first computing resource level threshold but below a second computing resource level threshold (which is above the first computing resource level threshold), the video encoder may update the SDR luma codewords / values ​​of the forward d3DMT (or the corresponding backward d3DMT) as shown in Table 4. The second color level of the reconstructed HDR image may be generated by a video decoder receiving the forward shaped SDR image and the corresponding backward shaped map generated at least in part by backward MMR coefficients derived from the updated d3DMT.

[0179] To generate the second color level, Figure 3B As shown in , the video encoder first constructs a forward d3DMT from the HDR samples of each source (or input) HDR image and the corresponding SDR samples of the SDR image mapped to the content corresponding to the source HDR image. The video encoder generates a luminance forward shaping function based on the forward d3DMT and uses the luminance forward shaping function to update the luminance codeword / value in the forward d3DMT or the backward d3DMT that was originally generated as the inverse of the forward d3DMT (but does not update the chrominance codeword / value). The video encoder then calculates a backward shaping map, which includes but is not limited to a chrominance backward shaping function represented by a backward shaping MMR coefficient derived from the updated backward d3DMT.

[0180] In response to determining that the specific level of available computing resources is above the second computing resource level threshold but below a third computing resource level threshold (which is above the second computing resource level threshold), the video encoder may update the SDR luma and chroma codewords / values ​​of the forward d3DMT (or the corresponding backward d3DMT) as shown in Tables 4 and 5. The third color level of the reconstructed HDR image may be generated by a video decoder receiving the forward shaped SDR image and the corresponding backward shaped map generated at least in part by backward MMR coefficients derived from the updated d3DMT.

[0181] To generate a third color level, such as Figure 3B As shown in , the video encoder first constructs a forward d3DMT from the HDR samples of each source (or input) HDR image and the corresponding SDR samples of the SDR image mapped to the content corresponding to the source HDR image. The video encoder generates a luminance forward shaping function based on the forward d3DMT and a chrominance forward shaping function (e.g., forward shaping MMR coefficients, etc.) based on the forward d3DMT. The video encoder uses the luminance and chrominance forward shaping functions to update the luminance codewords / values ​​and chrominance codewords / values ​​in the forward d3DMT or the backward d3DMT that was originally generated as the inverse of the forward d3DMT. The video encoder then calculates a backward shaping map, which includes but is not limited to a chrominance backward shaping function represented by the backward shaping MMR coefficients derived from the updated backward d3DMT.

[0182] In response to determining that the specific level of available computing resources is above a third computing resource level threshold, the video encoder may use the HDR source (or reference) image and the corresponding forward shaped SDR image to construct a (new) backward d3DMT (e.g., without using the inverse of the forward d3DMT, etc.) for backward shaping, and continue to calculate backward MMR coefficients based on the constructed backward d3DMT. A fourth color level of the reconstructed HDR image may be generated by a video decoder receiving the forward shaped SDR image and the corresponding backward shaping map generated at least in part by backward MMR coefficients derived from the constructed backward d3DMT.

[0183] To generate a fourth color level, such as Figure 3B As shown in , the video encoder first constructs a forward d3DMT from the HDR samples of each source (or input) HDR image and the corresponding SDR samples of the SDR image mapped to the content corresponding to the source HDR image. The video encoder generates a luminance forward shaping function based on the forward d3DMT and a chrominance forward shaping function (e.g., forward shaping MMR coefficients, etc.) based on the forward d3DMT. The video encoder uses the luminance and chrominance forward shaping functions to generate a forward shaped SDR image. The video encoder then calculates a backward shaping map, which includes but is not limited to a chrominance backward shaping function represented by a backward shaping MMR coefficient derived from a backward d3DMT constructed directly based on the source HDR image and the forward shaped SDR image.

[0184] BLUT Modification

[0185] In some operational scenarios, example tradeoff options are Figure 1B The BLUT modification shown in . The maximum luminance range that can be represented by the available codewords of the SDR interval without showing banding artifacts is estimated using BLKSTD. The actual luminance range represented by the available codewords (e.g., may show banding artifacts, etc.) is calculated from the BLUT. The BLUT portion above (e.g., brightest, brightest below an upper luminance codeword / value, etc.) a specific luminance codeword / value (e.g., represented as Y~, etc.) can be modified based on the ratio between the maximum luminance range and the actual luminance range. In addition, optionally or alternatively, the dark (e.g., darkest, darkest above a lower luminance codeword / value, etc.) BLUT portion can be changed as part of a noise injection operation. Example BLUT modifications and noise injections are described in the aforementioned U.S. Provisional Patent Application No. 62 / 885,921.

[0186] Enabling BLUT modification in a video encoder as described herein may mitigate or reduce banding artifacts in bright areas of reconstructed HDR images, thereby significantly improving the visual quality of these reconstructed HDR images.

[0187] Color correction for BLUT modification

[0188] In some operating scenarios, although BLUT modification may mitigate banding artifacts in bright areas, it is observed that the color appearance of the affected pixels (e.g., their brightness codewords / values ​​are changed due to the BLUT modification) may change. For example, when banding artifacts are removed from the sky around the sun in a reconstructed HDR image by BLUT modification, the color of the sky in the reconstructed HDR image may appear more saturated than the reconstructed HDR image without the BLUT modification.

[0189] Generally, when the chrominance value of a pixel remains the same, decreasing the brightness value of a pixel can make the color of the pixel appear more saturated, while increasing the brightness value of a pixel can make the pixel appear less saturated.

[0190] This may not mean that the saturation actually changes, but rather that the color appearance of the pixel as visually perceived by the viewer is different for the same chromaticity value at different luminance values.

[0191] In some operational scenarios, the corresponding chrominance values ​​of pixels corresponding to the luma values ​​of the pixels changed by the BLUT modification may be modified so that the color appearance of these pixels appears relatively close to the color appearance in the source (e.g., reference, input, etc.) HDR image. The ratio between the modified BLUT and the original BLUT (not changed by the BLUT modification) is used as a desaturation (or chrominance scaling) function to tune the chrominance values.

[0192] BLUT orig (·) represents the original BLUT. Let BLUT mod (·) represents a modified BLUT that suppresses banding artifacts. The BLUT maps (eg, normalized, unnormalized, etc.) SDR luminance values ​​to (eg, normalized, unnormalized, etc.) HDR luminance values.

[0193] For purposes of illustration only, chrominance values ​​are represented in a color space including, but not limited to, YCbCr, ICtCp, IPTPQ, etc., where chrominance values ​​in the normalized domain [0 1] are represented with an offset of 0.5. Thus, a chrominance value of 0.5 means a neutral color (grayscale). To tune the chrominance value (or its saturation / color appearance), the offset may be removed from the chrominance value.

[0194] An example process of replacing the input (or reference) HDR chroma codewords / values ​​with desaturated HDR codewords / values ​​in the backward d3DMT in the chroma channels / planes is shown below in Table 6. This makes the reconstructed HDR codewords / values ​​generated by the backward shaping mapping as described herein approximate the desaturated HDR codewords / values ​​instead of the input (or reference) HDR chroma codewords / values.

[0195] Table 6

[0196]

[0197] In some operating scenarios, after updating the HDR chroma codewords / values ​​in the backward d3DMT that was originally generated as the inverse of the forward d3DMT (and replacing the content-mapped SDR codewords / values ​​with the forward-shaped SDR codewords / values), a modified backward d3DMT from HDR to SDR may be generated as follows:

[0198]

[0199] The backward MMR coefficients in the backward shaping map can then be calculated from the backward d3DMT.

[0200] The desaturation function is shown in Table 6. The parameter β in represents a tuning parameter, the actual value of which can be determined or tuned by empirical studies of the color appearance of original (e.g., training, etc.) HDR images and corresponding reconstructed HDR images with desaturated chrominance values ​​and without desaturated chrominance values. Example values ​​of parameter β may include, but are not necessarily limited to, one of 1.5, 2, 2.5, 3, 3.5, etc.

[0201] As shown in Table 6, the desaturated chromaticity values ​​in the C0 or Cb channel Includes two items. The first item represents the deviation of the desaturated chromaticity value from the neutral gray value of 0.5. Therefore, when the desaturated chromaticity value in the C0 or Cb channel The first term is relatively small, desaturated chromaticity value is tuned to be relatively close to the neutral gray value of 0.5. As a result, the desaturated chromaticity values ​​​​of The color ratio of the pixel has the corresponding chromaticity value before tuning The pixels are more desaturated.

[0202] Similarly, the desaturated chrominance values ​​in the C1 or Cr channel Includes two items. The first item It represents the deviation of the desaturated chromaticity value from the neutral gray value of 0.5. Therefore, when the desaturated chromaticity value in the C1 or Cb channel is The first term is relatively small, desaturated chromaticity value is tuned to be relatively close to the neutral gray value of 0.5. As a result, the desaturated chromaticity values ​​​​of The color ratio of the pixel has the corresponding chromaticity value before tuning The pixels are more desaturated.

[0203] Figure 3C The diagram shows the various color levels that can be applied (e.g. Figure 3B 4, etc.). By way of example, the video encoder generates a luma backward shaping function, such as a (e.g., pre-modification, etc.) BLUT based on a backward d3DMT as described herein. The video encoder then modifies the BLUT to reduce banding artifacts (e.g., risk thereof, etc.). The video encoder uses the pre-modification BLUT and the modified BLUT to generate a desaturation function (e.g., as the ratios shown in Table 6 above, etc.) to update the HDR chroma codewords / values ​​in the backward d3DMT. The video encoder then calculates a backward shaping map, which includes, but is not limited to, a chroma backward shaping function represented by backward shaping MMR coefficients derived from the updated backward d3DMT.

[0204] Figure 3D The diagram shows the combination of the d3DMT update operation for color level 2 (such as Figure 3B ) is an example color correction performed by the video encoder (as shown in ). The video encoder first constructs a forward d3DMT from the HDR samples of each source (or input) HDR image and the corresponding SDR samples of the SDR image mapped to the content corresponding to the source HDR image. The video encoder constructs or generates a luminance forward shaping function based on the forward d3DMT. The video encoder uses the luminance forward shaping function to update the luminance codeword / value in the forward d3DMT or the backward d3DMT that was originally generated as the inverse of the forward d3DMT. The video encoder then constructs or generates a luminance backward shaping function based on the backward d3DMT. The video encoder further modifies the BLUT to reduce banding artifacts. The video encoder uses the BLUT before modification and the modified BLUT to generate a desaturation function (e.g., as the ratio shown in Table 6 above, etc.) to update the HDR chrominance codeword / value in the backward d3DMT. The video encoder then calculates a backward shaping map, which includes but is not limited to a chrominance backward shaping function represented by a backward shaping MMR coefficient derived from the updated backward d3DMT.

[0205] Backward shaping mapping and temporal stability

[0206] Figure 3EAn example backward shaping map generation with brightness update, BLUT modification and color correction is illustrated. Block 302 includes using the sampled HDR codewords of the source HDR image and the corresponding content-mapped SDR codewords to construct a d3DMT, each d3DMT including multiple mapping pairs between the HDR codewords and the SDR codewords of a given source HDD image. Block 304 includes constructing a corresponding brightness forward shaping function, such as a forward lookup table (FLUT), based on multiple mapping pairs in each d3DMT. Block 306 includes constructing a corresponding forward chrominance map represented by a forward MMR coefficient based on multiple mapping pairs in each d3DMT. Block 308 includes updating the SDR brightness codewords in multiple mapping pairs in each d3DMT by replacing the content-mapped SDR brightness codewords with forward shaping SDR codewords predicted using the FLUT. Block 310 includes constructing a brightness backward shaping function (BLUT) from the FLUT. Block 312 includes modifying the BLUT to mitigate or reduce the risk of banding artifacts. Block 314 includes correcting the HDR chroma codewords in the plurality of mapping pairs in each d3DMT by replacing the sampled HDR chroma codewords with desaturated HDR chroma codewords generated based on the original and modified BLUTs. Block 316 includes calculating a chroma backward shaping map (e.g., chroma backward shaping function, backward (shaping) MMR coefficients, etc.) for each forward shaped SDR image corresponding to one of the source HDR images based on an updated d3DMT including the plurality of mapping pairs with updated luma SDR codewords and updated chroma HDR codewords.

[0207] In some operational scenarios, for the purpose of maintaining temporal stability of image metadata, a linear segment based structure may be used in computing / generating / including a backward shaping map in image metadata. Example linear segment based structures are described in U.S. Patent Application No. 2018 / 0007356, published on January 4, 2018, the entire contents of which are hereby incorporated by reference as if fully set forth herein.

[0208] Some or all of the techniques as described herein may be implemented and / or performed as part of real-time operations to produce color grading of video content that is suitable for broadcast video applications, real-time streaming applications, etc. Additionally, optionally or alternatively, some or all of the techniques as described herein may be implemented and / or performed as part of time-delayed or offline operations to produce color grading of video content that is suitable for non-real-time streaming applications, cinema applications, etc.

[0209] Example Processing Flow

[0210] Figure 4BAn example process flow according to an embodiment is illustrated. In some embodiments, one or more computing devices or components (e.g., encoding device / module, transcoding device / module, decoding device / module, inverse tone mapping device / module, tone mapping device / module, media device / module, reverse mapping generation and application system, etc.) can perform this process flow. In block 422, the image processing system generates a backward shaping mapping table that is initially an inverse of the forward shaping table.

[0211] The forward shaping table is used to generate a forward shaping map to generate a forward shaped image of a first dynamic range from a source image of a second dynamic range. The first dynamic range is lower than the second dynamic range. The forward shaping map includes luma codewords of the samples of the second dynamic range, chroma codewords of the samples of the second dynamic range, luma codewords of the content map of the first dynamic range corresponding to the luma codewords of the samples of the second dynamic range, and chroma codewords of the content map of the first dynamic range corresponding to the chroma codewords of the samples of the second dynamic range.

[0212] In block 424, the image processing system updates the backward shaping mapping table by replacing the luma codeword of the content map with the forward shaped luma codeword. The forward shaped luma codeword is generated by applying the luma forward mapping to the sampled luma codewords of the second dynamic range. The luma forward mapping is constructed from the forward shaping mapping table.

[0213] In block 426, the image processing system generates a backward shaping map using the backward shaping map and the luminance forward map for use in creating a reconstructed image of the second dynamic range from the forward shaped image of the first dynamic range.

[0214] In block 428, the image processing system encodes the forward shaped image in a video signal along with image metadata specifying the backward shaping map. A recipient device of the video signal applies the backward shaping map to the forward shaped image to create a reconstructed image of a second dynamic range.

[0215] In an embodiment, the image processing system is further configured to perform: determining available computing resources in an end-to-end video delivery pipeline; using the available computing resources to determine a specific set of trade-off options between the quality of the reconstructed image of the second dynamic range at the decoder side and the computational complexity of generating a backward shaping map at the encoder side; performing a specific set of image processing operations to generate the backward shaping map according to the specific set of trade-off options.

[0216] In an embodiment, the image processing system is further configured to cause a display image to be derived from the reconstructed image and rendered using a recipient device of the video signal.

[0217] In an embodiment, the image processing system is further configured to update the backward shaping mapping table by replacing the chroma codewords of the content mapping with the forward shaped chroma codewords. The forward shaped chroma codewords are generated by applying a multivariate multiple regression (MMR) chroma forward mapping to the sampled luma and chroma codewords of the second dynamic range. The MMR chroma forward mapping is constructed from the forward shaping mapping table.

[0218] In an embodiment, the image processing system is further configured to update the backward shaping map by replacing the sampled chroma codewords with desaturated chroma codewords.

[0219] In an embodiment, the desaturated chroma codewords are generated by applying a desaturation function to the sampled chroma codewords; the desaturation function is constructed as a ratio between the modified luma backshaping map and the original luma backshaping map.

[0220] In an embodiment, the image processing system is further configured to cause backward lookup table modification to be applied to reduce banding artifacts in the reconstructed image.

[0221] In an embodiment, at least one of the backward mapping table and the forward mapping table represents a three-dimensional mapping table (3DMT) dynamically constructed at least in part from the source image and the forward shaped image.

[0222] In an embodiment, the brightness forward map is represented by a brightness lookup table.

[0223] In an embodiment, the reconstructed image of the second dynamic range approximates the source image of the second dynamic range.

[0224] In an embodiment, the video signal represents a single layer backward compatible video signal.

[0225] Figure 4C An example processing flow according to an embodiment of the present invention is illustrated. In some embodiments, one or more computing devices or components (e.g., encoding device / module, transcoding device / module, decoding device / module, inverse tone mapping device / module, tone mapping device / module, media device / module, prediction model and feature selection system, reverse mapping generation and application system, etc.) can perform this processing flow. In block 442, the video decoding system decodes a forward shaped image of a first dynamic range from the video signal.

[0226] In block 444, the video decoding system decodes image metadata including the backward shaping map from the video signal.

[0227] A backward shaped map is generated by an upstream image processing device from a backward shaped map table and a luma forward map. The backward shaped map table is initially generated by the upstream image processing device as an inverse of a forward shaped map table that generates a luma forward map. Luma codewords of content maps in the backward shaped map table are updated with forward shaped luma codewords. The forward shaped luma codewords are generated by applying the luma forward map to sampled source luma codewords in a source image.

[0228] In block 446, the video decoding system applies the backward reshaped mapping to the forward reshaped image to generate a reconstructed image.

[0229] In block 448, the video decoding system causes a display image derived from the reconstructed image to be rendered using a display device.

[0230] In an 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 foregoing methods. In an embodiment, an apparatus includes a processor and is configured to perform any of the foregoing methods. In an embodiment, a non-transitory computer-readable storage medium stores software instructions that, when executed by one or more processors, cause any of the foregoing methods to be performed.

[0231] In an 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 performance of any of the foregoing methods.

[0232] Note that, although separate embodiments are discussed herein, any combination of embodiments and / or portions of embodiments discussed herein may be combined to form further embodiments.

[0233] Example Computer System Implementation

[0234] Embodiments of the present invention may be implemented using a computer system, a system configured with electronic circuits and components, an integrated circuit (IC) device, such as a microcontroller, a field programmable gate array (FPGA), or another 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 with enhanced dynamic range, such as those described herein. The computer and / or IC may calculate any of the various parameters or values ​​associated with the adaptive perceptual quantization process described herein. The image and video embodiments may be implemented in hardware, software, firmware, and various combinations thereof.

[0235] Certain implementations of the present invention include a computer processor that executes software instructions that cause the processor to perform the method of the present disclosure. For example, one or more processors in a display, an encoder, a set-top box, a transcoder, etc. can implement methods related to the adaptive perceptual quantization of the above-mentioned HDR image by executing software instructions in a program memory accessible to the processor. Embodiments of the present invention may also 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 including instructions, which, when executed by a data processor, cause the data processor to perform the method of an embodiment of the present invention. The program product according to an embodiment of the present invention may be any of a variety of forms. The program product may include, for example, physical media, such as magnetic data storage media including floppy disks, hard disk drives, optical data storage media including CD ROMs, DVDs, electronic data storage media including ROMs, flash RAMs, etc. The computer-readable signals on the program product may be optionally compressed or encrypted.

[0236] Where a component (e.g., a software module, a processor, an assembly, a device, a circuit, etc.) is mentioned above, unless otherwise indicated, reference to that component (including reference to "means") should be interpreted to include equivalents of that component, any component that performs the function of the described component (e.g., functionally equivalent), including components that are not structurally equivalent to the disclosed structure but perform the functions in the illustrative example embodiments of the invention.

[0237] According to one embodiment, the technology described herein is implemented by one or more special-purpose computing devices. Special-purpose computing devices can be hard-wired to perform these technologies, or can include digital electronic devices (such as one or more field programmable gate arrays (FPGAs) or application-specific integrated circuits (ASICs) that are permanently programmed to perform these technologies), or can include one or more general-purpose hardware processors that are programmed to perform these technologies according to program instructions in firmware, memory, other storage devices, or combinations. Such special-purpose computing devices can also combine customized hard-wired logic, ASICs, or FPGAs with customized programming to implement these technologies. Special-purpose computing devices can be desktop computer systems, portable computer systems, handheld devices, networking devices, or any other devices that incorporate hard-wiring and / or program logic to implement these technologies.

[0238] For example, Figure 5 5 is a block diagram illustrating a computer system 500 upon which embodiments 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 with bus 502 for processing information. Hardware processor 504 may be, for example, a general purpose microprocessor.

[0239] 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 instructions and information to be executed by processor 504. Main memory 506 may also be used for storing temporary 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 to processor 504, make computer system 500 a special-purpose machine customized to perform the operations specified in the instructions.

[0240] 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 to processor 504. A storage device 510, such as a magnetic or optical disk, is provided and coupled to bus 502 for storing information and instructions.

[0241] The computer system 500 may be coupled to a display 512 (such as a liquid crystal display) via the bus 502 for displaying information to a computer user. An input device 514 including alphanumeric and other keys is coupled to the bus 502 for communicating information and command selections to the 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 the processor 504 and for controlling cursor movement on the display 512. Such input devices typically have two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), which allows the device to specify a position in a plane.

[0242] Computer system 500 may implement the techniques described herein using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic (which, in combination with the computer system, makes computer system 500 or programs computer system 500 to be a special purpose machine). According to one embodiment, computer system 500 performs the techniques described herein 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, hardwired circuits may be used in place of or in combination with software instructions.

[0243] The term "storage medium" as used herein refers to any non-transitory medium that stores data and / or instructions that cause a machine to operate in a particular 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 tapes or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a pattern of holes, RAM, PROMs and EPROMs, FLASH-EPROMs, NVRAMs, any other memory chips or cassettes.

[0244] Storage media are distinct from transmission media but can be used in conjunction with transmission media. Transmission media participate in the transfer of information between storage media. For example, transmission media include coaxial cables, copper wire, and optical fiber, 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.

[0245] Various forms 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 be initially carried on a disk or solid-state drive of a remote computer. The remote computer may 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 may receive data on the telephone line and convert the data into an infrared signal using an infrared transmitter. An infrared detector may receive the data carried in the infrared signal, and appropriate circuitry may place the data on the bus 502. The bus 502 carries the data to the main memory 506, from which the processor 504 retrieves and executes the instructions. The instructions received by the main memory 506 may optionally be stored on the storage device 510 before or after being executed by the processor 504.

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

[0247] The network link 520 typically provides data communication to other data devices through one or more networks. For example, the network link 520 can provide a connection to a host computer 524 or to data equipment operated by an Internet Service Provider (ISP) 526 through a local network 522. The ISP 526 in turn provides data communication services through a global packet data communication network, now commonly referred to as the "Internet" 528. Both the local network 522 and the Internet 528 use 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 example forms of transmission media.

[0248] Computer system 500 can send messages and receive data, including program code, through the network, network link 520 and communication interface 518. In the Internet example, server 530 might transmit the requested code for an application program through Internet 528, ISP 526, local network 522 and communication interface 518.

[0249] 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.

[0250] Equivalents, extensions, alternatives and miscellaneous

[0251] In the foregoing description, embodiments of the invention have been described with reference to numerous specific details, which may vary between implementations. Therefore, the sole and exclusive indication of what are the claimed embodiments of the invention and what the applicant intends as the claimed embodiments of the invention is the set of claims issuing from this application, such claims issuing in the specific form, including any subsequent corrections. Any definitions expressly set forth herein for terms contained in such claims will determine the meaning of such terms used in the claims. Therefore, limitations, elements, properties, features, advantages or attributes that are not expressly recited in a claim should not limit the scope of such claim in any way. Therefore, the specification and drawings are to be viewed in an illustrative rather than a restrictive sense.

[0252] Various aspects of the present invention may be understood from the following enumerated example embodiments (EEE):

[0253] EEE 1. A method comprising:

[0254] generating a backward shaping map initially as an inverse of a forward shaping map, wherein the forward shaping map is used to generate a forward shaping map to generate a forward shaped image of a first dynamic range from a source image of a second dynamic range, wherein the first dynamic range is lower than the second dynamic range, wherein the forward shaping map comprises luma codewords of samples of the second dynamic range, chroma codewords of samples of the second dynamic range, luma codewords of a content map of the first dynamic range corresponding to the luma codewords of the samples of the second dynamic range, and chroma codewords of a content map of the first dynamic range corresponding to the chroma codewords of the samples of the second dynamic range;

[0255] updating the backward shaping map by replacing luma codewords of the content map with forward shaped luma codewords generated by applying a luma forward map to luma codewords of samples of the second dynamic range, wherein the luma forward map is constructed from the forward shaping map;

[0256] generating a backward shaping map for creating a reconstructed image of the second dynamic range from the forward shaped image of the first dynamic range using the backward shaping map and the luminance forward map;

[0257] The forward shaped picture is encoded in a video signal together with picture metadata specifying the backward shaping map.

[0258] EEE 2. The method of EEE 1, wherein a recipient device of the video signal applies the backward shaping mapping to the forward shaped image to create a reconstructed image of the second dynamic range. EEE 2. The method of EEE 1, wherein the recipient device of the video signal applies the backward shaping mapping to the forward shaped image to create a reconstructed image of the second dynamic range.

[0259] EEE 3. The method according to EEE 1 or 2, further comprising:

[0260] determining available computing resources in an end-to-end video delivery pipeline;

[0261] using said available computational resources to determine a specific set of trade-off options between the quality of the reconstructed image of said second dynamic range at a decoder side and the computational complexity of generating said backward shaping map at an encoder side;

[0262] A specific set of image processing operations is performed according to the specific set of tradeoff options to generate the backward shaping map.

[0263] EEE 4. The method as described in EEE 2 or 3 also includes: causing a display image to be derived from the reconstructed image and rendered using a recipient device of the video signal.

[0264] EEE 5. The method as described in any one of EEE 1-4, further comprising:

[0265] The backward shaping map is updated by replacing chroma codewords of the content map with forward shaped chroma codewords generated by applying a multivariate multiple regression (MMR) chroma forward map to the sampled luminance and chroma codewords of the second dynamic range, wherein the MMR chroma forward map is constructed from the forward shaping map.

[0266] EEE 6. The method as described in any one of EEE 1-5, further comprising:

[0267] The backward shaping map is updated by replacing the sampled chroma codewords with desaturated chroma codewords.

[0268] EEE 7. The method of EEE 6, wherein the desaturated chroma codeword is generated by applying a desaturation function to the sampled chroma codeword, and wherein the desaturation function is constructed as a ratio between a modified luma backward shaping map and an original luma backward shaping map. ...

[0269] EEE 8. The method as described in any one of EEE 1-7, further comprising:

[0270] A backward lookup table modification is caused to be applied to reduce banding artifacts in the reconstructed image.

[0271] EEE 9. The method of any one of EEEs 1-8, wherein at least one of the backward mapping table and the forward mapping table represents a three-dimensional mapping table (3DMT) dynamically constructed at least in part from the source image and the forward shaped image.

[0272] EEE 10. The method as described in any one of EEE 1-9, wherein the brightness forward mapping is represented by a brightness lookup table.

[0273] EEE 11. The method as recited in any one of EEE 1-10, wherein the reconstructed image of the second dynamic range approximates the source image of the second dynamic range. EEE 12. The method as recited in any one of EEE 1-11, wherein the video signal represents a single-layer backward compatible video signal. EEE 13. The method as recited in any one of EEE 1-13, wherein the video signal represents a single-layer backward compatible video signal.

[0274] EEE 13. A method comprising:

[0275] decoding a forward shaped image of a first dynamic range from the video signal;

[0276] decoding image metadata including a backward shaping map from the video signal;

[0277] wherein the backward shaping map is generated by an upstream image processing device from a backward shaping map table and a brightness forward map;

[0278] wherein the backward shaping map is initially generated by the upstream image processing device as the inverse of a forward shaping map, the forward shaping map generating the brightness forward map;

[0279] wherein the brightness codeword of the content mapping in the backward shaping mapping table is updated using the brightness codeword of the forward shaping;

[0280] wherein the forward shaped luma codeword is generated by applying the luma forward mapping to sampled source luma codewords in the source image;

[0281] applying the backward shaping map to the forward shaped image to generate a reconstructed image;

[0282] A display image derived from the reconstructed image is caused to be rendered using a display device.

[0283] EEE 14. A computer system configured to perform any one of the methods described in EEE 1-13.

[0284] EEE 15. An apparatus comprising a processor and configured to perform any one of the methods described in EEE 1-13.

[0285] EEE 16. A non-transitory computer-readable storage medium having computer-executable instructions stored thereon for performing a method according to any of the methods described in EEE 1-13 using one or more processors. ...

Claims

1. A method for processing an image, comprising: generating a backward shaping map initially as an inverse of a forward shaping map, wherein the forward shaping map is used to generate a forward shaping map to generate a forward shaped image of a first dynamic range from a source image of a second dynamic range, wherein the first dynamic range is lower than the second dynamic range, wherein the forward shaping map comprises luma codewords of the second dynamic range and chroma codewords of the second dynamic range for samples from the source image, and luma codewords of the first dynamic range and chroma codewords of the first dynamic range for corresponding samples from a reference image of the first dynamic range, the reference image of the first dynamic range being generated by color grading the source image, wherein the number of samples from the source image is reduced compared to the number of pixels in the source image; updating the backward shaping map by replacing luma codewords of the first dynamic range in the backward shaping map with forward shaped luma codewords generated by applying a luma forward shaping function to luma codewords of the second dynamic range, wherein the luma forward shaping function is constructed from the forward shaping map using cumulative density function matching; constructing a luma backward shaping function from the luma forward shaping function, the luma backward shaping function mapping luma codewords of the first dynamic range to luma codewords of the second dynamic range; modifying a portion of the luma backshaping function above a particular luma codeword of the first dynamic range based on a ratio between an estimated maximum luma range that can be represented without showing banding artifacts and an actual luma range representable by the luma backshaping function; updating the backward shaping map by replacing the chroma codewords of the second dynamic range with desaturated chroma codewords in the backward shaping map, wherein the desaturated chroma codewords are generated by applying a desaturation function to the chroma codewords of the second dynamic range, wherein the desaturation function is constructed based on a ratio between a modified luma backward shaping function and an original luma backward shaping function; generating a backward shaping map for creating a reconstructed image of the second dynamic range from the forward shaped image of the first dynamic range using the backward shaping map and the luminance forward shaping function; The forward shaped picture is encoded in a video signal together with picture metadata specifying the backward shaping map.

2. The method of claim 1, further comprising: determining available computing resources in an end-to-end video delivery pipeline; using said available computational resources to determine a specific set of trade-off options between the quality of the reconstructed image of said second dynamic range at a decoder side and the computational complexity of generating said backward shaping map at an encoder side; A specific set of image processing operations is performed according to the specific set of tradeoff options to generate the backward shaping map.

3. The method according to claim 1 or 2, further comprising: A display image is caused to be derived from the reconstructed image and rendered using a recipient device of the video signal.

4. The method according to claim 1 or 2, further comprising: The backward shaping mapping table is updated by replacing the chroma codewords of the first dynamic range with forward shaped chroma codewords in the backward shaping mapping table, wherein the forward shaped chroma codewords are generated by applying a multivariate multivariate regression chroma forward map to the luma and chroma codewords of the second dynamic range, wherein the multivariate multivariate regression chroma forward map is constructed from the forward shaping mapping table.

5. The method according to claim 1 or 2, further comprising: A backward lookup table modification is caused to be applied to reduce banding artifacts in the reconstructed image.

6. The method of claim 1 or 2, wherein at least one of the backward shaping mapping table and the forward shaping mapping table represents a three-dimensional mapping table dynamically constructed at least in part from the source image and the forward shaped image.

7. The method of claim 1 or 2, wherein the brightness forward shaping function is represented by a brightness lookup table.

8. The method of claim 1 or 2, wherein the reconstructed image of the second dynamic range approximates the source image of the second dynamic range.

9. The method of claim 1 or 2, wherein the video signal represents a single layer backward compatible video signal.

10. The method of claim 1 or 2, wherein a recipient device of the video signal applies the backward shaping mapping to the forward shaped image to create a reconstructed image of the second dynamic range.

11. A method for decoding a video signal, comprising: decoding a forward shaped image of a first dynamic range from a video signal generated in the method of any one of claims 1 to 10, the forward shaped image of the first dynamic range being generated from a source image of a second dynamic range by a forward shaping map, the forward shaping map being generated from a forward shaping map table, wherein the forward shaping map table comprises luma codewords of the second dynamic range and chroma codewords of the second dynamic range for samples from the source image and luma codewords of the first dynamic range and chroma codewords of the first dynamic range for corresponding samples from a reference image of the first dynamic range, the reference image of the first dynamic range being generated by color grading the source image, wherein the number of samples from the source image is reduced compared to the number of pixels in the source image; decoding image metadata including a backward shaping map from the video signal; applying the backward shaping map to the forward shaped image to generate a reconstructed image; A display image derived from the reconstructed image is caused to be rendered using a display device.

12. A computer system configured to execute the method according to any one of claims 1 to 11.

13. An apparatus comprising a processor and configured to perform the method of any one of claims 1-11.

14. A non-transitory computer-readable storage medium having computer-executable instructions stored thereon for executing the method according to any one of claims 1-11 using one or more processors.

Citation Information

Patent Citations

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

    US10032262B2

  • Encoding and decoding reversible production-quality single-layer video signals

    US10701375B2

  • Reshaping curve optimization in HDR coding

    US20180007356A1

  • Signal reshaping approximation

    US20180020224A1

  • Inverse luma / chroma mappings with histogram transfer and approximation

    US20180098094A1