]> git.sesse.net Git - nageru/blobdiff - shared/va_display.h
Move VADisplayWithCleanup into its own header file, in shared/.
[nageru] / shared / va_display.h
similarity index 65%
rename from nageru/va_display_with_cleanup.h
rename to shared/va_display.h
index 3f9b1c56ebaba2790432bbd956b88545a6e75038..395ecbb5f1f007412e2605440bb1a59c88502d83 100644 (file)
@@ -1,19 +1,20 @@
-#ifndef _VA_DISPLAY_WITH_CLEANUP
-#define _VA_DISPLAY_WITH_CLEANUP 1
+#ifndef _VA_DISPLAY_H
+#define _VA_DISPLAY _H1
 
 #include <va/va.h>
 #include <X11/Xlib.h>
 
 #include <memory>
+#include <string.h>
 
 struct VADisplayWithCleanup {
        ~VADisplayWithCleanup();
 
        VADisplay va_dpy;
        Display *x11_display = nullptr;
-       bool can_use_zerocopy = true;
+       bool can_use_zerocopy = true;  // For H.264 encoding in Nageru.
        int drm_fd = -1;
 };
 std::unique_ptr<VADisplayWithCleanup> va_open_display(const std::string &va_display);  // Can return nullptr on failure.
 
-#endif  // !defined(_VA_DISPLAY_WITH_CLEANUP)
+#endif  // !defined(_VA_DISPLAY_H)