Home
last modified time | relevance | path

Searched refs:buffer_id (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DOMXNodeInstance.h77 OMX_U32 portIndex, size_t size, IOMX::buffer_id *buffer,
81 OMX_U32 portIndex, const OMXBuffer &omxBuf, buffer_id *buffer);
84 OMX_U32 portIndex, buffer_id buffer);
87 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd = -1);
90 buffer_id buffer, const OMXBuffer &omxBuf,
145 IOMX::buffer_id mID;
151 KeyedVector<IOMX::buffer_id, OMX_BUFFERHEADERTYPE *> mBufferIDToBufferHeader;
152 KeyedVector<OMX_BUFFERHEADERTYPE *, IOMX::buffer_id> mBufferHeaderToBufferID;
188 void addActiveBuffer(OMX_U32 portIndex, IOMX::buffer_id id);
189 void removeActiveBuffer(OMX_U32 portIndex, IOMX::buffer_id id);
[all …]
/frameworks/base/native/webview/plat_support/
Dgraphic_buffer_impl.cpp48 void GraphicBufferImpl::Release(long buffer_id) { in Release() argument
49 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in Release()
54 int GraphicBufferImpl::MapStatic(long buffer_id, AwMapMode mode, void** vaddr) { in MapStatic() argument
55 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in MapStatic()
60 int GraphicBufferImpl::UnmapStatic(long buffer_id) { in UnmapStatic() argument
61 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in UnmapStatic()
66 void* GraphicBufferImpl::GetNativeBufferStatic(long buffer_id) { in GetNativeBufferStatic() argument
67 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in GetNativeBufferStatic()
72 uint32_t GraphicBufferImpl::GetStrideStatic(long buffer_id) { in GetStrideStatic() argument
73 GraphicBufferImpl* buffer = reinterpret_cast<GraphicBufferImpl*>(buffer_id); in GetStrideStatic()
Dgraphic_buffer_impl.h34 static void Release(long buffer_id);
35 static int MapStatic(long buffer_id, AwMapMode mode, void** vaddr);
36 static int UnmapStatic(long buffer_id);
37 static void* GetNativeBufferStatic(long buffer_id);
38 static uint32_t GetStrideStatic(long buffer_id);
Ddraw_gl.h104 typedef void AwReleaseGraphicBufferFunction(long buffer_id);
106 typedef int AwMapFunction(long buffer_id, AwMapMode mode, void** vaddr);
108 typedef int AwUnmapFunction(long buffer_id);
110 typedef void* AwGetNativeBufferFunction(long buffer_id);
112 typedef unsigned int AwGetStrideFunction(long buffer_id);
/frameworks/av/media/libmedia/include/media/
DIOMX.h53 typedef uint32_t buffer_id; typedef
92 typedef IOMX::buffer_id buffer_id; typedef
134 OMX_U32 port_index, size_t size, buffer_id *buffer,
144 OMX_U32 port_index, const OMXBuffer &omxBuf, buffer_id *buffer) = 0;
148 OMX_U32 port_index, buffer_id buffer) = 0;
157 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd = -1) = 0;
165 buffer_id buffer, const OMXBuffer &omxBuf,
197 IOMX::buffer_id buffer;
202 IOMX::buffer_id buffer;
/frameworks/native/services/vr/bufferhubd/
Dproducer_channel.cpp28 ProducerChannel::ProducerChannel(BufferHubService* service, int buffer_id, in ProducerChannel() argument
32 : BufferHubChannel(service, buffer_id, channel_id, kProducerType), in ProducerChannel()
135 BufferHubService* service, int buffer_id, int channel_id, IonBuffer buffer, in Create() argument
139 service, buffer_id, channel_id, std::move(buffer), in Create()
166 channel_id(), buffer_id(), in ~ProducerChannel()
181 return BufferInfo(buffer_id(), consumer_channels_.size(), buffer_.width(), in GetBufferInfo()
232 buffer_id(), in GetBuffer()
243 buffer_id(), buffer_state_->load(std::memory_order_acquire)); in OnGetBuffer()
311 ALOGD("%s: buffer_id=%d", __FUNCTION__, buffer_id()); in CreateConsumer()
323 service(), buffer_id(), channel_id, consumer_state_mask, in CreateConsumer()
[all …]
Dconsumer_channel.cpp19 ConsumerChannel::ConsumerChannel(BufferHubService* service, int buffer_id, in ConsumerChannel() argument
22 : BufferHubChannel(service, buffer_id, channel_id, kConsumerType), in ConsumerChannel()
31 channel_id(), buffer_id()); in ~ConsumerChannel()
46 info.id = buffer_id(); in GetBufferInfo()
101 ALOGD_IF(TRACE, "ConsumerChannel::OnGetBuffer: buffer=%d", buffer_id()); in OnGetBuffer()
119 acquired_, released_, message.GetChannelId(), producer->buffer_id()); in OnConsumerAcquire()
142 acquired_, released_, message.GetChannelId(), producer->buffer_id()); in OnConsumerRelease()
Dproducer_queue_channel.cpp30 buffer_id()); in ~ProducerQueueChannel()
121 service(), buffer_id(), channel_id, shared_from_this(), silent); in OnCreateConsumerQueue()
143 return {{config_, buffer_id()}}; in OnGetQueueInfo()
214 int buffer_id; in AllocateBuffer() local
215 auto status = message.PushChannel(0, nullptr, &buffer_id); in AllocateBuffer()
226 buffer_id, width, height, layer_count, format, usage); in AllocateBuffer()
230 ProducerChannel::Create(service(), buffer_id, width, height, layer_count, in AllocateBuffer()
244 buffer_id, buffer_handle.value()); in AllocateBuffer()
247 service()->SetChannel(buffer_id, producer_channel); in AllocateBuffer()
278 buffer_id); in AllocateBuffer()
Dconsumer_queue_channel.cpp15 BufferHubService* service, int buffer_id, int channel_id, in ConsumerQueueChannel() argument
17 : BufferHubChannel(service, buffer_id, channel_id, kConsumerQueueType), in ConsumerQueueChannel()
77 info.id = buffer_id(); in GetBufferInfo()
86 __FUNCTION__, buffer_id(), producer_channel->buffer_id(), in RegisterNewBuffer()
160 buffer_id()); in OnProducerClosed()
Dbuffer_hub.cpp43 return a->buffer_id() < b->buffer_id(); in DumpState()
259 const int buffer_id = message.GetChannelId(); in OnCreateBuffer() local
263 buffer_id, width, height, format, usage, meta_size_bytes); in OnCreateBuffer()
268 buffer_id); in OnCreateBuffer()
272 auto status = ProducerChannel::Create(this, buffer_id, width, height, in OnCreateBuffer()
315 channel_id(), buffer_id()); in SignalAvailable()
328 channel_id(), buffer_id()); in ClearAvailable()
340 channel_id(), buffer_id()); in Hangup()
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.h63 OMX_U32 port_index, size_t size, buffer_id *buffer,
66 OMX_U32 port_index, const OMXBuffer &omxBuf, buffer_id *buffer) override;
68 OMX_U32 port_index, buffer_id buffer) override;
70 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd) override;
72 buffer_id buffer, const OMXBuffer &omxBuf,
115 Mutexed<std::map<uint64_t, buffer_id>> mBufferIdsInUse;
DC2OMXNode.cpp299 OMX_U32 portIndex, size_t size, buffer_id *buffer, in allocateSecureBuffer()
310 OMX_U32 portIndex, const OMXBuffer &omxBuf, buffer_id *buffer) { in useBuffer()
317 status_t C2OMXNode::freeBuffer(OMX_U32 portIndex, buffer_id buffer) { in freeBuffer()
324 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd) { in fillBuffer()
332 buffer_id buffer, const OMXBuffer &omxBuf, in emptyBuffer()
/frameworks/av/media/libstagefright/include/
DACodecBufferChannel.h44 IOMX::buffer_id mBufferId;
50 IOMX::buffer_id bufferId,
60 const IOMX::buffer_id mBufferId;
108 void fillThisBuffer(IOMX::buffer_id bufferID);
115 void drainThisBuffer(IOMX::buffer_id bufferID, OMX_U32 omxFlags);
/frameworks/av/media/libmedia/
DIOMX.cpp179 OMX_U32 port_index, const OMXBuffer &omxBuf, buffer_id *buffer) { in useBuffer()
198 *buffer = (buffer_id)reply.readInt32(); in useBuffer()
257 buffer_id *buffer, void **buffer_data, sp<NativeHandle> *native_handle) { in allocateSecureBuffer()
272 *buffer = (buffer_id)reply.readInt32(); in allocateSecureBuffer()
284 OMX_U32 port_index, buffer_id buffer) { in freeBuffer()
295 buffer_id buffer, const OMXBuffer &omxBuf, int fenceFd) { in fillBuffer()
313 buffer_id buffer, const OMXBuffer &omxBuf, in emptyBuffer()
442 OMX_U32 port_index, size_t size, buffer_id *buffer, in allocateSecureBuffer()
449 OMX_U32 port_index, const OMXBuffer &omxBuf, buffer_id *buffer) { in useBuffer()
454 OMX_U32 port_index, buffer_id buffer) { in freeBuffer()
[all …]
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DWOmxNode.h89 OMX_U32 port_index, size_t size, buffer_id *buffer,
93 buffer_id *buffer) override;
95 OMX_U32 port_index, buffer_id buffer) override;
97 buffer_id buffer, const OMXBuffer &omxBuf,
100 buffer_id buffer, const OMXBuffer &omxBuf,
/frameworks/av/media/libmedia/include/media/omx/1.0/
DWOmxNode.h88 OMX_U32 port_index, size_t size, buffer_id *buffer,
92 buffer_id *buffer) override;
94 OMX_U32 port_index, buffer_id buffer) override;
96 buffer_id buffer, const OMXBuffer &omxBuf,
99 buffer_id buffer, const OMXBuffer &omxBuf,
/frameworks/native/services/vr/bufferhubd/include/private/dvr/
Dbuffer_hub.h31 BufferHubChannel(BufferHubService* service, int buffer_id, int channel_id, in BufferHubChannel() argument
34 buffer_id_(buffer_id), in BufferHubChannel()
103 int buffer_id() const { return buffer_id_; } in buffer_id() function
Dproducer_channel.h33 int buffer_id, int channel_id,
99 ProducerChannel(BufferHubService* service, int buffer_id, int channel_id,
Dconsumer_channel.h18 ConsumerChannel(BufferHubService* service, int buffer_id, int channel_id,
/frameworks/av/media/libmedia/omx/1.0/
DWOmxNode.cpp141 OMX_U32 portIndex, size_t size, buffer_id *buffer, in allocateSecureBuffer()
162 OMX_U32 portIndex, const OMXBuffer &omxBuffer, buffer_id *buffer) { in useBuffer()
179 OMX_U32 portIndex, buffer_id buffer) { in freeBuffer()
184 buffer_id buffer, const OMXBuffer &omxBuffer, int fenceFd) { in fillBuffer()
201 buffer_id buffer, const OMXBuffer &omxBuffer, in emptyBuffer()
345 IOMX::buffer_id buffer; in allocateSecureBuffer()
362 IOMX::buffer_id buffer; in useBuffer()
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxNode.cpp144 OMX_U32 portIndex, size_t size, buffer_id *buffer, in allocateSecureBuffer()
165 OMX_U32 portIndex, const OMXBuffer &omxBuffer, buffer_id *buffer) { in useBuffer()
182 OMX_U32 portIndex, buffer_id buffer) { in freeBuffer()
187 buffer_id buffer, const OMXBuffer &omxBuffer, int fenceFd) { in fillBuffer()
204 buffer_id buffer, const OMXBuffer &omxBuffer, in emptyBuffer()
348 IOMX::buffer_id buffer; in allocateSecureBuffer()
365 IOMX::buffer_id buffer; in useBuffer()
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_buffer_queue-test.cpp412 int buffer_id = api_.WriteBufferGetId(wbs[i]); in TEST_F() local
413 ASSERT_GT(buffer_id, 0); in TEST_F()
418 auto whb_it = whbs.find(buffer_id); in TEST_F()
423 whbs.emplace(buffer_id, hb); in TEST_F()
447 int buffer_id = api_.ReadBufferGetId(rbs[i]); in TEST_F() local
448 ASSERT_GT(buffer_id, 0); in TEST_F()
453 auto rhb_it = rhbs.find(buffer_id); in TEST_F()
458 rhbs.emplace(buffer_id, hb); in TEST_F()
/frameworks/av/media/libstagefright/omx/
DOMXNodeInstance.cpp82 #define NEW_BUFFER_FMT(buffer_id, port, fmt, ...) \ argument
83 BUFFER_FMT(port, fmt ") (#%zu => %#x", ##__VA_ARGS__, mActiveBuffers.size(), (buffer_id))
86 #define SIMPLE_NEW_BUFFER(buffer_id, port, size, data) \ argument
87 NEW_BUFFER_FMT(buffer_id, port, "%zu@%p", (size), (data))
1086 OMX_U32 portIndex, const OMXBuffer &omxBuffer, IOMX::buffer_id *buffer) { in useBuffer()
1158 const sp<IHidlMemory> &hParams, IOMX::buffer_id *buffer) { in useBuffer_l()
1286 IOMX::buffer_id *buffer) { in useGraphicBuffer2_l()
1342 IOMX::buffer_id *buffer) { in useGraphicBuffer_l()
1419 IOMX::buffer_id *buffer) { in useGraphicBufferWithMetadata_l()
1442 IOMX::buffer_id buffer, OMX_BUFFERHEADERTYPE *header) { in updateGraphicBufferInMeta_l()
[all …]
/frameworks/native/libs/vr/libvrflinger/
Dhardware_composer.h140 int buffer_id = -1; in GetBufferId() local
142 &source_, [&buffer_id](const SourceSurface& surface_source) { in GetBufferId()
143 buffer_id = surface_source.GetBufferId(); in GetBufferId()
145 return buffer_id; in GetBufferId()
173 bool CheckAndUpdateCachedBuffer(std::size_t slot, int buffer_id);
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp63 IOMX::buffer_id bufferId) { in findBufferId()
71 IOMX::buffer_id bufferId, in BufferInfo()
380 void ACodecBufferChannel::fillThisBuffer(IOMX::buffer_id bufferId) { in fillThisBuffer()
400 IOMX::buffer_id bufferId, in drainThisBuffer()

12