Searched refs:halfSize (Results 1 - 21 of 21) 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 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 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 DFFTFrame.cpp185 int halfSize = fftSize() / 2; local
190 for (int i = 0; i < halfSize; i++) {
227 int halfSize = fftSize() / 2; local
237 for (int i = 1; i < halfSize; i++) {
H A DSincResampler.cpp107 int halfSize = n / 2; local
116 double s = sincScaleFactor * piDouble * (i - halfSize - subsampleOffset);
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DPeriodicWave.cpp156 unsigned halfSize = fftSize / 2; local
159 numberOfComponents = std::min(numberOfComponents, halfSize);
175 for (i = numberOfComponents; i < halfSize; ++i) {
182 vsmul(imagP, 1, &minusOne, imagP, 1, halfSize);
189 for (i = numberOfPartials + 1; i < halfSize; ++i) {
194 if (numberOfPartials < halfSize)
225 unsigned halfSize = fftSize / 2; local
227 AudioFloatArray real(halfSize);
228 AudioFloatArray imag(halfSize);
236 for (unsigned n = 1; n < halfSize;
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/audio/ffmpeg/
H A DFFTFrameFFMPEG.cpp158 unsigned halfSize = fftSize() / 2; local
162 VectorMath::zvmul(realP1, imagP1, realP2, imagP2, realP1, imagP1, halfSize);
174 VectorMath::vsmul(realP1, 1, &scale, realP1, 1, halfSize);
175 VectorMath::vsmul(imagP1, 1, &scale, imagP1, 1, halfSize);
/external/chromium_org/third_party/WebKit/Source/platform/audio/ipp/
H A DFFTFrameIPP.cpp114 unsigned halfSize = fftSize() / 2; local
118 VectorMath::zvmul(realP1, imagP1, realP2, imagP2, realP1, imagP1, halfSize);
130 VectorMath::vsmul(realP1, 1, &scale, realP1, 1, halfSize);
131 VectorMath::vsmul(imagP1, 1, &scale, imagP1, 1, halfSize);
/external/chromium_org/third_party/WebKit/Source/platform/audio/mac/
H A DFFTFrameMac.cpp111 unsigned halfSize = m_FFTSize / 2; local
116 VectorMath::zvmul(realP1, imagP1, realP2, imagP2, realP1, imagP1, halfSize);
126 VectorMath::vsmul(realP1, 1, &scale, realP1, 1, halfSize);
127 VectorMath::vsmul(imagP1, 1, &scale, imagP1, 1, halfSize);
/external/chromium_org/third_party/WebKit/Source/platform/audio/chromium/
H A DFFTFrameOpenMAXDLAndroid.cpp116 unsigned halfSize = fftSize() / 2; local
120 VectorMath::zvmul(realP1, imagP1, realP2, imagP2, realP1, imagP1, halfSize);
/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));
H A Dnv50_ir_build_util.h84 Instruction *mkSplit(Value *half[2], uint8_t halfSize, Value *);
/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));
H A Dnv50_ir_build_util.h84 Instruction *mkSplit(Value *half[2], uint8_t halfSize, Value *);
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DPath.cpp363 FloatSize halfSize(rect.width() / 2, rect.height() / 2);
376 if (radius.width() > halfSize.width())
377 radius.setWidth(halfSize.width());
379 if (radius.height() > halfSize.height())
380 radius.setHeight(halfSize.height());
/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...]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
H A DTerrainQuad.java808 int halfSize = size >> 1;
819 Vector3f origin1 = new Vector3f(-halfSize * stepScale.x, 0, -halfSize
842 Vector3f origin2 = new Vector3f(-halfSize * stepScale.x, 0, 0);
864 Vector3f origin3 = new Vector3f(0, 0, -halfSize * stepScale.z);
997 int halfSize = totalSize / 2;
998 int x = Math.round((xz.x / getWorldScale().x) + halfSize);
999 int z = Math.round((xz.y / getWorldScale().z) + halfSize);
1200 int halfSize = totalSize / 2;
1206 int x = Math.round((xz.get(i).x / getWorldScale().x) + halfSize);
[all...]

Completed in 385 milliseconds