Lines Matching refs:common
66 status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes, in internal_DecoderReset()
73 context->common.codecInfo = OI_Codec_Copyright; in internal_DecoderReset()
74 context->common.maxBitneed = 0; in internal_DecoderReset()
76 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in internal_DecoderReset()
88 INLINE void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT* common, in OI_SBC_ReadHeader() argument
90 OI_CODEC_SBC_FRAME_INFO* frame = &common->frameInfo; in OI_SBC_ReadHeader()
131 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT* common, in OI_SBC_ReadScalefactors() argument
133 OI_UINT i = common->frameInfo.nrof_subbands * common->frameInfo.nrof_channels; in OI_SBC_ReadScalefactors()
134 int8_t* scale_factor = common->scale_factor; in OI_SBC_ReadScalefactors()
137 if (common->frameInfo.nrof_subbands == 8 || in OI_SBC_ReadScalefactors()
138 common->frameInfo.mode != SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors()
139 if (common->frameInfo.mode == SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors()
140 common->frameInfo.join = *b++; in OI_SBC_ReadScalefactors()
142 common->frameInfo.join = 0; in OI_SBC_ReadScalefactors()
156 OI_ASSERT(common->frameInfo.nrof_subbands == 4 && in OI_SBC_ReadScalefactors()
157 common->frameInfo.mode == SBC_JOINT_STEREO); in OI_SBC_ReadScalefactors()
158 common->frameInfo.join = HIGH(f = *b++); in OI_SBC_ReadScalefactors()
180 OI_CODEC_SBC_COMMON_CONTEXT* common = &context->common; in OI_SBC_ReadSamples() local
181 OI_UINT nrof_blocks = common->frameInfo.nrof_blocks; in OI_SBC_ReadSamples()
182 int32_t* RESTRICT s = common->subdata; in OI_SBC_ReadSamples()
188 common->frameInfo.nrof_channels * common->frameInfo.nrof_subbands / 4; in OI_SBC_ReadSamples()
192 uint32_t sf_by4 = ((uint32_t*)common->scale_factor)[i]; in OI_SBC_ReadSamples()
193 uint32_t bits_by4 = common->bits.uint32[i]; in OI_SBC_ReadSamples()