Struct libspa::param::format::FormatProperties
source · pub struct FormatProperties(pub spa_format);
Tuple Fields§
§0: spa_format
Implementations§
source§impl FormatProperties
impl FormatProperties
sourcepub const MediaSubtype: Self = _
pub const MediaSubtype: Self = _
media subtype (Id enum spa_media_subtype)
sourcepub const AudioFormat: Self = _
pub const AudioFormat: Self = _
audio format, (Id enum spa_audio_format)
sourcepub const AudioFlags: Self = _
pub const AudioFlags: Self = _
optional flags (Int)
sourcepub const AudioChannels: Self = _
pub const AudioChannels: Self = _
number of audio channels (Int)
sourcepub const AudioPosition: Self = _
pub const AudioPosition: Self = _
channel positions (Id enum spa_audio_position)
sourcepub const AudioIec958Codec: Self = _
pub const AudioIec958Codec: Self = _
codec used (IEC958) (Id enum spa_audio_iec958_codec)
sourcepub const AudioBitorder: Self = _
pub const AudioBitorder: Self = _
bit order (Id enum spa_param_bitorder)
sourcepub const AudioInterleave: Self = _
pub const AudioInterleave: Self = _
Interleave bytes (Int)
sourcepub const VideoFormat: Self = _
pub const VideoFormat: Self = _
video format (Id enum spa_video_format)
sourcepub const VideoModifier: Self = _
pub const VideoModifier: Self = _
format modifier (Long), use only with DMA-BUF and omit for other buffer types
sourcepub const VideoFramerate: Self = _
pub const VideoFramerate: Self = _
frame rate (Fraction)
sourcepub const VideoMaxFramerate: Self = _
pub const VideoMaxFramerate: Self = _
maximum frame rate (Fraction)
sourcepub const VideoViews: Self = _
pub const VideoViews: Self = _
number of views (Int)
sourcepub const VideoInterlaceMode: Self = _
pub const VideoInterlaceMode: Self = _
(Id enum spa_video_interlace_mode)
sourcepub const VideoPixelAspectRatio: Self = _
pub const VideoPixelAspectRatio: Self = _
(Rectangle)
sourcepub const VideoMultiviewMode: Self = _
pub const VideoMultiviewMode: Self = _
(Id enum spa_video_multiview_mode)
sourcepub const VideoMultiviewFlags: Self = _
pub const VideoMultiviewFlags: Self = _
(Id enum spa_video_multiview_flags)
sourcepub const VideoChromaSite: Self = _
pub const VideoChromaSite: Self = _
/Id enum spa_video_chroma_site)
sourcepub const VideoColorRange: Self = _
pub const VideoColorRange: Self = _
/Id enum spa_video_color_range)
sourcepub const VideoColorMatrix: Self = _
pub const VideoColorMatrix: Self = _
/Id enum spa_video_color_matrix)
sourcepub const VideoTransferFunction: Self = _
pub const VideoTransferFunction: Self = _
/Id enum spa_video_transfer_function)
sourcepub const VideoColorPrimaries: Self = _
pub const VideoColorPrimaries: Self = _
/Id enum spa_video_color_primaries)
sourcepub const VideoProfile: Self = _
pub const VideoProfile: Self = _
(Int)
sourcepub const VideoLevel: Self = _
pub const VideoLevel: Self = _
(Int)
sourcepub const VideoH264StreamFormat: Self = _
pub const VideoH264StreamFormat: Self = _
(Id enum spa_h264_stream_format)
sourcepub const VideoH264Alignment: Self = _
pub const VideoH264Alignment: Self = _
(Id enum spa_h264_alignment)
pub fn is_audio(&self) -> bool
pub fn is_video(&self) -> bool
pub fn is_image(&self) -> bool
pub fn is_binary(&self) -> bool
pub fn is_stream(&self) -> bool
pub fn is_application(&self) -> bool
sourcepub fn from_raw(raw: spa_format) -> Self
pub fn from_raw(raw: spa_format) -> Self
Obtain a FormatProperties
from a raw spa_format
variant.
sourcepub fn as_raw(&self) -> spa_format
pub fn as_raw(&self) -> spa_format
Get the raw spa_sys::spa_format
representing this FormatProperties
.
Trait Implementations§
source§impl Clone for FormatProperties
impl Clone for FormatProperties
source§fn clone(&self) -> FormatProperties
fn clone(&self) -> FormatProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FormatProperties
impl Debug for FormatProperties
source§impl PartialEq for FormatProperties
impl PartialEq for FormatProperties
source§fn eq(&self, other: &FormatProperties) -> bool
fn eq(&self, other: &FormatProperties) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FormatProperties
impl PartialOrd for FormatProperties
source§fn partial_cmp(&self, other: &FormatProperties) -> Option<Ordering>
fn partial_cmp(&self, other: &FormatProperties) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more