Struct AVSphericalMapping
#[repr(C)]pub struct AVSphericalMapping {
pub projection: u32,
pub yaw: i32,
pub pitch: i32,
pub roll: i32,
pub bound_left: u32,
pub bound_top: u32,
pub bound_right: u32,
pub bound_bottom: u32,
pub padding: u32,
}
Expand description
This structure describes how to handle spherical videos, outlining information about projection, initial layout, and any other view modifier.
@note The struct must be allocated with av_spherical_alloc() and its size is not a part of the public ABI.
Fields§
§projection: u32
Projection type.
yaw: i32
< Rotation around the up vector [-180, 180].
pitch: i32
< Rotation around the right vector [-90, 90].
roll: i32
< Rotation around the forward vector [-180, 180].
bound_left: u32
< Distance from the left edge
bound_top: u32
< Distance from the top edge
bound_right: u32
< Distance from the right edge
bound_bottom: u32
< Distance from the bottom edge
padding: u32
Number of pixels to pad from the edge of each cube face.
@note This value is valid for only for the cubemap projection type (@ref AV_SPHERICAL_CUBEMAP), and should be ignored in all other cases.
Trait Implementations§
§impl Clone for AVSphericalMapping
impl Clone for AVSphericalMapping
§fn clone(&self) -> AVSphericalMapping
fn clone(&self) -> AVSphericalMapping
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 more§impl Debug for AVSphericalMapping
impl Debug for AVSphericalMapping
impl Copy for AVSphericalMapping
Auto Trait Implementations§
impl Freeze for AVSphericalMapping
impl RefUnwindSafe for AVSphericalMapping
impl Send for AVSphericalMapping
impl Sync for AVSphericalMapping
impl Unpin for AVSphericalMapping
impl UnwindSafe for AVSphericalMapping
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