Skip to main content

Crate revelo_reader

Crate revelo_reader 

Source
Expand description

Input/reader registration layer for the revelo media-metadata library.

revelo-reader is responsible for populating the Reader field on the General stream of a revelo_core::FileAnalyze analysis context. The Reader field records the source type through which a file (or URL) was opened, mirroring the reader-registration step that MediaInfoLib performs before dispatching to format parsers.

§Public functions

FunctionReader value set
parse_file_reader"File" — ordinary filesystem path
parse_directory_reader"Directory" — directory source
parse_http_reader"HTTP" — HTTP/HTTPS URL
parse_mms_reader"MMS" — Microsoft Media Server URL

Each function accepts a mutable reference to a FileAnalyze context, prepares the General stream if it does not already exist, writes the appropriate Reader value, and returns true.

§Example

use revelo_core::FileAnalyze;
use revelo_reader::parse_file_reader;

let mut fa = FileAnalyze::new(&[]);
parse_file_reader(&mut fa);
// The General stream now has Reader = "File".

Functions§

parse_directory_reader
parse_file_reader
parse_http_reader
parse_mms_reader