Only use graphics card connected to monitor if it's capable of h264 encoding

This commit is contained in:
loki
2021-08-15 22:15:24 +02:00
parent fdb7754043
commit d852bb82a3
3 changed files with 185 additions and 8 deletions

View File

@@ -11,6 +11,9 @@ namespace va {
std::shared_ptr<platf::hwdevice_t> make_hwdevice(int width, int height);
std::shared_ptr<platf::hwdevice_t> make_hwdevice(int width, int height, file_t &&card, int offset_x, int offset_y, const egl::surface_descriptor_t &sd);
// Ensure the render device pointed to by fd is capable of encoding h264
bool validate(int fd);
int init();
} // namespace va
#endif