Struct gstreamer_video::VideoFormatInfo
source · pub struct VideoFormatInfo(&'static GstVideoFormatInfo);
Tuple Fields§
§0: &'static GstVideoFormatInfo
Implementations§
source§impl VideoFormatInfo
impl VideoFormatInfo
pub unsafe fn from_ptr(format_info: *const GstVideoFormatInfo) -> Self
pub fn from_format(format: VideoFormat) -> Self
pub fn format(&self) -> VideoFormat
pub fn name<'a>(&self) -> &'a GStr
pub fn description<'a>(&self) -> &'a GStr
pub fn flags(&self) -> VideoFormatFlags
pub fn bits(&self) -> u32
pub fn n_components(&self) -> u32
pub fn shift(&self) -> &[u32]
pub fn depth(&self) -> &[u32]
pub fn pixel_stride(&self) -> &[i32]
pub fn n_planes(&self) -> u32
pub fn plane(&self) -> &[u32]
pub fn poffset(&self) -> &[u32]
pub fn w_sub(&self) -> &[u32]
pub fn h_sub(&self) -> &[u32]
pub fn tile_mode(&self) -> VideoTileMode
pub fn tile_ws(&self) -> u32
pub fn tile_hs(&self) -> u32
pub fn unpack_format(&self) -> VideoFormat
pub fn pack_lines(&self) -> i32
pub fn has_alpha(&self) -> bool
pub fn has_palette(&self) -> bool
pub fn is_complex(&self) -> bool
pub fn is_gray(&self) -> bool
pub fn is_le(&self) -> bool
pub fn is_rgb(&self) -> bool
pub fn is_tiled(&self) -> bool
pub fn is_yuv(&self) -> bool
pub fn scale_width(&self, component: u8, width: u32) -> u32
pub fn scale_height(&self, component: u8, height: u32) -> u32
pub fn unpack( &self, flags: VideoPackFlags, dest: &mut [u8], src: &[&[u8]], stride: &[i32], x: i32, y: i32, width: i32, )
pub fn pack( &self, flags: VideoPackFlags, src: &[u8], src_stride: i32, dest: &mut [&mut [u8]], dest_stride: &[i32], chroma_site: VideoChromaSite, y: i32, width: i32, )
pub fn range_offsets(&self, range: VideoColorRange) -> ([i32; 4], [i32; 4])
Trait Implementations§
source§impl Clone for VideoFormatInfo
impl Clone for VideoFormatInfo
source§fn clone(&self) -> VideoFormatInfo
fn clone(&self) -> VideoFormatInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VideoFormatInfo
impl Debug for VideoFormatInfo
source§impl Display for VideoFormatInfo
impl Display for VideoFormatInfo
source§impl From<VideoFormat> for VideoFormatInfo
impl From<VideoFormat> for VideoFormatInfo
source§fn from(f: VideoFormat) -> Self
fn from(f: VideoFormat) -> Self
Converts to this type from the input type.
source§impl FromStr for VideoFormatInfo
impl FromStr for VideoFormatInfo
source§impl Ord for VideoFormatInfo
impl Ord for VideoFormatInfo
source§impl PartialEq for VideoFormatInfo
impl PartialEq for VideoFormatInfo
source§impl PartialOrd for VideoFormatInfo
impl PartialOrd for VideoFormatInfo
impl Copy for VideoFormatInfo
impl Eq for VideoFormatInfo
impl Send for VideoFormatInfo
impl Sync for VideoFormatInfo
Auto Trait Implementations§
impl Freeze for VideoFormatInfo
impl RefUnwindSafe for VideoFormatInfo
impl Unpin for VideoFormatInfo
impl UnwindSafe for VideoFormatInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more