Skip to content

Commit

Permalink
Issue #104, #46: constraining use of bottom-up flag to Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed May 1, 2019
1 parent bc30ece commit 56ca78b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/epiphansdk/epiphansdk_video_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ VideoSourceEpiphanSDK::VideoSourceEpiphanSDK(
else
{
_colour = BGRA;
_flags |= V2U_GRABFRAME_BOTTOM_UP_FLAG; // for some reason without this the image is flipped
#ifdef __linux__
// for some reason on Linux systems, the image is flipped without this
_flags |= V2U_GRABFRAME_BOTTOM_UP_FLAG;
#endif
}
_flags |= colour_space;

Expand Down

0 comments on commit 56ca78b

Please sign in to comment.