#[non_exhaustive]pub enum VideoMultiviewFramePacking {
None,
Mono,
Left,
Right,
SideBySide,
SideBySideQuincunx,
ColumnInterleaved,
RowInterleaved,
TopBottom,
Checkerboard,
}
Expand description
VideoMultiviewFramePacking
represents the subset of VideoMultiviewMode
values that can be applied to any video frame without needing extra metadata.
It can be used by elements that provide a property to override the
multiview interpretation of a video stream when the video doesn’t contain
any markers.
This enum is used (for example) on playbin, to re-interpret a played
video stream as a stereoscopic video. The individual enum values are
equivalent to and have the same value as the matching VideoMultiviewMode
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
A special value indicating no frame packing info.
Mono
All frames are monoscopic.
Left
All frames represent a left-eye view.
Right
All frames represent a right-eye view.
SideBySide
Left and right eye views are provided in the left and right half of the frame respectively.
SideBySideQuincunx
Left and right eye views are provided in the left and right half of the frame, but have been sampled using quincunx method, with half-pixel offset between the 2 views.
ColumnInterleaved
Alternating vertical columns of pixels represent the left and right eye view respectively.
RowInterleaved
Alternating horizontal rows of pixels represent the left and right eye view respectively.
TopBottom
The top half of the frame contains the left eye, and the bottom half the right eye.
Checkerboard
Pixels are arranged with alternating pixels representing left and right eye views in a checkerboard fashion.
Trait Implementations§
source§impl Clone for VideoMultiviewFramePacking
impl Clone for VideoMultiviewFramePacking
source§fn clone(&self) -> VideoMultiviewFramePacking
fn clone(&self) -> VideoMultiviewFramePacking
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VideoMultiviewFramePacking
impl Debug for VideoMultiviewFramePacking
source§impl From<VideoMultiviewFramePacking> for Value
impl From<VideoMultiviewFramePacking> for Value
source§fn from(v: VideoMultiviewFramePacking) -> Self
fn from(v: VideoMultiviewFramePacking) -> Self
source§impl From<VideoMultiviewFramePacking> for VideoMultiviewMode
impl From<VideoMultiviewFramePacking> for VideoMultiviewMode
source§fn from(v: VideoMultiviewFramePacking) -> Self
fn from(v: VideoMultiviewFramePacking) -> Self
source§impl<'a> FromValue<'a> for VideoMultiviewFramePacking
impl<'a> FromValue<'a> for VideoMultiviewFramePacking
§type Checker = GenericValueTypeChecker<VideoMultiviewFramePacking>
type Checker = GenericValueTypeChecker<VideoMultiviewFramePacking>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl HasParamSpec for VideoMultiviewFramePacking
impl HasParamSpec for VideoMultiviewFramePacking
type ParamSpec = ParamSpecEnum
§type SetValue = VideoMultiviewFramePacking
type SetValue = VideoMultiviewFramePacking
type BuilderFn = fn(_: &str, _: VideoMultiviewFramePacking) -> ParamSpecEnumBuilder<'_, VideoMultiviewFramePacking>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for VideoMultiviewFramePacking
impl Hash for VideoMultiviewFramePacking
source§impl Ord for VideoMultiviewFramePacking
impl Ord for VideoMultiviewFramePacking
source§fn cmp(&self, other: &VideoMultiviewFramePacking) -> Ordering
fn cmp(&self, other: &VideoMultiviewFramePacking) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for VideoMultiviewFramePacking
impl PartialEq for VideoMultiviewFramePacking
source§fn eq(&self, other: &VideoMultiviewFramePacking) -> bool
fn eq(&self, other: &VideoMultiviewFramePacking) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VideoMultiviewFramePacking
impl PartialOrd for VideoMultiviewFramePacking
source§fn partial_cmp(&self, other: &VideoMultiviewFramePacking) -> Option<Ordering>
fn partial_cmp(&self, other: &VideoMultiviewFramePacking) -> Option<Ordering>
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 VideoMultiviewFramePacking
impl StaticType for VideoMultiviewFramePacking
source§fn static_type() -> Type
fn static_type() -> Type
Self
.source§impl ToValue for VideoMultiviewFramePacking
impl ToValue for VideoMultiviewFramePacking
source§impl ValueType for VideoMultiviewFramePacking
impl ValueType for VideoMultiviewFramePacking
§type Type = VideoMultiviewFramePacking
type Type = VideoMultiviewFramePacking
Type
from. Read moreimpl Copy for VideoMultiviewFramePacking
impl Eq for VideoMultiviewFramePacking
impl StructuralPartialEq for VideoMultiviewFramePacking
Auto Trait Implementations§
impl Freeze for VideoMultiviewFramePacking
impl RefUnwindSafe for VideoMultiviewFramePacking
impl Send for VideoMultiviewFramePacking
impl Sync for VideoMultiviewFramePacking
impl Unpin for VideoMultiviewFramePacking
impl UnwindSafe for VideoMultiviewFramePacking
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
.