Lines Matching refs:pStreamDesc

171  * M4OSA_ERR M4PCMR_getNextStream(M4OSA_Context context, M4SYS_StreamDescription* pStreamDesc)
176 * - Fills pStreamDesc structure allocated by the caller
178 * @param pStreamDesc: (IN) Stream Description context
186 M4OSA_ERR M4PCMR_getNextStream(M4OSA_Context context, M4SYS_StreamDescription* pStreamDesc)
191 if((M4OSA_NULL == context)|| (M4OSA_NULL == pStreamDesc))
207 pStreamDesc->streamID = 1;
209 pStreamDesc->profileLevel = 0;
210 pStreamDesc->decoderSpecificInfoSize = sizeof(M4PCMC_DecoderSpecificInfo);
213 pStreamDesc->decoderSpecificInfo = M4OSA_NULL;
214 pStreamDesc->decoderSpecificInfo =
217 if(pStreamDesc->decoderSpecificInfo == M4OSA_NULL)
223 memcpy((void *)pStreamDesc->decoderSpecificInfo,
226 /* Fill other fields of pStreamDesc structure */
227 pStreamDesc->timeScale = 1000;
228 pStreamDesc->duration = (M4OSA_Time)(((M4OSA_Double)(c->m_decoderConfig.DataLength)\
229 / (M4OSA_Double)(c->m_decoderConfig.AvgBytesPerSec))*pStreamDesc->timeScale);
230 pStreamDesc->averageBitrate = c->m_decoderConfig.AvgBytesPerSec * 8;/* in bits, multiply by 8*/
231 pStreamDesc->maxBitrate = pStreamDesc->averageBitrate; /* PCM stream has constant bitrate */
240 pStreamDesc->streamType = M4SYS_kPCM_8bitsU;
243 // pStreamDesc->streamType = M4SYS_kPCM_8bitsS; /* ??? 8bits stereo not
247 pStreamDesc->streamType = M4SYS_kAudioUnknown;
255 pStreamDesc->streamType = M4SYS_kPCM_16bitsU;
258 pStreamDesc->streamType = M4SYS_kPCM_16bitsS;
261 pStreamDesc->streamType = M4SYS_kAudioUnknown;
266 pStreamDesc->streamType = M4SYS_kAudioUnknown;
269 c->m_pDecoderSpecInfo = pStreamDesc->decoderSpecificInfo;