-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
47 lines (43 loc) · 1.12 KB
/
main.cpp
File metadata and controls
47 lines (43 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2025 - present KMX Systems. All rights reserved.
#include "kmx/video/h265/gpu_extension_verifier.hpp"
#include <iostream>
namespace kmx::video::h265
{
void print_gpu_extensions()
{
gpu_extension_verifier verifier;
const auto& extensions = verifier.extensions();
for (const auto& [gpu_id, possible_extensions]: extensions)
{
std::cout << "gpu " << gpu_id << " [" << verifier.text_of(gpu_id) << "]: ";
if (possible_extensions)
{
for (const auto& ext: *possible_extensions)
{
if (ext)
{
std::cout << gpu_extension_verifier::text_of(*ext) << " ";
}
}
}
else
{
std::cout << '-';
}
std::cout << std::endl;
}
}
}
int main() noexcept
{
try
{
kmx::video::h265::print_gpu_extensions();
}
catch (const std::exception& e)
{
std::cerr << e.what() << std::endl;
return -1;
}
return 0;
}