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