MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / isPropertySupported

Method isPropertySupported

src/openni2/VideoStream.cpp:163–174  ·  view source on GitHub ↗

only add to property handlers if the property is generic to all children otherwise, implement in child and call these in default case

Source from the content-addressed store, hash-verified

161// only add to property handlers if the property is generic to all children
162// otherwise, implement in child and call these in default case
163OniBool VideoStream::isPropertySupported(int propertyId)
164{
165 switch(propertyId)
166 {
167 case ONI_STREAM_PROPERTY_VIDEO_MODE:
168 case ONI_STREAM_PROPERTY_CROPPING:
169 case ONI_STREAM_PROPERTY_MIRRORING:
170 return true;
171 default:
172 return false;
173 }
174}
175
176OniStatus VideoStream::getProperty(int propertyId, void* data, int* pDataSize)
177{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected