2018-03-25 17:24:27 -04:00
|
|
|
|
namespace CUETools.Codecs.Flake
|
2011-10-24 11:50:45 +00:00
|
|
|
|
{
|
|
|
|
|
|
unsafe public class RiceContext
|
|
|
|
|
|
{
|
|
|
|
|
|
public RiceContext()
|
|
|
|
|
|
{
|
2018-03-11 17:07:48 -04:00
|
|
|
|
rparams = new int[FlakeConstants.MAX_PARTITIONS];
|
|
|
|
|
|
esc_bps = new int[FlakeConstants.MAX_PARTITIONS];
|
2011-10-24 11:50:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// partition order
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int porder;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// coding method: rice parameters use 4 bits for coding_method 0 and 5 bits for coding_method 1
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int coding_method;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Rice parameters
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int[] rparams;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// bps if using escape code
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int[] esc_bps;
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|