VideoTools
|
A class that accumulates RTP-AVC or RTP-JPEG packets and serves up AVC NALUs or JPEG JFIFs. More...
#include <gvrtppacketstream.h>
Public Member Functions | |
RtpPacketStream (int jpeg_fudge_factor) | |
Constructor. | |
bool | add (const RtpPacket &, const RtpAvcPacket &) |
Adds a AVC packet. | |
bool | add (const RtpPacket &, const RtpJpegPacket &) |
Adds a JPEG packet. | |
bool | more () const |
Returns true if NALUs or JFIFs are available. | |
std::vector< char > | get () |
Extracts a NALU or JFIF. | |
A class that accumulates RTP-AVC or RTP-JPEG packets and serves up AVC NALUs or JPEG JFIFs.
Note that there is no one-to-one correspondence between RTP-AVC packets and NALUs; NALUs can be fragmented over multiple packets, and multiple NULUs can be aggregated into one packet. JPEG images can also be fragmented over multiple packets.
Definition at line 46 of file gvrtppacketstream.h.