Intel OpenCL: 24-bit/multichannel support

This commit is contained in:
chudov
2010-12-09 15:51:01 +00:00
parent 6585ea2001
commit 59d5bd13de
2 changed files with 71 additions and 37 deletions

View File

@@ -88,7 +88,7 @@ namespace CUETools.Codecs.FLACCL
public OpenCLDeviceType DeviceType { get; set; }
int cpu_threads = 0;
[DefaultValue(1)]
[DefaultValue(0)]
[SRDescription(typeof(Properties.Resources), "DescriptionCPUThreads")]
public int CPUThreads
{
@@ -2582,7 +2582,7 @@ namespace CUETools.Codecs.FLACCL
int MAX_ORDER = this.writer.eparams.max_prediction_order;
int MAX_FRAMES = this.writer.framesPerTask;
int MAX_CHANNELSIZE = MAX_FRAMES * writer.eparams.block_size;
int MAX_CHANNELSIZE = MAX_FRAMES * ((writer.eparams.block_size + 3) & ~3);
residualTasksLen = sizeof(FLACCLSubframeTask) * 32 * channelsCount * MAX_FRAMES;
bestResidualTasksLen = sizeof(FLACCLSubframeTask) * channels * MAX_FRAMES;
int samplesBufferLen = writer.PCM.BlockAlign * MAX_CHANNELSIZE * channelsCount;