CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
This file contains definitions and functions for the NDI<>CDI Converter application. More...
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "cdi_baseline_profile_02_00_api.h"
#include "cdi_core_api.h"
#include "cdi_logger_api.h"
#include "cdi_os_api.h"
#include "fifo_api.h"
#include "test_common.h"
#include "utilities_api.h"
#include "ndi_test.h"
#include "ndi_wrapper.h"
#include <Processing.NDI.Lib.h>
Functions | |
void | TestConnectionCallback (const CdiCoreConnectionCbData *cb_data_ptr) |
static void | ProcessCoreTxCallback (TestConnectionInfo *con_info_ptr, const CdiCoreCbData *core_cb_data_ptr) |
Process core Tx callback. | |
static void | DoneWithPayload (TestConnectionInfo *con_info_ptr, FrameData *frame_data_ptr) |
Done with a NDI payload. | |
static void | AvmTxCallback (const CdiAvmTxCbData *cb_data_ptr) |
Handle the Tx AVM callback. NOTE: Only used by the AVM API functions. | |
static CdiReturnStatus | SendAvmPayload (FrameData *frame_data_ptr, CdiSgList *sgl_ptr, CdiPtpTimestamp *timestamp_ptr, CdiAvmConfig *avm_config_ptr, int stream_identifier) |
Send a payload using an AVM API function. | |
static CdiPtpTimestamp | GetPtpTimestamp (TestConnectionInfo *con_info_ptr, const FrameData *frame_data_ptr) |
Return a CDI PTP timestamp for the specified NDI frame. | |
CdiReturnStatus | NdiReceiverToCdiTransmitter (TestConnectionInfo *con_info_ptr) |
External reference. | |
This file contains definitions and functions for the NDI<>CDI Converter application.
|
static |
Handle the Tx AVM callback. NOTE: Only used by the AVM API functions.
cb_data_ptr | Pointer to Tx AVM callback data. |
|
static |
Done with a NDI payload.
con_info_ptr | Pointer to test connection information. |
frame_data_ptr | Pointer to NDI frame data. |
|
static |
Return a CDI PTP timestamp for the specified NDI frame.
con_info_ptr | Pointer to connection information structure. |
frame_data_ptr | Pointer to frame data structure. |
|
static |
Process core Tx callback.
con_info_ptr | Pointer to test connection state data. |
core_cb_data_ptr | Pointer to core callback data. |
|
static |
Send a payload using an AVM API function.
frame_data_ptr | Pointer to frame data structure. |
sgl_ptr | Pointer to SGL. |
timestamp_ptr | Pointer to timestamp. |
avm_config_ptr | Pointer to the generic configuration structure to use for the stream. |
stream_identifier | Stream identifier. |
|
extern |
Handle the connection callback.
cb_data_ptr | Pointer to core connection callback data. |