optris::sdk::rec::RaviFrameCounts
How many frames a .ravi says it holds, field by field.
A RAVI states its length three times, and PIX Connect does not keep them in step: avih.dwTotalFrames counts the first RIFF part only, and even in a one-part file it can be dozens of frames off, while the OpenDML total (dmlh.dwTotalFrames) and the video stream's length (strh.dwLength) agree with the frames the file holds. RaviInfo::declared_frames is the first of those two the file has; this says which, so a caller comparing it with RaviImportResult::frames_written knows what it compared against.
Public attributes
path
std::string path
The path as given.
readable
bool readable = false
False when the file is not a .ravi or cannot be read; every count is then zero and source empty.
declared_frames
uint32_t declared_frames = 0
The whole recording's frames, as RaviInfo::declared_frames.
source
std::string source
Which field declared_frames is: "dmlh.dwTotalFrames", "strh.dwLength" or "avih.dwTotalFrames".
main_header_frames
uint32_t main_header_frames = 0
avih.dwTotalFrames, as written.
stream_header_frames
uint32_t stream_header_frames = 0
strh.dwLength of the video stream, as written.
open_dml_frames
uint32_t open_dml_frames = 0
dmlh.dwTotalFrames, as written; zero when has_open_dml is false.
has_open_dml
bool has_open_dml = false
Whether the file has an OpenDML header at all.
riff_parts
uint32_t riff_parts = 0
RIFF parts: 1, plus one for every RIFF AVIX part PIX Connect continues a recording in once it passes about 1 GiB.