Allow system vrgstream.h override

This commit is contained in:
Martin Pulec
2020-05-06 10:20:28 +02:00
parent 72bb104aaf
commit 9c65d30bcf
4 changed files with 18 additions and 2 deletions

View File

@@ -3188,6 +3188,10 @@ AC_ARG_ENABLE(vrg,
AC_CHECK_HEADER(vrgstream.h, FOUND_VRG_H=yes, FOUND_VRG_H=no)
AC_CHECK_LIB(vrgstream, vrgStreamInit, FOUND_VRG_L=yes, FOUND_VRG_L=no)
if test $FOUND_VRG_H = yes; then
AC_DEFINE([HAVE_VRG_H], [1], [We can use vrgstream.h])
fi
if test $vrg_req != no -a $FOUND_VRG_H = yes -a $FOUND_VRG_L = yes
then
LIBS="$LIBS -lvrgstream"

View File

@@ -74,8 +74,14 @@
#include "rtp/pbuf.h"
#include "rtp/rtp_callback.h"
#include "tfrc.h"
// substitute RGBA not to collide with UG RGBA
#define RGBA VR_RGBA
#include "vrgstream.h"
#ifdef HAVE_VRG_H
#include <vrgstream.h>
#else
#include "vrgstream-fallback.h"
#endif
#undef RGBA
extern char *frame;

View File

@@ -55,8 +55,14 @@
#include "video.h"
#include "video_capture.h"
#include "video_capture/shm.h"
// substitute RGBA not to collide with UG RGBA
#define RGBA VR_RGBA
#include "vrgstream.h"
#ifdef HAVE_VRG_H
#include <vrgstream.h>
#else
#include "vrgstream-fallback.h"
#endif
#undef RGBA
#define MAX_BUF_LEN (7680 * 2160 / 3 * 2)