Coding method and apparatus, decoding method and apparatus, coder, decoder, device, code stream and storage medium
By dividing and processing the brightness difference values of viewpoints in video coding to generate smaller prediction units, the problem of insufficient compression performance in immersive video coding is solved, and the bit overhead of the code stream is saved and the video compression efficiency is improved.
Patent Information
- Application Number
- PCT/CN2023/088556
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-16
- Publication Date
- 2024-10-24
AI Technical Summary
Existing video coding standards have insufficient compression performance in immersive video coding, resulting in high bit stream overhead and affecting storage and transmission efficiency.
By dividing the current view into one or more prediction units, determining the brightness difference value between the prediction unit and the reference unit, and generating smaller prediction units based on the brightness difference value and the sample difference value, thereby saving code stream bit overhead.
It effectively reduces the bit overhead of the code stream, improves video compression performance, and improves storage and transmission efficiency.
Smart Images

Figure CN2023088556_24102024_PF_FP_ABST
Abstract
Description
Coding and decoding method and device, codec, device, code stream, storage medium Technical Field
[0001] The embodiments of the present application relate to coding and decoding technology, including but not limited to coding and decoding methods and devices, codecs, devices, code streams, and storage media. Background Art
[0002] In video compression / decompression (codec) systems, compression efficiency is an important performance criterion. For example, compression efficiency affects the storage resources required to store video files and / or the amount of bandwidth required to transmit and / or transfer video content. Video encoders typically compress video information so that more information can be transmitted over a given bandwidth or stored in a given memory space, etc. The compressed signal or data is then decoded by a decoder, which decodes or decompresses the signal or data for display to the user.
[0003] Currently, immersive video coding standards are being developed, including MPEG Immersive Video Coding (MIV), which attempts to establish and improve compression performance in the context of immersive video.
[0004] Summary of the Invention
[0005] In view of this, the encoding and decoding method and apparatus, codec, device, code stream, and storage medium provided in the embodiments of the present application can save the bit overhead of the code stream to improve compression performance. The encoding and decoding method and apparatus, codec, device, code stream, and storage medium provided in the embodiments of the present application are implemented as follows:
[0006] According to one aspect of an embodiment of the present application, an embodiment of the present application provides an encoding method, the method comprising: dividing a current viewpoint into one or more first prediction units, determining a first brightness difference value between the first prediction unit and a reference unit; wherein the reference unit is a unit corresponding to the first prediction unit in a reference viewpoint of the current viewpoint; determining a second brightness difference value between a current sample in the first prediction unit and a reference sample corresponding to the reference unit in the reference unit; determining a second prediction unit based on at least the first brightness difference value and the second brightness difference value of the sample in the first prediction unit; and generating a code stream based on the second prediction unit.
[0007] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a decoding method, which is applied to a decoder, and the method includes: parsing a code stream, and obtaining, based on the parsing result, a sample reconstruction value of a second prediction unit and a first brightness difference value of a first prediction unit corresponding to the second prediction unit; and determining a sample reconstruction value of the first prediction unit based on the sample reconstruction value of a reference unit of the first prediction unit, the first brightness difference value, and the sample reconstruction value of the second prediction unit.
[0008] According to one aspect of an embodiment of the present application, an embodiment of the present application provides an encoding device, applied to an encoder, the device including: a first determination module, configured to divide a current viewpoint into one or more first prediction units, and determine a first brightness difference value between the first prediction unit and a reference unit; wherein the reference unit is a unit corresponding to the first prediction unit in a reference viewpoint of the current viewpoint; a second determination module, configured to determine a second brightness difference value between a current sample in the first prediction unit and a reference sample corresponding to the reference unit; a third determination module, configured to determine a second prediction unit based on at least the first brightness difference value and the second brightness difference value of the sample in the first prediction unit; and an encoding module, configured to generate a bitstream based on the second prediction unit.
[0009] According to one aspect of an embodiment of the present application, an embodiment of the present application provides an encoder, comprising a first memory and a first processor; wherein the first memory is used to store a computer program that can be run on the first processor; and the first processor is used to execute the encoding method described in the embodiment of the present application when running the computer program.
[0010] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a decoding device, applied to a decoder, the device including: a decoding module, configured to parse a code stream, obtain a sample reconstruction value of a second prediction unit and a first brightness difference value of a first prediction unit corresponding to the second prediction unit based on the parsing result; and determine the first prediction unit based on the sample reconstruction value of a reference unit of the first prediction unit, the first brightness difference value, and the sample reconstruction value of the second prediction unit.
[0011] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a decoder comprising a second memory and a second processor; wherein the second memory is used to store a computer program that can be run on the second processor; and the second processor is used to execute the decoding method as described in the embodiment of the present application when running the computer program.
[0012] According to one aspect of an embodiment of the present application, the embodiment of the present application provides a code stream, which is generated by the encoding method described in the embodiment of the present application.
[0013] According to one aspect of an embodiment of the present application, an embodiment of the present application provides an electronic device, comprising: a processor, suitable for executing a computer program; a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the encoding / decoding method described in the embodiment of the present application is implemented.
[0014] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the encoding / decoding method as described in the embodiment of the present application is implemented.
[0015] In an embodiment of the present application, when determining the second prediction unit, not only the second brightness difference value (i.e., the individual sample difference) is considered, but also the first brightness difference value (i.e., the brightness difference at the prediction unit level) is considered; this is beneficial for screening out more redundant samples in the first prediction unit, thereby obtaining a smaller second prediction unit, which in turn is beneficial for saving the bit overhead of the code stream to improve compression performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings herein are incorporated into and constitute a part of this specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, serve to illustrate the technical solutions of the present application. Obviously, the drawings described below are merely some embodiments of the present application. Those skilled in the art can, without inventive effort, derive other drawings from these drawings.
[0017] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0018] FIG1 is a schematic diagram of an implementation flow of an encoding method provided in an embodiment of the present application;
[0019] FIG2 is a schematic diagram of the coding flow of the MIV standard test software TMIV14;
[0020] FIG3 is a schematic diagram of an implementation flow of the encoding method provided in an embodiment of the present application;
[0021] FIG4 is a diagram illustrating an example of mapping from view v0 to view v1 provided in an embodiment of the present application;
[0022] FIG5 is a schematic diagram of an implementation process of pruning pixels provided in an embodiment of the present application;
[0023] Figure 6 is an example of an atlas of the Fans sequence;
[0024] FIG7 is a diagram illustrating an example of mapping from view v0 to view v1 provided in an embodiment of the present application;
[0025] FIG8 is a schematic diagram of an implementation process of pruning pixels provided in an embodiment of the present application;
[0026] FIG9 is a schematic structural diagram of an encoding device provided in an embodiment of the present application;
[0027] FIG10 is a schematic structural diagram of a decoding device provided in an embodiment of the present application;
[0028] FIG11 is a schematic diagram of the structure of an encoder provided in an embodiment of the present application;
[0029] FIG12 is a schematic diagram of the structure of a decoder provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0032] In the following description, references to “some embodiments,” “this embodiment,” “embodiments of the present application,” and examples, etc., describe a subset of all possible embodiments. However, it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0033] The descriptions such as "first, second, third" appearing in the embodiments of this application are only for illustration and distinction of the described objects. There is no order, nor does it indicate any special limitation on the number of devices in the embodiments of this application, and cannot constitute any limitation on the embodiments of this application.
[0034] The “viewpoint” that appears in the embodiments of the present application can also be understood as a “view”, that is, an image taken from a certain perspective.
[0035] The “sample” that appears in the embodiments of the present application can also be understood as a “pixel” or a “pixel point”, etc.
[0036] The present application provides an encoding method, which is applied to an encoder of the MIV standard. FIG1 is a schematic diagram of an implementation flow of the encoding method provided in the present application embodiment. As shown in FIG1 , the method includes the following steps 101 to 104:
[0037] Step 101: Divide a current view into one or more first prediction units, and determine a first brightness difference value between the first prediction unit and a reference unit; wherein the reference unit is a unit corresponding to the first prediction unit in a reference view of the current view;
[0038] Step 102, determining a second brightness difference value between a current sample in the first prediction unit and a corresponding reference sample in the reference unit;
[0039] Step 103: determining a second prediction unit based at least on the first brightness difference value and a second brightness difference value of samples in the first prediction unit; wherein the first prediction unit includes the second prediction unit;
[0040] Step 104: Generate a code stream according to the second prediction unit.
[0041] In the embodiment of the present application, the second prediction unit may be understood as the remaining samples after de-redundancy of the first prediction unit is performed based on the first brightness difference value and the second brightness difference value.
[0042] It can be understood that when determining the second prediction unit, not only the second brightness difference value (i.e., the individual sample difference) is considered, but also the first brightness difference value (i.e., the brightness difference at the prediction unit level) is considered; this is beneficial for screening out more redundant samples in the first prediction unit, thereby obtaining a smaller second prediction unit, which in turn is beneficial for saving the bit overhead of the code stream to improve compression performance.
[0043] Steps 101 to 103 can be understood as improvements to the pixel cropping (Prune pixels) module in the encoding process of the MIV standard test software TMIV14 shown in Figure 2. However, the encoding framework shown in Figure 2 does not constitute a limitation on the technical solution provided in the embodiment of the present application. It is known to those skilled in the art that with the evolution of the encoding framework and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0044] The following describes further optional implementations and related terms of each of the above steps.
[0045] In step 101, the current viewpoint is divided into one or more first prediction units, and a first brightness difference value between the first prediction unit and a reference unit is determined; wherein the reference unit is a unit corresponding to the first prediction unit in the reference viewpoint of the current viewpoint.
[0046] In the embodiments of the present application, there is no limitation on the division rules for the first prediction units of the current viewpoint and various rules may be used. For example, the encoder may divide the current viewpoint evenly to obtain multiple first prediction units; or the encoder may divide the current viewpoint according to a specific block size to obtain one or more first prediction units.
[0047] In the embodiment of the present application, there is no limitation on the method for determining the first brightness difference value, as long as it can reflect the overall brightness difference between the first prediction unit and the reference unit.
[0048] Exemplarily, in some embodiments, a third brightness difference value between a sample in the first prediction unit and a corresponding reference sample in the reference unit is determined; and an average of the third brightness difference values of the samples in the first prediction unit is determined, and the first brightness difference value is equal to the average.
[0049] In step 102, a second brightness difference value between a current sample in the first prediction unit and a corresponding reference sample in the reference unit is determined.
[0050] In some embodiments, the second brightness difference value is a minimum value among absolute values of brightness difference values between the current sample and a sample adjacent to the current sample and the reference sample.
[0051] In step 103, a second prediction unit is determined according to at least the first brightness difference value and a second brightness difference value of samples in the first prediction unit.
[0052] As described above, step 103 can be understood as a process of pruning or removing redundancy from the first prediction unit. In some embodiments, after identifying non-redundant samples in the first prediction unit, the encoder can read the non-redundant samples to obtain the second prediction unit. In other embodiments, after identifying redundant samples in the first prediction unit, the encoder can directly remove the redundant samples from the first prediction unit to obtain the second prediction unit.
[0053] That is, in some embodiments, the encoder may remove redundant samples from the first prediction unit according to at least the first brightness difference value and the second brightness difference value of the samples in the first prediction unit to obtain the second prediction unit.
[0054] It is understood that the encoder identifies redundant samples in the first prediction unit based on the first brightness difference value (i.e., overall difference) and the second brightness difference value (individual difference of samples). Furthermore, the basis also includes other parameters, such as the depth difference value between samples.
[0055] Specifically, in some embodiments, the encoder determines a depth difference value between the current sample and the reference sample; and removes redundant samples from the first prediction unit according to the first brightness difference value, the second brightness difference value of the sample in the first prediction unit, and the depth difference value to obtain the second prediction unit.
[0056] Exemplarily, the encoder may use steps 307 to 309 described in the following embodiment to identify redundant samples and remove them to obtain the second prediction unit.
[0057] In step 104, a code stream is generated according to the second prediction unit.
[0058] In some embodiments, a code stream is generated according to a first brightness difference value between the second prediction unit and the corresponding first prediction unit.
[0059] It can be understood that in the embodiment of the present application, the encoder not only needs to generate a bitstream according to the second prediction unit, but also needs to write the first brightness difference value into the bitstream, so as to facilitate the decoding end to restore the brightness of the missing redundant samples.
[0060] Furthermore, in some embodiments, the first brightness difference value is quantized to obtain a third brightness difference value; and a bitstream is generated according to the second prediction unit and the third brightness difference value.
[0061] The embodiment of the present application further provides an encoding method, which is applied to an encoder. FIG3 is a schematic diagram of an implementation flow of the encoding method provided in the embodiment of the present application. As shown in FIG3 , the method includes the following steps 301 to 311:
[0062] Step 301: Divide the current viewpoint into one or more first prediction units;
[0063] Step 302: determining a third brightness difference value between a sample in the first prediction unit and a corresponding reference sample in the reference unit;
[0064] Step 303: determining a mean of third brightness difference values of samples in the first prediction unit, wherein the first brightness difference value is equal to the mean;
[0065] Step 304 , determining a second brightness difference value between the current sample in the first prediction unit and the corresponding reference sample in the reference unit;
[0066] Step 305: determining a depth difference between the current sample and the reference sample;
[0067] Step 306, determining an absolute value of a difference between the first brightness difference value and the second brightness difference value of the current sample;
[0068] After obtaining the depth difference value and the absolute value of the difference between the first brightness difference value and the second brightness difference value, based on this, in some embodiments, the encoder can remove redundant samples from the first prediction unit based on the relationship between the absolute value of the difference value and the first threshold value, and the relationship between the depth difference value of the current sample and the second threshold value, to obtain the second prediction unit. Further, in some embodiments, the second prediction unit is determined through the following steps 307 to 309.
[0069] Step 307: Determine whether the absolute value of the difference between the first brightness difference value and the second brightness difference value of the current sample is less than or equal to a first threshold, and whether the depth difference value of the current sample is less than or equal to a second threshold; if so, determine that the current sample is a suspected redundant sample, and execute step 308; otherwise, determine that the current sample is a non-redundant sample;
[0070] In the embodiment of the present application, the judgment condition of redundant samples is not limited. In some embodiments, when the absolute value of the difference between the first brightness difference value and the second brightness difference value of the current sample is less than or equal to the first threshold, and the depth difference value of the current sample is less than or equal to the second threshold, the encoder directly determines that the current sample is a redundant sample; that is, in this embodiment, when the absolute value of the difference between the first brightness difference value and the second brightness difference value of the current sample is less than or equal to the first threshold and the depth difference value of the current sample is less than or equal to the second threshold, the current sample is determined to be a redundant sample; the redundant samples in the first prediction unit are removed to obtain the second prediction unit.
[0071] In other embodiments, the encoder may further determine whether the current sample is a redundant sample when the absolute value of the difference between the first brightness difference value and the second brightness difference value of the current sample is less than or equal to a first threshold, that is, execute the following step 308.
[0072] Step 308, determining whether the suspected redundant sample is a redundant sample; if so, executing step 309; otherwise, determining that the current sample is a non-redundant sample;
[0073] In some embodiments, the encoder may use a second-pass algorithm to determine whether a suspected redundant sample is a redundant sample. Specifically, in some embodiments, the encoder determines a color difference value, such as an RGB color difference value, between the suspected redundant sample and a corresponding reference sample of the sample in a reference unit; based on this, the encoder calculates a fitting function f that best fits the color difference values of these suspected redundant samples by using a least squares method, where the fitting function describes the global color difference between the current viewpoint and the reference viewpoint; based on this, for the color value po of the suspected redundant sample, the color value pv of the corresponding reference sample in the reference viewpoint is converted to f(pv) by using the fitting function f; if |f(pv)–po| is less than a third threshold, the suspected redundant sample is determined to be a redundant sample; if |f(pv)–po| is greater than or equal to the third threshold, the suspected redundant sample is determined to be a non-redundant sample.
[0074] Step 309: remove redundant samples in the first prediction unit to obtain the second prediction unit;
[0075] Step 310: quantize the first brightness difference value to obtain a third brightness difference value;
[0076] Step 311: Generate a code stream according to the second prediction unit and the third brightness difference value.
[0077] The present application provides a decoding method, which is applied to a decoder. FIG3 is a schematic diagram of an implementation flow of the decoding method provided in the present application. As shown in FIG3 , the method includes the following steps 301 to 302:
[0078] Step 301: Parse the code stream, and obtain, based on the parsing result, a sample reconstruction value of a second prediction unit and a first brightness difference value of a first prediction unit corresponding to the second prediction unit.
[0079] Step 302 : Determine a sample reconstruction value of the first prediction unit according to the sample reconstruction value of the reference unit of the first prediction unit, the first brightness difference value, and the sample reconstruction value of the second prediction unit.
[0080] In some embodiments, the sample reconstruction values include sample reconstruction values of luma components and / or sample reconstruction values of chroma components.
[0081] The decoder can determine the removal area in the first prediction unit based on the second prediction unit; and determine the sample reconstruction value of the luminance component of the removal area based on the sample reconstruction value of the luminance component of the reference area in the reference unit of the removal area and the first luminance difference value; the decoder can determine the sample reconstruction value of the chrominance component of the removal area based on the sample reconstruction value of the chrominance component of the reference area.
[0082] It can be understood that in the encoding process of the MIV standard encoder, the pixel pruning module is used to detect repeated parts between views so that the repeated pixels can be pruned in subsequent processing. As shown in Figure 4, any pixel 401 of a view v0 is mapped to a pixel 402 of another view v1 and its 3x3 neighborhood through the internal and external parameters and depth information of the camera. By detecting the similarity between pixel 401 and pixel 402, it is decided whether to prune pixel 402; wherein, view v1 can be understood as the current viewpoint mentioned above, and view v0 can be understood as the reference view of view v1, that is, the image where the reference unit mentioned above is located. Pixel 402 can be understood as the current sample, and pixel 401 can be understood as the reference sample of the current sample in the reference view.
[0083] In the first stage of the prune pixels module, as shown in Figure 5, the following two criteria are used to determine whether a pair of pixels is similar:
[0084] 1. The difference between the depth values corresponding to pixel 401 and pixel 402 should be less than the second threshold t2. The depth value comparison is performed on a pixel-by-pixel basis;
[0085] 2. The minimum difference in luminance between pixel 401 in view v0 and all pixels in a 3×3 pixel block in view v1 should be less than a first threshold t4. The luminance comparison is performed on a pixel-to-block basis.
[0086] After the first phase of detection, pairs of pixels suspected of being similar (i.e., suspected redundant samples) enter the second-pass process, where some dissimilar pixel pairs are filtered out, meaning some suspected redundant samples are identified as non-redundant samples. After the second-pass process, the final similar pixels to be cropped are obtained.
[0087] In the second pass, the pruner updates the pruning mask created in the first stage above and re-identifies some pixels that do not need to be pruned (actually not similar) among the pixels determined to be pruned in the first stage. The main purpose of this process is to consider the possible global color differences (in the RGB space) between different views. For each pair of suspected similar pixels given in the first stage, the operation process of the second pass is as follows:
[0088] 1. For suspected similar pixels, calculate the RGB color difference between the corresponding pixel in the reference view and this pixel;
[0089] 2. By using the least squares method, calculate the fitting function f that can best fit these RGB color differences. This fitting function describes the global color difference between this view (such as v1 in Figure 4) and the reference view (such as v0 in Figure 4);
[0090] 3. For the suspected similar pixel po, convert the corresponding pixel pv in the reference view to f(pv) through the fitting function f. If |f(pv) – po| < t3, the pixel po will be determined to be "similar" and will be cropped; if |f(pv) – po| > t3, the pixel po will be determined to be "dissimilar" and will be retained without being cropped;
[0091] Regarding the lighting inconsistency manifested by the same particle at different perspectives, the prunne pixels process shown in Figure 5 above determines it as dissimilar, so as to retain the effect of perspective transformation to a certain extent in the rendering result.
[0092] However, the prune pixels process shown in Figure 5 confuses the lighting inconsistency and physical inconsistency of pixels and cannot distinguish the differences between the two. Taking Figure 6 as an example, the two regions in the rectangular frame are physically consistent but lighting-inconsistent. In the existing encoder, both regions are retained in the atlas, resulting in redundant texture information. In view of such a situation, in the embodiments of the present application, the encoder can approximate the difference between these two regions as an overall offset of brightness, and only encode one region and the brightness offset information.
[0093] The following will illustrate the exemplary application of the embodiments of the present application in a practical application scenario.
[0094] In the embodiments of the present application, it is proposed to predict the local brightness value offset and approximately replace the lighting inconsistency with the brightness value offset (i.e., the first brightness difference value). By introducing the brightness value offset, more pixels can be cropped, the bit rate can be reduced, and the coding efficiency can be improved.
[0095] This solution includes the following points:
[0096] 1. This solution does not perform pixel cropping at the view image level. Instead, it first divides the cropped view image into illumination inconsistency prediction units (LUs), also known as the first prediction unit. As shown in Figure 7, view v1 is cropped with view v0 as a reference. View v1 is first divided into a grid of LUs, and then brightness offset prediction and pixel cropping are performed at the LU level.
[0097] 2. Using Figure 7 as an example, for any pixel in each LU of viewpoint v1, a correspondence is established with a pixel in viewpoint v0. Over a continuous period, the average brightness difference value (i.e., an example of a first brightness difference value) of pixel pairs in each LU in the first frame is calculated and quantized to serve as the brightness offset value Y_offset corresponding to that LU.
[0098] 3. In units of LU, perform pixel pruning as shown in Figure 8 for all pixel pairs. The prune pixels algorithm in Figure 8 is almost the same as that in Figure 5, except that the difference between the brightness difference and the Y_offset is compared with the threshold t1.
[0099] 4. Using LU as the unit, implement the existing algorithm shown in Figure 2: Aggregate pruning masks, Cluster active pixels, Split clusters; the resulting patches are subsets of LU and have the same Y_offset.
[0100] 5. Encode Y_offset into the bitstream of the patch layer so that the decoding end can decode it and restore the brightness offset effect.
[0101] In the embodiment of the present application, the technical solution shown in FIG8 can effectively reduce the bit rate improvement problem caused by illumination inconsistency and effectively improve the coding efficiency.
[0102] In the embodiment of the present application, a new LU layer is added, and the idea of divide and conquer is adopted to approximate the local illumination inconsistency; the illumination inconsistency is extracted and transmitted separately, saving bit rate;
[0103] The illumination inconsistency is approximated and encoded into the bitstream of the tile, ensuring that the decoding end can restore the illumination inconsistency effect.
[0104] It should be noted that although the steps of the method of the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all steps must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps; or steps in different embodiments may be combined to form a new technical solution.
[0105] Based on the above embodiments, an embodiment of the present application provides an encoding device. FIG9 is a schematic structural diagram of the encoding device provided in the embodiment of the present application. As shown in FIG9 , the encoding device 90 includes:
[0106] A first determining module 901 is configured to divide a current viewpoint into one or more first prediction units and determine a first brightness difference value between the first prediction unit and a reference unit; wherein the reference unit is a unit corresponding to the first prediction unit in a reference viewpoint of the current viewpoint;
[0107] A second determining module 902 is configured to determine a second brightness difference value between a current sample in the first prediction unit and a corresponding reference sample in the reference unit;
[0108] A third determining module 903 is configured to determine a second prediction unit based at least on the first brightness difference value and a second brightness difference value of samples in the first prediction unit;
[0109] The encoding module 904 is configured to generate a code stream according to the second prediction unit.
[0110] In some embodiments, the third determining module 903 is configured to: remove redundant samples from the first prediction unit according to at least the first brightness difference value and a second brightness difference value of samples in the first prediction unit to obtain the second prediction unit.
[0111] In some embodiments, the encoding module 904 is configured to generate a code stream according to the first brightness difference value between the second prediction unit and the corresponding first prediction unit.
[0112] In some embodiments, the third determination module 903 is configured to: determine the depth difference value between the current sample and the reference sample; and remove redundant samples from the first prediction unit according to the first brightness difference value, the second brightness difference value of the sample in the first prediction unit, and the depth difference value to obtain the second prediction unit.
[0113] In some embodiments, the third determination module 903 is configured to: determine the absolute value of the difference between the first brightness difference value and the second brightness difference value of the current sample; and remove redundant samples from the first prediction unit based on the size relationship between the absolute value of the difference and the first threshold and the size relationship between the depth difference value of the current sample and the second threshold to obtain the second prediction unit.
[0114] In some embodiments, the third determination module 903 is configured to: determine that the current sample is a suspected redundant sample when the absolute value of the difference between the first brightness difference value and the second brightness difference value of the current sample is less than or equal to a first threshold and the depth difference value of the current sample is less than or equal to a second threshold; determine whether the suspected redundant sample is a redundant sample; and remove the redundant samples in the first prediction unit to obtain the second prediction unit.
[0115] In some embodiments, the third determination module 903 is configured to: determine that the current sample is a redundant sample when the absolute value of the difference between the first brightness difference value and the second brightness difference value of the current sample is less than or equal to a first threshold and the depth difference value of the current sample is less than or equal to a second threshold; remove the redundant samples in the first prediction unit to obtain the second prediction unit.
[0116] In some embodiments, the second prediction unit includes a non-redundant sample; the third determination module 903 is further configured to: when the absolute value of the difference between the first brightness difference value and the second brightness difference value of the current sample is greater than the first threshold, or when the depth difference value of the current sample is greater than the second threshold, determine that the current sample is a non-redundant sample.
[0117] The first determination module 901 is configured to: determine a third brightness difference value between the samples in the first prediction unit and the corresponding reference samples in the reference unit; determine an average of the third brightness difference values of the samples in the first prediction unit, where the first brightness difference value is equal to the average.
[0118] In some embodiments, the second brightness difference value is a minimum value among absolute values of brightness difference values between the current sample and a sample adjacent to the current sample and the reference sample.
[0119] In some embodiments, the encoding module 904 is configured to: quantize the first brightness difference value to obtain a third brightness difference value; and generate a bitstream according to the second prediction unit and the third brightness difference value.
[0120] The description of the above encoding device embodiment is similar to the description of the above encoding method embodiment, and has similar beneficial effects as the encoding method embodiment. For technical details not disclosed in the encoding device embodiment of this application, please refer to the description of the encoding method embodiment of this application for understanding.
[0121] The present application provides a decoding device. FIG10 is a schematic diagram of the structure of the decoding device provided in the present application. As shown in FIG10 , the decoding device 100 includes:
[0122] The decoding module 1001 is configured to parse the code stream, obtain a sample reconstruction value of the second prediction unit and a first luminance difference value of the first prediction unit corresponding to the second prediction unit based on the parsing result; and determine the first prediction unit based on the sample reconstruction value of the reference unit of the first prediction unit, the first luminance difference value, and the sample reconstruction value of the second prediction unit.
[0123] In some embodiments, the sample reconstruction value includes a sample reconstruction value of a luminance component; the decoding module 1001 is configured to: determine a removal area in the first prediction unit according to the second prediction unit; and determine a sample reconstruction value of the luminance component of the removal area according to the sample reconstruction value of the luminance component of the reference area of the removal area in the reference unit and the first luminance difference value.
[0124] In some embodiments, the sample reconstruction value further includes a sample reconstruction value of a chrominance component; the decoding module 1001 is configured to determine the sample reconstruction value of the chrominance component of the removed area according to the sample reconstruction value of the chrominance component of the reference area.
[0125] It should be noted that the division of modules in the encoding / decoding device in the embodiments of the present application is schematic and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units. Alternatively, they may be implemented in a combination of software and hardware.
[0126] It should be noted that, in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0127] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the encoding method or the decoding method as described in the embodiment of the present application is implemented.
[0128] An embodiment of the present application provides an encoder, as shown in FIG11 , the encoder 11 includes: a first communication interface 111, a first memory 112, and a first processor 113; each component is coupled together via a first bus system 114. It is understood that the first bus system 114 is used to implement connection and communication between these components. In addition to the data bus, the first bus system 114 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in FIG11 , various buses are labeled as the first bus system 114. Among them,
[0129] The first communication interface 111 is used for sending and receiving signals during the process of sending and receiving information with other external network elements;
[0130] A first memory 112 is used to store computer programs that can be run on the first processor 113;
[0131] The first processor 113 is configured to execute the encoding method described in the embodiment of the present application when running the computer program.
[0132] It is understood that the first memory 112 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can 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 can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The first memory 112 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0133] The first processor 113 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits or software instructions in the first processor 113. The above-mentioned first processor 113 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the first memory 112 , and the first processor 113 reads the information in the first memory 112 and completes the steps of the above method in combination with its hardware.
[0134] It is to be understood that these embodiments described in the present application can be implemented with hardware, software, firmware, middleware, microcode or its combination.For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing equipment (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing functions described in the present application or its combination.For software implementation, the technology described in the present application can be realized by the module (such as process, function etc.) that performs functions described in the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0135] Optionally, as another embodiment, the first processor 113 is further configured to execute any of the aforementioned encoding method embodiments when running the computer program.
[0136] The present application provides a decoder, as shown in FIG12 , in which the decoder 12 includes: a second communication interface 121, a second memory 122, and a second processor 123; each component is coupled together via a second bus system 124. It is understood that the second bus system 124 is used to implement connection and communication between these components. In addition to the data bus, the second bus system 124 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in FIG12 , all buses are labeled as the second bus system 124.
[0137] The second communication interface 121 is used for receiving and sending signals during the process of sending and receiving information between other external network elements;
[0138] The second memory 122 is used to store computer programs that can be run on the second processor 123;
[0139] The second processor 123 is configured to execute the decoding method described in the embodiment of the present application when running the computer program.
[0140] It can be understood that the hardware functions of the second memory 122 and the first memory 112 are similar, and the hardware functions of the second processor 123 and the first processor 113 are similar; they are not described in detail here.
[0141] The embodiment of the present application further provides a code stream, which is obtained by using the aforementioned encoding method.
[0142] An embodiment of the present application provides an electronic device, comprising: a processor adapted to execute a computer program; and a computer-readable storage medium storing the computer program, wherein when the computer program is executed by the processor, the encoding method and / or decoding method described in the embodiment of the present application are implemented. The electronic device can be any type of device capable of video encoding and / or video decoding, such as a mobile phone, tablet computer, laptop computer, personal computer, television, projection device, or monitoring device.
[0143] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0144] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0145] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0146] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0147] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0148] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed across multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of this embodiment.
[0149] In addition, all functional modules in the embodiments of the present application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the above-mentioned integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0150] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.
[0151] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0152] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0153] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0154] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0155] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A coding method, the method being applied to an encoder, the method comprising: Divide the current viewpoint into one or more first prediction units, and determine a first brightness difference value between the first prediction unit and a reference unit; wherein the reference unit is a unit corresponding to the first prediction unit in the reference viewpoint of the current viewpoint; Determine a second brightness difference value between a current sample in the first prediction unit and a corresponding reference sample in the reference unit; determining a second prediction unit at least according to the first brightness difference value and a second brightness difference value of samples in the first prediction unit; A code stream is generated according to the second prediction unit.
2. The method according to claim 1, wherein: The determining the second prediction unit at least according to the first brightness difference value and the second brightness difference value of the samples in the first prediction unit comprises: Redundant samples of the first prediction unit are removed at least according to the first brightness difference value and a second brightness difference value of samples in the first prediction unit to obtain the second prediction unit.
3. The method according to claim 1, wherein: The step of generating a bitstream according to the second prediction unit includes: A code stream is generated according to a first brightness difference value between the second prediction unit and the corresponding first prediction unit.
4. The method according to claim 2, wherein: The removing redundant samples of the first prediction unit at least according to the first brightness difference value and the second brightness difference value of the samples in the first prediction unit to obtain the second prediction unit comprises: Determining a depth difference value between the current sample and the reference sample; Redundant samples of the first prediction unit are removed according to the first brightness difference value, the second brightness difference value of the samples in the first prediction unit, and the depth difference value to obtain the second prediction unit.
5. The method according to claim 4, wherein: The removing redundant samples of the first prediction unit according to the first brightness difference value, the second brightness difference value of the samples in the first prediction unit, and the depth difference value to obtain the second prediction unit includes: Determine an absolute value of a difference between the first brightness difference value and a second brightness difference value of the current sample; According to the magnitude relationship between the absolute value of the difference and the first threshold and the magnitude relationship between the depth difference value of the current sample and the second threshold, redundant samples are removed from the first prediction unit to obtain the second prediction unit.
6. The method according to claim 4, wherein: The removing redundant samples from the first prediction unit according to the magnitude relationship between the absolute value of the difference and the first threshold and the magnitude relationship between the depth difference value of the current sample and the second threshold to obtain the second prediction unit includes: When an absolute value of a difference between the first brightness difference value and the second brightness difference value of the current sample is less than or equal to a first threshold and a depth difference value of the current sample is less than or equal to a second threshold, determining that the current sample is a suspected redundant sample; Determining whether the suspected redundant sample is a redundant sample; Redundant samples in the first prediction unit are removed to obtain the second prediction unit.
7. The method according to claim 4, wherein: The removing redundant samples from the first prediction unit according to the magnitude relationship between the absolute value of the difference and the first threshold and the magnitude relationship between the depth difference value of the current sample and the second threshold to obtain the second prediction unit includes: When an absolute value of a difference between the first brightness difference value and the second brightness difference value of the current sample is less than or equal to a first threshold and a depth difference value of the current sample is less than or equal to a second threshold, determining that the current sample is a redundant sample; Redundant samples in the first prediction unit are removed to obtain the second prediction unit.
8. The method according to claim 4, wherein: The second prediction unit includes non-redundant samples; and the method further includes: When an absolute value of a difference between the first brightness difference value and a second brightness difference value of the current sample is greater than the first threshold, or when a depth difference value of the current sample is greater than the second threshold, the current sample is determined to be a non-redundant sample.
9. The method according to claim 1, wherein: The determining a first brightness difference value between the first prediction unit and the reference unit includes: Determining a third brightness difference value between a sample in the first prediction unit and a corresponding reference sample in the reference unit; An average of third brightness difference values of samples in the first prediction unit is determined, the first brightness difference value being equal to the average.
10. The method according to claim 1, wherein: The second brightness difference value is a minimum value of absolute values of brightness difference values between the current sample and a sample adjacent to the current sample and the reference sample.
11. The method according to claim 3, wherein: The step of generating a bitstream according to a first brightness difference value between the second prediction unit and the corresponding first prediction unit includes: quantizing the first brightness difference value to obtain a third brightness difference value; A code stream is generated according to the second prediction unit and the third brightness difference value.
12. A decoding method, the decoding method being applied to a decoder, the method comprising: Parse the bitstream, and obtain, according to the parsing result, a sample reconstruction value of the second prediction unit and a first brightness difference value of the first prediction unit corresponding to the second prediction unit; A sample reconstruction value of the first prediction unit is determined according to the sample reconstruction value of the reference unit of the first prediction unit, the first brightness difference value, and the sample reconstruction value of the second prediction unit.
13. The method according to claim 12, wherein: The sample reconstruction value comprises a sample reconstruction value of a luminance component; determining, according to the second prediction unit, a removal area in the first prediction unit; The sample reconstruction value of the brightness component of the removed area is determined according to the sample reconstruction value of the brightness component of the reference area of the removed area in the reference unit and the first brightness difference value.
14. The method according to claim 13, wherein: The sample reconstruction values also include sample reconstruction values of chrominance components; The sample reconstruction value of the chrominance component of the removed area is determined according to the sample reconstruction value of the chrominance component of the reference area.
15. An encoding device, applied to an encoder, the device comprising: A first determination module is configured to divide the current viewpoint into one or more first prediction units, and determine a first brightness difference value between the first prediction unit and a reference unit; wherein the reference unit is a unit corresponding to the first prediction unit in the reference viewpoint of the current viewpoint; A second determination module, configured to determine a second brightness difference value between a current sample in the first prediction unit and a corresponding reference sample in the reference unit; a third determining module, configured to determine a second prediction unit at least according to the first brightness difference value and a second brightness difference value of samples in the first prediction unit; The encoding module is configured to generate a code stream according to the second prediction unit.
16. An encoder comprising a first memory and a first processor; wherein: The first memory is used to store a computer program that can be run on the first processor; The first processor is configured to execute the method according to any one of claims 1 to 11 when running the computer program.
17. A decoding device, applied to a decoder, the device comprising: The decoding module is configured to parse the code stream, obtain the sample reconstruction value of the second prediction unit and the first brightness difference value of the first prediction unit corresponding to the second prediction unit according to the parsing result; and determine the first prediction unit according to the sample reconstruction value of the reference unit of the first prediction unit, the first brightness difference value and the sample reconstruction value of the second prediction unit.
18. A decoder comprising a second memory and a second processor; wherein: The second memory is used to store a computer program that can be run on the second processor; The second processor is configured to execute the method according to any one of claims 12 to 14 when running the computer program.
19. A code stream, wherein the code stream is generated by the encoding method according to any one of claims 1 to 11.
20. An electronic device, comprising: a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method according to any one of claims 1 to 11 is implemented, or when the computer program is executed by the processor, the method according to any one of claims 12 to 14 is implemented.
21. A computer-readable storage medium, wherein: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 11 is implemented, or the method according to any one of claims 12 to 14 is implemented.
Citation Information
Patent Citations
Video encoding method, video decoding method and related equipment
CN112532988A
Encoding method, decoding method, encoder, decoder and computer storage medium
WO2022266971A1
Video encoding reference block compression method, encoding method, and apparatuses
WO2023000695A1
