X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encoder.h;h=110d615ed05e846b85aae14ad4422a64166092f2;hb=6ffaabac0a523617b686f40c154a25cb548cc561;hp=de243ac6f2a3f28e98a9a30ae090a90b35332a67;hpb=fb7eac9998ac186130409e859eb7c63906f7a2fd;p=nageru diff --git a/quicksync_encoder.h b/quicksync_encoder.h index de243ac..110d615 100644 --- a/quicksync_encoder.h +++ b/quicksync_encoder.h @@ -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 impl; };