Home
last modified time | relevance | path

Searched refs:outputBuffer (Results 1 – 25 of 38) sorted by relevance

12

/external/sonic/
DSonic.java19 private short outputBuffer[]; field in Sonic
187 outputBuffer = new short[maxRequired*numChannels]; in allocateStreamBuffers()
246 outputBuffer = resize(outputBuffer, outputBufferSize); in enlargeOutputBufferIfNeeded()
339 move(outputBuffer, numOutputSamples, samples, position, numSamples); in copyToOutput()
374 samples[xSample++] = (outputBuffer[xSample])/32767.0f; in readFloatFromStream()
376 move(outputBuffer, 0, outputBuffer, numSamples, remainingSamples); in readFloatFromStream()
397 move(samples, 0, outputBuffer, 0, numSamples); in readShortFromStream()
398 move(outputBuffer, 0, outputBuffer, numSamples, remainingSamples); in readShortFromStream()
420 samples[xSample] = (byte)((outputBuffer[xSample] >> 8) + 128); in readUnsignedByteFromStream()
422 move(outputBuffer, 0, outputBuffer, numSamples, remainingSamples); in readUnsignedByteFromStream()
[all …]
Dsonic.c23 short *outputBuffer; member
187 if(stream->outputBuffer != NULL) { in freeStreamBuffers()
188 free(stream->outputBuffer); in freeStreamBuffers()
223 stream->outputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); in allocateStreamBuffers()
224 if(stream->outputBuffer == NULL) { in allocateStreamBuffers()
316 stream->outputBuffer = (short *)realloc(stream->outputBuffer, in enlargeOutputBufferIfNeeded()
318 if(stream->outputBuffer == NULL) { in enlargeOutputBufferIfNeeded()
428 memcpy(stream->outputBuffer + stream->numOutputSamples*stream->numChannels, in copyToOutput()
472 buffer = stream->outputBuffer; in sonicReadFloatFromStream()
478 memmove(stream->outputBuffer, stream->outputBuffer + numSamples*stream->numChannels, in sonicReadFloatFromStream()
[all …]
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DWaveDataRingBuffer.java130 double outputBuffer[] = new double[mWaveRecord.length]; in getWaveRecord() local
134 System.arraycopy(mWaveRecord, 0, outputBuffer, 0, mIndex); in getWaveRecord()
135 Arrays.fill(outputBuffer, mIndex+1, outputBuffer.length-1, 0); in getWaveRecord()
138 System.arraycopy(mWaveRecord, mIndex, outputBuffer, 0, mWaveRecord.length - mIndex); in getWaveRecord()
139 System.arraycopy(mWaveRecord, 0, outputBuffer, mWaveRecord.length - mIndex, mIndex); in getWaveRecord()
142 return outputBuffer; in getWaveRecord()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLSignatureRawECDSA.java91 byte[] outputBuffer = new byte[output_size]; in engineSign()
94 NativeCrypto.ECDSA_sign(buffer.toByteArray(), outputBuffer, key.getNativeRef()); in engineSign()
103 System.arraycopy(outputBuffer, 0, newBuffer, 0, bytes_written); in engineSign()
104 outputBuffer = newBuffer; in engineSign()
106 return outputBuffer; in engineSign()
DOpenSSLSignatureRawRSA.java144 byte[] outputBuffer = new byte[inputBuffer.length]; in engineSign()
146 NativeCrypto.RSA_private_encrypt(inputOffset, inputBuffer, outputBuffer, in engineSign()
148 return outputBuffer; in engineSign()
174 byte[] outputBuffer = new byte[inputBuffer.length]; in engineVerify()
179 outputBuffer, key.getNativeRef(), NativeConstants.RSA_PKCS1_PADDING); in engineVerify()
188 if (inputBuffer[i] != outputBuffer[i]) { in engineVerify()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLSignatureRawRSA.java148 byte[] outputBuffer = new byte[inputBuffer.length]; in engineSign()
150 NativeCrypto.RSA_private_encrypt(inputOffset, inputBuffer, outputBuffer, in engineSign()
152 return outputBuffer; in engineSign()
178 byte[] outputBuffer = new byte[inputBuffer.length]; in engineVerify()
183 outputBuffer, key.getNativeRef(), NativeConstants.RSA_PKCS1_PADDING); in engineVerify()
192 if (inputBuffer[i] != outputBuffer[i]) { in engineVerify()
DOpenSSLSignatureRawECDSA.java95 byte[] outputBuffer = new byte[output_size]; in engineSign()
98 NativeCrypto.ECDSA_sign(buffer.toByteArray(), outputBuffer, key.getNativeRef()); in engineSign()
107 System.arraycopy(outputBuffer, 0, newBuffer, 0, bytes_written); in engineSign()
108 outputBuffer = newBuffer; in engineSign()
110 return outputBuffer; in engineSign()
/external/skia/tests/
DPDFDeflateWStreamTest.cpp38 uint8_t outputBuffer[kBufferSize]; in stream_inflate() local
45 flateData.next_out = outputBuffer; in stream_inflate()
67 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
71 flateData.next_out = outputBuffer; in stream_inflate()
90 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
94 flateData.next_out = outputBuffer; in stream_inflate()
/external/skqp/tests/
DPDFDeflateWStreamTest.cpp38 uint8_t outputBuffer[kBufferSize]; in stream_inflate() local
45 flateData.next_out = outputBuffer; in stream_inflate()
67 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
71 flateData.next_out = outputBuffer; in stream_inflate()
90 if (!dst->write(outputBuffer, kBufferSize - flateData.avail_out)) { in stream_inflate()
94 flateData.next_out = outputBuffer; in stream_inflate()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DShaderLang.cpp1045 std::string outputBuffer; in operator ()() local
1047 std::bind(&TInputScanner::getLastValidSourceIndex, &input), &outputBuffer); in operator ()()
1049 parseContext.setExtensionCallback([&lineSync, &outputBuffer]( in operator ()()
1052 outputBuffer += "#extension "; in operator ()()
1053 outputBuffer += extension; in operator ()()
1054 outputBuffer += " : "; in operator ()()
1055 outputBuffer += behavior; in operator ()()
1058 parseContext.setLineCallback([&lineSync, &outputBuffer, &parseContext]( in operator ()()
1062 outputBuffer += "#line "; in operator ()()
1063 outputBuffer += std::to_string(newLineNum); in operator ()()
[all …]
/external/libchrome/mojo/public/js/lib/
Dunicode.js32 function encodeUtf8String(str, outputBuffer) { argument
34 if (outputBuffer.length < utf8Buffer.length)
36 outputBuffer.set(utf8Buffer);
/external/deqp/modules/gles31/functional/
Des31fBasicComputeShaderTests.cpp156 const Buffer outputBuffer (m_context.getRenderContext()); in iterate() local
201 gl.bindBuffer(GL_SHADER_STORAGE_BUFFER, *outputBuffer); in iterate()
203 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, 1, *outputBuffer); in iterate()
278 const Buffer outputBuffer (m_context.getRenderContext()); in iterate() local
324 gl.bindBuffer(GL_SHADER_STORAGE_BUFFER, *outputBuffer); in iterate()
326 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, blockInfo.bufferBinding, *outputBuffer); in iterate()
403 const Buffer outputBuffer (m_context.getRenderContext()); in iterate() local
424 gl.bindBuffer(GL_SHADER_STORAGE_BUFFER, *outputBuffer); in iterate()
434 gl.bindBufferBase(GL_SHADER_STORAGE_BUFFER, 0, *outputBuffer); in iterate()
608 const Buffer outputBuffer (m_context.getRenderContext()); in iterate() local
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DStreamCompressor.java60 private final byte[] outputBuffer = new byte[BUFFER_SIZE]; field in StreamCompressor
262 final int len = def.deflate(outputBuffer, 0, outputBuffer.length); in deflate()
264 writeCounted(outputBuffer, 0, len); in deflate()
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesBufferSparseBinding.cpp298 …const Unique<VkBuffer> outputBuffer(createBuffer(deviceInterface, getDevice(), &outputBufferCrea… in iterate() local
299 …BufferAlloc(bindBuffer(deviceInterface, getDevice(), getAllocator(), *outputBuffer, MemoryRequirem… in iterate()
304 deviceInterface.cmdCopyBuffer(*commandBuffer, *sparseBuffer, *outputBuffer, 1u, &bufferCopy); in iterate()
311 *outputBuffer, in iterate()
DvktSparseResourcesBufferSparseResidency.cpp291 …const Unique<VkBuffer> outputBuffer (createBuffer(deviceInterface, getDevice(), &outputBufferC… in iterate() local
292 …fferAlloc (bindBuffer(deviceInterface, getDevice(), getAllocator(), *outputBuffer, MemoryRequirem… in iterate()
361 deviceInterface.cmdCopyBuffer(*commandBuffer, *sparseBuffer, *outputBuffer, 1u, &bufferCopy); in iterate()
368 *outputBuffer, in iterate()
DvktSparseResourcesBufferMemoryAliasing.cpp298 …const Unique<VkBuffer> outputBuffer(createBuffer(deviceInterface, getDevice(), &outputBufferCrea… in iterate() local
299 …BufferAlloc(bindBuffer(deviceInterface, getDevice(), getAllocator(), *outputBuffer, MemoryRequirem… in iterate()
373 deviceInterface.cmdCopyBuffer(*commandBuffer, *sparseBufferRead, *outputBuffer, 1u, &bufferCopy); in iterate()
380 *outputBuffer, in iterate()
DvktSparseResourcesImageSparseBinding.cpp350 …const Unique<VkBuffer> outputBuffer (createBuffer(deviceInterface, getDevice(), &outputBufferC… in iterate() local
351 …fferAlloc (bindBuffer(deviceInterface, getDevice(), getAllocator(), *outputBuffer, MemoryRequirem… in iterate()
353 …(*commandBuffer, *imageSparse, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, *outputBuffer, static_cast<de… in iterate()
360 *outputBuffer, in iterate()
DvktSparseResourcesMipmapSparseResidency.cpp458 …const Unique<VkBuffer> outputBuffer (createBuffer(deviceInterface, getDevice(), &outputBufferC… in iterate() local
459 …fferAlloc (bindBuffer(deviceInterface, getDevice(), getAllocator(), *outputBuffer, MemoryRequirem… in iterate()
461 …(*commandBuffer, *imageSparse, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, *outputBuffer, static_cast<de… in iterate()
468 *outputBuffer, in iterate()
/external/deqp/external/vulkancts/modules/vulkan/conditional_rendering/
DvktConditionalDispatchTests.cpp182 …const compute::Buffer outputBuffer(vk, device, allocator, compute::makeBufferCreateInfo(bufferSize… in iterate() local
185 const vk::Allocation& alloc = outputBuffer.getAllocation(); in iterate()
205 …const vk::VkDescriptorBufferInfo descriptorInfo = vk::makeDescriptorBufferInfo(*outputBuffer, 0ull… in iterate()
313 const vk::Allocation& outputBufferAllocation = outputBuffer.getAllocation(); in iterate()
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DFlyweightMapStorage.java200 ByteBuffer outputBuffer, int index) throws IOException { in readExternalWord() argument
203 outputBuffer.putShort(wordIndex, objectInput.readShort()); in readExternalWord()
205 outputBuffer.putInt(wordIndex, objectInput.readInt()); in readExternalWord()
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/
DFlyweightMapStorage.java201 ByteBuffer outputBuffer, int index) throws IOException { in readExternalWord() argument
204 outputBuffer.putShort(wordIndex, objectInput.readShort()); in readExternalWord()
206 outputBuffer.putInt(wordIndex, objectInput.readInt()); in readExternalWord()
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/
DMediaCodecVideoEncoder.java525 ByteBuffer outputBuffer = outputBuffers[result].duplicate(); in dequeueOutputBuffer() local
526 outputBuffer.position(info.offset); in dequeueOutputBuffer()
527 outputBuffer.limit(info.offset + info.size); in dequeueOutputBuffer()
543 keyFrameBuffer.put(outputBuffer); in dequeueOutputBuffer()
548 return new OutputBufferInfo(result, outputBuffer.slice(), in dequeueOutputBuffer()
/external/iperf3/src/
Diperf_auth.c47 void sha256(const char *string, char outputBuffer[65]) in sha256()
57 sprintf(outputBuffer + (i * 2), "%02x", hash[i]); in sha256()
59 outputBuffer[64] = 0; in sha256()
/external/deqp/external/vulkancts/modules/vulkan/compute/
DvktComputeBasicComputeShaderTests.cpp737 …const Buffer outputBuffer(vk, device, allocator, makeBufferCreateInfo(bufferSizeBytes, VK_BUFFER_U… in iterate() local
758 …const VkDescriptorBufferInfo bufferDescriptorInfo = makeDescriptorBufferInfo(*outputBuffer, 0ull, … in iterate()
771 …erMemoryBarrier(VK_ACCESS_SHADER_WRITE_BIT, VK_ACCESS_HOST_READ_BIT, *outputBuffer, 0ull, bufferSi… in iterate()
801 const Allocation& outputBufferAllocation = outputBuffer.getAllocation(); in iterate()
932 …const Buffer outputBuffer(vk, device, allocator, makeBufferCreateInfo(bufferSizeBytes, VK_BUFFER_U… in iterate() local
990 …copyImageToBuffer(vk, *cmdBuffer, *image, *outputBuffer, m_imageSize, VK_ACCESS_SHADER_WRITE_BIT, … in iterate()
1001 const Allocation& outputBufferAllocation = outputBuffer.getAllocation(); in iterate()
1209 …const Buffer outputBuffer(vk, device, allocator, makeBufferCreateInfo(bufferSizeBytes, VK_BUFFER_U… in iterate() local
1228 …const VkDescriptorBufferInfo outputBufferDescriptorInfo = makeDescriptorBufferInfo(*outputBuffer, … in iterate()
1242 …erMemoryBarrier(VK_ACCESS_SHADER_WRITE_BIT, VK_ACCESS_HOST_READ_BIT, *outputBuffer, 0ull, bufferSi… in iterate()
[all …]
/external/aac/libFDK/src/
DFDK_bitbuffer.cpp460 UCHAR *RESTRICT outputBuffer = outBuf; in FDK_Fetch() local
475 FDKmemcpy(outputBuffer, &hBitBuf->Buffer[hBitBuf->WriteOffset], in FDK_Fetch()
481 outputBuffer += bToWrite; in FDK_Fetch()

12