Coding method, decoding method, coders, decoders, bit stream, and storage medium

By optimizing the binarization and mapping of binary values based on symbol frequency, the method addresses inefficiencies in encoding connectivity information, resulting in improved coding efficiency for three-dimensional mesh encoding and decoding.

US20260380047A1Pending Publication Date: 2026-11-26GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/745622
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Filing Date
2026-07-17
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

The existing methods for encoding connectivity information in three-dimensional mesh coding are inefficient, leading to excessive bit usage and limited coding efficiency.

Method used

Implementing a binarization operation on a symbol string to determine a binary value for representing connectivity information, utilizing the characteristic that certain symbols in the symbol string have a higher frequency, and optimizing the mapping of binary values to reduce the number of bits required for encoding and decoding.

Benefits of technology

The proposed method significantly improves the coding efficiency of connectivity information by reducing the number of bits needed for encoding and decoding, enhancing the overall performance of three-dimensional mesh encoding and decoding processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260380047A1-D00000_ABST
    Figure US20260380047A1-D00000_ABST
Patent Text Reader

Abstract

A decoding method applied to a decoder is provided. The decoding method includes: performing an inverse binarization operation on a binary value in a bitstream to determine a symbol string, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and reconstructing the three-dimensional mesh according to the symbol string.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATION

[0001] The present disclosure is a Continuation Application of International Application No. PCT / CN2024 / 073342 filed Jan. 19, 2024, which is incorporated herein by reference in its entirety.TECHNICAL FIELD

[0002] The present application relates to the field of a three-dimensional mesh encoding and decoding technical, and in particular, to an encoding method, a decoding method, an encoder, a decoder, a bitstream, and a storage medium.BACKGROUND

[0003] In video dynamic mesh coding (V-DMC), the connectivity information of the three-dimensional mesh needs to be encoded. How to improve the coding efficiency of the connectivity information is a problem that needs to be solved.SUMMARY

[0004] Embodiments of the present application provide an encoding method, a decoding method, an encoder, a decoder, a bitstream, and a storage medium. Various aspects involved in the present application will be introduced below.

[0005] In a first aspect, a decoding method is provided, which is applied to a decoder and includes: performing an inverse binarization operation on a binary value in a bitstream to determine a symbol string, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and reconstructing the three-dimensional mesh according to the symbol string.

[0006] In a second aspect, an encoding method is provided, which is applied to an encoder and includes: performing a binarization operation on a symbol string to determine a binary value, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and encoding the binary value.

[0007] In a third aspect, a decoder is provided, which includes: a first decoding unit, configured to perform an inverse binarization operation on a binary value in a bitstream to determine a symbol string, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and a second decoding unit, configured to reconstruct the three-dimensional mesh according to the symbol string.

[0008] In a fourth aspect, a decoder is provided, which includes: a memory, configured to store a computer program; and a processor, configured to perform the method according to the first aspect when running the computer program.

[0009] In a fifth aspect, an encoder is provided, which includes: a first encoding unit, configured to perform a binarization operation on a symbol string to determine a binary value, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and a second encoding unit, configured to encode the binary value.

[0010] In a sixth aspect, an encoder is provided, which includes: a memory, configured to store a computer program; and a processor, configured to perform the method according to the second aspect when running the computer program.

[0011] In a seventh aspect, a non-transitory computer-readable storage medium is provided, where the non-transitory computer-readable storage medium has a computer program stored thereon, and when the computer program is executed, the method according to the first aspect or the second aspect is implemented.

[0012] In an eighth aspect, a non-transitory computer-readable storage medium storing a bitstream is provided, where the bitstream is generated by using an encoding method for an encoder, or the bitstream is decoded by using an decoding method for an decoder; where the decoding method is the method according to the first aspect, and the encoding method is the method according to the second aspect.

[0013] In a ninth aspect, a bitstream is provided, which includes a bitstream generated according to the method in the second aspect.BRIEF DESCRIPTION OF THE DRAWINGS

[0014] FIG. 1A is a schematic diagram of a three-dimensional mesh picture.

[0015] FIG. 1B is a partially enlarged view of a three-dimensional mesh picture.

[0016] FIG. 2 is a schematic diagram illustrating connectivity manners of a three-dimensional mesh.

[0017] FIG. 3A is a schematic diagram of a three-dimensional mesh picture.

[0018] FIG. 3B is a schematic diagram of a mesh data storage format.

[0019] FIG. 3C is an attribute map of a three-dimensional mesh picture.

[0020] FIG. 4A is a schematic diagram of a mesh pre-processing procedure.

[0021] FIG. 4B is a schematic diagram illustrating a manner for generating displacement values.

[0022] FIG. 5A is a schematic diagram of an intra encoding method.

[0023] FIG. 5B is a schematic diagram of an intra decoding method.

[0024] FIG. 6A is a schematic diagram of an inter encoding method.

[0025] FIG. 6B is a schematic diagram of an inter decoding method.

[0026] FIG. 7A is a schematic diagram illustrating a connection manner of vertices.

[0027] FIG. 7B is another schematic diagram illustrating a connection manner of vertices.

[0028] FIG. 7C is another schematic diagram illustrating a connection manner of vertices.

[0029] FIG. 7D is another schematic diagram illustrating a connection manner of vertices.

[0030] FIG. 8 is an example diagram illustrating connectivity information of a triangular mesh.

[0031] FIG. 9 is a schematic flowchart of a decoding method provided by the embodiments of the present application.

[0032] FIG. 10 is a schematic flowchart of an encoding method provided by the embodiments of the present application.

[0033] FIG. 11 is a schematic block diagram of a decoder provided by an embodiment of the present application.

[0034] FIG. 12 is a schematic block diagram of a decoder provided by another embodiment of the present application.

[0035] FIG. 13 is a schematic block diagram of an encoder provided by an embodiment of the present application.

[0036] FIG. 14 is a schematic block diagram of an encoder provided by another embodiment of the present application.DETAILED DESCRIPTION

[0037] In order to provide a more detailed understanding of features and technical contents in the embodiments of the present application in more detail, the implementations in of the embodiments of the present application will be described in detail below in conjunction with reference to the accompanying drawings. The accompanying drawings are for reference illustrative purposes only and are not used intended to limit the embodiments of the present application.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by a person skilled in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0039] In “some embodiments” involved in the following description describe a subset of all possible embodiments. But it should be understood that “some embodiments” may refer to the same subset or different subsets of all possible embodiments, and can be combined with each other where no conflict arises.

[0040] It should further be pointed out that the terms “first / second / third” involved in the embodiments of the present application are only used to distinguish similar objects and do not imply a specific order of the objects. It should be understood that “first / second / third” can, where permissible, be interchanged in terms of their specific order or sequence, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described here.

[0041] Generally, three-dimensional animation content is represented by using a keyframe-based method, that is, each frame is a static mesh. Static meshes at different times have the same topological structure but different geometric structures. However, the three-dimensional dynamic mesh represented based on keyframe involves a particularly large data volume. Therefore, how to efficiently store, transmit, and render such a mesh has become a challenge in the development of the three-dimensional dynamic mesh. Furthermore, for different user terminals (e.g., computers, laptops, portable devices and mobile phones), spatial scalability of meshes needs to be supported; and for different network bandwidths (e.g., broadband, narrowband and wireless), quality scalability of meshes needs to be supported. Therefore, three-dimensional dynamic mesh compression is a very critical issue.

[0042] The three-dimensional mesh is the surface of a three-dimensional object composed of a plurality of polygons in space. A polygon can be composed of vertices and edges. FIG. 1A illustrates a three-dimensional mesh picture, and FIG. 1B illustrates a partially enlarged view of the three-dimensional mesh picture. As can be seen from FIGS. 1A and 1B, the mesh surface is typically composed of a plurality of closed polygons.

[0043] The pixels of a two-dimensional picture are regularly distributed, so it is unnecessary to additionally record their geometric information (or position information). However, the vertices in a mesh are randomly and irregularly distributed in three-dimensional space, and the composition manner of polygons needs to be additionally recorded. Therefore, for the three-dimensional mesh, it is necessary to record not only the spatial positions of the vertices in the mesh, but also the connectivity information of the polygons in the mesh, so as to fully represent a mesh picture. As illustrated in FIG. 2, with the same number and positions of vertices, the surfaces formed are completely different due to different connectivity patterns.

[0044] In addition to the above information, since the three-dimensional mesh picture is typically encoded using existing two-dimensional picture / video encoding methods, it is necessary to convert the three-dimensional mesh picture from three-dimensional space to two-dimensional space. In the three-dimensional mesh coding, this conversion process is usually defined by UV coordinates.

[0045] Similar to the two-dimensional picture, each vertex in the three-dimensional mesh may have corresponding attribute information. Typically, the attribute information is the RGB color values, which reflects the color of the object. For the three-dimensional mesh picture, in addition to color, another conventional attribute for each vertex is the reflectance value, which reflects the surface material of the object. The attribute information of the three-dimensional mesh picture may be stored as a two-dimensional picture, and the mapping from two-dimensional to three-dimensional is defined by UV coordinates.

[0046] Therefore, three-dimensional mesh data typically includes three-dimensional geometric position information (x, y, z), a connectivity relationship of triangular faces and the geometric position information, texture coordinates (u, v) and a connectivity relationship of the texture coordinates, and an attribute map. FIG. 3A illustrates a three-dimensional mesh picture, FIG. 3B illustrates a mesh data storage format including the three-dimensional geometric position information, texture coordinates, and connectivity information, and FIG. 3C illustrates the corresponding attribute map.

[0047] Current three-dimensional dynamic mesh compression methods include: spatial-temporal prediction-based methods, which improve compression efficiency by eliminating spatial and temporal correlations; principal component analysis (PCA)-based techniques, which project data into an eigenvector space to concentrate energy; and wavelet-based methods, which support spatial scalability and quality scalability.

[0048] FIG. 4A is a schematic diagram of a pre-processing procedure for two-dimensional curves. FIG. 4B is a schematic diagram illustrating the generation of displacement values. Currently, in the dynamic mesh coding (DMC) of moving picture experts group (MPEG), at the encoder side, a base mesh and displacement values are first generated through pre-processing. The pre-processing of the three-dimensional mesh can be analogized to that of the two-dimensional curve. At the encoder side, there are two main parts: pre-processing and encoding. Firstly, the base mesh and displacement values can be generated through pre-processing. The pre-processing procedure includes: first, downsampling an original mesh to generate a decimated mesh with a significantly reduced number of vertices, also known as a base mesh / fundamental mesh; then, subdividing the decimated mesh by inserting newly generated vertices on its edges to obtain a subdivided mesh, which also referred to as an initial mesh; finally, for each vertex in the subdivided mesh, finding the closest point in the original mesh and calculating the displacement value between these two points. After pre-processing, the decimated mesh and displacement values are input into the encoder to generate a bitstream. Since the subdivided mesh can be automatically generated at the encoder / decoder side as long as the subdivision algorithm and the number of subdivision iterations are determined, after pre-processing, the original mesh only needs to be represented as a simple base mesh and a series of displacement values, which significantly reduce the data volume without affecting reconstruction at the decoder side.

[0049] Current V-DMC coding has two main test conditions: intra encoding / decoding and inter encoding / decoding (low delay, with no RA test environment at present). These two encoding / decoding methods will be introduced in detail below.

[0050] FIG. 5A is a schematic diagram of intra encoding. As illustrated in FIG. 5A, in an intra encoder, a conventional static mesh encoder can be used to encode the decimated mesh, to generate a corresponding bitstream (a compressed base mesh bitstream). Next, the displacement values are updated using the reconstructed decimated mesh. The wavelet transform and quantization is performed on the updated displacement values to obtain displacement values. After image packing and two-dimensional mapping, high efficiency video coding (HEVC) is used to generate a bitstream corresponding to the displacement values (a compressed displacements bitstream). For attribute map encoding, the attribute map is first transformed (texture transfer) based on the difference between reconstructed geometric information and original geometric information, then after padding and color space conversion, it is encoded by a video coder (video coding) to generate an attribute bitstream (a compressed attribute bitstream). FIG. 5B is a schematic diagram of intra decoding. At the decoder side, the base mesh bitstream is decoded to generate a decoded base mesh. The displacement values are processed by HEVC decoding, inverse two-dimensional mapping, inverse quantization, and inverse transform, to generate decoded displacement values. The decoded base mesh and decoded displacement values are then combined to reconstruct the three-dimensional mesh geometry, and the attribute bitstream is decoded by HEVC to generate a reconstructed attribute map.

[0051] FIG. 6A is a schematic diagram of inter encoding. As illustrated in FIG. 6A, at the encoder side, the workflow of the inter encoder is largely the same as that of the intra encoder. Since inter mode is used, for the base mesh part, it is not necessary to encode its connectivity information; only the motion vectors between the vertex geometric coordinates of the current frame and those of the reference frame need to be encoded, the other modules are consistent with those in intra encoding, and a corresponding bitstream of the motion vector (a compressed motion bitstream) is generated. FIG. 6B is a schematic diagram of inter decoding. As illustrated in FIG. 6B, at the decoder side, the motion vector is decoded from the bitstream and combined with the connectivity information of the reference frame to obtain the base mesh, other modules are consistent with those in intra decoding.Common Test Conditions for MPEG DMC1) There are 2 test conditions for MPEG DMC:

[0053] Condition 1: lossless all intra-lossless geometry and lossless attributes.

[0054] condition 2: lossy all intra-lossy geometry and lossy attributes.

[0055] condition 3: lossy random access-lossy geometry and lossy attributes.

[0056] 2) The common test sequences include five categories, that is, Cat1-A, Cat1-B, and Cat1-C, all of which contain geometry and color attribute information.

[0057] Next, the connectivity encoding of the V-DMC base mesh will be introduced in more detail.

[0058] After obtaining the base mesh, the encoder is used to encode the geometric information of the base mesh. The geometric information mainly includes: geometric position information and the connectivity relationship of the geometric position information. The entire encoding procedure follows this order: first, the connectivity relationship is encoded, and then the geometric position information of the vertices is encoded based on the connectivity relationship of the geometric positions. The connectivity information defines the rules for forming faces from points, and the same set of vertices can form entirely different surfaces due to different connectivity information. For example, FIGS. 7A and 7B are composed of vertices 0, 1, 2, and 3, and the connectivity information in FIG. 7A is (0, 1, 2, 3), which forms a square. The connectivity information in FIG. 7B is (0, 2, 1, 3), which forms a butterfly shape. FIG. 7C and FIG. 7D are composed of vertices

[0059] 0, 1, 2, 3, and 4. The connectivity information in FIG. 7C is(0,1,2,3)(2,1,4),and the connectivity information in FIG. 7D is(1,0,3,2)(2,1,4),resulting in the surfaces of the two show different normal directions. For the encoding of the mesh connectivity, the “EdgebreakerCoding” solution is adopted. The EdgeBreaker algorithm defines five symbols, namely {C, L, E, R, S}, and each triangle of the triangular mesh is represented by one of these five symbols, thereby simplifying the representation of the connectivity information of the three-dimensional mesh. The meaning of each symbol is as follows.i. C: None of the triangular faces connected to a current vertex has been encoded.ii. L: A left triangular face connected to the current vertex has been encoded.iii. R: A right triangular face connected to the current vertex has been encoded.iv. S: Neither the left triangular face nor the right triangular face connected to the current vertex has been encoded.

[0064] v. E: Both the left triangular face and the right triangular face connected to the current vertex have been encoded.

[0065] According to certain order, the type of each vertex and the processing order of the vertices are encoded. The decoder restores the geometric connectivity of the mesh according to the processing order and the types of the vertices. For a triangular mesh illustrated in FIG. 8, its connectivity information can be represented as follows:1161711718118221833184418114111041019419551975767198819991910111817111720112012122013132014142021142115152116162117172120

[0066] If the above triangular mesh is not processed in any way, the content to be encoded and decoded would be all the numbers in the connectivity information. However, if it is processed using the EdgeBreaker algorithm, the connectivity information of the triangular mesh in FIG. 8 can be represented as a string of symbols, namely (CCRRRSLCRSERRELCRRRCRRRE), and the final content to be encoded and decoded is this string of symbols.

[0067] For the above five symbols, when fixed-length coding is adopted, three binary bits are required to represent each symbol. To improve the coding efficiency, the characteristic that symbol C has a relatively high frequency in the entire symbol string may be exploited by using only one binary bit to represent symbol C, while the other four symbols are each represented by a distinct three-bit binary code. As an example, a specific binarization method is as follows:

[0068] C: 0

[0069] S: 100

[0070] R: 101

[0071] L: 110

[0072] E: 111

[0073] The binarization process of the connectivity information based on EdgeBreaker has been introduced in detail above. According to the above introduction, in the related art, the connectivity information of a three-dimensional mesh is represented based on the symbol string. However, if the binary value used to represent the symbol string has an excessive number of bits, the coding efficiency of the connectivity information will be limited.

[0074] To address the above issue, the embodiments of the present application provide an encoding method, which includes: performing a binarization operation on a symbol string to determine a binary value, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and encoding the binary value.

[0075] The embodiments of the present application further provide a decoding method, which includes: performing an inverse binarization operation on a binary value in a bitstream to determine a symbol string, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and reconstructing the three-dimensional mesh according to the symbol string.

[0076] In the embodiments of the present application, based on the characteristic of the symbol string (i.e., a symbol encoded following symbol C is not symbol L or symbol E), or by using syntax elements to indicate some symbols, the number of bits of the binary value corresponding to the symbol string is reduced, thereby helping to improve the coding efficiency of the connectivity information.

[0077] The decoding method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0078] FIG. 9 is a flowchart of a decoding method provided by the embodiments of the present application. The method illustrated in FIG. 9 can be performed by a decoder. The decoder may be a decoder that supports V-DMC.

[0079] Referring to FIG. 9, in Step S910, an inverse binarization operation is performed on a binary value in a bitstream to determine a symbol string, where the symbol string is used to represent connectivity information of a three-dimensional mesh.

[0080] The symbol string may be determined based on EdgeBreaker, and the symbol string may be represented by symbols from {C, L, E, R, S}.

[0081] The above connectivity information of the three-dimensional mesh may be referred to as the connectivity information of the triangular faces in the three-dimensional mesh, or as the connectivity information of the vertices in the three-dimensional mesh.

[0082] In Step S920, the three-dimensional mesh is reconstructed according to the symbol string.

[0083] In some implementations, the connectivity information of the three-dimensional mesh (a base mesh) can be determined according to the symbol string, and then the reconstructed mesh of the three-dimensional mesh is determined based on the connectivity information and geometric position information of points.

[0084] The embodiments of the present application impose no specific limitation on the method for performing the inverse binarization operation on the binary value in the bitstream. Three solutions provided by the embodiments of the present application will be introduced in detail below.Solution 1

[0085] In some implementations, Step S910 includes: determining a previous symbol of a current symbol in the symbol string; if the previous symbol is symbol C, performing the inverse binarization operation according to a first mapping relationship between symbols and binary values to determine the current symbol.

[0086] The first mapping relationship does not include any mapping relationship between binary values and symbol L and / or symbol E. In other words, the first mapping relationship may include mapping relationships between binary values and symbol C, symbol S, and symbol R.

[0087] In some implementations, the binary values corresponding to the symbols in the first mapping relationship each have a number of bits less than or equal to 2. Binary values corresponding to different symbols in the first mapping relationship all have the same number of bits, or do not all have the same number of bits. For example, the binary value corresponding to one symbol in the first mapping relationship has a number of bits of 1, while binary values corresponding to symbols other than this symbol may each have a number of bits of 2.

[0088] As an example, a binary value corresponding to symbol C is 0, a binary value corresponding to symbol R is 10, and a binary value corresponding to symbol S is 11.

[0089] As another example, the binary value corresponding to symbol C is 0, the binary value corresponding to symbol R is 11, and the binary value corresponding to symbol S is 10.

[0090] As yet another example, the binary values corresponding to the symbols in the first mapping relationship each have a number of bits of 2.

[0091] As an example, the binary value corresponding to symbol C is 00, the binary value corresponding to symbol R is 10, and the binary value corresponding to symbol S is 11.

[0092] As another example, the binary value corresponding to symbol C is 01, the binary value corresponding to symbol R is 10, and the binary value corresponding to symbol S is 11.

[0093] In Solution 1, the inverse binarization operation can be performed on the binary value according to the above first mapping relationship, thereby transforming the binary value into the corresponding symbol.

[0094] Based on the characteristic that the symbol encoded following symbol C in the symbol string is not symbol L or symbol E, the embodiments of the present application can reduce the number of bits of the binary value corresponding to the symbol encoded following symbol C, thereby helping to improve the coding efficiency of the connectivity information.Solution 2

[0095] In some implementations, Step S910 includes: performing parsing to obtain first flag information, where the first flag information is used to indicate a target symbol having the highest frequency in the symbol string; and performing the inverse binarization operation according to a second mapping relationship between symbols and binary values to determine a current symbol.

[0096] The second mapping relationship may include a mapping relationship between binary values and symbol L and / or symbol E. In other words, the second mapping relationship may include the mapping relationships between binary values and symbol C, symbol L, symbol E, symbol S, and symbol R.

[0097] A binary value corresponding to the target symbol in the second mapping relationship has the minimum number of bits. For example, the binary value corresponding to the target symbol has a number of bits of 1, and binary values corresponding to the other symbols (4 symbols) each have a number of bits of 3.

[0098] For example, if the target symbol is symbol C, the binary value corresponding to symbol C is 0, the binary value corresponding to symbol S is 100, the binary value corresponding to symbol R is 101, the binary value corresponding to symbol L is 110, and the binary value corresponding to symbol E is 111.

[0099] As another example, if the target symbol is symbol R, the binary value corresponding to symbol R is 0, the binary value corresponding to symbol S is 100, the binary value corresponding to symbol C is 101, the binary value corresponding to symbol L is 110, and the binary value corresponding to symbol E is 111.

[0100] As yet another example, if the target symbol is symbol L, the binary value corresponding to symbol L is 0, the binary value corresponding to symbol S is 100, the binary value corresponding to symbol R is 101, the binary value corresponding to symbol C is 110, and the binary value corresponding to symbol E is 111.

[0101] As yet another example, if the target symbol is symbol E, the binary value corresponding to symbol E is 0, the binary value corresponding to symbol S is 100, the binary value corresponding to symbol R is 101, the binary value corresponding to symbol L is 110, and the binary value corresponding to symbol C is 111.

[0102] As yet another example, if the target symbol is symbol S, the binary value corresponding to symbol S is 0, the binary value corresponding to symbol C is 100, the binary value corresponding to symbol R is 101, the binary value corresponding to symbol L is 110, and the binary value corresponding to symbol E is 111.

[0103] At the encoder side, by traversing all symbols in the symbol string, the symbol having the highest frequency in the symbol string is determined as the target symbol, and the first flag information indicating the target symbol is signaled into the bitstream. At the decoder side, the target symbol is determined by the first flag information parsed from the bitstream. Since the target symbol is the symbol having the highest frequency in the symbol string, the binary value corresponding to the target symbol is set to have a smaller number of bits than that of the other symbols, so as to reduce the number of bits of the binary value corresponding to the symbol string, thereby helping to improve the coding efficiency of the connectivity information.

[0104] As previously introduced, the first flag information is used to indicate the target symbol having the highest frequency in the symbol string, where the target symbol may be any one of {C, L, E, R, S}. Therefore, different binary values need to be set in the mapping relationship to represent different target symbols.

[0105] The embodiments of the present application impose no specific limitation on the method for setting the binary value corresponding to the target symbol. In some implementations, a third mapping relationship may be established, in which binary values corresponding to different symbols have the same number of bits. For example, binary values corresponding to different symbols in the third mapping relationship each have a number of bits of 3. For example, the binary value corresponding to target symbol C is 000, the binary value corresponding to target symbol S is 100, the binary value corresponding to target symbol R is 011, the binary value corresponding to target symbol L is 001, and the binary value corresponding to target symbol E is 010.

[0106] In other implementations, a fourth mapping relationship may be established, in which binary values corresponding to different target symbols do not all have the same number of bits. For example, the binary value corresponding to symbol C has a number of bits of 1, and binary values corresponding to symbols other than symbol C each have a number of bits of 3. For example, the binary value corresponding to target symbol C is 0, the binary value corresponding to target symbol S is 100, the binary value corresponding to target symbol R is 101, the binary value corresponding to target symbol L is 110, and the binary value corresponding to target symbol E is 111.Solution 3

[0107] In some implementations, Step S910 includes: performing parsing to obtain second flag information, where the second flag information is used to indicate whether a current symbol is a first symbol; and if the current symbol is not the first symbol, performing the inverse binarization operation according to a fifth mapping relationship between symbols and binary values to determine the current symbol, where the fifth mapping relationship does not include a mapping relationship between the first symbol and binary values.

[0108] The second flag information may include a plurality of pieces of flag information, and the first symbol may include a plurality of symbols. That is, the first symbol may include a plurality of symbols from {C, L, E, R, S}, and the plurality of pieces of flag information respectively indicate whether the current symbol is a corresponding symbol among the plurality of symbols. For example, the first symbol may include symbol C and symbol R, and the plurality of pieces of flag information respectively indicate whether the current symbol is symbol C or symbol R.

[0109] The second flag information may have a plurality of possible values, and different value results may indicate whether it is the first symbol. For example, the value of the second flag information may be 0 or 1.

[0110] As an example, the second flag information may indicate whether the current symbol is symbol C. If the value of the second flag information is 0, it indicates that the current symbol is symbol C; or if the value of the second flag information is 1, it indicates that the current symbol is not symbol C.

[0111] As another example, the second flag information may indicate whether the current symbol is symbol R. If the value of the second flag information is 0, it indicates that the current symbol is symbol R; or if the value of the second flag information is 1, it indicates that the current symbol is not symbol R.

[0112] In the above introduction, the second flag information may indicate a plurality of symbols. Therefore, among {C, L, E, R, S}, symbols other than the symbols indicated by the second flag information may be represented by binary values having a smaller number of bits. In other words, the binary values corresponding to the symbols in the fifth mapping relationship each have a number of bits less than or equal to 2. In this way, the number of bits of the binary value corresponding to the symbol string can be further reduced, thereby helping to improve the coding efficiency of the connectivity information.

[0113] For example, the binary values of the symbols in the fifth mapping relationship each have a number of bits of 2.

[0114] As an example, if the first symbol includes symbol C and symbol R, the binary value corresponding to symbol S may be 00, the binary value corresponding to symbol L may be 01, and the binary value corresponding to symbol E may be 11.

[0115] As another example, the binary values of the symbols in the fifth mapping relationship each have a number of bits of 1 or 2.

[0116] As an example, if the first symbol includes symbol C and symbol R, the binary value corresponding to symbol S may be 0, the binary value corresponding to symbol L may be 10, and the binary value corresponding to symbol E may be 11.

[0117] As another example, if the first symbol includes symbol C and symbol R, the binary value corresponding to symbol S may be 1, the binary value corresponding to symbol L may be 00, and the binary value corresponding to symbol E may be 01.

[0118] In some implementations, Step S910 includes: determining whether a current symbol is a second symbol according to a number of bits of the binary value; and if the current symbol is not the second symbol, performing the inverse binarization operation according to a sixth mapping relationship between symbols and binary values to determine the current symbol, where the sixth mapping relationship does not include a mapping relationship between the second symbol and binary values.

[0119] The binary values corresponding to the symbols in the sixth mapping relationship each have a number of bits less than or equal to 4. For example, the binary values of the symbols in the sixth mapping relationship each have a number of bits of 3 or 4.

[0120] The second symbol may include a plurality of symbols, and the binary value corresponding to each of the plurality of symbols has a number of bits less than or equal to 2. For example, a binary value corresponding to a second symbol has a number of bits of 1 or 2.

[0121] As an example, if the second symbol includes symbol C and symbol R, the binary value corresponding to symbol C is 0, and the binary value corresponding to symbol R is 10, then the binary value corresponding to symbol S may be 110, the binary value corresponding to symbol L may be 1110, and the binary value corresponding to symbol E may be 1111. It should be understood that the above Solution 1, Solution 2, and Solution 3 may be used in combination, or may be used individually, which is not specifically limited in the embodiments of the present application.

[0122] Solution 1 and Solution 3 are tested using relevant test conditions. Taking the lossless compression test environment as an example, Solution 1 can save 0.1% of codewords of the base mesh, and Solution 3 can save 0.1% of the codewords of the base mesh.

[0123] The decoding method provided by the embodiments of the present application has been described in detail above with reference to FIG. 9. The encoding method provided in the embodiments by the present application will be described in detail with reference to FIG. 10. FIG. 10 is a flowchart of an encoding method provided by the embodiments of the present application. The method of FIG. 10 can be performed by an encoder. The encoder may be an encoder that supports V-DMC.

[0124] Referring to FIG. 10, in Step S1010, a binarization operation is performed on a symbol string to determine a binary value, where the symbol string is used to represent connectivity information of a three-dimensional mesh.

[0125] The symbol string may be determined based on EdgeBreaker, and the symbol string may be represented by symbols from {C, L, E, R, S}.

[0126] The above connectivity information of the three-dimensional mesh may be referred to as the connectivity information of triangular faces in the three-dimensional mesh, or as the connectivity information of vertices in the three-dimensional mesh.

[0127] In Step S1020, the binary value is encoded.

[0128] In some implementations, the three-dimensional mesh (a base mesh) may be determined from an initial three-dimensional mesh; then, the symbol string is determined according to the connectivity information of the three-dimensional mesh; subsequently, binarization is performed on the symbol string to determine binary values corresponding to the symbol string, and the binary values are encoded into a bitstream.

[0129] The embodiments of the present application impose no specific limitation on the method for performing binarization operation on the symbol string. Three solutions provided by the embodiments of the present application will be introduced in detail below.Solution 1

[0130] In some implementations, Step S1010 includes: encoding a previous symbol of a current symbol in the symbol string; and if the previous symbol is symbol C, performing the binarization operation on the current symbol according to a first mapping relationship between symbols and binary values.

[0131] The first mapping relationship does not include any mapping relationship between binary values and symbol L and / or symbol E. In other words, the first mapping relationship may include mapping relationships between binary values and symbol C, symbol S, and symbol R.

[0132] In some implementations, the binary values corresponding to the symbols in the first mapping relationship each have a number of bits less than or equal to 2. Binary values corresponding to different symbols in the first mapping relationship all have the same number of bits, or do not all have the same number of bits. For example, the binary value corresponding to one symbol in the first mapping relationship has a number of bits of 1, while binary values corresponding to the other symbols may each have a number of bits of 2.

[0133] As an example, the binary value corresponding to symbol C is 0, the binary value corresponding to symbol R is 10, and the binary value corresponding to symbol S is 11.

[0134] As another example, the binary value corresponding to symbol C is 0, the binary value corresponding to symbol R is 11, and the binary value corresponding to symbol S is 10.

[0135] As yet another example, the binary values corresponding to the symbols in the first mapping relationship each have a number of bits of 2.

[0136] As an example, the binary value corresponding to symbol C is 00, the binary value corresponding to symbol R is 10, and the binary value corresponding to symbol S is 11.

[0137] As another example, the binary value corresponding to symbol C is 01, the binary value corresponding to symbol R is 10, and the binary value corresponding to symbol S is 11.

[0138] In Solution 1, the binarization operation can be performed on the current symbol according to the above first mapping to obtain the binary value corresponding to the current symbol.

[0139] Based on the characteristic that the symbol encoded following symbol C in the symbol string is not symbol L or symbol E, the embodiments of the present application can reduce the number of bits of the binary value corresponding to the symbol encoded following symbol C, thereby helping to improve the coding efficiency of the connectivity information.Solution 2

[0140] In some implementations, Step S1010 includes: determining a target symbol having the highest frequency in the symbol string; and performing the binarization operation on a current symbol according to a second mapping relationship between symbols and binary values to determine the binary value corresponding to the current symbol.

[0141] The second mapping relationship includes a mapping relationship between binary values and symbol L and / or symbol E. In other words, the second mapping relationship may include mapping relationships between binary values and symbol C, symbol L, symbol E, symbol S, and symbol R.

[0142] A binary value corresponding to the target symbol in the second mapping relationship has the minimum number of bits. For example, the binary value corresponding to the target symbol has a number of bits of 1, and binary values corresponding to the other symbols (4 symbols) each have a number of bits of 3.

[0143] For example, if the target symbol is symbol C, the binary value corresponding to symbol C is 0, the binary value corresponding to symbol S is 100, the binary value corresponding to symbol R is 101, the binary value corresponding to symbol L is 110, and the binary value corresponding to symbol E is 111.

[0144] As another example, if the target symbol is symbol R, the binary value corresponding to symbol R is 0, the binary value corresponding to symbol S is 100, the binary value corresponding to symbol C is 101, the binary value corresponding to symbol L is 110, and the binary value corresponding to symbol E is 111.

[0145] As another example, if the target symbol is symbol L, the binary value corresponding to symbol L is 0, the binary value corresponding to symbol S is 100, the binary value corresponding to symbol R is 101, the binary value corresponding to symbol C is 110, and the binary value corresponding to symbol E is 111.

[0146] As another example, if the target symbol is symbol E, the binary value corresponding to symbol E is 0, the binary value corresponding to symbol S is 100, the binary value corresponding to symbol R is 101, the binary value corresponding to symbol L is 110, and the binary value corresponding to symbol C is 111.

[0147] As another example, if the target symbol is symbol S, the binary value corresponding to symbol S is 0, the binary value corresponding to symbol C is 100, the binary value corresponding to symbol R is 101, the binary value corresponding to symbol L is 110, and the binary value corresponding to symbol E is 111.

[0148] At the encoding end, by traversing all symbols in the symbol string, the symbol having the highest frequency in the symbol string is determined as the target symbol, and the first flag information indicating the target symbol is signaled into the bitstream. The binary value corresponding to the target symbol is set to have a smaller number of bits than that of the other symbols, so as to reduce the number of bits of the binary value corresponding to the symbol string, thereby helping to improve the coding efficiency of the connectivity information.

[0149] As previously introduced, the first flag information is used to indicate the target symbol having the highest frequency in the symbol string, where the target symbol may be any one of {C, L, E, R, S}. Therefore, different binary values need to be set in the mapping relationship to represent different target symbols.

[0150] The embodiments of the present application impose no specific limitation on the method for setting the binary value corresponding to the target symbol. In some implementations, a third mapping relationship may be established, in which binary values corresponding to different symbols have the same number of bits. For example, binary values corresponding to different symbols in the third mapping relationship each have a number of bits of 3. For example, the binary value corresponding to target symbol C is 000, the binary value corresponding to target symbol S is 100, the binary value corresponding to target symbol R is 011, the binary value corresponding to target symbol L is 001, and the binary value corresponding to target symbol E is 010.

[0151] In other implementations, a fourth mapping relationship may be established, in which binary values corresponding to different target symbols do not all have the same number of bits. For example, the binary value corresponding to symbol C has a number of bits of 1, and binary values corresponding to symbols other than symbol C each have a number of bits of 3. For example, the binary value corresponding to target symbol C is 0, the binary value corresponding to target symbol S is 100, the binary value corresponding to target symbol R is 101, the binary value corresponding to target symbol L is 110, and the binary value corresponding to target symbol E is 111.Solution 3

[0152] In some implementations, Step S1010 includes: determining whether a current symbol is a first symbol; and if the current symbol is not the first symbol, performing the binarization operation on the current symbol according to a fifth mapping relationship between symbols and binary values, where the fifth mapping relationship does not includes a mapping relationship between the first symbol and binary values.

[0153] In some implementations, second flag information may be signaled into the bitstream, where the second flag information is used to indicate whether the current symbol is the first symbol.

[0154] The second flag information may include a plurality of pieces of flag information, and the first symbol may include a plurality of symbols. That is, the first symbol may include a plurality of symbols from {C, L, E, R, S}, and the plurality of pieces of flag information respectively indicate whether the current symbol is a corresponding symbol among the plurality of symbols. For example, the first symbol may include symbol C and symbol R, and the plurality of pieces of flag information respectively indicate whether the current symbol is symbol C or symbol R.

[0155] The second flag information may have a plurality of possible values, and different value results may indicate whether it is the first symbol. For example, the value of the second flag information may be 0 or 1.

[0156] As an example, the second flag information may indicate whether the current symbol is symbol C. If the value of the second flag information is 0, it indicates that the current symbol is symbol C; or if the value of the second flag information is 1, it indicates that the current symbol is not symbol C.

[0157] As another example, the second flag information may indicate whether the current symbol is symbol R. If the value of the second flag information is 0, it indicates that the current symbol is symbol R; or if the value of the second flag information is 1, it indicates that the current symbol is not symbol R.

[0158] In the above introduction, in Solution 3, the plurality of symbols may be indicated by the syntax elements (the flag information). Therefore, among {C, L, E, R, S}, symbols other than the symbols indicated by the second flag information may be represented by binary values having a smaller number of bits. In other words, the binary values corresponding to the symbols in the fifth mapping relationship each have a number of bits less than or equal to 2. In this way, the number of bits of the binary value corresponding to the symbol string can be further reduced, thereby helping to improve the coding efficiency of the connectivity information.

[0159] For example, the binary values of the symbols in the fifth mapping relationship each have a number of bits of 2.

[0160] As an example, if the first symbol includes symbol C and symbol R, a binary value corresponding to symbol S may be 00, a binary value corresponding to symbol L may be 01, and a binary value corresponding to symbol E may be 11.

[0161] As another example, the binary values of the symbols in the fifth mapping relationship each have a number of bits of 1 or 2.

[0162] As an example, if the first symbol includes symbol C and symbol R, the binary value corresponding to symbol S may be 0, the binary value corresponding to symbol L may be 10, and the binary value corresponding to symbol E may be 11.

[0163] As another example, if the first symbol includes symbol C and symbol R, the binary value corresponding to symbol S may be 1, the binary value corresponding to symbol L may be 00, and the binary value corresponding to symbol E may be 01.

[0164] In some implementations, Step S1010 includes: determining whether a current symbol is a second symbol according to a number of bits of the binary value; and if the current symbol is not the second symbol, performing the binarization operation on the current symbol according to a sixth mapping relationship between symbols and binary values; where the sixth mapping relationship does not include a mapping relationship between the second symbol and binary values.

[0165] The binary values corresponding to the symbols in the sixth mapping relationship each have a number of bits less than or equal to 4. For example, the binary values of the symbols in the sixth mapping relationship each have a number of bits of 3 or 4.

[0166] The second symbol may include a plurality of symbols, and the binary values corresponding to the plurality of symbols each have a number of bits less than or equal to 2. For example, a binary value corresponding to a second symbol has a number of bits of 1 or 2.

[0167] As an example, if the second symbol includes symbol C and symbol R, the binary value corresponding to symbol C is 0, and the binary value corresponding to symbol R is 10, then the binary value corresponding to symbol S may be 110, the binary value corresponding to symbol L may be 1110, and the binary value corresponding to symbol E may be 1111. It should be understood that the above Solution 1, Solution 2, and Solution 3 may be used in combination, or may be used individually, which is not specifically limited in the embodiments of the present application.

[0168] The following section describes the embodiments of the present application in more detail with reference to specific examples. It should be noted that the examples below are merely intended to help those skilled in the art to understand the embodiments of the present application, and are not intended to limit the embodiments to the specific numerical values or scenarios illustrated. It is apparent that those skilled in the art can make various equivalent modifications or variations based on the examples provided below, and such modifications or variations also fall within the scope of the embodiments of the present application.

[0169] In the related art, the connectivity information of the three-dimensional mesh is represented based on the symbol string. However, if the binary value used to represent the symbol string has an excessive number of bits, the coding efficiency of the connectivity information will be limited.

[0170] To address the above problem, the embodiments of the present application, based on the characteristics of the CLERS symbol string, provide a binarization / inverse binarization method having higher coding efficiency for the encoding and decoding of three-dimensional mesh connectivity information. Additionally, syntax elements indicating whether a symbol is a specific symbol (or whether a symbol is not a specific symbol) is introduced, and based on this, the binarization / inverse binarization method is redesigned for the other symbols to improve the entropy coding / decoding efficiency of the connectivity information of the three-dimensional mesh. Three examples provided by the present application will be introduced below.Example 1

[0171] Based on the characteristic that a symbol following symbol C cannot be symbol L or symbol E, an improved binarization method for the five types of symbols may be as follows.

[0172] (1) When the previous symbol is not symbol C, or when the current symbol is the first symbol in the CLERS symbol string, the binarization / inverse binarization algorithm for the current symbol, which is one of the following five symbols, is defined as follows: C-one binary bit, S-three binary bits, R-three binary bits, L-three binary bits, E-three binary bits. An example is as follows:

[0173] C: 0,

[0174] S: 100,

[0175] R: 101,

[0176] L: 110,

[0177] E: 111.

[0178] (2) When the previous symbol is symbol C, the binarization / inverse binarization algorithm for the current symbol, which is one of the following three symbols, is defined as follows: C-one binary bit, S-two binary bits, R-two binary bits. An example is as follows:

[0179] C: 0,

[0180] S: 10,

[0181] R: 11;

[0182] or

[0183] C: 0,

[0184] S: 11,

[0185] R: 10.Example 2

[0186] In some CLERS symbol strings, symbol C is not necessarily a symbol having the highest frequency. In this case, still assigning the shortest binary bits to symbol C and assigning longer binary bits to other symbols is clearly not the optimal binarization / inverse binarization solution. Therefore, the coding efficiency can be improved by adjusting the assignment of the shortest binary bits.

[0187] At the encoder side:

[0188] (1) Before encoding the CLERS symbol string, the frequency of each type of symbol is counted, a syntax element indicating the symbol having the highest frequency is defined, and this syntax element is signaled into the bitstream.

[0189] (2) The shortest binary bits are assigned to the symbol with the highest frequency that is indicated by the above syntax element, and binary bits longer than that corresponding to the symbol with the highest frequency are assigned to the other symbols. Examples are as follows.

[0190] i. If the syntax element indicates that the symbol with the highest frequency is symbol C, binarization is performed on symbol C using one binary bit, and binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0191] C: 0,

[0192] S: 100,

[0193] R: 101,

[0194] L: 110,

[0195] E: 111.

[0196] ii. If the syntax element indicates that the symbol with the highest frequency is symbol C, binarization is performed on symbol C using one binary bit, and binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0197] When the previous symbol is not symbol C, or when the current symbol is the first symbol in the CLERS symbol string:

[0198] C: 0,

[0199] S: 100,

[0200] R: 101,

[0201] L: 110,

[0202] E: 111.

[0203] When the previous symbol is symbol C:

[0204] C: 0,

[0205] S: 10,

[0206] R: 11;

[0207] or

[0208] C: 0,

[0209] S: 11,

[0210] R: 10.

[0211] iii. If the syntax element indicates that the symbol with the highest frequency is symbol R, binarization is performed on symbol R using one binary bit, and binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0212] R: 0,

[0213] S: 100,

[0214] C: 101,

[0215] L: 110,

[0216] E: 111.

[0217] iv. If the syntax element indicates that the symbol with the highest frequency is symbol L, binarization is performed on symbol L using one binary bit, and binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0218] L: 0,

[0219] S: 100,

[0220] R: 101,

[0221] C: 110,

[0222] E: 111.

[0223] v. If the syntax element indicates that the symbol with the highest frequency is symbol E, binarization is performed on symbol E using one binary bit, and binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0224] E: 0,

[0225] S: 100,

[0226] R: 101,

[0227] L: 110,

[0228] C: 111.

[0229] vi. If the syntax element indicates that the symbol with the highest frequency is symbol S, binarization is performed on symbol S using one binary bit, and binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0230] S: 0,

[0231] C: 100,

[0232] R: 101,

[0233] L: 110,

[0234] E: 111.

[0235] At the decoder side:

[0236] (1) Parsing is performed to obtain the syntax element that indicates the symbol having the highest frequency in the current CLERS symbol string.

[0237] (2) The shortest binary bits are assigned to the symbol with the highest frequency indicated by the above syntax element, and binary bits longer than that of the symbol with the highest frequency are assigned to the other symbols. Examples are as follows.

[0238] i. If the syntax element indicates that the symbol with the highest frequency is symbol C, inverse binarization is performed on symbol C using one binary bit, and inverse binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0239] C: 0,

[0240] S: 100,

[0241] R: 101,

[0242] L: 110,

[0243] E: 111.

[0244] ii. If the syntax element indicates that the symbol with the highest frequency is symbol C, inverse binarization is performed on symbol C using one binary bit, and inverse binarization is performed on the other symbols using two or more binary bits. An example is as follows.

[0245] When the previous symbol is not symbol C, or when the current symbol is the first symbol in the CLERS symbol string:

[0246] C: 0,

[0247] S: 100,

[0248] R: 101,

[0249] L: 110,

[0250] E: 111.

[0251] When the previous symbol is symbol C:

[0252] C: 0,

[0253] S: 10,

[0254] R: 11;

[0255] or

[0256] C: 0,

[0257] S: 11,

[0258] R: 10.

[0259] iii. If the syntax element indicates that the symbol with the highest frequency is symbol R, inverse binarization is performed on symbol R using one binary bit, and inverse binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0260] R: 0,

[0261] S: 100,

[0262] C: 101,

[0263] L: 110,

[0264] E: 111.

[0265] iv. If the syntax element indicates that the symbol with the highest frequency is symbol L, inverse binarization is performed on symbol L using one binary bit, and inverse binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0266] L: 0,

[0267] S: 100,

[0268] R: 101,

[0269] C: 110,

[0270] E: 111.

[0271] v. If the syntax element indicates that the symbol with the highest frequency is symbol E, inverse binarization is performed on symbol E using one binary bit, and inverse binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0272] E: 0,

[0273] S: 100,

[0274] R: 101,

[0275] L: 110,

[0276] C: 111.

[0277] vi. If the syntax element indicates that the symbol with the highest frequency is symbol S, inverse binarization is performed on symbol S using one binary bit, and inverse binarization is performed on the other symbols using two or more binary bits. An example is as follows:

[0278] S: 0,

[0279] C: 100,

[0280] R: 101,

[0281] L: 110,

[0282] E: 111.

[0283] The syntax element mentioned in Example 2 may be used for indication based on the following method:

[0284] using 0 to indicate that the symbol with the highest frequency is symbol C, 6 to indicate that the symbol with the highest frequency is symbol L, 7 to indicate that the symbol with the highest frequency is symbol E, 5 to indicate that the symbol with the highest frequency is symbol R, and 4 to indicate that the symbol with the highest frequency is S.

[0285] The binarization method is as follows:

[0286] the symbol with the highest frequency is symbol C: 0,

[0287] the symbol with the highest frequency is symbol S: 100,

[0288] the symbol with the highest frequency is symbol R: 101,

[0289] the symbol with the highest frequency is symbol L: 110,

[0290] the symbol with the highest frequency is symbol E: 111.

[0291] Alternatively, the syntax element mentioned in Example 2 may be used for indication based on the following method:

[0292] using 0 to indicate that the symbol with the highest frequency is symbol C, 1 to indicate that the symbol with the highest frequency is symbol L, 2 to indicate that the symbol with the highest frequency is symbol E, 3 to indicate that the symbol with the highest frequency is symbol R, and 4 to indicate that the symbol with the highest frequency is symbol S.

[0293] The binarization method is as follows:

[0294] the symbol with the highest frequency is symbol C: 000,

[0295] the symbol with the highest frequency is symbol S: 100,

[0296] the symbol with the highest frequency is symbol R: 011,

[0297] the symbol with the highest frequency is symbol L: 001,

[0298] the symbol with the highest frequency is symbol E: 010.Example 3

[0299] At the encoder side, for each symbol to be encoded:

[0300] (1) encode the syntax element indicating whether a symbol is symbol C (e.g., a value of 0 indicates that it is symbol C, a value of 1 indicates that it is not symbol C; or a value of 1 indicates that it is symbol C, a value of 0 indicates that it is not symbol C). If the current symbol is not symbol C, Step (2) is performed.

[0301] (2) encode the syntax element indicating whether the symbol is symbol R (e.g., a value of 0 indicates that it is symbol R, a value of 1 indicates that it is not symbol R; or a value of 1 indicates that it is symbol R, a value of 0 indicates that it is not symbol R). If the current symbol is not symbol R, Step (3) is performed.

[0302] (3) encode the binary bits corresponding to the symbol (examples of the binarization method are as follows).

[0303] The other three symbols are all represented by binary bits with a fixed 2-bit length:

[0304] 00 representing symbol S, L, or E,

[0305] 01 representing symbol S, L, or E,

[0306] 10 representing symbol S, L, or E,

[0307] 11 representing symbol S, L, or E.

[0308] Here, each “2 binary bits” can only represent one unique symbol.

[0309] One of the other three symbols is represented by 1 binary bit, and the other two of the three symbols are represented by 2 binary bits:

[0310] 0 representing symbol S, L, or E,

[0311] 10 representing symbol S, L, or E,

[0312] 11 representing symbol S, L, or E.

[0313] Herein, each “1 binary bit or 2 binary bits” can only represent one unique symbol.

[0314] One of the other three symbols is represented by 1 binary bit, and the other two of the three symbols are represented by 2 binary bits:

[0315] 1 represents S, L, or E,

[0316] 00 represents S, L, or E,

[0317] 01 represents S, L, or E.

[0318] Here, each “1 binary bit or 2 binary bits” code can only represent one unique symbol.

[0319] At the decoder side, for each symbol to be decoded:

[0320] (1) decode the syntax element indicating whether a symbol is symbol C (the decoder side employs the same definition as the encoder side, for example, a value of 0 indicates that it is symbol C, a value of 1 indicates that it is not symbol C; or a value of 1 indicates that it is symbol C, a value of 0 indicates that it is not symbol C). If the syntax element indicates the current symbol is not symbol C, Step (2) is performed.

[0321] (2) decode the syntax element indicating whether the symbol is symbol R (the decoder side employs the same definition as the encoder side, for example, a value of 0 indicates that it is symbol R, a value of 1 indicates that it is not symbol R; or a value of 1 indicates that it is symbol R, a value of 0 indicates that it is not symbol R). If the syntax element indicates the current symbol is not symbol R, Step (3) is performed.

[0322] (3) decode the corresponding symbol based on the binary bits (the same binarization / inverse binarization method is used at the encoder side and the decoder side, and examples of the inverse binarization method are as follows).

[0323] The other three symbols are all represented by binary bits with a fixed 2-bit length:

[0324] 00 representing symbol S, L, or E,

[0325] 01 representing symbol S, L, or E,

[0326] 10 representing symbol S, L, or E,

[0327] 11 representing symbol S, L, or E.

[0328] Here, each “2 binary bits” can only represent one unique symbol.

[0329] One of the other three symbols is represented by 1 binary bit, and the other two of the three symbols are represented by 2 binary bits:

[0330] 0 representing symbol S, L, or E,

[0331] 10 representing symbol S, L, or E,

[0332] 11 representing symbol S, L, or E.

[0333] Each “1 binary bit or 2 binary bits” can only represent one unique symbol.

[0334] Here, one of the other three symbols is represented by 1 binary bit, and the other two of the three symbols are represented by 2 binary bits:

[0335] 1 representing symbol S, L, or E,

[0336] 00 representing symbol S, L, or E,

[0337] 01 representing symbol S, L, or E.

[0338] Here, each “1 binary bit or 2 binary bits” can only represent one unique symbol.

[0339] The method embodiments of the present application have been described in detail above with reference to FIGS. 1 to 10. Here, the apparatus embodiments of the present application will be described in detail with reference to FIGS. 11 to 14. It should be understood that the description of the method embodiments corresponds to the description of the apparatus embodiments; therefore, for the parts not detailed, reference may be made to the preceding method embodiments.

[0340] FIG. 11 is a schematic structural diagram of a decoder provided by the embodiments of the present application. As illustrated in FIG. 11, the decoder 1100 may include a first decoding unit 1110 and a second decoding unit 1120.

[0341] The first decoding unit 1110 is configured to perform an inverse binarization operation on a binary value in a bitstream to determine a symbol string, where the symbol string is used to represent connectivity information of a three-dimensional mesh.

[0342] The second decoding unit 1120 is configured to reconstruct the three-dimensional mesh according to the symbol string.

[0343] In some implementations, the decoder 1100 includes a third decoding unit 1130, which is configured to: determine a previous symbol of a current symbol in the symbol string; and if the previous symbol is symbol C, perform the inverse binarization operation according to a first mapping relationship between symbols and binary values to determine the current symbol; where the first mapping relationship does not include any mapping relationship between binary values and symbol L and / or symbol E.

[0344] In some implementations, the binary values corresponding to the symbols in the first mapping relationship each have a number of bits less than or equal to 2.

[0345] In some implementations, in the first mapping relationship, binary values corresponding to different symbols do not all have the same number of bits.

[0346] In some implementations, the first mapping relationship includes mapping relationships between binary values and symbol C, symbol R and symbol S, and the first mapping relationship satisfies one of: that a binary value corresponding to symbol C is 0, a binary value corresponding to symbol R is 10, and a binary value corresponding to symbol S is 11; or that a binary value corresponding to symbol C is 0, a binary value corresponding to symbol R is 11, and a binary value corresponding to symbol S is 10.

[0347] In some implementations, the decoder 1100 includes a fourth decoding unit 1140, which is configured to: perform parsing to obtain first flag information, where the first flag information is used to indicate a target symbol having the highest frequency in the symbol string; and perform the inverse binarization operation according to a second mapping relationship between symbols and binary values to determine a current symbol; where the second mapping relationship includes a mapping relationship between binary values and symbol L and / or symbol E; and a binary value corresponding to the target symbol in the second mapping relationship has the minimum number of bits.

[0348] In some implementations, in the second mapping relationship, the binary value corresponding to the target symbol has a number of bits of 1, and binary values corresponding to symbols other than the target symbol each have a number of bits of 3.

[0349] In some implementations, the decoder 1100 includes: a fifth decoding unit 1150, configured to perform the inverse binarization operation according to a third mapping relationship between symbols and binary values to determine the first flag information; where in the third mapping relationship, binary values corresponding to different symbols have the same number of bits.

[0350] In some implementations, the binary values corresponding to different symbols in the third mapping relationship each have a number of bits of 3.

[0351] In some implementations, the decoder 1100 includes: a sixth decoding unit 1160, configured to perform the inverse binarization operation according to a fourth mapping relationship between symbols and binary values to determine the first flag information; where in the fourth mapping relationship, binary values corresponding to different symbols do not all have the same number of bits.

[0352] In some implementations, in the fourth mapping relationship, a binary value corresponding to symbol C has a number of bits of 1, and binary values corresponding to symbols other than symbol C each have a number of bits of 3.

[0353] In some implementations, the decoder 1100 further includes: a seventh decoding unit 1170, configured to perform parsing to obtain second flag information, where the second flag information is used to indicate whether a current symbol is a first symbol; and if the current symbol is not the first symbol, perform the inverse binarization operation according to a fifth mapping relationship between symbols and binary values to determine the current symbol, where the fifth mapping relationship does not include a mapping relationship between the first symbol and binary values.

[0354] In some implementations, the binary values corresponding to the symbols in the fifth mapping relationship each have a number of bits less than or equal to 2.

[0355] In some implementations, the second flag information includes a plurality of pieces of flag information, the first symbol includes a plurality of symbols, and the plurality of pieces of flag information respectively indicate whether the current symbol is a corresponding symbol among the plurality of symbols.

[0356] In some implementations, determining whether a current symbol is a second symbol according to a number of bits of the binary value; and if the current symbol is not the second symbol, performing the inverse binarization operation according to a sixth mapping relationship between symbols and binary values to determine the current symbol; where the sixth mapping relationship does not include a mapping relationship between the second symbol and binary values.

[0357] In some implementations, the binary values corresponding to the symbols in the sixth mapping relationship each have a number of bits less than or equal to 4.

[0358] In some implementations, the second symbol includes a plurality of symbols, and the binary values corresponding to the plurality of symbols each have a number of bits less than or equal to 2.

[0359] It can be understood that in the embodiments of the present application, a “unit” may be part of a circuit, a part of a processor, a part of a program or software, etc., and of course may also be a module or a non-modular one. Moreover, the various components in the embodiments may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional module.

[0360] If the integrated unit is implemented in the form of a software functional module and is not sold or used as an independent product, it may be stored in a non-transitory computer-readable storage medium. Based on such understanding, the technical solution of this embodiment, or in essences, its part that contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps in the methods of the embodiments. The above storage medium includes various media that can store program codes, such as an USB disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0361] Therefore, the embodiments of the present application provide a non-transitory computer-readable storage medium applied to the decoder 1100. The non-transitory computer-readable storage medium has a computer program stored thereon. When the computer program is executed by a first processor, the method according to any of the above embodiments is implemented.

[0362] Based on the composition of the above decoder 1100 and the non-transitory computer-readable storage medium, referring to FIG. 12, a schematic diagram of a specific hardware structure of a decoder 1200 provided by the embodiments of the present application is illustrated. As illustrated in FIG. 12, the decoder 1200 may include: a communication interface 1210, a memory 1220, and a processor 1230; and the various components are coupled together via a bus system 1240. It can be understood that the bus system 1240 is used to achieve connection and communication between the components. Besides a data bus, the bus system 1240 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the various buses in FIG. 12 are all marked as the bus system 1240 in FIG. 12. where

[0363] the communication interface 1210 is configured to receive and transmit signals during the process of transmitting information to other external network elements and receiving information from other external network elements;

[0364] the memory 1220 is configured to store a computer program; and

[0365] the processor 1230 is configured to, when executing the computer program, perform:

[0366] performing an inverse binarization operation on a binary value in a bitstream to determine a symbol string, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and

[0367] reconstructing the three-dimensional mesh according to the symbol string.

[0368] It can be understood that the memory 1220 in the embodiments of the present application may be a volatile memory or a non-transitory memory, or may include both volatile and non-transitory memories. The non-transitory memory may be a read-only memory (ROM), a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasable PROM, EPROM), an electrically erasable programmable read-only memory (electrically EPROM, EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. As an example but not limitation, a variety of forms of RAMs are available, such as a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), a synchronous dynamic random access memory (synchronous DRAM, SDRAM), a double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), an enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), a synchronous link dynamic random access memory (synchlink DRAM, SLDRAM), and a direct memory bus random access memory (direct rambus RAM, DR RAM). The memory 1220 in the system and method described herein is intended to include, but is not limited to, these and any other suitable types of memories.

[0369] The processor 1230 may be an integrated circuit chip with signal processing capabilities. During implementation, various steps in the above method may be implemented through hardware integrated logic circuits in the processor 1230 or instructions in the form of software. The processor 1230 mentioned above may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate, a transistor logic device, or a discrete hardware component, which can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed based on the embodiments of the present application may be executed by the decoding processor implemented directly in hardware, or may be executed together by the hardware module and software module in the decoding processor. The software module may reside in a random memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register or other storage media well-known in the art. The storage medium is located in the memory 1220, and the processor 1230 reads the information in the memory 1220 and completes the steps of the above methods in combination with its hardware.

[0370] It can be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, or other electronic units for executing the functions described in the present application, or a combination thereof. For software implementation, the technology described in the present application may be implemented through modules (e.g., procedures, functions) that perform the functions described in the present application. The software codes may be stored in a memory and performed by a processor. The memory may be implemented within the processor or external to the processor.

[0371] Optionally, in another embodiment, the processor 1230 is further configured to, when executing the computer program, perform the decoding method according to any of the above embodiments.

[0372] FIG. 13 is a schematic structural diagram of an encoder provided by the embodiments of the present application. As illustrated in FIG. 13, the encoder 1300 includes a first encoding unit 1310 and a second encoding unit 1320.

[0373] The first encoding unit 1310 is configured to perform a binarization operation on a symbol string to determine a binary value, where the symbol string is used to represent connectivity information of a three-dimensional mesh.

[0374] The second encoding unit 1320 is configured to encode the binary value.

[0375] In some implementations, the encoder 1300 further includes a third encoding unit 1330, configured to encode a previous symbol of a current symbol in the symbol string; and if the previous symbol is symbol C, perform the binarization operation on the current symbol according to a first mapping relationship between symbols and binary values; where the first mapping relationship does not include any mapping relationship between binary values and symbol L and / or symbol E.

[0376] In some implementations, the binary values corresponding to the symbols in the first mapping relationship each have a number of bits less than or equal to 2.

[0377] In some implementations, in the first mapping relationship, binary values corresponding to different symbols do not all have the same number of bits.

[0378] In some implementations, the first mapping relationship includes mapping relationships between binary values and symbol C, symbol R and symbol S, and the first mapping relationship satisfies one of: that a binary value corresponding to symbol C is 0, a binary value corresponding to symbol R is 10, and a binary value corresponding to symbol S is 11; or that a binary value corresponding to symbol C is 0, a binary value corresponding to symbol R is 11, and a binary value corresponding to symbol S is 10.

[0379] In some implementations, the encoder 1300 further includes a fourth encoding unit 1340, configured to determine a target symbol having the highest frequency in the symbol string; and perform the binarization operation on a current symbol according to a second mapping relationship between symbols and binary values; where the second mapping relationship includes a mapping relationship between binary values and symbol L and / or symbol E; and a binary value corresponding to the target symbol in the second mapping relationship has the minimum number of bits.

[0380] In some implementations, in the second mapping relationship, the binary value corresponding to the target symbol has a number of bits of 1, and binary values corresponding to symbols other than the target symbol each have a number of bits of 3.

[0381] In some implementations, the encoder 1300 further includes a fifth encoding unit 1350, configured to signal first flag information into a bitstream, where the first flag information is used to indicate the target symbol.

[0382] In some implementations, the fifth encoding unit 1350 is configured to perform the binarization operation on the first flag information according to a third mapping relationship between symbols and binary values, where in the third mapping relationship, binary values corresponding to different symbols have the same number of bits.

[0383] In some implementations, the binary values corresponding to different symbols in the third mapping relationship each have a number of bits of 3.

[0384] In some implementations, the fifth encoding unit 1350 is configured to perform the binarization operation on the first flag information according to a fourth mapping relationship between symbols and binary values; where in the fourth mapping relationship, binary values corresponding to different symbols do not all have the same number of bits.

[0385] In some implementations, in the fourth mapping relationship, a binary value corresponding to symbol C has a number of bits of 1, and binary values corresponding to symbols other than symbol C each have a number of bits of 3.

[0386] In some implementations, the encoder 1300 further includes a sixth encoding unit 1360, configured to determine whether a current symbol is a first symbol; and if the current symbol is not the first symbol, perform the binarization operation on the current symbol according to a fifth mapping relationship between symbols and binary values, where the fifth mapping relationship does not include a mapping relationship between the first symbol and binary values.

[0387] In some implementations, the encoder 1300 further includes a seventh encoding unit 1370, configured to signal second flag information into a bitstream, where the second flag information is used to indicate whether the current symbol is the first symbol.

[0388] In some implementations, the second flag information includes a plurality of pieces of flag information, the first symbol includes a plurality of symbols, and the plurality of pieces of flag information respectively indicate whether the current symbol is a corresponding symbol among the plurality of symbols.

[0389] In some implementations, the binary values corresponding to the symbols in the fifth mapping relationship each have a number of bits of less than or equal to 2.

[0390] In some implementations, determining whether a current symbol is a second symbol according to a number of bits of the binary value; and if the current symbol is not the second symbol, perform the binarization operation on the current symbol according to a sixth mapping relationship between symbols and binary values; where the sixth mapping relationship does not include a mapping relationship between the second symbol and binary values.

[0391] In some implementations, the binary values corresponding to the symbols in the sixth mapping relationship each have a number of bits less than or equal to 4.

[0392] In some implementations, the second symbol includes a plurality of symbols, and the binary values corresponding to the plurality of symbols each have a number of bits less than or equal to 2.

[0393] It can be understood that in the embodiments of the present application, a “unit” may be part of a circuit, a part of a processor, a part of a program or software, etc., and of course may also be a module or a non-modular one. Moreover, the various components in the embodiments may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional module.

[0394] If the integrated unit is implemented in the form of a software functional module and is not sold or used as an independent product, it may be stored in a non-transitory computer-readable storage medium. Based on such understanding, the technical solution of this embodiment, or in essences, and its part that contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps in the methods of the embodiments. The aforementioned storage medium includes various media that can store program codes, such as an USB disk, a mobile hard disk, an ROM, a RAM, a magnetic disk, or an optical disk.

[0395] Therefore, the embodiments of the present application provide a non-transitory computer-readable storage medium applied to the encoder 1300. The non-transitory computer-readable storage medium has a computer program stored thereon. When the computer program is executed by a first processor, the method according to any of the aforementioned embodiments is implemented.

[0396] Based on the composition of the encoder 1300 and the non-transitory computer-readable storage medium, referring to FIG. 14, a schematic diagram of a specific hardware structure of the encoder 1400 provided by the embodiments of the present application is illustrated. As illustrated in FIG. 14, the encoder 1400 may include: a communication interface 1410, a memory 1420, and a processor 1430; and the various components are coupled together via a first bus system 1440. It can be understood that the first bus system 1440 is used to achieve connection and communication between the components. Besides a data bus, the first bus system 1440 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the various buses in FIG. 14 are all marked as the first bus system 1440, where

[0397] the communication interface 1410 is configured to receive and transmit signals during the process of transmitting information to other external network elements and receiving information from other external network elements;

[0398] the memory 1420 is configured to store a computer program; and

[0399] the processor 1430 is configured to, when executing the computer program, perform:

[0400] performing a binarization operation on a symbol string to determine a binary value, where the symbol string is used to represent connectivity information of a three-dimensional mesh; and encoding the binary value.

[0401] It can be understood that the memory 1420 in the embodiments of the present application may be a volatile memory or a non-transitory memory, or may include both volatile and non-transitory memories. The non-transitory memory may be an ROM, a PROM), an EPROM, an EEPROM, or a flash memory. The volatile memory may be an RAM, which is used as an external cache. As an example but not limitation, a variety of forms of RAMs are available, such as an SRAM, a DRAM, an SDRAM, a DDR SDRAM, an ESDRAM, a SLDRAM, and a DR RAM. The memory 1420 in the system and method described herein is intended to include, but is not limited to, these and any other suitable types of memories.

[0402] The processor 1430 may be an integrated circuit chip with signal processing capabilities. During implementation, various steps in the above method may be implemented through hardware integrated logic circuits in the processor 1430 or instructions in the form of software. The processor 1430 mentioned above may be a general-purpose processor, a DSP, an ASIC, a FPGA or other programmable logic device, a discrete gate, a transistor logic device, or a discrete hardware component, which can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed based on the embodiments of the present application may be executed by the decoding processor implemented directly in hardware, or may be executed together by the hardware module and software module in the decoding processor. The software module may reside in a random memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register or other storage media well-known in the art. The storage medium is located in the memory 1420, and the processor 1430 reads the information in the memory 1420 and completes the steps of the above methods in combination with its hardware.

[0403] It can be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more ASICs, DSPs, DSPDs, PLDs, FPGAs, general-purpose processors, controllers, microcontrollers, microprocessors, or other electronic units for executing the functions described in the present application, or a combination thereof. For software implementation, the technology described in the present application may be implemented through modules (e.g., procedures, functions) that perform the functions described in the present application. The software codes may be stored in a memory and performed by a processor. The memory may be implemented within the processor or external to the processor.

[0404] Optionally, in another embodiment, the processor 1430 is further configured to, when executing the computer program, perform the encoding method according to any of the above embodiments.

[0405] The embodiments of the present application further provide a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium is a non-transitory computer-readable storage medium for storing a bitstream, and the bitstream can be generated by using the encoding method of the encoder, or the bitstream can be decoded by using the decoding method of the decoder, where the decoding method may be the decoding method described in any of the above embodiments, and the encoding method may be the encoding method described in any of the above embodiments.

[0406] It should be noted that, in the present application, the terms “comprises”, “includes” or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, a method, an article or an apparatus including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such the process, the method, the article or the apparatus. Without more constraints, an element defined by the phrase “including a . . . ” does not exclude the existence of other identical elements in the process, the method, the article or the apparatus including the element.

[0407] The serial numbers of the embodiments of the present application are for description only and do not indicate the advantages or disadvantages of the embodiments.

[0408] The methods disclosed in several method embodiments provided in the present application may be arbitrarily combined without conflict to obtain new method embodiments.

[0409] The features disclosed in several product embodiments provided in the present application may be arbitrarily combined without conflict to obtain new product embodiments.

[0410] The features disclosed in several method or device embodiments provided in the present application may be arbitrarily combined without conflict to obtain new method embodiments or new device embodiments.

[0411] The foregoing descriptions are merely specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any skilled person in the art could readily conceive of changes or replacements within the technical scope of the present application, which shall be all included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of claims.

Claims

1. A decoding method, applied to a decoder, comprising:performing an inverse binarization operation on a binary value in a bitstream to determine a symbol string, wherein the symbol string is used to represent connectivity information of a three-dimensional mesh; andreconstructing the three-dimensional mesh according to the symbol string.

2. The method according to claim 1, wherein performing the inverse binarization operation on the binary value in the bitstream to determine the symbol string comprises:determining a previous symbol of a current symbol in the symbol string; andif the previous symbol is symbol C, performing the inverse binarization operation according to a first mapping relationship between symbols and binary values to determine the current symbol;wherein the first mapping relationship does not comprise any mapping relationship between binary values and symbol L and / or symbol E.

3. The method according to claim 2, wherein the binary values corresponding to the symbols in the first mapping relationship each have a number of bits less than or equal to 2.

4. The method according to claim 2 wherein in the first mapping relationship, binary values corresponding to different symbols do not all have a same number of bits.

5. The method according to claim 4, wherein the first mapping relationship comprises mapping relationships between binary values and symbol C, symbol R and symbol S, and the first mapping relationship satisfies one of:that a binary value corresponding to symbol C is 0, a binary value corresponding to symbol R is 10, and a binary value corresponding to symbol S is 11; orthat a binary value corresponding to symbol C is 0, a binary value corresponding to symbol R is 11, and a binary value corresponding to symbol S is 10.

6. The method according to claim 1, wherein performing the inverse binarization operation on the binary value in the bitstream to determine the symbol string comprises:performing parsing to obtain first flag information, wherein the first flag information is used to indicate a target symbol having a highest frequency in the symbol string; andperforming the inverse binarization operation according to a second mapping relationship between symbols and binary values to determine a current symbol; wherein the second mapping relationship comprises a mapping relationship between binary values and symbol L and / or symbol E; and a binary value corresponding to the target symbol in the second mapping relationship has a minimum number of bits.

7. The method according to claim 6, wherein in the second mapping relationship, the binary value corresponding to the target symbol has a number of bits of 1, and binary values corresponding to symbols other than the target symbol each have a number of bits of 3.

8. The method according to claim 6, further comprising:performing the inverse binarization operation according to a third mapping relationship between symbols and binary values to determine the first flag information; wherein in the third mapping relationship, binary values corresponding to different symbols have a same number of bits.

9. The method according to claim 8, wherein the binary values corresponding to different symbols in the third mapping relationship each have a number of bits of 3.

10. The method according to claim 6, further comprising:performing the inverse binarization operation according to a fourth mapping relationship between symbols and binary values to determine the first flag information; wherein in the fourth mapping relationship, binary values corresponding to different symbols do not all have a same number of bits.

11. The method according to claim 10, wherein in the fourth mapping relationship, a binary value corresponding to symbol C has a number of bits of 1, and binary values corresponding to symbols other than symbol C each have a number of bits of 3.

12. The method according to claim 1, wherein performing the inverse binarization operation on the binary value in the bitstream to determine the symbol string comprises:performing parsing to obtain second flag information, wherein the second flag information is used to indicate whether a current symbol is a first symbol; andif the current symbol is not the first symbol, performing the inverse binarization operation according to a fifth mapping relationship between symbols and binary values to determine the current symbol, wherein the fifth mapping relationship does not comprise a mapping relationship between the first symbol and binary values.

13. The method according to claim 12, wherein the binary values corresponding to the symbols in the fifth mapping relationship each have a number of bits less than or equal to 2.

14. The method according to claim 12, wherein the second flag information comprises a plurality of pieces of flag information, the first symbol comprises a plurality of symbols, and the plurality of pieces of flag information respectively indicate whether the current symbol is a corresponding symbol among the plurality of symbols.

15. The method according to claim 1, wherein performing the inverse binarization operation on the binary value in the bitstream to determine the symbol string comprises:determining whether a current symbol is a second symbol according to a number of bits of the binary value; andif the current symbol is not the second symbol, performing the inverse binarization operation according to a sixth mapping relationship between symbols and binary values to determine the current symbol; wherein the sixth mapping relationship does not comprise a mapping relationship between the second symbol and binary values.

16. The method according to claim 15, wherein the binary values corresponding to the symbols in the sixth mapping relationship each have a number of bits less than or equal to 4.

17. The method according to claim 15, wherein the second symbol comprises a plurality of symbols, and the binary values corresponding to the plurality of symbols each have a number of bits less than or equal to 2.

18. An encoding method, applied to an encoder, comprising:performing a binarization operation on a symbol string to determine a binary value, wherein the symbol string is used to represent connectivity information of a three-dimensional mesh; andencoding the binary value.

19. The method according to claim 18, wherein performing the binarization operation on the symbol string to determine the binary value comprises:encoding a previous symbol of a current symbol in the symbol string; andif the previous symbol is symbol C, performing the binarization operation on the current symbol according to a first mapping relationship between symbols and binary values; wherein the first mapping relationship does not comprise any mapping relationship between binary values and symbol L and / or symbol E.

20. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium has a computer program and a bitstream stored thereon, wherein the computer program, when executed by a processor, enables the processor to generate the bitstream by performing the following steps:performing a binarization operation on a symbol string to determine a binary value, wherein the symbol string is used to represent connectivity information of a three-dimensional mesh; andencoding the binary value.