pub struct VideoOrientationExtension {
pub direction: CameraDirection,
pub flip: bool,
pub rotation: VideoRotation,
}
Expand description
Coordination of Video Orientation in RTP streams.
Coordination of Video Orientation consists in signaling of the current orientation of the image captured on the sender side to the receiver for appropriate rendering and displaying.
C = Camera: indicates the direction of the camera used for this video stream. It can be used by the MTSI client in receiver to e.g. display the received video differently depending on the source camera.
0: Front-facing camera, facing the user. If camera direction is unknown by the sending MTSI client in the terminal then this is the default value used. 1: Back-facing camera, facing away from the user.
F = Flip: indicates a horizontal (left-right flip) mirror operation on the video as sent on the link.
0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID | len=0 |0 0 0 0 C F R R| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields§
§direction: CameraDirection
§flip: bool
§rotation: VideoRotation
Trait Implementations§
source§impl Clone for VideoOrientationExtension
impl Clone for VideoOrientationExtension
source§fn clone(&self) -> VideoOrientationExtension
fn clone(&self) -> VideoOrientationExtension
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VideoOrientationExtension
impl Debug for VideoOrientationExtension
source§impl Default for VideoOrientationExtension
impl Default for VideoOrientationExtension
source§fn default() -> VideoOrientationExtension
fn default() -> VideoOrientationExtension
source§impl<'de> Deserialize<'de> for VideoOrientationExtension
impl<'de> Deserialize<'de> for VideoOrientationExtension
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Marshal for VideoOrientationExtension
impl Marshal for VideoOrientationExtension
source§impl MarshalSize for VideoOrientationExtension
impl MarshalSize for VideoOrientationExtension
fn marshal_size(&self) -> usize
source§impl PartialEq for VideoOrientationExtension
impl PartialEq for VideoOrientationExtension
source§fn eq(&self, other: &VideoOrientationExtension) -> bool
fn eq(&self, other: &VideoOrientationExtension) -> bool
self
and other
values to be equal, and is used
by ==
.