Skip to content

Commit

Permalink
Issue #9: VideoSourceFactory uses Epiphan SDK video source for BGRA c…
Browse files Browse the repository at this point in the history
…aptures using Epiphan cards
  • Loading branch information
dzhoshkun committed Apr 16, 2019
1 parent e6c7b58 commit ec25f59
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/api/videosourcefactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ IVideoSource * VideoSourceFactory::get_device(Device device,

// BGRA ========================================
case BGRA:
#ifdef USE_OPENCV
src = new VideoSourceOpenCV(0);
#ifdef USE_EPIPHANSDK
src = new VideoSourceEpiphanSDK(Epiphan_DVI2PCIeDuo_DVI,
V2U_GRABFRAME_FORMAT_ARGB32);
#else
throw VideoSourceError(
"BGRA colour space on Epiphan DVI2PCIe Duo supported only with OpenCV");
"BGRA colour space on Epiphan DVI2PCIe Duo supported only with Epiphan SDK");
#endif
break;

Expand Down Expand Up @@ -116,11 +117,12 @@ IVideoSource * VideoSourceFactory::get_device(Device device,

// BGRA ========================================
case BGRA:
#ifdef USE_OPENCV
src = new VideoSourceOpenCV(1);
#ifdef USE_EPIPHANSDK
src = new VideoSourceEpiphanSDK(Epiphan_DVI2PCIeDuo_SDI,
V2U_GRABFRAME_FORMAT_ARGB32);
#else
throw VideoSourceError(
"BGRA colour space on Epiphan DVI2PCIe Duo supported only with OpenCV");
"BGRA colour space on Epiphan DVI2PCIe Duo supported only with Epiphan SDK");
#endif
break;

Expand Down

0 comments on commit ec25f59

Please sign in to comment.