#include "ffmpegServer.h"#include "epicsExport.h"#include "iocsh.h"#include <epicsExit.h>#include <epicsThread.h>#include <time.h>#include <math.h>Go to the source code of this file.
Defines | |
| #define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
Functions | |
| void | dorequest (int sid) |
| int | config_read () |
| void | c_shutdown (void *) |
| void | ffmpegServerConfigure (int port) |
| int | ffmpegStreamConfigure (const char *portName, int queueSize, int blockingCallbacks, const char *NDArrayPort, int NDArrayAddr, int maxBuffers, int maxMemory, int priority, int stackSize) |
| void | ffmpegServerRegister (void) |
| epicsExportRegistrar (ffmpegServerRegister) | |
Author: Diamond Light Source, Copyright 2010
'ffmpegServer' is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
'ffmpegServer' is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with 'ffmpegServer'. If not, see http://www.gnu.org/licenses/.
Definition in file ffmpegServer.cpp.
| #define MIN | ( | a, | ||
| b | ||||
| ) | (((a) < (b)) ? (a) : (b)) |
Definition at line 266 of file ffmpegServer.cpp.
| void c_shutdown | ( | void * | ) |
c function that will be called at epicsExit that shuts down the http server cleanly
Definition at line 176 of file ffmpegServer.cpp.
| int config_read | ( | ) |
this dummy function is here to satisfy nullhttpd
Definition at line 158 of file ffmpegServer.cpp.
| void dorequest | ( | int | sid | ) |
This is called whenever a client requests a stream
Definition at line 37 of file ffmpegServer.cpp.
| epicsExportRegistrar | ( | ffmpegServerRegister | ) |
| void ffmpegServerConfigure | ( | int | port | ) |
Configure and start the http server. Call this before creating any instances of ffmpegStream
| port | port number to run the server on. Defaults to 8080 |
Definition at line 188 of file ffmpegServer.cpp.
| void ffmpegServerRegister | ( | void | ) |
Register ffmpegStreamConfigure and ffmpegServerConfigure for use on iocsh
Definition at line 679 of file ffmpegServer.cpp.
| int ffmpegStreamConfigure | ( | const char * | portName, | |
| int | queueSize, | |||
| int | blockingCallbacks, | |||
| const char * | NDArrayPort, | |||
| int | NDArrayAddr, | |||
| int | maxBuffers, | |||
| int | maxMemory, | |||
| int | priority, | |||
| int | stackSize | |||
| ) |
Configuration routine. Called directly, or from the iocsh function, calls ffmpegStream constructor:
Constructor for ffmpegStream; Class representing an mjpg stream served up by ffmpegServer. ffmpegServerConfigure() must be called before creating any instances of this class. ffmpegStreamConfigure() should be used to create an instance in the iocsh. See ffmpegStream.template for more details of usage.
| portName | The name of the asyn port driver to be created. | |
| queueSize | The number of NDArrays that the input queue for this plugin can hold when NDPluginDriverBlockingCallbacks=0. Larger queues can decrease the number of dropped arrays, at the expense of more NDArray buffers being allocated from the underlying driver's NDArrayPool. | |
| blockingCallbacks | Initial setting for the NDPluginDriverBlockingCallbacks flag. 0=callbacks are queued and executed by the callback thread; 1 callbacks execute in the thread of the driver doing the callbacks. | |
| NDArrayPort | Name of asyn port driver for initial source of NDArray callbacks. | |
| NDArrayAddr | asyn port driver address for initial source of NDArray callbacks. | |
| maxBuffers | The maximum number of NDArray buffers that the NDArrayPool for this driver is allowed to allocate. Set this to -1 to allow an unlimited number of buffers. | |
| maxMemory | The maximum amount of memory that the NDArrayPool for this driver is allowed to allocate. Set this to -1 to allow an unlimited amount of memory. | |
| priority | The thread priority for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags. | |
| stackSize | The stack size for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags. |
Definition at line 629 of file ffmpegServer.cpp.
1.7.1