X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fva_display.h;fp=shared%2Fva_display.h;h=395ecbb5f1f007412e2605440bb1a59c88502d83;hb=1a7e004368f4f5221e91bf53e17a8c0f7e1ceeb8;hp=0000000000000000000000000000000000000000;hpb=4d97399a1b67631f1844d807d95cb9da48f20477;p=nageru diff --git a/shared/va_display.h b/shared/va_display.h new file mode 100644 index 0000000..395ecbb --- /dev/null +++ b/shared/va_display.h @@ -0,0 +1,20 @@ +#ifndef _VA_DISPLAY_H +#define _VA_DISPLAY _H1 + +#include +#include + +#include +#include + +struct VADisplayWithCleanup { + ~VADisplayWithCleanup(); + + VADisplay va_dpy; + Display *x11_display = nullptr; + bool can_use_zerocopy = true; // For H.264 encoding in Nageru. + int drm_fd = -1; +}; +std::unique_ptr va_open_display(const std::string &va_display); // Can return nullptr on failure. + +#endif // !defined(_VA_DISPLAY_H)