Add support for rocDecGetErrorName for getting the rocDecStatus error string (#185)

* Add support for rocDecGetErrorName for getting the rocDecStatus error string

* Add description of the API
이 커밋은 다음에 포함됨:
Aryan Salmanpour 작성하고 GitHub가 2024-01-17 14:00:54 -05:00를 커밋함
1 부모 d42e19cbfd
커밋 f7997b716d
3 파일이 변경됨
+36 -1

검색과 일치하는 파일 없음

+1 -1
파일 보기
@@ -96,7 +96,7 @@ private:
rocDecStatus error_code = rocDecAPI; \
if( error_code != ROCDEC_SUCCESS) { \
std::ostringstream error_log; \
error_log << #rocDecAPI << " returned err " << error_code << " at " <<__FILE__ <<":" << __LINE__;\
error_log << #rocDecAPI << " returned err " << rocDecGetErrorName(error_code) << " at " <<__FILE__ <<":" << __LINE__;\
ROCDEC_THROW(error_log.str(), error_code); \
} \
} while (0)