[go: up one dir, main page]

CN118338006A - Transform coefficient encoding method, transform coefficient decoding method and terminal - Google Patents

Transform coefficient encoding method, transform coefficient decoding method and terminal Download PDF

Info

Publication number
CN118338006A
CN118338006A CN202310039876.6A CN202310039876A CN118338006A CN 118338006 A CN118338006 A CN 118338006A CN 202310039876 A CN202310039876 A CN 202310039876A CN 118338006 A CN118338006 A CN 118338006A
Authority
CN
China
Prior art keywords
coefficient
order
context probability
decoding
probability models
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310039876.6A
Other languages
Chinese (zh)
Inventor
张伟
鲁静芸
杨付正
吕卓逸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310039876.6A priority Critical patent/CN118338006A/en
Priority to PCT/CN2024/071030 priority patent/WO2024149182A1/en
Publication of CN118338006A publication Critical patent/CN118338006A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/18Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the application provides a transform coefficient coding method, a transform coefficient decoding method and a terminal, and belongs to the technical field of coding and decoding. The transform coefficient coding method includes: obtaining a transformation coefficient corresponding to the point cloud; the transformation coefficients comprise a direct current, DC, coefficient and at least two alternating current, AC, coefficients; coding the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient; encoding each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient; the second order is determined based on the first order and an index of the encoding point corresponding to the AC coefficient; a target code stream is generated based on the encoding result for the DC coefficient and the encoding result for each AC coefficient.

Description

Transform coefficient encoding method, transform coefficient decoding method and terminal
Technical Field
The application belongs to the technical field of encoding and decoding, and particularly relates to a transformation coefficient encoding method, a transformation coefficient decoding method and a terminal.
Background
A point cloud is a set of irregularly distributed discrete points in space that represent the spatial structure and surface properties of a three-dimensional object or scene. In the encoding process of the point cloud, attribute information encoding is involved, after the attribute information encoding is carried out on the point cloud to obtain a transformation coefficient, the transformation coefficient is quantized, and then the quantized transformation coefficient is subjected to transformation coefficient encoding to obtain a code stream.
In the related art, it is necessary to encode the transform coefficients using a larger number of context probability models, which results in a larger number of bits of the code stream generated by the encoding.
Disclosure of Invention
The embodiment of the application provides a transform coefficient coding method, a transform coefficient decoding method and a terminal, which can solve the problem of more bits of a code stream generated by coding.
In a first aspect, a transform coefficient coding method is provided, including:
the encoding end obtains a transformation coefficient corresponding to the point cloud; the transformation coefficients comprise a Direct Current (DC) coefficient and at least two Alternating Current (AC) coefficients;
The encoding end encodes the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient;
The encoding end encodes each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient; the second order is determined based on the first order and an index of a coding point corresponding to the AC coefficient;
the encoding end generates a target code stream based on the encoding result of the DC coefficient and the encoding result of each AC coefficient.
In a second aspect, there is provided a transform coefficient decoding method, including:
the decoding end obtains a target code stream; the target code stream comprises the coding result of a Direct Current (DC) coefficient in the transformation coefficient and the coding result of at least two Alternating Current (AC) coefficients in the transformation coefficient;
the decoding end decodes the coding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient to obtain the DC coefficient;
The decoding end decodes the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient to obtain at least two AC coefficients; the second order is determined based on the first order and the index of the coding point corresponding to the AC coefficient, or based on the proportion information included in the attribute information parameter set of the target code stream;
The decoding end determines a transform coefficient based on the DC coefficient and the at least two AC coefficients.
In a third aspect, there is provided a transform coefficient encoding apparatus including:
The acquisition module is used for acquiring the transformation coefficient corresponding to the point cloud; the transformation coefficients comprise a Direct Current (DC) coefficient and at least two Alternating Current (AC) coefficients;
the first coding module is used for coding the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient;
The second coding module is used for coding each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient; the second order is determined based on the first order and an index of a coding point corresponding to the AC coefficient;
and the generating module is used for generating a target code stream based on the encoding result of the DC coefficient and the encoding result of each AC coefficient.
In a fourth aspect, there is provided a transform coefficient decoding apparatus including:
The first acquisition module is used for acquiring a target code stream; the target code stream comprises the coding result of a Direct Current (DC) coefficient in the transformation coefficient and the coding result of at least two Alternating Current (AC) coefficients in the transformation coefficient;
The first decoding module is used for decoding the coding result of the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient to obtain the DC coefficient;
The second decoding module is used for decoding the encoding result of each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient to obtain at least two AC coefficients; the second order is determined based on the first order and the index of the coding point corresponding to the AC coefficient, or based on the proportion information included in the attribute information parameter set of the target code stream;
A first determination module for determining a transform coefficient based on the DC coefficient and the at least two AC coefficients.
In a fifth aspect, there is provided a terminal comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, performs the steps of the method according to the first aspect, or performs the steps of the method according to the second aspect.
In a sixth aspect, there is provided a readable storage medium having stored thereon a program or instructions which when executed by a processor, performs the steps of the method according to the first aspect or performs the steps of the method according to the second aspect.
In a seventh aspect, a chip is provided, the chip comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being configured to execute programs or instructions to implement the method according to the first aspect or to implement the method according to the second aspect.
In an eighth aspect, a computer program/program product is provided, stored in a storage medium, which is executed by at least one processor to implement the steps of the method as described in the first aspect, or to implement the steps of the method as described in the second aspect.
In the embodiment of the application, the transformation coefficient corresponding to the point cloud is obtained; the transformation coefficients comprise a direct current, DC, coefficient and at least two alternating current, AC, coefficients; coding the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient; encoding each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient; the second order is determined based on the first order and an index of the encoding point corresponding to the AC coefficient; a target code stream is generated based on the encoding result for the DC coefficient and the encoding result for each AC coefficient. In the related art, it is necessary to encode the transform coefficients after encoding according to the magnitude of the transform coefficients by a context probability model; compared with the related art, the method for coding the transformation coefficient provided by the embodiment of the application has the advantages that after the transformation coefficient is obtained, the DC coefficient and the AC coefficient which are included in the transformation coefficient are directly coded through the context probability model, so that the transformation coefficient coding of the transformation coefficient can be realized through fewer context probability models, and the bit number of a code stream is further reduced.
Drawings
FIG. 1 is a schematic diagram of a partial framework of a G-PCC point cloud encoding apparatus;
FIG. 2 is a schematic diagram of a partial framework of a G-PCC point cloud decoding apparatus;
FIG. 3 is a flowchart of a transform coefficient encoding method according to an embodiment of the present application;
FIG. 4 is a flowchart of a transform coefficient encoding method according to an embodiment of the present application;
fig. 5 is a block diagram of a transform coefficient encoding apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of a transform coefficient decoding apparatus according to an embodiment of the present application;
Fig. 7 is a block diagram of a communication device according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the application, fall within the scope of protection of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the "first" and "second" distinguishing between objects generally are not limited in number to the extent that the first object may, for example, be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/" generally means a relationship in which the associated object is an "or" before and after.
The list construction device corresponding to the list construction method in the embodiment of the present application may be a terminal, which may also be referred to as a terminal device or a User Equipment (UE), and the terminal may be a Mobile phone, a tablet (Tablet Personal Computer), a Laptop (Laptop Computer) or a terminal-side device such as a notebook, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a palm Computer, a netbook, an ultra-Mobile Personal Computer, a UMPC, a Mobile internet appliance (Mobile INTERNET DEVICE, MID), an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a robot, a wearable device (Wearable Device) or a vehicle-mounted device (VUE), a pedestrian terminal (PUE), a smart home (home device with a wireless communication function, such as a refrigerator, a television, a washing machine, or furniture), a game machine, a Personal Computer (Personal Computer, PC), a teller machine, or a self-service machine, and the like, where the wearable device includes: intelligent wrist-watch, intelligent bracelet, intelligent earphone, intelligent glasses, intelligent ornament (intelligent bracelet, intelligent ring, intelligent necklace, intelligent anklet, intelligent foot chain etc.), intelligent wrist strap, intelligent clothing etc.. It should be noted that, the embodiment of the present application is not limited to a specific type of terminal.
For ease of understanding, some of the following descriptions are directed to embodiments of the present application:
Referring to fig. 1, as shown in fig. 1, in the digital audio/video codec technology standard, a point cloud compression (Geometry Point Cloud Compression, G-PCC) point cloud encoding device based on geometry may be used to encode attribute information of a point cloud. Specifically, color conversion and recolouring can be performed on attribute information of the point cloud, then region self-adaptive transformation based on up-sampling prediction is performed on the recoloured attribute information based on reconstruction geometric information, or lifting transformation based on hierarchical structure division is performed, a transformation coefficient is obtained, and quantization is performed on the transformation coefficient to obtain a quantization coefficient; and finally, carrying out arithmetic coding on the quantized coefficients to obtain an attribute bit stream.
The operation steps of the region adaptive transformation based on upsampling prediction include: constructing a transformation tree structure of the point cloud; then, carrying out up-sampling prediction and Region adaptive transformation (Region ADAPTIVE HARR Transform, RAHT) layer by layer from a root node of the transformation tree structure, and if the current node is the root node, directly carrying out RAHT transformation on attribute information of the node to obtain a DC coefficient and an AC coefficient; if the current node is not the root node, judging whether to predict the current node according to the grandparent node and the father node of the current node. If the current node needs to be predicted, predicting attribute information of the current node to obtain an attribute predicted value, then carrying out RAHT transformation on the attribute predicted value and the original attribute value of the current node, and calculating an obtained AC coefficient residual error; if the current node does not need to be predicted, RAHT transformation is directly carried out on the original attribute value of the current node, and an AC coefficient is obtained.
The operation steps of the lifting transformation based on the hierarchical structure division include: firstly, carrying out hierarchical division on point clouds through Level of Detail (LoD), and establishing a hierarchical structure of the point clouds;
then, taking the node of the bottom level and the node which is positioned at the same level with the current node as reference points, searching the current node in the reference points, selecting a plurality of nearest reference points as prediction reference points, and carrying out linear interpolation prediction by utilizing reconstruction attribute values of the plurality of prediction reference points; and carrying out lifting transformation on the predicted value obtained by prediction.
It should be understood that the above arithmetic coding includes zero run coding and transform coefficient coding, and generates a code stream by performing zero run coding on quantized transform coefficients and then performing transform coefficient coding on the transform coefficients. The implementation of zero run coding is briefly described as follows: (1) Judging whether a run (length) value of a transformation coefficient is 0 or not through a context probability model 1, if so, encoding one bit of 0, and ending current encoding; if not, a bit 1 is encoded and the following determination is continued.
(2) Judging whether the run value of the transformation coefficient is 1 or not through the context probability model 2, if the run value is 1, encoding one bit of 0, and ending the current encoding; if not, a bit 1 is encoded and the following determination is continued.
(3) Judging whether the run value of the transformation coefficient is 2 or not through the context probability model 3, if so, encoding one bit of 0, and ending the current encoding; if not, a bit 1 is encoded and the following determination is continued.
(4) Updating the run value, and subtracting 3 from the run value to obtain an updated run value.
(5) Dividing the run value by 2 to obtain a prefix (prefix) value;
(6) Performing unitary code encoding on the prefix value through a context probability model 4;
Judging whether the prefix value is 0, if so, encoding one bit of 0, and encoding the remainder of taking 2 from the run value by using a bypass encoding mode; if not, encoding one bit 1, and continuing the following judgment;
Judging whether the prefix value is 1, if so, encoding one bit of 0, and encoding the remainder of taking 2 by using a bypass encoding mode; if not, encoding one bit 1, and continuing the following judgment;
judging whether the prefix value is 2, if so, encoding one bit of 0, and encoding the remainder of taking 2 by using a bypass encoding mode; if the bit is not 2, encoding one bit 1, and continuing the following judgment;
Judging whether the prefix value is 3, if so, encoding one bit of 0, and encoding the remainder of taking 2 by using a bypass encoding mode; if the code is not 3, one bit 1 is encoded, and the encoding is ended.
(7) And updating the run value, and subtracting 8 from the run value to obtain an updated run value.
(8) The updated run values are encoded using second order exponential golomb with the context probability model 5.
The implementation of transform coefficient coding is briefly described below:
(1) Judging whether the value (value) of the transformation coefficient is equal to 0 or not through the context probability model 1, and ending encoding if the value is 0; if not, coding 1, and continuing the following coding;
(2) Judging whether the value (value) of the transformation coefficient is equal to 1 or not through the context probability model 1, and ending encoding if the value is 1; if not, coding 1, and continuing the following coding;
(3) The prefix codes of the generated code stream are encoded by a first set of context probability models (comprising context probability model 3, context probability model 4 and context probability model 5), and the suffix codes of the generated code stream are encoded by a second set of context probability models (comprising context probability model 6, context probability model 7 and context probability model 8).
Referring to fig. 2, as shown in fig. 2, in the digital audio/video codec technology standard, a point cloud decoding device based on geometric point cloud compression (Geometry Point Cloud Compression, G-PCC) may be used to decode attribute information of a point cloud. It should be understood that the implementation process of the above-mentioned G-PCC point cloud decoding device for decoding the attribute information of the point cloud is the inverse of the encoding process, and will not be repeated here. As can be seen from the above, in the process of coding the transform coefficients, the context probability model 1 and the context probability model 2 need to be used for coding the transform coefficients according to the values of the transform coefficients, and then the two sets of context probability models need to be used for coding the transform coefficients, which results in a larger number of bits of the code stream generated by the coding.
In order to solve the technical problems, the application provides a transform coefficient coding method which can be applied to a coding end. The transform coefficient coding method provided by the embodiment of the application is described in detail below through some embodiments and application scenarios thereof with reference to the accompanying drawings.
Referring to fig. 3, fig. 3 is a flowchart of a transform coefficient encoding method according to an embodiment of the application. The transform coefficient coding method provided by the embodiment comprises the following steps:
s301, the encoding end obtains a transformation coefficient corresponding to the point cloud.
The transform coefficient is a transform coefficient corresponding to the point cloud, that is, a quantized transform coefficient obtained by performing region adaptive transform based on upsampling prediction on attribute information of the point cloud or performing lifting transform based on hierarchical structure division. Wherein the transform coefficients include DC coefficients and AC coefficients.
It is to be understood that the attribute information includes color information and reflectivity information, and the transform coefficient is determined based on the color information if the transform coefficient is obtained by performing an area adaptive transform based on upsampling prediction or performing a lifting transform based on hierarchical structure division. The transform coefficients include a Y component, a U component, and a V component.
If the transform coefficient is obtained by performing an area adaptive transform based on upsampling prediction or performing a lifting transform based on hierarchical division of the reflectivity information, the transform coefficient is determined based on the reflectivity information.
In this step, the encoding end obtains a transform coefficient corresponding to the point cloud, where the transform coefficient includes a DC coefficient and at least two AC coefficients.
S302, the encoding end encodes the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient.
In this step, the encoding end encodes the DC coefficient according to the first order and the context probability model corresponding to the DC coefficient, and for a specific implementation, please refer to the following embodiments.
S303, the encoding end encodes each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient.
In this step, the second order may be determined based on the first order and the index of the encoding point corresponding to the AC coefficient, and each AC coefficient may be encoded according to the second order and the context probability model corresponding to each AC coefficient.
S304, the encoding end generates a target code stream based on the encoding result of the DC coefficient and the encoding result of each AC coefficient.
The encoding end encodes the DC coefficient to obtain a binary number group, and the binary number group can be understood as the encoding result of the DC coefficient; after each AC coefficient is encoded by the encoding end, a binary number set is obtained, and the binary number set can be understood as the encoding result of the AC coefficient. That is, the encoding end generates a target code stream by encoding the DC coefficient and the AC coefficient in one encoding process.
In the related art, it is necessary to encode the transform coefficients after encoding according to the magnitude of the transform coefficients by a context probability model; compared with the related art, the method for coding the transformation coefficient provided by the embodiment of the application has the advantages that after the transformation coefficient is obtained, the DC coefficient and the AC coefficient which are included in the transformation coefficient are directly coded through the context probability model, so that the transformation coefficient coding of the transformation coefficient can be realized through fewer context probability models, and the bit number of a code stream is further reduced.
Optionally, the DC coefficient is determined based on color information, and before the DC coefficient is encoded according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient, the method further includes:
And determining a first order corresponding to the DC coefficient according to the Columbus order corresponding to at least part of the components of the DC coefficient.
In this embodiment, if the transform coefficient is obtained by performing an area adaptive transform based on upsampling prediction on color information or performing a lifting transform based on hierarchical structure division, the first order corresponding to the DC coefficient may be determined according to the golomb order corresponding to at least part of the components of the DC coefficient.
Optionally, the golomb orders corresponding to the Y component, the U component, and the V component of the DC coefficient, respectively, are acquired, and the golomb order corresponding to any one component is determined as the first order.
Optionally, the determining, according to the golomb order corresponding to at least part of the component of the DC coefficient, the first order corresponding to the DC coefficient includes:
acquiring a Columbus order corresponding to each component of the DC coefficient;
and determining the Columbus order with the highest occurrence frequency in the Columbus orders corresponding to each component as the first order corresponding to the DC coefficient.
In this embodiment, the golomb orders corresponding to the Y component, the U component, and the V component of the DC coefficient may be obtained, for example, log2 may be taken for the Y component of the DC coefficient, to obtain the golomb orders corresponding to the Y component. And then, the golomb order with the highest occurrence frequency among the 3 golomb orders is determined as the first order.
In an embodiment, if the occurrence frequency of the golomb order corresponding to each component is the same, the golomb order corresponding to any component may be determined as the first order.
Optionally, the determining, according to the golomb order corresponding to at least part of the component of the DC coefficient, the first order corresponding to the DC coefficient includes:
acquiring the Columbus order corresponding to each component of the DC coefficient;
And rounding the average value of the Columbus orders corresponding to each component of the DC coefficient to obtain a first order corresponding to the DC coefficient.
In this embodiment, after the Y component, U component and V component of the DC coefficient are obtained, the average of the 3 golomb orders is rounded to obtain the first order
Optionally, the encoding the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient includes:
the DC coefficients are golomb encoded with a first set of context probability models and a second set of context probability models.
In this embodiment, if the DC coefficient is obtained by performing an area adaptive transform based on upsampling prediction on reflectivity information or performing a lifting transform based on hierarchical structure division, the DC coefficient is subjected to golomb coding by using a first set of context probability models and a second set of context probability models, where the coding order of the golomb coding of the DC coefficient is the same as the first order.
If the DC coefficient is obtained by performing an area adaptive transform based on upsampling prediction on color information or performing a lifting transform based on hierarchical structure division, performing golomb encoding on a U component and a V component in the DC coefficient by a first set of context probability models, and performing golomb encoding on a Y component in the DC coefficient by a second set of context probability models, wherein the encoding order of the golomb encoding on the DC coefficient is the same as the first order.
It should be noted that, the first set of context probability models includes a plurality of context probability models, and optionally, the first set of context probability models includes 3 context probability models; the second set of context probability models comprises a plurality of context probability models, optionally the second set of context probability models comprises 3 context probability models.
The plurality of context probability models included in the second set of context probability models are different from the plurality of context probability models included in the first set of context probability models, the DC coefficients are encoded by the first set of context probability models to generate prefix codes corresponding to the DC coefficients, and the DC coefficients are encoded by the second set of context probability models to generate suffix codes corresponding to the DC coefficients.
In this embodiment, the DC coefficient is subjected to higher-order exponential golomb coding according to the first order, the first set of context probability models, and the second set of context probability models, so as to reduce the number of bits of the code stream generated by the coding.
Optionally, before the encoding of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient, the method further includes:
determining the difference between the first order and the first numerical value as a second order;
In this embodiment, the second order may be determined by the following formula:
Wherein color_ ExpGolomb _order_ac represents the second order, color_ ExpGolomb _order_dc represents the first order, n represents the index of the encoding points, voxelcnt represents the total number of encoding points, and knum represents a preset amplitude control parameter.
Optionally, the DC coefficient is determined based on color information, the DC coefficient includes a Y component, a U component, and a V component, and the encoding the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient includes:
Determining the coding order of each component of the DC coefficient for performing Columbus coding according to the first order corresponding to the DC coefficient;
Each component of the DC coefficient is golombly encoded with a first set of context probability models and a second set of context probability models based on the encoding order.
In this embodiment, if the DC coefficient is obtained by performing an area adaptive transform based on upsampling prediction on color information or performing a lifting transform based on hierarchical structure division, after determining the first order corresponding to the DC coefficient, each component of the DC coefficient may be subjected to golomb encoding by using the first set of context probability models and the second set of context probability models.
One possible situation is that the first order corresponding to the DC coefficient is greater than the third preset value and less than or equal to the fourth preset value. In this case, the coding order of golomb coding the Y component in the DC coefficient is the first order, and the coding order of golomb coding the U component and the V component in the DC coefficient is 1.
Another possible situation is that the first order corresponding to the DC coefficient is larger than the fourth preset value. In this case, the encoding order of the golomb encoding of the U component and the V component in the DC coefficient is a difference between the first order and the fourth preset value, and the encoding order of the golomb encoding of the Y component in the DC coefficient is 1.
Another possible situation is that the first order corresponding to the DC coefficient is smaller than or equal to the third preset value. In this case, the encoding order of golomb encoding each component of the DC coefficient is 1.
Optionally, the third preset value is 1, and the fourth preset value is 2.
In this embodiment, at least some components in the DC coefficients are higher order exponential golomb encoded according to the first order, the first set of context probability models, and the second set of context probability models, thereby reducing the number of bits of the encoded code stream.
Optionally, the AC coefficients are determined based on color information, the AC coefficients include a Y component, a U component, and a V component, and the encoding each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient includes:
Determining the coding order of each component of the AC coefficient for performing Columbus coding according to the second order corresponding to each AC coefficient;
each component of the AC coefficient is golombly encoded with a first set of context probability models and a second set of context probability models based on the encoding order.
As described above, the first set of context probability models comprises a plurality of context probability models, optionally the context probability models comprises 3 context probability models; the second set of context probability models comprises a plurality of context probability models, optionally the second set of context probability models comprises 3 context probability models.
It should be noted that, the multiple context probability models included in the second set of context probability models are different from the multiple context probability models included in the first set of context probability models, the AC coefficients are encoded by the first set of context probability models, prefix codes corresponding to the AC coefficients are generated, and the AC coefficients are encoded by the second set of context probability models, so as to generate suffix codes corresponding to the AC coefficients.
In this embodiment, if the AC coefficient is obtained by performing an area adaptive transform based on upsampling prediction on color information or performing a lifting transform based on hierarchical structure division, each component of the AC coefficient may be subjected to golomb coding by using a first set of context probability models and a second set of context probability models.
One possible situation is that the second order corresponding to the AC coefficient is greater than the third preset value and less than or equal to the fourth preset value. In this case, the encoding order of golomb encoding the Y component in the AC coefficient is the second order, and the encoding order of golomb encoding the U component and the V component in the AC coefficient is 1.
Another possible situation is that the second order corresponding to the AC coefficient is larger than the fourth preset value. In this case, the encoding order of the golomb encoding of the U component and the V component in the AC coefficient is a difference between the second order and the fourth preset value, and the encoding order of the golomb encoding of the Y component in the AC coefficient is 1.
Another possible situation is that the second order corresponding to the AC coefficient is less than or equal to the third preset value. In this case, the encoding order of golomb encoding each component of the AC coefficient is 1.
Optionally, the third preset value is 1, and the fourth preset value is 2.
In this embodiment, at least some components in the AC coefficients are higher order exponential golomb encoded according to the second order, the first set of context probability models, and the second set of context probability models, thereby reducing the number of bits of the encoded code stream.
Optionally, the AC coefficients are determined based on color information, the AC coefficients include a Y component, a U component, and a V component, and the encoding each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient includes:
Performing golomb coding on a U component and a V component in the AC coefficient by a first set of context probability models;
the Y component in the AC coefficients is golomb encoded by a second set of context probability models.
In this embodiment, the U component and the V component in the AC coefficient are golombly encoded by the first set of context probability models, and the Y component in the AC coefficient is golombly encoded by the second set of context probability models, where the encoding order of the golomb encoding of the AC coefficient is the same as the second order.
It should be noted that, the multiple context probability models included in the second set of context probability models are different from the multiple context probability models included in the first set of context probability models, the AC coefficients are encoded by the first set of context probability models, prefix codes corresponding to the AC coefficients are generated, and the AC coefficients are encoded by the second set of context probability models, so as to generate suffix codes corresponding to the AC coefficients.
In this embodiment, the AC coefficients are higher order exponential golomb encoded according to the second order, the first set of context probability models, and the second set of context probability models, thereby reducing the number of bits of the encoded code stream.
Optionally, the AC coefficients are determined based on reflectivity information, and the encoding each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient includes:
Each AC coefficient is golomb encoded by a first set of context probability models and a second set of context probability models.
As described above, the first set of context probability models comprises a plurality of context probability models, optionally the context probability models comprises 3 context probability models; the second set of context probability models comprises a plurality of context probability models, optionally the second set of context probability models comprises 3 context probability models. The second set of context probability models includes a plurality of context probability models that are different from the plurality of context probability models included in the first set of context probability models.
In this embodiment, if the AC coefficient is obtained by performing an area adaptive transform based on upsampling prediction on reflectivity information or performing a lifting transform based on hierarchical structure division, the AC coefficient may be subjected to golomb coding by using a first set of context probability models and a second set of context probability models.
One possible situation is that the second order corresponding to the AC coefficient is greater than a fifth preset value. In this case, the encoding order of the golomb encoding of the AC coefficient is the same as the second order.
Another possible situation is that the second order corresponding to the AC coefficient is less than or equal to the fifth preset value. In this case, the encoding order of the golomb encoding of the AC coefficient is 1.
Optionally, the fifth preset value is 1.
In this embodiment, the AC coefficients are higher order exponential golomb encoded according to the second order, the first set of context probability models, and the second set of context probability models, thereby reducing the number of bits of the encoded code stream.
Optionally, the initial probability of the context probability model is a preset probability value.
It should be understood that in the related art, the initial probabilities of the context probability models are all 0.5, that is, the number of bits required for the context probability model to encode 1 and the number of bits required for encoding 0 are the same, which makes the convergence speed of the arithmetic encoding process slower and the encoding efficiency lower.
In this embodiment, the user may set the initial probability of the context probability model by modifying the relevant parameters of the encoder, so as to set the initial probability according to the data distribution rule of the point cloud, thereby facilitating faster convergence of arithmetic coding and improving coding efficiency.
Optionally, the attribute information parameter set of the target code stream includes the first order and scale information, and the scale information is used for determining a second order.
Alternatively, the first order may be represented by a parameter attr_golomb_num. In this embodiment, the parameter is transmitted into the attribute information parameter set of the target code stream, so that the decoding end can decode the transform coefficient according to the parameter. Meanwhile, the attribute information parameter set can be further input with proportion information, the proportion information represents the range of the Columbus orders, and the decoding end can determine the second order through the proportion information.
Optionally, the encoding the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient includes:
acquiring a target identifier;
And under the condition that the target mark is a target value, encoding the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient.
In this embodiment, the target identifier may also be obtained in the attribute information parameter set, where the encoding end starts the transform coefficient encoding method provided in the embodiment of the present application when the target identifier is a target value, that is, the step of executing the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient, and encoding the DC coefficient. And under the condition that the target mark is not the target value, the coding end starts the transformation coefficient coding method in the related technology.
Alternatively, the target value is 1, and the target identifier may be denoted by adaptiveExpGolombFlag. For a more intuitive understanding of the technical effects of transform coefficient encoding provided by the embodiments of the present application, please refer to table one and table two.
Table one:
Y component U component V component
Point cloud type 1 -0.1% -0.1% -0.1%
Point cloud type 2 -0.1% -0.2% -0.2%
Point cloud type 2 -0.1% -0.1% -0.1%
Point cloud type 4 -0.1% -0.1% -0.1%
Point cloud type 5 0.0% 0.0% 0.0%
And (II) table:
Y component U component V component
Point cloud type 1 -0.7% -0.9% -0.8%
Point cloud type 2 -0.7% -0.8% -0.7%
Point cloud type 2 -0.2% -0.3% -0.2%
Point cloud type 4 -0.1% -0.1% -0.1%
Point cloud type 5 0.0% 0.0% 0.0%
The values in the first table and the second table are used for representing the code rate ratio between the code stream generated by the transform coefficient coding and the code stream generated by using the related technology under the condition that the peak signal-to-noise ratio is the same, and it is understood that the lower the value is, the more the code rate is reduced.
For example, the "-0.1%" in the second row and the second column in table one indicates that the code rate of the code stream corresponding to the Y component generated by the transform coefficient coding provided in the embodiment of the present application is reduced by 0.1% compared with the code stream corresponding to the Y component generated by using the related technology.
Referring to fig. 4, fig. 4 is a flowchart illustrating a transform coefficient decoding method according to an embodiment of the application. The transform coefficient decoding method provided by the embodiment comprises the following steps:
S401, the decoding end obtains a target code stream.
The target code stream includes the encoding result of the direct current DC coefficient in the transform coefficient and the encoding result of at least two alternating current AC coefficients in the transform coefficient.
S402, the decoding end decodes the coding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient to obtain the DC coefficient.
In this step, the decoding end may decode the encoding result of the DC coefficient with a context probability model corresponding to the first order and the DC coefficient.
S403, the decoding end decodes the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient to obtain at least two AC coefficients.
In this step, the decoding end may determine the second level based on the first level and the index of the encoding point corresponding to the AC coefficient, or determine the second level based on the scale information included in the attribute information parameter set of the target code stream, for a specific implementation, refer to the following embodiments.
And the decoding end decodes the encoding result of each AC coefficient according to the second order and the context probability model corresponding to each AC coefficient.
S404, the decoding end determines a transformation coefficient according to the DC coefficient and the at least two AC coefficients.
It should be understood that the transform coefficient decoding method provided in this embodiment is an inverse process of the transform coefficient encoding method described above, and will not be repeated here.
Optionally, before the decoding of the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient, the method further includes:
and acquiring the first order from the attribute information parameter set of the target code stream.
As described above, since the encoding side has the first order introduced into the attribute information parameter, the decoding side can acquire the first order from the attribute information parameter set.
Optionally, the decoding the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient includes:
And performing Columbus decoding on the encoding result of the DC coefficient through the first set of context probability models and the second set of context probability models.
It should be appreciated that the decoding order of the golomb decoding of the encoding result of the DC coefficient is the same as the first order. As described above, the first set of context probability models comprises a plurality of context probability models, optionally the first set of context probability models comprises 3 context probability models; the second set of context probability models comprises a plurality of context probability models, optionally the second set of context probability models comprises 3 context probability models. The second set of context probability models includes a plurality of context probability models that are different from the plurality of context probability models included in the first set of context probability models.
Optionally, before the decoding of the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient, the method further includes:
and determining the difference between the first order and the first numerical value as a second order.
In an alternative implementation manner, the decoding end may substitute the first order into the calculation formula related to the encoding end to determine the second order. The manner in which the decoding end calculates the second order is identical to that of the encoding end and will not be repeated here.
Optionally, before the decoding of the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient, the method further includes:
Acquiring proportion information from the attribute information parameter set of the target code stream;
And determining a second order according to the proportion information and the total number of the preset coding points.
In another alternative embodiment, the decoding end obtains the proportion information from the attribute information parameter set, and as described above, the proportion information is used to characterize the range of the golomb order, and further, the second order can be determined according to the relationship between the proportion information and the total number of the preset encoding points.
Optionally, before the decoding of the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient, the method further includes:
determining proportion information according to the ratio between the index of the coding points corresponding to the AC coefficients and the total number of preset coding points;
And determining a second order according to the proportion information and the total number of the coding points.
In this embodiment, the encoding end does not need to transmit the proportion information, and the decoding end determines the proportion information according to the ratio between the index of the encoding point corresponding to the AC coefficient and the total number of the preset encoding points; and further determining a second order according to the scale information and the total number of the encoding points.
Optionally, the DC coefficient is determined based on color information, the DC coefficient includes a Y component, a U component, and a V component, and decoding the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient includes:
Determining a decoding order for performing Columbus decoding on each component of each DC coefficient according to a first order corresponding to each DC coefficient;
based on the decoding order, performing Columbus decoding on the encoding result of the DC coefficient through a first context probability model and a second context probability model.
In this embodiment, if the DC coefficient is obtained by performing an area adaptive transform based on upsampling prediction on color information or performing a lifting transform based on hierarchical structure division, the encoding result of the DC coefficient may be subjected to golomb decoding by the first set of context probability models and the second set of context probability models.
One possible situation is that the first order corresponding to the DC coefficient is greater than the third preset value and less than or equal to the fourth preset value. In this case, the decoding order of performing golomb decoding on the Y component in the DC coefficient is the first order, and the decoding order of performing golomb decoding on the U component and the V component in the DC coefficient is 1.
Another possible situation is that the first order corresponding to the DC coefficient is larger than the fourth preset value. In this case, the decoding order of performing golomb decoding on the U component and the V component in the DC coefficient is a difference between the first order and the fourth preset value, and the decoding order of performing golomb decoding on the Y component in the DC coefficient is 1.
Another possible situation is that the first order corresponding to the DC coefficient is smaller than or equal to the third preset value. In this case, the decoding order of golomb decoding each component of the DC coefficient is 1.
Optionally, the AC coefficients are determined based on color information, the AC coefficients include a Y component, a U component, and a V component, and decoding the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient includes:
determining a decoding order for performing Columbus decoding on the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient;
Based on the decoding order, the encoding result of the AC coefficient is golomb decoded by a first set of context probability models and a second set of context probability models.
In this embodiment, if the AC coefficient is obtained by performing an area adaptive transform based on upsampling prediction on color information or performing a lifting transform based on hierarchical structure division, each component of the AC coefficient may be subjected to golomb decoding by using a first set of context probability models and a second set of context probability models.
One possible situation is that the second order corresponding to the AC coefficient is greater than the third preset value and less than or equal to the fourth preset value. In this case, the decoding order of golomb decoding the Y component in the AC coefficient is the second order, and the decoding order of golomb decoding the U component and the V component in the AC coefficient is 1.
Another possible situation is that the second order corresponding to the AC coefficient is larger than the fourth preset value. In this case, the decoding order of performing golomb decoding on the U component and the V component in the AC coefficient is a difference between the second order and the fourth preset value, and the decoding order of performing golomb decoding on the Y component in the AC coefficient is 1.
Another possible situation is that the second order corresponding to the AC coefficient is less than or equal to the third preset value. In this case, the decoding order of golomb decoding each component of the AC coefficient is 1.
Optionally, the third preset value is 1, and the fourth preset value is 2.
Optionally, the AC coefficients are determined based on color information, the AC coefficients include a Y component, a U component, and a V component, and decoding the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient includes:
And performing Columbus decoding on the encoding result of the AC coefficient through the first set of context probability models and the second set of context probability models.
It should be appreciated that the decoding order of the golomb decoding of the encoding result of the AC coefficient is the same as the second order.
Optionally, the AC coefficients are determined based on reflectivity information, and decoding the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient includes:
The encoding result of each AC coefficient is golombly decoded by the first set of context probability models and the second set of context probability models.
In this embodiment, if the AC coefficient is obtained by performing an area adaptive transform based on upsampling prediction on reflectivity information or performing a lifting transform based on hierarchical structure division, the encoding result of the AC coefficient may be subjected to golomb decoding by using the first set of context probability models and the second set of context probability models.
One possible situation is that the second order corresponding to the AC coefficient is greater than a fifth preset value. In this case, the decoding order of the golomb decoding of the encoding result of the AC coefficient is the same as the second order.
Another possible situation is that the second order corresponding to the AC coefficient is less than or equal to the fifth preset value. In this case, the decoding order of golomb decoding the encoding result of the AC coefficient is 1.
Optionally, the fifth preset value is 1.
Optionally, the initial probability of the context probability model is a preset probability value.
In this embodiment, the initial probability of the context probability model can be set in a self-defined manner, so that the initial probability conforming to the data distribution characteristic can be set according to the data distribution rule of the point cloud, thereby facilitating faster convergence of arithmetic decoding and improving decoding efficiency.
Optionally, the decoding the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient, and obtaining the DC coefficient includes:
acquiring a target identifier;
and decoding the coding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient under the condition that the target mark is a target value, so as to obtain the DC coefficient.
In this embodiment, if the decoding end obtains the target identifier in the attribute information parameter set and the target identifier is the target value, the decoding end starts the transform coefficient decoding method provided by the embodiment of the present application, that is, executes the step of decoding the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient. If the target mark is not the target value, the decoding end starts the transformation coefficient decoding method in the related technology.
Alternatively, the target value is 1, and the target identifier may be denoted by adaptiveExpGolombFlag.
According to the transform coefficient coding method provided by the embodiment of the application, the execution main body can be a transform coefficient coding device. In the embodiment of the present application, a transform coefficient encoding method performed by a transform coefficient encoding apparatus is taken as an example, and the transform coefficient encoding apparatus provided by the embodiment of the present application is described.
As shown in fig. 5, an embodiment of the present application further provides a transform coefficient encoding apparatus 500, including:
an obtaining module 501, configured to obtain a transform coefficient corresponding to a point cloud; the transformation coefficients comprise a Direct Current (DC) coefficient and at least two Alternating Current (AC) coefficients;
A first encoding module 502, configured to encode a DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient;
A second encoding module 503, configured to encode each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient; the second order is determined based on the first order and an index of a coding point corresponding to the AC coefficient;
a generating module 504, configured to generate a target code stream based on the encoding result of the DC coefficient and the encoding result of each AC coefficient.
Optionally, the DC coefficient is determined based on color information, and the transform coefficient encoding apparatus 500 further includes:
and the first determining module is used for determining a first order corresponding to the DC coefficient according to the Columbus order corresponding to at least part of the components of the DC coefficient.
Optionally, the first determining module is specifically configured to:
acquiring a Columbus order corresponding to each component of the DC coefficient;
and determining the Columbus order with the highest occurrence frequency in the Columbus orders corresponding to each component as the first order corresponding to the DC coefficient.
Optionally, the first determining module is further specifically configured to:
acquiring the Columbus order corresponding to each component of the DC coefficient;
And rounding the average value of the Columbus orders corresponding to each component of the DC coefficient to obtain a first order corresponding to the DC coefficient.
Optionally, the first encoding module 502 is specifically configured to:
Performing golomb coding on the DC coefficient by a first set of context probability models and a second set of context probability models;
wherein the encoding order of the golomb encoding the DC coefficient is the same as the first order;
The first set of context probability models includes a plurality of context probability models, the second set of context probability models includes a plurality of context probability models, and the plurality of context probability models included by the second set of context probability models are different from the plurality of context probability models included by the first set of context probability models.
Optionally, the transform coefficient encoding apparatus 500 further includes:
a second determining module, configured to determine a difference between the first order and the first numerical value as a second order;
The first value is the product of a second value and a preset amplitude control parameter, the second value is the calculation result obtained by carrying out logarithmic calculation on a third value, the third value is the maximum value between the first preset value and a fourth value, the fourth value is the multiplication result between a fifth value and the second preset value, and the fifth value is the division result between the index of the coding point and the total number of the coding points.
Optionally, the DC coefficient is determined based on color information, the DC coefficient includes a Y component, a U component, and a V component, and the first encoding device 502 is further specifically configured to:
Determining the coding order of each component of the DC coefficient for performing Columbus coding according to the first order corresponding to the DC coefficient;
Performing golomb coding on each component of the DC coefficient by a first set of context probability models and a second set of context probability models based on the coding order;
When the first order corresponding to the DC coefficient is larger than a third preset value and smaller than or equal to a fourth preset value, the coding order of performing the Columbus coding on the Y component in the DC coefficient is the first order, and the coding order of performing the Columbus coding on the U component and the V component in the DC coefficient is 1; or alternatively, the first and second heat exchangers may be,
When the first order corresponding to the DC coefficient is larger than a fourth preset value, performing Columbus encoding on the U component and the V component in the DC coefficient, wherein the encoding order of the Columbus encoding on the Y component in the DC coefficient is 1, and the encoding order of the Columbus encoding on the Y component in the DC coefficient is the difference value between the first order and the fourth preset value; or alternatively, the first and second heat exchangers may be,
Under the condition that the first order corresponding to the DC coefficient is smaller than or equal to a third preset value, carrying out Columbus coding on each component of the DC coefficient, wherein the coding order is 1;
The first set of context probability models includes a plurality of context probability models, the second set of context probability models includes a plurality of context probability models, and the plurality of context probability models included by the second set of context probability models are different from the plurality of context probability models included by the first set of context probability models.
Optionally, the AC coefficient is determined based on color information, the AC coefficient includes a Y component, a U component, and a V component, and the second encoding module 503 is specifically configured to:
Determining the coding order of each component of the AC coefficient for performing Columbus coding according to the second order corresponding to each AC coefficient;
Performing golomb encoding on each component of the AC coefficient by a first set of context probability models and a second set of context probability models based on the encoding order;
Under the condition that the second order corresponding to the AC coefficient is larger than a third preset value and smaller than or equal to a fourth preset value, the coding order of performing the Columbus coding on the Y component in the AC coefficient is the second order, and the coding order of performing the Columbus coding on the U component and the V component in the AC coefficient is 1; or alternatively, the first and second heat exchangers may be,
Under the condition that the second order corresponding to the AC coefficient is larger than a fourth preset value, the coding order of performing the Columbus coding on the U component and the V component in the AC coefficient is the difference value between the second order and the fourth preset value, and the coding order of performing the Columbus coding on the Y component in the AC coefficient is 1; or alternatively, the first and second heat exchangers may be,
Under the condition that the second order corresponding to the AC coefficient is smaller than or equal to a third preset value, carrying out Columbus coding on each component of the AC coefficient, wherein the coding order is 1;
The first set of context probability models includes a plurality of context probability models, the second set of context probability models includes a plurality of context probability models, and the plurality of context probability models included by the second set of context probability models are different from the plurality of context probability models included by the first set of context probability models.
Optionally, the AC coefficient is determined based on color information, the AC coefficient includes a Y component, a U component, and a V component, and the second encoding module 503 is further specifically configured to:
performing golomb coding on a U component and a V component in the AC coefficient by a first set of context probability models; the coding order of the Columbus coding of the U component and the V component is the same as the second order, and the first set of context probability models comprises a plurality of context probability models;
Performing golomb coding on a Y component in the AC coefficient by a second set of context probability models; the coding order of the golomb coding of the Y component is the same as the second order, the second set of context probability models includes a plurality of context probability models, and the second set of context probability models includes a plurality of context probability models that are different from the plurality of context probability models that the first set of context probability models includes.
Optionally, the AC coefficient is determined based on reflectivity information, and the second encoding module 503 is further specifically configured to:
Performing Columbus encoding on each AC coefficient through a first set of context probability models and a second set of context probability models;
Under the condition that a second order corresponding to the AC coefficient is larger than a fifth preset value, the encoding order of the Columbus encoding of the AC coefficient is the same as the second order; or alternatively, the first and second heat exchangers may be,
Under the condition that the second order corresponding to the AC coefficient is smaller than or equal to a fifth preset value, carrying out Columbus coding on the AC coefficient, wherein the coding order is 1;
The first set of context probability models includes a plurality of context probability models, the second set of context probability models includes a plurality of context probability models, and the plurality of context probability models included by the second set of context probability models are different from the plurality of context probability models included by the first set of context probability models.
Optionally, the initial probability of the context probability model is a preset probability value.
Optionally, the attribute information parameter set of the target code stream includes the first order and scale information, and the scale information is used for determining a second order.
Optionally, the first encoding module 502 is further specifically configured to:
acquiring a target identifier;
And under the condition that the target mark is a target value, encoding the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient.
In the related art, it is necessary to encode the transform coefficients after encoding according to the magnitude of the transform coefficients by a context probability model; compared with the related art, the method for coding the transformation coefficient provided by the embodiment of the application has the advantages that after the transformation coefficient is obtained, the DC coefficient and the AC coefficient which are included in the transformation coefficient are directly coded through the context probability model, so that the transformation coefficient coding of the transformation coefficient can be realized through fewer context probability models, and the bit number of a code stream is further reduced.
The embodiment of the device corresponds to the embodiment of the transform coefficient coding method shown in fig. 3, and each implementation process and implementation manner of the coding end in the embodiment of the method are applicable to the embodiment of the device, and the same technical effects can be achieved.
According to the transform coefficient decoding method provided by the embodiment of the application, the execution main body can be a transform coefficient decoding device. In the embodiment of the present application, a transform coefficient decoding device is taken as an example to execute a transform coefficient decoding method.
As shown in fig. 6, an embodiment of the present application further provides a transform coefficient decoding apparatus 600, including:
a first obtaining module 601, configured to obtain a target code stream; the target code stream comprises the coding result of a Direct Current (DC) coefficient in the transformation coefficient and the coding result of at least two Alternating Current (AC) coefficients in the transformation coefficient;
A first decoding module 602, configured to decode a coding result of the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient, to obtain the DC coefficient;
A second decoding module 603, configured to decode the encoding result of each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient, to obtain at least two AC coefficients; the second order is determined based on the first order and the index of the coding point corresponding to the AC coefficient, or based on the proportion information included in the attribute information parameter set of the target code stream;
A first determining module 604 for determining a transform coefficient based on the DC coefficient and the at least two AC coefficients.
Optionally, the transform coefficient decoding apparatus 600 further includes:
and the second acquisition module is used for acquiring the first order from the attribute information parameter set of the target code stream.
Optionally, the first decoding module 602 is specifically configured to:
Performing Columbus decoding on the encoding result of the DC coefficient through a first set of context probability models and a second set of context probability models;
The decoding order of the encoding result of the DC coefficient for performing Columbus decoding is the same as the first order, the first set of context probability models comprises a plurality of context probability models, the second set of context probability models comprises a plurality of context probability models, and the plurality of context probability models comprised by the second set of context probability models are different from the plurality of context probability models comprised by the first set of context probability models.
Optionally, the transform coefficient decoding apparatus 600 further includes:
a second determining module, configured to determine a difference between the first order and the first numerical value as a second order;
The first value is the product of a second value and a preset amplitude control parameter, the second value is the calculation result obtained by carrying out logarithmic calculation on a third value, the third value is the maximum value between the first preset value and a fourth value, the fourth value is the multiplication result between a fifth value and the second preset value, and the fifth value is the division result between the index of the current coding point corresponding to the AC coefficient and the total number of the coding points.
Optionally, the DC coefficient is determined based on color information, the DC coefficient includes a Y component, a U component, and a V component, and the first decoding module 602 is further specifically configured to:
Determining a decoding order for performing Columbus decoding on each component of each DC coefficient according to a first order corresponding to each DC coefficient;
performing Columbus decoding on the encoding result of the DC coefficient through a first context probability model and a second context probability model based on the decoding order;
When the first order corresponding to the DC coefficient is larger than a third preset value and smaller than or equal to a fourth preset value, the decoding order of performing the Columbus decoding on the Y component in the DC coefficient is the first order, and the decoding order of performing the Columbus decoding on the U component and the V component in the DC coefficient is 1; or alternatively, the first and second heat exchangers may be,
When the first order corresponding to the DC coefficient is larger than a fourth preset value, performing Columbus decoding on the U component and the V component in the DC coefficient, wherein the decoding order is a difference value between the first order and the fourth preset value, and performing Columbus decoding on the Y component in the DC coefficient, wherein the decoding order is 1; or alternatively, the first and second heat exchangers may be,
And when the first order corresponding to the DC coefficient is smaller than or equal to a third preset value, performing Columbus decoding on the encoding result of the DC coefficient, wherein the decoding order is 1.
Optionally, the transform coefficient decoding apparatus 600 further includes:
The third acquisition module is used for acquiring the proportion information from the attribute information parameter set of the target code stream;
and the third determining module is used for determining a second order according to the proportion information and the total number of the preset encoding points.
Optionally, the transform coefficient decoding apparatus 600 further includes:
A fourth determining module, configured to determine proportion information according to a ratio between an index of the encoding points corresponding to the AC coefficient and a preset total number of encoding points;
And a fifth determining module, configured to determine a second order according to the scale information and the total number of the encoding points.
Optionally, the AC coefficient is determined based on color information, the AC coefficient includes a Y component, a U component, and a V component, and the second decoding module 603 is specifically configured to:
determining a decoding order for performing Columbus decoding on the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient;
performing golomb decoding on the encoding result of the AC coefficient by a first set of context probability models and a second set of context probability models based on the decoding order;
When the second order corresponding to the AC coefficient is larger than a third preset value and smaller than or equal to a fourth preset value, the decoding order of performing the Columbus decoding on the Y component in the AC coefficient is the second order, and the decoding order of performing the Columbus decoding on the U component and the V component in the AC coefficient is 1; or alternatively, the first and second heat exchangers may be,
When the second order corresponding to the AC coefficient is larger than a fourth preset value, performing Columbus decoding on the U component and the V component in the AC coefficient, wherein the decoding order is a difference value between the second order and the fourth preset value, and performing Columbus decoding on the Y component in the AC coefficient, wherein the decoding order is 1; or alternatively, the first and second heat exchangers may be,
Under the condition that the second order corresponding to the AC coefficient is smaller than or equal to a third preset value, performing Columbus decoding on the encoding result of the AC coefficient, wherein the decoding order is 1;
The first set of context probability models includes a plurality of context probability models, the second set of context probability models includes a plurality of context probability models, and the plurality of context probability models included by the second set of context probability models are different from the plurality of context probability models included by the first set of context probability models.
Optionally, the AC coefficient is determined based on color information, the AC coefficient includes a Y component, a U component, and a V component, and the second decoding module 603 is further specifically configured to:
Performing Columbus decoding on the encoding result of the AC coefficient through a first set of context probability models and a second set of context probability models;
the decoding order of the encoding result of the AC coefficient for performing Columbus decoding is the same as the second order, the first set of context probability models comprises a plurality of context probability models, the second set of context probability models comprises a plurality of context probability models, and the plurality of context probability models comprised by the second set of context probability models are different from the plurality of context probability models comprised by the first set of context probability models.
Optionally, the AC coefficient is determined based on reflectivity information, and the second decoding module 603 is further specifically configured to:
performing Columbus decoding on the encoding result of each AC coefficient through the first set of context probability models and the second set of context probability models;
under the condition that a second order corresponding to the AC coefficient is larger than a fifth preset value, decoding order of performing Columbus decoding on the encoding result of the AC coefficient is the same as the second order; or alternatively, the first and second heat exchangers may be,
Under the condition that the second order corresponding to the AC coefficient is smaller than or equal to a fifth preset value, performing Columbus decoding on the encoding result of the AC coefficient, wherein the decoding order is 1;
The first set of context probability models includes a plurality of context probability models, the second set of context probability models includes a plurality of context probability models, and the plurality of context probability models included by the second set of context probability models are different from the plurality of context probability models included by the first set of context probability models.
Optionally, the initial probability of the context probability model is a preset probability value.
Optionally, the first decoding module 602 is further specifically configured to:
acquiring a target identifier;
and decoding the coding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient under the condition that the target mark is a target value, so as to obtain the DC coefficient.
The transform coefficient decoding device provided by the embodiment of the present application can implement each process implemented by the method embodiment of fig. 4, and achieve the same technical effects, and in order to avoid repetition, a detailed description is omitted here.
The transform coefficient encoding apparatus and the transform coefficient decoding apparatus in the embodiments of the present application may be electronic devices, for example, electronic devices having an operating system, or may be components in electronic devices, for example, integrated circuits or chips. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the terminals may include, but are not limited to, the types of terminals listed above, other devices may be servers, network attached storage (Network Attached Storage, NAS), etc., and embodiments of the present application are not limited in detail.
Optionally, as shown in fig. 7, the embodiment of the present application further provides a communication device 700, including a processor 701 and a memory 702, where the memory 702 stores a program or an instruction that can be executed on the processor 701, for example, when the communication device 700 is a terminal, the program or the instruction is executed by the processor 701 to implement each step of the above-mentioned transform coefficient encoding method embodiment, or implement each step of the above-mentioned transform coefficient decoding method embodiment, and achieve the same technical effects.
The embodiment of the application also provides a terminal, which comprises a processor and a communication interface, wherein the processor is used for executing the following operations:
Obtaining a transformation coefficient corresponding to the point cloud;
encoding the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient;
Encoding each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient;
a target code stream is generated based on the encoding result of the DC coefficient and the encoding result of each AC coefficient.
Or the processor is configured to perform the following operations:
obtaining a target code stream;
Decoding the coding result of the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient to obtain the DC coefficient;
decoding the encoding result of each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient to obtain at least two AC coefficients;
A transform coefficient is determined from the DC coefficient and the at least two AC coefficients.
The terminal embodiment corresponds to the terminal-side method embodiment, and each implementation process and implementation manner of the method embodiment can be applied to the terminal embodiment, and the same technical effects can be achieved. Specifically, fig. 8 is a schematic diagram of a hardware structure of a terminal for implementing an embodiment of the present application.
The terminal 800 includes, but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, and processor 810.
Those skilled in the art will appreciate that the terminal 800 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 810 by a power management system for performing functions such as managing charging, discharging, and power consumption by the power management system. The terminal structure shown in fig. 8 does not constitute a limitation of the terminal, and the terminal may include more or less components than shown, or may combine certain components, or may be arranged in different components, which will not be described in detail herein.
It should be appreciated that in embodiments of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, with the graphics processor 8041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. Touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two parts, a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
In the embodiment of the present application, after receiving downlink data from the network side device, the radio frequency unit 801 may transmit the downlink data to the processor 88 for processing; the radio frequency unit 801 may send uplink data to the network side device. In general, the radio frequency unit 801 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 809 may be used to store software programs or instructions and various data. The memory 809 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 809 may include volatile memory or nonvolatile memory, or the memory 809 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDRSDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCH LINK DRAM, SLDRAM), and Direct random access memory (DRRAM). Memory 809 in embodiments of the application includes, but is not limited to, these and any other suitable types of memory.
The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 810.
The processor 801 is configured to perform the following operations:
Obtaining a transformation coefficient corresponding to the point cloud;
encoding the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient;
Encoding each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient;
a target code stream is generated based on the encoding result of the DC coefficient and the encoding result of each AC coefficient.
Or the processor 801 is further configured to:
obtaining a target code stream;
Decoding the coding result of the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient to obtain the DC coefficient;
decoding the encoding result of each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient to obtain at least two AC coefficients;
A transform coefficient is determined from the DC coefficient and the at least two AC coefficients.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction implements each process of the above-mentioned transform coefficient encoding method embodiment or implements each process of the above-mentioned transform coefficient decoding method embodiment when executed by a processor, and the process can achieve the same technical effect, so that repetition is avoided and no further description is given here.
Wherein the processor is a processor in the terminal described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or instructions, implementing each process of the above transform coefficient coding method embodiment, or implementing each process of the above transform coefficient decoding method embodiment, and achieving the same technical effect, so that repetition is avoided, and no further description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, or the like.
The embodiments of the present application further provide a computer program/program product stored in a storage medium, where the computer program/program product is executed by at least one processor to implement each process of the above transform coefficient coding method embodiment, or implement each process of the above transform coefficient decoding method embodiment, and achieve the same technical effects, so that repetition is avoided and no further description is given here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (29)

1.一种变换系数编码方法,其特征在于,包括:1. A transform coefficient encoding method, comprising: 编码端获取点云对应的变换系数;所述变换系数包括直流DC系数和至少两个交流AC系数;The encoding end obtains the transformation coefficient corresponding to the point cloud; the transformation coefficient includes a direct current (DC) coefficient and at least two alternating current (AC) coefficients; 所述编码端根据DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数进行编码;The encoding end encodes the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient; 所述编码端根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数进行编码;所述第二阶数基于所述第一阶数和所述AC系数对应的编码点的索引确定;The encoding end encodes each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient; the second order is determined based on the first order and an index of a coding point corresponding to the AC coefficient; 所述编码端基于对所述DC系数的编码结果和对所述每个AC系数的编码结果,生成目标码流。The encoding end generates a target bit stream based on the encoding result of the DC coefficient and the encoding result of each AC coefficient. 2.根据权利要求1所述的方法,其特征在于,所述DC系数是基于颜色信息确定的,所述根据DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数进行编码之前,所述方法还包括:2. The method according to claim 1, characterized in that the DC coefficient is determined based on color information, and before encoding the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient, the method further comprises: 所述编码端根据所述DC系数的至少部分分量对应的哥伦布阶数,确定所述DC系数对应的第一阶数。The encoding end determines a first order corresponding to the DC coefficient according to a Golomb order corresponding to at least a portion of a component of the DC coefficient. 3.根据权利要求2所述的方法,其特征在于,所述根据所述DC系数的至少部分分量对应的哥伦布阶数,确定所述DC系数对应的第一阶数包括:3. The method according to claim 2, wherein determining the first order corresponding to the DC coefficient according to the Golomb order corresponding to at least part of the components of the DC coefficient comprises: 所述编码端获取所述DC系数的每个分量对应的哥伦布阶数;The encoding end obtains the Golomb order corresponding to each component of the DC coefficient; 所述编码端将所述每个分量对应的哥伦布阶数中出现频率最高的哥伦布阶数,确定为所述DC系数对应的第一阶数。The encoding end determines the Golomb order with the highest occurrence frequency among the Golomb orders corresponding to each component as the first order corresponding to the DC coefficient. 4.根据权利要求2所述的方法,其特征在于,所述根据所述DC系数的至少部分分量对应的哥伦布阶数,确定所述DC系数对应的第一阶数包括:4. The method according to claim 2, wherein determining the first order corresponding to the DC coefficient according to the Golomb order corresponding to at least part of the components of the DC coefficient comprises: 所述编码端获取DC系数的每个分量对应的哥伦布阶数;The encoding end obtains the Golomb order corresponding to each component of the DC coefficient; 所述编码端对所述DC系数的每个分量对应的哥伦布阶数的平均值取整,获得所述DC系数对应的第一阶数。The encoding end rounds the average value of the Golomb order corresponding to each component of the DC coefficient to obtain a first order corresponding to the DC coefficient. 5.根据权利要求1-4中任一项所述的方法,其特征在于,所述根据DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数进行编码包括:5. The method according to any one of claims 1 to 4, characterized in that encoding the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient comprises: 所述编码端通过第一组上下文概率模型和第二组上下文概率模型,对所述DC系数进行哥伦布编码;The encoding end performs Golomb coding on the DC coefficient by using a first group of context probability models and a second group of context probability models; 其中,对所述DC系数进行哥伦布编码的编码阶数与所述第一阶数相同;wherein the coding order of Golomb coding of the DC coefficient is the same as the first order; 所述第一组上下文概率模型包括多个上下文概率模型,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。The first group of context probability models includes multiple context probability models, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 6.根据权利要求1-4中任一项所述的方法,其特征在于,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数进行编码之前,所述方法还包括:6. The method according to any one of claims 1 to 4, characterized in that before encoding each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient, the method further comprises: 所述编码端将所述第一阶数与第一数值之间的差值,确定为第二阶数;The encoding end determines the difference between the first order and the first value as the second order; 其中,所述第一数值为第二数值与预设的幅度控制参数之间的乘积,所述第二数值为对第三数值执行对数计算后的计算结果,所述第三数值为第一预设值与第四数值之间的最大值,所述第四数值为第五数值与第二预设值之间的乘法结果,所述第五数值为所述编码点的索引与编码点的总数量之间的除法结果。Among them, the first value is the product of the second value and the preset amplitude control parameter, the second value is the calculation result after performing logarithmic calculation on the third value, the third value is the maximum value between the first preset value and the fourth value, the fourth value is the multiplication result between the fifth value and the second preset value, and the fifth value is the division result between the index of the coding point and the total number of coding points. 7.根据权利要求1-4中任一项所述的方法,其特征在于,所述DC系数是基于颜色信息确定的,所述DC系数包括Y分量、U分量和V分量,所述根据DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数进行编码包括:7. The method according to any one of claims 1 to 4, characterized in that the DC coefficient is determined based on color information, the DC coefficient includes a Y component, a U component, and a V component, and encoding the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient comprises: 所述编码端根据所述DC系数对应的第一阶数,确定对所述DC系数的每个分量进行哥伦布编码的编码阶数;The encoding end determines, according to the first order corresponding to the DC coefficient, a coding order for performing Golomb coding on each component of the DC coefficient; 所述编码端基于所述编码阶数,通过第一组上下文概率模型和第二组上下文概率模型,对所述DC系数的每个分量进行哥伦布编码;The encoding end performs Golomb coding on each component of the DC coefficient through a first group of context probability models and a second group of context probability models based on the coding order; 其中,在所述DC系数对应的第一阶数大于第三预设值,且小于或等于第四预设值的情况下,对DC系数中的Y分量进行哥伦布编码的编码阶数为所述第一阶数,对所述DC系数中的U分量和V分量进行哥伦布编码的编码阶数为1;或,Wherein, when the first order corresponding to the DC coefficient is greater than the third preset value and less than or equal to the fourth preset value, the coding order of Golomb coding of the Y component in the DC coefficient is the first order, and the coding order of Golomb coding of the U component and the V component in the DC coefficient is 1; or, 在所述DC系数对应的第一阶数大于第四预设值的情况下,对所述DC系数中的U分量和V分量进行哥伦布编码的编码阶数为所述第一阶数与所述第四预设值之间的差值,对所述DC系数中的Y分量进行哥伦布编码的编码阶数为1;或,When the first order corresponding to the DC coefficient is greater than a fourth preset value, the coding order of Golomb coding of the U component and the V component in the DC coefficient is the difference between the first order and the fourth preset value, and the coding order of Golomb coding of the Y component in the DC coefficient is 1; or 在所述DC系数对应的第一阶数小于或等于第三预设值的情况下,对所述DC系数的每个分量进行哥伦布编码的编码阶数为1;When the first order corresponding to the DC coefficient is less than or equal to a third preset value, the coding order of Golomb coding performed on each component of the DC coefficient is 1; 所述第一组上下文概率模型包括多个上下文概率模型,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。The first group of context probability models includes multiple context probability models, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 8.根据权利要求1-4中任一项所述的方法,其特征在于,所述AC系数是基于颜色信息确定的,所述AC系数包括Y分量、U分量和V分量,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数进行编码包括:8. The method according to any one of claims 1 to 4, characterized in that the AC coefficient is determined based on color information, the AC coefficient includes a Y component, a U component, and a V component, and encoding each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient comprises: 所述编码端根据每个AC系数对应的第二阶数,确定对所述AC系数的每个分量进行哥伦布编码的编码阶数;The encoding end determines, according to the second order corresponding to each AC coefficient, a coding order for performing Golomb coding on each component of the AC coefficient; 所述编码端基于所述编码阶数,通过第一组上下文概率模型和第二组上下文概率模型,对所述AC系数的每个分量进行哥伦布编码;The encoding end performs Golomb coding on each component of the AC coefficient by using a first group of context probability models and a second group of context probability models based on the coding order; 其中,在所述AC系数对应的第二阶数大于第三预设值,且小于或等于第四预设值的情况下,对AC系数中的Y分量进行哥伦布编码的编码阶数为所述第二阶数,对所述AC系数中的U分量和V分量进行哥伦布编码的编码阶数为1;或,Wherein, when the second order corresponding to the AC coefficient is greater than the third preset value and less than or equal to the fourth preset value, the coding order of Golomb coding the Y component in the AC coefficient is the second order, and the coding order of Golomb coding the U component and the V component in the AC coefficient is 1; or, 在所述AC系数对应的第二阶数大于第四预设值的情况下,对所述AC系数中的U分量和V分量进行哥伦布编码的编码阶数为所述第二阶数与所述第四预设值之间的差值,对所述AC系数中的Y分量进行哥伦布编码的编码阶数为1;或,When the second order corresponding to the AC coefficient is greater than a fourth preset value, the coding order of Golomb coding of the U component and the V component in the AC coefficient is the difference between the second order and the fourth preset value, and the coding order of Golomb coding of the Y component in the AC coefficient is 1; or 在所述AC系数对应的第二阶数小于或等于第三预设值的情况下,对所述AC系数的每个分量进行哥伦布编码的编码阶数为1;When the second order corresponding to the AC coefficient is less than or equal to a third preset value, the coding order of Golomb coding performed on each component of the AC coefficient is 1; 所述第一组上下文概率模型包括多个上下文概率模型,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。The first group of context probability models includes multiple context probability models, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 9.根据权利要求1-4中任一项所述的方法,其特征在于,所述AC系数是基于颜色信息确定的,所述AC系数包括Y分量、U分量和V分量,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数进行编码包括:9. The method according to any one of claims 1 to 4, characterized in that the AC coefficient is determined based on color information, the AC coefficient includes a Y component, a U component, and a V component, and encoding each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient comprises: 所述编码端通过第一组上下文概率模型,对所述AC系数中的U分量和V分量进行哥伦布编码;对所述U分量和V分量进行哥伦布编码的编码阶数与所述第二阶数相同,所述第一组上下文概率模型包括多个上下文概率模型;The encoding end performs Golomb coding on the U component and the V component in the AC coefficient through a first group of context probability models; the coding order of the Golomb coding on the U component and the V component is the same as the second order, and the first group of context probability models includes a plurality of context probability models; 所述编码端通过第二组上下文概率模型,对所述AC系数中的Y分量进行哥伦布编码;对所述Y分量进行哥伦布编码的编码阶数与所述第二阶数相同,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。The encoding end performs Golomb coding on the Y component in the AC coefficient through a second group of context probability models; the coding order of the Golomb coding of the Y component is the same as the second order, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 10.根据权利要求1-4中任一项所述的方法,其特征在于,所述AC系数是基于反射率信息确定的,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数进行编码包括:10. The method according to any one of claims 1 to 4, characterized in that the AC coefficient is determined based on reflectivity information, and encoding each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient comprises: 所述编码端通过第一组上下文概率模型和第二组上下文概率模型对每个AC系数进行哥伦布编码;The encoding end performs Golomb coding on each AC coefficient by using a first group of context probability models and a second group of context probability models; 其中,在AC系数对应的第二阶数大于第五预设值的情况下,对所述AC系数进行哥伦布编码的编码阶数与所述第二阶数相同;或,Wherein, when the second order corresponding to the AC coefficient is greater than a fifth preset value, the coding order of Golomb coding performed on the AC coefficient is the same as the second order; or, 在AC系数对应的第二阶数小于或等于第五预设值的情况下,对所述AC系数进行哥伦布编码的编码阶数为1;When the second order corresponding to the AC coefficient is less than or equal to the fifth preset value, the coding order of Golomb coding for the AC coefficient is 1; 所述第一组上下文概率模型包括多个上下文概率模型,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。The first group of context probability models includes multiple context probability models, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 11.根据权利要求1-10中任一项所述的方法,其特征在于,所述上下文概率模型的初始概率为预设概率值。11. The method according to any one of claims 1-10 is characterized in that the initial probability of the context probability model is a preset probability value. 12.根据权利要求1-10中任一项所述的方法,其特征在于,所述目标码流的属性信息参数集包括所述第一阶数和比例信息,所述比例信息用于确定第二阶数。12. The method according to any one of claims 1-10, characterized in that the attribute information parameter set of the target code stream includes the first order and ratio information, and the ratio information is used to determine the second order. 13.根据权利要求1-10中任一项所述的方法,其特征在于,所述根据DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数进行编码包括:13. The method according to any one of claims 1 to 10, characterized in that encoding the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient comprises: 所述编码端获取目标标识;The encoding end obtains a target identifier; 所述编码端在所述目标标识为目标值的情况下,根据DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数进行编码。When the target identifier is a target value, the encoding end encodes the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient. 14.一种变换系数解码方法,其特征在于,包括:14. A transform coefficient decoding method, comprising: 解码端获取目标码流;所述目标码流包括变换系数中的直流DC系数的编码结果和所述变换系数中的至少两个交流AC系数的编码结果;The decoding end obtains a target code stream; the target code stream includes the encoding result of the DC coefficient in the transform coefficient and the encoding result of at least two AC coefficients in the transform coefficient; 所述解码端根据所述DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数的编码结果进行解码,获得所述DC系数;The decoding end decodes the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient to obtain the DC coefficient; 所述解码端根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数的编码结果进行解码,获得至少两个AC系数;所述第二阶数基于所述第一阶数和所述AC系数对应的编码点的索引确定,或者基于目标码流的属性信息参数集包括的比例信息确定;The decoding end decodes the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient to obtain at least two AC coefficients; the second order is determined based on the first order and the index of the coding point corresponding to the AC coefficient, or based on the ratio information included in the attribute information parameter set of the target code stream; 所述解码端根据所述DC系数和所述至少两个AC系数,确定变换系数。The decoding end determines a transform coefficient according to the DC coefficient and the at least two AC coefficients. 15.根据权利要求14所述的方法,其特征在于,所述根据所述DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数的编码结果进行解码之前,所述方法还包括:15. The method according to claim 14, characterized in that before decoding the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient, the method further comprises: 所述解码端从所述目标码流的属性信息参数集中获取所述第一阶数。The decoding end obtains the first order from a property information parameter set of the target code stream. 16.根据权利要求14或15所述的方法,其特征在于,所述根据所述DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数的编码结果进行解码包括:16. The method according to claim 14 or 15, characterized in that decoding the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient comprises: 所述解码端通过第一组上下文概率模型和第二组上下文概率模型,对所述DC系数的编码结果进行哥伦布解码;The decoding end performs Columbus decoding on the encoding result of the DC coefficient by using the first group of context probability models and the second group of context probability models; 其中,对所述DC系数的编码结果进行哥伦布解码的解码阶数与所述第一阶数相同,所述第一组上下文概率模型包括多个上下文概率模型,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。Among them, the decoding order of Columbus decoding on the encoding result of the DC coefficient is the same as the first order, the first group of context probability models includes multiple context probability models, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 17.根据权利要求14所述的方法,其特征在于,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数的编码结果进行解码之前,所述方法还包括:17. The method according to claim 14, characterized in that before decoding the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient, the method further comprises: 所述解码端将所述第一阶数与第一数值之间的差值,确定为第二阶数;The decoding end determines the difference between the first order and the first value as the second order; 其中,所述第一数值为第二数值与预设的幅度控制参数之间的乘积,所述第二数值为对第三数值执行对数计算后的计算结果,所述第三数值为第一预设值与第四数值之间的最大值,所述第四数值为第五数值与第二预设值之间的乘法结果,所述第五数值为所述AC系数对应的当前编码点的索引与编码点的总数量之间的除法结果。Among them, the first value is the product of the second value and the preset amplitude control parameter, the second value is the calculation result of performing logarithmic calculation on the third value, the third value is the maximum value between the first preset value and the fourth value, the fourth value is the multiplication result between the fifth value and the second preset value, and the fifth value is the division result between the index of the current coding point corresponding to the AC coefficient and the total number of coding points. 18.根据权利要求14或15所述的方法,其特征在于,所述DC系数是基于颜色信息确定的,所述DC系数包括Y分量、U分量和V分量,所述根据所述DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数的编码结果进行解码包括:18. The method according to claim 14 or 15, characterized in that the DC coefficient is determined based on color information, the DC coefficient includes a Y component, a U component and a V component, and the decoding of the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient comprises: 所述解码端根据每个DC系数对应的第一阶数,确定对所述DC系数的每个分量进行哥伦布解码的解码阶数;The decoding end determines, according to the first order corresponding to each DC coefficient, a decoding order for performing Golomb decoding on each component of the DC coefficient; 所述解码端基于所述解码阶数,通过第一上下文概率模型和第二上下文概率模型,对所述DC系数的编码结果进行哥伦布解码;The decoding end performs Golomb decoding on the encoding result of the DC coefficient through a first context probability model and a second context probability model based on the decoding order; 其中,在所述DC系数对应的第一阶数大于第三预设值,且小于或等于第四预设值的情况下,对DC系数中的Y分量进行哥伦布解码的解码阶数为所述第一阶数,对所述DC系数中的U分量和V分量进行哥伦布解码的解码阶数为1;或,Wherein, when the first order corresponding to the DC coefficient is greater than the third preset value and less than or equal to the fourth preset value, the decoding order of Golomb decoding of the Y component in the DC coefficient is the first order, and the decoding order of Golomb decoding of the U component and the V component in the DC coefficient is 1; or, 在所述DC系数对应的第一阶数大于第四预设值的情况下,对所述DC系数中的U分量和V分量进行哥伦布解码的解码阶数为所述第一阶数与所述第四预设值之间的差值,对所述DC系数中的Y分量进行哥伦布解码的解码阶数为1;或,When the first order corresponding to the DC coefficient is greater than a fourth preset value, the decoding order of Golomb decoding of the U component and the V component in the DC coefficient is the difference between the first order and the fourth preset value, and the decoding order of Golomb decoding of the Y component in the DC coefficient is 1; or 在所述DC系数对应的第一阶数小于或等于第三预设值的情况下,对所述DC系数的编码结果进行哥伦布解码的解码阶数为1。When the first order corresponding to the DC coefficient is less than or equal to the third preset value, the decoding order of Golomb decoding performed on the encoding result of the DC coefficient is 1. 19.根据权利要求14所述的方法,其特征在于,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数的编码结果进行解码之前,所述方法还包括:19. The method according to claim 14, characterized in that before decoding the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient, the method further comprises: 所述解码端从所述目标码流的属性信息参数集中获取比例信息;The decoding end obtains the ratio information from the attribute information parameter set of the target bitstream; 所述解码端根据所述比例信息和预设的编码点的总数量,确定第二阶数。The decoding end determines the second order according to the ratio information and the total number of preset code points. 20.根据权利要求14所述的方法,其特征在于,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数的编码结果进行解码之前,所述方法还包括:20. The method according to claim 14, characterized in that before decoding the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient, the method further comprises: 所述编码端根据所述AC系数对应的编码点的索引和预设的编码点的总数量之间的比值,确定比例信息;The encoding end determines the ratio information according to the ratio between the index of the encoding point corresponding to the AC coefficient and the total number of preset encoding points; 所述编码端根据所述比例信息和所述编码点的总数量,确定第二阶数。The encoding end determines a second order according to the ratio information and the total number of the encoding points. 21.根据权利要求14、17、19和20中任一项所述的方法,其特征在于,所述AC系数是基于颜色信息确定的,所述AC系数包括Y分量、U分量和V分量,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数的编码结果进行解码包括:21. The method according to any one of claims 14, 17, 19 and 20, characterized in that the AC coefficient is determined based on color information, the AC coefficient includes a Y component, a U component and a V component, and the decoding of the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient comprises: 所述解码端根据每个AC系数对应的第二阶数,确定对所述AC系数的编码结果进行哥伦布解码的解码阶数;The decoding end determines, according to the second order corresponding to each AC coefficient, a decoding order for performing Golomb decoding on the encoding result of the AC coefficient; 所述解码端基于所述解码阶数,通过第一组上下文概率模型和第二组上下文概率模型,对所述AC系数的编码结果进行哥伦布解码;The decoding end performs Golomb decoding on the encoding result of the AC coefficient through a first group of context probability models and a second group of context probability models based on the decoding order; 其中,在所述AC系数对应的第二阶数大于第三预设值,且小于或等于第四预设值的情况下,对AC系数中的Y分量进行哥伦布解码的解码阶数为所述第二阶数,对所述AC系数中的U分量和V分量进行哥伦布解码的解码阶数为1;或,Wherein, when the second order corresponding to the AC coefficient is greater than the third preset value and less than or equal to the fourth preset value, the decoding order of Golomb decoding of the Y component in the AC coefficient is the second order, and the decoding order of Golomb decoding of the U component and the V component in the AC coefficient is 1; or, 在所述AC系数对应的第二阶数大于第四预设值的情况下,对所述AC系数中的U分量和V分量进行哥伦布解码的解码阶数为所述第二阶数与所述第四预设值之间的差值,对所述AC系数中的Y分量进行哥伦布解码的解码阶数为1;或,When the second order corresponding to the AC coefficient is greater than a fourth preset value, the decoding order of Golomb decoding of the U component and the V component in the AC coefficient is the difference between the second order and the fourth preset value, and the decoding order of Golomb decoding of the Y component in the AC coefficient is 1; or 在所述AC系数对应的第二阶数小于或等于第三预设值的情况下,对所述AC系数的编码结果进行哥伦布解码的解码阶数为1;When the second order corresponding to the AC coefficient is less than or equal to the third preset value, the decoding order of performing Golomb decoding on the encoding result of the AC coefficient is 1; 所述第一组上下文概率模型包括多个上下文概率模型,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。The first group of context probability models includes multiple context probability models, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 22.根据权利要求14、17、19和20中任一项所述的方法,其特征在于,所述AC系数是基于颜色信息确定的,所述AC系数包括Y分量、U分量和V分量,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数的编码结果进行解码包括:22. The method according to any one of claims 14, 17, 19 and 20, characterized in that the AC coefficient is determined based on color information, the AC coefficient includes a Y component, a U component and a V component, and the decoding of the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient comprises: 所述解码端通过第一组上下文概率模型和第二组上下文概率模型,对所述AC系数的编码结果进行哥伦布解码;The decoding end performs Columbus decoding on the encoding result of the AC coefficient by using the first group of context probability models and the second group of context probability models; 其中,对所述AC系数的编码结果进行哥伦布解码的解码阶数与所述第二阶数相同,所述第一组上下文概率模型包括多个上下文概率模型,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。Among them, the decoding order of Columbus decoding on the encoding result of the AC coefficient is the same as the second order, the first group of context probability models includes multiple context probability models, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 23.根据权利要求14、17、19和20中任一项所述的方法,其特征在于,所述AC系数是基于反射率信息确定的,所述根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数的编码结果进行解码包括:23. The method according to any one of claims 14, 17, 19 and 20, characterized in that the AC coefficient is determined based on reflectivity information, and the decoding of the encoding result of each AC coefficient according to the second order corresponding to each AC coefficient and the context probability model corresponding to each AC coefficient comprises: 所述解码端通过第一组上下文概率模型和第二组上下文概率模型对每个AC系数的编码结果进行哥伦布解码;The decoding end performs Golomb decoding on the encoding result of each AC coefficient by using the first group of context probability models and the second group of context probability models; 其中,在AC系数对应的第二阶数大于第五预设值的情况下,对所述AC系数的编码结果进行哥伦布解码的解码阶数与所述第二阶数相同;或,Wherein, when the second order corresponding to the AC coefficient is greater than a fifth preset value, the decoding order of Golomb decoding performed on the encoding result of the AC coefficient is the same as the second order; or, 在AC系数对应的第二阶数小于或等于第五预设值的情况下,对所述AC系数的编码结果进行哥伦布解码的解码阶数为1;When the second order corresponding to the AC coefficient is less than or equal to the fifth preset value, the decoding order of performing Golomb decoding on the encoding result of the AC coefficient is 1; 所述第一组上下文概率模型包括多个上下文概率模型,所述第二组上下文概率模型包括多个上下文概率模型,且所述第二组上下文概率模型包括的多个上下文概率模型与所述第一组上下文概率模型包括的多个上下文概率模型不同。The first group of context probability models includes multiple context probability models, the second group of context probability models includes multiple context probability models, and the multiple context probability models included in the second group of context probability models are different from the multiple context probability models included in the first group of context probability models. 24.根据权利要求14-23中任一项所述的方法,其特征在于,所述上下文概率模型的初始概率为预设概率值。24. The method according to any one of claims 14-23 is characterized in that the initial probability of the context probability model is a preset probability value. 25.根据权利要求14-23中任一项所述的方法,其特征在于,所述根据所述DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数的编码结果进行解码,获得所述DC系数包括:25. The method according to any one of claims 14 to 23, characterized in that the decoding of the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient to obtain the DC coefficient comprises: 所述解码端获取目标标识;The decoding end obtains the target identifier; 所述解码端在所述目标标识为目标值的情况下,根据所述DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数的编码结果进行解码,获得所述DC系数。When the target identifier is a target value, the decoding end decodes the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient to obtain the DC coefficient. 26.一种变换系数编码装置,其特征在于,包括:26. A transform coefficient encoding device, comprising: 获取模块,用于获取点云对应的变换系数;所述变换系数包括直流DC系数和至少两个交流AC系数;An acquisition module, used to acquire transformation coefficients corresponding to the point cloud; the transformation coefficients include a direct current (DC) coefficient and at least two alternating current (AC) coefficients; 第一编码模块,用于根据DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数进行编码;A first encoding module, configured to encode the DC coefficient according to a first order corresponding to the DC coefficient and a context probability model corresponding to the DC coefficient; 第二编码模块,用于根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数进行编码;所述第二阶数基于所述第一阶数和所述AC系数对应的编码点的索引确定;A second encoding module, configured to encode each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient; the second order is determined based on the first order and an index of a coding point corresponding to the AC coefficient; 生成模块,用于基于对所述DC系数的编码结果和对所述每个AC系数的编码结果,生成目标码流。A generating module is used to generate a target bit stream based on the encoding result of the DC coefficient and the encoding result of each AC coefficient. 27.一种变换系数解码装置,其特征在于,包括:27. A transform coefficient decoding device, comprising: 第一获取模块,用于获取目标码流;所述目标码流包括变换系数中的直流DC系数的编码结果和所述变换系数中的至少两个交流AC系数的编码结果;A first acquisition module is used to acquire a target bit stream; the target bit stream includes an encoding result of a DC coefficient in a transform coefficient and an encoding result of at least two AC coefficients in the transform coefficient; 第一解码模块,用于根据所述DC系数对应的第一阶数和所述DC系数对应的上下文概率模型,对所述DC系数的编码结果进行解码,获得所述DC系数;A first decoding module, configured to decode the encoding result of the DC coefficient according to the first order corresponding to the DC coefficient and the context probability model corresponding to the DC coefficient, so as to obtain the DC coefficient; 第二解码模块,用于根据每个AC系数对应的第二阶数和所述每个AC系数对应的上下文概率模型,对所述每个AC系数的编码结果进行解码,获得至少两个AC系数;所述第二阶数基于所述第一阶数和所述AC系数对应的编码点的索引确定,或者基于目标码流的属性信息参数集包括的比例信息确定;A second decoding module, configured to decode the encoding result of each AC coefficient according to a second order corresponding to each AC coefficient and a context probability model corresponding to each AC coefficient, to obtain at least two AC coefficients; the second order is determined based on the first order and the index of the coding point corresponding to the AC coefficient, or based on the ratio information included in the attribute information parameter set of the target code stream; 第一确定模块,用于根据所述DC系数和所述至少两个AC系数,确定变换系数。The first determination module is used to determine a transformation coefficient according to the DC coefficient and the at least two AC coefficients. 28.一种终端,其特征在于,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-13中任一项所述的变换系数编码装置的步骤,或者实现如权利要求14-25中任一项所述的变换系数解码装置的步骤。28. A terminal, characterized in that it comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, it implements the steps of the transform coefficient encoding device as described in any one of claims 1 to 13, or implements the steps of the transform coefficient decoding device as described in any one of claims 14 to 25. 29.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-13中任一项所述的变换系数编码装置的步骤,或者实现如权利要求14-25中任一项所述的变换系数解码装置的步骤。29. A readable storage medium, characterized in that a program or instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the transform coefficient encoding device as described in any one of claims 1 to 13 are implemented, or the steps of the transform coefficient decoding device as described in any one of claims 14 to 25 are implemented.
CN202310039876.6A 2023-01-11 2023-01-11 Transform coefficient encoding method, transform coefficient decoding method and terminal Pending CN118338006A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310039876.6A CN118338006A (en) 2023-01-11 2023-01-11 Transform coefficient encoding method, transform coefficient decoding method and terminal
PCT/CN2024/071030 WO2024149182A1 (en) 2023-01-11 2024-01-08 Transform coefficient encoding method, transform coefficient decoding method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310039876.6A CN118338006A (en) 2023-01-11 2023-01-11 Transform coefficient encoding method, transform coefficient decoding method and terminal

Publications (1)

Publication Number Publication Date
CN118338006A true CN118338006A (en) 2024-07-12

Family

ID=91780867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310039876.6A Pending CN118338006A (en) 2023-01-11 2023-01-11 Transform coefficient encoding method, transform coefficient decoding method and terminal

Country Status (2)

Country Link
CN (1) CN118338006A (en)
WO (1) WO2024149182A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040114683A1 (en) * 2002-05-02 2004-06-17 Heiko Schwarz Method and arrangement for coding transform coefficients in picture and/or video coders and decoders and a corresponding computer program and a corresponding computer-readable storage medium
US20080266151A1 (en) * 2007-04-26 2008-10-30 Jagadeesh Sankaran Method of CABAC Coefficient Magnitude and Sign Decoding Suitable for Use on VLIW Data Processors
CN112204972A (en) * 2018-03-29 2021-01-08 弗劳恩霍夫应用研究促进协会 Transform Coefficient Block Coding
CN114641996A (en) * 2020-09-10 2022-06-17 腾讯美国有限责任公司 Context adaptive transform set
CN114641995A (en) * 2019-12-03 2022-06-17 佳能株式会社 Method, device and system for encoding and decoding coding tree unit

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10194147B2 (en) * 2017-01-19 2019-01-29 Google Llc DC coefficient sign coding scheme
US10869060B2 (en) * 2018-01-30 2020-12-15 Google Llc Efficient context model computation design in transform coefficient coding
CN112449185B (en) * 2019-08-28 2022-01-25 腾讯科技(深圳)有限公司 Video decoding method, video encoding device, video encoding medium, and electronic apparatus
WO2022055165A1 (en) * 2020-09-11 2022-03-17 엘지전자 주식회사 Point cloud data transmission device, point cloud data transmission method, point cloud data reception device, and point cloud data reception method
US11875541B2 (en) * 2020-10-07 2024-01-16 Qualcomm Incorporated Predictive geometry coding in G-PCC
CN115379190B (en) * 2022-08-19 2024-04-26 腾讯科技(深圳)有限公司 Point cloud processing method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040114683A1 (en) * 2002-05-02 2004-06-17 Heiko Schwarz Method and arrangement for coding transform coefficients in picture and/or video coders and decoders and a corresponding computer program and a corresponding computer-readable storage medium
US20080266151A1 (en) * 2007-04-26 2008-10-30 Jagadeesh Sankaran Method of CABAC Coefficient Magnitude and Sign Decoding Suitable for Use on VLIW Data Processors
CN112204972A (en) * 2018-03-29 2021-01-08 弗劳恩霍夫应用研究促进协会 Transform Coefficient Block Coding
CN114641995A (en) * 2019-12-03 2022-06-17 佳能株式会社 Method, device and system for encoding and decoding coding tree unit
CN114641996A (en) * 2020-09-10 2022-06-17 腾讯美国有限责任公司 Context adaptive transform set

Also Published As

Publication number Publication date
WO2024149182A1 (en) 2024-07-18

Similar Documents

Publication Publication Date Title
CN115471627A (en) Point cloud geometric information encoding processing method, decoding processing method and related equipment
CN115474059B (en) Point cloud encoding method, decoding method and device
CN115474058B (en) Point cloud encoding processing method, point cloud decoding processing method and related equipment
CN115714859B (en) Point cloud attribute encoding method, point cloud attribute decoding method and terminal
CN116233387B (en) Point cloud coding and decoding methods, devices and communication equipment
CN118338007B (en) Transform coefficient encoding method, transform coefficient decoding method and terminal
CN116233385B (en) Point cloud attribute coding method, point cloud decoding method and terminal
CN116233386B (en) Point cloud attribute encoding method, point cloud attribute decoding method and terminal
CN118175333A (en) Attribute transformation decoding method, attribute transformation encoding method and terminal
CN118338006A (en) Transform coefficient encoding method, transform coefficient decoding method and terminal
US20240121439A1 (en) Point cloud attribute information encoding method and apparatus, point cloud attribute information decoding method and apparatus, and related device
CN118828003A (en) Transform coefficient encoding method, transform coefficient decoding method and terminal
CN118175276B (en) Point cloud encoding method, point cloud decoding method and terminal
CN118175334A (en) Attribute transformation encoding method, attribute transformation decoding method and terminal
CN118678075B (en) Point cloud encoding processing method, point cloud decoding processing method and related equipment
CN118018745A (en) Tactile signal encoding method, tactile signal decoding method, device and equipment
CN116233389B (en) Point cloud encoding processing method, point cloud decoding processing method and related equipment
CN119316597B (en) Attribute encoding method, attribute decoding method and electronic equipment
CN118175341A (en) Geometric encoding method, geometric decoding method and terminal
CN118301354A (en) List construction method and terminal
CN116614623A (en) Predictive encoding method, predictive decoding method and terminal
KR20260021745A (en) Attribute encoding method, attribute decoding method and electronic device
CN118175319A (en) Point cloud encoding method, point cloud decoding method and related equipment
CN119071493A (en) Point cloud encoding processing method, point cloud decoding processing method and related equipment
CN118828023A (en) Point cloud encoding processing method, point cloud decoding processing method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination