move getEnvVar function to common (#299)
Este cometimento está contido em:
cometido por
GitHub
ascendente
6265f675c1
cometimento
d5b5a31881
@@ -1104,15 +1104,3 @@ bool RocVideoDecoder::InitHIP(int device_id) {
|
||||
HIP_API_CALL(hipStreamCreate(&hip_stream_));
|
||||
return true;
|
||||
}
|
||||
|
||||
int GetEnvVar(const char *name, int &dev_count) {
|
||||
char *v = std::getenv(name);
|
||||
if (v) {
|
||||
char* p_tkn = std::strtok(v, ",");
|
||||
while (p_tkn != nullptr) {
|
||||
dev_count++;
|
||||
p_tkn = strtok(nullptr, ",");
|
||||
}
|
||||
}
|
||||
return dev_count;
|
||||
}
|
||||
|
||||
@@ -158,8 +158,6 @@ typedef struct ReconfigParams_t {
|
||||
uint32_t reconfig_flush_mode;
|
||||
} ReconfigParams;
|
||||
|
||||
int GetEnvVar(const char *name, int &dev_count);
|
||||
|
||||
class RocVideoDecoder {
|
||||
public:
|
||||
/**
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador