Expand description
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.
Re-exports§
pub use encode_watch::EncodeCallWatch;pub use encode_watch::watch_encode_calls;pub use partial::ExistingOutput;pub use partial::OutputTarget;pub use partial::PARTIAL_OUTPUT_IN_USE;pub use partial::PublishReport;pub use partial::remove_stale_partial_output;pub use partial::write_png;pub use partial::write_whole;pub use recovery::ConcealedAudioGap;pub use recovery::CorruptPacket;pub use recovery::DECODE_WORK_LIMIT;pub use recovery::DecodeDiagnostic;pub use recovery::DecodeDiagnosticCounts;pub use recovery::DecodeDiagnostics;pub use recovery::DecodeFailure;pub use recovery::DecodePolicy;pub use recovery::DecodeProgressWatch;pub use recovery::DroppedAudioOverlap;pub use recovery::Recovery;pub use recovery::VideoRecoveryGap;pub use recovery::watch_decode_progress;pub use stills::DecodedStill;pub use stills::StillFormat;pub use stills::StillInfo;pub use stills::decode_still;pub use stills::probe_still;pub use stills::still_format;pub use tools::FrameScore;pub use tools::THUMBNAIL_LUMA_RANGE;pub use tools::choose_thumbnail;pub use tools::downscale_frame;pub use tools::resize_rgba;pub use tools::score_frame;
Modules§
- aac
- What an AAC
AudioSpecificConfig(ISO/IEC 14496-3 1.6.2.1) declares, for every backend. - audio_
frames - Project audio cut into an encoder’s frames at the encoder’s rate.
- audio_
stream - Audio decoding over a container reader and a decoder session, placed by timestamp at the project rate.
- audio_
timeline - Decoded source audio placed where its timestamps say, and resampled to the project rate on
demand by
alpha2_audio::Resampler. - audio_
windows - Decoded audio held in windows around what a mix reads, within a byte budget: each source’s decoder moves forward with a clip playing through, and seeks for other reads.
- codecs
- The codecs native hosts encode.
- cursor
- Which frames an export cursor reads next, and when a decoder keeps decoding instead of seeking.
- encode
- Encoder sessions behind traits, and the sink that turns an export’s pictures and mixed audio into a container’s tracks.
- encode_
policy - Encoder settings every native backend applies the same way.
- encode_
watch - A heartbeat before each encoder and muxer call, for an outside stall watcher.
- export
- Exports driven on the host’s own threads: frame needs, decoded sources, the store the renderer reads, and the encoder sink.
- export_
policy - Export policy every native host applies: the H.264 profile ladder platform encoders are tried with, and whether and how a failed export is retried.
- extract
- Supplies an extraction session from decoders. A source reader works over any
alpha2_media::Decoderand presents its frames on the CPU;rundrives an extractor and records where its data came from. - host_
frames - Frames of the host protocol: an 8-byte preamble, a JSON header and binary attachments.
- parameter_
sets - What H.264 and HEVC sequence parameter sets declare (coded size, cropping, the VUI’s aspect ratio, color and chroma siting) and HEVC VPS layer declarations, read from a stream’s sample description, and the format a VP9 frame header declares.
- partial
- The partial file an output is written to until it is finished, and how a finished one is published.
- probe_
cache - What this process learned from encoder probe opens, so failures that cannot change are asked once.
- rate_
control - Rate-control vocabulary shared by every encoder backend.
- recovery
- Bounded recovery shared by software and hardware-backed native decoders.
- request_
watch - A heartbeat from the long loops a request’s own thread runs, for the host’s request watch.
- reverse_
window - Decoded frames kept for a backward run, within a byte budget.
- stills
- Still picture decoding (PNG, JPEG, WebP) to straight RGBA, with the Exif orientation.
- tools
- Thumbnail scoring, proxy downscaling and RGBA resizing on decoded frames, without
FFmpeg. - video_
stream - Frame-exact video decoding over a container reader and a platform decoder session.
- vt_sei
- Removes the
user_data_unregisteredSEIVideoToolboxwrites into its H.264 output.
Structs§
- Decoded
Audio Sources - Decoded, project-rate planar audio held per source audio stream for offline mixing; one whole-stream block each, indexed by absolute source position.
- Host
Audio Config - Platform-neutral device range used by negotiation tests and cpal mapping.
- Project
Audio Request - One offline project-audio render request.
Enums§
- Host
Sample Format - Host sample representation considered during deterministic negotiation.
- Offline
Audio Error - Native offline-render failure.
Traits§
- Project
Audio Sources - The audio a project mix reads: decoded whole (
DecodedAudioSources), or held in windows a host fills as the mix reaches them (crate::audio_windows::WindowedAudioSources).
Functions§
- negotiate_
output_ config - Selects an output that plays stereo, requiring exact project-rate
f32support. - panic_
text - The message of a caught panic’s
payload. - render_
offline - Runs the same graph used by realtime hosts and writes exact project-rate blocks.
- render_
project_ audio - Mixes a whole project audio range and writes exact project-rate blocks.