pub struct EncoderDescriptor {
pub codec_id: CodecId,
pub name: &'static str,
pub long_name: &'static str,
pub media_type: MediaType,
pub capabilities: CodecCapabilities,
pub properties: CodecProperties,
pub supported_sample_formats: &'static [SampleFormat],
pub supported_pixel_formats: &'static [PixelFormat],
pub priority: i32,
}Expand description
Descriptor for an encoder implementation, used in the registry.
Fields§
§codec_id: CodecId§name: &'static str§long_name: &'static str§media_type: MediaType§capabilities: CodecCapabilities§properties: CodecProperties§supported_sample_formats: &'static [SampleFormat]§supported_pixel_formats: &'static [PixelFormat]§priority: i32Priority for registry selection. Higher priority wins when multiple encoders support the same codec_id. Native implementations use 100, wrapper/adapter implementations use 50.
Trait Implementations§
Source§impl Clone for EncoderDescriptor
impl Clone for EncoderDescriptor
Source§fn clone(&self) -> EncoderDescriptor
fn clone(&self) -> EncoderDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EncoderDescriptor
impl RefUnwindSafe for EncoderDescriptor
impl Send for EncoderDescriptor
impl Sync for EncoderDescriptor
impl Unpin for EncoderDescriptor
impl UnsafeUnpin for EncoderDescriptor
impl UnwindSafe for EncoderDescriptor
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