Tensor Product B-Spline Prediction for HDR Video in Mobile Applications
The tensor product B-spline predictor with a fast 3D-LUT construction method addresses the computational limitations of mobile devices for HDR image reconstruction, providing efficient and high-quality HDR image rendering with reduced power consumption and backward compatibility.
Patent Information
- Application Number
- JP2024515533
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-13
- Filing Date
- 2022-09-08
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2042-09-08
AI Technical Summary
Mobile devices lack the computational resources to efficiently reconstruct high dynamic range (HDR) images, facing challenges in power consumption and frame drops due to the lack of dedicated hardware accelerators, and existing prediction methods do not adequately support wide color gamut without significant computational overhead.
Implement a tensor product B-spline (TPB) predictor with a fast 3D-LUT construction method that reduces computational complexity by using static mapping and optimized metadata, allowing for efficient HDR image reconstruction on mobile devices while maintaining backward compatibility with legacy systems.
The proposed method significantly reduces computational time for HDR image reconstruction on mobile devices, achieving near-production quality HDR images with reduced power consumption and improved video quality, while ensuring compatibility with both modern and legacy display devices.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims the benefit of priority to U.S. Provisional Patent Application No. 63 / 242,416, filed September 9, 2021, U.S. Provisional Patent Application No. 63 / 255,057, filed October 13, 2021, and European Patent Application No. 21202447.5, filed October 13, 2021, each of which is incorporated by reference in its entirety.
[0002] The present invention relates generally to images, and more specifically, to image prediction for high dynamic range (HDR) imaging in mobile applications. [Background technology]
[0003] As used herein, the term "dynamic range" (DR) may relate to the ability of the human visual system (HVS) to perceive a range of intensities (e.g., luminance, luma) in an image (e.g., from darkest gray (black) to brightest white (highlight)). In this sense, DR relates to scene-referred intensities. DR may also relate to the ability of a display device to reasonably or approximately render an intensity range having a certain width. In this sense, DR relates to display-referred intensities. Anywhere in this specification, the term may be used in either sense (e.g., interchangeably) unless a particular meaning is specifically and explicitly specified.
[0004] In this specification, the term high dynamic range (HDR) refers to a DR width that spans 14 to 15 orders of magnitude in the human visual system (HVS). In practice, the DR that humans can simultaneously perceive may be somewhat truncated for HDR.
[0005] In practice, an image has one or more color components (e.g. luma Y and chroma Cb and Cr), each represented with n bits of precision per pixel (e.g. n=8). With linear or gamma luminance encoding (e.g. gamma encoding), images with n≦8 (e.g. color 24-bit JPEG images) are considered standard dynamic range, and images with n>8 are considered enhanced or high dynamic range. And / or HDR images can also be stored and distributed using high precision (e.g. 16-bit) floating point formats, such as the OpenEXR file format developed by Industrial Light and Magic.
[0006] Most consumer desktop displays today have a resolution of 200cd / m 2 ~300cd / m 2 or nits of brightness. Most consumer HDTVs are in the 300 to 500 nits range, with newer models reaching 1000 nits (cd / m 2 ). Thus, such conventional displays are representative of low dynamic range (LDR), also referred to as standard dynamic range (SDR), with respect to HDR. As the availability of HDR content increases due to advances in both capture devices (e.g., cameras) and HDR displays (e.g., the PRM-4200 Professional Reference Monitor from Dolby Laboratories), HDR content can be color graded and displayed on HDR displays that support a higher dynamic range (e.g., 1000 nits to 5000 nits or more).
[0007] As used herein, the term "reshaping" or "remapping" refers to the process of mapping a digital image from its original bit depth and original codeword distribution or representation (e.g., gamma, PQ, or HLG, etc.) to an image of the same or different bit depth and different codeword distribution or representation, sample-by-sample or codeword-by-codeword. The reconstruction allows for improved compressibility or improved image quality at a fixed bit rate. For example, but not by way of limitation, forward reconstruction can be applied to 10-bit or 12-bit PQ coded HDR video to improve coding efficiency in 10-bit video coding architectures. At the receiver, after decompressing the received signal (which may or may not be reconstructed), the receiver can apply an inverse (or backward) reconstruction function to restore the signal to its original codeword distribution and / or to achieve a higher dynamic range.
[0008] In HDR coding, image prediction (or reconstruction) allows an HDR image to be reconstructed using a baseline standard dynamic range (SDR) image and a set of prediction coefficients that represent a backward reconstruction function. Legacy devices can simply decode the SDR image, but HDR displays can reconstruct the HDR image by applying the backward reconstruction function to the SDR image. In video coding, such image prediction can be used to improve coding efficiency while maintaining backward compatibility. Summary of the Invention
[0009] Reconstructing HDR video on mobile devices poses additional challenges, as most mobile devices lack the specialized hardware required to accelerate computationally intensive operations while still supporting the desired level of quality expected in HDR imaging. As recognized by the inventors, improved techniques for efficient image prediction in mobile applications are desirable.
[0010] The approaches described in this section could be pursued, but not necessarily approaches that have been previously conceived or pursued. Thus, unless otherwise specified, it should not be assumed that any of the approaches described in this section qualify as prior art by virtue of their inclusion in this section. Similarly, it should not be assumed, based on this section, that problems identified with one or more approaches have been recognized in any prior art, unless otherwise specified. OR
[0011] An embodiment of the present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference symbols refer to similar elements and in which: [Brief description of the drawings]
[0012] [Figure 1A] FIG. 1 illustrates an example single-layer decoder for HDR data using image prediction. [Figure 1B] FIG. 1 illustrates an example HDR encoder using image prediction. [Figure 2A] FIG. 2 illustrates an exemplary process flow for fast tensor-product B-spline (TPB) prediction according to an embodiment of the present invention. [Figure 2B] FIG. 2 illustrates an exemplary process flow for fast tensor product B-spline (TPB) prediction according to an embodiment of the present invention. [Figure 3A] FIG. 2 illustrates an exemplary temporary storage array required for fast TPB prediction according to an embodiment of the present invention. [Figure 3B] FIG. 2 illustrates an exemplary temporary storage array required for fast TPB prediction according to an embodiment of the present invention. [Figure 3C] FIG. 2 illustrates an exemplary temporary storage array required for fast TPB prediction according to an embodiment of the present invention. [Figure 4] FIG. 1 illustrates an example of backward-compatible processing of metadata supporting both legacy and TPB-based predictions, according to an embodiment of the present invention. [Diagram 5]FIG. 1 illustrates an exemplary process for parsing a legacy 64-bit parameter field used to communicate bit depth information in a dual-layer HDR bitstream to extract both bit depth information and new syntax parameters for TPB processing, according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] This specification describes image prediction techniques for efficient coding of images in mobile applications. In the following description, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent that the present invention may be practiced without these details. In other instances, detailed descriptions of well-known structures and devices are not described in detail so as not to unnecessarily clutter, obscure, or obfuscate the description of the present invention.
[0014] overview The exemplary embodiment described herein relates to an image prediction technique. In one embodiment, in an apparatus having one or more processors, the processor receives an input image encoded in an input dynamic range (e.g., SDR) and metadata for the input image, and generates a mapping function that maps the input image from the input dynamic range to an output image in an output dynamic range (e.g., HDR). The processor parses a first metadata parameter to identify whether a second metadata parameter exists. If the second metadata parameter exists, the processor generates the mapping function using a non-backward predictor (e.g., a tensor product B-spline (TPB) predictor), otherwise, the processor generates the mapping function using a legacy backward compatible predictor, and applies the mapping function to the input image to generate an output image.
[0015] In another embodiment, to generate the mapping function using a tensor product B-spline (TPB) predictor, the processor: accessing TPB metadata in the metadata of the input image, the TPB metadata including TPB-related prediction parameters; generating a three-dimensional lookup table (3D-LUT) that maps selected triplets of pixel values from the input dynamic range to corresponding output triplets of pixel values in the output dynamic range based on the TPB metadata; TPB metadata is The number of knot points in each of the three dimensions of the luma channel and the two chroma channels (T); polynomial order (l) values in each of the three dimensions for the luma channel and the two chroma channels; Prediction coefficients for the luma channel and two chroma channels; a luma channel basis flag and two chroma channel basis flags that determine a correlation between prediction coefficients for the luma channel and the two chroma channels; Including, Generating a 3D-LUT is If all base flags are 0, Generate 9 temporary arrays, 3 for each color channel, Otherwise, if the luma channel basis flag is 0 and one of the two chroma channel basis flags is 1, then generating three temporary arrays for the luma channel and three temporary arrays for the two chroma channels; Otherwise, if the luma channel basis flag is 0 and both chroma channel basis flags are 1, generating three temporary arrays to be used for all color channels; generating a 3D-LUT for each color channel based on a product of three temporary arrays for that color channel; Further includes.
[0016] Exemplary HDR Coding System 1A shows an exemplary single-layer decoder architecture using image prediction, which may be implemented using one or more computing processors in a downstream video decoder. FIG. 1B shows an exemplary HDR encoder architecture, which may be implemented using one or more computing processors in one or more upstream video encoders.
[0017] Under this framework, given a reference HDR content 120, a corresponding SDR content 125 (i.e., content that represents the same image as the HDR content, but that is color graded and represented in standard dynamic range) is encoded by an upstream encoding device implementing an encoder-side codec architecture and transmitted as a single layer of a coded video signal 144. The SDR content 144 is received as a single layer of a video signal and decoded by a downstream decoding device. Predictive metadata (e.g., forward or backward reconstruction parameters) 152 are also encoded and transmitted as a video signal together with the SDR content, so that an HDR display device can reconstruct the HDR content based on the SDR content 144 and the received metadata 152.
[0018] 1B, in one embodiment, given input HDR data 120, SDR data 125 can be generated from the HDR data via tone mapping, forward reconstruction, manually (during color grading), or via a combination of techniques known in the art. In another embodiment, given reference SDR data 125, HDR data 120 can be generated from the SDR data via inverse tone mapping, backward reconstruction, manually (during color grading), or via a combination of techniques known in the art. Compression block 140 (e.g., an encoder implemented according to any known video coding algorithm such as AVC, HEVC, AVI, etc.) compresses / encodes SDR image 125 in a single layer 144 of the coded bitstream.
[0019] The metadata 152 generated by unit 150 can be multiplexed as part of the video signal 144, for example, as supplemental enhancement information (SEI) messaging, or as part of its own messaging. Thus, the metadata 152 can be generated or pre-generated at the encoder side to take advantage of powerful computing resources and offline encoding flows available at the encoder side (including, but not limited to, content-adaptive multi-pass, look-ahead computation, inverse luma mapping, inverse chroma mapping, CDF-based histogram approximation and / or forwarding, etc.).
[0020] The encoder architecture of FIG. 1B can be used to avoid directly encoding the input HDR image 120 into a coded / compressed HDR image in the video signal, and instead use the metadata 152 in the video signal to enable a downstream decoding device to reconstruct the SDR image 125 (encoded in the video signal) into a reconstructed HDR image 167 that is identical to or closely / optimally approximating the reference HDR image 120.
[0021] In some embodiments, as shown in FIG. 1A, a video bitstream 144 having a compressed SDR image and metadata 152 having prediction parameters generated by an encoder are received as input at the decoder side of the codec framework. A decompression block 160 decompresses / decodes the compressed video data in the single layer 144 of the video signal into a decoded SDR image 162. Decompression 160 generally corresponds to the inverse of compression 140. The decoded SDR image 162 may be the same as the SDR image 125, which may be subject to quantization errors in compression block 140 and decompression block 160, but which may be optimized for an SDR display device. The decoded SDR image 162 may be output as an output SDR video signal (e.g., via an HDMI interface, via a video link, etc.) to be rendered on an SDR display device.
[0022] In addition, a prediction block 165 (which may also be referred to as a "composer") applies metadata 152 from the input bitstream to the decompressed data 162 to generate a reconstructed HDR image 167. In some embodiments, the reconstructed image represents a production-quality or near-production-quality HDR image, such as identical to or closely / optimally approximating the reference HDR image 120. The reconstructed image 167 may be output as an output HDR video signal (e.g., via an HDMI interface, via a video link, etc.) to be rendered on an HDR display device.
[0023] In some embodiments, display management operations specific to an HDR display device may be performed on the reconstructed image 167 as part of an HDR image rendering operation that renders the rear reconstructed image 167 on the HDR display device.
[0024] 1A and 1B show an example embodiment of a single-layer HDR encoding and decoding system. The methods and systems described herein are also applicable to multi-layer and scalable systems, where HDR content is transmitted using a base layer and one or more enhancement layer bitstreams, and at the decoder, information from the enhancement layer is added back to the base layer.
[0025] HDR Support for Mobile Systems Playback of HDR content on mobile devices (e.g., mobile phones, tablets, etc.) poses additional challenges because mobile devices are limited in terms of computational power, storage, and battery life. For example, most mobile devices, unlike HDR-enabled TVs or set-top boxes, do not have a dedicated hardware accelerator to reconstruct HDR content. HDR playback on mobile devices relies primarily on software running on general-purpose processors. However, without hardware support, power consumption and potential picture frame drops become serious issues for playback and perceived visual quality. To mitigate these effects, rather than adjusting the SDR-HDR mapping at every frame, a more "static" (e.g., scene-based) SDR-HDR mapping is preferred. This is because such mapping can be done using a "static" 3D lookup table (LUT), thereby avoiding recalculating the mapping LUT for every video frame. However, existing legacy schemes (e.g., Reference [1]) that rely on luma prediction using 8-piece polynomials and chroma prediction using multi-color channel multiple regression (MMR) predictors (Reference [2]) cannot provide static mappings sufficient to cover wide color gamuts (WCGs), especially those close to ITU-R Rec.BT.2020. Tensor product B-spline (TPB)-based prediction can achieve this WCG goal, but support for TPB metadata may not be possible in existing legacy metadata protocols for HDR imaging (e.g., current profiles of Dolby Vision). Given the backward compatibility requirements, an exemplary embodiment describes a mobile-optimized profile in which the encoded bitstream includes two different prediction methods using a single base layer: a) the proposed new TPB prediction method, and b) the legacy composer-based method. Before providing a detailed description of the proposed profile, the next section provides an overview of TPB-based prediction and a novel embodiment of fast TPB-based decoding.
[0026] Tensor product B-splines Tensor product B-splines (TPBs) can be used to perform prediction in HDR composer pipelines. B-splines, or basis splines, are functions that can approximate a given one-dimensional curve using polynomials with continuity constraints at knot points. TPBs multiply multiple B-spline functions together to estimate higher dimensional curves. Their accuracy in predicting complex curves while maintaining smooth connectivity at knot points makes TPBs a powerful tool for forward and backward reconstruction in high dynamic range processing (Reference [3]).
[0027] As shown in FIG. 1B, during encoding, HDR pixels are mapped to base layer (BL) pixels in a forward reconstruction process (125). After subsequent compression and decompression, these base layer pixels are mapped to HDR pixels during backward reconstruction. To facilitate backward reconstruction at the decoder side, metadata including backward reconstruction coefficients is transmitted along with the compressed base layer. TPB-based decoding provides much better results compared to existing techniques, but at the expense of much higher computational complexity. Later, an embodiment of a fast TPB decoding process is described that achieves 100 times speedup compared to normal TPB decoding. Specifically, an embodiment is described that calculates values of 3D-LUT (three-dimensional lookup table) entries used in the decoding process.
[0028] A Full-HD frame contains about 2M pixels, and an Ultra-HD frame has about 8M pixels. Predicting each of these pixels by directly applying the backward reconstruction coefficients is not a practical solution for time-sensitive applications. A faster method is to build a 3D-LUT that stores the backward reconstruction values at sampling positions within the input pixel value range. Then, an interpolation technique is used to find the backward reconstruction values for pixels that are not present in the 3D-LUT. For example, but not by way of limitation, in an exemplary use case, these 3D-LUTs are currently typically sized 17x17x17 or 33x33x33. However, smaller or larger LUTs can be selected depending on the desired accuracy of the reconstruction and / or the available processing power. This amounts to about 5K or about 36K pixel entries. The 3D-LUT significantly reduces the time complexity of any backward reconstruction process (TPB-based or MMR-based) by reducing the total number of predictions from 2M or 8M to 5K or 36K for each frame. The proposed method further reduces the time complexity of constructing a TPB-based 3D-LUT by taking into account the characteristics of the TPB function. Experimental results show that the time required to construct a 3D-LUT using the fast method is 1 / 100 of that required to construct a 3D-LUT using the traditional method.
[0029] Fundamentals of TPB From reference [4], a function f:[a,b]→R is a knot a=k0<... <k T-1 = b. 1. f(z) is continuously differentiable (l-1) times. The special case l=1 corresponds to f(z) being continuous (but not differentiable). For l=0, no smoothness requirement is specified for f(z). 2. f(z) is the interval [k t ,k t+l ) is a polynomial of degree l on
[0030] B-spline basis functions are constructed from piecewise polynomials that are smoothly fused at knots to achieve the desired smoothness constraints. A B-spline basis function consists of (l+1) polynomial parts of degree l combined in a (l-1)-times continuously differentiable manner. Using a complete basis, a function f(z) can be represented by a linear combination of D=T+l-1 basis functions, where T is the number of knots.
number
[0031] Note that B-splines are only positive on intervals based on l+2 knots. A B-spline of degree 0 is defined as follows:
number
number
[0032] Interior knots k0, k1,..., k T-l In addition to the above, we need 2l exterior knots outside [a,b] (as exterior knots). For example, for T = 8 knots, we need D = 9 basis functions and 9 coefficients {m t} is determined. In the following subsections, we demonstrate the cross-channel TPB coefficient estimation process for luma and chroma backward mapping.
[0033] TPB cross-color channel predictor Assume there are P pixels in a picture. Triplets Let JPEG2024536996000005.jpg852 denote the normalized (e.g., in [0,1]) Y, C0, and C1 values of the i-th pixel of the j-th SDR (base layer) and HDR frames, respectively. Take the prediction of the luma channel as an example. For a single-channel B-spline predictor, From JPEG2024536996000006.jpg84 We need to predict JPEG2024536996000007.jpg84. Using the selected set of knot points, we can find the required D y =T+l-1 basis functions Construct JPEG2024536996000008.jpg88. Coefficients Prediction using {JPEG2024536996000009.jpg87} JPEG2024536996000010.jpg84 is as follows.
number
[0034] Tensor Product B-Spline (TPB) for luma and both chroma channels Using information from JPEG2024536996000012.jpg820, we can better predict the luma. We need three independent basis functions in each dimension. In this case, along the Y, C0 and C1 dimensions: JPEG2024536996000013.jpg has 528 basis functions. y , t c0 , and t c1 Denote by Y, C0 and C1 the knot point indices in each of the dimensions. Given a set of knot points in three dimensions, a set of three individual basis functions: We get JPEG2024536996000014.jpg861. A tensor product B-spline basis function predicting the luma channel can be constructed by multiplying all three channels together as shown below:
number
number
[0035] To simplify the representation, we use the 3D index (i.e., t y , t c0 , and t c1 ) can be vectorized into a 1D index (i.e., t). For the basis functions,
number
number
number
number
[0036] The prediction can be expressed as follows:
number
number
[0037] The optimal solution for JPEG2024536996000024.jpg811 is obtained by minimizing the least squared error criterion.
number
number
[0038] Similarly, we can construct tensor product B-spline predictors for the two chroma channels. Assume we have a basis function set of 527 (where c can be c0 or c1) for JPEG2024536996000028.jpg. Given a set of knot points in 3 dimensions, we can calculate a set of three individual basis functions: The result is JPEG2024536996000029.jpg861. The tensor product basis functions for the chroma channels are:
number
number
number
number
number
number
number
[0039] The knot point locations may be uniformly or non-uniformly distributed. A uniform distribution simplifies the decoding process and reduces the amount of metadata transmitted to the decoder. Instead of the locations of all knot points, only the total number of knot points is needed. In one embodiment, assuming uniformly distributed knot points, the TPB metadata consists of the following: TPB parameters The number of knot points in each of the three dimensions of the three channels, T The polynomial order l in each of the three dimensions for the three channels TPB coefficient Luma channel coefficients JPEG2024536996000040.jpg811 Chroma C0 channel coefficient JPEG2024536996000041.jpg812 Chroma C1 channel coefficient JPEG2024536996000042.jpg812 Ancillary Data These parameters may not be directly related to the tensor product B-spline representation, but they aid in the TPB-based predictions, and are discussed in more detail below. Zero coefficient array: Φ y , Φ c0 , Φ c1 ;Indicates which of the TPB coefficients are zero (allowing for using a single bit per coefficient vs. multiple bits per coefficient) to reduce transmission overhead. Base flags: JPEG2024536996000043.jpg847 ( For JPEG2024536996000044.jpg817, the TPB parameters and zero coefficient array are the same as the previous channel) ( For JPEG2024536996000045.jpg817, the TPB parameters and zero coefficient arrays are different) Coefficient Data Type Clipping value present flag: JPEG2024536996000046.jpg58 (=1 low / high input clipping values are used) (=0 low / high input clipping values are not used) Low Input Clipping Value: JPEG2024536996000047.jpg522 High Input Clipping Value: JPEG2024536996000048.jpg524 Examples of TPB parameters present in the metadata are shown in Table 1. Table 1: Examples of TPB parameters for TPB-related metadata [Table 1]
[0040] This metadata is sent to the decoder along with the compressed base layer. The rest of the TPB parameters, such as the knot points and the knot point distance h, are derived from the above parameters. For simplicity, assuming a uniform distribution of the knot points in the formula, the superscripts and subscripts of the symbols can be omitted. Then, for T knot points, the distance h between the knot points is calculated as follows:
number
[0041] Knot point {k t} may form a 1D array that can be derived from the TPB parameters in the metadata as follows:
number
[0042] TPB Decryption Process In one embodiment, as mentioned above, it is important to construct a 3D-LUT to store the mapping from SDR (base layer) to HDR domain for the sample pixels.
number
[0043] The metadata received from the composite bitstream is parsed to obtain the TPB parameters, coefficients and auxiliary data. Then, the 3D-LUT can be constructed using two methods. 1. Normal method: For each 3D-LUT index, the TPB parameters generate a basis function, and the TPB coefficients use the basis function to calculate the output pixel value. 2. Fast Method: Frequently used values of the basis functions are stored in one or more 2D arrays. These arrays are then used together with the TPB coefficients to compute the output pixel values. Both methods are described in the following subsections. In the following, we assume that the TPB knot points are uniformly distributed. The TPB parameters are tabulated as follows, where every dimension in each channel is represented by its corresponding knot point array {k t}, knot point distance h, and TPB degree l. Table 2: TPB parameters for different channels and dimensions used in TPB-based prediction [Table 2]
[0044] Conventional method for TPB-based 3D-LUT construction When the knot points are uniformly distributed, including the exterior knot points, the B-spline basis functions can be represented by a linear combination of truncated polynomials. The l-th order truncated polynomial is defined as follows:
number
[0045] A.1st order The t-th B-spline basis function of order 1 can be expressed as follows:
number
[0046] B.Secondary The t-th B-spline basis function of degree 2 can be expressed as follows:
number
[0047] C.3rd order The t-th B-spline basis function of degree 3 can be expressed as follows:
number
[0048] Having a truncated polynomial avoids the need to apply recursive B-spline basis functions at the decoder side. Note that recursive B-spline representations are not suitable for hardware implementation. Recursive expressions take more time and memory space to compute. A truncated polynomial can save computations (by trading flexibility to have "non-uniform" knot points). A single channel B t The global uniform knot point TPB basis functions for are written as follows:
number
[0049] The above single-channel basis functions are multiplied by three-dimensional B-spline functions to produce cross-channel TPB basis functions. It can be extended to JPEG2024536996000066.jpg58. Take luma channel prediction as an example. Using JPEG2024536996000067.jpg844 as the knot points of dimensions Y, C0, and C1 of the luma channel predictor, the distance between each two consecutive knot points is h, respectively. y,y , h y,c0 , and h y,c1 The orders of the TPB in these three dimensions are l y,y , l y,c0 , and l y,c1 Then, the following equation is the cross-channel TPB basis function for the luma channel predictor: gives JPEG2024536996000068.jpg810.
number
[0050] The t-th TPB basis function above is formed by multiplying the p-th, q-th, and r-th B-spline functions, one for each of the three dimensions Y, C0, and C1. Each of the JPEG2024536996000070.jpg816 will have their respective low clipping values received from the metadata as shown here, i.e. JPEG2024536996000071.jpg522, and high clipping values, i.e. Note that the image is clipped using JPEG2024536996000072.jpg524.
number
[0051] clip3(w,w min ,w max ) function clips the values of w to the range [w min ,w max In other words, w <w min If w=w min Instead, w>w max If w=w max Otherwise, the value of w is unchanged. Clipped SDR pixel Given JPEG2024536996000074.jpg818, we use the luma channel TPB coefficients to find the HRD value Predicting JPEG2024536996000075.jpg84.
number
number
number
[0052] For chroma channels, as knot points for dimensions Y, C0, and C1 for chroma c=c0,c1 channel predictor, The distance between each two consecutive knot points is h c,y , h c,c0 , and h c,cl The orders of the TPB in these three dimensions are l c,y , l c,c0 and l c,c1 Then, the following equation is used to calculate the cross-channel TPB basis functions of the chroma channel predictors: gives JPEG2024536996000083.jpg810.
number
number
[0053] After all three predicted HDR values are obtained, after clipping to the valid signal range, they are applied to the 3D-LUT It will be saved as JPEG2024536996000087.jpg58. For each entry in JPEG2024536996000088.jpg58, the corresponding HDR pixel JPEG2024536996000089.jpg819 is predicted using three cross-channel TPB predictors. The entire process of computing the truncated polynomial, B-spline function, TPB basis functions and TPB prediction is repeated for every single entry in the 3D-LUT. This makes the process excessively slow for time-sensitive applications, but many of the calculations are repeated many times for each entry in the 3D-LUT. These repeated operations can be avoided by storing their values in an array and reusing these stored values instead of computing them every time. This saves a lot of computation time, as we will see in the next subsection.
[0054] A fast method for TPB-based 3D-LUT construction To speed up the process of predicting HDR pixels from base layer pixels for 3D-LUT entries, in one embodiment, the faster method uses a small amount of extra memory to store intermediate results that are frequently used in the prediction process. Without loss of generality, consider the luma channel predictor as an example. The TPB basis functions for the cross-channel luma predictor are given by:
number
[0055] Here, the TPB basis function formula for luma prediction can be expressed in the form of an array as follows:
number
number
number
[0056] When the TPB prediction is calculated using the fast method, it takes 1089 B-spline operations to calculate all the luma HDR values in the 3D-LUT. In contrast, the regular method requires 47M B-spline operations to predict all the HDR luma values in the 3D-LUT.
[0057] The following formulas are the cross-channel TPB basis functions of the chroma channel predictors: gives JPEG2024536996000102.jpg810.
number
number
[0058] For the chroma channels, the number of B-spline operations to predict all HDR chroma values for a 33x33x33 3DLUT using the above settings is 1089. The number of B-spline operations can be further reduced if the TPB parameters in the metadata for two or more channels are the same. For the following discussion, the set of TPB parameters present in the metadata for channel c=y,c0,c1 is
number
[0059] These scenarios are handled by the base flag in the metadata. JPEG2024536996000106.jpg846. An exemplary flow chart of these three scenarios is shown in FIG. 2A. Hereinafter, without loss of generality, it is assumed that the clipping values of all three channels are different in these three scenarios.
number
[0060] Scenario 1: The luma TPB parameters and chroma TPB parameters are different. This is the default worst case scenario where all channels have different TPB parameters. Mathematically, It can be expressed as JPEG2024536996000108.jpg523, or more specifically,
number
[0061] To estimate the number of B-spline operations, JPEG2024536996000112.jpg1081. These example values are similar when all channels have the same TPB parameters, but using these values helps to make a fair comparison between the scenarios. There are 1089 B-spline operations for each channel. The total number of B-spline operations in this scenario to build a complete 3D-LUT of size 33x33x33 is 1089x3=3267.
[0062] Scenario 2: The chroma TPB parameters are the same, but the luma TPB parameters are different. This scenario occurs when the chroma channels usually have the same TPB parameters and the luma channel has different parameters, i.e. JPEG2024536996000113.jpg523, which is quite common. The corresponding formula is shown below.
number
[0063] This second scenario is handled by the base flag This can also be shown through the RPU syntax with JPEG2024536996000115.jpg854. Humans are more sensitive to luma changes than chroma changes. Therefore, luma is predicted by a more complex TPB basis function and chroma channels are predicted by a simpler function. The luma channel has a different 2D array, but the chroma channels can share the same set of 2D arrays. Table 4 shows the 2D arrays in this scenario and Figure 3B shows an example diagram. Table 4: Array storing B-spline functions for scenario 2 [Table 4]
[0064] The base flag is We can still use the second scenario when JPEG2024536996000117.jpg854, but in practice this scenario is fairly rare and uncommon. To estimate the number of B-spline operations, Assume JPEG2024536996000118.jpg1081. There are 1089 B-spline operations for each channel. The total number of B-spline operations in this scenario to build a complete 3DLUT of size 33x33x33 is 1089x2=2178.
[0065] Scenario 3: The luma TPB parameters and chroma TPB parameters are all the same. In this scenario, the TPB parameter sets for all three channels are the same, i.e., these equations As shown in JPEG2024536996000119.jpg523,
number
[0066] To estimate the number of B-spline operations, Let's assume the image is JPEG2024536996000123.jpg1081. There are 1089 B-spline operations for each channel. The total number of B-spline operations in this scenario to construct a complete 3DLUT of size 33x33x33 is 1089.
[0067] In all the above scenarios, the sampling locations can be either uniformly or non-uniformly distributed along the Y, C0, and C1 axes. Similarly, the sampling locations along the Y, C0, and C1 axes can be the same (e.g., JPEG2024536996000124.jpg827) or may be different (e.g. JPEG2024536996000125.jpg823). The algorithm still works as normal, so the variation in sampling position has no impact on the running time of the above three scenarios.
[0068] There is a fourth possible scenario where (i) the TPB parameters are the same for all channels, (ii) the sampling positions are also the same for all axes, and (iii) the low and high clipping values are also the same for all channels. In this case, only one 2D array is sufficient. However, this scenario is very rare, since the clipping values are typically different.
[0069] FIG. 2B summarizes the process flows for the three scenarios described above. In scenario 1, nine temporary arrays are generated (see, for example, Table 3). Each color component uses three separate sets of these tables. In scenario 2, six temporary arrays are generated (see, for example, Table 4). Luma uses three of these tables and both chroma components use the other three. For scenario 3, three temporary arrays are generated (see, for example, Table 5), and the same tables are used to generate a 3D-LUT to predict all color components. Given these temporary tables, the decoder builds a 3D-LUT (see Equation (8)), which can be used for SDR-HDR prediction, as shown in Equations (8) and (15).
[0070] Backwards compatible mobile profiles As mentioned above, TPB-based mapping provides improved video quality compared to traditional prediction (e.g., via piecewise linear prediction for luma or MMR prediction for chroma), but HDR content needs to be played back by both older devices (e.g., off-the-shelf HDR TVs) and newer devices that support TPB-related metadata.
[0071] In one embodiment, an extended mapping index combined with an existing parameter indicating the bit depth of the enhancement layer stream (e.g., as used in older Blu-Ray HDR content) is used to point to the use of TPB prediction parameters. When the bitstream arrives at a new mobile device that supports the new RPU syntax and TPB prediction, the device uses the TPB to build a static or dynamic 3D-LUT and reconstruct the HDR. When the bitstream arrives at an older device (such as a Dolby Vision TV), the device uses a (static or dynamic) composer to build the HDR image. In this way, the stream can be made backward compatible while optimizing the user experience for users with modern decoders, e.g., mobile users. Figure 4 shows an exemplary process for such backward compatibility.
[0072] As shown in FIG. 4, in an exemplary embodiment, metadata for HDR content targeted to both legacy devices and the new Mobile Optimized Profile (MOP) includes metadata in two syntax structures, shown here as RPU for legacy content (Type 2) and RPU for additional TPB-related content (Type 3). Legacy devices 415 ignore the RPU (Type 3) content and reconstruct the HDR content using conventional HDR decoding 420. Mobile devices 405 that support RPU (Type 3) metadata use all available metadata to generate a TPB-based 3D-LUT and perform TPB-based decoding (410) with improved quality.
[0073] TPB Metadata (RPU (Type 3)) Syntax Example In one embodiment, TPB prediction can be signaled by using a combination of two syntax elements: EL_bit_depth_minus8 and ext_mapping_idc, with an example description as follows: EL_bit_depth_minus8 is used to derive the bit depth of the enhancement layer signal, i.e., EL_bit_depth, and to derive the extended base layer inverse mapping method indicator, i.e., ext_mapping_idc. EL_bit_depth=(EL_bit_depth_minus8&0xFF)+8. ext_mapping_idc=(EL_bit_depth_minus8&0xFF00)>>8. The value of ((EL_bit_depth_minus8&0xFFFF0000)>>16) shall be equal to zero. The value of EL_bit_depth_minus8 shall be in the range 0 to 4294967295, inclusive. When rpu_type is equal to 2 and rpu_format&0x700 is not equal to 0, EL_bit_depth_minus8 does not exist. The lowest 5 bits of ext_mapping_idc are the extended base layer reverse mapping method indicator as defined in Table 7. The other bits of ext_mapping_idc are reserved for future use, for example, to identify newer predictors beyond the capabilities of the TPB predictor described herein. NOTE - If ext_mapping_idc&0x1F is equal to 1, the decoder shall take the BL signal as is for the reconstructed HDR signal. If the decoder does not recognize the ext_mapping_idc field, it shall alternatively fall back to using the base layer mapping method as indicated by mapping_idc to reconstruct the HDR signal. NOTE − If ext_mapping_idc&0x1F is greater than 1 and less than 5 or equal to 31, the decoder shall fall back to using the base layer mapping method as indicated by mapping_idc to reconstruct the HDR signal. NOTE - If ext_mapping_idc is greater than 4 and less than 31, the base layer inverse mapping shall be done using the TPB prediction method if the decoder supports the current TPB prediction type indicated by ext_mapping_idc. If the decoder does not support the current TPB prediction type or does not recognize the ext_mapping_idc field at all, it shall fall back to using the base layer mapping method as indicated by mapping_idc to reconstruct the HDR signal. NOTE - If ext_mapping_idc is equal to 5, there shall be a companion RPU with rpu_type=3 to be sent immediately after the RPU with rpu_type=2 for the current picture. If the decoder recognizes an RPU with rpu_type=3, the RPU parser shall extract the custom TPB prediction coefficients and use them in the TPB prediction process. Table 6: Example syntax for ext_mapping_idc [Table 6]
[0074] To ensure backward compatibility, the mobile optimized profile uses the EL_bit_depth_minus8 field in the existing RPU syntax to signal the 8-bit TPB ext_mapping_idc to the decoder. EL_bit_depth_minus8 is an unsigned 32-bit field that encapsulates the ext_mapping_idc and EL_bit_depth_minus8 values in different bit locations, as shown in Table 7. Table 7: Parsing EL_bit_depth_minus8 [Table 7]
[0075] Therefore, for backward compatibility, the LSB 8 bits carry the EL_bit_depth_minus8 value. Legacy devices discard the most significant 24 bits and parse only the lower 8 bits to fetch the value. The next 8 bits, from 15 to 8, contain information that can be interpreted by devices supporting the latest RPU syntax. The semantics of ext_mapping_idc are shown in Table 6.
[0076] If ext_mapping_idc is greater than 4 and less than 32, the TPB prediction method is used for base layer inverse mapping when the decoder supports the current TPB prediction type as indicated by ext_mapping_idc. If the decoder does not support the current TPB prediction type or does not recognize the ext_mapping_idc field at all, it falls back to using the base layer mapping method as indicated by the mapping_idc syntax variable to reconstruct the HDR signal. Although not required to go into detail, in one embodiment, the mapping_idc syntax variable is a 16-bit field that specifies various legacy mapping options.
[0077] If ext_mapping_idc is equal to 5, there shall be a companion RPU structure with rpu_type=3 sent immediately after the RPU with rpu_type=2 for the current picture. When the decoder recognizes an RPU metadata with rpu_type=3, the RPU parser shall extract the custom TPB prediction coefficients and use them in the TPB prediction process. This process is summarized in Figure 5.
[0078] As shown in Figure 5, given a video elementary stream 502, a decoder parses the metadata 505, 402 and the base layer (BL) bitstream 510. Looking at the EL_bit_depth_minus8 parameter in the metadata, older devices only extract the 8 least significant bits to read the bit depth of the enhancement layer data (if any), whereas newer devices can read the minimum 16 bits and extract both the bit depth of the enhancement layer data (if any) and the value of the new syntax parameter that has information related to TPB prediction (e.g., ext_mapping_idc).
[0079] Example TPB Payload (RPU(Type 3)) Syntax and Semantics Section "TPB Cross-Color Channel Predictor" already describes key RPU (Type 3) metadata, including TPB parameters, TPB coefficients, and auxiliary data. In one embodiment, Table 8 describes an example of RPU (Type 3) payload syntax. Table 8: Example payload syntax for RPU (Type 3) [Table 8] JPEG2024536996000129.jpg244159JPEG2024536996000130.jpg67159
[0080] The semantics of the RPU data payload for rpu_type equal to 3 are defined below. tpb_coef_data_type[y][x] specifies the length of the non-zero TPB coefficient used for the partition with vertical coordinate y and horizontal coordinate x. The data type is defined as follows: [Table 9]
[0081] tpb_clipping_flag[y][x] equal to 1 indicates that there are lower and upper clipping thresholds for the input signal to be used for the partition with vertical coordinate y and horizontal coordinate x.
[0082] tpb_clipping_low[y][x][cmp] specifies the lower 10-bit clipping threshold of the input signal to be used for the partition with vertical coordinate y, horizontal coordinate x, and color component cmp. If tpb_clipping_low[y][x][cmp] is not present, it is inferred to be 0.
[0083] tpb_clipping_high[y][x][cmp] specifies the upper limit of the 10-bit clipping threshold of the input signal to be used for the partition with vertical coordinate y, horizontal coordinate x, and color component cmp. If tpb_clipping_high[y][x][cmp] is not present, it is inferred to be 0x3FF.
[0084] tpb_basis_flag[y][x][cmp] equal to 1 indicates that the basis functions used for a partition with vertical coordinate y, horizontal coordinate x, and color component cmp are identical to the basis functions for a partition with vertical coordinate y, horizontal coordinate x, and color component (cmp-1). If tpb_basis_flag[y][x][cmp] is not present, it is inferred to be 0.
[0085] tpb_num_knot_minus1[y][x][cmp][c] specifies the number of TPB knots used for the partition with vertical coordinate y, horizontal coordinate x, and color component cmp in channel c, minus one. If tpb_num_knot_minus1[y][x][cmp][c] is not present, it is inferred to be the value of tpb_num_knot_minus1[y][x][cmp-1][c].
[0086] tpb_order_minus1[y][x][cmp][c] specifies the order of TPB prediction used for the partition with vertical coordinate y, horizontal coordinate x, and color component cmp in channel c, minus 1. If tpb_order_minus1[y][x][cmp][c] is not present, it is inferred to be the value of tpb_order_minus1[y][x][cmp-1][c].
[0087] tpb_zero_coef[y][x][cmp][i][j][k] equal to 1 indicates that the coefficient used for the partition with vertical coordinate y, horizontal coordinate x, and color component cmp at the ith knot of channel 0, the jth knot of channel 1, and the kth knot of channel 2 is 0. If tpb_zero_coef[y][x][cmp][i][j][k] is not present, the value of tpb_zero_coef[y][x][cmp-1][i][j][k] is inferred.
[0088] tpb_coef[y][x][cmp][i][j][k] specifies the non-zero TPB coefficient to be used for the partition with vertical coordinate y, horizontal coordinate x, and color component cmp at the ith knot of channel 0, the jth knot of channel 1, and the kth knot of channel 2. The length of the tpb_coef[y][x][cmp][i][j][k] syntax element is derived from tpb_coef_data_type[y][x]. If tpb_coef[y][x][cmp][i][j][k] is not present, it is inferred to be 0.
[0089] Note: tpb_zero_coeff is an indicator of whether the corresponding TPB coefficient is zero. It has been observed that there are many TPB coefficients that have value 0. Instead of using a half-float to signal those coefficients as "0", this 1-bit indicator can be used to reduce overhead. Of course, it is still necessary to include the non-zero TPB coefficients in the metadata.
[0090] ext_mapping_preferred_L0_present_flag equal to 1 indicates that preferred alternate values for the signal_eotf, signal_eotf_param0, signal_eotf_param1, signal_eotf_param2, and signal_bit_depth syntax elements of the HDR display management signal representation metadata are present in the current HDR RPU with rpu_type=3. If ext_mapping_preferred_L0_present_flag is not present, it is inferred to be 0.
[0091] ext_signal_eotf specifies the preferred alternate value for the signal_eotf syntax element of the DM signal representation metadata. The semantics of ext_signal_eotf are the same as the semantics of the signal_eotf syntax element specified in the HDR display management metadata. When ext_signal_eotf is not equal to the value of signal_eotf indicated in the HDR display management metadata and the decoder supports the extended base layer inverse mapping method indicated by ext_mapping_idc, the decoder shall ignore the value of signal_eotf indicated in the HDR display management metadata and use the value indicated by ext_signal_eotf instead.
[0092] ext_signal_eotf_param0 specifies the preferred alternative value for the signal_eotf_param0 syntax element of the DM signal representation metadata. The semantics of ext_signal_eotf_param0 are the same as for the signal_eotf_param0 syntax element specified in the HDR display management metadata. When ext_signal_eotf_param0 is not equal to the value of signal_eotf_param0 indicated in the HDR display management metadata and the decoder supports the extended base layer inverse mapping method indicated by ext_mapping_idc, the decoder shall ignore the value of signal_eotf_param0 indicated in the HDR display management metadata and use the value indicated by ext_signal_eotf_param0 instead.
[0093] ext_signal_eotf_param1 specifies the preferred alternative value for the signal_eotf_param1 syntax element of the DM signal representation metadata. The semantics of ext_signal_eotf_param1 are the same as the semantics of the signal_eotf_param1 syntax element specified in the HDR display management metadata. When ext_signal_eotf_param1 is not equal to the value of signal_eotf_param1 indicated in the HDR display management metadata and the decoder supports the extended base layer inverse mapping method indicated by ext_mapping_idc, the decoder shall ignore the value of signal_eotf_param1 indicated in the HDR display management metadata and use the value indicated by ext_signal_eotf_param1 instead.
[0094] ext_signal_eotf_param2 specifies the preferred alternate value for the signal_eotf_param2 syntax element of the DM signal representation metadata. The semantics of ext_signal_eotf_param2 are the same as the semantics of the signal_eotf_param2 syntax element specified in the HDR display management metadata. When ext_signal_eotf_param2 is not equal to the value of signal_eotf_param2 indicated in the HDR display management metadata and the decoder supports the extended base layer inverse mapping method indicated by ext_mapping_idc, the decoder shall ignore the value of signal_eotf_param2 indicated in the HDR display management metadata and use the value indicated by ext_signal_eotf_param2 instead.
[0095] ext_signal_bit_depth specifies the preferred alternative value for the signal_bit_depth syntax element of the DM signal representation metadata. The semantics of ext_signal_bit_depth are the same as for the signal_bit_depth syntax element specified in the HDR display management metadata. When ext_signal_bit_depth is not equal to the value of signal_bit_depth indicated in the HDR display management metadata and the decoder supports the extended base layer de-mapping method indicated by ext_mapping_idc, the decoder shall ignore the value of signal_bit_depth indicated in the HDR display management metadata and use the value indicated by ext_signal_bit_depth instead.
[0096] ext_source_min_PQ specifies the preferred alternative value for the source_min_PQ syntax element of the DM signal representation metadata. The semantics of ext_source_min_PQ are the same as for the source_min_PQ syntax element specified in the HDR display management metadata. When ext_source_min_PQ is not equal to the value of source_min_PQ indicated in the HDR display management metadata and the decoder supports the extended base layer inverse mapping method indicated by ext_mapping_idc, the decoder shall ignore the value of source_min_PQ indicated in the HDR display management metadata and use the value indicated by ext_source_min_PQ instead.
[0097] ext_source_max_PQ specifies a preferred alternative value for the source_max_PQ syntax element of the DM signal representation metadata. The semantics of ext_source_max_PQ are the same as for the source_max_PQ syntax element specified in the HDR display 1 management metadata. When ext_source_max_PQ is not equal to the value of source_max_PQ indicated in the HDR display management metadata and the decoder supports the extended base layer inverse mapping method indicated by ext_mapping_idc, the decoder shall ignore the value of source_max_PQ indicated in the HDR display management metadata and use the value indicated by ext_source_max_PQ instead.
[0098] Although exemplary embodiments are provided for mobile applications, those skilled in the art will appreciate that the proposed methods and systems are also applicable to non-mobile devices, such as set-top boxes, television sets, computers, game consoles, and other devices for playback of video content.
[0099] References Each of these references is incorporated herein by reference in its entirety. 1. GM. Su and H. Kadu, “Image prediction for HDR imaging in open-loop codecs,” PCT Application Ser. No. PCT / US2021 / 038258, filed on June 21, 2021. 2. GM. Su et al., “Multiple color channel multiple regression predictor,” US Patent 8,811,490. 3. GM Su et al., “Tensor -product B -Spline predictor,” PCT Application Ser. No. PCT / US2020 / 053172, filed on Sep. 29, 2020, published as WO / 2021 / 067204 on April 8, 2021. 4. L. Fahrmeir, T. Kneib, S. Lang, and B. Marx, “Regression; models, methods, and applications,” pp. 418, Springer, 2013.
[0100] Exemplary Computer System Implementation Embodiments of the present invention may be implemented using computer systems, systems comprised of electronic circuits and components, integrated circuit (IC) devices such as microcontrollers, field programmable gate arrays (FPGAs) or other configurable or programmable logic devices (PLDs), discrete time or digital signal processors (DSPs), application specific integrated circuits (ASICs), and / or apparatuses including one or more of such systems, devices, or components. The computer and / or IC may implement, control, or execute instructions related to the image prediction techniques as described herein. The computer and / or IC may calculate any of the various parameters or values associated with the generation of the image prediction techniques described herein. Image and video dynamic range enhancement embodiments may be implemented in hardware, software, firmware, and various combinations thereof.
[0101] Certain embodiments of the present invention comprise a computer processor that executes software instructions that cause the processor to perform the method of the present invention. For example, one or more processors in a display, an encoder, a set-top box, a transcoder, etc., can perform the method of the image prediction technique as described above by executing software instructions in a program memory accessible to the processor. The present invention can also be provided in the form of a program product. The program product can include any tangible, non-transitory medium that carries a set of computer-readable signals that include instructions that, when executed by a data processor, cause the data processor to perform the method of the present invention. A program product according to the present invention can be in any of a wide variety of tangible, non-transitory forms. The program product can include physical media, such as, for example, magnetic data storage media including floppy diskettes, 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 optionally be compressed or encrypted.
[0102] Where a component (e.g., a software module, processor, assembly, device, circuit, etc.) is referenced above, unless otherwise indicated, the reference to that component (including the reference to "means") is intended to include any components that perform the function of the described component (i.e., functionally equivalent components) as equivalents of that component, including components that are not structurally equivalent to the disclosed structures that perform that function in the illustrated exemplary embodiments of the invention.
[0103] Equivalents, Extensions, Substitutes and Others Thus, exemplary embodiments of image prediction techniques are described. In the above specification, embodiments of the invention have been described with respect to numerous specific details that may vary from implementation to implementation. Thus, the sole and exclusive indication of what is and is intended by the applicant to be the invention is the set of claims in its particular form as derived from this application. These claims include any and all subsequent amendments. Any definitions expressly set forth herein for terms contained in such claims shall determine the meaning of the terms used in the claims. Thus, any limitations, elements, properties, features, advantages or attributes not expressly recited in the claims should in no way limit the scope of such claims. The specification and drawings should therefore be regarded in an illustrative and not restrictive sense.
[0104] Various aspects of the present invention can be understood from the following enumerated exemplary embodiments (EEE).
[0105] EEE1. A method for decoding high dynamic range video data, the method comprising: receiving an input image encoded in an input dynamic range; receiving metadata about an input image and generating a mapping function that maps the input image from an input dynamic range to an output image within the output dynamic range; parsing the first metadata parameter to identify whether a second metadata parameter is present; If the second metadata parameter is present, Generate the mapping function using a tensor product B-spline (TPB) predictor, Otherwise, generating a mapping function using the old predictor; and applying the mapping function to the input image to generate an output image; A method comprising:
[0106] EEE2. The method of EEE1, wherein the input dynamic range comprises a standard dynamic range and the output dynamic range comprises a high dynamic range.
[0107] EEE3. The method of EEE1 or EEE2, wherein the first metadata parameters include parameters determining a bit depth at an enhancement layer of the input image.
[0108] EEE4. Identifying whether a second metadata parameter is present masking the first metadata parameter to read two distinct values, a first value based on bits 0-7 of the first metadata parameter and a second value based on bits 8-15 of the first metadata parameter; Identifying whether a second metadata parameter is present based on the second value; and The method according to any one of EEE1 to EEE3, comprising:
[0109] EEE5. Using a Tensor Product B-Spline (TPB) predictor to generate a mapping function accessing TPB metadata within the metadata of the input image, the TPB metadata defining TPB-related prediction parameters; generating a three-dimensional lookup table (3D-LUT) that maps selected triplets of pixel values within the input dynamic range to corresponding output triplets within the output dynamic range based on the TPB metadata; The method according to any one of EEE1 to EEE4, comprising:
[0110] EEE6.TPB metadata is the number of knot points in each of the three dimensions of the luma channel and the two chroma channels (T); polynomial order (l) values in each of the three dimensions for the luma channel and the two chroma channels; Prediction coefficients for the luma channel and two chroma channels; a luma channel basis flag and two chroma channel basis flags for determining a correlation between prediction coefficients for the luma channel and the two chroma channels; The method according to EEE5, comprising:
[0111] Generating EEE7.3D-LUT is If all base flags are 0, Generate 9 temporary arrays, 3 for each color channel, Otherwise, if the luma channel basis flag is 0 and one of the two chroma channel basis flags is 1, then generating three temporary arrays for the luma channel and three temporary arrays for the two chroma channels; Otherwise, if the luma channel basis flag is 0 and both chroma channel basis flags are 1, generating three temporary arrays to be used for all color channels; generating a 3D-LUT for each color channel based on a product of three temporary arrays for that color channel; The method according to EEE6, further comprising:
[0112] EEE8. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions for performing, with one or more processors, a method according to any one of claims EE1 to EE7.
[0113] EEE9. An apparatus comprising a processor and configured to perform a method according to any one of EEE1 to EEE7.
Claims
1. 1. A method for decoding high dynamic range images and videos, comprising: receiving an input image encoded in an input dynamic range; receiving metadata about the input image and generating a mapping function that maps the input image from the input dynamic range to an output image within an output dynamic range; Parsing the first metadata parameter to identify whether a second metadata parameter is present; If the second metadata parameter is present, generating said mapping function using a non-backwards compatible predictor; Otherwise, generating said mapping function using a backward compatible predictor; applying the mapping function to the input image to generate the output image; Including, The input dynamic range comprises a standard dynamic range and the output dynamic range comprises a high dynamic range. method.
2. The method of claim 1 , wherein the first metadata parameters include parameters determining bit depth information in an enhancement layer of the input image.
3. Identifying whether the second metadata parameter is present includes: masking the first metadata parameter to read two distinct values, a first value based on bits 0-7 of the first metadata parameter and a second value based on bits 8-15 of the first metadata parameter; identifying whether the second metadata parameter is present based on the second value; and The method of claim 1 or 2, comprising:
4. The method of claim 1 , wherein the non-backward compatible predictor comprises a Tensor Product B-Spline (TPB) predictor.
5. 5. The method of claim 4, wherein generating the mapping function using a Tensor Product B-Spline (TPB) predictor includes constructing a TPB-based three-dimensional look-up table (3D-LUT), in particular, the TPB-based 3D-LUT is constructed by taking into account characteristics of a TPB function.
6. The method of claim 5 , wherein TPB metadata in the metadata of the input image includes TPB-related prediction parameters and prediction coefficients.
7. 7. The method of claim 6, wherein constructing the 3D-LUT includes: for each 3D-LUT index, generating a respective basis function by using the prediction parameters; and calculating a respective output pixel value by using the prediction coefficients based on the basis function.
8. 7. The method of claim 6, wherein constructing the 3D-LUT includes initially storing values of frequently used basis functions in one or more 2D arrays for later calculating output pixel values by using the prediction coefficients.
9. Generating the mapping function using a tensor product B-spline (TPB) predictor comprises: accessing TPB metadata in the metadata of the input image, the TPB metadata including TPB related prediction parameters; generating a three-dimensional lookup table (3D-LUT) based on the TPB metadata that maps selected triplets of pixel values within the input dynamic range to corresponding output triplets of pixel values within the output dynamic range; The method according to any one of claims 4 to 8, comprising:
10. The TPB metadata includes the number of knot points in each of the three dimensions of the luma channel and the two chroma channels (T); polynomial order (l) values in each of the three dimensions for the luma channel and the two chroma channels; prediction coefficients for the luma channel and the two chroma channels; a luma channel basis flag and two chroma channel basis flags for determining a correlation between the prediction coefficients for the luma channel and the two chroma channels; 10. The method of claim 9, comprising:
11. Generating the 3D-LUT includes: If all base flags are 0, Generate 9 temporary arrays, 3 for each color channel, Otherwise, if the luma channel basis flag is 0 and one of the two chroma channel basis flags is 1, generating three temporary arrays for the luma channel and three temporary arrays for the two chroma channels; Otherwise, if the luma channel basis flag is 0 and both of the two chroma channel basis flags are 1, then generating three temporary arrays to be used for all color channels; generating the 3D-LUT for each color channel based on a product of the three temporary arrays for that color channel; The method of claim 10 further comprising:
12. Generating three temporary arrays for the luma color channel includes: Calculating L 0 ×L 1 ×L 2 Regarding the 3D-LUT, is the distance h y,y , order l y,y , and the total T y,y pcs Uniformly distributed knot points at knot points , i=0,1,..,L 0 The input luma pixel value for of B-spline function (T y,y +l y,y -1) x L 0 indicates the value of is the distance h y,c0 , order l y,c0 , and T y,c0 Total of Uniformly distributed knot points at knot points , i=0,1,..,L 1 Input C0 chroma pixel value for of B-spline function (T y,c0 +l y,c0 -1) x L 1 indicates the value of is the distance h y,c1 , order l y,c1 , and T y,c1 Total of Uniformly distributed knot points at knot points , i=0,1,..,L 2 Input C1 chroma pixel value for of B-spline function (T y,c1 +l y,c1 -1) x L 2 Indicates the value of The method of claim 11.
13. 4. Generating a luma output value in the 3D-LUT, comprising: [0048] Calculating The output value in the output dynamic range 【number】 of [0049] and Further comprising: D y = (T y,y +l y,y −1) × (T y,c0 +l y,c0 −1) × (T y,c1 +l y,c1 -1) and 【number】 denotes the prediction coefficient, The method of claim 12.
14. The above-mentioned format B t (x, k t , h, l), where x denotes the input pixel value, and k t Let denote the uniformly distributed knot points with distance h, and l denotes its degree. [Number 50] For a truncated polynomial of degree l defined as [0051] The method of claim 12, wherein
15. B t (x, k t 15. The method of claim 14, wherein N x values (n, h, l) are calculated for N x values uniformly distributed within the input dynamic range.
16. B t (x, k t 15. The method of claim 14, wherein N x values (h, l) are calculated for N x values that are non-uniformly distributed within the input dynamic range.
17. A non-transitory computer readable storage medium having stored thereon computer executable instructions for performing, with one or more processors, the method of any one of claims 1 to 16.
18. 17. Apparatus comprising a processor and configured to carry out the method of any one of claims 1 to 16.
Citation Information
Patent Citations
Single-layer progressive coding for supporting multi-capability HDR composition
EP3537717A1
Visual dynamic range coding operation and parameter specification
JP2015503873A
Tensor-product b-spline predictor
WO2021067204A1
Cascade prediction
WO2021113549A1
