Lines Matching refs:def

82     OMX_PARAM_PORTDEFINITIONTYPE def;
83 InitOMXParams(&def);
85 def.nPortIndex = kInputPortIndex;
86 def.eDir = OMX_DirInput;
87 def.nBufferCountMin = numInputBuffers;
88 def.nBufferCountActual = def.nBufferCountMin;
89 def.nBufferSize = inputBufferSize;
90 def.bEnabled = OMX_TRUE;
91 def.bPopulated = OMX_FALSE;
92 def.eDomain = OMX_PortDomainVideo;
93 def.bBuffersContiguous = OMX_FALSE;
94 def.nBufferAlignment = 1;
96 def.format.video.cMIMEType = const_cast<char *>(mimeType);
97 def.format.video.pNativeRender = NULL;
99 def.format.video.nBitrate = 0;
100 def.format.video.xFramerate = 0;
101 def.format.video.bFlagErrorConcealment = OMX_FALSE;
102 def.format.video.eCompressionFormat = mCodingType;
103 def.format.video.eColorFormat = OMX_COLOR_FormatUnused;
104 def.format.video.pNativeWindow = NULL;
106 addPort(def);
108 def.nPortIndex = kOutputPortIndex;
109 def.eDir = OMX_DirOutput;
110 def.nBufferCountMin = numOutputBuffers;
111 def.nBufferCountActual = def.nBufferCountMin;
112 def.bEnabled = OMX_TRUE;
113 def.bPopulated = OMX_FALSE;
114 def.eDomain = OMX_PortDomainVideo;
115 def.bBuffersContiguous = OMX_FALSE;
116 def.nBufferAlignment = 2;
118 def.format.video.cMIMEType = const_cast<char *>("video/raw");
119 def.format.video.pNativeRender = NULL;
121 def.format.video.nBitrate = 0;
122 def.format.video.xFramerate = 0;
123 def.format.video.bFlagErrorConcealment = OMX_FALSE;
124 def.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused;
125 def.format.video.eColorFormat = OMX_COLOR_FormatYUV420Planar;
126 def.format.video.pNativeWindow = NULL;
128 addPort(def);
183 OMX_PARAM_PORTDEFINITIONTYPE *def = &editPortInfo(kOutputPortIndex)->mDef;
184 if (def->format.video.nStride != (OMX_S32)width
185 || def->format.video.nSliceHeight != (OMX_U32)height) {
219 OMX_PARAM_PORTDEFINITIONTYPE *def = &editPortInfo(kOutputPortIndex)->mDef;
220 def->format.video.nStride = mWidth;
221 def->format.video.nSliceHeight = mHeight;
385 OMX_PARAM_PORTDEFINITIONTYPE *def = &editPortInfo(newParams->nPortIndex)->mDef;
387 uint32_t oldWidth = def->format.video.nFrameWidth;
388 uint32_t oldHeight = def->format.video.nFrameHeight;
400 newParams->nBufferSize = def->nBufferSize;
405 def->format.video.nFrameWidth = newWidth;
406 def->format.video.nFrameHeight = newHeight;