]> git.sesse.net Git - nageru/blobdiff - nageru/x264_encoder.h
Support sending a separate x264 encode to disk.
[nageru] / nageru / x264_encoder.h
index 7b8751715250d5f34147f7f11d9a8d83df409037..9995c3f370452ba300b97d34e952f5c60f514a51 100644 (file)
@@ -42,7 +42,7 @@ class X264SpeedControl;
 
 class X264Encoder {
 public:
-       X264Encoder(AVOutputFormat *oformat);  // Does not take ownership.
+       X264Encoder(AVOutputFormat *oformat, bool use_separate_disk_params);  // Does not take ownership.
 
        // Called after the last frame. Will block; once this returns,
        // the last data is flushed.
@@ -86,7 +86,8 @@ private:
        std::unique_ptr<uint8_t[]> frame_pool;
 
        std::vector<Mux *> muxes;
-       bool wants_global_headers;
+       const bool wants_global_headers;
+       const bool use_separate_disk_params;
 
        std::string global_headers;
        std::string buffered_sei;  // Will be output before first frame, if any.