]> git.sesse.net Git - nageru/blobdiff - quicksync_encoder_impl.h
Add functionality for MJPEG export.
[nageru] / quicksync_encoder_impl.h
index 41f7e32345f16fd1ba19f4cd1de637459c948659..0317b6af0393723bb1ca38ac0100947d8c800c85 100644 (file)
@@ -19,6 +19,8 @@
 #include "defs.h"
 #include "timebase.h"
 #include "print_latency.h"
+#include "ref_counted_gl_sync.h"
+#include "va_display_with_cleanup.h"
 
 #define SURFACE_NUM 16 /* 16 surfaces for source YUV */
 #define MAX_NUM_REF1 16 // Seemingly a hardware-fixed value, not related to SURFACE_NUM
@@ -31,15 +33,12 @@ struct __bitstream {
 };
 typedef struct __bitstream bitstream;
 
-struct VADisplayWithCleanup {
-       ~VADisplayWithCleanup();
-
-       VADisplay va_dpy;
-       Display *x11_display = nullptr;
-       bool can_use_zerocopy = true;
-       int drm_fd = -1;
-};
-std::unique_ptr<VADisplayWithCleanup> va_open_display(const std::string &va_display);  // Can return nullptr on failure.
+namespace movit {
+class ResourcePool;
+}
+class DiskSpaceEstimator;
+class QSurface;
+class X264Encoder;
 
 class QuickSyncEncoderImpl {
 public: