GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
point_cloud_sequential_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_SEQUENTIAL_ENCODER_H_
16#define DRACO_COMPRESSION_POINT_CLOUD_POINT_CLOUD_SEQUENTIAL_ENCODER_H_
17
19
20namespace draco {
21
22// A basic point cloud encoder that iterates over all points and encodes all
23// attribute values for every visited point. The attribute values encoding
24// can be controlled using provided encoding option to enable features such
25// as quantization or prediction schemes.
26// This encoder preserves the order and the number of input points, but the
27// mapping between point ids and attribute values may be different for the
28// decoded point cloud.
30 public:
31 uint8_t GetEncodingMethod() const override {
33 }
34
35 protected:
36 Status EncodeGeometryData() override;
37 bool GenerateAttributesEncoder(int32_t att_id) override;
38 void ComputeNumberOfEncodedPoints() override;
39};
40
41} // namespace draco
42
43#endif // DRACO_COMPRESSION_POINT_CLOUD_POINT_CLOUD_SEQUENTIAL_ENCODER_H_
PointCloudEncoder()
Definition point_cloud_encoder.cc:23
Definition point_cloud_sequential_encoder.h:29
Status EncodeGeometryData() override
Definition point_cloud_sequential_encoder.cc:24
bool GenerateAttributesEncoder(int32_t att_id) override
Definition point_cloud_sequential_encoder.cc:30
void ComputeNumberOfEncodedPoints() override
Definition point_cloud_sequential_encoder.cc:47
uint8_t GetEncodingMethod() const override
Definition point_cloud_sequential_encoder.h:31
Definition status.h:25
Definition attribute_octahedron_transform.cc:21
@ POINT_CLOUD_SEQUENTIAL_ENCODING
Definition compression_shared.h:50