4 #ifndef __STDC_CONSTANT_MACROS
5 #define __STDC_CONSTANT_MACROS
8 #include <epicsTypes.h>
9 #include <asynStandardInterfaces.h>
21 #define MAX_FFMPEG_STREAMS 64
23 #define ffmpegServerQualityString "FFMPEG_QUALITY"
24 #define ffmpegServerFalseColString "FFMPEG_FALSE_COL"
25 #define ffmpegServerHttpPortString "FFMPEG_HTTP_PORT"
26 #define ffmpegServerHostString "FFMPEG_HOST"
27 #define ffmpegServerJpgUrlString "FFMPEG_JPG_URL"
28 #define ffmpegServerMjpgUrlString "FFMPEG_MJPG_URL"
29 #define ffmpegServerClientsString "FFMPEG_CLIENTS"
30 #define ffmpegServerAlwaysOnString "FFMPEG_ALWAYS_ON"
31 #define ffmpegServerMaxWString "FFMPEG_MAXW"
32 #define ffmpegServerMaxHString "FFMPEG_MAXH"
33 #define ffmpegServerSetWString "FFMPEG_SETW"
34 #define ffmpegServerSetHString "FFMPEG_SETH"
39 ffmpegStream(
const char *portName,
int queueSize,
int blockingCallbacks,
40 const char *NDArrayPort,
int NDArrayAddr,
int maxBuffers,
int maxMemory,
41 int priority,
int stackSize);
51 #define FIRST_FFMPEG_SERVER_PARAM ffmpegServerQuality
73 struct SwsContext *ctx;
77 pthread_mutex_t
mutex;
80 NDArray* wait_for_jpeg(
int sid);
81 void allocScArray(
size_t size);
GMutex * mutex
Definition: aravisTest.c:11
N-dimensional array class; each array has a set of dimensions, a data type, pointer to data,...
Definition: NDArray.h:99
Class from which actual plugin drivers are derived; derived from asynNDArrayDriver.
Definition: NDPluginDriver.h:57
Take an array source and compress it and serve it as an mjpeg stream.
Definition: ffmpegServer.h:37
void processCallbacks(NDArray *pArray)
Take an NDArray, add grid and false colour, compress it to a jpeg, then signal to the server process ...
Definition: ffmpegServer.cpp:376
int ffmpegServerAlwaysOn
Definition: ffmpegServer.h:62
int ffmpegServerJpgUrl
Definition: ffmpegServer.h:55
int ffmpegServerSetW
Definition: ffmpegServer.h:60
int ffmpegServerQuality
Definition: ffmpegServer.h:50
void send_snapshot(int sid, int index)
Internal function to send a single snapshot.
Definition: ffmpegServer.cpp:230
int ffmpegServerClients
Definition: ffmpegServer.h:57
int ffmpegServerMjpgUrl
Definition: ffmpegServer.h:56
int ffmpegServerHttpPort
Definition: ffmpegServer.h:53
int ffmpegServerMaxW
Definition: ffmpegServer.h:58
int ffmpegServerHost
Definition: ffmpegServer.h:54
int ffmpegServerFalseCol
Definition: ffmpegServer.h:52
int ffmpegServerMaxH
Definition: ffmpegServer.h:59
ffmpegStream(const char *portName, int queueSize, int blockingCallbacks, const char *NDArrayPort, int NDArrayAddr, int maxBuffers, int maxMemory, int priority, int stackSize)
Constructor for ffmpegStream; Class representing an mjpg stream served up by ffmpegServer.
Definition: ffmpegServer.cpp:601
void send_stream(int sid)
Internal function to send an mjpg stream.
Definition: ffmpegServer.cpp:323
int send_frame(int sid, NDArray *pArray)
Internal function to send a jpeg frame as part of an mjpeg stream.
Definition: ffmpegServer.cpp:275
int ffmpegServerSetH
Definition: ffmpegServer.h:61