-
Notifications
You must be signed in to change notification settings - Fork 101
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
Support stereo image streaming using Deflect #629
Conversation
@rdumusc: This needs testing. Will let you know. |
eq/deflect/proxy.cpp
Outdated
default: break; | ||
} | ||
|
||
_pending[_current].emplace_back( _stream->asyncSend( imageWrapper )); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still asyncSend here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which must be the cause of your stream closing, because then the second finishFrame happens with no data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
eq/deflect/proxy.cpp
Outdated
~Impl() | ||
{ | ||
// wait for completion of previous send | ||
_sendFuture.wait(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to wait in the destructor anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
eq/deflect/proxy.cpp
Outdated
::deflect::Stream::Future _sendFuture; | ||
static const size_t _current = 0; | ||
static const size_t _last = 1; | ||
std::vector< ::deflect::Stream::Future > _pending[2]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that there are two futures, shouldn't there be two _buffer as well? It seems to me that the current buffer could be overwritten before the last send has finished, are you sure this is not the case? Maybe even 4 buffers (2x each eye)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
7570cff
to
1fbde01
Compare
RTM. Note: Streaming anaglyph stereo rendering gives undefined behaviour. Conceptually it makes no sense, since the streamed left/right images need to be complete. |
a01f8dd
to
642efb4
Compare
No description provided.