Home
last modified time | relevance | path

Searched refs:dstBuffer (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/media/java/android/media/
DImageUtils.java127 ByteBuffer dstBuffer = null; in imageCopy() local
132 dstBuffer = dstPlanes[i].getBuffer(); in imageCopy()
133 if (!(srcBuffer.isDirect() && dstBuffer.isDirect())) { in imageCopy()
146 dstBuffer.rewind(); in imageCopy()
149 dstBuffer.put(srcBuffer); in imageCopy()
154 int dstOffset = dstBuffer.position(); in imageCopy()
167 directByteBufferCopy(srcBuffer, srcOffset, dstBuffer, dstOffset, srcByteCount); in imageCopy()
174 dstBuffer.rewind(); in imageCopy()
278 ByteBuffer dstBuffer, int dstOffset, int srcByteCount) { in directByteBufferCopy() argument
279 Memory.memmove(dstBuffer, dstOffset, srcBuffer, srcOffset, srcByteCount); in directByteBufferCopy()
/frameworks/ex/framesequence/jni/
DStream.cpp122 size_t JavaInputStream::doRead(void* dstBuffer, size_t size) { in doRead() argument
134 mEnv->GetByteArrayRegion(mByteArray, 0, bytesRead, (jbyte*)dstBuffer); in doRead()
135 dstBuffer = (char*)dstBuffer + bytesRead; in doRead()
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp359 const sp<MediaCodecBuffer> &dstBuffer = state->mBuffers[0].itemAt(index); in onPrepare() local
361 CHECK_LE(srcBuffer->size(), dstBuffer->capacity()); in onPrepare()
362 dstBuffer->setRange(0, srcBuffer->size()); in onPrepare()
363 memcpy(dstBuffer->data(), srcBuffer->data(), srcBuffer->size()); in onPrepare()
368 dstBuffer->size(), in onPrepare()
486 const sp<MediaCodecBuffer> &dstBuffer = in onDoMoreStuff() local
488 sp<ABuffer> abuffer = new ABuffer(dstBuffer->base(), dstBuffer->capacity()); in onDoMoreStuff()
492 dstBuffer->setRange(abuffer->offset(), abuffer->size()); in onDoMoreStuff()
499 dstBuffer->offset(), in onDoMoreStuff()
500 dstBuffer->size(), in onDoMoreStuff()
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp197 DestinationBuffer dstBuffer; in queueSecureInputBuffer() local
199 dstBuffer.type = BufferType::NATIVE_HANDLE; in queueSecureInputBuffer()
200 dstBuffer.secureMemory = hidl_handle(secureHandle); in queueSecureInputBuffer()
202 dstBuffer.type = BufferType::SHARED_MEMORY; in queueSecureInputBuffer()
203 dstBuffer.nonsecureMemory = srcBuffer; in queueSecureInputBuffer()
221 dstBuffer, in queueSecureInputBuffer()
244 if (dstBuffer.type == BufferType::SHARED_MEMORY) { in queueSecureInputBuffer()
403 DestinationBuffer dstBuffer; in attachEncryptedBuffer() local
405 dstBuffer.type = BufferType::NATIVE_HANDLE; in attachEncryptedBuffer()
406 dstBuffer.secureMemory = hidl_handle(secureHandle); in attachEncryptedBuffer()
[all …]
/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp561 void TimestretchBufferProvider::processFrames(void *dstBuffer, size_t *dstFrames, in processFrames() argument
584 memcpy(dstBuffer, srcBuffer, copySize); in processFrames()
589 memcpy((uint8_t*)dstBuffer + mFrameSize * count, in processFrames()
596 memset(dstBuffer,0, mFrameSize * *dstFrames); in processFrames()
615 *dstFrames = sonicReadFloatFromStream(mSonicStream, (float*)dstBuffer, *dstFrames); in processFrames()
622 *dstFrames = sonicReadShortFromStream(mSonicStream, (short*)dstBuffer, *dstFrames); in processFrames()
/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp226 DestinationBuffer dstBuffer; in descramble() local
227 dstBuffer.type = BufferType::SHARED_MEMORY; in descramble()
228 dstBuffer.nonsecureMemory = mDescramblerSrcBuffer; in descramble()
235 dstBuffer, in descramble()
/frameworks/base/tests/JankBench/app/src/main/jni/
DBench.h41 float *dstBuffer; member
DBench.cpp326 float * dstPtr = &mGFlop.dstBuffer[x]; in GflopKernelC()
353 mGFlop.dstBuffer = (float *)malloc(mGFlop.imageXSize * sizeof(float)); in runGFlopsTest()
/frameworks/native/vulkan/nulldrv/
Dnull_driver_gen.h144 VKAPI_ATTR void CmdCopyBuffer(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer
148 …commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t region…
149 VKAPI_ATTR void CmdUpdateBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dst…
150 VKAPI_ATTR void CmdFillBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOf…
163 …QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize ds…
/frameworks/native/vulkan/libvulkan/
Dapi_gen.cpp456 VKAPI_ATTR void CmdCopyBuffer(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer
460 …commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t region…
461 VKAPI_ATTR void CmdUpdateBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dst…
462 VKAPI_ATTR void CmdFillBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOf…
475 …QueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize ds…
1216 VKAPI_ATTR void CmdCopyBuffer(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer in CmdCopyBuffer() argument
1217 …GetData(commandBuffer).dispatch.CmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, regionCount, pR… in CmdCopyBuffer()
1232 …commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t region… in CmdCopyImageToBuffer() argument
1233 ….dispatch.CmdCopyImageToBuffer(commandBuffer, srcImage, srcImageLayout, dstBuffer, regionCount, pR… in CmdCopyImageToBuffer()
1236 VKAPI_ATTR void CmdUpdateBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dst… in CmdUpdateBuffer() argument
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DDepthCompositeStream.cpp233 void *dstBuffer; in processInputFrame() local
275 res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, fenceFd); in processInputFrame()
337 res = processDepthPhotoFrame(depthPhoto, finalJpegBufferSize, dstBuffer, &actualJpegSize); in processInputFrame()
359 uint8_t* header = static_cast<uint8_t *> (dstBuffer) + in processInputFrame()
DHeicCompositeStream.cpp1135 void* dstBuffer; in processCompletedInputFrame() local
1136 auto res = gb->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &dstBuffer, inputFrame.fenceFd); in processCompletedInputFrame()
1151 ssize_t bytesRead = read(inputFrame.fileFd, dstBuffer, fSize); in processCompletedInputFrame()
1161 uint8_t *header = static_cast<uint8_t*>(dstBuffer) + mMaxHeicBufferSize - sizeof(CameraBlob); in processCompletedInputFrame()
/frameworks/av/media/libaudioprocessing/include/media/
DBufferProviders.h199 virtual void processFrames(void *dstBuffer, size_t *dstFrames,
/frameworks/av/media/codec2/sfplugin/
DCCodecBufferChannel.cpp555 DestinationBuffer dstBuffer; in queueSecureInputBuffer() local
557 dstBuffer.type = BufferType::NATIVE_HANDLE; in queueSecureInputBuffer()
558 dstBuffer.secureMemory = hidl_handle(encryptedBuffer->handle()); in queueSecureInputBuffer()
560 dstBuffer.type = BufferType::SHARED_MEMORY; in queueSecureInputBuffer()
561 dstBuffer.nonsecureMemory = srcBuffer; in queueSecureInputBuffer()
579 dstBuffer, in queueSecureInputBuffer()
602 if (dstBuffer.type == BufferType::SHARED_MEMORY) { in queueSecureInputBuffer()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java1692 ByteBuffer dstBuffer = null; in imageCopy() local
1697 dstBuffer = dstPlanes[i].getBuffer(); in imageCopy()
1698 dstBuffer.rewind(); in imageCopy()
1699 dstBuffer.put(srcBuffer); in imageCopy()
1701 dstBuffer.rewind(); in imageCopy()
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp1597 DestinationBuffer dstBuffer; in flushScrambled() local
1598 dstBuffer.type = BufferType::SHARED_MEMORY; in flushScrambled()
1599 dstBuffer.nonsecureMemory = mDescramblerSrcBuffer; in flushScrambled()
1606 dstBuffer, in flushScrambled()