pub struct H264Metadata {
pub version: String,
pub writing_app: String,
pub creation_time: DateTime<FixedOffset>,
pub camera_name: Option<String>,
pub gamma: Option<f32>,
}Expand description
Metadata to embed in H.264 streams.
Fields§
§version: StringVersion of this structure
Should be equal to H264_METADATA_VERSION. This field must always be serialized first.
writing_app: StringApplication name that created the stream
creation_time: DateTime<FixedOffset>Stream creation timestamp
camera_name: Option<String>Optional camera name
gamma: Option<f32>Optional gamma correction value
Implementations§
Source§impl H264Metadata
impl H264Metadata
pub fn new(writing_app: &str, creation_time: DateTime<FixedOffset>) -> Self
Trait Implementations§
Source§impl Clone for H264Metadata
impl Clone for H264Metadata
Source§fn clone(&self) -> H264Metadata
fn clone(&self) -> H264Metadata
Returns a duplicate 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 moreSource§impl Debug for H264Metadata
impl Debug for H264Metadata
Source§impl<'de> Deserialize<'de> for H264Metadata
impl<'de> Deserialize<'de> for H264Metadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for H264Metadata
impl PartialEq for H264Metadata
Source§impl Serialize for H264Metadata
impl Serialize for H264Metadata
impl StructuralPartialEq for H264Metadata
Auto Trait Implementations§
impl Freeze for H264Metadata
impl RefUnwindSafe for H264Metadata
impl Send for H264Metadata
impl Sync for H264Metadata
impl Unpin for H264Metadata
impl UnsafeUnpin for H264Metadata
impl UnwindSafe for H264Metadata
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