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

Method SetPixelFormat

Source/Modules/nimMockNodes/MockImageGenerator.cpp:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96XnStatus MockImageGenerator::SetPixelFormat(XnPixelFormat format)
97{
98 XnStatus nRetVal = XN_STATUS_OK;
99 if (m_pixelFormat != format)
100 {
101 m_pixelFormat = format;
102 nRetVal = m_pixelFormatChangeEvent.Raise();
103 XN_IS_STATUS_OK(nRetVal);
104 }
105
106 return XN_STATUS_OK;
107}
108
109XnPixelFormat MockImageGenerator::GetPixelFormat()
110{

Callers 1

xnSetPixelFormatFunction · 0.45

Calls 1

RaiseMethod · 0.45

Tested by

no test coverage detected