CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
cdi_to_ndi.c File Reference

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_01_00_api.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 "cdi_pool_api.h"
#include "test_common.h"
#include "ndi_test.h"
#include "ndi_wrapper.h"
#include <Processing.NDI.Lib.h>

Macros

#define RX_LINEAR_BUFFER_SIZE   (20 * 1920 * 1080 * 3)
 Assume 20 frames of 1080, 8-bit video frame is maximum payload size.
 
#define NDI_AUDIO_BUFFER_POOL_ENTRIES   (100)
 Number of NDI audio buffer pool entries.
 
#define NDI_AUDIO_BUFFER_SIZE   (20000)
 Size in bytes of each NDI audio buffer in pool.
 

Functions

static void AvmRxCallback (const CdiAvmRxCbData *cb_data_ptr)
 
CdiReturnStatus CdiReceiverToNdiTransmitter (TestConnectionInfo *con_info_ptr)
 External reference.
 

Detailed Description

This file contains definitions and functions for the NDI<>CDI Converter application.

Function Documentation

◆ AvmRxCallback()

static void AvmRxCallback ( const CdiAvmRxCbData * cb_data_ptr)
static

Handle the Rx AVM callback.

Parameters
cb_data_ptrPointer to Tx RAW callback data.