X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fquicksync_encoder_impl.h;fp=nageru%2Fquicksync_encoder_impl.h;h=c4a99fb97f8874b24e0362d9469bafc92792a678;hb=8202dbe236c5e206989c383004f9dba116ea12bd;hp=53f88ecd4be8c9fe98d51cfeaf72eebb34fe4afe;hpb=70e2471c1297f5ee5592918a736224841d8e4d77;p=nageru diff --git a/nageru/quicksync_encoder_impl.h b/nageru/quicksync_encoder_impl.h index 53f88ec..c4a99fb 100644 --- a/nageru/quicksync_encoder_impl.h +++ b/nageru/quicksync_encoder_impl.h @@ -43,7 +43,7 @@ class X264Encoder; 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); + QuickSyncEncoderImpl(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); ~QuickSyncEncoderImpl(); void add_audio(int64_t pts, std::vector audio); bool is_zerocopy() const; @@ -171,7 +171,8 @@ private: std::mutex file_audio_encoder_mutex; std::unique_ptr file_audio_encoder; - X264Encoder *x264_encoder; // nullptr if not using x264. + X264Encoder *x264_http_encoder; // nullptr if not using x264. + X264Encoder *x264_disk_encoder; std::unique_ptr v4l_output; // nullptr if not using V4L2 output. Mux* stream_mux = nullptr; // To HTTP.