Struct ffmpeg_rs::codec::parameters::Parameters
source · [−]pub struct Parameters { /* private fields */ }
Implementations
sourceimpl Parameters
impl Parameters
pub unsafe fn wrap(
ptr: *mut AVCodecParameters,
owner: Option<Rc<dyn Any>>
) -> Self
pub unsafe fn as_ptr(&self) -> *const AVCodecParameters
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVCodecParameters
sourceimpl Parameters
impl Parameters
pub fn new() -> Self
pub fn medium(&self) -> Type
👎Deprecated since 5.1.1: Use codec_type instead
pub fn id(&self) -> Id
👎Deprecated since 5.1.1: Use codec_id instead
pub fn width(&self) -> u32
pub fn set_width(&mut self, value: u32)
pub fn height(&self) -> u32
pub fn set_height(&mut self, value: u32)
pub fn format(&self) -> AVPixelFormat
pub fn set_format(&mut self, format: Pixel)
pub fn codec_type(&self) -> Type
pub fn set_codec_type(&mut self, codec_type: Type)
pub fn codec_id(&self) -> Id
pub fn set_codec_id(&mut self, codec_id: Id)
pub fn extradata(&mut self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn set_extradata(&mut self, extradata: Vec<u8>)
Trait Implementations
sourceimpl Clone for Parameters
impl Clone for Parameters
sourceimpl Default for Parameters
impl Default for Parameters
sourceimpl Drop for Parameters
impl Drop for Parameters
sourceimpl<C: AsRef<Context>> From<C> for Parameters
impl<C: AsRef<Context>> From<C> for Parameters
sourcefn from(context: C) -> Parameters
fn from(context: C) -> Parameters
Converts to this type from the input type.
impl Send for Parameters
Auto Trait Implementations
impl !RefUnwindSafe for Parameters
impl !Sync for Parameters
impl Unpin for Parameters
impl !UnwindSafe for Parameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more