]> git.sesse.net Git - nageru/blobdiff - quicksync_encoder.h
Add the GPU memory metrics to the Grafana dashboard.
[nageru] / quicksync_encoder.h
index de243ac6f2a3f28e98a9a30ae090a90b35332a67..110d615ed05e846b85aae14ad4422a64166092f2 100644 (file)
@@ -78,6 +78,11 @@ public:
        void release_gl_resources();  // Requires an OpenGL context. Must be run after shutdown.
        int64_t global_delay() const;  // So we never get negative dts.
 
+       // Tries to autodetect a device with a usable VA-API H.264 encoder.
+       // Tries first the default X11 display, then every /dev/dri/renderD* node in turn.
+       // Dies if none could be found.
+       static std::string get_usable_va_display();
+
 private:
        std::unique_ptr<QuickSyncEncoderImpl> impl;
 };