]> git.sesse.net Git - nageru/blobdiff - nageru/video_encoder.h
Support sending a separate x264 encode to disk.
[nageru] / nageru / video_encoder.h
index 76dd92fa12cb12ef7dc2d439f9f335d75dcaf6b4..e0a926bbef811a8a0b63d083506925b8642b0309 100644 (file)
@@ -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
@@ -93,6 +93,7 @@ private:
        std::unique_ptr<Mux> stream_mux;  // To HTTP.
        std::unique_ptr<AudioEncoder> stream_audio_encoder;
        std::unique_ptr<X264Encoder> x264_encoder;  // nullptr if not using x264.
+       std::unique_ptr<X264Encoder> x264_disk_encoder;  // nullptr if not using x264, or if not having separate disk encodes.
 
        std::string stream_mux_header;
        MuxMetrics stream_mux_metrics;