Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/draco/src/draco/core/quantization_utils.h
- This file was moved from extern/draco/dracoenc/src/draco/core/quantization_utils.h.
| Show All 16 Lines | |||||
| // The quantization works on all floating point numbers within (-range, +range) | // The quantization works on all floating point numbers within (-range, +range) | ||||
| // interval producing integers in range | // interval producing integers in range | ||||
| // (-max_quantized_value, +max_quantized_value). | // (-max_quantized_value, +max_quantized_value). | ||||
| #ifndef DRACO_CORE_QUANTIZATION_UTILS_H_ | #ifndef DRACO_CORE_QUANTIZATION_UTILS_H_ | ||||
| #define DRACO_CORE_QUANTIZATION_UTILS_H_ | #define DRACO_CORE_QUANTIZATION_UTILS_H_ | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| #include <cmath> | #include <cmath> | ||||
| #include "draco/core/macros.h" | #include "draco/core/macros.h" | ||||
| namespace draco { | namespace draco { | ||||
| // Class for quantizing single precision floating point values. The values | // Class for quantizing single precision floating point values. The values | ||||
| // should be centered around zero and be within interval (-range, +range), where | // should be centered around zero and be within interval (-range, +range), where | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||