Transformation coefficient encoding method, transformation coefficient decoding method and terminal
By dynamically determining the Golomb order according to the DC coefficient and AC coefficient amplitude in the point cloud transformation coefficient, the problem of low coding efficiency in the existing technology is solved, and a more efficient coding and decoding process is achieved.
Patent Information
- Application Number
- CN202310408592.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-04-17
AI Technical Summary
In the existing technology, the use of a fixed Golomb order in the point cloud encoding process leads to the problem of low encoding efficiency.
By dynamically determining the Golomb order according to the DC coefficient amplitude and AC coefficient amplitude in the point cloud transformation coefficient, the target code stream is generated and the coding efficiency is improved.
It reduces the code flow during the transformation coefficient encoding process, improves the encoding efficiency, and improves the performance of encoding and decoding.
Smart Images

Figure CN118828003A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of coding and decoding technology, and specifically relates to a transform coefficient encoding method, a transform coefficient decoding method and a terminal. Background Art
[0002] Point cloud is a set of irregularly distributed discrete points in space that express the spatial structure and surface attributes of a three-dimensional object or scene. In the encoding process of point cloud, attribute information encoding is involved. After the attribute information of the point cloud is encoded to obtain the transform coefficient, the transform coefficient is quantized, and then the quantized transform coefficient is transformed and encoded to obtain the code stream.
[0003] In the related art, a fixed Golomb order is used to encode transform coefficients, which has a technical problem of low encoding efficiency. Summary of the invention
[0004] The embodiments of the present application provide a transform coefficient encoding method, a transform coefficient decoding method and a terminal, which can solve the technical problem of low encoding efficiency.
[0005] In a first aspect, a transform coefficient encoding method is provided, comprising:
[0006] The encoder obtains the transformation coefficients corresponding to the point cloud;
[0007] The encoding end determines, according to the amplitude corresponding to the DC coefficient in the transform coefficient, a first Golomb order corresponding to the DC coefficient;
[0008] The encoding end generates a target bitstream according to a first Golomb order corresponding to the DC coefficient and an encoding result of the DC coefficient when the transform coefficient includes only the DC coefficient; or
[0009] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0010] Generate a target bitstream based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient and the encoding result of each AC coefficient; the second Golomb order corresponding to each AC coefficient is a preset order; or,
[0011] Determine a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0012] A target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient.
[0013] In a second aspect, a transform coefficient decoding method is provided, comprising:
[0014] The decoding end obtains the target bitstream;
[0015] The decoding end decodes the encoding result of the DC coefficient included in the target code stream according to the first Golomb order included in the target code stream to obtain the DC coefficient;
[0016] The decoding end performs at least one of the following operations when the target bitstream includes the encoding result of the AC coefficient:
[0017] Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient, wherein the second Golomb order corresponding to each AC coefficient is a preset order; or,
[0018] Determining a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0019] Based on the DC coefficient and the AC coefficient, a transformation coefficient is determined; the AC coefficient is obtained by decoding the encoding result of the AC coefficient based on the corresponding second Golomb order.
[0020] According to a third aspect, a transform coefficient encoding device is provided, comprising:
[0021] An acquisition module is used to obtain the transformation coefficients corresponding to the point cloud;
[0022] A determination module, configured to determine a first Golomb order corresponding to the DC coefficient according to an amplitude corresponding to the DC coefficient in the transform coefficient;
[0023] an encoding module, configured to generate a target bitstream according to a first Golomb order corresponding to the DC coefficient and an encoding result of the DC coefficient when the transform coefficient includes only a DC coefficient; or
[0024] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0025] Generate a target bitstream based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient and the encoding result of each AC coefficient; the second Golomb order corresponding to each AC coefficient is a preset order; or,
[0026] Determine a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0027] A target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient.
[0028] In a fourth aspect, a transform coefficient decoding device is provided, comprising:
[0029] An acquisition module is used to acquire a target bitstream;
[0030] A first decoding module, configured to decode the encoding result of the DC coefficient included in the target code stream according to the first Golomb order included in the target code stream to obtain the DC coefficient;
[0031] The second decoding module is configured to, when the target bitstream includes the encoding result of the AC coefficient, perform at least one of the following operations:
[0032] Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient, wherein the second Golomb order corresponding to each AC coefficient is a preset order; or,
[0033] Determining a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0034] Based on the DC coefficient and the AC coefficient, a transformation coefficient is determined; the AC coefficient is obtained by decoding the encoding result of the AC coefficient based on the corresponding second Golomb order.
[0035] In a fifth aspect, a terminal is provided, which includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
[0036] In a sixth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
[0037] In the seventh aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect, or to implement the method described in the second aspect.
[0038] In an eighth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the computer program / program product is executed by at least one processor to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.
[0039] In the embodiment of the present application, the first Golomb order corresponding to the DC coefficient is determined according to the amplitude corresponding to the DC coefficient, and then, when the transform coefficient only includes the DC coefficient, the target bitstream is generated according to the first Golomb order corresponding to the DC coefficient and the encoding result of the DC coefficient; when the transform coefficient includes the DC coefficient and the AC coefficient, the target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient and the encoding result of each AC coefficient; or, the target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient and the encoding result of each AC coefficient, wherein the encoding result of the AC coefficient is determined based on the first Golomb order and the amplitude corresponding to the first AC coefficient, and the first AC coefficient is the AC coefficient in the transform coefficient except the last AC coefficient in the sorting. Compared with the related art in which the transform coefficient is encoded according to the fixed Golomb order, the present embodiment determines the Golomb order corresponding to the DC coefficient and the Golomb order corresponding to each AC coefficient according to the amplitude of the DC coefficient and the amplitude of the AC coefficient, thereby reducing the bitstream in the transform coefficient encoding process and improving the encoding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a partial framework schematic diagram of the G-PCC point cloud encoding device;
[0041] Figure 2 It is a partial framework diagram of the G-PCC point cloud decoding device;
[0042] Figure 3 is a flowchart of a transform coefficient encoding method provided in an embodiment of the present application;
[0043] Figure 4 is a flowchart of a transform coefficient decoding method provided by an embodiment of the present application;
[0044] Figure 5 is a structural diagram of a transform coefficient encoding device provided in an embodiment of the present application;
[0045] Figure 6is a structural diagram of a transform coefficient decoding device provided in an embodiment of the present application;
[0046] Figure 7 is a structural diagram of a communication device provided in an embodiment of the present application;
[0047] Figure 8 It is a schematic diagram of the hardware structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0049] The terms "first", "second", etc. of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application represents at least one of the connected objects. For example, "A or B" covers three schemes, namely, Scheme 1: including A but not including B; Scheme 2: including B but not including A; Scheme 3: including both A and B. The character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0050] The term "indication" in this application can be a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, operations to be performed, or request results in the sent indication; an indirect indication can be understood as the receiver determining the corresponding information according to the indication sent by the sender, or making a judgment and determining the operation to be performed or the request result according to the judgment result.
[0051] The transform coefficient encoding device corresponding to the transform coefficient encoding method and the transform coefficient decoding device corresponding to the transform coefficient decoding 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 terminal (User Equipment, UE). The terminal may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR), a virtual reality (Virtual Reality, VR) device, a robot, a wearable device (Wearable Device), an aircraft (flight vehicle), a vehicle-mounted device (Vehicle User Equipment, VUE), a ship-mounted device, a pedestrian terminal (Pedestrian User Equipment, PUE), a smart home (a home appliance with a wireless communication function, such as a refrigerator, a television, a washing machine or furniture, etc.), a game console, a personal computer (Personal Computer, PC), a teller machine or a self-service machine and other terminal-side devices. Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. Among them, the vehicle-mounted device can also be called a vehicle-mounted terminal, a vehicle-mounted controller, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit, etc. It should be noted that the specific type of the terminal is not limited in the embodiments of the present application.
[0052] For ease of understanding, some contents involved in the embodiments of the present application are described below:
[0053] See also Figure 1 ,like Figure 1As shown, currently, in the digital audio and video coding technology standards, a point cloud encoding device based on geometry point cloud compression (G-PCC) can be used to encode the attribute information of the point cloud. Specifically, the attribute information of the point cloud can be color converted and recolored, and then the attribute information after recoloring can be subjected to a regional adaptive transformation based on upsampling prediction based on the reconstructed geometry information, or a lifting transformation based on hierarchical structure division to obtain a transformation coefficient, and the transformation coefficient is quantized to obtain a quantization coefficient; finally, the quantization coefficient is arithmetically encoded to obtain an attribute bit stream.
[0054] Among them, the operation steps of the above-mentioned region adaptive transformation based on upsampling prediction include: constructing a transformation tree structure of the point cloud; then, performing upsampling prediction and region adaptive transformation (RAHT) layer by layer from the root node of the transformation tree structure, if the current node is a root node, then directly performing RAHT transformation on the attribute information of the node to obtain the direct current (DC) coefficient and the alternating current (AC) coefficient; if the current node is not a root node, then judging whether to predict the current node according to the grandfather node and the parent node of the current node. If the current node needs to be predicted, the attribute information of the current node is predicted to obtain the attribute prediction value, and then the attribute prediction value and the original attribute value of the current node are respectively RAHT transformed to calculate the AC coefficient residual; if the current node does not need to be predicted, then the original attribute value of the current node is directly RAHT transformed to obtain the AC coefficient.
[0055] The operation steps of the above-mentioned lifting transformation based on hierarchical structure division include: first, hierarchically dividing the point cloud through level of detail division (Level of Detail, LoD) to establish a hierarchical structure of the point cloud;
[0056] Then, the nodes at the bottom level and the nodes at the same level as the current node are used as reference points. The current node searches within the reference points, selects multiple nearest reference points as prediction reference points, and uses the reconstructed attribute values of these multiple prediction reference points for linear interpolation prediction; the predicted values are lifted and transformed.
[0057] It should be understood that the above arithmetic coding includes zero-run coding and transform coefficient coding. The quantized transform coefficients are firstly subjected to zero-run coding, and then the transform coefficients are subjected to transform coefficient coding, so as to generate a bit stream. The implementation process of zero-run coding is briefly described below: (1) The context probability model 1 is used to determine whether the run (length) value of the transform coefficient is 0. If it is 0, a bit 0 is encoded and the current coding ends; if it is not 0, a bit 1 is encoded and the following determination is continued.
[0058] (2) Determine whether the run value of the transform coefficient is 1 through context probability model 2. If it is 1, encode a bit of 0 and end the current encoding; if it is not 1, encode a bit of 1 and continue the following judgment.
[0059] (3) Use context probability model 3 to determine whether the run value of the transform coefficient is 2. If it is 2, encode a bit of 0 and end the current encoding; if it is not 2, encode a bit of 1 and continue the following judgment.
[0060] (4) Update the stroke value, subtract 3 from the stroke value, and obtain the updated stroke value.
[0061] (5) Divide the run value by 2 to obtain the prefix value;
[0062] (6) Encode the prefix value into a unary code using the context probability model 4;
[0063] Determine whether the prefix value is 0. If it is 0, encode a 0 and use bypass encoding to encode the remainder of the run value when it is 2; if it is not 0, encode a 1 and continue the following judgment;
[0064] Determine whether the prefix value is 1. If it is 1, encode a 0 and use bypass encoding to encode the remainder of the run value when it is 2. If it is not 1, encode a 1 and continue with the following judgment.
[0065] Determine whether the prefix value is 2. If it is 2, encode a 0 and use bypass encoding to encode the remainder of the run value when it is 2. If it is not 2, encode a 1 and continue with the following judgment.
[0066] Determine whether the prefix value is 3. If it is 3, encode a 0 and use bypass encoding to encode the remainder of the run value when it is 2. If it is not 3, encode a 1 and end the encoding.
[0067] (7) Update the stroke value, subtract 8 from the stroke value, and obtain the updated stroke value.
[0068] (8) The updated run value is encoded using the second-order exponential Golomb coding through the context probability model 5.
[0069] The following briefly describes the implementation process of transform coefficient coding:
[0070] (1) Determine whether the value of the transform coefficient is equal to 0 through the context probability model 1. If it is 0, end the encoding; if it is not 0, encode 1 and continue the following encoding;
[0071] (2) Determine whether the value of the transform coefficient is equal to 1 through the context probability model 1. If it is 1, end the encoding; if not, encode 1 and continue the following encoding;
[0072] (3) The prefix code of the code stream is encoded by the first group of context probability models (including context probability model 3, context probability model 4 and context probability model 5), and the suffix code of the code stream is encoded by the second group of context probability models (including context probability model 6, context probability model 7 and context probability model 8).
[0073] See also Figure 2 ,like Figure 2 As shown, currently, in the digital audio and video coding technology standards, a point cloud decoding device based on geometry point cloud compression (Geometry Point Cloud Compression, G-PCC) can be used to decode the attribute information of the point cloud. It should be understood that the implementation process of the above-mentioned G-PCC point cloud decoding device to decode the attribute information of the point cloud is the inverse process of its encoding process, and will not be repeated here. From the above content, it can be obtained that in the process of transform coefficient encoding, it is necessary to first encode the transform coefficient according to the numerical value through context probability model 1 and context probability model 2, and then encode the transform coefficient through two sets of context probability models. A large number of context probability models are needed to encode the transform coefficient, which results in a large number of bits in the code stream generated by the encoding.
[0074] In order to solve the above-mentioned technical problems, the present application provides a transform coefficient coding method, which can be applied to the encoding end. The transform coefficient coding method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through some embodiments and their application scenarios.
[0075] See also Figure 3 , Figure 3 : is a flowchart of a transform coefficient encoding method in an embodiment of the present application. The transform coefficient encoding method provided in this embodiment comprises the following steps:
[0076] S301, the encoding end obtains the transformation coefficients corresponding to the point cloud.
[0077] As described above, after performing a regional adaptive transformation based on upsampling prediction or a quantization based on a lifting transformation of the hierarchical structure division on the attribute information of the point cloud, the transformation coefficient of the point cloud is obtained. The transformation coefficient includes a DC coefficient, or the transformation coefficient includes a DC coefficient and an AC coefficient, or the transformation coefficient includes a DC coefficient and multiple AC coefficients.
[0078] It should be understood that the attribute information includes color information and reflectance information. When the attribute information of the point cloud is color information, the transformation coefficient includes a Y component, a U component, and a V component.
[0079] S302: The encoding end determines a first Golomb order corresponding to the DC coefficient according to an amplitude corresponding to the DC coefficient in the transform coefficient.
[0080] When the attribute information of the point cloud is color information, the first Golomb order corresponding to the DC coefficient can be determined based on the amplitude corresponding to the Y component of the DC coefficient, the amplitude corresponding to the U component of the DC coefficient, and the amplitude corresponding to the V component of the DC coefficient.
[0081] When the attribute information of the point cloud is reflectivity information, the first Golomb order corresponding to the DC coefficient may be determined according to the amplitude corresponding to the DC coefficient.
[0082] S303, the encoding end generates a target bitstream according to the first Golomb order corresponding to the DC coefficient and the encoding result of the DC coefficient when the transform coefficient only includes the DC coefficient; or
[0083] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0084] Generate a target bitstream based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient; or,
[0085] Determining a second Golomb order corresponding to the AC coefficient according to the first Golomb order and the amplitude corresponding to the first AC coefficient;
[0086] A target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient.
[0087] In this step, an optional implementation method is that, when the transform coefficient only includes the DC coefficient, the DC coefficient is encoded according to the first Golomb order corresponding to the DC coefficient to obtain the encoding result of the DC coefficient, and the encoding result of the DC coefficient can be understood as a binary array. Then, the encoding result of the DC coefficient and the first Golomb order are mixed to generate a target bitstream.
[0088] Another optional implementation is that, when the transform coefficient includes a DC coefficient and an AC coefficient, the DC coefficient is encoded according to the first Golomb order corresponding to the DC coefficient to obtain the encoding result of the DC coefficient; the AC coefficient is encoded according to the preset order to obtain the encoding result of the AC coefficient; the encoding results of the DC coefficient and the AC coefficient can be understood as a binary array. Then, the encoding result of the DC coefficient, the encoding result of the AC coefficient and the first Golomb order are mixed to generate a target bitstream. Optionally, the preset order is 1.
[0089] It should be noted that when the first Golomb order corresponding to the DC coefficient is 1, the second Golomb order corresponding to the AC coefficient is also determined to be 1, that is, the AC coefficient is encoded according to the first-order Golomb order to obtain the encoding result of the AC coefficient.
[0090] Another optional implementation is that, when the transformation coefficient includes a DC coefficient and multiple AC coefficients, the AC coefficients except the last AC coefficient in the transformation coefficient can be determined as the first AC coefficient, and then the second Golomb order corresponding to each AC coefficient can be determined based on the first Golomb order and the amplitude corresponding to the first AC coefficient.
[0091] In the case where the transform coefficients include a DC coefficient and one AC coefficient, and the first AC coefficient does not exist in the transform coefficients, the second Golomb order corresponding to the one AC coefficient may be determined according to the first Golomb order.
[0092] The second Golomb order is a parameter used in the process of Golomb encoding and Golomb decoding of AC coefficients.
[0093] After obtaining the first Golomb order, the DC coefficient is Golomb encoded according to the first Golomb order to obtain the encoding result of the DC coefficient; after obtaining the second Golomb order corresponding to each AC coefficient, the AC coefficient is Golomb encoded according to the second Golomb order corresponding to each AC coefficient to obtain the encoding result of the AC coefficient; the encoding result of the DC coefficient and the encoding result of the AC coefficient can be understood as a binary array. Then, the encoding result of the DC coefficient, the encoding result of the AC coefficient and the first Golomb order are mixed to generate the target code stream.
[0094] In the embodiment of the present application, the first Golomb order corresponding to the DC coefficient is determined according to the amplitude corresponding to the DC coefficient, and then the DC coefficient is encoded according to the first Golomb order; the second Golomb order corresponding to each AC coefficient is determined according to the first Golomb order and the amplitude corresponding to the first AC coefficient, and then the AC coefficient is encoded according to the second Golomb order. Compared with the related art in which the transform coefficient is encoded according to a fixed Golomb order, the present embodiment determines the Golomb order corresponding to the DC coefficient and the Golomb order corresponding to each AC coefficient according to the amplitude of the DC coefficient and the amplitude of the AC coefficient, thereby reducing the code stream in the transform coefficient encoding process and improving the encoding efficiency.
[0095] Optionally, determining a second Golomb order corresponding to the AC coefficient according to the first Golomb order and the amplitude corresponding to the first AC coefficient includes:
[0096] For a second AC coefficient in the transform coefficients, determining a second Golomb order corresponding to the second AC coefficient according to the first Golomb order; the second AC coefficient is the AC coefficient that is first in the transform coefficients;
[0097] For each third AC coefficient in the transformation coefficients, a second Golomb order corresponding to the third AC coefficient is determined based on the sum of the first Golomb order corresponding to the third AC coefficient; the third AC coefficient is the AC coefficient in the transformation coefficients except the second AC coefficient.
[0098] In an optional embodiment, the transform coefficient includes multiple AC coefficients, that is, the transform coefficient includes a second AC coefficient and a third AC coefficient, wherein the second AC coefficient is the first AC coefficient in the transform coefficient, and the third AC coefficient is the AC coefficient in the transform coefficient except the second AC coefficient.
[0099] In this implementation, the second Columbus order corresponding to the second AC coefficient can be determined according to the first Columbus order. For specific implementations, please refer to the subsequent embodiments. According to the sum of the first Columbus order corresponding to the third AC coefficient, the second Columbus order corresponding to the third AC coefficient is determined. For specific technical solutions on how to determine the sum of the first Columbus order corresponding to the AC coefficient, please refer to the subsequent embodiments.
[0100] In another optional implementation, the transform coefficient includes an AC coefficient, that is, the transform coefficient includes a second AC coefficient. In this implementation, the second Golomb order corresponding to the second AC coefficient can be determined according to the first Golomb order.
[0101] In this embodiment, for the second AC coefficient in the transform coefficient, the second Golomb order corresponding to the second AC coefficient is determined according to the first Golomb order; for the third AC coefficient in the transform coefficient, the second Golomb order corresponding to the third AC coefficient is determined according to the first Golomb order of the third AC coefficient, and then the AC coefficient is encoded according to the optimal Golomb order to improve the encoding efficiency.
[0102] Optionally, determining a second Golomb order corresponding to the second AC coefficient according to the first Golomb order includes:
[0103] The difference between the first Golomb order and a preset value is determined as the second Golomb order corresponding to the second AC coefficient, and the preset value is a natural number.
[0104] In this embodiment, the second Golomb order corresponding to the second AC coefficient can be determined by the following formula (1):
[0105] attr_golomb_num_AC=attr_golomb_num_DC-num(1)
[0106] Among them, attr_golomb_num_DC is the first Golomb order, attr_golomb_num_AC is the second Golomb order corresponding to the second AC coefficient, num is a preset value, the above preset value is a natural number, and optionally, the above preset value is 4.
[0107] In this embodiment, the second Golomb order corresponding to the second AC coefficient is determined according to the first Golomb order, and then the second AC coefficient is encoded according to the optimal Golomb order, thereby improving the encoding efficiency.
[0108] Optionally, determining the second Golomb order corresponding to the third AC coefficient according to the sum of the first Golomb order corresponding to the third AC coefficient includes:
[0109] determining at least one AC coefficient associated with the third AC coefficient according to the order of the third AC coefficient in the transform coefficients;
[0110] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum;
[0111] A division result between the first Golomb order and a first value is determined as a second Golomb order corresponding to the third AC coefficient, wherein the first value represents the number of at least one AC coefficient associated with the third AC coefficient.
[0112] In this embodiment, at least one AC coefficient associated with the third AC coefficient is determined according to the order of the third AC coefficient in the transformation coefficients. It should be understood that the AC coefficient associated with the third AC coefficient includes AC coefficients adjacent to the third AC coefficient.
[0113] After determining at least one AC coefficient associated with the third AC coefficient, the Golomb order of each associated AC coefficient is obtained, and the sum of the Golomb orders of each associated AC coefficient is determined as the sum of the first Golomb order. It should be noted that, when the attribute information of the point cloud is color information, the Golomb order of the above AC coefficient is determined based on the amplitude of the Y component of the AC coefficient; when the attribute information of the point cloud is reflectivity information, the Golomb order of the above AC coefficient is determined based on the amplitude of the AC coefficient.
[0114] In this embodiment, the second Golomb order corresponding to the third AC coefficient can be determined by the following formula (2):
[0115]
[0116] Among them, golombSum1 represents the first Golomb order sum, AWinSize1 represents the first value, and attr_golomb_num_AC represents the second Golomb order.
[0117] In this embodiment, the second Golomb order corresponding to the third AC coefficient is determined according to the first Golomb order of the third AC coefficient, and then the AC coefficient is encoded according to the optimal Golomb order, thereby improving the encoding efficiency.
[0118] Optionally, determining at least one AC coefficient associated with the third AC coefficient according to the order of the third AC coefficient in the transform coefficients comprises:
[0119] In a case where the third AC coefficient is ranked at or before the Nth position in the transform coefficient, all AC coefficients before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient, where N is a positive integer greater than or equal to 1; or
[0120] In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients located before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
[0121] In this embodiment, a first sliding window may be used to determine at least one AC coefficient associated with the third AC coefficient, and a first Golomb order sum and a first value corresponding to the third AC coefficient may be calculated.
[0122] The length of the first sliding window can be expressed as WinSize1, and the actual length of the first sliding window can be expressed as AWinSize1, wherein WinSize1 represents the maximum number of AC coefficients that can be associated with the first sliding window, and AWinSize1 represents the number of AC coefficients actually associated with the first sliding window. It should be understood that the value of N is the maximum number of AC coefficients that can be associated with the first sliding window, and the value represented by AWinSize1 in formula (2) is the number of AC coefficients actually associated with the first sliding window.
[0123] To facilitate understanding of the technical solution provided by this embodiment, please refer to the following examples:
[0124] Example 1:
[0125] The value of N is 5, and the third AC coefficient is ranked 4th in the transform coefficients. It should be understood that the DC coefficient is ranked 1st in the transform coefficients. In this case, the second AC coefficient and the third AC coefficient can be determined as AC coefficients associated with the third AC coefficient.
[0126] Example 2:
[0127] The value of N is 5, and the third AC coefficient is ranked 7th in the transform coefficients. In this case, the second to sixth AC coefficients can be determined as AC coefficients associated with the third AC coefficient.
[0128] Optionally, the method further comprises:
[0129] When the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, determining the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient to be first order;
[0130] The first target AC coefficient is any third AC coefficient among the transformation coefficients.
[0131] In this embodiment, any third AC coefficient in the transform coefficients is determined as the first target AC coefficient, and then the target Golomb order corresponding to the first target AC coefficient is determined. For specific implementations, please refer to the subsequent embodiments.
[0132] When the target Columbus order corresponding to the first target AC coefficient is less than the first preset threshold, it means that the amplitude of the first target AC coefficient is small and the second Columbus order corresponding to the first target AC coefficient is small. In this case, the transform coding method provided in the embodiment of the present application may not be used to determine the second Columbus order corresponding to the first target AC coefficient and the second Columbus order corresponding to the AC coefficient after the first target AC coefficient. The second Columbus order corresponding to the first target AC coefficient and the second Columbus order corresponding to the AC coefficient after the first target AC coefficient may be directly determined as first order.
[0133] Optionally, the first preset threshold is 1.
[0134] In this embodiment, the magnitude relationship between the target Golomb order and the first preset threshold is associated with the amplitude of the first target AC coefficient, and then the second Golomb order corresponding to the first target AC coefficient is determined according to the target Golomb order. In this way, the Golomb order corresponding to the AC coefficient is determined according to the amplitude of the AC coefficient, and the AC coefficient is subsequently encoded according to the Golomb order, thereby reducing the bit stream generated during the encoding process and improving the encoding efficiency.
[0135] The following is a detailed description of how to determine the target Columbus order:
[0136] Optionally, when the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient after the first target AC coefficient are both determined to be before the first order, and the method further includes:
[0137] determining at least one AC coefficient associated with the first target AC coefficient according to the order of the first target AC coefficient in the transform coefficients;
[0138] Calculating the sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum;
[0139] A division result between the second Golomb order sum and a second value is determined as the target Golomb order, wherein the second value represents the number of the at least one AC coefficient.
[0140] In an optional implementation, a second sliding window may be used to determine at least one AC coefficient associated with the first target AC coefficient, and a second Golomb order sum and a second value corresponding to the first target AC coefficient may be calculated.
[0141] The length of the second sliding window can be expressed as WinSize2, and the actual length of the second sliding window can be expressed as AWinSize2, wherein WinSize2 represents the maximum number of AC coefficients that the second sliding window can be associated with, and AWinSize2 represents the number of AC coefficients actually associated with the second sliding window.
[0142] For example: the first target AC coefficient is ranked 5 in the transformation coefficient, and the maximum number of AC coefficients that can be associated with the second sliding window is 2. In this case, the AC coefficients ranked 3rd and 4th in the transformation coefficient can be determined as AC coefficients associated with the first target AC coefficient. If the Golomb order corresponding to the 3rd AC coefficient is 3, and the Golomb order corresponding to the 4th AC coefficient is 5, then it can be determined that the sum of the second Golomb order is 8, the second value is 2, and the target Golomb order corresponding to the first target AC coefficient is 4.
[0143] Specifically, the target Golomb order corresponding to the first target AC coefficient can be determined by the following formula (3).
[0144]
[0145] Among them, golombSum2 represents the second Golomb order sum, AWinSize2 represents the second value, and avg_golomb_num_AC represents the target Golomb order.
[0146] In another optional implementation, the first target AC coefficient is the second ranked AC coefficient in the transformation coefficients. In this implementation, an AC coefficient ranked first is determined as the AC coefficient associated with the first target AC coefficient, and the second Columbus order corresponding to the first ranked AC coefficient is determined as the target Columbus order.
[0147] Optionally, the method further comprises:
[0148] When the second Golomb order corresponding to the second target AC coefficient associated with the first target AC coefficient and the second Golomb order corresponding to the third target AC coefficient associated with the first target AC coefficient are both less than or equal to a second preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient are both determined to be first order;
[0149] Among them, the first target AC coefficient is any third AC coefficient among the transformation coefficients, the second target AC coefficient is adjacent to the first target AC coefficient and is located before the third AC coefficient, and the third target AC coefficient is adjacent to the second target AC and is located before the second target AC coefficient.
[0150] In this embodiment, any third AC coefficient in the transformation coefficients is determined as the first target AC coefficient, the AC coefficient located before the first target AC coefficient is determined as the second target AC coefficient, and the AC coefficient located before the second target AC coefficient is determined as the third target AC coefficient. It should be understood that the first target AC coefficient in this embodiment is the AC coefficient ranked third or after the third in the transformation coefficients.
[0151] When the second Columbus order corresponding to the second target AC coefficient and the second Columbus order corresponding to the third target AC coefficient are both less than or equal to the second preset threshold, it means that the amplitude of the first target AC coefficient is small and the second Columbus order corresponding to the first target AC coefficient is small. In this case, the transform coding method provided in the embodiment of the present application may not be used to determine the second Columbus order corresponding to the first target AC coefficient and the second Columbus order corresponding to the AC coefficient located after the first target AC coefficient. The second Columbus order corresponding to the first target AC coefficient and the second Columbus order corresponding to the AC coefficient located after the first target AC coefficient are directly determined as first order.
[0152] Optionally, the second preset threshold is 1.
[0153] In this embodiment, the magnitude relationship between the second Golomb order corresponding to the second target AC coefficient and the second Golomb order corresponding to the third target AC coefficient and the second preset threshold value is associated with the amplitude of the first target AC coefficient, and then the Golomb value of the first target AC coefficient is determined according to the second Golomb order corresponding to the second target AC coefficient and the second Golomb order corresponding to the third target AC coefficient. In this way, the Golomb order corresponding to the AC coefficient is determined according to the amplitude of the AC coefficient, and the AC coefficient is subsequently encoded according to the Golomb order, thereby reducing the code stream generated during the encoding process and improving the encoding efficiency.
[0154] Optionally, the method further comprises:
[0155] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is less than or equal to a third preset threshold, encoding the AC coefficient according to the first-order Golomb index; or
[0156] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the third preset threshold and less than or equal to the fourth preset threshold, the Y component of the AC coefficient is encoded according to the second Golomb order, and the U component and the V component of the AC coefficient are encoded according to the first-order Golomb index; or
[0157] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than a fourth preset threshold, the Y component of the AC coefficient is encoded according to the second Golomb order, and the U component and the V component of the AC coefficient are encoded according to a fourth numerical value, and the fourth numerical value is the difference between the second Golomb order and the fourth preset threshold.
[0158] In this embodiment, when the point cloud attribute information is color information, if the second Golomb order corresponding to the AC coefficient is less than or equal to the third preset threshold, for the AC coefficient, encoding the AC coefficient according to the first-order Golomb index can obtain the best encoding effect.
[0159] When the point cloud attribute information is color information, if the second Golomb order corresponding to the AC coefficient is greater than the third preset threshold and less than or equal to the fourth preset threshold, the Y component of the AC coefficient can be encoded according to the second Golomb order, and the U component and V component of the AC coefficient can be encoded according to the first-order Golomb index to obtain the best encoding effect.
[0160] When the point cloud attribute information is color information, if the second Golomb order corresponding to the AC coefficient is greater than the fourth preset threshold, the Y component of the AC coefficient can be encoded according to the second Golomb order, and the U component and V component of the AC coefficient can be encoded according to the fourth value to obtain the best encoding effect, wherein the above fourth value is the difference between the second Golomb order and the fourth preset threshold.
[0161] Optionally, the third preset threshold is 1, and the fourth preset threshold is 4.
[0162] In this embodiment, when the attribute information of the point cloud is color information, the optimal Golomb index corresponding to each component of the AC coefficient is determined according to the size relationship between the second Golomb order, the third preset threshold and the fourth preset threshold, and then each component of the AC coefficient is encoded according to the optimal Golomb index corresponding to each component to obtain the encoding result of the AC coefficient, thereby improving the encoding efficiency.
[0163] Below, we explain in detail how to calculate the first Columbus order sum:
[0164] Optionally, the method further comprises:
[0165] In the case where the attribute information of the point cloud is color information, the first Golomb order is determined based on the amplitude of the Y component of the corresponding AC coefficient; or,
[0166] In the case where the attribute information of the point cloud is reflectivity information, the first Golomb order is determined based on the amplitude of the corresponding AC coefficient.
[0167] As described above, at least one AC coefficient associated with the third AC coefficient can be determined according to the order of the third AC coefficient in the transformation coefficients; the sum of the Golomb orders corresponding to the at least one AC coefficient is calculated to obtain the first Golomb order sum.
[0168] An optional implementation is, when the attribute information of the point cloud is color information, performing a logarithmic operation on the amplitude of the Y component of each AC coefficient associated with the third AC coefficient, and rounding the operation result up to obtain the Golomb order corresponding to the AC coefficient, and then determining the sum of the Golomb orders corresponding to each associated AC coefficient as the sum of the first Golomb order.
[0169] Another optional implementation is, when the attribute information of the point cloud is reflectivity information, performing logarithmic operation on the amplitude of each AC coefficient associated with the third AC coefficient, and rounding up the operation result to obtain the Golomb order corresponding to the AC coefficient, and then determining the sum of the Golomb orders corresponding to each associated AC coefficient as the sum of the first Golomb order.
[0170] Below, we explain in detail how to calculate the first Columbus order:
[0171] Optionally, determining the first Golomb order corresponding to the DC coefficient according to the amplitude corresponding to the DC coefficient in the transform coefficient comprises:
[0172] In the case where the attribute information of the point cloud is color information, a first Golomb order corresponding to the DC coefficient is determined according to a Golomb order corresponding to a Y component of the DC coefficient, a Golomb order corresponding to a U component of the DC coefficient, and a Golomb order corresponding to a V component of the DC coefficient, wherein the Golomb order is determined based on the amplitude of the corresponding component; or
[0173] In the case where the attribute information of the point cloud is reflectivity information, the third value is rounded up to obtain the first Golomb order corresponding to the DC coefficient, and the third value is determined based on the logarithm of the amplitude corresponding to the DC coefficient.
[0174] In this embodiment, when the attribute information of the point cloud is color information, the Golomb order corresponding to each component of the DC coefficient is calculated. Optionally, the amplitude of each component of the DC coefficient is logarithmically calculated, and the calculation result is rounded up to obtain the Golomb order corresponding to the component. Then, according to the Golomb order corresponding to the Y component, the Golomb order corresponding to the U component, and the Golomb order corresponding to the V component, the first Golomb order corresponding to the DC coefficient is determined. For specific implementation methods, please refer to the subsequent embodiments.
[0175] When the attribute information of the point cloud is reflectivity information, the first Golomb order corresponding to the DC coefficient can be determined by the following formula (4):
[0176]
[0177] Among them, golomb_num_DC represents the first Golomb order corresponding to the DC coefficient, and value represents the amplitude corresponding to the DC coefficient.
[0178] In this embodiment, the Golomb order corresponding to the DC coefficient is determined according to the amplitude of the DC coefficient, thereby reducing the bit stream in the transformation coefficient encoding process, thereby improving the encoding efficiency.
[0179] Optionally, determining the first Golomb order corresponding to the DC coefficient according to the Golomb order corresponding to the Y component of the DC coefficient, the Golomb order corresponding to the U component of the DC coefficient, and the Golomb order corresponding to the V component of the DC coefficient includes:
[0180] Determine the average of the Golomb order corresponding to the Y component, the Golomb order corresponding to the U component, and the Golomb order corresponding to the V component as the first Golomb order corresponding to the DC coefficient; or,
[0181] Determine the Golomb order with the highest occurrence frequency among the Golomb order corresponding to the Y component, the Golomb order corresponding to the U component, and the Golomb order corresponding to the V component as the first Golomb order corresponding to the DC coefficient; or,
[0182] When the frequency of occurrence of the Golomb order corresponding to the Y component, the frequency of occurrence of the Golomb order corresponding to the U component, and the frequency of occurrence of the Golomb order corresponding to the V component are all the same, the Golomb order corresponding to the Y component is determined as the first Golomb order corresponding to the DC coefficient.
[0183] When the attribute information of the point cloud is color information, an optional implementation method is to calculate the average of the Golomb order corresponding to the Y component of the DC coefficient, the Golomb order corresponding to the U component of the DC coefficient, and the Golomb order corresponding to the V component of the DC coefficient, and determine the above average value as the corresponding first Golomb order of the DC coefficient.
[0184] Another optional implementation is to determine the Golomb order with the highest frequency among the Golomb order corresponding to the Y component of the DC coefficient, the Golomb order corresponding to the U component of the DC coefficient, and the Golomb order corresponding to the V component of the DC coefficient as the first Golomb order corresponding to the DC coefficient.
[0185] For example, the Golomb order corresponding to the Y component is 4, the Golomb order corresponding to the U component is 4, and the Golomb order corresponding to the V component is 6, then the first Golomb order corresponding to the DC coefficient is determined to be 4.
[0186] Another optional implementation is that if the frequency of occurrence of the Golomb order corresponding to the Y component of the DC coefficient, the frequency of occurrence of the Golomb order corresponding to the U component of the DC coefficient, and the frequency of occurrence of the Golomb order corresponding to the V component of the DC coefficient are all the same, then the Golomb order corresponding to the Y component is determined as the first Golomb order corresponding to the DC coefficient.
[0187] For example, the Golomb order corresponding to the Y component is 4, the Golomb order corresponding to the U component is 5, and the Golomb order corresponding to the V component is 6, then the first Golomb order corresponding to the DC coefficient is determined to be 4.
[0188] Optionally, determining the first Golomb order corresponding to the DC coefficient according to the amplitude corresponding to the DC coefficient in the transform coefficient comprises:
[0189] In a case where the identification information included in the attribute parameter set of the point cloud represents the execution of adaptive Golomb coding, a first Golomb order corresponding to the DC coefficient is determined according to an amplitude corresponding to the DC coefficient in the transform coefficient.
[0190] In this embodiment, an attribute information parameter set (APS) of the point cloud may also be obtained, in which identification information adaptiveExpGolombFlag is set, and the identification information is used to indicate whether to perform adaptive Golomb coding.
[0191] Optionally, when the value of adaptiveExpGolombFlag is equal to 1, it indicates that the encoding end performs adaptive Golomb coding, and the encoding end applies the transform coefficient encoding method provided in the present application to encode the transform coefficient, that is, executes the steps: according to the amplitude corresponding to the DC coefficient in the transform coefficient, determine the first Golomb order corresponding to the DC coefficient.
[0192] Optionally, when the value of adaptiveExpGolombFlag is equal to 0, it indicates that the encoding end does not perform adaptive Golomb coding. In this case, the transformation coefficients of the point cloud are encoded according to the first-order Golomb index.
[0193] It should be understood that during the encoding process, the above attribute information parameter set is written into the target code stream.
[0194] To facilitate understanding of the technical effects produced by the transform coefficient encoding method provided in the embodiments of the present application, please refer to Table 1 and Table 2.
[0195] Table 1:
[0196]
[0197]
[0198] Table 2:
[0199] Y component U Component V Component Point cloud type 1 -0.5% -0.5% -0.5% Point cloud type 2 -0.4% -0.4% -0.4% Point cloud type 2 -0.1% -0.2% -0.1% Point cloud type 4 -0.1% -0.1% -0.1% Point cloud type 5 0.0% 0.0% 0.0%
[0200] Among them, the numerical values in Table 1 and Table 2 are used to characterize the bit rate ratio between the bit stream generated by the transform coefficient encoding provided by the embodiment of the present application and the bit stream generated using the related technology when the peak signal-to-noise ratio is the same. It should be understood that the lower the value, the more the bit rate is reduced.
[0201] For example, "-0.1%" in the second row and second column of Table 1 indicates that the bit rate of the Y component generated by the transform coefficient encoding provided in the embodiment of the present application is reduced by 0.1% compared with the bit rate of the Y component generated using the related technology.
[0202] See also Figure 4 , Figure 4 : is a flow chart of a transform coefficient decoding method provided by an embodiment of the present application. The transform coefficient decoding method provided by this embodiment comprises the following steps:
[0203] S401, the decoding end obtains the target bit stream.
[0204] Optionally, the target code stream includes the first Golomb order, the encoding result of the DC coefficient, the encoding result of the AC coefficient, and the attribute parameter set of the point cloud.
[0205] S402: The decoding end decodes the encoding result of the DC coefficient included in the target code stream according to the first Golomb order included in the target code stream to obtain the DC coefficient.
[0206] In this step, after parsing the target bitstream to obtain the first Golomb order, the decoding end can decode the encoding result of the DC coefficient according to the first Golomb order to obtain the DC coefficient.
[0207] S403: When the target bitstream includes the encoding result of AC coefficients, the decoding end performs at least one of the following operations:
[0208] Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient; or,
[0209] Determining a second Golomb order corresponding to the AC coefficient according to the first Golomb order and the amplitude corresponding to the first AC coefficient;
[0210] Based on the DC coefficient and the AC coefficient, a transform coefficient is determined.
[0211] In this step, an optional implementation is to decode the encoding result of the AC coefficient according to a preset order to obtain the AC coefficient; and then combine and sort the DC coefficient and the AC coefficient to obtain the transform coefficient. Optionally, the preset order is 1.
[0212] In this step, another optional implementation is that the decoding end can determine the second Golomb order corresponding to the AC coefficient according to the amplitude corresponding to the first Golomb order and the first AC coefficient. For specific implementations, please refer to the subsequent embodiments. Among them, the first AC coefficient is the AC coefficient other than the last AC coefficient in the transformation coefficient. In this implementation, the encoding result of the corresponding AC coefficient is decoded according to the second Golomb order to obtain the AC coefficient, and then the DC coefficient and the AC coefficient are combined and sorted to obtain the transformation coefficient.
[0213] It should be understood that, when the target code stream does not include AC coefficients, the transform coefficients only include DC coefficients.
[0214] It should be understood that the transform coefficient decoding method provided in this embodiment is the inverse process of the above-mentioned transform coefficient encoding method, which will not be repeated here.
[0215] In an embodiment of the present application, compared with the related art of decoding AC coefficients according to a fixed Golomb order, this embodiment can determine the Golomb order corresponding to each AC coefficient based on the first Golomb order corresponding to the DC coefficient and the amplitude of the AC coefficient, thereby improving decoding efficiency.
[0216] Optionally, determining a second Golomb order corresponding to the AC coefficient according to the first Golomb order and the amplitude corresponding to the first AC coefficient includes:
[0217] For a second AC coefficient in the transform coefficients, determining a second Golomb order corresponding to the second AC coefficient according to the first Golomb order; the second AC coefficient is the AC coefficient that is first in the transform coefficients;
[0218] For each third AC coefficient in the transformation coefficients, a second Golomb order corresponding to the third AC coefficient is determined based on the sum of the first Golomb order corresponding to the third AC coefficient; the third AC coefficient is the AC coefficient in the transformation coefficients except the second AC coefficient.
[0219] In an optional implementation, the transform coefficient includes multiple AC coefficients, that is, the transform coefficient includes a second AC coefficient and a third AC coefficient, wherein the second AC coefficient is the AC coefficient that is first sorted in the transform coefficients, and the third AC coefficient is the AC coefficient in the transform coefficients other than the second AC coefficient. In this implementation, the second Golomb order corresponding to the second AC coefficient can be determined according to the first Golomb order.
[0220] In another optional implementation, the transform coefficient includes an AC coefficient, that is, the transform coefficient includes a second AC coefficient. In this implementation, the second Golomb order corresponding to the second AC coefficient can be determined according to the first Golomb order.
[0221] Optionally, determining a second Golomb order corresponding to the second AC coefficient according to the first Golomb order includes:
[0222] The difference between the first Golomb order and a preset value is determined as the second Golomb order corresponding to the second AC coefficient, and the preset value is a natural number.
[0223] In this embodiment, the second Golomb order corresponding to the second AC coefficient can be determined by the above formula (1), which will not be repeated here.
[0224] Optionally, determining the second Golomb order corresponding to the third AC coefficient according to the sum of the first Golomb order corresponding to the third AC coefficient includes:
[0225] determining at least one AC coefficient associated with the third AC coefficient according to an ordering of the third AC coefficient among the transformed AC coefficients;
[0226] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum;
[0227] A division result between the first Golomb order and a first value is determined as a second Golomb order corresponding to the third AC coefficient, wherein the first value represents the number of at least one AC coefficient associated with the third AC coefficient.
[0228] In this embodiment, at least one AC coefficient associated with the third AC coefficient is determined according to the order of the third AC coefficient in the transformation coefficients. It should be understood that the AC coefficient associated with the third AC coefficient includes AC coefficients adjacent to the third AC coefficient.
[0229] After determining at least one AC coefficient associated with the third AC coefficient, a Golomb order of each associated AC coefficient is obtained, and a sum value of the Golomb orders of each associated AC coefficient is determined as a first Golomb order sum.
[0230] In this embodiment, the second Golomb order corresponding to the third AC coefficient can be determined by the above formula (2), which will not be repeated here.
[0231] Optionally, determining at least one AC coefficient associated with the third AC coefficient according to the order of the third AC coefficient in the transformed AC coefficients comprises:
[0232] In a case where the third AC coefficient is ranked at or before the Nth position in the transformed AC coefficient, all AC coefficients before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient, where N is a positive integer greater than or equal to 1; or
[0233] In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients located before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
[0234] In this embodiment, the first sliding window may be used to determine at least one AC coefficient associated with the third AC coefficient, and the first Golomb order sum and the first value corresponding to the third AC coefficient may be calculated. For specific implementations, please refer to the relevant embodiments of the encoding end.
[0235] Optionally, the method further comprises:
[0236] When the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, determining the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient to be first order;
[0237] The first target AC coefficient is any third AC coefficient among the transformation coefficients.
[0238] When the target Columbus order corresponding to the first target AC coefficient is less than the first preset threshold, it means that the amplitude of the first target AC coefficient is small and the second Columbus order corresponding to the first target AC coefficient is small. In this case, the transform decoding method provided in the embodiment of the present application may not be used to determine the second Columbus order corresponding to the first target AC coefficient and the second Columbus order corresponding to the AC coefficient located after the first target AC coefficient. The second Columbus order corresponding to the first target AC coefficient and the second Columbus order corresponding to the AC coefficient located after the first target AC coefficient may be directly determined as first order.
[0239] Optionally, when the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient after the first target AC coefficient are both determined to be before the first order, and the method further includes:
[0240] determining at least one AC coefficient associated with the first target AC coefficient according to the order of the first target AC coefficient in the transform coefficients;
[0241] Calculating the sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum;
[0242] A division result between the second Golomb order sum and a second value is determined as the target Golomb order, wherein the second value represents the number of the at least one AC coefficient.
[0243] In this embodiment, a second sliding window may be used to determine at least one AC coefficient associated with the first target AC coefficient, and a second Golomb order sum and a second value corresponding to the first target AC coefficient may be calculated. For specific implementations, please refer to the relevant embodiments of the encoding end.
[0244] Optionally, the method further comprises:
[0245] When the second Golomb order corresponding to the second target AC coefficient associated with the first target AC coefficient and the second Golomb order corresponding to the third target AC coefficient associated with the first target AC coefficient are both less than or equal to a second preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient are both determined to be first order;
[0246] Among them, the first target AC coefficient is any third AC coefficient among the transformation coefficients, the second target AC coefficient is adjacent to the first target AC coefficient and is located before the third AC coefficient, and the third target AC coefficient is adjacent to the second target AC and is located before the second target AC coefficient.
[0247] When the second Columbus order corresponding to the second target AC coefficient and the second Columbus order corresponding to the third target AC coefficient are both less than or equal to the second preset threshold, it means that the amplitude of the first target AC coefficient is small, and the second Columbus order corresponding to the first target AC coefficient is small. In this case, the transform decoding method provided in the embodiment of the present application may not be used to determine the second Columbus order corresponding to the first target AC coefficient and the second Columbus order corresponding to the AC coefficient after the first target AC coefficient. The second Columbus order corresponding to the first target AC coefficient and the second Columbus order corresponding to the AC coefficient after the first target AC coefficient are directly determined to be first order. For specific implementation methods, please refer to the relevant embodiments of the encoding end.
[0248] Optionally, the method further comprises:
[0249] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is less than or equal to the third preset threshold, decoding the AC coefficient according to the first-order Golomb index; or,
[0250] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the third preset threshold and less than or equal to the fourth preset threshold, the Y component of the AC coefficient is decoded according to the second Golomb order, and the U component and the V component of the AC coefficient are decoded according to the first-order Golomb index; or
[0251] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the fourth preset threshold, the Y component of the AC coefficient is decoded according to the second Golomb order, and the U component and the V component of the AC coefficient are decoded according to a fourth numerical value, and the fourth numerical value is the difference between the second Golomb order and the fourth preset threshold.
[0252] In this embodiment, when the point cloud attribute information is color information, if the second Golomb order corresponding to the AC coefficient is less than or equal to the third preset threshold, for the AC coefficient, decoding the AC coefficient according to the first-order Golomb index can obtain the best decoding effect.
[0253] When the point cloud attribute information is color information, if the second Golomb order corresponding to the AC coefficient is greater than the third preset threshold and less than or equal to the fourth preset threshold, the Y component of the AC coefficient can be decoded according to the second Golomb order, and the U component and V component of the AC coefficient can be decoded according to the first-order Golomb index to obtain the best decoding effect.
[0254] When the point cloud attribute information is color information, if the second Golomb order corresponding to the AC coefficient is greater than the fourth preset threshold, the Y component of the AC coefficient can be decoded according to the second Golomb order, and the U component and V component of the AC coefficient can be decoded according to the fourth value to obtain the best decoding effect, wherein the above fourth value is the difference between the second Golomb order and the fourth preset threshold.
[0255] Optionally, the method further comprises:
[0256] In the case where the attribute information of the point cloud is color information, the first Golomb order is determined based on the amplitude of the Y component of the corresponding AC coefficient; or,
[0257] In the case where the attribute information of the point cloud is reflectivity information, the first Golomb order is determined based on the amplitude of the corresponding AC coefficient.
[0258] An optional implementation is, when the attribute information of the point cloud is color information, performing a logarithmic operation on the amplitude of the Y component of each AC coefficient associated with the third AC coefficient, and rounding the operation result up to obtain the Golomb order corresponding to the AC coefficient, and then determining the sum of the Golomb orders corresponding to each associated AC coefficient as the sum of the first Golomb order.
[0259] Another optional implementation is, when the attribute information of the point cloud is reflectivity information, performing logarithmic operation on the amplitude of each AC coefficient associated with the third AC coefficient, and rounding up the operation result to obtain the Golomb order corresponding to the AC coefficient, and then determining the sum of the Golomb orders corresponding to each associated AC coefficient as the sum of the first Golomb order.
[0260] Optionally, decoding the encoding result of the DC coefficient included in the target code stream according to the first Golomb order included in the target code stream to obtain the DC coefficient includes:
[0261] In the case where the identification information included in the attribute parameter set of the target code stream indicates that adaptive Golomb decoding is performed, the encoding result of the DC coefficient included in the target code stream is decoded according to the first Golomb order included in the target code stream to obtain the DC coefficient.
[0262] In this embodiment, the target code stream includes an attribute information parameter set of the point cloud, and the attribute information parameter set is provided with identification information adaptiveExpGolombFlag, and the identification information is used to indicate whether to perform adaptive Golomb decoding.
[0263] Optionally, when the value of adaptiveExpGolombFlag is equal to 1, it indicates that the decoding end performs adaptive Golomb decoding, and the decoding end applies the transform coefficient decoding method provided in the present application to decode the transform coefficient, that is, executes the steps: according to the first Golomb order included in the target code stream, the encoding result of the DC coefficient included in the target code stream is decoded to obtain the DC coefficient.
[0264] Optionally, when the value of adaptiveExpGolombFlag is equal to 0, it indicates that the decoding end does not perform adaptive Golomb decoding. In this case, the transformation coefficients of the point cloud are decoded according to the first-order Golomb index.
[0265] The transform coefficient coding method provided in the embodiment of the present application may be executed by a transform coefficient coding device. In the embodiment of the present application, the transform coefficient coding device performing the transform coefficient coding method is taken as an example to illustrate the transform coefficient coding device provided in the embodiment of the present application.
[0266] like Figure 5 As shown, the embodiment of the present application further provides a transform coefficient encoding device 500, comprising:
[0267] An acquisition module 501 is used to acquire the transformation coefficients corresponding to the point cloud;
[0268] A determination module 502, configured to determine a first Golomb order corresponding to a DC coefficient in the transform coefficient according to an amplitude corresponding to the DC coefficient;
[0269] The encoding module 503 is used to generate a target bit stream according to the first Golomb order corresponding to the DC coefficient and the encoding result of the DC coefficient when the transform coefficient only includes the DC coefficient; or
[0270] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0271] Generate a target bitstream based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient and the encoding result of each AC coefficient; the second Golomb order corresponding to each AC coefficient is a preset order; or,
[0272] Determine a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0273] A target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient.
[0274] Optionally, the encoding module 503 is specifically configured to:
[0275] For a second AC coefficient in the transform coefficients, determining a second Golomb order corresponding to the second AC coefficient according to the first Golomb order; the second AC coefficient is the AC coefficient that is first in the transform coefficients;
[0276] For each third AC coefficient in the transformation coefficients, a second Golomb order corresponding to the third AC coefficient is determined based on the sum of the first Golomb order corresponding to the third AC coefficient; the third AC coefficient is the AC coefficient in the transformation coefficients except the second AC coefficient.
[0277] Optionally, the encoding module 503 is further specifically configured to:
[0278] The difference between the first Golomb order and a preset value is determined as the second Golomb order corresponding to the second AC coefficient, and the preset value is a natural number.
[0279] Optionally, the encoding module 503 is further specifically configured to:
[0280] determining at least one AC coefficient associated with the third AC coefficient according to the order of the third AC coefficient in the transform coefficients;
[0281] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum;
[0282] A division result between the first Golomb order and a first value is determined as a second Golomb order corresponding to the third AC coefficient, wherein the first value represents the number of at least one AC coefficient associated with the third AC coefficient.
[0283] Optionally, the encoding module 503 is further specifically configured to:
[0284] In a case where the third AC coefficient is ranked at or before the Nth position in the transform coefficient, all AC coefficients before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient, where N is a positive integer greater than or equal to 1; or
[0285] In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients located before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
[0286] Optionally, the encoding module 503 is further specifically configured to:
[0287] When the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, determining the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient to be first order;
[0288] The first target AC coefficient is any third AC coefficient among the transformation coefficients.
[0289] Optionally, the encoding module 503 is further specifically configured to:
[0290] determining at least one AC coefficient associated with the first target AC coefficient according to the order of the first target AC coefficient in the transform coefficients;
[0291] Calculating the sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum;
[0292] A division result between the second Golomb order sum and a second value is determined as the target Golomb order, wherein the second value represents the number of the at least one AC coefficient.
[0293] Optionally, the encoding module 503 is further specifically configured to:
[0294] When the second Golomb order corresponding to the second target AC coefficient associated with the first target AC coefficient and the second Golomb order corresponding to the third target AC coefficient associated with the first target AC coefficient are both less than or equal to a second preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient are both determined to be first order;
[0295] Among them, the first target AC coefficient is any third AC coefficient among the transformation coefficients, the second target AC coefficient is adjacent to the first target AC coefficient and is located before the third AC coefficient, and the third target AC coefficient is adjacent to the second target AC and is located before the second target AC coefficient.
[0296] Optionally, the encoding module 503 is further specifically configured to:
[0297] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is less than or equal to a third preset threshold, encoding the AC coefficient according to the first-order Golomb index; or
[0298] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the third preset threshold and less than or equal to the fourth preset threshold, the Y component of the AC coefficient is encoded according to the second Golomb order, and the U component and the V component of the AC coefficient are encoded according to the first-order Golomb index; or
[0299] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than a fourth preset threshold, the Y component of the AC coefficient is encoded according to the second Golomb order, and the U component and the V component of the AC coefficient are encoded according to a fourth numerical value, and the fourth numerical value is the difference between the second Golomb order and the fourth preset threshold.
[0300] Optionally, the encoding module 503 is further specifically configured to:
[0301] In the case where the attribute information of the point cloud is color information, the first Golomb order is determined based on the amplitude of the Y component of the corresponding AC coefficient; or,
[0302] In the case where the attribute information of the point cloud is reflectivity information, the first Golomb order is determined based on the amplitude of the corresponding AC coefficient.
[0303] Optionally, the determining module 502 is specifically configured to:
[0304] In the case where the attribute information of the point cloud is color information, a first Golomb order corresponding to the DC coefficient is determined according to a Golomb order corresponding to a Y component of the DC coefficient, a Golomb order corresponding to a U component of the DC coefficient, and a Golomb order corresponding to a V component of the DC coefficient, wherein the Golomb order is determined based on the amplitude of the corresponding component; or
[0305] In the case where the attribute information of the point cloud is reflectivity information, the third value is rounded up to obtain the first Golomb order corresponding to the DC coefficient, and the third value is determined based on the logarithm of the amplitude corresponding to the DC coefficient.
[0306] Optionally, the determining module 502 is further specifically configured to:
[0307] Determine the average of the Golomb order corresponding to the Y component, the Golomb order corresponding to the U component, and the Golomb order corresponding to the V component as the first Golomb order corresponding to the DC coefficient; or,
[0308] Determine the Golomb order with the highest occurrence frequency among the Golomb order corresponding to the Y component, the Golomb order corresponding to the U component, and the Golomb order corresponding to the V component as the first Golomb order corresponding to the DC coefficient; or,
[0309] When the frequency of occurrence of the Golomb order corresponding to the Y component, the frequency of occurrence of the Golomb order corresponding to the U component, and the frequency of occurrence of the Golomb order corresponding to the V component are all the same, the Golomb order corresponding to the Y component is determined as the first Golomb order corresponding to the DC coefficient.
[0310] Optionally, the determining module 502 is further specifically configured to:
[0311] In a case where the identification information included in the attribute parameter set of the point cloud represents the execution of adaptive Golomb coding, a first Golomb order corresponding to the DC coefficient is determined according to an amplitude corresponding to the DC coefficient in the transform coefficient.
[0312] Compared with the related art in which transform coefficients are encoded according to a fixed Golomb order, this embodiment determines the Golomb order corresponding to the DC coefficient and the Golomb order corresponding to each AC coefficient according to the amplitude of the DC coefficient and the amplitude of the AC coefficient, thereby reducing the bit rate in the transform coefficient encoding process and improving the encoding efficiency.
[0313] This device embodiment is similar to the above Figure 3 Corresponding to the embodiment of the transform coefficient encoding method shown, each implementation process and implementation method of the encoding end in the above method embodiment can be applied to the device embodiment and can achieve the same technical effect.
[0314] The transform coefficient decoding method provided in the embodiment of the present application may be executed by a transform coefficient decoding device. In the embodiment of the present application, the transform coefficient decoding device provided in the embodiment of the present application is described by taking the transform coefficient decoding method executed by the transform coefficient decoding device as an example.
[0315] like Figure 6 As shown, the embodiment of the present application further provides a transform coefficient decoding device 600, comprising:
[0316] The acquisition module 601 is used to acquire the target bitstream;
[0317] A first decoding module 602, configured to decode the encoding result of the DC coefficient included in the target bitstream according to the first Golomb order included in the target bitstream, to obtain the DC coefficient;
[0318] The second decoding module 603 is configured to perform at least one of the following operations when the target bitstream includes the encoding result of the AC coefficient:
[0319] Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient, wherein the second Golomb order corresponding to each AC coefficient is a preset order; or,
[0320] Determining a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0321] Based on the DC coefficient and the AC coefficient, a transformation coefficient is determined; the AC coefficient is obtained by decoding the encoding result of the AC coefficient based on the corresponding second Golomb order.
[0322] Optionally, the second decoding module 603 is specifically configured to:
[0323] For a second AC coefficient in the transform coefficients, determining a second Golomb order corresponding to the second AC coefficient according to the first Golomb order; the second AC coefficient is the AC coefficient that is first in the transform coefficients;
[0324] For each third AC coefficient in the transformation coefficients, a second Golomb order corresponding to the third AC coefficient is determined based on the sum of the first Golomb order corresponding to the third AC coefficient; the third AC coefficient is the AC coefficient in the transformation coefficients except the second AC coefficient.
[0325] Optionally, the second decoding module 603 is further specifically configured to:
[0326] The difference between the first Golomb order and a preset value is determined as the second Golomb order corresponding to the second AC coefficient, and the preset value is a natural number.
[0327] Optionally, the second decoding module 603 is further specifically configured to:
[0328] determining at least one AC coefficient associated with the third AC coefficient according to an ordering of the third AC coefficient among the transformed AC coefficients;
[0329] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum;
[0330] A division result between the first Golomb order and a first value is determined as a second Golomb order corresponding to the third AC coefficient, wherein the first value represents the number of at least one AC coefficient associated with the third AC coefficient.
[0331] Optionally, the second decoding module 603 is further specifically configured to:
[0332] In a case where the third AC coefficient is ranked at or before the Nth position in the transformed AC coefficient, all AC coefficients before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient, where N is a positive integer greater than or equal to 1; or
[0333] In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients located before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
[0334] Optionally, the second decoding module 603 is further specifically configured to:
[0335] When the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, determining the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient to be first order;
[0336] The first target AC coefficient is any third AC coefficient among the transformation coefficients.
[0337] Optionally, the second decoding module 603 is further specifically configured to:
[0338] determining at least one AC coefficient associated with the first target AC coefficient according to the order of the first target AC coefficient in the transform coefficients;
[0339] Calculating the sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum;
[0340] A division result between the second Golomb order sum and a second value is determined as the target Golomb order, wherein the second value represents the number of the at least one AC coefficient.
[0341] Optionally, the second decoding module 603 is further specifically configured to:
[0342] When the second Golomb order corresponding to the second target AC coefficient associated with the first target AC coefficient and the second Golomb order corresponding to the third target AC coefficient associated with the first target AC coefficient are both less than or equal to a second preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient are both determined to be first order;
[0343] Among them, the first target AC coefficient is any third AC coefficient among the transformation coefficients, the second target AC coefficient is adjacent to the first target AC coefficient and is located before the third AC coefficient, and the third target AC coefficient is adjacent to the second target AC and is located before the second target AC coefficient.
[0344] Optionally, the second decoding module 603 is further specifically configured to:
[0345] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is less than or equal to the third preset threshold, decoding the AC coefficient according to the first-order Golomb index; or,
[0346] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the third preset threshold and less than or equal to the fourth preset threshold, the Y component of the AC coefficient is decoded according to the second Golomb order, and the U component and the V component of the AC coefficient are decoded according to the first-order Golomb index; or
[0347] When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the fourth preset threshold, the Y component of the AC coefficient is decoded according to the second Golomb order, and the U component and the V component of the AC coefficient are decoded according to a fourth numerical value, and the fourth numerical value is the difference between the second Golomb order and the fourth preset threshold.
[0348] Optionally, the second decoding module 603 is further specifically configured to:
[0349] In the case where the attribute information of the point cloud is color information, the first Golomb order is determined based on the amplitude of the Y component of the corresponding AC coefficient; or,
[0350] In the case where the attribute information of the point cloud is reflectivity information, the first Golomb order is determined based on the amplitude of the corresponding AC coefficient.
[0351] Optionally, the first decoding module 602 is specifically configured to:
[0352] In the case where the identification information included in the attribute parameter set of the target code stream indicates that adaptive Golomb decoding is performed, the encoding result of the DC coefficient included in the target code stream is decoded according to the first Golomb order included in the target code stream to obtain the DC coefficient.
[0353] Compared with the related art in which AC coefficients are decoded according to a fixed Golomb order, this embodiment can determine the Golomb order corresponding to each AC coefficient according to the first Golomb order corresponding to the DC coefficient and the amplitude of the AC coefficient, thereby improving decoding efficiency.
[0354] The transform coefficient decoding device provided in the embodiment of the present application can achieve Figure 4 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0355] The transform coefficient encoding device and the transform coefficient decoding device in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the terminal can include but is not limited to the types of terminals listed above, and other devices can be servers, network attached storage (Network Attached Storage, NAS), etc., which are not specifically limited in the embodiment of the present application.
[0356] The transform coefficient encoding device provided in the embodiment of the present application can achieve Figure 3 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0357] The transform coefficient decoding device provided in the embodiment of the present application can achieve Figure 4 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.
[0358] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides a communication device 700, including a processor 701 and a memory 702, and the memory 702 stores programs or instructions that can be executed on the processor 701. For example, when the communication device 700 is a terminal, the program or instruction is executed by the processor 701 to implement the various steps of the above-mentioned transform coefficient encoding method embodiment, or to implement the various steps of the above-mentioned transform coefficient decoding method embodiment, and can achieve the same technical effect.
[0359] The embodiment of the present application also provides a terminal, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the following Figure 3 The steps in the method embodiment shown in FIG. Figure 4 The steps in the method embodiment shown. This terminal embodiment corresponds to the above-mentioned terminal side method embodiment, and each implementation process and implementation method of the above-mentioned method embodiment can be applied to this terminal embodiment and can achieve the same technical effect. Specifically, Figure 8 A schematic diagram of the hardware structure of a terminal for implementing an embodiment of the present application.
[0360] The terminal 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
[0361] Those skilled in the art will appreciate that the terminal 800 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The terminal structure shown in the figure does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0362] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture 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, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called 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 (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0363] In the embodiment of the present application, after receiving downlink data from the network side device, the RF unit 801 can transmit the data to the processor 88 for processing; the RF unit 801 can send uplink data to the network side device. Generally, the RF unit 801 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
[0364] The memory 809 can be used to store software programs or instructions and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0365] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.
[0366] The processor 801 is configured to perform the following operations:
[0367] Get the transformation coefficients corresponding to the point cloud;
[0368] Determining a first Golomb order corresponding to a DC coefficient in the transform coefficient according to an amplitude corresponding to the DC coefficient;
[0369] In the case where the transform coefficients only include a DC coefficient, generating a target bitstream according to the first Golomb order corresponding to the DC coefficient and the encoding result of the DC coefficient; or,
[0370] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0371] Generate a target bitstream based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient; or,
[0372] Determining a second Golomb order corresponding to the AC coefficient according to the first Golomb order and the amplitude corresponding to the first AC coefficient;
[0373] A target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient.
[0374] Alternatively, the processor 801 is further configured to perform the following operations:
[0375] Get the target code stream;
[0376] Decoding a coding result of a DC coefficient included in the target code stream according to a first Golomb order included in the target code stream to obtain a DC coefficient;
[0377] In a case where the target code stream includes the encoding result of the AC coefficient, performing at least one of the following operations:
[0378] Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient; or,
[0379] Determining a second Golomb order corresponding to the AC coefficient according to the first Golomb order and the amplitude corresponding to the first AC coefficient;
[0380] Based on the DC coefficient and the AC coefficient, a transform coefficient is determined.
[0381] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned transform coefficient encoding method embodiment are implemented, or the various processes of the above-mentioned transform coefficient decoding method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0382] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk. In some examples, the readable storage medium may be a non-transient readable storage medium.
[0383] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned transform coefficient encoding method embodiment, or to implement the various processes of the above-mentioned transform coefficient decoding method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0384] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0385] An embodiment of the present application further provides a computer program / program product, which is stored in a storage medium, and is executed by at least one processor to implement the various processes of the above-mentioned transform coefficient encoding method embodiment, or to implement the various processes of the above-mentioned transform coefficient decoding method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0386] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0387] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general hardware platform, and of course, can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, disk, CD, etc.), including several instructions to enable a terminal or a network-side device to execute the methods described in each embodiment of the present application.
[0388] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of the present application and the scope of protection of the claims, and these implementation methods are all within the protection of the present application.
Claims
1. A method for encoding transform coefficients, It is characterized in that include: The encoder obtains the transformation coefficients corresponding to the point cloud; The encoding end determines, according to the amplitude corresponding to the DC coefficient in the transform coefficient, a first Golomb order corresponding to the DC coefficient; The encoding end generates a target bitstream according to a first Golomb order corresponding to the DC coefficient and an encoding result of the DC coefficient when the transform coefficient includes only the DC coefficient; or In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations: Generate a target bitstream based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient; the second Golomb order corresponding to each AC coefficient is a preset order; or, Determine a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients; A target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient.
2. The method according to claim 1, It is characterized in that The determining, according to the first Golomb order and the amplitude corresponding to the first AC coefficient, a second Golomb order corresponding to the AC coefficient comprises: The encoding end determines, for a second AC coefficient in the transform coefficients, a second Golomb order corresponding to the second AC coefficient according to the first Golomb order; the second AC coefficient is the first-ordered AC coefficient in the transform coefficients; The encoding end determines, for each third AC coefficient in the transform coefficient, a second Golomb order corresponding to the third AC coefficient based on the sum of the first Golomb order corresponding to the third AC coefficient; the third AC coefficient is the AC coefficient in the transform coefficient except the second AC coefficient.
3. The method according to claim 2, It is characterized in that The determining, according to the first Golomb order, a second Golomb order corresponding to the second AC coefficient includes: The encoding end determines the difference between the first Golomb order and a preset value as the second Golomb order corresponding to the second AC coefficient, and the preset value is a natural number.
4. The method according to claim 2, It is characterized in that The determining, according to the sum of the first Golomb orders corresponding to the third AC coefficient, the second Golomb order corresponding to the third AC coefficient comprises: The encoding end determines at least one AC coefficient associated with the third AC coefficient according to the order of the third AC coefficient in the transform coefficients; The encoding end calculates the sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum; The encoding end determines a division result between the first Golomb order and a first value as a second Golomb order corresponding to the third AC coefficient, wherein the first value represents the number of at least one AC coefficient associated with the third AC coefficient.
5. The method according to claim 4, It is characterized in that The determining, according to the order of the third AC coefficient in the transform coefficients, at least one AC coefficient associated with the third AC coefficient comprises: The encoding end determines, when the third AC coefficient is ranked at or before the Nth position in the transform coefficient, all AC coefficients before the third AC coefficient as at least one AC coefficient associated with the third AC coefficient, where N is a positive integer greater than or equal to 1; or In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients located before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
6. The method according to claim 1, It is characterized in that The method further comprises: The encoding end determines, when a target Golomb order corresponding to a first target AC coefficient is less than a first preset threshold, a second Golomb order corresponding to the first target AC coefficient and a second Golomb order corresponding to an AC coefficient subsequent to the first target AC coefficient as first order; The first target AC coefficient is any third AC coefficient among the transformation coefficients.
7. The method according to claim 6, It is characterized in that When the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient after the first target AC coefficient are both determined to be before the first order, and the method further includes: The encoder determines, according to the order of the first target AC coefficient in the transform coefficients, at least one AC coefficient associated with the first target AC coefficient; The encoding end calculates the sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum; The encoding end determines a division result between the second Golomb order sum and a second value as the target Golomb order, wherein the second value represents the number of the at least one AC coefficient.
8. The method according to claim 1, It is characterized in that The method further comprises: The encoding end determines, when a second Golomb order corresponding to a second target AC coefficient associated with a first target AC coefficient and a second Golomb order corresponding to a third target AC coefficient associated with the first target AC coefficient are both less than or equal to a second preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to an AC coefficient subsequent to the first target AC coefficient as first order; Among them, the first target AC coefficient is any third AC coefficient among the transformation coefficients, the second target AC coefficient is adjacent to the first target AC coefficient and is located before the third AC coefficient, and the third target AC coefficient is adjacent to the second target AC and is located before the second target AC coefficient.
9. The method according to claim 1, It is characterized in that The method further comprises: The encoding end encodes the AC coefficient according to the first-order Golomb index when the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is less than or equal to the third preset threshold; or When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the third preset threshold and less than or equal to the fourth preset threshold, the Y component of the AC coefficient is encoded according to the second Golomb order, and the U component and the V component of the AC coefficient are encoded according to the first-order Golomb index; or When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than a fourth preset threshold, the Y component of the AC coefficient is encoded according to the second Golomb order, and the U component and the V component of the AC coefficient are encoded according to a fourth numerical value, and the fourth numerical value is the difference between the second Golomb order and the fourth preset threshold.
10. The method according to any one of claims 2 to 9, It is characterized in that The method further comprises: When the attribute information of the point cloud is color information, the first Golomb order is determined by the amplitude of the Y component based on the corresponding AC coefficient; or In the case where the attribute information of the point cloud is reflectivity information, the first Golomb order is determined based on the amplitude of the corresponding AC coefficient.
11. The method according to any one of claims 1 to 10, It is characterized in that Determining the first Golomb order corresponding to the DC coefficient according to the amplitude corresponding to the DC coefficient in the transform coefficient comprises: The encoder determines, when the attribute information of the point cloud is color information, a first Golomb order corresponding to the DC coefficient according to a Golomb order corresponding to a Y component of the DC coefficient, a Golomb order corresponding to a U component of the DC coefficient, and a Golomb order corresponding to a V component of the DC coefficient, wherein the Golomb order is determined based on the amplitude of the corresponding component; or In the case where the attribute information of the point cloud is reflectivity information, the third value is rounded up to obtain the first Golomb order corresponding to the DC coefficient, and the third value is determined based on the logarithm of the amplitude corresponding to the DC coefficient.
12. The method according to claim 11, It is characterized in that The determining, according to the Golomb order corresponding to the Y component of the DC coefficient, the Golomb order corresponding to the U component of the DC coefficient, and the Golomb order corresponding to the V component of the DC coefficient, the first Golomb order corresponding to the DC coefficient comprises: The encoding end determines the average of the Golomb order corresponding to the Y component, the Golomb order corresponding to the U component, and the Golomb order corresponding to the V component as the first Golomb order corresponding to the DC coefficient; or Determine the Golomb order with the highest occurrence frequency among the Golomb order corresponding to the Y component, the Golomb order corresponding to the U component, and the Golomb order corresponding to the V component as the first Golomb order corresponding to the DC coefficient; or, When the frequency of occurrence of the Golomb order corresponding to the Y component, the frequency of occurrence of the Golomb order corresponding to the U component, and the frequency of occurrence of the Golomb order corresponding to the V component are all the same, the Golomb order corresponding to the Y component is determined as the first Golomb order corresponding to the DC coefficient.
13. The method according to any one of claims 1 to 12, It is characterized in that Determining the first Golomb order corresponding to the DC coefficient according to the amplitude corresponding to the DC coefficient in the transform coefficient comprises: The encoding end determines a first Golomb order corresponding to the DC coefficient according to an amplitude corresponding to the DC coefficient in the transform coefficient when the identification information included in the attribute parameter set of the point cloud indicates that adaptive Golomb coding is performed.
14. A method for decoding transform coefficients, It is characterized in that include: The decoding end obtains the target bitstream; The decoding end decodes the encoding result of the DC coefficient included in the target code stream according to the first Golomb order included in the target code stream to obtain the DC coefficient; The decoding end performs at least one of the following operations when the target bitstream includes the encoding result of the AC coefficient: Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient, wherein the second Golomb order corresponding to each AC coefficient is a preset order; or, Determining a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients; Based on the DC coefficient and the AC coefficient, a transformation coefficient is determined; the AC coefficient is obtained by decoding the encoding result of the AC coefficient based on the corresponding second Golomb order.
15. The method according to claim 14, It is characterized in that The determining, according to the first Golomb order and the amplitude corresponding to the first AC coefficient, a second Golomb order corresponding to the AC coefficient comprises: The decoding end determines, for a second AC coefficient in the transform coefficients, a second Golomb order corresponding to the second AC coefficient according to the first Golomb order; the second AC coefficient is the first-ranked AC coefficient in the transform coefficients; The decoding end determines, for each third AC coefficient in the transform coefficient, a second Golomb order corresponding to the third AC coefficient based on the sum of the first Golomb order corresponding to the third AC coefficient; the third AC coefficient is an AC coefficient in the transform coefficient except the second AC coefficient.
16. The method according to claim 15, It is characterized in that The determining, according to the first Golomb order, a second Golomb order corresponding to the second AC coefficient includes: The decoding end determines the difference between the first Golomb order and a preset value as the second Golomb order corresponding to the second AC coefficient, and the preset value is a natural number.
17. The method according to claim 15, It is characterized in that The determining, according to the sum of the first Golomb orders corresponding to the third AC coefficient, the second Golomb order corresponding to the third AC coefficient comprises: The decoding end determines at least one AC coefficient associated with the third AC coefficient according to the order of the third AC coefficient in the transformed AC coefficients; The decoding end calculates the sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum; The decoding end determines a division result between the first Golomb order and a first value as a second Golomb order corresponding to the third AC coefficient, wherein the first value represents the number of at least one AC coefficient associated with the third AC coefficient.
18. The method according to claim 17, It is characterized in that The determining, according to the order of the third AC coefficient in the transformed AC coefficients, at least one AC coefficient associated with the third AC coefficient comprises: The decoding end determines, when the third AC coefficient is ranked at or before the Nth position in the transformed AC coefficient, all AC coefficients before the third AC coefficient as at least one AC coefficient associated with the third AC coefficient, where N is a positive integer greater than or equal to 1; or In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients located before the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
19. The method according to claim 15, It is characterized in that The method further comprises: The decoding end determines, when the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, a second Golomb order corresponding to the first target AC coefficient and a second Golomb order corresponding to an AC coefficient subsequent to the first target AC coefficient as first order; The first target AC coefficient is any third AC coefficient among the transformation coefficients.
20. The method according to claim 19, It is characterized in that When the target Golomb order corresponding to the first target AC coefficient is less than a first preset threshold, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient after the first target AC coefficient are both determined to be before the first order, and the method further includes: The decoding end determines at least one AC coefficient associated with the first target AC coefficient according to the order of the first target AC coefficient in the transform coefficients; The decoding end calculates the sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum; The decoding end determines a division result between the second Golomb order and a second value as the target Golomb order, wherein the second value represents the number of the at least one AC coefficient.
21. The method according to claim 15, It is characterized in that The method further comprises: The decoding end determines the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient subsequent to the first target AC coefficient as first order when the second Golomb order corresponding to the second target AC coefficient associated with the first target AC coefficient and the second Golomb order corresponding to the third target AC coefficient associated with the first target AC coefficient are both less than or equal to a second preset threshold; Among them, the first target AC coefficient is any third AC coefficient among the transformation coefficients, the second target AC coefficient is adjacent to the first target AC coefficient and is located before the third AC coefficient, and the third target AC coefficient is adjacent to the second target AC and is located before the second target AC coefficient.
22. The method according to claim 14, It is characterized in that The method further comprises: The decoding end decodes the AC coefficient according to the first-order Golomb index when the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is less than or equal to the third preset threshold; or, When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the third preset threshold and less than or equal to the fourth preset threshold, the Y component of the AC coefficient is decoded according to the second Golomb order, and the U component and the V component of the AC coefficient are decoded according to the first-order Golomb index; or When the attribute information of the point cloud is color information and the second Golomb order corresponding to the AC coefficient is greater than the fourth preset threshold, the Y component of the AC coefficient is decoded according to the second Golomb order, and the U component and the V component of the AC coefficient are decoded according to a fourth numerical value, and the fourth numerical value is the difference between the second Golomb order and the fourth preset threshold.
23. The method according to any one of claims 15 to 22, It is characterized in that The method further comprises: When the attribute information of the point cloud is color information, the first Golomb order is determined based on the amplitude of the Y component of the corresponding AC coefficient; or In the case where the attribute information of the point cloud is reflectivity information, the first Golomb order is determined based on the amplitude of the corresponding AC coefficient.
24. The method according to any one of claims 14 to 23, It is characterized in that The step of decoding the encoding result of the DC coefficient included in the target code stream according to the first Golomb order included in the target code stream to obtain the DC coefficient comprises: When the identification information included in the attribute parameter set of the target code stream indicates that adaptive Golomb decoding is performed, the decoding end decodes the encoding result of the DC coefficient included in the target code stream according to the first Golomb order included in the target code stream to obtain the DC coefficient.
25. A transform coefficient encoding device, It is characterized in that include: An acquisition module is used to obtain the transformation coefficients corresponding to the point cloud; A determination module, configured to determine a first Golomb order corresponding to the DC coefficient according to an amplitude corresponding to the DC coefficient in the transform coefficient; an encoding module, configured to generate a target bitstream according to a first Golomb order corresponding to the DC coefficient and an encoding result of the DC coefficient when the transform coefficient includes only a DC coefficient; or In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations: Generate a target bitstream based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient; the second Golomb order corresponding to each AC coefficient is a preset order; or, Determine a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients; A target bitstream is generated based on the first Golomb order corresponding to the DC coefficient, the encoding result of the DC coefficient, and the encoding result of each AC coefficient.
26. A transform coefficient decoding device, It is characterized in that include: An acquisition module is used to acquire a target bitstream; A first decoding module, configured to decode the encoding result of the DC coefficient included in the target code stream according to the first Golomb order included in the target code stream to obtain the DC coefficient; The second decoding module is configured to, when the target bitstream includes the encoding result of the AC coefficient, perform at least one of the following operations: Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient, wherein the second Golomb order corresponding to each AC coefficient is a preset order; or, Determining a second Golomb order corresponding to an AC coefficient according to the first Golomb order and an amplitude corresponding to a first AC coefficient, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients; Based on the DC coefficient and the AC coefficient, a transformation coefficient is determined; the AC coefficient is obtained by decoding the encoding result of the AC coefficient based on the corresponding second Golomb order.
27. A terminal, It is 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, the step of encoding the transform coefficient as described in any one of claims 1 to 13 is implemented, or the step of decoding the transform coefficient as described in any one of claims 14 to 24 is implemented.
28. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the step of encoding the transform coefficient as described in any one of claims 1-13 is implemented, or the step of decoding the transform coefficient as described in any one of claims 14-24 is implemented.
Citation Information
Patent Citations
Image processing device and method
CN104126304A
Method for depth coding depth block
CN104768016A
Embedded codec EBC circuitry system for position dependent entropy coding of residual level data
CN111541895A
Point cloud data decoding method, point cloud data coding method, point cloud data decoding device, point cloud data coding device, storage medium and equipment
CN115396668A
Advanced syntax for geometry-based point cloud compression
CN115885514A
