2011-10-24 15:55:31 +00:00
|
|
|
|
namespace CUETools.Codecs.ALAC
|
|
|
|
|
|
{
|
|
|
|
|
|
unsafe class ALACSubframeInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
public ALACSubframe best;
|
|
|
|
|
|
public int* samples;
|
|
|
|
|
|
public uint done_fixed;
|
|
|
|
|
|
public LpcContext[] lpc_ctx;
|
2014-08-26 23:48:16 -04:00
|
|
|
|
public LpcSubframeInfo sf;
|
2011-10-24 15:55:31 +00:00
|
|
|
|
|
|
|
|
|
|
public ALACSubframeInfo()
|
|
|
|
|
|
{
|
|
|
|
|
|
best = new ALACSubframe();
|
2014-08-26 23:48:16 -04:00
|
|
|
|
sf = new LpcSubframeInfo();
|
|
|
|
|
|
lpc_ctx = new LpcContext[lpc.MAX_LPC_WINDOWS];
|
|
|
|
|
|
for (int i = 0; i < lpc.MAX_LPC_WINDOWS; i++)
|
2011-10-24 15:55:31 +00:00
|
|
|
|
lpc_ctx[i] = new LpcContext();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void Init(int* s, int* r)
|
|
|
|
|
|
{
|
|
|
|
|
|
samples = s;
|
|
|
|
|
|
best.residual = r;
|
|
|
|
|
|
best.size = AudioSamples.UINT32_MAX;
|
|
|
|
|
|
best.order = 0;
|
2014-08-26 23:48:16 -04:00
|
|
|
|
sf.Reset();
|
|
|
|
|
|
for (int iWindow = 0; iWindow < lpc.MAX_LPC_WINDOWS; iWindow++)
|
2011-10-24 15:55:31 +00:00
|
|
|
|
lpc_ctx[iWindow].Reset();
|
|
|
|
|
|
done_fixed = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|