Enum gstreamer_gl::GLFormat
source · #[non_exhaustive]pub enum GLFormat {
Show 19 variants
Luminance,
Alpha,
LuminanceAlpha,
Red,
R8,
Rg,
Rg8,
Rgb,
Rgb8,
Rgb565,
Rgb16,
Rgba,
Rgba8,
Rgba16,
DepthComponent16,
Depth24Stencil8,
Rgb10A2,
R16,
Rg16,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Luminance
Single component replicated across R, G, and B textures components
Alpha
Single component stored in the A texture component
LuminanceAlpha
Red
Single component stored in the R texture component
R8
Single 8-bit component stored in the R texture component
Rg
Two components stored in the R and G texture components
Rg8
Two 8-bit components stored in the R and G texture components
Rgb
Three components stored in the R, G, and B texture components
Rgb8
Three 8-bit components stored in the R, G, and B texture components
Rgb565
Three components of bit depth 5, 6 and 5 stored in the R, G, and B texture components respectively.
Rgb16
Three 16-bit components stored in the R, G, and B texture components
Rgba
Four components stored in the R, G, B, and A texture components respectively.
Rgba8
Four 8-bit components stored in the R, G, B, and A texture components respectively.
Rgba16
Four 16-bit components stored in the R, G, B, and A texture components respectively.
DepthComponent16
A single 16-bit component for depth information.
Depth24Stencil8
A 24-bit component for depth information and a 8-bit component for stencil informat.
Rgb10A2
R16
Single 16-bit component stored in the R texture component
Rg16
Two 16-bit components stored in the R and G texture components
Implementations§
source§impl GLFormat
impl GLFormat
pub fn from_video_info( context: &impl IsA<GLContext>, vinfo: &VideoInfo, plane: u32, ) -> GLFormat
pub fn is_supported(context: &impl IsA<GLContext>, format: GLFormat) -> bool
pub fn n_components(self) -> u32
pub fn type_from_sized_gl_format(self) -> (GLFormat, u32)
pub fn type_n_bytes(format: u32, type_: u32) -> u32
Trait Implementations§
source§impl<'a> FromValue<'a> for GLFormat
impl<'a> FromValue<'a> for GLFormat
§type Checker = GenericValueTypeChecker<GLFormat>
type Checker = GenericValueTypeChecker<GLFormat>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl HasParamSpec for GLFormat
impl HasParamSpec for GLFormat
source§impl Ord for GLFormat
impl Ord for GLFormat
source§impl PartialEq for GLFormat
impl PartialEq for GLFormat
source§impl PartialOrd for GLFormat
impl PartialOrd for GLFormat
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for GLFormat
impl StaticType for GLFormat
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for GLFormat
impl Eq for GLFormat
impl StructuralPartialEq for GLFormat
Auto Trait Implementations§
impl Freeze for GLFormat
impl RefUnwindSafe for GLFormat
impl Send for GLFormat
impl Sync for GLFormat
impl Unpin for GLFormat
impl UnwindSafe for GLFormat
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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>
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>
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 moresource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.