alpha2-host-core 0.8.1

FFmpeg-free native host logic for alpha2: the policies, audio timelines, cursor rules, providers, plugin runtime, protocol frames and request parsing native hosts share, and the decode, export and still pipeline the mobile hosts run.
Documentation
//! Host logic shared by every native alpha2 host, with no `FFmpeg` and no platform media API.
//!
//! The desktop host uses its policies, audio windows, cursor rules, providers, partial outputs,
//! plugin runtime, protocol frames and request parsing (`requests`), and decodes and encodes
//! through `FFmpeg` itself. The iOS and Android hosts also run its decode, export and still
//! pipeline over `VideoToolbox` and `MediaCodec`. Project audio rendering needs the `engine`
//! feature, on by default.

// Its thread locals are `const`; clippy misreads the emulated-TLS expansion used on Android.
#![cfg_attr(target_os = "android", allow(clippy::missing_const_for_thread_local))]

pub mod aac;
pub mod audio_frames;
mod audio_host;
pub mod audio_stream;
pub mod audio_timeline;
#[cfg(feature = "engine")]
pub mod audio_windows;
pub mod codecs;
#[cfg(feature = "engine")]
pub mod cursor;
pub mod encode;
pub mod encode_policy;
pub mod encode_watch;
#[cfg(feature = "engine")]
pub mod export;
pub mod export_policy;
#[cfg(feature = "engine")]
pub mod extract;
pub mod host_frames;
pub mod parameter_sets;
pub mod partial;
#[cfg(feature = "plugins")]
pub mod plugins;
#[cfg(all(feature = "engine", feature = "cpal-host"))]
pub mod preview_audio;
pub mod probe_cache;
#[cfg(feature = "providers")]
pub mod providers;
pub mod rate_control;
pub mod recovery;
pub mod remote;
pub mod request_watch;
#[cfg(feature = "requests")]
pub mod requests;
pub mod reverse_window;
pub mod stills;
mod threads;
pub mod tools;
pub mod video_stream;
pub mod vt_sei;

#[cfg(feature = "cpal-host")]
pub use audio_host::{CpalHostError, CpalOutputHost, RealtimeAudioSource};
pub use audio_host::{
    DecodedAudioSources, HostAudioConfig, HostSampleFormat, OfflineAudioError,
    negotiate_output_config, render_offline,
};
#[cfg(feature = "engine")]
pub use audio_host::{ProjectAudioRequest, ProjectAudioSources, render_project_audio};
pub use encode_watch::{EncodeCallWatch, watch_encode_calls};
pub use partial::{
    ExistingOutput, OutputTarget, PARTIAL_OUTPUT_IN_USE, PublishReport,
    remove_stale_partial_output, write_png, write_whole,
};
pub use recovery::{
    ConcealedAudioGap, CorruptPacket, DECODE_WORK_LIMIT, DecodeDiagnostic, DecodeDiagnosticCounts,
    DecodeDiagnostics, DecodeFailure, DecodePolicy, DecodeProgressWatch, DroppedAudioOverlap,
    Recovery, VideoRecoveryGap, watch_decode_progress,
};
pub use stills::{DecodedStill, StillFormat, StillInfo, decode_still, probe_still, still_format};
pub use threads::panic_text;
pub use tools::{
    FrameScore, THUMBNAIL_LUMA_RANGE, choose_thumbnail, downscale_frame, resize_rgba, score_frame,
};