Coding method, decoding method and related equipment
Through the encoding method proposed during the HDR image transcoding process, the abnormal problem during the HDR image transcoding process is solved, and more efficient encoding and decoding is achieved, improving the user experience.
Patent Information
- Application Number
- CN202411081644.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-08-15
- Filing Date
- 2024-08-06
- Publication Date
- 2025-02-21
AI Technical Summary
Existing HDR images or HDR videos may cause abnormalities during the transcoding process, affect the user experience, and lack effective encoding/decoding solutions.
An encoding method is proposed to determine the intermediate enhancement layer data by acquiring the HDR image and its basic layer data, and process these data according to the mapping relationship to generate a code stream. The method includes acquiring HDR images and basic layer data, determining intermediate enhancement layer data, processing intermediate enhancement layer data to generate enhancement layer data, and encoding basic layer data, enhancement layer data and metadata.
By flexibly processing data to be encoded, we can improve coding efficiency, reduce the amount of data, improve decoding quality, and improve user experience.
Smart Images

Figure CN119496901A_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on August 15, 2023, with application number 202311032268.9, and the priority of the Chinese patent application with the invention name “Encoding method and related equipment”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of coding and decoding, and more specifically, to a coding method, a decoding method and related devices. Background Art
[0003] Dynamic range is used in many fields to express the ratio of the maximum value to the minimum value of a variable. In digital images, the dynamic range represents the ratio between the maximum grayscale value and the minimum grayscale value within the displayable range of the image. The dynamic range in nature is quite large. The brightness of a night scene under the starry sky is about 0.001cd / m2, and the brightness of the sun itself is as high as 1,000,000,000cd / m2. Such a dynamic range reaches 1,000,000,000 / 0.001=1013. However, in real scenes in nature, the brightness of the sun and the brightness of the stars are not obtained at the same time. For natural scenes in the real world, the dynamic range is between 10 -3 to 10 6 In most color digital images, each channel of red (R), green (G), and blue (B) is stored in an 8-bit byte. That is, the range of each channel is 0 to 255 gray levels. Here, 0 to 255 is the dynamic range of the image. In the real world, the dynamic range of the same scene is between 10 -3 to 10 6 The dynamic range of an image or video is called a low dynamic range (LDR).
[0004] HDR images or HDR videos may need to be transcoded during the distribution or transmission process. The current HDR transcoding solution is to directly transcode HDR images or HDR videos. After decoding, the HDR image or HDR video obtains HDR pixel values and HDR format identifiers and information. HDR pixel values usually need to be processed (such as image up and down sampling, enhancement, etc.). The HDR format identifier and information, as well as the processed HDR pixel values are then sent to the encoder for re-encoding. The re-encoded HDR image or HDR video is distributed to other devices. This solution of directly transcoding HDR images or HDR videos (which can be called a "single-layer transcoding solution") may cause abnormalities in the transcoded HDR images or HDR videos, affecting the user experience.
[0005] Therefore, how to provide a more efficient encoding / decoding solution is a problem to be solved urgently in the art. Summary of the invention
[0006] The present application provides an encoding method, a decoding method and related devices, which can improve encoding efficiency.
[0007] In a first aspect, an embodiment of the present application provides an encoding method, the method comprising: acquiring a first HDR image and a first basic layer data corresponding to the first HDR image; determining first intermediate enhancement layer data according to the first HDR image and the first basic layer data; processing the first intermediate enhancement layer data according to a first mapping relationship to obtain first enhancement layer data; encoding the first basic layer data, the first enhancement layer data, and first metadata to obtain a code stream.
[0008] The first enhancement layer data encoded by the above technical solution is determined based on the first mapping relationship. Through the first mapping relationship, the data to be encoded can be flexibly processed, thereby improving the encoding efficiency.
[0009] In combination with the first aspect, in a possible implementation of the first aspect, determining the first intermediate enhancement layer data based on the first HDR image and the first basic layer data includes: determining the second basic layer data based on the first basic layer data; determining the first intermediate enhancement layer data based on the first HDR image and the second basic layer data.
[0010] In combination with the first aspect, in a possible implementation manner of the first aspect, determining the second basic layer data based on the first basic layer data includes: processing the first basic layer data according to a second mapping relationship to obtain the second basic layer data.
[0011] By using the second mapping relationship to process the first basic layer data, the coding efficiency can be further improved.
[0012] In combination with the first aspect, in a possible implementation manner of the first aspect, before the first basic layer data is processed according to the second mapping relationship to determine the second basic layer data, the method also includes: determining at least one characteristic brightness value according to the first HDR image; determining at least one pixel from the first basic layer data, the at least one pixel corresponding one-to-one to the at least one characteristic brightness value, and the position of each pixel in the at least one pixel is the same as the position of the corresponding characteristic brightness value; determining the second mapping relationship according to the at least one characteristic brightness value and the value of the at least one pixel.
[0013] In combination with the first aspect, in a possible implementation of the first aspect, the first basic layer data is processed according to the second mapping relationship to determine the second basic layer data, including: the first basic layer data and the second basic layer data satisfy the following relationship: baseAfter[i]=TMB2(R base[i]_1 ), where baseAfter[i] represents the value of the i-th pixel in the second basic layer data, R base[i]_1 represents the value of the i-th pixel in the first basic layer data or the first reference value, TMB2() represents the second mapping relationship, and the first reference value is determined according to the value of the i-th pixel in the first basic layer data; or, the first basic layer data and the second basic layer data satisfy the following relationship: baseAfter[i]=TMB2(R base[i]_2 )×R base[i]_3 , where baseAfter[i] represents the value of the i-th pixel in the second basic layer data, TMB2() represents the second mapping relationship, R base[i]_2 is the value of the i-th pixel in the first basic layer data or the second reference value, the second reference value is the second reference value of the i-th pixel determined according to the value of the i-th pixel in the first basic layer data, R base[i]_3 It is the value of the i-th pixel in the first basic layer data or a third reference value, and the third reference value is determined according to the value of the i-th pixel in the first basic layer data.
[0014] In combination with the first aspect, in a possible implementation of the first aspect, the first intermediate enhancement layer data is determined based on the first HDR image and the second basic layer data, including: processing the second basic layer data according to a target numerical conversion function to obtain a converted result; and determining the first intermediate enhancement layer data based on the first HDR image and the converted result.
[0015] In combination with the first aspect, in a possible implementation of the first aspect, the first enhancement layer data is determined according to the first mapping relationship and the first intermediate enhancement data, including: downsampling the first intermediate enhancement layer data to obtain second intermediate enhancement layer data; and processing the second intermediate enhancement data according to the first mapping relationship to obtain the first enhancement layer data.
[0016] By downsampling the first intermediate layer data, the amount of data that needs to be encoded can be effectively reduced, thereby further improving the encoding efficiency.
[0017] In combination with the first aspect, in a possible implementation of the first aspect, downsampling the first intermediate enhancement layer data to obtain second intermediate enhancement layer data includes: determining a target interpolation method; and downsampling the first intermediate enhancement data according to the target interpolation method.
[0018] In combination with the first aspect, in a possible implementation method of the first aspect, determining the target interpolation method includes: determining the target interpolation method from multiple interpolation methods, wherein a difference between restored data obtained after upsampling the second intermediate enhancement data according to the target interpolation method and the first intermediate enhancement data is less than a difference between restored data obtained after upsampling the reference intermediate enhancement data according to a reference interpolation method and the first intermediate enhancement data, wherein the reference intermediate enhancement data is intermediate enhancement data obtained after downsampling the first intermediate enhancement data according to the reference interpolation method, and the reference interpolation method is any interpolation method among the multiple interpolation methods except the target interpolation method.
[0019] In combination with the first aspect, in a possible implementation manner of the first aspect, the first metadata includes interpolation mode indication information, where the interpolation mode indication information is used to indicate the target interpolation mode.
[0020] In combination with the first aspect, in a possible implementation manner of the first aspect, the first mapping relationship includes one or more of the following: a numerical mapping relationship, a sigmoid, a cubic spline, a gamma, a straight line, or a piecewise curve.
[0021] In a second aspect, an embodiment of the present application provides a decoding method, the method comprising: decoding an acquired code stream to obtain first basic layer data, first enhancement layer data and first metadata; processing the first enhancement layer data according to a third mapping relationship to obtain third intermediate enhancement layer data; determining a second HDR image based on the third intermediate enhancement layer data and the first basic layer data.
[0022] The above technical solution determines the enhanced layer data according to the mapping relationship during decoding. In this way, the data to be encoded can be flexibly processed during encoding, thereby improving the encoding efficiency.
[0023] In combination with the second aspect, in a possible implementation of the second aspect, determining the second HDR image based on the third intermediate enhancement layer data and the first basic layer data includes: determining the third basic layer data based on the first basic layer data; determining the second HDR image based on the third intermediate enhancement layer data and the third basic layer data.
[0024] In combination with the second aspect, in a possible implementation manner of the second aspect, determining the third basic layer data based on the first basic layer data includes: processing the first basic layer data according to a fourth mapping relationship to obtain the third basic layer data.
[0025] The above technical solution determines the basic layer data according to the mapping relationship during decoding, so that the data to be encoded can be processed more flexibly during encoding, thereby improving the encoding efficiency.
[0026] In combination with the second aspect, in a possible implementation of the second aspect, the first basic layer data is processed according to the fourth mapping relationship to determine the third basic layer data, including: the first basic layer data and the third basic layer data satisfy the following relationship: baseAfter[i]=TMB4(R base[i]_1 ), where baseAfter[i] represents the value of the i-th pixel in the third basic layer data, R base[i]_1 represents the value of the i-th pixel in the first basic layer data or the first reference value, TMB4() represents the fourth mapping relationship, and the first reference value is determined according to the value of the i-th pixel in the first basic layer data; or, the first basic layer data and the third basic layer data satisfy the following relationship: baseAfter[i]=TMB4(R base[i]_2 )×R base[i]_3 , where baseAfter[i] represents the value of the i-th pixel in the third basic layer data, TMB4() represents the fourth mapping relationship, R base[i]_2 is the value of the i-th pixel in the first basic layer data or the second reference value, the second reference value is the second reference value of the i-th pixel determined according to the value of the i-th pixel in the first basic layer data, R base[i]_3 It is the value of the i-th pixel in the first basic layer data or a third reference value, and the third reference value is determined according to the value of the i-th pixel in the first basic layer data.
[0027] In combination with the second aspect, in a possible implementation of the second aspect, the second HDR image is determined based on the third intermediate enhancement layer data and the third basic layer data, including: processing the third intermediate enhancement layer data according to a target numerical conversion function to obtain a converted result; and determining the second HDR image based on the third basic layer data and the converted result.
[0028] In combination with the second aspect, in a possible implementation manner of the second aspect, after processing the first enhancement layer data according to the third mapping relationship to obtain the third intermediate enhancement layer data, it also includes: upsampling the third intermediate enhancement layer data.
[0029] Upsampling can restore the enhancement layer data, so that the HDR image synthesized based on the restored enhancement layer data has a higher degree of restoration. Correspondingly, the encoding side can perform corresponding downsampling processing, which can reduce the amount of data to be encoded, thereby improving encoding efficiency.
[0030] In combination with the second aspect, in a possible implementation manner of the second aspect, the first metadata includes interpolation mode indication information, where the interpolation mode indication information is used to indicate a target interpolation mode, and the target interpolation mode is used to upsample the first enhancement layer data.
[0031] In combination with the second aspect, in a possible implementation manner of the second aspect, the third mapping relationship includes one or more of the following: a numerical mapping relationship, a sigmoid, a cubic spline, a gamma, a straight line, or a piecewise curve.
[0032] In a third aspect, an embodiment of the present application provides an electronic device, which is used to implement the first aspect or any possible implementation method of the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides an electronic device, which is used to implement the second aspect or any possible implementation method of the second aspect.
[0034] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor, wherein the processor is used to couple with a memory, read and execute instructions and / or program codes in the memory to execute the first aspect or any possible implementation method of the first aspect.
[0035] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising a processor, wherein the processor is used to couple with a memory, read and execute instructions and / or program codes in the memory to execute the second aspect or any possible implementation method of the second aspect.
[0036] In the seventh aspect, an embodiment of the present application provides a chip system, which includes a logic circuit, which is used to couple with an input / output interface and transmit data through the input / output interface to execute the first aspect or any possible implementation method of the first aspect.
[0037] In an eighth aspect, an embodiment of the present application provides a chip system, which includes a logic circuit, which is used to couple with an input / output interface and transmit data through the input / output interface to execute the second aspect or any possible implementation method of the second aspect.
[0038] In the ninth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a program code. When the program code stored in the computer storage medium is run on a computer, the computer executes the first aspect or any possible implementation of the first aspect.
[0039] In the tenth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a program code. When the program code stored in the computer storage medium is run on a computer, the computer executes the second aspect or any possible implementation of the second aspect.
[0040] In the eleventh aspect, an embodiment of the present application provides a computer program product, which includes: a computer program code, when the computer program code runs on a computer, enables the computer to execute the second aspect or any possible implementation of the second aspect.
[0041] In a twelfth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program code, when the computer program code runs on a computer, enables the computer to execute the second aspect or any possible implementation of the second aspect.
[0042] In a thirteenth aspect, an embodiment of the present application provides a code stream, which is determined according to the first aspect or any possible implementation method of the first aspect.
[0043] In a fourteenth aspect, an embodiment of the present application provides a bitstream, which includes first basic layer data, first enhancement layer data, and first metadata corresponding to a first HDR image.
[0044] Optionally, the first enhancement layer data is determined according to the first mapping relationship and the first intermediate enhancement data.
[0045] Optionally, the first intermediate enhancement data is determined according to the first HDR image and the first basic layer data.
[0046] In a fifteenth aspect, an embodiment of the present application provides a device for storing a code stream, wherein the device is used to store the code stream of the thirteenth aspect or the fourteenth aspect.
[0047] In the sixteenth aspect, an embodiment of the present application provides a device for transmitting a code stream, the device comprising: a transmitter and a receiver, the receiver being used to receive the code stream generated by the method described in the second aspect above, and the transmitter being used to send the code stream to a client device via a transmission medium.
[0048] In the seventeenth aspect, an embodiment of the present application provides a device for transmitting a code stream, the device comprising: a transmitter and at least one storage medium, the at least one storage medium being used to store the code stream generated according to the method described in the second aspect above, the transmitter being used to obtain the code stream from the storage medium and send the code stream to a client device via a transmission medium.
[0049] In an eighteenth aspect, an embodiment of the present application provides a system for distributing a code stream, the system comprising: at least one storage medium for storing a code stream generated according to the method described in the second aspect above, a streaming media server for obtaining a target code stream from the at least one storage medium and sending the target code stream to a client device, wherein the streaming media server comprises a content server or a content distribution server. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a schematic diagram of dynamic range mapping.
[0051] Figure 2 This is the image of the PQ photoelectric transfer function.
[0052] Figure 3 This is the image of the HLG photoelectric transfer function.
[0053] Figure 4 This is the image of the SLF photoelectric transfer function.
[0054] Figure 5 A schematic block diagram of a coding solution system used in an embodiment of the present application.
[0055] Figure 6 A block diagram of a content providing system for implementing content distribution services used in an embodiment of the present application.
[0056] Figure 7 A schematic diagram of a streaming media system workflow applicable to an embodiment of the present application.
[0057] Figure 8 A schematic diagram describing an exemplary end-to-end process of the present application is provided.
[0058] Fig. 9An exemplary streaming media system architecture of the present application is described.
[0059] Fig.10 A schematic diagram of a possible system architecture applicable to an embodiment of the present application.
[0060] Fig.11 It is a schematic diagram of a method for processing digital signals provided according to an embodiment of the present application.
[0061] Fig.12 It is a schematic flowchart of an encoding method provided according to an embodiment of the present application.
[0062] Fig.13 It is a schematic flowchart of a decoding method provided according to an embodiment of the present application.
[0063] Fig.14 It is a schematic structural block diagram of an electronic device provided according to an embodiment of the present application.
[0064] Fig.15 It is a schematic structural block diagram of another electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0065] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0066] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0067] First of all, in order to facilitate understanding of the embodiments of the present application, some concepts or terms involved in the embodiments of the present application are explained.
[0068] Color value: A numerical value corresponding to a specific image primary color component (such as R, G, B, or Y).
[0069] Digital code value: A digital expression of an image signal. Digital code value is used to represent nonlinear primary color values.
[0070] Linear color value: A linear color value that is proportional to the light intensity. In an optional case, its value should be normalized to [0,1], referred to as E.
[0071] Nonlinear primary color value: Nonlinear primary color value is the normalized digital expression value of image information, which is proportional to the digital coding value. In an optional case, its value should be normalized to [0,1], referred to as E′.
[0072] Electro-optical transfer function (EOTF): A conversion relationship from nonlinear primary color values to linear primary color values.
[0073] Metadata: Data carried in a video signal that describes the video source information.
[0074] Dynamic metadata: Metadata associated with each frame of an image that changes from frame to frame.
[0075] Static metadata: Metadata associated with an image sequence that remains unchanged within the image sequence.
[0076] Luma: represents the combination of nonlinear primary color signals, symbolized by Y'.
[0077] Luminance mapping: The luminance of the source image is mapped to the luminance of the target system.
[0078] Display adaptation: Processing of video signals to adapt the display characteristics of the target display.
[0079] Source picture: The image input to the HDR pre-processing stage.
[0080] Mastering display: A reference display used when editing and producing video signals to determine the effects of video editing and production.
[0081] Linear scene light signal: In HDR video technology, the HDR video signal with content as scene light refers to the scene light captured by the camera / camera sensor, which is generally a relative value; the linear scene light signal is encoded by hybrid log-gamma (HLG) to obtain the HLG signal, which is a scene light signal and is nonlinear; the scene light signal generally needs to be converted into a display light signal through OOTF before being displayed on the display device.
[0082] Linear display light signal: In HDR video technology, the HDR video signal with content as display light refers to the display light emitted by the display device, which is generally an absolute value in nits. The linear display light signal is encoded by perceptual quantization (PQ) to obtain a PQ signal, which is a display light signal and a nonlinear signal. The display light signal is generally displayed on the display device according to its absolute brightness.
[0083] Opto-optical transfer function (OOTF): A curve used in video technology to convert one optical signal into another.
[0084] Dynamic range: The ratio of the maximum brightness to the minimum brightness in a video signal.
[0085] Luma-chroma-chroma (LCC), separates the three components of a video signal into luminance and chrominance.
[0086] The optical-electro transfer function (OETF) represents the conversion relationship between the linear signal and the nonlinear signal of an image pixel. The commonly used OETFs at this stage include the following three:
[0087] Perceptual quantizer (PQ) photoelectric transfer function, hybrid log-gamma (HLG) photoelectric transfer function and scene luminance fidelity (SLF) photoelectric transfer function. These three photoelectric transfer functions are photoelectric transfer functions specified by the audio video coding standard (AVS).
[0088] Dynamic range is used in many fields to express the ratio of the maximum value to the minimum value of a variable. In digital images, the dynamic range represents the ratio between the maximum grayscale value and the minimum grayscale value within the displayable range of the image. The dynamic range in nature is quite large. The brightness of a night scene under the starry sky is about 0.001cd / m2, and the brightness of the sun itself is as high as 1,000,000,000cd / m2. Such a dynamic range reaches 1,000,000,000 / 0.001=1013. However, in real scenes in nature, the brightness of the sun and the brightness of the stars are not obtained at the same time. For natural scenes in the real world, the dynamic range is between 10 -3 to 10 6 In most color digital images, each channel of R, G, and B is stored in one byte of 8 bits. That is to say, the range of each channel is 0 to 255 gray levels. Here, 0 to 255 is the dynamic range of the image. -3 to 10 6 We call it high dynamic range (HDR), while the dynamic range of ordinary pictures is called low dynamic range (LDR). The imaging process of digital cameras is actually the mapping of the high dynamic range of the real world to the low dynamic range of photos. This is often a nonlinear process.
[0089] Figure 1 is a schematic diagram of dynamic range mapping.
[0090] The PQ photoelectric transfer function is a perceptual quantization photoelectric transfer function proposed based on the brightness perception model of the human eye. Figure 2 , Figure 2 is the image of the PQ photoelectric transfer function. The PQ photoelectric transfer function represents the conversion relationship from the linear signal value of the image pixel to the nonlinear signal value in the PQ domain.
[0091] The HLG photoelectric transfer function is an improvement on the traditional gamma curve. Figure 3 , Figure 3 This is an image of the HLG photoelectric transfer function. The HLG photoelectric transfer function uses the traditional gamma curve in the low segment and supplements the log curve in the high segment. The HLG photoelectric transfer function represents the conversion relationship between the linear signal value of the image pixel and the nonlinear signal value in the HLG domain.
[0092] The SLF photoelectric transfer function is the optimal curve obtained based on the brightness distribution of the HDR scene while satisfying the optical characteristics of the human eye. Figure 4 , Figure 4is the image of SLF photoelectric transfer function. SLF photoelectric transfer curve represents the conversion relationship from linear signal value of image pixel to nonlinear signal value in SLF domain.
[0093] Linear space: In this application, linear space refers to the space where linear optical signals are located.
[0094] Nonlinear space: In this application, nonlinear space refers to the space where linear light signals are converted using nonlinear curves; nonlinear curves commonly used in HDR include PQ EOTF-1 curve, HLG OETF curve, etc., and nonlinear curves commonly used in SDR include gamma curves; it is generally believed that linear light signals are visually linear relative to the human eye after being encoded by the above nonlinear curves. It should be understood that nonlinear space can be considered as visual linear space.
[0095] Gamma correction: Gamma correction is a method of nonlinear color editing of images. It can detect the dark and light parts of the image signal and increase the ratio of the two, thereby improving the image contrast effect. The photoelectric conversion characteristics of current display screens, photographic films and many electronic cameras can be nonlinear. The relationship between the output and input of these nonlinear components can be expressed by a power function, that is, output = (input) γ.
[0096] The nonlinear conversion of the color values output by the device is due to the fact that the human visual system is not linear, and humans perceive visual stimuli through comparison. The external world strengthens the stimulus in a certain proportion, and for humans, this stimulus increases evenly. Therefore, for human perception, the physical quantity that increases in geometric progression is uniform. In order to display the input color according to the laws of human vision, it is necessary to convert the linear color value into a nonlinear color value through the nonlinear conversion in the form of the above power function. The value of gamma γ can be determined according to the photoelectric conversion curve of the color space.
[0097] Color space: Color can be the different perceptions of the eye for light of different frequencies, or it can represent objectively existing light of different frequencies. Color space is a range of colors defined by a coordinate system established by people to represent colors. A color gamut and a color model together define a color space. Among them, a color model is an abstract mathematical model that represents color with a set of color components. A color model may include, for example, a three-primary color light model (red green blue, RGB) and a four-color printing model (cyan magenta yellow key plate, CMYK). A color gamut refers to the sum of colors that a system can produce. Exemplarily, Adobe RGB and sRGB are two different color spaces based on the RGB model. Each device, such as a monitor or printer, has its own color space and can only generate colors within its color gamut. When an image is moved from one device to another, the color of the image may change on different devices because each device converts and displays RGB or CMYK according to its own color space.
[0098] RGB space refers to a space that uses the brightness of the three primary colors of red, green, and blue to quantitatively represent video signals; YCC space is a color space that represents the separation of brightness and color. The three components of the YCC space video signal represent brightness, chromaticity, and chromaticity respectively. Common YCC space video signals include YUV, YCbCr, ICtCp, etc.
[0099] In order to obtain images with a higher dynamic range, the bit width of the image is usually greater than or equal to 10 bits. Common coding standards that support HDR include H.266, H.265 and high efficiency image format (HEIF). The common joint photographic experts group (JPEG) and H.264 only support 8-bit encoding, so they cannot support HDR video and HDR images well.
[0100] HDR images or HDR videos may need to be transcoded during distribution or transmission. The current HDR transcoding solution is to directly transcode HDR images or HDR videos. After decoding, HDR images or HDR videos obtain HDR pixel values and HDR format identifiers and information. HDR pixel values usually need to be processed (such as image up and down sampling, enhancement, etc.). HDR format identifiers and information, as well as processed HDR pixel values are then sent to the encoder for re-encoding. The re-encoded HDR images or HDR videos are distributed to other devices. This solution of directly transcoding HDR images or HDR videos (which can be called a "single-layer transcoding solution") may cause abnormalities in the transcoded HDR images or HDR videos, affecting the user experience. Because when a single-layer coded HDR bitstream is transcoded (decoded and then re-encoded), it depends on the transcoding system to correctly send all the HDR information obtained by the decoder to the encoder. If the information is lost, the transcoding system will fail to re-encode in the correct format, resulting in an erroneous bitstream, which will result in abnormal visual effects when the user watches, seriously affecting the user experience. Because many of the distribution and transcoding systems on the market have not been upgraded to support the correct transmission of HDR information from decoding to encoding, mainstream mobile phone and application manufacturers have received many user complaints in this regard.
[0101] For ease of description, the term "HDR object" is used in some embodiments of the present application. An HDR object can be a static HDR image (also referred to as an HDR image, HDR photo, HDR picture, etc.), an HDR video or other types of dynamic HDR images, or a frame of an HDR video or a dynamic HDR image.
[0102] It is understandable that, for the sake of ease of description, some embodiments of the present application take HDR images as an example to introduce the technical solution of the present application. However, it is understandable that these embodiments can be applied not only to HDR images, but also to other HDR objects, such as HDR videos, dynamic HDR images, and a frame of an HDR video or dynamic HDR image.
[0103] The following combination Figure 5 Describe the coding and decoding system used in this application, Figure 5 A schematic block diagram of a coding and decoding system used in an embodiment of the present application is shown, for example, a video coding and decoding system 10 (or simply referred to as coding and decoding system 10) that can utilize the technology of the present application. The video encoder 20 (or simply referred to as encoder 20) and the video decoder 30 (or simply referred to as decoder 30) in the video coding and decoding system 10 represent devices that can be used to perform various technologies according to various examples described in the present application.
[0104] like Figure 5As shown, the codec system 10 includes a source device 12, which is used to provide coded data such as coded image data 21 to a target device 14 for decoding the coded data.
[0105] The source device 12 includes an encoder 20 . Optionally, the source device 12 may further include an image source 16 , a preprocessor 18 (or a preprocessing unit), and a communication interface or a communication unit 22 .
[0106] The image source 16 may include or may be any type of image capture device for capturing real-world images, etc., and / or any type of image generation device, such as a computer graphics processor for generating computer-animated images or any type of device for acquiring and / or providing real-world images, computer-generated images (e.g., screen content, virtual reality (VR) images, and / or any combination thereof (e.g., augmented reality (AR) images). The image source may be any type of memory or storage that stores any of the above images.
[0107] In order to distinguish the processing performed by the pre-processor 18 or the pre-processing unit 18 , the image or the image data 17 may also be referred to as a raw image or raw image data 17 .
[0108] The preprocessor 18 is used to receive (raw) image data 17 and preprocess the image data 17 to obtain preprocessed image data 19 or preprocessed image data 19. For example, the preprocessing performed by the preprocessor 18 may include trimming, color format conversion (e.g., from RGB to YCbCr), color adjustment, or denoising. It is understood that the preprocessing unit 18 may be an optional component.
[0109] The video encoder 20 is configured to receive the pre-processed image data 19 and provide encoded image data 21 .
[0110] The communication interface 22 in the source device 12 may be used to receive the encoded image data 21 and send the encoded image data 21 (or any other processed version thereof) to another device such as the target device 14 or any other device via the communication channel 13 for storage or reconstruction.
[0111] The target device 14 includes a decoder 30 (eg, a video decoder 30 ) and, in addition or alternatively, may include a communication interface or communication unit 28 , a post-processor 32 (or a post-processing unit 32 ), and a display device 34 .
[0112] The communication interface 28 in the target device 14 is used to receive the encoded image data 21 (or any other processed version) directly from the source device 12 or from any other source device such as a storage device, for example, the storage device is a encoded image data storage device, and provide the encoded image data 21 to the decoder 30.
[0113] The communication interface 22 and the communication interface 28 can be used to send or receive the encoded image data 21 or the encoded data through a direct communication link between the source device 12 and the target device 14, such as a direct wired or wireless connection, or through any type of network, such as a wired network, a wireless network or any combination thereof, any type of private network and public network or any combination thereof. For example, the communication interface 22 can be used to encapsulate the encoded image data 21 into a suitable format such as a message, and / or use any type of transmission coding or processing to process the encoded image data for transmission over a communication link or communication network. The communication interface 28 corresponds to the communication interface 22, for example, and can be used to receive the transmission data, and use any type of corresponding transmission decoding or processing and / or decapsulation to process the transmission data to obtain the encoded image data 21. Both the communication interface 22 and the communication interface 28 can be configured as follows: Figure 5 A unidirectional communication interface, or a bidirectional communication interface, is indicated by an arrow pointing from the source device 12 to the corresponding communication channel 13 of the target device 14, and can be used to send and receive messages, etc. to establish a connection, confirm and exchange any other information related to the communication link and / or data transmission such as encoded image data transmission, etc.
[0114] The decoder 30 is configured to receive the encoded image data 21 and to provide decoded image data 31 or decoded images 31 .
[0115] The post-processor 32 in the target device 14 is used to post-process the decoded image data 31 (also called reconstructed image data) such as the decoded image to obtain the post-processed image data 33 such as the post-processed image. The post-processing performed by the post-processor 32 may include, for example, color format conversion (e.g., conversion from YCbCr to RGB), color adjustment, cropping or resampling, or any other processing for generating the decoded image data 31 for display by the display device 34 or the like.
[0116] The display device 34 in the target device 14 is used to receive the post-processed image data 33 to display the image to a user or viewer, etc. The display device 34 can be or include any type of display for displaying the reconstructed image, such as an integrated or external display screen or display. For example, the display screen can include a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, a liquid crystal on silicon (LCoS), a digital light processor (DLP), or any other type of display screen.
[0117] although Figure 5 The source device 12 and the target device 14 are shown as independent devices, but the device embodiment may also include both the source device 12 and the target device 14 or the functions of both the source device 12 and the target device 14, that is, both the source device 12 or the corresponding functions and the target device 14 or the corresponding functions. In these embodiments, the source device 12 or the corresponding functions and the target device 14 or the corresponding functions may be implemented using the same hardware and / or software or by separate hardware and / or software or any combination thereof.
[0118] According to the description, Figure 5 The presence and (exact) division of different units or functions in the source device 12 and / or the target device 14 shown may vary depending on the actual device and application, as will be apparent to the skilled person.
[0119] Combine the following Figure 6 Describe the content providing system of the content distribution service applied by this application, Figure 6 A block diagram of a content providing system for implementing a content distribution service used in an embodiment of the present application. The content providing system 2100 includes a capture device 2102, a terminal device 2106, and an (optional) display 2126. The capture device 2102 communicates with the terminal device 2106 via a communication link 2104. The communication link may include the above-mentioned communication channel 13. The communication link 2104 includes, but is not limited to, WiFi, Ethernet, wired, wireless (3G / 4G / 5G), USB, or any combination thereof.
[0120] The capture device 2102 may encode the captured data using the encoding method shown in the embodiment of the present application. Alternatively, the capture device 2102 may distribute the captured data to a streaming media server (not shown in the figure), which encodes the data and transmits the encoded data to the terminal device 2106. The capture device 2102 includes but is not limited to a camera, a smart phone or tablet computer, a computer or laptop computer, a video conferencing system, a personal digital assistant (PDA), a vehicle-mounted device, or any combination thereof. In some embodiments, the capture device 2102 may include the above-mentioned source device 12.
[0121] The terminal device 2106 in the content providing system 2100 receives and regenerates the decoded data. The terminal device 2106 can be a device with data receiving and recovery capabilities, such as a smart phone or tablet computer, a computer / laptop 2110, a network video recorder (NVR) / digital video recorder (DVR) 2112, a television 2114, a set-top box (STB) 2116, a video conferencing system 2118, a video surveillance system 2120, a personal digital assistant 2122, a vehicle-mounted device 2124 or any combination thereof, or such a device capable of decoding the above-mentioned encoded data. In some embodiments, the terminal device 2106 can include the above-mentioned target device 14. The terminal device 2106 can decode the received data. In some embodiments, the terminal device 2106 can be a video playback application, a streaming media playback application, a streaming media playback platform or a live broadcast platform running on the terminal device.
[0122] For terminal devices with a display, such as a smartphone or tablet, computer or laptop 2110, NVR / DVR 2112, TV 2114, PDA 2122, or vehicle-mounted device 2124, the terminal device can send the decoded data to its display. For terminal devices without a display, such as STB 2116, video conferencing system 3118, or video surveillance system 2120, connect the device to an external display 2126 to receive and display the decoded data.
[0123] When each device in the system performs encoding or decoding, the image encoding device or image decoding device shown in the embodiments of the present application may be used.
[0124] Combine the following Figure 7 A streaming media system to which the embodiments of the present application are applicable is described. Figure 7 A schematic diagram of a streaming media system workflow applicable to an embodiment of the present application.
[0125] The streaming media system includes a content creation module to generate the required content data, such as video or audio. The streaming media system also includes a video encoding module to encode the generated content through an encoder. The streaming media system also includes a video stream transmission module to transmit the encoded video in the form of a code stream. Optionally, the format of the video stream can be converted into a code stream format of a common transmission protocol for OTT (over-the-top) devices, for example, the protocol includes but is not limited to Real Time Streaming Protocol (RTSP), Hyper Text Transfer Protocol (HTTP), HTTP Live streaming protocol (HLS), MPEG HTTP Dynamic Adaptive Streaming over HTTP (MPEG-DASH), Real-time Transport Protocol (RTP), Real-time Messaging Protocol (RTMP) or any combination thereof. Optionally, the video stream can be stored to store the original format of the video stream and / or the converted multiple code stream formats for easy use. Furthermore, the streaming media system also includes a video stream encapsulation module for encapsulating the video stream to generate an encapsulated video stream, which can be called a video streaming media package. Exemplarily, the video streaming media package can be generated according to the transcoded video stream or the stored video stream. Furthermore, the streaming media system also includes a content distribution network (CDN), which is used to distribute the video streaming media package to multiple OTT devices, such as mobile phones, computers, tablets, home projectors, etc.
[0126] It should be noted that video encoding, video streaming transmission, video stream transcoding, video stream storage, video streaming package generation and content distribution network can all be implemented on cloud servers.
[0127] Combine the following Figure 8 A schematic diagram describing an exemplary end-to-end process of the present application is provided.
[0128] like Figure 8As shown, the original video file (also called a master file) is obtained through material production (such as shooting a video, making a computer graphics (CG) video, etc.), editing, color grading and other procedures. Then, based on the original video file, the corresponding dynamic metadata is obtained. After encoding the original video file and the dynamic metadata, a compressed video is obtained. The compressed video is distributed / transmitted to the terminal device (for example, a computer, a set-top box, a mobile phone, a tablet computer, etc.). The terminal device decodes the compressed video to obtain a decompressed video, and then displays it to the user through a display device (for example, a monitor, a TV, etc.).
[0129] Combine the following Fig. 9 An exemplary streaming media system architecture of the present application is described. The streaming media system architecture includes: a client device, a content distribution network, and a cloud server.
[0130] The user on the client device sends a play or playback request to the cloud platform.
[0131] The cloud platform makes a decision, responds to the client device, and sends the address of the client-requested content on the CDN to the client device.
[0132] The client device then requests the CDN to play the content based on the address, and the CDN provides the content to the client device, ultimately completing the request of the client device.
[0133] Combine the following Fig.10 Describe the system architecture applicable to the embodiments of the present application. Fig.10 This is a schematic diagram of a possible system architecture applicable to an embodiment of the present application. The system architecture of the embodiment of the present application includes: a front-end device, a transmission link, and a terminal display device.
[0134] Among them, the front-end device is used to capture or produce HDR / SDR content (for example, HDR / SDR video or image).
[0135] In a possible embodiment, the front-end device can also be used to extract corresponding metadata from the HDR content, and the metadata may include global mapping information, local mapping information, and dynamic metadata and static metadata corresponding to the HDR content. The front-end device can send the HDR content and metadata to the terminal display device through a transmission link. Specifically, the HDR content and metadata can be transmitted in the form of one data packet, or in two data packets respectively, which is not specifically limited in the embodiments of the present application.
[0136] Optionally, the terminal display device can be used to receive metadata and HDR content, and extract the global mapping information, local mapping information and the terminal display device information contained in the corresponding metadata according to the HDR content, obtain a mapping curve to perform global tone mapping and local tone mapping on the HDR content, convert it into display content adapted for the HDR display device or SDR device in the terminal display device, and display it. It should be understood that in different embodiments, the terminal display device may include a display device with a display capability of a lower dynamic range or a higher dynamic range than the HDR content generated by the front-end device, and this application is not limited thereto.
[0137] Optionally, the front-end device and the terminal display device in the present application may be independent and different physical devices. For example, the front-end device may be a video acquisition device or a video production device, wherein the video acquisition device may be a video camera, a camera, an image plotter, etc. The terminal display device may be a device with a video playback function, such as virtual reality (VR) glasses, a mobile phone, a tablet, a television, a projector, etc.
[0138] Optionally, the transmission link between the front-end device and the terminal display device can be a wireless connection or a wired connection, wherein the wireless connection can adopt technologies including, for example, long term evolution (LTE), fifth generation (5G) mobile communications, and future mobile communications. Wireless connections can also include technologies such as wireless fidelity (WiFi), Bluetooth, and near field communication (NFC). Wired connections can include Ethernet connections, local area network connections, etc. There is no specific limitation on this.
[0139] The present application may also integrate the functions of the front-end device and the functions of the terminal display device on the same physical device, for example, a terminal device such as a mobile phone or a tablet with a video shooting function. The present application may also integrate some functions of the front-end device and some functions of the terminal display device on the same physical device. There is no specific limitation on this.
[0140] Fig.11 Schematic diagram of a method for processing digital signals provided in accordance with an embodiment of the present application. Fig.11 As shown, the method for processing digital signals provided in the embodiment of the present application can be applied at the decoding end.
[0141] The decoding module (also referred to as a decoder) can obtain the base layer data, the enhancement layer data and the metadata from the received bitstream. Then, the decoding module can synthesize the base layer data and the enhancement layer data to obtain an HDR image.
[0142] The graphics processing module can process the HDR image. The graphics processing module can also process the base layer data. The graphics processing module can send the processed HDR image and base layer data to the display module.
[0143] The display module may present an HDR image based on the received data (ie, the processed HDR image and the processed base layer data).
[0144] For the sake of ease of description, the HDR image obtained by the decoding module based on the basic layer data and the enhanced layer data can be called HDR image 1, the HDR image obtained after the graphics processing module processes the HDR image 1 can be called HDR image 2, and the HDR image displayed by the display module can be called HDR image 3.
[0145] The base layer data, which may also be referred to as a base layer image, a base image or a basic image, may be an SDR image or an HDR image with a lower dynamic range.
[0146] The enhancement layer data, which may also be referred to as enhancement data, enhancement layer image or enhancement image, may include some image detail information. Thus, the image detail information contained in the enhancement layer data is used to supplement the base layer data, thereby synthesizing an HDR image with better contrast (i.e., the HDR image 1 mentioned above).
[0147] The dynamic range of the base layer data is smaller than the dynamic range of the HDR image (ie, HDR image 1) determined based on the base layer data and the enhancement layer data.
[0148] For example, in some embodiments, the base layer data may be an SDR image, and HDR image 1 is an HDR image.
[0149] For another example, in some other embodiments, the base layer data may be an HDR image, but the dynamic range of the HDR image is smaller than the dynamic range of the HDR image 1 .
[0150] For example, assuming the dynamic range of the base layer data is DR x1 To DR x2 , the dynamic range of HDR image 1 is DR y1 To DR y2 In some embodiments, DR y1 Less than DR x1 , DR y2 Greater than DR x2 In other embodiments, DR y1 Less than DR x1 , DR y2 Equal to DR x2 In other embodiments, DR y1 Equal to DRx1 , DR y2 Greater than DR x2 In other words, the base layer data can be considered to be an image having a smaller dynamic range than the HDR image 1.
[0151] Fig.12 is a schematic flow chart of an encoding method provided according to an embodiment of the present application. Fig.12 The method shown can be performed by an electronic device or a component in an electronic device (such as a chip, a system on chip (SoC), etc.). The electronic device can be as follows Figure 5 The source device 12 shown, Figure 6 The capture device 2102 shown or Fig.10 For ease of description, the following embodiments assume that Fig.12 The method shown is performed by an electronic device. The present application embodiment also provides a decoding method. The decoding method can be performed by an electronic device or a component (such as a chip, SoC, etc.) in the electronic device. The electronic device can be as follows Figure 5 The target device 14, such as Figure 6 The terminal device 2106 shown or Fig.10 In some embodiments, in order to distinguish between an electronic device that performs an encoding device and an electronic device that performs a decoding device, the electronic device that performs the encoding method may be referred to as a first electronic device, and the electronic device that performs the decoding method may be referred to as a second electronic device.
[0152] 1201. Obtain a first HDR image and basic layer data corresponding to the first HDR image.
[0153] 1202. Determine first intermediate enhancement layer data according to the first HDR image and the first basic layer data.
[0154] Optionally, in some embodiments, determining first intermediate enhancement layer data based on the first HDR image and the first basic layer data includes: determining second basic layer data based on the first basic layer data; determining the first intermediate enhancement layer data based on the first HDR image and the second basic layer data.
[0155] Optionally, in some embodiments, the first basic layer data and the second basic layer data may be the same.
[0156] Optionally, in some other embodiments, the first basic layer data may be processed according to the second mapping relationship to obtain the second basic layer data.
[0157] Optionally, in some other embodiments, the second basic layer data may be determined according to the intermediate basic layer data. The intermediate basic layer data may be determined according to the first basic layer data.
[0158] Optionally, in some embodiments, the intermediate basic layer data may be the same as the first basic layer data.
[0159] Optionally, in some other embodiments, the first basic layer data may be encoded to obtain first basic layer encoding information; the first basic layer encoding information result may be decoded to obtain first basic layer decoding information, and the intermediate basic layer data is the first basic layer decoding information.
[0160] In some embodiments, the second base layer data is the same as the intermediate base layer data.
[0161] In some other embodiments, at least one characteristic value (which may be referred to as a basic layer characteristic value) of the intermediate basic layer data may also be determined, and then the second basic layer data may be determined according to the at least one basic layer characteristic value. The basic layer characteristic value may include: a maximum value, a minimum value, or an intermediate value of a pixel of the intermediate basic layer data. When at least one basic layer characteristic value is determined, the at least one basic layer characteristic value may be mapped to at least one numerical value (which may be referred to as a basic layer reference value) to obtain the second basic layer data. The at least one basic layer characteristic value corresponds to the at least one basic layer reference value one by one. The second basic layer data includes the at least one basic layer reference value.
[0162] In other embodiments, at least one characteristic brightness value can be determined based on the first HDR image; at least one pixel is determined from the intermediate basic layer data, the at least one pixel corresponds one-to-one to the at least one characteristic brightness value, and the position of each pixel in the at least one pixel is the same as the position of the corresponding characteristic brightness value; a second mapping relationship is determined based on the at least one characteristic brightness value and the value of the at least one pixel; and based on the second mapping relationship, the intermediate basic layer data is processed to obtain the second basic layer data.
[0163] As described above, in some embodiments, the intermediate basic layer data may be the same as the first basic layer data. In this case, the intermediate basic layer data in the above embodiment may be replaced with the first basic layer data. For example, in some embodiments, at least one characteristic brightness value may be determined based on the first HDR image; at least one pixel may be determined from the first basic layer data, the at least one pixel corresponds to the at least one characteristic brightness value one-to-one, and the position of each pixel in the at least one pixel is the same as the position of the corresponding characteristic brightness value; the second mapping relationship may be determined based on the at least one characteristic brightness value and the value of the at least one pixel. Based on the second mapping relationship, the first basic layer data may be processed to determine the second basic layer data.
[0164] The embodiment of the present application does not limit the form of the second mapping relationship. For example, in some embodiments, the second mapping relationship can be in the form of Sigmoid, cubic spline, gamma, straight line, piecewise curve, etc. or its inverse function form. For example, in some embodiments, the second mapping relationship can adopt a curve. For example, the following curve can be adopted:
[0165]
[0166] Or the inverse curve of the curve. L and L' can be normalized optical signals or electrical signals, which is not limited in the embodiment of the present application.
[0167] Optionally, in some embodiments, determining at least one characteristic brightness value according to the first HDR image includes: determining a brightness value at a peak position in a histogram of the first HDR image as the characteristic brightness value.
[0168] Optionally, in some embodiments, determining at least one characteristic brightness value based on the first HDR image includes: determining at least one reference area in the first HDR image; determining a reference brightness value of each reference area in the at least one reference area as the characteristic brightness value, the reference brightness value of each reference area being an average brightness value or a maximum brightness value of each reference area.
[0169] The reference area may be an area containing preset or specified content or objects. For example, the reference area may be an area containing a human face, an area containing green plants, an area containing a blue sky, etc.
[0170] Optionally, in some embodiments, the intermediate basic layer data and the second basic layer data may satisfy the following relationship:
[0171] baseAfter[i] = TMB2(R base[i]_1 ), (Formula 1.1)
[0172] Where baseAfter[i] represents the value of the i-th pixel in the second basic layer data, R base[i]_1 represents the value of the i-th pixel in the intermediate basic layer data or the first reference value, TMB2() represents the second mapping relationship, and the first reference value is determined according to the value of the i-th pixel in the intermediate basic layer data.
[0173] Optionally, in some other embodiments, the intermediate basic layer data and the second basic layer data may satisfy the following relationship:
[0174] baseAfter[i] = TMB2(Rbase [i]_2 )×Rbase[i]_3 , (Formula 1.2)
[0175] Wherein, baseAfter[i] represents the value of the i-th pixel in the second basic layer data, TMB2() represents the second mapping relationship, and Rbase [i]_2 is the value of the i-th pixel in the intermediate base layer data or a second reference value, the second reference value is determined according to the value of the i-th pixel in the intermediate base layer data, Rbase [i]_3 It is the value of the i-th pixel in the intermediate basic layer data or a third reference value, and the third reference value is determined according to the value of the i-th pixel in the intermediate basic layer data.
[0176] Optionally, in some other embodiments, the intermediate basic layer data and the second basic layer data may satisfy the following relationship:
[0177] baseAfter[i]=TMB2()×Rbase [i]_4 , (Formula 1.3)
[0178] Wherein, baseAfter[i] represents the value of the i-th pixel in the second basic layer data, TMB2() represents the second mapping relationship, and Rbase [i]_4 It is the value of the i-th pixel in the intermediate basic layer data or a fourth reference value, and the fourth reference value is the i-th pixel determined according to the value of the i-th pixel in the intermediate basic layer data.
[0179] As described above, in some embodiments, the first basic layer data is the same as the intermediate basic layer data. Therefore, the relationship between the first basic layer data and the second basic layer data may also satisfy Formula 1.1 or Formula 1.2 or Formula 1.3. In this case, R in Formula 1.1 base[i]_1 Rbase in Formula 1.2 represents the value of the i-th pixel in the first basic layer data or the first reference value, and the first reference value is determined according to the value of the i-th pixel in the first basic layer data. [i]_2 is the value of the i-th pixel in the first basic layer data or the second reference value, the second reference value is the second reference value of the i-th pixel determined according to the value of the i-th pixel in the first basic layer data, Rbase [i]_3 is the value of the i-th pixel in the first basic layer data or a third reference value, and the third reference value is determined according to the value of the i-th pixel in the first basic layer data. Rbase in Formula 1.3 [i]_4 It is the value of the i-th pixel in the first basic layer data or a fourth reference value, and the fourth reference value is the i-th pixel determined according to the value of the i-th pixel in the first basic layer data.
[0180] In some embodiments, the second mapping relationship may further include at least one filter information, and the first basic layer data or the intermediate basic layer data is filtered according to the at least one filter information to obtain the second basic layer data.
[0181] When the second base layer data is determined, the first intermediate enhancement layer data may be determined according to the first HDR image and the second base layer data.
[0182] Optionally, in some embodiments, the second basic layer data may be processed according to a target numerical conversion function to obtain a converted result; and the first intermediate enhancement layer data may be determined according to the first HDR image and the converted result.
[0183] Optionally, in some embodiments, the first intermediate enhancement layer data is the quotient of the data of the first HDR image and the converted result.
[0184] Optionally, in some embodiments, the first intermediate enhancement layer data is the difference between the data of the first HDR image and the converted result.
[0185] If baseAfter[i] represents the value of the i-th pixel in the second base layer data, and f() represents the target conversion function, then the converted result can be expressed as f(baseAfter[i]). If HDR1[i] represents the value of the i-th pixel in the first HDR image, and MidEnhance[i] represents the value of the i-th pixel in the first intermediate enhancement layer data, then in some embodiments, MidEnhance[i], HDR1[i] and f(baseAfter[i]) can satisfy the following relationship:
[0186] MidEnhance[i]=HDR1[i] / f(baseAfter[i]), (Formula 2.1).
[0187] In some other embodiments, MidEnhance[i], HDR1[i], and f(baseAfter[i]) may satisfy the following relationship:
[0188] MidEnhance[i]=HDR1[i]-f(baseAfter[i]), (Formula 2.2).
[0189] The embodiments of the present application do not limit the target conversion function f(). For example, in some embodiments, the target conversion function can be log, OETF or EOTF, a piecewise curve, etc. For example, in some embodiments, f(baseAfter[i])=baseAfter[i]. For example, in other embodiments, f(baseAfter[i])=A×baseAfter[i], where parameter A can be a preset value or a value determined according to baseAfter[i]. For example, in other embodiments, f(baseAfter[i])=baseAfter[i]+B, where parameter B can be a preset value or a value determined according to baseAfter[i].
[0190] In other embodiments, the second mapping relationship may also be directly determined from a plurality of mapping relationships (eg, a numerical mapping relationship, a sigmoid, a cubic spline, a gamma, a straight line or a piecewise curve, or an inverse function thereof).
[0191] In other embodiments, the second mapping relationship may also be a preset or pre-negotiated mapping relationship.
[0192] In the case where the second mapping relationship is determined by the first electronic device, the second mapping relationship may also be indicated to the second electronic device through metadata.
[0193] Optionally, in some embodiments, before processing the second basic layer data according to the target value conversion function, the second basic layer data may be preprocessed to obtain preprocessed second basic layer data, and then the preprocessed second basic layer data is processed according to the target value conversion function.
[0194] For example, the preprocessing may be to obtain the data range (minimum value and / or maximum value) of the second basic layer data, map the minimum value of the second basic layer data to a preset value, map the maximum value to a preset value, and / or map the intermediate value to an intermediate value according to the mapping relationship of the maximum value or the minimum value.
[0195] For another example, the preprocessing may be normalizing the second basic layer data.
[0196] In some embodiments, the method of preprocessing may be preset or pre-negotiated.
[0197] In some other embodiments, the preprocessing method may be determined by the first electronic device. In this case, the preprocessing method may also be indicated to the second electronic device through metadata.
[0198] 1203. Process the first intermediate enhancement layer data according to the first mapping relationship to obtain first enhancement layer data.
[0199] Optionally, in some embodiments, the first intermediate enhancement layer data may be downsampled to obtain second intermediate enhancement layer data, and then the second intermediate enhancement layer data may be processed according to the first mapping relationship to obtain the first enhancement layer data.
[0200] Optionally, in some other embodiments, it is not necessary to downsample the first intermediate enhancement layer data. In this case, the first intermediate enhancement layer data can be directly processed according to the first mapping relationship to obtain the first enhancement layer data. In other words, it can also be considered that the first intermediate enhancement layer data is equal to the second intermediate enhancement layer data.
[0201] In some embodiments, a target interpolation method may be determined, and the first intermediate enhanced data may be downsampled using the target interpolation method.
[0202] Optionally, in some embodiments, the target interpolation method may be determined from a plurality of interpolation methods. The target interpolation method may be the optimal interpolation method among the plurality of interpolation methods. Assume that there are K interpolation methods (K is a positive integer greater than or equal to 2). The first intermediate enhanced data is downsampled using the K interpolation methods to obtain K interpolation results. The K interpolation results are then upsampled using the K interpolation methods to obtain K restored data. The K restored data are compared with the first intermediate enhanced data to determine the restored data with the smallest difference from the first intermediate enhanced data. The interpolation method used to determine the restored data with the smallest difference is the optimal interpolation method, that is, the target interpolation method. In other words, the difference between the recovered data obtained after upsampling the second intermediate enhancement data using the target interpolation method and the first intermediate enhancement data is smaller than the difference between the recovered data obtained after upsampling the reference intermediate enhancement data according to the reference interpolation method and the first intermediate enhancement data, wherein the reference intermediate enhancement data is the intermediate enhancement data obtained after downsampling the first intermediate enhancement data according to the reference interpolation method, and the reference interpolation method is any interpolation method among the multiple interpolation methods except the target interpolation method.
[0203] Optionally, in some embodiments, the multiple interpolation methods may include: GL_NEAREST (nearest neighbor) and GL_LINEAR (nearest neighbor) of OPENGL texture interpolation methods. In other embodiments, the multiple interpolation methods also include Vulkan's texture interpolation method NEAREST (nearest neighbor) or LINEAR (nearest neighbor). In other embodiments, the multiple interpolation methods may include multiple groups of filters. In other embodiments, the multiple interpolation methods may include multiple directional interpolation methods, or bicubic splines. In other embodiments, the multiple interpolation methods may also include all of the above methods, multiple of the above methods, or a subset of one of the above methods, etc.
[0204] In other embodiments, the target interpolation method may be a preset interpolation method. For example, the target interpolation method may be a preset filter. For example, in other embodiments, the target interpolation method may be a method including multiple directional interpolation methods. For example, in other embodiments, the target interpolation method may be a bicubic spline.
[0205] The first mapping relationship may be a numerical mapping relationship, sigmoid, cubic spline, gamma, straight line or piecewise curve, etc.
[0206] For example, the numerical mapping relationship may be a relationship between a specific data range and a data range of the second intermediate enhancement layer data. For example, the specific data range may include a first value and / or a second value, a maximum value of the second intermediate enhancement data is mapped to the first value, a minimum value of the second intermediate enhancement data is mapped to the second value, and / or an intermediate value in the second intermediate enhancement data is mapped to a value between the first value and the second value.
[0207] For another example, the numerical mapping relationship may also be normalized. In other words, processing the second intermediate enhancement layer data according to the first mapping relationship to obtain the first enhancement layer data may be normalizing the second intermediate enhancement data to obtain the normalized second intermediate enhancement data. The normalized second intermediate enhancement layer data is the first enhancement layer data.
[0208] For another example, the first mapping relationship may adopt the following curve:
[0209]
[0210] Or the inverse curve of the curve. L and L' can be normalized optical signals or electrical signals, which is not limited in the embodiment of the present application.
[0211] In some other embodiments, the first mapping relationship may also be determined according to a histogram of the second intermediate enhanced data. For example, the histogram of the second intermediate enhanced data may be obtained, for example, the first mapping relationship may be obtained by a histogram equalization method.
[0212] Optionally, in some embodiments, the first mapping relationship may further include at least one filter information, and the second intermediate enhancement layer data is filtered according to the at least one filter information to obtain the first enhancement layer data.
[0213] Optionally, in some embodiments, the second intermediate enhancement layer data and the first enhancement layer data may satisfy the following relationship:
[0214] EnhanceAfter[i]=TMB1(RMidEnhance [i] ), (Formula 3.1)
[0215] Among them, EnhanceAfter[i] represents the value of the i-th pixel in the first enhancement layer data, RMidEnhance [i] represents the value or reference value of the i-th pixel in the second intermediate enhancement layer data, TMB1() represents the first mapping relationship, and the reference value is determined according to the value of the i-th pixel of the second intermediate enhancement layer data.
[0216] Optionally, in some other embodiments, the second intermediate enhancement layer data and the first enhancement layer data may satisfy the following relationship:
[0217] EnhanceAfter[i]=TMB1()×RMidEnhance [i] , (Formula 3.2)
[0218] Among them, EnhanceAfter[i] represents the value of the i-th pixel in the first enhancement layer data, TMB1() represents the first mapping relationship, RMidEnhance [i]_4 is the value of the i-th pixel in the second intermediate enhancement layer data or a reference value, and the reference value is the i-th pixel determined according to the value of the i-th pixel in the second intermediate enhancement layer data.
[0219] It can be understood that if the first intermediate enhancement layer data is not downsampled, but the first intermediate enhancement layer data is directly processed according to the first mapping relationship to obtain the first enhancement layer data, then the relationship between the first intermediate enhancement layer data and the first enhancement layer data can also satisfy Formula 3.1 or Formula 3.2. In this case, RMidEnhance [i]It represents the value of the i-th pixel in the first intermediate enhancement layer data or a reference value determined according to the value of the i-th pixel in the first intermediate enhancement layer data.
[0220] Optionally, in some embodiments, the second intermediate enhancement layer data or the first intermediate enhancement layer data may be first converted to nonlinear domain data such as log, PQ, HLG or gamma, and then the converted second intermediate enhancement layer data or the first intermediate enhancement layer data may be processed using the first mapping relationship to obtain the first enhancement layer data.
[0221] Optionally, in other embodiments, after processing the second intermediate enhancement layer data or the first intermediate enhancement layer data using the first mapping relationship, processed data can be obtained, and then the processed data can be converted to a nonlinear domain such as log, PQ, HLG or gamma to obtain the first enhancement layer data.
[0222] 1204. Encode the first basic layer data, the first enhanced layer data, and the first metadata to obtain a code stream.
[0223] In some embodiments, the first metadata includes metadata of the first base layer data and metadata of the first enhancement layer data.
[0224] In some embodiments, the first metadata may include first mapping relationship indication information. The first mapping relationship indication information is used to indicate information related to the first mapping relationship. For example, the first mapping relationship indication information can be used to indicate any one or more of the following information: the first mapping relationship, the parameters of the first mapping relationship (e.g., the first value and / or the second value in the numerical mapping relationship), the characteristic value of the second intermediate enhancement layer data or the first intermediate enhancement layer data (e.g., the maximum value, the minimum value, and / or the middle value, etc.), the inverse mapping of the first mapping relationship (which can be called a "third mapping relationship"), or the parameters of the third mapping relationship.
[0225] For example, in some embodiments, the first mapping relationship may be determined by the first electronic device from a plurality of mapping relationships. In this case, the first electronic device may indicate the determined first mapping relationship to the second electronic device through the first mapping relationship indication information. The second electronic device may determine the third mapping relationship based on the first mapping relationship, thereby processing the data in the received code stream based on the third mapping relationship.
[0226] For another example, in some embodiments, the first mapping relationship may be determined by the first electronic device from a plurality of mapping relationships. In this case, the first electronic device may directly indicate the third mapping relationship or the parameters of the third mapping relationship to the second electronic device through the first mapping relationship indication information. In this way, the second electronic device may directly determine the third mapping relationship without determining the third mapping relationship based on the first mapping relationship.
[0227] For another example, in some embodiments, the parameters of the first mapping relationship may also be determined by the first electronic device. In this case, the first mapping relationship indication information may also indicate the parameters of the first mapping relationship. In other embodiments, the parameters of the first mapping relationship may be preset or pre-negotiated. In this case, the first mapping relationship indication information may not carry the preset or pre-negotiated parameters.
[0228] For another example, in some embodiments, the first mapping relationship may be preset or pre-negotiated, and the first mapping relationship indication information may not need to indicate the first mapping relationship or the third mapping relationship.
[0229] The first mapping relationship indication information may directly or indirectly indicate the above information. For example, in some embodiments, the first mapping relationship indication information may directly carry information related to the first mapping relationship. For example, in other embodiments, the first mapping relationship indication information may indicate information related to the first mapping relationship by means of an index.
[0230] For example, in some embodiments, different mapping relationships may have different indexes. The first mapping relationship indication information may include the index of the first mapping relationship.
[0231] For another example, different parameters of the same mapping relationship may correspond to different indexes. For example, the index value 0001 corresponds to a numerical mapping relationship in which the first value and the second value are 0 and 1 respectively; the index value 0011 corresponds to a numerical mapping relationship in which the first value and the second value are -1 and 1 respectively.
[0232] For example, in some other embodiments, the first mapping relationship indication information may include two indexes. The two indexes may be respectively referred to as the first index and the second index, the first index is used to indicate the second mapping relationship, and the second index is used to indicate the parameters of the second mapping relationship. For example, the first index value is 001, which is used to indicate that the second mapping relationship is a numerical mapping relationship; the second index value is 01, which is used to indicate that the first value is 0 and the second value is 1.
[0233] As described above, in some embodiments, the second mapping relationship for determining the second basic layer data may be determined by the first electronic device. In this case, the first metadata may include second mapping relationship indication information. The second mapping relationship indication information is used to indicate information related to the second mapping relationship. For example, the second mapping relationship indication information may be used to indicate any one or more of the following information: the second mapping relationship, the parameters of the second mapping relationship, the characteristic values of the intermediate basic layer data (such as the maximum value, the minimum value, and / or the intermediate value, etc.), the inverse mapping of the second mapping relationship (which may be referred to as the "fourth mapping relationship"), or the parameters of the fourth mapping relationship. Similar to the first mapping relationship indication information, the second mapping relationship indication information may directly or indirectly indicate the above information.
[0234] As described above, in some embodiments, the second intermediate enhanced data is obtained by downsampling the first intermediate enhanced data. In this case, the first metadata may also include interpolation method indication information, and the interpolation method indication information is used to indicate the target interpolation method. In this way, the second electronic device can determine the target interpolation method according to the interpolation method indication information, and then use the target interpolation method for upsampling.
[0235] As described above, in some embodiments, before the second basic layer data is processed according to the target numerical conversion function, the second basic layer data may also be preprocessed. In the case where the preprocessing method is determined by the first electronic device, the first metadata may also include preprocessing indication information. The preprocessing indication information is used to indicate the preprocessing method and related parameters (such as maximum value and / or minimum value) in the preprocessing.
[0236] The first metadata may also carry some general information, such as data format, region division information, region traversal order information, or image features, encoding compression format, curve parameters, etc., as well as one or more metadata information units. The metadata information unit may contain data such as coordinate information, image features, and curve parameters.
[0237] Fig.13 is a schematic flow chart of a decoding method provided according to an embodiment of the present application. Fig.13 The method shown can be performed by an electronic device or a component (such as a chip, SoC, etc.) in the electronic device. The electronic device can be as follows Figure 5 The target device 14 in the example Figure 6 The terminal device 2106 shown or Fig.10 For ease of description, the following embodiments assume that Fig.13 The method shown is performed by an electronic device.
[0238] 1301. Decode the acquired code stream to obtain first basic layer data, first enhancement layer data, and first metadata.
[0239] The code stream can be obtained by the encoding end device through Fig.12 For ease of description, assume that Fig.12 The method is performed by a first electronic device. Fig.13 The method shown is executed by a second electronic device.
[0240] In some embodiments, the first electronic device and the second electronic device may be different electronic devices. For example, in some embodiments, after the first electronic device completes the encoding, it may send the code stream to the second electronic device through a transmission link (e.g., optical fiber, WiFI, 3G / 4G / 5G network, etc.). The second electronic device may receive the code stream through the communication link. The first electronic device may also store the code stream in a storage device (e.g., a mobile hard disk, a USB flash drive, etc.). The second electronic device may read the storage device and obtain the code stream stored in the storage device.
[0241] In some other embodiments, the first electronic device and the second electronic device may also be the same electronic device. For example, a smartphone may shoot a video through a camera assembly, and then obtain corresponding first metadata based on the original video file. After encoding the original video file and the first metadata, a code stream is obtained. The code stream is encapsulated into a video file and saved in the built-in memory of the smartphone. The smartphone can read the video file and obtain the code stream. In this case, the first electronic device and the second electronic device are both the smartphone.
[0242] The encapsulation position of the first metadata is determined by the first electronic device when encoding. For example, in some embodiments, if the code stream is encoded using high efficiency video coding (HEVC) or versatile video coding (VVC), the second electronic device can obtain the first metadata from the supplemental enhancement information (SEI) of HEVC or VVC. For another example, in some embodiments, if the code stream is encoded using advanced video coding (AVC) / H.264, the second electronic device can obtain the first metadata from the user-defined network abstraction layer (NAL) unit or reserved packet unit. For another example, in some embodiments, the second electronic device can obtain the first metadata from the APP extension information encapsulated in the JPEG file interchange format. For another example, in some embodiments, the second electronic device can obtain the first metadata from the data segment encapsulated by the moving picture experts group (MPEG)-Part 14 (MPEG-4part 14, MP4).
[0243] The first metadata may carry some general information, such as data format, region division information, region traversal order information, or image features, coding compression format, curve parameters, and one or more metadata information units. The metadata information unit may include coordinate information, image features, curve parameters, and other data.
[0244] The embodiment of the present application does not limit the format of the first metadata. For example, the first metadata may include histogram information and tone-mapping curve parameter information such as ST20114-40, or may include tone-mapping curve parameter information such as ST20114-12.
[0245] The embodiment of the present application does not limit the code stream format of the base layer data and the enhancement layer data (including the first enhancement layer data and the second enhancement layer data mentioned later). In terms of color space, it can be YUV, RGB, Lab, HSV, etc. In terms of data bit width, it can be 8 bits, 10 bits or 12 bits, etc. In terms of value domain, it can be PQ, HLG, gamma or log, etc.
[0246] The embodiments of the present application are not limited to the codec, and can use codecs such as JPEG, HEIF, H.264, and HEVC.
[0247] 1302. Process the first enhancement layer data according to a third mapping relationship to obtain third intermediate enhancement layer data.
[0248] The third mapping relationship may be one or more of a numerical mapping relationship, a sigmoid, a cubic spline, a gamma, a straight line, a piecewise curve, and the like.
[0249] For example, the numerical mapping relationship may be a relationship between a specific data range and a data range of the second intermediate enhancement layer data. For example, the specific data range may include a first value and / or a second value, a maximum value of the second intermediate enhancement data is mapped to the first value, a minimum value of the second intermediate enhancement data is mapped to the second value, and / or an intermediate value in the second intermediate enhancement data is mapped to a value between the first value and the second value.
[0250] For another example, the first mapping relationship may adopt the following curve:
[0251]
[0252] Or the inverse curve of the curve. L and L' can be normalized optical signals or electrical signals, which is not limited in the embodiment of the present application.
[0253] The third mapping relationship may be the inverse mapping of the first mapping relationship. For example, when the first mapping relationship is normalized, the third mapping relationship is inverse normalized. In other words, when the first enhancement layer data is obtained by the first electronic device normalizing the second intermediate enhancement layer data, the second electronic device may perform inverse normalization on the first enhancement layer data to obtain the third enhancement layer data.
[0254] In some embodiments, the first metadata may include first mapping relationship indication information, and the first mapping relationship indication information is used to indicate information related to the first mapping relationship. For example, the first mapping relationship indication information can be used to indicate any one or more of the following information: the first mapping relationship, the parameters of the first mapping relationship, the characteristic values of the intermediate basic layer data (such as the maximum value, the minimum value, and / or the intermediate value, etc.), the inverse mapping of the first mapping relationship (i.e., the third mapping relationship), or the parameters of the third mapping relationship. In some embodiments, the second electronic device can determine the third mapping relationship and / or the parameters of the third mapping relationship based on the first mapping relationship indication information. Therefore, it can also be considered that the first mapping relationship indication information indicates information related to the third mapping relationship. The first mapping relationship indication information can also be called the third mapping relationship indication information.
[0255] For example, in some embodiments, the first mapping relationship indication information may indicate a first eigenvalue THH1 and a second eigenvalue THL1. Optionally, in some embodiments, the first eigenvalue may be a maximum value of the second intermediate enhancement layer data, and the second eigenvalue may be a minimum value of the second intermediate enhancement layer data. In other embodiments, the first eigenvalue may be a maximum value of the first intermediate enhancement layer data, and the second eigenvalue may be a minimum value of the first intermediate enhancement layer data. For specific information about the second intermediate enhancement layer data and the first intermediate enhancement layer data, please refer to the above embodiments, which will not be repeated here for the sake of brevity.
[0256] In some embodiments, the first enhancement layer data and the third intermediate enhancement layer data may satisfy the following relationship:
[0257] EnhanceAfter[i]=Enhance[i]×THH1+(A-Enhanceβ[i])×THL1, (Formula 4.1)
[0258] Among them, EnhanceAfter[i] represents the value of the i-th pixel in the third intermediate enhancement layer data, Enhance[i] represents the value of the i-th pixel in the first enhancement layer data, THH1 represents the first eigenvalue, and THL1 represents the second eigenvalue. A is the maximum value of the normalization interval corresponding to the second intermediate enhancement layer data. For example, if the normalization interval is [0,1], then A is 1. If the first electronic device normalizes the second intermediate enhancement layer data or the first intermediate enhancement layer data, then the second electronic device can perform inverse normalization on the first enhancement layer data using formula 4.1 to obtain the third intermediate enhancement layer data. In other words, when the first mapping relationship is normalization, the third mapping relationship is inverse normalization.
[0259] It is understandable that the above normalized interval 0 to 1.0 is just an example of a normalized interval. The normalized interval can also be other numerical ranges, for example, 0 to 2.0, -1.0 to 1.0, or 1.0 to 10.0, etc.
[0260] The first eigenvalue THH1 and the second eigenvalue THL1 may also be the maximum value and the minimum value of the third intermediate enhancement layer data, respectively.
[0261] For another example, in some embodiments, the first mapping relationship indication information may indicate the first eigenvalue THH1 or the second eigenvalue THL1.
[0262] In the case where the first mapping relationship indication information indicates the first characteristic value THH1, the first enhancement layer data and the third intermediate enhancement layer data may satisfy the following relationship:
[0263] EnchenceAfter[i]=THH1+A-Enchence[i], (Formula 4.2).
[0264] Wherein, EnhanceAfter[i] represents the value of the i-th pixel in the third intermediate enhancement layer data, Enhance[i] represents the value of the i-th pixel in the first enhancement layer data, and THH1 represents the first eigenvalue. A is the maximum value of the normalized interval corresponding to the second intermediate enhancement layer data. For example, if the normalized interval is [0,1], then A is 1.
[0265] In the case where the first mapping relationship indication information indicates the second eigenvalue THL1, the first enhancement layer data and the third intermediate enhancement layer data may satisfy the following relationship:
[0266] EnchenceAfter[i]=Enchence[i]+THL1, (Formula 4.3).
[0267] Among them, EnhanceAfter[i] represents the value of the i-th pixel in the third intermediate enhancement layer data, Enhance[i] represents the value of the i-th pixel in the first enhancement layer data, and THL1 represents the second eigenvalue.
[0268] As another example, in some embodiments, the second electronic device may determine the third mapping relationship and the parameters of the third mapping relationship based on the first mapping relationship indication information. For example, the third mapping relationship and the parameters of the third mapping relationship may be directly indicated in the first mapping relationship indication information. As another example, the first mapping relationship indication information may include the first mapping relationship and the parameters of the first mapping relationship. In this case, the second electronic device may determine the third mapping relationship and the parameters of the third mapping relationship based on the first mapping relationship and the parameters of the first mapping relationship. In other embodiments, the mapping relationship may be preset. In this case, the second electronic device may determine the third mapping relationship based on the preset mapping relationship and the parameters of the third mapping relationship indicated by the first mapping relationship indication information or the parameters of the first mapping relationship.
[0269] Optionally, in some embodiments, the first enhancement layer data and the third intermediate enhancement layer data may satisfy the following relationship:
[0270] EnhanceAfter[i]=TMB3(RMidEnhance [i]1 ), (Formula 4.4)
[0271] Among them, EnhanceAfter[i] represents the value of the i-th pixel in the third intermediate enhancement layer data, RMidEnhance [i] represents the value or reference value of the i-th pixel in the first enhancement layer data, TMB3() represents the third mapping relationship, and the reference value is determined according to the value of the i-th pixel of the second intermediate enhancement layer data.
[0272] Optionally, in some other embodiments, the first enhancement layer data and the third intermediate enhancement layer data may satisfy the following relationship:
[0273] EnhanceAfter[i]=TMB3()×RMidEnhance [i] , (Formula 4.5)
[0274] Among them, EnhanceAfter[i] represents the value of the i-th pixel in the third intermediate enhancement layer data, TMB3() represents the third mapping relationship, RMidEnhance [i] is the value or reference value of the i-th pixel in the first enhancement layer data, and the reference value of the i-th pixel is determined according to the value of the i-th pixel in the first enhancement layer data.
[0275] The reference value of the first enhancement layer data may be determined based on the first eigenvalue THH1 and the second eigenvalue THL1. [i] , THH1 and THL1 can satisfy the following relationship:
[0276] RMidEnhance [i] =Enhance[i]×THH1+(A-Enhanceβ[i])×THL1, (Formula 4.6)
[0277] Among them, RMidEnhance [i] represents the reference value of the i-th pixel in the first enhancement layer data. Enhance[i] represents the value of the i-th pixel in the first enhancement layer data, THH1 represents the first eigenvalue, and THL1 represents the second eigenvalue. A is the maximum value of the normalized interval corresponding to the second intermediate enhancement layer data. For example, if the normalized interval is [0,1], then A is 1.
[0278] In summary, in some embodiments, the first enhancement layer data and the third intermediate enhancement layer data may satisfy the following relationship:
[0279] EnhanceAfter[i]=TMB3(Enhance[i]×THH1+(A-Enhanceβ[i])×THL1), (Formula 4.7)
[0280] Wherein, EnhanceAfter[i] represents the value of the i-th pixel in the third intermediate enhancement layer data, Enhance[i] represents the value of the i-th pixel in the first enhancement layer data, THH1 represents the first eigenvalue, THL1 represents the second eigenvalue, and A is the maximum value of the normalized interval corresponding to the second intermediate enhancement layer data.
[0281] Optionally, in some other embodiments, the first enhancement layer data and the third intermediate enhancement layer data may satisfy the following relationship:
[0282] EnhanceAfter[i]=TMB3()×Enhance[i]×THH1+(A-Enhanceβ[i])×THL1, (Formula 4.8)
[0283] Wherein, EnhanceAfter[i] represents the value of the i-th pixel in the third enhancement layer data, TMB3() represents the third mapping relationship, Enhance[i] represents the value of the i-th pixel in the first enhancement layer data, THH1 represents the first eigenvalue, THL1 represents the second eigenvalue. A is the maximum value of the normalized interval corresponding to the second intermediate enhancement layer data.
[0284] Optionally, in some embodiments, the first enhancement layer data and the third intermediate enhancement layer data may satisfy the following relationship:
[0285] EnhanceAfter[i]=Enhance[i], (Formula 4.9)
[0286] EnhanceAfter[i] represents the value of the i-th pixel in the third enhancement layer data, and Enhance[i] represents the value of the i-th pixel in the first enhancement layer data. That is, the first enhancement layer data and the third intermediate enhancement layer data may be the same.
[0287] In some embodiments, the first enhancement layer data may be normalized first, and then the normalized first enhancement layer data may be processed using a third mapping relationship to obtain third intermediate enhancement layer data. For example, taking 8-bit data as an example, the value range of 8-bit data is 0 to 255. By dividing the values of all pixels by 255, the data range of the first enhancement layer data may be converted to a range of 0 to 1.0. Of course, normalizing the first enhancement layer data may also be normalizing it to other data ranges, and the embodiments of the present application do not limit the normalized data range.
[0288] Optionally, in some embodiments, the third intermediate enhancement layer data may also be determined using a neural network. For example, the type information of the neural network is obtained, such as a transformer, a convolutional neural network, etc.; a neural network is constructed according to the network information in the fourth intermediate enhancement data; and the first enhancement layer data is processed using the neural network to obtain the third intermediate enhancement layer data.
[0289] Optionally, in some other embodiments, the first enhancement layer data may be nonlinear domain data such as log, PQ, HLG or gamma. In this case, the first enhancement layer data may be first converted to a linear domain, and then the converted first enhancement layer data may be processed according to the third mapping relationship.
[0290] Optionally, in other embodiments, when the first enhancement layer data is nonlinear domain data such as log, PQ, HLG or gamma, the first enhancement layer data may be first processed according to the third mapping relationship to obtain the third intermediate enhancement layer data. In other words, in this case, the third intermediate enhancement layer data is nonlinear domain data such as log, PQ, HLG or gamma. In this case, the third intermediate enhancement layer data may be first converted to a linear domain and then subsequently processed.
[0291] It can be understood that when the first enhancement layer data is nonlinear domain data such as log, PQ, HLG or gamma, the first enhancement layer data can be first converted to the linear domain, and then the converted data is processed according to the third mapping relationship to obtain the third intermediate enhancement layer data.
[0292] Optionally, in some other embodiments, the third intermediate enhancement layer data may also be nonlinear domain data such as log, PQ, HLG or gamma.
[0293] The embodiment of the present application does not limit the color space of the first enhancement layer data and the third intermediate enhancement layer data. The color space of the first enhancement layer data and the third intermediate enhancement layer data can be a color space such as YUV, RGB, Lab, HSV, etc.
[0294] It should be noted that color gamut mapping can be added before or after processing the first enhancement layer data to convert from the current color gamut to the target color gamut. The current color gamut and the target color gamut include but are not limited to BT.2020, BT.709, DCI-P3, sRGB, etc.
[0295] Optionally, in some embodiments, for an HDR image, there may be multiple enhancement layer data for the HDR image. That is, there may be multiple first enhancement layer data. Correspondingly, there are multiple first enhancement layer data. Each of the multiple first enhancement layer data can be processed in the above manner. For example, there may be Enhance1[i], Enhance2[i], Enhance3[i], and so on. According to Enhance1[i], EnhanceAfter1[i] can be obtained, according to Enhance2[i], EnhanceAfter2[i] can be obtained, according to Enhance3[i], EnhanceAfter3[i] can be obtained, and so on. The determination method of EnhanceAfter1[i], EnhanceAfter2[i], and EnhanceAfter3[i] can refer to the above formulas 4.1 to 4.9.
[0296] In some embodiments, after the third intermediate enhancement layer data is obtained, the third intermediate enhancement data may be upsampled, and then the second HDR image may be determined based on the upsampling result.
[0297] In some other embodiments, after the third intermediate enhancement layer data is obtained, upsampling may not be performed, and the second HDR image may be determined directly according to the third intermediate enhancement data.
[0298] In some embodiments, the interpolation method used for upsampling is preset. In this case, the second electronic device can upsample the third intermediate enhancement layer data according to the preset interpolation method.
[0299] In some other embodiments, the first metadata may further include interpolation indication information, and the interpolation indication information is used to indicate a target interpolation method. The second electronic device may determine the target interpolation method according to the interpolation indication information. The first electronic device downsamples the first intermediate enhancement data according to the target interpolation method to obtain the second intermediate enhancement data. Correspondingly, the second electronic device may upsample the third intermediate enhancement layer data according to the target interpolation method.
[0300] For example, multiple interpolation modes may correspond to multiple indexes one by one. The interpolation indication information may be an index, and the interpolation mode corresponding to the index is the target interpolation mode.
[0301] Optionally, in some embodiments, the multiple interpolation methods may include: GL_NEAREST (nearest neighbor) and GL_LINEAR (nearest neighbor) of OPENGL texture interpolation methods. In other embodiments, the multiple interpolation methods also include Vulkan's texture interpolation method NEAREST (nearest neighbor) or LINEAR (nearest neighbor). In other embodiments, the multiple interpolation methods may include multiple groups of filters. In other embodiments, the multiple interpolation methods may include multiple directional interpolation methods, or bicubic splines. In other embodiments, the multiple interpolation methods may also include all of the above methods, multiple of the above methods, or a subset of one of the above methods, etc.
[0302] In some embodiments, if the enhanced layer data and the basic image data are sampled in an integer multiple relationship, such as two, three or N basic layer image pixels in the width direction or in the height direction correspond to one enhanced layer data, wherein one specific pixel among these two, three or N basic layer image pixels has the same or very close coordinates as the enhanced data in the image. Then the base image pixel value base[i] of the basic layer image corresponding to the current pixel can be obtained, and then multiple specific pixels among the pixels around the current pixel are obtained, and these pixels have corresponding enhanced data. Among these specific pixels, find the one whose basic layer image value is closest to the basic layer image value at the current position, and directly use the enhanced data corresponding to the specific pixel as the enhanced data of the current pixel;
[0303] In some embodiments, if the enhanced layer data and the basic image data are sampled in an integer multiple relationship, such as two, three or N basic layer image pixels in the width direction or the height direction correspond to one enhanced layer data, wherein one specific pixel among the two, three or N basic layer image pixels has the same coordinates as or is very close to the enhanced data in the image, then the enhanced data of the current pixel can be obtained by interpolation or curve fitting based on the enhanced data corresponding to the two, three or N specific pixels.
[0304] The sampling of the enhanced layer image should be determined according to the base layer image. If there is no enhanced data value at the current position, the enhanced data value corresponding to the base layer value closest to the base layer brightness value at the current position is selected from multiple values (with corresponding enhanced data values) at adjacent positions of the base layer image as the interpolation value of the current position.
[0305] In some embodiments, the up-sampling result of the third intermediate enhancement layer data may be non-linear domain data such as log, PQ, HLG or gamma, etc. In this case, the up-sampling result may be converted into a linear domain.
[0306] 1303. Determine a second HDR image according to the third intermediate enhancement layer data and the first basic layer data.
[0307] In some embodiments, the third basic layer data may be first determined based on the first basic layer data, and then the second HDR may be determined based on the third intermediate enhancement layer data and the third basic layer data.
[0308] In some embodiments, the first basic layer data may be processed according to the fourth mapping relationship to obtain the third basic layer data.
[0309] In some embodiments, the first metadata may include second mapping relationship indication information, and the second mapping relationship indication information is used to indicate information related to the second mapping relationship. For example, the second mapping relationship indication information can be used to indicate any one or more of the following information: the second mapping relationship, the parameters of the second mapping relationship, the characteristic values of the intermediate basic layer data (such as the maximum value, the minimum value, and / or the intermediate value, etc.), the inverse mapping of the second mapping relationship (which can be called the "fourth mapping relationship"), or the parameters of the fourth mapping relationship. In some embodiments, the second electronic device can determine the fourth mapping relationship and / or the parameters of the fourth mapping relationship based on the second mapping relationship indication information. Therefore, it can also be considered that the second mapping relationship indication information indicates information related to the fourth mapping relationship. The second mapping relationship indication information can also be called the fourth mapping relationship indication information.
[0310] For example, in some embodiments, the second mapping relationship indication information may indicate a third eigenvalue THH2 and a fourth eigenvalue THL2. In some embodiments, the first eigenvalue may be the maximum value of the intermediate basic layer data, and the second eigenvalue may be the minimum value of the intermediate basic layer data. In other embodiments, the first eigenvalue may be the maximum value of the first basic layer data, and the second eigenvalue may be the minimum value of the first basic layer data. For specific information about the intermediate basic layer data and the first basic layer data, please refer to the above embodiments, and for the sake of brevity, they will not be described here. The first basic layer data and the third basic layer data may satisfy the following relationship:
[0311] baseAfter[i]=base[i]×THH3+(A-base[i])×THL, (Formula 5.1)
[0312] Among them, base[i] represents the value of the i-th pixel in the first basic layer data, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, THH2 represents the third eigenvalue, and THL2 represents the fourth eigenvalue. A is the maximum value of the normalization interval corresponding to the second intermediate enhancement layer data. For example, if the normalization interval is [0,1], then A is 1. If the first electronic device normalizes the intermediate basic layer data or the first intermediate enhancement layer data, then the second electronic device can perform inverse normalization on the first basic layer data using formula 5.1 to obtain the third basic layer data. In other words, when the second mapping relationship is normalization, the fourth mapping relationship is inverse normalization.
[0313] It is understandable that the above normalized interval 0 to 1.0 is just an example of a normalized interval. The normalized interval can also be other numerical ranges, for example, 0 to 2.0, -1.0 to 1.0, or 1.0 to 10.0, etc.
[0314] In some embodiments, the third base layer data may be the same as the intermediate base layer data.
[0315] The third eigenvalue THH2 and the fourth eigenvalue THL2 may also be the maximum value and the minimum value of the third basic layer data, respectively.
[0316] In some embodiments, the second mapping relationship indication information may indicate the fourth eigenvalue THL2. In this case, the first basic layer data and the third basic layer data may satisfy the following relationship:
[0317] baseAfter[i]=base[i]+THL2, (Formula 5.2)
[0318] Among them, base[i] represents the value of the i-th pixel in the first basic layer data, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, and THL2 represents the fourth eigenvalue.
[0319] In some embodiments, the second mapping relationship indication information may indicate the third eigenvalue THH2. In this case, the first basic layer data and the third basic layer data may satisfy the following relationship:
[0320] baseAfter[i]=THH2+A-base[i], (Formula 5.3)
[0321] Among them, base[i] represents the value of the i-th pixel in the first basic layer data, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, THH2 represents the third eigenvalue, A is the maximum value stored in the first basic layer data, and when the first basic layer data is normalized to between 0 and 1.0, A is the maximum value in the normalized interval, i.e., 1.0. The similar normalized interval [0,1.0] is just a schematic, and the upper limit and / or lower limit of the normalized interval can also be other values.
[0322] Optionally, in some embodiments, the first basic layer data and the third basic layer data may satisfy the following relationship:
[0323] baseAfter[i] = TMB4(R base[i]_1 ), (Formula 5.4)
[0324] Where baseAfter[i] represents the value of the i-th pixel in the third basic layer data, R base[i]_1 represents the value of the i-th pixel in the first basic layer data or the first reference value, TMB4() represents the fourth mapping relationship, and the first reference value is determined according to the value of the i-th pixel in the first basic layer data.
[0325] If R base[i]_1 is the value of the i-th pixel in the first basic layer data, then formula 5.4 can also be expressed as:
[0326] baseAfter[i]=TMB4(base[i]), (Formula 5.5)
[0327] Among them, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, base[i] represents the value of the i-th pixel in the first basic layer data, and TMB4() represents the fourth mapping relationship.
[0328] Optionally, in some embodiments, the first reference value of the i-th pixel in the first basic layer data may be determined based on the third eigenvalue THH2 and the fourth eigenvalue THL2. base[i]_1 , THH2 and THL2 can satisfy the following relationship:
[0329] Rbase [i]_1 =base[i]×THH2+(A-base[i])×THL2, (Formula 5.6)
[0330] Among them, R base[i]_1represents the first reference value of the i-th pixel in the first basic layer data, THH2 represents the third eigenvalue, and THL2 represents the fourth eigenvalue. When the first basic layer data is normalized to between 0 and 1.0, A is the maximum value in the normalized interval, i.e., 1.0.
[0331] In summary, in some embodiments, the first basic layer data and the third basic layer data may satisfy the following relationship:
[0332] baseAfter[i]=TMB4(base[i]×THH2+(A-base[i])×THL2), (Formula 5.7)
[0333] Wherein, base[i] represents the value of the i-th pixel in the first base layer data, baseAfter[i] represents the value of the i-th pixel in the third base layer data, TMB4() represents the fourth mapping relationship, THH2 represents the third eigenvalue, and THL2 represents the fourth eigenvalue. A is the maximum value of the normalized interval corresponding to the second intermediate enhancement layer data. For example, if the normalized interval is [0,1], then A is 1.
[0334] Optionally, in some other embodiments, the first reference value of the i-th pixel in the first basic layer data may be determined based on the fourth eigenvalue THL2. base[i]_1 and THL2 can satisfy the following relationship:
[0335] Rbase [i]_1 =base[i]+THL2, (Formula 5.8)
[0336] Among them, R base[i]_1 represents the first reference value of the i-th pixel in the first basic layer data, and THL2 represents the fourth eigenvalue.
[0337] In summary, in some embodiments, the first basic layer data and the third basic layer data may satisfy the following relationship:
[0338] baseAfter[i]=TMB4(base[i]+THL2), (Formula 5.9)
[0339] Among them, base[i] represents the value of the i-th pixel in the first basic layer data, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, TMB4() represents the fourth mapping relationship, and THL2 represents the fourth eigenvalue.
[0340] Optionally, in some embodiments, the first basic layer data and the third basic layer data satisfy the following relationship:
[0341] baseAfter[i] = TMB4(R base[i]_2 )×R base[i]_3 , (Formula 5.10)
[0342] Wherein, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, TMB4() represents the fourth mapping relationship, R base[i]_2 is the value of the i-th pixel in the first basic layer data or the second reference value, the second reference value is the second reference value of the i-th pixel determined according to the value of the i-th pixel in the first basic layer data, R base[i]_3 It is the value of the i-th pixel in the first basic layer data or a third reference value, and the third reference value is determined according to the value of the i-th pixel in the first basic layer data.
[0343] For example, in some embodiments, R base[i]_2 is the second reference value of the i-th pixel in the first basic layer data, R base[i]_3 is the value of the i-th pixel in the first basic layer data. i The second reference value of the i-th pixel in the first basic layer data is represented by base[i], and the value of the i-th pixel in the first basic layer data is represented by base[i]. Then the first basic layer data and the third basic layer data satisfy the following relationship:
[0344] baseAfter[i] = TMB4(L i )×base[i], (Formula 5.11)
[0345] The second reference value of the i-th pixel in the first basic layer data may be a brightness value or other value determined according to the pixel value of the i-th pixel.
[0346] For example, in some other embodiments, R base[i]_2 is the second reference value of the i-th pixel in the first basic layer data, R base[i]_3 is a third reference value determined by the value of the i-th pixel in the first basic layer data. For example, the third reference value may also be determined according to formula 5.6 or formula 5.8. For example, if the third reference value is determined according to formula 5.6, then the first basic layer data and the third basic layer data may satisfy the following relationship:
[0347] baseAfter[i] = TMB4(L i )×(base[i]×THH2+(A-base[i])×THL2), (Formula 5.12).
[0348] For another example, if the third reference value is determined according to formula 5.8, then the first basic layer data and the third basic layer data may satisfy the following relationship:
[0349] baseAfter[i] = TMB4(L i )×base[i]+THL2, (Formula 5.13).
[0350] In some embodiments, the third basic layer data may also be determined according to the fifth mapping relationship and the fourth mapping relationship.
[0351] For example, in some embodiments, the first basic layer data and the third basic layer data may satisfy the following relationship:
[0352] baseAfter[i] = TMB4(TMB5(R base[i]_1 )), (Formula 5.14)
[0353] Where baseAfter[i] represents the value of the i-th pixel in the third basic layer data, R base[i]_1 represents the value of the i-th pixel in the first basic layer data or the first reference value, TMB4() represents the fourth mapping relationship, and TMB5() represents the fifth mapping relationship. The determination method of the first reference value can refer to the above embodiment, and for the sake of brevity, it will not be repeated here.
[0354] For another example, in some embodiments, the first basic layer data and the second basic layer data may satisfy the following relationship:
[0355] baseAfter[i] = TMB4(R base[i]_2 )×TMB5(R base[i]_3 ), (Formula 5.15)
[0356] Wherein, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, TMB4() represents the fourth mapping relationship, TMB5() represents the fifth mapping relationship, R base[i]_2 is the value of the i-th pixel in the first basic layer data or the second reference value, the second reference value is the second reference value of the i-th pixel determined according to the value of the i-th pixel in the first basic layer data, R base[i]_3 is the value of the i-th pixel in the first basic layer data or the third reference value, and the third reference value is determined according to the value of the i-th pixel in the first basic layer data. The determination method of the second reference value and the third reference value can refer to the above embodiment, and for the sake of brevity, it is not repeated here.
[0357] In some embodiments, the fourth mapping relationship may be a global and / or local tone mapping function.
[0358] In some embodiments, the fifth mapping relationship may be in the form of linear, spline, piecewise curve, etc.
[0359] For another example, in some embodiments, the first basic layer data may be processed based on the filter, the fourth mapping relationship, and the fifth mapping relationship to obtain the third basic layer data.
[0360] For example, the filter can be used to obtain baseMid1[i] and baseAfter2[i], where baseMid1[i] satisfies formula 5.16 or formula 5.17, and baseAfter2[i] satisfies formula 5.18:
[0361] baseMid1[i]=F[base[i]], (Formula 5.16)
[0362] baseMid1[i]=∑F[n]×base[i+n], (Formula 5.17)
[0363] baseAfter2[i]=base[i]-baseMid1[i], (Formula 5.18)
[0364] Among them, base[i] represents the value of the i-th pixel in the first basic layer data, and F[] represents the filter.
[0365] In some embodiments, baseMid1[i], baseAfter2[i] and the third base layer data may satisfy the following relationship:
[0366] baseAfter[i]=TMB4(Li)×TMB5(baseMid1[i]), (Formula 5.19)
[0367] In some other embodiments, baseMid1[i], baseAfter2[i] and the third basic layer data may satisfy the following relationship:
[0368] baseAfter[i]=TMB4(TMB5(baseMid1[i])), (Formula 5.20)
[0369] Among them, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, TMB4() represents the fourth mapping relationship, and TMB5() represents the fifth mapping relationship.
[0370] In some embodiments, the fourth mapping relationship may be a filter. If F[] is used to represent the filter, the third basic layer data may be obtained by using the filter. The third basic layer data and the first basic layer data may satisfy the following relationship:
[0371] baseAfter[i]=F[base[i]], (Formula 5.21) or
[0372] baseAfter[i]=∑F[n]×base[i+n], (Formula 5.22),
[0373] Among them, base[i] represents the value of the i-th pixel in the first basic layer data, and F[] represents the filter.
[0374] baseAfter2[i] can also be obtained based on the filter, where baseAfter2[i]=base[i]-baseMid1[i].
[0375] In some other embodiments, the third basic layer data and the first basic layer data may satisfy the following relationship:
[0376] baseAfter[i]=F(base[i])=[baseAfter1[i], baseAfter2[i], baseAfter3[i]...], (Formula 5.23)
[0377] Among them, base[i] represents the value of the i-th pixel in the first basic layer data, and F() represents the filter.
[0378] In some embodiments, the fourth mapping relationship may be sigmoid, cubic spline, gamma, straight line, piecewise curve, or the like.
[0379] For example, in some embodiments, the fourth mapping relationship may be the following curve:
[0380]
[0381] Or the inverse curve of the curve. L and L' can be normalized optical signals or electrical signals, which are not limited in the present embodiment. For the i-th element of the basic layer, the above formula can be transformed into:
[0382]
[0383] In other words, TMB4(L i )=F(L i ).
[0384] Similarly, the fifth mapping relationship may be a filter, a sigmoid, a cubic spline, a gamma, a straight line, a piecewise curve, or the like.
[0385] The filter in the embodiment of the present application may be a bilateral filter, an interpolation filter, etc., and the embodiment of the present application is not limited to this.
[0386] In some embodiments, the fourth mapping relationship and / or the fifth mapping relationship may be a preset mapping relationship.
[0387] In some other embodiments, the second mapping relationship indication information may also indicate a parameter of the mapping relationship. The second electronic device may determine the fourth mapping relationship and / or the fifth mapping relationship according to the parameter of the mapping relationship indicated by the second mapping relationship indication information.
[0388] Optionally, in some embodiments, the first basic layer data may be nonlinear domain data such as log, PQ, HLG or gamma. In this case, the first basic layer data may be first converted to a linear domain, and then the converted data may be processed according to the fourth mapping relationship to obtain the third basic layer data.
[0389] Optionally, in other embodiments, when the first basic layer data is nonlinear domain data such as log, PQ, HLG or gamma, the first enhanced layer data may be first processed according to the fourth mapping relationship to obtain the third basic layer data. In other words, in this case, the third basic layer data is nonlinear domain data such as log, PQ, HLG or gamma. In this case, the third basic layer data can be converted to a linear domain.
[0390] Optionally, in some embodiments, the first basic layer data may be subjected to other processing before being processed. For example, the first basic layer data may be subjected to color gamut mapping to map the color gamut of the first basic layer data to a target color gamut. The mapped first basic layer data may then be processed according to the fourth mapping relationship.
[0391] Optionally, in some other embodiments, after obtaining the third basic layer data, the third basic layer data may be processed, for example, color gamut mapping may be performed on the third basic layer data to map the color gamut of the third basic layer data to the target color gamut.
[0392] The embodiment of the present application does not limit the color gamut and target color gamut of the first basic layer data and the third basic layer data, for example, it can be BT.2020, BT.9011, DCI-P3, sRGB, etc.
[0393] The present application does not limit the first basic layer data and the third basic layer data in any domain, which can be a linear domain or a PQ domain or a log domain, etc. The present application does not limit the color space of the first basic layer data and the third basic layer data, which can be a color space such as YUV, RGB, Lab, HSV, etc.
[0394] Optionally, in some other embodiments, the third base layer data may be the same as the first base layer data. In this case, the second HDR image may be determined according to the third intermediate enhancement layer data and the first base layer data.
[0395] As described above, in some embodiments, the third intermediate enhancement layer data may be the same as the first enhancement layer data. In this case, the second HDR image may be determined based on the first enhancement layer data and the third base layer data.
[0396] It can be understood that when the third intermediate enhancement layer data is the same as the first enhancement layer data and the first basic layer data is the same as the third basic layer data, the second HDR image can be determined according to the first enhancement layer data and the first basic layer data.
[0397] Taking the third basic layer data and the third intermediate enhancement layer data as an example, how to determine the second HDR image is introduced.
[0398] Optionally, in some embodiments, the third intermediate enhancement layer data may be first processed according to a target numerical conversion function to obtain a converted result; and the second HDR image may be determined according to the third basic layer data and the converted result.
[0399] If EnhanceAfter[i] represents the value of the i-th pixel in the third intermediate enhancement layer data, and f() represents the target conversion function, then the converted result can be expressed as f(EnhanceAfter[i]). If recHDR[i] represents the value of the i-th pixel of the second HDR image, and baseAfter[i] represents the value of the i-th pixel of the third base layer data, then in some embodiments, baseAfter[i], recHDR[i] and f(EnhanceAfter[i]) can satisfy the following relationship:
[0400] recHDR[i]=baseAfter[i]×f(EnhanceAfter[i]), (Formula 6.1).
[0401] In some other embodiments, baseAfter[i], recHDR[i], and f(EnhanceAfter[i]) may satisfy the following relationship:
[0402] recHDR[i]=baseAfter[i]+f(EnhanceAfter[i]), (Formula 6.2).
[0403] The embodiments of the present application do not limit the target conversion function f(). For example, in some embodiments, the target conversion function can be log, OETF or EOTF, a piecewise curve, etc. For another example, in some embodiments, f(EnhanceAfter[i])=EnhanceAfter[i]. For another example, in other embodiments, f(EnhanceAfter[i])=C×EnhanceAfter[i], where the parameter C can be a preset value or a value determined according to EnhanceAfter[i]. For another example, in other embodiments, f(EnhanceAfter[i])=EnhanceAfter[i]+D, where the parameter D can be a preset value or a value determined according to EnhanceAfter[i].
[0404] In some embodiments, the second HDR image may satisfy the following relationship:
[0405] recHDR[i]=A×g(baseAfter1[i]×f1(enchenceAfter1[i]))+B×g(baseAfter2[i])……,, (Formula 6.3)
[0406] The f1() conversion function may be a numerical domain conversion function indicated by the first metadata, or may be an agreed conversion function. For example, f1(x)=x, or other forms, which are not limited in the embodiments of the present application; A, B, etc. are preset constants or numerical values indicated by the first metadata; g() is a numerical change or inverse normalization function indicated or preset in the first metadata.
[0407] In some embodiments, the second HDR image may satisfy the following relationship:
[0408] recHDR[i]=A×baseAfter1[i]+A1×f1(enchanceAfter1[i])+baseAfter1[i]+B×baseAfter2[i], (Formula 6.4)
[0409] Wherein f1() may be a conversion function indicated by the first metadata, or may be an agreed conversion function. For example, f1(x)=x, or other forms, which are not limited in the present embodiment; A and B are constants, or values indicated by the first metadata.
[0410] In some embodiments, the second HDR image may satisfy the following relationship:
[0411] recHDR[i]=A×baseAfter1[i]×f1(enchenceAfter1[i])+B×baseAfter2[i]×f2(enchenceAfter2[i])+C×B×baseAfter3[i]×f3(enchenceAfter3[i])+…,, (Formula 6.5)
[0412] Wherein f1(), f2(), f3() can be the conversion function indicated by the first metadata, or can be an agreed conversion function. For example, f1(x)=x, or other forms, which are not limited in the embodiments of the present application. Wherein A, B, C... are constants, or are values indicated by the first metadata.
[0413] In some embodiments, the second HDR image may satisfy the following relationship:
[0414] recHDR[i]=A×baseAfter1[i]+A1×f1(EnchenceAfter1[i])+baseAfter1[i]+B×baseAfter2[i]+B1×f1(enchenceAfter2[i])+C×baseAfter3[i]+C1×f1(enchenceAfter3[i])…, (Formula 6.6)
[0415] Wherein f1(), f2(), f3() can be the conversion function indicated by the first metadata, or can be an agreed conversion function. For example, f1(x)=x, or other forms, which are not limited in the embodiments of the present application. Wherein A, B, C... are constants, or are values indicated by the first metadata.
[0416] The method for determining the meaning of baseAfter1[i], baseAfter2[i], EnchenceAfter1[i], EnchenceAfter2[i], etc. can refer to the above embodiments, and for the sake of brevity, it will not be repeated here.
[0417] It should be noted that this application does not limit the form of f(x), that is, it does not limit baseAfter[i] and enchenceAfter[i] in any domain, which can be a linear domain or a PQ domain or a log domain, etc. This application also does not limit the color space of baseAfter[i] and enchenceAfter[i], which can be a color space such as YUV, RGB, Lab, HSV, etc.
[0418] In some embodiments, recHDR[i] may be any component of RGB or YUV components, and f(enchenceAfter[i]) is the gain of any component obtained by the third intermediate enhancement layer data.
[0419] As described above, in some embodiments, the third intermediate enhancement layer data may be upsampled. In this case, the upsampled result of the third intermediate enhancement layer data may be processed according to the target numerical conversion function to obtain a converted result; the second HDR image is determined according to the third basic layer data and the converted result. In other words, in this case, EnhanceAfter[i] in Formula 6.1 to Formula 6.6 represents the value of the i-th pixel in the upsampled result of the third intermediate enhancement layer data.
[0420] The specific process of determining the second HDR image according to the third intermediate enhancement layer data and the first basic layer data, the specific process of determining the second HDR image according to the first enhancement layer data and the third basic layer data, and the specific process of determining the second HDR image according to the first enhancement layer data and the first basic layer data can be referred to the above introduction of determining the second HDR image according to the third basic layer data and the third intermediate enhancement data, and will not be repeated here for the sake of brevity.
[0421] Optionally, in some embodiments, the second HDR image may also be processed to obtain a third HDR image.
[0422] For example, in some embodiments, the first metadata may further include reconstruction indication information. The second HDR image may be processed based on the reconstruction indication information to obtain the third HDR image.
[0423] For example, in some embodiments, the reconstruction indication information is used to indicate the fifth eigenvalue THH3 and the sixth eigenvalue THL3. The third eigenvalue THH3 may be the upper limit of the third HDR image, and the sixth eigenvalue THL3 may be the lower limit of the third HDR image. If recHDRafter[i] is adapted to represent the value of the i-th pixel of the third HDR image, and recHDR[i] is used to represent the value of the i-th pixel of the second HDR image, then recHDRafter[i], recHDR[i], THH3 and THL3 may satisfy the following relationship:
[0424] ecHDRAfter[i]=recHDR[i]×THH3+(A-recHDR[i])×THL3, (Formula 7.1)
[0425] Where A is the maximum value stored in recHDR, for example, when recHDR is normalized between 0 and 1.0, A is 1.0.
[0426] For example, in some other embodiments, the reconstruction indication information may indicate the fifth eigenvalue THH3. In this case, recHDRafter[i], recHDR[i], and THH3 may satisfy the following relationship:
[0427] recHDRAfter[i]=THH3+A-recHDR[i], (Formula 7.2)
[0428] Where A is the maximum value stored in recHDR, and when recHDR is normalized between 0 and 1.0, A is 1.0.
[0429] For example, in some other embodiments, the reconstruction indication information may indicate the sixth eigenvalue THL3. In this case, recHDRafter[i], recHDR[i], and THL3 may satisfy the following relationship:
[0430] recHDRAfter[i]=recHDR[i]+THL3, (Formula 7.3).
[0431] Optionally, in some embodiments, the second HDR image may be processed using an exponential of 2, log, or other methods to obtain the third HDR image.
[0432] Fig.14 is a schematic structural block diagram of an electronic device provided according to an embodiment of the present application. Fig.14 The electronic device 1400 shown includes an acquisition unit 1401 , a processing unit 1402 and an encoding unit 1403 .
[0433] The acquiring unit 1401 is configured to acquire a first HDR image and first basic layer data corresponding to the first HDR image.
[0434] The processing unit 1402 is configured to determine first intermediate enhancement layer data according to the first HDR image and the first basic layer data.
[0435] The processing unit 1402 is further configured to process the first intermediate enhancement layer data according to the first mapping relationship to obtain first enhancement layer data.
[0436] The encoding unit 1403 is used to encode the first basic layer data, the first enhancement layer data, and the first metadata to obtain a code stream.
[0437] The specific functions and beneficial effects of the acquisition unit 1401, the processing unit 1402 and the encoding unit 1403 can be referred to the above embodiments, and for the sake of brevity, they will not be repeated here.
[0438] In some embodiments, the acquisition unit 1401 , the processing unit 1402 , and the encoding unit 1403 may be implemented by a processor.
[0439] Fig.15 is a schematic structural block diagram of another electronic device provided according to an embodiment of the present application. Fig.15 The electronic device 1500 shown includes a decoding unit 1501 and a processing unit 1502 .
[0440] The decoding unit 1501 is used to decode the acquired code stream to obtain first basic layer data, first enhancement layer data and first metadata.
[0441] The processing unit 1502 is configured to process the first enhancement layer data according to a third mapping relationship to obtain third intermediate enhancement layer data.
[0442] The processing unit 1502 is further configured to determine a second HDR image according to the third intermediate enhancement layer data and the first basic layer data.
[0443] The specific functions and beneficial effects of the decoding unit 1501 and the processing unit 1502 can be found in the above embodiments, and for the sake of brevity, they will not be repeated here.
[0444] In some embodiments, the decoding unit 1501 and the processing unit 1502 may be implemented by a processor.
[0445] The embodiment of the present application also provides an electronic device. The electronic device can be used to implement the above-mentioned encoding method embodiment. The electronic device includes a processor and a memory. The processor is used to execute the computer program or instructions stored in the memory, or read the data / signaling stored in the memory to execute the methods in the above method embodiments. The memory can be integrated with the processor, or can also be separately provided. The memory can also be used to store the code stream determined by the processor. Optionally, the processor is one or more. Optionally, the memory is one or more. Optionally, the electronic device may also include a transceiver, which is used to receive and / or send signals. For example, the transceiver can be used to send the code stream determined by the processor to another electronic device.
[0446] The embodiment of the present application also provides an electronic device. The electronic device can be used to implement the above decoding method embodiment. The electronic device includes a processor and a memory. The processor is used to execute the computer program or instructions stored in the memory, or read the data / signaling stored in the memory to execute the methods in the above method embodiments. The memory can be integrated with the processor, or can also be separately provided. Optionally, the processor is one or more. Optionally, the memory is one or more. Optionally, the electronic device may also include a transceiver, which is used to receive and / or send signals. For example, the transceiver can be used to receive a code stream.
[0447] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0448] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory and / or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM). For example, RAM can be used as an external cache. By way of example and not limitation, RAM includes the following forms: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0449] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated into the processor.
[0450] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0451] The embodiment of the present application also provides a schematic diagram of a chip system. The chip system (or also referred to as a processing system) includes a logic circuit and an input / output interface.
[0452] Among them, the logic circuit can be a processing circuit in the chip system. The logic circuit can be coupled to the storage unit and call the instructions in the storage unit so that the chip system can implement the methods and functions of each embodiment of the present application. The input / output interface can be an input / output circuit in the chip system, outputting information processed by the chip system, or inputting data or signaling information to be processed into the chip system for processing.
[0453] As a solution, the chip system is used to implement the embodiments of the above encoding methods. For example, the chip system is used to implement the processing-related operations performed by the source device, the capture device or the front-end device in the above method embodiments.
[0454] As a solution, the chip system is used to implement the embodiments of the above decoding methods. For example, the chip system is used to implement the processing-related operations performed by the target device, terminal device or terminal display device in the above method embodiments.
[0455] An embodiment of the present application also provides a computer-readable storage medium on which are stored computer instructions for implementing the methods executed by an encoding end device (eg, a source device, a capture device, or a front-end device) in the above-mentioned method embodiments.
[0456] An embodiment of the present application also provides a computer-readable storage medium on which are stored computer instructions for implementing the methods executed by a decoding end device (eg, a target device, a terminal device, or a terminal display device) in the above-mentioned method embodiments.
[0457] An embodiment of the present application also provides a computer program product, comprising instructions, which, when executed by a computer, implement the methods performed by the encoding end device in the above-mentioned method embodiments.
[0458] The embodiment of the present application also provides a computer program product, which includes instructions, and when the instructions are executed by a computer, the methods performed by the decoding end device in the above-mentioned method embodiments are implemented.
[0459] An embodiment of the present application also provides a communication system, including the aforementioned encoding end device and decoding end device.
[0460] The embodiment of the present application also provides a code stream, which is determined by the above encoding method.
[0461] The embodiment of the present application also provides a memory, which is used to store the code stream determined by the above encoding method.
[0462] The present application also provides a computer device, which includes a memory, and the memory is used to store a code stream determined by the above encoding method.
[0463] The explanation of the relevant contents and beneficial effects of any of the above-mentioned devices can be referred to the corresponding method embodiments provided above, which will not be repeated here.
[0464] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0465] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)). For example, the aforementioned available medium includes, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0466] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A coding method, characterized in that: The method comprises: Acquire a first HDR image and first base layer data corresponding to the first HDR image; Determining first intermediate enhancement layer data according to the first HDR image and the first base layer data; Processing the first intermediate enhancement layer data according to the first mapping relationship to obtain first enhancement layer data; The first basic layer data, the first enhancement layer data, and the first metadata are encoded to obtain a code stream.
2. The method according to claim 1, characterized in that The determining, according to the first HDR image and the first basic layer data, first intermediate enhancement layer data comprises: Determining second basic layer data according to the first basic layer data; The first intermediate enhancement layer data is determined according to the first HDR image and the second basic layer data.
3. The method according to claim 2, characterized in that The determining, according to the first basic layer data, second basic layer data comprises: The first basic layer data is processed according to a second mapping relationship to obtain the second basic layer data.
4. The method according to claim 3, characterized in that Before processing the first basic layer data according to the second mapping relationship to determine the second basic layer data, the method further includes: Determining at least one characteristic brightness value according to the first HDR image; Determine at least one pixel from the first basic layer data, the at least one pixel corresponds to the at least one characteristic brightness value one by one, and the position of each pixel in the at least one pixel is the same as the position of the corresponding characteristic brightness value; The second mapping relationship is determined according to the at least one characteristic brightness value and the value of the at least one pixel.
5. The method according to claim 3 or 4, characterized in that: The processing of the first basic layer data according to the second mapping relationship to determine the second basic layer data includes: The first basic layer data and the second basic layer data satisfy the following relationship: baseAfter[i]=TMB2(R base[i]_1 ), Wherein, baseAfter[i] represents the value of the i-th pixel in the second basic layer data, R base[i]_1 represents the value of the i-th pixel in the first basic layer data or the first reference value, TMB2() represents the second mapping relationship, and the first reference value is determined according to the value of the i-th pixel in the first basic layer data; or The first basic layer data and the second basic layer data satisfy the following relationship: baseAfter[i]=TMB2(R base[i]_2 )×R base[i]_3 , Wherein, baseAfter[i] represents the value of the i-th pixel in the second basic layer data, TMB2() represents the second mapping relationship, R base[i]_2 is the value of the i-th pixel in the first basic layer data or a second reference value, the second reference value is the second reference value of the i-th pixel determined according to the value of the i-th pixel in the first basic layer data, R base[i]_3 It is the value of the i-th pixel in the first basic layer data or a third reference value, and the third reference value is determined according to the value of the i-th pixel in the first basic layer data.
6. The method according to any one of claims 2 to 5, characterized in that: The determining, according to the first HDR image and the second basic layer data, first intermediate enhancement layer data comprises: Processing the second basic layer data according to the target numerical conversion function to obtain a converted result; The first intermediate enhancement layer data is determined according to the first HDR image and the converted result.
7. The method according to any one of claims 1 to 6, characterized in that The processing the first intermediate enhancement data according to the first mapping relationship to obtain first enhancement layer data includes: Downsampling the first intermediate enhancement layer data to obtain second intermediate enhancement layer data; The second intermediate enhancement data is processed according to the first mapping relationship to obtain the first enhancement layer data.
8. The method according to claim 7, characterized in that The downsampling the first intermediate enhancement layer data to obtain second intermediate enhancement layer data includes: Determine the target interpolation method; The first intermediate enhanced data is downsampled according to the target interpolation mode.
9. The method according to claim 8, characterized in that The method of determining the target interpolation comprises: The target interpolation method is determined from multiple interpolation methods, wherein the difference between the restored data obtained after upsampling the second intermediate enhancement data according to the target interpolation method and the first intermediate enhancement data is smaller than the difference between the restored data obtained after upsampling the reference intermediate enhancement data according to the reference interpolation method and the first intermediate enhancement data, wherein the reference intermediate enhancement data is the intermediate enhancement data obtained after downsampling the first intermediate enhancement data according to the reference interpolation method, and the reference interpolation method is any interpolation method among the multiple interpolation methods except the target interpolation method.
10. The method according to claim 8 or 9, characterized in that: The first metadata includes interpolation mode indication information, and the interpolation mode indication information is used to indicate the target interpolation mode.
11. The method according to any one of claims 1 to 10, characterized in that The first mapping relationship includes one or more of the following: a numerical mapping relationship, Sigmoid, cubic spline, gamma, a straight line or a piecewise curve.
12. A decoding method, characterized in that: The method comprises: Decoding the acquired code stream to obtain first base layer data, first enhancement layer data and first metadata; Processing the first enhancement layer data according to a third mapping relationship to obtain third intermediate enhancement layer data; A second HDR image is determined according to the third intermediate enhancement layer data and the first base layer data.
13. The method according to claim 12, characterized in that The determining a second HDR image according to the third intermediate enhancement layer data and the first basic layer data comprises: Determining third basic layer data according to the first basic layer data; The second HDR image is determined according to the third intermediate enhancement layer data and the third base layer data.
14. The method according to claim 13, characterized in that The determining, according to the first basic layer data, third basic layer data comprises: The first basic layer data is processed according to a fourth mapping relationship to obtain the third basic layer data.
15. The method according to claim 14, characterized in that The processing of the first basic layer data according to the fourth mapping relationship to determine the third basic layer data includes: The first basic layer data and the third basic layer data satisfy the following relationship: baseAfter[i]=TMB4(R base[i]_1 ), Wherein, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, R base[i]_1 represents the value of the i-th pixel in the first basic layer data or the first reference value, TMB4() represents the fourth mapping relationship, and the first reference value is determined according to the value of the i-th pixel in the first basic layer data; or The first basic layer data and the third basic layer data satisfy the following relationship: baseAfter[i]=TMB4(R base[i]_2 )×R base[i]_3 , Wherein, baseAfter[i] represents the value of the i-th pixel in the third basic layer data, TMB4() represents the fourth mapping relationship, R base[i]_2 is the value of the i-th pixel in the first basic layer data or a second reference value, the second reference value is determined according to the value of the i-th pixel in the first basic layer data, R base[i]_3 It is the value of the i-th pixel in the first basic layer data or a third reference value, and the third reference value is determined according to the value of the i-th pixel in the first basic layer data.
16. The method according to any one of claims 13 to 15, characterized in that The determining the second HDR image according to the third intermediate enhancement layer data and the third basic layer data comprises: Processing the third intermediate enhancement layer data according to the target numerical conversion function to obtain a converted result; The second HDR image is determined according to the third basic layer data and the converted result.
17. The method according to any one of claims 12 to 16, characterized in that After determining the third intermediate enhancement layer data according to the third mapping relationship and processing the first enhancement layer data, the method further includes: The third intermediate enhancement layer data is upsampled.
18. The method according to claim 17, characterized in that The first metadata includes interpolation mode indication information, where the interpolation mode indication information is used to indicate a target interpolation mode, and the target interpolation mode is used to upsample the third intermediate enhancement layer data.
19. The method according to any one of claims 12 to 17, characterized in that The third mapping relationship includes one or more of the following: a numerical mapping relationship, Sigmoid, cubic spline, gamma, a straight line or a piecewise curve.
20. An electronic device, characterized in that: The electronic device is used to implement the method as claimed in any one of claims 1 to 11, or is used to implement the method as claimed in any one of claims 12 to 19.
21. A computer device, characterized in that: include: A processor, the processor being used to be coupled to a memory, read and execute instructions and / or program codes in the memory to execute the method as claimed in any one of claims 1 to 11, or to execute the method as claimed in any one of claims 12 to 19.
22. A chip system, characterized in that: include: A logic circuit, the logic circuit is used to be coupled to an input / output interface, and transmit data through the input / output interface to execute the method as claimed in any one of claims 1 to 11, or to execute the method as claimed in any one of claims 12 to 19.
23. A computer readable medium, characterized in that The computer-readable medium stores a program code, and when the computer program code is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 11, or the computer is caused to execute the method according to any one of claims 12 to 19.
24. A code stream, characterized in that The code stream is determined according to the method according to any one of claims 1 to 11.
25. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 11, or the computer is caused to execute the method according to any one of claims 12 to 19.
Citation Information
Cited By
Encoding method, decoding method, and related device
EP4694121A1
Encoding method, decoding method, and related device
WO2025036300A1