Struct gstreamer_video::VideoInfo
source · pub struct VideoInfo(/* private fields */);
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 PartialEq for VideoInfo
impl PartialEq for VideoInfo
source§impl StaticType for VideoInfo
impl StaticType for VideoInfo
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl<'a> TryFrom<&'a VideoInfo> for VideoVBIEncoder
Available on crate feature v1_16
only.
impl<'a> TryFrom<&'a VideoInfo> for VideoVBIEncoder
Available on crate feature
v1_16
only.§type Error = VideoVBIError
type Error = VideoVBIError
The type returned in the event of a conversion error.
source§fn try_from(info: &'a VideoInfo) -> Result<VideoVBIEncoder, VideoVBIError>
fn try_from(info: &'a VideoInfo) -> Result<VideoVBIEncoder, VideoVBIError>
Performs the conversion.
source§impl<'a> TryFrom<&'a VideoInfo> for VideoVBIParser
Available on crate feature v1_16
only.
impl<'a> TryFrom<&'a VideoInfo> for VideoVBIParser
Available on crate feature
v1_16
only.§type Error = VideoVBIError
type Error = VideoVBIError
The type returned in the event of a conversion error.
source§fn try_from(info: &'a VideoInfo) -> Result<VideoVBIParser, VideoVBIError>
fn try_from(info: &'a VideoInfo) -> Result<VideoVBIParser, VideoVBIError>
Performs the conversion.
impl Eq for VideoInfo
impl Send for VideoInfo
impl Sync for VideoInfo
Auto Trait Implementations§
impl Freeze for VideoInfo
impl RefUnwindSafe for VideoInfo
impl Unpin for VideoInfo
impl UnwindSafe for VideoInfo
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> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.