]> git.sesse.net Git - nageru/blobdiff - vaapi_jpeg_decoder.h
Allow symlinked frame files. Useful for testing.
[nageru] / vaapi_jpeg_decoder.h
index 4ab957e01a9099a7a0b36791da970c2448b9f735..4182cfc3d0405c66208093d0de540d360861f83e 100644 (file)
@@ -2,13 +2,12 @@
 #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();
 
@@ -20,8 +19,8 @@ std::unique_ptr<VADisplayWithCleanup> va_open_display(const std::string &va_disp
 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)