OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

RaviFrameCounts

pub struct RaviFrameCounts

How many frames a .ravi says it holds, field by field.

PIX Connect writes avih.dwTotalFrames for the first RIFF part only, and even in a one-part file it can be dozens of frames off, while dmlh.dwTotalFrames and strh.dwLength agree with the frames the file holds. RaviFrameCounts::declared_frames is the first of those two the file has, as RaviInfo::declared_frames.

#[non_exhaustive]: read the fields, do not build one.

RaviFrameCounts — fields

path: String

The path as given.

readable: bool

False when the file is not a .ravi or cannot be read; every count is then zero and source empty.

declared_frames: u32

The whole recording's frames.

source: String

Which field declared_frames is: "dmlh.dwTotalFrames", "strh.dwLength" or "avih.dwTotalFrames".

main_header_frames: u32

avih.dwTotalFrames, as written.

stream_header_frames: u32

strh.dwLength of the video stream, as written.

open_dml_frames: u32

dmlh.dwTotalFrames, as written; zero when has_open_dml is false.

has_open_dml: bool

Whether the file has an OpenDML header at all.

riff_parts: u32

RIFF parts: 1, plus one for every RIFF AVIX part PIX Connect continues a recording in once it passes about 1 GiB.