| 151 | } |
| 152 | |
| 153 | XnStatus MockMapGenerator::SetMapOutputMode(const XnMapOutputMode& mode) |
| 154 | { |
| 155 | XnStatus nRetVal = XN_STATUS_OK; |
| 156 | xnLogVerbose(XN_MASK_OPEN_NI, "%s: Setting map output mode to %ux%u, %u fps", m_strName, mode.nXRes, mode.nYRes, mode.nFPS); |
| 157 | |
| 158 | //TODO: Check if mode is in supported modes. If not, return error. |
| 159 | |
| 160 | if (xnOSMemCmp(&mode, &m_mapOutputMode, sizeof(mode)) != 0) |
| 161 | { |
| 162 | m_mapOutputMode = mode; |
| 163 | nRetVal = m_outputModeChangeEvent.Raise(); |
| 164 | XN_IS_STATUS_OK(nRetVal); |
| 165 | } |
| 166 | return XN_STATUS_OK; |
| 167 | } |
| 168 | |
| 169 | XnStatus MockMapGenerator::GetMapOutputMode(XnMapOutputMode& mode) |
| 170 | { |
no test coverage detected