GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
point_cloud_kd_tree_encoder.h
Go to the documentation of this file.
1// Copyright 2016 The Draco Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15#ifndef DRACO_COMPRESSION_POINT_CLOUD_POINT_CLOUD_KD_TREE_ENCODER_H_
16#define DRACO_COMPRESSION_POINT_CLOUD_POINT_CLOUD_KD_TREE_ENCODER_H_
17
19
20namespace draco {
21
22// Encodes a PointCloud using one of the available Kd-tree compression methods.
23// See FloatPointsKdTreeEncoder and DynamicIntegerPointsKdTreeEncoder for more
24// details. Currently, the input PointCloud must satisfy the following
25// requirements to use this encoder:
26// 1. PointCloud has only one attribute of type GeometryAttribute::POSITION.
27// 2. The position attribute has three components (x,y,z).
28// 3. The position values are stored as either DT_FLOAT32 or DT_UINT32.
29// 4. If the position values are stored as DT_FLOAT32, quantization needs to
30// be enabled for the position attribute.
32 public:
33 uint8_t GetEncodingMethod() const override {
35 }
36
37 protected:
38 Status EncodeGeometryData() override;
39 bool GenerateAttributesEncoder(int32_t att_id) override;
40 void ComputeNumberOfEncodedPoints() override;
41};
42
43} // namespace draco
44
45#endif // DRACO_COMPRESSION_POINT_CLOUD_POINT_CLOUD_KD_TREE_ENCODER_H_
PointCloudEncoder()
Definition point_cloud_encoder.cc:23
Definition point_cloud_kd_tree_encoder.h:31
uint8_t GetEncodingMethod() const override
Definition point_cloud_kd_tree_encoder.h:33
Status EncodeGeometryData() override
Definition point_cloud_kd_tree_encoder.cc:23
bool GenerateAttributesEncoder(int32_t att_id) override
Definition point_cloud_kd_tree_encoder.cc:29
void ComputeNumberOfEncodedPoints() override
Definition point_cloud_kd_tree_encoder.cc:41
Definition status.h:25
Definition attribute_octahedron_transform.cc:21
@ POINT_CLOUD_KD_TREE_ENCODING
Definition compression_shared.h:51