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§
Source§impl Clone for FormatDetails
impl Clone for FormatDetails
Source§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 moreSource§impl Debug for FormatDetails
impl Debug for FormatDetails
Source§impl<D: ResourceDialect> Decode<FormatDetails, D> for FormatDetails
impl<D: ResourceDialect> Decode<FormatDetails, D> for FormatDetails
Source§impl Default for FormatDetails
impl Default for FormatDetails
Source§fn default() -> FormatDetails
fn default() -> FormatDetails
Source§impl<D: ResourceDialect> Encode<FormatDetails, D> for &FormatDetails
impl<D: ResourceDialect> Encode<FormatDetails, D> for &FormatDetails
Source§impl PartialEq for FormatDetails
impl PartialEq for FormatDetails
Source§impl TypeMarker for FormatDetails
impl TypeMarker for FormatDetails
Source§type Owned = FormatDetails
type Owned = FormatDetails
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§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.Source§impl ValueTypeMarker for FormatDetails
impl ValueTypeMarker for FormatDetails
Source§type Borrowed<'a> = &'a FormatDetails
type Borrowed<'a> = &'a FormatDetails
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for FormatDetails
impl StructuralPartialEq for FormatDetails
Auto Trait Implementations§
impl Freeze for FormatDetails
impl RefUnwindSafe for FormatDetails
impl Send for FormatDetails
impl Sync for FormatDetails
impl Unpin for FormatDetails
impl UnwindSafe for FormatDetails
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)