CUETools.Flake: better use of new window functions

This commit is contained in:
Grigory Chudov
2014-12-08 22:18:34 -05:00
parent c671f200df
commit 6201101ccf
14 changed files with 679 additions and 707 deletions

View File

@@ -8,6 +8,7 @@ namespace CUETools.Codecs.FLAKE
{
best = new FlacSubframe();
sf = new LpcSubframeInfo();
best_fixed = new ulong[5];
lpc_ctx = new LpcContext[lpc.MAX_LPC_WINDOWS];
for (int i = 0; i < lpc.MAX_LPC_WINDOWS; i++)
lpc_ctx[i] = new LpcContext();
@@ -20,6 +21,8 @@ namespace CUETools.Codecs.FLAKE
samples = s;
obits = bps - w;
wbits = w;
for (int o = 0; o <= 4; o++)
best_fixed[o] = 0;
best.residual = r;
best.type = SubframeType.Verbatim;
best.size = AudioSamples.UINT32_MAX;
@@ -35,6 +38,7 @@ namespace CUETools.Codecs.FLAKE
public int wbits;
public int* samples;
public uint done_fixed;
public ulong[] best_fixed;
public LpcContext[] lpc_ctx;
public LpcSubframeInfo sf;
};