Blender V5.3
decoder.cpp File Reference
#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)

Macro Definition Documentation

◆ LOG_PREFIX

#define LOG_PREFIX   "DracoDecoder | "

Function Documentation

◆ decodeIndices()

template<class T>
void decodeIndices ( Decoder * decoder)

◆ decoderAttributeIsNormalized()

bool decoderAttributeIsNormalized ( Decoder * decoder,
uint32_t id )

◆ decoderCopyAttribute()

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().

◆ decoderCopyIndices()

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().

◆ decoderCreate()

Decoder * decoderCreate ( )

Definition at line 31 of file draco_bridge/intern/decoder.cpp.

References decoderCreate().

Referenced by decoderCreate().

◆ decoderDecode()

bool decoderDecode ( Decoder * decoder,
void * data,
size_t byteLength )

◆ decoderGetAttributeByteLength()

size_t decoderGetAttributeByteLength ( Decoder * decoder,
size_t id )

◆ decoderGetIndexCount()

uint32_t decoderGetIndexCount ( Decoder * decoder)

Definition at line 69 of file draco_bridge/intern/decoder.cpp.

References decoderGetIndexCount(), and Decoder::indexCount.

Referenced by decoderGetIndexCount().

◆ decoderGetIndicesByteLength()

size_t decoderGetIndicesByteLength ( Decoder * decoder)

◆ decoderGetVertexCount()

uint32_t decoderGetVertexCount ( Decoder * decoder)

Definition at line 64 of file draco_bridge/intern/decoder.cpp.

References decoderGetVertexCount(), and Decoder::vertexCount.

Referenced by decoderGetVertexCount().

◆ decoderReadAttribute()

bool decoderReadAttribute ( Decoder * decoder,
uint32_t id,
size_t componentType,
char * dataType )

◆ decoderReadIndices()

bool decoderReadIndices ( Decoder * decoder,
size_t indexComponentType )

◆ decoderRelease()

void decoderRelease ( Decoder * decoder)

Definition at line 36 of file draco_bridge/intern/decoder.cpp.

References decoderRelease().

Referenced by decoderRelease().