Skip to content

Commit

Permalink
add null compress/decompress and null config functions for when WITH_…
Browse files Browse the repository at this point in the history
…VC=NO
  • Loading branch information
bsobhani committed Apr 1, 2024
1 parent f90b86e commit aee675e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ADApp/pluginSrc/NDPluginCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit aee675e

Please sign in to comment.