pub struct AudioDecoderOutputTest {
pub output_file: Option<&'static str>,
pub stream: Rc<dyn ElementaryStream>,
pub expected_output_size: OutputSize,
pub expected_digests: Option<Vec<ExpectedDigest>>,
pub expected_output_format: FormatDetails,
}Expand description
A hash test runs audio through the encoder and checks that all that data emitted when hashed sequentially results in the expected digest. Oob bytes are hashed first.
Fields§
§output_file: Option<&'static str>If provided, the output will also be written to this file. Use this to verify new files with a decoder before using their digest in tests.
stream: Rc<dyn ElementaryStream>§expected_output_size: OutputSize§expected_digests: Option<Vec<ExpectedDigest>>§expected_output_format: FormatDetailsAuto Trait Implementations§
impl Freeze for AudioDecoderOutputTest
impl !RefUnwindSafe for AudioDecoderOutputTest
impl !Send for AudioDecoderOutputTest
impl !Sync for AudioDecoderOutputTest
impl Unpin for AudioDecoderOutputTest
impl !UnwindSafe for AudioDecoderOutputTest
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]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