Struct servo_media_player::video::VideoFrame
source · pub struct VideoFrame {
width: i32,
height: i32,
data: VideoFrameData,
_buffer: Arc<dyn Buffer>,
}
Fields§
§width: i32
§height: i32
§data: VideoFrameData
§_buffer: Arc<dyn Buffer>
Implementations§
source§impl VideoFrame
impl VideoFrame
pub fn new(width: i32, height: i32, buffer: Arc<dyn Buffer>) -> Result<Self, ()>
pub fn get_width(&self) -> i32
pub fn get_height(&self) -> i32
pub fn get_data(&self) -> Arc<Vec<u8>>
pub fn get_texture_id(&self) -> u32
pub fn is_gl_texture(&self) -> bool
pub fn is_external_oes(&self) -> bool
Trait Implementations§
source§impl Clone for VideoFrame
impl Clone for VideoFrame
source§fn clone(&self) -> VideoFrame
fn clone(&self) -> VideoFrame
Returns a copy 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 VideoFrame
impl !RefUnwindSafe for VideoFrame
impl Send for VideoFrame
impl Sync for VideoFrame
impl Unpin for VideoFrame
impl !UnwindSafe for VideoFrame
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