pub mod zencodec_media_testkit pub mod zencodec_media_testkit::checks pub struct zencodec_media_testkit::checks::Failure pub zencodec_media_testkit::checks::Failure::check: &'static str pub zencodec_media_testkit::checks::Failure::detail: alloc::string::String impl core::error::Error for zencodec_media_testkit::checks::Failure impl core::fmt::Display for zencodec_media_testkit::checks::Failure pub fn zencodec_media_testkit::checks::Failure::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn zencodec_media_testkit::checks::check_animation_over_video(make_encoder: impl core::ops::function::FnMut() -> E, make_muxer: impl core::ops::function::FnMut() -> M, lag_frames: u32, capture: impl core::ops::function::FnMut() -> P, make_demuxer: impl core::ops::function::FnOnce() -> D, make_decoder: impl core::ops::function::FnOnce() -> C, render: R, frames: &[zenpixels::buffer::PixelBuffer], durations: &[zencodec::animation::FrameDuration]) -> zencodec_media_testkit::checks::Conformance where E: zencodec_media::session::VideoEncoder + core::marker::Send, M: zencodec_media::container::Muxer + core::marker::Send, D: zencodec_media::container::Demuxer + core::marker::Send, C: zencodec_media::session::VideoDecoder + core::marker::Send, P: zencodec_media::adapt::CaptureFrame + core::marker::Send, R: zencodec_media::adapt::RenderFrame + core::marker::Send pub fn zencodec_media_testkit::checks::check_demuxer_contract(make: F, file: &[u8]) -> zencodec_media_testkit::checks::Conformance where D: zencodec_media::container::Demuxer, F: core::ops::function::FnMut() -> D pub fn zencodec_media_testkit::checks::check_demuxer_seek(make: F, file: &[u8], targets: &[zencodec_media::container::SeekTarget]) -> zencodec_media_testkit::checks::Conformance where D: zencodec_media::container::Demuxer, F: core::ops::function::FnMut() -> D pub fn zencodec_media_testkit::checks::check_muxer_output_honesty(make: F, tracks: &[zencodec_media::track::TrackInfo], packets: &[zencodec_media::packet::Packet]) -> zencodec_media_testkit::checks::Conformance where M: zencodec_media::container::Muxer, F: core::ops::function::FnMut() -> M pub fn zencodec_media_testkit::checks::check_video_decoder_contract(make: F, config: &zencodec_media::session::CodecConfig, packets: &[zencodec_media::packet::Packet]) -> zencodec_media_testkit::checks::Conformance where D: zencodec_media::session::VideoDecoder + core::marker::Send + 'static, F: core::ops::function::FnMut() -> D pub fn zencodec_media_testkit::checks::check_video_encoder_contract(make: F, frames: &[zencodec::frame_storage::Frame]) -> zencodec_media_testkit::checks::Conformance where E: zencodec_media::session::VideoEncoder, F: core::ops::function::FnMut() -> E pub type zencodec_media_testkit::checks::Conformance = core::result::Result<(), zencodec_media_testkit::checks::Failure> pub mod zencodec_media_testkit::toy #[non_exhaustive] pub enum zencodec_media_testkit::toy::ToyError pub zencodec_media_testkit::toy::ToyError::BadMagic pub zencodec_media_testkit::toy::ToyError::BadPayload pub zencodec_media_testkit::toy::ToyError::BadTimeBase pub zencodec_media_testkit::toy::ToyError::HeadersFirst pub zencodec_media_testkit::toy::ToyError::NoSuchFrame pub zencodec_media_testkit::toy::ToyError::NoSuchTrack pub zencodec_media_testkit::toy::ToyError::ShapeMismatch pub zencodec_media_testkit::toy::ToyError::Truncated pub zencodec_media_testkit::toy::ToyError::WrongTrackCount impl core::error::Error for zencodec_media_testkit::toy::ToyError impl core::fmt::Display for zencodec_media_testkit::toy::ToyError pub fn zencodec_media_testkit::toy::ToyError::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub struct zencodec_media_testkit::toy::ToyDecoder impl zencodec_media_testkit::toy::ToyDecoder pub fn zencodec_media_testkit::toy::ToyDecoder::new(max_queued_frames: usize) -> Self impl zencodec_media::session::VideoDecoder for zencodec_media_testkit::toy::ToyDecoder pub type zencodec_media_testkit::toy::ToyDecoder::Error = zencodec_media_testkit::toy::ToyError pub fn zencodec_media_testkit::toy::ToyDecoder::configure(&mut self, config: &zencodec_media::session::CodecConfig, stop: core::option::Option<&dyn how_far::pulse::Pulse>) -> core::result::Result<(), zencodec_media::session::SessionError> pub fn zencodec_media_testkit::toy::ToyDecoder::end_input(&mut self) -> core::result::Result<(), zencodec_media::session::SessionError> pub fn zencodec_media_testkit::toy::ToyDecoder::receive(&mut self, stop: core::option::Option<&dyn how_far::pulse::Pulse>) -> core::result::Result, zencodec_media::session::SessionError> pub fn zencodec_media_testkit::toy::ToyDecoder::reset(&mut self) -> core::result::Result<(), zencodec_media::session::SessionError> pub fn zencodec_media_testkit::toy::ToyDecoder::send(&mut self, packet: &mut zencodec_media::packet::Packet, stop: core::option::Option<&dyn how_far::pulse::Pulse>) -> core::result::Result> pub fn zencodec_media_testkit::toy::ToyDecoder::stream_info(&self) -> core::option::Option<&zencodec_media::session::VideoStreamInfo> pub struct zencodec_media_testkit::toy::ToyDemuxer impl zencodec_media_testkit::toy::ToyDemuxer pub fn zencodec_media_testkit::toy::ToyDemuxer::new(limits: zencodec_media::limits::MediaLimits) -> Self impl zencodec_media::container::Demuxer for zencodec_media_testkit::toy::ToyDemuxer pub type zencodec_media_testkit::toy::ToyDemuxer::Error = zencodec_media_testkit::toy::ToyError pub fn zencodec_media_testkit::toy::ToyDemuxer::access_pattern(&self) -> zencodec::source::AccessPattern pub fn zencodec_media_testkit::toy::ToyDemuxer::requested(&self) -> &[zencodec::traits::incremental::InputRequest] pub fn zencodec_media_testkit::toy::ToyDemuxer::seek(&mut self, target: &zencodec_media::container::SeekTarget) -> core::result::Result> pub fn zencodec_media_testkit::toy::ToyDemuxer::step(&mut self, input: zencodec::traits::incremental::Input<'_>, stop: core::option::Option<&dyn how_far::pulse::Pulse>) -> core::result::Result> pub fn zencodec_media_testkit::toy::ToyDemuxer::tracks(&self) -> &[zencodec_media::track::TrackInfo] pub struct zencodec_media_testkit::toy::ToyEncoder impl zencodec_media_testkit::toy::ToyEncoder pub fn zencodec_media_testkit::toy::ToyEncoder::lookahead(&self) -> usize pub fn zencodec_media_testkit::toy::ToyEncoder::new(width: u32, height: u32, time_base: zencodec::time::TimeBase, lookahead: usize, keyint: u64) -> Self impl zencodec_media::session::VideoEncoder for zencodec_media_testkit::toy::ToyEncoder pub type zencodec_media_testkit::toy::ToyEncoder::Error = zencodec_media_testkit::toy::ToyError pub fn zencodec_media_testkit::toy::ToyEncoder::end_input(&mut self) -> core::result::Result<(), zencodec_media::session::SessionError> pub fn zencodec_media_testkit::toy::ToyEncoder::output_config(&self) -> core::option::Option<&zencodec_media::session::CodecConfig> pub fn zencodec_media_testkit::toy::ToyEncoder::receive(&mut self, stop: core::option::Option<&dyn how_far::pulse::Pulse>) -> core::result::Result, zencodec_media::session::SessionError> pub fn zencodec_media_testkit::toy::ToyEncoder::send(&mut self, frame: &zencodec::frame_storage::Frame, stop: core::option::Option<&dyn how_far::pulse::Pulse>) -> core::result::Result> pub struct zencodec_media_testkit::toy::ToyMuxer impl zencodec_media_testkit::toy::ToyMuxer pub fn zencodec_media_testkit::toy::ToyMuxer::new(write_count: bool) -> Self impl zencodec_media::container::Muxer for zencodec_media_testkit::toy::ToyMuxer pub type zencodec_media_testkit::toy::ToyMuxer::Error = zencodec_media_testkit::toy::ToyError pub fn zencodec_media_testkit::toy::ToyMuxer::begin(&mut self, tracks: &[zencodec_media::track::TrackInfo], hint: zencodec_media::container::MuxHint) -> core::result::Result> pub fn zencodec_media_testkit::toy::ToyMuxer::consume_output(&mut self, n: usize) pub fn zencodec_media_testkit::toy::ToyMuxer::finish(self, stop: core::option::Option<&dyn how_far::pulse::Pulse>) -> core::result::Result> pub fn zencodec_media_testkit::toy::ToyMuxer::pending_output(&self) -> &[u8] pub fn zencodec_media_testkit::toy::ToyMuxer::take_output(&mut self, into: &mut alloc::vec::Vec) pub fn zencodec_media_testkit::toy::ToyMuxer::write_packet(&mut self, packet: zencodec_media::packet::Packet, stop: core::option::Option<&dyn how_far::pulse::Pulse>) -> core::result::Result<(), zencodec_media::session::SessionError> pub const zencodec_media_testkit::toy::HEADER_LEN: usize pub const zencodec_media_testkit::toy::MAGIC: &[u8; 4] pub const zencodec_media_testkit::toy::PACKET_HEADER_LEN: usize pub fn zencodec_media_testkit::toy::toy_payload(pictures: &[&[u8]], show_existing: bool) -> alloc::vec::Vec pub struct zencodec_media_testkit::Failure pub zencodec_media_testkit::Failure::check: &'static str pub zencodec_media_testkit::Failure::detail: alloc::string::String impl core::error::Error for zencodec_media_testkit::checks::Failure impl core::fmt::Display for zencodec_media_testkit::checks::Failure pub fn zencodec_media_testkit::checks::Failure::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result pub fn zencodec_media_testkit::check_animation_over_video(make_encoder: impl core::ops::function::FnMut() -> E, make_muxer: impl core::ops::function::FnMut() -> M, lag_frames: u32, capture: impl core::ops::function::FnMut() -> P, make_demuxer: impl core::ops::function::FnOnce() -> D, make_decoder: impl core::ops::function::FnOnce() -> C, render: R, frames: &[zenpixels::buffer::PixelBuffer], durations: &[zencodec::animation::FrameDuration]) -> zencodec_media_testkit::checks::Conformance where E: zencodec_media::session::VideoEncoder + core::marker::Send, M: zencodec_media::container::Muxer + core::marker::Send, D: zencodec_media::container::Demuxer + core::marker::Send, C: zencodec_media::session::VideoDecoder + core::marker::Send, P: zencodec_media::adapt::CaptureFrame + core::marker::Send, R: zencodec_media::adapt::RenderFrame + core::marker::Send pub fn zencodec_media_testkit::check_demuxer_contract(make: F, file: &[u8]) -> zencodec_media_testkit::checks::Conformance where D: zencodec_media::container::Demuxer, F: core::ops::function::FnMut() -> D pub fn zencodec_media_testkit::check_demuxer_seek(make: F, file: &[u8], targets: &[zencodec_media::container::SeekTarget]) -> zencodec_media_testkit::checks::Conformance where D: zencodec_media::container::Demuxer, F: core::ops::function::FnMut() -> D pub fn zencodec_media_testkit::check_muxer_output_honesty(make: F, tracks: &[zencodec_media::track::TrackInfo], packets: &[zencodec_media::packet::Packet]) -> zencodec_media_testkit::checks::Conformance where M: zencodec_media::container::Muxer, F: core::ops::function::FnMut() -> M pub fn zencodec_media_testkit::check_video_decoder_contract(make: F, config: &zencodec_media::session::CodecConfig, packets: &[zencodec_media::packet::Packet]) -> zencodec_media_testkit::checks::Conformance where D: zencodec_media::session::VideoDecoder + core::marker::Send + 'static, F: core::ops::function::FnMut() -> D pub fn zencodec_media_testkit::check_video_encoder_contract(make: F, frames: &[zencodec::frame_storage::Frame]) -> zencodec_media_testkit::checks::Conformance where E: zencodec_media::session::VideoEncoder, F: core::ops::function::FnMut() -> E pub type zencodec_media_testkit::Conformance = core::result::Result<(), zencodec_media_testkit::checks::Failure>