Struct libspa::param::video::VideoInfoRaw
source · pub struct VideoInfoRaw(/* private fields */);
Expand description
Rust representation of spa_sys::spa_video_info_raw
.
Implementations§
source§impl VideoInfoRaw
impl VideoInfoRaw
pub fn new() -> Self
pub fn set_format(&mut self, format: VideoFormat)
pub fn format(self) -> VideoFormat
pub fn set_flags(&mut self, flags: VideoFlags)
pub fn flags(self) -> VideoFlags
pub fn set_modifier(&mut self, modifier: u64)
pub fn modifier(self) -> u64
pub fn set_size(&mut self, size: Rectangle)
pub fn size(self) -> Rectangle
pub fn set_framerate(&mut self, framerate: Fraction)
pub fn framerate(self) -> Fraction
pub fn set_max_framerate(&mut self, max_framerate: Fraction)
pub fn max_framerate(self) -> Fraction
pub fn set_views(&mut self, views: u32)
pub fn views(self) -> u32
pub fn set_interlace_mode(&mut self, interlace_mode: VideoInterlaceMode)
pub fn interlace_mode(self) -> VideoInterlaceMode
pub fn set_pixel_aspect_ratio(&mut self, pixel_aspect_ratio: Fraction)
pub fn pixel_aspect_ratio(self) -> Fraction
pub fn set_multiview_mode(&mut self, multiview_mode: i32)
pub fn multiview_mode(self) -> i32
pub fn set_multiview_flags(&mut self, multiview_flags: u32)
pub fn multiview_flags(self) -> u32
pub fn set_chroma_site(&mut self, chroma_site: u32)
pub fn chroma_site(self) -> u32
pub fn set_color_range(&mut self, color_range: u32)
pub fn color_range(self) -> u32
pub fn set_color_matrix(&mut self, color_matrix: u32)
pub fn color_matrix(self) -> u32
pub fn set_transfer_function(&mut self, transfer_function: u32)
pub fn transfer_function(self) -> u32
pub fn set_color_primaries(&mut self, color_primaries: u32)
pub fn color_primaries(self) -> u32
sourcepub fn parse(&mut self, format: &Pod) -> Result<SpaSuccess, Error>
pub fn parse(&mut self, format: &Pod) -> Result<SpaSuccess, Error>
helper function to parse format properties type
sourcepub fn from_raw(raw: spa_video_info_raw) -> Self
pub fn from_raw(raw: spa_video_info_raw) -> Self
Obtain a VideoInfoRaw
from a raw spa_video_info_raw
variant.
sourcepub fn as_raw(&self) -> spa_video_info_raw
pub fn as_raw(&self) -> spa_video_info_raw
Get the raw spa_sys::spa_video_info_raw
representing this VideoInfoRaw
.
Trait Implementations§
source§impl Clone for VideoInfoRaw
impl Clone for VideoInfoRaw
source§fn clone(&self) -> VideoInfoRaw
fn clone(&self) -> VideoInfoRaw
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 moresource§impl Debug for VideoInfoRaw
impl Debug for VideoInfoRaw
source§impl Default for VideoInfoRaw
impl Default for VideoInfoRaw
source§impl PartialEq for VideoInfoRaw
impl PartialEq for VideoInfoRaw
source§fn eq(&self, other: &VideoInfoRaw) -> bool
fn eq(&self, other: &VideoInfoRaw) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VideoInfoRaw
impl Eq for VideoInfoRaw
impl StructuralPartialEq for VideoInfoRaw
Auto Trait Implementations§
impl RefUnwindSafe for VideoInfoRaw
impl Send for VideoInfoRaw
impl Sync for VideoInfoRaw
impl Unpin for VideoInfoRaw
impl UnwindSafe for VideoInfoRaw
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