nndeploy C++ API  0.2.0
nndeploy C++ API
Classes | Typedefs | Functions
nndeploy::codec Namespace Reference

Classes

class  Decode
 
class  Encode
 
class  TypeCreatelDecodeRegister
 
class  TypeCreatelDecodeSharedPtrRegister
 
class  TypeCreatelEncodeRegister
 
class  TypeCreatelEncodeSharedPtrRegister
 

Typedefs

using createDecodeFunc = std::function< Decode *(base::CodecFlag flag, const std::string &name, dag::Edge *output)>
 
using createDecodeSharedPtrFunc = std::function< std::shared_ptr< Decode >(base::CodecFlag flag, const std::string &name, dag::Edge *output)>
 
using createEncodeFunc = std::function< Encode *(base::CodecFlag flag, const std::string &name, dag::Edge *input)>
 
using createEncodeSharedPtrFunc = std::function< std::shared_ptr< Encode >(base::CodecFlag flag, const std::string &name, dag::Edge *input)>
 

Functions

DecodecreateDecode (base::CodecType type, base::CodecFlag flag, const std::string &name, dag::Edge *output)
 
std::shared_ptr< DecodecreateDecodeSharedPtr (base::CodecType type, base::CodecFlag flag, const std::string &name, dag::Edge *output)
 
EncodecreateEncode (base::CodecType type, base::CodecFlag flag, const std::string &name, dag::Edge *input)
 
std::shared_ptr< EncodecreateEncodeSharedPtr (base::CodecType type, base::CodecFlag flag, const std::string &name, dag::Edge *input)
 
std::map< base::CodecType, createDecodeFunc > & getGlobalCreateDecodeFuncMap ()
 
std::map< base::CodecType, createDecodeSharedPtrFunc > & getGlobalCreateDecodeSharedPtrFuncMap ()
 
std::map< base::CodecType, createEncodeFunc > & getGlobalCreateEncodeFuncMap ()
 
std::map< base::CodecType, createEncodeSharedPtrFunc > & getGlobalCreateEncodeSharedPtrFuncMap ()
 

Typedef Documentation

◆ createDecodeFunc

using nndeploy::codec::createDecodeFunc = typedef std::function<Decode *( base::CodecFlag flag, const std::string &name, dag::Edge *output)>

Definition at line 346 of file codec.h.

◆ createDecodeSharedPtrFunc

using nndeploy::codec::createDecodeSharedPtrFunc = typedef std::function<std::shared_ptr<Decode>( base::CodecFlag flag, const std::string &name, dag::Edge *output)>

Definition at line 348 of file codec.h.

◆ createEncodeFunc

using nndeploy::codec::createEncodeFunc = typedef std::function<Encode *( base::CodecFlag flag, const std::string &name, dag::Edge *input)>

Definition at line 380 of file codec.h.

◆ createEncodeSharedPtrFunc

using nndeploy::codec::createEncodeSharedPtrFunc = typedef std::function<std::shared_ptr<Encode>( base::CodecFlag flag, const std::string &name, dag::Edge *input)>

Definition at line 382 of file codec.h.

Function Documentation

◆ createDecode()

Decode* nndeploy::codec::createDecode ( base::CodecType  type,
base::CodecFlag  flag,
const std::string &  name,
dag::Edge output 
)

◆ createDecodeSharedPtr()

std::shared_ptr<Decode> nndeploy::codec::createDecodeSharedPtr ( base::CodecType  type,
base::CodecFlag  flag,
const std::string &  name,
dag::Edge output 
)

◆ createEncode()

Encode* nndeploy::codec::createEncode ( base::CodecType  type,
base::CodecFlag  flag,
const std::string &  name,
dag::Edge input 
)

◆ createEncodeSharedPtr()

std::shared_ptr<Encode> nndeploy::codec::createEncodeSharedPtr ( base::CodecType  type,
base::CodecFlag  flag,
const std::string &  name,
dag::Edge input 
)

◆ getGlobalCreateDecodeFuncMap()

std::map<base::CodecType, createDecodeFunc>& nndeploy::codec::getGlobalCreateDecodeFuncMap ( )

◆ getGlobalCreateDecodeSharedPtrFuncMap()

std::map<base::CodecType, createDecodeSharedPtrFunc>& nndeploy::codec::getGlobalCreateDecodeSharedPtrFuncMap ( )

◆ getGlobalCreateEncodeFuncMap()

std::map<base::CodecType, createEncodeFunc>& nndeploy::codec::getGlobalCreateEncodeFuncMap ( )

◆ getGlobalCreateEncodeSharedPtrFuncMap()

std::map<base::CodecType, createEncodeSharedPtrFunc>& nndeploy::codec::getGlobalCreateEncodeSharedPtrFuncMap ( )