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 Apr 16, 2019
1 parent 7f53e75 commit a0f3f53
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 a0f3f53

Please sign in to comment.