Lines Matching refs:common

75     context->common.frameInfo.enhanced =  in FindSyncword()
93 context->common.frameInfo.enhanced = FALSE; in FindSyncword()
108 OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * in DecodeBody()
109 context->common.frameInfo.nrof_subbands; in DecodeBody()
117 (sizeof(int16_t) * frameSamples * context->common.pcmStride) && in DecodeBody()
124 context->common.frameInfo.nrof_subbands * in DecodeBody()
125 context->common.pcmStride) { in DecodeBody()
133 OI_SBC_ReadScalefactors(&context->common, bodyData, &bs); in DecodeBody()
136 OI_SBC_ComputeBitAllocation(&context->common); in DecodeBody()
139 if (context->common.frameInfo.mode == SBC_JOINT_STEREO) { in DecodeBody()
145 context->bufferedBlocks = context->common.frameInfo.nrof_blocks; in DecodeBody()
150 context->common.pcmStride / in DecodeBody()
151 context->common.frameInfo.nrof_subbands; in DecodeBody()
158 decode_block_count = context->common.frameInfo.nrof_blocks; in DecodeBody()
164 context->common.frameInfo.nrof_blocks - context->bufferedBlocks; in DecodeBody()
171 frameSamples = decode_block_count * context->common.frameInfo.nrof_subbands; in DecodeBody()
176 if (context->common.frameInfo.nrof_channels == 1 && in DecodeBody()
177 context->common.pcmStride == 2) { in DecodeBody()
187 *pcmBytes = frameSamples * sizeof(int16_t) * context->common.pcmStride; in DecodeBody()
208 context->common.frameInfo.bitpool = bitpool; in internal_DecodeRaw()
212 bodyLen = OI_CODEC_SBC_CalculateFramelen(&context->common.frameInfo) - in internal_DecodeRaw()
266 OI_SBC_ReadHeader(&context->common, *frameData); in OI_CODEC_SBC_DecodeFrame()
276 (context->common.frameInfo.subbands != context->restrictSubbands)) { in OI_CODEC_SBC_DecodeFrame()
281 if (context->common.frameInfo.nrof_channels > context->common.maxChannels) { in OI_CODEC_SBC_DecodeFrame()
288 if (context->common.pcmStride < 1 || context->common.pcmStride > 2) { in OI_CODEC_SBC_DecodeFrame()
304 framelen = OI_CODEC_SBC_CalculateFramelen(&context->common.frameInfo); in OI_CODEC_SBC_DecodeFrame()
312 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_DecodeFrame()
313 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_DecodeFrame()
315 context->common.frameInfo.crc)); in OI_CODEC_SBC_DecodeFrame()
324 if ((context->common.frameInfo.bitpool < SBC_MIN_BITPOOL) && in OI_CODEC_SBC_DecodeFrame()
325 !context->common.frameInfo.enhanced) { in OI_CODEC_SBC_DecodeFrame()
327 context->common.frameInfo.bitpool)); in OI_CODEC_SBC_DecodeFrame()
330 if (context->common.frameInfo.bitpool > in OI_CODEC_SBC_DecodeFrame()
331 OI_SBC_MaxBitpool(&context->common.frameInfo)) { in OI_CODEC_SBC_DecodeFrame()
333 context->common.frameInfo.bitpool, in OI_CODEC_SBC_DecodeFrame()
334 OI_SBC_MaxBitpool(&context->common.frameInfo))); in OI_CODEC_SBC_DecodeFrame()
370 OI_SBC_ReadHeader(&context->common, *frameData); in OI_CODEC_SBC_SkipFrame()
372 OI_SBC_CalculateFrameAndHeaderlen(&context->common.frameInfo, &headerlen); in OI_CODEC_SBC_SkipFrame()
376 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_SkipFrame()
377 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_SkipFrame()
472 OI_CODEC_SBC_COMMON_CONTEXT* common = &context->common; in OI_SBC_ReadSamplesJoint() local
473 OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in OI_SBC_ReadSamplesJoint()