+ void set_frame_callback(bmusb::frame_callback_t callback) override
+ {
+ frame_callback = std::bind(
+ callback,
+ std::placeholders::_3,
+ std::placeholders::_4,
+ std::placeholders::_5,
+ std::placeholders::_6,
+ std::placeholders::_7,
+ std::placeholders::_8,
+ std::placeholders::_9);
+ }
+
+ // FFmpegCapture-specific callback that gives the raw audio.
+ typedef std::function<void(const AVPacket *pkt, const AVRational timebase)> audio_callback_t;
+ void set_audio_callback(audio_callback_t callback)
+ {
+ audio_callback = callback;
+ }
+
+ // Used to get precise information about the Y'CbCr format used
+ // for a given frame. Only valid to call during the frame callback,
+ // and only when receiving a frame with pixel format PixelFormat_8BitYCbCrPlanar.
+ movit::YCbCrFormat get_current_frame_ycbcr_format() const
+ {
+ return current_frame_ycbcr_format;
+ }
+