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

Stereo streaming accepts side-by-side images as input #163

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

rdumusc
Copy link

@rdumusc rdumusc commented Apr 21, 2017

This is useful for applications like Brayns which render natively in
side-by-side format. Splitting the image into a left and right part
during the tiling process is more optimal and user-friendly than
asking the application to do it and make two send() calls.

unsigned int uniformSegmentHeight = image.height;
// create copy of segments for right view
auto segmentsRight = segments;
for (auto&& segment : segmentsRight)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's more a 'real' reference here, no? modifying a temporary at least looks wrong.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, in this case auto&& it's not an rvalue reference but a universal reference... I amended it to avoid confusion. Using auto& or auto&& make no difference here, but I let you google about it.

This is useful for applications like Brayns which render natively in
side-by-side format. Splitting the image into a left and right part
during the tiling process is more optimal and user-friendly than
asking the application to do it and make two send() calls.
@tribal-tec tribal-tec merged commit f7b9019 into BlueBrain:master Apr 21, 2017
@rdumusc rdumusc deleted the sidebyside branch April 21, 2017 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants