Point cloud encoding processing method, point cloud decoding processing method, and related device

By adaptively determining coding parameters and performing entropy coding in point cloud coding, the problem of coding redundancy in prediction tree coding technology is solved, and coding efficiency and effectiveness are improved.

WO2024188138A1PCT designated stage expired Publication Date: 2024-09-19VIVO MOBILE COMM CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080422
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-14
Filing Date
2024-03-07
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Existing prediction tree coding technology has coding redundancy in the point cloud coding process, resulting in low coding efficiency.

Method used

The coding parameters are adaptively determined by determining the size of the point cloud block to be encoded, and entropy coding is performed on the prediction residual based on these parameters to reduce coding redundancy and improve coding efficiency.

Benefits of technology

The efficiency of point cloud coding is improved, coding redundancy is reduced, and the effectiveness of coding is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080422_19092024_PF_FP_ABST
    Figure CN2024080422_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computers, and discloses a point cloud encoding processing method, a point cloud decoding processing method, and a related device. The point cloud encoding processing method of embodiments of the present application comprises: on the basis of geometric information of a point cloud, determining a point cloud block to be encoded, and determining a first parameter on the basis of said point cloud block, the first parameter being used for representing the number of bits required for encoding a second parameter, and the second parameter being used for indicating the size of said point cloud block; constructing a prediction tree corresponding to said point cloud block, and determining a prediction residual of a node in the prediction tree; and performing entropy encoding on the prediction residual on the basis of the first parameter to obtain a geometric encoding result.
Need to check novelty before this filing date? Find Prior Art

Description

Point cloud encoding processing method, point cloud decoding processing method and related equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese Patent Application No. 202310243014.5 filed in China on March 14, 2023, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application belongs to the field of computer technology, and specifically relates to a point cloud encoding processing method, a point cloud decoding processing method and related equipment. Background Art

[0004] A point cloud is a representation of a three-dimensional object or scene. It is composed of a set of discrete points that are randomly distributed in space and express the spatial structure and surface properties of the three-dimensional object or scene. In order to accurately reflect the information in space, the number of discrete points required is quite large. In order to reduce the bandwidth occupied by point cloud data storage and transmission, the point cloud data needs to be encoded and compressed. Point cloud data usually consists of geometric information describing the location, such as three-dimensional coordinates (x, y, z), and attribute information of the location, such as color (red (Red, R), green (Green, G), blue (Blue, B)) or reflectivity. In the point cloud coding and compression process, the encoding of geometric information and attribute information is performed separately.

[0005] Currently, in the process of encoding the geometric information of point clouds using prediction tree coding technology, the prediction residual is encoded based on pre-set fixed coding parameters, which results in coding redundancy and low coding efficiency.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a point cloud encoding processing method, a point cloud decoding processing method and related equipment, which can solve the problem of low encoding efficiency.

[0008] In a first aspect, a point cloud encoding processing method is provided, which is executed by an encoding end and includes:

[0009] Determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded;

[0010] Constructing a prediction tree corresponding to the point cloud block to be encoded, and determining the prediction residuals of the nodes in the prediction tree;

[0011] The prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result.

[0012] In a second aspect, a point cloud decoding processing method is provided, which is executed by a decoding end and includes:

[0013] Obtaining a first parameter corresponding to a point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0014] Performing entropy decoding on a geometric coding result corresponding to the to-be-decoded point cloud block based on the first parameter to obtain a prediction residual;

[0015] A geometric reconstruction process is performed based on the prediction residual to obtain geometric information.

[0016] In a third aspect, a point cloud coding processing device is provided, comprising:

[0017] a first determining module, configured to determine a point cloud block to be encoded based on geometric information of the point cloud, and to determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to represent a number of bits required to encode a second parameter, and the second parameter is used to indicate a size of the point cloud block to be encoded;

[0018] A second determination module is used to construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residuals of the nodes in the prediction tree;

[0019] The encoding module is used to perform entropy encoding on the prediction residual based on the first parameter to obtain a geometric encoding result.

[0020] In a fourth aspect, a point cloud decoding and processing device is provided, comprising:

[0021] an acquisition module, configured to acquire a first parameter corresponding to a point cloud block to be decoded, wherein the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0022] a decoding module, configured to perform entropy decoding on a geometric encoding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual;

[0023] The reconstruction module is used to perform geometric reconstruction processing based on the prediction residual to obtain geometric information.

[0024] In a fifth aspect, a terminal is provided, which includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.

[0025] In a sixth aspect, a terminal is provided, comprising a processor and a communication interface, wherein the processor is used to: determine a point cloud block to be encoded based on geometric information of a point cloud, determine a first parameter based on the point cloud block to be encoded, the first parameter being used to characterize the number of bits required to encode a second parameter, and the second parameter being used to indicate the size of the point cloud block to be encoded; construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residuals of the nodes in the prediction tree; perform entropy encoding on the prediction residuals based on the first parameter to obtain a geometric coding result.

[0026] In the seventh aspect, a terminal is provided, including a processor and a communication interface, wherein the processor is used to: obtain a first parameter corresponding to a point cloud block to be decoded, the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded; based on the first parameter, entropy decoding is performed on the geometric encoding result corresponding to the point cloud block to be decoded to obtain a prediction residual; and geometric reconstruction processing is performed based on the prediction residual to obtain geometric information.

[0027] In an eighth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.

[0028] In the ninth aspect, a coding and decoding system is provided, comprising: a coding end device and a decoding end device, wherein the coding end device can be used to execute the steps of the method described in the first aspect, and the decoding end device can be used to execute the steps of the method described in the second aspect.

[0029] In the tenth aspect, a chip is provided, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method as described in the first aspect, or to implement the method as described in the second aspect.

[0030] In the eleventh aspect, a computer program / program product is provided, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.

[0031] In an embodiment of the present application, a point cloud block to be encoded is determined based on the geometric information of the point cloud, and a first parameter is determined based on the point cloud block to be encoded, the first parameter being used to represent the number of bits required to encode a second parameter, and the second parameter being used to indicate the size of the point cloud block to be encoded; a prediction tree corresponding to the point cloud block to be encoded is constructed, and a prediction residual for each node in the prediction tree is determined; and the prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result. In this way, in the process of encoding the geometric information of the point cloud using the prediction tree coding technique, the first parameter is adaptively determined based on the size of the point cloud block to be encoded, and the prediction residual is entropy encoded based on the first parameter, which can reduce coding redundancy and thus improve coding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] FIG1 is a schematic diagram of an AVS encoder framework in the related art;

[0033] FIG2 is a schematic diagram of an AVS decoder framework in the related art;

[0034] FIG3 is a schematic diagram of a prediction tree in the related art;

[0035] FIG4 is a flow chart of a point cloud coding processing method provided in an embodiment of the present application;

[0036] FIG5 is a flowchart of a point cloud decoding processing method provided in an embodiment of the present application;

[0037] FIG6 is a schematic structural diagram of a point cloud coding processing device provided in an embodiment of the present application;

[0038] FIG7 is a schematic structural diagram of a point cloud decoding and processing device provided in an embodiment of the present application;

[0039] FIG8 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0040] FIG9 is a schematic structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the accompanying drawings in the embodiments of this application to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0042] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects, for example, the first object can be one or more. In addition, "or" in this application represents at least one of the connected objects. For example, "A or B" covers three options, namely, Option 1: including A but not including B; Option 2: including B but not including A; Option 3: including both A and B. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0043] The term "indication" in this application can be either a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, the operation to be performed, or the requested result, etc. in the instruction sent; an indirect indication can be understood as the receiver determining the corresponding information based on the instruction sent by the sender, or making a judgment and determining the operation to be performed or the requested result, etc. based on the judgment result.

[0044] The codec end corresponding to the point cloud codec processing method in the embodiment of the present application may be a terminal, which may also be referred to as a terminal device or user equipment (UE). The terminal may be a mobile phone, a tablet personal computer, a laptop computer or a notebook computer, a personal digital assistant (PDA), a handheld computer, a netbook, an ultra-mobile personal computer (UMPC), a mobile internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device (Wearable Device) or a vehicle-mounted device (Pedestrian User Equipment, VUE), a pedestrian terminal (Pedestrian User Equipment, PUE), and other terminal-side devices. Wearable devices include: smart watches, bracelets, headphones, glasses, etc. It should be noted that the specific type of terminal is not limited in the embodiment of the present application.

[0045] For ease of understanding, some of the contents involved in the embodiments of this application are described below:

[0046] As shown in Figures 1 and 2, in the point cloud audio and video coding standard (AVS) codec framework, the geometric information of the point cloud and the attribute information corresponding to each point are encoded separately. The encoding process of the geometric information of the point cloud is as follows: the coordinates of the geometric information are transformed so that all the point clouds are contained in a bounding box. The geometric information of the point cloud is then quantized. This step of quantization mainly plays a role in scaling. Due to the quantization rounding, the geometric information of some points is the same. The parameters are used to decide whether to remove duplicate points. The process of quantization and removal of duplicate points belongs to the preprocessing process. Divide the three-dimensional space where the bounding box is located into several The non-overlapping coding macroblocks of different sizes are used, and each macroblock is used as the basic coding unit. Different geometric coding methods can be used in each macroblock according to its characteristics.

[0047] In related technologies, there are two geometric coding methods: octree coding, which is suitable for dense point clouds; and prediction tree coding, which is suitable for sparse point clouds. If prediction tree coding is selected for the current macroblock, the point cloud is first Morton sorted (this step is optional). A prediction tree is then constructed for the sorted point cloud. The prediction tree adopts a single-chain structure, as shown in Figure 3. Except for the sole leaf node, each tree node has only one child node. Except for the root node, which is predicted by default, the geometric prediction values ​​of other nodes are provided by their parent nodes. The method for constructing the prediction tree is as follows: an auxiliary KD tree (K-dimensional tree) is constructed using the points to be encoded. To reduce the complexity of the construction, the encoder can control the number of nodes in the tree. First, the root node is selected. The KD tree then searches for the point closest to the root node as the root node's only child node, and this child node is removed from the KD tree. The KD tree then searches for the child node's nearest neighbor as its child node using the same method. This process is repeated to complete the construction of the entire prediction tree, resulting in a single-chain tree. The KD tree is a binary tree where each node is a k-dimensional point. Since each node in the prediction tree has only one child node and one prediction mode, the entire prediction tree can be fully expressed by simply entropy encoding the geometric position residual of each point in the bitstream, thus completing geometric coding. After geometric coding is complete, the geometric information is reconstructed to obtain a geometrically reconstructed point cloud, which is used for recoloring during attribute encoding.

[0048] Attribute encoding mainly targets color and reflectance information. First, the parameters are used to determine whether to perform color space conversion. If color space conversion is performed, the color information is converted from the RGB (red, green, blue) color space to the YUV (Y represents brightness (Luminance or Luma), and U and V represent chrominance (Chroma)) color space. Then, the original point cloud is used to recolor the geometrically reconstructed point cloud so that the unencoded attribute information corresponds to the reconstructed geometric information. In color information encoding, after sorting the point cloud using the Morton code, the geometric spatial relationship is used to search for the nearest neighbors of the predicted point, and the reconstructed attribute values ​​of the found neighbors are used to predict the predicted point to obtain the predicted attribute value. Then, the actual attribute value and the predicted attribute value are differentiated to obtain the prediction residual. Finally, the prediction residual is quantized and encoded to generate a binary code stream.

[0049] The point cloud encoding processing method, point cloud decoding processing method and related equipment provided in the embodiments of the present application are described in detail below with reference to some embodiments and their application scenarios in combination with the accompanying drawings.

[0050] Referring to FIG. 4 , FIG. 4 is a flowchart of a point cloud coding processing method provided in an embodiment of the present application, which can be applied to an encoding end. As shown in FIG. 4 , the point cloud coding processing method includes the following steps:

[0051] Step 101: determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded.

[0052] The point cloud block to be encoded can be a coding macroblock, which is a basic coding unit. The point cloud can be divided into a bounding box, and the three-dimensional space where the bounding box is located is divided into several non-overlapping coding macroblocks, and the divided coding macroblocks are used as the point cloud block to be encoded. For example, the process of determining the point cloud block to be encoded based on the geometric information of the point cloud can be as follows: coordinate transformation is performed on the geometric information so that all the point clouds are contained in a bounding box, and the three-dimensional space where the bounding box is located is divided into several The non-overlapping coding macroblocks of different sizes are used as the point cloud blocks to be encoded.

[0053] In addition, the second parameter may characterize the bit depth of the side length of the point cloud block to be encoded. The bit depth of the side length of the point cloud block to be encoded may refer to the number of bits required to represent the side length of the point cloud block to be encoded. For example, the second parameter may characterize the bit depth of the longest side length of the point cloud block to be encoded; or, the second parameter may include a first sub-parameter, a second sub-parameter, and a third sub-parameter, wherein the first sub-parameter represents the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be encoded in the third direction. For example, the point cloud block to be encoded is a cuboid, and the bit depth of the cuboid in the length direction is 32, the bit depth in the width direction is 15, and the bit depth in the height direction is 8. The second parameter may be 32, or the second parameter may include 32, 15, and 8.

[0054] It should be noted that the first parameter can be the minimum number of bits required to encode the second parameter, or can be described as the number of bits required to represent the second parameter. Taking the second parameter as 32 as an example, the number of bits required to encode the second parameter is 6, and the first parameter is 6. Taking the second parameters as 32, 15, and 8 as an example, the number of bits required to encode the second parameter is 6, 4, and 4, respectively, and the first parameters include 6, 4, and 4.

[0055] Step 102: construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residuals of the nodes in the prediction tree.

[0056] Among them, a KD tree can be constructed based on the points in the point cloud block to be encoded, and the root node is selected. The point closest to the root node is searched in the constructed KD tree as the only child node of the root node, and the child node is removed from the KD tree at the same time; then the nearest neighbor point of the child node is searched in the KD tree as its child node according to the same method; and so on, the construction of a single-link tree is realized, and the constructed single-link tree is the prediction tree corresponding to the point cloud block to be encoded.

[0057] In addition, determining the prediction residual of the node in the prediction tree may be, determining the prediction residual of each node in the prediction tree; performing entropy coding on the prediction residual based on the first parameter may be, performing entropy coding on the prediction residual of each node based on the first parameter, thereby obtaining the geometric coding result of each node. When calculating the prediction residual of the node, except for the root node, the prediction residual of each node in the prediction tree is calculated in the same way. For example, the prediction residual of a node is the difference between the geometric position coordinates of the node and the geometric position coordinates of the node before the node. The prediction residual of the root node can be the difference between the geometric position coordinates of the root node and a first preset value. The first preset value can be 0, or it can also be other preset values.

[0058] Step 103: Perform entropy coding on the prediction residual based on the first parameter to obtain a geometric coding result.

[0059] Among them, entropy encoding the prediction residual based on the first parameter to obtain a geometric coding result may include: performing a shift operation on the absolute value of the prediction residual to obtain a first value; determining the target number of coding bits required to encode the first value; encoding the target number of coding bits using the first parameter as the number of coding bits to obtain a first coding sub-result; encoding the first value based on the target number of coding bits to obtain a second coding sub-result; performing a remainder operation on the absolute value of the prediction residual to obtain a second value; encoding the second value to obtain a third coding sub-result; encoding the third value to obtain a fourth coding sub-result, and the third value is used to indicate whether the prediction residual is greater than zero; wherein the geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

[0060] In an embodiment of the present application, a point cloud block to be encoded is determined based on the geometric information of the point cloud, and a first parameter is determined based on the point cloud block to be encoded, the first parameter being used to represent the number of bits required to encode a second parameter, and the second parameter being used to indicate the size of the point cloud block to be encoded; a prediction tree corresponding to the point cloud block to be encoded is constructed, and a prediction residual for each node in the prediction tree is determined; and the prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result. In this way, in the process of encoding the geometric information of the point cloud using the prediction tree coding technique, the first parameter is adaptively determined based on the size of the point cloud block to be encoded, and the prediction residual is entropy encoded based on the first parameter, which can reduce coding redundancy and thus improve coding efficiency.

[0061] Optionally, performing entropy encoding on the prediction residual based on the first parameter includes:

[0062] Performing a shift operation on the absolute value of the prediction residual to obtain a first value;

[0063] determining a target number of encoding bits required to encode the first value;

[0064] Encoding the target number of encoding bits using the first parameter as the number of encoding bits to obtain a first encoding sub-result;

[0065] The geometric coding result includes the first coding sub-result.

[0066] The absolute value of the prediction residual is shifted to obtain the first value, which can be obtained by right shifting the value to be shifted corresponding to the absolute value of the prediction residual. The value to be shifted can be the absolute value of the prediction residual, or it can be the difference between the absolute value of the prediction residual and a second preset value. The second preset value can be 1, or it can be other pre-set values. For example, the first value ResHalf is: ResHalf = absRes-1>>1, and absRes is the absolute value of the prediction residual.

[0067] In addition, the number of coding bits can be understood as the number of coding bits. The target number of coding bits can be the minimum number of coding bits required to encode the first value. For example, the first value is 2 32 , the target encoding bit number is 32. Taking the first parameter as 6 as an example, the first encoding sub-result is: 100000.

[0068] It should be noted that the number of coding bits required to encode the first value is less than or equal to the number of coding bits required to encode the absolute value of the prediction residual, the number of coding bits required to encode the absolute value of the prediction residual is less than or equal to the number of bits required to encode the size of the point cloud block to be encoded, and the second parameter can represent the bit depth of the side length of the point cloud block to be encoded. Therefore, the number of coding bits required to encode the first value (i.e., the target coding bit number) is less than or equal to the second parameter, so that the number of bits required to encode the target coding bit number is less than or equal to the number of bits required to encode the second parameter (i.e., the first parameter). Encoding the target coding bit number using the first parameter as the coding bit number can meet the encoding requirements for the target coding bit number, and can greatly reduce coding redundancy and improve coding efficiency.

[0069] In this embodiment, a shift operation is performed on the absolute value of the prediction residual to obtain a first value; a target number of coding bits required to encode the first value is determined; the target number of coding bits is encoded using the first parameter as the number of coding bits to obtain a first encoding sub-result; wherein the geometric encoding result includes the first encoding sub-result. Thus, encoding the target number of coding bits using the first parameter adaptively determined by the size of the point cloud block to be encoded as the number of coding bits can reduce coding redundancy and improve coding efficiency compared to encoding the target number of coding bits using a preset fixed coding parameter.

[0070] Optionally, the performing entropy encoding on the prediction residual based on the first parameter further includes:

[0071] Encode the first value based on the target number of encoding bits to obtain a second encoding sub-result;

[0072] Performing a remainder operation on the absolute value of the prediction residual to obtain a second value;

[0073] Encoding the second value to obtain a third encoding sub-result;

[0074] encoding the third value to obtain a fourth encoding sub-result, wherein the third value is used to indicate whether the prediction residual is greater than zero;

[0075] The geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

[0076] The second value is obtained by performing a modulo operation on the absolute value of the prediction residual and performing a modulo operation on the absolute value of the prediction residual and 2. For example, the second value ResRemainder is: ResRemainder=absRes%2.

[0077] In addition, the third value is used to indicate whether the prediction residual is greater than zero, so that the positive and negative signs of the prediction residual can be encoded by encoding the third value.

[0078] It should be noted that a flag may be used to indicate whether the prediction residual is 0, and the flag may be transmitted to the decoding end.

[0079] In this embodiment, the first value is encoded based on the target number of coding bits to obtain a second coding sub-result; the absolute value of the prediction residual is subjected to a modulo operation to obtain a second value; the second value is encoded to obtain a third coding sub-result; the third value is encoded to obtain a fourth coding sub-result, and the third value is used to indicate whether the prediction residual is greater than zero; wherein the geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result, thereby enabling entropy coding of the prediction residual.

[0080] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter, and a third sub-parameter, the first sub-parameter representing the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter representing the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter representing the bit depth of the point cloud block to be encoded in the third direction;

[0081] The first parameter includes a fourth sub-parameter, a fifth sub-parameter, and a sixth sub-parameter, the fourth sub-parameter indicating the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicating the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicating the number of bits required to encode the third sub-parameter;

[0082] The entropy encoding the prediction residual based on the first parameter includes:

[0083] Performing entropy coding on the prediction residual in the first direction based on the fourth sub-parameter;

[0084] Performing entropy encoding on the prediction residual in the second direction based on the fifth sub-parameter;

[0085] Entropy encoding is performed on the prediction residual in the third direction based on the sixth sub-parameter.

[0086] Among them, the first direction, the second direction and the third direction can be the directions of the three coordinate axes of the three-dimensional space where the point cloud is located; or they can be the length direction, width direction and height direction of the point cloud block to be encoded. Taking the first direction, the second direction and the third direction as the directions of the three coordinate axes (i.e., the X, Y and Z axes) of the three-dimensional space where the point cloud is located as an example, the bit depth of the point cloud block to be encoded in the first direction can refer to the bit depth of the side length of the point cloud block to be encoded in the first direction, that is, the number of bits required to represent the side length of the point cloud block to be encoded in the first direction; the bit depth of the point cloud block to be encoded in the second direction can refer to the bit depth of the side length of the point cloud block to be encoded in the second direction, that is, the number of bits required to represent the side length of the point cloud block to be encoded in the second direction; the bit depth of the point cloud block to be encoded in the third direction can refer to the bit depth of the side length of the point cloud block to be encoded in the third direction, that is, the number of bits required to represent the side length of the point cloud block to be encoded in the third direction.

[0087] In addition, the prediction residual of the node may include the prediction residual in the first direction, the prediction residual in the second direction and the prediction residual in the third direction. Taking the first direction as the X-axis direction, the second direction as the Y-axis direction, and the third direction as the Z-axis direction as an example, the prediction residual of the node may include the prediction residual in the X-axis direction, the prediction residual in the Y-axis direction and the prediction residual in the Z-axis direction. The first sub-parameter represents the bit depth of the point cloud block to be encoded in the X-axis direction, the second sub-parameter represents the bit depth of the point cloud block to be encoded in the Y-axis direction, and the third sub-parameter represents the bit depth of the point cloud block to be encoded in the Z-axis direction, so that the fourth sub-parameter, the fifth sub-parameter and the sixth sub-parameter can be used to perform entropy encoding on the prediction residuals in the X-axis direction, the Y-axis direction and the Z-axis direction respectively.

[0088] In this embodiment, the second parameter includes a first sub-parameter, a second sub-parameter, and a third sub-parameter, and the first parameter includes a fourth sub-parameter, a fifth sub-parameter, and a sixth sub-parameter. Entropy encoding is performed on the prediction residual in the first direction based on the fourth sub-parameter; entropy encoding is performed on the prediction residual in the second direction based on the fifth sub-parameter; and entropy encoding is performed on the prediction residual in the third direction based on the sixth sub-parameter. In this way, entropy encoding can be performed on the prediction residual in each direction of the nodes of the point cloud block to be encoded, depending on the bit depth of the point cloud block in each direction, thereby reducing coding redundancy in each direction and improving coding efficiency.

[0089] Optionally, after performing entropy coding on the prediction residual based on the first parameter to obtain a geometric coding result, the method further includes:

[0090] A geometry code stream is sent to a decoding end, where the geometry code stream includes the geometry coding result and the first parameter.

[0091] It should be noted that the first parameter can be transmitted from the encoding end to the decoding end, or can be obtained by the decoding end through point cloud bit depth calculation without being written into the code stream and transmitted to the decoding end.

[0092] In this implementation, a geometry code stream is sent to a decoding end, where the geometry code stream includes the geometry coding result and the first parameter, so that the decoding end can decode the prediction residual using the first parameter carried in the geometry code stream.

[0093] Optionally, determining the first parameter based on the point cloud block to be encoded includes:

[0094] When the longest side length of the point cloud block to be encoded is less than or equal to a threshold, a first parameter is determined based on the point cloud block to be encoded.

[0095] The threshold can be set to 2 32 , or can be set to 2 40 , or can be set to 2 50 , etc. This embodiment does not limit the threshold, which can be preset. If the longest side length of the point cloud block to be encoded is less than or equal to the threshold, it can be understood that there is an upper limit on the bit depth of the longest side length of the point cloud block to be encoded. When the longest side length of the point cloud block to be encoded is greater than the threshold, it can be considered to exceed the upper limit of the bit depth of the supported encoding point cloud, and in this case, it can be not encoded.

[0096] It should be noted that in the related art, the AVS encoding platform does not specify an upper limit on the bit depth of the supported encoded point cloud. Therefore, if the bit depth of the point cloud block to be encoded is greater than 31, the existing prediction tree coding technology still uses a fixed 5-bit to encode the minimum number of encoding bits required for ResHalf, which may result in insufficient bits and cause normal encoding and decoding. This embodiment limits the bit depth of the longest side length of the point cloud block to be encoded, and uses the first parameter adaptively determined by the size of the point cloud block to be encoded as the number of encoding bits to encode the minimum number of encoding bits required for encoding ResHalf, thereby achieving normal encoding and decoding.

[0097] It should be noted that the embodiments of the present application relate to the prediction tree entropy coding part in the AVS encoder framework.

[0098] In the related art, during the AVS encoding process, the process of encoding the prediction residual of the node in the prediction tree corresponding to the geometric information is as follows:

[0099] The prediction residual value of the node in the prediction tree is recorded as Res i [k], k = 0, 1, 2 represents the corresponding geometric position coordinates X, Y, Z; i represents the number of points, i = 0, 1, ..., N-1, N is the number of nodes in the point cloud block to be encoded. i-1 With P i ) is the prediction residual between:

[0100] For Res i [k], whose absolute value is defined as absRes i [k].

[0101] The absolute value of the prediction residual absRes i The encoding method of [k] is as follows:

[0102] (1) Determine the current absRes i [k] is zero. If it is zero, a flag bit is used to indicate it;

[0103] (2) If absRes i If [k] is non-zero, then calculate: ResHalf i [k]=absRes i [k]-1>>1,ResRemainder i [k]=absRes i [k]%2;

[0104] Among them, “>>” is the right shift operator, and “%” is the remainder operator.

[0105] (3) Calculate the code ResHalf iThe minimum number of coding bits required B i [k];

[0106] (4) Design context model for B i [k](b4b3b2b1b0) is encoded using a fixed 5-bit code B i [k], design the relevant context model ctxNumBits[ctxIdx] for B i The number of bits of [k] is encoded:

[0107] ctxIdx=0, encoding b0;

[0108] ctxIdx=1+b0, encoding b1;

[0109] ctxIdx=3+b1, encoding b2;

[0110] ctxIdx=5+b2+b1*2, encoding b3;

[0111] ctxIdx=9, encoding b4;

[0112] According to the number of bits B i [k], bit-by-bit encoding ResHalf i [k]; Recode ResRemainder i [k].

[0113] For the prediction residual Res i [k] is encoded.

[0114] It should be noted that in the related art, when the prediction tree coding technology encodes the absolute value of the residual, a fixed 5-bit bit is used to encode ResHalf. i The minimum number of coding bits required B i [k], for smaller point cloud blocks to be encoded, encoding B i [k] The number of bits required is less than 5 bits. If a fixed 5 bits is used for encoding, there will be a waste of bits, resulting in coding redundancy, and there will also be redundant occupancy in the use of the context model.

[0115] In the embodiment of the present application, when encoding and decoding based on the prediction tree, the encoding ResHalf is adaptively calculated according to the current point cloud block size. i The number of coding bits required B i The bit depth of [k] can improve coding efficiency and reduce the redundant occupancy of the context model.

[0116] As a specific embodiment, the point cloud encoding processing method performed by the encoding end may include the following process:

[0117] Step (11): First, set an upper limit for the side length (or bit depth) of the current point cloud block to be encoded, and use the parameter MaxLCUDimLog2 to represent it. Then, based on the size of the current point cloud block to be encoded, obtain its bit depth in three directions, calculate the number of bits required to represent the bit depth, and use the parameter Maxnumbits[k] to represent it, where k = 0, 1, 2 represents the corresponding geometric position X, Y, Z dimensions. The Maxnumbits[k] parameter is passed as an identifier to the decoder.

[0118] Step (12): Perform Morton sorting on the points in the current point cloud block to be encoded (this step is not necessary), and construct a prediction tree for the sorted point cloud. After the construction is completed, predict each point and obtain its prediction residual, which is recorded as Res i [k], k=0,1,2 represents the corresponding geometric position coordinates X,Y,Z; i represents the number of points, i=0,1,…,N-1, N is the number of points in the point cloud block to be encoded. i-1 With P i ) is the prediction residual between:

[0119] Among them, P i is the geometric position coordinate of point i, P i-1 is the geometric position coordinate of point i-1.

[0120] For Res i [k], whose absolute value is defined as absRes i [k].

[0121] Step (13): Absolute value of prediction residual absRes i The encoding method of [k] is as follows:

[0122] (a) Determine the current absRes i [k] is zero. If it is zero, a flag bit is used to indicate it;

[0123] (b) If absRes i If [k] is non-zero, then calculate: ResHalf i [k]=absRes i [k]>>1,ResRemainder i [k]=absRes i [k]%2;

[0124] Among them, “>>” is the right shift operator, and “%” is the remainder operator.

[0125] (c) Calculate the code ResHalf i The minimum number of coding bits required Bi [k];

[0126] (d) Design context model for B i [k] is encoded, and the required number of bits is Maxnumbits[k]. The partially related context model ctxNumBits[ctxIdx] is designed for B i [k] bits b0b1...b n To encode:

[0127] ctxIdx=0, encoding b0;

[0128] ctxIdx=1+b0, encoding b1;

[0129] ctxIdx=3+b1, encoding b2;

[0130] ctxIdx=5+b2+b1*2, encoding b3;

[0131] ctxIdx=9, encoding b4, b5, ..., b n ;

[0132] Among them, n-1 is B i The number of bits in [k].

[0133] According to the number of bits B i , bit-by-bit encoding ResHalf i [k]; Recode ResRemainder i [k];

[0134] Step (14): For the prediction residual Res i [k] is encoded.

[0135] Repeat the above steps (11) to (14) to perform entropy coding on the prediction residual of the geometric position of each point until the last point is coded, at which point the geometric coding ends.

[0136] Referring to FIG5 , FIG5 is a flowchart of a point cloud decoding processing method provided in an embodiment of the present application, which can be applied to a decoding end. As shown in FIG5 , the point cloud decoding processing method includes the following steps:

[0137] Step 201: Obtain a first parameter corresponding to a point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0138] Step 202: Perform entropy decoding on the geometric coding result corresponding to the to-be-decoded point cloud block based on the first parameter to obtain a prediction residual.

[0139] Step 203: Perform geometric reconstruction based on the prediction residual to obtain geometric information.

[0140] Optionally, the geometric coding result includes a first coding sub-result, a second coding sub-result, a third coding sub-result and a fourth coding sub-result;

[0141] The entropy decoding of the geometric coding result corresponding to the to-be-decoded point cloud block based on the first parameter to obtain a prediction residual includes:

[0142] Decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits;

[0143] Decoding the second encoding sub-result based on the target number of encoding bits to obtain a first value;

[0144] Decoding the third encoding sub-result to obtain a second value, where the second value is a value obtained by performing a modulo operation on an absolute value of a prediction residual;

[0145] decoding the fourth encoding sub-result to obtain a third value, where the third value is used to indicate whether the prediction residual is greater than zero;

[0146] The prediction residual is determined based on the first value, the second value, and the third value.

[0147] Optionally, decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits includes:

[0148] The first encoding sub-result is decoded using the first parameter as the decoding bit number to obtain a target coding bit number, where the target coding bit number is the coding bit number required to encode the first value, and the first value is obtained by performing a shift operation on the absolute value of the prediction residual.

[0149] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter, and a third sub-parameter, the first sub-parameter representing the bit depth of the point cloud block to be decoded in the first direction, the second sub-parameter representing the bit depth of the point cloud block to be decoded in the second direction, and the third sub-parameter representing the bit depth of the point cloud block to be decoded in the third direction;

[0150] The first parameter includes a fourth sub-parameter, a fifth sub-parameter, and a sixth sub-parameter, the fourth sub-parameter indicating the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicating the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicating the number of bits required to encode the third sub-parameter;

[0151] The entropy decoding of the geometric encoding result corresponding to the to-be-decoded point cloud block based on the first parameter includes:

[0152] Performing entropy decoding on a geometric encoding result of the point cloud block to be decoded in the first direction based on the fourth sub-parameter;

[0153] Performing entropy decoding on a geometric encoding result of the point cloud block to be decoded in the second direction based on the fifth sub-parameter;

[0154] Based on the sixth sub-parameter, entropy decoding is performed on the geometric encoding result of the point cloud block to be decoded in the third direction.

[0155] Optionally, obtaining a first parameter corresponding to the point cloud block to be decoded includes:

[0156] A geometric code stream sent by a decoding end is received, where the geometric code stream includes a geometric coding result corresponding to a point cloud block to be decoded and a first parameter.

[0157] Optionally, obtaining a first parameter corresponding to the point cloud block to be decoded includes:

[0158] When the longest side length of the point cloud block to be decoded is less than or equal to the threshold, a first parameter corresponding to the point cloud block to be decoded is obtained.

[0159] It should be noted that this embodiment is an implementation of the decoding side corresponding to the embodiment shown in Figure 4. Its specific implementation can refer to the relevant description of the embodiment shown in Figure 4. In order to avoid repetition, this embodiment will not be repeated, and the same beneficial effects can still be achieved.

[0160] As a specific embodiment, the point cloud decoding processing method performed by the decoding end includes the following process:

[0161] Step (21): The size (or bit depth) of the point cloud block to be decoded must be within the set MaxLCUDimLog2 parameter. The Maxnumbits[k] parameter is parsed from the geometry stream.

[0162] Step (22): Parse the prediction residual information from the geometry stream as follows:

[0163] (a) Analyze the absolute value of the current prediction residual absRes i [k] is zero, if it is zero, the prediction residual Res i [k] is 0; k = 0, 1, 2 represents the corresponding geometric position coordinates X, Y, Z; i represents the number of points, i = 0, 1, ..., N-1, N is the number of points in the point cloud block to be decoded.

[0164] (b) If absRes i[k] is non-zero, and the parameter Maxnumbits[k] indicates the parsing of ResHalf i The minimum number of coding bits required B i [k]:

[0165] In the parsing process, the relevant context model ctxNumBits[ctxIdx] needs to be used for B i [k] bits b0b1...b n To decode:

[0166] ctxIdx=0,decode b0;

[0167] ctxIdx=1+b0, decode b1;

[0168] ctxIdx=3+b1, decode b2;

[0169] ctxIdx=5+b2+b1*2, decode b3;

[0170] ctxIdx=9, decode b4, b5, ..., b n ;

[0171] Among them, n-1 is B i The number of bits in [k].

[0172] (c) According to the number of bits B i , decode ResHalf bit by bit i [k]; then decode ResRemainder i [k];

[0173] Step (23): For the prediction residual Res i [k] is decoded.

[0174] Repeat the above steps (21) to (23) to perform entropy decoding and coordinate compensation on the prediction residual of the geometric position of each point until the last point is decoded. At this time, the geometric information is reconstructed and the decoding is completed.

[0175] This embodiment proposes an entropy encoding and decoding method based on a prediction tree. When encoding and decoding based on the prediction tree, the encoding ResHalf is adaptively calculated according to the current point cloud block size. i The number of coding bits required B i The bit depth of [k] can improve coding efficiency and reduce the redundant occupancy of the context model.

[0176] It should be noted that the point cloud coding processing method provided in the embodiments of the present application can be executed by a point cloud coding processing device, or a control module in the point cloud coding processing device for executing the point cloud coding processing method. In the embodiments of the present application, the point cloud coding processing device provided in the embodiments of the present application is described by taking the point cloud coding processing method executed by the point cloud coding processing device as an example.

[0177] Please refer to FIG6 , which is a structural diagram of a point cloud coding processing device provided in an embodiment of the present application. As shown in FIG6 , the point cloud coding processing device 300 includes:

[0178] A first determining module 301 is configured to determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded;

[0179] A second determination module 302 is configured to construct a prediction tree corresponding to the point cloud block to be encoded, and determine prediction residuals of nodes in the prediction tree;

[0180] The encoding module 303 is configured to perform entropy encoding on the prediction residual based on the first parameter to obtain a geometric encoding result.

[0181] Optionally, the encoding module is specifically configured to:

[0182] Performing a shift operation on the absolute value of the prediction residual to obtain a first value;

[0183] determining a target number of encoding bits required to encode the first value;

[0184] Encoding the target number of encoding bits using the first parameter as the number of encoding bits to obtain a first encoding sub-result;

[0185] The geometric coding result includes the first coding sub-result.

[0186] Optionally, the encoding module is further configured to:

[0187] Encode the first value based on the target number of encoding bits to obtain a second encoding sub-result;

[0188] Performing a remainder operation on the absolute value of the prediction residual to obtain a second value;

[0189] Encoding the second value to obtain a third encoding sub-result;

[0190] encoding the third value to obtain a fourth encoding sub-result, wherein the third value is used to indicate whether the prediction residual is greater than zero;

[0191] The geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

[0192] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter, and a third sub-parameter, the first sub-parameter representing the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter representing the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter representing the bit depth of the point cloud block to be encoded in the third direction;

[0193] The first parameter includes a fourth sub-parameter, a fifth sub-parameter, and a sixth sub-parameter, the fourth sub-parameter indicating the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicating the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicating the number of bits required to encode the third sub-parameter;

[0194] The entropy encoding the prediction residual based on the first parameter includes:

[0195] Performing entropy coding on the prediction residual in the first direction based on the fourth sub-parameter;

[0196] Performing entropy encoding on the prediction residual in the second direction based on the fifth sub-parameter;

[0197] Entropy encoding is performed on the prediction residual in the third direction based on the sixth sub-parameter.

[0198] Optionally, the device further comprises:

[0199] The sending module is used to send a geometric code stream to a decoding end, where the geometric code stream includes the geometric coding result and the first parameter.

[0200] Optionally, the first determining module is specifically configured to:

[0201] When the longest side length of the point cloud block to be encoded is less than or equal to a threshold, a first parameter is determined based on the point cloud block to be encoded.

[0202] The point cloud coding processing device 300 in the embodiment of the present application can reduce coding redundancy, thereby improving coding efficiency.

[0203] The point cloud coding processing device in the embodiment of the present application can be a device, a device or electronic device with an operating system, or a component, integrated circuit, or chip in a terminal. The device or electronic device can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal can include but is not limited to the types of terminals listed above, and the non-mobile terminal can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0204] The point cloud coding processing device provided in the embodiment of the present application can implement the various processes implemented in the method embodiment of Figure 4 and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0205] It should be noted that the point cloud decoding processing method provided in the embodiments of the present application can be executed by a point cloud decoding processing device, or a control module in the point cloud decoding processing device for executing the point cloud decoding processing method. In the embodiments of the present application, the point cloud decoding processing device provided in the embodiments of the present application is described using the method for executing point cloud decoding processing by the point cloud decoding processing device as an example.

[0206] Please refer to FIG. 7 , which is a structural diagram of a point cloud decoding processing device provided in an embodiment of the present application. As shown in FIG. 7 , the point cloud decoding processing device 400 includes:

[0207] An acquisition module 401 is configured to acquire a first parameter corresponding to a point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0208] A decoding module 402 is configured to perform entropy decoding on a geometric coding result corresponding to the to-be-decoded point cloud block based on the first parameter to obtain a prediction residual;

[0209] The reconstruction module 403 is configured to perform geometric reconstruction based on the prediction residual to obtain geometric information.

[0210] Optionally, the geometric coding result includes a first coding sub-result, a second coding sub-result, a third coding sub-result and a fourth coding sub-result;

[0211] The decoding module includes:

[0212] a first decoding unit, configured to decode the first encoding sub-result based on the first parameter to obtain a target number of encoding bits;

[0213] a second decoding unit, configured to decode the second encoding sub-result based on the target number of encoding bits to obtain a first value;

[0214] a third decoding unit, configured to decode the third encoding sub-result to obtain a second value, where the second value is a value obtained by performing a modulo operation on an absolute value of a prediction residual;

[0215] a fourth decoding unit, configured to decode the fourth encoding sub-result to obtain a third value, wherein the third value is used to indicate whether the prediction residual is greater than zero;

[0216] A determining unit is configured to determine the prediction residual based on the first value, the second value, and the third value.

[0217] Optionally, the first decoding unit is specifically configured to:

[0218] The first encoding sub-result is decoded using the first parameter as the decoding bit number to obtain a target coding bit number, where the target coding bit number is the coding bit number required to encode the first value, and the first value is obtained by performing a shift operation on the absolute value of the prediction residual.

[0219] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter, and a third sub-parameter, the first sub-parameter representing the bit depth of the point cloud block to be decoded in the first direction, the second sub-parameter representing the bit depth of the point cloud block to be decoded in the second direction, and the third sub-parameter representing the bit depth of the point cloud block to be decoded in the third direction;

[0220] The first parameter includes a fourth sub-parameter, a fifth sub-parameter, and a sixth sub-parameter, the fourth sub-parameter indicating the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicating the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicating the number of bits required to encode the third sub-parameter;

[0221] The decoding module is specifically used for:

[0222] Performing entropy decoding on a geometric encoding result of the point cloud block to be decoded in the first direction based on the fourth sub-parameter;

[0223] Performing entropy decoding on a geometric encoding result of the point cloud block to be decoded in the second direction based on the fifth sub-parameter;

[0224] Based on the sixth sub-parameter, entropy decoding is performed on the geometric encoding result of the point cloud block to be decoded in the third direction.

[0225] Optionally, the acquisition module is specifically configured to:

[0226] A geometric code stream sent by a decoding end is received, where the geometric code stream includes a geometric coding result corresponding to a point cloud block to be decoded and a first parameter.

[0227] Optionally, the acquisition module is specifically configured to:

[0228] When the longest side length of the point cloud block to be decoded is less than or equal to the threshold, a first parameter corresponding to the point cloud block to be decoded is obtained.

[0229] The point cloud decoding processing device in the embodiment of the present application can be a device, a device or electronic device with an operating system, or a component, integrated circuit, or chip in a terminal. The device or electronic device can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal can include but is not limited to the types of terminals listed above, and the non-mobile terminal can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0230] The point cloud decoding and processing device provided in the embodiment of the present application can implement the various processes implemented in the method embodiment of Figure 5 and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0231] Optionally, as shown in FIG8 , an embodiment of the present application further provides a communication device 500, comprising a processor 501 and a memory 502. The memory 502 stores a program or instruction that can be run on the processor 501. For example, when the communication device 500 is an encoding end device, the program or instruction, when executed by the processor 501, implements the various steps of the above-mentioned point cloud encoding processing method embodiment and can achieve the same technical effect. When the communication device 500 is a decoding end device, the program or instruction, when executed by the processor 501, implements the various steps of the above-mentioned point cloud decoding processing method embodiment and can achieve the same technical effect. To avoid repetition, they are not described here.

[0232] The present application also provides a terminal comprising a processor and a communication interface, wherein the processor is configured to: determine a point cloud block to be encoded based on geometric information of a point cloud; determine a first parameter based on the point cloud block to be encoded, wherein the first parameter represents the number of bits required to encode a second parameter, and the second parameter indicates the size of the point cloud block to be encoded; construct a prediction tree corresponding to the point cloud block to be encoded, and determine prediction residuals for nodes in the prediction tree; and perform entropy encoding on the prediction residuals based on the first parameter to obtain a geometric encoding result. Alternatively, the processor is configured to: obtain a first parameter corresponding to a point cloud block to be decoded, wherein the first parameter represents the number of bits required to encode the second parameter, and the second parameter indicates the size of the point cloud block to be decoded; perform entropy decoding on the geometric encoding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual; and perform geometric reconstruction processing based on the prediction residual to obtain geometric information. This terminal embodiment corresponds to the aforementioned point cloud encoding method or point cloud decoding method embodiment, and each implementation process and implementation method of the aforementioned point cloud encoding method or point cloud decoding method embodiment are applicable to this terminal embodiment and can achieve the same technical effects. Specifically, FIG9 is a schematic diagram of the hardware structure of a terminal implementing an embodiment of the present application.

[0233] The terminal 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609 and at least some of the components of the processor 610.

[0234] Those skilled in the art will appreciate that the terminal 600 may also include a power supply (such as a battery) to power various components. The power supply may be logically connected to the processor 610 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The terminal structure shown in FIG9 does not limit the terminal. The terminal may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.

[0235] It should be understood that in an embodiment of the present application, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0236] In the embodiment of the present application, after receiving downlink data from a network-side device, the radio frequency unit 601 may transmit the data to the processor 610 for processing. Furthermore, the radio frequency unit 601 may send uplink data to the network-side device. Typically, the radio frequency unit 601 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like.

[0237] The memory 609 can be used to store software programs or instructions and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0238] Processor 610 may include one or more processing units. Optionally, processor 610 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 610.

[0239] Wherein, when the terminal is an encoding terminal:

[0240] The processor 610 is configured to:

[0241] Determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded;

[0242] Constructing a prediction tree corresponding to the point cloud block to be encoded, and determining the prediction residuals of the nodes in the prediction tree;

[0243] The prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result.

[0244] Optionally, the processor 610 is configured to:

[0245] Performing a shift operation on the absolute value of the prediction residual to obtain a first value;

[0246] determining a target number of encoding bits required to encode the first value;

[0247] Encoding the target number of encoding bits using the first parameter as the number of encoding bits to obtain a first encoding sub-result;

[0248] The geometric coding result includes the first coding sub-result.

[0249] Optionally, the processor 610 is configured to:

[0250] Encode the first value based on the target number of encoding bits to obtain a second encoding sub-result;

[0251] Performing a remainder operation on the absolute value of the prediction residual to obtain a second value;

[0252] Encoding the second value to obtain a third encoding sub-result;

[0253] encoding the third value to obtain a fourth encoding sub-result, wherein the third value is used to indicate whether the prediction residual is greater than zero;

[0254] The geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

[0255] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter, and a third sub-parameter, the first sub-parameter representing the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter representing the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter representing the bit depth of the point cloud block to be encoded in the third direction;

[0256] The first parameter includes a fourth sub-parameter, a fifth sub-parameter, and a sixth sub-parameter, the fourth sub-parameter indicating the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicating the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicating the number of bits required to encode the third sub-parameter;

[0257] The processor 610 is configured to:

[0258] Performing entropy coding on the prediction residual in the first direction based on the fourth sub-parameter;

[0259] Performing entropy encoding on the prediction residual in the second direction based on the fifth sub-parameter;

[0260] Entropy encoding is performed on the prediction residual in the third direction based on the sixth sub-parameter.

[0261] Optionally, the processor 610 is configured to:

[0262] A geometry code stream is sent to a decoding end, where the geometry code stream includes the geometry coding result and the first parameter.

[0263] Optionally, the processor 610 is configured to:

[0264] When the longest side length of the point cloud block to be encoded is less than or equal to a threshold, a first parameter is determined based on the point cloud block to be encoded.

[0265] Wherein, when the terminal is a decoding terminal:

[0266] The processor 610 is configured to:

[0267] Obtaining a first parameter corresponding to a point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded;

[0268] Performing entropy decoding on a geometric coding result corresponding to the to-be-decoded point cloud block based on the first parameter to obtain a prediction residual;

[0269] A geometric reconstruction process is performed based on the prediction residual to obtain geometric information.

[0270] Optionally, the geometric coding result includes a first coding sub-result, a second coding sub-result, a third coding sub-result and a fourth coding sub-result;

[0271] The processor 610 is specifically configured to:

[0272] Decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits;

[0273] Decoding the second encoding sub-result based on the target number of encoding bits to obtain a first value;

[0274] Decoding the third encoding sub-result to obtain a second value, where the second value is a value obtained by performing a modulo operation on an absolute value of a prediction residual;

[0275] decoding the fourth encoding sub-result to obtain a third value, where the third value is used to indicate whether the prediction residual is greater than zero;

[0276] The prediction residual is determined based on the first value, the second value, and the third value.

[0277] Optionally, the processor 610 is specifically configured to:

[0278] The first encoding sub-result is decoded using the first parameter as the decoding bit number to obtain a target coding bit number, where the target coding bit number is the coding bit number required to encode the first value, and the first value is obtained by performing a shift operation on the absolute value of the prediction residual.

[0279] Optionally, the second parameter includes a first sub-parameter, a second sub-parameter, and a third sub-parameter, the first sub-parameter representing the bit depth of the point cloud block to be decoded in the first direction, the second sub-parameter representing the bit depth of the point cloud block to be decoded in the second direction, and the third sub-parameter representing the bit depth of the point cloud block to be decoded in the third direction;

[0280] The first parameter includes a fourth sub-parameter, a fifth sub-parameter, and a sixth sub-parameter, the fourth sub-parameter indicating the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicating the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicating the number of bits required to encode the third sub-parameter;

[0281] The processor 610 is specifically configured to:

[0282] Performing entropy decoding on a geometric encoding result of the point cloud block to be decoded in the first direction based on the fourth sub-parameter;

[0283] Performing entropy decoding on a geometric encoding result of the point cloud block to be decoded in the second direction based on the fifth sub-parameter;

[0284] Based on the sixth sub-parameter, entropy decoding is performed on the geometric encoding result of the point cloud block to be decoded in the third direction.

[0285] Optionally, the processor 610 is specifically configured to:

[0286] A geometric code stream sent by a decoding end is received, where the geometric code stream includes a geometric coding result corresponding to a point cloud block to be decoded and a first parameter.

[0287] Optionally, the processor 610 is specifically configured to:

[0288] When the longest side length of the point cloud block to be decoded is less than or equal to the threshold, a first parameter corresponding to the point cloud block to be decoded is obtained.

[0289] Specifically, the terminal of the embodiment of the present application also includes: instructions or programs stored in the memory 609 and executable on the processor 610. The processor 610 calls the instructions or programs in the memory 609 to execute the methods of the modules shown in FIG6 or FIG7 and achieve the same technical effect. To avoid repetition, they will not be elaborated here.

[0290] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned point cloud encoding processing method embodiment are implemented, or when the program or instruction is executed by a processor, the various processes of the above-mentioned point cloud decoding processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0291] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. In some examples, the readable storage medium may be a non-transitory readable storage medium.

[0292] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned point cloud encoding processing method embodiment, or to implement the various processes of the above-mentioned point cloud decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0293] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0294] An embodiment of the present application further provides a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned point cloud encoding processing method or point cloud decoding processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0295] An embodiment of the present application also provides a coding and decoding system, including: an encoding end device and a decoding end device, wherein the encoding end device can be used to execute the steps of the point cloud encoding processing method as described above, and the decoding end device can be used to execute the steps of the point cloud decoding processing method as described above.

[0296] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0297] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general-purpose hardware platform, or of course, by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.) and includes a number of instructions for enabling a terminal or network-side device to execute the methods described in each embodiment of the present application.

[0298] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of this application and the scope of protection of the claims. These implementation methods are all within the protection of this application.

Claims

1. A point cloud coding processing method, executed by an encoding end, comprising: Determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded; Constructing a prediction tree corresponding to the point cloud block to be encoded, and determining the prediction residuals of the nodes in the prediction tree; The prediction residual is entropy encoded based on the first parameter to obtain a geometric encoding result.

2. The method according to claim 1, wherein: The entropy encoding the prediction residual based on the first parameter includes: Performing a shift operation on the absolute value of the prediction residual to obtain a first value; determining a target number of encoding bits required to encode the first value; Encoding the target number of encoding bits using the first parameter as the number of encoding bits to obtain a first encoding sub-result; Among them, the geometric coding result includes the first coding sub-result.

3. The method according to claim 2, wherein: The entropy encoding the prediction residual based on the first parameter further includes: Encode the first value based on the target number of encoding bits to obtain a second encoding sub-result; Performing a modulo operation on the absolute value of the prediction residual to obtain a second value; Encoding the second value to obtain a third encoding sub-result; encoding the third value to obtain a fourth encoding sub-result, wherein the third value is used to indicate whether the prediction residual is greater than zero; The geometric coding result includes the first coding sub-result, the second coding sub-result, the third coding sub-result and the fourth coding sub-result.

4. The method according to any one of claims 1 to 3, wherein: The second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be encoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be encoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be encoded in the third direction; The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter; The entropy encoding the prediction residual based on the first parameter includes: Performing entropy encoding on the prediction residual in the first direction based on the fourth sub-parameter; Performing entropy encoding on the prediction residual in the second direction based on the fifth sub-parameter; The prediction residual in the third direction is entropy encoded based on the sixth sub-parameter.

5. The method according to any one of claims 1 to 4, wherein: After performing entropy coding on the prediction residual based on the first parameter to obtain a geometric coding result, the method further includes: A geometry code stream is sent to a decoding end, where the geometry code stream includes the geometry encoding result and the first parameter.

6. The method according to any one of claims 1 to 5, wherein: The determining the first parameter based on the point cloud block to be encoded includes: When the longest side length of the point cloud block to be encoded is less than or equal to a threshold, a first parameter is determined based on the point cloud block to be encoded.

7. A point cloud decoding processing method, executed by a decoding end, comprising: Acquire a first parameter corresponding to the point cloud block to be decoded, where the first parameter is used to represent the number of bits required to encode the second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded; Performing entropy decoding on the geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual; A geometric reconstruction process is performed based on the prediction residual to obtain geometric information.

8. The method according to claim 7, wherein: The geometric coding result includes a first coding sub-result, a second coding sub-result, a third coding sub-result and a fourth coding sub-result; The entropy decoding of the geometric coding result corresponding to the to-be-decoded point cloud block based on the first parameter to obtain a prediction residual includes: Decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits; Decoding the second encoding sub-result based on the target number of encoding bits to obtain a first value; Decoding the third encoding sub-result to obtain a second value, where the second value is a value obtained by performing a modulo operation on an absolute value of a prediction residual; Decoding the fourth encoding sub-result to obtain a third value, where the third value is used to indicate whether the prediction residual is greater than zero; The prediction residual is determined based on the first value, the second value, and the third value.

9. The method according to claim 8, wherein: The decoding the first encoding sub-result based on the first parameter to obtain a target number of encoding bits includes: The first encoding sub-result is decoded using the first parameter as the decoding bit number to obtain a target coding bit number, where the target coding bit number is the coding bit number required to encode the first value, and the first value is obtained by performing a shift operation on the absolute value of the prediction residual.

10. The method according to any one of claims 7 to 9, wherein: The second parameter includes a first sub-parameter, a second sub-parameter and a third sub-parameter, the first sub-parameter represents the bit depth of the point cloud block to be decoded in the first direction, the second sub-parameter represents the bit depth of the point cloud block to be decoded in the second direction, and the third sub-parameter represents the bit depth of the point cloud block to be decoded in the third direction; The first parameter includes a fourth sub-parameter, a fifth sub-parameter and a sixth sub-parameter, the fourth sub-parameter indicates the number of bits required to encode the first sub-parameter, the fifth sub-parameter indicates the number of bits required to encode the second sub-parameter, and the sixth sub-parameter indicates the number of bits required to encode the third sub-parameter; The entropy decoding of the geometric encoding result corresponding to the point cloud block to be decoded based on the first parameter includes: Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the first direction based on the fourth sub-parameter; Performing entropy decoding on the geometric encoding result of the point cloud block to be decoded in the second direction based on the fifth sub-parameter; Based on the sixth sub-parameter, entropy decoding is performed on the geometric encoding result of the point cloud block to be decoded in the third direction.

11. The method according to any one of claims 7 to 10, wherein: The obtaining of the first parameter corresponding to the point cloud block to be decoded includes: A geometric code stream sent by a decoding end is received, where the geometric code stream includes a geometric encoding result and a first parameter corresponding to a point cloud block to be decoded.

12. The method according to any one of claims 7 to 10, wherein: The obtaining of the first parameter corresponding to the point cloud block to be decoded includes: When the longest side length of the point cloud block to be decoded is less than or equal to a threshold, a first parameter corresponding to the point cloud block to be decoded is obtained.

13. A point cloud coding processing device, comprising: A first determination module, used to determine a point cloud block to be encoded based on geometric information of the point cloud, and determine a first parameter based on the point cloud block to be encoded, wherein the first parameter is used to characterize the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be encoded; A second determination module is used to construct a prediction tree corresponding to the point cloud block to be encoded, and determine the prediction residuals of the nodes in the prediction tree; The encoding module is used to perform entropy encoding on the prediction residual based on the first parameter to obtain a geometric encoding result.

14. A point cloud decoding processing device, comprising: An acquisition module, used to acquire a first parameter corresponding to a point cloud block to be decoded, wherein the first parameter is used to represent the number of bits required to encode a second parameter, and the second parameter is used to indicate the size of the point cloud block to be decoded; A decoding module, configured to perform entropy decoding on a geometric coding result corresponding to the point cloud block to be decoded based on the first parameter to obtain a prediction residual; The reconstruction module is used to perform geometric reconstruction processing based on the prediction residual to obtain geometric information.

15. A terminal, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the point cloud encoding processing method as described in any one of claims 1 to 6; or, the program or instruction, when executed by the processor, implements the steps of the point cloud decoding processing method as described in any one of claims 7 to 12.

16. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the point cloud encoding processing method as described in any one of claims 1 to 6, or, when executed by a processor, implements the steps of the point cloud decoding processing method as described in any one of claims 7 to 12.

17. A coding and decoding system, comprising: An encoding end device and a decoding end device, wherein the encoding end device can be used to execute the steps of the point cloud encoding processing method as described in any one of claims 1 to 6, and the decoding end device can be used to execute the steps of the point cloud decoding processing method as described in any one of claims 7 to 12.

18. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the point cloud encoding processing method as described in any one of claims 1 to 6; or, to implement the steps of the point cloud decoding processing method as described in any one of claims 7 to 12.

19. A computer program / program product, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the steps of the point cloud encoding processing method as described in any one of claims 1 to 6; or, implement the steps of the point cloud decoding processing method as described in any one of claims 7 to 12.

Citation Information

Patent Citations

  • Three-dimensional data encoding method, three-dimensional data decoding method, three-dimensional data encoding device, and three-dimensional data decoding device

    CN115335868A

  • Point cloud coding method, point cloud decoding method and terminal

    CN115474051A

  • Apparatus and method for processing point cloud data

    WO2021201384A1

  • Entropy encoding / decoding methods and apparatuses

    WO2022258009A1