Struct FormatDetails
pub struct FormatDetails {
pub format_details_version_ordinal: Option<u64>,
pub mime_type: Option<String>,
pub oob_bytes: Option<Vec<u8>>,
pub domain: Option<DomainFormat>,
pub pass_through_parameters: Option<Vec<Parameter>>,
pub encoder_settings: Option<EncoderSettings>,
pub timebase: Option<u64>,
pub profile: Option<CodecProfile>,
/* private fields */
}
Expand description
FormatDetails
This describes/details the format on input or output of a StreamProcessor (separate instances for input vs. output).
Fields§
§format_details_version_ordinal: Option<u64>
§mime_type: Option<String>
§oob_bytes: Option<Vec<u8>>
§domain: Option<DomainFormat>
§pass_through_parameters: Option<Vec<Parameter>>
§encoder_settings: Option<EncoderSettings>
Instructs an encoder on how to encode raw data.
Decoders may ignore this field but are entitled to rejected requests with this field set because it doesn’t make sense.
timebase: Option<u64>
The number of ticks of the timebase of input packet timestamp_ish values per second.
The timebase is only used used for optional extrapolation of timestamp_ish values when an input timestamp which applies to byte 0 of the valid portion of the input packet does not correspond directly to byte 0 of the valid portion of any output packet.
Leave unset if timestamp extrapolation is not needed, either due to lack of timestamps on input, or due to input being provided in increments of the encoder’s input chunk size (based on the encoder settings and calculated independently by the client). Set if timestamp extrapolation is known to be needed or known to be acceptable to the client.
profile: Option<CodecProfile>
The codec profile for the given encoder or decoder.
For encoders: This value is completely optional. A client may want to specify the codec profile used for protocol compatibility reasons (i.e. WebRTC). However if the value is not set then the the encoder is free to choose any supported codec profile.
For decoders: This value is optional but providing it is best practice (at least of unencrypted streams). Container formats include the encoded profile and this should be provided to the decoder. Certain formats like VP9 and AV1 include the encoded profile in their elementary bitstream so it is possible for those decoders to figure out the profile the stream is encoded in. Regardless, clients should provide the encoded profile if possible.
Trait Implementations§
§impl Clone for FormatDetails
impl Clone for FormatDetails
§fn clone(&self) -> FormatDetails
fn clone(&self) -> FormatDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for FormatDetails
impl Debug for FormatDetails
§impl<D> Decode<FormatDetails, D> for FormatDetailswhere
D: ResourceDialect,
impl<D> Decode<FormatDetails, D> for FormatDetailswhere
D: ResourceDialect,
§fn new_empty() -> FormatDetails
fn new_empty() -> FormatDetails
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for FormatDetails
impl Default for FormatDetails
§fn default() -> FormatDetails
fn default() -> FormatDetails
§impl<D> Encode<FormatDetails, D> for &FormatDetailswhere
D: ResourceDialect,
impl<D> Encode<FormatDetails, D> for &FormatDetailswhere
D: ResourceDialect,
§impl PartialEq for FormatDetails
impl PartialEq for FormatDetails
§impl TypeMarker for FormatDetails
impl TypeMarker for FormatDetails
§type Owned = FormatDetails
type Owned = FormatDetails
§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 FormatDetails
impl ValueTypeMarker for FormatDetails
§type Borrowed<'a> = &'a FormatDetails
type Borrowed<'a> = &'a FormatDetails
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<FormatDetails as TypeMarker>::Owned,
) -> <FormatDetails as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<FormatDetails as TypeMarker>::Owned, ) -> <FormatDetails as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.