MCPcopy Create free account
hub / github.com/NVIDIA/DALI / GetNvimgcodecVersion

Function GetNvimgcodecVersion

dali/operators/operators.cc:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46DLL_PUBLIC int GetNvimgcodecVersion() {
47#if not(NVIMAGECODEC_ENABLED)
48 return -1;
49#else
50 nvimgcodecProperties_t properties{NVIMGCODEC_STRUCTURE_TYPE_PROPERTIES,
51 sizeof(nvimgcodecProperties_t), 0};
52 if (NVIMGCODEC_STATUS_SUCCESS != nvimgcodecGetProperties(&properties))
53 return -1;
54 return static_cast<int>(properties.version);
55#endif
56}
57
58DLL_PUBLIC void EnforceMinimumNvimgcodecVersion() {
59#if NVIMAGECODEC_ENABLED

Callers 2

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected