X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fquicksync_encoder.h;h=6c27cfbcbae8cac26795fdc2d8490640e0864e5f;hb=e35786415c00652b3436dab5174c2504d314a219;hp=e4594de218cb013d746a67a5681fcea1b0132470;hpb=8202dbe236c5e206989c383004f9dba116ea12bd;p=nageru diff --git a/nageru/quicksync_encoder.h b/nageru/quicksync_encoder.h index e4594de..6c27cfb 100644 --- a/nageru/quicksync_encoder.h +++ b/nageru/quicksync_encoder.h @@ -50,7 +50,7 @@ class Mux; class QSurface; class QuickSyncEncoderImpl; class RefCountedFrame; -class X264Encoder; +class VideoCodecInterface; namespace movit { class ResourcePool; @@ -63,10 +63,10 @@ class ResourcePool; // This class is _not_ thread-safe, except where mentioned. class QuickSyncEncoder { public: - QuickSyncEncoder(const std::string &filename, movit::ResourcePool *resource_pool, QSurface *surface, const std::string &va_display, int width, int height, AVOutputFormat *oformat, X264Encoder *http_encoder, X264Encoder *disk_encoder, DiskSpaceEstimator *disk_space_estimator); + QuickSyncEncoder(const std::string &filename, movit::ResourcePool *resource_pool, QSurface *surface, const std::string &va_display, int width, int height, const AVOutputFormat *oformat, VideoCodecInterface *http_encoder, VideoCodecInterface *disk_encoder, DiskSpaceEstimator *disk_space_estimator); ~QuickSyncEncoder(); - void set_stream_mux(Mux *mux); // Does not take ownership. Must be called unless x264 is used for the stream. + void set_http_mux(Mux *mux); // Does not take ownership. Must be called unless x264 is used for the stream. void add_audio(int64_t pts, std::vector audio); // Thread-safe. bool is_zerocopy() const; // Thread-safe.