Home
last modified time | relevance | path

Searched refs:bufferInfo (Results 1 – 25 of 48) sorted by relevance

12

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/mediacodec/
DAsynchronousMediaCodecAdapterTest.java47 private MediaCodec.BufferInfo bufferInfo; field in AsynchronousMediaCodecAdapterTest
57 bufferInfo = new MediaCodec.BufferInfo(); in setUp()
131 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)) in dequeueOutputBufferIndex_withoutOutputBuffer_returnsTryAgainLater()
142 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)).isEqualTo(0); in dequeueOutputBufferIndex_withOutputBuffer_returnsOutputBuffer()
143 assertBufferInfosEqual(bufferInfo, outBufferInfo); in dequeueOutputBufferIndex_withOutputBuffer_returnsOutputBuffer()
149 adapter.getMediaCodecCallback().onOutputBufferAvailable(codec, /* index=*/ 0, bufferInfo); in dequeueOutputBufferIndex_whileFlushing_returnsTryAgainLater()
151 adapter.getMediaCodecCallback().onOutputBufferAvailable(codec, /* index=*/ 1, bufferInfo); in dequeueOutputBufferIndex_whileFlushing_returnsTryAgainLater()
153 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)) in dequeueOutputBufferIndex_whileFlushing_returnsTryAgainLater()
172 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)).isEqualTo(1); in dequeueOutputBufferIndex_afterFlushCompletes_returnsNextOutputBuffer()
173 assertBufferInfosEqual(info1, bufferInfo); in dequeueOutputBufferIndex_afterFlushCompletes_returnsNextOutputBuffer()
[all …]
DMediaCodecAsyncCallbackTest.java114 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in dequeOutputBufferIndex_afterFlush_returnsTryAgain() local
115 mediaCodecAsyncCallback.onOutputBufferAvailable(codec, 0, bufferInfo); in dequeOutputBufferIndex_afterFlush_returnsTryAgain()
116 mediaCodecAsyncCallback.onOutputBufferAvailable(codec, 1, bufferInfo); in dequeOutputBufferIndex_afterFlush_returnsTryAgain()
128 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in dequeOutputBufferIndex_afterFlushAndNewOutputBuffers_returnsEnqueueBuffer() local
129 mediaCodecAsyncCallback.onOutputBufferAvailable(codec, 0, bufferInfo); in dequeOutputBufferIndex_afterFlushAndNewOutputBuffers_returnsEnqueueBuffer()
130 mediaCodecAsyncCallback.onOutputBufferAvailable(codec, 1, bufferInfo); in dequeOutputBufferIndex_afterFlushAndNewOutputBuffers_returnsEnqueueBuffer()
132 mediaCodecAsyncCallback.onOutputBufferAvailable(codec, 2, bufferInfo); in dequeOutputBufferIndex_afterFlushAndNewOutputBuffers_returnsEnqueueBuffer()
151 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in getOutputFormat_afterOnOutputFormatCalled_returnsFormat() local
153 assertThat(mediaCodecAsyncCallback.dequeueOutputBufferIndex(bufferInfo)) in getOutputFormat_afterOnOutputFormatCalled_returnsFormat()
162 MediaCodec.BufferInfo bufferInfo = new MediaCodec.BufferInfo(); in getOutputFormat_afterFlush_raisesCurrentFormat() local
[all …]
DMultiLockAsyncMediaCodecAdapterTest.java49 private MediaCodec.BufferInfo bufferInfo; field in MultiLockAsyncMediaCodecAdapterTest
60 bufferInfo = new MediaCodec.BufferInfo(); in setUp()
160 assertThrows(IllegalStateException.class, () -> adapter.dequeueOutputBufferIndex(bufferInfo)); in dequeueOutputBufferIndex_withInternalException_throwsException()
167 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)) in dequeueOutputBufferIndex_withoutInputBuffer_returnsTryAgainLater()
177 assertThat(adapter.dequeueOutputBufferIndex((bufferInfo))).isEqualTo(0); in dequeueOutputBufferIndex_withOutputBuffer_returnsOutputBuffer()
178 assertBufferInfosEqual(enqueuedBufferInfo, bufferInfo); in dequeueOutputBufferIndex_withOutputBuffer_returnsOutputBuffer()
184 adapter.dequeueOutputBufferIndex(bufferInfo); in dequeueOutputBufferIndex_withPendingFlush_returnsTryAgainLater()
187 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)) in dequeueOutputBufferIndex_withPendingFlush_returnsTryAgainLater()
212 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)).isEqualTo(10); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer()
213 assertBufferInfosEqual(lastBufferInfo, bufferInfo); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer()
[all …]
DDedicatedThreadAsyncMediaCodecAdapterTest.java50 private MediaCodec.BufferInfo bufferInfo; field in DedicatedThreadAsyncMediaCodecAdapterTest
63 bufferInfo = new MediaCodec.BufferInfo(); in setUp()
161 assertThrows(IllegalStateException.class, () -> adapter.dequeueOutputBufferIndex(bufferInfo)); in dequeueOutputBufferIndex_withInternalException_throwsException()
168 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)) in dequeueOutputBufferIndex_withoutInputBuffer_returnsTryAgainLater()
178 assertThat(adapter.dequeueOutputBufferIndex((bufferInfo))).isEqualTo(0); in dequeueOutputBufferIndex_withOutputBuffer_returnsOutputBuffer()
179 assertBufferInfosEqual(enqueuedBufferInfo, bufferInfo); in dequeueOutputBufferIndex_withOutputBuffer_returnsOutputBuffer()
185 adapter.dequeueOutputBufferIndex(bufferInfo); in dequeueOutputBufferIndex_withPendingFlush_returnsTryAgainLater()
188 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)) in dequeueOutputBufferIndex_withPendingFlush_returnsTryAgainLater()
212 assertThat(adapter.dequeueOutputBufferIndex(bufferInfo)).isEqualTo(10); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer()
213 assertBufferInfosEqual(lastBufferInfo, bufferInfo); in dequeueOutputBufferIndex_withFlushCompletedAndOutputBuffer_returnsOutputBuffer()
[all …]
/external/angle/src/libANGLE/renderer/vulkan/
DTransformFeedbackVk.cpp195 VkDescriptorBufferInfo &bufferInfo = descriptorBufferInfo[bufferIndex]; in initDescriptorSet() local
196 bufferInfo.buffer = emptyBuffer->getBuffer().getHandle(); in initDescriptorSet()
197 bufferInfo.offset = 0; in initDescriptorSet()
198 bufferInfo.range = VK_WHOLE_SIZE; in initDescriptorSet()
227 VkDescriptorBufferInfo &bufferInfo = descriptorBufferInfo[bufferIndex]; in updateDescriptorSet() local
235 bufferInfo.buffer = bufferHelper.getBuffer().getHandle(); in updateDescriptorSet()
236 bufferInfo.offset = mTransformFeedbackBufferRange.alignedOffsets[bufferIndex]; in updateDescriptorSet()
237 bufferInfo.range = mTransformFeedbackBufferRange.sizes[bufferIndex] + in updateDescriptorSet()
240 bufferInfo.range = (bufferInfo.range == 0) ? bufferHelper.getSize() : bufferInfo.range; in updateDescriptorSet()
DProgramExecutableVk.cpp840 VkDescriptorBufferInfo bufferInfo; in updateDefaultUniformsDescriptorSet() local
846 bufferInfo.buffer = bufferHelper->getBuffer().getHandle(); in updateDefaultUniformsDescriptorSet()
852 bufferInfo.buffer = mEmptyBuffer.getBuffer().getHandle(); in updateDefaultUniformsDescriptorSet()
856 bufferInfo.offset = 0; in updateDefaultUniformsDescriptorSet()
857 bufferInfo.range = VK_WHOLE_SIZE; in updateDefaultUniformsDescriptorSet()
867 writeInfo.pBufferInfo = &bufferInfo; in updateDefaultUniformsDescriptorSet()
926 VkDescriptorBufferInfo &bufferInfo = descriptorBufferInfo[writeCount]; in updateBuffersDescriptorSet() local
930 binding, arrayElement, 0, &bufferInfo, &writeInfo); in updateBuffersDescriptorSet()
1002 VkDescriptorBufferInfo &bufferInfo = descriptorBufferInfo[binding]; in updateAtomicCounterBuffersDescriptorSet() local
1007 requiredOffsetAlignment, &bufferInfo, &writeInfo); in updateAtomicCounterBuffersDescriptorSet()
[all …]
DUtilsVk.cpp1586 VkDescriptorBufferInfo bufferInfo = {}; in stencilBlitResolveNoShaderExport() local
1587 bufferInfo.buffer = blitBuffer.get().getBuffer().getHandle(); in stencilBlitResolveNoShaderExport()
1588 bufferInfo.offset = 0; in stencilBlitResolveNoShaderExport()
1589 bufferInfo.range = VK_WHOLE_SIZE; in stencilBlitResolveNoShaderExport()
1600 writeInfos[0].pBufferInfo = &bufferInfo; in stencilBlitResolveNoShaderExport()
1816 VkDescriptorBufferInfo bufferInfo = {}; in cullOverlayWidgets() local
1817 bufferInfo.buffer = enabledWidgetsBuffer->getBuffer().getHandle(); in cullOverlayWidgets()
1818 bufferInfo.offset = 0; in cullOverlayWidgets()
1819 bufferInfo.range = VK_WHOLE_SIZE; in cullOverlayWidgets()
1834 writeInfos[1].pBufferInfo = &bufferInfo; in cullOverlayWidgets()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/mediacodec/
DMediaCodecAsyncCallback.java60 public int dequeueOutputBufferIndex(MediaCodec.BufferInfo bufferInfo) { in dequeueOutputBufferIndex() argument
67 bufferInfo.set( in dequeueOutputBufferIndex()
128 MediaCodec mediaCodec, int i, MediaCodec.BufferInfo bufferInfo) { in onOutputBufferAvailable() argument
130 bufferInfos.add(bufferInfo); in onOutputBufferAvailable()
DSynchronousMediaCodecAdapter.java45 public int dequeueOutputBufferIndex(MediaCodec.BufferInfo bufferInfo) { in dequeueOutputBufferIndex() argument
46 return codec.dequeueOutputBuffer(bufferInfo, 0); in dequeueOutputBufferIndex()
DMultiLockAsyncMediaCodecAdapter.java185 public int dequeueOutputBufferIndex(MediaCodec.BufferInfo bufferInfo) { in dequeueOutputBufferIndex() argument
191 return dequeueAvailableOutputBufferIndex(bufferInfo); in dequeueOutputBufferIndex()
258 private int dequeueAvailableOutputBufferIndex(MediaCodec.BufferInfo bufferInfo) { in dequeueAvailableOutputBufferIndex() argument
269 bufferInfo.set( in dequeueAvailableOutputBufferIndex()
DAsynchronousMediaCodecAdapter.java91 public int dequeueOutputBufferIndex(MediaCodec.BufferInfo bufferInfo) { in dequeueOutputBufferIndex() argument
96 return mediaCodecAsyncCallback.dequeueOutputBufferIndex(bufferInfo); in dequeueOutputBufferIndex()
DMediaCodecAdapter.java59 int dequeueOutputBufferIndex(MediaCodec.BufferInfo bufferInfo); in dequeueOutputBufferIndex() argument
DDedicatedThreadAsyncMediaCodecAdapter.java153 public synchronized int dequeueOutputBufferIndex(MediaCodec.BufferInfo bufferInfo) { in dequeueOutputBufferIndex() argument
158 return mediaCodecAsyncCallback.dequeueOutputBufferIndex(bufferInfo); in dequeueOutputBufferIndex()
/external/skia/tests/
DVkDrawableTest.cpp103 const SkImageInfo& bufferInfo) in DrawHandlerImport() argument
110 , fBufferInfo(bufferInfo) {} in DrawHandlerImport()
135 const SkImageInfo& bufferInfo, const GrVkDrawableInfo& info) { in ImportDraw() argument
136 … td->fDrawContext = GrVkSecondaryCBDrawContext::Make(td->fContext, bufferInfo, info, nullptr); in ImportDraw()
153 bufferInfo); in ImportDraw()
186 const SkImageInfo& bufferInfo) override { in onSnapGpuDrawHandler() argument
193 clipBounds, bufferInfo)); in onSnapGpuDrawHandler()
/external/skqp/tests/
DVkDrawableTest.cpp103 const SkImageInfo& bufferInfo) in DrawHandlerImport() argument
110 , fBufferInfo(bufferInfo) {} in DrawHandlerImport()
135 const SkImageInfo& bufferInfo, const GrVkDrawableInfo& info) { in ImportDraw() argument
136 … td->fDrawContext = GrVkSecondaryCBDrawContext::Make(td->fContext, bufferInfo, info, nullptr); in ImportDraw()
153 bufferInfo); in ImportDraw()
186 const SkImageInfo& bufferInfo) override { in onSnapGpuDrawHandler() argument
193 clipBounds, bufferInfo)); in onSnapGpuDrawHandler()
/external/skia/src/gpu/vk/
DGrVkPipelineState.cpp248 VkDescriptorBufferInfo* bufferInfo, in set_uniform_descriptor_writes() argument
252 memset(bufferInfo, 0, sizeof(VkDescriptorBufferInfo)); in set_uniform_descriptor_writes()
253 bufferInfo->buffer = buffer->buffer(); in set_uniform_descriptor_writes()
254 bufferInfo->offset = buffer->offset(); in set_uniform_descriptor_writes()
255 bufferInfo->range = buffer->size(); in set_uniform_descriptor_writes()
266 descriptorWrite->pBufferInfo = bufferInfo; in set_uniform_descriptor_writes()
/external/skqp/src/gpu/vk/
DGrVkPipelineState.cpp299 VkDescriptorBufferInfo* bufferInfo, in set_uniform_descriptor_writes() argument
304 memset(bufferInfo, 0, sizeof(VkDescriptorBufferInfo)); in set_uniform_descriptor_writes()
305 bufferInfo->buffer = buffer->buffer(); in set_uniform_descriptor_writes()
306 bufferInfo->offset = buffer->offset(); in set_uniform_descriptor_writes()
307 bufferInfo->range = buffer->size(); in set_uniform_descriptor_writes()
318 descriptorWrite->pBufferInfo = bufferInfo; in set_uniform_descriptor_writes()
/external/deqp/external/vulkancts/modules/vulkan/descriptor_indexing/
DvktDescriptorSetsIndexingTestsUtils.cpp255 const VkDescriptorBufferInfo& bufferInfo, in recordCopyBufferToImage() argument
271 VkDeviceSize bufferOffset = bufferInfo.offset; in recordCopyBufferToImage()
331 bufferInfo.buffer, // buffer; in recordCopyBufferToImage()
332 bufferInfo.offset, // offset; in recordCopyBufferToImage()
333 bufferInfo.range // size; in recordCopyBufferToImage()
358 …interface.cmdCopyBufferToImage(cmd, bufferInfo.buffer, image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL… in recordCopyBufferToImage()
377 const VkDescriptorBufferInfo& bufferInfo) in recordCopyImageToBuffer() argument
385 bufferInfo.offset, // bufferOffset in recordCopyImageToBuffer()
443 …interface.cmdCopyImageToBuffer(cmd, image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, bufferInfo.buffer… in recordCopyImageToBuffer()
DvktDescriptorSetsIndexingTests.hpp168 const VkDescriptorBufferInfo& bufferInfo,
185 const VkDescriptorBufferInfo& bufferInfo);
/external/skqp/include/core/
DSkDrawable.h84 const SkImageInfo& bufferInfo) { in snapGpuDrawHandler() argument
85 return this->onSnapGpuDrawHandler(backendApi, matrix, clipBounds, bufferInfo); in snapGpuDrawHandler()
/external/skia/include/core/
DSkDrawable.h84 const SkImageInfo& bufferInfo) { in snapGpuDrawHandler() argument
85 return this->onSnapGpuDrawHandler(backendApi, matrix, clipBounds, bufferInfo); in snapGpuDrawHandler()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktAtomicOperationTests.cpp576 VkDescriptorBufferInfo bufferInfo; in iterate() local
577 bufferInfo.buffer = buffer.getBuffer(); in iterate()
578 bufferInfo.offset = 0u; in iterate()
579 bufferInfo.range = VK_WHOLE_SIZE; in iterate()
591 &bufferInfo, in iterate()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiBufferComputeInstance.cpp168 …const vk::VkDescriptorBufferInfo bufferInfo = makeDescriptorBufferInfo(buffer, (vk::VkDevice… in createDescriptorSet() local
186 …DescriptorSetUpdateBuilder::Location::binding(1u), VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, &bufferInfo); in createDescriptorSet()
/external/angle/third_party/VulkanMemoryAllocator/
DREADME.md76 VkBufferCreateInfo bufferInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO };
77 bufferInfo.size = 65536;
78 bufferInfo.usage = VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT;
85 vmaCreateBuffer(allocator, &bufferInfo, &allocInfo, &buffer, &allocation, nullptr);
/external/angle/third_party/VulkanMemoryAllocator/src/
DTests.cpp373 VkBufferCreateInfo bufferInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; in MainTest() local
374 bufferInfo.size = bufferSize; in MainTest()
375 bufferInfo.usage = VK_BUFFER_USAGE_VERTEX_BUFFER_BIT; in MainTest()
379 …res = vmaCreateBuffer(g_hAllocator, &bufferInfo, &memReq, &allocation.Buffer, &allocation.Alloc, &… in MainTest()
1193 VkBufferCreateInfo bufferInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; in CreateAllocation() local
1194 bufferInfo.size = bufferSize; in CreateAllocation()
1195 bufferInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT; in CreateAllocation()
1197 …VkResult res = vmaCreateBuffer(g_hAllocator, &bufferInfo, &vmaMemReq, &outAllocation.m_Buffer, &ou… in CreateAllocation()
1198 outAllocation.m_BufferInfo = bufferInfo; in CreateAllocation()
3895 VkBufferCreateInfo bufferInfo = { VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO }; in TestPool_SameSize() local
[all …]

12