MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnEncodeData

Function xnEncodeData

Source/OpenNI/XnOpenNI.cpp:6841–6847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6839}
6840
6841XN_C_API XnStatus xnEncodeData(XnNodeHandle hCodec, const void* pSrc, XnUInt32 nSrcSize, void* pDst, XnUInt32 nDstSize, XnUInt* pnBytesWritten)
6842{
6843 XN_VALIDATE_INTERFACE_TYPE(hCodec, XN_NODE_TYPE_CODEC);
6844 XnCodecInterfaceContainer* pInterface = (XnCodecInterfaceContainer*)hCodec->pModuleInstance->pLoaded->pInterface;
6845 XnModuleNodeHandle hModuleNode = hCodec->pModuleInstance->hNode;
6846 return pInterface->Codec.CompressData(hModuleNode, pSrc, nSrcSize, pDst, nDstSize, pnBytesWritten);
6847}
6848
6849XN_C_API XnStatus xnDecodeData(XnNodeHandle hCodec, const void* pSrc, XnUInt32 nSrcSize, void* pDst, XnUInt32 nDstSize, XnUInt* pnBytesWritten)
6850{

Callers 2

EncodeDataMethod · 0.85

Calls 1

CompressDataMethod · 0.80

Tested by

no test coverage detected