Searched refs:bufferLength (Results 1 - 25 of 50) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/core/platform/audio/
H A DReverbInputBuffer.cpp45 size_t bufferLength = m_buffer.size(); local
46 bool isCopySafe = m_writeIndex + numberOfFrames <= bufferLength;
54 ASSERT(m_writeIndex <= bufferLength);
56 if (m_writeIndex >= bufferLength)
62 size_t bufferLength = m_buffer.size(); local
63 bool isPointerGood = readIndex && *readIndex >= 0 && *readIndex + numberOfFrames <= bufferLength;
76 *readIndex = (*readIndex + numberOfFrames) % bufferLength;
H A DReverbAccumulationBuffer.cpp50 size_t bufferLength = m_buffer.size(); local
51 bool isCopySafe = m_readIndex <= bufferLength && numberOfFrames <= bufferLength;
57 size_t framesAvailable = bufferLength - m_readIndex;
71 m_readIndex = (m_readIndex + numberOfFrames) % bufferLength;
83 size_t bufferLength = m_buffer.size(); local
85 size_t writeIndex = (*readIndex + delayFrames) % bufferLength;
88 *readIndex = (*readIndex + numberOfFrames) % bufferLength;
90 size_t framesAvailable = bufferLength - writeIndex;
96 bool isSafe = writeIndex <= bufferLength
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
H A DDelayDSPKernel.cpp71 size_t bufferLength = bufferLengthForDelay(maxDelayTime, sampleRate);
72 ASSERT(bufferLength);
73 if (!bufferLength)
76 m_buffer.allocate(bufferLength);
91 size_t bufferLength = m_buffer.size(); local
94 ASSERT(bufferLength);
95 if (!bufferLength)
137 double readPosition = m_writeIndex + bufferLength - desiredDelayFrames;
138 if (readPosition >= bufferLength)
139 readPosition -= bufferLength;
[all...]
H A DConvolverNode.cpp125 size_t bufferLength = buffer->length(); local
128 bool isBufferGood = numberOfChannels > 0 && numberOfChannels <= 4 && bufferLength;
135 RefPtr<AudioBus> bufferBus = AudioBus::create(numberOfChannels, bufferLength, false);
137 bufferBus->setChannelMemory(i, buffer->getChannelData(i)->data(), bufferLength);
H A DAudioBufferSourceNode.cpp203 size_t bufferLength = buffer()->length(); local
208 unsigned endFrame = m_isGrain ? AudioUtilities::timeToSampleFrame(m_grainOffset + m_grainDuration, bufferSampleRate) : bufferLength;
217 if (endFrame > bufferLength)
218 endFrame = bufferLength;
287 if (readIndex2 >= bufferLength) {
297 if (readIndex >= bufferLength || readIndex2 >= bufferLength)
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/
H A DStringSerializer.java80 int bufferLength = stringBytes.length;
83 if (bufferLength <= Byte.MAX_VALUE) {
85 buffer.put((byte)bufferLength);
86 } else if (bufferLength <= Short.MAX_VALUE) {
88 buffer.putShort((short)bufferLength);
91 buffer.putInt(bufferLength);
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/skia/
H A DGlyphPageTreeNodeSkia.cpp42 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
44 if (SkUTF16_IsHighSurrogate(buffer[bufferLength-1])) {
63 unsigned count = paint.textToGlyphs(buffer, bufferLength * 2, glyphs);
/external/chromium_org/third_party/WebKit/Source/testing/plugin/Tests/
H A DPluginScriptableObjectOverridesAllProperties.cpp61 int bufferLength = strlen(propertyString) + strlen(message) + 1; local
62 char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength));
63 snprintf(resultBuffer, bufferLength, "%s%s", message, propertyString);
H A DSlowNPPNew.cpp60 int bufferLength = strlen(propertyString) + strlen(message) + 1; local
61 char* resultBuffer = static_cast<char*>(pluginTest()->NPN_MemAlloc(bufferLength));
62 snprintf(resultBuffer, bufferLength, "%s%s", message, propertyString);
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/mac/
H A DGlyphPageTreeNodeMac.cpp44 static bool shouldUseCoreText(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
50 for (unsigned i = 0; i < bufferLength; ++i) {
59 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
63 Vector<CGGlyph, 512> glyphs(bufferLength);
64 if (!shouldUseCoreText(buffer, bufferLength, fontData)) {
65 CGFontGetGlyphsForUnichars(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength);
75 && CTFontGetGlyphsForCharacters(fontData->platformData().ctFont(), buffer, glyphs.data(), bufferLength)) {
78 unsigned glyphStep = bufferLength / length;
89 RetainPtr<CFStringRef> string(AdoptCF, CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, buffer, bufferLength, kCFAllocatorNull));
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DDecimalNumber.cpp102 unsigned DecimalNumber::toStringDecimal(LChar* buffer, unsigned bufferLength) const
104 ASSERT_UNUSED(bufferLength, bufferLength >= bufferLengthForStringDecimal());
158 unsigned DecimalNumber::toStringExponential(LChar* buffer, unsigned bufferLength) const
160 ASSERT_UNUSED(bufferLength, bufferLength >= bufferLengthForStringExponential());
H A DStringExtras.h96 inline char* strnstr(const char* buffer, const char* target, size_t bufferLength) argument
101 for (const char* start = buffer; *start && start + targetLength <= buffer + bufferLength; start++) {
H A DDecimalNumber.h89 unsigned toStringDecimal(LChar* buffer, unsigned bufferLength) const;
90 unsigned toStringExponential(LChar* buffer, unsigned bufferLength) const;
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DPipedInputStreamTest.java414 int bufferLength = mpis.bufferLength();
415 assertEquals(100, bufferLength);
439 int bufferLength = mpis.bufferLength();
440 assertEquals(100, bufferLength);
468 public int bufferLength() { method in class:PipedInputStreamTest.MockPipedInputStream
/external/chromium_org/third_party/icu/source/common/
H A Dunames.c236 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) { \
237 if((bufferLength)>0) { \
239 --(bufferLength); \
261 char *buffer, uint16_t bufferLength) {
300 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
315 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
332 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
339 if(bufferLength>0) {
469 static uint16_t getExtName(uint32_t code, char *buffer, uint16_t bufferLength) { argument
476 WRITE_CHAR(buffer, bufferLength, lengt
259 expandName(UCharNames *names, const uint8_t *name, uint16_t nameLength, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument
588 expandGroupName(UCharNames *names, const uint16_t *group, uint16_t lineNumber, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument
599 getName(UCharNames *names, uint32_t code, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument
782 writeFactorSuffix(const uint16_t *factors, uint16_t count, const char *s, uint32_t code, uint16_t indexes[8], const char *elementBases[8], const char *elements[8], char *buffer, uint16_t bufferLength) argument
861 getAlgName(AlgorithmicRange *range, uint32_t code, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument
1455 u_charName(UChar32 code, UCharNameChoice nameChoice, char *buffer, int32_t bufferLength, UErrorCode *pErrorCode) argument
[all...]
H A Dloclikely.cpp34 * @param bufferLength The length of the output buffer
40 int32_t bufferLength,
61 else if (resLen >= bufferLength) {
87 * @param bufferLength The length of the output buffer. This is an input/ouput parameter.
94 int32_t* bufferLength) {
96 if (*bufferLength > 0) {
97 buffer[*bufferLength] = '_';
98 ++(*bufferLength);
102 &buffer[*bufferLength],
106 *bufferLength
38 findLikelySubtags(const char* localeID, char* buffer, int32_t bufferLength, UErrorCode* err) argument
90 appendTag( const char* tag, int32_t tagLength, char* buffer, int32_t* bufferLength) argument
[all...]
/external/icu4c/common/
H A Dunames.cpp238 #define WRITE_CHAR(buffer, bufferLength, bufferPos, c) { \
239 if((bufferLength)>0) { \
241 --(bufferLength); \
263 char *buffer, uint16_t bufferLength) {
302 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
317 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
334 WRITE_CHAR(buffer, bufferLength, bufferPos, c);
341 if(bufferLength>0) {
471 static uint16_t getExtName(uint32_t code, char *buffer, uint16_t bufferLength) { argument
478 WRITE_CHAR(buffer, bufferLength, lengt
261 expandName(UCharNames *names, const uint8_t *name, uint16_t nameLength, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument
590 expandGroupName(UCharNames *names, const uint16_t *group, uint16_t lineNumber, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument
601 getName(UCharNames *names, uint32_t code, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument
796 writeFactorSuffix(const uint16_t *factors, uint16_t count, const char *s, uint32_t code, uint16_t indexes[8], const char *elementBases[8], const char *elements[8], char *buffer, uint16_t bufferLength) argument
875 getAlgName(AlgorithmicRange *range, uint32_t code, UCharNameChoice nameChoice, char *buffer, uint16_t bufferLength) argument
1469 u_charName(UChar32 code, UCharNameChoice nameChoice, char *buffer, int32_t bufferLength, UErrorCode *pErrorCode) argument
[all...]
H A Dloclikely.cpp34 * @param bufferLength The length of the output buffer
40 int32_t bufferLength,
61 else if (resLen >= bufferLength) {
87 * @param bufferLength The length of the output buffer. This is an input/ouput parameter.
94 int32_t* bufferLength) {
96 if (*bufferLength > 0) {
97 buffer[*bufferLength] = '_';
98 ++(*bufferLength);
102 &buffer[*bufferLength],
106 *bufferLength
38 findLikelySubtags(const char* localeID, char* buffer, int32_t bufferLength, UErrorCode* err) argument
90 appendTag( const char* tag, int32_t tagLength, char* buffer, int32_t* bufferLength) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
H A DV8NPUtils.cpp114 int bufferLength = str->Utf8Length() + 1; local
115 if (bufferLength <= kStackBufferSize) {
119 // WriteUtf8 is guaranteed to generate a null-terminated string because bufferLength is constructed to be one greater
122 str->WriteUtf8(stackBuffer, bufferLength);
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/chromium/
H A DGlyphPageTreeNodeChromiumWin.cpp239 unsigned bufferLength, const SimpleFontData* fontData)
244 if (bufferLength == length)
247 if (bufferLength == 2 * length) {
238 fill(unsigned offset, unsigned length, UChar* characterBuffer, unsigned bufferLength, const SimpleFontData* fontData) argument
/external/chromium_org/third_party/WebKit/Source/core/platform/image-decoders/
H A DImageDecoder.cpp35 static unsigned copyFromSharedBuffer(char* buffer, unsigned bufferLength, const SharedBuffer& sharedBuffer, unsigned offset) argument
40 unsigned bytesToCopy = std::min(bufferLength - bytesExtracted, moreDataLength);
43 if (bytesExtracted == bufferLength)
/external/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGFontData.h42 virtual bool fillSVGGlyphPage(GlyphPage*, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData*) const;
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/
H A DGlyphPageTreeNode.cpp122 static bool fill(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
126 return additionalFontData->fillSVGGlyphPage(pageToFill, offset, length, buffer, bufferLength, fontData);
128 bool hasGlyphs = pageToFill->fill(offset, length, buffer, bufferLength, fontData);
156 unsigned bufferLength; local
161 bufferLength = GlyphPage::size;
196 bufferLength = GlyphPage::size * 2;
212 haveGlyphs = fill(m_page.get(), 0, GlyphPage::size, buffer, bufferLength, static_cast<const SimpleFontData*>(fontData));
/external/chromium_org/third_party/WebKit/Source/core/platform/text/
H A DLocaleICU.cpp83 int32_t bufferLength = unum_getSymbol(m_numberFormat, symbol, 0, 0, &status); local
87 StringBuffer<UChar> buffer(bufferLength);
89 unum_getSymbol(m_numberFormat, symbol, buffer.characters(), bufferLength, &status);
98 int32_t bufferLength = unum_getTextAttribute(m_numberFormat, tag, 0, 0, &status); local
102 StringBuffer<UChar> buffer(bufferLength);
104 unum_getTextAttribute(m_numberFormat, tag, buffer.characters(), bufferLength, &status);
/external/aac/libSBRenc/src/
H A Dton_corr.h118 INT bufferLength; /*!< Length of the r and i buffers. */ member in struct:__anon268

Completed in 421 milliseconds

12