X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fffmpeg_capture.h;h=843c83c254d4b9b5ac8cf46532c236cc269298c7;hb=2cb648106d32b9968f2026536fbead096308c7d1;hp=a9a837115977348265115bb77ca0b59a935eecc9;hpb=1c72c1bdbe20edb994ab39b80306a0184de58c7e;p=nageru diff --git a/nageru/ffmpeg_capture.h b/nageru/ffmpeg_capture.h index a9a8371..843c83c 100644 --- a/nageru/ffmpeg_capture.h +++ b/nageru/ffmpeg_capture.h @@ -33,6 +33,7 @@ #include #include +#include #include extern "C" { @@ -181,6 +182,12 @@ public: return has_last_subtitle; } + // Same. + movit::RGBTriplet get_last_neutral_color() const + { + return last_neutral_color; + } + void set_dequeue_thread_callbacks(std::function init, std::function cleanup) override { dequeue_init_callback = init; @@ -254,6 +261,7 @@ private: bool running = false; int card_index = -1; double rate = 1.0; + bool play_as_fast_as_possible = false; // Activated iff rate >= 10.0. std::atomic should_interrupt{false}; bool last_frame_was_connected = true; @@ -296,6 +304,8 @@ private: // Subtitles (no decoding done, really). bool has_last_subtitle = false; std::string last_subtitle; + + movit::RGBTriplet last_neutral_color{1.0f, 1.0f, 1.0f}; }; #endif // !defined(_FFMPEG_CAPTURE_H)