Home
last modified time | relevance | path

Searched refs:portIndex (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/av/media/libstagefright/omx/
DOMXNodeInstance.cpp178 static inline const char *portString(OMX_U32 portIndex) { in portString() argument
179 switch (portIndex) { in portString()
456 OMX_U32 portIndex, OMX_BOOL enable) { in enableGraphicBuffers() argument
458 CLOG_CONFIG(enableGraphicBuffers, "%s:%u, %d", portString(portIndex), portIndex, enable); in enableGraphicBuffers()
472 params.nPortIndex = portIndex; in enableGraphicBuffers()
477 portString(portIndex), portIndex, enable); in enableGraphicBuffers()
482 OMX_U32 portIndex, OMX_U32* usage) { in getGraphicBufferUsage() argument
497 params.nPortIndex = portIndex; in getGraphicBufferUsage()
502 portString(portIndex), portIndex); in getGraphicBufferUsage()
512 OMX_U32 portIndex, OMX_BOOL enable, MetadataBufferType *type) { in storeMetaDataInBuffers() argument
[all …]
DSimpleSoftOMXComponent.cpp75 OMX_U32 portIndex; in isSetParameterAllowed() local
80 portIndex = ((OMX_PARAM_PORTDEFINITIONTYPE *)params)->nPortIndex; in isSetParameterAllowed()
86 portIndex = ((OMX_AUDIO_PARAM_PCMMODETYPE *)params)->nPortIndex; in isSetParameterAllowed()
92 portIndex = ((OMX_AUDIO_PARAM_AACPROFILETYPE *)params)->nPortIndex; in isSetParameterAllowed()
100 CHECK(portIndex < mPorts.size()); in isSetParameterAllowed()
102 return !mPorts.itemAt(portIndex).mDef.bEnabled; in isSetParameterAllowed()
187 OMX_U32 portIndex, in useBuffer() argument
192 CHECK_LT(portIndex, mPorts.size()); in useBuffer()
213 (*header)->nOutputPortIndex = portIndex; in useBuffer()
214 (*header)->nInputPortIndex = portIndex; in useBuffer()
[all …]
DSoftOMXComponent.cpp187 OMX_U32 portIndex, in UseBufferWrapper() argument
195 return me->useBuffer(buffer, portIndex, appPrivate, size, ptr); in UseBufferWrapper()
202 OMX_U32 portIndex, in AllocateBufferWrapper() argument
209 return me->allocateBuffer(buffer, portIndex, appPrivate, size); in AllocateBufferWrapper()
215 OMX_U32 portIndex, in FreeBufferWrapper() argument
221 return me->freeBuffer(portIndex, buffer); in FreeBufferWrapper()
/frameworks/av/media/libstagefright/include/
DOMXNodeInstance.h57 status_t enableGraphicBuffers(OMX_U32 portIndex, OMX_BOOL enable);
59 status_t getGraphicBufferUsage(OMX_U32 portIndex, OMX_U32* usage);
62 OMX_U32 portIndex, OMX_BOOL enable, MetadataBufferType *type);
65 OMX_U32 portIndex, OMX_BOOL enable,
69 OMX_U32 portIndex, OMX_BOOL tunneled,
73 OMX_U32 portIndex, const sp<IMemory> &params,
77 OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer,
81 OMX_U32 portIndex, const sp<GraphicBuffer> &graphicBuffer,
85 OMX_U32 portIndex, sp<IGraphicBufferProducer> *bufferProducer,
93 OMX_U32 portIndex, const sp<IGraphicBufferConsumer> &bufferConsumer,
[all …]
DSimpleSoftOMXComponent.h74 virtual void onQueueFilled(OMX_U32 portIndex);
75 List<BufferInfo *> &getPortQueue(OMX_U32 portIndex);
77 virtual void onPortFlushCompleted(OMX_U32 portIndex);
78 virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled);
81 PortInfo *editPortInfo(OMX_U32 portIndex);
114 OMX_U32 portIndex,
121 OMX_U32 portIndex,
126 OMX_U32 portIndex,
139 void onPortEnable(OMX_U32 portIndex, bool enable);
140 void onPortFlush(OMX_U32 portIndex, bool sendFlushComplete);
DSoftOMXComponent.h75 OMX_U32 portIndex,
82 OMX_U32 portIndex,
87 OMX_U32 portIndex,
139 OMX_U32 portIndex,
147 OMX_U32 portIndex,
153 OMX_U32 portIndex,
/frameworks/av/include/media/stagefright/
DOMXCodec.h256 OMX_U32 portIndex,
272 OMX_COLOR_FORMATTYPE colorFormat, int portIndex);
289 void setMinBufferSize(OMX_U32 portIndex, OMX_U32 size);
292 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels);
295 status_t allocateBuffersOnPort(OMX_U32 portIndex);
303 OMX_U32 portIndex, bool onlyThoseWeOwn = false);
305 status_t freeBuffer(OMX_U32 portIndex, size_t bufIndex);
324 bool flushPortAsync(OMX_U32 portIndex);
326 void disablePortAsync(OMX_U32 portIndex);
327 status_t enablePortAsync(OMX_U32 portIndex);
[all …]
DACodec.h188 void dumpBuffers(OMX_U32 portIndex);
272 status_t allocateBuffersOnPort(OMX_U32 portIndex);
273 status_t freeBuffersOnPort(OMX_U32 portIndex);
274 status_t freeBuffer(OMX_U32 portIndex, size_t i);
300 uint32_t portIndex, IOMX::buffer_id bufferID,
310 OMX_U32 portIndex,
324 OMX_U32 portIndex,
348 OMX_U32 portIndex, OMX_AUDIO_CODINGTYPE desiredFormat);
357 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels);
362 status_t setMinBufferSize(OMX_U32 portIndex, size_t size);
[all …]
/frameworks/av/media/libstagefright/
DOMXCodec.cpp717 void OMXCodec::setMinBufferSize(OMX_U32 portIndex, OMX_U32 size) { in setMinBufferSize() argument
720 def.nPortIndex = portIndex; in setMinBufferSize()
726 if ((portIndex == kPortIndexInput && (mQuirks & kInputBufferSizesAreBogus)) in setMinBufferSize()
740 if (portIndex == kPortIndexInput in setMinBufferSize()
749 OMX_U32 portIndex, in setVideoPortFormatType() argument
754 format.nPortIndex = portIndex; in setVideoPortFormatType()
774 portIndex, in setVideoPortFormatType()
848 OMX_COLOR_FORMATTYPE colorFormat, int portIndex) { in isColorFormatSupported() argument
856 portFormat.nPortIndex = portIndex; in isColorFormatSupported()
1626 status_t OMXCodec::allocateBuffersOnPort(OMX_U32 portIndex) { in allocateBuffersOnPort() argument
[all …]
DACodec.cpp227 virtual PortMode getPortMode(OMX_U32 portIndex);
370 virtual PortMode getPortMode(OMX_U32 portIndex);
389 virtual PortMode getPortMode(OMX_U32 portIndex);
764 status_t ACodec::allocateBuffersOnPort(OMX_U32 portIndex) { in allocateBuffersOnPort() argument
765 CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput); in allocateBuffersOnPort()
767 CHECK(mDealer[portIndex] == NULL); in allocateBuffersOnPort()
768 CHECK(mBuffers[portIndex].isEmpty()); in allocateBuffersOnPort()
771 if (mNativeWindow != NULL && portIndex == kPortIndexOutput) { in allocateBuffersOnPort()
780 def.nPortIndex = portIndex; in allocateBuffersOnPort()
787 portIndex == kPortIndexOutput ? mOutputMetadataType : mInputMetadataType; in allocateBuffersOnPort()
[all …]
DMediaCodec.cpp844 size_t portIndex, size_t index, in getBufferAndFormat() argument
861 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; in getBufferAndFormat()
866 if (portIndex == kPortIndexInput && mCrypto != NULL) { in getBufferAndFormat()
1238 int32_t portIndex; in onMessageReceived() local
1239 CHECK(msg->findInt32("portIndex", &portIndex)); in onMessageReceived()
1242 portIndex == kPortIndexInput ? "input" : "output"); in onMessageReceived()
1244 CHECK(portIndex == kPortIndexInput in onMessageReceived()
1245 || portIndex == kPortIndexOutput); in onMessageReceived()
1247 mPortBuffers[portIndex].clear(); in onMessageReceived()
1249 Vector<BufferInfo> *buffers = &mPortBuffers[portIndex]; in onMessageReceived()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/
DSoftMP3.h42 virtual void onQueueFilled(OMX_U32 portIndex);
43 virtual void onPortFlushCompleted(OMX_U32 portIndex);
44 virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled);
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
DSoftVorbis.h43 virtual void onQueueFilled(OMX_U32 portIndex);
44 virtual void onPortFlushCompleted(OMX_U32 portIndex);
45 virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled);
DSoftVorbis.cpp246 void SoftVorbis::onQueueFilled(OMX_U32 portIndex) { in onQueueFilled() argument
254 if (portIndex == 0 && mInputBufferCount < 2) { in onQueueFilled()
415 void SoftVorbis::onPortFlushCompleted(OMX_U32 portIndex) { in onPortFlushCompleted() argument
416 if (portIndex == 0 && mState != NULL) { in onPortFlushCompleted()
445 void SoftVorbis::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { in onPortEnableCompleted() argument
446 if (portIndex != 1) { in onPortEnableCompleted()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
DSoftAMR.h40 virtual void onQueueFilled(OMX_U32 portIndex);
41 virtual void onPortFlushCompleted(OMX_U32 portIndex);
42 virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled);
DSoftAMR.cpp431 void SoftAMR::onPortFlushCompleted(OMX_U32 portIndex) { in onPortFlushCompleted() argument
432 ALOGV("onPortFlushCompleted portindex %d, resetting frame ", portIndex); in onPortFlushCompleted()
433 if (portIndex == 0) { in onPortFlushCompleted()
442 void SoftAMR::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { in onPortEnableCompleted() argument
443 if (portIndex != 1) { in onPortEnableCompleted()
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.h57 virtual void onQueueFilled(OMX_U32 portIndex);
58 virtual void onPortFlushCompleted(OMX_U32 portIndex);
59 virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled);
DSoftOpus.cpp322 void SoftOpus::onQueueFilled(OMX_U32 portIndex) { in onQueueFilled() argument
330 if (portIndex == 0 && mInputBufferCount < 3) { in onQueueFilled()
496 void SoftOpus::onPortFlushCompleted(OMX_U32 portIndex) { in onPortFlushCompleted() argument
497 if (portIndex == 0 && mDecoder != NULL) { in onPortFlushCompleted()
522 void SoftOpus::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { in onPortEnableCompleted() argument
523 if (portIndex != 1) { in onPortEnableCompleted()
/frameworks/av/media/libstagefright/filters/
DMediaFilter.cpp228 status_t MediaFilter::allocateBuffersOnPort(OMX_U32 portIndex) { in allocateBuffersOnPort() argument
229 CHECK(portIndex == kPortIndexInput || portIndex == kPortIndexOutput); in allocateBuffersOnPort()
230 const bool isInput = portIndex == kPortIndexInput; in allocateBuffersOnPort()
233 CHECK(mDealer[portIndex] == NULL); in allocateBuffersOnPort()
234 CHECK(mBuffers[portIndex].isEmpty()); in allocateBuffersOnPort()
242 mDealer[portIndex] = new MemoryDealer(totalSize, "MediaFilter"); in allocateBuffersOnPort()
245 sp<IMemory> mem = mDealer[portIndex]->allocate(bufferSize); in allocateBuffersOnPort()
256 mBuffers[portIndex].push_back(info); in allocateBuffersOnPort()
260 &mBuffers[portIndex].editItemAt(i)); in allocateBuffersOnPort()
267 notify->setInt32("portIndex", portIndex); in allocateBuffersOnPort()
[all …]
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.h42 virtual void onQueueFilled(OMX_U32 portIndex);
43 virtual void onPortFlushCompleted(OMX_U32 portIndex);
44 virtual void onPortEnableCompleted(OMX_U32 portIndex, bool enabled);
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DSoftGSM.h44 virtual void onQueueFilled(OMX_U32 portIndex);
46 virtual void onPortFlushCompleted(OMX_U32 portIndex);
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.h40 virtual void onQueueFilled(OMX_U32 portIndex);
41 virtual void onPortFlushCompleted(OMX_U32 portIndex);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
DSoftMPEG4.h40 virtual void onQueueFilled(OMX_U32 portIndex);
41 virtual void onPortFlushCompleted(OMX_U32 portIndex);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/
DSoftAVC.h38 virtual void onQueueFilled(OMX_U32 portIndex);
39 virtual void onPortFlushCompleted(OMX_U32 portIndex);
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.h56 IOMX::node_id node, OMX_U32 portIndex,
61 IOMX::node_id node, OMX_U32 portIndex,

123