|
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 "cdi_pool_api.h"#include "test_common.h"#include "utilities_api.h"#include "ndi_test.h"#include "ndi_wrapper.h"#include <Processing.NDI.Lib.h>Macros | |
| #define | TX_BUFFER_SIZE (3840 * 2160 * 3) |
| Assume 4k, 8-bit video frame is maximum payload size. | |
| #define | DEFAULT_FRAME_DATA_POOL_SIZE (100) |
| Default memory pool size. | |
| #define | DEFAULT_CALLBACK_FIFO_SIZE (100) |
| Default FrameData callback FIFO size. | |
| #define | DEFAULT_PAYLOAD_FIFO_SIZE (100) |
| Default FrameData payload FIFO size. | |
Functions | |
| CdiReturnStatus | NdiReceiverToCdiTransmitter (TestConnectionInfo *con_info_ptr) |
| External reference. | |
| CdiReturnStatus | CdiReceiverToNdiTransmitter (TestConnectionInfo *con_info_ptr) |
| External reference. | |
| void | PrintHelp (void) |
| static bool | ParseCommandLine (int argc, const char **argv, TestSettings *test_settings_ptr) |
| void | TestConnectionCallback (const CdiCoreConnectionCbData *cb_data_ptr) |
| void | LogTimestamps (TestConnectionInfo *con_info_ptr, const FrameData *frame_data_ptr, CdiPtpTimestamp *cdi_timestamp_ptr) |
| If enabled using the command line option, log timestamps for every frame. | |
| int | main (int argc, const char **argv) |
This file contains definitions and functions for the NDI-CDI Converter application.
| void LogTimestamps | ( | TestConnectionInfo * | con_info_ptr, |
| const FrameData * | frame_data_ptr, | ||
| CdiPtpTimestamp * | cdi_timestamp_ptr ) |
If enabled using the command line option, log timestamps for every frame.
| con_info_ptr | Pointer to test connection information. |
| frame_data_ptr | Pointer to frame data. |
| cdi_timestamp_ptr | Pointer to CDI timestamp to log. |
| int main | ( | int | argc, |
| const char ** | argv ) |
C main entry function.
| argc | Number of command line arguments. |
| argv | Pointer to array of pointers to command line arguments. |
|
static |
Parse command line and write to the specified TestSettings structure.
| argc | Number of command line arguments. |
| argv | Pointer to array of pointers to command line arguments. |
| test_settings_ptr | Address where to write returned settings. |
| void PrintHelp | ( | void | ) |
Output command line help message.
| void TestConnectionCallback | ( | const CdiCoreConnectionCbData * | cb_data_ptr | ) |
Handle the connection callback.
| cb_data_ptr | Pointer to core connection callback data. |