Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenNI2 Stream Mirroring Compatibility Hack #12412

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion wrappers/openni2/src/Rs2StreamProps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ OniStatus Rs2Stream::setProperty(int propertyId, const void* data, int dataSize)
}
break;
}

case ONI_STREAM_PROPERTY_MIRRORING:
{
// Doesn't do anything, but prevents certain 3D scanning applications from crashing.
return ONI_STATUS_OK;
break;
}

default:
{
Expand Down Expand Up @@ -402,11 +409,11 @@ OniBool Rs2Stream::isPropertySupported(int propertyId)
case ONI_STREAM_PROPERTY_MAX_VALUE: // int
case ONI_STREAM_PROPERTY_MIN_VALUE: // int
case ONI_STREAM_PROPERTY_STRIDE: // int
case ONI_STREAM_PROPERTY_MIRRORING: // OniBool
return true;


case ONI_STREAM_PROPERTY_NUMBER_OF_FRAMES: // int
case ONI_STREAM_PROPERTY_MIRRORING: // OniBool
return false;

case ONI_STREAM_PROPERTY_AUTO_WHITE_BALANCE: // OniBool
Expand Down