pub struct AR2VideoBufferT {
pub buff: Option<Vec<u8>>,
pub buf_planes: Option<Vec<Vec<u8>>>,
pub buf_plane_count: u32,
pub buff_luma: Option<Vec<u8>>,
pub fill_flag: bool,
pub time: AR2VideoTimestampT,
}Expand description
A structure which carries information about a video frame retrieved by the video library.
Fields§
§buff: Option<Vec<u8>>A pointer to the packed video data for this video frame. In Rust, we use a slice or Vec depending on ownership, usually represented as a raw slice or Vec.
buf_planes: Option<Vec<Vec<u8>>>For multi-planar video frames, arrays of planes.
buf_plane_count: u32Number of planes.
buff_luma: Option<Vec<u8>>Luminance-only version of the image.
fill_flag: boolSet to true when buff is valid.
time: AR2VideoTimestampTTime at which the buffer was filled.
Trait Implementations§
Source§impl Clone for AR2VideoBufferT
impl Clone for AR2VideoBufferT
Source§fn clone(&self) -> AR2VideoBufferT
fn clone(&self) -> AR2VideoBufferT
Returns a duplicate 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 moreSource§impl Debug for AR2VideoBufferT
impl Debug for AR2VideoBufferT
Source§impl Default for AR2VideoBufferT
impl Default for AR2VideoBufferT
Source§fn default() -> AR2VideoBufferT
fn default() -> AR2VideoBufferT
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AR2VideoBufferT
impl RefUnwindSafe for AR2VideoBufferT
impl Send for AR2VideoBufferT
impl Sync for AR2VideoBufferT
impl Unpin for AR2VideoBufferT
impl UnsafeUnpin for AR2VideoBufferT
impl UnwindSafe for AR2VideoBufferT
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