Skip to content

Commit

Permalink
Issue #46: using buttom-up flag with for ARGB captures
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed Nov 1, 2018
1 parent e738da5 commit 3774ec9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/epiphansdk/epiphansdk_video_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ VideoSourceEpiphanSDK::VideoSourceEpiphanSDK(
else if (colour_space == V2U_GRABFRAME_FORMAT_I420)
_colour = I420;
else
{
_colour = BGRA;
_flags |= V2U_GRABFRAME_BOTTOM_UP_FLAG; // for some reason without this the image is flipped
}
_flags |= colour_space;

VideoFrame frame(_colour);
Expand Down

0 comments on commit 3774ec9

Please sign in to comment.