Struct libspa_sys::spa_video_info_raw
source · #[repr(C)]pub struct spa_video_info_raw {Show 16 fields
pub format: spa_video_format,
pub flags: u32,
pub modifier: u64,
pub size: spa_rectangle,
pub framerate: spa_fraction,
pub max_framerate: spa_fraction,
pub views: u32,
pub interlace_mode: spa_video_interlace_mode,
pub pixel_aspect_ratio: spa_fraction,
pub multiview_mode: spa_video_multiview_mode,
pub multiview_flags: spa_video_multiview_flags,
pub chroma_site: spa_video_chroma_site,
pub color_range: spa_video_color_range,
pub color_matrix: spa_video_color_matrix,
pub transfer_function: spa_video_transfer_function,
pub color_primaries: spa_video_color_primaries,
}
Fields§
§format: spa_video_format
< the format
flags: u32
< extra video flags
modifier: u64
< format modifier only used with DMA-BUF
size: spa_rectangle
< the frame size of the video
framerate: spa_fraction
< the framerate of the video, 0/1 means variable rate
max_framerate: spa_fraction
< the maximum framerate of the video. This is only valid when \ref framerate is 0/1
views: u32
< the number of views in this video
interlace_mode: spa_video_interlace_mode
< the interlace mode
pixel_aspect_ratio: spa_fraction
< the pixel aspect ratio
multiview_mode: spa_video_multiview_mode
< multiview mode
multiview_flags: spa_video_multiview_flags
< multiview flags
chroma_site: spa_video_chroma_site
< the chroma siting
color_range: spa_video_color_range
< the color range. This is the valid range for the samples. It is used to convert the samples to Y’PbPr values.
color_matrix: spa_video_color_matrix
< the color matrix. Used to convert between Y’PbPr and non-linear RGB (R’G’B’)
transfer_function: spa_video_transfer_function
< the transfer function. used to convert between R’G’B’ and RGB
color_primaries: spa_video_color_primaries
< color primaries. used to convert between R’G’B’ and CIE XYZ
Trait Implementations§
source§impl Clone for spa_video_info_raw
impl Clone for spa_video_info_raw
source§fn clone(&self) -> spa_video_info_raw
fn clone(&self) -> spa_video_info_raw
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 spa_video_info_raw
impl Debug for spa_video_info_raw
source§impl PartialEq for spa_video_info_raw
impl PartialEq for spa_video_info_raw
source§fn eq(&self, other: &spa_video_info_raw) -> bool
fn eq(&self, other: &spa_video_info_raw) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_video_info_raw
impl Eq for spa_video_info_raw
impl StructuralPartialEq for spa_video_info_raw
Auto Trait Implementations§
impl RefUnwindSafe for spa_video_info_raw
impl Send for spa_video_info_raw
impl Sync for spa_video_info_raw
impl Unpin for spa_video_info_raw
impl UnwindSafe for spa_video_info_raw
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