X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fquicksync_encoder_impl.h;h=5e215e5b691bfa3f81ff317ce58404415c8d4c3d;hb=efeea7571ab45c6a846208f0554153de549d1711;hp=7645b99b6b34edf5e8afd83b91a6a9e7f981ba10;hpb=392f9d1ccb835c05a3874c4bea163788b2c37024;p=nageru diff --git a/nageru/quicksync_encoder_impl.h b/nageru/quicksync_encoder_impl.h index 7645b99..5e215e5 100644 --- a/nageru/quicksync_encoder_impl.h +++ b/nageru/quicksync_encoder_impl.h @@ -17,9 +17,10 @@ #include "audio_encoder.h" #include "defs.h" -#include "timebase.h" +#include "shared/timebase.h" #include "print_latency.h" -#include "ref_counted_gl_sync.h" +#include "shared/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 @@ -39,16 +40,6 @@ class DiskSpaceEstimator; class QSurface; class X264Encoder; -struct VADisplayWithCleanup { - ~VADisplayWithCleanup(); - - VADisplay va_dpy; - Display *x11_display = nullptr; - bool can_use_zerocopy = true; - int drm_fd = -1; -}; -std::unique_ptr va_open_display(const std::string &va_display); // Can return nullptr on failure. - class QuickSyncEncoderImpl { public: QuickSyncEncoderImpl(const std::string &filename, movit::ResourcePool *resource_pool, QSurface *surface, const std::string &va_display, int width, int height, AVOutputFormat *oformat, X264Encoder *x264_encoder, DiskSpaceEstimator *disk_space_estimator);