pub struct Video { /* private fields */ }Expand description
This represents an entire CaVp8 File decoded in memory.
Implementations§
Source§impl Video
impl Video
Sourcepub fn format(&self) -> &SupportedFormats
pub fn format(&self) -> &SupportedFormats
Format of the video file
Sourcepub fn codec_four_cc(&self) -> &String
pub fn codec_four_cc(&self) -> &String
Codec FourCC (usually ‘VP80’).
Sourcepub fn num_frames(&self) -> &u32
pub fn num_frames(&self) -> &u32
Number of frames on the video.
Sourcepub fn extra_data(&self) -> &Option<(u8, u32, u32)>
pub fn extra_data(&self) -> &Option<(u8, u32, u32)>
Extra unknown data at the end of some headers.
Sourcepub fn frame_table(&self) -> &Vec<Frame>
pub fn frame_table(&self) -> &Vec<Frame>
Frame Table of the video.
Sourcepub fn frame_data(&self) -> &Vec<u8> ⓘ
pub fn frame_data(&self) -> &Vec<u8> ⓘ
Raw frame data of the video.
Source§impl Video
impl Video
Sourcepub fn set_format(&mut self, val: SupportedFormats) -> &mut Self
pub fn set_format(&mut self, val: SupportedFormats) -> &mut Self
Format of the video file
Sourcepub fn set_version(&mut self, val: u16) -> &mut Self
pub fn set_version(&mut self, val: u16) -> &mut Self
Version number.
Sourcepub fn set_codec_four_cc(&mut self, val: String) -> &mut Self
pub fn set_codec_four_cc(&mut self, val: String) -> &mut Self
Codec FourCC (usually ‘VP80’).
Sourcepub fn set_height(&mut self, val: u16) -> &mut Self
pub fn set_height(&mut self, val: u16) -> &mut Self
Height of the video in pixels.
Sourcepub fn set_num_frames(&mut self, val: u32) -> &mut Self
pub fn set_num_frames(&mut self, val: u32) -> &mut Self
Number of frames on the video.
Sourcepub fn set_framerate(&mut self, val: f32) -> &mut Self
pub fn set_framerate(&mut self, val: f32) -> &mut Self
Framerate of the video.
Sourcepub fn set_extra_data(&mut self, val: Option<(u8, u32, u32)>) -> &mut Self
pub fn set_extra_data(&mut self, val: Option<(u8, u32, u32)>) -> &mut Self
Extra unknown data at the end of some headers.
Sourcepub fn set_frame_table(&mut self, val: Vec<Frame>) -> &mut Self
pub fn set_frame_table(&mut self, val: Vec<Frame>) -> &mut Self
Frame Table of the video.
Sourcepub fn set_frame_data(&mut self, val: Vec<u8>) -> &mut Self
pub fn set_frame_data(&mut self, val: Vec<u8>) -> &mut Self
Raw frame data of the video.
Trait Implementations§
Source§impl Decodeable for Video
impl Decodeable for Video
Source§impl<'de> Deserialize<'de> for Video
impl<'de> Deserialize<'de> for Video
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encodeable for Video
impl Encodeable for Video
Source§fn encode<W: WriteBytes>(
&mut self,
buffer: &mut W,
_extra_data: &Option<EncodeableExtraData<'_>>,
) -> Result<()>
fn encode<W: WriteBytes>( &mut self, buffer: &mut W, _extra_data: &Option<EncodeableExtraData<'_>>, ) -> Result<()>
Encodes the implementing type into binary data. Read more
impl StructuralPartialEq for Video
Auto Trait Implementations§
impl Freeze for Video
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnsafeUnpin for Video
impl UnwindSafe for Video
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.