| 36 | } |
| 37 | |
| 38 | XnStatus 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 | |
| 56 | XnFloat Xn16zEmbTablesCodec::GetWorseCompressionRatio() const |
| 57 | { |
nothing calls this directly
no test coverage detected