X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fvideo_encoder.h;h=3c82c00d609317a6d32344fb0bcf47378b6bdb11;hb=bdc9f1ea04141e71906d486f9d254c3346835e72;hp=21595a380c992b7df76c0d3531e0cee72b5b2cfe;hpb=9b7d691b4cc5db7dbfc18c82e86c1207fcac4722;p=nageru diff --git a/nageru/video_encoder.h b/nageru/video_encoder.h index 21595a3..3c82c00 100644 --- a/nageru/video_encoder.h +++ b/nageru/video_encoder.h @@ -20,8 +20,8 @@ extern "C" { #include } -#include "mux.h" -#include "ref_counted_gl_sync.h" +#include "shared/mux.h" +#include "shared/ref_counted_gl_sync.h" class AudioEncoder; class DiskSpaceEstimator; @@ -51,7 +51,7 @@ public: // // The semantics of y_tex and cbcr_tex depend on is_zerocopy(): // - // - If false, the are input parameters, ie., the caller + // - If false, they are input parameters, ie., the caller // allocates textures. (The contents are not read before // end_frame() is called.) // - If true, they are output parameters, ie., VideoEncoder @@ -78,7 +78,7 @@ private: static int write_packet2_thunk(void *opaque, uint8_t *buf, int buf_size, AVIODataMarkerType type, int64_t time); int write_packet2(uint8_t *buf, int buf_size, AVIODataMarkerType type, int64_t time); - AVOutputFormat *oformat; + const AVOutputFormat *oformat; mutable std::mutex qs_mu, qs_audio_mu; std::unique_ptr quicksync_encoder; // Under _and_ . movit::ResourcePool *resource_pool; @@ -93,6 +93,7 @@ private: std::unique_ptr stream_mux; // To HTTP. std::unique_ptr stream_audio_encoder; std::unique_ptr x264_encoder; // nullptr if not using x264. + std::unique_ptr x264_disk_encoder; // nullptr if not using x264, or if not having separate disk encodes. std::string stream_mux_header; MuxMetrics stream_mux_metrics;