Add support for passing the correct device id when initializing the va-api decoder (#8)

[ROCm/rocjpeg commit: 363205c9a8]
此提交包含在:
Aryan Salmanpour
2024-04-01 18:06:44 -04:00
提交者 GitHub
父節點 8f9b191453
當前提交 74b4963c90
共有 3 個檔案被更改,包括 4 行新增3 行删除
+2 -1
查看文件
@@ -63,7 +63,8 @@ RocJpegVappiDecoder::~RocJpegVappiDecoder() {
}
}
RocJpegStatus RocJpegVappiDecoder::InitializeDecoder(std::string device_name, std::string gcn_arch_name) {
RocJpegStatus RocJpegVappiDecoder::InitializeDecoder(std::string device_name, std::string gcn_arch_name, int device_id) {
device_id_ = device_id;
std::size_t pos = gcn_arch_name.find_first_of(":");
std::string gcn_arch_name_base = (pos != std::string::npos) ? gcn_arch_name.substr(0, pos) : gcn_arch_name;