zoneminder/src/zm_rtsp_server_fifo_video_s...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
C
Raw Normal View History

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; };
ZoneMinderFifoVideoSource(
std::shared_ptr<xop::RtspServer>& rtspServer,
xop::MediaSessionId sessionId,
xop::MediaChannelId channelId,
const std::string &fifo
);
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
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