1 #ifndef _VAAPI_JPEG_DECODER_H
2 #define _VAAPI_JPEG_DECODER_H 1
11 struct VADisplayWithCleanup {
12 ~VADisplayWithCleanup();
15 Display *x11_display = nullptr;
18 std::unique_ptr<VADisplayWithCleanup> va_open_display(const std::string &va_display); // Can return nullptr on failure.
19 std::string get_usable_va_display();
21 void init_jpeg_vaapi();
22 std::shared_ptr<Frame> decode_jpeg_vaapi(const std::string &jpeg);
24 extern bool vaapi_jpeg_decoding_usable;
26 #endif // !defined(_VAAPI_JPEG_DECODER_H)