2#include "../../../Defines.h"
4#ifdef USE_CAMERA_MODULE
8typedef unsigned const char *BufPtr;
13 CStreamer(SOCKET aClient, u_short width, u_short height);
16 void InitTransport(u_short aRtpPort, u_short aRtcpPort,
bool TCP);
17 u_short GetRtpServerPort();
18 u_short GetRtcpServerPort();
20 virtual void streamImage(uint32_t curMsec) = 0;
23 void streamFrame(
unsigned const char *data, uint32_t dataLen, uint32_t curMsec);
26 int SendRtpPacket(
unsigned const char *jpeg,
int jpegLen,
int fragmentOffset, BufPtr quant0tbl = NULL, BufPtr quant1tbl = NULL);
28 UDPSOCKET m_RtpSocket;
29 UDPSOCKET m_RtcpSocket;
31 uint16_t m_RtpClientPort;
32 uint16_t m_RtcpClientPort;
33 IPPORT m_RtpServerPort;
34 IPPORT m_RtcpServerPort;
36 u_short m_SequenceNumber;
54bool decodeJPEGfile(BufPtr *start, uint32_t *len, BufPtr *qtable0, BufPtr *qtable1);
55bool findJPEGheader(BufPtr *start, uint32_t *len, uint8_t marker);
59void nextJpegBlock(BufPtr *start);