Lines Matching refs:port

134             const PortInfo *port =
137 memcpy(defParams, &port->mDef, sizeof(port->mDef));
162 PortInfo *port =
166 if (defParams->nBufferSize > port->mDef.nBufferSize) {
167 port->mDef.nBufferSize = defParams->nBufferSize;
170 if (defParams->nBufferCountActual < port->mDef.nBufferCountMin) {
172 port->mDef.nBufferCountMin, defParams->nBufferCountActual);
176 port->mDef.nBufferCountActual = defParams->nBufferCountActual;
216 PortInfo *port = &mPorts.editItemAt(portIndex);
218 CHECK(mState == OMX_StateLoaded || port->mDef.bEnabled == OMX_FALSE);
220 CHECK_LT(port->mBuffers.size(), port->mDef.nBufferCountActual);
222 port->mBuffers.push();
225 &port->mBuffers.editItemAt(port->mBuffers.size() - 1);
230 if (port->mBuffers.size() == port->mDef.nBufferCountActual) {
231 port->mDef.bPopulated = OMX_TRUE;
268 PortInfo *port = &mPorts.editItemAt(portIndex);
272 || port->mDef.bEnabled == OMX_FALSE);
276 for (size_t i = 0; i < port->mBuffers.size(); ++i) {
277 BufferInfo *buffer = &port->mBuffers.editItemAt(i);
293 port->mBuffers.removeAt(i);
294 port->mDef.bPopulated = OMX_FALSE;
360 PortInfo *port = &mPorts.editItemAt(portIndex);
362 for (size_t j = 0; j < port->mBuffers.size(); ++j) {
363 BufferInfo *buffer = &port->mBuffers.editItemAt(j);
371 && port->mDef.eDir == OMX_DirInput)
372 || (port->mDef.eDir == OMX_DirOutput));
374 port->mQueue.push_back(buffer);
460 PortInfo *port = &mPorts.editItemAt(portIndex);
461 CHECK_EQ((int)port->mTransition, (int)PortInfo::NONE);
462 CHECK(port->mDef.bEnabled == !enable);
465 port->mDef.bEnabled = OMX_FALSE;
466 port->mTransition = PortInfo::DISABLING;
468 for (size_t i = 0; i < port->mBuffers.size(); ++i) {
469 BufferInfo *buffer = &port->mBuffers.editItemAt(i);
474 if (port->mDef.eDir == OMX_DirInput) {
477 CHECK_EQ(port->mDef.eDir, OMX_DirOutput);
483 port->mQueue.clear();
485 port->mTransition = PortInfo::ENABLING;
507 PortInfo *port = &mPorts.editItemAt(portIndex);
508 CHECK_EQ((int)port->mTransition, (int)PortInfo::NONE);
510 for (size_t i = 0; i < port->mBuffers.size(); ++i) {
511 BufferInfo *buffer = &port->mBuffers.editItemAt(i);
523 if (port->mDef.eDir == OMX_DirInput) {
526 CHECK_EQ(port->mDef.eDir, OMX_DirOutput);
532 port->mQueue.clear();
549 const PortInfo &port = mPorts.itemAt(i);
550 if (port.mDef.bEnabled == OMX_FALSE) {
554 if (port.mDef.bPopulated == OMX_FALSE) {
563 const PortInfo &port = mPorts.itemAt(i);
564 if (port.mDef.bEnabled == OMX_FALSE) {
568 size_t n = port.mBuffers.size();
571 CHECK_LE(n, port.mDef.nBufferCountActual);
573 if (n == port.mDef.nBufferCountActual) {
574 CHECK_EQ((int)port.mDef.bPopulated, (int)OMX_TRUE);
576 CHECK_EQ((int)port.mDef.bPopulated, (int)OMX_FALSE);
597 PortInfo *port = &mPorts.editItemAt(i);
599 if (port->mTransition == PortInfo::DISABLING) {
600 if (port->mBuffers.empty()) {
603 port->mTransition = PortInfo::NONE;
608 } else if (port->mTransition == PortInfo::ENABLING) {
609 if (port->mDef.bPopulated == OMX_TRUE) {
612 port->mTransition = PortInfo::NONE;
613 port->mDef.bEnabled = OMX_TRUE;