Struct gstreamer_video::VideoInfo
source · pub struct VideoInfo(_);
Implementations§
source§impl VideoInfo
impl VideoInfo
pub fn builder<'a>(
format: VideoFormat,
width: u32,
height: u32
) -> VideoInfoBuilder<'a>
pub fn is_valid(&self) -> bool
pub fn from_caps(caps: &CapsRef) -> Result<Self, BoolError>
pub fn to_caps(&self) -> Result<Caps, BoolError>
pub fn format(&self) -> VideoFormat
pub fn format_info(&self) -> VideoFormatInfo
pub fn name<'a>(&self) -> &'a str
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn field_height(&self) -> u32
Available on crate feature
v1_16
only.pub fn interlace_mode(&self) -> VideoInterlaceMode
pub fn flags(&self) -> VideoFlags
pub fn size(&self) -> usize
pub fn views(&self) -> u32
pub fn chroma_site(&self) -> VideoChromaSite
pub fn colorimetry(&self) -> VideoColorimetry
pub fn comp_depth(&self, component: u8) -> u32
pub fn comp_height(&self, component: u8) -> u32
pub fn comp_width(&self, component: u8) -> u32
pub fn comp_offset(&self, component: u8) -> usize
pub fn comp_plane(&self, component: u8) -> u32
pub fn comp_poffset(&self, component: u8) -> u32
pub fn comp_pstride(&self, component: u8) -> i32
pub fn comp_stride(&self, component: u8) -> i32
pub fn par(&self) -> Fraction
pub fn fps(&self) -> Fraction
pub fn field_rate(&self) -> Fraction
Available on crate feature
v1_16
only.pub fn offset(&self) -> &[usize]
pub fn stride(&self) -> &[i32]
pub fn multiview_mode(&self) -> VideoMultiviewMode
pub fn multiview_flags(&self) -> VideoMultiviewFlags
pub fn field_order(&self) -> VideoFieldOrder
pub fn has_alpha(&self) -> bool
pub fn is_gray(&self) -> bool
pub fn is_rgb(&self) -> bool
pub fn is_yuv(&self) -> bool
pub fn is_interlaced(&self) -> bool
pub fn n_planes(&self) -> u32
pub fn n_components(&self) -> u32
pub fn convert<U: SpecificFormattedValueFullRange>(
&self,
src_val: impl FormattedValue
) -> Option<U>
pub fn convert_generic(
&self,
src_val: impl FormattedValue,
dest_fmt: Format
) -> Option<GenericFormattedValue>
pub fn align(&mut self, align: &mut VideoAlignment) -> Result<(), BoolError>
pub fn align_full(
&mut self,
align: &mut VideoAlignment
) -> Result<[usize; 4], BoolError>
Available on crate feature
v1_18
only.pub fn range_offsets(&self, range: VideoColorRange) -> ([i32; 4], [i32; 4])
Trait Implementations§
source§impl StaticType for VideoInfo
impl StaticType for VideoInfo
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for VideoInfo
impl Send for VideoInfo
impl Sync for VideoInfo
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.