Lines Matching refs:def

104     OMX_PARAM_PORTDEFINITIONTYPE def;
105 InitOMXParams(&def);
107 def.nPortIndex = kInputPortIndex;
108 def.eDir = OMX_DirInput;
109 def.nBufferCountMin = kNumInputBuffers;
110 def.nBufferCountActual = def.nBufferCountMin;
111 def.nBufferSize = 8192;
112 def.bEnabled = OMX_TRUE;
113 def.bPopulated = OMX_FALSE;
114 def.eDomain = OMX_PortDomainVideo;
115 def.bBuffersContiguous = OMX_FALSE;
116 def.nBufferAlignment = 1;
118 def.format.video.cMIMEType = const_cast<char *>(MEDIA_MIMETYPE_VIDEO_AVC);
119 def.format.video.pNativeRender = NULL;
120 def.format.video.nFrameWidth = mWidth;
121 def.format.video.nFrameHeight = mHeight;
122 def.format.video.nStride = def.format.video.nFrameWidth;
123 def.format.video.nSliceHeight = def.format.video.nFrameHeight;
124 def.format.video.nBitrate = 0;
125 def.format.video.xFramerate = 0;
126 def.format.video.bFlagErrorConcealment = OMX_FALSE;
127 def.format.video.eCompressionFormat = OMX_VIDEO_CodingAVC;
128 def.format.video.eColorFormat = OMX_COLOR_FormatUnused;
129 def.format.video.pNativeWindow = NULL;
131 addPort(def);
133 def.nPortIndex = kOutputPortIndex;
134 def.eDir = OMX_DirOutput;
135 def.nBufferCountMin = kNumOutputBuffers;
136 def.nBufferCountActual = def.nBufferCountMin;
137 def.bEnabled = OMX_TRUE;
138 def.bPopulated = OMX_FALSE;
139 def.eDomain = OMX_PortDomainVideo;
140 def.bBuffersContiguous = OMX_FALSE;
141 def.nBufferAlignment = 2;
143 def.format.video.cMIMEType = const_cast<char *>(MEDIA_MIMETYPE_VIDEO_RAW);
144 def.format.video.pNativeRender = NULL;
145 def.format.video.nFrameWidth = mWidth;
146 def.format.video.nFrameHeight = mHeight;
147 def.format.video.nStride = def.format.video.nFrameWidth;
148 def.format.video.nSliceHeight = def.format.video.nFrameHeight;
149 def.format.video.nBitrate = 0;
150 def.format.video.xFramerate = 0;
151 def.format.video.bFlagErrorConcealment = OMX_FALSE;
152 def.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused;
153 def.format.video.eColorFormat = OMX_COLOR_FormatYUV420Planar;
154 def.format.video.pNativeWindow = NULL;
156 def.nBufferSize =
157 (def.format.video.nFrameWidth * def.format.video.nFrameHeight * 3) / 2;
159 addPort(def);
538 OMX_PARAM_PORTDEFINITIONTYPE *def = &editPortInfo(0)->mDef;
539 def->format.video.nFrameWidth = mWidth;
540 def->format.video.nFrameHeight = mHeight;
541 def->format.video.nStride = def->format.video.nFrameWidth;
542 def->format.video.nSliceHeight = def->format.video.nFrameHeight;
544 def = &editPortInfo(1)->mDef;
545 def->format.video.nFrameWidth = mWidth;
546 def->format.video.nFrameHeight = mHeight;
547 def->format.video.nStride = def->format.video.nFrameWidth;
548 def->format.video.nSliceHeight = def->format.video.nFrameHeight;
550 def->nBufferSize =
551 (def->format.video.nFrameWidth
552 * def->format.video.nFrameHeight * 3) / 2;