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

[WIP] No frame-rate sleep when using epiphan sdk #116

Open
wants to merge 2 commits into
base: experimental-windows
Choose a base branch
from
Open
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions src/api/broadcastdaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ void BroadcastDaemon::run(float sleep_duration_ms)
end - start
);
auto sleep_duration = inter_frame_duration - processing_duration;
if (sleep_duration.count() > 0)
std::this_thread::sleep_for(sleep_duration);
// Disable sleep temporarily on the experimental Windows
// branch, due to the suspected blocking nature of the
// Epiphan API calls.
// if (sleep_duration.count() > 0)
// std::this_thread::sleep_for(sleep_duration);
}
delete fill_frame;
}
Expand Down
1 change: 1 addition & 0 deletions src/epiphansdk/epiphansdk_video_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ VideoSourceEpiphanSDK::VideoSourceEpiphanSDK(
std::cerr << "Could not open " << device_id << std::endl;
return;
}
FrmGrab_SetMaxFps(_frame_grabber, 160);

if (colour_space != V2U_GRABFRAME_FORMAT_I420 && colour_space != V2U_GRABFRAME_FORMAT_RGB24)
{
Expand Down