X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quicksync_encoder.h;h=9ec7c85b88a28e76777b8474ec6449fdd61eceaa;hb=1462715cd71d8f61b9e53b31c34d591d150f2df3;hp=495ddae48d998c00f1a927515c5330d0f0a44033;hpb=90d0745245f83999e88bc50cad57be3e4a1c7439;p=nageru diff --git a/quicksync_encoder.h b/quicksync_encoder.h index 495ddae..9ec7c85 100644 --- a/quicksync_encoder.h +++ b/quicksync_encoder.h @@ -33,10 +33,11 @@ #include #include -#include "mux.h" #include "ref_counted_frame.h" #include "ref_counted_gl_sync.h" +class AudioEncoder; +class Mux; class QuickSyncEncoderImpl; class QSurface; @@ -45,7 +46,7 @@ class QSurface; // .cpp file. class QuickSyncEncoder { public: - QuickSyncEncoder(QSurface *surface, const std::string &va_display, int width, int height, Mux *stream_mux); + QuickSyncEncoder(const std::string &filename, QSurface *surface, const std::string &va_display, int width, int height, Mux *stream_mux, AudioEncoder *stream_audio_encoder); ~QuickSyncEncoder(); void add_audio(int64_t pts, std::vector audio); @@ -53,10 +54,6 @@ public: RefCountedGLsync end_frame(int64_t pts, int64_t duration, const std::vector &input_frames); void shutdown(); // Blocking. - // You can only have one going at the same time. - void open_output_file(const std::string &filename); - void close_output_file(); - private: std::unique_ptr impl; };