Searched defs:halfSize (Results 1 - 13 of 13) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/audio/
H A DFFTConvolver.cpp52 size_t halfSize = fftSize() / 2; local
54 // framesToProcess must be an exact multiple of halfSize,
55 // or halfSize is a multiple of framesToProcess when halfSize > framesToProcess.
56 bool isGood = !(halfSize % framesToProcess && framesToProcess % halfSize);
61 size_t numberOfDivisions = halfSize <= framesToProcess ? (framesToProcess / halfSize) : 1;
62 size_t divisionSize = numberOfDivisions == 1 ? framesToProcess : halfSize;
89 if (m_readWriteIndex == halfSize) {
[all...]
H A DDownSampler.cpp60 int halfSize = n / 2; local
66 // right in the middle at halfSize, which is 0.5 and we'll handle specially during processing
70 double s = sincScaleFactor * piDouble * (i - halfSize);
104 size_t halfSize = DefaultKernelSize / 2;
107 bool isInputBufferGood = m_inputBuffer.size() == sourceFramesToProcess * 2 && halfSize <= sourceFramesToProcess;
126 // This amounts to a delay-line of length halfSize (at the source sample-rate),
131 destP[i] += 0.5 * *((inputP - halfSize) + i * 2);
H A DReverbConvolverStage.cpp73 size_t halfSize = fftSize / 2; local
75 ASSERT(totalDelay >= halfSize);
76 if (totalDelay >= halfSize)
77 totalDelay -= halfSize;
82 int maxPreDelayLength = std::min(halfSize, totalDelay);
H A DUpSampler.cpp60 int halfSize = n / 2; local
65 double s = piDouble * (i - halfSize - subsampleOffset);
94 size_t halfSize = m_kernel.size() / 2;
97 bool isInputBufferGood = m_inputBuffer.size() == sourceFramesToProcess * 2 && halfSize <= sourceFramesToProcess;
107 destP[i * 2] = *((inputP - halfSize) + i);
H A DFFTFrame.cpp186 int halfSize = fftSize() / 2; local
191 for (int i = 0; i < halfSize; i++) {
228 int halfSize = fftSize() / 2; local
238 for (int i = 1; i < halfSize; i++) {
262 unsigned halfSize = fftSize() / 2; local
266 VectorMath::zvmul(realP1, imagP1, realP2, imagP2, realP1, imagP1, halfSize);
H A DSincResampler.cpp106 int halfSize = n / 2; local
115 double s = sincScaleFactor * piDouble * (i - halfSize - subsampleOffset);
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DPeriodicWave.cpp155 unsigned halfSize = fftSize / 2; local
158 numberOfComponents = std::min(numberOfComponents, halfSize);
174 for (i = numberOfComponents; i < halfSize; ++i) {
181 vsmul(imagP, 1, &minusOne, imagP, 1, halfSize);
188 for (i = numberOfPartials + 1; i < halfSize; ++i) {
193 if (numberOfPartials < halfSize)
224 unsigned halfSize = fftSize / 2; local
226 AudioFloatArray real(halfSize);
227 AudioFloatArray imag(halfSize);
235 for (unsigned n = 1; n < halfSize;
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv50/codegen/
H A Dnv50_ir_build_util.cpp282 BuildUtil::mkSplit(Value *h[2], uint8_t halfSize, Value *val) argument
286 const DataType fTy = typeOfSize(halfSize * 2);
289 val = mkMov(getSSA(halfSize * 2), val, fTy)->getDef(0);
294 h[0]->reg.size = halfSize;
295 h[1]->reg.size = halfSize;
296 h[1]->reg.data.offset += halfSize;
298 h[0] = getSSA(halfSize, val->reg.file);
299 h[1] = getSSA(halfSize, val->reg.file);
H A Dnv50_ir_lowering_nv50.cpp56 unsigned int halfSize = typeSizeof(hTy); local
69 i[0] = bld->mkSplit(a, halfSize, mul->getSrc(0));
70 i[1] = bld->mkSplit(b, halfSize, mul->getSrc(1));
74 i[7] = bld->mkOp2(OP_SHL, fTy, t[2], t[1], bld->mkImm(halfSize * 8));
79 Value *imm = bld->loadImm(NULL, 1 << (halfSize * 8));
85 i[8] = bld->mkOp2(OP_SHR, fTy, r[0], t[1], bld->mkImm(halfSize * 8));
/external/mesa3d/src/gallium/drivers/nv50/codegen/
H A Dnv50_ir_build_util.cpp282 BuildUtil::mkSplit(Value *h[2], uint8_t halfSize, Value *val) argument
286 const DataType fTy = typeOfSize(halfSize * 2);
289 val = mkMov(getSSA(halfSize * 2), val, fTy)->getDef(0);
294 h[0]->reg.size = halfSize;
295 h[1]->reg.size = halfSize;
296 h[1]->reg.data.offset += halfSize;
298 h[0] = getSSA(halfSize, val->reg.file);
299 h[1] = getSSA(halfSize, val->reg.file);
H A Dnv50_ir_lowering_nv50.cpp56 unsigned int halfSize = typeSizeof(hTy); local
69 i[0] = bld->mkSplit(a, halfSize, mul->getSrc(0));
70 i[1] = bld->mkSplit(b, halfSize, mul->getSrc(1));
74 i[7] = bld->mkOp2(OP_SHL, fTy, t[2], t[1], bld->mkImm(halfSize * 8));
79 Value *imm = bld->loadImm(NULL, 1 << (halfSize * 8));
85 i[8] = bld->mkOp2(OP_SHR, fTy, r[0], t[1], bld->mkImm(halfSize * 8));
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/
H A Dsp_setup.c1204 const float halfSize = 0.5F * size; local
1275 if (halfSize <= 0.5 && !round) {
1287 const int ixmin = block((int) (x - halfSize));
1288 const int ixmax = block((int) (x + halfSize));
1289 const int iymin = block((int) (y - halfSize));
1290 const int iymax = block((int) (y + halfSize));
1291 const float rmin = halfSize - 0.7071F; /* 0.7071 = sqrt(2)/2 */
1292 const float rmax = halfSize + 0.7071F;
1350 const int xmin = (int) (x + 0.75 - halfSize);
1351 const int ymin = (int) (y + 0.25 - halfSize);
[all...]
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_setup.c1204 const float halfSize = 0.5F * size; local
1275 if (halfSize <= 0.5 && !round) {
1287 const int ixmin = block((int) (x - halfSize));
1288 const int ixmax = block((int) (x + halfSize));
1289 const int iymin = block((int) (y - halfSize));
1290 const int iymax = block((int) (y + halfSize));
1291 const float rmin = halfSize - 0.7071F; /* 0.7071 = sqrt(2)/2 */
1292 const float rmax = halfSize + 0.7071F;
1350 const int xmin = (int) (x + 0.75 - halfSize);
1351 const int ymin = (int) (y + 0.25 - halfSize);
[all...]

Completed in 1664 milliseconds