From 56ca78b0958a057a4df92d6e597307ddd9e2e4ce Mon Sep 17 00:00:00 2001 From: dzhoshkun Date: Tue, 30 Apr 2019 17:33:29 +0100 Subject: [PATCH] Issue #104, #46: constraining use of bottom-up flag to Linux --- src/epiphansdk/epiphansdk_video_source.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/epiphansdk/epiphansdk_video_source.cpp b/src/epiphansdk/epiphansdk_video_source.cpp index aa40bf94..599dbf78 100644 --- a/src/epiphansdk/epiphansdk_video_source.cpp +++ b/src/epiphansdk/epiphansdk_video_source.cpp @@ -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;