pub struct VideoFrameBuffer { /* private fields */ }Implementations§
Source§impl VideoFrameBuffer
impl VideoFrameBuffer
pub fn buffer_type(&self) -> VideoFrameBufferType
pub fn width(&self) -> u32
pub fn height(&self) -> u32
Sourcepub unsafe fn to_i420(&self) -> UniquePtr<I420Buffer>
pub unsafe fn to_i420(&self) -> UniquePtr<I420Buffer>
§SAFETY
If the buffer type is I420, the buffer must be cloned before
Sourcepub unsafe fn get_i420(self: Pin<&mut Self>) -> UniquePtr<I420Buffer>
pub unsafe fn get_i420(self: Pin<&mut Self>) -> UniquePtr<I420Buffer>
§SAFETY
The functions require ownership
pub unsafe fn get_i420a(self: Pin<&mut Self>) -> UniquePtr<I420ABuffer>
pub unsafe fn get_i422(self: Pin<&mut Self>) -> UniquePtr<I422Buffer>
pub unsafe fn get_i444(self: Pin<&mut Self>) -> UniquePtr<I444Buffer>
pub unsafe fn get_i010(self: Pin<&mut Self>) -> UniquePtr<I010Buffer>
pub unsafe fn get_nv12(self: Pin<&mut Self>) -> UniquePtr<NV12Buffer>
Trait Implementations§
Source§impl ExternType for VideoFrameBuffer
impl ExternType for VideoFrameBuffer
impl Send for VideoFrameBuffer
impl Sync for VideoFrameBuffer
impl UniquePtrTarget for VideoFrameBuffer
Auto Trait Implementations§
impl !Freeze for VideoFrameBuffer
impl RefUnwindSafe for VideoFrameBuffer
impl !Unpin for VideoFrameBuffer
impl UnwindSafe for VideoFrameBuffer
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