X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=nageru%2Fffmpeg_capture.h;fp=nageru%2Fffmpeg_capture.h;h=35673122b01ccbc55e3e3a3549adc70bdd95d88f;hp=685191a1f28bf9f463773fccb9abe3858c46b86d;hb=446d357f647112a5e164d6526cdba9ed9ade9fc6;hpb=4df45e479ddbc8e2247be8aab7f2bab5ddaa1b74 diff --git a/nageru/ffmpeg_capture.h b/nageru/ffmpeg_capture.h index 685191a..3567312 100644 --- a/nageru/ffmpeg_capture.h +++ b/nageru/ffmpeg_capture.h @@ -266,11 +266,14 @@ private: int read_srt(uint8_t *buf, int buf_size); #endif + inline unsigned frame_width(const AVFrame *frame) const; + inline unsigned frame_height(const AVFrame *frame) const; + mutable std::mutex filename_mu; std::string description, filename; int srt_sock = -1; uint16_t timecode = 0; - unsigned width, height; + unsigned width, height; // 0 means keep input size. bmusb::PixelFormat pixel_format = bmusb::PixelFormat_8BitBGRA; movit::YCbCrFormat current_frame_ycbcr_format; bool running = false;