]> git.sesse.net Git - nageru/blobdiff - nageru/ffmpeg_capture.h
Allow SRT inputs to pass through without a rescale (only colorspace conversion).
[nageru] / nageru / ffmpeg_capture.h
index 685191a1f28bf9f463773fccb9abe3858c46b86d..35673122b01ccbc55e3e3a3549adc70bdd95d88f 100644 (file)
@@ -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;