mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-07 19:05:47 +00:00
Allow system vrgstream.h override
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user