2021-02-28 01:26:19 +08:00
|
|
|
/* ---------------------------------------------------------------------------
|
|
|
|
**
|
|
|
|
** FifoSource.h
|
|
|
|
**
|
|
|
|
** live555 source
|
|
|
|
**
|
|
|
|
** -------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef ZM_RTSP_SERVER_FIFO_VIDEO_SOURCE_H
|
|
|
|
#define ZM_RTSP_SERVER_FIFO_VIDEO_SOURCE_H
|
|
|
|
|
|
|
|
#include "zm_rtsp_server_fifo_source.h"
|
|
|
|
|
|
|
|
#if HAVE_RTSP_SERVER
|
|
|
|
|
|
|
|
class ZoneMinderFifoVideoSource: public ZoneMinderFifoSource {
|
|
|
|
|
|
|
|
public:
|
|
|
|
int getWidth() { return m_width; };
|
|
|
|
int getHeight() { return m_height; };
|
|
|
|
int setWidth(int width) { return m_width=width; };
|
|
|
|
int setHeight(int height) { return m_height=height; };
|
|
|
|
|
2021-03-11 00:01:04 +08:00
|
|
|
ZoneMinderFifoVideoSource(
|
|
|
|
std::shared_ptr<xop::RtspServer>& rtspServer,
|
|
|
|
xop::MediaSessionId sessionId,
|
|
|
|
xop::MediaChannelId channelId,
|
2021-05-10 04:39:38 +08:00
|
|
|
const std::string &fifo
|
2021-03-11 00:01:04 +08:00
|
|
|
);
|
|
|
|
protected:
|
2021-04-21 05:18:23 +08:00
|
|
|
void PushFrame(const uint8_t *data, size_t size, int64_t pts) override;
|
2021-02-28 01:26:19 +08:00
|
|
|
|
2021-03-11 00:01:04 +08:00
|
|
|
protected:
|
2021-02-28 01:26:19 +08:00
|
|
|
int m_width;
|
|
|
|
int m_height;
|
|
|
|
};
|
|
|
|
#endif // HAVE_RTSP_SERVER
|
|
|
|
|
|
|
|
#endif // ZM_RTSP_SERVER_FIFO_VIDEO_SOURCE_H
|