Point cloud encoding method, point cloud decoding method, encoder, decoder, code stream, and storage medium
By determining the identification information of the point cloud processing unit and controlling its geometric coding parameter set, the problem of high complexity of existing entropy coding is solved and the point cloud encoding and decoding performance is improved.
Patent Information
- Application Number
- PCT/CN2023/088956
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-18
- Publication Date
- 2024-10-24
AI Technical Summary
Existing entropy coding methods have high complexity in the point cloud encoding and decoding process, resulting in low point cloud encoding and decoding performance.
By determining the identification information of the current processing unit, controlling its corresponding geometric coding parameter set, clarifying the inheritance relationship of the entropy continuity enable flag, and simplifying the encoding and decoding operations.
Improved point cloud encoding and decoding performance and reduced encoding and decoding complexity.
Smart Images

Figure CN2023088956_24102024_PF_FP_ABST
Abstract
Description
Point cloud encoding and decoding method, encoder, decoder, code stream and storage medium Technical Field
[0001] The embodiments of the present application relate to the field of point cloud compression technology, and in particular to a point cloud encoding and decoding method, encoder, decoder, code stream and storage medium. Background Art
[0002] Entropy coding is widely used in the geometry-based point cloud compression (G-PCC) codec framework. Entropy coding is an encoding or decoding method that adaptively selects a probabilistic model based on the local context. When the local context of the encoding changes, the state of the encoder / decoder engine also changes. By adapting the encoding process to the different contexts, the probabilistic model becomes more effective during encoding.
[0003] However, the current entropy coding method has the problem of high encoding and decoding complexity, which in turn reduces the encoding and decoding performance of the point cloud.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a point cloud encoding and decoding method, encoder, decoder, code stream and storage medium, which can improve the encoding and decoding performance of point cloud attributes.
[0006] In a first aspect, an embodiment of the present application provides a point cloud decoding method, applied to a decoder, the method comprising:
[0007] Decoding the code stream to determine first identification information corresponding to the current processing unit; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set;
[0008] Determine, based on the first identification information, second identification information corresponding to the current processing unit; wherein the second identification information is identification information corresponding to a geometric coding parameter set;
[0009] A probability model is determined based on the second identification information, and a predicted value of the current processing unit is obtained according to the probability model.
[0010] In a second aspect, an embodiment of the present application provides a point cloud encoding method, applied to an encoder, the method comprising:
[0011] Determine first identification information corresponding to the current processing unit, and write the first identification information into the bitstream; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set;
[0012] Determine, based on the first identification information, second identification information corresponding to the current processing unit, and write the second identification information into the bitstream; wherein the second identification information is identification information corresponding to the geometric coding parameter set;
[0013] A probability model is determined based on the second identification information, and a predicted value of the current processing unit is obtained according to the probability model.
[0014] In a third aspect, an embodiment of the present application provides an encoder, comprising a first determining unit, wherein:
[0015] The first determination unit is configured to determine first identification information corresponding to the current processing unit and write the first identification information into the code stream; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determine second identification information corresponding to the current processing unit, and write the second identification information into the code stream; wherein the second identification information is identification information corresponding to the geometric coding parameter set; determine a probability model based on the second identification information, and obtain a predicted value of the current processing unit according to the probability model.
[0016] In a fourth aspect, an embodiment of the present application provides an encoder, comprising a first memory and a first processor; wherein,
[0017] The first memory is used to store a computer program that can be run on the first processor;
[0018] The first processor is configured to execute the point cloud encoding method described above when running the computer program.
[0019] In a fifth aspect, an embodiment of the present application provides a decoder, wherein the decoder includes a second determining unit, wherein:
[0020] The second determination unit is configured to decode the code stream and determine the first identification information corresponding to the current processing unit; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determine the second identification information corresponding to the current processing unit; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; determine the probability model based on the second identification information, and obtain the predicted value of the current processing unit according to the probability model.
[0021] In a sixth aspect, an embodiment of the present application provides a decoder, comprising a second memory and a second processor; wherein:
[0022] The second memory is used to store a computer program that can be run on the second processor;
[0023] The second processor is configured to execute the point cloud decoding method described above when running the computer program.
[0024] In the seventh aspect, an embodiment of the present application provides a code stream, which is generated by bit encoding based on the information to be encoded; wherein the information to be encoded includes at least: first identification information corresponding to the current processing unit, second identification information corresponding to the current processing unit, and third identification information corresponding to the current processing unit.
[0025] In an eighth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a first processor, it implements the point cloud encoding method as described above, or, when executed by a second processor, it implements the point cloud decoding method as described above.
[0026] The embodiment of the present application provides a point cloud encoding and decoding method, an encoder, a decoder, a bitstream, and a storage medium. The encoder determines first identification information corresponding to the current processing unit and writes the first identification information into the bitstream; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set; based on the first identification information, the second identification information corresponding to the current processing unit is determined, and the second identification information is written into the bitstream; wherein the second identification information is identification information corresponding to the geometric coding parameter set; based on the second identification information, a probability model corresponding to the current processing unit is determined, and a predicted value of the current processing unit is obtained according to the probability model. The decoder decodes the bitstream, determines the first identification information corresponding to the current processing unit; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determines the second identification information corresponding to the current processing unit; wherein the second identification information is identification information corresponding to the geometric coding parameter set; determines the probability model based on the second identification information, and obtains a predicted value of the current processing unit according to the probability model. In this way, in the process of encoding and decoding the current processing unit, the second identification information corresponding to the current processing unit can be controlled by determining the first identification information corresponding to the current processing unit, which can clarify the inheritance relationship of the entropy continuity enabling flag, thereby simplifying the encoding and decoding operations and improving the encoding and decoding performance of the point cloud. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] FIG1A is a schematic diagram of a three-dimensional point cloud image provided in an embodiment of the present application;
[0028] FIG1B is a partially enlarged schematic diagram of a three-dimensional point cloud image provided in an embodiment of the present application;
[0029] FIG2A is a schematic diagram of a point cloud image at different viewing angles provided by an embodiment of the present application;
[0030] FIG2B is a schematic diagram of a data storage format corresponding to FIG2A provided in an embodiment of the present application;
[0031] FIG3 is a schematic diagram of a network architecture of point cloud encoding and decoding provided by an embodiment of the present application;
[0032] FIG4 is a schematic diagram of the structure of a point cloud encoder provided in an embodiment of the present application;
[0033] FIG5 is a schematic diagram of the structure of a point cloud decoder provided in an embodiment of the present application;
[0034] FIG6 shows a schematic diagram of a composition framework of a point cloud encoder;
[0035] FIG7 shows a schematic diagram of a point cloud decoder structure;
[0036] FIG8 shows a syntax diagram of an entropy continuity identifier;
[0037] FIG9 shows a schematic diagram of an entropy context setting process;
[0038] FIG10 shows a schematic diagram of a process for determining an entropy model;
[0039] FIG11 shows a flow chart of using a dependent entropy frame in TMC13;
[0040] FIG12 is a schematic diagram of an implementation flow of a point cloud decoding method proposed in an embodiment of the present application;
[0041] FIG13 is a schematic diagram of a tile and slice division proposed in an embodiment of the present application;
[0042] FIG14 is a first schematic diagram of a slice partitioning method proposed in an embodiment of the present application;
[0043] FIG15 is a second schematic diagram of the slice partitioning method proposed in an embodiment of the present application;
[0044] FIG16 is a third schematic diagram of the slice partitioning method proposed in an embodiment of the present application;
[0045] FIG17 shows a schematic diagram of slice decoding;
[0046] FIG18 shows a schematic diagram of a code stream structure;
[0047] FIG19 is a schematic diagram of an implementation flow of a point cloud encoding method proposed in an embodiment of the present application;
[0048] FIG20 is a schematic diagram of the structure of the encoder;
[0049] FIG21 is a second schematic diagram of the structure of the encoder;
[0050] FIG22 is a schematic diagram of the structure of the decoder;
[0051] FIG23 is a second schematic diagram of the decoder structure. DETAILED DESCRIPTION
[0052] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0053] 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.
[0054] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will 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.
[0055] It should also be pointed out that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0056] Point cloud is a three-dimensional representation of the surface of an object. Point cloud (data) of the surface of an object can be collected through acquisition equipment such as photoelectric radar, lidar, laser scanner, and multi-view camera.
[0057] A point cloud is a set of irregularly distributed discrete points in space that express the spatial structure and surface properties of a three-dimensional object or scene. Figure 1A shows a three-dimensional point cloud image and Figure 1B shows a partially enlarged view of the three-dimensional point cloud image. It can be seen that the point cloud surface is composed of densely distributed points.
[0058] In a two-dimensional image, each pixel contains information and is distributed regularly, so there's no need to record its location. However, the distribution of points in a point cloud in three-dimensional space is random and irregular, so recording the location of each point in space is necessary to fully represent the point cloud. Similar to a two-dimensional image, each location in the acquisition process has corresponding attribute information, typically an RGB color value, which reflects the object's color. For a point cloud, in addition to color information, each point's corresponding attribute information often includes a reflectance value, which reflects the surface texture of the object. Therefore, a point in a point cloud can include both its location information and its attribute information. For example, the location information of a point can be its three-dimensional coordinates (x, y, z). The location information of a point can also be referred to as its geometric information. For example, the attribute information of a point can include color information (three-dimensional color information) and / or reflectance (one-dimensional reflectance information r). For example, the color information can be information in any color space. For example, the color information can be RGB information, where R represents red (Red), G represents green (Green), and B represents blue (Blue). For another example, the color information may be luminance and chrominance (YCbCr, YUV) information, where Y represents brightness (Luma), Cb (U) represents blue color difference, and Cr (V) represents red color difference.
[0059] For example, a point cloud generated using laser measurement principles can include both its 3D coordinate information and its reflectivity. For another example, a point cloud generated using photogrammetry principles can include both its 3D coordinate information and its 3D color information. For another example, a point cloud generated using a combination of laser measurement and photogrammetry principles can include both its 3D coordinate information, its reflectivity value, and its 3D color information.
[0060] Figures 2A and 2B show a point cloud image and its corresponding data storage format. Figure 2A provides six viewing angles of the point cloud image, while Figure 2B consists of a file header and data. The header includes the data format, data representation type, the total number of points in the point cloud, and the content represented by the point cloud. For example, the point cloud is in ".ply" format, represented by ASCII code, with a total of 207,242 points. Each point has 3D coordinate information (x, y, z) and 3D color information (r, g, b).
[0061] Point clouds can be divided into the following categories according to the acquisition method:
[0062] Static point cloud: the object is stationary and the device that acquires the point cloud is also stationary;
[0063] Dynamic point cloud: The object is moving, but the device that obtains the point cloud is stationary;
[0064] Dynamic point cloud acquisition: The device used to acquire the point cloud is in motion.
[0065] For example, point clouds can be divided into two categories according to their usage:
[0066] Category 1: Machine perception point cloud, which can be used in scenarios such as autonomous navigation systems, real-time inspection systems, geographic information systems, visual sorting robots, and disaster relief robots;
[0067] Category 2: Human eye perception point cloud, which can be used in point cloud application scenarios such as digital cultural heritage, free viewpoint broadcasting, 3D immersive communication, and 3D immersive interaction.
[0068] Point clouds can flexibly and conveniently express the spatial structure and surface properties of three-dimensional objects or scenes. Moreover, since point clouds are obtained by directly sampling real objects, they can provide a strong sense of reality while ensuring accuracy. Therefore, they are widely used, including virtual reality games, computer-aided design, geographic information systems, automatic navigation systems, digital cultural heritage, free viewpoint broadcasting, three-dimensional immersive remote presentation, and three-dimensional reconstruction of biological tissues and organs.
[0069] Point clouds are primarily collected through computer generation, 3D laser scanning, and 3D photogrammetry. Computers can generate point clouds of virtual 3D objects and scenes; 3D laser scanning can obtain point clouds of static real-world 3D objects or scenes, generating millions of point clouds per second; and 3D photogrammetry can obtain point clouds of dynamic real-world 3D objects or scenes, generating tens of millions of point clouds per second. These technologies reduce the cost and time required to acquire point cloud data while improving data accuracy. While changes in point cloud data acquisition methods have made it possible to acquire large amounts of point cloud data, the processing of this massive amount of 3D point cloud data is facing bottlenecks due to storage space and transmission bandwidth constraints, as application demands grow.
[0070] For example, taking a point cloud video with a frame rate of 30 frames per second (fps), each frame contains 700,000 points, and each point has coordinate information (xyz, float) and color information (RGB, uchar). The data volume of a 10-second point cloud video is approximately 0.7 million × (4 bytes × 3 + 1 byte × 3) × 30 fps × 10 seconds = 3.15 GB. A 1280 × 720 2D video with a frame rate of 24 fps has a data volume of approximately 1280 × 720 × 12 bits × 24 fps × 10 seconds = 0.33 GB. A 10-second two-view 3D video has a data volume of approximately 0.33 × 2 = 0.66 GB. This shows that the data volume of a point cloud video far exceeds that of 2D and 3D videos of the same length. Therefore, in order to better realize data management, save server storage space, and reduce the transmission traffic and transmission time between the server and the client, point cloud compression has become a key issue in promoting the development of the point cloud industry.
[0071] That is to say, since the point cloud is a collection of massive points, storing the point cloud not only consumes a lot of memory, but is also not conducive to transmission. There is also not enough bandwidth to support direct transmission of the point cloud at the network layer without compression. Therefore, the point cloud needs to be compressed.
[0072] Currently, point cloud coding frameworks that can compress point clouds can include the Geometry-based Point Cloud Compression (G-PCC) codec framework or the Video-based Point Cloud Compression (V-PCC) codec framework provided by the Moving Picture Experts Group (MPEG), or the AVS-PCC codec framework provided by AVS. The G-PCC codec framework can be used to compress the first type of static point clouds and the third type of dynamically acquired point clouds, while the V-PCC codec framework can be used to compress the second type of dynamic point clouds.
[0073] An embodiment of the present application provides a network architecture of a point cloud encoding and decoding system including a point cloud decoding method and a point cloud encoding method. FIG3 is a schematic diagram of a network architecture of a point cloud encoding and decoding provided by an embodiment of the present application. As shown in FIG3 , the network architecture includes one or more electronic devices 13 to 1N and a communication network 01, wherein the electronic devices 13 to 1N can perform video interaction through the communication network 01. During the implementation process, the electronic device can be various types of devices with point cloud encoding and decoding functions. For example, the electronic device can include a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a navigator, a digital phone, a video phone, a television, a sensor device, a server, etc., which is not limited by the embodiment of the present application. Among them, the decoder or encoder in the embodiment of the present application can be the above-mentioned electronic device.
[0074] Among them, the electronic device in the embodiment of the present application has a point cloud encoding and decoding function, generally including a point cloud encoder (ie, encoder) and a point cloud decoder (ie, decoder).
[0075] The following describes point cloud compression technology using the encoding and decoding framework as an example.
[0076] As you can understand, point cloud compression generally uses a method that compresses point cloud geometry and attribute information separately. On the encoding side, the point cloud geometry is first encoded in the geometry encoder, and the reconstructed geometry is then input as additional information into the attribute encoder to assist in compressing the point cloud attributes. On the decoding side, the point cloud geometry is first decoded in the geometry decoder, and the decoded geometry is then input as additional information into the attribute decoder to assist in compressing the point cloud attributes. The entire codec consists of pre-processing / post-processing, geometry encoding / decoding, and attribute encoding / decoding.
[0077] The present embodiment provides a point cloud encoder. As shown in FIG4 , which is a reference framework for point cloud compression, the point cloud encoder 11 includes a geometry encoder (coordinate translation unit 111 ), a coordinate quantization unit 112 , an octree construction unit 113 , a geometry entropy encoder 114 , and a geometry reconstruction unit 115 . An attribute encoder (attribute recoloring unit 116 , a color space conversion unit 117 , a first attribute prediction unit 118 , a quantization unit 119 , and an attribute entropy encoder 1110 ) is also provided.
[0078] In the geometric coding part of the encoding end, the original geometric information is first preprocessed, and the geometric origin is normalized to the minimum position in the point cloud space through the coordinate translation unit 111. The geometric information is converted from floating point numbers to integers through the coordinate quantization unit 112 to facilitate subsequent regularization processing; then the regularized geometric information is geometrically encoded, and the octree structure is used in the octree construction unit 113 to recursively divide the point cloud space, each time dividing the current node into eight sub-blocks of the same size, and judging the occupancy codeword of each sub-block. When the sub-block does not contain a point, it is recorded as empty, otherwise it is recorded as non-empty. The occupancy codeword information of all blocks is recorded in the last layer of the recursive division, and geometric encoding is performed; the geometric information expressed by the octree structure is input into the geometric entropy encoder 114 to form a geometric code stream on the one hand, and is geometrically reconstructed in the geometric reconstruction unit 115 on the other hand. The reconstructed geometric information is input into the attribute encoder as additional information.
[0079] In the attribute encoding part, the original attribute information is first preprocessed. Since the geometric information changes after geometric encoding, the attribute value is reassigned to each point after geometric encoding through the attribute recoloring unit 116 to achieve attribute recoloring. In addition, if the processed attribute information is color information, the original color information needs to be transformed into a YUV color space that is more in line with the visual characteristics of the human eye through the color space conversion unit 117; then, the preprocessed attribute information is attribute encoded through the first attribute prediction unit 118. Attribute encoding first requires reordering the point cloud. The reordering method is Morton code, so the traversal order of attribute encoding is Morton order. The attribute prediction method is a single-point prediction based on the Morton order, that is, according to the Morton order, the current point to be encoded (current node) is traced back one point, and the node found is the prediction reference point of the current point to be encoded. Then, the attribute reconstruction value of the prediction reference point is used as the attribute prediction value, and the attribute residual value is the difference between the attribute original value and the attribute prediction value of the current point to be encoded; finally, the attribute residual value is quantized by the quantization unit 119, and the quantized residual information is input into the attribute entropy encoder 1110 to form an attribute code stream.
[0080] The present application also provides a point cloud decoder. FIG5 is a schematic diagram of the structure of a point cloud decoder provided in the present application. FIG5 shows a reference framework for point cloud compression. The point cloud decoder 12 includes a geometric decoder: a geometric entropy decoder 121, an octree reconstruction unit 122, a coordinate inverse quantization unit 123, and a coordinate inverse translation unit 124. An attribute decoder: an attribute entropy decoder 125, an inverse quantization unit 126, a second attribute prediction unit 127, and a color space inverse transformation unit 128.
[0081] On the decoding side, the same method of separate geometry and attribute decoding is used. In the geometry decoding part, the geometry bitstream is first entropy decoded by the geometry entropy decoder 121 to obtain the geometric information of each node. Then, the octree structure is constructed by the octree reconstruction unit 122 in the same manner as the geometry encoding. Combined with the decoded geometry, the coordinate-transformed geometric information expressed by the octree structure is reconstructed. On the one hand, this information is dequantized by the coordinate dequantization unit 123 and detranslated by the coordinate detranslation unit 124 to obtain the decoded geometric information. On the other hand, it is input into the attribute decoder as additional information. In the attribute decoding part, the Morton order is constructed in the same way as the encoding end. The attribute code stream is first entropy decoded by the attribute entropy decoder 125 to obtain the quantized residual information; then, it is dequantized by the dequantization unit 126 to obtain the attribute residual value; similarly, in the same way as the attribute encoding, the attribute prediction value of the current point to be decoded is obtained by the second attribute prediction unit 127, and then the attribute prediction value is added to the attribute residual value to restore the attribute reconstruction value of the current point to be decoded (for example, the YUV attribute value); finally, the decoded attribute information is obtained by color space inverse transformation by the color space inverse transformation unit 128.
[0082] It can also be understood that the encoding and decoding framework can be divided into Pred-based, Predtrans-resource-constrained, Predtrans-resource-unlimited, and Trans-based.
[0083] There are 4 general test conditions, which can include:
[0084] Condition 1: The geometric position is limited and the attributes are lost;
[0085] Condition 2: Geometric position lossless, attribute lossy;
[0086] Condition 3: Geometric position lossless, attribute loss limited;
[0087] Condition 4: Geometric position and attributes are lossless.
[0088] There are four technical routes, which are distinguished by the algorithms used for attribute compression.
[0089] Technical Route 1: Pred (prediction) branch, attribute compression uses an intra-frame prediction-based method:
[0090] At the encoding end, the points in the point cloud are processed in a certain order (the original acquisition order of the point cloud, the Morton order, the Hilbert order, etc.). First, the prediction algorithm is used to obtain the attribute prediction value. The attribute residual is obtained based on the attribute value and the attribute prediction value. Then, the attribute residual is quantized to generate the quantized residual. Finally, the quantized residual is encoded.
[0091] At the decoding end, the points in the point cloud are processed in a certain order (the original acquisition order of the point cloud, Morton order, Hilbert order, etc.). First, the prediction algorithm is used to obtain the attribute prediction value, then the decoding is performed to obtain the quantized residual, and then the quantized residual is dequantized. Finally, the attribute reconstruction value is obtained based on the attribute prediction value and the dequantized residual.
[0092] Technical Route 2: Based on Predtrans-Resource Constraints (based on the prediction transform branch - resource constraints), attribute compression uses a method based on intra-frame prediction and k-ary discrete cosine transform (DCT). When encoding the quantized transform coefficients, there is a maximum point number X (such as 4096), that is, at most every X points can be encoded as a group:
[0093] At the encoding end, the points in the point cloud are processed in a certain order (the original acquisition order of the point cloud, Morton order, Hilbert order, etc.). First, the entire point cloud is divided into several small groups with a maximum length of Y (such as 2). These small groups are then combined into several large groups (the number of points in each large group does not exceed X, such as 4096). Then, a prediction algorithm is used to obtain attribute prediction values. Based on the attribute values and attribute prediction values, attribute residuals are obtained. The attribute residuals are transformed by DCT in small groups to generate transform coefficients. The transform coefficients are then quantized to generate quantized transform coefficients. Finally, the quantized transform coefficients are encoded in large groups.
[0094] At the decoding end, the points in the point cloud are processed in a certain order (the original acquisition order of the point cloud, Morton order, Hilbert order, etc.). First, the entire point cloud is divided into several small groups with a maximum length of Y (such as 2). Then these small groups are combined into several large groups (the number of points in each large group does not exceed X, such as 4096). The quantized transform coefficients are decoded in large groups, and then the prediction algorithm is used to obtain the attribute prediction value. The quantized transform coefficients are then dequantized and inversely transformed in small groups. Finally, the attribute reconstruction value is obtained based on the attribute prediction value and the dequantized and inversely transformed coefficients.
[0095] Technical Route 3: Based on Predtrans-Resource Unlimited (based on the prediction transform branch - resource unlimited), attribute compression uses a method based on intra-frame prediction and DCT transform. When encoding the quantized transform coefficients, there is no limit on the maximum number of points X, that is, all coefficients are encoded together:
[0096] At the encoding end, the points in the point cloud are processed in a certain order (the original acquisition order of the point cloud, Morton order, Hilbert order, etc.). First, the entire point cloud is divided into several small groups with a maximum length of Y (such as 2). Then, a prediction algorithm is used to obtain attribute prediction values. Based on the attribute values and attribute prediction values, attribute residuals are obtained. The attribute residuals are transformed by DCT in groups to generate transformation coefficients. The transformation coefficients are then quantized to generate quantized transformation coefficients. Finally, the quantized transformation coefficients of the entire point cloud are encoded.
[0097] At the decoding end, the points in the point cloud are processed in a certain order (the original acquisition order of the point cloud, Morton order, Hilbert order, etc.). First, the entire point cloud is divided into several small groups with a maximum length of Y (such as 2). The quantized transformation coefficients of the entire point cloud are obtained by decoding, and then the prediction algorithm is used to obtain the attribute prediction value. The quantized transformation coefficients are then dequantized and inversely transformed in groups. Finally, the attribute reconstruction value is obtained based on the attribute prediction value and the dequantized and inversely transformed coefficients.
[0098] Technical Route 4: Based on the Trans branch (multi-layer transform branch), attribute compression adopts a method based on multi-layer wavelet transform:
[0099] At the encoding end, the entire point cloud is subjected to multi-layer wavelet transform to generate transform coefficients, which are then quantized to generate quantized transform coefficients. Finally, the quantized transform coefficients of the entire point cloud are encoded.
[0100] At the decoding end, decoding obtains the quantized transform coefficients of the entire point cloud, and then dequantizes and inversely transforms the quantized transform coefficients to obtain attribute reconstruction values.
[0101] In technical route 1, the coefficients may be quantized residuals, and in the above embodiments 2, 3, and 4, the coefficients may be quantized transform coefficients.
[0102] It can be seen that, for the encoding / decoding end, there is no solution involving adaptively selecting a context mode for encoding and decoding.
[0103] The following describes point cloud compression technology using the attribute encoding and decoding framework as an example.
[0104] In the point cloud encoder framework, the geometric information of the point cloud and the attribute information corresponding to each point are encoded separately. The current reference attribute encoding framework can be divided into Pred branch, PredLift branch, and RAHT branch.
[0105] The following describes point cloud compression technology using the G-PCC encoding and decoding framework as an example.
[0106] Figure 6 shows a schematic diagram of the structure of a point cloud encoder. As shown in Figure 6, during the geometry encoding process, the geometric information is transformed so that the entire point cloud is contained within a bounding box. Quantization is then performed. This quantization step primarily serves a scaling purpose. Due to quantization rounding, the geometric information of some point clouds becomes identical. Parameters are then used to determine whether to remove duplicate points. This process of quantization and removing duplicate points is also known as voxelization. The bounding box is then partitioned into an octree or a prediction tree is constructed. During this process, arithmetic coding is performed on the points in the leaf nodes of the partition to generate a binary geometry bitstream. Alternatively, arithmetic coding is performed on the intersection points (vertices) generated by the partition (surface fitting is performed based on the intersection points) to generate a binary geometry bitstream. During the attribute encoding process, after the geometry encoding is completed and the geometric information is reconstructed, color conversion is performed to convert the color information (i.e., attribute information) from the RGB color space to the YUV color space. The reconstructed geometry information is then used to recolor the point cloud so that the unencoded attribute information corresponds to the reconstructed geometry information. Attribute encoding is mainly performed on color information. In the color information encoding process, there are two main transformation methods. One is the distance-based lifting transformation that relies on the level of detail (LOD) division, and the other is the direct region adaptive hierarchical transformation (RAHT). Both methods convert color information from the spatial domain to the frequency domain, obtain high-frequency coefficients and low-frequency coefficients through transformation, and finally quantize the coefficients. Then, the quantized coefficients are arithmetically encoded to generate a binary attribute bit stream.
[0107] Figure 7 shows a schematic diagram of the composition framework of a point cloud decoder. As shown in Figure 7, for the acquired binary bit stream, the geometric bit stream and attribute bit stream in the binary bit stream are first decoded independently. When decoding the geometric bit stream, the geometric information of the point cloud is obtained through arithmetic decoding-reconstruction of the octree / reconstruction of the prediction tree-reconstruction of the geometry-coordinate inverse conversion; when decoding the attribute bit stream, the attribute information of the point cloud is obtained through arithmetic decoding-dequantization-LOD partitioning / RAHT-color inverse conversion, and the point cloud data to be encoded (i.e., the output point cloud) is restored based on the geometric information and attribute information.
[0108] It should be noted that, as shown in Figure 6 or Figure 7, in the point cloud G-PCC encoder framework, the current point cloud geometry encoding and decoding can be divided into octree-based geometry encoding and decoding (marked with a dotted box), prediction tree-based geometry encoding and decoding (marked with a dotted box) and Trisoup-based geometry encoding and decoding.
[0109] Octree geometry encoding (OctGeomEnc) involves first transforming the geometric information so that the entire point cloud is contained within a bounding box defined by two extreme points (0, 0, 0) and (2d, 2d, 2d). Voxelization is then performed, which involves quantization, rounding, and removing duplicate points (determined by parameters). The octree is then partitioned into subcubes (containing points in the point cloud) within the bounding box in a breadth-first traversal order. At the same octree depth, a node is partitioned into eight subnodes until the resulting leaf node is a 1×1×1 unit cube. An 8-bit binary code, representing whether a point in the subcube is occupied (1 for occupied, 0 for unoccupied), is generated. This code is then encoded to generate a binary bitstream.
[0110] Octree-based geometric decoding includes: in the order of breadth-first traversal, continuously parsing to obtain the placeholder code of each node, and continuously dividing the nodes in sequence until a 1×1×1 unit cube is obtained, stopping the division, parsing to obtain the number of points contained in each leaf node, and finally recovering the geometric reconstructed point cloud information.
[0111] For Trisoup-based geometric encoding and decoding, Trisoup-based geometric coding involves first dividing the point cloud into an octree. Unlike geometric information encoding based on an octree structure, this method does not require step-by-step division of the point cloud into bottom-level leaf nodes with side lengths of 1×1×1, but instead divides the leaf nodes into leaf nodes with specified side lengths. The surface information composed of the voxels within the node is then represented by a series of triangle meshes. In GPCC, the parameter trisoup node size represents the size of the block where the triangle patch is located. When the trisoup node size is greater than 0, the voxel set within the node is represented by a geometric patch. The up to twelve intersection points of the geometric patch with the twelve edges of the block are called vertices. The vertex coordinates of each block are encoded in sequence to generate a binary code stream.
[0112] Trisoup-based geometric decoding includes: in order to decode the geometric coordinates of the point cloud from the node triangle, it is necessary to check whether each voxel in the node cube intersects with the triangle. This technology is called triangle rasterization, and six unit vectors (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1), (0, 0, 1) are used for intersection check to check whether each unit vector intersects with the triangle. If so, the intersection point is calculated and the decoded cube is output. The number of generated points in the decoder is determined by the grid distance.
[0113] For geometric encoding and decoding based on prediction trees, geometric coding based on prediction trees includes: first, sorting the input point cloud. The currently used sorting methods include unordered, Morton order, azimuth order, and radial distance order. At the encoding end, the prediction tree structure is established by using two different methods, including: high-latency slow mode (KD-Tree) and using lidar calibration information to divide each point into different lasers and establish a prediction structure according to different lasers (low-latency fast mode). Next, based on the structure of the prediction tree, each node in the prediction tree is traversed, and the geometric position information of the node is predicted by selecting different prediction modes to obtain the prediction residual, and the geometric prediction residual is quantized using the quantization parameter. Finally, through continuous iteration, the prediction residual of the prediction tree node position information, the prediction tree structure, and the quantization parameters are encoded to generate a binary code stream.
[0114] The geometric decoding based on the prediction tree includes: the decoding end continuously parses the code stream to reconstruct the prediction tree structure, and then obtains the geometric position prediction residual information and quantization parameters of each prediction node through parsing, and dequantizes the prediction residual to recover the reconstructed geometric position information of each node, and finally completes the geometric reconstruction at the decoding end.
[0115] Currently, entropy coding is widely used in G-PCC. It is an encoding or decoding method that adaptively selects a probability model based on the local context. When the local context of the encoding changes, the state of the encoder / decoder engine also changes. The encoding process is carried out according to the different contexts, making the probability model more effective during encoding.
[0116] For parallel encoding and decoding, from one slice to another, at the end of each slice, a process reinitializes the state of the engine to the default value to achieve parallelism. For multi-core processing, it will not be possible to continue the context table, and this value needs to be initialized to the default value. Ideally, each slice unit should be independent of each other. If the slice is implemented for data segmentation of low-latency applications rather than for the parallelism of multi-core processing, the initialization of the entropy context table will lead to a decrease in encoding performance. This is because the probability model needs to start from the default value rather than continuing from a well-predicted probability model. Therefore, the entropy context continuation flag can help. It can save the context table probability table at the end of the slice and set it to continue using the same context probability table at the beginning of the next slice. This method can improve the encoding performance of the slice. The decoder will need to have a similar implementation to save the context table probability value at the end of the slice and set it as the initial context table probability value for the new slice.
[0117] Figure 8 shows a syntax diagram of an entropy continuity flag. As shown in Figure 8, the G-PCC software specification introduces a method for initializing or inheriting contexts based on the slice-partition-framework, and writes / reads the entropy continuity flag (entropy_continuation_flag) parameter during encoding and decoding. The context_continuation_flag can be controlled separately for each slice; separate parameters are used to save and set the context tables for geometry and attributes respectively. The purpose of separating the entropy continuity flags for geometry and attributes is to allow users to control and generate G-PCC bitstreams with higher compression ratios. The entropy_continuation_flag for geometry will be placed in the geometry data unit header (GSH), while the entropy_continuation_flag for attributes will be placed in the attribute data unit header (ASH).
[0118] Figure 9 shows a schematic diagram of the entropy context setting process. As shown in Figure 9, at the beginning of slice encoding, if entropy_continuation_flag is set to 0 and the slice number is greater than 0 (not the first slice), the context table probability value will be set to the previously saved value. At the end of slice encoding, that is, before exiting slice encoding, the context table probability value is saved; at the beginning of slice decoding, if the conditions are met, the context table probability value is loaded. At the end of slice decoding, the entropy context table probability value is saved.
[0119] The semantics of inter-slice entropy continuity in the Syntax table of the geometry data unit header in the MPEG G-PCC standard are shown in the following table:
[0120] Table 1
[0121] Among them, for the definitions of each descriptor, ae(v): adaptive arithmetic entropy coding syntax element; se(v): signed integer order 0 Golomb exponential code coding syntax element; u(n): n-bit unsigned integer, if written as u(v), the change in the number of bits represents depends on the values of other syntax elements; ue(v): unsigned integer order 0 Golomb exponential code coding syntax element.
[0122] In G-PCC intra-frame coding, a slice entropy continuous method is used. In inter-frame coding, each frame is associated with global / local motion and inter-frame occupancy prediction. Figure 10 shows a schematic diagram of a process for determining an entropy model. As shown in Figure 10, after initializing the current frame, it is determined whether the current frame number exceeds the random access period or is defined as an independent P frame. If so, the entropy model is initialized. If not, the current frame is encoded / decoded, and then the entropy model probability is saved. Finally, it is determined whether it is the last frame. If so, the process ends. If not, the process returns to the process of determining whether the current frame number exceeds the random access period or is defined as an independent P frame.
[0123] Figure 11 shows a flowchart of using dependent entropy frames in TMC13. As shown in Figure 11, for the solution of turning on / off entropy continuity between slices and frames, after initializing the current frame, it can be determined first whether the current frame turns on entropy continuity between slices, and secondly whether the inter-frame entropy continuity is turned on. According to the turning-on status of entropy continuity, it is determined whether the current slice / frame reinitializes the entropy model or inherits the entropy model of the previously stored slice / frame.
[0124] Among them, if the inter-slice entropy continuity is not turned on (firstSliceInFrame:=1, the first slice of the current frame), the flag entropyContinuationEnabled is 0. At this time, it is necessary to determine whether the current frame is an independent codec frame (I frame) with a random access period (randomAccessPeriod). If the current frame is an independent codec frame (I frame) or a P frame with inter-frame continuity not turned on (GoFGeometryEntropyContinuationEnabled:=0), the context entropy model of the saved geometry (_ctxtMemGeom) and attributes (_ctxtMemAttrs) is initialized, and then the current frame is encoded / decoded, and the context entropy model of the currently encoded slice / frame is saved. If the current frame is a P frame with inter-frame continuity (GoFGeometryEntropyContinuationEnabled:=1), the geometric context entropy model (_ctxtMemGeom) saved by the previous frame (_refFrame) is used when encoding the first slice of the current frame (firstSliceInFrame:=1) and the attribute entropy model (_ctxtMemAttrs) is still initialized. Then, the current slice / frame is encoded / decoded and the geometric context entropy model (_ctxtMemGeom) of the currently encoded slice / frame is saved.
[0125] If inter-slice entropy continuity is turned on (firstSliceInFrame:=0, not the first slice of the current frame), there is no need to consider inter-frame entropy continuity. The geometric context entropy model (_ctxtMemGeom) saved by the previous slice is directly used to encode / decode the current slice / frame, and then the geometric context entropy model (_ctxtMemGeom) of the currently encoded slice / frame is saved.
[0126] Simply put, in the above-mentioned related technologies, the high-level syntax of inter-slice / inter-frame entropy continuity is not complete enough, and the inheritance relationship of the entropy continuity enabling flag at the sequence parameter level and the geometry / attribute parameter level is unclear. For example, the gps.interPredictionEnabledFlag of the GPS layer is not controlled by the sps.inter_frame_prediction_enabled_flag of the SPS layer, which increases the complexity of the decoding operation. At the same time, in the above-mentioned related technologies, when inter-frame entropy continuity is turned on, only the entropy model saved by the last slice of the prediction frame is used for the first slice of the current frame. When encoding / decoding other slices of the current frame, only the entropy model of the previous slice of the current encoding / decoding slice can be used, and the entropy model in the reference frame cannot be flexibly used.
[0127] In order to solve the above problems, an embodiment of the present application provides a point cloud encoding and decoding method, at the encoding end, determining the first identification information corresponding to the current processing unit, and writing the first identification information into the code stream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determining the second identification information corresponding to the current processing unit, and writing the second identification information into the code stream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, determining the probability model corresponding to the current processing unit, and obtaining the predicted value of the current processing unit according to the probability model. At the decoding end, decoding the code stream, determining the first identification information corresponding to the current processing unit; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determining the second identification information corresponding to the current processing unit; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; determining the probability model based on the second identification information, and obtaining the predicted value of the current processing unit according to the probability model. In this way, in the process of encoding and decoding the current processing unit, the second identification information corresponding to the current processing unit can be controlled by determining the first identification information corresponding to the current processing unit, which can clarify the inheritance relationship of the entropy continuity enabling flag, thereby simplifying the encoding and decoding operations and improving the encoding and decoding performance of the point cloud.
[0128] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0129] An embodiment of the present application proposes a point cloud decoding method. FIG12 is a schematic diagram of an implementation flow of the point cloud decoding method proposed in an embodiment of the present application. As shown in FIG12 , the following steps may be included when decoding a point cloud:
[0130] Step 101: Decode the code stream and determine first identification information corresponding to the current processing unit; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set.
[0131] In an embodiment of the present application, the code stream may be decoded first to determine the first identification information corresponding to the current processing unit; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set.
[0132] It should be noted that the decoding method of the embodiment of the present application specifically refers to a point cloud decoding method, which can be applied to a point cloud decoder (also referred to as a "decoder").
[0133] It should be noted that in the embodiments of the present application, the point cloud to be processed may include at least one unit to be processed. When decoding any one of the units to be processed, it may be used as the current processing unit in the point cloud to be processed. Here, the current processing unit is the unit to be decoded that currently needs to be decoded in the at least one unit.
[0134] Furthermore, in an embodiment of the present application, for each unit to be processed in the point cloud to be processed, it corresponds to a geometric information and an attribute information; wherein the geometric information represents the spatial relationship of the unit, and the attribute information represents the relevant information of the attributes of the unit.
[0135] Here, the attribute information may be color information, or reflectivity, or other attributes, which are not specifically limited in the embodiments of the present application. Specifically, when the attribute information is color information, it may be color information in any color space. For example, the attribute information may be color information in an RGB space, a YUV space, a YCbCr space, or the like, which are not specifically limited in the embodiments of the present application.
[0136] Illustratively, in the embodiment of the present application, the current processing unit may be a slice currently to be encoded or decoded.
[0137] Furthermore, in an embodiment of the present application, the tiles and slices in the G-PCC can be divided. FIG13 is a schematic diagram of a tile and slice division proposed in an embodiment of the present application. As shown in FIG13 , for slice division, after inputting the point cloud, the original point cloud can be first quantized according to the corresponding conditions; then the quantized cloud is divided into tiles, where a tile is a plurality of cubic areas with a side length of TileSize, and the tile bounding box information is in the tileinventory syntax; each tile will be divided into slices only when the number of points in a tile is greater than the maximum number of points in a slice (MaxPointNum). After slice division, the origin of each slice is calculated according to the divided slice, and the slice origin is set as the bounding box origin of the slice.
[0138] Here, slice partitioning can be mainly divided into two steps: first, a preliminary partitioning is performed using the slice partitioning scheme. Then, the slice is refined, and based on the two parameters MaxPointNum and MinPointNum, the slice is further merged and split, with the aim of obtaining a slice with an appropriate number of points. As shown in Figure 12, when performing tile and slice partitioning, it can be determined whether tile partitioning is to be performed first. If so, tile partitioning is performed, and then it is determined whether the number of points NumPoint is greater than or equal to sliceMaxPoints, where sliceMaxPoints is the upper limit of the number of points in each slice, and the point cloud is partitioned until this constraint is satisfied. In the tile loop process, a slice loop process is also included, which mainly determines whether slice partitioning is to be performed. After determining that slice partitioning is necessary, the slice refinement operation is performed, and finally a compressed partition (Compress Partition) is obtained. In addition, in the slice partitioning operation, there is also a sliceMinPoints parameter, which is the minimum number of points for each slice. This threshold is used to merge small slices.
[0139] Furthermore, in an embodiment of the present application, for the slice partitioning method, uniform geometric partitioning can be performed along the longest edge or using an octree. If the number of points is greater than MaxPointNum, slice partitioning is performed; otherwise, the entire point cloud is directly compressed without partitioning. The TMC13 software supports two slice partitioning schemes in the encoder: one is uniform geometric partitioning along the longest edge or using an octree, and the other is uniform square partitioning.
[0140] Figure 14 is a schematic diagram of the Slice partitioning method proposed in an embodiment of the present application. As shown in Figure 14, it is a uniform-Geometry partition along the longest edge method. First, assume that the longest edge and the shortest edge are maxEdge and minEdge respectively, the number of slices is sliceNum, and the slice size is sliceSize. The default value of sliceNum is maxEdge / minEdge, and the default value of sliceSize is minEdge; then the slice size can be adjusted to sliceSize. The uniform-Geometry partitioning scheme is used to divide the point cloud into slices of the number sliceNum, such as slice0, slice1, slice2, and slice3 shown in Figure 13, and the ratio of points less than maxPointNum in all slices is calculated. Set a ratio threshold. If the ratio is greater than the ratio threshold, proceed to the next step, otherwise return to the previous step and double sliceNum.
[0141] Furthermore, when using trisoup, we first check whether the original slice partition interval is an integer multiple of the block size W = 2trisoup_node_size_tog2. If not, the slice interval will be rounded to the nearest integer that is exactly divisible by the block size.
[0142] FIG15 is a second schematic diagram of the Slice partitioning method proposed in an embodiment of the present application. FIG15 shows a method of using the uniform-geometry partition using Octree. First, the default octree partitioning depth depOctree=1 is set; then the octree partitioning scheme is used to divide the input point cloud into 8 depOctree slices, calculate the ratio of points less than maxPointNum in all slices, set the ratio threshold, if the ratio is greater than the ratio threshold, continue to the next step, otherwise return to the previous step and set depOctree + = 1.
[0143] Furthermore, in an embodiment of the present application, after the slice is divided, the slice point cloud with a point number greater than MaxPointNum is segmented, and the slice point cloud with too few points is merged.
[0144] Here, "Split" means that if the point count (Asize) is greater than MaxPointNum, the slice is split into n partitions, where n = ceil(Asize / MaxPointNum). "Merge" means that if the number of points in the current slice is less than MinPointNum, it is merged with the previous slice or the next slice. The principle for choosing the merge direction is as follows: if the current slice is at the beginning, the merge direction is to merge to the next slice; if the current slice is at the end, the merge direction is to merge to the previous slice; if the current slice is neither the first slice nor the last slice, after merging with the previous slice and the next slice respectively, assuming the number of points in the slices are SumFront and SumNext; if SumFront > MaxPointNum and SumNext > MaxPointNum, or, SumFront < MaxPointNum and SumNext < MaxPointNum, then choose the direction with more points after merging; if one of SumFront and SumNext is greater than MaxPointNum and the other is less than MaxPointNum, then choose the merge direction with fewer points; after merging, traverse all the slices generated after merging, assuming the number of points in the merged slice is SumMerged, compare SumMerged with MaxPointNum: if SumMerged < MinPointNum, save the currently merged slice, if SumMerged > MaxPointNum, split the merged slice at intervals of MaxPointNum, if MinPointNum < SumMerged < MaxPointNum, save the current slice and check the next slice.
[0145] For the uniform square partitioning method, in order to divide the slice of the local area, the method first divides the slice into uniform squares. maxAxis and midAxis are divided by the length of minAxis. Figure 16 is a schematic diagram of the slice partitioning method proposed in the embodiment of the present application. As shown in Figure 16, it is a process of uniform square partitioning of the grid. The specific method is: first generate neighborhood information. Each unrefined slice has a neighborhood information (adjacent information) in the grid area. The four directions of the current slice (bottom, left, top, right) will be the neighborhood information. Then merge (Merge), and use the slice with the least number of points among the four slices to merge; then split (Split), and split according to the direction of the next ordered slice. After the merge and split process, the position of the refined slice is adapted to the area. Figure 17 shows a schematic diagram of slice decoding, and Figure 17 is a decoding example based on the process of uniform square partitioning of the grid.
[0146] The three slice partitioning schemes described above use different refinement processes. The merging and splitting processes of uniform geometry and octree uniform partitioning use slices located in the forward or backward direction, while the merging and splitting processes of uniform square partitioning use slices located in four directions (upper, lower, right, and left). To integrate the two different refinement methods, a merging and splitting process using adjacent slice information in six directions (upper, lower, right, left, front, and back) is introduced. For uniform geometry partitioning, each slice only has left and right slice information corresponding to the two-dimensional domain; for uniform square partitioning, each slice has upper, lower, right, and left slice information; and for octree uniform partitioning, each slice has six-directional slice information. To integrate all methods, the implementation using four-directional slice information can be modified to use six-directional slice information.
[0147] Furthermore, in an embodiment of the present application, the first identification information is identification information corresponding to a point cloud sequence parameter set (Sequence Parameter Set, SPS).
[0148] Furthermore, in an embodiment of the present application, the following table shows the syntax elements and corresponding descriptors of the point cloud sequence parameter set layer defined in the present application, wherein the descriptor is the entropy decoding algorithm of the syntax element.
[0149] Table 2
[0150] In the above descriptor, u(n) indicates that n consecutive bits are read in, and their decoded values are unsigned integers.
[0151] It should be noted that, in an embodiment of the present application, three decoding processes can be supported. The first case is to allow the probability model of the reference frame and any slice of the current frame to be stored for inheritance by the current decoding slice. The sps.profile.slice_reordering_constraint_flag is obtained by the parameter configuration or the encoding end decision algorithm and written into the bitstream; the second case is not to allow the probability model of any slice to be stored, and only the probability model of the previous slice can be inherited, and the slice bitstream is not allowed to be reordered, that is, the order of the slices remains consistent during the decoding process; the third case is to allow the probability model of the reference frame and any slice of the current frame to be stored for inheritance by each slice, and slice reordering is allowed, that is, sps.profile.slice_reordering_constraint_flag is false, and the order of the slices during the encoding and decoding process is not necessarily completely consistent; among them, in the third case, only inter-frame entropy continuity is allowed, while intra-frame entropy continuity is not allowed.
[0152] It should be noted that, in the embodiments of the present application, "inheritance" means that when determining the probability model corresponding to the current processing unit, the probability model corresponding to the reference unit is used; more specifically, "inheritance" can be the use of the probability value in the probability model corresponding to the reference unit as the initial probability value of the probability model corresponding to the current processing unit.
[0153] The decoding process is described below using the first case as an example.
[0154] Furthermore, in an embodiment of the present application, the first identification information is identification information corresponding to the SPS layer, which may include a first entropy continuous enable flag, a first inter-frame prediction enable flag, a first intra-frame entropy continuous enable flag, and a first inter-frame entropy continuous enable flag.
[0155] Furthermore, in an embodiment of the present application, the first inter-frame prediction enable flag is used to determine whether dependencies between different frames are allowed in the point cloud sequence parameter set; the first entropy continuity enable flag is used to determine whether a reference entropy coding probability model is allowed to be used in the point cloud sequence parameter set; the first intra-frame entropy continuity enable flag is used to determine whether a reference entropy coding probability model within a frame is allowed to be used in the point cloud sequence parameter set; the first inter-frame entropy continuity enable flag is used to determine whether reference entropy coding probability models of different frames are allowed to be used in the point cloud sequence parameter set.
[0156] Further, in an embodiment of the present application, the first entropy continuity enabling flag is the SPS layer entropy continuity enabling flag sps.entropy_continuation_enabled_flag; the first inter-frame prediction enabling flag is the SPS layer inter-frame prediction enabling flag sps.inter_frame_prediction_enabled_flag; the first intra-frame entropy continuity enabling flag is the SPS layer sps.intra_entropy_continuation_enabled_flag; the first inter-frame entropy continuity enabling flag is the SPS layer inter-frame entropy continuity enabling flag sps.inter_entropy_continuation_enabled_flag.
[0157] Furthermore, in an embodiment of the present application, for the decoding process of the first case, the identification information of the SPS layer can be read and decoded first, and then the identification information of the (Geometry Parameter Set, GPS) layer can be decoded, and then the identification information of the geometry block header information (Geometry Brick Header, GBH) layer can be decoded to determine the entropy decoding probability model corresponding to the current processing unit; wherein, the identification information of the GPS layer can be controlled by the identification information of the SPS layer, and the identification information of the GBH layer can be controlled by the identification information of the GPS layer, so that the inheritance relationship of the entropy continuity enabling flag can be clarified, making the slice and inter-frame entropy continuity logic more accurate, thereby simplifying the decoding operation.
[0158] The geometry block header information is the geometry header information of the slice.
[0159] Furthermore, in an embodiment of the present application, when determining the first identification information corresponding to the current processing unit, the code stream can be decoded to determine the first entropy continuous enable flag and the first inter-frame prediction enable flag; if the value of the first entropy continuous enable flag is the first value, the code stream is decoded to determine the first intra-frame entropy continuous enable flag; if the value of the first entropy continuous enable flag is the first value and the value of the first inter-frame prediction enable flag is the second value, the code stream is decoded to determine the first inter-frame entropy continuous enable flag.
[0160] Furthermore, in an embodiment of the present application, the value of the first entropy continuous enable flag may be a first value and a third value; for example, the first value may be true, and the third value may be false.
[0161] Exemplarily, in an embodiment of the present application, when decoding the identification information of the SPS layer, sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) and sps.entropy_continuation_enabled_flag (first entropy continuity enable flag) can be decoded first. If sps.entropy_continuation_enabled_flag is true (first value), sps.intra_entropy_continuation_enabled_flag (first intra-frame entropy continuity enable flag) is decoded; if sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) is true and sps.entropy_continuation_enabled_flag (first entropy continuity enable flag) is true, sps.inter_entropy_continuation_enabled_flag (first inter-frame entropy continuity enable flag) is decoded.
[0162] Furthermore, in an embodiment of the present application, the first identification information also includes a first reordering identifier, and the code stream can be decoded to determine the first reordering identifier.
[0163] It should be noted that, in the embodiment of the present application, the first reordering flag is sps.profile.slice_reordering_constraint_flag.
[0164] Exemplarily, in an embodiment of the present application, the process of decoding the identification information of the SPS layer can be expressed as follows:
[0165] Furthermore, in an embodiment of the present application, after the first reordering flag is determined, verification processing may be performed based on the first reordering flag and the first entropy continuous enabling flag.
[0166] Furthermore, in some embodiments of the present application, after parsing the first reordering flag sps.profile.slice_reordering_constraint_flag, it is necessary to further verify whether there is a conflict between the syntax elements. For example, when sps.profile.slice_reordering_constraint_flag is true, it means that the ordering of each slice in the sequence is restricted, and normal intra-frame inter-slice entropy continuity and inter-frame slice entropy continuity can be performed; but if sps.profile.slice_reordering_constraint_flag is false, it means that the ordering of each slice in the sequence is unrestricted. When the compressed bitstream file undergoes a transmission process, the order of each slice in the bitstream file that needs to be decoded by the decoder may be disrupted. At this time, the first entropy continuity enable flag sps.entropy_continuation_enabled_flag should not be allowed to be true; therefore, after parsing the SPS layer parameters, verification processing should be performed on the first reordering flag and the first entropy continuity enable flag.
[0167] For example, in an embodiment of the present application, the process of performing verification processing according to the first reordering flag and the first entropy continuous enabling flag can be expressed as follows:
[0168] if(sps.entropy_continuation_enabled_flag)
[0169] assert(sps.profile.slice_reordering_constraint_flag)
[0170] Furthermore, in an embodiment of the present application, in the above verification process, if assert() fails to pass, the decoding is terminated, otherwise the remaining decoding steps are continued.
[0171] Furthermore, in an embodiment of the present application, if the value of the first entropy continuous enabling flag is the third value (false), the process of determining the first intra-frame entropy continuous enabling flag is not performed.
[0172] Furthermore, in an embodiment of the present application, if the value of the first entropy continuous enable flag is the third value, or the value of the first inter-frame prediction enable flag is the fourth value (false), the determination process of the first inter-frame entropy continuous enable flag is not executed.
[0173] Step 102: Determine the second identification information corresponding to the current processing unit based on the first identification information; wherein the second identification information is the identification information corresponding to the geometric coding parameter set.
[0174] In an embodiment of the present application, after determining the first identification information corresponding to the current processing unit in the decoded code stream, the second identification information corresponding to the current processing unit can be determined based on the first identification information; wherein the second identification information is the identification information corresponding to the geometric coding parameter set.
[0175] Furthermore, in an embodiment of the present application, the second identification information is the identification information of the geometric coding parameter set (GPS) layer, and the second identification information may include a second inter-frame prediction enable flag, a second entropy continuous enable flag, and a second inter-frame entropy continuous enable flag.
[0176] Further, in an embodiment of the present application, the second inter-frame prediction enable flag is the GPS layer inter-frame prediction enable flag gps.inter_frame_prediction_enabled_flag; the second entropy continuation enable flag is the GPS layer entropy continuation enable flag gps.entropy_continuation_enabled_flag; the second inter-frame entropy continuation enable flag is the GPS layer inter-frame entropy continuation enable flag gps.inter_entropy_continuation_enabled_flag.
[0177] Furthermore, in an embodiment of the present application, the second inter-frame prediction enable flag is used to determine whether dependencies between different frames are allowed in the geometric coding parameter set; the second entropy continuity enable flag is used to determine whether a reference entropy coding probability model is allowed to be used in the geometric coding parameter set; the second inter-frame entropy continuity enable flag is used to determine whether the reference entropy coding probability model of different frames is allowed to be used in the geometric coding parameter set; and the second intra-frame entropy continuity enable flag is used to determine whether the reference entropy coding probability model within a frame is allowed to be used in the geometric coding parameter set.
[0178] Furthermore, in an embodiment of the present application, the following table shows the syntax elements (second identification information) of the GPS layer defined in the present application and the corresponding descriptors.
[0179] Table 3
[0180] In the above descriptor, u(n) indicates reading in consecutive n bits.
[0181] Furthermore, in some embodiments of the present application, when determining the second identification information corresponding to the current processing unit based on the first identification information, the second inter-frame prediction enable flag can be determined based on the first inter-frame prediction enable flag; and the second entropy continuity enable flag can be determined based on the first entropy continuity enable flag.
[0182] Furthermore, in some embodiments of the present application, when determining the second inter-frame prediction enable flag according to the first inter-frame prediction enable flag, if the value of the first inter-frame prediction enable flag is the second value, the code stream is decoded to determine the second inter-frame prediction enable flag.
[0183] Furthermore, in some embodiments of the present application, the value of the first inter-frame prediction enable flag may be a second value and a fourth value; for example, the second value may be true, and the fourth value may be false.
[0184] Exemplarily, in an embodiment of the present application, if sps.inter_frame_prediction_enabled_flag (the first inter-frame prediction enable flag) is true (the second value), gps.inter_frame_prediction_enabled_flag (the second inter-frame prediction enable flag) is decoded.
[0185] Furthermore, in some embodiments of the present application, if the value of the first inter-frame prediction enabling flag is the fourth value, the process of determining the second inter-frame prediction enabling flag is not performed.
[0186] Furthermore, in some embodiments of the present application, when determining the second entropy continuity enable flag according to the first entropy continuity enable flag, if the value of the first entropy continuity enable flag is the first value, the code stream is decoded to determine the second entropy continuity enable flag.
[0187] Exemplarily, in an embodiment of the present application, if sps.entropy_continuation_enabled_flag (first entropy continuation enabling flag) is true, gps.entropy_continuation_enabled_flag (second entropy continuation enabling flag) is decoded.
[0188] Furthermore, in some embodiments of the present application, if the value of the first entropy continuous enabling flag is the third value, the process of determining the second entropy continuous enabling flag is not performed.
[0189] Furthermore, in some embodiments of the present application, if the value of the first inter-frame prediction enable flag is the fourth value, or the value of the first entropy continuity enable flag is the third value, the determination process of the second inter-frame entropy continuity enable flag is not performed.
[0190] Furthermore, in some embodiments of the present application, the second identification information also includes a second intra-frame entropy continuous enabling flag. If the value of the second intra-frame entropy continuous enabling flag is the fifth value, the code stream is decoded to determine the second intra-frame entropy continuous enabling flag.
[0191] Furthermore, in some embodiments of the present application, the value of the second entropy continuous enable flag may be a fifth value and a sixth value; for example, the fifth value may be true, and the sixth value may be false.
[0192] Exemplarily, in an embodiment of the present application, if gps.entropy_continuation_enabled_flag (the second entropy continuation enabling flag) is true (the fifth value), gps.intra_entropy_continuation_enabled_flag (the second intra-frame entropy continuation enabling flag) is decoded.
[0193] Furthermore, in some embodiments of the present application, if the value of the second entropy continuous enabling flag is the sixth value (false), the second intra-frame entropy continuous enabling flag determination process is not performed.
[0194] Furthermore, in some embodiments of the present application, the second identification information also includes a second inter-frame entropy continuous enable flag. If the value of the second entropy continuous enable flag is the fifth value and the value of the second inter-frame prediction enable flag is the seventh value, the code stream is decoded to determine the second inter-frame entropy continuous enable flag.
[0195] Furthermore, in some embodiments of the present application, the value of the second inter-frame prediction enable flag may be a seventh value and an eighth value; for example, the seventh value may be true, and the eighth value may be false.
[0196] Exemplarily, in an embodiment of the present application, if gps.entropy_continuation_enabled_flag (second entropy continuity enable flag) is true (fifth value) and gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag) is true (seventh value), then gps.inter_entropy_continuation_enabled_flag (second inter-frame entropy continuity enable flag) is decoded.
[0197] Exemplarily, in an embodiment of the present application, the process of decoding the GPS layer identification information can be expressed as follows:
[0198] Furthermore, in some embodiments of the present application, if the value of the second entropy continuity enable flag is the sixth value, or the value of the second inter-frame prediction enable flag is the eighth value, the determination process of the second inter-frame entropy continuity enable flag is not performed.
[0199] Step 103: Determine a probability model based on the second identification information, and obtain a predicted value of the current processing unit according to the probability model.
[0200] In an embodiment of the present application, after determining the second identification information corresponding to the current processing unit according to the first identification information, a probability model can be determined based on the second identification information, and a predicted value of the current processing unit can be obtained according to the probability model.
[0201] It should be noted that, in the embodiments of the present application, the probability model may be an entropy coding probability model, which is also a context model.
[0202] Furthermore, in some embodiments of the present application, when determining a probability model based on second identification information, third identification information corresponding to the current processing unit can be determined based on the second identification information; wherein the third identification information is identification information corresponding to the geometric block header information; and then the probability model corresponding to the current processing unit is determined based on the third identification information.
[0203] Furthermore, in an embodiment of the present application, the third identification information is identification information corresponding to the geometry block header information layer, and the third identification information may at least include a third inter-frame prediction enable flag, a third entropy continuity enable flag, and a third inter-frame entropy continuity mode flag.
[0204] Further, in an embodiment of the present application, the third inter-frame prediction enable flag is the GBH layer inter-frame prediction enable flag gbh.inter_frame_prediction_enabled_flag, the third entropy continuation enable flag is the GBH layer entropy continuation enable flag gbh.entropy_continuation_enabled_flag, and the third inter-frame entropy continuity mode flag is the GBH layer inter-frame entropy continuity mode flag gbh.entropy_continuation_mode.
[0205] Furthermore, in an embodiment of the present application, a third inter-frame prediction enable flag is used to determine whether dependencies between different frames are allowed in the geometry block header information; a third entropy continuity enable flag is used to determine whether a reference entropy coding probability model is allowed to be used in the geometry block header information; a third inter-frame prediction enable flag is used to determine whether reference entropy coding probability models of different frames are allowed to be used in the geometry block header information; and a third inter-frame entropy continuity mode flag is used to determine the source of the entropy coding probability model of the current processing unit.
[0206] Furthermore, in an embodiment of the present application, the following table shows the third identification information defined in the present application, that is, the syntax elements of the geometry header information layer of the slice and the corresponding descriptors.
[0207] Table 4
[0208] In the above descriptor, u(n) indicates that n consecutive bits are read in, and their decoded values are unsigned integers, and ue(v) indicates an unsigned exponential Golomb entropy coding syntax element.
[0209] It should be noted that in the embodiments of the present application, in all the above-mentioned identifiers, the default value of the binary identifier parameter using 1-bit encoding is 0 (false), the default value of the mode selection parameter gbh.entropy_continuation_mode using 2-bit encoding is 0, and the default value of gbh.entropy_continuation_slice_id is -1.
[0210] For example, in an embodiment of the present application, FIG18 shows a schematic diagram of a code stream structure. As shown in FIG18 , this is the code stream structure of SPS, GPS, and GBH. It can be seen that the GPS layer can inherit the SPS layer, and the GPS layer is followed by the attribute parameter set (APS) layer. Each slice can include geometry (Geom) information and attribute (Attr) information. The geometry information can include two parts: Geom_Header and Geom_Data.
[0211] Furthermore, in some embodiments of the present application, when determining the third identification information corresponding to the current processing unit according to the second identification information, if the value of the second inter-frame prediction enable flag is the seventh value, the code stream is decoded to determine the third inter-frame prediction enable flag.
[0212] Exemplarily, in an embodiment of the present application, if gps.inter_frame_prediction_enabled_flag (the second inter-frame prediction enable flag) is true (the seventh value), gbh.inter_frame_prediction_enabled_flag (the third inter-frame prediction enable flag) is decoded.
[0213] Furthermore, in some embodiments of the present application, if the value of the second inter-frame prediction enable flag is the eighth value (false), the process of determining the third inter-frame prediction enable flag is not performed.
[0214] Furthermore, in some embodiments of the present application, if the value of the second inter-frame entropy continuity enabling flag is a ninth value (false), the process of determining the third inter-frame prediction enabling flag is not performed.
[0215] Furthermore, in some embodiments of the present application, the value of the second inter-frame entropy continuous enabling flag may be a ninth value and a fifteenth value; for example, the ninth value may be false, and the fifteenth value may be true.
[0216] Further, in some embodiments of the present application, when determining the third identification information corresponding to the current processing unit based on the second identification information, if the value of the second entropy continuous enable flag is the fifth value, the code stream is decoded to determine the third entropy continuous enable flag and the third inter-frame entropy continuous mode flag.
[0217] Exemplarily, in an embodiment of the present application, if gps.entropy_continuation_enabled_flag (second entropy continuation enable flag) is true (fifth value), gbh.entropy_continuation_enabled_flag (third entropy continuation enable flag) and gbh.entropy_continuation_mode (third inter-frame entropy continuation mode flag) are decoded.
[0218] Furthermore, in some embodiments of the present application, if the value of the second entropy continuity enabling flag is the sixth value, the process of determining the third entropy continuity enabling flag and the third inter-frame entropy continuity mode flag is not performed.
[0219] Furthermore, in an embodiment of the present application, when determining the probability model corresponding to the current processing unit according to the third identification information, the probability model corresponding to the current processing unit can be determined according to the third inter-frame entropy continuous mode identifier.
[0220] Furthermore, in some embodiments of the present application, if the value of the third entropy continuous enable flag is the tenth value (true), the code stream is decoded, the index value of the current processing unit is determined, and the probability model corresponding to the current processing unit is determined based on the index value of the current processing unit.
[0221] Furthermore, in some embodiments of the present application, the value of the third entropy continuous enable flag may be a tenth value and an eleventh value; for example, the tenth value is true, and the eleventh value is false.
[0222] Furthermore, in some embodiments of the present application, if the value of the third entropy continuity enable flag is the eleventh value (false), the process of determining the third inter-frame entropy continuity mode flag is not performed.
[0223] Furthermore, in some embodiments of the present application, when determining the probability model corresponding to the current processing unit based on the index value of the current processing unit, the third inter-frame entropy continuity mode identifier can be determined based on the index value of the current processing unit; and the probability model corresponding to the current processing unit can be determined based on the third inter-frame entropy continuity mode identifier.
[0224] Further, in some embodiments of the present application, when determining the probability model corresponding to the current processing unit based on the third inter-frame entropy continuity mode identifier, if the value of the third inter-frame entropy continuity mode identifier is the fourteenth value, the probability model corresponding to the current processing unit is initialized; if the value of the third inter-frame entropy continuity mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined based on the probability model corresponding to the first reference unit; wherein the first reference unit and the current processing unit belong to the same frame; if the value of the third inter-frame entropy continuity mode identifier is the eighteenth value, the probability model corresponding to the current processing unit is determined based on the probability model corresponding to the second reference unit; wherein the second reference unit is located in the previous frame of the frame where the current processing unit is located.
[0225] Exemplarily, in an embodiment of the present application, if gps.entropy_continuation_enabled_flag (second entropy continuous enable flag) is true, then gbh.entropy_continuation_enabled_flag (third entropy continuous enable flag) and gbh.entropy_continuation_mode (third inter-frame entropy continuous mode flag) are decoded; thus, when gbh.entropy_continuation_mode is 0 (the fourteenth value), it indicates that the current slice does not inherit the entropy model from other slices, and initializes the probability model required for the entropy coding process; and when gbh.entropy_continuation_mode is 1 (the seventeenth value), it indicates that the current slice needs to inherit the entropy model from a slice of the same frame. Entropy model, at this time, it is necessary to decode the index value gbh.entropy_continuation_slice_id of the reference slice in the same frame, and obtain the probability model of the slice according to gbh.entropy_continuation_slice_id, which is used for the entropy decoding process of the current slice; when gbh.entropy_continuation_mode is 2 (the eighteenth value), it means that the current slice needs to inherit the entropy model of a slice from the previous frame. At this time, it is necessary to decode the index value gbh.entropy_continuation_slice_id of the reference slice in the previous frame, and obtain the probability model of the current slice according to gbh.entropy_continuation_slice_id, which is used for the entropy decoding process of the current slice.
[0226] Exemplarily, in an embodiment of the present application, the process of decoding the GBH parameters can be expressed as follows:
[0227] Furthermore, in an embodiment of the present application, for the first case, after all identification information is decoded, it is necessary to verify the results of gbh.inter_frame_prediction_enabled_flag (third inter-frame prediction enable flag) and gbh.entropy_continuation_mode (third inter-frame entropy continuity mode flag), and it is necessary to determine that the two situations of gbh.inter_frame_prediction_enabled_flag being false and gbh.entropy_continuation_mode being 2 should not occur at the same time.
[0228] Exemplarily, in an embodiment of the present application, the verification result of gbh.inter_frame_prediction_enabled_flag (third inter-frame prediction enable flag) and gbh.entropy_continuation_mode (third inter-frame entropy continuity mode flag) can be expressed as:
[0229] Assert(!((!gbh.inter_frame_prediction_enabled_flag)&&(gbh.entropy_continuation_mode==2)))
[0230] It should be noted that, in the embodiments of the present application, for any of the three situations, after the third inter-frame entropy continuity mode flag is obtained through decoding, a probability model can be determined according to the value of the third inter-frame entropy continuity mode flag.
[0231] Exemplarily, in an embodiment of the present application, for the first case, if the value of gbh.entropy_continuation_mode is 0, the initialization process is performed for the probability model of the current slice; if the value of gbh.entropy_continuation_mode is 1, the index value gbh.entropy_continuation_slice_id of the referenced slice in the current frame is decoded, and the probability model of the slice is used as the probability model of the current slice (or the final value of the probability model of the slice is used as the initial value of the probability model of the current slice); if the value of gbh.entropy_continuation_mode is 2, the index value gbh.entropy_continuation_slice_id of the referenced slice in the previous frame is decoded, and the probability model of the slice is used as the probability model of the current slice (or the final value of the probability model of the slice is used as the initial value of the probability model of the current slice).
[0232] The decoding process is described below using the second case.
[0233] It should be noted that, in the embodiment of the present application, for the decoding process of the second case, the identification information of the SPS layer is also read and decoded first, and then the identification information of the GPS layer is decoded, and then the identification information of the GBH layer is decoded, so as to determine the entropy decoding probability model corresponding to the current processing unit; wherein, the identification information of the GPS layer can be controlled by the identification information of the SPS layer, and the identification information of the GBH layer can be controlled by the identification information of the GPS layer, so that the inheritance relationship of the entropy continuity enabling flag can be clarified, making the slice and inter-frame entropy continuity logic more accurate, thereby simplifying the decoding operation.
[0234] It should be noted that, in the embodiment of the present application, the decoding process of the second case is basically similar to the decoding process of the first case, but the decoding process of the second case is different in the method of decoding the identification information corresponding to the GBH layer.
[0235] Furthermore, in an embodiment of the present application, for the second case, when determining the probability model corresponding to the current processing unit based on the third identification information, if the value of the third entropy continuous enable identifier is the tenth value, the code stream is decoded to determine the index value of the current processing unit, and the probability model corresponding to the current processing unit is determined based on the index value of the current processing unit.
[0236] Exemplarily, in an embodiment of the present application, in the second case, when decoding the identification information of the GBH layer, if gps.inter_frame_prediction_enabled_flag (the second inter-frame prediction enable flag) is true, then the gbh.inter_frame_prediction_enabled_flag (the third inter-frame prediction enable flag) is decoded; if gps.entropy_continuation_enabled_flag (the second entropy continuity enable flag) is true, then the gps.entropy_continuation_enabled_flag (the third entropy continuity enable flag) is decoded, and then when the value of gps.entropy_continuation_enabled_flag is true (the tenth value), it can be judged according to the index value of the current slice (cur_slice_id) to determine the probability model.
[0237] Furthermore, in some embodiments of the present application, if the value of the third entropy continuity enabling flag is the eleventh value, the process of determining the third inter-frame entropy continuity mode flag is not performed.
[0238] Furthermore, in some embodiments of the present application, when determining the probability model corresponding to the current processing unit based on the index value of the current processing unit, the third inter-frame entropy continuity mode identifier can be determined based on the index value of the current processing unit; and the probability model corresponding to the current processing unit can be determined based on the third inter-frame entropy continuity mode identifier.
[0239] Further, in some embodiments of the present application, when determining the third inter-frame entropy continuity mode identifier based on the index value of the current processing unit, if the index value of the current processing unit is the twelfth value and the value of the third inter-frame prediction enable identifier is the thirteenth value, the code stream is decoded to determine the third inter-frame entropy continuity mode identifier.
[0240] Furthermore, in some embodiments of the present application, the value of the third inter-frame prediction enable flag may be a thirteenth value and a sixteenth value; for example, the thirteenth value is true, and the sixteenth value is false.
[0241] Furthermore, in some embodiments of the present application, the index value of the current processing unit may be the twelfth value; for example, the twelfth value may be 0.
[0242] Furthermore, in some embodiments of the present application, if the index value of the current processing unit is not the twelfth value, the code stream is decoded to determine a third inter-frame entropy continuity mode flag.
[0243] Furthermore, in some embodiments of the present application, if the index value of the current processing unit is the twelfth value and the third inter-frame prediction enable flag is not the thirteenth value, the determination process of the third inter-frame entropy continuity mode flag is not executed; and the value of the third inter-frame entropy continuity mode flag is determined to be the fourteenth value.
[0244] Furthermore, in some embodiments of the present application, the value of the third inter-frame entropy continuous mode identifier can be any one of the fourteenth value, the seventeenth value and the eighteenth value; for example, the fourteenth value is 0, the seventeenth value is 1, and the eighteenth value is 2.
[0245] Exemplarily, in an embodiment of the present application, when cur_slice_id (index value of the current slice) is not 0 (twelfth value), gbh.entropy_continuation_mode (third inter-frame entropy continuity mode identifier) is decoded; when cur_slice_id is 0 (twelfth value) and gbh.inter_frame_prediction_enabled_flag (third inter-frame prediction enable identifier) is true (thirteenth value), gbh.entropy_continuation_mode (third inter-frame entropy continuity mode identifier) is decoded, otherwise gbh.entropy_continuation_mode is not decoded and its value is set to 0.
[0246] Exemplarily, in an embodiment of the present application, if cur_slice_id is 0 and gbh.inter_frame_prediction_enabled_flag is false, gbh.entropy_continuation_mode (third inter-frame entropy continuity mode identifier) is not decoded and its value is set to 0 (the fourteenth value).
[0247] Exemplarily, in an embodiment of the present application, in the second case, the method for decoding the identification information of the GBH layer can be expressed as follows:
[0248] Further, in an embodiment of the present application, for the second case, when determining the probability model corresponding to the current processing unit according to the third inter-frame entropy continuity mode identifier, if the value of the third inter-frame entropy continuity mode identifier is the fourteenth value, the probability model corresponding to the current processing unit is initialized; if the value of the third inter-frame entropy continuity mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined according to the probability model corresponding to the third reference unit; wherein the third reference unit is the previous processing unit of the current processing unit; the third reference unit and the current processing unit are the same frame or different frames.
[0249] In some embodiments of the present application, in the second case, after gbh.entropy_continuation_mode is obtained by decoding, corresponding operations can be performed according to the result of gbh.entropy_continuation_mode: if gbh.entropy_continuation_mode is 0 (the fourteenth value), it indicates that the slice does not inherit the convergence probability value in the entropy model from other slices, and the probability model required for the entropy coding process is initialized; gbh.entropy_continuation_mode is 1 (the seventeenth value), indicating that the slice needs to inherit the probability model from the previous slice of the current slice in the decoding order; wherein, if the current slice is not the first slice of the current frame, the entropy model of the previous slice of the current frame is inherited; if the current slice is the first slice of the current frame, the probability model of the last slice of the previous frame is inherited.
[0250] The decoding process is described below using the third case as an example.
[0251] In the embodiment of the present application, for the decoding process of the third case, only inter-frame entropy continuity is allowed, while intra-frame entropy continuity is not allowed.
[0252] Exemplarily, in an embodiment of the present application, for the decoding process of the third case, the inter-frame prediction enable flag sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) of the SPS layer and the SPS layer entropy continuity enable flag sps.entropy_continuation_enabled_flag (first entropy continuity enable flag) can also be decoded first; the process can be expressed as:
[0253] Furthermore, in some embodiments of the present application, for the third case, the decoding process is similar to that of the first case.
[0254] Exemplarily, in an embodiment of the present application, for the decoding process of the third case, when determining the third identification information, if sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) is true, gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag) is decoded, otherwise it defaults to false.
[0255] Furthermore, in some embodiments of the present application, the code stream can be decoded to determine the first inter-frame prediction enable flag; if the value of the first inter-frame prediction enable flag is the fourth value (false), the determination process of the first entropy continuous enable flag is not executed.
[0256] Furthermore, in some embodiments of the present application, when determining the second identification information corresponding to the current processing unit based on the first identification information, if the value of the first entropy continuous enable flag is the first value and the value of the second inter-frame prediction enable flag is the seventh value, the code stream is decoded to determine the second entropy continuous enable flag.
[0257] Exemplarily, in an embodiment of the present application, if sps.entropy_continuation_enabled_flag (first entropy continuous enable flag) is true (first value) and gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag) is true, then gps.entropy_continuation_enabled_flag (second entropy continuous enable flag) is decoded, otherwise it defaults to false; the process can be expressed as:
[0258] Furthermore, in some embodiments of the present application, if the value of the first entropy continuous enable flag is the third value, or the value of the second inter-frame prediction enable flag is the eighth value, the determination process of the second entropy continuous enable flag is not performed.
[0259] Furthermore, in some embodiments of the present application, when determining the third identification information corresponding to the current processing unit based on the second identification information, if the value of the second inter-frame entropy continuous enable flag is the fifteenth value, the code stream is decoded to determine the third inter-frame prediction enable flag; if the value of the second inter-frame entropy continuous enable flag is the ninth value, the determination process of the third inter-frame prediction enable flag is not executed.
[0260] Exemplarily, in an embodiment of the present application, when determining the third identification information, if gps.inter_entropy_continuation_enabled_flag (the second inter-frame entropy continuation enable flag) is true (the fifteenth value), gbh.inter_frame_prediction_enabled_flag (the third inter-frame prediction enable flag) is decoded, otherwise it defaults to false.
[0261] Further, in some embodiments of the present application, when determining the third identification information corresponding to the current processing unit based on the second identification information, if the value of the second entropy continuous enable flag is the fifth value, and the value of the second inter-frame entropy continuous enable flag is the fifteenth value, the code stream is decoded to determine the third entropy continuous enable flag; if the value of the second entropy continuous enable flag is the sixth value, or the value of the second inter-frame entropy continuous enable flag is the ninth value, the determination process of the third entropy continuous enable flag is not executed.
[0262] Exemplarily, in an embodiment of the present application, if gps.entropy_continuation_enabled_flag (second entropy continuity enable flag) is true (fifth value) and gps.inter_entropy_continuation_enabled_flag (second inter-frame entropy continuity enable flag) is also true (fifteenth value), then gbh.entropy_continuation_enabled_flag (third entropy continuity enable flag) is decoded, otherwise it defaults to false.
[0263] Furthermore, in some embodiments of the present application, if the value of the third entropy continuity enable flag is the tenth value, and the value of the third inter-frame prediction enable flag is the thirteenth value, the code stream is decoded to determine the third inter-frame entropy continuity mode flag; and the probability model corresponding to the current processing unit is determined based on the third inter-frame entropy continuity mode flag.
[0264] Exemplarily, in an embodiment of the present application, if gbh.entropy_continuation_enabled_flag (third entropy continuous enable flag) is true (tenth value) and gbh.inter_frame_prediction_enabled_flag (third inter-frame prediction enable flag) is also true (thirteenth value), then gbh.entropy_continuation_mode (third inter-frame entropy continuous mode flag) is decoded, thereby determining the probability model of the current slice according to gbh.entropy_continuation_mode; the above process of decoding the third identification information can be expressed as:
[0265] Furthermore, in some embodiments of the present application, if the value of the third entropy continuity enable flag is the eleventh value, or the value of the third inter-frame prediction enable flag is the sixteenth value, the determination process of the third inter-frame entropy continuity mode flag is not performed.
[0266] Furthermore, in an embodiment of the present application, for the third case, the source of the entropy encoding / decoding probability model stored in the current slice can also be determined according to the value of gbh.entropy_continuation_mode (third inter-frame entropy continuity mode identifier).
[0267] Further, in some embodiments of the present application, for the third case, if the value of the third inter-frame entropy continuity mode identifier is the fourteenth value, the probability model corresponding to the current processing unit is initialized; if the value of the third inter-frame entropy continuity mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined based on the probability model corresponding to the fourth reference unit; wherein the fourth reference unit is located in the previous frame of the frame where the current processing unit is located.
[0268] Exemplarily, in an embodiment of the present application, for the third case, if gbh.entropy_continuation_mode takes a value of 0 (the fourteenth value), the probability model of the current slice performs an initialization process; if gbh.entropy_continuation_mode takes a value of 1, the index value gbh.entropy_continuation_slice_id of the slice referenced by the decoding in the previous frame is used, and the probability model of the slice is used as the probability model of the current slice (or the final value of the probability model of the slice is used as the initial value of the probability model of the current slice
[0269] Furthermore, in an embodiment of the present application, during the decoding process of the above three situations, when initializing the probability model corresponding to the current processing unit, the probability value corresponding to the probability model can be assigned to complete the initialization operation.
[0270] Illustratively, in an embodiment of the present application, the probability value of the probability model is assigned and the probability value is determined to be 0.5, thereby completing the operation of initializing the probability model corresponding to the current processing unit.
[0271] An embodiment of the present application provides a point cloud decoding method. At the decoding end, the code stream is decoded to determine the first identification information corresponding to the current processing unit; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, the second identification information corresponding to the current processing unit is determined; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; a probability model is determined based on the second identification information, and a predicted value of the current processing unit is obtained based on the probability model. In this way, during the decoding process of the current processing unit, the second identification information corresponding to the current processing unit can be controlled by determining the first identification information corresponding to the current processing unit, and the inheritance relationship of the entropy continuity enabling flag can be clarified, thereby simplifying the decoding operation and improving the decoding performance of the point cloud.
[0272] An embodiment of the present application proposes a point cloud encoding method. FIG19 is a schematic diagram of an implementation flow of the point cloud encoding method proposed in the embodiment of the present application. As shown in FIG19 , encoding processing of a point cloud may include the following steps:
[0273] Step 201: Determine first identification information corresponding to the current processing unit, and write the first identification information into the bitstream; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set.
[0274] In an embodiment of the present application, the first identification information corresponding to the current processing unit can be determined first, and the first identification information can be written into the code stream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set.
[0275] It should be noted that the encoding method of the embodiment of the present application specifically refers to a point cloud encoding method, which can be applied to a point cloud encoder (also referred to as "encoder" for short).
[0276] It should be noted that in the embodiments of the present application, the point cloud to be processed may include at least one unit to be processed. When encoding any one of the units to be processed, it may be used as the current processing unit in the point cloud to be processed. Here, the current processing unit is the unit to be encoded that currently needs to be encoded in the at least one unit.
[0277] Furthermore, in an embodiment of the present application, for each unit to be processed in the point cloud to be processed, it corresponds to a geometric information and an attribute information; wherein the geometric information represents the spatial relationship of the unit, and the attribute information represents the relevant information of the attributes of the unit.
[0278] Here, the attribute information may be color information, or reflectivity, or other attributes, which are not specifically limited in the embodiments of the present application. Specifically, when the attribute information is color information, it may be color information in any color space. For example, the attribute information may be color information in an RGB space, a YUV space, a YCbCr space, or the like, which are not specifically limited in the embodiments of the present application.
[0279] Illustratively, in the embodiment of the present application, the current processing unit may be a slice currently to be encoded.
[0280] Furthermore, in the embodiment of the present application, tiles and slices in the G-PCC may be divided.
[0281] Furthermore, in an embodiment of the present application, the first identification information is identification information corresponding to the point cloud sequence parameter set.
[0282] Exemplarily, in an embodiment of the present application, Table 2 shows the syntax elements and corresponding descriptors of the point cloud sequence parameter set layer defined in the present application, wherein the descriptor is the entropy coding algorithm of the syntax elements.
[0283] It should be noted that, in the embodiments of the present application, the encoding process can support three situations. The first situation is to allow the storage of the probability model of the reference frame and any slice of the current frame for inheritance by the current encoding slice. The sps.profile.slice_reordering_constraint_flag is obtained by the parameter configuration or the encoding end decision algorithm and written into the bitstream; the second situation is not to allow the storage of the probability model of any slice, and only the probability model of the previous slice can be inherited, and the slice bitstream is not allowed to be reordered, that is, the order of the slices remains consistent during the encoding process; the third situation is to allow the storage of the probability model of the reference frame and any slice of the current frame for inheritance by each slice, and slice reordering is allowed, that is, sps.profile.slice_reordering_constraint_flag is false, and the order of the slices during the encoding process is not necessarily completely consistent; among them, in the third case, only inter-frame entropy continuity is allowed, while intra-frame entropy continuity is not allowed.
[0284] The following describes the encoding process using the first case as an example.
[0285] Furthermore, in an embodiment of the present application, the first identification information is identification information corresponding to the SPS layer, which may include a first entropy continuous enable flag, a first inter-frame prediction enable flag, a first intra-frame entropy continuous enable flag, and a first inter-frame entropy continuous enable flag.
[0286] Furthermore, in an embodiment of the present application, the first inter-frame prediction enable flag is used to determine whether dependencies between different frames are allowed in the point cloud sequence parameter set; the first entropy continuity enable flag is used to determine whether a reference entropy coding probability model is allowed to be used in the point cloud sequence parameter set; the first intra-frame entropy continuity enable flag is used to determine whether a reference entropy coding probability model within a frame is allowed to be used in the point cloud sequence parameter set; the first inter-frame entropy continuity enable flag is used to determine whether reference entropy coding probability models of different frames are allowed to be used in the point cloud sequence parameter set.
[0287] Further, in an embodiment of the present application, the first entropy continuity enabling flag is the SPS layer entropy continuity enabling flag sps.entropy_continuation_enabled_flag; the first inter-frame prediction enabling flag is the SPS layer inter-frame prediction enabling flag sps.inter_frame_prediction_enabled_flag; the first intra-frame entropy continuity enabling flag is the SPS layer sps.intra_entropy_continuation_enabled_flag; the first inter-frame entropy continuity enabling flag is the SPS layer inter-frame entropy continuity enabling flag sps.inter_entropy_continuation_enabled_flag.
[0288] It should be noted that in an embodiment of the present application, at the encoding end, the first identification information can be determined according to the configuration file, and the first identification information can be written into the bitstream; the second identification information can be determined according to the configuration file and the first identification information, and the second identification information can be written into the bitstream; the third identification information can be determined according to the second identification information, and the third identification information can be written into the bitstream.
[0289] Further, in an embodiment of the present application, for the encoding process of the first case, a first entropy continuous enable flag and a first inter-frame prediction enable flag can be determined, and the first entropy continuous enable flag and the first inter-frame prediction enable flag can be written into the bitstream; if the value of the first entropy continuous enable flag is the first value, the first intra-frame entropy continuous enable flag is determined, and the first intra-frame entropy continuous enable flag is written into the bitstream; if the value of the first entropy continuous enable flag is the first value and the value of the first inter-frame prediction enable flag is the second value, the first inter-frame entropy continuous enable flag is determined, and the first inter-frame entropy continuous enable flag is written into the bitstream.
[0290] Furthermore, in some embodiments of the present application, if the value of the first entropy continuous enabling flag is the third value, the first intra-frame entropy continuous enabling flag is not written into the bitstream.
[0291] Furthermore, in some embodiments of the present application, if the value of the first entropy continuity enable flag is the third value, or the value of the first inter-frame prediction enable flag is the fourth value, the first inter-frame entropy continuity enable flag is not written into the bitstream.
[0292] For example, in an embodiment of the present application, the configuration parameters can be read first according to the configuration file: SPS layer inter-frame prediction enable flag sps.inter_frame_prediction_enabled_flag, SPS layer entropy continuation enable flag sps.entropy_continuation_enabled_flag, SPS layer inter-frame entropy continuation enable flag sps.inter_entropy_continuation_enabled_flag, SPS intra-frame entropy continuity enable flag sps.intra_entropy_continuation_enabled_flag. Then encode sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) and sps.entropy_continuation_enabled_flag (first entropy continuity enable flag); if sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) is false (fourth value), or sps.entropy_continuation_enabled_flag (first entropy continuity enable flag) is false (third value), then there is no need to encode sps.inter_entropy_continuation_enabled_flag, and it is set to false in the subsequent process, otherwise its value is encoded; if sps.entropy_continuation_enabled_flag (first entropy continuity enable flag) is false (third value), then there is no need to encode sps.intra_entropy_continuation_enabled_flag (first intra-frame entropy continuity enable flag), and it is set to false in the subsequent judgment, otherwise its value is encoded.
[0293] Furthermore, in some embodiments of the present application, the first identification information also includes a first reordering identifier, and the first reordering identifier can be determined and written into the code stream.
[0294] Exemplarily, in an embodiment of the present application, sps.profile.slice_reordering_constraint_flag (first reordering flag) is encoded, and the value of this syntax element is obtained by input configuration or by an encoding-side decision algorithm.
[0295] For example, in an embodiment of the present application, when sps.entropy_continuation_enabled_flag (first entropy continuity enable flag) is enabled, it means that there may be a dependency relationship between the slices, and the slice code streams should not be allowed to disrupt the order; for example, sps.entropy_continuation_enabled_flag determines sps.profile.slice_reordering_constraint_flag, which can be expressed as:
[0296] sps.profile.slice_reordering_constraint_flag=sps.entropy_continuation_enabled_flag
[0297] Step 202: Determine second identification information corresponding to the current processing unit based on the first identification information, and write the second identification information into the bitstream; wherein the second identification information is identification information corresponding to the geometric coding parameter set.
[0298] In an embodiment of the present application, after determining the first identification information corresponding to the current processing unit and writing the first identification information into the code stream, the second identification information corresponding to the current processing unit can be determined based on the first identification information, and the second identification information can be written into the code stream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set.
[0299] Furthermore, in an embodiment of the present application, the second identification information may include a second inter-frame prediction enable flag and a second entropy continuity enable flag; when determining the second identification information corresponding to the current processing unit based on the first identification information, the second inter-frame prediction enable flag can be determined based on the first inter-frame prediction enable flag; and the second entropy continuity enable flag can be determined based on the first entropy continuity enable flag.
[0300] Further, in an embodiment of the present application, the second inter-frame prediction enable flag is the GPS layer inter-frame prediction enable flag gps.inter_frame_prediction_enabled_flag; the second entropy continuation enable flag is the GPS layer entropy continuation enable flag gps.entropy_continuation_enabled_flag; the second inter-frame entropy continuation enable flag is the GPS layer inter-frame entropy continuation enable flag gps.inter_entropy_continuation_enabled_flag.
[0301] Furthermore, in an embodiment of the present application, the second inter-frame prediction enable flag is used to determine whether dependencies between different frames are allowed in the geometric coding parameter set; the second entropy continuity enable flag is used to determine whether a reference entropy coding probability model is allowed to be used in the geometric coding parameter set; the second inter-frame entropy continuity enable flag is used to determine whether the reference entropy coding probability model of different frames is allowed to be used in the geometric coding parameter set; and the second intra-frame entropy continuity enable flag is used to determine whether the reference entropy coding probability model within a frame is allowed to be used in the geometric coding parameter set.
[0302] Furthermore, in an embodiment of the present application, Table 3 shows the syntax elements (second identification information) of the GPS layer and the corresponding descriptors defined in the present application.
[0303] Furthermore, in some embodiments of the present application, when determining the second inter-frame prediction enable flag according to the first inter-frame prediction enable flag, if the value of the first inter-frame prediction enable flag is the second value, the second inter-frame prediction enable flag is determined.
[0304] Furthermore, in some embodiments of the present application, if the value of the first inter-frame prediction enabling flag is the fourth value, the second inter-frame prediction enabling flag is not written into the bitstream.
[0305] Furthermore, in some embodiments of the present application, when determining the second entropy continuity enable flag according to the first entropy continuity enable flag, if the value of the first entropy continuity enable flag is the first value, the second entropy continuity enable flag is determined.
[0306] Furthermore, in some embodiments of the present application, if the value of the first entropy continuous enable flag is the third value, the second entropy continuous enable flag is not written into the code stream.
[0307] Furthermore, in some embodiments of the present application, if the value of the first inter-frame prediction enable flag is the fourth value, or the value of the first entropy continuity enable flag is the third value, the second inter-frame entropy continuity enable flag is not written into the bitstream.
[0308] Furthermore, in some embodiments of the present application, the second identification information also includes a second intra-frame entropy continuous enable flag. If the value of the second entropy continuous enable flag is the fifth value, the second intra-frame entropy continuous enable flag is determined; if the value of the second entropy continuous enable flag is the sixth value, the second intra-frame entropy continuous enable flag is not written into the code stream.
[0309] Furthermore, in some embodiments of the present application, the second identification information also includes a second inter-frame entropy continuity enable flag. If the value of the second entropy continuity enable flag is the fifth value and the value of the second inter-frame prediction enable flag is the seventh value, the second inter-frame entropy continuity enable flag is determined and the second inter-frame entropy continuity enable flag is written into the bitstream; if the value of the second entropy continuity enable flag is the sixth value, or the value of the second inter-frame prediction enable flag is the eighth value, the second inter-frame entropy continuity enable flag is not written into the bitstream.
[0310] For example, in an embodiment of the present application, the GPS layer inter-frame prediction enable flag gps.inter_frame_prediction_enabled_flag, the GPS layer entropy continuity enable flag gps.entropy_continuation_enabled_flag, the GPS layer inter-frame entropy continuity enable flag gps.inter_entropy_continuation_enabled_flag, and the GPS intra-frame entropy continuity enable flag sps.intra_entropy_continuation_enabled_flag in the configuration file can be read and encoded according to the value of the corresponding identification information of the GPS layer (the second identification information).
[0311] Exemplarily, in an embodiment of the present application, if sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) is false (fourth value), there is no need to encode gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag) and set it to false in the subsequent process, otherwise encode its value.
[0312] Illustratively, in an embodiment of the present application, if sps.entropy_continuation_enabled_flag (first entropy continuity enabling flag) is false, gps.entropy_continuation_enabled_flag (second entropy continuity enabling flag) does not need to be encoded, and the value is false in the subsequent process, otherwise its value is encoded.
[0313] Exemplarily, in an embodiment of the present application, if sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) is false (fourth value) or sps.entropy_continuation_enabled_flag (first entropy continuation enable flag) is false (third value), then gps.inter_entropy_continuation_enabled_flag (second inter-frame entropy continuation enable flag) does not need to be encoded and set to false in the subsequent process, otherwise its value is encoded. If sps.entropy_continuation_enabled_flag (first entropy continuation enable flag) is false, gps.intra_entropy_continuation_enabled_flag (second intra-frame entropy continuation enable flag) does not need to be encoded and set to false in the subsequent process.
[0314] Step 203: Determine the probability model corresponding to the current processing unit based on the second identification information, and obtain the predicted value of the current processing unit according to the probability model.
[0315] In an embodiment of the present application, after determining the second identification information corresponding to the current processing unit based on the first identification information and writing the second identification information into the code stream, the probability model corresponding to the current processing unit can be determined based on the second identification information, and the predicted value of the current processing unit can be obtained according to the probability model.
[0316] Furthermore, in an embodiment of the present application, when determining a probability model based on the second identification information, the third identification information corresponding to the current processing unit can be determined based on the second identification information; wherein the third identification information is the identification information corresponding to the geometric block header information; and the probability model corresponding to the current processing unit is determined based on the third identification information.
[0317] Further, in an embodiment of the present application, the third inter-frame prediction enable flag is the GBH layer inter-frame prediction enable flag gbh.inter_frame_prediction_enabled_flag, the third entropy continuation enable flag is the GBH layer entropy continuation enable flag gbh.entropy_continuation_enabled_flag, and the third inter-frame entropy continuity mode flag is the GBH layer inter-frame entropy continuity mode flag gbh.entropy_continuation_mode.
[0318] Furthermore, in an embodiment of the present application, a third inter-frame prediction enable flag is used to determine whether dependencies between different frames are allowed in the geometry block header information; a third entropy continuity enable flag is used to determine whether a reference entropy coding probability model is allowed to be used in the geometry block header information; a third inter-frame prediction enable flag is used to determine whether reference entropy coding probability models of different frames are allowed to be used in the geometry block header information; and a third inter-frame entropy continuity mode flag is used to determine the source of the entropy coding probability model of the current processing unit.
[0319] Furthermore, in an embodiment of the present application, Table 4 is the third identification information defined in the present application, that is, the syntax elements of the geometry header information layer of the slice and the corresponding descriptors.
[0320] Furthermore, in some embodiments of the present application, the third identification information includes a third inter-frame prediction enable flag. When determining the third identification information corresponding to the current processing unit based on the second identification information, if the value of the second inter-frame prediction enable flag is the seventh value, the third inter-frame prediction enable flag is determined.
[0321] Furthermore, in some embodiments of the present application, if the value of the second inter-frame prediction enabling flag is the eighth value, the third inter-frame prediction enabling flag is not written into the bitstream.
[0322] Furthermore, in some embodiments of the present application, if the value of the second inter-frame entropy continuity enabling flag is the ninth value, the third inter-frame prediction enabling flag is not written into the bitstream.
[0323] Furthermore, in some embodiments of the present application, the third identification information also includes a third entropy continuous enable flag and a third inter-frame entropy continuous mode flag; when determining the third identification information corresponding to the current processing unit based on the second identification information, if the value of the second entropy continuous enable flag is the fifth value, the third entropy continuous enable flag and the third inter-frame entropy continuous mode flag are determined.
[0324] Furthermore, in some embodiments of the present application, if the value of the second entropy continuity enable flag is the sixth value, the third entropy continuity enable flag and the third inter-frame entropy continuity mode flag are not written into the code stream.
[0325] Furthermore, in some embodiments of the present application, the probability model corresponding to the current processing unit may be determined according to the third inter-frame entropy continuous mode identifier.
[0326] Further, in some embodiments of the present application, for the first case, when determining the probability model corresponding to the current processing unit according to the third inter-frame entropy continuity mode identifier, if the value of the third inter-frame entropy continuity mode identifier is the fourteenth value, the probability model corresponding to the current processing unit is initialized; if the value of the third inter-frame entropy continuity mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined according to the probability model corresponding to the first reference unit; wherein the first reference unit and the current processing unit belong to the same frame; if the value of the third inter-frame entropy continuity mode identifier is the eighteenth value, the probability model corresponding to the current processing unit is determined according to the probability model corresponding to the second reference unit; wherein the second reference unit is located in the previous frame of the frame where the current processing unit is located.
[0327] Exemplarily, in an embodiment of the present application, gbh.inter_frame_prediction_enabled_flag (third inter-frame prediction enable flag) and gbh.entropy_continuation_enabled_flag (third entropy continuity enable flag) can be determined based on the values of gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag), gps.entropy_continuation_enabled_flag (second entropy continuity enable flag), gps.inter_entropy_continuation_enabled_flag (second inter-frame entropy continuity enable flag), gps.intra_entropy_continuation_enabled_flag (second intra-frame entropy continuity enable flag) and the judgment algorithm.
[0328] Exemplarily, in an embodiment of the present application, if gps.inter_entropy_continuation_enabled_flag (the second inter-frame entropy continuity enabling flag) is false, then gbh.inter_frame_prediction_enabled_flag (the third inter-frame prediction enabling flag) does not need to be encoded and is set to false in the subsequent process, otherwise it is judged and the value is encoded. If gps.entropy_continuation_enabled_flag is (the second entropy continuity enabling flag) false, then gbh.entropy_continuation_enabled_flag (the third entropy continuity enabling flag) does not need to be encoded and is set to false in the subsequent process, otherwise it is judged and the value is encoded.
[0329] Exemplarily, in an embodiment of the present application, the value of gbh.entropy_continuation_mode (third inter-frame entropy continuity mode flag) can be determined according to the values of gps.entropy_continuation_enabled_flag (second entropy continuity enable flag) and gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag) and the judgment algorithm. If gps.entropy_continuation_enabled_flag (the second entropy continuity enable flag) is false, gbh.entropy_continuation_mode (the third inter-frame entropy continuity mode flag) does not need to be encoded and takes the value of 0; if gps.entropy_continuation_enabled_flag (the second entropy continuity enable flag) is true and gps.inter_frame_prediction_enabled_flag (the second inter-frame prediction enable flag) is false, the value of gbh.entropy_continuation_mode (the third inter-frame entropy continuity mode flag) is determined to be 0 or 1 according to the determination algorithm; if gps.entropy_continuation_enabled_flag (the second entropy continuity enable flag) and gps.inter_frame_prediction_enabled_flag (the second inter-frame prediction enable flag) are both true, the value of gbh.entropy_continuation_mode is determined to be 0, 1 or 2 according to the determination algorithm.
[0330] Illustratively, in an embodiment of the present application, the source of the entropy coding probability model stored in the current slice may be determined according to the value of gbh.entropy_continuation_mode. If gbh.entropy_continuation_mode takes the value of 0, the probability model of the current slice performs the initialization process; if gbh.entropy_continuation_mode takes the value of 1, then according to the judgment process, the slice already encoded in the current frame is selected, and the index value gbh.entropy_continuation_slice_id of the selected slice in the current frame is encoded, and the probability model of the slice is used as the probability model of the current slice, or the final value of the probability model of the slice is used as the initial value of the probability model of the current slice; if gbh.entropy_continuation_mode takes the value of 2, then according to the judgment process, the slice of the previous frame is selected, and the index value gbh.entropy_continuation_slice_id of the selected slice in the previous frame is encoded, and the probability model of the slice is used as the probability model of the current slice, or the final value of the probability model of the slice is used as the initial value of the probability model of the current slice.
[0331] The following describes the encoding process using the second case as an example.
[0332] Furthermore, in the embodiment of the present application, the encoding process for the second case is different from that for the first case when encoding the GBH layer identification information.
[0333] Further, in an embodiment of the present application, when determining the probability model corresponding to the current processing unit based on the third identification information, if the value of the third entropy continuous enable identifier is the tenth value, the index value of the current processing unit is determined, and the probability model corresponding to the current processing unit is determined based on the index value of the current processing unit.
[0334] Furthermore, in an embodiment of the present application, if the value of the third entropy continuity enabling flag is the eleventh value, the third inter-frame entropy continuity mode flag is not written into the bitstream.
[0335] Furthermore, in some embodiments of the present application, when determining the probability model corresponding to the current processing unit based on the index value of the current processing unit, the third inter-frame entropy continuity mode identifier can be determined based on the index value of the current processing unit; and the probability model corresponding to the current processing unit can be determined based on the third inter-frame entropy continuity mode identifier.
[0336] Further, in some embodiments of the present application, when determining the third inter-frame entropy continuity mode identifier based on the index value of the current processing unit, if the index value of the current processing unit is the twelfth value and the third inter-frame prediction enable identifier is the thirteenth value, then the third inter-frame entropy continuity mode identifier is determined.
[0337] Furthermore, in some embodiments of the present application, if the index value of the current processing unit is not the twelfth value, a third inter-frame entropy continuity mode flag is determined.
[0338] Further, in some embodiments of the present application, if the index value of the current processing unit is the twelfth value and the third inter-frame prediction enable flag is not the thirteenth value, the third inter-frame entropy continuity mode flag is not written into the bitstream, and the value of the third inter-frame entropy continuity mode flag is determined to be the fourteenth value.
[0339] Exemplarily, in an embodiment of the present application, gbh.inter_frame_prediction_enabled_flag (third inter-frame prediction enable flag) and gbh.entropy_continuation_enabled_flag (third entropy continuity enable flag) can be determined by a judgment algorithm based on the values of gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag), gps.entropy_continuation_enabled_flag (second entropy continuity enable flag), gps.inter_entropy_continuation_enabled_flag (second inter-frame entropy continuity enable flag), and gps.intra_entropy_continuation_enabled_flag (second intra-frame entropy continuity enable flag).
[0340] For example, in an embodiment of the present application, if gps.inter_entropy_continuation_enabled_flag (the second inter-frame entropy continuity enabling flag) is false, there is no need to encode gbh.inter_frame_prediction_enabled_flag (the third inter-frame prediction enabling flag) and it is set to false in the subsequent process, otherwise it is judged and the value is encoded; if gps.entropy_continuation_enabled_flag (the second entropy continuity enabling flag) is false, there is no need to encode gbh.entropy_continuation_enabled_flag (the third entropy continuity enabling flag), and the value is false in the subsequent process, otherwise it is judged and the value is encoded.
[0341] Exemplarily, in an embodiment of the present application, the value of gbh.entropy_continuation_mode (third inter-frame entropy continuity mode flag) can be determined according to the values of gps.entropy_continuation_enabled_flag (second entropy continuity enable flag) and gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag) and the judgment algorithm. If gps.entropy_continuation_enabled_flag (the second entropy continuity enable flag) is false, gbh.entropy_continuation_mode (the third inter-frame entropy continuity mode flag) does not need to be encoded and takes the value of 0; when gps.entropy_continuation_enabled_flag (the second entropy continuity enable flag) is true and the current slice is the first slice of the current frame, if gps.inter_frame_prediction_enabled_flag (the second inter-frame prediction enable flag) is false, gbh.entropy_continuation_mode (the third inter-frame entropy continuity mode) does not need to be encoded and takes the value of 0, otherwise the value of gbh.entropy_continuation_mode is determined to be 0 or 1 and encoded according to the determination algorithm. When gps.entropy_continuation_enabled_flag (second entropy continuity enable flag) is true and the current slice is not the first slice of the current frame, the value of gbh.entropy_continuation_mode is determined to be 0 or 1 and encoded according to the judgment algorithm.
[0342] Further, in some embodiments of the present application, for the second case, when determining the probability model corresponding to the current processing unit based on the third inter-frame entropy continuity mode identifier, if the value of the third inter-frame entropy continuity mode identifier is the fourteenth value, the probability model corresponding to the current processing unit is initialized; if the value of the third inter-frame entropy continuity mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined based on the probability model corresponding to the third reference unit; wherein the third reference unit is the previous processing unit of the current processing unit; the third reference unit and the current processing unit are the same frame or different frames.
[0343] Exemplarily, in an embodiment of the present application, for the second case, the source of the stored value in the probability model of the current slice can be determined according to the value of gbh.entropy_continuation_mode. If the value of gbh.entropy_continuation_mode is 0, the probability model of the current slice performs the initialization process; if the value of gbh.entropy_continuation_mode is 1, the probability model of the previous slice is used as the probability model of the current slice (or the final value of the probability model of the slice is used as the initial value of the probability model of the current slice). Among them, if the current slice is the first slice of the current frame, the "previous slice" refers to the last slice of the previous frame; if the current slice is not the first slice of the current frame, the "previous slice" refers to the slice that is in the same frame as the current slice and is located before the current slice in the encoding order.
[0344] The following describes the encoding process using the third case as an example.
[0345] Furthermore, in an embodiment of the present application, for the third case, a first inter-frame prediction enable flag can be determined and written into the bitstream; if the value of the first inter-frame prediction enable flag is the second information, the first entropy continuity enable flag is not written into the bitstream.
[0346] Further, in some embodiments of the present application, when determining the second identification information corresponding to the current processing unit based on the first identification information, if the value of the first entropy continuous enable flag is the first value and the value of the second inter-frame prediction enable flag is the seventh value, the second entropy continuous enable flag is determined.
[0347] Furthermore, in some embodiments of the present application, if the value of the first entropy continuity enable flag is the third value, or the value of the second inter-frame prediction enable flag is the eighth value, the second entropy continuity enable flag is not written into the bitstream.
[0348] Further, in some embodiments of the present application, when determining the third identification information corresponding to the current processing unit based on the second identification information, if the value of the second inter-frame entropy continuous enable flag is the fifteenth value, the third inter-frame prediction enable flag is determined; if the value of the second inter-frame entropy continuous enable flag is the ninth value, the third inter-frame prediction enable flag is not written into the bitstream.
[0349] Further, in some embodiments of the present application, when determining the third identification information corresponding to the current processing unit based on the second identification information, if the value of the second entropy continuous enable flag is the fifth value and the value of the second inter-frame entropy continuous enable flag is the fifteenth value, then the third entropy continuous enable flag is determined; if the value of the second entropy continuous enable flag is the sixth value, or the value of the second inter-frame entropy continuous enable flag is the ninth value, then the third entropy continuous enable flag is not written into the bitstream.
[0350] Further, in some embodiments of the present application, if the value of the third entropy continuity enable flag is the tenth value, and the value of the third inter-frame prediction enable flag is the thirteenth value, the third inter-frame entropy continuity mode flag is determined; and the probability model corresponding to the current processing unit is determined according to the third inter-frame entropy continuity mode flag.
[0351] Furthermore, in some embodiments of the present application, if the value of the third entropy continuity enable flag is the eleventh value, or the value of the third inter-frame prediction enable flag is the sixteenth value, the third inter-frame entropy continuity mode flag is not written into the bitstream.
[0352] Exemplarily, in an embodiment of the present application, for the encoding process of the third case, when encoding the first identification information, the configuration parameters can be read first according to the configuration file: the SPS layer inter-frame prediction enable flag sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag), the SPS layer entropy continuity enable flag sps.entropy_continuation_enabled_flag (first entropy continuity enable flag); first encode sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag); if sps.inter_frame_prediction_enabled_flag (first inter-frame prediction enable flag) is false, there is no need to encode sps.entropy_continuation_enabled_flag (first entropy continuity enable flag) and take the value of false in subsequent judgments.
[0353] Exemplarily, in an embodiment of the present application, when encoding the second identification information, the GPS layer inter-frame prediction enable flag gps.inter_frame_prediction_enabled_flag and the GPS layer entropy continuity enable flag gps.entropy_continuation_enabled_flag in the configuration file can be read and encoded according to the SPS layer parameter value. If sps.inter_frame_prediction_enabled_flag (the first inter-frame prediction enable flag) is false, then gps.inter_frame_prediction_enabled_flag (the second inter-frame prediction enable flag) does not need to be encoded and is set to false in the subsequent process, otherwise its value is encoded; if sps.entropy_continuation_enabled_flag (the first entropy continuity enable flag) or gps.inter_frame_prediction_enabled_flag (the second entropy continuity enable flag) is false, then gps.entropy_continuation_enabled_flag (the second entropy continuity enable flag) does not need to be encoded, otherwise its value is encoded.
[0354] Exemplarily, in an embodiment of the present application, when encoding the third identification information, gbh.inter_frame_prediction_enabled_flag (third inter-frame prediction enable flag) and gbh.entropy_continuation_enabled_flag (third entropy continuity enable flag) can be determined by the judgment algorithm based on the values of gps.inter_frame_prediction_enabled_flag (second inter-frame prediction enable flag) and gps.entropy_continuation_enabled_flag (second entropy continuity enable flag). If gps.inter_entropy_continuation_enabled_flag (the second inter-frame entropy continuity enabling flag) is false, there is no need to encode gbh.inter_frame_prediction_enabled_flag (the third inter-frame prediction enabling flag) and it is set to false in the subsequent process, otherwise it is judged and encoded; if gps.entropy_continuation_enabled_flag (the second entropy continuity enabling flag) or gps.inter_entropy_continuation_enabled_flag (the second inter-frame entropy continuity enabling flag) is false, there is no need to encode gbh.entropy_continuation_enabled_flag (the third entropy continuity enabling flag) and it is set to false in the subsequent process, otherwise it is judged and encoded.
[0355] For example, in an embodiment of the present application, when encoding the third identification information, the value of gbh.entropy_continuation_mode (third inter-frame entropy continuity mode identifier) can be determined according to the values of gbh.entropy_continuation_enabled_flag (third entropy continuity enable flag) and gbh.inter_frame_prediction_enabled_flag (third inter-frame prediction enable flag) and the judgment algorithm. If gbh.entropy_continuation_enabled_flag or gbh.inter_frame_prediction_enabled_flag is false, then gbh.entropy_continuation_mode does not need to be encoded and takes a value of 0; if gbh.entropy_continuation_enabled_flag and gbh.inter_frame_prediction_enabled_flag are both true, then the value of gbh.entropy_continuation_mode is determined to be 0 or 1 according to the judgment algorithm and encoded.
[0356] Further, in some embodiments of the present application, when determining the probability model corresponding to the current processing unit based on the third inter-frame entropy continuity mode identifier, if the value of the third inter-frame entropy continuity mode identifier is the fourteenth value, the probability model corresponding to the current processing unit is initialized; if the value of the third inter-frame entropy continuity mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined based on the probability model corresponding to the fourth reference unit; wherein the fourth reference unit is located in the previous frame of the frame where the current processing unit is located.
[0357] For example, in an embodiment of the present application, the source of the entropy encoding / decoding probability model stored for the current slice can be determined according to the value of gbh.entropy_continuation_mode. If the value of gbh.entropy_continuation_mode is 0, the probability model of the current slice performs the initialization process; if the value of gbh.entropy_continuation_mode is 1, a slice of the previous frame is selected according to the determination process, and the index value gbh.entropy_continuation_slice_id of the selected slice in the previous frame is encoded, and the probability model of the slice is used as the probability model of the current slice (or the final value of the probability model of the slice is used as the initial value of the probability model of the current slice).
[0358] The embodiment of the present application provides a point cloud encoding method, in which, at the encoding end, the first identification information corresponding to the current processing unit is determined, and the first identification information is written into the bitstream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, the second identification information corresponding to the current processing unit is determined, and the second identification information is written into the bitstream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, the probability model corresponding to the current processing unit is determined, and the predicted value of the current processing unit is obtained according to the probability model. In this way, in the process of encoding the current processing unit, the second identification information corresponding to the current processing unit can be controlled by determining the first identification information corresponding to the current processing unit, and the inheritance relationship of the entropy continuity enabling flag can be clarified, thereby simplifying the encoding operation and improving the encoding performance of the point cloud.
[0359] Based on the above embodiment, in another embodiment of the present application, based on the same inventive concept as the above embodiment, FIG20 is a schematic diagram of a composition structure of an encoder. As shown in FIG20 , the encoder 20 may include: a first determining unit 21, wherein:
[0360] The first determination unit 21 is configured to determine the first identification information corresponding to the current processing unit and write the first identification information into the code stream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determine the second identification information corresponding to the current processing unit, and write the second identification information into the code stream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, determine the probability model corresponding to the current processing unit, and obtain the predicted value of the current processing unit according to the probability model.
[0361] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.
[0362] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0363] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the encoder 20. The computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, it implements the method described in any one of the aforementioned embodiments.
[0364] Based on the composition of the above-mentioned encoder 20 and the computer-readable storage medium, Figure 21 is a second schematic diagram of the composition structure of the encoder. As shown in Figure 21, the encoder 20 may include: a first memory 22 and a first processor 23, a first communication interface 24 and a first bus system 25. The first memory 22, the first processor 23, and the first communication interface 24 are coupled together through the first bus system 25. It can be understood that the first bus system 25 is used to achieve connection and communication between these components. In addition to the data bus, the first bus system 25 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are labeled as the first bus system 25 in Figure 21. Among them,
[0365] The first communication interface 24 is used to receive and send signals during the process of sending and receiving information with other external network elements;
[0366] The first memory 22 is used to store a computer program that can be run on the first processor;
[0367] The first processor 23 is used to determine the first identification information corresponding to the current processing unit and write the first identification information into the code stream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determine the second identification information corresponding to the current processing unit, and write the second identification information into the code stream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, determine the probability model corresponding to the current processing unit, and obtain the predicted value of the current processing unit according to the probability model.
[0368] It is understood that the first memory 22 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 22 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0369] The first processor 23 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 23. The above-mentioned first processor 23 may 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. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may 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 well-known 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 22. The first processor 23 reads the information in the first memory 22 and, in conjunction with its hardware, completes the steps of the above method.
[0370] 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.
[0371] Optionally, as another embodiment, the first processor 23 is further configured to execute any one of the methods described in the foregoing embodiments when running the computer program.
[0372] FIG22 is a schematic diagram of the first structure of a decoder. As shown in FIG22 , the decoder 30 may include: a second determining unit 31; wherein,
[0373] The second determination unit 31 is configured to determine the first identification information corresponding to the current processing unit and write the first identification information into the code stream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determine the second identification information corresponding to the current processing unit, and write the second identification information into the code stream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, determine the probability model corresponding to the current processing unit, and obtain the predicted value of the current processing unit according to the probability model.
[0374] It is understood that in this embodiment, a "unit" can be a portion of a circuit, a portion of a processor, a portion of a program or software, etc., and can also be a module or a non-modular system. Furthermore, the various components in this embodiment can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The aforementioned integrated units can be implemented in the form of hardware or software functional modules.
[0375] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the portion that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0376] Therefore, an embodiment of the present application provides a computer-readable storage medium, which is applied to the decoder 30. The computer-readable storage medium stores a computer program, and when the computer program is executed by the first processor, it implements any one of the methods in the aforementioned embodiments.
[0377] Based on the composition of the above-mentioned decoder 30 and the computer-readable storage medium, Figure 23 is a second schematic diagram of the composition structure of the decoder. As shown in Figure 23, the decoder 30 may include: a second memory 32 and a second processor 33, a second communication interface 34 and a second bus system 35. The second memory 32 and the second processor 33, and the second communication interface 34 are coupled together through the second bus system 35. It can be understood that the second bus system 35 is used to realize the connection and communication between these components. In addition to the data bus, the second bus system 35 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are labeled as the second bus system 35 in Figure 23. Among them,
[0378] The second communication interface 34 is used for receiving and sending signals during the process of sending and receiving information with other external network elements;
[0379] The second memory 32 is used to store a computer program that can be run on the second processor;
[0380] The second processor 33 is used to determine the first identification information corresponding to the current processing unit and write the first identification information into the code stream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determine the second identification information corresponding to the current processing unit, and write the second identification information into the code stream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, determine the probability model corresponding to the current processing unit, and obtain the predicted value of the current processing unit according to the probability model.
[0381] It is understood that the second memory 32 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 second memory 32 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0382] The second processor 33 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 second processor 33. The above-mentioned second processor 33 may 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. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may 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 well-known 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 second memory 32. The second processor 33 reads the information in the second memory 32 and, in conjunction with its hardware, completes the steps of the above method.
[0383] 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 a processor or outside a processor.
[0384] An embodiment of the present application provides an encoder and a decoder. In the process of encoding and decoding the current processing unit, the second identification information corresponding to the current processing unit can be controlled by determining the first identification information corresponding to the current processing unit. The inheritance relationship of the entropy continuity enabling flag can be clarified, thereby simplifying the encoding and decoding operations and improving the encoding and decoding performance of the point cloud.
[0385] In another embodiment of the present application, the embodiment of the present application also provides a code stream, which is generated by bit encoding based on the information to be encoded; wherein the information to be encoded includes at least: first identification information corresponding to the current processing unit, second identification information corresponding to the current processing unit, and third identification information corresponding to the current processing unit.
[0386] It should be noted that, in the embodiments of the present application, 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.
[0387] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0388] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0389] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0390] 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.
[0391] The above description is merely a specific 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. Industrial Applicability
[0392] The embodiment of the present application provides a point cloud encoding and decoding method, an encoder, a decoder, a code stream and a storage medium. The decoder decodes the code stream and determines the first identification information corresponding to the current processing unit; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, the second identification information corresponding to the current processing unit is determined; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, a probability model is determined, and a prediction value of the current processing unit is obtained according to the probability model. The encoder determines the first identification information corresponding to the current processing unit and writes the first identification information into the code stream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, the second identification information corresponding to the current processing unit is determined, and the second identification information is written into the code stream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, the probability model corresponding to the current processing unit is determined, and a prediction value of the current processing unit is obtained according to the probability model. That is to say, in an embodiment of the present application, in the process of encoding and decoding the current processing unit, the second identification information corresponding to the current processing unit can be controlled by determining the first identification information corresponding to the current processing unit, which can clarify the inheritance relationship of the entropy continuity enabling flag, thereby simplifying the encoding and decoding operations and improving the encoding and decoding performance of the point cloud.
Claims
1. A point cloud decoding method, applied to a decoder, the method comprising: Decode the code stream to determine first identification information corresponding to the current processing unit; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set; Determine, according to the first identification information, second identification information corresponding to the current processing unit; wherein the second identification information is identification information corresponding to the geometric coding parameter set; A probability model is determined based on the second identification information, and a predicted value of the current processing unit is obtained according to the probability model.
2. The method according to claim 1, wherein: The first identification information includes a first entropy continuous enable flag, a first inter-frame prediction enable flag, a first intra-frame entropy continuous enable flag, and a first inter-frame entropy continuous enable flag; The decoding code stream determines the first identification information corresponding to the current processing unit, including: Decoding the bitstream, and determining the first entropy continuity enable flag and the first inter-frame prediction enable flag; If the value of the first entropy continuous enabling flag is a first value, decoding the bitstream to determine the first intra-frame entropy continuous enabling flag; If the value of the first entropy continuity enabling flag is a first value, and the value of the first inter-frame prediction enabling flag is a second value, the bitstream is decoded to determine the first inter-frame entropy continuity enabling flag.
3. The method according to claim 2, wherein: The first identification information further includes a first reordering identification, and the method further includes: Decoding the bitstream to determine the first reordering identifier; Verification processing is performed according to the first reordering flag and the first entropy continuous enabling flag.
4. The method according to claim 3, wherein: The method further comprises: If the value of the first entropy continuous enabling flag is the third value, the process of determining the first intra-frame entropy continuous enabling flag is not performed.
5. The method according to claim 4, wherein: The method further comprises: If the value of the first entropy continuity enabling flag is the third value, or the value of the first inter-frame prediction enabling flag is the fourth value, the determination process of the first inter-frame entropy continuity enabling flag is not performed.
6. The method according to claim 3, wherein: The second identification information includes a second inter-frame prediction enable flag and a second entropy continuous enable flag; and determining the second identification information corresponding to the current processing unit according to the first identification information includes: determining the second inter-frame prediction enabling flag according to the first inter-frame prediction enabling flag; The second entropy continuity enable flag is determined according to the first entropy continuity enable flag.
7. The method according to claim 6, wherein: The determining the second inter-frame prediction enable flag according to the first inter-frame prediction enable flag includes: If the value of the first inter-frame prediction enable flag is the second value, the bitstream is decoded to determine the second inter-frame prediction enable flag.
8. The method according to claim 6, wherein: The method further comprises: If the value of the first inter-frame prediction enabling flag is the fourth value, the process of determining the second inter-frame prediction enabling flag is not performed.
9. The method according to claim 6, wherein: The determining the second entropy continuous enabling flag according to the first entropy continuous enabling flag includes: If the value of the first entropy continuity enabling flag is a first value, the bitstream is decoded to determine the second entropy continuity enabling flag.
10. The method according to claim 9, wherein: The method further comprises: If the value of the first entropy continuous enabling flag is the third value, the process of determining the second entropy continuous enabling flag is not performed.
11. The method according to claim 10, wherein: The method further comprises: If the value of the first inter-frame prediction enable flag is the fourth value, or the value of the first entropy continuity enable flag is the third value, the determination process of the second inter-frame entropy continuity enable flag is not performed.
12. The method according to claim 10, wherein: The second identification information further includes a second intra-frame entropy continuous enabling flag, and the method further includes: If the value of the second entropy continuous enabling flag is the fifth value, decoding the bitstream to determine the second intra-frame entropy continuous enabling flag; If the value of the second entropy continuous enabling flag is the sixth value, the second intra-frame entropy continuous enabling flag determination process is not performed.
13. The method according to claim 10, wherein: The second identification information further includes a second inter-frame entropy continuous enabling flag, and the method further includes: If the value of the second entropy continuity enable flag is the fifth value, and the value of the second inter-frame prediction enable flag is the seventh value, decoding the bitstream to determine the second inter-frame entropy continuity enable flag; If the value of the second entropy continuity enabling flag is the sixth value, or the value of the second inter-frame prediction enabling flag is the eighth value, the process of determining the second inter-frame entropy continuity enabling flag is not performed.
14. The method according to claim 13, wherein: The determining of the probability model based on the second identification information includes: Determining third identification information corresponding to the current processing unit according to the second identification information; wherein the third identification information is identification information corresponding to the geometry block header information; The probability model corresponding to the current processing unit is determined according to the third identification information.
15. The method according to claim 13, wherein: The third identification information includes a third inter-frame prediction enabling flag, and determining the third identification information corresponding to the current processing unit according to the second identification information includes: If the value of the second inter-frame prediction enable flag is the seventh value, the bitstream is decoded to determine the third inter-frame prediction enable flag.
16. The method according to claim 15, wherein: The method further comprises: If the value of the second inter-frame prediction enable flag is the eighth value, the process of determining the third inter-frame prediction enable flag is not performed.
17. The method according to claim 16, wherein: The method further comprises: If the value of the second inter-frame entropy continuity enabling flag is the ninth value, the process of determining the third inter-frame prediction enabling flag is not performed.
18. The method according to claim 17, wherein: The third identification information further includes a third entropy continuous enable flag and a third inter-frame entropy continuous mode flag, and determining the third identification information corresponding to the current processing unit according to the second identification information includes: If the value of the second entropy continuous enabling flag is the fifth value, the bitstream is decoded to determine the third entropy continuous enabling flag and the third inter-frame entropy continuous mode. Style identification.
19. The method according to claim 18, wherein: The method further comprises: If the value of the second entropy continuity enabling flag is the sixth value, the process of determining the third entropy continuity enabling flag and the third inter-frame entropy continuity mode flag is not performed.
20. The method according to claim 19, wherein: The determining, according to the third identification information, a probability model corresponding to the current processing unit includes: The probability model corresponding to the current processing unit is determined according to the third inter-frame entropy continuous mode identifier.
21. The method according to claim 20, wherein: The determining, according to the third identification information, a probability model corresponding to the current processing unit includes: If the value of the third entropy continuous enabling flag is the tenth value, the code stream is decoded to determine the index value of the current processing unit, and the probability model corresponding to the current processing unit is determined according to the index value of the current processing unit.
22. The method according to claim 21, wherein: The method further comprises: If the value of the third entropy continuity enabling flag is the eleventh value, the process of determining the third inter-frame entropy continuity mode flag is not executed.
23. The method according to claim 21, wherein: The determining, according to the index value of the current processing unit, a probability model corresponding to the current processing unit includes: Determining the third inter-frame entropy continuous mode identifier based on the index value of the current processing unit; The probability model corresponding to the current processing unit is determined according to the third inter-frame entropy continuous mode identifier.
24. The method according to claim 23, wherein: The determining the third inter-frame entropy continuous mode identifier based on the index value of the current processing unit includes: If the index value of the current processing unit is the twelfth value, and the value of the third inter-frame prediction enable flag is the thirteenth value, the bitstream is decoded to determine the third inter-frame entropy continuity mode flag.
25. The method according to claim 24, wherein: The method further comprises: If the index value of the current processing unit is not the twelfth value, the code stream is decoded to determine the third inter-frame entropy continuity mode identifier.
26. The method according to claim 25, wherein: The method further comprises: If the index value of the current processing unit is the twelfth value, and the third inter-frame prediction enable flag is not the thirteenth value, the determination process of the third inter-frame entropy continuous mode flag is not performed.
27. The method according to claim 26, wherein: The method further comprises: The value of the third inter-frame entropy continuous mode identifier is determined to be the fourteenth value.
28. The method of claim 16, wherein: The method further comprises: Decoding the bitstream and determining the first inter-frame prediction enable flag; If the value of the first inter-frame prediction enabling flag is the fourth value, the process of determining the first entropy continuous enabling flag is not performed.
29. The method according to claim 28, wherein: The determining, according to the first identification information, second identification information corresponding to the current processing unit includes: If the value of the first entropy continuity enable flag is the first value, and the value of the second inter-frame prediction enable flag is the seventh value, the bitstream is decoded to determine the second entropy continuity enable flag.
30. The method of claim 29, wherein: The method further comprises: If the value of the first entropy continuity enabling flag is the third value, or the value of the second inter-frame prediction enabling flag is the eighth value, the determination process of the second entropy continuity enabling flag is not performed.
31. The method of claim 18, wherein: The determining, according to the second identification information, the third identification information corresponding to the current processing unit includes: If the value of the second inter-frame entropy continuity enabling flag is the fifteenth value, decoding the bitstream to determine the third inter-frame prediction enabling flag; If the value of the second inter-frame entropy continuity enabling flag is the ninth value, the process of determining the third inter-frame prediction enabling flag is not performed.
32. The method according to claim 31, wherein: The determining, according to the second identification information, the third identification information corresponding to the current processing unit includes: If the value of the second entropy continuity enabling flag is the fifth value, and the value of the second inter-frame entropy continuity enabling flag is the fifteenth value, decoding the bitstream to determine the third entropy continuity enabling flag; If the value of the second entropy continuity enabling flag is the sixth value, or the value of the second inter-frame entropy continuity enabling flag is the ninth value, the process of determining the third entropy continuity enabling flag is not performed.
33. The method of claim 32, wherein: The method further comprises: If the value of the third entropy continuity enable flag is the tenth value, and the value of the third inter-frame prediction enable flag is the thirteenth value, decoding the bitstream to determine the third inter-frame entropy continuity mode flag; The probability model corresponding to the current processing unit is determined according to the third inter-frame entropy continuous mode identifier.
34. The method of claim 33, wherein: The method further comprises: If the value of the third entropy continuity enable flag is the eleventh value, or the value of the third inter-frame prediction enable flag is the sixteenth value, the determination process of the third inter-frame entropy continuity mode flag is not performed.
35. The method of claim 20, wherein: The determining, according to the third inter-frame entropy continuous mode identifier, a probability model corresponding to the current processing unit includes: If the value of the third inter-frame entropy continuous mode identifier is the fourteenth value, initializing the probability model corresponding to the current processing unit; If the value of the third inter-frame entropy continuous mode identifier is the seventeenth value, determining the probability model corresponding to the current processing unit according to the probability model corresponding to the first reference unit; wherein the first reference unit and the current processing unit belong to the same frame; If the value of the third inter-frame entropy continuous mode identifier is the eighteenth value, the current processing unit is determined according to the probability model corresponding to the second reference unit. The corresponding probability model; wherein the second reference unit is located in the previous frame of the frame where the current processing unit is located.
36. The method of claim 23, wherein: The determining, according to the third inter-frame entropy continuous mode identifier, a probability model corresponding to the current processing unit includes: If the value of the third inter-frame entropy continuous mode identifier is the fourteenth value, initializing the probability model corresponding to the current processing unit; If the value of the third inter-frame entropy continuous mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined based on the probability model corresponding to the third reference unit; wherein the third reference unit is the previous processing unit of the current processing unit; and the third reference unit and the current processing unit are the same frame or different frames.
37. The method of claim 33, wherein: The determining, according to the third inter-frame entropy continuous mode identifier, a probability model corresponding to the current processing unit includes: If the value of the third inter-frame entropy continuous mode identifier is the fourteenth value, initializing the probability model corresponding to the current processing unit; If the value of the third inter-frame entropy continuous mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined according to the probability model corresponding to the fourth reference unit; wherein the fourth reference unit is located in the previous frame of the frame where the current processing unit is located.
38. The method of claim 2, wherein: The first inter-frame prediction enabling flag is used to determine whether dependencies between different frames are allowed in the point cloud sequence parameter set; The first entropy continuity enabling flag is used to determine whether the reference entropy coding probability model is allowed to be used in the point cloud sequence parameter set; The first intra-frame entropy continuous enabling flag is used to determine whether the reference entropy coding probability model within the frame is allowed to be used in the point cloud sequence parameter set; The first inter-frame entropy continuity enabling flag is used to determine whether the reference entropy coding probability models of different frames are allowed to be used in the point cloud sequence parameter set.
39. The method of claim 13, wherein: The second inter-frame prediction enabling flag is used to determine whether dependencies between different frames are allowed in a geometry coding parameter set; The second entropy continuous enabling flag is used to determine whether the reference entropy coding probability model is allowed to be used in the geometry coding parameter set; The second inter-frame entropy continuity enabling flag is used to determine whether the reference entropy coding probability model of different frames is allowed to be used in the geometric coding parameter set; The second intra-frame entropy continuity enabling flag is used to determine whether the reference entropy coding probability model within the frame is allowed to be used in the geometric coding parameter set.
40. The method of claim 34, wherein: The third inter-frame prediction enabling flag is used to determine whether dependencies between different frames are allowed in the geometry block header information; The third entropy continuous enabling flag is used to determine whether the reference entropy coding probability model is allowed to be used in the geometry block header information; The third inter-frame prediction enabling flag is used to determine whether the reference entropy coding probability model of different frames is allowed to be used in the geometry block header information; The third inter-frame entropy continuous mode identifier is used to determine the source of the entropy coding probability model of the current processing unit.
41. The method according to any one of claims 35 to 37, wherein: Initializing the probability model corresponding to the current processing unit includes: The probability value corresponding to the probability model is assigned a value to complete the initialization operation.
42. A point cloud encoding method, applied to an encoder, the method comprising: Determine first identification information corresponding to the current processing unit, and write the first identification information into the bitstream; wherein the first identification information is identification information corresponding to the point cloud sequence parameter set; Determine, according to the first identification information, second identification information corresponding to the current processing unit, and write the second identification information into a bitstream; wherein the second identification information is identification information corresponding to a geometric coding parameter set; A probability model is determined based on the second identification information, and a predicted value of the current processing unit is obtained according to the probability model.
43. The method of claim 42, wherein: The first identification information includes a first entropy continuous enable flag, a first inter-frame prediction enable flag, a first intra-frame entropy continuous enable flag, and a first inter-frame entropy continuous enable flag; The determining first identification information corresponding to the current processing unit and writing the first identification information into the bitstream includes: Determining the first entropy continuous enable flag and the first inter-frame prediction enable flag, and writing the first entropy continuous enable flag and the first inter-frame prediction enable flag into a bitstream; If the value of the first entropy continuous enabling flag is a first value, determining the first intra-frame entropy continuous enabling flag, and writing the first intra-frame entropy continuous enabling flag into the bitstream; If the value of the first entropy continuity enable flag is a first value, and the value of the first inter-frame prediction enable flag is a second value, the first inter-frame entropy continuity enable flag is determined, and the first inter-frame entropy continuity enable flag is written into the bitstream.
44. The method of claim 43, wherein: The first identification information further includes a first reordering identification, and the method further includes: The first reordering identifier is determined, and the first reordering identifier is written into a bitstream.
45. The method of claim 44, wherein: The method further comprises: If the value of the first entropy continuity enabling flag is the third value, the first intra-frame entropy continuity enabling flag is not written into the bitstream.
46. The method of claim 45, wherein: The method further comprises: If the value of the first entropy continuity enabling flag is the third value, or the value of the first inter-frame prediction enabling flag is the fourth value, the first inter-frame entropy continuity enabling flag is not written into the bitstream.
47. The method of claim 44, wherein: The second identification information includes a second inter-frame prediction enable flag and a second entropy continuous enable flag; and determining the second identification information corresponding to the current processing unit according to the first identification information includes: determining the second inter-frame prediction enabling flag according to the first inter-frame prediction enabling flag; The second entropy continuity enable flag is determined according to the first entropy continuity enable flag.
48. The method of claim 47, wherein: The determining the second inter-frame prediction enable flag according to the first inter-frame prediction enable flag includes: If the value of the first inter-frame prediction enable flag is the second value, the second inter-frame prediction enable flag is determined.
49. The method of claim 47, wherein: The method further comprises: If the value of the first inter-frame prediction enabling flag is the fourth value, the second inter-frame prediction enabling flag is not written into the bitstream.
50. The method of claim 47, wherein: The determining the second entropy continuous enabling flag according to the first entropy continuous enabling flag includes: If the value of the first entropy continuous enabling flag is a first value, the second entropy continuous enabling flag is determined.
51. The method of claim 50, wherein: The method further comprises: If the value of the first entropy continuity enabling flag is the third value, the second entropy continuity enabling flag is not written into the bitstream.
52. The method of claim 51, wherein: The method further comprises: If the value of the first inter-frame prediction enable flag is the fourth value, or the value of the first entropy continuity enable flag is the third value, the second inter-frame entropy continuity enable flag is not written into the bitstream.
53. The method of claim 51, wherein: The second identification information further includes a second intra-frame entropy continuous enabling flag, and the method further includes: If the value of the second entropy continuous enabling flag is the fifth value, determining the second intra-frame entropy continuous enabling flag; If the value of the second entropy continuous enabling flag is the sixth value, the second intra-frame entropy continuous enabling flag is not written into the bitstream.
54. The method of claim 51, wherein: The second identification information further includes a second inter-frame entropy continuous enabling flag, and the method further includes: If the value of the second entropy continuity enable flag is the fifth value, and the value of the second inter-frame prediction enable flag is the seventh value, determining the second inter-frame entropy continuity enable flag, and writing the second inter-frame entropy continuity enable flag into the bitstream; If the value of the second entropy continuity enabling flag is the sixth value, or the value of the second inter-frame prediction enabling flag is the eighth value, the second inter-frame entropy continuity enabling flag is not written into the bitstream.
55. The method of claim 54, wherein: The determining of the probability model based on the second identification information includes: Determining third identification information corresponding to the current processing unit according to the second identification information; wherein the third identification information is identification information corresponding to the geometry block header information; The probability model corresponding to the current processing unit is determined according to the third identification information.
56. The method of claim 54, wherein: The third identification information includes a third inter-frame prediction enabling flag, and determining the third identification information corresponding to the current processing unit according to the second identification information includes: If the value of the second inter-frame prediction enable flag is the seventh value, the third inter-frame prediction enable flag is determined.
57. The method of claim 56, wherein: The method further comprises: If the value of the second inter-frame prediction enabling flag is the eighth value, the third inter-frame prediction enabling flag is not written into the bitstream.
58. The method of claim 57, wherein: The method further comprises: If the value of the second inter-frame entropy continuity enabling flag is the ninth value, the third inter-frame prediction enabling flag is not written into the bitstream.
59. The method of claim 58, wherein: The third identification information further includes a third entropy continuous enable flag and a third inter-frame entropy continuous mode flag, and determining the third identification information corresponding to the current processing unit according to the second identification information includes: If the value of the second entropy continuity enabling flag is the fifth value, the third entropy continuity enabling flag and the third inter-frame entropy continuity mode flag are determined.
60. The method of claim 59, wherein: The method further comprises: If the value of the second entropy continuity enabling flag is the sixth value, the third entropy continuity enabling flag and the third inter-frame entropy continuity mode flag are not written into the bitstream.
61. The method of claim 60, wherein: The determining, according to the third identification information, a probability model corresponding to the current processing unit includes: The probability model corresponding to the current processing unit is determined according to the third inter-frame entropy continuous mode identifier.
62. The method of claim 61, wherein: The determining, according to the third identification information, a probability model corresponding to the current processing unit includes: If the value of the third entropy continuous enabling flag is the tenth value, the index value of the current processing unit is determined, and the probability model corresponding to the current processing unit is determined according to the index value of the current processing unit.
63. The method of claim 62, wherein: The method further comprises: If the value of the third entropy continuity enabling flag is the eleventh value, the third inter-frame entropy continuity mode flag is not written into the bitstream.
64. The method of claim 62, wherein: The determining, according to the index value of the current processing unit, a probability model corresponding to the current processing unit includes: Determining the third inter-frame entropy continuous mode identifier based on the index value of the current processing unit; The probability model corresponding to the current processing unit is determined according to the third inter-frame entropy continuous mode identifier.
65. The method of claim 64, wherein: The determining the third inter-frame entropy continuous mode identifier based on the index value of the current processing unit includes: If the index value of the current processing unit is the twelfth value, and the third inter-frame prediction enable flag is the thirteenth value, the third inter-frame entropy continuous mode flag is determined.
66. The method of claim 65, wherein: The method further comprises: If the index value of the current processing unit is not the twelfth value, the third inter-frame entropy continuous mode identifier is determined.
67. The method of claim 66, wherein: The method further comprises: If the index value of the current processing unit is the twelfth value, and the third inter-frame prediction enable flag is not the thirteenth value, the third inter-frame entropy continuous mode flag is not written into the bitstream.
68. The method of claim 67, wherein: The method further comprises: The value of the third inter-frame entropy continuous mode identifier is determined to be the fourteenth value.
69. The method of claim 57, wherein: The method further comprises: Determine the first inter-frame prediction enabling flag, and write the first inter-frame prediction enabling flag into a bitstream; If the value of the first inter-frame prediction enabling flag is the second information, the first entropy continuity enabling flag is not written into the bitstream.
70. The method of claim 69, wherein: The determining, according to the first identification information, second identification information corresponding to the current processing unit includes: If the value of the first entropy continuous enable flag is the first value, and the value of the second inter-frame prediction enable flag is the seventh value, then determining the second entropy continuous enable flag Continue to enable flag.
71. The method of claim 70, wherein: The method further comprises: If the value of the first entropy continuity enabling flag is the third value, or the value of the second inter-frame prediction enabling flag is the eighth value, the second entropy continuity enabling flag is not written into the bitstream.
72. The method of claim 59, wherein: The determining, according to the second identification information, the third identification information corresponding to the current processing unit includes: If the value of the second inter-frame entropy continuity enabling flag is the fifteenth value, determining the third inter-frame prediction enabling flag; If the value of the second inter-frame entropy continuity enabling flag is the ninth value, the third inter-frame prediction enabling flag is not written into the bitstream.
73. The method of claim 72, wherein: The determining, according to the second identification information, the third identification information corresponding to the current processing unit includes: If the value of the second entropy continuous enabling flag is the fifth value, and the value of the second inter-frame entropy continuous enabling flag is the fifteenth value, determining the third entropy continuous enabling flag; If the value of the second entropy continuity enabling flag is the sixth value, or the value of the second inter-frame entropy continuity enabling flag is the ninth value, the third entropy continuity enabling flag is not written into the bitstream.
74. The method of claim 73, wherein: The method further comprises: If the value of the third entropy continuity enable flag is the tenth value, and the value of the third inter-frame prediction enable flag is the thirteenth value, determining the third inter-frame entropy continuity mode flag; The probability model corresponding to the current processing unit is determined according to the third inter-frame entropy continuous mode identifier.
75. The method of claim 74, wherein: The method further comprises: If the value of the third entropy continuity enable flag is the eleventh value, or the value of the third inter-frame prediction enable flag is the sixteenth value, the third inter-frame entropy continuity mode flag is not written into the bitstream.
76. The method of claim 61, wherein: The determining, according to the third inter-frame entropy continuous mode identifier, a probability model corresponding to the current processing unit includes: If the value of the third inter-frame entropy continuous mode identifier is the fourteenth value, initializing the probability model corresponding to the current processing unit; If the value of the third inter-frame entropy continuous mode identifier is the seventeenth value, determining the probability model corresponding to the current processing unit according to the probability model corresponding to the first reference unit; wherein the first reference unit and the current processing unit belong to the same frame; If the value of the third inter-frame entropy continuous mode identifier is the eighteenth value, the probability model corresponding to the current processing unit is determined according to the probability model corresponding to the second reference unit; wherein the second reference unit is located in the previous frame of the frame where the current processing unit is located.
77. The method of claim 64, wherein: The determining, according to the third inter-frame entropy continuous mode identifier, a probability model corresponding to the current processing unit includes: If the value of the third inter-frame entropy continuous mode identifier is the fourteenth value, initializing the probability model corresponding to the current processing unit; If the value of the third inter-frame entropy continuous mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined based on the probability model corresponding to the third reference unit; wherein the third reference unit is the previous processing unit of the current processing unit; and the third reference unit and the current processing unit are the same frame or different frames.
78. The method of claim 74, wherein: The determining, according to the third inter-frame entropy continuous mode identifier, a probability model corresponding to the current processing unit includes: If the value of the third inter-frame entropy continuous mode identifier is the fourteenth value, initializing the probability model corresponding to the current processing unit; If the value of the third inter-frame entropy continuous mode identifier is the seventeenth value, the probability model corresponding to the current processing unit is determined according to the probability model corresponding to the fourth reference unit; wherein the fourth reference unit is located in the previous frame of the frame where the current processing unit is located.
79. The method of claim 43, wherein: The first inter-frame prediction enabling flag is used to determine whether dependencies between different frames are allowed in the point cloud sequence parameter set; The first entropy continuity enabling flag is used to determine whether the reference entropy coding probability model is allowed to be used in the point cloud sequence parameter set; The first intra-frame entropy continuous enabling flag is used to determine whether the reference entropy coding probability model within the frame is allowed to be used in the point cloud sequence parameter set; The first inter-frame entropy continuity enabling flag is used to determine whether the reference entropy coding probability models of different frames are allowed to be used in the point cloud sequence parameter set.
80. The method of claim 54, wherein: The second inter-frame prediction enabling flag is used to determine whether dependencies between different frames are allowed in a geometry coding parameter set; The second entropy continuous enabling flag is used to determine whether the reference entropy coding probability model is allowed to be used in the geometry coding parameter set; The second inter-frame entropy continuity enabling flag is used to determine whether the reference entropy coding probability model of different frames is allowed to be used in the geometric coding parameter set; The second intra-frame entropy continuous enabling flag is used to determine whether the reference entropy coding probability model within the frame is allowed to be used in the geometric coding parameter set.
81. The method of claim 75, wherein: The third inter-frame prediction enabling flag is used to determine whether dependencies between different frames are allowed in the geometry block header information; The third entropy continuous enabling flag is used to determine whether the reference entropy coding probability model is allowed to be used in the geometry block header information; The third inter-frame prediction enabling flag is used to determine whether the reference entropy coding probability model of different frames is allowed to be used in the geometry block header information; The third inter-frame entropy continuous mode identifier is used to determine the source of the entropy coding probability model of the current processing unit.
82. The method according to any one of claims 76 to 78, wherein: Initializing the probability model corresponding to the current processing unit includes: The probability value corresponding to the probability model is assigned a value to complete the initialization operation.
83. The method of claim 42, wherein: The method further comprises: Determine the first identification information according to the configuration file, and write the first identification information into the bitstream; Determine the second identification information according to the configuration file and the first identification information, and write the second identification information into a bitstream; Determine third identification information according to the second identification information, and write the third identification information into a code stream.
84. An encoder, comprising a first determining unit, wherein: The first determination unit is configured to determine the first identification information corresponding to the current processing unit, and write the first identification information into the bitstream; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determine the second identification information corresponding to the current processing unit, and write the second identification information into the bitstream; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; based on the second identification information, determine the probability model corresponding to the current processing unit, and obtain the predicted value of the current processing unit according to the probability model.
85. 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 used to execute the method as described in any one of claims 42-83 when running the computer program.
86. A decoder, comprising a second determination unit, wherein: The second determination unit is configured to decode the code stream and determine the first identification information corresponding to the current processing unit; wherein the first identification information is the identification information corresponding to the point cloud sequence parameter set; based on the first identification information, determine the second identification information corresponding to the current processing unit; wherein the second identification information is the identification information corresponding to the geometric coding parameter set; determine a probability model based on the second identification information, and obtain a predicted value of the current processing unit according to the probability model.
87. 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 used to execute the method according to any one of claims 1-41 when running the computer program.
88. A code stream, the code stream is generated by bit encoding according to information to be encoded; wherein, The information to be encoded includes at least: first identification information corresponding to the current processing unit, second identification information corresponding to the current processing unit, and third identification information corresponding to the current processing unit.
89. A computer storage medium, wherein: The computer storage medium stores a computer program, which, when executed by a first processor, implements the method according to any one of claims 42 to 83, or, when executed by a second processor, implements the method according to any one of claims 1 to 41.
Citation Information
Patent Citations
Advanced syntax design for geometry-based point cloud compression
CN115336278A
Context modeling of occupancy coding for point cloud coding
US20210383575A1
Point cloud data transmission device, point cloud data transmission method, point cloud data reception device, and point cloud data reception method
US20220337872A1
Encoding method, decoding method, encoder, decoder and storage medium
WO2021056214A1
Three-dimensional data encoding method, three-dimensional data decoding method, three-dimensional data encoding device, and three-dimensional data decoding device
WO2021261458A1
