Home | History | Annotate | Download | only in src

Lines Matching refs:portDefn

2044       OMX_PARAM_PORTDEFINITIONTYPE *portDefn;
2045 portDefn = (OMX_PARAM_PORTDEFINITIONTYPE *) paramData;
2049 portDefn->nVersion.nVersion = OMX_SPEC_VERSION;
2050 portDefn->nSize = sizeof(portDefn);
2051 portDefn->eDomain = OMX_PortDomainVideo;
2052 portDefn->format.video.nFrameHeight = m_crop_dy;
2053 portDefn->format.video.nFrameWidth = m_crop_dx;
2054 portDefn->format.video.nStride = m_width;
2055 portDefn->format.video.nSliceHeight = m_height;
2056 portDefn->format.video.xFramerate= 25;
2058 if (0 == portDefn->nPortIndex)
2060 portDefn->eDir = OMX_DirInput;
2062 portDefn->nBufferCountActual = m_inp_buf_count;
2064 portDefn->nBufferCountMin = m_inp_buf_count_min;
2065 portDefn->nBufferSize = m_inp_buf_size;
2066 portDefn->format.video.eColorFormat = OMX_COLOR_FormatUnused;
2067 portDefn->format.video.eCompressionFormat = eCompressionFormat;
2068 portDefn->bEnabled = m_inp_bEnabled;
2069 portDefn->bPopulated = m_inp_bPopulated;
2071 else if (1 == portDefn->nPortIndex)
2076 portDefn->eDir = OMX_DirOutput;
2077 portDefn->nBufferCountActual = m_out_buf_count;
2078 portDefn->nBufferCountMin = m_out_buf_count_min;
2079 portDefn->nBufferSize = m_out_buf_size;
2080 portDefn->bEnabled = m_out_bEnabled;
2081 portDefn->bPopulated = m_out_bPopulated;
2085 portDefn->format.video.nFrameHeight = height;
2086 portDefn->format.video.nFrameWidth = width;
2087 portDefn->format.video.nStride = stride;
2088 portDefn->format.video.nSliceHeight = scan_lines;
2092 portDefn->format.video.eColorFormat = m_color_format;
2093 portDefn->format.video.eCompressionFormat = OMX_VIDEO_CodingUnused;
2095 portDefn->nBufferCountActual,portDefn->nBufferCountMin);
2099 portDefn->eDir = OMX_DirMax;
2101 (int)portDefn->nPortIndex);
2314 OMX_PARAM_PORTDEFINITIONTYPE *portDefn;
2315 portDefn = (OMX_PARAM_PORTDEFINITIONTYPE *) paramData;
2324 ||((OMX_DirInput == portDefn->eDir && m_inp_bEnabled == OMX_FALSE)||
2325 (OMX_DirOutput == portDefn->eDir && m_out_bEnabled == OMX_FALSE)))
2335 (int)portDefn->format.video.nFrameHeight,
2336 (int)portDefn->format.video.nFrameWidth);
2338 eRet = omx_vdec_validate_port_param(portDefn->format.video.nFrameHeight,
2339 portDefn->format.video.nFrameWidth);
2344 if(OMX_DirOutput == portDefn->eDir)
2346 if ( portDefn->nBufferCountActual < m_out_buf_count_min ||
2347 portDefn->nBufferSize != m_out_buf_size
2364 portDefn->nBufferCountActual;
2374 m_out_buf_count = portDefn->nBufferCountActual;
2378 else if(OMX_DirInput == portDefn->eDir)
2380 if(m_height != portDefn->format.video.nFrameHeight ||
2381 m_width != portDefn->format.video.nFrameWidth)
2384 (int)portDefn->format.video.nStride);
2386 if((portDefn->format.video.nFrameHeight != 0x0)
2387 && (portDefn->format.video.nFrameWidth != 0x0))
2391 portDefn->format.video.nFrameHeight;
2393 portDefn->format.video.nFrameWidth;
2394 scan_lines = portDefn->format.video.nSliceHeight;
2395 stride = portDefn->format.video.nStride;
2440 if ( portDefn->nBufferCountActual < m_inp_buf_count_min ||
2441 portDefn->nBufferSize != m_inp_buf_size
2460 portDefn->nBufferCountActual;
2471 m_inp_buf_count = portDefn->nBufferCountActual;
2476 else if (portDefn->eDir == OMX_DirMax)
2479 (int)portDefn->nPortIndex);