Lines Matching refs:common

70         context->common.frameInfo.enhanced = (**frameData == OI_SBC_ENHANCED_SYNCWORD);  in FindSyncword()
87 context->common.frameInfo.enhanced = FALSE; in FindSyncword()
105 …OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * context->common.frameInfo.nrof_subb… in DecodeBody()
111 … if (*pcmBytes < (sizeof(OI_INT16) * frameSamples * context->common.pcmStride) && !allowPartial) { in DecodeBody()
116 …} else if (*pcmBytes < sizeof (OI_INT16) * context->common.frameInfo.nrof_subbands * context->comm… in DecodeBody()
124 OI_SBC_ReadScalefactors(&context->common, bodyData, &bs); in DecodeBody()
127 OI_SBC_ComputeBitAllocation(&context->common); in DecodeBody()
130 if (context->common.frameInfo.mode == SBC_JOINT_STEREO) { in DecodeBody()
136 context->bufferedBlocks = context->common.frameInfo.nrof_blocks; in DecodeBody()
140 …code_block_count = *pcmBytes / sizeof(OI_INT16) / context->common.pcmStride / context->common.fram… in DecodeBody()
147 decode_block_count = context->common.frameInfo.nrof_blocks; in DecodeBody()
152 OI_UINT start_block = context->common.frameInfo.nrof_blocks - context->bufferedBlocks; in DecodeBody()
159 frameSamples = decode_block_count * context->common.frameInfo.nrof_subbands; in DecodeBody()
164 if (context->common.frameInfo.nrof_channels == 1 && context->common.pcmStride == 2) { in DecodeBody()
174 *pcmBytes = frameSamples * sizeof(OI_INT16) * context->common.pcmStride; in DecodeBody()
198 context->common.frameInfo.bitpool = bitpool; in internal_DecodeRaw()
202 bodyLen = OI_CODEC_SBC_CalculateFramelen(&context->common.frameInfo) - SBC_HEADER_LEN; in internal_DecodeRaw()
258 OI_SBC_ReadHeader(&context->common, *frameData); in OI_CODEC_SBC_DecodeFrame()
265 …if (context->limitFrameFormat && (context->common.frameInfo.subbands != context->restrictSubbands)… in OI_CODEC_SBC_DecodeFrame()
270 if (context->common.frameInfo.nrof_channels > context->common.maxChannels) { in OI_CODEC_SBC_DecodeFrame()
275 if (context->common.pcmStride < 1 || context->common.pcmStride > 2) { in OI_CODEC_SBC_DecodeFrame()
287 framelen = OI_CODEC_SBC_CalculateFramelen(&context->common.frameInfo); in OI_CODEC_SBC_DecodeFrame()
295 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_DecodeFrame()
296 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_DecodeFrame()
297 TRACE(("CRC Mismatch: calc=%02x read=%02x\n", crc, context->common.frameInfo.crc)); in OI_CODEC_SBC_DecodeFrame()
306 …if ((context->common.frameInfo.bitpool < SBC_MIN_BITPOOL) && !context->common.frameInfo.enhanced) { in OI_CODEC_SBC_DecodeFrame()
307 ERROR(("Bitpool too small: %d (must be >= 2)", context->common.frameInfo.bitpool)); in OI_CODEC_SBC_DecodeFrame()
310 if (context->common.frameInfo.bitpool > OI_SBC_MaxBitpool(&context->common.frameInfo)) { in OI_CODEC_SBC_DecodeFrame()
311 …ool too large: %d (must be <= %ld)", context->common.frameInfo.bitpool, OI_SBC_MaxBitpool(&context… in OI_CODEC_SBC_DecodeFrame()
347 OI_SBC_ReadHeader(&context->common, *frameData); in OI_CODEC_SBC_SkipFrame()
348 framelen = OI_SBC_CalculateFrameAndHeaderlen(&context->common.frameInfo, &headerlen); in OI_CODEC_SBC_SkipFrame()
352 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_SkipFrame()
353 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_SkipFrame()
451 OI_CODEC_SBC_COMMON_CONTEXT *common = &context->common; in OI_SBC_ReadSamplesJoint() local
452 OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in OI_SBC_ReadSamplesJoint()