1 #ifndef _VAAPI_JPEG_DECODER_H
2 #define _VAAPI_JPEG_DECODER_H 1
12 struct VADisplayWithCleanup {
13 ~VADisplayWithCleanup();
16 Display *x11_display = nullptr;
19 std::unique_ptr<VADisplayWithCleanup> va_open_display(const std::string &va_display); // Can return nullptr on failure.
20 std::string get_usable_va_display();
22 void init_jpeg_vaapi();
23 std::shared_ptr<Frame> decode_jpeg_vaapi(const std::string &filename);
25 extern bool vaapi_jpeg_decoding_usable;
27 #endif // !defined(_VAAPI_JPEG_DECODER_H)