public class TransformEngineChain.PacketTransformerChain extends Object implements PacketTransformer
| Constructor and Description |
|---|
PacketTransformerChain(boolean rtp)
Creates an instance of this packet transformer and prepares it to
deal with RTP or RTCP according to the isRtp argument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the transformer and underlying transform engines.
|
RawPacket[] |
reverseTransform(RawPacket[] pkts)
Reverse-transforms each packet in an array of packets.
|
RawPacket[] |
transform(RawPacket[] pkts)
Transforms each packet in an array of packets.
|
RawPacket[] |
transform(RawPacket[] pkts,
TransformEngine after)
Transforms the specified
pkts using the
TransformEngines in the chain in order starting after a
specific TransformEngine. |
public PacketTransformerChain(boolean rtp)
rtp - true if this transformer will be dealing with RTP
(i.e. will transform packets via the RTP transformers in this chain
rather than the RTCP ones) and false otherwise.public void close()
close in interface PacketTransformerpublic RawPacket[] reverseTransform(RawPacket[] pkts)
reverseTransform in interface PacketTransformerpkts - the transformed packets to be restored.public RawPacket[] transform(RawPacket[] pkts)
pkts using each of the
TransformEngines in the chain in order.transform in interface PacketTransformerpkts - the packets to be transformedpublic RawPacket[] transform(RawPacket[] pkts, TransformEngine after)
pkts using the
TransformEngines in the chain in order starting after a
specific TransformEngine.pkts - the array of RawPackets to transformafter - the TransformEngine in the chain after which the
transformation is to begin. If after is not in the chain, the
transformation executes through the whole chain.RawPackets that is the result of the
transformation of pkts using the TransformEngines in
the chainCopyright © 2022 jitsi.org. All rights reserved.