// This file is provided under the NDI Embedded SDK license that is contained
// within the Embedded SDK documentation and is subject to the terms there-in.
// Your use of any part of this SDK is acknowledgment that you agree to the SDK
// license terms.
#include "../ndi_common/stdafx.h"
#include "ndi_encode.h"
#ifdef _WIN32
#include
#else
#include
#include
#endif
#include "Processing.NDI.Lib.h"
// Global debug variables, from debug.h
FILE *dbgstream = stderr;
int debug_level = LOG_ERR;
bool debug_flush = false;
void boilerplate()
{
// Report the NDI SDK Version
printf("%s\n", NDIlib_version());
printf("Copyright © 2020 NewTek, Inc.\n");
printf("Provided under NDI® Embedded SDK License\n");
printf("For more information please go to ndi.newtek.com\n");
printf("\n");
}
void platform_warn(uint8_t platform)
{
// A little white space for clarity
printf("\n");
// Warn about the NDI software timeout
printf("NOTE: This version of the NDI Embedded SDK is designed for development use\n");
printf("and will run on a stream for 30 minutes. For a commercial use license,\n");
printf("please email ndi@newtek.com\n");
printf("\n");
switch (platform)
{
case hardware::ePlatform_ZCU104:
// Warn about the evaluation core HDMI timeout
printf("WARNING: The evaluation HDMI Rx core will time out after apx. 40 minutes of\n");
printf("system uptime. Reprogram the FPGA (reboot) to restore normal operation.\n");
printf("\n");
default:
// Don't do anything
break;
}
}
1