pub struct MediaProfile {
pub token: String,
pub name: String,
pub video_source_token: String,
pub width: u32,
pub height: u32,
pub encoding: String,
pub framerate: u32,
pub bitrate: u32,
}Expand description
A media profile as advertised by the ONVIF Media Service.
Implementations override crate::traits::MediaService::profiles to return
their actual profiles. The default returns a single 1920×1080 H264 profile.
Fields§
§token: StringProfile token referenced by GetStreamUri, GetSnapshotUri, and PTZ operations.
name: StringHuman-readable profile name.
video_source_token: StringSource token for the VideoSourceConfiguration element.
width: u32Frame width in pixels.
height: u32Frame height in pixels.
encoding: StringEncoder codec, e.g. "H264", "H265", "JPEG".
framerate: u32Target frame rate in frames per second.
bitrate: u32Target bitrate in kbps.
Trait Implementations§
Source§impl Clone for MediaProfile
impl Clone for MediaProfile
Source§fn clone(&self) -> MediaProfile
fn clone(&self) -> MediaProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MediaProfile
impl RefUnwindSafe for MediaProfile
impl Send for MediaProfile
impl Sync for MediaProfile
impl Unpin for MediaProfile
impl UnsafeUnpin for MediaProfile
impl UnwindSafe for MediaProfile
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