X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=futatabi%2Fvideo_stream.h;h=d522ab1e8f5a98f9494004599b9c1aa2a74a76c0;hp=d4cb18eb7e91e758fc53d6e99adb90e7a2741e45;hb=eaba7288c4fb39ca195c9355970293bcaf088dbc;hpb=5198acefd13b91a7953f1db1370ce7d434132472 diff --git a/futatabi/video_stream.h b/futatabi/video_stream.h index d4cb18e..d522ab1 100644 --- a/futatabi/video_stream.h +++ b/futatabi/video_stream.h @@ -5,6 +5,7 @@ #include extern "C" { +#include #include } @@ -35,7 +36,7 @@ class YCbCrConverter; class VideoStream { public: - VideoStream(); + VideoStream(AVFormatContext *file_avctx); // nullptr if output to stream. ~VideoStream(); void start(); void stop(); @@ -131,9 +132,11 @@ private: std::deque frame_queue; // Under . std::condition_variable queue_changed; - std::unique_ptr stream_mux; // To HTTP. - std::string stream_mux_header; + AVFormatContext *avctx; + std::unique_ptr mux; // To HTTP, or to file. + std::string stream_mux_header; // Only used in HTTP. bool seen_sync_markers = false; + bool output_fast_forward; std::unique_ptr ycbcr_converter; std::unique_ptr ycbcr_semiplanar_converter;