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

Function xnSetPixelFormat

Source/OpenNI/XnOpenNI.cpp:4902–4909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4900}
4901
4902XN_C_API XnStatus xnSetPixelFormat(XnNodeHandle hInstance, XnPixelFormat Format)
4903{
4904 XN_VALIDATE_INTERFACE_TYPE(hInstance, XN_NODE_TYPE_IMAGE);
4905 XN_VALIDATE_CHANGES_ALLOWED(hInstance);
4906 XnImageGeneratorInterfaceContainer* pInterface = (XnImageGeneratorInterfaceContainer*)hInstance->pModuleInstance->pLoaded->pInterface;
4907 XnModuleNodeHandle hModuleNode = hInstance->pModuleInstance->hNode;
4908 return pInterface->Image.SetPixelFormat(hModuleNode, Format);
4909}
4910
4911XN_C_API XnPixelFormat xnGetPixelFormat(XnNodeHandle hInstance)
4912{

Callers 3

SetPixelFormatMethod · 0.85
xnConfigurePixelFormatFunction · 0.85

Calls 1

SetPixelFormatMethod · 0.45

Tested by

no test coverage detected