updates time scale handling

This commit is contained in:
eyck committed 2023-03-04 12:33:22 +01:00
1 parent bf38ccd6db
commit b391d19303
6 files changed
+53 -24

No files matched your search

@@ -37,7 +37,7 @@ class FstFileParser {
System.out.println(version);
long endTime = FstLibrary.fstReaderGetEndTime(fst);
byte timeScale = FstLibrary.fstReaderGetTimescale(fst);
builder.setMaxTime(endTime, timeScale);
builder.setMaxTime(endTime, -timeScale);
FstLibrary.fstReaderIterateHierRewind(fst);
Pointer p = FstLibrary.fstReaderIterateHier(fst);
while(p!=null && !p.equals(Pointer.NULL)) {
@@ -77,7 +77,7 @@ class FstFileParser {
return false;
}
public void getValueChanges(final int id, final int width, int timeScale, final EventList values) {
public void getValueChanges(final int id, final int width, long timeScale, final EventList values) {
FstLibrary.fstReaderClrFacProcessMaskAll(fst);
FstLibrary.fstReaderSetFacProcessMask(fst, id);
FstLibrary.iterateValueChanges(fst, new ValueChangeCallback() {