RaviFrameCounts
public sealed class RaviFrameCounts
How many frames a PIX Connect recording 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.DeclaredFrames is the first of those two the file has, as RaviInfo.DeclaredFrames. Returned by Ravi.InspectFrameCounts(…).
RaviFrameCounts: properties
public uint DeclaredFrames { get; }
The whole recording's frames.
public bool HasOpenDml { get; }
Whether the file has an OpenDML header at all.
public uint MainHeaderFrames { get; }
avih.dwTotalFrames, as written.
public uint OpenDmlFrames { get; }
dmlh.dwTotalFrames, as written; zero when RaviFrameCounts.HasOpenDml is false.
public string Path { get; }
The path as given.
public bool Readable { get; }
False when the file is not a .ravi or cannot be read; every count is then zero and RaviFrameCounts.Source empty.
public uint RiffParts { get; }
RIFF parts: 1, plus one for every RIFF AVIX part PIX Connect continues a recording in once it passes about 1 GiB.
public string Source { get; }
Which field RaviFrameCounts.DeclaredFrames is: "dmlh.dwTotalFrames", "strh.dwLength" or "avih.dwTotalFrames".
public uint StreamHeaderFrames { get; }
strh.dwLength of the video stream, as written.