From b97be0af722cca398a64a9212cf6fc8a3a288372 Mon Sep 17 00:00:00 2001 From: Alex Sobhani Date: Sun, 25 Feb 2024 23:33:27 -0500 Subject: [PATCH] add null compress/decompress and null config functions for when WITH_VC=NO --- ADApp/pluginSrc/NDPluginCodec.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/ADApp/pluginSrc/NDPluginCodec.cpp b/ADApp/pluginSrc/NDPluginCodec.cpp index 529e6fb29..1c88a8199 100644 --- a/ADApp/pluginSrc/NDPluginCodec.cpp +++ b/ADApp/pluginSrc/NDPluginCodec.cpp @@ -694,6 +694,32 @@ NDArray *compressH264(NDArray *input, NDCodecStatus_t *status, char *errorMessag return output; } + +#else + +NDArray *compressH264(NDArray *input, NDCodecStatus_t *status, char *errorMessage) +{ + sprintf(errorMessage, "No H264 support"); + *status = NDCODEC_ERROR; + return NULL; +} + +NDArray *decompressH264(NDArray *input, NDCodecStatus_t *status, char *errorMessage) +{ + sprintf(errorMessage, "No H264 support"); + *status = NDCODEC_ERROR; + return NULL; +} + + +void set_gop_size(int value){ + printf("unable to set gop size to %d\n", value); +} + +void set_q_min_max(int value){ + printf("unable to set q min max to %d\n", value); +} + #endif