4/17/17
SigMRF Users Guide, Rev A2
Copyright
Signalogic, Inc. 2016-2017
21 / 39
mediaTest More Information
More information about mediaTest when used with coCPU hardware is located on the
Transcoding Test and Demo TI Wiki
.
3.5 APIs
Information for Pktlib, Voplib, and DirectCore APIs is given in sections 3.5.x below. In the case
of Pktlib and Voplib APIs, header files are included that show:
•
API definitions and syntax
•
Struct definitions
•
Constants
•
Attributes and flags
In the case of DirectCore, mostly high level information is given, with references and links
included to more detailed information.
3.5.1 Pktlib
Pktlib (Packet library) APIs may be called by user applications to:
•
send and receive packets
•
add packets to the jitter buffer
•
pull ordered / sequenced packets from the jitter buffer
•
format payloads into packets prior to sending
•
get information about packets in multithreaded, asynchronous data flow, for example
hash a packet’s contents and look up its associated session data in order operate on the
packet
For jitter buffer related APIs, packet format is controlled by flag and attribute values in the API
calls. For example, full packets (IP/UDP/RTP format) may be added to the jitter buffer, but only
payloads may be extracted Jitter buffer API packet formats include:
•
IP/UDP/RTP
•
UDP/RTP
•
RTP only (i.e. RTP header plus payload)
•
Payload only – applies only to pulling from the jitter buffer
Note that relative to the above list, the format of what is pulled must be equal to or a subset of
what was added.