GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
sequential_quantization_attribute_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_SEQUENTIAL_QUANTIZATION_ATTRIBUTE_DECODER_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_SEQUENTIAL_QUANTIZATION_ATTRIBUTE_DECODER_H_
17
21
22namespace draco {
23
24// Decoder for attribute values encoded with the
25// SequentialQuantizationAttributeEncoder.
28 public:
30 bool Init(PointCloudDecoder *decoder, int attribute_id) override;
31
32 protected:
33 bool DecodeIntegerValues(const std::vector<PointIndex> &point_ids,
34 DecoderBuffer *in_buffer) override;
36 const std::vector<PointIndex> &point_ids,
37 DecoderBuffer *in_buffer) override;
38 bool StoreValues(uint32_t num_points) override;
39
40 // Decodes data necessary for dequantizing the encoded values.
41 virtual bool DecodeQuantizedDataInfo();
42
43 // Dequantizes all values and stores them into the output attribute.
44 virtual bool DequantizeValues(uint32_t num_values);
45
46 private:
47 AttributeQuantizationTransform quantization_transform_;
48};
49
50} // namespace draco
51
52#endif // DRACO_COMPRESSION_ATTRIBUTES_SEQUENTIAL_QUANTIZATION_ATTRIBUTE_DECODER_H_
Definition attribute_quantization_transform.h:27
Definition decoder_buffer.h:30
Definition point_cloud_decoder.h:28
int attribute_id() const
Definition sequential_attribute_decoder.h:55
PointCloudDecoder * decoder() const
Definition sequential_attribute_decoder.h:56
SequentialIntegerAttributeDecoder()
Definition sequential_integer_attribute_decoder.cc:23
bool StoreValues(uint32_t num_points) override
Definition sequential_quantization_attribute_decoder.cc:64
bool DecodeDataNeededByPortableTransform(const std::vector< PointIndex > &point_ids, DecoderBuffer *in_buffer) override
Definition sequential_quantization_attribute_decoder.cc:51
bool DecodeIntegerValues(const std::vector< PointIndex > &point_ids, DecoderBuffer *in_buffer) override
Definition sequential_quantization_attribute_decoder.cc:38
virtual bool DequantizeValues(uint32_t num_values)
Definition sequential_quantization_attribute_decoder.cc:81
bool Init(PointCloudDecoder *decoder, int attribute_id) override
Definition sequential_quantization_attribute_decoder.cc:24
virtual bool DecodeQuantizedDataInfo()
Definition sequential_quantization_attribute_decoder.cc:68
SequentialQuantizationAttributeDecoder()
Definition sequential_quantization_attribute_decoder.cc:22
Definition attribute_octahedron_transform.cc:21