pub struct FFmpegDecoder;Expand description
The actual FFmpeg decoder.
To use it, one might write use FFmpegDecoder as Decoder;,
use super::decoder::Decoder as DecoderTrait;, and then use
Decoder::song_from_path
Trait Implementations§
Source§impl Decoder for FFmpegDecoder
impl Decoder for FFmpegDecoder
Source§fn decode(path: &Path) -> BlissResult<PreAnalyzedSong>
fn decode(path: &Path) -> BlissResult<PreAnalyzedSong>
A function that should decode and resample a song, optionally
extracting the song’s metadata such as the artist, the album, etc. Read more
Source§fn song_from_path<P: AsRef<Path>>(path: P) -> BlissResult<Song>
fn song_from_path<P: AsRef<Path>>(path: P) -> BlissResult<Song>
Source§fn song_from_path_with_options<P: AsRef<Path>>(
path: P,
analysis_options: AnalysisOptions,
) -> BlissResult<Song>
fn song_from_path_with_options<P: AsRef<Path>>( path: P, analysis_options: AnalysisOptions, ) -> BlissResult<Song>
Source§fn analyze_paths<P: Into<PathBuf>, F: IntoIterator<Item = P>>(
paths: F,
) -> IntoIter<(PathBuf, BlissResult<Song>)>
fn analyze_paths<P: Into<PathBuf>, F: IntoIterator<Item = P>>( paths: F, ) -> IntoIter<(PathBuf, BlissResult<Song>)>
Analyze songs in
paths using multiple threads, and return the
analyzed Song objects through an mpsc::IntoIter. Read moreSource§fn analyze_paths_with_options<P: Into<PathBuf>, F: IntoIterator<Item = P>>(
paths: F,
analysis_options: AnalysisOptions,
) -> IntoIter<(PathBuf, BlissResult<Song>)>
fn analyze_paths_with_options<P: Into<PathBuf>, F: IntoIterator<Item = P>>( paths: F, analysis_options: AnalysisOptions, ) -> IntoIter<(PathBuf, BlissResult<Song>)>
Analyze songs in
paths, and return the analyzed Song objects through an
mpsc::IntoIter. number_cores sets the number of cores the analysis
will use, capped by your system’s capacity. Most of the time, you want to
use the simpler analyze_paths functions, which autodetects the number
of cores in your system. Read moreAuto Trait Implementations§
impl Freeze for FFmpegDecoder
impl RefUnwindSafe for FFmpegDecoder
impl Send for FFmpegDecoder
impl Sync for FFmpegDecoder
impl Unpin for FFmpegDecoder
impl UnwindSafe for FFmpegDecoder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more