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

Method Init

Source/Modules/nimCodecs/Xn16zEmbTablesCodec.cpp:38–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38XnStatus Xn16zEmbTablesCodec::Init(const ProductionNode& node)
39{
40 XnStatus nRetVal = XN_STATUS_OK;
41
42 nRetVal = XnCodec::Init(node);
43 XN_IS_STATUS_OK_LOG_ERROR("Init codec", nRetVal);
44
45 if (node.GetInfo().GetDescription().Type != XN_NODE_TYPE_DEPTH)
46 {
47 XN_LOG_ERROR_RETURN(XN_STATUS_BAD_PARAM, XN_MASK_OPEN_NI, "Codec 16z with embedded tables requires a depth node!");
48 }
49
50 DepthGenerator depth(node);
51 m_nMaxValue = depth.GetDeviceMaxDepth();
52
53 return (XN_STATUS_OK);
54}
55
56XnFloat Xn16zEmbTablesCodec::GetWorseCompressionRatio() const
57{

Callers

nothing calls this directly

Calls 4

InitFunction · 0.50
GetDescriptionMethod · 0.45
GetInfoMethod · 0.45
GetDeviceMaxDepthMethod · 0.45

Tested by

no test coverage detected