Skip to content

Commit

Permalink
Fix decomb 5.24 decimate metrics collection and previous commit typos
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed May 25, 2022
1 parent 9b41d84 commit 99ff41f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions yatta/compiled/changes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
8-134
The plugin types in filterlist.txt are now Normal, Stdcall and Import
Now built for 64 bit
Now uses minhook for OutputDebugString() hooking in ymc
Fixed compatibility with modern Avisynth versions, recent Avisynth+ now required
Migrated to Delphi 10.4

Expand Down
1 change: 1 addition & 0 deletions yatta/ymc7/FunctionHooking.pas
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ procedure HookDbgOut(AOutput: TStrings);
MH_EnableHook(Target);
MH_CreateHookApiEx('kernel32', 'OutputDebugStringW', @MyOutputDebugStringW, @g_origOutputDebugStringW, Target);
MH_EnableHook(Target);
Output := AOutput;
end;

end.
6 changes: 1 addition & 5 deletions yatta/ymc7/YMCInternalPlugins.pas
Original file line number Diff line number Diff line change
Expand Up @@ -626,11 +626,7 @@ procedure TDecimate.ProcessLog(Log: TStrings; Outfile: TStrings; var Header: TYM

if (FN > -1) and (StrToIntDef(GetToken(Line, 2), -1) = -1) then
begin
DMetrics[fn + 0] := Round(100 * StrToFloat(GetToken(Line, 2)));
DMetrics[fn + 1] := Round(100 * StrToFloat(GetToken(Line, 3)));
DMetrics[fn + 2] := Round(100 * StrToFloat(GetToken(Line, 4)));
DMetrics[fn + 3] := Round(100 * StrToFloat(GetToken(Line, 5)));
DMetrics[fn + 4] := Round(100 * StrToFloat(GetToken(Line, 6)));
DMetrics[fn] := Round(100 * StrToFloat(GetToken(Line, 2)));
end;
end;
end;
Expand Down

0 comments on commit 99ff41f

Please sign in to comment.