pub struct MediaFingerprint {
pub content_sha256: Option<String>,
pub byte_length: Option<u64>,
pub modified_ms: Option<i64>,
pub streams: Option<StreamTopology>,
pub duration_ticks: Option<i64>,
pub color: Option<ColorMetadata>,
}Expand description
Evidence of a source’s media, each part recorded only when it was known.
A matching content hash proves the same bytes. Without one, the other
parts can only show a difference. modified_ms narrows a search for
candidates and never decides whether a candidate is the same media.
Fields§
§content_sha256: Option<String>SHA-256 of the whole file, as 64 lowercase hexadecimal digits.
byte_length: Option<u64>The file’s length in bytes.
modified_ms: Option<i64>The file’s modification time, in milliseconds since the Unix epoch.
streams: Option<StreamTopology>The streams the file carries.
duration_ticks: Option<i64>Where the media ends on its own timeline, in ticks: its first presentation plus its length, the end of any source range that reads it. A transport stream that starts at 1.4 s and lasts 2 s ends at 3.4 s. Non-negative.
color: Option<ColorMetadata>The color the decoded pictures carry.
Implementations§
Source§impl MediaFingerprint
impl MediaFingerprint
Sourcepub fn malformed_part(&self) -> Option<&'static str>
pub fn malformed_part(&self) -> Option<&'static str>
The first recorded part that is not well formed, by its field name: a hash that is not 64 lowercase hexadecimal digits, a negative duration, a stream without size, channels or rate, or a color whose dynamic range contradicts its transfer.