PS_CDFOFFSET#

code: 195

# set
<module-index>/<port-index> PS_CDFOFFSET [<stream_index>] <offset>

# get
<module-index>/<port-index> PS_CDFOFFSET [<stream_index>] ?

Description#

This command is part of the Custom Data Field (CDF) feature. The CDF offset for the stream is the location in the stream data packets where the various CDF data will be inserted. All fields for a given stream uses the same offset value. The default value is 0, which means that the CDF data will be inserted at the very start of the packet, thus overwriting the packet protocol headers. If you want the CDF data to start immediately after the end of the packet protocol headers you will have to set the CDF field offset manually. The feature requires that the P_PAYLOADMODE command on the parent port has been set to CDF. This enables the feature for all streams on this port.

Actions#

set, get

Parameters#

  1. offset: integer, the location where the CDF data will be inserted

Example#

# set
input:  0/1 PS_CDFOFFSET [0] 1
output: <OK>

# get
input:  0/1 PS_CDFOFFSET [0] ?
output: 0/1 PS_CDFOFFSET [0] 1