|
Blender V5.3
|
#include "decoder.h"#include <cinttypes>#include <memory>#include <vector>#include "draco/compression/decode.h"#include "draco/core/decoder_buffer.h"#include "draco/mesh/mesh.h"Go to the source code of this file.
Classes | |
| struct | Decoder |
Macros | |
| #define | LOG_PREFIX "DracoDecoder | " |
Functions | |
| Decoder * | decoderCreate () |
| void | decoderRelease (Decoder *decoder) |
| bool | decoderDecode (Decoder *decoder, void *data, size_t byteLength) |
| uint32_t | decoderGetVertexCount (Decoder *decoder) |
| uint32_t | decoderGetIndexCount (Decoder *decoder) |
| bool | decoderAttributeIsNormalized (Decoder *decoder, uint32_t id) |
| bool | decoderReadAttribute (Decoder *decoder, uint32_t id, size_t componentType, char *dataType) |
| size_t | decoderGetAttributeByteLength (Decoder *decoder, size_t id) |
| void | decoderCopyAttribute (Decoder *decoder, size_t id, void *output) |
| template<class T> | |
| void | decodeIndices (Decoder *decoder) |
| bool | decoderReadIndices (Decoder *decoder, size_t indexComponentType) |
| size_t | decoderGetIndicesByteLength (Decoder *decoder) |
| void | decoderCopyIndices (Decoder *decoder, void *output) |
| #define LOG_PREFIX "DracoDecoder | " |
Definition at line 20 of file draco_bridge/intern/decoder.cpp.
Referenced by decoderDecode(), decoderReadAttribute(), decoderReadIndices(), encoderEncode(), and encoderSetIndices().
Definition at line 155 of file draco_bridge/intern/decoder.cpp.
References decodeIndices(), Decoder::indexBuffer, Decoder::indexCount, Decoder::mesh, and T.
Referenced by decodeIndices(), and decoderReadIndices().
| bool decoderAttributeIsNormalized | ( | Decoder * | decoder, |
| uint32_t | id ) |
Definition at line 74 of file draco_bridge/intern/decoder.cpp.
References attribute, decoderAttributeIsNormalized(), and Decoder::mesh.
Referenced by decoderAttributeIsNormalized().
| void decoderCopyAttribute | ( | Decoder * | decoder, |
| size_t | id, | ||
| void * | output ) |
Definition at line 147 of file draco_bridge/intern/decoder.cpp.
References Decoder::buffers, decoderCopyAttribute(), and output.
Referenced by decoderCopyAttribute().
| void decoderCopyIndices | ( | Decoder * | decoder, |
| void * | output ) |
Definition at line 202 of file draco_bridge/intern/decoder.cpp.
References decoderCopyIndices(), Decoder::indexBuffer, and output.
Referenced by decoderCopyIndices().
| Decoder * decoderCreate | ( | ) |
Definition at line 31 of file draco_bridge/intern/decoder.cpp.
References decoderCreate().
Referenced by decoderCreate().
| bool decoderDecode | ( | Decoder * | decoder, |
| void * | data, | ||
| size_t | byteLength ) |
Definition at line 41 of file draco_bridge/intern/decoder.cpp.
References decoderDecode(), Decoder::indexCount, LOG_PREFIX, Decoder::mesh, printf, PRIu32, and Decoder::vertexCount.
Referenced by decoderDecode().
| size_t decoderGetAttributeByteLength | ( | Decoder * | decoder, |
| size_t | id ) |
Definition at line 136 of file draco_bridge/intern/decoder.cpp.
References Decoder::buffers, and decoderGetAttributeByteLength().
Referenced by decoderGetAttributeByteLength().
| uint32_t decoderGetIndexCount | ( | Decoder * | decoder | ) |
Definition at line 69 of file draco_bridge/intern/decoder.cpp.
References decoderGetIndexCount(), and Decoder::indexCount.
Referenced by decoderGetIndexCount().
| size_t decoderGetIndicesByteLength | ( | Decoder * | decoder | ) |
Definition at line 197 of file draco_bridge/intern/decoder.cpp.
References decoderGetIndicesByteLength(), and Decoder::indexBuffer.
Referenced by decoderGetIndicesByteLength().
| uint32_t decoderGetVertexCount | ( | Decoder * | decoder | ) |
Definition at line 64 of file draco_bridge/intern/decoder.cpp.
References decoderGetVertexCount(), and Decoder::vertexCount.
Referenced by decoderGetVertexCount().
| bool decoderReadAttribute | ( | Decoder * | decoder, |
| uint32_t | id, | ||
| size_t | componentType, | ||
| char * | dataType ) |
Definition at line 80 of file draco_bridge/intern/decoder.cpp.
References attribute, Decoder::buffers, Byte, decoderReadAttribute(), Float, getAttributeStride(), index, LOG_PREFIX, Decoder::mesh, printf, PRIu32, Short, UnsignedByte, UnsignedInt, UnsignedShort, and Decoder::vertexCount.
Referenced by decoderReadAttribute().
| bool decoderReadIndices | ( | Decoder * | decoder, |
| size_t | indexComponentType ) |
Definition at line 171 of file draco_bridge/intern/decoder.cpp.
References Byte, decodeIndices(), decoderReadIndices(), LOG_PREFIX, printf, Short, UnsignedByte, UnsignedInt, and UnsignedShort.
Referenced by decoderReadIndices().
| void decoderRelease | ( | Decoder * | decoder | ) |
Definition at line 36 of file draco_bridge/intern/decoder.cpp.
References decoderRelease().
Referenced by decoderRelease().