pub type OnConsumerFrameCallbackType = extern "C" fn(RefAny, CallbackInfo, ConsumerFrame) -> Update;
pub fn poll_capture_control(recv: &mut ThreadReceiver, targets: &mut CaptureTargets) -> bool {
/// * `floor` — the configured size when the app set one explicitly, or the widget's default when an
/// `on_frame` hook wants the source frame (the hook sees what the config promised, so the capture
/// * `delivered` — the size its frames actually have (backends snap up to a preset, so this is
pub fn preview_cut_size(targets: &CaptureTargets, captured: (u32, u32)) -> Option<(u32, u32)> {
#[allow(clippy::cast_possible_truncation, clippy::cast_sign_loss)] // bounded layout/render numeric
pub fn send_capture_targets(info: &CallbackInfo, thread_id: ThreadId, targets: CaptureTargets) {
/// 1. Learn the targets (wait briefly for the first preview size so the device is opened at the
/// 3. Per frame: poll the control channel (new targets / terminate), reconfigure or reopen when
fn open_with_fallback(session: &CaptureSession, request: &CaptureRequest) -> (CaptureVTable, u64) {