pub struct MediaFormat { /* private fields */ }
Expand description
This structure stores data in key-value pairs for use in MediaCodec and other places in the NDK
Implementations§
Source§impl MediaFormat
impl MediaFormat
Sourcepub fn from_raw(inner: *mut AMediaFormat) -> Self
pub fn from_raw(inner: *mut AMediaFormat) -> Self
Construct a MediaFormat from a raw pointer
Sourcepub fn set_string(&mut self, name: &str, value: &str) -> bool
pub fn set_string(&mut self, name: &str, value: &str) -> bool
Set a string value
Sourcepub fn get_string(&self, name: &str) -> Option<String>
pub fn get_string(&self, name: &str) -> Option<String>
Get a string value
Trait Implementations§
Source§impl Debug for MediaFormat
impl Debug for MediaFormat
Source§impl Drop for MediaFormat
impl Drop for MediaFormat
Source§impl ToString for MediaFormat
impl ToString for MediaFormat
impl Send for MediaFormat
impl Sync for MediaFormat
Auto Trait Implementations§
impl Freeze for MediaFormat
impl RefUnwindSafe for MediaFormat
impl Unpin for MediaFormat
impl UnwindSafe for MediaFormat
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