Home | History | Annotate | Download | only in src

Lines Matching refs:portDefn

2986                                OMX_PARAM_PORTDEFINITIONTYPE *portDefn =
2989 eRet = update_portdef(portDefn);
2991 m_port_def = *portDefn;
3299 OMX_PARAM_PORTDEFINITIONTYPE *portDefn;
3300 portDefn = (OMX_PARAM_PORTDEFINITIONTYPE *) paramData;
3304 (int)portDefn->format.video.nFrameHeight,
3305 (int)portDefn->format.video.nFrameWidth);
3307 if (portDefn->nBufferCountActual > MAX_NUM_INPUT_OUTPUT_BUFFERS) {
3309 portDefn->nBufferCountActual);
3313 if (OMX_DirOutput == portDefn->eDir) {
3316 m_display_id = portDefn->format.video.pNativeWindow;
3323 (unsigned int)portDefn->format.video.nFrameWidth,
3324 (unsigned int)portDefn->format.video.nFrameHeight);
3325 if (portDefn->format.video.nFrameHeight != 0x0 &&
3326 portDefn->format.video.nFrameWidth != 0x0) {
3336 if ((portDefn->format.video.nFrameHeight != (unsigned int)fmt.fmt.pix_mp.height) ||
3337 (portDefn->format.video.nFrameWidth != (unsigned int)fmt.fmt.pix_mp.width)) {
3340 update_resolution(portDefn->format.video.nFrameWidth,
3341 portDefn->format.video.nFrameHeight,
3342 portDefn->format.video.nFrameWidth,
3343 portDefn->format.video.nFrameHeight);
3348 rectangle.nWidth = portDefn->format.video.nFrameWidth;
3349 rectangle.nHeight = portDefn->format.video.nFrameHeight;
3386 stride = VENUS_Y_STRIDE(COLOR_FMT_NV12, portDefn->format.video.nFrameWidth);
3387 slice = VENUS_Y_SCANLINES(COLOR_FMT_NV12, portDefn->format.video.nFrameHeight);
3389 stride = portDefn->format.video.nFrameWidth;
3390 slice = portDefn->format.video.nFrameHeight;
3414 if (portDefn->nBufferCountActual > MAX_NUM_INPUT_OUTPUT_BUFFERS) {
3416 portDefn->nBufferCountActual, MAX_NUM_INPUT_OUTPUT_BUFFERS);
3425 (portDefn->nBufferCountActual != drv_ctx.op_buf.actualcount ||
3426 portDefn->nBufferSize != drv_ctx.op_buf.buffer_size)) {
3433 if ( portDefn->nBufferCountActual >= drv_ctx.op_buf.mincount &&
3434 portDefn->nBufferSize >= drv_ctx.op_buf.buffer_size ) {
3435 drv_ctx.op_buf.actualcount = portDefn->nBufferCountActual;
3436 drv_ctx.op_buf.buffer_size = portDefn->nBufferSize;
3442 m_port_def = *portDefn;
3446 (unsigned int)portDefn->nBufferCountActual, (unsigned int)portDefn->nBufferSize);
3450 } else if (OMX_DirInput == portDefn->eDir) {
3453 if ((portDefn->format.video.xFramerate >> 16) > 0 &&
3454 (portDefn->format.video.xFramerate >> 16) <= MAX_SUPPORTED_FPS) {
3459 (unsigned int)portDefn->format.video.xFramerate >> 16);
3460 Q16ToFraction(portDefn->format.video.xFramerate, drv_ctx.frame_rate.fps_numerator,
3494 portDefn->format.video.nFrameHeight ||
3496 portDefn->format.video.nFrameWidth) {
3498 (unsigned int)portDefn->format.video.nFrameWidth,
3499 (unsigned int)portDefn->format.video.nFrameHeight);
3501 OMX_U32 frameWidth = portDefn->format.video.nFrameWidth;
3502 OMX_U32 frameHeight = portDefn->format.video.nFrameHeight;
3535 && (portDefn->nBufferSize > m_custom_buffersize.input_buffersize)) {
3537 m_custom_buffersize.input_buffersize, portDefn->nBufferSize);
3541 if (portDefn->nBufferCountActual > MAX_NUM_INPUT_OUTPUT_BUFFERS) {
3543 portDefn->nBufferCountActual, MAX_NUM_INPUT_OUTPUT_BUFFERS);
3549 (portDefn->nBufferCountActual != drv_ctx.ip_buf.actualcount ||
3550 portDefn->nBufferSize != drv_ctx.ip_buf.buffer_size)) {
3556 if (portDefn->nBufferCountActual >= drv_ctx.ip_buf.mincount
3557 || portDefn->nBufferSize != drv_ctx.ip_buf.buffer_size) {
3560 drv_ctx.ip_buf.actualcount = portDefn->nBufferCountActual;
3561 drv_ctx.ip_buf.buffer_size = (portDefn->nBufferSize + buffer_prop->alignment - 1) &
3568 (unsigned int)portDefn->nBufferCountActual, (unsigned int)portDefn->nBufferSize);
3571 } else if (portDefn->eDir == OMX_DirMax) {
3573 (int)portDefn->nPortIndex);
8862 OMX_ERRORTYPE omx_vdec::update_portdef(OMX_PARAM_PORTDEFINITIONTYPE *portDefn)
8866 if (!portDefn) {
8870 portDefn->nVersion.nVersion = OMX_SPEC_VERSION;
8871 portDefn->nSize = sizeof(OMX_PARAM_PORTDEFINITIONTYPE);
8872 portDefn->eDomain = OMX_PortDomainVideo;
8874 portDefn->format.video.xFramerate = (drv_ctx.frame_rate.fps_numerator /
8881 if (0 == portDefn->nPortIndex) {
8882 portDefn->eDir = OMX_DirInput;
8883 portDefn->nBufferCountActual = drv_ctx.ip_buf.actualcount;
8884 portDefn->nBufferCountMin = drv_ctx.ip_buf.mincount;
8885 portDefn->nBufferSize = drv_ctx.ip_buf.buffer_size;
8886 portDefn->format.video.eColorFormat = OMX_COLOR_FormatUnused;
8887 portDefn->format.video.eCompressionFormat = eCompressionFormat;
8888 portDefn->bEnabled = m_inp_bEnabled;
8889 portDefn->bPopulated = m_inp_bPopulated;
8893 } else if (1 == portDefn->nPortIndex) {
8903 portDefn->nBufferSize = buf_size;
8904 portDefn->eDir = OMX_DirOutput;
8905 portDefn->nBufferCountActual = drv_ctx.op_buf.actualcount;
8906 portDefn->nBufferCountMin = drv_ctx.op_buf.mincount;
8907 portDefn->format.video.eCompressionFormat = OMX_VIDEO_CodingUnused;
8908 portDefn->bEnabled = m_out_bEnabled;
8909 portDefn->bPopulated = m_out_bPopulated;
8910 if (!client_buffers.get_color_format(portDefn->format.video.eColorFormat)) {
8917 portDefn->eDir = OMX_DirMax;
8919 (int)portDefn->nPortIndex);
8929 portDefn->format.video.nFrameWidth = fmt.fmt.pix_mp.width;
8930 portDefn->format.video.nFrameHeight = fmt.fmt.pix_mp.height;
8931 portDefn->format.video.nStride = fmt.fmt.pix_mp.plane_fmt[0].bytesperline;
8932 portDefn->format.video.nSliceHeight = fmt.fmt.pix_mp.plane_fmt[0].reserved[0];
8935 portDefn->format.video.nFrameHeight = drv_ctx.video_resolution.frame_height;
8936 portDefn->format.video.nFrameWidth = drv_ctx.video_resolution.frame_width;
8937 portDefn->format.video.nStride = drv_ctx.video_resolution.stride;
8938 portDefn->format.video.nSliceHeight = drv_ctx.video_resolution.scan_lines;
8941 if ((portDefn->format.video.eColorFormat == OMX_COLOR_FormatYUV420Planar) ||
8942 (portDefn->format.video.eColorFormat == OMX_COLOR_FormatYUV420SemiPlanar)) {
8943 portDefn->format.video.nStride = ALIGN(drv_ctx.video_resolution.frame_width, 16);
8944 portDefn->format.video.nSliceHeight = drv_ctx.video_resolution.frame_height;
8948 (unsigned int)portDefn->nPortIndex,
8949 (unsigned int)portDefn->format.video.nFrameWidth,
8950 (unsigned int)portDefn->format.video.nFrameHeight,
8951 (int)portDefn->format.video.nStride,
8952 (unsigned int)portDefn->format.video.nSliceHeight,
8953 (unsigned int)portDefn->format.video.eColorFormat,
8954 (unsigned int)portDefn->nBufferSize,
8955 (unsigned int)portDefn->nBufferCountActual);
9898 OMX_PARAM_PORTDEFINITIONTYPE *portDefn = NULL;
9904 portDefn = (OMX_PARAM_PORTDEFINITIONTYPE *)(void *)extra->data;
9905 *portDefn = m_port_def;
9907 "stride = %u sliceheight = %u",(unsigned int)portDefn->format.video.nFrameHeight,
9908 (unsigned int)portDefn->format.video.nFrameWidth,
9909 (unsigned int)portDefn->format.video.nStride,
9910 (unsigned int)portDefn->format.video.nSliceHeight);