Adding Test script (#113)

* test script

* code clean up + csv file

* add readme

* deleting unnecesasry files

* spelling correction

* moving tests to smaples

* Delete tests directory

* review comments
이 커밋은 다음에 포함됨:
Lakshmi Kumar 작성하고 GitHub가 2023-12-05 08:43:33 -05:00를 커밋함
1 부모 5e65788bdd
커밋 69a2afd341
4 파일이 변경됨
+271 -2

검색과 일치하는 파일 없음

+4 -1
파일 보기
@@ -192,6 +192,9 @@ int main(int argc, char **argv) {
std::string device_name;
int pci_bus_id, pci_domain_id, pci_device_id;
std::size_t found_file = input_file_path.find_last_of('/');
std::cout << "info: Input file: " << input_file_path.substr(found_file + 1) << std::endl;
std::cout << "info: Number of threads: " << n_thread << std::endl;
for (int i = 0; i < n_thread; i++) {
v_viddec[i]->GetDeviceinfo(device_name, gcn_arch_name, pci_bus_id, pci_domain_id, pci_device_id);
std::cout << "info: stream " << i << " using GPU device " << v_device_id[i] << " - " << device_name << "[" << gcn_arch_name << "] on PCI bus " <<
@@ -211,7 +214,7 @@ int main(int argc, char **argv) {
}
std::cout << "info: Total frame decoded: " << n_total << std::endl;
std::cout << "info: avg decoding time per frame (ms): " << 1000 / total_fps << std::endl;
std::cout << "info: avg decoding time per frame: " << 1000 / total_fps << " ms" << std::endl;
std::cout << "info: avg FPS: " << total_fps << std::endl;
} catch (const std::exception &ex) {
std::cout << ex.what() << std::endl;