Struct gstreamer_video::VideoInfo [−][src]
pub struct VideoInfo(_);
Information describing image properties. This information can be filled
in from GstCaps with VideoInfo::from_caps. The information is also used
to store the specific video info when mapping a video frame with
VideoFrame::map.
Use the provided macros to access the info in this structure.
Methods
impl VideoInfo[src]
impl VideoInfopub fn new<'a>(
format: VideoFormat,
width: u32,
height: u32
) -> VideoInfoBuilder<'a>[src]
pub fn new<'a>(
format: VideoFormat,
width: u32,
height: u32
) -> VideoInfoBuilder<'a>Allocate a new VideoInfo that is also initialized with
VideoInfo::init.
Returns
a new VideoInfo. free with VideoInfo::free.
pub fn from_caps(caps: &CapsRef) -> Option<Self>[src]
pub fn from_caps(caps: &CapsRef) -> Option<Self>pub fn to_caps(&self) -> Option<Caps>[src]
pub fn to_caps(&self) -> Option<Caps>pub fn format(&self) -> VideoFormat[src]
pub fn format(&self) -> VideoFormatpub fn format_info(&self) -> VideoFormatInfo[src]
pub fn format_info(&self) -> VideoFormatInfopub fn width(&self) -> u32[src]
pub fn width(&self) -> u32pub fn height(&self) -> u32[src]
pub fn height(&self) -> u32pub fn interlace_mode(&self) -> VideoInterlaceMode[src]
pub fn interlace_mode(&self) -> VideoInterlaceModepub fn flags(&self) -> VideoFlags[src]
pub fn flags(&self) -> VideoFlagspub fn size(&self) -> usize[src]
pub fn size(&self) -> usizepub fn views(&self) -> u32[src]
pub fn views(&self) -> u32pub fn chroma_site(&self) -> VideoChromaSite[src]
pub fn chroma_site(&self) -> VideoChromaSitepub fn colorimetry(&self) -> VideoColorimetry[src]
pub fn colorimetry(&self) -> VideoColorimetrypub fn par(&self) -> Fraction[src]
pub fn par(&self) -> Fractionpub fn fps(&self) -> Fraction[src]
pub fn fps(&self) -> Fractionpub fn offset(&self) -> &[usize][src]
pub fn offset(&self) -> &[usize]pub fn stride(&self) -> &[i32][src]
pub fn stride(&self) -> &[i32]pub fn multiview_mode(&self) -> VideoMultiviewMode[src]
pub fn multiview_mode(&self) -> VideoMultiviewModepub fn multiview_flags(&self) -> VideoMultiviewFlags[src]
pub fn multiview_flags(&self) -> VideoMultiviewFlagspub fn field_order(&self) -> VideoFieldOrder[src]
pub fn field_order(&self) -> VideoFieldOrderpub fn has_alpha(&self) -> bool[src]
pub fn has_alpha(&self) -> boolpub fn is_gray(&self) -> bool[src]
pub fn is_gray(&self) -> boolpub fn is_rgb(&self) -> bool[src]
pub fn is_rgb(&self) -> boolpub fn is_yuv(&self) -> bool[src]
pub fn is_yuv(&self) -> boolpub fn is_interlaced(&self) -> bool[src]
pub fn is_interlaced(&self) -> boolpub fn n_planes(&self) -> u32[src]
pub fn n_planes(&self) -> u32pub fn n_components(&self) -> u32[src]
pub fn n_components(&self) -> u32pub fn convert<V: Into<GenericFormattedValue>, U: SpecificFormattedValue>(
&self,
src_val: V
) -> Option<U>[src]
pub fn convert<V: Into<GenericFormattedValue>, U: SpecificFormattedValue>(
&self,
src_val: V
) -> Option<U>pub fn convert_generic<V: Into<GenericFormattedValue>>(
&self,
src_val: V,
dest_fmt: Format
) -> Option<GenericFormattedValue>[src]
pub fn convert_generic<V: Into<GenericFormattedValue>>(
&self,
src_val: V,
dest_fmt: Format
) -> Option<GenericFormattedValue>Trait Implementations
impl Debug for VideoInfo[src]
impl Debug for VideoInfofn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for VideoInfo[src]
impl Clone for VideoInfofn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for VideoInfo[src]
impl PartialEq for VideoInfofn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for VideoInfo[src]
impl Eq for VideoInfoimpl Send for VideoInfo[src]
impl Send for VideoInfoimpl StaticType for VideoInfo[src]
impl StaticType for VideoInfofn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.