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 known.
A matching content hash proves the same bytes; without one, the other parts can only show
a difference. modified_ms narrows a search and never decides identity.
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: first presentation plus length (a stream starting at 1.4 s and lasting 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 field name of the first malformed part: a bad hash, a negative duration, a stream without size, channels or rate, or a color whose dynamic range contradicts its transfer.