OpenVDB
12.0.0
|
#include <openvdb/Types.h>
#include <openvdb/MetaMap.h>
#include <openvdb/math/Math.h>
#include <openvdb/util/Assert.h>
#include "io.h"
#include "DelayedLoadMetadata.h"
#include <algorithm>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
struct | MaskCompress< ValueT, MaskT > |
struct | RealToHalf< T > |
RealToHalf and its specializations define a mapping from floating-point data types to analogous half float types. More... | |
struct | RealToHalf< float > |
struct | RealToHalf< double > |
struct | RealToHalf< Vec2s > |
struct | RealToHalf< Vec2d > |
struct | RealToHalf< Vec3s > |
struct | RealToHalf< Vec3d > |
struct | HalfReader< IsReal, T > |
struct | HalfReader< false, T > |
Partial specialization for non-floating-point types (no half to float promotion) More... | |
struct | HalfReader< true, T > |
Partial specialization for floating-point types. More... | |
struct | HalfWriter< IsReal, T > |
struct | HalfWriter< false, T > |
Partial specialization for non-floating-point types (no float to half quantization) More... | |
struct | HalfWriter< true, T > |
Partial specialization for floating-point types. More... | |
Namespaces | |
openvdb | |
openvdb::v12_0 | |
openvdb::v12_0::io | |
Enumerations | |
enum | { COMPRESS_NONE = 0, COMPRESS_ZIP = 0x1, COMPRESS_ACTIVE_MASK = 0x2, COMPRESS_BLOSC = 0x4 } |
OR-able bit flags for compression options on input and output streams. More... | |
enum | { NO_MASK_OR_INACTIVE_VALS, NO_MASK_AND_MINUS_BG, NO_MASK_AND_ONE_INACTIVE_VAL, MASK_AND_NO_INACTIVE_VALS, MASK_AND_ONE_INACTIVE_VAL, MASK_AND_TWO_INACTIVE_VALS, NO_MASK_AND_ALL_VALS } |
Functions | |
OPENVDB_API std::string | compressionToString (uint32_t flags) |
Return a string describing the given compression flags. More... | |
template<typename T > | |
T | truncateRealToHalf (const T &val) |
Return the given value truncated to 16-bit float precision. More... | |
OPENVDB_API size_t | zipToStreamSize (const char *data, size_t numBytes) |
OPENVDB_API void | zipToStream (std::ostream &, const char *data, size_t numBytes) |
OPENVDB_API void | unzipFromStream (std::istream &, char *data, size_t numBytes) |
OPENVDB_API size_t | bloscToStreamSize (const char *data, size_t valSize, size_t numVals) |
OPENVDB_API void | bloscToStream (std::ostream &, const char *data, size_t valSize, size_t numVals) |
OPENVDB_API void | bloscFromStream (std::istream &, char *data, size_t numBytes) |
template<typename T > | |
void | readData (std::istream &is, T *data, Index count, uint32_t compression, DelayedLoadMetadata *metadata=nullptr, size_t metadataOffset=size_t(0)) |
Read data from a stream. More... | |
template<> | |
void | readData< std::string > (std::istream &is, std::string *data, Index count, uint32_t, DelayedLoadMetadata *, size_t) |
Specialization for std::string input. More... | |
template<typename T > | |
size_t | writeDataSize (const T *data, Index count, uint32_t compression) |
template<> | |
size_t | writeDataSize< std::string > (const std::string *data, Index count, uint32_t) |
Specialization for std::string output. More... | |
template<typename T > | |
void | writeData (std::ostream &os, const T *data, Index count, uint32_t compression) |
template<> | |
void | writeData< std::string > (std::ostream &os, const std::string *data, Index count, uint32_t) |
Specialization for std::string output. More... | |
template<typename ValueT , typename MaskT > | |
void | readCompressedValues (std::istream &is, ValueT *destBuf, Index destCount, const MaskT &valueMask, bool fromHalf) |
template<typename ValueT , typename MaskT > | |
size_t | writeCompressedValuesSize (ValueT *srcBuf, Index srcCount, const MaskT &valueMask, uint8_t maskMetadata, bool toHalf, uint32_t compress) |
template<typename ValueT , typename MaskT > | |
void | writeCompressedValues (std::ostream &os, ValueT *srcBuf, Index srcCount, const MaskT &valueMask, const MaskT &childMask, bool toHalf) |