pub struct TranscodeOutcome {
pub input_codec: String,
pub input_audio_codec: Option<String>,
pub input_dims: (u32, u32),
pub input_frame_rate: f64,
pub input_bytes: usize,
pub output_bytes: Vec<u8>,
pub frames_processed: u64,
pub packets_emitted: u64,
pub audio_handling: AudioHandling,
pub elapsed: Duration,
}Expand description
Outcome of a single in-memory transcode.
Fields§
§input_codec: StringLower-cased input video codec label (e.g. "h264", "hevc", "av1").
input_audio_codec: Option<String>Lower-cased input audio codec label, if the source carried audio.
input_dims: (u32, u32)Source video dimensions (width, height) in pixels.
input_frame_rate: f64Source frame rate in frames per second.
input_bytes: usizeSize of the input buffer in bytes.
output_bytes: Vec<u8>The encoded AV1/MP4 output buffer.
frames_processed: u64Number of decoded video frames fed to the encoder.
packets_emitted: u64Number of AV1 packets emitted by the encoder.
audio_handling: AudioHandlingHow the audio track was handled.
elapsed: DurationWall-clock time spent transcoding.
Trait Implementations§
Source§impl Clone for TranscodeOutcome
impl Clone for TranscodeOutcome
Source§fn clone(&self) -> TranscodeOutcome
fn clone(&self) -> TranscodeOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TranscodeOutcome
impl RefUnwindSafe for TranscodeOutcome
impl Send for TranscodeOutcome
impl Sync for TranscodeOutcome
impl Unpin for TranscodeOutcome
impl UnsafeUnpin for TranscodeOutcome
impl UnwindSafe for TranscodeOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more