Transform coefficient coding method, transform coefficient decoding method, and terminal
By dynamically determining the Columbus order according to the amplitude of the point cloud transformation coefficient, the problem of low coding efficiency in the existing technology is solved and more efficient code stream generation is achieved.
Patent Information
- Application Number
- PCT/CN2024/086905
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-17
- Filing Date
- 2024-04-10
- Publication Date
- 2024-10-24
AI Technical Summary
In the existing technology, point cloud coding efficiency is low, especially when a fixed Golomb order is used to encode the transformation coefficients, resulting in low coding efficiency.
By dynamically determining the Golomb order according to the amplitude of the DC coefficient and the amplitude of the AC coefficient in the point cloud transformation coefficient, the target code stream is generated, thereby improving the coding efficiency.
The code stream efficiency in the transform coefficient encoding process is improved, the number of code streams is reduced, and the coding efficiency is improved.
Smart Images

Figure CN2024086905_24102024_PF_FP_ABST
Abstract
Description
Transform coefficient encoding method, transform coefficient decoding method and terminal
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 202310408592.X filed in China on April 17, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] 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
[0004] A point cloud is a set of irregularly distributed discrete points in space that represent the spatial structure and surface properties of a three-dimensional object or scene. The point cloud encoding process involves encoding attribute information. After encoding the point cloud attribute information to obtain transform coefficients, these coefficients are quantized and then transformed into a bitstream using transform coefficient encoding.
[0005] In the related art, a fixed Golomb order is used to encode transform coefficients, which has a technical problem of low encoding efficiency.
[0006] Summary of the Invention
[0007] 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.
[0008] In a first aspect, a transform coefficient encoding method is provided, comprising:
[0009] The encoder obtains the transformation coefficients corresponding to the point cloud;
[0010] 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;
[0011] 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
[0012] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0013] 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,
[0014] 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, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0015] 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.
[0016] In a second aspect, a transform coefficient decoding method is provided, comprising:
[0017] The decoding end obtains the target bitstream;
[0018] 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;
[0019] The decoding end performs at least one of the following operations when the target bitstream includes the encoding result of the AC coefficient:
[0020] 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
[0021] 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, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0022] Based on the DC coefficient and the AC coefficient, a transformation coefficient is determined; the AC coefficient is obtained by decoding an encoding result of the AC coefficient based on a corresponding second Golomb order.
[0023] According to a third aspect, a transform coefficient encoding apparatus is provided, comprising:
[0024] Acquisition module, used to obtain the transformation coefficients corresponding to the point cloud;
[0025] a determination module, 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;
[0026] 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
[0027] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0028] 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,
[0029] 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, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0030] 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.
[0031] In a fourth aspect, a transform coefficient decoding apparatus is provided, comprising:
[0032] Acquisition module, used to obtain the target code stream;
[0033] A first decoding module is configured to decode an encoding result of a DC coefficient included in the target bitstream according to a first Golomb order included in the target bitstream to obtain a DC coefficient;
[0034] The second decoding module is configured to, when the target bitstream includes an encoding result of an AC coefficient, perform at least one of the following operations:
[0035] 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
[0036] 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, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0037] Based on the DC coefficient and the AC coefficient, a transformation coefficient is determined; the AC coefficient is obtained by decoding an encoding result of the AC coefficient based on a corresponding second Golomb order.
[0038] In a fifth aspect, a terminal is provided, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are 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.
[0039] 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.
[0040] 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 programs or instructions to implement the method described in the first aspect, or to implement the method described in the second aspect.
[0041] 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.
[0042] In an embodiment of the present application, a first Golomb order corresponding to a DC coefficient is determined based on the amplitude corresponding to the DC coefficient. Furthermore, when the transform coefficients include only the DC coefficient, a target bitstream is generated based on the first Golomb order corresponding to the DC coefficient and the encoding result of the DC coefficient. When the transform coefficients include both the DC coefficient and AC 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. Alternatively, 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, 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, the first AC coefficient being the AC coefficient other than the last AC coefficient in the transform coefficients. Compared to the related art in which transform coefficients are encoded based on a fixed Golomb order, this embodiment determines the Golomb order corresponding to the DC coefficient and the Golomb order corresponding to each AC coefficient based on the amplitude of the DC coefficient and the amplitude of the AC coefficients, thereby reducing the bitstream required for transform coefficient encoding and improving coding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] FIG1 is a schematic diagram of a partial framework of a G-PCC point cloud encoding device;
[0044] FIG2 is a schematic diagram of a partial framework of a G-PCC point cloud decoding device;
[0045] FIG3 is a schematic diagram of a flow chart of a transform coefficient encoding method provided in an embodiment of the present application;
[0046] FIG4 is a schematic diagram of a flow chart of a transform coefficient decoding method provided in an embodiment of the present application;
[0047] FIG5 is a structural diagram of a transform coefficient encoding apparatus provided in an embodiment of the present application;
[0048] FIG6 is a structural diagram of a transform coefficient decoding apparatus provided in an embodiment of the present application;
[0049] FIG7 is a structural diagram of a communication device provided in an embodiment of the present application;
[0050] FIG8 is a schematic diagram of the hardware structure of the terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The following will be combined with the accompanying drawings in the embodiments of this application to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0052] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects, for example, the first object can be one or more. In addition, "or" in this application represents at least one of the connected objects. For example, "A or B" covers three options, namely, Option 1: including A but not including B; Option 2: including B but not including A; Option 3: including both A and B. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0053] The term "indication" in this application can be either a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, the operation to be performed, or the requested result, etc. in the instruction sent; an indirect indication can be understood as the receiver determining the corresponding information based on the instruction sent by the sender, or making a judgment and determining the operation to be performed or the requested result, etc. based on the judgment result.
[0054] 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 (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 (PDA), a handheld computer, a netbook, an ultra-mobile personal computer (UMPC), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (AR), a virtual reality (VR) device, a robot, a wearable device (Wearable Device), an aircraft (flight vehicle), a vehicle user equipment (VUE), a shipborne device, a pedestrian user equipment (PUE), a smart home (home appliance with wireless communication function, such as a refrigerator, a television, a washing machine or furniture, etc.), a game console, a 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, vehicle-mounted devices can also be called vehicle-mounted terminals, vehicle-mounted controllers, vehicle-mounted modules, vehicle-mounted components, vehicle-mounted chips, or vehicle-mounted units, etc. It should be noted that the specific type of terminal is not limited in the embodiments of this application.
[0055] For ease of understanding, some of the contents involved in the embodiments of this application are described below:
[0056] Please refer to Figure 1. As shown in Figure 1, in current digital audio and video codec technology standards, a geometry-based point cloud compression (G-PCC) point cloud encoding device can be used to encode point cloud attribute information. Specifically, the point cloud attribute information can be color converted and recolored. Then, based on the reconstructed geometric information, a region-adaptive transform based on upsampling prediction or a lifting transform based on hierarchical structure division can be performed on the recolored attribute information to obtain transform coefficients. The transform coefficients are then quantized to obtain quantized coefficients. Finally, the quantized coefficients are arithmetically encoded to obtain an attribute bitstream.
[0057] Among them, the operation steps of the above-mentioned regional adaptive transformation based on upsampling prediction include: constructing a transformation tree structure of the point cloud; then, performing upsampling prediction and regional adaptive transformation (RAHT) layer by layer from the root node of the transformation tree structure, if the current node is the root node, then directly performing RAHT transformation on the attribute information of the node to obtain the direct current (DC) coefficient and alternating current (AC) coefficient; if the current node is not the root node, then judging whether to predict the current node based on the grandparent node and 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.
[0058] The operation steps of the hierarchical structure division-based lifting transformation include: first, dividing the point cloud into levels of detail (LoD) to establish a hierarchical structure of the point cloud;
[0059] 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 and selects multiple nearest reference points as prediction reference points. The reconstructed attribute values of these multiple prediction reference points are used for linear interpolation prediction; the predicted values are lifted and transformed.
[0060] It should be understood that the above-mentioned arithmetic coding includes zero-run coding and transform coefficient coding. First, the quantized transform coefficients are subjected to zero-run coding, and then the transform coefficients are subjected to transform coefficient coding to generate a bitstream. The following briefly describes the implementation process of zero-run coding: (1) The context probability model 1 is used to determine whether the run value of the transform coefficient is 0. If it is 0, a bit of 0 is encoded and the current coding ends; if it is not 0, a bit of 1 is encoded and the following judgment is continued.
[0061] (2) Use context probability model 2 to determine whether the run value of the transform coefficient is 1. If it is 1, encode a 0 and end the current encoding; if it is not 1, encode a 1 and continue the following judgment.
[0062] (3) Use context probability model 3 to determine whether the run value of the transform coefficient is 2. If it is 2, encode a 0 and end the current encoding; if it is not 2, encode a 1 and continue with the following judgment.
[0063] (4) Update the stroke value, subtract 3 from the stroke value, and obtain the updated stroke value.
[0064] (5) Divide the run value by 2 to obtain the prefix value;
[0065] (6) Encode the prefix value into a unary code using the context probability model 4;
[0066] 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 taking 2; if it is not 0, encode a 1 and continue with the following judgment;
[0067] 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 taking 2; if it is not 1, encode a 1 and continue with the following judgment;
[0068] 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 taking 2; if it is not 2, encode a 1 and continue with the following judgment;
[0069] 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 of 2; if it is not 3, encode a 1 and end this encoding.
[0070] (7) Update the stroke value, subtract 8 from the stroke value, and obtain the updated stroke value.
[0071] (8) The updated run value is obtained by using the second-order exponential Golomb coding through the context probability model 5.
[0072] The following briefly describes the implementation process of transform coefficient coding:
[0073] (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;
[0074] (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;
[0075] (3) The prefix code of the code stream is generated by encoding through 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 generated by encoding through the second group of context probability models (including context probability model 6, context probability model 7 and context probability model 8).
[0076] Please refer to Figure 2. As shown in Figure 2, currently, in the digital audio and video coding and decoding 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 groups of context probability models. A larger number of context probability models are needed to encode the transform coefficient, which results in a larger number of bits in the code stream generated by the encoding.
[0077] To solve the above-mentioned technical problems, the present application provides a transform coefficient coding method, which can be applied to an encoding end. The transform coefficient coding method provided by the present application is described in detail below with reference to the accompanying drawings through some embodiments and their application scenarios.
[0078] Please refer to FIG3 , which is a flowchart of a transform coefficient encoding method according to an embodiment of the present application. The transform coefficient encoding method provided in this embodiment includes the following steps:
[0079] S301: The encoder obtains the transformation coefficients corresponding to the point cloud.
[0080] As described above, after performing a region-adaptive transformation based on upsampling prediction or a quantization obtained by performing a lifting transformation based on hierarchical structure division on the attribute information of the point cloud, a 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.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] S303: When the transform coefficients include only a 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; or
[0086] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0087] 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,
[0088] 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;
[0089] 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.
[0090] In this step, an optional implementation method is to encode the DC coefficient according to the first Golomb order corresponding to the DC coefficient when the transform coefficients only include the DC coefficient, thereby obtaining an encoding result of the DC coefficient. The encoding result of the DC coefficient can be understood as a binary array. The encoding result of the DC coefficient is then mixed with the first Golomb order to generate a target bitstream.
[0091] Another optional implementation is that, when the transform coefficients include 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 a DC coefficient encoding result; the AC coefficient is encoded according to a preset order to obtain an AC coefficient encoding result; the DC coefficient and AC coefficient encoding results can be understood as binary arrays. The DC coefficient encoding result, the AC coefficient encoding result, and the first Golomb order are then mixed to generate a target bitstream. Optionally, the preset order is 1.
[0092] 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.
[0093] Another optional implementation is that, when the transformation coefficient includes a DC coefficient and multiple AC coefficients, the AC coefficients other than the last AC coefficient in the transformation coefficients 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.
[0094] 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 AC coefficient may be determined according to the first Golomb order.
[0095] The second Golomb order is a parameter used in the Golomb encoding and Golomb decoding processes of AC coefficients.
[0096] After obtaining the first Golomb order, Golomb coding is performed on the DC coefficient according to the first Golomb order to obtain the DC coefficient encoding result. After obtaining the second Golomb order corresponding to each AC coefficient, Golomb coding is performed on the AC coefficient according to the second Golomb order corresponding to each AC coefficient to obtain the AC coefficient encoding result. The above DC coefficient encoding result and AC coefficient encoding result can be understood as a binary array. The DC coefficient encoding result, AC coefficient encoding result, and the first Golomb order are then mixed to generate the target bitstream.
[0097] In an embodiment of the present application, a first Golomb order corresponding to the DC coefficient is determined based on the amplitude corresponding to the DC coefficient, and the DC coefficient is then encoded based on the first Golomb order. A second Golomb order corresponding to each AC coefficient is determined based on the first Golomb order and the amplitude corresponding to the first AC coefficient, and the AC coefficient is then encoded based on the second Golomb order. Compared to the related art method of encoding transform coefficients based on a fixed Golomb order, this embodiment determines the Golomb order corresponding to the DC coefficient and the Golomb order corresponding to each AC coefficient based on the amplitude of the DC coefficient and the amplitude of the AC coefficient, thereby reducing the bit rate during the transform coefficient encoding process and improving encoding efficiency.
[0098] 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:
[0099] 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, wherein the second AC coefficient is the first AC coefficient in the transform coefficients;
[0100] For each third AC coefficient in the transformation coefficients, the 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 other than the second AC coefficient.
[0101] 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.
[0102] In this embodiment, the second Golomb order corresponding to the second AC coefficient can be determined based on the first Golomb order. For specific implementations, please refer to the subsequent embodiments. The second Golomb order corresponding to the third AC coefficient can be determined based on the sum of the first Golomb orders corresponding to the third AC coefficient. For specific technical solutions for determining the sum of the first Golomb orders corresponding to the AC coefficients, please refer to the subsequent embodiments.
[0103] In another optional embodiment, the transform coefficient includes an AC coefficient, that is, the transform coefficient includes a second AC coefficient. In this embodiment, the second Golomb order corresponding to the second AC coefficient can be determined according to the first Golomb order.
[0104] In this embodiment, for the second AC coefficient in the transform coefficient, the second Golomb order corresponding to the second AC coefficient is determined based on 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 based on the first Golomb order of the third AC coefficient, and then the AC coefficient is encoded according to the optimal Golomb order to improve coding efficiency.
[0105] Optionally, determining a second Golomb order corresponding to the second AC coefficient according to the first Golomb order includes:
[0106] The difference between the first Golomb order and a preset value is determined as the second Golomb order corresponding to the second AC coefficient, where the preset value is a natural number.
[0107] In this embodiment, the second Golomb order corresponding to the second AC coefficient can be determined by the following formula (1): attr_golomb_num_AC=attr_golomb_num_DC-num (1)
[0108] 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, optionally, the above preset value is 4.
[0109] 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 encoding efficiency.
[0110] Optionally, determining the second Golomb order corresponding to the third AC coefficient according to the sum of the first Golomb orders corresponding to the third AC coefficient includes:
[0111] determining at least one AC coefficient associated with the third AC coefficient according to an order of the third AC coefficient among the transform coefficients;
[0112] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum;
[0113] A division result between the first Golomb order sum 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.
[0114] 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 the AC coefficient adjacent to the third AC coefficient.
[0115] After determining at least one AC coefficient associated with the third AC coefficient, a 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 first Golomb order sum. It should be noted that when the attribute information of the point cloud is color information, the Golomb order of the 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 AC coefficient is determined based on the amplitude of the AC coefficient.
[0116] In this embodiment, the second Golomb order corresponding to the third AC coefficient can be determined by the following formula (2):
[0117] Among them, golombSum1 represents the first Golomb order sum, AWinSize1 represents the first value, and attr_golomb_num_AC represents the second Golomb order.
[0118] 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 encoding efficiency.
[0119] 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 includes:
[0120] In a case where the third AC coefficient is ranked Nth or before Nth among the transform coefficients, all AC coefficients preceding 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
[0121] In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients preceding the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
[0122] 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.
[0123] 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.
[0124] To facilitate understanding of the technical solution provided by this embodiment, please refer to the following examples:
[0125] Example 1:
[0126] The value of N is 5, and the third AC coefficient is ranked 4th among the transform coefficients. It should be understood that the DC coefficient is ranked 1st among the transform coefficients. In this case, the second and third AC coefficients can be determined as AC coefficients associated with the third AC coefficient.
[0127] Example 2:
[0128] 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.
[0129] Optionally, the method further includes:
[0130] 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;
[0131] The first target AC coefficient is any third AC coefficient among the transformation coefficients.
[0132] 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 implementation, please refer to the subsequent embodiments.
[0133] When the target Columbus order corresponding to the first target AC coefficient is smaller 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 can be omitted from determining 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 can be directly determined as first order.
[0134] Optionally, the first preset threshold is 1.
[0135] 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 the second Golomb order corresponding to the first target AC coefficient is determined based on the target Golomb order. Thus, the Golomb order corresponding to the AC coefficient is determined based on the amplitude of the AC coefficient, and the AC coefficient is subsequently encoded based on the Golomb order, thereby reducing the bitrate generated during the encoding process and improving encoding efficiency.
[0136] The following describes how to determine the target Columbus order:
[0137] Optionally, 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 an AC coefficient subsequent to the first target AC coefficient to be before the first order, the method further includes:
[0138] determining, 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;
[0139] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum;
[0140] A division result between the second Golomb order sum and a second value is determined as the target Golomb order, where the second value represents the number of the at least one AC coefficient.
[0141] In an optional 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.
[0142] 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.
[0143] For example: the first target AC coefficient is ranked 5 in the transformation coefficients, 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 coefficients 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 the sum of the second Golomb order can be determined to be 8, the second value is 2, and the target Golomb order corresponding to the first target AC coefficient is 4.
[0144] Specifically, the target Golomb order corresponding to the first target AC coefficient can be determined by the following formula (3).
[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 embodiment, the above-mentioned first target AC coefficient is the second-ranked AC coefficient in the transformation coefficients. In this embodiment, the first-ranked AC coefficient is determined to be 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 includes:
[0148] 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, determining 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 to be first order;
[0149] Among them, the first target AC coefficient is any third AC coefficient in the transformation coefficient, 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 coefficient 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 coefficient.
[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 can be omitted from determining 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 can be 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, is correlated with the amplitude of the first target AC coefficient. The Golomb value of the first target AC coefficient is then determined based on the second Golomb order corresponding to the second target AC coefficient and the second Golomb order corresponding to the third target AC coefficient. Thus, the Golomb order corresponding to the AC coefficient is determined based on the amplitude of the AC coefficient, and the AC coefficient is subsequently encoded based on the Golomb order, thereby reducing the bitrate generated during the encoding process and improving encoding efficiency.
[0154] Optionally, the method further includes:
[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 a third preset threshold and less than or equal to a fourth preset threshold, encoding the Y component of the AC coefficient according to the second Golomb order, and encoding the U component and the V component of the AC coefficient 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 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 a fourth value, and the fourth 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-mentioned 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 the components of the AC coefficient are 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 how to calculate the first Columbus order sum:
[0164] Optionally, the method further includes:
[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 a 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 based on 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 method 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 a logarithmic operation on the amplitude 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.
[0170] Below, we explain 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 includes:
[0172] In a case where the attribute information of the point cloud is color information, determining 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 amplitudes of the corresponding components; 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 result is rounded up to obtain the Golomb order corresponding to that component. The first Golomb order corresponding to the DC coefficient is then determined based on 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. For a specific implementation, 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] 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.
[0177] 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 rate in the transformation coefficient encoding process and further improving the encoding efficiency.
[0178] 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:
[0179] Determine an 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
[0180] determining 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
[0181] 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.
[0182] 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 first Golomb order corresponding to the DC coefficient.
[0183] 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.
[0184] For example, if 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.
[0185] 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.
[0186] 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.
[0187] Optionally, determining the first Golomb order corresponding to the DC coefficient according to the amplitude corresponding to the DC coefficient in the transform coefficient includes:
[0188] In a case where the identification information included in the attribute parameter set of the point cloud indicates that adaptive Golomb coding is performed, a first Golomb order corresponding to the DC coefficient is determined according to an amplitude corresponding to the DC coefficient in the transform coefficient.
[0189] In this embodiment, an attribute parameter set (APS) of the point cloud may also be obtained. The attribute parameter set includes flag information adaptiveExpGolombFlag, which is used to indicate whether adaptive Golomb coding is performed.
[0190] 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 coding method provided in this 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.
[0191] 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 exponent.
[0192] It should be understood that during the encoding process, the above attribute information parameter set is written into the target code stream.
[0193] 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.
[0194] Table 1:
[0195] Table 2:
[0196] The values in Table 1 and Table 2 are used to represent 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 art when the peak signal-to-noise ratio is the same. It should be understood that the lower the value, the greater the bit rate reduction.
[0197] For example, "-0.1%" in the second row and second column of Table 1 indicates that the code stream corresponding to the Y component generated by the transform coefficient encoding provided by the embodiment of the present application has a code rate reduced by 0.1% compared to the code stream corresponding to the Y component generated using related technologies.
[0198] Please refer to Figure 4, which is a flow chart of a transform coefficient decoding method provided in an embodiment of the present application. The transform coefficient decoding method provided in this embodiment includes the following steps:
[0199] S401: The decoding end obtains the target bitstream.
[0200] 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.
[0201] S402: The decoding end decodes 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.
[0202] 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.
[0203] S403: When the target bitstream includes the encoding result of AC coefficients, the decoding end performs at least one of the following operations:
[0204] Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient; or,
[0205] 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;
[0206] Based on the DC coefficient and the AC coefficient, a transform coefficient is determined.
[0207] In this step, an optional implementation is to decode the encoding result of the AC coefficients according to a preset order to obtain the AC coefficients; and then combine and sort the DC coefficients and the AC coefficients to obtain the transform coefficients. Optionally, the preset order is 1.
[0208] In another optional implementation of this step, the decoding end can determine the second Golomb order corresponding to the AC coefficient based on the first Golomb order and the amplitude corresponding to the first AC coefficient. For a specific implementation, please refer to the subsequent embodiments. The first AC coefficient is the AC coefficient other than the last AC coefficient in the transform coefficients. 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 AC coefficient are combined and sorted to obtain the transform coefficient.
[0209] It should be understood that, when the target code stream does not include AC coefficients, the transform coefficients only include DC coefficients.
[0210] 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, and will not be repeated here.
[0211] 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.
[0212] 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:
[0213] 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, wherein the second AC coefficient is the first AC coefficient in the transform coefficients;
[0214] For each third AC coefficient in the transformation coefficients, the 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 other than the second AC coefficient.
[0215] In an optional embodiment, the transform coefficients include multiple AC coefficients, i.e., the transform coefficients include a second AC coefficient and a third AC coefficient, wherein the second AC coefficient is the first AC coefficient 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 embodiment, the second Golomb order corresponding to the second AC coefficient can be determined based on the first Golomb order.
[0216] In another optional embodiment, the transform coefficient includes an AC coefficient, that is, the transform coefficient includes a second AC coefficient. In this embodiment, the second Golomb order corresponding to the second AC coefficient can be determined according to the first Golomb order.
[0217] Optionally, determining a second Golomb order corresponding to the second AC coefficient according to the first Golomb order includes:
[0218] The difference between the first Golomb order and a preset value is determined as the second Golomb order corresponding to the second AC coefficient, where the preset value is a natural number.
[0219] 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.
[0220] Optionally, determining the second Golomb order corresponding to the third AC coefficient according to the sum of the first Golomb orders corresponding to the third AC coefficient includes:
[0221] determining at least one AC coefficient associated with the third AC coefficient according to an order of the third AC coefficient among the transformed AC coefficients;
[0222] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum;
[0223] A division result between the first Golomb order sum 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.
[0224] 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 the AC coefficient adjacent to the third AC coefficient.
[0225] 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 of the Golomb orders of each associated AC coefficient is determined as a first Golomb order sum.
[0226] 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.
[0227] 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 includes:
[0228] In a case where the third AC coefficient is ranked Nth or before Nth in the transformed AC coefficients, all AC coefficients preceding 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
[0229] In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients preceding the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
[0230] 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. For specific implementations, please refer to the relevant embodiments of the encoding end.
[0231] Optionally, the method further includes:
[0232] 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;
[0233] The first target AC coefficient is any third AC coefficient among the transformation coefficients.
[0234] 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 can be omitted from determining 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 can be directly determined as first order.
[0235] Optionally, 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 an AC coefficient subsequent to the first target AC coefficient to be before the first order, the method further includes:
[0236] determining, 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;
[0237] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum;
[0238] A division result between the second Golomb order sum and a second value is determined as the target Golomb order, where the second value represents the number of the at least one AC coefficient.
[0239] 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. Specific implementations may be referred to in the relevant embodiments of the encoding end.
[0240] Optionally, the method further includes:
[0241] 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, determining 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 to be first order;
[0242] Among them, the first target AC coefficient is any third AC coefficient in the transformation coefficient, 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.
[0243] When the second Golomb order corresponding to the second target AC coefficient and the second Golomb order corresponding to the third target AC coefficient are both less than or equal to the second preset threshold, it indicates that the amplitude of the first target AC coefficient is small and the second Golomb 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 Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient located after the first target AC coefficient. Instead, the second Golomb order corresponding to the first target AC coefficient and the second Golomb order corresponding to the AC coefficient located after the first target AC coefficient may be directly determined as first order. For specific implementation methods, please refer to the relevant embodiments of the encoding end.
[0244] Optionally, the method further includes:
[0245] 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, decoding the AC coefficient according to the first-order Golomb index; or
[0246] 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
[0247] 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 V component of the AC coefficient are decoded according to a fourth value, and the fourth value is the difference between the second Golomb order and the fourth preset threshold.
[0248] 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.
[0249] 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.
[0250] 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-mentioned fourth value is the difference between the second Golomb order and the fourth preset threshold.
[0251] Optionally, the method further includes:
[0252] 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,
[0253] 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.
[0254] An optional implementation method 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.
[0255] Another optional implementation is, when the attribute information of the point cloud is reflectivity information, performing a logarithmic operation on the amplitude 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.
[0256] Optionally, decoding an encoding result of a DC coefficient included in the target bitstream according to a first Golomb order included in the target bitstream to obtain the DC coefficient includes:
[0257] In a 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.
[0258] In this embodiment, the target code stream includes an attribute information parameter set of the point cloud. The attribute information parameter set includes identification information adaptiveExpGolombFlag, which is used to indicate whether to perform adaptive Golomb decoding.
[0259] 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 this 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.
[0260] 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 exponent.
[0261] The transform coefficient coding method provided in the embodiment of the present application can 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 used as an example to illustrate the transform coefficient coding device provided in the embodiment of the present application.
[0262] As shown in FIG5 , the embodiment of the present application further provides a transform coefficient encoding apparatus 500, comprising:
[0263] Acquisition module 501, used to obtain the transformation coefficients corresponding to the point cloud;
[0264] a determination module 502, configured to determine a first Golomb order corresponding to a DC coefficient in the transform coefficients according to an amplitude corresponding to the DC coefficient;
[0265] The encoding module 503 is configured to generate 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
[0266] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0267] 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,
[0268] 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, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0269] 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.
[0270] Optionally, the encoding module 503 is specifically configured to:
[0271] 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, wherein the second AC coefficient is the first AC coefficient in the transform coefficients;
[0272] For each third AC coefficient in the transformation coefficients, the 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 other than the second AC coefficient.
[0273] Optionally, the encoding module 503 is further specifically configured to:
[0274] The difference between the first Golomb order and a preset value is determined as the second Golomb order corresponding to the second AC coefficient, where the preset value is a natural number.
[0275] Optionally, the encoding module 503 is further specifically configured to:
[0276] determining at least one AC coefficient associated with the third AC coefficient according to an order of the third AC coefficient among the transform coefficients;
[0277] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum;
[0278] A division result between the first Golomb order sum 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.
[0279] Optionally, the encoding module 503 is further specifically configured to:
[0280] In a case where the third AC coefficient is ranked Nth or before Nth among the transform coefficients, all AC coefficients preceding 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
[0281] In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients preceding the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
[0282] Optionally, the encoding module 503 is further specifically configured to:
[0283] 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;
[0284] The first target AC coefficient is any third AC coefficient among the transformation coefficients.
[0285] Optionally, the encoding module 503 is further specifically configured to:
[0286] determining, 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;
[0287] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum;
[0288] A division result between the second Golomb order sum and a second value is determined as the target Golomb order, where the second value represents the number of the at least one AC coefficient.
[0289] Optionally, the encoding module 503 is further specifically configured to:
[0290] 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, determining 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 to be first order;
[0291] Among them, the first target AC coefficient is any third AC coefficient in the transformation coefficient, 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.
[0292] Optionally, the encoding module 503 is further specifically configured to:
[0293] 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
[0294] 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 third preset threshold and less than or equal to a fourth preset threshold, encoding the Y component of the AC coefficient according to the second Golomb order, and encoding the U component and the V component of the AC coefficient according to the first-order Golomb index; or
[0295] 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 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 value, and the fourth value is the difference between the second Golomb order and the fourth preset threshold.
[0296] Optionally, the encoding module 503 is further specifically configured to:
[0297] 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,
[0298] In a 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.
[0299] Optionally, the determining module 502 is specifically configured to:
[0300] In a case where the attribute information of the point cloud is color information, determining 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 amplitudes of the corresponding components; or
[0301] 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.
[0302] Optionally, the determining module 502 is further specifically configured to:
[0303] Determine an 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
[0304] determining 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
[0305] 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.
[0306] Optionally, the determining module 502 is further specifically configured to:
[0307] In a case where the identification information included in the attribute parameter set of the point cloud indicates that adaptive Golomb coding is performed, a first Golomb order corresponding to the DC coefficient is determined according to an amplitude corresponding to the DC coefficient in the transform coefficient.
[0308] 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.
[0309] This device embodiment corresponds to the transform coefficient encoding method embodiment shown in FIG3 above. All implementation processes and implementation methods on the encoding end in the above method embodiment are applicable to this device embodiment and can achieve the same technical effects.
[0310] The transform coefficient decoding method provided in the embodiment of the present application can 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 performed by the transform coefficient decoding device as an example.
[0311] As shown in FIG6 , the embodiment of the present application further provides a transform coefficient decoding apparatus 600, comprising:
[0312] Acquisition module 601, used to acquire target bitstream;
[0313] A first decoding module 602 is 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;
[0314] The second decoding module 603 is configured to, when the target bitstream includes the encoding result of the AC coefficient, perform at least one of the following operations:
[0315] 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
[0316] 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, wherein the first AC coefficient is an AC coefficient other than the last AC coefficient in the transform coefficients;
[0317] Based on the DC coefficient and the AC coefficient, a transformation coefficient is determined; the AC coefficient is obtained by decoding an encoding result of the AC coefficient based on a corresponding second Golomb order.
[0318] Optionally, the second decoding module 603 is specifically configured to:
[0319] 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, wherein the second AC coefficient is the first AC coefficient in the transform coefficients;
[0320] For each third AC coefficient in the transformation coefficients, the 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 other than the second AC coefficient.
[0321] Optionally, the second decoding module 603 is further specifically configured to:
[0322] The difference between the first Golomb order and a preset value is determined as the second Golomb order corresponding to the second AC coefficient, where the preset value is a natural number.
[0323] Optionally, the second decoding module 603 is further specifically configured to:
[0324] determining at least one AC coefficient associated with the third AC coefficient according to an order of the third AC coefficient among the transformed AC coefficients;
[0325] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum;
[0326] A division result between the first Golomb order sum 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.
[0327] Optionally, the second decoding module 603 is further specifically configured to:
[0328] In a case where the third AC coefficient is ranked Nth or before Nth in the transformed AC coefficients, all AC coefficients preceding 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
[0329] In a case where the third AC coefficient is ranked after the Nth position in the at least two AC coefficients, N AC coefficients preceding the third AC coefficient are determined as at least one AC coefficient associated with the third AC coefficient.
[0330] Optionally, the second decoding module 603 is further specifically configured to:
[0331] 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;
[0332] The first target AC coefficient is any third AC coefficient among the transformation coefficients.
[0333] Optionally, the second decoding module 603 is further specifically configured to:
[0334] determining, 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;
[0335] Calculating a sum of the Golomb orders corresponding to the at least one AC coefficient to obtain a second Golomb order sum;
[0336] A division result between the second Golomb order sum and a second value is determined as the target Golomb order, where the second value represents the number of the at least one AC coefficient.
[0337] Optionally, the second decoding module 603 is further specifically configured to:
[0338] 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, determining 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 to be first order;
[0339] Among them, the first target AC coefficient is any third AC coefficient in the transformation coefficient, 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.
[0340] Optionally, the second decoding module 603 is further specifically configured to:
[0341] 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, decoding the AC coefficient according to the first-order Golomb index; or
[0342] 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
[0343] 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 V component of the AC coefficient are decoded according to a fourth value, and the fourth value is the difference between the second Golomb order and the fourth preset threshold.
[0344] Optionally, the second decoding module 603 is further specifically configured to:
[0345] 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,
[0346] 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.
[0347] Optionally, the first decoding module 602 is specifically configured to:
[0348] In a 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.
[0349] 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 based on the first Golomb order corresponding to the DC coefficient and the amplitude of the AC coefficient, thereby improving decoding efficiency.
[0350] The transform coefficient decoding device provided in the embodiment of the present application can implement the various processes implemented in the method embodiment of Figure 4 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0351] The transform coefficient encoding device and the transform coefficient decoding device in the embodiments of the present application can be electronic devices, such as electronic devices with an operating system, or components in electronic devices, such as integrated circuits or chips. The electronic device can be a terminal or other device other than a terminal. For example, the terminal can include but is not limited to the types of terminals listed above, and the other device can be a server, a network attached storage (NAS), etc., which are not specifically limited in the embodiments of the present application.
[0352] The transform coefficient encoding device provided in the embodiment of the present application can implement the various processes implemented in the method embodiment of Figure 3 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0353] The transform coefficient decoding device provided in the embodiment of the present application can implement the various processes implemented in the method embodiment of Figure 4 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0354] Optionally, as shown in Figure 7, 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 a program or instruction that can be run 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.
[0355] 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 configured to execute a program or instruction to implement the steps of the method embodiment shown in FIG3 , or to implement the steps of the method embodiment shown in FIG4 . 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, FIG8 is a schematic diagram of the hardware structure of a terminal implementing an embodiment of the present application.
[0356] The terminal 800 includes but is not limited to components such as 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 .
[0357] Those skilled in the art will appreciate that the terminal 800 may also include a power supply (such as a battery) to power various components. The power supply may be logically connected to the processor 810 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. The terminal structure shown in FIG8 does not constitute a limitation of the terminal. The terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0358] It should be understood that in an embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 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.
[0359] In the embodiment of the present application, after receiving downlink data from the network-side device, the radio frequency unit 801 can transmit the data to the processor 88 for processing; the radio frequency unit 801 can also send uplink data to the network-side device. Generally, the radio frequency unit 801 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc.
[0360] 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, applications or instructions required for at least one function (such as a sound playback function, an image playback function, 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 random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0361] Processor 810 may include one or more processing units. Optionally, processor 810 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 810.
[0362] The processor 810 is configured to perform the following operations:
[0363] Get the transformation coefficient corresponding to the point cloud;
[0364] determining a first Golomb order corresponding to a DC coefficient in the transform coefficients according to an amplitude corresponding to the DC coefficient;
[0365] 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
[0366] In a case where the transform coefficients include DC coefficients and AC coefficients, performing at least one of the following operations:
[0367] 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,
[0368] 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;
[0369] 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.
[0370] Alternatively, the processor 810 is further configured to perform the following operations:
[0371] Get the target stream;
[0372] decoding, according to a first Golomb order included in the target bitstream, an encoding result of a DC coefficient included in the target bitstream to obtain a DC coefficient;
[0373] In a case where the target code stream includes an encoding result of an AC coefficient, performing at least one of the following operations:
[0374] Determine a transform coefficient according to the encoding result of each AC coefficient and the DC coefficient; or,
[0375] 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;
[0376] Based on the DC coefficient and the AC coefficient, a transform coefficient is determined.
[0377] 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 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.
[0378] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. In some examples, the readable storage medium may be a non-transitory readable storage medium.
[0379] 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.
[0380] 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.
[0381] An embodiment of the present application further provides a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned 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 is not repeated here.
[0382] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0383] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general-purpose hardware platform, or of course, by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.) and includes a number of instructions for enabling a terminal or network-side device to execute the methods described in each embodiment of the present application.
[0384] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of this application and the scope of protection of the claims. These implementation methods are all within the protection of this application.
Claims
1. A transform coefficient encoding method, comprising: The encoder obtains the transformation coefficients corresponding to the point cloud; 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; 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: generating a target bitstream based on a first Golomb order corresponding to the DC coefficient, an encoding result of the DC coefficient, and an encoding result of each AC coefficient; wherein the second Golomb order corresponding to each AC coefficient is a preset order; or, 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, 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, wherein 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 includes: The encoder 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, wherein the second AC coefficient is the first AC coefficient in the transform coefficients; The encoding end determines, for each third AC coefficient in the transformation coefficient, a second Golomb order corresponding to the third AC coefficient based on the sum of the first Golomb orders corresponding to the third AC coefficient; the third AC coefficient is an AC coefficient in the transformation coefficient other than the second AC coefficient.
3. The method according to claim 2, wherein: 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, where the preset value is a natural number.
4. The method according to claim 2, wherein: The determining, based on the sum of the first Golomb orders corresponding to the third AC coefficient, the second Golomb order corresponding to the third AC coefficient includes: The encoding end determines, according to the order of the third AC coefficient in the transform coefficients, at least one AC coefficient associated with the third AC coefficient; The encoding end calculates a sum of Golomb orders corresponding to the at least one AC coefficient to obtain the first Golomb order sum; The encoder determines a division result between the first Golomb order sum and a first value as a second Golomb order corresponding to the third AC coefficient, wherein the first value represents at least one AC coefficient associated with the third AC coefficient. The number of coefficients.
5. The method according to claim 4, wherein 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 encoder determines, when the third AC coefficient is ranked Nth or before Nth among the transform coefficients, all AC coefficients preceding 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 preceding 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, further comprising: The encoder 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, wherein: 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 before the first order, the method further includes: The encoder determines, according to the order of the first target AC coefficients in the transform coefficients, at least one AC coefficient associated with the first target AC coefficient; The encoding end calculates a sum of 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, where the second value represents the number of the at least one AC coefficient.
8. The method according to claim 1, further comprising: 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 in the transformation coefficient, 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, further comprising: 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 a 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 value, and is less than or equal to a fourth preset threshold, encoding the Y component of the AC coefficient according to the second Golomb order, and encoding the U component and the V component of the AC coefficient 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 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 value, and the fourth 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, further comprising: When the attribute information of the point cloud is color information, the encoding end determines the first Golomb order based on the amplitude of the Y component of the corresponding AC coefficient; or In a 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, wherein Determining, according to the amplitude corresponding to the DC coefficient in the transform coefficient, the first Golomb order corresponding to the DC coefficient includes: The encoder determines, when the attribute information of the point cloud is color information, a first Golomb order corresponding to the DC coefficient based on 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 amplitudes of corresponding components; 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, wherein The determining, 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, a first Golomb order corresponding to the DC coefficient includes: The encoding end determines an 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 determining 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, wherein Determining, according to the amplitude corresponding to the DC coefficient in the transform coefficient, the first Golomb order corresponding to the DC coefficient includes: The encoding end determines a first Golomb order corresponding to a DC coefficient in the transform coefficient according to an amplitude corresponding to the DC coefficient when the identification information included in the attribute parameter set of the point cloud indicates that adaptive Golomb coding is performed.
14. A transform coefficient decoding method, comprising: 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 code stream 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, according to the first Golomb order and the amplitude corresponding to the first AC coefficient, a second Golomb order corresponding to the 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 an encoding result of the AC coefficient based on a corresponding second Golomb order.
15. The method according to claim 14, wherein 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 includes: 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, wherein the second AC coefficient is the first AC coefficient in the transform coefficients; The decoding end determines, for each third AC coefficient in the transformation coefficient, a second Golomb order corresponding to the third AC coefficient based on the sum of the first Golomb orders corresponding to the third AC coefficient; the third AC coefficient is the AC coefficient in the transformation coefficient other than the second AC coefficient.
16. The method according to claim 15, wherein 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, where the preset value is a natural number.
17. The method according to claim 15, wherein: The determining, based on the sum of the first Golomb orders corresponding to the third AC coefficient, the second Golomb order corresponding to the third AC coefficient includes: 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 transform 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, where 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, wherein 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 Nth or before Nth in the transformed AC coefficients, all AC coefficients preceding 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 the case where the third AC coefficient is ranked after the Nth in the at least two AC coefficients, N AC coefficients preceding 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, further comprising: The decoding 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.
20. The method according to claim 19, wherein 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 before the first order, the method further includes: The decoding end determines, according to the order of the first target AC coefficients in the transform coefficients, at least one AC coefficient associated with the first target AC coefficient; 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 sum and a second value as the target Golomb order, where the second value represents the number of the at least one AC coefficient.
21. The method according to claim 15, further comprising: The decoding 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 in the transformation coefficient, 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, further comprising: 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 a 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 V component of the AC coefficient are decoded according to a fourth value, and the fourth 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, further comprising: When the attribute information of the point cloud is color information, the decoding end determines the first Golomb order and 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.
24. The method according to any one of claims 14 to 23, wherein: The decoding of 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: 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 when the identification information included in the attribute parameter set of the target code stream indicates that adaptive Golomb decoding is performed.
25. A transform coefficient encoding apparatus, comprising: The 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 a DC coefficient in the transform coefficients according to an amplitude corresponding to the DC 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: generating a target bitstream based on a first Golomb order corresponding to the DC coefficient, an encoding result of the DC coefficient, and an encoding result of each AC coefficient; wherein the second Golomb order corresponding to each AC coefficient is a preset order; or, 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, 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 apparatus, comprising: Acquisition module, used to obtain the target code stream; A first decoding module is configured to decode an encoding result of a DC coefficient included in the target bitstream according to a first Golomb order included in the target bitstream to obtain a DC coefficient; The second decoding module is configured to, when the target bitstream includes an encoding result of an 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, according to the first Golomb order and the amplitude corresponding to the first AC coefficient, a second Golomb order corresponding to the 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 an encoding result of the AC coefficient based on a corresponding second Golomb order.
27. A terminal comprising 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, implements the step of encoding the transform coefficient according to any one of claims 1 to 13, or implements the step of decoding the transform coefficient according to any one of claims 14 to 24.
28. A readable storage medium storing a program or instruction, wherein when the program or instruction is executed by a processor, the program or instruction implements the step of encoding the transform coefficient according to any one of claims 1 to 13, or implements the step of decoding the transform coefficient according to any one of claims 14 to 24.
Citation Information
Patent Citations
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
Encoders, decoders, codecs and systems and processes for their operation and manufacture
US20100290533A1
Embedded codec circuitry for sub-block based entropy coding of quantized-transformed residual levels
US20200137402A1
Simplification of delta DC residual coding in 3D video coding
WO2015100514A1
