GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
kd_tree_attributes_decoder.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_ATTRIBUTES_KD_TREE_ATTRIBUTES_DECODER_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_KD_TREE_ATTRIBUTES_DECODER_H_
17
20
21namespace draco {
22
23// Decodes attributes encoded with the KdTreeAttributesEncoder.
25 public:
27
28 protected:
29 bool DecodePortableAttributes(DecoderBuffer *in_buffer) override;
32
33 private:
34 template <int level_t, typename OutIteratorT>
35 bool DecodePoints(int total_dimensionality, int num_expected_points,
36 DecoderBuffer *in_buffer, OutIteratorT *out_iterator);
37
38 template <typename SignedDataTypeT>
39 bool TransformAttributeBackToSignedType(PointAttribute *att,
40 int num_processed_signed_components);
41
42 std::vector<AttributeQuantizationTransform>
43 attribute_quantization_transforms_;
44 std::vector<int32_t> min_signed_values_;
45 std::vector<std::unique_ptr<PointAttribute>> quantized_portable_attributes_;
46};
47
48} // namespace draco
49
50#endif // DRACO_COMPRESSION_ATTRIBUTES_KD_TREE_ATTRIBUTES_DECODER_H_
AttributesDecoder()
Definition attributes_decoder.cc:21
Definition decoder_buffer.h:30
bool TransformAttributesToOriginalFormat() override
Definition kd_tree_attributes_decoder.cc:493
bool DecodePortableAttributes(DecoderBuffer *in_buffer) override
Definition kd_tree_attributes_decoder.cc:134
bool DecodeDataNeededByPortableTransforms(DecoderBuffer *in_buffer) override
Definition kd_tree_attributes_decoder.cc:273
KdTreeAttributesDecoder()
Definition kd_tree_attributes_decoder.cc:132
Definition point_attribute.h:33
Definition attribute_octahedron_transform.cc:21