11#include <promeki/config.h>
12#if PROMEKI_ENABLE_NETWORK
23PROMEKI_NAMESPACE_BEGIN
46struct RtpAncPacketizerContext {
58 uint32_t clockRateHz = 90000;
62 RtpPayloadAnc *payload =
nullptr;
68 Queue<RtpPacketBatch> *txPacketQueue =
nullptr;
82 RtpPayloadAnc::FieldIndication keepAliveField =
83 RtpPayloadAnc::FieldIndication::Progressive;
118class RtpAncPacketizerThread :
public RtpPacketizerThread {
132 RtpAncPacketizerThread(
133 RtpAncPacketizerContext ctx,
134 const String &name = String(
"RtpAncPkt"),
135 size_t depth = DefaultPayloadQueueDepth);
137 ~RtpAncPacketizerThread()
override;
139 RtpAncPacketizerThread(
const RtpAncPacketizerThread &) =
delete;
140 RtpAncPacketizerThread &operator=(
const RtpAncPacketizerThread &) =
delete;
144 void packetizeForTest(
const RtpFrameWork &work) { packetize(work); }
147 const RtpAncPacketizerContext &context()
const {
return _ctx; }
150 void packetize(
const RtpFrameWork &work)
override;
153 RtpAncPacketizerContext _ctx;