| 592 | } |
| 593 | |
| 594 | void setStreamCropping(MapGenerator* pGenerator, XnCropping* pCropping) |
| 595 | { |
| 596 | if (pGenerator == NULL) |
| 597 | { |
| 598 | displayMessage("Stream does not exist!"); |
| 599 | return; |
| 600 | } |
| 601 | |
| 602 | if (!pGenerator->IsCapabilitySupported(XN_CAPABILITY_CROPPING)) |
| 603 | { |
| 604 | displayMessage("Stream does not support cropping!"); |
| 605 | return; |
| 606 | } |
| 607 | |
| 608 | XnStatus nRetVal = pGenerator->GetCroppingCap().SetCropping(*pCropping); |
| 609 | if (nRetVal != XN_STATUS_OK) |
| 610 | { |
| 611 | displayMessage("Failed to set cropping: %s", xnGetStatusString(nRetVal)); |
| 612 | return; |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | void setPlaybackSpeed(int ratioDiff) |
| 617 | { |
no test coverage detected