pub struct CreateEncoderParams {
pub input_details: Option<FormatDetails>,
pub require_hw: Option<bool>,
pub codec_specifier: Option<String>,
/* private fields */
}Expand description
Parameters used to request an encoder.
Fields§
§input_details: Option<FormatDetails>The format of the uncompressed input data.
This field should be a raw mime_type (e.g. ‘video/raw’) and uncompressed format details for the encoder to use when reading buffers.
To be elibigible an encoder must support the input format.
require_hw: Option<bool>If true, require that the returned codec is HW-accelerated.
If not set, interpreted as false.
codec_specifier: Option<String>If set to a value obtained from
[fuchsia.mediacodec/DetailedCodecDescription.codec_specifier], the
create request will create the specified codec or fail. The client
should still set other fields in this table as appropriate, so that the
codec factory can ensure that the codec will meet the client’s
requirements (and to convey oob_bytes as needed). More than one codec
reported by from [fuchsia.mediacodec/DetailedCodecDescription] can
have the same codec_specifier iff the underlying implementation is the
same. A codec implementation may change its codec_specifier(s) each
boot, whether updated to a new implementation version or not.
Trait Implementations§
Source§impl Clone for CreateEncoderParams
impl Clone for CreateEncoderParams
Source§fn clone(&self) -> CreateEncoderParams
fn clone(&self) -> CreateEncoderParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateEncoderParams
impl Debug for CreateEncoderParams
Source§impl<D> Decode<CreateEncoderParams, D> for CreateEncoderParamswhere
D: ResourceDialect,
impl<D> Decode<CreateEncoderParams, D> for CreateEncoderParamswhere
D: ResourceDialect,
Source§fn new_empty() -> CreateEncoderParams
fn new_empty() -> CreateEncoderParams
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for CreateEncoderParams
impl Default for CreateEncoderParams
Source§fn default() -> CreateEncoderParams
fn default() -> CreateEncoderParams
Source§impl<D> Encode<CreateEncoderParams, D> for &CreateEncoderParamswhere
D: ResourceDialect,
impl<D> Encode<CreateEncoderParams, D> for &CreateEncoderParamswhere
D: ResourceDialect,
Source§impl PartialEq for CreateEncoderParams
impl PartialEq for CreateEncoderParams
Source§fn eq(&self, other: &CreateEncoderParams) -> bool
fn eq(&self, other: &CreateEncoderParams) -> bool
self and other values to be equal, and is used by ==.Source§impl TypeMarker for CreateEncoderParams
impl TypeMarker for CreateEncoderParams
Source§type Owned = CreateEncoderParams
type Owned = CreateEncoderParams
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.Source§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 moreSource§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 CreateEncoderParams
impl ValueTypeMarker for CreateEncoderParams
Source§type Borrowed<'a> = &'a CreateEncoderParams
type Borrowed<'a> = &'a CreateEncoderParams
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<CreateEncoderParams as TypeMarker>::Owned,
) -> <CreateEncoderParams as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<CreateEncoderParams as TypeMarker>::Owned, ) -> <CreateEncoderParams as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.