#define _VAAPI_JPEG_DECODER_H 1
#include <X11/Xlib.h>
-#include <va/va.h>
-
-#include <string>
#include <memory>
+#include <string>
+#include <va/va.h>
struct Frame;
-
+
struct VADisplayWithCleanup {
~VADisplayWithCleanup();
std::string get_usable_va_display();
void init_jpeg_vaapi();
-std::shared_ptr<Frame> decode_jpeg_vaapi(const std::string &filename);
+std::shared_ptr<Frame> decode_jpeg_vaapi(const std::string &jpeg);
extern bool vaapi_jpeg_decoding_usable;
-
+
#endif // !defined(_VAAPI_JPEG_DECODER_H)