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 VideoInfo
pub 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) -> VideoFormat
pub fn format_info(&self) -> VideoFormatInfo
[src]
pub fn format_info(&self) -> VideoFormatInfo
pub fn width(&self) -> u32
[src]
pub fn width(&self) -> u32
pub fn height(&self) -> u32
[src]
pub fn height(&self) -> u32
pub fn interlace_mode(&self) -> VideoInterlaceMode
[src]
pub fn interlace_mode(&self) -> VideoInterlaceMode
pub fn flags(&self) -> VideoFlags
[src]
pub fn flags(&self) -> VideoFlags
pub fn size(&self) -> usize
[src]
pub fn size(&self) -> usize
pub fn views(&self) -> u32
[src]
pub fn views(&self) -> u32
pub fn chroma_site(&self) -> VideoChromaSite
[src]
pub fn chroma_site(&self) -> VideoChromaSite
pub fn colorimetry(&self) -> VideoColorimetry
[src]
pub fn colorimetry(&self) -> VideoColorimetry
pub fn par(&self) -> Fraction
[src]
pub fn par(&self) -> Fraction
pub fn fps(&self) -> Fraction
[src]
pub fn fps(&self) -> Fraction
pub 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) -> VideoMultiviewMode
pub fn multiview_flags(&self) -> VideoMultiviewFlags
[src]
pub fn multiview_flags(&self) -> VideoMultiviewFlags
pub fn field_order(&self) -> VideoFieldOrder
[src]
pub fn field_order(&self) -> VideoFieldOrder
pub fn has_alpha(&self) -> bool
[src]
pub fn has_alpha(&self) -> bool
pub fn is_gray(&self) -> bool
[src]
pub fn is_gray(&self) -> bool
pub fn is_rgb(&self) -> bool
[src]
pub fn is_rgb(&self) -> bool
pub fn is_yuv(&self) -> bool
[src]
pub fn is_yuv(&self) -> bool
pub fn is_interlaced(&self) -> bool
[src]
pub fn is_interlaced(&self) -> bool
pub fn n_planes(&self) -> u32
[src]
pub fn n_planes(&self) -> u32
pub fn n_components(&self) -> u32
[src]
pub fn n_components(&self) -> u32
pub 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 VideoInfo
fn 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 VideoInfo
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns 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 VideoInfo
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for VideoInfo
[src]
impl Eq for VideoInfo
impl Send for VideoInfo
[src]
impl Send for VideoInfo
impl StaticType for VideoInfo
[src]
impl StaticType for VideoInfo
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.