Struct CodecFormatInfo
pub struct CodecFormatInfo {
pub external_delay: Option<i64>,
pub turn_on_delay: Option<i64>,
pub turn_off_delay: Option<i64>,
/* private fields */
}
Expand description
Codec format information.
Fields§
§external_delay: Option<i64>
The driver’s best estimate of the external delay (in nanoseconds) present in the pipeline
for the chosen format. When precisely synchronizing presentation across multiple entities
(e.g. devices), the external delay should be taken into account.
If not included external_delay
is unknown.
Optional.
turn_on_delay: Option<i64>
The driver’s best estimate of the amount of time (in nanoseconds) it takes the hardware to
actually start playback/capture after a Start
command is issued.
It may take some time for the hardware to get into fully operational mode, for example due
a power state change. This delay must be taken into account if not getting the initial audio
samples played or captured is not acceptable.
If not included turn_on_delay
is unknown.
Optional.
turn_off_delay: Option<i64>
The driver’s best estimate of the amount of time (in nanoseconds) it takes the hardware to
actually stop playback/capture after a Stop
command is issued.
It may take some time for the hardware to get into fully stopped mode, for example due
a power state change. This delay must be taken into account if playback/capture of samples
after a ‘Stop’ command is not acceptable.
If not included, the turn off delay is unknown.
Optional.
Trait Implementations§
§impl Clone for CodecFormatInfo
impl Clone for CodecFormatInfo
§fn clone(&self) -> CodecFormatInfo
fn clone(&self) -> CodecFormatInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CodecFormatInfo
impl Debug for CodecFormatInfo
§impl<D> Decode<CodecFormatInfo, D> for CodecFormatInfowhere
D: ResourceDialect,
impl<D> Decode<CodecFormatInfo, D> for CodecFormatInfowhere
D: ResourceDialect,
§fn new_empty() -> CodecFormatInfo
fn new_empty() -> CodecFormatInfo
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for CodecFormatInfo
impl Default for CodecFormatInfo
§fn default() -> CodecFormatInfo
fn default() -> CodecFormatInfo
§impl<D> Encode<CodecFormatInfo, D> for &CodecFormatInfowhere
D: ResourceDialect,
impl<D> Encode<CodecFormatInfo, D> for &CodecFormatInfowhere
D: ResourceDialect,
§impl PartialEq for CodecFormatInfo
impl PartialEq for CodecFormatInfo
§impl TypeMarker for CodecFormatInfo
impl TypeMarker for CodecFormatInfo
§type Owned = CodecFormatInfo
type Owned = CodecFormatInfo
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for CodecFormatInfo
impl ValueTypeMarker for CodecFormatInfo
§type Borrowed<'a> = &'a CodecFormatInfo
type Borrowed<'a> = &'a CodecFormatInfo
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<CodecFormatInfo as TypeMarker>::Owned,
) -> <CodecFormatInfo as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<CodecFormatInfo as TypeMarker>::Owned, ) -> <CodecFormatInfo as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.