pub struct DecodedVideoFrame { /* private fields */ }Expand description
Decoded video frame ordered by presentation timestamp (pts_us) with color/HDR metadata and GPU or pooled CPU backing.
Implementations§
Source§impl DecodedVideoFrame
Convenience accessors for inspecting DecodedVideoFrame GPU handles or CPU pixel buffers.
impl DecodedVideoFrame
Convenience accessors for inspecting DecodedVideoFrame GPU handles or CPU pixel buffers.
Sourcepub fn gpu_surface(&self) -> Option<VideoGpuSurfaceHandle>
pub fn gpu_surface(&self) -> Option<VideoGpuSurfaceHandle>
Sourcepub fn cpu_rgba_pixels(&self) -> Option<&[u8]>
pub fn cpu_rgba_pixels(&self) -> Option<&[u8]>
Sourcepub fn to_image_buffer(&self) -> Option<ImageBuffer>
pub fn to_image_buffer(&self) -> Option<ImageBuffer>
Source§impl DecodedVideoFrame
impl DecodedVideoFrame
pub fn get_sample_index(&self) -> usize
pub fn get_mut_sample_index(&mut self) -> &mut usize
pub fn set_sample_index(&mut self, val: usize) -> &mut Self
pub fn get_generation(&self) -> u64
pub fn get_mut_generation(&mut self) -> &mut u64
pub fn set_generation(&mut self, val: u64) -> &mut Self
pub fn get_dts_us(&self) -> i64
pub fn get_mut_dts_us(&mut self) -> &mut i64
pub fn set_dts_us(&mut self, val: i64) -> &mut Self
pub fn get_pts_us(&self) -> i64
pub fn get_mut_pts_us(&mut self) -> &mut i64
pub fn set_pts_us(&mut self, val: i64) -> &mut Self
pub fn get_duration_us(&self) -> u64
pub fn get_mut_duration_us(&mut self) -> &mut u64
pub fn set_duration_us(&mut self, val: u64) -> &mut Self
pub fn get_width(&self) -> u32
pub fn get_mut_width(&mut self) -> &mut u32
pub fn set_width(&mut self, val: u32) -> &mut Self
pub fn get_height(&self) -> u32
pub fn get_mut_height(&mut self) -> &mut u32
pub fn set_height(&mut self, val: u32) -> &mut Self
pub fn get_color_info(&self) -> VideoColorInfo
pub fn get_mut_color_info(&mut self) -> &mut VideoColorInfo
pub fn set_color_info(&mut self, val: VideoColorInfo) -> &mut Self
pub fn get_backing(&self) -> &VideoFrameBacking
pub fn get_mut_backing(&mut self) -> &mut VideoFrameBacking
pub fn set_backing(&mut self, val: VideoFrameBacking) -> &mut Self
Trait Implementations§
Source§impl Clone for DecodedVideoFrame
impl Clone for DecodedVideoFrame
Source§impl Debug for DecodedVideoFrame
impl Debug for DecodedVideoFrame
Source§impl PartialEq for DecodedVideoFrame
impl PartialEq for DecodedVideoFrame
impl StructuralPartialEq for DecodedVideoFrame
Auto Trait Implementations§
impl Forget for DecodedVideoFrame
impl Freeze for DecodedVideoFrame
impl Move for DecodedVideoFrame
impl RefUnwindSafe for DecodedVideoFrame
impl Send for DecodedVideoFramewhere
RawVecInner: Send,
impl Sync for DecodedVideoFramewhere
RawVecInner: Sync,
impl Unpin for DecodedVideoFrame
impl UnsafeUnpin for DecodedVideoFrame
impl UnwindSafe for DecodedVideoFramewhere
RawVecInner: UnwindSafe,
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